jmash-core 0.0.27 → 0.0.28

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.
Files changed (79) hide show
  1. package/dist/{401-M7cRiNeA.mjs → 401-DHF-V-Zy.mjs} +2 -2
  2. package/dist/{404-Dj6c1lv8.mjs → 404-BYdOQuni.mjs} +1 -1
  3. package/dist/{BarChart-BRzr-1Pg.mjs → BarChart-RqUPCdJI.mjs} +2 -2
  4. package/dist/{PieChart-Bwf_dDor.mjs → PieChart-1jIJVala.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-DZdDTVjb.mjs → PieChart.vue_vue_type_script_setup_true_lang-DVIUkdCZ.mjs} +2 -2
  6. package/dist/{RadarChart-CqhtPDg5.mjs → RadarChart-Bc8S0ALP.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-9-54WMZq.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CZH2B93g.mjs} +2 -2
  8. package/dist/{edit-BvvDET5t.mjs → edit-ChkuuXol.mjs} +1 -1
  9. package/dist/{edit-CaxsTptv.mjs → edit-D9SACDyC.mjs} +52 -50
  10. package/dist/{edit-B9Lq-t_r.mjs → edit-DPjM8Jlu.mjs} +1 -1
  11. package/dist/{edit-BRxQkFDt.mjs → edit-Dfa1EM3Q.mjs} +1 -1
  12. package/dist/{edit-C7GD0nSe.mjs → edit-Dt4fjw1S.mjs} +1 -1
  13. package/dist/edit-QqWLBTAl.mjs +4 -0
  14. package/dist/{edit-CmZKTMpm.mjs → edit-mxla5Dwo.mjs} +90 -88
  15. package/dist/edit-xL7t35XF.mjs +4 -0
  16. package/dist/{edit.vue_vue_type_script_setup_true_lang-BJra8IL2.mjs → edit.vue_vue_type_script_setup_true_lang-2gWgg28j.mjs} +32 -31
  17. package/dist/{edit.vue_vue_type_script_setup_true_lang-DgGcCBMj.mjs → edit.vue_vue_type_script_setup_true_lang-BYh6kXhd.mjs} +106 -104
  18. package/dist/{edit.vue_vue_type_script_setup_true_lang-CLen66ub.mjs → edit.vue_vue_type_script_setup_true_lang-CEJcRABj.mjs} +46 -44
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-CD9L7JV6.mjs → edit.vue_vue_type_script_setup_true_lang-D6LyCzD-.mjs} +39 -38
  20. package/dist/{edit.vue_vue_type_script_setup_true_lang-DHfZOjnV.mjs → edit.vue_vue_type_script_setup_true_lang-DRoxMTE3.mjs} +35 -33
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-D2EOXI-4.mjs → edit.vue_vue_type_script_setup_true_lang-O9kmmp-o.mjs} +35 -33
  22. package/dist/{el-card-DSL4P5gG.mjs → el-card-DwHvO2Ya.mjs} +1 -1
  23. package/dist/{el-col-1uWbtffl.mjs → el-col-CpkHzVh2.mjs} +7 -7
  24. package/dist/{el-date-picker-5Ichw8rC.mjs → el-date-picker-B6dLs8du.mjs} +424 -424
  25. package/dist/{el-divider-DU-ox9JK.mjs → el-divider-N6be-jn8.mjs} +1 -1
  26. package/dist/{el-dropdown-item-Bt9Aai9P.mjs → el-dropdown-item-B-4lE04J.mjs} +47 -46
  27. package/dist/el-form-item--x5GHc7n.mjs +1124 -0
  28. package/dist/{el-tree-select-CSA9Hezj.mjs → el-tree-select-DpKRTcZJ.mjs} +31 -31
  29. package/dist/{index-DwCnuhwT.mjs → index-0Jc1dpgF.mjs} +46 -44
  30. package/dist/{index-43qW6Kzo.mjs → index-B3-6N5dQ.mjs} +65 -64
  31. package/dist/{index-Dhot8quq.mjs → index-B4ruvSZ3.mjs} +49 -48
  32. package/dist/{index-CZy6Ahnx.mjs → index-B8Bjod4Z.mjs} +1 -1
  33. package/dist/{index-Dh3QVFbj.mjs → index-BGrn7xfJ.mjs} +87 -85
  34. package/dist/{index-HxChxr7a.mjs → index-BRV4P_kX.mjs} +82 -80
  35. package/dist/{index-BbW9mmA_.mjs → index-BpV4WDjm.mjs} +5 -5
  36. package/dist/{index-BEysoYwl.mjs → index-C6rajwwk.mjs} +89 -87
  37. package/dist/{index-BC43E5Ar.mjs → index-CPlBZyYT.mjs} +43 -40
  38. package/dist/{index-CkO9KLDz.mjs → index-CZbK2Kio.mjs} +154 -152
  39. package/dist/{index-DXr_IDAv.mjs → index-Cn9_c0n1.mjs} +179 -178
  40. package/dist/{index-BE1CpPx5.mjs → index-CyTjYwGV.mjs} +1 -1
  41. package/dist/{index-BVi8jMer.mjs → index-CzQLCV1q.mjs} +1 -1
  42. package/dist/{index-BG-VGQjG.mjs → index-D6WFVmZz.mjs} +58 -56
  43. package/dist/{index-CMoyhn2V.mjs → index-Dwg0azQy.mjs} +92 -90
  44. package/dist/{index-PuOF-77f.mjs → index-FcnP7111.mjs} +47 -47
  45. package/dist/index-Kn7Q3GUp.mjs +23679 -0
  46. package/dist/index-iYRVwor-.mjs +502 -0
  47. package/dist/{index-WvQkk6zz.mjs → index-pAD6CUAf.mjs} +101 -99
  48. package/dist/{index-L7Wb4QU_.mjs → index-pBVS-dCg.mjs} +1 -1
  49. package/dist/index.mjs +25 -25
  50. package/dist/{index.vue_vue_type_script_setup_true_lang-c5OyPyj2.mjs → index.vue_vue_type_script_setup_true_lang-DfsB8ZEs.mjs} +13 -12
  51. package/dist/{picture-DQoPRn9H.mjs → picture-D34s_Oi0.mjs} +80 -80
  52. package/dist/{position-C8xJ-itb.mjs → position-MRKj9hcz.mjs} +1 -1
  53. package/dist/{profile-CXazX36t.mjs → profile-Bk-lwQKm.mjs} +30 -29
  54. package/dist/{runAs-Wg71lsRu.mjs → runAs-D7rwJWn8.mjs} +1 -1
  55. package/dist/{runAs.vue_vue_type_script_setup_true_lang-Tv0kn1GL.mjs → runAs.vue_vue_type_script_setup_true_lang-Dt6k5rlD.mjs} +21 -20
  56. package/dist/{types-bGS-6yqy.mjs → types-CRwHW1_s.mjs} +33 -33
  57. package/dist/{updatePwd-B353QzsI.mjs → updatePwd-DEDAJW3q.mjs} +1 -1
  58. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CwJDtUpJ.mjs → updatePwd.vue_vue_type_script_setup_true_lang-foekKrMF.mjs} +15 -14
  59. package/dts/src/components/Pagination/index.vue.d.ts +1 -1
  60. package/package.json +8 -8
  61. package/dist/edit-CBSQovw7.mjs +0 -4
  62. package/dist/edit-D0lWUImW.mjs +0 -4
  63. package/dist/el-form-item-l0sNRNKZ.mjs +0 -1
  64. package/dist/index-CBYpOGzw.mjs +0 -30536
  65. package/dist/index-fooXb-UD.mjs +0 -11
  66. package/dts/src/assets/icons/index.d.ts +0 -0
  67. package/dts/src/components/WangEditor/index.vue.d.ts +0 -18
  68. package/dts/src/layout/components/AppMain.vue.d.ts +0 -2
  69. package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +0 -2
  70. package/dts/src/layout/components/Sidebar/Item.vue.d.ts +0 -23
  71. package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +0 -24
  72. package/dts/src/layout/components/Sidebar/Link.vue.d.ts +0 -19
  73. package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +0 -12
  74. package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +0 -42
  75. package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +0 -2
  76. package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +0 -16
  77. package/dts/src/layout/components/index.d.ts +0 -4
  78. package/dts/src/layout/main.vue.d.ts +0 -2
  79. package/dts/src/utils/resize.d.ts +0 -1
