mc-plus 1.0.78 → 1.0.79

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 (131) hide show
  1. package/dist/es/index.js +255 -248
  2. package/dist/es/mc-alert-message-CaYxL1Yi.js +32 -0
  3. package/dist/es/mc-button-Bg4Yihn7.js +15 -0
  4. package/dist/es/{mc-checkbox-C-9q1uwS.js → mc-checkbox-Dyzog85d.js} +7 -8
  5. package/dist/es/{mc-checkbox-group-DyPHhILZ.js → mc-checkbox-group-eFq3z6SX.js} +1 -1
  6. package/dist/es/{mc-collapse-item-mEQqZM8m.js → mc-collapse-item-B_qKeVrY.js} +1 -1
  7. package/dist/es/mc-copy-DJncZLxJ.js +19 -0
  8. package/dist/es/mc-divider-BUj2C8z3.js +7 -0
  9. package/dist/es/mc-drawer-DJk754RT.js +29 -0
  10. package/dist/es/mc-file-list-Bjcmtcrs.js +29 -0
  11. package/dist/es/{mc-footer-DUC9ViQu.js → mc-footer-BeEDYFlH.js} +3 -4
  12. package/dist/es/{mc-form-C0bOl2Kn.js → mc-form-B74FOC7S.js} +1 -1
  13. package/dist/es/mc-form-item-CzRuDu0s.js +69 -0
  14. package/dist/es/{mc-icon-4B9i36Sx.js → mc-icon-CmYW61Q0.js} +3 -3
  15. package/dist/es/{mc-icon-plus-DcQPxofD.js → mc-icon-plus-BFYVRrKw.js} +2 -2
  16. package/dist/es/{mc-input-D2BkkJ_Y.js → mc-input-BglWvPMq.js} +5 -5
  17. package/dist/es/{mc-input-group-sjUhcX1J.js → mc-input-group-apXB5iXd.js} +1 -1
  18. package/dist/es/mc-lightbox-DRiJSWar.js +38 -0
  19. package/dist/es/mc-loading-CgQDxms4.js +11 -0
  20. package/dist/es/mc-modal-header-BUvK3-bl.js +12 -0
  21. package/dist/es/mc-multi-tag-CWwyuXAy.js +16 -0
  22. package/dist/es/{mc-otp-C0Xs2nWC.js → mc-otp-CH1yOQy4.js} +4 -4
  23. package/dist/es/{mc-overlay-D2fKzV9J.js → mc-overlay-CHfJL0kY.js} +3 -4
  24. package/dist/es/mc-popper-CbGrFzA5.js +34 -0
  25. package/dist/es/mc-progress-bar-Cexg1qzW.js +29 -0
  26. package/dist/es/{mc-progress-indicator-BLQqSDrY.js → mc-progress-indicator-DhR-rAkD.js} +21 -21
  27. package/dist/es/mc-radio-DeINCfgm.js +22 -0
  28. package/dist/es/{mc-radio-group-BhsM5bEB.js → mc-radio-group-BnDDYkMd.js} +1 -1
  29. package/dist/es/mc-removable-tag-YZpBGZiE.js +13 -0
  30. package/dist/es/mc-reset-CJBlVip8.js +13 -0
  31. package/dist/es/mc-richtext-BQz5KzYG.js +100 -0
  32. package/dist/es/{mc-select-3xlHImKe.js → mc-select-dtLU6api.js} +18 -18
  33. package/dist/es/{mc-select-group-BKEcd7s0.js → mc-select-group-BpZACRnb.js} +1 -1
  34. package/dist/es/{mc-select-group-plus-CPt1eYeR.js → mc-select-group-plus-DTvQr5wB.js} +1 -1
  35. package/dist/es/mc-select-multi-option-0RDwqAwb.js +13 -0
  36. package/dist/es/{mc-select-option-Cptm5wjF.js → mc-select-option-1qz8OodF.js} +10 -10
  37. package/dist/es/{mc-select-option-plus-93vuN2mf.js → mc-select-option-plus-B-UJCqUp.js} +10 -10
  38. package/dist/es/{mc-select-plus-Hdl-shv8.js → mc-select-plus-CjrXhek5.js} +48 -48
  39. package/dist/es/mc-status-BJGdWYD5.js +8 -0
  40. package/dist/es/mc-step-DRDtR0u_.js +52 -0
  41. package/dist/es/{mc-step-plus-CDYpOa42.js → mc-step-plus-dPMVmUi4.js} +17 -17
  42. package/dist/es/mc-step-v2-C1e_kDgg.js +76 -0
  43. package/dist/es/mc-success-icon-BuGz3uNE.js +7 -0
  44. package/dist/es/mc-switch-KStvUyzm.js +15 -0
  45. package/dist/es/{mc-tab-jIIY_s5y.js → mc-tab-BT5bQZPB.js} +22 -22
  46. package/dist/es/{mc-table-COdreKN2.js → mc-table-CBKGzmE9.js} +2 -2
  47. package/dist/es/{mc-table-plus-LFIpN4Og.js → mc-table-plus-mrdERsrX.js} +18 -18
  48. package/dist/es/mc-tag-CeJarQKP.js +15 -0
  49. package/dist/es/{mc-textarea-BBhb212c.js → mc-textarea-D0xe-tcb.js} +1 -1
  50. package/dist/es/mc-title-Bp0U8n05.js +11 -0
  51. package/dist/es/mc-title-tool-bar-DI-TZVG5.js +18 -0
  52. package/dist/es/mc-toast-a1PkHS_u.js +71 -0
  53. package/dist/es/mc-tooltip-BNmrE7e_.js +18 -0
  54. package/dist/es/{mc-upload-CDkkDtlT.js → mc-upload-Ce1xxGu_.js} +23 -23
  55. package/dist/es/theme/mc-alert-message.css +1 -1
  56. package/dist/es/theme/mc-button.css +1 -1
  57. package/dist/es/theme/mc-copy.css +1 -1
  58. package/dist/es/theme/mc-drawer.css +1 -1
  59. package/dist/es/theme/mc-file-list.css +1 -1
  60. package/dist/es/theme/mc-form-item.css +1 -1
  61. package/dist/es/theme/mc-input.css +1 -1
  62. package/dist/es/theme/mc-lightbox.css +1 -1
  63. package/dist/es/theme/mc-loading.css +1 -1
  64. package/dist/es/theme/mc-modal-header.css +1 -1
  65. package/dist/es/theme/mc-multi-tag.css +1 -1
  66. package/dist/es/theme/mc-otp.css +1 -1
  67. package/dist/es/theme/mc-popper.css +1 -1
  68. package/dist/es/theme/mc-progress-indicator.css +1 -1
  69. package/dist/es/theme/mc-radio.css +1 -1
  70. package/dist/es/theme/mc-removable-tag.css +1 -1
  71. package/dist/es/theme/mc-reset.css +1 -1
  72. package/dist/es/theme/mc-richtext.css +1 -0
  73. package/dist/es/theme/mc-select-option-plus.css +1 -1
  74. package/dist/es/theme/mc-select-plus.css +1 -1
  75. package/dist/es/theme/mc-select.css +1 -1
  76. package/dist/es/theme/mc-status.css +1 -1
  77. package/dist/es/theme/mc-step-plus.css +1 -1
  78. package/dist/es/theme/mc-step-v2.css +1 -1
  79. package/dist/es/theme/mc-step.css +1 -1
  80. package/dist/es/theme/mc-switch.css +1 -1
  81. package/dist/es/theme/mc-tab.css +1 -1
  82. package/dist/es/theme/mc-table-plus.css +1 -1
  83. package/dist/es/theme/mc-tag.css +1 -1
  84. package/dist/es/theme/mc-title-tool-bar.css +1 -1
  85. package/dist/es/theme/mc-title.css +1 -1
  86. package/dist/es/theme/mc-toast.css +1 -1
  87. package/dist/es/theme/mc-tooltip.css +1 -1
  88. package/dist/es/theme/mc-upload.css +1 -1
  89. package/dist/index.css +1 -1
  90. package/dist/types/components.d.ts +1 -0
  91. package/dist/types/mc-richtext/index.d.ts +208 -0
  92. package/dist/types/mc-richtext/mc-richtext-tool.vue.d.ts +27 -0
  93. package/dist/types/mc-richtext/mc-richtext.vue.d.ts +178 -0
  94. package/dist/types/mc-table/components/mc-table-header.vue.d.ts +1 -1
  95. package/dist/types/mc-table/index.d.ts +6 -6
  96. package/dist/types/mc-table/mc-table.vue.d.ts +7 -7
  97. package/dist/types/mc-tooltip/index.d.ts +103 -4
  98. package/dist/types/mc-tooltip/mc-tooltip.vue.d.ts +187 -3
  99. package/dist/types/mc-tooltip/types.d.ts +4 -0
  100. package/dist/umd/index.css +1 -1
  101. package/dist/umd/index.css.gz +0 -0
  102. package/dist/umd/index.umd.cjs +152 -13
  103. package/dist/umd/index.umd.cjs.gz +0 -0
  104. package/package.json +4 -2
  105. package/dist/es/mc-alert-message-JvnnHaSr.js +0 -32
  106. package/dist/es/mc-button-Ckv7FHa8.js +0 -16
  107. package/dist/es/mc-copy-DFfZ79nS.js +0 -19
  108. package/dist/es/mc-divider-TCpxn8c3.js +0 -8
  109. package/dist/es/mc-drawer-CjQ47r2y.js +0 -29
  110. package/dist/es/mc-file-list-Cv4OP1Ga.js +0 -30
  111. package/dist/es/mc-form-item-BbAU8Ql1.js +0 -69
  112. package/dist/es/mc-lightbox-GiCDfm0O.js +0 -38
  113. package/dist/es/mc-loading-B_zisNHu.js +0 -12
  114. package/dist/es/mc-modal-header-BgpxusVu.js +0 -13
  115. package/dist/es/mc-multi-tag-BonO5uCY.js +0 -16
  116. package/dist/es/mc-popper-DG8gxW80.js +0 -35
  117. package/dist/es/mc-progress-bar-tWHWi19h.js +0 -30
  118. package/dist/es/mc-radio-CVZardNJ.js +0 -22
  119. package/dist/es/mc-removable-tag-DhIpXh1a.js +0 -14
  120. package/dist/es/mc-reset-BG-p8AiH.js +0 -14
  121. package/dist/es/mc-select-multi-option-Db1LcXm-.js +0 -14
  122. package/dist/es/mc-status-TsoVkCEe.js +0 -8
  123. package/dist/es/mc-step-BopeVqhY.js +0 -52
  124. package/dist/es/mc-step-v2-vjZRSKCY.js +0 -76
  125. package/dist/es/mc-success-icon-CuyL6DXB.js +0 -8
  126. package/dist/es/mc-switch-SVZ-_d9M.js +0 -15
  127. package/dist/es/mc-tag-tK4gRtnS.js +0 -16
  128. package/dist/es/mc-title-RVvmAnbZ.js +0 -12
  129. package/dist/es/mc-title-tool-bar-B0t7WcZL.js +0 -19
  130. package/dist/es/mc-toast-DtnNJULV.js +0 -71
  131. package/dist/es/mc-tooltip-CDYY9-bd.js +0 -13
