nxd-plugin 1.2.6 → 1.2.8
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/chunks/{component-HighWayEarlyWarningRed-y3S7s_i8.mjs → component-HighWayEarlyWarningRed-CmmlD13f.mjs} +7 -11
- package/dist/chunks/{component-HighWayFreeze-CTMLtags.mjs → component-HighWayFreeze-fwE0zu5a.mjs} +328 -287
- package/dist/chunks/{component-HighwayLiveAlarm-TskT5f3P.mjs → component-HighwayLiveAlarm-eKR6YC57.mjs} +46 -46
- package/dist/chunks/{component-HighwayLiveAlarmNew-o1V5gOQU.mjs → component-HighwayLiveAlarmNew-CJQ38bxx.mjs} +354 -326
- package/dist/chunks/{component-HighwayStations-N9va_GPR.mjs → component-HighwayStations-CIR-nhyB.mjs} +3 -3
- package/dist/chunks/{component-HighwayWeatherForecast-BUa2AtS4.mjs → component-HighwayWeatherForecast-kKP0BVV-.mjs} +2 -2
- package/dist/chunks/component-RadarShortTerm-BPXY6EhF.mjs +447 -0
- package/dist/chunks/{component-ServiceMaterialsBtn-wUxlQ2_A.mjs → component-ServiceMaterialsBtn-BmsX0VQ7.mjs} +91 -91
- package/dist/chunks/{component-YCHome-Ccmyb6xg.mjs → component-YCHome-C3hQ-kl7.mjs} +198 -198
- package/dist/chunks/{component-YCLogin-Dfhl_Rc8.mjs → component-YCLogin-CFEfm-Xo.mjs} +4 -4
- package/dist/chunks/{component-YCLoginNew-47YLq1OS.mjs → component-YCLoginNew-CS5GpLDx.mjs} +4 -4
- package/dist/nxd-plugin.mjs +14 -13
- package/dist/src/index.d.ts +2 -1
- package/dist/styles/component-HighWayEarlyWarningRed.css +1 -1
- package/dist/styles/component-HighWayFreeze.css +1 -1
- package/dist/styles/component-HighwayLiveAlarmNew.css +1 -1
- package/dist/styles/component-RadarShortTerm.css +1 -0
- package/dist/styles/component-YCLogin.css +1 -1
- package/dist/styles/component-YCLoginNew.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./rolldown-runtime-Dd0fQ6-X.mjs";
|
|
2
|
-
import { A as e,
|
|
3
|
-
import { C as _, Ct as v, D as y, Dt as ee, E as b, Et as x, Rt as te, Tt as ne, Ut as re, _ as ie, b as ae, c as oe, f as se, g as S, h as C, j as ce, n as w, p as le, v as ue, w as T, x as E, y as de } from "./component-HighWayEarlyWarningRed-
|
|
4
|
-
import { a as D } from "./component-HighwayLiveAlarm-
|
|
2
|
+
import { A as e, I as t, J as n, L as r, M as i, R as a, S as o, _ as s, a as c, c as l, f as u, i as d, k as f, l as p, o as m, p as h, z as g } from "./component-HighWayFreeze-fwE0zu5a.mjs";
|
|
3
|
+
import { C as _, Ct as v, D as y, Dt as ee, E as b, Et as x, Rt as te, Tt as ne, Ut as re, _ as ie, b as ae, c as oe, f as se, g as S, h as C, j as ce, n as w, p as le, v as ue, w as T, x as E, y as de } from "./component-HighWayEarlyWarningRed-CmmlD13f.mjs";
|
|
4
|
+
import { a as D } from "./component-HighwayLiveAlarm-eKR6YC57.mjs";
|
|
5
5
|
import { Fragment as O, Text as fe, Transition as pe, computed as k, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createSlots as me, createTextVNode as he, createVNode as P, defineComponent as F, getCurrentInstance as ge, h as _e, inject as ve, isRef as I, mergeProps as ye, nextTick as be, normalizeClass as L, normalizeStyle as xe, onBeforeUnmount as Se, onMounted as Ce, onScopeDispose as we, openBlock as R, provide as Te, reactive as Ee, ref as z, renderSlot as B, resolveDynamicComponent as V, toDisplayString as De, toRef as Oe, unref as H, useSlots as ke, vShow as Ae, watch as U, watchEffect as je, withCtx as W, withDirectives as Me } from "vue";
|
|
6
6
|
//#region node_modules/element-plus/es/hooks/use-draggable/index.mjs
|
|
7
7
|
var Ne = (e, t, n, r) => {
|
|
@@ -43,9 +43,9 @@ var Ne = (e, t, n, r) => {
|
|
|
43
43
|
};
|
|
44
44
|
}, Pe = (e, t = {}) => {
|
|
45
45
|
I(e) || T("[useLockscreen]", "You need to pass a ref param to this function");
|
|
46
|
-
let n = t.ns || C("popup"),
|
|
46
|
+
let n = t.ns || C("popup"), r = k(() => n.bm("parent", "hidden")), i = 0, o = !1, s = "0", c = !1, l = () => {
|
|
47
47
|
c || (c = !0, setTimeout(() => {
|
|
48
|
-
typeof document > "u" || o && document && (document.body.style.width = s, E(document.body,
|
|
48
|
+
typeof document > "u" || o && document && (document.body.style.width = s, E(document.body, r.value));
|
|
49
49
|
}, 200));
|
|
50
50
|
};
|
|
51
51
|
U(e, (e) => {
|
|
@@ -53,9 +53,9 @@ var Ne = (e, t, n, r) => {
|
|
|
53
53
|
l();
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
c = !1, o = !ae(document.body,
|
|
56
|
+
c = !1, o = !ae(document.body, r.value), o && (s = document.body.style.width, ie(document.body, r.value)), i = a(n.namespace.value);
|
|
57
57
|
let t = document.documentElement.clientHeight < document.body.scrollHeight, u = de(document.body, "overflowY");
|
|
58
|
-
|
|
58
|
+
i > 0 && (t || u === "scroll") && o && (document.body.style.width = `calc(100% - ${i}px)`);
|
|
59
59
|
}), we(() => l());
|
|
60
60
|
}, Fe = (e) => {
|
|
61
61
|
if (!e) return {
|
|
@@ -95,7 +95,7 @@ var Ne = (e, t, n, r) => {
|
|
|
95
95
|
],
|
|
96
96
|
default: ""
|
|
97
97
|
},
|
|
98
|
-
icon: { type:
|
|
98
|
+
icon: { type: s },
|
|
99
99
|
nativeType: {
|
|
100
100
|
type: String,
|
|
101
101
|
values: [
|
|
@@ -107,8 +107,8 @@ var Ne = (e, t, n, r) => {
|
|
|
107
107
|
},
|
|
108
108
|
loading: Boolean,
|
|
109
109
|
loadingIcon: {
|
|
110
|
-
type:
|
|
111
|
-
default: () =>
|
|
110
|
+
type: s,
|
|
111
|
+
default: () => o
|
|
112
112
|
},
|
|
113
113
|
plain: {
|
|
114
114
|
type: Boolean,
|
|
@@ -148,11 +148,11 @@ var Ne = (e, t, n, r) => {
|
|
|
148
148
|
scope: "props",
|
|
149
149
|
ref: "https://element-plus.org/en-US/component/button.html#button-attributes"
|
|
150
150
|
}, k(() => e.type === "text"));
|
|
151
|
-
let n = ve(Re, void 0), r = oe("button"), { form: i } =
|
|
151
|
+
let n = ve(Re, void 0), r = oe("button"), { form: i } = m(), a = p(k(() => n?.size)), o = l(), s = z(), c = ke(), u = k(() => e.type || n?.type || r.value?.type || ""), d = k(() => e.autoInsertSpace ?? r.value?.autoInsertSpace ?? !1), f = k(() => e.plain ?? r.value?.plain ?? !1), h = k(() => e.round ?? r.value?.round ?? !1), g = k(() => e.text ?? r.value?.text ?? !1), _ = k(() => e.dashed ?? r.value?.dashed ?? !1);
|
|
152
152
|
return {
|
|
153
153
|
_disabled: o,
|
|
154
154
|
_size: a,
|
|
155
|
-
_type:
|
|
155
|
+
_type: u,
|
|
156
156
|
_ref: s,
|
|
157
157
|
_props: k(() => e.tag === "button" ? {
|
|
158
158
|
ariaDisabled: o.value || e.loading,
|
|
@@ -161,12 +161,12 @@ var Ne = (e, t, n, r) => {
|
|
|
161
161
|
type: e.nativeType
|
|
162
162
|
} : {}),
|
|
163
163
|
_plain: f,
|
|
164
|
-
_round:
|
|
164
|
+
_round: h,
|
|
165
165
|
_text: g,
|
|
166
166
|
_dashed: _,
|
|
167
167
|
shouldAddSpace: k(() => {
|
|
168
168
|
let e = c.default?.();
|
|
169
|
-
if (
|
|
169
|
+
if (d.value && e?.length === 1) {
|
|
170
170
|
let t = e[0];
|
|
171
171
|
if (t?.type === fe) {
|
|
172
172
|
let e = t.children;
|
|
@@ -855,7 +855,7 @@ function $(e, t = 20) {
|
|
|
855
855
|
return e.mix("#141414", t).toString();
|
|
856
856
|
}
|
|
857
857
|
function ct(e) {
|
|
858
|
-
let t =
|
|
858
|
+
let t = l(), n = C("button");
|
|
859
859
|
return k(() => {
|
|
860
860
|
let r = {}, i = e.color;
|
|
861
861
|
if (i) {
|
|
@@ -911,11 +911,11 @@ var lt = /* @__PURE__ */ F({
|
|
|
911
911
|
props: Ie,
|
|
912
912
|
emits: Le,
|
|
913
913
|
setup(e, { expose: t, emit: n }) {
|
|
914
|
-
let r = e, i = n, a = ct(r), o = C("button"), { _ref: s, _size: c, _type: l, _disabled:
|
|
914
|
+
let r = e, i = n, a = ct(r), o = C("button"), { _ref: s, _size: c, _type: l, _disabled: d, _props: f, _plain: p, _round: m, _text: h, _dashed: g, shouldAddSpace: _, handleClick: v } = ze(r, i), y = k(() => [
|
|
915
915
|
o.b(),
|
|
916
916
|
o.m(l.value),
|
|
917
917
|
o.m(c.value),
|
|
918
|
-
o.is("disabled",
|
|
918
|
+
o.is("disabled", d.value),
|
|
919
919
|
o.is("loading", r.loading),
|
|
920
920
|
o.is("plain", p.value),
|
|
921
921
|
o.is("round", m.value),
|
|
@@ -929,23 +929,23 @@ var lt = /* @__PURE__ */ F({
|
|
|
929
929
|
ref: s,
|
|
930
930
|
size: c,
|
|
931
931
|
type: l,
|
|
932
|
-
disabled:
|
|
932
|
+
disabled: d,
|
|
933
933
|
shouldAddSpace: _
|
|
934
934
|
}), (t, n) => (R(), A(V(e.tag), ye({
|
|
935
935
|
ref_key: "_ref",
|
|
936
936
|
ref: s
|
|
937
|
-
}, H(
|
|
937
|
+
}, H(f), {
|
|
938
938
|
class: y.value,
|
|
939
939
|
style: H(a),
|
|
940
940
|
onClick: H(v)
|
|
941
941
|
}), {
|
|
942
|
-
default: W(() => [e.loading ? (R(), M(O, { key: 0 }, [t.$slots.loading ? B(t.$slots, "loading", { key: 0 }) : (R(), A(H(
|
|
942
|
+
default: W(() => [e.loading ? (R(), M(O, { key: 0 }, [t.$slots.loading ? B(t.$slots, "loading", { key: 0 }) : (R(), A(H(u), {
|
|
943
943
|
key: 1,
|
|
944
944
|
class: L(H(o).is("loading"))
|
|
945
945
|
}, {
|
|
946
946
|
default: W(() => [(R(), A(V(e.loadingIcon)))]),
|
|
947
947
|
_: 1
|
|
948
|
-
}, 8, ["class"]))], 64)) : e.icon || t.$slots.icon ? (R(), A(H(
|
|
948
|
+
}, 8, ["class"]))], 64)) : e.icon || t.$slots.icon ? (R(), A(H(u), { key: 1 }, {
|
|
949
949
|
default: W(() => [e.icon ? (R(), A(V(e.icon), { key: 0 })) : B(t.$slots, "icon", { key: 1 })]),
|
|
950
950
|
_: 3
|
|
951
951
|
})) : j("v-if", !0), t.$slots.default ? (R(), M("span", {
|
|
@@ -980,8 +980,8 @@ var lt = /* @__PURE__ */ F({
|
|
|
980
980
|
let n = C("button");
|
|
981
981
|
return (e, r) => (R(), M("div", { class: L([H(n).b("group"), H(n).bm("group", t.direction)]) }, [B(e.$slots, "default")], 2));
|
|
982
982
|
}
|
|
983
|
-
}), dt =
|
|
984
|
-
|
|
983
|
+
}), dt = e(lt, { ButtonGroup: ut });
|
|
984
|
+
i(ut);
|
|
985
985
|
//#endregion
|
|
986
986
|
//#region node_modules/element-plus/es/components/dialog/src/dialog-content.mjs
|
|
987
987
|
var ft = b({
|
|
@@ -990,7 +990,7 @@ var ft = b({
|
|
|
990
990
|
type: Boolean,
|
|
991
991
|
default: void 0
|
|
992
992
|
},
|
|
993
|
-
closeIcon: { type:
|
|
993
|
+
closeIcon: { type: s },
|
|
994
994
|
draggable: {
|
|
995
995
|
type: Boolean,
|
|
996
996
|
default: void 0
|
|
@@ -1026,7 +1026,7 @@ var ft = b({
|
|
|
1026
1026
|
...ft,
|
|
1027
1027
|
appendToBody: Boolean,
|
|
1028
1028
|
appendTo: {
|
|
1029
|
-
type:
|
|
1029
|
+
type: g.to.type,
|
|
1030
1030
|
default: "body"
|
|
1031
1031
|
},
|
|
1032
1032
|
beforeClose: { type: y(Function) },
|
|
@@ -1078,7 +1078,7 @@ var ft = b({
|
|
|
1078
1078
|
opened: () => !0,
|
|
1079
1079
|
close: () => !0,
|
|
1080
1080
|
closed: () => !0,
|
|
1081
|
-
[
|
|
1081
|
+
[n]: (e) => ce(e),
|
|
1082
1082
|
openAutoFocus: () => !0,
|
|
1083
1083
|
closeAutoFocus: () => !0
|
|
1084
1084
|
};
|
|
@@ -1101,17 +1101,17 @@ var _t = b({
|
|
|
1101
1101
|
name: "ElOverlay",
|
|
1102
1102
|
props: _t,
|
|
1103
1103
|
emits: vt,
|
|
1104
|
-
setup(e, { slots:
|
|
1105
|
-
let
|
|
1106
|
-
|
|
1104
|
+
setup(e, { slots: n, emit: r }) {
|
|
1105
|
+
let i = C(yt), { onClick: a, onMousedown: o, onMouseup: s } = Fe(e.customMaskEvent ? void 0 : (e) => {
|
|
1106
|
+
r("click", e);
|
|
1107
1107
|
});
|
|
1108
1108
|
return () => e.mask ? P("div", {
|
|
1109
|
-
class: [
|
|
1109
|
+
class: [i.b(), e.overlayClass],
|
|
1110
1110
|
style: { zIndex: e.zIndex },
|
|
1111
|
-
onClick:
|
|
1112
|
-
onMousedown:
|
|
1113
|
-
onMouseup:
|
|
1114
|
-
}, [B(
|
|
1111
|
+
onClick: a,
|
|
1112
|
+
onMousedown: o,
|
|
1113
|
+
onMouseup: s
|
|
1114
|
+
}, [B(n, "default")], t.STYLE | t.CLASS | t.PROPS, [
|
|
1115
1115
|
"onClick",
|
|
1116
1116
|
"onMouseup",
|
|
1117
1117
|
"onMousedown"
|
|
@@ -1125,10 +1125,10 @@ var _t = b({
|
|
|
1125
1125
|
bottom: "0px",
|
|
1126
1126
|
left: "0px"
|
|
1127
1127
|
}
|
|
1128
|
-
}, [B(
|
|
1128
|
+
}, [B(n, "default")]);
|
|
1129
1129
|
}
|
|
1130
1130
|
}), xt = Symbol("dialogInjectionKey"), St = "dialog-fade", Ct = "ElDialog", wt = (e, t) => {
|
|
1131
|
-
let
|
|
1131
|
+
let i = ge().emit, { nextZIndex: a } = le(), o = "", s = r(), c = r(), l = z(!1), u = z(!1), d = z(!1), f = z(e.zIndex ?? a()), p = z(!1), m, h, g = oe(), v = k(() => g.value?.namespace ?? "el"), y = k(() => g.value?.dialog), b = k(() => {
|
|
1132
1132
|
let t = {}, n = `--${v.value}-dialog`;
|
|
1133
1133
|
if (!e.fullscreen) {
|
|
1134
1134
|
e.top && (t[`${n}-margin-top`] = e.top);
|
|
@@ -1154,13 +1154,13 @@ var _t = b({
|
|
|
1154
1154
|
return n;
|
|
1155
1155
|
});
|
|
1156
1156
|
function w() {
|
|
1157
|
-
|
|
1157
|
+
i("opened");
|
|
1158
1158
|
}
|
|
1159
1159
|
function T() {
|
|
1160
|
-
|
|
1160
|
+
i("closed"), i(n, !1), e.destroyOnClose && (d.value = !1), p.value = !1;
|
|
1161
1161
|
}
|
|
1162
1162
|
function E() {
|
|
1163
|
-
p.value = !0,
|
|
1163
|
+
p.value = !0, i("close");
|
|
1164
1164
|
}
|
|
1165
1165
|
function de() {
|
|
1166
1166
|
h?.(), m?.(), e.openDelay && e.openDelay > 0 ? {stop: m} = re(() => pe(), e.openDelay) : pe();
|
|
@@ -1184,10 +1184,10 @@ var _t = b({
|
|
|
1184
1184
|
l.value = !1;
|
|
1185
1185
|
}
|
|
1186
1186
|
function j() {
|
|
1187
|
-
|
|
1187
|
+
i("openAutoFocus");
|
|
1188
1188
|
}
|
|
1189
1189
|
function M() {
|
|
1190
|
-
|
|
1190
|
+
i("closeAutoFocus");
|
|
1191
1191
|
}
|
|
1192
1192
|
function N(e) {
|
|
1193
1193
|
e.detail?.focusReason === "pointer" && e.preventDefault();
|
|
@@ -1203,7 +1203,7 @@ var _t = b({
|
|
|
1203
1203
|
f.value = e.zIndex ?? a();
|
|
1204
1204
|
}), U(() => e.modelValue, (n) => {
|
|
1205
1205
|
n ? (u.value = !1, p.value = !1, de(), d.value = !0, f.value = e.zIndex ?? a(), be(() => {
|
|
1206
|
-
|
|
1206
|
+
i("open"), t.value && (t.value.parentElement.scrollTop = 0, t.value.parentElement.scrollLeft = 0, t.value.scrollTop = 0);
|
|
1207
1207
|
})) : l.value && D();
|
|
1208
1208
|
}), U(() => e.fullscreen, (e) => {
|
|
1209
1209
|
t.value && (e ? (o = t.value.style.transform, t.value.style.transform = "") : t.value.style.transform = o);
|
|
@@ -1247,52 +1247,52 @@ var _t = b({
|
|
|
1247
1247
|
props: ft,
|
|
1248
1248
|
emits: pt,
|
|
1249
1249
|
setup(e, { expose: t }) {
|
|
1250
|
-
let { t: n } = S(), { Close: r } =
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
{ [
|
|
1250
|
+
let { t: n } = S(), { Close: r } = h, i = e, { dialogRef: a, headerRef: o, bodyId: s, ns: l, style: d } = ve(xt), { focusTrapRef: f } = ve(c), p = Tt(f, a), m = k(() => !!i.draggable), { resetPosition: g, updatePosition: _, isDragging: v } = Ne(a, o, m, k(() => !!i.overflow)), y = k(() => [
|
|
1251
|
+
l.b(),
|
|
1252
|
+
l.is("fullscreen", i.fullscreen),
|
|
1253
|
+
l.is("draggable", m.value),
|
|
1254
|
+
l.is("dragging", v.value),
|
|
1255
|
+
l.is("align-center", !!i.alignCenter),
|
|
1256
|
+
{ [l.m("center")]: i.center }
|
|
1257
1257
|
]);
|
|
1258
1258
|
return t({
|
|
1259
|
-
resetPosition:
|
|
1259
|
+
resetPosition: g,
|
|
1260
1260
|
updatePosition: _
|
|
1261
1261
|
}), (t, i) => (R(), M("div", {
|
|
1262
1262
|
ref: H(p),
|
|
1263
1263
|
class: L(y.value),
|
|
1264
|
-
style: xe(H(
|
|
1264
|
+
style: xe(H(d)),
|
|
1265
1265
|
tabindex: "-1"
|
|
1266
1266
|
}, [
|
|
1267
1267
|
N("header", {
|
|
1268
1268
|
ref_key: "headerRef",
|
|
1269
1269
|
ref: o,
|
|
1270
1270
|
class: L([
|
|
1271
|
-
H(
|
|
1271
|
+
H(l).e("header"),
|
|
1272
1272
|
e.headerClass,
|
|
1273
1273
|
{ "show-close": e.showClose }
|
|
1274
1274
|
])
|
|
1275
1275
|
}, [B(t.$slots, "header", {}, () => [N("span", {
|
|
1276
1276
|
role: "heading",
|
|
1277
1277
|
"aria-level": e.ariaLevel,
|
|
1278
|
-
class: L(H(
|
|
1278
|
+
class: L(H(l).e("title"))
|
|
1279
1279
|
}, De(e.title), 11, Et)]), e.showClose ? (R(), M("button", {
|
|
1280
1280
|
key: 0,
|
|
1281
1281
|
"aria-label": H(n)("el.dialog.close"),
|
|
1282
|
-
class: L(H(
|
|
1282
|
+
class: L(H(l).e("headerbtn")),
|
|
1283
1283
|
type: "button",
|
|
1284
1284
|
onClick: i[0] ||= (e) => t.$emit("close")
|
|
1285
|
-
}, [P(H(
|
|
1285
|
+
}, [P(H(u), { class: L(H(l).e("close")) }, {
|
|
1286
1286
|
default: W(() => [(R(), A(V(e.closeIcon || H(r))))]),
|
|
1287
1287
|
_: 1
|
|
1288
1288
|
}, 8, ["class"])], 10, Dt)) : j("v-if", !0)], 2),
|
|
1289
1289
|
N("div", {
|
|
1290
1290
|
id: H(s),
|
|
1291
|
-
class: L([H(
|
|
1291
|
+
class: L([H(l).e("body"), e.bodyClass])
|
|
1292
1292
|
}, [B(t.$slots, "default")], 10, Ot),
|
|
1293
1293
|
t.$slots.footer ? (R(), M("footer", {
|
|
1294
1294
|
key: 0,
|
|
1295
|
-
class: L([H(
|
|
1295
|
+
class: L([H(l).e("footer"), e.footerClass])
|
|
1296
1296
|
}, [B(t.$slots, "footer")], 2)) : j("v-if", !0)
|
|
1297
1297
|
], 6));
|
|
1298
1298
|
}
|
|
@@ -1300,39 +1300,39 @@ var _t = b({
|
|
|
1300
1300
|
"aria-label",
|
|
1301
1301
|
"aria-labelledby",
|
|
1302
1302
|
"aria-describedby"
|
|
1303
|
-
], jt =
|
|
1303
|
+
], jt = e(/* @__PURE__ */ F({
|
|
1304
1304
|
name: "ElDialog",
|
|
1305
1305
|
inheritAttrs: !1,
|
|
1306
1306
|
__name: "dialog",
|
|
1307
1307
|
props: ht,
|
|
1308
1308
|
emits: gt,
|
|
1309
|
-
setup(e, { expose:
|
|
1310
|
-
let
|
|
1309
|
+
setup(e, { expose: t }) {
|
|
1310
|
+
let n = e, r = ke();
|
|
1311
1311
|
D({
|
|
1312
1312
|
scope: "el-dialog",
|
|
1313
1313
|
from: "the title slot",
|
|
1314
1314
|
replacement: "the header slot",
|
|
1315
1315
|
version: "3.0.0",
|
|
1316
1316
|
ref: "https://element-plus.org/en-US/component/dialog.html#slots"
|
|
1317
|
-
}, k(() => !!
|
|
1318
|
-
let
|
|
1317
|
+
}, k(() => !!r.title));
|
|
1318
|
+
let i = C("dialog"), a = z(), o = z(), s = z(), { visible: c, titleId: l, bodyId: u, style: p, overlayDialogStyle: m, rendered: h, transitionConfig: g, zIndex: _, _draggable: v, _alignCenter: y, _overflow: ee, penetrable: b, handleClose: x, onModalClick: te, onOpenAutoFocus: ne, onCloseAutoFocus: re, onCloseRequested: ie, onFocusoutPrevented: ae, bringToFront: oe, closing: se } = wt(n, a);
|
|
1319
1319
|
Te(xt, {
|
|
1320
|
-
dialogRef:
|
|
1321
|
-
headerRef:
|
|
1322
|
-
bodyId:
|
|
1323
|
-
ns:
|
|
1320
|
+
dialogRef: a,
|
|
1321
|
+
headerRef: o,
|
|
1322
|
+
bodyId: u,
|
|
1323
|
+
ns: i,
|
|
1324
1324
|
rendered: h,
|
|
1325
|
-
style:
|
|
1325
|
+
style: p
|
|
1326
1326
|
});
|
|
1327
1327
|
let S = Fe(te);
|
|
1328
|
-
return
|
|
1329
|
-
visible:
|
|
1330
|
-
dialogContentRef:
|
|
1328
|
+
return t({
|
|
1329
|
+
visible: c,
|
|
1330
|
+
dialogContentRef: s,
|
|
1331
1331
|
resetPosition: () => {
|
|
1332
|
-
|
|
1332
|
+
s.value?.resetPosition();
|
|
1333
1333
|
},
|
|
1334
1334
|
handleClose: x
|
|
1335
|
-
}), (
|
|
1335
|
+
}), (t, n) => (R(), A(H(f), {
|
|
1336
1336
|
to: e.appendTo,
|
|
1337
1337
|
disabled: e.appendTo === "body" ? !e.appendToBody : !1
|
|
1338
1338
|
}, {
|
|
@@ -1342,8 +1342,8 @@ var _t = b({
|
|
|
1342
1342
|
mask: e.modal,
|
|
1343
1343
|
"overlay-class": [
|
|
1344
1344
|
e.modalClass ?? "",
|
|
1345
|
-
`${H(
|
|
1346
|
-
H(
|
|
1345
|
+
`${H(i).namespace.value}-modal-dialog`,
|
|
1346
|
+
H(i).is("penetrable", H(b))
|
|
1347
1347
|
],
|
|
1348
1348
|
"z-index": H(_)
|
|
1349
1349
|
}, {
|
|
@@ -1351,16 +1351,16 @@ var _t = b({
|
|
|
1351
1351
|
role: "dialog",
|
|
1352
1352
|
"aria-modal": "true",
|
|
1353
1353
|
"aria-label": e.title || void 0,
|
|
1354
|
-
"aria-labelledby": e.title ? void 0 : H(
|
|
1355
|
-
"aria-describedby": H(
|
|
1356
|
-
class: L([`${H(
|
|
1354
|
+
"aria-labelledby": e.title ? void 0 : H(l),
|
|
1355
|
+
"aria-describedby": H(u),
|
|
1356
|
+
class: L([`${H(i).namespace.value}-overlay-dialog`, H(i).is("closing", H(se))]),
|
|
1357
1357
|
style: xe(H(m)),
|
|
1358
|
-
onClick:
|
|
1359
|
-
onMousedown:
|
|
1360
|
-
onMouseup:
|
|
1361
|
-
}, [P(H(
|
|
1358
|
+
onClick: n[0] ||= (...e) => H(S).onClick && H(S).onClick(...e),
|
|
1359
|
+
onMousedown: n[1] ||= (...e) => H(S).onMousedown && H(S).onMousedown(...e),
|
|
1360
|
+
onMouseup: n[2] ||= (...e) => H(S).onMouseup && H(S).onMouseup(...e)
|
|
1361
|
+
}, [P(H(d), {
|
|
1362
1362
|
loop: "",
|
|
1363
|
-
trapped: H(
|
|
1363
|
+
trapped: H(c),
|
|
1364
1364
|
"focus-start-el": "container",
|
|
1365
1365
|
onFocusAfterTrapped: H(ne),
|
|
1366
1366
|
onFocusAfterReleased: H(re),
|
|
@@ -1370,8 +1370,8 @@ var _t = b({
|
|
|
1370
1370
|
default: W(() => [H(h) ? (R(), A(kt, ye({
|
|
1371
1371
|
key: 0,
|
|
1372
1372
|
ref_key: "dialogContentRef",
|
|
1373
|
-
ref:
|
|
1374
|
-
},
|
|
1373
|
+
ref: s
|
|
1374
|
+
}, t.$attrs, {
|
|
1375
1375
|
center: e.center,
|
|
1376
1376
|
"align-center": H(y),
|
|
1377
1377
|
"close-icon": e.closeIcon,
|
|
@@ -1387,17 +1387,17 @@ var _t = b({
|
|
|
1387
1387
|
onClose: H(x),
|
|
1388
1388
|
onMousedown: H(oe)
|
|
1389
1389
|
}), me({
|
|
1390
|
-
header: W(() => [
|
|
1390
|
+
header: W(() => [t.$slots.title ? B(t.$slots, "title", { key: 1 }) : B(t.$slots, "header", {
|
|
1391
1391
|
key: 0,
|
|
1392
1392
|
close: H(x),
|
|
1393
|
-
titleId: H(
|
|
1394
|
-
titleClass: H(
|
|
1393
|
+
titleId: H(l),
|
|
1394
|
+
titleClass: H(i).e("title")
|
|
1395
1395
|
})]),
|
|
1396
|
-
default: W(() => [B(
|
|
1396
|
+
default: W(() => [B(t.$slots, "default")]),
|
|
1397
1397
|
_: 2
|
|
1398
|
-
}, [
|
|
1398
|
+
}, [t.$slots.footer ? {
|
|
1399
1399
|
name: "footer",
|
|
1400
|
-
fn: W(() => [B(
|
|
1400
|
+
fn: W(() => [B(t.$slots, "footer")]),
|
|
1401
1401
|
key: "0"
|
|
1402
1402
|
} : void 0]), 1040, [
|
|
1403
1403
|
"center",
|
|
@@ -1428,7 +1428,7 @@ var _t = b({
|
|
|
1428
1428
|
"mask",
|
|
1429
1429
|
"overlay-class",
|
|
1430
1430
|
"z-index"
|
|
1431
|
-
]), [[Ae, H(
|
|
1431
|
+
]), [[Ae, H(c)]])]),
|
|
1432
1432
|
_: 3
|
|
1433
1433
|
}, 16)]),
|
|
1434
1434
|
_: 3
|