maz-ui 3.47.2-beta.5 → 3.47.2-beta.6

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 (153) hide show
  1. package/components/MazBottomSheet.mjs +1 -1
  2. package/components/MazBtn.mjs +1 -1
  3. package/components/MazCard.d.ts +2 -2
  4. package/components/MazCard.mjs +1 -1
  5. package/components/MazCarousel.mjs +1 -1
  6. package/components/MazChecklist.mjs +1 -1
  7. package/components/MazCircularProgressBar.d.ts +1 -1
  8. package/components/MazDialog.mjs +1 -1
  9. package/components/MazDialogPromise.mjs +1 -1
  10. package/components/MazDrawer.mjs +1 -1
  11. package/components/MazDropdown.d.ts +22 -2
  12. package/components/MazDropdown.mjs +1 -1
  13. package/components/MazGallery.d.ts +1 -1
  14. package/components/MazInput.mjs +1 -1
  15. package/components/MazInputNumber.d.ts +2 -2
  16. package/components/MazInputNumber.mjs +1 -1
  17. package/components/MazInputPrice.d.ts +2 -2
  18. package/components/MazInputPrice.mjs +1 -1
  19. package/components/MazInputTags.mjs +1 -1
  20. package/components/MazPagination.mjs +1 -1
  21. package/components/MazPhoneNumberInput.d.ts +1 -1
  22. package/components/MazPhoneNumberInput.mjs +1 -1
  23. package/components/MazPicker.d.ts +1 -1
  24. package/components/MazPicker.mjs +1 -1
  25. package/components/MazPullToRefresh.d.ts +1 -1
  26. package/components/MazReadingProgressBar.d.ts +1 -1
  27. package/components/MazSelect.mjs +1 -1
  28. package/components/MazSlider.d.ts +1 -1
  29. package/components/MazTable.mjs +1 -1
  30. package/components/assets/MazBtn.css +1 -1
  31. package/components/assets/MazDropdown.css +1 -1
  32. package/components/assets/MazInputNumber.css +1 -1
  33. package/components/assets/MazInputTags.css +1 -1
  34. package/components/assets/MazPagination.css +1 -1
  35. package/components/assets/MazPicker.css +1 -1
  36. package/components/chunks/{MazBottomSheet-CGRvZmGd.mjs → MazBottomSheet-C9GWCGys.mjs} +1 -1
  37. package/components/chunks/MazBtn-BBb9-9O6.mjs +105 -0
  38. package/components/chunks/MazBtn-CMyQNKuk.mjs +105 -0
  39. package/components/chunks/MazBtn-CfUZ9QSO.mjs +105 -0
  40. package/components/chunks/MazBtn-D7tI764y.mjs +105 -0
  41. package/components/chunks/MazBtn-DA2lg-5s.mjs +113 -0
  42. package/components/chunks/MazBtn-DER-sPjl.mjs +105 -0
  43. package/components/chunks/MazBtn-DHfi8M3z.mjs +105 -0
  44. package/components/chunks/MazBtn-DKyz5Hc0.mjs +105 -0
  45. package/components/chunks/MazBtn-DZb-6vcl.mjs +105 -0
  46. package/components/chunks/MazBtn-DhEO9uvT.mjs +105 -0
  47. package/components/chunks/MazBtn-DpFjxnMy.mjs +105 -0
  48. package/components/chunks/MazBtn-IPfW92RY.mjs +105 -0
  49. package/components/chunks/MazBtn-Lsac2Q0p.mjs +105 -0
  50. package/components/chunks/MazBtn-VU3XSEv8.mjs +110 -0
  51. package/components/chunks/{MazCard-BYB8y1_u.mjs → MazCard-CAPZoSqv.mjs} +1 -1
  52. package/components/chunks/{MazCarousel-DccWVW8H.mjs → MazCarousel-CSv4VpC9.mjs} +1 -1
  53. package/components/chunks/{MazCheckbox-BTl370Qq.mjs → MazCheckbox-BI2um2gY.mjs} +1 -1
  54. package/components/chunks/{MazCheckbox-BBL0vgqe.mjs → MazCheckbox-DwAd7p8o.mjs} +1 -1
  55. package/components/chunks/{MazCheckbox-DTU2jEkC.mjs → MazCheckbox-IhiWZ8D0.mjs} +1 -1
  56. package/components/chunks/{MazChecklist-CQv-sXP1.mjs → MazChecklist-Bqd7qTO1.mjs} +1 -1
  57. package/components/chunks/{MazDialog-khofH-7I.mjs → MazDialog-xPCkmhrE.mjs} +1 -1
  58. package/components/chunks/{MazDialogPromise-ZRA2ZrO4.mjs → MazDialogPromise-dIHWE8dO.mjs} +2 -2
  59. package/components/chunks/MazDropdown-7WqbXnPN.mjs +442 -0
  60. package/components/chunks/{MazGallery-VTZUhBKC.mjs → MazGallery-CRY5X5zS.mjs} +2 -2
  61. package/components/chunks/MazIcon-B3gy-jQ6.mjs +4 -0
  62. package/components/chunks/{MazIcon-BdQtfzuy.mjs → MazIcon-D3TB52NM.mjs} +1 -1
  63. package/components/chunks/{MazInput-DzWkS-g8.mjs → MazInput-DG-grU7m.mjs} +1 -1
  64. package/components/chunks/{MazInput-geBqeT4i.mjs → MazInput-ROgC-JLt.mjs} +2 -2
  65. package/components/chunks/{MazInput-eOtg1L9F.mjs → MazInput-rW-KBJGJ.mjs} +2 -2
  66. package/components/chunks/MazInputNumber-DoeT5Lcu.mjs +571 -0
  67. package/components/chunks/{MazInputPrice-DoTnDDIN.mjs → MazInputPrice-CZiypHp3.mjs} +1 -1
  68. package/components/chunks/MazInputTags-DGAglIQb.mjs +584 -0
  69. package/components/chunks/{MazLink-Cd4MwIC9.mjs → MazLink-yKgOtTlk.mjs} +1 -1
  70. package/components/chunks/{MazLoadingBar-DHcYPXlE.mjs → MazLoadingBar-D8a5KF29.mjs} +1 -1
  71. package/components/chunks/MazPagination-eJFyS5Nn.mjs +329 -0
  72. package/components/chunks/{MazPhoneNumberInput-BTm8A0bL.mjs → MazPhoneNumberInput-Bbr0zHPZ.mjs} +3 -3
  73. package/components/chunks/{MazPicker-DwWiIYAR.mjs → MazPicker-EMOuyWJy.mjs} +538 -539
  74. package/components/chunks/{MazPickerMonthSwitcher-CmFFQoPA.mjs → MazPickerMonthSwitcher-DJGgb6BT.mjs} +1 -1
  75. package/components/chunks/{MazPickerShortcuts-DaELz7aq.mjs → MazPickerShortcuts-Cg1uqryw.mjs} +1 -1
  76. package/components/chunks/{MazPickerYearSwitcher-m1_KXnpA.mjs → MazPickerYearSwitcher-BLUXEs0G.mjs} +1 -1
  77. package/components/chunks/{MazSelect-DOiqBTNY.mjs → MazSelect-BDMOrVry.mjs} +2 -2
  78. package/components/chunks/{MazSelect-Cnz3p3n2.mjs → MazSelect-BUETsREx.mjs} +3 -3
  79. package/components/chunks/{MazSpinner-DmiLBQgR.mjs → MazSpinner--fscjBdL.mjs} +1 -1
  80. package/components/chunks/MazSpinner-B8vOa-3i.mjs +34 -0
  81. package/components/chunks/MazSpinner-BODHZQ9h.mjs +34 -0
  82. package/components/chunks/MazSpinner-BdOKUqKA.mjs +34 -0
  83. package/components/chunks/{MazSpinner-BsYJDmi9.mjs → MazSpinner-C0PBSYpC.mjs} +1 -1
  84. package/components/chunks/{MazSpinner-B1PXhYRx.mjs → MazSpinner-CEgSruvD.mjs} +1 -1
  85. package/components/chunks/{MazSpinner-Dhg-s-9s.mjs → MazSpinner-CLlK6hHp.mjs} +1 -1
  86. package/components/chunks/MazSpinner-CMMBCwk2.mjs +34 -0
  87. package/components/chunks/{MazSpinner-BcB0szZB.mjs → MazSpinner-CQpzVTYF.mjs} +1 -1
  88. package/components/chunks/MazSpinner-ChqoF_fX.mjs +34 -0
  89. package/components/chunks/{MazSpinner-BpkPcfCt.mjs → MazSpinner-D5ciNjTR.mjs} +1 -1
  90. package/components/chunks/{MazSpinner-edxn0ncQ.mjs → MazSpinner-DJM02T-b.mjs} +1 -1
  91. package/components/chunks/{MazSpinner-B7tPZpHw.mjs → MazSpinner-DebSlkVT.mjs} +1 -1
  92. package/components/chunks/{MazSpinner-DoRGA1RI.mjs → MazSpinner-RzOGVi6V.mjs} +1 -1
  93. package/components/chunks/{MazSpinner-Bb3f2t6w.mjs → MazSpinner-VN2Vol2B.mjs} +1 -1
  94. package/components/chunks/MazSpinner-dm4RUkiD.mjs +34 -0
  95. package/components/chunks/MazSpinner-oLVdOGaR.mjs +34 -0
  96. package/components/chunks/{MazTable-BKdEx63E.mjs → MazTable-CWsaB02U.mjs} +1 -1
  97. package/components/chunks/{MazTableCell-CozcugiL.mjs → MazTableCell-CgiGF3bL.mjs} +1 -1
  98. package/components/chunks/{MazTableRow-bLFpjzu1.mjs → MazTableRow-6KrQQQbm.mjs} +1 -1
  99. package/components/chunks/{MazTableTitle-Qk239mu9.mjs → MazTableTitle-C8P3v8b6.mjs} +1 -1
  100. package/components/chunks/{MazTransitionExpand-PmUDa51_.mjs → MazTransitionExpand-BCgH8NZP.mjs} +1 -1
  101. package/modules/assets/MazBtn.css +1 -1
  102. package/modules/chunks/MazBtn-SZHtOzgz.cjs +1 -0
  103. package/modules/chunks/MazBtn-y5LW9A2T.mjs +105 -0
  104. package/modules/chunks/{MazIcon-B8BoiF7R.cjs → MazIcon-BpVDZGXl.cjs} +1 -1
  105. package/modules/chunks/{MazIcon-C6zDSPgJ.mjs → MazIcon-Dj66ziAh.mjs} +1 -1
  106. package/modules/chunks/{MazSpinner-B-4tL9pK.cjs → MazSpinner-CPT6UF2e.cjs} +1 -1
  107. package/modules/chunks/{MazSpinner-BvJydaeF.mjs → MazSpinner-uMrdk_99.mjs} +1 -1
  108. package/modules/chunks/{index-Bf4X7amE.mjs → index-BG6gPie5.mjs} +4 -4
  109. package/modules/chunks/{index-F0B533E8.cjs → index-BTegnVLg.cjs} +2 -2
  110. package/modules/index.cjs +1 -1
  111. package/modules/index.mjs +1 -1
  112. package/nuxt/index.json +1 -1
  113. package/package.json +1 -1
  114. package/types/components/MazCard.vue.d.ts +2 -2
  115. package/types/components/MazCircularProgressBar.vue.d.ts +1 -1
  116. package/types/components/MazDropdown.vue.d.ts +22 -2
  117. package/types/components/MazGallery.vue.d.ts +1 -1
  118. package/types/components/MazInputNumber.vue.d.ts +2 -2
  119. package/types/components/MazInputPrice.vue.d.ts +2 -2
  120. package/types/components/MazPhoneNumberInput.vue.d.ts +1 -1
  121. package/types/components/MazPicker.vue.d.ts +1 -1
  122. package/types/components/MazPullToRefresh.vue.d.ts +1 -1
  123. package/types/components/MazReadingProgressBar.vue.d.ts +1 -1
  124. package/types/components/MazSlider.vue.d.ts +1 -1
  125. package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +1 -1
  126. package/components/chunks/MazBtn-40lm8-AL.mjs +0 -106
  127. package/components/chunks/MazBtn-BB1FyYWv.mjs +0 -114
  128. package/components/chunks/MazBtn-BJxI5VQw.mjs +0 -106
  129. package/components/chunks/MazBtn-BmrcK2af.mjs +0 -106
  130. package/components/chunks/MazBtn-C72_1uvu.mjs +0 -106
  131. package/components/chunks/MazBtn-CWloP6MI.mjs +0 -111
  132. package/components/chunks/MazBtn-C_BULYqZ.mjs +0 -106
  133. package/components/chunks/MazBtn-CcyV4DCc.mjs +0 -106
  134. package/components/chunks/MazBtn-DENEMy-c.mjs +0 -106
  135. package/components/chunks/MazBtn-Sj-Pq0YV.mjs +0 -106
  136. package/components/chunks/MazBtn-UnZQuu6P.mjs +0 -106
  137. package/components/chunks/MazBtn-cUQ1Tykp.mjs +0 -106
  138. package/components/chunks/MazBtn-hUslV7wO.mjs +0 -106
  139. package/components/chunks/MazBtn-psosbsi3.mjs +0 -106
  140. package/components/chunks/MazDropdown-peYVJsXv.mjs +0 -441
  141. package/components/chunks/MazIcon-Bk4mYF1h.mjs +0 -4
  142. package/components/chunks/MazInputNumber-DRXQXHRv.mjs +0 -572
  143. package/components/chunks/MazInputTags-Dj3sW-e5.mjs +0 -585
  144. package/components/chunks/MazPagination-BkT4_LLW.mjs +0 -330
  145. package/components/chunks/MazSpinner-BymqEMBk.mjs +0 -34
  146. package/components/chunks/MazSpinner-D3-pqOh3.mjs +0 -34
  147. package/components/chunks/MazSpinner-DOSj2BnX.mjs +0 -34
  148. package/components/chunks/MazSpinner-DS58mtzm.mjs +0 -34
  149. package/components/chunks/MazSpinner-eC03bFP5.mjs +0 -34
  150. package/components/chunks/MazSpinner-f2Mc2eRO.mjs +0 -34
  151. package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +0 -34
  152. package/modules/chunks/MazBtn-D7el03Rl.cjs +0 -1
  153. package/modules/chunks/MazBtn-D8uOirkn.mjs +0 -106
