maz-ui 3.36.0 → 3.36.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazPagination.d.ts +4 -3
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazDialog.css +1 -1
- package/components/assets/MazDialogPromise.css +1 -1
- package/components/assets/MazPagination.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/chunks/{MazBtn-GCCDnqJA.mjs → MazBtn-CvXujRc7.mjs} +2 -2
- package/components/chunks/{MazBtn-BL-LWc8X.mjs → MazBtn-DE96LeuR.mjs} +2 -2
- package/components/chunks/{MazBtn-CEuoZU_j.mjs → MazBtn-DlN53_hE.mjs} +2 -2
- package/components/chunks/{MazBtn-pY3gOUjM.mjs → MazBtn-kLavxmjX.mjs} +2 -2
- package/components/chunks/{MazCheckbox-BAC8XgFg.mjs → MazCheckbox-CEH7cTwM.mjs} +1 -1
- package/components/chunks/{MazCheckbox-EG8AZPtG.mjs → MazCheckbox-RBgGXFPZ.mjs} +1 -1
- package/components/chunks/{MazDialog-DtQm-sV0.mjs → MazDialog-CW8YIBc1.mjs} +2 -2
- package/components/chunks/{MazDialogPromise-CWl8N4Af.mjs → MazDialogPromise-Cd5B1cpr.mjs} +3 -3
- package/components/chunks/{MazIcon-pcOKJiIX.mjs → MazIcon-BHpbiW6o.mjs} +1 -1
- package/components/chunks/{MazPagination-Ch7JcLI8.mjs → MazPagination-BOia4I5Z.mjs} +2 -2
- package/components/chunks/{MazPhoneNumberInput-dbbjH9lI.mjs → MazPhoneNumberInput-DswH2fTx.mjs} +60 -57
- package/components/chunks/{MazSelect-8_n2ovqP.mjs → MazSelect-D3ti4T0X.mjs} +70 -67
- package/components/chunks/{MazSpinner-Dty6fcnV.mjs → MazSpinner-5mIQ-J1u.mjs} +1 -1
- package/components/chunks/{MazSpinner-DtdabLA2.mjs → MazSpinner-BwOdmgr3.mjs} +1 -1
- package/components/chunks/{MazSpinner-CB4XzJJF.mjs → MazSpinner-Bxelx5NH.mjs} +1 -1
- package/components/chunks/{MazSpinner-D3U6NnSV.mjs → MazSpinner-CISWLcK7.mjs} +1 -1
- package/components/chunks/{MazSpinner-CjKNs7lm.mjs → MazSpinner-CJw_tVej.mjs} +1 -1
- package/components/chunks/{MazSpinner-CRYzqbIv.mjs → MazSpinner-DaehD0ZC.mjs} +1 -1
- package/components/chunks/{MazTable-DECLgD3Z.mjs → MazTable-BrIKi66i.mjs} +54 -51
- package/nuxt/index.json +1 -1
- package/package.json +9 -9
- package/types/components/MazPagination.vue.d.ts +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../assets/MazSelect.css";
|
|
2
|
-
import { computed as d, defineComponent as ve, defineAsyncComponent as I, ref as m, getCurrentInstance as be, onMounted as $e, useSlots as Ce, openBlock as i, createElementBlock as z, normalizeClass as q, normalizeStyle as
|
|
2
|
+
import { computed as d, defineComponent as ve, defineAsyncComponent as I, ref as m, getCurrentInstance as be, onMounted as $e, useSlots as Ce, openBlock as i, createElementBlock as z, normalizeClass as q, normalizeStyle as Z, createElementVNode as L, createCommentVNode as u, renderSlot as F, createBlock as w, unref as f, resolveDynamicComponent as me, withDirectives as Se, mergeProps as he, toHandlers as Ae, vModelDynamic as Le, createTextVNode as De, toDisplayString as re, withModifiers as U, withCtx as J, createVNode as N, useCssVars as Me, onBeforeMount as Te, Transition as Pe, Fragment as fe, renderList as Ne, nextTick as se } from "vue";
|
|
3
3
|
function qe(y, c) {
|
|
4
4
|
let v;
|
|
5
5
|
return function(...K) {
|
|
@@ -55,7 +55,7 @@ const ge = ({
|
|
|
55
55
|
},
|
|
56
56
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
57
57
|
setup(y, { emit: c }) {
|
|
58
|
-
const v = I(() => import("./MazBtn-
|
|
58
|
+
const v = I(() => import("./MazBtn-DlN53_hE.mjs")), K = I(() => import("./MazIcon-Cxrv3_OK.mjs")), H = I(() => import("./eye-slash-tjfxO0LK.mjs")), X = I(() => import("./eye-DqO_Jx56.mjs")), Y = I(() => import("./check-7UA4j2f2.mjs")), o = y, h = c, g = m(!1), s = m(!1), D = m(), x = be(), _ = ge({
|
|
59
59
|
componentName: "MazInput",
|
|
60
60
|
instance: x,
|
|
61
61
|
providedId: o.id
|
|
@@ -141,7 +141,7 @@ const ge = ({
|
|
|
141
141
|
`--${t.color}`,
|
|
142
142
|
`--${t.size}`
|
|
143
143
|
]]),
|
|
144
|
-
style:
|
|
144
|
+
style: Z(t.style)
|
|
145
145
|
},
|
|
146
146
|
[
|
|
147
147
|
L(
|
|
@@ -155,7 +155,7 @@ const ge = ({
|
|
|
155
155
|
},
|
|
156
156
|
[
|
|
157
157
|
E() ? (i(), z("div", Fe, [
|
|
158
|
-
|
|
158
|
+
u(`
|
|
159
159
|
@slot left-icon - The icon to display on the left of the input
|
|
160
160
|
`),
|
|
161
161
|
t.$slots["left-icon"] || t.leftIcon ? F(t.$slots, "left-icon", { key: 0 }, () => [
|
|
@@ -166,9 +166,9 @@ const ge = ({
|
|
|
166
166
|
}, null, 8, ["name"])) : t.leftIcon ? (i(), w(me(t.leftIcon), {
|
|
167
167
|
key: 1,
|
|
168
168
|
class: "maz-text-xl maz-text-muted"
|
|
169
|
-
})) :
|
|
170
|
-
], !0) :
|
|
171
|
-
])) :
|
|
169
|
+
})) : u("v-if", !0)
|
|
170
|
+
], !0) : u("v-if", !0)
|
|
171
|
+
])) : u("v-if", !0),
|
|
172
172
|
L("div", He, [
|
|
173
173
|
Se(L("input", he({
|
|
174
174
|
id: f(_),
|
|
@@ -209,18 +209,18 @@ const ge = ({
|
|
|
209
209
|
},
|
|
210
210
|
[
|
|
211
211
|
De(
|
|
212
|
-
|
|
212
|
+
re(t.hint || t.label) + " ",
|
|
213
213
|
1
|
|
214
214
|
/* TEXT */
|
|
215
215
|
),
|
|
216
|
-
t.required ? (i(), z("sup", Oe, "*")) :
|
|
216
|
+
t.required ? (i(), z("sup", Oe, "*")) : u("v-if", !0)
|
|
217
217
|
],
|
|
218
218
|
2
|
|
219
219
|
/* CLASS */
|
|
220
|
-
)) :
|
|
220
|
+
)) : u("v-if", !0)
|
|
221
221
|
]),
|
|
222
222
|
$() ? (i(), z("div", Ue, [
|
|
223
|
-
|
|
223
|
+
u(`
|
|
224
224
|
@slot right-icon - The icon to display on the right of the input
|
|
225
225
|
`),
|
|
226
226
|
t.$slots["right-icon"] || t.rightIcon ? F(t.$slots, "right-icon", { key: 0 }, () => [
|
|
@@ -231,8 +231,8 @@ const ge = ({
|
|
|
231
231
|
}, null, 8, ["name"])) : t.rightIcon ? (i(), w(me(t.rightIcon), {
|
|
232
232
|
key: 1,
|
|
233
233
|
class: "maz-text-xl maz-text-muted"
|
|
234
|
-
})) :
|
|
235
|
-
], !0) :
|
|
234
|
+
})) : u("v-if", !0)
|
|
235
|
+
], !0) : u("v-if", !0),
|
|
236
236
|
W.value ? (i(), w(f(v), {
|
|
237
237
|
key: 1,
|
|
238
238
|
color: "transparent",
|
|
@@ -251,8 +251,8 @@ const ge = ({
|
|
|
251
251
|
]),
|
|
252
252
|
_: 1
|
|
253
253
|
/* STABLE */
|
|
254
|
-
})) :
|
|
255
|
-
|
|
254
|
+
})) : u("v-if", !0),
|
|
255
|
+
u(`
|
|
256
256
|
@slot valid-button - Replace the valid button by your own
|
|
257
257
|
`),
|
|
258
258
|
t.$slots["valid-button"] || t.validButton ? F(t.$slots, "valid-button", { key: 2 }, () => [
|
|
@@ -271,8 +271,8 @@ const ge = ({
|
|
|
271
271
|
_: 1
|
|
272
272
|
/* STABLE */
|
|
273
273
|
}, 8, ["disabled", "loading"])
|
|
274
|
-
], !0) :
|
|
275
|
-
])) :
|
|
274
|
+
], !0) : u("v-if", !0)
|
|
275
|
+
])) : u("v-if", !0)
|
|
276
276
|
],
|
|
277
277
|
2
|
|
278
278
|
/* CLASS */
|
|
@@ -294,11 +294,11 @@ let ie = null;
|
|
|
294
294
|
function Qe(y, c) {
|
|
295
295
|
ie && clearTimeout(ie), ie = setTimeout(y, c);
|
|
296
296
|
}
|
|
297
|
-
const Re = ["aria-label"], je = { class: "m-select-list__no-results" },
|
|
297
|
+
const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ge = {
|
|
298
298
|
key: 2,
|
|
299
299
|
class: "m-select-list__scroll-wrapper",
|
|
300
300
|
tabindex: "-1"
|
|
301
|
-
},
|
|
301
|
+
}, Ze = { class: "m-select-list-optgroup" }, Je = ["onClick"], Xe = /* @__PURE__ */ ve({
|
|
302
302
|
inheritAttrs: !1,
|
|
303
303
|
__name: "MazSelect",
|
|
304
304
|
props: {
|
|
@@ -326,11 +326,11 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
326
326
|
emits: ["close", "open", "blur", "focus", "change", "update:model-value", "selected-option"],
|
|
327
327
|
setup(y, { emit: c }) {
|
|
328
328
|
Me((e) => ({
|
|
329
|
-
"
|
|
330
|
-
"
|
|
331
|
-
|
|
329
|
+
"39733c9a": W.value,
|
|
330
|
+
"014b4cd9": x.value,
|
|
331
|
+
56278181: _.value
|
|
332
332
|
}));
|
|
333
|
-
const v = I(() => import("./MazCheckbox-
|
|
333
|
+
const v = I(() => import("./MazCheckbox-RBgGXFPZ.mjs")), K = I(() => import("./magnifying-glass-DZGg7953.mjs")), H = I(() => import("./chevron-down-CzMH-gFW.mjs")), X = I(() => import("./no-symbol-QAqP9IlR.mjs")), Y = be(), o = y, h = c, g = m(!1), s = m(), D = d(
|
|
334
334
|
() => ["black", "transparent", "white"].includes(o.color)
|
|
335
335
|
), x = d(
|
|
336
336
|
() => D.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
|
|
@@ -365,7 +365,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
365
365
|
return [];
|
|
366
366
|
for (const a of o.options)
|
|
367
367
|
typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? e.push(M(a)) : "options" in a && Array.isArray(a.options) ? e.push(
|
|
368
|
-
{ label: a.label },
|
|
368
|
+
{ label: a.label, isOptGroup: !0 },
|
|
369
369
|
...a.options.map(
|
|
370
370
|
(n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? M(n) : Q(n)
|
|
371
371
|
)
|
|
@@ -389,15 +389,18 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
389
389
|
)) ?? !1) && !$(e[o.optionValueKey]);
|
|
390
390
|
}
|
|
391
391
|
const te = d(() => {
|
|
392
|
-
var
|
|
393
|
-
|
|
394
|
-
(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
)
|
|
392
|
+
var l;
|
|
393
|
+
if (o.multiple && o.modelValue && Array.isArray(o.modelValue))
|
|
394
|
+
return o.modelValue.map(
|
|
395
|
+
(a) => {
|
|
396
|
+
var n, r;
|
|
397
|
+
return (r = (n = S.value) == null ? void 0 : n.find((b) => b[o.optionValueKey] === a)) == null ? void 0 : r[o.optionInputValueKey];
|
|
398
|
+
}
|
|
399
|
+
).join(", ");
|
|
400
|
+
const e = (l = S.value) == null ? void 0 : l.find(
|
|
401
|
+
(a) => a[o.optionValueKey] === o.modelValue
|
|
402
|
+
);
|
|
403
|
+
return $(o.modelValue) || e == null ? void 0 : e[o.optionInputValueKey];
|
|
401
404
|
}), le = d(
|
|
402
405
|
() => o.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
403
406
|
), A = m(""), t = m("");
|
|
@@ -407,14 +410,14 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
407
410
|
const C = (e, l) => l && e && p(e.toString().toLocaleLowerCase().trim()).includes(
|
|
408
411
|
p(l.toLocaleLowerCase().trim())
|
|
409
412
|
);
|
|
410
|
-
function
|
|
413
|
+
function ue(e) {
|
|
411
414
|
var l;
|
|
412
415
|
return e ? (l = S.value) == null ? void 0 : l.filter((a) => {
|
|
413
|
-
const n = a[o.optionLabelKey],
|
|
414
|
-
return C(n, e) || C(
|
|
416
|
+
const n = a[o.optionLabelKey], r = a[o.optionValueKey], b = a[o.optionInputValueKey];
|
|
417
|
+
return C(n, e) || C(r, e) || C(b, e);
|
|
415
418
|
}) : S.value;
|
|
416
419
|
}
|
|
417
|
-
const k = d(() =>
|
|
420
|
+
const k = d(() => ue(A.value)), G = async (e) => {
|
|
418
421
|
var l;
|
|
419
422
|
if (e && ("relatedTarget" in e && ((l = oe.value) != null && l.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
420
423
|
return e.preventDefault();
|
|
@@ -427,7 +430,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
427
430
|
(l = ((e = B.value) == null ? void 0 : e.$el).querySelector("input")) == null || l.focus();
|
|
428
431
|
}
|
|
429
432
|
function Ve(e) {
|
|
430
|
-
g.value ?
|
|
433
|
+
g.value ? G(e) : de();
|
|
431
434
|
}
|
|
432
435
|
function ke(e) {
|
|
433
436
|
var l, a;
|
|
@@ -436,7 +439,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
436
439
|
function we(e) {
|
|
437
440
|
var a;
|
|
438
441
|
e === "Backspace" && t.value.length > 0 ? t.value = t.value.slice(0, -1) : t.value += e;
|
|
439
|
-
const l =
|
|
442
|
+
const l = ue(t.value);
|
|
440
443
|
l != null && l.length && (s.value = (a = k.value) == null ? void 0 : a.findIndex(
|
|
441
444
|
(n) => n[o.optionValueKey] === l[0][o.optionValueKey]
|
|
442
445
|
), typeof s.value == "number" && s.value >= 0 && ae(s.value)), Qe(() => {
|
|
@@ -447,20 +450,20 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
447
450
|
const l = e.key;
|
|
448
451
|
/^[\dA-Za-z\u0400-\u04FF]$/.test(l) ? (e.preventDefault(), O(e), o.search ? ke(l) : we(l)) : ce(e);
|
|
449
452
|
}, ce = (e) => {
|
|
450
|
-
const l = e.code, a = ["ArrowUp", "ArrowDown"].includes(l), n = ["Enter", "Space"].includes(l),
|
|
451
|
-
a ? Ke(e, s.value) : n ? Be(e, s.value) :
|
|
453
|
+
const l = e.code, a = ["ArrowUp", "ArrowDown"].includes(l), n = ["Enter", "Space"].includes(l), r = l === "Escape" && V.value;
|
|
454
|
+
a ? Ke(e, s.value) : n ? Be(e, s.value) : r && G();
|
|
452
455
|
}, Ke = (e, l) => {
|
|
453
|
-
var
|
|
456
|
+
var r;
|
|
454
457
|
e.preventDefault();
|
|
455
458
|
const a = e.code;
|
|
456
459
|
V.value || O(e);
|
|
457
|
-
const n = (
|
|
460
|
+
const n = (r = k.value) == null ? void 0 : r.length;
|
|
458
461
|
n && (typeof l == "number" ? l === n - 1 && a === "ArrowDown" ? s.value = 0 : l === 0 && a === "ArrowUp" ? s.value = n - 1 : s.value = a === "ArrowDown" ? l + 1 : l - 1 : s.value = a === "ArrowDown" ? 0 : n - 1, ae(s.value));
|
|
459
462
|
}, Be = (e, l) => {
|
|
460
|
-
var n,
|
|
463
|
+
var n, r, b;
|
|
461
464
|
if (e.preventDefault(), !V.value)
|
|
462
465
|
return O(e);
|
|
463
|
-
const a = l ? ((n = k.value) == null ? void 0 : n[l]) ?? ((
|
|
466
|
+
const a = l ? ((n = k.value) == null ? void 0 : n[l]) ?? ((r = k.value) == null ? void 0 : r[0]) : (b = k.value) == null ? void 0 : b[0];
|
|
464
467
|
$(a) || pe(a);
|
|
465
468
|
};
|
|
466
469
|
async function ae(e) {
|
|
@@ -476,14 +479,14 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
476
479
|
function ne(e) {
|
|
477
480
|
var a;
|
|
478
481
|
const l = (a = k.value) == null ? void 0 : a.findIndex((n) => {
|
|
479
|
-
var
|
|
480
|
-
return o.multiple && Array.isArray(o.modelValue) ? e ? e[o.optionValueKey] === n[o.optionValueKey] : [...o.modelValue].reverse()[0] === n[o.optionValueKey] : ((b = (
|
|
482
|
+
var r, b;
|
|
483
|
+
return o.multiple && Array.isArray(o.modelValue) ? e ? e[o.optionValueKey] === n[o.optionValueKey] : [...o.modelValue].reverse()[0] === n[o.optionValueKey] : ((b = (r = T.value) == null ? void 0 : r[0]) == null ? void 0 : b[o.optionValueKey]) === n[o.optionValueKey];
|
|
481
484
|
});
|
|
482
485
|
s.value = l && l >= 0 ? l : 0;
|
|
483
486
|
}
|
|
484
487
|
const pe = (e, l = !0) => {
|
|
485
488
|
var b;
|
|
486
|
-
l && !o.multiple && se(() =>
|
|
489
|
+
l && !o.multiple && se(() => G()), A.value = "";
|
|
487
490
|
const a = (b = T.value) == null ? void 0 : b.some(
|
|
488
491
|
(P) => P[o.optionValueKey] === e[o.optionValueKey]
|
|
489
492
|
);
|
|
@@ -491,8 +494,8 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
491
494
|
a && o.multiple ? n = n == null ? void 0 : n.filter(
|
|
492
495
|
(P) => P[o.optionValueKey] !== e[o.optionValueKey]
|
|
493
496
|
) : o.multiple ? n.push(e) : n = [e];
|
|
494
|
-
const
|
|
495
|
-
h("update:model-value", o.multiple ?
|
|
497
|
+
const r = n.map((P) => P[o.optionValueKey]);
|
|
498
|
+
h("update:model-value", o.multiple ? r : r[0]), h("selected-option", e), ne(e), de();
|
|
496
499
|
};
|
|
497
500
|
return (e, l) => (i(), z(
|
|
498
501
|
"div",
|
|
@@ -500,8 +503,8 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
500
503
|
ref_key: "mazSelectElement",
|
|
501
504
|
ref: oe,
|
|
502
505
|
class: q(["m-select", [{ "--is-open": V.value, "--disabled": e.disabled }, o.class, `--${e.size}`]]),
|
|
503
|
-
style:
|
|
504
|
-
onBlurCapture:
|
|
506
|
+
style: Z(e.style),
|
|
507
|
+
onBlurCapture: G
|
|
505
508
|
},
|
|
506
509
|
[
|
|
507
510
|
N(ye, he({
|
|
@@ -550,7 +553,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
550
553
|
"--right": e.listPosition.includes("right"),
|
|
551
554
|
"--bottom": e.listPosition.includes("bottom")
|
|
552
555
|
}]),
|
|
553
|
-
style:
|
|
556
|
+
style: Z({
|
|
554
557
|
maxHeight: `${e.maxListHeight}px`,
|
|
555
558
|
maxWidth: `${e.maxListWidth}px`
|
|
556
559
|
})
|
|
@@ -574,15 +577,15 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
574
577
|
class: "m-select-list__search-input maz-flex-none",
|
|
575
578
|
"left-icon": f(K),
|
|
576
579
|
onKeydown: ce
|
|
577
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) :
|
|
578
|
-
|
|
580
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : u("v-if", !0),
|
|
581
|
+
u(`
|
|
579
582
|
@slot No results slot - Displayed when no results corresponding with search query
|
|
580
583
|
`),
|
|
581
584
|
!k.value || k.value.length <= 0 ? F(e.$slots, "no-results", { key: 1 }, () => [
|
|
582
585
|
L("span", je, [
|
|
583
586
|
N(f(X), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
584
587
|
])
|
|
585
|
-
], !0) : (i(), z("div",
|
|
588
|
+
], !0) : (i(), z("div", Ge, [
|
|
586
589
|
(i(!0), z(
|
|
587
590
|
fe,
|
|
588
591
|
null,
|
|
@@ -590,18 +593,18 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
590
593
|
fe,
|
|
591
594
|
{ key: n },
|
|
592
595
|
[
|
|
593
|
-
|
|
596
|
+
u(`
|
|
594
597
|
@slot Custom optgroup label
|
|
595
598
|
@binding {String} label - the label of the optgroup
|
|
596
599
|
`),
|
|
597
|
-
a.label &&
|
|
600
|
+
a.label && a.isOptGroup ? F(e.$slots, "optgroup", {
|
|
598
601
|
key: 0,
|
|
599
602
|
label: a.label
|
|
600
603
|
}, () => [
|
|
601
604
|
L(
|
|
602
605
|
"span",
|
|
603
|
-
|
|
604
|
-
|
|
606
|
+
Ze,
|
|
607
|
+
re(a.label),
|
|
605
608
|
1
|
|
606
609
|
/* TEXT */
|
|
607
610
|
)
|
|
@@ -616,8 +619,8 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
616
619
|
"--is-none-value": $(a[e.optionValueKey])
|
|
617
620
|
}
|
|
618
621
|
]]),
|
|
619
|
-
style:
|
|
620
|
-
onClick: U((
|
|
622
|
+
style: Z(e.itemHeight ? { minHeight: `${e.itemHeight}px` } : void 0),
|
|
623
|
+
onClick: U((r) => pe(a), ["prevent", "stop"])
|
|
621
624
|
}, [
|
|
622
625
|
e.multiple ? (i(), w(f(v), {
|
|
623
626
|
key: 0,
|
|
@@ -625,8 +628,8 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
625
628
|
"model-value": E(a),
|
|
626
629
|
size: "sm",
|
|
627
630
|
color: e.color
|
|
628
|
-
}, null, 8, ["model-value", "color"])) :
|
|
629
|
-
|
|
631
|
+
}, null, 8, ["model-value", "color"])) : u("v-if", !0),
|
|
632
|
+
u(`
|
|
630
633
|
@slot Custom option
|
|
631
634
|
@binding {Object} option - the option object
|
|
632
635
|
@binding {Boolean} is-selected - if the option is selected
|
|
@@ -638,7 +641,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
638
641
|
L(
|
|
639
642
|
"span",
|
|
640
643
|
null,
|
|
641
|
-
|
|
644
|
+
re(a[e.optionLabelKey]),
|
|
642
645
|
1
|
|
643
646
|
/* TEXT */
|
|
644
647
|
)
|
|
@@ -655,7 +658,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
655
658
|
],
|
|
656
659
|
6
|
|
657
660
|
/* CLASS, STYLE */
|
|
658
|
-
)) :
|
|
661
|
+
)) : u("v-if", !0)
|
|
659
662
|
]),
|
|
660
663
|
_: 3
|
|
661
664
|
/* FORWARDED */
|
|
@@ -665,7 +668,7 @@ const Re = ["aria-label"], je = { class: "m-select-list__no-results" }, Ze = {
|
|
|
665
668
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
666
669
|
));
|
|
667
670
|
}
|
|
668
|
-
}), _e = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-
|
|
671
|
+
}), _e = /* @__PURE__ */ ze(Xe, [["__scopeId", "data-v-6be8854d"]]);
|
|
669
672
|
export {
|
|
670
673
|
_e as M,
|
|
671
674
|
ze as _,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./
|
|
3
|
+
import { _ as p } from "./MazSelect-D3ti4T0X.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./MazTable-
|
|
3
|
+
import { _ as p } from "./MazTable-BrIKi66i.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./MazPagination-
|
|
3
|
+
import { _ as p } from "./MazPagination-BOia4I5Z.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./MazPhoneNumberInput-
|
|
3
|
+
import { _ as p } from "./MazPhoneNumberInput-DswH2fTx.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./
|
|
3
|
+
import { _ as p } from "./MazDialog-CW8YIBc1.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../assets/MazSpinner.css";
|
|
2
2
|
import { defineComponent as t, openBlock as o, createElementBlock as c, normalizeClass as n, pushScopeId as s, popScopeId as r, createElementVNode as i } from "vue";
|
|
3
|
-
import { _ as p } from "./MazDialogPromise-
|
|
3
|
+
import { _ as p } from "./MazDialogPromise-Cd5B1cpr.mjs";
|
|
4
4
|
const a = (e) => (s("data-v-c67298ec"), e = e(), r(), e), d = ["width", "height"], l = /* @__PURE__ */ a(() => /* @__PURE__ */ i(
|
|
5
5
|
"path",
|
|
6
6
|
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|