maz-ui 3.40.3 → 3.41.0
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 +4 -4
- package/components/MazAnimatedCounter.d.ts +75 -0
- package/components/MazAnimatedCounter.mjs +91 -0
- package/components/MazBottomSheet.mjs +1 -1
- package/components/MazBtn.mjs +1 -1
- package/components/MazCard.mjs +1 -1
- package/components/MazCardSpotlight.d.ts +2 -2
- package/components/MazCardSpotlight.mjs +11 -11
- package/components/MazCarousel.mjs +1 -1
- package/components/MazCircularProgressBar.d.ts +114 -0
- package/components/MazCircularProgressBar.mjs +220 -0
- package/components/MazDialog.mjs +1 -1
- package/components/MazDialogPromise.mjs +1 -1
- package/components/MazDrawer.mjs +1 -1
- package/components/MazDropdown.mjs +1 -1
- package/components/MazInput.mjs +1 -1
- package/components/MazInputNumber.mjs +1 -1
- package/components/MazInputPrice.mjs +1 -1
- package/components/MazInputTags.mjs +1 -1
- package/components/MazPagination.mjs +1 -1
- package/components/MazPhoneNumberInput.mjs +1 -1
- package/components/MazPicker.mjs +1 -1
- package/components/MazSelect.mjs +1 -1
- package/components/MazTable.mjs +1 -1
- package/components/assets/MazAccordion.css +1 -1
- package/components/assets/MazAnimatedCounter.css +1 -0
- package/components/assets/MazBtn.css +1 -1
- package/components/assets/MazCardSpotlight.css +1 -1
- package/components/assets/MazCircularProgressBar.css +1 -0
- package/components/assets/MazInputNumber.css +1 -1
- package/components/assets/MazInputTags.css +1 -1
- package/components/assets/MazPagination.css +1 -1
- package/components/assets/MazTable.css +1 -1
- package/components/chunks/{MazBottomSheet-BuBc8C9L.mjs → MazBottomSheet-CIlIdn-2.mjs} +1 -1
- package/components/chunks/{MazBtn-CjKivGUG.mjs → MazBtn-78ToUjeK.mjs} +40 -40
- package/components/chunks/MazBtn-BKtYocJV.mjs +151 -0
- package/components/chunks/{MazBtn-IBS93Vda.mjs → MazBtn-BydIwD1J.mjs} +3 -3
- package/components/chunks/MazBtn-Bz4-bhWf.mjs +151 -0
- package/components/chunks/{MazBtn-BBKOvmc0.mjs → MazBtn-CPyDRy19.mjs} +40 -40
- package/components/chunks/MazBtn-CauvhLv6.mjs +151 -0
- package/components/chunks/{MazBtn-Bhjz7DkY.mjs → MazBtn-Ccvl1ZWv.mjs} +3 -3
- package/components/chunks/MazBtn-DWDitOvL.mjs +151 -0
- package/components/chunks/{MazBtn-4I65a0tG.mjs → MazBtn-Da5Nh9ga.mjs} +40 -40
- package/components/chunks/{MazBtn-ZcEB5i12.mjs → MazBtn-Dnq16gKt.mjs} +40 -40
- package/components/chunks/MazBtn-Ng8Jql0R.mjs +151 -0
- package/components/chunks/MazBtn-_NGDIlQK.mjs +151 -0
- package/components/chunks/{MazCard-zP6XYYO8.mjs → MazCard-DCz1q6wT.mjs} +1 -1
- package/components/chunks/{MazCarousel-IzbBgBrr.mjs → MazCarousel-DZZilIAg.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CnQ4qPG4.mjs → MazCheckbox-C1O-MBZa.mjs} +1 -1
- package/components/chunks/{MazCheckbox-CylZNBvL.mjs → MazCheckbox-PgXh8RSO.mjs} +1 -1
- package/components/chunks/{MazDialog-DfykSNZV.mjs → MazDialog-wPf8YzO5.mjs} +1 -1
- package/components/chunks/{MazDialogPromise-DW7DF186.mjs → MazDialogPromise-C4xTbUi9.mjs} +2 -2
- package/components/chunks/{MazGallery-DK724Wxg.mjs → MazGallery-CaZnMqiM.mjs} +2 -2
- package/components/chunks/{MazIcon-DAuhmKoh.mjs → MazIcon-BfD79t7M.mjs} +1 -1
- package/components/chunks/{MazIcon-C0jJgPt6.mjs → MazIcon-DAWEYUs6.mjs} +1 -1
- package/components/chunks/{MazInput-CuNNbyX5.mjs → MazInput-BZBaDBjc.mjs} +1 -1
- package/components/chunks/{MazInputNumber-D9lhCaXw.mjs → MazInputNumber-DsSRD1TO.mjs} +83 -83
- package/components/chunks/{MazInputPrice-C5gaLIoj.mjs → MazInputPrice-BjI2ZK_A.mjs} +1 -1
- package/components/chunks/{MazInputTags-DHawCIaZ.mjs → MazInputTags-CUV1HRPI.mjs} +3 -3
- package/components/chunks/{MazPagination-B5x3ZUrk.mjs → MazPagination-CfLOeWuj.mjs} +22 -22
- package/components/chunks/{MazPhoneNumberInput-ChPzHftZ.mjs → MazPhoneNumberInput-CsBXHpCq.mjs} +2 -2
- package/components/chunks/{MazPicker-BVsSfMXU.mjs → MazPicker-_ndeWiCy.mjs} +2 -2
- package/components/chunks/{MazPickerCalendar-DVB8Rr9I.mjs → MazPickerCalendar-BXadlngJ.mjs} +3 -3
- package/components/chunks/{MazPickerHeader-bClHUr7z.mjs → MazPickerHeader-BpNxHXI2.mjs} +1 -1
- package/components/chunks/{MazPickerMonthSwitcher-12vPV_ek.mjs → MazPickerMonthSwitcher-BzEZ5x7j.mjs} +2 -2
- package/components/chunks/{MazPickerShortcuts-BcJpy3BQ.mjs → MazPickerShortcuts-BreMu-Sy.mjs} +2 -2
- package/components/chunks/{MazPickerTime-_IheJF21.mjs → MazPickerTime-Cc2hHJlp.mjs} +2 -2
- package/components/chunks/{MazPickerYearSwitcher-AG8UoA8w.mjs → MazPickerYearSwitcher-B2Dk5iso.mjs} +3 -3
- package/components/chunks/{MazSelect-v2Qz7qp9.mjs → MazSelect-CraB8U5x.mjs} +2 -2
- package/components/chunks/{MazSpinner-D14Qdl-q.mjs → MazSpinner-8VnYwZdB.mjs} +1 -1
- package/components/chunks/{MazSpinner-CZMyB5uT.mjs → MazSpinner-B_WP-2kr.mjs} +1 -1
- package/components/chunks/MazSpinner-BmOvvC7W.mjs +38 -0
- package/components/chunks/{MazSpinner-CeOzWwoA.mjs → MazSpinner-BtpIL60X.mjs} +1 -1
- package/components/chunks/MazSpinner-BxYAlebs.mjs +38 -0
- package/components/chunks/{MazSpinner-B9PIGTBM.mjs → MazSpinner-C-lFmcUR.mjs} +1 -1
- package/components/chunks/MazSpinner-CTm1URNC.mjs +38 -0
- package/components/chunks/{MazSpinner-CT-zwBmg.mjs → MazSpinner-CZBhl7ce.mjs} +1 -1
- package/components/chunks/{MazSpinner-BpD28_Nv.mjs → MazSpinner-DWts_Ogu.mjs} +1 -1
- package/components/chunks/MazSpinner-DYkIZhje.mjs +38 -0
- package/components/chunks/MazSpinner-DibP0zFm.mjs +38 -0
- package/components/chunks/MazSpinner-DkLBbDGC.mjs +38 -0
- package/components/chunks/MazSpinner-DpOv_AqU.mjs +38 -0
- package/components/chunks/{MazSpinner-CTOH4qIV.mjs → MazSpinner-Dt5ax5Hn.mjs} +1 -1
- package/components/chunks/{MazSpinner-BrRExSkV.mjs → MazSpinner-RodpKP96.mjs} +1 -1
- package/components/chunks/MazSpinner-bGMoZfcX.mjs +38 -0
- package/components/chunks/{MazTable-CjlSdLnh.mjs → MazTable-Cr4kGAth.mjs} +117 -117
- package/components/chunks/{MazTransitionExpand-BBkwCVdE.mjs → MazTransitionExpand-Bxl5ajH4.mjs} +1 -1
- package/components/index.d.ts +2 -0
- package/components/index.mjs +2 -0
- package/modules/assets/MazBtn.css +1 -1
- package/modules/chunks/{MazBtn-C3u6aAVE.cjs → MazBtn-CJkDV-lC.cjs} +3 -3
- package/{components/chunks/MazBtn-Ch56YVOw.mjs → modules/chunks/MazBtn-Dv9nwclG.mjs} +40 -40
- package/modules/chunks/{MazIcon-_eQBprV9.cjs → MazIcon-C8crlYdE.cjs} +1 -1
- package/modules/chunks/{MazIcon-8SXd9pCW.mjs → MazIcon-CRXUvqjd.mjs} +1 -1
- package/modules/chunks/{MazSpinner-BeST_Oa5.mjs → MazSpinner-AmAmgKgK.mjs} +1 -1
- package/modules/chunks/{MazSpinner-Box3DbCT.cjs → MazSpinner-C7r_jjn3.cjs} +1 -1
- package/modules/chunks/{index-C5Co4FGk.cjs → index-95nXhooW.cjs} +1 -1
- package/modules/chunks/{index-CU4cxgKq.mjs → index-B99VOYdM.mjs} +2 -2
- 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/MazAnimatedCounter.vue.d.ts +75 -0
- package/types/components/MazCardSpotlight.vue.d.ts +2 -2
- package/types/components/MazCircularProgressBar.vue.d.ts +114 -0
- package/types/components/index.d.ts +2 -0
- package/components/chunks/MazBtn-DAvgjToE.mjs +0 -151
- package/components/chunks/MazBtn-DfXeBnFe.mjs +0 -151
- package/components/chunks/MazBtn-Dyw1WZgU.mjs +0 -151
- package/components/chunks/MazBtn-SJl9Kugs.mjs +0 -151
- package/components/chunks/MazBtn-peKwI3PB.mjs +0 -151
- package/components/chunks/MazSpinner-CeUPefEl.mjs +0 -38
- package/components/chunks/MazSpinner-Cj16ZXPC.mjs +0 -38
- package/components/chunks/MazSpinner-DJyu0bjt.mjs +0 -38
- package/components/chunks/MazSpinner-DcsAehl9.mjs +0 -38
- package/components/chunks/MazSpinner-DeiRyoct.mjs +0 -38
- package/components/chunks/MazSpinner-DmsRmaiI.mjs +0 -38
- package/components/chunks/MazSpinner-ISxUR3Y1.mjs +0 -38
- package/components/chunks/MazSpinner-afth4SV3.mjs +0 -38
- package/modules/chunks/MazBtn-kEp7hZt8.mjs +0 -151
|
@@ -50,14 +50,14 @@ const j = /* @__PURE__ */ z({
|
|
|
50
50
|
color: { default: "primary" },
|
|
51
51
|
noElevation: { type: Boolean, default: !1 },
|
|
52
52
|
padding: { type: Boolean, default: !0 },
|
|
53
|
-
contentClass: { default:
|
|
53
|
+
contentClass: { default: void 0 },
|
|
54
54
|
contentStyle: { default: void 0 },
|
|
55
55
|
innerOpacity: { default: 0.95 }
|
|
56
56
|
},
|
|
57
57
|
setup(r) {
|
|
58
58
|
B((i) => ({
|
|
59
|
-
"
|
|
60
|
-
|
|
59
|
+
"474a7292": i.innerOpacity,
|
|
60
|
+
f69a3cbc: s.value
|
|
61
61
|
}));
|
|
62
62
|
const l = r, n = y(), d = y(), t = y(!1);
|
|
63
63
|
function a({ clientX: i, clientY: c }) {
|
|
@@ -134,7 +134,7 @@ const j = /* @__PURE__ */ z({
|
|
|
134
134
|
/* CLASS, STYLE */
|
|
135
135
|
));
|
|
136
136
|
}
|
|
137
|
-
}), G = /* @__PURE__ */ E(F, [["__scopeId", "data-v-
|
|
137
|
+
}), G = /* @__PURE__ */ E(F, [["__scopeId", "data-v-14299ed5"]]), P = {
|
|
138
138
|
xmlns: "http://www.w3.org/2000/svg",
|
|
139
139
|
width: "1em",
|
|
140
140
|
height: "1em",
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
2
|
+
/**
|
|
3
|
+
* The number to animate
|
|
4
|
+
*/
|
|
5
|
+
count: number;
|
|
6
|
+
/**
|
|
7
|
+
* Duration of the animation in milliseconds
|
|
8
|
+
* @default 1000
|
|
9
|
+
*/
|
|
10
|
+
duration?: number | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* Suffix to display next to the number
|
|
13
|
+
*/
|
|
14
|
+
prefix?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* Suffix to display next to the number
|
|
17
|
+
*/
|
|
18
|
+
suffix?: string | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
duration: number;
|
|
21
|
+
prefix: undefined;
|
|
22
|
+
suffix: undefined;
|
|
23
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
24
|
+
/**
|
|
25
|
+
* The number to animate
|
|
26
|
+
*/
|
|
27
|
+
count: number;
|
|
28
|
+
/**
|
|
29
|
+
* Duration of the animation in milliseconds
|
|
30
|
+
* @default 1000
|
|
31
|
+
*/
|
|
32
|
+
duration?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Suffix to display next to the number
|
|
35
|
+
*/
|
|
36
|
+
prefix?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Suffix to display next to the number
|
|
39
|
+
*/
|
|
40
|
+
suffix?: string | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
duration: number;
|
|
43
|
+
prefix: undefined;
|
|
44
|
+
suffix: undefined;
|
|
45
|
+
}>>>, {
|
|
46
|
+
duration: number;
|
|
47
|
+
prefix: string;
|
|
48
|
+
suffix: string;
|
|
49
|
+
}, {}>, {
|
|
50
|
+
prefix?(_: {}): any;
|
|
51
|
+
suffix?(_: {}): any;
|
|
52
|
+
}>;
|
|
53
|
+
export default _default;
|
|
54
|
+
type __VLS_WithDefaults<P, D> = {
|
|
55
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
56
|
+
default: D[K];
|
|
57
|
+
}> : P[K];
|
|
58
|
+
};
|
|
59
|
+
type __VLS_Prettify<T> = {
|
|
60
|
+
[K in keyof T]: T[K];
|
|
61
|
+
} & {};
|
|
62
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
63
|
+
new (): {
|
|
64
|
+
$slots: S;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
68
|
+
type __VLS_TypePropsToOption<T> = {
|
|
69
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
70
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
71
|
+
} : {
|
|
72
|
+
type: import('vue').PropType<T[K]>;
|
|
73
|
+
required: true;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import './assets/MazAnimatedCounter.css';
|
|
2
|
+
import { defineComponent as v, useCssVars as _, useSlots as h, computed as l, ref as C, watch as $, openBlock as p, createElementBlock as m, normalizeClass as A, createElementVNode as S, renderSlot as f, createTextVNode as o, toDisplayString as a, createCommentVNode as d } from "vue";
|
|
3
|
+
const b = { class: "maz-sr-only" }, g = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-animated-counter__fix"
|
|
6
|
+
}, k = /* @__PURE__ */ v({
|
|
7
|
+
__name: "MazAnimatedCounter",
|
|
8
|
+
props: {
|
|
9
|
+
count: {},
|
|
10
|
+
duration: { default: 1e3 },
|
|
11
|
+
prefix: { default: void 0 },
|
|
12
|
+
suffix: { default: void 0 }
|
|
13
|
+
},
|
|
14
|
+
setup(n) {
|
|
15
|
+
_((e) => ({
|
|
16
|
+
"0b7109b2": x.value,
|
|
17
|
+
e965ff72: e.count
|
|
18
|
+
}));
|
|
19
|
+
const t = n, s = h(), r = l(() => !!t.prefix || !!s.prefix), u = l(() => !!t.suffix || !!s.suffix), i = C(!0);
|
|
20
|
+
$(
|
|
21
|
+
() => t.count,
|
|
22
|
+
(e, c) => {
|
|
23
|
+
e !== c && (i.value = !1, setTimeout(() => {
|
|
24
|
+
i.value = !0;
|
|
25
|
+
}, 100));
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const x = l(() => `${t.duration}ms`);
|
|
29
|
+
return (e, c) => (p(), m(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
class: A(["m-animated-counter", {
|
|
33
|
+
"--animated": i.value,
|
|
34
|
+
"--prefixed": r.value,
|
|
35
|
+
"--suffixed": u.value
|
|
36
|
+
}])
|
|
37
|
+
},
|
|
38
|
+
[
|
|
39
|
+
S("span", b, [
|
|
40
|
+
f(e.$slots, "prefix", {}, () => [
|
|
41
|
+
o(
|
|
42
|
+
a(e.prefix),
|
|
43
|
+
1
|
|
44
|
+
/* TEXT */
|
|
45
|
+
)
|
|
46
|
+
], !0),
|
|
47
|
+
o(
|
|
48
|
+
" " + a(e.count) + " ",
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
),
|
|
52
|
+
f(e.$slots, "suffix", {}, () => [
|
|
53
|
+
o(
|
|
54
|
+
a(e.suffix),
|
|
55
|
+
1
|
|
56
|
+
/* TEXT */
|
|
57
|
+
)
|
|
58
|
+
], !0)
|
|
59
|
+
]),
|
|
60
|
+
r.value || u.value ? (p(), m("span", g, [
|
|
61
|
+
d(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
62
|
+
f(e.$slots, "prefix", {}, () => [
|
|
63
|
+
o(
|
|
64
|
+
a(e.prefix),
|
|
65
|
+
1
|
|
66
|
+
/* TEXT */
|
|
67
|
+
)
|
|
68
|
+
], !0),
|
|
69
|
+
d(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
70
|
+
f(e.$slots, "suffix", {}, () => [
|
|
71
|
+
o(
|
|
72
|
+
a(e.suffix),
|
|
73
|
+
1
|
|
74
|
+
/* TEXT */
|
|
75
|
+
)
|
|
76
|
+
], !0)
|
|
77
|
+
])) : d("v-if", !0)
|
|
78
|
+
],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
}), y = (n, t) => {
|
|
84
|
+
const s = n.__vccOpts || n;
|
|
85
|
+
for (const [r, u] of t)
|
|
86
|
+
s[r] = u;
|
|
87
|
+
return s;
|
|
88
|
+
}, V = /* @__PURE__ */ y(k, [["__scopeId", "data-v-ca68c5dd"]]);
|
|
89
|
+
export {
|
|
90
|
+
V as default
|
|
91
|
+
};
|
package/components/MazBtn.mjs
CHANGED
package/components/MazCard.mjs
CHANGED
|
@@ -37,14 +37,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
37
37
|
noElevation: boolean;
|
|
38
38
|
color: string;
|
|
39
39
|
padding: boolean;
|
|
40
|
-
contentClass:
|
|
40
|
+
contentClass: undefined;
|
|
41
41
|
contentStyle: undefined;
|
|
42
42
|
innerOpacity: number;
|
|
43
43
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
44
44
|
noElevation: boolean;
|
|
45
45
|
color: string;
|
|
46
46
|
padding: boolean;
|
|
47
|
-
contentClass:
|
|
47
|
+
contentClass: undefined;
|
|
48
48
|
contentStyle: undefined;
|
|
49
49
|
innerOpacity: number;
|
|
50
50
|
}>>>, {
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import './assets/MazCardSpotlight.css';
|
|
2
|
-
import { defineComponent as g, useCssVars as k, ref as c, computed as
|
|
2
|
+
import { defineComponent as g, useCssVars as k, ref as c, computed as m, onMounted as E, onUnmounted as w, openBlock as z, createElementBlock as B, normalizeClass as b, normalizeStyle as h, createElementVNode as i, renderSlot as S, withDirectives as y, vShow as C } from "vue";
|
|
3
3
|
const $ = { class: "inner" }, M = /* @__PURE__ */ g({
|
|
4
4
|
__name: "MazCardSpotlight",
|
|
5
5
|
props: {
|
|
6
6
|
color: { default: "primary" },
|
|
7
7
|
noElevation: { type: Boolean, default: !1 },
|
|
8
8
|
padding: { type: Boolean, default: !0 },
|
|
9
|
-
contentClass: { default:
|
|
9
|
+
contentClass: { default: void 0 },
|
|
10
10
|
contentStyle: { default: void 0 },
|
|
11
11
|
innerOpacity: { default: 0.95 }
|
|
12
12
|
},
|
|
13
13
|
setup(l) {
|
|
14
14
|
k((e) => ({
|
|
15
|
-
"
|
|
16
|
-
|
|
15
|
+
"474a7292": e.innerOpacity,
|
|
16
|
+
f69a3cbc: u.value
|
|
17
17
|
}));
|
|
18
18
|
const n = l, o = c(), r = c(), t = c(!1);
|
|
19
19
|
function d({ clientX: e, clientY: p }) {
|
|
20
|
-
var
|
|
20
|
+
var v, s, f;
|
|
21
21
|
t.value = !0;
|
|
22
|
-
const a = (
|
|
23
|
-
a && ((
|
|
22
|
+
const a = (v = r.value) == null ? void 0 : v.getBoundingClientRect();
|
|
23
|
+
a && ((f = (s = o.value) == null ? void 0 : s.animate) == null || f.call(
|
|
24
24
|
s,
|
|
25
25
|
[
|
|
26
26
|
{
|
|
@@ -33,12 +33,12 @@ const $ = { class: "inner" }, M = /* @__PURE__ */ g({
|
|
|
33
33
|
}
|
|
34
34
|
));
|
|
35
35
|
}
|
|
36
|
-
const u =
|
|
36
|
+
const u = m(() => `var(--maz-color-${n.color}-alpha)`), _ = m(() => `var(--maz-color-${n.color}-alpha-20)`);
|
|
37
37
|
return E(() => {
|
|
38
38
|
window.addEventListener("mousemove", d);
|
|
39
|
-
}),
|
|
39
|
+
}), w(() => {
|
|
40
40
|
window.removeEventListener("mousemove", d);
|
|
41
|
-
}), (e, p) => (
|
|
41
|
+
}), (e, p) => (z(), B(
|
|
42
42
|
"div",
|
|
43
43
|
{
|
|
44
44
|
class: b(["m-card-spotlight", { "maz-elevation": !e.noElevation }]),
|
|
@@ -95,7 +95,7 @@ const $ = { class: "inner" }, M = /* @__PURE__ */ g({
|
|
|
95
95
|
for (const [r, t] of n)
|
|
96
96
|
o[r] = t;
|
|
97
97
|
return o;
|
|
98
|
-
}, L = /* @__PURE__ */ O(M, [["__scopeId", "data-v-
|
|
98
|
+
}, L = /* @__PURE__ */ O(M, [["__scopeId", "data-v-14299ed5"]]);
|
|
99
99
|
export {
|
|
100
100
|
L as default
|
|
101
101
|
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { type Color } from './types';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
3
|
+
/**
|
|
4
|
+
* The percentage value of the progress bar
|
|
5
|
+
*/
|
|
6
|
+
percentage: number;
|
|
7
|
+
/**
|
|
8
|
+
* The size of the progress bar
|
|
9
|
+
* @default '10em'
|
|
10
|
+
*/
|
|
11
|
+
size?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Duration of the animation in milliseconds
|
|
14
|
+
* @default 1000
|
|
15
|
+
*/
|
|
16
|
+
duration?: number | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* The color of the progress bar
|
|
19
|
+
*/
|
|
20
|
+
color?: Color | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Auto color based on the count (danger, warning, success)
|
|
23
|
+
* @default false
|
|
24
|
+
*/
|
|
25
|
+
autoColor?: boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Suffix to display next to the number
|
|
28
|
+
*/
|
|
29
|
+
prefix?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Suffix to display next to the number
|
|
32
|
+
*/
|
|
33
|
+
suffix?: string | undefined;
|
|
34
|
+
}>, {
|
|
35
|
+
percentage: number;
|
|
36
|
+
size: string;
|
|
37
|
+
duration: number;
|
|
38
|
+
color: undefined;
|
|
39
|
+
prefix: undefined;
|
|
40
|
+
suffix: undefined;
|
|
41
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<{
|
|
42
|
+
/**
|
|
43
|
+
* The percentage value of the progress bar
|
|
44
|
+
*/
|
|
45
|
+
percentage: number;
|
|
46
|
+
/**
|
|
47
|
+
* The size of the progress bar
|
|
48
|
+
* @default '10em'
|
|
49
|
+
*/
|
|
50
|
+
size?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Duration of the animation in milliseconds
|
|
53
|
+
* @default 1000
|
|
54
|
+
*/
|
|
55
|
+
duration?: number | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The color of the progress bar
|
|
58
|
+
*/
|
|
59
|
+
color?: Color | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Auto color based on the count (danger, warning, success)
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
autoColor?: boolean | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* Suffix to display next to the number
|
|
67
|
+
*/
|
|
68
|
+
prefix?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Suffix to display next to the number
|
|
71
|
+
*/
|
|
72
|
+
suffix?: string | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
percentage: number;
|
|
75
|
+
size: string;
|
|
76
|
+
duration: number;
|
|
77
|
+
color: undefined;
|
|
78
|
+
prefix: undefined;
|
|
79
|
+
suffix: undefined;
|
|
80
|
+
}>>>, {
|
|
81
|
+
size: string;
|
|
82
|
+
color: Color;
|
|
83
|
+
duration: number;
|
|
84
|
+
prefix: string;
|
|
85
|
+
suffix: string;
|
|
86
|
+
percentage: number;
|
|
87
|
+
}, {}>, {
|
|
88
|
+
default?(_: {}): any;
|
|
89
|
+
prefix?(_: {}): any;
|
|
90
|
+
suffix?(_: {}): any;
|
|
91
|
+
}>;
|
|
92
|
+
export default _default;
|
|
93
|
+
type __VLS_WithDefaults<P, D> = {
|
|
94
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
95
|
+
default: D[K];
|
|
96
|
+
}> : P[K];
|
|
97
|
+
};
|
|
98
|
+
type __VLS_Prettify<T> = {
|
|
99
|
+
[K in keyof T]: T[K];
|
|
100
|
+
} & {};
|
|
101
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
102
|
+
new (): {
|
|
103
|
+
$slots: S;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
107
|
+
type __VLS_TypePropsToOption<T> = {
|
|
108
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
109
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
110
|
+
} : {
|
|
111
|
+
type: import('vue').PropType<T[K]>;
|
|
112
|
+
required: true;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import './assets/MazCircularProgressBar.css';
|
|
2
|
+
import { defineComponent as $, useCssVars as y, useSlots as k, computed as r, ref as w, watch as b, openBlock as p, createElementBlock as v, normalizeClass as B, createElementVNode as n, renderSlot as l, createTextVNode as u, toDisplayString as i, createCommentVNode as m, getCurrentInstance as P, normalizeStyle as A, unref as g, createBlock as M, createSlots as I, withCtx as _ } from "vue";
|
|
3
|
+
const N = { class: "maz-sr-only" }, V = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "m-animated-counter__fix"
|
|
6
|
+
}, D = /* @__PURE__ */ $({
|
|
7
|
+
__name: "MazAnimatedCounter",
|
|
8
|
+
props: {
|
|
9
|
+
count: {},
|
|
10
|
+
duration: { default: 1e3 },
|
|
11
|
+
prefix: { default: void 0 },
|
|
12
|
+
suffix: { default: void 0 }
|
|
13
|
+
},
|
|
14
|
+
setup(a) {
|
|
15
|
+
y((t) => ({
|
|
16
|
+
"0b7109b2": h.value,
|
|
17
|
+
e965ff72: t.count
|
|
18
|
+
}));
|
|
19
|
+
const e = a, o = k(), f = r(() => !!e.prefix || !!o.prefix), c = r(() => !!e.suffix || !!o.suffix), d = w(!0);
|
|
20
|
+
b(
|
|
21
|
+
() => e.count,
|
|
22
|
+
(t, x) => {
|
|
23
|
+
t !== x && (d.value = !1, setTimeout(() => {
|
|
24
|
+
d.value = !0;
|
|
25
|
+
}, 100));
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
const h = r(() => `${e.duration}ms`);
|
|
29
|
+
return (t, x) => (p(), v(
|
|
30
|
+
"span",
|
|
31
|
+
{
|
|
32
|
+
class: B(["m-animated-counter", {
|
|
33
|
+
"--animated": d.value,
|
|
34
|
+
"--prefixed": f.value,
|
|
35
|
+
"--suffixed": c.value
|
|
36
|
+
}])
|
|
37
|
+
},
|
|
38
|
+
[
|
|
39
|
+
n("span", N, [
|
|
40
|
+
l(t.$slots, "prefix", {}, () => [
|
|
41
|
+
u(
|
|
42
|
+
i(t.prefix),
|
|
43
|
+
1
|
|
44
|
+
/* TEXT */
|
|
45
|
+
)
|
|
46
|
+
], !0),
|
|
47
|
+
u(
|
|
48
|
+
" " + i(t.count) + " ",
|
|
49
|
+
1
|
|
50
|
+
/* TEXT */
|
|
51
|
+
),
|
|
52
|
+
l(t.$slots, "suffix", {}, () => [
|
|
53
|
+
u(
|
|
54
|
+
i(t.suffix),
|
|
55
|
+
1
|
|
56
|
+
/* TEXT */
|
|
57
|
+
)
|
|
58
|
+
], !0)
|
|
59
|
+
]),
|
|
60
|
+
f.value || c.value ? (p(), v("span", V, [
|
|
61
|
+
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
62
|
+
l(t.$slots, "prefix", {}, () => [
|
|
63
|
+
u(
|
|
64
|
+
i(t.prefix),
|
|
65
|
+
1
|
|
66
|
+
/* TEXT */
|
|
67
|
+
)
|
|
68
|
+
], !0),
|
|
69
|
+
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
70
|
+
l(t.$slots, "suffix", {}, () => [
|
|
71
|
+
u(
|
|
72
|
+
i(t.suffix),
|
|
73
|
+
1
|
|
74
|
+
/* TEXT */
|
|
75
|
+
)
|
|
76
|
+
], !0)
|
|
77
|
+
])) : m("v-if", !0)
|
|
78
|
+
],
|
|
79
|
+
2
|
|
80
|
+
/* CLASS */
|
|
81
|
+
));
|
|
82
|
+
}
|
|
83
|
+
}), z = (a, e) => {
|
|
84
|
+
const o = a.__vccOpts || a;
|
|
85
|
+
for (const [f, c] of e)
|
|
86
|
+
o[f] = c;
|
|
87
|
+
return o;
|
|
88
|
+
}, E = /* @__PURE__ */ z(D, [["__scopeId", "data-v-ca68c5dd"]]);
|
|
89
|
+
function T({
|
|
90
|
+
componentName: a,
|
|
91
|
+
providedId: e
|
|
92
|
+
}) {
|
|
93
|
+
const o = P();
|
|
94
|
+
return r(() => e ?? `${a}-${o == null ? void 0 : o.uid}`);
|
|
95
|
+
}
|
|
96
|
+
const j = { class: "outer" }, q = { class: "inner" }, G = { key: 0 }, O = {
|
|
97
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
98
|
+
height: "1em",
|
|
99
|
+
width: "1em",
|
|
100
|
+
viewBox: "0 0 100 100"
|
|
101
|
+
}, R = ["id"], U = ["stop-color"], F = ["stop-color"], H = ["stroke"], J = /* @__PURE__ */ $({
|
|
102
|
+
__name: "MazCircularProgressBar",
|
|
103
|
+
props: {
|
|
104
|
+
percentage: { default: 0 },
|
|
105
|
+
size: { default: "10em" },
|
|
106
|
+
duration: { default: 1e3 },
|
|
107
|
+
color: { default: void 0 },
|
|
108
|
+
autoColor: { type: Boolean },
|
|
109
|
+
prefix: { default: void 0 },
|
|
110
|
+
suffix: { default: void 0 }
|
|
111
|
+
},
|
|
112
|
+
setup(a) {
|
|
113
|
+
y((s) => ({
|
|
114
|
+
"2ff460f7": C.value,
|
|
115
|
+
"181ba074": S.value
|
|
116
|
+
}));
|
|
117
|
+
const e = a, o = k(), f = r(() => !!e.prefix || !!o.prefix), c = r(() => !!e.suffix || !!o.suffix), d = T({
|
|
118
|
+
componentName: "MazCircularProgressBar"
|
|
119
|
+
}), h = r(() => e.percentage > 100 ? 100 : e.percentage <= 0 ? 0.5 : e.percentage), t = r(
|
|
120
|
+
() => e.autoColor ? x(e.percentage) : e.color
|
|
121
|
+
);
|
|
122
|
+
function x(s) {
|
|
123
|
+
return s < 50 || s > 100 ? "danger" : s < 100 ? "warning" : "success";
|
|
124
|
+
}
|
|
125
|
+
const C = r(() => `${e.duration}ms`), S = r(() => Math.round(290 - 290 * (h.value / 100)));
|
|
126
|
+
return (s, K) => (p(), v(
|
|
127
|
+
"div",
|
|
128
|
+
{
|
|
129
|
+
class: "m-circular-progress-bar",
|
|
130
|
+
style: A([
|
|
131
|
+
{
|
|
132
|
+
fontSize: s.size
|
|
133
|
+
}
|
|
134
|
+
])
|
|
135
|
+
},
|
|
136
|
+
[
|
|
137
|
+
n("div", j, [
|
|
138
|
+
n("div", q, [
|
|
139
|
+
g(o).default ? (p(), v("span", G, [
|
|
140
|
+
m(" @slot Default slot - Replace the percaentage value "),
|
|
141
|
+
l(s.$slots, "default", {}, void 0, !0)
|
|
142
|
+
])) : (p(), M(E, {
|
|
143
|
+
key: 1,
|
|
144
|
+
count: s.percentage,
|
|
145
|
+
duration: s.duration
|
|
146
|
+
}, I({
|
|
147
|
+
_: 2
|
|
148
|
+
/* DYNAMIC */
|
|
149
|
+
}, [
|
|
150
|
+
f.value ? {
|
|
151
|
+
name: "prefix",
|
|
152
|
+
fn: _(() => [
|
|
153
|
+
m(' @slot Prefix slot - Add a prefix next to the number (e.g: "$") '),
|
|
154
|
+
l(s.$slots, "prefix", {}, () => [
|
|
155
|
+
u(
|
|
156
|
+
i(s.prefix),
|
|
157
|
+
1
|
|
158
|
+
/* TEXT */
|
|
159
|
+
)
|
|
160
|
+
], !0)
|
|
161
|
+
]),
|
|
162
|
+
key: "0"
|
|
163
|
+
} : void 0,
|
|
164
|
+
c.value ? {
|
|
165
|
+
name: "suffix",
|
|
166
|
+
fn: _(() => [
|
|
167
|
+
m(' @slot Suffix slot - Add a suffix next to the number (e.g: "%") '),
|
|
168
|
+
l(s.$slots, "suffix", {}, () => [
|
|
169
|
+
u(
|
|
170
|
+
i(s.suffix),
|
|
171
|
+
1
|
|
172
|
+
/* TEXT */
|
|
173
|
+
)
|
|
174
|
+
], !0)
|
|
175
|
+
]),
|
|
176
|
+
key: "1"
|
|
177
|
+
} : void 0
|
|
178
|
+
]), 1032, ["count", "duration"]))
|
|
179
|
+
])
|
|
180
|
+
]),
|
|
181
|
+
(p(), v("svg", O, [
|
|
182
|
+
n("defs", null, [
|
|
183
|
+
n("linearGradient", {
|
|
184
|
+
id: `${g(d)}-gradient`,
|
|
185
|
+
x1: "0",
|
|
186
|
+
x2: "0",
|
|
187
|
+
y1: "1",
|
|
188
|
+
y2: "0"
|
|
189
|
+
}, [
|
|
190
|
+
n("stop", {
|
|
191
|
+
offset: "0%",
|
|
192
|
+
"stop-color": t.value ? `var(--maz-color-${t.value}-400)` : "var(--maz-color-primary)"
|
|
193
|
+
}, null, 8, U),
|
|
194
|
+
n("stop", {
|
|
195
|
+
offset: "100%",
|
|
196
|
+
"stop-color": t.value ? `var(--maz-color-${t.value}-700)` : "var(--maz-color-secondary)"
|
|
197
|
+
}, null, 8, F)
|
|
198
|
+
], 8, R)
|
|
199
|
+
]),
|
|
200
|
+
n("circle", {
|
|
201
|
+
cx: "50",
|
|
202
|
+
cy: "50",
|
|
203
|
+
r: "46",
|
|
204
|
+
"stroke-width": "6",
|
|
205
|
+
"stroke-dasharray": "290",
|
|
206
|
+
"stroke-dashoffset": "290",
|
|
207
|
+
stroke: `url(#${g(d)}-gradient)`,
|
|
208
|
+
fill: "none",
|
|
209
|
+
"stroke-linecap": "round"
|
|
210
|
+
}, null, 8, H)
|
|
211
|
+
]))
|
|
212
|
+
],
|
|
213
|
+
4
|
|
214
|
+
/* STYLE */
|
|
215
|
+
));
|
|
216
|
+
}
|
|
217
|
+
}), Q = /* @__PURE__ */ z(J, [["__scopeId", "data-v-9b86a1a5"]]);
|
|
218
|
+
export {
|
|
219
|
+
Q as default
|
|
220
|
+
};
|
package/components/MazDialog.mjs
CHANGED
package/components/MazDrawer.mjs
CHANGED
|
@@ -126,7 +126,7 @@ const V = "--backdrop-present", U = /* @__PURE__ */ h({
|
|
|
126
126
|
},
|
|
127
127
|
emits: ["before-close", "open", "close", "update:model-value"],
|
|
128
128
|
setup(C) {
|
|
129
|
-
const c = z(() => import("./chunks/MazBtn-
|
|
129
|
+
const c = z(() => import("./chunks/MazBtn-BydIwD1J.mjs").then((e) => e.M)), m = z(() => import("./chunks/x-mark-BP8zWe_C.mjs"));
|
|
130
130
|
return (e, n) => (d(), D(U, {
|
|
131
131
|
"backdrop-class": ["m-drawer", `--${e.variant}`, e.backdropClass],
|
|
132
132
|
style: F({
|
|
@@ -83,7 +83,7 @@ const de = {
|
|
|
83
83
|
"update:open"
|
|
84
84
|
],
|
|
85
85
|
setup(n, { emit: t }) {
|
|
86
|
-
const a = A(() => import("./chunks/MazBtn-
|
|
86
|
+
const a = A(() => import("./chunks/MazBtn-BydIwD1J.mjs").then((e) => e.M)), m = A(() => import("./chunks/chevron-down-CzMH-gFW.mjs")), s = n, g = t, p = ae({
|
|
87
87
|
componentName: "MazDropdown",
|
|
88
88
|
providedId: s.id
|
|
89
89
|
}), i = I(s.open), r = I();
|
package/components/MazInput.mjs
CHANGED