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