mc-plus 1.0.64 → 1.0.66
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-CGzJKvr_.js → hooks-DghKpOue.js} +4 -3
- package/dist/es/index.js +38 -38
- package/dist/es/{mc-alert-message-CinXZ0tM.js → mc-alert-message-D5xabGCX.js} +2 -2
- package/dist/es/{mc-button-jjZ1cFJx.js → mc-button-B-2mob1r.js} +3 -3
- package/dist/es/{mc-checkbox-DBTBERJQ.js → mc-checkbox-iP5RHA6x.js} +4 -4
- package/dist/es/{mc-collapse-DUOKmqfY.js → mc-collapse-C2oWrpLp.js} +2 -2
- package/dist/es/{mc-copy-BcM4lyRW.js → mc-copy-Baim9vBo.js} +3 -3
- package/dist/es/{mc-count-CMSVLQR8.js → mc-count-BqyWuWKT.js} +1 -1
- package/dist/es/{mc-currency-icon-jT9o6zvb.js → mc-currency-icon-Do56_Rk9.js} +2 -2
- package/dist/es/{mc-divider-CvAVIbPj.js → mc-divider-BSXy8GNr.js} +1 -1
- package/dist/es/{mc-drawer-CNeHLu-v.js → mc-drawer-CeCN5c5X.js} +5 -5
- package/dist/es/{mc-footer-DTmWsLYW.js → mc-footer-DjlFAv9f.js} +1 -1
- package/dist/es/{mc-form-DDfiOG9s.js → mc-form-Bf0120BQ.js} +4 -4
- package/dist/es/{mc-icon-IbJYufG-.js → mc-icon-B_dAlj4r.js} +9 -8
- package/dist/es/{mc-input-CqBzOAz5.js → mc-input-C5MU4U2V.js} +5 -5
- package/dist/es/{mc-lightbox-BsUeQpwu.js → mc-lightbox-8zpx4nrJ.js} +5 -5
- package/dist/es/{mc-loading-CXadQqQf.js → mc-loading-C311OVMI.js} +6 -5
- package/dist/es/{mc-modal-header-5_k9U4WX.js → mc-modal-header-CMNRK0Rb.js} +3 -3
- package/dist/es/{mc-otp-DWzv8zKs.js → mc-otp-BE08aHEv.js} +5 -5
- package/dist/es/{mc-overlay-D3L83lMC.js → mc-overlay-BHxTmf2H.js} +1 -1
- package/dist/es/{mc-popper-B08tDa9O.js → mc-popper-B8qMu2va.js} +3 -3
- package/dist/es/mc-progress-bar-JF0Frass.js +29 -0
- package/dist/es/{mc-radio-BcfwMaZZ.js → mc-radio-BPBdgFH4.js} +4 -4
- package/dist/es/{mc-reset-B-jk5Wxa.js → mc-reset-hnnz6SoG.js} +2 -2
- package/dist/es/{mc-secondary-menu-CLZVBsLM.js → mc-secondary-menu-2eW8se9v.js} +2 -2
- package/dist/es/{mc-select-DZzvR6r3.js → mc-select-BMYoc5oT.js} +92 -92
- package/dist/es/{mc-status-C2V51mhO.js → mc-status-Bbu0MyzD.js} +2 -2
- package/dist/es/{mc-step-8_bbfcnk.js → mc-step-DKfRXGSk.js} +5 -5
- package/dist/es/{mc-success-icon-BiN_K4dV.js → mc-success-icon-Cj-5Hgzy.js} +1 -1
- package/dist/es/{mc-switch-3iWF558F.js → mc-switch-fuT3qt1P.js} +3 -3
- package/dist/es/mc-tab-D_pxBB3w.js +641 -0
- package/dist/es/{mc-tag-BBOwBzDa.js → mc-tag-jYhZ-J2S.js} +2 -2
- package/dist/es/{mc-textarea-DJcRz9YP.js → mc-textarea-DtsztsBR.js} +3 -3
- package/dist/es/{mc-title-DR3kaXNt.js → mc-title-C_lOz0mp.js} +3 -3
- package/dist/es/{mc-toast-QxGn_8nt.js → mc-toast-DB9Y1bvS.js} +2 -2
- package/dist/es/{mc-tooltip-D31bUUmR.js → mc-tooltip-4mxkVOGx.js} +3 -3
- package/dist/es/mc-upload-Cl3mW0Hm.js +130 -0
- package/dist/es/theme/mc-progress-bar.css +1 -1
- package/dist/es/theme/mc-select.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/es/theme/mc-upload.css +1 -1
- package/dist/es/utils-BDbMLK9w.js +36 -0
- package/dist/es/{vendor-COcyTY4s.js → vendor-CExPGg1i.js} +276 -260
- package/dist/index.css +1 -1
- package/dist/types/components/mc-icon-plus/types.d.ts +1 -1
- package/dist/types/components/mc-progress-bar/index.d.ts +3 -0
- package/dist/types/components/mc-progress-bar/types.d.ts +1 -0
- package/dist/types/components/mc-select-plus/index.d.ts +3 -0
- package/dist/types/components/mc-select-plus/types/mc-select.d.ts +1 -0
- package/dist/types/components/mc-table-plus/constant.d.ts +6 -6
- package/dist/types/components/mc-table-plus/hooks/index.d.ts +6 -0
- package/dist/types/components/mc-table-plus/hooks/useColumns.d.ts +43 -0
- package/dist/types/components/mc-table-plus/hooks/useExpand.d.ts +9 -0
- package/dist/types/components/mc-table-plus/hooks/useScroll.d.ts +6 -0
- package/dist/types/components/mc-table-plus/hooks/useSectionWidth.d.ts +15 -0
- package/dist/types/components/mc-table-plus/hooks/useSort.d.ts +15 -0
- package/dist/types/components/mc-table-plus/hooks/useTableCell.d.ts +23 -0
- package/dist/types/components/mc-table-plus/hooks/useTableContext.d.ts +21 -11
- package/dist/types/components/mc-table-plus/index.d.ts +5 -1
- package/dist/types/components/mc-table-plus/types/index.d.ts +3 -7
- package/dist/types/components/mc-table-plus/types/mc-table-body.d.ts +1 -2
- package/dist/types/components/mc-table-plus/types/mc-table-cell.d.ts +20 -0
- package/dist/types/components/mc-table-plus/types/mc-table-column.d.ts +1 -2
- package/dist/types/components/mc-table-plus/types/mc-table-row.d.ts +8 -0
- package/dist/types/components/mc-table-plus/types/mc-table-sort.d.ts +1 -1
- package/dist/types/components/mc-table-plus/types/mc-table.d.ts +23 -16
- package/dist/types/components/mc-table-plus/utils/generateColumns.d.ts +2 -2
- package/dist/types/components/mc-table-plus/utils/getNextSort.d.ts +3 -0
- package/dist/types/components/mc-table-plus/utils/index.d.ts +1 -0
- package/dist/types/components/mc-upload/hooks/useLang.d.ts +1 -0
- package/dist/types/components/mc-upload/index.d.ts +11 -1
- package/dist/types/components/mc-upload/lang/en.d.ts +1 -0
- package/dist/types/components/mc-upload/lang/zh.d.ts +1 -0
- package/dist/types/components/mc-upload/types/mc-upload-dropzone.d.ts +2 -0
- package/dist/types/hooks/useProp.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/numberToPx.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/mc-progress-bar-XvvNZ-ef.js +0 -29
- package/dist/es/mc-tab-Bpuz-FF0.js +0 -582
- package/dist/es/mc-upload-Dem3mTAo.js +0 -125
- package/dist/es/utils-CPLhakO-.js +0 -35
- package/dist/types/components/mc-table-plus/types/mc-table-body-cell.d.ts +0 -8
- package/dist/types/components/mc-table-plus/types/mc-table-content.d.ts +0 -4
- package/dist/types/components/mc-table-plus/types/mc-table-expand-cell.d.ts +0 -5
- package/dist/types/components/mc-table-plus/types/mc-table-header-cell.d.ts +0 -5
- package/dist/types/components/mc-table-plus/types/mc-table-header.d.ts +0 -4
- package/dist/types/components/mc-table-plus/types/mc-table-tr.d.ts +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, a as r, h as t, t as n } from "./vendor-
|
|
1
|
+
import { i as e, a as r, h as t, t as n } from "./vendor-CExPGg1i.js";
|
|
2
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-
|
|
3
|
+
import { g } from "./utils-BDbMLK9w.js";
|
|
4
4
|
function m(e2, r2, t2) {
|
|
5
5
|
a(e2) ? v(e2, (e3, n2) => {
|
|
6
6
|
n2 == null ? void 0 : n2.removeEventListener(r2, t2), e3 == null ? void 0 : e3.addEventListener(r2, t2);
|
|
@@ -119,6 +119,7 @@ export {
|
|
|
119
119
|
$ as f,
|
|
120
120
|
D as g,
|
|
121
121
|
p as h,
|
|
122
|
-
|
|
122
|
+
m as i,
|
|
123
|
+
x as j,
|
|
123
124
|
E as u
|
|
124
125
|
};
|
package/dist/es/index.js
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { p as s, m } from "./utils-
|
|
2
|
-
import { M as o } from "./mc-alert-message-
|
|
3
|
-
import { a as r } from "./mc-button-
|
|
4
|
-
import { a as c, b as p } from "./mc-checkbox-
|
|
5
|
-
import { M as i } from "./mc-collapse-
|
|
6
|
-
import { a } from "./mc-collapse-
|
|
7
|
-
import { M as j } from "./mc-copy-
|
|
8
|
-
import { M } from "./mc-count-
|
|
9
|
-
import { M as l } from "./mc-currency-icon-
|
|
10
|
-
import { a as b } from "./mc-divider-
|
|
11
|
-
import { M as n } from "./mc-drawer-
|
|
12
|
-
import { a as d } from "./mc-footer-
|
|
13
|
-
import { M as x, b as g } from "./mc-form-
|
|
14
|
-
import {
|
|
15
|
-
import { M as w, a as k } from "./mc-input-
|
|
16
|
-
import { M as v } from "./mc-lightbox-
|
|
17
|
-
import {
|
|
18
|
-
import { M as C } from "./mc-modal-header-
|
|
19
|
-
import { M as S } from "./mc-otp-
|
|
20
|
-
import { a as T } from "./mc-popper-
|
|
21
|
-
import { a as q } from "./mc-progress-bar-
|
|
22
|
-
import { M as z, a as B } from "./mc-radio-
|
|
23
|
-
import { M as I } from "./mc-reset-
|
|
24
|
-
import { M as P } from "./mc-secondary-menu-
|
|
25
|
-
import { M as D, a as E, b as F, c as G, d as H, e as J, f as K } from "./mc-select-
|
|
26
|
-
import { M as L } from "./mc-status-
|
|
27
|
-
import { M as N, a as O, b as Q, c as R, d as U, e as V, f as W } from "./mc-step-
|
|
28
|
-
import { a as X } from "./mc-success-icon-
|
|
29
|
-
import { M as Y } from "./mc-switch-
|
|
30
|
-
import { M as Z, a as $, b as _, c as ss, d as ms } from "./mc-tab-
|
|
31
|
-
import { u, e, f } from "./mc-tab-
|
|
32
|
-
import { M as as } from "./mc-tag-
|
|
33
|
-
import { M as os } from "./mc-textarea-
|
|
34
|
-
import { M as rs, a as ts } from "./mc-title-
|
|
35
|
-
import { M as cs } from "./mc-toast-
|
|
36
|
-
import { t } from "./mc-toast-
|
|
37
|
-
import { M as ps } from "./mc-tooltip-
|
|
38
|
-
import { M as is, a as fs, b as es } from "./mc-upload-
|
|
1
|
+
import { p as s, m } from "./utils-BDbMLK9w.js";
|
|
2
|
+
import { M as o } from "./mc-alert-message-D5xabGCX.js";
|
|
3
|
+
import { a as r } from "./mc-button-B-2mob1r.js";
|
|
4
|
+
import { a as c, b as p } from "./mc-checkbox-iP5RHA6x.js";
|
|
5
|
+
import { M as i } from "./mc-collapse-C2oWrpLp.js";
|
|
6
|
+
import { a } from "./mc-collapse-C2oWrpLp.js";
|
|
7
|
+
import { M as j } from "./mc-copy-Baim9vBo.js";
|
|
8
|
+
import { M } from "./mc-count-BqyWuWKT.js";
|
|
9
|
+
import { M as l } from "./mc-currency-icon-Do56_Rk9.js";
|
|
10
|
+
import { a as b } from "./mc-divider-BSXy8GNr.js";
|
|
11
|
+
import { M as n } from "./mc-drawer-CeCN5c5X.js";
|
|
12
|
+
import { a as d } from "./mc-footer-DjlFAv9f.js";
|
|
13
|
+
import { M as x, b as g } from "./mc-form-Bf0120BQ.js";
|
|
14
|
+
import { b as h, c as y } from "./mc-icon-B_dAlj4r.js";
|
|
15
|
+
import { M as w, a as k } from "./mc-input-C5MU4U2V.js";
|
|
16
|
+
import { M as v } from "./mc-lightbox-8zpx4nrJ.js";
|
|
17
|
+
import { a as A } from "./mc-loading-C311OVMI.js";
|
|
18
|
+
import { M as C } from "./mc-modal-header-CMNRK0Rb.js";
|
|
19
|
+
import { M as S } from "./mc-otp-BE08aHEv.js";
|
|
20
|
+
import { a as T } from "./mc-popper-B8qMu2va.js";
|
|
21
|
+
import { a as q } from "./mc-progress-bar-JF0Frass.js";
|
|
22
|
+
import { M as z, a as B } from "./mc-radio-BPBdgFH4.js";
|
|
23
|
+
import { M as I } from "./mc-reset-hnnz6SoG.js";
|
|
24
|
+
import { M as P } from "./mc-secondary-menu-2eW8se9v.js";
|
|
25
|
+
import { M as D, a as E, b as F, c as G, d as H, e as J, f as K } from "./mc-select-BMYoc5oT.js";
|
|
26
|
+
import { M as L } from "./mc-status-Bbu0MyzD.js";
|
|
27
|
+
import { M as N, a as O, b as Q, c as R, d as U, e as V, f as W } from "./mc-step-DKfRXGSk.js";
|
|
28
|
+
import { a as X } from "./mc-success-icon-Cj-5Hgzy.js";
|
|
29
|
+
import { M as Y } from "./mc-switch-fuT3qt1P.js";
|
|
30
|
+
import { M as Z, a as $, b as _, c as ss, d as ms } from "./mc-tab-D_pxBB3w.js";
|
|
31
|
+
import { u, e, f } from "./mc-tab-D_pxBB3w.js";
|
|
32
|
+
import { M as as } from "./mc-tag-jYhZ-J2S.js";
|
|
33
|
+
import { M as os } from "./mc-textarea-DtsztsBR.js";
|
|
34
|
+
import { M as rs, a as ts } from "./mc-title-C_lOz0mp.js";
|
|
35
|
+
import { M as cs } from "./mc-toast-DB9Y1bvS.js";
|
|
36
|
+
import { t } from "./mc-toast-DB9Y1bvS.js";
|
|
37
|
+
import { M as ps } from "./mc-tooltip-4mxkVOGx.js";
|
|
38
|
+
import { M as is, a as fs, b as es } from "./mc-upload-Cl3mW0Hm.js";
|
|
39
39
|
const js = [o, r, c, p, i, j, M, l, b, n, is, d, x, g, h, y, w, k, v, A, C, S, T, q, z, B, I, P, D, E, F, G, H, J, K, N, O, Q, R, U, V, W, L, X, Y, Z, $, as, _, ss, ms, os, rs, ts, cs, ps, fs, es];
|
|
40
40
|
s();
|
|
41
41
|
const Ms = m(js);
|
|
@@ -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-B_dAlj4r.js";
|
|
3
|
+
import { _ as x, w as _ } from "./utils-BDbMLK9w.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-B_dAlj4r.js";
|
|
3
|
+
import { t as h } from "./vendor-CExPGg1i.js";
|
|
4
|
+
import { _ as b, w as g } from "./utils-BDbMLK9w.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-DghKpOue.js";
|
|
3
|
+
import { u as v, a as y } from "./mc-form-Bf0120BQ.js";
|
|
4
|
+
import { a as V, b as C, c as S, d as _ } from "./vendor-CExPGg1i.js";
|
|
5
|
+
import { _ as g, w as B } from "./utils-BDbMLK9w.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-BDbMLK9w.js";
|
|
3
|
+
import { M as b } from "./mc-icon-B_dAlj4r.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-B_dAlj4r.js";
|
|
3
|
+
import { t as m } from "./mc-toast-DB9Y1bvS.js";
|
|
4
|
+
import { _ as l, w as i } from "./utils-BDbMLK9w.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-BDbMLK9w.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-DghKpOue.js";
|
|
3
|
+
import { _ as d, w as m } from "./utils-BDbMLK9w.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-BDbMLK9w.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 { _ as w } from "./mc-modal-header-
|
|
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-BHxTmf2H.js";
|
|
3
|
+
import { _ as w } from "./mc-modal-header-CMNRK0Rb.js";
|
|
4
|
+
import { M as h } from "./mc-footer-DjlFAv9f.js";
|
|
5
|
+
import { c as y } from "./hooks-DghKpOue.js";
|
|
6
|
+
import { _, w as $ } from "./utils-BDbMLK9w.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-BDbMLK9w.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));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { onMounted as e, onBeforeUnmount as r, computed as a, inject as t, watch as o, defineComponent as l, reactive as s, toRefs as i, provide as d, createElementBlock as n, openBlock as c, createElementVNode as m, withModifiers as u, renderSlot as v, ref as p, onUnmounted as f, normalizeClass as b, createCommentVNode as h, toDisplayString as I, createVNode as y, createTextVNode as g, Transition as x, withCtx as _, nextTick as j } from "vue";
|
|
2
|
-
import { d as q, e as F } from "./hooks-
|
|
3
|
-
import { a as V, k as w, e as P, f as S, s as $, g as D, b as k, c as B, m as E, j as M, l as z, n as C, o as T, i as A } from "./vendor-
|
|
4
|
-
import { a as O, _ as R, w as G } from "./utils-
|
|
2
|
+
import { d as q, e as F } from "./hooks-DghKpOue.js";
|
|
3
|
+
import { a as V, k as w, e as P, f as S, s as $, g as D, b as k, c as B, m as E, j as M, l as z, n as C, o as T, i as A } from "./vendor-CExPGg1i.js";
|
|
4
|
+
import { a as O, _ as R, w as G } from "./utils-BDbMLK9w.js";
|
|
5
5
|
import H from "async-validator";
|
|
6
|
-
import { _ as J } from "./mc-tooltip-
|
|
6
|
+
import { _ as J } from "./mc-tooltip-4mxkVOGx.js";
|
|
7
7
|
const K = Symbol("formContext"), L = Symbol("formItemContext"), N = ({ externalId: o2, externalDisabled: l2, disableValidation: s2 } = {}) => {
|
|
8
8
|
const i2 = F("disableValidation"), d2 = a(() => !!i2.value || !!(s2 == null ? void 0 : s2.value)), n2 = t(K, void 0), c2 = d2.value ? void 0 : t(L, void 0), m2 = c2 ? (({ formItem: a2, externalId: t2 }) => {
|
|
9
9
|
const o3 = q(t2 == null ? void 0 : t2.value);
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { defineComponent as e, ref as s, createElementBlock as c, openBlock as o, normalizeStyle as i, createElementVNode as t, normalizeClass as l, computed as a } from "vue";
|
|
2
|
-
import { _ as n, w as r } from "./utils-
|
|
3
|
-
import { b as m } from "./hooks-
|
|
2
|
+
import { _ as n, w as r } from "./utils-BDbMLK9w.js";
|
|
3
|
+
import { b as m } from "./hooks-DghKpOue.js";
|
|
4
4
|
const p = n(e({ name: "McIcon", __name: "mc-icon", props: { name: {}, size: { default: 24 }, color: {} }, emits: ["click"], setup(e2, { expose: a2, emit: n2 }) {
|
|
5
5
|
const r2 = n2, m2 = s();
|
|
6
6
|
return a2({ ref: m2 }), (e3, s2) => (o(), c("span", { class: "mc-icon", style: i({ fontSize: `${e3.size}px`, width: `${e3.size}px`, height: `${e3.size}px`, color: e3.color }) }, [t("i", { ref_key: "_ref", ref: m2, class: l(["mc-iconfont", `mc-icon--${e3.name}`]), onClick: s2[0] || (s2[0] = (e4) => ((e5) => {
|
|
7
7
|
r2("click", e5);
|
|
8
8
|
})(e4)) }, null, 2)], 4));
|
|
9
|
-
} }), [["__scopeId", "data-v-3f56ebd0"]]), u = r(p), f =
|
|
10
|
-
const n2 = e2, r2 = s2, { width: p2, height: u2 } = m(), f2 = a(() => n2.width ? p2.value : `${n2.size}px`),
|
|
9
|
+
} }), [["__scopeId", "data-v-3f56ebd0"]]), u = r(p), f = n(e({ name: "McIconPlus", __name: "mc-icon-plus", props: { name: {}, size: { default: 24 }, width: {}, height: {}, color: {}, cursor: { default: "default" } }, emits: ["click"], setup(e2, { emit: s2 }) {
|
|
10
|
+
const n2 = e2, r2 = s2, { width: p2, height: u2 } = m(), f2 = a(() => n2.width ? p2.value : `${n2.size}px`), h2 = a(() => n2.height ? u2.value : `${n2.size}px`), d = () => {
|
|
11
11
|
r2("click", n2.name);
|
|
12
12
|
};
|
|
13
|
-
return (e3, s3) => (o(), c("span", { class: "mc-icon-plus", style: i({ fontSize: `${e3.size}px`, width: f2.value, height:
|
|
14
|
-
} }), [["__scopeId", "data-v-17b36944"]]));
|
|
13
|
+
return (e3, s3) => (o(), c("span", { class: "mc-icon-plus", style: i({ fontSize: `${e3.size}px`, width: f2.value, height: h2.value, color: e3.color, cursor: e3.cursor }), onClick: d }, [t("i", { class: l(["mc-iconfont-plus", `mc-icon-plus-${e3.name}`]) }, null, 2)], 4));
|
|
14
|
+
} }), [["__scopeId", "data-v-17b36944"]]), h = r(f);
|
|
15
15
|
export {
|
|
16
16
|
p as M,
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
f as a,
|
|
18
|
+
u as b,
|
|
19
|
+
h as c
|
|
19
20
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as e, computed as t, inject as a, watch as u, defineComponent as s, onMounted as l, createElementBlock as i, openBlock as n, normalizeStyle as o, normalizeClass as r, unref as p, createCommentVNode as d, createElementVNode as c, renderSlot as f, createBlock as v, withKeys as m, createVNode as x, Fragment as y, nextTick as g, provide as I } from "vue";
|
|
2
|
-
import { e as h, u as b, f as _ } from "./hooks-
|
|
3
|
-
import { M as G } from "./mc-icon-
|
|
4
|
-
import { u as w, a as A } from "./mc-form-
|
|
5
|
-
import { b as V, p as S, q as $, r as k, c as E, a as B } from "./vendor-
|
|
6
|
-
import { _ as F, w as C } from "./utils-
|
|
2
|
+
import { e as h, u as b, f as _ } from "./hooks-DghKpOue.js";
|
|
3
|
+
import { M as G } from "./mc-icon-B_dAlj4r.js";
|
|
4
|
+
import { u as w, a as A } from "./mc-form-Bf0120BQ.js";
|
|
5
|
+
import { b as V, p as S, q as $, r as k, c as E, a as B } from "./vendor-CExPGg1i.js";
|
|
6
|
+
import { _ as F, w as C } from "./utils-BDbMLK9w.js";
|
|
7
7
|
const j = Symbol("InputGroupContext"), P = (e2) => {
|
|
8
8
|
const s2 = a(j, void 0);
|
|
9
9
|
if (!s2) return;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, watch as t, nextTick as l, createElementBlock as a, createCommentVNode as i, openBlock as s, createBlock as r, Teleport as d, createVNode as f, Transition as m, withCtx as n, normalizeClass as u, createElementVNode as c, renderSlot as h, normalizeStyle as p } from "vue";
|
|
2
|
-
import { M as v } from "./mc-overlay-
|
|
3
|
-
import { _ as g } from "./mc-modal-header-
|
|
4
|
-
import { M as b } from "./mc-footer-
|
|
5
|
-
import { g as x, c as y } from "./hooks-
|
|
6
|
-
import { _, w } from "./utils-
|
|
2
|
+
import { M as v } from "./mc-overlay-BHxTmf2H.js";
|
|
3
|
+
import { _ as g } from "./mc-modal-header-CMNRK0Rb.js";
|
|
4
|
+
import { M as b } from "./mc-footer-DjlFAv9f.js";
|
|
5
|
+
import { g as x, c as y } from "./hooks-DghKpOue.js";
|
|
6
|
+
import { _, w } from "./utils-BDbMLK9w.js";
|
|
7
7
|
const k = { key: 0, class: "mc-lightbox-container" }, $ = { class: "mc-lightbox-header" }, B = { key: 0, class: "mc-lightbox-bottom-padding" }, H = w(_(e({ name: "McLightbox", __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: _2, emit: w2 }) {
|
|
8
8
|
const H2 = e2, C = w2, j = o(), V = o(), M = o(), R = o(), z = o(false), F = o(false), S = o(false), I = () => {
|
|
9
9
|
H2.maskClosable && A();
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineComponent as l, computed as s, createElementBlock as a, openBlock as i, normalizeClass as e, createCommentVNode as o, renderSlot as n, createElementVNode as d, createVNode as t, toDisplayString as c } from "vue";
|
|
2
|
-
import { M as m } from "./mc-icon-
|
|
3
|
-
import { _ as p, w as u } from "./utils-
|
|
4
|
-
const g = { key: 0, class: "mc-loading-pulse" }, r = { key: 1, class: "mc-loading-spin" }, f = { class: "mc-loading-text" }, v =
|
|
2
|
+
import { M as m } from "./mc-icon-B_dAlj4r.js";
|
|
3
|
+
import { _ as p, w as u } from "./utils-BDbMLK9w.js";
|
|
4
|
+
const g = { key: 0, class: "mc-loading-pulse" }, r = { key: 1, class: "mc-loading-spin" }, f = { class: "mc-loading-text" }, v = p(l({ name: "McLoading", __name: "mc-loading", props: { loading: { type: Boolean }, loadingText: {}, size: { default: "medium" }, type: { default: "spin" } }, setup(l2) {
|
|
5
5
|
const p2 = l2, u2 = s(() => "small" === p2.size ? 24 : "medium" === p2.size ? 32 : 64);
|
|
6
6
|
return (l3, s2) => (i(), a("div", { class: e(["mc-loading", [`mc-loading-${l3.size}`, { "mc-loading-active": l3.loading }]]) }, ["pulse" === l3.type ? (i(), a("div", g, s2[0] || (s2[0] = [d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1), d("i", { class: "mc-loading-pulse-dot" }, null, -1)]))) : "spin" === l3.type ? (i(), a("div", r, [t(m, { name: "Loading_Line", size: u2.value }, null, 8, ["size"])])) : o("", true), l3.loadingText || l3.$slots.default ? n(l3.$slots, "default", { key: 2 }, () => [d("p", f, c(l3.loadingText), 1)], true) : o("", true)], 2));
|
|
7
|
-
} }), [["__scopeId", "data-v-5c6aa641"]]));
|
|
7
|
+
} }), [["__scopeId", "data-v-5c6aa641"]]), y = u(v);
|
|
8
8
|
export {
|
|
9
|
-
v as M
|
|
9
|
+
v as M,
|
|
10
|
+
y as a
|
|
10
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, createElementBlock as o, openBlock as s, createVNode as t, withCtx as a, renderSlot as l } from "vue";
|
|
2
|
-
import { M as r } from "./mc-icon-
|
|
3
|
-
import { _ as m } from "./mc-title-
|
|
4
|
-
import { _ as d, w as i } from "./utils-
|
|
2
|
+
import { M as r } from "./mc-icon-B_dAlj4r.js";
|
|
3
|
+
import { _ as m } from "./mc-title-C_lOz0mp.js";
|
|
4
|
+
import { _ as d, w as i } from "./utils-BDbMLK9w.js";
|
|
5
5
|
const c = { class: "mc-modal-header" }, n = d(e({ name: "McModalHeader", __name: "mc-modal-header", props: { title: {}, showBorder: { type: Boolean, default: true }, showClose: { type: Boolean, default: true } }, emits: ["close"], setup(e2, { emit: d2 }) {
|
|
6
6
|
const i2 = d2;
|
|
7
7
|
return (e3, d3) => (s(), o("div", c, [t(m, { title: e3.title, "show-border": e3.showBorder, height: "100%", class: "mc-modal-header-title" }, { "tool-bar": a(() => [t(r, { name: "Cross", size: 24, class: "mc-modal-header-close-icon", onClick: d3[0] || (d3[0] = (e4) => i2("close")) })]), default: a(() => [l(e3.$slots, "default", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])]));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ref as e, nextTick as t, defineComponent as o, reactive as a, computed as l, onMounted as n, watch as s, watchEffect as u, createElementBlock as c, openBlock as r, normalizeClass as i, unref as p, createElementVNode as d, createBlock as m, createCommentVNode as v, Fragment as f, renderList as h, withDirectives as g, withModifiers as b, withKeys as y, vModelText as V } from "vue";
|
|
2
|
-
import { M as I } from "./mc-icon-
|
|
3
|
-
import { u as w } from "./mc-form-
|
|
4
|
-
import { h as x, e as j } from "./hooks-
|
|
5
|
-
import { c as F, u as k } from "./vendor-
|
|
6
|
-
import { _, w as D } from "./utils-
|
|
2
|
+
import { M as I } from "./mc-icon-B_dAlj4r.js";
|
|
3
|
+
import { u as w } from "./mc-form-Bf0120BQ.js";
|
|
4
|
+
import { h as x, e as j } from "./hooks-DghKpOue.js";
|
|
5
|
+
import { c as F, u as k } from "./vendor-CExPGg1i.js";
|
|
6
|
+
import { _, w as D } from "./utils-BDbMLK9w.js";
|
|
7
7
|
const M = ["id"], C = { class: "mc-otp-input-list" }, K = ["onClick"], U = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown"], z = D(_(o({ name: "McOtp", __name: "mc-otp", props: { modelValue: {}, disabled: { type: Boolean, default: false }, length: { default: 6 } }, emits: ["update:modelValue", "change"], setup(o2, { emit: _2 }) {
|
|
8
8
|
const D2 = o2, z2 = _2, A = e([]), B = a(new Array(D2.length)), { focusIndex: E, setFocus: O, nextFocus: P, prevFocus: S } = ((o3) => {
|
|
9
9
|
const a2 = e(), l2 = (e2) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, createElementBlock as t, createCommentVNode as s, openBlock as i, normalizeStyle as l, renderSlot as a } from "vue";
|
|
2
|
-
import { _ as r } from "./utils-
|
|
2
|
+
import { _ as r } from "./utils-BDbMLK9w.js";
|
|
3
3
|
const c = r(e({ name: "McOverlay", __name: "mc-overlay", props: { visible: { type: Boolean }, fixed: { type: Boolean, default: true } }, emits: ["click"], setup(e2, { expose: r2, emit: c2 }) {
|
|
4
4
|
const f = c2, p = o();
|
|
5
5
|
return r2({ ref: p }), (e3, o2) => e3.visible ? (i(), t("div", { key: 0, class: "mc-overlay", ref_key: "_ref", ref: p, onClick: o2[0] || (o2[0] = (e4) => ((e5) => {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, computed as a, watch as r, onUnmounted as t, watchEffect as s, createElementBlock as l, openBlock as p, mergeProps as i, toHandlers as u, createElementVNode as c, createVNode as n, renderSlot as v, Transition as d, withCtx as m, createCommentVNode as f, createTextVNode as g, toDisplayString as h } from "vue";
|
|
2
2
|
import { createPopper as w } from "@popperjs/core";
|
|
3
|
-
import { h as k } from "./hooks-
|
|
4
|
-
import { v as _, w as y, c as b } from "./vendor-
|
|
5
|
-
import { _ as N, w as j } from "./utils-
|
|
3
|
+
import { h as k } from "./hooks-DghKpOue.js";
|
|
4
|
+
import { v as _, w as y, c as b } from "./vendor-CExPGg1i.js";
|
|
5
|
+
import { _ as N, w as j } from "./utils-BDbMLK9w.js";
|
|
6
6
|
const T = { key: 0, id: "arrow", class: "mc-popper-arrow", "data-popper-arrow": "" }, x = N(e({ name: "McPopper", __name: "mc-popper", props: { content: {}, trigger: { default: "hover" }, placement: { default: "top" }, disabled: { type: Boolean }, popperOptions: {}, showTimeout: { default: 0 }, hideTimeout: { default: 300 }, transitionName: { default: "fade" }, showArrow: { type: Boolean, default: true } }, emits: ["visible:change", "click:outside"], setup(e2, { expose: N2, emit: j2 }) {
|
|
7
7
|
const x2 = e2, A2 = j2, B = o({}), M = o({}), O = o({}), $ = o(), I = o(), P = o(), q = o(false), z = (e3) => {
|
|
8
8
|
x2.disabled && (e3 = false), q.value = e3, A2("visible:change", e3);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { defineComponent as e, ref as r, watchEffect as s, computed as a, watch as t, useSlots as o, createElementBlock as p, openBlock as m, normalizeStyle as n, unref as i, createElementVNode as l, createCommentVNode as c, renderSlot as u, toDisplayString as d } from "vue";
|
|
2
|
+
import { b as g } from "./hooks-DghKpOue.js";
|
|
3
|
+
import { x as h } from "./vendor-CExPGg1i.js";
|
|
4
|
+
import { _ as f, w as v } from "./utils-BDbMLK9w.js";
|
|
5
|
+
const k = { key: 0, class: "mc-progress-bar-shimmer" }, y = { key: 0, class: "mc-progress-bar-remarks" }, b = f(e({ name: "McProgressBar", __name: "mc-progress-bar", props: { percentage: { default: 0 }, height: { default: "4px" }, width: { default: "100%" }, remarks: {}, showPercentage: { type: Boolean, default: false }, transitionDuration: { default: 300 }, shimmer: { type: Boolean, default: false } }, emits: ["update:percentage", "complete"], setup(e2, { expose: f2, emit: v2 }) {
|
|
6
|
+
const b2 = e2, w2 = v2, { width: _, height: P } = g(), x = r();
|
|
7
|
+
s(() => {
|
|
8
|
+
x.value && x.value.style.setProperty("--border-radius", P.value);
|
|
9
|
+
});
|
|
10
|
+
const B = a(() => {
|
|
11
|
+
const e3 = b2.percentage / 100;
|
|
12
|
+
return e3 > 1 ? 1 : e3 < 0 ? 0 : e3;
|
|
13
|
+
});
|
|
14
|
+
t(() => b2.percentage, (e3) => {
|
|
15
|
+
e3 >= 100 && w2("complete");
|
|
16
|
+
}, { immediate: true });
|
|
17
|
+
const $ = o(), j = a(() => b2.showPercentage || !!b2.remarks || !!$.remarks);
|
|
18
|
+
return f2({ updatePercentage: (e3) => {
|
|
19
|
+
w2("update:percentage", e3);
|
|
20
|
+
}, complete: () => {
|
|
21
|
+
w2("update:percentage", 100), w2("complete");
|
|
22
|
+
}, reset: () => {
|
|
23
|
+
w2("update:percentage", 0);
|
|
24
|
+
} }), (e3, r2) => (m(), p("div", { class: "mc-progress-bar", style: n({ width: i(_) }) }, [l("div", { ref_key: "progressBarRef", ref: x, class: "mc-progress-bar-wrapper", style: n({ width: i(_), height: i(P) }) }, [l("div", { class: "mc-progress-bar-inner", style: n({ transform: `scaleX(${B.value})`, transitionDuration: `${e3.transitionDuration}ms` }) }, null, 4), e3.shimmer ? (m(), p("i", k)) : c("", true)], 4), j.value ? (m(), p("div", y, [u(e3.$slots, "remarks", {}, () => [l("span", null, d(e3.remarks || `${i(h)(100 * B.value)}%`), 1)], true)])) : c("", true)], 4));
|
|
25
|
+
} }), [["__scopeId", "data-v-83b22259"]]), w = v(b);
|
|
26
|
+
export {
|
|
27
|
+
b as M,
|
|
28
|
+
w as a
|
|
29
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, provide as a, computed as l, createElementBlock as o, openBlock as s, unref as r, renderSlot as d, inject as i, ref as t, normalizeClass as c, createElementVNode as m, withModifiers as n, withKeys as p, createCommentVNode as u, createTextVNode as v, toDisplayString as f, createVNode as b, nextTick as h } from "vue";
|
|
2
|
-
import { u as y } from "./mc-form-
|
|
3
|
-
import { _ as k, w as _ } from "./utils-
|
|
4
|
-
import { u as g } from "./hooks-
|
|
5
|
-
import { _ as B } from "./mc-tooltip-
|
|
2
|
+
import { u as y } from "./mc-form-Bf0120BQ.js";
|
|
3
|
+
import { _ as k, w as _ } from "./utils-BDbMLK9w.js";
|
|
4
|
+
import { u as g } from "./hooks-DghKpOue.js";
|
|
5
|
+
import { _ as B } from "./mc-tooltip-4mxkVOGx.js";
|
|
6
6
|
const S = Symbol("selectContext"), V = ["id"], j = k(e({ name: "McRadioGroup", __name: "mc-radio-group", props: { modelValue: { type: [Number, String, Boolean] }, disabled: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: i2 }) {
|
|
7
7
|
const t2 = e2, c2 = i2, { formId: m2 } = y();
|
|
8
8
|
return a(S, { modelValue: l(() => t2.modelValue), disabled: l(() => t2.disabled), handleSelect: (e3) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as a, createElementBlock as s, openBlock as o, createVNode as r, createElementVNode as l, normalizeClass as u, renderSlot as m, createTextVNode as n } from "vue";
|
|
2
|
-
import { a as c, _ as i, w as p } from "./utils-
|
|
3
|
-
import { M as d } from "./mc-icon-
|
|
2
|
+
import { a as c, _ as i, w as p } from "./utils-BDbMLK9w.js";
|
|
3
|
+
import { M as d } from "./mc-icon-B_dAlj4r.js";
|
|
4
4
|
const f = i(e({ name: "mc-reset", __name: "mc-reset", props: { rotate: { type: Boolean, default: false }, autoRotate: { type: Boolean, default: true }, duration: { default: 300 } }, emits: ["reset"], setup(e2, { emit: i2 }) {
|
|
5
5
|
const p2 = e2, f2 = i2, v2 = t(false), _ = a(() => p2.autoRotate ? v2.value : p2.rotate), R = async () => {
|
|
6
6
|
f2("reset"), p2.autoRotate && (v2.value = true, await c(p2.duration), v2.value = false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as e, ref as n, computed as a, onMounted as l, watch as o, createElementBlock as t, openBlock as c, createElementVNode as s, Fragment as m, renderList as r, normalizeClass as u, toDisplayString as d } from "vue";
|
|
2
|
-
import { y as i } from "./vendor-
|
|
3
|
-
import { _ as p, w as v } from "./utils-
|
|
2
|
+
import { y as i } from "./vendor-CExPGg1i.js";
|
|
3
|
+
import { _ as p, w as v } from "./utils-BDbMLK9w.js";
|
|
4
4
|
const y = { class: "mc-secondary-menu" }, f = ["onClick"], h = { class: "mc-secondary-menu-item-content" }, V = v(p(e({ name: "McSecondaryMenu", __name: "mc-secondary-menu", props: { modelValue: {}, options: { default: () => [] } }, emits: ["update:modelValue", "change"], setup(e2, { emit: p2 }) {
|
|
5
5
|
const v2 = e2, V2 = p2, g = n(), _ = n(), k = a(() => {
|
|
6
6
|
const e3 = [];
|