maz-ui 3.36.0 → 3.36.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 (35) hide show
  1. package/components/MazDialog.mjs +1 -1
  2. package/components/MazDialogPromise.mjs +1 -1
  3. package/components/MazPagination.d.ts +4 -3
  4. package/components/MazPagination.mjs +1 -1
  5. package/components/MazPhoneNumberInput.mjs +1 -1
  6. package/components/MazSelect.mjs +1 -1
  7. package/components/MazTable.mjs +1 -1
  8. package/components/assets/MazDialog.css +1 -1
  9. package/components/assets/MazDialogPromise.css +1 -1
  10. package/components/assets/MazPagination.css +1 -1
  11. package/components/assets/MazPhoneNumberInput.css +1 -1
  12. package/components/assets/MazSelect.css +1 -1
  13. package/components/assets/MazTable.css +1 -1
  14. package/components/chunks/{MazBtn-GCCDnqJA.mjs → MazBtn-CvXujRc7.mjs} +2 -2
  15. package/components/chunks/{MazBtn-BL-LWc8X.mjs → MazBtn-DE96LeuR.mjs} +2 -2
  16. package/components/chunks/{MazBtn-CEuoZU_j.mjs → MazBtn-DlN53_hE.mjs} +2 -2
  17. package/components/chunks/{MazBtn-pY3gOUjM.mjs → MazBtn-kLavxmjX.mjs} +2 -2
  18. package/components/chunks/{MazCheckbox-BAC8XgFg.mjs → MazCheckbox-CEH7cTwM.mjs} +1 -1
  19. package/components/chunks/{MazCheckbox-EG8AZPtG.mjs → MazCheckbox-RBgGXFPZ.mjs} +1 -1
  20. package/components/chunks/{MazDialog-DtQm-sV0.mjs → MazDialog-CW8YIBc1.mjs} +2 -2
  21. package/components/chunks/{MazDialogPromise-CWl8N4Af.mjs → MazDialogPromise-Cd5B1cpr.mjs} +3 -3
  22. package/components/chunks/{MazIcon-pcOKJiIX.mjs → MazIcon-BHpbiW6o.mjs} +1 -1
  23. package/components/chunks/{MazPagination-Ch7JcLI8.mjs → MazPagination-BOia4I5Z.mjs} +2 -2
  24. package/components/chunks/{MazPhoneNumberInput-dbbjH9lI.mjs → MazPhoneNumberInput-DswH2fTx.mjs} +60 -57
  25. package/components/chunks/{MazSelect-8_n2ovqP.mjs → MazSelect-D3ti4T0X.mjs} +70 -67
  26. package/components/chunks/{MazSpinner-Dty6fcnV.mjs → MazSpinner-5mIQ-J1u.mjs} +1 -1
  27. package/components/chunks/{MazSpinner-DtdabLA2.mjs → MazSpinner-BwOdmgr3.mjs} +1 -1
  28. package/components/chunks/{MazSpinner-CB4XzJJF.mjs → MazSpinner-Bxelx5NH.mjs} +1 -1
  29. package/components/chunks/{MazSpinner-D3U6NnSV.mjs → MazSpinner-CISWLcK7.mjs} +1 -1
  30. package/components/chunks/{MazSpinner-CjKNs7lm.mjs → MazSpinner-CJw_tVej.mjs} +1 -1
  31. package/components/chunks/{MazSpinner-CRYzqbIv.mjs → MazSpinner-DaehD0ZC.mjs} +1 -1
  32. package/components/chunks/{MazTable-DECLgD3Z.mjs → MazTable-BrIKi66i.mjs} +54 -51
  33. package/nuxt/index.json +1 -1
  34. package/package.json +9 -9
  35. package/types/components/MazPagination.vue.d.ts +4 -3
@@ -1,5 +1,5 @@
1
1
  import "../assets/MazTable.css";
