mc-plus 1.0.44 → 1.0.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/es/index.js +44 -42
  2. package/dist/es/{mc-alert-message-BZpbb5sv.js → mc-alert-message-k3WbJimg.js} +4 -4
  3. package/dist/es/{mc-button-b4kqRzGK.js → mc-button-CampFLJM.js} +2 -2
  4. package/dist/es/{mc-checkbox-DQP22ClS.js → mc-checkbox-BE6z-oTd.js} +2 -2
  5. package/dist/es/{mc-collapse-BqK33zh_.js → mc-collapse-CuwnM1Rg.js} +1 -1
  6. package/dist/es/mc-copy-3Xzfbgzj.js +18 -0
  7. package/dist/es/{mc-count-OGgq1Ahg.js → mc-count-D2iCTiNY.js} +3 -3
  8. package/dist/es/{mc-currency-icon-BdFaf9p_.js → mc-currency-icon-BaeyUVW6.js} +3 -3
  9. package/dist/es/{mc-divider-D36guOcH.js → mc-divider-Dh3EqrWH.js} +1 -1
  10. package/dist/es/{mc-drawer-CZJMSWus.js → mc-drawer-Cy0sTuBS.js} +6 -6
  11. package/dist/es/{mc-footer-CBzHShc_.js → mc-footer-Dz_LkIr1.js} +3 -3
  12. package/dist/es/{mc-form-CvzqRvTP.js → mc-form-BVetW0D3.js} +26 -26
  13. package/dist/es/{mc-icon-CYzmEIt1.js → mc-icon-Bn35tPxY.js} +4 -4
  14. package/dist/es/{mc-input-B9iWjZdV.js → mc-input-BSIRw_tD.js} +14 -14
  15. package/dist/es/mc-lightbox-CzbLLoGX.js +37 -0
  16. package/dist/es/{mc-modal-header-ITzlDJiH.js → mc-modal-header-DA2psuc8.js} +6 -6
  17. package/dist/es/{mc-otp-BC2uE9E4.js → mc-otp-CtbAqsbO.js} +20 -20
  18. package/dist/es/{mc-overlay-CDESL1Oz.js → mc-overlay-DKDYwb_d.js} +3 -3
  19. package/dist/es/{mc-popper-B0n6synH.js → mc-popper-DyzLa9K-.js} +3 -3
  20. package/dist/es/mc-radio-CfgR100w.js +30 -0
  21. package/dist/es/mc-reset-BsjrNbuL.js +13 -0
  22. package/dist/es/{mc-select-CrEpo1yo.js → mc-select-Da0ahcnF.js} +41 -41
  23. package/dist/es/{mc-status-BrmOh_H6.js → mc-status-CuUPFNRd.js} +3 -3
  24. package/dist/es/{mc-step-GGyqZsVQ.js → mc-step-3CY4Kf9_.js} +5 -5
  25. package/dist/es/{mc-success-icon-B6bi3uU5.js → mc-success-icon-dQfCW1VX.js} +2 -2
  26. package/dist/es/{mc-switch-BxqWe5pv.js → mc-switch-Cx4P82Lg.js} +4 -4
  27. package/dist/es/{mc-tab-DutWUMQQ.js → mc-tab-D__5HGiw.js} +31 -31
  28. package/dist/es/{mc-tag-CTYC-QDg.js → mc-tag-Cb887jRZ.js} +4 -4
  29. package/dist/es/{mc-title-B7CRDymz.js → mc-title-DUmPOcab.js} +8 -8
  30. package/dist/es/{mc-toast-C_gbineP.js → mc-toast-CtcdFS_6.js} +13 -13
  31. package/dist/es/{mc-tooltip-C4X4YzTB.js → mc-tooltip-ED9vAtDV.js} +4 -4
  32. package/dist/es/{mc-upload-CCZfaQJS.js → mc-upload-CAqNHpvM.js} +8 -8
  33. package/dist/es/theme/mc-alert-message.css +1 -1
  34. package/dist/es/theme/mc-button.css +1 -1
  35. package/dist/es/theme/mc-checkbox.css +1 -1
  36. package/dist/es/theme/mc-copy.css +1 -0
  37. package/dist/es/theme/mc-count.css +1 -1
  38. package/dist/es/theme/mc-currency-icon.css +1 -1
  39. package/dist/es/theme/mc-divider.css +1 -1
  40. package/dist/es/theme/mc-drawer.css +1 -1
  41. package/dist/es/theme/mc-footer.css +1 -1
  42. package/dist/es/theme/mc-form.css +1 -1
  43. package/dist/es/theme/mc-icon.css +1 -1
  44. package/dist/es/theme/mc-input.css +1 -1
  45. package/dist/es/theme/mc-lightbox.css +1 -1
  46. package/dist/es/theme/mc-modal-header.css +1 -1
  47. package/dist/es/theme/mc-otp.css +1 -1
  48. package/dist/es/theme/mc-overlay.css +1 -1
  49. package/dist/es/theme/mc-popper.css +1 -1
  50. package/dist/es/theme/mc-radio.css +1 -1
  51. package/dist/es/theme/mc-reset.css +1 -1
  52. package/dist/es/theme/mc-select.css +1 -1
  53. package/dist/es/theme/mc-status.css +1 -1
  54. package/dist/es/theme/mc-step.css +1 -1
  55. package/dist/es/theme/mc-success-icon.css +1 -1
  56. package/dist/es/theme/mc-switch.css +1 -1
  57. package/dist/es/theme/mc-tab.css +1 -1
  58. package/dist/es/theme/mc-tag.css +1 -1
  59. package/dist/es/theme/mc-title.css +1 -1
  60. package/dist/es/theme/mc-toast.css +1 -1
  61. package/dist/es/theme/mc-tooltip.css +1 -1
  62. package/dist/es/theme/mc-upload.css +1 -1
  63. package/dist/index.css +1 -1
  64. package/dist/types/components/index.d.ts +1 -0
  65. package/dist/types/components/mc-copy/index.d.ts +53 -0
  66. package/dist/types/components/mc-copy/types.d.ts +13 -0
  67. package/dist/types/components/mc-lightbox/index.d.ts +3 -0
  68. package/dist/types/components/mc-lightbox/types.d.ts +1 -0
  69. package/dist/types/components/mc-step-v2/index.d.ts +3 -3
  70. package/dist/umd/index.css +1 -1
  71. package/dist/umd/index.css.gz +0 -0
  72. package/dist/umd/index.umd.cjs +4 -4
  73. package/dist/umd/index.umd.cjs.gz +0 -0
  74. package/package.json +53 -53
  75. package/dist/es/mc-lightbox-7nJhd796.js +0 -37
  76. package/dist/es/mc-radio-2WyzhDJ2.js +0 -30
  77. package/dist/es/mc-reset-C3QHeiH5.js +0 -13
package/dist/es/index.js CHANGED
@@ -1,55 +1,57 @@
1
1
  import { p as s, m } from "./utils-BAYTZ2S4.js";
