maz-ui 3.46.1-beta.3 → 3.46.1-beta.5

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 (159) hide show
  1. package/components/MazAccordion.d.ts +1 -1
  2. package/components/MazAvatar.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.d.ts +0 -4
  5. package/components/MazBtn.mjs +1 -1
  6. package/components/MazCard.mjs +1 -1
  7. package/components/MazCardSpotlight.d.ts +1 -1
  8. package/components/MazCarousel.mjs +1 -1
  9. package/components/MazCheckbox.mjs +61 -61
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.mjs +1 -1
  12. package/components/MazDrawer.mjs +1 -1
  13. package/components/MazDropdown.d.ts +13 -0
  14. package/components/MazDropdown.mjs +115 -107
  15. package/components/MazIcon.mjs +55 -67
  16. package/components/MazInput.mjs +1 -1
  17. package/components/MazInputNumber.mjs +1 -1
  18. package/components/MazInputPrice.mjs +1 -1
  19. package/components/MazInputTags.mjs +1 -1
  20. package/components/MazLazyImg.d.ts +2 -0
  21. package/components/MazLazyImg.mjs +1 -1
  22. package/components/MazLink.mjs +1 -1
  23. package/components/MazPagination.mjs +1 -1
  24. package/components/MazPhoneNumberInput.d.ts +2 -2
  25. package/components/MazPhoneNumberInput.mjs +1 -1
  26. package/components/MazPicker.mjs +1 -1
  27. package/components/MazSelect.d.ts +4 -0
  28. package/components/MazSelect.mjs +1 -1
  29. package/components/MazStepper.mjs +1 -1
  30. package/components/MazSwitch.mjs +33 -33
  31. package/components/MazTable.d.ts +32 -3
  32. package/components/MazTable.mjs +1 -1
  33. package/components/assets/MazBtn.css +1 -1
  34. package/components/assets/MazCheckbox.css +1 -1
  35. package/components/assets/MazDropdown.css +1 -1
  36. package/components/assets/MazInputNumber.css +1 -1
  37. package/components/assets/MazInputTags.css +1 -1
  38. package/components/assets/MazLazyImg.css +1 -1
  39. package/components/assets/MazPagination.css +1 -1
  40. package/components/assets/MazPhoneNumberInput.css +1 -1
  41. package/components/assets/MazPicker.css +1 -1
  42. package/components/assets/MazSelect.css +1 -1
  43. package/components/assets/MazSwitch.css +1 -1
  44. package/components/assets/MazTable.css +1 -1
  45. package/components/chunks/{MazAvatar-BXZpFUaZ.mjs → MazAvatar-BmaVqPui.mjs} +1 -1
  46. package/components/chunks/{MazBottomSheet-DQTlEDlz.mjs → MazBottomSheet-s9lLaK1M.mjs} +1 -1
  47. package/components/chunks/MazBtn-BMmuCciQ.mjs +116 -0
  48. package/components/chunks/MazBtn-BXdap6JU.mjs +116 -0
  49. package/components/chunks/MazBtn-CHABo63Y.mjs +116 -0
  50. package/components/chunks/MazBtn-CVB5qDjV.mjs +121 -0
  51. package/components/chunks/MazBtn-CXxOU7fp.mjs +116 -0
  52. package/components/chunks/MazBtn-CZSXnr3w.mjs +116 -0
  53. package/components/chunks/MazBtn-CwYBz6QO.mjs +116 -0
  54. package/components/chunks/MazBtn-DIE2eM-g.mjs +116 -0
  55. package/components/chunks/MazBtn-DKD-ZMaF.mjs +116 -0
  56. package/components/chunks/MazBtn-DarjZUV4.mjs +124 -0
  57. package/components/chunks/MazBtn-OKT5-Y4s.mjs +116 -0
  58. package/components/chunks/MazBtn-e3abHT2L.mjs +116 -0
  59. package/components/chunks/{MazCard-BapktHxt.mjs → MazCard-BaJ5Ee3I.mjs} +1 -1
  60. package/components/chunks/{MazCarousel-DYdWCLk7.mjs → MazCarousel-Bb4fpVqN.mjs} +1 -1
  61. package/components/chunks/{MazCheckbox-SCDhMssn.mjs → MazCheckbox-8n6NtRBb.mjs} +32 -32
  62. package/components/chunks/{MazCheckbox-q5o-NFLo.mjs → MazCheckbox-C4diNXJq.mjs} +32 -32
  63. package/components/chunks/{MazDialog-DbEp5ZrT.mjs → MazDialog-Bv2PzQBz.mjs} +1 -1
  64. package/components/chunks/{MazDialogPromise-B2WdAwbv.mjs → MazDialogPromise-BZLP9sXZ.mjs} +2 -2
  65. package/components/chunks/{MazExpandAnimation-BFyvL-vh.mjs → MazExpandAnimation-Bkw_wFTi.mjs} +1 -1
  66. package/components/chunks/{MazGallery-HtChfMa_.mjs → MazGallery-C9secrXc.mjs} +2 -2
  67. package/components/chunks/MazIcon-BaJm2s8_.mjs +101 -0
  68. package/components/chunks/MazIcon-BbvBov5G.mjs +106 -0
  69. package/components/chunks/MazIcon-CudB1a0D.mjs +101 -0
  70. package/components/chunks/{MazInput-fbdOvhry.mjs → MazInput-B3RzuuNv.mjs} +1 -1
  71. package/components/chunks/{MazInputNumber-mu9wEfTT.mjs → MazInputNumber-mLgq5obR.mjs} +198 -232
  72. package/components/chunks/{MazInputPrice-Y6lalrWq.mjs → MazInputPrice-DhYRBqTS.mjs} +1 -1
  73. package/components/chunks/{MazInputTags-DVYW4SbE.mjs → MazInputTags-DinwbXaD.mjs} +201 -238
  74. package/components/chunks/{MazLazyImg-D2seDVoC.mjs → MazLazyImg-RHZ9wOy2.mjs} +7 -5
  75. package/components/chunks/{MazLazyImg-Db6BYACF.mjs → MazLazyImg-i-z6hcwF.mjs} +10 -8
  76. package/components/chunks/{MazLink-HJI1YmdA.mjs → MazLink-Dl9ePCGm.mjs} +1 -1
  77. package/components/chunks/MazPagination-Cqnr19iI.mjs +360 -0
  78. package/components/chunks/MazPhoneNumberInput-C3GdtqN2.mjs +1821 -0
  79. package/components/chunks/{MazPicker-BPH4sy2Q.mjs → MazPicker-DA92HhwS.mjs} +541 -575
  80. package/components/chunks/{MazPickerMonthSwitcher-Ca4BqrF-.mjs → MazPickerMonthSwitcher-CPWkw0Hq.mjs} +1 -1
  81. package/components/chunks/{MazPickerShortcuts-Bs2RMdC_.mjs → MazPickerShortcuts-Fwcoqg5M.mjs} +1 -1
  82. package/components/chunks/{MazPickerYearSwitcher-Bg_0ecwk.mjs → MazPickerYearSwitcher-DfSXPGfT.mjs} +1 -1
  83. package/components/chunks/{MazSelect-BTrnZLF5.mjs → MazSelect-DPTuyc26.mjs} +133 -129
  84. package/components/chunks/{MazSpinner-BAHWcgal.mjs → MazSpinner-5w4SkOOl.mjs} +1 -1
  85. package/components/chunks/MazSpinner-B-mc1FWS.mjs +37 -0
  86. package/components/chunks/{MazSpinner-CLfp6QHS.mjs → MazSpinner-BCHAzmqS.mjs} +1 -1
  87. package/components/chunks/{MazSpinner-2KA4ECS_.mjs → MazSpinner-BCQzF6j-.mjs} +1 -1
  88. package/components/chunks/MazSpinner-BEqvmPiV.mjs +37 -0
  89. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +37 -0
  90. package/components/chunks/MazSpinner-BpjK60ul.mjs +37 -0
  91. package/components/chunks/MazSpinner-ByWRmwig.mjs +37 -0
  92. package/components/chunks/{MazSpinner-BhFMGOGc.mjs → MazSpinner-C2ok6AlJ.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-38KAnd2e.mjs → MazSpinner-CFJmcsGl.mjs} +1 -1
  94. package/components/chunks/{MazSpinner-D9K-TsT7.mjs → MazSpinner-CVBz5HIx.mjs} +1 -1
  95. package/components/chunks/{MazSpinner-CShEq13p.mjs → MazSpinner-DEdQlQr1.mjs} +1 -1
  96. package/components/chunks/{MazSpinner-AyzqowuD.mjs → MazSpinner-DhHVVBJE.mjs} +1 -1
  97. package/components/chunks/MazSpinner-DuGaC-cw.mjs +37 -0
  98. package/components/chunks/MazSpinner-Iwon82He.mjs +37 -0
  99. package/components/chunks/MazSpinner-JbfjMNFL.mjs +37 -0
  100. package/components/chunks/MazSpinner-QgcgF5j5.mjs +37 -0
  101. package/components/chunks/MazSpinner-yQGVxaFm.mjs +37 -0
  102. package/components/chunks/{MazStepper-BmCk5RfP.mjs → MazStepper-DRWtYHZR.mjs} +1 -1
  103. package/components/chunks/MazTable-CrtVI-dp.mjs +2015 -0
  104. package/components/chunks/{MazTransitionExpand-D9pcEmUk.mjs → MazTransitionExpand-BoTQeNNf.mjs} +1 -1
  105. package/css/main.css +1 -1
  106. package/modules/assets/MazBtn.css +1 -1
  107. package/modules/chunks/MazBtn-BG2dUdHV.cjs +9 -0
  108. package/modules/chunks/MazBtn-BeqYSSYI.mjs +116 -0
  109. package/modules/chunks/MazIcon-BqfELHOt.mjs +101 -0
  110. package/modules/chunks/MazIcon-RkWxQ8JM.cjs +1 -0
  111. package/modules/chunks/{MazSpinner-g6fliUmS.mjs → MazSpinner-DgSRxVEo.mjs} +1 -1
  112. package/modules/chunks/{MazSpinner-zX9CPyJB.cjs → MazSpinner-GfL807jq.cjs} +1 -1
  113. package/modules/chunks/{index-BLdtEKD5.cjs → index-CE2CsQsx.cjs} +4 -4
  114. package/modules/chunks/{index-Bpj_Jr6I.mjs → index-aKGx1nxl.mjs} +4 -4
  115. package/modules/index.cjs +1 -1
  116. package/modules/index.mjs +1 -1
  117. package/nuxt/index.json +1 -1
  118. package/package.json +1 -1
  119. package/types/components/MazAccordion.vue.d.ts +1 -1
  120. package/types/components/MazBtn.vue.d.ts +0 -4
  121. package/types/components/MazCardSpotlight.vue.d.ts +1 -1
  122. package/types/components/MazDropdown.vue.d.ts +13 -0
  123. package/types/components/MazLazyImg.vue.d.ts +2 -0
  124. package/types/components/MazPhoneNumberInput.vue.d.ts +2 -2
  125. package/types/components/MazSelect.vue.d.ts +4 -0
  126. package/types/components/MazTable.vue.d.ts +32 -3
  127. package/types/modules/helpers/country-flag-from-flagcn.d.ts +7 -0
  128. package/components/chunks/MazBtn-6D9MhUfI.mjs +0 -150
  129. package/components/chunks/MazBtn-B2A4nNWi.mjs +0 -150
  130. package/components/chunks/MazBtn-B9mpn5c4.mjs +0 -150
  131. package/components/chunks/MazBtn-BTxqbijR.mjs +0 -158
  132. package/components/chunks/MazBtn-BYAmxCNV.mjs +0 -150
  133. package/components/chunks/MazBtn-BkBaNYfi.mjs +0 -150
  134. package/components/chunks/MazBtn-BkT-9nbu.mjs +0 -150
  135. package/components/chunks/MazBtn-C6b9OPzf.mjs +0 -150
  136. package/components/chunks/MazBtn-CTDhJ_fQ.mjs +0 -155
  137. package/components/chunks/MazBtn-CofOhh-q.mjs +0 -150
  138. package/components/chunks/MazBtn-CwkvhgML.mjs +0 -150
  139. package/components/chunks/MazBtn-DgmsRNq_.mjs +0 -150
  140. package/components/chunks/MazIcon-BDGxCy9M.mjs +0 -118
  141. package/components/chunks/MazIcon-BW5X0uLg.mjs +0 -113
  142. package/components/chunks/MazIcon-DiRrHbn4.mjs +0 -113
  143. package/components/chunks/MazPagination-BOUDMaJO.mjs +0 -394
  144. package/components/chunks/MazPhoneNumberInput-DjWHMKpM.mjs +0 -1579
  145. package/components/chunks/MazSpinner-BLp7sE5i.mjs +0 -37
  146. package/components/chunks/MazSpinner-C91Lm_Xp.mjs +0 -37
  147. package/components/chunks/MazSpinner-CCIMQLA1.mjs +0 -37
  148. package/components/chunks/MazSpinner-CLQy7iCO.mjs +0 -37
  149. package/components/chunks/MazSpinner-D7CMPaDb.mjs +0 -37
  150. package/components/chunks/MazSpinner-D8uk4SQh.mjs +0 -37
  151. package/components/chunks/MazSpinner-D_Xqx8Vb.mjs +0 -37
  152. package/components/chunks/MazSpinner-JgB1pud8.mjs +0 -37
  153. package/components/chunks/MazSpinner-gYRmfrSM.mjs +0 -37
  154. package/components/chunks/MazSpinner-hPbKGN5o.mjs +0 -37
  155. package/components/chunks/MazTable-DsZV0t--.mjs +0 -1999
  156. package/modules/chunks/MazBtn-B5URGSZl.cjs +0 -9
  157. package/modules/chunks/MazBtn-DRuL8cjg.mjs +0 -150
  158. package/modules/chunks/MazIcon-BskR2yy9.cjs +0 -1
  159. package/modules/chunks/MazIcon-CKc-vAA8.mjs +0 -113