@@ -1,27 +1,27 @@
1
1
  import { _ as e, u as l } from "./utils-y7s5KtP-.js";
2
- import { ref as a, computed as t, getCurrentInstance as o, watchEffect as s, onMounted as u, watch as r, inject as n, defineComponent as c, h as i, provide as p, createElementBlock as v, openBlock as d, normalizeClass as m, unref as h, createVNode as f, normalizeStyle as g, withCtx as y, createBlock as b, createCommentVNode as w, createElementVNode as k, renderSlot as x, isRef as O, Fragment as V, createTextVNode as _, withDirectives as S, withKeys as j, withModifiers as A, vModelText as B, renderList as I, toDisplayString as M, resolveDynamicComponent as R, vShow as $, nextTick as C } from "vue";
3
- import { isFunction as H, findIndex as P, isEmpty as D, map as F, filter as z, includes as E, toLower as G, uniqBy as N, isArray as T, isString as U, isNumber as K, find as q, difference as J } from "lodash-es";
4
- import { useProp as L, useWidthHeight as W, useFocus as Q, useHover as X, useClickOutside as Y } from "@mc-plus/hooks";
5
- import { M as Z } from "./mc-icon-4B9i36Sx.js";
6
- import { M as ee } from "./mc-popper-DG8gxW80.js";
7
- import { _ as le } from "./mc-tag-tK4gRtnS.js";
8
- import { _ as ae } from "./mc-title-RVvmAnbZ.js";
9
- import { M as te } from "./mc-footer-DUC9ViQu.js";
10
- import { M as oe } from "./mc-checkbox-C-9q1uwS.js";
11
- import { M as se } from "./mc-button-Ckv7FHa8.js";
12
- import { M as ue } from "./mc-select-group-plus-CPt1eYeR.js";
13
- import { M as re } from "./mc-select-option-plus-93vuN2mf.js";
14
- import { u as ne } from "./mc-form-C0bOl2Kn.js";
15
- import { I as ce, u as ie } from "./mc-input-group-sjUhcX1J.js";
2
+ import { ref as a, computed as t, getCurrentInstance as o, watchEffect as s, onMounted as u, watch as r, inject as n, defineComponent as c, h as i, provide as p, createElementBlock as v, openBlock as d, normalizeClass as m, unref as h, createVNode as f, normalizeStyle as g, withCtx as y, createBlock as b, createCommentVNode as w, createElementVNode as k, renderSlot as x, isRef as O, Fragment as V, createTextVNode as S, withDirectives as _, withKeys as j, withModifiers as A, vModelText as M, renderList as B, toDisplayString as I, resolveDynamicComponent as R, vShow as $, nextTick as C } from "vue";
3
+ import { isFunction as H, findIndex as P, isEmpty as D, map as F, filter as z, includes as E, toLower as G, uniqBy as K, isArray as T, isString as U, isNumber as N, find as q, difference as L } from "lodash-es";
4
+ import { useProp as W, useWidthHeight as J, useFocus as Q, useHover as X, useClickOutside as Y } from "@mc-plus/hooks";
5
+ import { M as Z } from "./mc-icon-CmYW61Q0.js";
6
+ import { M as ee } from "./mc-popper-CbGrFzA5.js";
7
+ import { M as le } from "./mc-tag-CeJarQKP.js";
8
+ import { M as ae } from "./mc-title-Bp0U8n05.js";
9
+ import { M as te } from "./mc-footer-BeEDYFlH.js";
10
+ import { M as oe } from "./mc-checkbox-Dyzog85d.js";
11
+ import { M as se } from "./mc-button-Bg4Yihn7.js";
12
+ import { M as ue } from "./mc-select-group-plus-DTvQr5wB.js";
13
+ import { a as re } from "./mc-select-option-plus-B-UJCqUp.js";
14
+ import { u as ne } from "./mc-form-B74FOC7S.js";
15
+ import { I as ce, u as ie } from "./mc-input-group-apXB5iXd.js";
16
16
  const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id", "placeholder", "readonly", "disabled", "onKeydown"], me = { key: 0, class: "mc-select-multi-options-wrapper" }, he = { key: 1, class: "mc-select-selected-content-wrapper" }, fe = { key: 1, class: "mc-select-placeholder" }, ge = { key: 0, class: "mc-select-status-icon-wrapper" }, ye = { key: 0, class: "mc-select-dropdown-header-content" }, be = { key: 0, class: "mc-select-empty" }, we = l(e(c({ name: ve, __name: "mc-select-plus", props: { width: { default: 320 }, height: { default: 40 }, placeholder: { default: "Please select" }, disabled: { type: Boolean, default: false }, clearable: { type: Boolean, default: false }, multiple: { type: Boolean, default: false }, maxTags: {}, search: { type: Boolean, default: false }, options: {}, showHeader: { type: Boolean, default: false }, showFooter: { type: Boolean, default: false }, modelValue: { type: [String, Number, Boolean, Array] }, placement: { default: "bottom-start" }, inputGroupPosition: {}, disableValidation: { type: Boolean, default: false }, hideValidationIcon: { type: Boolean, default: false } }, emits: ["update:modelValue", "change", "focus", "blur", "expand"], setup(e2, { emit: l2 }) {
