mc-plus 1.0.63 → 1.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/{hooks-CGzJKvr_.js → hooks-DghKpOue.js} +4 -3
- package/dist/es/index.js +38 -38
- package/dist/es/{mc-alert-message-CinXZ0tM.js → mc-alert-message-D5xabGCX.js} +2 -2
- package/dist/es/{mc-button-jjZ1cFJx.js → mc-button-B-2mob1r.js} +3 -3
- package/dist/es/{mc-checkbox-DBTBERJQ.js → mc-checkbox-iP5RHA6x.js} +4 -4
- package/dist/es/{mc-collapse-4DWyiXIU.js → mc-collapse-C2oWrpLp.js} +3 -3
- package/dist/es/{mc-copy-BcM4lyRW.js → mc-copy-Baim9vBo.js} +3 -3
- package/dist/es/{mc-count-CMSVLQR8.js → mc-count-BqyWuWKT.js} +1 -1
- package/dist/es/{mc-currency-icon-jT9o6zvb.js → mc-currency-icon-Do56_Rk9.js} +2 -2
- package/dist/es/{mc-divider-CvAVIbPj.js → mc-divider-BSXy8GNr.js} +1 -1
- package/dist/es/{mc-drawer-CNeHLu-v.js → mc-drawer-CeCN5c5X.js} +5 -5
- package/dist/es/{mc-footer-DTmWsLYW.js → mc-footer-DjlFAv9f.js} +1 -1
- package/dist/es/{mc-form-DDfiOG9s.js → mc-form-Bf0120BQ.js} +4 -4
- package/dist/es/{mc-icon-IbJYufG-.js → mc-icon-B_dAlj4r.js} +9 -8
- package/dist/es/{mc-input-DJB38OBY.js → mc-input-C5MU4U2V.js} +23 -23
- package/dist/es/{mc-lightbox-BsUeQpwu.js → mc-lightbox-8zpx4nrJ.js} +5 -5
- package/dist/es/{mc-loading-CXadQqQf.js → mc-loading-C311OVMI.js} +6 -5
- package/dist/es/{mc-modal-header-5_k9U4WX.js → mc-modal-header-CMNRK0Rb.js} +3 -3
- package/dist/es/{mc-otp-DWzv8zKs.js → mc-otp-BE08aHEv.js} +5 -5
- package/dist/es/{mc-overlay-D3L83lMC.js → mc-overlay-BHxTmf2H.js} +1 -1
- package/dist/es/{mc-popper-B08tDa9O.js → mc-popper-B8qMu2va.js} +3 -3
- package/dist/es/{mc-progress-bar-XvvNZ-ef.js → mc-progress-bar-GGuMUhLo.js} +3 -3
- package/dist/es/{mc-radio-BcfwMaZZ.js → mc-radio-BPBdgFH4.js} +4 -4
- package/dist/es/{mc-reset-B-jk5Wxa.js → mc-reset-hnnz6SoG.js} +2 -2
- package/dist/es/{mc-secondary-menu-CLZVBsLM.js → mc-secondary-menu-2eW8se9v.js} +2 -2
- package/dist/es/{mc-select-B-r8B--e.js → mc-select-D4OYQtvg.js} +12 -12
- package/dist/es/{mc-status-C2V51mhO.js → mc-status-Bbu0MyzD.js} +2 -2
- package/dist/es/{mc-step-CkJYxpIa.js → mc-step-DKfRXGSk.js} +7 -8
- package/dist/es/{mc-success-icon-BiN_K4dV.js → mc-success-icon-Cj-5Hgzy.js} +1 -1
- package/dist/es/{mc-switch-3iWF558F.js → mc-switch-fuT3qt1P.js} +3 -3
- package/dist/es/mc-tab-D_pxBB3w.js +641 -0
- package/dist/es/{mc-tag-BBOwBzDa.js → mc-tag-jYhZ-J2S.js} +2 -2
- package/dist/es/{mc-textarea-DJcRz9YP.js → mc-textarea-DtsztsBR.js} +3 -3
- package/dist/es/{mc-title-DR3kaXNt.js → mc-title-C_lOz0mp.js} +3 -3
- package/dist/es/{mc-toast-QxGn_8nt.js → mc-toast-DB9Y1bvS.js} +2 -2
- package/dist/es/{mc-tooltip-D31bUUmR.js → mc-tooltip-4mxkVOGx.js} +3 -3
- package/dist/es/{mc-upload-Dem3mTAo.js → mc-upload-D8-d7Xhv.js} +7 -7
- package/dist/es/theme/mc-collapse.css +1 -1
- package/dist/es/theme/mc-step.css +1 -1
- package/dist/es/theme/mc-tab.css +1 -1
- package/dist/es/utils-BDbMLK9w.js +36 -0
- package/dist/es/{vendor-COcyTY4s.js → vendor-CExPGg1i.js} +276 -260
- package/dist/index.css +1 -1
- package/dist/types/components/mc-icon-plus/types.d.ts +1 -1
- package/dist/types/components/mc-table-plus/constant.d.ts +6 -6
- package/dist/types/components/mc-table-plus/hooks/index.d.ts +6 -0
- package/dist/types/components/mc-table-plus/hooks/useColumns.d.ts +43 -0
- package/dist/types/components/mc-table-plus/hooks/useExpand.d.ts +9 -0
- package/dist/types/components/mc-table-plus/hooks/useScroll.d.ts +6 -0
- package/dist/types/components/mc-table-plus/hooks/useSectionWidth.d.ts +15 -0
- package/dist/types/components/mc-table-plus/hooks/useSort.d.ts +15 -0
- package/dist/types/components/mc-table-plus/hooks/useTableCell.d.ts +23 -0
- package/dist/types/components/mc-table-plus/hooks/useTableContext.d.ts +21 -10
- package/dist/types/components/mc-table-plus/index.d.ts +8 -2
- package/dist/types/components/mc-table-plus/types/index.d.ts +3 -7
- package/dist/types/components/mc-table-plus/types/mc-table-body.d.ts +1 -2
- package/dist/types/components/mc-table-plus/types/mc-table-cell.d.ts +20 -0
- package/dist/types/components/mc-table-plus/types/mc-table-column.d.ts +2 -3
- package/dist/types/components/mc-table-plus/types/mc-table-row.d.ts +8 -0
- package/dist/types/components/mc-table-plus/types/mc-table-sort.d.ts +1 -1
- package/dist/types/components/mc-table-plus/types/mc-table.d.ts +28 -15
- package/dist/types/components/mc-table-plus/utils/generateColumns.d.ts +8 -2
- package/dist/types/components/mc-table-plus/utils/getNextSort.d.ts +3 -0
- package/dist/types/components/mc-table-plus/utils/index.d.ts +1 -0
- package/dist/types/hooks/useProp.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/numberToPx.d.ts +2 -0
- package/dist/umd/index.css +1 -1
- package/dist/umd/index.css.gz +0 -0
- package/dist/umd/index.umd.cjs +4 -4
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/mc-tab-CetXr0Xg.js +0 -575
- package/dist/es/utils-CPLhakO-.js +0 -35
- package/dist/types/components/mc-table-plus/types/mc-table-body-cell.d.ts +0 -8
- package/dist/types/components/mc-table-plus/types/mc-table-content.d.ts +0 -4
- package/dist/types/components/mc-table-plus/types/mc-table-expand-cell.d.ts +0 -5
- package/dist/types/components/mc-table-plus/types/mc-table-header-cell.d.ts +0 -5
- package/dist/types/components/mc-table-plus/types/mc-table-header.d.ts +0 -4
- package/dist/types/components/mc-table-plus/types/mc-table-tr.d.ts +0 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { defineComponent as e, computed as s, ref as t, watch as c, onMounted as l, nextTick as a, createElementBlock as n, openBlock as i, normalizeClass as p, createElementVNode as o, createCommentVNode as d, Fragment as u, renderList as m, createBlock as v, toDisplayString as r, resolveDynamicComponent as h, useSlots as y, watchEffect as f, unref as S, createTextVNode as b, provide as C, renderSlot as k, inject as g, onBeforeUnmount as x, normalizeStyle as _ } from "vue";
|
|
2
|
-
import { M as w } from "./mc-success-icon-
|
|
3
|
-
import { g as I, e as B, c as V } from "./hooks-
|
|
4
|
-
import { y as A, D as R, t as M, i as $, C as j, a as q, c as P, b as H, d as L } from "./vendor-
|
|
5
|
-
import { _ as D, w as E } from "./utils-
|
|
6
|
-
import { M as N } from "./mc-icon-
|
|
2
|
+
import { M as w } from "./mc-success-icon-Cj-5Hgzy.js";
|
|
3
|
+
import { g as I, e as B, c as V } from "./hooks-DghKpOue.js";
|
|
4
|
+
import { y as A, D as R, t as M, i as $, C as j, a as q, c as P, b as H, d as L } from "./vendor-CExPGg1i.js";
|
|
5
|
+
import { _ as D, w as E } from "./utils-BDbMLK9w.js";
|
|
6
|
+
import { M as N } from "./mc-icon-B_dAlj4r.js";
|
|
7
7
|
const z = { class: "mc-step-number-container" }, F = { class: "mc-step-item-number" }, G = { key: 0, class: "mc-step-item-number-text" }, J = { class: "mc-step-item-content" }, K = { key: 0, class: "mc-step-item-content-title" }, O = { class: "mc-step-item-label" }, Q = { class: "mc-step-item-desc" }, T = { key: 1, class: "mc-step-item-component" }, U = { key: 0, class: "mc-step-item-component" }, W = E(D(e({ name: "McStep", __name: "mc-step", props: { modelValue: {}, steps: {}, type: { default: "vertical" } }, emits: ["change", "success"], setup(e2, { expose: y2, emit: f2 }) {
|
|
8
8
|
const S2 = e2, b2 = s(() => "vertical" === S2.type), C2 = f2, k2 = t(), g2 = t(), x2 = t(), _2 = t(), B2 = s(() => A(S2.steps, (e3) => e3.key === S2.modelValue)), V2 = s(() => {
|
|
9
9
|
var _a;
|
|
@@ -100,11 +100,10 @@ const z = { class: "mc-step-number-container" }, F = { class: "mc-step-item-numb
|
|
|
100
100
|
let s2 = e3 - 1, t2 = k2.value[s2];
|
|
101
101
|
((_b = g2.value) == null ? void 0 : _b.isChild) && g2.value.parentStep === t2 && (t2 = k2.value[s2 - 1]), "first-child" === a2.previousBehavior && (t2 == null ? void 0 : t2.isChild) && !P((_c = t2.parentStep) == null ? void 0 : _c.index) && (s2 = t2.parentStep.index + 1, t2 = k2.value[s2]), (t2 == null ? void 0 : t2.step) && R2(t2.step);
|
|
102
102
|
}
|
|
103
|
-
} }),
|
|
104
|
-
}), (e3, s2) => (i(), n("div", Z, [o("div", ee, [(i(true), n(u, null, m(S(k2), (e4) => (i(), n(u, { key: e4.step }, [S(_2)(e4) ? (i(), n("div", { key: 0, class: p(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": S(x2)(e4), "mc-step-item-success": S(I2)(e4) }]) }, [o("div", { class: "mc-step-item-indicator", onClick: (s3) => ((e5) => {
|
|
103
|
+
} }), (e3, s2) => (i(), n("div", Z, [o("div", ee, [(i(true), n(u, null, m(S(k2), (e4) => (i(), n(u, { key: e4.step }, [S(_2)(e4) ? (i(), n("div", { key: 0, class: p(["mc-step-item", { "mc-step-item-child": e4.isChild, "mc-step-item-actived": S(x2)(e4), "mc-step-item-success": S(I2)(e4) }]) }, [o("div", { class: "mc-step-item-indicator", onClick: (s3) => ((e5) => {
|
|
105
104
|
C2("click:step", e5.step);
|
|
106
105
|
})(e4) }, [o("div", te, [e4.isChild || S(P)(e4.parentIndex) ? (i(), n("div", le)) : (i(), n("div", ce, [S(I2)(e4) ? (i(), v(w, { key: 0 })) : (i(), n(u, { key: 1 }, [e4.iconContent ? (i(), v(h(e4.iconContent), { key: e4.step, step: e4.step, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "isSuccess", "isActived"])) : e4.icon ? (i(), v(N, { key: 1, name: e4.icon }, null, 8, ["name"])) : (i(), n(u, { key: 2 }, [b(r(e4.parentIndex + 1), 1)], 64))], 64))]))])], 8, se), o("div", ae, [o("div", ne, [o("div", ie, [e4.labelContent ? (i(), v(h(e4.labelContent), { key: e4.step, step: e4.step, label: e4.label, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "label", "isSuccess", "isActived"])) : (i(), n("div", pe, r(e4.label), 1))]), o("div", oe, [e4.descContent ? (i(), v(h(e4.descContent), { key: e4.step, step: e4.step, desc: e4.desc, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "desc", "isSuccess", "isActived"])) : (i(), n("div", de, r(e4.desc), 1))])]), S(V2)(e4) ? (i(), n("div", ue, [(i(), v(h(e4.content), { key: e4.step, step: e4.step, isSuccess: S(I2)(e4), isActived: S(x2)(e4) }, null, 8, ["step", "isSuccess", "isActived"]))])) : d("", true)])], 2)) : d("", true)], 64))), 128))])]));
|
|
107
|
-
} }), [["__scopeId", "data-v-
|
|
106
|
+
} }), [["__scopeId", "data-v-35859b4d"]]), ve = { class: "mc-step-item-plus" }, re = e({ name: X, __name: "mc-step-item-plus", props: { icon: {}, key: {}, label: {}, desc: {}, showContent: { type: Boolean }, success: { type: Boolean } }, setup: (e2) => (e3, s2) => (i(), n("div", ve)) }), he = { class: "mc-step-child-item-plus" }, ye = e({ name: Y, __name: "mc-step-child-item-plus", props: { key: {}, label: {}, desc: {}, showContent: { type: Boolean }, success: { type: Boolean } }, setup: (e2) => (e3, s2) => (i(), n("div", he)) }), fe = E(me), Se = E(re), be = E(ye), Ce = Symbol("StepV2Context"), ke = Symbol("StepItemV2Context"), ge = { class: "mc-step-v2" }, xe = 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: a2 }) {
|
|
108
107
|
const p2 = e2, o2 = t([]), d2 = t(-1), u2 = (e3) => {
|
|
109
108
|
e3 > -1 ? e3 > o2.value.length - 1 ? d2.value = o2.value.length - 1 : d2.value = e3 : d2.value = -1;
|
|
110
109
|
}, m2 = () => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as s, createElementBlock as e, openBlock as t, normalizeStyle as c, createElementVNode as o } from "vue";
|
|
2
|
-
import { _ as i, w as l } from "./utils-
|
|
2
|
+
import { _ as i, w as l } from "./utils-BDbMLK9w.js";
|
|
3
3
|
const n = i(s({ name: "McSuccessIcon", __name: "mc-success-icon", props: { width: { default: "40px" }, height: { default: "40px" } }, setup: (s2) => (s3, i2) => (t(), e("svg", { class: "success-icon", style: c({ width: s3.width, height: s3.height }), viewBox: "0 0 400 400" }, i2[0] || (i2[0] = [o("circle", { class: "circle", fill: "none", transform: "rotate(-90 200 200)", "stroke-width": "20", cx: "200", cy: "200", r: "190", "stroke-linecap": "round" }, null, -1), o("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-cbdf5dc8"]]), r = l(n);
|
|
4
4
|
export {
|
|
5
5
|
n as M,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, createElementBlock as l, openBlock as t, renderSlot as a, createCommentVNode as s, createElementVNode as i, toDisplayString as o, createVNode as c, useSlots as n, computed as p, createBlock as h, createSlots as d, withCtx as m, normalizeStyle as u, normalizeClass as v, unref as b, withKeys as r, withModifiers as f } from "vue";
|
|
2
|
-
import { u as w } from "./mc-form-
|
|
3
|
-
import { _ as x } from "./mc-tooltip-
|
|
4
|
-
import { _ as y, w as $ } from "./utils-
|
|
2
|
+
import { u as w } from "./mc-form-Bf0120BQ.js";
|
|
3
|
+
import { _ as x } from "./mc-tooltip-4mxkVOGx.js";
|
|
4
|
+
import { _ as y, w as $ } from "./utils-BDbMLK9w.js";
|
|
5
5
|
const _ = { class: "mc-switch-label-wrapper" }, k = { class: "mc-switch-label" }, I = { class: "mc-switch-help" }, T = y(e({ __name: "mc-switch-label", props: { label: {}, helpText: {}, helpIcon: { default: "Info" } }, setup: (e2) => (e3, n2) => (t(), l("div", _, [e3.label || e3.$slots.label ? a(e3.$slots, "label", { key: 0 }, () => [i("span", k, o(e3.label), 1)], true) : s("", true), e3.helpText || e3.$slots.help ? a(e3.$slots, "help", { key: 1 }, () => [i("div", I, [c(x, { "icon-name": e3.helpIcon, content: e3.helpText, "icon-size": 22 }, null, 8, ["icon-name", "content"])])], true) : s("", true)])) }), [["__scopeId", "data-v-12dff36d"]]), g = { class: "mc-switch" }, V = ["id", "disabled", "value", "onKeypress"], j = { class: "mc-switch-inner" }, z = { class: "mc-switch-inner-text" }, B = { class: "mc-switch-inner-text" }, K = $(y(e({ name: "McSwitch", __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: c2 }) {
|
|
6
6
|
const x2 = e2, y2 = c2, $2 = n(), { formItem: _2, formId: k2, formDisabled: I2, validateStyle: K2 } = w(), M = p(() => x2.modelValue), P = async () => {
|
|
7
7
|
I2.value || (y2("update:modelValue", !x2.modelValue), y2("change", !x2.modelValue), _2 == null ? void 0 : _2.validate("input"));
|