maz-ui 3.47.2-beta.3 → 3.47.2-beta.4

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 (48) hide show
  1. package/components/MazChecklist.d.ts +1 -4
  2. package/components/MazChecklist.mjs +1 -1
  3. package/components/MazPhoneNumberInput.mjs +1 -1
  4. package/components/MazSelect.mjs +1 -1
  5. package/components/MazTable.mjs +1 -1
  6. package/components/assets/MazPhoneNumberInput.css +1 -1
  7. package/components/assets/MazSelect.css +1 -1
  8. package/components/chunks/{MazBtn-BMYXMZuX.mjs → MazBtn-C_BULYqZ.mjs} +2 -2
  9. package/components/chunks/{MazBtn-2VKM1wZu.mjs → MazBtn-Sj-Pq0YV.mjs} +2 -2
  10. package/components/chunks/{MazBtn-DfqRZvbB.mjs → MazBtn-cUQ1Tykp.mjs} +2 -2
  11. package/components/chunks/{MazBtn-BijEMn4r.mjs → MazBtn-psosbsi3.mjs} +2 -2
  12. package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BBL0vgqe.mjs} +1 -1
  13. package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-BTl370Qq.mjs} +1 -1
  14. package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-DTU2jEkC.mjs} +1 -1
  15. package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-CQv-sXP1.mjs} +79 -79
  16. package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-BdQtfzuy.mjs} +1 -1
  17. package/components/chunks/{MazInput-DC3S-CVu.mjs → MazInput-eOtg1L9F.mjs} +2 -2
  18. package/components/chunks/{MazInput-NE6H-10w.mjs → MazInput-geBqeT4i.mjs} +2 -2
  19. package/components/chunks/{MazLoadingBar-DdjHRC7g.mjs → MazLoadingBar-DHcYPXlE.mjs} +1 -1
  20. package/components/chunks/{MazPhoneNumberInput-BbssOUzo.mjs → MazPhoneNumberInput-BTm8A0bL.mjs} +33 -32
  21. package/components/chunks/{MazSelect-CDV9Fx6m.mjs → MazSelect-Cnz3p3n2.mjs} +41 -40
  22. package/components/chunks/{MazSelect-BJ07NVXQ.mjs → MazSelect-DOiqBTNY.mjs} +57 -56
  23. package/components/chunks/{MazSpinner-CykRbNHD.mjs → MazSpinner-B1PXhYRx.mjs} +1 -1
  24. package/components/chunks/{MazSpinner-CEFbkZkM.mjs → MazSpinner-B7tPZpHw.mjs} +1 -1
  25. package/components/chunks/{MazSpinner-Dmkr_r9u.mjs → MazSpinner-DOSj2BnX.mjs} +1 -1
  26. package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-Dhg-s-9s.mjs} +1 -1
  27. package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BKdEx63E.mjs} +1 -1
  28. package/components/chunks/{MazTableCell-DILuUCTe.mjs → MazTableCell-CozcugiL.mjs} +1 -1
  29. package/components/chunks/{MazTableRow-D6H6-c8J.mjs → MazTableRow-bLFpjzu1.mjs} +1 -1
  30. package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-Qk239mu9.mjs} +1 -1
  31. package/modules/chunks/{MazBtn-R7z-Hxp-.cjs → MazBtn-D7el03Rl.cjs} +1 -1
  32. package/modules/chunks/{MazBtn-QVmZ90t5.mjs → MazBtn-D8uOirkn.mjs} +2 -2
  33. package/modules/chunks/{MazIcon-CKCoY05P.cjs → MazIcon-B8BoiF7R.cjs} +1 -1
  34. package/modules/chunks/{MazIcon-DJfEPmBG.mjs → MazIcon-C6zDSPgJ.mjs} +1 -1
  35. package/modules/chunks/{MazSpinner-DYT43E6e.cjs → MazSpinner-B-4tL9pK.cjs} +1 -1
  36. package/modules/chunks/{MazSpinner-C95OqwKl.mjs → MazSpinner-BvJydaeF.mjs} +1 -1
  37. package/modules/chunks/{index-CjsYU5rv.mjs → index-Bf4X7amE.mjs} +29 -23
  38. package/modules/chunks/index-F0B533E8.cjs +124 -0
  39. package/modules/index.cjs +1 -1
  40. package/modules/index.mjs +1 -1
  41. package/nuxt/index.json +1 -1
  42. package/package.json +1 -1
  43. package/types/components/MazChecklist.vue.d.ts +1 -4
  44. package/types/modules/composables/useFormValidator/types.d.ts +6 -6
  45. package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
  46. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
  47. package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
  48. package/modules/chunks/index-oVi9-l4o.cjs +0 -124