2
- import { openBlock as s, createElementBlock as h, createElementVNode as I, computed as d, defineComponent as oe, defineAsyncComponent as G, ref as K, getCurrentInstance as Le, onMounted as Ze, useSlots as Pe, normalizeClass as V, normalizeStyle as se, createCommentVNode as i, renderSlot as k, createBlock as $, unref as f, resolveDynamicComponent as ce, withDirectives as Ge, mergeProps as Te, toHandlers as Je, vModelDynamic as Xe, createTextVNode as de, toDisplayString as x, withModifiers as ve, withCtx as T, createVNode as C, inject as xe, useCssVars as Ve, onBeforeMount as Oe, Transition as eo, Fragment as he, renderList as we, nextTick as Be, useAttrs as oo, pushScopeId as He, popScopeId as qe, toRefs as lo, provide as to, watch as ke } from "vue";
2
+ import { openBlock as s, createElementBlock as h, createElementVNode as I, computed as d, defineComponent as oe, defineAsyncComponent as Z, ref as K, getCurrentInstance as Le, onMounted as Ye, useSlots as Pe, normalizeClass as V, normalizeStyle as se, createCommentVNode as i, renderSlot as k, createBlock as $, unref as f, resolveDynamicComponent as ce, withDirectives as Ze, mergeProps as Te, toHandlers as Je, vModelDynamic as Xe, createTextVNode as de, toDisplayString as x, withModifiers as ve, withCtx as T, createVNode as C, inject as xe, useCssVars as Ve, onBeforeMount as Oe, Transition as eo, Fragment as he, renderList as we, nextTick as Be, useAttrs as oo, pushScopeId as He, popScopeId as qe, toRefs as lo, provide as to, watch as ke } from "vue";
3
3
  const ao = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "1em",
