maz-ui 3.44.0 → 3.44.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +25 -25
- package/components/MazAvatar.mjs +1 -1
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.mjs +9 -9
- package/components/MazCarousel.mjs +1 -1
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazDropzone.mjs +1 -1
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLazyImg.mjs +1 -1
- package/components/MazLink.mjs +22 -22
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazReadingProgressBar.mjs +1 -2
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/MazTextarea.mjs +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-BU1nJFcV.mjs → MazAvatar-CoT6WIl0.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DUOIusEi.mjs → MazBottomSheet-DpI8wFgc.mjs} +1 -1
- package/components/chunks/MazBtn-BIVlttu0.mjs +150 -0
- package/components/chunks/MazBtn-BQ7aH6Qe.mjs +158 -0
- package/components/chunks/{MazBtn-5BSKOcqG.mjs → MazBtn-BXDpaXn1.mjs} +44 -44
- package/components/chunks/MazBtn-C7RDTnn-.mjs +150 -0
- package/components/chunks/{MazBtn-BY8WCtM7.mjs → MazBtn-CPkNymJj.mjs} +44 -44
- package/components/chunks/{MazBtn-C5G78zLg.mjs → MazBtn-CQSo596y.mjs} +44 -44
- package/components/chunks/MazBtn-D2tIsob2.mjs +150 -0
- package/components/chunks/MazBtn-DRTBFUgW.mjs +150 -0
- package/components/chunks/{MazBtn-f1mBXJeU.mjs → MazBtn-Dfz-5FeI.mjs} +23 -26
- package/components/chunks/{MazBtn-CeVwyYR5.mjs → MazBtn-Vas62hFD.mjs} +44 -44
- package/components/chunks/MazBtn-gE-drZkE.mjs +150 -0
- package/components/chunks/{MazCard-BWxV_Z-i.mjs → MazCard-BBwohtCJ.mjs} +1 -1
- package/components/chunks/{MazCarousel-D5EmW7Sa.mjs → MazCarousel-DJ_nQfy4.mjs} +1 -1
- package/components/chunks/{MazCheckbox-D3PXkt75.mjs → MazCheckbox-BK1MX0uq.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BWiMbecz.mjs → MazCheckbox-D3Fm-BFu.mjs} +1 -1
- package/components/chunks/{MazDialog-CLWKCphI.mjs → MazDialog-DXaeCp-b.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-DVOJwdVp.mjs → MazDialogPromise-Bgxjg9ss.mjs} +2 -2
- package/components/chunks/{MazDropzone-Dm2IirHm.mjs → MazDropzone-D0W0dlgY.mjs} +2 -3
- package/components/chunks/{MazGallery-Bn9p1gNb.mjs → MazGallery-CBE4wD7D.mjs} +3 -4
- package/components/chunks/{MazGallery-BlfPe8WG.mjs → MazGallery-Din0Z37d.mjs} +4 -5
- package/components/chunks/{MazIcon-D3umgnku.mjs → MazIcon-CTjWIkTp.mjs} +1 -1
- package/components/chunks/{MazIcon-B8A0hQAH.mjs → MazIcon-CUOwXGOK.mjs} +1 -1
- package/components/chunks/{MazInput-BpsE-mdg.mjs → MazInput-D177bUMh.mjs} +44 -44
- package/components/chunks/{MazInputNumber-DGBYbDSX.mjs → MazInputNumber-CstQGS8u.mjs} +121 -121
- package/components/chunks/{MazInputPrice-j2BNMeFp.mjs → MazInputPrice-Bp7ie9jm.mjs} +48 -48
- package/components/chunks/{MazInputTags-CJofVaj5.mjs → MazInputTags-C7nZucYu.mjs} +63 -63
- package/components/chunks/{MazLazyImg-Dboc6Xfz.mjs → MazLazyImg-DADMg49z.mjs} +3 -4
- package/components/chunks/{MazLazyImg-BFG6FIJZ.mjs → MazLazyImg-xLPMdfif.mjs} +4 -5
- package/components/chunks/{MazPagination-C6ZehQSZ.mjs → MazPagination-NbHR41CQ.mjs} +44 -44
- package/components/chunks/{MazPhoneNumberInput-DpWoNQfx.mjs → MazPhoneNumberInput-BGo-vcnD.mjs} +61 -61
- package/components/chunks/{MazPicker-ia2BEmm5.mjs → MazPicker-CJBezF2t.mjs} +173 -198
- package/components/chunks/{MazPickerMonthSwitcher-CKtfZ_m-.mjs → MazPickerMonthSwitcher-DZPHWTJt.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Cc9VoqBw.mjs → MazPickerShortcuts-CBEmYjPG.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-0b5Wrem9.mjs → MazPickerYearSwitcher-Ynp2qf3F.mjs} +1 -1
- package/components/chunks/{MazSelect-COJoKXbV.mjs → MazSelect-D4TuCHwj.mjs} +29 -29
- package/components/chunks/{MazSpinner-BaAMq7LI.mjs → MazSpinner--h9DYpGx.mjs} +1 -1
- package/components/chunks/{MazSpinner-BZOjTZBN.mjs → MazSpinner-6pxbKImG.mjs} +1 -1
- package/components/chunks/{MazSpinner-RvDGcBng.mjs → MazSpinner-BVd7-OTu.mjs} +1 -1
- package/components/chunks/MazSpinner-C6T_enKo.mjs +37 -0
- package/components/chunks/{MazSpinner-DkXequnp.mjs → MazSpinner-C8x7LsHq.mjs} +1 -1
- package/components/chunks/{MazSpinner-V-bFi71W.mjs → MazSpinner-CLz4ccD0.mjs} +1 -1
- package/components/chunks/MazSpinner-CmJlBqgH.mjs +37 -0
- package/components/chunks/MazSpinner-D4gpZ7vL.mjs +37 -0
- package/components/chunks/{MazSpinner-CNIlbDfg.mjs → MazSpinner-D8k_MENa.mjs} +1 -1
- package/components/chunks/MazSpinner-DGxqly6h.mjs +37 -0
- package/components/chunks/{MazSpinner-9Jue6cel.mjs → MazSpinner-DVkxyBoy.mjs} +1 -1
- package/components/chunks/{MazSpinner-BGPOws6a.mjs → MazSpinner-DjR5FVqo.mjs} +1 -1
- package/components/chunks/MazSpinner-DnVHWljy.mjs +37 -0
- package/components/chunks/{MazSpinner-C41VyUup.mjs → MazSpinner-DneKNmrs.mjs} +1 -1
- package/components/chunks/MazSpinner-Q02SOFkL.mjs +37 -0
- package/components/chunks/{MazSpinner-EA5ejB8F.mjs → MazSpinner-T1t1bpbm.mjs} +1 -1
- package/components/chunks/{MazSpinner-BWYdqSMP.mjs → MazSpinner-dFnsq52G.mjs} +1 -1
- package/components/chunks/MazSpinner-iA4Rz7K5.mjs +37 -0
- package/components/chunks/{MazSpinner-DHQH6Bhz.mjs → MazSpinner-rAqBu92m.mjs} +1 -1
- package/components/chunks/MazSpinner-va5G9enA.mjs +37 -0
- package/components/chunks/{MazTable-DRUj_PZp.mjs → MazTable-BPMuTZbS.mjs} +305 -305
- package/components/chunks/{MazTransitionExpand-B08cSrmL.mjs → MazTransitionExpand-CYyEf_hd.mjs} +1 -1
- package/css/main.css +2 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-1g7UvzQ_.mjs +150 -0
- package/modules/chunks/{MazBtn-BbCGGxkK.cjs → MazBtn-BKk3IsoH.cjs} +2 -2
- package/modules/chunks/{MazIcon-BDSXZYZ8.cjs → MazIcon-BEnQqDG6.cjs} +1 -1
- package/modules/chunks/{MazIcon-C2ch3jUS.mjs → MazIcon-BdDO3aVl.mjs} +1 -1
- package/modules/chunks/{MazSpinner-C9_xSbZZ.mjs → MazSpinner--BVvGFIO.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BiyFRA4w.cjs → MazSpinner-PMlxvkWb.cjs} +1 -1
- package/modules/chunks/index-D5F2dSFa.cjs +124 -0
- package/modules/chunks/{index-Cwbjspv3.mjs → index-D7R1dvsf.mjs} +347 -347
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +3 -3
- package/nuxt/index.mjs +1 -1
- package/nuxt/types.d.mts +6 -12
- package/nuxt/types.d.ts +6 -12
- package/package.json +10 -10
- package/types/modules/composables/use-timer.d.ts +6 -1
- package/types/modules/plugins/toaster/MazToast.vue.d.ts +2 -2
- package/components/chunks/MazBtn-B1-sTc7F.mjs +0 -155
- package/components/chunks/MazBtn-ColLVUca.mjs +0 -150
- package/components/chunks/MazBtn-DJhQqzja.mjs +0 -150
- package/components/chunks/MazBtn-DuY28-0U.mjs +0 -150
- package/components/chunks/MazBtn-h3WmmaEO.mjs +0 -150
- package/components/chunks/MazBtn-zyRLUViT.mjs +0 -150
- package/components/chunks/MazSpinner-Bad2n-0k.mjs +0 -37
- package/components/chunks/MazSpinner-C6StE-Mb.mjs +0 -37
- package/components/chunks/MazSpinner-Cz2DHV6g.mjs +0 -37
- package/components/chunks/MazSpinner-D4CdHpP2.mjs +0 -37
- package/components/chunks/MazSpinner-DRj2VpGA.mjs +0 -37
- package/components/chunks/MazSpinner-aPFlrc5E.mjs +0 -37
- package/components/chunks/MazSpinner-nOD-7_sU.mjs +0 -37
- package/components/chunks/MazSpinner-yZGK-AQe.mjs +0 -37
- package/modules/chunks/MazBtn-UBHTKqaN.mjs +0 -150
- package/modules/chunks/index-tnjajVkX.cjs +0 -124
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getCurrentInstance as ne, computed as u, defineComponent as
|
|
2
|
-
import '../assets/MazInputTags.css';function
|
|
1
|
+
import { getCurrentInstance as ne, computed as u, defineComponent as E, defineAsyncComponent as S, ref as C, onMounted as ae, useSlots as H, openBlock as a, createElementBlock as y, normalizeClass as w, normalizeStyle as K, createElementVNode as A, createCommentVNode as r, renderSlot as V, createBlock as f, unref as b, resolveDynamicComponent as L, withDirectives as le, mergeProps as G, toHandlers as re, vModelDynamic as ie, createTextVNode as J, toDisplayString as Q, withModifiers as W, withCtx as O, createVNode as D, useAttrs as se, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as N } from "vue";
|
|
2
|
+
import '../assets/MazInputTags.css';function U(p) {
|
|
3
3
|
return !!p;
|
|
4
4
|
}
|
|
5
5
|
function pe({
|
|
@@ -23,7 +23,7 @@ const ve = {
|
|
|
23
23
|
}, be = { class: "m-input-wrapper-input" }, ye = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], ge = { key: 0 }, he = {
|
|
24
24
|
key: 1,
|
|
25
25
|
class: "m-input-wrapper-right"
|
|
26
|
-
}, ze = /* @__PURE__ */
|
|
26
|
+
}, ze = /* @__PURE__ */ E({
|
|
27
27
|
inheritAttrs: !1,
|
|
28
28
|
__name: "MazInput",
|
|
29
29
|
props: {
|
|
@@ -54,20 +54,20 @@ const ve = {
|
|
|
54
54
|
validButtonLoading: { type: Boolean, default: !1 },
|
|
55
55
|
autoFocus: { type: Boolean, default: !1 },
|
|
56
56
|
borderActive: { type: Boolean, default: !1 },
|
|
57
|
-
leftIcon: { default: void 0 },
|
|
58
|
-
rightIcon: { default: void 0 },
|
|
57
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
58
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
59
59
|
roundedSize: { default: void 0 },
|
|
60
60
|
block: { type: Boolean }
|
|
61
61
|
},
|
|
62
62
|
emits: ["update:model-value", "focus", "blur", "click", "change"],
|
|
63
63
|
setup(p, { emit: l }) {
|
|
64
|
-
const o = p, c = l, z =
|
|
64
|
+
const o = p, c = l, z = S(() => Promise.resolve().then(() => Ie)), h = S(() => import("./MazIcon-BDGxCy9M.mjs")), g = S(() => import("./eye-slash-tjfxO0LK.mjs")), v = S(() => import("./eye-DqO_Jx56.mjs")), M = S(() => import("./check-CL-vqe79.mjs")), m = C(!1), k = C(!1), F = C(), $ = pe({
|
|
65
65
|
componentName: "MazInput",
|
|
66
66
|
providedId: o.id
|
|
67
67
|
});
|
|
68
68
|
ae(() => {
|
|
69
69
|
var e;
|
|
70
|
-
o.autoFocus && ((e =
|
|
70
|
+
o.autoFocus && ((e = F.value) == null || e.focus());
|
|
71
71
|
});
|
|
72
72
|
const T = u(() => o.type === "password"), n = u(() => m.value ? "text" : o.type), i = u(() => {
|
|
73
73
|
if (!o.noBorder) {
|
|
@@ -101,20 +101,20 @@ const ve = {
|
|
|
101
101
|
const { required: e, placeholder: I } = o;
|
|
102
102
|
if (I)
|
|
103
103
|
return e ? `${I} *` : I;
|
|
104
|
-
}), t = u(() =>
|
|
104
|
+
}), t = u(() => P.value !== void 0 && P.value !== ""), B = me(
|
|
105
105
|
(e) => {
|
|
106
106
|
c("update:model-value", e);
|
|
107
107
|
},
|
|
108
108
|
typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
|
|
109
109
|
);
|
|
110
|
-
function
|
|
110
|
+
function q(e) {
|
|
111
111
|
if (o.debounce)
|
|
112
112
|
return B(e);
|
|
113
113
|
c("update:model-value", e);
|
|
114
114
|
}
|
|
115
|
-
const
|
|
115
|
+
const P = u({
|
|
116
116
|
get: () => o.modelValue,
|
|
117
|
-
set: (e) =>
|
|
117
|
+
set: (e) => q(e)
|
|
118
118
|
}), Y = u(() => (!!o.label || !!o.hint) && (k.value || !!t.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = u(() => !!o.label || !!o.hint);
|
|
119
119
|
function _() {
|
|
120
120
|
return !!s["right-icon"] || T.value || !!s["valid-button"] || o.validButton || !!o.rightIcon;
|
|
@@ -152,7 +152,7 @@ const ve = {
|
|
|
152
152
|
style: K(e.style)
|
|
153
153
|
},
|
|
154
154
|
[
|
|
155
|
-
|
|
155
|
+
A(
|
|
156
156
|
"div",
|
|
157
157
|
{
|
|
158
158
|
class: w(["m-input-wrapper", [
|
|
@@ -166,23 +166,23 @@ const ve = {
|
|
|
166
166
|
r(`
|
|
167
167
|
@slot left-icon - The icon to display on the left of the input
|
|
168
168
|
`),
|
|
169
|
-
e.$slots["left-icon"] || e.leftIcon ?
|
|
169
|
+
e.$slots["left-icon"] || e.leftIcon ? V(e.$slots, "left-icon", { key: 0 }, () => [
|
|
170
170
|
typeof e.leftIcon == "string" ? (a(), f(b(h), {
|
|
171
171
|
key: 0,
|
|
172
172
|
name: e.leftIcon,
|
|
173
173
|
class: "maz-text-xl maz-text-muted"
|
|
174
|
-
}, null, 8, ["name"])) : e.leftIcon ? (a(), f(
|
|
174
|
+
}, null, 8, ["name"])) : e.leftIcon ? (a(), f(L(e.leftIcon), {
|
|
175
175
|
key: 1,
|
|
176
176
|
class: "maz-text-xl maz-text-muted"
|
|
177
177
|
})) : r("v-if", !0)
|
|
178
178
|
], !0) : r("v-if", !0)
|
|
179
179
|
])) : r("v-if", !0),
|
|
180
|
-
|
|
181
|
-
le(
|
|
180
|
+
A("div", be, [
|
|
181
|
+
le(A("input", G({
|
|
182
182
|
id: b($),
|
|
183
183
|
ref_key: "input",
|
|
184
|
-
ref:
|
|
185
|
-
"onUpdate:modelValue": I[0] || (I[0] = (
|
|
184
|
+
ref: F,
|
|
185
|
+
"onUpdate:modelValue": I[0] || (I[0] = (j) => P.value = j),
|
|
186
186
|
type: n.value,
|
|
187
187
|
name: e.name
|
|
188
188
|
}, e.$attrs, {
|
|
@@ -198,9 +198,9 @@ const ve = {
|
|
|
198
198
|
focus: ee,
|
|
199
199
|
change: te
|
|
200
200
|
}, !0), {
|
|
201
|
-
onClick: I[1] || (I[1] = (
|
|
201
|
+
onClick: I[1] || (I[1] = (j) => e.$emit("click", j))
|
|
202
202
|
}), null, 16, ye), [
|
|
203
|
-
[ie,
|
|
203
|
+
[ie, P.value]
|
|
204
204
|
]),
|
|
205
205
|
e.label || e.hint ? (a(), y(
|
|
206
206
|
"span",
|
|
@@ -230,12 +230,12 @@ const ve = {
|
|
|
230
230
|
r(`
|
|
231
231
|
@slot right-icon - The icon to display on the right of the input
|
|
232
232
|
`),
|
|
233
|
-
e.$slots["right-icon"] || e.rightIcon ?
|
|
233
|
+
e.$slots["right-icon"] || e.rightIcon ? V(e.$slots, "right-icon", { key: 0 }, () => [
|
|
234
234
|
typeof e.rightIcon == "string" ? (a(), f(b(h), {
|
|
235
235
|
key: 0,
|
|
236
236
|
name: e.rightIcon,
|
|
237
237
|
class: "maz-text-xl maz-text-muted"
|
|
238
|
-
}, null, 8, ["name"])) : e.rightIcon ? (a(), f(
|
|
238
|
+
}, null, 8, ["name"])) : e.rightIcon ? (a(), f(L(e.rightIcon), {
|
|
239
239
|
key: 1,
|
|
240
240
|
class: "maz-text-xl maz-text-muted"
|
|
241
241
|
})) : r("v-if", !0)
|
|
@@ -245,9 +245,9 @@ const ve = {
|
|
|
245
245
|
color: "transparent",
|
|
246
246
|
tabindex: "-1",
|
|
247
247
|
size: "mini",
|
|
248
|
-
onClick: I[2] || (I[2] = W((
|
|
248
|
+
onClick: I[2] || (I[2] = W((j) => m.value = !m.value, ["stop"]))
|
|
249
249
|
}, {
|
|
250
|
-
default:
|
|
250
|
+
default: O(() => [
|
|
251
251
|
m.value ? (a(), f(b(g), {
|
|
252
252
|
key: 0,
|
|
253
253
|
class: "maz-text-xl maz-text-muted"
|
|
@@ -262,8 +262,8 @@ const ve = {
|
|
|
262
262
|
r(`
|
|
263
263
|
@slot valid-button - Replace the valid button by your own
|
|
264
264
|
`),
|
|
265
|
-
e.$slots["valid-button"] || e.validButton ?
|
|
266
|
-
|
|
265
|
+
e.$slots["valid-button"] || e.validButton ? V(e.$slots, "valid-button", { key: 2 }, () => [
|
|
266
|
+
D(b(z), {
|
|
267
267
|
color: "transparent",
|
|
268
268
|
disabled: e.disabled,
|
|
269
269
|
tabindex: "-1",
|
|
@@ -272,8 +272,8 @@ const ve = {
|
|
|
272
272
|
size: "mini",
|
|
273
273
|
type: "submit"
|
|
274
274
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
275
|
+
default: O(() => [
|
|
276
|
+
D(b(M), { class: "maz-text-2xl maz-text-normal" })
|
|
277
277
|
]),
|
|
278
278
|
_: 1
|
|
279
279
|
/* STABLE */
|
|
@@ -289,12 +289,12 @@ const ve = {
|
|
|
289
289
|
/* CLASS, STYLE */
|
|
290
290
|
));
|
|
291
291
|
}
|
|
292
|
-
}),
|
|
292
|
+
}), R = (p, l) => {
|
|
293
293
|
const o = p.__vccOpts || p;
|
|
294
294
|
for (const [c, z] of l)
|
|
295
295
|
o[c] = z;
|
|
296
296
|
return o;
|
|
297
|
-
}, ke = /* @__PURE__ */
|
|
297
|
+
}, ke = /* @__PURE__ */ R(ze, [["__scopeId", "data-v-e9affc48"]]), Be = /* @__PURE__ */ E({
|
|
298
298
|
__name: "MazBtn",
|
|
299
299
|
props: {
|
|
300
300
|
variant: { default: "button" },
|
|
@@ -311,15 +311,15 @@ const ve = {
|
|
|
311
311
|
loading: { type: Boolean },
|
|
312
312
|
disabled: { type: Boolean },
|
|
313
313
|
fab: { type: Boolean },
|
|
314
|
-
icon: { default: void 0 },
|
|
315
|
-
leftIcon: { default: void 0 },
|
|
316
|
-
rightIcon: { default: void 0 },
|
|
314
|
+
icon: { type: [String, Function, Object], default: void 0 },
|
|
315
|
+
leftIcon: { type: [String, Function, Object], default: void 0 },
|
|
316
|
+
rightIcon: { type: [String, Function, Object], default: void 0 },
|
|
317
317
|
noPadding: { type: Boolean },
|
|
318
318
|
noElevation: { type: Boolean },
|
|
319
319
|
contentClass: { default: void 0 }
|
|
320
320
|
},
|
|
321
321
|
setup(p) {
|
|
322
|
-
const l = p, o =
|
|
322
|
+
const l = p, o = S(() => import("./MazSpinner-DjR5FVqo.mjs")), c = S(() => import("./MazIcon-BDGxCy9M.mjs")), { href: z, to: h } = se(), g = H();
|
|
323
323
|
ue(() => {
|
|
324
324
|
l.icon && !l.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
325
325
|
});
|
|
@@ -327,15 +327,15 @@ const ve = {
|
|
|
327
327
|
() => l.pastel ? `--${l.color}-pastel` : l.outline ? `--${l.color}-outline` : `--${l.color}`
|
|
328
328
|
), m = u(
|
|
329
329
|
() => (l.loading || l.disabled) && v.value === "button"
|
|
330
|
-
), k = u(() => m.value ? "--cursor-default" : "--cursor-pointer"),
|
|
331
|
-
return (t, B) => (a(), f(
|
|
330
|
+
), k = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), F = u(() => `--is-${l.variant}`), $ = u(() => l.loading && l.variant === "button"), T = u(() => !!g["left-icon"] || l.leftIcon), n = u(() => !!g["right-icon"] || l.rightIcon), i = u(() => T.value || n.value), s = u(() => l.fab && (l.icon || !!g.icon)), d = u(() => v.value === "button" ? l.type : void 0);
|
|
331
|
+
return (t, B) => (a(), f(L(v.value), {
|
|
332
332
|
disabled: m.value || void 0,
|
|
333
333
|
class: w(["m-btn", [
|
|
334
334
|
`--${t.size}`,
|
|
335
335
|
!t.fab && t.roundedSize && `--rounded-${t.roundedSize}`,
|
|
336
336
|
M.value,
|
|
337
337
|
k.value,
|
|
338
|
-
|
|
338
|
+
F.value,
|
|
339
339
|
{
|
|
340
340
|
"--block": t.block,
|
|
341
341
|
"--no-underline": t.noUnderline,
|
|
@@ -351,7 +351,7 @@ const ve = {
|
|
|
351
351
|
]]),
|
|
352
352
|
type: d.value
|
|
353
353
|
}, {
|
|
354
|
-
default:
|
|
354
|
+
default: O(() => [
|
|
355
355
|
T.value ? (a(), y(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
@@ -362,11 +362,11 @@ const ve = {
|
|
|
362
362
|
r(`
|
|
363
363
|
@slot left-icon - The icon to display on the left of the button
|
|
364
364
|
`),
|
|
365
|
-
|
|
365
|
+
V(t.$slots, "left-icon", {}, () => [
|
|
366
366
|
typeof t.leftIcon == "string" ? (a(), f(b(c), {
|
|
367
367
|
key: 0,
|
|
368
368
|
name: t.leftIcon
|
|
369
|
-
}, null, 8, ["name"])) : t.leftIcon ? (a(), f(
|
|
369
|
+
}, null, 8, ["name"])) : t.leftIcon ? (a(), f(L(t.leftIcon), { key: 1 })) : r("v-if", !0)
|
|
370
370
|
], !0)
|
|
371
371
|
],
|
|
372
372
|
2
|
|
@@ -382,11 +382,11 @@ const ve = {
|
|
|
382
382
|
r(`
|
|
383
383
|
@slot icon - The icon to display on the fab button
|
|
384
384
|
`),
|
|
385
|
-
|
|
385
|
+
V(t.$slots, "icon", {}, () => [
|
|
386
386
|
typeof t.icon == "string" ? (a(), f(b(c), {
|
|
387
387
|
key: 0,
|
|
388
388
|
name: t.icon
|
|
389
|
-
}, null, 8, ["name"])) : t.icon ? (a(), f(
|
|
389
|
+
}, null, 8, ["name"])) : t.icon ? (a(), f(L(t.icon), { key: 1 })) : r("v-if", !0)
|
|
390
390
|
], !0)
|
|
391
391
|
],
|
|
392
392
|
2
|
|
@@ -402,7 +402,7 @@ const ve = {
|
|
|
402
402
|
r(`
|
|
403
403
|
@slot default - The content of the button
|
|
404
404
|
`),
|
|
405
|
-
|
|
405
|
+
V(t.$slots, "default", {}, void 0, !0)
|
|
406
406
|
],
|
|
407
407
|
2
|
|
408
408
|
/* CLASS */
|
|
@@ -417,11 +417,11 @@ const ve = {
|
|
|
417
417
|
r(`
|
|
418
418
|
@slot right-icon - The icon to display on the right of the button
|
|
419
419
|
`),
|
|
420
|
-
|
|
420
|
+
V(t.$slots, "right-icon", {}, () => [
|
|
421
421
|
typeof t.rightIcon == "string" ? (a(), f(b(c), {
|
|
422
422
|
key: 0,
|
|
423
423
|
name: t.rightIcon
|
|
424
|
-
}, null, 8, ["name"])) : t.rightIcon ? (a(), f(
|
|
424
|
+
}, null, 8, ["name"])) : t.rightIcon ? (a(), f(L(t.rightIcon), { key: 1 })) : r("v-if", !0)
|
|
425
425
|
], !0)
|
|
426
426
|
],
|
|
427
427
|
2
|
|
@@ -438,7 +438,7 @@ const ve = {
|
|
|
438
438
|
/* FORWARDED */
|
|
439
439
|
}, 8, ["disabled", "class", "type"]));
|
|
440
440
|
}
|
|
441
|
-
}), X = /* @__PURE__ */
|
|
441
|
+
}), X = /* @__PURE__ */ R(Be, [["__scopeId", "data-v-48f14785"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
442
442
|
__proto__: null,
|
|
443
443
|
default: X
|
|
444
444
|
}, Symbol.toStringTag, { value: "Module" })), $e = {
|
|
@@ -447,7 +447,7 @@ const ve = {
|
|
|
447
447
|
height: "1em",
|
|
448
448
|
fill: "none",
|
|
449
449
|
viewBox: "0 0 24 24"
|
|
450
|
-
}, we = /* @__PURE__ */
|
|
450
|
+
}, we = /* @__PURE__ */ A(
|
|
451
451
|
"path",
|
|
452
452
|
{
|
|
453
453
|
stroke: "currentColor",
|
|
@@ -465,7 +465,7 @@ const ve = {
|
|
|
465
465
|
function Ce(p, l) {
|
|
466
466
|
return a(), y("svg", $e, [...Te]);
|
|
467
467
|
}
|
|
468
|
-
const Me = { render: Ce },
|
|
468
|
+
const Me = { render: Ce }, Se = /* @__PURE__ */ E({
|
|
469
469
|
inheritAttrs: !1,
|
|
470
470
|
__name: "MazInputTags",
|
|
471
471
|
props: {
|
|
@@ -497,10 +497,10 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
497
497
|
function k(n) {
|
|
498
498
|
if (h.value) {
|
|
499
499
|
v.value = void 0, n.preventDefault();
|
|
500
|
-
const s = h.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(
|
|
500
|
+
const s = h.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(U).filter(
|
|
501
501
|
(d) => {
|
|
502
502
|
var t, B;
|
|
503
|
-
return !((B = (t = o.modelValue) == null ? void 0 : t.filter(
|
|
503
|
+
return !((B = (t = o.modelValue) == null ? void 0 : t.filter(U)) != null && B.some((q) => q === d));
|
|
504
504
|
}
|
|
505
505
|
);
|
|
506
506
|
c(
|
|
@@ -509,7 +509,7 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
509
509
|
), h.value = void 0;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
const
|
|
512
|
+
const F = u(() => {
|
|
513
513
|
if (o.error)
|
|
514
514
|
return "maz-border-danger";
|
|
515
515
|
if (o.success)
|
|
@@ -550,14 +550,14 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
550
550
|
return (n, i) => (a(), y(
|
|
551
551
|
"div",
|
|
552
552
|
{
|
|
553
|
-
class: w(["m-input-tags", [
|
|
553
|
+
class: w(["m-input-tags", [F.value, `--${n.color}`, `--${n.size}`, o.class, { "--block": n.block }]]),
|
|
554
554
|
style: K(n.style),
|
|
555
555
|
onFocusCapture: i[4] || (i[4] = (s) => z.value = !0),
|
|
556
556
|
onBlurCapture: i[5] || (i[5] = (s) => z.value = !1)
|
|
557
557
|
},
|
|
558
558
|
[
|
|
559
|
-
|
|
560
|
-
default:
|
|
559
|
+
D(de, { name: "maz-tags" }, {
|
|
560
|
+
default: O(() => [
|
|
561
561
|
(a(!0), y(
|
|
562
562
|
ce,
|
|
563
563
|
null,
|
|
@@ -565,7 +565,7 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
565
565
|
key: `tag-${t}`,
|
|
566
566
|
class: "m-input-tags__wrapper"
|
|
567
567
|
}, [
|
|
568
|
-
|
|
568
|
+
D(X, {
|
|
569
569
|
class: "m-input-tags__tag",
|
|
570
570
|
disabled: n.disabled,
|
|
571
571
|
size: n.size,
|
|
@@ -576,10 +576,10 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
576
576
|
onMouseleave: i[0] || (i[0] = (B) => g.value = void 0),
|
|
577
577
|
onBlur: i[1] || (i[1] = (B) => g.value = void 0)
|
|
578
578
|
}, {
|
|
579
|
-
"right-icon":
|
|
579
|
+
"right-icon": O(() => [
|
|
580
580
|
g.value === d || v.value === d ? (a(), f(b(Me), { key: 0 })) : r("v-if", !0)
|
|
581
581
|
]),
|
|
582
|
-
default:
|
|
582
|
+
default: O(() => [
|
|
583
583
|
J(
|
|
584
584
|
Q(s) + " ",
|
|
585
585
|
1
|
|
@@ -597,7 +597,7 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
597
597
|
_: 1
|
|
598
598
|
/* STABLE */
|
|
599
599
|
}),
|
|
600
|
-
|
|
600
|
+
D(ke, G({
|
|
601
601
|
key: "input-tags",
|
|
602
602
|
modelValue: h.value,
|
|
603
603
|
"onUpdate:modelValue": i[2] || (i[2] = (s) => h.value = s)
|
|
@@ -613,8 +613,8 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
613
613
|
"no-border": "",
|
|
614
614
|
class: "m-input-tags__input",
|
|
615
615
|
onKeydown: [
|
|
616
|
-
|
|
617
|
-
|
|
616
|
+
N(k, ["enter"]),
|
|
617
|
+
N($, ["delete"])
|
|
618
618
|
],
|
|
619
619
|
onBlur: i[3] || (i[3] = (s) => n.addTagsOnBlur ? k(s) : void 0)
|
|
620
620
|
}), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "block", "size"])
|
|
@@ -623,8 +623,8 @@ const Me = { render: Ce }, Ve = /* @__PURE__ */ N({
|
|
|
623
623
|
/* CLASS, STYLE, NEED_HYDRATION */
|
|
624
624
|
));
|
|
625
625
|
}
|
|
626
|
-
}),
|
|
626
|
+
}), Fe = /* @__PURE__ */ R(Se, [["__scopeId", "data-v-2915bccf"]]);
|
|
627
627
|
export {
|
|
628
|
-
|
|
629
|
-
|
|
628
|
+
Fe as M,
|
|
629
|
+
R as _
|
|
630
630
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../assets/MazLazyImg.css';var v = Object.defineProperty;
|
|
2
2
|
var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
|
-
var n = (a, e, s) =>
|
|
3
|
+
var n = (a, e, s) => f(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as y, normalizeStyle as C, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
|
|
5
5
|
const k = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", H = {
|
|
6
6
|
baseClass: "m-lazy-img",
|
|
@@ -146,8 +146,7 @@ class w {
|
|
|
146
146
|
}
|
|
147
147
|
async imageHandler(e, s, t) {
|
|
148
148
|
if (t === "update")
|
|
149
|
-
for await (const r of this.observers)
|
|
150
|
-
r.unobserve(e);
|
|
149
|
+
for await (const r of this.observers) r.unobserve(e);
|
|
151
150
|
window.IntersectionObserver ? this.createObserver(e, s) : this.loadImage(e, s);
|
|
152
151
|
}
|
|
153
152
|
async bindUpdateHandler(e, s, t) {
|
|
@@ -204,7 +203,7 @@ const M = {
|
|
|
204
203
|
},
|
|
205
204
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
206
205
|
setup(a) {
|
|
207
|
-
const e = a, s = b(() => import("./MazSpinner-
|
|
206
|
+
const e = a, s = b(() => import("./MazSpinner-D8k_MENa.mjs")), t = m(() => e.image || e.src), r = m(() => {
|
|
208
207
|
var o;
|
|
209
208
|
return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
|
|
210
209
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import '../assets/MazLazyImg.css';var v = Object.defineProperty;
|
|
2
2
|
var f = (a, e, s) => e in a ? v(a, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : a[e] = s;
|
|
3
|
-
var n = (a, e, s) =>
|
|
3
|
+
var n = (a, e, s) => f(a, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
import { defineComponent as A, defineAsyncComponent as b, computed as m, withDirectives as I, openBlock as d, createElementBlock as c, normalizeClass as C, normalizeStyle as y, Fragment as E, renderList as O, createElementVNode as L, mergeProps as P, createVNode as S, unref as g, createCommentVNode as z, renderSlot as B } from "vue";
|
|
5
|
-
import { _ as k } from "./MazAvatar-
|
|
5
|
+
import { _ as k } from "./MazAvatar-CoT6WIl0.mjs";
|
|
6
6
|
const H = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", w = {
|
|
7
7
|
baseClass: "m-lazy-img",
|
|
8
8
|
loadedClass: "m-lazy-loaded",
|
|
@@ -147,8 +147,7 @@ class U {
|
|
|
147
147
|
}
|
|
148
148
|
async imageHandler(e, s, t) {
|
|
149
149
|
if (t === "update")
|
|
150
|
-
for await (const r of this.observers)
|
|
151
|
-
r.unobserve(e);
|
|
150
|
+
for await (const r of this.observers) r.unobserve(e);
|
|
152
151
|
window.IntersectionObserver ? this.createObserver(e, s) : this.loadImage(e, s);
|
|
153
152
|
}
|
|
154
153
|
async bindUpdateHandler(e, s, t) {
|
|
@@ -205,7 +204,7 @@ const M = {
|
|
|
205
204
|
},
|
|
206
205
|
emits: ["intersecting", "loading", "loaded", "error"],
|
|
207
206
|
setup(a) {
|
|
208
|
-
const e = a, s = b(() => import("./MazSpinner-
|
|
207
|
+
const e = a, s = b(() => import("./MazSpinner-D4gpZ7vL.mjs")), t = m(() => e.image || e.src), r = m(() => {
|
|
209
208
|
var o;
|
|
210
209
|
return typeof t.value == "string" ? [{ srcset: t.value }] : (o = t.value) == null ? void 0 : o.sources;
|
|
211
210
|
});
|