maz-ui 3.44.0 → 3.44.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 (124) hide show
  1. package/components/MazAccordion.mjs +25 -25
  2. package/components/MazAvatar.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.mjs +9 -9
  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/MazDropzone.mjs +1 -1
  13. package/components/MazGallery.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/MazLazyImg.mjs +1 -1
  19. package/components/MazLink.mjs +22 -22
  20. package/components/MazPagination.mjs +1 -1
  21. package/components/MazPhoneNumberInput.mjs +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazReadingProgressBar.mjs +1 -2
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazTable.mjs +1 -1
  26. package/components/MazTextarea.mjs +1 -1
  27. package/components/assets/MazPhoneNumberInput.css +1 -1
  28. package/components/assets/MazSelect.css +1 -1
  29. package/components/assets/MazTable.css +1 -1
  30. package/components/assets/MazTabsBar.css +1 -1
  31. package/components/chunks/{MazAvatar-BU1nJFcV.mjs → MazAvatar-CoT6WIl0.mjs} +1 -1
  32. package/components/chunks/{MazBottomSheet-DUOIusEi.mjs → MazBottomSheet-DpI8wFgc.mjs} +1 -1
  33. package/components/chunks/MazBtn-BIVlttu0.mjs +150 -0
  34. package/components/chunks/MazBtn-BQ7aH6Qe.mjs +158 -0
  35. package/components/chunks/{MazBtn-5BSKOcqG.mjs → MazBtn-BXDpaXn1.mjs} +44 -44
  36. package/components/chunks/MazBtn-C7RDTnn-.mjs +150 -0
  37. package/components/chunks/{MazBtn-BY8WCtM7.mjs → MazBtn-CPkNymJj.mjs} +44 -44
  38. package/components/chunks/{MazBtn-C5G78zLg.mjs → MazBtn-CQSo596y.mjs} +44 -44
  39. package/components/chunks/MazBtn-D2tIsob2.mjs +150 -0
  40. package/components/chunks/MazBtn-DRTBFUgW.mjs +150 -0
  41. package/components/chunks/{MazBtn-f1mBXJeU.mjs → MazBtn-Dfz-5FeI.mjs} +23 -26
  42. package/components/chunks/{MazBtn-CeVwyYR5.mjs → MazBtn-Vas62hFD.mjs} +44 -44
  43. package/components/chunks/MazBtn-gE-drZkE.mjs +150 -0
  44. package/components/chunks/{MazCard-BWxV_Z-i.mjs → MazCard-BBwohtCJ.mjs} +1 -1
  45. package/components/chunks/{MazCarousel-D5EmW7Sa.mjs → MazCarousel-DJ_nQfy4.mjs} +1 -1
  46. package/components/chunks/{MazCheckbox-D3PXkt75.mjs → MazCheckbox-BK1MX0uq.mjs} +1 -1
  47. package/components/chunks/{MazCheckbox-BWiMbecz.mjs → MazCheckbox-D3Fm-BFu.mjs} +1 -1
  48. package/components/chunks/{MazDialog-CLWKCphI.mjs → MazDialog-DXaeCp-b.mjs} +1 -1
  49. package/components/chunks/{MazDialogPromise-DVOJwdVp.mjs → MazDialogPromise-Bgxjg9ss.mjs} +2 -2
  50. package/components/chunks/{MazDropzone-Dm2IirHm.mjs → MazDropzone-D0W0dlgY.mjs} +2 -3
  51. package/components/chunks/{MazGallery-Bn9p1gNb.mjs → MazGallery-CBE4wD7D.mjs} +3 -4
  52. package/components/chunks/{MazGallery-BlfPe8WG.mjs → MazGallery-Din0Z37d.mjs} +4 -5
  53. package/components/chunks/{MazIcon-D3umgnku.mjs → MazIcon-CTjWIkTp.mjs} +1 -1
  54. package/components/chunks/{MazIcon-B8A0hQAH.mjs → MazIcon-CUOwXGOK.mjs} +1 -1
  55. package/components/chunks/{MazInput-BpsE-mdg.mjs → MazInput-D177bUMh.mjs} +44 -44
  56. package/components/chunks/{MazInputNumber-DGBYbDSX.mjs → MazInputNumber-CstQGS8u.mjs} +121 -121
  57. package/components/chunks/{MazInputPrice-j2BNMeFp.mjs → MazInputPrice-Bp7ie9jm.mjs} +48 -48
  58. package/components/chunks/{MazInputTags-CJofVaj5.mjs → MazInputTags-C7nZucYu.mjs} +63 -63
  59. package/components/chunks/{MazLazyImg-Dboc6Xfz.mjs → MazLazyImg-DADMg49z.mjs} +3 -4
  60. package/components/chunks/{MazLazyImg-BFG6FIJZ.mjs → MazLazyImg-xLPMdfif.mjs} +4 -5
  61. package/components/chunks/{MazPagination-C6ZehQSZ.mjs → MazPagination-NbHR41CQ.mjs} +44 -44
  62. package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs} +61 -61
  63. package/components/chunks/{MazPicker-ia2BEmm5.mjs → MazPicker-CJBezF2t.mjs} +173 -198
  64. package/components/chunks/{MazPickerMonthSwitcher-CKtfZ_m-.mjs → MazPickerMonthSwitcher-DZPHWTJt.mjs} +1 -1
  65. package/components/chunks/{MazPickerShortcuts-Cc9VoqBw.mjs → MazPickerShortcuts-CBEmYjPG.mjs} +1 -1
  66. package/components/chunks/{MazPickerYearSwitcher-0b5Wrem9.mjs → MazPickerYearSwitcher-Ynp2qf3F.mjs} +1 -1
  67. package/components/chunks/{MazSelect-COJoKXbV.mjs → MazSelect-D4TuCHwj.mjs} +29 -29
  68. package/components/chunks/{MazSpinner-BaAMq7LI.mjs → MazSpinner--h9DYpGx.mjs} +1 -1
  69. package/components/chunks/{MazSpinner-BZOjTZBN.mjs → MazSpinner-6pxbKImG.mjs} +1 -1
  70. package/components/chunks/{MazSpinner-RvDGcBng.mjs → MazSpinner-BVd7-OTu.mjs} +1 -1
  71. package/components/chunks/MazSpinner-C6T_enKo.mjs +37 -0
  72. package/components/chunks/{MazSpinner-DkXequnp.mjs → MazSpinner-C8x7LsHq.mjs} +1 -1
  73. package/components/chunks/{MazSpinner-V-bFi71W.mjs → MazSpinner-CLz4ccD0.mjs} +1 -1
  74. package/components/chunks/MazSpinner-CmJlBqgH.mjs +37 -0
  75. package/components/chunks/MazSpinner-D4gpZ7vL.mjs +37 -0
  76. package/components/chunks/{MazSpinner-CNIlbDfg.mjs → MazSpinner-D8k_MENa.mjs} +1 -1
  77. package/components/chunks/MazSpinner-DGxqly6h.mjs +37 -0
  78. package/components/chunks/{MazSpinner-9Jue6cel.mjs → MazSpinner-DVkxyBoy.mjs} +1 -1
  79. package/components/chunks/{MazSpinner-BGPOws6a.mjs → MazSpinner-DjR5FVqo.mjs} +1 -1
  80. package/components/chunks/MazSpinner-DnVHWljy.mjs +37 -0
  81. package/components/chunks/{MazSpinner-C41VyUup.mjs → MazSpinner-DneKNmrs.mjs} +1 -1
  82. package/components/chunks/MazSpinner-Q02SOFkL.mjs +37 -0
  83. package/components/chunks/{MazSpinner-EA5ejB8F.mjs → MazSpinner-T1t1bpbm.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-BWYdqSMP.mjs → MazSpinner-dFnsq52G.mjs} +1 -1
  85. package/components/chunks/MazSpinner-iA4Rz7K5.mjs +37 -0
  86. package/components/chunks/{MazSpinner-DHQH6Bhz.mjs → MazSpinner-rAqBu92m.mjs} +1 -1
  87. package/components/chunks/MazSpinner-va5G9enA.mjs +37 -0
  88. package/components/chunks/{MazTable-DRUj_PZp.mjs → MazTable-BPMuTZbS.mjs} +305 -305
  89. package/components/chunks/{MazTransitionExpand-B08cSrmL.mjs → MazTransitionExpand-CYyEf_hd.mjs} +1 -1
  90. package/css/main.css +2 -1
  91. package/modules/assets/index.css +1 -1
  92. package/modules/chunks/MazBtn-1g7UvzQ_.mjs +150 -0
  93. package/modules/chunks/{MazBtn-BbCGGxkK.cjs → MazBtn-BKk3IsoH.cjs} +2 -2
  94. package/modules/chunks/{MazIcon-BDSXZYZ8.cjs → MazIcon-BEnQqDG6.cjs} +1 -1
  95. package/modules/chunks/{MazIcon-C2ch3jUS.mjs → MazIcon-BdDO3aVl.mjs} +1 -1
  96. package/modules/chunks/{MazSpinner-C9_xSbZZ.mjs → MazSpinner--BVvGFIO.mjs} +1 -1
  97. package/modules/chunks/{MazSpinner-BiyFRA4w.cjs → MazSpinner-PMlxvkWb.cjs} +1 -1
  98. package/modules/chunks/index-D5F2dSFa.cjs +124 -0
  99. package/modules/chunks/{index-Cwbjspv3.mjs → index-D7R1dvsf.mjs} +347 -347
  100. package/modules/index.cjs +1 -1
  101. package/modules/index.mjs +1 -1
  102. package/nuxt/index.json +3 -3
  103. package/nuxt/index.mjs +1 -1
  104. package/nuxt/types.d.mts +6 -12
  105. package/nuxt/types.d.ts +6 -12
  106. package/package.json +10 -10
  107. package/types/modules/composables/use-timer.d.ts +6 -1
  108. package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
  109. package/components/chunks/MazBtn-B1-sTc7F.mjs +0 -155
  110. package/components/chunks/MazBtn-ColLVUca.mjs +0 -150
  111. package/components/chunks/MazBtn-DJhQqzja.mjs +0 -150
  112. package/components/chunks/MazBtn-DuY28-0U.mjs +0 -150
  113. package/components/chunks/MazBtn-h3WmmaEO.mjs +0 -150
  114. package/components/chunks/MazBtn-zyRLUViT.mjs +0 -150
  115. package/components/chunks/MazSpinner-Bad2n-0k.mjs +0 -37
  116. package/components/chunks/MazSpinner-C6StE-Mb.mjs +0 -37
  117. package/components/chunks/MazSpinner-Cz2DHV6g.mjs +0 -37
  118. package/components/chunks/MazSpinner-D4CdHpP2.mjs +0 -37
  119. package/components/chunks/MazSpinner-DRj2VpGA.mjs +0 -37
  120. package/components/chunks/MazSpinner-aPFlrc5E.mjs +0 -37
  121. package/components/chunks/MazSpinner-nOD-7_sU.mjs +0 -37
  122. package/components/chunks/MazSpinner-yZGK-AQe.mjs +0 -37
  123. package/modules/chunks/MazBtn-UBHTKqaN.mjs +0 -150
  124. package/modules/chunks/index-tnjajVkX.cjs +0 -124
