maz-ui 3.47.2-beta.0 → 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.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-B_Xlvgbg.cjs +1 -0
- package/modules/chunks/MazBtn-Dsr06Zgg.mjs +106 -0
- package/modules/chunks/{MazIcon-dhyR9Q8a.cjs → MazIcon-CkuzyufF.cjs} +1 -1
- package/modules/chunks/{MazIcon-DllGg8tw.mjs → MazIcon-DEgoQbMj.mjs} +1 -1
- package/modules/chunks/{MazSpinner-bdGjxsu6.mjs → MazSpinner-BurN-1pb.mjs} +1 -1
- package/modules/chunks/{MazSpinner-CiIyZ8gs.cjs → MazSpinner-jP4QsCNE.cjs} +1 -1
- package/modules/chunks/index-CUNN0eIB.cjs +124 -0
- package/modules/chunks/{index-x2F1l5sr.mjs → index-CxFUggmu.mjs} +257 -292
- 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
- package/modules/chunks/index-BPqjUr5e.cjs +0 -149
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as
|
|
1
|
+
import { computed as f, defineComponent as Ie, useCssVars as Ce, defineAsyncComponent as T, ref as b, onBeforeMount as Le, nextTick as W, withDirectives as we, openBlock as g, createElementBlock as I, normalizeClass as q, normalizeStyle as j, createVNode as $, mergeProps as Me, unref as C, withModifiers as M, withCtx as ne, createElementVNode as N, Transition as Ee, createBlock as se, createCommentVNode as Q, renderSlot as G, Fragment as ie, renderList as Te, toDisplayString as ue } from "vue";
|
|
2
2
|
import { u as $e } from "./useInstanceUniqId-DW9jO1Sz.mjs";
|
|
3
|
-
import re from "./MazInput-
|
|
4
|
-
import { _ as Ne } from "./MazTable-
|
|
3
|
+
import re from "./MazInput-DC3S-CVu.mjs";
|
|
4
|
+
import { _ as Ne } from "./MazTable-BJDPdIJB.mjs";
|
|
5
5
|
import '../assets/MazSelect.css';const Oe = {
|
|
6
6
|
removeAccents: !0,
|
|
7
7
|
caseSensitive: !1,
|
|
@@ -12,7 +12,7 @@ import '../assets/MazSelect.css';const Oe = {
|
|
|
12
12
|
removeNumbers: !1,
|
|
13
13
|
customNormalizationForms: ["NFC", "NFKD"]
|
|
14
14
|
};
|
|
15
|
-
function
|
|
15
|
+
function O(r, c) {
|
|
16
16
|
const s = { ...Oe, ...c }, t = {
|
|
17
17
|
À: "A",
|
|
18
18
|
Á: "A",
|
|
@@ -62,45 +62,45 @@ function B(r, c) {
|
|
|
62
62
|
ñ: "n",
|
|
63
63
|
ó: "o"
|
|
64
64
|
};
|
|
65
|
-
let
|
|
66
|
-
if (s.trim && (
|
|
65
|
+
let n = r.toString();
|
|
66
|
+
if (s.trim && (n = n.trim()), s.normalizeSpaces && (n = n.replaceAll(/\s+/g, " ")), s.replaceSpaces && (n = n.replaceAll(" ", "-")), s.removeNumbers && (n = n.replaceAll(/\d/g, "")), s.removeAccents && (n = n.replaceAll(/[ÀÁÂÃÄÅÇÈÉÊËÎÏÑÔÕÖØÙÚÛÜàáâãäåçèéêëíîïñóôõöøùúûüÿ]/g, (i) => t[i] || i), n = n.replaceAll(/[\u0300-\u036F]/g, "")), s.caseSensitive === !1 && (n = n.toLowerCase()), s.removeSpecialCharacters && (n = n.replaceAll(/[^\dA-Z-]/gi, "")), s.trim && (n = n.trim()), s.customNormalizationForms)
|
|
67
67
|
for (const i of s.customNormalizationForms)
|
|
68
|
-
|
|
69
|
-
return
|
|
68
|
+
n = n.normalize(i);
|
|
69
|
+
return n;
|
|
70
70
|
}
|
|
71
|
-
function
|
|
72
|
-
const s = r.length, t = c.length,
|
|
71
|
+
function xe(r, c) {
|
|
72
|
+
const s = r.length, t = c.length, n = [];
|
|
73
73
|
for (let i = 0; i <= s; i++)
|
|
74
|
-
|
|
74
|
+
n[i] = [i];
|
|
75
75
|
for (let i = 0; i <= t; i++)
|
|
76
|
-
|
|
76
|
+
n[0][i] = i;
|
|
77
77
|
for (let i = 1; i <= s; i++)
|
|
78
78
|
for (let m = 1; m <= t; m++) {
|
|
79
79
|
const V = r[i - 1] === c[m - 1] ? 0 : 1;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
n[i][m] = Math.min(
|
|
81
|
+
n[i - 1][m] + 1,
|
|
82
|
+
n[i][m - 1] + 1,
|
|
83
|
+
n[i - 1][m - 1] + V
|
|
84
84
|
);
|
|
85
85
|
}
|
|
86
|
-
return
|
|
86
|
+
return n[s][t];
|
|
87
87
|
}
|
|
88
88
|
function ce(r, c) {
|
|
89
|
-
const s =
|
|
89
|
+
const s = xe(r, c), t = Math.max(r.length, c.length);
|
|
90
90
|
return 1 - s / t;
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Be(r, c, s = 0.75) {
|
|
93
93
|
return ce(r, c) >= s;
|
|
94
94
|
}
|
|
95
95
|
function Z(r, c, s = 0.75) {
|
|
96
96
|
const t = f(
|
|
97
|
-
() =>
|
|
98
|
-
),
|
|
99
|
-
() =>
|
|
100
|
-
), i = f(() => typeof s == "number" ? s : s.value), m = f(() => ce(t.value,
|
|
97
|
+
() => O(typeof r == "string" ? r : r.value)
|
|
98
|
+
), n = f(
|
|
99
|
+
() => O(typeof c == "string" ? c : c.value)
|
|
100
|
+
), i = f(() => typeof s == "number" ? s : s.value), m = f(() => ce(t.value, n.value));
|
|
101
101
|
return {
|
|
102
102
|
isMatching: f(
|
|
103
|
-
() =>
|
|
103
|
+
() => Be(t.value, n.value, i.value)
|
|
104
104
|
),
|
|
105
105
|
score: m
|
|
106
106
|
};
|
|
@@ -108,13 +108,13 @@ function Z(r, c, s = 0.75) {
|
|
|
108
108
|
function de(r, c, s) {
|
|
109
109
|
var m;
|
|
110
110
|
r.stopPropagation();
|
|
111
|
-
const t = typeof s.value == "function" ? s.value : s.value.handler,
|
|
111
|
+
const t = typeof s.value == "function" ? s.value : s.value.handler, n = typeof s.value == "object" ? s.value.exclude : void 0;
|
|
112
112
|
let i = !1;
|
|
113
|
-
if (
|
|
114
|
-
for (const V of
|
|
113
|
+
if (n && n.length > 0) {
|
|
114
|
+
for (const V of n)
|
|
115
115
|
if (!i && r.target instanceof HTMLElement) {
|
|
116
|
-
const
|
|
117
|
-
i = r.target.getAttribute("id") ===
|
|
116
|
+
const x = (m = document.querySelector(V)) == null ? void 0 : m.getAttribute("id");
|
|
117
|
+
i = r.target.getAttribute("id") === x;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
!c.contains(r.target) && !i && (t == null || t());
|
|
@@ -122,7 +122,7 @@ function de(r, c, s) {
|
|
|
122
122
|
function pe() {
|
|
123
123
|
return document.ontouchstart === null ? "touchstart" : "click";
|
|
124
124
|
}
|
|
125
|
-
function
|
|
125
|
+
function De(r, c) {
|
|
126
126
|
const s = pe();
|
|
127
127
|
document.removeEventListener(s, (t) => de(t, r, c));
|
|
128
128
|
}
|
|
@@ -136,17 +136,17 @@ function He(r, c) {
|
|
|
136
136
|
}
|
|
137
137
|
const Pe = {
|
|
138
138
|
mounted: He,
|
|
139
|
-
unmounted:
|
|
139
|
+
unmounted: De
|
|
140
140
|
};
|
|
141
141
|
let R = null;
|
|
142
142
|
function Fe(r, c) {
|
|
143
143
|
R && clearTimeout(R), R = setTimeout(r, c);
|
|
144
144
|
}
|
|
145
|
-
const Ue = ["aria-label"], We = { class: "m-select-list__no-results" },
|
|
145
|
+
const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, qe = {
|
|
146
146
|
key: 2,
|
|
147
147
|
class: "m-select-list__scroll-wrapper",
|
|
148
148
|
tabindex: "-1"
|
|
149
|
-
},
|
|
149
|
+
}, je = { class: "m-select-list-optgroup" }, Qe = ["onClick"], Ge = /* @__PURE__ */ Ie({
|
|
150
150
|
inheritAttrs: !1,
|
|
151
151
|
__name: "MazSelect",
|
|
152
152
|
props: {
|
|
@@ -184,21 +184,21 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
184
184
|
"215ff493": fe.value,
|
|
185
185
|
"64d6cfbb": me.value
|
|
186
186
|
}));
|
|
187
|
-
const t = r,
|
|
187
|
+
const t = r, n = s, i = T(() => import("./MazCheckbox-Db6sPUbV.mjs")), m = T(() => import("./magnifying-glass--nBiyXot.mjs")), V = T(() => import("./chevron-down-BkvtON3b.mjs")), x = T(() => import("./no-symbol-CIgKzsrB.mjs"));
|
|
188
188
|
c({
|
|
189
189
|
/** Method to open the option list */
|
|
190
190
|
openList: A,
|
|
191
191
|
/** Method to close the option list */
|
|
192
192
|
closeList: k
|
|
193
193
|
});
|
|
194
|
-
const z = b(!1), p = b(),
|
|
194
|
+
const z = b(!1), p = b(), B = f(
|
|
195
195
|
() => ["black", "transparent", "white"].includes(t.color)
|
|
196
196
|
), fe = f(
|
|
197
|
-
() =>
|
|
197
|
+
() => B.value ? "var(--maz-color-black)" : `var(--maz-color-${t.color}-800)`
|
|
198
198
|
), me = f(
|
|
199
|
-
() =>
|
|
199
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-100)`
|
|
200
200
|
), ve = f(
|
|
201
|
-
() =>
|
|
201
|
+
() => B.value ? "var(--maz-color-muted)" : `var(--maz-color-${t.color}-200)`
|
|
202
202
|
), h = f(() => z.value || t.open), ye = $e({
|
|
203
203
|
componentName: "MazSelect",
|
|
204
204
|
providedId: t.id
|
|
@@ -223,31 +223,31 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
223
223
|
const e = [];
|
|
224
224
|
if (!((o = t.options) != null && o.length))
|
|
225
225
|
return [];
|
|
226
|
-
for (const
|
|
227
|
-
typeof
|
|
228
|
-
{ label:
|
|
229
|
-
...
|
|
226
|
+
for (const a of t.options)
|
|
227
|
+
typeof a == "string" || typeof a == "number" || typeof a == "boolean" ? e.push(J(a)) : typeof a == "object" && "options" in a && Array.isArray(a.options) ? e.push(
|
|
228
|
+
{ label: a.label, isOptGroup: !0 },
|
|
229
|
+
...a.options.map(
|
|
230
230
|
(l) => typeof l == "string" || typeof l == "number" || typeof l == "boolean" ? J(l) : X(l)
|
|
231
231
|
)
|
|
232
|
-
) : e.push(X(
|
|
232
|
+
) : e.push(X(a));
|
|
233
233
|
return e;
|
|
234
|
-
}),
|
|
234
|
+
}), E = f(
|
|
235
235
|
() => {
|
|
236
236
|
var e;
|
|
237
237
|
return ((e = L.value) == null ? void 0 : e.filter((o) => t.multiple ? Array.isArray(t.modelValue) ? t.modelValue.includes(o[t.optionValueKey]) && !K(o[t.optionValueKey]) : !1 : t.modelValue === o[t.optionValueKey] && !K(o[t.optionValueKey]))) ?? [];
|
|
238
238
|
}
|
|
239
239
|
);
|
|
240
|
-
|
|
240
|
+
Le(() => {
|
|
241
241
|
var e;
|
|
242
|
-
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"),
|
|
242
|
+
(e = t.options) != null && e.length || console.warn("[maz-ui](MazSelect) you must provide options"), U();
|
|
243
243
|
});
|
|
244
|
-
const Y = b(),
|
|
244
|
+
const Y = b(), D = b(), _ = b(), ee = b();
|
|
245
245
|
function K(e) {
|
|
246
246
|
return e == null;
|
|
247
247
|
}
|
|
248
|
-
function
|
|
249
|
-
var
|
|
250
|
-
return (((
|
|
248
|
+
function H(e) {
|
|
249
|
+
var a;
|
|
250
|
+
return (((a = E.value) == null ? void 0 : a.some(
|
|
251
251
|
(l) => l[t.optionValueKey] === e[t.optionValueKey]
|
|
252
252
|
)) ?? !1) && !K(e[t.optionValueKey]);
|
|
253
253
|
}
|
|
@@ -255,65 +255,65 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
255
255
|
var o;
|
|
256
256
|
if (t.multiple && t.modelValue && Array.isArray(t.modelValue))
|
|
257
257
|
return t.modelValue.map(
|
|
258
|
-
(
|
|
258
|
+
(a) => {
|
|
259
259
|
var l, u;
|
|
260
|
-
return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] ===
|
|
260
|
+
return (u = (l = L.value) == null ? void 0 : l.find((d) => d[t.optionValueKey] === a)) == null ? void 0 : u[t.optionInputValueKey];
|
|
261
261
|
}
|
|
262
262
|
).join(", ");
|
|
263
263
|
const e = (o = L.value) == null ? void 0 : o.find(
|
|
264
|
-
(
|
|
264
|
+
(a) => a[t.optionValueKey] === t.modelValue
|
|
265
265
|
);
|
|
266
266
|
return K(t.modelValue) || e == null ? void 0 : e[t.optionInputValueKey];
|
|
267
267
|
}), be = f(
|
|
268
268
|
() => t.listPosition.includes("bottom") ? "maz-slide" : "maz-slideinvert"
|
|
269
|
-
),
|
|
270
|
-
function
|
|
271
|
-
return o && e &&
|
|
269
|
+
), w = b(""), S = b("");
|
|
270
|
+
function P(e, o) {
|
|
271
|
+
return o && e && O(e).includes(O(o));
|
|
272
272
|
}
|
|
273
273
|
function te(e) {
|
|
274
274
|
var o;
|
|
275
|
-
return e ? (o = L.value) == null ? void 0 : o.filter((
|
|
276
|
-
const l =
|
|
277
|
-
return
|
|
275
|
+
return e ? (o = L.value) == null ? void 0 : o.filter((a) => {
|
|
276
|
+
const l = a[t.optionLabelKey], u = a[t.optionValueKey], d = a[t.optionInputValueKey], v = t.searchThreshold;
|
|
277
|
+
return P(l, e) || P(d, e) || P(u, e) || typeof l == "string" && Z(l, e, v).isMatching.value || typeof d == "string" && Z(d, e, v).isMatching.value || typeof u == "string" && Z(u, e, v).isMatching.value;
|
|
278
278
|
}) : L.value;
|
|
279
279
|
}
|
|
280
|
-
const y = f(() => te(
|
|
280
|
+
const y = f(() => te(w.value));
|
|
281
281
|
async function k(e) {
|
|
282
|
-
var
|
|
282
|
+
var a, l;
|
|
283
283
|
if (!h.value)
|
|
284
284
|
return;
|
|
285
|
-
if (e && ("relatedTarget" in e && ((
|
|
285
|
+
if (e && ("relatedTarget" in e && ((a = Y.value) != null && a.contains(e.relatedTarget)) || e.type === "keydown"))
|
|
286
286
|
return e.preventDefault();
|
|
287
287
|
const o = e && "relatedTarget" in e && e.relatedTarget instanceof HTMLElement && e.relatedTarget.getAttribute("id");
|
|
288
288
|
if ((l = t.excludeSelectors) != null && l.includes(`#${o}`))
|
|
289
289
|
return e == null ? void 0 : e.preventDefault();
|
|
290
|
-
await
|
|
290
|
+
await W(), z.value = !1, p.value = 0, n("close", e);
|
|
291
291
|
}
|
|
292
292
|
async function A(e) {
|
|
293
|
-
t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await
|
|
293
|
+
t.disabled || h.value || (e == null || e.preventDefault(), z.value = !0, await F(), n("focus", e), n("open", z.value));
|
|
294
294
|
}
|
|
295
295
|
function oe() {
|
|
296
296
|
var e, o;
|
|
297
|
-
(o = ((e =
|
|
297
|
+
(o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.focus();
|
|
298
298
|
}
|
|
299
299
|
function ge() {
|
|
300
300
|
var e, o;
|
|
301
|
-
(o = ((e =
|
|
301
|
+
(o = ((e = D.value) == null ? void 0 : e.$el).querySelector("input")) == null || o.dispatchEvent(new Event("input"));
|
|
302
302
|
}
|
|
303
303
|
function Ve(e) {
|
|
304
304
|
z.value ? k(e) : oe();
|
|
305
305
|
}
|
|
306
306
|
function ze(e) {
|
|
307
|
-
var o,
|
|
308
|
-
|
|
307
|
+
var o, a;
|
|
308
|
+
w.value = e, (a = ((o = _.value) == null ? void 0 : o.$el).querySelector("input")) == null || a.focus();
|
|
309
309
|
}
|
|
310
310
|
function Ke(e) {
|
|
311
|
-
var
|
|
311
|
+
var a;
|
|
312
312
|
e === "Backspace" && S.value.length > 0 ? S.value = S.value.slice(0, -1) : S.value += e;
|
|
313
313
|
const o = te(S.value);
|
|
314
|
-
o != null && o.length && (p.value = (
|
|
314
|
+
o != null && o.length && (p.value = (a = y.value) == null ? void 0 : a.findIndex(
|
|
315
315
|
(l) => l[t.optionValueKey] === o[0][t.optionValueKey]
|
|
316
|
-
), typeof p.value == "number" && p.value >= 0 &&
|
|
316
|
+
), typeof p.value == "number" && p.value >= 0 && F(p.value)), Fe(() => {
|
|
317
317
|
S.value = "";
|
|
318
318
|
}, 1e3);
|
|
319
319
|
}
|
|
@@ -322,30 +322,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
322
322
|
/^[\dA-Za-z\u0400-\u04FF]$/.test(o) ? (e.preventDefault(), A(e), t.search ? ze(o) : Ke(o)) : le(e);
|
|
323
323
|
}
|
|
324
324
|
function le(e, o = !0) {
|
|
325
|
-
const
|
|
325
|
+
const a = e.code, l = ["ArrowUp", "ArrowDown"].includes(a), u = (o ? ["Enter", "Space"] : ["Enter"]).includes(a), d = a === "Escape" && h.value;
|
|
326
326
|
l ? ke(e, p.value) : u ? Ae(e, p.value) : d && k(e);
|
|
327
327
|
}
|
|
328
328
|
function ke(e, o) {
|
|
329
329
|
var u;
|
|
330
330
|
e.preventDefault();
|
|
331
|
-
const
|
|
331
|
+
const a = e.code;
|
|
332
332
|
h.value || A(e);
|
|
333
333
|
const l = (u = y.value) == null ? void 0 : u.length;
|
|
334
|
-
l && (typeof o == "number" ? o === l - 1 &&
|
|
334
|
+
l && (typeof o == "number" ? o === l - 1 && a === "ArrowDown" ? p.value = 0 : o === 0 && a === "ArrowUp" ? p.value = l - 1 : p.value = a === "ArrowDown" ? o + 1 : o - 1 : p.value = a === "ArrowDown" ? 0 : l - 1, F(p.value));
|
|
335
335
|
}
|
|
336
336
|
function Ae(e, o) {
|
|
337
337
|
var l, u, d;
|
|
338
338
|
if (e.preventDefault(), !h.value)
|
|
339
339
|
return A(e);
|
|
340
|
-
const
|
|
341
|
-
K(
|
|
340
|
+
const a = o ? ((l = y.value) == null ? void 0 : l[o]) ?? ((u = y.value) == null ? void 0 : u[0]) : (d = y.value) == null ? void 0 : d[0];
|
|
341
|
+
K(a) || ae(a);
|
|
342
342
|
}
|
|
343
|
-
async function
|
|
344
|
-
var
|
|
345
|
-
await
|
|
343
|
+
async function F(e) {
|
|
344
|
+
var a, l;
|
|
345
|
+
await W(), typeof e != "number" && U();
|
|
346
346
|
const o = e ?? p.value;
|
|
347
347
|
if (typeof o == "number" && o >= 0) {
|
|
348
|
-
const u = (
|
|
348
|
+
const u = (a = ee.value) == null ? void 0 : a.querySelectorAll(".m-select-list-item");
|
|
349
349
|
(l = u == null ? void 0 : u[o]) == null || l.scrollIntoView({
|
|
350
350
|
behavior: "auto",
|
|
351
351
|
block: "nearest",
|
|
@@ -353,30 +353,30 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
}
|
|
356
|
-
function
|
|
357
|
-
var
|
|
358
|
-
const o = (
|
|
356
|
+
function U(e) {
|
|
357
|
+
var a;
|
|
358
|
+
const o = (a = y.value) == null ? void 0 : a.findIndex((l) => {
|
|
359
359
|
var u, d;
|
|
360
|
-
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u =
|
|
360
|
+
return t.multiple && Array.isArray(t.modelValue) ? e ? e[t.optionValueKey] === l[t.optionValueKey] : [...t.modelValue].reverse()[0] === l[t.optionValueKey] : ((d = (u = E.value) == null ? void 0 : u[0]) == null ? void 0 : d[t.optionValueKey]) === l[t.optionValueKey];
|
|
361
361
|
});
|
|
362
362
|
p.value = o && o >= 0 ? o : 0;
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function ae(e, o = !0) {
|
|
365
365
|
var d;
|
|
366
|
-
o && !t.multiple &&
|
|
367
|
-
const
|
|
366
|
+
o && !t.multiple && W(() => k()), w.value = "";
|
|
367
|
+
const a = (d = E.value) == null ? void 0 : d.some(
|
|
368
368
|
(v) => v[t.optionValueKey] === e[t.optionValueKey]
|
|
369
369
|
);
|
|
370
|
-
let l =
|
|
371
|
-
|
|
370
|
+
let l = E.value;
|
|
371
|
+
a && t.multiple ? l = l == null ? void 0 : l.filter(
|
|
372
372
|
(v) => v[t.optionValueKey] !== e[t.optionValueKey]
|
|
373
373
|
) : t.multiple ? l.push(e) : l = [e];
|
|
374
374
|
const u = l.map((v) => v[t.optionValueKey]);
|
|
375
|
-
|
|
375
|
+
n("update:model-value", t.multiple ? u : u[0]), n("selected-option", e), ge(), U(e), oe();
|
|
376
376
|
}
|
|
377
377
|
return (e, o) => {
|
|
378
|
-
var
|
|
379
|
-
return
|
|
378
|
+
var a;
|
|
379
|
+
return we((g(), I(
|
|
380
380
|
"div",
|
|
381
381
|
{
|
|
382
382
|
ref_key: "mazSelectElement",
|
|
@@ -386,13 +386,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
386
386
|
t.class,
|
|
387
387
|
`--${e.size}`
|
|
388
388
|
]]),
|
|
389
|
-
style:
|
|
389
|
+
style: j(e.style)
|
|
390
390
|
},
|
|
391
391
|
[
|
|
392
|
-
|
|
392
|
+
$(re, Me({
|
|
393
393
|
id: C(ye),
|
|
394
394
|
ref_key: "mazInputComponent",
|
|
395
|
-
ref:
|
|
395
|
+
ref: D,
|
|
396
396
|
class: "m-select-input"
|
|
397
397
|
}, e.$attrs, {
|
|
398
398
|
required: e.required,
|
|
@@ -403,29 +403,29 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
403
403
|
block: "",
|
|
404
404
|
autocomplete: e.autocomplete,
|
|
405
405
|
disabled: e.disabled,
|
|
406
|
-
onFocus:
|
|
407
|
-
onBlur:
|
|
408
|
-
onClick:
|
|
409
|
-
onChange: o[0] || (o[0] = (l) =>
|
|
410
|
-
onInput: o[1] || (o[1] = (l) =>
|
|
406
|
+
onFocus: M(A, ["prevent", "stop"]),
|
|
407
|
+
onBlur: M(k, ["prevent", "stop"]),
|
|
408
|
+
onClick: M(A, ["prevent", "stop"]),
|
|
409
|
+
onChange: o[0] || (o[0] = (l) => n("change", l)),
|
|
410
|
+
onInput: o[1] || (o[1] = (l) => n("input", l)),
|
|
411
411
|
onKeydown: Se
|
|
412
412
|
}), {
|
|
413
|
-
"right-icon":
|
|
414
|
-
|
|
413
|
+
"right-icon": ne(() => [
|
|
414
|
+
N("button", {
|
|
415
415
|
tabindex: "-1",
|
|
416
416
|
type: "button",
|
|
417
417
|
class: "m-select-input__toggle-button maz-custom",
|
|
418
418
|
"aria-label": `${h.value ? "collapse" : "expand"} list of options`,
|
|
419
|
-
onClick:
|
|
419
|
+
onClick: M(Ve, ["stop"])
|
|
420
420
|
}, [
|
|
421
|
-
|
|
421
|
+
$(C(V), { class: "m-select-chevron maz-text-xl" })
|
|
422
422
|
], 8, Ue)
|
|
423
423
|
]),
|
|
424
424
|
_: 1
|
|
425
425
|
/* STABLE */
|
|
426
426
|
}, 16, ["id", "required", "border-active", "color", "model-value", "size", "autocomplete", "disabled"]),
|
|
427
|
-
|
|
428
|
-
default:
|
|
427
|
+
$(Ee, { name: be.value }, {
|
|
428
|
+
default: ne(() => [
|
|
429
429
|
h.value ? (g(), I(
|
|
430
430
|
"div",
|
|
431
431
|
{
|
|
@@ -438,7 +438,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
438
438
|
"--right": e.listPosition.includes("right"),
|
|
439
439
|
"--bottom": e.listPosition.includes("bottom")
|
|
440
440
|
}]),
|
|
441
|
-
style:
|
|
441
|
+
style: j({
|
|
442
442
|
maxHeight: `${e.maxListHeight}px`,
|
|
443
443
|
maxWidth: `${e.maxListWidth}px`,
|
|
444
444
|
minHeight: `${e.minListHeight}px`,
|
|
@@ -450,9 +450,9 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
450
450
|
key: 0,
|
|
451
451
|
ref_key: "searchInputComponent",
|
|
452
452
|
ref: _,
|
|
453
|
-
modelValue:
|
|
453
|
+
modelValue: w.value,
|
|
454
454
|
"onUpdate:modelValue": [
|
|
455
|
-
o[2] || (o[2] = (l) =>
|
|
455
|
+
o[2] || (o[2] = (l) => w.value = l),
|
|
456
456
|
o[4] || (o[4] = (l) => p.value = 0)
|
|
457
457
|
],
|
|
458
458
|
size: "sm",
|
|
@@ -465,15 +465,12 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
465
465
|
class: "m-select-list__search-input maz-flex-none",
|
|
466
466
|
"left-icon": C(m),
|
|
467
467
|
onKeydown: o[3] || (o[3] = (l) => le(l, !1))
|
|
468
|
-
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) :
|
|
469
|
-
w(`
|
|
470
|
-
@slot No results slot - Displayed when no results corresponding with search query
|
|
471
|
-
`),
|
|
468
|
+
}, null, 8, ["modelValue", "color", "placeholder", "left-icon"])) : Q("v-if", !0),
|
|
472
469
|
!y.value || y.value.length <= 0 ? G(e.$slots, "no-results", { key: 1 }, () => [
|
|
473
|
-
|
|
474
|
-
|
|
470
|
+
N("span", We, [
|
|
471
|
+
$(C(x), { class: "maz-h-6 maz-w-6 maz-text-normal" })
|
|
475
472
|
])
|
|
476
|
-
], !0) : (g(), I("div",
|
|
473
|
+
], !0) : (g(), I("div", qe, [
|
|
477
474
|
(g(!0), I(
|
|
478
475
|
ie,
|
|
479
476
|
null,
|
|
@@ -481,17 +478,13 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
481
478
|
ie,
|
|
482
479
|
{ key: u },
|
|
483
480
|
[
|
|
484
|
-
w(`
|
|
485
|
-
@slot Custom optgroup label
|
|
486
|
-
@binding {String} label - the label of the optgroup
|
|
487
|
-
`),
|
|
488
481
|
l.label && l.isOptGroup ? G(e.$slots, "optgroup", {
|
|
489
482
|
key: 0,
|
|
490
483
|
label: l.label
|
|
491
484
|
}, () => [
|
|
492
|
-
|
|
485
|
+
N(
|
|
493
486
|
"span",
|
|
494
|
-
|
|
487
|
+
je,
|
|
495
488
|
ue(l.label),
|
|
496
489
|
1
|
|
497
490
|
/* TEXT */
|
|
@@ -503,30 +496,25 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
503
496
|
class: q(["m-select-list-item maz-custom maz-flex-none", [
|
|
504
497
|
{
|
|
505
498
|
"--is-keyboard-selected": p.value === u,
|
|
506
|
-
"--is-selected":
|
|
499
|
+
"--is-selected": H(l),
|
|
507
500
|
"--is-none-value": K(l[e.optionValueKey])
|
|
508
501
|
}
|
|
509
502
|
]]),
|
|
510
|
-
style:
|
|
511
|
-
onClick:
|
|
503
|
+
style: j(e.itemHeight ? { height: `${e.itemHeight}px` } : void 0),
|
|
504
|
+
onClick: M((d) => ae(l), ["prevent", "stop"])
|
|
512
505
|
}, [
|
|
513
506
|
e.multiple ? (g(), se(C(i), {
|
|
514
507
|
key: 0,
|
|
515
508
|
tabindex: "-1",
|
|
516
|
-
"model-value":
|
|
509
|
+
"model-value": H(l),
|
|
517
510
|
size: "sm",
|
|
518
511
|
color: e.color
|
|
519
|
-
}, null, 8, ["model-value", "color"])) :
|
|
520
|
-
w(`
|
|
521
|
-
@slot Custom option
|
|
522
|
-
@binding {Object} option - the option object
|
|
523
|
-
@binding {Boolean} is-selected - if the option is selected
|
|
524
|
-
`),
|
|
512
|
+
}, null, 8, ["model-value", "color"])) : Q("v-if", !0),
|
|
525
513
|
G(e.$slots, "default", {
|
|
526
514
|
option: l,
|
|
527
|
-
isSelected:
|
|
515
|
+
isSelected: H(l)
|
|
528
516
|
}, () => [
|
|
529
|
-
|
|
517
|
+
N(
|
|
530
518
|
"span",
|
|
531
519
|
null,
|
|
532
520
|
ue(l[e.optionLabelKey]),
|
|
@@ -546,7 +534,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
546
534
|
],
|
|
547
535
|
6
|
|
548
536
|
/* CLASS, STYLE */
|
|
549
|
-
)) :
|
|
537
|
+
)) : Q("v-if", !0)
|
|
550
538
|
]),
|
|
551
539
|
_: 3
|
|
552
540
|
/* FORWARDED */
|
|
@@ -556,7 +544,7 @@ const Ue = ["aria-label"], We = { class: "m-select-list__no-results" }, je = {
|
|
|
556
544
|
/* CLASS, STYLE */
|
|
557
545
|
)), [
|
|
558
546
|
[C(Pe), {
|
|
559
|
-
exclude: (
|
|
547
|
+
exclude: (a = e.excludeSelectors) != null && a.length ? e.excludeSelectors : [],
|
|
560
548
|
handler: k
|
|
561
549
|
}]
|
|
562
550
|
]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./
|
|
2
|
+
import { _ as a } from "./MazInputPrice-DoTnDDIN.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./MazBtn-
|
|
2
|
+
import { _ as a } from "./MazBtn-BB1FyYWv.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./
|
|
2
|
+
import { _ as a } from "./MazDialog-khofH-7I.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./
|
|
2
|
+
import { _ as a } from "./MazPicker-DwWiIYAR.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
-
import { _ as a } from "./
|
|
2
|
+
import { _ as a } from "./MazBottomSheet-CGRvZmGd.mjs";
|
|
3
3
|
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
4
|
__name: "MazSpinner",
|
|
5
5
|
props: {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { defineComponent as o, openBlock as s, createElementBlock as t, normalizeClass as r, createElementVNode as p } from "vue";
|
|
2
|
+
import { _ as a } from "./MazGallery-CXQiXWFr.mjs";
|
|
3
|
+
import '../assets/MazSpinner.css';const i = ["width", "height"], l = /* @__PURE__ */ o({
|
|
4
|
+
__name: "MazSpinner",
|
|
5
|
+
props: {
|
|
6
|
+
size: { default: "2em" },
|
|
7
|
+
color: { default: "theme" }
|
|
8
|
+
},
|
|
9
|
+
setup(m) {
|
|
10
|
+
return (e, n) => (s(), t("svg", {
|
|
11
|
+
width: e.size,
|
|
12
|
+
height: e.size,
|
|
13
|
+
version: "1.1",
|
|
14
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
15
|
+
x: "0px",
|
|
16
|
+
y: "0px",
|
|
17
|
+
viewBox: "0 0 50 50",
|
|
18
|
+
"xml:space": "preserve",
|
|
19
|
+
class: r(["m-spinner", `m-spinner--${e.color}`]),
|
|
20
|
+
style: { "enable-background": "new 0 0 50 50" }
|
|
21
|
+
}, n[0] || (n[0] = [
|
|
22
|
+
p(
|
|
23
|
+
"path",
|
|
24
|
+
{ d: "M43.935,25.145c0-10.318-8.364-18.683-18.683-18.683c-10.318,0-18.683,8.365-18.683,18.683h4.068c0-8.071,6.543-14.615,14.615-14.615c8.072,0,14.615,6.543,14.615,14.615H43.935z" },
|
|
25
|
+
null,
|
|
26
|
+
-1
|
|
27
|
+
/* HOISTED */
|
|
28
|
+
)
|
|
29
|
+
]), 10, i));
|
|
30
|
+
}
|
|
31
|
+
}), h = /* @__PURE__ */ a(l, [["__scopeId", "data-v-2868435d"]]);
|
|
32
|
+
export {
|
|
33
|
+
h as default
|
|
34
|
+
};
|