maz-ui 3.47.1 → 3.47.2-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/MazAccordion.mjs +36 -37
- package/components/MazAnimatedCounter.mjs +14 -16
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCarousel.mjs +1 -1
- package/components/MazChart.d.ts +1 -1
- package/components/MazChart.mjs +23 -32
- package/components/MazChecklist.mjs +1 -1
- package/components/MazCircularProgressBar.mjs +66 -71
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +162 -185
- package/components/MazExpandAnimation.mjs +20 -21
- package/components/MazGallery.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputCode.mjs +30 -31
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazLink.mjs +18 -30
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazRadio.mjs +37 -42
- package/components/MazRadioButtons.mjs +61 -66
- package/components/MazSelect.mjs +1 -1
- package/components/MazSlider.mjs +107 -116
- package/components/MazStepper.mjs +1 -1
- package/components/MazSwitch.mjs +24 -28
- package/components/MazTable.d.ts +31 -54
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.mjs +32 -34
- package/components/assets/MazDropdown.css +1 -1
- package/components/assets/MazGallery.css +1 -1
- package/components/assets/MazInput.css +1 -1
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputPrice.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazPhoneNumberInput.css +1 -1
- package/components/assets/MazPicker.css +1 -1
- package/components/assets/MazSelect.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/assets/MazTabsBar.css +1 -1
- package/components/chunks/{MazBadge-CNSfzYq-.mjs → MazBadge-CqppWg2j.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
- package/{modules/chunks/MazBtn-CTqI4qhg.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
- package/components/chunks/{MazBtn-TkePGm5o.mjs → MazBtn-40lm8-AL.mjs} +37 -49
- package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
- package/components/chunks/{MazBtn-CnqRnXh_.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
- package/components/chunks/{MazBtn-D6Jxw9Nr.mjs → MazBtn-BijEMn4r.mjs} +37 -49
- package/components/chunks/MazBtn-BmrcK2af.mjs +106 -0
- package/components/chunks/MazBtn-C72_1uvu.mjs +106 -0
- package/components/chunks/MazBtn-CWloP6MI.mjs +111 -0
- package/components/chunks/MazBtn-CcyV4DCc.mjs +106 -0
- package/components/chunks/MazBtn-DENEMy-c.mjs +106 -0
- package/components/chunks/MazBtn-DfqRZvbB.mjs +106 -0
- package/components/chunks/MazBtn-UnZQuu6P.mjs +106 -0
- package/components/chunks/MazBtn-cDJlUVVY.mjs +106 -0
- package/components/chunks/MazBtn-hUslV7wO.mjs +106 -0
- package/components/chunks/{MazCard-CfkvpcGL.mjs → MazCard-BYB8y1_u.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
- package/components/chunks/{MazCheckbox-BKCo6EzO.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CI8ml-P8.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Byqz8JJB.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
- package/components/chunks/{MazChecklist-BLxsNHMP.mjs → MazChecklist-C95Y4Hb-.mjs} +112 -118
- package/components/chunks/{MazDialog-CPgFpAlq.mjs → MazDialog-khofH-7I.mjs} +66 -81
- package/components/chunks/MazDialogPromise-ZRA2ZrO4.mjs +488 -0
- package/components/chunks/{MazExpandAnimation-Bkw_wFTi.mjs → MazExpandAnimation-MDimlZGj.mjs} +7 -8
- package/components/chunks/{MazGallery-BMFwld84.mjs → MazGallery-CXQiXWFr.mjs} +267 -225
- package/components/chunks/{MazGallery-BKL7gfrz.mjs → MazGallery-VTZUhBKC.mjs} +249 -207
- package/components/chunks/{MazIcon-D8V8ixhf.mjs → MazIcon-BF5TFzse.mjs} +1 -1
- package/components/chunks/{MazInput-O6Q41Fm0.mjs → MazInput-DC3S-CVu.mjs} +43 -52
- package/components/chunks/{MazInput-CBiCdd0F.mjs → MazInput-DzWkS-g8.mjs} +41 -50
- package/components/chunks/{MazInput-Dx2cCzFS.mjs → MazInput-NE6H-10w.mjs} +38 -47
- package/components/chunks/{MazInputNumber-DYPVUz4k.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
- package/components/chunks/{MazInputPrice-DZD7ZZpm.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
- package/components/chunks/{MazInputTags-CxXBsTdM.mjs → MazInputTags-Dj3sW-e5.mjs} +189 -209
- package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
- package/components/chunks/{MazLoadingBar-Di2OIrPD.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
- package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
- package/components/chunks/{MazPhoneNumberInput-C4TX1tGw.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +503 -547
- package/components/chunks/{MazPicker-BcQ_-AJH.mjs → MazPicker-DwWiIYAR.mjs} +244 -265
- package/components/chunks/{MazPickerMonthSwitcher-hCAkEd5r.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-vpLyw1de.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DvC79vrt.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
- package/components/chunks/{MazSelect-BXzgSKmL.mjs → MazSelect-BJ07NVXQ.mjs} +160 -180
- package/components/chunks/{MazSelect-Baj2BQH7.mjs → MazSelect-CDV9Fx6m.mjs} +124 -136
- package/components/chunks/{MazSpinner-Bvb-lKER.mjs → MazSpinner-Bb3f2t6w.mjs} +1 -1
- package/components/chunks/{MazSpinner-Cqp-BMvL.mjs → MazSpinner-BcB0szZB.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1SiKhfK.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
- package/components/chunks/MazSpinner-BymqEMBk.mjs +34 -0
- package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
- package/components/chunks/{MazSpinner-B8akphXs.mjs → MazSpinner-CfiIXW8y.mjs} +1 -1
- package/components/chunks/MazSpinner-CykRbNHD.mjs +34 -0
- package/components/chunks/{MazSpinner-C-z3-68w.mjs → MazSpinner-D3-pqOh3.mjs} +1 -1
- package/components/chunks/{MazSpinner-B5lezvu4.mjs → MazSpinner-DS58mtzm.mjs} +1 -1
- package/components/chunks/{MazSpinner-DwSGm0-X.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
- package/components/chunks/MazSpinner-Dmkr_r9u.mjs +34 -0
- package/components/chunks/MazSpinner-DoRGA1RI.mjs +34 -0
- package/components/chunks/MazSpinner-eC03bFP5.mjs +34 -0
- package/components/chunks/{MazSpinner-Cb3_S0zT.mjs → MazSpinner-edxn0ncQ.mjs} +1 -1
- package/components/chunks/MazSpinner-f2Mc2eRO.mjs +34 -0
- package/components/chunks/MazSpinner-n4Dp5ZsH.mjs +34 -0
- package/components/chunks/MazStepper-BREfkpUb.mjs +213 -0
- package/components/chunks/{MazTable-CulBGLaj.mjs → MazTable-BJDPdIJB.mjs} +183 -227
- package/components/chunks/{MazTableCell-BXDbkEJq.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
- package/components/chunks/{MazTableRow-Ds3CDEit.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
- package/components/chunks/{MazTableTitle-uirsgvk_.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
- package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
- package/components/chunks/{MazTransitionExpand-4Ll_5LDO.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
- package/css/main.css +1 -1
- package/modules/assets/index.css +1 -1
- package/modules/chunks/MazBtn-B_Xlvgbg.cjs +1 -0
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +106 -0
- package/modules/chunks/{MazIcon-BtomZnkQ.cjs → MazIcon-CkuzyufF.cjs} +1 -1
- package/modules/chunks/{MazIcon-BB0DMfOc.mjs → MazIcon-DEgoQbMj.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CDJhmIRl.mjs → MazSpinner-BurN-1pb.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BASKjaLe.cjs → MazSpinner-jP4QsCNE.cjs} +1 -1
- package/modules/chunks/index-CUNN0eIB.cjs +124 -0
- package/modules/chunks/{index-C2yAjM0P.mjs → index-CxFUggmu.mjs} +925 -931
- 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/MazChart.vue.d.ts +1 -1
- package/types/components/MazTable.vue.d.ts +31 -54
- package/types/modules/composables/useFormValidator/types.d.ts +5 -1
- package/types/modules/composables/useFormValidator/useFormField.d.ts +3 -3
- package/types/modules/composables/useFormValidator/useFormValidator.d.ts +2 -2
- package/types/modules/composables/useFormValidator/utils.d.ts +12 -12
- package/types/modules/directives/v-fullscreen-img/MazFullscreenImg.vue.d.ts +5 -5
- package/types/modules/helpers/check-availability.d.ts +1 -0
- package/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BRnLMzhy.mjs +0 -118
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DlD5m7T4.mjs +0 -118
- package/components/chunks/MazBtn-Dt8lr0GH.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazBtn-igor8wRn.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazSpinner-Cg26sBU2.mjs +0 -34
- package/components/chunks/MazSpinner-CvT-9sC7.mjs +0 -34
- package/components/chunks/MazSpinner-DH6C15pU.mjs +0 -34
- package/components/chunks/MazSpinner-DlMKBtyt.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-M4r0cykl.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-cqcpf_FX.mjs +0 -34
- package/components/chunks/MazSpinner-yPkPj7Q8.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTabsBar-MZYefBb8.mjs +0 -204
- package/modules/chunks/MazBtn-D_CpNgpD.cjs +0 -9
- package/modules/chunks/index-BIX1NMzX.cjs +0 -149
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as O, useCssVars as j, ref as
|
|
1
|
+
import { defineComponent as O, useCssVars as j, ref as x, computed as f, onMounted as K, onUnmounted as P, openBlock as p, createElementBlock as v, normalizeClass as A, 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 S, createTextVNode as B, toDisplayString as I, createCommentVNode as E, 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,
|
|
@@ -10,7 +10,7 @@ import '../assets/MazChecklist.css';const W = {
|
|
|
10
10
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
11
11
|
};
|
|
12
12
|
function U(c, r) {
|
|
13
|
-
const e = { ...W, ...r },
|
|
13
|
+
const e = { ...W, ...r }, n = {
|
|
14
14
|
À: "A",
|
|
15
15
|
Á: "A",
|
|
16
16
|
Â: "A",
|
|
@@ -59,11 +59,11 @@ function U(c, r) {
|
|
|
59
59
|
ñ: "n",
|
|
60
60
|
ó: "o"
|
|
61
61
|
};
|
|
62
|
-
let
|
|
63
|
-
if (e.trim && (
|
|
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, (u) => n[u] || u), 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
64
|
for (const u of e.customNormalizationForms)
|
|
65
|
-
|
|
66
|
-
return
|
|
65
|
+
l = l.normalize(u);
|
|
66
|
+
return l;
|
|
67
67
|
}
|
|
68
68
|
const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
69
69
|
__name: "MazCardSpotlight",
|
|
@@ -78,18 +78,18 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
78
78
|
setup(c) {
|
|
79
79
|
j((i) => ({
|
|
80
80
|
"4f499add": i.innerOpacity,
|
|
81
|
-
"2e65a0ad":
|
|
81
|
+
"2e65a0ad": b.value
|
|
82
82
|
}));
|
|
83
|
-
const r = c, e =
|
|
84
|
-
function u({ clientX: i, clientY:
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
83
|
+
const r = c, e = x(), n = x(), l = x(!1);
|
|
84
|
+
function u({ clientX: i, clientY: y }) {
|
|
85
|
+
var s, d, z;
|
|
86
|
+
l.value = !0;
|
|
87
|
+
const a = (s = n.value) == null ? void 0 : s.getBoundingClientRect();
|
|
88
|
+
a && ((z = (d = e.value) == null ? void 0 : d.animate) == null || z.call(
|
|
89
89
|
d,
|
|
90
90
|
[
|
|
91
91
|
{
|
|
92
|
-
transform: `translate(${i -
|
|
92
|
+
transform: `translate(${i - 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
|
|
101
|
+
const b = f(() => `var(--maz-color-${r.color}-alpha)`), h = f(() => `var(--maz-color-${r.color}-alpha-20)`);
|
|
102
102
|
return K(() => {
|
|
103
103
|
window.addEventListener("mousemove", u);
|
|
104
104
|
}), P(() => {
|
|
105
105
|
window.removeEventListener("mousemove", u);
|
|
106
|
-
}), (i,
|
|
106
|
+
}), (i, y) => (p(), v(
|
|
107
107
|
"div",
|
|
108
108
|
{
|
|
109
|
-
class:
|
|
109
|
+
class: A(["m-card-spotlight", { "maz-elevation": !i.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: A(["content", [{ "maz-p-4": i.padding }, i.contentClass]])
|
|
118
118
|
},
|
|
119
119
|
[
|
|
120
|
-
|
|
120
|
+
w(i.$slots, "default", {}, void 0, !0)
|
|
121
121
|
],
|
|
122
122
|
2
|
|
123
123
|
/* CLASS */
|
|
@@ -129,26 +129,26 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
129
129
|
ref_key: "blobElement",
|
|
130
130
|
ref: e,
|
|
131
131
|
class: "blob",
|
|
132
|
-
style: N({ backgroundColor:
|
|
132
|
+
style: N({ backgroundColor: b.value })
|
|
133
133
|
},
|
|
134
134
|
null,
|
|
135
135
|
4
|
|
136
136
|
/* STYLE */
|
|
137
137
|
), [
|
|
138
|
-
[F,
|
|
138
|
+
[F, l.value]
|
|
139
139
|
]),
|
|
140
140
|
q(m(
|
|
141
141
|
"div",
|
|
142
142
|
{
|
|
143
143
|
ref_key: "fakeblobElement",
|
|
144
|
-
ref:
|
|
144
|
+
ref: n,
|
|
145
145
|
class: "fakeblob"
|
|
146
146
|
},
|
|
147
147
|
null,
|
|
148
148
|
512
|
|
149
149
|
/* NEED_PATCH */
|
|
150
150
|
), [
|
|
151
|
-
[F,
|
|
151
|
+
[F, l.value]
|
|
152
152
|
])
|
|
153
153
|
],
|
|
154
154
|
6
|
|
@@ -157,8 +157,8 @@ const X = { class: "inner" }, Y = /* @__PURE__ */ O({
|
|
|
157
157
|
}
|
|
158
158
|
}), L = (c, r) => {
|
|
159
159
|
const e = c.__vccOpts || c;
|
|
160
|
-
for (const [
|
|
161
|
-
e[
|
|
160
|
+
for (const [n, l] of r)
|
|
161
|
+
e[n] = l;
|
|
162
162
|
return e;
|
|
163
163
|
}, ee = /* @__PURE__ */ L(Y, [["__scopeId", "data-v-31abf9ff"]]);
|
|
164
164
|
function oe({
|
|
@@ -168,7 +168,7 @@ function oe({
|
|
|
168
168
|
const e = T();
|
|
169
169
|
return f(() => r ?? `${c}-${e}`);
|
|
170
170
|
}
|
|
171
|
-
const
|
|
171
|
+
const ae = {
|
|
172
172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
173
173
|
width: "1em",
|
|
174
174
|
height: "1em",
|
|
@@ -176,7 +176,7 @@ const te = {
|
|
|
176
176
|
viewBox: "0 0 24 24"
|
|
177
177
|
};
|
|
178
178
|
function R(c, r) {
|
|
179
|
-
return p(), v("svg",
|
|
179
|
+
return p(), v("svg", ae, r[0] || (r[0] = [
|
|
180
180
|
m(
|
|
181
181
|
"path",
|
|
182
182
|
{
|
|
@@ -196,7 +196,7 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
196
196
|
__proto__: null,
|
|
197
197
|
default: Q,
|
|
198
198
|
render: R
|
|
199
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
199
|
+
}, Symbol.toStringTag, { value: "Module" })), le = ["for", "aria-checked"], te = ["id", "checked", "disabled", "name"], re = { class: "m-checkbox__text" }, ne = /* @__PURE__ */ O({
|
|
200
200
|
inheritAttrs: !1,
|
|
201
201
|
__name: "MazCheckbox",
|
|
202
202
|
props: {
|
|
@@ -219,16 +219,16 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
219
219
|
setup(c, { emit: r }) {
|
|
220
220
|
j((o) => ({
|
|
221
221
|
b7df6194: i.value,
|
|
222
|
-
"89a0ef50":
|
|
223
|
-
"199d7f11":
|
|
224
|
-
b0e1d658:
|
|
222
|
+
"89a0ef50": b.value,
|
|
223
|
+
"199d7f11": y.value,
|
|
224
|
+
b0e1d658: a.value
|
|
225
225
|
}));
|
|
226
|
-
const e = c,
|
|
226
|
+
const e = c, n = r, l = oe({
|
|
227
227
|
componentName: "MazCheckbox",
|
|
228
228
|
providedId: e.id
|
|
229
229
|
}), u = 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) {
|
|
233
233
|
case "xl":
|
|
234
234
|
return "2rem";
|
|
@@ -258,59 +258,59 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
258
258
|
default:
|
|
259
259
|
return "maz-text-lg";
|
|
260
260
|
}
|
|
261
|
-
}), i = f(() => e.color === "theme" ? "var(--maz-color-bg)" : `var(--maz-color-${e.color}-contrast)`),
|
|
262
|
-
function
|
|
261
|
+
}), i = 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
|
+
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((t) => t !== o) : [...e.modelValue, o] : [o];
|
|
267
267
|
}
|
|
268
268
|
function z(o) {
|
|
269
|
-
const
|
|
270
|
-
|
|
269
|
+
const t = d(o);
|
|
270
|
+
n("update:model-value", t), n("change", t);
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
function
|
|
274
|
-
var
|
|
275
|
-
(
|
|
272
|
+
const g = x();
|
|
273
|
+
function $(o) {
|
|
274
|
+
var t;
|
|
275
|
+
(t = g.value) == null || t.dispatchEvent(new Event("blur")), n("blur", o);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
var
|
|
279
|
-
(
|
|
277
|
+
function k(o) {
|
|
278
|
+
var t;
|
|
279
|
+
(t = g.value) == null || t.dispatchEvent(new Event("focus")), n("focus", o);
|
|
280
280
|
}
|
|
281
|
-
return (o,
|
|
282
|
-
for:
|
|
283
|
-
class:
|
|
281
|
+
return (o, t) => (p(), v("label", {
|
|
282
|
+
for: C(l),
|
|
283
|
+
class: A(["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
287
|
"aria-checked": u.value,
|
|
288
|
-
onKeydown:
|
|
289
|
-
onBlur:
|
|
290
|
-
onFocus:
|
|
288
|
+
onKeydown: s,
|
|
289
|
+
onBlur: $,
|
|
290
|
+
onFocus: k
|
|
291
291
|
}, [
|
|
292
292
|
m("input", D({
|
|
293
|
-
id:
|
|
293
|
+
id: C(l),
|
|
294
294
|
ref_key: "inputRef",
|
|
295
|
-
ref:
|
|
295
|
+
ref: g,
|
|
296
296
|
checked: u.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: t[0] || (t[0] = (V) => {
|
|
303
303
|
var M;
|
|
304
|
-
return z(o.value ?? ((M =
|
|
304
|
+
return z(o.value ?? ((M = V == null ? void 0 : V.target) == null ? void 0 : M.checked));
|
|
305
305
|
})
|
|
306
|
-
}), null, 16,
|
|
306
|
+
}), null, 16, te),
|
|
307
307
|
m("span", null, [
|
|
308
|
-
|
|
309
|
-
class:
|
|
308
|
+
S(C(Q), {
|
|
309
|
+
class: A(["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
|
I(o.label),
|
|
316
316
|
1
|
|
@@ -321,7 +321,7 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
321
321
|
"span",
|
|
322
322
|
{
|
|
323
323
|
key: 0,
|
|
324
|
-
class:
|
|
324
|
+
class: A(["m-checkbox__hint", {
|
|
325
325
|
"--error": o.error,
|
|
326
326
|
"--success": o.success,
|
|
327
327
|
"--warning": o.warning
|
|
@@ -330,11 +330,11 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
330
330
|
I(o.hint),
|
|
331
331
|
3
|
|
332
332
|
/* TEXT, CLASS */
|
|
333
|
-
)) :
|
|
333
|
+
)) : E("v-if", !0)
|
|
334
334
|
])
|
|
335
|
-
], 46,
|
|
335
|
+
], 46, le));
|
|
336
336
|
}
|
|
337
|
-
}),
|
|
337
|
+
}), se = /* @__PURE__ */ L(ne, [["__scopeId", "data-v-178c6a46"]]), ce = { class: "m-checklist maz-flex maz-flex-col maz-gap-4" }, ie = {
|
|
338
338
|
key: 0,
|
|
339
339
|
for: "query",
|
|
340
340
|
class: "maz-flex maz-items-center maz-justify-between maz-gap-4"
|
|
@@ -360,100 +360,94 @@ const Q = { render: R }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Obje
|
|
|
360
360
|
},
|
|
361
361
|
emits: ["update:query", "update:model-value"],
|
|
362
362
|
setup(c, { emit: r }) {
|
|
363
|
-
const e = c,
|
|
363
|
+
const e = c, n = r, l = _(() => import("./MazInput-NE6H-10w.mjs")), u = _(
|
|
364
364
|
() => import("./magnifying-glass--nBiyXot.mjs")
|
|
365
|
-
),
|
|
365
|
+
), b = _(
|
|
366
366
|
() => import("./no-symbol-CIgKzsrB.mjs")
|
|
367
|
-
), h =
|
|
367
|
+
), h = x(e.query);
|
|
368
368
|
H(
|
|
369
369
|
() => e.query,
|
|
370
|
-
(
|
|
371
|
-
h.value =
|
|
370
|
+
(a) => {
|
|
371
|
+
h.value = a;
|
|
372
372
|
}
|
|
373
373
|
);
|
|
374
374
|
const i = f(() => {
|
|
375
|
-
var
|
|
375
|
+
var s;
|
|
376
376
|
if (!h.value)
|
|
377
377
|
return e.items;
|
|
378
|
-
const
|
|
379
|
-
return (
|
|
380
|
-
({ label: d }) => U(d, e.searchOptions).includes(
|
|
378
|
+
const a = U(h.value, e.searchOptions);
|
|
379
|
+
return (s = e.items) == null ? void 0 : s.filter(
|
|
380
|
+
({ label: d }) => U(d, e.searchOptions).includes(a)
|
|
381
381
|
);
|
|
382
382
|
});
|
|
383
|
-
function
|
|
384
|
-
h.value =
|
|
383
|
+
function y(a) {
|
|
384
|
+
h.value = a, n("update:query", a);
|
|
385
385
|
}
|
|
386
|
-
return (
|
|
387
|
-
var d, z,
|
|
386
|
+
return (a, s) => {
|
|
387
|
+
var d, z, g, $;
|
|
388
388
|
return p(), v("div", ce, [
|
|
389
|
-
(d =
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
C(t.$slots, "title", {}, () => [
|
|
389
|
+
(d = a.search) != null && d.enabled ? (p(), v("label", ie, [
|
|
390
|
+
a.$slots.title || a.title ? (p(), v("span", ue, [
|
|
391
|
+
w(a.$slots, "title", {}, () => [
|
|
393
392
|
B(
|
|
394
|
-
I(
|
|
393
|
+
I(a.title),
|
|
395
394
|
1
|
|
396
395
|
/* TEXT */
|
|
397
396
|
)
|
|
398
397
|
])
|
|
399
|
-
])) :
|
|
400
|
-
|
|
398
|
+
])) : E("v-if", !0),
|
|
399
|
+
S(C(l), D({
|
|
401
400
|
id: "query",
|
|
402
401
|
"model-value": h.value
|
|
403
|
-
},
|
|
404
|
-
color:
|
|
405
|
-
"left-icon":
|
|
406
|
-
debounce:
|
|
407
|
-
label: (z =
|
|
408
|
-
name: ((
|
|
409
|
-
placeholder: (
|
|
410
|
-
"onUpdate:modelValue":
|
|
402
|
+
}, a.search, {
|
|
403
|
+
color: a.color,
|
|
404
|
+
"left-icon": a.search.leftIcon ?? C(u),
|
|
405
|
+
debounce: a.search.debounce ?? 300,
|
|
406
|
+
label: (z = a.search) == null ? void 0 : z.label,
|
|
407
|
+
name: ((g = a.search) == null ? void 0 : g.name) ?? "search",
|
|
408
|
+
placeholder: ($ = a.search) == null ? void 0 : $.placeholder,
|
|
409
|
+
"onUpdate:modelValue": s[0] || (s[0] = (k) => y(k))
|
|
411
410
|
}), null, 16, ["model-value", "color", "left-icon", "debounce", "label", "name", "placeholder"])
|
|
412
|
-
])) :
|
|
413
|
-
|
|
414
|
-
color:
|
|
415
|
-
"no-elevation": !
|
|
411
|
+
])) : E("v-if", !0),
|
|
412
|
+
S(ee, {
|
|
413
|
+
color: a.color,
|
|
414
|
+
"no-elevation": !a.elevation,
|
|
416
415
|
padding: !1,
|
|
417
416
|
"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
417
|
}, {
|
|
419
418
|
default: Z(() => {
|
|
420
|
-
var
|
|
419
|
+
var k;
|
|
421
420
|
return [
|
|
422
|
-
((
|
|
423
|
-
|
|
424
|
-
C(t.$slots, "no-results", {}, () => [
|
|
421
|
+
((k = i.value) == null ? void 0 : k.length) === 0 ? (p(), v("div", de, [
|
|
422
|
+
w(a.$slots, "no-results", {}, () => [
|
|
425
423
|
m("div", me, [
|
|
426
|
-
|
|
424
|
+
S(C(b), { class: "maz-text-3xl maz-text-muted" }),
|
|
427
425
|
m("span", fe, [
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
n[2] || (n[2] = B(" No results found "))
|
|
426
|
+
w(a.$slots, "no-results-text", {}, () => [
|
|
427
|
+
s[2] || (s[2] = B(" No results found "))
|
|
431
428
|
])
|
|
432
429
|
])
|
|
433
430
|
])
|
|
434
431
|
])
|
|
435
|
-
])) :
|
|
432
|
+
])) : E("v-if", !0),
|
|
436
433
|
(p(!0), v(
|
|
437
434
|
G,
|
|
438
435
|
null,
|
|
439
|
-
J(i.value, ({ label: o, value:
|
|
440
|
-
key:
|
|
441
|
-
for:
|
|
436
|
+
J(i.value, ({ label: o, value: t }) => (p(), v("label", {
|
|
437
|
+
key: t,
|
|
438
|
+
for: t,
|
|
442
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"
|
|
443
440
|
}, [
|
|
444
|
-
|
|
445
|
-
id:
|
|
441
|
+
S(se, {
|
|
442
|
+
id: t,
|
|
446
443
|
"model-value": e.modelValue,
|
|
447
|
-
value:
|
|
448
|
-
color:
|
|
449
|
-
"onUpdate:modelValue":
|
|
444
|
+
value: t,
|
|
445
|
+
color: a.color,
|
|
446
|
+
"onUpdate:modelValue": s[1] || (s[1] = (V) => n("update:model-value", V))
|
|
450
447
|
}, null, 8, ["id", "model-value", "value", "color"]),
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
C(t.$slots, "item", {
|
|
455
|
-
selectedValues: t.modelValue,
|
|
456
|
-
item: { label: o, value: l }
|
|
448
|
+
w(a.$slots, "item", {
|
|
449
|
+
selectedValues: a.modelValue,
|
|
450
|
+
item: { label: o, value: t }
|
|
457
451
|
}, () => [
|
|
458
452
|
m(
|
|
459
453
|
"span",
|