17
- const c2 = e2, ve2 = l2, we2 = t(() => c2.multiple), ke = a(), { wrapperRef: xe, isFocused: Oe, handleFocus: Ve, handleBlur: _e } = Q(ke), { isHovering: Se } = X(xe), { selectRef: je, width: Ae, height: Be } = (() => {
18
- const e3 = a(), { width: l3, height: t2 } = W(), o2 = () => {
17
+ const c2 = e2, ve2 = l2, we2 = t(() => c2.multiple), ke = a(), { wrapperRef: xe, isFocused: Oe, handleFocus: Ve, handleBlur: Se } = Q(ke), { isHovering: _e } = X(xe), { selectRef: je, width: Ae, height: Me } = (() => {
18
+ const e3 = a(), { width: l3, height: t2 } = J(), o2 = () => {
19
19
  e3.value && (e3.value.style.setProperty("--mc-select-width", l3.value || "auto"), e3.value.style.setProperty("--mc-select-height", t2.value || "auto"));
20
20
  };
21
21
  return u(() => {
22
22
  o2();
23
23
  }), r(() => l3.value, () => o2()), { selectRef: e3, width: l3, height: t2, setWidth: o2 };
24
- })(), { selectOptions: Ie } = (() => {
24
+ })(), { selectOptions: Be } = (() => {
25
25
  let e3 = [];
26
26
  const l3 = a([]), t2 = o().proxy;
27
27
  return s(() => {
@@ -49,12 +49,12 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
49
49
  return true;
50
50
  })(l3.value, e3) || (e3 = l3.value);
51
51
  }), { selectOptions: l3 };
52
- })(), { searchValue: Me, isSearch: Re, hasSearchValue: $e, filteredOptions: Ce, filteredGroups: He, clearSearchValue: Pe } = ((e3) => {
53
- const l3 = a(""), o2 = L("search"), s2 = t(() => !!o2.value), u2 = t(() => s2.value && !D(l3.value)), r2 = t(() => (e3 == null ? void 0 : e3.value.length) ? F(z(e3.value, (e4) => E(G(e4.label), G(l3.value))), (e4) => ({ value: e4.value, group: e4.group })) : []), n2 = t(() => r2.value.length ? F(N(r2.value, "group"), (e4) => e4.group) : []);
52
+ })(), { searchValue: Ie, isSearch: Re, hasSearchValue: $e, filteredOptions: Ce, filteredGroups: He, clearSearchValue: Pe } = ((e3) => {
53
+ const l3 = a(""), o2 = W("search"), s2 = t(() => !!o2.value), u2 = t(() => s2.value && !D(l3.value)), r2 = t(() => (e3 == null ? void 0 : e3.value.length) ? F(z(e3.value, (e4) => E(G(e4.label), G(l3.value))), (e4) => ({ value: e4.value, group: e4.group })) : []), n2 = t(() => r2.value.length ? F(K(r2.value, "group"), (e4) => e4.group) : []);
54
54
  return { searchValue: l3, isSearch: s2, hasSearchValue: u2, filteredOptions: r2, filteredGroups: n2, clearSearchValue: () => {
55
55
  l3.value = "";
56
56
  } };
57
- })(Ie), { hoverOption: De, setHoverOption: Fe, handlePressArrow: ze, clearHoverOption: Ee } = ((e3) => {
57
+ })(Be), { hoverOption: De, setHoverOption: Fe, handlePressArrow: ze, clearHoverOption: Ee } = ((e3) => {
58
58
  const l3 = a(), t2 = () => {
59
59
  l3.value = void 0;
60
60
  };
@@ -67,32 +67,32 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
67
67
  const o2 = P(e3 == null ? void 0 : e3.value, (e4) => e4.value === l3.value);
68
68
  "ArrowDown" === a2.key ? l3.value = ((_b = e3.value[o2 + 1]) == null ? void 0 : _b.value) || ((_c = e3.value[0]) == null ? void 0 : _c.value) : "ArrowUp" === a2.key && (l3.value = ((_d = e3.value[o2 - 1]) == null ? void 0 : _d.value) || ((_e2 = e3.value[e3.value.length - 1]) == null ? void 0 : _e2.value));
69
69
  }, clearHoverOption: t2 };
70
- })(Ce), { formId: Ge, formItem: Ne, formDisabled: Te, validateStatus: Ue, validateStyle: Ke, statusIcon: qe } = ne(), { isDisabled: Je } = ((e3, l3) => {
70
+ })(Ce), { formId: Ge, formItem: Ke, formDisabled: Te, validateStatus: Ue, validateStyle: Ne, statusIcon: qe } = ne(), { isDisabled: Le } = ((e3, l3) => {
71
71
  const a2 = n(ce, void 0), o2 = t(() => !!e3.value || !!(a2 == null ? void 0 : a2.disabled.value));
72
72
  return r(o2, (e4) => {
73
73
  e4 && H(l3) && l3();
74
74
  }), { isDisabled: o2 };
75
75
  })(Te, () => {
76
76
  Xe(false), Pe();
77
- }), { isExpanded: Le, popperRef: We, popperOptions: Qe, toggleExpand: Xe } = ((e3) => {
78
- const l3 = a(false), s2 = o(), { emit: u2 } = s2, c3 = a(), i2 = n(ce, void 0), p2 = L("inputGroupPosition"), v2 = { modifiers: [{ name: "offset", options: { offset: [t(() => i2 && p2.value ? "prefix" === p2.value ? -1 : "suffix" === p2.value ? 1 : 0 : 0).value, 0] } }] };
77
+ }), { isExpanded: We, popperRef: Je, popperOptions: Qe, toggleExpand: Xe } = ((e3) => {
78
+ const l3 = a(false), s2 = o(), { emit: u2 } = s2, c3 = a(), i2 = n(ce, void 0), p2 = W("inputGroupPosition"), v2 = { modifiers: [{ name: "offset", options: { offset: [t(() => i2 && p2.value ? "prefix" === p2.value ? -1 : "suffix" === p2.value ? 1 : 0 : 0).value, 0] } }] };
79
79
  return r(l3, (e4) => {
80
80
  var _a, _b;
81
81
  e4 ? (_a = c3.value) == null ? void 0 : _a.show() : (_b = c3.value) == null ? void 0 : _b.hide();
82
82
  }), { isExpanded: l3, popperRef: c3, popperOptions: v2, toggleExpand: (a2) => {
83
83
  e3.value ? l3.value = false : l3.value = a2, u2("expand", a2);
84
84
  } };
85
- })(Je), { showClearIcon: Ye, mouseOverIcon: Ze, clear: el } = ((e3, l3) => {
86
- const o2 = a(false), s2 = L("clearable");
85
+ })(Le), { showClearIcon: Ye, mouseOverIcon: Ze, clear: el } = ((e3, l3) => {
86
+ const o2 = a(false), s2 = W("clearable");
87
87
  return { showClearIcon: t(() => !!s2.value && o2.value && !l3.value), mouseOverIcon: (e4) => {
88
88
  o2.value = e4;
89
89
  }, clear: () => {
90
90
  H(e3) && e3();
91
91
  } };
92
92
  })(async () => {
93
- Je.value || (ll.value = we2.value ? [] : void 0, Pe(), Xe(false), Ol(), await C(), Ne == null ? void 0 : Ne.validate("input"));
94
- }, Je);
95
- ie({ validateStatus: Ue, isExpanded: Le, isFocused: Oe, isHovering: Se }), Y(je, () => {
93
+ Le.value || (ll.value = we2.value ? [] : void 0, Pe(), Xe(false), Ol(), await C(), Ke == null ? void 0 : Ke.validate("input"));
94
+ }, Le);
95
+ ie({ validateStatus: Ue, isExpanded: We, isFocused: Oe, isHovering: _e }), Y(je, () => {
96
96
  Pe(), Xe(false);
97
97
  }), u(() => {
98
98
  ll.value = c2.modelValue;
@@ -102,7 +102,7 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
102
102
  const ll = a(), al = t(() => {
103
103
  if (we2.value) {
104
104
  const e3 = c2.maxTags, l3 = ll.value;
105
- if (K(e3)) {
105
+ if (N(e3)) {
106
106
  const a2 = l3.length - e3, t2 = [];
107
107
  for (let a3 = 0; a3 < e3 && a3 < l3.length; a3++) {
108
108
  const e4 = l3[a3];
@@ -117,31 +117,31 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
117
117
  var _a;
118
118
  return we2.value ? (_a = ll.value) == null ? void 0 : _a.map((e3) => sl(e3)) : sl(ll.value);
119
119
  }), ol = t(() => Ce.value.length > 0), sl = (e3) => {
120
- const l3 = q(Ie.value, (l4) => l4.value === e3);
120
+ const l3 = q(Be.value, (l4) => l4.value === e3);
121
121
  return (l3 == null ? void 0 : l3.label) || (l3 == null ? void 0 : l3.value);
122
122
  }, ul = async (e3) => {
123
- if (Pe(), !Je.value) {
123
+ if (Pe(), !Le.value) {
124
124
  if (we2.value) {
125
125
  const l3 = ll.value;
126
- E(l3, e3) ? ll.value = J(l3, [e3]) : ll.value = [...l3, e3];
126
+ E(l3, e3) ? ll.value = L(l3, [e3]) : ll.value = [...l3, e3];
127
127
  } else ll.value = e3;
128
- we2.value || Xe(false), Ol(), await C(), Ne == null ? void 0 : Ne.validate("input");
128
+ we2.value || Xe(false), Ol(), await C(), Ke == null ? void 0 : Ke.validate("input");
129
129
  }
130
130
  }, rl = t(() => {
131
131
  if (!we2.value) {
132
- const e3 = q(Ie.value, (e4) => e4.value === ll.value);
132
+ const e3 = q(Be.value, (e4) => e4.value === ll.value);
133
133
  return (e3 == null ? void 0 : e3.context) ? e3.context : i("span", { class: "mc-selected-option-label", style: { color: "inherit" } }, (e3 == null ? void 0 : e3.label) || (e3 == null ? void 0 : e3.value));
134
134
  }
135
135
  }), nl = t(() => !$e.value && !!ll.value), cl = t(() => !!c2.placeholder && !$e.value && wl.value), il = t(() => Oe.value ? "minimal" : "bold");
136
- r(Le, () => {
136
+ r(We, () => {
137
137
  Ee();
138
138
  });
139
139
  const pl = () => {
140
- Xe(!Le.value);
140
+ Xe(!We.value);
141
141
  }, vl = () => {
142
142
  Ee(), Xe(true);
143
143
  }, dl = () => {
144
- Le.value ? De.value ? ul(De.value) : we2.value || Xe(false) : Xe(true);
144
+ We.value ? De.value ? ul(De.value) : we2.value || Xe(false) : Xe(true);
145
145
  }, { isSelectAll: ml, isSelectPartial: hl, selectAll: fl } = ((e3, l3, t2, o2) => {
146
146
  const u2 = a(false), r2 = a(false);
147
147
  return s(() => {
@@ -152,11 +152,11 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
152
152
  }), { isSelectAll: u2, isSelectPartial: r2, selectAll: () => {
153
153
  e3.value && H(o2) && o2();
154
154
  } };
155
- })(we2, ll, Ie, () => {
156
- ml.value ? ll.value = Ie.value.map((e3) => e3.value) : ll.value = [], Ol();
155
+ })(we2, ll, Be, () => {
156
+ ml.value ? ll.value = Be.value.map((e3) => e3.value) : ll.value = [], Ol();
157
157
  }), gl = a([]);
158
- r(Le, () => {
159
- Le.value && we2.value && (gl.value = ll.value);
158
+ r(We, () => {
159
+ We.value && we2.value && (gl.value = ll.value);
160
160
  });
161
161
  const yl = () => {
162
162
  we2.value && (ll.value = gl.value, Ol());
@@ -165,16 +165,16 @@ const pe = Symbol("mc-select-plus-context"), ve = "mc-select-plus", de = ["id",
165
165
  }, wl = t(() => {
166
166
  var _a;
167
167
  return we2.value ? ((_a = ll.value) == null ? void 0 : _a.length) <= 0 : !ll.value;
168
- }), kl = t(() => Ye.value && !wl.value), xl = t(() => Je.value ? "not-allowed" : Re.value ? "text" : "pointer"), Ol = () => {
168
+ }), kl = t(() => Ye.value && !wl.value), xl = t(() => Le.value ? "not-allowed" : Re.value ? "text" : "pointer"), Ol = () => {
169
169
  ve2("update:modelValue", ll.value), ve2("change", ll.value);
170
170
  };
171
- return p(pe, { isMulti: we2, selectedOption: ll, filteredOptions: Ce, filteredGroups: He, hoverOption: De, select: ul, hover: Fe }), (l3, a2) => (d(), v("div", { ref_key: "selectRef", ref: je, class: m(["mc-select", { "mc-select-expanded": h(Le) }]) }, [f(ee, { ref_key: "popperRef", ref: We, placement: e2.placement, trigger: "manual", class: "mc-select-popper", style: g({ width: h(Ae) }), "show-arrow": false, "popper-options": h(Qe), "hide-timeout": 100 }, { default: y(() => [k("div", { ref_key: "triggerRef", ref: xe, class: m(["mc-select-trigger", { "mc-select-trigger-focused": h(Oe), "mc-select-trigger-disabled": h(Je), "mc-select-trigger-hovering": h(Se), [h(Ke)]: h(Ke) }]), style: g({ width: h(Ae), height: h(Be) }), onClick: pl }, [k("div", { class: "mc-select-input-wrapper", style: g({ cursor: xl.value }) }, [S(k("input", { "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => O(Me) ? Me.value = e3 : null), ref_key: "inputRef", ref: ke, id: h(Ge), class: "mc-select-input", style: g({ width: h($e) ? "100%" : "1px" }), placeholder: e2.placeholder, readonly: !h(Re) || h(Je), disabled: h(Je), onFocus: a2[1] || (a2[1] = (...e3) => h(Ve) && h(Ve)(...e3)), onBlur: a2[2] || (a2[2] = (...e3) => h(_e) && h(_e)(...e3)), onInput: vl, onKeydown: [j(A(dl, ["stop"]), ["enter"]), a2[3] || (a2[3] = j(A((...e3) => h(ze) && h(ze)(...e3), ["stop"]), ["arrow-down"])), a2[4] || (a2[4] = j(A((...e3) => h(ze) && h(ze)(...e3), ["stop"]), ["arrow-up"]))] }, null, 44, de), [[B, h(Me)]]), nl.value ? x(l3.$slots, "selected-content", { key: 0, selectedOption: ll.value, selectedOptionLabel: tl.value, isDisabled: h(Je) }, () => [we2.value ? (d(), v("ul", me, [(d(true), v(V, null, I(al.value, (e3) => (d(), v("li", { key: `${e3.item}`, class: "mc-select-multi-option" }, [f(le, { size: "x-small", type: "selectable", deletable: e3.selectable, emphasis: il.value, disabled: h(Je), onDelete: (l4) => ((e4) => {
171
+ return p(pe, { isMulti: we2, selectedOption: ll, filteredOptions: Ce, filteredGroups: He, hoverOption: De, select: ul, hover: Fe }), (l3, a2) => (d(), v("div", { ref_key: "selectRef", ref: je, class: m(["mc-select", { "mc-select-expanded": h(We) }]) }, [f(h(ee), { ref_key: "popperRef", ref: Je, placement: e2.placement, trigger: "manual", class: "mc-select-popper", style: g({ width: h(Ae) }), "show-arrow": false, "popper-options": h(Qe), "hide-timeout": 100 }, { default: y(() => [k("div", { ref_key: "triggerRef", ref: xe, class: m(["mc-select-trigger", { "mc-select-trigger-focused": h(Oe), "mc-select-trigger-disabled": h(Le), "mc-select-trigger-hovering": h(_e), [h(Ne)]: h(Ne) }]), style: g({ width: h(Ae), height: h(Me) }), onClick: pl }, [k("div", { class: "mc-select-input-wrapper", style: g({ cursor: xl.value }) }, [_(k("input", { "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => O(Ie) ? Ie.value = e3 : null), ref_key: "inputRef", ref: ke, id: h(Ge), class: "mc-select-input", style: g({ width: h($e) ? "100%" : "1px" }), placeholder: e2.placeholder, readonly: !h(Re) || h(Le), disabled: h(Le), onFocus: a2[1] || (a2[1] = (...e3) => h(Ve) && h(Ve)(...e3)), onBlur: a2[2] || (a2[2] = (...e3) => h(Se) && h(Se)(...e3)), onInput: vl, onKeydown: [j(A(dl, ["stop"]), ["enter"]), a2[3] || (a2[3] = j(A((...e3) => h(ze) && h(ze)(...e3), ["stop"]), ["arrow-down"])), a2[4] || (a2[4] = j(A((...e3) => h(ze) && h(ze)(...e3), ["stop"]), ["arrow-up"]))] }, null, 44, de), [[M, h(Ie)]]), nl.value ? x(l3.$slots, "selected-content", { key: 0, selectedOption: ll.value, selectedOptionLabel: tl.value, isDisabled: h(Le) }, () => [we2.value ? (d(), v("ul", me, [(d(true), v(V, null, B(al.value, (e3) => (d(), v("li", { key: `${e3.item}`, class: "mc-select-multi-option" }, [f(h(le), { size: "x-small", type: "selectable", deletable: e3.selectable, emphasis: il.value, disabled: h(Le), onDelete: (l4) => ((e4) => {
172
172
  const l5 = ll.value;
173
- ll.value = J(l5, [e4]), Ol();
174
- })(e3.item) }, { default: y(() => [_(M(e3.label), 1)]), _: 2 }, 1032, ["deletable", "emphasis", "disabled", "onDelete"])]))), 128))])) : (d(), v("div", he, [rl.value ? (d(), b(R(rl.value), { key: ll.value })) : w("", true)]))], true) : w("", true), cl.value ? (d(), v("p", fe, [x(l3.$slots, "placeholder", {}, () => [_(M(e2.placeholder), 1)], true)])) : w("", true)], 4), h(qe) ? (d(), v("div", ge, [h(qe) ? (d(), b(Z, { key: 0, name: h(qe), size: 24 }, null, 8, ["name"])) : w("", true)])) : w("", true), k("div", { class: "mc-select-icon-wrapper", onMouseenter: a2[5] || (a2[5] = (e3) => h(Ze)(true)), onMouseleave: a2[6] || (a2[6] = (e3) => h(Ze)(false)) }, [S(f(Z, { name: "Reject", size: 20, class: "mc-select-clear-icon", onClick: A(h(el), ["stop"]) }, null, 8, ["onClick"]), [[$, kl.value]]), S(f(Z, { name: "Down-Chevron", size: 24, class: m(["mc-select-chevron-icon", { "mc-select-chevron-icon-rotate": h(Le) }]) }, null, 8, ["class"]), [[$, !kl.value]])], 32)], 6)]), content: y(() => [ol.value && e2.showHeader ? (d(), b(ae, { key: 0, class: "mc-select-dropdown-header", "show-tool-bar": false, height: "40px" }, { default: y(() => [x(l3.$slots, "option-header", {}, () => [we2.value ? (d(), v("div", ye, [f(oe, { modelValue: h(ml), "onUpdate:modelValue": a2[7] || (a2[7] = (e3) => O(ml) ? ml.value = e3 : null), content: "Select All", "form-validate": false, partial: h(hl), onChange: h(fl) }, null, 8, ["modelValue", "partial", "onChange"])])) : w("", true)], true)]), _: 3 })) : w("", true), k("ul", { class: "mc-select-list", style: g({ paddingTop: e2.showHeader ? "40px" : "0", paddingBottom: e2.showFooter ? "48px" : "0" }) }, [x(l3.$slots, "default", {}, void 0, true), ol.value ? w("", true) : (d(), v("li", be, [x(l3.$slots, "empty", {}, () => [a2[8] || (a2[8] = k("p", { class: "mc-select-text" }, "No results found", -1))], true)]))], 4), ol.value && e2.showFooter ? (d(), b(te, { key: 1, class: "mc-select-dropdown-footer" }, { "right-button-group": y(() => [x(l3.$slots, "option-footer", {}, () => [we2.value ? (d(), v(V, { key: 0 }, [f(se, { type: "link", size: "small", onClick: yl }, { default: y(() => [...a2[9] || (a2[9] = [_(" Reset ", -1)])]), _: 1 }), f(se, { type: "plain", size: "small", onClick: bl }, { default: y(() => [...a2[10] || (a2[10] = [_(" Apply ", -1)])]), _: 1 })], 64)) : w("", true)], true)]), _: 3 })) : w("", true)]), _: 3 }, 8, ["placement", "style", "popper-options"])], 2));
175
- } }), [["__scopeId", "data-v-9d0a9d1a"]]));
173
+ ll.value = L(l5, [e4]), Ol();
174
+ })(e3.item) }, { default: y(() => [S(I(e3.label), 1)]), _: 2 }, 1032, ["deletable", "emphasis", "disabled", "onDelete"])]))), 128))])) : (d(), v("div", he, [rl.value ? (d(), b(R(rl.value), { key: ll.value })) : w("", true)]))], true) : w("", true), cl.value ? (d(), v("p", fe, [x(l3.$slots, "placeholder", {}, () => [S(I(e2.placeholder), 1)], true)])) : w("", true)], 4), h(qe) ? (d(), v("div", ge, [h(qe) ? (d(), b(h(Z), { key: 0, name: h(qe), size: 24 }, null, 8, ["name"])) : w("", true)])) : w("", true), k("div", { class: "mc-select-icon-wrapper", onMouseenter: a2[5] || (a2[5] = (e3) => h(Ze)(true)), onMouseleave: a2[6] || (a2[6] = (e3) => h(Ze)(false)) }, [_(f(h(Z), { name: "Reject", size: 20, class: "mc-select-clear-icon", onClick: A(h(el), ["stop"]) }, null, 8, ["onClick"]), [[$, kl.value]]), _(f(h(Z), { name: "Down-Chevron", size: 24, class: m(["mc-select-chevron-icon", { "mc-select-chevron-icon-rotate": h(We) }]) }, null, 8, ["class"]), [[$, !kl.value]])], 32)], 6)]), content: y(() => [ol.value && e2.showHeader ? (d(), b(h(ae), { key: 0, class: "mc-select-dropdown-header", "show-tool-bar": false, height: "40px" }, { default: y(() => [x(l3.$slots, "option-header", {}, () => [we2.value ? (d(), v("div", ye, [f(h(oe), { modelValue: h(ml), "onUpdate:modelValue": a2[7] || (a2[7] = (e3) => O(ml) ? ml.value = e3 : null), content: "Select All", "form-validate": false, partial: h(hl), onChange: h(fl) }, null, 8, ["modelValue", "partial", "onChange"])])) : w("", true)], true)]), _: 3 })) : w("", true), k("ul", { class: "mc-select-list", style: g({ paddingTop: e2.showHeader ? "40px" : "0", paddingBottom: e2.showFooter ? "48px" : "0" }) }, [x(l3.$slots, "default", {}, void 0, true), ol.value ? w("", true) : (d(), v("li", be, [x(l3.$slots, "empty", {}, () => [a2[8] || (a2[8] = k("p", { class: "mc-select-text" }, "No results found", -1))], true)]))], 4), ol.value && e2.showFooter ? (d(), b(h(te), { key: 1, class: "mc-select-dropdown-footer" }, { "right-button-group": y(() => [x(l3.$slots, "option-footer", {}, () => [we2.value ? (d(), v(V, { key: 0 }, [f(h(se), { type: "link", size: "small", onClick: yl }, { default: y(() => [...a2[9] || (a2[9] = [S(" Reset ", -1)])]), _: 1 }), f(h(se), { type: "plain", size: "small", onClick: bl }, { default: y(() => [...a2[10] || (a2[10] = [S(" Apply ", -1)])]), _: 1 })], 64)) : w("", true)], true)]), _: 3 })) : w("", true)]), _: 3 }, 8, ["placement", "style", "popper-options"])], 2));
175
+ } }), [["__scopeId", "data-v-47ca4b75"]]));
176
176
  export {
177
- pe as M,
178
- we as a,
177
+ we as M,
178
+ pe as a,
179
179
  ve as b
180
180
  };
