maz-ui 3.47.2-beta.4 → 3.47.2-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.d.ts +2 -2
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.d.ts +23 -2
- package/components/MazDropdown.mjs +2 -325
- package/components/MazGallery.d.ts +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.d.ts +2 -2
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.d.ts +2 -2
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.d.ts +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.d.ts +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazPullToRefresh.d.ts +1 -1
- package/components/MazReadingProgressBar.d.ts +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.d.ts +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/chunks/{MazBottomSheet-CGRvZmGd.mjs → MazBottomSheet-C9GWCGys.mjs} +1 -1
- package/components/chunks/MazBtn-BBb9-9O6.mjs +105 -0
- package/components/chunks/MazBtn-CMyQNKuk.mjs +105 -0
- package/components/chunks/MazBtn-CfUZ9QSO.mjs +105 -0
- package/components/chunks/MazBtn-D7tI764y.mjs +105 -0
- package/components/chunks/MazBtn-DA2lg-5s.mjs +113 -0
- package/components/chunks/MazBtn-DER-sPjl.mjs +105 -0
- package/components/chunks/MazBtn-DHfi8M3z.mjs +105 -0
- package/components/chunks/MazBtn-DKyz5Hc0.mjs +105 -0
- package/components/chunks/MazBtn-DZb-6vcl.mjs +105 -0
- package/components/chunks/MazBtn-DhEO9uvT.mjs +105 -0
- package/components/chunks/MazBtn-DpFjxnMy.mjs +105 -0
- package/components/chunks/MazBtn-IPfW92RY.mjs +105 -0
- package/components/chunks/MazBtn-Lsac2Q0p.mjs +105 -0
- package/components/chunks/MazBtn-VU3XSEv8.mjs +110 -0
- package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-CAPZoSqv.mjs} +1 -1
- package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-CSv4VpC9.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BTl370Qq.mjs → MazCheckbox-BI2um2gY.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BBL0vgqe.mjs → MazCheckbox-DwAd7p8o.mjs} +1 -1
- package/components/chunks/{MazCheckbox-DTU2jEkC.mjs → MazCheckbox-IhiWZ8D0.mjs} +1 -1
- package/components/chunks/{MazChecklist-CQv-sXP1.mjs → MazChecklist-Bqd7qTO1.mjs} +1 -1
- package/components/chunks/{MazDialog-khofH-7I.mjs → MazDialog-xPCkmhrE.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-ZRA2ZrO4.mjs → MazDialogPromise-dIHWE8dO.mjs} +2 -2
- package/components/chunks/MazDropdown-7WqbXnPN.mjs +442 -0
- package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-CRY5X5zS.mjs} +2 -2
- package/components/chunks/MazIcon-B3gy-jQ6.mjs +4 -0
- package/components/chunks/{MazIcon-BdQtfzuy.mjs → MazIcon-D3TB52NM.mjs} +1 -1
- package/components/chunks/{MazInput-DzWkS-g8.mjs → MazInput-DG-grU7m.mjs} +1 -1
- package/components/chunks/{MazInput-geBqeT4i.mjs → MazInput-ROgC-JLt.mjs} +2 -2
- package/components/chunks/{MazInput-eOtg1L9F.mjs → MazInput-rW-KBJGJ.mjs} +2 -2
- package/components/chunks/MazInputNumber-DoeT5Lcu.mjs +571 -0
- package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CZiypHp3.mjs} +1 -1
- package/components/chunks/MazInputTags-DGAglIQb.mjs +584 -0
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-yKgOtTlk.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-DHcYPXlE.mjs → MazLoadingBar-D8a5KF29.mjs} +1 -1
- package/components/chunks/MazPagination-eJFyS5Nn.mjs +329 -0
- package/components/chunks/{MazPhoneNumberInput-BTm8A0bL.mjs → MazPhoneNumberInput-Bbr0zHPZ.mjs} +3 -3
- package/components/chunks/{MazPicker-DwWiIYAR.mjs → MazPicker-EMOuyWJy.mjs} +538 -539
- package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-DJGgb6BT.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-Cg1uqryw.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-BLUXEs0G.mjs} +1 -1
- package/components/chunks/{MazSelect-DOiqBTNY.mjs → MazSelect-BDMOrVry.mjs} +2 -2
- package/components/chunks/{MazSelect-Cnz3p3n2.mjs → MazSelect-BUETsREx.mjs} +3 -3
- package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner--fscjBdL.mjs} +1 -1
- package/components/chunks/MazSpinner-B8vOa-3i.mjs +34 -0
- package/components/chunks/MazSpinner-BODHZQ9h.mjs +34 -0
- package/components/chunks/MazSpinner-BdOKUqKA.mjs +34 -0
- package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C0PBSYpC.mjs} +1 -1
- package/components/chunks/{MazSpinner-B1PXhYRx.mjs → MazSpinner-CEgSruvD.mjs} +1 -1
- package/components/chunks/{MazSpinner-Dhg-s-9s.mjs → MazSpinner-CLlK6hHp.mjs} +1 -1
- package/components/chunks/MazSpinner-CMMBCwk2.mjs +34 -0
- package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CQpzVTYF.mjs} +1 -1
- package/components/chunks/MazSpinner-ChqoF_fX.mjs +34 -0
- package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-D5ciNjTR.mjs} +1 -1
- package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-DJM02T-b.mjs} +1 -1
- package/components/chunks/{MazSpinner-B7tPZpHw.mjs → MazSpinner-DebSlkVT.mjs} +1 -1
- package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-RzOGVi6V.mjs} +1 -1
- package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-VN2Vol2B.mjs} +1 -1
- package/components/chunks/MazSpinner-dm4RUkiD.mjs +34 -0
- package/components/chunks/MazSpinner-oLVdOGaR.mjs +34 -0
- package/components/chunks/{MazTable-BKdEx63E.mjs → MazTable-CWsaB02U.mjs} +1 -1
- package/components/chunks/{MazTableCell-CozcugiL.mjs → MazTableCell-CgiGF3bL.mjs} +1 -1
- package/components/chunks/{MazTableRow-bLFpjzu1.mjs → MazTableRow-6KrQQQbm.mjs} +1 -1
- package/components/chunks/{MazTableTitle-Qk239mu9.mjs → MazTableTitle-C8P3v8b6.mjs} +1 -1
- package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-BCgH8NZP.mjs} +1 -1
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/MazBtn-SZHtOzgz.cjs +1 -0
- package/modules/chunks/MazBtn-y5LW9A2T.mjs +105 -0
- package/modules/chunks/{MazIcon-B8BoiF7R.cjs → MazIcon-BpVDZGXl.cjs} +1 -1
- package/modules/chunks/{MazIcon-C6zDSPgJ.mjs → MazIcon-Dj66ziAh.mjs} +1 -1
- package/modules/chunks/{MazSpinner-B-4tL9pK.cjs → MazSpinner-CPT6UF2e.cjs} +1 -1
- package/modules/chunks/{MazSpinner-BvJydaeF.mjs → MazSpinner-uMrdk_99.mjs} +1 -1
- package/modules/chunks/{index-Bf4X7amE.mjs → index-BG6gPie5.mjs} +4 -4
- package/modules/chunks/{index-F0B533E8.cjs → index-BTegnVLg.cjs} +2 -2
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazCard.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
- package/types/components/MazDropdown.vue.d.ts +23 -2
- package/types/components/MazGallery.vue.d.ts +1 -1
- package/types/components/MazInputNumber.vue.d.ts +2 -2
- package/types/components/MazInputPrice.vue.d.ts +2 -2
- package/types/components/MazPhoneNumberInput.vue.d.ts +1 -1
- package/types/components/MazPicker.vue.d.ts +1 -1
- package/types/components/MazPullToRefresh.vue.d.ts +1 -1
- package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
- package/types/components/MazSlider.vue.d.ts +1 -1
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
- package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
- package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
- package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
- package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
- package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
- package/components/chunks/MazBtn-C_BULYqZ.mjs +0 -106
- package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
- package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
- package/components/chunks/MazBtn-Sj-Pq0YV.mjs +0 -106
- package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
- package/components/chunks/MazBtn-cDJlUVVY.mjs +0 -106
- package/components/chunks/MazBtn-cUQ1Tykp.mjs +0 -106
- package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
- package/components/chunks/MazBtn-psosbsi3.mjs +0 -106
- package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
- package/components/chunks/MazInputTags-Dj3sW-e5.mjs +0 -585
- package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
- package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
- package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
- package/components/chunks/MazSpinner-DOSj2BnX.mjs +0 -34
- package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
- package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
- package/modules/chunks/MazBtn-D7el03Rl.cjs +0 -1
- package/modules/chunks/MazBtn-D8uOirkn.mjs +0 -106
|
@@ -0,0 +1,442 @@
|
|
|
1
|
+
import { inject as re, useId as le, computed as A, ref as b, nextTick as Y, defineComponent as Z, onMounted as se, watchEffect as ie, openBlock as w, createElementBlock as $, mergeProps as M, createCommentVNode as R, defineAsyncComponent as F, watch as K, withDirectives as Q, unref as m, normalizeClass as E, normalizeStyle as X, createElementVNode as J, withModifiers as H, renderSlot as g, createTextVNode as V, toDisplayString as q, createVNode as W, createSlots as ae, withCtx as D, createBlock as I, resolveDynamicComponent as ue, Transition as ce, Fragment as de, renderList as fe, vShow as pe } from "vue";
|
|
2
|
+
import '../assets/MazDropdown.css';function me(l, s) {
|
|
3
|
+
const n = re(l, s);
|
|
4
|
+
if (!n)
|
|
5
|
+
throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${l}`);
|
|
6
|
+
return n;
|
|
7
|
+
}
|
|
8
|
+
function ve({
|
|
9
|
+
componentName: l,
|
|
10
|
+
providedId: s
|
|
11
|
+
}) {
|
|
12
|
+
const n = le();
|
|
13
|
+
return A(() => s ?? `${l}-${n}`);
|
|
14
|
+
}
|
|
15
|
+
b("system");
|
|
16
|
+
b("system");
|
|
17
|
+
const T = "__maz-click-outside__";
|
|
18
|
+
function _() {
|
|
19
|
+
return document.ontouchstart === null ? "touchstart" : "click";
|
|
20
|
+
}
|
|
21
|
+
async function x(l, s) {
|
|
22
|
+
try {
|
|
23
|
+
ee(l);
|
|
24
|
+
const n = s.instance, f = s.value, p = typeof f == "function";
|
|
25
|
+
if (!p)
|
|
26
|
+
throw new Error("[maz-ui](vClickOutside) the callback should be a function");
|
|
27
|
+
await Y(), l[T] = (h) => {
|
|
28
|
+
if ((!l || h.target && !l.contains(h.target)) && f && p)
|
|
29
|
+
return f.call(n, h);
|
|
30
|
+
};
|
|
31
|
+
const v = _();
|
|
32
|
+
document.addEventListener(v, l[T], { passive: !0 });
|
|
33
|
+
} catch (n) {
|
|
34
|
+
console.error("[maz-ui](vClickOutside)", n);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function ee(l) {
|
|
38
|
+
try {
|
|
39
|
+
const s = _();
|
|
40
|
+
document.removeEventListener(s, l[T], !1), delete l[T];
|
|
41
|
+
} catch (s) {
|
|
42
|
+
console.error("[maz-ui](vClickOutside)", s);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function ye(l, s) {
|
|
46
|
+
try {
|
|
47
|
+
if (s.value === s.oldValue)
|
|
48
|
+
return;
|
|
49
|
+
x(l, s);
|
|
50
|
+
} catch (n) {
|
|
51
|
+
console.error("[maz-ui](vClickOutside)", n);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const we = {
|
|
55
|
+
mounted: x,
|
|
56
|
+
updated: ye,
|
|
57
|
+
unmounted: ee
|
|
58
|
+
};
|
|
59
|
+
function he(l, s) {
|
|
60
|
+
let n;
|
|
61
|
+
return function(...f) {
|
|
62
|
+
clearTimeout(n), n = setTimeout(() => {
|
|
63
|
+
l.apply(this, f);
|
|
64
|
+
}, s);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
const ge = {
|
|
68
|
+
cancelText: "Cancel",
|
|
69
|
+
confirmText: "Confirm",
|
|
70
|
+
cancelButton: {
|
|
71
|
+
text: "Cancel",
|
|
72
|
+
color: "danger"
|
|
73
|
+
},
|
|
74
|
+
confirmButton: {
|
|
75
|
+
text: "Confirm",
|
|
76
|
+
color: "success"
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
b(ge);
|
|
80
|
+
b([]);
|
|
81
|
+
const be = ["innerHTML"], ke = /* @__PURE__ */ Z({
|
|
82
|
+
__name: "MazIcon",
|
|
83
|
+
props: {
|
|
84
|
+
/** The source path of the SVG file - e.g: `/icons/home.svg` */
|
|
85
|
+
src: { type: String, default: void 0 },
|
|
86
|
+
/** The path of the folder where the SVG files are stored - e.g: `/icons` */
|
|
87
|
+
path: { type: String, default: void 0 },
|
|
88
|
+
/** The name of the SVG file - e.g: `home` */
|
|
89
|
+
name: { type: String, default: void 0 },
|
|
90
|
+
/** The size of the SVG file - e.g: `1em` */
|
|
91
|
+
size: { type: String, default: void 0 },
|
|
92
|
+
/** The title of the SVG file - e.g: `Home` */
|
|
93
|
+
title: { type: String, default: void 0 },
|
|
94
|
+
/** The function to transform the source of the SVG file - e.g: `(svg) => svg` */
|
|
95
|
+
transformSource: {
|
|
96
|
+
type: Function,
|
|
97
|
+
default: (l) => l
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
emits: ["loaded", "unloaded", "error"],
|
|
101
|
+
setup(l, { emit: s }) {
|
|
102
|
+
const n = l, f = s, p = {}, v = b(), h = b();
|
|
103
|
+
function O() {
|
|
104
|
+
try {
|
|
105
|
+
return me("mazIconPath");
|
|
106
|
+
} catch {
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const u = A(() => n.path ?? O()), c = A(() => n.src ? n.src : u.value ? `${u.value}/${n.name}.svg` : `/${n.name}.svg`);
|
|
111
|
+
se(() => {
|
|
112
|
+
!n.name && !n.src && console.error('[maz-ui](MazIcon) you should provide "name" or "src" as prop');
|
|
113
|
+
});
|
|
114
|
+
function S(t, a) {
|
|
115
|
+
const i = t.querySelectorAll("title");
|
|
116
|
+
if (i.length > 0)
|
|
117
|
+
i[0].textContent = a;
|
|
118
|
+
else {
|
|
119
|
+
const r = document.createElementNS("http://www.w3.org/2000/svg", "title");
|
|
120
|
+
r.textContent = a, t.append(r);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
function y(t) {
|
|
124
|
+
return Object.keys(t).reduce((a, i) => (t[i] !== !1 && t[i] !== null && t[i] !== void 0 && (a[i] = t[i]), a), {});
|
|
125
|
+
}
|
|
126
|
+
function B(t) {
|
|
127
|
+
const a = {}, i = t.attributes;
|
|
128
|
+
if (!i)
|
|
129
|
+
return a;
|
|
130
|
+
for (let r = i.length - 1; r >= 0; r--)
|
|
131
|
+
a[i[r].name] = i[r].value;
|
|
132
|
+
return a;
|
|
133
|
+
}
|
|
134
|
+
function L(t) {
|
|
135
|
+
let a = t.cloneNode(!0);
|
|
136
|
+
return a = n.transformSource(t), n.title && S(a, n.title), t.innerHTML;
|
|
137
|
+
}
|
|
138
|
+
async function P(t) {
|
|
139
|
+
p[t] || (p[t] = N(t));
|
|
140
|
+
try {
|
|
141
|
+
v.value = await p[t], await Y(), f("loaded", h.value);
|
|
142
|
+
} catch (a) {
|
|
143
|
+
v.value && (v.value = void 0, f("unloaded")), delete p[t], f("error", a);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function N(t) {
|
|
147
|
+
return new Promise((a, i) => {
|
|
148
|
+
const r = new XMLHttpRequest();
|
|
149
|
+
r.open("GET", t, !0), r.addEventListener("load", () => {
|
|
150
|
+
if (r.status >= 200 && r.status < 400)
|
|
151
|
+
try {
|
|
152
|
+
let z = new DOMParser().parseFromString(r.responseText, "text/xml").querySelectorAll("svg")[0];
|
|
153
|
+
z ? (z = n.transformSource(z), a(z)) : i(new Error('Loaded file is not valid SVG"'));
|
|
154
|
+
} catch (k) {
|
|
155
|
+
i(k);
|
|
156
|
+
}
|
|
157
|
+
else
|
|
158
|
+
i(new Error("Error loading SVG"));
|
|
159
|
+
}), r.addEventListener("error", (k) => i(k)), r.send();
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
return ie(() => P(c.value)), (t, a) => v.value ? (w(), $("svg", M({
|
|
163
|
+
key: 0,
|
|
164
|
+
ref_key: "svgElem",
|
|
165
|
+
ref: h,
|
|
166
|
+
width: "1em",
|
|
167
|
+
height: "1em"
|
|
168
|
+
}, {
|
|
169
|
+
...B(v.value),
|
|
170
|
+
...y(t.$attrs)
|
|
171
|
+
}, {
|
|
172
|
+
style: `font-size: ${l.size}`,
|
|
173
|
+
innerHTML: L(v.value)
|
|
174
|
+
}), null, 16, be)) : R("v-if", !0);
|
|
175
|
+
}
|
|
176
|
+
}), ze = ["id"], Ce = ["aria-expanded"], Se = ["id"], Ee = ["onClick"], De = /* @__PURE__ */ Z({
|
|
177
|
+
inheritAttrs: !1,
|
|
178
|
+
__name: "MazDropdown",
|
|
179
|
+
props: {
|
|
180
|
+
style: { default: void 0 },
|
|
181
|
+
class: { default: void 0 },
|
|
182
|
+
items: { default: () => [] },
|
|
183
|
+
open: { type: Boolean },
|
|
184
|
+
id: { default: void 0 },
|
|
185
|
+
trigger: { default: "both" },
|
|
186
|
+
color: { default: "transparent" },
|
|
187
|
+
position: { default: "bottom left" },
|
|
188
|
+
noCloseOnClick: { type: Boolean },
|
|
189
|
+
disabled: { type: Boolean },
|
|
190
|
+
noChevron: { type: Boolean },
|
|
191
|
+
screenReaderDescription: { default: "Open menu dropdown" },
|
|
192
|
+
menuPanelClass: {},
|
|
193
|
+
menuPanelStyle: {},
|
|
194
|
+
block: { type: Boolean },
|
|
195
|
+
dropdownIcon: {},
|
|
196
|
+
dropdownIconAnimation: { type: Boolean, default: !0 },
|
|
197
|
+
size: { default: "md" }
|
|
198
|
+
},
|
|
199
|
+
emits: ["menuitem-clicked", "update:open"],
|
|
200
|
+
setup(l, { emit: s }) {
|
|
201
|
+
const n = l, f = s, p = ve({
|
|
202
|
+
componentName: "MazDropdown",
|
|
203
|
+
providedId: n.id
|
|
204
|
+
}), v = F(() => import("./MazBtn-DZb-6vcl.mjs")), h = F(() => import("./MazLink-yKgOtTlk.mjs")), O = F(() => import("./chevron-down-BkvtON3b.mjs")), u = b(n.open), c = b(), S = A(() => n.size === "xl" ? "maz-text-lg" : n.size === "lg" || n.size === "md" || n.size === "sm" ? "maz-text-base" : n.size === "xs" || n.size === "mini" ? "maz-text-sm" : "maz-text-lg"), y = he((e) => {
|
|
205
|
+
r(e);
|
|
206
|
+
}, 200);
|
|
207
|
+
function B() {
|
|
208
|
+
u.value && r(!1);
|
|
209
|
+
}
|
|
210
|
+
function L() {
|
|
211
|
+
r(!u.value);
|
|
212
|
+
}
|
|
213
|
+
function P() {
|
|
214
|
+
["click"].includes(n.trigger) && L();
|
|
215
|
+
}
|
|
216
|
+
function N() {
|
|
217
|
+
["hover", "both"].includes(n.trigger) && r(!0);
|
|
218
|
+
}
|
|
219
|
+
function t() {
|
|
220
|
+
["hover", "both"].includes(n.trigger) && (u.value === !1 ? r(!0) : y(!0));
|
|
221
|
+
}
|
|
222
|
+
function a() {
|
|
223
|
+
["hover", "both"].includes(n.trigger) && y(!1);
|
|
224
|
+
}
|
|
225
|
+
function i() {
|
|
226
|
+
y(!1);
|
|
227
|
+
}
|
|
228
|
+
function r(e) {
|
|
229
|
+
n.disabled || (u.value = e, f("update:open", e));
|
|
230
|
+
}
|
|
231
|
+
function k(e) {
|
|
232
|
+
return "action" in e;
|
|
233
|
+
}
|
|
234
|
+
function G(e) {
|
|
235
|
+
return "href" in e || "to" in e;
|
|
236
|
+
}
|
|
237
|
+
async function z(e, d) {
|
|
238
|
+
var o;
|
|
239
|
+
f("menuitem-clicked", d), await ((o = e.action) == null ? void 0 : o.call(e)), n.noCloseOnClick || U();
|
|
240
|
+
}
|
|
241
|
+
function U() {
|
|
242
|
+
n.noCloseOnClick === !1 && r(!1);
|
|
243
|
+
}
|
|
244
|
+
function j(e) {
|
|
245
|
+
e.key === "Escape" ? (e.preventDefault(), r(!1)) : ["ArrowDown", "ArrowUp"].includes(e.key) ? oe(e) : e.key === "Enter" && typeof c.value == "number" && (e.preventDefault(), document.querySelectorAll(`#${p.value} .menuitem`)[c.value].click(), U());
|
|
246
|
+
}
|
|
247
|
+
function ne(e) {
|
|
248
|
+
["ArrowDown", "ArrowUp", "Enter"].includes(e.key) && u.value === !1 && (e.preventDefault(), r(!0));
|
|
249
|
+
}
|
|
250
|
+
function oe(e) {
|
|
251
|
+
var C;
|
|
252
|
+
e.preventDefault();
|
|
253
|
+
const d = e.key;
|
|
254
|
+
u.value || r(!0);
|
|
255
|
+
const o = (C = n.items) == null ? void 0 : C.length;
|
|
256
|
+
o && (typeof c.value == "number" ? c.value === o - 1 && d === "ArrowDown" ? c.value = 0 : c.value === 0 && d === "ArrowUp" ? c.value = o - 1 : c.value = d === "ArrowDown" ? c.value + 1 : c.value - 1 : c.value = d === "ArrowDown" ? 0 : o - 1);
|
|
257
|
+
}
|
|
258
|
+
return K(
|
|
259
|
+
() => u.value,
|
|
260
|
+
(e) => {
|
|
261
|
+
e ? document.addEventListener("keydown", j) : document.removeEventListener("keydown", j), c.value = void 0;
|
|
262
|
+
}
|
|
263
|
+
), K(
|
|
264
|
+
() => n.open,
|
|
265
|
+
(e) => r(e)
|
|
266
|
+
), (e, d) => Q((w(), $("div", {
|
|
267
|
+
id: m(p),
|
|
268
|
+
class: E(["m-dropdown", [n.class, { "--block": e.block }]]),
|
|
269
|
+
style: X(e.style)
|
|
270
|
+
}, [
|
|
271
|
+
J("div", {
|
|
272
|
+
role: "button",
|
|
273
|
+
tabindex: "0",
|
|
274
|
+
class: "m-dropdown__wrapper",
|
|
275
|
+
"aria-expanded": u.value,
|
|
276
|
+
"aria-haspopup": "menu",
|
|
277
|
+
onClick: H(P, ["stop"]),
|
|
278
|
+
onFocus: N,
|
|
279
|
+
onBlur: i,
|
|
280
|
+
onKeydown: ne,
|
|
281
|
+
onMouseenter: t,
|
|
282
|
+
onMouseleave: a
|
|
283
|
+
}, [
|
|
284
|
+
e.screenReaderDescription || e.$slots["screen-reader-description"] ? (w(), $("span", {
|
|
285
|
+
key: 0,
|
|
286
|
+
id: `${m(p)}-labelspan`,
|
|
287
|
+
class: "maz-sr-only"
|
|
288
|
+
}, [
|
|
289
|
+
g(e.$slots, "screen-reader-description", {}, () => [
|
|
290
|
+
V(
|
|
291
|
+
q(e.screenReaderDescription),
|
|
292
|
+
1
|
|
293
|
+
/* TEXT */
|
|
294
|
+
)
|
|
295
|
+
])
|
|
296
|
+
], 8, Se)) : R("v-if", !0),
|
|
297
|
+
g(e.$slots, "element", { isOpen: u.value }, () => [
|
|
298
|
+
W(m(v), M({
|
|
299
|
+
"aria-labelledby": `${m(p)}-labelspan`,
|
|
300
|
+
color: e.color,
|
|
301
|
+
disabled: e.disabled
|
|
302
|
+
}, e.$attrs, {
|
|
303
|
+
tabindex: "-1",
|
|
304
|
+
block: e.block,
|
|
305
|
+
size: e.size
|
|
306
|
+
}), ae({
|
|
307
|
+
default: D(() => [
|
|
308
|
+
g(e.$slots, "default")
|
|
309
|
+
]),
|
|
310
|
+
_: 2
|
|
311
|
+
/* DYNAMIC */
|
|
312
|
+
}, [
|
|
313
|
+
e.noChevron ? void 0 : {
|
|
314
|
+
name: "right-icon",
|
|
315
|
+
fn: D(() => [
|
|
316
|
+
g(e.$slots, "dropdown-icon", { isOpen: u.value }, () => [
|
|
317
|
+
typeof e.dropdownIcon == "string" ? (w(), I(ke, {
|
|
318
|
+
key: 0,
|
|
319
|
+
name: e.dropdownIcon,
|
|
320
|
+
class: E([{ "--open": u.value && e.dropdownIconAnimation }, S.value])
|
|
321
|
+
}, null, 8, ["name", "class"])) : e.dropdownIcon ? (w(), I(ue(e.dropdownIcon), {
|
|
322
|
+
key: 1,
|
|
323
|
+
class: E([[{ "--open": u.value && e.dropdownIconAnimation }, S.value], "m-dropdown__icon"])
|
|
324
|
+
}, null, 8, ["class"])) : (w(), I(m(O), {
|
|
325
|
+
key: 2,
|
|
326
|
+
class: E([[{ "--open": u.value && e.dropdownIconAnimation }, S.value], "m-dropdown__icon"])
|
|
327
|
+
}, null, 8, ["class"]))
|
|
328
|
+
])
|
|
329
|
+
]),
|
|
330
|
+
key: "0"
|
|
331
|
+
}
|
|
332
|
+
]), 1040, ["aria-labelledby", "color", "disabled", "block", "size"])
|
|
333
|
+
])
|
|
334
|
+
], 40, Ce),
|
|
335
|
+
W(ce, {
|
|
336
|
+
name: "maz-scale-fade",
|
|
337
|
+
persisted: ""
|
|
338
|
+
}, {
|
|
339
|
+
default: D(() => [
|
|
340
|
+
Q(J(
|
|
341
|
+
"div",
|
|
342
|
+
{
|
|
343
|
+
role: "menu",
|
|
344
|
+
"aria-label": "Menu",
|
|
345
|
+
class: E(["menu", [{
|
|
346
|
+
"--top": e.position.includes("top"),
|
|
347
|
+
"--left": e.position.includes("left"),
|
|
348
|
+
"--right": e.position.includes("right"),
|
|
349
|
+
"--bottom": e.position.includes("bottom")
|
|
350
|
+
}, e.menuPanelClass]]),
|
|
351
|
+
tabindex: "-1",
|
|
352
|
+
style: X(e.menuPanelStyle),
|
|
353
|
+
onFocus: d[0] || (d[0] = (o) => m(y)(!0)),
|
|
354
|
+
onBlur: d[1] || (d[1] = (o) => m(y)(!1)),
|
|
355
|
+
onMouseenter: d[2] || (d[2] = (o) => ["hover", "both"].includes(e.trigger) ? m(y)(!0) : void 0),
|
|
356
|
+
onMouseleave: d[3] || (d[3] = (o) => ["hover", "both"].includes(e.trigger) ? m(y)(!1) : void 0)
|
|
357
|
+
},
|
|
358
|
+
[
|
|
359
|
+
g(e.$slots, "dropdown", { items: e.items }, () => [
|
|
360
|
+
(w(!0), $(
|
|
361
|
+
de,
|
|
362
|
+
null,
|
|
363
|
+
fe(e.items, (o, C) => g(e.$slots, "menuitem", {
|
|
364
|
+
key: C,
|
|
365
|
+
item: o
|
|
366
|
+
}, () => [
|
|
367
|
+
G(o) ? (w(), I(m(h), M({
|
|
368
|
+
key: 0,
|
|
369
|
+
target: o.href ? o.target ?? "_self" : void 0,
|
|
370
|
+
to: o.to,
|
|
371
|
+
href: o.href,
|
|
372
|
+
color: o.color ?? "theme",
|
|
373
|
+
ref_for: !0
|
|
374
|
+
}, o, {
|
|
375
|
+
"underline-only-hover": o.underlineOnlyHover ?? !1,
|
|
376
|
+
class: ["menuitem", [
|
|
377
|
+
{
|
|
378
|
+
"--is-keyboard-selected": c.value === C
|
|
379
|
+
},
|
|
380
|
+
o.class
|
|
381
|
+
]],
|
|
382
|
+
tabindex: "-1",
|
|
383
|
+
onClick: H(U, ["stop"])
|
|
384
|
+
}), {
|
|
385
|
+
default: D(() => [
|
|
386
|
+
g(e.$slots, "menuitem-label", { item: o }, () => [
|
|
387
|
+
V(
|
|
388
|
+
q(o.label),
|
|
389
|
+
1
|
|
390
|
+
/* TEXT */
|
|
391
|
+
)
|
|
392
|
+
])
|
|
393
|
+
]),
|
|
394
|
+
_: 2
|
|
395
|
+
/* DYNAMIC */
|
|
396
|
+
}, 1040, ["target", "to", "href", "color", "underline-only-hover", "class"])) : k(o) ? (w(), $("button", M({
|
|
397
|
+
key: 1,
|
|
398
|
+
tabindex: "-1",
|
|
399
|
+
type: "button",
|
|
400
|
+
ref_for: !0
|
|
401
|
+
}, o, {
|
|
402
|
+
class: ["menuitem menuitem__button", [
|
|
403
|
+
{
|
|
404
|
+
"--is-keyboard-selected": c.value === C
|
|
405
|
+
},
|
|
406
|
+
o.class,
|
|
407
|
+
`--${o.color ?? "theme"}`
|
|
408
|
+
]],
|
|
409
|
+
onClick: H((te) => z(o, te), ["stop"])
|
|
410
|
+
}), [
|
|
411
|
+
g(e.$slots, "menuitem-label", { item: o }, () => [
|
|
412
|
+
V(
|
|
413
|
+
q(o.label),
|
|
414
|
+
1
|
|
415
|
+
/* TEXT */
|
|
416
|
+
)
|
|
417
|
+
])
|
|
418
|
+
], 16, Ee)) : R("v-if", !0)
|
|
419
|
+
])),
|
|
420
|
+
128
|
|
421
|
+
/* KEYED_FRAGMENT */
|
|
422
|
+
))
|
|
423
|
+
])
|
|
424
|
+
],
|
|
425
|
+
38
|
|
426
|
+
/* CLASS, STYLE, NEED_HYDRATION */
|
|
427
|
+
), [
|
|
428
|
+
[pe, u.value]
|
|
429
|
+
])
|
|
430
|
+
]),
|
|
431
|
+
_: 3
|
|
432
|
+
/* FORWARDED */
|
|
433
|
+
})
|
|
434
|
+
], 14, ze)), [
|
|
435
|
+
[m(we), B]
|
|
436
|
+
]);
|
|
437
|
+
}
|
|
438
|
+
});
|
|
439
|
+
export {
|
|
440
|
+
ke as _,
|
|
441
|
+
De as a
|
|
442
|
+
};
|
|
@@ -2,7 +2,7 @@ import '../assets/MazGallery.css';var Ae = Object.defineProperty;
|
|
|
2
2
|
var Ie = (o, e, t) => e in o ? Ae(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
|
|
3
3
|
var g = (o, e, t) => Ie(o, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
import { createVNode as z, render as M, defineComponent as re, defineAsyncComponent as N, ref as p, reactive as Ee, computed as C, watch as we, onMounted as Ce, onBeforeUnmount as Le, openBlock as b, createElementBlock as A, withModifiers as O, withKeys as xe, unref as w, createCommentVNode as S, createElementVNode as k, normalizeClass as R, withDirectives as T, vShow as ze, useCssVars as ke, onBeforeMount as Pe, normalizeStyle as se, Fragment as ne, renderList as oe, toDisplayString as Oe } from "vue";
|
|
5
|
-
import { _ as ie } from "./MazCard-
|
|
5
|
+
import { _ as ie } from "./MazCard-CAPZoSqv.mjs";
|
|
6
6
|
function Se(o, e) {
|
|
7
7
|
let t = e == null ? void 0 : e.element;
|
|
8
8
|
function s() {
|
|
@@ -46,7 +46,7 @@ const $e = ["onKeypress"], Be = { class: "m-fullscreen-img-scroller" }, Me = ["s
|
|
|
46
46
|
},
|
|
47
47
|
emits: ["close", "previous", "next", "before-close"],
|
|
48
48
|
setup(o, { emit: e }) {
|
|
49
|
-
const t = o, s = e, r = N(() => import("./MazSpinner
|
|
49
|
+
const t = o, s = e, r = N(() => import("./MazSpinner--fscjBdL.mjs")), l = N(() => import("./x-mark-CnZwVvA7.mjs")), u = N(() => import("./chevron-left-BqVOLRdC.mjs")), y = p(!1), x = p(!1), L = p(!1), h = p(!1), m = p(!1), c = Ee({
|
|
50
50
|
running: !1,
|
|
51
51
|
ended: !1
|
|
52
52
|
}), d = p(t.clickedElement), le = C(() => t.clickedElement.getBoundingClientRect()), H = p(), D = p(t.src), q = p(t.alt), j = p(), v = p(), $ = p(!0), ce = C(() => ({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as T, ref as m, computed as v, onMounted as x, watchEffect as L, openBlock as P, createElementBlock as _, mergeProps as A, createCommentVNode as C, nextTick as $ } from "vue";
|
|
2
|
-
import { i as q } from "./MazPhoneNumberInput-
|
|
2
|
+
import { i as q } from "./MazPhoneNumberInput-Bbr0zHPZ.mjs";
|
|
3
3
|
const H = ["innerHTML"], V = /* @__PURE__ */ T({
|
|
4
4
|
__name: "MazIcon",
|
|
5
5
|
props: {
|
|
@@ -58,7 +58,7 @@ const ie = {
|
|
|
58
58
|
},
|
|
59
59
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
60
60
|
setup(i, { emit: u }) {
|
|
61
|
-
const t = i, a = u, m = f(() => import("./MazBtn-
|
|
61
|
+
const t = i, a = u, m = f(() => import("./MazBtn-DHfi8M3z.mjs")), B = f(() => import("./MazIcon-BbvBov5G.mjs")), M = f(() => import("./eye-slash-BoO00xzs.mjs")), q = f(() => import("./eye-f8zAUc30.mjs")), D = f(() => import("./check-BmubdHc_.mjs")), v = z(!1), c = z(!1), w = z(), E = le({
|
|
62
62
|
componentName: "MazInput",
|
|
63
63
|
providedId: t.id
|
|
64
64
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, createCommentVNode as n, withDirectives as Z, mergeProps as x, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as oe, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
|
-
import { u as ne, _ as le } from "./MazChecklist-
|
|
2
|
+
import { u as ne, _ as le } from "./MazChecklist-Bqd7qTO1.mjs";
|
|
3
3
|
import '../assets/MazInput.css';function re(v, y) {
|
|
4
4
|
let t;
|
|
5
5
|
return function(...l) {
|
|
@@ -52,7 +52,7 @@ const ie = {
|
|
|
52
52
|
},
|
|
53
53
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
54
54
|
setup(v, { emit: y }) {
|
|
55
|
-
const t = v, l = y, I = d(() => import("./MazBtn-
|
|
55
|
+
const t = v, l = y, I = d(() => import("./MazBtn-DhEO9uvT.mjs")), B = d(() => import("./MazIcon-BbvBov5G.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), D = d(() => import("./MazChecklist-Bqd7qTO1.mjs").then((e) => e.c)), c = h(!1), s = h(!1), w = h(), E = ne({
|
|
56
56
|
componentName: "MazInput",
|
|
57
57
|
providedId: t.id
|
|
58
58
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Q, defineAsyncComponent as d, ref as h, onMounted as W, computed as r, useSlots as X, openBlock as o, createElementBlock as f, normalizeClass as z, normalizeStyle as Y, createElementVNode as g, renderSlot as k, createBlock as u, unref as i, resolveDynamicComponent as C, createCommentVNode as n, withDirectives as Z, mergeProps as x, toHandlers as _, vModelDynamic as ee, createTextVNode as te, toDisplayString as oe, withModifiers as ae, withCtx as V, createVNode as S } from "vue";
|
|
2
2
|
import { u as ne } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
|
-
import { _ as le } from "./MazTable-
|
|
3
|
+
import { _ as le } from "./MazTable-CWsaB02U.mjs";
|
|
4
4
|
import '../assets/MazInput.css';function re(v, y) {
|
|
5
5
|
let t;
|
|
6
6
|
return function(...l) {
|
|
@@ -53,7 +53,7 @@ const ie = {
|
|
|
53
53
|
},
|
|
54
54
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
55
55
|
setup(v, { emit: y }) {
|
|
56
|
-
const t = v, l = y, I = d(() => import("./MazBtn-
|
|
56
|
+
const t = v, l = y, I = d(() => import("./MazBtn-BBb9-9O6.mjs")), B = d(() => import("./MazIcon-DjMuw8Bz.mjs")), M = d(() => import("./eye-slash-BoO00xzs.mjs")), q = d(() => import("./eye-f8zAUc30.mjs")), D = d(() => import("./check-C9Q_W85g.mjs")), c = h(!1), s = h(!1), w = h(), E = ne({
|
|
57
57
|
componentName: "MazInput",
|
|
58
58
|
providedId: t.id
|
|
59
59
|
});
|