maz-ui 3.40.3 → 3.40.4

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 (109) hide show
  1. package/components/MazAccordion.mjs +4 -4
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCardSpotlight.d.ts +2 -2
  6. package/components/MazCardSpotlight.mjs +11 -11
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.mjs +1 -1
  10. package/components/MazDrawer.mjs +1 -1
  11. package/components/MazDropdown.mjs +1 -1
  12. package/components/MazInput.mjs +1 -1
  13. package/components/MazInputNumber.mjs +1 -1
  14. package/components/MazInputPrice.mjs +1 -1
  15. package/components/MazInputTags.mjs +1 -1
  16. package/components/MazPagination.mjs +1 -1
  17. package/components/MazPhoneNumberInput.mjs +1 -1
  18. package/components/MazPicker.mjs +1 -1
  19. package/components/MazSelect.mjs +1 -1
  20. package/components/MazTable.mjs +1 -1
  21. package/components/assets/MazAccordion.css +1 -1
  22. package/components/assets/MazBtn.css +1 -1
  23. package/components/assets/MazCardSpotlight.css +1 -1
  24. package/components/assets/MazInputNumber.css +1 -1
  25. package/components/assets/MazInputTags.css +1 -1
  26. package/components/assets/MazPagination.css +1 -1
  27. package/components/assets/MazTable.css +1 -1
  28. package/components/chunks/{MazBottomSheet-BuBc8C9L.mjs → MazBottomSheet-CIlIdn-2.mjs} +1 -1
  29. package/components/chunks/{MazBtn-CjKivGUG.mjs → MazBtn-78ToUjeK.mjs} +40 -40
  30. package/components/chunks/MazBtn-BKtYocJV.mjs +151 -0
  31. package/components/chunks/{MazBtn-IBS93Vda.mjs → MazBtn-BydIwD1J.mjs} +3 -3
  32. package/components/chunks/MazBtn-Bz4-bhWf.mjs +151 -0
  33. package/components/chunks/{MazBtn-BBKOvmc0.mjs → MazBtn-CPyDRy19.mjs} +40 -40
  34. package/components/chunks/MazBtn-CauvhLv6.mjs +151 -0
  35. package/components/chunks/{MazBtn-Bhjz7DkY.mjs → MazBtn-Ccvl1ZWv.mjs} +3 -3
  36. package/components/chunks/MazBtn-DWDitOvL.mjs +151 -0
  37. package/components/chunks/{MazBtn-4I65a0tG.mjs → MazBtn-Da5Nh9ga.mjs} +40 -40
  38. package/components/chunks/{MazBtn-ZcEB5i12.mjs → MazBtn-Dnq16gKt.mjs} +40 -40
  39. package/components/chunks/MazBtn-Ng8Jql0R.mjs +151 -0
  40. package/components/chunks/MazBtn-_NGDIlQK.mjs +151 -0
  41. package/components/chunks/{MazCard-zP6XYYO8.mjs → MazCard-DCz1q6wT.mjs} +1 -1
  42. package/components/chunks/{MazCarousel-IzbBgBrr.mjs → MazCarousel-DZZilIAg.mjs} +1 -1
  43. package/components/chunks/{MazCheckbox-CnQ4qPG4.mjs → MazCheckbox-C1O-MBZa.mjs} +1 -1
  44. package/components/chunks/{MazCheckbox-CylZNBvL.mjs → MazCheckbox-PgXh8RSO.mjs} +1 -1
  45. package/components/chunks/{MazDialog-DfykSNZV.mjs → MazDialog-wPf8YzO5.mjs} +1 -1
  46. package/components/chunks/{MazDialogPromise-DW7DF186.mjs → MazDialogPromise-C4xTbUi9.mjs} +2 -2
  47. package/components/chunks/{MazGallery-DK724Wxg.mjs → MazGallery-CaZnMqiM.mjs} +2 -2
  48. package/components/chunks/{MazIcon-DAuhmKoh.mjs → MazIcon-BfD79t7M.mjs} +1 -1
  49. package/components/chunks/{MazIcon-C0jJgPt6.mjs → MazIcon-DAWEYUs6.mjs} +1 -1
  50. package/components/chunks/{MazInput-CuNNbyX5.mjs → MazInput-BZBaDBjc.mjs} +1 -1
  51. package/components/chunks/{MazInputNumber-D9lhCaXw.mjs → MazInputNumber-DsSRD1TO.mjs} +83 -83
  52. package/components/chunks/{MazInputPrice-C5gaLIoj.mjs → MazInputPrice-BjI2ZK_A.mjs} +1 -1
  53. package/components/chunks/{MazInputTags-DHawCIaZ.mjs → MazInputTags-CUV1HRPI.mjs} +3 -3
  54. package/components/chunks/{MazPagination-B5x3ZUrk.mjs → MazPagination-CfLOeWuj.mjs} +22 -22
  55. package/components/chunks/{MazPhoneNumberInput-ChPzHftZ.mjs → MazPhoneNumberInput-CsBXHpCq.mjs} +2 -2
  56. package/components/chunks/{MazPicker-BVsSfMXU.mjs → MazPicker-_ndeWiCy.mjs} +2 -2
  57. package/components/chunks/{MazPickerCalendar-DVB8Rr9I.mjs → MazPickerCalendar-BXadlngJ.mjs} +3 -3
  58. package/components/chunks/{MazPickerHeader-bClHUr7z.mjs → MazPickerHeader-BpNxHXI2.mjs} +1 -1
  59. package/components/chunks/{MazPickerMonthSwitcher-12vPV_ek.mjs → MazPickerMonthSwitcher-BzEZ5x7j.mjs} +2 -2
  60. package/components/chunks/{MazPickerShortcuts-BcJpy3BQ.mjs → MazPickerShortcuts-BreMu-Sy.mjs} +2 -2
  61. package/components/chunks/{MazPickerTime-_IheJF21.mjs → MazPickerTime-Cc2hHJlp.mjs} +2 -2
  62. package/components/chunks/{MazPickerYearSwitcher-AG8UoA8w.mjs → MazPickerYearSwitcher-B2Dk5iso.mjs} +3 -3
  63. package/components/chunks/{MazSelect-v2Qz7qp9.mjs → MazSelect-CraB8U5x.mjs} +2 -2
  64. package/components/chunks/{MazSpinner-D14Qdl-q.mjs → MazSpinner-8VnYwZdB.mjs} +1 -1
  65. package/components/chunks/{MazSpinner-CZMyB5uT.mjs → MazSpinner-B_WP-2kr.mjs} +1 -1
  66. package/components/chunks/MazSpinner-BmOvvC7W.mjs +38 -0
  67. package/components/chunks/{MazSpinner-CeOzWwoA.mjs → MazSpinner-BtpIL60X.mjs} +1 -1
  68. package/components/chunks/MazSpinner-BxYAlebs.mjs +38 -0
  69. package/components/chunks/{MazSpinner-B9PIGTBM.mjs → MazSpinner-C-lFmcUR.mjs} +1 -1
  70. package/components/chunks/MazSpinner-CTm1URNC.mjs +38 -0
  71. package/components/chunks/{MazSpinner-CT-zwBmg.mjs → MazSpinner-CZBhl7ce.mjs} +1 -1
  72. package/components/chunks/{MazSpinner-BpD28_Nv.mjs → MazSpinner-DWts_Ogu.mjs} +1 -1
  73. package/components/chunks/MazSpinner-DYkIZhje.mjs +38 -0
  74. package/components/chunks/MazSpinner-DibP0zFm.mjs +38 -0
  75. package/components/chunks/MazSpinner-DkLBbDGC.mjs +38 -0
  76. package/components/chunks/MazSpinner-DpOv_AqU.mjs +38 -0
  77. package/components/chunks/{MazSpinner-CTOH4qIV.mjs → MazSpinner-Dt5ax5Hn.mjs} +1 -1
  78. package/components/chunks/{MazSpinner-BrRExSkV.mjs → MazSpinner-RodpKP96.mjs} +1 -1
  79. package/components/chunks/MazSpinner-bGMoZfcX.mjs +38 -0
  80. package/components/chunks/{MazTable-CjlSdLnh.mjs → MazTable-Cr4kGAth.mjs} +117 -117
  81. package/components/chunks/{MazTransitionExpand-BBkwCVdE.mjs → MazTransitionExpand-Bxl5ajH4.mjs} +1 -1
  82. package/modules/assets/MazBtn.css +1 -1
  83. package/modules/chunks/{MazBtn-C3u6aAVE.cjs → MazBtn-CJkDV-lC.cjs} +3 -3
  84. package/{components/chunks/MazBtn-Ch56YVOw.mjs → modules/chunks/MazBtn-Dv9nwclG.mjs} +40 -40
  85. package/modules/chunks/{MazIcon-_eQBprV9.cjs → MazIcon-C8crlYdE.cjs} +1 -1
  86. package/modules/chunks/{MazIcon-8SXd9pCW.mjs → MazIcon-CRXUvqjd.mjs} +1 -1
  87. package/modules/chunks/{MazSpinner-BeST_Oa5.mjs → MazSpinner-AmAmgKgK.mjs} +1 -1
  88. package/modules/chunks/{MazSpinner-Box3DbCT.cjs → MazSpinner-C7r_jjn3.cjs} +1 -1
  89. package/modules/chunks/{index-C5Co4FGk.cjs → index-95nXhooW.cjs} +1 -1
  90. package/modules/chunks/{index-CU4cxgKq.mjs → index-B99VOYdM.mjs} +2 -2
  91. package/modules/index.cjs +1 -1
  92. package/modules/index.mjs +1 -1
  93. package/nuxt/index.json +1 -1
  94. package/package.json +1 -1
  95. package/types/components/MazCardSpotlight.vue.d.ts +2 -2
  96. package/components/chunks/MazBtn-DAvgjToE.mjs +0 -151
  97. package/components/chunks/MazBtn-DfXeBnFe.mjs +0 -151
  98. package/components/chunks/MazBtn-Dyw1WZgU.mjs +0 -151
  99. package/components/chunks/MazBtn-SJl9Kugs.mjs +0 -151
  100. package/components/chunks/MazBtn-peKwI3PB.mjs +0 -151
  101. package/components/chunks/MazSpinner-CeUPefEl.mjs +0 -38
  102. package/components/chunks/MazSpinner-Cj16ZXPC.mjs +0 -38
  103. package/components/chunks/MazSpinner-DJyu0bjt.mjs +0 -38
  104. package/components/chunks/MazSpinner-DcsAehl9.mjs +0 -38
  105. package/components/chunks/MazSpinner-DeiRyoct.mjs +0 -38
  106. package/components/chunks/MazSpinner-DmsRmaiI.mjs +0 -38
  107. package/components/chunks/MazSpinner-ISxUR3Y1.mjs +0 -38
  108. package/components/chunks/MazSpinner-afth4SV3.mjs +0 -38
  109. package/modules/chunks/MazBtn-kEp7hZt8.mjs +0 -151
