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.
Files changed (129) hide show
  1. package/components/MazAnimatedCounter.mjs +68 -74
  2. package/components/MazAnimatedElement.mjs +12 -12
  3. package/components/MazAnimatedText.mjs +5 -5
  4. package/components/MazBottomSheet.mjs +1 -1
  5. package/components/MazBtn.mjs +1 -1
  6. package/components/MazCard.mjs +1 -1
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazChecklist.mjs +1 -1
  9. package/components/MazCircularProgressBar.mjs +105 -111
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.mjs +1 -1
  12. package/components/MazDrawer.mjs +1 -1
  13. package/components/MazDropdown.mjs +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.mjs +1 -1
  16. package/components/MazInputPrice.mjs +1 -1
  17. package/components/MazInputTags.mjs +1 -1
  18. package/components/MazPagination.mjs +1 -1
  19. package/components/MazPhoneNumberInput.mjs +1 -1
  20. package/components/MazPicker.mjs +1 -1
  21. package/components/MazSelect.mjs +1 -1
  22. package/components/MazTable.mjs +1 -1
  23. package/components/assets/MazAnimatedCounter.css +1 -1
  24. package/components/assets/MazAnimatedElement.css +1 -1
  25. package/components/assets/MazAnimatedText.css +1 -1
  26. package/components/assets/MazBtn.css +1 -1
  27. package/components/assets/MazCard.css +1 -1
  28. package/components/assets/MazCircularProgressBar.css +1 -1
  29. package/components/assets/MazInput.css +1 -1
  30. package/components/assets/MazInputNumber.css +1 -1
  31. package/components/assets/MazInputPrice.css +1 -1
  32. package/components/assets/MazInputTags.css +1 -1
  33. package/components/assets/MazPagination.css +1 -1
  34. package/components/assets/MazPhoneNumberInput.css +1 -1
  35. package/components/assets/MazPicker.css +1 -1
  36. package/components/chunks/{MazBottomSheet-CNFupuJS.mjs → MazBottomSheet-CIXEEUpN.mjs} +1 -1
  37. package/components/chunks/MazBtn-9Jk8ZkBq.mjs +103 -0
  38. package/components/chunks/{MazBtn-BJNzz7YT.mjs → MazBtn-BHD7Xbr_.mjs} +3 -3
  39. package/components/chunks/{MazBtn-CKDJOBcC.mjs → MazBtn-BT4o0zLa.mjs} +2 -2
  40. package/components/chunks/{MazBtn-D53RC3KP.mjs → MazBtn-Ba8ff2Nu.mjs} +3 -3
  41. package/components/chunks/{MazBtn-DYURBZtp.mjs → MazBtn-Bdhu8JTk.mjs} +2 -2
  42. package/components/chunks/{MazBtn-BO1U1gVG.mjs → MazBtn-CbTqLKv1.mjs} +3 -3
  43. package/components/chunks/MazBtn-DAzJbcTl.mjs +103 -0
  44. package/components/chunks/{MazBtn-CP-m-KDm.mjs → MazBtn-DCGXwqRM.mjs} +3 -3
  45. package/components/chunks/MazBtn-DGIjSCP2.mjs +103 -0
  46. package/components/chunks/{MazBtn-CUoFOAML.mjs → MazBtn-DXinft-p.mjs} +3 -3
  47. package/components/chunks/MazBtn-DnpSuILi.mjs +103 -0
  48. package/components/chunks/{MazBtn-BugQGoO-.mjs → MazBtn-GYr50Ap4.mjs} +3 -3
  49. package/components/chunks/{MazBtn-Cyn7ObTB.mjs → MazBtn-IBh1tCot.mjs} +3 -3
  50. package/components/chunks/{MazBtn-MvFibIXn.mjs → MazBtn-UDAwHekF.mjs} +3 -3
  51. package/components/chunks/{MazCard-D-q6vhWd.mjs → MazCard-CQBFy8r_.mjs} +4 -4
  52. package/components/chunks/{MazCarousel-Z4XypOn_.mjs → MazCarousel-Bcn7nKDo.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-DJi0g4uK.mjs → MazCheckbox-B8Rnqa6O.mjs} +1 -1
  54. package/components/chunks/{MazCheckbox-DafMJoEw.mjs → MazCheckbox-Br41Nrq7.mjs} +1 -1
  55. package/components/chunks/{MazCheckbox-BImOZ1aM.mjs → MazCheckbox-t4i9eR04.mjs} +1 -1
  56. package/components/chunks/{MazChecklist-DaEf6wix.mjs → MazChecklist-DLr57bfX.mjs} +1 -1
  57. package/components/chunks/{MazDialog-PVsds2Mw.mjs → MazDialog-ak7mSNff.mjs} +1 -1
  58. package/components/chunks/{MazDialogPromise-BdtiOZGU.mjs → MazDialogPromise-JvS9f5Of.mjs} +2 -2
  59. package/components/chunks/{MazDrawer-CMHe_JEh.mjs → MazDrawer-CTsb4x_4.mjs} +1 -1
  60. package/components/chunks/{MazDropdown-DpGSAqe0.mjs → MazDropdown-BxMokXYe.mjs} +1 -1
  61. package/components/chunks/{MazGallery-BtuCo-H0.mjs → MazGallery-C7Zp1iYc.mjs} +2 -2
  62. package/components/chunks/MazIcon-C47uJeFY.mjs +4 -0
  63. package/components/chunks/{MazIcon-Bnebkvf6.mjs → MazIcon-mGVzj6Xw.mjs} +1 -1
  64. package/components/chunks/{MazInput-C3QweR84.mjs → MazInput-BK2OXh6D.mjs} +73 -84
  65. package/components/chunks/{MazInput-DvaaM9Iq.mjs → MazInput-BWHAOFtO.mjs} +66 -77
  66. package/components/chunks/{MazInput-DjvBbUZl.mjs → MazInput-C2_KlBtJ.mjs} +67 -78
  67. package/components/chunks/{MazInputNumber-D904Pg1R.mjs → MazInputNumber-Bw6O0AGT.mjs} +104 -115
  68. package/components/chunks/{MazInputPrice-CQiJFPWB.mjs → MazInputPrice-BCM9ga_h.mjs} +104 -115
  69. package/components/chunks/{MazInputTags-BPSG1X1a.mjs → MazInputTags-B0B93sN-.mjs} +127 -138
  70. package/components/chunks/{MazLink-DnnBkVEE.mjs → MazLink-PEtIzV5x.mjs} +1 -1
  71. package/components/chunks/{MazLoadingBar-Dm14PSs6.mjs → MazLoadingBar-BjzRnYVR.mjs} +1 -1
  72. package/components/chunks/{MazPagination-CuCKS1Qr.mjs → MazPagination-DKseqKmF.mjs} +2 -2
  73. package/components/chunks/{MazPhoneNumberInput-CKpP3yWz.mjs → MazPhoneNumberInput-CPm6LjfT.mjs} +354 -365
  74. package/components/chunks/MazPicker-BHBE1cC_.mjs +2482 -0
  75. package/components/chunks/{MazPickerMonthSwitcher-BDxk_Msi.mjs → MazPickerMonthSwitcher-CXfxTBNH.mjs} +1 -1
  76. package/components/chunks/{MazPickerShortcuts-DtHvsdEW.mjs → MazPickerShortcuts-BLuYu65Q.mjs} +1 -1
  77. package/components/chunks/{MazPickerYearSwitcher-DXkaTXFw.mjs → MazPickerYearSwitcher-CpSOH48Y.mjs} +1 -1
  78. package/components/chunks/{MazSelect-VAPsGKXy.mjs → MazSelect-CdSRiSW9.mjs} +3 -3
  79. package/components/chunks/{MazSelect-cthYMQqx.mjs → MazSelect-uHsahxjj.mjs} +188 -199
  80. package/components/chunks/{MazSpinner-Ba5WXlbx.mjs → MazSpinner-B3mUm5mz.mjs} +1 -1
  81. package/components/chunks/MazSpinner-B698e0ut.mjs +34 -0
  82. package/components/chunks/{MazSpinner-B5j5EaKc.mjs → MazSpinner-BEW98Fow.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-94rvbsAk.mjs → MazSpinner-BqMt92KT.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-DtFpBxRT.mjs → MazSpinner-Bs8Z0Ewo.mjs} +1 -1
  85. package/components/chunks/MazSpinner-C2OD6LW3.mjs +34 -0
  86. package/components/chunks/MazSpinner-C3zQC9oz.mjs +34 -0
  87. package/components/chunks/MazSpinner-C5pIord0.mjs +34 -0
  88. package/components/chunks/MazSpinner-C8KOYxzi.mjs +34 -0
  89. package/components/chunks/{MazSpinner-DLR4lVAu.mjs → MazSpinner-C8zfJPRU.mjs} +1 -1
  90. package/components/chunks/{MazSpinner-BLh6PkZJ.mjs → MazSpinner-C_uLffb-.mjs} +1 -1
  91. package/components/chunks/{MazSpinner-C2mutMJX.mjs → MazSpinner-Cu7WoA4N.mjs} +1 -1
  92. package/components/chunks/MazSpinner-CyqPQ7SW.mjs +34 -0
  93. package/components/chunks/MazSpinner-DV634NYb.mjs +34 -0
  94. package/components/chunks/MazSpinner-DW_14RuN.mjs +34 -0
  95. package/components/chunks/{MazSpinner-SnOek826.mjs → MazSpinner-DwQiUPTZ.mjs} +1 -1
  96. package/components/chunks/MazSpinner-zV6qnXaD.mjs +34 -0
  97. package/components/chunks/{MazTable-BuFlCw1p.mjs → MazTable-B5BMpCK1.mjs} +1 -1
  98. package/components/chunks/{MazTableCell-C6oDOvNH.mjs → MazTableCell-7Ahz87mm.mjs} +1 -1
  99. package/components/chunks/{MazTableRow-BBS8sW7w.mjs → MazTableRow-B0JiP3mV.mjs} +1 -1
  100. package/components/chunks/{MazTableTitle-D7J-0k_j.mjs → MazTableTitle-BdajfMLo.mjs} +1 -1
  101. package/components/chunks/{MazTransitionExpand-BlcqxvGq.mjs → MazTransitionExpand-BO_9-l3g.mjs} +1 -1
  102. package/modules/assets/MazBtn.css +1 -1
  103. package/modules/chunks/{MazBtn-BjiQC2PC.mjs → MazBtn-CvuJewxV.mjs} +3 -3
  104. package/modules/chunks/{MazBtn-BnQrui8R.cjs → MazBtn-eZwyrxMU.cjs} +1 -1
  105. package/modules/chunks/{MazIcon-DwFVj44O.mjs → MazIcon-CeCRHfan.mjs} +1 -1
  106. package/modules/chunks/{MazIcon-D4oz63T8.cjs → MazIcon-u9VBpDx8.cjs} +1 -1
  107. package/modules/chunks/{MazSpinner-B18bQ49b.cjs → MazSpinner-BY5lnQ7u.cjs} +1 -1
  108. package/modules/chunks/{MazSpinner-7nqeVBxW.mjs → MazSpinner-DdDJ5vzJ.mjs} +1 -1
  109. package/modules/chunks/{index-D8S1X6Fy.mjs → index--62sMUK_.mjs} +4 -4
  110. package/modules/chunks/{index-IBifh-oY.cjs → index-Bq7zqUSE.cjs} +2 -2
  111. package/modules/index.cjs +1 -1
  112. package/modules/index.mjs +1 -1
  113. package/nuxt/index.json +1 -1
  114. package/package.json +1 -1
  115. package/components/chunks/MazBtn-DiYly5sp.mjs +0 -103
  116. package/components/chunks/MazBtn-Dlx6nLm2.mjs +0 -103
  117. package/components/chunks/MazBtn-MJYP-poo.mjs +0 -103
  118. package/components/chunks/MazBtn-tS9ACNLi.mjs +0 -103
  119. package/components/chunks/MazIcon-C7ZMosGw.mjs +0 -4
  120. package/components/chunks/MazPicker-g10_1sY_.mjs +0 -2493
  121. package/components/chunks/MazSpinner-C7TbmneX.mjs +0 -34
  122. package/components/chunks/MazSpinner-CcshuKK9.mjs +0 -34
  123. package/components/chunks/MazSpinner-D2J_jdkK.mjs +0 -34
  124. package/components/chunks/MazSpinner-DIzWfhcT.mjs +0 -34
  125. package/components/chunks/MazSpinner-DP019rLG.mjs +0 -34
  126. package/components/chunks/MazSpinner-DXCofnqs.mjs +0 -34
  127. package/components/chunks/MazSpinner-DmeOhZXm.mjs +0 -34
  128. package/components/chunks/MazSpinner-ZDRUpUqo.mjs +0 -34
  129. package/components/chunks/MazSpinner-qRqfN8k4.mjs +0 -34