2
- import { M as o, a as r, b as p } from "./mc-tab-DutWUMQQ.js";
3
- import { u, c, d } from "./mc-tab-DutWUMQQ.js";
4
- import { M as i } from "./mc-collapse-BqK33zh_.js";
5
- import { a } from "./mc-collapse-BqK33zh_.js";
6
- import { a as f, b as j } from "./mc-input-B9iWjZdV.js";
7
- import { M as e, a as l } from "./mc-radio-2WyzhDJ2.js";
8
- import { M, a as b, b as n, c as x, d as g, e as h, f as w } from "./mc-select-CrEpo1yo.js";
9
- import { a as v } from "./mc-button-b4kqRzGK.js";
10
- import { a as k, b as S } from "./mc-checkbox-DQP22ClS.js";
11
- import { M as T, c as q } from "./mc-form-CvzqRvTP.js";
12
- import { a as y } from "./mc-icon-CYzmEIt1.js";
13
- import { a as C } from "./mc-success-icon-B6bi3uU5.js";
14
- import { a as I, b as P } from "./mc-title-B7CRDymz.js";
15
- import { a as z } from "./mc-footer-CBzHShc_.js";
16
- import { a as A } from "./mc-modal-header-ITzlDJiH.js";
17
- import { M as B } from "./mc-drawer-CZJMSWus.js";
18
- import { M as D } from "./mc-reset-C3QHeiH5.js";
19
- import { M as E } from "./mc-divider-D36guOcH.js";
20
- import { M as F } from "./mc-lightbox-7nJhd796.js";
21
- import { M as G, a as H } from "./mc-upload-CCZfaQJS.js";
22
- import { a as J } from "./mc-popper-B0n6synH.js";
23
- import { a as K } from "./mc-tooltip-C4X4YzTB.js";
24
- import { a as L } from "./mc-tag-CTYC-QDg.js";
25
- import { M as N } from "./mc-status-BrmOh_H6.js";
26
- import { M as O } from "./mc-switch-BxqWe5pv.js";
27
- import { M as Q, a as R, b as U, c as V } from "./mc-step-GGyqZsVQ.js";
28
- import { M as W } from "./mc-alert-message-BZpbb5sv.js";
29
- import { M as X } from "./mc-currency-icon-BdFaf9p_.js";
30
- import { M as Y } from "./mc-toast-C_gbineP.js";
31
- import { t } from "./mc-toast-C_gbineP.js";
32
- import { M as Z } from "./mc-otp-BC2uE9E4.js";
33
- import { M as $ } from "./mc-count-OGgq1Ahg.js";
34
- const _ = [v, i, o, e, l, M, b, n, k, S, Y, T, q, f, j, y, C, I, z, P, A, B, r, p, D, E, F, G, H, J, K, L, N, O, Q, R, U, V, W, X, Z, x, g, h, w, $];
2
+ import { M as o, a as r, b as p } from "./mc-tab-D__5HGiw.js";
3
+ import { u, c, d } from "./mc-tab-D__5HGiw.js";
4
+ import { M as i } from "./mc-collapse-CuwnM1Rg.js";
5
+ import { a } from "./mc-collapse-CuwnM1Rg.js";
6
+ import { a as f, b as j } from "./mc-input-BSIRw_tD.js";
7
+ import { M as e, a as l } from "./mc-radio-CfgR100w.js";
8
+ import { M, a as b, b as n, c as x, d as h, e as g, f as w } from "./mc-select-Da0ahcnF.js";
9
+ import { a as y } from "./mc-button-CampFLJM.js";
10
+ import { a as k, b as v } from "./mc-checkbox-BE6z-oTd.js";
11
+ import { M as S, c as T } from "./mc-form-BVetW0D3.js";
12
+ import { a as q } from "./mc-icon-Bn35tPxY.js";
13
+ import { a as C } from "./mc-success-icon-dQfCW1VX.js";
14
+ import { a as I, b as P } from "./mc-title-DUmPOcab.js";
15
+ import { a as z } from "./mc-footer-Dz_LkIr1.js";
16
+ import { a as A } from "./mc-modal-header-DA2psuc8.js";
17
+ import { M as B } from "./mc-drawer-Cy0sTuBS.js";
18
+ import { M as D } from "./mc-reset-BsjrNbuL.js";
19
+ import { M as E } from "./mc-divider-Dh3EqrWH.js";
20
+ import { M as F } from "./mc-lightbox-CzbLLoGX.js";
21
+ import { M as G, a as H } from "./mc-upload-CAqNHpvM.js";
22
+ import { a as J } from "./mc-popper-DyzLa9K-.js";
23
+ import { a as K } from "./mc-tooltip-ED9vAtDV.js";
24
+ import { a as L } from "./mc-tag-Cb887jRZ.js";
25
+ import { M as N } from "./mc-status-CuUPFNRd.js";
26
+ import { M as O } from "./mc-switch-Cx4P82Lg.js";
27
+ import { M as Q, a as R, b as U, c as V } from "./mc-step-3CY4Kf9_.js";
28
+ import { M as W } from "./mc-alert-message-k3WbJimg.js";
29
+ import { M as X } from "./mc-currency-icon-BaeyUVW6.js";
30
+ import { M as Y } from "./mc-toast-CtcdFS_6.js";
31
+ import { t } from "./mc-toast-CtcdFS_6.js";
32
+ import { M as Z } from "./mc-otp-CtbAqsbO.js";
33
+ import { M as $ } from "./mc-count-D2iCTiNY.js";
34
+ import { M as _ } from "./mc-copy-3Xzfbgzj.js";
35
+ const ss = [y, i, o, e, l, M, b, n, k, v, Y, S, T, f, j, q, C, I, z, P, A, B, r, p, D, E, F, G, H, J, K, L, N, O, Q, R, U, V, W, X, Z, x, h, g, w, $, _];
35
36
  s();
