mc-plus 1.0.113 → 1.0.114

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mc-plus",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "description": "Components library for Vue 3.X by Meta Compass",
5
5
  "type": "module",
6
6
  "files": [
@@ -1,15 +0,0 @@
1
- import { _ as e, u as l } from "./utils-dWwt4JKv.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 b, createSlots as u, withCtx as v, normalizeStyle as r, normalizeClass as w, withKeys as y, withModifiers as f } from "vue";
3
- import { M as x } from "./mc-tooltip-BlsZG-T8.js";
4
- import { u as $ } from "./mc-form-DCKlCcDs.js";
5
- const T = "mc-switch", k = "mc-switch-label", I = { class: "mc-switch-label-wrapper" }, _ = { class: "mc-switch-label" }, g = { class: "mc-switch-help" }, V = e(t({ name: k, __name: "mc-switch-label", props: { label: {}, helpText: {}, helpIcon: { default: "Info" } }, setup: (e2) => (l2, t2) => (s(), a("div", I, [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(x), { "icon-name": e2.helpIcon, content: e2.helpText, "icon-size": 22 }, null, 8, ["icon-name", "content"])])], true) : o("", true)])) }), [["__scopeId", "data-v-e1ce5008"]]), B = { class: "mc-switch" }, j = ["id", "disabled", "value", "onKeypress"], z = { class: "mc-switch-inner" }, K = { class: "mc-switch-inner-text" }, M = { class: "mc-switch-inner-text" }, P = l(e(t({ name: T, __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: {}, disableValidation: { type: Boolean }, hideValidationIcon: { type: Boolean } }, emits: ["update:modelValue", "change"], setup(e2, { emit: l2 }) {
6
- const t2 = e2, p2 = l2, x2 = d(), { formId: T2, formDisabled: k2, validateStyle: I2, validateByTrigger: _2 } = $(), g2 = m(() => t2.modelValue), P2 = async () => {
7
- k2.value || (p2("update:modelValue", !t2.modelValue), p2("change", !t2.modelValue), _2("input"));
8
- }, q = m(() => x2.label || t2.label || x2.help || t2.helpText ? t2.labelPosition : void 0), C = m(() => "left" === q.value), D = m(() => "right" === q.value);
9
- return (l3, t3) => (s(), a("div", B, [C.value ? (s(), b(V, { key: 0, label: e2.label, "help-text": e2.helpText, "help-icon": e2.helpIcon }, u({ _: 2 }, [l3.$slots.label ? { name: "label", fn: v(() => [i(l3.$slots, "label", {}, void 0, true)]), key: "0" } : void 0, l3.$slots.help ? { name: "help", fn: v(() => [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(k2) }, `mc-switch-${e2.size}`, h(I2)]]), style: r({ width: e2.width, height: e2.height }) }, [c("input", { id: h(T2), type: "checkbox", class: "mc-switch-input", disabled: e2.disabled, value: e2.modelValue, onChange: P2, onKeypress: y(f(P2, ["prevent", "stop"]), ["enter"]) }, null, 40, j), c("div", z, [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), D.value ? (s(), b(V, { key: 1, label: e2.label, "help-text": e2.helpText, "help-icon": e2.helpIcon }, u({ _: 2 }, [l3.$slots.label ? { name: "label", fn: v(() => [i(l3.$slots, "label", {}, void 0, true)]), key: "0" } : void 0, l3.$slots.help ? { name: "help", fn: v(() => [i(l3.$slots, "help", {}, void 0, true)]), key: "1" } : void 0]), 1032, ["label", "help-text", "help-icon"])) : o("", true)]));
10
- } }), [["__scopeId", "data-v-57841683"]]));
11
- export {
12
- P as M,
13
- T as a,
14
- k as b
15
- };