maz-ui 3.47.2-beta.3 → 3.47.2-beta.5
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.
- package/components/MazChecklist.d.ts +1 -4
- package/components/MazChecklist.mjs +1 -1
- package/components/MazDropdown.d.ts +2 -1
- package/components/MazDropdown.mjs +2 -325
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/chunks/{MazBtn-cDJlUVVY.mjs → MazBtn-BJxI5VQw.mjs} +1 -1
- package/components/chunks/{MazBtn-BMYXMZuX.mjs → MazBtn-C_BULYqZ.mjs} +2 -2
- package/components/chunks/{MazBtn-2VKM1wZu.mjs → MazBtn-Sj-Pq0YV.mjs} +2 -2
- package/components/chunks/{MazBtn-DfqRZvbB.mjs → MazBtn-cUQ1Tykp.mjs} +2 -2
- package/components/chunks/{MazBtn-BijEMn4r.mjs → MazBtn-psosbsi3.mjs} +2 -2
- package/components/chunks/{MazCheckbox-DMogZVHl.mjs → MazCheckbox-BBL0vgqe.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Db6sPUbV.mjs → MazCheckbox-BTl370Qq.mjs} +1 -1
- package/components/chunks/{MazCheckbox-B22OcHt8.mjs → MazCheckbox-DTU2jEkC.mjs} +1 -1
- package/components/chunks/{MazChecklist-C95Y4Hb-.mjs → MazChecklist-CQv-sXP1.mjs} +79 -79
- package/components/chunks/MazDropdown-peYVJsXv.mjs +441 -0
- package/components/chunks/{MazIcon-BF5TFzse.mjs → MazIcon-BdQtfzuy.mjs} +1 -1
- package/components/chunks/MazIcon-Bk4mYF1h.mjs +4 -0
- package/components/chunks/{MazInput-DC3S-CVu.mjs → MazInput-eOtg1L9F.mjs} +2 -2
- package/components/chunks/{MazInput-NE6H-10w.mjs → MazInput-geBqeT4i.mjs} +2 -2
- package/components/chunks/{MazLink-C_3Wya94.mjs → MazLink-Cd4MwIC9.mjs} +1 -1
- package/components/chunks/{MazLoadingBar-DdjHRC7g.mjs → MazLoadingBar-DHcYPXlE.mjs} +1 -1
- package/components/chunks/{MazPhoneNumberInput-BbssOUzo.mjs → MazPhoneNumberInput-BTm8A0bL.mjs} +33 -32
- package/components/chunks/{MazSelect-CDV9Fx6m.mjs → MazSelect-Cnz3p3n2.mjs} +41 -40
- package/components/chunks/{MazSelect-BJ07NVXQ.mjs → MazSelect-DOiqBTNY.mjs} +57 -56
- package/components/chunks/{MazSpinner-CykRbNHD.mjs → MazSpinner-B1PXhYRx.mjs} +1 -1
- package/components/chunks/{MazSpinner-CEFbkZkM.mjs → MazSpinner-B7tPZpHw.mjs} +1 -1
- package/components/chunks/{MazSpinner-Dmkr_r9u.mjs → MazSpinner-DOSj2BnX.mjs} +1 -1
- package/components/chunks/{MazSpinner-CfiIXW8y.mjs → MazSpinner-Dhg-s-9s.mjs} +1 -1
- package/components/chunks/{MazTable-BJDPdIJB.mjs → MazTable-BKdEx63E.mjs} +1 -1
- package/components/chunks/{MazTableCell-DILuUCTe.mjs → MazTableCell-CozcugiL.mjs} +1 -1
- package/components/chunks/{MazTableRow-D6H6-c8J.mjs → MazTableRow-bLFpjzu1.mjs} +1 -1
- package/components/chunks/{MazTableTitle-Ch-nyY1E.mjs → MazTableTitle-Qk239mu9.mjs} +1 -1
- package/modules/chunks/{MazBtn-R7z-Hxp-.cjs → MazBtn-D7el03Rl.cjs} +1 -1
- package/modules/chunks/{MazBtn-QVmZ90t5.mjs → MazBtn-D8uOirkn.mjs} +2 -2
- package/modules/chunks/{MazIcon-CKCoY05P.cjs → MazIcon-B8BoiF7R.cjs} +1 -1
- package/modules/chunks/{MazIcon-DJfEPmBG.mjs → MazIcon-C6zDSPgJ.mjs} +1 -1
- package/modules/chunks/{MazSpinner-DYT43E6e.cjs → MazSpinner-B-4tL9pK.cjs} +1 -1
- package/modules/chunks/{MazSpinner-C95OqwKl.mjs → MazSpinner-BvJydaeF.mjs} +1 -1
- package/modules/chunks/{index-CjsYU5rv.mjs → index-Bf4X7amE.mjs} +29 -23
- package/modules/chunks/index-F0B533E8.cjs +124 -0
- package/modules/index.cjs +1 -1
- package/modules/index.mjs +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazChecklist.vue.d.ts +1 -4
- package/types/components/MazDropdown.vue.d.ts +2 -1
- package/types/modules/composables/useFormValidator/types.d.ts +6 -6
- package/types/modules/composables/useFormValidator/useFormField.d.ts +2 -2
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +3 -3
- package/types/modules/composables/useFormValidator/utils.d.ts +5 -5
- package/modules/chunks/index-oVi9-l4o.cjs +0 -124
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as w, defineAsyncComponent as v, useAttrs as E, useSlots as O, computed as o, openBlock as t, createBlock as a, resolveDynamicComponent as r, normalizeClass as l, withCtx as R, renderSlot as u, unref as d, createCommentVNode as i, createElementBlock as A, createVNode as D } from "vue";
|
|
2
|
-
import { _ as L } from "./MazTable-
|
|
2
|
+
import { _ as L } from "./MazTable-BKdEx63E.mjs";
|
|
3
3
|
import '../assets/MazBtn.css';const N = {
|
|
4
4
|
key: 2,
|
|
5
5
|
class: "m-btn-loader-container"
|
|
@@ -28,7 +28,7 @@ import '../assets/MazBtn.css';const N = {
|
|
|
28
28
|
justify: { default: "center" }
|
|
29
29
|
},
|
|
30
30
|
setup(z) {
|
|
31
|
-
const n = z, b = v(() => import("./MazSpinner-
|
|
31
|
+
const n = z, b = v(() => import("./MazSpinner-Dhg-s-9s.mjs")), c = v(() => import("./MazIcon-DjMuw8Bz.mjs")), { href: g, to: h } = E(), f = O(), y = o(() => g ? "a" : h ? "router-link" : "button"), j = o(
|
|
32
32
|
() => n.pastel ? `--${n.color}-pastel` : n.outline ? `--${n.color}-outline` : `--${n.color}`
|
|
33
33
|
), m = o(
|
|
34
34
|
() => (n.loading || n.disabled) && y.value === "button"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as F, _ as H } from "./MazSelect-
|
|
2
|
+
import { u as F, _ as H } from "./MazSelect-DOiqBTNY.mjs";
|
|
3
3
|
import K from "./check-C9Q_W85g.mjs";
|
|
4
4
|
import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
|
|
2
2
|
import { u as F } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
3
|
import H from "./check-C9Q_W85g.mjs";
|
|
4
|
-
import { _ as K } from "./MazTable-
|
|
4
|
+
import { _ as K } from "./MazTable-BKdEx63E.mjs";
|
|
5
5
|
import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
|
|
6
6
|
inheritAttrs: !1,
|
|
7
7
|
__name: "MazCheckbox",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as I, useCssVars as N, computed as r, ref as E, openBlock as p, createElementBlock as h, unref as s, normalizeClass as c, normalizeStyle as A, createElementVNode as u, mergeProps as _, createVNode as M, renderSlot as D, createTextVNode as R, toDisplayString as b, createCommentVNode as q } from "vue";
|
|
2
|
-
import { u as F, _ as H } from "./MazPhoneNumberInput-
|
|
2
|
+
import { u as F, _ as H } from "./MazPhoneNumberInput-BTm8A0bL.mjs";
|
|
3
3
|
import K from "./check-C9Q_W85g.mjs";
|
|
4
4
|
import '../assets/MazCheckbox.css';const P = ["for", "aria-checked"], T = ["id", "checked", "disabled", "name"], U = { class: "m-checkbox__text" }, $ = /* @__PURE__ */ I({
|
|
5
5
|
inheritAttrs: !1,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, useCssVars as j, ref as
|
|
1
|
+
import { defineComponent as O, useCssVars as j, ref as S, computed as f, onMounted as K, onUnmounted as P, openBlock as p, createElementBlock as v, normalizeClass as x, normalizeStyle as N, createElementVNode as m, renderSlot as w, withDirectives as q, vShow as F, useId as T, unref as C, mergeProps as D, createVNode as V, createTextVNode as B, toDisplayString as E, createCommentVNode as $, defineAsyncComponent as _, watch as H, withCtx as Z, Fragment as G, renderList as J } from "vue";
|
|
2
2
|
import '../assets/MazChecklist.css';const W = {
|
|
3
3
|
removeAccents: !0,
|
|
4
4
|
caseSensitive: !1,
|
|
@@ -9,8 +9,8 @@ import '../assets/MazChecklist.css';const W = {
|
|
|
9
9
|
removeNumbers: !1,
|
|
10
10
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
11
11
|
};
|
|
12
|
-
function U(c,
|
|
13
|
-
const e = { ...W, ...
|
|
12
|
+
function U(c, t) {
|
|
13
|
+
const e = { ...W, ...t }, n = {
|
|
14
14
|
À: "A",
|
|
15
15
|
Á: "A",
|
|
16
16
|
Â: "A",
|
|
@@ -60,9 +60,9 @@ function U(c, r) {
|
|
|
60
60
|
ó: "o"
|
|
61
61
|
};
|
|
62
62
|
let l = c.toString();
|
|
63
|
-
if (e.trim && (l = l.trim()), e.normalizeSpaces && (l = l.replaceAll(/\s+/g, " ")), e.replaceSpaces && (l = l.replaceAll(" ", "-")), e.removeNumbers && (l = l.replaceAll(/\d/g, "")), e.removeAccents && (l = l.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (
|
|
64
|
-
for (const
|
|
65
|
-
l = l.normalize(
|
|
63
|
+
if (e.trim && (l = l.trim()), e.normalizeSpaces && (l = l.replaceAll(/\s+/g, " ")), e.replaceSpaces && (l = l.replaceAll(" ", "-")), e.removeNumbers && (l = l.replaceAll(/\d/g, "")), e.removeAccents && (l = l.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => n[i] || i), l = l.replaceAll(/[\u0300-\u036F]/g, "")), e.caseSensitive === !1 && (l = l.toLowerCase()), e.removeSpecialCharacters && (l = l.replaceAll(/[^\dA-Z-]/gi, "")), e.trim && (l = l.trim()), e.customNormalizationForms)
|
|
64
|
+
for (const i of e.customNormalizationForms)
|
|
65
|
+
l = l.normalize(i);
|
|
66
66
|
return l;
|
|
67
67
|
}
|
|
68
68
|
const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
@@ -76,12 +76,12 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
76
76
|
innerOpacity: { default: 0.95 }
|
|
77
77
|
},
|
|
78
78
|
setup(c) {
|
|
79
|
-
j((
|
|
80
|
-
"4f499add":
|
|
79
|
+
j((u) => ({
|
|
80
|
+
"4f499add": u.innerOpacity,
|
|
81
81
|
"2e65a0ad": b.value
|
|
82
82
|
}));
|
|
83
|
-
const
|
|
84
|
-
function
|
|
83
|
+
const t = c, e = S(), n = S(), l = S(!1);
|
|
84
|
+
function i({ clientX: u, clientY: y }) {
|
|
85
85
|
var s, d, z;
|
|
86
86
|
l.value = !0;
|
|
87
87
|
const a = (s = n.value) == null ? void 0 : s.getBoundingClientRect();
|
|
@@ -89,7 +89,7 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
89
89
|
d,
|
|
90
90
|
[
|
|
91
91
|
{
|
|
92
|
-
transform: `translate(${
|
|
92
|
+
transform: `translate(${u - a.left - a.width / 2}px,${y - a.top - a.height / 2}px)`
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
95
|
{
|
|
@@ -98,15 +98,15 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
98
98
|
}
|
|
99
99
|
));
|
|
100
100
|
}
|
|
101
|
-
const b = f(() => `var(--maz-color-${
|
|
101
|
+
const b = f(() => `var(--maz-color-${t.color}-alpha)`), h = f(() => `var(--maz-color-${t.color}-alpha-20)`);
|
|
102
102
|
return K(() => {
|
|
103
|
-
window.addEventListener("mousemove",
|
|
103
|
+
window.addEventListener("mousemove", i);
|
|
104
104
|
}), P(() => {
|
|
105
|
-
window.removeEventListener("mousemove",
|
|
106
|
-
}), (
|
|
105
|
+
window.removeEventListener("mousemove", i);
|
|
106
|
+
}), (u, y) => (p(), v(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
|
-
class:
|
|
109
|
+
class: x(["m-card-spotlight", { "maz-elevation": !u.noElevation }]),
|
|
110
110
|
style: N({ backgroundColor: h.value })
|
|
111
111
|
},
|
|
112
112
|
[
|
|
@@ -114,10 +114,10 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
114
114
|
m(
|
|
115
115
|
"div",
|
|
116
116
|
{
|
|
117
|
-
class:
|
|
117
|
+
class: x(["content", [{ "maz-p-4": u.padding }, u.contentClass]])
|
|
118
118
|
},
|
|
119
119
|
[
|
|
120
|
-
w(
|
|
120
|
+
w(u.$slots, "default", {}, void 0, !0)
|
|
121
121
|
],
|
|
122
122
|
2
|
|
123
123
|
/* CLASS */
|
|
@@ -155,18 +155,18 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
155
155
|
/* CLASS, STYLE */
|
|
156
156
|
));
|
|
157
157
|
}
|
|
158
|
-
}), L = (c,
|
|
158
|
+
}), L = (c, t) => {
|
|
159
159
|
const e = c.__vccOpts || c;
|
|
160
|
-
for (const [n, l] of
|
|
160
|
+
for (const [n, l] of t)
|
|
161
161
|
e[n] = l;
|
|
162
162
|
return e;
|
|
163
163
|
}, ee = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-31abf9ff"]]);
|
|
164
164
|
function oe({
|
|
165
165
|
componentName: c,
|
|
166
|
-
providedId:
|
|
166
|
+
providedId: t
|
|
167
167
|
}) {
|
|
168
168
|
const e = T();
|
|
169
|
-
return f(() =>
|
|
169
|
+
return f(() => t ?? `${c}-${e}`);
|
|
170
170
|
}
|
|
171
171
|
const ae = {
|
|
172
172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -175,8 +175,8 @@ const ae = {
|
|
|
175
175
|
fill: "none",
|
|
176
176
|
viewBox: "0 0 24 24"
|
|
177
177
|
};
|
|
178
|
-
function R(c,
|
|
179
|
-
return p(), v("svg", ae,
|
|
178
|
+
function R(c, t) {
|
|
179
|
+
return p(), v("svg", ae, t[0] || (t[0] = [
|
|
180
180
|
m(
|
|
181
181
|
"path",
|
|
182
182
|
{
|
|
@@ -216,17 +216,17 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
216
216
|
hint: {}
|
|
217
217
|
},
|
|
218
218
|
emits: ["update:model-value", "change", "blur", "focus"],
|
|
219
|
-
setup(c, { emit:
|
|
219
|
+
setup(c, { emit: t }) {
|
|
220
220
|
j((o) => ({
|
|
221
|
-
b7df6194:
|
|
221
|
+
b7df6194: u.value,
|
|
222
222
|
"89a0ef50": b.value,
|
|
223
223
|
"199d7f11": y.value,
|
|
224
224
|
b0e1d658: a.value
|
|
225
225
|
}));
|
|
226
|
-
const e = c, n =
|
|
226
|
+
const e = c, n = t, l = oe({
|
|
227
227
|
componentName: "MazCheckbox",
|
|
228
228
|
providedId: e.id
|
|
229
|
-
}),
|
|
229
|
+
}), i = f(
|
|
230
230
|
() => typeof e.value != "boolean" && Array.isArray(e.modelValue) ? e.modelValue.includes(e.value) : typeof e.modelValue == "boolean" ? e.modelValue : !1
|
|
231
231
|
), b = f(() => {
|
|
232
232
|
switch (e.size) {
|
|
@@ -258,61 +258,61 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
258
258
|
default:
|
|
259
259
|
return "maz-text-lg";
|
|
260
260
|
}
|
|
261
|
-
}),
|
|
261
|
+
}), u = f(() => e.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${e.color}-contrast)`), y = f(() => e.color === "theme" ? "var(--maz-color-bg-theme)" : `var(--maz-color-${e.color})`), a = 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
262
|
function s(o) {
|
|
263
263
|
["Space"].includes(o.code) && (o.preventDefault(), z(e.value ?? !e.modelValue));
|
|
264
264
|
}
|
|
265
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((
|
|
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((r) => r !== o) : [...e.modelValue, o] : [o];
|
|
267
267
|
}
|
|
268
268
|
function z(o) {
|
|
269
|
-
const
|
|
270
|
-
n("update:model-value",
|
|
269
|
+
const r = d(o);
|
|
270
|
+
n("update:model-value", r), n("change", r);
|
|
271
271
|
}
|
|
272
|
-
const g =
|
|
273
|
-
function
|
|
274
|
-
var
|
|
275
|
-
(
|
|
272
|
+
const g = S();
|
|
273
|
+
function A(o) {
|
|
274
|
+
var r;
|
|
275
|
+
(r = g.value) == null || r.dispatchEvent(new Event("blur")), n("blur", o);
|
|
276
276
|
}
|
|
277
277
|
function k(o) {
|
|
278
|
-
var
|
|
279
|
-
(
|
|
278
|
+
var r;
|
|
279
|
+
(r = g.value) == null || r.dispatchEvent(new Event("focus")), n("focus", o);
|
|
280
280
|
}
|
|
281
|
-
return (o,
|
|
281
|
+
return (o, r) => (p(), v("label", {
|
|
282
282
|
for: C(l),
|
|
283
|
-
class:
|
|
283
|
+
class: x(["m-checkbox", [{ "--disabled": o.disabled, "--error": o.error, "--warning": o.warning, "--success": o.success }, e.class]]),
|
|
284
284
|
tabindex: "0",
|
|
285
285
|
style: N(o.style),
|
|
286
286
|
role: "checkbox",
|
|
287
|
-
"aria-checked":
|
|
287
|
+
"aria-checked": i.value,
|
|
288
288
|
onKeydown: s,
|
|
289
|
-
onBlur:
|
|
289
|
+
onBlur: A,
|
|
290
290
|
onFocus: k
|
|
291
291
|
}, [
|
|
292
292
|
m("input", D({
|
|
293
293
|
id: C(l),
|
|
294
294
|
ref_key: "inputRef",
|
|
295
295
|
ref: g,
|
|
296
|
-
checked:
|
|
296
|
+
checked: i.value
|
|
297
297
|
}, o.$attrs, {
|
|
298
298
|
tabindex: "-1",
|
|
299
299
|
disabled: o.disabled,
|
|
300
300
|
name: o.name,
|
|
301
301
|
type: "checkbox",
|
|
302
|
-
onChange:
|
|
302
|
+
onChange: r[0] || (r[0] = (I) => {
|
|
303
303
|
var M;
|
|
304
|
-
return z(o.value ?? ((M =
|
|
304
|
+
return z(o.value ?? ((M = I == null ? void 0 : I.target) == null ? void 0 : M.checked));
|
|
305
305
|
})
|
|
306
306
|
}), null, 16, te),
|
|
307
307
|
m("span", null, [
|
|
308
|
-
|
|
309
|
-
class:
|
|
308
|
+
V(C(Q), {
|
|
309
|
+
class: x(["check-icon", h.value])
|
|
310
310
|
}, null, 8, ["class"])
|
|
311
311
|
]),
|
|
312
312
|
m("div", re, [
|
|
313
313
|
w(o.$slots, "default", { value: o.value }, () => [
|
|
314
314
|
B(
|
|
315
|
-
|
|
315
|
+
E(o.label),
|
|
316
316
|
1
|
|
317
317
|
/* TEXT */
|
|
318
318
|
)
|
|
@@ -321,24 +321,24 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
321
321
|
"span",
|
|
322
322
|
{
|
|
323
323
|
key: 0,
|
|
324
|
-
class:
|
|
324
|
+
class: x(["m-checkbox__hint", {
|
|
325
325
|
"--error": o.error,
|
|
326
326
|
"--success": o.success,
|
|
327
327
|
"--warning": o.warning
|
|
328
328
|
}])
|
|
329
329
|
},
|
|
330
|
-
|
|
330
|
+
E(o.hint),
|
|
331
331
|
3
|
|
332
332
|
/* TEXT, CLASS */
|
|
333
|
-
)) :
|
|
333
|
+
)) : $("v-if", !0)
|
|
334
334
|
])
|
|
335
335
|
], 46, le));
|
|
336
336
|
}
|
|
337
|
-
}), se = /* @__PURE__ */ L(ne, [["__scopeId", "data-v-178c6a46"]]), ce = { class: "m-checklist maz-flex maz-flex-col maz-gap-4" },
|
|
337
|
+
}), se = /* @__PURE__ */ L(ne, [["__scopeId", "data-v-178c6a46"]]), ce = { class: "m-checklist maz-flex maz-flex-col maz-gap-4" }, ue = {
|
|
338
338
|
key: 0,
|
|
339
339
|
for: "query",
|
|
340
340
|
class: "maz-flex maz-items-center maz-justify-between maz-gap-4"
|
|
341
|
-
},
|
|
341
|
+
}, ie = {
|
|
342
342
|
key: 0,
|
|
343
343
|
class: "maz-flex-none maz-truncate"
|
|
344
344
|
}, de = {
|
|
@@ -359,19 +359,19 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
359
359
|
color: { default: "primary" }
|
|
360
360
|
},
|
|
361
361
|
emits: ["update:query", "update:model-value"],
|
|
362
|
-
setup(c, { emit:
|
|
363
|
-
const e = c, n =
|
|
362
|
+
setup(c, { emit: t }) {
|
|
363
|
+
const e = c, n = t, l = _(() => import("./MazInput-geBqeT4i.mjs")), i = _(
|
|
364
364
|
() => import("./magnifying-glass--nBiyXot.mjs")
|
|
365
365
|
), b = _(
|
|
366
366
|
() => import("./no-symbol-CIgKzsrB.mjs")
|
|
367
|
-
), h =
|
|
367
|
+
), h = S(e.query);
|
|
368
368
|
H(
|
|
369
369
|
() => e.query,
|
|
370
370
|
(a) => {
|
|
371
371
|
h.value = a;
|
|
372
372
|
}
|
|
373
373
|
);
|
|
374
|
-
const
|
|
374
|
+
const u = f(() => {
|
|
375
375
|
var s;
|
|
376
376
|
if (!h.value)
|
|
377
377
|
return e.items;
|
|
@@ -384,32 +384,32 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
384
384
|
h.value = a, n("update:query", a);
|
|
385
385
|
}
|
|
386
386
|
return (a, s) => {
|
|
387
|
-
var d, z, g,
|
|
387
|
+
var d, z, g, A;
|
|
388
388
|
return p(), v("div", ce, [
|
|
389
|
-
(d = a.search) != null && d.enabled ? (p(), v("label",
|
|
390
|
-
a.$slots.title || a.title ? (p(), v("span",
|
|
389
|
+
(d = a.search) != null && d.enabled ? (p(), v("label", ue, [
|
|
390
|
+
a.$slots.title || a.title ? (p(), v("span", ie, [
|
|
391
391
|
w(a.$slots, "title", {}, () => [
|
|
392
392
|
B(
|
|
393
|
-
|
|
393
|
+
E(a.title),
|
|
394
394
|
1
|
|
395
395
|
/* TEXT */
|
|
396
396
|
)
|
|
397
397
|
])
|
|
398
|
-
])) :
|
|
399
|
-
|
|
398
|
+
])) : $("v-if", !0),
|
|
399
|
+
V(C(l), D({
|
|
400
400
|
id: "query",
|
|
401
401
|
"model-value": h.value
|
|
402
402
|
}, a.search, {
|
|
403
403
|
color: a.color,
|
|
404
|
-
"left-icon": a.search.leftIcon ?? C(
|
|
404
|
+
"left-icon": a.search.leftIcon ?? C(i),
|
|
405
405
|
debounce: a.search.debounce ?? 300,
|
|
406
406
|
label: (z = a.search) == null ? void 0 : z.label,
|
|
407
407
|
name: ((g = a.search) == null ? void 0 : g.name) ?? "search",
|
|
408
|
-
placeholder: (
|
|
408
|
+
placeholder: (A = a.search) == null ? void 0 : A.placeholder,
|
|
409
409
|
"onUpdate:modelValue": s[0] || (s[0] = (k) => y(k))
|
|
410
410
|
}), null, 16, ["model-value", "color", "left-icon", "debounce", "label", "name", "placeholder"])
|
|
411
|
-
])) :
|
|
412
|
-
|
|
411
|
+
])) : $("v-if", !0),
|
|
412
|
+
V(ee, {
|
|
413
413
|
color: a.color,
|
|
414
414
|
"no-elevation": !a.elevation,
|
|
415
415
|
padding: !1,
|
|
@@ -418,10 +418,10 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
418
418
|
default: Z(() => {
|
|
419
419
|
var k;
|
|
420
420
|
return [
|
|
421
|
-
((k =
|
|
421
|
+
((k = u.value) == null ? void 0 : k.length) === 0 ? (p(), v("div", de, [
|
|
422
422
|
w(a.$slots, "no-results", {}, () => [
|
|
423
423
|
m("div", me, [
|
|
424
|
-
|
|
424
|
+
V(C(b), { class: "maz-text-3xl maz-text-muted" }),
|
|
425
425
|
m("span", fe, [
|
|
426
426
|
w(a.$slots, "no-results-text", {}, () => [
|
|
427
427
|
s[2] || (s[2] = B(" No results found "))
|
|
@@ -429,30 +429,30 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
429
429
|
])
|
|
430
430
|
])
|
|
431
431
|
])
|
|
432
|
-
])) :
|
|
432
|
+
])) : $("v-if", !0),
|
|
433
433
|
(p(!0), v(
|
|
434
434
|
G,
|
|
435
435
|
null,
|
|
436
|
-
J(
|
|
437
|
-
key:
|
|
438
|
-
for:
|
|
436
|
+
J(u.value, (o) => (p(), v("label", {
|
|
437
|
+
key: o.value,
|
|
438
|
+
for: o.value,
|
|
439
439
|
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"
|
|
440
440
|
}, [
|
|
441
|
-
|
|
442
|
-
id:
|
|
441
|
+
V(se, {
|
|
442
|
+
id: o.value,
|
|
443
443
|
"model-value": e.modelValue,
|
|
444
|
-
value:
|
|
444
|
+
value: o.value,
|
|
445
445
|
color: a.color,
|
|
446
|
-
"onUpdate:modelValue": s[1] || (s[1] = (
|
|
446
|
+
"onUpdate:modelValue": s[1] || (s[1] = (r) => n("update:model-value", r))
|
|
447
447
|
}, null, 8, ["id", "model-value", "value", "color"]),
|
|
448
448
|
w(a.$slots, "item", {
|
|
449
449
|
selectedValues: a.modelValue,
|
|
450
|
-
item:
|
|
450
|
+
item: o
|
|
451
451
|
}, () => [
|
|
452
452
|
m(
|
|
453
453
|
"span",
|
|
454
454
|
ve,
|
|
455
|
-
|
|
455
|
+
E(o.label),
|
|
456
456
|
1
|
|
457
457
|
/* TEXT */
|
|
458
458
|
)
|