36
- const ss = m(_);
37
+ const ms = m(ss);
37
38
  export {
38
39
  W as McAlertMessage,
39
- v as McButton,
40
+ y as McButton,
40
41
  k as McCheckbox,
41
- S as McCheckboxGroup,
42
+ v as McCheckboxGroup,
42
43
  i as McCollapse,
43
44
  a as McCollapseItem,
45
+ _ as McCopy,
44
46
  $ as McCount,
45
47
  X as McCurrencyIcon,
46
48
  E as McDivider,
47
49
  B as McDrawer,
48
50
  H as McFileList,
49
51
  z as McFooter,
50
- T as McForm,
51
- q as McFormItem,
52
- y as McIcon,
52
+ S as McForm,
53
+ T as McFormItem,
54
+ q as McIcon,
53
55
  f as McInput,
54
56
  j as McInputGroup,
55
57
  F as McLightbox,
@@ -61,10 +63,10 @@ export {
61
63
  D as McReset,
62
64
  M as McSelect,
63
65
  b as McSelectGroup,
64
- h as McSelectGroupPlus,
66
+ g as McSelectGroupPlus,
65
67
  w as McSelectMultiOption,
66
68
  n as McSelectOption,
67
- g as McSelectOptionPlus,
69
+ h as McSelectOptionPlus,
68
70
  x as McSelectPlus,
69
71
  N as McStatus,
70
72
  Q as McStep,
@@ -82,7 +84,7 @@ export {
82
84
  Y as McToast,
83
85
  K as McTooltip,
84
86
  G as McUpload,
85
- ss as default,
87
+ ms as default,
86
88
  t as toast,
87
89
  u as usePagination,
88
90
  c as useTableScroll,
@@ -1,7 +1,7 @@
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-CYzmEIt1.js";
2
+ import { M as h } from "./mc-icon-Bn35tPxY.js";
3
3
  import { _ as x, w as _ } from "./utils-BAYTZ2S4.js";
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 }) {
4
+ const b = { class: "mc-alert-message-header" }, k = { 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) {
7
7
  case "success":
@@ -24,8 +24,8 @@ const k = { class: "mc-alert-message-header" }, b = { class: "mc-alert-message-t
24
24
  E.value = true;
25
25
  }, hide: () => {
26
26
  E.value = false;
27
- } }), (e3, a2) => (o(), l("div", { ref_key: "_ref", ref: $, class: n(["mc-alert-message", [`mc-alert-message-${e3.type}`]]), style: c({ width: e3.width, height: e3.height, cursor: e3.expandable ? "pointer" : "default" }), onClick: S }, [r("div", k, [r("div", b, [A.value ? (o(), l("div", { key: 0, class: "mc-alert-message-icon", style: c({ height: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "icon", {}, () => [d(h, { name: H.value, size: 24 }, null, 8, ["name"])], true)], 4)) : i("", true), r("div", { class: "mc-alert-message-title", style: c({ fontSize: j.value ? "18px" : "16px", fontWeight: j.value ? "600" : "400", lineHeight: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "default", {}, () => [u(p(e3.message), 1)], true)], 4)]), e3.closable || e3.expandable ? (o(), l("div", w, [r("div", z, [e3.expandable ? (o(), g(h, { key: 0, name: "Down-Chevron", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-expand", style: c({ transform: D.value ? "rotate(180deg)" : "rotate(0deg)" }) }, null, 8, ["style"])) : i("", true)]), r("div", B, [e3.closable ? (o(), g(h, { key: 0, name: "Cross", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-close", onClick: v(L, ["stop"]) })) : i("", true)])])) : i("", true)]), j.value ? (o(), l("div", C, [d(f, { name: "mc-alert-message-content-transition" }, { default: y(() => [D.value ? (o(), l("div", { key: 0, class: "mc-alert-message-content", style: c({ paddingLeft: A.value ? "48px" : "16px" }) }, [m(e3.$slots, "content", {}, () => [u(p(e3.content), 1)], true)], 4)) : i("", true)]), _: 3 })])) : i("", true)], 6));
28
- } }), [["__scopeId", "data-v-831d8a79"]]));
27
+ } }), (e3, a2) => (o(), l("div", { ref_key: "_ref", ref: $, class: n(["mc-alert-message", [`mc-alert-message-${e3.type}`]]), style: c({ width: e3.width, height: e3.height, cursor: e3.expandable ? "pointer" : "default" }), onClick: S }, [r("div", b, [r("div", k, [A.value ? (o(), l("div", { key: 0, class: "mc-alert-message-icon", style: c({ height: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "icon", {}, () => [d(h, { name: H.value, size: 24 }, null, 8, ["name"])], true)], 4)) : i("", true), r("div", { class: "mc-alert-message-title", style: c({ fontSize: j.value ? "18px" : "16px", fontWeight: j.value ? "600" : "400", lineHeight: j.value ? "30px" : "24px" }) }, [m(e3.$slots, "default", {}, () => [u(p(e3.message), 1)], true)], 4)]), e3.closable || e3.expandable ? (o(), l("div", w, [r("div", z, [e3.expandable ? (o(), g(h, { key: 0, name: "Down-Chevron", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-expand", style: c({ transform: D.value ? "rotate(180deg)" : "rotate(0deg)" }) }, null, 8, ["style"])) : i("", true)]), r("div", B, [e3.closable ? (o(), g(h, { key: 0, name: "Cross", size: 24, class: "mc-alert-message-tool-icon mc-alert-message-tool-icon-close", onClick: v(L, ["stop"]) })) : i("", true)])])) : i("", true)]), j.value ? (o(), l("div", C, [d(f, { name: "mc-alert-message-content-transition" }, { default: y(() => [D.value ? (o(), l("div", { key: 0, class: "mc-alert-message-content", style: c({ paddingLeft: A.value ? "48px" : "16px" }) }, [m(e3.$slots, "content", {}, () => [u(p(e3.content), 1)], true)], 4)) : i("", true)]), _: 3 })])) : i("", true)], 6));
28
+ } }), [["__scopeId", "data-v-b2a3a627"]]));
29
29
  export {
30
30
  I as M
31
31
  };
@@ -1,5 +1,5 @@
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-CYzmEIt1.js";
2
+ import { M as y } from "./mc-icon-Bn35tPxY.js";
3
3
  import { t as h } from "./vendor-BCQeFBhn.js";
4
4
  import { _ as b, w as g } from "./utils-BAYTZ2S4.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 }) {
@@ -7,7 +7,7 @@ const k = ["type", "disabled"], I = { key: 1, class: "loading-icon" }, _ = { cla
7
7
  z2.value || B.value || M("click", e3);
8
8
  }, q = h(L, T.value, { trailing: false });
9
9
  return b2({ ref: $ }), (e3, t2) => (s(), n("button", { ref_key: "_ref", ref: $, style: r(C.value), class: u(["mc-button", { [`mc-button--${e3.type}`]: e3.type, [`mc-button--${e3.size}`]: e3.size, "is-loading": d(z2), "is-disabled": d(B) }]), type: e3.nativeType, disabled: !(!d(B) && !d(z2)) || void 0, onClick: t2[0] || (t2[0] = (t3) => e3.useThrottle ? d(q)(t3) : L(t3)) }, [e3.leftIcon && !d(z2) ? (s(), c(y, { key: 0, name: e3.leftIcon }, null, 8, ["name"])) : m("", true), d(z2) && !d(B) ? (s(), n("span", I, [v(y, { name: "Loading", size: 16 })])) : m("", true), p("div", _, [f(e3.$slots, "default", {}, void 0, true)]), e3.rightIcon ? (s(), c(y, { key: 2, name: e3.rightIcon }, null, 8, ["name"])) : m("", true)], 14, k));
10
- } }), [["__scopeId", "data-v-22e63398"]]), z = g(w);
10
+ } }), [["__scopeId", "data-v-5a3cd884"]]), z = g(w);
11
11
  export {
12
12
  w as M,
13
13
  z as a
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as e, inject as a, computed as l, watch as c, createElementBlock as o, openBlock as t, normalizeStyle as s, normalizeClass as u, createElementVNode as m, toDisplayString as d, provide as n, renderSlot as r } from "vue";
2
- import { u as p, a as i } from "./mc-form-CvzqRvTP.js";
2
+ import { u as p, a as i } from "./mc-form-BVetW0D3.js";
3
3
  import { a as h, b } from "./vendor-BCQeFBhn.js";
4
4
  import { _ as v, w as k } from "./utils-BAYTZ2S4.js";
5
5
  const x = Symbol("CheckboxGroupContext"), _ = ["value", "disabled"], f = { class: "mc-checkbox__wrapper" }, V = { class: "mc-checkbox__content" }, g = { class: "mc-checkbox__content-text" }, y = { class: "mc-checkbox__content-remarks" }, B = v(e({ name: "McCheckbox", __name: "mc-checkbox", props: { modelValue: { type: Boolean }, disabled: { type: Boolean }, content: {}, remarks: {}, partial: { type: Boolean }, formValidate: { type: Boolean, default: true }, value: {} }, emits: ["change", "update:modelValue"], setup(e2, { emit: n2 }) {
@@ -15,7 +15,7 @@ const x = Symbol("CheckboxGroupContext"), _ = ["value", "disabled"], f = { class
15
15
  return c(() => I2.value, () => {
16
16
  r2.formValidate && (v2 == null ? void 0 : v2.validate("change"));
17
17
  }), (e3, a2) => (t(), o("div", { class: u(["mc-checkbox", { "mc-checkbox--disabled": C2.value, "mc-checkbox--error": S2.value }]), style: s({ height: e3.remarks ? "40px" : "24px" }) }, [m("input", { type: "checkbox", class: "mc-checkbox__input", value: I2.value, disabled: C2.value }, null, 8, _), m("label", f, [m("span", { class: u(["mc-checkbox__checkbox", { "mc-checkbox__checkbox--checked": !!I2.value, "mc-checkbox__checkbox--partial": e3.partial }]), onClick: M }, null, 2), m("div", V, [m("span", g, d(e3.content), 1), m("span", y, d(e3.remarks), 1)])])], 6));
18
- } }), [["__scopeId", "data-v-a13ff63a"]]), C = { class: "mc-checkbox-group" }, S = e({ name: "McCheckboxGroup", __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["change", "update:modelValue"], setup(e2, { emit: a2 }) {
18
+ } }), [["__scopeId", "data-v-cc85e05c"]]), C = { class: "mc-checkbox-group" }, S = e({ name: "McCheckboxGroup", __name: "mc-checkbox-group", props: { modelValue: { default: () => [] }, disabled: { type: Boolean, default: false } }, emits: ["change", "update:modelValue"], setup(e2, { emit: a2 }) {
19
19
  const s2 = e2, u2 = a2, m2 = i();
20
20
  n(x, { modelValue: l(() => s2.modelValue), disabled: l(() => s2.disabled), handleSelect: (e3) => {
21
21
  if (m2.value || !e3) return;
@@ -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
2
  import { d as f, _ as C, w as V } from "./utils-BAYTZ2S4.js";
3
- import { M as b } from "./mc-icon-CYzmEIt1.js";
3
+ import { M as b } from "./mc-icon-Bn35tPxY.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(() => {
@@ -0,0 +1,18 @@
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-Bn35tPxY.js";
3
+ import { t as m } from "./mc-toast-CtcdFS_6.js";
4
+ import { _ as l, w as i } from "./utils-BAYTZ2S4.js";
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
+ const i2 = t2, x2 = l2, f = async () => {
7
+ if (i2.text) if (i2.manual) x2("copy", i2.text);
8
+ else try {
9
+ await navigator.clipboard.writeText(i2.text), x2("success", i2.text), i2.showToast && m.success(i2.toastSuccessText);
10
+ } catch (t3) {
11
+ console.error(t3), x2("error", i2.text, t3), i2.showToast && m.error(i2.toastErrorText);
12
+ }
13
+ };
14
+ return (t3, m2) => (o(), s("div", u, [e(t3.$slots, "default", {}, () => [c("span", n, r(t3.text), 1)], true), a(p, { name: "Duplicate", class: "mc-copy-icon", onClick: f })]));
15
+ } }), [["__scopeId", "data-v-ea4f8711"]]));
16
+ export {
17
+ x as M
18
+ };
@@ -4,11 +4,11 @@ const r = { key: 0, class: "mc-count-number" }, d = l(s(e({ name: "McCount", __n
4
4
  const l2 = e2, d2 = s2, i = a(() => {
5
5
  const e3 = Number(l2.value);
6
6
  return isNaN(e3) ? (console.warn("mc-count: value is not a number"), 0) : e3;
7
- }), p = a(() => !l2.hiddenZero || i.value > 0), v = a(() => l2.max && i.value > l2.max ? `${l2.max}+` : `${i.value}`), y = a(() => "tiny" === l2.type);
7
+ }), p = a(() => !l2.hiddenZero || i.value > 0), v = a(() => l2.max && i.value > l2.max ? `${l2.max}+` : `${i.value}`), f = a(() => "tiny" === l2.type);
8
8
  return t(() => l2.value, (e3, a2) => {
9
9
  e3 !== a2 && d2("change", e3);
10
- }), (e3, a2) => p.value ? (m(), u("i", { key: 0, class: o(["mc-count", [`mc-count-${e3.theme}`, `mc-count-${e3.type}`]]) }, [y.value ? n("", true) : (m(), u("span", r, c(v.value), 1))], 2)) : n("", true);
11
- } }), [["__scopeId", "data-v-a735e8dc"]]));
10
+ }), (e3, a2) => p.value ? (m(), u("i", { key: 0, class: o(["mc-count", [`mc-count-${e3.theme}`, `mc-count-${e3.type}`]]) }, [f.value ? n("", true) : (m(), u("span", r, c(v.value), 1))], 2)) : n("", true);
11
+ } }), [["__scopeId", "data-v-1f678123"]]));
12
12
  export {
13
13
  d as M
14
14
  };
