mc-plus 1.0.90 → 1.0.91

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/es/index.js CHANGED
@@ -19,8 +19,8 @@ import { M as B } from "./mc-currency-icon-Ch00HzEE.js";
19
19
  import { a as a9 } from "./mc-currency-icon-Ch00HzEE.js";
20
20
  import { M as D } from "./mc-divider-CktYgYbO.js";
21
21
  import { a as a10 } from "./mc-divider-CktYgYbO.js";
22
- import { M as G } from "./mc-drawer-BecCP46E.js";
23
- import { a as a11 } from "./mc-drawer-BecCP46E.js";
22
+ import { M as G } from "./mc-drawer-CRXWL5Cb.js";
23
+ import { a as a11 } from "./mc-drawer-CRXWL5Cb.js";
24
24
  import { M as Y } from "./mc-footer-DsN_d9ZN.js";
25
25
  import { a as a12 } from "./mc-footer-DsN_d9ZN.js";
26
26
  import { M as X } from "./mc-form-CzrT7EJQ.js";
@@ -35,8 +35,8 @@ import { M as v } from "./mc-input-qt44a-BA.js";
35
35
  import { a as a15 } from "./mc-input-qt44a-BA.js";
36
36
  import { M as w } from "./mc-input-group-BVInIbfD.js";
37
37
  import { I, a as a16 } from "./mc-input-group-BVInIbfD.js";
38
- import { M as J } from "./mc-lightbox-DwAz43BU.js";
39
- import { a as a17 } from "./mc-lightbox-DwAz43BU.js";
38
+ import { M as J } from "./mc-lightbox-CHPAlSAZ.js";
39
+ import { a as a17 } from "./mc-lightbox-CHPAlSAZ.js";
40
40
  import { M as V } from "./mc-loading-BprtzkRY.js";
41
41
  import { a as a18 } from "./mc-loading-BprtzkRY.js";
42
42
  import { M as Z } from "./mc-modal-header-ChnzEwB_.js";
@@ -45,8 +45,8 @@ import { M as z } from "./mc-multi-tag-BvapzQee.js";
45
45
  import { a as a20 } from "./mc-multi-tag-BvapzQee.js";
46
46
  import { M as Q } from "./mc-otp-oPzld7i2.js";
47
47
  import { a as a21 } from "./mc-otp-oPzld7i2.js";
48
- import { M as $ } from "./mc-overlay-B-IyqS6S.js";
49
- import { a as a22 } from "./mc-overlay-B-IyqS6S.js";
48
+ import { M as $ } from "./mc-overlay-DjeN3ZV8.js";
49
+ import { a as a22 } from "./mc-overlay-DjeN3ZV8.js";
50
50
  import { M as ss } from "./mc-popper-tmM-KwaS.js";
51
51
  import { a as a23 } from "./mc-popper-tmM-KwaS.js";
52
52
  import { M as os } from "./mc-progress-bar-BCzT9lDm.js";
@@ -1,6 +1,6 @@
1
1
  import { _ as e, u as o } from "./utils-dWwt4JKv.js";
2
2
  import { defineComponent as t, ref as r, watch as s, createElementBlock as a, createCommentVNode as l, openBlock as d, createVNode as i, Transition as c, withCtx as m, unref as f, normalizeClass as n, createElementVNode as u, renderSlot as p } from "vue";
3
- import { u as v, M as w } from "./mc-overlay-B-IyqS6S.js";
3
+ import { u as v, M as w } from "./mc-overlay-DjeN3ZV8.js";
4
4
  import { M as h } from "./mc-modal-header-ChnzEwB_.js";
5
5
  import { M as y } from "./mc-footer-DsN_d9ZN.js";