@@ -1,8 +1,5 @@
1
- import { defineComponent as v, useSlots as x, computed as l, ref as y, watch as _, openBlock as c, createElementBlock as m, normalizeClass as h, normalizeStyle as z, createElementVNode as C, renderSlot as i, createTextVNode as o, toDisplayString as a, createCommentVNode as S } from "vue";
2
- import './assets/MazAnimatedCounter.css';const $ = { class: "maz-sr-only" }, k = {
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(n) {
15
- const t = n, s = x(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), f = y(!0);
16
- _(
17
- () => t.count,
18
- (e, d) => {
19
- e !== d && (f.value = !1, setTimeout(() => {
20
- f.value = !0;
21
- }, t.delay));
22
- }
23
- );
24
- const p = l(() => `${t.duration}ms`);
25
- return (e, d) => (c(), m(
26
- "span",
27
- {
28
- class: h(["m-animated-counter m-reset-css", {
29
- "--animated": f.value,
30
- "--prefixed": r.value,
31
- "--suffixed": u.value
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
- C("span", $, [
40
- i(e.$slots, "prefix", {}, () => [
41
- o(
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
- " " + a(e.count) + " ",
36
+ s(e.prefix),
49
37
  1
50
38
  /* TEXT */
51
- ),
52
- i(e.$slots, "suffix", {}, () => [
53
- o(
54
- a(e.suffix),
55
- 1
56
- /* TEXT */
57
- )
58
- ], !0)
59
- ]),
60
- r.value || u.value ? (c(), m("span", k, [
61
- i(e.$slots, "prefix", {}, () => [
62
- o(
63
- a(e.prefix),
64
- 1
65
- /* TEXT */
66
- )
67
- ], !0),
68
- i(e.$slots, "suffix", {}, () => [
69
- o(
70
- a(e.suffix),
71
- 1
72
- /* TEXT */
73
- )
74
- ], !0)
75
- ])) : S("v-if", !0)
76
- ],
77
- 6
78
- /* CLASS, STYLE */
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
- }), M = (n, t) => {
82
- const s = n.__vccOpts || n;
83
- for (const [r, u] of t)
84
- s[r] = u;
85
- return s;
86
- }, V = /* @__PURE__ */ M(A, [["__scopeId", "data-v-2af49175"]]);
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
- V as default
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(n) {
10
- const s = i(() => `animate-slide-${n.direction}-blur`), t = l();
9
+ setup(a) {
10
+ const o = i(() => `animate-slide-${a.direction}-blur`), t = l();
11
11
  return c(() => {
12
- const e = new IntersectionObserver((a) => {
13
- a.forEach((o) => {
14
- o.isIntersecting && (o.target.classList.remove("--invisible"), o.target.classList.add(s.value), e.unobserve(o.target));
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, a) => (d(), m(
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-component --invisible",
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 = (n, s) => {
37
- const t = n.__vccOpts || n;
38
- for (const [e, a] of s)
39
- t[e] = a;
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-9b6c331c"]]);
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 b, 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 A } from "vue";
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-component m-animated-text" }, M = { class: "m-animated-text__last-word-inner" }, N = { class: "m-animated-text__last-word-inner-text" }, W = /* @__PURE__ */ b({
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
- A(
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
- A(
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-4a6f4c88"]]);
162
+ }), I = /* @__PURE__ */ G(W, [["__scopeId", "data-v-face0b34"]]);
163
163
  export {
164
164
  I as default
165
165
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBottomSheet-CNFupuJS.mjs";
1
+ import { M as f } from "./chunks/MazBottomSheet-CIXEEUpN.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazBtn-CKDJOBcC.mjs";
1
+ import { M as f } from "./chunks/MazBtn-BT4o0zLa.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCard-D-q6vhWd.mjs";
1
+ import { M as f } from "./chunks/MazCard-CQBFy8r_.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazCarousel-Z4XypOn_.mjs";
1
+ import { M as f } from "./chunks/MazCarousel-Bcn7nKDo.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazChecklist-DaEf6wix.mjs";
1
+ import { M as f } from "./chunks/MazChecklist-DLr57bfX.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,14 +1,11 @@
1
- import { computed as r, useId as C, defineComponent as x, useSlots as y, ref as P, watch as S, openBlock as p, createElementBlock as m, normalizeClass as B, normalizeStyle as _, createElementVNode as n, renderSlot as l, createTextVNode as i, toDisplayString as u, createCommentVNode as M, unref as h, createBlock as I, createSlots as N, withCtx as k } from "vue";
2
- import './assets/MazCircularProgressBar.css';function A({
3
- componentName: a,
4
- providedId: e
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 r(() => e ?? `${a}-${C().replace(/:/g, "")}`);
6
+ return l(() => t ?? `${s}-${P().replace(/:/g, "")}`);
7
7
  }
8
- const V = { class: "maz-sr-only" }, D = {
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(a) {
21
- const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = P(!0);
22
- S(
23
- () => e.count,
24
- (t, g) => {
25
- t !== g && (c.value = !1, setTimeout(() => {
26
- c.value = !0;
27
- }, e.delay));
28
- }
29
- );
30
- const v = r(() => `${e.duration}ms`);
31
- return (t, g) => (p(), m(
32
- "span",
33
- {
34
- class: B(["m-animated-counter m-reset-css", {
35
- "--animated": c.value,
36
- "--prefixed": f.value,
37
- "--suffixed": d.value
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
- n("span", V, [
46
- l(t.$slots, "prefix", {}, () => [
47
- i(
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
- " " + u(t.count) + " ",
42
+ u(e.prefix),
55
43
  1
56
44
  /* TEXT */
57
- ),
58
- l(t.$slots, "suffix", {}, () => [
59
- i(
60
- u(t.suffix),
61
- 1
62
- /* TEXT */
63
- )
64
- ], !0)
65
- ]),
66
- f.value || d.value ? (p(), m("span", D, [
67
- l(t.$slots, "prefix", {}, () => [
68
- i(
69
- u(t.prefix),
70
- 1
71
- /* TEXT */
72
- )
73
- ], !0),
74
- l(t.$slots, "suffix", {}, () => [
75
- i(
76
- u(t.suffix),
77
- 1
78
- /* TEXT */
79
- )
80
- ], !0)
81
- ])) : M("v-if", !0)
82
- ],
83
- 6
84
- /* CLASS, STYLE */
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
- }), $ = (a, e) => {
88
- const s = a.__vccOpts || a;
89
- for (const [f, d] of e)
90
- s[f] = d;
91
- return s;
92
- }, L = /* @__PURE__ */ $(E, [["__scopeId", "data-v-2af49175"]]), T = { class: "outer" }, W = { class: "inner" }, b = { key: 0 }, j = {
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
- }, q = ["id"], G = ["stop-color"], O = ["stop-color"], U = ["stroke-width", "stroke", "stroke-linecap"], F = /* @__PURE__ */ x({
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(a) {
115
- const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = A({
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
- }), v = r(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = r(
118
- () => e.autoColor ? g(v.value) : e.color
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 g(o) {
121
- return o < e.dangerPercentage || o > 100 ? "danger" : o < e.warningPercentage ? "warning" : o >= e.successPercentage ? "success" : "primary";
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 z = r(() => `${e.duration}ms`), w = r(() => Math.round(290 - 290 * (v.value / 100)));
124
- return (o, H) => (p(), m(
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": z.value,
131
- "--dashoffset": w.value
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", T, [
140
- n("div", W, [
141
- h(s).default ? (p(), m("span", b, [
142
- l(o.$slots, "default", {}, void 0, !0)
143
- ])) : (p(), I(L, {
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
- }, N({
141
+ }, V({
148
142
  _: 2
149
143
  /* DYNAMIC */
150
144
  }, [
151
145
  f.value ? {
152
146
  name: "prefix",
153
- fn: k(() => [
154
- l(o.$slots, "prefix", {}, () => [
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
- d.value ? {
158
+ e.value ? {
165
159
  name: "suffix",
166
- fn: k(() => [
167
- l(o.$slots, "suffix", {}, () => [
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
- (p(), m("svg", j, [
174
+ (m(), g("svg", O, [
181
175
  n("defs", null, [
182
176
  n("linearGradient", {
183
- id: `${h(c)}-gradient`,
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": t.value ? `var(--maz-color-${t.value}-400)` : "var(--maz-color-primary)"
192
- }, null, 8, G),
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": t.value ? `var(--maz-color-${t.value}-700)` : "var(--maz-color-secondary)"
196
- }, null, 8, O)
197
- ], 8, q)
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(#${h(c)}-gradient)`,
200
+ stroke: o.stroke ? o.stroke : `url(#${y(a)}-gradient)`,
207
201
  fill: "none",
208
202
  "stroke-linecap": o.strokeLinecap
209
- }, null, 8, U)
203
+ }, null, 8, Q)
210
204
  ]))
211
205
  ],
212
206
  4
213
207
  /* STYLE */
214
208
  ));
215
209
  }
216
- }), K = /* @__PURE__ */ $(F, [["__scopeId", "data-v-73fe8da6"]]);
210
+ }), J = /* @__PURE__ */ w(U, [["__scopeId", "data-v-73fe8da6"]]);
217
211
  export {
218
- K as default
212
+ J as default
219
213
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDialog-PVsds2Mw.mjs";
1
+ import { M as f } from "./chunks/MazDialog-ak7mSNff.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as o, u as s } from "./chunks/MazDialogPromise-BdtiOZGU.mjs";
1
+ import { a as o, u as s } from "./chunks/MazDialogPromise-JvS9f5Of.mjs";
2
2
  export {
3
3
  o as default,
4
4
  s as useMazDialogPromise
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazDrawer-CMHe_JEh.mjs";
1
+ import { M as f } from "./chunks/MazDrawer-CTsb4x_4.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazDropdown-DpGSAqe0.mjs";
1
+ import { a as f } from "./chunks/MazDropdown-BxMokXYe.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInput-C3QweR84.mjs";
1
+ import { M as f } from "./chunks/MazInput-BK2OXh6D.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputNumber-D904Pg1R.mjs";
1
+ import { a as f } from "./chunks/MazInputNumber-Bw6O0AGT.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputPrice-CQiJFPWB.mjs";
1
+ import { a as f } from "./chunks/MazInputPrice-BCM9ga_h.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import { M as f } from "./chunks/MazInputTags-BPSG1X1a.mjs";
1
+ import { M as f } from "./chunks/MazInputTags-B0B93sN-.mjs";
2
2
  export {
3
3
  f as default
4
4
  };