maz-ui 3.47.2-beta.0 → 3.47.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/components/MazAccordion.mjs +36 -37
  2. package/components/MazAnimatedCounter.mjs +14 -16
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCarousel.mjs +1 -1
  7. package/components/MazChart.mjs +23 -32
  8. package/components/MazChecklist.mjs +1 -1
  9. package/components/MazCircularProgressBar.mjs +66 -71
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.mjs +1 -1
  12. package/components/MazDrawer.mjs +1 -1
  13. package/components/MazDropdown.mjs +162 -185
  14. package/components/MazExpandAnimation.mjs +20 -21
  15. package/components/MazGallery.mjs +1 -1
  16. package/components/MazInput.mjs +1 -1
  17. package/components/MazInputCode.mjs +30 -31
  18. package/components/MazInputNumber.mjs +1 -1
  19. package/components/MazInputPrice.mjs +1 -1
  20. package/components/MazInputTags.mjs +1 -1
  21. package/components/MazLink.mjs +18 -30
  22. package/components/MazPagination.mjs +1 -1
  23. package/components/MazPhoneNumberInput.mjs +1 -1
  24. package/components/MazPicker.mjs +1 -1
  25. package/components/MazRadio.mjs +37 -42
  26. package/components/MazRadioButtons.mjs +61 -66
  27. package/components/MazSelect.mjs +1 -1
  28. package/components/MazSlider.mjs +107 -116
  29. package/components/MazStepper.mjs +1 -1
  30. package/components/MazSwitch.mjs +24 -28
  31. package/components/MazTable.d.ts +6 -6
  32. package/components/MazTable.mjs +1 -1
  33. package/components/MazTabsBar.mjs +1 -1
  34. package/components/MazTextarea.mjs +32 -34
  35. package/components/assets/MazLink.css +1 -1
  36. package/components/assets/MazTable.css +1 -1
  37. package/components/chunks/{MazBadge-CvIiiTdM.mjs → MazBadge-CqppWg2j.mjs} +1 -1
  38. package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
  39. package/{modules/chunks/MazBtn-BSnVxud6.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
  40. package/components/chunks/{MazBtn-DVkwISlp.mjs → MazBtn-40lm8-AL.mjs} +37 -49
  41. package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
  42. package/components/chunks/{MazBtn-BO3G90L3.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
  43. package/components/chunks/{MazBtn-DJOUeES7.mjs → MazBtn-BijEMn4r.mjs} +37 -49
  44. package/components/chunks/MazBtn-BmrcK2af.mjs +106 -0
  45. package/components/chunks/MazBtn-C72_1uvu.mjs +106 -0
  46. package/components/chunks/MazBtn-CWloP6MI.mjs +111 -0
  47. package/components/chunks/MazBtn-CcyV4DCc.mjs +106 -0
  48. package/components/chunks/MazBtn-DENEMy-c.mjs +106 -0
  49. package/components/chunks/MazBtn-DfqRZvbB.mjs +106 -0
  50. package/components/chunks/MazBtn-UnZQuu6P.mjs +106 -0
  51. package/components/chunks/MazBtn-cDJlUVVY.mjs +106 -0
  52. package/components/chunks/MazBtn-hUslV7wO.mjs +106 -0
  53. package/components/chunks/{MazCard-FSXmHyhj.mjs → MazCard-BYB8y1_u.mjs} +18 -19
  54. package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
  55. package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
  56. package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
  57. package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
  58. package/components/chunks/{MazChecklist-CY1Cv70T.mjs → MazChecklist-C95Y4Hb-.mjs} +112 -118
  59. package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-khofH-7I.mjs} +66 -81
  60. package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +488 -0
  61. package/components/chunks/{MazExpandAnimation-Bkw_wFTi.mjs → MazExpandAnimation-MDimlZGj.mjs} +7 -8
  62. package/components/chunks/{MazGallery-BknvUeo1.mjs → MazGallery-CXQiXWFr.mjs} +32 -33
  63. package/components/chunks/{MazGallery-CZOokGAt.mjs → MazGallery-VTZUhBKC.mjs} +33 -34
  64. package/components/chunks/{MazIcon-z-jTiuyI.mjs → MazIcon-BF5TFzse.mjs} +1 -1
  65. package/components/chunks/{MazInput-oOA7gdLO.mjs → MazInput-DC3S-CVu.mjs} +44 -53
  66. package/components/chunks/{MazInput-BQoQSRyL.mjs → MazInput-DzWkS-g8.mjs} +40 -49
  67. package/components/chunks/{MazInput-CJQB68c-.mjs → MazInput-NE6H-10w.mjs} +42 -51
  68. package/components/chunks/{MazInputNumber-B4mQJcVB.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
  69. package/components/chunks/{MazInputPrice-BrxE5WVf.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
  70. package/components/chunks/{MazInputTags-BVCej_gW.mjs → MazInputTags-Dj3sW-e5.mjs} +181 -202
  71. package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
  72. package/components/chunks/{MazLoadingBar-Dwf55oHy.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
  73. package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
  74. package/components/chunks/{MazPhoneNumberInput-Cd25AzXc.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +500 -544
  75. package/components/chunks/{MazPicker-C78yxilJ.mjs → MazPicker-DwWiIYAR.mjs} +243 -264
  76. package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
  77. package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
  78. package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
  79. package/components/chunks/{MazSelect-CQDoUpgp.mjs → MazSelect-BJ07NVXQ.mjs} +149 -170
  80. package/components/chunks/{MazSelect-uCJPMXF-.mjs → MazSelect-CDV9Fx6m.mjs} +124 -136
  81. package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-Bb3f2t6w.mjs} +1 -1
  82. package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BcB0szZB.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-BT_717pD.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
  85. package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-BymqEMBk.mjs} +1 -1
  86. package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
  87. package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
  88. package/components/chunks/{MazSpinner-EFo8dM46.mjs → MazSpinner-CfiIXW8y.mjs} +1 -1
  89. package/components/chunks/MazSpinner-CykRbNHD.mjs +34 -0
  90. package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-D3-pqOh3.mjs} +1 -1
  91. package/components/chunks/MazSpinner-DS58mtzm.mjs +34 -0
  92. package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-Dmkr_r9u.mjs} +1 -1
  94. package/components/chunks/MazSpinner-DoRGA1RI.mjs +34 -0
  95. package/components/chunks/MazSpinner-eC03bFP5.mjs +34 -0
  96. package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-edxn0ncQ.mjs} +1 -1
  97. package/components/chunks/MazSpinner-f2Mc2eRO.mjs +34 -0
  98. package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +34 -0
  99. package/components/chunks/MazStepper-BREfkpUb.mjs +213 -0
  100. package/components/chunks/{MazTable-Cuz5QI08.mjs → MazTable-BJDPdIJB.mjs} +183 -227
  101. package/components/chunks/{MazTableCell-D_OTOJiy.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
  102. package/components/chunks/{MazTableRow-BTcVAyOy.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
  103. package/components/chunks/{MazTableTitle-BDA9G6Zw.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
  104. package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
  105. package/components/chunks/{MazTransitionExpand-C-FHhOGB.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
  106. package/modules/chunks/MazBtn-B_Xlvgbg.cjs +1 -0
  107. package/modules/chunks/MazBtn-Dsr06Zgg.mjs +106 -0
  108. package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-CkuzyufF.cjs} +1 -1
  109. package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-DEgoQbMj.mjs} +1 -1
  110. package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-BurN-1pb.mjs} +1 -1
  111. package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-jP4QsCNE.cjs} +1 -1
  112. package/modules/chunks/index-CUNN0eIB.cjs +124 -0
  113. package/modules/chunks/{index-x2F1l5sr.mjs → index-CxFUggmu.mjs} +257 -292
  114. package/modules/index.cjs +1 -1
  115. package/modules/index.mjs +1 -1
  116. package/nuxt/index.json +1 -1
  117. package/package.json +1 -1
  118. package/types/components/MazTable.vue.d.ts +6 -6
  119. package/types/modules/composables/useFormValidator/types.d.ts +5 -1
  120. package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
  121. package/types/modules/composables/useFormValidator/useFormValidator.d.ts +2 -2
  122. package/types/modules/composables/useFormValidator/utils.d.ts +12 -12
  123. package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
  124. package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
  125. package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
  126. package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
  127. package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
  128. package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
  129. package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
  130. package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
  131. package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
  132. package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
  133. package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
  134. package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
  135. package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
  136. package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
  137. package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
  138. package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
  139. package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
  140. package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
  141. package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
  142. package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
  143. package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
  144. package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
  145. package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
  146. package/modules/chunks/index-BPqjUr5e.cjs +0 -149