@@ -0,0 +1,8 @@
1
+ import { _ as s, u as t } from "./utils-y7s5KtP-.js";
2
+ import { defineComponent as a, createElementBlock as o, openBlock as c, normalizeClass as m, createElementVNode as e, createVNode as i, unref as p, renderSlot as u } from "vue";
3
+ import { M as n } from "./mc-icon-CmYW61Q0.js";
4
+ const r = "mc-status", d = { class: "mc-status-icon" }, f = { class: "mc-status-content" }, l = t(s(a({ name: r, __name: "mc-status", props: { type: { default: "info" } }, setup: (s2) => (t2, a2) => (c(), o("div", { class: m(["mc-status", [`mc-status-${s2.type}`]]) }, [e("div", d, [i(p(n), { name: "Indicator", size: 12 })]), e("p", f, [u(t2.$slots, "default", {}, void 0, true)])], 2)) }), [["__scopeId", "data-v-25f8565f"]]));
5
+ export {
6
+ l as M,
7
+ r as a
8
+ };
@@ -0,0 +1,52 @@
1
+ import { _ as e, u as t } from "./utils-y7s5KtP-.js";
2
+ import { defineComponent as s, computed as l, ref as c, watch as i, onMounted as n, nextTick as m, createElementBlock as a, openBlock as o, normalizeClass as u, createElementVNode as p, createCommentVNode as r, Fragment as d, renderList as v, createBlock as y, toDisplayString as f, unref as h, resolveDynamicComponent as g } from "vue";
3
+ import { findIndex as k, find as b, throttle as _ } from "lodash-es";
4
+ import { useWindowResize as R } from "@mc-plus/hooks";
5
+ import { M as w } from "./mc-success-icon-BuGz3uNE.js";
6
+ const x = "mc-step", C = { class: "mc-step-number-container" }, S = { class: "mc-step-item-number" }, V = { key: 0, class: "mc-step-item-number-text" }, B = { class: "mc-step-item-content" }, q = { key: 0, class: "mc-step-item-content-title" }, j = { class: "mc-step-item-label" }, A = { class: "mc-step-item-desc" }, L = { key: 1, class: "mc-step-item-component" }, M = { key: 0, class: "mc-step-item-component" }, $ = t(e(s({ name: x, __name: "mc-step", props: { modelValue: {}, steps: {}, type: { default: "vertical" } }, emits: ["change", "success"], setup(e2, { expose: t2, emit: s2 }) {
7
+ const x2 = e2, $2 = l(() => "vertical" === x2.type), z = s2, I = c(), D = c(), E = c(), F = c(), G = l(() => k(x2.steps, (e3) => e3.key === x2.modelValue)), H = l(() => {
8
+ var _a;
9
+ return (_a = x2.steps[G.value - 1]) == null ? void 0 : _a.key;
10
+ });
11
+ i(() => x2.modelValue, (e3) => {
12
+ K(), z("change", e3);
13
+ }, { flush: "post" });
14
+ const J = c(), K = (e3 = H.value) => {
15
+ J.value = e3, z("success", e3);
16
+ }, N = l(() => k(x2.steps, (e3) => e3.key === J.value));
17
+ n(() => {
18
+ $2.value ? O() : (P(), Q()), K();
19
+ });
20
+ const O = async () => {
21
+ await m();
22
+ const e3 = N.value, t3 = F.value;
23
+ if (e3 < 0) return void (t3.style.height = "0");
24
+ const s3 = D.value, l2 = s3.querySelectorAll(".mc-step-item");
25
+ if (e3 + 1 > l2.length - 1) return void (t3.style.height = "100%");
26
+ const c2 = l2 == null ? void 0 : l2[e3 + 1], i2 = s3.getBoundingClientRect(), n2 = (c2.getBoundingClientRect().top - i2.top) / (i2.height - 24);
27
+ t3.style.height = 100 * n2 + "%";
28
+ }, P = () => {
29
+ var _a, _b;
30
+ const e3 = D.value, t3 = E.value, s3 = e3.querySelectorAll(".mc-step-item"), l2 = (_a = s3 == null ? void 0 : s3[0]) == null ? void 0 : _a.querySelector(".mc-step-item-number"), c2 = (_b = s3 == null ? void 0 : s3[s3.length - 1]) == null ? void 0 : _b.querySelector(".mc-step-item-number");
31
+ if (!l2 || !c2) return void (t3.style.width = "0px");
32
+ const i2 = e3.getBoundingClientRect(), n2 = l2.getBoundingClientRect(), m2 = c2.getBoundingClientRect();
33
+ t3.style.width = m2.left - n2.left - n2.width + "px", t3.style.left = `${n2.left - i2.left + n2.width}px`;
34
+ }, Q = () => {
35
+ const e3 = F.value, t3 = N.value;
36
+ if (t3 < 0) return void (e3.style.width = "0");
37
+ const s3 = (t3 + 1) / (x2.steps.length - 1), l2 = s3 > 1 ? 1 : s3;
38
+ e3.style.width = 100 * l2 + "%";
39
+ }, T = (e3) => $2.value && e3.component && e3.key === x2.modelValue, U = l(() => {
40
+ var _a;
41
+ return !$2.value && ((_a = b(x2.steps, (e3) => e3.key === x2.modelValue)) == null ? void 0 : _a.component);
42
+ });
43
+ return i(() => J.value, () => {
44
+ $2.value ? O() : Q();
45
+ }), R(_(() => {
46
+ $2.value ? O() : (P(), Q());
47
+ }, 50)), t2({ ref: I, setSuccessStep: K }), (t3, s3) => (o(), a("div", { class: u(["mc-step", `mc-step-${e2.type}`]), ref_key: "_ref", ref: I }, [p("ul", { class: "mc-step-item-container", ref_key: "stepContainerRef", ref: D }, [(o(true), a(d, null, v(e2.steps, (t4, s4) => (o(), a("li", { class: u(["mc-step-item", { "mc-step-item-active": e2.modelValue === t4.key, "mc-step-item-disabled": t4.disabled, "mc-step-item-success": s4 <= N.value }]), key: t4.key }, [p("div", C, [p("div", S, [s4 > N.value || t4.disabled ? (o(), a("span", V, f(s4 + 1), 1)) : (o(), y(h(w), { key: 1 }))])]), p("div", B, [t4.label || t4.desc ? (o(), a("div", q, [p("h3", j, f(t4.label), 1), p("p", A, f(t4.desc), 1)])) : r("", true), T(t4) ? (o(), a("div", L, [(o(), y(g(t4.component)))])) : r("", true)])], 2))), 128)), p("div", { ref_key: "unsuccessLineRef", ref: E, class: "mc-step-line mc-step-unsuccess-line" }, [p("div", { ref_key: "successLineRef", ref: F, class: "mc-step-success-line" }, null, 512)], 512)], 512), U.value ? (o(), a("div", M, [(o(), y(g(U.value)))])) : r("", true)], 2));
48
+ } }), [["__scopeId", "data-v-add0e313"]]));
49
+ export {
50
+ $ as M,
51
+ x as a
52
+ };
@@ -1,13 +1,13 @@
1
1
  import { _ as e, u as s } from "./utils-y7s5KtP-.js";
