maz-ui 3.46.1-beta.6 → 3.47.1

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 (205) hide show
  1. package/components/MazAccordion.mjs +30 -30
  2. package/components/MazAvatar.mjs +1 -1
  3. package/components/MazBottomSheet.mjs +1 -1
  4. package/components/MazBtn.mjs +1 -1
  5. package/components/MazCard.mjs +1 -1
  6. package/components/MazCardSpotlight.mjs +15 -15
  7. package/components/MazCarousel.mjs +1 -1
  8. package/components/MazCheckbox.d.ts +1 -6
  9. package/components/MazChecklist.d.ts +76 -0
  10. package/components/MazChecklist.mjs +4 -0
  11. package/components/MazDialog.d.ts +1 -6
  12. package/components/MazDialog.mjs +1 -1
  13. package/components/MazDialogPromise.d.ts +2 -0
  14. package/components/MazDialogPromise.mjs +1 -1
  15. package/components/MazDrawer.mjs +1 -1
  16. package/components/MazDropdown.mjs +1 -1
  17. package/components/MazDropzone.d.ts +1 -22
  18. package/components/MazDropzone.mjs +1 -1
  19. package/components/MazFullscreenLoader.d.ts +4 -5
  20. package/components/MazFullscreenLoader.mjs +29 -20
  21. package/components/MazGallery.mjs +1 -1
  22. package/components/MazInput.d.ts +1 -8
  23. package/components/MazInput.mjs +1 -1
  24. package/components/MazInputCode.d.ts +1 -4
  25. package/components/MazInputNumber.mjs +1 -1
  26. package/components/MazInputPrice.mjs +1 -1
  27. package/components/MazInputTags.mjs +1 -1
  28. package/components/MazLazyImg.d.ts +2 -0
  29. package/components/MazLazyImg.mjs +1 -1
  30. package/components/MazPagination.mjs +1 -1
  31. package/components/MazPhoneNumberInput.d.ts +1 -20
  32. package/components/MazPhoneNumberInput.mjs +1 -1
  33. package/components/MazPicker.d.ts +1 -1
  34. package/components/MazPicker.mjs +1 -1
  35. package/components/MazPullToRefresh.mjs +1 -1
  36. package/components/MazRadio.d.ts +1 -6
  37. package/components/MazRadioButtons.d.ts +1 -6
  38. package/components/MazSelect.d.ts +1 -10
  39. package/components/MazSelect.mjs +1 -1
  40. package/components/MazSpinner.d.ts +13 -23
  41. package/components/MazSpinner.mjs +13 -16
  42. package/components/MazTable.d.ts +34 -6
  43. package/components/MazTable.mjs +1 -1
  44. package/components/assets/MazAccordion.css +1 -1
  45. package/components/assets/MazBtn.css +1 -1
  46. package/components/assets/MazCardSpotlight.css +1 -1
  47. package/components/assets/MazChecklist.css +1 -0
  48. package/components/assets/MazDialog.css +1 -1
  49. package/components/assets/MazDialogPromise.css +1 -1
  50. package/components/assets/MazDropdown.css +1 -1
  51. package/components/assets/MazInputNumber.css +1 -1
  52. package/components/assets/MazInputTags.css +1 -1
  53. package/components/assets/MazLazyImg.css +1 -1
  54. package/components/assets/MazPagination.css +1 -1
  55. package/components/assets/MazPhoneNumberInput.css +1 -1
  56. package/components/assets/MazPicker.css +1 -1
  57. package/components/assets/MazSpinner.css +1 -1
  58. package/components/assets/MazTabsBar.css +1 -1
  59. package/components/chunks/{MazAvatar-BmaVqPui.mjs → MazAvatar-DFoZvWmg.mjs} +1 -1
  60. package/components/chunks/{MazBottomSheet-DeAah_or.mjs → MazBottomSheet-DqK0EOsq.mjs} +1 -1
  61. package/components/chunks/{MazBtn-zMzxqcCs.mjs → MazBtn-BRUaoP8j.mjs} +11 -11
  62. package/components/chunks/MazBtn-BRnLMzhy.mjs +118 -0
  63. package/components/chunks/MazBtn-BhnOApJu.mjs +118 -0
  64. package/components/chunks/{MazBtn-CESOVC-a.mjs → MazBtn-C28vKP_v.mjs} +2 -2
  65. package/components/chunks/{MazBtn-BXvObcWn.mjs → MazBtn-CnqRnXh_.mjs} +3 -3
  66. package/components/chunks/{MazBtn-CRpqDW12.mjs → MazBtn-CweCwE_4.mjs} +3 -3
  67. package/components/chunks/{MazBtn-C4xZC-A2.mjs → MazBtn-D6Jxw9Nr.mjs} +3 -3
  68. package/components/chunks/MazBtn-D7IKoL2c.mjs +118 -0
  69. package/components/chunks/{MazBtn-C2htID_X.mjs → MazBtn-DlD5m7T4.mjs} +3 -3
  70. package/components/chunks/{MazBtn-CEFfMm7k.mjs → MazBtn-Dt8lr0GH.mjs} +3 -3
  71. package/components/chunks/{MazBtn-C5IbN0rp.mjs → MazBtn-DzBXfedt.mjs} +11 -11
  72. package/components/chunks/MazBtn-Mu18egu5.mjs +118 -0
  73. package/components/chunks/{MazBtn-C2dJYsnq.mjs → MazBtn-TkePGm5o.mjs} +3 -3
  74. package/components/chunks/{MazBtn-BV212IYv.mjs → MazBtn-igor8wRn.mjs} +3 -3
  75. package/components/chunks/{MazCard-BF-2_gZV.mjs → MazCard-CfkvpcGL.mjs} +1 -1
  76. package/components/chunks/{MazCarousel-DVBUt8NL.mjs → MazCarousel-BEl86YGW.mjs} +1 -1
  77. package/components/chunks/{MazCheckbox-CEfJco3U.mjs → MazCheckbox-BKCo6EzO.mjs} +1 -1
  78. package/components/chunks/{MazCheckbox-CeVxgVY8.mjs → MazCheckbox-Byqz8JJB.mjs} +1 -1
  79. package/components/chunks/{MazCheckbox-mgtQBs4K.mjs → MazCheckbox-CI8ml-P8.mjs} +1 -1
  80. package/components/chunks/MazChecklist-BLxsNHMP.mjs +484 -0
  81. package/components/chunks/{MazDialog-fn7vXgBg.mjs → MazDialog-CPgFpAlq.mjs} +50 -54
  82. package/components/chunks/{MazDialogPromise-C8dpQb5k.mjs → MazDialogPromise-BCCdkrea.mjs} +122 -119
  83. package/components/chunks/{MazDropzone-D32tLLpO.mjs → MazDropzone-DKFkgqqD.mjs} +1 -1
  84. package/components/chunks/{MazGallery-CXJsK5ve.mjs → MazGallery-BKL7gfrz.mjs} +2 -2
  85. package/components/chunks/{MazGallery-BOmH2smL.mjs → MazGallery-BMFwld84.mjs} +1 -1
  86. package/components/chunks/{MazIcon-BXX3RaoN.mjs → MazIcon-D8V8ixhf.mjs} +1 -1
  87. package/components/chunks/{MazInput-Dnwxraz4.mjs → MazInput-CBiCdd0F.mjs} +1 -1
  88. package/components/chunks/MazInput-Dx2cCzFS.mjs +290 -0
  89. package/components/chunks/{MazInput-AcA93-8Q.mjs → MazInput-O6Q41Fm0.mjs} +2 -2
  90. package/components/chunks/{MazInputNumber-OY_UqCMs.mjs → MazInputNumber-DYPVUz4k.mjs} +2 -2
  91. package/components/chunks/{MazInputPrice-DvVAZa12.mjs → MazInputPrice-DZD7ZZpm.mjs} +1 -1
  92. package/components/chunks/{MazInputTags-DKlGT2IB.mjs → MazInputTags-CxXBsTdM.mjs} +2 -2
  93. package/components/chunks/{MazLazyImg-i-z6hcwF.mjs → MazLazyImg-B-6PQWEi.mjs} +9 -8
  94. package/components/chunks/{MazLazyImg-RHZ9wOy2.mjs → MazLazyImg-C03sUOXs.mjs} +6 -5
  95. package/components/chunks/{MazLoadingBar-By1umvdC.mjs → MazLoadingBar-Di2OIrPD.mjs} +1 -1
  96. package/components/chunks/{MazPagination-BL9LU84U.mjs → MazPagination-CHTMRRqE.mjs} +2 -2
  97. package/components/chunks/{MazPhoneNumberInput-C7gUk5lg.mjs → MazPhoneNumberInput-C4TX1tGw.mjs} +112 -111
  98. package/components/chunks/{MazPicker-Dhm3u2MN.mjs → MazPicker-BcQ_-AJH.mjs} +3 -3
  99. package/components/chunks/{MazPickerMonthSwitcher-ck8cl1-N.mjs → MazPickerMonthSwitcher-hCAkEd5r.mjs} +1 -1
  100. package/components/chunks/{MazPickerShortcuts-hEpUqVC-.mjs → MazPickerShortcuts-vpLyw1de.mjs} +1 -1
  101. package/components/chunks/{MazPickerYearSwitcher-CmMxOc69.mjs → MazPickerYearSwitcher-DvC79vrt.mjs} +1 -1
  102. package/components/chunks/{MazPullToRefresh-CdVBfDl9.mjs → MazPullToRefresh-CFQX0soS.mjs} +1 -1
  103. package/components/chunks/{MazSelect-ed445MXs.mjs → MazSelect-BXzgSKmL.mjs} +2 -2
  104. package/components/chunks/{MazSelect-CGsMRdr7.mjs → MazSelect-Baj2BQH7.mjs} +3 -3
  105. package/components/chunks/MazSpinner-B5lezvu4.mjs +34 -0
  106. package/components/chunks/MazSpinner-B8akphXs.mjs +34 -0
  107. package/components/chunks/MazSpinner-Bvb-lKER.mjs +34 -0
  108. package/components/chunks/MazSpinner-C-z3-68w.mjs +34 -0
  109. package/components/chunks/MazSpinner-C1SiKhfK.mjs +34 -0
  110. package/components/chunks/MazSpinner-CAbYLlEZ.mjs +34 -0
  111. package/components/chunks/MazSpinner-Cb3_S0zT.mjs +34 -0
  112. package/components/chunks/MazSpinner-Cg26sBU2.mjs +34 -0
  113. package/components/chunks/MazSpinner-Cqp-BMvL.mjs +34 -0
  114. package/components/chunks/MazSpinner-CsEQ9EXb.mjs +34 -0
  115. package/components/chunks/MazSpinner-CvT-9sC7.mjs +34 -0
  116. package/components/chunks/MazSpinner-DH6C15pU.mjs +34 -0
  117. package/components/chunks/MazSpinner-DjM6ktPY.mjs +34 -0
  118. package/components/chunks/MazSpinner-DlMKBtyt.mjs +34 -0
  119. package/components/chunks/{MazSpinner-BCOeuzTB.mjs → MazSpinner-Du5o8JC_.mjs} +15 -14
  120. package/components/chunks/MazSpinner-DwSGm0-X.mjs +34 -0
  121. package/components/chunks/MazSpinner-Dyf9yb51.mjs +34 -0
  122. package/components/chunks/MazSpinner-M4r0cykl.mjs +34 -0
  123. package/components/chunks/MazSpinner-QHjOczon.mjs +34 -0
  124. package/components/chunks/MazSpinner-XB6tX3Ld.mjs +34 -0
  125. package/components/chunks/MazSpinner-cqcpf_FX.mjs +34 -0
  126. package/components/chunks/MazSpinner-f6pBzqbu.mjs +34 -0
  127. package/components/chunks/MazSpinner-yPkPj7Q8.mjs +34 -0
  128. package/components/chunks/MazSpinner-yr9xVdAa.mjs +34 -0
  129. package/components/chunks/{MazTable-QwG-Kh88.mjs → MazTable-CulBGLaj.mjs} +1 -1
  130. package/components/chunks/{MazTableCell-BSNyqTSX.mjs → MazTableCell-BXDbkEJq.mjs} +1 -1
  131. package/components/chunks/{MazTableRow-CgubMdrX.mjs → MazTableRow-Ds3CDEit.mjs} +1 -1
  132. package/components/chunks/{MazTableTitle-h4dattYD.mjs → MazTableTitle-uirsgvk_.mjs} +1 -1
  133. package/components/chunks/{MazTransitionExpand-BvqRDM9d.mjs → MazTransitionExpand-4Ll_5LDO.mjs} +1 -1
  134. package/components/index.d.ts +1 -0
  135. package/components/index.mjs +1 -0
  136. package/css/main.css +1 -1
  137. package/modules/assets/MazBtn.css +1 -1
  138. package/modules/assets/MazSpinner.css +1 -1
  139. package/modules/assets/index.css +1 -1
  140. package/modules/chunks/{MazBtn-DvffpPyV.mjs → MazBtn-CTqI4qhg.mjs} +3 -3
  141. package/modules/chunks/{MazBtn-DeAZcD0R.cjs → MazBtn-D_CpNgpD.cjs} +2 -2
  142. package/modules/chunks/{MazIcon-D2B0umvn.mjs → MazIcon-BB0DMfOc.mjs} +1 -1
  143. package/modules/chunks/{MazIcon-BiwOZEZl.cjs → MazIcon-BtomZnkQ.cjs} +1 -1
  144. package/modules/chunks/MazSpinner-BASKjaLe.cjs +1 -0
  145. package/modules/chunks/MazSpinner-CDJhmIRl.mjs +34 -0
  146. package/modules/chunks/index-BIX1NMzX.cjs +149 -0
  147. package/modules/chunks/{index-C34aEXzu.mjs → index-C2yAjM0P.mjs} +1166 -968
  148. package/modules/index.cjs +1 -1
  149. package/modules/index.mjs +37 -35
  150. package/nuxt/index.d.mts +20 -20
  151. package/nuxt/index.d.ts +20 -20
  152. package/nuxt/index.json +1 -1
  153. package/nuxt/index.mjs +26 -5
  154. package/package.json +10 -10
  155. package/resolvers/index.cjs +1 -1
  156. package/resolvers/index.mjs +3 -1
  157. package/types/components/MazCheckbox.vue.d.ts +1 -6
  158. package/types/components/MazChecklist.vue.d.ts +76 -0
  159. package/types/components/MazDialog.vue.d.ts +1 -6
  160. package/types/components/MazDialogPromise.vue.d.ts +2 -0
  161. package/types/components/MazDropzone.vue.d.ts +1 -22
  162. package/types/components/MazFullscreenLoader.vue.d.ts +4 -5
  163. package/types/components/MazInput.vue.d.ts +1 -8
  164. package/types/components/MazInputCode.vue.d.ts +1 -4
  165. package/types/components/MazLazyImg.vue.d.ts +2 -0
  166. package/types/components/MazPhoneNumberInput.vue.d.ts +1 -20
  167. package/types/components/MazPicker.vue.d.ts +1 -1
  168. package/types/components/MazRadio.vue.d.ts +1 -6
  169. package/types/components/MazRadioButtons.vue.d.ts +1 -6
  170. package/types/components/MazSelect.vue.d.ts +1 -10
  171. package/types/components/MazSpinner.vue.d.ts +13 -23
  172. package/types/components/MazTable.vue.d.ts +34 -6
  173. package/types/components/index.d.ts +1 -0
  174. package/types/modules/composables/index.d.ts +1 -0
  175. package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
  176. package/types/modules/helpers/idle-timeout/types.d.ts +5 -3
  177. package/types/modules/helpers/normalize-string.d.ts +1 -2
  178. package/components/chunks/MazBtn-CLFly8Ie.mjs +0 -118
  179. package/components/chunks/MazBtn-D2H26ExI.mjs +0 -118
  180. package/components/chunks/MazBtn-y4vRRWDg.mjs +0 -118
  181. package/components/chunks/MazSpinner-5w4SkOOl.mjs +0 -37
  182. package/components/chunks/MazSpinner-Akyx5wgU.mjs +0 -37
  183. package/components/chunks/MazSpinner-B2dsE23u.mjs +0 -37
  184. package/components/chunks/MazSpinner-BakExtKd.mjs +0 -37
  185. package/components/chunks/MazSpinner-ByWRmwig.mjs +0 -37
  186. package/components/chunks/MazSpinner-C9meLNrb.mjs +0 -37
  187. package/components/chunks/MazSpinner-CKOy0M1T.mjs +0 -37
  188. package/components/chunks/MazSpinner-CL6orjX7.mjs +0 -37
  189. package/components/chunks/MazSpinner-CQTq0J6f.mjs +0 -37
  190. package/components/chunks/MazSpinner-CQbd8Ovn.mjs +0 -37
  191. package/components/chunks/MazSpinner-CeZk8jA9.mjs +0 -37
  192. package/components/chunks/MazSpinner-Coq7N5iG.mjs +0 -37
  193. package/components/chunks/MazSpinner-CqS3onAE.mjs +0 -37
  194. package/components/chunks/MazSpinner-D1zj-581.mjs +0 -37
  195. package/components/chunks/MazSpinner-D2pssr8S.mjs +0 -37
  196. package/components/chunks/MazSpinner-DJ2t85tY.mjs +0 -37
  197. package/components/chunks/MazSpinner-DbaTlD5B.mjs +0 -37
  198. package/components/chunks/MazSpinner-DgJ9tVv_.mjs +0 -37
  199. package/components/chunks/MazSpinner-DoKvoICM.mjs +0 -37
  200. package/components/chunks/MazSpinner-Dscrgjm1.mjs +0 -41
  201. package/components/chunks/MazSpinner-Oy4E193R.mjs +0 -37
  202. package/components/chunks/MazSpinner-SgVUnAHk.mjs +0 -37
  203. package/modules/chunks/MazSpinner-CZIYnX05.cjs +0 -1
  204. package/modules/chunks/MazSpinner-Csgl_Uho.mjs +0 -37
  205. package/modules/chunks/index-B6Pf_QhC.cjs +0 -149
