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.
Files changed (129) hide show
  1. package/components/MazAnimatedCounter.mjs +78 -73
  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 +128 -123
  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,8 @@
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 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(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));
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
- 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
- })
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
- C("span", $, [
40
- i(e.$slots, "prefix", {}, () => [
41
- o(
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
- " " + a(e.count) + " ",
47
+ r(e.prefix),
49
48
  1
50
49
  /* 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
- ));
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
- }), 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"]]);
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
- V as default
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(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,14 @@
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 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 r(() => e ?? `${a}-${C().replace(/:/g, "")}`);
6
+ return c(() => o ?? `${n}-${M().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
+ 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(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));
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
- 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
- })
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
- n("span", V, [
46
- l(t.$slots, "prefix", {}, () => [
47
- i(
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
- " " + u(t.count) + " ",
53
+ u(e.prefix),
55
54
  1
56
55
  /* 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
- ));
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
- }), $ = (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 = {
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
- }, q = ["id"], G = ["stop-color"], O = ["stop-color"], U = ["stroke-width", "stroke", "stroke-linecap"], F = /* @__PURE__ */ x({
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(a) {
115
- const e = a, s = y(), f = r(() => !!e.prefix || !!s.prefix), d = r(() => !!e.suffix || !!s.suffix), c = A({
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
- }), v = r(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = r(
118
- () => e.autoColor ? g(v.value) : e.color
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 g(o) {
121
- return o < e.dangerPercentage || o > 100 ? "danger" : o < e.warningPercentage ? "warning" : o >= e.successPercentage ? "success" : "primary";
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 z = r(() => `${e.duration}ms`), w = r(() => Math.round(290 - 290 * (v.value / 100)));
124
- return (o, H) => (p(), m(
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": z.value,
131
- "--dashoffset": w.value
135
+ "--animation-duration": v.value,
136
+ "--dashoffset": k.value
132
137
  },
133
138
  {
134
- fontSize: o.size
139
+ fontSize: t.size
135
140
  }
136
141
  ])
137
142
  },
138
143
  [
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, {
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: o.percentage,
146
- duration: o.duration
147
- }, N({
150
+ count: t.percentage,
151
+ duration: t.duration
152
+ }, V({
148
153
  _: 2
149
154
  /* DYNAMIC */
150
155
  }, [
151
- f.value ? {
156
+ l.value ? {
152
157
  name: "prefix",
153
- fn: k(() => [
154
- l(o.$slots, "prefix", {}, () => [
158
+ fn: x(() => [
159
+ f(t.$slots, "prefix", {}, () => [
155
160
  i(
156
- u(o.prefix),
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
- d.value ? {
169
+ p.value ? {
165
170
  name: "suffix",
166
- fn: k(() => [
167
- l(o.$slots, "suffix", {}, () => [
171
+ fn: x(() => [
172
+ f(t.$slots, "suffix", {}, () => [
168
173
  i(
169
- u(o.suffix),
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
- (p(), m("svg", j, [
181
- n("defs", null, [
182
- n("linearGradient", {
183
- id: `${h(c)}-gradient`,
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
- n("stop", {
194
+ a("stop", {
190
195
  offset: "0%",
191
- "stop-color": t.value ? `var(--maz-color-${t.value}-400)` : "var(--maz-color-primary)"
192
- }, null, 8, G),
193
- n("stop", {
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": t.value ? `var(--maz-color-${t.value}-700)` : "var(--maz-color-secondary)"
196
- }, null, 8, O)
197
- ], 8, q)
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
- n("circle", {
204
+ a("circle", {
200
205
  cx: "50",
201
206
  cy: "50",
202
207
  r: "46",
203
- "stroke-width": o.strokeWidth,
208
+ "stroke-width": t.strokeWidth,
204
209
  "stroke-dasharray": "290",
205
210
  "stroke-dashoffset": "290",
206
- stroke: o.stroke ? o.stroke : `url(#${h(c)}-gradient)`,
211
+ stroke: t.stroke ? t.stroke : `url(#${w(e)}-gradient)`,
207
212
  fill: "none",
208
- "stroke-linecap": o.strokeLinecap
209
- }, null, 8, U)
213
+ "stroke-linecap": t.strokeLinecap
214
+ }, null, 8, H)
210
215
  ]))
211
216
  ],
212
217
  4
213
218
  /* STYLE */
214
219
  ));
215
220
  }
216
- }), K = /* @__PURE__ */ $(F, [["__scopeId", "data-v-73fe8da6"]]);
221
+ }), X = /* @__PURE__ */ C(J, [["__scopeId", "data-v-73fe8da6"]]);
217
222
  export {
218
- K as default
223
+ X as default
219
224
  };
@@ -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
  };