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,4 +1,4 @@
1
- import { openBlock as a, createElementBlock as v, createElementVNode as M, defineComponent as L, defineAsyncComponent as I, useAttrs as ne, computed as s, createBlock as m, resolveDynamicComponent as C, normalizeClass as f, normalizeStyle as A, withCtx as N, renderSlot as w, unref as d, createCommentVNode as i, createVNode as S, useId as oe, ref as P, onMounted as le, useSlots as ae, toDisplayString as E, withDirectives as re, mergeProps as U, toHandlers as se, vModelDynamic as ie, createTextVNode as ue, withModifiers as D, withKeys as q } from "vue";
1
+ import { openBlock as a, createElementBlock as v, createElementVNode as V, defineComponent as L, defineAsyncComponent as B, useAttrs as te, computed as s, createBlock as m, resolveDynamicComponent as C, normalizeClass as f, normalizeStyle as A, withCtx as N, renderSlot as I, unref as d, createCommentVNode as i, createVNode as S, useId as ne, ref as E, onMounted as oe, useSlots as le, toDisplayString as P, withDirectives as ae, mergeProps as q, toHandlers as re, vModelDynamic as se, withModifiers as D, withKeys as U } from "vue";
2
2
  import '../assets/MazInputNumber.css';function R(p, l) {
3
3
  let t;
4
4
  return function(...u) {
@@ -7,16 +7,16 @@ import '../assets/MazInputNumber.css';function R(p, l) {
7
7
  }, l);
8
8
  };
9
9
  }
