Comparing version 3.0.2 to 3.0.3
(function(){"use strict";try{if(typeof document<"u"){var o=document.createElement("style");o.appendChild(document.createTextNode('@charset "UTF-8";.v-dialog,.v-dialog-lite{position:fixed;z-index:1050;outline:0}.v-dialog-lite{left:0;right:0}.v-dialog{position:fixed}.v-dialog.v-dialog--content-center{display:flex;justify-content:center;align-items:center}.v-dialog.v-dialog--screen-center{left:50%;top:50%;transform:translate(-50%,-50%)}.v-dialog.v-dialog--horizontal-center{left:50%;transform:translate(-50%)}.v-dialog.v-dialog--embedded{position:absolute}.v-dialog .v-dialog-content{outline:0;position:relative;background-color:#fff;box-shadow:0 3rem 5rem #00000080;border-radius:1rem;border:0;overflow:hidden;display:flex;flex-direction:column;transition:all .2s ease-out}.v-dialog .v-dialog-header{display:flex;align-items:center;flex-shrink:0;height:42px}.v-dialog .v-dialog-header h3{margin:0;font-size:18px;padding:0 15px;font-weight:500;flex-grow:1;color:#666;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v-dialog .v-dialog-body{position:relative;width:100%;padding:0;overflow:auto;box-sizing:border-box;flex-grow:1}.v-dialog-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#00000080}.v-dialog-overlay.v-dialog-overlay--blur{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.v-dialog-overlay.v-dialog-overlay--embedded{position:absolute}.v-dialog-icon{display:inline-flex;width:1em;height:1em}@keyframes soft-candy-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}to{transform:scale(1)}}.v-dialog--candy-enter-active{animation:soft-candy-show .3s ease-out}.v-dialog--candy-leave-active{transform:scale(.5);transition:transform .2s linear,opacity .2s linear;opacity:0}.v-dialog--smooth-enter-active,.v-dialog--smooth-leave-active{transition:transform .25s ease-in-out,opacity .15s ease-in-out!important}.v-dialog--smooth-enter-from,.v-dialog--smooth-leave-to{transform:scale(.5);opacity:0}.v-dialog--fade-enter-active,.v-dialog--fade-leave-active{will-change:opacity;transition:opacity .3s cubic-bezier(.4,0,.2,1)}.v-dialog--fade-enter-from,.v-dialog--fade-leave-to{opacity:0}.v-dialog--fade-lite-enter-active,.v-dialog--fade-lite-leave-active{transition:opacity .3s ease-in-out}.v-dialog--fade-lite-enter-from,.v-dialog--fade-lite-leave-to{opacity:0}@keyframes animated-buzz-out{10%{transform:translate(3px) rotate(2deg)}20%{transform:translate(-3px) rotate(-2deg)}30%{transform:translate(3px) rotate(2deg)}40%{transform:translate(-3px) rotate(-2deg)}50%{transform:translate(2px) rotate(1deg)}60%{transform:translate(-2px) rotate(-1deg)}70%{transform:translate(2px) rotate(1deg)}80%{transform:translate(-2px) rotate(-1deg)}90%{transform:translate(1px) rotate(0)}to{transform:translate(-1px) rotate(0)}}.v-dialog--buzz-out{animation-name:animated-buzz-out;animation-duration:.75s;animation-timing-function:linear;animation-iteration-count:1}.v-dialog-modal{left:0;right:0;top:0;bottom:0}.v-dialog-modal.v-dialog-modal--maximize{padding-right:0!important}.v-dialog-modal.v-dialog-modal--maximize .v-dialog-content{width:100vw!important;height:100vh!important;border-radius:0}.v-dialog-modal.v-dialog-modal--maximize .v-dialog-header{background-color:#eee}.v-dialog-modal .v-dialog-content{border-radius:.5rem;transition:width .2s ease-in-out,height .2s ease-in-out;min-width:400px;min-height:200px}.v-dialog-modal .v-dialog-content .v-dialog-header button{width:60px;height:100%;transition:all .3s ease-out;text-shadow:none;outline:none!important;margin:0;opacity:.3;font-size:18px!important;border:0;background-color:transparent;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0}.v-dialog-modal .v-dialog-content .v-dialog-header button:hover{opacity:1}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__close{font-weight:400}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__close:hover{background-color:#e81123;color:#fff}.v-dialog-modal .v-dialog-content .v-dialog-header button.v-dialog-btn__maximize:hover{background-color:#e0e0e0}.v-dialog-modal .v-dialog-content .v-dialog-body{padding:0!important}.v-dialog-mask{left:0;right:0;top:0;bottom:0}.v-dialog-mask .v-dialog-content.mask--pill{border-radius:50rem}.v-dialog-mask .v-dialog-content.mask--no-icon .v-dialog-mask__content{margin-left:2rem!important}.v-dialog-mask .v-dialog-content.mask--no-panel{box-shadow:none!important;background-color:transparent}.v-dialog-mask .v-dialog-body{overflow:hidden!important;display:flex;align-items:center;min-width:300px;max-width:400px;color:#333}.v-dialog-mask .v-dialog-body .v-dialog-mask__content,.v-dialog-mask .v-dialog-body .v-dialog-mask__icon{display:flex;align-items:center}.v-dialog-mask .v-dialog-body .v-dialog-mask__content{margin:0 1.5rem 0 1rem;font-size:1rem;line-height:1.3;overflow-y:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;text-overflow:ellipsis}.v-dialog-mask .v-dialog-body .v-dialog-mask__icon{padding-left:17px;flex-shrink:0}.v-dialog-mask .v-dialog-body .v-dialog-icon-loading{font-size:2rem}.v-dialog-mask-parent--relative{position:relative!important}.v-dialog-drawer.v-dialog-drawer--top{top:0;left:0}.v-dialog-drawer.v-dialog-drawer--bottom{bottom:0;left:0}.v-dialog-drawer.v-dialog-drawer--left{top:0;left:0}.v-dialog-drawer.v-dialog-drawer--right{top:0;right:0}.v-dialog-drawer .v-dialog-content{border-radius:0;min-width:400px;min-height:200px}.v-dialog-drawer .v-dialog-content .v-dialog-header button{width:60px;height:100%;transition:all .3s ease-out;text-shadow:none;outline:none!important;margin:0;opacity:.3;font-size:18px!important;border:0;background-color:transparent;display:inline-flex;justify-content:center;align-items:center}.v-dialog-drawer .v-dialog-content .v-dialog-header button:hover{opacity:1}.v-dialog-drawer .v-dialog-content .v-dialog-header button.v-dialog-btn__close{font-weight:400}.v-dialog-drawer .v-dialog-content .v-dialog-header button.v-dialog-btn__close:hover{background-color:#e81123;color:#fff}.v-dialog-drawer .v-dialog-content .v-dialog-body{padding:0!important}.v-dialog-drawer-slide-in-top-enter-active,.v-dialog-drawer-slide-in-top-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-top-enter-from,.v-dialog-drawer-slide-in-top-leave-to{transform:translateY(-100%);opacity:0}.v-dialog-drawer-slide-in-bottom-enter-active,.v-dialog-drawer-slide-in-bottom-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-bottom-enter-from,.v-dialog-drawer-slide-in-bottom-leave-to{transform:translateY(100%);opacity:0}.v-dialog-drawer-slide-in-left-enter-active,.v-dialog-drawer-slide-in-left-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-left-enter-from,.v-dialog-drawer-slide-in-left-leave-to{transform:translate(-100%);opacity:0}.v-dialog-drawer-slide-in-right-enter-active,.v-dialog-drawer-slide-in-right-leave-active{transition:transform .25s ease-in-out,opacity .25s linear}.v-dialog-drawer-slide-in-right-enter-from,.v-dialog-drawer-slide-in-right-leave-to{transform:translate(100%);opacity:0}.v-dialog-alert{left:0;right:0;top:0;bottom:0}.v-dialog-alert.no-icon .v-dialog-alert__content{padding-left:15px}.v-dialog-alert.no-header .v-dialog-alert__content{padding-top:2rem}.v-dialog-alert .v-dialog-content{overflow:hidden;display:flex;flex-direction:column;background-color:#fff}.v-dialog-alert .v-dialog-footer{flex-shrink:0;overflow:hidden}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons{display:flex;justify-content:flex-end;padding:0 1rem 1rem 0}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons button{outline:none!important;padding:8px 15px;min-width:90px;border-radius:.7rem;font-size:14px;transition:all .2s ease-in-out;-webkit-user-select:none;-moz-user-select:none;user-select:none}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons button:active{box-shadow:0 10px 20px #0003,0 6px 6px #0000003b}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons .v-dialog-btn__ok{border:1px solid #516270;background-color:#516270;color:#fff}.v-dialog-alert .v-dialog-footer .v-dialog-alert__buttons .v-dialog-btn__cancel{border:1px solid #F0F0F0;background-color:#f0f0f0;margin-left:1rem}.v-dialog-alert .v-dialog-alert__content{overflow-y:auto;min-height:100px;flex-grow:1;display:flex;padding:1rem}.v-dialog-alert .v-dialog-alert__content .v-dialog-alert__icon{display:flex;padding:0 2rem 0 1rem;font-size:3rem;color:#333;filter:drop-shadow(4px 5px 5px rgba(0,0,0,.6))}.v-dialog-alert .v-dialog-alert__content .v-dialog-alert__message{flex-grow:1;font-size:14px;line-height:1.5;padding-top:5px}.v-dialog-alert .alert-warning .v-dialog-alert__icon{color:#ff9800;filter:drop-shadow(4px 5px 5px rgba(255,152,0,.8))}.v-dialog-alert .alert-error .v-dialog-alert__icon{color:#f44336;filter:drop-shadow(4px 5px 5px rgba(244,67,54,.8))}.v-dialog-alert .alert-success .v-dialog-alert__icon{color:#198754;filter:drop-shadow(4px 5px 5px rgba(25,135,84,.8))}.v-dialog-alert .alert-confirm .v-dialog-alert__icon{color:#3f51b5;filter:drop-shadow(4px 5px 5px rgba(63,81,181,.9))}.v-dialog__shadow--error{box-shadow:0 1rem 5rem #ff000080!important}.v-dialog__shadow--warning{box-shadow:0 1rem 5rem #ffa50080!important}.v-dialog__shadow--success{box-shadow:0 1rem 5rem #00ff0080!important}.v-dialog-message{background-color:transparent;overflow:unset;transition:all .3s;display:flex;justify-content:center;left:50%;right:unset;transform:translate(-50%)}.v-dialog-message .v-dialog-body{border-radius:1rem;box-shadow:0 2.5rem 8rem #000000e6;overflow:hidden;display:flex;align-items:center;background-color:#0006;-webkit-backdrop-filter:saturate(180%) blur(12px);backdrop-filter:saturate(180%) blur(12px);min-height:52px;max-width:500px}.v-dialog-message .v-dialog-body.v-dialog-message--pill{border-radius:2rem}.v-dialog-message .v-dialog-body.v-dialog-message--no-icon .v-dialog-message__body{padding:.5rem 2rem}.v-dialog-message .v-dialog-body.message-warning .v-dialog-message__prepend{color:#ff9800;filter:drop-shadow(4px 5px 5px rgba(255,152,0,.95))}.v-dialog-message .v-dialog-body.message-error .v-dialog-message__prepend{color:#f44336;filter:drop-shadow(4px 5px 5px rgba(244,67,54,.95))}.v-dialog-message .v-dialog-body.message-success .v-dialog-message__prepend{color:#198754;filter:drop-shadow(4px 5px 5px rgba(25,135,84,.95))}.v-dialog-message__prepend,.v-dialog-message__append{width:40px;flex-shrink:0;display:flex;align-items:center;font-size:1.3rem}.v-dialog-message__prepend{justify-content:flex-end;filter:drop-shadow(4px 5px 5px rgba(0,0,0,.95))}.v-dialog-message__append{justify-content:flex-start}.v-dialog-message__body{display:flex;align-items:center;font-size:14px;line-height:1.3;flex-grow:1;padding:.5rem 1rem;overflow:hidden;height:100%}.v-dialog-message__close{cursor:pointer}.v-dialog-toast{background-color:transparent;box-sizing:border-box;transition:all .3s}.v-dialog-toast .v-dialog-body{position:relative;display:flex;padding:1rem;box-shadow:0 5px 40px #0006;border-radius:.7rem;border-width:2px;border-style:solid;border-color:#ccc;color:#333;background-color:#fff;width:300px}.v-dialog-toast .v-dialog-body.toast-warning{border-color:#333;background-color:#f5cf87}.v-dialog-toast .v-dialog-body.toast-error{background-color:#ff5252;border-color:#bf2a2a;color:#fff}.v-dialog-toast .v-dialog-body.toast-error .v-dialog-toast__append{color:#ccc}.v-dialog-toast .v-dialog-body.toast-error .v-dialog-toast__append:hover{color:#fff}.v-dialog-toast .v-dialog-body.toast-success{background-color:#2cbe4e;border-color:#0a8427;color:#1b5e20}.v-dialog-toast .v-dialog-body.toast-success .v-dialog-toast__append{color:#666}.v-dialog-toast .v-dialog-body.toast-success .v-dialog-toast__append:hover{color:#000}.v-dialog-toast--left{left:16px;right:unset}.v-dialog-toast--right{left:unset;right:16px}.v-dialog-toast__prepend,.v-dialog-toast__append{display:flex;justify-content:center;flex-shrink:0}.v-dialog-toast__prepend{font-size:1.3rem}.v-dialog-toast__body{flex-grow:1;padding:0 10px;font-size:14px;overflow:hidden;min-height:60px}.v-dialog-toast__body h3{margin:0 0 3px;font-size:16px;font-weight:600}.v-dialog-toast__body div{font-size:14px;line-height:1.4;margin:0}.v-dialog-toast__append{color:#999;font-size:1rem;outline:none;transition:all .3s}.v-dialog-toast__append:hover{color:#000}.v-dialog-toast__close{cursor:pointer}')),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})(); | ||
import { ref as p, createVNode as o, mergeProps as de, getCurrentInstance as Je, render as ke, isVNode as X, inject as C, h as Ae, onMounted as D, onUnmounted as Qe, computed as j, onBeforeMount as et, defineComponent as A, Teleport as ie, Transition as ce, openBlock as S, createElementBlock as x, createElementVNode as v, provide as H, watch as Se, markRaw as xe, nextTick as Me } from "vue"; | ||
import { ref as p, createVNode as o, mergeProps as de, getCurrentInstance as Je, render as we, isVNode as X, inject as C, h as Ae, onMounted as D, onUnmounted as Qe, computed as j, onBeforeMount as et, defineComponent as A, Teleport as ie, Transition as ce, openBlock as S, createElementBlock as x, createElementVNode as v, provide as H, watch as Se, markRaw as xe, nextTick as Me } from "vue"; | ||
const h = Symbol("props"), tt = "$dlg", nt = "v-dialogs-", ot = 5100, at = 50, lt = "100vw", st = "100vh", it = 450, ct = 210, Be = 32, rt = 15, ut = 16, Ie = 700, Oe = 400, R = "info", M = "warning", B = "error", I = "success", Y = "confirm", dt = 400, ft = 300, G = "top", fe = "bottom", gt = "left", J = "right", Le = "top-left", ne = "top-right", $e = "bottom-left", mt = "bottom-right", Pe = "close", re = "render-dialog", ue = "v-dialog-message-adjust-position", Te = [G, fe, gt, J], ht = [ | ||
@@ -12,7 +12,7 @@ M, | ||
], [ | ||
po, | ||
vo, | ||
_o, | ||
me, | ||
_o, | ||
yo, | ||
bo, | ||
he | ||
@@ -25,3 +25,3 @@ ] = ["modal", "alert", "toast", "drawer", "mask", "message"], Q = p(0), K = p([]), pt = new Event(ue); | ||
var f; | ||
const { index: a, key: l } = Ne(n); | ||
const { index: a, key: l } = We(n); | ||
let i = o(e, de(t, { | ||
@@ -37,5 +37,5 @@ dialogKey: l, | ||
let r = document.createElement("div"); | ||
ke(i, r); | ||
we(i, r); | ||
const u = () => { | ||
ke(null, r), r = null, i = null, _t(l); | ||
we(null, r), r = null, i = null, _t(l); | ||
}; | ||
@@ -46,3 +46,3 @@ return () => { | ||
} | ||
function Ne(e) { | ||
function We(e) { | ||
const t = vt(); | ||
@@ -62,3 +62,3 @@ return K.value.push({ | ||
} | ||
const [yt, ee, bt, Ct] = ["cn", "en", "pt", "jp"], se = { | ||
const [yt, ee, bt, Ct, Dt] = ["cn", "en", "pt", "jp", "tr"], se = { | ||
[yt]: { | ||
@@ -103,4 +103,14 @@ titleInfo: "提示", | ||
maskText: "データロード……" | ||
}, | ||
[Dt]: { | ||
titleInfo: "Bilgi", | ||
titleWarning: "Uyarı", | ||
titleError: "Hata", | ||
titleSuccess: "Başarılı", | ||
titleConfirm: "Onay", | ||
btnOk: "Evet", | ||
btnCancel: "İptal", | ||
maskText: "Yükleniyor" | ||
} | ||
}, Dt = { | ||
}, kt = { | ||
/** Dialog key */ | ||
@@ -126,16 +136,16 @@ dialogKey: { type: String, default: "" }, | ||
callback: { type: Function, default: void 0 } | ||
}, wt = [Pe, re], kt = { | ||
}, wt = [Pe, re], Tt = { | ||
backdrop: !0 | ||
}, Tt = { | ||
}, Et = { | ||
backdrop: !0, | ||
backdropClose: !1 | ||
}, Et = { | ||
}, At = { | ||
backdrop: !0, | ||
backdropClose: !1, | ||
shake: !1 | ||
}, At = { | ||
}, St = { | ||
shake: !1 | ||
}; | ||
function F(e) { | ||
return { ...Dt, ...e }; | ||
return { ...kt, ...e }; | ||
} | ||
@@ -145,3 +155,3 @@ function V(e = []) { | ||
} | ||
function We(e, t) { | ||
function Ne(e, t) { | ||
switch (e) { | ||
@@ -171,9 +181,9 @@ case M: | ||
} | ||
function St(e) { | ||
function xt(e) { | ||
return typeof e != "object" ? !1 : !!(Object.hasOwn(e, "tagName") || Object.hasOwn(e, "tagName") && e.outerHTML); | ||
} | ||
function xt(e) { | ||
function Mt(e) { | ||
return ((window.innerHeight || document.documentElement.clientHeight) - e) / 2; | ||
} | ||
function Mt(e) { | ||
function Bt(e) { | ||
const t = ot + at * e, n = t - 10; | ||
@@ -186,11 +196,11 @@ return { dialogZIndex: t, backdropZIndex: n }; | ||
} | ||
function Bt() { | ||
function It() { | ||
return document.body.scrollHeight > window.innerHeight; | ||
} | ||
function It() { | ||
if (!Bt() || document.body.style.overflowY === "hidden") return; | ||
function Ot() { | ||
if (!It() || document.body.style.overflowY === "hidden") return; | ||
const e = document.documentElement.clientWidth, t = window.innerWidth - e; | ||
document.body.style.paddingRight = `${t}px`, document.body.style.overflowY = "hidden"; | ||
} | ||
function Ot() { | ||
function Lt() { | ||
document.body.style.removeProperty("overflow-y"), document.body.style.removeProperty("padding-right"); | ||
@@ -214,3 +224,3 @@ } | ||
} | ||
function Lt(e) { | ||
function $t(e) { | ||
const { | ||
@@ -231,6 +241,6 @@ component: t, | ||
} | ||
function $t(e, t) { | ||
function Pt(e, t) { | ||
e.duration && setTimeout(t, e.duration); | ||
} | ||
function Pt(e, t = 200) { | ||
function Wt(e, t = 200) { | ||
let n; | ||
@@ -286,3 +296,3 @@ function a() { | ||
function He(e, { attrs: t, slots: n }) { | ||
const a = p(!1), { index: l, key: s } = Ne(), i = { | ||
const a = p(!1), { index: l, key: s } = We(), i = { | ||
dialogKey: s, | ||
@@ -316,8 +326,8 @@ dialogIndex: l, | ||
function Z(e, t) { | ||
const n = p(!1), a = p(!1), l = p(0), s = p(0), i = p(), c = p(), r = p(!1), u = p(!0), f = p(!0), d = p(), { dialogZIndex: m, backdropZIndex: _ } = Mt(e.dialogIndex), y = j(() => { | ||
const n = p(!1), a = p(!1), l = p(0), s = p(0), i = p(), c = p(), r = p(!1), u = p(!0), f = p(!0), d = p(), { dialogZIndex: m, backdropZIndex: _ } = Bt(e.dialogIndex), y = j(() => { | ||
const g = {}; | ||
return typeof l.value < "u" && (g.width = q(l.value)), typeof s.value < "u" && (g.height = q(s.value)), typeof i.value < "u" && (g.top = q(i.value)), typeof c.value < "u" && (g.bottom = q(c.value)), g; | ||
}); | ||
function k(g) { | ||
return typeof g < "u" ? g : xt(s.value); | ||
function w(g) { | ||
return typeof g < "u" ? g : Mt(s.value); | ||
} | ||
@@ -328,12 +338,12 @@ function b(g, L) { | ||
function T(g, L) { | ||
i.value = k(g), typeof L < "u" && (c.value = L); | ||
i.value = w(g), typeof L < "u" && (c.value = L); | ||
} | ||
function $() { | ||
n.value = !0, t(re, !0), u.value && It(); | ||
n.value = !0, t(re, !0), u.value && Ot(); | ||
} | ||
function E(g, L, w) { | ||
function E(g, L, k) { | ||
var De; | ||
r.value && (n.value = !1, (De = w == null ? void 0 : w.closing) == null || De.call(w), d.value = () => { | ||
var we; | ||
t(Pe, g, L), (we = w == null ? void 0 : w.afterClose) == null || we.call(w), t(re, !1), u.value && Ot(); | ||
r.value && (n.value = !1, (De = k == null ? void 0 : k.closing) == null || De.call(k), d.value = () => { | ||
var ke; | ||
t(Pe, g, L), (ke = k == null ? void 0 : k.afterClose) == null || ke.call(k), t(re, !1), u.value && Lt(); | ||
}); | ||
@@ -344,7 +354,7 @@ } | ||
} | ||
function N(g) { | ||
function W(g) { | ||
E(void 0, void 0, g); | ||
} | ||
function W(g) { | ||
f.value && Pt(g), et(() => { | ||
function N(g) { | ||
f.value && Wt(g), et(() => { | ||
g(); | ||
@@ -355,3 +365,3 @@ }); | ||
D(() => { | ||
$t(e, g); | ||
Pt(e, g); | ||
}); | ||
@@ -378,7 +388,7 @@ } | ||
closeWithCallback: P, | ||
closeWithoutCallback: N, | ||
closeWithoutCallback: W, | ||
setPosition: T, | ||
setDialogSize: b, | ||
setupAutomaticClose: Ue, | ||
setupPositionAdjustBehavior: W, | ||
setupPositionAdjustBehavior: N, | ||
onTransitionAfterEnter: qe, | ||
@@ -456,3 +466,3 @@ onTransitionAfterLeave: Xe | ||
} | ||
function k() { | ||
function w() { | ||
const b = [e.containerClass, { | ||
@@ -480,3 +490,3 @@ "v-dialog--embedded": e.appendTo !== "body" | ||
} | ||
return () => [y(), k()]; | ||
return () => [y(), w()]; | ||
} | ||
@@ -513,3 +523,3 @@ }), ae = { | ||
return n; | ||
}, Wt = {}, zt = { | ||
}, zt = {}, jt = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -521,9 +531,9 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, jt = /* @__PURE__ */ v("path", { d: "M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z" }, null, -1), Ht = [ | ||
jt | ||
}, Ht = /* @__PURE__ */ v("path", { d: "M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854Z" }, null, -1), Rt = [ | ||
Ht | ||
]; | ||
function Rt(e, t) { | ||
return S(), x("svg", zt, Ht); | ||
function Gt(e, t) { | ||
return S(), x("svg", jt, Rt); | ||
} | ||
const le = /* @__PURE__ */ O(Wt, [["render", Rt]]), Gt = {}, Ft = { | ||
const le = /* @__PURE__ */ O(zt, [["render", Gt]]), Ft = {}, Vt = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -535,9 +545,9 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, Vt = /* @__PURE__ */ v("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }, null, -1), Zt = [ | ||
Vt | ||
}, Zt = /* @__PURE__ */ v("path", { d: "M14 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z" }, null, -1), Kt = [ | ||
Zt | ||
]; | ||
function Kt(e, t) { | ||
return S(), x("svg", Ft, Zt); | ||
function Yt(e, t) { | ||
return S(), x("svg", Vt, Kt); | ||
} | ||
const Yt = /* @__PURE__ */ O(Gt, [["render", Kt]]), Ut = {}, qt = { | ||
const Ut = /* @__PURE__ */ O(Ft, [["render", Yt]]), qt = {}, Xt = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -549,12 +559,12 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, Xt = /* @__PURE__ */ v("path", { | ||
}, Jt = /* @__PURE__ */ v("path", { | ||
"fill-rule": "evenodd", | ||
d: "M.172 15.828a.5.5 0 0 0 .707 0l4.096-4.096V14.5a.5.5 0 1 0 1 0v-3.975a.5.5 0 0 0-.5-.5H1.5a.5.5 0 0 0 0 1h2.768L.172 15.121a.5.5 0 0 0 0 .707zM15.828.172a.5.5 0 0 0-.707 0l-4.096 4.096V1.5a.5.5 0 1 0-1 0v3.975a.5.5 0 0 0 .5.5H14.5a.5.5 0 0 0 0-1h-2.768L15.828.879a.5.5 0 0 0 0-.707z" | ||
}, null, -1), Jt = [ | ||
Xt | ||
}, null, -1), Qt = [ | ||
Jt | ||
]; | ||
function Qt(e, t) { | ||
return S(), x("svg", qt, Jt); | ||
function en(e, t) { | ||
return S(), x("svg", Xt, Qt); | ||
} | ||
const en = /* @__PURE__ */ O(Ut, [["render", Qt]]), tn = { | ||
const tn = /* @__PURE__ */ O(qt, [["render", en]]), nn = { | ||
setup() { | ||
@@ -575,3 +585,3 @@ const { | ||
onClick: l | ||
}, [t.value ? o(en, null, null) : o(Yt, null, null)]), a && o("button", { | ||
}, [t.value ? o(tn, null, null) : o(Ut, null, null)]), a && o("button", { | ||
type: "button", | ||
@@ -589,3 +599,3 @@ class: "v-dialog-btn__close", | ||
getComponentContent: n | ||
} = Lt(t); | ||
} = $t(t); | ||
return () => o("div", { | ||
@@ -596,3 +606,3 @@ class: "v-dialog-body" | ||
}; | ||
function nn(e) { | ||
function on(e) { | ||
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e); | ||
@@ -655,7 +665,7 @@ } | ||
...i | ||
} = on(e, t); | ||
} = an(e, t); | ||
H(h, { | ||
...e, | ||
...i, | ||
...Tt, | ||
...Et, | ||
closeDialogWithoutCallback: s, | ||
@@ -676,3 +686,3 @@ maximize: l | ||
default: () => [o(ae, null, { | ||
default: () => [e.header && o(tn, null, null), n.default ? o(te, null, nn(r = n.default()) ? r : { | ||
default: () => [e.header && o(nn, null, null), n.default ? o(te, null, on(r = n.default()) ? r : { | ||
default: () => [r] | ||
@@ -685,3 +695,3 @@ }) : o(te, null, null)] | ||
}); | ||
function on(e, t) { | ||
function an(e, t) { | ||
const { | ||
@@ -718,3 +728,3 @@ setDialogSize: n, | ||
} | ||
function an(e, t = {}) { | ||
function ln(e, t = {}) { | ||
const n = { | ||
@@ -726,3 +736,3 @@ ...t, | ||
} | ||
const ln = {}, sn = { | ||
const sn = {}, cn = { | ||
width: "24", | ||
@@ -733,6 +743,6 @@ height: "24", | ||
class: "v-dialog-icon v-dialog-icon-loading" | ||
}, cn = /* @__PURE__ */ v("path", { | ||
}, rn = /* @__PURE__ */ v("path", { | ||
d: "M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z", | ||
opacity: ".25" | ||
}, null, -1), rn = /* @__PURE__ */ v("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" }, [ | ||
}, null, -1), un = /* @__PURE__ */ v("path", { d: "M12,4a8,8,0,0,1,7.89,6.7A1.53,1.53,0,0,0,21.38,12h0a1.5,1.5,0,0,0,1.48-1.75,11,11,0,0,0-21.72,0A1.5,1.5,0,0,0,2.62,12h0a1.53,1.53,0,0,0,1.49-1.3A8,8,0,0,1,12,4Z" }, [ | ||
/* @__PURE__ */ v("animateTransform", { | ||
@@ -745,10 +755,10 @@ attributeName: "transform", | ||
}) | ||
], -1), un = [ | ||
cn, | ||
rn | ||
], -1), dn = [ | ||
rn, | ||
un | ||
]; | ||
function dn(e, t) { | ||
return S(), x("svg", sn, un); | ||
function fn(e, t) { | ||
return S(), x("svg", cn, dn); | ||
} | ||
const fn = /* @__PURE__ */ O(ln, [["render", dn]]), gn = { | ||
const gn = /* @__PURE__ */ O(sn, [["render", fn]]), mn = { | ||
name: "DialogMaskBody", | ||
@@ -765,7 +775,7 @@ setup(e, { | ||
class: "v-dialog-mask__icon" | ||
}, [o(fn, null, null)]), o("div", { | ||
}, [o(gn, null, null)]), o("div", { | ||
class: "v-dialog-mask__content" | ||
}, [t.default && t.default()])]); | ||
} | ||
}, mn = /* @__PURE__ */ A({ | ||
}, hn = /* @__PURE__ */ A({ | ||
name: "DialogMask", | ||
@@ -799,7 +809,7 @@ props: F({ | ||
...s | ||
} = hn(e, t); | ||
} = pn(e, t); | ||
H(h, { | ||
...e, | ||
...s, | ||
...Et | ||
...At | ||
}); | ||
@@ -824,3 +834,3 @@ const i = ["v-dialog-mask", "v-dialog--content-center"], c = [{ | ||
}, { | ||
default: () => [o(gn, null, { | ||
default: () => [o(mn, null, { | ||
default: () => a.value | ||
@@ -832,3 +842,3 @@ })] | ||
}); | ||
function hn(e, t) { | ||
function pn(e, t) { | ||
const { | ||
@@ -844,3 +854,3 @@ shouldControlOverflow: n, | ||
removeParentRelative: u | ||
} = pn(e.appendTo), f = pe(e.language), d = j(() => e.message || f.maskText); | ||
} = vn(e.appendTo), f = pe(e.language), d = j(() => e.message || f.maskText); | ||
e.appendTo !== "body" && (a.value = !1, n.value = !1); | ||
@@ -860,3 +870,3 @@ function m() { | ||
} | ||
function pn(e) { | ||
function vn(e) { | ||
const t = n(); | ||
@@ -866,3 +876,3 @@ function n() { | ||
return document.querySelector(e); | ||
if (St(e)) | ||
if (xt(e)) | ||
return e; | ||
@@ -881,6 +891,6 @@ } | ||
} | ||
function vn() { | ||
return z(mn, U(...arguments)); | ||
function _n() { | ||
return z(hn, U(...arguments)); | ||
} | ||
const _n = { | ||
const yn = { | ||
setup() { | ||
@@ -901,3 +911,3 @@ const { | ||
}; | ||
function yn(e) { | ||
function bn(e) { | ||
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !X(e); | ||
@@ -956,7 +966,7 @@ } | ||
...c | ||
} = bn(e, t); | ||
} = Cn(e, t); | ||
H(h, { | ||
...e, | ||
...c, | ||
...At, | ||
...St, | ||
closeDialogWithoutCallback: i | ||
@@ -974,3 +984,3 @@ }); | ||
default: () => [o(ae, null, { | ||
default: () => [e.header && o(_n, null, null), n.default ? o(te, null, yn(u = n.default()) ? u : { | ||
default: () => [e.header && o(yn, null, null), n.default ? o(te, null, bn(u = n.default()) ? u : { | ||
default: () => [u] | ||
@@ -983,3 +993,3 @@ }) : o(te, null, null)] | ||
}); | ||
function bn(e, t) { | ||
function Cn(e, t) { | ||
const { | ||
@@ -991,3 +1001,3 @@ setDialogSize: n, | ||
...i | ||
} = Z(e, t), { placement: c } = e, { width: r, height: u } = Cn(e), { | ||
} = Z(e, t), { placement: c } = e, { width: r, height: u } = Dn(e), { | ||
closeDialogWithCallback: f, | ||
@@ -1016,7 +1026,7 @@ closeDialogWithoutCallback: d | ||
} | ||
function Cn(e) { | ||
function Dn(e) { | ||
const { width: t, height: n, placement: a } = e, l = t || dt, s = n || ft; | ||
return a === G || a === fe ? { width: lt, height: s } : { width: l, height: st }; | ||
} | ||
function Dn(e, t = {}) { | ||
function kn(e, t = {}) { | ||
const n = { | ||
@@ -1035,3 +1045,3 @@ ...t, | ||
messageType: n | ||
} = C(h), a = e || We(n, t); | ||
} = C(h), a = e || Ne(n, t); | ||
return () => o("div", { | ||
@@ -1041,3 +1051,3 @@ class: "v-dialog-header" | ||
} | ||
}, kn = {}, Tn = { | ||
}, Tn = {}, En = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -1049,10 +1059,10 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, En = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), An = /* @__PURE__ */ v("path", { d: "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" }, null, -1), Sn = [ | ||
En, | ||
An | ||
}, An = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), Sn = /* @__PURE__ */ v("path", { d: "m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z" }, null, -1), xn = [ | ||
An, | ||
Sn | ||
]; | ||
function xn(e, t) { | ||
return S(), x("svg", Tn, Sn); | ||
function Mn(e, t) { | ||
return S(), x("svg", En, xn); | ||
} | ||
const _e = /* @__PURE__ */ O(kn, [["render", xn]]), Mn = {}, Bn = { | ||
const _e = /* @__PURE__ */ O(Tn, [["render", Mn]]), Bn = {}, In = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -1064,10 +1074,10 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, In = /* @__PURE__ */ v("path", { d: "M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z" }, null, -1), On = /* @__PURE__ */ v("path", { d: "M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z" }, null, -1), Ln = [ | ||
In, | ||
On | ||
}, On = /* @__PURE__ */ v("path", { d: "M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z" }, null, -1), Ln = /* @__PURE__ */ v("path", { d: "M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z" }, null, -1), $n = [ | ||
On, | ||
Ln | ||
]; | ||
function $n(e, t) { | ||
return S(), x("svg", Bn, Ln); | ||
function Pn(e, t) { | ||
return S(), x("svg", In, $n); | ||
} | ||
const ye = /* @__PURE__ */ O(Mn, [["render", $n]]), Pn = {}, Nn = { | ||
const ye = /* @__PURE__ */ O(Bn, [["render", Pn]]), Wn = {}, Nn = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -1079,10 +1089,10 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, Wn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), zn = /* @__PURE__ */ v("path", { d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" }, null, -1), jn = [ | ||
Wn, | ||
zn | ||
}, zn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), jn = /* @__PURE__ */ v("path", { d: "M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z" }, null, -1), Hn = [ | ||
zn, | ||
jn | ||
]; | ||
function Hn(e, t) { | ||
return S(), x("svg", Nn, jn); | ||
function Rn(e, t) { | ||
return S(), x("svg", Nn, Hn); | ||
} | ||
const be = /* @__PURE__ */ O(Pn, [["render", Hn]]), Rn = {}, Gn = { | ||
const be = /* @__PURE__ */ O(Wn, [["render", Rn]]), Gn = {}, Fn = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -1094,10 +1104,10 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, Fn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), Vn = /* @__PURE__ */ v("path", { d: "M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z" }, null, -1), Zn = [ | ||
Fn, | ||
Vn | ||
}, Vn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), Zn = /* @__PURE__ */ v("path", { d: "M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05z" }, null, -1), Kn = [ | ||
Vn, | ||
Zn | ||
]; | ||
function Kn(e, t) { | ||
return S(), x("svg", Gn, Zn); | ||
function Yn(e, t) { | ||
return S(), x("svg", Fn, Kn); | ||
} | ||
const Ce = /* @__PURE__ */ O(Rn, [["render", Kn]]), Yn = {}, Un = { | ||
const Ce = /* @__PURE__ */ O(Gn, [["render", Yn]]), Un = {}, qn = { | ||
xmlns: "http://www.w3.org/2000/svg", | ||
@@ -1109,10 +1119,10 @@ width: "16", | ||
viewBox: "0 0 16 16" | ||
}, qn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), Xn = /* @__PURE__ */ v("path", { d: "M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z" }, null, -1), Jn = [ | ||
qn, | ||
Xn | ||
}, Xn = /* @__PURE__ */ v("path", { d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z" }, null, -1), Jn = /* @__PURE__ */ v("path", { d: "M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286zm1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94z" }, null, -1), Qn = [ | ||
Xn, | ||
Jn | ||
]; | ||
function Qn(e, t) { | ||
return S(), x("svg", Un, Jn); | ||
function eo(e, t) { | ||
return S(), x("svg", qn, Qn); | ||
} | ||
const eo = /* @__PURE__ */ O(Yn, [["render", Qn]]), to = { | ||
const to = /* @__PURE__ */ O(Un, [["render", eo]]), no = { | ||
name: "DialogAlertBody", | ||
@@ -1137,3 +1147,3 @@ setup() { | ||
case Y: | ||
return o(eo, null, null); | ||
return o(to, null, null); | ||
default: | ||
@@ -1153,3 +1163,3 @@ return; | ||
} | ||
}, no = { | ||
}, oo = { | ||
name: "DialogAlertFooter", | ||
@@ -1218,7 +1228,7 @@ setup() { | ||
...s | ||
} = oo(e, t); | ||
} = ao(e, t); | ||
return H(h, { | ||
...e, | ||
...s, | ||
...kt, | ||
...Tt, | ||
closeWithCallback: l | ||
@@ -1236,3 +1246,3 @@ }), n({ | ||
}, { | ||
default: () => [e.header && o(wn, null, null), o(to, null, null), o(no, null, null)] | ||
default: () => [e.header && o(wn, null, null), o(no, null, null), o(oo, null, null)] | ||
})] | ||
@@ -1242,3 +1252,3 @@ }); | ||
}); | ||
function oo(e, t) { | ||
function ao(e, t) { | ||
const { messageType: n, colorfulShadow: a } = e, { | ||
@@ -1280,11 +1290,11 @@ setDialogSize: l, | ||
} | ||
function ao() { | ||
function lo() { | ||
return z(Ve, U(...arguments)); | ||
} | ||
const { | ||
DialogAlertInfo: bo, | ||
DialogAlertWarning: Co, | ||
DialogAlertError: Do, | ||
DialogAlertInfo: Co, | ||
DialogAlertWarning: Do, | ||
DialogAlertError: ko, | ||
DialogAlertSuccess: wo, | ||
DialogAlertConfirm: ko | ||
DialogAlertConfirm: To | ||
} = ve( | ||
@@ -1294,3 +1304,3 @@ [...ge, Y], | ||
Ve | ||
), lo = { | ||
), so = { | ||
name: "DialogMessageBody", | ||
@@ -1305,3 +1315,3 @@ setup() { | ||
closeGroupDialogWithCallback: s | ||
} = C(h), i = ["v-dialog-body", t && "v-dialog-message--pill", e || "v-dialog-message--no-icon", io(a)]; | ||
} = C(h), i = ["v-dialog-body", t && "v-dialog-message--pill", e || "v-dialog-message--no-icon", co(a)]; | ||
function c(r) { | ||
@@ -1436,3 +1446,3 @@ switch (r) { | ||
...s | ||
} = so(e, t), i = p(); | ||
} = io(e, t), i = p(); | ||
return H(h, { | ||
@@ -1449,3 +1459,3 @@ ...e, | ||
}, { | ||
default: () => [o(lo, { | ||
default: () => [o(so, { | ||
ref: i | ||
@@ -1456,3 +1466,3 @@ }, null)] | ||
}); | ||
function so(e, t) { | ||
function io(e, t) { | ||
const { | ||
@@ -1468,3 +1478,3 @@ setPosition: n, | ||
...f | ||
} = Z(e, t), { closeGroupDialogWithCallback: d } = je(k, s), { getVerticalPosition: m } = Re(he, e); | ||
} = Z(e, t), { closeGroupDialogWithCallback: d } = je(w, s), { getVerticalPosition: m } = Re(he, e); | ||
i.value = !1, c.value = !1; | ||
@@ -1479,3 +1489,3 @@ function _() { | ||
} | ||
function k() { | ||
function w() { | ||
n(_(), y()); | ||
@@ -1486,8 +1496,8 @@ } | ||
Me(() => { | ||
var $, E, P, N, W; | ||
((E = ($ = T.value) == null ? void 0 : $.$el) == null ? void 0 : E.offsetHeight) > 60 && ((W = (N = (P = T.value) == null ? void 0 : P.$el) == null ? void 0 : N.classList) == null || W.remove("v-dialog-message--pill")); | ||
var $, E, P, W, N; | ||
((E = ($ = T.value) == null ? void 0 : $.$el) == null ? void 0 : E.offsetHeight) > 60 && ((N = (W = (P = T.value) == null ? void 0 : P.$el) == null ? void 0 : W.classList) == null || N.remove("v-dialog-message--pill")); | ||
}); | ||
}); | ||
} | ||
return a(), u(k), r(d), D(() => { | ||
return a(), u(w), r(d), D(() => { | ||
l(); | ||
@@ -1500,3 +1510,3 @@ }), { | ||
} | ||
function io(e) { | ||
function co(e) { | ||
return [ | ||
@@ -1508,3 +1518,3 @@ M, | ||
} | ||
function co() { | ||
function ro() { | ||
const e = U(...arguments), t = { | ||
@@ -1517,6 +1527,6 @@ type: he, | ||
const { | ||
DialogMessageInfo: To, | ||
DialogMessageWarning: Eo, | ||
DialogMessageError: Ao, | ||
DialogMessageSuccess: So | ||
DialogMessageInfo: Eo, | ||
DialogMessageWarning: Ao, | ||
DialogMessageError: So, | ||
DialogMessageSuccess: xo | ||
} = ve( | ||
@@ -1530,3 +1540,3 @@ ge, | ||
}) | ||
), ro = { | ||
), uo = { | ||
name: "DialogMessageBody", | ||
@@ -1543,3 +1553,3 @@ setup() { | ||
closeGroupDialogWithCallback: c | ||
} = C(h), r = ["v-dialog-body", fo(n)], u = l || We(n, s); | ||
} = C(h), r = ["v-dialog-body", go(n)], u = l || Ne(n, s); | ||
function f(d) { | ||
@@ -1616,3 +1626,3 @@ switch (d) { | ||
...l | ||
} = uo(e, t), s = p(); | ||
} = fo(e, t), s = p(); | ||
H(h, { | ||
@@ -1623,3 +1633,3 @@ ...e, | ||
}); | ||
const i = ["v-dialog-toast", go(e.placement)]; | ||
const i = ["v-dialog-toast", mo(e.placement)]; | ||
return n({ | ||
@@ -1632,3 +1642,3 @@ close: a | ||
}, { | ||
default: () => [o(ro, { | ||
default: () => [o(uo, { | ||
ref: s | ||
@@ -1639,3 +1649,3 @@ }, null)] | ||
}); | ||
function uo(e, t) { | ||
function fo(e, t) { | ||
const { | ||
@@ -1651,3 +1661,3 @@ setPosition: n, | ||
...f | ||
} = Z(e, t), { closeGroupDialogWithCallback: d } = je(k, s), { getVerticalPosition: m } = Re(me, e); | ||
} = Z(e, t), { closeGroupDialogWithCallback: d } = je(w, s), { getVerticalPosition: m } = Re(me, e); | ||
i.value = !1, c.value = !1; | ||
@@ -1662,3 +1672,3 @@ function _() { | ||
} | ||
function k() { | ||
function w() { | ||
n(_(), y()); | ||
@@ -1669,8 +1679,8 @@ } | ||
Me(() => { | ||
var $, E, P, N, W; | ||
((E = ($ = T.value) == null ? void 0 : $.$el) == null ? void 0 : E.offsetHeight) > 60 && ((W = (N = (P = T.value) == null ? void 0 : P.$el) == null ? void 0 : N.classList) == null || W.remove("v-dialog-message--pill")); | ||
var $, E, P, W, N; | ||
((E = ($ = T.value) == null ? void 0 : $.$el) == null ? void 0 : E.offsetHeight) > 60 && ((N = (W = (P = T.value) == null ? void 0 : P.$el) == null ? void 0 : W.classList) == null || N.remove("v-dialog-message--pill")); | ||
}); | ||
}); | ||
} | ||
return a(), u(k), r(d), D(() => { | ||
return a(), u(w), r(d), D(() => { | ||
l(); | ||
@@ -1684,3 +1694,3 @@ }), { | ||
} | ||
function fo(e) { | ||
function go(e) { | ||
return [ | ||
@@ -1692,7 +1702,7 @@ M, | ||
} | ||
function go(e) { | ||
function mo(e) { | ||
const t = "v-dialog-toast--"; | ||
return e === Le || e === $e ? t + "left" : t + "right"; | ||
} | ||
function mo() { | ||
function ho() { | ||
const e = U(...arguments), t = { | ||
@@ -1705,6 +1715,6 @@ type: me, | ||
const { | ||
DialogToastInfo: xo, | ||
DialogToastWarning: Mo, | ||
DialogToastError: Bo, | ||
DialogToastSuccess: Io | ||
DialogToastInfo: Mo, | ||
DialogToastWarning: Bo, | ||
DialogToastError: Io, | ||
DialogToastSuccess: Oo | ||
} = ve( | ||
@@ -1718,3 +1728,3 @@ ge, | ||
}) | ||
), Oo = /* @__PURE__ */ A({ | ||
), Lo = /* @__PURE__ */ A({ | ||
name: "DialogModalBox", | ||
@@ -1724,3 +1734,3 @@ setup(e, t) { | ||
} | ||
}), Lo = /* @__PURE__ */ A({ | ||
}), $o = /* @__PURE__ */ A({ | ||
name: "DialogDrawerBox", | ||
@@ -1730,11 +1740,11 @@ setup(e, t) { | ||
} | ||
}), $o = { | ||
}), Po = { | ||
install(e, t = {}) { | ||
const n = (t == null ? void 0 : t.instanceName) || tt, a = { | ||
alert: ao, | ||
message: co, | ||
toast: mo, | ||
modal: an, | ||
mask: vn, | ||
drawer: Dn | ||
alert: lo, | ||
message: ro, | ||
toast: ho, | ||
modal: ln, | ||
mask: _n, | ||
drawer: kn | ||
}; | ||
@@ -1745,24 +1755,24 @@ e.config.globalProperties[n] = a; | ||
export { | ||
ao as DialogAlert, | ||
ko as DialogAlertConfirm, | ||
Do as DialogAlertError, | ||
bo as DialogAlertInfo, | ||
lo as DialogAlert, | ||
To as DialogAlertConfirm, | ||
ko as DialogAlertError, | ||
Co as DialogAlertInfo, | ||
wo as DialogAlertSuccess, | ||
Co as DialogAlertWarning, | ||
Dn as DialogDrawer, | ||
Lo as DialogDrawerBox, | ||
vn as DialogMask, | ||
co as DialogMessage, | ||
Ao as DialogMessageError, | ||
To as DialogMessageInfo, | ||
So as DialogMessageSuccess, | ||
Eo as DialogMessageWarning, | ||
an as DialogModal, | ||
Oo as DialogModalBox, | ||
mo as DialogToast, | ||
Bo as DialogToastError, | ||
xo as DialogToastInfo, | ||
Io as DialogToastSuccess, | ||
Mo as DialogToastWarning, | ||
$o as default | ||
Do as DialogAlertWarning, | ||
kn as DialogDrawer, | ||
$o as DialogDrawerBox, | ||
_n as DialogMask, | ||
ro as DialogMessage, | ||
So as DialogMessageError, | ||
Eo as DialogMessageInfo, | ||
xo as DialogMessageSuccess, | ||
Ao as DialogMessageWarning, | ||
ln as DialogModal, | ||
Lo as DialogModalBox, | ||
ho as DialogToast, | ||
Io as DialogToastError, | ||
Mo as DialogToastInfo, | ||
Oo as DialogToastSuccess, | ||
Bo as DialogToastWarning, | ||
Po as default | ||
}; |
{ | ||
"name": "v-dialogs", | ||
"description": "A simple style useful dialog component collection for Vue3", | ||
"version": "3.0.2", | ||
"version": "3.0.3", | ||
"author": "TerryZ <terry5@foxmail.com>", | ||
@@ -45,2 +45,4 @@ "type": "module", | ||
"modal", | ||
"drawer", | ||
"message", | ||
"vue-modal", | ||
@@ -47,0 +49,0 @@ "vue-dialog" |
Sorry, the diff of this file is not supported yet
117291
2365