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

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 (122) hide show
  1. package/components/MazBottomSheet.mjs +1 -1
  2. package/components/MazBtn.d.ts +5 -0
  3. package/components/MazBtn.mjs +1 -1
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCarousel.mjs +1 -1
  6. package/components/MazDialog.mjs +1 -1
  7. package/components/MazDialogPromise.mjs +1 -1
  8. package/components/MazDrawer.mjs +1 -1
  9. package/components/MazDropdown.mjs +1 -1
  10. package/components/MazInput.mjs +1 -1
  11. package/components/MazInputNumber.mjs +1 -1
  12. package/components/MazInputPrice.mjs +1 -1
  13. package/components/MazInputTags.mjs +1 -1
  14. package/components/MazPagination.mjs +1 -1
  15. package/components/MazPhoneNumberInput.mjs +1 -1
  16. package/components/MazPicker.mjs +1 -1
  17. package/components/MazPullToRefresh.d.ts +2 -2
  18. package/components/MazSelect.mjs +1 -1
  19. package/components/MazTable.d.ts +2 -2
  20. package/components/MazTable.mjs +1 -1
  21. package/components/assets/MazBtn.css +1 -1
  22. package/components/assets/MazInputNumber.css +1 -1
  23. package/components/assets/MazInputTags.css +1 -1
  24. package/components/assets/MazPagination.css +1 -1
  25. package/components/assets/MazPicker.css +1 -1
  26. package/components/assets/MazSelect.css +1 -1
  27. package/components/assets/MazTable.css +1 -1
  28. package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-DeAah_or.mjs} +1 -1
  29. package/components/chunks/MazBtn-BV212IYv.mjs +118 -0
  30. package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BXvObcWn.mjs} +21 -19
  31. package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-C2dJYsnq.mjs} +21 -19
  32. package/components/chunks/MazBtn-C2htID_X.mjs +118 -0
  33. package/components/chunks/MazBtn-C4xZC-A2.mjs +118 -0
  34. package/components/chunks/{MazBtn-CVB5qDjV.mjs → MazBtn-C5IbN0rp.mjs} +34 -32
  35. package/components/chunks/MazBtn-CEFfMm7k.mjs +118 -0
  36. package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-CESOVC-a.mjs} +20 -18
  37. package/components/chunks/MazBtn-CLFly8Ie.mjs +118 -0
  38. package/components/chunks/MazBtn-CRpqDW12.mjs +118 -0
  39. package/components/chunks/MazBtn-D2H26ExI.mjs +118 -0
  40. package/components/chunks/MazBtn-y4vRRWDg.mjs +118 -0
  41. package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-zMzxqcCs.mjs} +34 -32
  42. package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-BF-2_gZV.mjs} +1 -1
  43. package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DVBUt8NL.mjs} +1 -1
  44. package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-CEfJco3U.mjs} +1 -1
  45. package/components/chunks/MazCheckbox-CeVxgVY8.mjs +146 -0
  46. package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-mgtQBs4K.mjs} +1 -1
  47. package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-fn7vXgBg.mjs} +1 -1
  48. package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-C8dpQb5k.mjs} +2 -2
  49. package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-CXJsK5ve.mjs} +2 -2
  50. package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-BXX3RaoN.mjs} +1 -1
  51. package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
  52. package/components/chunks/MazInput-AcA93-8Q.mjs +291 -0
  53. package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-Dnwxraz4.mjs} +1 -1
  54. package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-OY_UqCMs.mjs} +173 -171
  55. package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DvVAZa12.mjs} +1 -1
  56. package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-DKlGT2IB.mjs} +170 -168
  57. package/components/chunks/MazLoadingBar-By1umvdC.mjs +32 -0
  58. package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-BL9LU84U.mjs} +132 -130
  59. package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-C7gUk5lg.mjs} +3 -3
  60. package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-Dhm3u2MN.mjs} +536 -534
  61. package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-ck8cl1-N.mjs} +1 -1
  62. package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-hEpUqVC-.mjs} +1 -1
  63. package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-CmMxOc69.mjs} +1 -1
  64. package/components/chunks/MazSelect-CGsMRdr7.mjs +568 -0
  65. package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-ed445MXs.mjs} +2 -2
  66. package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-Akyx5wgU.mjs} +1 -1
  67. package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-B2dsE23u.mjs} +1 -1
  68. package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-BCOeuzTB.mjs} +1 -1
  69. package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-BakExtKd.mjs} +1 -1
  70. package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-C9meLNrb.mjs} +1 -1
  71. package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-CKOy0M1T.mjs} +1 -1
  72. package/components/chunks/MazSpinner-CL6orjX7.mjs +37 -0
  73. package/components/chunks/MazSpinner-CQTq0J6f.mjs +37 -0
  74. package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-CeZk8jA9.mjs} +1 -1
  75. package/components/chunks/MazSpinner-CqS3onAE.mjs +37 -0
  76. package/components/chunks/MazSpinner-D1zj-581.mjs +37 -0
  77. package/components/chunks/MazSpinner-DJ2t85tY.mjs +37 -0
  78. package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DbaTlD5B.mjs} +1 -1
  79. package/components/chunks/MazSpinner-DgJ9tVv_.mjs +37 -0
  80. package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-DoKvoICM.mjs} +1 -1
  81. package/components/chunks/MazSpinner-Oy4E193R.mjs +37 -0
  82. package/components/chunks/MazTable-QwG-Kh88.mjs +692 -0
  83. package/components/chunks/MazTableCell-BSNyqTSX.mjs +23 -0
  84. package/components/chunks/MazTableRow-CgubMdrX.mjs +30 -0
  85. package/components/chunks/MazTableTitle-h4dattYD.mjs +23 -0
  86. package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand-BvqRDM9d.mjs} +1 -1
  87. package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
  88. package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
  89. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
  90. package/css/main.css +1 -1
  91. package/modules/assets/MazBtn.css +1 -1
  92. package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DeAZcD0R.cjs} +3 -3
  93. package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-DvffpPyV.mjs} +21 -19
  94. package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BiwOZEZl.cjs} +1 -1
  95. package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-D2B0umvn.mjs} +1 -1
  96. package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-CZIYnX05.cjs} +1 -1
  97. package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-Csgl_Uho.mjs} +1 -1
  98. package/modules/chunks/index-B6Pf_QhC.cjs +149 -0
  99. package/modules/chunks/{index-aKGx1nxl.mjs → index-C34aEXzu.mjs} +319 -314
  100. package/modules/index.cjs +1 -1
  101. package/modules/index.mjs +1 -1
  102. package/nuxt/index.json +1 -1
  103. package/package.json +1 -1
  104. package/types/components/MazBtn.vue.d.ts +5 -0
  105. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  106. package/types/components/MazTable.vue.d.ts +2 -2
  107. package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
  108. package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
  109. package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
  110. package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
  111. package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
  112. package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
  113. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
  114. package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
  115. package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
  116. package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
  117. package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
  118. package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
  119. package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
  120. package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
  121. package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
  122. package/modules/chunks/index-CE2CsQsx.cjs +0 -149