@@ -1,6 +1,6 @@
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;
1
+ import { openBlock as i, createElementBlock as B, createElementVNode as E, defineComponent as q, defineAsyncComponent as M, useAttrs as ae, useSlots as H, computed as s, createBlock as v, resolveDynamicComponent as L, normalizeClass as z, withCtx as P, renderSlot as V, unref as y, createCommentVNode as c, createVNode as O, useId as le, ref as $, 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 R } from "vue";
2
+ import '../assets/MazInputTags.css';function U(f) {
3
+ return !!f;
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(c, n) {
13
- return s(), B("svg", me, n[0] || (n[0] = [
12
+ function pe(f, n) {
13
+ return i(), B("svg", me, n[0] || (n[0] = [
14
14
  E(
15
15
  "path",
16
16
  {
@@ -53,112 +53,100 @@ const ve = { render: pe }, ye = {
53
53
  noElevation: { type: Boolean },
54
54
  justify: { default: "center" }
55
55
  },
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(
56
+ setup(f) {
57
+ const n = f, o = M(() => import("./MazSpinner-f2Mc2eRO.mjs")), d = M(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = ae(), b = H(), p = s(() => h ? "a" : g ? "router-link" : "button"), j = s(
58
58
  () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
59
- ), m = i(
59
+ ), m = s(
60
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), {
61
+ ), k = s(() => m.value ? "--cursor-default" : "--cursor-pointer"), T = s(() => `--is-${n.variant}`), D = s(() => n.loading && n.variant === "button"), C = s(() => !!b["left-icon"] || n.leftIcon), F = s(() => !!b["right-icon"] || n.rightIcon), a = s(() => C.value || F.value), l = s(() => n.icon || !!b.icon), u = s(() => p.value === "button" ? n.type : void 0), r = s(() => 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 = s(() => 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 (t, S) => (i(), v(L(p.value), {
63
63
  disabled: m.value || void 0,
64
64
  class: z(["m-btn", [
65
- `--${o.size}`,
66
- !o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
67
- T.value,
65
+ `--${t.size}`,
66
+ !t.fab && !t.rounded && t.roundedSize && `--rounded-${t.roundedSize}`,
67
+ j.value,
68
68
  k.value,
69
- V.value,
69
+ T.value,
70
70
  w.value,
71
71
  {
72
- "--block": o.block,
73
- "--no-underline": o.noUnderline,
74
- "--fab": o.fab,
75
- "--loading": o.loading,
72
+ "--block": t.block,
73
+ "--no-underline": t.noUnderline,
74
+ "--fab": t.fab,
75
+ "--loading": t.loading,
76
76
  "--disabled": m.value,
77
77
  "--icon": a.value,
78
- "--rounded": o.rounded,
79
- "--no-rounded": o.noRounded,
80
- "--no-padding": o.noPadding,
81
- "--no-elevation": o.noElevation
78
+ "--rounded": t.rounded,
79
+ "--no-rounded": t.noRounded,
80
+ "--no-padding": t.noPadding,
81
+ "--no-elevation": t.noElevation
82
82
  }
83
83
  ]]),
84
- type: d.value
84
+ type: u.value
85
85
  }, {
86
86
  default: P(() => [
87
- u(`
88
- @slot left-icon - The icon to display on the left of the button
89
- `),
90
- M(o.$slots, "left-icon", {}, () => [
91
- typeof o.leftIcon == "string" ? (s(), v(y(f), {
87
+ V(t.$slots, "left-icon", {}, () => [
88
+ typeof t.leftIcon == "string" ? (i(), v(y(d), {
92
89
  key: 0,
93
- name: o.leftIcon,
90
+ name: t.leftIcon,
94
91
  class: z([r.value])
95
- }, null, 8, ["name", "class"])) : o.leftIcon ? (s(), v(L(o.leftIcon), {
92
+ }, null, 8, ["name", "class"])) : t.leftIcon ? (i(), v(L(t.leftIcon), {
96
93
  key: 1,
97
94
  class: z([r.value])
98
- }, null, 8, ["class"])) : u("v-if", !0)
95
+ }, null, 8, ["class"])) : c("v-if", !0)
99
96
  ], !0),
100
- u(`
101
- @slot icon - The icon to display on the fab button
102
- `),
103
- l.value ? M(o.$slots, "icon", { key: 0 }, () => [
104
- typeof o.icon == "string" ? (s(), v(y(f), {
97
+ l.value ? V(t.$slots, "icon", { key: 0 }, () => [
98
+ typeof t.icon == "string" ? (i(), v(y(d), {
105
99
  key: 0,
106
- name: o.icon,
100
+ name: t.icon,
107
101
  class: z([r.value])
108
- }, null, 8, ["name", "class"])) : o.icon ? (s(), v(L(o.icon), {
102
+ }, null, 8, ["name", "class"])) : t.icon ? (i(), v(L(t.icon), {
109
103
  key: 1,
110
104
  class: z([r.value])
111
- }, null, 8, ["class"])) : u("v-if", !0)
112
- ], !0) : u("v-if", !0),
113
- u(`
114
- @slot default - The content of the button
115
- `),
116
- M(o.$slots, "default", {}, void 0, !0),
117
- u(`
118
- @slot left-icon - The icon to display on the left of the button
119
- `),
120
- F.value ? M(o.$slots, "right-icon", { key: 1 }, () => [
121
- typeof o.rightIcon == "string" ? (s(), v(y(f), {
105
+ }, null, 8, ["class"])) : c("v-if", !0)
106
+ ], !0) : c("v-if", !0),
107
+ V(t.$slots, "default", {}, void 0, !0),
108
+ F.value ? V(t.$slots, "right-icon", { key: 1 }, () => [
109
+ typeof t.rightIcon == "string" ? (i(), v(y(d), {
122
110
  key: 0,
123
- name: o.rightIcon,
111
+ name: t.rightIcon,
124
112
  class: z([r.value])
125
- }, null, 8, ["name", "class"])) : o.rightIcon ? (s(), v(L(o.rightIcon), {
113
+ }, null, 8, ["name", "class"])) : t.rightIcon ? (i(), v(L(t.rightIcon), {
126
114
  key: 1,
127
115
  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), {
116
+ }, null, 8, ["class"])) : c("v-if", !0)
117
+ ], !0) : c("v-if", !0),
118
+ D.value ? (i(), B("div", ye, [
119
+ O(y(o), {
132
120
  size: "2em",
133
- color: o.color
121
+ color: t.color
134
122
  }, null, 8, ["color"])
135
- ])) : u("v-if", !0)
123
+ ])) : c("v-if", !0)
136
124
  ]),
137
125
  _: 3
138
126
  /* FORWARDED */
139
127
  }, 8, ["disabled", "class", "type"]));
140
128
  }
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
- }, X = /* @__PURE__ */ R(be, [["__scopeId", "data-v-d3a1ed01"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
129
+ }), N = (f, n) => {
130
+ const o = f.__vccOpts || f;
131
+ for (const [d, h] of n)
132
+ o[d] = h;
133
+ return o;
134
+ }, X = /* @__PURE__ */ N(be, [["__scopeId", "data-v-d3a1ed01"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
147
135
  __proto__: null,
148
136
  default: X
149
137
  }, Symbol.toStringTag, { value: "Module" }));
150
138
  function ze({
151
- componentName: c,
139
+ componentName: f,
152
140
  providedId: n
153
141
  }) {
154
- const t = le();
155
- return i(() => n ?? `${c}-${t}`);
142
+ const o = le();
143
+ return s(() => n ?? `${f}-${o}`);
156
144
  }
157
- function he(c, n) {
158
- let t;
159
- return function(...f) {
160
- clearTimeout(t), t = setTimeout(() => {
161
- c.apply(this, f);
145
+ function he(f, n) {
146
+ let o;
147
+ return function(...d) {
148
+ clearTimeout(o), o = setTimeout(() => {
149
+ f.apply(this, d);
162
150
  }, n);
163
151
  };
164
152
  }
@@ -168,7 +156,7 @@ const ke = {
168
156
  }, Ie = { class: "m-input-wrapper-input" }, Be = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], we = { key: 0 }, $e = {
169
157
  key: 1,
170
158
  class: "m-input-wrapper-right"
171
- }, Te = /* @__PURE__ */ q({
159
+ }, je = /* @__PURE__ */ q({
172
160
  inheritAttrs: !1,
173
161
  __name: "MazInput",
174
162
  props: {
@@ -205,81 +193,81 @@ const ke = {
205
193
  block: { type: Boolean }
206
194
  },
207
195
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
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({
196
+ setup(f, { emit: n }) {
197
+ const o = f, d = n, h = M(() => Promise.resolve().then(() => ge)), g = M(() => import("./MazIcon-BbvBov5G.mjs")), b = M(() => import("./eye-slash-BoO00xzs.mjs")), p = M(() => import("./eye-f8zAUc30.mjs")), j = M(() => import("./check-BmubdHc_.mjs")), m = $(!1), k = $(!1), T = $(), D = ze({
210
198
  componentName: "MazInput",
211
- providedId: t.id
199
+ providedId: o.id
212
200
  });
213
201
  re(() => {
214
202
  var e;
215
- t.autoFocus && ((e = V.value) == null || e.focus());
203
+ o.autoFocus && ((e = T.value) == null || e.focus());
216
204
  });
217
- const j = i(() => t.type === "password"), F = i(() => m.value ? "text" : t.type), a = i(() => {
218
- if (!t.noBorder) {
219
- if (t.error)
205
+ const C = s(() => o.type === "password"), F = s(() => m.value ? "text" : o.type), a = s(() => {
206
+ if (!o.noBorder) {
207
+ if (o.error)
220
208
  return "maz-border-danger";
221
- if (t.success)
209
+ if (o.success)
222
210
  return "maz-border-success";
223
- if (t.warning)
211
+ if (o.warning)
224
212
  return "maz-border-warning";
225
- if (k.value || t.borderActive) {
226
- if (t.color === "black")
213
+ if (k.value || o.borderActive) {
214
+ if (o.color === "black")
227
215
  return "maz-border-black";
228
- if (t.color === "danger")
216
+ if (o.color === "danger")
229
217
  return "maz-border-danger";
230
- if (t.color === "info")
218
+ if (o.color === "info")
231
219
  return "maz-border-info";
232
- if (t.color === "primary")
220
+ if (o.color === "primary")
233
221
  return "maz-border-primary";
234
- if (t.color === "secondary")
222
+ if (o.color === "secondary")
235
223
  return "maz-border-secondary";
236
- if (t.color === "success")
224
+ if (o.color === "success")
237
225
  return "maz-border-success";
238
- if (t.color === "warning")
226
+ if (o.color === "warning")
239
227
  return "maz-border-warning";
240
- if (t.color === "white")
228
+ if (o.color === "white")
241
229
  return "maz-border-white";
242
230
  }
243
231
  return "--default-border";
244
232
  }
245
- }), l = H(), d = i(() => {
246
- const { required: e, placeholder: I } = t;
233
+ }), l = H(), u = s(() => {
234
+ const { required: e, placeholder: I } = o;
247
235
  if (I)
248
236
  return e ? `${I} *` : I;
249
- }), r = i(() => C.value !== void 0 && C.value !== ""), w = he(
237
+ }), r = s(() => S.value !== void 0 && S.value !== ""), w = he(
250
238
  (e) => {
251
- f("update:model-value", e);
239
+ d("update:model-value", e);
252
240
  },
253
- typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
241
+ typeof o.debounce == "number" ? o.debounce : o.debounceDelay ?? 500
254
242
  );
255
- function o(e) {
256
- if (t.debounce)
243
+ function t(e) {
244
+ if (o.debounce)
257
245
  return w(e);
258
- f("update:model-value", e);
246
+ d("update:model-value", e);
259
247
  }
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);
248
+ const S = s({
249
+ get: () => o.modelValue,
250
+ set: (e) => t(e)
251
+ }), Y = s(() => (!!o.label || !!o.hint) && (k.value || !!r.value || !!o.placeholder || ["date", "month", "week"].includes(o.type))), Z = s(() => !!o.label || !!o.hint);
264
252
  function x() {
265
- return !!l["right-icon"] || j.value || !!l["valid-button"] || t.validButton || !!t.rightIcon;
253
+ return !!l["right-icon"] || C.value || !!l["valid-button"] || o.validButton || !!o.rightIcon;
266
254
  }
267
255
  function _() {
268
- return !!l["left-icon"] || !!t.leftIcon;
256
+ return !!l["left-icon"] || !!o.leftIcon;
269
257
  }
270
258
  function ee(e) {
271
- f("focus", e), k.value = !0;
272
- }
273
- function te(e) {
274
- f("blur", e), k.value = !1;
259
+ d("focus", e), k.value = !0;
275
260
  }
276
261
  function oe(e) {
277
- return f("change", e);
262
+ d("blur", e), k.value = !1;
263
+ }
264
+ function te(e) {
265
+ return d("change", e);
278
266
  }
279
267
  function ne(e) {
280
- return f("input", e);
268
+ return d("input", e);
281
269
  }
282
- return (e, I) => (s(), B(
270
+ return (e, I) => (i(), B(
283
271
  "div",
284
272
  {
285
273
  class: z(["m-input", [
@@ -293,7 +281,7 @@ const ke = {
293
281
  "--has-state": e.error || e.warning || e.success,
294
282
  "--block": e.block
295
283
  },
296
- t.class,
284
+ o.class,
297
285
  `--${e.color}`,
298
286
  `--${e.size}`
299
287
  ]]),
@@ -310,48 +298,45 @@ const ke = {
310
298
  ]])
311
299
  },
312
300
  [
313
- _() ? (s(), B("div", ke, [
314
- u(`
315
- @slot left-icon - The icon to display on the left of the input
316
- `),
317
- e.$slots["left-icon"] || e.leftIcon ? M(e.$slots, "left-icon", { key: 0 }, () => [
318
- typeof e.leftIcon == "string" ? (s(), v(y(g), {
301
+ _() ? (i(), B("div", ke, [
302
+ e.$slots["left-icon"] || e.leftIcon ? V(e.$slots, "left-icon", { key: 0 }, () => [
303
+ typeof e.leftIcon == "string" ? (i(), v(y(g), {
319
304
  key: 0,
320
305
  name: e.leftIcon,
321
306
  class: "maz-text-xl maz-text-muted"
322
- }, null, 8, ["name"])) : e.leftIcon ? (s(), v(L(e.leftIcon), {
307
+ }, null, 8, ["name"])) : e.leftIcon ? (i(), v(L(e.leftIcon), {
323
308
  key: 1,
324
309
  class: "maz-text-xl maz-text-muted"
325
- })) : u("v-if", !0)
326
- ], !0) : u("v-if", !0)
327
- ])) : u("v-if", !0),
310
+ })) : c("v-if", !0)
311
+ ], !0) : c("v-if", !0)
312
+ ])) : c("v-if", !0),
328
313
  E("div", Ie, [
329
- ie(E("input", G({
314
+ se(E("input", G({
330
315
  id: y(D),
331
316
  ref_key: "input",
332
- ref: V,
333
- "onUpdate:modelValue": I[0] || (I[0] = (A) => C.value = A),
317
+ ref: T,
318
+ "onUpdate:modelValue": I[0] || (I[0] = (A) => S.value = A),
334
319
  type: F.value,
335
320
  name: e.name
336
321
  }, e.$attrs, {
337
322
  inputmode: e.inputmode,
338
- placeholder: d.value,
323
+ placeholder: u.value,
339
324
  "aria-label": e.label || e.placeholder,
340
325
  disabled: e.disabled,
341
326
  readonly: e.readonly,
342
327
  required: e.required,
343
328
  class: "m-input-input"
344
- }, se({
345
- blur: te,
329
+ }, ie({
330
+ blur: oe,
346
331
  focus: ee,
347
- change: oe,
332
+ change: te,
348
333
  input: ne
349
334
  }, !0), {
350
335
  onClick: I[1] || (I[1] = (A) => e.$emit("click", A))
351
336
  }), null, 16, Be), [
352
- [ue, C.value]
337
+ [ue, S.value]
353
338
  ]),
354
- e.label || e.hint ? (s(), B(
339
+ e.label || e.hint ? (i(), B(
355
340
  "span",
356
341
  {
357
342
  key: 0,
@@ -369,27 +354,24 @@ const ke = {
369
354
  1
370
355
  /* TEXT */
371
356
  ),
372
- e.required ? (s(), B("sup", we, "*")) : u("v-if", !0)
357
+ e.required ? (i(), B("sup", we, "*")) : c("v-if", !0)
373
358
  ],
374
359
  2
375
360
  /* CLASS */
376
- )) : u("v-if", !0)
361
+ )) : c("v-if", !0)
377
362
  ]),
378
- x() ? (s(), B("div", $e, [
379
- u(`
380
- @slot right-icon - The icon to display on the right of the input
381
- `),
382
- e.$slots["right-icon"] || e.rightIcon ? M(e.$slots, "right-icon", { key: 0 }, () => [
383
- typeof e.rightIcon == "string" ? (s(), v(y(g), {
363
+ x() ? (i(), B("div", $e, [
364
+ e.$slots["right-icon"] || e.rightIcon ? V(e.$slots, "right-icon", { key: 0 }, () => [
365
+ typeof e.rightIcon == "string" ? (i(), v(y(g), {
384
366
  key: 0,
385
367
  name: e.rightIcon,
386
368
  class: "maz-text-xl maz-text-muted"
387
- }, null, 8, ["name"])) : e.rightIcon ? (s(), v(L(e.rightIcon), {
369
+ }, null, 8, ["name"])) : e.rightIcon ? (i(), v(L(e.rightIcon), {
388
370
  key: 1,
389
371
  class: "maz-text-xl maz-text-muted"
390
- })) : u("v-if", !0)
391
- ], !0) : u("v-if", !0),
392
- j.value ? (s(), v(y(h), {
372
+ })) : c("v-if", !0)
373
+ ], !0) : c("v-if", !0),
374
+ C.value ? (i(), v(y(h), {
393
375
  key: 1,
394
376
  color: "transparent",
395
377
  tabindex: "-1",
@@ -397,21 +379,18 @@ const ke = {
397
379
  onClick: I[2] || (I[2] = W((A) => m.value = !m.value, ["stop"]))
398
380
  }, {
399
381
  default: P(() => [
400
- m.value ? (s(), v(y(b), {
382
+ m.value ? (i(), v(y(b), {
401
383
  key: 0,
402
384
  class: "maz-text-xl maz-text-muted"
403
- })) : (s(), v(y(p), {
385
+ })) : (i(), v(y(p), {
404
386
  key: 1,
405
387
  class: "maz-text-xl maz-text-muted"
406
388
  }))
407
389
  ]),
408
390
  _: 1
409
391
  /* STABLE */
410
- })) : u("v-if", !0),
411
- u(`
412
- @slot valid-button - Replace the valid button by your own
413
- `),
414
- e.$slots["valid-button"] || e.validButton ? M(e.$slots, "valid-button", { key: 2 }, () => [
392
+ })) : c("v-if", !0),
393
+ e.$slots["valid-button"] || e.validButton ? V(e.$slots, "valid-button", { key: 2 }, () => [
415
394
  O(y(h), {
416
395
  color: "transparent",
417
396
  disabled: e.disabled,
@@ -422,13 +401,13 @@ const ke = {
422
401
  type: "submit"
423
402
  }, {
424
403
  default: P(() => [
425
- O(y(T), { class: "maz-text-2xl maz-text-normal" })
404
+ O(y(j), { class: "maz-text-2xl maz-text-normal" })
426
405
  ]),
427
406
  _: 1
428
407
  /* STABLE */
429
408
  }, 8, ["disabled", "loading"])
430
- ], !0) : u("v-if", !0)
431
- ])) : u("v-if", !0)
409
+ ], !0) : c("v-if", !0)
410
+ ])) : c("v-if", !0)
432
411
  ],
433
412
  2
434
413
  /* CLASS */
@@ -438,7 +417,7 @@ const ke = {
438
417
  /* CLASS, STYLE */
439
418
  ));
440
419
  }
441
- }), je = /* @__PURE__ */ R(Te, [["__scopeId", "data-v-c42aaa7f"]]), Ce = /* @__PURE__ */ q({
420
+ }), Ce = /* @__PURE__ */ N(je, [["__scopeId", "data-v-c42aaa7f"]]), Se = /* @__PURE__ */ q({
442
421
  inheritAttrs: !1,
443
422
  __name: "MazInputTags",
444
423
  props: {
@@ -458,11 +437,11 @@ const ke = {
458
437
  hint: {}
459
438
  },
460
439
  emits: ["update:model-value"],
461
- setup(c, { emit: n }) {
462
- const t = c, f = n, h = $(!1), g = $(), b = $(), p = $(), T = $(), m = i(
440
+ setup(f, { emit: n }) {
441
+ const o = f, d = n, h = $(!1), g = $(), b = $(), p = $(), j = $(), m = s(
463
442
  () => {
464
443
  var a;
465
- return (a = t.modelValue) == null ? void 0 : a.map((l) => ({
444
+ return (a = o.modelValue) == null ? void 0 : a.map((l) => ({
466
445
  tag: l,
467
446
  id: Math.random().toString(36).slice(2, 11)
468
447
  }));
@@ -471,72 +450,72 @@ const ke = {
471
450
  function k(a) {
472
451
  if (g.value) {
473
452
  p.value = void 0, a.preventDefault();
474
- const d = g.value.trim().split(",").map((r) => r.trim() === "," ? void 0 : r.trim()).filter(U).filter(
453
+ const u = g.value.trim().split(",").map((r) => r.trim() === "," ? void 0 : r.trim()).filter(U).filter(
475
454
  (r) => {
476
- var w, o;
477
- return !((o = (w = t.modelValue) == null ? void 0 : w.filter(U)) != null && o.some((C) => C === r));
455
+ var w, t;
456
+ return !((t = (w = o.modelValue) == null ? void 0 : w.filter(U)) != null && t.some((S) => S === r));
478
457
  }
479
458
  );
480
- f(
459
+ d(
481
460
  "update:model-value",
482
- t.modelValue ? [...t.modelValue, ...d] : [...d]
461
+ o.modelValue ? [...o.modelValue, ...u] : [...u]
483
462
  ), g.value = void 0;
484
463
  }
485
464
  }
486
- const V = i(() => {
487
- if (t.error)
465
+ const T = s(() => {
466
+ if (o.error)
488
467
  return "maz-border-danger";
489
- if (t.success)
468
+ if (o.success)
490
469
  return "maz-border-success";
491
- if (t.warning)
470
+ if (o.warning)
492
471
  return "maz-border-warning";
493
472
  if (h.value) {
494
- if (t.color === "primary")
473
+ if (o.color === "primary")
495
474
  return "maz-border-primary";
496
- if (t.color === "secondary")
475
+ if (o.color === "secondary")
497
476
  return "maz-border-secondary";
498
- if (t.color === "info")
477
+ if (o.color === "info")
499
478
  return "maz-border-info";
500
- if (t.color === "danger")
479
+ if (o.color === "danger")
501
480
  return "maz-border-danger";
502
- if (t.color === "success")
481
+ if (o.color === "success")
503
482
  return "maz-border-success";
504
- if (t.color === "warning")
483
+ if (o.color === "warning")
505
484
  return "maz-border-warning";
506
- if (t.color === "black")
485
+ if (o.color === "black")
507
486
  return "maz-border-black";
508
- if (t.color === "white")
487
+ if (o.color === "white")
509
488
  return "maz-border-white";
510
489
  }
511
490
  return "maz-border-border dark:maz-border-color-lighter";
512
491
  });
513
492
  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(() => {
493
+ var a, l, u;
494
+ g.value || m.value && ((a = m.value) == null ? void 0 : a.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(() => {
516
495
  p.value = void 0;
517
496
  }, 2e3)));
518
497
  }
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);
498
+ function C(a) {
499
+ var u;
500
+ const l = (u = m.value) == null ? void 0 : u.filter((r) => r.id !== a).map((r) => r.tag);
501
+ d("update:model-value", l);
523
502
  }
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(
503
+ const F = s(() => o.size === "mini" || o.size === "xs" ? "mini" : o.size === "sm" ? "xs" : o.size === "md" ? "sm" : o.size === "lg" ? "md" : o.size === "xl" ? "lg" : o.size);
504
+ return (a, l) => (i(), B(
526
505
  "div",
527
506
  {
528
- class: z(["m-input-tags", [V.value, `--${a.color}`, `--${a.size}`, t.class, { "--block": a.block }]]),
507
+ class: z(["m-input-tags", [T.value, `--${a.color}`, `--${a.size}`, o.class, { "--block": a.block }]]),
529
508
  style: K(a.style),
530
- onFocusCapture: l[4] || (l[4] = (d) => h.value = !0),
531
- onBlurCapture: l[5] || (l[5] = (d) => h.value = !1)
509
+ onFocusCapture: l[4] || (l[4] = (u) => h.value = !0),
510
+ onBlurCapture: l[5] || (l[5] = (u) => h.value = !1)
532
511
  },
533
512
  [
534
513
  O(de, { name: "maz-tags" }, {
535
514
  default: P(() => [
536
- (s(!0), B(
537
- fe,
515
+ (i(!0), B(
516
+ ce,
538
517
  null,
539
- ce(m.value, ({ tag: d, id: r }, w) => (s(), B("div", {
518
+ fe(m.value, ({ tag: u, id: r }, w) => (i(), B("div", {
540
519
  key: `tag-${w}`,
541
520
  class: "m-input-tags__wrapper"
542
521
  }, [
@@ -546,15 +525,15 @@ const ke = {
546
525
  size: F.value,
547
526
  color: b.value === r || p.value === r ? "danger" : a.color,
548
527
  "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)
528
+ onClick: W((t) => C(r), ["stop"]),
529
+ onMouseenter: (t) => b.value = r,
530
+ onFocus: (t) => b.value = r,
531
+ onMouseleave: l[0] || (l[0] = (t) => b.value = void 0),
532
+ onBlur: l[1] || (l[1] = (t) => b.value = void 0)
554
533
  }, {
555
534
  default: P(() => [
556
535
  J(
557
- Q(d),
536
+ Q(u),
558
537
  1
559
538
  /* TEXT */
560
539
  )
@@ -570,10 +549,10 @@ const ke = {
570
549
  _: 1
571
550
  /* STABLE */
572
551
  }),
573
- O(je, G({
552
+ O(Ce, G({
574
553
  key: "input-tags",
575
554
  modelValue: g.value,
576
- "onUpdate:modelValue": l[2] || (l[2] = (d) => g.value = d)
555
+ "onUpdate:modelValue": l[2] || (l[2] = (u) => g.value = u)
577
556
  }, a.$attrs, {
578
557
  placeholder: a.placeholder,
579
558
  label: a.label,
@@ -589,18 +568,18 @@ const ke = {
589
568
  "no-border": "",
590
569
  class: "m-input-tags__input",
591
570
  onKeydown: [
592
- N(k, ["enter"]),
593
- N(D, ["delete"])
571
+ R(k, ["enter"]),
572
+ R(D, ["delete"])
594
573
  ],
595
- onBlur: l[3] || (l[3] = (d) => a.addTagsOnBlur ? k(d) : void 0)
574
+ onBlur: l[3] || (l[3] = (u) => a.addTagsOnBlur ? k(u) : void 0)
596
575
  }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
597
576
  ],
598
577
  38
599
578
  /* CLASS, STYLE, NEED_HYDRATION */
600
579
  ));
601
580
  }
602
- }), Me = /* @__PURE__ */ R(Ce, [["__scopeId", "data-v-f5008e65"]]);
581
+ }), Ve = /* @__PURE__ */ N(Se, [["__scopeId", "data-v-f5008e65"]]);
603
582
  export {
604
- Me as M,
605
- R as _
583
+ Ve as M,
584
+ N as _
606
585
  };