vlite3 0.2.14 → 0.2.15
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/Avatar.vue.js +5 -5
- package/components/Button.vue.js +30 -38
- package/components/Carousel/Carousel.vue.d.ts +2 -2
- package/components/DataTable/DataTable.vue.js +1 -1
- package/components/Form/Form.vue.js +2 -2
- package/components/Form/Form.vue2.js +1 -1
- package/components/Form/FormField.vue.d.ts +1 -1
- package/components/Form/FormField.vue.js +1 -0
- package/components/Input.vue.d.ts +2 -2
- package/components/Input.vue.js +40 -40
- package/components/NumberInput.vue.d.ts +2 -2
- package/components/Textarea.vue.d.ts +2 -2
- package/package.json +1 -1
- package/style.css +1 -35
- package/directives/vRipple.d.ts +0 -8
- package/directives/vRipple.js +0 -16
package/components/Avatar.vue.js
CHANGED
|
@@ -29,11 +29,11 @@ const y = ["src", "alt"], z = { key: 0 }, A = /* @__PURE__ */ k({
|
|
|
29
29
|
return l.length === 1 ? l[0].slice(0, 2).toUpperCase() : (l[0][0] + l[l.length - 1][0]).toUpperCase();
|
|
30
30
|
}), x = {
|
|
31
31
|
xs: "h-6 w-6 text-[10px]",
|
|
32
|
-
sm: "h-
|
|
33
|
-
md: "h-
|
|
34
|
-
lg: "h-
|
|
35
|
-
xl: "h-
|
|
36
|
-
"2xl": "h-
|
|
32
|
+
sm: "h-10 w-10 text-xs",
|
|
33
|
+
md: "h-12 w-12 text-sm",
|
|
34
|
+
lg: "h-15 w-15 text-base",
|
|
35
|
+
xl: "h-18 w-18 text-lg",
|
|
36
|
+
"2xl": "h-20 w-20 text-xl"
|
|
37
37
|
}, h = {
|
|
38
38
|
none: "rounded-none",
|
|
39
39
|
sm: "rounded-sm",
|
package/components/Button.vue.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
const S = ["type", "disabled"], R = {
|
|
5
|
-
key: 2,
|
|
6
|
-
class: "-text-fs-1.5!"
|
|
7
|
-
}, D = /* @__PURE__ */ x({
|
|
1
|
+
import { defineComponent as v, useSlots as x, computed as c, openBlock as o, createElementBlock as w, normalizeClass as r, createBlock as l, createCommentVNode as g, renderSlot as y, createTextVNode as p, toDisplayString as z } from "vue";
|
|
2
|
+
import d from "./Icon.vue.js";
|
|
3
|
+
const k = ["type", "disabled"], S = /* @__PURE__ */ v({
|
|
8
4
|
__name: "Button",
|
|
9
5
|
props: {
|
|
10
6
|
variant: { default: "primary" },
|
|
@@ -19,8 +15,8 @@ const S = ["type", "disabled"], R = {
|
|
|
19
15
|
rounded: { default: "md" }
|
|
20
16
|
},
|
|
21
17
|
setup(e) {
|
|
22
|
-
const
|
|
23
|
-
const
|
|
18
|
+
const n = e, u = x(), s = c(() => n.icon && !n.text && !u.default), h = c(() => {
|
|
19
|
+
const t = "inline-flex items-center justify-center whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.95] active:opacity-80 cursor-pointer gap-2", i = {
|
|
24
20
|
primary: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
25
21
|
"primary-light": "bg-primary-light text-primary-fg-light hover:bg-primary/20",
|
|
26
22
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
@@ -40,19 +36,19 @@ const S = ["type", "disabled"], R = {
|
|
|
40
36
|
"outline-success": "border border-success text-success hover:bg-success/10",
|
|
41
37
|
ghost: "hover:bg-accent hover:text-accent-foreground text-foreground",
|
|
42
38
|
link: "text-primary underline-offset-4 hover:underline"
|
|
43
|
-
},
|
|
39
|
+
}, f = {
|
|
44
40
|
xs: "h-6.5 px-2",
|
|
45
41
|
sm: "h-7.5 px-3",
|
|
46
42
|
md: "h-9 px-4 py-2",
|
|
47
43
|
lg: "h-10 px-6",
|
|
48
44
|
xl: "h-12 px-10"
|
|
49
|
-
},
|
|
45
|
+
}, b = {
|
|
50
46
|
xs: "h-6.5 w-6.5 min-h-6.5 min-w-6.5",
|
|
51
47
|
sm: "h-7 w-7 min-h-7 min-w-7",
|
|
52
48
|
md: "h-7.5 w-7.5 min-h-7.5 min-w-7.5",
|
|
53
49
|
lg: "h-8 w-8 min-h-8 min-w-8",
|
|
54
50
|
xl: "h-8.5 w-8.5 min-h-8.5 min-w-8.5"
|
|
55
|
-
},
|
|
51
|
+
}, m = {
|
|
56
52
|
none: "rounded-none",
|
|
57
53
|
sm: "rounded-sm",
|
|
58
54
|
md: "rounded",
|
|
@@ -62,57 +58,53 @@ const S = ["type", "disabled"], R = {
|
|
|
62
58
|
full: "rounded-full"
|
|
63
59
|
};
|
|
64
60
|
return [
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
s.value ?
|
|
69
|
-
|
|
61
|
+
t,
|
|
62
|
+
i[n.variant],
|
|
63
|
+
m[n.rounded],
|
|
64
|
+
s.value ? b[n.size] : f[n.size],
|
|
65
|
+
n.class
|
|
70
66
|
].join(" ");
|
|
71
|
-
}), a =
|
|
72
|
-
const
|
|
67
|
+
}), a = c(() => {
|
|
68
|
+
const t = {
|
|
73
69
|
xs: "w-3 h-3",
|
|
74
70
|
sm: "w-4 h-4",
|
|
75
71
|
md: "w-4 h-4",
|
|
76
72
|
lg: "w-4 h-4",
|
|
77
73
|
xl: "w-4 h-4"
|
|
78
|
-
},
|
|
74
|
+
}, i = {
|
|
79
75
|
xs: "w-3 h-3",
|
|
80
76
|
sm: "w-3.5 h-3.5",
|
|
81
77
|
md: "w-3.5 h-3.5",
|
|
82
78
|
lg: "w-4 h-4",
|
|
83
79
|
xl: "w-4 h-4"
|
|
84
80
|
};
|
|
85
|
-
return s.value ?
|
|
81
|
+
return s.value ? i[n.size] : t[n.size];
|
|
86
82
|
});
|
|
87
|
-
return (
|
|
83
|
+
return (t, i) => (o(), w("button", {
|
|
88
84
|
type: e.type,
|
|
89
|
-
class: r(
|
|
85
|
+
class: r(h.value),
|
|
90
86
|
disabled: e.disabled || e.loading
|
|
91
87
|
}, [
|
|
92
|
-
e.loading ? (
|
|
88
|
+
e.loading ? (o(), l(d, {
|
|
93
89
|
key: 0,
|
|
94
90
|
icon: "lucide:loader-2",
|
|
95
91
|
class: r(["animate-spin pointer-events-none", a.value])
|
|
96
|
-
}, null, 8, ["class"])) : e.icon ? (
|
|
92
|
+
}, null, 8, ["class"])) : e.icon ? (o(), l(d, {
|
|
97
93
|
key: 1,
|
|
98
94
|
icon: e.icon,
|
|
99
95
|
class: r(["pointer-events-none", [a.value, s.value ? "mx-auto" : ""]])
|
|
100
|
-
}, null, 8, ["icon", "class"])) :
|
|
101
|
-
|
|
102
|
-
p(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
e.iconRight && !e.loading ? (i(), c(u, {
|
|
107
|
-
key: 3,
|
|
96
|
+
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
97
|
+
y(t.$slots, "default", {}, () => [
|
|
98
|
+
p(z(e.text), 1)
|
|
99
|
+
]),
|
|
100
|
+
e.iconRight && !e.loading ? (o(), l(d, {
|
|
101
|
+
key: 2,
|
|
108
102
|
icon: e.iconRight,
|
|
109
103
|
class: r([a.value, "h-4 w-4 pointer-events-none"])
|
|
110
|
-
}, null, 8, ["icon", "class"])) :
|
|
111
|
-
], 10,
|
|
112
|
-
[B(C)]
|
|
113
|
-
]);
|
|
104
|
+
}, null, 8, ["icon", "class"])) : g("", !0)
|
|
105
|
+
], 10, k));
|
|
114
106
|
}
|
|
115
107
|
});
|
|
116
108
|
export {
|
|
117
|
-
|
|
109
|
+
S as default
|
|
118
110
|
};
|
|
@@ -352,7 +352,7 @@ declare function __VLS_template(): {
|
|
|
352
352
|
};
|
|
353
353
|
}>> & Readonly<{
|
|
354
354
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
355
|
-
}>, "
|
|
355
|
+
}>, "direction" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "draggable" | "autoPlayInterval" | "itemsToShow" | "gap" | "speed" | "easing" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goNext" | "goPrev" | "autoFocus" | "wheelOptions" | "state" | "canGoNext" | "canGoPrev" | "focus"> & import('vue').ShallowUnwrapRef<{
|
|
356
356
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
357
357
|
goNext: (smooth?: boolean) => void;
|
|
358
358
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -778,7 +778,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
778
778
|
};
|
|
779
779
|
}>> & Readonly<{
|
|
780
780
|
"onSlide-change"?: ((index: number) => any) | undefined;
|
|
781
|
-
}>, "
|
|
781
|
+
}>, "direction" | "pagination" | "paginationSize" | "paginationVisibility" | "paginationHoverInitialTimeout" | "paginationHoverEdgeThreshold" | "autoPlay" | "draggable" | "autoPlayInterval" | "itemsToShow" | "gap" | "speed" | "easing" | "mousewheel" | "loop" | "currentItem" | "bufferSize" | "maxDomElements" | "goToSlide" | "goNext" | "goPrev" | "autoFocus" | "wheelOptions" | "state" | "canGoNext" | "canGoPrev" | "focus"> & import('vue').ShallowUnwrapRef<{
|
|
782
782
|
goToSlide: (index: number, smooth?: boolean) => void;
|
|
783
783
|
goNext: (smooth?: boolean) => void;
|
|
784
784
|
goPrev: (smooth?: boolean) => void;
|
|
@@ -139,7 +139,7 @@ const fe = { class: "space-y-4" }, he = { class: "overflow-x-auto w-full" }, ge
|
|
|
139
139
|
"overflow-hidden",
|
|
140
140
|
l.bordered ? "border border-border/60" : "",
|
|
141
141
|
l.class
|
|
142
|
-
].join(" ")), Z = b(() => ["w-full caption-bottom", l.tableClass].join(" ")), _ = (e) => e.width ? e.width : "auto";
|
|
142
|
+
].join(" ")), Z = b(() => ["w-full caption-bottom -text-fs-1", l.tableClass].join(" ")), _ = (e) => e.width ? e.width : "auto";
|
|
143
143
|
return p(
|
|
144
144
|
() => l.rows,
|
|
145
145
|
() => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./Form.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const f = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b1fa52ca"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
f as default
|
|
7
7
|
};
|
|
@@ -207,7 +207,7 @@ const ne = {
|
|
|
207
207
|
class: h([
|
|
208
208
|
"form-footer flex items-center justify-end gap-3",
|
|
209
209
|
e.footerClass,
|
|
210
|
-
$.value ? "sticky bottom-0 z-20 bg-body pt-4 border-t border-border/75 -mx-4 px-4 mt-
|
|
210
|
+
$.value ? "sticky bottom-0 z-20 bg-body pt-4 border-t border-border/75 -mx-4 px-4 mt-8" : "mt-6"
|
|
211
211
|
])
|
|
212
212
|
}, [
|
|
213
213
|
G.value ? (l(), p(A, {
|
|
@@ -24,8 +24,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
24
24
|
disabled: boolean;
|
|
25
25
|
size: InputSize;
|
|
26
26
|
variant: InputVariant;
|
|
27
|
-
error: string;
|
|
28
27
|
rounded: InputRounded;
|
|
28
|
+
error: string;
|
|
29
29
|
readonly: boolean;
|
|
30
30
|
isUpdate: boolean;
|
|
31
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -14,15 +14,15 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
14
14
|
declare const __VLS_component: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
15
|
"update:modelValue": (value: string | number) => any;
|
|
16
16
|
change: (value: string | number) => any;
|
|
17
|
-
blur: (event: FocusEvent) => any;
|
|
18
17
|
focus: (event: FocusEvent) => any;
|
|
18
|
+
blur: (event: FocusEvent) => any;
|
|
19
19
|
"click:icon": (event: MouseEvent) => any;
|
|
20
20
|
"click:icon-right": (event: MouseEvent) => any;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: (value: string | number) => any;
|
|
23
23
|
onChange?: (value: string | number) => any;
|
|
24
|
-
onBlur?: (event: FocusEvent) => any;
|
|
25
24
|
onFocus?: (event: FocusEvent) => any;
|
|
25
|
+
onBlur?: (event: FocusEvent) => any;
|
|
26
26
|
"onClick:icon"?: (event: MouseEvent) => any;
|
|
27
27
|
"onClick:icon-right"?: (event: MouseEvent) => any;
|
|
28
28
|
}>, {
|
package/components/Input.vue.js
CHANGED
|
@@ -2,7 +2,7 @@ import { defineComponent as G, useSlots as J, ref as v, computed as r, onMounted
|
|
|
2
2
|
import f from "./Icon.vue.js";
|
|
3
3
|
import Q from "./Label.vue.js";
|
|
4
4
|
import X from "./Textarea.vue.js";
|
|
5
|
-
const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { class: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center gap-2 z-20" },
|
|
5
|
+
const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { class: "absolute right-3 top-1/2 -translate-y-1/2 flex items-center justify-center gap-2 z-20" }, le = /* @__PURE__ */ G({
|
|
6
6
|
__name: "Input",
|
|
7
7
|
props: {
|
|
8
8
|
modelValue: { default: "" },
|
|
@@ -41,17 +41,17 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
41
41
|
].join(" ")), T = r(() => ["relative flex w-full items-stretch", e.labelPosition !== "top" ? "flex-1" : ""].join(
|
|
42
42
|
" "
|
|
43
43
|
)), j = r(() => {
|
|
44
|
-
const
|
|
44
|
+
const t = "block w-full bg-background px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground/50 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-none relative focus:z-10", o = {
|
|
45
45
|
solid: "bg-muted border-transparent focus-visible:border-primary",
|
|
46
46
|
outline: "border border-input focus-visible:border-primary",
|
|
47
47
|
"outline-b": "border-b border-input bg-transparent rounded-none focus-visible:border-primary",
|
|
48
48
|
transparent: "border-none bg-transparent shadow-none"
|
|
49
49
|
}, i = {
|
|
50
|
-
sm: "h-7.5",
|
|
51
|
-
md: "h-9",
|
|
52
|
-
lg: "h-10"
|
|
50
|
+
sm: "h-7.5 text-xs",
|
|
51
|
+
md: "h-9 text-sm",
|
|
52
|
+
lg: "h-10 text-base"
|
|
53
53
|
};
|
|
54
|
-
let
|
|
54
|
+
let l = {
|
|
55
55
|
none: "rounded-none",
|
|
56
56
|
sm: "rounded-sm",
|
|
57
57
|
md: "rounded-md",
|
|
@@ -60,41 +60,41 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
60
60
|
"2xl": "rounded-2xl",
|
|
61
61
|
full: "rounded-full"
|
|
62
62
|
}[e.rounded];
|
|
63
|
-
g.value && (e.rounded === "md" ?
|
|
63
|
+
g.value && (e.rounded === "md" ? l = "rounded-r-md rounded-l-none" : e.rounded === "sm" ? l = "rounded-r-sm rounded-l-none" : e.rounded === "lg" ? l = "rounded-r-lg rounded-l-none" : e.rounded === "full" ? l = "rounded-r-full rounded-l-none" : e.rounded !== "none" && (l = l.replace("rounded-", "rounded-r-").replace("rounded-l-", ""))), p.value && (g.value ? l = "rounded-none" : e.rounded === "md" ? l = "rounded-l-md rounded-r-none" : e.rounded === "sm" ? l = "rounded-l-sm rounded-r-none" : e.rounded === "lg" ? l = "rounded-l-lg rounded-r-none" : e.rounded === "full" ? l = "rounded-l-full rounded-r-none" : e.rounded !== "none" && (l = l.replace("rounded-", "rounded-l-").replace("rounded-r-", ""))), e.variant === "outline-b" && (l = "rounded-none");
|
|
64
64
|
const P = e.variant === "outline-b" || e.variant === "transparent";
|
|
65
65
|
return [
|
|
66
|
-
o,
|
|
67
|
-
l[e.variant],
|
|
68
|
-
i[e.size],
|
|
69
66
|
t,
|
|
67
|
+
o[e.variant],
|
|
68
|
+
i[e.size],
|
|
69
|
+
l,
|
|
70
70
|
e.error ? "border-destructive focus-visible:ring-destructive" : "",
|
|
71
71
|
e.icon ? "pl-9" : P && !g.value ? "pl-0" : "",
|
|
72
72
|
e.showClearButton && B.value || e.type === "password" || e.loading || e.iconRight ? "pr-9" : P && !p.value ? "pr-0" : "",
|
|
73
73
|
e.inputClass
|
|
74
74
|
].join(" ");
|
|
75
75
|
}), R = {
|
|
76
|
-
sm: "text-
|
|
77
|
-
md: "text-
|
|
76
|
+
sm: "text-xs",
|
|
77
|
+
md: "text-sm",
|
|
78
78
|
lg: "text-base"
|
|
79
|
-
}, $ = (
|
|
80
|
-
const
|
|
79
|
+
}, $ = (t) => {
|
|
80
|
+
const o = t === "left";
|
|
81
81
|
return [
|
|
82
82
|
// Ensure height matches
|
|
83
83
|
"[&_button]:w-full [&_a]:w-full! [&_.v-btn]:w-full! [&_.tooltip-trigger]:w-full",
|
|
84
84
|
// Handle borders (Connect sides)
|
|
85
|
-
|
|
85
|
+
o ? "[&_button]:rounded-r-none [&_a]:rounded-r-none [&_.v-btn]:rounded-r-none" : "[&_button]:rounded-l-none [&_a]:rounded-l-none [&_.v-btn]:rounded-l-none",
|
|
86
86
|
// Ensure focus ring appears on top
|
|
87
87
|
"[&_button]:relative [&_button]:focus:z-20",
|
|
88
88
|
// Merge borders (Negative margin to overlap single pixels)
|
|
89
|
-
|
|
89
|
+
o ? "-mr-px" : "-ml-px",
|
|
90
90
|
"z-10"
|
|
91
91
|
// Ensure addons sit visually above input border if needed
|
|
92
92
|
].join(" ");
|
|
93
93
|
}, E = r(() => {
|
|
94
|
-
const
|
|
94
|
+
const t = !!m["addon-left"];
|
|
95
95
|
return [
|
|
96
96
|
"flex items-center justify-center whitespace-nowrap",
|
|
97
|
-
|
|
97
|
+
t ? `border-none ${$("left")}` : `bg-muted border border-input border-r-0! px-3 text-muted-foreground ${{
|
|
98
98
|
sm: "rounded-l-sm",
|
|
99
99
|
md: "rounded-l-md",
|
|
100
100
|
lg: "rounded-l-lg",
|
|
@@ -103,15 +103,15 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
103
103
|
xl: "rounded-l-xl",
|
|
104
104
|
"2xl": "rounded-l-2xl"
|
|
105
105
|
}[e.rounded] || "rounded-l-md"}`,
|
|
106
|
-
|
|
106
|
+
t ? "" : R[e.size],
|
|
107
107
|
e.addonLeftClass,
|
|
108
108
|
e.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
109
109
|
].join(" ");
|
|
110
110
|
}), D = r(() => {
|
|
111
|
-
const
|
|
111
|
+
const t = !!m["addon-right"];
|
|
112
112
|
return [
|
|
113
113
|
"flex items-center justify-center whitespace-nowrap",
|
|
114
|
-
|
|
114
|
+
t ? `border-none ${$("right")}` : `bg-muted border border-input border-l-0! px-3 text-muted-foreground ${{
|
|
115
115
|
sm: "rounded-r-sm",
|
|
116
116
|
md: "rounded-r-md",
|
|
117
117
|
lg: "rounded-r-lg",
|
|
@@ -120,33 +120,33 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
120
120
|
xl: "rounded-r-xl",
|
|
121
121
|
"2xl": "rounded-r-2xl"
|
|
122
122
|
}[e.rounded] || "rounded-r-md"}`,
|
|
123
|
-
|
|
123
|
+
t ? "" : R[e.size],
|
|
124
124
|
e.addonRightClass,
|
|
125
125
|
e.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
126
126
|
].join(" ");
|
|
127
|
-
}), H = (
|
|
127
|
+
}), H = (t) => {
|
|
128
128
|
if (e.lazy) return;
|
|
129
|
-
const
|
|
130
|
-
u("update:modelValue",
|
|
131
|
-
}, U = (
|
|
132
|
-
const
|
|
133
|
-
e.lazy && u("update:modelValue",
|
|
129
|
+
const o = t.target;
|
|
130
|
+
u("update:modelValue", o.value);
|
|
131
|
+
}, U = (t) => {
|
|
132
|
+
const o = t.target;
|
|
133
|
+
e.lazy && u("update:modelValue", o.value), u("change", o.value);
|
|
134
134
|
}, W = () => {
|
|
135
135
|
b.value = !b.value;
|
|
136
136
|
}, q = () => {
|
|
137
137
|
u("update:modelValue", ""), A(() => {
|
|
138
138
|
y.value?.focus();
|
|
139
139
|
});
|
|
140
|
-
}, h = v(!1), w = v(!1), S = (
|
|
141
|
-
h.value = !0, u("focus",
|
|
142
|
-
}, L = (
|
|
143
|
-
h.value = !1, u("blur",
|
|
140
|
+
}, h = v(!1), w = v(!1), S = (t) => {
|
|
141
|
+
h.value = !0, u("focus", t);
|
|
142
|
+
}, L = (t) => {
|
|
143
|
+
h.value = !1, u("blur", t);
|
|
144
144
|
};
|
|
145
145
|
return K(() => {
|
|
146
146
|
e.autofocus && A(() => {
|
|
147
147
|
y.value?.focus();
|
|
148
148
|
});
|
|
149
|
-
}), (
|
|
149
|
+
}), (t, o) => (d(), s("div", {
|
|
150
150
|
class: a(N.value)
|
|
151
151
|
}, [
|
|
152
152
|
n.label ? (d(), C(Q, {
|
|
@@ -166,14 +166,14 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
166
166
|
key: 0,
|
|
167
167
|
class: a(E.value)
|
|
168
168
|
}, [
|
|
169
|
-
F(
|
|
169
|
+
F(t.$slots, "addon-left", {}, () => [
|
|
170
170
|
k(V(n.addonLeft), 1)
|
|
171
171
|
])
|
|
172
172
|
], 2)) : c("", !0),
|
|
173
173
|
z("div", {
|
|
174
174
|
class: "relative w-full",
|
|
175
|
-
onMouseenter:
|
|
176
|
-
onMouseleave:
|
|
175
|
+
onMouseenter: o[2] || (o[2] = (i) => w.value = !0),
|
|
176
|
+
onMouseleave: o[3] || (o[3] = (i) => w.value = !1)
|
|
177
177
|
}, [
|
|
178
178
|
n.type === "textarea" ? (d(), C(X, {
|
|
179
179
|
key: 0,
|
|
@@ -182,7 +182,7 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
182
182
|
disabled: n.disabled,
|
|
183
183
|
rows: n.rows,
|
|
184
184
|
class: a(j.value),
|
|
185
|
-
"onUpdate:modelValue":
|
|
185
|
+
"onUpdate:modelValue": o[0] || (o[0] = (i) => u("update:modelValue", i)),
|
|
186
186
|
onBlur: L,
|
|
187
187
|
onFocus: S
|
|
188
188
|
}, null, 8, ["model-value", "placeholder", "disabled", "rows", "class"])) : (d(), s("input", {
|
|
@@ -226,7 +226,7 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
226
226
|
"flex items-center justify-center text-muted-foreground",
|
|
227
227
|
n.disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer hover:text-foreground"
|
|
228
228
|
]),
|
|
229
|
-
onClick:
|
|
229
|
+
onClick: o[1] || (o[1] = (i) => !n.disabled && u("click:icon-right", i))
|
|
230
230
|
}, [
|
|
231
231
|
x(f, {
|
|
232
232
|
icon: n.iconRight,
|
|
@@ -263,7 +263,7 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
263
263
|
key: 1,
|
|
264
264
|
class: a(D.value)
|
|
265
265
|
}, [
|
|
266
|
-
F(
|
|
266
|
+
F(t.$slots, "addon-right", {}, () => [
|
|
267
267
|
k(V(n.addonRight), 1)
|
|
268
268
|
])
|
|
269
269
|
], 2)) : c("", !0)
|
|
@@ -272,5 +272,5 @@ const Y = ["type", "value", "placeholder", "disabled", "min", "max"], Z = { clas
|
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
export {
|
|
275
|
-
|
|
275
|
+
le as default
|
|
276
276
|
};
|
|
@@ -16,13 +16,13 @@ export interface NumberInputProps {
|
|
|
16
16
|
declare const _default: import('vue').DefineComponent<NumberInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
17
17
|
"update:modelValue": (value: number) => any;
|
|
18
18
|
change: (value: number) => any;
|
|
19
|
-
blur: (event: FocusEvent) => any;
|
|
20
19
|
focus: (event: FocusEvent) => any;
|
|
20
|
+
blur: (event: FocusEvent) => any;
|
|
21
21
|
}, string, import('vue').PublicProps, Readonly<NumberInputProps> & Readonly<{
|
|
22
22
|
"onUpdate:modelValue"?: (value: number) => any;
|
|
23
23
|
onChange?: (value: number) => any;
|
|
24
|
-
onBlur?: (event: FocusEvent) => any;
|
|
25
24
|
onFocus?: (event: FocusEvent) => any;
|
|
25
|
+
onBlur?: (event: FocusEvent) => any;
|
|
26
26
|
}>, {
|
|
27
27
|
disabled: boolean;
|
|
28
28
|
mode: "solid" | "outline" | "ghost";
|
|
@@ -7,12 +7,12 @@ interface Props {
|
|
|
7
7
|
}
|
|
8
8
|
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
9
9
|
"update:modelValue": (value: string) => any;
|
|
10
|
-
blur: (event: FocusEvent) => any;
|
|
11
10
|
focus: (event: FocusEvent) => any;
|
|
11
|
+
blur: (event: FocusEvent) => any;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
14
|
-
onBlur?: (event: FocusEvent) => any;
|
|
15
14
|
onFocus?: (event: FocusEvent) => any;
|
|
15
|
+
onBlur?: (event: FocusEvent) => any;
|
|
16
16
|
}>, {
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
class: string;
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -130,22 +130,6 @@
|
|
|
130
130
|
--text-fs-19: 2.95;
|
|
131
131
|
--text-fs-19.5: 3;
|
|
132
132
|
--text-fs-20: 3.05;
|
|
133
|
-
|
|
134
|
-
--spacing: 0.25em;
|
|
135
|
-
|
|
136
|
-
--text-xs: 0.75em;
|
|
137
|
-
--text-sm: 0.875em;
|
|
138
|
-
--text-base: 1em;
|
|
139
|
-
--text-md2: 1.1em;
|
|
140
|
-
--text-lg: 1.125em;
|
|
141
|
-
--text-lg2: 1.2em;
|
|
142
|
-
--text-xl: 1.25em;
|
|
143
|
-
--text-xl2: 1.3em;
|
|
144
|
-
--text-2xl: 1.5em;
|
|
145
|
-
--text-3xl: 1.875em;
|
|
146
|
-
--text-4xl: 2.25em;
|
|
147
|
-
--text-5xl: 3em;
|
|
148
|
-
--text-6xl: 3.75em;
|
|
149
133
|
}
|
|
150
134
|
}
|
|
151
135
|
|
|
@@ -486,17 +470,6 @@ html {
|
|
|
486
470
|
'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
487
471
|
}
|
|
488
472
|
|
|
489
|
-
|
|
490
|
-
/* Ripple */
|
|
491
|
-
span.ripple {
|
|
492
|
-
position: absolute;
|
|
493
|
-
border-radius: 50%;
|
|
494
|
-
transform: scale(0);
|
|
495
|
-
animation: ripple 600ms linear forwards;
|
|
496
|
-
background-color: rgba(255, 255, 255, 0.094);
|
|
497
|
-
pointer-events: none !important;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
473
|
*,
|
|
501
474
|
::before,
|
|
502
475
|
::after {
|
|
@@ -596,13 +569,6 @@ html {
|
|
|
596
569
|
}
|
|
597
570
|
}
|
|
598
571
|
|
|
599
|
-
@keyframes ripple {
|
|
600
|
-
to {
|
|
601
|
-
transform: scale(4);
|
|
602
|
-
opacity: 0;
|
|
603
|
-
}
|
|
604
|
-
}
|
|
605
|
-
|
|
606
572
|
#icon-picker {
|
|
607
573
|
--iconPicker-text: var(--color-foreground);
|
|
608
574
|
--iconPicker-border: var(--color-border);
|
|
@@ -723,5 +689,5 @@ textarea::-webkit-scrollbar-thumb {
|
|
|
723
689
|
}
|
|
724
690
|
|
|
725
691
|
/* --- Vite Generated CSS --- */
|
|
726
|
-
.accordion-enter-active[data-v-aa189e08],.accordion-leave-active[data-v-aa189e08]{transition:height .3s ease-in-out}.attached-group[data-v-8c9add3e]:not(.vertical-group) button{border-radius:0}.attached-group[data-v-8c9add3e] button{position:relative;--radius: .375rem}.attached-group[data-v-8c9add3e] button:focus-visible,.attached-group[data-v-8c9add3e] button:hover{z-index:10}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child){margin-left:-1px}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius);border-top-right-radius:0;border-bottom-right-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(:last-child){border-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius);border-top-left-radius:0;border-bottom-left-radius:0}.vertical-group[data-v-8c9add3e] button:not(:first-child){margin-top:-1px}.vertical-group[data-v-8c9add3e] button:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(:last-child){border-radius:0}.vertical-group[data-v-8c9add3e] button:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius);border-top-left-radius:0;border-top-right-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(.border):before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background-color:currentColor;opacity:.15;z-index:5;pointer-events:none}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(.border):before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:currentColor;opacity:.15;z-index:5;pointer-events:none;width:auto}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(.border):before{width:100%}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(.border):before{height:100%}.carousel-wrapper[data-v-655a78c8]{width:100%;position:relative}.IroBox{border-radius:8px!important}input[data-v-e7171c4f]::-webkit-outer-spin-button,input[data-v-e7171c4f]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}input[type=number][data-v-e7171c4f]{-moz-appearance:textfield;appearance:textfield}.custom-fields-table[data-v-ce6a94e8] .form-field-item{margin-bottom:0!important;height:100%}.custom-fields-table[data-v-ce6a94e8] input,.custom-fields-table[data-v-ce6a94e8] textarea{padding-left:1em;padding-right:.5em}.custom-fields-table[data-v-ce6a94e8] input,.custom-fields-table[data-v-ce6a94e8] textarea,.custom-fields-table[data-v-ce6a94e8] select,.custom-fields-table[data-v-ce6a94e8] .input-wrapper,.custom-fields-table[data-v-ce6a94e8] .tooltip-trigger button{border:none!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;height:100%!important;min-height:40px}.custom-fields-table[data-v-ce6a94e8] .tooltip-trigger button{justify-content:space-between!important}.custom-fields-table[data-v-ce6a94e8] input:focus,.custom-fields-table[data-v-ce6a94e8] textarea:focus,.custom-fields-table[data-v-ce6a94e8] select:focus,.custom-fields-table[data-v-ce6a94e8] .input-wrapper:focus-within{background-color:hsla(var(--primary) / .03)!important;box-shadow:inset 0 0 0 2px hsla(var(--primary) / .1)!important}.custom-fields-table[data-v-ce6a94e8] .w-full{width:100%;height:100%}.list-enter-active[data-v-ce6a94e8]{transition:all .15s cubic-bezier(.16,1,.3,1)}.list-enter-from[data-v-ce6a94e8]{opacity:0;transform:translateY(-5px)}.form-field-item[data-v-47af145c]{display:flex;flex-direction:column}.form-field-item[data-v-47af145c]:has([role=switch]),.form-field-item[data-v-47af145c]:has([role=checkbox]){flex-direction:row;align-items:center}.form-container[data-v-
|
|
692
|
+
.accordion-enter-active[data-v-aa189e08],.accordion-leave-active[data-v-aa189e08]{transition:height .3s ease-in-out}.attached-group[data-v-8c9add3e]:not(.vertical-group) button{border-radius:0}.attached-group[data-v-8c9add3e] button{position:relative;--radius: .375rem}.attached-group[data-v-8c9add3e] button:focus-visible,.attached-group[data-v-8c9add3e] button:hover{z-index:10}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child){margin-left:-1px}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:first-child{border-top-left-radius:var(--radius);border-bottom-left-radius:var(--radius);border-top-right-radius:0;border-bottom-right-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(:last-child){border-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:last-child{border-top-right-radius:var(--radius);border-bottom-right-radius:var(--radius);border-top-left-radius:0;border-bottom-left-radius:0}.vertical-group[data-v-8c9add3e] button:not(:first-child){margin-top:-1px}.vertical-group[data-v-8c9add3e] button:first-child{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(:last-child){border-radius:0}.vertical-group[data-v-8c9add3e] button:last-child{border-bottom-left-radius:var(--radius);border-bottom-right-radius:var(--radius);border-top-left-radius:0;border-top-right-radius:0}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(.border):before{content:"";position:absolute;left:0;top:0;bottom:0;width:1px;background-color:currentColor;opacity:.15;z-index:5;pointer-events:none}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(.border):before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background-color:currentColor;opacity:.15;z-index:5;pointer-events:none;width:auto}.vertical-group[data-v-8c9add3e] button:not(:first-child):not(.border):before{width:100%}.attached-group[data-v-8c9add3e]:not(.vertical-group) button:not(:first-child):not(.border):before{height:100%}.carousel-wrapper[data-v-655a78c8]{width:100%;position:relative}.IroBox{border-radius:8px!important}input[data-v-e7171c4f]::-webkit-outer-spin-button,input[data-v-e7171c4f]::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}input[type=number][data-v-e7171c4f]{-moz-appearance:textfield;appearance:textfield}.custom-fields-table[data-v-ce6a94e8] .form-field-item{margin-bottom:0!important;height:100%}.custom-fields-table[data-v-ce6a94e8] input,.custom-fields-table[data-v-ce6a94e8] textarea{padding-left:1em;padding-right:.5em}.custom-fields-table[data-v-ce6a94e8] input,.custom-fields-table[data-v-ce6a94e8] textarea,.custom-fields-table[data-v-ce6a94e8] select,.custom-fields-table[data-v-ce6a94e8] .input-wrapper,.custom-fields-table[data-v-ce6a94e8] .tooltip-trigger button{border:none!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;height:100%!important;min-height:40px}.custom-fields-table[data-v-ce6a94e8] .tooltip-trigger button{justify-content:space-between!important}.custom-fields-table[data-v-ce6a94e8] input:focus,.custom-fields-table[data-v-ce6a94e8] textarea:focus,.custom-fields-table[data-v-ce6a94e8] select:focus,.custom-fields-table[data-v-ce6a94e8] .input-wrapper:focus-within{background-color:hsla(var(--primary) / .03)!important;box-shadow:inset 0 0 0 2px hsla(var(--primary) / .1)!important}.custom-fields-table[data-v-ce6a94e8] .w-full{width:100%;height:100%}.list-enter-active[data-v-ce6a94e8]{transition:all .15s cubic-bezier(.16,1,.3,1)}.list-enter-from[data-v-ce6a94e8]{opacity:0;transform:translateY(-5px)}.form-field-item[data-v-47af145c]{display:flex;flex-direction:column}.form-field-item[data-v-47af145c]:has([role=switch]),.form-field-item[data-v-47af145c]:has([role=checkbox]){flex-direction:row;align-items:center}.form-container[data-v-b1fa52ca]{width:100%}.heatmap-container[data-v-00476f00]{width:100%;height:100%;display:flex;flex-direction:column;min-height:0}.heatmap-wrapper[data-v-00476f00]{width:100%;height:100%;overflow:auto;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:16px;box-sizing:border-box;position:relative}.heatmap-grid[data-v-00476f00]{width:fit-content;height:fit-content;transition:all .2s ease-in-out}.heatmap-cell[data-v-00476f00]{aspect-ratio:1 / 1;border-radius:2px;transition:all .15s ease-in-out;border:1px solid transparent;box-sizing:border-box}.heatmap-cell-interactive[data-v-00476f00]{cursor:pointer}.heatmap-cell-interactive[data-v-00476f00]:hover{transform:scale(1.1);border-color:var(--border);box-shadow:0 4px 6px -1px #0000001a,0 2px 4px -2px #0000001a;z-index:10;position:relative}.heatmap-cell-empty[data-v-00476f00]{opacity:.6}.heatmap-cell-hovered[data-v-00476f00]{outline:2px solid var(--primary);outline-offset:1px}.heatmap-cell-label[data-v-00476f00]{font-size:8px;font-weight:500;color:var(--foreground);opacity:.8;display:flex;align-items:center;justify-content:center;height:100%;width:100%;pointer-events:none}.heatmap-legend[data-v-00476f00]{display:flex;align-items:center;gap:.5rem;margin-top:1rem;font-size:.75rem;color:var(--muted-foreground);flex-shrink:0}.heatmap-legend-label[data-v-00476f00]{font-weight:500}.heatmap-legend-colors[data-v-00476f00]{display:flex;gap:.125rem}.heatmap-legend-item[data-v-00476f00]{width:.75rem;height:.75rem;border-radius:.375rem;border:1px solid var(--border)}@media(max-width:640px){.heatmap-wrapper[data-v-00476f00]{padding:12px}.heatmap-cell[data-v-00476f00]{border-radius:2px}.heatmap-cell-label[data-v-00476f00]{font-size:7px}}@media(min-width:641px)and (max-width:1023px){.heatmap-wrapper[data-v-00476f00]{padding:14px}.heatmap-cell[data-v-00476f00]{border-radius:2px}}@media(min-width:1024px){.heatmap-wrapper[data-v-00476f00]{padding:16px}.heatmap-cell[data-v-00476f00]{border-radius:3px}}.custom-scrollbar[data-v-9ac38977]::-webkit-scrollbar{width:0px}.custom-scrollbar[data-v-9ac38977]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar[data-v-9ac38977]::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:10px}.custom-scrollbar-x[data-v-11bc76c9]::-webkit-scrollbar{height:8px}.custom-scrollbar-x[data-v-11bc76c9]::-webkit-scrollbar-track{background:transparent}.custom-scrollbar-x[data-v-11bc76c9]::-webkit-scrollbar-thumb{background-color:var(--color-border);border-radius:10px}.masonry-item[data-v-c29d0159]{content-visibility:auto;contain-intrinsic-size:1px 200px}.slide-right-enter-active[data-v-495f8aa0],.slide-right-leave-active[data-v-495f8aa0],.slide-left-enter-active[data-v-495f8aa0],.slide-left-leave-active[data-v-495f8aa0]{transition:transform .3s ease-in-out}.slide-right-enter-from[data-v-495f8aa0],.slide-right-leave-to[data-v-495f8aa0]{transform:translate(100%)}.slide-left-enter-from[data-v-495f8aa0],.slide-left-leave-to[data-v-495f8aa0]{transform:translate(-100%)}.sidebar-manu-item .tooltip-trigger{width:100%!important}.sidebar-menu-tooltip{margin-left:4px!important}[dir=rtl] .sidebar-menu-tooltip{margin-right:4px!important}.first-toast-enter-active[data-v-6b631840]{animation:first-toast-in-6b631840 .45s cubic-bezier(.23,1,.32,1) forwards}.first-toast-leave-active[data-v-6b631840]{transition:all .25s ease-in}.first-toast-leave-to[data-v-6b631840]{opacity:0;transform:scale(.98)}@keyframes first-toast-in-6b631840{0%{opacity:var(--entrance-opacity, .6);transform:translateY(var(--entrance-offset, 25px)) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.stack-toast-enter-active[data-v-6b631840],.stack-toast-leave-active[data-v-6b631840]{transition:all .3s cubic-bezier(.16,1,.3,1)}.stack-toast-enter-from[data-v-6b631840]{opacity:0;transform:scale(.95) translateY(10px)}.stack-toast-leave-to[data-v-6b631840]{opacity:0;transform:scale(.95)}.stack-toast-move[data-v-6b631840]{transition:transform .4s cubic-bezier(.16,1,.3,1)}.bg-stripe[data-v-454a1505]{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:1rem 1rem}.animate-progress-stripe[data-v-454a1505]{animation:progress-stripe-454a1505 1s linear infinite}@keyframes progress-stripe-454a1505{0%{background-position:1rem 0}to{background-position:0 0}}.animate-progress-indeterminate[data-v-454a1505]{animation:progress-indeterminate-454a1505 1.5s infinite cubic-bezier(.65,.815,.735,.395)}@keyframes progress-indeterminate-454a1505{0%{transform:translate(-100%) scaleX(.2)}50%{transform:translate(0) scaleX(.5)}to{transform:translate(100%) scaleX(.2)}}
|
|
727
693
|
|
package/directives/vRipple.d.ts
DELETED
package/directives/vRipple.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const c = (e, i) => {
|
|
2
|
-
const n = i.getBoundingClientRect(), s = e.clientX - n.left, l = e.clientY - n.top, t = document.createElement("span"), p = Math.max(n.width, n.height), o = p / 2;
|
|
3
|
-
t.style.width = t.style.height = `${p}px`, t.style.left = `${s - o}px`, t.style.top = `${l - o}px`, t.style.position = "absolute", t.style.pointerEvents = "none", t.classList.add("ripple"), i.querySelectorAll(".ripple").forEach((r) => r.remove()), i.appendChild(t), setTimeout(() => {
|
|
4
|
-
t && t.parentNode && t.remove();
|
|
5
|
-
}, 600);
|
|
6
|
-
}, a = {
|
|
7
|
-
mounted(e) {
|
|
8
|
-
window.getComputedStyle(e).position === "static" && (e.style.position = "relative"), e.style.overflow = "hidden", e._rippleHandler = (i) => c(i, e), e.addEventListener("click", e._rippleHandler);
|
|
9
|
-
},
|
|
10
|
-
unmounted(e) {
|
|
11
|
-
e._rippleHandler && e.removeEventListener("click", e._rippleHandler), e.querySelectorAll(".ripple").forEach((n) => n.remove());
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
a as vRipple
|
|
16
|
-
};
|