2
2
  import { ref as t, useSlots as c, watchEffect as i, computed as n, defineComponent as l, createElementBlock as p, openBlock as o, createElementVNode as a, Fragment as d, renderList as u, unref as r, createCommentVNode as m, normalizeClass as h, createBlock as v, resolveDynamicComponent as S, createTextVNode as C, toDisplayString as f } from "vue";
3
3
  import { isArray as x, isString as k, isFunction as y, isNil as b, includes as w } from "lodash-es";
4
- import { M as A } from "./mc-success-icon-CuyL6DXB.js";
5
- import { M as g } from "./mc-icon-4B9i36Sx.js";
4
+ import { M as A } from "./mc-success-icon-BuGz3uNE.js";
5
+ import { M as g } from "./mc-icon-CmYW61Q0.js";
6
6
  import { useProp as I } from "@mc-plus/hooks";
7
7
  import { M as j } from "./mc-step-item-plus-DupEJu7U.js";
8
8
  import { M } from "./mc-step-child-item-plus-CUT06Cwi.js";
9
- const _ = "mc-step-plus", B = { class: "mc-step-plus" }, V = { class: "mc-step-container" }, z = ["onClick"], E = { class: "mc-step-item-icon" }, N = { key: 0, class: "mc-step-item-icon-number" }, P = { key: 1, class: "mc-step-item-icon-point" }, Q = { class: "mc-step-item-content" }, R = { class: "mc-step-item-content-title" }, q = { class: "mc-step-item-label" }, D = { key: 1, class: "mc-step-item-label-title" }, F = { class: "mc-step-item-desc" }, G = { key: 1, class: "mc-step-item-desc-title" }, H = { key: 0, class: "mc-step-item-content-display" }, J = s(e(l({ name: _, __name: "mc-step-plus", props: { modelValue: { default: void 0 }, successSteps: {}, successBehavior: { default: "manual" }, previousBehavior: { default: "last-child" } }, emits: ["update:modelValue", "update:successSteps", "change", "click:step"], setup(e2, { expose: s2, emit: l2 }) {
10
- const _2 = e2, J2 = l2, { stepItems: K, activedStep: L, isActivedStep: O, showStep: T, isSuccessStep: U, showContent: W } = (() => {
9
+ const _ = "mc-step-plus", B = { class: "mc-step-plus" }, V = { class: "mc-step-container" }, z = ["onClick"], E = { class: "mc-step-item-icon" }, N = { key: 0, class: "mc-step-item-icon-number" }, P = { key: 1, class: "mc-step-item-icon-point" }, R = { class: "mc-step-item-content" }, q = { class: "mc-step-item-content-title" }, D = { class: "mc-step-item-label" }, F = { key: 1, class: "mc-step-item-label-title" }, G = { class: "mc-step-item-desc" }, H = { key: 1, class: "mc-step-item-desc-title" }, J = { key: 0, class: "mc-step-item-content-display" }, K = s(e(l({ name: _, __name: "mc-step-plus", props: { modelValue: { default: void 0 }, successSteps: {}, successBehavior: { default: "manual" }, previousBehavior: { default: "last-child" } }, emits: ["update:modelValue", "update:successSteps", "change", "click:step"], setup(e2, { expose: s2, emit: l2 }) {
10
+ const _2 = e2, K2 = l2, { stepItems: L, activedStep: O, isActivedStep: Q, showStep: T, isSuccessStep: U, showContent: W } = (() => {
11
11
  const e3 = t([]), s3 = c();
12
12
  i(() => {
13
13
  var _a;
@@ -43,28 +43,28 @@ const _ = "mc-step-plus", B = { class: "mc-step-plus" }, V = { class: "mc-step-c
43
43
  }, showContent: (e4) => !(!e4.content || e4.step !== l3.value && !e4.showContent) };
44
44
  })(), X = () => {
45
45
  var _a;
46
- const e3 = ((_a = L.value) == null ? void 0 : _a.index) || -1;
47
- if (e3 < K.value.length - 1) {
48
- let s3 = e3 + 1, t2 = K.value[s3];
49
- t2.hasChildren && (t2 = K.value[s3 + 1]), (t2 == null ? void 0 : t2.step) && Y(t2.step);
46
+ const e3 = ((_a = O.value) == null ? void 0 : _a.index) || -1;
47
+ if (e3 < L.value.length - 1) {
48
+ let s3 = e3 + 1, t2 = L.value[s3];
49
+ t2.hasChildren && (t2 = L.value[s3 + 1]), (t2 == null ? void 0 : t2.step) && Y(t2.step);
50
50
  }
51
51
  }, Y = (e3) => {
52
- J2("update:modelValue", e3), J2("change", e3);
52
+ K2("update:modelValue", e3), K2("change", e3);
53
53
  };
54
54
  return s2({ goStep: (e3) => {
55
55
  e3 ? Y(e3) : X();
56
56
  }, goNextStep: X, goPreviousStep: () => {
57
57
  var _a, _b, _c;
58
- const e3 = ((_a = L.value) == null ? void 0 : _a.index) || -1;
58
+ const e3 = ((_a = O.value) == null ? void 0 : _a.index) || -1;
59
59
  if (e3 > 0) {
60
- let s3 = e3 - 1, t2 = K.value[s3];
61
- ((_b = L.value) == null ? void 0 : _b.isChild) && L.value.parentStep === t2 && (t2 = K.value[s3 - 1]), "first-child" === _2.previousBehavior && (t2 == null ? void 0 : t2.isChild) && !b((_c = t2.parentStep) == null ? void 0 : _c.index) && (s3 = t2.parentStep.index + 1, t2 = K.value[s3]), (t2 == null ? void 0 : t2.step) && Y(t2.step);
60
+ let s3 = e3 - 1, t2 = L.value[s3];
61
+ ((_b = O.value) == null ? void 0 : _b.isChild) && O.value.parentStep === t2 && (t2 = L.value[s3 - 1]), "first-child" === _2.previousBehavior && (t2 == null ? void 0 : t2.isChild) && !b((_c = t2.parentStep) == null ? void 0 : _c.index) && (s3 = t2.parentStep.index + 1, t2 = L.value[s3]), (t2 == null ? void 0 : t2.step) && Y(t2.step);
62
62
  }
63
- } }), (e3, s3) => (o(), p("div", B, [a("div", V, [(o(true), p(d, null, u(r(K), (e4) => (o(), p(d, { key: e4.step }, [r(T)(e4) ? (o(), p("div", { key: 0, class: h(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": r(O)(e4), "mc-step-item-success": r(U)(e4) }]) }, [a("div", { class: "mc-step-item-indicator", onClick: (s4) => ((e5) => {
64
- J2("click:step", e5.step);
65
- })(e4) }, [a("div", E, [e4.isChild || r(b)(e4.parentIndex) ? (o(), p("div", P)) : (o(), p("div", N, [r(U)(e4) ? (o(), v(A, { key: 0 })) : (o(), p(d, { key: 1 }, [e4.iconContent ? (o(), v(S(e4.iconContent), { key: e4.step, step: e4.step, isSuccess: r(U)(e4), isActived: r(O)(e4) }, null, 8, ["step", "isSuccess", "isActived"])) : e4.icon ? (o(), v(g, { key: 1, name: e4.icon }, null, 8, ["name"])) : (o(), p(d, { key: 2 }, [C(f(e4.parentIndex + 1), 1)], 64))], 64))]))])], 8, z), a("div", Q, [a("div", R, [a("div", q, [e4.labelContent ? (o(), v(S(e4.labelContent), { key: e4.step, step: e4.step, label: e4.label, isSuccess: r(U)(e4), isActived: r(O)(e4) }, null, 8, ["step", "label", "isSuccess", "isActived"])) : (o(), p("div", D, f(e4.label), 1))]), a("div", F, [e4.descContent ? (o(), v(S(e4.descContent), { key: e4.step, step: e4.step, desc: e4.desc, isSuccess: r(U)(e4), isActived: r(O)(e4) }, null, 8, ["step", "desc", "isSuccess", "isActived"])) : (o(), p("div", G, f(e4.desc), 1))])]), r(W)(e4) ? (o(), p("div", H, [(o(), v(S(e4.content), { key: e4.step, step: e4.step, isSuccess: r(U)(e4), isActived: r(O)(e4) }, null, 8, ["step", "isSuccess", "isActived"]))])) : m("", true)])], 2)) : m("", true)], 64))), 128))])]));
66
- } }), [["__scopeId", "data-v-899b67c5"]]));
63
+ } }), (e3, s3) => (o(), p("div", B, [a("div", V, [(o(true), p(d, null, u(r(L), (e4) => (o(), p(d, { key: e4.step }, [r(T)(e4) ? (o(), p("div", { key: 0, class: h(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": r(Q)(e4), "mc-step-item-success": r(U)(e4) }]) }, [a("div", { class: "mc-step-item-indicator", onClick: (s4) => ((e5) => {
64
+ K2("click:step", e5.step);
65
+ })(e4) }, [a("div", E, [e4.isChild || r(b)(e4.parentIndex) ? (o(), p("div", P)) : (o(), p("div", N, [r(U)(e4) ? (o(), v(r(A), { key: 0 })) : (o(), p(d, { key: 1 }, [e4.iconContent ? (o(), v(S(e4.iconContent), { key: e4.step, step: e4.step, isSuccess: r(U)(e4), isActived: r(Q)(e4) }, null, 8, ["step", "isSuccess", "isActived"])) : e4.icon ? (o(), v(r(g), { key: 1, name: e4.icon }, null, 8, ["name"])) : (o(), p(d, { key: 2 }, [C(f(e4.parentIndex + 1), 1)], 64))], 64))]))])], 8, z), a("div", R, [a("div", q, [a("div", D, [e4.labelContent ? (o(), v(S(e4.labelContent), { key: e4.step, step: e4.step, label: e4.label, isSuccess: r(U)(e4), isActived: r(Q)(e4) }, null, 8, ["step", "label", "isSuccess", "isActived"])) : (o(), p("div", F, f(e4.label), 1))]), a("div", G, [e4.descContent ? (o(), v(S(e4.descContent), { key: e4.step, step: e4.step, desc: e4.desc, isSuccess: r(U)(e4), isActived: r(Q)(e4) }, null, 8, ["step", "desc", "isSuccess", "isActived"])) : (o(), p("div", H, f(e4.desc), 1))])]), r(W)(e4) ? (o(), p("div", J, [(o(), v(S(e4.content), { key: e4.step, step: e4.step, isSuccess: r(U)(e4), isActived: r(Q)(e4) }, null, 8, ["step", "isSuccess", "isActived"]))])) : m("", true)])], 2)) : m("", true)], 64))), 128))])]));
66
+ } }), [["__scopeId", "data-v-d451c649"]]));
67
67
  export {
68
- J as M,
68
+ K as M,
69
69
  _ as a
70
70
  };
