mc-plus 1.0.57 → 1.0.59
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/hooks-CKji3WSf.js +124 -0
- package/dist/es/index.js +95 -90
- package/dist/es/{mc-alert-message-DeESyYWi.js → mc-alert-message-CChYZI3D.js} +2 -2
- package/dist/es/{mc-button-BYcaKyxY.js → mc-button-C03fq0Vg.js} +3 -3
- package/dist/es/{mc-checkbox-BHaptfYE.js → mc-checkbox-D643PQFT.js} +4 -4
- package/dist/es/{mc-collapse-B-Uost0W.js → mc-collapse-Cl-HY8g7.js} +2 -2
- package/dist/es/{mc-copy-DjrIj32o.js → mc-copy-pdudRtmL.js} +3 -3
- package/dist/es/{mc-count-DoAxlDMF.js → mc-count-DPwB-Tl8.js} +1 -1
- package/dist/es/{mc-currency-icon-NfsQN_CY.js → mc-currency-icon-DijmzIJr.js} +2 -2
- package/dist/es/{mc-divider-DDFoixxd.js → mc-divider-BoXVoQKK.js} +1 -1
- package/dist/es/{mc-drawer-C0a34iQh.js → mc-drawer-Co0ilxb5.js} +5 -5
- package/dist/es/{mc-footer-Q63BaQUH.js → mc-footer-CRvVry3_.js} +1 -1
- package/dist/es/{mc-form-Ci5lvDN2.js → mc-form-R0yADNau.js} +53 -53
- package/dist/es/{mc-icon-DZiakTQE.js → mc-icon-B5Q0Yuwp.js} +1 -1
- package/dist/es/mc-input-D5fWTYux.js +111 -0
- package/dist/es/{mc-lightbox-CzEtHkMH.js → mc-lightbox-Bl_lG75D.js} +11 -11
- package/dist/es/{mc-loading-iNlaRxlO.js → mc-loading-Bk-4U896.js} +2 -2
- package/dist/es/{mc-modal-header-bUhnUlHk.js → mc-modal-header-Cv9kHtqq.js} +5 -5
- package/dist/es/{mc-otp-BBTVzc3k.js → mc-otp-DVK6JUmP.js} +5 -5
- package/dist/es/{mc-overlay-D02zzfl9.js → mc-overlay-BdSi6WvG.js} +1 -1
- package/dist/es/{mc-popper-scCufTfq.js → mc-popper-CmcE9TvN.js} +6 -6
- package/dist/es/{mc-progress-bar-DAVqfL_2.js → mc-progress-bar-BJz4V050.js} +6 -6
- package/dist/es/{mc-radio-CxY9hymv.js → mc-radio-DQEWdbub.js} +9 -9
- package/dist/es/{mc-reset-CxxUIGWu.js → mc-reset-CZe2ef-e.js} +2 -2
- package/dist/es/mc-secondary-menu-DRAu74Gh.js +37 -0
- package/dist/es/{mc-select-epMYkS9o.js → mc-select-meiWFGAo.js} +84 -81
- package/dist/es/{mc-status-fsOkPGzk.js → mc-status-CN_fjw5a.js} +2 -2
- package/dist/es/mc-step-BoX1nfHX.js +180 -0
- package/dist/es/{mc-success-icon-r0QKsrYp.js → mc-success-icon-B9A5DRle.js} +1 -1
- package/dist/es/{mc-switch-a7r2m17I.js → mc-switch-BWBMLlbz.js} +8 -8
- package/dist/es/mc-tab-CGKP-QYO.js +359 -0
- package/dist/es/{mc-tag-CrX_Y1yZ.js → mc-tag-DkMXaS5-.js} +6 -6
- package/dist/es/{mc-textarea-D4TFn-y1.js → mc-textarea-Bzojh222.js} +3 -3
- package/dist/es/{mc-title-d3YJQiFw.js → mc-title-iCS_cGTY.js} +8 -8
- package/dist/es/{mc-toast-CLrucZSx.js → mc-toast-BTtU1srD.js} +2 -2
- package/dist/es/{mc-tooltip-WfM4uIrc.js → mc-tooltip-B0iMv7jl.js} +7 -7
- package/dist/es/{mc-upload-BWVXUfnj.js → mc-upload-Bi7qb9Qo.js} +9 -9
- package/dist/es/theme/mc-input.css +1 -1
- package/dist/es/theme/mc-secondary-menu.css +1 -0
- package/dist/es/theme/mc-select.css +1 -1
- package/dist/es/theme/mc-step.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/es/{utils-B6ktRqkb.js → utils-CLh5FYFN.js} +1 -1
- package/dist/es/{vendor-e42zme5v.js → vendor-CGcJTYPk.js} +108 -99
- package/dist/index.css +1 -1
- package/dist/types/components/index.d.ts +29 -28
- package/dist/types/components/mc-alert-message/index.d.ts +8 -8
- package/dist/types/components/mc-checkbox/index.d.ts +3 -3
- package/dist/types/components/mc-copy/index.d.ts +13 -13
- package/dist/types/components/mc-count/index.d.ts +3 -3
- package/dist/types/components/mc-drawer/index.d.ts +8 -8
- package/dist/types/components/mc-form/index.d.ts +6 -6
- package/dist/types/components/mc-input/index.d.ts +15 -8
- package/dist/types/components/mc-input/types.d.ts +3 -0
- package/dist/types/components/mc-lightbox/index.d.ts +8 -8
- package/dist/types/components/mc-secondary-menu/index.d.ts +16 -16
- package/dist/types/components/mc-select/index.d.ts +5 -5
- package/dist/types/components/mc-select-plus/index.d.ts +13 -12
- package/dist/types/components/mc-step/index.d.ts +5 -5
- package/dist/types/components/mc-step-plus/constant.d.ts +3 -0
- package/dist/types/components/mc-step-plus/hooks/index.d.ts +1 -0
- package/dist/types/components/mc-step-plus/hooks/useStepItem.d.ts +67 -0
- package/dist/types/components/mc-step-plus/index.d.ts +93 -0
- package/dist/types/components/mc-step-plus/types/index.d.ts +3 -0
- package/dist/types/components/mc-step-plus/types/mc-step-child-item.d.ts +33 -0
- package/dist/types/components/mc-step-plus/types/mc-step-item.d.ts +6 -0
- package/dist/types/components/mc-step-plus/types/mc-step.d.ts +42 -0
- package/dist/types/components/mc-step-plus/utils/index.d.ts +3 -0
- package/dist/types/components/mc-step-v2/index.d.ts +6 -6
- package/dist/types/components/mc-switch/index.d.ts +3 -3
- package/dist/types/components/mc-table/index.d.ts +17 -17
- package/dist/types/components/mc-tag/index.d.ts +3 -3
- package/dist/types/components/mc-textarea/index.d.ts +6 -6
- package/dist/types/components/mc-toast/index.d.ts +3 -3
- package/dist/types/components/mc-tooltip/index.d.ts +6 -6
- package/dist/types/components/mc-upload/index.d.ts +6 -6
- package/dist/types/hooks/useProp.d.ts +1 -1
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +15 -15
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/hooks-C18UzdJC.js +0 -122
- package/dist/es/mc-input-DmYtDa0l.js +0 -111
- package/dist/es/mc-step-Dj4k1e7a.js +0 -119
- package/dist/es/mc-tab-BmUs-JG8.js +0 -359
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { i as e, a as r, h as t, t as n } from "./vendor-CGcJTYPk.js";
|
|
2
|
+
import { isRef as a, watch as v, onMounted as o, onBeforeUnmount as u, unref as s, getCurrentInstance as l, ref as i, computed as d, onUnmounted as c, onBeforeMount as f } from "vue";
|
|
3
|
+
import { g } from "./utils-CLh5FYFN.js";
|
|
4
|
+
function m(e2, r2, t2) {
|
|
5
|
+
a(e2) ? v(e2, (e3, n2) => {
|
|
6
|
+
n2 == null ? void 0 : n2.removeEventListener(r2, t2), e3 == null ? void 0 : e3.addEventListener(r2, t2);
|
|
7
|
+
}) : o(() => e2 == null ? void 0 : e2.addEventListener(r2, t2)), u(() => {
|
|
8
|
+
var _a;
|
|
9
|
+
return (_a = s(e2)) == null ? void 0 : _a.removeEventListener(r2, t2);
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
function p(r2, t2) {
|
|
13
|
+
m(document, "click", (n2) => {
|
|
14
|
+
if (r2.value && n2.target) if (e(r2.value)) {
|
|
15
|
+
let e2 = true;
|
|
16
|
+
for (let t3 = 0; t3 < r2.value.length; t3++) if (r2.value[t3].contains(n2.target)) {
|
|
17
|
+
e2 = false;
|
|
18
|
+
break;
|
|
19
|
+
}
|
|
20
|
+
e2 && t2(n2);
|
|
21
|
+
} else r2.value.contains(n2.target) || t2(n2);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function E(e2, { afterFocus: t2, beforeBlur: n2, afterBlur: a2 } = {}) {
|
|
25
|
+
const v2 = l(), { emit: o2 } = v2, u2 = i(), s2 = i(false);
|
|
26
|
+
return m(u2, "click", () => {
|
|
27
|
+
var _a;
|
|
28
|
+
(_a = e2.value) == null ? void 0 : _a.focus();
|
|
29
|
+
}), { wrapperRef: u2, isFocused: s2, handleFocus: (e3) => {
|
|
30
|
+
s2.value || (s2.value = true, o2("focus", e3), t2 == null ? void 0 : t2());
|
|
31
|
+
}, handleBlur: (e3) => {
|
|
32
|
+
var _a;
|
|
33
|
+
r(n2) && n2(e3) || e3.relatedTarget && ((_a = u2.value) == null ? void 0 : _a.contains(e3.relatedTarget)) || (s2.value = false, o2("blur", e3), a2 == null ? void 0 : a2());
|
|
34
|
+
} };
|
|
35
|
+
}
|
|
36
|
+
const L = (e2, r2) => ({ generateFileUrl: (t2) => {
|
|
37
|
+
if (e2 && r2 && t2) return `${e2}/${t2}.${r2}`;
|
|
38
|
+
} });
|
|
39
|
+
function b(r2) {
|
|
40
|
+
const n2 = l();
|
|
41
|
+
if (!n2) throw new Error("useProp must be used within a component");
|
|
42
|
+
return d(() => {
|
|
43
|
+
var _a;
|
|
44
|
+
const a2 = (_a = n2 == null ? void 0 : n2.proxy) == null ? void 0 : _a.$props;
|
|
45
|
+
if (!e(r2)) return a2 == null ? void 0 : a2[r2];
|
|
46
|
+
for (const e2 of r2) if (t(a2, e2)) return a2 == null ? void 0 : a2[e2];
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function h(e2, r2, t2 = 300) {
|
|
50
|
+
const a2 = new ResizeObserver(n((e3) => {
|
|
51
|
+
for (let t3 of e3) r2(t3.contentRect);
|
|
52
|
+
}, t2)), s2 = (e3) => {
|
|
53
|
+
a2.observe(e3);
|
|
54
|
+
}, l2 = (e3) => {
|
|
55
|
+
a2.unobserve(e3);
|
|
56
|
+
};
|
|
57
|
+
return o(() => {
|
|
58
|
+
e2.value && s2(e2.value);
|
|
59
|
+
}), u(() => {
|
|
60
|
+
e2.value && l2(e2.value);
|
|
61
|
+
}), v(e2, (e3) => {
|
|
62
|
+
e3 && s2(e3);
|
|
63
|
+
}), { resizeObserver: a2, observe: s2, unobserve: l2 };
|
|
64
|
+
}
|
|
65
|
+
function D(e2) {
|
|
66
|
+
o(() => {
|
|
67
|
+
window.addEventListener("resize", e2);
|
|
68
|
+
}), c(() => {
|
|
69
|
+
window.removeEventListener("resize", e2);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
const w = () => {
|
|
73
|
+
const e2 = b("width"), r2 = b("height");
|
|
74
|
+
return { width: d(() => "number" == typeof e2.value ? `${e2.value}px` : e2.value || "auto"), height: d(() => "number" == typeof r2.value ? `${r2.value}px` : r2.value || "auto") };
|
|
75
|
+
}, $ = (e2) => {
|
|
76
|
+
const r2 = i(false), t2 = () => {
|
|
77
|
+
r2.value = true;
|
|
78
|
+
}, n2 = () => {
|
|
79
|
+
r2.value = false;
|
|
80
|
+
};
|
|
81
|
+
return o(() => {
|
|
82
|
+
e2.value && (e2.value.addEventListener("mouseenter", t2), e2.value.addEventListener("mouseleave", n2));
|
|
83
|
+
}), f(() => {
|
|
84
|
+
e2.value && (e2.value.removeEventListener("mouseenter", t2), e2.value.removeEventListener("mouseleave", n2));
|
|
85
|
+
}), { isHovering: r2 };
|
|
86
|
+
}, x = (e2, t2) => {
|
|
87
|
+
const n2 = i(false), a2 = (e3) => {
|
|
88
|
+
e3 !== n2.value && (n2.value = e3);
|
|
89
|
+
}, v2 = (e3) => {
|
|
90
|
+
e3.preventDefault(), a2(true), r(t2.onDragEnter) && t2.onDragEnter(e3);
|
|
91
|
+
}, s2 = (e3) => {
|
|
92
|
+
e3.preventDefault(), a2(false), r(t2.onDragLeave) && t2.onDragLeave(e3);
|
|
93
|
+
}, l2 = (e3) => {
|
|
94
|
+
e3.preventDefault(), r(t2.onDragover) && t2.onDragover(e3);
|
|
95
|
+
}, d2 = (e3) => {
|
|
96
|
+
e3.preventDefault(), a2(false), r(t2.onDrop) && t2.onDrop(e3);
|
|
97
|
+
};
|
|
98
|
+
return o(() => {
|
|
99
|
+
var _a, _b, _c, _d;
|
|
100
|
+
(_a = e2.value) == null ? void 0 : _a.addEventListener("dragenter", v2), (_b = e2.value) == null ? void 0 : _b.addEventListener("dragleave", s2), (_c = e2.value) == null ? void 0 : _c.addEventListener("dragover", l2), (_d = e2.value) == null ? void 0 : _d.addEventListener("drop", d2);
|
|
101
|
+
}), u(() => {
|
|
102
|
+
var _a, _b, _c, _d;
|
|
103
|
+
(_a = e2.value) == null ? void 0 : _a.removeEventListener("dragenter", v2), (_b = e2.value) == null ? void 0 : _b.removeEventListener("dragleave", s2), (_c = e2.value) == null ? void 0 : _c.removeEventListener("dragover", l2), (_d = e2.value) == null ? void 0 : _d.removeEventListener("drop", d2);
|
|
104
|
+
}), { isDragover: n2 };
|
|
105
|
+
}, z = (e2) => {
|
|
106
|
+
const r2 = b("id");
|
|
107
|
+
if (r2.value) return r2.value;
|
|
108
|
+
{
|
|
109
|
+
const r3 = g();
|
|
110
|
+
return e2 ? `${e2}-${r3}` : r3;
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
L as a,
|
|
115
|
+
w as b,
|
|
116
|
+
h as c,
|
|
117
|
+
z as d,
|
|
118
|
+
b as e,
|
|
119
|
+
$ as f,
|
|
120
|
+
D as g,
|
|
121
|
+
p as h,
|
|
122
|
+
x as i,
|
|
123
|
+
E as u
|
|
124
|
+
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,97 +1,102 @@
|
|
|
1
|
-
import { p as s, m } from "./utils-
|
|
2
|
-
import { M as o
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { M as e
|
|
8
|
-
import { M as
|
|
9
|
-
import {
|
|
10
|
-
import { a as
|
|
11
|
-
import { M as
|
|
12
|
-
import { a as
|
|
13
|
-
import {
|
|
14
|
-
import { a as
|
|
15
|
-
import { a as
|
|
16
|
-
import {
|
|
17
|
-
import { M as
|
|
18
|
-
import { M as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { a as
|
|
22
|
-
import { a as
|
|
23
|
-
import {
|
|
24
|
-
import { M as
|
|
25
|
-
import { M as
|
|
26
|
-
import { M as
|
|
27
|
-
import { M as U } from "./mc-
|
|
28
|
-
import {
|
|
29
|
-
import { M as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { M as
|
|
33
|
-
import { M as
|
|
34
|
-
import { a as
|
|
35
|
-
import { M as
|
|
36
|
-
import {
|
|
37
|
-
import { M as
|
|
38
|
-
|
|
1
|
+
import { p as s, m } from "./utils-CLh5FYFN.js";
|
|
2
|
+
import { M as o } from "./mc-alert-message-CChYZI3D.js";
|
|
3
|
+
import { a as r } from "./mc-button-C03fq0Vg.js";
|
|
4
|
+
import { a as p, b as i } from "./mc-checkbox-D643PQFT.js";
|
|
5
|
+
import { M as f } from "./mc-collapse-Cl-HY8g7.js";
|
|
6
|
+
import { a } from "./mc-collapse-Cl-HY8g7.js";
|
|
7
|
+
import { M as e } from "./mc-copy-pdudRtmL.js";
|
|
8
|
+
import { M as j } from "./mc-count-DPwB-Tl8.js";
|
|
9
|
+
import { M } from "./mc-currency-icon-DijmzIJr.js";
|
|
10
|
+
import { a as l } from "./mc-divider-BoXVoQKK.js";
|
|
11
|
+
import { M as b } from "./mc-drawer-Co0ilxb5.js";
|
|
12
|
+
import { a as n } from "./mc-footer-CRvVry3_.js";
|
|
13
|
+
import { M as x, b as g } from "./mc-form-R0yADNau.js";
|
|
14
|
+
import { a as h } from "./mc-icon-B5Q0Yuwp.js";
|
|
15
|
+
import { M as y, a as w } from "./mc-input-D5fWTYux.js";
|
|
16
|
+
import { M as k } from "./mc-lightbox-Bl_lG75D.js";
|
|
17
|
+
import { M as v } from "./mc-loading-Bk-4U896.js";
|
|
18
|
+
import { M as A } from "./mc-modal-header-Cv9kHtqq.js";
|
|
19
|
+
import { M as C } from "./mc-otp-DVK6JUmP.js";
|
|
20
|
+
import { a as S } from "./mc-popper-CmcE9TvN.js";
|
|
21
|
+
import { a as T } from "./mc-progress-bar-BJz4V050.js";
|
|
22
|
+
import { M as q, a as z } from "./mc-radio-DQEWdbub.js";
|
|
23
|
+
import { M as B } from "./mc-reset-CZe2ef-e.js";
|
|
24
|
+
import { M as I } from "./mc-secondary-menu-DRAu74Gh.js";
|
|
25
|
+
import { M as P, a as D, b as E, c as F, d as G, e as H, f as J } from "./mc-select-meiWFGAo.js";
|
|
26
|
+
import { M as K } from "./mc-status-CN_fjw5a.js";
|
|
27
|
+
import { M as L, a as N, b as O, c as Q, d as R, e as U, f as V } from "./mc-step-BoX1nfHX.js";
|
|
28
|
+
import { a as W } from "./mc-success-icon-B9A5DRle.js";
|
|
29
|
+
import { M as X } from "./mc-switch-BWBMLlbz.js";
|
|
30
|
+
import { M as Y, a as Z, b as $ } from "./mc-tab-CGKP-QYO.js";
|
|
31
|
+
import { u, c, d } from "./mc-tab-CGKP-QYO.js";
|
|
32
|
+
import { M as _ } from "./mc-tag-DkMXaS5-.js";
|
|
33
|
+
import { M as ss } from "./mc-textarea-Bzojh222.js";
|
|
34
|
+
import { M as ms, a as os } from "./mc-title-iCS_cGTY.js";
|
|
35
|
+
import { M as as } from "./mc-toast-BTtU1srD.js";
|
|
36
|
+
import { t } from "./mc-toast-BTtU1srD.js";
|
|
37
|
+
import { M as rs } from "./mc-tooltip-B0iMv7jl.js";
|
|
38
|
+
import { M as ts, a as cs, b as ps } from "./mc-upload-Bi7qb9Qo.js";
|
|
39
|
+
const is = [o, r, p, i, f, e, j, M, l, b, ts, n, x, g, h, y, w, k, v, A, C, S, T, q, z, B, I, P, D, E, F, G, H, J, L, N, O, Q, R, U, V, K, W, X, Y, Z, _, $, ss, ms, os, as, rs, cs, ps];
|
|
39
40
|
s();
|
|
40
|
-
const
|
|
41
|
+
const fs = m(is);
|
|
41
42
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
o as McAlertMessage,
|
|
44
|
+
r as McButton,
|
|
45
|
+
p as McCheckbox,
|
|
46
|
+
i as McCheckboxGroup,
|
|
47
|
+
f as McCollapse,
|
|
47
48
|
a as McCollapseItem,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
49
|
+
e as McCopy,
|
|
50
|
+
j as McCount,
|
|
51
|
+
M as McCurrencyIcon,
|
|
52
|
+
l as McDivider,
|
|
53
|
+
b as McDrawer,
|
|
54
|
+
ts as McFileList,
|
|
55
|
+
n as McFooter,
|
|
56
|
+
x as McForm,
|
|
57
|
+
g as McFormItem,
|
|
58
|
+
h as McIcon,
|
|
59
|
+
y as McInput,
|
|
60
|
+
w as McInputGroup,
|
|
61
|
+
k as McLightbox,
|
|
62
|
+
v as McLoading,
|
|
63
|
+
A as McModalHeader,
|
|
64
|
+
C as McOtp,
|
|
65
|
+
S as McPopper,
|
|
66
|
+
T as McProgressBar,
|
|
67
|
+
q as McRadio,
|
|
68
|
+
z as McRadioGroup,
|
|
69
|
+
B as McReset,
|
|
70
|
+
I as McSecondaryMenu,
|
|
71
|
+
P as McSelect,
|
|
72
|
+
D as McSelectGroup,
|
|
73
|
+
E as McSelectGroupPlus,
|
|
74
|
+
F as McSelectMultiOption,
|
|
75
|
+
G as McSelectOption,
|
|
76
|
+
H as McSelectOptionPlus,
|
|
77
|
+
J as McSelectPlus,
|
|
76
78
|
K as McStatus,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
79
|
+
L as McStep,
|
|
80
|
+
N as McStepChildItemPlus,
|
|
81
|
+
O as McStepChildItemV2,
|
|
82
|
+
Q as McStepItemPlus,
|
|
83
|
+
R as McStepItemV2,
|
|
84
|
+
U as McStepPlus,
|
|
85
|
+
V as McStepV2,
|
|
86
|
+
W as McSuccessIcon,
|
|
87
|
+
X as McSwitch,
|
|
88
|
+
Y as McTab,
|
|
89
|
+
Z as McTabItem,
|
|
90
|
+
$ as McTable,
|
|
91
|
+
_ as McTag,
|
|
92
|
+
ss as McTextarea,
|
|
93
|
+
ms as McTitle,
|
|
94
|
+
os as McTitleToolBar,
|
|
95
|
+
as as McToast,
|
|
96
|
+
rs as McTooltip,
|
|
97
|
+
cs as McUpload,
|
|
98
|
+
ps as McUploadDropzone,
|
|
99
|
+
fs as default,
|
|
95
100
|
t as toast,
|
|
96
101
|
u as usePagination,
|
|
97
102
|
c as useTableScroll,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, useSlots as s, computed as t, createElementBlock as l, openBlock as o, normalizeStyle as c, normalizeClass as n, createElementVNode as r, createCommentVNode as i, renderSlot as m, createVNode as d, createTextVNode as u, toDisplayString as p, createBlock as g, withModifiers as v, Transition as f, withCtx as y } from "vue";
|
|
2
|
-
import { M as h } from "./mc-icon-
|
|
3
|
-
import { _ as x, w as _ } from "./utils-
|
|
2
|
+
import { M as h } from "./mc-icon-B5Q0Yuwp.js";
|
|
3
|
+
import { _ as x, w as _ } from "./utils-CLh5FYFN.js";
|
|
4
4
|
const k = { class: "mc-alert-message-header" }, b = { class: "mc-alert-message-title-container" }, w = { key: 0, class: "mc-alert-message-icon-group" }, z = { class: "mc-alert-message-icon-wrapper" }, B = { class: "mc-alert-message-icon-wrapper" }, C = { key: 0, class: "mc-alert-message-body" }, I = _(x(e({ name: "McAlertMessage", __name: "mc-alert-message", props: { modelValue: { type: Boolean, default: true }, width: {}, height: {}, type: { default: "info" }, message: {}, content: {}, closable: { type: Boolean, default: false }, hideIcon: { type: Boolean, default: false }, expandable: { type: Boolean, default: false } }, emits: ["click", "close", "update:modelValue", "expand"], setup(e2, { expose: x2, emit: _2 }) {
|
|
5
5
|
const I2 = e2, M = _2, $ = a(), V = s(), j = t(() => I2.content || V.content), A = t(() => H.value || V.icon), E = a(false), D = t(() => !I2.expandable || E.value), H = t(() => {
|
|
6
6
|
if (!I2.hideIcon) switch (I2.type) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, toRefs as t, ref as o, useAttrs as a, computed as i, toValue as l, createElementBlock as n, openBlock as s, unref as d, normalizeClass as u, normalizeStyle as r, createBlock as c, createCommentVNode as m, createElementVNode as p, createVNode as v, renderSlot as f } from "vue";
|
|
2
|
-
import { M as y } from "./mc-icon-
|
|
3
|
-
import { t as h } from "./vendor-
|
|
4
|
-
import { _ as b, w as g } from "./utils-
|
|
2
|
+
import { M as y } from "./mc-icon-B5Q0Yuwp.js";
|
|
3
|
+
import { t as h } from "./vendor-CGcJTYPk.js";
|
|
4
|
+
import { _ as b, w as g } from "./utils-CLh5FYFN.js";
|
|
5
5
|
const k = ["type", "disabled"], I = { key: 1, class: "loading-icon" }, _ = { class: "mc-button-text" }, w = b(e({ name: "McButton", __name: "mc-button", props: { type: { default: "primary" }, nativeType: { default: "button" }, size: { default: "medium" }, disabled: { type: Boolean }, loading: { type: Boolean }, useThrottle: { type: Boolean, default: true }, throttleDuration: { default: 500 }, leftIcon: {}, rightIcon: {}, content: {}, height: {}, width: {} }, emits: ["click"], setup(e2, { expose: b2, emit: g2 }) {
|
|
6
6
|
const w2 = e2, { loading: z2, disabled: B, throttleDuration: T, height: j, width: x } = t(w2), M = g2, $ = o(), D = t(a()), C = i(() => ({ ...l(D).style, width: x.value ? x.value : void 0, height: j.value ? j.value : void 0 })), L = (e3) => {
|
|
7
7
|
z2.value || B.value || M("click", e3);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { inject as e, computed as a, defineComponent as o, ref as l, createElementBlock as c, openBlock as s, createElementVNode as t, createCommentVNode as d, withModifiers as u, normalizeClass as r, unref as m, withKeys as n, renderSlot as i, createTextVNode as p, toDisplayString as b, nextTick as h, watch as k, provide as x } from "vue";
|
|
2
|
-
import { u as f } from "./hooks-
|
|
3
|
-
import { u as v, a as y } from "./mc-form-
|
|
4
|
-
import { a as V, b as C, c as S, d as _ } from "./vendor-
|
|
5
|
-
import { _ as g, w as B } from "./utils-
|
|
2
|
+
import { u as f } from "./hooks-CKji3WSf.js";
|
|
3
|
+
import { u as v, a as y } from "./mc-form-R0yADNau.js";
|
|
4
|
+
import { a as V, b as C, c as S, d as _ } from "./vendor-CGcJTYPk.js";
|
|
5
|
+
import { _ as g, w as B } from "./utils-CLh5FYFN.js";
|
|
6
6
|
const G = Symbol("CheckboxGroupContext"), I = { class: "mc-checkbox" }, w = ["id", "value", "disabled", "onKeypress"], $ = { key: 0, class: "mc-checkbox-content" }, j = { key: 0, class: "mc-checkbox-remarks" }, D = g(o({ name: "McCheckbox", __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, disableValidation: { type: Boolean, default: false }, value: {} }, emits: ["update:modelValue", "change", "focus", "blur"], setup(o2, { emit: k2 }) {
|
|
7
7
|
const x2 = o2, y2 = k2, _2 = l(), { wrapperRef: g2, isFocused: B2, handleFocus: D2, handleBlur: F2 } = f(_2), { checkboxGroupDisabled: M2, isCheckboxGroup: R2, isCheckboxSelected: K2, handleCheckboxSelect: q } = (() => {
|
|
8
8
|
const o3 = e(G, void 0), l2 = a(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, watchEffect as l, watch as s, provide as o, createElementBlock as c, openBlock as t, renderSlot as i, inject as m, computed as d, normalizeClass as n, createElementVNode as p, withDirectives as u, createTextVNode as r, toDisplayString as v, createVNode as _, vShow as h } from "vue";
|
|
2
|
-
import { d as f, _ as C, w as V } from "./utils-
|
|
3
|
-
import { M as b } from "./mc-icon-
|
|
2
|
+
import { d as f, _ as C, w as V } from "./utils-CLh5FYFN.js";
|
|
3
|
+
import { M as b } from "./mc-icon-B5Q0Yuwp.js";
|
|
4
4
|
const g = Symbol("COLLAPSE_CONTEXT"), I = "McCollapse", M = { class: "mc-collapse" }, k = C(e({ name: I, __name: "mc-collapse", props: { modelValue: {}, accordion: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: m2 }) {
|
|
5
5
|
const d2 = a(e2.modelValue), n2 = m2;
|
|
6
6
|
l(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as t, createElementBlock as s, openBlock as o, renderSlot as e, createVNode as a, createElementVNode as c, toDisplayString as r } from "vue";
|
|
2
|
-
import { M as p } from "./mc-icon-
|
|
3
|
-
import { t as m } from "./mc-toast-
|
|
4
|
-
import { _ as l, w as i } from "./utils-
|
|
2
|
+
import { M as p } from "./mc-icon-B5Q0Yuwp.js";
|
|
3
|
+
import { t as m } from "./mc-toast-BTtU1srD.js";
|
|
4
|
+
import { _ as l, w as i } from "./utils-CLh5FYFN.js";
|
|
5
5
|
const u = { class: "mc-copy" }, n = { class: "mc-copy-text" }, x = i(l(t({ name: "McCopy", __name: "mc-copy", props: { text: {}, showToast: { type: Boolean, default: false }, toastSuccessText: { default: "copy succeed" }, toastErrorText: { default: "copy failed" }, manual: { type: Boolean, default: false } }, emits: ["copy", "success", "error"], setup(t2, { emit: l2 }) {
|
|
6
6
|
const i2 = t2, x2 = l2, y = async () => {
|
|
7
7
|
if (i2.text) if (i2.manual) x2("copy", i2.text);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, computed as a, watch as t, createElementBlock as u, createCommentVNode as n, openBlock as m, normalizeClass as o, toDisplayString as c } from "vue";
|
|
2
|
-
import { _ as s, w as l } from "./utils-
|
|
2
|
+
import { _ as s, w as l } from "./utils-CLh5FYFN.js";
|
|
3
3
|
const r = { key: 0, class: "mc-count-number" }, d = l(s(e({ name: "McCount", __name: "mc-count", props: { value: {}, theme: { default: "red" }, type: { default: "medium" }, hiddenZero: { type: Boolean, default: true }, max: { default: 99 } }, emits: ["change"], setup(e2, { emit: s2 }) {
|
|
4
4
|
const l2 = e2, d2 = s2, i = a(() => {
|
|
5
5
|
const e3 = Number(l2.value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as c, createElementBlock as r, openBlock as n, normalizeStyle as s, unref as e, createElementVNode as i, renderSlot as t, normalizeClass as o, toDisplayString as l } from "vue";
|
|
2
|
-
import { a, b as u } from "./hooks-
|
|
3
|
-
import { _ as d, w as m } from "./utils-
|
|
2
|
+
import { a, b as u } from "./hooks-CKji3WSf.js";
|
|
3
|
+
import { _ as d, w as m } from "./utils-CLh5FYFN.js";
|
|
4
4
|
const y = { class: "mc-currency-icon-img-wrapper" }, p = ["src", "alt"], h = { class: "mc-currency-icon-label" }, f = { class: "mc-currency-icon-text" }, g = m(d(c({ name: "McCurrencyIcon", __name: "mc-currency-icon", props: { currency: {}, direction: { default: "horizontal" }, desc: {}, cdnUrl: {}, suffix: { default: "svg" }, height: {}, width: {} }, setup(c2) {
|
|
5
5
|
const d2 = c2, { generateFileUrl: m2 } = a(d2.cdnUrl, d2.suffix), { width: g2, height: v } = u();
|
|
6
6
|
return (c3, a2) => (n(), r("div", { class: "mc-currency-icon", style: s({ width: e(g2), height: e(v) }) }, [i("div", y, [t(c3.$slots, "icon", {}, () => [i("img", { src: e(m2)(c3.currency), class: "mc-currency-icon-img", alt: `${c3.currency}-icon` }, null, 8, p)], true)]), i("div", { class: o(["mc-currency-icon-content", [`mc-currency-icon-content-${c3.direction}`]]) }, [i("div", h, [t(c3.$slots, "default", {}, () => [i("span", null, l(c3.currency), 1)], true)]), i("div", f, [t(c3.$slots, "desc", {}, () => [i("span", null, l(c3.desc), 1)], true)])], 2)], 4));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createElementBlock as e, openBlock as a, normalizeClass as s } from "vue";
|
|
2
|
-
import { _ as d, w as m } from "./utils-
|
|
2
|
+
import { _ as d, w as m } from "./utils-CLh5FYFN.js";
|
|
3
3
|
const r = d(i({ name: "McDivider", __name: "mc-divider", props: { size: { default: "small" }, emphasis: { default: "minimal" }, orientation: { default: "horizontal" } }, setup: (i2) => (i3, d2) => (a(), e("div", { class: s(["mc-divider", [`mc-divider-${i3.orientation}`, `mc-divider-${i3.size}`, `mc-divider-${i3.emphasis}`]]) }, null, 2)) }), [["__scopeId", "data-v-6b53d9f6"]]), t = m(r);
|
|
4
4
|
export {
|
|
5
5
|
r as M,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, watch as t, createElementBlock as a, createCommentVNode as r, openBlock as s, createBlock as l, Teleport as d, createVNode as i, Transition as m, withCtx as c, normalizeClass as f, createElementVNode as u, renderSlot as n, nextTick as p } from "vue";
|
|
2
|
-
import { M as v } from "./mc-overlay-
|
|
3
|
-
import {
|
|
4
|
-
import { M as h } from "./mc-footer-
|
|
5
|
-
import { c as y } from "./hooks-
|
|
6
|
-
import { _, w as $ } from "./utils-
|
|
2
|
+
import { M as v } from "./mc-overlay-BdSi6WvG.js";
|
|
3
|
+
import { _ as w } from "./mc-modal-header-Cv9kHtqq.js";
|
|
4
|
+
import { M as h } from "./mc-footer-CRvVry3_.js";
|
|
5
|
+
import { c as y } from "./hooks-CKji3WSf.js";
|
|
6
|
+
import { _, w as $ } from "./utils-CLh5FYFN.js";
|
|
7
7
|
const g = { key: 0, class: "mc-drawer-container" }, b = { class: "mc-drawer-header" }, k = { class: "mc-drawer-content-wrapper" }, B = { class: "mc-drawer-content" }, x = $(_(e({ name: "McDrawer", __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: _2, emit: $2 }) {
|
|
8
8
|
const x2 = e2, C = o(false), j = o(false), M = o(false), V = async () => {
|
|
9
9
|
C.value = true, j.value = true, await p(), M.value = true;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as t, ref as o, createElementBlock as e, openBlock as s, normalizeStyle as r, normalizeClass as c, createCommentVNode as i, createElementVNode as d, renderSlot as a } from "vue";
|
|
2
|
-
import { _ as l, w as p } from "./utils-
|
|
2
|
+
import { _ as l, w as p } from "./utils-CLh5FYFN.js";
|
|
3
3
|
const f = { key: 0, class: "mc-footer-content" }, h = { class: "mc-footer-bottom" }, m = { class: "mc-footer-bottom-content" }, n = { class: "mc-footer-left" }, v = { class: "mc-footer-right" }, w = { class: "mc-footer-right-button-group" }, g = l(t({ name: "McFooter", __name: "mc-footer", props: { width: {}, height: {}, wrapperWidth: {}, showborder: { type: Boolean, default: true } }, setup(t2, { expose: l2 }) {
|
|
4
4
|
const p2 = o();
|
|
5
5
|
return l2({ ref: p2 }), (t3, o2) => (s(), e("section", { class: c(["mc-footer", { "mc-footer-border": t3.showborder }]), style: r({ width: t3.width, height: t3.height }), ref_key: "_ref", ref: p2 }, [t3.$slots.desc ? (s(), e("div", f, [d("div", { class: "mc-footer-wrapper", style: r({ width: t3.wrapperWidth }) }, [a(t3.$slots, "desc", {}, void 0, true)], 4)])) : i("", true), d("div", h, [d("div", { class: "mc-footer-wrapper", style: r({ width: t3.wrapperWidth }) }, [d("div", m, [d("div", n, [a(t3.$slots, "left", {}, void 0, true)]), d("div", v, [a(t3.$slots, "right", {}, () => [d("div", w, [a(t3.$slots, "right-button-group", {}, void 0, true)])], true)])])], 4)])], 6));
|