maz-ui 3.28.4 → 3.28.5

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,4 +1,4 @@
1
- import { a as f } from "./chunks/MazInputNumber-OAPwOzCG.mjs";
1
+ import { a as f } from "./chunks/MazInputNumber--mfcG21i.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import "../assets/MazInputNumber.css";
2
- import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as F, onBeforeMount as ne, computed as l, openBlock as r, createBlock as I, 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 q } from "vue";
2
+ import { defineComponent as O, defineAsyncComponent as B, useAttrs as te, useSlots as F, onBeforeMount as ne, computed as l, openBlock as r, 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 q } 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-RwIjv6Xr.mjs")), n = B(() => import("./MazIcon-RrJDzX3V.mjs")), { href: b, to: u } = te(), $ = F(), i = e;
42
+ const s = B(() => import("./MazSpinner-1BZJDgh6.mjs")), n = B(() => import("./MazIcon-RrJDzX3V.mjs")), { href: b, to: u } = te(), $ = F(), 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
  });
@@ -47,14 +47,14 @@ const ce = /* @__PURE__ */ O({
47
47
  () => i.pastel ? `--${i.color}-pastel` : i.outline ? `--${i.color}-outline` : `--${i.color}`
48
48
  ), f = l(
49
49
  () => (i.loading || i.disabled) && t.value === "button"
50
- ), y = l(() => f.value ? "--cursor-default" : "--cursor-pointer"), x = l(() => `--is-${i.variant}`), g = l(() => i.loading && i.variant === "button"), o = l(() => !!$["left-icon"] || i.leftIcon), k = l(() => !!$["right-icon"] || i.rightIcon), C = l(() => o.value || k.value), P = l(() => i.fab && i.icon), M = l(() => t.value === "button" ? i.type : void 0);
51
- return (S, j) => (r(), I(ae(t.value), {
50
+ ), y = l(() => f.value ? "--cursor-default" : "--cursor-pointer"), I = l(() => `--is-${i.variant}`), g = l(() => i.loading && i.variant === "button"), o = l(() => !!$["left-icon"] || i.leftIcon), k = l(() => !!$["right-icon"] || i.rightIcon), C = l(() => o.value || k.value), P = l(() => i.fab && i.icon), M = l(() => t.value === "button" ? i.type : void 0);
51
+ return (S, j) => (r(), x(ae(t.value), {
52
52
  disabled: f.value,
53
53
  class: p(["m-btn", [
54
54
  `--${e.size}`,
55
55
  m.value,
56
56
  y.value,
57
- x.value,
57
+ I.value,
58
58
  {
59
59
  "--block": e.block,
60
60
  "--no-underline": e.noUnderline,
@@ -80,7 +80,7 @@ const ce = /* @__PURE__ */ O({
80
80
  },
81
81
  [
82
82
  w(S.$slots, "left-icon", {}, () => [
83
- e.leftIcon ? (r(), I(d(n), {
83
+ e.leftIcon ? (r(), x(d(n), {
84
84
  key: 0,
85
85
  name: e.leftIcon
86
86
  }, null, 8, ["name"])) : c("v-if", !0)
@@ -97,7 +97,7 @@ const ce = /* @__PURE__ */ O({
97
97
  },
98
98
  [
99
99
  w(S.$slots, "icon", {}, () => [
100
- e.icon ? (r(), I(d(n), {
100
+ e.icon ? (r(), x(d(n), {
101
101
  key: 0,
102
102
  name: e.icon
103
103
  }, null, 8, ["name"])) : c("v-if", !0)
@@ -125,7 +125,7 @@ const ce = /* @__PURE__ */ O({
125
125
  },
126
126
  [
127
127
  w(S.$slots, "right-icon", {}, () => [
128
- e.rightIcon ? (r(), I(d(n), {
128
+ e.rightIcon ? (r(), x(d(n), {
129
129
  key: 0,
130
130
  name: e.rightIcon
131
131
  }, null, 8, ["name"])) : c("v-if", !0)
@@ -134,7 +134,7 @@ const ce = /* @__PURE__ */ O({
134
134
  2
135
135
  /* CLASS */
136
136
  )) : c("v-if", !0),
137
- g.value ? (r(), I(d(s), {
137
+ g.value ? (r(), x(d(s), {
138
138
  key: 3,
139
139
  size: "2em",
140
140
  color: e.color,
@@ -239,14 +239,14 @@ const fe = ({
239
239
  },
240
240
  emits: ["focus", "blur", "update:model-value", "click", "change", "update"],
241
241
  setup(e, { emit: s }) {
242
- const n = B(() => Promise.resolve().then(() => me)), b = B(() => import("./MazIcon-RrJDzX3V.mjs")), u = B(() => import("./eye-slash-UoWe3WK1.mjs")), $ = B(() => import("./eye-3jm1b22X.mjs")), i = B(() => import("./check-JxWJRZYz.mjs")), t = e, m = s, f = T(!1), y = T(!1), x = T(), g = le(), o = fe({
242
+ const n = B(() => Promise.resolve().then(() => me)), b = B(() => import("./MazIcon-RrJDzX3V.mjs")), u = B(() => import("./eye-slash-UoWe3WK1.mjs")), $ = B(() => import("./eye-3jm1b22X.mjs")), i = B(() => import("./check-JxWJRZYz.mjs")), t = e, m = s, f = T(!1), y = T(!1), I = T(), g = le(), o = fe({
243
243
  componentName: "MazInput",
244
244
  instance: g,
245
245
  providedId: t.id
246
246
  });
247
247
  oe(() => {
248
248
  var a;
249
- t.autoFocus && ((a = x.value) == null || a.focus());
249
+ t.autoFocus && ((a = I.value) == null || a.focus());
250
250
  });
251
251
  const k = l(() => t.type === "password"), C = l(() => f.value ? "text" : t.type), P = l(() => {
252
252
  if (!t.noBorder) {
@@ -332,7 +332,7 @@ const fe = ({
332
332
  ie(V("input", U({
333
333
  id: d(o),
334
334
  ref_key: "input",
335
- ref: x,
335
+ ref: I,
336
336
  "onUpdate:modelValue": h[0] || (h[0] = (A) => L.value = A),
337
337
  type: C.value,
338
338
  name: e.name
@@ -384,7 +384,7 @@ const fe = ({
384
384
  class: "maz-text-xl maz-text-muted"
385
385
  }, null, 8, ["name"])
386
386
  ], !0) : c("v-if", !0),
387
- k.value ? (r(), I(d(n), {
387
+ k.value ? (r(), x(d(n), {
388
388
  key: 1,
389
389
  color: "transparent",
390
390
  tabindex: "-1",
@@ -392,10 +392,10 @@ const fe = ({
392
392
  onClick: h[2] || (h[2] = D((A) => f.value = !f.value, ["stop"]))
393
393
  }, {
394
394
  default: N(() => [
395
- f.value ? (r(), I(d(u), {
395
+ f.value ? (r(), x(d(u), {
396
396
  key: 0,
397
397
  class: "maz-text-xl maz-text-muted"
398
- })) : (r(), I(d($), {
398
+ })) : (r(), x(d($), {
399
399
  key: 1,
400
400
  class: "maz-text-xl maz-text-muted"
401
401
  }))
@@ -436,7 +436,7 @@ const fe = ({
436
436
  height: "1em",
437
437
  fill: "none",
438
438
  viewBox: "0 0 24 24"
439
- }, Ie = /* @__PURE__ */ V(
439
+ }, xe = /* @__PURE__ */ V(
440
440
  "path",
441
441
  {
442
442
  stroke: "currentColor",
@@ -448,11 +448,11 @@ const fe = ({
448
448
  null,
449
449
  -1
450
450
  /* HOISTED */
451
- ), xe = [
452
- Ie
451
+ ), Ie = [
452
+ xe
453
453
  ];
454
454
  function Be(e, s) {
455
- return r(), v("svg", ke, [...xe]);
455
+ return r(), v("svg", ke, [...Ie]);
456
456
  }
457
457
  const we = { render: Be }, $e = {
458
458
  xmlns: "http://www.w3.org/2000/svg",
@@ -517,10 +517,10 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
517
517
  o = i(o), u.value !== o && b("update:model-value", o);
518
518
  };
519
519
  m(u.value);
520
- const f = l(() => n.modelValue && n.modelValue >= n.max), y = l(() => n.modelValue && n.modelValue <= n.min), x = () => {
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
522
  if (!u.value) {
523
- u.value = 1 * n.step;
523
+ u.value = n.min;
524
524
  return;
525
525
  }
526
526
  u.value = u.value + 1 * n.step;
@@ -528,7 +528,7 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
528
528
  }, g = () => {
529
529
  if (!(n.disabled || y.value)) {
530
530
  if (!u.value) {
531
- u.value = -(1 * n.step);
531
+ u.value = n.min;
532
532
  return;
533
533
  }
534
534
  u.value = u.value - 1 * n.step;
@@ -544,6 +544,7 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
544
544
  z(E, {
545
545
  color: "transparent",
546
546
  size: e.size,
547
+ tabindex: "-1",
547
548
  class: "m-input-number__button m-input-number__decrement-button",
548
549
  disabled: y.value || e.disabled,
549
550
  onClick: g
@@ -565,7 +566,7 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
565
566
  }, o.$attrs, {
566
567
  size: e.size,
567
568
  onKeydown: [
568
- q(D(x, ["prevent"]), ["up"]),
569
+ q(D(I, ["prevent"]), ["up"]),
569
570
  q(D(g, ["prevent"]), ["down"])
570
571
  ],
571
572
  "onUpdate:modelValue": k[0] || (k[0] = (C) => d(t)(C))
@@ -573,10 +574,11 @@ const Me = { render: Ce }, Pe = /* @__PURE__ */ O({
573
574
  z(E, {
574
575
  color: "transparent",
575
576
  "no-shadow": "",
577
+ tabindex: "-1",
576
578
  size: e.size,
577
579
  class: "m-input-number__button m-input-number__increment-button",
578
580
  disabled: f.value || e.disabled,
579
- onClick: x
581
+ onClick: I
580
582
  }, {
581
583
  default: N(() => [
582
584
  z(d(we), { class: "m-input-number__button__icon" })
@@ -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-OAPwOzCG.mjs";
3
+ import { _ as p } from "./MazInputNumber--mfcG21i.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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "3.28.4"
7
+ "version": "3.28.5"
8
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maz-ui",
3
- "version": "3.28.4",
3
+ "version": "3.28.5",
4
4
  "description": "A standalone components library for Vue.Js 3 & Nuxt.Js 3",
5
5
  "author": "Louis Mazel <me@loicmazuel.com>",
6
6
  "main": "./modules/index.cjs",