@@ -156,12 +156,12 @@ const Ne = ({
156
156
  },
157
157
  emits: ["update:model-value", "focus", "blur", "click", "change"],
158
158
  setup(v, { emit: y }) {
159
- const a = G(() => Promise.resolve().then(() => No)), c = G(() => import("./MazIcon-pcOKJiIX.mjs")), M = G(() => import("./eye-slash-tjfxO0LK.mjs")), S = G(() => import("./eye-DqO_Jx56.mjs")), w = G(() => Promise.resolve().then(() => Go)), o = v, N = y, _ = K(!1), z = K(!1), E = K(), B = Le(), J = Ne({
159
+ const a = Z(() => Promise.resolve().then(() => No)), c = Z(() => import("./MazIcon-BHpbiW6o.mjs")), M = Z(() => import("./eye-slash-tjfxO0LK.mjs")), S = Z(() => import("./eye-DqO_Jx56.mjs")), w = Z(() => Promise.resolve().then(() => Zo)), o = v, N = y, _ = K(!1), z = K(!1), E = K(), B = Le(), J = Ne({
160
160
  componentName: "MazInput",
161
161
  instance: B,
162
162
  providedId: o.id
163
163
  });
164
- Ze(() => {
164
+ Ye(() => {
165
165
  var t;
166
166
  o.autoFocus && ((t = E.value) == null || t.focus());
167
167
  });
@@ -219,7 +219,7 @@ const Ne = ({
219
219
  function pe(t) {
220
220
  N("focus", t), z.value = !0;
221
221
  }
222
- function Y(t) {
222
+ function G(t) {
223
223
  N("blur", t), z.value = !1;
224
224
  }
225
225
  function ee(t) {
@@ -271,7 +271,7 @@ const Ne = ({
271
271
  ], !0) : i("v-if", !0)
272
272
  ])) : i("v-if", !0),
273
273
  I("div", Vo, [
274
- Ge(I("input", Te({
274
+ Ze(I("input", Te({
275
275
  id: f(J),
276
276
  ref_key: "input",
277
277
  ref: E,
@@ -287,7 +287,7 @@ const Ne = ({
287
287
  required: t.required,
288
288
  class: "m-input-input"
289
289
  }, Je({
290
- blur: Y,
290
+ blur: G,
291
291
  focus: pe,
292
292
  change: ee
293
293
  }, !0), {
@@ -433,11 +433,11 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
433
433
  emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
434
434
  setup(v, { emit: y }) {
435
435
  Ve((e) => ({
436
- "021d98d9": H.value,
437
- "3f038458": B.value,
438
- c194e680: J.value
436
+ "39733c9a": H.value,
437
+ "014b4cd9": B.value,
438
+ 56278181: J.value
439
439
  }));
440
- const a = G(() => Promise.resolve().then(() => el)), c = G(() => Promise.resolve().then(() => ro)), M = G(() => import("./chevron-down-CzMH-gFW.mjs")), S = G(() => import("./no-symbol-QAqP9IlR.mjs")), w = Le(), o = v, N = y, _ = K(!1), z = K(), E = d(
440
+ const a = Z(() => Promise.resolve().then(() => el)), c = Z(() => Promise.resolve().then(() => ro)), M = Z(() => import("./chevron-down-CzMH-gFW.mjs")), S = Z(() => import("./no-symbol-QAqP9IlR.mjs")), w = Le(), o = v, N = y, _ = K(!1), z = K(), E = d(
441
441
  () => ["black", "transparent", "white"].includes(o.color)
442
442
  ), B = d(
443
443
  () => E.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
@@ -472,7 +472,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
472
472
  return [];
473
473
  for (const r of o.options)
474
474
  typeof r == "string" || typeof r == "number" || typeof r == "boolean" ? e.push(q(r)) : "options" in r && Array.isArray(r.options) ? e.push(
475
- { label: r.label },
475
+ { label: r.label, isOptGroup: !0 },
476
476
  ...r.options.map(
477
477
  (p) => typeof p == "string" || typeof p == "number" || typeof p == "boolean" ? q(p) : b(p)
478
478
  )
@@ -496,16 +496,19 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
496
496
  )) ?? !1) && !R(e[o.optionValueKey]);
497
497
  }
498
498
  const pe = d(() => {
499
- var e, n;
500
- return o.multiple && o.modelValue && Array.isArray(o.modelValue) ? o.modelValue.map(
501
- (r) => {
502
- var p, P;
503
- return (P = (p = X.value) == null ? void 0 : p.find((W) => W[o.optionValueKey] === r)) == null ? void 0 : P[o.optionInputValueKey];
504
- }
505
- ).join(", ") : (n = (e = X.value) == null ? void 0 : e.find(
506
- (r) => o.modelValue && r[o.optionValueKey] === o.modelValue
507
- )) == null ? void 0 : n[o.optionInputValueKey];
508
- }), Y = d(
499
+ var n;
500
+ if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
501
+ return o.modelValue.map(
502
+ (r) => {
503
+ var p, P;
504
+ return (P = (p = X.value) == null ? void 0 : p.find((W) => W[o.optionValueKey] === r)) == null ? void 0 : P[o.optionInputValueKey];
505
+ }
506
+ ).join(", ");
507
+ const e = (n = X.value) == null ? void 0 : n.find(
508
+ (r) => r[o.optionValueKey] === o.modelValue
509
+ );
510
+ return R(o.modelValue) || e == null ? void 0 : e[o.optionInputValueKey];
511
+ }), G = d(
509
512
  () => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
510
513
  ), ee = K(""), t = K("");
511
514
  function F(e) {
@@ -521,7 +524,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
521
524
  return D(p, e) || D(P, e) || D(W, e);
522
525
  }) : X.value;
523
526
  }
524
- const Q = d(() => ye(ee.value)), Z = async (e) => {
527
+ const Q = d(() => ye(ee.value)), Y = async (e) => {
525
528
  var n;
526
529
  if (e && ("relatedTarget" in e && ((n = re.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
527
530
  return e.preventDefault();
@@ -534,7 +537,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
534
537
  (n = ((e = U.value) == null ? void 0 : e.$el).querySelector("input")) == null || n.focus();
535
538
  }
536
539
  function ze(e) {
537
- _.value ? Z(e) : ge();
540
+ _.value ? Y(e) : ge();
538
541
  }
539
542
  function Ie(e) {
540
543
  var n, r;
@@ -555,7 +558,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
555
558
  /^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), j(e), o.search ? Ie(n) : Se(n)) : me(e);
556
559
  }, me = (e) => {
557
560
  const n = e.code, r = ["ArrowUp", "ArrowDown"].includes(n), p = ["Enter", "Space"].includes(n), P = n === "Escape" && m.value;
558
- r ? l(e, z.value) : p ? g(e, z.value) : P && Z();
561
+ r ? l(e, z.value) : p ? g(e, z.value) : P && Y();
559
562
  }, l = (e, n) => {
560
563
  var P;
561
564
  e.preventDefault();
@@ -590,7 +593,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
590
593
  }
591
594
  const O = (e, n = !0) => {
592
595
  var W;
593
- n && !o.multiple && Be(() => Z()), ee.value = "";
596
+ n && !o.multiple && Be(() => Y()), ee.value = "";
594
597
  const r = (W = te.value) == null ? void 0 : W.some(
595
598
  (ue) => ue[o.optionValueKey] === e[o.optionValueKey]
596
599
  );
@@ -608,7 +611,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
608
611
  ref: re,
609
612
  class: V(["m-select", [{ "--is-open": m.value, "--disabled": e.disabled }, o.class, `--${e.size}`]]),
610
613
  style: se(e.style),
611
- onBlurCapture: Z
614
+ onBlurCapture: Y
612
615
  },
613
616
  [
614
617
  C(Ke, Te({
@@ -643,7 +646,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
643
646
  _: 1
644
647
  /* STABLE */
645
648
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "disabled"]),
646
- C(eo, { name: Y.value }, {
649
+ C(eo, { name: G.value }, {
647
650
  default: T(() => [
648
651
  m.value ? (s(), h(
649
652
  "div",
@@ -701,7 +704,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
701
704
  @slot Custom optgroup label
702
705
  @binding {String} label - the label of the optgroup
703
706
  `),
704
- r.label && R(r[e.optionValueKey]) ? k(e.$slots, "optgroup", {
707
+ r.label && r.isOptGroup ? k(e.$slots, "optgroup", {
705
708
  key: 0,
706
709
  label: r.label
707
710
  }, () => [
@@ -772,7 +775,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
772
775
  /* CLASS, STYLE, NEED_HYDRATION */
773
776
  ));
774
777
  }
775
- }), Fe = /* @__PURE__ */ le(To, [["__scopeId", "data-v-48c93d79"]]), Oo = /* @__PURE__ */ oe({
778
+ }), Fe = /* @__PURE__ */ le(To, [["__scopeId", "data-v-6be8854d"]]), Oo = /* @__PURE__ */ oe({
776
779
  __name: "MazBtn",
777
780
  props: {
778
781
  variant: { default: "button" },
@@ -797,7 +800,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
797
800
  contentClass: { default: void 0 }
798
801
  },
799
802
  setup(v) {
800
- const y = G(() => import("./MazSpinner-DtdabLA2.mjs")), a = G(() => import("./MazIcon-pcOKJiIX.mjs")), { href: c, to: M } = oo(), S = Pe(), w = v;
803
+ const y = Z(() => import("./MazSpinner-BwOdmgr3.mjs")), a = Z(() => import("./MazIcon-BHpbiW6o.mjs")), { href: c, to: M } = oo(), S = Pe(), w = v;
801
804
  Oe(() => {
802
805
  w.icon && !w.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
803
806
  });
@@ -1006,7 +1009,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
1006
1009
  height: "1em",
1007
1010
  fill: "none",
1008
1011
  viewBox: "0 0 24 24"
1009
- }, Yo = /* @__PURE__ */ I(
1012
+ }, Go = /* @__PURE__ */ I(
1010
1013
  "path",
1011
1014
  {
1012
1015
  stroke: "currentColor",
@@ -1018,13 +1021,13 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
1018
1021
  null,
1019
1022
  -1
1020
1023
  /* HOISTED */
1021
- ), Zo = [
1022
- Yo
1024
+ ), Yo = [
1025
+ Go
1023
1026
  ];
1024
1027
  function Qe(v, y) {
1025
- return s(), h("svg", Wo, [...Zo]);
1028
+ return s(), h("svg", Wo, [...Yo]);
1026
1029
  }
1027
- const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1030
+ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1028
1031
  __proto__: null,
1029
1032
  default: We,
1030
1033
  render: Qe
@@ -1137,7 +1140,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1137
1140
  }), Me = /* @__PURE__ */ le(xo, [["__scopeId", "data-v-41945bef"]]), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1138
1141
  __proto__: null,
1139
1142
  default: Me
1140
- }, Symbol.toStringTag, { value: "Module" })), Ye = (v) => (He("data-v-6799f047"), v = v(), qe(), v), ol = {
1143
+ }, Symbol.toStringTag, { value: "Module" })), Ge = (v) => (He("data-v-6799f047"), v = v(), qe(), v), ol = {
1141
1144
  key: 0,
1142
1145
  class: "m-table-header"
1143
1146
  }, ll = { class: "m-table-spacer" }, tl = { class: "m-table-header-title" }, al = {
@@ -1149,7 +1152,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1149
1152
  }, il = { class: "maz-text-center maz-text-muted" }, ul = {
1150
1153
  key: 1,
1151
1154
  class: "m-table-footer"
1152
- }, dl = /* @__PURE__ */ Ye(() => /* @__PURE__ */ I(
1155
+ }, dl = /* @__PURE__ */ Ge(() => /* @__PURE__ */ I(
1153
1156
  "div",
1154
1157
  { class: "m-table-spacer" },
1155
1158
  null,
@@ -1158,7 +1161,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1158
1161
  )), cl = {
1159
1162
  key: 0,
1160
1163
  class: "m-table-footer-pagination"
1161
- }, pl = { class: "m-table-footer-pagination-items-per-page" }, fl = /* @__PURE__ */ Ye(() => /* @__PURE__ */ I(
1164
+ }, pl = { class: "m-table-footer-pagination-items-per-page" }, fl = /* @__PURE__ */ Ge(() => /* @__PURE__ */ I(
1162
1165
  "span",
1163
1166
  { class: "maz-hidden maz-text-sm maz-text-muted tab-s:maz-block" },
1164
1167
  " Item per page ",
@@ -1303,9 +1306,9 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1303
1306
  });
1304
1307
  function ne(l) {
1305
1308
  return [...l].sort((g, u) => {
1306
- if (Z.value === void 0 || j.value === void 0)
1309
+ if (Y.value === void 0 || j.value === void 0)
1307
1310
  return 0;
1308
- const A = g[D.value[Z.value].key], O = u[D.value[Z.value].key];
1311
+ const A = g[D.value[Y.value].key], O = u[D.value[Y.value].key];
1309
1312
  return typeof A == "string" && typeof O == "string" ? j.value === "ASC" ? A.localeCompare(O) : O.localeCompare(A) : j.value === "ASC" ? A - O : O - A;
1310
1313
  });
1311
1314
  }
@@ -1315,7 +1318,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1315
1318
  const g = R.value.toLowerCase();
1316
1319
  return [...l].filter((u) => U.value ? String(u[U.value]).toLowerCase().includes(g) : Object.values(u).some((A) => typeof A == "string" || typeof A == "number" || typeof A == "boolean" ? String(A).toLowerCase().includes(g) : !1));
1317
1320
  }
1318
- const Y = d(() => {
1321
+ const G = d(() => {
1319
1322
  const l = pe(re.value);
1320
1323
  return ne(l);
1321
1324
  }), ee = Pe(), t = d(() => a.search || !!a.title || !!ee.title), F = d(() => a.pagination), D = K(ye());
@@ -1335,21 +1338,21 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1335
1338
  };
1336
1339
  })) ?? [];
1337
1340
  }
1338
- const Z = K(), j = K();
1341
+ const Y = K(), j = K();
1339
1342
  function ge(l) {
1340
- l === Z.value ? j.value = j.value === void 0 ? "DESC" : j.value === "DESC" ? "ASC" : void 0 : j.value = "DESC", Z.value = j.value === void 0 ? void 0 : l;
1343
+ l === Y.value ? j.value = j.value === void 0 ? "DESC" : j.value === "DESC" ? "ASC" : void 0 : j.value = "DESC", Y.value = j.value === void 0 ? void 0 : l;
1341
1344
  }
1342
1345
  const ze = d({
1343
- get: () => Y.value.every((l) => l.selected) ?? !1,
1346
+ get: () => G.value.every((l) => l.selected) ?? !1,
1344
1347
  set: Ie
1345
1348
  });
1346
1349
  function Ie(l) {
1347
- for (const g of Y.value)
1350
+ for (const g of G.value)
1348
1351
  g.selected = l;
1349
1352
  fe();
1350
1353
  }
1351
1354
  function Se(l, g) {
1352
- Y.value[g].selected = l, fe();
1355
+ G.value[g].selected = l, fe();
1353
1356
  }
1354
1357
  function fe(l) {
1355
1358
  l = l ?? me();
@@ -1357,7 +1360,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1357
1360
  M("update:model-value", g);
1358
1361
  }
1359
1362
  function me() {
1360
- return Y.value.filter((l) => l.selected).map((l) => a.selectedKey ? l[a.selectedKey] : l);
1363
+ return G.value.filter((l) => l.selected).map((l) => a.selectedKey ? l[a.selectedKey] : l);
1361
1364
  }
1362
1365
  return Oe(() => {
1363
1366
  const l = me();
@@ -1494,7 +1497,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1494
1497
  u.sortable ?? l.sortable ? (s(), h("div", rl, [
1495
1498
  C(f(fo), {
1496
1499
  class: V(["m-table-sort-icon maz-hidden group-hover:maz-block", {
1497
- "--sorted": A === Z.value,
1500
+ "--sorted": A === Y.value,
1498
1501
  "--up": j.value === "DESC",
1499
1502
  "--down": j.value === "ASC"
1500
1503
  }])
@@ -1546,10 +1549,10 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1546
1549
  },
1547
1550
  [
1548
1551
  k(l.$slots, "default", {}, () => [
1549
- Y.value.length > 0 ? (s(!0), h(
1552
+ G.value.length > 0 ? (s(!0), h(
1550
1553
  he,
1551
1554
  { key: 0 },
1552
- we(Y.value, (u, A) => (s(), $(_e, {
1555
+ we(G.value, (u, A) => (s(), $(_e, {
1553
1556
  key: A,
1554
1557
  class: V(u.classes),
1555
1558
  onClick: (O) => u.action && u.action(u)
@@ -1697,7 +1700,7 @@ const We = { render: Qe }, Go = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1697
1700
  L.value ? (s(), h(
1698
1701
  "span",
1699
1702
  ml,
1700
- x(B.value) + " - " + x(Y.value.length) + " of " + x(L.value),
1703
+ x(B.value) + " - " + x(G.value.length) + " of " + x(L.value),
1701
1704
  1
1702
1705
  /* TEXT */
1703
1706
  )) : i("v-if", !0),
package/nuxt/index.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.36.0"
7
+ "version": "3.36.2"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.36.0",
3
+ "version": "3.36.2",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",
@@ -104,16 +104,16 @@
104
104
  "@babel/core": "^7.24.0",
105
105
  "@babel/preset-env": "^7.24.0",
106
106
  "@babel/preset-typescript": "^7.23.3",
107
- "@nuxt/kit": "^3.10.3",
108
- "@nuxt/schema": "^3.10.3",
107
+ "@nuxt/kit": "^3.11.0",
108
+ "@nuxt/schema": "^3.11.0",
109
109
  "@types/dropzone": "^5.7.8",
110
110
  "@types/google.maps": "^3.55.4",
111
111
  "@vitejs/plugin-vue": "^5.0.4",
112
- "@vitest/coverage-v8": "^1.3.1",
112
+ "@vitest/coverage-v8": "^1.4.0",
113
113
  "@vue/compiler-sfc": "^3.4.21",
114
114
  "@vue/eslint-config-prettier": "^9.0.0",
115
115
  "@vue/eslint-config-typescript": "^13.0.0",
116
- "@vue/test-utils": "^2.4.4",
116
+ "@vue/test-utils": "^2.4.5",
117
117
  "@vue/tsconfig": "^0.5.1",
118
118
  "autoprefixer": "^10.4.18",
119
119
  "c8": "^9.1.0",
@@ -129,10 +129,10 @@
129
129
  "json-templater": "^1.2.0",
130
130
  "libphonenumber-js": "^1.10.58",
131
131
  "minimist": "^1.2.8",
132
- "nuxt": "^3.10.3",
132
+ "nuxt": "^3.11.0",
133
133
  "onchange": "^7.1.0",
134
134
  "path": "^0.12.7",
135
- "postcss": "^8.4.35",
135
+ "postcss": "^8.4.36",
136
136
  "postcss-html": "^1.6.0",
137
137
  "postcss-import": "^16.0.1",
138
138
  "postcss-nested": "^6.0.0",
@@ -141,7 +141,7 @@
141
141
  "prettier-plugin-tailwindcss": "^0.5.12",
142
142
  "replace-in-file": "^7.1.0",
143
143
  "rimraf": "^5.0.5",
144
- "sass": "^1.71.1",
144
+ "sass": "^1.72.0",
145
145
  "semver": "^7.6.0",
146
146
  "sirv": "^2.0.4",
147
147
  "stylelint": "^16.2.1",
@@ -156,7 +156,7 @@
156
156
  "vite-plugin-lib-inject-css": "^2.0.0",
157
157
  "vite-plugin-static-copy": "^1.0.1",
158
158
  "vite-svg-loader": "^5.1.0",
159
- "vitest": "^1.3.1",
159
+ "vitest": "^1.4.0",
160
160
  "vitest-canvas-mock": "^0.3.3",
161
161
  "vue": "^3.4.21",
162
162
  "vue-chartjs": "^5.3.0",
@@ -1,5 +1,5 @@
1
1
  import { type Color, type Size, type Props as MazBtnProps } from './MazBtn.vue';
2
- export type Props = {
2
+ type MazPagnationProps = {
3
3
  /** @model The current page number. */
4
4
  modelValue?: number;
5
5
  /**
@@ -31,7 +31,8 @@ export type Props = {
31
31
  */
32
32
  loading?: boolean;
33
33
  };
34
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
34
+ export type { MazPagnationProps as Props };
35
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<MazPagnationProps>, {
35
36
  modelValue: number;
36
37
  buttonProps: undefined;
37
38
  pageRange: number;
@@ -40,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
40
41
  size: string;
41
42
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
43
  "update:model-value": (value: number) => void;
43
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
44
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<MazPagnationProps>, {
44
45
  modelValue: number;
45
46
  buttonProps: undefined;
46
47
  pageRange: number;