maz-ui 3.46.1-beta.5 → 3.47.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 (155) hide show
  1. package/components/MazAccordion.mjs +30 -30
  2. package/components/MazBottomSheet.mjs +1 -1
  3. package/components/MazBtn.d.ts +5 -0
  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/MazChecklist.d.ts +79 -0
  9. package/components/MazChecklist.mjs +4 -0
  10. package/components/MazDialog.mjs +1 -1
  11. package/components/MazDialogPromise.d.ts +2 -0
  12. package/components/MazDialogPromise.mjs +1 -1
  13. package/components/MazDrawer.mjs +1 -1
  14. package/components/MazDropdown.mjs +1 -1
  15. package/components/MazInput.mjs +1 -1
  16. package/components/MazInputNumber.mjs +1 -1
  17. package/components/MazInputPrice.mjs +1 -1
  18. package/components/MazInputTags.mjs +1 -1
  19. package/components/MazPagination.mjs +1 -1
  20. package/components/MazPhoneNumberInput.mjs +1 -1
  21. package/components/MazPicker.d.ts +1 -1
  22. package/components/MazPicker.mjs +1 -1
  23. package/components/MazPullToRefresh.d.ts +2 -2
  24. package/components/MazSelect.mjs +1 -1
  25. package/components/MazTable.d.ts +2 -2
  26. package/components/MazTable.mjs +1 -1
  27. package/components/assets/MazAccordion.css +1 -1
  28. package/components/assets/MazBtn.css +1 -1
  29. package/components/assets/MazCardSpotlight.css +1 -1
  30. package/components/assets/MazChecklist.css +1 -0
  31. package/components/assets/MazDialog.css +1 -1
  32. package/components/assets/MazDialogPromise.css +1 -1
  33. package/components/assets/MazDropdown.css +1 -1
  34. package/components/assets/MazInputNumber.css +1 -1
  35. package/components/assets/MazInputTags.css +1 -1
  36. package/components/assets/MazPagination.css +1 -1
  37. package/components/assets/MazPicker.css +1 -1
  38. package/components/assets/MazSelect.css +1 -1
  39. package/components/assets/MazTable.css +1 -1
  40. package/components/assets/MazTabsBar.css +1 -1
  41. package/components/chunks/{MazBottomSheet-s9lLaK1M.mjs → MazBottomSheet-BvdiOa8P.mjs} +1 -1
  42. package/components/chunks/{MazBtn-BMmuCciQ.mjs → MazBtn-4g56EBmg.mjs} +20 -18
  43. package/components/chunks/MazBtn-4jMQE2G-.mjs +118 -0
  44. package/components/chunks/MazBtn-B3i4Ypas.mjs +118 -0
  45. package/components/chunks/MazBtn-B7rKmEGw.mjs +118 -0
  46. package/components/chunks/MazBtn-BAxR_dt3.mjs +118 -0
  47. package/components/chunks/MazBtn-BF48_wJx.mjs +118 -0
  48. package/components/chunks/{MazBtn-CHABo63Y.mjs → MazBtn-BRdMg4tc.mjs} +21 -19
  49. package/components/chunks/MazBtn-BvirhKh3.mjs +123 -0
  50. package/components/chunks/{MazBtn-BXdap6JU.mjs → MazBtn-CEOWwReA.mjs} +21 -19
  51. package/components/chunks/MazBtn-CGYoHDXm.mjs +118 -0
  52. package/components/chunks/{MazBtn-DarjZUV4.mjs → MazBtn-CVDDOeLF.mjs} +40 -38
  53. package/components/chunks/MazBtn-D6T9wOxO.mjs +118 -0
  54. package/components/chunks/MazBtn-DYMxHlYa.mjs +118 -0
  55. package/components/chunks/MazBtn-D_IQO-P2.mjs +118 -0
  56. package/components/chunks/{MazCard-BaJ5Ee3I.mjs → MazCard-StYuQv11.mjs} +1 -1
  57. package/components/chunks/{MazCarousel-Bb4fpVqN.mjs → MazCarousel-DEO7Tz8F.mjs} +1 -1
  58. package/components/chunks/{MazCheckbox-8n6NtRBb.mjs → MazCheckbox-CtiUQoBe.mjs} +1 -1
  59. package/components/chunks/MazCheckbox-D9RW0OPf.mjs +146 -0
  60. package/components/chunks/{MazCheckbox-C4diNXJq.mjs → MazCheckbox-TiwCiE2s.mjs} +1 -1
  61. package/components/chunks/MazChecklist-B9bw1Mn4.mjs +484 -0
  62. package/components/chunks/{MazDialog-Bv2PzQBz.mjs → MazDialog-C3urFx7y.mjs} +50 -54
  63. package/components/chunks/{MazDialogPromise-BZLP9sXZ.mjs → MazDialogPromise-BuOWwo6n.mjs} +40 -44
  64. package/components/chunks/{MazGallery-C9secrXc.mjs → MazGallery-DLNvXEka.mjs} +2 -2
  65. package/components/chunks/{MazIcon-BaJm2s8_.mjs → MazIcon-DjMuw8Bz.mjs} +1 -1
  66. package/components/chunks/{MazIcon-CudB1a0D.mjs → MazIcon-DyrYf9Sl.mjs} +1 -1
  67. package/components/chunks/{MazInput-B3RzuuNv.mjs → MazInput-BZ2U145p.mjs} +1 -1
  68. package/components/chunks/MazInput-Bq_SbBRE.mjs +290 -0
  69. package/components/chunks/MazInput-_rEW9XWJ.mjs +291 -0
  70. package/components/chunks/{MazInputNumber-mLgq5obR.mjs → MazInputNumber-G8880Neu.mjs} +173 -171
  71. package/components/chunks/{MazInputPrice-DhYRBqTS.mjs → MazInputPrice-DROLM9PX.mjs} +1 -1
  72. package/components/chunks/{MazInputTags-DinwbXaD.mjs → MazInputTags-BRmcZBo4.mjs} +170 -168
  73. package/components/chunks/MazLoadingBar-DHFjKEEm.mjs +32 -0
  74. package/components/chunks/{MazPagination-Cqnr19iI.mjs → MazPagination-6MyYnTer.mjs} +132 -130
  75. package/components/chunks/{MazPhoneNumberInput-C3GdtqN2.mjs → MazPhoneNumberInput-r6OjPeRI.mjs} +3 -3
  76. package/components/chunks/{MazPicker-DA92HhwS.mjs → MazPicker-B28fQccE.mjs} +536 -534
  77. package/components/chunks/{MazPickerMonthSwitcher-CPWkw0Hq.mjs → MazPickerMonthSwitcher-DrtbXCca.mjs} +1 -1
  78. package/components/chunks/{MazPickerShortcuts-Fwcoqg5M.mjs → MazPickerShortcuts-TbhHaKoJ.mjs} +1 -1
  79. package/components/chunks/{MazPickerYearSwitcher-DfSXPGfT.mjs → MazPickerYearSwitcher-KwUBj6Cb.mjs} +1 -1
  80. package/components/chunks/{MazSelect-DPTuyc26.mjs → MazSelect-BvC9QQ6M.mjs} +2 -2
  81. package/components/chunks/MazSelect-DyQC9j4n.mjs +568 -0
  82. package/components/chunks/{MazSpinner-BCQzF6j-.mjs → MazSpinner-3vO8e4FF.mjs} +1 -1
  83. package/components/chunks/{MazSpinner-BEqvmPiV.mjs → MazSpinner-B0291afs.mjs} +1 -1
  84. package/components/chunks/MazSpinner-B0aGd8rG.mjs +37 -0
  85. package/components/chunks/{MazSpinner-C2ok6AlJ.mjs → MazSpinner-BziSiJFV.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CKX-8iim.mjs +37 -0
  87. package/components/chunks/MazSpinner-CQ2XrZIS.mjs +37 -0
  88. package/components/chunks/{MazSpinner-B-mc1FWS.mjs → MazSpinner-CRW667yE.mjs} +1 -1
  89. package/components/chunks/{MazSpinner-CVBz5HIx.mjs → MazSpinner-D-7IOf2L.mjs} +1 -1
  90. package/components/chunks/MazSpinner-D0t4IJyq.mjs +37 -0
  91. package/components/chunks/{MazSpinner-CFJmcsGl.mjs → MazSpinner-D5hiFgo4.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-DEdQlQr1.mjs → MazSpinner-DkXUB0w5.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-BpjK60ul.mjs → MazSpinner-DyVjCwmM.mjs} +1 -1
  94. package/components/chunks/MazSpinner-HZYglQFY.mjs +37 -0
  95. package/components/chunks/{MazSpinner-BCHAzmqS.mjs → MazSpinner-JpzVmSvW.mjs} +1 -1
  96. package/components/chunks/MazSpinner-Nu5h2A6E.mjs +37 -0
  97. package/components/chunks/MazSpinner-S6Bx7B15.mjs +37 -0
  98. package/components/chunks/MazSpinner-wR0F3mAY.mjs +37 -0
  99. package/components/chunks/MazTable-DozpABdn.mjs +692 -0
  100. package/components/chunks/MazTableCell-DPgvJ7vY.mjs +23 -0
  101. package/components/chunks/MazTableRow-CCcjwAV1.mjs +30 -0
  102. package/components/chunks/MazTableTitle-Df7F9Cjh.mjs +23 -0
  103. package/components/chunks/{MazTransitionExpand-BoTQeNNf.mjs → MazTransitionExpand--vHzXjx7.mjs} +1 -1
  104. package/components/chunks/arrow-up-DjSlktWl.mjs +30 -0
  105. package/components/chunks/inject-strict-BmiaNiwC.mjs +10 -0
  106. package/components/chunks/useInstanceUniqId-DW9jO1Sz.mjs +11 -0
  107. package/components/index.d.ts +1 -0
  108. package/components/index.mjs +1 -0
  109. package/css/main.css +1 -1
  110. package/modules/assets/MazBtn.css +1 -1
  111. package/modules/assets/index.css +1 -1
  112. package/{components/chunks/MazBtn-CXxOU7fp.mjs → modules/chunks/MazBtn-BVxI1WwF.mjs} +21 -19
  113. package/modules/chunks/{MazBtn-BG2dUdHV.cjs → MazBtn-DrB5FzZN.cjs} +3 -3
  114. package/modules/chunks/{MazIcon-RkWxQ8JM.cjs → MazIcon-BMJqOZnG.cjs} +1 -1
  115. package/modules/chunks/{MazIcon-BqfELHOt.mjs → MazIcon-b8WRy8OV.mjs} +1 -1
  116. package/modules/chunks/{MazSpinner-GfL807jq.cjs → MazSpinner-6H0uaGkV.cjs} +1 -1
  117. package/modules/chunks/{MazSpinner-DgSRxVEo.mjs → MazSpinner-B-Tki1aV.mjs} +1 -1
  118. package/modules/chunks/{index-aKGx1nxl.mjs → index-Ch4k74ro.mjs} +1150 -954
  119. package/modules/chunks/index-G8fhXnFU.cjs +149 -0
  120. package/modules/index.cjs +1 -1
  121. package/modules/index.mjs +37 -35
  122. package/nuxt/index.d.mts +20 -20
  123. package/nuxt/index.d.ts +20 -20
  124. package/nuxt/index.json +1 -1
  125. package/nuxt/index.mjs +26 -5
  126. package/package.json +1 -1
  127. package/resolvers/index.cjs +1 -1
  128. package/resolvers/index.mjs +3 -1
  129. package/types/components/MazBtn.vue.d.ts +5 -0
  130. package/types/components/MazChecklist.vue.d.ts +79 -0
  131. package/types/components/MazDialogPromise.vue.d.ts +2 -0
  132. package/types/components/MazPicker.vue.d.ts +1 -1
  133. package/types/components/MazPullToRefresh.vue.d.ts +2 -2
  134. package/types/components/MazTable.vue.d.ts +2 -2
  135. package/types/components/index.d.ts +1 -0
  136. package/types/modules/composables/index.d.ts +1 -0
  137. package/types/modules/composables/useLanguageDisplayNames.d.ts +17 -0
  138. package/types/modules/helpers/normalize-string.d.ts +1 -2
  139. package/components/chunks/MazBtn-CVB5qDjV.mjs +0 -121
  140. package/components/chunks/MazBtn-CZSXnr3w.mjs +0 -116
  141. package/components/chunks/MazBtn-CwYBz6QO.mjs +0 -116
  142. package/components/chunks/MazBtn-DIE2eM-g.mjs +0 -116
  143. package/components/chunks/MazBtn-DKD-ZMaF.mjs +0 -116
  144. package/components/chunks/MazBtn-OKT5-Y4s.mjs +0 -116
  145. package/components/chunks/MazBtn-e3abHT2L.mjs +0 -116
  146. package/components/chunks/MazSpinner-BoG1T_ZX.mjs +0 -37
  147. package/components/chunks/MazSpinner-DhHVVBJE.mjs +0 -37
  148. package/components/chunks/MazSpinner-DuGaC-cw.mjs +0 -37
  149. package/components/chunks/MazSpinner-Iwon82He.mjs +0 -37
  150. package/components/chunks/MazSpinner-JbfjMNFL.mjs +0 -37
  151. package/components/chunks/MazSpinner-QgcgF5j5.mjs +0 -37
  152. package/components/chunks/MazSpinner-yQGVxaFm.mjs +0 -37
  153. package/components/chunks/MazTable-CrtVI-dp.mjs +0 -2015
  154. package/modules/chunks/MazBtn-BeqYSSYI.mjs +0 -116
  155. package/modules/chunks/index-CE2CsQsx.cjs +0 -149
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as g, computed as M, openBlock as l, createElementBlock as d, createElementVNode as m, createVNode as u, withModifiers as h, withCtx as p, unref as n, normalizeClass as f, Fragment as v, renderList as w, createBlock as x, createTextVNode as D, toDisplayString as S } from "vue";
2
- import { d as C, c as s, a as c, M as k, i as z, _ as B } from "./MazPicker-DA92HhwS.mjs";
2
+ import { d as C, c as s, a as c, M as k, i as z, _ as B } from "./MazPicker-B28fQccE.mjs";
3
3
  import { X as q } from "./x-mark-wyoa-ywi.mjs";