10
- const de = {
10
+ const ie = {
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  width: "1em",
13
13
  height: "1em",
14
14
  fill: "none",
15
15
  viewBox: "0 0 24 24"
16
16
  };
17
- function me(p, l) {
18
- return a(), v("svg", de, l[0] || (l[0] = [
19
- M(
17
+ function ue(p, l) {
18
+ return a(), v("svg", ie, l[0] || (l[0] = [
19
+ V(
20
20
  "path",
21
21
  {
22
22
  stroke: "currentColor",
@@ -31,16 +31,16 @@ function me(p, l) {
31
31
  )
32
32
  ]));
33
33
  }
34
- const pe = { render: me }, fe = {
34
+ const de = { render: ue }, me = {
35
35
  xmlns: "http://www.w3.org/2000/svg",
36
36
  width: "1em",
37
37
  height: "1em",
38
38
  fill: "none",
39
39
  viewBox: "0 0 24 24"
40
40
  };
41
- function ce(p, l) {
42
- return a(), v("svg", fe, l[0] || (l[0] = [
43
- M(
41
+ function pe(p, l) {
42
+ return a(), v("svg", me, l[0] || (l[0] = [
43
+ V(
44
44
  "path",
45
45
  {
46
46
  stroke: "currentColor",
@@ -55,10 +55,10 @@ function ce(p, l) {
55
55
  )
56
56
  ]));
57
57
  }
58
- const ve = { render: ce }, be = {
58
+ const fe = { render: pe }, ce = {
59
59
  key: 0,
60
60
  class: "m-btn-loader-container"
61
- }, ye = /* @__PURE__ */ L({
61
+ }, be = /* @__PURE__ */ L({
62
62
  __name: "MazBtn",
63
63
  props: {
64
64
  variant: { default: "button" },
@@ -83,23 +83,23 @@ const ve = { render: ce }, be = {
83
83
  justify: { default: "center" }
84
84
  },
85
85
  setup(p) {
86
- const l = p, t = I(() => import("./MazSpinner-94rvbsAk.mjs")), u = I(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: r, to: $ } = ne(), h = s(() => r ? "a" : $ ? "router-link" : "button"), V = s(() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`), g = s(
87
- () => (l.loading || l.disabled) && h.value === "button"
88
- ), z = s(() => g.value ? "--cursor-default" : "--cursor-pointer"), b = s(() => `--is-${l.variant}`), k = s(() => l.loading && l.variant === "button"), B = s(() => h.value === "button" ? l.type : void 0), n = s(() => l.size === "xl" ? "maz-text-3xl" : l.size === "lg" ? "maz-text-2xl" : l.size === "md" ? "maz-text-xl" : l.size === "sm" ? "maz-text-lg" : l.size === "xs" ? "maz-text-base" : l.size === "mini" ? "maz-text-sm" : "maz-text-xl");
89
- return (o, c) => (a(), m(C(h.value), {
90
- disabled: g.value || void 0,
86
+ const l = p, t = B(() => import("./MazSpinner-BqMt92KT.mjs")), u = B(() => import("./MazIcon-Cq1v4J3r.mjs")), { href: r, to: w } = te(), z = s(() => r ? "a" : w ? "router-link" : "button"), M = s(() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`), y = s(
87
+ () => (l.loading || l.disabled) && z.value === "button"
88
+ ), g = s(() => y.value ? "--cursor-default" : "--cursor-pointer"), b = s(() => `--is-${l.variant}`), h = s(() => l.loading && l.variant === "button"), k = s(() => z.value === "button" ? l.type : void 0), n = s(() => l.size === "xl" ? "maz-text-3xl" : l.size === "lg" ? "maz-text-2xl" : l.size === "md" ? "maz-text-xl" : l.size === "sm" ? "maz-text-lg" : l.size === "xs" ? "maz-text-base" : l.size === "mini" ? "maz-text-sm" : "maz-text-xl");
89
+ return (o, c) => (a(), m(C(z.value), {
90
+ disabled: y.value || void 0,
91
91
  class: f(["m-btn m-reset-css", [
92
92
  `--${o.size}`,
93
93
  !o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
94
- V.value,
95
- z.value,
94
+ M.value,
95
+ g.value,
96
96
  b.value,
97
97
  {
98
98
  "--block": o.block,
99
99
  "--no-underline": o.noUnderline,
100
100
  "--fab": o.fab,
101
101
  "--loading": o.loading,
102
- "--disabled": g.value,
102
+ "--disabled": y.value,
103
103
  "--rounded": o.rounded,
104
104
  "--no-rounded": o.noRounded,
105
105
  "--no-padding": o.noPadding,
@@ -107,10 +107,10 @@ const ve = { render: ce }, be = {
107
107
  }
108
108
  ]]),
109
109
  style: A([`--justify: ${o.justify}`]),
110
- type: B.value
110
+ type: k.value
111
111
  }, {
112
112
  default: N(() => [
113
- w(o.$slots, "left-icon", {}, () => [
113
+ I(o.$slots, "left-icon", {}, () => [
114
114
  typeof o.leftIcon == "string" ? (a(), m(d(u), {
115
115
  key: 0,
116
116
  name: o.leftIcon,
@@ -120,7 +120,7 @@ const ve = { render: ce }, be = {
120
120
  class: f([n.value])
121
121
  }, null, 8, ["class"])) : i("v-if", !0)
122
122
  ], !0),
123
- w(o.$slots, "icon", {}, () => [
123
+ I(o.$slots, "icon", {}, () => [
124
124
  typeof o.icon == "string" ? (a(), m(d(u), {
125
125
  key: 0,
126
126
  name: o.icon,
@@ -130,8 +130,8 @@ const ve = { render: ce }, be = {
130
130
  class: f([n.value])
131
131
  }, null, 8, ["class"])) : i("v-if", !0)
132
132
  ], !0),
133
- w(o.$slots, "default", {}, void 0, !0),
134
- w(o.$slots, "right-icon", {}, () => [
133
+ I(o.$slots, "default", {}, void 0, !0),
134
+ I(o.$slots, "right-icon", {}, () => [
135
135
  typeof o.rightIcon == "string" ? (a(), m(d(u), {
136
136
  key: 0,
137
137
  name: o.rightIcon,
@@ -141,7 +141,7 @@ const ve = { render: ce }, be = {
141
141
  class: f([n.value])
142
142
  }, null, 8, ["class"])) : i("v-if", !0)
143
143
  ], !0),
144
- k.value ? (a(), v("div", be, [
144
+ h.value ? (a(), v("div", ce, [
145
145
  S(d(t), {
146
146
  size: "2em",
147
147
  color: o.color
@@ -157,23 +157,23 @@ const ve = { render: ce }, be = {
157
157
  for (const [u, r] of l)
158
158
  t[u] = r;
159
159
  return t;
160
- }, O = /* @__PURE__ */ K(ye, [["__scopeId", "data-v-5acb3b32"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
160
+ }, O = /* @__PURE__ */ K(be, [["__scopeId", "data-v-6b881156"]]), ve = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
161
161
  __proto__: null,
162
162
  default: O
163
163
  }, Symbol.toStringTag, { value: "Module" }));
164
- function ze({
164
+ function ye({
165
165
  componentName: p,
166
166
  providedId: l
167
167
  }) {
168
- return s(() => l ?? `${p}-${oe().replace(/:/g, "")}`);
168
+ return s(() => l ?? `${p}-${ne().replace(/:/g, "")}`);
169
169
  }
170
- const he = ["for"], ke = {
170
+ const ge = ["for"], ze = {
171
171
  key: 0,
172
172
  class: "m-input-wrapper-left"
173
- }, Be = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], Ie = { key: 0 }, we = {
173
+ }, he = ["id", "name", "placeholder", "aria-label", "type", "inputmode", "disabled", "readonly", "autocomplete", "required"], ke = {
174
174
  key: 1,
175
175
  class: "m-input-wrapper-right"
176
- }, $e = /* @__PURE__ */ L({
176
+ }, Be = /* @__PURE__ */ L({
177
177
  inheritAttrs: !1,
178
178
  __name: "MazInput",
179
179
  props: {
@@ -214,15 +214,15 @@ const he = ["for"], ke = {
214
214
  },
215
215
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
216
216
  setup(p, { emit: l }) {
217
- const t = p, u = l, r = I(() => Promise.resolve().then(() => ge)), $ = I(() => import("./MazIcon-Cq1v4J3r.mjs")), h = I(() => import("./eye-slash-BoO00xzs.mjs")), V = I(() => import("./eye-f8zAUc30.mjs")), g = I(() => import("./check-BmubdHc_.mjs")), z = P(!1), b = P(!1), k = P(), B = ze({
217
+ const t = p, u = l, r = B(() => Promise.resolve().then(() => ve)), w = B(() => import("./MazIcon-Cq1v4J3r.mjs")), z = B(() => import("./eye-slash-BoO00xzs.mjs")), M = B(() => import("./eye-f8zAUc30.mjs")), y = B(() => import("./check-BmubdHc_.mjs")), g = E(!1), b = E(!1), h = E(), k = ye({
218
218
  componentName: "MazInput",
219
219
  providedId: t.id
220
220
  });
221
- le(() => {
221
+ oe(() => {
222
222
  var e;
223
- t.autoFocus && ((e = k.value) == null || e.focus());
223
+ t.autoFocus && ((e = h.value) == null || e.focus());
224
224
  });
225
- const n = s(() => t.type === "password"), o = s(() => z.value ? "text" : t.type), c = s(() => {
225
+ const n = s(() => t.type === "password"), o = s(() => g.value ? "text" : t.type), c = s(() => {
226
226
  if (!t.noBorder) {
227
227
  if (t.error)
228
228
  return "maz-border-danger";
@@ -250,51 +250,47 @@ const he = ["for"], ke = {
250
250
  }
251
251
  return "--default-border";
252
252
  }
253
- }), j = ae(), Y = s(() => {
254
- const { required: e, placeholder: y } = t;
255
- if (y)
256
- return e ? `${y} *` : y;
257
- }), G = s(() => T.value !== void 0 && T.value !== ""), H = R(
253
+ }), j = le(), Y = s(() => F.value !== void 0 && F.value !== ""), G = R(
258
254
  (e) => {
259
255
  u("update:model-value", e);
260
256
  },
261
257
  typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
262
258
  );
263
- function J(e) {
259
+ function H(e) {
264
260
  if (t.debounce)
265
- return H(e);
261
+ return G(e);
266
262
  u("update:model-value", e);
267
263
  }
268
- const T = s({
264
+ const F = s({
269
265
  get: () => t.modelValue,
270
- set: (e) => J(e)
271
- }), Q = s(() => (!!t.label || !!t.hint) && (b.value || !!G.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), W = s(() => !!t.label || !!t.hint);
272
- function X() {
266
+ set: (e) => H(e)
267
+ }), J = s(() => (!!t.label || !!t.hint) && (b.value || !!Y.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), Q = s(() => !!t.label || !!t.hint);
268
+ function W() {
273
269
  return !!j["right-icon"] || n.value || !!j["valid-button"] || t.validButton || !!t.rightIcon;
274
270
  }
275
- function Z() {
271
+ function X() {
276
272
  return !!j["left-icon"] || !!t.leftIcon;
277
273
  }
278
- function x(e) {
274
+ function Z(e) {
279
275
  u("focus", e), b.value = !0;
280
276
  }
281
- function _(e) {
277
+ function x(e) {
282
278
  u("blur", e), b.value = !1;
283
279
  }
284
- function ee(e) {
280
+ function _(e) {
285
281
  return u("change", e);
286
282
  }
287
- function te(e) {
283
+ function ee(e) {
288
284
  return u("input", e);
289
285
  }
290
- return (e, y) => (a(), v(
286
+ return (e, $) => (a(), v(
291
287
  "div",
292
288
  {
293
289
  class: f(["m-input", [
294
290
  {
295
291
  "--is-focused": b.value || e.borderActive,
296
- "--should-up": Q.value,
297
- "--has-label": W.value,
292
+ "--should-up": J.value,
293
+ "--has-label": Q.value,
298
294
  "--is-disabled": e.disabled,
299
295
  "--is-readonly": e.readonly,
300
296
  "--has-z-2": e.error || e.warning || e.success,
@@ -309,10 +305,10 @@ const he = ["for"], ke = {
309
305
  [
310
306
  e.topLabel ? (a(), v("label", {
311
307
  key: 0,
312
- for: d(B),
308
+ for: d(k),
313
309
  class: "m-input-top-label"
314
- }, E(e.topLabel), 9, he)) : i("v-if", !0),
315
- M(
310
+ }, P(e.topLabel), 9, ge)) : i("v-if", !0),
311
+ V(
316
312
  "div",
317
313
  {
318
314
  class: f(["m-input-wrapper m-reset-css", [
@@ -323,9 +319,9 @@ const he = ["for"], ke = {
323
319
  ]])
324
320
  },
325
321
  [
326
- Z() ? (a(), v("div", ke, [
327
- e.$slots["left-icon"] || e.leftIcon ? w(e.$slots, "left-icon", { key: 0 }, () => [
328
- typeof e.leftIcon == "string" ? (a(), m(d($), {
322
+ X() ? (a(), v("div", ze, [
323
+ e.$slots["left-icon"] || e.leftIcon ? I(e.$slots, "left-icon", { key: 0 }, () => [
324
+ typeof e.leftIcon == "string" ? (a(), m(d(w), {
329
325
  key: 0,
330
326
  name: e.leftIcon,
331
327
  class: "maz-text-xl maz-text-muted"
@@ -335,18 +331,18 @@ const he = ["for"], ke = {
335
331
  })) : i("v-if", !0)
336
332
  ], !0) : i("v-if", !0)
337
333
  ])) : i("v-if", !0),
338
- M(
334
+ V(
339
335
  "div",
340
336
  {
341
337
  class: f(["m-input-wrapper-input", [`--${e.size}`, { "--top-label": !!e.topLabel }]])
342
338
  },
343
339
  [
344
- re(M("input", U({ id: d(B) }, e.$attrs, {
340
+ ae(V("input", q({ id: d(k) }, e.$attrs, {
345
341
  ref_key: "input",
346
- ref: k,
347
- "onUpdate:modelValue": y[0] || (y[0] = (F) => T.value = F),
342
+ ref: h,
343
+ "onUpdate:modelValue": $[0] || ($[0] = (T) => F.value = T),
348
344
  name: e.name,
349
- placeholder: Y.value,
345
+ placeholder: e.placeholder,
350
346
  "aria-label": e.label || e.placeholder,
351
347
  type: o.value,
352
348
  inputmode: e.inputmode,
@@ -355,15 +351,15 @@ const he = ["for"], ke = {
355
351
  autocomplete: e.autocomplete,
356
352
  required: e.required,
357
353
  class: "m-input-input"
358
- }, se({
359
- blur: _,
360
- focus: x,
361
- change: ee,
362
- input: te
354
+ }, re({
355
+ blur: x,
356
+ focus: Z,
357
+ change: _,
358
+ input: ee
363
359
  }, !0), {
364
- onClick: y[1] || (y[1] = (F) => e.$emit("click", F))
365
- }), null, 16, Be), [
366
- [ie, T.value]
360
+ onClick: $[1] || ($[1] = (T) => e.$emit("click", T))
361
+ }), null, 16, he), [
362
+ [se, F.value]
367
363
  ]),
368
364
  e.label || e.hint ? (a(), v(
369
365
  "span",
@@ -377,24 +373,17 @@ const he = ["for"], ke = {
377
373
  }
378
374
  ]])
379
375
  },
380
- [
381
- ue(
382
- E(e.hint || e.label) + " ",
383
- 1
384
- /* TEXT */
385
- ),
386
- e.required ? (a(), v("sup", Ie, "*")) : i("v-if", !0)
387
- ],
388
- 2
389
- /* CLASS */
376
+ P(e.hint || e.label),
377
+ 3
378
+ /* TEXT, CLASS */
390
379
  )) : i("v-if", !0)
391
380
  ],
392
381
  2
393
382
  /* CLASS */
394
383
  ),
395
- X() ? (a(), v("div", we, [
396
- e.$slots["right-icon"] || e.rightIcon ? w(e.$slots, "right-icon", { key: 0 }, () => [
397
- typeof e.rightIcon == "string" ? (a(), m(d($), {
384
+ W() ? (a(), v("div", ke, [
385
+ e.$slots["right-icon"] || e.rightIcon ? I(e.$slots, "right-icon", { key: 0 }, () => [
386
+ typeof e.rightIcon == "string" ? (a(), m(d(w), {
398
387
  key: 0,
399
388
  name: e.rightIcon,
400
389
  class: "maz-text-xl maz-text-muted"
@@ -408,13 +397,13 @@ const he = ["for"], ke = {
408
397
  color: "transparent",
409
398
  tabindex: "-1",
410
399
  size: "mini",
411
- onClick: y[2] || (y[2] = D((F) => z.value = !z.value, ["stop"]))
400
+ onClick: $[2] || ($[2] = D((T) => g.value = !g.value, ["stop"]))
412
401
  }, {
413
402
  default: N(() => [
414
- z.value ? (a(), m(d(h), {
403
+ g.value ? (a(), m(d(z), {
415
404
  key: 0,
416
405
  class: "maz-text-xl maz-text-muted"
417
- })) : (a(), m(d(V), {
406
+ })) : (a(), m(d(M), {
418
407
  key: 1,
419
408
  class: "maz-text-xl maz-text-muted"
420
409
  }))
@@ -422,7 +411,7 @@ const he = ["for"], ke = {
422
411
  _: 1
423
412
  /* STABLE */
424
413
  })) : i("v-if", !0),
425
- e.$slots["valid-button"] || e.validButton ? w(e.$slots, "valid-button", { key: 2 }, () => [
414
+ e.$slots["valid-button"] || e.validButton ? I(e.$slots, "valid-button", { key: 2 }, () => [
426
415
  S(d(r), {
427
416
  color: "transparent",
428
417
  disabled: e.disabled,
@@ -433,7 +422,7 @@ const he = ["for"], ke = {
433
422
  type: "submit"
434
423
  }, {
435
424
  default: N(() => [
436
- S(d(g), { class: "maz-text-2xl maz-text-normal" })
425
+ S(d(y), { class: "maz-text-2xl maz-text-normal" })
437
426
  ]),
438
427
  _: 1
439
428
  /* STABLE */
@@ -457,7 +446,7 @@ const he = ["for"], ke = {
457
446
  }
458
447
  ]])
459
448
  },
460
- E(e.assistiveText),
449
+ P(e.assistiveText),
461
450
  3
462
451
  /* TEXT, CLASS */
463
452
  )) : i("v-if", !0)
@@ -466,7 +455,7 @@ const he = ["for"], ke = {
466
455
  /* CLASS, STYLE */
467
456
  ));
468
457
  }
469
- }), Ce = /* @__PURE__ */ K($e, [["__scopeId", "data-v-04e832e5"]]), Ve = /* @__PURE__ */ L({
458
+ }), Ie = /* @__PURE__ */ K(Be, [["__scopeId", "data-v-8def99c5"]]), $e = /* @__PURE__ */ L({
470
459
  inheritAttrs: !1,
471
460
  __name: "MazInputNumber",
472
461
  props: {
@@ -491,23 +480,23 @@ const he = ["for"], ke = {
491
480
  setup(p, { emit: l }) {
492
481
  const t = p, u = l, r = s({
493
482
  get: () => t.modelValue,
494
- set: (n) => g(n)
483
+ set: (n) => y(n)
495
484
  });
496
- function $(n) {
485
+ function w(n) {
497
486
  return Math.round(n / t.step) * t.step;
498
487
  }
499
- function h(n) {
488
+ function z(n) {
500
489
  if (typeof n == "number")
501
- return n <= t.min ? t.min : n >= t.max ? t.max : $(n);
490
+ return n <= t.min ? t.min : n >= t.max ? t.max : w(n);
502
491
  }
503
- const V = R((n) => g(n), 300);
504
- function g(n) {
505
- n = h(n), r.value !== n && u("update:model-value", n);
492
+ const M = R((n) => y(n), 300);
493
+ function y(n) {
494
+ n = z(n), r.value !== n && u("update:model-value", n);
506
495
  }
507
- g(r.value);
508
- const z = s(() => t.modelValue && t.modelValue >= t.max), b = s(() => t.modelValue && t.modelValue <= t.min);
509
- function k() {
510
- if (!(t.disabled || z.value)) {
496
+ y(r.value);
497
+ const g = s(() => t.modelValue && t.modelValue >= t.max), b = s(() => t.modelValue && t.modelValue <= t.min);
498
+ function h() {
499
+ if (!(t.disabled || g.value)) {
511
500
  if ((r.value === void 0 || r.value === null) && Number.isFinite(t.min)) {
512
501
  r.value = t.min;
513
502
  return;
@@ -515,7 +504,7 @@ const he = ["for"], ke = {
515
504
  r.value = (r.value ?? 0) + 1 * t.step;
516
505
  }
517
506
  }
518
- function B() {
507
+ function k() {
519
508
  if (!(t.disabled || b.value)) {
520
509
  if ((r.value === void 0 || r.value === null) && Number.isFinite(t.min)) {
521
510
  r.value = t.min;
@@ -538,15 +527,15 @@ const he = ["for"], ke = {
538
527
  tabindex: "-1",
539
528
  class: "m-input-number__button m-input-number__decrement-button",
540
529
  disabled: b.value || n.disabled,
541
- onClick: B
530
+ onClick: k
542
531
  }, {
543
532
  default: N(() => [
544
- S(d(pe), { class: "m-input-number__button__icon" })
533
+ S(d(de), { class: "m-input-number__button__icon" })
545
534
  ]),
546
535
  _: 1
547
536
  /* STABLE */
548
537
  }, 8, ["size", "disabled"])),
549
- S(Ce, U({
538
+ S(Ie, q({
550
539
  "model-value": r.value,
551
540
  type: "number",
552
541
  class: ["m-input-number__input", { "--no-buttons": n.noButtons, "--text-center": n.textCenter }],
@@ -563,14 +552,14 @@ const he = ["for"], ke = {
563
552
  size: n.size,
564
553
  block: "",
565
554
  onKeydown: [
566
- q(D(k, ["prevent"]), ["up"]),
567
- q(D(B, ["prevent"]), ["down"])
555
+ U(D(h, ["prevent"]), ["up"]),
556
+ U(D(k, ["prevent"]), ["down"])
568
557
  ],
569
558
  onFocus: o[0] || (o[0] = (c) => n.$emit("focus", c)),
570
559
  onChange: o[1] || (o[1] = (c) => n.$emit("change", c)),
571
560
  onBlur: o[2] || (o[2] = (c) => n.$emit("blur", c)),
572
561
  onClick: o[3] || (o[3] = (c) => n.$emit("click", c)),
573
- "onUpdate:modelValue": o[4] || (o[4] = (c) => d(V)(c))
562
+ "onUpdate:modelValue": o[4] || (o[4] = (c) => d(M)(c))
574
563
  }), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "error", "success", "warning", "hint", "inputmode", "size", "onKeydown"]),
575
564
  n.noButtons ? i("v-if", !0) : (a(), m(O, {
576
565
  key: 1,
@@ -579,11 +568,11 @@ const he = ["for"], ke = {
579
568
  tabindex: "-1",
580
569
  size: n.size,
581
570
  class: "m-input-number__button m-input-number__increment-button",
582
- disabled: z.value || n.disabled,
583
- onClick: k
571
+ disabled: g.value || n.disabled,
572
+ onClick: h
584
573
  }, {
585
574
  default: N(() => [
586
- S(d(ve), { class: "m-input-number__button__icon" })
575
+ S(d(fe), { class: "m-input-number__button__icon" })
587
576
  ]),
588
577
  _: 1
589
578
  /* STABLE */
@@ -596,5 +585,5 @@ const he = ["for"], ke = {
596
585
  });
597
586
  export {
598
587
  K as _,
599
- Ve as a
588
+ $e as a
600
589
  };