@@ -1,10 +1,10 @@
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
2
  import { u as a, a as u } from "./hooks-9Nd65OVn.js";
3
3
  import { _ as d, w as m } from "./utils-BAYTZ2S4.js";
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) {
4
+ const y = { class: "mc-currency-icon-img-wrapper" }, p = ["src", "alt"], f = { class: "mc-currency-icon-label" }, h = { 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
- 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));
7
- } }), [["__scopeId", "data-v-a7836bdb"]]));
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", f, [t(c3.$slots, "default", {}, () => [i("span", null, l(c3.currency), 1)], true)]), i("div", h, [t(c3.$slots, "desc", {}, () => [i("span", null, l(c3.desc), 1)], true)])], 2)], 4));
7
+ } }), [["__scopeId", "data-v-f792a3dc"]]));
8
8
  export {
9
9
  g as M
10
10
  };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as i, createElementBlock as e, openBlock as a, normalizeClass as d } from "vue";
2
2
  import { _ as s, w as m } from "./utils-BAYTZ2S4.js";
3
- const r = m(s(i({ name: "McDivider", __name: "mc-divider", props: { size: { default: "small" }, emphasis: { default: "minimal" }, orientation: { default: "horizontal" } }, setup: (i2) => (i3, s2) => (a(), e("div", { class: d(["mc-divider", [`mc-divider-${i3.orientation}`, `mc-divider-${i3.size}`, `mc-divider-${i3.emphasis}`]]) }, null, 2)) }), [["__scopeId", "data-v-6b53d9f6"]]));
3
+ const r = m(s(i({ name: "McDivider", __name: "mc-divider", props: { size: { default: "small" }, emphasis: { default: "minimal" }, orientation: { default: "horizontal" } }, setup: (i2) => (i3, s2) => (a(), e("div", { class: d(["mc-divider", [`mc-divider-${i3.orientation}`, `mc-divider-${i3.size}`, `mc-divider-${i3.emphasis}`]]) }, null, 2)) }), [["__scopeId", "data-v-1397051d"]]));
4
4
  export {
5
5
  r as M
6
6
  };
@@ -1,7 +1,7 @@
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 f, normalizeClass as c, createElementVNode as u, renderSlot as n, nextTick as p } from "vue";
2
- import { M as v } from "./mc-overlay-CDESL1Oz.js";
3
- import { M as w } from "./mc-modal-header-ITzlDJiH.js";
4
- import { M as h } from "./mc-footer-CBzHShc_.js";
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-DKDYwb_d.js";
3
+ import { M as w } from "./mc-modal-header-DA2psuc8.js";
4
+ import { M as h } from "./mc-footer-Dz_LkIr1.js";
5
5
  import { b as y } from "./hooks-9Nd65OVn.js";
6
6
  import { _, w as $ } from "./utils-BAYTZ2S4.js";