@@ -1,7 +1,7 @@
1
- import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as T, ref as b, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as g, createElementBlock as I, normalizeClass as q, normalizeStyle as j, createVNode as $, mergeProps as Me, unref as C, withModifiers as M, withCtx as ne, createElementVNode as N, Transition as Ee, createBlock as se, createCommentVNode as Q, renderSlot as G, Fragment as ie, renderList as Te, toDisplayString as ue } from "vue";
1
+ import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as T, ref as b, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as g, createElementBlock as A, normalizeClass as q, normalizeStyle as j, createVNode as $, mergeProps as Me, unref as I, withModifiers as M, withCtx as ne, createElementVNode as N, Transition as Ee, createBlock as se, createCommentVNode as Q, renderSlot as G, Fragment as ie, renderList as Te, toDisplayString as ue } from "vue";
2
2
  import { u as $e } from "./useInstanceUniqId-DW9jO1Sz.mjs";
3
- import re from "./MazInput-DC3S-CVu.mjs";
4
- import { _ as Ne } from "./MazTable-BJDPdIJB.mjs";
3
+ import re from "./MazInput-eOtg1L9F.mjs";
4
+ import { _ as Ne } from "./MazTable-BKdEx63E.mjs";
5
5
  import '../assets/MazSelect.css';const Oe = {
6
6
  removeAccents: !0,
7
7
  caseSensitive: !1,
@@ -180,14 +180,14 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
180
180
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
181
181
  setup(r, { expose: c, emit: s }) {
182
182
  Ce((e) => ({
183
- cb149e58: ve.value,
184
- "215ff493": fe.value,
185
- "64d6cfbb": me.value
183
+ fba4bd7a: ve.value,
184
+ "2796b77c": fe.value,
185
+ d1bcc1ac: me.value
186
186
  }));
187
- const t = r, n = s, i = T(() => import("./MazCheckbox-Db6sPUbV.mjs")), m = T(() => import("./magnifying-glass--nBiyXot.mjs")), V = T(() => import("./chevron-down-BkvtON3b.mjs")), x = T(() => import("./no-symbol-CIgKzsrB.mjs"));
187
+ const t = r, n = s, i = T(() => import("./MazCheckbox-BTl370Qq.mjs")), m = T(() => import("./magnifying-glass--nBiyXot.mjs")), V = T(() => import("./chevron-down-BkvtON3b.mjs")), x = T(() => import("./no-symbol-CIgKzsrB.mjs"));
188
188
  c({
189
189
  /** Method to open the option list */
190
- openList: A,
190
+ openList: w,
191
191
  /** Method to close the option list */
192
192
  closeList: k
193
193
  });
@@ -218,7 +218,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
218
218
  [t.optionInputValueKey]: e[t.optionInputValueKey]
219
219
  };
220
220
  }