4
4
  import '../assets/MazPickerMonthSwitcher.css';const $ = { class: "maz-picker-month-switcher" }, N = { class: "maz-picker-month-switcher__header" }, V = /* @__PURE__ */ g({
5
5
  __name: "MazPickerMonthSwitcher",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as h, ref as f, watch as n, openBlock as l, createElementBlock as d, Fragment as v, renderList as y, createBlock as _, normalizeClass as k, withModifiers as S, withCtx as b, createTextVNode as z, toDisplayString as B } from "vue";
2
- import { M as g, _ as x } from "./MazPicker-DA92HhwS.mjs";
2
+ import { M as g, _ as x } from "./MazPicker-B28fQccE.mjs";
3
3
  import '../assets/MazPickerShortcuts.css';const C = { class: "maz-picker-shortcuts" }, M = /* @__PURE__ */ h({
4
4
  __name: "MazPickerShortcuts",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as C, ref as b, computed as w, openBlock as u, createElementBlock as _, createElementVNode as m, createVNode as s, withModifiers as l, withCtx as i, unref as o, Fragment as D, renderList as S, createBlock as Y, normalizeClass as M, createTextVNode as B, toDisplayString as q } from "vue";
2
- import { d as c, a as I, M as d, C as y, i as z, _ as N } from "./MazPicker-DA92HhwS.mjs";
2
+ import { d as c, a as I, M as d, C as y, i as z, _ as N } from "./MazPicker-B28fQccE.mjs";
3
3
  import { X as V } from "./x-mark-wyoa-ywi.mjs";
4
4
  import '../assets/MazPickerYearSwitcher.css';const E = { class: "maz-picker-year-switcher" }, L = { class: "maz-picker-year-switcher__header" }, P = { class: "maz-flex maz-space-x-2" }, T = { class: "maz-picker-year-switcher__main" }, X = /* @__PURE__ */ C({
5
5
  __name: "MazPickerYearSwitcher",
@@ -203,7 +203,7 @@ const Xe = {
203
203
  },
204
204
  emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
205
205
  setup(u, { emit: r }) {
206
- const l = u, t = r, s = A(() => import("./MazBtn-CZSXnr3w.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), h = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), j = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
206
+ const l = u, t = r, s = A(() => import("./MazBtn-DYMxHlYa.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), h = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), j = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
207
207
  componentName: "MazInput",
208
208
  providedId: l.id
209
209
  });
@@ -477,7 +477,7 @@ const Xe = {
477
477
  "215ff493": te.value,
478
478
  "64d6cfbb": G.value
479
479
  }));
480
- const t = u, s = l, d = A(() => import("./MazCheckbox-8n6NtRBb.mjs")), h = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), j = A(() => import("./no-symbol-CIgKzsrB.mjs"));
480
+ const t = u, s = l, d = A(() => import("./MazCheckbox-CtiUQoBe.mjs")), h = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), j = A(() => import("./no-symbol-CIgKzsrB.mjs"));
481
481
  r({
482
482
  /** Method to open the option list */
483
483
  openList: P,
@@ -0,0 +1,568 @@
1
+ import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as $, ref as b, onBeforeMount as we, nextTick as j, withDirectives as Le, openBlock as g, createElementBlock as I, normalizeClass as q, normalizeStyle as Q, createVNode as N, mergeProps as Me, unref as C, withModifiers as E, withCtx as ae, createElementVNode as O, Transition as Ee, createBlock as se, createCommentVNode as w, renderSlot as G, Fragment as ie, renderList as Te, toDisplayString as ue } from "vue";
2
+ import { u as $e } from "./useInstanceUniqId-DW9jO1Sz.mjs";
3
+ import re from "./MazInput-_rEW9XWJ.mjs";
4
+ import { _ as Ne } from "./MazTable-DozpABdn.mjs";
5
+ import '../assets/MazSelect.css';const Oe = {
6
+ removeAccents: !0,
7
+ caseSensitive: !1,
8
+ replaceSpaces: !0,
9
+ removeSpecialCharacters: !1,
10
+ trim: !0,
11
+ normalizeSpaces: !0,
12
+ removeNumbers: !1,
13
+ customNormalizationForms: ["NFC", "NFKD"]
14
+ };
15
+ function B(r, c) {
16
+ const s = { ...Oe, ...c }, t = {
17
+ À: "A",
18
+ Á: "A",
19
+ Â: "A",
20
+ Ã: "A",
21
+ Ä: "A",
22
+ Å: "A",
23
+ à: "a",
24
+ á: "a",
25
+ â: "a",
26
+ ã: "a",
27
+ ä: "a",
28
+ å: "a",
29
+ È: "E",
30
+ É: "E",
31
+ Ê: "E",
32
+ Ë: "E",
33
+ è: "e",
34
+ é: "e",
35
+ ê: "e",
36
+ ë: "e",
37
+ Î: "I",
38
+ Ï: "I",
39
+ í: "I",
40
+ î: "i",
41
+ ï: "i",
42
+ Ô: "O",
43
+ Õ: "O",
44
+ Ö: "O",
45
+ Ø: "O",
46
+ ô: "o",
47
+ õ: "o",
48
+ ö: "o",
49
+ ø: "o",
50
+ Ù: "U",
51
+ Ú: "U",
52
+ Û: "U",
53
+ Ü: "U",
54
+ ù: "u",
55
+ ú: "u",
56
+ û: "u",
57
+ ü: "u",
58
+ Ç: "C",
59
+ ç: "c",
60
+ ÿ: "y",
61
+ Ñ: "N",
62
+ ñ: "n",
63
+ ó: "o"
64
+ };
65
+ let a = r.toString();
66
+ if (s.trim && (a = a.trim()), s.normalizeSpaces && (a = a.replaceAll(/\s+/g, " ")), s.replaceSpaces && (a = a.replaceAll(" ", "-")), s.removeNumbers && (a = a.replaceAll(/\d/g, "")), s.removeAccents && (a = a.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => t[i] || i), a = a.replaceAll(/[\u0300-\u036F]/g, "")), s.caseSensitive === !1 && (a = a.toLowerCase()), s.removeSpecialCharacters && (a = a.replaceAll(/[^\dA-Z-]/gi, "")), s.trim && (a = a.trim()), s.customNormalizationForms)
67
+ for (const i of s.customNormalizationForms)
68
+ a = a.normalize(i);
69
+ return a;
70
+ }
71
+ function Be(r, c) {
72
+ const s = r.length, t = c.length, a = [];
73
+ for (let i = 0; i <= s; i++)
74
+ a[i] = [i];
75
+ for (let i = 0; i <= t; i++)
76
+ a[0][i] = i;
77
+ for (let i = 1; i <= s; i++)
78
+ for (let m = 1; m <= t; m++) {
79
+ const V = r[i - 1] === c[m - 1] ? 0 : 1;
80
+ a[i][m] = Math.min(
81
+ a[i - 1][m] + 1,
82
+ a[i][m - 1] + 1,
83
+ a[i - 1][m - 1] + V
84
+ );
85
+ }
86
+ return a[s][t];
87
+ }
88
+ function ce(r, c) {
89
+ const s = Be(r, c), t = Math.max(r.length, c.length);
90
+ return 1 - s / t;
91
+ }
92
+ function De(r, c, s = 0.75) {
93
+ return ce(r, c) >= s;
94
+ }
95
+ function Z(r, c, s = 0.75) {
96
+ const t = f(
97
+ () => B(typeof r == "string" ? r : r.value)
98
+ ), a = f(
99
+ () => B(typeof c == "string" ? c : c.value)
100
+ ), i = f(() => typeof s == "number" ? s : s.value), m = f(() => ce(t.value, a.value));
101
+ return {
102
+ isMatching: f(
103
+ () => De(t.value, a.value, i.value)
104
+ ),
105
+ score: m
106
+ };
107
+ }
108
+ function de(r, c, s) {
109
+ var m;
110
+ r.stopPropagation();
111
+ const t = typeof s.value == "function" ? s.value : s.value.handler, a = typeof s.value == "object" ? s.value.exclude : void 0;
112
+ let i = !1;
113
+ if (a && a.length > 0) {
114
+ for (const V of a)
115
+ if (!i && r.target instanceof HTMLElement) {
116
+ const D = (m = document.querySelector(V)) == null ? void 0 : m.getAttribute("id");
117
+ i = r.target.getAttribute("id") === D;
118
+ }
119
+ }
120
+ !c.contains(r.target) && !i && (t == null || t());
121
+ }
122
+ function pe() {
123
+ return document.ontouchstart === null ? "touchstart" : "click";
124
+ }
125
+ function xe(r, c) {
126
+ const s = pe();
127
+ document.removeEventListener(s, (t) => de(t, r, c));
128
+ }
129
+ function He(r, c) {
130
+ if (typeof c.value != "function" && typeof c.value == "object" && typeof c.value.handler != "function") {
131
+ console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
132
+ return;
133
+ }
134
+ const s = pe();
135
+ document.addEventListener(s, (t) => de(t, r, c));
136
+ }
137
+ const Pe = {
138
+ mounted: He,
139
+ unmounted: xe
140
+ };
141
+ let R = null;
142
+ function Fe(r, c) {
143
+ R && clearTimeout(R), R = setTimeout(r, c);
144
+ }
145
+ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
146
+ key: 2,
147
+ class: "m-select-list__scroll-wrapper",
148
+ tabindex: "-1"
149
+ }, qe = { class: "m-select-list-optgroup" }, Qe = ["onClick"], Ge = /* @__PURE__ */ Ie({
150
+ inheritAttrs: !1,
151
+ __name: "MazSelect",
152
+ props: {
153
+ style: { default: void 0 },
154
+ class: { default: void 0 },
155
+ id: { default: void 0 },
156
+ modelValue: { default: void 0 },
157
+ options: { default: void 0 },
158
+ optionValueKey: { default: "value" },
159
+ optionLabelKey: { default: "label" },
160
+ optionInputValueKey: { default: "label" },
161
+ listPosition: { default: "bottom left" },
162
+ itemHeight: { default: void 0 },
163
+ maxListHeight: { default: 240 },
164
+ maxListWidth: { default: void 0 },
165
+ minListHeight: { default: void 0 },
166
+ minListWidth: { default: void 0 },
167
+ size: { default: "md" },
168
+ color: { default: "primary" },
169
+ search: { type: Boolean },
170
+ searchPlaceholder: { default: "Search in options" },
171
+ searchThreshold: { default: 0.75 },
172
+ open: { type: Boolean },
173
+ multiple: { type: Boolean, default: void 0 },
174
+ required: { type: Boolean },
175
+ disabled: { type: Boolean },
176
+ block: { type: Boolean },
177
+ excludeSelectors: { default: void 0 },
178
+ autocomplete: { default: "off" }
179
+ },
180
+ emits: ["close", "open", "blur", "focus", "change", "input", "update:model-value", "selected-option"],
181
+ setup(r, { expose: c, emit: s }) {
182
+ Ce((e) => ({
183
+ cb149e58: ve.value,
184
+ "215ff493": fe.value,
185
+ "64d6cfbb": me.value
186
+ }));
187
+ const t = r, a = s, i = $(() => import("./MazCheckbox-D9RW0OPf.mjs")), m = $(() => import("./magnifying-glass--nBiyXot.mjs")), V = $(() => import("./chevron-down-BkvtON3b.mjs")), D = $(() => import("./no-symbol-CIgKzsrB.mjs"));
188
+ c({
189
+ /** Method to open the option list */
190
+ openList: A,
191
+ /** Method to close the option list */
192
+ closeList: k
193
+ });
194
+ const z = b(!1), p = b(), x = f(
195
+ () => ["black", "transparent", "white"].includes(t.color)
196
+ ), fe = f(
197
+ () => x.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
198
+ ), me = f(
199
+ () => x.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
200
+ ), ve = f(
201
+ () => x.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
202
+ ), h = f(() => z.value || t.open), ye = $e({
203
+ componentName: "MazSelect",
204
+ providedId: t.id
205
+ });
206
+ function J(e) {
207
+ return {
208
+ [t.optionValueKey]: e,
209
+ [t.optionLabelKey]: e,
210
+ [t.optionInputValueKey]: e
211
+ };
212
+ }
213
+ function X(e) {
214
+ return {
215
+ ...e,
216
+ [t.optionValueKey]: e[t.optionValueKey],
217
+ [t.optionLabelKey]: e[t.optionLabelKey],
218
+ [t.optionInputValueKey]: e[t.optionInputValueKey]
219
+ };
220
+ }
221
+ const L = f(() => {
222
+ var o;
223
+ const e = [];
224
+ if (!((o = t.options) != null && o.length))
225
+ return [];
226
+ for (const n of t.options)
227
+ typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? e.push(J(n)) : typeof n == "object" && "options" in n && Array.isArray(n.options) ? e.push(
228
+ { label: n.label, isOptGroup: !0 },
229
+ ...n.options.map(
230
+ (l) => typeof l == "string" || typeof l == "number" || typeof l == "boolean" ? J(l) : X(l)
231
+ )
232
+ ) : e.push(X(n));
233
+ return e;
234
+ }), T = f(
235
+ () => {
236
+ var e;
237
+ return ((e = L.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
238
+ }
239
+ );
240
+ we(() => {
241
+ var e;
242
+ (e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), W();
243
+ });
244
+ const Y = b(), H = b(), _ = b(), ee = b();
245
+ function K(e) {
246
+ return e == null;
247
+ }
248
+ function P(e) {
249
+ var n;
250
+ return (((n = T.value) == null ? void 0 : n.some(
251
+ (l) => l[t.optionValueKey] === e[t.optionValueKey]
252
+ )) ?? !1) && !K(e[t.optionValueKey]);
253
+ }
254
+ const he = f(() => {
255
+ var o;
256
+ if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
257
+ return t.modelValue.map(
258
+ (n) => {
259
+ var l, u;
260
+ return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === n)) == null ? void 0 : u[t.optionInputValueKey];
261
+ }
262
+ ).join(", ");
263
+ const e = (o = L.value) == null ? void 0 : o.find(
264
+ (n) => n[t.optionValueKey] === t.modelValue
265
+ );
266
+ return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
267
+ }), be = f(
268
+ () => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
269
+ ), M = b(""), S = b("");
270
+ function F(e, o) {
271
+ return o && e && B(e).includes(B(o));
272
+ }
273
+ function te(e) {
274
+ var o;
275
+ return e ? (o = L.value) == null ? void 0 : o.filter((n) => {
276
+ const l = n[t.optionLabelKey], u = n[t.optionValueKey], d = n[t.optionInputValueKey], v = t.searchThreshold;
277
+ return F(l, e) || F(d, e) || F(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
278
+ }) : L.value;
279
+ }
280
+ const y = f(() => te(M.value));
281
+ async function k(e) {
282
+ var n, l;
283
+ if (!h.value)
284
+ return;
285
+ if (e && ("relatedTarget" in e && ((n = Y.value) != null && n.contains(e.relatedTarget)) || e.type === "keydown"))
286
+ return e.preventDefault();
287
+ const o = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
288
+ if ((l = t.excludeSelectors) != null && l.includes(`#${o}`))
289
+ return e == null ? void 0 : e.preventDefault();
290
+ await j(), z.value = !1, p.value = 0, a("close", e);
291
+ }
292
+ async function A(e) {
293
+ t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await U(), a("focus", e), a("open", z.value));
294
+ }
295
+ function oe() {
296
+ var e, o;
297
+ (o = ((e = H.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.focus();
298
+ }
299
+ function ge() {
300
+ var e, o;
301
+ (o = ((e = H.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.dispatchEvent(new Event("input"));
302
+ }
303
+ function Ve(e) {
304
+ z.value ? k(e) : oe();
305
+ }
306
+ function ze(e) {
307
+ var o, n;
308
+ M.value = e, (n = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || n.focus();
309
+ }
310
+ function Ke(e) {
311
+ var n;
312
+ e === "Backspace" && S.value.length > 0 ? S.value = S.value.slice(0, -1) : S.value += e;
313
+ const o = te(S.value);
314
+ o != null && o.length && (p.value = (n = y.value) == null ? void 0 : n.findIndex(
315
+ (l) => l[t.optionValueKey] === o[0][t.optionValueKey]
316
+ ), typeof p.value == "number" && p.value >= 0 && U(p.value)), Fe(() => {
317
+ S.value = "";
318
+ }, 1e3);
319
+ }
320
+ function Se(e) {
321
+ const o = e.key;
322
+ /^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), A(e), t.search ? ze(o) : Ke(o)) : le(e);
323
+ }
324
+ function le(e, o = !0) {
325
+ const n = e.code, l = ["ArrowUp", "ArrowDown"].includes(n), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(n), d = n === "Escape" && h.value;
326
+ l ? ke(e, p.value) : u ? Ae(e, p.value) : d && k(e);
327
+ }
328
+ function ke(e, o) {
329
+ var u;
330
+ e.preventDefault();
331
+ const n = e.code;
332
+ h.value || A(e);
333
+ const l = (u = y.value) == null ? void 0 : u.length;
334
+ l && (typeof o == "number" ? o === l - 1 && n === "ArrowDown" ? p.value = 0 : o === 0 && n === "ArrowUp" ? p.value = l - 1 : p.value = n === "ArrowDown" ? o + 1 : o - 1 : p.value = n === "ArrowDown" ? 0 : l - 1, U(p.value));
335
+ }
336
+ function Ae(e, o) {
337
+ var l, u, d;
338
+ if (e.preventDefault(), !h.value)
339
+ return A(e);
340
+ const n = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
341
+ K(n) || ne(n);
342
+ }
343
+ async function U(e) {
344
+ var n, l;
345
+ await j(), typeof e != "number" && W();
346
+ const o = e ?? p.value;
347
+ if (typeof o == "number" && o >= 0) {
348
+ const u = (n = ee.value) == null ? void 0 : n.querySelectorAll(".m-select-list-item");
349
+ (l = u == null ? void 0 : u[o]) == null || l.scrollIntoView({
350
+ behavior: "auto",
351
+ block: "nearest",
352
+ inline: "start"
353
+ });
354
+ }
355
+ }
356
+ function W(e) {
357
+ var n;
358
+ const o = (n = y.value) == null ? void 0 : n.findIndex((l) => {
359
+ var u, d;
360
+ return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u = T.value) == null ? void 0 : u[0]) == null ? void 0 : d[t.optionValueKey]) === l[t.optionValueKey];
361
+ });
362
+ p.value = o && o >= 0 ? o : 0;
363
+ }
364
+ function ne(e, o = !0) {
365
+ var d;
366
+ o && !t.multiple && j(() => k()), M.value = "";
367
+ const n = (d = T.value) == null ? void 0 : d.some(
368
+ (v) => v[t.optionValueKey] === e[t.optionValueKey]
369
+ );
370
+ let l = T.value;
371
+ n && t.multiple ? l = l == null ? void 0 : l.filter(
372
+ (v) => v[t.optionValueKey] !== e[t.optionValueKey]
373
+ ) : t.multiple ? l.push(e) : l = [e];
374
+ const u = l.map((v) => v[t.optionValueKey]);
375
+ a("update:model-value", t.multiple ? u : u[0]), a("selected-option", e), ge(), W(e), oe();
376
+ }
377
+ return (e, o) => {
378
+ var n;
379
+ return Le((g(), I(
380
+ "div",
381
+ {
382
+ ref_key: "mazSelectElement",
383
+ ref: Y,
384
+ class: q(["m-select", [
385
+ { "--is-open": h.value, "--disabled": e.disabled, "--block": e.block },
386
+ t.class,
387
+ `--${e.size}`
388
+ ]]),
389
+ style: Q(e.style)
390
+ },
391
+ [
392
+ N(re, Me({
393
+ id: C(ye),
394
+ ref_key: "mazInputComponent",
395
+ ref: H,
396
+ class: "m-select-input"
397
+ }, e.$attrs, {
398
+ required: e.required,
399
+ "border-active": z.value,
400
+ color: e.color,
401
+ "model-value": he.value,
402
+ size: e.size,
403
+ block: "",
404
+ autocomplete: e.autocomplete,
405
+ disabled: e.disabled,
406
+ onFocus: E(A, ["prevent", "stop"]),
407
+ onBlur: E(k, ["prevent", "stop"]),
408
+ onClick: E(A, ["prevent", "stop"]),
409
+ onChange: o[0] || (o[0] = (l) => a("change", l)),
410
+ onInput: o[1] || (o[1] = (l) => a("input", l)),
411
+ onKeydown: Se
412
+ }), {
413
+ "right-icon": ae(() => [
414
+ O("button", {
415
+ tabindex: "-1",
416
+ type: "button",
417
+ class: "m-select-input__toggle-button maz-custom",
418
+ "aria-label": `${h.value ? "collapse" : "expand"} list of options`,
419
+ onClick: E(Ve, ["stop"])
420
+ }, [
421
+ N(C(V), { class: "m-select-chevron maz-text-xl" })
422
+ ], 8, Ue)
423
+ ]),
424
+ _: 1
425
+ /* STABLE */
426
+ }, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
427
+ N(Ee, { name: be.value }, {
428
+ default: ae(() => [
429
+ h.value ? (g(), I(
430
+ "div",
431
+ {
432
+ key: 0,
433
+ ref_key: "optionsListElement",
434
+ ref: ee,
435
+ class: q(["m-select-list", {
436
+ "--top": e.listPosition.includes("top"),
437
+ "--left": e.listPosition.includes("left"),
438
+ "--right": e.listPosition.includes("right"),
439
+ "--bottom": e.listPosition.includes("bottom")
440
+ }]),
441
+ style: Q({
442
+ maxHeight: `${e.maxListHeight}px`,
443
+ maxWidth: `${e.maxListWidth}px`,
444
+ minHeight: `${e.minListHeight}px`,
445
+ minWidth: `${e.minListWidth}px`
446
+ })
447
+ },
448
+ [
449
+ e.search ? (g(), se(re, {
450
+ key: 0,
451
+ ref_key: "searchInputComponent",
452
+ ref: _,
453
+ modelValue: M.value,
454
+ "onUpdate:modelValue": [
455
+ o[2] || (o[2] = (l) => M.value = l),
456
+ o[4] || (o[4] = (l) => p.value = 0)
457
+ ],
458
+ size: "sm",
459
+ color: e.color,
460
+ placeholder: e.searchPlaceholder,
461
+ name: "search",
462
+ inputmode: "search",
463
+ autocomplete: "off",
464
+ tabindex: "-1",
465
+ class: "m-select-list__search-input maz-flex-none",
466
+ "left-icon": C(m),
467
+ onKeydown: o[3] || (o[3] = (l) => le(l, !1))
468
+ }, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : w("v-if", !0),
469
+ w(`
470
+ @slot No results slot - Displayed when no results corresponding with search query
471
+ `),
472
+ !y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
473
+ O("span", We, [
474
+ N(C(D), { class: "maz-h-6 maz-w-6 maz-text-normal" })
475
+ ])
476
+ ], !0) : (g(), I("div", je, [
477
+ (g(!0), I(
478
+ ie,
479
+ null,
480
+ Te(y.value, (l, u) => (g(), I(
481
+ ie,
482
+ { key: u },
483
+ [
484
+ w(`
485
+ @slot Custom optgroup label
486
+ @binding {String} label - the label of the optgroup
487
+ `),
488
+ l.label && l.isOptGroup ? G(e.$slots, "optgroup", {
489
+ key: 0,
490
+ label: l.label
491
+ }, () => [
492
+ O(
493
+ "span",
494
+ qe,
495
+ ue(l.label),
496
+ 1
497
+ /* TEXT */
498
+ )
499
+ ], !0) : (g(), I("button", {
500
+ key: 1,
501
+ tabindex: "-1",
502
+ type: "button",
503
+ class: q(["m-select-list-item maz-custom maz-flex-none", [
504
+ {
505
+ "--is-keyboard-selected": p.value === u,
506
+ "--is-selected": P(l),
507
+ "--is-none-value": K(l[e.optionValueKey])
508
+ }
509
+ ]]),
510
+ style: Q(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
511
+ onClick: E((d) => ne(l), ["prevent", "stop"])
512
+ }, [
513
+ e.multiple ? (g(), se(C(i), {
514
+ key: 0,
515
+ tabindex: "-1",
516
+ "model-value": P(l),
517
+ size: "sm",
518
+ color: e.color
519
+ }, null, 8, ["model-value", "color"])) : w("v-if", !0),
520
+ w(`
521
+ @slot Custom option
522
+ @binding {Object} option - the option object
523
+ @binding {Boolean} is-selected - if the option is selected
524
+ `),
525
+ G(e.$slots, "default", {
526
+ option: l,
527
+ isSelected: P(l)
528
+ }, () => [
529
+ O(
530
+ "span",
531
+ null,
532
+ ue(l[e.optionLabelKey]),
533
+ 1
534
+ /* TEXT */
535
+ )
536
+ ], !0)
537
+ ], 14, Qe))
538
+ ],
539
+ 64
540
+ /* STABLE_FRAGMENT */
541
+ ))),
542
+ 128
543
+ /* KEYED_FRAGMENT */
544
+ ))
545
+ ]))
546
+ ],
547
+ 6
548
+ /* CLASS, STYLE */
549
+ )) : w("v-if", !0)
550
+ ]),
551
+ _: 3
552
+ /* FORWARDED */
553
+ }, 8, ["name"])
554
+ ],
555
+ 6
556
+ /* CLASS, STYLE */
557
+ )), [
558
+ [C(Pe), {
559
+ exclude: (n = e.excludeSelectors) != null && n.length ? e.excludeSelectors : [],
560
+ handler: k
561
+ }]
562
+ ]);
563
+ };
564
+ }
565
+ }), Ye = /* @__PURE__ */ Ne(Ge, [["__scopeId", "data-v-e35a36a6"]]);
566
+ export {
567
+ Ye as default
568
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, openBlock as r, createElementBlock as o, normalizeClass as s, createElementVNode as a } from "vue";
2
- import { _ as i } from "./MazSelect-DPTuyc26.mjs";
2
+ import { _ as i } from "./MazDialog-C3urFx7y.mjs";
3
3
  import '../assets/MazSpinner.css';const c = ["width", "height"], p = /* @__PURE__ */ n({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, openBlock as r, createElementBlock as o, normalizeClass as s, createElementVNode as a } from "vue";
2
- import { _ as i } from "./MazBottomSheet-s9lLaK1M.mjs";
2
+ import { _ as i } from "./MazInputNumber-G8880Neu.mjs";
3
3
  import '../assets/MazSpinner.css';const c = ["width", "height"], p = /* @__PURE__ */ n({
4
4
  __name: "MazSpinner",
5
5
  props: {
@@ -0,0 +1,37 @@
1
+ import { defineComponent as n, openBlock as r, createElementBlock as o, normalizeClass as s, createElementVNode as a } from "vue";
2
+ import { _ as i } from "./MazBottomSheet-BvdiOa8P.mjs";
3
+ import '../assets/MazSpinner.css';const c = ["width", "height"], p = /* @__PURE__ */ n({
4
+ __name: "MazSpinner",
5
+ props: {
6
+ size: { type: String, default: "2em" },
7
+ color: {
8
+ type: String,
9
+ default: "primary"
10
+ }
11
+ },
12
+ setup(e) {
13
+ return (l, t) => (r(), o("svg", {
14
+ width: e.size,
15
+ height: e.size,
16
+ version: "1.1",
17
+ xmlns: "http://www.w3.org/2000/svg",
18
+ x: "0px",
19
+ y: "0px",
20
+ viewBox: "0 0 50 50",
21
+ "xml:space": "preserve",
22
+ class: s(["m-spinner", `m-spinner--${e.color}`]),
23
+ style: { "enable-background": "new 0 0 50 50" }
24
+ }, t[0] || (t[0] = [
25
+ a(
26
+ "path",
27
+ { d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
28
+ null,
29
+ -1
30
+ /* HOISTED */
31
+ )
32
+ ]), 10, c));
33
+ }
34
+ }), h = /* @__PURE__ */ i(p, [["__scopeId", "data-v-c16a57a3"]]);
35
+ export {
36
+ h as default
37
+ };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, openBlock as r, createElementBlock as o, normalizeClass as s, createElementVNode as a } from "vue";
2
- import { _ as i } from "./MazBtn-CVB5qDjV.mjs";
2
+ import { _ as i } from "./MazBtn-BvirhKh3.mjs";
3
3
  import '../assets/MazSpinner.css';const c = ["width", "height"], p = /* @__PURE__ */ n({
4
4
  __name: "MazSpinner",
5
5
  props: {