@@ -0,0 +1,76 @@
1
+ import { defineComponent as e, ref as t, onMounted as s, watch as l, provide as c, computed as a, createElementBlock as o, openBlock as m, renderSlot as u, inject as i, onBeforeUnmount as d, normalizeStyle as n, normalizeClass as p, createElementVNode as v, createBlock as r, unref as h, createTextVNode as f, toDisplayString as b, createCommentVNode as y } from "vue";
2
+ import { findIndex as S, indexOf as I, isNil as g } from "lodash-es";
3
+ import { M as _ } from "./mc-icon-CmYW61Q0.js";
4
+ import { M as C } from "./mc-success-icon-BuGz3uNE.js";
5
+ import { useResizeObserver as k } from "@mc-plus/hooks";
6
+ import { _ as B, u as x } from "./utils-y7s5KtP-.js";
7
+ const V = Symbol("StepV2Context"), $ = Symbol("StepItemV2Context"), w = { class: "mc-step-v2" }, M = e({ name: "McStepV2", __name: "mc-step-v2", props: { modelValue: {}, succeed: { type: Boolean, default: void 0 }, showContent: { type: Boolean, default: false } }, emits: ["update:modelValue", "change"], setup(e2, { expose: i2 }) {
8
+ const d2 = e2, n2 = t([]), p2 = t(-1), v2 = (e3) => {
9
+ e3 > -1 ? e3 > n2.value.length - 1 ? p2.value = n2.value.length - 1 : p2.value = e3 : p2.value = -1;
10
+ }, r2 = () => {
11
+ const e3 = S(n2.value, (e4) => e4.name === d2.modelValue);
12
+ v2(e3 - 1);
13
+ };
14
+ return s(() => {
15
+ r2();
16
+ }), l(() => d2.modelValue, () => {
17
+ r2();
18
+ }, { flush: "post" }), c(V, { successStepIndex: p2, activeStep: a(() => d2.modelValue), succeed: a(() => d2.succeed), showContent: a(() => d2.showContent), stepItems: n2.value, addStepItem: (e3) => {
19
+ n2.value.push(e3);
20
+ }, removeStepItem: (e3) => {
21
+ const t2 = S(n2.value, (t3) => t3.name === e3.name);
22
+ t2 > -1 && n2.value.splice(t2, 1);
23
+ } }), i2({ setSuccessIndex: v2, setSuccessStep: (e3) => {
24
+ const t2 = S(n2.value, (t3) => t3.name === e3);
25
+ v2(t2);
26
+ } }), (e3, t2) => (m(), o("div", w, [u(e3.$slots, "default")]));
27
+ } }), R = { class: "mc-step-item-step-bar-number" }, j = { key: 0, class: "mc-step-item-step-bar-number-text" }, H = { key: 0, class: "mc-step-item-label" }, A = { class: "mc-step-item-label-title" }, q = { class: "mc-step-item-label-desc" }, z = { key: 1, class: "mc-step-item-slot" }, D = B(e({ name: "McStepItemV2", __name: "mc-step-item-v2", props: { icon: {}, minHeight: { default: "64px" }, name: {}, label: {}, desc: {}, disabled: { type: Boolean }, succeed: { type: Boolean, default: void 0 }, showContent: { type: Boolean, default: false } }, setup(e2) {
28
+ const S2 = e2, B2 = t(), x2 = t(), w2 = i(V, void 0);
29
+ s(() => {
30
+ w2 == null ? void 0 : w2.addStepItem(S2);
31
+ }), d(() => {
32
+ w2 == null ? void 0 : w2.removeStepItem(S2);
33
+ });
34
+ const M2 = a(() => I(w2 == null ? void 0 : w2.stepItems, S2)), D2 = a(() => {
35
+ var _a;
36
+ return ((_a = w2 == null ? void 0 : w2.activeStep) == null ? void 0 : _a.value) === S2.name;
37
+ }), E2 = a(() => {
38
+ var _a;
39
+ return ((_a = w2 == null ? void 0 : w2.showContent) == null ? void 0 : _a.value) || S2.showContent || D2.value;
40
+ }), F2 = a(() => {
41
+ var _a, _b, _c;
42
+ return g((_a = w2 == null ? void 0 : w2.succeed) == null ? void 0 : _a.value) ? g(S2.succeed) ? (((_b = w2 == null ? void 0 : w2.successStepIndex) == null ? void 0 : _b.value) ?? -1) >= M2.value : S2.succeed : (_c = w2 == null ? void 0 : w2.succeed) == null ? void 0 : _c.value;
43
+ }), G2 = a(() => {
44
+ var _a;
45
+ return ((_a = w2 == null ? void 0 : w2.stepItems) == null ? void 0 : _a.length) === M2.value + 1;
46
+ });
47
+ k(B2, () => {
48
+ if (G2.value && B2.value && x2.value) {
49
+ const e3 = Array.from(B2.value.querySelectorAll(".mc-step-child-item-v2") ?? []);
50
+ if (e3.length > 0) {
51
+ const t2 = e3[e3.length - 1], { top: s2 } = t2.getBoundingClientRect(), { top: l2 } = x2.value.getBoundingClientRect();
52
+ J2(s2 - l2 + 4);
53
+ } else J2(40);
54
+ }
55
+ });
56
+ const J2 = (e3) => {
57
+ x2.value && e3 && (x2.value.style.height = "number" == typeof e3 ? `${e3}px` : e3);
58
+ };
59
+ return l(G2, (e3) => {
60
+ J2(e3 ? 40 : "auto");
61
+ }), c($, { succeed: a(() => F2.value), actived: a(() => D2.value) }), (t2, s2) => (m(), o("div", { class: p(["mc-step-item-v2", { "mc-step-item-actived": D2.value, "mc-step-item-success": F2.value }]), style: n({ minHeight: e2.minHeight }) }, [v("div", { class: "mc-step-item-step-bar", ref_key: "stepBarRef", ref: x2 }, [v("div", R, [F2.value ? (m(), r(h(C), { key: 1, class: "mc-step-item-step-bar-success-icon" })) : (m(), o("div", j, [e2.icon ? (m(), r(h(_), { key: 0, name: e2.icon, class: "mc-step-item-step-bar-icon" }, null, 8, ["name"])) : u(t2.$slots, "step-number", { key: 1 }, () => [f(b(M2.value + 1), 1)], true)]))])], 512), v("div", { class: "mc-step-item-content", ref_key: "contentRef", ref: B2 }, [e2.label || e2.desc ? (m(), o("div", H, [u(t2.$slots, "label", {}, () => [v("span", A, b(e2.label), 1)], true), u(t2.$slots, "desc", {}, () => [v("p", q, b(e2.desc), 1)], true)])) : y("", true), E2.value ? (m(), o("div", z, [u(t2.$slots, "default", {}, void 0, true)])) : y("", true)], 512)], 6));
62
+ } }), [["__scopeId", "data-v-d41e82d5"]]), E = { class: "mc-step-child-item-content" }, F = { key: 0, class: "mc-step-child-item-label" }, G = { class: "mc-step-child-item-label-title" }, J = { class: "mc-step-child-item-label-desc" }, K = { key: 1, class: "mc-step-child-item-slot" }, L = B(e({ name: "McStepChildItemV2", __name: "mc-step-child-item-v2", props: { name: {}, label: {}, desc: {}, disabled: { type: Boolean }, succeed: { type: Boolean, default: void 0 }, showContent: { type: Boolean } }, setup(e2) {
63
+ const t2 = e2, s2 = i($, void 0), l2 = a(() => {
64
+ var _a;
65
+ return (_a = s2 == null ? void 0 : s2.actived) == null ? void 0 : _a.value;
66
+ }), c2 = a(() => {
67
+ var _a, _b;
68
+ return ((_a = s2 == null ? void 0 : s2.succeed) == null ? void 0 : _a.value) ? (_b = s2 == null ? void 0 : s2.succeed) == null ? void 0 : _b.value : t2.succeed;
69
+ });
70
+ return (t3, s3) => (m(), o("div", { class: p(["mc-step-child-item-v2", { "mc-step-child-item-actived": l2.value, "mc-step-child-item-success": c2.value }]) }, [v("div", E, [e2.label || e2.desc ? (m(), o("div", F, [v("span", G, b(e2.label), 1), v("p", J, b(e2.desc), 1)])) : y("", true), t3.$slots.default ? (m(), o("div", K, [u(t3.$slots, "default", {}, void 0, true)])) : y("", true)])], 2));
71
+ } }), [["__scopeId", "data-v-f01aecff"]]), N = x(M), O = x(D), P = x(L);
72
+ export {
73
+ P as M,
74
+ O as a,
75
+ N as b
76
+ };
@@ -0,0 +1,7 @@
1
+ import { defineComponent as s, createElementBlock as e, openBlock as t, normalizeStyle as o, createElementVNode as c } from "vue";
2
+ import { _ as i, u as l } from "./utils-y7s5KtP-.js";
3
+ const n = "mc-success-icon", r = l(i(s({ name: n, __name: "mc-success-icon", props: { width: { default: "40px" }, height: { default: "40px" } }, setup: (s2) => (i2, l2) => (t(), e("svg", { class: "success-icon", style: o({ width: s2.width, height: s2.height }), viewBox: "0 0 400 400" }, [...l2[0] || (l2[0] = [c("circle", { class: "circle", fill: "none", transform: "rotate(-90 200 200)", "stroke-width": "20", cx: "200", cy: "200", r: "190", "stroke-linecap": "round" }, null, -1), c("polyline", { class: "tick", fill: "none", "stroke-width": "26", points: "120,214 173,260 274,160", "stroke-linecap": "round", "stroke-linejoin": "round" }, null, -1)])], 4)) }), [["__scopeId", "data-v-be465c78"]]));
4
+ export {
5
+ r as M,
6
+ n as a
7
+ };
@@ -0,0 +1,15 @@
1
+ import { _ as e, u as l } from "./utils-y7s5KtP-.js";
2
+ import { defineComponent as t, createElementBlock as a, openBlock as s, renderSlot as i, createCommentVNode as o, createElementVNode as c, toDisplayString as n, createVNode as p, unref as h, useSlots as d, computed as m, createBlock as u, createSlots as v, withCtx as b, normalizeStyle as r, normalizeClass as w, withKeys as f, withModifiers as x } from "vue";
3
+ import { M as y } from "./mc-tooltip-BNmrE7e_.js";
4
+ import { u as $ } from "./mc-form-B74FOC7S.js";
5
+ const k = "mc-switch", I = "mc-switch-label", T = { class: "mc-switch-label-wrapper" }, _ = { class: "mc-switch-label" }, g = { class: "mc-switch-help" }, V = e(t({ name: I, __name: "mc-switch-label", props: { label: {}, helpText: {}, helpIcon: { default: "Info" } }, setup: (e2) => (l2, t2) => (s(), a("div", T, [e2.label || l2.$slots.label ? i(l2.$slots, "label", { key: 0 }, () => [c("span", _, n(e2.label), 1)], true) : o("", true), e2.helpText || l2.$slots.help ? i(l2.$slots, "help", { key: 1 }, () => [c("div", g, [p(h(y), { "icon-name": e2.helpIcon, content: e2.helpText, "icon-size": 22 }, null, 8, ["icon-name", "content"])])], true) : o("", true)])) }), [["__scopeId", "data-v-52de74a9"]]), j = { class: "mc-switch" }, z = ["id", "disabled", "value", "onKeypress"], B = { class: "mc-switch-inner" }, K = { class: "mc-switch-inner-text" }, M = { class: "mc-switch-inner-text" }, P = l(e(t({ name: k, __name: "mc-switch", props: { modelValue: { type: Boolean, default: false }, width: {}, height: {}, activeText: {}, inactiveText: {}, disabled: { type: Boolean, default: false }, size: { default: "medium" }, label: {}, labelPosition: { default: "right" }, helpIcon: { default: "Info" }, helpText: {} }, emits: ["update:modelValue", "change"], setup(e2, { emit: l2 }) {
6
+ const t2 = e2, p2 = l2, y2 = d(), { formItem: k2, formId: I2, formDisabled: T2, validateStyle: _2 } = $(), g2 = m(() => t2.modelValue), P2 = async () => {
7
+ T2.value || (p2("update:modelValue", !t2.modelValue), p2("change", !t2.modelValue), k2 == null ? void 0 : k2.validate("input"));
8
+ }, C = m(() => y2.label || t2.label || y2.help || t2.helpText ? t2.labelPosition : void 0), D = m(() => "left" === C.value), S = m(() => "right" === C.value);
9
+ return (l3, t3) => (s(), a("div", j, [D.value ? (s(), u(V, { key: 0, label: e2.label, "help-text": e2.helpText, "help-icon": e2.helpIcon }, v({ _: 2 }, [l3.$slots.label ? { name: "label", fn: b(() => [i(l3.$slots, "label", {}, void 0, true)]), key: "0" } : void 0, l3.$slots.help ? { name: "help", fn: b(() => [i(l3.$slots, "help", {}, void 0, true)]), key: "1" } : void 0]), 1032, ["label", "help-text", "help-icon"])) : o("", true), c("label", { class: w(["mc-switch-wrapper", [g2.value ? "mc-switch-actived" : "mc-switch-inactive", { "mc-switch-disabled": h(T2) }, `mc-switch-${e2.size}`, h(_2)]]), style: r({ width: e2.width, height: e2.height }) }, [c("input", { id: h(I2), type: "checkbox", class: "mc-switch-input", disabled: e2.disabled, value: e2.modelValue, onChange: P2, onKeypress: f(x(P2, ["prevent", "stop"]), ["enter"]) }, null, 40, z), c("div", B, [g2.value ? i(l3.$slots, "active", { key: 0 }, () => [c("span", K, n(e2.activeText), 1)], true) : i(l3.$slots, "inactive", { key: 1 }, () => [c("span", M, n(e2.inactiveText), 1)], true)])], 6), S.value ? (s(), u(V, { key: 1, label: e2.label, "help-text": e2.helpText, "help-icon": e2.helpIcon }, v({ _: 2 }, [l3.$slots.label ? { name: "label", fn: b(() => [i(l3.$slots, "label", {}, void 0, true)]), key: "0" } : void 0, l3.$slots.help ? { name: "help", fn: b(() => [i(l3.$slots, "help", {}, void 0, true)]), key: "1" } : void 0]), 1032, ["label", "help-text", "help-icon"])) : o("", true)]));
10
+ } }), [["__scopeId", "data-v-3e199281"]]));
11
+ export {
12
+ P as M,
13
+ k as a,
14
+ I as b
15
+ };
@@ -1,53 +1,53 @@
1
1
  import { _ as e, u as a } from "./utils-y7s5KtP-.js";