7
7
  const b = { key: 0, class: "mc-drawer-container" }, g = { 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 }) {
@@ -21,8 +21,8 @@ const b = { key: 0, class: "mc-drawer-container" }, g = { class: "mc-drawer-head
21
21
  return y(R, ({ height: e3 }) => {
22
22
  const o2 = I.value;
23
23
  o2 && (o2.style.paddingBottom = `${e3}px`);
24
- }), _2({ ref: I, open: V, close: z }), (e3, o2) => C.value ? (s(), a("div", b, [(s(), l(d, { to: e3.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default: f(() => [i(v, { visible: j.value, fixed: e3.fixed, onClick: S }, { default: f(() => [i(m, { name: `mc-drawer-content-${e3.position}` }, { default: f(() => [M.value ? (s(), a("div", { key: 0, class: c(["mc-drawer", [`mc-drawer-${e3.size}`, `mc-drawer-${e3.position}`]]), ref_key: "_ref", ref: I }, [u("div", g, [n(e3.$slots, "header", {}, () => [i(w, { title: e3.title, "show-border": e3.showBorder, onClose: D }, { default: f(() => [n(e3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), u("div", k, [u("div", B, [n(e3.$slots, "default", {}, void 0, true)])]), e3.hideFooter ? r("", true) : (s(), a("div", { key: 0, class: "mc-drawer-footer", ref_key: "footerRef", ref: R }, [n(e3.$slots, "footer", {}, () => [i(h, null, { left: f(() => [n(e3.$slots, "footer-left", {}, void 0, true)]), right: f(() => [n(e3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": f(() => [n(e3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: f(() => [n(e3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512))], 2)) : r("", true)]), _: 3 }, 8, ["name"])]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
25
- } }), [["__scopeId", "data-v-efaee3e8"]]));
24
+ }), _2({ ref: I, open: V, close: z }), (e3, o2) => C.value ? (s(), a("div", b, [(s(), l(d, { to: e3.portCssSelector }, [i(m, { name: "mc-drawer-overlay" }, { default: c(() => [i(v, { visible: j.value, fixed: e3.fixed, onClick: S }, { default: c(() => [i(m, { name: `mc-drawer-content-${e3.position}` }, { default: c(() => [M.value ? (s(), a("div", { key: 0, class: f(["mc-drawer", [`mc-drawer-${e3.size}`, `mc-drawer-${e3.position}`]]), ref_key: "_ref", ref: I }, [u("div", g, [n(e3.$slots, "header", {}, () => [i(w, { title: e3.title, "show-border": e3.showBorder, onClose: D }, { default: c(() => [n(e3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), u("div", k, [u("div", B, [n(e3.$slots, "default", {}, void 0, true)])]), e3.hideFooter ? r("", true) : (s(), a("div", { key: 0, class: "mc-drawer-footer", ref_key: "footerRef", ref: R }, [n(e3.$slots, "footer", {}, () => [i(h, null, { left: c(() => [n(e3.$slots, "footer-left", {}, void 0, true)]), right: c(() => [n(e3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": c(() => [n(e3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: c(() => [n(e3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512))], 2)) : r("", true)]), _: 3 }, 8, ["name"])]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : r("", true);
25
+ } }), [["__scopeId", "data-v-46868795"]]));
26
26
  export {
27
27
  x as M
28
28
  };
@@ -1,9 +1,9 @@
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";
1
+ import { defineComponent as t, ref as o, createElementBlock as e, openBlock as s, normalizeStyle as r, normalizeClass as i, createCommentVNode as c, createElementVNode as d, renderSlot as a } from "vue";
2
2
  import { _ as l, w as p } from "./utils-BAYTZ2S4.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
- 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));
6
- } }), [["__scopeId", "data-v-e6cb581e"]]), u = p(g);
5
+ return l2({ ref: p2 }), (t3, o2) => (s(), e("section", { class: i(["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)])) : c("", 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));
6
+ } }), [["__scopeId", "data-v-54785ade"]]), u = p(g);
7
7
  export {
8
8
  g as M,
9
9
  u as a
@@ -1,20 +1,20 @@
1
- import { inject as e, computed as r, defineComponent as t, reactive as a, toRefs as s, provide as o, createElementBlock as l, openBlock as i, createElementVNode as c, withModifiers as d, renderSlot as u, ref as n, onMounted as m, onUnmounted as v, normalizeClass as p, createCommentVNode as f, toDisplayString as h, createVNode as b, createTextVNode as y, Transition as _, withCtx as g, nextTick as q } from "vue";
2
- import { c as F } from "./hooks-9Nd65OVn.js";
3
- import { c as j, s as S, f as w, d as I, k as P, a as $, e as x, m as k, g as V, h as M, j as z, l as B, n as C } from "./vendor-BCQeFBhn.js";
1
+ import { inject as e, computed as r, defineComponent as t, reactive as a, toRefs as s, provide as o, createElementBlock as l, openBlock as i, createElementVNode as c, withModifiers as d, renderSlot as u, ref as n, onMounted as m, onUnmounted as v, normalizeClass as p, createCommentVNode as f, toDisplayString as h, createVNode as b, createTextVNode as y, Transition as _, withCtx as g, nextTick as j } from "vue";
2
+ import { c as q } from "./hooks-9Nd65OVn.js";
3
+ import { c as F, s as S, f as w, d as I, k as P, a as $, e as x, m as k, g as V, h as M, j as z, l as B, n as C } from "./vendor-BCQeFBhn.js";
4
4
  import { _ as E, w as A } from "./utils-BAYTZ2S4.js";
5
5
  import O from "async-validator";
6
- import { M as R } from "./mc-tooltip-C4X4YzTB.js";
6
+ import { M as R } from "./mc-tooltip-ED9vAtDV.js";
7
7
  const D = Symbol("formContext"), G = Symbol("formItemContext");
8
8
  function H() {
9
- const r2 = e(D, void 0), t2 = F("formValidate");
10
- return { form: r2, formItem: j(t2.value) && !t2.value ? void 0 : e(G, void 0) };
9
+ const r2 = e(D, void 0), t2 = q("formValidate");
10
+ return { form: r2, formItem: F(t2.value) && !t2.value ? void 0 : e(G, void 0) };
11
11
  }
12
12
  function J() {
13
- const t2 = e(D, void 0), a2 = e(G, void 0), s2 = F("disabled");
13
+ const t2 = e(D, void 0), a2 = e(G, void 0), s2 = q("disabled");
14
14
  return r(() => s2.value || (t2 == null ? void 0 : t2.disabled) || (a2 == null ? void 0 : a2.disabled));
15
15
  }
16
16
  function K() {
17
- const { formItem: e2 } = H(), t2 = F("formValidateStyle"), a2 = r(() => t2.value && (e2 == null ? void 0 : e2.validateStatus) || "init"), s2 = r(() => {
17
+ const { formItem: e2 } = H(), t2 = q("formValidateStyle"), a2 = r(() => t2.value && (e2 == null ? void 0 : e2.validateStatus) || "init"), s2 = r(() => {
18
18
  switch (a2.value) {
19
19
  case "success":
20
20
  return "success";
@@ -56,19 +56,19 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
56
56
  I(p2(m2, e3), (e4) => e4.clearValidate());
57
57
  } }), (e3, r3) => (i(), l("div", L, [c("form", { onSubmit: r3[0] || (r3[0] = d(() => {
58
58
  }, ["prevent"])) }, [u(e3.$slots, "default", {}, void 0, true)], 32)]));
59
- } }), [["__scopeId", "data-v-3d266611"]]), Q = { class: "mc-form-item-label-wrapper" }, T = { key: 0, class: "mc-form-item-label" }, U = { key: 0, class: "mc-form-item-help" }, W = { key: 0, class: "mc-form-item-desc" }, X = { class: "mc-form-item__content" }, Y = { key: 0, class: "mc-form-item__error" }, Z = E(t({ name: "McFormItem", __name: "mc-form-item", props: { prop: {}, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(t2, { expose: d2 }) {
60
- const F2 = t2, j2 = e(D, void 0), I2 = n("init"), E2 = n(""), A2 = (e2) => e2 && F2.prop && !x(M(e2, F2.prop)) ? M(e2, F2.prop) : null, H2 = r(() => {
61
- const e2 = j2 == null ? void 0 : j2.model;
59
+ } }), [["__scopeId", "data-v-286dbbea"]]), Q = { class: "mc-form-item-label-wrapper" }, T = { key: 0, class: "mc-form-item-label" }, U = { key: 0, class: "mc-form-item-help" }, W = { key: 0, class: "mc-form-item-desc" }, X = { class: "mc-form-item__content" }, Y = { key: 0, class: "mc-form-item__error" }, Z = E(t({ name: "McFormItem", __name: "mc-form-item", props: { prop: {}, label: {}, disabled: { type: Boolean, default: false }, required: { type: Boolean, default: false }, rules: {}, help: {}, desc: {} }, setup(t2, { expose: d2 }) {
60
+ const q2 = t2, F2 = e(D, void 0), I2 = n("init"), E2 = n(""), A2 = (e2) => e2 && q2.prop && !x(M(e2, q2.prop)) ? M(e2, q2.prop) : null, H2 = r(() => {
61
+ const e2 = F2 == null ? void 0 : F2.model;
62
62
  return A2(e2);
63
63
  }), J2 = r(() => {
64
64
  const e2 = [];
65
- F2.required && e2.push({ required: true }), F2.rules && e2.push(...F2.rules);
66
- const r2 = j2 == null ? void 0 : j2.rules;
67
- if (r2 && F2.prop) {
65
+ q2.required && e2.push({ required: true }), q2.rules && e2.push(...q2.rules);
66
+ const r2 = F2 == null ? void 0 : F2.rules;
67
+ if (r2 && q2.prop) {
68
68
  const t4 = A2(r2);
69
69
  t4 && e2.push(...t4);
70
70
  }
71
- const t3 = F2.required;
71
+ const t3 = q2.required;
72
72
  if (x(t3)) {
73
73
  const r3 = w(k(e2, (e3, r4) => [e3, r4]), (e3) => $(P(e3[0]), "required"));
74
74
  if (S(r3)) for (const a2 of r3) {
@@ -78,10 +78,10 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
78
78
  else e2.push({ required: t3 });
79
79
  }
80
80
  return e2;
81
- }), K2 = r(() => S(J2.value) > 0), L2 = r(() => V(J2.value, "required") || F2.required), N2 = r(() => F2.disabled);
81
+ }), K2 = r(() => S(J2.value) > 0), L2 = r(() => V(J2.value, "required") || q2.required), N2 = r(() => q2.disabled);
82
82
  let Z2 = null, ee2 = false;
83
83
  const re2 = (e2, r2) => {
84
- if (ee2 || !F2.prop || N2.value) return Promise.resolve(true);
84
+ if (ee2 || !q2.prop || N2.value) return Promise.resolve(true);
85
85
  if (!K2.value) return r2 == null ? void 0 : r2(true), Promise.resolve(true);
86
86
  const t3 = ((e3) => {
87
87
  const r3 = J2.value;
@@ -90,10 +90,10 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
90
90
  if (!S(t3)) return r2 == null ? void 0 : r2(true), Promise.resolve(true);
91
91
  I2.value = "validating";
92
92
  const a2 = ((e3) => {
93
- const r3 = F2.prop;
94
- return r3 ? new O({ [r3]: e3 }).validate({ [r3]: H2.value }, { firstFields: true }).then(() => (I2.value = "success", j2 == null ? void 0 : j2.emits("validate", F2, true, ""), E2.value = "", true)).catch((e4) => {
93
+ const r3 = q2.prop;
94
+ return r3 ? new O({ [r3]: e3 }).validate({ [r3]: H2.value }, { firstFields: true }).then(() => (I2.value = "success", F2 == null ? void 0 : F2.emits("validate", q2, true, ""), E2.value = "", true)).catch((e4) => {
95
95
  const { errors: r4 } = e4;
96
- return I2.value = "error", E2.value = r4 && S(r4) > 0 ? r4[0].message ?? "" : "", j2 == null ? void 0 : j2.emits("validate", F2, false, E2.value), Promise.reject(e4);
96
+ return I2.value = "error", E2.value = r4 && S(r4) > 0 ? r4[0].message ?? "" : "", F2 == null ? void 0 : F2.emits("validate", q2, false, E2.value), Promise.reject(e4);
97
97
  }) : null;
98
98
  })(t3);
99
99
  return a2 ? a2.then(() => (r2 == null ? void 0 : r2(true), true)).catch((e3) => {
@@ -101,19 +101,19 @@ const L = { class: "mc-form" }, N = E(t({ name: "McForm", __name: "mc-form", pro
101
101
  return r2 == null ? void 0 : r2(false, t4), Promise.reject(t4);
102
102
  }) : Promise.reject(false);
103
103
  }, te = () => {
104
- const e2 = j2 == null ? void 0 : j2.model;
105
- e2 && F2.prop && !x(M(e2, F2.prop)) && (ee2 = true, z(e2, F2.prop, B(Z2))), q(() => {
104
+ const e2 = F2 == null ? void 0 : F2.model;
105
+ e2 && q2.prop && !x(M(e2, q2.prop)) && (ee2 = true, z(e2, q2.prop, B(Z2))), j(() => {
106
106
  ae();
107
107
  });
108
108
  }, ae = () => {
109
109
  I2.value = "init", E2.value = "", ee2 = false;
110
- }, se = a({ ...s(F2), validateStatus: r(() => I2.value), disabled: N2, validate: re2, resetField: te, clearValidate: ae }), oe = r(() => "horizontal" === (j2 == null ? void 0 : j2.direction));
110
+ }, se = a({ ...s(q2), validateStatus: r(() => I2.value), disabled: N2, validate: re2, resetField: te, clearValidate: ae }), oe = r(() => "horizontal" === (F2 == null ? void 0 : F2.direction));
111
111
  return o(G, se), m(() => {
112
- F2.prop && (j2 == null ? void 0 : j2.addField(se), Z2 = H2.value);
112
+ q2.prop && (F2 == null ? void 0 : F2.addField(se), Z2 = H2.value);
113
113
  }), v(() => {
114
- F2.prop && (j2 == null ? void 0 : j2.removeField(se));
114
+ q2.prop && (F2 == null ? void 0 : F2.removeField(se));
115
115
  }), d2({ validateMessage: E2, validateStatus: I2, validate: re2, resetField: te, clearValidate: ae }), (e2, r2) => (i(), l("div", { class: p(["mc-form-item", { "mc-form-item-horizontal": oe.value }]) }, [u(e2.$slots, "label", { required: L2.value }, () => [c("div", null, [c("div", Q, [e2.label ? (i(), l("label", T, [c("span", { class: p(["mc-form-item-lable-text", { "mc-form-item-label-required": L2.value }]) }, h(e2.label), 3), e2.help || e2.$slots.help ? (i(), l("div", U, [u(e2.$slots, "help", {}, () => [b(R, { content: e2.help, "icon-size": 20 }, null, 8, ["content"])], true)])) : f("", true)])) : f("", true), u(e2.$slots, "tool", {}, void 0, true)]), e2.desc || e2.$slots.desc ? (i(), l("div", W, [u(e2.$slots, "desc", {}, () => [y(h(e2.desc), 1)], true)])) : f("", true)])], true), c("div", X, [u(e2.$slots, "default", {}, void 0, true), b(_, { name: "mc-form-item-error" }, { default: g(() => [E2.value ? (i(), l("div", Y, h(E2.value), 1)) : f("", true)]), _: 1 })])], 2));
116
- } }), [["__scopeId", "data-v-bff4206f"]]), ee = A(N), re = A(Z);
116
+ } }), [["__scopeId", "data-v-4a6378a3"]]), ee = A(N), re = A(Z);
117
117
  export {
118
118
  ee as M,
119
119
  J as a,
@@ -1,11 +1,11 @@
1
- import { defineComponent as e, ref as o, createElementBlock as c, openBlock as s, normalizeStyle as i, createElementVNode as n, normalizeClass as t } from "vue";
1
+ import { defineComponent as e, ref as c, createElementBlock as o, openBlock as s, normalizeStyle as i, createElementVNode as n, normalizeClass as t } from "vue";
2
2
  import { _ as a, w as r } from "./utils-BAYTZ2S4.js";
3
3
  const m = a(e({ name: "McIcon", __name: "mc-icon", props: { name: {}, size: { default: 24 }, color: {} }, emits: ["click"], setup(e2, { expose: a2, emit: r2 }) {
4
- const m2 = r2, l2 = o();
5
- return a2({ ref: l2 }), (e3, o2) => (s(), c("span", { class: "mc-icon", style: i({ fontSize: `${e3.size}px`, width: `${e3.size}px`, height: `${e3.size}px`, color: e3.color }) }, [n("i", { ref_key: "_ref", ref: l2, class: t(["mc-iconfont", `mc-icon--${e3.name}`]), onClick: o2[0] || (o2[0] = (e4) => ((e5) => {
4
+ const m2 = r2, l2 = c();
5
+ return a2({ ref: l2 }), (e3, c2) => (s(), o("span", { class: "mc-icon", style: i({ fontSize: `${e3.size}px`, width: `${e3.size}px`, height: `${e3.size}px`, color: e3.color }) }, [n("i", { ref_key: "_ref", ref: l2, class: t(["mc-iconfont", `mc-icon--${e3.name}`]), onClick: c2[0] || (c2[0] = (e4) => ((e5) => {
6
6
  m2("click", e5);
7
7
  })(e4)) }, null, 2)], 4));
8
- } }), [["__scopeId", "data-v-3f56ebd0"]]), l = r(m);
8
+ } }), [["__scopeId", "data-v-95f0c9d3"]]), l = r(m);
9
9
  export {
10
10
  m as M,
11
11
  l as a
@@ -1,9 +1,9 @@
1
- import { ref as e, computed as t, inject as a, watch as u, defineComponent as s, onMounted as r, createElementBlock as l, openBlock as i, normalizeStyle as o, normalizeClass as n, unref as p, createCommentVNode as c, createElementVNode as d, renderSlot as f, createBlock as v, withKeys as m, createVNode as x, Fragment as y, nextTick as g, provide as h, createTextVNode as I } from "vue";
2
- import { M as b } from "./mc-icon-CYzmEIt1.js";
3
- import { a as _, u as G } from "./mc-form-CvzqRvTP.js";
1
+ import { ref as e, computed as t, inject as a, watch as u, defineComponent as s, onMounted as r, createElementBlock as l, openBlock as i, normalizeStyle as o, normalizeClass as n, unref as p, createCommentVNode as c, createElementVNode as d, renderSlot as f, createBlock as v, withKeys as m, createVNode as x, Fragment as y, nextTick as g, provide as h, createTextVNode as b } from "vue";
2
+ import { M as I } from "./mc-icon-Bn35tPxY.js";
3
+ import { a as _, u as G } from "./mc-form-BVetW0D3.js";
4
4
  import { c as w, d as V, e as S } from "./hooks-9Nd65OVn.js";
5
- import { O as A } from "./mc-otp-BC2uE9E4.js";
6
- import { a as $, o as k, p as E, q as j, e as B, i as F } from "./vendor-BCQeFBhn.js";
5
+ import { O as A } from "./mc-otp-CtbAqsbO.js";
6
+ import { a as $, o as k, p as E, q as B, e as F, i as j } from "./vendor-BCQeFBhn.js";
7
7
  import { _ as C, w as R } from "./utils-BAYTZ2S4.js";
8
8
  const P = Symbol("InputGroupContext"), z = (e2) => {
9
9
  const s2 = a(P, void 0);
@@ -18,17 +18,17 @@ const P = Symbol("InputGroupContext"), z = (e2) => {
18
18
  }), u([n2, p2], ([e3, t2]) => {
19
19
  e3 || t2 ? s2.setInputGroupActived(true, l2.value) : s2.setInputGroupActived(false, l2.value);
20
20
  }), { inputGroupDisabled: r2 };
21
- }, D = { key: 0, class: "mc-input__prefix" }, H = ["type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], M = { key: 2, class: "mc-input__password" }, T = { key: 0, class: "mc-input__suffix" }, O = C(s({ name: "McInput", __name: "mc-input", props: { modelValue: {}, width: {}, height: {}, type: { default: "text" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please enter" }, readonly: { type: Boolean, default: false }, autocomplete: { default: "off" }, autofocus: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, maxlength: {}, currencyAccuracy: {}, formValidate: { type: Boolean, default: true }, inputGroupPosition: {}, formatter: {}, parser: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "paste", "clear", "delete"], setup(s2, { expose: h2, emit: I2 }) {
22
- const w2 = s2, { formatter: C2, parser: R2 } = w2, P2 = I2, O2 = e(), q2 = t(() => B(w2.modelValue) ? "" : j(w2.modelValue)), K2 = (e2) => ("number" === w2.type ? e2 = ((e3) => e3.replace(/[^\d]/g, ""))(e2) : "currency" === w2.type && (e2 = ((e3, t2 = 8) => {
21
+ }, D = { key: 0, class: "mc-input__prefix" }, H = ["type", "disabled", "readonly", "autocomplete", "placeholder", "autofocus", "maxlength"], M = { key: 2, class: "mc-input__password" }, T = { key: 0, class: "mc-input__suffix" }, O = C(s({ name: "McInput", __name: "mc-input", props: { modelValue: {}, width: {}, height: {}, type: { default: "text" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, placeholder: { default: "Please enter" }, readonly: { type: Boolean, default: false }, autocomplete: { default: "off" }, autofocus: { type: Boolean, default: false }, prefixIcon: {}, suffixIcon: {}, maxlength: {}, currencyAccuracy: {}, formValidate: { type: Boolean, default: true }, inputGroupPosition: {}, formatter: {}, parser: {} }, emits: ["update:modelValue", "input", "change", "focus", "blur", "paste", "clear", "delete"], setup(s2, { expose: h2, emit: b2 }) {
22
+ const w2 = s2, { formatter: C2, parser: R2 } = w2, P2 = b2, O2 = e(), q2 = t(() => F(w2.modelValue) ? "" : B(w2.modelValue)), K2 = (e2) => ("number" === w2.type ? e2 = ((e3) => e3.replace(/[^\d]/g, ""))(e2) : "currency" === w2.type && (e2 = ((e3, t2 = 8) => {
23
23
  e3 = e3.replace(/(?:[^0-9.]+)/g, "");
24
24
  const [a2, ...u2] = e3.split(".");
25
25
  return u2.length ? `${a2}.${u2.join("").substring(0, t2)}` : a2;
26
- })(e2, w2.currencyAccuracy)), F(R2) && (e2 = R2(e2)), e2), J2 = () => {
26
+ })(e2, w2.currencyAccuracy)), j(R2) && (e2 = R2(e2)), e2), J2 = () => {
27
27
  const e2 = O2.value, t2 = (a2 = q2.value, "number" === w2.type ? a2 = ((e3) => e3.replace(/[^\d]/g, ""))(a2) : "currency" === w2.type && (a2 = ((e3) => {
28
28
  e3 = e3.toString();
29
29
  const [t3, a3] = e3.toString().split("."), u2 = t3.replace(/(\d)(?=(\d{3})+$)/g, "$1,");
30
30
  return $(e3, ".") ? `${u2}.${a3}` : u2;
31
- })(a2)), F(C2) && (a2 = C2(a2)), a2);
31
+ })(a2)), j(C2) && (a2 = C2(a2)), a2);
32
32
  var a2;
33
33
  e2 && e2.value !== t2 && (e2.value = t2);
34
34
  };
@@ -100,7 +100,7 @@ const P = Symbol("InputGroupContext"), z = (e2) => {
100
100
  (_a = O2.value) == null ? void 0 : _a.select();
101
101
  }, clear: () => {
102
102
  P2("update:modelValue", ""), P2("input", ""), P2("change", ""), P2("clear"), W == null ? void 0 : W.clearValidate();
103
- } }), (e2, t2) => (i(), l("div", { class: n(["mc-input", { "mc-input--disabled": Q.value, "mc-input--focused": p(ue), "mc-input--inputed": e2.modelValue, "mc-input-hovering": p(le), [`mc-input--${X.value}`]: X.value }]), style: o({ width: e2.width, height: e2.height }), ref_key: "wrapperRef", ref: ae }, [e2.$slots.prefix || e2.prefixIcon ? (i(), l("div", D, [f(e2.$slots, "prefix", {}, () => [e2.prefixIcon ? (i(), v(b, { key: 0, class: "mc-input-icon", name: e2.prefixIcon, size: 24 }, null, 8, ["name"])) : c("", true)], true)])) : c("", true), d("input", { class: "mc-input__inner", ref_key: "inputRef", ref: O2, type: U.value ? L.value ? "text" : "password" : "text", disabled: Q.value, readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, maxlength: e2.maxlength, onInput: de, onChange: fe, onFocus: t2[0] || (t2[0] = (...e3) => p(se) && p(se)(...e3)), onBlur: t2[1] || (t2[1] = (...e3) => p(re) && p(re)(...e3)), onKeydown: m(oe, ["delete"]), onPaste: ne }, null, 40, H), te.value ? (i(), l("div", { key: 1, class: n(["mc-input__status", [Z.value ? "mc-input__status--error" : "mc-input__status--success"]]) }, [x(b, { name: Z.value ? "Reject_02" : "Accept_02", size: 24 }, null, 8, ["name"])], 2)) : c("", true), "password" === e2.type ? (i(), l("div", M, [x(b, { class: "mc-input-icon", name: L.value ? "Review-Hidden" : "Review", size: 24, onClick: ve }, null, 8, ["name"])])) : (i(), l(y, { key: 3 }, [e2.$slots.suffix || e2.suffixIcon ? (i(), l("div", T, [f(e2.$slots, "suffix", {}, () => [e2.suffixIcon ? (i(), v(b, { key: 0, name: e2.suffixIcon, size: 24 }, null, 8, ["name"])) : c("", true)], true)])) : c("", true)], 64))], 6));
103
+ } }), (e2, t2) => (i(), l("div", { class: n(["mc-input", { "mc-input--disabled": Q.value, "mc-input--focused": p(ue), "mc-input--inputed": e2.modelValue, "mc-input-hovering": p(le), [`mc-input--${X.value}`]: X.value }]), style: o({ width: e2.width, height: e2.height }), ref_key: "wrapperRef", ref: ae }, [e2.$slots.prefix || e2.prefixIcon ? (i(), l("div", D, [f(e2.$slots, "prefix", {}, () => [e2.prefixIcon ? (i(), v(I, { key: 0, class: "mc-input-icon", name: e2.prefixIcon, size: 24 }, null, 8, ["name"])) : c("", true)], true)])) : c("", true), d("input", { class: "mc-input__inner", ref_key: "inputRef", ref: O2, type: U.value ? L.value ? "text" : "password" : "text", disabled: Q.value, readonly: e2.readonly, autocomplete: e2.autocomplete, placeholder: e2.placeholder, autofocus: e2.autofocus, maxlength: e2.maxlength, onInput: de, onChange: fe, onFocus: t2[0] || (t2[0] = (...e3) => p(se) && p(se)(...e3)), onBlur: t2[1] || (t2[1] = (...e3) => p(re) && p(re)(...e3)), onKeydown: m(oe, ["delete"]), onPaste: ne }, null, 40, H), te.value ? (i(), l("div", { key: 1, class: n(["mc-input__status", [Z.value ? "mc-input__status--error" : "mc-input__status--success"]]) }, [x(I, { name: Z.value ? "Reject_02" : "Accept_02", size: 24 }, null, 8, ["name"])], 2)) : c("", true), "password" === e2.type ? (i(), l("div", M, [x(I, { class: "mc-input-icon", name: L.value ? "Review-Hidden" : "Review", size: 24, onClick: ve }, null, 8, ["name"])])) : (i(), l(y, { key: 3 }, [e2.$slots.suffix || e2.suffixIcon ? (i(), l("div", T, [f(e2.$slots, "suffix", {}, () => [e2.suffixIcon ? (i(), v(I, { key: 0, name: e2.suffixIcon, size: 24 }, null, 8, ["name"])) : c("", true)], true)])) : c("", true)], 64))], 6));
104
104
  } }), [["__scopeId", "data-v-ce9a42d8"]]), q = R(O), K = { key: 0, class: "mc-input-group-divider" }, J = R(C(s({ name: "McInputGroup", __name: "mc-input-group", props: { disabled: { type: Boolean, default: false }, suffixFlex: { default: 1 }, prefixFlex: { default: 1 } }, setup(a2) {
105
105
  const u2 = a2, { isError: s2, isExpanded: r2, isPrefixActived: v2, isSuffixActived: m2, setInputGroupValidate: x2, setInputGroupExpanded: y2, setInputGroupActived: g2 } = (() => {
106
106
  const a3 = e("init"), u3 = t(() => "error" === a3.value), s3 = e(false), r3 = e(false), l2 = e(false);
@@ -111,12 +111,12 @@ const P = Symbol("InputGroupContext"), z = (e2) => {
111
111
  }, setInputGroupActived: (e2, t2) => {
112
112
  "prefix" === t2 ? r3.value = e2 : l2.value = e2;
113
113
  } };
114
- })(), { isDisabled: b2 } = (() => {
114
+ })(), { isDisabled: I2 } = (() => {
115
115
  const e2 = _(), a3 = w("disabled");
116
116
  return { isDisabled: t(() => !!e2.value || !!a3.value) };
117
- })(), G2 = t(() => !v2.value && !m2.value && !r2.value || b2.value);
118
- return h(P, { disabled: t(() => u2.disabled), setInputGroupExpanded: y2, setInputGroupValidate: x2, setInputGroupActived: g2 }), (e2, t2) => (i(), l("div", { class: n(["mc-input-group", { "mc-input-group-disabled": p(b2) }]) }, [d("div", { class: n(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": p(r2), "mc-input-group-prefix-actived": p(v2), "mc-input-group-prefix-error": p(s2) }]), style: o({ flex: e2.prefixFlex }) }, [f(e2.$slots, "prefix", {}, () => [t2[0] || (t2[0] = I("prefix"))], true)], 6), G2.value ? (i(), l("div", K)) : c("", true), d("div", { class: n(["mc-input-group-suffix", { "mc-input-group-suffix-expanded": p(r2), "mc-input-group-suffix-actived": p(m2), "mc-input-group-suffix-error": p(s2) }]), style: o({ flex: e2.suffixFlex }) }, [f(e2.$slots, "suffix", {}, () => [t2[1] || (t2[1] = I("suffix"))], true)], 6)], 2));
119
- } }), [["__scopeId", "data-v-67a61366"]]));
117
+ })(), G2 = t(() => !v2.value && !m2.value && !r2.value || I2.value);
118
+ return h(P, { disabled: t(() => u2.disabled), setInputGroupExpanded: y2, setInputGroupValidate: x2, setInputGroupActived: g2 }), (e2, t2) => (i(), l("div", { class: n(["mc-input-group", { "mc-input-group-disabled": p(I2) }]) }, [d("div", { class: n(["mc-input-group-prefix", { "mc-input-group-prefix-expanded": p(r2), "mc-input-group-prefix-actived": p(v2), "mc-input-group-prefix-error": p(s2) }]), style: o({ flex: e2.prefixFlex }) }, [f(e2.$slots, "prefix", {}, () => [t2[0] || (t2[0] = b("prefix"))], true)], 6), G2.value ? (i(), l("div", K)) : c("", true), d("div", { class: n(["mc-input-group-suffix", { "mc-input-group-suffix-expanded": p(r2), "mc-input-group-suffix-actived": p(m2), "mc-input-group-suffix-error": p(s2) }]), style: o({ flex: e2.suffixFlex }) }, [f(e2.$slots, "suffix", {}, () => [t2[1] || (t2[1] = b("suffix"))], true)], 6)], 2));
119
+ } }), [["__scopeId", "data-v-8b1ae0bb"]]));
120
120
  export {
121
121
  P as I,
122
122
  O as M,
@@ -0,0 +1,37 @@
1
+ import { defineComponent as e, ref as o, watch as t, nextTick as l, createElementBlock as a, createCommentVNode as s, openBlock as i, createBlock as r, Teleport as d, createVNode as f, Transition as m, withCtx as c, normalizeClass as u, createElementVNode as n, renderSlot as h, normalizeStyle as v } from "vue";
2
+ import { M as p } from "./mc-overlay-DKDYwb_d.js";
3
+ import { M as g } from "./mc-modal-header-DA2psuc8.js";
4
+ import { M as b } from "./mc-footer-Dz_LkIr1.js";
5
+ import { f as x, b as y } from "./hooks-9Nd65OVn.js";
6
+ import { _, w } from "./utils-BAYTZ2S4.js";
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", "close"], setup(e2, { expose: _2, emit: w2 }) {
8
+ const H2 = e2, C = w2, j = o(), M = o(), R = o(), V = o(), z = o(false), F = o(false), S = o(false), I = () => {
9
+ H2.maskClosable && A();
10
+ }, L = () => {
11
+ A();
12
+ }, q = async () => {
13
+ z.value = true, F.value = true, await l(), S.value = true;
14
+ }, A = async () => {
15
+ S.value = false, await l(), F.value = false, await l(), z.value = false, C("close"), C("update:modelValue", false);
16
+ };
17
+ t(() => H2.modelValue, (e3, o2) => {
18
+ !o2 && e3 ? q() : A();
19
+ }, { immediate: true, flush: "post" });
20
+ const D = () => {
21
+ var _a, _b;
22
+ if (!R.value) return;
23
+ const e3 = ((_a = M.value) == null ? void 0 : _a.offsetHeight) ?? 0, o2 = 0.7 * window.innerHeight - 84 - e3, t2 = ((_b = V.value) == null ? void 0 : _b.offsetHeight) ?? 40;
24
+ R.value.style.height = `${t2 > o2 ? o2 : t2}px`;
25
+ };
26
+ return x(() => {
27
+ D();
28
+ }), y(M, async ({ height: e3 }) => {
29
+ const o2 = j.value;
30
+ o2 && (o2.style.paddingBottom = `${e3}px`, await l(), D());
31
+ }), y(V, () => {
32
+ D();
33
+ }), _2({ ref: j, open: q, close: A }), (e3, o2) => z.value ? (i(), a("div", k, [(i(), r(d, { to: e3.portCssSelector }, [f(m, { name: "mc-lightbox-overlay" }, { default: c(() => [f(p, { visible: F.value, fixed: e3.fixed, onClick: I }, { default: c(() => [f(m, { name: "mc-lightbox-content" }, { default: c(() => [S.value ? (i(), a("div", { key: 0, class: u(["mc-lightbox", [`mc-lightbox-${e3.size}`]]), ref_key: "lightboxRef", ref: j }, [n("div", $, [h(e3.$slots, "header", {}, () => [f(g, { title: e3.title, "show-border": e3.showBorder, onClose: L }, { default: c(() => [h(e3.$slots, "header-title", {}, void 0, true)]), _: 3 }, 8, ["title", "show-border"])], true)]), n("div", { class: "mc-lightbox-content-wrapper", ref_key: "wrapperRef", ref: R }, [n("div", { class: "mc-lightbox-content", style: v({ minHeight: e3.minHeight ? `${e3.minHeight}px` : void 0 }), ref_key: "contentRef", ref: V }, [h(e3.$slots, "default", {}, void 0, true)], 4)], 512), n("div", { class: "mc-lightbox-footer", ref_key: "footerRef", ref: M }, [e3.hideFooter ? (i(), a("div", B)) : h(e3.$slots, "footer", { key: 1 }, () => [f(b, null, { left: c(() => [h(e3.$slots, "footer-left", {}, void 0, true)]), right: c(() => [h(e3.$slots, "footer-right", {}, void 0, true)]), "right-button-group": c(() => [h(e3.$slots, "footer-right-button-group", {}, void 0, true)]), desc: c(() => [h(e3.$slots, "footer-desc", {}, void 0, true)]), _: 3 })], true)], 512)], 2)) : s("", true)]), _: 3 })]), _: 3 }, 8, ["visible", "fixed"])]), _: 3 })], 8, ["to"]))])) : s("", true);
34
+ } }), [["__scopeId", "data-v-776db0bc"]]));
35
+ export {
36
+ H as M
37
+ };
@@ -1,12 +1,12 @@
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-CYzmEIt1.js";
3
- import { M as m } from "./mc-title-B7CRDymz.js";
2
+ import { M as r } from "./mc-icon-Bn35tPxY.js";
3
+ import { M as m } from "./mc-title-DUmPOcab.js";
4
4
  import { _ as d, w as i } from "./utils-BAYTZ2S4.js";
5
- const c = { class: "mc-modal-header" }, h = 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 }) {
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"])]));
8
- } }), [["__scopeId", "data-v-5e3038e9"]]), n = i(h);
8
+ } }), [["__scopeId", "data-v-e60f5141"]]), h = i(n);
9
9
  export {
10
- h as M,
11
- n as a
10
+ n as M,
11
+ h as a
12
12
  };