maz-ui 3.49.0 → 3.49.1
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 +68 -74
- 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 +105 -111
- 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
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazAnimatedCounter.css';const
|
|
3
|
-
key: 0,
|
|
4
|
-
class: "m-animated-counter__fix"
|
|
5
|
-
}, A = /* @__PURE__ */ v({
|
|
1
|
+
import { defineComponent as x, ref as y, watch as A, openBlock as M, createElementBlock as V, createElementVNode as $, renderSlot as u, createTextVNode as o, toDisplayString as s } from "vue";
|
|
2
|
+
import './assets/MazAnimatedCounter.css';const g = { class: "m-animated-counter m-reset-css" }, k = { class: "maz-sr-only" }, z = /* @__PURE__ */ x({
|
|
6
3
|
__name: "MazAnimatedCounter",
|
|
7
4
|
props: {
|
|
8
5
|
count: {},
|
|
@@ -11,79 +8,76 @@ import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k =
|
|
|
11
8
|
suffix: { default: void 0 },
|
|
12
9
|
delay: { default: 100 }
|
|
13
10
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
() =>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
style: z({
|
|
34
|
-
"--count": e.count,
|
|
35
|
-
"--animation-duration": p.value
|
|
36
|
-
})
|
|
11
|
+
setup(r) {
|
|
12
|
+
const n = r, t = y(0);
|
|
13
|
+
function i(e, a, f, m) {
|
|
14
|
+
t.value = e, setTimeout(() => {
|
|
15
|
+
const p = performance.now(), c = (v) => {
|
|
16
|
+
const _ = v - p, d = Math.min(_ / f, 1), h = (l) => l * (2 - l);
|
|
17
|
+
t.value = Math.round(
|
|
18
|
+
e + (a - e) * h(d)
|
|
19
|
+
), d < 1 && requestAnimationFrame(c);
|
|
20
|
+
};
|
|
21
|
+
requestAnimationFrame(c);
|
|
22
|
+
}, m);
|
|
23
|
+
}
|
|
24
|
+
return A(
|
|
25
|
+
() => n.count,
|
|
26
|
+
(e, a) => {
|
|
27
|
+
if (e === a)
|
|
28
|
+
return;
|
|
29
|
+
i(a ?? 0, e, n.duration, n.delay);
|
|
37
30
|
},
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
a(e.prefix),
|
|
43
|
-
1
|
|
44
|
-
/* TEXT */
|
|
45
|
-
)
|
|
46
|
-
], !0),
|
|
31
|
+
{ immediate: !0 }
|
|
32
|
+
), (e, a) => (M(), V("span", g, [
|
|
33
|
+
$("span", k, [
|
|
34
|
+
u(e.$slots, "prefix", {}, () => [
|
|
47
35
|
o(
|
|
48
|
-
|
|
36
|
+
s(e.prefix),
|
|
49
37
|
1
|
|
50
38
|
/* TEXT */
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
39
|
+
)
|
|
40
|
+
], !0),
|
|
41
|
+
o(
|
|
42
|
+
s(e.count),
|
|
43
|
+
1
|
|
44
|
+
/* TEXT */
|
|
45
|
+
),
|
|
46
|
+
u(e.$slots, "suffix", {}, () => [
|
|
47
|
+
o(
|
|
48
|
+
s(e.suffix),
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
)
|
|
52
|
+
], !0)
|
|
53
|
+
]),
|
|
54
|
+
u(e.$slots, "prefix", {}, () => [
|
|
55
|
+
o(
|
|
56
|
+
s(e.prefix),
|
|
57
|
+
1
|
|
58
|
+
/* TEXT */
|
|
59
|
+
)
|
|
60
|
+
], !0),
|
|
61
|
+
o(
|
|
62
|
+
s(t.value),
|
|
63
|
+
1
|
|
64
|
+
/* TEXT */
|
|
65
|
+
),
|
|
66
|
+
u(e.$slots, "suffix", {}, () => [
|
|
67
|
+
o(
|
|
68
|
+
s(e.suffix),
|
|
69
|
+
1
|
|
70
|
+
/* TEXT */
|
|
71
|
+
)
|
|
72
|
+
], !0)
|
|
73
|
+
]));
|
|
80
74
|
}
|
|
81
|
-
}),
|
|
82
|
-
const
|
|
83
|
-
for (const [
|
|
84
|
-
|
|
85
|
-
return
|
|
86
|
-
},
|
|
75
|
+
}), C = (r, n) => {
|
|
76
|
+
const t = r.__vccOpts || r;
|
|
77
|
+
for (const [i, e] of n)
|
|
78
|
+
t[i] = e;
|
|
79
|
+
return t;
|
|
80
|
+
}, b = /* @__PURE__ */ C(z, [["__scopeId", "data-v-92bddebd"]]);
|
|
87
81
|
export {
|
|
88
|
-
|
|
82
|
+
b as default
|
|
89
83
|
};
|
|
@@ -6,21 +6,21 @@ import './assets/MazAnimatedElement.css';const v = /* @__PURE__ */ r({
|
|
|
6
6
|
delay: { default: 0 },
|
|
7
7
|
duration: { default: 2e3 }
|
|
8
8
|
},
|
|
9
|
-
setup(
|
|
10
|
-
const
|
|
9
|
+
setup(a) {
|
|
10
|
+
const o = i(() => `animate-slide-${a.direction}-blur`), t = l();
|
|
11
11
|
return c(() => {
|
|
12
|
-
const e = new IntersectionObserver((
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const e = new IntersectionObserver((n) => {
|
|
13
|
+
n.forEach((s) => {
|
|
14
|
+
s.isIntersecting && (s.target.classList.remove("--invisible"), s.target.classList.add(o.value), e.unobserve(s.target));
|
|
15
15
|
});
|
|
16
16
|
});
|
|
17
17
|
t.value && e.observe(t.value);
|
|
18
|
-
}), (e,
|
|
18
|
+
}), (e, n) => (d(), m(
|
|
19
19
|
"div",
|
|
20
20
|
{
|
|
21
21
|
ref_key: "element",
|
|
22
22
|
ref: t,
|
|
23
|
-
class: "m-animated-element m-
|
|
23
|
+
class: "m-animated-element m-reset-css --invisible",
|
|
24
24
|
style: u({
|
|
25
25
|
animationDuration: `${e.duration}ms`,
|
|
26
26
|
animationDelay: `${e.delay}ms`
|
|
@@ -33,12 +33,12 @@ import './assets/MazAnimatedElement.css';const v = /* @__PURE__ */ r({
|
|
|
33
33
|
/* STYLE */
|
|
34
34
|
));
|
|
35
35
|
}
|
|
36
|
-
}), p = (
|
|
37
|
-
const t =
|
|
38
|
-
for (const [e,
|
|
39
|
-
t[e] =
|
|
36
|
+
}), p = (a, o) => {
|
|
37
|
+
const t = a.__vccOpts || a;
|
|
38
|
+
for (const [e, n] of o)
|
|
39
|
+
t[e] = n;
|
|
40
40
|
return t;
|
|
41
|
-
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-
|
|
41
|
+
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-3cbee84b"]]);
|
|
42
42
|
export {
|
|
43
43
|
b as default
|
|
44
44
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as l, defineComponent as
|
|
1
|
+
import { ref as l, defineComponent as A, computed as v, onMounted as z, openBlock as o, createElementBlock as u, createBlock as w, resolveDynamicComponent as g, mergeProps as k, withCtx as x, Fragment as _, renderList as D, createElementVNode as f, normalizeClass as $, normalizeStyle as h, toDisplayString as p, createCommentVNode as C, createTextVNode as b } from "vue";
|
|
2
2
|
import './assets/MazAnimatedText.css';function T(s, r, i) {
|
|
3
3
|
const t = {
|
|
4
4
|
maxAttempts: 20,
|
|
@@ -33,7 +33,7 @@ const G = (s, r) => {
|
|
|
33
33
|
};
|
|
34
34
|
l(V);
|
|
35
35
|
l([]);
|
|
36
|
-
const B = { class: "m-
|
|
36
|
+
const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-text__last-word-inner" }, N = { class: "m-animated-text__last-word-inner-text" }, W = /* @__PURE__ */ A({
|
|
37
37
|
inheritAttrs: !1,
|
|
38
38
|
__name: "MazAnimatedText",
|
|
39
39
|
props: {
|
|
@@ -132,7 +132,7 @@ const B = { class: "m-component m-animated-text" }, M = { class: "m-animated-tex
|
|
|
132
132
|
k({ key: 1 }, e.$attrs, { class: "maz-invisible maz-inline-flex" }),
|
|
133
133
|
{
|
|
134
134
|
default: x(() => [
|
|
135
|
-
|
|
135
|
+
b(
|
|
136
136
|
p(e.text) + " ",
|
|
137
137
|
1
|
|
138
138
|
/* TEXT */
|
|
@@ -141,7 +141,7 @@ const B = { class: "m-component m-animated-text" }, M = { class: "m-animated-tex
|
|
|
141
141
|
_,
|
|
142
142
|
{ key: 0 },
|
|
143
143
|
[
|
|
144
|
-
|
|
144
|
+
b(
|
|
145
145
|
p(e.lastWord),
|
|
146
146
|
1
|
|
147
147
|
/* TEXT */
|
|
@@ -159,7 +159,7 @@ const B = { class: "m-component m-animated-text" }, M = { class: "m-animated-tex
|
|
|
159
159
|
))
|
|
160
160
|
]));
|
|
161
161
|
}
|
|
162
|
-
}), I = /* @__PURE__ */ G(W, [["__scopeId", "data-v-
|
|
162
|
+
}), I = /* @__PURE__ */ G(W, [["__scopeId", "data-v-face0b34"]]);
|
|
163
163
|
export {
|
|
164
164
|
I as default
|
|
165
165
|
};
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
import './assets/MazCircularProgressBar.css';function
|
|
3
|
-
componentName:
|
|
4
|
-
providedId:
|
|
1
|
+
import { computed as l, useId as P, defineComponent as z, ref as B, watch as M, openBlock as m, createElementBlock as g, createElementVNode as n, renderSlot as d, createTextVNode as i, toDisplayString as u, useSlots as S, normalizeStyle as I, unref as y, createBlock as A, createSlots as V, withCtx as x } from "vue";
|
|
2
|
+
import './assets/MazCircularProgressBar.css';function b({
|
|
3
|
+
componentName: s,
|
|
4
|
+
providedId: t
|
|
5
5
|
}) {
|
|
6
|
-
return
|
|
6
|
+
return l(() => t ?? `${s}-${P().replace(/:/g, "")}`);
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
key: 0,
|
|
10
|
-
class: "m-animated-counter__fix"
|
|
11
|
-
}, E = /* @__PURE__ */ x({
|
|
8
|
+
const q = { class: "m-animated-counter m-reset-css" }, N = { class: "maz-sr-only" }, T = /* @__PURE__ */ z({
|
|
12
9
|
__name: "MazAnimatedCounter",
|
|
13
10
|
props: {
|
|
14
11
|
count: {},
|
|
@@ -17,84 +14,81 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
17
14
|
suffix: { default: void 0 },
|
|
18
15
|
delay: { default: 100 }
|
|
19
16
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
() =>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
style: _({
|
|
40
|
-
"--count": t.count,
|
|
41
|
-
"--animation-duration": v.value
|
|
42
|
-
})
|
|
17
|
+
setup(s) {
|
|
18
|
+
const t = s, r = B(0);
|
|
19
|
+
function f(e, a, p, c) {
|
|
20
|
+
r.value = e, setTimeout(() => {
|
|
21
|
+
const h = performance.now(), v = (k) => {
|
|
22
|
+
const o = k - h, _ = Math.min(o / p, 1), C = ($) => $ * (2 - $);
|
|
23
|
+
r.value = Math.round(
|
|
24
|
+
e + (a - e) * C(_)
|
|
25
|
+
), _ < 1 && requestAnimationFrame(v);
|
|
26
|
+
};
|
|
27
|
+
requestAnimationFrame(v);
|
|
28
|
+
}, c);
|
|
29
|
+
}
|
|
30
|
+
return M(
|
|
31
|
+
() => t.count,
|
|
32
|
+
(e, a) => {
|
|
33
|
+
if (e === a)
|
|
34
|
+
return;
|
|
35
|
+
f(a ?? 0, e, t.duration, t.delay);
|
|
43
36
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
u(t.prefix),
|
|
49
|
-
1
|
|
50
|
-
/* TEXT */
|
|
51
|
-
)
|
|
52
|
-
], !0),
|
|
37
|
+
{ immediate: !0 }
|
|
38
|
+
), (e, a) => (m(), g("span", q, [
|
|
39
|
+
n("span", N, [
|
|
40
|
+
d(e.$slots, "prefix", {}, () => [
|
|
53
41
|
i(
|
|
54
|
-
|
|
42
|
+
u(e.prefix),
|
|
55
43
|
1
|
|
56
44
|
/* TEXT */
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
45
|
+
)
|
|
46
|
+
], !0),
|
|
47
|
+
i(
|
|
48
|
+
u(e.count),
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
),
|
|
52
|
+
d(e.$slots, "suffix", {}, () => [
|
|
53
|
+
i(
|
|
54
|
+
u(e.suffix),
|
|
55
|
+
1
|
|
56
|
+
/* TEXT */
|
|
57
|
+
)
|
|
58
|
+
], !0)
|
|
59
|
+
]),
|
|
60
|
+
d(e.$slots, "prefix", {}, () => [
|
|
61
|
+
i(
|
|
62
|
+
u(e.prefix),
|
|
63
|
+
1
|
|
64
|
+
/* TEXT */
|
|
65
|
+
)
|
|
66
|
+
], !0),
|
|
67
|
+
i(
|
|
68
|
+
u(r.value),
|
|
69
|
+
1
|
|
70
|
+
/* TEXT */
|
|
71
|
+
),
|
|
72
|
+
d(e.$slots, "suffix", {}, () => [
|
|
73
|
+
i(
|
|
74
|
+
u(e.suffix),
|
|
75
|
+
1
|
|
76
|
+
/* TEXT */
|
|
77
|
+
)
|
|
78
|
+
], !0)
|
|
79
|
+
]));
|
|
86
80
|
}
|
|
87
|
-
}),
|
|
88
|
-
const
|
|
89
|
-
for (const [f,
|
|
90
|
-
|
|
91
|
-
return
|
|
92
|
-
},
|
|
81
|
+
}), w = (s, t) => {
|
|
82
|
+
const r = s.__vccOpts || s;
|
|
83
|
+
for (const [f, e] of t)
|
|
84
|
+
r[f] = e;
|
|
85
|
+
return r;
|
|
86
|
+
}, D = /* @__PURE__ */ w(T, [["__scopeId", "data-v-92bddebd"]]), E = { class: "outer" }, F = { class: "inner" }, L = { key: 0 }, O = {
|
|
93
87
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
88
|
height: "1em",
|
|
95
89
|
width: "1em",
|
|
96
90
|
viewBox: "0 0 100 100"
|
|
97
|
-
},
|
|
91
|
+
}, W = ["id"], j = ["stop-color"], G = ["stop-color"], Q = ["stroke-width", "stroke", "stroke-linecap"], U = /* @__PURE__ */ z({
|
|
98
92
|
__name: "MazCircularProgressBar",
|
|
99
93
|
props: {
|
|
100
94
|
percentage: { default: 0 },
|
|
@@ -111,24 +105,24 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
111
105
|
warningPercentage: { default: 75 },
|
|
112
106
|
dangerPercentage: { default: 50 }
|
|
113
107
|
},
|
|
114
|
-
setup(
|
|
115
|
-
const
|
|
108
|
+
setup(s) {
|
|
109
|
+
const t = s, r = S(), f = l(() => !!t.prefix || !!r.prefix), e = l(() => !!t.suffix || !!r.suffix), a = b({
|
|
116
110
|
componentName: "MazCircularProgressBar"
|
|
117
|
-
}),
|
|
118
|
-
() =>
|
|
111
|
+
}), p = l(() => t.percentage > 100 ? 100 : t.percentage <= 0 ? 0.5 : t.percentage), c = l(
|
|
112
|
+
() => t.autoColor ? h(p.value) : t.color
|
|
119
113
|
);
|
|
120
|
-
function
|
|
121
|
-
return o <
|
|
114
|
+
function h(o) {
|
|
115
|
+
return o < t.dangerPercentage || o > 100 ? "danger" : o < t.warningPercentage ? "warning" : o >= t.successPercentage ? "success" : "primary";
|
|
122
116
|
}
|
|
123
|
-
const
|
|
124
|
-
return (o,
|
|
117
|
+
const v = l(() => `${t.duration}ms`), k = l(() => Math.round(290 - 290 * (p.value / 100)));
|
|
118
|
+
return (o, _) => (m(), g(
|
|
125
119
|
"div",
|
|
126
120
|
{
|
|
127
121
|
class: "m-circular-progress-bar m-reset-css",
|
|
128
|
-
style:
|
|
122
|
+
style: I([
|
|
129
123
|
{
|
|
130
|
-
"--animation-duration":
|
|
131
|
-
"--dashoffset":
|
|
124
|
+
"--animation-duration": v.value,
|
|
125
|
+
"--dashoffset": k.value
|
|
132
126
|
},
|
|
133
127
|
{
|
|
134
128
|
fontSize: o.size
|
|
@@ -136,22 +130,22 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
136
130
|
])
|
|
137
131
|
},
|
|
138
132
|
[
|
|
139
|
-
n("div",
|
|
140
|
-
n("div",
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
])) : (
|
|
133
|
+
n("div", E, [
|
|
134
|
+
n("div", F, [
|
|
135
|
+
y(r).default ? (m(), g("span", L, [
|
|
136
|
+
d(o.$slots, "default", {}, void 0, !0)
|
|
137
|
+
])) : (m(), A(D, {
|
|
144
138
|
key: 1,
|
|
145
139
|
count: o.percentage,
|
|
146
140
|
duration: o.duration
|
|
147
|
-
},
|
|
141
|
+
}, V({
|
|
148
142
|
_: 2
|
|
149
143
|
/* DYNAMIC */
|
|
150
144
|
}, [
|
|
151
145
|
f.value ? {
|
|
152
146
|
name: "prefix",
|
|
153
|
-
fn:
|
|
154
|
-
|
|
147
|
+
fn: x(() => [
|
|
148
|
+
d(o.$slots, "prefix", {}, () => [
|
|
155
149
|
i(
|
|
156
150
|
u(o.prefix),
|
|
157
151
|
1
|
|
@@ -161,10 +155,10 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
161
155
|
]),
|
|
162
156
|
key: "0"
|
|
163
157
|
} : void 0,
|
|
164
|
-
|
|
158
|
+
e.value ? {
|
|
165
159
|
name: "suffix",
|
|
166
|
-
fn:
|
|
167
|
-
|
|
160
|
+
fn: x(() => [
|
|
161
|
+
d(o.$slots, "suffix", {}, () => [
|
|
168
162
|
i(
|
|
169
163
|
u(o.suffix),
|
|
170
164
|
1
|
|
@@ -177,10 +171,10 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
177
171
|
]), 1032, ["count", "duration"]))
|
|
178
172
|
])
|
|
179
173
|
]),
|
|
180
|
-
(
|
|
174
|
+
(m(), g("svg", O, [
|
|
181
175
|
n("defs", null, [
|
|
182
176
|
n("linearGradient", {
|
|
183
|
-
id: `${
|
|
177
|
+
id: `${y(a)}-gradient`,
|
|
184
178
|
x1: "0",
|
|
185
179
|
x2: "0",
|
|
186
180
|
y1: "1",
|
|
@@ -188,13 +182,13 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
188
182
|
}, [
|
|
189
183
|
n("stop", {
|
|
190
184
|
offset: "0%",
|
|
191
|
-
"stop-color":
|
|
192
|
-
}, null, 8,
|
|
185
|
+
"stop-color": c.value ? `var(--maz-color-${c.value}-400)` : "var(--maz-color-primary)"
|
|
186
|
+
}, null, 8, j),
|
|
193
187
|
n("stop", {
|
|
194
188
|
offset: "100%",
|
|
195
|
-
"stop-color":
|
|
196
|
-
}, null, 8,
|
|
197
|
-
], 8,
|
|
189
|
+
"stop-color": c.value ? `var(--maz-color-${c.value}-700)` : "var(--maz-color-secondary)"
|
|
190
|
+
}, null, 8, G)
|
|
191
|
+
], 8, W)
|
|
198
192
|
]),
|
|
199
193
|
n("circle", {
|
|
200
194
|
cx: "50",
|
|
@@ -203,17 +197,17 @@ const V = { class: "maz-sr-only" }, D = {
|
|
|
203
197
|
"stroke-width": o.strokeWidth,
|
|
204
198
|
"stroke-dasharray": "290",
|
|
205
199
|
"stroke-dashoffset": "290",
|
|
206
|
-
stroke: o.stroke ? o.stroke : `url(#${
|
|
200
|
+
stroke: o.stroke ? o.stroke : `url(#${y(a)}-gradient)`,
|
|
207
201
|
fill: "none",
|
|
208
202
|
"stroke-linecap": o.strokeLinecap
|
|
209
|
-
}, null, 8,
|
|
203
|
+
}, null, 8, Q)
|
|
210
204
|
]))
|
|
211
205
|
],
|
|
212
206
|
4
|
|
213
207
|
/* STYLE */
|
|
214
208
|
));
|
|
215
209
|
}
|
|
216
|
-
}),
|
|
210
|
+
}), J = /* @__PURE__ */ w(U, [["__scopeId", "data-v-73fe8da6"]]);
|
|
217
211
|
export {
|
|
218
|
-
|
|
212
|
+
J as default
|
|
219
213
|
};
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
package/components/MazInput.mjs
CHANGED