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,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as f, createElementBlock as b, createElementVNode as c, useId as A, computed as g, defineComponent as
|
|
1
|
+
import { openBlock as f, createElementBlock as b, createElementVNode as c, useId as A, computed as g, defineComponent as y, useCssVars as O, ref as p, onMounted as V, onUnmounted as B, normalizeClass as $, normalizeStyle as w, renderSlot as h, withDirectives as E, vShow as z, mergeModels as x, useModel as I, mergeProps as L, useSlots as j, Fragment as F, renderList as N, createBlock as R, withCtx as M, unref as k, createVNode as S } from "vue";
|
|
2
2
|
import './assets/MazAccordion.css';const P = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "1em",
|
|
@@ -31,7 +31,7 @@ function q({
|
|
|
31
31
|
const a = A();
|
|
32
32
|
return g(() => t ?? `${r}-${a}`);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const D = { class: "inner" }, H = /* @__PURE__ */ y({
|
|
35
35
|
__name: "MazCardSpotlight",
|
|
36
36
|
props: {
|
|
37
37
|
color: { default: "primary" },
|
|
@@ -42,20 +42,20 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
42
42
|
innerOpacity: { default: 0.95 }
|
|
43
43
|
},
|
|
44
44
|
setup(r) {
|
|
45
|
-
|
|
45
|
+
O((d) => ({
|
|
46
46
|
"4f499add": d.innerOpacity,
|
|
47
47
|
"2e65a0ad": n.value
|
|
48
48
|
}));
|
|
49
49
|
const t = r, a = p(), l = p(), i = p(!1);
|
|
50
|
-
function
|
|
50
|
+
function v({ clientX: d, clientY: u }) {
|
|
51
51
|
var e, _, o;
|
|
52
52
|
i.value = !0;
|
|
53
|
-
const
|
|
54
|
-
|
|
53
|
+
const m = (e = l.value) == null ? void 0 : e.getBoundingClientRect();
|
|
54
|
+
m && ((o = (_ = a.value) == null ? void 0 : _.animate) == null || o.call(
|
|
55
55
|
_,
|
|
56
56
|
[
|
|
57
57
|
{
|
|
58
|
-
transform: `translate(${d -
|
|
58
|
+
transform: `translate(${d - m.left - m.width / 2}px,${u - m.top - m.height / 2}px)`
|
|
59
59
|
}
|
|
60
60
|
],
|
|
61
61
|
{
|
|
@@ -65,10 +65,10 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
65
65
|
));
|
|
66
66
|
}
|
|
67
67
|
const n = g(() => `var(--maz-color-${t.color}-alpha)`), s = g(() => `var(--maz-color-${t.color}-alpha-20)`);
|
|
68
|
-
return
|
|
69
|
-
window.addEventListener("mousemove",
|
|
68
|
+
return V(() => {
|
|
69
|
+
window.addEventListener("mousemove", v);
|
|
70
70
|
}), B(() => {
|
|
71
|
-
window.removeEventListener("mousemove",
|
|
71
|
+
window.removeEventListener("mousemove", v);
|
|
72
72
|
}), (d, u) => (f(), b(
|
|
73
73
|
"div",
|
|
74
74
|
{
|
|
@@ -76,7 +76,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
76
76
|
style: w({ backgroundColor: s.value })
|
|
77
77
|
},
|
|
78
78
|
[
|
|
79
|
-
c("div",
|
|
79
|
+
c("div", D, [
|
|
80
80
|
c(
|
|
81
81
|
"div",
|
|
82
82
|
{
|
|
@@ -126,7 +126,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
126
126
|
for (const [l, i] of t)
|
|
127
127
|
a[l] = i;
|
|
128
128
|
return a;
|
|
129
|
-
},
|
|
129
|
+
}, W = /* @__PURE__ */ C(H, [["__scopeId", "data-v-31abf9ff"]]), G = ["aria-hidden"], J = /* @__PURE__ */ y({
|
|
130
130
|
inheritAttrs: !1,
|
|
131
131
|
__name: "MazExpandAnimation",
|
|
132
132
|
props: /* @__PURE__ */ x({
|
|
@@ -138,7 +138,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
138
138
|
}),
|
|
139
139
|
emits: ["update:modelValue"],
|
|
140
140
|
setup(r) {
|
|
141
|
-
|
|
141
|
+
O((n) => ({
|
|
142
142
|
"3628b947": n.duration,
|
|
143
143
|
"239277b5": n.timingFunction
|
|
144
144
|
}));
|
|
@@ -146,15 +146,15 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
146
146
|
function i() {
|
|
147
147
|
t.value || (a.value = !0);
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function v() {
|
|
150
150
|
t.value && (a.value = !1);
|
|
151
151
|
}
|
|
152
|
-
return
|
|
152
|
+
return V(() => {
|
|
153
153
|
var n, s;
|
|
154
|
-
(n = l.value) == null || n.addEventListener("transitionstart", i, !1), (s = l.value) == null || s.addEventListener("transitionend",
|
|
154
|
+
(n = l.value) == null || n.addEventListener("transitionstart", i, !1), (s = l.value) == null || s.addEventListener("transitionend", v, !1);
|
|
155
155
|
}), B(() => {
|
|
156
156
|
var n, s;
|
|
157
|
-
(n = l.value) == null || n.removeEventListener("transitionstart", i, !1), (s = l.value) == null || s.removeEventListener("transitionend",
|
|
157
|
+
(n = l.value) == null || n.removeEventListener("transitionstart", i, !1), (s = l.value) == null || s.removeEventListener("transitionend", v, !1);
|
|
158
158
|
}), (n, s) => (f(), b("div", {
|
|
159
159
|
ref_key: "expandAnimationRef",
|
|
160
160
|
ref: l,
|
|
@@ -170,18 +170,17 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
170
170
|
}
|
|
171
171
|
}),
|
|
172
172
|
[
|
|
173
|
-
N(" @slot Default Slot - Display content "),
|
|
174
173
|
h(n.$slots, "default", {}, void 0, !0)
|
|
175
174
|
],
|
|
176
175
|
16
|
|
177
176
|
/* FULL_PROPS */
|
|
178
177
|
)
|
|
179
|
-
], 10,
|
|
178
|
+
], 10, G));
|
|
180
179
|
}
|
|
181
|
-
}),
|
|
180
|
+
}), K = /* @__PURE__ */ C(J, [["__scopeId", "data-v-b7ca6b97"]]), Q = {
|
|
182
181
|
class: "m-accordion",
|
|
183
182
|
role: "presentation"
|
|
184
|
-
},
|
|
183
|
+
}, X = ["id", "aria-controls", "aria-expanded", "onClick"], Y = /* @__PURE__ */ y({
|
|
185
184
|
__name: "MazAccordion",
|
|
186
185
|
props: {
|
|
187
186
|
id: { default: void 0 },
|
|
@@ -193,8 +192,8 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
193
192
|
const a = r, l = t, i = q({
|
|
194
193
|
componentName: "MazAccordion",
|
|
195
194
|
providedId: a.id
|
|
196
|
-
}),
|
|
197
|
-
() => Object.keys(
|
|
195
|
+
}), v = j(), n = g(
|
|
196
|
+
() => Object.keys(v).filter((e) => e.startsWith("title-")).length
|
|
198
197
|
), s = p(a.modelValue), d = g({
|
|
199
198
|
get: () => a.modelValue || s.value,
|
|
200
199
|
set: (e) => {
|
|
@@ -204,15 +203,15 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
204
203
|
function u(e) {
|
|
205
204
|
return d.value === e;
|
|
206
205
|
}
|
|
207
|
-
function
|
|
206
|
+
function m(e) {
|
|
208
207
|
d.value === e ? (s.value = 0, l("update:model-value", 0)) : (s.value = e, l("update:model-value", e));
|
|
209
208
|
}
|
|
210
|
-
return (e, _) => (f(), b("div",
|
|
209
|
+
return (e, _) => (f(), b("div", Q, [
|
|
211
210
|
(f(!0), b(
|
|
212
|
-
|
|
211
|
+
F,
|
|
213
212
|
null,
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
N(n.value, (o) => (f(), R(
|
|
214
|
+
W,
|
|
216
215
|
{
|
|
217
216
|
key: o,
|
|
218
217
|
class: "m-accordion__spotlight",
|
|
@@ -221,23 +220,23 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
221
220
|
{
|
|
222
221
|
default: M(() => [
|
|
223
222
|
c("button", {
|
|
224
|
-
id: `step-${o}-${
|
|
223
|
+
id: `step-${o}-${k(i)}`,
|
|
225
224
|
class: "m-accordion__header",
|
|
226
|
-
"aria-controls": `step-${o}-${
|
|
225
|
+
"aria-controls": `step-${o}-${k(i)}`,
|
|
227
226
|
"aria-expanded": u(o),
|
|
228
|
-
onClick: (
|
|
227
|
+
onClick: (Z) => m(o)
|
|
229
228
|
}, [
|
|
230
229
|
h(e.$slots, `title-${o}`, {
|
|
231
230
|
isOpen: u(o)
|
|
232
231
|
}, void 0, !0),
|
|
233
|
-
S(
|
|
232
|
+
S(k(U), {
|
|
234
233
|
class: $(["header-icon", { "--rotate": u(o) }])
|
|
235
234
|
}, null, 8, ["class"])
|
|
236
|
-
], 8,
|
|
237
|
-
S(
|
|
235
|
+
], 8, X),
|
|
236
|
+
S(K, {
|
|
238
237
|
"animation-duration": "300ms",
|
|
239
238
|
"model-value": u(o),
|
|
240
|
-
"aria-labelledby": `step-${o}-${
|
|
239
|
+
"aria-labelledby": `step-${o}-${k(i)}`
|
|
241
240
|
}, {
|
|
242
241
|
default: M(() => [
|
|
243
242
|
c(
|
|
@@ -272,7 +271,7 @@ const H = { class: "inner" }, W = /* @__PURE__ */ k({
|
|
|
272
271
|
))
|
|
273
272
|
]));
|
|
274
273
|
}
|
|
275
|
-
}),
|
|
274
|
+
}), te = /* @__PURE__ */ C(Y, [["__scopeId", "data-v-052b6500"]]);
|
|
276
275
|
export {
|
|
277
|
-
|
|
276
|
+
te as default
|
|
278
277
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as v, useCssVars as
|
|
2
|
-
import './assets/MazAnimatedCounter.css';const
|
|
1
|
+
import { defineComponent as v, useCssVars as x, useSlots as _, computed as l, ref as h, watch as C, openBlock as d, createElementBlock as p, normalizeClass as $, createElementVNode as b, renderSlot as f, createTextVNode as o, toDisplayString as a, createCommentVNode as k } from "vue";
|
|
2
|
+
import './assets/MazAnimatedCounter.css';const y = { class: "maz-sr-only" }, z = {
|
|
3
3
|
key: 0,
|
|
4
4
|
class: "m-animated-counter__fix"
|
|
5
|
-
},
|
|
5
|
+
}, S = /* @__PURE__ */ v({
|
|
6
6
|
__name: "MazAnimatedCounter",
|
|
7
7
|
props: {
|
|
8
8
|
count: {},
|
|
@@ -11,11 +11,11 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
11
11
|
suffix: { default: void 0 }
|
|
12
12
|
},
|
|
13
13
|
setup(n) {
|
|
14
|
-
|
|
15
|
-
"7cf84c3b":
|
|
14
|
+
x((e) => ({
|
|
15
|
+
"7cf84c3b": m.value,
|
|
16
16
|
a2b7049a: e.count
|
|
17
17
|
}));
|
|
18
|
-
const t = n, s =
|
|
18
|
+
const t = n, s = _(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), i = h(!0);
|
|
19
19
|
C(
|
|
20
20
|
() => t.count,
|
|
21
21
|
(e, c) => {
|
|
@@ -24,8 +24,8 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
24
24
|
}, 100));
|
|
25
25
|
}
|
|
26
26
|
);
|
|
27
|
-
const
|
|
28
|
-
return (e, c) => (
|
|
27
|
+
const m = l(() => `${t.duration}ms`);
|
|
28
|
+
return (e, c) => (d(), p(
|
|
29
29
|
"span",
|
|
30
30
|
{
|
|
31
31
|
class: $(["m-animated-counter", {
|
|
@@ -35,7 +35,7 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
35
35
|
}])
|
|
36
36
|
},
|
|
37
37
|
[
|
|
38
|
-
|
|
38
|
+
b("span", y, [
|
|
39
39
|
f(e.$slots, "prefix", {}, () => [
|
|
40
40
|
o(
|
|
41
41
|
a(e.prefix),
|
|
@@ -56,8 +56,7 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
56
56
|
)
|
|
57
57
|
], !0)
|
|
58
58
|
]),
|
|
59
|
-
r.value || u.value ? (
|
|
60
|
-
d(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
59
|
+
r.value || u.value ? (d(), p("span", z, [
|
|
61
60
|
f(e.$slots, "prefix", {}, () => [
|
|
62
61
|
o(
|
|
63
62
|
a(e.prefix),
|
|
@@ -65,7 +64,6 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
65
64
|
/* TEXT */
|
|
66
65
|
)
|
|
67
66
|
], !0),
|
|
68
|
-
d(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
69
67
|
f(e.$slots, "suffix", {}, () => [
|
|
70
68
|
o(
|
|
71
69
|
a(e.suffix),
|
|
@@ -73,18 +71,18 @@ import './assets/MazAnimatedCounter.css';const S = { class: "maz-sr-only" }, g =
|
|
|
73
71
|
/* TEXT */
|
|
74
72
|
)
|
|
75
73
|
], !0)
|
|
76
|
-
])) :
|
|
74
|
+
])) : k("v-if", !0)
|
|
77
75
|
],
|
|
78
76
|
2
|
|
79
77
|
/* CLASS */
|
|
80
78
|
));
|
|
81
79
|
}
|
|
82
|
-
}),
|
|
80
|
+
}), V = (n, t) => {
|
|
83
81
|
const s = n.__vccOpts || n;
|
|
84
82
|
for (const [r, u] of t)
|
|
85
83
|
s[r] = u;
|
|
86
84
|
return s;
|
|
87
|
-
},
|
|
85
|
+
}, M = /* @__PURE__ */ V(S, [["__scopeId", "data-v-95ad1bb8"]]);
|
|
88
86
|
export {
|
|
89
|
-
|
|
87
|
+
M as default
|
|
90
88
|
};
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
package/components/MazChart.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Chart as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as l, defineAsyncComponent as d, openBlock as m, createBlock as y, resolveDynamicComponent as f, unref as g, normalizeProps as b, guardReactiveProps as h } from "vue";
|
|
2
|
+
import { Chart as C, CategoryScale as S, LinearScale as _, Title as A, Tooltip as B, Legend as P, BarElement as E, ArcElement as L, PointElement as v, LineElement as j } from "chart.js";
|
|
3
|
+
const w = /* @__PURE__ */ l({
|
|
4
4
|
__name: "MazChart",
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
@@ -50,58 +50,49 @@ const D = /* @__PURE__ */ d({
|
|
|
50
50
|
default: void 0
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
|
-
setup(
|
|
54
|
-
const e =
|
|
55
|
-
|
|
53
|
+
setup(a) {
|
|
54
|
+
const e = a;
|
|
55
|
+
C.register(
|
|
56
|
+
S,
|
|
57
|
+
_,
|
|
56
58
|
A,
|
|
57
|
-
|
|
59
|
+
B,
|
|
58
60
|
P,
|
|
59
|
-
|
|
61
|
+
E,
|
|
60
62
|
L,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
j,
|
|
64
|
-
q
|
|
63
|
+
v,
|
|
64
|
+
j
|
|
65
65
|
);
|
|
66
|
-
const
|
|
67
|
-
const { Bar: t, Bubble: r, Doughnut:
|
|
66
|
+
const n = d(async () => {
|
|
67
|
+
const { Bar: t, Bubble: r, Doughnut: o, Line: c, Pie: u, PolarArea: p, Radar: i, Scatter: s } = await import("vue-chartjs");
|
|
68
68
|
switch (e.type) {
|
|
69
69
|
case "bar":
|
|
70
70
|
return t;
|
|
71
71
|
case "line":
|
|
72
|
-
return
|
|
72
|
+
return c;
|
|
73
73
|
case "scatter":
|
|
74
74
|
return s;
|
|
75
75
|
case "bubble":
|
|
76
76
|
return r;
|
|
77
77
|
case "pie":
|
|
78
|
-
return
|
|
78
|
+
return u;
|
|
79
79
|
case "doughnut":
|
|
80
|
-
return
|
|
80
|
+
return o;
|
|
81
81
|
case "polarArea":
|
|
82
82
|
return p;
|
|
83
83
|
case "radar":
|
|
84
84
|
return i;
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
|
-
return (t, r) => (
|
|
88
|
-
f,
|
|
87
|
+
return (t, r) => (m(), y(
|
|
88
|
+
f(g(n)),
|
|
89
|
+
b(h(e)),
|
|
89
90
|
null,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
(a(), b(
|
|
93
|
-
C(h(o)),
|
|
94
|
-
B(S(e)),
|
|
95
|
-
null,
|
|
96
|
-
16
|
|
97
|
-
/* FULL_PROPS */
|
|
98
|
-
))
|
|
99
|
-
],
|
|
100
|
-
2112
|
|
101
|
-
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
91
|
+
16
|
|
92
|
+
/* FULL_PROPS */
|
|
102
93
|
));
|
|
103
94
|
}
|
|
104
95
|
});
|
|
105
96
|
export {
|
|
106
|
-
|
|
97
|
+
w as default
|
|
107
98
|
};
|