2
- import { defineComponent as t, ref as n, useSlots as l, watchEffect as d, Fragment as i, h as r, computed as s, onMounted as o, onUnmounted as m, watch as p, createElementBlock as c, openBlock as u, normalizeClass as v, createElementVNode as f, createCommentVNode as y, normalizeStyle as g, renderList as b, toDisplayString as h, createBlock as w, resolveDynamicComponent as _ } from "vue";
2
+ import { defineComponent as t, ref as n, useSlots as l, watchEffect as d, Fragment as i, h as r, computed as s, onMounted as o, onUnmounted as m, watch as c, createElementBlock as p, openBlock as u, normalizeClass as v, createElementVNode as f, createCommentVNode as y, normalizeStyle as g, renderList as b, toDisplayString as h, createBlock as w, resolveDynamicComponent as _ } from "vue";
3
3
  import { map as k, filter as P, find as V, findIndex as x } from "lodash-es";
4
4
  import { M as R } from "./mc-tab-item-CqXL4HVs.js";
5
5
  const C = "mc-tab", L = ["onClick"], $ = { key: 0, class: "mc-tab-nav-item-count" }, j = { class: "mc-tab-actived-component-wrapper" }, A = a(e(t({ name: C, __name: "mc-tab", props: { modelValue: {}, type: { default: "plain" }, wrapperPadding: { default: "0" } }, emits: ["update:modelValue", "change"], setup(e2, { expose: a2, emit: t2 }) {
6
- const C2 = e2, A2 = t2, B = n(), M = n(), I = n(), N = n([]), T = l();
6
+ const C2 = e2, A2 = t2, B = n(), M = n(), X = n(), I = n([]), N = l();
7
7
  d(() => {
8
- if (!T.default) return void (N.value = []);
9
- let e3 = T.default();
10
- e3.length && e3[0].type === i && (e3 = [...Array.from(e3[0].children)]), N.value = k(P(e3, (e4) => e4.type.name === R), (e4) => {
8
+ if (!N.default) return void (I.value = []);
9
+ let e3 = N.default();
10
+ e3.length && e3[0].type === i && (e3 = [...Array.from(e3[0].children)]), I.value = k(P(e3, (e4) => e4.type.name === R), (e4) => {
11
11
  var _a, _b, _c;
12
12
  const a3 = e4.props;
13
13
  return { _vnode: r("div", (_c = (_b = (_a = e4.children) == null ? void 0 : _a.default) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c[0]), ...a3 };
14
14
  });
15
15
  });
16
- const W = s(() => V(N.value, (e3) => e3.name === C2.modelValue)), X = s(() => "plain" === C2.type);
16
+ const T = s(() => V(I.value, (e3) => e3.name === C2.modelValue)), q = s(() => "plain" === C2.type);
17
17
  o(async () => {
18
- q(C2.modelValue), setTimeout(() => {
19
- z();
18
+ z(C2.modelValue), setTimeout(() => {
19
+ D();
20
20
  });
21
21
  }), m(() => {
22
- z(false);
22
+ D(false);
23
23
  });
24
- const q = (e3) => {
25
- if (!X.value) return;
26
- const a3 = I.value, t3 = M.value, n2 = x(N.value, (a4) => a4.name === e3);
24
+ const z = (e3) => {
25
+ if (!q.value) return;
26
+ const a3 = X.value, t3 = M.value, n2 = x(I.value, (a4) => a4.name === e3);
27
27
  if (n2 < 0) return void (a3.style.width = "0");
28
28
  const l2 = Array.from(t3.children)[n2], { x: d2, width: i2 } = l2.getBoundingClientRect(), { x: r2 } = t3.getBoundingClientRect();
29
29
  a3.style.width = `${i2}px`, a3.style.transform = `translateX(${d2 - r2}px)`;
30
- }, z = (e3 = true) => {
31
- const a3 = I.value;
32
- X.value && a3 && (a3.style.transition = e3 ? "transform 0.3s ease-in-out" : "");
30
+ }, D = (e3 = true) => {
31
+ const a3 = X.value;
32
+ q.value && a3 && (a3.style.transition = e3 ? "transform 0.3s ease-in-out" : "");
33
33
  };
34
- p(() => C2.modelValue, (e3) => {
35
- q(e3);
34
+ c(() => C2.modelValue, (e3) => {
35
+ z(e3);
36
36
  });
37
- const D = s(() => {
37
+ const E = s(() => {
38
38
  var _a;
39
39
  return "string" == typeof C2.wrapperPadding ? C2.wrapperPadding : ((_a = C2.wrapperPadding) == null ? void 0 : _a.left) ?? "0";
40
- }), E = s(() => {
40
+ }), F = s(() => {
41
41
  var _a;
42
42
  return "string" == typeof C2.wrapperPadding ? C2.wrapperPadding : ((_a = C2.wrapperPadding) == null ? void 0 : _a.right) ?? "0";
43
43
  });
44
44
  return a2({ ref: B }), (a3, t3) => {
45
45
  var _a;
46
- return u(), c("div", { class: v(["mc-tab", `mc-tab-${e2.type}`]), ref_key: "_ref", ref: B }, [f("div", { class: "mc-tab-nav", style: g({ paddingLeft: D.value, paddingRight: E.value }) }, [f("div", { class: "mc-tab-nav-wrapper", ref_key: "tabNavRef", ref: M }, [(u(true), c(i, null, b(N.value, (a4) => (u(), c("div", { class: v(["mc-tab-nav-item", { "mc-tab-nav-item-active": a4.name === e2.modelValue, "mc-tab-nav-item-disabled": a4.disabled }]), key: a4.name, onClick: (e3) => ((e4) => {
46
+ return u(), p("div", { class: v(["mc-tab", `mc-tab-${e2.type}`]), ref_key: "_ref", ref: B }, [f("div", { class: "mc-tab-nav", style: g({ paddingLeft: E.value, paddingRight: F.value }) }, [f("div", { class: "mc-tab-nav-wrapper", ref_key: "tabNavRef", ref: M }, [(u(true), p(i, null, b(I.value, (a4) => (u(), p("div", { class: v(["mc-tab-nav-item", { "mc-tab-nav-item-active": a4.name === e2.modelValue, "mc-tab-nav-item-disabled": a4.disabled }]), key: a4.name, onClick: (e3) => ((e4) => {
47
47
  e4.disabled || (A2("update:modelValue", e4.name), A2("change", e4.name));
48
- })(a4) }, [f("span", null, h(a4.label), 1), a4.count ? (u(), c("span", $, h(a4.count), 1)) : y("", true)], 10, L))), 128))], 512), X.value ? (u(), c("div", { key: 0, class: "mc-tab-line", ref_key: "tabLineRef", ref: I }, null, 512)) : y("", true)], 4), ((_a = W.value) == null ? void 0 : _a._vnode) ? (u(), c("div", { key: 0, class: "mc-tab-actived-component", style: g({ paddingLeft: D.value, paddingRight: E.value }) }, [f("div", j, [(u(), w(_(W.value._vnode), { key: W.value.name }))])], 4)) : y("", true)], 2);
48
+ })(a4) }, [f("span", null, h(a4.label), 1), a4.count ? (u(), p("span", $, h(a4.count), 1)) : y("", true)], 10, L))), 128))], 512), q.value ? (u(), p("div", { key: 0, class: "mc-tab-line", ref_key: "tabLineRef", ref: X }, null, 512)) : y("", true)], 4), ((_a = T.value) == null ? void 0 : _a._vnode) ? (u(), p("div", { key: 0, class: "mc-tab-actived-component", style: g({ paddingLeft: E.value, paddingRight: F.value }) }, [f("div", j, [(u(), w(_(T.value._vnode), { key: T.value.name }))])], 4)) : y("", true)], 2);
49
49
  };
50
- } }), [["__scopeId", "data-v-3454a41a"]]));
50
+ } }), [["__scopeId", "data-v-2c21b5ce"]]));
51
51
  export {
52
52
  A as M,
53
53
  C as a
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, computed as a, createElementBlock as l, createCommentVNode as t, openBlock as n, normalizeClass as o, renderSlot as i, Fragment as s, createTextVNode as r, toDisplayString as c, useSlots as u, ref as d, normalizeStyle as p, createElementVNode as g, renderList as v, createVNode as m, unref as h, createBlock as f, createSlots as b, withCtx as _, mergeProps as y, watch as w, onMounted as k, nextTick as S, toRefs as x, normalizeProps as C, guardReactiveProps as R } from "vue";
2
- import { a as z } from "./mc-checkbox-C-9q1uwS.js";
2
+ import { M as z } from "./mc-checkbox-Dyzog85d.js";
3
3
  import { _ as I, u as P } from "./utils-y7s5KtP-.js";
4
- import { M as $ } from "./mc-icon-4B9i36Sx.js";
4
+ import { m as $ } from "./mc-icon-CmYW61Q0.js";
5
5
  const M = ["rowspan", "colspan"], H = I(e({ __name: "mc-table-cell", props: { row: {}, column: {}, rowIndex: {}, columnIndex: {}, pagination: {}, spanMethod: { type: Function } }, setup(e2) {
6
6
  const u2 = e2, d2 = a(() => u2.row[u2.column.prop]), p2 = a(() => {
7
7
  const e3 = [u2.column.className];