maz-ui 3.45.6 → 3.46.1-beta.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.d.ts +12 -0
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBackdrop.d.ts +4 -4
- package/components/MazBtn.d.ts +2 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazDialog.d.ts +121 -4
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
- package/components/MazDialogPromise.d.ts +20 -10
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.d.ts +2 -2
- package/components/MazDropdown.d.ts +11 -7
- package/components/MazDropdown.mjs +136 -141
- package/components/MazGallery.d.ts +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazIcon.d.ts +1 -1
- package/components/MazInputNumber.d.ts +1 -1
- package/components/MazInputPrice.d.ts +1 -1
- package/components/MazInputTags.d.ts +1 -1
- package/components/MazLink.d.ts +6 -2
- package/components/MazLink.mjs +3 -3
- package/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +2 -2
- package/components/MazPhoneNumberInput.d.ts +18 -6
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +3 -3
- package/components/MazPullToRefresh.d.ts +2 -2
- package/components/MazSelect.d.ts +5 -0
- package/components/MazSelect.mjs +1 -1
- package/components/MazSwitch.d.ts +1 -1
- package/components/MazTable.d.ts +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.d.ts +3 -3
- package/components/assets/MazAvatar.css +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazPhoneNumberInput.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/MazAvatar-BXZpFUaZ.mjs +154 -0
- package/components/chunks/{MazBadge-BtT5dcnQ.mjs → MazBadge-CNSfzYq-.mjs} +1 -1
- package/components/chunks/{MazBtn-DY7j6OiY.mjs → MazBtn-BFG89vCa.mjs} +2 -2
- package/components/chunks/{MazBtn-FrVhILjZ.mjs → MazBtn-BGoomw9I.mjs} +2 -2
- package/components/chunks/{MazBtn-BdOCsAcJ.mjs → MazBtn-Bv2ZJa_R.mjs} +2 -2
- package/components/chunks/MazBtn-Da2iB5Ca.mjs +150 -0
- package/components/chunks/{MazBtn-BiqIAH4q.mjs → MazBtn-K-VSnuAG.mjs} +2 -2
- package/components/chunks/{MazCard-BY62rYtJ.mjs → MazCard-dFVJALiZ.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DH9P-r_8.mjs → MazCheckbox-BOQ3rCJA.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CR_iUN0_.mjs → MazCheckbox-Dia9JuH9.mjs} +1 -1
- package/components/chunks/{MazDialog-DZhBJeVd.mjs → MazDialog-C3DzTTKe.mjs} +82 -73
- package/components/chunks/MazDialogPromise-BjfZazCh.mjs +519 -0
- package/components/chunks/{MazGallery-Dpo7kTFH.mjs → MazGallery-BOmH2smL.mjs} +60 -60
- package/components/chunks/{MazGallery-CKofGCb2.mjs → MazGallery-PjwNt897.mjs} +61 -61
- package/components/chunks/{MazIcon-B5s0fahc.mjs → MazIcon-BJbOf-7v.mjs} +1 -1
- package/components/chunks/{MazIcon-ufe3UEle.mjs → MazIcon-DtpY3t9J.mjs} +1 -1
- package/components/chunks/{MazLazyImg-BmmDjOiK.mjs → MazLazyImg-D2seDVoC.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-CSCiLEae.mjs → MazPhoneNumberInput-ahQrhENR.mjs} +207 -197
- package/components/chunks/{MazSelect-C7j7fHLt.mjs → MazSelect-DZ86urPA.mjs} +11 -9
- package/components/chunks/{MazSpinner-B5tlgNCz.mjs → MazSpinner-C6h_11fE.mjs} +1 -1
- package/components/chunks/MazSpinner-CQbd8Ovn.mjs +37 -0
- package/components/chunks/{MazSpinner-SlwNtf5M.mjs → MazSpinner-CeYCrySe.mjs} +1 -1
- package/components/chunks/{MazSpinner-D0Z_mIJF.mjs → MazSpinner-DCpFSO05.mjs} +1 -1
- package/components/chunks/{MazSpinner-C5wp4j5g.mjs → MazSpinner-Dr_lfVQQ.mjs} +1 -1
- package/components/chunks/{MazSpinner-DAAoiGES.mjs → MazSpinner-XWBim6LV.mjs} +1 -1
- package/components/chunks/MazSpinner-dU5ZzoYV.mjs +37 -0
- package/components/chunks/{MazSpinner-DfHwN_9D.mjs → MazSpinner-gYRmfrSM.mjs} +1 -1
- package/components/chunks/{MazTable-DjAvTaKP.mjs → MazTable-CverwWXf.mjs} +39 -37
- package/components/chunks/{MazTabsBar-BzmfPGf0.mjs → MazTabsBar-MZYefBb8.mjs} +73 -59
- package/components/chunks/{MazTransitionExpand-pD1Oj5jl.mjs → MazTransitionExpand-C1PC0VLx.mjs} +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/{MazBtn-DBCfLTEq.cjs → MazBtn-O5zWLH6k.cjs} +1 -1
- package/modules/chunks/{MazBtn-ZodGJGYi.mjs → MazBtn-VbPzVjkw.mjs} +2 -2
- package/modules/chunks/{MazIcon-BmzyL3xC.cjs → MazIcon-5tUs5Esl.cjs} +1 -1
- package/modules/chunks/{MazIcon-Cc_Rfdkr.mjs → MazIcon-B-f-2ZQG.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CqfQGJXH.cjs → MazSpinner-BUSCYYJR.cjs} +1 -1
- package/modules/chunks/{MazSpinner-1HepG9lI.mjs → MazSpinner-fEByRc1j.mjs} +1 -1
- package/modules/chunks/index-B26Eo5t8.mjs +3316 -0
- package/modules/chunks/index-Bos4zUyQ.cjs +149 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +55 -52
- package/nuxt/index.d.mts +6 -1
- package/nuxt/index.d.ts +6 -1
- package/nuxt/index.json +1 -1
- package/nuxt/index.mjs +8 -0
- package/nuxt/runtime/composables/useDialog.d.ts +2 -0
- package/nuxt/runtime/composables/useDialog.js +5 -0
- package/nuxt/runtime/plugins/dialog.d.ts +8 -0
- package/nuxt/runtime/plugins/dialog.js +23 -0
- package/package.json +10 -10
- package/types/components/MazAvatar.vue.d.ts +12 -0
- package/types/components/MazBackdrop.vue.d.ts +4 -4
- package/types/components/MazBtn.vue.d.ts +2 -2
- package/types/components/MazChart.vue.d.ts +1 -1
- package/types/components/MazDialog.vue.d.ts +121 -4
- package/types/components/MazDialogPromise/useMazDialogPromise.d.ts +80 -0
- package/types/components/MazDialogPromise.vue.d.ts +20 -10
- package/types/components/MazDrawer.vue.d.ts +2 -2
- package/types/components/MazDropdown.vue.d.ts +11 -7
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazIcon.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +1 -1
- package/types/components/MazInputPrice.vue.d.ts +1 -1
- package/types/components/MazInputTags.vue.d.ts +1 -1
- package/types/components/MazLink.vue.d.ts +6 -2
- package/types/components/MazPhoneNumberInput/PhoneInput.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +18 -6
- package/types/components/MazPicker.vue.d.ts +3 -3
- package/types/components/MazPullToRefresh.vue.d.ts +2 -2
- package/types/components/MazSelect.vue.d.ts +5 -0
- package/types/components/MazSwitch.vue.d.ts +1 -1
- package/types/components/MazTable.vue.d.ts +1 -1
- package/types/components/MazTextarea.vue.d.ts +3 -3
- package/types/modules/composables/index.d.ts +1 -0
- package/types/modules/composables/useDialog.d.ts +2 -0
- package/types/modules/composables/useToast.d.ts +1 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +3 -3
- package/types/modules/helpers/mount-component.d.ts +3 -3
- package/types/modules/plugins/dialog/DialogHandler.d.ts +15 -0
- package/types/modules/plugins/dialog/index.d.ts +6 -0
- package/types/modules/plugins/index.d.ts +1 -0
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
- package/types/modules/plugins/toaster/index.d.ts +2 -2
- package/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -201
- package/components/chunks/MazAvatar-DVjTbmNj.mjs +0 -127
- package/components/chunks/MazBtn-hPyCTfnD.mjs +0 -150
- package/components/chunks/MazDialogPromise-B5xH3Ew4.mjs +0 -478
- package/components/chunks/MazSpinner-DhtejNvD.mjs +0 -37
- package/components/chunks/MazSpinner-DyOBVD2n.mjs +0 -37
- package/modules/chunks/index-BbpA7Mc4.cjs +0 -124
- package/modules/chunks/index-CR18QNVD.mjs +0 -2768
- package/types/components/MazDialogPromise/use-maz-dialog-promise.d.ts +0 -201
- /package/types/modules/plugins/toaster/{toaster-handler.d.ts → ToasterHandler.d.ts} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
import { computed as
|
|
1
|
+
import { computed as x, getCurrentInstance as ee, nextTick as oe, defineComponent as ne, defineAsyncComponent as I, ref as L, watch as T, resolveComponent as te, withDirectives as U, openBlock as b, createElementBlock as h, unref as u, normalizeClass as M, normalizeStyle as le, createElementVNode as w, withModifiers as z, renderSlot as m, createTextVNode as C, toDisplayString as g, createCommentVNode as v, createVNode as N, mergeProps as A, withCtx as B, createBlock as S, Transition as re, Fragment as F, renderList as se, vShow as ie } from "vue";
|
|
2
2
|
import './assets/MazDropdown.css';function ae({
|
|
3
3
|
componentName: t,
|
|
4
4
|
providedId: l
|
|
5
5
|
}) {
|
|
6
|
-
return
|
|
6
|
+
return x(() => {
|
|
7
7
|
var n;
|
|
8
|
-
return l ?? `${t}-${(n =
|
|
8
|
+
return l ?? `${t}-${(n = ee()) == null ? void 0 : n.uid}`;
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
|
-
const
|
|
12
|
-
function
|
|
11
|
+
const D = "__maz-click-outside__";
|
|
12
|
+
function V() {
|
|
13
13
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
14
14
|
}
|
|
15
|
-
async function
|
|
15
|
+
async function _(t, l) {
|
|
16
16
|
try {
|
|
17
|
-
|
|
18
|
-
const n = l.instance, c = l.value,
|
|
19
|
-
if (!
|
|
17
|
+
q(t);
|
|
18
|
+
const n = l.instance, c = l.value, k = typeof c == "function";
|
|
19
|
+
if (!k)
|
|
20
20
|
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
21
|
-
await
|
|
22
|
-
if ((!t || f.target && !t.contains(f.target)) && c &&
|
|
21
|
+
await oe(), t[D] = (f) => {
|
|
22
|
+
if ((!t || f.target && !t.contains(f.target)) && c && k)
|
|
23
23
|
return c.call(n, f);
|
|
24
24
|
};
|
|
25
|
-
const
|
|
26
|
-
document.addEventListener(
|
|
25
|
+
const E = V();
|
|
26
|
+
document.addEventListener(E, t[D], { passive: !0 });
|
|
27
27
|
} catch (n) {
|
|
28
28
|
console.error("[maz-ui](vClickOutside)", n);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function q(t) {
|
|
32
32
|
try {
|
|
33
|
-
const l =
|
|
34
|
-
document.removeEventListener(l, t[
|
|
33
|
+
const l = V();
|
|
34
|
+
document.removeEventListener(l, t[D], !1), delete t[D];
|
|
35
35
|
} catch (l) {
|
|
36
36
|
console.error("[maz-ui](vClickOutside)", l);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ue(t, l) {
|
|
40
40
|
try {
|
|
41
41
|
if (l.value === l.oldValue)
|
|
42
42
|
return;
|
|
43
|
-
|
|
43
|
+
_(t, l);
|
|
44
44
|
} catch (n) {
|
|
45
45
|
console.error("[maz-ui](vClickOutside)", n);
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
const
|
|
49
|
-
mounted:
|
|
50
|
-
updated:
|
|
51
|
-
unmounted:
|
|
48
|
+
const de = {
|
|
49
|
+
mounted: _,
|
|
50
|
+
updated: ue,
|
|
51
|
+
unmounted: q
|
|
52
52
|
};
|
|
53
|
-
function
|
|
53
|
+
function ce(t, l) {
|
|
54
54
|
let n;
|
|
55
55
|
return function(...c) {
|
|
56
56
|
clearTimeout(n), n = setTimeout(() => {
|
|
@@ -58,7 +58,7 @@ function de(t, l) {
|
|
|
58
58
|
}, l);
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const fe = ["id"], pe = ["aria-expanded"], me = ["id"], ve = { class: "button-span" }, be = ["onClick"], ye = /* @__PURE__ */ ne({
|
|
62
62
|
inheritAttrs: !1,
|
|
63
63
|
__name: "MazDropdown",
|
|
64
64
|
props: {
|
|
@@ -77,181 +77,193 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
|
|
|
77
77
|
},
|
|
78
78
|
emits: ["menuitem-clicked", "update:open"],
|
|
79
79
|
setup(t, { emit: l }) {
|
|
80
|
-
const n = t, c = l,
|
|
80
|
+
const n = t, c = l, k = I(() => import("./chunks/MazBtn-C-RDq3T0.mjs").then((e) => e.M)), E = I(() => import("./chunks/chevron-down-BkvtON3b.mjs")), f = ae({
|
|
81
81
|
componentName: "MazDropdown",
|
|
82
82
|
providedId: n.id
|
|
83
|
-
}),
|
|
84
|
-
|
|
83
|
+
}), i = L(n.open), s = L(), p = ce((e) => {
|
|
84
|
+
a(e);
|
|
85
85
|
}, 200);
|
|
86
|
-
function q() {
|
|
87
|
-
a.value && i(!1);
|
|
88
|
-
}
|
|
89
86
|
function H() {
|
|
90
|
-
i(!
|
|
87
|
+
i.value && a(!1);
|
|
91
88
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
89
|
+
function R() {
|
|
90
|
+
a(!i.value);
|
|
94
91
|
}
|
|
95
92
|
function j() {
|
|
96
|
-
["
|
|
93
|
+
["click"].includes(n.trigger) && R();
|
|
97
94
|
}
|
|
98
95
|
function K() {
|
|
99
|
-
["hover", "both"].includes(n.trigger) &&
|
|
96
|
+
["hover", "both"].includes(n.trigger) && a(!0);
|
|
100
97
|
}
|
|
101
98
|
function P() {
|
|
102
|
-
["hover", "both"].includes(n.trigger) &&
|
|
99
|
+
["hover", "both"].includes(n.trigger) && (i.value === !1 ? a(!0) : p(!0));
|
|
103
100
|
}
|
|
104
101
|
function Q() {
|
|
105
|
-
|
|
102
|
+
["hover", "both"].includes(n.trigger) && p(!1);
|
|
103
|
+
}
|
|
104
|
+
function G() {
|
|
105
|
+
p(!1);
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
n.disabled || (
|
|
107
|
+
function a(e) {
|
|
108
|
+
n.disabled || (i.value = e, c("update:open", e));
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
function J(e) {
|
|
111
|
+
return "action" in e;
|
|
112
|
+
}
|
|
113
|
+
async function W(e, r) {
|
|
111
114
|
var d;
|
|
112
|
-
c("menuitem-clicked",
|
|
115
|
+
c("menuitem-clicked", r), await ((d = e.action) == null ? void 0 : d.call(e)), n.noCloseOnClick || y();
|
|
113
116
|
}
|
|
114
117
|
function y() {
|
|
115
|
-
n.noCloseOnClick === !1 &&
|
|
118
|
+
n.noCloseOnClick === !1 && a(!1);
|
|
116
119
|
}
|
|
117
120
|
function O(e) {
|
|
118
|
-
e.key === "Escape" ? (e.preventDefault(),
|
|
121
|
+
e.key === "Escape" ? (e.preventDefault(), a(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? Y(e) : e.key === "Enter" && typeof s.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${f.value} .menuitem`)[s.value].click(), y());
|
|
119
122
|
}
|
|
120
|
-
function
|
|
121
|
-
["ArrowDown", "ArrowUp", "Enter"].includes(e.key) &&
|
|
123
|
+
function X(e) {
|
|
124
|
+
["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && i.value === !1 && (e.preventDefault(), a(!0));
|
|
122
125
|
}
|
|
123
|
-
function
|
|
126
|
+
function Y(e) {
|
|
124
127
|
var o;
|
|
125
128
|
e.preventDefault();
|
|
126
|
-
const
|
|
127
|
-
|
|
129
|
+
const r = e.key;
|
|
130
|
+
i.value || a(!0);
|
|
128
131
|
const d = (o = n.items) == null ? void 0 : o.length;
|
|
129
|
-
d && (typeof
|
|
132
|
+
d && (typeof s.value == "number" ? s.value === d - 1 && r === "ArrowDown" ? s.value = 0 : s.value === 0 && r === "ArrowUp" ? s.value = d - 1 : s.value = r === "ArrowDown" ? s.value + 1 : s.value - 1 : s.value = r === "ArrowDown" ? 0 : d - 1);
|
|
130
133
|
}
|
|
131
|
-
return
|
|
132
|
-
() =>
|
|
134
|
+
return T(
|
|
135
|
+
() => i.value,
|
|
133
136
|
(e) => {
|
|
134
|
-
e ? document.addEventListener("keydown", O) : document.removeEventListener("keydown", O),
|
|
137
|
+
e ? document.addEventListener("keydown", O) : document.removeEventListener("keydown", O), s.value = void 0;
|
|
135
138
|
}
|
|
136
|
-
),
|
|
139
|
+
), T(
|
|
137
140
|
() => n.open,
|
|
138
|
-
(e) =>
|
|
139
|
-
), (e,
|
|
140
|
-
const d =
|
|
141
|
-
return
|
|
141
|
+
(e) => a(e)
|
|
142
|
+
), (e, r) => {
|
|
143
|
+
const d = te("MazLink");
|
|
144
|
+
return U((b(), h("div", {
|
|
142
145
|
id: u(f),
|
|
143
|
-
class:
|
|
144
|
-
style:
|
|
146
|
+
class: M(["m-dropdown", [n.class]]),
|
|
147
|
+
style: le(e.style)
|
|
145
148
|
}, [
|
|
146
|
-
|
|
149
|
+
w("div", {
|
|
147
150
|
role: "button",
|
|
148
151
|
tabindex: "0",
|
|
149
152
|
class: "m-dropdown__wrapper",
|
|
150
|
-
"aria-expanded":
|
|
153
|
+
"aria-expanded": i.value,
|
|
151
154
|
"aria-haspopup": "menu",
|
|
152
|
-
onClick:
|
|
153
|
-
onFocus:
|
|
154
|
-
onBlur:
|
|
155
|
-
onKeydown:
|
|
156
|
-
onMouseenter:
|
|
157
|
-
onMouseleave:
|
|
155
|
+
onClick: z(j, ["stop"]),
|
|
156
|
+
onFocus: K,
|
|
157
|
+
onBlur: G,
|
|
158
|
+
onKeydown: X,
|
|
159
|
+
onMouseenter: P,
|
|
160
|
+
onMouseleave: Q
|
|
158
161
|
}, [
|
|
159
|
-
|
|
162
|
+
w("span", {
|
|
160
163
|
id: `${u(f)}-labelspan`,
|
|
161
164
|
class: "maz-sr-only"
|
|
162
165
|
}, [
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
+
m(e.$slots, "screen-reader-description", {}, () => [
|
|
167
|
+
C(
|
|
168
|
+
g(e.screenReaderDescription),
|
|
166
169
|
1
|
|
167
170
|
/* TEXT */
|
|
168
171
|
)
|
|
169
172
|
])
|
|
170
|
-
], 8,
|
|
171
|
-
|
|
173
|
+
], 8, me),
|
|
174
|
+
v(`
|
|
172
175
|
@slot Custom Element
|
|
173
176
|
@binding {Boolen} is-open close function
|
|
174
177
|
@default \`<MazBtn />\`
|
|
175
178
|
`),
|
|
176
|
-
|
|
177
|
-
|
|
179
|
+
m(e.$slots, "element", { isOpen: i.value }, () => [
|
|
180
|
+
N(u(k), A({
|
|
178
181
|
color: e.color,
|
|
179
182
|
disabled: e.disabled,
|
|
180
183
|
"aria-labelledby": `${u(f)}-labelspan`
|
|
181
184
|
}, e.$attrs, { tabindex: "-1" }), {
|
|
182
185
|
default: B(() => [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
e.noChevron ?
|
|
186
|
+
w("span", ve, [
|
|
187
|
+
v(" @slot Button text "),
|
|
188
|
+
m(e.$slots, "default"),
|
|
189
|
+
e.noChevron ? v("v-if", !0) : (b(), S(u(E), {
|
|
187
190
|
key: 0,
|
|
188
|
-
class:
|
|
191
|
+
class: M([{ "maz-rotate-180": i.value }, "chevron-icon"])
|
|
189
192
|
}, null, 8, ["class"]))
|
|
190
193
|
]),
|
|
191
|
-
|
|
194
|
+
v(" @slot Menu Label ")
|
|
192
195
|
]),
|
|
193
196
|
_: 3
|
|
194
197
|
/* FORWARDED */
|
|
195
198
|
}, 16, ["color", "disabled", "aria-labelledby"])
|
|
196
199
|
])
|
|
197
|
-
], 40,
|
|
198
|
-
|
|
200
|
+
], 40, pe),
|
|
201
|
+
N(re, {
|
|
199
202
|
name: "maz-scale-fade",
|
|
200
203
|
persisted: ""
|
|
201
204
|
}, {
|
|
202
205
|
default: B(() => [
|
|
203
|
-
|
|
206
|
+
U(w(
|
|
204
207
|
"div",
|
|
205
208
|
{
|
|
206
209
|
role: "menu",
|
|
207
210
|
"aria-label": "Menu",
|
|
208
|
-
class:
|
|
211
|
+
class: M(["menu", {
|
|
209
212
|
"--top": e.position.includes("top"),
|
|
210
213
|
"--left": e.position.includes("left"),
|
|
211
214
|
"--right": e.position.includes("right"),
|
|
212
215
|
"--bottom": e.position.includes("bottom")
|
|
213
216
|
}]),
|
|
214
217
|
tabindex: "-1",
|
|
215
|
-
onFocus:
|
|
216
|
-
onBlur:
|
|
217
|
-
onMouseenter:
|
|
218
|
-
onMouseleave:
|
|
218
|
+
onFocus: r[0] || (r[0] = (o) => u(p)(!0)),
|
|
219
|
+
onBlur: r[1] || (r[1] = (o) => u(p)(!1)),
|
|
220
|
+
onMouseenter: r[2] || (r[2] = (o) => ["hover", "both"].includes(e.trigger) ? u(p)(!0) : void 0),
|
|
221
|
+
onMouseleave: r[3] || (r[3] = (o) => ["hover", "both"].includes(e.trigger) ? u(p)(!1) : void 0)
|
|
219
222
|
},
|
|
220
223
|
[
|
|
221
|
-
|
|
224
|
+
v(`
|
|
222
225
|
@slot Custom dropdown panel
|
|
223
226
|
@binding {Array} items - items prop data
|
|
224
227
|
`),
|
|
225
|
-
|
|
226
|
-
(
|
|
227
|
-
|
|
228
|
+
m(e.$slots, "dropdown", { items: e.items }, () => [
|
|
229
|
+
(b(!0), h(
|
|
230
|
+
F,
|
|
228
231
|
null,
|
|
229
|
-
se(e.items, (o,
|
|
230
|
-
|
|
231
|
-
{ key:
|
|
232
|
+
se(e.items, (o, $) => (b(), h(
|
|
233
|
+
F,
|
|
234
|
+
{ key: $ },
|
|
232
235
|
[
|
|
233
|
-
|
|
236
|
+
v(`
|
|
234
237
|
@slot Custom menu item
|
|
235
238
|
@binding {Object} item - menu item
|
|
236
239
|
`),
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
m(e.$slots, "menuitem", { item: o }, () => [
|
|
241
|
+
C(
|
|
242
|
+
g(o.label) + " ",
|
|
243
|
+
1
|
|
244
|
+
/* TEXT */
|
|
245
|
+
),
|
|
246
|
+
o.to || o.href ? (b(), S(d, A({
|
|
239
247
|
key: 0,
|
|
240
248
|
target: o.href ? o.target ?? "_self" : void 0,
|
|
241
249
|
to: o.to,
|
|
242
|
-
|
|
250
|
+
href: o.href,
|
|
251
|
+
color: o.color ?? "theme",
|
|
252
|
+
ref_for: !0
|
|
253
|
+
}, o, {
|
|
254
|
+
class: ["menuitem", [
|
|
243
255
|
{
|
|
244
|
-
"--is-keyboard-selected":
|
|
256
|
+
"--is-keyboard-selected": s.value === $
|
|
245
257
|
},
|
|
246
258
|
o.class
|
|
247
|
-
]]
|
|
259
|
+
]],
|
|
248
260
|
tabindex: "-1",
|
|
249
|
-
onClick:
|
|
250
|
-
}, {
|
|
261
|
+
onClick: z(y, ["stop"])
|
|
262
|
+
}), {
|
|
251
263
|
default: B(() => [
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
264
|
+
m(e.$slots, "menuitem-label", { item: o }, () => [
|
|
265
|
+
C(
|
|
266
|
+
g(o.label),
|
|
255
267
|
1
|
|
256
268
|
/* TEXT */
|
|
257
269
|
)
|
|
@@ -259,46 +271,29 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
|
|
|
259
271
|
]),
|
|
260
272
|
_: 2
|
|
261
273
|
/* DYNAMIC */
|
|
262
|
-
},
|
|
274
|
+
}, 1040, ["target", "to", "href", "color", "class"])) : o.action ? (b(), h("button", A({
|
|
263
275
|
key: 1,
|
|
264
|
-
target: o.href ? o.target ?? "_self" : void 0,
|
|
265
|
-
href: o.href,
|
|
266
|
-
tabindex: "-1",
|
|
267
|
-
class: k(["menuitem", [
|
|
268
|
-
{
|
|
269
|
-
"--is-keyboard-selected": r.value === g
|
|
270
|
-
},
|
|
271
|
-
o.class
|
|
272
|
-
]]),
|
|
273
|
-
onClick: D(y, ["stop"])
|
|
274
|
-
}, [
|
|
275
|
-
p(e.$slots, "menuitem-label", { item: o }, () => [
|
|
276
|
-
E(
|
|
277
|
-
$(o.label),
|
|
278
|
-
1
|
|
279
|
-
/* TEXT */
|
|
280
|
-
)
|
|
281
|
-
])
|
|
282
|
-
], 10, ve)) : o.action ? (v(), h("button", {
|
|
283
|
-
key: 2,
|
|
284
276
|
tabindex: "-1",
|
|
285
277
|
type: "button",
|
|
286
|
-
|
|
278
|
+
ref_for: !0
|
|
279
|
+
}, o, {
|
|
280
|
+
class: ["menuitem menuitem__button", [
|
|
287
281
|
{
|
|
288
|
-
"--is-keyboard-selected":
|
|
282
|
+
"--is-keyboard-selected": s.value === $
|
|
289
283
|
},
|
|
290
|
-
o.class
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
284
|
+
o.class,
|
|
285
|
+
`--${o.color ?? "theme"}`
|
|
286
|
+
]],
|
|
287
|
+
onClick: z((Z) => J(o) ? W(o, Z) : y(), ["stop"])
|
|
288
|
+
}), [
|
|
289
|
+
m(e.$slots, "menuitem-label", { item: o }, () => [
|
|
290
|
+
C(
|
|
291
|
+
g(o.label),
|
|
297
292
|
1
|
|
298
293
|
/* TEXT */
|
|
299
294
|
)
|
|
300
295
|
])
|
|
301
|
-
],
|
|
296
|
+
], 16, be)) : v("v-if", !0)
|
|
302
297
|
])
|
|
303
298
|
],
|
|
304
299
|
64
|
|
@@ -312,14 +307,14 @@ const ce = ["id"], fe = ["aria-expanded"], pe = ["id"], me = { class: "button-sp
|
|
|
312
307
|
34
|
|
313
308
|
/* CLASS, NEED_HYDRATION */
|
|
314
309
|
), [
|
|
315
|
-
[
|
|
310
|
+
[ie, i.value]
|
|
316
311
|
])
|
|
317
312
|
]),
|
|
318
313
|
_: 3
|
|
319
314
|
/* FORWARDED */
|
|
320
315
|
})
|
|
321
|
-
], 14,
|
|
322
|
-
[u(
|
|
316
|
+
], 14, fe)), [
|
|
317
|
+
[u(de), H]
|
|
323
318
|
]);
|
|
324
319
|
};
|
|
325
320
|
}
|
|
@@ -150,9 +150,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
150
150
|
}>> & Readonly<{}>, {
|
|
151
151
|
blur: boolean;
|
|
152
152
|
width: string | number;
|
|
153
|
-
lazy: boolean;
|
|
154
153
|
height: string | number;
|
|
155
154
|
scale: boolean;
|
|
155
|
+
lazy: boolean;
|
|
156
156
|
images: MazGalleryImage[];
|
|
157
157
|
imagesShownCount: number;
|
|
158
158
|
noRemaining: boolean;
|
package/components/MazIcon.d.ts
CHANGED
|
@@ -72,9 +72,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
72
72
|
}>, {
|
|
73
73
|
title: string;
|
|
74
74
|
path: string;
|
|
75
|
-
name: string;
|
|
76
75
|
size: string;
|
|
77
76
|
src: string;
|
|
77
|
+
name: string;
|
|
78
78
|
transformSource: (param: SVGElement) => typeof param;
|
|
79
79
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
80
80
|
export default _default;
|
|
@@ -56,7 +56,7 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
56
56
|
min: number;
|
|
57
57
|
modelValue: number;
|
|
58
58
|
step: number;
|
|
59
|
-
inputmode: "search" | "text" | "
|
|
59
|
+
inputmode: "search" | "text" | "none" | "email" | "tel" | "decimal" | "url" | "numeric";
|
|
60
60
|
noButtons: boolean;
|
|
61
61
|
textCenter: boolean;
|
|
62
62
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -48,8 +48,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
48
48
|
}>, {
|
|
49
49
|
max: number;
|
|
50
50
|
min: number;
|
|
51
|
-
currency: string;
|
|
52
51
|
modelValue: number;
|
|
52
|
+
currency: string;
|
|
53
53
|
locale: string;
|
|
54
54
|
noIcon: boolean;
|
|
55
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -39,9 +39,9 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
39
39
|
label: string;
|
|
40
40
|
style: string | false | import("vue").CSSProperties | import("vue").StyleValue[] | null;
|
|
41
41
|
error: boolean;
|
|
42
|
-
size: Size;
|
|
43
42
|
success: boolean;
|
|
44
43
|
warning: boolean;
|
|
44
|
+
size: Size;
|
|
45
45
|
color: Color;
|
|
46
46
|
class: HTMLAttributes["class"];
|
|
47
47
|
disabled: boolean;
|
package/components/MazLink.d.ts
CHANGED
|
@@ -36,7 +36,10 @@ export interface Props {
|
|
|
36
36
|
underline?: boolean;
|
|
37
37
|
/** Add an underline only on hover */
|
|
38
38
|
underlineOnlyHover?: boolean;
|
|
39
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* Add an external icon to the link if target is '_blank'
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
40
43
|
autoExternal?: boolean;
|
|
41
44
|
/**
|
|
42
45
|
* The name of the icon or component to display on the left of the text
|
|
@@ -69,11 +72,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
69
72
|
to: RouteLocationRaw;
|
|
70
73
|
id: string;
|
|
71
74
|
target: "_blank" | "_self" | "_parent" | "_top" | string;
|
|
75
|
+
underline: boolean;
|
|
72
76
|
download: string;
|
|
73
77
|
rel: string;
|
|
74
78
|
ariaLabel: string;
|
|
75
|
-
underline: boolean;
|
|
76
79
|
underlineOnlyHover: boolean;
|
|
80
|
+
autoExternal: boolean;
|
|
77
81
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
82
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
79
83
|
export default _default;
|
package/components/MazLink.mjs
CHANGED
|
@@ -7,13 +7,13 @@ import './assets/MazLink.css';const m = /* @__PURE__ */ p({
|
|
|
7
7
|
href: { default: "#" },
|
|
8
8
|
to: { default: void 0 },
|
|
9
9
|
color: { default: "primary" },
|
|
10
|
-
target: { default: "
|
|
10
|
+
target: { default: "_self" },
|
|
11
11
|
download: { default: void 0 },
|
|
12
12
|
rel: { default: void 0 },
|
|
13
13
|
ariaLabel: { default: void 0 },
|
|
14
14
|
underline: { type: Boolean, default: !1 },
|
|
15
15
|
underlineOnlyHover: { type: Boolean, default: !0 },
|
|
16
|
-
autoExternal: { type: Boolean },
|
|
16
|
+
autoExternal: { type: Boolean, default: !0 },
|
|
17
17
|
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
18
18
|
rightIcon: { type: [String, Function, Object], default: void 0 }
|
|
19
19
|
},
|
|
@@ -77,7 +77,7 @@ import './assets/MazLink.css';const m = /* @__PURE__ */ p({
|
|
|
77
77
|
for (const [e, u] of i)
|
|
78
78
|
o[e] = u;
|
|
79
79
|
return o;
|
|
80
|
-
}, k = /* @__PURE__ */ v(m, [["__scopeId", "data-v-
|
|
80
|
+
}, k = /* @__PURE__ */ v(m, [["__scopeId", "data-v-b1120a61"]]);
|
|
81
81
|
export {
|
|
82
82
|
k as default
|
|
83
83
|
};
|
|
@@ -18,11 +18,11 @@ type __VLS_PublicProps = {
|
|
|
18
18
|
modelValue?: string;
|
|
19
19
|
} & typeof __VLS_typeProps;
|
|
20
20
|
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:modelValue": (modelValue: string) => any;
|
|
22
21
|
"update:model-value": (phoneNumber?: string | undefined) => any;
|
|
22
|
+
"update:modelValue": (modelValue: string) => any;
|
|
23
23
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
|
-
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
25
24
|
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
25
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
26
26
|
}>, {
|
|
27
27
|
label: string;
|
|
28
28
|
placeholder: string;
|
|
@@ -96,6 +96,16 @@ export interface Props {
|
|
|
96
96
|
* @values "row" | "col" | "responsive"
|
|
97
97
|
*/
|
|
98
98
|
orientation?: 'row' | 'col' | 'responsive';
|
|
99
|
+
/**
|
|
100
|
+
* Meta attributes of the country input
|
|
101
|
+
* @default {Record<string, unknown>} { autocomplete: 'off', name: 'country' }
|
|
102
|
+
*/
|
|
103
|
+
countrySelectAttributes?: Record<string, unknown>;
|
|
104
|
+
/**
|
|
105
|
+
* Meta attributes of the phone number input
|
|
106
|
+
* @default {Record<string, unknown>} { autocomplete: 'tel', name: 'phone', inputmode: 'tel' }
|
|
107
|
+
*/
|
|
108
|
+
phoneInputAttributes?: Record<string, unknown>;
|
|
99
109
|
}
|
|
100
110
|
interface SelectionRange {
|
|
101
111
|
start?: number | null;
|
|
@@ -138,11 +148,11 @@ declare function __VLS_template(): {
|
|
|
138
148
|
autoFormat?: boolean;
|
|
139
149
|
noFormattingAsYouType?: boolean;
|
|
140
150
|
}> & Readonly<{
|
|
141
|
-
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
142
151
|
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
152
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
143
153
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
144
|
-
"update:modelValue": (modelValue: string) => any;
|
|
145
154
|
"update:model-value": (phoneNumber?: string | undefined) => any;
|
|
155
|
+
"update:modelValue": (modelValue: string) => any;
|
|
146
156
|
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<{
|
|
147
157
|
modelValue?: string;
|
|
148
158
|
} & {
|
|
@@ -160,8 +170,8 @@ declare function __VLS_template(): {
|
|
|
160
170
|
autoFormat?: boolean;
|
|
161
171
|
noFormattingAsYouType?: boolean;
|
|
162
172
|
}> & Readonly<{
|
|
163
|
-
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
164
173
|
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
174
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
165
175
|
}>, {
|
|
166
176
|
label: string;
|
|
167
177
|
placeholder: string;
|
|
@@ -189,8 +199,8 @@ declare function __VLS_template(): {
|
|
|
189
199
|
autoFormat?: boolean;
|
|
190
200
|
noFormattingAsYouType?: boolean;
|
|
191
201
|
}> & Readonly<{
|
|
192
|
-
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
193
202
|
"onUpdate:model-value"?: ((phoneNumber?: string | undefined) => any) | undefined;
|
|
203
|
+
"onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
|
|
194
204
|
}>, {}, {}, {}, {}, {
|
|
195
205
|
label: string;
|
|
196
206
|
placeholder: string;
|
|
@@ -201,14 +211,14 @@ declare function __VLS_template(): {
|
|
|
201
211
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
202
212
|
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
203
213
|
data: (results: Results) => any;
|
|
204
|
-
update: (results: Results) => any;
|
|
205
214
|
"update:model-value": (value: string) => any;
|
|
215
|
+
update: (results: Results) => any;
|
|
206
216
|
"country-code": (countryCode?: CountryCode | undefined) => any;
|
|
207
217
|
"update:country-code": (countryCode?: CountryCode | undefined) => any;
|
|
208
218
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
209
219
|
onData?: ((results: Results) => any) | undefined;
|
|
210
|
-
onUpdate?: ((results: Results) => any) | undefined;
|
|
211
220
|
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
221
|
+
onUpdate?: ((results: Results) => any) | undefined;
|
|
212
222
|
"onCountry-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
|
|
213
223
|
"onUpdate:country-code"?: ((countryCode?: CountryCode | undefined) => any) | undefined;
|
|
214
224
|
}>, {
|
|
@@ -236,6 +246,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
236
246
|
defaultCountryCode: CountryCode;
|
|
237
247
|
translations: Partial<Translations>;
|
|
238
248
|
countrySelectorWidth: string;
|
|
249
|
+
countrySelectAttributes: Record<string, unknown>;
|
|
250
|
+
phoneInputAttributes: Record<string, unknown>;
|
|
239
251
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
240
252
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
241
253
|
export default _default;
|