maz-ui 3.36.2 → 3.36.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/MazTable.css";
2
- import { openBlock as s, createElementBlock as h, createElementVNode as I, computed as d, defineComponent as oe, defineAsyncComponent as Z, ref as K, getCurrentInstance as Le, onMounted as Ye, useSlots as Pe, normalizeClass as V, normalizeStyle as se, createCommentVNode as i, renderSlot as k, createBlock as $, unref as f, resolveDynamicComponent as ce, withDirectives as Ze, mergeProps as Te, toHandlers as Je, vModelDynamic as Xe, createTextVNode as de, toDisplayString as x, withModifiers as ve, withCtx as T, createVNode as C, inject as xe, useCssVars as Ve, onBeforeMount as Oe, Transition as eo, Fragment as he, renderList as we, nextTick as Be, useAttrs as oo, pushScopeId as He, popScopeId as qe, toRefs as lo, provide as to, watch as ke } from "vue";
2
+ import { openBlock as s, createElementBlock as h, createElementVNode as I, computed as d, defineComponent as oe, defineAsyncComponent as Z, ref as K, getCurrentInstance as Le, onMounted as Ye, useSlots as Pe, normalizeClass as V, normalizeStyle as se, createCommentVNode as i, renderSlot as k, createBlock as w, unref as f, resolveDynamicComponent as ce, withDirectives as Ze, mergeProps as Te, toHandlers as Je, vModelDynamic as Xe, createTextVNode as de, toDisplayString as x, withModifiers as ve, withCtx as T, createVNode as C, inject as xe, useCssVars as Ve, onBeforeMount as Oe, Transition as eo, Fragment as he, renderList as $e, nextTick as Be, useAttrs as oo, pushScopeId as He, popScopeId as qe, toRefs as lo, provide as to, watch as ke } from "vue";
3
3
  const ao = {
4
4
  xmlns: "http://www.w3.org/2000/svg",
5
5
  width: "1em",
@@ -76,7 +76,7 @@ const fo = { render: po }, mo = {
76
76
  function ho(v, y) {
77
77
  return s(), h("svg", mo, [...bo]);
78
78
  }
79
- const je = { render: ho }, yo = {
79
+ const De = { render: ho }, yo = {
80
80
  xmlns: "http://www.w3.org/2000/svg",
81
81
  width: "1em",
82
82
  height: "1em",
@@ -101,7 +101,7 @@ function ko(v, y) {
101
101
  return s(), h("svg", yo, [...zo]);
102
102
  }
103
103
  const Ee = { render: ko };
104
- function $o(v, y) {
104
+ function wo(v, y) {
105
105
  let a;
106
106
  return function(...c) {
107
107
  clearTimeout(a), a = setTimeout(() => {
@@ -113,7 +113,7 @@ const Ne = ({
113
113
  componentName: v,
114
114
  instance: y,
115
115
  providedId: a
116
- }) => d(() => a ?? `${v}-${y == null ? void 0 : y.uid}`), wo = {
116
+ }) => d(() => a ?? `${v}-${y == null ? void 0 : y.uid}`), $o = {
117
117
  key: 0,
118
118
  class: "m-input-wrapper-left"
119
119
  }, Vo = { class: "m-input-wrapper-input" }, Io = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], So = { key: 0 }, Bo = {
@@ -156,7 +156,7 @@ const Ne = ({
156
156
  },
157
157
  emits: ["update:model-value", "focus", "blur", "click", "change"],
158
158
  setup(v, { emit: y }) {
159
- const a = Z(() => Promise.resolve().then(() => No)), c = Z(() => import("./MazIcon-BHpbiW6o.mjs")), M = Z(() => import("./eye-slash-tjfxO0LK.mjs")), S = Z(() => import("./eye-DqO_Jx56.mjs")), w = Z(() => Promise.resolve().then(() => Zo)), o = v, N = y, _ = K(!1), z = K(!1), E = K(), B = Le(), J = Ne({
159
+ const a = Z(() => Promise.resolve().then(() => No)), c = Z(() => import("./MazIcon-B777ztdl.mjs")), M = Z(() => import("./eye-slash-tjfxO0LK.mjs")), S = Z(() => import("./eye-DqO_Jx56.mjs")), $ = Z(() => Promise.resolve().then(() => Zo)), o = v, N = y, _ = K(!1), z = K(!1), E = K(), B = Le(), J = Ne({
160
160
  componentName: "MazInput",
161
161
  instance: B,
162
162
  providedId: o.id
@@ -197,7 +197,7 @@ const Ne = ({
197
197
  const { required: t, placeholder: F } = o;
198
198
  if (F)
199
199
  return t ? `${F} *` : F;
200
- }), X = d(() => U.value !== void 0 && U.value !== ""), te = $o(
200
+ }), X = d(() => U.value !== void 0 && U.value !== ""), te = wo(
201
201
  (t) => {
202
202
  U.value = t;
203
203
  },
@@ -255,16 +255,16 @@ const Ne = ({
255
255
  ]])
256
256
  },
257
257
  [
258
- ne() ? (s(), h("div", wo, [
258
+ ne() ? (s(), h("div", $o, [
259
259
  i(`
260
260
  @slot left-icon - The icon to display on the left of the input
261
261
  `),
262
262
  t.$slots["left-icon"] || t.leftIcon ? k(t.$slots, "left-icon", { key: 0 }, () => [
263
- typeof t.leftIcon == "string" ? (s(), $(f(c), {
263
+ typeof t.leftIcon == "string" ? (s(), w(f(c), {
264
264
  key: 0,
265
265
  name: t.leftIcon,
266
266
  class: "maz-text-xl maz-text-muted"
267
- }, null, 8, ["name"])) : t.leftIcon ? (s(), $(ce(t.leftIcon), {
267
+ }, null, 8, ["name"])) : t.leftIcon ? (s(), w(ce(t.leftIcon), {
268
268
  key: 1,
269
269
  class: "maz-text-xl maz-text-muted"
270
270
  })) : i("v-if", !0)
@@ -275,7 +275,7 @@ const Ne = ({
275
275
  id: f(J),
276
276
  ref_key: "input",
277
277
  ref: E,
278
- "onUpdate:modelValue": F[0] || (F[0] = (D) => U.value = D),
278
+ "onUpdate:modelValue": F[0] || (F[0] = (j) => U.value = j),
279
279
  type: m.value,
280
280
  name: t.name
281
281
  }, t.$attrs, {
@@ -291,7 +291,7 @@ const Ne = ({
291
291
  focus: pe,
292
292
  change: ee
293
293
  }, !0), {
294
- onClick: F[1] || (F[1] = (D) => t.$emit("click", D))
294
+ onClick: F[1] || (F[1] = (j) => t.$emit("click", j))
295
295
  }), null, 16, Io), [
296
296
  [Xe, U.value]
297
297
  ]),
@@ -325,27 +325,27 @@ const Ne = ({
325
325
  @slot right-icon - The icon to display on the right of the input
326
326
  `),
327
327
  t.$slots["right-icon"] || t.rightIcon ? k(t.$slots, "right-icon", { key: 0 }, () => [
328
- typeof t.rightIcon == "string" ? (s(), $(f(c), {
328
+ typeof t.rightIcon == "string" ? (s(), w(f(c), {
329
329
  key: 0,
330
330
  name: t.rightIcon,
331
331
  class: "maz-text-xl maz-text-muted"
332
- }, null, 8, ["name"])) : t.rightIcon ? (s(), $(ce(t.rightIcon), {
332
+ }, null, 8, ["name"])) : t.rightIcon ? (s(), w(ce(t.rightIcon), {
333
333
  key: 1,
334
334
  class: "maz-text-xl maz-text-muted"
335
335
  })) : i("v-if", !0)
336
336
  ], !0) : i("v-if", !0),
337
- H.value ? (s(), $(f(a), {
337
+ H.value ? (s(), w(f(a), {
338
338
  key: 1,
339
339
  color: "transparent",
340
340
  tabindex: "-1",
341
341
  size: "mini",
342
- onClick: F[2] || (F[2] = ve((D) => _.value = !_.value, ["stop"]))
342
+ onClick: F[2] || (F[2] = ve((j) => _.value = !_.value, ["stop"]))
343
343
  }, {
344
344
  default: T(() => [
345
- _.value ? (s(), $(f(M), {
345
+ _.value ? (s(), w(f(M), {
346
346
  key: 0,
347
347
  class: "maz-text-xl maz-text-muted"
348
- })) : (s(), $(f(S), {
348
+ })) : (s(), w(f(S), {
349
349
  key: 1,
350
350
  class: "maz-text-xl maz-text-muted"
351
351
  }))
@@ -367,7 +367,7 @@ const Ne = ({
367
367
  type: "submit"
368
368
  }, {
369
369
  default: T(() => [
370
- C(f(w), { class: "maz-text-2xl maz-text-normal" })
370
+ C(f($), { class: "maz-text-2xl maz-text-normal" })
371
371
  ]),
372
372
  _: 1
373
373
  /* STABLE */
@@ -391,7 +391,7 @@ const Ne = ({
391
391
  }, Ke = /* @__PURE__ */ le(Co, [["__scopeId", "data-v-b6c84f7a"]]);
392
392
  K("system");
393
393
  K("system");
394
- function De(v, y) {
394
+ function je(v, y) {
395
395
  const a = xe(v, y);
396
396
  if (!a)
397
397
  throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${v}`);
@@ -437,7 +437,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
437
437
  "014b4cd9": B.value,
438
438
  56278181: J.value
439
439
  }));
440
- const a = Z(() => Promise.resolve().then(() => el)), c = Z(() => Promise.resolve().then(() => ro)), M = Z(() => import("./chevron-down-CzMH-gFW.mjs")), S = Z(() => import("./no-symbol-QAqP9IlR.mjs")), w = Le(), o = v, N = y, _ = K(!1), z = K(), E = d(
440
+ const a = Z(() => Promise.resolve().then(() => el)), c = Z(() => Promise.resolve().then(() => ro)), M = Z(() => import("./chevron-down-CzMH-gFW.mjs")), S = Z(() => import("./no-symbol-QAqP9IlR.mjs")), $ = Le(), o = v, N = y, _ = K(!1), z = K(), E = d(
441
441
  () => ["black", "transparent", "white"].includes(o.color)
442
442
  ), B = d(
443
443
  () => E.value ? "var(--maz-color-black)" : `var(--maz-color-${o.color}-800)`
@@ -447,7 +447,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
447
447
  () => E.value ? "var(--maz-color-muted)" : `var(--maz-color-${o.color}-200)`
448
448
  ), m = d(() => _.value || o.open), L = Ne({
449
449
  componentName: "MazSelect",
450
- instance: w,
450
+ instance: $,
451
451
  providedId: o.id
452
452
  });
453
453
  function q(e) {
@@ -514,14 +514,14 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
514
514
  function F(e) {
515
515
  return e.normalize("NFD").replaceAll(/[\u0300-\u036F]/g, "").replaceAll(/[^\dA-Za-z\u0400-\u04FF]/g, "");
516
516
  }
517
- const D = (e, n) => n && e && F(e.toString().toLocaleLowerCase().trim()).includes(
517
+ const j = (e, n) => n && e && F(e.toString().toLocaleLowerCase().trim()).includes(
518
518
  F(n.toLocaleLowerCase().trim())
519
519
  );
520
520
  function ye(e) {
521
521
  var n;
522
522
  return e ? (n = X.value) == null ? void 0 : n.filter((r) => {
523
523
  const p = r[o.optionLabelKey], P = r[o.optionValueKey], W = r[o.optionInputValueKey];
524
- return D(p, e) || D(P, e) || D(W, e);
524
+ return j(p, e) || j(P, e) || j(W, e);
525
525
  }) : X.value;
526
526
  }
527
527
  const Q = d(() => ye(ee.value)), Y = async (e) => {
@@ -529,7 +529,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
529
529
  if (e && ("relatedTarget" in e && ((n = re.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
530
530
  return e.preventDefault();
531
531
  await Be(), _.value = !1, z.value = 0, N("close", e);
532
- }, j = async (e) => {
532
+ }, D = async (e) => {
533
533
  o.disabled || m.value || (e == null || e.preventDefault(), _.value = !0, await u(), N("focus", e), N("open", _.value));
534
534
  };
535
535
  function ge() {
@@ -555,7 +555,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
555
555
  }
556
556
  const fe = (e) => {
557
557
  const n = e.key;
558
- /^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), j(e), o.search ? Ie(n) : Se(n)) : me(e);
558
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(n) ? (e.preventDefault(), D(e), o.search ? Ie(n) : Se(n)) : me(e);
559
559
  }, me = (e) => {
560
560
  const n = e.code, r = ["ArrowUp", "ArrowDown"].includes(n), p = ["Enter", "Space"].includes(n), P = n === "Escape" && m.value;
561
561
  r ? l(e, z.value) : p ? g(e, z.value) : P && Y();
@@ -563,13 +563,13 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
563
563
  var P;
564
564
  e.preventDefault();
565
565
  const r = e.code;
566
- m.value || j(e);
566
+ m.value || D(e);
567
567
  const p = (P = Q.value) == null ? void 0 : P.length;
568
568
  p && (typeof n == "number" ? n === p - 1 && r === "ArrowDown" ? z.value = 0 : n === 0 && r === "ArrowUp" ? z.value = p - 1 : z.value = r === "ArrowDown" ? n + 1 : n - 1 : z.value = r === "ArrowDown" ? 0 : p - 1, u(z.value));
569
569
  }, g = (e, n) => {
570
570
  var p, P, W;
571
571
  if (e.preventDefault(), !m.value)
572
- return j(e);
572
+ return D(e);
573
573
  const r = n ? ((p = Q.value) == null ? void 0 : p[n]) ?? ((P = Q.value) == null ? void 0 : P[0]) : (W = Q.value) == null ? void 0 : W[0];
574
574
  R(r) || O(r);
575
575
  };
@@ -627,8 +627,8 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
627
627
  autocomplete: "off",
628
628
  size: e.size,
629
629
  disabled: e.disabled,
630
- onFocus: ve(j, ["prevent", "stop"]),
631
- onClick: ve(j, ["prevent", "stop"]),
630
+ onFocus: ve(D, ["prevent", "stop"]),
631
+ onClick: ve(D, ["prevent", "stop"]),
632
632
  onChange: n[0] || (n[0] = (r) => N("change", r)),
633
633
  onKeydown: fe
634
634
  }), {
@@ -666,7 +666,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
666
666
  })
667
667
  },
668
668
  [
669
- e.search ? (s(), $(Ke, {
669
+ e.search ? (s(), w(Ke, {
670
670
  key: 0,
671
671
  ref_key: "searchInputComponent",
672
672
  ref: ie,
@@ -696,7 +696,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
696
696
  (s(!0), h(
697
697
  he,
698
698
  null,
699
- we(Q.value, (r, p) => (s(), h(
699
+ $e(Q.value, (r, p) => (s(), h(
700
700
  he,
701
701
  { key: p },
702
702
  [
@@ -729,7 +729,7 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
729
729
  style: se(e.itemHeight ? { minHeight: `${e.itemHeight}px` } : void 0),
730
730
  onClick: ve((P) => O(r), ["prevent", "stop"])
731
731
  }, [
732
- e.multiple ? (s(), $(f(a), {
732
+ e.multiple ? (s(), w(f(a), {
733
733
  key: 0,
734
734
  tabindex: "-1",
735
735
  "model-value": ne(r),
@@ -800,16 +800,16 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
800
800
  contentClass: { default: void 0 }
801
801
  },
802
802
  setup(v) {
803
- const y = Z(() => import("./MazSpinner-BwOdmgr3.mjs")), a = Z(() => import("./MazIcon-BHpbiW6o.mjs")), { href: c, to: M } = oo(), S = Pe(), w = v;
803
+ const y = Z(() => import("./MazSpinner-DBmPB-lg.mjs")), a = Z(() => import("./MazIcon-B777ztdl.mjs")), { href: c, to: M } = oo(), S = Pe(), $ = v;
804
804
  Oe(() => {
805
- w.icon && !w.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
805
+ $.icon && !$.fab && console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props');
806
806
  });
807
807
  const o = d(() => c ? "a" : M ? "router-link" : "button"), N = d(
808
- () => w.pastel ? `--${w.color}-pastel` : w.outline ? `--${w.color}-outline` : `--${w.color}`
808
+ () => $.pastel ? `--${$.color}-pastel` : $.outline ? `--${$.color}-outline` : `--${$.color}`
809
809
  ), _ = d(
810
- () => (w.loading || w.disabled) && o.value === "button"
811
- ), z = d(() => _.value ? "--cursor-default" : "--cursor-pointer"), E = d(() => `--is-${w.variant}`), B = d(() => w.loading && w.variant === "button"), J = d(() => !!S["left-icon"] || w.leftIcon), H = d(() => !!S["right-icon"] || w.rightIcon), m = d(() => J.value || H.value), L = d(() => w.fab && (w.icon || !!S.icon)), q = d(() => o.value === "button" ? w.type : void 0);
812
- return (b, X) => (s(), $(ce(o.value), {
810
+ () => ($.loading || $.disabled) && o.value === "button"
811
+ ), z = d(() => _.value ? "--cursor-default" : "--cursor-pointer"), E = d(() => `--is-${$.variant}`), B = d(() => $.loading && $.variant === "button"), J = d(() => !!S["left-icon"] || $.leftIcon), H = d(() => !!S["right-icon"] || $.rightIcon), m = d(() => J.value || H.value), L = d(() => $.fab && ($.icon || !!S.icon)), q = d(() => o.value === "button" ? $.type : void 0);
812
+ return (b, X) => (s(), w(ce(o.value), {
813
813
  disabled: _.value,
814
814
  class: V(["m-btn", [
815
815
  `--${b.size}`,
@@ -844,10 +844,10 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
844
844
  @slot left-icon - The icon to display on the left of the button
845
845
  `),
846
846
  k(b.$slots, "left-icon", {}, () => [
847
- typeof b.leftIcon == "string" ? (s(), $(f(a), {
847
+ typeof b.leftIcon == "string" ? (s(), w(f(a), {
848
848
  key: 0,
849
849
  name: b.leftIcon
850
- }, null, 8, ["name"])) : b.leftIcon ? (s(), $(ce(b.leftIcon), { key: 1 })) : i("v-if", !0)
850
+ }, null, 8, ["name"])) : b.leftIcon ? (s(), w(ce(b.leftIcon), { key: 1 })) : i("v-if", !0)
851
851
  ], !0)
852
852
  ],
853
853
  2
@@ -864,10 +864,10 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
864
864
  @slot icon - The icon to display on the fab button
865
865
  `),
866
866
  k(b.$slots, "icon", {}, () => [
867
- typeof b.icon == "string" ? (s(), $(f(a), {
867
+ typeof b.icon == "string" ? (s(), w(f(a), {
868
868
  key: 0,
869
869
  name: b.icon
870
- }, null, 8, ["name"])) : b.icon ? (s(), $(ce(b.icon), { key: 1 })) : i("v-if", !0)
870
+ }, null, 8, ["name"])) : b.icon ? (s(), w(ce(b.icon), { key: 1 })) : i("v-if", !0)
871
871
  ], !0)
872
872
  ],
873
873
  2
@@ -899,16 +899,16 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
899
899
  @slot right-icon - The icon to display on the right of the button
900
900
  `),
901
901
  k(b.$slots, "right-icon", {}, () => [
902
- typeof b.rightIcon == "string" ? (s(), $(f(a), {
902
+ typeof b.rightIcon == "string" ? (s(), w(f(a), {
903
903
  key: 0,
904
904
  name: b.rightIcon
905
- }, null, 8, ["name"])) : b.rightIcon ? (s(), $(ce(b.rightIcon), { key: 1 })) : i("v-if", !0)
905
+ }, null, 8, ["name"])) : b.rightIcon ? (s(), w(ce(b.rightIcon), { key: 1 })) : i("v-if", !0)
906
906
  ], !0)
907
907
  ],
908
908
  2
909
909
  /* CLASS */
910
910
  )) : i("v-if", !0),
911
- B.value ? (s(), $(f(y), {
911
+ B.value ? (s(), w(f(y), {
912
912
  key: 4,
913
913
  class: "m-btn-loader",
914
914
  size: "2em",
@@ -922,13 +922,13 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
922
922
  }), be = /* @__PURE__ */ le(Oo, [["__scopeId", "data-v-0b480541"]]), No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
923
923
  __proto__: null,
924
924
  default: be
925
- }, Symbol.toStringTag, { value: "Module" })), Do = /* @__PURE__ */ oe({
925
+ }, Symbol.toStringTag, { value: "Module" })), jo = /* @__PURE__ */ oe({
926
926
  __name: "MazTableRow",
927
927
  props: {
928
928
  noHoverable: { type: Boolean }
929
929
  },
930
930
  setup(v) {
931
- const { hoverable: y, backgroundEven: a, backgroundOdd: c } = De("maz-table");
931
+ const { hoverable: y, backgroundEven: a, backgroundOdd: c } = je("maz-table");
932
932
  return (M, S) => (s(), h(
933
933
  "tr",
934
934
  {
@@ -945,10 +945,10 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
945
945
  /* CLASS */
946
946
  ));
947
947
  }
948
- }), _e = /* @__PURE__ */ le(Do, [["__scopeId", "data-v-57ba9a97"]]), jo = /* @__PURE__ */ oe({
948
+ }), _e = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-57ba9a97"]]), Do = /* @__PURE__ */ oe({
949
949
  __name: "MazTableCell",
950
950
  setup(v) {
951
- const { size: y } = De("maz-table");
951
+ const { size: y } = je("maz-table");
952
952
  return (a, c) => (s(), h(
953
953
  "td",
954
954
  {
@@ -961,10 +961,10 @@ const Ao = ["aria-label"], Ko = { class: "m-select-list__no-results" }, Mo = {
961
961
  /* CLASS */
962
962
  ));
963
963
  }
964
- }), $e = /* @__PURE__ */ le(jo, [["__scopeId", "data-v-0668079a"]]), Eo = /* @__PURE__ */ oe({
964
+ }), we = /* @__PURE__ */ le(Do, [["__scopeId", "data-v-0668079a"]]), Eo = /* @__PURE__ */ oe({
965
965
  __name: "MazTableTitle",
966
966
  setup(v) {
967
- const { size: y } = De("maz-table");
967
+ const { size: y } = je("maz-table");
968
968
  return (a, c) => (s(), h(
969
969
  "th",
970
970
  {
@@ -1062,7 +1062,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1062
1062
  componentName: "MazCheckbox",
1063
1063
  instance: a,
1064
1064
  providedId: c.id
1065
- }), w = d(
1065
+ }), $ = d(
1066
1066
  () => typeof c.value != "boolean" && Array.isArray(c.modelValue) ? c.modelValue.includes(c.value) : typeof c.modelValue == "boolean" ? c.modelValue : !1
1067
1067
  ), o = d(() => {
1068
1068
  switch (c.size) {
@@ -1113,12 +1113,12 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1113
1113
  tabindex: "0",
1114
1114
  style: se(m.style),
1115
1115
  role: "checkbox",
1116
- "aria-checked": w.value,
1116
+ "aria-checked": $.value,
1117
1117
  onKeydown: B
1118
1118
  }, [
1119
1119
  I("input", Te({
1120
1120
  id: f(S),
1121
- checked: w.value
1121
+ checked: $.value
1122
1122
  }, m.$attrs, {
1123
1123
  tabindex: "-1",
1124
1124
  disabled: m.disabled,
@@ -1140,7 +1140,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1140
1140
  }), Me = /* @__PURE__ */ le(xo, [["__scopeId", "data-v-41945bef"]]), el = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1141
1141
  __proto__: null,
1142
1142
  default: Me
1143
- }, Symbol.toStringTag, { value: "Module" })), Ge = (v) => (He("data-v-6799f047"), v = v(), qe(), v), ol = {
1143
+ }, Symbol.toStringTag, { value: "Module" })), Ge = (v) => (He("data-v-04b924e2"), v = v(), qe(), v), ol = {
1144
1144
  key: 0,
1145
1145
  class: "m-table-header"
1146
1146
  }, ll = { class: "m-table-spacer" }, tl = { class: "m-table-header-title" }, al = {
@@ -1212,15 +1212,15 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1212
1212
  emits: ["update:model-value", "update:search-query", "update:page", "update:page-size"],
1213
1213
  setup(v, { emit: y }) {
1214
1214
  Ve((l) => ({
1215
- "549b2df6": a.tableLayout,
1216
- "47a9b48a": a.captionSide
1215
+ "80c1f54c": a.tableLayout,
1216
+ "472efd1f": a.captionSide
1217
1217
  }));
1218
1218
  const a = v, c = d(
1219
1219
  () => a.divider && !a.backgroundEven && !a.backgroundOdd
1220
- ), M = y, { size: S, hoverable: w, backgroundEven: o, backgroundOdd: N } = lo(a);
1220
+ ), M = y, { size: S, hoverable: $, backgroundEven: o, backgroundOdd: N } = lo(a);
1221
1221
  to("maz-table", {
1222
1222
  size: S,
1223
- hoverable: w,
1223
+ hoverable: $,
1224
1224
  backgroundEven: o,
1225
1225
  backgroundOdd: N
1226
1226
  });
@@ -1287,7 +1287,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1287
1287
  const U = K(), ie = d(() => [
1288
1288
  // eslint-disable-next-line unicorn/no-null
1289
1289
  { label: a.searchByAllLabel, value: null },
1290
- ...D.value.map((l) => ({
1290
+ ...j.value.map((l) => ({
1291
1291
  label: l.label,
1292
1292
  value: l.key
1293
1293
  }))
@@ -1306,10 +1306,10 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1306
1306
  });
1307
1307
  function ne(l) {
1308
1308
  return [...l].sort((g, u) => {
1309
- if (Y.value === void 0 || j.value === void 0)
1309
+ if (Y.value === void 0 || D.value === void 0)
1310
1310
  return 0;
1311
- const A = g[D.value[Y.value].key], O = u[D.value[Y.value].key];
1312
- return typeof A == "string" && typeof O == "string" ? j.value === "ASC" ? A.localeCompare(O) : O.localeCompare(A) : j.value === "ASC" ? A - O : O - A;
1311
+ const A = g[j.value[Y.value].key], O = u[j.value[Y.value].key];
1312
+ return typeof A == "string" && typeof O == "string" ? D.value === "ASC" ? A.localeCompare(O) : O.localeCompare(A) : D.value === "ASC" ? A - O : O - A;
1313
1313
  });
1314
1314
  }
1315
1315
  function pe(l) {
@@ -1321,7 +1321,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1321
1321
  const G = d(() => {
1322
1322
  const l = pe(re.value);
1323
1323
  return ne(l);
1324
- }), ee = Pe(), t = d(() => a.search || !!a.title || !!ee.title), F = d(() => a.pagination), D = K(ye());
1324
+ }), ee = Pe(), t = d(() => a.search || !!a.title || !!ee.title), F = d(() => a.pagination), j = K(ye());
1325
1325
  function ye() {
1326
1326
  var l;
1327
1327
  return ((l = a.headers) == null ? void 0 : l.map(
@@ -1338,9 +1338,9 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1338
1338
  };
1339
1339
  })) ?? [];
1340
1340
  }
1341
- const Y = K(), j = K();
1341
+ const Y = K(), D = K();
1342
1342
  function ge(l) {
1343
- l === Y.value ? j.value = j.value === void 0 ? "DESC" : j.value === "DESC" ? "ASC" : void 0 : j.value = "DESC", Y.value = j.value === void 0 ? void 0 : l;
1343
+ l === Y.value ? D.value = D.value === void 0 ? "DESC" : D.value === "DESC" ? "ASC" : void 0 : D.value = "DESC", Y.value = D.value === void 0 ? void 0 : l;
1344
1344
  }
1345
1345
  const ze = d({
1346
1346
  get: () => G.value.every((l) => l.selected) ?? !1,
@@ -1384,7 +1384,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1384
1384
  ], !0) : i("v-if", !0)
1385
1385
  ]),
1386
1386
  l.search ? (s(), h("div", al, [
1387
- l.noSearchBy ? i("v-if", !0) : (s(), $(Fe, {
1387
+ l.noSearchBy ? i("v-if", !0) : (s(), w(Fe, {
1388
1388
  key: 0,
1389
1389
  modelValue: U.value,
1390
1390
  "onUpdate:modelValue": g[0] || (g[0] = (u) => U.value = u),
@@ -1423,14 +1423,14 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1423
1423
  )
1424
1424
  ], !0)
1425
1425
  ])) : i("v-if", !0),
1426
- D.value ? (s(), h("thead", sl, [
1426
+ j.value ? (s(), h("thead", sl, [
1427
1427
  i(`
1428
1428
  @slot thead - content in thead element
1429
1429
  `),
1430
1430
  k(l.$slots, "thead", {}, () => [
1431
1431
  C(_e, { "no-hoverable": "" }, {
1432
1432
  default: T(() => [
1433
- z.value ? (s(), $(Ae, {
1433
+ z.value ? (s(), w(Ae, {
1434
1434
  key: 0,
1435
1435
  align: "left",
1436
1436
  class: V([`--${f(S)}`, "m-table-select-column"])
@@ -1448,7 +1448,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1448
1448
  (s(!0), h(
1449
1449
  he,
1450
1450
  null,
1451
- we(D.value, (u, A) => (s(), $(Ae, {
1451
+ $e(j.value, (u, A) => (s(), w(Ae, {
1452
1452
  key: A,
1453
1453
  scope: u.scope,
1454
1454
  align: u.align,
@@ -1498,8 +1498,8 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1498
1498
  C(f(fo), {
1499
1499
  class: V(["m-table-sort-icon maz-hidden group-hover:maz-block", {
1500
1500
  "--sorted": A === Y.value,
1501
- "--up": j.value === "DESC",
1502
- "--down": j.value === "ASC"
1501
+ "--up": D.value === "DESC",
1502
+ "--down": D.value === "ASC"
1503
1503
  }])
1504
1504
  }, null, 8, ["class"])
1505
1505
  ])) : i("v-if", !0)
@@ -1515,7 +1515,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1515
1515
  128
1516
1516
  /* KEYED_FRAGMENT */
1517
1517
  )),
1518
- l.$slots.actions ? (s(), $(Ae, {
1518
+ l.$slots.actions ? (s(), w(Ae, {
1519
1519
  key: 1,
1520
1520
  align: "left",
1521
1521
  class: V(`--${f(S)}`)
@@ -1537,7 +1537,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1537
1537
  })
1538
1538
  ], !0)
1539
1539
  ])) : i("v-if", !0),
1540
- l.loading ? (s(), $(Qo, {
1540
+ l.loading ? (s(), w(Qo, {
1541
1541
  key: 2,
1542
1542
  color: l.color,
1543
1543
  class: "!maz-absolute"
@@ -1552,14 +1552,14 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1552
1552
  G.value.length > 0 ? (s(!0), h(
1553
1553
  he,
1554
1554
  { key: 0 },
1555
- we(G.value, (u, A) => (s(), $(_e, {
1555
+ $e(G.value, (u, A) => (s(), w(_e, {
1556
1556
  key: A,
1557
1557
  class: V(u.classes),
1558
1558
  onClick: (O) => u.action && u.action(u)
1559
1559
  }, {
1560
1560
  default: T(() => [
1561
- z.value ? (s(), $(
1562
- $e,
1561
+ z.value ? (s(), w(
1562
+ we,
1563
1563
  {
1564
1564
  key: 0,
1565
1565
  class: "m-table-select-column"
@@ -1591,7 +1591,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1591
1591
  (s(!0), h(
1592
1592
  he,
1593
1593
  null,
1594
- we(D.value, ({ key: O, align: e, classes: n }, r) => (s(), $($e, {
1594
+ $e(j.value, ({ key: O, align: e, classes: n }, r) => (s(), w(we, {
1595
1595
  key: r,
1596
1596
  align: e,
1597
1597
  class: V(n)
@@ -1630,26 +1630,33 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1630
1630
  128
1631
1631
  /* KEYED_FRAGMENT */
1632
1632
  )),
1633
- l.$slots.actions ? (s(), $($e, { key: 1 }, {
1634
- default: T(() => [
1635
- i(`
1633
+ l.$slots.actions ? (s(), w(
1634
+ we,
1635
+ { key: 1 },
1636
+ {
1637
+ default: T(() => [
1638
+ i(`
1636
1639
  @slot actions - will add actions column
1640
+ @binding {Object} row - row data
1637
1641
  `),
1638
- k(l.$slots, "actions", {}, void 0, !0)
1639
- ]),
1640
- _: 3
1641
- /* FORWARDED */
1642
- })) : i("v-if", !0)
1642
+ k(l.$slots, "actions", { row: u }, void 0, !0)
1643
+ ]),
1644
+ _: 2
1645
+ /* DYNAMIC */
1646
+ },
1647
+ 1024
1648
+ /* DYNAMIC_SLOTS */
1649
+ )) : i("v-if", !0)
1643
1650
  ]),
1644
1651
  _: 2
1645
1652
  /* DYNAMIC */
1646
1653
  }, 1032, ["class", "onClick"]))),
1647
1654
  128
1648
1655
  /* KEYED_FRAGMENT */
1649
- )) : (s(), $(_e, { key: 1 }, {
1656
+ )) : (s(), w(_e, { key: 1 }, {
1650
1657
  default: T(() => [
1651
- C($e, {
1652
- colspan: D.value.length + (z.value ? 1 : 0) + (l.$slots.actions ? 1 : 0)
1658
+ C(we, {
1659
+ colspan: j.value.length + (z.value ? 1 : 0) + (l.$slots.actions ? 1 : 0)
1653
1660
  }, {
1654
1661
  default: T(() => [
1655
1662
  i(`
@@ -1728,7 +1735,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1728
1735
  onClick: X
1729
1736
  }, {
1730
1737
  default: T(() => [
1731
- C(f(je), { class: "maz-text-base" })
1738
+ C(f(De), { class: "maz-text-base" })
1732
1739
  ]),
1733
1740
  _: 1
1734
1741
  /* STABLE */
@@ -1742,7 +1749,7 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1742
1749
  onClick: te
1743
1750
  }, {
1744
1751
  default: T(() => [
1745
- C(f(je), { class: "maz-rotate-180 maz-text-base" })
1752
+ C(f(De), { class: "maz-rotate-180 maz-text-base" })
1746
1753
  ]),
1747
1754
  _: 1
1748
1755
  /* STABLE */
@@ -1769,9 +1776,9 @@ const We = { render: Qe }, Zo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Ob
1769
1776
  /* CLASS */
1770
1777
  ));
1771
1778
  }
1772
- }), gl = /* @__PURE__ */ le(bl, [["__scopeId", "data-v-6799f047"]]);
1779
+ }), gl = /* @__PURE__ */ le(bl, [["__scopeId", "data-v-04b924e2"]]);
1773
1780
  export {
1774
1781
  gl as M,
1775
1782
  le as _,
1776
- De as i
1783
+ je as i
1777
1784
  };
@@ -6,9 +6,10 @@ function F(n, s) {
6
6
  throw new TypeError(`[maz-ui](injectStrict) Could not resolve ${n}`);
7
7
  return o;
8
8
  }
9
- const x = (n) => new Promise((s) => {
10
- setTimeout(s, n);
11
- }), G = (n, s) => {
9
+ function x(n) {
10
+ return new Promise((s) => setTimeout(s, n));
11
+ }
12
+ const G = (n, s) => {
12
13
  const o = n.__vccOpts || n;
13
14
  for (const [c, b] of s)
14
15
  o[c] = b;
@@ -27,7 +28,7 @@ const J = ["disabled", "onClick"], K = /* @__PURE__ */ N({
27
28
  autoScroll: { type: Boolean, default: !0 }
28
29
  },
29
30
  setup(n) {
30
- const s = O(() => import("./MazBadge-BD-ljwz4.mjs")), { currentTab: o, updateCurrentTab: c } = F("maz-tabs");
31
+ const s = O(() => import("./MazBadge-BDw3XOhT.mjs")), { currentTab: o, updateCurrentTab: c } = F("maz-tabs");
31
32
  function b(e) {
32
33
  c(e + 1), l.persistent && M(e + 1);
33
34
  }
@@ -1,4 +1,4 @@
1
- var I=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("./index-CDU35ONK.cjs"),C=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},noLeading:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{default:void 0},leftIcon:{default:void 0},rightIcon:{default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},contentClass:{default:void 0}},setup(u){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-Zd3I5gif.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-20EEWOoS.cjs"))),{href:m,to:p}=e.useAttrs(),a=e.useSlots(),n=u;e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const r=e.computed(()=>m?"a":p?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),i=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),v=e.computed(()=>i.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),t=e.computed(()=>n.loading&&n.variant==="button"),c=e.computed(()=>!!a["left-icon"]||n.leftIcon),s=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>c.value||s.value),B=e.computed(()=>n.fab&&(n.icon||!!a.icon)),k=e.computed(()=>r.value==="button"?n.type:void 0);return(o,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:i.value,class:e.normalizeClass(["m-btn",[`--${o.size}`,f.value,v.value,y.value,{"--block":o.block,"--no-underline":o.noUnderline,"--no-leading":o.noLeading,"--fab":o.fab,"--loading":o.loading,"--disabled":i.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:k.value},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":t.value}])},[e.createCommentVNode(`
1
+ var I=require("../assets/MazBtn.css");Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),h=require("./index-COYUjx_2.cjs"),C=e.defineComponent({__name:"MazBtn",props:{variant:{default:"button"},size:{default:"md"},color:{default:"primary"},type:{default:"button"},rounded:{type:Boolean},noRounded:{type:Boolean},outline:{type:Boolean},pastel:{type:Boolean},block:{type:Boolean},noUnderline:{type:Boolean},noLeading:{type:Boolean},loading:{type:Boolean},disabled:{type:Boolean},fab:{type:Boolean},icon:{default:void 0},leftIcon:{default:void 0},rightIcon:{default:void 0},noPadding:{type:Boolean},noElevation:{type:Boolean},contentClass:{default:void 0}},setup(u){const d=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazSpinner-CrLrbucF.cjs"))),l=e.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./MazIcon-BbQ5j7zo.cjs"))),{href:m,to:p}=e.useAttrs(),a=e.useSlots(),n=u;e.onBeforeMount(()=>{n.icon&&!n.fab&&console.error('[maz-ui](MazBtn) the prop "icon" must be used only with "fab" props')});const r=e.computed(()=>m?"a":p?"router-link":"button"),f=e.computed(()=>n.pastel?`--${n.color}-pastel`:n.outline?`--${n.color}-outline`:`--${n.color}`),i=e.computed(()=>(n.loading||n.disabled)&&r.value==="button"),v=e.computed(()=>i.value?"--cursor-default":"--cursor-pointer"),y=e.computed(()=>`--is-${n.variant}`),t=e.computed(()=>n.loading&&n.variant==="button"),c=e.computed(()=>!!a["left-icon"]||n.leftIcon),s=e.computed(()=>!!a["right-icon"]||n.rightIcon),b=e.computed(()=>c.value||s.value),B=e.computed(()=>n.fab&&(n.icon||!!a.icon)),k=e.computed(()=>r.value==="button"?n.type:void 0);return(o,z)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value),{disabled:i.value,class:e.normalizeClass(["m-btn",[`--${o.size}`,f.value,v.value,y.value,{"--block":o.block,"--no-underline":o.noUnderline,"--no-leading":o.noLeading,"--fab":o.fab,"--loading":o.loading,"--disabled":i.value,"--icon":b.value,"--rounded":o.rounded,"--no-rounded":o.noRounded,"--no-padding":o.noPadding,"--no-elevation":o.noElevation}]]),type:k.value},{default:e.withCtx(()=>[c.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["m-btn__icon-left maz-flex maz-flex-center",{"maz-invisible":t.value}])},[e.createCommentVNode(`
2
2
  @slot left-icon - The icon to display on the left of the button
3
3
  `),e.renderSlot(o.$slots,"left-icon",{},()=>[typeof o.leftIcon=="string"?(e.openBlock(),e.createBlock(e.unref(l),{key:0,name:o.leftIcon},null,8,["name"])):o.leftIcon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(o.leftIcon),{key:1})):e.createCommentVNode("v-if",!0)],!0)],2)):e.createCommentVNode("v-if",!0),B.value?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["m-btn__icon",{"maz-invisible":t.value}])},[e.createCommentVNode(`
4
4
  @slot icon - The icon to display on the fab button