maz-ui 3.47.2-beta.0 → 3.47.2-beta.3
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.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 +6 -6
- package/components/MazTable.mjs +1 -1
- package/components/MazTabsBar.mjs +1 -1
- package/components/MazTextarea.mjs +32 -34
- package/components/assets/MazLink.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBadge-CvIiiTdM.mjs → MazBadge-CqppWg2j.mjs} +1 -1
- package/components/chunks/{MazBottomSheet-DqK0EOsq.mjs → MazBottomSheet-CGRvZmGd.mjs} +28 -29
- package/{modules/chunks/MazBtn-BSnVxud6.mjs → components/chunks/MazBtn-2VKM1wZu.mjs} +37 -49
- package/components/chunks/{MazBtn-DVkwISlp.mjs → MazBtn-40lm8-AL.mjs} +37 -49
- package/components/chunks/{MazBtn-DzBXfedt.mjs → MazBtn-BB1FyYWv.mjs} +35 -44
- package/components/chunks/{MazBtn-BO3G90L3.mjs → MazBtn-BMYXMZuX.mjs} +37 -49
- package/components/chunks/{MazBtn-DJOUeES7.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-FSXmHyhj.mjs → MazCard-BYB8y1_u.mjs} +18 -19
- package/components/chunks/{MazCarousel-BEl86YGW.mjs → MazCarousel-DccWVW8H.mjs} +20 -21
- package/components/chunks/{MazCheckbox-2G4VkxDz.mjs → MazCheckbox-B22OcHt8.mjs} +1 -1
- package/components/chunks/{MazCheckbox-Cq9gpTEw.mjs → MazCheckbox-DMogZVHl.mjs} +1 -1
- package/components/chunks/{MazCheckbox-BmnqBHaY.mjs → MazCheckbox-Db6sPUbV.mjs} +1 -1
- package/components/chunks/{MazChecklist-CY1Cv70T.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-BknvUeo1.mjs → MazGallery-CXQiXWFr.mjs} +32 -33
- package/components/chunks/{MazGallery-CZOokGAt.mjs → MazGallery-VTZUhBKC.mjs} +33 -34
- package/components/chunks/{MazIcon-z-jTiuyI.mjs → MazIcon-BF5TFzse.mjs} +1 -1
- package/components/chunks/{MazInput-oOA7gdLO.mjs → MazInput-DC3S-CVu.mjs} +44 -53
- package/components/chunks/{MazInput-BQoQSRyL.mjs → MazInput-DzWkS-g8.mjs} +40 -49
- package/components/chunks/{MazInput-CJQB68c-.mjs → MazInput-NE6H-10w.mjs} +42 -51
- package/components/chunks/{MazInputNumber-B4mQJcVB.mjs → MazInputNumber-DRXQXHRv.mjs} +168 -189
- package/components/chunks/{MazInputPrice-BrxE5WVf.mjs → MazInputPrice-DoTnDDIN.mjs} +49 -58
- package/components/chunks/{MazInputTags-BVCej_gW.mjs → MazInputTags-Dj3sW-e5.mjs} +181 -202
- package/components/chunks/{MazLink-Dl9ePCGm.mjs → MazLink-C_3Wya94.mjs} +19 -31
- package/components/chunks/{MazLoadingBar-Dwf55oHy.mjs → MazLoadingBar-DdjHRC7g.mjs} +1 -1
- package/components/chunks/MazPagination-BkT4_LLW.mjs +330 -0
- package/components/chunks/{MazPhoneNumberInput-Cd25AzXc.mjs → MazPhoneNumberInput-BbssOUzo.mjs} +500 -544
- package/components/chunks/{MazPicker-C78yxilJ.mjs → MazPicker-DwWiIYAR.mjs} +243 -264
- package/components/chunks/{MazPickerMonthSwitcher-CyHYx8TT.mjs → MazPickerMonthSwitcher-CmFFQoPA.mjs} +1 -1
- package/components/chunks/{MazPickerShortcuts-Bsi8cnox.mjs → MazPickerShortcuts-DaELz7aq.mjs} +1 -1
- package/components/chunks/{MazPickerYearSwitcher-DLUSMAtz.mjs → MazPickerYearSwitcher-m1_KXnpA.mjs} +1 -1
- package/components/chunks/{MazSelect-CQDoUpgp.mjs → MazSelect-BJ07NVXQ.mjs} +149 -170
- package/components/chunks/{MazSelect-uCJPMXF-.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-BT_717pD.mjs → MazSpinner-BpkPcfCt.mjs} +1 -1
- package/components/chunks/{MazSpinner-CAbYLlEZ.mjs → MazSpinner-BsYJDmi9.mjs} +1 -1
- package/components/chunks/{MazSpinner-B9OwpEP_.mjs → MazSpinner-BymqEMBk.mjs} +1 -1
- package/components/chunks/MazSpinner-C-64WJje.mjs +34 -0
- package/components/chunks/MazSpinner-CEFbkZkM.mjs +34 -0
- package/components/chunks/{MazSpinner-EFo8dM46.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-DS58mtzm.mjs +34 -0
- package/components/chunks/{MazSpinner-2D0ZmAQz.mjs → MazSpinner-DmiLBQgR.mjs} +1 -1
- package/components/chunks/{MazSpinner-C1Ip-Dwh.mjs → MazSpinner-Dmkr_r9u.mjs} +1 -1
- 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-Cuz5QI08.mjs → MazTable-BJDPdIJB.mjs} +183 -227
- package/components/chunks/{MazTableCell-D_OTOJiy.mjs → MazTableCell-DILuUCTe.mjs} +1 -1
- package/components/chunks/{MazTableRow-BTcVAyOy.mjs → MazTableRow-D6H6-c8J.mjs} +1 -1
- package/components/chunks/{MazTableTitle-BDA9G6Zw.mjs → MazTableTitle-Ch-nyY1E.mjs} +1 -1
- package/components/chunks/MazTabsBar-CM-w7V97.mjs +193 -0
- package/components/chunks/{MazTransitionExpand-C-FHhOGB.mjs → MazTransitionExpand-PmUDa51_.mjs} +1 -1
- package/modules/chunks/MazBtn-QVmZ90t5.mjs +106 -0
- package/modules/chunks/MazBtn-R7z-Hxp-.cjs +1 -0
- package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-CKCoY05P.cjs} +1 -1
- package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-DJfEPmBG.mjs} +1 -1
- package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-C95OqwKl.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-DYT43E6e.cjs} +1 -1
- package/modules/chunks/{index-x2F1l5sr.mjs → index-CjsYU5rv.mjs} +191 -226
- package/modules/chunks/{index-BPqjUr5e.cjs → index-oVi9-l4o.cjs} +2 -27
- 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/MazTable.vue.d.ts +6 -6
- 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/components/chunks/MazBtn-BRUaoP8j.mjs +0 -126
- package/components/chunks/MazBtn-BhnOApJu.mjs +0 -118
- package/components/chunks/MazBtn-C28vKP_v.mjs +0 -118
- package/components/chunks/MazBtn-C87UEsVs.mjs +0 -118
- package/components/chunks/MazBtn-C_l3xuAh.mjs +0 -118
- package/components/chunks/MazBtn-CweCwE_4.mjs +0 -118
- package/components/chunks/MazBtn-D7IKoL2c.mjs +0 -118
- package/components/chunks/MazBtn-DadFupkY.mjs +0 -118
- package/components/chunks/MazBtn-GGcGrIH4.mjs +0 -118
- package/components/chunks/MazBtn-Mu18egu5.mjs +0 -118
- package/components/chunks/MazDialogPromise-BCCdkrea.mjs +0 -522
- package/components/chunks/MazPagination-CHTMRRqE.mjs +0 -362
- package/components/chunks/MazSpinner-C23CZ_Za.mjs +0 -34
- package/components/chunks/MazSpinner-CViChjTw.mjs +0 -34
- package/components/chunks/MazSpinner-CZMBhCOJ.mjs +0 -34
- package/components/chunks/MazSpinner-D4C84xZe.mjs +0 -34
- package/components/chunks/MazSpinner-Dyf9yb51.mjs +0 -34
- package/components/chunks/MazSpinner-QHjOczon.mjs +0 -34
- package/components/chunks/MazSpinner-u8WQTgUR.mjs +0 -34
- package/components/chunks/MazSpinner-w-S5uCxg.mjs +0 -34
- package/components/chunks/MazStepper-DRWtYHZR.mjs +0 -232
- package/components/chunks/MazTabsBar-JkRzMDM6.mjs +0 -203
- package/modules/chunks/MazBtn-Bf9Cq5M7.cjs +0 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as q, normalizeStyle as x, createElementVNode as E,
|
|
1
|
+
import { useId as Me, computed as p, defineComponent as he, defineAsyncComponent as A, ref as V, onMounted as Te, useSlots as Ee, openBlock as m, createElementBlock as k, normalizeClass as q, normalizeStyle as x, createElementVNode as E, renderSlot as U, createBlock as K, unref as b, resolveDynamicComponent as me, createCommentVNode as g, withDirectives as be, mergeProps as ge, toHandlers as Oe, vModelDynamic as De, createTextVNode as Ne, toDisplayString as de, withModifiers as F, withCtx as _, createVNode as H, useCssVars as Pe, onBeforeMount as Fe, nextTick as se, Transition as He, Fragment as ve, renderList as qe } from "vue";
|
|
2
2
|
import '../assets/MazSelect.css';function ze({
|
|
3
3
|
componentName: u,
|
|
4
4
|
providedId: r
|
|
@@ -72,28 +72,28 @@ function ee(u, r) {
|
|
|
72
72
|
s = s.normalize(d);
|
|
73
73
|
return s;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function We(u, r) {
|
|
76
76
|
const l = u.length, t = r.length, s = [];
|
|
77
77
|
for (let d = 0; d <= l; d++)
|
|
78
78
|
s[d] = [d];
|
|
79
79
|
for (let d = 0; d <= t; d++)
|
|
80
80
|
s[0][d] = d;
|
|
81
81
|
for (let d = 1; d <= l; d++)
|
|
82
|
-
for (let
|
|
83
|
-
const $ = u[d - 1] === r[
|
|
84
|
-
s[d][
|
|
85
|
-
s[d - 1][
|
|
86
|
-
s[d][
|
|
87
|
-
s[d - 1][
|
|
82
|
+
for (let y = 1; y <= t; y++) {
|
|
83
|
+
const $ = u[d - 1] === r[y - 1] ? 0 : 1;
|
|
84
|
+
s[d][y] = Math.min(
|
|
85
|
+
s[d - 1][y] + 1,
|
|
86
|
+
s[d][y - 1] + 1,
|
|
87
|
+
s[d - 1][y - 1] + $
|
|
88
88
|
);
|
|
89
89
|
}
|
|
90
90
|
return s[l][t];
|
|
91
91
|
}
|
|
92
92
|
function Ve(u, r) {
|
|
93
|
-
const l =
|
|
93
|
+
const l = We(u, r), t = Math.max(u.length, r.length);
|
|
94
94
|
return 1 - l / t;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function je(u, r, l = 0.75) {
|
|
97
97
|
return Ve(u, r) >= l;
|
|
98
98
|
}
|
|
99
99
|
function ue(u, r, l = 0.75) {
|
|
@@ -101,24 +101,24 @@ function ue(u, r, l = 0.75) {
|
|
|
101
101
|
() => ee(typeof u == "string" ? u : u.value)
|
|
102
102
|
), s = p(
|
|
103
103
|
() => ee(typeof r == "string" ? r : r.value)
|
|
104
|
-
), d = p(() => typeof l == "number" ? l : l.value),
|
|
104
|
+
), d = p(() => typeof l == "number" ? l : l.value), y = p(() => Ve(t.value, s.value));
|
|
105
105
|
return {
|
|
106
106
|
isMatching: p(
|
|
107
|
-
() =>
|
|
107
|
+
() => je(t.value, s.value, d.value)
|
|
108
108
|
),
|
|
109
|
-
score:
|
|
109
|
+
score: y
|
|
110
110
|
};
|
|
111
111
|
}
|
|
112
112
|
function ke(u, r, l) {
|
|
113
|
-
var
|
|
113
|
+
var y;
|
|
114
114
|
u.stopPropagation();
|
|
115
115
|
const t = typeof l.value == "function" ? l.value : l.value.handler, s = typeof l.value == "object" ? l.value.exclude : void 0;
|
|
116
116
|
let d = !1;
|
|
117
117
|
if (s && s.length > 0) {
|
|
118
118
|
for (const $ of s)
|
|
119
119
|
if (!d && u.target instanceof HTMLElement) {
|
|
120
|
-
const
|
|
121
|
-
d = u.target.getAttribute("id") ===
|
|
120
|
+
const W = (y = document.querySelector($)) == null ? void 0 : y.getAttribute("id");
|
|
121
|
+
d = u.target.getAttribute("id") === W;
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
!r.contains(u.target) && !d && (t == null || t());
|
|
@@ -126,11 +126,11 @@ function ke(u, r, l) {
|
|
|
126
126
|
function Ie() {
|
|
127
127
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
128
128
|
}
|
|
129
|
-
function
|
|
129
|
+
function Qe(u, r) {
|
|
130
130
|
const l = Ie();
|
|
131
131
|
document.removeEventListener(l, (t) => ke(t, u, r));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Re(u, r) {
|
|
134
134
|
if (typeof r.value != "function" && typeof r.value == "object" && typeof r.value.handler != "function") {
|
|
135
135
|
console.error("[maz-ui](vClosable) v-closable directive requires a handler function");
|
|
136
136
|
return;
|
|
@@ -139,8 +139,8 @@ function Qe(u, r) {
|
|
|
139
139
|
document.addEventListener(l, (t) => ke(t, u, r));
|
|
140
140
|
}
|
|
141
141
|
const Ge = {
|
|
142
|
-
mounted:
|
|
143
|
-
unmounted:
|
|
142
|
+
mounted: Re,
|
|
143
|
+
unmounted: Qe
|
|
144
144
|
};
|
|
145
145
|
function Ze(u, r) {
|
|
146
146
|
let l;
|
|
@@ -204,7 +204,7 @@ const Xe = {
|
|
|
204
204
|
},
|
|
205
205
|
emits: ["update:model-value", "focus", "blur", "click", "change", "input"],
|
|
206
206
|
setup(u, { emit: r }) {
|
|
207
|
-
const l = u, t = r, s = A(() => import("./MazBtn-
|
|
207
|
+
const l = u, t = r, s = A(() => import("./MazBtn-BMYXMZuX.mjs")), d = A(() => import("./MazIcon-BbvBov5G.mjs")), y = A(() => import("./eye-slash-BoO00xzs.mjs")), $ = A(() => import("./eye-f8zAUc30.mjs")), W = A(() => import("./check-C9Q_W85g.mjs")), z = V(!1), f = V(!1), O = V(), te = ze({
|
|
208
208
|
componentName: "MazInput",
|
|
209
209
|
providedId: l.id
|
|
210
210
|
});
|
|
@@ -240,10 +240,10 @@ const Xe = {
|
|
|
240
240
|
}
|
|
241
241
|
return "--default-border";
|
|
242
242
|
}
|
|
243
|
-
}),
|
|
244
|
-
const { required: o, placeholder:
|
|
245
|
-
if (
|
|
246
|
-
return o ? `${
|
|
243
|
+
}), j = Ee(), Z = p(() => {
|
|
244
|
+
const { required: o, placeholder: h } = l;
|
|
245
|
+
if (h)
|
|
246
|
+
return o ? `${h} *` : h;
|
|
247
247
|
}), J = p(() => L.value !== void 0 && L.value !== ""), C = Ze(
|
|
248
248
|
(o) => {
|
|
249
249
|
t("update:model-value", o);
|
|
@@ -258,32 +258,32 @@ const Xe = {
|
|
|
258
258
|
const L = p({
|
|
259
259
|
get: () => l.modelValue,
|
|
260
260
|
set: (o) => D(o)
|
|
261
|
-
}),
|
|
261
|
+
}), Q = p(() => (!!l.label || !!l.hint) && (f.value || !!J.value || !!l.placeholder || ["date", "month", "week"].includes(l.type))), X = p(() => !!l.label || !!l.hint);
|
|
262
262
|
function Y() {
|
|
263
|
-
return !!
|
|
263
|
+
return !!j["right-icon"] || G.value || !!j["valid-button"] || l.validButton || !!l.rightIcon;
|
|
264
264
|
}
|
|
265
265
|
function B() {
|
|
266
|
-
return !!
|
|
266
|
+
return !!j["left-icon"] || !!l.leftIcon;
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function R(o) {
|
|
269
269
|
t("focus", o), f.value = !0;
|
|
270
270
|
}
|
|
271
271
|
function le(o) {
|
|
272
272
|
t("blur", o), f.value = !1;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function ae(o) {
|
|
275
275
|
return t("change", o);
|
|
276
276
|
}
|
|
277
277
|
function M(o) {
|
|
278
278
|
return t("input", o);
|
|
279
279
|
}
|
|
280
|
-
return (o,
|
|
280
|
+
return (o, h) => (m(), k(
|
|
281
281
|
"div",
|
|
282
282
|
{
|
|
283
283
|
class: q(["m-input", [
|
|
284
284
|
{
|
|
285
285
|
"--is-focused": f.value || o.borderActive,
|
|
286
|
-
"--should-up":
|
|
286
|
+
"--should-up": Q.value,
|
|
287
287
|
"--has-label": X.value,
|
|
288
288
|
"--is-disabled": o.disabled,
|
|
289
289
|
"--is-readonly": o.readonly,
|
|
@@ -309,26 +309,23 @@ const Xe = {
|
|
|
309
309
|
},
|
|
310
310
|
[
|
|
311
311
|
B() ? (m(), k("div", Xe, [
|
|
312
|
-
v(`
|
|
313
|
-
@slot left-icon - The icon to display on the left of the input
|
|
314
|
-
`),
|
|
315
312
|
o.$slots["left-icon"] || o.leftIcon ? U(o.$slots, "left-icon", { key: 0 }, () => [
|
|
316
|
-
typeof o.leftIcon == "string" ? (m(), K(
|
|
313
|
+
typeof o.leftIcon == "string" ? (m(), K(b(d), {
|
|
317
314
|
key: 0,
|
|
318
315
|
name: o.leftIcon,
|
|
319
316
|
class: "maz-text-xl maz-text-muted"
|
|
320
317
|
}, null, 8, ["name"])) : o.leftIcon ? (m(), K(me(o.leftIcon), {
|
|
321
318
|
key: 1,
|
|
322
319
|
class: "maz-text-xl maz-text-muted"
|
|
323
|
-
})) :
|
|
324
|
-
], !0) :
|
|
325
|
-
])) :
|
|
320
|
+
})) : g("v-if", !0)
|
|
321
|
+
], !0) : g("v-if", !0)
|
|
322
|
+
])) : g("v-if", !0),
|
|
326
323
|
E("div", Ye, [
|
|
327
324
|
be(E("input", ge({
|
|
328
|
-
id:
|
|
325
|
+
id: b(te),
|
|
329
326
|
ref_key: "input",
|
|
330
327
|
ref: O,
|
|
331
|
-
"onUpdate:modelValue":
|
|
328
|
+
"onUpdate:modelValue": h[0] || (h[0] = (T) => L.value = T),
|
|
332
329
|
type: oe.value,
|
|
333
330
|
name: o.name
|
|
334
331
|
}, o.$attrs, {
|
|
@@ -341,11 +338,11 @@ const Xe = {
|
|
|
341
338
|
class: "m-input-input"
|
|
342
339
|
}, Oe({
|
|
343
340
|
blur: le,
|
|
344
|
-
focus:
|
|
345
|
-
change:
|
|
341
|
+
focus: R,
|
|
342
|
+
change: ae,
|
|
346
343
|
input: M
|
|
347
344
|
}, !0), {
|
|
348
|
-
onClick:
|
|
345
|
+
onClick: h[1] || (h[1] = (T) => o.$emit("click", T))
|
|
349
346
|
}), null, 16, xe), [
|
|
350
347
|
[De, L.value]
|
|
351
348
|
]),
|
|
@@ -367,50 +364,44 @@ const Xe = {
|
|
|
367
364
|
1
|
|
368
365
|
/* TEXT */
|
|
369
366
|
),
|
|
370
|
-
o.required ? (m(), k("sup", _e, "*")) :
|
|
367
|
+
o.required ? (m(), k("sup", _e, "*")) : g("v-if", !0)
|
|
371
368
|
],
|
|
372
369
|
2
|
|
373
370
|
/* CLASS */
|
|
374
|
-
)) :
|
|
371
|
+
)) : g("v-if", !0)
|
|
375
372
|
]),
|
|
376
373
|
Y() ? (m(), k("div", et, [
|
|
377
|
-
v(`
|
|
378
|
-
@slot right-icon - The icon to display on the right of the input
|
|
379
|
-
`),
|
|
380
374
|
o.$slots["right-icon"] || o.rightIcon ? U(o.$slots, "right-icon", { key: 0 }, () => [
|
|
381
|
-
typeof o.rightIcon == "string" ? (m(), K(
|
|
375
|
+
typeof o.rightIcon == "string" ? (m(), K(b(d), {
|
|
382
376
|
key: 0,
|
|
383
377
|
name: o.rightIcon,
|
|
384
378
|
class: "maz-text-xl maz-text-muted"
|
|
385
379
|
}, null, 8, ["name"])) : o.rightIcon ? (m(), K(me(o.rightIcon), {
|
|
386
380
|
key: 1,
|
|
387
381
|
class: "maz-text-xl maz-text-muted"
|
|
388
|
-
})) :
|
|
389
|
-
], !0) :
|
|
390
|
-
G.value ? (m(), K(
|
|
382
|
+
})) : g("v-if", !0)
|
|
383
|
+
], !0) : g("v-if", !0),
|
|
384
|
+
G.value ? (m(), K(b(s), {
|
|
391
385
|
key: 1,
|
|
392
386
|
color: "transparent",
|
|
393
387
|
tabindex: "-1",
|
|
394
388
|
size: "mini",
|
|
395
|
-
onClick:
|
|
389
|
+
onClick: h[2] || (h[2] = F((T) => z.value = !z.value, ["stop"]))
|
|
396
390
|
}, {
|
|
397
391
|
default: _(() => [
|
|
398
|
-
z.value ? (m(), K(
|
|
392
|
+
z.value ? (m(), K(b(y), {
|
|
399
393
|
key: 0,
|
|
400
394
|
class: "maz-text-xl maz-text-muted"
|
|
401
|
-
})) : (m(), K(
|
|
395
|
+
})) : (m(), K(b($), {
|
|
402
396
|
key: 1,
|
|
403
397
|
class: "maz-text-xl maz-text-muted"
|
|
404
398
|
}))
|
|
405
399
|
]),
|
|
406
400
|
_: 1
|
|
407
401
|
/* STABLE */
|
|
408
|
-
})) :
|
|
409
|
-
v(`
|
|
410
|
-
@slot valid-button - Replace the valid button by your own
|
|
411
|
-
`),
|
|
402
|
+
})) : g("v-if", !0),
|
|
412
403
|
o.$slots["valid-button"] || o.validButton ? U(o.$slots, "valid-button", { key: 2 }, () => [
|
|
413
|
-
H(
|
|
404
|
+
H(b(s), {
|
|
414
405
|
color: "transparent",
|
|
415
406
|
disabled: o.disabled,
|
|
416
407
|
tabindex: "-1",
|
|
@@ -420,13 +411,13 @@ const Xe = {
|
|
|
420
411
|
type: "submit"
|
|
421
412
|
}, {
|
|
422
413
|
default: _(() => [
|
|
423
|
-
H(
|
|
414
|
+
H(b(W), { class: "maz-text-2xl maz-text-normal" })
|
|
424
415
|
]),
|
|
425
416
|
_: 1
|
|
426
417
|
/* STABLE */
|
|
427
418
|
}, 8, ["disabled", "loading"])
|
|
428
|
-
], !0) :
|
|
429
|
-
])) :
|
|
419
|
+
], !0) : g("v-if", !0)
|
|
420
|
+
])) : g("v-if", !0)
|
|
430
421
|
],
|
|
431
422
|
2
|
|
432
423
|
/* CLASS */
|
|
@@ -436,11 +427,11 @@ const Xe = {
|
|
|
436
427
|
/* CLASS, STYLE */
|
|
437
428
|
));
|
|
438
429
|
}
|
|
439
|
-
}), ye = /* @__PURE__ */ we(tt, [["__scopeId", "data-v-c42aaa7f"]]), ot = ["aria-label"], lt = { class: "m-select-list__no-results" },
|
|
430
|
+
}), ye = /* @__PURE__ */ we(tt, [["__scopeId", "data-v-c42aaa7f"]]), ot = ["aria-label"], lt = { class: "m-select-list__no-results" }, at = {
|
|
440
431
|
key: 2,
|
|
441
432
|
class: "m-select-list__scroll-wrapper",
|
|
442
433
|
tabindex: "-1"
|
|
443
|
-
},
|
|
434
|
+
}, nt = { class: "m-select-list-optgroup" }, it = ["onClick"], st = /* @__PURE__ */ he({
|
|
444
435
|
inheritAttrs: !1,
|
|
445
436
|
__name: "MazSelect",
|
|
446
437
|
props: {
|
|
@@ -478,7 +469,7 @@ const Xe = {
|
|
|
478
469
|
"215ff493": te.value,
|
|
479
470
|
"64d6cfbb": G.value
|
|
480
471
|
}));
|
|
481
|
-
const t = u, s = l, d = A(() => import("./MazCheckbox-
|
|
472
|
+
const t = u, s = l, d = A(() => import("./MazCheckbox-DMogZVHl.mjs")), y = A(() => import("./magnifying-glass--nBiyXot.mjs")), $ = A(() => import("./chevron-down-BkvtON3b.mjs")), W = A(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
482
473
|
r({
|
|
483
474
|
/** Method to open the option list */
|
|
484
475
|
openList: P,
|
|
@@ -493,7 +484,7 @@ const Xe = {
|
|
|
493
484
|
() => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
494
485
|
), oe = p(
|
|
495
486
|
() => O.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
496
|
-
), I = p(() => z.value || t.open),
|
|
487
|
+
), I = p(() => z.value || t.open), j = ze({
|
|
497
488
|
componentName: "MazSelect",
|
|
498
489
|
providedId: t.id
|
|
499
490
|
});
|
|
@@ -513,134 +504,134 @@ const Xe = {
|
|
|
513
504
|
};
|
|
514
505
|
}
|
|
515
506
|
const C = p(() => {
|
|
516
|
-
var
|
|
507
|
+
var a;
|
|
517
508
|
const e = [];
|
|
518
|
-
if (!((
|
|
509
|
+
if (!((a = t.options) != null && a.length))
|
|
519
510
|
return [];
|
|
520
511
|
for (const i of t.options)
|
|
521
512
|
typeof i == "string" || typeof i == "number" || typeof i == "boolean" ? e.push(Z(i)) : typeof i == "object" && "options" in i && Array.isArray(i.options) ? e.push(
|
|
522
513
|
{ label: i.label, isOptGroup: !0 },
|
|
523
514
|
...i.options.map(
|
|
524
|
-
(
|
|
515
|
+
(n) => typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? Z(n) : J(n)
|
|
525
516
|
)
|
|
526
517
|
) : e.push(J(i));
|
|
527
518
|
return e;
|
|
528
519
|
}), D = p(
|
|
529
520
|
() => {
|
|
530
521
|
var e;
|
|
531
|
-
return ((e = C.value) == null ? void 0 : e.filter((
|
|
522
|
+
return ((e = C.value) == null ? void 0 : e.filter((a) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(a[t.optionValueKey]) && !B(a[t.optionValueKey]) : !1 : t.modelValue === a[t.optionValueKey] && !B(a[t.optionValueKey]))) ?? [];
|
|
532
523
|
}
|
|
533
524
|
);
|
|
534
525
|
Fe(() => {
|
|
535
526
|
var e;
|
|
536
527
|
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), ie();
|
|
537
528
|
});
|
|
538
|
-
const L = V(),
|
|
529
|
+
const L = V(), Q = V(), X = V(), Y = V();
|
|
539
530
|
function B(e) {
|
|
540
531
|
return e == null;
|
|
541
532
|
}
|
|
542
|
-
function
|
|
533
|
+
function R(e) {
|
|
543
534
|
var i;
|
|
544
535
|
return (((i = D.value) == null ? void 0 : i.some(
|
|
545
|
-
(
|
|
536
|
+
(n) => n[t.optionValueKey] === e[t.optionValueKey]
|
|
546
537
|
)) ?? !1) && !B(e[t.optionValueKey]);
|
|
547
538
|
}
|
|
548
539
|
const le = p(() => {
|
|
549
|
-
var
|
|
540
|
+
var a;
|
|
550
541
|
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
551
542
|
return t.modelValue.map(
|
|
552
543
|
(i) => {
|
|
553
|
-
var
|
|
554
|
-
return (c = (
|
|
544
|
+
var n, c;
|
|
545
|
+
return (c = (n = C.value) == null ? void 0 : n.find((v) => v[t.optionValueKey] === i)) == null ? void 0 : c[t.optionInputValueKey];
|
|
555
546
|
}
|
|
556
547
|
).join(", ");
|
|
557
|
-
const e = (
|
|
548
|
+
const e = (a = C.value) == null ? void 0 : a.find(
|
|
558
549
|
(i) => i[t.optionValueKey] === t.modelValue
|
|
559
550
|
);
|
|
560
551
|
return B(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
561
|
-
}),
|
|
552
|
+
}), ae = p(
|
|
562
553
|
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
563
554
|
), M = V(""), o = V("");
|
|
564
|
-
function
|
|
565
|
-
return
|
|
555
|
+
function h(e, a) {
|
|
556
|
+
return a && e && ee(e).includes(ee(a));
|
|
566
557
|
}
|
|
567
558
|
function T(e) {
|
|
568
|
-
var
|
|
569
|
-
return e ? (
|
|
570
|
-
const
|
|
571
|
-
return
|
|
559
|
+
var a;
|
|
560
|
+
return e ? (a = C.value) == null ? void 0 : a.filter((i) => {
|
|
561
|
+
const n = i[t.optionLabelKey], c = i[t.optionValueKey], v = i[t.optionInputValueKey], w = t.searchThreshold;
|
|
562
|
+
return h(n, e) || h(v, e) || h(c, e) || typeof n == "string" && ue(n, e, w).isMatching.value || typeof v == "string" && ue(v, e, w).isMatching.value || typeof c == "string" && ue(c, e, w).isMatching.value;
|
|
572
563
|
}) : C.value;
|
|
573
564
|
}
|
|
574
565
|
const S = p(() => T(M.value));
|
|
575
566
|
async function N(e) {
|
|
576
|
-
var i,
|
|
567
|
+
var i, n;
|
|
577
568
|
if (!I.value)
|
|
578
569
|
return;
|
|
579
570
|
if (e && ("relatedTarget" in e && ((i = L.value) != null && i.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
580
571
|
return e.preventDefault();
|
|
581
|
-
const
|
|
582
|
-
if ((
|
|
572
|
+
const a = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
573
|
+
if ((n = t.excludeSelectors) != null && n.includes(`#${a}`))
|
|
583
574
|
return e == null ? void 0 : e.preventDefault();
|
|
584
575
|
await se(), z.value = !1, f.value = 0, s("close", e);
|
|
585
576
|
}
|
|
586
577
|
async function P(e) {
|
|
587
|
-
t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await
|
|
578
|
+
t.disabled || I.value || (e == null || e.preventDefault(), z.value = !0, await ne(), s("focus", e), s("open", z.value));
|
|
588
579
|
}
|
|
589
580
|
function ce() {
|
|
590
|
-
var e,
|
|
591
|
-
(
|
|
581
|
+
var e, a;
|
|
582
|
+
(a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.focus();
|
|
592
583
|
}
|
|
593
584
|
function Se() {
|
|
594
|
-
var e,
|
|
595
|
-
(
|
|
585
|
+
var e, a;
|
|
586
|
+
(a = ((e = Q.value) == null ? void 0 : e.$el).querySelector("input")) == null || a.dispatchEvent(new Event("input"));
|
|
596
587
|
}
|
|
597
588
|
function Ke(e) {
|
|
598
589
|
z.value ? N(e) : ce();
|
|
599
590
|
}
|
|
600
591
|
function Ae(e) {
|
|
601
|
-
var
|
|
602
|
-
M.value = e, (i = ((
|
|
592
|
+
var a, i;
|
|
593
|
+
M.value = e, (i = ((a = X.value) == null ? void 0 : a.$el).querySelector("input")) == null || i.focus();
|
|
603
594
|
}
|
|
604
595
|
function $e(e) {
|
|
605
596
|
var i;
|
|
606
597
|
e === "Backspace" && o.value.length > 0 ? o.value = o.value.slice(0, -1) : o.value += e;
|
|
607
|
-
const
|
|
608
|
-
|
|
609
|
-
(
|
|
610
|
-
), typeof f.value == "number" && f.value >= 0 &&
|
|
598
|
+
const a = T(o.value);
|
|
599
|
+
a != null && a.length && (f.value = (i = S.value) == null ? void 0 : i.findIndex(
|
|
600
|
+
(n) => n[t.optionValueKey] === a[0][t.optionValueKey]
|
|
601
|
+
), typeof f.value == "number" && f.value >= 0 && ne(f.value)), Je(() => {
|
|
611
602
|
o.value = "";
|
|
612
603
|
}, 1e3);
|
|
613
604
|
}
|
|
614
605
|
function Be(e) {
|
|
615
|
-
const
|
|
616
|
-
/^[\dA-Za-z\u0400-\u04FF]$/.test(
|
|
606
|
+
const a = e.key;
|
|
607
|
+
/^[\dA-Za-z\u0400-\u04FF]$/.test(a) ? (e.preventDefault(), P(e), t.search ? Ae(a) : $e(a)) : pe(e);
|
|
617
608
|
}
|
|
618
|
-
function pe(e,
|
|
619
|
-
const i = e.code,
|
|
620
|
-
|
|
609
|
+
function pe(e, a = !0) {
|
|
610
|
+
const i = e.code, n = ["ArrowUp", "ArrowDown"].includes(i), c = (a ? ["Enter", "Space"] : ["Enter"]).includes(i), v = i === "Escape" && I.value;
|
|
611
|
+
n ? Ce(e, f.value) : c ? Le(e, f.value) : v && N(e);
|
|
621
612
|
}
|
|
622
|
-
function Ce(e,
|
|
613
|
+
function Ce(e, a) {
|
|
623
614
|
var c;
|
|
624
615
|
e.preventDefault();
|
|
625
616
|
const i = e.code;
|
|
626
617
|
I.value || P(e);
|
|
627
|
-
const
|
|
628
|
-
|
|
618
|
+
const n = (c = S.value) == null ? void 0 : c.length;
|
|
619
|
+
n && (typeof a == "number" ? a === n - 1 && i === "ArrowDown" ? f.value = 0 : a === 0 && i === "ArrowUp" ? f.value = n - 1 : f.value = i === "ArrowDown" ? a + 1 : a - 1 : f.value = i === "ArrowDown" ? 0 : n - 1, ne(f.value));
|
|
629
620
|
}
|
|
630
|
-
function Le(e,
|
|
631
|
-
var
|
|
621
|
+
function Le(e, a) {
|
|
622
|
+
var n, c, v;
|
|
632
623
|
if (e.preventDefault(), !I.value)
|
|
633
624
|
return P(e);
|
|
634
|
-
const i =
|
|
625
|
+
const i = a ? ((n = S.value) == null ? void 0 : n[a]) ?? ((c = S.value) == null ? void 0 : c[0]) : (v = S.value) == null ? void 0 : v[0];
|
|
635
626
|
B(i) || fe(i);
|
|
636
627
|
}
|
|
637
|
-
async function
|
|
638
|
-
var i,
|
|
628
|
+
async function ne(e) {
|
|
629
|
+
var i, n;
|
|
639
630
|
await se(), typeof e != "number" && ie();
|
|
640
|
-
const
|
|
641
|
-
if (typeof
|
|
631
|
+
const a = e ?? f.value;
|
|
632
|
+
if (typeof a == "number" && a >= 0) {
|
|
642
633
|
const c = (i = Y.value) == null ? void 0 : i.querySelectorAll(".m-select-list-item");
|
|
643
|
-
(
|
|
634
|
+
(n = c == null ? void 0 : c[a]) == null || n.scrollIntoView({
|
|
644
635
|
behavior: "auto",
|
|
645
636
|
block: "nearest",
|
|
646
637
|
inline: "start"
|
|
@@ -649,26 +640,26 @@ const Xe = {
|
|
|
649
640
|
}
|
|
650
641
|
function ie(e) {
|
|
651
642
|
var i;
|
|
652
|
-
const
|
|
653
|
-
var c,
|
|
654
|
-
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] ===
|
|
643
|
+
const a = (i = S.value) == null ? void 0 : i.findIndex((n) => {
|
|
644
|
+
var c, v;
|
|
645
|
+
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === n[t.optionValueKey] : [...t.modelValue].reverse()[0] === n[t.optionValueKey] : ((v = (c = D.value) == null ? void 0 : c[0]) == null ? void 0 : v[t.optionValueKey]) === n[t.optionValueKey];
|
|
655
646
|
});
|
|
656
|
-
f.value =
|
|
647
|
+
f.value = a && a >= 0 ? a : 0;
|
|
657
648
|
}
|
|
658
|
-
function fe(e,
|
|
659
|
-
var
|
|
660
|
-
|
|
661
|
-
const i = (
|
|
649
|
+
function fe(e, a = !0) {
|
|
650
|
+
var v;
|
|
651
|
+
a && !t.multiple && se(() => N()), M.value = "";
|
|
652
|
+
const i = (v = D.value) == null ? void 0 : v.some(
|
|
662
653
|
(w) => w[t.optionValueKey] === e[t.optionValueKey]
|
|
663
654
|
);
|
|
664
|
-
let
|
|
665
|
-
i && t.multiple ?
|
|
655
|
+
let n = D.value;
|
|
656
|
+
i && t.multiple ? n = n == null ? void 0 : n.filter(
|
|
666
657
|
(w) => w[t.optionValueKey] !== e[t.optionValueKey]
|
|
667
|
-
) : t.multiple ?
|
|
668
|
-
const c =
|
|
658
|
+
) : t.multiple ? n.push(e) : n = [e];
|
|
659
|
+
const c = n.map((w) => w[t.optionValueKey]);
|
|
669
660
|
s("update:model-value", t.multiple ? c : c[0]), s("selected-option", e), Se(), ie(e), ce();
|
|
670
661
|
}
|
|
671
|
-
return (e,
|
|
662
|
+
return (e, a) => {
|
|
672
663
|
var i;
|
|
673
664
|
return be((m(), k(
|
|
674
665
|
"div",
|
|
@@ -684,9 +675,9 @@ const Xe = {
|
|
|
684
675
|
},
|
|
685
676
|
[
|
|
686
677
|
H(ye, ge({
|
|
687
|
-
id:
|
|
678
|
+
id: b(j),
|
|
688
679
|
ref_key: "mazInputComponent",
|
|
689
|
-
ref:
|
|
680
|
+
ref: Q,
|
|
690
681
|
class: "m-select-input"
|
|
691
682
|
}, e.$attrs, {
|
|
692
683
|
required: e.required,
|
|
@@ -700,8 +691,8 @@ const Xe = {
|
|
|
700
691
|
onFocus: F(P, ["prevent", "stop"]),
|
|
701
692
|
onBlur: F(N, ["prevent", "stop"]),
|
|
702
693
|
onClick: F(P, ["prevent", "stop"]),
|
|
703
|
-
onChange:
|
|
704
|
-
onInput:
|
|
694
|
+
onChange: a[0] || (a[0] = (n) => s("change", n)),
|
|
695
|
+
onInput: a[1] || (a[1] = (n) => s("input", n)),
|
|
705
696
|
onKeydown: Be
|
|
706
697
|
}), {
|
|
707
698
|
"right-icon": _(() => [
|
|
@@ -712,13 +703,13 @@ const Xe = {
|
|
|
712
703
|
"aria-label": `${I.value ? "collapse" : "expand"} list of options`,
|
|
713
704
|
onClick: F(Ke, ["stop"])
|
|
714
705
|
}, [
|
|
715
|
-
H(
|
|
706
|
+
H(b($), { class: "m-select-chevron maz-text-xl" })
|
|
716
707
|
], 8, ot)
|
|
717
708
|
]),
|
|
718
709
|
_: 1
|
|
719
710
|
/* STABLE */
|
|
720
711
|
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
721
|
-
H(He, { name:
|
|
712
|
+
H(He, { name: ae.value }, {
|
|
722
713
|
default: _(() => [
|
|
723
714
|
I.value ? (m(), k(
|
|
724
715
|
"div",
|
|
@@ -746,8 +737,8 @@ const Xe = {
|
|
|
746
737
|
ref: X,
|
|
747
738
|
modelValue: M.value,
|
|
748
739
|
"onUpdate:modelValue": [
|
|
749
|
-
|
|
750
|
-
|
|
740
|
+
a[2] || (a[2] = (n) => M.value = n),
|
|
741
|
+
a[4] || (a[4] = (n) => f.value = 0)
|
|
751
742
|
],
|
|
752
743
|
size: "sm",
|
|
753
744
|
color: e.color,
|
|
@@ -757,36 +748,29 @@ const Xe = {
|
|
|
757
748
|
autocomplete: "off",
|
|
758
749
|
tabindex: "-1",
|
|
759
750
|
class: "m-select-list__search-input maz-flex-none",
|
|
760
|
-
"left-icon":
|
|
761
|
-
onKeydown:
|
|
762
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) :
|
|
763
|
-
v(`
|
|
764
|
-
@slot No results slot - Displayed when no results corresponding with search query
|
|
765
|
-
`),
|
|
751
|
+
"left-icon": b(y),
|
|
752
|
+
onKeydown: a[3] || (a[3] = (n) => pe(n, !1))
|
|
753
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : g("v-if", !0),
|
|
766
754
|
!S.value || S.value.length <= 0 ? U(e.$slots, "no-results", { key: 1 }, () => [
|
|
767
755
|
E("span", lt, [
|
|
768
|
-
H(
|
|
756
|
+
H(b(W), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
769
757
|
])
|
|
770
|
-
], !0) : (m(), k("div",
|
|
758
|
+
], !0) : (m(), k("div", at, [
|
|
771
759
|
(m(!0), k(
|
|
772
760
|
ve,
|
|
773
761
|
null,
|
|
774
|
-
qe(S.value, (
|
|
762
|
+
qe(S.value, (n, c) => (m(), k(
|
|
775
763
|
ve,
|
|
776
764
|
{ key: c },
|
|
777
765
|
[
|
|
778
|
-
|
|
779
|
-
@slot Custom optgroup label
|
|
780
|
-
@binding {String} label - the label of the optgroup
|
|
781
|
-
`),
|
|
782
|
-
a.label && a.isOptGroup ? U(e.$slots, "optgroup", {
|
|
766
|
+
n.label && n.isOptGroup ? U(e.$slots, "optgroup", {
|
|
783
767
|
key: 0,
|
|
784
|
-
label:
|
|
768
|
+
label: n.label
|
|
785
769
|
}, () => [
|
|
786
770
|
E(
|
|
787
771
|
"span",
|
|
788
|
-
|
|
789
|
-
de(
|
|
772
|
+
nt,
|
|
773
|
+
de(n.label),
|
|
790
774
|
1
|
|
791
775
|
/* TEXT */
|
|
792
776
|
)
|
|
@@ -797,33 +781,28 @@ const Xe = {
|
|
|
797
781
|
class: q(["m-select-list-item maz-custom maz-flex-none", [
|
|
798
782
|
{
|
|
799
783
|
"--is-keyboard-selected": f.value === c,
|
|
800
|
-
"--is-selected":
|
|
801
|
-
"--is-none-value": B(
|
|
784
|
+
"--is-selected": R(n),
|
|
785
|
+
"--is-none-value": B(n[e.optionValueKey])
|
|
802
786
|
}
|
|
803
787
|
]]),
|
|
804
788
|
style: x(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
805
|
-
onClick: F((
|
|
789
|
+
onClick: F((v) => fe(n), ["prevent", "stop"])
|
|
806
790
|
}, [
|
|
807
|
-
e.multiple ? (m(), K(
|
|
791
|
+
e.multiple ? (m(), K(b(d), {
|
|
808
792
|
key: 0,
|
|
809
793
|
tabindex: "-1",
|
|
810
|
-
"model-value":
|
|
794
|
+
"model-value": R(n),
|
|
811
795
|
size: "sm",
|
|
812
796
|
color: e.color
|
|
813
|
-
}, null, 8, ["model-value", "color"])) :
|
|
814
|
-
v(`
|
|
815
|
-
@slot Custom option
|
|
816
|
-
@binding {Object} option - the option object
|
|
817
|
-
@binding {Boolean} is-selected - if the option is selected
|
|
818
|
-
`),
|
|
797
|
+
}, null, 8, ["model-value", "color"])) : g("v-if", !0),
|
|
819
798
|
U(e.$slots, "default", {
|
|
820
|
-
option:
|
|
821
|
-
isSelected:
|
|
799
|
+
option: n,
|
|
800
|
+
isSelected: R(n)
|
|
822
801
|
}, () => [
|
|
823
802
|
E(
|
|
824
803
|
"span",
|
|
825
804
|
null,
|
|
826
|
-
de(
|
|
805
|
+
de(n[e.optionLabelKey]),
|
|
827
806
|
1
|
|
828
807
|
/* TEXT */
|
|
829
808
|
)
|
|
@@ -840,7 +819,7 @@ const Xe = {
|
|
|
840
819
|
],
|
|
841
820
|
6
|
|
842
821
|
/* CLASS, STYLE */
|
|
843
|
-
)) :
|
|
822
|
+
)) : g("v-if", !0)
|
|
844
823
|
]),
|
|
845
824
|
_: 3
|
|
846
825
|
/* FORWARDED */
|
|
@@ -849,7 +828,7 @@ const Xe = {
|
|
|
849
828
|
6
|
|
850
829
|
/* CLASS, STYLE */
|
|
851
830
|
)), [
|
|
852
|
-
[
|
|
831
|
+
[b(Ge), {
|
|
853
832
|
exclude: (i = e.excludeSelectors) != null && i.length ? e.excludeSelectors : [],
|
|
854
833
|
handler: N
|
|
855
834
|
}]
|