maz-ui 3.29.2 → 3.29.3
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../assets/MazInputNumber.css";
|
|
2
|
-
import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as
|
|
2
|
+
import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as q, onBeforeMount as ne, computed as l, openBlock as u, createBlock as x, resolveDynamicComponent as ae, normalizeClass as p, withCtx as N, createElementBlock as v, renderSlot as w, unref as d, createCommentVNode as c, createElementVNode as V, ref as T, getCurrentInstance as le, onMounted as oe, normalizeStyle as R, createVNode as z, withDirectives as ie, mergeProps as U, toHandlers as re, vModelDynamic as ue, createTextVNode as se, toDisplayString as de, withModifiers as D, withKeys as L } from "vue";
|
|
3
3
|
const ce = /* @__PURE__ */ O({
|
|
4
4
|
__name: "MazBtn",
|
|
5
5
|
props: {
|
|
@@ -39,7 +39,7 @@ const ce = /* @__PURE__ */ O({
|
|
|
39
39
|
noElevation: { type: Boolean, default: !1 }
|
|
40
40
|
},
|
|
41
41
|
setup(e) {
|
|
42
|
-
const s = B(() => import("./MazSpinner-
|
|
42
|
+
const s = B(() => import("./MazSpinner-bnjZoL8U.mjs")), n = B(() => import("./MazIcon-RrJDzX3V.mjs")), { href: b, to: r } = te(), $ = q(), i = e;
|
|
43
43
|
ne(() => {
|
|
44
44
|
i.icon && !i.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
|
|
45
45
|
});
|
|
@@ -276,11 +276,11 @@ const fe = ({
|
|
|
276
276
|
}
|
|
277
277
|
return "--default-border";
|
|
278
278
|
}
|
|
279
|
-
}), M =
|
|
279
|
+
}), M = q(), S = l(() => {
|
|
280
280
|
const { required: a, placeholder: h } = t;
|
|
281
281
|
if (h)
|
|
282
282
|
return a ? `${h} *` : h;
|
|
283
|
-
}), j = l(() => t.modelValue !== void 0 && t.modelValue !== ""),
|
|
283
|
+
}), j = l(() => t.modelValue !== void 0 && t.modelValue !== ""), F = l({
|
|
284
284
|
get: () => t.modelValue,
|
|
285
285
|
set: (a) => ee(a)
|
|
286
286
|
}), G = l(() => (!!t.label || !!t.hint) && (y.value || !!j.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), H = l(() => !!t.label || !!t.hint), J = () => !!M["right-icon"] || k.value || !!M["valid-button"] || t.validButton || !!t.rightIcon, Q = () => !!M["left-icon"] || !!t.leftIcon, W = (a) => {
|
|
@@ -333,7 +333,7 @@ const fe = ({
|
|
|
333
333
|
id: d(o),
|
|
334
334
|
ref_key: "input",
|
|
335
335
|
ref: I,
|
|
336
|
-
"onUpdate:modelValue": h[0] || (h[0] = (A) =>
|
|
336
|
+
"onUpdate:modelValue": h[0] || (h[0] = (A) => F.value = A),
|
|
337
337
|
type: C.value,
|
|
338
338
|
name: e.name
|
|
339
339
|
}, a.$attrs, {
|
|
@@ -350,7 +350,7 @@ const fe = ({
|
|
|
350
350
|
}, !0), {
|
|
351
351
|
onClick: h[1] || (h[1] = (A) => a.$emit("click", A))
|
|
352
352
|
}), null, 16, ye), [
|
|
353
|
-
[ue,
|
|
353
|
+
[ue, F.value]
|
|
354
354
|
]),
|
|
355
355
|
e.label || e.hint ? (u(), v(
|
|
356
356
|
"span",
|
|
@@ -519,19 +519,19 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
|
|
|
519
519
|
m(r.value);
|
|
520
520
|
const f = l(() => n.modelValue && n.modelValue >= n.max), y = l(() => n.modelValue && n.modelValue <= n.min), I = () => {
|
|
521
521
|
if (!(n.disabled || f.value)) {
|
|
522
|
-
if (r.value === void 0 || r.value === null) {
|
|
522
|
+
if ((r.value === void 0 || r.value === null) && Number.isFinite(n.min)) {
|
|
523
523
|
r.value = n.min;
|
|
524
524
|
return;
|
|
525
525
|
}
|
|
526
|
-
r.value = r.value + 1 * n.step;
|
|
526
|
+
r.value = (r.value ?? 0) + 1 * n.step;
|
|
527
527
|
}
|
|
528
528
|
}, g = () => {
|
|
529
529
|
if (!(n.disabled || y.value)) {
|
|
530
|
-
if (r.value === void 0 || r.value === null) {
|
|
530
|
+
if ((r.value === void 0 || r.value === null) && Number.isFinite(n.min)) {
|
|
531
531
|
r.value = n.min;
|
|
532
532
|
return;
|
|
533
533
|
}
|
|
534
|
-
r.value = r.value - 1 * n.step;
|
|
534
|
+
r.value = (r.value ?? 0) - 1 * n.step;
|
|
535
535
|
}
|
|
536
536
|
};
|
|
537
537
|
return (o, k) => (u(), v(
|
|
@@ -566,8 +566,8 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
|
|
|
566
566
|
}, o.$attrs, {
|
|
567
567
|
size: e.size,
|
|
568
568
|
onKeydown: [
|
|
569
|
-
|
|
570
|
-
|
|
569
|
+
L(D(I, ["prevent"]), ["up"]),
|
|
570
|
+
L(D(g, ["prevent"]), ["down"])
|
|
571
571
|
],
|
|
572
572
|
"onUpdate:modelValue": k[0] || (k[0] = (C) => d(t)(C))
|
|
573
573
|
}), null, 16, ["model-value", "disabled", "min", "max", "step", "size", "onKeydown"]),
|
|
@@ -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 "./MazInputNumber-
|
|
3
|
+
import { _ as p } from "./MazInputNumber-nZPwmWuy.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" },
|
package/nuxt/index.json
CHANGED