@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AnnotationTool-BvFG1vTX.mjs → AnnotationTool-DojqlWub.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +89 -94
- package/dist/CommentTool-CR9lVrzW.mjs +338 -0
- package/dist/HiddenTool-Wi-kOd2H.mjs +58 -0
- package/dist/InspectorTool-DIayiHOO.mjs +625 -0
- package/dist/MeasureTool-CHZ67WhG.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-CQoj_On8.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-C3CV1E9g.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-BIIBp4eQ.mjs} +67 -67
- package/dist/SectionTool-CihpG2Fy.mjs +624 -0
- package/dist/SettingTool-nEoxPwEr.mjs +525 -0
- package/dist/StructureTree-CJH8jkPI.mjs +1427 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-BjnjVRfm.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-CSuEX00S.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-Bm753NUP.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-BvvuoubO.mjs} +75 -75
- package/dist/{index-DX-eYsBm.mjs → index-BlDGbvS0.mjs} +2885 -2877
- package/dist/{index-CQ8depiU.mjs → index-BognDb0Q.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-CtoOocrY.mjs} +1 -1
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BULlB8Co.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs +97 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-CmlMVBG1.mjs +49 -0
- package/package.json +2 -2
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/pages/BIMXViewer.vue.d.ts +2 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/initConfigs.d.ts +1 -1
- package/types/store/themeManager.d.ts +2 -1
- package/dist/CommentTool-B6ruuuGV.mjs +0 -338
- package/dist/HiddenTool-DW-lRdW5.mjs +0 -58
- package/dist/InspectorTool-Cc288ySp.mjs +0 -515
- package/dist/MeasureTool-DdfM3U_3.mjs +0 -1542
- package/dist/SectionTool-jSjWX32j.mjs +0 -630
- package/dist/SettingTool-CVMZAx2H.mjs +0 -536
- package/dist/StructureTree-4OCdRRPG.mjs +0 -2672
- package/dist/panel.vue_vue_type_style_index_0_scope_true_lang-BfE1I0S9.mjs +0 -82
|
@@ -0,0 +1,1540 @@
|
|
|
1
|
+
import { o as Et, p as Sl, q as kt, t as Rt, s as Cl, v as wl, x as Ol, y as tt, z as lt, c as J, d as Dt, A as Ml, u as ve, _ as Oe, w as $t, i as ce, C as _t, D as le, F as se, G as Ae, H as Ct, I as Tl, J as Ye, E as Il, e as Vl, K as Le, L as El, M as kl, N as Rl, m as Bt, P as Dl, Q as $l, R as At, j as _l, T as Je, l as Bl, k as ee, O as Xe, V as Al, n as Ll } from "./index-BlDGbvS0.mjs";
|
|
2
|
+
import { _ as Pl } from "./panel.vue_vue_type_style_index_0_lang-tTB1oDNs.mjs";
|
|
3
|
+
import { c as Nl, u as Lt, E as Ze, b as Fl, d as Hl, e as zl, f as Wl, V as Kl, U as re, C as Pt, g as Ul, i as wt, a as Gl } from "./el-input-Bm753NUP.mjs";
|
|
4
|
+
import { getCurrentInstance as Pe, inject as we, ref as T, computed as g, defineComponent as X, openBlock as f, createElementBlock as M, normalizeClass as h, unref as R, normalizeStyle as pe, createElementVNode as u, renderSlot as A, createBlock as F, withModifiers as N, withCtx as $, createVNode as L, createCommentVNode as _, Transition as ql, toRaw as Nt, watch as oe, reactive as Ne, toRefs as Ft, onBeforeUnmount as Ql, nextTick as ne, withDirectives as Ce, toDisplayString as H, vShow as nt, onMounted as Fe, watchEffect as Yl, provide as Ht, resolveComponent as te, resolveDirective as Jl, toHandlerKey as Xl, Fragment as de, renderList as fe, createTextVNode as Ot, withKeys as Se, vModelText as jl, resolveDynamicComponent as je, pushScopeId as Zl, popScopeId as xl } from "vue";
|
|
5
|
+
import { M as Mt } from "./const-CbUmfuHy.mjs";
|
|
6
|
+
import { Close as Tt, CircleClose as en, ArrowDown as tn } from "@element-plus/icons-vue";
|
|
7
|
+
import { s as He, a as zt } from "./token-UNVJeAU8.mjs";
|
|
8
|
+
import { g as Q, u as ln } from "./index-BognDb0Q.mjs";
|
|
9
|
+
import { S as nn, b as Wt, k as sn, i as xe } from "./isEqual-BULlB8Co.mjs";
|
|
10
|
+
import { d as on } from "./debounce-BjnjVRfm.mjs";
|
|
11
|
+
function an(e, n, s, r) {
|
|
12
|
+
e.length;
|
|
13
|
+
for (var a = s + 1; a--; )
|
|
14
|
+
if (n(e[a], a, e))
|
|
15
|
+
return a;
|
|
16
|
+
return -1;
|
|
17
|
+
}
|
|
18
|
+
function Y() {
|
|
19
|
+
if (!arguments.length)
|
|
20
|
+
return [];
|
|
21
|
+
var e = arguments[0];
|
|
22
|
+
return Et(e) ? e : [e];
|
|
23
|
+
}
|
|
24
|
+
var un = 1, rn = 2;
|
|
25
|
+
function cn(e, n, s, r) {
|
|
26
|
+
var a = s.length, p = a;
|
|
27
|
+
if (e == null)
|
|
28
|
+
return !p;
|
|
29
|
+
for (e = Object(e); a--; ) {
|
|
30
|
+
var l = s[a];
|
|
31
|
+
if (l[2] ? l[1] !== e[l[0]] : !(l[0] in e))
|
|
32
|
+
return !1;
|
|
33
|
+
}
|
|
34
|
+
for (; ++a < p; ) {
|
|
35
|
+
l = s[a];
|
|
36
|
+
var d = l[0], i = e[d], v = l[1];
|
|
37
|
+
if (l[2]) {
|
|
38
|
+
if (i === void 0 && !(d in e))
|
|
39
|
+
return !1;
|
|
40
|
+
} else {
|
|
41
|
+
var b = new nn(), w;
|
|
42
|
+
if (!(w === void 0 ? Wt(v, i, un | rn, r, b) : w))
|
|
43
|
+
return !1;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return !0;
|
|
47
|
+
}
|
|
48
|
+
function Kt(e) {
|
|
49
|
+
return e === e && !Sl(e);
|
|
50
|
+
}
|
|
51
|
+
function dn(e) {
|
|
52
|
+
for (var n = sn(e), s = n.length; s--; ) {
|
|
53
|
+
var r = n[s], a = e[r];
|
|
54
|
+
n[s] = [r, a, Kt(a)];
|
|
55
|
+
}
|
|
56
|
+
return n;
|
|
57
|
+
}
|
|
58
|
+
function Ut(e, n) {
|
|
59
|
+
return function(s) {
|
|
60
|
+
return s == null ? !1 : s[e] === n && (n !== void 0 || e in Object(s));
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function fn(e) {
|
|
64
|
+
var n = dn(e);
|
|
65
|
+
return n.length == 1 && n[0][2] ? Ut(n[0][0], n[0][1]) : function(s) {
|
|
66
|
+
return s === e || cn(s, e, n);
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
var pn = 1, vn = 2;
|
|
70
|
+
function mn(e, n) {
|
|
71
|
+
return kt(e) && Kt(n) ? Ut(Rt(e), n) : function(s) {
|
|
72
|
+
var r = Q(s, e);
|
|
73
|
+
return r === void 0 && r === n ? Cl(s, e) : Wt(n, r, pn | vn);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
function hn(e) {
|
|
77
|
+
return function(n) {
|
|
78
|
+
return n == null ? void 0 : n[e];
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function gn(e) {
|
|
82
|
+
return function(n) {
|
|
83
|
+
return wl(n, e);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function bn(e) {
|
|
87
|
+
return kt(e) ? hn(Rt(e)) : gn(e);
|
|
88
|
+
}
|
|
89
|
+
function yn(e) {
|
|
90
|
+
return typeof e == "function" ? e : e == null ? Ol : typeof e == "object" ? Et(e) ? mn(e[0], e[1]) : fn(e) : bn(e);
|
|
91
|
+
}
|
|
92
|
+
function Sn(e, n, s) {
|
|
93
|
+
var r = e == null ? 0 : e.length;
|
|
94
|
+
if (!r)
|
|
95
|
+
return -1;
|
|
96
|
+
var a = r - 1;
|
|
97
|
+
return an(e, yn(n), a);
|
|
98
|
+
}
|
|
99
|
+
const Cn = (e = "") => e.replace(/[|\\{}()[\]^$+*?.]/g, "\\$&").replace(/-/g, "\\x2d");
|
|
100
|
+
function wn(e, n) {
|
|
101
|
+
if (!tt)
|
|
102
|
+
return;
|
|
103
|
+
if (!n) {
|
|
104
|
+
e.scrollTop = 0;
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
const s = [];
|
|
108
|
+
let r = n.offsetParent;
|
|
109
|
+
for (; r !== null && e !== r && e.contains(r); )
|
|
110
|
+
s.push(r), r = r.offsetParent;
|
|
111
|
+
const a = n.offsetTop + s.reduce((i, v) => i + v.offsetTop, 0), p = a + n.offsetHeight, l = e.scrollTop, d = l + e.clientHeight;
|
|
112
|
+
a < l ? e.scrollTop = a : p > d && (e.scrollTop = p - e.clientHeight);
|
|
113
|
+
}
|
|
114
|
+
const On = Symbol("emptyValuesContextKey"), Mn = "use-empty-values", Tn = ["", void 0, null], In = void 0, Vn = lt({
|
|
115
|
+
emptyValues: Array,
|
|
116
|
+
valueOnClear: {
|
|
117
|
+
type: [String, Number, Boolean, Function],
|
|
118
|
+
default: void 0,
|
|
119
|
+
validator: (e) => J(e) ? !e() : !e
|
|
120
|
+
}
|
|
121
|
+
}), En = (e, n) => {
|
|
122
|
+
const s = Pe() ? we(On, T({})) : T({}), r = g(() => e.emptyValues || s.value.emptyValues || Tn), a = g(() => J(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : J(s.value.valueOnClear) ? s.value.valueOnClear() : s.value.valueOnClear !== void 0 ? s.value.valueOnClear : In), p = (l) => r.value.includes(l);
|
|
123
|
+
return r.value.includes(a.value) || Dt(Mn, "value-on-clear should be a value of empty-values"), {
|
|
124
|
+
emptyValues: r,
|
|
125
|
+
valueOnClear: a,
|
|
126
|
+
isEmptyValue: p
|
|
127
|
+
};
|
|
128
|
+
}, q = /* @__PURE__ */ new Map();
|
|
129
|
+
if (tt) {
|
|
130
|
+
let e;
|
|
131
|
+
document.addEventListener("mousedown", (n) => e = n), document.addEventListener("mouseup", (n) => {
|
|
132
|
+
if (e) {
|
|
133
|
+
for (const s of q.values())
|
|
134
|
+
for (const { documentHandler: r } of s)
|
|
135
|
+
r(n, e);
|
|
136
|
+
e = void 0;
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
function It(e, n) {
|
|
141
|
+
let s = [];
|
|
142
|
+
return Array.isArray(n.arg) ? s = n.arg : Ml(n.arg) && s.push(n.arg), function(r, a) {
|
|
143
|
+
const p = n.instance.popperRef, l = r.target, d = a == null ? void 0 : a.target, i = !n || !n.instance, v = !l || !d, b = e.contains(l) || e.contains(d), w = e === l, I = s.length && s.some((C) => C == null ? void 0 : C.contains(l)) || s.length && s.includes(d), y = p && (p.contains(l) || p.contains(d));
|
|
144
|
+
i || v || b || w || I || y || n.value(r, a);
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
const kn = {
|
|
148
|
+
beforeMount(e, n) {
|
|
149
|
+
q.has(e) || q.set(e, []), q.get(e).push({
|
|
150
|
+
documentHandler: It(e, n),
|
|
151
|
+
bindingFn: n.value
|
|
152
|
+
});
|
|
153
|
+
},
|
|
154
|
+
updated(e, n) {
|
|
155
|
+
q.has(e) || q.set(e, []);
|
|
156
|
+
const s = q.get(e), r = s.findIndex((p) => p.bindingFn === n.oldValue), a = {
|
|
157
|
+
documentHandler: It(e, n),
|
|
158
|
+
bindingFn: n.value
|
|
159
|
+
};
|
|
160
|
+
r >= 0 ? s.splice(r, 1, a) : s.push(a);
|
|
161
|
+
},
|
|
162
|
+
unmounted(e) {
|
|
163
|
+
q.delete(e);
|
|
164
|
+
}
|
|
165
|
+
}, et = lt({
|
|
166
|
+
type: {
|
|
167
|
+
type: String,
|
|
168
|
+
values: ["primary", "success", "info", "warning", "danger"],
|
|
169
|
+
default: "primary"
|
|
170
|
+
},
|
|
171
|
+
closable: Boolean,
|
|
172
|
+
disableTransitions: Boolean,
|
|
173
|
+
hit: Boolean,
|
|
174
|
+
color: String,
|
|
175
|
+
size: {
|
|
176
|
+
type: String,
|
|
177
|
+
values: Nl
|
|
178
|
+
},
|
|
179
|
+
effect: {
|
|
180
|
+
type: String,
|
|
181
|
+
values: ["dark", "light", "plain"],
|
|
182
|
+
default: "light"
|
|
183
|
+
},
|
|
184
|
+
round: Boolean
|
|
185
|
+
}), Rn = {
|
|
186
|
+
close: (e) => e instanceof MouseEvent,
|
|
187
|
+
click: (e) => e instanceof MouseEvent
|
|
188
|
+
}, Dn = X({
|
|
189
|
+
name: "ElTag"
|
|
190
|
+
}), $n = /* @__PURE__ */ X({
|
|
191
|
+
...Dn,
|
|
192
|
+
props: et,
|
|
193
|
+
emits: Rn,
|
|
194
|
+
setup(e, { emit: n }) {
|
|
195
|
+
const s = e, r = Lt(), a = ve("tag"), p = g(() => {
|
|
196
|
+
const { type: i, hit: v, effect: b, closable: w, round: I } = s;
|
|
197
|
+
return [
|
|
198
|
+
a.b(),
|
|
199
|
+
a.is("closable", w),
|
|
200
|
+
a.m(i || "primary"),
|
|
201
|
+
a.m(r.value),
|
|
202
|
+
a.m(b),
|
|
203
|
+
a.is("hit", v),
|
|
204
|
+
a.is("round", I)
|
|
205
|
+
];
|
|
206
|
+
}), l = (i) => {
|
|
207
|
+
n("close", i);
|
|
208
|
+
}, d = (i) => {
|
|
209
|
+
n("click", i);
|
|
210
|
+
};
|
|
211
|
+
return (i, v) => i.disableTransitions ? (f(), M("span", {
|
|
212
|
+
key: 0,
|
|
213
|
+
class: h(R(p)),
|
|
214
|
+
style: pe({ backgroundColor: i.color }),
|
|
215
|
+
onClick: d
|
|
216
|
+
}, [
|
|
217
|
+
u("span", {
|
|
218
|
+
class: h(R(a).e("content"))
|
|
219
|
+
}, [
|
|
220
|
+
A(i.$slots, "default")
|
|
221
|
+
], 2),
|
|
222
|
+
i.closable ? (f(), F(R(Ze), {
|
|
223
|
+
key: 0,
|
|
224
|
+
class: h(R(a).e("close")),
|
|
225
|
+
onClick: N(l, ["stop"])
|
|
226
|
+
}, {
|
|
227
|
+
default: $(() => [
|
|
228
|
+
L(R(Tt))
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["class", "onClick"])) : _("v-if", !0)
|
|
232
|
+
], 6)) : (f(), F(ql, {
|
|
233
|
+
key: 1,
|
|
234
|
+
name: `${R(a).namespace.value}-zoom-in-center`,
|
|
235
|
+
appear: ""
|
|
236
|
+
}, {
|
|
237
|
+
default: $(() => [
|
|
238
|
+
u("span", {
|
|
239
|
+
class: h(R(p)),
|
|
240
|
+
style: pe({ backgroundColor: i.color }),
|
|
241
|
+
onClick: d
|
|
242
|
+
}, [
|
|
243
|
+
u("span", {
|
|
244
|
+
class: h(R(a).e("content"))
|
|
245
|
+
}, [
|
|
246
|
+
A(i.$slots, "default")
|
|
247
|
+
], 2),
|
|
248
|
+
i.closable ? (f(), F(R(Ze), {
|
|
249
|
+
key: 0,
|
|
250
|
+
class: h(R(a).e("close")),
|
|
251
|
+
onClick: N(l, ["stop"])
|
|
252
|
+
}, {
|
|
253
|
+
default: $(() => [
|
|
254
|
+
L(R(Tt))
|
|
255
|
+
]),
|
|
256
|
+
_: 1
|
|
257
|
+
}, 8, ["class", "onClick"])) : _("v-if", !0)
|
|
258
|
+
], 6)
|
|
259
|
+
]),
|
|
260
|
+
_: 3
|
|
261
|
+
}, 8, ["name"]));
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
var _n = /* @__PURE__ */ Oe($n, [["__file", "tag.vue"]]);
|
|
265
|
+
const Bn = $t(_n);
|
|
266
|
+
function An(e, n) {
|
|
267
|
+
const s = we(He), r = we(zt, { disabled: !1 }), a = g(() => b(Y(s.props.modelValue), e.value)), p = g(() => {
|
|
268
|
+
var y;
|
|
269
|
+
if (s.props.multiple) {
|
|
270
|
+
const C = Y((y = s.props.modelValue) != null ? y : []);
|
|
271
|
+
return !a.value && C.length >= s.props.multipleLimit && s.props.multipleLimit > 0;
|
|
272
|
+
} else
|
|
273
|
+
return !1;
|
|
274
|
+
}), l = g(() => e.label || (ce(e.value) ? "" : e.value)), d = g(() => e.value || e.label || ""), i = g(() => e.disabled || n.groupDisabled || p.value), v = Pe(), b = (y = [], C) => {
|
|
275
|
+
if (ce(e.value)) {
|
|
276
|
+
const m = s.props.valueKey;
|
|
277
|
+
return y && y.some((k) => Nt(Q(k, m)) === Q(C, m));
|
|
278
|
+
} else
|
|
279
|
+
return y && y.includes(C);
|
|
280
|
+
}, w = () => {
|
|
281
|
+
!e.disabled && !r.disabled && (s.states.hoveringIndex = s.optionsArray.indexOf(v.proxy));
|
|
282
|
+
}, I = (y) => {
|
|
283
|
+
const C = new RegExp(Cn(y), "i");
|
|
284
|
+
n.visible = C.test(l.value) || e.created;
|
|
285
|
+
};
|
|
286
|
+
return oe(() => l.value, () => {
|
|
287
|
+
!e.created && !s.props.remote && s.setSelected();
|
|
288
|
+
}), oe(() => e.value, (y, C) => {
|
|
289
|
+
const { remote: m, valueKey: k } = s.props;
|
|
290
|
+
if (y !== C && (s.onOptionDestroy(C, v.proxy), s.onOptionCreate(v.proxy)), !e.created && !m) {
|
|
291
|
+
if (k && ce(y) && ce(C) && y[k] === C[k])
|
|
292
|
+
return;
|
|
293
|
+
s.setSelected();
|
|
294
|
+
}
|
|
295
|
+
}), oe(() => r.disabled, () => {
|
|
296
|
+
n.groupDisabled = r.disabled;
|
|
297
|
+
}, { immediate: !0 }), {
|
|
298
|
+
select: s,
|
|
299
|
+
currentLabel: l,
|
|
300
|
+
currentValue: d,
|
|
301
|
+
itemSelected: a,
|
|
302
|
+
isDisabled: i,
|
|
303
|
+
hoverItem: w,
|
|
304
|
+
updateOption: I
|
|
305
|
+
};
|
|
306
|
+
}
|
|
307
|
+
const Ln = X({
|
|
308
|
+
name: "ElOption",
|
|
309
|
+
componentName: "ElOption",
|
|
310
|
+
props: {
|
|
311
|
+
value: {
|
|
312
|
+
required: !0,
|
|
313
|
+
type: [String, Number, Boolean, Object]
|
|
314
|
+
},
|
|
315
|
+
label: [String, Number],
|
|
316
|
+
created: Boolean,
|
|
317
|
+
disabled: Boolean
|
|
318
|
+
},
|
|
319
|
+
setup(e) {
|
|
320
|
+
const n = ve("select"), s = _t(), r = g(() => [
|
|
321
|
+
n.be("dropdown", "item"),
|
|
322
|
+
n.is("disabled", R(d)),
|
|
323
|
+
n.is("selected", R(l)),
|
|
324
|
+
n.is("hovering", R(I))
|
|
325
|
+
]), a = Ne({
|
|
326
|
+
index: -1,
|
|
327
|
+
groupDisabled: !1,
|
|
328
|
+
visible: !0,
|
|
329
|
+
hover: !1
|
|
330
|
+
}), {
|
|
331
|
+
currentLabel: p,
|
|
332
|
+
itemSelected: l,
|
|
333
|
+
isDisabled: d,
|
|
334
|
+
select: i,
|
|
335
|
+
hoverItem: v,
|
|
336
|
+
updateOption: b
|
|
337
|
+
} = An(e, a), { visible: w, hover: I } = Ft(a), y = Pe().proxy;
|
|
338
|
+
i.onOptionCreate(y), Ql(() => {
|
|
339
|
+
const m = y.value, { selected: k } = i.states, P = (i.props.multiple ? k : [k]).some((ae) => ae.value === y.value);
|
|
340
|
+
ne(() => {
|
|
341
|
+
i.states.cachedOptions.get(m) === y && !P && i.states.cachedOptions.delete(m);
|
|
342
|
+
}), i.onOptionDestroy(m, y);
|
|
343
|
+
});
|
|
344
|
+
function C() {
|
|
345
|
+
d.value || i.handleOptionSelect(y);
|
|
346
|
+
}
|
|
347
|
+
return {
|
|
348
|
+
ns: n,
|
|
349
|
+
id: s,
|
|
350
|
+
containerKls: r,
|
|
351
|
+
currentLabel: p,
|
|
352
|
+
itemSelected: l,
|
|
353
|
+
isDisabled: d,
|
|
354
|
+
select: i,
|
|
355
|
+
hoverItem: v,
|
|
356
|
+
updateOption: b,
|
|
357
|
+
visible: w,
|
|
358
|
+
hover: I,
|
|
359
|
+
selectOptionClick: C,
|
|
360
|
+
states: a
|
|
361
|
+
};
|
|
362
|
+
}
|
|
363
|
+
});
|
|
364
|
+
function Pn(e, n, s, r, a, p) {
|
|
365
|
+
return Ce((f(), M("li", {
|
|
366
|
+
id: e.id,
|
|
367
|
+
class: h(e.containerKls),
|
|
368
|
+
role: "option",
|
|
369
|
+
"aria-disabled": e.isDisabled || void 0,
|
|
370
|
+
"aria-selected": e.itemSelected,
|
|
371
|
+
onMouseenter: e.hoverItem,
|
|
372
|
+
onClick: N(e.selectOptionClick, ["stop"])
|
|
373
|
+
}, [
|
|
374
|
+
A(e.$slots, "default", {}, () => [
|
|
375
|
+
u("span", null, H(e.currentLabel), 1)
|
|
376
|
+
])
|
|
377
|
+
], 42, ["id", "aria-disabled", "aria-selected", "onMouseenter", "onClick"])), [
|
|
378
|
+
[nt, e.visible]
|
|
379
|
+
]);
|
|
380
|
+
}
|
|
381
|
+
var st = /* @__PURE__ */ Oe(Ln, [["render", Pn], ["__file", "option.vue"]]);
|
|
382
|
+
const Nn = X({
|
|
383
|
+
name: "ElSelectDropdown",
|
|
384
|
+
componentName: "ElSelectDropdown",
|
|
385
|
+
setup() {
|
|
386
|
+
const e = we(He), n = ve("select"), s = g(() => e.props.popperClass), r = g(() => e.props.multiple), a = g(() => e.props.fitInputWidth), p = T("");
|
|
387
|
+
function l() {
|
|
388
|
+
var d;
|
|
389
|
+
p.value = `${(d = e.selectRef) == null ? void 0 : d.offsetWidth}px`;
|
|
390
|
+
}
|
|
391
|
+
return Fe(() => {
|
|
392
|
+
l(), le(e.selectRef, l);
|
|
393
|
+
}), {
|
|
394
|
+
ns: n,
|
|
395
|
+
minWidth: p,
|
|
396
|
+
popperClass: s,
|
|
397
|
+
isMultiple: r,
|
|
398
|
+
isFitInputWidth: a
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
function Fn(e, n, s, r, a, p) {
|
|
403
|
+
return f(), M("div", {
|
|
404
|
+
class: h([e.ns.b("dropdown"), e.ns.is("multiple", e.isMultiple), e.popperClass]),
|
|
405
|
+
style: pe({ [e.isFitInputWidth ? "width" : "minWidth"]: e.minWidth })
|
|
406
|
+
}, [
|
|
407
|
+
e.$slots.header ? (f(), M("div", {
|
|
408
|
+
key: 0,
|
|
409
|
+
class: h(e.ns.be("dropdown", "header"))
|
|
410
|
+
}, [
|
|
411
|
+
A(e.$slots, "header")
|
|
412
|
+
], 2)) : _("v-if", !0),
|
|
413
|
+
A(e.$slots, "default"),
|
|
414
|
+
e.$slots.footer ? (f(), M("div", {
|
|
415
|
+
key: 1,
|
|
416
|
+
class: h(e.ns.be("dropdown", "footer"))
|
|
417
|
+
}, [
|
|
418
|
+
A(e.$slots, "footer")
|
|
419
|
+
], 2)) : _("v-if", !0)
|
|
420
|
+
], 6);
|
|
421
|
+
}
|
|
422
|
+
var Hn = /* @__PURE__ */ Oe(Nn, [["render", Fn], ["__file", "select-dropdown.vue"]]);
|
|
423
|
+
const zn = 11, Wn = (e, n) => {
|
|
424
|
+
const { t: s } = ln(), r = _t(), a = ve("select"), p = ve("input"), l = Ne({
|
|
425
|
+
inputValue: "",
|
|
426
|
+
options: /* @__PURE__ */ new Map(),
|
|
427
|
+
cachedOptions: /* @__PURE__ */ new Map(),
|
|
428
|
+
disabledOptions: /* @__PURE__ */ new Map(),
|
|
429
|
+
optionValues: [],
|
|
430
|
+
selected: e.multiple ? [] : {},
|
|
431
|
+
selectionWidth: 0,
|
|
432
|
+
calculatorWidth: 0,
|
|
433
|
+
collapseItemWidth: 0,
|
|
434
|
+
selectedLabel: "",
|
|
435
|
+
hoveringIndex: -1,
|
|
436
|
+
previousQuery: null,
|
|
437
|
+
inputHovering: !1,
|
|
438
|
+
menuVisibleOnFocus: !1,
|
|
439
|
+
isBeforeHide: !1
|
|
440
|
+
}), d = T(null), i = T(null), v = T(null), b = T(null), w = T(null), I = T(null), y = T(null), C = T(null), m = T(null), k = T(null), j = T(null), P = T(null), {
|
|
441
|
+
isComposing: ae,
|
|
442
|
+
handleCompositionStart: Me,
|
|
443
|
+
handleCompositionUpdate: Te,
|
|
444
|
+
handleCompositionEnd: U
|
|
445
|
+
} = Fl({
|
|
446
|
+
afterComposition: (t) => ft(t)
|
|
447
|
+
}), { wrapperRef: Ie, isFocused: me, handleBlur: ze } = Hl(w, {
|
|
448
|
+
afterFocus() {
|
|
449
|
+
e.automaticDropdown && !E.value && (E.value = !0, l.menuVisibleOnFocus = !0);
|
|
450
|
+
},
|
|
451
|
+
beforeBlur(t) {
|
|
452
|
+
var o, S;
|
|
453
|
+
return ((o = v.value) == null ? void 0 : o.isFocusInsideContent(t)) || ((S = b.value) == null ? void 0 : S.isFocusInsideContent(t));
|
|
454
|
+
},
|
|
455
|
+
afterBlur() {
|
|
456
|
+
E.value = !1, l.menuVisibleOnFocus = !1;
|
|
457
|
+
}
|
|
458
|
+
}), E = T(!1), z = T(), { form: Ve, formItem: Z } = zl(), { inputId: We } = Wl(e, {
|
|
459
|
+
formItemContext: Z
|
|
460
|
+
}), { valueOnClear: Ke, isEmptyValue: Ue } = En(e), ie = g(() => e.disabled || (Ve == null ? void 0 : Ve.disabled)), he = g(() => se(e.modelValue) ? e.modelValue.length > 0 : !Ue(e.modelValue)), c = g(() => e.clearable && !ie.value && l.inputHovering && he.value), D = g(() => e.remote && e.filterable && !e.remoteShowSuffix ? "" : e.suffixIcon), Ge = g(() => a.is("reverse", D.value && E.value)), ge = g(() => (Z == null ? void 0 : Z.validateState) || ""), Ee = g(() => Kl[ge.value]), qe = g(() => e.remote ? 300 : 0), ke = g(() => e.loading ? e.loadingText || s("el.select.loading") : e.remote && !l.inputValue && l.options.size === 0 ? !1 : e.filterable && l.inputValue && l.options.size > 0 && O.value === 0 ? e.noMatchText || s("el.select.noMatch") : l.options.size === 0 ? e.noDataText || s("el.select.noData") : null), O = g(() => B.value.filter((t) => t.visible).length), B = g(() => {
|
|
461
|
+
const t = Array.from(l.options.values()), o = [];
|
|
462
|
+
return l.optionValues.forEach((S) => {
|
|
463
|
+
const V = t.findIndex((G) => G.value === S);
|
|
464
|
+
V > -1 && o.push(t[V]);
|
|
465
|
+
}), o.length >= t.length ? o : t;
|
|
466
|
+
}), qt = g(() => Array.from(l.cachedOptions.values())), Qt = g(() => {
|
|
467
|
+
const t = B.value.filter((o) => !o.created).some((o) => o.currentLabel === l.inputValue);
|
|
468
|
+
return e.filterable && e.allowCreate && l.inputValue !== "" && !t;
|
|
469
|
+
}), ot = () => {
|
|
470
|
+
e.filterable && J(e.filterMethod) || e.filterable && e.remote && J(e.remoteMethod) || B.value.forEach((t) => {
|
|
471
|
+
var o;
|
|
472
|
+
(o = t.updateOption) == null || o.call(t, l.inputValue);
|
|
473
|
+
});
|
|
474
|
+
}, at = Lt(), Yt = g(() => ["small"].includes(at.value) ? "small" : "default"), Jt = g({
|
|
475
|
+
get() {
|
|
476
|
+
return E.value && ke.value !== !1;
|
|
477
|
+
},
|
|
478
|
+
set(t) {
|
|
479
|
+
E.value = t;
|
|
480
|
+
}
|
|
481
|
+
}), Xt = g(() => {
|
|
482
|
+
if (e.multiple && !Ae(e.modelValue))
|
|
483
|
+
return Y(e.modelValue).length === 0 && !l.inputValue;
|
|
484
|
+
const t = se(e.modelValue) ? e.modelValue[0] : e.modelValue;
|
|
485
|
+
return e.filterable || Ae(t) ? !l.inputValue : !0;
|
|
486
|
+
}), jt = g(() => {
|
|
487
|
+
var t;
|
|
488
|
+
const o = (t = e.placeholder) != null ? t : s("el.select.placeholder");
|
|
489
|
+
return e.multiple || !he.value ? o : l.selectedLabel;
|
|
490
|
+
}), Zt = g(() => Ct ? null : "mouseenter");
|
|
491
|
+
oe(() => e.modelValue, (t, o) => {
|
|
492
|
+
e.multiple && e.filterable && !e.reserveKeyword && (l.inputValue = "", Re("")), De(), !xe(t, o) && e.validateEvent && (Z == null || Z.validate("change").catch((S) => Dt(S)));
|
|
493
|
+
}, {
|
|
494
|
+
flush: "post",
|
|
495
|
+
deep: !0
|
|
496
|
+
}), oe(() => E.value, (t) => {
|
|
497
|
+
t ? Re(l.inputValue) : (l.inputValue = "", l.previousQuery = null, l.isBeforeHide = !0), n("visible-change", t);
|
|
498
|
+
}), oe(() => l.options.entries(), () => {
|
|
499
|
+
var t;
|
|
500
|
+
if (!tt)
|
|
501
|
+
return;
|
|
502
|
+
const o = ((t = d.value) == null ? void 0 : t.querySelectorAll("input")) || [];
|
|
503
|
+
(!e.filterable && !e.defaultFirstOption && !Ae(e.modelValue) || !Array.from(o).includes(document.activeElement)) && De(), e.defaultFirstOption && (e.filterable || e.remote) && O.value && it();
|
|
504
|
+
}, {
|
|
505
|
+
flush: "post"
|
|
506
|
+
}), oe(() => l.hoveringIndex, (t) => {
|
|
507
|
+
Tl(t) && t > -1 ? z.value = B.value[t] || {} : z.value = {}, B.value.forEach((o) => {
|
|
508
|
+
o.hover = z.value === o;
|
|
509
|
+
});
|
|
510
|
+
}), Yl(() => {
|
|
511
|
+
l.isBeforeHide || ot();
|
|
512
|
+
});
|
|
513
|
+
const Re = (t) => {
|
|
514
|
+
l.previousQuery === t || ae.value || (l.previousQuery = t, e.filterable && J(e.filterMethod) ? e.filterMethod(t) : e.filterable && e.remote && J(e.remoteMethod) && e.remoteMethod(t), e.defaultFirstOption && (e.filterable || e.remote) && O.value ? ne(it) : ne(xt));
|
|
515
|
+
}, it = () => {
|
|
516
|
+
const t = B.value.filter((V) => V.visible && !V.disabled && !V.states.groupDisabled), o = t.find((V) => V.created), S = t[0];
|
|
517
|
+
l.hoveringIndex = ht(B.value, o || S);
|
|
518
|
+
}, De = () => {
|
|
519
|
+
if (e.multiple)
|
|
520
|
+
l.selectedLabel = "";
|
|
521
|
+
else {
|
|
522
|
+
const o = se(e.modelValue) ? e.modelValue[0] : e.modelValue, S = ut(o);
|
|
523
|
+
l.selectedLabel = S.currentLabel, l.selected = S;
|
|
524
|
+
return;
|
|
525
|
+
}
|
|
526
|
+
const t = [];
|
|
527
|
+
Ae(e.modelValue) || Y(e.modelValue).forEach((o) => {
|
|
528
|
+
t.push(ut(o));
|
|
529
|
+
}), l.selected = t;
|
|
530
|
+
}, ut = (t) => {
|
|
531
|
+
let o;
|
|
532
|
+
const S = Ye(t).toLowerCase() === "object", V = Ye(t).toLowerCase() === "null", G = Ye(t).toLowerCase() === "undefined";
|
|
533
|
+
for (let x = l.cachedOptions.size - 1; x >= 0; x--) {
|
|
534
|
+
const W = qt.value[x];
|
|
535
|
+
if (S ? Q(W.value, e.valueKey) === Q(t, e.valueKey) : W.value === t) {
|
|
536
|
+
o = {
|
|
537
|
+
value: t,
|
|
538
|
+
currentLabel: W.currentLabel,
|
|
539
|
+
get isDisabled() {
|
|
540
|
+
return W.isDisabled;
|
|
541
|
+
}
|
|
542
|
+
};
|
|
543
|
+
break;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
if (o)
|
|
547
|
+
return o;
|
|
548
|
+
const ue = S ? t.label : !V && !G ? t : "";
|
|
549
|
+
return {
|
|
550
|
+
value: t,
|
|
551
|
+
currentLabel: ue
|
|
552
|
+
};
|
|
553
|
+
}, xt = () => {
|
|
554
|
+
e.multiple ? l.hoveringIndex = B.value.findIndex((t) => l.selected.some((o) => ye(o) === ye(t))) : l.hoveringIndex = B.value.findIndex((t) => ye(t) === ye(l.selected));
|
|
555
|
+
}, el = () => {
|
|
556
|
+
l.selectionWidth = i.value.getBoundingClientRect().width;
|
|
557
|
+
}, rt = () => {
|
|
558
|
+
l.calculatorWidth = I.value.getBoundingClientRect().width;
|
|
559
|
+
}, tl = () => {
|
|
560
|
+
l.collapseItemWidth = j.value.getBoundingClientRect().width;
|
|
561
|
+
}, Qe = () => {
|
|
562
|
+
var t, o;
|
|
563
|
+
(o = (t = v.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
|
|
564
|
+
}, ct = () => {
|
|
565
|
+
var t, o;
|
|
566
|
+
(o = (t = b.value) == null ? void 0 : t.updatePopper) == null || o.call(t);
|
|
567
|
+
}, dt = () => {
|
|
568
|
+
l.inputValue.length > 0 && !E.value && (E.value = !0), Re(l.inputValue);
|
|
569
|
+
}, ft = (t) => {
|
|
570
|
+
if (l.inputValue = t.target.value, e.remote)
|
|
571
|
+
pt();
|
|
572
|
+
else
|
|
573
|
+
return dt();
|
|
574
|
+
}, pt = on(() => {
|
|
575
|
+
dt();
|
|
576
|
+
}, qe.value), be = (t) => {
|
|
577
|
+
xe(e.modelValue, t) || n(Pt, t);
|
|
578
|
+
}, ll = (t) => Sn(t, (o) => !l.disabledOptions.has(o)), nl = (t) => {
|
|
579
|
+
if (e.multiple && t.code !== Il.delete && t.target.value.length <= 0) {
|
|
580
|
+
const o = Y(e.modelValue).slice(), S = ll(o);
|
|
581
|
+
if (S < 0)
|
|
582
|
+
return;
|
|
583
|
+
const V = o[S];
|
|
584
|
+
o.splice(S, 1), n(re, o), be(o), n("remove-tag", V);
|
|
585
|
+
}
|
|
586
|
+
}, sl = (t, o) => {
|
|
587
|
+
const S = l.selected.indexOf(o);
|
|
588
|
+
if (S > -1 && !ie.value) {
|
|
589
|
+
const V = Y(e.modelValue).slice();
|
|
590
|
+
V.splice(S, 1), n(re, V), be(V), n("remove-tag", o.value);
|
|
591
|
+
}
|
|
592
|
+
t.stopPropagation(), _e();
|
|
593
|
+
}, vt = (t) => {
|
|
594
|
+
t.stopPropagation();
|
|
595
|
+
const o = e.multiple ? [] : Ke.value;
|
|
596
|
+
if (e.multiple)
|
|
597
|
+
for (const S of l.selected)
|
|
598
|
+
S.isDisabled && o.push(S.value);
|
|
599
|
+
n(re, o), be(o), l.hoveringIndex = -1, E.value = !1, n("clear"), _e();
|
|
600
|
+
}, mt = (t) => {
|
|
601
|
+
var o;
|
|
602
|
+
if (e.multiple) {
|
|
603
|
+
const S = Y((o = e.modelValue) != null ? o : []).slice(), V = ht(S, t.value);
|
|
604
|
+
V > -1 ? S.splice(V, 1) : (e.multipleLimit <= 0 || S.length < e.multipleLimit) && S.push(t.value), n(re, S), be(S), t.created && Re(""), e.filterable && !e.reserveKeyword && (l.inputValue = "");
|
|
605
|
+
} else
|
|
606
|
+
n(re, t.value), be(t.value), E.value = !1;
|
|
607
|
+
_e(), !E.value && ne(() => {
|
|
608
|
+
$e(t);
|
|
609
|
+
});
|
|
610
|
+
}, ht = (t = [], o) => {
|
|
611
|
+
if (!ce(o))
|
|
612
|
+
return t.indexOf(o);
|
|
613
|
+
const S = e.valueKey;
|
|
614
|
+
let V = -1;
|
|
615
|
+
return t.some((G, ue) => Nt(Q(G, S)) === Q(o, S) ? (V = ue, !0) : !1), V;
|
|
616
|
+
}, $e = (t) => {
|
|
617
|
+
var o, S, V, G, ue;
|
|
618
|
+
const Be = se(t) ? t[0] : t;
|
|
619
|
+
let x = null;
|
|
620
|
+
if (Be != null && Be.value) {
|
|
621
|
+
const W = B.value.filter((St) => St.value === Be.value);
|
|
622
|
+
W.length > 0 && (x = W[0].$el);
|
|
623
|
+
}
|
|
624
|
+
if (v.value && x) {
|
|
625
|
+
const W = (G = (V = (S = (o = v.value) == null ? void 0 : o.popperRef) == null ? void 0 : S.contentRef) == null ? void 0 : V.querySelector) == null ? void 0 : G.call(V, `.${a.be("dropdown", "wrap")}`);
|
|
626
|
+
W && wn(W, x);
|
|
627
|
+
}
|
|
628
|
+
(ue = P.value) == null || ue.handleScroll();
|
|
629
|
+
}, ol = (t) => {
|
|
630
|
+
l.options.set(t.value, t), l.cachedOptions.set(t.value, t), t.disabled && l.disabledOptions.set(t.value, t);
|
|
631
|
+
}, al = (t, o) => {
|
|
632
|
+
l.options.get(t) === o && l.options.delete(t);
|
|
633
|
+
}, il = g(() => {
|
|
634
|
+
var t, o;
|
|
635
|
+
return (o = (t = v.value) == null ? void 0 : t.popperRef) == null ? void 0 : o.contentRef;
|
|
636
|
+
}), ul = () => {
|
|
637
|
+
l.isBeforeHide = !1, ne(() => $e(l.selected));
|
|
638
|
+
}, _e = () => {
|
|
639
|
+
var t;
|
|
640
|
+
(t = w.value) == null || t.focus();
|
|
641
|
+
}, rl = () => {
|
|
642
|
+
gt();
|
|
643
|
+
}, cl = (t) => {
|
|
644
|
+
vt(t);
|
|
645
|
+
}, gt = (t) => {
|
|
646
|
+
if (E.value = !1, me.value) {
|
|
647
|
+
const o = new FocusEvent("focus", t);
|
|
648
|
+
ne(() => ze(o));
|
|
649
|
+
}
|
|
650
|
+
}, dl = () => {
|
|
651
|
+
l.inputValue.length > 0 ? l.inputValue = "" : E.value = !1;
|
|
652
|
+
}, bt = () => {
|
|
653
|
+
ie.value || (Ct && (l.inputHovering = !0), l.menuVisibleOnFocus ? l.menuVisibleOnFocus = !1 : E.value = !E.value);
|
|
654
|
+
}, fl = () => {
|
|
655
|
+
E.value ? B.value[l.hoveringIndex] && mt(B.value[l.hoveringIndex]) : bt();
|
|
656
|
+
}, ye = (t) => ce(t.value) ? Q(t.value, e.valueKey) : t.value, pl = g(() => B.value.filter((t) => t.visible).every((t) => t.disabled)), vl = g(() => e.multiple ? e.collapseTags ? l.selected.slice(0, e.maxCollapseTags) : l.selected : []), ml = g(() => e.multiple ? e.collapseTags ? l.selected.slice(e.maxCollapseTags) : [] : []), yt = (t) => {
|
|
657
|
+
if (!E.value) {
|
|
658
|
+
E.value = !0;
|
|
659
|
+
return;
|
|
660
|
+
}
|
|
661
|
+
if (!(l.options.size === 0 || l.filteredOptionsCount === 0 || ae.value) && !pl.value) {
|
|
662
|
+
t === "next" ? (l.hoveringIndex++, l.hoveringIndex === l.options.size && (l.hoveringIndex = 0)) : t === "prev" && (l.hoveringIndex--, l.hoveringIndex < 0 && (l.hoveringIndex = l.options.size - 1));
|
|
663
|
+
const o = B.value[l.hoveringIndex];
|
|
664
|
+
(o.disabled === !0 || o.states.groupDisabled === !0 || !o.visible) && yt(t), ne(() => $e(z.value));
|
|
665
|
+
}
|
|
666
|
+
}, hl = () => {
|
|
667
|
+
if (!i.value)
|
|
668
|
+
return 0;
|
|
669
|
+
const t = window.getComputedStyle(i.value);
|
|
670
|
+
return Number.parseFloat(t.gap || "6px");
|
|
671
|
+
}, gl = g(() => {
|
|
672
|
+
const t = hl();
|
|
673
|
+
return { maxWidth: `${j.value && e.maxCollapseTags === 1 ? l.selectionWidth - l.collapseItemWidth - t : l.selectionWidth}px` };
|
|
674
|
+
}), bl = g(() => ({ maxWidth: `${l.selectionWidth}px` })), yl = g(() => ({
|
|
675
|
+
width: `${Math.max(l.calculatorWidth, zn)}px`
|
|
676
|
+
}));
|
|
677
|
+
return le(i, el), le(I, rt), le(m, Qe), le(Ie, Qe), le(k, ct), le(j, tl), Fe(() => {
|
|
678
|
+
De();
|
|
679
|
+
}), {
|
|
680
|
+
inputId: We,
|
|
681
|
+
contentId: r,
|
|
682
|
+
nsSelect: a,
|
|
683
|
+
nsInput: p,
|
|
684
|
+
states: l,
|
|
685
|
+
isFocused: me,
|
|
686
|
+
expanded: E,
|
|
687
|
+
optionsArray: B,
|
|
688
|
+
hoverOption: z,
|
|
689
|
+
selectSize: at,
|
|
690
|
+
filteredOptionsCount: O,
|
|
691
|
+
resetCalculatorWidth: rt,
|
|
692
|
+
updateTooltip: Qe,
|
|
693
|
+
updateTagTooltip: ct,
|
|
694
|
+
debouncedOnInputChange: pt,
|
|
695
|
+
onInput: ft,
|
|
696
|
+
deletePrevTag: nl,
|
|
697
|
+
deleteTag: sl,
|
|
698
|
+
deleteSelected: vt,
|
|
699
|
+
handleOptionSelect: mt,
|
|
700
|
+
scrollToOption: $e,
|
|
701
|
+
hasModelValue: he,
|
|
702
|
+
shouldShowPlaceholder: Xt,
|
|
703
|
+
currentPlaceholder: jt,
|
|
704
|
+
mouseEnterEventName: Zt,
|
|
705
|
+
showClose: c,
|
|
706
|
+
iconComponent: D,
|
|
707
|
+
iconReverse: Ge,
|
|
708
|
+
validateState: ge,
|
|
709
|
+
validateIcon: Ee,
|
|
710
|
+
showNewOption: Qt,
|
|
711
|
+
updateOptions: ot,
|
|
712
|
+
collapseTagSize: Yt,
|
|
713
|
+
setSelected: De,
|
|
714
|
+
selectDisabled: ie,
|
|
715
|
+
emptyText: ke,
|
|
716
|
+
handleCompositionStart: Me,
|
|
717
|
+
handleCompositionUpdate: Te,
|
|
718
|
+
handleCompositionEnd: U,
|
|
719
|
+
onOptionCreate: ol,
|
|
720
|
+
onOptionDestroy: al,
|
|
721
|
+
handleMenuEnter: ul,
|
|
722
|
+
focus: _e,
|
|
723
|
+
blur: rl,
|
|
724
|
+
handleClearClick: cl,
|
|
725
|
+
handleClickOutside: gt,
|
|
726
|
+
handleEsc: dl,
|
|
727
|
+
toggleMenu: bt,
|
|
728
|
+
selectOption: fl,
|
|
729
|
+
getValueKey: ye,
|
|
730
|
+
navigateOptions: yt,
|
|
731
|
+
dropdownMenuVisible: Jt,
|
|
732
|
+
showTagList: vl,
|
|
733
|
+
collapseTagList: ml,
|
|
734
|
+
tagStyle: gl,
|
|
735
|
+
collapseTagStyle: bl,
|
|
736
|
+
inputStyle: yl,
|
|
737
|
+
popperRef: il,
|
|
738
|
+
inputRef: w,
|
|
739
|
+
tooltipRef: v,
|
|
740
|
+
tagTooltipRef: b,
|
|
741
|
+
calculatorRef: I,
|
|
742
|
+
prefixRef: y,
|
|
743
|
+
suffixRef: C,
|
|
744
|
+
selectRef: d,
|
|
745
|
+
wrapperRef: Ie,
|
|
746
|
+
selectionRef: i,
|
|
747
|
+
scrollbarRef: P,
|
|
748
|
+
menuRef: m,
|
|
749
|
+
tagMenuRef: k,
|
|
750
|
+
collapseItemRef: j
|
|
751
|
+
};
|
|
752
|
+
};
|
|
753
|
+
var Kn = X({
|
|
754
|
+
name: "ElOptions",
|
|
755
|
+
setup(e, { slots: n }) {
|
|
756
|
+
const s = we(He);
|
|
757
|
+
let r = [];
|
|
758
|
+
return () => {
|
|
759
|
+
var a, p;
|
|
760
|
+
const l = (a = n.default) == null ? void 0 : a.call(n), d = [];
|
|
761
|
+
function i(v) {
|
|
762
|
+
se(v) && v.forEach((b) => {
|
|
763
|
+
var w, I, y, C;
|
|
764
|
+
const m = (w = (b == null ? void 0 : b.type) || {}) == null ? void 0 : w.name;
|
|
765
|
+
m === "ElOptionGroup" ? i(!Vl(b.children) && !se(b.children) && J((I = b.children) == null ? void 0 : I.default) ? (y = b.children) == null ? void 0 : y.default() : b.children) : m === "ElOption" ? d.push((C = b.props) == null ? void 0 : C.value) : se(b.children) && i(b.children);
|
|
766
|
+
});
|
|
767
|
+
}
|
|
768
|
+
return l.length && i((p = l[0]) == null ? void 0 : p.children), xe(d, r) || (r = d, s && (s.states.optionValues = d)), l;
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
});
|
|
772
|
+
const Un = lt({
|
|
773
|
+
name: String,
|
|
774
|
+
id: String,
|
|
775
|
+
modelValue: {
|
|
776
|
+
type: [Array, String, Number, Boolean, Object],
|
|
777
|
+
default: void 0
|
|
778
|
+
},
|
|
779
|
+
autocomplete: {
|
|
780
|
+
type: String,
|
|
781
|
+
default: "off"
|
|
782
|
+
},
|
|
783
|
+
automaticDropdown: Boolean,
|
|
784
|
+
size: Ul,
|
|
785
|
+
effect: {
|
|
786
|
+
type: Le(String),
|
|
787
|
+
default: "light"
|
|
788
|
+
},
|
|
789
|
+
disabled: Boolean,
|
|
790
|
+
clearable: Boolean,
|
|
791
|
+
filterable: Boolean,
|
|
792
|
+
allowCreate: Boolean,
|
|
793
|
+
loading: Boolean,
|
|
794
|
+
popperClass: {
|
|
795
|
+
type: String,
|
|
796
|
+
default: ""
|
|
797
|
+
},
|
|
798
|
+
popperOptions: {
|
|
799
|
+
type: Le(Object),
|
|
800
|
+
default: () => ({})
|
|
801
|
+
},
|
|
802
|
+
remote: Boolean,
|
|
803
|
+
loadingText: String,
|
|
804
|
+
noMatchText: String,
|
|
805
|
+
noDataText: String,
|
|
806
|
+
remoteMethod: Function,
|
|
807
|
+
filterMethod: Function,
|
|
808
|
+
multiple: Boolean,
|
|
809
|
+
multipleLimit: {
|
|
810
|
+
type: Number,
|
|
811
|
+
default: 0
|
|
812
|
+
},
|
|
813
|
+
placeholder: {
|
|
814
|
+
type: String
|
|
815
|
+
},
|
|
816
|
+
defaultFirstOption: Boolean,
|
|
817
|
+
reserveKeyword: {
|
|
818
|
+
type: Boolean,
|
|
819
|
+
default: !0
|
|
820
|
+
},
|
|
821
|
+
valueKey: {
|
|
822
|
+
type: String,
|
|
823
|
+
default: "value"
|
|
824
|
+
},
|
|
825
|
+
collapseTags: Boolean,
|
|
826
|
+
collapseTagsTooltip: Boolean,
|
|
827
|
+
maxCollapseTags: {
|
|
828
|
+
type: Number,
|
|
829
|
+
default: 1
|
|
830
|
+
},
|
|
831
|
+
teleported: El.teleported,
|
|
832
|
+
persistent: {
|
|
833
|
+
type: Boolean,
|
|
834
|
+
default: !0
|
|
835
|
+
},
|
|
836
|
+
clearIcon: {
|
|
837
|
+
type: wt,
|
|
838
|
+
default: en
|
|
839
|
+
},
|
|
840
|
+
fitInputWidth: Boolean,
|
|
841
|
+
suffixIcon: {
|
|
842
|
+
type: wt,
|
|
843
|
+
default: tn
|
|
844
|
+
},
|
|
845
|
+
tagType: { ...et.type, default: "info" },
|
|
846
|
+
tagEffect: { ...et.effect, default: "light" },
|
|
847
|
+
validateEvent: {
|
|
848
|
+
type: Boolean,
|
|
849
|
+
default: !0
|
|
850
|
+
},
|
|
851
|
+
remoteShowSuffix: Boolean,
|
|
852
|
+
placement: {
|
|
853
|
+
type: Le(String),
|
|
854
|
+
values: kl,
|
|
855
|
+
default: "bottom-start"
|
|
856
|
+
},
|
|
857
|
+
fallbackPlacements: {
|
|
858
|
+
type: Le(Array),
|
|
859
|
+
default: ["bottom-start", "top-start", "right", "left"]
|
|
860
|
+
},
|
|
861
|
+
...Vn,
|
|
862
|
+
...Rl(["ariaLabel"])
|
|
863
|
+
}), Vt = "ElSelect", Gn = X({
|
|
864
|
+
name: Vt,
|
|
865
|
+
componentName: Vt,
|
|
866
|
+
components: {
|
|
867
|
+
ElSelectMenu: Hn,
|
|
868
|
+
ElOption: st,
|
|
869
|
+
ElOptions: Kn,
|
|
870
|
+
ElTag: Bn,
|
|
871
|
+
ElScrollbar: Bt,
|
|
872
|
+
ElTooltip: Dl,
|
|
873
|
+
ElIcon: Ze
|
|
874
|
+
},
|
|
875
|
+
directives: { ClickOutside: kn },
|
|
876
|
+
props: Un,
|
|
877
|
+
emits: [
|
|
878
|
+
re,
|
|
879
|
+
Pt,
|
|
880
|
+
"remove-tag",
|
|
881
|
+
"clear",
|
|
882
|
+
"visible-change",
|
|
883
|
+
"focus",
|
|
884
|
+
"blur"
|
|
885
|
+
],
|
|
886
|
+
setup(e, { emit: n }) {
|
|
887
|
+
const s = Wn(e, n);
|
|
888
|
+
return Ht(He, Ne({
|
|
889
|
+
props: e,
|
|
890
|
+
states: s.states,
|
|
891
|
+
optionsArray: s.optionsArray,
|
|
892
|
+
handleOptionSelect: s.handleOptionSelect,
|
|
893
|
+
onOptionCreate: s.onOptionCreate,
|
|
894
|
+
onOptionDestroy: s.onOptionDestroy,
|
|
895
|
+
selectRef: s.selectRef,
|
|
896
|
+
setSelected: s.setSelected
|
|
897
|
+
})), {
|
|
898
|
+
...s
|
|
899
|
+
};
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
function qn(e, n, s, r, a, p) {
|
|
903
|
+
const l = te("el-tag"), d = te("el-tooltip"), i = te("el-icon"), v = te("el-option"), b = te("el-options"), w = te("el-scrollbar"), I = te("el-select-menu"), y = Jl("click-outside");
|
|
904
|
+
return Ce((f(), M("div", {
|
|
905
|
+
ref: "selectRef",
|
|
906
|
+
class: h([e.nsSelect.b(), e.nsSelect.m(e.selectSize)]),
|
|
907
|
+
[Xl(e.mouseEnterEventName)]: (C) => e.states.inputHovering = !0,
|
|
908
|
+
onMouseleave: (C) => e.states.inputHovering = !1
|
|
909
|
+
}, [
|
|
910
|
+
L(d, {
|
|
911
|
+
ref: "tooltipRef",
|
|
912
|
+
visible: e.dropdownMenuVisible,
|
|
913
|
+
placement: e.placement,
|
|
914
|
+
teleported: e.teleported,
|
|
915
|
+
"popper-class": [e.nsSelect.e("popper"), e.popperClass],
|
|
916
|
+
"popper-options": e.popperOptions,
|
|
917
|
+
"fallback-placements": e.fallbackPlacements,
|
|
918
|
+
effect: e.effect,
|
|
919
|
+
pure: "",
|
|
920
|
+
trigger: "click",
|
|
921
|
+
transition: `${e.nsSelect.namespace.value}-zoom-in-top`,
|
|
922
|
+
"stop-popper-mouse-event": !1,
|
|
923
|
+
"gpu-acceleration": !1,
|
|
924
|
+
persistent: e.persistent,
|
|
925
|
+
onBeforeShow: e.handleMenuEnter,
|
|
926
|
+
onHide: (C) => e.states.isBeforeHide = !1
|
|
927
|
+
}, {
|
|
928
|
+
default: $(() => {
|
|
929
|
+
var C;
|
|
930
|
+
return [
|
|
931
|
+
u("div", {
|
|
932
|
+
ref: "wrapperRef",
|
|
933
|
+
class: h([
|
|
934
|
+
e.nsSelect.e("wrapper"),
|
|
935
|
+
e.nsSelect.is("focused", e.isFocused),
|
|
936
|
+
e.nsSelect.is("hovering", e.states.inputHovering),
|
|
937
|
+
e.nsSelect.is("filterable", e.filterable),
|
|
938
|
+
e.nsSelect.is("disabled", e.selectDisabled)
|
|
939
|
+
]),
|
|
940
|
+
onClick: N(e.toggleMenu, ["prevent", "stop"])
|
|
941
|
+
}, [
|
|
942
|
+
e.$slots.prefix ? (f(), M("div", {
|
|
943
|
+
key: 0,
|
|
944
|
+
ref: "prefixRef",
|
|
945
|
+
class: h(e.nsSelect.e("prefix"))
|
|
946
|
+
}, [
|
|
947
|
+
A(e.$slots, "prefix")
|
|
948
|
+
], 2)) : _("v-if", !0),
|
|
949
|
+
u("div", {
|
|
950
|
+
ref: "selectionRef",
|
|
951
|
+
class: h([
|
|
952
|
+
e.nsSelect.e("selection"),
|
|
953
|
+
e.nsSelect.is("near", e.multiple && !e.$slots.prefix && !!e.states.selected.length)
|
|
954
|
+
])
|
|
955
|
+
}, [
|
|
956
|
+
e.multiple ? A(e.$slots, "tag", { key: 0 }, () => [
|
|
957
|
+
(f(!0), M(de, null, fe(e.showTagList, (m) => (f(), M("div", {
|
|
958
|
+
key: e.getValueKey(m),
|
|
959
|
+
class: h(e.nsSelect.e("selected-item"))
|
|
960
|
+
}, [
|
|
961
|
+
L(l, {
|
|
962
|
+
closable: !e.selectDisabled && !m.isDisabled,
|
|
963
|
+
size: e.collapseTagSize,
|
|
964
|
+
type: e.tagType,
|
|
965
|
+
effect: e.tagEffect,
|
|
966
|
+
"disable-transitions": "",
|
|
967
|
+
style: pe(e.tagStyle),
|
|
968
|
+
onClose: (k) => e.deleteTag(k, m)
|
|
969
|
+
}, {
|
|
970
|
+
default: $(() => [
|
|
971
|
+
u("span", {
|
|
972
|
+
class: h(e.nsSelect.e("tags-text"))
|
|
973
|
+
}, [
|
|
974
|
+
A(e.$slots, "label", {
|
|
975
|
+
label: m.currentLabel,
|
|
976
|
+
value: m.value
|
|
977
|
+
}, () => [
|
|
978
|
+
Ot(H(m.currentLabel), 1)
|
|
979
|
+
])
|
|
980
|
+
], 2)
|
|
981
|
+
]),
|
|
982
|
+
_: 2
|
|
983
|
+
}, 1032, ["closable", "size", "type", "effect", "style", "onClose"])
|
|
984
|
+
], 2))), 128)),
|
|
985
|
+
e.collapseTags && e.states.selected.length > e.maxCollapseTags ? (f(), F(d, {
|
|
986
|
+
key: 0,
|
|
987
|
+
ref: "tagTooltipRef",
|
|
988
|
+
disabled: e.dropdownMenuVisible || !e.collapseTagsTooltip,
|
|
989
|
+
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
990
|
+
effect: e.effect,
|
|
991
|
+
placement: "bottom",
|
|
992
|
+
teleported: e.teleported
|
|
993
|
+
}, {
|
|
994
|
+
default: $(() => [
|
|
995
|
+
u("div", {
|
|
996
|
+
ref: "collapseItemRef",
|
|
997
|
+
class: h(e.nsSelect.e("selected-item"))
|
|
998
|
+
}, [
|
|
999
|
+
L(l, {
|
|
1000
|
+
closable: !1,
|
|
1001
|
+
size: e.collapseTagSize,
|
|
1002
|
+
type: e.tagType,
|
|
1003
|
+
effect: e.tagEffect,
|
|
1004
|
+
"disable-transitions": "",
|
|
1005
|
+
style: pe(e.collapseTagStyle)
|
|
1006
|
+
}, {
|
|
1007
|
+
default: $(() => [
|
|
1008
|
+
u("span", {
|
|
1009
|
+
class: h(e.nsSelect.e("tags-text"))
|
|
1010
|
+
}, " + " + H(e.states.selected.length - e.maxCollapseTags), 3)
|
|
1011
|
+
]),
|
|
1012
|
+
_: 1
|
|
1013
|
+
}, 8, ["size", "type", "effect", "style"])
|
|
1014
|
+
], 2)
|
|
1015
|
+
]),
|
|
1016
|
+
content: $(() => [
|
|
1017
|
+
u("div", {
|
|
1018
|
+
ref: "tagMenuRef",
|
|
1019
|
+
class: h(e.nsSelect.e("selection"))
|
|
1020
|
+
}, [
|
|
1021
|
+
(f(!0), M(de, null, fe(e.collapseTagList, (m) => (f(), M("div", {
|
|
1022
|
+
key: e.getValueKey(m),
|
|
1023
|
+
class: h(e.nsSelect.e("selected-item"))
|
|
1024
|
+
}, [
|
|
1025
|
+
L(l, {
|
|
1026
|
+
class: "in-tooltip",
|
|
1027
|
+
closable: !e.selectDisabled && !m.isDisabled,
|
|
1028
|
+
size: e.collapseTagSize,
|
|
1029
|
+
type: e.tagType,
|
|
1030
|
+
effect: e.tagEffect,
|
|
1031
|
+
"disable-transitions": "",
|
|
1032
|
+
onClose: (k) => e.deleteTag(k, m)
|
|
1033
|
+
}, {
|
|
1034
|
+
default: $(() => [
|
|
1035
|
+
u("span", {
|
|
1036
|
+
class: h(e.nsSelect.e("tags-text"))
|
|
1037
|
+
}, [
|
|
1038
|
+
A(e.$slots, "label", {
|
|
1039
|
+
label: m.currentLabel,
|
|
1040
|
+
value: m.value
|
|
1041
|
+
}, () => [
|
|
1042
|
+
Ot(H(m.currentLabel), 1)
|
|
1043
|
+
])
|
|
1044
|
+
], 2)
|
|
1045
|
+
]),
|
|
1046
|
+
_: 2
|
|
1047
|
+
}, 1032, ["closable", "size", "type", "effect", "onClose"])
|
|
1048
|
+
], 2))), 128))
|
|
1049
|
+
], 2)
|
|
1050
|
+
]),
|
|
1051
|
+
_: 3
|
|
1052
|
+
}, 8, ["disabled", "effect", "teleported"])) : _("v-if", !0)
|
|
1053
|
+
]) : _("v-if", !0),
|
|
1054
|
+
e.selectDisabled ? _("v-if", !0) : (f(), M("div", {
|
|
1055
|
+
key: 1,
|
|
1056
|
+
class: h([
|
|
1057
|
+
e.nsSelect.e("selected-item"),
|
|
1058
|
+
e.nsSelect.e("input-wrapper"),
|
|
1059
|
+
e.nsSelect.is("hidden", !e.filterable)
|
|
1060
|
+
])
|
|
1061
|
+
}, [
|
|
1062
|
+
Ce(u("input", {
|
|
1063
|
+
id: e.inputId,
|
|
1064
|
+
ref: "inputRef",
|
|
1065
|
+
"onUpdate:modelValue": (m) => e.states.inputValue = m,
|
|
1066
|
+
type: "text",
|
|
1067
|
+
name: e.name,
|
|
1068
|
+
class: h([e.nsSelect.e("input"), e.nsSelect.is(e.selectSize)]),
|
|
1069
|
+
disabled: e.selectDisabled,
|
|
1070
|
+
autocomplete: e.autocomplete,
|
|
1071
|
+
style: pe(e.inputStyle),
|
|
1072
|
+
role: "combobox",
|
|
1073
|
+
readonly: !e.filterable,
|
|
1074
|
+
spellcheck: "false",
|
|
1075
|
+
"aria-activedescendant": ((C = e.hoverOption) == null ? void 0 : C.id) || "",
|
|
1076
|
+
"aria-controls": e.contentId,
|
|
1077
|
+
"aria-expanded": e.dropdownMenuVisible,
|
|
1078
|
+
"aria-label": e.ariaLabel,
|
|
1079
|
+
"aria-autocomplete": "none",
|
|
1080
|
+
"aria-haspopup": "listbox",
|
|
1081
|
+
onKeydown: [
|
|
1082
|
+
Se(N((m) => e.navigateOptions("next"), ["stop", "prevent"]), ["down"]),
|
|
1083
|
+
Se(N((m) => e.navigateOptions("prev"), ["stop", "prevent"]), ["up"]),
|
|
1084
|
+
Se(N(e.handleEsc, ["stop", "prevent"]), ["esc"]),
|
|
1085
|
+
Se(N(e.selectOption, ["stop", "prevent"]), ["enter"]),
|
|
1086
|
+
Se(N(e.deletePrevTag, ["stop"]), ["delete"])
|
|
1087
|
+
],
|
|
1088
|
+
onCompositionstart: e.handleCompositionStart,
|
|
1089
|
+
onCompositionupdate: e.handleCompositionUpdate,
|
|
1090
|
+
onCompositionend: e.handleCompositionEnd,
|
|
1091
|
+
onInput: e.onInput,
|
|
1092
|
+
onClick: N(e.toggleMenu, ["stop"])
|
|
1093
|
+
}, null, 46, ["id", "onUpdate:modelValue", "name", "disabled", "autocomplete", "readonly", "aria-activedescendant", "aria-controls", "aria-expanded", "aria-label", "onKeydown", "onCompositionstart", "onCompositionupdate", "onCompositionend", "onInput", "onClick"]), [
|
|
1094
|
+
[jl, e.states.inputValue]
|
|
1095
|
+
]),
|
|
1096
|
+
e.filterable ? (f(), M("span", {
|
|
1097
|
+
key: 0,
|
|
1098
|
+
ref: "calculatorRef",
|
|
1099
|
+
"aria-hidden": "true",
|
|
1100
|
+
class: h(e.nsSelect.e("input-calculator")),
|
|
1101
|
+
textContent: H(e.states.inputValue)
|
|
1102
|
+
}, null, 10, ["textContent"])) : _("v-if", !0)
|
|
1103
|
+
], 2)),
|
|
1104
|
+
e.shouldShowPlaceholder ? (f(), M("div", {
|
|
1105
|
+
key: 2,
|
|
1106
|
+
class: h([
|
|
1107
|
+
e.nsSelect.e("selected-item"),
|
|
1108
|
+
e.nsSelect.e("placeholder"),
|
|
1109
|
+
e.nsSelect.is("transparent", !e.hasModelValue || e.expanded && !e.states.inputValue)
|
|
1110
|
+
])
|
|
1111
|
+
}, [
|
|
1112
|
+
e.hasModelValue ? A(e.$slots, "label", {
|
|
1113
|
+
key: 0,
|
|
1114
|
+
label: e.currentPlaceholder,
|
|
1115
|
+
value: e.modelValue
|
|
1116
|
+
}, () => [
|
|
1117
|
+
u("span", null, H(e.currentPlaceholder), 1)
|
|
1118
|
+
]) : (f(), M("span", { key: 1 }, H(e.currentPlaceholder), 1))
|
|
1119
|
+
], 2)) : _("v-if", !0)
|
|
1120
|
+
], 2),
|
|
1121
|
+
u("div", {
|
|
1122
|
+
ref: "suffixRef",
|
|
1123
|
+
class: h(e.nsSelect.e("suffix"))
|
|
1124
|
+
}, [
|
|
1125
|
+
e.iconComponent && !e.showClose ? (f(), F(i, {
|
|
1126
|
+
key: 0,
|
|
1127
|
+
class: h([e.nsSelect.e("caret"), e.nsSelect.e("icon"), e.iconReverse])
|
|
1128
|
+
}, {
|
|
1129
|
+
default: $(() => [
|
|
1130
|
+
(f(), F(je(e.iconComponent)))
|
|
1131
|
+
]),
|
|
1132
|
+
_: 1
|
|
1133
|
+
}, 8, ["class"])) : _("v-if", !0),
|
|
1134
|
+
e.showClose && e.clearIcon ? (f(), F(i, {
|
|
1135
|
+
key: 1,
|
|
1136
|
+
class: h([e.nsSelect.e("caret"), e.nsSelect.e("icon")]),
|
|
1137
|
+
onClick: e.handleClearClick
|
|
1138
|
+
}, {
|
|
1139
|
+
default: $(() => [
|
|
1140
|
+
(f(), F(je(e.clearIcon)))
|
|
1141
|
+
]),
|
|
1142
|
+
_: 1
|
|
1143
|
+
}, 8, ["class", "onClick"])) : _("v-if", !0),
|
|
1144
|
+
e.validateState && e.validateIcon ? (f(), F(i, {
|
|
1145
|
+
key: 2,
|
|
1146
|
+
class: h([e.nsInput.e("icon"), e.nsInput.e("validateIcon")])
|
|
1147
|
+
}, {
|
|
1148
|
+
default: $(() => [
|
|
1149
|
+
(f(), F(je(e.validateIcon)))
|
|
1150
|
+
]),
|
|
1151
|
+
_: 1
|
|
1152
|
+
}, 8, ["class"])) : _("v-if", !0)
|
|
1153
|
+
], 2)
|
|
1154
|
+
], 10, ["onClick"])
|
|
1155
|
+
];
|
|
1156
|
+
}),
|
|
1157
|
+
content: $(() => [
|
|
1158
|
+
L(I, { ref: "menuRef" }, {
|
|
1159
|
+
default: $(() => [
|
|
1160
|
+
e.$slots.header ? (f(), M("div", {
|
|
1161
|
+
key: 0,
|
|
1162
|
+
class: h(e.nsSelect.be("dropdown", "header")),
|
|
1163
|
+
onClick: N(() => {
|
|
1164
|
+
}, ["stop"])
|
|
1165
|
+
}, [
|
|
1166
|
+
A(e.$slots, "header")
|
|
1167
|
+
], 10, ["onClick"])) : _("v-if", !0),
|
|
1168
|
+
Ce(L(w, {
|
|
1169
|
+
id: e.contentId,
|
|
1170
|
+
ref: "scrollbarRef",
|
|
1171
|
+
tag: "ul",
|
|
1172
|
+
"wrap-class": e.nsSelect.be("dropdown", "wrap"),
|
|
1173
|
+
"view-class": e.nsSelect.be("dropdown", "list"),
|
|
1174
|
+
class: h([e.nsSelect.is("empty", e.filteredOptionsCount === 0)]),
|
|
1175
|
+
role: "listbox",
|
|
1176
|
+
"aria-label": e.ariaLabel,
|
|
1177
|
+
"aria-orientation": "vertical"
|
|
1178
|
+
}, {
|
|
1179
|
+
default: $(() => [
|
|
1180
|
+
e.showNewOption ? (f(), F(v, {
|
|
1181
|
+
key: 0,
|
|
1182
|
+
value: e.states.inputValue,
|
|
1183
|
+
created: !0
|
|
1184
|
+
}, null, 8, ["value"])) : _("v-if", !0),
|
|
1185
|
+
L(b, null, {
|
|
1186
|
+
default: $(() => [
|
|
1187
|
+
A(e.$slots, "default")
|
|
1188
|
+
]),
|
|
1189
|
+
_: 3
|
|
1190
|
+
})
|
|
1191
|
+
]),
|
|
1192
|
+
_: 3
|
|
1193
|
+
}, 8, ["id", "wrap-class", "view-class", "class", "aria-label"]), [
|
|
1194
|
+
[nt, e.states.options.size > 0 && !e.loading]
|
|
1195
|
+
]),
|
|
1196
|
+
e.$slots.loading && e.loading ? (f(), M("div", {
|
|
1197
|
+
key: 1,
|
|
1198
|
+
class: h(e.nsSelect.be("dropdown", "loading"))
|
|
1199
|
+
}, [
|
|
1200
|
+
A(e.$slots, "loading")
|
|
1201
|
+
], 2)) : e.loading || e.filteredOptionsCount === 0 ? (f(), M("div", {
|
|
1202
|
+
key: 2,
|
|
1203
|
+
class: h(e.nsSelect.be("dropdown", "empty"))
|
|
1204
|
+
}, [
|
|
1205
|
+
A(e.$slots, "empty", {}, () => [
|
|
1206
|
+
u("span", null, H(e.emptyText), 1)
|
|
1207
|
+
])
|
|
1208
|
+
], 2)) : _("v-if", !0),
|
|
1209
|
+
e.$slots.footer ? (f(), M("div", {
|
|
1210
|
+
key: 3,
|
|
1211
|
+
class: h(e.nsSelect.be("dropdown", "footer")),
|
|
1212
|
+
onClick: N(() => {
|
|
1213
|
+
}, ["stop"])
|
|
1214
|
+
}, [
|
|
1215
|
+
A(e.$slots, "footer")
|
|
1216
|
+
], 10, ["onClick"])) : _("v-if", !0)
|
|
1217
|
+
]),
|
|
1218
|
+
_: 3
|
|
1219
|
+
}, 512)
|
|
1220
|
+
]),
|
|
1221
|
+
_: 3
|
|
1222
|
+
}, 8, ["visible", "placement", "teleported", "popper-class", "popper-options", "fallback-placements", "effect", "transition", "persistent", "onBeforeShow", "onHide"])
|
|
1223
|
+
], 16, ["onMouseleave"])), [
|
|
1224
|
+
[y, e.handleClickOutside, e.popperRef]
|
|
1225
|
+
]);
|
|
1226
|
+
}
|
|
1227
|
+
var Qn = /* @__PURE__ */ Oe(Gn, [["render", qn], ["__file", "select.vue"]]);
|
|
1228
|
+
const Yn = X({
|
|
1229
|
+
name: "ElOptionGroup",
|
|
1230
|
+
componentName: "ElOptionGroup",
|
|
1231
|
+
props: {
|
|
1232
|
+
label: String,
|
|
1233
|
+
disabled: Boolean
|
|
1234
|
+
},
|
|
1235
|
+
setup(e) {
|
|
1236
|
+
const n = ve("select"), s = T(null), r = Pe(), a = T([]);
|
|
1237
|
+
Ht(zt, Ne({
|
|
1238
|
+
...Ft(e)
|
|
1239
|
+
}));
|
|
1240
|
+
const p = g(() => a.value.some((v) => v.visible === !0)), l = (v) => {
|
|
1241
|
+
var b, w;
|
|
1242
|
+
return ((b = v.type) == null ? void 0 : b.name) === "ElOption" && !!((w = v.component) != null && w.proxy);
|
|
1243
|
+
}, d = (v) => {
|
|
1244
|
+
const b = Y(v), w = [];
|
|
1245
|
+
return b.forEach((I) => {
|
|
1246
|
+
var y, C;
|
|
1247
|
+
l(I) ? w.push(I.component.proxy) : (y = I.children) != null && y.length ? w.push(...d(I.children)) : (C = I.component) != null && C.subTree && w.push(...d(I.component.subTree));
|
|
1248
|
+
}), w;
|
|
1249
|
+
}, i = () => {
|
|
1250
|
+
a.value = d(r.subTree);
|
|
1251
|
+
};
|
|
1252
|
+
return Fe(() => {
|
|
1253
|
+
i();
|
|
1254
|
+
}), $l(s, i, {
|
|
1255
|
+
attributes: !0,
|
|
1256
|
+
subtree: !0,
|
|
1257
|
+
childList: !0
|
|
1258
|
+
}), {
|
|
1259
|
+
groupRef: s,
|
|
1260
|
+
visible: p,
|
|
1261
|
+
ns: n
|
|
1262
|
+
};
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
function Jn(e, n, s, r, a, p) {
|
|
1266
|
+
return Ce((f(), M("ul", {
|
|
1267
|
+
ref: "groupRef",
|
|
1268
|
+
class: h(e.ns.be("group", "wrap"))
|
|
1269
|
+
}, [
|
|
1270
|
+
u("li", {
|
|
1271
|
+
class: h(e.ns.be("group", "title"))
|
|
1272
|
+
}, H(e.label), 3),
|
|
1273
|
+
u("li", null, [
|
|
1274
|
+
u("ul", {
|
|
1275
|
+
class: h(e.ns.b("group"))
|
|
1276
|
+
}, [
|
|
1277
|
+
A(e.$slots, "default")
|
|
1278
|
+
], 2)
|
|
1279
|
+
])
|
|
1280
|
+
], 2)), [
|
|
1281
|
+
[nt, e.visible]
|
|
1282
|
+
]);
|
|
1283
|
+
}
|
|
1284
|
+
var Gt = /* @__PURE__ */ Oe(Yn, [["render", Jn], ["__file", "option-group.vue"]]);
|
|
1285
|
+
const Xn = $t(Qn, {
|
|
1286
|
+
Option: st,
|
|
1287
|
+
OptionGroup: Gt
|
|
1288
|
+
}), jn = At(st);
|
|
1289
|
+
At(Gt);
|
|
1290
|
+
const K = (e) => (Zl("data-v-9404e07b"), e = e(), xl(), e), Zn = {
|
|
1291
|
+
key: 0,
|
|
1292
|
+
class: "measure_panel_content"
|
|
1293
|
+
}, xn = { class: "measurement_type" }, es = ["onClick"], ts = ["src"], ls = {
|
|
1294
|
+
key: 0,
|
|
1295
|
+
class: "measurement_data"
|
|
1296
|
+
}, ns = { class: "data_box" }, ss = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", null, "总长度:", -1)), os = { style: { color: "#0065fc" } }, as = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", { class: "data_box" }, [
|
|
1297
|
+
/* @__PURE__ */ u("div", null, "X值:"),
|
|
1298
|
+
/* @__PURE__ */ u("div", { style: { color: "#fe4444" } }, "~")
|
|
1299
|
+
], -1)), is = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", { class: "data_box" }, [
|
|
1300
|
+
/* @__PURE__ */ u("div", null, "Y值:"),
|
|
1301
|
+
/* @__PURE__ */ u("div", { style: { color: "#4ed17a" } }, "~")
|
|
1302
|
+
], -1)), us = {
|
|
1303
|
+
key: 1,
|
|
1304
|
+
class: "measurement_data"
|
|
1305
|
+
}, rs = { class: "data_box" }, cs = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", null, "角度", -1)), ds = { style: { color: "#0065fc" } }, fs = {
|
|
1306
|
+
key: 1,
|
|
1307
|
+
class: "setMeasurePanel"
|
|
1308
|
+
}, ps = { class: "set_content_par" }, vs = { class: "set_content_" }, ms = { class: "set_content scale" }, hs = /* @__PURE__ */ K(() => /* @__PURE__ */ u("span", null, "比例:", -1)), gs = /* @__PURE__ */ K(() => /* @__PURE__ */ u("span", null, "1:", -1)), bs = { class: "set_content unit" }, ys = /* @__PURE__ */ K(() => /* @__PURE__ */ u("span", null, "单位:", -1)), Ss = { class: "set_content precision" }, Cs = /* @__PURE__ */ K(() => /* @__PURE__ */ u("span", null, "精度:", -1)), ws = {
|
|
1309
|
+
key: 1,
|
|
1310
|
+
class: "measure-box"
|
|
1311
|
+
}, Os = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", { class: "measure-title-box" }, [
|
|
1312
|
+
/* @__PURE__ */ u("div", { class: "measure-title" }, "测量")
|
|
1313
|
+
], -1)), Ms = { class: "measure-list" }, Ts = ["onClick"], Is = { class: "measure-icon" }, Vs = ["src"], Es = { class: "measure-name" }, ks = { class: "measure-icon" }, Rs = ["src"], Ds = /* @__PURE__ */ K(() => /* @__PURE__ */ u("div", {
|
|
1314
|
+
class: "measure-name",
|
|
1315
|
+
style: { color: "#df1c1c" }
|
|
1316
|
+
}, " 删除 ", -1)), $s = /* @__PURE__ */ X({
|
|
1317
|
+
__name: "MeasureTool",
|
|
1318
|
+
props: ["componentId"],
|
|
1319
|
+
emits: ["closePanel", "emitHandler"],
|
|
1320
|
+
setup(e, { emit: n }) {
|
|
1321
|
+
const s = _l(), r = e, a = T(0);
|
|
1322
|
+
Fe(() => {
|
|
1323
|
+
s.setReadyById(r.componentId), Je.currentTheme == "blue" ? a.value = 224 : Je.currentTheme == "light-gray" && (a.value = 202);
|
|
1324
|
+
});
|
|
1325
|
+
let p, l, d;
|
|
1326
|
+
const i = T(1), v = T(), b = T(), w = T(), I = T(), y = T(1), C = T("m"), m = T(2), k = T(!1), j = [{ value: "m" }, { value: "cm" }, { value: "mm" }], P = T(!1), ae = [
|
|
1327
|
+
{ label: "0", value: 0 },
|
|
1328
|
+
{ label: "0.0", value: 1 },
|
|
1329
|
+
{ label: "0.00", value: 2 },
|
|
1330
|
+
{ label: "0.000", value: 3 }
|
|
1331
|
+
], Me = n, Te = (c) => {
|
|
1332
|
+
Me("emitHandler", c);
|
|
1333
|
+
};
|
|
1334
|
+
Bl.on("BimViewer", () => {
|
|
1335
|
+
l = window.BimViewer.measureAngleTool, p = window.BimViewer.measureDistanceTool, d = window.BimViewer.eventTrigger, ee("isMobile") && (d.on("newAngleMeasure", (c) => {
|
|
1336
|
+
P.value = !1;
|
|
1337
|
+
}), d.on("newDistanceMeasure", (c) => {
|
|
1338
|
+
P.value = !1;
|
|
1339
|
+
})), d.on("clickDistanceMeasure", (c) => {
|
|
1340
|
+
Ue(c.id), ie(c.id, !0), ee("isMobile") && (P.value = !0), U("clickDistanceMeasure", { id: c.id });
|
|
1341
|
+
}), d.on("clickAngleMeasure", (c) => {
|
|
1342
|
+
Z(c.id), We(c.id, !0), ee("isMobile") && (P.value = !0), U("clickAngleMeasure", { id: c.id });
|
|
1343
|
+
}), d.on("createAngleMeasure", (c) => {
|
|
1344
|
+
I.value = c.id, w.value = c.result, ee("isMobile") && (P.value = !0), U("createAngleMeasure", { newMeasure: c });
|
|
1345
|
+
}), d.on("createDistanceMeasure", (c) => {
|
|
1346
|
+
b.value = c.id, v.value = c.result, ee("isMobile") && (P.value = !0), U("createAngleMeasure", { newMeasure: c });
|
|
1347
|
+
});
|
|
1348
|
+
});
|
|
1349
|
+
const U = (c, D) => {
|
|
1350
|
+
Te({
|
|
1351
|
+
isTool: !0,
|
|
1352
|
+
event_name: c,
|
|
1353
|
+
event_target: "MeasureTool",
|
|
1354
|
+
content: D
|
|
1355
|
+
});
|
|
1356
|
+
}, Ie = () => {
|
|
1357
|
+
Me("closePanel"), window.BimViewer.SetMeasureDistanceActive(!1), window.BimViewer.SetMeasureAngleActive(!1), k.value === !0 && z();
|
|
1358
|
+
}, me = (c) => {
|
|
1359
|
+
i.value !== c && (i.value = c, Al.SaveViewerState({ measure: c }), ze(i.value), ee("isMobile") && (P.value = !1));
|
|
1360
|
+
}, ze = (c) => {
|
|
1361
|
+
v.value = "", w.value = "";
|
|
1362
|
+
let D = "distance";
|
|
1363
|
+
c == 1 ? (window.BimViewer.SetMeasureAngleActive(!1), window.BimViewer.SetMeasureDistanceActive(!0), D = "distance") : c == 2 && (window.BimViewer.SetMeasureDistanceActive(!1), window.BimViewer.SetMeasureAngleActive(!0), D = "angle"), Te({
|
|
1364
|
+
isTool: !0,
|
|
1365
|
+
event_name: "",
|
|
1366
|
+
event_target: "MeasureTool",
|
|
1367
|
+
content: {
|
|
1368
|
+
measureTool: D
|
|
1369
|
+
}
|
|
1370
|
+
});
|
|
1371
|
+
}, E = () => {
|
|
1372
|
+
v.value = "", w.value = "", i.value === 1 ? (he(b.value), U("destroyMeasureDistance", { id: b.value })) : i.value === 2 && (Ke(I.value), U("destroyMeasurementAngle", { id: b.value })), P.value = !1;
|
|
1373
|
+
}, z = () => {
|
|
1374
|
+
k.value = !k.value;
|
|
1375
|
+
}, Ve = () => {
|
|
1376
|
+
z(), l.precision = m.value, p.precision = m.value, p.unit = C.value, p.scale = y.value, U("updateMeasureSet", {
|
|
1377
|
+
measurePrefer: {
|
|
1378
|
+
angle_precision: m.value,
|
|
1379
|
+
distance_precision: m.value,
|
|
1380
|
+
distance_unit: C.value,
|
|
1381
|
+
distance_scale: y.value
|
|
1382
|
+
}
|
|
1383
|
+
});
|
|
1384
|
+
}, Z = (c) => {
|
|
1385
|
+
I.value = c, w.value = l.getMeasureResultByID(c);
|
|
1386
|
+
}, We = (c, D) => l.setMeasureHightlighted(c, D), Ke = (c) => l.destroyMeasurementById(c), Ue = (c) => {
|
|
1387
|
+
b.value = c, v.value = p.getMeasureResultByID(c);
|
|
1388
|
+
}, ie = (c, D) => (console.log("高亮measureDistanceTool.setMeasureHightlighted(id, highlighted)", p.setMeasureHightlighted(c, D)), p.setMeasureHightlighted(c, D)), he = (c) => p.destroyMeasurementById(c);
|
|
1389
|
+
return (c, D) => {
|
|
1390
|
+
const Ge = Gl, ge = jn, Ee = Xn, qe = Pl, ke = Bt;
|
|
1391
|
+
return R(ee)("isMobile") ? (f(), M("div", ws, [
|
|
1392
|
+
Os,
|
|
1393
|
+
L(ke, null, {
|
|
1394
|
+
default: $(() => [
|
|
1395
|
+
u("div", Ms, [
|
|
1396
|
+
(f(!0), M(de, null, fe(R(Mt), (O) => (f(), M("div", {
|
|
1397
|
+
key: O.id,
|
|
1398
|
+
class: h(["measure-item", {
|
|
1399
|
+
"measure-item-active": i.value === O.id
|
|
1400
|
+
}]),
|
|
1401
|
+
onClick: (B) => me(O.id)
|
|
1402
|
+
}, [
|
|
1403
|
+
u("div", null, [
|
|
1404
|
+
u("div", Is, [
|
|
1405
|
+
u("img", {
|
|
1406
|
+
src: R(Xe) + `/bim-viewer/measure-bar/${i.value === O.id ? O.svgActive : O.svg}.svg`,
|
|
1407
|
+
alt: ""
|
|
1408
|
+
}, null, 8, Vs)
|
|
1409
|
+
]),
|
|
1410
|
+
u("div", Es, H(O.name), 1)
|
|
1411
|
+
])
|
|
1412
|
+
], 10, Ts))), 128)),
|
|
1413
|
+
P.value ? (f(), M("div", {
|
|
1414
|
+
key: 0,
|
|
1415
|
+
class: "measure-item",
|
|
1416
|
+
onClick: E
|
|
1417
|
+
}, [
|
|
1418
|
+
u("div", null, [
|
|
1419
|
+
u("div", ks, [
|
|
1420
|
+
u("img", {
|
|
1421
|
+
src: R(Xe) + "/bim-viewer/delete.svg",
|
|
1422
|
+
alt: ""
|
|
1423
|
+
}, null, 8, Rs)
|
|
1424
|
+
]),
|
|
1425
|
+
Ds
|
|
1426
|
+
])
|
|
1427
|
+
])) : _("", !0)
|
|
1428
|
+
])
|
|
1429
|
+
]),
|
|
1430
|
+
_: 1
|
|
1431
|
+
})
|
|
1432
|
+
])) : (f(), F(qe, {
|
|
1433
|
+
key: 0,
|
|
1434
|
+
class: "measure_panel",
|
|
1435
|
+
width: a.value,
|
|
1436
|
+
panelTitle: k.value ? "测量设置" : "测量",
|
|
1437
|
+
"click-handle": Ie
|
|
1438
|
+
}, {
|
|
1439
|
+
default: $(() => [
|
|
1440
|
+
k.value ? (f(), M("div", fs, [
|
|
1441
|
+
u("div", ps, [
|
|
1442
|
+
u("div", vs, [
|
|
1443
|
+
u("div", ms, [
|
|
1444
|
+
hs,
|
|
1445
|
+
gs,
|
|
1446
|
+
L(Ge, {
|
|
1447
|
+
modelValue: y.value,
|
|
1448
|
+
"onUpdate:modelValue": D[0] || (D[0] = (O) => y.value = O),
|
|
1449
|
+
style: { width: "122px", height: "28px" },
|
|
1450
|
+
placeholder: "1"
|
|
1451
|
+
}, null, 8, ["modelValue"])
|
|
1452
|
+
]),
|
|
1453
|
+
u("div", bs, [
|
|
1454
|
+
ys,
|
|
1455
|
+
L(Ee, {
|
|
1456
|
+
modelValue: C.value,
|
|
1457
|
+
"onUpdate:modelValue": D[1] || (D[1] = (O) => C.value = O),
|
|
1458
|
+
placeholder: "单位",
|
|
1459
|
+
style: { width: "136px", height: "28px" }
|
|
1460
|
+
}, {
|
|
1461
|
+
default: $(() => [
|
|
1462
|
+
(f(), M(de, null, fe(j, (O) => L(ge, {
|
|
1463
|
+
key: O.value,
|
|
1464
|
+
value: O.value
|
|
1465
|
+
}, null, 8, ["value"])), 64))
|
|
1466
|
+
]),
|
|
1467
|
+
_: 1
|
|
1468
|
+
}, 8, ["modelValue"])
|
|
1469
|
+
]),
|
|
1470
|
+
u("div", Ss, [
|
|
1471
|
+
Cs,
|
|
1472
|
+
L(Ee, {
|
|
1473
|
+
modelValue: m.value,
|
|
1474
|
+
"onUpdate:modelValue": D[2] || (D[2] = (O) => m.value = O),
|
|
1475
|
+
placeholder: "精度",
|
|
1476
|
+
style: { width: "136px", height: "28px" }
|
|
1477
|
+
}, {
|
|
1478
|
+
default: $(() => [
|
|
1479
|
+
(f(), M(de, null, fe(ae, (O) => L(ge, {
|
|
1480
|
+
key: O.value,
|
|
1481
|
+
label: O.label,
|
|
1482
|
+
value: O.value
|
|
1483
|
+
}, null, 8, ["label", "value"])), 64))
|
|
1484
|
+
]),
|
|
1485
|
+
_: 1
|
|
1486
|
+
}, 8, ["modelValue"])
|
|
1487
|
+
])
|
|
1488
|
+
])
|
|
1489
|
+
]),
|
|
1490
|
+
u("div", { class: "footer" }, [
|
|
1491
|
+
u("div", {
|
|
1492
|
+
class: "measure_footer_button measure_footer_button_cancel",
|
|
1493
|
+
onClick: z
|
|
1494
|
+
}, " 取消 "),
|
|
1495
|
+
u("div", {
|
|
1496
|
+
class: "measure_footer_button measure_footer_button_save",
|
|
1497
|
+
onClick: Ve
|
|
1498
|
+
}, " 保存 ")
|
|
1499
|
+
])
|
|
1500
|
+
])) : (f(), M("div", Zn, [
|
|
1501
|
+
u("div", xn, [
|
|
1502
|
+
(f(!0), M(de, null, fe(R(Mt), (O) => (f(), M("div", {
|
|
1503
|
+
key: O.id,
|
|
1504
|
+
class: h(["measurement_box", { measurement_box_active: i.value === O.id }]),
|
|
1505
|
+
onClick: (B) => me(O.id)
|
|
1506
|
+
}, [
|
|
1507
|
+
u("img", {
|
|
1508
|
+
class: "measurement_img",
|
|
1509
|
+
src: R(Xe) + `/bim-viewer/${i.value === O.id && R(Je).currentTheme == "blue" ? O.imgActive : O.img}.png`,
|
|
1510
|
+
alt: ""
|
|
1511
|
+
}, null, 8, ts)
|
|
1512
|
+
], 10, es))), 128))
|
|
1513
|
+
]),
|
|
1514
|
+
i.value == 1 ? (f(), M("div", ls, [
|
|
1515
|
+
u("div", ns, [
|
|
1516
|
+
ss,
|
|
1517
|
+
u("div", os, H(v.value ? v.value.toFixed(3) : "~"), 1)
|
|
1518
|
+
]),
|
|
1519
|
+
as,
|
|
1520
|
+
is
|
|
1521
|
+
])) : (f(), M("div", us, [
|
|
1522
|
+
u("div", rs, [
|
|
1523
|
+
cs,
|
|
1524
|
+
u("div", ds, H(w.value ? w.value.toFixed(3) + "°" : "~"), 1)
|
|
1525
|
+
])
|
|
1526
|
+
])),
|
|
1527
|
+
u("div", { class: "footer" }, [
|
|
1528
|
+
u("span", { onClick: E }, "删除"),
|
|
1529
|
+
u("span", { onClick: z }, "设置")
|
|
1530
|
+
])
|
|
1531
|
+
]))
|
|
1532
|
+
]),
|
|
1533
|
+
_: 1
|
|
1534
|
+
}, 8, ["width", "panelTitle"]));
|
|
1535
|
+
};
|
|
1536
|
+
}
|
|
1537
|
+
}), Ks = /* @__PURE__ */ Ll($s, [["__scopeId", "data-v-9404e07b"]]);
|
|
1538
|
+
export {
|
|
1539
|
+
Ks as default
|
|
1540
|
+
};
|