@@ -142,7 +142,7 @@ const T = "--backdrop-present", q = /* @__PURE__ */ V({
142
142
  "open"
143
143
  ],
144
144
  setup(r) {
145
- const c = w(() => import("./MazBtn-CjKivGUG.mjs")), a = w(() => import("./x-mark-BP8zWe_C.mjs")), l = K(), u = z(() => ({
145
+ const c = w(() => import("./MazBtn-Bz4-bhWf.mjs")), a = w(() => import("./x-mark-BP8zWe_C.mjs")), l = K(), u = z(() => ({
146
146
  ...l,
147
147
  class: void 0,
148
148
  style: void 0
@@ -166,7 +166,7 @@ const J = j(), b = j([]), Q = (n, o) => new Promise((r, i) => {
166
166
  "open"
167
167
  ],
168
168
  setup(n) {
169
- const o = T(() => import("./MazBtn-SJl9Kugs.mjs")), r = T(() => import("./x-mark-BP8zWe_C.mjs")), i = X(), c = S(() => ({
169
+ const o = T(() => import("./MazBtn-CauvhLv6.mjs")), r = T(() => import("./x-mark-BP8zWe_C.mjs")), i = X(), c = S(() => ({
170
170
  ...i,
171
171
  class: void 0,
172
172
  style: void 0
@@ -272,7 +272,7 @@ const J = j(), b = j([]), Q = (n, o) => new Promise((r, i) => {
272
272
  buttons: { type: Array, default: () => [] }
273
273
  },
274
274
  setup(n) {
275
- const o = T(() => import("./MazBtn-SJl9Kugs.mjs")), r = n, { dialogState: i, rejectDialog: c, resolveDialog: u } = R(), e = S(
275
+ const o = T(() => import("./MazBtn-CauvhLv6.mjs")), r = n, { dialogState: i, rejectDialog: c, resolveDialog: u } = R(), e = S(
276
276
  () => i.value.find(({ id: l }) => l === r.identifier)
277
277
  );
278
278
  return (l, s) => {
@@ -3,7 +3,7 @@ var ye = Object.defineProperty;
3
3
  var be = (o, e, t) => e in o ? ye(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
4
4
  var g = (o, e, t) => (be(o, typeof e != "symbol" ? e + "" : e, t), t);
5
5
  import { defineComponent as oe, defineAsyncComponent as _, ref as y, computed as E, watch as Ae, onMounted as Ie, onBeforeUnmount as Ee, openBlock as b, createElementBlock as A, withModifiers as S, withKeys as Le, withDirectives as R, createVNode as x, unref as L, vShow as we, createCommentVNode as O, createElementVNode as P, normalizeClass as F, render as B, useCssVars as Ce, onBeforeMount as ze, normalizeStyle as ee, Fragment as te, renderList as se, toDisplayString as xe } from "vue";
6
- import { _ as ae } from "./MazCard-zP6XYYO8.mjs";
6
+ import { _ as ae } from "./MazCard-DCz1q6wT.mjs";
7
7
  const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["src", "alt"], ke = /* @__PURE__ */ oe({
8
8
  __name: "MazFullscreenImg",
9
9
  props: {
@@ -22,7 +22,7 @@ const Oe = ["onKeypress"], Pe = { class: "m-fullscreen-img-scroller" }, Se = ["s
22
22
  },
23
23
  emits: ["close", "previous", "next", "before-close"],
24
24
  setup(o, { emit: e }) {
25
- const t = e, s = _(() => import("./MazSpinner-CT-zwBmg.mjs")), r = _(() => import("./x-mark-BP8zWe_C.mjs")), f = _(() => import("./chevron-left-CcZaP3Rc.mjs")), i = o, v = y(!1), C = y(!1), w = y(!1), m = y(!1), d = y(!1), c = y(i.clickedElement), u = E(() => i.clickedElement.getBoundingClientRect()), re = E(
25
+ const t = e, s = _(() => import("./MazSpinner-CZBhl7ce.mjs")), r = _(() => import("./x-mark-BP8zWe_C.mjs")), f = _(() => import("./chevron-left-CcZaP3Rc.mjs")), i = o, v = y(!1), C = y(!1), w = y(!1), m = y(!1), d = y(!1), c = y(i.clickedElement), u = E(() => i.clickedElement.getBoundingClientRect()), re = E(
26
26
  () => u.value.height < u.value.width
27
27
  ), W = y(i.src), Z = y(i.alt), j = y(), z = y(), ie = E(() => d.value ? "--is-zoomed maz-cursor-zoom-out" : "maz-cursor-zoom-in");
28
28
  function le() {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
2
- import { i as q } from "./MazPhoneNumberInput-ChPzHftZ.mjs";
2
+ import { i as q } from "./MazPhoneNumberInput-CsBXHpCq.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
2
- import { i as q } from "./MazTable-CjlSdLnh.mjs";
2
+ import { i as q } from "./MazTable-Cr4kGAth.mjs";
3
3
  const H = ["innerHTML"], G = /* @__PURE__ */ b({
4
4
  __name: "MazIcon",
5
5
  props: {
@@ -59,7 +59,7 @@ const re = {
59
59
  },
60
60
  emits: ["update:model-value", "focus", "blur", "click", "change"],
61
61
  setup(i, { emit: u }) {
62
- const a = m(() => import("./MazBtn-Dyw1WZgU.mjs")), f = m(() => import("./MazIcon-Cxrv3_OK.mjs")), z = m(() => import("./eye-slash-tjfxO0LK.mjs")), q = m(() => import("./eye-DqO_Jx56.mjs")), T = m(() => import("./check-CL-vqe79.mjs")), t = i, c = u, y = k(!1), p = k(!1), $ = k(), D = le({
62
+ const a = m(() => import("./MazBtn-CPyDRy19.mjs")), f = m(() => import("./MazIcon-Cxrv3_OK.mjs")), z = m(() => import("./eye-slash-tjfxO0LK.mjs")), q = m(() => import("./eye-DqO_Jx56.mjs")), T = m(() => import("./check-CL-vqe79.mjs")), t = i, c = u, y = k(!1), p = k(!1), $ = k(), D = le({
63
63
  componentName: "MazInput",
64
64
  providedId: t.id
65
65
  });
@@ -1,5 +1,5 @@
1
1
  import '../assets/MazInputNumber.css';
2
- import { defineComponent as L, defineAsyncComponent as C, useAttrs as oe, useSlots as j, onBeforeMount as te, computed as s, openBlock as a, createBlock as d, resolveDynamicComponent as V, normalizeClass as B, withCtx as P, createElementBlock as b, createCommentVNode as i, renderSlot as M, unref as f, getCurrentInstance as ne, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as se, createTextVNode as re, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
2
+ import { defineComponent as L, defineAsyncComponent as C, useAttrs as oe, useSlots as j, onBeforeMount as ne, computed as s, openBlock as a, createBlock as d, resolveDynamicComponent as V, normalizeClass as B, withCtx as P, createElementBlock as b, createCommentVNode as i, renderSlot as M, unref as m, getCurrentInstance as te, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as se, createTextVNode as re, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
3
3
  const de = /* @__PURE__ */ L({
4
4
  __name: "MazBtn",
5
5
  props: {
@@ -24,21 +24,21 @@ const de = /* @__PURE__ */ L({
24
24
  noElevation: { type: Boolean },
25
25
  contentClass: { default: void 0 }
26
26
  },
27
- setup(m) {
28
- const p = C(() => import("./MazSpinner-B9PIGTBM.mjs")), t = C(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: u } = oe(), $ = j(), r = m;
29
- te(() => {
27
+ setup(f) {
28
+ const p = C(() => import("./MazSpinner-DkLBbDGC.mjs")), n = C(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: u } = oe(), $ = j(), r = f;
29
+ ne(() => {
30
30
  r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
31
31
  });
32
- const n = s(() => g ? "a" : u ? "router-link" : "button"), y = s(
32
+ const t = s(() => g ? "a" : u ? "router-link" : "button"), y = s(
33
33
  () => r.pastel ? `--${r.color}-pastel` : r.outline ? `--${r.color}-outline` : `--${r.color}`
34
34
  ), h = s(
35
- () => (r.loading || r.disabled) && n.value === "button"
36
- ), z = s(() => h.value ? "--cursor-default" : "--cursor-pointer"), w = s(() => `--is-${r.variant}`), k = s(() => r.loading && r.variant === "button"), o = s(() => !!$["left-icon"] || r.leftIcon), c = s(() => !!$["right-icon"] || r.rightIcon), v = s(() => o.value || c.value), T = s(() => r.fab && (r.icon || !!$.icon)), F = s(() => n.value === "button" ? r.type : void 0);
37
- return (l, U) => (a(), d(V(n.value), {
35
+ () => (r.loading || r.disabled) && t.value === "button"
36
+ ), z = s(() => h.value ? "--cursor-default" : "--cursor-pointer"), w = s(() => `--is-${r.variant}`), k = s(() => r.loading && r.variant === "button"), o = s(() => !!$["left-icon"] || r.leftIcon), c = s(() => !!$["right-icon"] || r.rightIcon), v = s(() => o.value || c.value), T = s(() => r.fab && (r.icon || !!$.icon)), F = s(() => t.value === "button" ? r.type : void 0);
37
+ return (l, U) => (a(), d(V(t.value), {
38
38
  disabled: h.value || void 0,
39
39
  class: B(["m-btn", [
40
40
  `--${l.size}`,
41
- `--rounded-${l.roundedSize}`,
41
+ !l.fab && l.roundedSize && `--rounded-${l.roundedSize}`,
42
42
  y.value,
43
43
  z.value,
44
44
  w.value,
@@ -69,7 +69,7 @@ const de = /* @__PURE__ */ L({
69
69
  @slot left-icon - The icon to display on the left of the button
70
70
  `),
71
71
  M(l.$slots, "left-icon", {}, () => [
72
- typeof l.leftIcon == "string" ? (a(), d(f(t), {
72
+ typeof l.leftIcon == "string" ? (a(), d(m(n), {
73
73
  key: 0,
74
74
  name: l.leftIcon
75
75
  }, null, 8, ["name"])) : l.leftIcon ? (a(), d(V(l.leftIcon), { key: 1 })) : i("v-if", !0)
@@ -89,7 +89,7 @@ const de = /* @__PURE__ */ L({
89
89
  @slot icon - The icon to display on the fab button
90
90
  `),
91
91
  M(l.$slots, "icon", {}, () => [
92
- typeof l.icon == "string" ? (a(), d(f(t), {
92
+ typeof l.icon == "string" ? (a(), d(m(n), {
93
93
  key: 0,
94
94
  name: l.icon
95
95
  }, null, 8, ["name"])) : l.icon ? (a(), d(V(l.icon), { key: 1 })) : i("v-if", !0)
@@ -124,7 +124,7 @@ const de = /* @__PURE__ */ L({
124
124
  @slot right-icon - The icon to display on the right of the button
125
125
  `),
126
126
  M(l.$slots, "right-icon", {}, () => [
127
- typeof l.rightIcon == "string" ? (a(), d(f(t), {
127
+ typeof l.rightIcon == "string" ? (a(), d(m(n), {
128
128
  key: 0,
129
129
  name: l.rightIcon
130
130
  }, null, 8, ["name"])) : l.rightIcon ? (a(), d(V(l.rightIcon), { key: 1 })) : i("v-if", !0)
@@ -133,7 +133,7 @@ const de = /* @__PURE__ */ L({
133
133
  2
134
134
  /* CLASS */
135
135
  )) : i("v-if", !0),
136
- k.value ? (a(), d(f(p), {
136
+ k.value ? (a(), d(m(p), {
137
137
  key: 4,
138
138
  class: "m-btn-loader",
139
139
  size: "2em",
@@ -144,31 +144,31 @@ const de = /* @__PURE__ */ L({
144
144
  /* FORWARDED */
145
145
  }, 8, ["disabled", "class", "type"]));
146
146
  }
147
- }), G = (m, p) => {
148
- const t = m.__vccOpts || m;
147
+ }), G = (f, p) => {
148
+ const n = f.__vccOpts || f;
149
149
  for (const [g, u] of p)
150
- t[g] = u;
151
- return t;
152
- }, R = /* @__PURE__ */ G(de, [["__scopeId", "data-v-f89548fd"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
150
+ n[g] = u;
151
+ return n;
152
+ }, R = /* @__PURE__ */ G(de, [["__scopeId", "data-v-4d87e490"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
153
153
  __proto__: null,
154
154
  default: R
155
155
  }, Symbol.toStringTag, { value: "Module" }));
156
- function H(m, p) {
157
- let t;
156
+ function H(f, p) {
157
+ let n;
158
158
  return function(...g) {
159
- clearTimeout(t), t = setTimeout(() => {
160
- m.apply(this, g);
159
+ clearTimeout(n), n = setTimeout(() => {
160
+ f.apply(this, g);
161
161
  }, p);
162
162
  };
163
163
  }
164
- function fe({
165
- componentName: m,
164
+ function me({
165
+ componentName: f,
166
166
  providedId: p
167
167
  }) {
168
- const t = ne();
169
- return s(() => p ?? `${m}-${t == null ? void 0 : t.uid}`);
168
+ const n = te();
169
+ return s(() => p ?? `${f}-${n == null ? void 0 : n.uid}`);
170
170
  }
171
- const me = {
171
+ const fe = {
172
172
  key: 0,
173
173
  class: "m-input-wrapper-left"
174
174
  }, pe = { class: "m-input-wrapper-input" }, ve = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], be = { key: 0 }, ye = {
@@ -211,65 +211,65 @@ const me = {
211
211
  block: { type: Boolean }
212
212
  },
213
213
  emits: ["update:model-value", "focus", "blur", "click", "change"],
214
- setup(m, { emit: p }) {
215
- const t = C(() => Promise.resolve().then(() => ce)), g = C(() => import("./MazIcon-Cxrv3_OK.mjs")), u = C(() => import("./eye-slash-tjfxO0LK.mjs")), $ = C(() => import("./eye-DqO_Jx56.mjs")), r = C(() => import("./check-CL-vqe79.mjs")), n = m, y = p, h = A(!1), z = A(!1), w = A(), k = fe({
214
+ setup(f, { emit: p }) {
215
+ const n = C(() => Promise.resolve().then(() => ce)), g = C(() => import("./MazIcon-Cxrv3_OK.mjs")), u = C(() => import("./eye-slash-tjfxO0LK.mjs")), $ = C(() => import("./eye-DqO_Jx56.mjs")), r = C(() => import("./check-CL-vqe79.mjs")), t = f, y = p, h = A(!1), z = A(!1), w = A(), k = me({
216
216
  componentName: "MazInput",
217
- providedId: n.id
217
+ providedId: t.id
218
218
  });
219
219
  le(() => {
220
220
  var e;
221
- n.autoFocus && ((e = w.value) == null || e.focus());
221
+ t.autoFocus && ((e = w.value) == null || e.focus());
222
222
  });
223
- const o = s(() => n.type === "password"), c = s(() => h.value ? "text" : n.type), v = s(() => {
224
- if (!n.noBorder) {
225
- if (n.error)
223
+ const o = s(() => t.type === "password"), c = s(() => h.value ? "text" : t.type), v = s(() => {
224
+ if (!t.noBorder) {
225
+ if (t.error)
226
226
  return "maz-border-danger";
227
- if (n.success)
227
+ if (t.success)
228
228
  return "maz-border-success";
229
- if (n.warning)
229
+ if (t.warning)
230
230
  return "maz-border-warning";
231
- if (z.value || n.borderActive) {
232
- if (n.color === "black")
231
+ if (z.value || t.borderActive) {
232
+ if (t.color === "black")
233
233
  return "maz-border-black";
234
- if (n.color === "danger")
234
+ if (t.color === "danger")
235
235
  return "maz-border-danger";
236
- if (n.color === "info")
236
+ if (t.color === "info")
237
237
  return "maz-border-info";
238
- if (n.color === "primary")
238
+ if (t.color === "primary")
239
239
  return "maz-border-primary";
240
- if (n.color === "secondary")
240
+ if (t.color === "secondary")
241
241
  return "maz-border-secondary";
242
- if (n.color === "success")
242
+ if (t.color === "success")
243
243
  return "maz-border-success";
244
- if (n.color === "warning")
244
+ if (t.color === "warning")
245
245
  return "maz-border-warning";
246
- if (n.color === "white")
246
+ if (t.color === "white")
247
247
  return "maz-border-white";
248
248
  }
249
249
  return "--default-border";
250
250
  }
251
251
  }), T = j(), F = s(() => {
252
- const { required: e, placeholder: I } = n;
252
+ const { required: e, placeholder: I } = t;
253
253
  if (I)
254
254
  return e ? `${I} *` : I;
255
255
  }), l = s(() => D.value !== void 0 && D.value !== ""), U = H(
256
256
  (e) => {
257
257
  y("update:model-value", e);
258
258
  },
259
- typeof n.debounce == "number" ? n.debounce : n.debounceDelay ?? 500
259
+ typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
260
260
  ), J = (e) => {
261
- if (n.debounce)
261
+ if (t.debounce)
262
262
  return U(e);
263
263
  y("update:model-value", e);
264
264
  }, D = s({
265
- get: () => n.modelValue,
265
+ get: () => t.modelValue,
266
266
  set: (e) => J(e)
267
- }), Q = s(() => (!!n.label || !!n.hint) && (z.value || !!l.value || !!n.placeholder || ["date", "month", "week"].includes(n.type))), W = s(() => !!n.label || !!n.hint);
267
+ }), Q = s(() => (!!t.label || !!t.hint) && (z.value || !!l.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), W = s(() => !!t.label || !!t.hint);
268
268
  function X() {
269
- return !!T["right-icon"] || o.value || !!T["valid-button"] || n.validButton || !!n.rightIcon;
269
+ return !!T["right-icon"] || o.value || !!T["valid-button"] || t.validButton || !!t.rightIcon;
270
270
  }
271
271
  function Z() {
272
- return !!T["left-icon"] || !!n.leftIcon;
272
+ return !!T["left-icon"] || !!t.leftIcon;
273
273
  }
274
274
  function _(e) {
275
275
  y("focus", e), z.value = !0;
@@ -294,7 +294,7 @@ const me = {
294
294
  "--has-state": e.error || e.warning || e.success,
295
295
  "--block": e.block
296
296
  },
297
- n.class,
297
+ t.class,
298
298
  `--${e.color}`,
299
299
  `--${e.size}`
300
300
  ]]),
@@ -311,12 +311,12 @@ const me = {
311
311
  ]])
312
312
  },
313
313
  [
314
- Z() ? (a(), b("div", me, [
314
+ Z() ? (a(), b("div", fe, [
315
315
  i(`
316
316
  @slot left-icon - The icon to display on the left of the input
317
317
  `),
318
318
  e.$slots["left-icon"] || e.leftIcon ? M(e.$slots, "left-icon", { key: 0 }, () => [
319
- typeof e.leftIcon == "string" ? (a(), d(f(g), {
319
+ typeof e.leftIcon == "string" ? (a(), d(m(g), {
320
320
  key: 0,
321
321
  name: e.leftIcon,
322
322
  class: "maz-text-xl maz-text-muted"
@@ -328,7 +328,7 @@ const me = {
328
328
  ])) : i("v-if", !0),
329
329
  N("div", pe, [
330
330
  ae(N("input", Y({
331
- id: f(k),
331
+ id: m(k),
332
332
  ref_key: "input",
333
333
  ref: w,
334
334
  "onUpdate:modelValue": I[0] || (I[0] = (E) => D.value = E),
@@ -381,7 +381,7 @@ const me = {
381
381
  @slot right-icon - The icon to display on the right of the input
382
382
  `),
383
383
  e.$slots["right-icon"] || e.rightIcon ? M(e.$slots, "right-icon", { key: 0 }, () => [
384
- typeof e.rightIcon == "string" ? (a(), d(f(g), {
384
+ typeof e.rightIcon == "string" ? (a(), d(m(g), {
385
385
  key: 0,
386
386
  name: e.rightIcon,
387
387
  class: "maz-text-xl maz-text-muted"
@@ -390,7 +390,7 @@ const me = {
390
390
  class: "maz-text-xl maz-text-muted"
391
391
  })) : i("v-if", !0)
392
392
  ], !0) : i("v-if", !0),
393
- o.value ? (a(), d(f(t), {
393
+ o.value ? (a(), d(m(n), {
394
394
  key: 1,
395
395
  color: "transparent",
396
396
  tabindex: "-1",
@@ -398,10 +398,10 @@ const me = {
398
398
  onClick: I[2] || (I[2] = q((E) => h.value = !h.value, ["stop"]))
399
399
  }, {
400
400
  default: P(() => [
401
- h.value ? (a(), d(f(u), {
401
+ h.value ? (a(), d(m(u), {
402
402
  key: 0,
403
403
  class: "maz-text-xl maz-text-muted"
404
- })) : (a(), d(f($), {
404
+ })) : (a(), d(m($), {
405
405
  key: 1,
406
406
  class: "maz-text-xl maz-text-muted"
407
407
  }))
@@ -413,7 +413,7 @@ const me = {
413
413
  @slot valid-button - Replace the valid button by your own
414
414
  `),
415
415
  e.$slots["valid-button"] || e.validButton ? M(e.$slots, "valid-button", { key: 2 }, () => [
416
- S(f(t), {
416
+ S(m(n), {
417
417
  color: "transparent",
418
418
  disabled: e.disabled,
419
419
  tabindex: "-1",
@@ -423,7 +423,7 @@ const me = {
423
423
  type: "submit"
424
424
  }, {
425
425
  default: P(() => [
426
- S(f(r), { class: "maz-text-2xl maz-text-normal" })
426
+ S(m(r), { class: "maz-text-2xl maz-text-normal" })
427
427
  ]),
428
428
  _: 1
429
429
  /* STABLE */
@@ -460,7 +460,7 @@ const me = {
460
460
  ), Ie = [
461
461
  ke
462
462
  ];
463
- function Be(m, p) {
463
+ function Be(f, p) {
464
464
  return a(), b("svg", ze, [...Ie]);
465
465
  }
466
466
  const $e = { render: Be }, we = {
@@ -484,7 +484,7 @@ const $e = { render: Be }, we = {
484
484
  ), Me = [
485
485
  Ce
486
486
  ];
487
- function Ve(m, p) {
487
+ function Ve(f, p) {
488
488
  return a(), b("svg", we, [...Me]);
489
489
  }
490
490
  const Te = { render: Ve }, Se = /* @__PURE__ */ L({
@@ -505,42 +505,42 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
505
505
  block: { type: Boolean }
506
506
  },
507
507
  emits: ["update:model-value", "focus", "blur", "click", "change"],
508
- setup(m, { emit: p }) {
509
- const t = m, g = p, u = s({
510
- get: () => t.modelValue,
508
+ setup(f, { emit: p }) {
509
+ const n = f, g = p, u = s({
510
+ get: () => n.modelValue,
511
511
  set: (o) => y(o)
512
512
  });
513
513
  function $(o) {
514
- return Math.round(o / t.step) * t.step;
514
+ return Math.round(o / n.step) * n.step;
515
515
  }
516
516
  const r = (o) => {
517
517
  if (typeof o == "number")
518
- return o <= t.min ? t.min : o >= t.max ? t.max : $(o);
519
- }, n = H((o) => y(o), 300), y = (o) => {
518
+ return o <= n.min ? n.min : o >= n.max ? n.max : $(o);
519
+ }, t = H((o) => y(o), 300), y = (o) => {
520
520
  o = r(o), u.value !== o && g("update:model-value", o);
521
521
  };
522
522
  y(u.value);
523
- const h = s(() => t.modelValue && t.modelValue >= t.max), z = s(() => t.modelValue && t.modelValue <= t.min), w = () => {
524
- if (!(t.disabled || h.value)) {
525
- if ((u.value === void 0 || u.value === null) && Number.isFinite(t.min)) {
526
- u.value = t.min;
523
+ const h = s(() => n.modelValue && n.modelValue >= n.max), z = s(() => n.modelValue && n.modelValue <= n.min), w = () => {
524
+ if (!(n.disabled || h.value)) {
525
+ if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
526
+ u.value = n.min;
527
527
  return;
528
528
  }
529
- u.value = (u.value ?? 0) + 1 * t.step;
529
+ u.value = (u.value ?? 0) + 1 * n.step;
530
530
  }
531
531
  }, k = () => {
532
- if (!(t.disabled || z.value)) {
533
- if ((u.value === void 0 || u.value === null) && Number.isFinite(t.min)) {
534
- u.value = t.min;
532
+ if (!(n.disabled || z.value)) {
533
+ if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
534
+ u.value = n.min;
535
535
  return;
536
536
  }
537
- u.value = (u.value ?? 0) - 1 * t.step;
537
+ u.value = (u.value ?? 0) - 1 * n.step;
538
538
  }
539
539
  };
540
540
  return (o, c) => (a(), b(
541
541
  "div",
542
542
  {
543
- class: B(["m-input-number", [`m-input-number--${o.size}`, t.class, { "--block": o.block }]]),
543
+ class: B(["m-input-number", [`m-input-number--${o.size}`, n.class, { "--block": o.block }]]),
544
544
  style: K(o.style)
545
545
  },
546
546
  [
@@ -554,7 +554,7 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
554
554
  onClick: k
555
555
  }, {
556
556
  default: P(() => [
557
- S(f(Te), { class: "m-input-number__button__icon" })
557
+ S(m(Te), { class: "m-input-number__button__icon" })
558
558
  ]),
559
559
  _: 1
560
560
  /* STABLE */
@@ -579,7 +579,7 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
579
579
  onChange: c[1] || (c[1] = (v) => o.$emit("change", v)),
580
580
  onBlur: c[2] || (c[2] = (v) => o.$emit("blur", v)),
581
581
  onClick: c[3] || (c[3] = (v) => o.$emit("click", v)),
582
- "onUpdate:modelValue": c[4] || (c[4] = (v) => f(n)(v))
582
+ "onUpdate:modelValue": c[4] || (c[4] = (v) => m(t)(v))
583
583
  }), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "inputmode", "size", "onKeydown"]),
584
584
  o.noButtons ? i("v-if", !0) : (a(), d(R, {
585
585
  key: 1,
@@ -592,7 +592,7 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
592
592
  onClick: w
593
593
  }, {
594
594
  default: P(() => [
595
- S(f($e), { class: "m-input-number__button__icon" })
595
+ S(m($e), { class: "m-input-number__button__icon" })
596
596
  ]),
597
597
  _: 1
598
598
  /* STABLE */
@@ -87,7 +87,7 @@ const me = {
87
87
  },
88
88
  emits: ["update:model-value", "focus", "blur", "click", "change"],
89
89
  setup(n, { emit: l }) {
90
- const o = z(() => import("./MazBtn-peKwI3PB.mjs")), i = z(() => import("./MazIcon-Cxrv3_OK.mjs")), f = z(() => import("./eye-slash-tjfxO0LK.mjs")), N = z(() => import("./eye-DqO_Jx56.mjs")), T = z(() => import("./check-CL-vqe79.mjs")), t = n, c = l, b = B(!1), p = B(!1), a = B(), r = ce({
90
+ const o = z(() => import("./MazBtn-Ng8Jql0R.mjs")), i = z(() => import("./MazIcon-Cxrv3_OK.mjs")), f = z(() => import("./eye-slash-tjfxO0LK.mjs")), N = z(() => import("./eye-DqO_Jx56.mjs")), T = z(() => import("./check-CL-vqe79.mjs")), t = n, c = l, b = B(!1), p = B(!1), a = B(), r = ce({
91
91
  componentName: "MazInput",
92
92
  providedId: t.id
93
93
  });
@@ -316,7 +316,7 @@ const ve = {
316
316
  contentClass: { default: void 0 }
317
317
  },
318
318
  setup(f) {
319
- const y = V(() => import("./MazSpinner-CeUPefEl.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: h, to: g } = ie(), z = H(), r = f;
319
+ const y = V(() => import("./MazSpinner-DibP0zFm.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: h, to: g } = ie(), z = H(), r = f;
320
320
  ue(() => {
321
321
  r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
322
322
  });
@@ -329,7 +329,7 @@ const ve = {
329
329
  disabled: m.value || void 0,
330
330
  class: M(["m-btn", [
331
331
  `--${t.size}`,
332
- `--rounded-${t.roundedSize}`,
332
+ !t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
333
333
  k.value,
334
334
  $.value,
335
335
  D.value,
@@ -435,7 +435,7 @@ const ve = {
435
435
  /* FORWARDED */
436
436
  }, 8, ["disabled", "class", "type"]));
437
437
  }
438
- }), W = /* @__PURE__ */ U(Ie, [["__scopeId", "data-v-f89548fd"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
438
+ }), W = /* @__PURE__ */ U(Ie, [["__scopeId", "data-v-4d87e490"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
439
439
  __proto__: null,
440
440
  default: W
441
441
  }, Symbol.toStringTag, { value: "Module" })), $e = {