maz-ui 3.40.2 → 3.40.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/MazAccordion.mjs +121 -104
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +2 -2
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +8 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +41 -2
- package/components/MazCardSpotlight.mjs +56 -39
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +32 -32
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazStepper.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCard.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazDropzone.css +1 -1
- package/components/assets/MazInputCode.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazStepper.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazAvatar-CfJSw4Yv.mjs → MazAvatar-QDlH6tvz.mjs} +2 -2
- package/components/chunks/{MazBottomSheet-uKxvK85D.mjs → MazBottomSheet-CIlIdn-2.mjs} +1 -1
- package/components/chunks/{MazBtn-Cf6bpPps.mjs → MazBtn-78ToUjeK.mjs} +38 -38
- package/components/chunks/MazBtn-BKtYocJV.mjs +151 -0
- package/components/chunks/{MazBtn-C1Hevhzu.mjs → MazBtn-BydIwD1J.mjs} +5 -5
- package/components/chunks/MazBtn-Bz4-bhWf.mjs +151 -0
- package/components/chunks/{MazBtn-DBGIZYN0.mjs → MazBtn-CPyDRy19.mjs} +38 -38
- package/components/chunks/MazBtn-CauvhLv6.mjs +151 -0
- package/components/chunks/{MazBtn-WxZqpFgw.mjs → MazBtn-Ccvl1ZWv.mjs} +5 -5
- package/components/chunks/MazBtn-DWDitOvL.mjs +151 -0
- package/components/chunks/{MazBtn-Ct6j9jc6.mjs → MazBtn-Da5Nh9ga.mjs} +38 -38
- package/components/chunks/MazBtn-Dnq16gKt.mjs +151 -0
- package/components/chunks/MazBtn-Ng8Jql0R.mjs +151 -0
- package/components/chunks/MazBtn-_NGDIlQK.mjs +151 -0
- package/components/chunks/{MazCard-EXkymtQk.mjs → MazCard-DCz1q6wT.mjs} +70 -69
- package/components/chunks/{MazCarousel-iKzlrVVy.mjs → MazCarousel-DZZilIAg.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Dqw5B6BC.mjs → MazCheckbox-C1O-MBZa.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CZdX-eyY.mjs → MazCheckbox-PgXh8RSO.mjs} +1 -1
- package/components/chunks/{MazDialog-4Th-Xut5.mjs → MazDialog-wPf8YzO5.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-CJsnYYpX.mjs → MazDialogPromise-C4xTbUi9.mjs} +2 -2
- package/components/chunks/{MazGallery-D7CXzxIH.mjs → MazGallery-CaZnMqiM.mjs} +2 -2
- package/components/chunks/{MazIcon-DgT8iWEh.mjs → MazIcon-BfD79t7M.mjs} +1 -1
- package/components/chunks/{MazIcon-B-UuPklS.mjs → MazIcon-DAWEYUs6.mjs} +1 -1
- package/components/chunks/{MazInput-DDZFdad5.mjs → MazInput-BZBaDBjc.mjs} +1 -1
- package/components/chunks/{MazInputNumber-Cu15o5vo.mjs → MazInputNumber-DsSRD1TO.mjs} +64 -64
- package/components/chunks/{MazInputPrice-B7l9-xh2.mjs → MazInputPrice-BjI2ZK_A.mjs} +1 -1
- package/components/chunks/{MazInputTags-CNEK5pfK.mjs → MazInputTags-CUV1HRPI.mjs} +5 -5
- package/components/chunks/{MazLazyImg-BImCTi5K.mjs → MazLazyImg-BGK0RZe2.mjs} +2 -2
- package/components/chunks/{MazPagination-C4p_B9Dg.mjs → MazPagination-CfLOeWuj.mjs} +41 -41
- package/components/chunks/{MazPhoneNumberInput-DGf04XP4.mjs → MazPhoneNumberInput-CsBXHpCq.mjs} +2 -2
- package/components/chunks/{MazPicker-DzOi-CWS.mjs → MazPicker-_ndeWiCy.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-BZyGvAzQ.mjs → MazPickerCalendar-BXadlngJ.mjs} +7 -7
- package/components/chunks/{MazPickerHeader-CgoLWXed.mjs → MazPickerHeader-BpNxHXI2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-BzxzHg15.mjs → MazPickerMonthSwitcher-BzEZ5x7j.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-CUfm1E2A.mjs → MazPickerShortcuts-BreMu-Sy.mjs} +2 -2
- package/components/chunks/{MazPickerTime-BRb6pDOe.mjs → MazPickerTime-Cc2hHJlp.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-CJY_QYpN.mjs → MazPickerYearSwitcher-B2Dk5iso.mjs} +3 -3
- package/components/chunks/{MazSelect-BsWij77Q.mjs → MazSelect-CraB8U5x.mjs} +2 -2
- package/components/chunks/{MazSpinner-3KgM7Cpe.mjs → MazSpinner-8VnYwZdB.mjs} +1 -1
- package/components/chunks/{MazSpinner-O0WGwdtL.mjs → MazSpinner-B_WP-2kr.mjs} +1 -1
- package/components/chunks/MazSpinner-BmOvvC7W.mjs +38 -0
- package/components/chunks/{MazSpinner-DHAlXW-A.mjs → MazSpinner-BtpIL60X.mjs} +1 -1
- package/components/chunks/{MazSpinner-CkigTMVl.mjs → MazSpinner-BxYAlebs.mjs} +1 -1
- package/components/chunks/MazSpinner-C-lFmcUR.mjs +38 -0
- package/components/chunks/MazSpinner-CTm1URNC.mjs +38 -0
- package/components/chunks/{MazSpinner-BxTf8_F4.mjs → MazSpinner-CXoCX_ho.mjs} +1 -1
- package/components/chunks/{MazSpinner-DUmQCQu_.mjs → MazSpinner-CZBhl7ce.mjs} +1 -1
- package/components/chunks/{MazSpinner-B_yl5MqC.mjs → MazSpinner-DWts_Ogu.mjs} +1 -1
- package/components/chunks/{MazSpinner-DzWvDo6x.mjs → MazSpinner-DYkIZhje.mjs} +1 -1
- package/components/chunks/MazSpinner-DibP0zFm.mjs +38 -0
- package/components/chunks/MazSpinner-DkLBbDGC.mjs +38 -0
- package/components/chunks/MazSpinner-DpOv_AqU.mjs +38 -0
- package/components/chunks/{MazSpinner-BazLgFW3.mjs → MazSpinner-Dt5ax5Hn.mjs} +1 -1
- package/components/chunks/MazSpinner-RodpKP96.mjs +38 -0
- package/components/chunks/MazSpinner-bGMoZfcX.mjs +38 -0
- package/components/chunks/{MazStepper-BvKEjtJo.mjs → MazStepper-CV4dwvS9.mjs} +22 -22
- package/components/chunks/{MazTable-Ds_9n2ph.mjs → MazTable-Cr4kGAth.mjs} +119 -119
- package/components/chunks/{MazTransitionExpand-F8UmMAin.mjs → MazTransitionExpand-Bxl5ajH4.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-C6uOt--l.mjs → MazTransitionExpand-DLMtNsk_.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-CJkDV-lC.cjs +9 -0
- package/{components/chunks/MazBtn-CuUu5chG.mjs → modules/chunks/MazBtn-Dv9nwclG.mjs} +38 -38
- package/modules/chunks/{MazIcon-Bm9aj2GA.cjs → MazIcon-C8crlYdE.cjs} +1 -1
- package/modules/chunks/{MazIcon-qdhBwo_3.mjs → MazIcon-CRXUvqjd.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DCWCHgly.mjs → MazSpinner-AmAmgKgK.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BFGq9o4c.cjs → MazSpinner-C7r_jjn3.cjs} +1 -1
- package/modules/chunks/{index-Cl2Z9oxB.cjs → index-95nXhooW.cjs} +1 -1
- package/modules/chunks/{index-BRqo10xg.mjs → index-B99VOYdM.mjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazBtn.vue.d.ts +2 -2
- package/types/components/MazCard.vue.d.ts +8 -2
- package/types/components/MazCardSpotlight.vue.d.ts +41 -2
- package/components/chunks/MazBtn-DWZMLLYY.mjs +0 -151
- package/components/chunks/MazBtn-DgWU7Vzx.mjs +0 -151
- package/components/chunks/MazBtn-Dp7XmWvD.mjs +0 -151
- package/components/chunks/MazBtn-Ds_0Y11U.mjs +0 -151
- package/components/chunks/MazBtn-qHhaccbJ.mjs +0 -151
- package/components/chunks/MazBtn-yFDtvtao.mjs +0 -151
- package/components/chunks/MazSpinner-CPFxMAVg.mjs +0 -38
- package/components/chunks/MazSpinner-DQTSh25q.mjs +0 -38
- package/components/chunks/MazSpinner-Dhgoim8I.mjs +0 -38
- package/components/chunks/MazSpinner-DuQDsXrM.mjs +0 -38
- package/components/chunks/MazSpinner-S7b1mVEd.mjs +0 -38
- package/components/chunks/MazSpinner-YQWKVqVa.mjs +0 -38
- package/components/chunks/MazSpinner-v_h1kbbd.mjs +0 -38
- package/components/chunks/MazSpinner-zKKOOicV.mjs +0 -38
- package/modules/chunks/MazBtn-0K3jTP4n.cjs +0 -9
- package/modules/chunks/MazBtn-D7GTVnKj.mjs +0 -151
|
@@ -59,7 +59,7 @@ const re = {
|
|
|
59
59
|
},
|
|
60
60
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
61
61
|
setup(i, { emit: u }) {
|
|
62
|
-
const a = m(() => import("./MazBtn-
|
|
62
|
+
const a = m(() => import("./MazBtn-CPyDRy19.mjs")), f = m(() => import("./MazIcon-Cxrv3_OK.mjs")), z = m(() => import("./eye-slash-tjfxO0LK.mjs")), q = m(() => import("./eye-DqO_Jx56.mjs")), T = m(() => import("./check-CL-vqe79.mjs")), t = i, c = u, y = k(!1), p = k(!1), $ = k(), D = le({
|
|
63
63
|
componentName: "MazInput",
|
|
64
64
|
providedId: t.id
|
|
65
65
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/MazInputNumber.css';
|
|
2
|
-
import { defineComponent as L, defineAsyncComponent as C, useAttrs as oe, useSlots as j, onBeforeMount as
|
|
2
|
+
import { defineComponent as L, defineAsyncComponent as C, useAttrs as oe, useSlots as j, onBeforeMount as ne, computed as s, openBlock as a, createBlock as d, resolveDynamicComponent as V, normalizeClass as B, withCtx as P, createElementBlock as b, createCommentVNode as i, renderSlot as M, unref as m, getCurrentInstance as te, ref as A, onMounted as le, normalizeStyle as K, createElementVNode as N, withDirectives as ae, mergeProps as Y, toHandlers as ie, vModelDynamic as se, createTextVNode as re, toDisplayString as ue, withModifiers as q, createVNode as S, withKeys as O } from "vue";
|
|
3
3
|
const de = /* @__PURE__ */ L({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -8,7 +8,7 @@ const de = /* @__PURE__ */ L({
|
|
|
8
8
|
color: { default: "primary" },
|
|
9
9
|
type: { default: "button" },
|
|
10
10
|
rounded: { type: Boolean },
|
|
11
|
-
roundedSize: { default:
|
|
11
|
+
roundedSize: { default: "lg" },
|
|
12
12
|
noRounded: { type: Boolean },
|
|
13
13
|
outline: { type: Boolean },
|
|
14
14
|
pastel: { type: Boolean },
|
|
@@ -25,20 +25,20 @@ const de = /* @__PURE__ */ L({
|
|
|
25
25
|
contentClass: { default: void 0 }
|
|
26
26
|
},
|
|
27
27
|
setup(f) {
|
|
28
|
-
const p = C(() => import("./MazSpinner-
|
|
29
|
-
|
|
28
|
+
const p = C(() => import("./MazSpinner-DkLBbDGC.mjs")), n = C(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: u } = oe(), $ = j(), r = f;
|
|
29
|
+
ne(() => {
|
|
30
30
|
r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
31
|
});
|
|
32
|
-
const
|
|
32
|
+
const t = s(() => g ? "a" : u ? "router-link" : "button"), y = s(
|
|
33
33
|
() => r.pastel ? `--${r.color}-pastel` : r.outline ? `--${r.color}-outline` : `--${r.color}`
|
|
34
34
|
), h = s(
|
|
35
|
-
() => (r.loading || r.disabled) &&
|
|
36
|
-
), z = s(() => h.value ? "--cursor-default" : "--cursor-pointer"), w = s(() => `--is-${r.variant}`), k = s(() => r.loading && r.variant === "button"), o = s(() => !!$["left-icon"] || r.leftIcon), c = s(() => !!$["right-icon"] || r.rightIcon), v = s(() => o.value || c.value), T = s(() => r.fab && (r.icon || !!$.icon)), F = s(() =>
|
|
37
|
-
return (l, U) => (a(), d(V(
|
|
38
|
-
disabled: h.value,
|
|
35
|
+
() => (r.loading || r.disabled) && t.value === "button"
|
|
36
|
+
), z = s(() => h.value ? "--cursor-default" : "--cursor-pointer"), w = s(() => `--is-${r.variant}`), k = s(() => r.loading && r.variant === "button"), o = s(() => !!$["left-icon"] || r.leftIcon), c = s(() => !!$["right-icon"] || r.rightIcon), v = s(() => o.value || c.value), T = s(() => r.fab && (r.icon || !!$.icon)), F = s(() => t.value === "button" ? r.type : void 0);
|
|
37
|
+
return (l, U) => (a(), d(V(t.value), {
|
|
38
|
+
disabled: h.value || void 0,
|
|
39
39
|
class: B(["m-btn", [
|
|
40
40
|
`--${l.size}`,
|
|
41
|
-
`--rounded-${l.roundedSize}`,
|
|
41
|
+
!l.fab && l.roundedSize && `--rounded-${l.roundedSize}`,
|
|
42
42
|
y.value,
|
|
43
43
|
z.value,
|
|
44
44
|
w.value,
|
|
@@ -69,7 +69,7 @@ const de = /* @__PURE__ */ L({
|
|
|
69
69
|
@slot left-icon - The icon to display on the left of the button
|
|
70
70
|
`),
|
|
71
71
|
M(l.$slots, "left-icon", {}, () => [
|
|
72
|
-
typeof l.leftIcon == "string" ? (a(), d(m(
|
|
72
|
+
typeof l.leftIcon == "string" ? (a(), d(m(n), {
|
|
73
73
|
key: 0,
|
|
74
74
|
name: l.leftIcon
|
|
75
75
|
}, null, 8, ["name"])) : l.leftIcon ? (a(), d(V(l.leftIcon), { key: 1 })) : i("v-if", !0)
|
|
@@ -89,7 +89,7 @@ const de = /* @__PURE__ */ L({
|
|
|
89
89
|
@slot icon - The icon to display on the fab button
|
|
90
90
|
`),
|
|
91
91
|
M(l.$slots, "icon", {}, () => [
|
|
92
|
-
typeof l.icon == "string" ? (a(), d(m(
|
|
92
|
+
typeof l.icon == "string" ? (a(), d(m(n), {
|
|
93
93
|
key: 0,
|
|
94
94
|
name: l.icon
|
|
95
95
|
}, null, 8, ["name"])) : l.icon ? (a(), d(V(l.icon), { key: 1 })) : i("v-if", !0)
|
|
@@ -124,7 +124,7 @@ const de = /* @__PURE__ */ L({
|
|
|
124
124
|
@slot right-icon - The icon to display on the right of the button
|
|
125
125
|
`),
|
|
126
126
|
M(l.$slots, "right-icon", {}, () => [
|
|
127
|
-
typeof l.rightIcon == "string" ? (a(), d(m(
|
|
127
|
+
typeof l.rightIcon == "string" ? (a(), d(m(n), {
|
|
128
128
|
key: 0,
|
|
129
129
|
name: l.rightIcon
|
|
130
130
|
}, null, 8, ["name"])) : l.rightIcon ? (a(), d(V(l.rightIcon), { key: 1 })) : i("v-if", !0)
|
|
@@ -145,18 +145,18 @@ const de = /* @__PURE__ */ L({
|
|
|
145
145
|
}, 8, ["disabled", "class", "type"]));
|
|
146
146
|
}
|
|
147
147
|
}), G = (f, p) => {
|
|
148
|
-
const
|
|
148
|
+
const n = f.__vccOpts || f;
|
|
149
149
|
for (const [g, u] of p)
|
|
150
|
-
|
|
151
|
-
return
|
|
152
|
-
}, R = /* @__PURE__ */ G(de, [["__scopeId", "data-v-
|
|
150
|
+
n[g] = u;
|
|
151
|
+
return n;
|
|
152
|
+
}, R = /* @__PURE__ */ G(de, [["__scopeId", "data-v-4d87e490"]]), ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
153
153
|
__proto__: null,
|
|
154
154
|
default: R
|
|
155
155
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
156
156
|
function H(f, p) {
|
|
157
|
-
let
|
|
157
|
+
let n;
|
|
158
158
|
return function(...g) {
|
|
159
|
-
clearTimeout(
|
|
159
|
+
clearTimeout(n), n = setTimeout(() => {
|
|
160
160
|
f.apply(this, g);
|
|
161
161
|
}, p);
|
|
162
162
|
};
|
|
@@ -165,8 +165,8 @@ function me({
|
|
|
165
165
|
componentName: f,
|
|
166
166
|
providedId: p
|
|
167
167
|
}) {
|
|
168
|
-
const
|
|
169
|
-
return s(() => p ?? `${f}-${
|
|
168
|
+
const n = te();
|
|
169
|
+
return s(() => p ?? `${f}-${n == null ? void 0 : n.uid}`);
|
|
170
170
|
}
|
|
171
171
|
const fe = {
|
|
172
172
|
key: 0,
|
|
@@ -212,64 +212,64 @@ const fe = {
|
|
|
212
212
|
},
|
|
213
213
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
214
214
|
setup(f, { emit: p }) {
|
|
215
|
-
const
|
|
215
|
+
const n = C(() => Promise.resolve().then(() => ce)), g = C(() => import("./MazIcon-Cxrv3_OK.mjs")), u = C(() => import("./eye-slash-tjfxO0LK.mjs")), $ = C(() => import("./eye-DqO_Jx56.mjs")), r = C(() => import("./check-CL-vqe79.mjs")), t = f, y = p, h = A(!1), z = A(!1), w = A(), k = me({
|
|
216
216
|
componentName: "MazInput",
|
|
217
|
-
providedId:
|
|
217
|
+
providedId: t.id
|
|
218
218
|
});
|
|
219
219
|
le(() => {
|
|
220
220
|
var e;
|
|
221
|
-
|
|
221
|
+
t.autoFocus && ((e = w.value) == null || e.focus());
|
|
222
222
|
});
|
|
223
|
-
const o = s(() =>
|
|
224
|
-
if (!
|
|
225
|
-
if (
|
|
223
|
+
const o = s(() => t.type === "password"), c = s(() => h.value ? "text" : t.type), v = s(() => {
|
|
224
|
+
if (!t.noBorder) {
|
|
225
|
+
if (t.error)
|
|
226
226
|
return "maz-border-danger";
|
|
227
|
-
if (
|
|
227
|
+
if (t.success)
|
|
228
228
|
return "maz-border-success";
|
|
229
|
-
if (
|
|
229
|
+
if (t.warning)
|
|
230
230
|
return "maz-border-warning";
|
|
231
|
-
if (z.value ||
|
|
232
|
-
if (
|
|
231
|
+
if (z.value || t.borderActive) {
|
|
232
|
+
if (t.color === "black")
|
|
233
233
|
return "maz-border-black";
|
|
234
|
-
if (
|
|
234
|
+
if (t.color === "danger")
|
|
235
235
|
return "maz-border-danger";
|
|
236
|
-
if (
|
|
236
|
+
if (t.color === "info")
|
|
237
237
|
return "maz-border-info";
|
|
238
|
-
if (
|
|
238
|
+
if (t.color === "primary")
|
|
239
239
|
return "maz-border-primary";
|
|
240
|
-
if (
|
|
240
|
+
if (t.color === "secondary")
|
|
241
241
|
return "maz-border-secondary";
|
|
242
|
-
if (
|
|
242
|
+
if (t.color === "success")
|
|
243
243
|
return "maz-border-success";
|
|
244
|
-
if (
|
|
244
|
+
if (t.color === "warning")
|
|
245
245
|
return "maz-border-warning";
|
|
246
|
-
if (
|
|
246
|
+
if (t.color === "white")
|
|
247
247
|
return "maz-border-white";
|
|
248
248
|
}
|
|
249
249
|
return "--default-border";
|
|
250
250
|
}
|
|
251
251
|
}), T = j(), F = s(() => {
|
|
252
|
-
const { required: e, placeholder: I } =
|
|
252
|
+
const { required: e, placeholder: I } = t;
|
|
253
253
|
if (I)
|
|
254
254
|
return e ? `${I} *` : I;
|
|
255
255
|
}), l = s(() => D.value !== void 0 && D.value !== ""), U = H(
|
|
256
256
|
(e) => {
|
|
257
257
|
y("update:model-value", e);
|
|
258
258
|
},
|
|
259
|
-
typeof
|
|
259
|
+
typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
|
|
260
260
|
), J = (e) => {
|
|
261
|
-
if (
|
|
261
|
+
if (t.debounce)
|
|
262
262
|
return U(e);
|
|
263
263
|
y("update:model-value", e);
|
|
264
264
|
}, D = s({
|
|
265
|
-
get: () =>
|
|
265
|
+
get: () => t.modelValue,
|
|
266
266
|
set: (e) => J(e)
|
|
267
|
-
}), Q = s(() => (!!
|
|
267
|
+
}), Q = s(() => (!!t.label || !!t.hint) && (z.value || !!l.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), W = s(() => !!t.label || !!t.hint);
|
|
268
268
|
function X() {
|
|
269
|
-
return !!T["right-icon"] || o.value || !!T["valid-button"] ||
|
|
269
|
+
return !!T["right-icon"] || o.value || !!T["valid-button"] || t.validButton || !!t.rightIcon;
|
|
270
270
|
}
|
|
271
271
|
function Z() {
|
|
272
|
-
return !!T["left-icon"] || !!
|
|
272
|
+
return !!T["left-icon"] || !!t.leftIcon;
|
|
273
273
|
}
|
|
274
274
|
function _(e) {
|
|
275
275
|
y("focus", e), z.value = !0;
|
|
@@ -294,7 +294,7 @@ const fe = {
|
|
|
294
294
|
"--has-state": e.error || e.warning || e.success,
|
|
295
295
|
"--block": e.block
|
|
296
296
|
},
|
|
297
|
-
|
|
297
|
+
t.class,
|
|
298
298
|
`--${e.color}`,
|
|
299
299
|
`--${e.size}`
|
|
300
300
|
]]),
|
|
@@ -390,7 +390,7 @@ const fe = {
|
|
|
390
390
|
class: "maz-text-xl maz-text-muted"
|
|
391
391
|
})) : i("v-if", !0)
|
|
392
392
|
], !0) : i("v-if", !0),
|
|
393
|
-
o.value ? (a(), d(m(
|
|
393
|
+
o.value ? (a(), d(m(n), {
|
|
394
394
|
key: 1,
|
|
395
395
|
color: "transparent",
|
|
396
396
|
tabindex: "-1",
|
|
@@ -413,7 +413,7 @@ const fe = {
|
|
|
413
413
|
@slot valid-button - Replace the valid button by your own
|
|
414
414
|
`),
|
|
415
415
|
e.$slots["valid-button"] || e.validButton ? M(e.$slots, "valid-button", { key: 2 }, () => [
|
|
416
|
-
S(m(
|
|
416
|
+
S(m(n), {
|
|
417
417
|
color: "transparent",
|
|
418
418
|
disabled: e.disabled,
|
|
419
419
|
tabindex: "-1",
|
|
@@ -506,41 +506,41 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
|
506
506
|
},
|
|
507
507
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
508
508
|
setup(f, { emit: p }) {
|
|
509
|
-
const
|
|
510
|
-
get: () =>
|
|
509
|
+
const n = f, g = p, u = s({
|
|
510
|
+
get: () => n.modelValue,
|
|
511
511
|
set: (o) => y(o)
|
|
512
512
|
});
|
|
513
513
|
function $(o) {
|
|
514
|
-
return Math.round(o /
|
|
514
|
+
return Math.round(o / n.step) * n.step;
|
|
515
515
|
}
|
|
516
516
|
const r = (o) => {
|
|
517
517
|
if (typeof o == "number")
|
|
518
|
-
return o <=
|
|
519
|
-
},
|
|
518
|
+
return o <= n.min ? n.min : o >= n.max ? n.max : $(o);
|
|
519
|
+
}, t = H((o) => y(o), 300), y = (o) => {
|
|
520
520
|
o = r(o), u.value !== o && g("update:model-value", o);
|
|
521
521
|
};
|
|
522
522
|
y(u.value);
|
|
523
|
-
const h = s(() =>
|
|
524
|
-
if (!(
|
|
525
|
-
if ((u.value === void 0 || u.value === null) && Number.isFinite(
|
|
526
|
-
u.value =
|
|
523
|
+
const h = s(() => n.modelValue && n.modelValue >= n.max), z = s(() => n.modelValue && n.modelValue <= n.min), w = () => {
|
|
524
|
+
if (!(n.disabled || h.value)) {
|
|
525
|
+
if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
|
|
526
|
+
u.value = n.min;
|
|
527
527
|
return;
|
|
528
528
|
}
|
|
529
|
-
u.value = (u.value ?? 0) + 1 *
|
|
529
|
+
u.value = (u.value ?? 0) + 1 * n.step;
|
|
530
530
|
}
|
|
531
531
|
}, k = () => {
|
|
532
|
-
if (!(
|
|
533
|
-
if ((u.value === void 0 || u.value === null) && Number.isFinite(
|
|
534
|
-
u.value =
|
|
532
|
+
if (!(n.disabled || z.value)) {
|
|
533
|
+
if ((u.value === void 0 || u.value === null) && Number.isFinite(n.min)) {
|
|
534
|
+
u.value = n.min;
|
|
535
535
|
return;
|
|
536
536
|
}
|
|
537
|
-
u.value = (u.value ?? 0) - 1 *
|
|
537
|
+
u.value = (u.value ?? 0) - 1 * n.step;
|
|
538
538
|
}
|
|
539
539
|
};
|
|
540
540
|
return (o, c) => (a(), b(
|
|
541
541
|
"div",
|
|
542
542
|
{
|
|
543
|
-
class: B(["m-input-number", [`m-input-number--${o.size}`,
|
|
543
|
+
class: B(["m-input-number", [`m-input-number--${o.size}`, n.class, { "--block": o.block }]]),
|
|
544
544
|
style: K(o.style)
|
|
545
545
|
},
|
|
546
546
|
[
|
|
@@ -579,7 +579,7 @@ const Te = { render: Ve }, Se = /* @__PURE__ */ L({
|
|
|
579
579
|
onChange: c[1] || (c[1] = (v) => o.$emit("change", v)),
|
|
580
580
|
onBlur: c[2] || (c[2] = (v) => o.$emit("blur", v)),
|
|
581
581
|
onClick: c[3] || (c[3] = (v) => o.$emit("click", v)),
|
|
582
|
-
"onUpdate:modelValue": c[4] || (c[4] = (v) => m(
|
|
582
|
+
"onUpdate:modelValue": c[4] || (c[4] = (v) => m(t)(v))
|
|
583
583
|
}), null, 16, ["model-value", "class", "disabled", "min", "max", "step", "inputmode", "size", "onKeydown"]),
|
|
584
584
|
o.noButtons ? i("v-if", !0) : (a(), d(R, {
|
|
585
585
|
key: 1,
|
|
@@ -87,7 +87,7 @@ const me = {
|
|
|
87
87
|
},
|
|
88
88
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
89
89
|
setup(n, { emit: l }) {
|
|
90
|
-
const o = z(() => import("./MazBtn-
|
|
90
|
+
const o = z(() => import("./MazBtn-Ng8Jql0R.mjs")), i = z(() => import("./MazIcon-Cxrv3_OK.mjs")), f = z(() => import("./eye-slash-tjfxO0LK.mjs")), N = z(() => import("./eye-DqO_Jx56.mjs")), T = z(() => import("./check-CL-vqe79.mjs")), t = n, c = l, b = B(!1), p = B(!1), a = B(), r = ce({
|
|
91
91
|
componentName: "MazInput",
|
|
92
92
|
providedId: t.id
|
|
93
93
|
});
|
|
@@ -299,7 +299,7 @@ const ve = {
|
|
|
299
299
|
color: { default: "primary" },
|
|
300
300
|
type: { default: "button" },
|
|
301
301
|
rounded: { type: Boolean },
|
|
302
|
-
roundedSize: { default:
|
|
302
|
+
roundedSize: { default: "lg" },
|
|
303
303
|
noRounded: { type: Boolean },
|
|
304
304
|
outline: { type: Boolean },
|
|
305
305
|
pastel: { type: Boolean },
|
|
@@ -316,7 +316,7 @@ const ve = {
|
|
|
316
316
|
contentClass: { default: void 0 }
|
|
317
317
|
},
|
|
318
318
|
setup(f) {
|
|
319
|
-
const y = V(() => import("./MazSpinner-
|
|
319
|
+
const y = V(() => import("./MazSpinner-DibP0zFm.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: h, to: g } = ie(), z = H(), r = f;
|
|
320
320
|
ue(() => {
|
|
321
321
|
r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
322
322
|
});
|
|
@@ -326,10 +326,10 @@ const ve = {
|
|
|
326
326
|
() => (r.loading || r.disabled) && o.value === "button"
|
|
327
327
|
), $ = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), D = u(() => `--is-${r.variant}`), w = u(() => r.loading && r.variant === "button"), C = u(() => !!z["left-icon"] || r.leftIcon), l = u(() => !!z["right-icon"] || r.rightIcon), i = u(() => C.value || l.value), c = u(() => r.fab && (r.icon || !!z.icon)), d = u(() => o.value === "button" ? r.type : void 0);
|
|
328
328
|
return (t, I) => (a(), p(F(o.value), {
|
|
329
|
-
disabled: m.value,
|
|
329
|
+
disabled: m.value || void 0,
|
|
330
330
|
class: M(["m-btn", [
|
|
331
331
|
`--${t.size}`,
|
|
332
|
-
`--rounded-${t.roundedSize}`,
|
|
332
|
+
!t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
|
|
333
333
|
k.value,
|
|
334
334
|
$.value,
|
|
335
335
|
D.value,
|
|
@@ -435,7 +435,7 @@ const ve = {
|
|
|
435
435
|
/* FORWARDED */
|
|
436
436
|
}, 8, ["disabled", "class", "type"]));
|
|
437
437
|
}
|
|
438
|
-
}), W = /* @__PURE__ */ U(Ie, [["__scopeId", "data-v-
|
|
438
|
+
}), W = /* @__PURE__ */ U(Ie, [["__scopeId", "data-v-4d87e490"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
439
439
|
__proto__: null,
|
|
440
440
|
default: W
|
|
441
441
|
}, Symbol.toStringTag, { value: "Module" })), $e = {
|
|
@@ -3,7 +3,7 @@ var v = Object.defineProperty;
|
|
|
3
3
|
var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
4
4
|
var n = (a, e, s) => (f(a, typeof e != "symbol" ? e + "" : e, s), s);
|
|
5
5
|
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 u, createCommentVNode as z, renderSlot as B } from "vue";
|
|
6
|
-
import { _ as k } from "./MazAvatar-
|
|
6
|
+
import { _ as k } from "./MazAvatar-QDlH6tvz.mjs";
|
|
7
7
|
const H = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", w = {
|
|
8
8
|
baseClass: "m-lazy-img",
|
|
9
9
|
loadedClass: "m-lazy-loaded",
|
|
@@ -206,7 +206,7 @@ const M = {
|
|
|
206
206
|
},
|
|
207
207
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
208
208
|
setup(a) {
|
|
209
|
-
const e = b(() => import("./MazSpinner-
|
|
209
|
+
const e = b(() => import("./MazSpinner-CXoCX_ho.mjs")), s = a, t = m(() => s.image || s.src), r = m(() => {
|
|
210
210
|
var o;
|
|
211
211
|
return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
|
|
212
212
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../assets/MazPagination.css';
|
|
2
|
-
import { defineComponent as q, defineAsyncComponent as T, useAttrs as H, useSlots as J, onBeforeMount as K, computed as t, openBlock as s, createBlock as
|
|
2
|
+
import { defineComponent as q, defineAsyncComponent as T, useAttrs as H, useSlots as J, onBeforeMount as K, computed as t, openBlock as s, createBlock as p, resolveDynamicComponent as F, normalizeClass as S, withCtx as k, createElementBlock as b, createCommentVNode as l, renderSlot as c, unref as m, createElementVNode as u, createVNode as v, mergeProps as h, createTextVNode as $, toDisplayString as M, Fragment as Q, renderList as W } from "vue";
|
|
3
3
|
const X = /* @__PURE__ */ q({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -8,7 +8,7 @@ const X = /* @__PURE__ */ q({
|
|
|
8
8
|
color: { default: "primary" },
|
|
9
9
|
type: { default: "button" },
|
|
10
10
|
rounded: { type: Boolean },
|
|
11
|
-
roundedSize: { default:
|
|
11
|
+
roundedSize: { default: "lg" },
|
|
12
12
|
noRounded: { type: Boolean },
|
|
13
13
|
outline: { type: Boolean },
|
|
14
14
|
pastel: { type: Boolean },
|
|
@@ -25,20 +25,20 @@ const X = /* @__PURE__ */ q({
|
|
|
25
25
|
contentClass: { default: void 0 }
|
|
26
26
|
},
|
|
27
27
|
setup(y) {
|
|
28
|
-
const V = T(() => import("./MazSpinner-
|
|
28
|
+
const V = T(() => import("./MazSpinner-BxYAlebs.mjs")), d = T(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: P, to: C } = H(), B = J(), e = y;
|
|
29
29
|
K(() => {
|
|
30
30
|
e.icon && !e.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
31
31
|
});
|
|
32
32
|
const I = t(() => P ? "a" : C ? "router-link" : "button"), i = t(
|
|
33
33
|
() => e.pastel ? `--${e.color}-pastel` : e.outline ? `--${e.color}-outline` : `--${e.color}`
|
|
34
|
-
),
|
|
34
|
+
), g = t(
|
|
35
35
|
() => (e.loading || e.disabled) && I.value === "button"
|
|
36
|
-
), f = t(() =>
|
|
37
|
-
return (a, j) => (s(),
|
|
38
|
-
disabled:
|
|
36
|
+
), f = t(() => g.value ? "--cursor-default" : "--cursor-pointer"), R = t(() => `--is-${e.variant}`), z = t(() => e.loading && e.variant === "button"), E = t(() => !!B["left-icon"] || e.leftIcon), D = t(() => !!B["right-icon"] || e.rightIcon), O = t(() => E.value || D.value), U = t(() => e.fab && (e.icon || !!B.icon)), w = t(() => I.value === "button" ? e.type : void 0);
|
|
37
|
+
return (a, j) => (s(), p(F(I.value), {
|
|
38
|
+
disabled: g.value || void 0,
|
|
39
39
|
class: S(["m-btn", [
|
|
40
40
|
`--${a.size}`,
|
|
41
|
-
`--rounded-${a.roundedSize}`,
|
|
41
|
+
!a.fab && a.roundedSize && `--rounded-${a.roundedSize}`,
|
|
42
42
|
i.value,
|
|
43
43
|
f.value,
|
|
44
44
|
R.value,
|
|
@@ -47,7 +47,7 @@ const X = /* @__PURE__ */ q({
|
|
|
47
47
|
"--no-underline": a.noUnderline,
|
|
48
48
|
"--fab": a.fab,
|
|
49
49
|
"--loading": a.loading,
|
|
50
|
-
"--disabled":
|
|
50
|
+
"--disabled": g.value,
|
|
51
51
|
"--icon": O.value,
|
|
52
52
|
"--rounded": a.rounded,
|
|
53
53
|
"--no-rounded": a.noRounded,
|
|
@@ -68,11 +68,11 @@ const X = /* @__PURE__ */ q({
|
|
|
68
68
|
l(`
|
|
69
69
|
@slot left-icon - The icon to display on the left of the button
|
|
70
70
|
`),
|
|
71
|
-
|
|
72
|
-
typeof a.leftIcon == "string" ? (s(),
|
|
71
|
+
c(a.$slots, "left-icon", {}, () => [
|
|
72
|
+
typeof a.leftIcon == "string" ? (s(), p(m(d), {
|
|
73
73
|
key: 0,
|
|
74
74
|
name: a.leftIcon
|
|
75
|
-
}, null, 8, ["name"])) : a.leftIcon ? (s(),
|
|
75
|
+
}, null, 8, ["name"])) : a.leftIcon ? (s(), p(F(a.leftIcon), { key: 1 })) : l("v-if", !0)
|
|
76
76
|
], !0)
|
|
77
77
|
],
|
|
78
78
|
2
|
|
@@ -88,11 +88,11 @@ const X = /* @__PURE__ */ q({
|
|
|
88
88
|
l(`
|
|
89
89
|
@slot icon - The icon to display on the fab button
|
|
90
90
|
`),
|
|
91
|
-
|
|
92
|
-
typeof a.icon == "string" ? (s(),
|
|
91
|
+
c(a.$slots, "icon", {}, () => [
|
|
92
|
+
typeof a.icon == "string" ? (s(), p(m(d), {
|
|
93
93
|
key: 0,
|
|
94
94
|
name: a.icon
|
|
95
|
-
}, null, 8, ["name"])) : a.icon ? (s(),
|
|
95
|
+
}, null, 8, ["name"])) : a.icon ? (s(), p(F(a.icon), { key: 1 })) : l("v-if", !0)
|
|
96
96
|
], !0)
|
|
97
97
|
],
|
|
98
98
|
2
|
|
@@ -108,7 +108,7 @@ const X = /* @__PURE__ */ q({
|
|
|
108
108
|
l(`
|
|
109
109
|
@slot default - The content of the button
|
|
110
110
|
`),
|
|
111
|
-
|
|
111
|
+
c(a.$slots, "default", {}, void 0, !0)
|
|
112
112
|
],
|
|
113
113
|
2
|
|
114
114
|
/* CLASS */
|
|
@@ -123,17 +123,17 @@ const X = /* @__PURE__ */ q({
|
|
|
123
123
|
l(`
|
|
124
124
|
@slot right-icon - The icon to display on the right of the button
|
|
125
125
|
`),
|
|
126
|
-
|
|
127
|
-
typeof a.rightIcon == "string" ? (s(),
|
|
126
|
+
c(a.$slots, "right-icon", {}, () => [
|
|
127
|
+
typeof a.rightIcon == "string" ? (s(), p(m(d), {
|
|
128
128
|
key: 0,
|
|
129
129
|
name: a.rightIcon
|
|
130
|
-
}, null, 8, ["name"])) : a.rightIcon ? (s(),
|
|
130
|
+
}, null, 8, ["name"])) : a.rightIcon ? (s(), p(F(a.rightIcon), { key: 1 })) : l("v-if", !0)
|
|
131
131
|
], !0)
|
|
132
132
|
],
|
|
133
133
|
2
|
|
134
134
|
/* CLASS */
|
|
135
135
|
)) : l("v-if", !0),
|
|
136
|
-
z.value ? (s(),
|
|
136
|
+
z.value ? (s(), p(m(V), {
|
|
137
137
|
key: 4,
|
|
138
138
|
class: "m-btn-loader",
|
|
139
139
|
size: "2em",
|
|
@@ -149,7 +149,7 @@ const X = /* @__PURE__ */ q({
|
|
|
149
149
|
for (const [P, C] of V)
|
|
150
150
|
d[P] = C;
|
|
151
151
|
return d;
|
|
152
|
-
}, N = /* @__PURE__ */ G(X, [["__scopeId", "data-v-
|
|
152
|
+
}, N = /* @__PURE__ */ G(X, [["__scopeId", "data-v-4d87e490"]]), Y = {
|
|
153
153
|
class: "m-pagination",
|
|
154
154
|
role: "navigation",
|
|
155
155
|
"aria-label": "page navigation"
|
|
@@ -176,7 +176,7 @@ const X = /* @__PURE__ */ q({
|
|
|
176
176
|
}, e = y, I = V, i = t(() => ({
|
|
177
177
|
...B,
|
|
178
178
|
...e.buttonProps
|
|
179
|
-
})),
|
|
179
|
+
})), g = t(() => e.modelValue > 1 ? e.modelValue - 1 : 1), f = t(
|
|
180
180
|
() => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
|
|
181
181
|
), R = t(
|
|
182
182
|
() => Array.from({ length: e.totalPages }, (o, r) => {
|
|
@@ -210,7 +210,7 @@ const X = /* @__PURE__ */ q({
|
|
|
210
210
|
return (o, r) => (s(), b("nav", Y, [
|
|
211
211
|
u("ul", null, [
|
|
212
212
|
u("li", null, [
|
|
213
|
-
|
|
213
|
+
v(N, h(i.value, {
|
|
214
214
|
disabled: o.modelValue === 1,
|
|
215
215
|
"aria-label": "First Page, Page 1",
|
|
216
216
|
"aria-setsize": o.resultsSize ?? void 0,
|
|
@@ -224,24 +224,24 @@ const X = /* @__PURE__ */ q({
|
|
|
224
224
|
@slot Accessible text for screen reader of the previous page button
|
|
225
225
|
@binding {number} page - first page number
|
|
226
226
|
`),
|
|
227
|
-
|
|
227
|
+
c(o.$slots, "first-page-sr", { page: 1 }, () => [
|
|
228
228
|
$("First Page, page 1")
|
|
229
229
|
], !0)
|
|
230
230
|
]),
|
|
231
|
-
|
|
231
|
+
v(m(P))
|
|
232
232
|
]),
|
|
233
233
|
_: 3
|
|
234
234
|
/* FORWARDED */
|
|
235
235
|
}, 16, ["disabled", "aria-setsize", "size"])
|
|
236
236
|
]),
|
|
237
237
|
u("li", null, [
|
|
238
|
-
|
|
238
|
+
v(N, h(i.value, {
|
|
239
239
|
disabled: o.modelValue === 1,
|
|
240
|
-
"aria-label": `Previous Page, Page ${
|
|
240
|
+
"aria-label": `Previous Page, Page ${g.value}`,
|
|
241
241
|
"aria-setsize": o.resultsSize ?? void 0,
|
|
242
|
-
"aria-posinset":
|
|
242
|
+
"aria-posinset": g.value,
|
|
243
243
|
size: o.size,
|
|
244
|
-
onClick: r[1] || (r[1] = (n) => A(
|
|
244
|
+
onClick: r[1] || (r[1] = (n) => A(g.value))
|
|
245
245
|
}), {
|
|
246
246
|
default: k(() => [
|
|
247
247
|
u("span", _, [
|
|
@@ -249,15 +249,15 @@ const X = /* @__PURE__ */ q({
|
|
|
249
249
|
@slot Accessible text for screen reader of the first page button
|
|
250
250
|
@binding {number} page - previous page number
|
|
251
251
|
`),
|
|
252
|
-
|
|
252
|
+
c(o.$slots, "previous-page-sr", { page: g.value }, () => [
|
|
253
253
|
$(
|
|
254
|
-
" Previous Page, page " + M(
|
|
254
|
+
" Previous Page, page " + M(g.value),
|
|
255
255
|
1
|
|
256
256
|
/* TEXT */
|
|
257
257
|
)
|
|
258
258
|
], !0)
|
|
259
259
|
]),
|
|
260
|
-
|
|
260
|
+
v(m(d))
|
|
261
261
|
]),
|
|
262
262
|
_: 3
|
|
263
263
|
/* FORWARDED */
|
|
@@ -270,7 +270,7 @@ const X = /* @__PURE__ */ q({
|
|
|
270
270
|
id: "number" in n ? `button-${L}-${n.number}` : `ellipsis-${L}`,
|
|
271
271
|
key: "number" in n ? `button-${L}-${n.number}` : `ellipsis-${L}`
|
|
272
272
|
}, [
|
|
273
|
-
"number" in n ? (s(),
|
|
273
|
+
"number" in n ? (s(), p(N, h({ key: 0 }, {
|
|
274
274
|
...i.value,
|
|
275
275
|
color: n.isActive ? o.activeColor : i.value.color,
|
|
276
276
|
outline: n.isActive ? !1 : i.value.outline
|
|
@@ -290,7 +290,7 @@ const X = /* @__PURE__ */ q({
|
|
|
290
290
|
@slot Accessible text for screen reader of the current page button
|
|
291
291
|
@binding {number} page - current page number
|
|
292
292
|
`),
|
|
293
|
-
|
|
293
|
+
c(o.$slots, "page-sr", {
|
|
294
294
|
page: n.number
|
|
295
295
|
}, () => [
|
|
296
296
|
$(
|
|
@@ -312,7 +312,7 @@ const X = /* @__PURE__ */ q({
|
|
|
312
312
|
"div",
|
|
313
313
|
h({ key: 1 }, i.value, { class: "flex p-2 flex-center" }),
|
|
314
314
|
[
|
|
315
|
-
|
|
315
|
+
v(m(C))
|
|
316
316
|
],
|
|
317
317
|
16
|
|
318
318
|
/* FULL_PROPS */
|
|
@@ -322,7 +322,7 @@ const X = /* @__PURE__ */ q({
|
|
|
322
322
|
/* KEYED_FRAGMENT */
|
|
323
323
|
)),
|
|
324
324
|
u("li", null, [
|
|
325
|
-
|
|
325
|
+
v(N, h(i.value, {
|
|
326
326
|
disabled: o.modelValue === o.totalPages,
|
|
327
327
|
"aria-label": `Next Page, Page ${f.value}`,
|
|
328
328
|
"aria-setsize": o.resultsSize ?? void 0,
|
|
@@ -336,7 +336,7 @@ const X = /* @__PURE__ */ q({
|
|
|
336
336
|
@slot Accessible text for screen reader of the next page button
|
|
337
337
|
@binding {number} page - next page number
|
|
338
338
|
`),
|
|
339
|
-
|
|
339
|
+
c(o.$slots, "next-page-sr", { page: f.value }, () => [
|
|
340
340
|
$(
|
|
341
341
|
"Next Page, page " + M(f.value),
|
|
342
342
|
1
|
|
@@ -344,14 +344,14 @@ const X = /* @__PURE__ */ q({
|
|
|
344
344
|
)
|
|
345
345
|
], !0)
|
|
346
346
|
]),
|
|
347
|
-
|
|
347
|
+
v(m(d), { class: "-maz-rotate-180" })
|
|
348
348
|
]),
|
|
349
349
|
_: 3
|
|
350
350
|
/* FORWARDED */
|
|
351
351
|
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
352
352
|
]),
|
|
353
353
|
u("li", null, [
|
|
354
|
-
|
|
354
|
+
v(N, h(i.value, {
|
|
355
355
|
disabled: o.modelValue === o.totalPages,
|
|
356
356
|
"aria-label": `Next Page, Page ${o.totalPages}`,
|
|
357
357
|
"aria-setsize": o.resultsSize ?? void 0,
|
|
@@ -365,7 +365,7 @@ const X = /* @__PURE__ */ q({
|
|
|
365
365
|
@slot Accessible text for screen reader of the last page button
|
|
366
366
|
@binding {number} page - last page number
|
|
367
367
|
`),
|
|
368
|
-
|
|
368
|
+
c(o.$slots, "last-page-sr", { page: o.totalPages }, () => [
|
|
369
369
|
$(
|
|
370
370
|
"Last Page, page " + M(o.totalPages),
|
|
371
371
|
1
|
|
@@ -373,7 +373,7 @@ const X = /* @__PURE__ */ q({
|
|
|
373
373
|
)
|
|
374
374
|
], !0)
|
|
375
375
|
]),
|
|
376
|
-
|
|
376
|
+
v(m(P), { class: "-maz-rotate-180" })
|
|
377
377
|
]),
|
|
378
378
|
_: 3
|
|
379
379
|
/* FORWARDED */
|