maz-ui 3.37.0 → 3.37.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.
Files changed (74) hide show
  1. package/components/MazCheckbox.d.ts +4 -0
  2. package/components/MazCheckbox.mjs +31 -24
  3. package/components/MazInput.d.ts +2 -0
  4. package/components/MazInput.mjs +1 -1
  5. package/components/MazInputNumber.d.ts +2 -0
  6. package/components/MazInputNumber.mjs +1 -1
  7. package/components/MazInputPrice.d.ts +8 -0
  8. package/components/MazInputPrice.mjs +1 -1
  9. package/components/MazInputTags.d.ts +2 -0
  10. package/components/MazInputTags.mjs +1 -1
  11. package/components/MazPhoneNumberInput.d.ts +2 -0
  12. package/components/MazPhoneNumberInput.mjs +1 -1
  13. package/components/MazPicker.d.ts +2 -0
  14. package/components/MazPicker.mjs +1 -1
  15. package/components/MazRadio.d.ts +9 -0
  16. package/components/MazRadio.mjs +44 -37
  17. package/components/MazSelect.d.ts +2 -0
  18. package/components/MazSelect.mjs +1 -1
  19. package/components/MazTable.mjs +1 -1
  20. package/components/MazTextarea.mjs +1 -1
  21. package/components/assets/MazCheckbox.css +1 -1
  22. package/components/assets/MazInput.css +1 -1
  23. package/components/assets/MazInputNumber.css +1 -1
  24. package/components/assets/MazInputPrice.css +1 -1
  25. package/components/assets/MazInputTags.css +1 -1
  26. package/components/assets/MazPhoneNumberInput.css +1 -1
  27. package/components/assets/MazPicker.css +1 -1
  28. package/components/assets/MazRadio.css +1 -1
  29. package/components/assets/MazSelect.css +1 -1
  30. package/components/assets/MazTable.css +1 -1
  31. package/components/assets/MazTextarea.css +1 -1
  32. package/components/chunks/{MazBtn-C3z_znl5.mjs → MazBtn-Bo51KtKY.mjs} +2 -2
  33. package/components/chunks/{MazBtn-CuYCQCM2.mjs → MazBtn-CDQAW3fg.mjs} +2 -2
  34. package/components/chunks/MazBtn-D-Axz-X0.mjs +151 -0
  35. package/components/chunks/{MazBtn-D7b2VFGB.mjs → MazBtn-Koayc6g_.mjs} +2 -2
  36. package/components/chunks/{MazBtn-CS2F1-mC.mjs → MazBtn-pLRsSxug.mjs} +2 -2
  37. package/components/chunks/{MazCheckbox-BTM3Xpxz.mjs → MazCheckbox-CXVe5vda.mjs} +30 -23
  38. package/components/chunks/{MazCheckbox-COTppi08.mjs → MazCheckbox-DBlQwP82.mjs} +30 -23
  39. package/components/chunks/{MazIcon-Bspx_Ojq.mjs → MazIcon-BTsi1M-S.mjs} +1 -1
  40. package/components/chunks/{MazInput-C1r0b8BB.mjs → MazInput-Caas-0Nk.mjs} +19 -17
  41. package/components/chunks/{MazInputNumber-DJWxTvJ0.mjs → MazInputNumber-CnoCQQzg.mjs} +85 -81
  42. package/components/chunks/{MazInputPrice-CmX_rC0L.mjs → MazInputPrice---5nCUKm.mjs} +57 -53
  43. package/components/chunks/{MazInputTags-pm_5HtHM.mjs → MazInputTags-CipoVBP2.mjs} +83 -79
  44. package/components/chunks/{MazPhoneNumberInput-CVz5eTvG.mjs → MazPhoneNumberInput-CsX6Kqob.mjs} +402 -395
  45. package/components/chunks/{MazPicker-DP1zd8tt.mjs → MazPicker-CfhI75aw.mjs} +67 -62
  46. package/components/chunks/{MazPickerCalendar-qjcDNw86.mjs → MazPickerCalendar-DnkNE-Am.mjs} +3 -3
  47. package/components/chunks/{MazPickerHeader-CozeYkFf.mjs → MazPickerHeader-Vt86yzXS.mjs} +1 -1
  48. package/components/chunks/{MazPickerMonthSwitcher-aaUELZpE.mjs → MazPickerMonthSwitcher-zfKhsjW1.mjs} +2 -2
  49. package/components/chunks/{MazPickerShortcuts-ppox8lXf.mjs → MazPickerShortcuts-DUIKfOO8.mjs} +2 -2
  50. package/components/chunks/{MazPickerTime-DmpypIWr.mjs → MazPickerTime-B2znRxr2.mjs} +2 -2
  51. package/components/chunks/{MazPickerYearSwitcher-BNBvipzs.mjs → MazPickerYearSwitcher-CB339kof.mjs} +3 -3
  52. package/components/chunks/{MazSelect-DGEof7R3.mjs → MazSelect-DZeXglR8.mjs} +117 -109
  53. package/components/chunks/{MazSpinner-CTdeHHNH.mjs → MazSpinner-BAhgxOgg.mjs} +1 -1
  54. package/components/chunks/{MazSpinner-DmFFdtxB.mjs → MazSpinner-CJaSrYbQ.mjs} +1 -1
  55. package/components/chunks/{MazSpinner-KKcK5-QF.mjs → MazSpinner-CORsBFCP.mjs} +1 -1
  56. package/components/chunks/{MazSpinner-DTZHIIMh.mjs → MazSpinner-CVBVegaS.mjs} +1 -1
  57. package/components/chunks/MazSpinner-CkdjTE0y.mjs +38 -0
  58. package/components/chunks/{MazSpinner-DZTqt2Yn.mjs → MazSpinner-DECa8Pby.mjs} +1 -1
  59. package/components/chunks/{MazSpinner-DUVEeU4h.mjs → MazSpinner-Dq4o-_GM.mjs} +1 -1
  60. package/components/chunks/{MazSpinner-CiPbsWOG.mjs → MazSpinner-DqXjnLKa.mjs} +1 -1
  61. package/components/chunks/{MazTable-BhDfeDU1.mjs → MazTable-DrFqDO-J.mjs} +214 -199
  62. package/nuxt/index.json +1 -1
  63. package/package.json +1 -1
  64. package/types/components/MazCheckbox.vue.d.ts +4 -0
  65. package/types/components/MazInput.vue.d.ts +2 -0
  66. package/types/components/MazInputNumber.vue.d.ts +2 -0
  67. package/types/components/MazInputPrice.vue.d.ts +8 -0
  68. package/types/components/MazInputTags.vue.d.ts +2 -0
  69. package/types/components/MazPhoneNumberInput.vue.d.ts +2 -0
  70. package/types/components/MazPicker.vue.d.ts +2 -0
  71. package/types/components/MazRadio.vue.d.ts +9 -0
  72. package/types/components/MazSelect.vue.d.ts +2 -0
  73. package/components/chunks/MazBtn-OUDBhJKd.mjs +0 -151
  74. package/components/chunks/MazSpinner-yPD_Biya.mjs +0 -38