@@ -2,7 +2,7 @@ import '../assets/MazLazyImg.css';var v = Object.defineProperty;
2
2
  var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
3
3
  var n = (a, e, s) => f(a, typeof e != "symbol" ? e + "" : e, s);
4
4
  import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as C, normalizeStyle as y, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
5
- import { _ as k } from "./MazAvatar-BXZpFUaZ.mjs";
5
+ import { _ as k } from "./MazAvatar-BmaVqPui.mjs";
6
6
  const H = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", w = {
7
7
  baseClass: "m-lazy-img",
8
8
  loadedClass: "m-lazy-loaded",
@@ -200,11 +200,12 @@ const M = {
200
200
  loadOnce: { type: Boolean },
201
201
  imageHeightFull: { type: Boolean },
202
202
  observerOptions: { default: void 0 },
203
- fallbackSrc: { default: void 0 }
203
+ fallbackSrc: { default: void 0 },
204
+ imgClass: {}
204
205
  },
205
206
  emits: ["intersecting", "loading", "loaded", "error"],
206
207
  setup(a) {
207
- const e = a, s = b(() => import("./MazSpinner-gYRmfrSM.mjs")), t = m(() => e.image || e.src), r = m(() => {
208
+ const e = a, s = b(() => import("./MazSpinner-5w4SkOOl.mjs")), t = m(() => e.image || e.src), r = m(() => {
208
209
  var o;
209
210
  return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
210
211
  });
@@ -229,7 +230,8 @@ const M = {
229
230
  L("img", P(o.$attrs, {
230
231
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
231
232
  loading: "lazy",
232
- alt: o.alt
233
+ alt: o.alt,
234
+ class: o.imgClass
233
235
  }), null, 16, D),
234
236
  o.noLoader ? z("v-if", !0) : (d(), c("div", $, [
235
237
  S(g(s), { size: "2em" })
@@ -252,7 +254,7 @@ const M = {
252
254
  }]
253
255
  ]);
254
256
  }
255
- }), q = /* @__PURE__ */ k(N, [["__scopeId", "data-v-1003b940"]]);
257
+ }), q = /* @__PURE__ */ k(N, [["__scopeId", "data-v-f94782ce"]]);
256
258
  export {
257
259
  q as default
258
260
  };