221
- const L = f(() => {
221
+ const C = f(() => {
222
222
  var o;
223
223
  const e = [];
224
224
  if (!((o = t.options) != null && o.length))
@@ -234,7 +234,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
234
234
  }), E = f(
235
235
  () => {
236
236
  var e;
237
- return ((e = L.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
237
+ return ((e = C.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
238
238
  }
239
239
  );
240
240
  Le(() => {
@@ -257,27 +257,27 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
257
257
  return t.modelValue.map(
258
258
  (a) => {
259
259
  var l, u;
260
- return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === a)) == null ? void 0 : u[t.optionInputValueKey];
260
+ return (u = (l = C.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === a)) == null ? void 0 : u[t.optionInputValueKey];
261
261
  }
262
262
  ).join(", ");
263
- const e = (o = L.value) == null ? void 0 : o.find(
263
+ const e = (o = C.value) == null ? void 0 : o.find(
264
264
  (a) => a[t.optionValueKey] === t.modelValue
265
265
  );
266
266
  return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
267
267
  }), be = f(
268
268
  () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
269
- ), w = b(""), S = b("");
269
+ ), L = b(""), S = b("");
270
270
  function P(e, o) {
271
271
  return o && e && O(e).includes(O(o));
272
272
  }
273
273
  function te(e) {
274
274
  var o;
275
- return e ? (o = L.value) == null ? void 0 : o.filter((a) => {
275
+ return e ? (o = C.value) == null ? void 0 : o.filter((a) => {
276
276
  const l = a[t.optionLabelKey], u = a[t.optionValueKey], d = a[t.optionInputValueKey], v = t.searchThreshold;
277
277
  return P(l, e) || P(d, e) || P(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
278
- }) : L.value;
278
+ }) : C.value;
279
279
  }
280
- const y = f(() => te(w.value));
280
+ const y = f(() => te(L.value));
281
281
  async function k(e) {
282
282
  var a, l;
283
283
  if (!h.value)
@@ -289,7 +289,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
289
289
  return e == null ? void 0 : e.preventDefault();
290
290
  await W(), z.value = !1, p.value = 0, n("close", e);
291
291
  }
292
- async function A(e) {
292
+ async function w(e) {
293
293
  t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await F(), n("focus", e), n("open", z.value));
294
294
  }
295
295
  function oe() {
@@ -305,7 +305,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
305
305
  }
306
306
  function ze(e) {
307
307
  var o, a;
308
- w.value = e, (a = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || a.focus();
308
+ L.value = e, (a = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || a.focus();
309
309
  }
310
310
  function Ke(e) {
311
311
  var a;
@@ -319,7 +319,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
319
319
  }
320
320
  function Se(e) {
321
321
  const o = e.key;
322
- /^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), A(e), t.search ? ze(o) : Ke(o)) : le(e);
322
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), w(e), t.search ? ze(o) : Ke(o)) : le(e);
323
323
  }
324
324
  function le(e, o = !0) {
325
325
  const a = e.code, l = ["ArrowUp", "ArrowDown"].includes(a), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(a), d = a === "Escape" && h.value;
@@ -329,14 +329,15 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
329
329
  var u;
330
330
  e.preventDefault();
331
331
  const a = e.code;
332
- h.value || A(e);
332
+ h.value || w(e);
333
333
  const l = (u = y.value) == null ? void 0 : u.length;
334
334
  l && (typeof o == "number" ? o === l - 1 && a === "ArrowDown" ? p.value = 0 : o === 0 && a === "ArrowUp" ? p.value = l - 1 : p.value = a === "ArrowDown" ? o + 1 : o - 1 : p.value = a === "ArrowDown" ? 0 : l - 1, F(p.value));
335
335
  }
336
336
  function Ae(e, o) {
337
337
  var l, u, d;
338
- if (e.preventDefault(), !h.value)
339
- return A(e);
338
+ if (!h.value)
339
+ return;
340
+ e.preventDefault();
340
341
  const a = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
341
342
  K(a) || ae(a);
342
343
  }
@@ -363,7 +364,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
363
364
  }
364
365
  function ae(e, o = !0) {
365
366
  var d;
366
- o && !t.multiple && W(() => k()), w.value = "";
367
+ o && !t.multiple && W(() => k()), L.value = "";
367
368
  const a = (d = E.value) == null ? void 0 : d.some(
368
369
  (v) => v[t.optionValueKey] === e[t.optionValueKey]
369
370
  );
@@ -376,7 +377,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
376
377
  }
377
378
  return (e, o) => {
378
379
  var a;
379
- return we((g(), I(
380
+ return we((g(), A(
380
381
  "div",
381
382
  {
382
383
  ref_key: "mazSelectElement",
@@ -390,7 +391,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
390
391
  },
391
392
  [
392
393
  $(re, Me({
393
- id: C(ye),
394
+ id: I(ye),
394
395
  ref_key: "mazInputComponent",
395
396
  ref: D,
396
397
  class: "m-select-input"
@@ -403,9 +404,9 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
403
404
  block: "",
404
405
  autocomplete: e.autocomplete,
405
406
  disabled: e.disabled,
406
- onFocus: M(A, ["prevent", "stop"]),
407
+ onFocus: M(w, ["prevent", "stop"]),
407
408
  onBlur: M(k, ["prevent", "stop"]),
408
- onClick: M(A, ["prevent", "stop"]),
409
+ onClick: M(w, ["prevent", "stop"]),
409
410
  onChange: o[0] || (o[0] = (l) => n("change", l)),
410
411
  onInput: o[1] || (o[1] = (l) => n("input", l)),
411
412
  onKeydown: Se
@@ -418,7 +419,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
418
419
  "aria-label": `${h.value ? "collapse" : "expand"} list of options`,
419
420
  onClick: M(Ve, ["stop"])
420
421
  }, [
421
- $(C(V), { class: "m-select-chevron maz-text-xl" })
422
+ $(I(V), { class: "m-select-chevron maz-text-xl" })
422
423
  ], 8, Ue)
423
424
  ]),
424
425
  _: 1
@@ -426,7 +427,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
426
427
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
427
428
  $(Ee, { name: be.value }, {
428
429
  default: ne(() => [
429
- h.value ? (g(), I(
430
+ h.value ? (g(), A(
430
431
  "div",
431
432
  {
432
433
  key: 0,
@@ -450,9 +451,9 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
450
451
  key: 0,
451
452
  ref_key: "searchInputComponent",
452
453
  ref: _,
453
- modelValue: w.value,
454
+ modelValue: L.value,
454
455
  "onUpdate:modelValue": [
455
- o[2] || (o[2] = (l) => w.value = l),
456
+ o[2] || (o[2] = (l) => L.value = l),
456
457
  o[4] || (o[4] = (l) => p.value = 0)
457
458
  ],
458
459
  size: "sm",
@@ -463,18 +464,18 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
463
464
  autocomplete: "off",
464
465
  tabindex: "-1",
465
466
  class: "m-select-list__search-input maz-flex-none",
466
- "left-icon": C(m),
467
+ "left-icon": I(m),
467
468
  onKeydown: o[3] || (o[3] = (l) => le(l, !1))
468
469
  }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : Q("v-if", !0),
469
470
  !y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
470
471
  N("span", We, [
471
- $(C(x), { class: "maz-h-6 maz-w-6 maz-text-normal" })
472
+ $(I(x), { class: "maz-h-6 maz-w-6 maz-text-normal" })
472
473
  ])
473
- ], !0) : (g(), I("div", qe, [
474
- (g(!0), I(
474
+ ], !0) : (g(), A("div", qe, [
475
+ (g(!0), A(
475
476
  ie,
476
477
  null,
477
- Te(y.value, (l, u) => (g(), I(
478
+ Te(y.value, (l, u) => (g(), A(
478
479
  ie,
479
480
  { key: u },
480
481
  [
@@ -489,7 +490,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
489
490
  1
490
491
  /* TEXT */
491
492
  )
492
- ], !0) : (g(), I("button", {
493
+ ], !0) : (g(), A("button", {
493
494
  key: 1,
494
495
  tabindex: "-1",
495
496
  type: "button",
@@ -503,7 +504,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
503
504
  style: j(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
504
505
  onClick: M((d) => ae(l), ["prevent", "stop"])
505
506
  }, [
506
- e.multiple ? (g(), se(C(i), {
507
+ e.multiple ? (g(), se(I(i), {
507
508
  key: 0,
508
509
  tabindex: "-1",
509
510
  "model-value": H(l),
@@ -543,14 +544,14 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
543
544
  6
544
545
  /* CLASS, STYLE */
545
546
  )), [
546
- [C(Pe), {
547
+ [I(Pe), {
547
548
  exclude: (a = e.excludeSelectors) != null && a.length ? e.excludeSelectors : [],
548
549
  handler: k
549
550
  }]
550
551
  ]);
551
552
  };
552
553
  }
553
- }), Ye = /* @__PURE__ */ Ne(Ge, [["__scopeId", "data-v-e35a36a6"]]);
554
+ }), Ye = /* @__PURE__ */ Ne(Ge, [["__scopeId", "data-v-3b483b12"]]);
554
555
  export {
555
556
  Ye as default
556
557
  };
@@ -1,4 +1,4 @@
1
- import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as q, normalizeStyle as x, createElementVNode as E, renderSlot as U, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as F, withCtx as _, createVNode as H, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
1
+ import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as H, normalizeStyle as x, createElementVNode as E, renderSlot as q, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as P, withCtx as _, createVNode as F, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
2
2
  import '../assets/MazSelect.css';function ze({
3
3
  componentName: u,
4
4
  providedId: r
@@ -117,8 +117,8 @@ function ke(u, r, l) {
117
117
  if (s && s.length > 0) {
118
118
  for (const $ of s)
119
119
  if (!d && u.target instanceof HTMLElement) {
120
- const W = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
121
- d = u.target.getAttribute("id") === W;
120
+ const U = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
121
+ d = u.target.getAttribute("id") === U;
122
122
  }
123
123
  }
124
124
  !r.contains(u.target) && !d && (t == null || t());
@@ -204,7 +204,7 @@ const Xe = {
204
204
  },
205
205
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
206
206
  setup(u, { emit: r }) {
207
- const l = u, t = r, s = A(() => import("./MazBtn-BMYXMZuX.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), W = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
207
+ const l = u, t = r, s = A(() => import("./MazBtn-C_BULYqZ.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), U = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
208
208
  componentName: "MazInput",
209
209
  providedId: l.id
210
210
  });
@@ -240,7 +240,7 @@ const Xe = {
240
240
  }
241
241
  return "--default-border";
242
242
  }
243
- }), j = Ee(), Z = p(() => {
243
+ }), W = Ee(), Z = p(() => {
244
244
  const { required: o, placeholder: h } = l;
245
245
  if (h)
246
246
  return o ? `${h} *` : h;
@@ -258,14 +258,14 @@ const Xe = {
258
258
  const L = p({
259
259
  get: () => l.modelValue,
260
260
  set: (o) => D(o)
261
- }), Q = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
261
+ }), j = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
262
262
  function Y() {
263
- return !!j["right-icon"] || G.value || !!j["valid-button"] || l.validButton || !!l.rightIcon;
263
+ return !!W["right-icon"] || G.value || !!W["valid-button"] || l.validButton || !!l.rightIcon;
264
264
  }
265
265
  function B() {
266
- return !!j["left-icon"] || !!l.leftIcon;
266
+ return !!W["left-icon"] || !!l.leftIcon;
267
267
  }
268
- function R(o) {
268
+ function Q(o) {
269
269
  t("focus", o), f.value = !0;
270
270
  }
271
271
  function le(o) {
@@ -280,10 +280,10 @@ const Xe = {
280
280
  return (o, h) => (m(), k(
281
281
  "div",
282
282
  {
283
- class: q(["m-input", [
283
+ class: H(["m-input", [
284
284
  {
285
285
  "--is-focused": f.value || o.borderActive,
286
- "--should-up": Q.value,
286
+ "--should-up": j.value,
287
287
  "--has-label": X.value,
288
288
  "--is-disabled": o.disabled,
289
289
  "--is-readonly": o.readonly,
@@ -301,7 +301,7 @@ const Xe = {
301
301
  E(
302
302
  "div",
303
303
  {
304
- class: q(["m-input-wrapper", [
304
+ class: H(["m-input-wrapper", [
305
305
  o.inputClasses,
306
306
  I.value,
307
307
  o.roundedSize ? `--rounded-${o.roundedSize}` : { "maz-rounded": !o.noRadius }
@@ -309,7 +309,7 @@ const Xe = {
309
309
  },
310
310
  [
311
311
  B() ? (m(), k("div", Xe, [
312
- o.$slots["left-icon"] || o.leftIcon ? U(o.$slots, "left-icon", { key: 0 }, () => [
312
+ o.$slots["left-icon"] || o.leftIcon ? q(o.$slots, "left-icon", { key: 0 }, () => [
313
313
  typeof o.leftIcon == "string" ? (m(), K(b(d), {
314
314
  key: 0,
315
315
  name: o.leftIcon,
@@ -338,7 +338,7 @@ const Xe = {
338
338
  class: "m-input-input"
339
339
  }, Oe({
340
340
  blur: le,
341
- focus: R,
341
+ focus: Q,
342
342
  change: ae,
343
343
  input: M
344
344
  }, !0), {
@@ -350,7 +350,7 @@ const Xe = {
350
350
  "span",
351
351
  {
352
352
  key: 0,
353
- class: q(["m-input-label", [
353
+ class: H(["m-input-label", [
354
354
  {
355
355
  "maz-text-danger-600": o.error,
356
356
  "maz-text-success-600": o.success,
@@ -371,7 +371,7 @@ const Xe = {
371
371
  )) : g("v-if", !0)
372
372
  ]),
373
373
  Y() ? (m(), k("div", et, [
374
- o.$slots["right-icon"] || o.rightIcon ? U(o.$slots, "right-icon", { key: 0 }, () => [
374
+ o.$slots["right-icon"] || o.rightIcon ? q(o.$slots, "right-icon", { key: 0 }, () => [
375
375
  typeof o.rightIcon == "string" ? (m(), K(b(d), {
376
376
  key: 0,
377
377
  name: o.rightIcon,
@@ -386,7 +386,7 @@ const Xe = {
386
386
  color: "transparent",
387
387
  tabindex: "-1",
388
388
  size: "mini",
389
- onClick: h[2] || (h[2] = F((T) => z.value = !z.value, ["stop"]))
389
+ onClick: h[2] || (h[2] = P((T) => z.value = !z.value, ["stop"]))
390
390
  }, {
391
391
  default: _(() => [
392
392
  z.value ? (m(), K(b(y), {
@@ -400,8 +400,8 @@ const Xe = {
400
400
  _: 1
401
401
  /* STABLE */
402
402
  })) : g("v-if", !0),
403
- o.$slots["valid-button"] || o.validButton ? U(o.$slots, "valid-button", { key: 2 }, () => [
404
- H(b(s), {
403
+ o.$slots["valid-button"] || o.validButton ? q(o.$slots, "valid-button", { key: 2 }, () => [
404
+ F(b(s), {
405
405
  color: "transparent",
406
406
  disabled: o.disabled,
407
407
  tabindex: "-1",
@@ -411,7 +411,7 @@ const Xe = {
411
411
  type: "submit"
412
412
  }, {
413
413
  default: _(() => [
414
- H(b(W), { class: "maz-text-2xl maz-text-normal" })
414
+ F(b(U), { class: "maz-text-2xl maz-text-normal" })
415
415
  ]),
416
416
  _: 1
417
417
  /* STABLE */
@@ -465,14 +465,14 @@ const Xe = {
465
465
  emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
466
466
  setup(u, { expose: r, emit: l }) {
467
467
  Pe((e) => ({
468
- cb149e58: oe.value,
469
- "215ff493": te.value,
470
- "64d6cfbb": G.value
468
+ fba4bd7a: oe.value,
469
+ "2796b77c": te.value,
470
+ d1bcc1ac: G.value
471
471
  }));
472
- const t = u, s = l, d = A(() => import("./MazCheckbox-DMogZVHl.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), W = A(() => import("./no-symbol-CIgKzsrB.mjs"));
472
+ const t = u, s = l, d = A(() => import("./MazCheckbox-BBL0vgqe.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), U = A(() => import("./no-symbol-CIgKzsrB.mjs"));
473
473
  r({
474
474
  /** Method to open the option list */
475
- openList: P,
475
+ openList: R,
476
476
  /** Method to close the option list */
477
477
  closeList: N
478
478
  });
@@ -484,7 +484,7 @@ const Xe = {
484
484
  () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
485
485
  ), oe = p(
486
486
  () => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
487
- ), I = p(() => z.value || t.open), j = ze({
487
+ ), I = p(() => z.value || t.open), W = ze({
488
488
  componentName: "MazSelect",
489
489
  providedId: t.id
490
490
  });
@@ -526,11 +526,11 @@ const Xe = {
526
526
  var e;
527
527
  (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
528
528
  });
529
- const L = V(), Q = V(), X = V(), Y = V();
529
+ const L = V(), j = V(), X = V(), Y = V();
530
530
  function B(e) {
531
531
  return e == null;
532
532
  }
533
- function R(e) {
533
+ function Q(e) {
534
534
  var i;
535
535
  return (((i = D.value) == null ? void 0 : i.some(
536
536
  (n) => n[t.optionValueKey] === e[t.optionValueKey]
@@ -574,16 +574,16 @@ const Xe = {
574
574
  return e == null ? void 0 : e.preventDefault();
575
575
  await se(), z.value = !1, f.value = 0, s("close", e);
576
576
  }
577
- async function P(e) {
577
+ async function R(e) {
578
578
  t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await ne(), s("focus", e), s("open", z.value));
579
579
  }
580
580
  function ce() {
581
581
  var e, a;
582
- (a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
582
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
583
583
  }
584
584
  function Se() {
585
585
  var e, a;
586
- (a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
586
+ (a = ((e = j.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
587
587
  }
588
588
  function Ke(e) {
589
589
  z.value ? N(e) : ce();
@@ -604,7 +604,7 @@ const Xe = {
604
604
  }
605
605
  function Be(e) {
606
606
  const a = e.key;
607
- /^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), P(e), t.search ? Ae(a) : $e(a)) : pe(e);
607
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), R(e), t.search ? Ae(a) : $e(a)) : pe(e);
608
608
  }
609
609
  function pe(e, a = !0) {
610
610
  const i = e.code, n = ["ArrowUp", "ArrowDown"].includes(i), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(i), v = i === "Escape" && I.value;
@@ -614,14 +614,15 @@ const Xe = {
614
614
  var c;
615
615
  e.preventDefault();
616
616
  const i = e.code;
617
- I.value || P(e);
617
+ I.value || R(e);
618
618
  const n = (c = S.value) == null ? void 0 : c.length;
619
619
  n && (typeof a == "number" ? a === n - 1 && i === "ArrowDown" ? f.value = 0 : a === 0 && i === "ArrowUp" ? f.value = n - 1 : f.value = i === "ArrowDown" ? a + 1 : a - 1 : f.value = i === "ArrowDown" ? 0 : n - 1, ne(f.value));
620
620
  }
621
621
  function Le(e, a) {
622
622
  var n, c, v;
623
- if (e.preventDefault(), !I.value)
624
- return P(e);
623
+ if (!I.value)
624
+ return;
625
+ e.preventDefault();
625
626
  const i = a ? ((n = S.value) == null ? void 0 : n[a]) ?? ((c = S.value) == null ? void 0 : c[0]) : (v = S.value) == null ? void 0 : v[0];
626
627
  B(i) || fe(i);
627
628
  }
@@ -666,7 +667,7 @@ const Xe = {
666
667
  {
667
668
  ref_key: "mazSelectElement",
668
669
  ref: L,
669
- class: q(["m-select", [
670
+ class: H(["m-select", [
670
671
  { "--is-open": I.value, "--disabled": e.disabled, "--block": e.block },
671
672
  t.class,
672
673
  `--${e.size}`
@@ -674,10 +675,10 @@ const Xe = {
674
675
  style: x(e.style)
675
676
  },
676
677
  [
677
- H(ye, ge({
678
- id: b(j),
678
+ F(ye, ge({
679
+ id: b(W),
679
680
  ref_key: "mazInputComponent",
680
- ref: Q,
681
+ ref: j,
681
682
  class: "m-select-input"
682
683
  }, e.$attrs, {
683
684
  required: e.required,
@@ -688,9 +689,9 @@ const Xe = {
688
689
  block: "",
689
690
  autocomplete: e.autocomplete,
690
691
  disabled: e.disabled,
691
- onFocus: F(P, ["prevent", "stop"]),
692
- onBlur: F(N, ["prevent", "stop"]),
693
- onClick: F(P, ["prevent", "stop"]),
692
+ onFocus: P(R, ["prevent", "stop"]),
693
+ onBlur: P(N, ["prevent", "stop"]),
694
+ onClick: P(R, ["prevent", "stop"]),
694
695
  onChange: a[0] || (a[0] = (n) => s("change", n)),
695
696
  onInput: a[1] || (a[1] = (n) => s("input", n)),
696
697
  onKeydown: Be
@@ -701,15 +702,15 @@ const Xe = {
701
702
  type: "button",
702
703
  class: "m-select-input__toggle-button maz-custom",
703
704
  "aria-label": `${I.value ? "collapse" : "expand"} list of options`,
704
- onClick: F(Ke, ["stop"])
705
+ onClick: P(Ke, ["stop"])
705
706
  }, [
706
- H(b($), { class: "m-select-chevron maz-text-xl" })
707
+ F(b($), { class: "m-select-chevron maz-text-xl" })
707
708
  ], 8, ot)
708
709
  ]),
709
710
  _: 1
710
711
  /* STABLE */
711
712
  }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
712
- H(He, { name: ae.value }, {
713
+ F(He, { name: ae.value }, {
713
714
  default: _(() => [
714
715
  I.value ? (m(), k(
715
716
  "div",
@@ -717,7 +718,7 @@ const Xe = {
717
718
  key: 0,
718
719
  ref_key: "optionsListElement",
719
720
  ref: Y,
720
- class: q(["m-select-list", {
721
+ class: H(["m-select-list", {
721
722
  "--top": e.listPosition.includes("top"),
722
723
  "--left": e.listPosition.includes("left"),
723
724
  "--right": e.listPosition.includes("right"),
@@ -751,9 +752,9 @@ const Xe = {
751
752
  "left-icon": b(y),
752
753
  onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
753
754
  }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : g("v-if", !0),
754
- !S.value || S.value.length <= 0 ? U(e.$slots, "no-results", { key: 1 }, () => [
755
+ !S.value || S.value.length <= 0 ? q(e.$slots, "no-results", { key: 1 }, () => [
755
756
  E("span", lt, [
756
- H(b(W), { class: "maz-h-6 maz-w-6 maz-text-normal" })
757
+ F(b(U), { class: "maz-h-6 maz-w-6 maz-text-normal" })
757
758
  ])
758
759
  ], !0) : (m(), k("div", at, [
759
760
  (m(!0), k(
@@ -763,7 +764,7 @@ const Xe = {
763
764
  ve,
764
765
  { key: c },
765
766
  [
766
- n.label && n.isOptGroup ? U(e.$slots, "optgroup", {
767
+ n.label && n.isOptGroup ? q(e.$slots, "optgroup", {
767
768
  key: 0,
768
769
  label: n.label
769
770
  }, () => [
@@ -778,26 +779,26 @@ const Xe = {
778
779
  key: 1,
779
780
  tabindex: "-1",
780
781
  type: "button",
781
- class: q(["m-select-list-item maz-custom maz-flex-none", [
782
+ class: H(["m-select-list-item maz-custom maz-flex-none", [
782
783
  {
783
784
  "--is-keyboard-selected": f.value === c,
784
- "--is-selected": R(n),
785
+ "--is-selected": Q(n),
785
786
  "--is-none-value": B(n[e.optionValueKey])
786
787
  }
787
788
  ]]),
788
789
  style: x(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
789
- onClick: F((v) => fe(n), ["prevent", "stop"])
790
+ onClick: P((v) => fe(n), ["prevent", "stop"])
790
791
  }, [
791
792
  e.multiple ? (m(), K(b(d), {
792
793
  key: 0,
793
794
  tabindex: "-1",
794
- "model-value": R(n),
795
+ "model-value": Q(n),
795
796
  size: "sm",
796
797
  color: e.color
797
798
  }, null, 8, ["model-value", "color"])) : g("v-if", !0),
798
- U(e.$slots, "default", {
799
+ q(e.$slots, "default", {
799
800
  option: n,
800
- isSelected: R(n)
801
+ isSelected: Q(n)
801
802
  }, () => [
802
803
  E(
803
804
  "span",
@@ -835,7 +836,7 @@ const Xe = {
835
836
  ]);
836
837
  };
837
838
  }
838
- }), rt = /* @__PURE__ */ we(st, [["__scopeId", "data-v-e35a36a6"]]);
839
+ }), rt = /* @__PURE__ */ we(st, [["__scopeId", "data-v-3b483b12"]]);
839
840
  export {
840
841
  rt as M,
841
842
  we as _,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazSelect-BJ07NVXQ.mjs";
2
+ import { _ as a } from "./MazSelect-DOiqBTNY.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazPhoneNumberInput-BbssOUzo.mjs";
2
+ import { _ as a } from "./MazPhoneNumberInput-BTm8A0bL.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazChecklist-C95Y4Hb-.mjs";
2
+ import { _ as a } from "./MazChecklist-CQv-sXP1.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
2
- import { _ as a } from "./MazTable-BJDPdIJB.mjs";
2
+ import { _ as a } from "./MazTable-BKdEx63E.mjs";
3
3
  import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -68,7 +68,7 @@ import '../assets/MazTable.css';const Ee = {
68
68
  d3635954: a.tableLayout,
69
69
  "1dde4b1b": a.captionSide
70
70
  }));
71
- const a = N, $ = D, F = f(() => import("./arrow-up-DjSlktWl.mjs")), J = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), W = f(() => import("./chevron-left-BqVOLRdC.mjs")), se = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-BijEMn4r.mjs")), X = f(() => import("./MazCheckbox-Db6sPUbV.mjs")), ne = f(() => import("./MazInput-DC3S-CVu.mjs")), ue = f(() => import("./MazLoadingBar-DdjHRC7g.mjs")), Z = f(() => import("./MazSelect-CDV9Fx6m.mjs")), L = f(() => import("./MazTableCell-DILuUCTe.mjs")), K = f(() => import("./MazTableRow-D6H6-c8J.mjs")), H = f(() => import("./MazTableTitle-Ch-nyY1E.mjs")), re = {
71
+ const a = N, $ = D, F = f(() => import("./arrow-up-DjSlktWl.mjs")), J = f(() => import("./chevron-double-left-D4-NpyrF.mjs")), W = f(() => import("./chevron-left-BqVOLRdC.mjs")), se = f(() => import("./magnifying-glass--nBiyXot.mjs")), w = f(() => import("./MazBtn-psosbsi3.mjs")), X = f(() => import("./MazCheckbox-BTl370Qq.mjs")), ne = f(() => import("./MazInput-eOtg1L9F.mjs")), ue = f(() => import("./MazLoadingBar-DHcYPXlE.mjs")), Z = f(() => import("./MazSelect-Cnz3p3n2.mjs")), L = f(() => import("./MazTableCell-CozcugiL.mjs")), K = f(() => import("./MazTableRow-bLFpjzu1.mjs")), H = f(() => import("./MazTableTitle-Qk239mu9.mjs")), re = {
72
72
  noResults: "No results",
73
73
  actionHeader: "Actions",
74
74
  searchByAllLabel: "All",