maz-ui 3.47.1 → 3.47.2-beta.0

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 (96) hide show
  1. package/components/MazCard.mjs +1 -1
  2. package/components/MazChart.d.ts +1 -1
  3. package/components/MazChecklist.mjs +1 -1
  4. package/components/MazGallery.mjs +1 -1
  5. package/components/MazInput.mjs +1 -1
  6. package/components/MazInputNumber.mjs +1 -1
  7. package/components/MazInputPrice.mjs +1 -1
  8. package/components/MazInputTags.mjs +1 -1
  9. package/components/MazPhoneNumberInput.mjs +1 -1
  10. package/components/MazPicker.mjs +1 -1
  11. package/components/MazSelect.mjs +1 -1
  12. package/components/MazTable.d.ts +29 -52
  13. package/components/MazTable.mjs +1 -1
  14. package/components/MazTabsBar.mjs +1 -1
  15. package/components/assets/MazDropdown.css +1 -1
  16. package/components/assets/MazGallery.css +1 -1
  17. package/components/assets/MazInput.css +1 -1
  18. package/components/assets/MazInputNumber.css +1 -1
  19. package/components/assets/MazInputPrice.css +1 -1
  20. package/components/assets/MazInputTags.css +1 -1
  21. package/components/assets/MazPhoneNumberInput.css +1 -1
  22. package/components/assets/MazPicker.css +1 -1
  23. package/components/assets/MazSelect.css +1 -1
  24. package/components/assets/MazTable.css +1 -1
  25. package/components/assets/MazTabsBar.css +1 -1
  26. package/components/chunks/{MazBadge-CNSfzYq-.mjs → MazBadge-CvIiiTdM.mjs} +1 -1
  27. package/components/chunks/{MazBtn-D6Jxw9Nr.mjs → MazBtn-BO3G90L3.mjs} +2 -2
  28. package/components/chunks/{MazBtn-BRnLMzhy.mjs → MazBtn-C87UEsVs.mjs} +2 -2
  29. package/components/chunks/{MazBtn-DlD5m7T4.mjs → MazBtn-C_l3xuAh.mjs} +2 -2
  30. package/components/chunks/{MazBtn-CnqRnXh_.mjs → MazBtn-DJOUeES7.mjs} +2 -2
  31. package/components/chunks/{MazBtn-TkePGm5o.mjs → MazBtn-DVkwISlp.mjs} +2 -2
  32. package/components/chunks/MazBtn-DadFupkY.mjs +118 -0
  33. package/components/chunks/{MazBtn-Dt8lr0GH.mjs → MazBtn-GGcGrIH4.mjs} +2 -2
  34. package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-FSXmHyhj.mjs} +1 -1
  35. package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-2G4VkxDz.mjs} +1 -1
  36. package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-BmnqBHaY.mjs} +1 -1
  37. package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-Cq9gpTEw.mjs} +1 -1
  38. package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-CY1Cv70T.mjs} +1 -1
  39. package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-BknvUeo1.mjs} +272 -229
  40. package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-CZOokGAt.mjs} +248 -205
  41. package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-z-jTiuyI.mjs} +1 -1
  42. package/components/chunks/{MazInput-CBiCdd0F.mjs → MazInput-BQoQSRyL.mjs} +2 -2
  43. package/components/chunks/{MazInput-Dx2cCzFS.mjs → MazInput-CJQB68c-.mjs} +22 -22
  44. package/components/chunks/{MazInput-O6Q41Fm0.mjs → MazInput-oOA7gdLO.mjs} +23 -23
  45. package/components/chunks/{MazInputNumber-DYPVUz4k.mjs → MazInputNumber-B4mQJcVB.mjs} +2 -2
  46. package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-BrxE5WVf.mjs} +2 -2
  47. package/components/chunks/{MazInputTags-CxXBsTdM.mjs → MazInputTags-BVCej_gW.mjs} +233 -232
  48. package/components/chunks/{MazLoadingBar-Di2OIrPD.mjs → MazLoadingBar-Dwf55oHy.mjs} +1 -1
  49. package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-Cd25AzXc.mjs} +10 -10
  50. package/components/chunks/{MazPicker-BcQ_-AJH.mjs → MazPicker-C78yxilJ.mjs} +3 -3
  51. package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-CyHYx8TT.mjs} +1 -1
  52. package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-Bsi8cnox.mjs} +1 -1
  53. package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-DLUSMAtz.mjs} +1 -1
  54. package/components/chunks/{MazSelect-BXzgSKmL.mjs → MazSelect-CQDoUpgp.mjs} +15 -14
  55. package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-uCJPMXF-.mjs} +3 -3
  56. package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-2D0ZmAQz.mjs} +1 -1
  57. package/components/chunks/MazSpinner-B9OwpEP_.mjs +34 -0
  58. package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-BT_717pD.mjs} +1 -1
  59. package/components/chunks/{MazSpinner-Cg26sBU2.mjs → MazSpinner-C1Ip-Dwh.mjs} +1 -1
  60. package/components/chunks/MazSpinner-C23CZ_Za.mjs +34 -0
  61. package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-CViChjTw.mjs} +1 -1
  62. package/components/chunks/MazSpinner-CZMBhCOJ.mjs +34 -0
  63. package/components/chunks/{MazSpinner-DlMKBtyt.mjs → MazSpinner-D4C84xZe.mjs} +1 -1
  64. package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-EFo8dM46.mjs} +1 -1
  65. package/components/chunks/MazSpinner-u8WQTgUR.mjs +34 -0
  66. package/components/chunks/{MazSpinner-M4r0cykl.mjs → MazSpinner-w-S5uCxg.mjs} +1 -1
  67. package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-Cuz5QI08.mjs} +4 -4
  68. package/components/chunks/{MazTableCell-BXDbkEJq.mjs → MazTableCell-D_OTOJiy.mjs} +1 -1
  69. package/components/chunks/{MazTableRow-Ds3CDEit.mjs → MazTableRow-BTcVAyOy.mjs} +1 -1
  70. package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-BDA9G6Zw.mjs} +1 -1
  71. package/components/chunks/{MazTabsBar-MZYefBb8.mjs → MazTabsBar-JkRzMDM6.mjs} +9 -10
  72. package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-C-FHhOGB.mjs} +1 -1
  73. package/css/main.css +1 -1
  74. package/modules/assets/index.css +1 -1
  75. package/modules/chunks/{MazBtn-CTqI4qhg.mjs → MazBtn-BSnVxud6.mjs} +2 -2
  76. package/modules/chunks/{MazBtn-D_CpNgpD.cjs → MazBtn-Bf9Cq5M7.cjs} +1 -1
  77. package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-DllGg8tw.mjs} +1 -1
  78. package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-dhyR9Q8a.cjs} +1 -1
  79. package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-CiIyZ8gs.cjs} +1 -1
  80. package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-bdGjxsu6.mjs} +1 -1
  81. package/modules/chunks/index-BPqjUr5e.cjs +149 -0
  82. package/modules/chunks/{index-C2yAjM0P.mjs → index-x2F1l5sr.mjs} +944 -915
  83. package/modules/index.cjs +1 -1
  84. package/modules/index.mjs +1 -1
  85. package/nuxt/index.json +1 -1
  86. package/package.json +1 -1
  87. package/types/components/MazChart.vue.d.ts +1 -1
  88. package/types/components/MazTable.vue.d.ts +29 -52
  89. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +5 -5
  90. package/types/modules/helpers/check-availability.d.ts +1 -0
  91. package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
  92. package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
  93. package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
  94. package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
  95. package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
  96. package/modules/chunks/index-BIX1NMzX.cjs +0 -149