@@ -1,5 +1,5 @@
1
1
  import '../assets/MazInputTags.css';
2
- import { getCurrentInstance as ne, computed as u, defineComponent as N, defineAsyncComponent as V, ref as T, onMounted as ae, useSlots as H, openBlock as l, createElementBlock as b, normalizeClass as M, normalizeStyle as K, createElementVNode as E, createCommentVNode as s, renderSlot as S, createBlock as p, unref as v, resolveDynamicComponent as F, withDirectives as le, mergeProps as G, toHandlers as re, vModelDynamic as se, createTextVNode as X, toDisplayString as J, withModifiers as Q, withCtx as A, createVNode as P, useAttrs as ie, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as O } from "vue";
2
+ import { getCurrentInstance as ne, computed as u, defineComponent as N, defineAsyncComponent as V, ref as T, onMounted as le, useSlots as H, openBlock as a, createElementBlock as b, normalizeClass as M, normalizeStyle as K, createElementVNode as E, createCommentVNode as s, renderSlot as S, createBlock as p, unref as v, resolveDynamicComponent as F, withDirectives as ae, mergeProps as G, toHandlers as re, vModelDynamic as se, createTextVNode as X, toDisplayString as J, withModifiers as Q, withCtx as A, createVNode as P, useAttrs as ie, onBeforeMount as ue, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as O } from "vue";
3
3
  function pe(f, y) {
4
4
  let n;
5
5
  return function(...g) {
@@ -53,19 +53,20 @@ const me = ({
53
53
  borderActive: { type: Boolean, default: !1 },
54
54
  leftIcon: { default: void 0 },
55
55
  rightIcon: { default: void 0 },
56
- roundedSize: { default: void 0 }
56
+ roundedSize: { default: void 0 },
57
+ block: { type: Boolean }
57
58
  },
58
59
  emits: ["update:model-value", "focus", "blur", "click", "change"],
59
60
  setup(f, { emit: y }) {
60
- const n = V(() => Promise.resolve().then(() => Be)), g = V(() => import("./MazIcon-Cxrv3_OK.mjs")), h = V(() => import("./eye-slash-tjfxO0LK.mjs")), z = V(() => import("./eye-DqO_Jx56.mjs")), r = V(() => import("./check-CL-vqe79.mjs")), o = f, B = y, m = T(!1), w = T(!1), D = T(), $ = me({
61
+ const n = V(() => Promise.resolve().then(() => Ie)), g = V(() => import("./MazIcon-Cxrv3_OK.mjs")), h = V(() => import("./eye-slash-tjfxO0LK.mjs")), z = V(() => import("./eye-DqO_Jx56.mjs")), r = V(() => import("./check-CL-vqe79.mjs")), o = f, I = y, m = T(!1), w = T(!1), D = T(), $ = me({
61
62
  componentName: "MazInput",
62
63
  providedId: o.id
63
64
  });
64
- ae(() => {
65
+ le(() => {
65
66
  var e;
66
67
  o.autoFocus && ((e = D.value) == null || e.focus());
67
68
  });
68
- const C = u(() => o.type === "password"), a = u(() => m.value ? "text" : o.type), i = u(() => {
69
+ const C = u(() => o.type === "password"), l = u(() => m.value ? "text" : o.type), i = u(() => {
69
70
  if (!o.noBorder) {
70
71
  if (o.error)
71
72
  return "maz-border-danger";
@@ -94,9 +95,9 @@ const me = ({
94
95
  return "--default-border";
95
96
  }
96
97
  }), c = H(), d = u(() => {
97
- const { required: e, placeholder: I } = o;
98
- if (I)
99
- return e ? `${I} *` : I;
98
+ const { required: e, placeholder: B } = o;
99
+ if (B)
100
+ return e ? `${B} *` : B;
100
101
  }), t = u(() => L.value !== void 0 && L.value !== ""), k = pe(
101
102
  (e) => {
102
103
  L.value = e;
@@ -107,7 +108,7 @@ const me = ({
107
108
  set: (e) => {
108
109
  if (o.debounce)
109
110
  return k(e);
110
- B("update:model-value", e);
111
+ I("update:model-value", e);
111
112
  }
112
113
  }), Y = u(() => (!!o.label || !!o.hint) && (w.value || !!t.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = u(() => !!o.label || !!o.hint);
113
114
  function _() {
@@ -117,15 +118,15 @@ const me = ({
117
118
  return !!c["left-icon"] || !!o.leftIcon;
118
119
  }
119
120
  function ee(e) {
120
- B("focus", e), w.value = !0;
121
+ I("focus", e), w.value = !0;
121
122
  }
122
123
  function oe(e) {
123
- B("blur", e), w.value = !1;
124
+ I("blur", e), w.value = !1;
124
125
  }
125
126
  function te(e) {
126
- return B("change", e);
127
+ return I("change", e);
127
128
  }
128
- return (e, I) => (l(), b(
129
+ return (e, B) => (a(), b(
129
130
  "div",
130
131
  {
131
132
  class: M(["m-input", [
@@ -136,7 +137,8 @@ const me = ({
136
137
  "--is-disabled": e.disabled,
137
138
  "--is-readonly": e.readonly,
138
139
  "--has-z-2": e.error || e.warning || e.success,
139
- "--has-state": e.error || e.warning || e.success
140
+ "--has-state": e.error || e.warning || e.success,
141
+ "--block": e.block
140
142
  },
141
143
  o.class,
142
144
  `--${e.color}`,
@@ -155,28 +157,28 @@ const me = ({
155
157
  ]])
156
158
  },
157
159
  [
158
- x() ? (l(), b("div", ve, [
160
+ x() ? (a(), b("div", ve, [
159
161
  s(`
160
162
  @slot left-icon - The icon to display on the left of the input
161
163
  `),
162
164
  e.$slots["left-icon"] || e.leftIcon ? S(e.$slots, "left-icon", { key: 0 }, () => [
163
- typeof e.leftIcon == "string" ? (l(), p(v(g), {
165
+ typeof e.leftIcon == "string" ? (a(), p(v(g), {
164
166
  key: 0,
165
167
  name: e.leftIcon,
166
168
  class: "maz-text-xl maz-text-muted"
167
- }, null, 8, ["name"])) : e.leftIcon ? (l(), p(F(e.leftIcon), {
169
+ }, null, 8, ["name"])) : e.leftIcon ? (a(), p(F(e.leftIcon), {
168
170
  key: 1,
169
171
  class: "maz-text-xl maz-text-muted"
170
172
  })) : s("v-if", !0)
171
173
  ], !0) : s("v-if", !0)
172
174
  ])) : s("v-if", !0),
173
175
  E("div", be, [
174
- le(E("input", G({
176
+ ae(E("input", G({
175
177
  id: v($),
176
178
  ref_key: "input",
177
179
  ref: D,
178
- "onUpdate:modelValue": I[0] || (I[0] = (q) => L.value = q),
179
- type: a.value,
180
+ "onUpdate:modelValue": B[0] || (B[0] = (q) => L.value = q),
181
+ type: l.value,
180
182
  name: e.name
181
183
  }, e.$attrs, {
182
184
  inputmode: e.inputmode,
@@ -191,11 +193,11 @@ const me = ({
191
193
  focus: ee,
192
194
  change: te
193
195
  }, !0), {
194
- onClick: I[1] || (I[1] = (q) => e.$emit("click", q))
196
+ onClick: B[1] || (B[1] = (q) => e.$emit("click", q))
195
197
  }), null, 16, ye), [
196
198
  [se, L.value]
197
199
  ]),
198
- e.label || e.hint ? (l(), b(
200
+ e.label || e.hint ? (a(), b(
199
201
  "span",
200
202
  {
201
203
  key: 0,
@@ -214,38 +216,38 @@ const me = ({
214
216
  1
215
217
  /* TEXT */
216
218
  ),
217
- e.required ? (l(), b("sup", ge, "*")) : s("v-if", !0)
219
+ e.required ? (a(), b("sup", ge, "*")) : s("v-if", !0)
218
220
  ],
219
221
  2
220
222
  /* CLASS */
221
223
  )) : s("v-if", !0)
222
224
  ]),
223
- _() ? (l(), b("div", he, [
225
+ _() ? (a(), b("div", he, [
224
226
  s(`
225
227
  @slot right-icon - The icon to display on the right of the input
226
228
  `),
227
229
  e.$slots["right-icon"] || e.rightIcon ? S(e.$slots, "right-icon", { key: 0 }, () => [
228
- typeof e.rightIcon == "string" ? (l(), p(v(g), {
230
+ typeof e.rightIcon == "string" ? (a(), p(v(g), {
229
231
  key: 0,
230
232
  name: e.rightIcon,
231
233
  class: "maz-text-xl maz-text-muted"
232
- }, null, 8, ["name"])) : e.rightIcon ? (l(), p(F(e.rightIcon), {
234
+ }, null, 8, ["name"])) : e.rightIcon ? (a(), p(F(e.rightIcon), {
233
235
  key: 1,
234
236
  class: "maz-text-xl maz-text-muted"
235
237
  })) : s("v-if", !0)
236
238
  ], !0) : s("v-if", !0),
237
- C.value ? (l(), p(v(n), {
239
+ C.value ? (a(), p(v(n), {
238
240
  key: 1,
239
241
  color: "transparent",
240
242
  tabindex: "-1",
241
243
  size: "mini",
242
- onClick: I[2] || (I[2] = Q((q) => m.value = !m.value, ["stop"]))
244
+ onClick: B[2] || (B[2] = Q((q) => m.value = !m.value, ["stop"]))
243
245
  }, {
244
246
  default: A(() => [
245
- m.value ? (l(), p(v(h), {
247
+ m.value ? (a(), p(v(h), {
246
248
  key: 0,
247
249
  class: "maz-text-xl maz-text-muted"
248
- })) : (l(), p(v(z), {
250
+ })) : (a(), p(v(z), {
249
251
  key: 1,
250
252
  class: "maz-text-xl maz-text-muted"
251
253
  }))
@@ -288,7 +290,7 @@ const me = ({
288
290
  for (const [g, h] of y)
289
291
  n[g] = h;
290
292
  return n;
291
- }, ke = /* @__PURE__ */ R(ze, [["__scopeId", "data-v-f1c52a34"]]), Ie = /* @__PURE__ */ N({
293
+ }, ke = /* @__PURE__ */ R(ze, [["__scopeId", "data-v-78090be8"]]), Be = /* @__PURE__ */ N({
292
294
  __name: "MazBtn",
293
295
  props: {
294
296
  variant: { default: "button" },
@@ -313,20 +315,20 @@ const me = ({
313
315
  contentClass: { default: void 0 }
314
316
  },
315
317
  setup(f) {
316
- const y = V(() => import("./MazSpinner-DZTqt2Yn.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: h } = ie(), z = H(), r = f;
318
+ const y = V(() => import("./MazSpinner-DECa8Pby.mjs")), n = V(() => import("./MazIcon-Cxrv3_OK.mjs")), { href: g, to: h } = ie(), z = H(), r = f;
317
319
  ue(() => {
318
320
  r.icon && !r.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
319
321
  });
320
- const o = u(() => g ? "a" : h ? "router-link" : "button"), B = u(
322
+ const o = u(() => g ? "a" : h ? "router-link" : "button"), I = u(
321
323
  () => r.pastel ? `--${r.color}-pastel` : r.outline ? `--${r.color}-outline` : `--${r.color}`
322
324
  ), m = u(
323
325
  () => (r.loading || r.disabled) && o.value === "button"
324
- ), w = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), D = u(() => `--is-${r.variant}`), $ = u(() => r.loading && r.variant === "button"), C = u(() => !!z["left-icon"] || r.leftIcon), a = u(() => !!z["right-icon"] || r.rightIcon), i = u(() => C.value || a.value), c = u(() => r.fab && (r.icon || !!z.icon)), d = u(() => o.value === "button" ? r.type : void 0);
325
- return (t, k) => (l(), p(F(o.value), {
326
+ ), w = u(() => m.value ? "--cursor-default" : "--cursor-pointer"), D = u(() => `--is-${r.variant}`), $ = u(() => r.loading && r.variant === "button"), C = u(() => !!z["left-icon"] || r.leftIcon), l = u(() => !!z["right-icon"] || r.rightIcon), i = u(() => C.value || l.value), c = u(() => r.fab && (r.icon || !!z.icon)), d = u(() => o.value === "button" ? r.type : void 0);
327
+ return (t, k) => (a(), p(F(o.value), {
326
328
  disabled: m.value,
327
329
  class: M(["m-btn", [
328
330
  `--${t.size}`,
329
- B.value,
331
+ I.value,
330
332
  w.value,
331
333
  D.value,
332
334
  {
@@ -346,7 +348,7 @@ const me = ({
346
348
  type: d.value
347
349
  }, {
348
350
  default: A(() => [
349
- C.value ? (l(), b(
351
+ C.value ? (a(), b(
350
352
  "div",
351
353
  {
352
354
  key: 0,
@@ -357,16 +359,16 @@ const me = ({
357
359
  @slot left-icon - The icon to display on the left of the button
358
360
  `),
359
361
  S(t.$slots, "left-icon", {}, () => [
360
- typeof t.leftIcon == "string" ? (l(), p(v(n), {
362
+ typeof t.leftIcon == "string" ? (a(), p(v(n), {
361
363
  key: 0,
362
364
  name: t.leftIcon
363
- }, null, 8, ["name"])) : t.leftIcon ? (l(), p(F(t.leftIcon), { key: 1 })) : s("v-if", !0)
365
+ }, null, 8, ["name"])) : t.leftIcon ? (a(), p(F(t.leftIcon), { key: 1 })) : s("v-if", !0)
364
366
  ], !0)
365
367
  ],
366
368
  2
367
369
  /* CLASS */
368
370
  )) : s("v-if", !0),
369
- c.value ? (l(), b(
371
+ c.value ? (a(), b(
370
372
  "div",
371
373
  {
372
374
  key: 1,
@@ -377,16 +379,16 @@ const me = ({
377
379
  @slot icon - The icon to display on the fab button
378
380
  `),
379
381
  S(t.$slots, "icon", {}, () => [
380
- typeof t.icon == "string" ? (l(), p(v(n), {
382
+ typeof t.icon == "string" ? (a(), p(v(n), {
381
383
  key: 0,
382
384
  name: t.icon
383
- }, null, 8, ["name"])) : t.icon ? (l(), p(F(t.icon), { key: 1 })) : s("v-if", !0)
385
+ }, null, 8, ["name"])) : t.icon ? (a(), p(F(t.icon), { key: 1 })) : s("v-if", !0)
384
386
  ], !0)
385
387
  ],
386
388
  2
387
389
  /* CLASS */
388
390
  )) : s("v-if", !0),
389
- t.$slots.default ? (l(), b(
391
+ t.$slots.default ? (a(), b(
390
392
  "span",
391
393
  {
392
394
  key: 2,
@@ -401,7 +403,7 @@ const me = ({
401
403
  2
402
404
  /* CLASS */
403
405
  )) : s("v-if", !0),
404
- a.value ? (l(), b(
406
+ l.value ? (a(), b(
405
407
  "div",
406
408
  {
407
409
  key: 3,
@@ -412,16 +414,16 @@ const me = ({
412
414
  @slot right-icon - The icon to display on the right of the button
413
415
  `),
414
416
  S(t.$slots, "right-icon", {}, () => [
415
- typeof t.rightIcon == "string" ? (l(), p(v(n), {
417
+ typeof t.rightIcon == "string" ? (a(), p(v(n), {
416
418
  key: 0,
417
419
  name: t.rightIcon
418
- }, null, 8, ["name"])) : t.rightIcon ? (l(), p(F(t.rightIcon), { key: 1 })) : s("v-if", !0)
420
+ }, null, 8, ["name"])) : t.rightIcon ? (a(), p(F(t.rightIcon), { key: 1 })) : s("v-if", !0)
419
421
  ], !0)
420
422
  ],
421
423
  2
422
424
  /* CLASS */
423
425
  )) : s("v-if", !0),
424
- $.value ? (l(), p(v(y), {
426
+ $.value ? (a(), p(v(y), {
425
427
  key: 4,
426
428
  class: "m-btn-loader",
427
429
  size: "2em",
@@ -432,7 +434,7 @@ const me = ({
432
434
  /* FORWARDED */
433
435
  }, 8, ["disabled", "class", "type"]));
434
436
  }
435
- }), W = /* @__PURE__ */ R(Ie, [["__scopeId", "data-v-395e94fc"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
437
+ }), W = /* @__PURE__ */ R(Be, [["__scopeId", "data-v-395e94fc"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
436
438
  __proto__: null,
437
439
  default: W
438
440
  }, Symbol.toStringTag, { value: "Module" })), we = {
@@ -457,7 +459,7 @@ const me = ({
457
459
  $e
458
460
  ];
459
461
  function Ce(f, y) {
460
- return l(), b("svg", we, [...Me]);
462
+ return a(), b("svg", we, [...Me]);
461
463
  }
462
464
  const Te = { render: Ce };
463
465
  function j(f) {
@@ -477,28 +479,29 @@ const Ve = /* @__PURE__ */ N({
477
479
  success: { type: Boolean, default: !1 },
478
480
  warning: { type: Boolean, default: !1 },
479
481
  size: { default: "md" },
480
- color: { default: "primary" }
482
+ color: { default: "primary" },
483
+ block: { type: Boolean }
481
484
  },
482
485
  emits: ["update:model-value"],
483
486
  setup(f, { emit: y }) {
484
- const n = f, g = T(!1), h = T(), z = T(), r = T(), o = T(), B = y, m = u(
487
+ const n = f, g = T(!1), h = T(), z = T(), r = T(), o = T(), I = y, m = u(
485
488
  () => {
486
- var a;
487
- return (a = n.modelValue) == null ? void 0 : a.map((i) => ({
489
+ var l;
490
+ return (l = n.modelValue) == null ? void 0 : l.map((i) => ({
488
491
  tag: i,
489
492
  id: Math.random().toString(36).slice(2, 11)
490
493
  }));
491
494
  }
492
- ), w = (a) => {
495
+ ), w = (l) => {
493
496
  if (h.value) {
494
- r.value = void 0, a.preventDefault();
497
+ r.value = void 0, l.preventDefault();
495
498
  const c = h.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(j).filter(
496
499
  (d) => {
497
500
  var t, k;
498
501
  return !((k = (t = n.modelValue) == null ? void 0 : t.filter(j)) != null && k.some((U) => U === d));
499
502
  }
500
503
  );
501
- B(
504
+ I(
502
505
  "update:model-value",
503
506
  n.modelValue ? [...n.modelValue, ...c] : [...c]
504
507
  ), h.value = void 0;
@@ -530,38 +533,38 @@ const Ve = /* @__PURE__ */ N({
530
533
  }
531
534
  return "maz-border-border dark:maz-border-color-lighter";
532
535
  }), $ = () => {
533
- var a, i;
534
- o.value && clearTimeout(o.value), r.value ? (C(r.value), r.value = void 0) : (r.value = (i = (a = m.value) == null ? void 0 : a[m.value.length - 1]) == null ? void 0 : i.id, o.value = setTimeout(() => {
536
+ var l, i;
537
+ o.value && clearTimeout(o.value), r.value ? (C(r.value), r.value = void 0) : (r.value = (i = (l = m.value) == null ? void 0 : l[m.value.length - 1]) == null ? void 0 : i.id, o.value = setTimeout(() => {
535
538
  r.value = void 0;
536
539
  }, 2e3));
537
- }, C = (a) => {
540
+ }, C = (l) => {
538
541
  var c;
539
- const i = (c = m.value) == null ? void 0 : c.filter((d) => d.id !== a).map((d) => d.tag);
540
- B("update:model-value", i);
542
+ const i = (c = m.value) == null ? void 0 : c.filter((d) => d.id !== l).map((d) => d.tag);
543
+ I("update:model-value", i);
541
544
  };
542
- return (a, i) => (l(), b(
545
+ return (l, i) => (a(), b(
543
546
  "div",
544
547
  {
545
- class: M(["m-input-tags", [D.value, `--${a.color}`, `--${a.size}`, n.class]]),
546
- style: K(a.style),
548
+ class: M(["m-input-tags", [D.value, `--${l.color}`, `--${l.size}`, n.class, { "--block": l.block }]]),
549
+ style: K(l.style),
547
550
  onFocusCapture: i[3] || (i[3] = (c) => g.value = !0),
548
551
  onBlurCapture: i[4] || (i[4] = (c) => g.value = !1)
549
552
  },
550
553
  [
551
554
  P(de, { name: "maz-tags" }, {
552
555
  default: A(() => [
553
- (l(!0), b(
556
+ (a(!0), b(
554
557
  ce,
555
558
  null,
556
- fe(m.value, ({ tag: c, id: d }, t) => (l(), b("div", {
559
+ fe(m.value, ({ tag: c, id: d }, t) => (a(), b("div", {
557
560
  key: `tag-${t}`,
558
561
  class: "m-input-tags__wrapper"
559
562
  }, [
560
563
  P(W, {
561
564
  class: "m-input-tags__tag !maz-h-full",
562
- disabled: a.disabled,
563
- size: a.size,
564
- color: z.value === d || r.value === d ? "danger" : a.color,
565
+ disabled: l.disabled,
566
+ size: l.size,
567
+ color: z.value === d || r.value === d ? "danger" : l.color,
565
568
  "right-icon": v(Te),
566
569
  onClick: Q((k) => C(d), ["stop"]),
567
570
  onMouseenter: (k) => z.value = d,
@@ -591,27 +594,28 @@ const Ve = /* @__PURE__ */ N({
591
594
  key: "input-tags",
592
595
  modelValue: h.value,
593
596
  "onUpdate:modelValue": i[2] || (i[2] = (c) => h.value = c)
594
- }, a.$attrs, {
595
- placeholder: a.placeholder,
596
- label: a.label,
597
- "aria-label": a.label || a.placeholder,
598
- error: a.error,
599
- disabled: a.disabled,
600
- color: a.color,
601
- size: a.size,
597
+ }, l.$attrs, {
598
+ placeholder: l.placeholder,
599
+ label: l.label,
600
+ "aria-label": l.label || l.placeholder,
601
+ error: l.error,
602
+ disabled: l.disabled,
603
+ color: l.color,
604
+ block: l.block,
605
+ size: l.size,
602
606
  "no-border": "",
603
607
  class: "m-input-tags__input",
604
608
  onKeydown: [
605
609
  O(w, ["enter"]),
606
610
  O($, ["delete"])
607
611
  ]
608
- }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "size"])
612
+ }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "disabled", "color", "block", "size"])
609
613
  ],
610
614
  38
611
615
  /* CLASS, STYLE, NEED_HYDRATION */
612
616
  ));
613
617
  }
614
- }), De = /* @__PURE__ */ R(Ve, [["__scopeId", "data-v-9a4db42d"]]);
618
+ }), De = /* @__PURE__ */ R(Ve, [["__scopeId", "data-v-e2a6896e"]]);
615
619
  export {
616
620
  De as M,
617
621
  R as _