maz-ui 3.47.1 → 3.47.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +36 -37
- package/components/MazAnimatedCounter.mjs +14 -16
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +66 -71
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +162 -185
- package/components/MazExpandAnimation.mjs +20 -21
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +30 -31
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLink.mjs +18 -30
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +37 -42
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +107 -116
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +24 -28
- package/components/MazTable.d.ts +31 -54
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.mjs +32 -34
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazPhoneNumberInput.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/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBadge-CNSfzYq-.mjs → MazBadge-CqppWg2j.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
- package/{modules/chunks/MazBtn-CTqI4qhg.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
- package/components/chunks/{MazBtn-TkePGm5o.mjs → MazBtn-40lm8-AL.mjs} +37 -49
- package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
- package/components/chunks/{MazBtn-CnqRnXh_.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
- package/components/chunks/{MazBtn-D6Jxw9Nr.mjs → MazBtn-BijEMn4r.mjs} +37 -49
- package/components/chunks/MazBtn-BmrcK2af.mjs +106 -0
- package/components/chunks/MazBtn-C72_1uvu.mjs +106 -0
- package/components/chunks/MazBtn-CWloP6MI.mjs +111 -0
- package/components/chunks/MazBtn-CcyV4DCc.mjs +106 -0
- package/components/chunks/MazBtn-DENEMy-c.mjs +106 -0
- package/components/chunks/MazBtn-DfqRZvbB.mjs +106 -0
- package/components/chunks/MazBtn-UnZQuu6P.mjs +106 -0
- package/components/chunks/MazBtn-cDJlUVVY.mjs +106 -0
- package/components/chunks/MazBtn-hUslV7wO.mjs +106 -0
- package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-BYB8y1_u.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
- package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
- package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-C95Y4Hb-.mjs} +112 -118
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-khofH-7I.mjs} +66 -81
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +488 -0
- package/components/chunks/{MazExpandAnimation-Bkw_wFTi.mjs → MazExpandAnimation-MDimlZGj.mjs} +7 -8
- package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-CXQiXWFr.mjs} +267 -225
- package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-VTZUhBKC.mjs} +249 -207
- package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-BF5TFzse.mjs} +1 -1
- package/components/chunks/{MazInput-O6Q41Fm0.mjs → MazInput-DC3S-CVu.mjs} +43 -52
- package/components/chunks/{MazInput-CBiCdd0F.mjs → MazInput-DzWkS-g8.mjs} +41 -50
- package/components/chunks/{MazInput-Dx2cCzFS.mjs → MazInput-NE6H-10w.mjs} +38 -47
- package/components/chunks/{MazInputNumber-DYPVUz4k.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
- package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
- package/components/chunks/{MazInputTags-CxXBsTdM.mjs → MazInputTags-Dj3sW-e5.mjs} +189 -209
- package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
- package/components/chunks/{MazLoadingBar-Di2OIrPD.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
- package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
- package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +503 -547
- package/components/chunks/{MazPicker-BcQ_-AJH.mjs → MazPicker-DwWiIYAR.mjs} +244 -265
- package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
- package/components/chunks/{MazSelect-BXzgSKmL.mjs → MazSelect-BJ07NVXQ.mjs} +160 -180
- package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-CDV9Fx6m.mjs} +124 -136
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-Bb3f2t6w.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BcB0szZB.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
- package/components/chunks/MazSpinner-BymqEMBk.mjs +34 -0
- package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
- package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CfiIXW8y.mjs} +1 -1
- package/components/chunks/MazSpinner-CykRbNHD.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-D3-pqOh3.mjs} +1 -1
- package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-DS58mtzm.mjs} +1 -1
- package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
- package/components/chunks/MazSpinner-Dmkr_r9u.mjs +34 -0
- package/components/chunks/MazSpinner-DoRGA1RI.mjs +34 -0
- package/components/chunks/MazSpinner-eC03bFP5.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-edxn0ncQ.mjs} +1 -1
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +34 -0
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +34 -0
- package/components/chunks/MazStepper-BREfkpUb.mjs +213 -0
- package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-BJDPdIJB.mjs} +183 -227
- package/components/chunks/{MazTableCell-BXDbkEJq.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
- package/components/chunks/{MazTableRow-Ds3CDEit.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
- package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
- package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
- package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +1 -0
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +106 -0
- package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-CkuzyufF.cjs} +1 -1
- package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-DEgoQbMj.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-BurN-1pb.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-jP4QsCNE.cjs} +1 -1
- package/modules/chunks/index-CUNN0eIB.cjs +124 -0
- package/modules/chunks/{index-C2yAjM0P.mjs → index-CxFUggmu.mjs} +925 -931
- 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/MazChart.vue.d.ts +1 -1
- package/types/components/MazTable.vue.d.ts +31 -54
- package/types/modules/composables/useFormValidator/types.d.ts +5 -1
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +2 -2
- package/types/modules/composables/useFormValidator/utils.d.ts +12 -12
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +5 -5
- package/types/modules/helpers/check-availability.d.ts +1 -0
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
- package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
- package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
- package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
- package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
- package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
- package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
- package/modules/chunks/index-BIX1NMzX.cjs +0 -149
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
import '../assets/MazLink.css';const y = /* @__PURE__ */
|
|
1
|
+
import { defineComponent as f, defineAsyncComponent as d, openBlock as o, createBlock as t, resolveDynamicComponent as r, mergeProps as s, withCtx as p, renderSlot as n, unref as l, createCommentVNode as a, createVNode as m } from "vue";
|
|
2
|
+
import { _ as v } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
import '../assets/MazLink.css';const y = /* @__PURE__ */ f({
|
|
4
4
|
__name: "MazLink",
|
|
5
5
|
props: {
|
|
6
6
|
id: { default: void 0 },
|
|
7
7
|
title: { default: void 0 },
|
|
8
|
-
href: { default:
|
|
8
|
+
href: { default: void 0 },
|
|
9
9
|
to: { default: void 0 },
|
|
10
10
|
color: { default: "primary" },
|
|
11
11
|
target: { default: "_self" },
|
|
@@ -18,11 +18,11 @@ import '../assets/MazLink.css';const y = /* @__PURE__ */ u({
|
|
|
18
18
|
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
19
19
|
rightIcon: { type: [String, Function, Object], default: void 0 }
|
|
20
20
|
},
|
|
21
|
-
setup(
|
|
22
|
-
const
|
|
21
|
+
setup(g) {
|
|
22
|
+
const u = d(
|
|
23
23
|
() => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
|
|
24
24
|
), i = d(() => import("./MazIcon-BbvBov5G.mjs"));
|
|
25
|
-
return (e,
|
|
25
|
+
return (e, c) => (o(), t(r(e.to ? "router-link" : "a"), s({
|
|
26
26
|
id: e.id,
|
|
27
27
|
class: ["m-link", [
|
|
28
28
|
{
|
|
@@ -40,40 +40,28 @@ import '../assets/MazLink.css';const y = /* @__PURE__ */ u({
|
|
|
40
40
|
"aria-label": e.ariaLabel
|
|
41
41
|
}, e.$attrs), {
|
|
42
42
|
default: p(() => [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
`),
|
|
46
|
-
l(e.$slots, "left-icon", {}, () => [
|
|
47
|
-
typeof e.leftIcon == "string" ? (o(), n(a(i), {
|
|
43
|
+
n(e.$slots, "left-icon", {}, () => [
|
|
44
|
+
typeof e.leftIcon == "string" ? (o(), t(l(i), {
|
|
48
45
|
key: 0,
|
|
49
46
|
name: e.leftIcon
|
|
50
|
-
}, null, 8, ["name"])) : e.leftIcon ? (o(),
|
|
47
|
+
}, null, 8, ["name"])) : e.leftIcon ? (o(), t(r(e.leftIcon), { key: 1 })) : a("v-if", !0)
|
|
51
48
|
], !0),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
l(e.$slots, "default", {}, void 0, !0),
|
|
56
|
-
t(`
|
|
57
|
-
@slot right-icon - The icon to display on the left of the text
|
|
58
|
-
`),
|
|
59
|
-
l(e.$slots, "right-icon", {}, () => [
|
|
60
|
-
typeof e.rightIcon == "string" ? (o(), n(a(i), {
|
|
49
|
+
n(e.$slots, "default", {}, void 0, !0),
|
|
50
|
+
n(e.$slots, "right-icon", {}, () => [
|
|
51
|
+
typeof e.rightIcon == "string" ? (o(), t(l(i), {
|
|
61
52
|
key: 0,
|
|
62
53
|
name: e.rightIcon
|
|
63
|
-
}, null, 8, ["name"])) : e.rightIcon ? (o(),
|
|
54
|
+
}, null, 8, ["name"])) : e.rightIcon ? (o(), t(r(e.rightIcon), { key: 1 })) : a("v-if", !0)
|
|
64
55
|
], !0),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
e.autoExternal && e.target === "_blank" ? l(e.$slots, "external-icon", { key: 0 }, () => [
|
|
69
|
-
h(a(f))
|
|
70
|
-
], !0) : t("v-if", !0)
|
|
56
|
+
e.autoExternal && e.target === "_blank" ? n(e.$slots, "external-icon", { key: 0 }, () => [
|
|
57
|
+
m(l(u))
|
|
58
|
+
], !0) : a("v-if", !0)
|
|
71
59
|
]),
|
|
72
60
|
_: 3
|
|
73
61
|
/* FORWARDED */
|
|
74
62
|
}, 16, ["id", "class", "to", "href", "title", "target", "rel", "download", "aria-label"]));
|
|
75
63
|
}
|
|
76
|
-
}),
|
|
64
|
+
}), k = /* @__PURE__ */ v(y, [["__scopeId", "data-v-40bf35c6"]]);
|
|
77
65
|
export {
|
|
78
|
-
|
|
66
|
+
k as default
|
|
79
67
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
2
|
+
import { _ as p } from "./MazTable-BJDPdIJB.mjs";
|
|
3
3
|
import '../assets/MazLoadingBar.css';const i = { class: "m-loading-bar" }, u = /* @__PURE__ */ l({
|
|
4
4
|
__name: "MazLoadingBar",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
import { defineComponent as q, defineAsyncComponent as A, useAttrs as H, useSlots as J, computed as s, openBlock as n, createBlock as f, resolveDynamicComponent as M, normalizeClass as b, withCtx as C, renderSlot as g, unref as m, createCommentVNode as y, createElementBlock as B, createVNode as d, createElementVNode as u, mergeProps as k, createTextVNode as V, toDisplayString as R, Fragment as K, renderList as Q } from "vue";
|
|
2
|
+
import '../assets/MazPagination.css';const W = {
|
|
3
|
+
key: 2,
|
|
4
|
+
class: "m-btn-loader-container"
|
|
5
|
+
}, X = /* @__PURE__ */ q({
|
|
6
|
+
__name: "MazBtn",
|
|
7
|
+
props: {
|
|
8
|
+
variant: { default: "button" },
|
|
9
|
+
size: { default: "md" },
|
|
10
|
+
color: { default: "primary" },
|
|
11
|
+
type: { default: "button" },
|
|
12
|
+
rounded: { type: Boolean },
|
|
13
|
+
roundedSize: { default: "lg" },
|
|
14
|
+
noRounded: { type: Boolean },
|
|
15
|
+
outline: { type: Boolean },
|
|
16
|
+
pastel: { type: Boolean },
|
|
17
|
+
block: { type: Boolean },
|
|
18
|
+
noUnderline: { type: Boolean },
|
|
19
|
+
loading: { type: Boolean },
|
|
20
|
+
disabled: { type: Boolean },
|
|
21
|
+
fab: { type: Boolean },
|
|
22
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
23
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
24
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
25
|
+
noPadding: { type: Boolean },
|
|
26
|
+
noElevation: { type: Boolean },
|
|
27
|
+
justify: { default: "center" }
|
|
28
|
+
},
|
|
29
|
+
setup(P) {
|
|
30
|
+
const l = P, e = A(() => import("./MazSpinner-DS58mtzm.mjs")), p = A(() => import("./MazIcon-BbvBov5G.mjs")), { href: $, to: N } = H(), h = J(), S = s(() => $ ? "a" : N ? "router-link" : "button"), r = s(
|
|
31
|
+
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
32
|
+
), v = s(
|
|
33
|
+
() => (l.loading || l.disabled) && S.value === "button"
|
|
34
|
+
), z = s(() => v.value ? "--cursor-default" : "--cursor-pointer"), I = s(() => `--is-${l.variant}`), O = s(() => l.loading && l.variant === "button"), D = s(() => !!h["left-icon"] || l.leftIcon), E = s(() => !!h["right-icon"] || l.rightIcon), L = s(() => D.value || E.value), T = s(() => l.icon || !!h.icon), U = s(() => S.value === "button" ? l.type : void 0), c = s(() => l.size === "xl" ? "maz-text-3xl" : l.size === "lg" ? "maz-text-2xl" : l.size === "md" ? "maz-text-xl" : l.size === "sm" ? "maz-text-lg" : l.size === "xs" ? "maz-text-base" : l.size === "mini" ? "maz-text-sm" : "md"), w = s(() => l.justify === "start" ? "maz-justify-start" : l.justify === "end" ? "maz-justify-end" : l.justify === "center" ? "maz-justify-center" : l.justify === "between" ? "maz-justify-between" : l.justify === "around" ? "maz-justify-around" : l.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
|
|
35
|
+
return (a, t) => (n(), f(M(S.value), {
|
|
36
|
+
disabled: v.value || void 0,
|
|
37
|
+
class: b(["m-btn", [
|
|
38
|
+
`--${a.size}`,
|
|
39
|
+
!a.fab && !a.rounded && a.roundedSize && `--rounded-${a.roundedSize}`,
|
|
40
|
+
r.value,
|
|
41
|
+
z.value,
|
|
42
|
+
I.value,
|
|
43
|
+
w.value,
|
|
44
|
+
{
|
|
45
|
+
"--block": a.block,
|
|
46
|
+
"--no-underline": a.noUnderline,
|
|
47
|
+
"--fab": a.fab,
|
|
48
|
+
"--loading": a.loading,
|
|
49
|
+
"--disabled": v.value,
|
|
50
|
+
"--icon": L.value,
|
|
51
|
+
"--rounded": a.rounded,
|
|
52
|
+
"--no-rounded": a.noRounded,
|
|
53
|
+
"--no-padding": a.noPadding,
|
|
54
|
+
"--no-elevation": a.noElevation
|
|
55
|
+
}
|
|
56
|
+
]]),
|
|
57
|
+
type: U.value
|
|
58
|
+
}, {
|
|
59
|
+
default: C(() => [
|
|
60
|
+
g(a.$slots, "left-icon", {}, () => [
|
|
61
|
+
typeof a.leftIcon == "string" ? (n(), f(m(p), {
|
|
62
|
+
key: 0,
|
|
63
|
+
name: a.leftIcon,
|
|
64
|
+
class: b([c.value])
|
|
65
|
+
}, null, 8, ["name", "class"])) : a.leftIcon ? (n(), f(M(a.leftIcon), {
|
|
66
|
+
key: 1,
|
|
67
|
+
class: b([c.value])
|
|
68
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
69
|
+
], !0),
|
|
70
|
+
T.value ? g(a.$slots, "icon", { key: 0 }, () => [
|
|
71
|
+
typeof a.icon == "string" ? (n(), f(m(p), {
|
|
72
|
+
key: 0,
|
|
73
|
+
name: a.icon,
|
|
74
|
+
class: b([c.value])
|
|
75
|
+
}, null, 8, ["name", "class"])) : a.icon ? (n(), f(M(a.icon), {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: b([c.value])
|
|
78
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
79
|
+
], !0) : y("v-if", !0),
|
|
80
|
+
g(a.$slots, "default", {}, void 0, !0),
|
|
81
|
+
E.value ? g(a.$slots, "right-icon", { key: 1 }, () => [
|
|
82
|
+
typeof a.rightIcon == "string" ? (n(), f(m(p), {
|
|
83
|
+
key: 0,
|
|
84
|
+
name: a.rightIcon,
|
|
85
|
+
class: b([c.value])
|
|
86
|
+
}, null, 8, ["name", "class"])) : a.rightIcon ? (n(), f(M(a.rightIcon), {
|
|
87
|
+
key: 1,
|
|
88
|
+
class: b([c.value])
|
|
89
|
+
}, null, 8, ["class"])) : y("v-if", !0)
|
|
90
|
+
], !0) : y("v-if", !0),
|
|
91
|
+
O.value ? (n(), B("div", W, [
|
|
92
|
+
d(m(e), {
|
|
93
|
+
size: "2em",
|
|
94
|
+
color: a.color
|
|
95
|
+
}, null, 8, ["color"])
|
|
96
|
+
])) : y("v-if", !0)
|
|
97
|
+
]),
|
|
98
|
+
_: 3
|
|
99
|
+
/* FORWARDED */
|
|
100
|
+
}, 8, ["disabled", "class", "type"]));
|
|
101
|
+
}
|
|
102
|
+
}), G = (P, l) => {
|
|
103
|
+
const e = P.__vccOpts || P;
|
|
104
|
+
for (const [p, $] of l)
|
|
105
|
+
e[p] = $;
|
|
106
|
+
return e;
|
|
107
|
+
}, j = /* @__PURE__ */ G(X, [["__scopeId", "data-v-d3a1ed01"]]), Y = {
|
|
108
|
+
class: "m-pagination",
|
|
109
|
+
role: "navigation",
|
|
110
|
+
"aria-label": "page navigation"
|
|
111
|
+
}, Z = { class: "maz-sr-only" }, _ = { class: "maz-sr-only" }, x = ["id"], ee = { class: "maz-sr-only" }, ae = { class: "maz-sr-only" }, te = { class: "maz-sr-only" }, le = /* @__PURE__ */ q({
|
|
112
|
+
__name: "MazPagination",
|
|
113
|
+
props: {
|
|
114
|
+
modelValue: { default: 1 },
|
|
115
|
+
buttonProps: { default: void 0 },
|
|
116
|
+
resultsSize: { default: void 0 },
|
|
117
|
+
activeColor: { default: "primary" },
|
|
118
|
+
size: { default: "md" },
|
|
119
|
+
totalPages: {},
|
|
120
|
+
pageRange: { default: 2 },
|
|
121
|
+
loading: { type: Boolean }
|
|
122
|
+
},
|
|
123
|
+
emits: ["update:model-value"],
|
|
124
|
+
setup(P, { emit: l }) {
|
|
125
|
+
const e = P, p = l, $ = A(() => import("./chevron-left-BqVOLRdC.mjs")), N = A(() => import("./chevron-double-left-D4-NpyrF.mjs")), h = A(() => import("./ellipsis-horizontal-6n158ATI.mjs")), S = {
|
|
126
|
+
size: "md",
|
|
127
|
+
color: "theme",
|
|
128
|
+
outline: !0,
|
|
129
|
+
noElevation: !0,
|
|
130
|
+
fab: !0
|
|
131
|
+
}, r = s(() => ({
|
|
132
|
+
...S,
|
|
133
|
+
...e.buttonProps
|
|
134
|
+
})), v = s(() => e.modelValue > 1 ? e.modelValue - 1 : 1), z = s(
|
|
135
|
+
() => e.modelValue < e.totalPages ? e.modelValue + 1 : e.totalPages
|
|
136
|
+
), I = s(
|
|
137
|
+
() => Array.from({ length: e.totalPages }, (t, i) => {
|
|
138
|
+
const o = i + 1;
|
|
139
|
+
return {
|
|
140
|
+
number: o,
|
|
141
|
+
isActive: o === e.modelValue,
|
|
142
|
+
loading: o === e.modelValue && e.loading
|
|
143
|
+
};
|
|
144
|
+
})
|
|
145
|
+
), O = s(
|
|
146
|
+
() => e.modelValue - e.pageRange > 1 ? I.value.slice(0, 1) : []
|
|
147
|
+
), D = s(
|
|
148
|
+
() => e.modelValue < e.totalPages - e.pageRange ? I.value.slice(-1) : []
|
|
149
|
+
), E = 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), L = s(
|
|
150
|
+
() => e.modelValue + e.pageRange > e.totalPages ? e.totalPages : e.modelValue + e.pageRange < e.pageRange ? e.pageRange : e.modelValue + e.pageRange
|
|
151
|
+
), T = s(() => I.value.slice(E.value, L.value)), U = s(
|
|
152
|
+
() => e.modelValue - e.pageRange > 2 ? [{ divider: !0 }] : []
|
|
153
|
+
), c = s(
|
|
154
|
+
() => e.modelValue < e.totalPages - e.pageRange - 1 ? [{ divider: !0 }] : []
|
|
155
|
+
), w = s(() => [
|
|
156
|
+
...O.value,
|
|
157
|
+
...U.value,
|
|
158
|
+
...T.value,
|
|
159
|
+
...c.value,
|
|
160
|
+
...D.value
|
|
161
|
+
]);
|
|
162
|
+
function a(t) {
|
|
163
|
+
t !== e.modelValue && p("update:model-value", t);
|
|
164
|
+
}
|
|
165
|
+
return (t, i) => (n(), B("nav", Y, [
|
|
166
|
+
u("ul", null, [
|
|
167
|
+
u("li", null, [
|
|
168
|
+
d(j, k(r.value, {
|
|
169
|
+
disabled: t.modelValue === 1,
|
|
170
|
+
"aria-label": "First Page, Page 1",
|
|
171
|
+
"aria-setsize": t.resultsSize ?? void 0,
|
|
172
|
+
"aria-posinset": "1",
|
|
173
|
+
size: t.size,
|
|
174
|
+
onClick: i[0] || (i[0] = (o) => a(1))
|
|
175
|
+
}), {
|
|
176
|
+
default: C(() => [
|
|
177
|
+
u("span", Z, [
|
|
178
|
+
g(t.$slots, "first-page-sr", { page: 1 }, () => [
|
|
179
|
+
i[4] || (i[4] = V("First Page, page 1"))
|
|
180
|
+
], !0)
|
|
181
|
+
]),
|
|
182
|
+
d(m(N))
|
|
183
|
+
]),
|
|
184
|
+
_: 3
|
|
185
|
+
/* FORWARDED */
|
|
186
|
+
}, 16, ["disabled", "aria-setsize", "size"])
|
|
187
|
+
]),
|
|
188
|
+
u("li", null, [
|
|
189
|
+
d(j, k(r.value, {
|
|
190
|
+
disabled: t.modelValue === 1,
|
|
191
|
+
"aria-label": `Previous Page, Page ${v.value}`,
|
|
192
|
+
"aria-setsize": t.resultsSize ?? void 0,
|
|
193
|
+
"aria-posinset": v.value,
|
|
194
|
+
size: t.size,
|
|
195
|
+
onClick: i[1] || (i[1] = (o) => a(v.value))
|
|
196
|
+
}), {
|
|
197
|
+
default: C(() => [
|
|
198
|
+
u("span", _, [
|
|
199
|
+
g(t.$slots, "previous-page-sr", { page: v.value }, () => [
|
|
200
|
+
V(
|
|
201
|
+
" Previous Page, page " + R(v.value),
|
|
202
|
+
1
|
|
203
|
+
/* TEXT */
|
|
204
|
+
)
|
|
205
|
+
], !0)
|
|
206
|
+
]),
|
|
207
|
+
d(m($))
|
|
208
|
+
]),
|
|
209
|
+
_: 3
|
|
210
|
+
/* FORWARDED */
|
|
211
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
212
|
+
]),
|
|
213
|
+
(n(!0), B(
|
|
214
|
+
K,
|
|
215
|
+
null,
|
|
216
|
+
Q(w.value, (o, F) => (n(), B("li", {
|
|
217
|
+
id: "number" in o ? `button-${F}-${o.number}` : `ellipsis-${F}`,
|
|
218
|
+
key: "number" in o ? `button-${F}-${o.number}` : `ellipsis-${F}`
|
|
219
|
+
}, [
|
|
220
|
+
"number" in o ? (n(), f(j, k({
|
|
221
|
+
key: 0,
|
|
222
|
+
ref_for: !0
|
|
223
|
+
}, {
|
|
224
|
+
...r.value,
|
|
225
|
+
color: o.isActive ? t.activeColor : r.value.color,
|
|
226
|
+
outline: o.isActive ? !1 : r.value.outline
|
|
227
|
+
}, {
|
|
228
|
+
size: t.size,
|
|
229
|
+
"aria-label": `Page ${o.number}`,
|
|
230
|
+
"aria-current": o.isActive ? "true" : "false",
|
|
231
|
+
"aria-setsize": t.resultsSize ?? void 0,
|
|
232
|
+
loading: o.loading,
|
|
233
|
+
"aria-posinset": o.number,
|
|
234
|
+
class: { active: o.isActive },
|
|
235
|
+
onClick: (oe) => o.isActive ? void 0 : a(o.number)
|
|
236
|
+
}), {
|
|
237
|
+
default: C(() => [
|
|
238
|
+
u("span", ee, [
|
|
239
|
+
g(t.$slots, "page-sr", {
|
|
240
|
+
page: o.number
|
|
241
|
+
}, () => [
|
|
242
|
+
V(
|
|
243
|
+
"Page " + R(o.number),
|
|
244
|
+
1
|
|
245
|
+
/* TEXT */
|
|
246
|
+
)
|
|
247
|
+
], !0)
|
|
248
|
+
]),
|
|
249
|
+
V(
|
|
250
|
+
" " + R(o.number),
|
|
251
|
+
1
|
|
252
|
+
/* TEXT */
|
|
253
|
+
)
|
|
254
|
+
]),
|
|
255
|
+
_: 2
|
|
256
|
+
/* DYNAMIC */
|
|
257
|
+
}, 1040, ["size", "aria-label", "aria-current", "aria-setsize", "loading", "aria-posinset", "class", "onClick"])) : o.divider ? (n(), B(
|
|
258
|
+
"div",
|
|
259
|
+
k({
|
|
260
|
+
key: 1,
|
|
261
|
+
ref_for: !0
|
|
262
|
+
}, r.value, { class: "flex p-2 flex-center" }),
|
|
263
|
+
[
|
|
264
|
+
d(m(h))
|
|
265
|
+
],
|
|
266
|
+
16
|
|
267
|
+
/* FULL_PROPS */
|
|
268
|
+
)) : y("v-if", !0)
|
|
269
|
+
], 8, x))),
|
|
270
|
+
128
|
|
271
|
+
/* KEYED_FRAGMENT */
|
|
272
|
+
)),
|
|
273
|
+
u("li", null, [
|
|
274
|
+
d(j, k(r.value, {
|
|
275
|
+
disabled: t.modelValue === t.totalPages,
|
|
276
|
+
"aria-label": `Next Page, Page ${z.value}`,
|
|
277
|
+
"aria-setsize": t.resultsSize ?? void 0,
|
|
278
|
+
"aria-posinset": z.value,
|
|
279
|
+
size: t.size,
|
|
280
|
+
onClick: i[2] || (i[2] = (o) => a(z.value))
|
|
281
|
+
}), {
|
|
282
|
+
default: C(() => [
|
|
283
|
+
u("span", ae, [
|
|
284
|
+
g(t.$slots, "next-page-sr", { page: z.value }, () => [
|
|
285
|
+
V(
|
|
286
|
+
"Next Page, page " + R(z.value),
|
|
287
|
+
1
|
|
288
|
+
/* TEXT */
|
|
289
|
+
)
|
|
290
|
+
], !0)
|
|
291
|
+
]),
|
|
292
|
+
d(m($), { class: "-maz-rotate-180" })
|
|
293
|
+
]),
|
|
294
|
+
_: 3
|
|
295
|
+
/* FORWARDED */
|
|
296
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
297
|
+
]),
|
|
298
|
+
u("li", null, [
|
|
299
|
+
d(j, k(r.value, {
|
|
300
|
+
disabled: t.modelValue === t.totalPages,
|
|
301
|
+
"aria-label": `Next Page, Page ${t.totalPages}`,
|
|
302
|
+
"aria-setsize": t.resultsSize ?? void 0,
|
|
303
|
+
"aria-posinset": t.totalPages,
|
|
304
|
+
size: t.size,
|
|
305
|
+
onClick: i[3] || (i[3] = (o) => a(t.totalPages))
|
|
306
|
+
}), {
|
|
307
|
+
default: C(() => [
|
|
308
|
+
u("span", te, [
|
|
309
|
+
g(t.$slots, "last-page-sr", { page: t.totalPages }, () => [
|
|
310
|
+
V(
|
|
311
|
+
"Last Page, page " + R(t.totalPages),
|
|
312
|
+
1
|
|
313
|
+
/* TEXT */
|
|
314
|
+
)
|
|
315
|
+
], !0)
|
|
316
|
+
]),
|
|
317
|
+
d(m(N), { class: "-maz-rotate-180" })
|
|
318
|
+
]),
|
|
319
|
+
_: 3
|
|
320
|
+
/* FORWARDED */
|
|
321
|
+
}, 16, ["disabled", "aria-label", "aria-setsize", "aria-posinset", "size"])
|
|
322
|
+
])
|
|
323
|
+
])
|
|
324
|
+
]));
|
|
325
|
+
}
|
|
326
|
+
}), ne = /* @__PURE__ */ G(le, [["__scopeId", "data-v-8b9651c3"]]);
|
|
327
|
+
export {
|
|
328
|
+
ne as M,
|
|
329
|
+
G as _
|
|
330
|
+
};
|