6
6
  const _ = "mc-drawer", $ = { key: 0, class: "mc-drawer-container" }, b = { class: "mc-drawer-header" }, g = { class: "mc-drawer-content-wrapper" }, k = { class: "mc-drawer-content" }, B = { key: 0, class: "mc-drawer-footer" }, C = o(e(t({ name: _, __name: "mc-drawer", props: { modelValue: { type: Boolean }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, showBorder: { type: Boolean, default: true }, hideFooter: { type: Boolean, default: false }, position: { default: "right" } }, emits: ["update:modelValue", "close"], setup(e2, { expose: o2, emit: t2 }) {
@@ -1,6 +1,6 @@
1
1
  import { _ as e, u as o } from "./utils-dWwt4JKv.js";
2
2
  import { defineComponent as t, ref as l, watch as s, createElementBlock as i, createCommentVNode as a, openBlock as r, createVNode as d, Transition as m, withCtx as c, unref as f, normalizeClass as n, createElementVNode as u, renderSlot as h, normalizeStyle as p } from "vue";
3
- import { u as v, M as b } from "./mc-overlay-B-IyqS6S.js";
3
+ import { u as v, M as b } from "./mc-overlay-DjeN3ZV8.js";
4
4
  import { M as g } from "./mc-modal-header-ChnzEwB_.js";
5
5
  import { M as x } from "./mc-footer-DsN_d9ZN.js";
6
6
  const y = "mc-lightbox", _ = { key: 0, class: "mc-lightbox-container" }, $ = { class: "mc-lightbox-header" }, k = { class: "mc-lightbox-content-wrapper" }, w = { key: 0, class: "mc-lightbox-footer" }, B = o(e(t({ name: y, __name: "mc-lightbox", props: { modelValue: { type: Boolean, default: false }, title: {}, size: { default: "medium" }, maskClosable: { type: Boolean, default: true }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" }, hideFooter: { type: Boolean, default: false }, showBorder: { type: Boolean, default: false }, minHeight: { default: void 0 } }, emits: ["update:modelValue", "open", "close"], setup(e2, { expose: o2, emit: t2 }) {
@@ -0,0 +1,43 @@
1
+ import { _ as e, u as t } from "./utils-dWwt4JKv.js";
2
+ import { defineComponent as o, onBeforeMount as s, ref as l, createElementBlock as i, createCommentVNode as a, openBlock as r, createBlock as n, Teleport as c, createElementVNode as u, normalizeStyle as v, renderSlot as p, onUnmounted as d } from "vue";
3
+ const y = "mc-overlay", m = { key: 0 }, f = t(e(o({ name: y, __name: "mc-overlay", props: { visible: { type: Boolean }, fixed: { type: Boolean, default: true }, portCssSelector: { default: "body" } }, emits: ["click"], setup(e2, { expose: t2, emit: o2 }) {
4
+ const d2 = e2, y2 = o2;
5
+ s(() => {
6
+ const e3 = document.querySelector(d2.portCssSelector);
7
+ e3 && "static" === window.getComputedStyle(e3).position && (e3.style.position = "relative");
8
+ });
9
+ const f2 = l();
10
+ return t2({ ref: f2 }), (t3, o3) => e2.visible ? (r(), i("div", m, [(r(), n(c, { to: e2.portCssSelector }, [u("div", { ref_key: "_ref", ref: f2, class: "mc-overlay", onClick: o3[0] || (o3[0] = (e3) => ((e4) => {
11
+ e4.target === f2.value && y2("click");
12
+ })(e3)), style: v({ position: e2.fixed ? "fixed" : "absolute" }) }, [p(t3.$slots, "default", {}, void 0, true)], 4)], 8, ["to"]))])) : a("", true);
13
+ } }), [["__scopeId", "data-v-7e34ebbc"]])), S = (e2 = 300) => {
14
+ const t2 = l(false), o2 = l(false), s2 = () => {
15
+ t2.value = true;
16
+ }, i2 = () => {
17
+ t2.value = false;
18
+ }, a2 = () => {
19
+ o2.value = true;
20
+ }, r2 = () => {
21
+ o2.value = false;
22
+ };
23
+ let n2 = null;
24
+ const c2 = () => {
25
+ n2 && clearTimeout(n2);
26
+ };
27
+ return d(() => {
28
+ c2();
29
+ }), { isOverlayShow: t2, isContentShow: o2, setOverlayShow: s2, setOverlayHide: i2, setContentShow: a2, setContentHide: r2, openOverlay: () => {
30
+ c2(), s2(), n2 = setTimeout(() => {
31
+ a2();
32
+ }, e2);
33
+ }, closeOverlay: () => {
34
+ c2(), r2(), n2 = setTimeout(() => {
35
+ i2();
36
+ }, e2);
37
+ } };
38
+ };
39
+ export {
40
+ f as M,
41
+ y as a,
42
+ S as u
43
+ };
@@ -1 +1 @@
1
- .mc-overlay[data-v-bc69d156]{top:0;bottom:0;left:0;right:0;background-color:#21105033;z-index:9999}
1
+ .mc-overlay[data-v-7e34ebbc]{top:0;bottom:0;left:0;right:0;background-color:#21105033;z-index:9999}