tsviewer 1.0.27 → 1.0.29
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/BFButton-DpIwbJXR.mjs +72 -0
- package/dist/IconSelection-DQZLRwZa.mjs +37 -0
- package/dist/TSAnnotationCanvas-EAjgK8cT.mjs +730 -0
- package/dist/TSAnnotationModal-CTcapLT8.mjs +4429 -0
- package/dist/TSFilterModal-D_p4VsMp.mjs +238 -0
- package/dist/TSScrubber-DV_zbLFM.mjs +377 -0
- package/dist/TSViewerCanvas-B-p1oLEz.mjs +5733 -0
- package/dist/TSViewerLayerWindow-MwCEfh1O.mjs +262 -0
- package/dist/TSViewerToolbar-CCQsR6PP.mjs +555 -0
- package/dist/TsAnnotationDeleteDialog-DXn1tyay.mjs +249 -0
- package/dist/_commonjsHelpers-DaMA6jEr.mjs +8 -0
- package/dist/base-CIy5gWpu.mjs +1413 -0
- package/dist/el-button-B2d_HO4x.mjs +769 -0
- package/dist/el-input-DNjlHApm.mjs +4667 -0
- package/dist/el-input-number-CAzspsnM.mjs +265 -0
- package/dist/el-overlay-_Fd7WVZL.mjs +517 -0
- package/dist/index-B7dOp-ew.mjs +1308 -0
- package/dist/index-ClxLs_jS.mjs +22 -0
- package/dist/pathOr-S0xL-Shs.mjs +18 -0
- package/dist/tsviewer.css +1 -1
- package/dist/tsviewer.es.js +4 -20932
- package/dist/tsviewer.umd.js +17 -17
- package/package.json +2 -2
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
import { defineComponent as N, createVNode as z, h as de, renderSlot as S, onMounted as oe, watchEffect as fe, onBeforeUnmount as ve, inject as Z, computed as I, createElementBlock as V, openBlock as $, normalizeStyle as te, normalizeClass as M, unref as o, createElementVNode as H, createCommentVNode as U, toDisplayString as me, withCtx as T, createBlock as W, resolveDynamicComponent as ye, isRef as pe, watch as R, onScopeDispose as ge, getCurrentInstance as Ce, ref as A, nextTick as he, useSlots as be, provide as we, Transition as Ee, withDirectives as ke, mergeProps as Se, createSlots as Me, vShow as Te } from "vue";
|
|
2
|
+
import { N as X, b as G, c as _, aC as j, n as q, G as Ie, H as K, D as Le, _ as ne, u as De, aD as Pe, E as Be, aE as Fe, F as Ae, U as se, as as Oe, t as $e, aa as le, x as Q, aF as ze, aG as Ne, v as Ye, aH as He, aq as Re, aj as x, M as Ve, aI as Xe, aJ as ee, L as je, aw as Ue, ar as We, w as qe } from "./base-CIy5gWpu.mjs";
|
|
3
|
+
const ae = (e) => {
|
|
4
|
+
if (!e)
|
|
5
|
+
return { onClick: X, onMousedown: X, onMouseup: X };
|
|
6
|
+
let n = !1, s = !1;
|
|
7
|
+
return { onClick: (r) => {
|
|
8
|
+
n && s && e(r), n = s = !1;
|
|
9
|
+
}, onMousedown: (r) => {
|
|
10
|
+
n = r.target === r.currentTarget;
|
|
11
|
+
}, onMouseup: (r) => {
|
|
12
|
+
s = r.target === r.currentTarget;
|
|
13
|
+
} };
|
|
14
|
+
}, Ke = G({
|
|
15
|
+
mask: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !0
|
|
18
|
+
},
|
|
19
|
+
customMaskEvent: Boolean,
|
|
20
|
+
overlayClass: {
|
|
21
|
+
type: q([
|
|
22
|
+
String,
|
|
23
|
+
Array,
|
|
24
|
+
Object
|
|
25
|
+
])
|
|
26
|
+
},
|
|
27
|
+
zIndex: {
|
|
28
|
+
type: q([String, Number])
|
|
29
|
+
}
|
|
30
|
+
}), Ge = {
|
|
31
|
+
click: (e) => e instanceof MouseEvent
|
|
32
|
+
}, _e = "overlay";
|
|
33
|
+
var Je = N({
|
|
34
|
+
name: "ElOverlay",
|
|
35
|
+
props: Ke,
|
|
36
|
+
emits: Ge,
|
|
37
|
+
setup(e, { slots: n, emit: s }) {
|
|
38
|
+
const v = _(_e), l = (a) => {
|
|
39
|
+
s("click", a);
|
|
40
|
+
}, { onClick: u, onMousedown: r, onMouseup: p } = ae(e.customMaskEvent ? void 0 : l);
|
|
41
|
+
return () => e.mask ? z("div", {
|
|
42
|
+
class: [v.b(), e.overlayClass],
|
|
43
|
+
style: {
|
|
44
|
+
zIndex: e.zIndex
|
|
45
|
+
},
|
|
46
|
+
onClick: u,
|
|
47
|
+
onMousedown: r,
|
|
48
|
+
onMouseup: p
|
|
49
|
+
}, [S(n, "default")], j.STYLE | j.CLASS | j.PROPS, ["onClick", "onMouseup", "onMousedown"]) : de("div", {
|
|
50
|
+
class: e.overlayClass,
|
|
51
|
+
style: {
|
|
52
|
+
zIndex: e.zIndex,
|
|
53
|
+
position: "fixed",
|
|
54
|
+
top: "0px",
|
|
55
|
+
right: "0px",
|
|
56
|
+
bottom: "0px",
|
|
57
|
+
left: "0px"
|
|
58
|
+
}
|
|
59
|
+
}, [S(n, "default")]);
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
const Ze = Je, re = Symbol("dialogInjectionKey"), ie = G({
|
|
63
|
+
center: Boolean,
|
|
64
|
+
alignCenter: Boolean,
|
|
65
|
+
closeIcon: {
|
|
66
|
+
type: Ie
|
|
67
|
+
},
|
|
68
|
+
draggable: Boolean,
|
|
69
|
+
overflow: Boolean,
|
|
70
|
+
fullscreen: Boolean,
|
|
71
|
+
headerClass: String,
|
|
72
|
+
bodyClass: String,
|
|
73
|
+
footerClass: String,
|
|
74
|
+
showClose: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !0
|
|
77
|
+
},
|
|
78
|
+
title: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: ""
|
|
81
|
+
},
|
|
82
|
+
ariaLevel: {
|
|
83
|
+
type: String,
|
|
84
|
+
default: "2"
|
|
85
|
+
}
|
|
86
|
+
}), Qe = {
|
|
87
|
+
close: () => !0
|
|
88
|
+
}, xe = (e, n, s, v) => {
|
|
89
|
+
const l = {
|
|
90
|
+
offsetX: 0,
|
|
91
|
+
offsetY: 0
|
|
92
|
+
}, u = (c, f) => {
|
|
93
|
+
if (e.value) {
|
|
94
|
+
const { offsetX: m, offsetY: C } = l, h = e.value.getBoundingClientRect(), b = h.left, i = h.top, w = h.width, k = h.height, L = document.documentElement.clientWidth, D = document.documentElement.clientHeight, P = -b + m, B = -i + C, F = L - b - w + m, O = D - i - (k < D ? k : 0) + C;
|
|
95
|
+
v != null && v.value || (c = Math.min(Math.max(c, P), F), f = Math.min(Math.max(f, B), O)), l.offsetX = c, l.offsetY = f, e.value.style.transform = `translate(${K(c)}, ${K(f)})`;
|
|
96
|
+
}
|
|
97
|
+
}, r = (c) => {
|
|
98
|
+
const f = c.clientX, m = c.clientY, { offsetX: C, offsetY: h } = l, b = (w) => {
|
|
99
|
+
const k = C + w.clientX - f, L = h + w.clientY - m;
|
|
100
|
+
u(k, L);
|
|
101
|
+
}, i = () => {
|
|
102
|
+
document.removeEventListener("mousemove", b), document.removeEventListener("mouseup", i);
|
|
103
|
+
};
|
|
104
|
+
document.addEventListener("mousemove", b), document.addEventListener("mouseup", i);
|
|
105
|
+
}, p = () => {
|
|
106
|
+
n.value && e.value && (n.value.addEventListener("mousedown", r), window.addEventListener("resize", g));
|
|
107
|
+
}, a = () => {
|
|
108
|
+
n.value && e.value && (n.value.removeEventListener("mousedown", r), window.removeEventListener("resize", g));
|
|
109
|
+
}, d = () => {
|
|
110
|
+
l.offsetX = 0, l.offsetY = 0, e.value && (e.value.style.transform = "");
|
|
111
|
+
}, g = () => {
|
|
112
|
+
const { offsetX: c, offsetY: f } = l;
|
|
113
|
+
u(c, f);
|
|
114
|
+
};
|
|
115
|
+
return oe(() => {
|
|
116
|
+
fe(() => {
|
|
117
|
+
s.value ? p() : a();
|
|
118
|
+
});
|
|
119
|
+
}), ve(() => {
|
|
120
|
+
a();
|
|
121
|
+
}), {
|
|
122
|
+
resetPosition: d,
|
|
123
|
+
updatePosition: g
|
|
124
|
+
};
|
|
125
|
+
}, eo = (...e) => (n) => {
|
|
126
|
+
e.forEach((s) => {
|
|
127
|
+
Le(s) ? s(n) : s.value = n;
|
|
128
|
+
});
|
|
129
|
+
}, oo = N({ name: "ElDialogContent" }), to = /* @__PURE__ */ N({
|
|
130
|
+
...oo,
|
|
131
|
+
props: ie,
|
|
132
|
+
emits: Qe,
|
|
133
|
+
setup(e, { expose: n }) {
|
|
134
|
+
const s = e, { t: v } = De(), { Close: l } = Fe, { dialogRef: u, headerRef: r, bodyId: p, ns: a, style: d } = Z(re), { focusTrapRef: g } = Z(Pe), c = I(() => [
|
|
135
|
+
a.b(),
|
|
136
|
+
a.is("fullscreen", s.fullscreen),
|
|
137
|
+
a.is("draggable", s.draggable),
|
|
138
|
+
a.is("align-center", s.alignCenter),
|
|
139
|
+
{ [a.m("center")]: s.center }
|
|
140
|
+
]), f = eo(g, u), m = I(() => s.draggable), C = I(() => s.overflow), { resetPosition: h, updatePosition: b } = xe(u, r, m, C);
|
|
141
|
+
return n({
|
|
142
|
+
resetPosition: h,
|
|
143
|
+
updatePosition: b
|
|
144
|
+
}), (i, w) => ($(), V("div", {
|
|
145
|
+
ref: o(f),
|
|
146
|
+
class: M(o(c)),
|
|
147
|
+
style: te(o(d)),
|
|
148
|
+
tabindex: "-1"
|
|
149
|
+
}, [
|
|
150
|
+
H("header", {
|
|
151
|
+
ref_key: "headerRef",
|
|
152
|
+
ref: r,
|
|
153
|
+
class: M([o(a).e("header"), i.headerClass, { "show-close": i.showClose }])
|
|
154
|
+
}, [
|
|
155
|
+
S(i.$slots, "header", {}, () => [
|
|
156
|
+
H("span", {
|
|
157
|
+
role: "heading",
|
|
158
|
+
"aria-level": i.ariaLevel,
|
|
159
|
+
class: M(o(a).e("title"))
|
|
160
|
+
}, me(i.title), 11, ["aria-level"])
|
|
161
|
+
]),
|
|
162
|
+
i.showClose ? ($(), V("button", {
|
|
163
|
+
key: 0,
|
|
164
|
+
"aria-label": o(v)("el.dialog.close"),
|
|
165
|
+
class: M(o(a).e("headerbtn")),
|
|
166
|
+
type: "button",
|
|
167
|
+
onClick: (k) => i.$emit("close")
|
|
168
|
+
}, [
|
|
169
|
+
z(o(Be), {
|
|
170
|
+
class: M(o(a).e("close"))
|
|
171
|
+
}, {
|
|
172
|
+
default: T(() => [
|
|
173
|
+
($(), W(ye(i.closeIcon || o(l))))
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}, 8, ["class"])
|
|
177
|
+
], 10, ["aria-label", "onClick"])) : U("v-if", !0)
|
|
178
|
+
], 2),
|
|
179
|
+
H("div", {
|
|
180
|
+
id: o(p),
|
|
181
|
+
class: M([o(a).e("body"), i.bodyClass])
|
|
182
|
+
}, [
|
|
183
|
+
S(i.$slots, "default")
|
|
184
|
+
], 10, ["id"]),
|
|
185
|
+
i.$slots.footer ? ($(), V("footer", {
|
|
186
|
+
key: 0,
|
|
187
|
+
class: M([o(a).e("footer"), i.footerClass])
|
|
188
|
+
}, [
|
|
189
|
+
S(i.$slots, "footer")
|
|
190
|
+
], 2)) : U("v-if", !0)
|
|
191
|
+
], 6));
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
var no = /* @__PURE__ */ ne(to, [["__file", "dialog-content.vue"]]);
|
|
195
|
+
const so = G({
|
|
196
|
+
...ie,
|
|
197
|
+
appendToBody: Boolean,
|
|
198
|
+
appendTo: {
|
|
199
|
+
type: Oe.to.type,
|
|
200
|
+
default: "body"
|
|
201
|
+
},
|
|
202
|
+
beforeClose: {
|
|
203
|
+
type: q(Function)
|
|
204
|
+
},
|
|
205
|
+
destroyOnClose: Boolean,
|
|
206
|
+
closeOnClickModal: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: !0
|
|
209
|
+
},
|
|
210
|
+
closeOnPressEscape: {
|
|
211
|
+
type: Boolean,
|
|
212
|
+
default: !0
|
|
213
|
+
},
|
|
214
|
+
lockScroll: {
|
|
215
|
+
type: Boolean,
|
|
216
|
+
default: !0
|
|
217
|
+
},
|
|
218
|
+
modal: {
|
|
219
|
+
type: Boolean,
|
|
220
|
+
default: !0
|
|
221
|
+
},
|
|
222
|
+
openDelay: {
|
|
223
|
+
type: Number,
|
|
224
|
+
default: 0
|
|
225
|
+
},
|
|
226
|
+
closeDelay: {
|
|
227
|
+
type: Number,
|
|
228
|
+
default: 0
|
|
229
|
+
},
|
|
230
|
+
top: {
|
|
231
|
+
type: String
|
|
232
|
+
},
|
|
233
|
+
modelValue: Boolean,
|
|
234
|
+
modalClass: String,
|
|
235
|
+
headerClass: String,
|
|
236
|
+
bodyClass: String,
|
|
237
|
+
footerClass: String,
|
|
238
|
+
width: {
|
|
239
|
+
type: [String, Number]
|
|
240
|
+
},
|
|
241
|
+
zIndex: {
|
|
242
|
+
type: Number
|
|
243
|
+
},
|
|
244
|
+
trapFocus: Boolean,
|
|
245
|
+
headerAriaLevel: {
|
|
246
|
+
type: String,
|
|
247
|
+
default: "2"
|
|
248
|
+
}
|
|
249
|
+
}), lo = {
|
|
250
|
+
open: () => !0,
|
|
251
|
+
opened: () => !0,
|
|
252
|
+
close: () => !0,
|
|
253
|
+
closed: () => !0,
|
|
254
|
+
[se]: (e) => Ae(e),
|
|
255
|
+
openAutoFocus: () => !0,
|
|
256
|
+
closeAutoFocus: () => !0
|
|
257
|
+
}, ao = (e, n = {}) => {
|
|
258
|
+
pe(e) || $e("[useLockscreen]", "You need to pass a ref param to this function");
|
|
259
|
+
const s = n.ns || _("popup"), v = I(() => s.bm("parent", "hidden"));
|
|
260
|
+
if (!le || Q(document.body, v.value))
|
|
261
|
+
return;
|
|
262
|
+
let l = 0, u = !1, r = "0";
|
|
263
|
+
const p = () => {
|
|
264
|
+
setTimeout(() => {
|
|
265
|
+
typeof document > "u" || u && document && (document.body.style.width = r, He(document.body, v.value));
|
|
266
|
+
}, 200);
|
|
267
|
+
};
|
|
268
|
+
R(e, (a) => {
|
|
269
|
+
if (!a) {
|
|
270
|
+
p();
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
u = !Q(document.body, v.value), u && (r = document.body.style.width, ze(document.body, v.value)), l = Ne(s.namespace.value);
|
|
274
|
+
const d = document.documentElement.clientHeight < document.body.scrollHeight, g = Ye(document.body, "overflowY");
|
|
275
|
+
l > 0 && (d || g === "scroll") && u && (document.body.style.width = `calc(100% - ${l}px)`);
|
|
276
|
+
}), ge(() => p());
|
|
277
|
+
}, ro = (e, n) => {
|
|
278
|
+
var s;
|
|
279
|
+
const l = Ce().emit, { nextZIndex: u } = Re();
|
|
280
|
+
let r = "";
|
|
281
|
+
const p = x(), a = x(), d = A(!1), g = A(!1), c = A(!1), f = A((s = e.zIndex) != null ? s : u());
|
|
282
|
+
let m, C;
|
|
283
|
+
const h = Ve("namespace", Xe), b = I(() => {
|
|
284
|
+
const y = {}, E = `--${h.value}-dialog`;
|
|
285
|
+
return e.fullscreen || (e.top && (y[`${E}-margin-top`] = e.top), e.width && (y[`${E}-width`] = K(e.width))), y;
|
|
286
|
+
}), i = I(() => e.alignCenter ? { display: "flex" } : {});
|
|
287
|
+
function w() {
|
|
288
|
+
l("opened");
|
|
289
|
+
}
|
|
290
|
+
function k() {
|
|
291
|
+
l("closed"), l(se, !1), e.destroyOnClose && (c.value = !1);
|
|
292
|
+
}
|
|
293
|
+
function L() {
|
|
294
|
+
l("close");
|
|
295
|
+
}
|
|
296
|
+
function D() {
|
|
297
|
+
C == null || C(), m == null || m(), e.openDelay && e.openDelay > 0 ? { stop: m } = ee(() => O(), e.openDelay) : O();
|
|
298
|
+
}
|
|
299
|
+
function P() {
|
|
300
|
+
m == null || m(), C == null || C(), e.closeDelay && e.closeDelay > 0 ? { stop: C } = ee(() => Y(), e.closeDelay) : Y();
|
|
301
|
+
}
|
|
302
|
+
function B() {
|
|
303
|
+
function y(E) {
|
|
304
|
+
E || (g.value = !0, d.value = !1);
|
|
305
|
+
}
|
|
306
|
+
e.beforeClose ? e.beforeClose(y) : P();
|
|
307
|
+
}
|
|
308
|
+
function F() {
|
|
309
|
+
e.closeOnClickModal && B();
|
|
310
|
+
}
|
|
311
|
+
function O() {
|
|
312
|
+
le && (d.value = !0);
|
|
313
|
+
}
|
|
314
|
+
function Y() {
|
|
315
|
+
d.value = !1;
|
|
316
|
+
}
|
|
317
|
+
function t() {
|
|
318
|
+
l("openAutoFocus");
|
|
319
|
+
}
|
|
320
|
+
function J() {
|
|
321
|
+
l("closeAutoFocus");
|
|
322
|
+
}
|
|
323
|
+
function ue(y) {
|
|
324
|
+
var E;
|
|
325
|
+
((E = y.detail) == null ? void 0 : E.focusReason) === "pointer" && y.preventDefault();
|
|
326
|
+
}
|
|
327
|
+
e.lockScroll && ao(d);
|
|
328
|
+
function ce() {
|
|
329
|
+
e.closeOnPressEscape && B();
|
|
330
|
+
}
|
|
331
|
+
return R(() => e.zIndex, () => {
|
|
332
|
+
var y;
|
|
333
|
+
f.value = (y = e.zIndex) != null ? y : u();
|
|
334
|
+
}), R(() => e.modelValue, (y) => {
|
|
335
|
+
var E;
|
|
336
|
+
y ? (g.value = !1, D(), c.value = !0, f.value = (E = e.zIndex) != null ? E : u(), he(() => {
|
|
337
|
+
l("open"), n.value && (n.value.parentElement.scrollTop = 0, n.value.parentElement.scrollLeft = 0, n.value.scrollTop = 0);
|
|
338
|
+
})) : d.value && P();
|
|
339
|
+
}), R(() => e.fullscreen, (y) => {
|
|
340
|
+
n.value && (y ? (r = n.value.style.transform, n.value.style.transform = "") : n.value.style.transform = r);
|
|
341
|
+
}), oe(() => {
|
|
342
|
+
e.modelValue && (d.value = !0, c.value = !0, D());
|
|
343
|
+
}), {
|
|
344
|
+
afterEnter: w,
|
|
345
|
+
afterLeave: k,
|
|
346
|
+
beforeLeave: L,
|
|
347
|
+
handleClose: B,
|
|
348
|
+
onModalClick: F,
|
|
349
|
+
close: P,
|
|
350
|
+
doClose: Y,
|
|
351
|
+
onOpenAutoFocus: t,
|
|
352
|
+
onCloseAutoFocus: J,
|
|
353
|
+
onCloseRequested: ce,
|
|
354
|
+
onFocusoutPrevented: ue,
|
|
355
|
+
titleId: p,
|
|
356
|
+
bodyId: a,
|
|
357
|
+
closed: g,
|
|
358
|
+
style: b,
|
|
359
|
+
overlayDialogStyle: i,
|
|
360
|
+
rendered: c,
|
|
361
|
+
visible: d,
|
|
362
|
+
zIndex: f
|
|
363
|
+
};
|
|
364
|
+
}, io = N({
|
|
365
|
+
name: "ElDialog",
|
|
366
|
+
inheritAttrs: !1
|
|
367
|
+
}), uo = /* @__PURE__ */ N({
|
|
368
|
+
...io,
|
|
369
|
+
props: so,
|
|
370
|
+
emits: lo,
|
|
371
|
+
setup(e, { expose: n }) {
|
|
372
|
+
const s = e, v = be();
|
|
373
|
+
je({
|
|
374
|
+
scope: "el-dialog",
|
|
375
|
+
from: "the title slot",
|
|
376
|
+
replacement: "the header slot",
|
|
377
|
+
version: "3.0.0",
|
|
378
|
+
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
379
|
+
}, I(() => !!v.title));
|
|
380
|
+
const l = _("dialog"), u = A(), r = A(), p = A(), {
|
|
381
|
+
visible: a,
|
|
382
|
+
titleId: d,
|
|
383
|
+
bodyId: g,
|
|
384
|
+
style: c,
|
|
385
|
+
overlayDialogStyle: f,
|
|
386
|
+
rendered: m,
|
|
387
|
+
zIndex: C,
|
|
388
|
+
afterEnter: h,
|
|
389
|
+
afterLeave: b,
|
|
390
|
+
beforeLeave: i,
|
|
391
|
+
handleClose: w,
|
|
392
|
+
onModalClick: k,
|
|
393
|
+
onOpenAutoFocus: L,
|
|
394
|
+
onCloseAutoFocus: D,
|
|
395
|
+
onCloseRequested: P,
|
|
396
|
+
onFocusoutPrevented: B
|
|
397
|
+
} = ro(s, u);
|
|
398
|
+
we(re, {
|
|
399
|
+
dialogRef: u,
|
|
400
|
+
headerRef: r,
|
|
401
|
+
bodyId: g,
|
|
402
|
+
ns: l,
|
|
403
|
+
rendered: m,
|
|
404
|
+
style: c
|
|
405
|
+
});
|
|
406
|
+
const F = ae(k), O = I(() => s.draggable && !s.fullscreen);
|
|
407
|
+
return n({
|
|
408
|
+
visible: a,
|
|
409
|
+
dialogContentRef: p,
|
|
410
|
+
resetPosition: () => {
|
|
411
|
+
var t;
|
|
412
|
+
(t = p.value) == null || t.resetPosition();
|
|
413
|
+
},
|
|
414
|
+
handleClose: w
|
|
415
|
+
}), (t, J) => ($(), W(o(Ue), {
|
|
416
|
+
to: t.appendTo,
|
|
417
|
+
disabled: t.appendTo !== "body" ? !1 : !t.appendToBody
|
|
418
|
+
}, {
|
|
419
|
+
default: T(() => [
|
|
420
|
+
z(Ee, {
|
|
421
|
+
name: "dialog-fade",
|
|
422
|
+
onAfterEnter: o(h),
|
|
423
|
+
onAfterLeave: o(b),
|
|
424
|
+
onBeforeLeave: o(i),
|
|
425
|
+
persisted: ""
|
|
426
|
+
}, {
|
|
427
|
+
default: T(() => [
|
|
428
|
+
ke(z(o(Ze), {
|
|
429
|
+
"custom-mask-event": "",
|
|
430
|
+
mask: t.modal,
|
|
431
|
+
"overlay-class": t.modalClass,
|
|
432
|
+
"z-index": o(C)
|
|
433
|
+
}, {
|
|
434
|
+
default: T(() => [
|
|
435
|
+
H("div", {
|
|
436
|
+
role: "dialog",
|
|
437
|
+
"aria-modal": "true",
|
|
438
|
+
"aria-label": t.title || void 0,
|
|
439
|
+
"aria-labelledby": t.title ? void 0 : o(d),
|
|
440
|
+
"aria-describedby": o(g),
|
|
441
|
+
class: M(`${o(l).namespace.value}-overlay-dialog`),
|
|
442
|
+
style: te(o(f)),
|
|
443
|
+
onClick: o(F).onClick,
|
|
444
|
+
onMousedown: o(F).onMousedown,
|
|
445
|
+
onMouseup: o(F).onMouseup
|
|
446
|
+
}, [
|
|
447
|
+
z(o(We), {
|
|
448
|
+
loop: "",
|
|
449
|
+
trapped: o(a),
|
|
450
|
+
"focus-start-el": "container",
|
|
451
|
+
onFocusAfterTrapped: o(L),
|
|
452
|
+
onFocusAfterReleased: o(D),
|
|
453
|
+
onFocusoutPrevented: o(B),
|
|
454
|
+
onReleaseRequested: o(P)
|
|
455
|
+
}, {
|
|
456
|
+
default: T(() => [
|
|
457
|
+
o(m) ? ($(), W(no, Se({
|
|
458
|
+
key: 0,
|
|
459
|
+
ref_key: "dialogContentRef",
|
|
460
|
+
ref: p
|
|
461
|
+
}, t.$attrs, {
|
|
462
|
+
center: t.center,
|
|
463
|
+
"align-center": t.alignCenter,
|
|
464
|
+
"close-icon": t.closeIcon,
|
|
465
|
+
draggable: o(O),
|
|
466
|
+
overflow: t.overflow,
|
|
467
|
+
fullscreen: t.fullscreen,
|
|
468
|
+
"header-class": t.headerClass,
|
|
469
|
+
"body-class": t.bodyClass,
|
|
470
|
+
"footer-class": t.footerClass,
|
|
471
|
+
"show-close": t.showClose,
|
|
472
|
+
title: t.title,
|
|
473
|
+
"aria-level": t.headerAriaLevel,
|
|
474
|
+
onClose: o(w)
|
|
475
|
+
}), Me({
|
|
476
|
+
header: T(() => [
|
|
477
|
+
t.$slots.title ? S(t.$slots, "title", { key: 1 }) : S(t.$slots, "header", {
|
|
478
|
+
key: 0,
|
|
479
|
+
close: o(w),
|
|
480
|
+
titleId: o(d),
|
|
481
|
+
titleClass: o(l).e("title")
|
|
482
|
+
})
|
|
483
|
+
]),
|
|
484
|
+
default: T(() => [
|
|
485
|
+
S(t.$slots, "default")
|
|
486
|
+
]),
|
|
487
|
+
_: 2
|
|
488
|
+
}, [
|
|
489
|
+
t.$slots.footer ? {
|
|
490
|
+
name: "footer",
|
|
491
|
+
fn: T(() => [
|
|
492
|
+
S(t.$slots, "footer")
|
|
493
|
+
])
|
|
494
|
+
} : void 0
|
|
495
|
+
]), 1040, ["center", "align-center", "close-icon", "draggable", "overflow", "fullscreen", "header-class", "body-class", "footer-class", "show-close", "title", "aria-level", "onClose"])) : U("v-if", !0)
|
|
496
|
+
]),
|
|
497
|
+
_: 3
|
|
498
|
+
}, 8, ["trapped", "onFocusAfterTrapped", "onFocusAfterReleased", "onFocusoutPrevented", "onReleaseRequested"])
|
|
499
|
+
], 46, ["aria-label", "aria-labelledby", "aria-describedby", "onClick", "onMousedown", "onMouseup"])
|
|
500
|
+
]),
|
|
501
|
+
_: 3
|
|
502
|
+
}, 8, ["mask", "overlay-class", "z-index"]), [
|
|
503
|
+
[Te, o(a)]
|
|
504
|
+
])
|
|
505
|
+
]),
|
|
506
|
+
_: 3
|
|
507
|
+
}, 8, ["onAfterEnter", "onAfterLeave", "onBeforeLeave"])
|
|
508
|
+
]),
|
|
509
|
+
_: 3
|
|
510
|
+
}, 8, ["to", "disabled"]));
|
|
511
|
+
}
|
|
512
|
+
});
|
|
513
|
+
var co = /* @__PURE__ */ ne(uo, [["__file", "dialog.vue"]]);
|
|
514
|
+
const mo = qe(co);
|
|
515
|
+
export {
|
|
516
|
+
mo as E
|
|
517
|
+
};
|