@@ -1,6 +1,6 @@
1
- import { openBlock as s, createElementBlock as $, createElementVNode as E, defineComponent as q, defineAsyncComponent as S, useAttrs as ae, useSlots as H, computed as r, createBlock as v, resolveDynamicComponent as F, normalizeClass as k, withCtx as P, createCommentVNode as i, renderSlot as M, unref as b, createVNode as L, useId as le, ref as T, onMounted as re, normalizeStyle as K, withDirectives as se, mergeProps as G, toHandlers as ie, vModelDynamic as ue, createTextVNode as J, toDisplayString as Q, withModifiers as W, TransitionGroup as de, Fragment as ce, renderList as fe, withKeys as N } from "vue";
2
- import '../assets/MazInputTags.css';function U(f) {
3
- return !!f;
1
+ import { openBlock as s, createElementBlock as B, createElementVNode as E, defineComponent as q, defineAsyncComponent as S, useAttrs as ae, useSlots as H, computed as i, createBlock as v, resolveDynamicComponent as L, normalizeClass as z, withCtx as P, createCommentVNode as u, renderSlot as M, unref as y, createVNode as O, useId as le, ref as $, onMounted as re, normalizeStyle as K, withDirectives as ie, mergeProps as G, toHandlers as se, vModelDynamic as ue, createTextVNode as J, toDisplayString as Q, withModifiers as W, TransitionGroup as de, Fragment as fe, renderList as ce, withKeys as N } from "vue";
2
+ import '../assets/MazInputTags.css';function U(c) {
3
+ return !!c;
4
4
  }
5
5
  const me = {
6
6
  xmlns: "http://www.w3.org/2000/svg",
@@ -9,8 +9,8 @@ const me = {
9
9
  fill: "none",
10
10
  viewBox: "0 0 24 24"
11
11
  };
12
- function pe(f, t) {
13
- return s(), $("svg", me, t[0] || (t[0] = [
12
+ function pe(c, n) {
13
+ return s(), B("svg", me, n[0] || (n[0] = [
14
14
  E(
15
15
  "path",
16
16
  {
@@ -53,113 +53,113 @@ const ve = { render: pe }, ye = {
53
53
  noElevation: { type: Boolean },
54
54
  justify: { default: "center" }
55
55
  },
56
- setup(f) {
57
- const t = f, o = S(() => import("./MazSpinner-yPkPj7Q8.mjs")), c = S(() => import("./MazIcon-BbvBov5G.mjs")), { href: I, to: z } = ae(), g = H(), p = r(() => I ? "a" : z ? "router-link" : "button"), j = r(
58
- () => t.pastel ? `--${t.color}-pastel` : t.outline ? `--${t.color}-outline` : `--${t.color}`
59
- ), m = r(
60
- () => (t.loading || t.disabled) && p.value === "button"
61
- ), B = r(() => m.value ? "--cursor-default" : "--cursor-pointer"), V = r(() => `--is-${t.variant}`), O = r(() => t.loading && t.variant === "button"), C = r(() => !!g["left-icon"] || t.leftIcon), n = r(() => !!g["right-icon"] || t.rightIcon), l = r(() => C.value || n.value), u = r(() => t.icon || !!g.icon), d = r(() => p.value === "button" ? t.type : void 0), y = r(() => t.size === "xl" ? "maz-text-3xl" : t.size === "lg" ? "maz-text-2xl" : t.size === "md" ? "maz-text-xl" : t.size === "sm" ? "maz-text-lg" : t.size === "xs" ? "maz-text-base" : t.size === "mini" ? "maz-text-sm" : "md"), h = r(() => t.justify === "start" ? "maz-justify-start" : t.justify === "end" ? "maz-justify-end" : t.justify === "center" ? "maz-justify-center" : t.justify === "between" ? "maz-justify-between" : t.justify === "around" ? "maz-justify-around" : t.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
62
- return (a, D) => (s(), v(F(p.value), {
56
+ setup(c) {
57
+ const n = c, t = S(() => import("./MazSpinner-CZMBhCOJ.mjs")), f = S(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = ae(), b = H(), p = i(() => h ? "a" : g ? "router-link" : "button"), T = i(
58
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
59
+ ), m = i(
60
+ () => (n.loading || n.disabled) && p.value === "button"
61
+ ), k = i(() => m.value ? "--cursor-default" : "--cursor-pointer"), V = i(() => `--is-${n.variant}`), D = i(() => n.loading && n.variant === "button"), j = i(() => !!b["left-icon"] || n.leftIcon), F = i(() => !!b["right-icon"] || n.rightIcon), a = i(() => j.value || F.value), l = i(() => n.icon || !!b.icon), d = i(() => p.value === "button" ? n.type : void 0), r = i(() => n.size === "xl" ? "maz-text-3xl" : n.size === "lg" ? "maz-text-2xl" : n.size === "md" ? "maz-text-xl" : n.size === "sm" ? "maz-text-lg" : n.size === "xs" ? "maz-text-base" : n.size === "mini" ? "maz-text-sm" : "md"), w = i(() => n.justify === "start" ? "maz-justify-start" : n.justify === "end" ? "maz-justify-end" : n.justify === "center" ? "maz-justify-center" : n.justify === "between" ? "maz-justify-between" : n.justify === "around" ? "maz-justify-around" : n.justify === "evenly" ? "maz-justify-evenly" : "maz-justify-center");
62
+ return (o, C) => (s(), v(L(p.value), {
63
63
  disabled: m.value || void 0,
64
- class: k(["m-btn", [
65
- `--${a.size}`,
66
- !a.fab && !a.rounded && a.roundedSize && `--rounded-${a.roundedSize}`,
67
- j.value,
68
- B.value,
64
+ class: z(["m-btn", [
65
+ `--${o.size}`,
66
+ !o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
67
+ T.value,
68
+ k.value,
69
69
  V.value,
70
- h.value,
70
+ w.value,
71
71
  {
72
- "--block": a.block,
73
- "--no-underline": a.noUnderline,
74
- "--fab": a.fab,
75
- "--loading": a.loading,
72
+ "--block": o.block,
73
+ "--no-underline": o.noUnderline,
74
+ "--fab": o.fab,
75
+ "--loading": o.loading,
76
76
  "--disabled": m.value,
77
- "--icon": l.value,
78
- "--rounded": a.rounded,
79
- "--no-rounded": a.noRounded,
80
- "--no-padding": a.noPadding,
81
- "--no-elevation": a.noElevation
77
+ "--icon": a.value,
78
+ "--rounded": o.rounded,
79
+ "--no-rounded": o.noRounded,
80
+ "--no-padding": o.noPadding,
81
+ "--no-elevation": o.noElevation
82
82
  }
83
83
  ]]),
84
84
  type: d.value
85
85
  }, {
86
86
  default: P(() => [
87
- i(`
87
+ u(`
88
88
  @slot left-icon - The icon to display on the left of the button
89
89
  `),
90
- M(a.$slots, "left-icon", {}, () => [
91
- typeof a.leftIcon == "string" ? (s(), v(b(c), {
90
+ M(o.$slots, "left-icon", {}, () => [
91
+ typeof o.leftIcon == "string" ? (s(), v(y(f), {
92
92
  key: 0,
93
- name: a.leftIcon,
94
- class: k([y.value])
95
- }, null, 8, ["name", "class"])) : a.leftIcon ? (s(), v(F(a.leftIcon), {
93
+ name: o.leftIcon,
94
+ class: z([r.value])
95
+ }, null, 8, ["name", "class"])) : o.leftIcon ? (s(), v(L(o.leftIcon), {
96
96
  key: 1,
97
- class: k([y.value])
98
- }, null, 8, ["class"])) : i("v-if", !0)
97
+ class: z([r.value])
98
+ }, null, 8, ["class"])) : u("v-if", !0)
99
99
  ], !0),
100
- i(`
100
+ u(`
101
101
  @slot icon - The icon to display on the fab button
102
102
  `),
103
- u.value ? M(a.$slots, "icon", { key: 0 }, () => [
104
- typeof a.icon == "string" ? (s(), v(b(c), {
103
+ l.value ? M(o.$slots, "icon", { key: 0 }, () => [
104
+ typeof o.icon == "string" ? (s(), v(y(f), {
105
105
  key: 0,
106
- name: a.icon,
107
- class: k([y.value])
108
- }, null, 8, ["name", "class"])) : a.icon ? (s(), v(F(a.icon), {
106
+ name: o.icon,
107
+ class: z([r.value])
108
+ }, null, 8, ["name", "class"])) : o.icon ? (s(), v(L(o.icon), {
109
109
  key: 1,
110
- class: k([y.value])
111
- }, null, 8, ["class"])) : i("v-if", !0)
112
- ], !0) : i("v-if", !0),
113
- i(`
110
+ class: z([r.value])
111
+ }, null, 8, ["class"])) : u("v-if", !0)
112
+ ], !0) : u("v-if", !0),
113
+ u(`
114
114
  @slot default - The content of the button
115
115
  `),
116
- M(a.$slots, "default", {}, void 0, !0),
117
- i(`
116
+ M(o.$slots, "default", {}, void 0, !0),
117
+ u(`
118
118
  @slot left-icon - The icon to display on the left of the button
119
119
  `),
120
- n.value ? M(a.$slots, "right-icon", { key: 1 }, () => [
121
- typeof a.rightIcon == "string" ? (s(), v(b(c), {
120
+ F.value ? M(o.$slots, "right-icon", { key: 1 }, () => [
121
+ typeof o.rightIcon == "string" ? (s(), v(y(f), {
122
122
  key: 0,
123
- name: a.rightIcon,
124
- class: k([y.value])
125
- }, null, 8, ["name", "class"])) : a.rightIcon ? (s(), v(F(a.rightIcon), {
123
+ name: o.rightIcon,
124
+ class: z([r.value])
125
+ }, null, 8, ["name", "class"])) : o.rightIcon ? (s(), v(L(o.rightIcon), {
126
126
  key: 1,
127
- class: k([y.value])
128
- }, null, 8, ["class"])) : i("v-if", !0)
129
- ], !0) : i("v-if", !0),
130
- O.value ? (s(), $("div", ye, [
131
- L(b(o), {
127
+ class: z([r.value])
128
+ }, null, 8, ["class"])) : u("v-if", !0)
129
+ ], !0) : u("v-if", !0),
130
+ D.value ? (s(), B("div", ye, [
131
+ O(y(t), {
132
132
  size: "2em",
133
- color: a.color
133
+ color: o.color
134
134
  }, null, 8, ["color"])
135
- ])) : i("v-if", !0)
135
+ ])) : u("v-if", !0)
136
136
  ]),
137
137
  _: 3
138
138
  /* FORWARDED */
139
139
  }, 8, ["disabled", "class", "type"]));
140
140
  }
141
- }), R = (f, t) => {
142
- const o = f.__vccOpts || f;
143
- for (const [c, I] of t)
144
- o[c] = I;
145
- return o;
141
+ }), R = (c, n) => {
142
+ const t = c.__vccOpts || c;
143
+ for (const [f, h] of n)
144
+ t[f] = h;
145
+ return t;
146
146
  }, X = /* @__PURE__ */ R(be, [["__scopeId", "data-v-d3a1ed01"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
147
147
  __proto__: null,
148
148
  default: X
149
149
  }, Symbol.toStringTag, { value: "Module" }));
150
150
  function ze({
151
- componentName: f,
152
- providedId: t
151
+ componentName: c,
152
+ providedId: n
153
153
  }) {
154
- const o = le();
155
- return r(() => t ?? `${f}-${o}`);
154
+ const t = le();
155
+ return i(() => n ?? `${c}-${t}`);
156
156
  }
157
- function he(f, t) {
158
- let o;
159
- return function(...c) {
160
- clearTimeout(o), o = setTimeout(() => {
161
- f.apply(this, c);
162
- }, t);
157
+ function he(c, n) {
158
+ let t;
159
+ return function(...f) {
160
+ clearTimeout(t), t = setTimeout(() => {
161
+ c.apply(this, f);
162
+ }, n);
163
163
  };
164
164
  }
165
165
  const ke = {
@@ -205,86 +205,86 @@ const ke = {
205
205
  block: { type: Boolean }
206
206
  },
207
207
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
208
- setup(f, { emit: t }) {
209
- const o = f, c = t, I = S(() => Promise.resolve().then(() => ge)), z = S(() => import("./MazIcon-BbvBov5G.mjs")), g = S(() => import("./eye-slash-BoO00xzs.mjs")), p = S(() => import("./eye-f8zAUc30.mjs")), j = S(() => import("./check-BmubdHc_.mjs")), m = T(!1), B = T(!1), V = T(), O = ze({
208
+ setup(c, { emit: n }) {
209
+ const t = c, f = n, h = S(() => Promise.resolve().then(() => ge)), g = S(() => import("./MazIcon-BbvBov5G.mjs")), b = S(() => import("./eye-slash-BoO00xzs.mjs")), p = S(() => import("./eye-f8zAUc30.mjs")), T = S(() => import("./check-BmubdHc_.mjs")), m = $(!1), k = $(!1), V = $(), D = ze({
210
210
  componentName: "MazInput",
211
- providedId: o.id
211
+ providedId: t.id
212
212
  });
213
213
  re(() => {
214
214
  var e;
215
- o.autoFocus && ((e = V.value) == null || e.focus());
215
+ t.autoFocus && ((e = V.value) == null || e.focus());
216
216
  });
217
- const C = r(() => o.type === "password"), n = r(() => m.value ? "text" : o.type), l = r(() => {
218
- if (!o.noBorder) {
219
- if (o.error)
217
+ const j = i(() => t.type === "password"), F = i(() => m.value ? "text" : t.type), a = i(() => {
218
+ if (!t.noBorder) {
219
+ if (t.error)
220
220
  return "maz-border-danger";
221
- if (o.success)
221
+ if (t.success)
222
222
  return "maz-border-success";
223
- if (o.warning)
223
+ if (t.warning)
224
224
  return "maz-border-warning";
225
- if (B.value || o.borderActive) {
226
- if (o.color === "black")
225
+ if (k.value || t.borderActive) {
226
+ if (t.color === "black")
227
227
  return "maz-border-black";
228
- if (o.color === "danger")
228
+ if (t.color === "danger")
229
229
  return "maz-border-danger";
230
- if (o.color === "info")
230
+ if (t.color === "info")
231
231
  return "maz-border-info";
232
- if (o.color === "primary")
232
+ if (t.color === "primary")
233
233
  return "maz-border-primary";
234
- if (o.color === "secondary")
234
+ if (t.color === "secondary")
235
235
  return "maz-border-secondary";
236
- if (o.color === "success")
236
+ if (t.color === "success")
237
237
  return "maz-border-success";
238
- if (o.color === "warning")
238
+ if (t.color === "warning")
239
239
  return "maz-border-warning";
240
- if (o.color === "white")
240
+ if (t.color === "white")
241
241
  return "maz-border-white";
242
242
  }
243
243
  return "--default-border";
244
244
  }
245
- }), u = H(), d = r(() => {
246
- const { required: e, placeholder: w } = o;
247
- if (w)
248
- return e ? `${w} *` : w;
249
- }), y = r(() => D.value !== void 0 && D.value !== ""), h = he(
245
+ }), l = H(), d = i(() => {
246
+ const { required: e, placeholder: I } = t;
247
+ if (I)
248
+ return e ? `${I} *` : I;
249
+ }), r = i(() => C.value !== void 0 && C.value !== ""), w = he(
250
250
  (e) => {
251
- c("update:model-value", e);
251
+ f("update:model-value", e);
252
252
  },
253
- typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
253
+ typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
254
254
  );
255
- function a(e) {
256
- if (o.debounce)
257
- return h(e);
258
- c("update:model-value", e);
255
+ function o(e) {
256
+ if (t.debounce)
257
+ return w(e);
258
+ f("update:model-value", e);
259
259
  }
260
- const D = r({
261
- get: () => o.modelValue,
262
- set: (e) => a(e)
263
- }), Y = r(() => (!!o.label || !!o.hint) && (B.value || !!y.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = r(() => !!o.label || !!o.hint);
260
+ const C = i({
261
+ get: () => t.modelValue,
262
+ set: (e) => o(e)
263
+ }), Y = i(() => (!!t.label || !!t.hint) && (k.value || !!r.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), Z = i(() => !!t.label || !!t.hint);
264
264
  function x() {
265
- return !!u["right-icon"] || C.value || !!u["valid-button"] || o.validButton || !!o.rightIcon;
265
+ return !!l["right-icon"] || j.value || !!l["valid-button"] || t.validButton || !!t.rightIcon;
266
266
  }
267
267
  function _() {
268
- return !!u["left-icon"] || !!o.leftIcon;
268
+ return !!l["left-icon"] || !!t.leftIcon;
269
269
  }
270
270
  function ee(e) {
271
- c("focus", e), B.value = !0;
272
- }
273
- function oe(e) {
274
- c("blur", e), B.value = !1;
271
+ f("focus", e), k.value = !0;
275
272
  }
276
273
  function te(e) {
277
- return c("change", e);
274
+ f("blur", e), k.value = !1;
275
+ }
276
+ function oe(e) {
277
+ return f("change", e);
278
278
  }
279
279
  function ne(e) {
280
- return c("input", e);
280
+ return f("input", e);
281
281
  }
282
- return (e, w) => (s(), $(
282
+ return (e, I) => (s(), B(
283
283
  "div",
284
284
  {
285
- class: k(["m-input", [
285
+ class: z(["m-input", [
286
286
  {
287
- "--is-focused": B.value || e.borderActive,
287
+ "--is-focused": k.value || e.borderActive,
288
288
  "--should-up": Y.value,
289
289
  "--has-label": Z.value,
290
290
  "--is-disabled": e.disabled,
@@ -293,7 +293,7 @@ const ke = {
293
293
  "--has-state": e.error || e.warning || e.success,
294
294
  "--block": e.block
295
295
  },
296
- o.class,
296
+ t.class,
297
297
  `--${e.color}`,
298
298
  `--${e.size}`
299
299
  ]]),
@@ -303,35 +303,35 @@ const ke = {
303
303
  E(
304
304
  "div",
305
305
  {
306
- class: k(["m-input-wrapper", [
306
+ class: z(["m-input-wrapper", [
307
307
  e.inputClasses,
308
- l.value,
308
+ a.value,
309
309
  e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
310
310
  ]])
311
311
  },
312
312
  [
313
- _() ? (s(), $("div", ke, [
314
- i(`
313
+ _() ? (s(), B("div", ke, [
314
+ u(`
315
315
  @slot left-icon - The icon to display on the left of the input
316
316
  `),
317
317
  e.$slots["left-icon"] || e.leftIcon ? M(e.$slots, "left-icon", { key: 0 }, () => [
318
- typeof e.leftIcon == "string" ? (s(), v(b(z), {
318
+ typeof e.leftIcon == "string" ? (s(), v(y(g), {
319
319
  key: 0,
320
320
  name: e.leftIcon,
321
321
  class: "maz-text-xl maz-text-muted"
322
- }, null, 8, ["name"])) : e.leftIcon ? (s(), v(F(e.leftIcon), {
322
+ }, null, 8, ["name"])) : e.leftIcon ? (s(), v(L(e.leftIcon), {
323
323
  key: 1,
324
324
  class: "maz-text-xl maz-text-muted"
325
- })) : i("v-if", !0)
326
- ], !0) : i("v-if", !0)
327
- ])) : i("v-if", !0),
325
+ })) : u("v-if", !0)
326
+ ], !0) : u("v-if", !0)
327
+ ])) : u("v-if", !0),
328
328
  E("div", Ie, [
329
- se(E("input", G({
330
- id: b(O),
329
+ ie(E("input", G({
330
+ id: y(D),
331
331
  ref_key: "input",
332
332
  ref: V,
333
- "onUpdate:modelValue": w[0] || (w[0] = (A) => D.value = A),
334
- type: n.value,
333
+ "onUpdate:modelValue": I[0] || (I[0] = (A) => C.value = A),
334
+ type: F.value,
335
335
  name: e.name
336
336
  }, e.$attrs, {
337
337
  inputmode: e.inputmode,
@@ -341,21 +341,21 @@ const ke = {
341
341
  readonly: e.readonly,
342
342
  required: e.required,
343
343
  class: "m-input-input"
344
- }, ie({
345
- blur: oe,
344
+ }, se({
345
+ blur: te,
346
346
  focus: ee,
347
- change: te,
347
+ change: oe,
348
348
  input: ne
349
349
  }, !0), {
350
- onClick: w[1] || (w[1] = (A) => e.$emit("click", A))
350
+ onClick: I[1] || (I[1] = (A) => e.$emit("click", A))
351
351
  }), null, 16, Be), [
352
- [ue, D.value]
352
+ [ue, C.value]
353
353
  ]),
354
- e.label || e.hint ? (s(), $(
354
+ e.label || e.hint ? (s(), B(
355
355
  "span",
356
356
  {
357
357
  key: 0,
358
- class: k(["m-input-label", [
358
+ class: z(["m-input-label", [
359
359
  {
360
360
  "maz-text-danger-600": e.error,
361
361
  "maz-text-success-600": e.success,
@@ -369,50 +369,50 @@ const ke = {
369
369
  1
370
370
  /* TEXT */
371
371
  ),
372
- e.required ? (s(), $("sup", we, "*")) : i("v-if", !0)
372
+ e.required ? (s(), B("sup", we, "*")) : u("v-if", !0)
373
373
  ],
374
374
  2
375
375
  /* CLASS */
376
- )) : i("v-if", !0)
376
+ )) : u("v-if", !0)
377
377
  ]),
378
- x() ? (s(), $("div", $e, [
379
- i(`
378
+ x() ? (s(), B("div", $e, [
379
+ u(`
380
380
  @slot right-icon - The icon to display on the right of the input
381
381
  `),
382
382
  e.$slots["right-icon"] || e.rightIcon ? M(e.$slots, "right-icon", { key: 0 }, () => [
383
- typeof e.rightIcon == "string" ? (s(), v(b(z), {
383
+ typeof e.rightIcon == "string" ? (s(), v(y(g), {
384
384
  key: 0,
385
385
  name: e.rightIcon,
386
386
  class: "maz-text-xl maz-text-muted"
387
- }, null, 8, ["name"])) : e.rightIcon ? (s(), v(F(e.rightIcon), {
387
+ }, null, 8, ["name"])) : e.rightIcon ? (s(), v(L(e.rightIcon), {
388
388
  key: 1,
389
389
  class: "maz-text-xl maz-text-muted"
390
- })) : i("v-if", !0)
391
- ], !0) : i("v-if", !0),
392
- C.value ? (s(), v(b(I), {
390
+ })) : u("v-if", !0)
391
+ ], !0) : u("v-if", !0),
392
+ j.value ? (s(), v(y(h), {
393
393
  key: 1,
394
394
  color: "transparent",
395
395
  tabindex: "-1",
396
396
  size: "mini",
397
- onClick: w[2] || (w[2] = W((A) => m.value = !m.value, ["stop"]))
397
+ onClick: I[2] || (I[2] = W((A) => m.value = !m.value, ["stop"]))
398
398
  }, {
399
399
  default: P(() => [
400
- m.value ? (s(), v(b(g), {
400
+ m.value ? (s(), v(y(b), {
401
401
  key: 0,
402
402
  class: "maz-text-xl maz-text-muted"
403
- })) : (s(), v(b(p), {
403
+ })) : (s(), v(y(p), {
404
404
  key: 1,
405
405
  class: "maz-text-xl maz-text-muted"
406
406
  }))
407
407
  ]),
408
408
  _: 1
409
409
  /* STABLE */
410
- })) : i("v-if", !0),
411
- i(`
410
+ })) : u("v-if", !0),
411
+ u(`
412
412
  @slot valid-button - Replace the valid button by your own
413
413
  `),
414
414
  e.$slots["valid-button"] || e.validButton ? M(e.$slots, "valid-button", { key: 2 }, () => [
415
- L(b(I), {
415
+ O(y(h), {
416
416
  color: "transparent",
417
417
  disabled: e.disabled,
418
418
  tabindex: "-1",
@@ -422,13 +422,13 @@ const ke = {
422
422
  type: "submit"
423
423
  }, {
424
424
  default: P(() => [
425
- L(b(j), { class: "maz-text-2xl maz-text-normal" })
425
+ O(y(T), { class: "maz-text-2xl maz-text-normal" })
426
426
  ]),
427
427
  _: 1
428
428
  /* STABLE */
429
429
  }, 8, ["disabled", "loading"])
430
- ], !0) : i("v-if", !0)
431
- ])) : i("v-if", !0)
430
+ ], !0) : u("v-if", !0)
431
+ ])) : u("v-if", !0)
432
432
  ],
433
433
  2
434
434
  /* CLASS */
@@ -438,7 +438,7 @@ const ke = {
438
438
  /* CLASS, STYLE */
439
439
  ));
440
440
  }
441
- }), je = /* @__PURE__ */ R(Te, [["__scopeId", "data-v-b3e1e126"]]), Ce = /* @__PURE__ */ q({
441
+ }), je = /* @__PURE__ */ R(Te, [["__scopeId", "data-v-c42aaa7f"]]), Ce = /* @__PURE__ */ q({
442
442
  inheritAttrs: !1,
443
443
  __name: "MazInputTags",
444
444
  props: {
@@ -458,102 +458,103 @@ const ke = {
458
458
  hint: {}
459
459
  },
460
460
  emits: ["update:model-value"],
461
- setup(f, { emit: t }) {
462
- const o = f, c = t, I = T(!1), z = T(), g = T(), p = T(), j = T(), m = r(
461
+ setup(c, { emit: n }) {
462
+ const t = c, f = n, h = $(!1), g = $(), b = $(), p = $(), T = $(), m = i(
463
463
  () => {
464
- var n;
465
- return (n = o.modelValue) == null ? void 0 : n.map((l) => ({
464
+ var a;
465
+ return (a = t.modelValue) == null ? void 0 : a.map((l) => ({
466
466
  tag: l,
467
467
  id: Math.random().toString(36).slice(2, 11)
468
468
  }));
469
469
  }
470
470
  );
471
- function B(n) {
472
- if (z.value) {
473
- p.value = void 0, n.preventDefault();
474
- const u = z.value.trim().split(",").map((d) => d.trim() === "," ? void 0 : d.trim()).filter(U).filter(
475
- (d) => {
476
- var y, h;
477
- return !((h = (y = o.modelValue) == null ? void 0 : y.filter(U)) != null && h.some((a) => a === d));
471
+ function k(a) {
472
+ if (g.value) {
473
+ p.value = void 0, a.preventDefault();
474
+ const d = g.value.trim().split(",").map((r) => r.trim() === "," ? void 0 : r.trim()).filter(U).filter(
475
+ (r) => {
476
+ var w, o;
477
+ return !((o = (w = t.modelValue) == null ? void 0 : w.filter(U)) != null && o.some((C) => C === r));
478
478
  }
479
479
  );
480
- c(
480
+ f(
481
481
  "update:model-value",
482
- o.modelValue ? [...o.modelValue, ...u] : [...u]
483
- ), z.value = void 0;
482
+ t.modelValue ? [...t.modelValue, ...d] : [...d]
483
+ ), g.value = void 0;
484
484
  }
485
485
  }
486
- const V = r(() => {
487
- if (o.error)
486
+ const V = i(() => {
487
+ if (t.error)
488
488
  return "maz-border-danger";
489
- if (o.success)
489
+ if (t.success)
490
490
  return "maz-border-success";
491
- if (o.warning)
491
+ if (t.warning)
492
492
  return "maz-border-warning";
493
- if (I.value) {
494
- if (o.color === "primary")
493
+ if (h.value) {
494
+ if (t.color === "primary")
495
495
  return "maz-border-primary";
496
- if (o.color === "secondary")
496
+ if (t.color === "secondary")
497
497
  return "maz-border-secondary";
498
- if (o.color === "info")
498
+ if (t.color === "info")
499
499
  return "maz-border-info";
500
- if (o.color === "danger")
500
+ if (t.color === "danger")
501
501
  return "maz-border-danger";
502
- if (o.color === "success")
502
+ if (t.color === "success")
503
503
  return "maz-border-success";
504
- if (o.color === "warning")
504
+ if (t.color === "warning")
505
505
  return "maz-border-warning";
506
- if (o.color === "black")
506
+ if (t.color === "black")
507
507
  return "maz-border-black";
508
- if (o.color === "white")
508
+ if (t.color === "white")
509
509
  return "maz-border-white";
510
510
  }
511
511
  return "maz-border-border dark:maz-border-color-lighter";
512
512
  });
513
- function O() {
514
- var n, l, u;
515
- z.value || m.value && ((n = m.value) == null ? void 0 : n.length) === 0 || (j.value && clearTimeout(j.value), p.value ? (C(p.value), p.value = void 0) : (p.value = (u = (l = m.value) == null ? void 0 : l[m.value.length - 1]) == null ? void 0 : u.id, j.value = setTimeout(() => {
513
+ function D() {
514
+ var a, l, d;
515
+ g.value || m.value && ((a = m.value) == null ? void 0 : a.length) === 0 || (T.value && clearTimeout(T.value), p.value ? (j(p.value), p.value = void 0) : (p.value = (d = (l = m.value) == null ? void 0 : l[m.value.length - 1]) == null ? void 0 : d.id, T.value = setTimeout(() => {
516
516
  p.value = void 0;
517
517
  }, 2e3)));
518
518
  }
519
- function C(n) {
520
- var u;
521
- const l = (u = m.value) == null ? void 0 : u.filter((d) => d.id !== n).map((d) => d.tag);
522
- c("update:model-value", l);
519
+ function j(a) {
520
+ var d;
521
+ const l = (d = m.value) == null ? void 0 : d.filter((r) => r.id !== a).map((r) => r.tag);
522
+ f("update:model-value", l);
523
523
  }
524
- return (n, l) => (s(), $(
524
+ const F = i(() => t.size === "mini" || t.size === "xs" ? "mini" : t.size === "sm" ? "xs" : t.size === "md" ? "sm" : t.size === "lg" ? "md" : t.size === "xl" ? "lg" : t.size);
525
+ return (a, l) => (s(), B(
525
526
  "div",
526
527
  {
527
- class: k(["m-input-tags", [V.value, `--${n.color}`, `--${n.size}`, o.class, { "--block": n.block }]]),
528
- style: K(n.style),
529
- onFocusCapture: l[4] || (l[4] = (u) => I.value = !0),
530
- onBlurCapture: l[5] || (l[5] = (u) => I.value = !1)
528
+ class: z(["m-input-tags", [V.value, `--${a.color}`, `--${a.size}`, t.class, { "--block": a.block }]]),
529
+ style: K(a.style),
530
+ onFocusCapture: l[4] || (l[4] = (d) => h.value = !0),
531
+ onBlurCapture: l[5] || (l[5] = (d) => h.value = !1)
531
532
  },
532
533
  [
533
- L(de, { name: "maz-tags" }, {
534
+ O(de, { name: "maz-tags" }, {
534
535
  default: P(() => [
535
- (s(!0), $(
536
- ce,
536
+ (s(!0), B(
537
+ fe,
537
538
  null,
538
- fe(m.value, ({ tag: u, id: d }, y) => (s(), $("div", {
539
- key: `tag-${y}`,
539
+ ce(m.value, ({ tag: d, id: r }, w) => (s(), B("div", {
540
+ key: `tag-${w}`,
540
541
  class: "m-input-tags__wrapper"
541
542
  }, [
542
- L(X, {
543
+ O(X, {
543
544
  class: "m-input-tags__tag",
544
- disabled: n.disabled,
545
- size: n.size,
546
- color: g.value === d || p.value === d ? "danger" : n.color,
547
- "right-icon": g.value === d || p.value === d ? b(ve) : void 0,
548
- onClick: W((h) => C(d), ["stop"]),
549
- onMouseenter: (h) => g.value = d,
550
- onFocus: (h) => g.value = d,
551
- onMouseleave: l[0] || (l[0] = (h) => g.value = void 0),
552
- onBlur: l[1] || (l[1] = (h) => g.value = void 0)
545
+ disabled: a.disabled,
546
+ size: F.value,
547
+ color: b.value === r || p.value === r ? "danger" : a.color,
548
+ "right-icon": b.value === r || p.value === r ? y(ve) : void 0,
549
+ onClick: W((o) => j(r), ["stop"]),
550
+ onMouseenter: (o) => b.value = r,
551
+ onFocus: (o) => b.value = r,
552
+ onMouseleave: l[0] || (l[0] = (o) => b.value = void 0),
553
+ onBlur: l[1] || (l[1] = (o) => b.value = void 0)
553
554
  }, {
554
555
  default: P(() => [
555
556
  J(
556
- Q(u),
557
+ Q(d),
557
558
  1
558
559
  /* TEXT */
559
560
  )
@@ -569,36 +570,36 @@ const ke = {
569
570
  _: 1
570
571
  /* STABLE */
571
572
  }),
572
- L(je, G({
573
+ O(je, G({
573
574
  key: "input-tags",
574
- modelValue: z.value,
575
- "onUpdate:modelValue": l[2] || (l[2] = (u) => z.value = u)
576
- }, n.$attrs, {
577
- placeholder: n.placeholder,
578
- label: n.label,
579
- "aria-label": n.label || n.placeholder,
580
- error: n.error,
581
- hint: n.hint,
582
- success: n.success,
583
- warning: n.warning,
584
- disabled: n.disabled,
585
- color: n.color,
586
- block: n.block,
587
- size: n.size,
575
+ modelValue: g.value,
576
+ "onUpdate:modelValue": l[2] || (l[2] = (d) => g.value = d)
577
+ }, a.$attrs, {
578
+ placeholder: a.placeholder,
579
+ label: a.label,
580
+ "aria-label": a.label || a.placeholder,
581
+ error: a.error,
582
+ hint: a.hint,
583
+ success: a.success,
584
+ warning: a.warning,
585
+ disabled: a.disabled,
586
+ color: a.color,
587
+ block: a.block,
588
+ size: a.size,
588
589
  "no-border": "",
589
590
  class: "m-input-tags__input",
590
591
  onKeydown: [
591
- N(B, ["enter"]),
592
- N(O, ["delete"])
592
+ N(k, ["enter"]),
593
+ N(D, ["delete"])
593
594
  ],
594
- onBlur: l[3] || (l[3] = (u) => n.addTagsOnBlur ? B(u) : void 0)
595
+ onBlur: l[3] || (l[3] = (d) => a.addTagsOnBlur ? k(d) : void 0)
595
596
  }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
596
597
  ],
597
598
  38
598
599
  /* CLASS, STYLE, NEED_HYDRATION */
599
600
  ));
600
601
  }
601
- }), Me = /* @__PURE__ */ R(Ce, [["__scopeId", "data-v-f8b854e9"]]);
602
+ }), Me = /* @__PURE__ */ R(Ce, [["__scopeId", "data-v-f5008e65"]]);
602
603
  export {
603
604
  Me as M,
604
605
  R as _