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.
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +5 -0
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- 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/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/MazPullToRefresh.d.ts +2 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.d.ts +2 -2
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazBtn.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/MazPicker.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-DeAah_or.mjs} +1 -1
- package/components/chunks/MazBtn-BV212IYv.mjs +118 -0
- package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BXvObcWn.mjs} +21 -19
- package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-C2dJYsnq.mjs} +21 -19
- package/components/chunks/MazBtn-C2htID_X.mjs +118 -0
- package/components/chunks/MazBtn-C4xZC-A2.mjs +118 -0
- package/components/chunks/{MazBtn-CVB5qDjV.mjs → MazBtn-C5IbN0rp.mjs} +34 -32
- package/components/chunks/MazBtn-CEFfMm7k.mjs +118 -0
- package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-CESOVC-a.mjs} +20 -18
- package/components/chunks/MazBtn-CLFly8Ie.mjs +118 -0
- package/components/chunks/MazBtn-CRpqDW12.mjs +118 -0
- package/components/chunks/MazBtn-D2H26ExI.mjs +118 -0
- package/components/chunks/MazBtn-y4vRRWDg.mjs +118 -0
- package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-zMzxqcCs.mjs} +34 -32
- package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-BF-2_gZV.mjs} +1 -1
- package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DVBUt8NL.mjs} +1 -1
- package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-CEfJco3U.mjs} +1 -1
- package/components/chunks/MazCheckbox-CeVxgVY8.mjs +146 -0
- package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-mgtQBs4K.mjs} +1 -1
- package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-fn7vXgBg.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-C8dpQb5k.mjs} +2 -2
- package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-CXJsK5ve.mjs} +2 -2
- package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-BXX3RaoN.mjs} +1 -1
- package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
- package/components/chunks/MazInput-AcA93-8Q.mjs +291 -0
- package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-Dnwxraz4.mjs} +1 -1
- package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-OY_UqCMs.mjs} +173 -171
- package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DvVAZa12.mjs} +1 -1
- package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-DKlGT2IB.mjs} +170 -168
- package/components/chunks/MazLoadingBar-By1umvdC.mjs +32 -0
- package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-BL9LU84U.mjs} +132 -130
- package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-C7gUk5lg.mjs} +3 -3
- package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-Dhm3u2MN.mjs} +536 -534
- package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-ck8cl1-N.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-hEpUqVC-.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-CmMxOc69.mjs} +1 -1
- package/components/chunks/MazSelect-CGsMRdr7.mjs +568 -0
- package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-ed445MXs.mjs} +2 -2
- package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-Akyx5wgU.mjs} +1 -1
- package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-B2dsE23u.mjs} +1 -1
- package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-BCOeuzTB.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-BakExtKd.mjs} +1 -1
- package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-C9meLNrb.mjs} +1 -1
- package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-CKOy0M1T.mjs} +1 -1
- package/components/chunks/MazSpinner-CL6orjX7.mjs +37 -0
- package/components/chunks/MazSpinner-CQTq0J6f.mjs +37 -0
- package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-CeZk8jA9.mjs} +1 -1
- package/components/chunks/MazSpinner-CqS3onAE.mjs +37 -0
- package/components/chunks/MazSpinner-D1zj-581.mjs +37 -0
- package/components/chunks/MazSpinner-DJ2t85tY.mjs +37 -0
- package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DbaTlD5B.mjs} +1 -1
- package/components/chunks/MazSpinner-DgJ9tVv_.mjs +37 -0
- package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-DoKvoICM.mjs} +1 -1
- package/components/chunks/MazSpinner-Oy4E193R.mjs +37 -0
- package/components/chunks/MazTable-QwG-Kh88.mjs +692 -0
- package/components/chunks/MazTableCell-BSNyqTSX.mjs +23 -0
- package/components/chunks/MazTableRow-CgubMdrX.mjs +30 -0
- package/components/chunks/MazTableTitle-h4dattYD.mjs +23 -0
- package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand-BvqRDM9d.mjs} +1 -1
- package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
- package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
- package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DeAZcD0R.cjs} +3 -3
- package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-DvffpPyV.mjs} +21 -19
- package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BiwOZEZl.cjs} +1 -1
- package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-D2B0umvn.mjs} +1 -1
- package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-CZIYnX05.cjs} +1 -1
- package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-Csgl_Uho.mjs} +1 -1
- package/modules/chunks/index-B6Pf_QhC.cjs +149 -0
- package/modules/chunks/{index-aKGx1nxl.mjs → index-C34aEXzu.mjs} +319 -314
- 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 +5 -0
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazTable.vue.d.ts +2 -2
- package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
- package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
- package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
- package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
- package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
- package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
- package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
- package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
- package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
- package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
- package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
- package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
- package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
- package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
- package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
- 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
|
|
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
|
|
30
|
-
() =>
|
|
31
|
-
),
|
|
32
|
-
() => (
|
|
33
|
-
), z =
|
|
34
|
-
return (a,
|
|
35
|
-
disabled:
|
|
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
|
-
|
|
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":
|
|
48
|
-
"--icon":
|
|
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:
|
|
57
|
+
type: U.value
|
|
56
58
|
}, {
|
|
57
|
-
default:
|
|
58
|
-
|
|
59
|
+
default: V(() => [
|
|
60
|
+
l(`
|
|
59
61
|
@slot left-icon - The icon to display on the left of the button
|
|
60
62
|
`),
|
|
61
|
-
|
|
62
|
-
typeof a.leftIcon == "string" ? (i(),
|
|
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([
|
|
66
|
-
}, null, 8, ["name", "class"])) : a.leftIcon ? (i(),
|
|
67
|
+
class: y([p.value])
|
|
68
|
+
}, null, 8, ["name", "class"])) : a.leftIcon ? (i(), m(F(a.leftIcon), {
|
|
67
69
|
key: 1,
|
|
68
|
-
class: y([
|
|
69
|
-
}, null, 8, ["class"])) :
|
|
70
|
+
class: y([p.value])
|
|
71
|
+
}, null, 8, ["class"])) : l("v-if", !0)
|
|
70
72
|
], !0),
|
|
71
|
-
|
|
73
|
+
l(`
|
|
72
74
|
@slot icon - The icon to display on the fab button
|
|
73
75
|
`),
|
|
74
|
-
|
|
75
|
-
typeof a.icon == "string" ? (i(),
|
|
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([
|
|
79
|
-
}, null, 8, ["name", "class"])) : a.icon ? (i(),
|
|
80
|
+
class: y([p.value])
|
|
81
|
+
}, null, 8, ["name", "class"])) : a.icon ? (i(), m(F(a.icon), {
|
|
80
82
|
key: 1,
|
|
81
|
-
class: y([
|
|
82
|
-
}, null, 8, ["class"])) :
|
|
83
|
-
], !0) :
|
|
84
|
-
|
|
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
|
-
|
|
88
|
-
|
|
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
|
-
|
|
92
|
-
typeof a.rightIcon == "string" ? (i(),
|
|
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([
|
|
96
|
-
}, null, 8, ["name", "class"])) : a.rightIcon ? (i(),
|
|
97
|
+
class: y([p.value])
|
|
98
|
+
}, null, 8, ["name", "class"])) : a.rightIcon ? (i(), m(F(a.rightIcon), {
|
|
97
99
|
key: 1,
|
|
98
|
-
class: y([
|
|
99
|
-
}, null, 8, ["class"])) :
|
|
100
|
-
], !0) :
|
|
101
|
-
|
|
102
|
-
|
|
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
|
-
])) :
|
|
108
|
+
])) : l("v-if", !0)
|
|
107
109
|
]),
|
|
108
110
|
_: 3
|
|
109
111
|
/* FORWARDED */
|
|
110
112
|
}, 8, ["disabled", "class", "type"]));
|
|
111
113
|
}
|
|
112
|
-
}), G = (P,
|
|
114
|
+
}), G = (P, n) => {
|
|
113
115
|
const e = P.__vccOpts || P;
|
|
114
|
-
for (const [b, h] of
|
|
116
|
+
for (const [b, h] of n)
|
|
115
117
|
e[b] = h;
|
|
116
118
|
return e;
|
|
117
|
-
},
|
|
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:
|
|
135
|
-
const e = P, b =
|
|
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 =
|
|
142
|
-
...
|
|
143
|
+
}, u = s(() => ({
|
|
144
|
+
...S,
|
|
143
145
|
...e.buttonProps
|
|
144
|
-
})),
|
|
146
|
+
})), g = s(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = s(
|
|
145
147
|
() => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
|
|
146
|
-
),
|
|
148
|
+
), I = s(
|
|
147
149
|
() => Array.from({ length: e.totalPages }, (t, r) => {
|
|
148
|
-
const
|
|
150
|
+
const o = r + 1;
|
|
149
151
|
return {
|
|
150
|
-
number:
|
|
151
|
-
isActive:
|
|
152
|
-
loading:
|
|
152
|
+
number: o,
|
|
153
|
+
isActive: o === e.modelValue,
|
|
154
|
+
loading: o === e.modelValue && e.loading
|
|
153
155
|
};
|
|
154
156
|
})
|
|
155
|
-
),
|
|
156
|
-
() => e.modelValue - e.pageRange > 1 ?
|
|
157
|
-
),
|
|
158
|
-
() => e.modelValue < e.totalPages - e.pageRange ?
|
|
159
|
-
),
|
|
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
|
-
),
|
|
163
|
+
), L = s(() => I.value.slice(T.value, D.value)), U = s(
|
|
162
164
|
() => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
|
|
163
|
-
),
|
|
165
|
+
), p = s(
|
|
164
166
|
() => e.modelValue < e.totalPages - e.pageRange - 1 ? [{ divider: !0 }] : []
|
|
165
|
-
),
|
|
166
|
-
...
|
|
167
|
-
...
|
|
168
|
-
...
|
|
169
|
-
...
|
|
170
|
-
...
|
|
167
|
+
), w = s(() => [
|
|
168
|
+
...M.value,
|
|
169
|
+
...U.value,
|
|
170
|
+
...L.value,
|
|
171
|
+
...p.value,
|
|
172
|
+
...O.value
|
|
171
173
|
]);
|
|
172
|
-
function
|
|
174
|
+
function a(t) {
|
|
173
175
|
t !== e.modelValue && b("update:model-value", t);
|
|
174
176
|
}
|
|
175
|
-
return (t, r) => (i(),
|
|
177
|
+
return (t, r) => (i(), B("nav", Y, [
|
|
176
178
|
d("ul", null, [
|
|
177
179
|
d("li", null, [
|
|
178
|
-
|
|
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] = (
|
|
186
|
+
onClick: r[0] || (r[0] = (o) => a(1))
|
|
185
187
|
}), {
|
|
186
|
-
default:
|
|
188
|
+
default: V(() => [
|
|
187
189
|
d("span", Z, [
|
|
188
|
-
|
|
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
|
-
|
|
193
|
-
r[4] || (r[4] =
|
|
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
|
-
|
|
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
|
-
|
|
205
|
+
c(j, $(u.value, {
|
|
204
206
|
disabled: t.modelValue === 1,
|
|
205
|
-
"aria-label": `Previous Page, Page ${
|
|
207
|
+
"aria-label": `Previous Page, Page ${g.value}`,
|
|
206
208
|
"aria-setsize": t.resultsSize ?? void 0,
|
|
207
|
-
"aria-posinset":
|
|
209
|
+
"aria-posinset": g.value,
|
|
208
210
|
size: t.size,
|
|
209
|
-
onClick: r[1] || (r[1] = (
|
|
211
|
+
onClick: r[1] || (r[1] = (o) => a(g.value))
|
|
210
212
|
}), {
|
|
211
|
-
default:
|
|
213
|
+
default: V(() => [
|
|
212
214
|
d("span", _, [
|
|
213
|
-
|
|
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
|
-
|
|
218
|
-
|
|
219
|
-
" Previous Page, page " +
|
|
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
|
-
|
|
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),
|
|
233
|
+
(i(!0), B(
|
|
232
234
|
K,
|
|
233
235
|
null,
|
|
234
|
-
Q(
|
|
235
|
-
id: "number" in
|
|
236
|
-
key: "number" in
|
|
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
|
|
240
|
+
"number" in o ? (i(), m(j, $({
|
|
239
241
|
key: 0,
|
|
240
242
|
ref_for: !0
|
|
241
243
|
}, {
|
|
242
244
|
...u.value,
|
|
243
|
-
color:
|
|
244
|
-
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 ${
|
|
248
|
-
"aria-current":
|
|
249
|
+
"aria-label": `Page ${o.number}`,
|
|
250
|
+
"aria-current": o.isActive ? "true" : "false",
|
|
249
251
|
"aria-setsize": t.resultsSize ?? void 0,
|
|
250
|
-
loading:
|
|
251
|
-
"aria-posinset":
|
|
252
|
-
class: { active:
|
|
253
|
-
onClick: (oe) =>
|
|
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:
|
|
257
|
+
default: V(() => [
|
|
256
258
|
d("span", ee, [
|
|
257
|
-
|
|
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
|
-
|
|
262
|
-
page:
|
|
263
|
+
f(t.$slots, "page-sr", {
|
|
264
|
+
page: o.number
|
|
263
265
|
}, () => [
|
|
264
|
-
|
|
265
|
-
"Page " +
|
|
266
|
+
k(
|
|
267
|
+
"Page " + R(o.number),
|
|
266
268
|
1
|
|
267
269
|
/* TEXT */
|
|
268
270
|
)
|
|
269
271
|
], !0)
|
|
270
272
|
]),
|
|
271
|
-
|
|
272
|
-
" " +
|
|
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"])) :
|
|
281
|
+
}, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : o.divider ? (i(), B(
|
|
280
282
|
"div",
|
|
281
|
-
|
|
283
|
+
$({
|
|
282
284
|
key: 1,
|
|
283
285
|
ref_for: !0
|
|
284
286
|
}, u.value, { class: "flex p-2 flex-center" }),
|
|
285
287
|
[
|
|
286
|
-
|
|
288
|
+
c(v(C))
|
|
287
289
|
],
|
|
288
290
|
16
|
|
289
291
|
/* FULL_PROPS */
|
|
290
|
-
)) :
|
|
292
|
+
)) : l("v-if", !0)
|
|
291
293
|
], 8, x))),
|
|
292
294
|
128
|
|
293
295
|
/* KEYED_FRAGMENT */
|
|
294
296
|
)),
|
|
295
297
|
d("li", null, [
|
|
296
|
-
|
|
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] = (
|
|
304
|
+
onClick: r[2] || (r[2] = (o) => a(z.value))
|
|
303
305
|
}), {
|
|
304
|
-
default:
|
|
306
|
+
default: V(() => [
|
|
305
307
|
d("span", ae, [
|
|
306
|
-
|
|
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
|
-
|
|
311
|
-
|
|
312
|
-
"Next Page, page " +
|
|
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
|
-
|
|
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
|
-
|
|
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] = (
|
|
333
|
+
onClick: r[3] || (r[3] = (o) => a(t.totalPages))
|
|
332
334
|
}), {
|
|
333
|
-
default:
|
|
335
|
+
default: V(() => [
|
|
334
336
|
d("span", te, [
|
|
335
|
-
|
|
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
|
-
|
|
340
|
-
|
|
341
|
-
"Last Page, page " +
|
|
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
|
-
|
|
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
|
-
}),
|
|
358
|
+
}), le = /* @__PURE__ */ G(ne, [["__scopeId", "data-v-8b9651c3"]]);
|
|
357
359
|
export {
|
|
358
|
-
|
|
360
|
+
le as M,
|
|
359
361
|
G as _
|
|
360
362
|
};
|
package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-C7gUk5lg.mjs}
RENAMED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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,
|