@@ -0,0 +1,484 @@
1
+ import { defineComponent as O, useCssVars as j, ref as A, computed as f, onMounted as K, onUnmounted as P, openBlock as p, createElementBlock as v, normalizeClass as $, normalizeStyle as N, createElementVNode as m, renderSlot as C, withDirectives as q, vShow as F, useId as T, unref as V, mergeProps as D, createVNode as x, createTextVNode as B, toDisplayString as I, createCommentVNode as b, defineAsyncComponent as _, watch as H, withCtx as Z, Fragment as G, renderList as J } from "vue";
2
+ import '../assets/MazChecklist.css';const W = {
3
+ removeAccents: !0,
4
+ caseSensitive: !1,
5
+ replaceSpaces: !0,
6
+ removeSpecialCharacters: !1,
7
+ trim: !0,
8
+ normalizeSpaces: !0,
9
+ removeNumbers: !1,
10
+ customNormalizationForms: ["NFC", "NFKD"]
11
+ };
12
+ function U(c, r) {
13
+ const e = { ...W, ...r }, s = {
14
+ À: "A",
15
+ Á: "A",
16
+ Â: "A",
17
+ Ã: "A",
18
+ Ä: "A",
19
+ Å: "A",
20
+ à: "a",
21
+ á: "a",
22
+ â: "a",
23
+ ã: "a",
24
+ ä: "a",
25
+ å: "a",
26
+ È: "E",
27
+ É: "E",
28
+ Ê: "E",
29
+ Ë: "E",
30
+ è: "e",
31
+ é: "e",
32
+ ê: "e",
33
+ ë: "e",
34
+ Î: "I",
35
+ Ï: "I",
36
+ í: "I",
37
+ î: "i",
38
+ ï: "i",
39
+ Ô: "O",
40
+ Õ: "O",
41
+ Ö: "O",
42
+ Ø: "O",
43
+ ô: "o",
44
+ õ: "o",
45
+ ö: "o",
46
+ ø: "o",
47
+ Ù: "U",
48
+ Ú: "U",
49
+ Û: "U",
50
+ Ü: "U",
51
+ ù: "u",
52
+ ú: "u",
53
+ û: "u",
54
+ ü: "u",
55
+ Ç: "C",
56
+ ç: "c",
57
+ ÿ: "y",
58
+ Ñ: "N",
59
+ ñ: "n",
60
+ ó: "o"
61
+ };
62
+ let a = c.toString();
63
+ if (e.trim && (a = a.trim()), e.normalizeSpaces && (a = a.replaceAll(/\s+/g, " ")), e.replaceSpaces && (a = a.replaceAll(" ", "-")), e.removeNumbers && (a = a.replaceAll(/\d/g, "")), e.removeAccents && (a = a.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (u) => s[u] || u), a = a.replaceAll(/[\u0300-\u036F]/g, "")), e.caseSensitive === !1 && (a = a.toLowerCase()), e.removeSpecialCharacters && (a = a.replaceAll(/[^\dA-Z-]/gi, "")), e.trim && (a = a.trim()), e.customNormalizationForms)
64
+ for (const u of e.customNormalizationForms)
65
+ a = a.normalize(u);
66
+ return a;
67
+ }
68
+ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
69
+ __name: "MazCardSpotlight",
70
+ props: {
71
+ color: { default: "primary" },
72
+ noElevation: { type: Boolean, default: !1 },
73
+ padding: { type: Boolean, default: !0 },
74
+ contentClass: { default: void 0 },
75
+ contentStyle: { type: [Boolean, null, String, Object, Array], default: void 0 },
76
+ innerOpacity: { default: 0.95 }
77
+ },
78
+ setup(c) {
79
+ j((i) => ({
80
+ "4f499add": i.innerOpacity,
81
+ "2e65a0ad": y.value
82
+ }));
83
+ const r = c, e = A(), s = A(), a = A(!1);
84
+ function u({ clientX: i, clientY: g }) {
85
+ var n, d, z;
86
+ a.value = !0;
87
+ const t = (n = s.value) == null ? void 0 : n.getBoundingClientRect();
88
+ t && ((z = (d = e.value) == null ? void 0 : d.animate) == null || z.call(
89
+ d,
90
+ [
91
+ {
92
+ transform: `translate(${i - t.left - t.width / 2}px,${g - t.top - t.height / 2}px)`
93
+ }
94
+ ],
95
+ {
96
+ duration: 300,
97
+ fill: "forwards"
98
+ }
99
+ ));
100
+ }
101
+ const y = f(() => `var(--maz-color-${r.color}-alpha)`), h = f(() => `var(--maz-color-${r.color}-alpha-20)`);
102
+ return K(() => {
103
+ window.addEventListener("mousemove", u);
104
+ }), P(() => {
105
+ window.removeEventListener("mousemove", u);
106
+ }), (i, g) => (p(), v(
107
+ "div",
108
+ {
109
+ class: $(["m-card-spotlight", { "maz-elevation": !i.noElevation }]),
110
+ style: N({ backgroundColor: h.value })
111
+ },
112
+ [
113
+ m("div", X, [
114
+ m(
115
+ "div",
116
+ {
117
+ class: $(["content", [{ "maz-p-4": i.padding }, i.contentClass]])
118
+ },
119
+ [
120
+ C(i.$slots, "default", {}, void 0, !0)
121
+ ],
122
+ 2
123
+ /* CLASS */
124
+ )
125
+ ]),
126
+ q(m(
127
+ "div",
128
+ {
129
+ ref_key: "blobElement",
130
+ ref: e,
131
+ class: "blob",
132
+ style: N({ backgroundColor: y.value })
133
+ },
134
+ null,
135
+ 4
136
+ /* STYLE */
137
+ ), [
138
+ [F, a.value]
139
+ ]),
140
+ q(m(
141
+ "div",
142
+ {
143
+ ref_key: "fakeblobElement",
144
+ ref: s,
145
+ class: "fakeblob"
146
+ },
147
+ null,
148
+ 512
149
+ /* NEED_PATCH */
150
+ ), [
151
+ [F, a.value]
152
+ ])
153
+ ],
154
+ 6
155
+ /* CLASS, STYLE */
156
+ ));
157
+ }
158
+ }), L = (c, r) => {
159
+ const e = c.__vccOpts || c;
160
+ for (const [s, a] of r)
161
+ e[s] = a;
162
+ return e;
163
+ }, ee = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-31abf9ff"]]);
164
+ function oe({
165
+ componentName: c,
166
+ providedId: r
167
+ }) {
168
+ const e = T();
169
+ return f(() => r ?? `${c}-${e}`);
170
+ }
171
+ const te = {
172
+ xmlns: "http://www.w3.org/2000/svg",
173
+ width: "1em",
174
+ height: "1em",
175
+ fill: "none",
176
+ viewBox: "0 0 24 24"
177
+ };
178
+ function R(c, r) {
179
+ return p(), v("svg", te, r[0] || (r[0] = [
180
+ m(
181
+ "path",
182
+ {
183
+ stroke: "currentColor",
184
+ "stroke-linecap": "round",
185
+ "stroke-linejoin": "round",
186
+ "stroke-width": "1.5",
187
+ d: "m4.5 12.75 6 6 9-13.5"
188
+ },
189
+ null,
190
+ -1
191
+ /* HOISTED */
192
+ )
193
+ ]));
194
+ }
195
+ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
196
+ __proto__: null,
197
+ default: Q,
198
+ render: R
199
+ }, Symbol.toStringTag, { value: "Module" })), ae = ["for", "aria-checked"], le = ["id", "checked", "disabled", "name"], re = { class: "m-checkbox__text" }, se = /* @__PURE__ */ O({
200
+ inheritAttrs: !1,
201
+ __name: "MazCheckbox",
202
+ props: {
203
+ style: { default: void 0 },
204
+ class: { default: void 0 },
205
+ modelValue: { default: void 0 },
206
+ id: { default: void 0 },
207
+ color: { default: "primary" },
208
+ value: { type: [String, Number, Boolean], default: void 0 },
209
+ name: { default: "m-checkbox" },
210
+ size: { default: "md" },
211
+ label: { default: void 0 },
212
+ disabled: { type: Boolean, default: !1 },
213
+ error: { type: Boolean },
214
+ success: { type: Boolean },
215
+ warning: { type: Boolean },
216
+ hint: {}
217
+ },
218
+ emits: ["update:model-value", "change", "blur", "focus"],
219
+ setup(c, { emit: r }) {
220
+ j((o) => ({
221
+ b7df6194: i.value,
222
+ "89a0ef50": y.value,
223
+ "199d7f11": g.value,
224
+ b0e1d658: t.value
225
+ }));
226
+ const e = c, s = r, a = oe({
227
+ componentName: "MazCheckbox",
228
+ providedId: e.id
229
+ }), u = f(
230
+ () => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
231
+ ), y = f(() => {
232
+ switch (e.size) {
233
+ case "xl":
234
+ return "2rem";
235
+ case "lg":
236
+ return "1.75rem";
237
+ case "sm":
238
+ return "1.25rem";
239
+ case "xs":
240
+ return "1rem";
241
+ case "mini":
242
+ return "0.75rem";
243
+ default:
244
+ return "1.5rem";
245
+ }
246
+ }), h = f(() => {
247
+ switch (e.size) {
248
+ case "xl":
249
+ return "maz-text-2xl";
250
+ case "lg":
251
+ return "maz-text-xl";
252
+ case "sm":
253
+ return "maz-text-base";
254
+ case "xs":
255
+ return "maz-text-sm";
256
+ case "mini":
257
+ return "maz-text-xs";
258
+ default:
259
+ return "maz-text-lg";
260
+ }
261
+ }), i = f(() => e.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${e.color}-contrast)`), g = f(() => e.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${e.color})`), t = f(() => e.error ? "var(--maz-color-danger)" : e.warning ? "var(--maz-color-warning)" : e.success ? "var(--maz-color-success)" : ["black", "transparent", "theme"].includes(e.color) ? "var(--maz-color-muted)" : `var(--maz-color-${e.color}-alpha)`);
262
+ function n(o) {
263
+ ["Space"].includes(o.code) && (o.preventDefault(), z(e.value ?? !e.modelValue));
264
+ }
265
+ function d(o) {
266
+ return typeof o == "boolean" && (typeof e.modelValue == "boolean" || e.modelValue === void 0 || e.modelValue === null) ? !e.modelValue : Array.isArray(e.modelValue) && typeof o != "boolean" ? e.modelValue.includes(o) ? e.modelValue.filter((l) => l !== o) : [...e.modelValue, o] : [o];
267
+ }
268
+ function z(o) {
269
+ const l = d(o);
270
+ s("update:model-value", l), s("change", l);
271
+ }
272
+ const k = A();
273
+ function E(o) {
274
+ var l;
275
+ (l = k.value) == null || l.dispatchEvent(new Event("blur")), s("blur", o);
276
+ }
277
+ function w(o) {
278
+ var l;
279
+ (l = k.value) == null || l.dispatchEvent(new Event("focus")), s("focus", o);
280
+ }
281
+ return (o, l) => (p(), v("label", {
282
+ for: V(a),
283
+ class: $(["m-checkbox", [{ "--disabled": o.disabled, "--error": o.error, "--warning": o.warning, "--success": o.success }, e.class]]),
284
+ tabindex: "0",
285
+ style: N(o.style),
286
+ role: "checkbox",
287
+ "aria-checked": u.value,
288
+ onKeydown: n,
289
+ onBlur: E,
290
+ onFocus: w
291
+ }, [
292
+ m("input", D({
293
+ id: V(a),
294
+ ref_key: "inputRef",
295
+ ref: k,
296
+ checked: u.value
297
+ }, o.$attrs, {
298
+ tabindex: "-1",
299
+ disabled: o.disabled,
300
+ name: o.name,
301
+ type: "checkbox",
302
+ onChange: l[0] || (l[0] = (S) => {
303
+ var M;
304
+ return z(o.value ?? ((M = S == null ? void 0 : S.target) == null ? void 0 : M.checked));
305
+ })
306
+ }), null, 16, le),
307
+ m("span", null, [
308
+ x(V(Q), {
309
+ class: $(["check-icon", h.value])
310
+ }, null, 8, ["class"])
311
+ ]),
312
+ m("div", re, [
313
+ C(o.$slots, "default", { value: o.value }, () => [
314
+ B(
315
+ I(o.label),
316
+ 1
317
+ /* TEXT */
318
+ )
319
+ ], !0),
320
+ o.hint ? (p(), v(
321
+ "span",
322
+ {
323
+ key: 0,
324
+ class: $(["m-checkbox__hint", {
325
+ "--error": o.error,
326
+ "--success": o.success,
327
+ "--warning": o.warning
328
+ }])
329
+ },
330
+ I(o.hint),
331
+ 3
332
+ /* TEXT, CLASS */
333
+ )) : b("v-if", !0)
334
+ ])
335
+ ], 46, ae));
336
+ }
337
+ }), ne = /* @__PURE__ */ L(se, [["__scopeId", "data-v-178c6a46"]]), ce = { class: "m-checklist maz-flex maz-flex-col maz-gap-4" }, ie = {
338
+ key: 0,
339
+ for: "query",
340
+ class: "maz-flex maz-items-center maz-justify-between maz-gap-4"
341
+ }, ue = {
342
+ key: 0,
343
+ class: "maz-flex-none maz-truncate"
344
+ }, de = {
345
+ key: 0,
346
+ class: "maz-flex maz-h-full maz-flex-center"
347
+ }, me = { class: "maz-flex maz-h-full maz-flex-col maz-gap-3 maz-flex-center" }, fe = { class: "maz-text-muted" }, pe = ["for"], ve = { class: "cap-f" }, be = /* @__PURE__ */ O({
348
+ __name: "MazChecklist",
349
+ props: {
350
+ modelValue: { default: void 0 },
351
+ query: { default: void 0 },
352
+ items: { default: void 0 },
353
+ title: { default: void 0 },
354
+ elevation: { type: Boolean, default: !1 },
355
+ search: { default: () => ({
356
+ enabled: !1
357
+ }) },
358
+ searchOptions: {},
359
+ color: { default: "primary" }
360
+ },
361
+ emits: ["update:query", "update:model-value"],
362
+ setup(c, { emit: r }) {
363
+ const e = c, s = r, a = _(() => import("./MazInput-Dx2cCzFS.mjs")), u = _(
364
+ () => import("./magnifying-glass--nBiyXot.mjs")
365
+ ), y = _(
366
+ () => import("./no-symbol-CIgKzsrB.mjs")
367
+ ), h = A(e.query);
368
+ H(
369
+ () => e.query,
370
+ (t) => {
371
+ h.value = t;
372
+ }
373
+ );
374
+ const i = f(() => {
375
+ var n;
376
+ if (!h.value)
377
+ return e.items;
378
+ const t = U(h.value, e.searchOptions);
379
+ return (n = e.items) == null ? void 0 : n.filter(
380
+ ({ label: d }) => U(d, e.searchOptions).includes(t)
381
+ );
382
+ });
383
+ function g(t) {
384
+ h.value = t, s("update:query", t);
385
+ }
386
+ return (t, n) => {
387
+ var d, z, k, E;
388
+ return p(), v("div", ce, [
389
+ (d = t.search) != null && d.enabled ? (p(), v("label", ie, [
390
+ t.$slots.title || t.title ? (p(), v("span", ue, [
391
+ b(" @slot use this slot to customize the title "),
392
+ C(t.$slots, "title", {}, () => [
393
+ B(
394
+ I(t.title),
395
+ 1
396
+ /* TEXT */
397
+ )
398
+ ])
399
+ ])) : b("v-if", !0),
400
+ x(V(a), D({
401
+ id: "query",
402
+ "model-value": h.value
403
+ }, t.search, {
404
+ color: t.color,
405
+ "left-icon": t.search.leftIcon ?? V(u),
406
+ debounce: t.search.debounce ?? 300,
407
+ label: (z = t.search) == null ? void 0 : z.label,
408
+ name: ((k = t.search) == null ? void 0 : k.name) ?? "search",
409
+ placeholder: (E = t.search) == null ? void 0 : E.placeholder,
410
+ "onUpdate:modelValue": n[0] || (n[0] = (w) => g(w))
411
+ }), null, 16, ["model-value", "color", "left-icon", "debounce", "label", "name", "placeholder"])
412
+ ])) : b("v-if", !0),
413
+ x(ee, {
414
+ color: t.color,
415
+ "no-elevation": !t.elevation,
416
+ padding: !1,
417
+ "content-class": "maz-flex maz-flex-col maz-maz-gap-2 maz-overflow-y-auto maz-bg-color maz-px-3 maz-py-2"
418
+ }, {
419
+ default: Z(() => {
420
+ var w;
421
+ return [
422
+ ((w = i.value) == null ? void 0 : w.length) === 0 ? (p(), v("div", de, [
423
+ b(" @slot use this slot to customize the no results area "),
424
+ C(t.$slots, "no-results", {}, () => [
425
+ m("div", me, [
426
+ x(V(y), { class: "maz-text-3xl maz-text-muted" }),
427
+ m("span", fe, [
428
+ b(" @slot use this slot to customize the no results message "),
429
+ C(t.$slots, "no-results-text", {}, () => [
430
+ n[2] || (n[2] = B(" No results found "))
431
+ ])
432
+ ])
433
+ ])
434
+ ])
435
+ ])) : b("v-if", !0),
436
+ (p(!0), v(
437
+ G,
438
+ null,
439
+ J(i.value, ({ label: o, value: l }) => (p(), v("label", {
440
+ key: l,
441
+ for: l,
442
+ class: "m-checklist-item maz-flex maz-w-full maz-cursor-pointer maz-items-center maz-gap-4 maz-rounded maz-px-3 maz-py-2 maz-text-left hover:maz-bg-color-light"
443
+ }, [
444
+ x(ne, {
445
+ id: l,
446
+ "model-value": e.modelValue,
447
+ value: l,
448
+ color: t.color,
449
+ "onUpdate:modelValue": n[1] || (n[1] = (S) => s("update:model-value", S))
450
+ }, null, 8, ["id", "model-value", "value", "color"]),
451
+ b(` @slot use this slot to customize the item
452
+ @binding { label: string, value: string }
453
+ `),
454
+ C(t.$slots, "item", {
455
+ selectedValues: t.modelValue,
456
+ item: { label: o, value: l }
457
+ }, () => [
458
+ m(
459
+ "span",
460
+ ve,
461
+ I(o),
462
+ 1
463
+ /* TEXT */
464
+ )
465
+ ])
466
+ ], 8, pe))),
467
+ 128
468
+ /* KEYED_FRAGMENT */
469
+ ))
470
+ ];
471
+ }),
472
+ _: 3
473
+ /* FORWARDED */
474
+ }, 8, ["color", "no-elevation"])
475
+ ]);
476
+ };
477
+ }
478
+ });
479
+ export {
480
+ L as _,
481
+ be as a,
482
+ ze as c,
483
+ oe as u
484
+ };