maz-ui 3.49.3 → 3.50.1
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/MazAnimatedCounter.d.ts +9 -1
- package/components/MazAnimatedCounter.mjs +82 -63
- package/components/MazAnimatedElement.d.ts +5 -0
- package/components/MazAnimatedElement.mjs +18 -19
- package/components/MazAnimatedText.d.ts +5 -0
- package/components/MazAnimatedText.mjs +57 -75
- package/components/MazCircularProgressBar.d.ts +20 -4
- package/components/MazCircularProgressBar.mjs +177 -134
- package/components/MazPicker.mjs +1 -1
- package/components/MazSlider.mjs +4 -4
- package/components/MazTable.mjs +1 -1
- package/components/MazTableCell.mjs +1 -1
- package/components/MazTableRow.mjs +1 -1
- package/components/assets/{MazAnimatedCounter.D9UJwqkf.css → MazAnimatedCounter.DTzaNX_Y.css} +1 -1
- package/components/assets/{MazAnimatedElement.XhNfpNyM.css → MazAnimatedElement.BkcmWrHr.css} +1 -1
- package/components/assets/MazAnimatedText.B91Kt1PP.css +1 -0
- package/components/assets/{MazCircularProgressBar.DYOxvMCy.css → MazCircularProgressBar.Cq-jEps6.css} +1 -1
- package/components/assets/{MazPicker.BlZ4a3b1.css → MazPicker.DMFpwla9.css} +1 -1
- package/components/assets/{MazSlider.CsKD3vKO.css → MazSlider.Dlk7nygF.css} +1 -1
- package/components/assets/MazTable.zJ2YXDrE.css +1 -0
- package/components/assets/{MazTableCell.DINPNnIA.css → MazTableCell.BKBZEOQb.css} +1 -1
- package/components/assets/{MazTableRow.CtlU4Bey.css → MazTableRow.CtZjgh-L.css} +1 -1
- package/components/chunks/{MazBtn.DmpYZZhK.mjs → MazBtn.B6UiTgcv.mjs} +2 -2
- package/components/chunks/{MazCheckbox.CFDDHjBj.mjs → MazCheckbox.CYeDQcMp.mjs} +1 -1
- package/components/chunks/{MazInput.B_V7iI9q.mjs → MazInput.CwPPyy_i.mjs} +2 -2
- package/components/chunks/{MazLoadingBar.J84kR8Ts.mjs → MazLoadingBar.LkmX0AHd.mjs} +1 -1
- package/components/chunks/MazPicker.SL-MdmD5.mjs +2752 -0
- package/components/chunks/{MazSelect.vuuMDnLv.mjs → MazSelect.CZ8-FJbx.mjs} +3 -3
- package/components/chunks/{MazSpinner.DQVV537L.mjs → MazSpinner.B2KPFXAm.mjs} +1 -1
- package/components/chunks/{MazSpinner.D9YU6PN7.mjs → MazSpinner.BabK9PkN.mjs} +1 -1
- package/components/chunks/{MazTable.Ch8nGfGk.mjs → MazTable.BtL5to1U.mjs} +41 -41
- package/components/chunks/{MazTableCell.JKCc-pLM.mjs → MazTableCell.CN6g3CD7.mjs} +1 -1
- package/components/chunks/{MazTableRow.Brc02APS.mjs → MazTableRow.BjoUmiPj.mjs} +1 -1
- package/components/chunks/{MazTableTitle.CwXDPRXA.mjs → MazTableTitle.Dh-2buat.mjs} +1 -1
- package/nuxt/index.json +1 -1
- package/package.json +1 -1
- package/types/components/MazAnimatedCounter.vue.d.ts +9 -1
- package/types/components/MazAnimatedElement.vue.d.ts +5 -0
- package/types/components/MazAnimatedText.vue.d.ts +5 -0
- package/types/components/MazCircularProgressBar.vue.d.ts +20 -4
- package/types/modules/helpers/index.d.ts +1 -1
- package/components/assets/MazAnimatedText.ztrJF5LY.css +0 -1
- package/components/assets/MazPickerMonthSwitcher.Bnp_FbY4.css +0 -1
- package/components/assets/MazPickerShortcuts.DxPdP3Ky.css +0 -1
- package/components/assets/MazPickerYearSwitcher.BTPNT2u1.css +0 -1
- package/components/assets/MazTable.CLzaJZ6_.css +0 -1
- package/components/chunks/MazPicker.z_H1w2TI.mjs +0 -2482
- package/components/chunks/MazPickerMonthSwitcher.D42-_FwL.mjs +0 -95
- package/components/chunks/MazPickerShortcuts.D1UfHxwB.mjs +0 -72
- package/components/chunks/MazPickerYearSwitcher.BfS0Lz92.mjs +0 -105
- package/components/chunks/x-mark.wyoa-ywi.mjs +0 -29
- /package/types/modules/helpers/{check-availability.d.ts → checkAvailability.d.ts} +0 -0
|
@@ -21,6 +21,11 @@ type __VLS_Props = {
|
|
|
21
21
|
* @default 100
|
|
22
22
|
*/
|
|
23
23
|
delay?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Play the animation only once
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
|
+
once?: boolean;
|
|
24
29
|
};
|
|
25
30
|
declare function __VLS_template(): {
|
|
26
31
|
attrs: Partial<{}>;
|
|
@@ -30,13 +35,16 @@ declare function __VLS_template(): {
|
|
|
30
35
|
suffix?(_: {}): any;
|
|
31
36
|
suffix?(_: {}): any;
|
|
32
37
|
};
|
|
33
|
-
refs: {
|
|
38
|
+
refs: {
|
|
39
|
+
elementRef: HTMLSpanElement;
|
|
40
|
+
};
|
|
34
41
|
rootEl: HTMLSpanElement;
|
|
35
42
|
};
|
|
36
43
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
44
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
38
45
|
delay: number;
|
|
39
46
|
duration: number;
|
|
47
|
+
once: boolean;
|
|
40
48
|
prefix: string;
|
|
41
49
|
suffix: string;
|
|
42
50
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLSpanElement>;
|
|
@@ -1,94 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazAnimatedCounter.
|
|
1
|
+
import { defineComponent as q, ref as y, onMounted as B, onBeforeUnmount as C, watch as T, openBlock as V, createElementBlock as $, createElementVNode as z, renderSlot as f, createTextVNode as u, toDisplayString as s } from "vue";
|
|
2
|
+
import './assets/MazAnimatedCounter.DTzaNX_Y.css';function A() {
|
|
3
3
|
return typeof document < "u";
|
|
4
4
|
}
|
|
5
|
-
const
|
|
5
|
+
const F = { class: "maz-sr-only" }, I = /* @__PURE__ */ q({
|
|
6
6
|
__name: "MazAnimatedCounter",
|
|
7
7
|
props: {
|
|
8
8
|
count: {},
|
|
9
9
|
duration: { default: 1e3 },
|
|
10
10
|
prefix: { default: void 0 },
|
|
11
11
|
suffix: { default: void 0 },
|
|
12
|
-
delay: { default: 100 }
|
|
12
|
+
delay: { default: 100 },
|
|
13
|
+
once: { type: Boolean, default: !0 }
|
|
13
14
|
},
|
|
14
|
-
setup(
|
|
15
|
-
const
|
|
16
|
-
function
|
|
17
|
-
return !
|
|
15
|
+
setup(i) {
|
|
16
|
+
const t = i, r = y(0), a = y(null);
|
|
17
|
+
function c() {
|
|
18
|
+
return !A() || !window.requestAnimationFrame ? (e) => (setTimeout(e, 1e3 / 60), 0) : window.requestAnimationFrame.bind(window);
|
|
18
19
|
}
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
if (!
|
|
22
|
-
|
|
20
|
+
function g(e, o, d, _) {
|
|
21
|
+
const m = c();
|
|
22
|
+
if (!A()) {
|
|
23
|
+
r.value = o;
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
|
|
29
|
-
e + (
|
|
30
|
-
),
|
|
26
|
+
r.value = e, setTimeout(() => {
|
|
27
|
+
const h = performance.now(), p = (x = performance.now()) => {
|
|
28
|
+
const M = x - h, v = Math.min(M / d, 1), k = (w) => w * (2 - w);
|
|
29
|
+
r.value = Math.round(
|
|
30
|
+
e + (o - e) * k(v)
|
|
31
|
+
), v < 1 && m(p);
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
-
},
|
|
33
|
+
m(p);
|
|
34
|
+
}, _);
|
|
34
35
|
}
|
|
35
|
-
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
function l(e, o) {
|
|
37
|
+
g(e, o, t.duration, t.delay);
|
|
38
|
+
}
|
|
39
|
+
let n = null;
|
|
40
|
+
return B(() => {
|
|
41
|
+
t.once || (n = new IntersectionObserver(([e]) => {
|
|
42
|
+
e.isIntersecting && (l(0, t.count), t.once && (n == null || n.unobserve(e.target)));
|
|
43
|
+
}), a.value && n.observe(a.value));
|
|
44
|
+
}), C(() => n == null ? void 0 : n.disconnect()), T(
|
|
45
|
+
() => t.count,
|
|
46
|
+
(e, o) => {
|
|
47
|
+
if (e === o)
|
|
39
48
|
return;
|
|
40
|
-
|
|
49
|
+
l(o ?? 0, e);
|
|
41
50
|
},
|
|
42
51
|
{ immediate: !0 }
|
|
43
|
-
), (e,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
52
|
+
), (e, o) => (V(), $(
|
|
53
|
+
"span",
|
|
54
|
+
{
|
|
55
|
+
ref_key: "elementRef",
|
|
56
|
+
ref: a,
|
|
57
|
+
class: "m-animated-counter m-reset-css"
|
|
58
|
+
},
|
|
59
|
+
[
|
|
60
|
+
z("span", F, [
|
|
61
|
+
f(e.$slots, "prefix", {}, () => [
|
|
62
|
+
u(
|
|
63
|
+
s(e.prefix),
|
|
64
|
+
1
|
|
65
|
+
/* TEXT */
|
|
66
|
+
)
|
|
67
|
+
], !0),
|
|
68
|
+
u(
|
|
69
|
+
s(e.count),
|
|
70
|
+
1
|
|
71
|
+
/* TEXT */
|
|
72
|
+
),
|
|
73
|
+
f(e.$slots, "suffix", {}, () => [
|
|
74
|
+
u(
|
|
75
|
+
s(e.suffix),
|
|
76
|
+
1
|
|
77
|
+
/* TEXT */
|
|
78
|
+
)
|
|
79
|
+
], !0)
|
|
80
|
+
]),
|
|
81
|
+
f(e.$slots, "prefix", {}, () => [
|
|
82
|
+
u(
|
|
83
|
+
s(e.prefix),
|
|
48
84
|
1
|
|
49
85
|
/* TEXT */
|
|
50
86
|
)
|
|
51
87
|
], !0),
|
|
52
|
-
|
|
53
|
-
r
|
|
88
|
+
u(
|
|
89
|
+
s(r.value),
|
|
54
90
|
1
|
|
55
91
|
/* TEXT */
|
|
56
92
|
),
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
93
|
+
f(e.$slots, "suffix", {}, () => [
|
|
94
|
+
u(
|
|
95
|
+
s(e.suffix),
|
|
60
96
|
1
|
|
61
97
|
/* TEXT */
|
|
62
98
|
)
|
|
63
99
|
], !0)
|
|
64
|
-
]
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
1
|
|
69
|
-
/* TEXT */
|
|
70
|
-
)
|
|
71
|
-
], !0),
|
|
72
|
-
o(
|
|
73
|
-
r(t.value),
|
|
74
|
-
1
|
|
75
|
-
/* TEXT */
|
|
76
|
-
),
|
|
77
|
-
u(e.$slots, "suffix", {}, () => [
|
|
78
|
-
o(
|
|
79
|
-
r(e.suffix),
|
|
80
|
-
1
|
|
81
|
-
/* TEXT */
|
|
82
|
-
)
|
|
83
|
-
], !0)
|
|
84
|
-
]));
|
|
100
|
+
],
|
|
101
|
+
512
|
|
102
|
+
/* NEED_PATCH */
|
|
103
|
+
));
|
|
85
104
|
}
|
|
86
|
-
}),
|
|
87
|
-
const
|
|
88
|
-
for (const [
|
|
89
|
-
|
|
90
|
-
return
|
|
91
|
-
},
|
|
105
|
+
}), O = (i, t) => {
|
|
106
|
+
const r = i.__vccOpts || i;
|
|
107
|
+
for (const [a, c] of t)
|
|
108
|
+
r[a] = c;
|
|
109
|
+
return r;
|
|
110
|
+
}, E = /* @__PURE__ */ O(I, [["__scopeId", "data-v-fc76f127"]]);
|
|
92
111
|
export {
|
|
93
|
-
|
|
112
|
+
E as default
|
|
94
113
|
};
|
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './assets/MazAnimatedElement.
|
|
1
|
+
import { defineComponent as i, computed as l, ref as o, onMounted as d, onBeforeUnmount as r, openBlock as c, createElementBlock as m, normalizeStyle as u, renderSlot as f } from "vue";
|
|
2
|
+
import './assets/MazAnimatedElement.BkcmWrHr.css';const v = /* @__PURE__ */ i({
|
|
3
3
|
__name: "MazAnimatedElement",
|
|
4
4
|
props: {
|
|
5
5
|
direction: { default: "up" },
|
|
6
6
|
delay: { default: 0 },
|
|
7
|
-
duration: { default: 2e3 }
|
|
7
|
+
duration: { default: 2e3 },
|
|
8
|
+
once: { type: Boolean, default: !0 }
|
|
8
9
|
},
|
|
9
10
|
setup(a) {
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
t.value && e.observe(t.value);
|
|
18
|
-
}), (e, n) => (d(), m(
|
|
11
|
+
const s = l(() => `animate-slide-${a.direction}-blur`), n = o();
|
|
12
|
+
let t = null;
|
|
13
|
+
return d(() => {
|
|
14
|
+
t = new IntersectionObserver(([e]) => {
|
|
15
|
+
e.isIntersecting ? (e.target.classList.remove("--invisible"), e.target.classList.add(s.value), a.once === !0 && (t == null || t.unobserve(e.target))) : a.once === !1 && (e.target.classList.add("--invisible"), e.target.classList.remove(s.value));
|
|
16
|
+
}), n.value && t.observe(n.value);
|
|
17
|
+
}), r(() => t == null ? void 0 : t.disconnect()), (e, g) => (c(), m(
|
|
19
18
|
"div",
|
|
20
19
|
{
|
|
21
20
|
ref_key: "element",
|
|
22
|
-
ref:
|
|
21
|
+
ref: n,
|
|
23
22
|
class: "m-animated-element m-reset-css --invisible",
|
|
24
23
|
style: u({
|
|
25
24
|
animationDuration: `${e.duration}ms`,
|
|
@@ -33,12 +32,12 @@ import './assets/MazAnimatedElement.XhNfpNyM.css';const v = /* @__PURE__ */ r({
|
|
|
33
32
|
/* STYLE */
|
|
34
33
|
));
|
|
35
34
|
}
|
|
36
|
-
}), p = (a,
|
|
37
|
-
const
|
|
38
|
-
for (const [
|
|
39
|
-
t
|
|
40
|
-
return
|
|
41
|
-
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-
|
|
35
|
+
}), p = (a, s) => {
|
|
36
|
+
const n = a.__vccOpts || a;
|
|
37
|
+
for (const [t, e] of s)
|
|
38
|
+
n[t] = e;
|
|
39
|
+
return n;
|
|
40
|
+
}, b = /* @__PURE__ */ p(v, [["__scopeId", "data-v-d3a853a6"]]);
|
|
42
41
|
export {
|
|
43
42
|
b as default
|
|
44
43
|
};
|
|
@@ -45,6 +45,11 @@ interface MazAnimatedTextProps {
|
|
|
45
45
|
* @default 2000
|
|
46
46
|
*/
|
|
47
47
|
duration?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Play the animation only once
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
once?: boolean;
|
|
48
53
|
}
|
|
49
54
|
declare const _default: import("vue").DefineComponent<MazAnimatedTextProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MazAnimatedTextProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
55
|
export default _default;
|
|
@@ -1,39 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import './assets/MazAnimatedText.
|
|
1
|
+
import { defineComponent as C, computed as f, ref as p, onMounted as b, onBeforeUnmount as G, openBlock as o, createElementBlock as d, createBlock as g, resolveDynamicComponent as k, mergeProps as $, withCtx as _, Fragment as h, renderList as V, createElementVNode as u, normalizeClass as A, normalizeStyle as x, toDisplayString as c, createCommentVNode as z, createTextVNode as D } from "vue";
|
|
2
|
+
import './assets/MazAnimatedText.B91Kt1PP.css';function B(s, i, r) {
|
|
3
3
|
const t = {
|
|
4
4
|
maxAttempts: 20,
|
|
5
5
|
interval: 100,
|
|
6
|
-
...
|
|
6
|
+
...r
|
|
7
7
|
};
|
|
8
|
-
let
|
|
8
|
+
let l = 0;
|
|
9
9
|
function m() {
|
|
10
|
-
const
|
|
11
|
-
|
|
10
|
+
const a = s();
|
|
11
|
+
a != null ? t.expectedValue !== void 0 && a !== t.expectedValue ? l < t.maxAttempts ? (l++, setTimeout(m, t.interval)) : console.warn(t.errorMessage || `[maz-ui](checkAvailability) Nothing found after ${t.maxAttempts} attempts for ref ${a}`) : i(a) : l < t.maxAttempts ? (l++, setTimeout(m, t.interval)) : console.warn(t.errorMessage || `[maz-ui](checkAvailability) Nothing found or expected value after ${t.maxAttempts} attempts for ref ${a}`);
|
|
12
12
|
}
|
|
13
13
|
m();
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
l("system");
|
|
17
|
-
const G = (s, r) => {
|
|
18
|
-
const i = s.__vccOpts || s;
|
|
19
|
-
for (const [t, a] of r)
|
|
20
|
-
i[t] = a;
|
|
21
|
-
return i;
|
|
22
|
-
}, V = {
|
|
23
|
-
cancelText: "Cancel",
|
|
24
|
-
confirmText: "Confirm",
|
|
25
|
-
cancelButton: {
|
|
26
|
-
text: "Cancel",
|
|
27
|
-
color: "danger"
|
|
28
|
-
},
|
|
29
|
-
confirmButton: {
|
|
30
|
-
text: "Confirm",
|
|
31
|
-
color: "success"
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
l(V);
|
|
35
|
-
l([]);
|
|
36
|
-
const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-text__last-word-inner" }, N = { class: "m-animated-text__last-word-inner-text" }, W = /* @__PURE__ */ A({
|
|
15
|
+
const M = { class: "m-reset-css m-animated-text" }, N = { class: "m-animated-text__last-word-inner" }, T = { class: "m-animated-text__last-word-inner-text" }, W = /* @__PURE__ */ C({
|
|
37
16
|
inheritAttrs: !1,
|
|
38
17
|
__name: "MazAnimatedText",
|
|
39
18
|
props: {
|
|
@@ -45,47 +24,45 @@ const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-tex
|
|
|
45
24
|
wordDelay: { default: 75 },
|
|
46
25
|
columnGap: { default: 0.5 },
|
|
47
26
|
rowGap: { default: 0 },
|
|
48
|
-
duration: { default: 2e3 }
|
|
27
|
+
duration: { default: 2e3 },
|
|
28
|
+
once: { type: Boolean, default: !0 }
|
|
49
29
|
},
|
|
50
30
|
setup(s) {
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
});
|
|
59
|
-
T(() => n.value, (d) => {
|
|
60
|
-
e.observe(d);
|
|
31
|
+
const i = f(() => s.text.split(" ")), r = f(() => i.value.length), t = p(!1), l = p(!1), m = f(() => t.value ? `maz-animate-slide-${s.direction}-blur` : "maz-invisible"), a = p();
|
|
32
|
+
let n = null;
|
|
33
|
+
return b(() => {
|
|
34
|
+
l.value = !0, n = new IntersectionObserver(([e]) => {
|
|
35
|
+
t.value = e.isIntersecting, s.once && a.value && (n == null || n.unobserve(a.value));
|
|
36
|
+
}), B(() => a.value, (e) => {
|
|
37
|
+
n == null || n.observe(e);
|
|
61
38
|
});
|
|
62
|
-
}), (e,
|
|
63
|
-
|
|
39
|
+
}), G(() => n == null ? void 0 : n.disconnect()), (e, v) => (o(), d("div", M, [
|
|
40
|
+
l.value ? (o(), g(k(e.tag), $({
|
|
64
41
|
key: 0,
|
|
65
42
|
ref_key: "element",
|
|
66
|
-
ref:
|
|
43
|
+
ref: a
|
|
67
44
|
}, e.$attrs, {
|
|
68
45
|
class: "m-animated-text__root",
|
|
69
46
|
style: { columnGap: `${e.columnGap}rem`, rowGap: `${e.rowGap}rem` }
|
|
70
47
|
}), {
|
|
71
|
-
default:
|
|
72
|
-
(o(!0),
|
|
73
|
-
|
|
48
|
+
default: _(() => [
|
|
49
|
+
(o(!0), d(
|
|
50
|
+
h,
|
|
74
51
|
null,
|
|
75
|
-
|
|
76
|
-
key:
|
|
52
|
+
V(i.value, (y, w) => (o(), d("span", {
|
|
53
|
+
key: y + w,
|
|
77
54
|
class: "m-animated-text__word"
|
|
78
55
|
}, [
|
|
79
|
-
|
|
56
|
+
u(
|
|
80
57
|
"span",
|
|
81
58
|
{
|
|
82
|
-
class:
|
|
83
|
-
style:
|
|
84
|
-
animationDelay: `${e.delay +
|
|
59
|
+
class: A(["m-animated-text__word-inner", m.value]),
|
|
60
|
+
style: x({
|
|
61
|
+
animationDelay: `${e.delay + w * (e.wordDelay ?? 150)}ms`,
|
|
85
62
|
animationDuration: `${e.duration}ms`
|
|
86
63
|
})
|
|
87
64
|
},
|
|
88
|
-
|
|
65
|
+
c(y),
|
|
89
66
|
7
|
|
90
67
|
/* TEXT, CLASS, STYLE */
|
|
91
68
|
)
|
|
@@ -93,29 +70,29 @@ const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-tex
|
|
|
93
70
|
128
|
|
94
71
|
/* KEYED_FRAGMENT */
|
|
95
72
|
)),
|
|
96
|
-
e.lastWord ? (o(),
|
|
73
|
+
e.lastWord ? (o(), d(
|
|
97
74
|
"span",
|
|
98
75
|
{
|
|
99
76
|
key: 0,
|
|
100
|
-
class:
|
|
101
|
-
style:
|
|
102
|
-
animationDelay: `${e.delay +
|
|
77
|
+
class: A(["m-animated-text__last-word", m.value]),
|
|
78
|
+
style: x({
|
|
79
|
+
animationDelay: `${e.delay + r.value * (e.wordDelay ?? 150)}ms`,
|
|
103
80
|
animationDuration: `${e.duration}ms`
|
|
104
81
|
})
|
|
105
82
|
},
|
|
106
83
|
[
|
|
107
|
-
|
|
108
|
-
|
|
84
|
+
u("span", N, [
|
|
85
|
+
v[0] || (v[0] = u(
|
|
109
86
|
"span",
|
|
110
87
|
{ class: "m-animated-text__last-word-inner-gradient" },
|
|
111
88
|
null,
|
|
112
89
|
-1
|
|
113
90
|
/* HOISTED */
|
|
114
91
|
)),
|
|
115
|
-
|
|
92
|
+
u(
|
|
116
93
|
"span",
|
|
117
|
-
|
|
118
|
-
|
|
94
|
+
T,
|
|
95
|
+
c(e.lastWord),
|
|
119
96
|
1
|
|
120
97
|
/* TEXT */
|
|
121
98
|
)
|
|
@@ -123,33 +100,33 @@ const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-tex
|
|
|
123
100
|
],
|
|
124
101
|
6
|
|
125
102
|
/* CLASS, STYLE */
|
|
126
|
-
)) :
|
|
103
|
+
)) : z("v-if", !0)
|
|
127
104
|
]),
|
|
128
105
|
_: 1
|
|
129
106
|
/* STABLE */
|
|
130
|
-
}, 16, ["style"])) : (o(),
|
|
131
|
-
|
|
132
|
-
|
|
107
|
+
}, 16, ["style"])) : (o(), g(
|
|
108
|
+
k(e.tag),
|
|
109
|
+
$({ key: 1 }, e.$attrs, { class: "maz-invisible maz-inline-flex" }),
|
|
133
110
|
{
|
|
134
|
-
default:
|
|
135
|
-
|
|
136
|
-
|
|
111
|
+
default: _(() => [
|
|
112
|
+
D(
|
|
113
|
+
c(e.text) + " ",
|
|
137
114
|
1
|
|
138
115
|
/* TEXT */
|
|
139
116
|
),
|
|
140
|
-
e.lastWord ? (o(),
|
|
141
|
-
|
|
117
|
+
e.lastWord ? (o(), d(
|
|
118
|
+
h,
|
|
142
119
|
{ key: 0 },
|
|
143
120
|
[
|
|
144
|
-
|
|
145
|
-
|
|
121
|
+
D(
|
|
122
|
+
c(e.lastWord),
|
|
146
123
|
1
|
|
147
124
|
/* TEXT */
|
|
148
125
|
)
|
|
149
126
|
],
|
|
150
127
|
64
|
|
151
128
|
/* STABLE_FRAGMENT */
|
|
152
|
-
)) :
|
|
129
|
+
)) : z("v-if", !0)
|
|
153
130
|
]),
|
|
154
131
|
_: 1
|
|
155
132
|
/* STABLE */
|
|
@@ -159,7 +136,12 @@ const B = { class: "m-reset-css m-animated-text" }, M = { class: "m-animated-tex
|
|
|
159
136
|
))
|
|
160
137
|
]));
|
|
161
138
|
}
|
|
162
|
-
}), I =
|
|
139
|
+
}), I = (s, i) => {
|
|
140
|
+
const r = s.__vccOpts || s;
|
|
141
|
+
for (const [t, l] of i)
|
|
142
|
+
r[t] = l;
|
|
143
|
+
return r;
|
|
144
|
+
}, O = /* @__PURE__ */ I(W, [["__scopeId", "data-v-13cab581"]]);
|
|
163
145
|
export {
|
|
164
|
-
|
|
146
|
+
O as default
|
|
165
147
|
};
|
|
@@ -15,6 +15,11 @@ type __VLS_Props = {
|
|
|
15
15
|
* @default 1000
|
|
16
16
|
*/
|
|
17
17
|
duration?: number;
|
|
18
|
+
/**
|
|
19
|
+
* Delay before the animation starts in milliseconds
|
|
20
|
+
* @default 100
|
|
21
|
+
*/
|
|
22
|
+
delay?: number;
|
|
18
23
|
/**
|
|
19
24
|
* The color of the progress bar
|
|
20
25
|
*/
|
|
@@ -50,20 +55,28 @@ type __VLS_Props = {
|
|
|
50
55
|
*/
|
|
51
56
|
stroke?: SVGAttributes['stroke'];
|
|
52
57
|
/**
|
|
53
|
-
* The percentage value of the success
|
|
58
|
+
* The percentage value of the success level
|
|
59
|
+
* @description The progress circle will be filled with the success color when the percentage is greater than or equal to this value
|
|
54
60
|
* @default 100
|
|
55
61
|
*/
|
|
56
62
|
successPercentage?: number;
|
|
57
63
|
/**
|
|
58
|
-
* The percentage value of the warning
|
|
64
|
+
* The percentage value of the warning level
|
|
65
|
+
* @description The progress circle will be filled with the warning color when the percentage is greater than or equal to this value
|
|
59
66
|
* @default 50
|
|
60
67
|
*/
|
|
61
68
|
warningPercentage?: number;
|
|
62
69
|
/**
|
|
63
|
-
* The percentage value of the danger
|
|
70
|
+
* The percentage value of the danger level
|
|
71
|
+
* @description The progress circle will be filled with the danger color when the percentage is greater than or equal to this value
|
|
64
72
|
* @default 25
|
|
65
73
|
*/
|
|
66
74
|
dangerPercentage?: number;
|
|
75
|
+
/**
|
|
76
|
+
* Play the animation only once
|
|
77
|
+
* @default true
|
|
78
|
+
*/
|
|
79
|
+
once?: boolean;
|
|
67
80
|
};
|
|
68
81
|
declare function __VLS_template(): {
|
|
69
82
|
attrs: Partial<{}>;
|
|
@@ -72,7 +85,9 @@ declare function __VLS_template(): {
|
|
|
72
85
|
prefix?(_: {}): any;
|
|
73
86
|
suffix?(_: {}): any;
|
|
74
87
|
};
|
|
75
|
-
refs: {
|
|
88
|
+
refs: {
|
|
89
|
+
circleRef: SVGSVGElement;
|
|
90
|
+
};
|
|
76
91
|
rootEl: HTMLDivElement;
|
|
77
92
|
};
|
|
78
93
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -80,6 +95,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
80
95
|
size: string;
|
|
81
96
|
color: Color;
|
|
82
97
|
duration: number;
|
|
98
|
+
once: boolean;
|
|
83
99
|
prefix: string;
|
|
84
100
|
suffix: string;
|
|
85
101
|
stroke: string;
|