@@ -1,11 +1,11 @@
1
- import { openBlock as r, createElementBlock as y, createElementVNode as C, getCurrentInstance as xe, computed as p, defineComponent as x, defineAsyncComponent as Z, ref as L, onMounted as et, useSlots as Pe, normalizeClass as S, normalizeStyle as ie, createCommentVNode as c, renderSlot as I, createBlock as V, unref as b, resolveDynamicComponent as pe, withDirectives as He, mergeProps as Le, toHandlers as tt, vModelDynamic as ot, createTextVNode as re, toDisplayString as Y, withModifiers as ce, withCtx as P, createVNode as M, useCssVars as we, onBeforeMount as Oe, nextTick as Ce, Transition as lt, Fragment as ve, renderList as ke, useAttrs as at, inject as nt, pushScopeId as Ue, popScopeId as qe, toRefs as st, provide as rt, watch as ge } from "vue";
1
+ import { openBlock as r, createElementBlock as y, createElementVNode as B, getCurrentInstance as xe, computed as p, defineComponent as x, defineAsyncComponent as Z, ref as P, onMounted as et, useSlots as Oe, normalizeClass as V, normalizeStyle as ie, createCommentVNode as d, renderSlot as S, createBlock as I, unref as b, resolveDynamicComponent as pe, withDirectives as He, mergeProps as Pe, toHandlers as tt, vModelDynamic as ot, createTextVNode as re, toDisplayString as Y, withModifiers as de, withCtx as O, createVNode as M, useCssVars as we, onBeforeMount as Le, nextTick as Be, Transition as lt, Fragment as ve, renderList as ke, useAttrs as at, inject as nt, pushScopeId as Ue, popScopeId as qe, toRefs as st, provide as rt, watch as ge } from "vue";
2
2
  import '../assets/MazTable.css';const it = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  width: "1em",
5
5
  height: "1em",
6
6
  fill: "none",
7
7
  viewBox: "0 0 24 24"
