mc-plus 1.0.49 → 1.0.50
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/index.js +10 -10
- package/dist/es/{mc-checkbox-UUs185lQ.js → mc-checkbox-AcAkf15s.js} +1 -1
- package/dist/es/{mc-form-BKc0QgfD.js → mc-form-CRvVKwEz.js} +1 -1
- package/dist/es/{mc-input-Br5GlB8Z.js → mc-input-BzIRRUKK.js} +2 -2
- package/dist/es/{mc-otp-C1BsrIAz.js → mc-otp-lJ0IAzmO.js} +2 -2
- package/dist/es/{mc-radio-DUQy4wbI.js → mc-radio-aFsYAqrx.js} +2 -2
- package/dist/es/{mc-select-CDhNsvjo.js → mc-select-Dx4BsKQt.js} +3 -3
- package/dist/es/{mc-switch-BVlec4Zr.js → mc-switch--B88o2H6.js} +2 -2
- package/dist/es/{mc-tab-CDxc7RHg.js → mc-tab-CJPqbZ0V.js} +1 -1
- package/dist/es/mc-tooltip-Df_tnpMO.js +12 -0
- package/dist/es/theme/mc-tooltip.css +1 -1
- package/dist/index.css +1 -1
- package/dist/types/components/mc-tooltip/index.d.ts +3 -0
- package/dist/types/components/mc-tooltip/types.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 +1 -1
- package/dist/umd/index.umd.cjs.gz +0 -0
- package/package.json +1 -1
- package/dist/es/mc-tooltip-CkIeFoW6.js +0 -12
package/dist/es/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { p as s, m } from "./utils-unh4VH8x.js";
|
|
2
|
-
import { M as o, a as r, b as p } from "./mc-tab-
|
|
3
|
-
import { u, c, d } from "./mc-tab-
|
|
2
|
+
import { M as o, a as r, b as p } from "./mc-tab-CJPqbZ0V.js";
|
|
3
|
+
import { u, c, d } from "./mc-tab-CJPqbZ0V.js";
|
|
4
4
|
import { M as i } from "./mc-collapse-D0Xp-9K8.js";
|
|
5
5
|
import { a } from "./mc-collapse-D0Xp-9K8.js";
|
|
6
|
-
import { a as f, b as j } from "./mc-input-
|
|
7
|
-
import { M as e, a as l } from "./mc-radio-
|
|
8
|
-
import { M, a as b, b as n, c as x, d as g, e as h, f as y } from "./mc-select-
|
|
6
|
+
import { a as f, b as j } from "./mc-input-BzIRRUKK.js";
|
|
7
|
+
import { M as e, a as l } from "./mc-radio-aFsYAqrx.js";
|
|
8
|
+
import { M, a as b, b as n, c as x, d as g, e as h, f as y } from "./mc-select-Dx4BsKQt.js";
|
|
9
9
|
import { a as w } from "./mc-button-BwTUiTGy.js";
|
|
10
|
-
import { a as k, b as v } from "./mc-checkbox-
|
|
11
|
-
import { M as S, c as T } from "./mc-form-
|
|
10
|
+
import { a as k, b as v } from "./mc-checkbox-AcAkf15s.js";
|
|
11
|
+
import { M as S, c as T } from "./mc-form-CRvVKwEz.js";
|
|
12
12
|
import { a as q } from "./mc-icon-DaMzEM1e.js";
|
|
13
13
|
import { a as z } from "./mc-success-icon-Cc0CC92F.js";
|
|
14
14
|
import { a as C, b as I } from "./mc-title-Sz_2qF_2.js";
|
|
@@ -19,16 +19,16 @@ import { M as D } from "./mc-reset-Df8FkgAX.js";
|
|
|
19
19
|
import { a as E } from "./mc-divider-D1tnKCh-.js";
|
|
20
20
|
import { M as F } from "./mc-lightbox-Cx2hZ7Ff.js";
|
|
21
21
|
import { a as G } from "./mc-popper-BBA7dqFv.js";
|
|
22
|
-
import { a as H } from "./mc-tooltip-
|
|
22
|
+
import { a as H } from "./mc-tooltip-Df_tnpMO.js";
|
|
23
23
|
import { a as J } from "./mc-tag-Bhkg0L75.js";
|
|
24
24
|
import { M as K } from "./mc-status-K-Mx4U19.js";
|
|
25
|
-
import { M as L } from "./mc-switch
|
|
25
|
+
import { M as L } from "./mc-switch--B88o2H6.js";
|
|
26
26
|
import { M as N, a as O, b as Q, c as R } from "./mc-step-BU4nDqlV.js";
|
|
27
27
|
import { M as U } from "./mc-alert-message-B-3A1yRi.js";
|
|
28
28
|
import { M as V } from "./mc-currency-icon-BTqny3FX.js";
|
|
29
29
|
import { M as W } from "./mc-toast-DXnhTPy_.js";
|
|
30
30
|
import { t } from "./mc-toast-DXnhTPy_.js";
|
|
31
|
-
import { M as X } from "./mc-otp-
|
|
31
|
+
import { M as X } from "./mc-otp-lJ0IAzmO.js";
|
|
32
32
|
import { M as Y } from "./mc-count-qEofXpZ_.js";
|
|
33
33
|
import { M as Z } from "./mc-copy-BnlJcF2Q.js";
|
|
34
34
|
import { a as $ } from "./mc-progress-bar-RfjhsnH2.js";
|
|
@@ -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-
|
|
2
|
+
import { u as p, a as i } from "./mc-form-CRvVKwEz.js";
|
|
3
3
|
import { a as h, b } from "./vendor-CnpY8h4b.js";
|
|
4
4
|
import { _ as v, w as k } from "./utils-unh4VH8x.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 }) {
|
|
@@ -3,7 +3,7 @@ import { c as q } from "./hooks-CpOgf4oa.js";
|
|
|
3
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-CnpY8h4b.js";
|
|
4
4
|
import { _ as E, w as A } from "./utils-unh4VH8x.js";
|
|
5
5
|
import O from "async-validator";
|
|
6
|
-
import { M as R } from "./mc-tooltip-
|
|
6
|
+
import { M as R } from "./mc-tooltip-Df_tnpMO.js";
|
|
7
7
|
const D = Symbol("formContext"), G = Symbol("formItemContext");
|
|
8
8
|
function H() {
|
|
9
9
|
const r2 = e(D, void 0), t2 = q("formValidate");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
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
2
|
import { M as b } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
-
import { a as _, u as G } from "./mc-form-
|
|
3
|
+
import { a as _, u as G } from "./mc-form-CRvVKwEz.js";
|
|
4
4
|
import { c as w, d as V, e as S } from "./hooks-CpOgf4oa.js";
|
|
5
|
-
import { O as A } from "./mc-otp-
|
|
5
|
+
import { O as A } from "./mc-otp-lJ0IAzmO.js";
|
|
6
6
|
import { a as $, o as k, p as E, q as B, e as F, i as j } from "./vendor-CnpY8h4b.js";
|
|
7
7
|
import { _ as C, w as R } from "./utils-unh4VH8x.js";
|
|
8
8
|
const P = Symbol("InputGroupContext"), z = (e2) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, ref as t, computed as a, reactive as l, onMounted as o, watch as n, watchEffect as s, provide as u, createElementBlock as r, openBlock as c, normalizeClass as m, unref as i, createElementVNode as p, createBlock as d, createCommentVNode as h, Fragment as f, renderList as v, withModifiers as g, createVNode as V, nextTick as w } from "vue";
|
|
2
2
|
import { M as _ } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
-
import { M as b } from "./mc-input-
|
|
4
|
-
import { u as j, a as y } from "./mc-form-
|
|
3
|
+
import { M as b } from "./mc-input-BzIRRUKK.js";
|
|
4
|
+
import { u as j, a as y } from "./mc-form-CRvVKwEz.js";
|
|
5
5
|
import { _ as x, w as k } from "./utils-unh4VH8x.js";
|
|
6
6
|
const D = Symbol("OtpContext"), I = { class: "mc-otp-input-container" }, M = ["onClick"], C = k(x(e({ name: "McOtp", __name: "mc-otp", props: { modelValue: {}, disabled: { type: Boolean, default: false }, length: { default: 6 } }, emits: ["update:modelValue", "change", "focus", "blur"], setup(e2, { emit: x2 }) {
|
|
7
7
|
const k2 = e2, C2 = x2, O = t([]), { formItem: A } = j(), E = a(() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as e, watch as a, provide as l, computed as o, createElementBlock as r, openBlock as s, renderSlot as d, inject as t, normalizeClass as c, createElementVNode as i, createCommentVNode as m, createTextVNode as u, toDisplayString as n, createVNode as p } from "vue";
|
|
2
|
-
import { u as v, a as b } from "./mc-form-
|
|
2
|
+
import { u as v, a as b } from "./mc-form-CRvVKwEz.js";
|
|
3
3
|
import { _ as h, w as k } from "./utils-unh4VH8x.js";
|
|
4
|
-
import { M as _ } from "./mc-tooltip-
|
|
4
|
+
import { M as _ } from "./mc-tooltip-Df_tnpMO.js";
|
|
5
5
|
const f = Symbol("selectContext"), g = { class: "mc-radio-group" }, y = h(e({ name: "McRadioGroup", __name: "mc-radio-group", props: { modelValue: { type: [Number, String, Boolean] }, disabled: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: t2 }) {
|
|
6
6
|
const c2 = e2, i2 = t2, { formItem: m2 } = v();
|
|
7
7
|
return a(() => c2.modelValue, () => {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as e, ref as l, computed as a, watch as t, provide as s, createElementBlock as o, openBlock as u, normalizeStyle as c, normalizeClass as r, unref as n, createElementVNode as i, createVNode as v, createCommentVNode as d, createBlock as p, resolveDynamicComponent as m, Fragment as h, renderList as f, withCtx as g, createTextVNode as y, toDisplayString as w, withDirectives as _, vModelText as b, Transition as k, renderSlot as V, vShow as x, inject as S, useSlots as O, onMounted as B, onBeforeUnmount as M, h as A, toRefs as C, useAttrs as R, toValue as I, getCurrentInstance as j, watchEffect as P, isRef as $, withKeys as z, withModifiers as D } from "vue";
|
|
2
2
|
import { d as F, g as G, c as H, a as E, e as N } from "./hooks-CpOgf4oa.js";
|
|
3
|
-
import { a as U, u as T, b as K } from "./mc-form-
|
|
3
|
+
import { a as U, u as T, b as K } from "./mc-form-CRvVKwEz.js";
|
|
4
4
|
import { M as W } from "./mc-icon-DaMzEM1e.js";
|
|
5
5
|
import { M as q } from "./mc-button-BwTUiTGy.js";
|
|
6
6
|
import { M as J } from "./mc-tag-Bhkg0L75.js";
|
|
7
|
-
import { M as L } from "./mc-checkbox-
|
|
7
|
+
import { M as L } from "./mc-checkbox-AcAkf15s.js";
|
|
8
8
|
import { M as Q } from "./mc-title-Sz_2qF_2.js";
|
|
9
9
|
import { M as X } from "./mc-footer-x_PWke8m.js";
|
|
10
10
|
import { e as Y, w as Z, q as ee, f as le, m as ae, a as te, i as se, x as oe, y as ue, z as ce, A as re, n as ne, B as ie, C as ve, D as de } from "./vendor-CnpY8h4b.js";
|
|
11
11
|
import { _ as pe, w as me } from "./utils-unh4VH8x.js";
|
|
12
|
-
import { I as he, u as fe } from "./mc-input-
|
|
12
|
+
import { I as he, u as fe } from "./mc-input-BzIRRUKK.js";
|
|
13
13
|
import { M as ge } from "./mc-popper-BBA7dqFv.js";
|
|
14
14
|
const ye = Symbol("selectContext"), we = Symbol("selectGroupContext"), _e = { key: 0, class: "mc-select-selected-content" }, be = ["placeholder", "readonly", "disabled"], ke = { class: "mc-select-dropdown-header-content" }, Ve = { class: "mc-select-dropdown-content" }, xe = { class: "mc-select-dropdown" }, Se = { key: 0, class: "mc-select-no-data" }, Oe = pe(e({ name: "McSelect", __name: "mc-select", props: { modelValue: {}, placeholder: { default: "Please select" }, disabled: { type: Boolean }, multiple: { type: Boolean, default: false }, width: {}, height: {}, search: { type: Boolean }, allowReset: { type: Boolean, default: true }, allowSelectAll: { type: Boolean, default: true } }, emits: ["update:modelValue", "change", "blur", "focus", "reset"], setup(e2, { emit: S2 }) {
|
|
15
15
|
const O2 = e2, B2 = S2, M2 = l(), A2 = l(), C2 = l(), R2 = U(), I2 = a(() => O2.multiple), j2 = (e3) => I2.value && Array.isArray(e3), P2 = l([]), $2 = a(() => Y(Ae2.value) ? P2.value : P2.value.filter((e3) => Z(ee(e3.label ?? e3.value)).includes(Z(Ae2.value)))), { wrapperRef: z2, isFocused: D2, handleFocus: H2, handleBlur: E2 } = F(M2, { afterBlur() {
|
|
@@ -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 h, computed as n, watch as p, createBlock as d, createSlots as m, withCtx as u, normalizeStyle as v, normalizeClass as b, unref as r } from "vue";
|
|
2
|
-
import { M as w } from "./mc-tooltip-
|
|
2
|
+
import { M as w } from "./mc-tooltip-Df_tnpMO.js";
|
|
3
3
|
import { _ as f, w as x } from "./utils-unh4VH8x.js";
|
|
4
|
-
import { u as $, a as y } from "./mc-form-
|
|
4
|
+
import { u as $, a as y } from "./mc-form-CRvVKwEz.js";
|
|
5
5
|
const k = { class: "mc-switch-label-wrapper" }, T = { class: "mc-switch-label" }, _ = { class: "mc-switch-help" }, I = f(e({ __name: "mc-switch-label", props: { label: {}, helpText: {}, helpIcon: { default: "Info" } }, setup: (e2) => (e3, h2) => (t(), l("div", k, [e3.label || e3.$slots.label ? a(e3.$slots, "label", { key: 0 }, () => [i("span", T, o(e3.label), 1)], true) : s("", true), e3.helpText || e3.$slots.help ? a(e3.$slots, "help", { key: 1 }, () => [i("div", _, [c(w, { "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 = ["disabled", "value"], j = { class: "mc-switch-inner" }, z = { class: "mc-switch-inner-text" }, M = { class: "mc-switch-inner-text" }, B = x(f(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 w2 = e2, f2 = c2, x2 = h(), k2 = n(() => w2.modelValue), T2 = () => {
|
|
7
7
|
S.value || (f2("update:modelValue", !w2.modelValue), f2("change", !w2.modelValue));
|
|
@@ -1,5 +1,5 @@
|
|
|
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 f, createBlock as h, createSlots as b, withCtx as _, mergeProps as y, watch as w, onMounted as k, nextTick as x, toRefs as S, normalizeProps as C, guardReactiveProps as R, watchEffect as z, onUnmounted as I, resolveDynamicComponent as P, h as $ } from "vue";
|
|
2
|
-
import { a as M } from "./mc-checkbox-
|
|
2
|
+
import { a as M } from "./mc-checkbox-AcAkf15s.js";
|
|
3
3
|
import { _ as T, w as H } from "./utils-unh4VH8x.js";
|
|
4
4
|
import { M as W } from "./mc-icon-DaMzEM1e.js";
|
|
5
5
|
import { m as A, f as B, C as L, x as O } from "./vendor-CnpY8h4b.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineComponent as o, computed as t, createElementBlock as e, openBlock as r, createVNode as n, withCtx as a, renderSlot as c, createElementVNode as s, normalizeClass as i, createTextVNode as l, toDisplayString as p } from "vue";
|
|
2
|
+
import { M as m } from "./mc-icon-DaMzEM1e.js";
|
|
3
|
+
import { M as f } from "./mc-popper-BBA7dqFv.js";
|
|
4
|
+
import { _ as u, w as d } from "./utils-unh4VH8x.js";
|
|
5
|
+
const g = { class: "mc-tooltip" }, w = u(o({ name: "McTooltip", __name: "mc-tooltip", props: { iconSize: { default: 24 }, iconName: { default: "Info" }, content: {}, theme: { default: "light" }, placement: { default: "top" }, showArrow: { type: Boolean, default: true }, iconColor: {}, trigger: { default: "hover" } }, setup(o2) {
|
|
6
|
+
const u2 = t(() => ({ strategy: "fixed" }));
|
|
7
|
+
return (o3, t2) => (r(), e("div", g, [n(f, { placement: o3.placement, "show-arrow": o3.showArrow, "popper-options": u2.value, trigger: o3.trigger }, { content: a(() => [s("div", { class: i(["mc-tooltip-content", `mc-tooltip-content-${o3.theme}`]) }, [c(o3.$slots, "content", {}, () => [l(p(o3.content), 1)], true)], 2)]), default: a(() => [c(o3.$slots, "default", {}, () => [n(m, { class: "mc-tooltip-icon", name: o3.iconName, size: o3.iconSize, color: o3.iconColor }, null, 8, ["name", "size", "color"])], true)]), _: 3 }, 8, ["placement", "show-arrow", "popper-options", "trigger"])]));
|
|
8
|
+
} }), [["__scopeId", "data-v-587c2f17"]]), h = d(w);
|
|
9
|
+
export {
|
|
10
|
+
w as M,
|
|
11
|
+
h as a
|
|
12
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-tooltip .mc-tooltip-icon[data-v-
|
|
1
|
+
.mc-tooltip .mc-tooltip-icon[data-v-587c2f17]{cursor:pointer;color:var(--mc-gray-400)}.mc-tooltip[data-v-587c2f17] .mc-popper-popper>.mc-popper-arrow:before{content:"";width:16px;height:12px;position:absolute;z-index:1}.mc-tooltip[data-v-587c2f17] .mc-popper-popper>.mc-popper-arrow:after{box-shadow:0 0 2px 1px #04147c26}.mc-tooltip[data-v-587c2f17] .mc-popper-popper[data-popper-placement^=top]>.mc-popper-arrow:before{bottom:0;left:50%;transform:translate(-50%)}.mc-tooltip[data-v-587c2f17] .mc-popper-popper[data-popper-placement^=bottom]>.mc-popper-arrow:before{top:0;left:50%;transform:translate(-50%)}.mc-tooltip[data-v-587c2f17] .mc-popper-popper[data-popper-placement^=left]>.mc-popper-arrow:before{right:0;top:50%;transform:translateY(-50%)}.mc-tooltip[data-v-587c2f17] .mc-popper-popper[data-popper-placement^=right]>.mc-popper-arrow:before{left:0;top:50%;transform:translateY(-50%)}.mc-tooltip .mc-tooltip-content[data-v-587c2f17]{width:fit-content;height:fit-content;box-sizing:border-box;padding:12px 16px;display:flex;align-items:center;justify-content:center;border-radius:4px;box-shadow:0 2px 4px #04147c26;font-size:16px;font-weight:400}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-light[data-v-587c2f17]{background-color:var(--mc-white);color:var(--mc-gray-800)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-light[data-v-587c2f17]+.mc-popper-arrow:before{background-color:var(--mc-white)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-light[data-v-587c2f17]+.mc-popper-arrow:after{background-color:var(--mc-white)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-dark[data-v-587c2f17]{background-color:var(--mc-gray-600);color:var(--mc-white)}.mc-tooltip .mc-tooltip-content.mc-tooltip-content-dark[data-v-587c2f17]+.mc-popper-arrow:after{background-color:var(--mc-gray-600)}
|