@xtctwins/tctwins-bimx-engine 0.1.21 → 0.1.22
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-CgiAUuLM.mjs} +12 -12
- package/dist/BIMX_Viewer_Lib.es.js +4 -4
- package/dist/BIMX_Viewer_Lib.umd.js +86 -91
- package/dist/CommentTool-BeT1ECI-.mjs +338 -0
- package/dist/HiddenTool-qqISJ_uV.mjs +58 -0
- package/dist/InspectorTool-CLPjV6WW.mjs +609 -0
- package/dist/MeasureTool-Be-rmUeb.mjs +1540 -0
- package/dist/{NavigateTool-CCIb1X4u.mjs → NavigateTool-C-VsKB0k.mjs} +7 -7
- package/dist/{RoamTool-B1w0efz8.mjs → RoamTool-DdHBNeVg.mjs} +20 -20
- package/dist/{ScreenShotTool-BviRVFSg.mjs → ScreenShotTool-Da7D2dkW.mjs} +67 -67
- package/dist/SectionTool-CHcmUQul.mjs +624 -0
- package/dist/SettingTool-CkR1F4x_.mjs +525 -0
- package/dist/StructureTree-DBu9xTue.mjs +1438 -0
- package/dist/{debounce-Cg3LHv0T.mjs → debounce-DLzt_q3i.mjs} +13 -13
- package/dist/{el-checkbox-lp8vWAXQ.mjs → el-checkbox-DsUGOsl_.mjs} +46 -46
- package/dist/{el-input-Bwqgf3wZ.mjs → el-input-UdjCNTtW.mjs} +66 -68
- package/dist/{el-input-number-0OWyX276.mjs → el-input-number-ySU-dVGM.mjs} +75 -75
- package/dist/{index-CQ8depiU.mjs → index-BfLgpvcd.mjs} +3 -3
- package/dist/{index-CYEu_kT4.mjs → index-DQKkZiNH.mjs} +1 -1
- package/dist/{index-DX-eYsBm.mjs → index-DyFDTMAw.mjs} +1795 -1794
- package/dist/{isEqual-Bg-tyY30.mjs → isEqual-BWlMaoTp.mjs} +9 -9
- package/dist/panel.vue_vue_type_style_index_0_lang-ZCDiwNFo.mjs +96 -0
- package/dist/style.css +1 -1
- package/dist/tallPanel-Cz_n6AsB.mjs +49 -0
- package/package.json +1 -1
- package/types/components/utilsComponents/tallPanel.vue.d.ts +41 -0
- package/types/services/fileApi/fileManager.d.ts +5 -5
- package/types/store/themeManager.d.ts +1 -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
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ee, ref as D, reactive as Ie, computed as w, watch as ie, onMounted as ze, onUpdated as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as ee, ref as D, reactive as Ie, computed as w, watch as ie, onMounted as ze, onUpdated as Ge, openBlock as I, createElementBlock as $, normalizeClass as R, unref as t, withModifiers as fe, withDirectives as Me, withKeys as ce, renderSlot as Ce, createVNode as se, withCtx as be, createBlock as J, createCommentVNode as ne, nextTick as ge, shallowRef as He, inject as Ze, toRefs as Ne, normalizeStyle as te, createElementVNode as le, toDisplayString as qe, h as Je, provide as Qe, Fragment as me, renderList as pe } from "vue";
|
|
2
|
+
import { c as Le, z as he, I as Y, N as Ke, ag as de, u as Ve, G as ve, d as ae, _ as Be, Z as $e, e as Ee, w as Re, K as ue, M as Ye, F as De, f as ye, E as et, P as tt } from "./index-DyFDTMAw.mjs";
|
|
3
|
+
import { g as ke, C as we, I as Q, U as O, e as Xe, u as Ue, h as nt, E as Te, a as lt, f as at } from "./el-input-UdjCNTtW.mjs";
|
|
4
4
|
import { ArrowDown as rt, Minus as ot, ArrowUp as ut, Plus as it } from "@element-plus/icons-vue";
|
|
5
|
-
import { u as Oe } from "./index-
|
|
6
|
-
import { d as Ae } from "./debounce-
|
|
5
|
+
import { u as Oe } from "./index-BfLgpvcd.mjs";
|
|
6
|
+
import { d as Ae } from "./debounce-DLzt_q3i.mjs";
|
|
7
7
|
const st = 100, dt = 600, _e = {
|
|
8
8
|
beforeMount(e, n) {
|
|
9
9
|
const o = n.value, { interval: a = st, delay: v = dt } = Le(o) ? {} : o;
|
|
@@ -72,7 +72,7 @@ const st = 100, dt = 600, _e = {
|
|
|
72
72
|
[we]: (e, n) => n !== e,
|
|
73
73
|
blur: (e) => e instanceof FocusEvent,
|
|
74
74
|
focus: (e) => e instanceof FocusEvent,
|
|
75
|
-
[
|
|
75
|
+
[Q]: (e) => Y(e) || de(e),
|
|
76
76
|
[O]: (e) => Y(e) || de(e)
|
|
77
77
|
}, vt = ee({
|
|
78
78
|
name: "ElInputNumber"
|
|
@@ -118,15 +118,15 @@ const st = 100, dt = 600, _e = {
|
|
|
118
118
|
if (a.readonly || C.value || p.value)
|
|
119
119
|
return;
|
|
120
120
|
const l = Number(z.value) || 0, r = P(l);
|
|
121
|
-
K(r), o(
|
|
121
|
+
K(r), o(Q, i.currentValue), E();
|
|
122
122
|
}, x = () => {
|
|
123
123
|
if (a.readonly || C.value || f.value)
|
|
124
124
|
return;
|
|
125
125
|
const l = Number(z.value) || 0, r = P(l, -1);
|
|
126
|
-
K(r), o(
|
|
126
|
+
K(r), o(Q, i.currentValue), E();
|
|
127
127
|
}, U = (l, r) => {
|
|
128
128
|
const { max: m, min: S, step: h, precision: N, stepStrictly: B, valueOnClear: d } = a;
|
|
129
|
-
m < S &&
|
|
129
|
+
m < S && $e("InputNumber", "min should not be greater than max.");
|
|
130
130
|
let g = Number(l);
|
|
131
131
|
if (de(l) || Number.isNaN(g))
|
|
132
132
|
return null;
|
|
@@ -147,14 +147,14 @@ const st = 100, dt = 600, _e = {
|
|
|
147
147
|
}, j = (l) => {
|
|
148
148
|
i.userInput = l;
|
|
149
149
|
const r = l === "" ? null : Number(l);
|
|
150
|
-
o(
|
|
151
|
-
},
|
|
150
|
+
o(Q, r), K(r, !1);
|
|
151
|
+
}, H = (l) => {
|
|
152
152
|
const r = l !== "" ? Number(l) : "";
|
|
153
153
|
(Y(r) && !Number.isNaN(r) || l === "") && K(r), E(), i.userInput = null;
|
|
154
154
|
}, X = () => {
|
|
155
155
|
var l, r;
|
|
156
156
|
(r = (l = u.value) == null ? void 0 : l.focus) == null || r.call(l);
|
|
157
|
-
},
|
|
157
|
+
}, Z = () => {
|
|
158
158
|
var l, r;
|
|
159
159
|
(r = (l = u.value) == null ? void 0 : l.blur) == null || r.call(l);
|
|
160
160
|
}, W = (l) => {
|
|
@@ -178,15 +178,15 @@ const st = 100, dt = 600, _e = {
|
|
|
178
178
|
Number.isNaN(N) && (N = null), o(O, N);
|
|
179
179
|
}
|
|
180
180
|
h.addEventListener("wheel", M, { passive: !1 });
|
|
181
|
-
}),
|
|
181
|
+
}), Ge(() => {
|
|
182
182
|
var l, r;
|
|
183
183
|
const m = (l = u.value) == null ? void 0 : l.input;
|
|
184
184
|
m == null || m.setAttribute("aria-valuenow", `${(r = i.currentValue) != null ? r : ""}`);
|
|
185
185
|
}), n({
|
|
186
186
|
focus: X,
|
|
187
|
-
blur:
|
|
188
|
-
}), (l, r) => (I(),
|
|
189
|
-
class:
|
|
187
|
+
blur: Z
|
|
188
|
+
}), (l, r) => (I(), $("div", {
|
|
189
|
+
class: R([
|
|
190
190
|
t(s).b(),
|
|
191
191
|
t(s).m(t(_)),
|
|
192
192
|
t(s).is("disabled", t(C)),
|
|
@@ -196,17 +196,17 @@ const st = 100, dt = 600, _e = {
|
|
|
196
196
|
onDragstart: fe(() => {
|
|
197
197
|
}, ["prevent"])
|
|
198
198
|
}, [
|
|
199
|
-
l.controls ? Me((I(),
|
|
199
|
+
l.controls ? Me((I(), $("span", {
|
|
200
200
|
key: 0,
|
|
201
201
|
role: "button",
|
|
202
202
|
"aria-label": t(v)("el.inputNumber.decrease"),
|
|
203
|
-
class:
|
|
203
|
+
class: R([t(s).e("decrease"), t(s).is("disabled", t(f))]),
|
|
204
204
|
onKeydown: ce(x, ["enter"])
|
|
205
205
|
}, [
|
|
206
206
|
Ce(l.$slots, "decrease-icon", {}, () => [
|
|
207
207
|
se(t(Te), null, {
|
|
208
208
|
default: be(() => [
|
|
209
|
-
t(k) ? (I(),
|
|
209
|
+
t(k) ? (I(), J(t(rt), { key: 0 })) : (I(), J(t(ot), { key: 1 }))
|
|
210
210
|
]),
|
|
211
211
|
_: 1
|
|
212
212
|
})
|
|
@@ -214,17 +214,17 @@ const st = 100, dt = 600, _e = {
|
|
|
214
214
|
], 42, ["aria-label", "onKeydown"])), [
|
|
215
215
|
[t(_e), x]
|
|
216
216
|
]) : ne("v-if", !0),
|
|
217
|
-
l.controls ? Me((I(),
|
|
217
|
+
l.controls ? Me((I(), $("span", {
|
|
218
218
|
key: 1,
|
|
219
219
|
role: "button",
|
|
220
220
|
"aria-label": t(v)("el.inputNumber.increase"),
|
|
221
|
-
class:
|
|
221
|
+
class: R([t(s).e("increase"), t(s).is("disabled", t(p))]),
|
|
222
222
|
onKeydown: ce(L, ["enter"])
|
|
223
223
|
}, [
|
|
224
224
|
Ce(l.$slots, "increase-icon", {}, () => [
|
|
225
225
|
se(t(Te), null, {
|
|
226
226
|
default: be(() => [
|
|
227
|
-
t(k) ? (I(),
|
|
227
|
+
t(k) ? (I(), J(t(ut), { key: 0 })) : (I(), J(t(it), { key: 1 }))
|
|
228
228
|
]),
|
|
229
229
|
_: 1
|
|
230
230
|
})
|
|
@@ -255,13 +255,13 @@ const st = 100, dt = 600, _e = {
|
|
|
255
255
|
onBlur: b,
|
|
256
256
|
onFocus: W,
|
|
257
257
|
onInput: j,
|
|
258
|
-
onChange:
|
|
258
|
+
onChange: H
|
|
259
259
|
}, null, 8, ["id", "step", "model-value", "placeholder", "readonly", "disabled", "size", "max", "min", "name", "aria-label", "onKeydown"])
|
|
260
260
|
], 42, ["onDragstart"]));
|
|
261
261
|
}
|
|
262
262
|
});
|
|
263
263
|
var bt = /* @__PURE__ */ Be(ft, [["__file", "input-number.vue"]]);
|
|
264
|
-
const gt =
|
|
264
|
+
const gt = Re(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
265
265
|
modelValue: {
|
|
266
266
|
type: ue([Number, Array]),
|
|
267
267
|
default: 0
|
|
@@ -337,7 +337,7 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
337
337
|
...Ke(["ariaLabel"])
|
|
338
338
|
}), Se = (e) => Y(e) || De(e) && e.every(Y), ht = {
|
|
339
339
|
[O]: Se,
|
|
340
|
-
[
|
|
340
|
+
[Q]: Se,
|
|
341
341
|
[we]: Se
|
|
342
342
|
}, Vt = (e, n, o) => {
|
|
343
343
|
const a = D();
|
|
@@ -351,7 +351,7 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
351
351
|
position: (o - e.min) * 100 / (e.max - e.min),
|
|
352
352
|
mark: e.marks[o]
|
|
353
353
|
})) : []), pt = (e, n, o) => {
|
|
354
|
-
const { form: a, formItem: v } = Xe(), s =
|
|
354
|
+
const { form: a, formItem: v } = Xe(), s = He(), u = D(), i = D(), V = {
|
|
355
355
|
firstButton: u,
|
|
356
356
|
secondButton: i
|
|
357
357
|
}, f = w(() => e.disabled || (a == null ? void 0 : a.disabled) || !1), p = w(() => Math.min(n.firstValue, n.secondValue)), c = w(() => Math.max(n.firstValue, n.secondValue)), k = w(() => e.range ? `${100 * (c.value - p.value) / (e.max - e.min)}%` : `${100 * (n.firstValue - e.min) / (e.max - e.min)}%`), _ = w(() => e.range ? `${100 * (p.value - e.min) / (e.max - e.min)}%` : "0%"), C = w(() => e.vertical ? { height: e.height } : {}), z = w(() => e.vertical ? {
|
|
@@ -376,7 +376,7 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
376
376
|
}, x = (b) => {
|
|
377
377
|
n.secondValue = b, e.range && U([p.value, c.value]);
|
|
378
378
|
}, U = (b) => {
|
|
379
|
-
o(O, b), o(
|
|
379
|
+
o(O, b), o(Q, b);
|
|
380
380
|
}, K = async () => {
|
|
381
381
|
await ge(), o(we, e.range ? [p.value, c.value] : e.modelValue);
|
|
382
382
|
}, j = (b) => {
|
|
@@ -451,15 +451,15 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
451
451
|
emitChange: c,
|
|
452
452
|
resetSize: k,
|
|
453
453
|
updateDragging: _
|
|
454
|
-
} =
|
|
454
|
+
} = Ze(We), { tooltip: C, tooltipVisible: z, formatValue: T, displayTooltip: F, hideTooltip: P } = Mt(e, p, i), L = D(), x = w(() => `${(e.modelValue - v.value) / (s.value - v.value) * 100}%`), U = w(() => e.vertical ? { bottom: x.value } : { left: x.value }), K = () => {
|
|
455
455
|
n.hovering = !0, F();
|
|
456
456
|
}, j = () => {
|
|
457
457
|
n.hovering = !1, n.dragging || P();
|
|
458
|
-
},
|
|
458
|
+
}, H = (d) => {
|
|
459
459
|
a.value || (d.preventDefault(), S(d), window.addEventListener("mousemove", h), window.addEventListener("touchmove", h), window.addEventListener("mouseup", N), window.addEventListener("touchend", N), window.addEventListener("contextmenu", N), L.value.focus());
|
|
460
460
|
}, X = (d) => {
|
|
461
461
|
a.value || (n.newPosition = Number.parseFloat(x.value) + d / (s.value - v.value) * 100, B(n.newPosition), c());
|
|
462
|
-
},
|
|
462
|
+
}, Z = () => {
|
|
463
463
|
X(-u.value);
|
|
464
464
|
}, W = () => {
|
|
465
465
|
X(u.value);
|
|
@@ -473,7 +473,7 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
473
473
|
a.value || (B(100), c());
|
|
474
474
|
}, r = (d) => {
|
|
475
475
|
let g = !0;
|
|
476
|
-
[St, Nt].includes(d.key) ?
|
|
476
|
+
[St, Nt].includes(d.key) ? Z() : [Et, kt].includes(d.key) ? W() : d.key === It ? M() : d.key === Bt ? l() : d.key === xt ? b() : d.key === Pt ? E() : g = !1, g && d.preventDefault();
|
|
477
477
|
}, m = (d) => {
|
|
478
478
|
let g, A;
|
|
479
479
|
return d.type.startsWith("touch") ? (A = d.touches[0].clientY, g = d.touches[0].clientX) : (A = d.clientY, g = d.clientX), {
|
|
@@ -488,8 +488,8 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
488
488
|
if (n.dragging) {
|
|
489
489
|
n.isClick = !1, F(), k();
|
|
490
490
|
let g;
|
|
491
|
-
const { clientX: A, clientY:
|
|
492
|
-
e.vertical ? (n.currentY =
|
|
491
|
+
const { clientX: A, clientY: G } = m(d);
|
|
492
|
+
e.vertical ? (n.currentY = G, g = (n.startY - n.currentY) / f.value * 100) : (n.currentX = A, g = (n.currentX - n.startX) / f.value * 100), n.newPosition = n.startPosition + g, B(n.newPosition);
|
|
493
493
|
}
|
|
494
494
|
}, N = () => {
|
|
495
495
|
n.dragging && (setTimeout(() => {
|
|
@@ -500,12 +500,12 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
500
500
|
return;
|
|
501
501
|
d < 0 ? d = 0 : d > 100 && (d = 100);
|
|
502
502
|
const g = 100 / ((s.value - v.value) / u.value);
|
|
503
|
-
let
|
|
504
|
-
|
|
503
|
+
let G = Math.round(d / g) * g * (s.value - v.value) * 0.01 + v.value;
|
|
504
|
+
G = Number.parseFloat(G.toFixed(V.value)), G !== e.modelValue && o(O, G), !n.dragging && e.modelValue !== n.oldValue && (n.oldValue = e.modelValue), await ge(), n.dragging && F(), C.value.updatePopper();
|
|
505
505
|
};
|
|
506
506
|
return ie(() => n.dragging, (d) => {
|
|
507
507
|
_(d);
|
|
508
|
-
}), ye(L, "touchstart",
|
|
508
|
+
}), ye(L, "touchstart", H, { passive: !1 }), {
|
|
509
509
|
disabled: a,
|
|
510
510
|
button: L,
|
|
511
511
|
tooltip: C,
|
|
@@ -515,7 +515,7 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
515
515
|
formatValue: T,
|
|
516
516
|
handleMouseEnter: K,
|
|
517
517
|
handleMouseLeave: j,
|
|
518
|
-
onButtonDown:
|
|
518
|
+
onButtonDown: H,
|
|
519
519
|
onKeyDown: r,
|
|
520
520
|
setPosition: B
|
|
521
521
|
};
|
|
@@ -531,10 +531,10 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
531
531
|
getStopStyle: (u) => e.vertical ? { bottom: `${u}%` } : { left: `${u}%` }
|
|
532
532
|
}), Tt = (e, n, o, a, v, s) => {
|
|
533
533
|
const u = (f) => {
|
|
534
|
-
v(O, f), v(
|
|
534
|
+
v(O, f), v(Q, f);
|
|
535
535
|
}, i = () => e.range ? ![o.value, a.value].every((f, p) => f === n.oldValue[p]) : e.modelValue !== n.oldValue, V = () => {
|
|
536
536
|
var f, p;
|
|
537
|
-
e.min > e.max &&
|
|
537
|
+
e.min > e.max && $e("Slider", "min should not be greater than max.");
|
|
538
538
|
const c = e.modelValue;
|
|
539
539
|
e.range && Array.isArray(c) ? c[1] < e.min ? u([e.min, e.min]) : c[0] > e.max ? u([e.max, e.max]) : c[0] < e.min ? u([e.min, c[1]]) : c[1] > e.max ? u([c[0], e.max]) : (n.firstValue = c[0], n.secondValue = c[1], i() && (e.validateEvent && ((f = s == null ? void 0 : s.validate) == null || f.call(s, "change").catch((k) => ae(k))), n.oldValue = c.slice())) : !e.range && typeof c == "number" && !Number.isNaN(c) && (c < e.min ? u(e.min) : c > e.max ? u(e.max) : (n.firstValue = c, i() && (e.validateEvent && ((p = s == null ? void 0 : s.validate) == null || p.call(s, "change").catch((k) => ae(k))), n.oldValue = c)));
|
|
540
540
|
};
|
|
@@ -599,10 +599,10 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
599
599
|
setPosition: F,
|
|
600
600
|
hovering: P,
|
|
601
601
|
dragging: L
|
|
602
|
-
}), (x, U) => (I(),
|
|
602
|
+
}), (x, U) => (I(), $("div", {
|
|
603
603
|
ref_key: "button",
|
|
604
604
|
ref: i,
|
|
605
|
-
class:
|
|
605
|
+
class: R([t(v).e("button-wrapper"), { hover: t(P), dragging: t(L) }]),
|
|
606
606
|
style: te(t(c)),
|
|
607
607
|
tabindex: t(u) ? -1 : 0,
|
|
608
608
|
onMouseenter: t(_),
|
|
@@ -624,11 +624,11 @@ const gt = $e(bt), We = Symbol("sliderContextKey"), yt = he({
|
|
|
624
624
|
persistent: ""
|
|
625
625
|
}, {
|
|
626
626
|
content: be(() => [
|
|
627
|
-
le("span", null,
|
|
627
|
+
le("span", null, qe(t(k)), 1)
|
|
628
628
|
]),
|
|
629
629
|
default: be(() => [
|
|
630
630
|
le("div", {
|
|
631
|
-
class:
|
|
631
|
+
class: R([t(v).e("button"), { hover: t(P), dragging: t(L) }])
|
|
632
632
|
}, null, 2)
|
|
633
633
|
]),
|
|
634
634
|
_: 1
|
|
@@ -643,21 +643,21 @@ const Kt = he({
|
|
|
643
643
|
default: void 0
|
|
644
644
|
}
|
|
645
645
|
});
|
|
646
|
-
var
|
|
646
|
+
var $t = ee({
|
|
647
647
|
name: "ElSliderMarker",
|
|
648
648
|
props: Kt,
|
|
649
649
|
setup(e) {
|
|
650
650
|
const n = Ve("slider"), o = w(() => Ee(e.mark) ? e.mark : e.mark.label), a = w(() => Ee(e.mark) ? void 0 : e.mark.style);
|
|
651
|
-
return () =>
|
|
651
|
+
return () => Je("div", {
|
|
652
652
|
class: n.e("marks-text"),
|
|
653
653
|
style: a.value
|
|
654
654
|
}, o.value);
|
|
655
655
|
}
|
|
656
656
|
});
|
|
657
|
-
const
|
|
657
|
+
const Rt = ee({
|
|
658
658
|
name: "ElSlider"
|
|
659
659
|
}), Yt = /* @__PURE__ */ ee({
|
|
660
|
-
|
|
660
|
+
...Rt,
|
|
661
661
|
props: yt,
|
|
662
662
|
emits: ht,
|
|
663
663
|
setup(e, { expose: n, emit: o }) {
|
|
@@ -685,7 +685,7 @@ const $t = ee({
|
|
|
685
685
|
onSliderMarkerDown: U,
|
|
686
686
|
setFirstValue: K,
|
|
687
687
|
setSecondValue: j
|
|
688
|
-
} = pt(a, u, o), { stops:
|
|
688
|
+
} = pt(a, u, o), { stops: H, getStopStyle: X } = Lt(a, u, k, _), { inputId: Z, isLabeledByFormItem: W } = at(a, {
|
|
689
689
|
formItemContext: i
|
|
690
690
|
}), b = Ue(), E = w(() => a.inputSize || b.value), M = w(() => a.ariaLabel || s("el.slider.defaultLabel", {
|
|
691
691
|
min: a.min,
|
|
@@ -703,16 +703,16 @@ const $t = ee({
|
|
|
703
703
|
return re ? re.length : 0;
|
|
704
704
|
});
|
|
705
705
|
return Math.max.apply(null, y);
|
|
706
|
-
}), { sliderWrapper: d } = Vt(a, u, T), { firstValue: g, secondValue: A, sliderSize:
|
|
706
|
+
}), { sliderWrapper: d } = Vt(a, u, T), { firstValue: g, secondValue: A, sliderSize: G } = Ne(u), je = (y) => {
|
|
707
707
|
u.dragging = y;
|
|
708
708
|
};
|
|
709
709
|
return ye(d, "touchstart", P, {
|
|
710
710
|
passive: !1
|
|
711
711
|
}), ye(d, "touchmove", P, {
|
|
712
712
|
passive: !1
|
|
713
|
-
}),
|
|
713
|
+
}), Qe(We, {
|
|
714
714
|
...Ne(a),
|
|
715
|
-
sliderSize:
|
|
715
|
+
sliderSize: G,
|
|
716
716
|
disabled: c,
|
|
717
717
|
precision: B,
|
|
718
718
|
emitChange: F,
|
|
@@ -722,11 +722,11 @@ const $t = ee({
|
|
|
722
722
|
onSliderClick: L
|
|
723
723
|
}), (y, Pe) => {
|
|
724
724
|
var re, xe;
|
|
725
|
-
return I(),
|
|
726
|
-
id: y.range ? t(
|
|
725
|
+
return I(), $("div", {
|
|
726
|
+
id: y.range ? t(Z) : void 0,
|
|
727
727
|
ref_key: "sliderWrapper",
|
|
728
728
|
ref: d,
|
|
729
|
-
class:
|
|
729
|
+
class: R(t(h)),
|
|
730
730
|
role: y.range ? "group" : void 0,
|
|
731
731
|
"aria-label": y.range && !t(W) ? t(M) : void 0,
|
|
732
732
|
"aria-labelledby": y.range && t(W) ? (re = t(i)) == null ? void 0 : re.labelId : void 0
|
|
@@ -734,7 +734,7 @@ const $t = ee({
|
|
|
734
734
|
le("div", {
|
|
735
735
|
ref_key: "slider",
|
|
736
736
|
ref: V,
|
|
737
|
-
class:
|
|
737
|
+
class: R([
|
|
738
738
|
t(v).e("runway"),
|
|
739
739
|
{ "show-input": y.showInput && !y.range },
|
|
740
740
|
t(v).is("disabled", t(c))
|
|
@@ -744,11 +744,11 @@ const $t = ee({
|
|
|
744
744
|
onTouchstartPassive: t(x)
|
|
745
745
|
}, [
|
|
746
746
|
le("div", {
|
|
747
|
-
class:
|
|
747
|
+
class: R(t(v).e("bar")),
|
|
748
748
|
style: te(t(z))
|
|
749
749
|
}, null, 6),
|
|
750
750
|
se(Fe, {
|
|
751
|
-
id: y.range ? void 0 : t(
|
|
751
|
+
id: y.range ? void 0 : t(Z),
|
|
752
752
|
ref_key: "firstButton",
|
|
753
753
|
ref: f,
|
|
754
754
|
"model-value": t(g),
|
|
@@ -766,7 +766,7 @@ const $t = ee({
|
|
|
766
766
|
"aria-disabled": t(c),
|
|
767
767
|
"onUpdate:modelValue": t(K)
|
|
768
768
|
}, null, 8, ["id", "model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-labelledby", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"]),
|
|
769
|
-
y.range ? (I(),
|
|
769
|
+
y.range ? (I(), J(Fe, {
|
|
770
770
|
key: 0,
|
|
771
771
|
ref_key: "secondButton",
|
|
772
772
|
ref: p,
|
|
@@ -784,38 +784,38 @@ const $t = ee({
|
|
|
784
784
|
"aria-disabled": t(c),
|
|
785
785
|
"onUpdate:modelValue": t(j)
|
|
786
786
|
}, null, 8, ["model-value", "vertical", "tooltip-class", "placement", "aria-label", "aria-valuemin", "aria-valuemax", "aria-valuenow", "aria-valuetext", "aria-orientation", "aria-disabled", "onUpdate:modelValue"])) : ne("v-if", !0),
|
|
787
|
-
y.showStops ? (I(),
|
|
788
|
-
(I(!0),
|
|
787
|
+
y.showStops ? (I(), $("div", { key: 1 }, [
|
|
788
|
+
(I(!0), $(me, null, pe(t(H), (q, oe) => (I(), $("div", {
|
|
789
789
|
key: oe,
|
|
790
|
-
class:
|
|
791
|
-
style: te(t(X)(
|
|
790
|
+
class: R(t(v).e("stop")),
|
|
791
|
+
style: te(t(X)(q))
|
|
792
792
|
}, null, 6))), 128))
|
|
793
793
|
])) : ne("v-if", !0),
|
|
794
|
-
t(N).length > 0 ? (I(),
|
|
794
|
+
t(N).length > 0 ? (I(), $(me, { key: 2 }, [
|
|
795
795
|
le("div", null, [
|
|
796
|
-
(I(!0),
|
|
796
|
+
(I(!0), $(me, null, pe(t(N), (q, oe) => (I(), $("div", {
|
|
797
797
|
key: oe,
|
|
798
|
-
style: te(t(X)(
|
|
799
|
-
class:
|
|
798
|
+
style: te(t(X)(q.position)),
|
|
799
|
+
class: R([t(v).e("stop"), t(v).e("marks-stop")])
|
|
800
800
|
}, null, 6))), 128))
|
|
801
801
|
]),
|
|
802
802
|
le("div", {
|
|
803
|
-
class:
|
|
803
|
+
class: R(t(v).e("marks"))
|
|
804
804
|
}, [
|
|
805
|
-
(I(!0),
|
|
805
|
+
(I(!0), $(me, null, pe(t(N), (q, oe) => (I(), J(t($t), {
|
|
806
806
|
key: oe,
|
|
807
|
-
mark:
|
|
808
|
-
style: te(t(X)(
|
|
809
|
-
onMousedown: fe((Ut) => t(U)(
|
|
807
|
+
mark: q.mark,
|
|
808
|
+
style: te(t(X)(q.position)),
|
|
809
|
+
onMousedown: fe((Ut) => t(U)(q.position), ["stop"])
|
|
810
810
|
}, null, 8, ["mark", "style", "onMousedown"]))), 128))
|
|
811
811
|
], 2)
|
|
812
812
|
], 64)) : ne("v-if", !0)
|
|
813
813
|
], 46, ["onMousedown", "onTouchstartPassive"]),
|
|
814
|
-
y.showInput && !y.range ? (I(),
|
|
814
|
+
y.showInput && !y.range ? (I(), J(t(gt), {
|
|
815
815
|
key: 0,
|
|
816
816
|
ref: "input",
|
|
817
817
|
"model-value": t(g),
|
|
818
|
-
class:
|
|
818
|
+
class: R(t(v).e("input")),
|
|
819
819
|
step: y.step,
|
|
820
820
|
disabled: t(c),
|
|
821
821
|
controls: y.showInputControls,
|
|
@@ -832,7 +832,7 @@ const $t = ee({
|
|
|
832
832
|
}
|
|
833
833
|
});
|
|
834
834
|
var Xt = /* @__PURE__ */ Be(Yt, [["__file", "slider.vue"]]);
|
|
835
|
-
const
|
|
835
|
+
const qt = Re(Xt);
|
|
836
836
|
export {
|
|
837
|
-
|
|
837
|
+
qt as E
|
|
838
838
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { inject as c, ref as l, computed as s, unref as i, isRef as d } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { v as u } from "./index-DyFDTMAw.mjs";
|
|
3
3
|
function m(e, t, a) {
|
|
4
4
|
var o = e == null ? void 0 : u(e, t);
|
|
5
5
|
return o === void 0 ? a : o;
|
|
@@ -193,11 +193,11 @@ const h = (e) => (t, a) => g(t, a, i(e)), g = (e, t, a) => m(a, e, e).replace(/\
|
|
|
193
193
|
locale: a,
|
|
194
194
|
t: h(e)
|
|
195
195
|
};
|
|
196
|
-
}, b = Symbol("localeContextKey"),
|
|
196
|
+
}, b = Symbol("localeContextKey"), w = (e) => {
|
|
197
197
|
const t = c(b, l());
|
|
198
198
|
return f(s(() => t.value || p));
|
|
199
199
|
};
|
|
200
200
|
export {
|
|
201
201
|
m as g,
|
|
202
|
-
|
|
202
|
+
w as u
|
|
203
203
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { watch as m, unref as p } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { d as u } from "./index-DyFDTMAw.mjs";
|
|
3
3
|
const c = ({ from: e, replacement: t, scope: r, version: a, ref: i, type: o = "API" }, s) => {
|
|
4
4
|
m(() => p(s), (d) => {
|
|
5
5
|
d && u(r, `[${o}] ${e} is about to be deprecated in version ${a}, please use ${t} instead.
|