@mlightcad/ui-components 0.0.9 → 0.0.11
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 +10 -14
- package/dist/ui-components.es.js +197 -172
- package/dist/ui-components.umd.js +2 -2
- package/lib/index.d.ts +2 -1
- package/lib/index.js +3 -1
- package/package.json +1 -1
- package/src/components/MlCollapse.vue +2 -2
- package/src/components/MlStatusBar.vue +43 -0
- package/src/components/{MlToolbar.vue → MlToolBar.vue} +6 -5
- package/src/components/MlToolPalette.vue +8 -9
- package/src/{composable → composables}/useBoundingRect.ts +20 -6
- package/src/{composable → composables}/useDrag.ts +13 -20
- package/src/{composable → composables}/useDragEx.ts +5 -1
- package/src/{composable → composables}/useInitialRect.ts +3 -3
- package/src/{composable → composables}/useLastPosAndSize.ts +1 -1
- package/src/{composable → composables}/useLeftPosAndWidth.ts +5 -5
- package/src/{composable → composables}/useResize.ts +3 -3
- package/src/index.ts +13 -4
- package/lib/MlDropdown.vue.d.ts +0 -59
- package/lib/MlDropdown.vue.js +0 -106
- package/lib/MlLanguage.vue.d.ts +0 -29
- package/lib/MlLanguage.vue.js +0 -67
- package/lib/MlToolPalette.vue.d.ts +0 -2
- package/lib/MlToolPalette.vue.js +0 -149
- package/lib/MlToolbar.vue.d.ts +0 -74
- package/lib/MlToolbar.vue.js +0 -129
- /package/src/{composable → composables}/types.ts +0 -0
- /package/src/{composable → composables}/useAutoOpen.ts +0 -0
- /package/src/{composable → composables}/useTransition.ts +0 -0
- /package/src/{composable → composables}/useWindowSize.ts +0 -0
- /package/src/{svg → svgs}/arrow-left.svg +0 -0
- /package/src/{svg → svgs}/arrow-right.svg +0 -0
- /package/src/{svg → svgs}/svg.d.ts +0 -0
package/dist/ui-components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".ml-dropdown-icon[data-v-3fc33b5d],.ml-dropdown-icon[data-v-3fc33b5d]:hover{outline:none;border:none}.ml-vertical-toolbar-button-group[data-v-27b5412a]{display:flex;flex-direction:column}.ml-horizontal-toolbar-button-group[data-v-27b5412a]{display:flex;flex-direction:row}.ml-toolbar-button[data-v-27b5412a]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-27b5412a]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-
|
|
2
|
-
import { ElIcon as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");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-b0c9d107]{position:fixed;bottom:0;left:0;right:0;height:30px;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--el-border-color);box-shadow:0 -2px 1-px #0000003d}.ml-status-bar-left[data-v-b0c9d107],.ml-status-bar-right[data-v-b0c9d107]{display:flex;align-items:center}.ml-status-bar-left[data-v-b0c9d107]>*{margin-right:10px}.ml-status-bar-right[data-v-b0c9d107]>*{margin-left:10px}.ml-vertical-toolbar-button-group[data-v-27b5412a]{display:flex;flex-direction:column}.ml-horizontal-toolbar-button-group[data-v-27b5412a]{display:flex;flex-direction:row}.ml-toolbar-button[data-v-27b5412a]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:5px}.ml-toolbar-button-text[data-v-27b5412a]{margin-left:0;margin-top:5px}.ml-tool-palette-dialog[data-v-539d98d3]{cursor:default;width:300px;min-width:var(--collapsed-width);position:fixed;border:1px solid;border-radius:4px}.ml-tool-palette-dialog-icon[data-v-539d98d3]{border-bottom:1px solid}.ml-tool-palette-dialog-layout[data-v-539d98d3]{display:flex;height:100%}.ml-tool-palette-title-bar[data-v-539d98d3]{width:var(--collapsed-width);display:flex;justify-content:left;align-items:center;cursor:move;writing-mode:vertical-rl;text-align:center;border:1px}.ml-tool-palette-title[data-v-539d98d3]{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-539d98d3]{pointer-events:none;-webkit-user-select:none;user-select:none;flex-grow:1;display:flex;justify-content:space-around;align-items:center;background-color:#fff;overflow:hidden}.ml-tool-palette-dialog-layout.left .ml-tool-palette-title-bar[data-v-539d98d3]{order:1}.ml-tool-palette-dialog-layout.left .ml-tool-palette-content[data-v-539d98d3],.ml-tool-palette-dialog-layout.right .ml-tool-palette-title-bar[data-v-539d98d3]{order:2}.ml-tool-palette-dialog-layout.right .ml-tool-palette-content[data-v-539d98d3]{order:1}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
import { ElIcon as Y, ElDropdownItem as oe, ElDropdownMenu as ie, ElDropdown as se, ElButton as ue, ElTooltip as ae, ElButtonGroup as ce } from "element-plus/es";
|
|
3
3
|
import "element-plus/es/components/base/style/css";
|
|
4
4
|
import "element-plus/es/components/icon/style/css";
|
|
5
|
-
import { openBlock as
|
|
5
|
+
import { openBlock as y, createElementBlock as I, createElementVNode as z, defineComponent as S, mergeModels as V, useModel as J, computed as L, createBlock as W, withCtx as T, resolveDynamicComponent as re, createVNode as H, Fragment as K, renderList as Q, createTextVNode as ve, toDisplayString as N, pushScopeId as Z, popScopeId as P, renderSlot as O, normalizeClass as R, normalizeStyle as ee, createCommentVNode as te, ref as m, onMounted as D, onUnmounted as U, watch as _, onBeforeUnmount as ne, unref as F } from "vue";
|
|
6
6
|
import "element-plus/es/components/dropdown/style/css";
|
|
7
7
|
import "element-plus/es/components/dropdown-menu/style/css";
|
|
8
8
|
import "element-plus/es/components/dropdown-item/style/css";
|
|
@@ -14,68 +14,68 @@ const de = {
|
|
|
14
14
|
width: "1em",
|
|
15
15
|
height: "1em",
|
|
16
16
|
viewBox: "0 0 1024 1024"
|
|
17
|
-
}, me = /* @__PURE__ */
|
|
17
|
+
}, me = /* @__PURE__ */ z("path", {
|
|
18
18
|
fill: "currentColor",
|
|
19
19
|
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"
|
|
20
20
|
}, null, -1), he = [
|
|
21
21
|
me
|
|
22
22
|
];
|
|
23
|
-
function fe(e,
|
|
24
|
-
return
|
|
23
|
+
function fe(e, i) {
|
|
24
|
+
return y(), I("svg", de, [...he]);
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const G = { render: fe }, pe = {
|
|
27
27
|
xmlns: "http://www.w3.org/2000/svg",
|
|
28
28
|
width: "1em",
|
|
29
29
|
height: "1em",
|
|
30
30
|
viewBox: "0 0 1024 1024"
|
|
31
|
-
}, we = /* @__PURE__ */
|
|
31
|
+
}, we = /* @__PURE__ */ z("path", {
|
|
32
32
|
fill: "currentColor",
|
|
33
33
|
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"
|
|
34
34
|
}, null, -1), _e = [
|
|
35
35
|
we
|
|
36
36
|
];
|
|
37
|
-
function ge(e,
|
|
38
|
-
return
|
|
37
|
+
function ge(e, i) {
|
|
38
|
+
return y(), I("svg", pe, [..._e]);
|
|
39
39
|
}
|
|
40
|
-
const
|
|
40
|
+
const j = { render: ge }, Le = /* @__PURE__ */ S({
|
|
41
41
|
__name: "MlCollapse",
|
|
42
|
-
props: /* @__PURE__ */
|
|
42
|
+
props: /* @__PURE__ */ V({
|
|
43
43
|
size: { default: 18 },
|
|
44
44
|
reverse: { type: Boolean, default: !1 }
|
|
45
45
|
}, {
|
|
46
46
|
modelValue: { default: !0 },
|
|
47
47
|
modelModifiers: {}
|
|
48
48
|
}),
|
|
49
|
-
emits: /* @__PURE__ */
|
|
50
|
-
setup(e, { emit:
|
|
51
|
-
const t = e, o =
|
|
49
|
+
emits: /* @__PURE__ */ V(["change"], ["update:modelValue"]),
|
|
50
|
+
setup(e, { emit: i }) {
|
|
51
|
+
const t = e, o = J(e, "modelValue"), l = i, n = L(() => t.reverse ? o.value ? G : j : o.value ? j : G), u = L(() => `${t.size}px`), d = () => {
|
|
52
52
|
l("change", o.value), o.value = !o.value;
|
|
53
53
|
};
|
|
54
|
-
return (
|
|
55
|
-
const v =
|
|
56
|
-
return
|
|
54
|
+
return (s, a) => {
|
|
55
|
+
const v = Y;
|
|
56
|
+
return y(), W(v, {
|
|
57
57
|
size: u.value,
|
|
58
58
|
onClick: d
|
|
59
59
|
}, {
|
|
60
60
|
default: T(() => [
|
|
61
|
-
(
|
|
61
|
+
(y(), W(re(n.value)))
|
|
62
62
|
]),
|
|
63
63
|
_: 1
|
|
64
64
|
}, 8, ["size"]);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
}), xe = (e) => (
|
|
67
|
+
}), xe = (e) => (Z("data-v-3fc33b5d"), e = e(), P(), e), Me = /* @__PURE__ */ xe(() => /* @__PURE__ */ z("svg", {
|
|
68
68
|
preserveAspectRatio: "xMidYMid meet",
|
|
69
69
|
viewBox: "0 0 24 24",
|
|
70
70
|
width: "1.2em",
|
|
71
71
|
height: "1.2em",
|
|
72
72
|
"data-v-63d067da": ""
|
|
73
73
|
}, [
|
|
74
|
-
/* @__PURE__ */
|
|
74
|
+
/* @__PURE__ */ z("path", {
|
|
75
75
|
fill: "currentColor",
|
|
76
76
|
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"
|
|
77
77
|
})
|
|
78
|
-
], -1)), ye = /* @__PURE__ */
|
|
78
|
+
], -1)), ye = /* @__PURE__ */ S({
|
|
79
79
|
__name: "MlDropdown",
|
|
80
80
|
props: {
|
|
81
81
|
icon: {},
|
|
@@ -85,22 +85,22 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
85
85
|
emits: {
|
|
86
86
|
click: null
|
|
87
87
|
},
|
|
88
|
-
setup(e, { emit:
|
|
89
|
-
const t = e, o =
|
|
88
|
+
setup(e, { emit: i }) {
|
|
89
|
+
const t = e, o = i, l = L(() => t.items.filter((u) => u.name !== t.current)), n = (u) => {
|
|
90
90
|
o("click", u);
|
|
91
91
|
};
|
|
92
92
|
return (u, d) => {
|
|
93
|
-
const
|
|
94
|
-
return
|
|
93
|
+
const s = Y, a = oe, v = ie, g = se;
|
|
94
|
+
return y(), W(g, { onCommand: n }, {
|
|
95
95
|
dropdown: T(() => [
|
|
96
96
|
H(v, null, {
|
|
97
97
|
default: T(() => [
|
|
98
|
-
(
|
|
98
|
+
(y(!0), I(K, null, Q(l.value, (c) => (y(), W(a, {
|
|
99
99
|
key: c.text,
|
|
100
100
|
command: c.name
|
|
101
101
|
}, {
|
|
102
102
|
default: T(() => [
|
|
103
|
-
|
|
103
|
+
ve(N(c.text), 1)
|
|
104
104
|
]),
|
|
105
105
|
_: 2
|
|
106
106
|
}, 1032, ["command"]))), 128))
|
|
@@ -109,7 +109,7 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
109
109
|
})
|
|
110
110
|
]),
|
|
111
111
|
default: T(() => [
|
|
112
|
-
H(
|
|
112
|
+
H(s, {
|
|
113
113
|
size: "30",
|
|
114
114
|
class: "ml-dropdown-icon"
|
|
115
115
|
}, {
|
|
@@ -123,12 +123,12 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
123
123
|
});
|
|
124
124
|
};
|
|
125
125
|
}
|
|
126
|
-
}),
|
|
126
|
+
}), A = (e, i) => {
|
|
127
127
|
const t = e.__vccOpts || e;
|
|
128
|
-
for (const [o, l] of
|
|
128
|
+
for (const [o, l] of i)
|
|
129
129
|
t[o] = l;
|
|
130
130
|
return t;
|
|
131
|
-
},
|
|
131
|
+
}, X = /* @__PURE__ */ A(ye, [["__scopeId", "data-v-3fc33b5d"]]), Ee = '<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>', be = /* @__PURE__ */ S({
|
|
132
132
|
__name: "MlLanguage",
|
|
133
133
|
props: {
|
|
134
134
|
languages: {},
|
|
@@ -137,21 +137,32 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
137
137
|
emits: {
|
|
138
138
|
click: null
|
|
139
139
|
},
|
|
140
|
-
setup(e, { emit:
|
|
141
|
-
const t = e, o =
|
|
140
|
+
setup(e, { emit: i }) {
|
|
141
|
+
const t = e, o = i, l = (n) => {
|
|
142
142
|
o("click", n);
|
|
143
143
|
};
|
|
144
|
-
return (n, u) => (
|
|
144
|
+
return (n, u) => (y(), W(X, {
|
|
145
145
|
icon: Ee,
|
|
146
146
|
items: t.languages,
|
|
147
147
|
current: t.current,
|
|
148
148
|
onClick: l
|
|
149
149
|
}, null, 8, ["items", "current"]));
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
151
|
+
}), ze = {}, Ce = { class: "ml-status-bar" }, Be = { class: "ml-status-bar-left" }, Te = { class: "ml-status-bar-right" };
|
|
152
|
+
function ke(e, i) {
|
|
153
|
+
return y(), I("div", Ce, [
|
|
154
|
+
z("div", Be, [
|
|
155
|
+
O(e.$slots, "left", {}, void 0, !0)
|
|
156
|
+
]),
|
|
157
|
+
z("div", Te, [
|
|
158
|
+
O(e.$slots, "right", {}, void 0, !0)
|
|
159
|
+
])
|
|
160
|
+
]);
|
|
161
|
+
}
|
|
162
|
+
const $e = /* @__PURE__ */ A(ze, [["render", ke], ["__scopeId", "data-v-b0c9d107"]]), We = {
|
|
152
163
|
key: 0,
|
|
153
164
|
class: "ml-toolbar-button-text"
|
|
154
|
-
},
|
|
165
|
+
}, Ie = /* @__PURE__ */ S({
|
|
155
166
|
__name: "MlToolbar",
|
|
156
167
|
props: {
|
|
157
168
|
items: {},
|
|
@@ -161,8 +172,8 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
161
172
|
emits: {
|
|
162
173
|
click: null
|
|
163
174
|
},
|
|
164
|
-
setup(e, { emit:
|
|
165
|
-
const t = e, o =
|
|
175
|
+
setup(e, { emit: i }) {
|
|
176
|
+
const t = e, o = i, l = L(() => t.direction === "vertical" ? "ml-vertical-toolbar-button-group" : "ml-horizontal-toolbar-button-group"), n = L(() => t.size === "small" ? 20 : 30), u = L(() => {
|
|
166
177
|
switch (t.size) {
|
|
167
178
|
case "small":
|
|
168
179
|
return 30;
|
|
@@ -170,34 +181,34 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
170
181
|
return 50;
|
|
171
182
|
}
|
|
172
183
|
return 70;
|
|
173
|
-
}), d = (v) => v.description ? v.description : v.text,
|
|
184
|
+
}), d = (v) => v.description ? v.description : v.text, s = L(() => t.size === "large"), a = (v) => {
|
|
174
185
|
o("click", v);
|
|
175
186
|
};
|
|
176
187
|
return (v, g) => {
|
|
177
|
-
const c =
|
|
178
|
-
return
|
|
179
|
-
class:
|
|
188
|
+
const c = Y, h = ue, r = ae, p = ce;
|
|
189
|
+
return y(), W(p, {
|
|
190
|
+
class: R(l.value)
|
|
180
191
|
}, {
|
|
181
192
|
default: T(() => [
|
|
182
|
-
(
|
|
193
|
+
(y(!0), I(K, null, Q(v.items, (x, C) => (y(), W(r, {
|
|
183
194
|
key: x.text,
|
|
184
195
|
content: d(x),
|
|
185
196
|
"hide-after": 0
|
|
186
197
|
}, {
|
|
187
198
|
default: T(() => [
|
|
188
|
-
(
|
|
199
|
+
(y(), W(h, {
|
|
189
200
|
class: "ml-toolbar-button",
|
|
190
|
-
style:
|
|
191
|
-
key:
|
|
201
|
+
style: ee({ width: u.value + "px", height: u.value + "px" }),
|
|
202
|
+
key: C,
|
|
192
203
|
onClick: (k) => a(x.command)
|
|
193
204
|
}, {
|
|
194
205
|
default: T(() => [
|
|
195
|
-
|
|
206
|
+
z("div", null, [
|
|
196
207
|
H(c, {
|
|
197
208
|
size: n.value,
|
|
198
209
|
innerHTML: x.icon
|
|
199
210
|
}, null, 8, ["size", "innerHTML"]),
|
|
200
|
-
|
|
211
|
+
s.value ? (y(), I("div", We, N(x.text), 1)) : te("", !0)
|
|
201
212
|
])
|
|
202
213
|
]),
|
|
203
214
|
_: 2
|
|
@@ -210,35 +221,35 @@ const G = { render: ge }, Le = /* @__PURE__ */ V({
|
|
|
210
221
|
}, 8, ["class"]);
|
|
211
222
|
};
|
|
212
223
|
}
|
|
213
|
-
}),
|
|
214
|
-
function
|
|
215
|
-
const o = m(!1), l = (
|
|
224
|
+
}), De = /* @__PURE__ */ A(Ie, [["__scopeId", "data-v-27b5412a"]]), q = 20;
|
|
225
|
+
function He(e, i, t) {
|
|
226
|
+
const o = m(!1), l = (s) => {
|
|
216
227
|
if (t.value && e.value) {
|
|
217
|
-
const a = e.value.getBoundingClientRect(), v =
|
|
228
|
+
const a = e.value.getBoundingClientRect(), v = s.clientX < a.left || s.clientX > a.right || s.clientY < a.top || s.clientY > a.bottom;
|
|
218
229
|
o.value = !v;
|
|
219
230
|
}
|
|
220
231
|
}, n = () => {
|
|
221
232
|
t.value && (o.value = !0);
|
|
222
233
|
}, u = () => {
|
|
223
|
-
|
|
234
|
+
i.value && i.value.addEventListener("mousemove", n), e.value && e.value.addEventListener("mousemove", n);
|
|
224
235
|
}, d = () => {
|
|
225
|
-
|
|
236
|
+
i.value && i.value.removeEventListener("mousemove", n), e.value && e.value.removeEventListener("mousemove", n);
|
|
226
237
|
};
|
|
227
|
-
return
|
|
238
|
+
return D(() => {
|
|
228
239
|
window.addEventListener("mousemove", l);
|
|
229
|
-
}),
|
|
240
|
+
}), U(() => {
|
|
230
241
|
window.removeEventListener("mousemove", l);
|
|
231
|
-
}), _(t, (
|
|
232
|
-
|
|
233
|
-
}), _(e, (
|
|
234
|
-
|
|
242
|
+
}), _(t, (s) => {
|
|
243
|
+
s && (o.value = !1);
|
|
244
|
+
}), _(e, (s) => {
|
|
245
|
+
s ? u() : d();
|
|
235
246
|
}), { autoOpened: o };
|
|
236
247
|
}
|
|
237
|
-
function
|
|
248
|
+
function Se(e, i, t) {
|
|
238
249
|
const o = m(!1), l = m(null), n = m(null), u = { x: 0, y: 0 }, d = L(() => l.value == null || n.value == null ? { x: 0, y: 0 } : {
|
|
239
250
|
x: l.value.x - n.value.x,
|
|
240
251
|
y: l.value.y - n.value.y
|
|
241
|
-
}),
|
|
252
|
+
}), s = () => {
|
|
242
253
|
if (e.value) {
|
|
243
254
|
const r = e.value.getBoundingClientRect();
|
|
244
255
|
n.value = {
|
|
@@ -255,52 +266,56 @@ function ke(e, s, t) {
|
|
|
255
266
|
e.value && e.value.removeEventListener("mousedown", g);
|
|
256
267
|
}, g = (r) => {
|
|
257
268
|
if (e.value != null) {
|
|
258
|
-
if (
|
|
259
|
-
const p =
|
|
269
|
+
if (i && i.value) {
|
|
270
|
+
const p = i.value.getBoundingClientRect();
|
|
260
271
|
if (r.clientX < p.left || r.clientX > p.right || r.clientY < p.top || r.clientY > p.bottom) return;
|
|
261
272
|
}
|
|
262
|
-
o.value = !0, u.x = r.clientX, u.y = r.clientY,
|
|
273
|
+
o.value = !0, u.x = r.clientX, u.y = r.clientY, s(), document.addEventListener("mousemove", c), document.addEventListener("mouseup", h);
|
|
263
274
|
}
|
|
264
275
|
}, c = (r) => {
|
|
265
276
|
if (o.value && n.value && l.value) {
|
|
266
|
-
const p = window.innerWidth, x = window.innerHeight,
|
|
277
|
+
const p = window.innerWidth, x = window.innerHeight, C = e.value, k = C.getBoundingClientRect(), b = k.width, f = k.height, $ = n.value.x + (r.clientX - u.x), E = n.value.y + (r.clientY - u.y);
|
|
267
278
|
l.value.x = Math.max(
|
|
268
279
|
t ? t.value.offset.value.left : 0,
|
|
269
|
-
|
|
280
|
+
$
|
|
270
281
|
);
|
|
271
|
-
const w = p -
|
|
282
|
+
const w = p - b;
|
|
272
283
|
l.value.x = Math.min(
|
|
273
284
|
t ? w - t.value.offset.value.right : w,
|
|
274
285
|
l.value.x
|
|
275
286
|
), l.value.y = Math.max(
|
|
276
287
|
t ? t.value.offset.value.top : 0,
|
|
277
|
-
Math.min(
|
|
288
|
+
Math.min(E, x - f)
|
|
278
289
|
);
|
|
279
290
|
const M = x - f;
|
|
280
291
|
l.value.y = Math.min(
|
|
281
292
|
t ? M - t.value.offset.value.bottom : M,
|
|
282
293
|
l.value.y
|
|
283
|
-
),
|
|
294
|
+
), C.style.left = l.value.x + "px", C.style.top = l.value.y + "px";
|
|
284
295
|
}
|
|
285
296
|
}, h = () => {
|
|
286
297
|
o.value = !1, document.removeEventListener("mousemove", c), document.removeEventListener("mouseup", h);
|
|
287
298
|
};
|
|
288
|
-
return
|
|
289
|
-
e.value && (
|
|
290
|
-
}),
|
|
299
|
+
return D(() => {
|
|
300
|
+
e.value && (s(), a());
|
|
301
|
+
}), U(() => {
|
|
291
302
|
e.value && e.value.removeEventListener("mousedown", g);
|
|
292
303
|
}), _(e, (r) => {
|
|
293
|
-
r ? (
|
|
304
|
+
r ? (s(), a()) : v();
|
|
294
305
|
}), {
|
|
295
306
|
isDragging: o,
|
|
296
307
|
movement: d,
|
|
297
308
|
position: l
|
|
298
309
|
};
|
|
299
310
|
}
|
|
300
|
-
function
|
|
301
|
-
const o = m(!1), l = m("left"), { isDragging: n, movement: u, position: d } =
|
|
302
|
-
|
|
303
|
-
|
|
311
|
+
function Ve(e, i, t) {
|
|
312
|
+
const o = m(!1), l = m("left"), { isDragging: n, movement: u, position: d } = Se(
|
|
313
|
+
e,
|
|
314
|
+
i,
|
|
315
|
+
t
|
|
316
|
+
);
|
|
317
|
+
return _(u, (s) => {
|
|
318
|
+
if (s && e.value) {
|
|
304
319
|
const v = e.value.getBoundingClientRect();
|
|
305
320
|
v.left <= t.value.offset.value.left ? (l.value = "left", o.value = !0) : window.innerWidth - v.left - v.width <= t.value.offset.value.right ? (l.value = "right", o.value = !0) : o.value = !1;
|
|
306
321
|
}
|
|
@@ -312,15 +327,15 @@ function We(e, s, t) {
|
|
|
312
327
|
position: d
|
|
313
328
|
};
|
|
314
329
|
}
|
|
315
|
-
function
|
|
330
|
+
function Ye(e, i, t, o) {
|
|
316
331
|
const l = m(null), n = m(null), u = m(null), d = m(null);
|
|
317
|
-
return _(e, (
|
|
332
|
+
return _(e, (s, a) => {
|
|
318
333
|
l.value = a;
|
|
319
|
-
}), _(
|
|
334
|
+
}), _(i, (s, a) => {
|
|
320
335
|
n.value = a;
|
|
321
|
-
}), _(t, (
|
|
336
|
+
}), _(t, (s, a) => {
|
|
322
337
|
u.value = a;
|
|
323
|
-
}), _(o, (
|
|
338
|
+
}), _(o, (s, a) => {
|
|
324
339
|
d.value = a;
|
|
325
340
|
}), {
|
|
326
341
|
lastLeft: l,
|
|
@@ -329,24 +344,24 @@ function $e(e, s, t, o) {
|
|
|
329
344
|
lastHeight: d
|
|
330
345
|
};
|
|
331
346
|
}
|
|
332
|
-
function
|
|
333
|
-
const l = m(e.value.width), n = m(e.value.left), u = L(() => e.value.width), d = L(() => e.value.left),
|
|
347
|
+
function Ae(e, i, t, o) {
|
|
348
|
+
const l = m(e.value.width), n = m(e.value.left), u = L(() => e.value.width), d = L(() => e.value.left), s = L(() => t.value ? t.value.x : null);
|
|
334
349
|
return _([u, d], ([a, v]) => {
|
|
335
|
-
(l.value == null || n.value == null ||
|
|
336
|
-
}), _(
|
|
350
|
+
(l.value == null || n.value == null || i.value) && (l.value = a, n.value = v);
|
|
351
|
+
}), _(s, (a) => {
|
|
337
352
|
o.value && t.value && (n.value = a);
|
|
338
353
|
}), { left: n, width: l };
|
|
339
354
|
}
|
|
340
|
-
function
|
|
355
|
+
function Oe(e, i = m({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
341
356
|
const t = m({});
|
|
342
357
|
let o = !1;
|
|
343
358
|
const l = () => {
|
|
344
359
|
if (!o && e.value) {
|
|
345
360
|
const n = e.value.getBoundingClientRect();
|
|
346
|
-
t.value.left = Math.max(n.left,
|
|
361
|
+
t.value.left = Math.max(n.left, i.value.left), t.value.top = Math.max(n.top, i.value.top), t.value.width = n.width, t.value.height = n.height, o = !0;
|
|
347
362
|
}
|
|
348
363
|
};
|
|
349
|
-
return
|
|
364
|
+
return D(() => {
|
|
350
365
|
e.value && l();
|
|
351
366
|
}), _(e, (n) => {
|
|
352
367
|
n && l();
|
|
@@ -355,53 +370,53 @@ function Ie(e, s = m({ left: 0, right: 0, top: 0, bottom: 0 })) {
|
|
|
355
370
|
initialRect: t
|
|
356
371
|
};
|
|
357
372
|
}
|
|
358
|
-
function
|
|
359
|
-
const { initialRect: n } =
|
|
360
|
-
let d = 0,
|
|
361
|
-
const c = 5, h = m(null), r = (
|
|
362
|
-
if (!(!e.value ||
|
|
373
|
+
function Xe(e, i = m(!1), t = m(!1), o = m({ left: 0, right: 0, top: 0, bottom: 0 }), l = { width: 20, height: 40 }) {
|
|
374
|
+
const { initialRect: n } = Oe(e, o), u = m(!1);
|
|
375
|
+
let d = 0, s = 0, a = 0, v = 0, g = 0;
|
|
376
|
+
const c = 5, h = m(null), r = (b) => {
|
|
377
|
+
if (!(!e.value || i.value))
|
|
363
378
|
if (u.value) {
|
|
364
|
-
const f =
|
|
379
|
+
const f = b.clientX - v, $ = b.clientY - g;
|
|
365
380
|
if (h.value === "left" || h.value === "left-bottom-corner") {
|
|
366
|
-
const
|
|
367
|
-
|
|
381
|
+
const E = s - f;
|
|
382
|
+
E > l.width && (n.value.width = E, n.value.left = d + f, e.value.style.left = n.value.left + "px", e.value.style.width = n.value.width + "px");
|
|
368
383
|
}
|
|
369
384
|
if (h.value === "right" || h.value === "right-bottom-corner") {
|
|
370
|
-
const
|
|
371
|
-
|
|
385
|
+
const E = s + f;
|
|
386
|
+
E > l.width && (n.value.width = E, e.value.style.width = n.value.width + "px");
|
|
372
387
|
}
|
|
373
388
|
if (h.value === "bottom" || h.value === "left-bottom-corner" || h.value === "right-bottom-corner") {
|
|
374
|
-
const
|
|
375
|
-
|
|
389
|
+
const E = a + $;
|
|
390
|
+
E > l.height && (n.value.height = E, e.value.style.height = n.value.height + "px");
|
|
376
391
|
}
|
|
377
392
|
} else {
|
|
378
|
-
const f = e.value.getBoundingClientRect(),
|
|
393
|
+
const f = e.value.getBoundingClientRect(), $ = b.clientX - f.left, E = b.clientY - f.top, w = $ <= c, M = $ >= f.width - c, B = E >= f.height - c;
|
|
379
394
|
w && B && t.value ? (e.value.style.cursor = "nesw-resize", h.value = "left-bottom-corner") : M && B && !t.value ? (e.value.style.cursor = "nwse-resize", h.value = "right-bottom-corner") : w && t.value ? (e.value.style.cursor = "ew-resize", h.value = "left") : M && !t.value ? (e.value.style.cursor = "ew-resize", h.value = "right") : B ? (e.value.style.cursor = "ns-resize", h.value = "bottom") : (e.value.style.cursor = "", h.value = null);
|
|
380
395
|
}
|
|
381
|
-
}, p = (
|
|
396
|
+
}, p = (b) => {
|
|
382
397
|
if (!e.value || !h.value) return;
|
|
383
398
|
const f = e.value.getBoundingClientRect();
|
|
384
|
-
v =
|
|
399
|
+
v = b.clientX, g = b.clientY, s = f.width, a = f.height, d = f.left, n.value.width = s, n.value.height = a, n.value.left = f.left, n.value.top = f.top, u.value = !0, document.addEventListener("mousemove", r), document.addEventListener("mouseup", x);
|
|
385
400
|
}, x = () => {
|
|
386
401
|
u.value = !1, h.value = null, e.value && (e.value.style.cursor = ""), document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", x);
|
|
387
|
-
},
|
|
402
|
+
}, C = () => {
|
|
388
403
|
e.value && (e.value.removeEventListener("mousedown", p), e.value.removeEventListener("mousemove", r)), document.removeEventListener("mouseup", x);
|
|
389
404
|
}, k = () => {
|
|
390
405
|
e.value && (e.value.addEventListener("mousedown", p), e.value.addEventListener("mousemove", r));
|
|
391
406
|
};
|
|
392
|
-
return
|
|
407
|
+
return D(() => {
|
|
393
408
|
e.value && k();
|
|
394
|
-
}),
|
|
395
|
-
|
|
396
|
-
}), _(e, (
|
|
397
|
-
|
|
409
|
+
}), ne(() => {
|
|
410
|
+
C();
|
|
411
|
+
}), _(e, (b) => {
|
|
412
|
+
b ? k() : C();
|
|
398
413
|
}), { rect: n, isResizing: u };
|
|
399
414
|
}
|
|
400
|
-
function
|
|
415
|
+
function Ne(e, i, t, o) {
|
|
401
416
|
const l = () => {
|
|
402
417
|
if (e.value) {
|
|
403
|
-
const
|
|
404
|
-
|
|
418
|
+
const s = e.value;
|
|
419
|
+
i.value ? s.style.transition = "width 0.3s ease-out, left 0.3s ease-out" : s.style.transition = "width 0.3s ease";
|
|
405
420
|
}
|
|
406
421
|
}, n = () => {
|
|
407
422
|
e.value && (e.value.style.transition = "");
|
|
@@ -410,80 +425,90 @@ function Ve(e, s, t, o) {
|
|
|
410
425
|
}, d = () => {
|
|
411
426
|
e.value && e.value.addEventListener("transitionend", n);
|
|
412
427
|
};
|
|
413
|
-
|
|
428
|
+
D(() => {
|
|
414
429
|
e.value && e.value.addEventListener("transitionend", n);
|
|
415
|
-
}),
|
|
430
|
+
}), ne(() => {
|
|
416
431
|
e.value && e.value.removeEventListener("transitionend", n);
|
|
417
|
-
}), _(e, (
|
|
418
|
-
|
|
432
|
+
}), _(e, (s) => {
|
|
433
|
+
s ? d() : u();
|
|
419
434
|
}), _(t, () => {
|
|
420
435
|
l();
|
|
421
436
|
}), _(o, () => {
|
|
422
437
|
l();
|
|
423
438
|
});
|
|
424
439
|
}
|
|
425
|
-
function
|
|
426
|
-
const l = m(window.innerWidth), n = m(window.innerHeight), { docked: u, orientation: d, movement:
|
|
440
|
+
function Ue(e, i, t, o) {
|
|
441
|
+
const l = m(window.innerWidth), n = m(window.innerHeight), { docked: u, orientation: d, movement: s, position: a, isDragging: v } = Ve(
|
|
427
442
|
e,
|
|
428
|
-
|
|
443
|
+
i,
|
|
429
444
|
o
|
|
430
|
-
), g = L(() => d.value === "right"), { rect: c, isResizing: h } =
|
|
445
|
+
), g = L(() => d.value === "right"), { rect: c, isResizing: h } = Xe(
|
|
446
|
+
e,
|
|
447
|
+
t,
|
|
448
|
+
g,
|
|
449
|
+
o.value.offset
|
|
450
|
+
), { width: r, left: p } = Ae(
|
|
451
|
+
c,
|
|
452
|
+
h,
|
|
453
|
+
a,
|
|
454
|
+
v
|
|
455
|
+
), { lastTop: x, lastHeight: C } = Ye(
|
|
431
456
|
L(() => c.value.left),
|
|
432
457
|
L(() => c.value.top),
|
|
433
458
|
L(() => c.value.width),
|
|
434
459
|
L(() => c.value.height)
|
|
435
|
-
), { autoOpened: k } =
|
|
436
|
-
|
|
437
|
-
const
|
|
460
|
+
), { autoOpened: k } = He(e, i, t);
|
|
461
|
+
Ne(e, g, t, k);
|
|
462
|
+
const b = (w) => {
|
|
438
463
|
if (e.value) {
|
|
439
464
|
const M = e.value.getBoundingClientRect(), B = M.left + w;
|
|
440
465
|
if (g.value) {
|
|
441
466
|
c.value.left = B;
|
|
442
|
-
const
|
|
443
|
-
M.left <= 0 &&
|
|
467
|
+
const le = window.innerWidth - M.width - M.left;
|
|
468
|
+
M.left <= 0 && le >= 0 && w < 0 && (c.value.left = Math.max(0, B)), window.innerWidth - M.width <= 0 && (c.value.left = window.innerWidth - M.width);
|
|
444
469
|
} else
|
|
445
470
|
M.left + M.width >= window.innerWidth && w < 0 && (c.value.left = Math.max(0, B));
|
|
446
471
|
}
|
|
447
472
|
}, f = () => {
|
|
448
473
|
const w = window.innerWidth - l.value;
|
|
449
|
-
l.value = window.innerWidth, n.value = window.innerHeight,
|
|
474
|
+
l.value = window.innerWidth, n.value = window.innerHeight, b(w);
|
|
450
475
|
};
|
|
451
|
-
|
|
476
|
+
D(() => {
|
|
452
477
|
window.addEventListener("resize", f);
|
|
453
|
-
}),
|
|
478
|
+
}), U(() => {
|
|
454
479
|
window.removeEventListener("resize", f);
|
|
455
480
|
});
|
|
456
|
-
const
|
|
457
|
-
w ? (c.value.width =
|
|
458
|
-
},
|
|
459
|
-
u.value ? (c.value.top = o.value.offset.value.top, c.value.height = window.innerHeight - o.value.offset.value.top - o.value.offset.value.bottom) : (c.value.top = x.value, c.value.height =
|
|
481
|
+
const $ = (w) => {
|
|
482
|
+
w ? (c.value.width = q, g.value && p.value && r.value && (c.value.left = p.value + r.value - q)) : (c.value.width = r.value, g.value && p.value && r.value && (c.value.left = p.value));
|
|
483
|
+
}, E = () => {
|
|
484
|
+
u.value ? (c.value.top = o.value.offset.value.top, c.value.height = window.innerHeight - o.value.offset.value.top - o.value.offset.value.bottom) : (c.value.top = x.value, c.value.height = C.value);
|
|
460
485
|
};
|
|
461
486
|
return _(u, () => {
|
|
462
|
-
|
|
487
|
+
E();
|
|
463
488
|
}), _(t, (w) => {
|
|
464
|
-
|
|
489
|
+
$(w);
|
|
465
490
|
}), _(k, (w) => {
|
|
466
|
-
t.value && !v.value &&
|
|
467
|
-
}), _(
|
|
491
|
+
t.value && !v.value && $(!w);
|
|
492
|
+
}), _(s, (w) => {
|
|
468
493
|
if (w && e.value) {
|
|
469
494
|
const B = e.value.getBoundingClientRect();
|
|
470
495
|
c.value.left = B.left, c.value.top = B.top;
|
|
471
496
|
}
|
|
472
497
|
}), { rect: c, orientation: d, reversed: g };
|
|
473
498
|
}
|
|
474
|
-
const
|
|
499
|
+
const Fe = (e) => (Z("data-v-539d98d3"), e = e(), P(), e), Ge = /* @__PURE__ */ Fe(() => /* @__PURE__ */ z("svg", {
|
|
475
500
|
xmlns: "http://www.w3.org/2000/svg",
|
|
476
501
|
width: "1em",
|
|
477
502
|
height: "1em",
|
|
478
503
|
viewBox: "0 0 1024 1024"
|
|
479
504
|
}, [
|
|
480
|
-
/* @__PURE__ */
|
|
505
|
+
/* @__PURE__ */ z("path", {
|
|
481
506
|
fill: "currentColor",
|
|
482
507
|
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"
|
|
483
508
|
})
|
|
484
|
-
], -1)),
|
|
509
|
+
], -1)), je = { class: "ml-tool-palette-title" }, qe = { class: "ml-tool-palette-content" }, Je = /* @__PURE__ */ S({
|
|
485
510
|
__name: "MlToolPalette",
|
|
486
|
-
props: /* @__PURE__ */
|
|
511
|
+
props: /* @__PURE__ */ V({
|
|
487
512
|
title: { default: "" },
|
|
488
513
|
leftOffset: { default: 0 },
|
|
489
514
|
rightOffset: { default: 0 },
|
|
@@ -493,21 +518,20 @@ const Ae = (e) => (Q("data-v-e0d4453a"), e = e(), Z(), e), Oe = /* @__PURE__ */
|
|
|
493
518
|
modelValue: { default: !0 },
|
|
494
519
|
modelModifiers: {}
|
|
495
520
|
}),
|
|
496
|
-
emits: /* @__PURE__ */
|
|
497
|
-
setup(e, { emit:
|
|
498
|
-
const t = e, o =
|
|
521
|
+
emits: /* @__PURE__ */ V(["close"], ["update:modelValue"]),
|
|
522
|
+
setup(e, { emit: i }) {
|
|
523
|
+
const t = e, o = J(e, "modelValue"), l = i, n = m(!1), u = m(null), d = m(null), s = L(() => ({
|
|
499
524
|
offset: m({
|
|
500
525
|
left: t.leftOffset,
|
|
501
526
|
right: t.rightOffset,
|
|
502
527
|
top: t.topOffset,
|
|
503
528
|
bottom: t.bottomOffset
|
|
504
529
|
})
|
|
505
|
-
})), {
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
), c = L(() => ({
|
|
530
|
+
})), {
|
|
531
|
+
rect: a,
|
|
532
|
+
orientation: v,
|
|
533
|
+
reversed: g
|
|
534
|
+
} = Ue(d, u, n, s), c = L(() => ({
|
|
511
535
|
left: `${a.value.left}px`,
|
|
512
536
|
top: `${a.value.top}px`,
|
|
513
537
|
width: `${a.value.width}px`,
|
|
@@ -521,18 +545,18 @@ const Ae = (e) => (Q("data-v-e0d4453a"), e = e(), Z(), e), Oe = /* @__PURE__ */
|
|
|
521
545
|
});
|
|
522
546
|
};
|
|
523
547
|
return (r, p) => {
|
|
524
|
-
const x =
|
|
525
|
-
return o.value ? (
|
|
548
|
+
const x = Y;
|
|
549
|
+
return o.value ? (y(), I("div", {
|
|
526
550
|
key: 0,
|
|
527
551
|
ref_key: "toolPaletteElement",
|
|
528
552
|
ref: d,
|
|
529
|
-
style:
|
|
553
|
+
style: ee([c.value]),
|
|
530
554
|
class: "ml-tool-palette-dialog"
|
|
531
555
|
}, [
|
|
532
|
-
|
|
533
|
-
class:
|
|
556
|
+
z("div", {
|
|
557
|
+
class: R(["ml-tool-palette-dialog-layout", F(v)])
|
|
534
558
|
}, [
|
|
535
|
-
|
|
559
|
+
z("div", {
|
|
536
560
|
ref_key: "titleBarElement",
|
|
537
561
|
ref: u,
|
|
538
562
|
class: "ml-tool-palette-title-bar"
|
|
@@ -543,36 +567,37 @@ const Ae = (e) => (Q("data-v-e0d4453a"), e = e(), Z(), e), Oe = /* @__PURE__ */
|
|
|
543
567
|
onClick: h
|
|
544
568
|
}, {
|
|
545
569
|
default: T(() => [
|
|
546
|
-
|
|
570
|
+
Ge
|
|
547
571
|
]),
|
|
548
572
|
_: 1
|
|
549
573
|
}),
|
|
550
574
|
H(Le, {
|
|
551
575
|
class: "ml-tool-palette-dialog-icon",
|
|
552
576
|
modelValue: n.value,
|
|
553
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
554
|
-
reverse:
|
|
577
|
+
"onUpdate:modelValue": p[0] || (p[0] = (C) => n.value = C),
|
|
578
|
+
reverse: F(g)
|
|
555
579
|
}, null, 8, ["modelValue", "reverse"]),
|
|
556
|
-
|
|
580
|
+
z("span", je, N(t.title), 1)
|
|
557
581
|
], 512),
|
|
558
|
-
|
|
559
|
-
|
|
582
|
+
z("div", qe, [
|
|
583
|
+
O(r.$slots, "default", {}, void 0, !0)
|
|
560
584
|
])
|
|
561
585
|
], 2)
|
|
562
|
-
], 4)) :
|
|
586
|
+
], 4)) : te("", !0);
|
|
563
587
|
};
|
|
564
588
|
}
|
|
565
|
-
}),
|
|
589
|
+
}), Ke = /* @__PURE__ */ A(Je, [["__scopeId", "data-v-539d98d3"]]), st = {
|
|
566
590
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
567
591
|
install(e) {
|
|
568
|
-
e.component("MlCollapse",
|
|
592
|
+
e.component("MlCollapse", X), e.component("MlDropdown", X), e.component("MlLanguage", be), e.component("MlStatusBar", $e), e.component("MlToolbar", De), e.component("MlToolPalette", Ke);
|
|
569
593
|
}
|
|
570
594
|
};
|
|
571
595
|
export {
|
|
572
596
|
Le as MlCollapse,
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
597
|
+
X as MlDropdown,
|
|
598
|
+
be as MlLanguage,
|
|
599
|
+
$e as MlStatusBar,
|
|
600
|
+
Ke as MlToolPalette,
|
|
601
|
+
De as MlToolbar,
|
|
602
|
+
st as default
|
|
578
603
|
};
|