8
- }, ut = /* @__PURE__ */ C(
8
+ }, ut = /* @__PURE__ */ B(
9
9
  "path",
10
10
  {
11
11
  stroke: "currentColor",
@@ -17,13 +17,13 @@ import '../assets/MazTable.css';const it = {
17
17
  null,
18
18
  -1
19
19
  /* HOISTED */
20
- ), dt = [
20
+ ), ct = [
21
21
  ut
22
22
  ];
23
23
  function Re(u, n) {
24
- return r(), y("svg", it, [...dt]);
24
+ return r(), y("svg", it, [...ct]);
25
25
  }
26
- const Qe = { render: Re }, ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
+ const Qe = { render: Re }, dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
27
27
  __proto__: null,
28
28
  default: Qe,
29
29
  render: Re
@@ -33,7 +33,7 @@ const Qe = { render: Re }, ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
33
33
  height: "1em",
34
34
  fill: "none",
35
35
  viewBox: "0 0 24 24"
36
- }, ft = /* @__PURE__ */ C(
36
+ }, ft = /* @__PURE__ */ B(
37
37
  "path",
38
38
  {
39
39
  stroke: "currentColor",
@@ -57,7 +57,7 @@ const bt = { render: vt }, ht = {
57
57
  height: "1em",
58
58
  fill: "none",
59
59
  viewBox: "0 0 24 24"
60
- }, yt = /* @__PURE__ */ C(
60
+ }, yt = /* @__PURE__ */ B(
61
61
  "path",
62
62
  {
63
63
  stroke: "currentColor",
@@ -81,7 +81,7 @@ const je = { render: zt }, kt = {
81
81
  height: "1em",
82
82
  fill: "none",
83
83
  viewBox: "0 0 24 24"
84
- }, $t = /* @__PURE__ */ C(
84
+ }, $t = /* @__PURE__ */ B(
85
85
  "path",
86
86
  {
87
87
  stroke: "currentColor",
@@ -96,10 +96,10 @@ const je = { render: zt }, kt = {
96
96
  ), wt = [
97
97
  $t
98
98
  ];
99
- function It(u, n) {
99
+ function St(u, n) {
100
100
  return r(), y("svg", kt, [...wt]);
101
101
  }
102
- const De = { render: It };
102
+ const De = { render: St };
103
103
  function Ne({
104
104
  componentName: u,
105
105
  providedId: n
@@ -107,11 +107,11 @@ function Ne({
107
107
  const e = xe();
108
108
  return p(() => n ?? `${u}-${e == null ? void 0 : e.uid}`);
109
109
  }
110
- let Be = null;
111
- function Vt(u, n) {
112
- Be && clearTimeout(Be), Be = setTimeout(u, n);
110
+ let Ce = null;
111
+ function It(u, n) {
112
+ Ce && clearTimeout(Ce), Ce = setTimeout(u, n);
113
113
  }
114
- const St = {
114
+ const Vt = {
115
115
  removeAccents: !0,
116
116
  caseSensitive: !1,
117
117
  replaceSpaces: !0,
@@ -122,7 +122,7 @@ const St = {
122
122
  customNormalizationForms: ["NFC", "NFKD"]
123
123
  };
124
124
  function $e(u, n) {
125
- const e = { ...St, ...n }, o = {
125
+ const e = { ...Vt, ...n }, o = {
126
126
  À: "A",
127
127
  Á: "A",
128
128
  Â: "A",
@@ -171,58 +171,58 @@ function $e(u, n) {
171
171
  ñ: "n",
172
172
  ó: "o"
173
173
  };
174
- let d = u.toString();
175
- if (e.trim && (d = d.trim()), e.normalizeSpaces && (d = d.replaceAll(/\s+/g, " ")), e.replaceSpaces && (d = d.replaceAll(" ", "-")), e.removeNumbers && (d = d.replaceAll(/\d/g, "")), e.removeAccents && (d = d.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (v) => o[v] || v), d = d.replaceAll(/[\u0300-\u036F]/g, "")), e.caseSensitive === !1 && (d = d.toLowerCase()), e.removeSpecialCharacters && (d = d.replaceAll(/[^\dA-Z-]/gi, "")), e.trim && (d = d.trim()), e.customNormalizationForms)
174
+ let c = u.toString();
175
+ if (e.trim && (c = c.trim()), e.normalizeSpaces && (c = c.replaceAll(/\s+/g, " ")), e.replaceSpaces && (c = c.replaceAll(" ", "-")), e.removeNumbers && (c = c.replaceAll(/\d/g, "")), e.removeAccents && (c = c.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (v) => o[v] || v), c = c.replaceAll(/[\u0300-\u036F]/g, "")), e.caseSensitive === !1 && (c = c.toLowerCase()), e.removeSpecialCharacters && (c = c.replaceAll(/[^\dA-Z-]/gi, "")), e.trim && (c = c.trim()), e.customNormalizationForms)
176
176
  for (const v of e.customNormalizationForms)
177
- d = d.normalize(v);
178
- return d;
177
+ c = c.normalize(v);
178
+ return c;
179
179
  }
180
- function Ct(u, n) {
181
- const e = u.length, o = n.length, d = [];
180
+ function Bt(u, n) {
181
+ const e = u.length, o = n.length, c = [];
182
182
  for (let v = 0; v <= e; v++)
183
- d[v] = [v];
183
+ c[v] = [v];
184
184
  for (let v = 0; v <= o; v++)
185
- d[0][v] = v;
185
+ c[0][v] = v;
186
186
  for (let v = 1; v <= e; v++)
187
- for (let B = 1; B <= o; B++) {
188
- const N = u[v - 1] === n[B - 1] ? 0 : 1;
189
- d[v][B] = Math.min(
190
- d[v - 1][B] + 1,
191
- d[v][B - 1] + 1,
192
- d[v - 1][B - 1] + N
187
+ for (let C = 1; C <= o; C++) {
188
+ const N = u[v - 1] === n[C - 1] ? 0 : 1;
189
+ c[v][C] = Math.min(
190
+ c[v - 1][C] + 1,
191
+ c[v][C - 1] + 1,
192
+ c[v - 1][C - 1] + N
193
193
  );
194
194
  }
195
- return d[e][o];
195
+ return c[e][o];
196
196
  }
197
197
  function We(u, n) {
198
- const e = Ct(u, n), o = Math.max(u.length, n.length);
198
+ const e = Bt(u, n), o = Math.max(u.length, n.length);
199
199
  return 1 - e / o;
200
200
  }
201
- function Bt(u, n, e = 0.75) {
201
+ function Ct(u, n, e = 0.75) {
202
202
  return We(u, n) >= e;
203
203
  }
204
204
  function Ae(u, n, e = 0.75) {
205
205
  const o = p(
206
206
  () => $e(typeof u == "string" ? u : u.value)
207
- ), d = p(
207
+ ), c = p(
208
208
  () => $e(typeof n == "string" ? n : n.value)
209
- ), v = p(() => typeof e == "number" ? e : e.value), B = p(() => We(o.value, d.value));
209
+ ), v = p(() => typeof e == "number" ? e : e.value), C = p(() => We(o.value, c.value));
210
210
  return {
211
211
  isMatching: p(
212
- () => Bt(o.value, d.value, v.value)
212
+ () => Ct(o.value, c.value, v.value)
213
213
  ),
214
- score: B
214
+ score: C
215
215
  };
216
216
  }
217
217
  function Ge(u, n, e) {
218
- var B;
218
+ var C;
219
219
  u.stopPropagation();
220
- const o = typeof e.value == "function" ? e.value : e.value.handler, d = typeof e.value == "object" ? e.value.exclude : void 0;
220
+ const o = typeof e.value == "function" ? e.value : e.value.handler, c = typeof e.value == "object" ? e.value.exclude : void 0;
221
221
  let v = !1;
222
- if (d && d.length > 0) {
223
- for (const N of d)
222
+ if (c && c.length > 0) {
223
+ for (const N of c)
224
224
  if (!v && u.target instanceof HTMLElement) {
225
- const Q = (B = document.querySelector(N)) == null ? void 0 : B.getAttribute("id");
225
+ const Q = (C = document.querySelector(N)) == null ? void 0 : C.getAttribute("id");
226
226
  v = u.target.getAttribute("id") === Q;
227
227
  }
228
228
  }
@@ -248,8 +248,8 @@ const _t = {
248
248
  unmounted: At
249
249
  }, ee = (u, n) => {
250
250
  const e = u.__vccOpts || u;
251
- for (const [o, d] of n)
252
- e[o] = d;
251
+ for (const [o, c] of n)
252
+ e[o] = c;
253
253
  return e;
254
254
  };
255
255
  function Tt(u, n) {
@@ -263,7 +263,7 @@ function Tt(u, n) {
263
263
  const Kt = {
264
264
  key: 0,
265
265
  class: "m-input-wrapper-left"
266
- }, Pt = { class: "m-input-wrapper-input" }, Lt = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], Ot = { key: 0 }, Nt = {
266
+ }, Ot = { class: "m-input-wrapper-input" }, Pt = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], Lt = { key: 0 }, Nt = {
267
267
  key: 1,
268
268
  class: "m-input-wrapper-right"
269
269
  }, Et = /* @__PURE__ */ x({
@@ -297,14 +297,14 @@ const Kt = {
297
297
  validButtonLoading: { type: Boolean, default: !1 },
298
298
  autoFocus: { type: Boolean, default: !1 },
299
299
  borderActive: { type: Boolean, default: !1 },
300
- leftIcon: { default: void 0 },
301
- rightIcon: { default: void 0 },
300
+ leftIcon: { type: [String, Function, Object], default: void 0 },
301
+ rightIcon: { type: [String, Function, Object], default: void 0 },
302
302
  roundedSize: { default: void 0 },
303
303
  block: { type: Boolean }
304
304
  },
305
305
  emits: ["update:model-value", "focus", "blur", "click", "change"],
306
306
  setup(u, { emit: n }) {
307
- const e = u, o = n, d = Z(() => Promise.resolve().then(() => Qt)), v = Z(() => import("./MazIcon-D3umgnku.mjs")), B = Z(() => import("./eye-slash-tjfxO0LK.mjs")), N = Z(() => import("./eye-DqO_Jx56.mjs")), Q = Z(() => Promise.resolve().then(() => no)), _ = L(!1), k = L(!1), j = L(), A = Ne({
307
+ const e = u, o = n, c = Z(() => Promise.resolve().then(() => Qt)), v = Z(() => import("./MazIcon-CTjWIkTp.mjs")), C = Z(() => import("./eye-slash-tjfxO0LK.mjs")), N = Z(() => import("./eye-DqO_Jx56.mjs")), Q = Z(() => Promise.resolve().then(() => no)), _ = P(!1), k = P(!1), j = P(), A = Ne({
308
308
  componentName: "MazInput",
309
309
  providedId: e.id
310
310
  });
@@ -340,7 +340,7 @@ const Kt = {
340
340
  }
341
341
  return "--default-border";
342
342
  }
343
- }), O = Pe(), W = p(() => {
343
+ }), L = Oe(), W = p(() => {
344
344
  const { required: a, placeholder: K } = e;
345
345
  if (K)
346
346
  return a ? `${K} *` : K;
@@ -360,10 +360,10 @@ const Kt = {
360
360
  set: (a) => te(a)
361
361
  }), G = p(() => (!!e.label || !!e.hint) && (k.value || !!h.value || !!e.placeholder || ["date", "month", "week"].includes(e.type))), D = p(() => !!e.label || !!e.hint);
362
362
  function q() {
363
- return !!O["right-icon"] || U.value || !!O["valid-button"] || e.validButton || !!e.rightIcon;
363
+ return !!L["right-icon"] || U.value || !!L["valid-button"] || e.validButton || !!e.rightIcon;
364
364
  }
365
365
  function H() {
366
- return !!O["left-icon"] || !!e.leftIcon;
366
+ return !!L["left-icon"] || !!e.leftIcon;
367
367
  }
368
368
  function ne(a) {
369
369
  o("focus", a), k.value = !0;
@@ -377,7 +377,7 @@ const Kt = {
377
377
  return (a, K) => (r(), y(
378
378
  "div",
379
379
  {
380
- class: S(["m-input", [
380
+ class: V(["m-input", [
381
381
  {
382
382
  "--is-focused": k.value || a.borderActive,
383
383
  "--should-up": G.value,
@@ -395,10 +395,10 @@ const Kt = {
395
395
  style: ie(a.style)
396
396
  },
397
397
  [
398
- C(
398
+ B(
399
399
  "div",
400
400
  {
401
- class: S(["m-input-wrapper", [
401
+ class: V(["m-input-wrapper", [
402
402
  a.inputClasses,
403
403
  $.value,
404
404
  a.roundedSize ? `--rounded-${a.roundedSize}` : { "maz-rounded": !a.noRadius }
@@ -406,22 +406,22 @@ const Kt = {
406
406
  },
407
407
  [
408
408
  H() ? (r(), y("div", Kt, [
409
- c(`
409
+ d(`
410
410
  @slot left-icon - The icon to display on the left of the input
411
411
  `),
412
- a.$slots["left-icon"] || a.leftIcon ? I(a.$slots, "left-icon", { key: 0 }, () => [
413
- typeof a.leftIcon == "string" ? (r(), V(b(v), {
412
+ a.$slots["left-icon"] || a.leftIcon ? S(a.$slots, "left-icon", { key: 0 }, () => [
413
+ typeof a.leftIcon == "string" ? (r(), I(b(v), {
414
414
  key: 0,
415
415
  name: a.leftIcon,
416
416
  class: "maz-text-xl maz-text-muted"
417
- }, null, 8, ["name"])) : a.leftIcon ? (r(), V(pe(a.leftIcon), {
417
+ }, null, 8, ["name"])) : a.leftIcon ? (r(), I(pe(a.leftIcon), {
418
418
  key: 1,
419
419
  class: "maz-text-xl maz-text-muted"
420
- })) : c("v-if", !0)
421
- ], !0) : c("v-if", !0)
422
- ])) : c("v-if", !0),
423
- C("div", Pt, [
424
- He(C("input", Le({
420
+ })) : d("v-if", !0)
421
+ ], !0) : d("v-if", !0)
422
+ ])) : d("v-if", !0),
423
+ B("div", Ot, [
424
+ He(B("input", Pe({
425
425
  id: b(A),
426
426
  ref_key: "input",
427
427
  ref: j,
@@ -442,14 +442,14 @@ const Kt = {
442
442
  change: oe
443
443
  }, !0), {
444
444
  onClick: K[1] || (K[1] = (E) => a.$emit("click", E))
445
- }), null, 16, Lt), [
445
+ }), null, 16, Pt), [
446
446
  [ot, X.value]
447
447
  ]),
448
448
  a.label || a.hint ? (r(), y(
449
449
  "span",
450
450
  {
451
451
  key: 0,
452
- class: S(["m-input-label", [
452
+ class: V(["m-input-label", [
453
453
  {
454
454
  "maz-text-danger-600": a.error,
455
455
  "maz-text-success-600": a.success,
@@ -463,50 +463,50 @@ const Kt = {
463
463
  1
464
464
  /* TEXT */
465
465
  ),
466
- a.required ? (r(), y("sup", Ot, "*")) : c("v-if", !0)
466
+ a.required ? (r(), y("sup", Lt, "*")) : d("v-if", !0)
467
467
  ],
468
468
  2
469
469
  /* CLASS */
470
- )) : c("v-if", !0)
470
+ )) : d("v-if", !0)
471
471
  ]),
472
472
  q() ? (r(), y("div", Nt, [
473
- c(`
473
+ d(`
474
474
  @slot right-icon - The icon to display on the right of the input
475
475
  `),
476
- a.$slots["right-icon"] || a.rightIcon ? I(a.$slots, "right-icon", { key: 0 }, () => [
477
- typeof a.rightIcon == "string" ? (r(), V(b(v), {
476
+ a.$slots["right-icon"] || a.rightIcon ? S(a.$slots, "right-icon", { key: 0 }, () => [
477
+ typeof a.rightIcon == "string" ? (r(), I(b(v), {
478
478
  key: 0,
479
479
  name: a.rightIcon,
480
480
  class: "maz-text-xl maz-text-muted"
481
- }, null, 8, ["name"])) : a.rightIcon ? (r(), V(pe(a.rightIcon), {
481
+ }, null, 8, ["name"])) : a.rightIcon ? (r(), I(pe(a.rightIcon), {
482
482
  key: 1,
483
483
  class: "maz-text-xl maz-text-muted"
484
- })) : c("v-if", !0)
485
- ], !0) : c("v-if", !0),
486
- U.value ? (r(), V(b(d), {
484
+ })) : d("v-if", !0)
485
+ ], !0) : d("v-if", !0),
486
+ U.value ? (r(), I(b(c), {
487
487
  key: 1,
488
488
  color: "transparent",
489
489
  tabindex: "-1",
490
490
  size: "mini",
491
- onClick: K[2] || (K[2] = ce((E) => _.value = !_.value, ["stop"]))
491
+ onClick: K[2] || (K[2] = de((E) => _.value = !_.value, ["stop"]))
492
492
  }, {
493
- default: P(() => [
494
- _.value ? (r(), V(b(B), {
493
+ default: O(() => [
494
+ _.value ? (r(), I(b(C), {
495
495
  key: 0,
496
496
  class: "maz-text-xl maz-text-muted"
497
- })) : (r(), V(b(N), {
497
+ })) : (r(), I(b(N), {
498
498
  key: 1,
499
499
  class: "maz-text-xl maz-text-muted"
500
500
  }))
501
501
  ]),
502
502
  _: 1
503
503
  /* STABLE */
504
- })) : c("v-if", !0),
505
- c(`
504
+ })) : d("v-if", !0),
505
+ d(`
506
506
  @slot valid-button - Replace the valid button by your own
507
507
  `),
508
- a.$slots["valid-button"] || a.validButton ? I(a.$slots, "valid-button", { key: 2 }, () => [
509
- M(b(d), {
508
+ a.$slots["valid-button"] || a.validButton ? S(a.$slots, "valid-button", { key: 2 }, () => [
509
+ M(b(c), {
510
510
  color: "transparent",
511
511
  disabled: a.disabled,
512
512
  tabindex: "-1",
@@ -515,14 +515,14 @@ const Kt = {
515
515
  size: "mini",
516
516
  type: "submit"
517
517
  }, {
518
- default: P(() => [
518
+ default: O(() => [
519
519
  M(b(Q), { class: "maz-text-2xl maz-text-normal" })
520
520
  ]),
521
521
  _: 1
522
522
  /* STABLE */
523
523
  }, 8, ["disabled", "loading"])
524
- ], !0) : c("v-if", !0)
525
- ])) : c("v-if", !0)
524
+ ], !0) : d("v-if", !0)
525
+ ])) : d("v-if", !0)
526
526
  ],
527
527
  2
528
528
  /* CLASS */
@@ -566,18 +566,18 @@ const Kt = {
566
566
  emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
567
567
  setup(u, { expose: n, emit: e }) {
568
568
  we((t) => ({
569
- "10a6fdb0": z.value,
570
- "3653166f": A.value,
571
- "44a0b897": U.value
569
+ "792163ea": z.value,
570
+ e9859fae: A.value,
571
+ "42d9f8d1": U.value
572
572
  }));
573
- const o = u, d = e, v = Z(() => Promise.resolve().then(() => uo)), B = Z(() => Promise.resolve().then(() => ct)), N = Z(() => import("./chevron-down-CzMH-gFW.mjs")), Q = Z(() => import("./no-symbol-QAqP9IlR.mjs"));
573
+ const o = u, c = e, v = Z(() => Promise.resolve().then(() => uo)), C = Z(() => Promise.resolve().then(() => dt)), N = Z(() => import("./chevron-down-CzMH-gFW.mjs")), Q = Z(() => import("./no-symbol-QAqP9IlR.mjs"));
574
574
  n({
575
575
  /** Method to open the option list */
576
576
  openList: ae,
577
577
  /** Method to close the option list */
578
578
  closeList: le
579
579
  });
580
- const _ = L(!1), k = L(), j = p(
580
+ const _ = P(!1), k = P(), j = p(
581
581
  () => ["black", "transparent", "white"].includes(o.color)
582
582
  ), A = p(
583
583
  () => j.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
@@ -585,7 +585,7 @@ const Kt = {
585
585
  () => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-100)`
586
586
  ), z = p(
587
587
  () => j.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
588
- ), $ = p(() => _.value || o.open), O = Ne({
588
+ ), $ = p(() => _.value || o.open), L = Ne({
589
589
  componentName: "MazSelect",
590
590
  providedId: o.id
591
591
  });
@@ -623,11 +623,11 @@ const Kt = {
623
623
  return ((t = J.value) == null ? void 0 : t.filter((s) => o.multiple ? Array.isArray(o.modelValue) ? o.modelValue.includes(s[o.optionValueKey]) && !H(s[o.optionValueKey]) : !1 : o.modelValue === s[o.optionValueKey] && !H(s[o.optionValueKey]))) ?? [];
624
624
  }
625
625
  );
626
- Oe(() => {
626
+ Le(() => {
627
627
  var t;
628
628
  (t = o.options) != null && t.length || console.warn("[maz-ui](MazSelect) you must provide options"), f();
629
629
  });
630
- const X = L(), G = L(), D = L(), q = L();
630
+ const X = P(), G = P(), D = P(), q = P();
631
631
  function H(t) {
632
632
  return t == null;
633
633
  }
@@ -652,7 +652,7 @@ const Kt = {
652
652
  return H(o.modelValue) || t == null ? void 0 : t[o.optionInputValueKey];
653
653
  }), oe = p(
654
654
  () => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
655
- ), a = L(""), K = L("");
655
+ ), a = P(""), K = P("");
656
656
  function E(t, s) {
657
657
  return s && t && $e(t).includes($e(s));
658
658
  }
@@ -673,35 +673,35 @@ const Kt = {
673
673
  const s = t && "relatedTarget" in t && t.relatedTarget instanceof HTMLElement && t.relatedTarget.getAttribute("id");
674
674
  if ((i = o.excludeSelectors) != null && i.includes(`#${s}`))
675
675
  return t == null ? void 0 : t.preventDefault();
676
- await Ce(), _.value = !1, k.value = 0, d("close", t);
676
+ await Be(), _.value = !1, k.value = 0, c("close", t);
677
677
  }
678
678
  async function ae(t) {
679
- o.disabled || $.value || (t == null || t.preventDefault(), _.value = !0, await g(), d("focus", t), d("open", _.value));
679
+ o.disabled || $.value || (t == null || t.preventDefault(), _.value = !0, await g(), c("focus", t), c("open", _.value));
680
680
  }
681
681
  function fe() {
682
682
  var t, s;
683
683
  (s = ((t = G.value) == null ? void 0 : t.$el).querySelector("input")) == null || s.focus();
684
684
  }
685
- function Ie(t) {
685
+ function Se(t) {
686
686
  _.value ? le(t) : fe();
687
687
  }
688
688
  function he(t) {
689
689
  var s, m;
690
690
  a.value = t, (m = ((s = D.value) == null ? void 0 : s.$el).querySelector("input")) == null || m.focus();
691
691
  }
692
- function Ve(t) {
692
+ function Ie(t) {
693
693
  var m;
694
694
  t === "Backspace" && K.value.length > 0 ? K.value = K.value.slice(0, -1) : K.value += t;
695
695
  const s = be(K.value);
696
696
  s != null && s.length && (k.value = (m = R.value) == null ? void 0 : m.findIndex(
697
697
  (i) => i[o.optionValueKey] === s[0][o.optionValueKey]
698
- ), typeof k.value == "number" && k.value >= 0 && g(k.value)), Vt(() => {
698
+ ), typeof k.value == "number" && k.value >= 0 && g(k.value)), It(() => {
699
699
  K.value = "";
700
700
  }, 1e3);
701
701
  }
702
- function Se(t) {
702
+ function Ve(t) {
703
703
  const s = t.key;
704
- /^[\dA-Za-z\u0400-\u04FF]$/.test(s) ? (t.preventDefault(), ae(t), o.search ? he(s) : Ve(s)) : ue(t);
704
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(s) ? (t.preventDefault(), ae(t), o.search ? he(s) : Ie(s)) : ue(t);
705
705
  }
706
706
  function ue(t) {
707
707
  const s = t.code, m = ["ArrowUp", "ArrowDown"].includes(s), i = ["Enter", "Space"].includes(s), w = s === "Escape" && $.value;
@@ -724,7 +724,7 @@ const Kt = {
724
724
  }
725
725
  async function g(t) {
726
726
  var m, i;
727
- await Ce(), typeof t != "number" && f();
727
+ await Be(), typeof t != "number" && f();
728
728
  const s = t ?? k.value;
729
729
  if (typeof s == "number" && s >= 0) {
730
730
  const w = (m = q.value) == null ? void 0 : m.querySelectorAll(".m-select-list-item");
@@ -745,16 +745,16 @@ const Kt = {
745
745
  }
746
746
  function T(t, s = !0) {
747
747
  var F;
748
- s && !o.multiple && Ce(() => le()), a.value = "";
748
+ s && !o.multiple && Be(() => le()), a.value = "";
749
749
  const m = (F = te.value) == null ? void 0 : F.some(
750
- (de) => de[o.optionValueKey] === t[o.optionValueKey]
750
+ (ce) => ce[o.optionValueKey] === t[o.optionValueKey]
751
751
  );
752
752
  let i = te.value;
753
753
  m && o.multiple ? i = i == null ? void 0 : i.filter(
754
- (de) => de[o.optionValueKey] !== t[o.optionValueKey]
754
+ (ce) => ce[o.optionValueKey] !== t[o.optionValueKey]
755
755
  ) : o.multiple ? i.push(t) : i = [t];
756
- const w = i.map((de) => de[o.optionValueKey]);
757
- d("update:model-value", o.multiple ? w : w[0]), d("selected-option", t), f(t), fe();
756
+ const w = i.map((ce) => ce[o.optionValueKey]);
757
+ c("update:model-value", o.multiple ? w : w[0]), c("selected-option", t), f(t), fe();
758
758
  }
759
759
  return (t, s) => {
760
760
  var m;
@@ -763,7 +763,7 @@ const Kt = {
763
763
  {
764
764
  ref_key: "mazSelectElement",
765
765
  ref: X,
766
- class: S(["m-select", [
766
+ class: V(["m-select", [
767
767
  { "--is-open": $.value, "--disabled": t.disabled, "--block": t.block },
768
768
  o.class,
769
769
  `--${t.size}`
@@ -771,8 +771,8 @@ const Kt = {
771
771
  style: ie(t.style)
772
772
  },
773
773
  [
774
- M(Te, Le({
775
- id: b(O),
774
+ M(Te, Pe({
775
+ id: b(L),
776
776
  ref_key: "mazInputComponent",
777
777
  ref: G,
778
778
  class: "m-select-input"
@@ -785,19 +785,19 @@ const Kt = {
785
785
  size: t.size,
786
786
  block: "",
787
787
  disabled: t.disabled,
788
- onFocus: ce(ae, ["prevent", "stop"]),
789
- onBlur: ce(le, ["prevent", "stop"]),
790
- onClick: ce(ae, ["prevent", "stop"]),
791
- onChange: s[0] || (s[0] = (i) => d("change", i)),
792
- onKeydown: Se
788
+ onFocus: de(ae, ["prevent", "stop"]),
789
+ onBlur: de(le, ["prevent", "stop"]),
790
+ onClick: de(ae, ["prevent", "stop"]),
791
+ onChange: s[0] || (s[0] = (i) => c("change", i)),
792
+ onKeydown: Ve
793
793
  }), {
794
- "right-icon": P(() => [
795
- C("button", {
794
+ "right-icon": O(() => [
795
+ B("button", {
796
796
  tabindex: "-1",
797
797
  type: "button",
798
798
  class: "m-select-input__toggle-button maz-custom",
799
799
  "aria-label": `${$.value ? "collapse" : "expand"} list of options`,
800
- onClick: ce(Ie, ["stop"])
800
+ onClick: de(Se, ["stop"])
801
801
  }, [
802
802
  M(b(N), { class: "m-select-chevron maz-text-xl" })
803
803
  ], 8, jt)
@@ -806,14 +806,14 @@ const Kt = {
806
806
  /* STABLE */
807
807
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
808
808
  M(lt, { name: oe.value }, {
809
- default: P(() => [
809
+ default: O(() => [
810
810
  $.value ? (r(), y(
811
811
  "div",
812
812
  {
813
813
  key: 0,
814
814
  ref_key: "optionsListElement",
815
815
  ref: q,
816
- class: S(["m-select-list", {
816
+ class: V(["m-select-list", {
817
817
  "--top": t.listPosition.includes("top"),
818
818
  "--left": t.listPosition.includes("left"),
819
819
  "--right": t.listPosition.includes("right"),
@@ -825,7 +825,7 @@ const Kt = {
825
825
  })
826
826
  },
827
827
  [
828
- t.search ? (r(), V(Te, {
828
+ t.search ? (r(), I(Te, {
829
829
  key: 0,
830
830
  ref_key: "searchInputComponent",
831
831
  ref: D,
@@ -841,14 +841,14 @@ const Kt = {
841
841
  autocomplete: "off",
842
842
  tabindex: "-1",
843
843
  class: "m-select-list__search-input maz-flex-none",
844
- "left-icon": b(B),
844
+ "left-icon": b(C),
845
845
  onKeydown: ue
846
- }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : c("v-if", !0),
847
- c(`
846
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : d("v-if", !0),
847
+ d(`
848
848
  @slot No results slot - Displayed when no results corresponding with search query
849
849
  `),
850
- !R.value || R.value.length <= 0 ? I(t.$slots, "no-results", { key: 1 }, () => [
851
- C("span", Dt, [
850
+ !R.value || R.value.length <= 0 ? S(t.$slots, "no-results", { key: 1 }, () => [
851
+ B("span", Dt, [
852
852
  M(b(Q), { class: "maz-h-6 maz-w-6 maz-text-normal" })
853
853
  ])
854
854
  ], !0) : (r(), y("div", Ft, [
@@ -859,15 +859,15 @@ const Kt = {
859
859
  ve,
860
860
  { key: w },
861
861
  [
862
- c(`
862
+ d(`
863
863
  @slot Custom optgroup label
864
864
  @binding {String} label - the label of the optgroup
865
865
  `),
866
- i.label && i.isOptGroup ? I(t.$slots, "optgroup", {
866
+ i.label && i.isOptGroup ? S(t.$slots, "optgroup", {
867
867
  key: 0,
868
868
  label: i.label
869
869
  }, () => [
870
- C(
870
+ B(
871
871
  "span",
872
872
  Ht,
873
873
  Y(i.label),
@@ -878,7 +878,7 @@ const Kt = {
878
878
  key: 1,
879
879
  tabindex: "-1",
880
880
  type: "button",
881
- class: S(["m-select-list-item maz-custom maz-flex-none", [
881
+ class: V(["m-select-list-item maz-custom maz-flex-none", [
882
882
  {
883
883
  "--is-keyboard-selected": k.value === w,
884
884
  "--is-selected": ne(i),
@@ -886,25 +886,25 @@ const Kt = {
886
886
  }
887
887
  ]]),
888
888
  style: ie(t.itemHeight ? { height: `${t.itemHeight}px` } : void 0),
889
- onClick: ce((F) => T(i), ["prevent", "stop"])
889
+ onClick: de((F) => T(i), ["prevent", "stop"])
890
890
  }, [
891
- t.multiple ? (r(), V(b(v), {
891
+ t.multiple ? (r(), I(b(v), {
892
892
  key: 0,
893
893
  tabindex: "-1",
894
894
  "model-value": ne(i),
895
895
  size: "sm",
896
896
  color: t.color
897
- }, null, 8, ["model-value", "color"])) : c("v-if", !0),
898
- c(`
897
+ }, null, 8, ["model-value", "color"])) : d("v-if", !0),
898
+ d(`
899
899
  @slot Custom option
900
900
  @binding {Object} option - the option object
901
901
  @binding {Boolean} is-selected - if the option is selected
902
902
  `),
903
- I(t.$slots, "default", {
903
+ S(t.$slots, "default", {
904
904
  option: i,
905
905
  isSelected: ne(i)
906
906
  }, () => [
907
- C(
907
+ B(
908
908
  "span",
909
909
  null,
910
910
  Y(i[t.optionLabelKey]),
@@ -924,7 +924,7 @@ const Kt = {
924
924
  ],
925
925
  6
926
926
  /* CLASS, STYLE */
927
- )) : c("v-if", !0)
927
+ )) : d("v-if", !0)
928
928
  ]),
929
929
  _: 3
930
930
  /* FORWARDED */
@@ -940,7 +940,7 @@ const Kt = {
940
940
  ]);
941
941
  };
942
942
  }
943
- }), Fe = /* @__PURE__ */ ee(qt, [["__scopeId", "data-v-fe0403c3"]]), Rt = /* @__PURE__ */ x({
943
+ }), Fe = /* @__PURE__ */ ee(qt, [["__scopeId", "data-v-cc87f1d6"]]), Rt = /* @__PURE__ */ x({
944
944
  __name: "MazBtn",
945
945
  props: {
946
946
  variant: { default: "button" },
@@ -957,26 +957,26 @@ const Kt = {
957
957
  loading: { type: Boolean },
958
958
  disabled: { type: Boolean },
959
959
  fab: { type: Boolean },
960
- icon: { default: void 0 },
961
- leftIcon: { default: void 0 },
962
- rightIcon: { default: void 0 },
960
+ icon: { type: [String, Function, Object], default: void 0 },
961
+ leftIcon: { type: [String, Function, Object], default: void 0 },
962
+ rightIcon: { type: [String, Function, Object], default: void 0 },
963
963
  noPadding: { type: Boolean },
964
964
  noElevation: { type: Boolean },
965
965
  contentClass: { default: void 0 }
966
966
  },
967
967
  setup(u) {
968
- const n = u, e = Z(() => import("./MazSpinner-C41VyUup.mjs")), o = Z(() => import("./MazIcon-D3umgnku.mjs")), { href: d, to: v } = at(), B = Pe();
969
- Oe(() => {
968
+ const n = u, e = Z(() => import("./MazSpinner-DneKNmrs.mjs")), o = Z(() => import("./MazIcon-CTjWIkTp.mjs")), { href: c, to: v } = at(), C = Oe();
969
+ Le(() => {
970
970
  n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
971
971
  });
972
- const N = p(() => d ? "a" : v ? "router-link" : "button"), Q = p(
972
+ const N = p(() => c ? "a" : v ? "router-link" : "button"), Q = p(
973
973
  () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
974
974
  ), _ = p(
975
975
  () => (n.loading || n.disabled) && N.value === "button"
976
- ), k = p(() => _.value ? "--cursor-default" : "--cursor-pointer"), j = p(() => `--is-${n.variant}`), A = p(() => n.loading && n.variant === "button"), U = p(() => !!B["left-icon"] || n.leftIcon), z = p(() => !!B["right-icon"] || n.rightIcon), $ = p(() => U.value || z.value), O = p(() => n.fab && (n.icon || !!B.icon)), W = p(() => N.value === "button" ? n.type : void 0);
977
- return (h, J) => (r(), V(pe(N.value), {
976
+ ), k = p(() => _.value ? "--cursor-default" : "--cursor-pointer"), j = p(() => `--is-${n.variant}`), A = p(() => n.loading && n.variant === "button"), U = p(() => !!C["left-icon"] || n.leftIcon), z = p(() => !!C["right-icon"] || n.rightIcon), $ = p(() => U.value || z.value), L = p(() => n.fab && (n.icon || !!C.icon)), W = p(() => N.value === "button" ? n.type : void 0);
977
+ return (h, J) => (r(), I(pe(N.value), {
978
978
  disabled: _.value || void 0,
979
- class: S(["m-btn", [
979
+ class: V(["m-btn", [
980
980
  `--${h.size}`,
981
981
  !h.fab && h.roundedSize && `--rounded-${h.roundedSize}`,
982
982
  Q.value,
@@ -997,88 +997,88 @@ const Kt = {
997
997
  ]]),
998
998
  type: W.value
999
999
  }, {
1000
- default: P(() => [
1000
+ default: O(() => [
1001
1001
  U.value ? (r(), y(
1002
1002
  "div",
1003
1003
  {
1004
1004
  key: 0,
1005
- class: S(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": A.value }])
1005
+ class: V(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": A.value }])
1006
1006
  },
1007
1007
  [
1008
- c(`
1008
+ d(`
1009
1009
  @slot left-icon - The icon to display on the left of the button
1010
1010
  `),
1011
- I(h.$slots, "left-icon", {}, () => [
1012
- typeof h.leftIcon == "string" ? (r(), V(b(o), {
1011
+ S(h.$slots, "left-icon", {}, () => [
1012
+ typeof h.leftIcon == "string" ? (r(), I(b(o), {
1013
1013
  key: 0,
1014
1014
  name: h.leftIcon
1015
- }, null, 8, ["name"])) : h.leftIcon ? (r(), V(pe(h.leftIcon), { key: 1 })) : c("v-if", !0)
1015
+ }, null, 8, ["name"])) : h.leftIcon ? (r(), I(pe(h.leftIcon), { key: 1 })) : d("v-if", !0)
1016
1016
  ], !0)
1017
1017
  ],
1018
1018
  2
1019
1019
  /* CLASS */
1020
- )) : c("v-if", !0),
1021
- O.value ? (r(), y(
1020
+ )) : d("v-if", !0),
1021
+ L.value ? (r(), y(
1022
1022
  "div",
1023
1023
  {
1024
1024
  key: 1,
1025
- class: S(["m-btn__icon", { "maz-invisible": A.value }])
1025
+ class: V(["m-btn__icon", { "maz-invisible": A.value }])
1026
1026
  },
1027
1027
  [
1028
- c(`
1028
+ d(`
1029
1029
  @slot icon - The icon to display on the fab button
1030
1030
  `),
1031
- I(h.$slots, "icon", {}, () => [
1032
- typeof h.icon == "string" ? (r(), V(b(o), {
1031
+ S(h.$slots, "icon", {}, () => [
1032
+ typeof h.icon == "string" ? (r(), I(b(o), {
1033
1033
  key: 0,
1034
1034
  name: h.icon
1035
- }, null, 8, ["name"])) : h.icon ? (r(), V(pe(h.icon), { key: 1 })) : c("v-if", !0)
1035
+ }, null, 8, ["name"])) : h.icon ? (r(), I(pe(h.icon), { key: 1 })) : d("v-if", !0)
1036
1036
  ], !0)
1037
1037
  ],
1038
1038
  2
1039
1039
  /* CLASS */
1040
- )) : c("v-if", !0),
1040
+ )) : d("v-if", !0),
1041
1041
  h.$slots.default ? (r(), y(
1042
1042
  "span",
1043
1043
  {
1044
1044
  key: 2,
1045
- class: S([{ "maz-invisible": A.value }, h.contentClass])
1045
+ class: V([{ "maz-invisible": A.value }, h.contentClass])
1046
1046
  },
1047
1047
  [
1048
- c(`
1048
+ d(`
1049
1049
  @slot default - The content of the button
1050
1050
  `),
1051
- I(h.$slots, "default", {}, void 0, !0)
1051
+ S(h.$slots, "default", {}, void 0, !0)
1052
1052
  ],
1053
1053
  2
1054
1054
  /* CLASS */
1055
- )) : c("v-if", !0),
1055
+ )) : d("v-if", !0),
1056
1056
  z.value ? (r(), y(
1057
1057
  "div",
1058
1058
  {
1059
1059
  key: 3,
1060
- class: S(["m-btn__icon-right", { "maz-invisible": A.value }])
1060
+ class: V(["m-btn__icon-right", { "maz-invisible": A.value }])
1061
1061
  },
1062
1062
  [
1063
- c(`
1063
+ d(`
1064
1064
  @slot right-icon - The icon to display on the right of the button
1065
1065
  `),
1066
- I(h.$slots, "right-icon", {}, () => [
1067
- typeof h.rightIcon == "string" ? (r(), V(b(o), {
1066
+ S(h.$slots, "right-icon", {}, () => [
1067
+ typeof h.rightIcon == "string" ? (r(), I(b(o), {
1068
1068
  key: 0,
1069
1069
  name: h.rightIcon
1070
- }, null, 8, ["name"])) : h.rightIcon ? (r(), V(pe(h.rightIcon), { key: 1 })) : c("v-if", !0)
1070
+ }, null, 8, ["name"])) : h.rightIcon ? (r(), I(pe(h.rightIcon), { key: 1 })) : d("v-if", !0)
1071
1071
  ], !0)
1072
1072
  ],
1073
1073
  2
1074
1074
  /* CLASS */
1075
- )) : c("v-if", !0),
1076
- A.value ? (r(), V(b(e), {
1075
+ )) : d("v-if", !0),
1076
+ A.value ? (r(), I(b(e), {
1077
1077
  key: 4,
1078
1078
  class: "m-btn-loader",
1079
1079
  size: "2em",
1080
1080
  color: h.color
1081
- }, null, 8, ["color"])) : c("v-if", !0)
1081
+ }, null, 8, ["color"])) : d("v-if", !0)
1082
1082
  ]),
1083
1083
  _: 3
1084
1084
  /* FORWARDED */
@@ -1101,17 +1101,17 @@ const Wt = /* @__PURE__ */ x({
1101
1101
  },
1102
1102
  setup(u) {
1103
1103
  const { hoverable: n, backgroundEven: e, backgroundOdd: o } = Ee("maz-table");
1104
- return (d, v) => (r(), y(
1104
+ return (c, v) => (r(), y(
1105
1105
  "tr",
1106
1106
  {
1107
- class: S(["m-table-row", {
1108
- "--hoverable": b(n) && !d.noHoverable,
1107
+ class: V(["m-table-row", {
1108
+ "--hoverable": b(n) && !c.noHoverable,
1109
1109
  "--background-odd": b(o),
1110
1110
  "--background-even": b(e)
1111
1111
  }])
1112
1112
  },
1113
1113
  [
1114
- I(d.$slots, "default", {}, void 0, !0)
1114
+ S(c.$slots, "default", {}, void 0, !0)
1115
1115
  ],
1116
1116
  2
1117
1117
  /* CLASS */
@@ -1124,10 +1124,10 @@ const Wt = /* @__PURE__ */ x({
1124
1124
  return (e, o) => (r(), y(
1125
1125
  "td",
1126
1126
  {
1127
- class: S(["m-table-cell", `--${b(n)}`])
1127
+ class: V(["m-table-cell", `--${b(n)}`])
1128
1128
  },
1129
1129
  [
1130
- I(e.$slots, "default", {}, void 0, !0)
1130
+ S(e.$slots, "default", {}, void 0, !0)
1131
1131
  ],
1132
1132
  2
1133
1133
  /* CLASS */
@@ -1140,16 +1140,16 @@ const Wt = /* @__PURE__ */ x({
1140
1140
  return (e, o) => (r(), y(
1141
1141
  "th",
1142
1142
  {
1143
- class: S(["m-table-title", `--${b(n)}`])
1143
+ class: V(["m-table-title", `--${b(n)}`])
1144
1144
  },
1145
1145
  [
1146
- I(e.$slots, "default", {}, void 0, !0)
1146
+ S(e.$slots, "default", {}, void 0, !0)
1147
1147
  ],
1148
1148
  2
1149
1149
  /* CLASS */
1150
1150
  ));
1151
1151
  }
1152
- }), _e = /* @__PURE__ */ ee(Yt, [["__scopeId", "data-v-cd769807"]]), Zt = (u) => (Ue("data-v-be315052"), u = u(), qe(), u), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ C(
1152
+ }), _e = /* @__PURE__ */ ee(Yt, [["__scopeId", "data-v-cd769807"]]), Zt = (u) => (Ue("data-v-be315052"), u = u(), qe(), u), Jt = { class: "m-loading-bar" }, Xt = /* @__PURE__ */ Zt(() => /* @__PURE__ */ B(
1153
1153
  "div",
1154
1154
  null,
1155
1155
  null,
@@ -1173,7 +1173,7 @@ const Wt = /* @__PURE__ */ x({
1173
1173
  alpha: `var(--maz-color-${n.color}-alpha-20)`,
1174
1174
  main: `var(--maz-color-${n.color})`
1175
1175
  }));
1176
- return (o, d) => (r(), y("div", Jt, xt));
1176
+ return (o, c) => (r(), y("div", Jt, xt));
1177
1177
  }
1178
1178
  }), to = /* @__PURE__ */ ee(eo, [["__scopeId", "data-v-be315052"]]), oo = {
1179
1179
  xmlns: "http://www.w3.org/2000/svg",
@@ -1181,7 +1181,7 @@ const Wt = /* @__PURE__ */ x({
1181
1181
  height: "1em",
1182
1182
  fill: "none",
1183
1183
  viewBox: "0 0 24 24"
1184
- }, lo = /* @__PURE__ */ C(
1184
+ }, lo = /* @__PURE__ */ B(
1185
1185
  "path",
1186
1186
  {
1187
1187
  stroke: "currentColor",
@@ -1227,16 +1227,16 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1227
1227
  setup(u, { emit: n }) {
1228
1228
  we((z) => ({
1229
1229
  "30ad0e00": Q.value,
1230
- "46bd1cbc": B.value,
1230
+ "46bd1cbc": C.value,
1231
1231
  "7c7c6907": _.value,
1232
1232
  "47a52c6c": k.value
1233
1233
  }));
1234
- const e = u, o = n, d = Ne({
1234
+ const e = u, o = n, c = Ne({
1235
1235
  componentName: "MazCheckbox",
1236
1236
  providedId: e.id
1237
1237
  }), v = p(
1238
1238
  () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
1239
- ), B = p(() => {
1239
+ ), C = p(() => {
1240
1240
  switch (e.size) {
1241
1241
  case "xl":
1242
1242
  return "2.25rem";
@@ -1280,33 +1280,33 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1280
1280
  o("update:model-value", $), o("change", $);
1281
1281
  }
1282
1282
  return (z, $) => (r(), y("label", {
1283
- for: b(d),
1284
- class: S(["m-checkbox", [{ "--disabled": z.disabled }, e.class]]),
1283
+ for: b(c),
1284
+ class: V(["m-checkbox", [{ "--disabled": z.disabled }, e.class]]),
1285
1285
  tabindex: "0",
1286
1286
  style: ie(z.style),
1287
1287
  role: "checkbox",
1288
1288
  "aria-checked": v.value,
1289
1289
  onKeydown: j
1290
1290
  }, [
1291
- C("input", Le({
1292
- id: b(d),
1291
+ B("input", Pe({
1292
+ id: b(c),
1293
1293
  checked: v.value
1294
1294
  }, z.$attrs, {
1295
1295
  tabindex: "-1",
1296
1296
  disabled: z.disabled,
1297
1297
  name: z.name,
1298
1298
  type: "checkbox",
1299
- onChange: $[0] || ($[0] = (O) => {
1299
+ onChange: $[0] || ($[0] = (L) => {
1300
1300
  var W;
1301
- return U(z.value ?? ((W = O == null ? void 0 : O.target) == null ? void 0 : W.checked));
1301
+ return U(z.value ?? ((W = L == null ? void 0 : L.target) == null ? void 0 : W.checked));
1302
1302
  })
1303
1303
  }), null, 16, ro),
1304
- C("span", null, [
1304
+ B("span", null, [
1305
1305
  M(b(Je), {
1306
- class: S(["check-icon", N.value])
1306
+ class: V(["check-icon", N.value])
1307
1307
  }, null, 8, ["class"])
1308
1308
  ]),
1309
- I(z.$slots, "default", {}, () => [
1309
+ S(z.$slots, "default", {}, () => [
1310
1310
  re(
1311
1311
  Y(z.label),
1312
1312
  1
@@ -1330,7 +1330,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1330
1330
  }, yo = { class: "maz-text-center maz-text-muted" }, go = {
1331
1331
  key: 1,
1332
1332
  class: "m-table-footer"
1333
- }, zo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ C(
1333
+ }, zo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ B(
1334
1334
  "div",
1335
1335
  { class: "m-table-spacer" },
1336
1336
  null,
@@ -1339,20 +1339,20 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1339
1339
  )), ko = {
1340
1340
  key: 0,
1341
1341
  class: "m-table-footer-pagination"
1342
- }, $o = { class: "m-table-footer-pagination-items-per-page" }, wo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ C(
1342
+ }, $o = { class: "m-table-footer-pagination-items-per-page" }, wo = /* @__PURE__ */ Xe(() => /* @__PURE__ */ B(
1343
1343
  "span",
1344
1344
  { class: "maz-hidden maz-text-sm maz-text-muted tab-s:maz-block" },
1345
1345
  " Item per page ",
1346
1346
  -1
1347
1347
  /* HOISTED */
1348
- )), Io = {
1348
+ )), So = {
1349
1349
  key: 0,
1350
1350
  class: "maz-whitespace-nowrap maz-text-sm"
1351
- }, Vo = { class: "m-table-footer-pagination-buttons" }, So = /* @__PURE__ */ x({
1351
+ }, Io = { class: "m-table-footer-pagination-buttons" }, Vo = /* @__PURE__ */ x({
1352
1352
  __name: "MazTable",
1353
1353
  props: {
1354
1354
  tableClass: { default: void 0 },
1355
- tableStyle: { default: void 0 },
1355
+ tableStyle: { type: [Boolean, null, String, Object, Array], default: void 0 },
1356
1356
  modelValue: { default: void 0 },
1357
1357
  size: { default: "md" },
1358
1358
  title: { default: void 0 },
@@ -1393,16 +1393,16 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1393
1393
  c76cc88c: e.tableLayout,
1394
1394
  "23d9937f": e.captionSide
1395
1395
  }));
1396
- const e = u, o = n, d = p(
1396
+ const e = u, o = n, c = p(
1397
1397
  () => e.divider && !e.backgroundEven && !e.backgroundOdd
1398
- ), { size: v, hoverable: B, backgroundEven: N, backgroundOdd: Q } = st(e);
1398
+ ), { size: v, hoverable: C, backgroundEven: N, backgroundOdd: Q } = st(e);
1399
1399
  rt("maz-table", {
1400
1400
  size: v,
1401
- hoverable: B,
1401
+ hoverable: C,
1402
1402
  backgroundEven: N,
1403
1403
  backgroundOdd: Q
1404
1404
  });
1405
- const _ = L(fe()), k = p(() => e.selectable || !!e.selectedKey), j = L(e.page);
1405
+ const _ = P(fe()), k = p(() => e.selectable || !!e.selectedKey), j = P(e.page);
1406
1406
  ge(
1407
1407
  () => e.page,
1408
1408
  (l) => {
@@ -1422,7 +1422,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1422
1422
  { label: 50, value: 50 },
1423
1423
  { label: 100, value: 100 },
1424
1424
  { label: 200, value: 200 }
1425
- ]), z = L(e.pageSize);
1425
+ ]), z = P(e.pageSize);
1426
1426
  ge(
1427
1427
  () => e.pageSize,
1428
1428
  (l) => {
@@ -1434,7 +1434,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1434
1434
  set: (l) => {
1435
1435
  z.value = l, o("update:page-size", l);
1436
1436
  }
1437
- }), O = p(() => {
1437
+ }), L = p(() => {
1438
1438
  var l;
1439
1439
  return e.totalPages ?? ($.value === Number.POSITIVE_INFINITY || !((l = e.rows) != null && l.length)) ? 1 : Math.ceil(e.rows.length / $.value);
1440
1440
  });
@@ -1442,7 +1442,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1442
1442
  A.value = 1;
1443
1443
  }
1444
1444
  function h() {
1445
- A.value = O.value;
1445
+ A.value = L.value;
1446
1446
  }
1447
1447
  function J() {
1448
1448
  A.value = A.value - 1;
@@ -1462,13 +1462,13 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1462
1462
  _.value = fe();
1463
1463
  }
1464
1464
  );
1465
- const G = L(), D = L(), q = L(ae()), H = L(), ne = p(() => [
1465
+ const G = P(), D = P(), q = P(ae()), H = P(), ne = p(() => [
1466
1466
  { label: e.searchByAllLabel, value: null },
1467
1467
  ...q.value.map((l) => ({
1468
1468
  label: l.label,
1469
1469
  value: l.key
1470
1470
  }))
1471
- ]), se = L(e.searchQuery);
1471
+ ]), se = P(e.searchQuery);
1472
1472
  ge(
1473
1473
  () => e.searchQuery,
1474
1474
  (l) => {
@@ -1498,7 +1498,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1498
1498
  const E = p(() => {
1499
1499
  const l = K(X.value);
1500
1500
  return a(l);
1501
- }), be = Pe(), R = p(() => e.search || !!e.title || !!be.title), le = p(() => e.pagination);
1501
+ }), be = Oe(), R = p(() => e.search || !!e.title || !!be.title), le = p(() => e.pagination);
1502
1502
  function ae() {
1503
1503
  var l;
1504
1504
  return ((l = e.headers) == null ? void 0 : l.map(
@@ -1515,19 +1515,19 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1515
1515
  };
1516
1516
  })) ?? [];
1517
1517
  }
1518
- function Ie(l) {
1518
+ function Se(l) {
1519
1519
  l === G.value ? D.value = D.value === void 0 ? "DESC" : D.value === "DESC" ? "ASC" : void 0 : D.value = "DESC", G.value = D.value === void 0 ? void 0 : l;
1520
1520
  }
1521
1521
  const he = p({
1522
1522
  get: () => E.value.every((l) => l.selected) ?? !1,
1523
- set: Ve
1523
+ set: Ie
1524
1524
  });
1525
- function Ve(l) {
1525
+ function Ie(l) {
1526
1526
  for (const g of E.value)
1527
1527
  g.selected = l;
1528
1528
  ue();
1529
1529
  }
1530
- function Se(l, g) {
1530
+ function Ve(l, g) {
1531
1531
  E.value[g].selected = l, ue();
1532
1532
  }
1533
1533
  function ue(l) {
@@ -1538,29 +1538,29 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1538
1538
  function ye() {
1539
1539
  return E.value.filter((l) => l.selected).map((l) => e.selectedKey ? l[e.selectedKey] : l);
1540
1540
  }
1541
- return Oe(() => {
1541
+ return Le(() => {
1542
1542
  const l = ye();
1543
1543
  l != null && l.length && ue(l);
1544
1544
  }), (l, g) => (r(), y(
1545
1545
  "div",
1546
1546
  {
1547
- class: S(["m-table", { "--has-header": R.value }])
1547
+ class: V(["m-table", { "--has-header": R.value }])
1548
1548
  },
1549
1549
  [
1550
1550
  R.value ? (r(), y("div", co, [
1551
- C("div", po, [
1552
- l.title || l.$slots.title ? I(l.$slots, "title", { key: 0 }, () => [
1553
- C(
1551
+ B("div", po, [
1552
+ l.title || l.$slots.title ? S(l.$slots, "title", { key: 0 }, () => [
1553
+ B(
1554
1554
  "span",
1555
1555
  fo,
1556
1556
  Y(l.title),
1557
1557
  1
1558
1558
  /* TEXT */
1559
1559
  )
1560
- ], !0) : c("v-if", !0)
1560
+ ], !0) : d("v-if", !0)
1561
1561
  ]),
1562
1562
  l.search ? (r(), y("div", mo, [
1563
- l.noSearchBy ? c("v-if", !0) : (r(), V(Fe, {
1563
+ l.noSearchBy ? d("v-if", !0) : (r(), I(Fe, {
1564
1564
  key: 0,
1565
1565
  modelValue: H.value,
1566
1566
  "onUpdate:modelValue": g[0] || (g[0] = (f) => H.value = f),
@@ -1578,40 +1578,40 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1578
1578
  placeholder: l.searchPlaceholder,
1579
1579
  "left-icon": b(Qe)
1580
1580
  }, null, 8, ["modelValue", "size", "color", "placeholder", "left-icon"])
1581
- ])) : c("v-if", !0)
1582
- ])) : c("v-if", !0),
1583
- C(
1581
+ ])) : d("v-if", !0)
1582
+ ])) : d("v-if", !0),
1583
+ B(
1584
1584
  "table",
1585
1585
  {
1586
- class: S([{ "--elevation": l.elevation, "--has-layout": l.tableLayout }, l.tableClass]),
1586
+ class: V([{ "--elevation": l.elevation, "--has-layout": l.tableLayout }, l.tableClass]),
1587
1587
  style: ie(l.tableStyle)
1588
1588
  },
1589
1589
  [
1590
1590
  l.caption || l.$slots.caption ? (r(), y("caption", vo, [
1591
- c(`
1591
+ d(`
1592
1592
  @slot caption - add caption on top or bottom of the table
1593
1593
  `),
1594
- I(l.$slots, "caption", {}, () => [
1594
+ S(l.$slots, "caption", {}, () => [
1595
1595
  re(
1596
1596
  Y(l.caption),
1597
1597
  1
1598
1598
  /* TEXT */
1599
1599
  )
1600
1600
  ], !0)
1601
- ])) : c("v-if", !0),
1601
+ ])) : d("v-if", !0),
1602
1602
  q.value ? (r(), y("thead", bo, [
1603
- c(`
1603
+ d(`
1604
1604
  @slot thead - content in thead element
1605
1605
  `),
1606
- I(l.$slots, "thead", {}, () => [
1606
+ S(l.$slots, "thead", {}, () => [
1607
1607
  M(Me, { "no-hoverable": "" }, {
1608
- default: P(() => [
1609
- k.value ? (r(), V(_e, {
1608
+ default: O(() => [
1609
+ k.value ? (r(), I(_e, {
1610
1610
  key: 0,
1611
1611
  align: "left",
1612
- class: S([`--${b(v)}`, "m-table-select-column"])
1612
+ class: V([`--${b(v)}`, "m-table-select-column"])
1613
1613
  }, {
1614
- default: P(() => [
1614
+ default: O(() => [
1615
1615
  M(Ke, {
1616
1616
  modelValue: he.value,
1617
1617
  "onUpdate:modelValue": g[2] || (g[2] = (f) => he.value = f),
@@ -1620,11 +1620,11 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1620
1620
  ]),
1621
1621
  _: 1
1622
1622
  /* STABLE */
1623
- }, 8, ["class"])) : c("v-if", !0),
1623
+ }, 8, ["class"])) : d("v-if", !0),
1624
1624
  (r(!0), y(
1625
1625
  ve,
1626
1626
  null,
1627
- ke(q.value, (f, T) => (r(), V(_e, {
1627
+ ke(q.value, (f, T) => (r(), I(_e, {
1628
1628
  key: T,
1629
1629
  scope: f.scope,
1630
1630
  align: f.align,
@@ -1632,35 +1632,35 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1632
1632
  colspan: f.colspan,
1633
1633
  headers: f.thHeaders,
1634
1634
  style: ie({ width: f.width, textAlign: f.align }),
1635
- class: S(["maz-group", [
1635
+ class: V(["maz-group", [
1636
1636
  { "--hidden": f.hidden, "--sortable": f.sortable ?? l.sortable },
1637
1637
  f.classes,
1638
1638
  `--${b(v)}`
1639
1639
  ]]),
1640
- onClick: (t) => (f.sortable ?? l.sortable) && Ie(T)
1640
+ onClick: (t) => (f.sortable ?? l.sortable) && Se(T)
1641
1641
  }, {
1642
- default: P(() => [
1643
- C(
1642
+ default: O(() => [
1643
+ B(
1644
1644
  "span",
1645
1645
  {
1646
- class: S({ "maz-sr-only": f.srOnly })
1646
+ class: V({ "maz-sr-only": f.srOnly })
1647
1647
  },
1648
1648
  [
1649
- c(`
1649
+ d(`
1650
1650
  @slot header - replace column header
1651
1651
  @binding {Object} header - header data
1652
1652
  @binding {String} label - header label
1653
1653
  `),
1654
- I(l.$slots, "header", {
1654
+ S(l.$slots, "header", {
1655
1655
  header: f,
1656
1656
  label: f.label
1657
1657
  }, () => [
1658
- c(`
1658
+ d(`
1659
1659
  @slot header-label-{key} - replace column header label
1660
1660
  @binding {Object} header - header data
1661
1661
  @binding {String} label - header label
1662
1662
  `),
1663
- I(l.$slots, `header-label-${f.key}`, {
1663
+ S(l.$slots, `header-label-${f.key}`, {
1664
1664
  header: f,
1665
1665
  label: f.label
1666
1666
  }, () => [
@@ -1672,13 +1672,13 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1672
1672
  ], !0),
1673
1673
  f.sortable ?? l.sortable ? (r(), y("div", ho, [
1674
1674
  M(b(bt), {
1675
- class: S(["m-table-sort-icon maz-hidden group-hover:maz-block", {
1675
+ class: V(["m-table-sort-icon maz-hidden group-hover:maz-block", {
1676
1676
  "--sorted": T === G.value,
1677
1677
  "--up": D.value === "DESC",
1678
1678
  "--down": D.value === "ASC"
1679
1679
  }])
1680
1680
  }, null, 8, ["class"])
1681
- ])) : c("v-if", !0)
1681
+ ])) : d("v-if", !0)
1682
1682
  ], !0)
1683
1683
  ],
1684
1684
  2
@@ -1691,70 +1691,70 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1691
1691
  128
1692
1692
  /* KEYED_FRAGMENT */
1693
1693
  )),
1694
- l.$slots.actions ? (r(), V(_e, {
1694
+ l.$slots.actions ? (r(), I(_e, {
1695
1695
  key: 1,
1696
1696
  align: "left",
1697
- class: S(`--${b(v)}`)
1697
+ class: V(`--${b(v)}`)
1698
1698
  }, {
1699
- default: P(() => [
1700
- c(`
1699
+ default: O(() => [
1700
+ d(`
1701
1701
  @slot actions-header - replace text of actions header
1702
1702
  `),
1703
- I(l.$slots, "actions-header", {}, () => [
1703
+ S(l.$slots, "actions-header", {}, () => [
1704
1704
  re(" Actions ")
1705
1705
  ], !0)
1706
1706
  ]),
1707
1707
  _: 3
1708
1708
  /* FORWARDED */
1709
- }, 8, ["class"])) : c("v-if", !0)
1709
+ }, 8, ["class"])) : d("v-if", !0)
1710
1710
  ]),
1711
1711
  _: 3
1712
1712
  /* FORWARDED */
1713
1713
  })
1714
1714
  ], !0)
1715
- ])) : c("v-if", !0),
1716
- l.loading ? (r(), V(to, {
1715
+ ])) : d("v-if", !0),
1716
+ l.loading ? (r(), I(to, {
1717
1717
  key: 2,
1718
1718
  color: l.color,
1719
1719
  class: "!maz-absolute"
1720
- }, null, 8, ["color"])) : c("v-if", !0),
1721
- C(
1720
+ }, null, 8, ["color"])) : d("v-if", !0),
1721
+ B(
1722
1722
  "tbody",
1723
1723
  {
1724
- class: S({ "--divider": d.value })
1724
+ class: V({ "--divider": c.value })
1725
1725
  },
1726
1726
  [
1727
- I(l.$slots, "default", {}, () => [
1727
+ S(l.$slots, "default", {}, () => [
1728
1728
  E.value.length > 0 ? (r(!0), y(
1729
1729
  ve,
1730
1730
  { key: 0 },
1731
- ke(E.value, (f, T) => (r(), V(Me, {
1731
+ ke(E.value, (f, T) => (r(), I(Me, {
1732
1732
  key: T,
1733
- class: S(f.classes),
1733
+ class: V(f.classes),
1734
1734
  onClick: (t) => f.action && f.action(f)
1735
1735
  }, {
1736
- default: P(() => [
1737
- k.value ? (r(), V(
1736
+ default: O(() => [
1737
+ k.value ? (r(), I(
1738
1738
  ze,
1739
1739
  {
1740
1740
  key: 0,
1741
1741
  class: "m-table-select-column"
1742
1742
  },
1743
1743
  {
1744
- default: P(() => [
1745
- c(`
1744
+ default: O(() => [
1745
+ d(`
1746
1746
  @slot select - replace checkbox component
1747
1747
  @binding {Object} row - row data
1748
1748
  @binding {Boolean} selected - if selected or not
1749
1749
  `),
1750
- I(l.$slots, "select", {
1750
+ S(l.$slots, "select", {
1751
1751
  row: f,
1752
1752
  selected: f.selected
1753
1753
  }, () => [
1754
1754
  M(Ke, {
1755
1755
  size: "xs",
1756
1756
  "model-value": f.selected,
1757
- "onUpdate:modelValue": (t) => Se(t, T)
1757
+ "onUpdate:modelValue": (t) => Ve(t, T)
1758
1758
  }, null, 8, ["model-value", "onUpdate:modelValue"])
1759
1759
  ], !0)
1760
1760
  ]),
@@ -1763,32 +1763,32 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1763
1763
  },
1764
1764
  1024
1765
1765
  /* DYNAMIC_SLOTS */
1766
- )) : c("v-if", !0),
1766
+ )) : d("v-if", !0),
1767
1767
  (r(!0), y(
1768
1768
  ve,
1769
1769
  null,
1770
- ke(q.value, ({ key: t, align: s, classes: m }, i) => (r(), V(ze, {
1770
+ ke(q.value, ({ key: t, align: s, classes: m }, i) => (r(), I(ze, {
1771
1771
  key: i,
1772
1772
  align: s,
1773
- class: S(m)
1773
+ class: V(m)
1774
1774
  }, {
1775
- default: P(() => [
1776
- c(`
1775
+ default: O(() => [
1776
+ d(`
1777
1777
  @slot cell - replace all row cells
1778
1778
  @binding {Object} row - row data
1779
1779
  @binding {Boolean} value - cell value
1780
1780
  `),
1781
- t ? I(l.$slots, "cell", {
1781
+ t ? S(l.$slots, "cell", {
1782
1782
  key: 0,
1783
1783
  row: f,
1784
1784
  value: f[t]
1785
1785
  }, () => [
1786
- c(`
1786
+ d(`
1787
1787
  @slot cell-{key} - replace row cells of column
1788
1788
  @binding {Object} row - row data
1789
1789
  @binding {Boolean} value - cell value
1790
1790
  `),
1791
- I(l.$slots, `cell-${t}`, {
1791
+ S(l.$slots, `cell-${t}`, {
1792
1792
  row: f,
1793
1793
  value: f[t]
1794
1794
  }, () => [
@@ -1798,7 +1798,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1798
1798
  /* TEXT */
1799
1799
  )
1800
1800
  ], !0)
1801
- ], !0) : c("v-if", !0)
1801
+ ], !0) : d("v-if", !0)
1802
1802
  ]),
1803
1803
  _: 2
1804
1804
  /* DYNAMIC */
@@ -1806,44 +1806,44 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1806
1806
  128
1807
1807
  /* KEYED_FRAGMENT */
1808
1808
  )),
1809
- l.$slots.actions ? (r(), V(
1809
+ l.$slots.actions ? (r(), I(
1810
1810
  ze,
1811
1811
  { key: 1 },
1812
1812
  {
1813
- default: P(() => [
1814
- c(`
1813
+ default: O(() => [
1814
+ d(`
1815
1815
  @slot actions - will add actions column
1816
1816
  @binding {Object} row - row data
1817
1817
  `),
1818
- I(l.$slots, "actions", { row: f }, void 0, !0)
1818
+ S(l.$slots, "actions", { row: f }, void 0, !0)
1819
1819
  ]),
1820
1820
  _: 2
1821
1821
  /* DYNAMIC */
1822
1822
  },
1823
1823
  1024
1824
1824
  /* DYNAMIC_SLOTS */
1825
- )) : c("v-if", !0)
1825
+ )) : d("v-if", !0)
1826
1826
  ]),
1827
1827
  _: 2
1828
1828
  /* DYNAMIC */
1829
1829
  }, 1032, ["class", "onClick"]))),
1830
1830
  128
1831
1831
  /* KEYED_FRAGMENT */
1832
- )) : (r(), V(Me, { key: 1 }, {
1833
- default: P(() => [
1832
+ )) : (r(), I(Me, { key: 1 }, {
1833
+ default: O(() => [
1834
1834
  M(ze, {
1835
1835
  colspan: q.value.length + (k.value ? 1 : 0) + (l.$slots.actions ? 1 : 0)
1836
1836
  }, {
1837
- default: P(() => [
1838
- c(`
1837
+ default: O(() => [
1838
+ d(`
1839
1839
  @slot no-results - replace no results
1840
1840
  `),
1841
- I(l.$slots, "no-results", {}, () => [
1842
- C("p", yo, [
1843
- c(`
1841
+ S(l.$slots, "no-results", {}, () => [
1842
+ B("p", yo, [
1843
+ d(`
1844
1844
  @slot no-results-text - replace no results test only
1845
1845
  `),
1846
- I(l.$slots, "no-results-text", {}, () => [
1846
+ S(l.$slots, "no-results-text", {}, () => [
1847
1847
  re(" No results ")
1848
1848
  ], !0)
1849
1849
  ])
@@ -1868,7 +1868,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1868
1868
  le.value ? (r(), y("div", go, [
1869
1869
  zo,
1870
1870
  l.pagination ? (r(), y("div", ko, [
1871
- C("div", $o, [
1871
+ B("div", $o, [
1872
1872
  wo,
1873
1873
  M(Fe, {
1874
1874
  modelValue: $.value,
@@ -1880,14 +1880,14 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1880
1880
  style: { width: "5rem" }
1881
1881
  }, null, 8, ["modelValue", "options", "size", "color"])
1882
1882
  ]),
1883
- O.value ? (r(), y(
1883
+ L.value ? (r(), y(
1884
1884
  "span",
1885
- Io,
1886
- Y(A.value) + " - " + Y(E.value.length) + " of " + Y(O.value),
1885
+ So,
1886
+ Y(A.value) + " - " + Y(E.value.length) + " of " + Y(L.value),
1887
1887
  1
1888
1888
  /* TEXT */
1889
- )) : c("v-if", !0),
1890
- C("div", Vo, [
1889
+ )) : d("v-if", !0),
1890
+ B("div", Io, [
1891
1891
  M(me, {
1892
1892
  disabled: A.value === 1,
1893
1893
  size: b(v),
@@ -1896,7 +1896,7 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1896
1896
  "no-elevation": "",
1897
1897
  onClick: W
1898
1898
  }, {
1899
- default: P(() => [
1899
+ default: O(() => [
1900
1900
  M(b(De), { class: "maz-text-base" })
1901
1901
  ]),
1902
1902
  _: 1
@@ -1910,51 +1910,51 @@ const Je = { render: Ze }, no = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1910
1910
  "no-elevation": "",
1911
1911
  onClick: J
1912
1912
  }, {
1913
- default: P(() => [
1913
+ default: O(() => [
1914
1914
  M(b(je), { class: "maz-text-base" })
1915
1915
  ]),
1916
1916
  _: 1
1917
1917
  /* STABLE */
1918
1918
  }, 8, ["disabled", "size"]),
1919
1919
  M(me, {
1920
- disabled: A.value === O.value,
1920
+ disabled: A.value === L.value,
1921
1921
  size: b(v),
1922
1922
  color: "transparent",
1923
1923
  fab: "",
1924
1924
  "no-elevation": "",
1925
1925
  onClick: te
1926
1926
  }, {
1927
- default: P(() => [
1927
+ default: O(() => [
1928
1928
  M(b(je), { class: "maz-rotate-180 maz-text-base" })
1929
1929
  ]),
1930
1930
  _: 1
1931
1931
  /* STABLE */
1932
1932
  }, 8, ["disabled", "size"]),
1933
1933
  M(me, {
1934
- disabled: A.value === O.value,
1934
+ disabled: A.value === L.value,
1935
1935
  size: b(v),
1936
1936
  color: "transparent",
1937
1937
  fab: "",
1938
1938
  "no-elevation": "",
1939
1939
  onClick: h
1940
1940
  }, {
1941
- default: P(() => [
1941
+ default: O(() => [
1942
1942
  M(b(De), { class: "maz-rotate-180 maz-text-base" })
1943
1943
  ]),
1944
1944
  _: 1
1945
1945
  /* STABLE */
1946
1946
  }, 8, ["disabled", "size"])
1947
1947
  ])
1948
- ])) : c("v-if", !0)
1949
- ])) : c("v-if", !0)
1948
+ ])) : d("v-if", !0)
1949
+ ])) : d("v-if", !0)
1950
1950
  ],
1951
1951
  2
1952
1952
  /* CLASS */
1953
1953
  ));
1954
1954
  }
1955
- }), Bo = /* @__PURE__ */ ee(So, [["__scopeId", "data-v-6b3a886f"]]);
1955
+ }), Co = /* @__PURE__ */ ee(Vo, [["__scopeId", "data-v-6b3a886f"]]);
1956
1956
  export {
1957
- Bo as M,
1957
+ Co as M,
1958
1958
  ee as _,
1959
1959
  Ee as i
1960
1960
  };