@@ -0,0 +1,502 @@
1
+ import { nextTick as L, defineComponent as ye, computed as E, ref as M, reactive as Ee, watch as Y, onMounted as Ce, onBeforeUnmount as he, toRefs as Be, resolveComponent as T, openBlock as c, createBlock as g, Transition as we, withCtx as p, withDirectives as H, createVNode as C, createElementVNode as v, normalizeClass as i, normalizeStyle as x, withModifiers as z, createElementBlock as U, resolveDynamicComponent as N, createCommentVNode as S, toDisplayString as O, withKeys as P, renderSlot as Me, createTextVNode as K, vShow as j, isVNode as le, render as re } from "vue";
2
+ import { A as Te, t as Se, I as ke, s as Ie, H as Ae, E as Oe, ba as Le, bb as Ve, bc as Re, bd as _, be as ee, bf as $e, bg as ze, _ as Ne, bh as Pe, c as De, g as ie, j as ne, V as Fe, bi as He, aK as oe, aE as te, z as Ue } from "./index-Kn7Q3GUp.mjs";
3
+ const Ke = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', je = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, se = (e) => Array.from(e.querySelectorAll(Ke)).filter((n) => qe(n) && je(n)), qe = (e) => {
4
+ if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
5
+ return !0;
6
+ if (e.disabled)
7
+ return !1;
8
+ switch (e.nodeName) {
9
+ case "A":
10
+ return !!e.href && e.rel !== "ignore";
11
+ case "INPUT":
12
+ return !(e.type === "hidden" || e.type === "file");
13
+ case "BUTTON":
14
+ case "SELECT":
15
+ case "TEXTAREA":
16
+ return !0;
17
+ default:
18
+ return !1;
19
+ }
20
+ }, rn = function(e, n, ...t) {
21
+ let s;
22
+ n.includes("mouse") || n.includes("click") ? s = "MouseEvents" : n.includes("key") ? s = "KeyboardEvent" : s = "HTMLEvents";
23
+ const l = document.createEvent(s);
24
+ return l.initEvent(n, ...t), e.dispatchEvent(l), e;
25
+ }, q = "_trap-focus-children", h = [], ae = (e) => {
26
+ var n;
27
+ if (h.length === 0)
28
+ return;
29
+ const t = h[h.length - 1][q];
30
+ if (t.length > 0 && e.code === Te.tab) {
31
+ if (t.length === 1) {
32
+ e.preventDefault(), document.activeElement !== t[0] && t[0].focus();
33
+ return;
34
+ }
35
+ const s = e.shiftKey, l = e.target === t[0], a = e.target === t[t.length - 1];
36
+ if (l && s && (e.preventDefault(), t[t.length - 1].focus()), a && !s && (e.preventDefault(), t[0].focus()), process.env.NODE_ENV === "test") {
37
+ const d = t.indexOf(e.target);
38
+ d !== -1 && ((n = t[s ? d - 1 : d + 1]) == null || n.focus());
39
+ }
40
+ }
41
+ }, Ge = {
42
+ beforeMount(e) {
43
+ e[q] = se(e), h.push(e), h.length <= 1 && document.addEventListener("keydown", ae);
44
+ },
45
+ updated(e) {
46
+ L(() => {
47
+ e[q] = se(e);
48
+ });
49
+ },
50
+ unmounted() {
51
+ h.shift(), h.length === 0 && document.removeEventListener("keydown", ae);
52
+ }
53
+ }, Xe = ye({
54
+ name: "ElMessageBox",
55
+ directives: {
56
+ TrapFocus: Ge
57
+ },
58
+ components: {
59
+ ElButton: Se,
60
+ ElFocusTrap: ke,
61
+ ElInput: Ie,
62
+ ElOverlay: Ae,
63
+ ElIcon: Oe,
64
+ ...Le
65
+ },
66
+ inheritAttrs: !1,
67
+ props: {
68
+ buttonSize: {
69
+ type: String,
70
+ validator: Ve
71
+ },
72
+ modal: {
73
+ type: Boolean,
74
+ default: !0
75
+ },
76
+ lockScroll: {
77
+ type: Boolean,
78
+ default: !0
79
+ },
80
+ showClose: {
81
+ type: Boolean,
82
+ default: !0
83
+ },
84
+ closeOnClickModal: {
85
+ type: Boolean,
86
+ default: !0
87
+ },
88
+ closeOnPressEscape: {
89
+ type: Boolean,
90
+ default: !0
91
+ },
92
+ closeOnHashChange: {
93
+ type: Boolean,
94
+ default: !0
95
+ },
96
+ center: Boolean,
97
+ draggable: Boolean,
98
+ overflow: Boolean,
99
+ roundButton: {
100
+ default: !1,
101
+ type: Boolean
102
+ },
103
+ container: {
104
+ type: String,
105
+ default: "body"
106
+ },
107
+ boxType: {
108
+ type: String,
109
+ default: ""
110
+ }
111
+ },
112
+ emits: ["vanish", "action"],
113
+ setup(e, { emit: n }) {
114
+ const {
115
+ locale: t,
116
+ zIndex: s,
117
+ ns: l,
118
+ size: a
119
+ } = Re("message-box", E(() => e.buttonSize)), { t: d } = t, { nextZIndex: f } = s, y = M(!1), o = Ee({
120
+ autofocus: !0,
121
+ beforeClose: null,
122
+ callback: null,
123
+ cancelButtonText: "",
124
+ cancelButtonClass: "",
125
+ confirmButtonText: "",
126
+ confirmButtonClass: "",
127
+ customClass: "",
128
+ customStyle: {},
129
+ dangerouslyUseHTMLString: !1,
130
+ distinguishCancelAndClose: !1,
131
+ icon: "",
132
+ inputPattern: null,
133
+ inputPlaceholder: "",
134
+ inputType: "text",
135
+ inputValue: null,
136
+ inputValidator: null,
137
+ inputErrorMessage: "",
138
+ message: null,
139
+ modalFade: !0,
140
+ modalClass: "",
141
+ showCancelButton: !1,
142
+ showConfirmButton: !0,
143
+ type: "",
144
+ title: void 0,
145
+ showInput: !1,
146
+ action: "",
147
+ confirmButtonLoading: !1,
148
+ cancelButtonLoading: !1,
149
+ confirmButtonDisabled: !1,
150
+ editorErrorMessage: "",
151
+ validateError: !1,
152
+ zIndex: f()
153
+ }), D = E(() => {
154
+ const r = o.type;
155
+ return { [l.bm("icon", r)]: r && _[r] };
156
+ }), F = ee(), u = ee(), ue = E(() => o.icon || _[o.type] || ""), de = E(() => !!o.message), B = M(), G = M(), I = M(), R = M(), X = M(), ce = E(() => o.confirmButtonClass);
157
+ Y(() => o.inputValue, async (r) => {
158
+ await L(), e.boxType === "prompt" && r !== null && Z();
159
+ }, { immediate: !0 }), Y(() => y.value, (r) => {
160
+ var m, w;
161
+ r && (e.boxType !== "prompt" && (o.autofocus ? I.value = (w = (m = X.value) == null ? void 0 : m.$el) != null ? w : B.value : I.value = B.value), o.zIndex = f()), e.boxType === "prompt" && (r ? L().then(() => {
162
+ var Q;
163
+ R.value && R.value.$el && (o.autofocus ? I.value = (Q = ge()) != null ? Q : B.value : I.value = B.value);
164
+ }) : (o.editorErrorMessage = "", o.validateError = !1));
165
+ });
166
+ const fe = E(() => e.draggable), pe = E(() => e.overflow);
167
+ $e(B, G, fe, pe), Ce(async () => {
168
+ await L(), e.closeOnHashChange && window.addEventListener("hashchange", A);
169
+ }), he(() => {
170
+ e.closeOnHashChange && window.removeEventListener("hashchange", A);
171
+ });
172
+ function A() {
173
+ y.value && (y.value = !1, L(() => {
174
+ o.action && n("action", o.action);
175
+ }));
176
+ }
177
+ const W = () => {
178
+ e.closeOnClickModal && $(o.distinguishCancelAndClose ? "close" : "cancel");
179
+ }, ve = Pe(W), me = (r) => {
180
+ if (o.inputType !== "textarea")
181
+ return r.preventDefault(), $("confirm");
182
+ }, $ = (r) => {
183
+ var m;
184
+ e.boxType === "prompt" && r === "confirm" && !Z() || (o.action = r, o.beforeClose ? (m = o.beforeClose) == null || m.call(o, r, o, A) : A());
185
+ }, Z = () => {
186
+ if (e.boxType === "prompt") {
187
+ const r = o.inputPattern;
188
+ if (r && !r.test(o.inputValue || ""))
189
+ return o.editorErrorMessage = o.inputErrorMessage || d("el.messagebox.error"), o.validateError = !0, !1;
190
+ const m = o.inputValidator;
191
+ if (typeof m == "function") {
192
+ const w = m(o.inputValue);
193
+ if (w === !1)
194
+ return o.editorErrorMessage = o.inputErrorMessage || d("el.messagebox.error"), o.validateError = !0, !1;
195
+ if (typeof w == "string")
196
+ return o.editorErrorMessage = w, o.validateError = !0, !1;
197
+ }
198
+ }
199
+ return o.editorErrorMessage = "", o.validateError = !1, !0;
200
+ }, ge = () => {
201
+ const r = R.value.$refs;
202
+ return r.input || r.textarea;
203
+ }, J = () => {
204
+ $("close");
205
+ }, be = () => {
206
+ e.closeOnPressEscape && J();
207
+ };
208
+ return e.lockScroll && ze(y), {
209
+ ...Be(o),
210
+ ns: l,
211
+ overlayEvent: ve,
212
+ visible: y,
213
+ hasMessage: de,
214
+ typeClass: D,
215
+ contentId: F,
216
+ inputId: u,
217
+ btnSize: a,
218
+ iconComponent: ue,
219
+ confirmButtonClasses: ce,
220
+ rootRef: B,
221
+ focusStartRef: I,
222
+ headerRef: G,
223
+ inputRef: R,
224
+ confirmRef: X,
225
+ doClose: A,
226
+ handleClose: J,
227
+ onCloseRequested: be,
228
+ handleWrapperClick: W,
229
+ handleInputEnter: me,
230
+ handleAction: $,
231
+ t: d
232
+ };
233
+ }
234
+ }), We = ["aria-label", "aria-describedby"], Ze = ["aria-label"], Je = ["id"];
235
+ function Qe(e, n, t, s, l, a) {
236
+ const d = T("el-icon"), f = T("close"), y = T("el-input"), o = T("el-button"), D = T("el-focus-trap"), F = T("el-overlay");
237
+ return c(), g(we, {
238
+ name: "fade-in-linear",
239
+ onAfterLeave: n[11] || (n[11] = (u) => e.$emit("vanish")),
240
+ persisted: ""
241
+ }, {
242
+ default: p(() => [
243
+ H(C(F, {
244
+ "z-index": e.zIndex,
245
+ "overlay-class": [e.ns.is("message-box"), e.modalClass],
246
+ mask: e.modal
247
+ }, {
248
+ default: p(() => [
249
+ v("div", {
250
+ role: "dialog",
251
+ "aria-label": e.title,
252
+ "aria-modal": "true",
253
+ "aria-describedby": e.showInput ? void 0 : e.contentId,
254
+ class: i(`${e.ns.namespace.value}-overlay-message-box`),
255
+ onClick: n[8] || (n[8] = (...u) => e.overlayEvent.onClick && e.overlayEvent.onClick(...u)),
256
+ onMousedown: n[9] || (n[9] = (...u) => e.overlayEvent.onMousedown && e.overlayEvent.onMousedown(...u)),
257
+ onMouseup: n[10] || (n[10] = (...u) => e.overlayEvent.onMouseup && e.overlayEvent.onMouseup(...u))
258
+ }, [
259
+ C(D, {
260
+ loop: "",
261
+ trapped: e.visible,
262
+ "focus-trap-el": e.rootRef,
263
+ "focus-start-el": e.focusStartRef,
264
+ onReleaseRequested: e.onCloseRequested
265
+ }, {
266
+ default: p(() => [
267
+ v("div", {
268
+ ref: "rootRef",
269
+ class: i([
270
+ e.ns.b(),
271
+ e.customClass,
272
+ e.ns.is("draggable", e.draggable),
273
+ { [e.ns.m("center")]: e.center }
274
+ ]),
275
+ style: x(e.customStyle),
276
+ tabindex: "-1",
277
+ onClick: n[7] || (n[7] = z(() => {
278
+ }, ["stop"]))
279
+ }, [
280
+ e.title !== null && e.title !== void 0 ? (c(), U("div", {
281
+ key: 0,
282
+ ref: "headerRef",
283
+ class: i([e.ns.e("header"), { "show-close": e.showClose }])
284
+ }, [
285
+ v("div", {
286
+ class: i(e.ns.e("title"))
287
+ }, [
288
+ e.iconComponent && e.center ? (c(), g(d, {
289
+ key: 0,
290
+ class: i([e.ns.e("status"), e.typeClass])
291
+ }, {
292
+ default: p(() => [
293
+ (c(), g(N(e.iconComponent)))
294
+ ]),
295
+ _: 1
296
+ }, 8, ["class"])) : S("v-if", !0),
297
+ v("span", null, O(e.title), 1)
298
+ ], 2),
299
+ e.showClose ? (c(), U("button", {
300
+ key: 0,
301
+ type: "button",
302
+ class: i(e.ns.e("headerbtn")),
303
+ "aria-label": e.t("el.messagebox.close"),
304
+ onClick: n[0] || (n[0] = (u) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel")),
305
+ onKeydown: n[1] || (n[1] = P(z((u) => e.handleAction(e.distinguishCancelAndClose ? "close" : "cancel"), ["prevent"]), ["enter"]))
306
+ }, [
307
+ C(d, {
308
+ class: i(e.ns.e("close"))
309
+ }, {
310
+ default: p(() => [
311
+ C(f)
312
+ ]),
313
+ _: 1
314
+ }, 8, ["class"])
315
+ ], 42, Ze)) : S("v-if", !0)
316
+ ], 2)) : S("v-if", !0),
317
+ v("div", {
318
+ id: e.contentId,
319
+ class: i(e.ns.e("content"))
320
+ }, [
321
+ v("div", {
322
+ class: i(e.ns.e("container"))
323
+ }, [
324
+ e.iconComponent && !e.center && e.hasMessage ? (c(), g(d, {
325
+ key: 0,
326
+ class: i([e.ns.e("status"), e.typeClass])
327
+ }, {
328
+ default: p(() => [
329
+ (c(), g(N(e.iconComponent)))
330
+ ]),
331
+ _: 1
332
+ }, 8, ["class"])) : S("v-if", !0),
333
+ e.hasMessage ? (c(), U("div", {
334
+ key: 1,
335
+ class: i(e.ns.e("message"))
336
+ }, [
337
+ Me(e.$slots, "default", {}, () => [
338
+ e.dangerouslyUseHTMLString ? (c(), g(N(e.showInput ? "label" : "p"), {
339
+ key: 1,
340
+ for: e.showInput ? e.inputId : void 0,
341
+ innerHTML: e.message
342
+ }, null, 8, ["for", "innerHTML"])) : (c(), g(N(e.showInput ? "label" : "p"), {
343
+ key: 0,
344
+ for: e.showInput ? e.inputId : void 0
345
+ }, {
346
+ default: p(() => [
347
+ K(O(e.dangerouslyUseHTMLString ? "" : e.message), 1)
348
+ ]),
349
+ _: 1
350
+ }, 8, ["for"]))
351
+ ])
352
+ ], 2)) : S("v-if", !0)
353
+ ], 2),
354
+ H(v("div", {
355
+ class: i(e.ns.e("input"))
356
+ }, [
357
+ C(y, {
358
+ id: e.inputId,
359
+ ref: "inputRef",
360
+ modelValue: e.inputValue,
361
+ "onUpdate:modelValue": n[2] || (n[2] = (u) => e.inputValue = u),
362
+ type: e.inputType,
363
+ placeholder: e.inputPlaceholder,
364
+ "aria-invalid": e.validateError,
365
+ class: i({ invalid: e.validateError }),
366
+ onKeydown: P(e.handleInputEnter, ["enter"])
367
+ }, null, 8, ["id", "modelValue", "type", "placeholder", "aria-invalid", "class", "onKeydown"]),
368
+ v("div", {
369
+ class: i(e.ns.e("errormsg")),
370
+ style: x({
371
+ visibility: e.editorErrorMessage ? "visible" : "hidden"
372
+ })
373
+ }, O(e.editorErrorMessage), 7)
374
+ ], 2), [
375
+ [j, e.showInput]
376
+ ])
377
+ ], 10, Je),
378
+ v("div", {
379
+ class: i(e.ns.e("btns"))
380
+ }, [
381
+ e.showCancelButton ? (c(), g(o, {
382
+ key: 0,
383
+ loading: e.cancelButtonLoading,
384
+ class: i([e.cancelButtonClass]),
385
+ round: e.roundButton,
386
+ size: e.btnSize,
387
+ onClick: n[3] || (n[3] = (u) => e.handleAction("cancel")),
388
+ onKeydown: n[4] || (n[4] = P(z((u) => e.handleAction("cancel"), ["prevent"]), ["enter"]))
389
+ }, {
390
+ default: p(() => [
391
+ K(O(e.cancelButtonText || e.t("el.messagebox.cancel")), 1)
392
+ ]),
393
+ _: 1
394
+ }, 8, ["loading", "class", "round", "size"])) : S("v-if", !0),
395
+ H(C(o, {
396
+ ref: "confirmRef",
397
+ type: "primary",
398
+ loading: e.confirmButtonLoading,
399
+ class: i([e.confirmButtonClasses]),
400
+ round: e.roundButton,
401
+ disabled: e.confirmButtonDisabled,
402
+ size: e.btnSize,
403
+ onClick: n[5] || (n[5] = (u) => e.handleAction("confirm")),
404
+ onKeydown: n[6] || (n[6] = P(z((u) => e.handleAction("confirm"), ["prevent"]), ["enter"]))
405
+ }, {
406
+ default: p(() => [
407
+ K(O(e.confirmButtonText || e.t("el.messagebox.confirm")), 1)
408
+ ]),
409
+ _: 1
410
+ }, 8, ["loading", "class", "round", "disabled", "size"]), [
411
+ [j, e.showConfirmButton]
412
+ ])
413
+ ], 2)
414
+ ], 6)
415
+ ]),
416
+ _: 3
417
+ }, 8, ["trapped", "focus-trap-el", "focus-start-el", "onReleaseRequested"])
418
+ ], 42, We)
419
+ ]),
420
+ _: 3
421
+ }, 8, ["z-index", "overlay-class", "mask"]), [
422
+ [j, e.visible]
423
+ ])
424
+ ]),
425
+ _: 3
426
+ });
427
+ }
428
+ var Ye = /* @__PURE__ */ Ne(Xe, [["render", Qe], ["__file", "index.vue"]]);
429
+ const V = /* @__PURE__ */ new Map(), xe = (e) => {
430
+ let n = document.body;
431
+ return e.appendTo && (ie(e.appendTo) && (n = document.querySelector(e.appendTo)), te(e.appendTo) && (n = e.appendTo), te(n) || (Ue("ElMessageBox", "the appendTo option is not an HTMLElement. Falling back to document.body."), n = document.body)), n;
432
+ }, _e = (e, n, t = null) => {
433
+ const s = C(Ye, e, oe(e.message) || le(e.message) ? {
434
+ default: oe(e.message) ? e.message : () => e.message
435
+ } : null);
436
+ return s.appContext = t, re(s, n), xe(e).appendChild(n.firstElementChild), s.component;
437
+ }, en = () => document.createElement("div"), nn = (e, n) => {
438
+ const t = en();
439
+ e.onVanish = () => {
440
+ re(null, t), V.delete(l);
441
+ }, e.onAction = (a) => {
442
+ const d = V.get(l);
443
+ let f;
444
+ e.showInput ? f = { value: l.inputValue, action: a } : f = a, e.callback ? e.callback(f, s.proxy) : a === "cancel" || a === "close" ? e.distinguishCancelAndClose && a !== "cancel" ? d.reject("close") : d.reject("cancel") : d.resolve(f);
445
+ };
446
+ const s = _e(e, t, n), l = s.proxy;
447
+ for (const a in e)
448
+ ne(e, a) && !ne(l.$props, a) && (l[a] = e[a]);
449
+ return l.visible = !0, l;
450
+ };
451
+ function k(e, n = null) {
452
+ if (!De)
453
+ return Promise.reject();
454
+ let t;
455
+ return ie(e) || le(e) ? e = {
456
+ message: e
457
+ } : t = e.callback, new Promise((s, l) => {
458
+ const a = nn(e, n ?? k._context);
459
+ V.set(a, {
460
+ options: e,
461
+ callback: t,
462
+ resolve: s,
463
+ reject: l
464
+ });
465
+ });
466
+ }
467
+ const on = ["alert", "confirm", "prompt"], tn = {
468
+ alert: { closeOnPressEscape: !1, closeOnClickModal: !1 },
469
+ confirm: { showCancelButton: !0 },
470
+ prompt: { showCancelButton: !0, showInput: !0 }
471
+ };
472
+ on.forEach((e) => {
473
+ k[e] = sn(e);
474
+ });
475
+ function sn(e) {
476
+ return (n, t, s, l) => {
477
+ let a = "";
478
+ return Fe(t) ? (s = t, a = "") : He(t) ? a = "" : a = t, k(Object.assign({
479
+ title: a,
480
+ message: n,
481
+ type: "",
482
+ ...tn[e]
483
+ }, s, {
484
+ boxType: e
485
+ }), l);
486
+ };
487
+ }
488
+ k.close = () => {
489
+ V.forEach((e, n) => {
490
+ n.doClose();
491
+ }), V.clear();
492
+ };
493
+ k._context = null;
494
+ const b = k;
495
+ b.install = (e) => {
496
+ b._context = e._context, e.config.globalProperties.$msgbox = b, e.config.globalProperties.$messageBox = b, e.config.globalProperties.$alert = b.alert, e.config.globalProperties.$confirm = b.confirm, e.config.globalProperties.$prompt = b.prompt;
497
+ };
498
+ const un = b;
499
+ export {
500
+ un as E,
501
+ rn as t
502
+ };