maz-ui 3.49.0 → 3.49.2
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/components/MazAnimatedCounter.mjs +78 -73
- package/components/MazAnimatedElement.mjs +12 -12
- package/components/MazAnimatedText.mjs +5 -5
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +128 -123
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -1
- package/components/assets/MazAnimatedElement.css +1 -1
- package/components/assets/MazAnimatedText.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBottomSheet-CNFupuJS.mjs → MazBottomSheet-CIXEEUpN.mjs} +1 -1
- package/components/chunks/MazBtn-9Jk8ZkBq.mjs +103 -0
- package/components/chunks/{MazBtn-BJNzz7YT.mjs → MazBtn-BHD7Xbr_.mjs} +3 -3
- package/components/chunks/{MazBtn-CKDJOBcC.mjs → MazBtn-BT4o0zLa.mjs} +2 -2
- package/components/chunks/{MazBtn-D53RC3KP.mjs → MazBtn-Ba8ff2Nu.mjs} +3 -3
- package/components/chunks/{MazBtn-DYURBZtp.mjs → MazBtn-Bdhu8JTk.mjs} +2 -2
- package/components/chunks/{MazBtn-BO1U1gVG.mjs → MazBtn-CbTqLKv1.mjs} +3 -3
- package/components/chunks/MazBtn-DAzJbcTl.mjs +103 -0
- package/components/chunks/{MazBtn-CP-m-KDm.mjs → MazBtn-DCGXwqRM.mjs} +3 -3
- package/components/chunks/MazBtn-DGIjSCP2.mjs +103 -0
- package/components/chunks/{MazBtn-CUoFOAML.mjs → MazBtn-DXinft-p.mjs} +3 -3
- package/components/chunks/MazBtn-DnpSuILi.mjs +103 -0
- package/components/chunks/{MazBtn-BugQGoO-.mjs → MazBtn-GYr50Ap4.mjs} +3 -3
- package/components/chunks/{MazBtn-Cyn7ObTB.mjs → MazBtn-IBh1tCot.mjs} +3 -3
- package/components/chunks/{MazBtn-MvFibIXn.mjs → MazBtn-UDAwHekF.mjs} +3 -3
- package/components/chunks/{MazCard-D-q6vhWd.mjs → MazCard-CQBFy8r_.mjs} +4 -4
- package/components/chunks/{MazCarousel-Z4XypOn_.mjs → MazCarousel-Bcn7nKDo.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DJi0g4uK.mjs → MazCheckbox-B8Rnqa6O.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DafMJoEw.mjs → MazCheckbox-Br41Nrq7.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BImOZ1aM.mjs → MazCheckbox-t4i9eR04.mjs} +1 -1
- package/components/chunks/{MazChecklist-DaEf6wix.mjs → MazChecklist-DLr57bfX.mjs} +1 -1
- package/components/chunks/{MazDialog-PVsds2Mw.mjs → MazDialog-ak7mSNff.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BdtiOZGU.mjs → MazDialogPromise-JvS9f5Of.mjs} +2 -2
- package/components/chunks/{MazDrawer-CMHe_JEh.mjs → MazDrawer-CTsb4x_4.mjs} +1 -1
- package/components/chunks/{MazDropdown-DpGSAqe0.mjs → MazDropdown-BxMokXYe.mjs} +1 -1
- package/components/chunks/{MazGallery-BtuCo-H0.mjs → MazGallery-C7Zp1iYc.mjs} +2 -2
- package/components/chunks/MazIcon-C47uJeFY.mjs +4 -0
- package/components/chunks/{MazIcon-Bnebkvf6.mjs → MazIcon-mGVzj6Xw.mjs} +1 -1
- package/components/chunks/{MazInput-C3QweR84.mjs → MazInput-BK2OXh6D.mjs} +73 -84
- package/components/chunks/{MazInput-DvaaM9Iq.mjs → MazInput-BWHAOFtO.mjs} +66 -77
- package/components/chunks/{MazInput-DjvBbUZl.mjs → MazInput-C2_KlBtJ.mjs} +67 -78
- package/components/chunks/{MazInputNumber-D904Pg1R.mjs → MazInputNumber-Bw6O0AGT.mjs} +104 -115
- package/components/chunks/{MazInputPrice-CQiJFPWB.mjs → MazInputPrice-BCM9ga_h.mjs} +104 -115
- package/components/chunks/{MazInputTags-BPSG1X1a.mjs → MazInputTags-B0B93sN-.mjs} +127 -138
- package/components/chunks/{MazLink-DnnBkVEE.mjs → MazLink-PEtIzV5x.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-Dm14PSs6.mjs → MazLoadingBar-BjzRnYVR.mjs} +1 -1
- package/components/chunks/{MazPagination-CuCKS1Qr.mjs → MazPagination-DKseqKmF.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-CKpP3yWz.mjs → MazPhoneNumberInput-CPm6LjfT.mjs} +354 -365
- package/components/chunks/MazPicker-BHBE1cC_.mjs +2482 -0
- package/components/chunks/{MazPickerMonthSwitcher-BDxk_Msi.mjs → MazPickerMonthSwitcher-CXfxTBNH.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DtHvsdEW.mjs → MazPickerShortcuts-BLuYu65Q.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DXkaTXFw.mjs → MazPickerYearSwitcher-CpSOH48Y.mjs} +1 -1
- package/components/chunks/{MazSelect-VAPsGKXy.mjs → MazSelect-CdSRiSW9.mjs} +3 -3
- package/components/chunks/{MazSelect-cthYMQqx.mjs → MazSelect-uHsahxjj.mjs} +188 -199
- package/components/chunks/{MazSpinner-Ba5WXlbx.mjs → MazSpinner-B3mUm5mz.mjs} +1 -1
- package/components/chunks/MazSpinner-B698e0ut.mjs +34 -0
- package/components/chunks/{MazSpinner-B5j5EaKc.mjs → MazSpinner-BEW98Fow.mjs} +1 -1
- package/components/chunks/{MazSpinner-94rvbsAk.mjs → MazSpinner-BqMt92KT.mjs} +1 -1
- package/components/chunks/{MazSpinner-DtFpBxRT.mjs → MazSpinner-Bs8Z0Ewo.mjs} +1 -1
- package/components/chunks/MazSpinner-C2OD6LW3.mjs +34 -0
- package/components/chunks/MazSpinner-C3zQC9oz.mjs +34 -0
- package/components/chunks/MazSpinner-C5pIord0.mjs +34 -0
- package/components/chunks/MazSpinner-C8KOYxzi.mjs +34 -0
- package/components/chunks/{MazSpinner-DLR4lVAu.mjs → MazSpinner-C8zfJPRU.mjs} +1 -1
- package/components/chunks/{MazSpinner-BLh6PkZJ.mjs → MazSpinner-C_uLffb-.mjs} +1 -1
- package/components/chunks/{MazSpinner-C2mutMJX.mjs → MazSpinner-Cu7WoA4N.mjs} +1 -1
- package/components/chunks/MazSpinner-CyqPQ7SW.mjs +34 -0
- package/components/chunks/MazSpinner-DV634NYb.mjs +34 -0
- package/components/chunks/MazSpinner-DW_14RuN.mjs +34 -0
- package/components/chunks/{MazSpinner-SnOek826.mjs → MazSpinner-DwQiUPTZ.mjs} +1 -1
- package/components/chunks/MazSpinner-zV6qnXaD.mjs +34 -0
- package/components/chunks/{MazTable-BuFlCw1p.mjs → MazTable-B5BMpCK1.mjs} +1 -1
- package/components/chunks/{MazTableCell-C6oDOvNH.mjs → MazTableCell-7Ahz87mm.mjs} +1 -1
- package/components/chunks/{MazTableRow-BBS8sW7w.mjs → MazTableRow-B0JiP3mV.mjs} +1 -1
- package/components/chunks/{MazTableTitle-D7J-0k_j.mjs → MazTableTitle-BdajfMLo.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-BlcqxvGq.mjs → MazTransitionExpand-BO_9-l3g.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-BjiQC2PC.mjs → MazBtn-CvuJewxV.mjs} +3 -3
- package/modules/chunks/{MazBtn-BnQrui8R.cjs → MazBtn-eZwyrxMU.cjs} +1 -1
- package/modules/chunks/{MazIcon-DwFVj44O.mjs → MazIcon-CeCRHfan.mjs} +1 -1
- package/modules/chunks/{MazIcon-D4oz63T8.cjs → MazIcon-u9VBpDx8.cjs} +1 -1
- package/modules/chunks/{MazSpinner-B18bQ49b.cjs → MazSpinner-BY5lnQ7u.cjs} +1 -1
- package/modules/chunks/{MazSpinner-7nqeVBxW.mjs → MazSpinner-DdDJ5vzJ.mjs} +1 -1
- package/modules/chunks/{index-D8S1X6Fy.mjs → index--62sMUK_.mjs} +4 -4
- package/modules/chunks/{index-IBifh-oY.cjs → index-Bq7zqUSE.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/components/chunks/MazBtn-DiYly5sp.mjs +0 -103
- package/components/chunks/MazBtn-Dlx6nLm2.mjs +0 -103
- package/components/chunks/MazBtn-MJYP-poo.mjs +0 -103
- package/components/chunks/MazBtn-tS9ACNLi.mjs +0 -103
- package/components/chunks/MazIcon-C7ZMosGw.mjs +0 -4
- package/components/chunks/MazPicker-g10_1sY_.mjs +0 -2493
- package/components/chunks/MazSpinner-C7TbmneX.mjs +0 -34
- package/components/chunks/MazSpinner-CcshuKK9.mjs +0 -34
- package/components/chunks/MazSpinner-D2J_jdkK.mjs +0 -34
- package/components/chunks/MazSpinner-DIzWfhcT.mjs +0 -34
- package/components/chunks/MazSpinner-DP019rLG.mjs +0 -34
- package/components/chunks/MazSpinner-DXCofnqs.mjs +0 -34
- package/components/chunks/MazSpinner-DmeOhZXm.mjs +0 -34
- package/components/chunks/MazSpinner-ZDRUpUqo.mjs +0 -34
- package/components/chunks/MazSpinner-qRqfN8k4.mjs +0 -34
|
@@ -153,7 +153,7 @@ import '../assets/MazDrawer.css';const Y = {
|
|
|
153
153
|
},
|
|
154
154
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
155
155
|
setup(n) {
|
|
156
|
-
const r = n, d = D(() => import("./MazBtn-
|
|
156
|
+
const r = n, d = D(() => import("./MazBtn-CbTqLKv1.mjs")), l = D(() => import("./x-mark-CnZwVvA7.mjs")), f = g(() => r.variant === "left" ? "start" : r.variant === "right" ? "end" : "none"), v = g(() => r.variant === "top" ? "start" : r.variant === "bottom" ? "end" : "none"), c = J(), u = g(() => !!(r.title || c.title));
|
|
157
157
|
return (t, o) => (p(), T(_, {
|
|
158
158
|
"backdrop-class": ["m-drawer", t.backdropClass],
|
|
159
159
|
justify: f.value,
|
|
@@ -186,7 +186,7 @@ const ge = ["innerHTML"], be = /* @__PURE__ */ Z({
|
|
|
186
186
|
const n = l, f = s, p = me({
|
|
187
187
|
componentName: "MazDropdown",
|
|
188
188
|
providedId: n.id
|
|
189
|
-
}), v = F(() => import("./MazBtn-
|
|
189
|
+
}), v = F(() => import("./MazBtn-Bdhu8JTk.mjs")), h = F(() => import("./MazLink-PEtIzV5x.mjs")), T = F(() => import("./chevron-down-BkvtON3b.mjs")), u = A(n.open), d = A(), C = M(() => n.size === "xl" ? "maz-text-lg" : n.size === "lg" || n.size === "md" || n.size === "sm" ? "maz-text-base" : n.size === "xs" || n.size === "mini" ? "maz-text-sm" : "maz-text-lg"), y = we((e) => {
|
|
190
190
|
r(e);
|
|
191
191
|
}, 200);
|
|
192
192
|
function L() {
|
|
@@ -2,7 +2,7 @@ import '../assets/MazGallery.css';var Ae = Object.defineProperty;
|
|
|
2
2
|
var Ie = (o, e, t) => e in o ? Ae(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var g = (o, e, t) => Ie(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { createVNode as z, render as M, defineComponent as ae, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, onBeforeMount as ke, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Pe } from "vue";
|
|
5
|
-
import { _ as ie } from "./MazCard-
|
|
5
|
+
import { _ as ie } from "./MazCard-CQBFy8r_.mjs";
|
|
6
6
|
function Oe(o, e) {
|
|
7
7
|
let t = e == null ? void 0 : e.element;
|
|
8
8
|
function s() {
|
|
@@ -46,7 +46,7 @@ const He = ["onKeypress"], $e = { class: "m-fullscreen-img-scroller" }, Be = ["s
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["close", "previous", "next", "before-close"],
|
|
48
48
|
setup(o, { emit: e }) {
|
|
49
|
-
const t = o, s = e, a = N(() => import("./MazSpinner-
|
|
49
|
+
const t = o, s = e, a = N(() => import("./MazSpinner-Bs8Z0Ewo.mjs")), l = N(() => import("./x-mark-CnZwVvA7.mjs")), u = N(() => import("./chevron-left-BqVOLRdC.mjs")), y = p(!1), x = p(!1), L = p(!1), h = p(!1), m = p(!1), c = Ee({
|
|
50
50
|
running: !1,
|
|
51
51
|
ended: !1
|
|
52
52
|
}), d = p(t.clickedElement), le = C(() => t.clickedElement.getBoundingClientRect()), H = p(), D = p(t.src), q = p(t.alt), j = p(), v = p(), $ = p(!0), ce = C(() => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./MazPhoneNumberInput-
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-CPm6LjfT.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { computed as s, useId as
|
|
2
|
-
import '../assets/MazInput.css';function
|
|
3
|
-
componentName:
|
|
4
|
-
providedId:
|
|
1
|
+
import { computed as s, useId as Q, defineComponent as W, defineAsyncComponent as c, ref as h, onMounted as X, useSlots as Y, openBlock as o, createElementBlock as f, normalizeClass as m, normalizeStyle as Z, unref as l, toDisplayString as k, createCommentVNode as a, createElementVNode as I, renderSlot as w, createBlock as u, resolveDynamicComponent as V, withDirectives as x, mergeProps as _, toHandlers as ee, vModelDynamic as te, withModifiers as oe, withCtx as M, createVNode as L } from "vue";
|
|
2
|
+
import '../assets/MazInput.css';function ae({
|
|
3
|
+
componentName: r,
|
|
4
|
+
providedId: i
|
|
5
5
|
}) {
|
|
6
|
-
return s(() =>
|
|
6
|
+
return s(() => i ?? `${r}-${Q().replace(/:/g, "")}`);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ne(r, i) {
|
|
9
9
|
let t;
|
|
10
10
|
return function(...n) {
|
|
11
11
|
clearTimeout(t), t = setTimeout(() => {
|
|
12
|
-
|
|
13
|
-
},
|
|
12
|
+
r.apply(this, n);
|
|
13
|
+
}, i);
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
const
|
|
16
|
+
const le = ["for"], re = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "m-input-wrapper-left"
|
|
19
|
-
},
|
|
19
|
+
}, se = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], ie = {
|
|
20
20
|
key: 1,
|
|
21
21
|
class: "m-input-wrapper-right"
|
|
22
|
-
},
|
|
22
|
+
}, ue = /* @__PURE__ */ W({
|
|
23
23
|
inheritAttrs: !1,
|
|
24
24
|
__name: "MazInput",
|
|
25
25
|
props: {
|
|
@@ -59,16 +59,16 @@ const se = ["for"], ie = {
|
|
|
59
59
|
autocomplete: {}
|
|
60
60
|
},
|
|
61
61
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
62
|
-
setup(
|
|
63
|
-
const t =
|
|
62
|
+
setup(r, { emit: i }) {
|
|
63
|
+
const t = r, n = i, v = c(() => import("./MazBtn-BHD7Xbr_.mjs")), B = c(() => import("./MazIcon-Cq1v4J3r.mjs")), T = c(() => import("./eye-slash-BoO00xzs.mjs")), D = c(() => import("./eye-f8zAUc30.mjs")), E = c(() => import("./check-BmubdHc_.mjs")), b = h(!1), p = h(!1), $ = h(), C = ae({
|
|
64
64
|
componentName: "MazInput",
|
|
65
65
|
providedId: t.id
|
|
66
66
|
});
|
|
67
|
-
|
|
67
|
+
X(() => {
|
|
68
68
|
var e;
|
|
69
69
|
t.autoFocus && ((e = $.value) == null || e.focus());
|
|
70
70
|
});
|
|
71
|
-
const
|
|
71
|
+
const S = s(() => t.type === "password"), q = s(() => b.value ? "text" : t.type), A = s(() => {
|
|
72
72
|
if (!t.noBorder) {
|
|
73
73
|
if (t.error)
|
|
74
74
|
return "maz-border-danger";
|
|
@@ -76,7 +76,7 @@ const se = ["for"], ie = {
|
|
|
76
76
|
return "maz-border-success";
|
|
77
77
|
if (t.warning)
|
|
78
78
|
return "maz-border-warning";
|
|
79
|
-
if (
|
|
79
|
+
if (p.value || t.borderActive) {
|
|
80
80
|
if (t.color === "black")
|
|
81
81
|
return "maz-border-black";
|
|
82
82
|
if (t.color === "danger")
|
|
@@ -96,51 +96,47 @@ const se = ["for"], ie = {
|
|
|
96
96
|
}
|
|
97
97
|
return "--default-border";
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
100
|
-
const { required: e, placeholder: l } = t;
|
|
101
|
-
if (l)
|
|
102
|
-
return e ? `${l} *` : l;
|
|
103
|
-
}), A = s(() => y.value !== void 0 && y.value !== ""), F = re(
|
|
99
|
+
}), g = Y(), F = s(() => y.value !== void 0 && y.value !== ""), N = ne(
|
|
104
100
|
(e) => {
|
|
105
101
|
n("update:model-value", e);
|
|
106
102
|
},
|
|
107
103
|
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
108
104
|
);
|
|
109
|
-
function
|
|
105
|
+
function P(e) {
|
|
110
106
|
if (t.debounce)
|
|
111
|
-
return
|
|
107
|
+
return N(e);
|
|
112
108
|
n("update:model-value", e);
|
|
113
109
|
}
|
|
114
110
|
const y = s({
|
|
115
111
|
get: () => t.modelValue,
|
|
116
|
-
set: (e) =>
|
|
117
|
-
}),
|
|
112
|
+
set: (e) => P(e)
|
|
113
|
+
}), O = s(() => (!!t.label || !!t.hint) && (p.value || !!F.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), R = s(() => !!t.label || !!t.hint);
|
|
114
|
+
function U() {
|
|
115
|
+
return !!g["right-icon"] || S.value || !!g["valid-button"] || t.validButton || !!t.rightIcon;
|
|
116
|
+
}
|
|
118
117
|
function j() {
|
|
119
|
-
return !!
|
|
118
|
+
return !!g["left-icon"] || !!t.leftIcon;
|
|
120
119
|
}
|
|
121
|
-
function H() {
|
|
122
|
-
|
|
120
|
+
function H(e) {
|
|
121
|
+
n("focus", e), p.value = !0;
|
|
123
122
|
}
|
|
124
123
|
function G(e) {
|
|
125
|
-
n("
|
|
124
|
+
n("blur", e), p.value = !1;
|
|
126
125
|
}
|
|
127
126
|
function J(e) {
|
|
128
|
-
n("blur", e), f.value = !1;
|
|
129
|
-
}
|
|
130
|
-
function K(e) {
|
|
131
127
|
return n("change", e);
|
|
132
128
|
}
|
|
133
|
-
function
|
|
129
|
+
function K(e) {
|
|
134
130
|
return n("input", e);
|
|
135
131
|
}
|
|
136
|
-
return (e,
|
|
132
|
+
return (e, d) => (o(), f(
|
|
137
133
|
"div",
|
|
138
134
|
{
|
|
139
135
|
class: m(["m-input", [
|
|
140
136
|
{
|
|
141
|
-
"--is-focused":
|
|
142
|
-
"--should-up":
|
|
143
|
-
"--has-label":
|
|
137
|
+
"--is-focused": p.value || e.borderActive,
|
|
138
|
+
"--should-up": O.value,
|
|
139
|
+
"--has-label": R.value,
|
|
144
140
|
"--is-disabled": e.disabled,
|
|
145
141
|
"--is-readonly": e.readonly,
|
|
146
142
|
"--has-z-2": e.error || e.warning || e.success,
|
|
@@ -150,32 +146,32 @@ const se = ["for"], ie = {
|
|
|
150
146
|
t.class,
|
|
151
147
|
`--${e.color}`
|
|
152
148
|
]]),
|
|
153
|
-
style:
|
|
149
|
+
style: Z(e.style)
|
|
154
150
|
},
|
|
155
151
|
[
|
|
156
|
-
e.topLabel ? (o(),
|
|
152
|
+
e.topLabel ? (o(), f("label", {
|
|
157
153
|
key: 0,
|
|
158
|
-
for:
|
|
154
|
+
for: l(C),
|
|
159
155
|
class: "m-input-top-label"
|
|
160
|
-
}, k(e.topLabel), 9,
|
|
156
|
+
}, k(e.topLabel), 9, le)) : a("v-if", !0),
|
|
161
157
|
I(
|
|
162
158
|
"div",
|
|
163
159
|
{
|
|
164
160
|
class: m(["m-input-wrapper m-reset-css", [
|
|
165
161
|
e.inputClasses,
|
|
166
|
-
|
|
162
|
+
A.value,
|
|
167
163
|
e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius },
|
|
168
164
|
{ "--block": e.block }
|
|
169
165
|
]])
|
|
170
166
|
},
|
|
171
167
|
[
|
|
172
|
-
|
|
168
|
+
j() ? (o(), f("div", re, [
|
|
173
169
|
e.$slots["left-icon"] || e.leftIcon ? w(e.$slots, "left-icon", { key: 0 }, () => [
|
|
174
|
-
typeof e.leftIcon == "string" ? (o(),
|
|
170
|
+
typeof e.leftIcon == "string" ? (o(), u(l(B), {
|
|
175
171
|
key: 0,
|
|
176
172
|
name: e.leftIcon,
|
|
177
173
|
class: "maz-text-xl maz-text-muted"
|
|
178
|
-
}, null, 8, ["name"])) : e.leftIcon ? (o(),
|
|
174
|
+
}, null, 8, ["name"])) : e.leftIcon ? (o(), u(V(e.leftIcon), {
|
|
179
175
|
key: 1,
|
|
180
176
|
class: "maz-text-xl maz-text-muted"
|
|
181
177
|
})) : a("v-if", !0)
|
|
@@ -187,31 +183,31 @@ const se = ["for"], ie = {
|
|
|
187
183
|
class: m(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
|
|
188
184
|
},
|
|
189
185
|
[
|
|
190
|
-
|
|
186
|
+
x(I("input", _({ id: l(C) }, e.$attrs, {
|
|
191
187
|
ref_key: "input",
|
|
192
188
|
ref: $,
|
|
193
|
-
"onUpdate:modelValue":
|
|
189
|
+
"onUpdate:modelValue": d[0] || (d[0] = (z) => y.value = z),
|
|
194
190
|
name: e.name,
|
|
195
|
-
placeholder:
|
|
191
|
+
placeholder: e.placeholder,
|
|
196
192
|
"aria-label": e.label || e.placeholder,
|
|
197
|
-
type:
|
|
193
|
+
type: q.value,
|
|
198
194
|
inputmode: e.inputmode,
|
|
199
195
|
disabled: e.disabled,
|
|
200
196
|
readonly: e.readonly,
|
|
201
197
|
autocomplete: e.autocomplete,
|
|
202
198
|
required: e.required,
|
|
203
199
|
class: "m-input-input"
|
|
204
|
-
},
|
|
205
|
-
blur:
|
|
206
|
-
focus:
|
|
207
|
-
change:
|
|
208
|
-
input:
|
|
200
|
+
}, ee({
|
|
201
|
+
blur: G,
|
|
202
|
+
focus: H,
|
|
203
|
+
change: J,
|
|
204
|
+
input: K
|
|
209
205
|
}, !0), {
|
|
210
|
-
onClick:
|
|
211
|
-
}), null, 16,
|
|
212
|
-
[
|
|
206
|
+
onClick: d[1] || (d[1] = (z) => e.$emit("click", z))
|
|
207
|
+
}), null, 16, se), [
|
|
208
|
+
[te, y.value]
|
|
213
209
|
]),
|
|
214
|
-
e.label || e.hint ? (o(),
|
|
210
|
+
e.label || e.hint ? (o(), f(
|
|
215
211
|
"span",
|
|
216
212
|
{
|
|
217
213
|
key: 0,
|
|
@@ -223,44 +219,37 @@ const se = ["for"], ie = {
|
|
|
223
219
|
}
|
|
224
220
|
]])
|
|
225
221
|
},
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
1
|
|
230
|
-
/* TEXT */
|
|
231
|
-
),
|
|
232
|
-
e.required ? (o(), d("sup", de, "*")) : a("v-if", !0)
|
|
233
|
-
],
|
|
234
|
-
2
|
|
235
|
-
/* CLASS */
|
|
222
|
+
k(e.hint || e.label),
|
|
223
|
+
3
|
|
224
|
+
/* TEXT, CLASS */
|
|
236
225
|
)) : a("v-if", !0)
|
|
237
226
|
],
|
|
238
227
|
2
|
|
239
228
|
/* CLASS */
|
|
240
229
|
),
|
|
241
|
-
|
|
230
|
+
U() ? (o(), f("div", ie, [
|
|
242
231
|
e.$slots["right-icon"] || e.rightIcon ? w(e.$slots, "right-icon", { key: 0 }, () => [
|
|
243
|
-
typeof e.rightIcon == "string" ? (o(),
|
|
232
|
+
typeof e.rightIcon == "string" ? (o(), u(l(B), {
|
|
244
233
|
key: 0,
|
|
245
234
|
name: e.rightIcon,
|
|
246
235
|
class: "maz-text-xl maz-text-muted"
|
|
247
|
-
}, null, 8, ["name"])) : e.rightIcon ? (o(),
|
|
236
|
+
}, null, 8, ["name"])) : e.rightIcon ? (o(), u(V(e.rightIcon), {
|
|
248
237
|
key: 1,
|
|
249
238
|
class: "maz-text-xl maz-text-muted"
|
|
250
239
|
})) : a("v-if", !0)
|
|
251
240
|
], !0) : a("v-if", !0),
|
|
252
|
-
|
|
241
|
+
S.value ? (o(), u(l(v), {
|
|
253
242
|
key: 1,
|
|
254
243
|
color: "transparent",
|
|
255
244
|
tabindex: "-1",
|
|
256
245
|
size: "mini",
|
|
257
|
-
onClick:
|
|
246
|
+
onClick: d[2] || (d[2] = oe((z) => b.value = !b.value, ["stop"]))
|
|
258
247
|
}, {
|
|
259
248
|
default: M(() => [
|
|
260
|
-
b.value ? (o(),
|
|
249
|
+
b.value ? (o(), u(l(T), {
|
|
261
250
|
key: 0,
|
|
262
251
|
class: "maz-text-xl maz-text-muted"
|
|
263
|
-
})) : (o(),
|
|
252
|
+
})) : (o(), u(l(D), {
|
|
264
253
|
key: 1,
|
|
265
254
|
class: "maz-text-xl maz-text-muted"
|
|
266
255
|
}))
|
|
@@ -269,7 +258,7 @@ const se = ["for"], ie = {
|
|
|
269
258
|
/* STABLE */
|
|
270
259
|
})) : a("v-if", !0),
|
|
271
260
|
e.$slots["valid-button"] || e.validButton ? w(e.$slots, "valid-button", { key: 2 }, () => [
|
|
272
|
-
L(
|
|
261
|
+
L(l(v), {
|
|
273
262
|
color: "transparent",
|
|
274
263
|
disabled: e.disabled,
|
|
275
264
|
tabindex: "-1",
|
|
@@ -279,7 +268,7 @@ const se = ["for"], ie = {
|
|
|
279
268
|
type: "submit"
|
|
280
269
|
}, {
|
|
281
270
|
default: M(() => [
|
|
282
|
-
L(
|
|
271
|
+
L(l(E), { class: "maz-text-2xl maz-text-normal" })
|
|
283
272
|
]),
|
|
284
273
|
_: 1
|
|
285
274
|
/* STABLE */
|
|
@@ -290,7 +279,7 @@ const se = ["for"], ie = {
|
|
|
290
279
|
2
|
|
291
280
|
/* CLASS */
|
|
292
281
|
),
|
|
293
|
-
e.assistiveText ? (o(),
|
|
282
|
+
e.assistiveText ? (o(), f(
|
|
294
283
|
"div",
|
|
295
284
|
{
|
|
296
285
|
key: 1,
|
|
@@ -312,13 +301,13 @@ const se = ["for"], ie = {
|
|
|
312
301
|
/* CLASS, STYLE */
|
|
313
302
|
));
|
|
314
303
|
}
|
|
315
|
-
}),
|
|
316
|
-
const t =
|
|
317
|
-
for (const [n, v] of
|
|
304
|
+
}), de = (r, i) => {
|
|
305
|
+
const t = r.__vccOpts || r;
|
|
306
|
+
for (const [n, v] of i)
|
|
318
307
|
t[n] = v;
|
|
319
308
|
return t;
|
|
320
|
-
},
|
|
309
|
+
}, pe = /* @__PURE__ */ de(ue, [["__scopeId", "data-v-8def99c5"]]);
|
|
321
310
|
export {
|
|
322
|
-
|
|
323
|
-
|
|
311
|
+
pe as M,
|
|
312
|
+
de as _
|
|
324
313
|
};
|