@@ -0,0 +1,32 @@
1
+ import { defineComponent as l, useCssVars as n, computed as c, openBlock as s, createElementBlock as d, createElementVNode as m } from "vue";
2
+ import { _ as p } from "./MazTable-QwG-Kh88.mjs";
3
+ import '../assets/MazLoadingBar.css';const i = { class: "m-loading-bar" }, u = /* @__PURE__ */ l({
4
+ __name: "MazLoadingBar",
5
+ props: {
6
+ color: { default: "primary" },
7
+ height: { default: "0.125rem" }
8
+ },
9
+ setup(t) {
10
+ n((e) => ({
11
+ "67978ed9": e.height,
12
+ "05ad2446": o.value.alpha,
13
+ "943cd45e": o.value.main
14
+ }));
15
+ const a = t, o = c(() => ({
16
+ alpha: `var(--maz-color-${a.color}-alpha-20)`,
17
+ main: `var(--maz-color-${a.color})`
18
+ }));
19
+ return (e, r) => (s(), d("div", i, r[0] || (r[0] = [
20
+ m(
21
+ "div",
22
+ null,
23
+ null,
24
+ -1
25
+ /* HOISTED */
26
+ )
27
+ ])));
28
+ }
29
+ }), h = /* @__PURE__ */ p(u, [["__scopeId", "data-v-3cd29bd9"]]);
30
+ export {
31
+ h as default
32
+ };
@@ -1,4 +1,4 @@
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";
1
+ import { defineComponent as q, defineAsyncComponent as A, useAttrs as H, useSlots as J, computed as s, openBlock as i, createBlock as m, resolveDynamicComponent as F, normalizeClass as y, withCtx as V, createCommentVNode as l, renderSlot as f, unref as v, createElementBlock as B, createVNode as c, createElementVNode as d, mergeProps as $, createTextVNode as k, toDisplayString as R, Fragment as K, renderList as Q } from "vue";
2
2
  import '../assets/MazPagination.css';const W = {
3
3
  key: 2,
4
4
  class: "m-btn-loader-container"
@@ -23,98 +23,100 @@ import '../assets/MazPagination.css';const W = {
23
23
  leftIcon: { type: [String, Function, Object], default: void 0 },
24
24
  rightIcon: { type: [String, Function, Object], default: void 0 },
25
25
  noPadding: { type: Boolean },
26
- noElevation: { type: Boolean }
26
+ noElevation: { type: Boolean },
27
+ justify: { default: "center" }
27
28
  },
28
29
  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,
30
+ const n = P, e = A(() => import("./MazSpinner-CL6orjX7.mjs")), b = A(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: N } = H(), C = J(), S = s(() => h ? "a" : N ? "router-link" : "button"), u = s(
31
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
32
+ ), g = s(
33
+ () => (n.loading || n.disabled) && S.value === "button"
34
+ ), z = s(() => g.value ? "--cursor-default" : "--cursor-pointer"), I = s(() => `--is-${n.variant}`), M = s(() => n.loading && n.variant === "button"), O = s(() => !!C["left-icon"] || n.leftIcon), T = s(() => !!C["right-icon"] || n.rightIcon), D = s(() => O.value || T.value), L = s(() => n.icon || !!C.icon), U = s(() => S.value === "button" ? n.type : void 0), p = s(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), w = s(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
35
+ return (a, t) => (i(), m(F(S.value), {
36
+ disabled: g.value || void 0,
36
37
  class: y(["m-btn", [
37
38
  `--${a.size}`,
38
39
  !a.fab && !a.rounded && a.roundedSize && `--rounded-${a.roundedSize}`,
39
40
  u.value,
40
41
  z.value,
41
- R.value,
42
+ I.value,
43
+ w.value,
42
44
  {
43
45
  "--block": a.block,
44
46
  "--no-underline": a.noUnderline,
45
47
  "--fab": a.fab,
46
48
  "--loading": a.loading,
47
- "--disabled": c.value,
48
- "--icon": U.value,
49
+ "--disabled": g.value,
50
+ "--icon": D.value,
49
51
  "--rounded": a.rounded,
50
52
  "--no-rounded": a.noRounded,
51
53
  "--no-padding": a.noPadding,
52
54
  "--no-elevation": a.noElevation
53
55
  }
54
56
  ]]),
55
- type: w.value
57
+ type: U.value
56
58
  }, {
57
- default: C(() => [
58
- s(`
59
+ default: V(() => [
60
+ l(`
59
61
  @slot left-icon - The icon to display on the left of the button
60
62
  `),
61
- p(a.$slots, "left-icon", {}, () => [
62
- typeof a.leftIcon == "string" ? (i(), f(v(b), {
63
+ f(a.$slots, "left-icon", {}, () => [
64
+ typeof a.leftIcon == "string" ? (i(), m(v(b), {
63
65
  key: 0,
64
66
  name: a.leftIcon,
65
- class: y([m.value])
66
- }, null, 8, ["name", "class"])) : a.leftIcon ? (i(), f(O(a.leftIcon), {
67
+ class: y([p.value])
68
+ }, null, 8, ["name", "class"])) : a.leftIcon ? (i(), m(F(a.leftIcon), {
67
69
  key: 1,
68
- class: y([m.value])
69
- }, null, 8, ["class"])) : s("v-if", !0)
70
+ class: y([p.value])
71
+ }, null, 8, ["class"])) : l("v-if", !0)
70
72
  ], !0),
71
- s(`
73
+ l(`
72
74
  @slot icon - The icon to display on the fab button
73
75
  `),
74
- j.value ? p(a.$slots, "icon", { key: 0 }, () => [
75
- typeof a.icon == "string" ? (i(), f(v(b), {
76
+ L.value ? f(a.$slots, "icon", { key: 0 }, () => [
77
+ typeof a.icon == "string" ? (i(), m(v(b), {
76
78
  key: 0,
77
79
  name: a.icon,
78
- class: y([m.value])
79
- }, null, 8, ["name", "class"])) : a.icon ? (i(), f(O(a.icon), {
80
+ class: y([p.value])
81
+ }, null, 8, ["name", "class"])) : a.icon ? (i(), m(F(a.icon), {
80
82
  key: 1,
81
- class: y([m.value])
82
- }, null, 8, ["class"])) : s("v-if", !0)
83
- ], !0) : s("v-if", !0),
84
- s(`
83
+ class: y([p.value])
84
+ }, null, 8, ["class"])) : l("v-if", !0)
85
+ ], !0) : l("v-if", !0),
86
+ l(`
85
87
  @slot default - The content of the button
86
88
  `),
87
- p(a.$slots, "default", {}, void 0, !0),
88
- s(`
89
+ f(a.$slots, "default", {}, void 0, !0),
90
+ l(`
89
91
  @slot left-icon - The icon to display on the left of the button
90
92
  `),
91
- F.value ? p(a.$slots, "right-icon", { key: 1 }, () => [
92
- typeof a.rightIcon == "string" ? (i(), f(v(b), {
93
+ T.value ? f(a.$slots, "right-icon", { key: 1 }, () => [
94
+ typeof a.rightIcon == "string" ? (i(), m(v(b), {
93
95
  key: 0,
94
96
  name: a.rightIcon,
95
- class: y([m.value])
96
- }, null, 8, ["name", "class"])) : a.rightIcon ? (i(), f(O(a.rightIcon), {
97
+ class: y([p.value])
98
+ }, null, 8, ["name", "class"])) : a.rightIcon ? (i(), m(F(a.rightIcon), {
97
99
  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), {
100
+ class: y([p.value])
101
+ }, null, 8, ["class"])) : l("v-if", !0)
102
+ ], !0) : l("v-if", !0),
103
+ M.value ? (i(), B("div", W, [
104
+ c(v(e), {
103
105
  size: "2em",
104
106
  color: a.color
105
107
  }, null, 8, ["color"])
106
- ])) : s("v-if", !0)
108
+ ])) : l("v-if", !0)
107
109
  ]),
108
110
  _: 3
109
111
  /* FORWARDED */
110
112
  }, 8, ["disabled", "class", "type"]));
111
113
  }
112
- }), G = (P, o) => {
114
+ }), G = (P, n) => {
113
115
  const e = P.__vccOpts || P;
114
- for (const [b, h] of o)
116
+ for (const [b, h] of n)
115
117
  e[b] = h;
116
118
  return e;
117
- }, A = /* @__PURE__ */ G(X, [["__scopeId", "data-v-8deef21f"]]), Y = {
119
+ }, j = /* @__PURE__ */ G(X, [["__scopeId", "data-v-5aedac30"]]), Y = {
118
120
  class: "m-pagination",
119
121
  role: "navigation",
120
122
  "aria-label": "page navigation"
@@ -131,220 +133,220 @@ import '../assets/MazPagination.css';const W = {
131
133
  loading: { type: Boolean }
132
134
  },
133
135
  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
+ setup(P, { emit: n }) {
137
+ const e = P, b = n, h = A(() => import("./chevron-left-BqVOLRdC.mjs")), N = A(() => import("./chevron-double-left-D4-NpyrF.mjs")), C = A(() => import("./ellipsis-horizontal-6n158ATI.mjs")), S = {
136
138
  size: "md",
137
139
  color: "theme",
138
140
  outline: !0,
139
141
  noElevation: !0,
140
142
  fab: !0
141
- }, u = l(() => ({
142
- ...I,
143
+ }, u = s(() => ({
144
+ ...S,
143
145
  ...e.buttonProps
144
- })), c = l(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = l(
146
+ })), g = s(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = s(
145
147
  () => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
146
- ), R = l(
148
+ ), I = s(
147
149
  () => Array.from({ length: e.totalPages }, (t, r) => {
148
- const n = r + 1;
150
+ const o = r + 1;
149
151
  return {
150
- number: n,
151
- isActive: n === e.modelValue,
152
- loading: n === e.modelValue && e.loading
152
+ number: o,
153
+ isActive: o === e.modelValue,
154
+ loading: o === e.modelValue && e.loading
153
155
  };
154
156
  })
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(
157
+ ), M = s(
158
+ () => e.modelValue - e.pageRange > 1 ? I.value.slice(0, 1) : []
159
+ ), O = s(
160
+ () => e.modelValue < e.totalPages - e.pageRange ? I.value.slice(-1) : []
161
+ ), T = s(() => 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), D = s(
160
162
  () => 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(
163
+ ), L = s(() => I.value.slice(T.value, D.value)), U = s(
162
164
  () => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
163
- ), m = l(
165
+ ), p = s(
164
166
  () => 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
167
+ ), w = s(() => [
168
+ ...M.value,
169
+ ...U.value,
170
+ ...L.value,
171
+ ...p.value,
172
+ ...O.value
171
173
  ]);
172
- function $(t) {
174
+ function a(t) {
173
175
  t !== e.modelValue && b("update:model-value", t);
174
176
  }
175
- return (t, r) => (i(), N("nav", Y, [
177
+ return (t, r) => (i(), B("nav", Y, [
176
178
  d("ul", null, [
177
179
  d("li", null, [
178
- g(A, k(u.value, {
180
+ c(j, $(u.value, {
179
181
  disabled: t.modelValue === 1,
180
182
  "aria-label": "First Page, Page 1",
181
183
  "aria-setsize": t.resultsSize ?? void 0,
182
184
  "aria-posinset": "1",
183
185
  size: t.size,
184
- onClick: r[0] || (r[0] = (n) => $(1))
186
+ onClick: r[0] || (r[0] = (o) => a(1))
185
187
  }), {
186
- default: C(() => [
188
+ default: V(() => [
187
189
  d("span", Z, [
188
- s(`
190
+ l(`
189
191
  @slot Accessible text for screen reader of the previous page button
190
192
  @binding {number} page - first page number
191
193
  `),
192
- p(t.$slots, "first-page-sr", { page: 1 }, () => [
193
- r[4] || (r[4] = V("First Page, page 1"))
194
+ f(t.$slots, "first-page-sr", { page: 1 }, () => [
195
+ r[4] || (r[4] = k("First Page, page 1"))
194
196
  ], !0)
195
197
  ]),
196
- g(v(E))
198
+ c(v(N))
197
199
  ]),
198
200
  _: 3
199
201
  /* FORWARDED */
200
202
  }, 16, ["disabled", "aria-setsize", "size"])
201
203
  ]),
202
204
  d("li", null, [
203
- g(A, k(u.value, {
205
+ c(j, $(u.value, {
204
206
  disabled: t.modelValue === 1,
205
- "aria-label": `Previous Page, Page ${c.value}`,
207
+ "aria-label": `Previous Page, Page ${g.value}`,
206
208
  "aria-setsize": t.resultsSize ?? void 0,
207
- "aria-posinset": c.value,
209
+ "aria-posinset": g.value,
208
210
  size: t.size,
209
- onClick: r[1] || (r[1] = (n) => $(c.value))
211
+ onClick: r[1] || (r[1] = (o) => a(g.value))
210
212
  }), {
211
- default: C(() => [
213
+ default: V(() => [
212
214
  d("span", _, [
213
- s(`
215
+ l(`
214
216
  @slot Accessible text for screen reader of the first page button
215
217
  @binding {number} page - previous page number
216
218
  `),
217
- p(t.$slots, "previous-page-sr", { page: c.value }, () => [
218
- V(
219
- " Previous Page, page " + B(c.value),
219
+ f(t.$slots, "previous-page-sr", { page: g.value }, () => [
220
+ k(
221
+ " Previous Page, page " + R(g.value),
220
222
  1
221
223
  /* TEXT */
222
224
  )
223
225
  ], !0)
224
226
  ]),
225
- g(v(h))
227
+ c(v(h))
226
228
  ]),
227
229
  _: 3
228
230
  /* FORWARDED */
229
231
  }, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
230
232
  ]),
231
- (i(!0), N(
233
+ (i(!0), B(
232
234
  K,
233
235
  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}`
236
+ Q(w.value, (o, E) => (i(), B("li", {
237
+ id: "number" in o ? `button-${E}-${o.number}` : `ellipsis-${E}`,
238
+ key: "number" in o ? `button-${E}-${o.number}` : `ellipsis-${E}`
237
239
  }, [
238
- "number" in n ? (i(), f(A, k({
240
+ "number" in o ? (i(), m(j, $({
239
241
  key: 0,
240
242
  ref_for: !0
241
243
  }, {
242
244
  ...u.value,
243
- color: n.isActive ? t.activeColor : u.value.color,
244
- outline: n.isActive ? !1 : u.value.outline
245
+ color: o.isActive ? t.activeColor : u.value.color,
246
+ outline: o.isActive ? !1 : u.value.outline
245
247
  }, {
246
248
  size: t.size,
247
- "aria-label": `Page ${n.number}`,
248
- "aria-current": n.isActive ? "true" : "false",
249
+ "aria-label": `Page ${o.number}`,
250
+ "aria-current": o.isActive ? "true" : "false",
249
251
  "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)
252
+ loading: o.loading,
253
+ "aria-posinset": o.number,
254
+ class: { active: o.isActive },
255
+ onClick: (oe) => o.isActive ? void 0 : a(o.number)
254
256
  }), {
255
- default: C(() => [
257
+ default: V(() => [
256
258
  d("span", ee, [
257
- s(`
259
+ l(`
258
260
  @slot Accessible text for screen reader of the current page button
259
261
  @binding {number} page - current page number
260
262
  `),
261
- p(t.$slots, "page-sr", {
262
- page: n.number
263
+ f(t.$slots, "page-sr", {
264
+ page: o.number
263
265
  }, () => [
264
- V(
265
- "Page " + B(n.number),
266
+ k(
267
+ "Page " + R(o.number),
266
268
  1
267
269
  /* TEXT */
268
270
  )
269
271
  ], !0)
270
272
  ]),
271
- V(
272
- " " + B(n.number),
273
+ k(
274
+ " " + R(o.number),
273
275
  1
274
276
  /* TEXT */
275
277
  )
276
278
  ]),
277
279
  _: 2
278
280
  /* DYNAMIC */
279
- }, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : n.divider ? (i(), N(
281
+ }, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : o.divider ? (i(), B(
280
282
  "div",
281
- k({
283
+ $({
282
284
  key: 1,
283
285
  ref_for: !0
284
286
  }, u.value, { class: "flex p-2 flex-center" }),
285
287
  [
286
- g(v(S))
288
+ c(v(C))
287
289
  ],
288
290
  16
289
291
  /* FULL_PROPS */
290
- )) : s("v-if", !0)
292
+ )) : l("v-if", !0)
291
293
  ], 8, x))),
292
294
  128
293
295
  /* KEYED_FRAGMENT */
294
296
  )),
295
297
  d("li", null, [
296
- g(A, k(u.value, {
298
+ c(j, $(u.value, {
297
299
  disabled: t.modelValue === t.totalPages,
298
300
  "aria-label": `Next Page, Page ${z.value}`,
299
301
  "aria-setsize": t.resultsSize ?? void 0,
300
302
  "aria-posinset": z.value,
301
303
  size: t.size,
302
- onClick: r[2] || (r[2] = (n) => $(z.value))
304
+ onClick: r[2] || (r[2] = (o) => a(z.value))
303
305
  }), {
304
- default: C(() => [
306
+ default: V(() => [
305
307
  d("span", ae, [
306
- s(`
308
+ l(`
307
309
  @slot Accessible text for screen reader of the next page button
308
310
  @binding {number} page - next page number
309
311
  `),
310
- p(t.$slots, "next-page-sr", { page: z.value }, () => [
311
- V(
312
- "Next Page, page " + B(z.value),
312
+ f(t.$slots, "next-page-sr", { page: z.value }, () => [
313
+ k(
314
+ "Next Page, page " + R(z.value),
313
315
  1
314
316
  /* TEXT */
315
317
  )
316
318
  ], !0)
317
319
  ]),
318
- g(v(h), { class: "-maz-rotate-180" })
320
+ c(v(h), { class: "-maz-rotate-180" })
319
321
  ]),
320
322
  _: 3
321
323
  /* FORWARDED */
322
324
  }, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
323
325
  ]),
324
326
  d("li", null, [
325
- g(A, k(u.value, {
327
+ c(j, $(u.value, {
326
328
  disabled: t.modelValue === t.totalPages,
327
329
  "aria-label": `Next Page, Page ${t.totalPages}`,
328
330
  "aria-setsize": t.resultsSize ?? void 0,
329
331
  "aria-posinset": t.totalPages,
330
332
  size: t.size,
331
- onClick: r[3] || (r[3] = (n) => $(t.totalPages))
333
+ onClick: r[3] || (r[3] = (o) => a(t.totalPages))
332
334
  }), {
333
- default: C(() => [
335
+ default: V(() => [
334
336
  d("span", te, [
335
- s(`
337
+ l(`
336
338
  @slot Accessible text for screen reader of the last page button
337
339
  @binding {number} page - last page number
338
340
  `),
339
- p(t.$slots, "last-page-sr", { page: t.totalPages }, () => [
340
- V(
341
- "Last Page, page " + B(t.totalPages),
341
+ f(t.$slots, "last-page-sr", { page: t.totalPages }, () => [
342
+ k(
343
+ "Last Page, page " + R(t.totalPages),
342
344
  1
343
345
  /* TEXT */
344
346
  )
345
347
  ], !0)
346
348
  ]),
347
- g(v(E), { class: "-maz-rotate-180" })
349
+ c(v(N), { class: "-maz-rotate-180" })
348
350
  ]),
349
351
  _: 3
350
352
  /* FORWARDED */
@@ -353,8 +355,8 @@ import '../assets/MazPagination.css';const W = {
353
355
  ])
354
356
  ]));
355
357
  }
356
- }), se = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-8b9651c3"]]);
358
+ }), le = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-8b9651c3"]]);
357
359
  export {
358
- se as M,
360
+ le as M,
359
361
  G as _
360
362
  };
@@ -224,7 +224,7 @@ const yo = {
224
224
  },
225
225
  emits: ["intersecting", "loading", "loaded", "error"],
226
226
  setup(n) {
227
- const o = n, e = q(() => import("./MazSpinner-DuGaC-cw.mjs")), t = h(() => o.image || o.src), r = h(() => {
227
+ const o = n, e = q(() => import("./MazSpinner-Oy4E193R.mjs")), t = h(() => o.image || o.src), r = h(() => {
228
228
  var u;
229
229
  return typeof t.value == "string" ? [{ srcset: t.value }] : (u = t.value) == null ? void 0 : u.sources;
230
230
  });
@@ -470,7 +470,7 @@ const ko = {
470
470
  },
471
471
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
472
472
  setup(n, { emit: o }) {
473
- const e = n, t = o, r = q(() => import("./MazBtn-BXdap6JU.mjs")), u = q(() => import("./MazIcon-CudB1a0D.mjs")), y = q(() => import("./eye-slash-BoO00xzs.mjs")), p = q(() => import("./eye-f8zAUc30.mjs")), O = q(() => import("./check-C9Q_W85g.mjs")), $ = k(!1), v = k(!1), P = k(), i = Ae({
473
+ const e = n, t = o, r = q(() => import("./MazBtn-C2htID_X.mjs")), u = q(() => import("./MazIcon-BXX3RaoN.mjs")), y = q(() => import("./eye-slash-BoO00xzs.mjs")), p = q(() => import("./eye-f8zAUc30.mjs")), O = q(() => import("./check-C9Q_W85g.mjs")), $ = k(!1), v = k(!1), P = k(), i = Ae({
474
474
  componentName: "MazInput",
475
475
  providedId: e.id
476
476
  });
@@ -744,7 +744,7 @@ const ko = {
744
744
  "215ff493": i.value,
745
745
  "64d6cfbb": f.value
746
746
  }));
747
- const t = n, r = e, u = q(() => import("./MazCheckbox-C4diNXJq.mjs")), y = q(() => import("./magnifying-glass--nBiyXot.mjs")), p = q(() => import("./chevron-down-BkvtON3b.mjs")), O = q(() => import("./no-symbol-CIgKzsrB.mjs"));
747
+ const t = n, r = e, u = q(() => import("./MazCheckbox-CEfJco3U.mjs")), y = q(() => import("./magnifying-glass--nBiyXot.mjs")), p = q(() => import("./chevron-down-BkvtON3b.mjs")), O = q(() => import("./no-symbol-CIgKzsrB.mjs"));
748
748
  o({
749
749
  /** Method to open the option list */
750
750
  openList: ne,