@@ -1,7 +1,7 @@
1
1
  import '../assets/MazLazyImg.css';var v = Object.defineProperty;
2
2
  var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
3
3
  var n = (a, e, s) => f(a, typeof e != "symbol" ? e + "" : e, s);
4
- import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as y, normalizeStyle as C, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
4
+ import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as C, normalizeStyle as y, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
5
5
  const k = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", H = {
6
6
  baseClass: "m-lazy-img",
7
7
  loadedClass: "m-lazy-loaded",
@@ -199,19 +199,20 @@ const M = {
199
199
  loadOnce: { type: Boolean },
200
200
  imageHeightFull: { type: Boolean },
201
201
  observerOptions: { default: void 0 },
202
- fallbackSrc: { default: void 0 }
202
+ fallbackSrc: { default: void 0 },
203
+ imgClass: {}
203
204
  },
204
205
  emits: ["intersecting", "loading", "loaded", "error"],
205
206
  setup(a) {
206
- const e = a, s = b(() => import("./MazSpinner-D_Xqx8Vb.mjs")), t = m(() => e.image || e.src), r = m(() => {
207
+ const e = a, s = b(() => import("./MazSpinner-ByWRmwig.mjs")), t = m(() => e.image || e.src), r = m(() => {
207
208
  var o;
208
209
  return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
209
210
  });
210
211
  return (o, l) => I((d(), c(
211
212
  "picture",
212
213
  {
213
- class: y(["m-lazy-img-component", [{ "--use-loader": !o.noLoader, "--height-full": o.imageHeightFull }, e.class]]),
214
- style: C(o.style)
214
+ class: C(["m-lazy-img-component", [{ "--use-loader": !o.noLoader, "--height-full": o.imageHeightFull }, e.class]]),
215
+ style: y(o.style)
215
216
  },
216
217
  [
217
218
  (d(!0), c(
@@ -228,7 +229,8 @@ const M = {
228
229
  L("img", P(o.$attrs, {
229
230
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
230
231
  loading: "lazy",
231
- alt: o.alt
232
+ alt: o.alt,
233
+ class: o.imgClass
232
234
  }), null, 16, T),
233
235
  o.noLoader ? z("v-if", !0) : (d(), c("div", D, [
234
236
  S(g(s), { size: "2em" })
@@ -256,8 +258,8 @@ const M = {
256
258
  for (const [t, r] of e)
257
259
  s[t] = r;
258
260
  return s;
259
- }, R = /* @__PURE__ */ N($, [["__scopeId", "data-v-1003b940"]]);
261
+ }, V = /* @__PURE__ */ N($, [["__scopeId", "data-v-f94782ce"]]);
260
262
  export {
261
- R as M,
263
+ V as M,
262
264
  N as _
263
265
  };
@@ -21,7 +21,7 @@ import '../assets/MazLink.css';const y = /* @__PURE__ */ u({
21
21
  setup(c) {
22
22
  const f = d(
23
23
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
24
- ), i = d(() => import("./MazIcon-BDGxCy9M.mjs"));
24
+ ), i = d(() => import("./MazIcon-BbvBov5G.mjs"));
25
25
  return (e, g) => (o(), n(r(e.to ? "router-link" : "a"), s({
26
26
  id: e.id,
27
27
  class: ["m-link", [
@@ -0,0 +1,360 @@
1
+ import { defineComponent as q, defineAsyncComponent as T, useAttrs as H, useSlots as J, computed as l, openBlock as i, createBlock as f, resolveDynamicComponent as O, normalizeClass as y, withCtx as C, createCommentVNode as s, renderSlot as p, unref as v, createElementBlock as N, createVNode as g, createElementVNode as d, mergeProps as k, createTextVNode as V, toDisplayString as B, Fragment as K, renderList as Q } from "vue";
2
+ import '../assets/MazPagination.css';const W = {
3
+ key: 2,
4
+ class: "m-btn-loader-container"
5
+ }, X = /* @__PURE__ */ q({
6
+ __name: "MazBtn",
7
+ props: {
8
+ variant: { default: "button" },
9
+ size: { default: "md" },
10
+ color: { default: "primary" },
11
+ type: { default: "button" },
12
+ rounded: { type: Boolean },
13
+ roundedSize: { default: "lg" },
14
+ noRounded: { type: Boolean },
15
+ outline: { type: Boolean },
16
+ pastel: { type: Boolean },
17
+ block: { type: Boolean },
18
+ noUnderline: { type: Boolean },
19
+ loading: { type: Boolean },
20
+ disabled: { type: Boolean },
21
+ fab: { type: Boolean },
22
+ icon: { type: [String, Function, Object], default: void 0 },
23
+ leftIcon: { type: [String, Function, Object], default: void 0 },
24
+ rightIcon: { type: [String, Function, Object], default: void 0 },
25
+ noPadding: { type: Boolean },
26
+ noElevation: { type: Boolean }
27
+ },
28
+ setup(P) {
29
+ const o = P, e = T(() => import("./MazSpinner-JbfjMNFL.mjs")), b = T(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: E } = H(), S = J(), I = l(() => h ? "a" : E ? "router-link" : "button"), u = l(
30
+ () => o.pastel ? `--${o.color}-pastel` : o.outline ? `--${o.color}-outline` : `--${o.color}`
31
+ ), c = l(
32
+ () => (o.loading || o.disabled) && I.value === "button"
33
+ ), z = l(() => c.value ? "--cursor-default" : "--cursor-pointer"), R = l(() => `--is-${o.variant}`), D = l(() => o.loading && o.variant === "button"), L = l(() => !!S["left-icon"] || o.leftIcon), F = l(() => !!S["right-icon"] || o.rightIcon), U = l(() => L.value || F.value), j = l(() => o.icon || !!S.icon), w = l(() => I.value === "button" ? o.type : void 0), m = l(() => o.size === "xl" ? "maz-text-3xl" : o.size === "lg" ? "maz-text-2xl" : o.size === "md" ? "maz-text-xl" : o.size === "sm" ? "maz-text-lg" : o.size === "xs" ? "maz-text-base" : o.size === "mini" ? "maz-text-sm" : "md");
34
+ return (a, $) => (i(), f(O(I.value), {
35
+ disabled: c.value || void 0,
36
+ class: y(["m-btn", [
37
+ `--${a.size}`,
38
+ !a.fab && !a.rounded && a.roundedSize && `--rounded-${a.roundedSize}`,
39
+ u.value,
40
+ z.value,
41
+ R.value,
42
+ {
43
+ "--block": a.block,
44
+ "--no-underline": a.noUnderline,
45
+ "--fab": a.fab,
46
+ "--loading": a.loading,
47
+ "--disabled": c.value,
48
+ "--icon": U.value,
49
+ "--rounded": a.rounded,
50
+ "--no-rounded": a.noRounded,
51
+ "--no-padding": a.noPadding,
52
+ "--no-elevation": a.noElevation
53
+ }
54
+ ]]),
55
+ type: w.value
56
+ }, {
57
+ default: C(() => [
58
+ s(`
59
+ @slot left-icon - The icon to display on the left of the button
60
+ `),
61
+ p(a.$slots, "left-icon", {}, () => [
62
+ typeof a.leftIcon == "string" ? (i(), f(v(b), {
63
+ key: 0,
64
+ name: a.leftIcon,
65
+ class: y([m.value])
66
+ }, null, 8, ["name", "class"])) : a.leftIcon ? (i(), f(O(a.leftIcon), {
67
+ key: 1,
68
+ class: y([m.value])
69
+ }, null, 8, ["class"])) : s("v-if", !0)
70
+ ], !0),
71
+ s(`
72
+ @slot icon - The icon to display on the fab button
73
+ `),
74
+ j.value ? p(a.$slots, "icon", { key: 0 }, () => [
75
+ typeof a.icon == "string" ? (i(), f(v(b), {
76
+ key: 0,
77
+ name: a.icon,
78
+ class: y([m.value])
79
+ }, null, 8, ["name", "class"])) : a.icon ? (i(), f(O(a.icon), {
80
+ key: 1,
81
+ class: y([m.value])
82
+ }, null, 8, ["class"])) : s("v-if", !0)
83
+ ], !0) : s("v-if", !0),
84
+ s(`
85
+ @slot default - The content of the button
86
+ `),
87
+ p(a.$slots, "default", {}, void 0, !0),
88
+ s(`
89
+ @slot left-icon - The icon to display on the left of the button
90
+ `),
91
+ F.value ? p(a.$slots, "right-icon", { key: 1 }, () => [
92
+ typeof a.rightIcon == "string" ? (i(), f(v(b), {
93
+ key: 0,
94
+ name: a.rightIcon,
95
+ class: y([m.value])
96
+ }, null, 8, ["name", "class"])) : a.rightIcon ? (i(), f(O(a.rightIcon), {
97
+ key: 1,
98
+ class: y([m.value])
99
+ }, null, 8, ["class"])) : s("v-if", !0)
100
+ ], !0) : s("v-if", !0),
101
+ D.value ? (i(), N("div", W, [
102
+ g(v(e), {
103
+ size: "2em",
104
+ color: a.color
105
+ }, null, 8, ["color"])
106
+ ])) : s("v-if", !0)
107
+ ]),
108
+ _: 3
109
+ /* FORWARDED */
110
+ }, 8, ["disabled", "class", "type"]));
111
+ }
112
+ }), G = (P, o) => {
113
+ const e = P.__vccOpts || P;
114
+ for (const [b, h] of o)
115
+ e[b] = h;
116
+ return e;
117
+ }, A = /* @__PURE__ */ G(X, [["__scopeId", "data-v-8deef21f"]]), Y = {
118
+ class: "m-pagination",
119
+ role: "navigation",
120
+ "aria-label": "page navigation"
121
+ }, Z = { class: "maz-sr-only" }, _ = { class: "maz-sr-only" }, x = ["id"], ee = { class: "maz-sr-only" }, ae = { class: "maz-sr-only" }, te = { class: "maz-sr-only" }, ne = /* @__PURE__ */ q({
122
+ __name: "MazPagination",
123
+ props: {
124
+ modelValue: { default: 1 },
125
+ buttonProps: { default: void 0 },
126
+ resultsSize: { default: void 0 },
127
+ activeColor: { default: "primary" },
128
+ size: { default: "md" },
129
+ totalPages: {},
130
+ pageRange: { default: 2 },
131
+ loading: { type: Boolean }
132
+ },
133
+ emits: ["update:model-value"],
134
+ setup(P, { emit: o }) {
135
+ const e = P, b = o, h = T(() => import("./chevron-left-BqVOLRdC.mjs")), E = T(() => import("./chevron-double-left-D4-NpyrF.mjs")), S = T(() => import("./ellipsis-horizontal-6n158ATI.mjs")), I = {
136
+ size: "md",
137
+ color: "theme",
138
+ outline: !0,
139
+ noElevation: !0,
140
+ fab: !0
141
+ }, u = l(() => ({
142
+ ...I,
143
+ ...e.buttonProps
144
+ })), c = l(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = l(
145
+ () => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
146
+ ), R = l(
147
+ () => Array.from({ length: e.totalPages }, (t, r) => {
148
+ const n = r + 1;
149
+ return {
150
+ number: n,
151
+ isActive: n === e.modelValue,
152
+ loading: n === e.modelValue && e.loading
153
+ };
154
+ })
155
+ ), D = l(
156
+ () => e.modelValue - e.pageRange > 1 ? R.value.slice(0, 1) : []
157
+ ), L = l(
158
+ () => e.modelValue < e.totalPages - e.pageRange ? R.value.slice(-1) : []
159
+ ), F = l(() => e.modelValue - e.pageRange - 1 < 0 ? 0 : e.modelValue - e.pageRange - 1 > e.totalPages - e.pageRange ? e.totalPages - e.pageRange : e.modelValue - e.pageRange - 1), U = l(
160
+ () => e.modelValue + e.pageRange > e.totalPages ? e.totalPages : e.modelValue + e.pageRange < e.pageRange ? e.pageRange : e.modelValue + e.pageRange
161
+ ), j = l(() => R.value.slice(F.value, U.value)), w = l(
162
+ () => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
163
+ ), m = l(
164
+ () => e.modelValue < e.totalPages - e.pageRange - 1 ? [{ divider: !0 }] : []
165
+ ), a = l(() => [
166
+ ...D.value,
167
+ ...w.value,
168
+ ...j.value,
169
+ ...m.value,
170
+ ...L.value
171
+ ]);
172
+ function $(t) {
173
+ t !== e.modelValue && b("update:model-value", t);
174
+ }
175
+ return (t, r) => (i(), N("nav", Y, [
176
+ d("ul", null, [
177
+ d("li", null, [
178
+ g(A, k(u.value, {
179
+ disabled: t.modelValue === 1,
180
+ "aria-label": "First Page, Page 1",
181
+ "aria-setsize": t.resultsSize ?? void 0,
182
+ "aria-posinset": "1",
183
+ size: t.size,
184
+ onClick: r[0] || (r[0] = (n) => $(1))
185
+ }), {
186
+ default: C(() => [
187
+ d("span", Z, [
188
+ s(`
189
+ @slot Accessible text for screen reader of the previous page button
190
+ @binding {number} page - first page number
191
+ `),
192
+ p(t.$slots, "first-page-sr", { page: 1 }, () => [
193
+ r[4] || (r[4] = V("First Page, page 1"))
194
+ ], !0)
195
+ ]),
196
+ g(v(E))
197
+ ]),
198
+ _: 3
199
+ /* FORWARDED */
200
+ }, 16, ["disabled", "aria-setsize", "size"])
201
+ ]),
202
+ d("li", null, [
203
+ g(A, k(u.value, {
204
+ disabled: t.modelValue === 1,
205
+ "aria-label": `Previous Page, Page ${c.value}`,
206
+ "aria-setsize": t.resultsSize ?? void 0,
207
+ "aria-posinset": c.value,
208
+ size: t.size,
209
+ onClick: r[1] || (r[1] = (n) => $(c.value))
210
+ }), {
211
+ default: C(() => [
212
+ d("span", _, [
213
+ s(`
214
+ @slot Accessible text for screen reader of the first page button
215
+ @binding {number} page - previous page number
216
+ `),
217
+ p(t.$slots, "previous-page-sr", { page: c.value }, () => [
218
+ V(
219
+ " Previous Page, page " + B(c.value),
220
+ 1
221
+ /* TEXT */
222
+ )
223
+ ], !0)
224
+ ]),
225
+ g(v(h))
226
+ ]),
227
+ _: 3
228
+ /* FORWARDED */
229
+ }, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
230
+ ]),
231
+ (i(!0), N(
232
+ K,
233
+ null,
234
+ Q(a.value, (n, M) => (i(), N("li", {
235
+ id: "number" in n ? `button-${M}-${n.number}` : `ellipsis-${M}`,
236
+ key: "number" in n ? `button-${M}-${n.number}` : `ellipsis-${M}`
237
+ }, [
238
+ "number" in n ? (i(), f(A, k({
239
+ key: 0,
240
+ ref_for: !0
241
+ }, {
242
+ ...u.value,
243
+ color: n.isActive ? t.activeColor : u.value.color,
244
+ outline: n.isActive ? !1 : u.value.outline
245
+ }, {
246
+ size: t.size,
247
+ "aria-label": `Page ${n.number}`,
248
+ "aria-current": n.isActive ? "true" : "false",
249
+ "aria-setsize": t.resultsSize ?? void 0,
250
+ loading: n.loading,
251
+ "aria-posinset": n.number,
252
+ class: { active: n.isActive },
253
+ onClick: (oe) => n.isActive ? void 0 : $(n.number)
254
+ }), {
255
+ default: C(() => [
256
+ d("span", ee, [
257
+ s(`
258
+ @slot Accessible text for screen reader of the current page button
259
+ @binding {number} page - current page number
260
+ `),
261
+ p(t.$slots, "page-sr", {
262
+ page: n.number
263
+ }, () => [
264
+ V(
265
+ "Page " + B(n.number),
266
+ 1
267
+ /* TEXT */
268
+ )
269
+ ], !0)
270
+ ]),
271
+ V(
272
+ " " + B(n.number),
273
+ 1
274
+ /* TEXT */
275
+ )
276
+ ]),
277
+ _: 2
278
+ /* DYNAMIC */
279
+ }, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : n.divider ? (i(), N(
280
+ "div",
281
+ k({
282
+ key: 1,
283
+ ref_for: !0
284
+ }, u.value, { class: "flex p-2 flex-center" }),
285
+ [
286
+ g(v(S))
287
+ ],
288
+ 16
289
+ /* FULL_PROPS */
290
+ )) : s("v-if", !0)
291
+ ], 8, x))),
292
+ 128
293
+ /* KEYED_FRAGMENT */
294
+ )),
295
+ d("li", null, [
296
+ g(A, k(u.value, {
297
+ disabled: t.modelValue === t.totalPages,
298
+ "aria-label": `Next Page, Page ${z.value}`,
299
+ "aria-setsize": t.resultsSize ?? void 0,
300
+ "aria-posinset": z.value,
301
+ size: t.size,
302
+ onClick: r[2] || (r[2] = (n) => $(z.value))
303
+ }), {
304
+ default: C(() => [
305
+ d("span", ae, [
306
+ s(`
307
+ @slot Accessible text for screen reader of the next page button
308
+ @binding {number} page - next page number
309
+ `),
310
+ p(t.$slots, "next-page-sr", { page: z.value }, () => [
311
+ V(
312
+ "Next Page, page " + B(z.value),
313
+ 1
314
+ /* TEXT */
315
+ )
316
+ ], !0)
317
+ ]),
318
+ g(v(h), { class: "-maz-rotate-180" })
319
+ ]),
320
+ _: 3
321
+ /* FORWARDED */
322
+ }, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
323
+ ]),
324
+ d("li", null, [
325
+ g(A, k(u.value, {
326
+ disabled: t.modelValue === t.totalPages,
327
+ "aria-label": `Next Page, Page ${t.totalPages}`,
328
+ "aria-setsize": t.resultsSize ?? void 0,
329
+ "aria-posinset": t.totalPages,
330
+ size: t.size,
331
+ onClick: r[3] || (r[3] = (n) => $(t.totalPages))
332
+ }), {
333
+ default: C(() => [
334
+ d("span", te, [
335
+ s(`
336
+ @slot Accessible text for screen reader of the last page button
337
+ @binding {number} page - last page number
338
+ `),
339
+ p(t.$slots, "last-page-sr", { page: t.totalPages }, () => [
340
+ V(
341
+ "Last Page, page " + B(t.totalPages),
342
+ 1
343
+ /* TEXT */
344
+ )
345
+ ], !0)
346
+ ]),
347
+ g(v(E), { class: "-maz-rotate-180" })
348
+ ]),
349
+ _: 3
350
+ /* FORWARDED */
351
+ }, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
352
+ ])
353
+ ])
354
+ ]));
355
+ }
356
+ }), se = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-8b9651c3"]]);
357
+ export {
358
+ se as M,
359
+ G as _
360
+ };