mc-plus 1.0.71 → 1.0.73
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 +4 -4
- package/dist/es/mc-multi-tag-Nod49Bwu.js +16 -0
- package/dist/es/mc-removable-tag-wxPpuRNv.js +14 -0
- package/dist/es/theme/mc-multi-tag.css +1 -1
- package/dist/es/theme/mc-removable-tag.css +1 -1
- package/dist/index.css +1 -1
- package/dist/types/mc-multi-tag/index.d.ts +3 -0
- package/dist/types/mc-multi-tag/mc-multi-tag.vue.d.ts +1 -0
- package/dist/types/mc-multi-tag/types.d.ts +1 -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 -2
- package/dist/es/mc-multi-tag-DsCmJyQO.js +0 -16
- package/dist/es/mc-removable-tag-BnTEvVRv.js +0 -14
package/dist/es/index.js
CHANGED
|
@@ -41,8 +41,8 @@ import { a as J } from "./mc-loading-D_ELubbA.js";
|
|
|
41
41
|
import { b as b8 } from "./mc-loading-D_ELubbA.js";
|
|
42
42
|
import { M as V } from "./mc-modal-header-D_Ft0Os1.js";
|
|
43
43
|
import { a as a13 } from "./mc-modal-header-D_Ft0Os1.js";
|
|
44
|
-
import { M as z } from "./mc-multi-tag-
|
|
45
|
-
import { a as a14 } from "./mc-multi-tag-
|
|
44
|
+
import { M as z } from "./mc-multi-tag-Nod49Bwu.js";
|
|
45
|
+
import { a as a14 } from "./mc-multi-tag-Nod49Bwu.js";
|
|
46
46
|
import { M as Z } from "./mc-otp-BjyPMD6Q.js";
|
|
47
47
|
import { a as a15 } from "./mc-otp-BjyPMD6Q.js";
|
|
48
48
|
import { M as Q } from "./mc-overlay-BKPcvOBP.js";
|
|
@@ -55,8 +55,8 @@ import { M as os } from "./mc-radio-BZ_zN7H-.js";
|
|
|
55
55
|
import { a as a17 } from "./mc-radio-BZ_zN7H-.js";
|
|
56
56
|
import { a as ms } from "./mc-radio-group-f-g3sp7v.js";
|
|
57
57
|
import { b as b11, M } from "./mc-radio-group-f-g3sp7v.js";
|
|
58
|
-
import { M as rs } from "./mc-removable-tag-
|
|
59
|
-
import { a as a18 } from "./mc-removable-tag-
|
|
58
|
+
import { M as rs } from "./mc-removable-tag-wxPpuRNv.js";
|
|
59
|
+
import { a as a18 } from "./mc-removable-tag-wxPpuRNv.js";
|
|
60
60
|
import { M as as } from "./mc-reset-y5MoqtCq.js";
|
|
61
61
|
import { a as a19 } from "./mc-reset-y5MoqtCq.js";
|
|
62
62
|
import { M as ts } from "./mc-secondary-menu-C919q75A.js";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { _ as l, l as a } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as e, computed as s, createElementBlock as t, openBlock as m, normalizeClass as i, createCommentVNode as o, createElementVNode as d, Fragment as c, createVNode as u, toDisplayString as b, renderList as r, createBlock as n } from "vue";
|
|
3
|
+
import { M as g } from "./mc-icon-plus-CmTBSYSx.js";
|
|
4
|
+
import { _ as p } from "./mc-removable-tag-wxPpuRNv.js";
|
|
5
|
+
const v = "mc-multi-tag", f = { class: "mc-multi-tag-label" }, _ = { class: "mc-multi-tag-option-list" }, j = a(l(e({ name: v, __name: "mc-multi-tag", props: { label: {}, tags: { default: () => [] }, disabled: { type: Boolean, default: false }, disableTags: { default: () => [] } }, emits: ["remove:all", "remove:tag"], setup(l2, { emit: a2 }) {
|
|
6
|
+
const e2 = l2, v2 = a2, j2 = s(() => e2.disabled || e2.disableTags.length), k = (l3) => !!e2.disabled || !!e2.disableTags.includes(l3), y = (l3) => {
|
|
7
|
+
e2.disabled || v2("remove:tag", l3, e2.label);
|
|
8
|
+
}, T = () => {
|
|
9
|
+
j2.value || v2("remove:all", e2.label);
|
|
10
|
+
};
|
|
11
|
+
return (a3, e3) => (m(), t("li", { class: i(["mc-multi-tag", { "mc-multi-tag-disabled": l2.disabled }]) }, [j2.value ? o("", true) : (m(), t(c, { key: 0 }, [u(g, { class: "mc-multi-tag-close-all-icon", name: "cross", onClick: T }), e3[0] || (e3[0] = d("i", { class: "mc-multi-tag-divider" }, null, -1))], 64)), d("span", f, b(`${l2.label} :`), 1), d("ul", _, [(m(true), t(c, null, r(l2.tags, (l3) => (m(), n(p, { key: l3, label: l3, disabled: k(l3), onRemove: y }, null, 8, ["label", "disabled"]))), 128))])], 2));
|
|
12
|
+
} }), [["__scopeId", "data-v-4c072be0"]]));
|
|
13
|
+
export {
|
|
14
|
+
j as M,
|
|
15
|
+
v as a
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { _ as e, l as a } from "./utils-Bxl3PXzk.js";
|
|
2
|
+
import { defineComponent as l, createElementBlock as s, openBlock as o, normalizeClass as m, createElementVNode as t, createBlock as r, createCommentVNode as c, renderSlot as b, createTextVNode as d, toDisplayString as i } from "vue";
|
|
3
|
+
import { M as n } from "./mc-icon-plus-CmTBSYSx.js";
|
|
4
|
+
const p = "mc-removable-tag", u = { class: "mc-removable-tag-content" }, v = e(l({ name: p, __name: "mc-removable-tag", props: { label: {}, disabled: { type: Boolean, default: false } }, emits: ["remove"], setup(e2, { emit: a2 }) {
|
|
5
|
+
const l2 = e2, p2 = a2, v2 = () => {
|
|
6
|
+
l2.disabled || p2("remove", l2.label);
|
|
7
|
+
};
|
|
8
|
+
return (a3, l3) => (o(), s("li", { class: m(["mc-removable-tag", { "mc-removable-tag-disabled": e2.disabled }]) }, [t("span", u, [b(a3.$slots, "default", { label: e2.label }, () => [d(i(e2.label), 1)], true)]), e2.disabled ? c("", true) : (o(), r(n, { key: 0, class: "mc-removable-tag-close-icon", name: "cross", cursor: e2.disabled ? "not-allowed" : "pointer", onClick: v2 }, null, 8, ["cursor"]))], 2));
|
|
9
|
+
} }), [["__scopeId", "data-v-1770ff38"]]), f = a(v);
|
|
10
|
+
export {
|
|
11
|
+
f as M,
|
|
12
|
+
v as _,
|
|
13
|
+
p as a
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-multi-tag[data-v-
|
|
1
|
+
.mc-multi-tag[data-v-4c072be0]{list-style:none;margin:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;background-color:var(--mc-gray-100);width:fit-content;height:fit-content;height:40px;padding:4px 8px;box-sizing:border-box}.mc-multi-tag .mc-multi-tag-close-all-icon[data-v-4c072be0]{cursor:pointer;color:var(--mc-gray-500)}.mc-multi-tag .mc-multi-tag-divider[data-v-4c072be0]{width:1px;height:100%;background-color:var(--mc-gray-200)}.mc-multi-tag .mc-multi-tag-label[data-v-4c072be0]{font-family:var(--mc-font-family);font-size:14px;font-weight:600;line-height:20px;color:var(--mc-gray-500)}.mc-multi-tag .mc-multi-tag-option-list[data-v-4c072be0]{margin:0;padding:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mc-removable-tag[data-v-
|
|
1
|
+
.mc-removable-tag[data-v-1770ff38]{list-style:none;margin:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:4px;width:fit-content;height:32px;padding:4px 8px;box-sizing:border-box;background-color:var(--mc-gray-200);border-radius:4px}.mc-removable-tag .mc-removable-tag-content[data-v-1770ff38]{font-family:var(--mc-font-family);font-size:16px;font-weight:400;line-height:24px;color:var(--mc-gray-800)}
|