@@ -0,0 +1,584 @@
1
+ import { openBlock as l, createElementBlock as I, createElementVNode as E, defineComponent as q, defineAsyncComponent as C, useAttrs as ne, computed as r, createBlock as c, resolveDynamicComponent as F, normalizeClass as z, withCtx as P, renderSlot as S, unref as p, createCommentVNode as f, createVNode as O, useId as ae, ref as j, onMounted as le, useSlots as re, normalizeStyle as H, withDirectives as se, mergeProps as K, toHandlers as ie, vModelDynamic as ue, createTextVNode as G, toDisplayString as J, withModifiers as Q, TransitionGroup as de, Fragment as fe, renderList as ce, withKeys as U } from "vue";
2
+ import '../assets/MazInputTags.css';function R(d) {
3
+ return !!d;
4
+ }
5
+ const me = {
6
+ xmlns: "http://www.w3.org/2000/svg",
7
+ width: "1em",
8
+ height: "1em",
9
+ fill: "none",
10
+ viewBox: "0 0 24 24"
11
+ };
12
+ function pe(d, n) {
13
+ return l(), I("svg", me, n[0] || (n[0] = [
14
+ E(
15
+ "path",
16
+ {
17
+ stroke: "currentColor",
18
+ "stroke-linecap": "round",
19
+ "stroke-linejoin": "round",
20
+ "stroke-width": "1.5",
21
+ d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
22
+ },
23
+ null,
24
+ -1
25
+ /* HOISTED */
26
+ )
27
+ ]));
28
+ }
29
+ const ve = { render: pe }, ye = {
30
+ key: 0,
31
+ class: "m-btn-loader-container"
32
+ }, be = /* @__PURE__ */ q({
33
+ __name: "MazBtn",
34
+ props: {
35
+ variant: { default: "button" },
36
+ size: { default: "md" },
37
+ color: { default: "primary" },
38
+ type: { default: "button" },
39
+ rounded: { type: Boolean },
40
+ roundedSize: { default: "lg" },
41
+ noRounded: { type: Boolean },
42
+ outline: { type: Boolean },
43
+ pastel: { type: Boolean },
44
+ block: { type: Boolean },
45
+ noUnderline: { type: Boolean },
46
+ loading: { type: Boolean },
47
+ disabled: { type: Boolean },
48
+ fab: { type: Boolean },
49
+ icon: { type: [String, Function, Object], default: void 0 },
50
+ leftIcon: { type: [String, Function, Object], default: void 0 },
51
+ rightIcon: { type: [String, Function, Object], default: void 0 },
52
+ noPadding: { type: Boolean },
53
+ noElevation: { type: Boolean },
54
+ justify: { default: "center" }
55
+ },
56
+ setup(d) {
57
+ const n = d, t = C(() => import("./MazSpinner-dm4RUkiD.mjs")), u = C(() => import("./MazIcon-BbvBov5G.mjs")), { href: h, to: g } = ne(), v = r(() => h ? "a" : g ? "router-link" : "button"), y = r(
58
+ () => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
59
+ ), w = r(
60
+ () => (n.loading || n.disabled) && v.value === "button"
61
+ ), m = r(() => w.value ? "--cursor-default" : "--cursor-pointer"), k = r(() => `--is-${n.variant}`), M = r(() => n.loading && n.variant === "button"), D = r(() => v.value === "button" ? n.type : void 0), b = r(() => 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"), L = r(() => 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, a) => (l(), c(F(v.value), {
63
+ disabled: w.value || void 0,
64
+ class: z(["m-btn", [
65
+ `--${o.size}`,
66
+ !o.fab && !o.rounded && o.roundedSize && `--rounded-${o.roundedSize}`,
67
+ y.value,
68
+ m.value,
69
+ k.value,
70
+ L.value,
71
+ {
72
+ "--block": o.block,
73
+ "--no-underline": o.noUnderline,
74
+ "--fab": o.fab,
75
+ "--loading": o.loading,
76
+ "--disabled": w.value,
77
+ "--rounded": o.rounded,
78
+ "--no-rounded": o.noRounded,
79
+ "--no-padding": o.noPadding,
80
+ "--no-elevation": o.noElevation
81
+ }
82
+ ]]),
83
+ type: D.value
84
+ }, {
85
+ default: P(() => [
86
+ S(o.$slots, "left-icon", {}, () => [
87
+ typeof o.leftIcon == "string" ? (l(), c(p(u), {
88
+ key: 0,
89
+ name: o.leftIcon,
90
+ class: z([b.value])
91
+ }, null, 8, ["name", "class"])) : o.leftIcon ? (l(), c(F(o.leftIcon), {
92
+ key: 1,
93
+ class: z([b.value])
94
+ }, null, 8, ["class"])) : f("v-if", !0)
95
+ ], !0),
96
+ S(o.$slots, "icon", {}, () => [
97
+ typeof o.icon == "string" ? (l(), c(p(u), {
98
+ key: 0,
99
+ name: o.icon,
100
+ class: z([b.value])
101
+ }, null, 8, ["name", "class"])) : o.icon ? (l(), c(F(o.icon), {
102
+ key: 1,
103
+ class: z([b.value])
104
+ }, null, 8, ["class"])) : f("v-if", !0)
105
+ ], !0),
106
+ S(o.$slots, "default", {}, void 0, !0),
107
+ S(o.$slots, "right-icon", {}, () => [
108
+ typeof o.rightIcon == "string" ? (l(), c(p(u), {
109
+ key: 0,
110
+ name: o.rightIcon,
111
+ class: z([b.value])
112
+ }, null, 8, ["name", "class"])) : o.rightIcon ? (l(), c(F(o.rightIcon), {
113
+ key: 1,
114
+ class: z([b.value])
115
+ }, null, 8, ["class"])) : f("v-if", !0)
116
+ ], !0),
117
+ M.value ? (l(), I("div", ye, [
118
+ O(p(t), {
119
+ size: "2em",
120
+ color: o.color
121
+ }, null, 8, ["color"])
122
+ ])) : f("v-if", !0)
123
+ ]),
124
+ _: 3
125
+ /* FORWARDED */
126
+ }, 8, ["disabled", "class", "type"]));
127
+ }
128
+ }), N = (d, n) => {
129
+ const t = d.__vccOpts || d;
130
+ for (const [u, h] of n)
131
+ t[u] = h;
132
+ return t;
133
+ }, W = /* @__PURE__ */ N(be, [["__scopeId", "data-v-95f33abf"]]), ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
134
+ __proto__: null,
135
+ default: W
136
+ }, Symbol.toStringTag, { value: "Module" }));
137
+ function ze({
138
+ componentName: d,
139
+ providedId: n
140
+ }) {
141
+ const t = ae();
142
+ return r(() => n ?? `${d}-${t}`);
143
+ }
144
+ function he(d, n) {
145
+ let t;
146
+ return function(...u) {
147
+ clearTimeout(t), t = setTimeout(() => {
148
+ d.apply(this, u);
149
+ }, n);
150
+ };
151
+ }
152
+ const ke = {
153
+ key: 0,
154
+ class: "m-input-wrapper-left"
155
+ }, Be = { class: "m-input-wrapper-input" }, Ie = ["id", "type", "name", "inputmode", "placeholder", "aria-label", "disabled", "readonly", "required"], we = { key: 0 }, $e = {
156
+ key: 1,
157
+ class: "m-input-wrapper-right"
158
+ }, je = /* @__PURE__ */ q({
159
+ inheritAttrs: !1,
160
+ __name: "MazInput",
161
+ props: {
162
+ style: { default: void 0 },
163
+ class: { default: void 0 },
164
+ modelValue: { default: void 0 },
165
+ placeholder: { default: void 0 },
166
+ label: { default: void 0 },
167
+ name: { default: void 0 },
168
+ color: { default: "primary" },
169
+ type: { default: "text" },
170
+ required: { type: Boolean, default: !1 },
171
+ disabled: { type: Boolean, default: !1 },
172
+ readonly: { type: Boolean, default: !1 },
173
+ id: { default: void 0 },
174
+ error: { type: Boolean, default: !1 },
175
+ success: { type: Boolean, default: !1 },
176
+ warning: { type: Boolean, default: !1 },
177
+ hint: { default: void 0 },
178
+ inputClasses: { default: void 0 },
179
+ noBorder: { type: Boolean, default: !1 },
180
+ noRadius: { type: Boolean, default: !1 },
181
+ inputmode: { default: "text" },
182
+ size: { default: "md" },
183
+ debounce: { type: [Boolean, Number], default: !1 },
184
+ debounceDelay: { default: 500 },
185
+ validButton: { type: Boolean, default: !1 },
186
+ validButtonLoading: { type: Boolean, default: !1 },
187
+ autoFocus: { type: Boolean, default: !1 },
188
+ borderActive: { type: Boolean, default: !1 },
189
+ leftIcon: { type: [String, Function, Object], default: void 0 },
190
+ rightIcon: { type: [String, Function, Object], default: void 0 },
191
+ roundedSize: { default: void 0 },
192
+ block: { type: Boolean }
193
+ },
194
+ emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
195
+ setup(d, { emit: n }) {
196
+ const t = d, u = n, h = C(() => Promise.resolve().then(() => ge)), g = C(() => import("./MazIcon-BbvBov5G.mjs")), v = C(() => import("./eye-slash-BoO00xzs.mjs")), y = C(() => import("./eye-f8zAUc30.mjs")), w = C(() => import("./check-BmubdHc_.mjs")), m = j(!1), k = j(!1), M = j(), D = ze({
197
+ componentName: "MazInput",
198
+ providedId: t.id
199
+ });
200
+ le(() => {
201
+ var e;
202
+ t.autoFocus && ((e = M.value) == null || e.focus());
203
+ });
204
+ const b = r(() => t.type === "password"), L = r(() => m.value ? "text" : t.type), o = r(() => {
205
+ if (!t.noBorder) {
206
+ if (t.error)
207
+ return "maz-border-danger";
208
+ if (t.success)
209
+ return "maz-border-success";
210
+ if (t.warning)
211
+ return "maz-border-warning";
212
+ if (k.value || t.borderActive) {
213
+ if (t.color === "black")
214
+ return "maz-border-black";
215
+ if (t.color === "danger")
216
+ return "maz-border-danger";
217
+ if (t.color === "info")
218
+ return "maz-border-info";
219
+ if (t.color === "primary")
220
+ return "maz-border-primary";
221
+ if (t.color === "secondary")
222
+ return "maz-border-secondary";
223
+ if (t.color === "success")
224
+ return "maz-border-success";
225
+ if (t.color === "warning")
226
+ return "maz-border-warning";
227
+ if (t.color === "white")
228
+ return "maz-border-white";
229
+ }
230
+ return "--default-border";
231
+ }
232
+ }), a = re(), s = r(() => {
233
+ const { required: e, placeholder: B } = t;
234
+ if (B)
235
+ return e ? `${B} *` : B;
236
+ }), i = r(() => T.value !== void 0 && T.value !== ""), V = he(
237
+ (e) => {
238
+ u("update:model-value", e);
239
+ },
240
+ typeof t.debounce == "number" ? t.debounce : t.debounceDelay ?? 500
241
+ );
242
+ function $(e) {
243
+ if (t.debounce)
244
+ return V(e);
245
+ u("update:model-value", e);
246
+ }
247
+ const T = r({
248
+ get: () => t.modelValue,
249
+ set: (e) => $(e)
250
+ }), X = r(() => (!!t.label || !!t.hint) && (k.value || !!i.value || !!t.placeholder || ["date", "month", "week"].includes(t.type))), Y = r(() => !!t.label || !!t.hint);
251
+ function Z() {
252
+ return !!a["right-icon"] || b.value || !!a["valid-button"] || t.validButton || !!t.rightIcon;
253
+ }
254
+ function x() {
255
+ return !!a["left-icon"] || !!t.leftIcon;
256
+ }
257
+ function _(e) {
258
+ u("focus", e), k.value = !0;
259
+ }
260
+ function ee(e) {
261
+ u("blur", e), k.value = !1;
262
+ }
263
+ function te(e) {
264
+ return u("change", e);
265
+ }
266
+ function oe(e) {
267
+ return u("input", e);
268
+ }
269
+ return (e, B) => (l(), I(
270
+ "div",
271
+ {
272
+ class: z(["m-input", [
273
+ {
274
+ "--is-focused": k.value || e.borderActive,
275
+ "--should-up": X.value,
276
+ "--has-label": Y.value,
277
+ "--is-disabled": e.disabled,
278
+ "--is-readonly": e.readonly,
279
+ "--has-z-2": e.error || e.warning || e.success,
280
+ "--has-state": e.error || e.warning || e.success,
281
+ "--block": e.block
282
+ },
283
+ t.class,
284
+ `--${e.color}`,
285
+ `--${e.size}`
286
+ ]]),
287
+ style: H(e.style)
288
+ },
289
+ [
290
+ E(
291
+ "div",
292
+ {
293
+ class: z(["m-input-wrapper", [
294
+ e.inputClasses,
295
+ o.value,
296
+ e.roundedSize ? `--rounded-${e.roundedSize}` : { "maz-rounded": !e.noRadius }
297
+ ]])
298
+ },
299
+ [
300
+ x() ? (l(), I("div", ke, [
301
+ e.$slots["left-icon"] || e.leftIcon ? S(e.$slots, "left-icon", { key: 0 }, () => [
302
+ typeof e.leftIcon == "string" ? (l(), c(p(g), {
303
+ key: 0,
304
+ name: e.leftIcon,
305
+ class: "maz-text-xl maz-text-muted"
306
+ }, null, 8, ["name"])) : e.leftIcon ? (l(), c(F(e.leftIcon), {
307
+ key: 1,
308
+ class: "maz-text-xl maz-text-muted"
309
+ })) : f("v-if", !0)
310
+ ], !0) : f("v-if", !0)
311
+ ])) : f("v-if", !0),
312
+ E("div", Be, [
313
+ se(E("input", K({
314
+ id: p(D),
315
+ ref_key: "input",
316
+ ref: M,
317
+ "onUpdate:modelValue": B[0] || (B[0] = (A) => T.value = A),
318
+ type: L.value,
319
+ name: e.name
320
+ }, e.$attrs, {
321
+ inputmode: e.inputmode,
322
+ placeholder: s.value,
323
+ "aria-label": e.label || e.placeholder,
324
+ disabled: e.disabled,
325
+ readonly: e.readonly,
326
+ required: e.required,
327
+ class: "m-input-input"
328
+ }, ie({
329
+ blur: ee,
330
+ focus: _,
331
+ change: te,
332
+ input: oe
333
+ }, !0), {
334
+ onClick: B[1] || (B[1] = (A) => e.$emit("click", A))
335
+ }), null, 16, Ie), [
336
+ [ue, T.value]
337
+ ]),
338
+ e.label || e.hint ? (l(), I(
339
+ "span",
340
+ {
341
+ key: 0,
342
+ class: z(["m-input-label", [
343
+ {
344
+ "maz-text-danger-600": e.error,
345
+ "maz-text-success-600": e.success,
346
+ "maz-text-warning-600": e.warning
347
+ }
348
+ ]])
349
+ },
350
+ [
351
+ G(
352
+ J(e.hint || e.label) + " ",
353
+ 1
354
+ /* TEXT */
355
+ ),
356
+ e.required ? (l(), I("sup", we, "*")) : f("v-if", !0)
357
+ ],
358
+ 2
359
+ /* CLASS */
360
+ )) : f("v-if", !0)
361
+ ]),
362
+ Z() ? (l(), I("div", $e, [
363
+ e.$slots["right-icon"] || e.rightIcon ? S(e.$slots, "right-icon", { key: 0 }, () => [
364
+ typeof e.rightIcon == "string" ? (l(), c(p(g), {
365
+ key: 0,
366
+ name: e.rightIcon,
367
+ class: "maz-text-xl maz-text-muted"
368
+ }, null, 8, ["name"])) : e.rightIcon ? (l(), c(F(e.rightIcon), {
369
+ key: 1,
370
+ class: "maz-text-xl maz-text-muted"
371
+ })) : f("v-if", !0)
372
+ ], !0) : f("v-if", !0),
373
+ b.value ? (l(), c(p(h), {
374
+ key: 1,
375
+ color: "transparent",
376
+ tabindex: "-1",
377
+ size: "mini",
378
+ onClick: B[2] || (B[2] = Q((A) => m.value = !m.value, ["stop"]))
379
+ }, {
380
+ default: P(() => [
381
+ m.value ? (l(), c(p(v), {
382
+ key: 0,
383
+ class: "maz-text-xl maz-text-muted"
384
+ })) : (l(), c(p(y), {
385
+ key: 1,
386
+ class: "maz-text-xl maz-text-muted"
387
+ }))
388
+ ]),
389
+ _: 1
390
+ /* STABLE */
391
+ })) : f("v-if", !0),
392
+ e.$slots["valid-button"] || e.validButton ? S(e.$slots, "valid-button", { key: 2 }, () => [
393
+ O(p(h), {
394
+ color: "transparent",
395
+ disabled: e.disabled,
396
+ tabindex: "-1",
397
+ loading: e.validButtonLoading,
398
+ class: "m-input-valid-button",
399
+ size: "mini",
400
+ type: "submit"
401
+ }, {
402
+ default: P(() => [
403
+ O(p(w), { class: "maz-text-2xl maz-text-normal" })
404
+ ]),
405
+ _: 1
406
+ /* STABLE */
407
+ }, 8, ["disabled", "loading"])
408
+ ], !0) : f("v-if", !0)
409
+ ])) : f("v-if", !0)
410
+ ],
411
+ 2
412
+ /* CLASS */
413
+ )
414
+ ],
415
+ 6
416
+ /* CLASS, STYLE */
417
+ ));
418
+ }
419
+ }), Ce = /* @__PURE__ */ N(je, [["__scopeId", "data-v-c42aaa7f"]]), Se = /* @__PURE__ */ q({
420
+ inheritAttrs: !1,
421
+ __name: "MazInputTags",
422
+ props: {
423
+ style: { default: void 0 },
424
+ class: { default: void 0 },
425
+ modelValue: { default: void 0 },
426
+ placeholder: { default: void 0 },
427
+ label: { default: void 0 },
428
+ disabled: { type: Boolean, default: !1 },
429
+ error: { type: Boolean, default: !1 },
430
+ success: { type: Boolean, default: !1 },
431
+ warning: { type: Boolean, default: !1 },
432
+ size: { default: "md" },
433
+ color: { default: "primary" },
434
+ block: { type: Boolean },
435
+ addTagsOnBlur: { type: Boolean, default: !0 },
436
+ hint: {}
437
+ },
438
+ emits: ["update:model-value"],
439
+ setup(d, { emit: n }) {
440
+ const t = d, u = n, h = j(!1), g = j(), v = j(), y = j(), w = j(), m = r(
441
+ () => {
442
+ var o;
443
+ return (o = t.modelValue) == null ? void 0 : o.map((a) => ({
444
+ tag: a,
445
+ id: Math.random().toString(36).slice(2, 11)
446
+ }));
447
+ }
448
+ );
449
+ function k(o) {
450
+ if (g.value) {
451
+ y.value = void 0, o.preventDefault();
452
+ const s = g.value.trim().split(",").map((i) => i.trim() === "," ? void 0 : i.trim()).filter(R).filter(
453
+ (i) => {
454
+ var V, $;
455
+ return !(($ = (V = t.modelValue) == null ? void 0 : V.filter(R)) != null && $.some((T) => T === i));
456
+ }
457
+ );
458
+ u(
459
+ "update:model-value",
460
+ t.modelValue ? [...t.modelValue, ...s] : [...s]
461
+ ), g.value = void 0;
462
+ }
463
+ }
464
+ const M = r(() => {
465
+ if (t.error)
466
+ return "maz-border-danger";
467
+ if (t.success)
468
+ return "maz-border-success";
469
+ if (t.warning)
470
+ return "maz-border-warning";
471
+ if (h.value) {
472
+ if (t.color === "primary")
473
+ return "maz-border-primary";
474
+ if (t.color === "secondary")
475
+ return "maz-border-secondary";
476
+ if (t.color === "info")
477
+ return "maz-border-info";
478
+ if (t.color === "danger")
479
+ return "maz-border-danger";
480
+ if (t.color === "success")
481
+ return "maz-border-success";
482
+ if (t.color === "warning")
483
+ return "maz-border-warning";
484
+ if (t.color === "black")
485
+ return "maz-border-black";
486
+ if (t.color === "white")
487
+ return "maz-border-white";
488
+ }
489
+ return "maz-border-border dark:maz-border-color-lighter";
490
+ });
491
+ function D() {
492
+ var o, a, s;
493
+ g.value || m.value && ((o = m.value) == null ? void 0 : o.length) === 0 || (w.value && clearTimeout(w.value), y.value ? (b(y.value), y.value = void 0) : (y.value = (s = (a = m.value) == null ? void 0 : a[m.value.length - 1]) == null ? void 0 : s.id, w.value = setTimeout(() => {
494
+ y.value = void 0;
495
+ }, 2e3)));
496
+ }
497
+ function b(o) {
498
+ var s;
499
+ const a = (s = m.value) == null ? void 0 : s.filter((i) => i.id !== o).map((i) => i.tag);
500
+ u("update:model-value", a);
501
+ }
502
+ const L = r(() => 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);
503
+ return (o, a) => (l(), I(
504
+ "div",
505
+ {
506
+ class: z(["m-input-tags", [M.value, `--${o.color}`, `--${o.size}`, t.class, { "--block": o.block }]]),
507
+ style: H(o.style),
508
+ onFocusCapture: a[4] || (a[4] = (s) => h.value = !0),
509
+ onBlurCapture: a[5] || (a[5] = (s) => h.value = !1)
510
+ },
511
+ [
512
+ O(de, { name: "maz-tags" }, {
513
+ default: P(() => [
514
+ (l(!0), I(
515
+ fe,
516
+ null,
517
+ ce(m.value, ({ tag: s, id: i }, V) => (l(), I("div", {
518
+ key: `tag-${V}`,
519
+ class: "m-input-tags__wrapper"
520
+ }, [
521
+ O(W, {
522
+ class: "m-input-tags__tag",
523
+ disabled: o.disabled,
524
+ size: L.value,
525
+ color: v.value === i || y.value === i ? "danger" : o.color,
526
+ "right-icon": v.value === i || y.value === i ? p(ve) : void 0,
527
+ onClick: Q(($) => b(i), ["stop"]),
528
+ onMouseenter: ($) => v.value = i,
529
+ onFocus: ($) => v.value = i,
530
+ onMouseleave: a[0] || (a[0] = ($) => v.value = void 0),
531
+ onBlur: a[1] || (a[1] = ($) => v.value = void 0)
532
+ }, {
533
+ default: P(() => [
534
+ G(
535
+ J(s),
536
+ 1
537
+ /* TEXT */
538
+ )
539
+ ]),
540
+ _: 2
541
+ /* DYNAMIC */
542
+ }, 1032, ["disabled", "size", "color", "right-icon", "onClick", "onMouseenter", "onFocus"])
543
+ ]))),
544
+ 128
545
+ /* KEYED_FRAGMENT */
546
+ ))
547
+ ]),
548
+ _: 1
549
+ /* STABLE */
550
+ }),
551
+ O(Ce, K({
552
+ key: "input-tags",
553
+ modelValue: g.value,
554
+ "onUpdate:modelValue": a[2] || (a[2] = (s) => g.value = s)
555
+ }, o.$attrs, {
556
+ placeholder: o.placeholder,
557
+ label: o.label,
558
+ "aria-label": o.label || o.placeholder,
559
+ error: o.error,
560
+ hint: o.hint,
561
+ success: o.success,
562
+ warning: o.warning,
563
+ disabled: o.disabled,
564
+ color: o.color,
565
+ block: o.block,
566
+ size: o.size,
567
+ "no-border": "",
568
+ class: "m-input-tags__input",
569
+ onKeydown: [
570
+ U(k, ["enter"]),
571
+ U(D, ["delete"])
572
+ ],
573
+ onBlur: a[3] || (a[3] = (s) => o.addTagsOnBlur ? k(s) : void 0)
574
+ }), null, 16, ["modelValue", "placeholder", "label", "aria-label", "error", "hint", "success", "warning", "disabled", "color", "block", "size"])
575
+ ],
576
+ 38
577
+ /* CLASS, STYLE, NEED_HYDRATION */
578
+ ));
579
+ }
580
+ }), Ve = /* @__PURE__ */ N(Se, [["__scopeId", "data-v-f5008e65"]]);
581
+ export {
582
+ Ve as M,
583
+ N as _
584
+ };
@@ -21,7 +21,7 @@ import '../assets/MazLink.css';const y = /* @__PURE__ */ f({
21
21
  setup(g) {
22
22
  const u = d(
23
23
  () => import("./arrow-top-right-on-square-jPmYJ34F.mjs")
24
- ), i = d(() => import("./MazIcon-Bk4mYF1h.mjs"));
24
+ ), i = d(() => import("./MazIcon-B3gy-jQ6.mjs"));
25
25
  return (e, c) => (o(), t(r(e.to ? "router-link" : "a"), s({
26
26
  id: e.id,
27
27
  class: ["m-link", [
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as l, useCssVars as n, computed as c, openBlock as s, createElementBlock as d, createElementVNode as m } from "vue";
2
- import { _ as p } from "./MazTable-BKdEx63E.mjs";
2
+ import { _ as p } from "./MazTable-CWsaB02U.mjs";
3
3
  import '../assets/MazLoadingBar.css';const i = { class: "m-loading-bar" }, u = /* @__PURE__ */ l({
4
4
  __name: "MazLoadingBar",
5
5
  props: {