maz-ui 3.23.4 → 3.24.0
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/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.d.ts +3 -3
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCheckbox.mjs +9 -9
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.d.ts +6 -6
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +4 -0
- 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.d.ts +1 -0
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadioButtons.mjs +49 -38
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +1 -1
- package/components/MazTabsBar.mjs +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/MazCheckbox.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazPickerCalendar.css +1 -1
- package/components/assets/MazRadioButtons.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazSlider.css +1 -1
- package/components/chunks/{MazAvatar-1636f58b.mjs → MazAvatar-a0310614.mjs} +7 -7
- package/components/chunks/{MazBottomSheet-c24f92f8.mjs → MazBottomSheet-656778f3.mjs} +1 -1
- package/components/chunks/{MazBtn-2d1d1ba5.mjs → MazBtn-1abd74e1.mjs} +3 -3
- package/components/chunks/{MazBtn-683effc1.mjs → MazBtn-1b5325b4.mjs} +3 -3
- package/components/chunks/{MazBtn-5e426592.mjs → MazBtn-28eb4f51.mjs} +3 -3
- package/components/chunks/{MazBtn-1e61862b.mjs → MazBtn-4242d8bf.mjs} +3 -3
- package/components/chunks/MazBtn-54c46d7a.mjs +153 -0
- package/components/chunks/MazBtn-55bdce06.mjs +153 -0
- package/components/chunks/MazBtn-5b3c390b.mjs +153 -0
- package/components/chunks/{MazBtn-3d74f737.mjs → MazBtn-5c7f35e9.mjs} +3 -3
- package/components/chunks/{MazBtn-4a447126.mjs → MazBtn-6df3ecd9.mjs} +3 -3
- package/components/chunks/{MazBtn-7706b2da.mjs → MazBtn-7313b190.mjs} +9 -9
- package/components/chunks/{MazBtn-555928ed.mjs → MazBtn-8d15228e.mjs} +3 -3
- package/components/chunks/{MazBtn-6ce4cfd3.mjs → MazBtn-ab3967b5.mjs} +1 -1
- package/components/chunks/{MazBtn-124f3700.mjs → MazBtn-edeb8105.mjs} +3 -3
- package/components/chunks/MazBtn-fbc2b2c9.mjs +153 -0
- package/components/chunks/{MazCard-bcc36489.mjs → MazCard-cb88998a.mjs} +3 -3
- package/components/chunks/{MazCarousel-6da75122.mjs → MazCarousel-4a1f2f1b.mjs} +1 -1
- package/components/chunks/{MazCheckbox-3a2b48b4.mjs → MazCheckbox-0df95780.mjs} +6 -6
- package/components/chunks/{MazCheckbox-040dc2c4.mjs → MazCheckbox-4ccd0b53.mjs} +6 -6
- package/components/chunks/{MazDialog-44eda544.mjs → MazDialog-e80585a6.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-eec5acde.mjs → MazDialogPromise-0769de39.mjs} +2 -2
- package/components/chunks/{MazDrawer-b628b37e.mjs → MazDrawer-ff505fb8.mjs} +1 -1
- package/components/chunks/MazDropdown-0dea4e44.mjs +352 -0
- package/components/chunks/{MazGallery-6b8ecedf.mjs → MazGallery-eb620533.mjs} +1 -1
- package/components/chunks/{MazIcon-95e31ff8.mjs → MazIcon-b0ad5b4c.mjs} +1 -1
- package/components/chunks/{MazInput-1ed4f946.mjs → MazInput-14d96bc3.mjs} +2 -2
- package/components/chunks/{MazInput-c51881ea.mjs → MazInput-a4884812.mjs} +2 -2
- package/components/chunks/{MazInput-8a217995.mjs → MazInput-d0d28579.mjs} +3 -3
- package/components/chunks/{MazInputPrice-cd348d46.mjs → MazInputPrice-a94b17c3.mjs} +2 -2
- package/components/chunks/MazInputTags-d8514b7b.mjs +595 -0
- package/components/chunks/{MazLazyImg-47d3449a.mjs → MazLazyImg-632c3f0c.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-e1bf46f9.mjs → MazPhoneNumberInput-b32334b7.mjs} +138 -135
- package/components/chunks/{MazPicker-e4620d8b.mjs → MazPicker-9b2f5212.mjs} +49 -49
- package/components/chunks/{MazPickerCalendar-da62262c.mjs → MazPickerCalendar-fd08a0bd.mjs} +7 -7
- package/components/chunks/{MazPickerHeader-a2e041eb.mjs → MazPickerHeader-b353cef2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-5bf8bd08.mjs → MazPickerMonthSwitcher-ec404758.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-7f95430e.mjs → MazPickerShortcuts-e9c8b46e.mjs} +2 -2
- package/components/chunks/{MazPickerTime-717402ae.mjs → MazPickerTime-a94a2ad1.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-85f97b6d.mjs → MazPickerYearSwitcher-4ab742f7.mjs} +3 -3
- package/components/chunks/{MazSelect-6ff6bb96.mjs → MazSelect-a0d29d46.mjs} +3 -3
- package/components/chunks/{MazSpinner-51aa73ca.mjs → MazSpinner-05b867f0.mjs} +1 -1
- package/components/chunks/MazSpinner-151ca8af.mjs +39 -0
- package/components/chunks/{MazSpinner-059ee1d2.mjs → MazSpinner-37cda5f1.mjs} +1 -1
- package/components/chunks/{MazSpinner-6d1d24d5.mjs → MazSpinner-38548063.mjs} +1 -1
- package/components/chunks/MazSpinner-3b9cd6bd.mjs +39 -0
- package/components/chunks/MazSpinner-691d6fe4.mjs +39 -0
- package/components/chunks/MazSpinner-70afb16b.mjs +39 -0
- package/components/chunks/MazSpinner-8ecee924.mjs +39 -0
- package/components/chunks/MazSpinner-9fc0d858.mjs +39 -0
- package/components/chunks/{MazSpinner-13403729.mjs → MazSpinner-a936fb87.mjs} +1 -1
- package/components/chunks/MazSpinner-d37b29f0.mjs +39 -0
- package/components/chunks/{MazSpinner-054f948c.mjs → MazSpinner-ea39af30.mjs} +1 -1
- package/components/chunks/{MazSpinner-452a1534.mjs → MazSpinner-ef90ca5e.mjs} +1 -1
- package/components/chunks/{MazSpinner-4c02cfd2.mjs → MazSpinner-f54688d1.mjs} +1 -1
- package/components/chunks/MazSpinner-fa0d644a.mjs +39 -0
- package/components/chunks/{MazSpinner-d9ef329f.mjs → MazSpinner-fa796159.mjs} +1 -1
- package/components/chunks/{MazTabsBar-27965f16.mjs → MazTabsBar-3fc93e3c.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-cd24498f.mjs → MazTransitionExpand-9d45da0e.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-760c3b29.mjs → MazBtn-6d482774.mjs} +3 -3
- package/modules/chunks/{MazBtn-2f302422.cjs → MazBtn-9e80b611.cjs} +1 -1
- package/modules/chunks/{MazIcon-599a907f.cjs → MazIcon-84d2e299.cjs} +1 -1
- package/modules/chunks/{MazIcon-0bd6b78e.mjs → MazIcon-c59e858b.mjs} +1 -1
- package/modules/chunks/{MazSpinner-6ffa8db1.cjs → MazSpinner-108d3dc0.cjs} +1 -1
- package/modules/chunks/{MazSpinner-03bd76bd.mjs → MazSpinner-dcb0164b.mjs} +1 -1
- package/modules/chunks/check-circle-59c383ed.mjs +30 -0
- package/modules/chunks/check-circle-8c27a70a.cjs +1 -0
- package/modules/chunks/exclamation-circle-a33311d2.cjs +1 -0
- package/modules/chunks/exclamation-circle-e2620aab.mjs +30 -0
- package/modules/chunks/exclamation-triangle-21bf116a.mjs +30 -0
- package/modules/chunks/exclamation-triangle-df9f85b0.cjs +1 -0
- package/modules/chunks/index-4ffeaf8e.cjs +124 -0
- package/modules/chunks/{index-6a90ef88.mjs → index-67003347.mjs} +598 -508
- package/modules/chunks/information-circle-9fe4430a.cjs +1 -0
- package/modules/chunks/information-circle-b8051b19.mjs +30 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +18 -17
- package/nuxt/index.d.mts +5 -0
- package/nuxt/index.d.ts +5 -0
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +14 -0
- package/nuxt/runtime/plugins/maz-icon-path.mjs +2 -1
- package/package.json +4 -4
- package/tailwindcss/tailwind.config.ts +0 -1
- package/types/components/MazBtn.vue.d.ts +3 -3
- package/types/components/MazDialogPromise.vue.d.ts +6 -6
- package/types/components/MazDropdown.vue.d.ts +4 -0
- package/types/components/MazInputTags.vue.d.ts +1 -0
- package/types/modules/composables/index.d.ts +1 -0
- package/types/modules/composables/use-timer.d.ts +12 -0
- package/types/modules/plugins/aos/index.d.ts +12 -12
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +6 -6
- package/types/modules/plugins/toaster/toaster-handler.d.ts +2 -1
- package/components/chunks/MazBtn-571454f6.mjs +0 -153
- package/components/chunks/MazBtn-6905cc39.mjs +0 -153
- package/components/chunks/MazBtn-74656d5b.mjs +0 -153
- package/components/chunks/MazBtn-a7a913dd.mjs +0 -153
- package/components/chunks/MazBtn-fb3c7af8.mjs +0 -153
- package/components/chunks/MazDropdown-6f2248b0.mjs +0 -345
- package/components/chunks/MazInputTags-aa95fae7.mjs +0 -446
- package/components/chunks/MazSpinner-6e7c4705.mjs +0 -39
- package/components/chunks/MazSpinner-7895f54f.mjs +0 -39
- package/components/chunks/MazSpinner-7eee202e.mjs +0 -39
- package/components/chunks/MazSpinner-805e14a6.mjs +0 -39
- package/components/chunks/MazSpinner-85080b43.mjs +0 -39
- package/components/chunks/MazSpinner-c67b05bb.mjs +0 -39
- package/components/chunks/MazSpinner-caa33afc.mjs +0 -39
- package/components/chunks/MazSpinner-cb8fbe9a.mjs +0 -39
- package/modules/chunks/index-794680d2.cjs +0 -124
- package/types/modules/plugins/toaster/timer.d.ts +0 -11
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import "../assets/MazBtn.css";
|
|
2
|
+
import { defineComponent as M, defineAsyncComponent as p, useAttrs as E, useSlots as L, onBeforeMount as P, computed as t, openBlock as o, createBlock as u, resolveDynamicComponent as R, mergeProps as w, withCtx as A, createElementBlock as m, normalizeClass as s, renderSlot as r, unref as d, createCommentVNode as a, createElementVNode as D } from "vue";
|
|
3
|
+
import { _ as N } from "./MazCarousel-4a1f2f1b.mjs";
|
|
4
|
+
const U = /* @__PURE__ */ M({
|
|
5
|
+
__name: "MazBtn",
|
|
6
|
+
props: {
|
|
7
|
+
variant: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: "button",
|
|
10
|
+
validator: (e) => ["button", "link"].includes(e)
|
|
11
|
+
},
|
|
12
|
+
size: {
|
|
13
|
+
type: String,
|
|
14
|
+
default: "md",
|
|
15
|
+
validator: (e) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(e)
|
|
16
|
+
},
|
|
17
|
+
color: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "primary"
|
|
20
|
+
},
|
|
21
|
+
type: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: "button",
|
|
24
|
+
validator: (e) => ["button", "submit", "reset"].includes(e)
|
|
25
|
+
},
|
|
26
|
+
rounded: { type: Boolean, default: !1 },
|
|
27
|
+
noRounded: { type: Boolean, default: !1 },
|
|
28
|
+
outline: { type: Boolean, default: !1 },
|
|
29
|
+
pastel: { type: Boolean, default: !1 },
|
|
30
|
+
block: { type: Boolean, default: !1 },
|
|
31
|
+
noUnderline: { type: Boolean, default: !1 },
|
|
32
|
+
noLeading: { type: Boolean, default: !1 },
|
|
33
|
+
loading: { type: Boolean, default: !1 },
|
|
34
|
+
disabled: { type: Boolean, default: !1 },
|
|
35
|
+
fab: { type: Boolean, default: !1 },
|
|
36
|
+
icon: { type: String, default: void 0 },
|
|
37
|
+
leftIcon: { type: String, default: void 0 },
|
|
38
|
+
rightIcon: { type: String, default: void 0 },
|
|
39
|
+
noPadding: { type: Boolean, default: !1 },
|
|
40
|
+
noElevation: { type: Boolean, default: !1 }
|
|
41
|
+
},
|
|
42
|
+
setup(e) {
|
|
43
|
+
const z = p(() => import("./MazSpinner-ef90ca5e.mjs")), c = p(() => import("./MazIcon-52a76873.mjs")), { href: B, to: h } = E(), b = L(), n = e;
|
|
44
|
+
P(() => {
|
|
45
|
+
n.icon && !n.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
46
|
+
});
|
|
47
|
+
const f = t(() => B ? "a" : h ? "router-link" : "button"), k = t(
|
|
48
|
+
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
49
|
+
), v = t(
|
|
50
|
+
() => (n.loading || n.disabled) && f.value === "button"
|
|
51
|
+
), I = t(() => v.value ? "--cursor-default" : "--cursor-pointer"), x = t(() => `--is-${n.variant}`), l = t(() => n.loading && n.variant === "button"), y = t(() => !!b["left-icon"] || n.leftIcon), g = t(() => !!b["right-icon"] || n.rightIcon), C = t(() => y.value || g.value), S = t(() => n.fab && n.icon), $ = t(() => f.value === "button" ? n.type : void 0);
|
|
52
|
+
return (i, V) => (o(), u(R(f.value), w(i.$attrs, {
|
|
53
|
+
disabled: v.value,
|
|
54
|
+
class: ["m-btn", [
|
|
55
|
+
`--${e.size}`,
|
|
56
|
+
k.value,
|
|
57
|
+
I.value,
|
|
58
|
+
x.value,
|
|
59
|
+
{
|
|
60
|
+
"--block": e.block,
|
|
61
|
+
"--no-underline": e.noUnderline,
|
|
62
|
+
"--no-leading": e.noLeading,
|
|
63
|
+
"--fab": e.fab,
|
|
64
|
+
"--loading": e.loading,
|
|
65
|
+
"--disabled": v.value,
|
|
66
|
+
"--icon": C.value,
|
|
67
|
+
"--rounded": e.rounded,
|
|
68
|
+
"--no-rounded": e.noRounded,
|
|
69
|
+
"--no-padding": e.noPadding,
|
|
70
|
+
"--no-elevation": e.noElevation
|
|
71
|
+
}
|
|
72
|
+
]],
|
|
73
|
+
type: $.value
|
|
74
|
+
}), {
|
|
75
|
+
default: A(() => [
|
|
76
|
+
y.value ? (o(), m(
|
|
77
|
+
"div",
|
|
78
|
+
{
|
|
79
|
+
key: 0,
|
|
80
|
+
class: s(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
81
|
+
},
|
|
82
|
+
[
|
|
83
|
+
r(i.$slots, "left-icon", {}, () => [
|
|
84
|
+
e.leftIcon ? (o(), u(d(c), {
|
|
85
|
+
key: 0,
|
|
86
|
+
name: e.leftIcon
|
|
87
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
88
|
+
], !0)
|
|
89
|
+
],
|
|
90
|
+
2
|
|
91
|
+
/* CLASS */
|
|
92
|
+
)) : a("v-if", !0),
|
|
93
|
+
S.value ? (o(), m(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
key: 1,
|
|
97
|
+
class: s(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
98
|
+
},
|
|
99
|
+
[
|
|
100
|
+
r(i.$slots, "icon", {}, () => [
|
|
101
|
+
e.icon ? (o(), u(d(c), {
|
|
102
|
+
key: 0,
|
|
103
|
+
name: e.icon
|
|
104
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
105
|
+
], !0)
|
|
106
|
+
],
|
|
107
|
+
2
|
|
108
|
+
/* CLASS */
|
|
109
|
+
)) : a("v-if", !0),
|
|
110
|
+
D(
|
|
111
|
+
"span",
|
|
112
|
+
{
|
|
113
|
+
class: s(["maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
114
|
+
},
|
|
115
|
+
[
|
|
116
|
+
r(i.$slots, "default", {}, void 0, !0)
|
|
117
|
+
],
|
|
118
|
+
2
|
|
119
|
+
/* CLASS */
|
|
120
|
+
),
|
|
121
|
+
g.value ? (o(), m(
|
|
122
|
+
"div",
|
|
123
|
+
{
|
|
124
|
+
key: 2,
|
|
125
|
+
class: s(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": l.value }])
|
|
126
|
+
},
|
|
127
|
+
[
|
|
128
|
+
r(i.$slots, "right-icon", {}, () => [
|
|
129
|
+
e.rightIcon ? (o(), u(d(c), {
|
|
130
|
+
key: 0,
|
|
131
|
+
name: e.rightIcon
|
|
132
|
+
}, null, 8, ["name"])) : a("v-if", !0)
|
|
133
|
+
], !0)
|
|
134
|
+
],
|
|
135
|
+
2
|
|
136
|
+
/* CLASS */
|
|
137
|
+
)) : a("v-if", !0),
|
|
138
|
+
l.value ? (o(), u(d(z), {
|
|
139
|
+
key: 3,
|
|
140
|
+
size: "2em",
|
|
141
|
+
color: e.color,
|
|
142
|
+
class: "maz-absolute"
|
|
143
|
+
}, null, 8, ["color"])) : a("v-if", !0)
|
|
144
|
+
]),
|
|
145
|
+
_: 3
|
|
146
|
+
/* FORWARDED */
|
|
147
|
+
}, 16, ["disabled", "class", "type"]));
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
const q = /* @__PURE__ */ N(U, [["__scopeId", "data-v-0410c0ed"]]);
|
|
151
|
+
export {
|
|
152
|
+
q as default
|
|
153
|
+
};
|
|
@@ -60,7 +60,7 @@ const D = {
|
|
|
60
60
|
collapseOpen: { type: Boolean, default: !1 }
|
|
61
61
|
},
|
|
62
62
|
setup(e) {
|
|
63
|
-
const g = c(() => import("./MazBtn-
|
|
63
|
+
const g = c(() => import("./MazBtn-28eb4f51.mjs")), u = c(() => import("./MazGallery-eb620533.mjs")), y = c(() => import("./MazTransitionExpand-9d45da0e.mjs")), z = c(() => import("./chevron-down-2b60111a.mjs")), n = e, S = A(), l = H(n.collapsable ? n.collapseOpen : !0);
|
|
64
64
|
V(
|
|
65
65
|
() => n.collapseOpen,
|
|
66
66
|
(t) => {
|
|
@@ -83,7 +83,7 @@ const D = {
|
|
|
83
83
|
"maz-elevation": e.elevation,
|
|
84
84
|
"maz-overflow-hidden": e.overflowHidden || !l.value,
|
|
85
85
|
"maz-rounded": e.radius,
|
|
86
|
-
"maz-border
|
|
86
|
+
"maz-border maz-border-solid maz-border-color-lighter": e.bordered
|
|
87
87
|
}
|
|
88
88
|
]])
|
|
89
89
|
},
|
|
@@ -207,7 +207,7 @@ const G = (e, g) => {
|
|
|
207
207
|
for (const [y, z] of g)
|
|
208
208
|
u[y] = z;
|
|
209
209
|
return u;
|
|
210
|
-
}, J = /* @__PURE__ */ G(R, [["__scopeId", "data-v-
|
|
210
|
+
}, J = /* @__PURE__ */ G(R, [["__scopeId", "data-v-1c671f5f"]]);
|
|
211
211
|
export {
|
|
212
212
|
J as M,
|
|
213
213
|
G as _
|
|
@@ -15,7 +15,7 @@ const N = (t) => (W("data-v-e5ae2ebf"), t = t(), $(), t), T = { class: "m-carous
|
|
|
15
15
|
noScrollBtn: { type: Boolean, default: !1 }
|
|
16
16
|
},
|
|
17
17
|
setup(t) {
|
|
18
|
-
const s = m(() => import("./MazBtn-
|
|
18
|
+
const s = m(() => import("./MazBtn-fbc2b2c9.mjs")), l = m(() => import("./chevron-left-39b4621e.mjs")), _ = m(() => import("./chevron-right-949a60fa.mjs")), d = t, h = L(), C = p(!1), S = p(!1), f = p(), I = () => !d.noScrollBtn || h.title, y = () => !!h.title, M = () => {
|
|
19
19
|
const e = f.value;
|
|
20
20
|
e == null || e.scrollTo(e.scrollLeft + e.clientWidth, 0);
|
|
21
21
|
}, b = () => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazCheckbox.css";
|
|
2
2
|
import { defineComponent as g, useCssVars as C, getCurrentInstance as _, computed as t, openBlock as S, createElementBlock as I, unref as r, normalizeClass as m, createElementVNode as f, mergeProps as w, createVNode as B, renderSlot as A } from "vue";
|
|
3
|
-
import { u as N, _ as M } from "./MazSelect-
|
|
3
|
+
import { u as N, _ as M } from "./MazSelect-a0d29d46.mjs";
|
|
4
4
|
import E from "./check-31d7ba2f.mjs";
|
|
5
5
|
const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H = /* @__PURE__ */ g({
|
|
6
6
|
__name: "MazCheckbox",
|
|
@@ -27,10 +27,10 @@ const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H
|
|
|
27
27
|
],
|
|
28
28
|
setup(l, { emit: p }) {
|
|
29
29
|
C((a) => ({
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
30
|
+
"209d1a7b": k.value,
|
|
31
|
+
"0c9060dd": x.value,
|
|
32
|
+
"35d76c2c": y.value,
|
|
33
|
+
a82c7122: z.value
|
|
34
34
|
}));
|
|
35
35
|
const b = _(), e = l, n = p, s = N({
|
|
36
36
|
componentName: "MazCheckbox",
|
|
@@ -111,7 +111,7 @@ const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H
|
|
|
111
111
|
], 42, q));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
-
const j = /* @__PURE__ */ M(H, [["__scopeId", "data-v-
|
|
114
|
+
const j = /* @__PURE__ */ M(H, [["__scopeId", "data-v-619b4784"]]);
|
|
115
115
|
export {
|
|
116
116
|
j as default
|
|
117
117
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazCheckbox.css";
|
|
2
2
|
import { defineComponent as g, useCssVars as C, getCurrentInstance as _, computed as t, openBlock as S, createElementBlock as I, unref as r, normalizeClass as m, createElementVNode as f, mergeProps as w, createVNode as B, renderSlot as A } from "vue";
|
|
3
|
-
import { u as N, _ as M } from "./MazPhoneNumberInput-
|
|
3
|
+
import { u as N, _ as M } from "./MazPhoneNumberInput-b32334b7.mjs";
|
|
4
4
|
import E from "./check-31d7ba2f.mjs";
|
|
5
5
|
const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H = /* @__PURE__ */ g({
|
|
6
6
|
__name: "MazCheckbox",
|
|
@@ -27,10 +27,10 @@ const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H
|
|
|
27
27
|
],
|
|
28
28
|
setup(l, { emit: p }) {
|
|
29
29
|
C((a) => ({
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
30
|
+
"209d1a7b": k.value,
|
|
31
|
+
"0c9060dd": x.value,
|
|
32
|
+
"35d76c2c": y.value,
|
|
33
|
+
a82c7122: z.value
|
|
34
34
|
}));
|
|
35
35
|
const b = _(), e = l, n = p, s = N({
|
|
36
36
|
componentName: "MazCheckbox",
|
|
@@ -111,7 +111,7 @@ const q = ["for", "aria-checked"], D = ["id", "checked", "disabled", "name"], H
|
|
|
111
111
|
], 42, q));
|
|
112
112
|
}
|
|
113
113
|
});
|
|
114
|
-
const j = /* @__PURE__ */ M(H, [["__scopeId", "data-v-
|
|
114
|
+
const j = /* @__PURE__ */ M(H, [["__scopeId", "data-v-619b4784"]]);
|
|
115
115
|
export {
|
|
116
116
|
j as default
|
|
117
117
|
};
|
|
@@ -151,7 +151,7 @@ const j = /* @__PURE__ */ M(K, [["render", W]]), I = {
|
|
|
151
151
|
"open"
|
|
152
152
|
],
|
|
153
153
|
setup(e) {
|
|
154
|
-
const n = B(() => import("./MazBtn-
|
|
154
|
+
const n = B(() => import("./MazBtn-55bdce06.mjs")), s = B(() => import("./x-mark-35f2f1e7.mjs")), a = N(), i = h(() => ({
|
|
155
155
|
...a,
|
|
156
156
|
class: void 0,
|
|
157
157
|
style: void 0
|
|
@@ -175,7 +175,7 @@ const R = /* @__PURE__ */ V(J, [["render", Q]]), Y = {
|
|
|
175
175
|
"open"
|
|
176
176
|
],
|
|
177
177
|
setup(e) {
|
|
178
|
-
const o = h(() => import("./MazBtn-
|
|
178
|
+
const o = h(() => import("./MazBtn-5c7f35e9.mjs")), i = h(() => import("./x-mark-35f2f1e7.mjs")), s = K(), r = D(() => ({
|
|
179
179
|
...s,
|
|
180
180
|
class: void 0,
|
|
181
181
|
style: void 0
|
|
@@ -278,7 +278,7 @@ const te = /* @__PURE__ */ V(ee, [["__scopeId", "data-v-085e6d92"]]), oe = { cla
|
|
|
278
278
|
buttons: { type: Array, default: () => [] }
|
|
279
279
|
},
|
|
280
280
|
setup(e) {
|
|
281
|
-
const o = h(() => import("./MazBtn-
|
|
281
|
+
const o = h(() => import("./MazBtn-5c7f35e9.mjs")), i = e, { dialogState: s, rejectDialog: r, resolveDialog: f } = X(), n = D(
|
|
282
282
|
() => s.value.find(({ id: a }) => a === i.identifier)
|
|
283
283
|
);
|
|
284
284
|
return (a, l) => {
|
|
@@ -138,7 +138,7 @@ const F = /* @__PURE__ */ K(P, [["render", j]]), q = { class: "m-drawer-header__
|
|
|
138
138
|
},
|
|
139
139
|
emits: ["open", "close", "update:model-value"],
|
|
140
140
|
setup(e) {
|
|
141
|
-
const a = b(() => import("./MazBtn-
|
|
141
|
+
const a = b(() => import("./MazBtn-54c46d7a.mjs")), s = b(() => import("./x-mark-35f2f1e7.mjs"));
|
|
142
142
|
return (t, o) => (d(), B(F, A(t.$attrs, {
|
|
143
143
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
144
144
|
style: {
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import "../assets/MazDropdown.css";
|
|
2
|
+
import { defineComponent as N, defineAsyncComponent as S, useAttrs as R, useSlots as j, onBeforeMount as q, computed as c, openBlock as i, createBlock as b, resolveDynamicComponent as T, mergeProps as F, withCtx as B, createElementBlock as y, normalizeClass as g, renderSlot as k, unref as d, createCommentVNode as f, createElementVNode as V, getCurrentInstance as x, ref as A, watch as E, createVNode as L, withModifiers as O, Transition as H, Fragment as U, renderList as K, createTextVNode as G, toDisplayString as J } from "vue";
|
|
3
|
+
const Q = /* @__PURE__ */ N({
|
|
4
|
+
__name: "MazBtn",
|
|
5
|
+
props: {
|
|
6
|
+
variant: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "button",
|
|
9
|
+
validator: (o) => ["button", "link"].includes(o)
|
|
10
|
+
},
|
|
11
|
+
size: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: "md",
|
|
14
|
+
validator: (o) => ["mini", "xs", "sm", "md", "lg", "xl"].includes(o)
|
|
15
|
+
},
|
|
16
|
+
color: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: "primary"
|
|
19
|
+
},
|
|
20
|
+
type: {
|
|
21
|
+
type: String,
|
|
22
|
+
default: "button",
|
|
23
|
+
validator: (o) => ["button", "submit", "reset"].includes(o)
|
|
24
|
+
},
|
|
25
|
+
rounded: { type: Boolean, default: !1 },
|
|
26
|
+
noRounded: { type: Boolean, default: !1 },
|
|
27
|
+
outline: { type: Boolean, default: !1 },
|
|
28
|
+
pastel: { type: Boolean, default: !1 },
|
|
29
|
+
block: { type: Boolean, default: !1 },
|
|
30
|
+
noUnderline: { type: Boolean, default: !1 },
|
|
31
|
+
noLeading: { type: Boolean, default: !1 },
|
|
32
|
+
loading: { type: Boolean, default: !1 },
|
|
33
|
+
disabled: { type: Boolean, default: !1 },
|
|
34
|
+
fab: { type: Boolean, default: !1 },
|
|
35
|
+
icon: { type: String, default: void 0 },
|
|
36
|
+
leftIcon: { type: String, default: void 0 },
|
|
37
|
+
rightIcon: { type: String, default: void 0 },
|
|
38
|
+
noPadding: { type: Boolean, default: !1 },
|
|
39
|
+
noElevation: { type: Boolean, default: !1 }
|
|
40
|
+
},
|
|
41
|
+
setup(o) {
|
|
42
|
+
const v = S(() => import("./MazSpinner-f54688d1.mjs")), r = S(() => import("./MazIcon-52a76873.mjs")), { href: s, to: z } = R(), h = j(), l = o;
|
|
43
|
+
q(() => {
|
|
44
|
+
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
45
|
+
});
|
|
46
|
+
const a = c(() => s ? "a" : z ? "router-link" : "button"), I = c(
|
|
47
|
+
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
48
|
+
), u = c(
|
|
49
|
+
() => (l.loading || l.disabled) && a.value === "button"
|
|
50
|
+
), m = c(() => u.value ? "--cursor-default" : "--cursor-pointer"), D = c(() => `--is-${l.variant}`), p = c(() => l.loading && l.variant === "button"), C = c(() => !!h["left-icon"] || l.leftIcon), $ = c(() => !!h["right-icon"] || l.rightIcon), M = c(() => C.value || $.value), e = c(() => l.fab && l.icon), t = c(() => a.value === "button" ? l.type : void 0);
|
|
51
|
+
return (n, w) => (i(), b(T(a.value), F(n.$attrs, {
|
|
52
|
+
disabled: u.value,
|
|
53
|
+
class: ["m-btn", [
|
|
54
|
+
`--${o.size}`,
|
|
55
|
+
I.value,
|
|
56
|
+
m.value,
|
|
57
|
+
D.value,
|
|
58
|
+
{
|
|
59
|
+
"--block": o.block,
|
|
60
|
+
"--no-underline": o.noUnderline,
|
|
61
|
+
"--no-leading": o.noLeading,
|
|
62
|
+
"--fab": o.fab,
|
|
63
|
+
"--loading": o.loading,
|
|
64
|
+
"--disabled": u.value,
|
|
65
|
+
"--icon": M.value,
|
|
66
|
+
"--rounded": o.rounded,
|
|
67
|
+
"--no-rounded": o.noRounded,
|
|
68
|
+
"--no-padding": o.noPadding,
|
|
69
|
+
"--no-elevation": o.noElevation
|
|
70
|
+
}
|
|
71
|
+
]],
|
|
72
|
+
type: t.value
|
|
73
|
+
}), {
|
|
74
|
+
default: B(() => [
|
|
75
|
+
C.value ? (i(), y(
|
|
76
|
+
"div",
|
|
77
|
+
{
|
|
78
|
+
key: 0,
|
|
79
|
+
class: g(["m-btn__icon-left maz-flex maz-flex-center", { "maz-invisible": p.value }])
|
|
80
|
+
},
|
|
81
|
+
[
|
|
82
|
+
k(n.$slots, "left-icon", {}, () => [
|
|
83
|
+
o.leftIcon ? (i(), b(d(r), {
|
|
84
|
+
key: 0,
|
|
85
|
+
name: o.leftIcon
|
|
86
|
+
}, null, 8, ["name"])) : f("v-if", !0)
|
|
87
|
+
], !0)
|
|
88
|
+
],
|
|
89
|
+
2
|
|
90
|
+
/* CLASS */
|
|
91
|
+
)) : f("v-if", !0),
|
|
92
|
+
e.value ? (i(), y(
|
|
93
|
+
"div",
|
|
94
|
+
{
|
|
95
|
+
key: 1,
|
|
96
|
+
class: g(["m-btn__icon maz-flex maz-flex-center", { "maz-invisible": p.value }])
|
|
97
|
+
},
|
|
98
|
+
[
|
|
99
|
+
k(n.$slots, "icon", {}, () => [
|
|
100
|
+
o.icon ? (i(), b(d(r), {
|
|
101
|
+
key: 0,
|
|
102
|
+
name: o.icon
|
|
103
|
+
}, null, 8, ["name"])) : f("v-if", !0)
|
|
104
|
+
], !0)
|
|
105
|
+
],
|
|
106
|
+
2
|
|
107
|
+
/* CLASS */
|
|
108
|
+
)) : f("v-if", !0),
|
|
109
|
+
V(
|
|
110
|
+
"span",
|
|
111
|
+
{
|
|
112
|
+
class: g(["maz-flex maz-flex-center", { "maz-invisible": p.value }])
|
|
113
|
+
},
|
|
114
|
+
[
|
|
115
|
+
k(n.$slots, "default", {}, void 0, !0)
|
|
116
|
+
],
|
|
117
|
+
2
|
|
118
|
+
/* CLASS */
|
|
119
|
+
),
|
|
120
|
+
$.value ? (i(), y(
|
|
121
|
+
"div",
|
|
122
|
+
{
|
|
123
|
+
key: 2,
|
|
124
|
+
class: g(["m-btn__icon-right maz-flex maz-flex-center", { "maz-invisible": p.value }])
|
|
125
|
+
},
|
|
126
|
+
[
|
|
127
|
+
k(n.$slots, "right-icon", {}, () => [
|
|
128
|
+
o.rightIcon ? (i(), b(d(r), {
|
|
129
|
+
key: 0,
|
|
130
|
+
name: o.rightIcon
|
|
131
|
+
}, null, 8, ["name"])) : f("v-if", !0)
|
|
132
|
+
], !0)
|
|
133
|
+
],
|
|
134
|
+
2
|
|
135
|
+
/* CLASS */
|
|
136
|
+
)) : f("v-if", !0),
|
|
137
|
+
p.value ? (i(), b(d(v), {
|
|
138
|
+
key: 3,
|
|
139
|
+
size: "2em",
|
|
140
|
+
color: o.color,
|
|
141
|
+
class: "maz-absolute"
|
|
142
|
+
}, null, 8, ["color"])) : f("v-if", !0)
|
|
143
|
+
]),
|
|
144
|
+
_: 3
|
|
145
|
+
/* FORWARDED */
|
|
146
|
+
}, 16, ["disabled", "class", "type"]));
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
const W = (o, v) => {
|
|
150
|
+
const r = o.__vccOpts || o;
|
|
151
|
+
for (const [s, z] of v)
|
|
152
|
+
r[s] = z;
|
|
153
|
+
return r;
|
|
154
|
+
}, X = /* @__PURE__ */ W(Q, [["__scopeId", "data-v-0410c0ed"]]), Y = ({
|
|
155
|
+
componentName: o,
|
|
156
|
+
instance: v,
|
|
157
|
+
providedId: r
|
|
158
|
+
}) => c(() => r ?? `${o}-${v == null ? void 0 : v.uid}`);
|
|
159
|
+
function Z(o, v) {
|
|
160
|
+
let r;
|
|
161
|
+
return function(...s) {
|
|
162
|
+
clearTimeout(r), r = setTimeout(() => {
|
|
163
|
+
o.apply(this, s);
|
|
164
|
+
}, v);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
const _ = ["id"], ee = { class: "maz-flex maz-items-center maz-gap-2" }, te = /* @__PURE__ */ N({
|
|
168
|
+
__name: "MazDropdown",
|
|
169
|
+
props: {
|
|
170
|
+
items: {},
|
|
171
|
+
open: { type: Boolean },
|
|
172
|
+
id: { default: "maz-dropdown" },
|
|
173
|
+
trigger: { default: "both" },
|
|
174
|
+
color: { default: "transparent" },
|
|
175
|
+
position: { default: "bottom left" },
|
|
176
|
+
noCloseOnClick: { type: Boolean },
|
|
177
|
+
disabled: { type: Boolean },
|
|
178
|
+
noChevron: { type: Boolean }
|
|
179
|
+
},
|
|
180
|
+
emits: [
|
|
181
|
+
/**
|
|
182
|
+
* emitted when a menu item is clicked
|
|
183
|
+
*/
|
|
184
|
+
"menuitem-clicked",
|
|
185
|
+
/**
|
|
186
|
+
* Triggers when the number changes
|
|
187
|
+
*
|
|
188
|
+
* @property {boolean} open new value
|
|
189
|
+
*/
|
|
190
|
+
"update:open"
|
|
191
|
+
],
|
|
192
|
+
setup(o, { emit: v }) {
|
|
193
|
+
const r = S(() => import("./chevron-down-2b60111a.mjs")), s = o, z = v, h = Y({
|
|
194
|
+
componentName: "MazCheckbox",
|
|
195
|
+
instance: x(),
|
|
196
|
+
providedId: s.id
|
|
197
|
+
}), l = A(s.open), a = A();
|
|
198
|
+
function I() {
|
|
199
|
+
u(!l.value);
|
|
200
|
+
}
|
|
201
|
+
const u = (e) => {
|
|
202
|
+
s.disabled || (l.value = e, z("update:open", e));
|
|
203
|
+
}, m = Z((e) => {
|
|
204
|
+
u(e);
|
|
205
|
+
}, 200);
|
|
206
|
+
async function D(e, t) {
|
|
207
|
+
var n;
|
|
208
|
+
z("menuitem-clicked", t), await ((n = e.action) == null ? void 0 : n.call(e)), s.noCloseOnClick || p();
|
|
209
|
+
}
|
|
210
|
+
function p() {
|
|
211
|
+
s.noCloseOnClick === !1 && u(!1);
|
|
212
|
+
}
|
|
213
|
+
function C(e) {
|
|
214
|
+
e.key === "Escape" ? (e.preventDefault(), u(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? M(e) : e.key === "Enter" && typeof a.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${h.value} .menuitem`)[a.value].click(), p());
|
|
215
|
+
}
|
|
216
|
+
function $(e) {
|
|
217
|
+
["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && l.value === !1 && (e.preventDefault(), u(!0));
|
|
218
|
+
}
|
|
219
|
+
function M(e) {
|
|
220
|
+
var w;
|
|
221
|
+
e.preventDefault();
|
|
222
|
+
const t = e.key;
|
|
223
|
+
l.value || u(!0);
|
|
224
|
+
const n = (w = s.items) == null ? void 0 : w.length;
|
|
225
|
+
n && (typeof a.value == "number" ? a.value === n - 1 && t === "ArrowDown" ? a.value = 0 : a.value === 0 && t === "ArrowUp" ? a.value = n - 1 : a.value = t === "ArrowDown" ? a.value + 1 : a.value - 1 : a.value = t === "ArrowDown" ? 0 : n - 1);
|
|
226
|
+
}
|
|
227
|
+
return E(
|
|
228
|
+
() => l.value,
|
|
229
|
+
(e) => {
|
|
230
|
+
e ? document.addEventListener("keydown", C) : document.removeEventListener("keydown", C), a.value = void 0;
|
|
231
|
+
}
|
|
232
|
+
), E(
|
|
233
|
+
() => s.open,
|
|
234
|
+
(e) => u(e)
|
|
235
|
+
), (e, t) => (i(), y("div", {
|
|
236
|
+
id: d(h),
|
|
237
|
+
class: "m-dropdown"
|
|
238
|
+
}, [
|
|
239
|
+
L(X, F({
|
|
240
|
+
color: e.color,
|
|
241
|
+
size: "md",
|
|
242
|
+
"aria-expanded": l.value,
|
|
243
|
+
"aria-haspopup": "menu",
|
|
244
|
+
disabled: e.disabled
|
|
245
|
+
}, e.$attrs, {
|
|
246
|
+
onClick: t[0] || (t[0] = O((n) => ["click"].includes(e.trigger) ? I() : void 0, ["stop"])),
|
|
247
|
+
onFocus: t[1] || (t[1] = (n) => ["hover", "both"].includes(e.trigger) ? u(!0) : void 0),
|
|
248
|
+
onBlur: t[2] || (t[2] = (n) => d(m)(!1)),
|
|
249
|
+
onKeydown: $,
|
|
250
|
+
onMouseenter: t[3] || (t[3] = (n) => ["hover", "both"].includes(e.trigger) ? l.value === !1 ? u(!0) : d(m)(!0) : void 0),
|
|
251
|
+
onMouseleave: t[4] || (t[4] = (n) => ["hover", "both"].includes(e.trigger) ? d(m)(!1) : void 0)
|
|
252
|
+
}), {
|
|
253
|
+
default: B(() => [
|
|
254
|
+
V("span", ee, [
|
|
255
|
+
k(e.$slots, "default"),
|
|
256
|
+
e.noChevron ? f("v-if", !0) : (i(), b(d(r), {
|
|
257
|
+
key: 0,
|
|
258
|
+
class: g([{ "maz-rotate-180": l.value }, "maz-text-lg maz-transition-transform maz-duration-200 maz-ease-in-out"])
|
|
259
|
+
}, null, 8, ["class"]))
|
|
260
|
+
]),
|
|
261
|
+
f(" @slot Menu Label ")
|
|
262
|
+
]),
|
|
263
|
+
_: 3
|
|
264
|
+
/* FORWARDED */
|
|
265
|
+
}, 16, ["color", "aria-expanded", "disabled"]),
|
|
266
|
+
L(H, { name: "maz-scale-fade" }, {
|
|
267
|
+
default: B(() => [
|
|
268
|
+
l.value ? (i(), y(
|
|
269
|
+
"div",
|
|
270
|
+
{
|
|
271
|
+
key: 0,
|
|
272
|
+
role: "menu",
|
|
273
|
+
"aria-label": "Menu",
|
|
274
|
+
class: g(["menu", {
|
|
275
|
+
"--top": e.position.includes("top"),
|
|
276
|
+
"--left": e.position.includes("left"),
|
|
277
|
+
"--right": e.position.includes("right"),
|
|
278
|
+
"--bottom": e.position.includes("bottom")
|
|
279
|
+
}]),
|
|
280
|
+
tabindex: "-1",
|
|
281
|
+
onFocus: t[5] || (t[5] = (n) => d(m)(!0)),
|
|
282
|
+
onBlur: t[6] || (t[6] = (n) => d(m)(!1)),
|
|
283
|
+
onMouseenter: t[7] || (t[7] = (n) => ["hover", "both"].includes(e.trigger) ? d(m)(!0) : void 0),
|
|
284
|
+
onMouseleave: t[8] || (t[8] = (n) => ["hover", "both"].includes(e.trigger) ? d(m)(!1) : void 0)
|
|
285
|
+
},
|
|
286
|
+
[
|
|
287
|
+
(i(!0), y(
|
|
288
|
+
U,
|
|
289
|
+
null,
|
|
290
|
+
K(e.items, (n, w) => (i(), y(
|
|
291
|
+
U,
|
|
292
|
+
null,
|
|
293
|
+
[
|
|
294
|
+
f(`
|
|
295
|
+
@slot Custom menu item
|
|
296
|
+
@binding {Object} item - menu item
|
|
297
|
+
`),
|
|
298
|
+
k(e.$slots, "menuitem", { item: n }, () => [
|
|
299
|
+
(i(), b(T(n.to ? "router-link" : n.action ? "button" : "a"), {
|
|
300
|
+
key: w,
|
|
301
|
+
href: n.href,
|
|
302
|
+
tabindex: "-1",
|
|
303
|
+
target: n.href ? n.target ?? "_self" : void 0,
|
|
304
|
+
type: n.action ? "button" : void 0,
|
|
305
|
+
class: g([[
|
|
306
|
+
{
|
|
307
|
+
"--is-keyboard-selected": a.value === w
|
|
308
|
+
},
|
|
309
|
+
n.class
|
|
310
|
+
], "menuitem"]),
|
|
311
|
+
to: n.to,
|
|
312
|
+
onClick: O((P) => n.action ? D(n, P) : p(), ["stop"])
|
|
313
|
+
}, {
|
|
314
|
+
default: B(() => [
|
|
315
|
+
f(`
|
|
316
|
+
@slot Custom menu item label
|
|
317
|
+
@binding {Object} item - menu item
|
|
318
|
+
`),
|
|
319
|
+
k(e.$slots, "menuitem-label", { item: n }, () => [
|
|
320
|
+
G(
|
|
321
|
+
J(n.label),
|
|
322
|
+
1
|
|
323
|
+
/* TEXT */
|
|
324
|
+
)
|
|
325
|
+
])
|
|
326
|
+
]),
|
|
327
|
+
_: 2
|
|
328
|
+
/* DYNAMIC */
|
|
329
|
+
}, 1032, ["href", "target", "type", "class", "to", "onClick"]))
|
|
330
|
+
])
|
|
331
|
+
],
|
|
332
|
+
64
|
|
333
|
+
/* STABLE_FRAGMENT */
|
|
334
|
+
))),
|
|
335
|
+
256
|
|
336
|
+
/* UNKEYED_FRAGMENT */
|
|
337
|
+
))
|
|
338
|
+
],
|
|
339
|
+
34
|
|
340
|
+
/* CLASS, HYDRATE_EVENTS */
|
|
341
|
+
)) : f("v-if", !0)
|
|
342
|
+
]),
|
|
343
|
+
_: 3
|
|
344
|
+
/* FORWARDED */
|
|
345
|
+
})
|
|
346
|
+
], 8, _));
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
export {
|
|
350
|
+
W as _,
|
|
351
|
+
te as a
|
|
352
|
+
};
|
|
@@ -3,7 +3,7 @@ var H = (o, e, t) => e in o ? _(o, e, { enumerable: !0, configurable: !0, writab
|
|
|
3
3
|
var i = (o, e, t) => (H(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import "../assets/MazGallery.css";
|
|
5
5
|
import { defineComponent as B, useCssVars as S, defineAsyncComponent as O, onBeforeMount as M, computed as p, openBlock as u, createElementBlock as g, normalizeClass as y, normalizeStyle as E, createElementVNode as b, Fragment as x, renderList as C, withDirectives as w, unref as v, toDisplayString as T, createCommentVNode as L, createVNode as N } from "vue";
|
|
6
|
-
import { _ as R } from "./MazCard-
|
|
6
|
+
import { _ as R } from "./MazCard-cb88998a.mjs";
|
|
7
7
|
const U = `
|
|
8
8
|
.maz-zoom-img {
|
|
9
9
|
position: fixed;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, ref as f, computed as g, onMounted as P, watchEffect as _, openBlock as p, createElementBlock as h, Fragment as A, createCommentVNode as s, mergeProps as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./MazTabsBar-
|
|
2
|
+
import { i as q } from "./MazTabsBar-3fc93e3c.mjs";
|
|
3
3
|
const H = ["innerHTML"], G = /* @__PURE__ */ b({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|