vlite3 1.2.8 → 1.2.10

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.
Files changed (32) hide show
  1. package/components/Button.vue.d.ts +5 -1
  2. package/components/Button.vue.js +164 -72
  3. package/components/CategoryManager/CategoryManager.vue.js +1 -1
  4. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  5. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  6. package/components/Dropdown/Dropdown.vue.d.ts +3 -3
  7. package/components/Dropdown/Dropdown.vue.js +14 -14
  8. package/components/Dropdown/DropdownGroupedLayout.vue.js +12 -12
  9. package/components/Dropdown/DropdownMenu.vue.d.ts +1 -1
  10. package/components/Dropdown/DropdownMenu.vue.js +2 -2
  11. package/components/Dropdown/DropdownMenu.vue2.js +1 -1
  12. package/components/Form/FormFields.vue.js +1 -1
  13. package/components/Form/FormFields.vue2.js +29 -25
  14. package/components/ImportData/ImportStep2.vue.js +0 -1
  15. package/components/Input.vue.js +6 -5
  16. package/components/Label.vue.d.ts +5 -2
  17. package/components/Label.vue.js +18 -11
  18. package/components/MultiSelect/MultiSelect.vue.d.ts +1 -1
  19. package/components/Screen/ScreenFilter.vue.js +1 -1
  20. package/components/Splitter/Splitter.vue.d.ts +1 -1
  21. package/components/Tabes/Tabes.vue.js +2 -2
  22. package/components/Tabes/Tabes.vue2.js +53 -51
  23. package/components/Workbook/Sheet.vue.js +61 -57
  24. package/components/Workbook/Workbook.vue.js +2 -2
  25. package/components/Workbook/Workbook.vue2.js +25 -25
  26. package/components/Workbook/WorkbookAddButton.vue.js +9 -8
  27. package/directives/vRipple.d.ts +3 -1
  28. package/directives/vRipple.js +11 -11
  29. package/package.json +1 -1
  30. package/style.css +22 -3
  31. package/types/button.d.ts +2 -0
  32. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
@@ -1,22 +1,23 @@
1
- import { defineComponent as N, ref as g, computed as v, openBlock as a, createElementBlock as d, normalizeClass as D, createElementVNode as c, withModifiers as p, createBlock as y, withCtx as h, createVNode as u, createCommentVNode as w, withDirectives as O, vModelText as j, toDisplayString as C, unref as M, createTextVNode as R, nextTick as z } from "vue";
2
- import m from "../Icon.vue.js";
1
+ import { defineComponent as N, ref as y, computed as f, openBlock as a, createElementBlock as d, normalizeClass as D, createElementVNode as c, withModifiers as v, createBlock as g, withCtx as p, createVNode as u, createCommentVNode as w, withDirectives as O, vModelText as j, toDisplayString as C, unref as z, createTextVNode as M, nextTick as R } from "vue";
2
+ import h from "../Icon.vue.js";
3
3
  import A from "../Dropdown/Dropdown.vue.js";
4
4
  import { $t as s } from "../../utils/i18n.js";
5
5
  /* empty css */
6
6
  /* empty css */
7
- import K from "../IconPicker.vue.js";
8
- const U = {
7
+ import K from "../Button.vue.js";
8
+ import U from "../IconPicker.vue.js";
9
+ const q = {
9
10
  type: "button",
10
11
  class: "flex items-center justify-center rounded hover:bg-accent transition-colors p-0.5 outline-none focus-visible:ring-2 focus-visible:ring-primary/20 mt-1"
11
- }, q = {
12
+ }, F = {
12
13
  key: 1,
13
14
  class: "flex items-center justify-center p-0.5"
14
- }, F = { class: "flex-1 min-w-0 pr-1" }, G = {
15
+ }, G = { class: "flex-1 min-w-0 pr-1" }, H = {
15
16
  key: 1,
16
17
  class: "block truncate text-sm font-medium leading-normal"
17
- }, H = { class: "p-1 rounded-md hover:bg-accent text-muted-foreground hover:text-foreground transition-colors" }, J = {
18
+ }, J = {
18
19
  class: /* @__PURE__ */ D(["flex items-center"])
19
- }, _ = /* @__PURE__ */ N({
20
+ }, ee = /* @__PURE__ */ N({
20
21
  __name: "Sheet",
21
22
  props: {
22
23
  sheet: {},
@@ -31,20 +32,22 @@ const U = {
31
32
  inactiveItemClass: { default: "" }
32
33
  },
33
34
  emits: ["select", "update:title", "update:icon", "edit-start", "edit-end", "duplicate", "delete"],
34
- setup(o, { emit: E }) {
35
- const e = o, n = E, f = g(null), r = g(e.sheet.title), T = v(() => e.sheet.titleI18n ? s(e.sheet.titleI18n) : e.sheet.title), k = () => {
36
- r.value = e.sheet.title, n("edit-start", e.sheet.id), z(() => {
37
- f.value?.focus(), f.value?.select();
35
+ setup(n, { emit: E }) {
36
+ const e = n, o = E, m = y(null), r = y(e.sheet.title), T = f(
37
+ () => e.sheet.titleI18n ? s(e.sheet.titleI18n) : e.sheet.title
38
+ ), k = () => {
39
+ r.value = e.sheet.title, o("edit-start", e.sheet.id), R(() => {
40
+ m.value?.focus(), m.value?.select();
38
41
  });
39
- }, b = () => {
42
+ }, x = () => {
40
43
  if (!e.isEditing) return;
41
44
  const t = r.value.trim();
42
- t ? n("update:title", e.sheet.id, t) : r.value = e.sheet.title, n("edit-end", e.sheet.id);
45
+ t ? o("update:title", e.sheet.id, t) : r.value = e.sheet.title, o("edit-end", e.sheet.id);
43
46
  }, B = () => {
44
- r.value = e.sheet.title, n("edit-end", e.sheet.id);
47
+ r.value = e.sheet.title, o("edit-end", e.sheet.id);
45
48
  }, I = (t) => {
46
- t.key === "Enter" && b(), t.key === "Escape" && B();
47
- }, $ = v(() => [
49
+ t.key === "Enter" && x(), t.key === "Escape" && B();
50
+ }, $ = f(() => [
48
51
  {
49
52
  label: s("vlite.workbook.rename") !== "vlite.workbook.rename" ? s("vlite.workbook.rename") : "Rename",
50
53
  value: "rename",
@@ -68,18 +71,18 @@ const U = {
68
71
  cancelText: e.confirmDeleteTexts?.cancel,
69
72
  variant: "danger",
70
73
  onConfirm: () => {
71
- e.canDelete && n("delete", e.sheet.id);
74
+ e.canDelete && o("delete", e.sheet.id);
72
75
  }
73
76
  } : void 0
74
77
  }
75
78
  ]), S = (t) => {
76
- if (t.value === "rename" && k(), t.value === "duplicate" && n("duplicate", e.sheet.id), t.value === "delete") {
79
+ if (t.value === "rename" && k(), t.value === "duplicate" && o("duplicate", e.sheet.id), t.value === "delete") {
77
80
  if (!e.canDelete || e.confirmDelete) return;
78
- n("delete", e.sheet.id);
81
+ o("delete", e.sheet.id);
79
82
  }
80
- }, x = (t) => {
81
- t && t.value && t.value !== "delete" || e.canDelete && n("delete", e.sheet.id);
82
- }, V = v(() => [
83
+ }, b = (t) => {
84
+ t && t.value && t.value !== "delete" || e.canDelete && o("delete", e.sheet.id);
85
+ }, V = f(() => [
83
86
  "group relative flex items-center min-w-[120px] max-w-[240px] h-9 px-3 border-r border-border select-none cursor-pointer transition-all duration-200 ease-out",
84
87
  e.itemClass,
85
88
  e.isActive ? `bg-muted text-foreground ring-1 ring-border ring-b-0 z-10 ${e.activeItemClass}` : `text-muted-foreground hover:bg-accent/50 ${e.inactiveItemClass}`,
@@ -87,82 +90,83 @@ const U = {
87
90
  ].filter(Boolean).join(" "));
88
91
  return (t, i) => (a(), d("div", {
89
92
  class: D(V.value),
90
- onClick: i[5] || (i[5] = (l) => n("select", o.sheet.id)),
93
+ onClick: i[5] || (i[5] = (l) => o("select", n.sheet.id)),
91
94
  onDblclick: k
92
95
  }, [
93
96
  c("div", {
94
- onClick: i[1] || (i[1] = p(() => {
97
+ onClick: i[1] || (i[1] = v(() => {
95
98
  }, ["stop"])),
96
99
  class: "mr-2 flex items-center shrink-0"
97
100
  }, [
98
- (o.sheet.icon || o.isEditing) && o.allowIconChange ? (a(), y(K, {
101
+ (n.sheet.icon || n.isEditing) && n.allowIconChange ? (a(), g(U, {
99
102
  key: 0,
100
- value: o.sheet.icon || "lucide:file",
103
+ value: n.sheet.icon || "lucide:file",
101
104
  position: "bottom-start",
102
- onOnSelect: i[0] || (i[0] = (l) => n("update:icon", o.sheet.id, l))
105
+ onOnSelect: i[0] || (i[0] = (l) => o("update:icon", n.sheet.id, l))
103
106
  }, {
104
- default: h(() => [
105
- c("button", U, [
106
- u(m, {
107
- icon: o.sheet.icon || "lucide:file",
107
+ default: p(() => [
108
+ c("button", q, [
109
+ u(h, {
110
+ icon: n.sheet.icon || "lucide:file",
108
111
  class: "w-4 h-4 opacity-70 hover:opacity-100 transition-opacity"
109
112
  }, null, 8, ["icon"])
110
113
  ])
111
114
  ]),
112
115
  _: 1
113
- }, 8, ["value"])) : o.sheet.icon ? (a(), d("div", q, [
114
- u(m, {
115
- icon: o.sheet.icon,
116
+ }, 8, ["value"])) : n.sheet.icon ? (a(), d("div", F, [
117
+ u(h, {
118
+ icon: n.sheet.icon,
116
119
  class: "w-4 h-4 opacity-70"
117
120
  }, null, 8, ["icon"])
118
121
  ])) : w("", !0)
119
122
  ]),
120
- c("div", F, [
121
- o.isEditing ? O((a(), d("input", {
123
+ c("div", G, [
124
+ n.isEditing ? O((a(), d("input", {
122
125
  key: 0,
123
126
  ref_key: "inputRef",
124
- ref: f,
127
+ ref: m,
125
128
  "onUpdate:modelValue": i[2] || (i[2] = (l) => r.value = l),
126
129
  type: "text",
127
130
  class: "w-full bg-transparent border-none outline-none p-0 text-sm font-medium text-foreground placeholder-muted-foreground focus:ring-0",
128
- onBlur: b,
131
+ onBlur: x,
129
132
  onKeydown: I,
130
- onClick: i[3] || (i[3] = p(() => {
133
+ onClick: i[3] || (i[3] = v(() => {
131
134
  }, ["stop"]))
132
135
  }, null, 544)), [
133
136
  [j, r.value]
134
- ]) : (a(), d("span", G, C(T.value), 1))
137
+ ]) : (a(), d("span", H, C(T.value), 1))
135
138
  ]),
136
139
  c("div", {
137
- class: "opacity-0 group-hover:opacity-100 transition-opacity ml-auto pl-1 flex items-center bg-inherit",
138
- onClick: i[4] || (i[4] = p(() => {
140
+ class: "opacity-0 group-hover:opacity-100 transition-opacity ml-auto pl-1 -mr-2 flex items-center",
141
+ onClick: i[4] || (i[4] = v(() => {
139
142
  }, ["stop"]))
140
143
  }, [
141
- u(M(A), {
144
+ u(z(A), {
142
145
  options: $.value,
143
146
  position: "bottom-end",
144
147
  width: "140px",
145
148
  teleport: !0,
146
149
  onOnSelect: S,
147
- onOnConfirm: x,
148
- onConfirm: x
150
+ onOnConfirm: b,
151
+ onConfirm: b
149
152
  }, {
150
- trigger: h(() => [
151
- c("button", H, [
152
- u(m, {
153
- icon: "lucide:more-vertical",
154
- class: "w-3.5 h-3.5"
155
- })
156
- ])
153
+ trigger: p(() => [
154
+ u(K, {
155
+ icon: "lucide:more-vertical",
156
+ asIcon: "",
157
+ size: "xs",
158
+ rounded: "full",
159
+ variant: "ghost"
160
+ })
157
161
  ]),
158
- item: h(({ option: l }) => [
162
+ item: p(({ option: l }) => [
159
163
  c("div", J, [
160
- l?.icon ? (a(), y(m, {
164
+ l?.icon ? (a(), g(h, {
161
165
  key: 0,
162
166
  icon: l?.icon,
163
167
  class: "w-3.5 h-3.5 mr-2 opacity-70"
164
168
  }, null, 8, ["icon"])) : w("", !0),
165
- R(" " + C(l?.label), 1)
169
+ M(" " + C(l?.label), 1)
166
170
  ])
167
171
  ]),
168
172
  _: 1
@@ -172,5 +176,5 @@ const U = {
172
176
  }
173
177
  });
174
178
  export {
175
- _ as default
179
+ ee as default
176
180
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./Workbook.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-a5e9ca6f"]]);
4
+ const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-8d484d8e"]]);
5
5
  export {
6
- m as default
6
+ _ as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, ref as y, shallowRef as P, watch as A, computed as M, openBlock as o, createElementBlock as c, createElementVNode as r, renderSlot as v, createCommentVNode as m, createVNode as g, unref as W, withCtx as Y, Fragment as z, renderList as F, isMemoSame as R, createBlock as j } from "vue";
1
+ import { defineComponent as N, ref as C, shallowRef as P, watch as z, computed as A, openBlock as o, createElementBlock as c, createElementVNode as r, renderSlot as v, createCommentVNode as m, createVNode as g, unref as M, withCtx as W, Fragment as Y, renderList as j, isMemoSame as F, createBlock as R } from "vue";
2
2
  import { VueDraggable as q } from "vue-draggable-plus";
3
3
  import G from "./Sheet.vue.js";
4
4
  import p from "./WorkbookAddButton.vue.js";
@@ -7,7 +7,7 @@ const H = { class: "flex flex-col w-full font-sans" }, J = { class: "flex items-
7
7
  class: "flex items-center"
8
8
  }, O = {
9
9
  key: 0,
10
- class: "shrink-0 mb-1"
10
+ class: "shrink-0 sticky right-0 z-10 bg-white flex items-center justify-center h-full"
11
11
  }, Q = { class: "flex items-center mb-0.5 z-20 sticky right-0 ml-auto box-decoration-clone" }, X = { key: 0 }, Z = { key: 1 }, _ = { class: "flex-1 relative bg-white w-full" }, ne = /* @__PURE__ */ N({
12
12
  __name: "Workbook",
13
13
  props: {
@@ -29,63 +29,63 @@ const H = { class: "flex flex-col w-full font-sans" }, J = { class: "flex items-
29
29
  },
30
30
  emits: ["update:modelValue", "update:sheets", "change", "add", "delete", "duplicate", "edit-start", "edit-end"],
31
31
  setup(a, { emit: I }) {
32
- const i = a, d = I, h = y(null), u = y(null), s = P([...i.sheets]);
33
- A(
32
+ const i = a, s = I, h = C(null), u = C(null), d = P([...i.sheets]);
33
+ z(
34
34
  () => i.sheets,
35
35
  (e) => {
36
36
  let n = !1;
37
- if (e.length !== s.value.length)
37
+ if (e.length !== d.value.length)
38
38
  n = !0;
39
39
  else
40
40
  for (let t = 0; t < e.length; t++)
41
- if (e[t] !== s.value[t] || e[t].id !== s.value[t].id) {
41
+ if (e[t] !== d.value[t] || e[t].id !== d.value[t].id) {
42
42
  n = !0;
43
43
  break;
44
44
  }
45
- n && (s.value = [...e]);
45
+ n && (d.value = [...e]);
46
46
  },
47
47
  { deep: !0 }
48
48
  // Must be true so parent mutating the array via .push() correctly triggers the watcher
49
49
  );
50
50
  const D = (e) => {
51
- s.value = e, d("update:sheets", e);
51
+ d.value = e, s("update:sheets", e);
52
52
  }, V = (e) => {
53
- d("update:modelValue", e), d("change", e);
53
+ s("update:modelValue", e), s("change", e);
54
54
  }, x = () => {
55
- i.sheets.length >= i.maxSheets || d("add");
55
+ i.sheets.length >= i.maxSheets || s("add");
56
56
  }, B = (e, n) => {
57
57
  const t = i.sheets.findIndex((l) => l.id === e);
58
58
  if (t !== -1) {
59
59
  const l = [...i.sheets];
60
- l[t] = { ...l[t], title: n }, d("update:sheets", l);
60
+ l[t] = { ...l[t], title: n }, s("update:sheets", l);
61
61
  }
62
62
  }, S = (e, n) => {
63
63
  const t = i.sheets.findIndex((l) => l.id === e);
64
64
  if (t !== -1) {
65
65
  const l = [...i.sheets];
66
- l[t] = { ...l[t], icon: n }, d("update:sheets", l);
66
+ l[t] = { ...l[t], icon: n }, s("update:sheets", l);
67
67
  }
68
68
  }, E = (e) => {
69
- u.value = e, d("edit-start", e);
69
+ u.value = e, s("edit-start", e);
70
70
  }, U = (e) => {
71
- u.value = null, d("edit-end", e);
71
+ u.value = null, s("edit-end", e);
72
72
  }, $ = (e) => {
73
- d("duplicate", e);
73
+ s("duplicate", e);
74
74
  }, T = (e) => {
75
75
  const n = i.sheets.findIndex((l) => l.id === e);
76
76
  if (n === -1) return;
77
77
  const t = [...i.sheets];
78
- if (t.splice(n, 1), d("update:sheets", t), d("delete", e), i.modelValue === e) {
78
+ if (t.splice(n, 1), s("update:sheets", t), s("delete", e), i.modelValue === e) {
79
79
  let l = "";
80
80
  if (t.length > 0) {
81
81
  const k = Math.min(n, t.length - 1);
82
82
  l = t[k].id;
83
83
  }
84
- d("update:modelValue", l), d("change", l);
84
+ s("update:modelValue", l), s("change", l);
85
85
  }
86
86
  }, L = (e) => {
87
87
  h.value && e.deltaY !== 0 && (h.value.scrollLeft += e.deltaY, e.preventDefault());
88
- }, b = M(() => i.sheets.length > 1);
88
+ }, b = A(() => i.sheets.length > 1);
89
89
  return (e, n) => (o(), c("div", H, [
90
90
  r("div", J, [
91
91
  e.$slots["left-addons"] ? (o(), c("div", K, [
@@ -98,15 +98,15 @@ const H = { class: "flex flex-col w-full font-sans" }, J = { class: "flex items-
98
98
  style: { "scrollbar-width": "none", "-ms-overflow-style": "none" },
99
99
  onWheel: L
100
100
  }, [
101
- g(W(q), {
102
- "model-value": s.value,
101
+ g(M(q), {
102
+ "model-value": d.value,
103
103
  "onUpdate:modelValue": D,
104
104
  disabled: !i.draggable || !!u.value,
105
105
  animation: 150,
106
106
  class: "flex items-end min-w-max"
107
107
  }, {
108
- default: Y(() => [
109
- (o(!0), c(z, null, F(s.value, (t, l, k, f) => {
108
+ default: W(() => [
109
+ (o(!0), c(Y, null, j(d.value, (t, l, k, f) => {
110
110
  const w = [
111
111
  t.id,
112
112
  t.title,
@@ -117,8 +117,8 @@ const H = { class: "flex flex-col w-full font-sans" }, J = { class: "flex items-
117
117
  a.confirmDelete,
118
118
  a.allowIconChange
119
119
  ];
120
- if (f && f.key === t.id && R(f, w)) return f;
121
- const C = (o(), j(G, {
120
+ if (f && f.key === t.id && F(f, w)) return f;
121
+ const y = (o(), R(G, {
122
122
  key: t.id,
123
123
  sheet: t,
124
124
  "is-active": a.modelValue === t.id,
@@ -138,7 +138,7 @@ const H = { class: "flex flex-col w-full font-sans" }, J = { class: "flex items-
138
138
  onDuplicate: $,
139
139
  onDelete: T
140
140
  }, null, 8, ["sheet", "is-active", "is-editing", "can-delete", "confirm-delete", "confirm-delete-texts", "allow-icon-change", "item-class", "active-item-class", "inactive-item-class"]));
141
- return C.memo = w, C;
141
+ return y.memo = w, y;
142
142
  }, n, 0), 128))
143
143
  ]),
144
144
  _: 1
@@ -1,24 +1,25 @@
1
- import { defineComponent as c, computed as l, openBlock as m, createBlock as s } from "vue";
2
- import d from "../Button.vue.js";
1
+ import { defineComponent as l, computed as c, openBlock as s, createBlock as d } from "vue";
2
+ import m from "../Button.vue.js";
3
3
  import { $t as u } from "../../utils/i18n.js";
4
- const f = /* @__PURE__ */ c({
4
+ const _ = /* @__PURE__ */ l({
5
5
  __name: "WorkbookAddButton",
6
6
  emits: ["click"],
7
- setup(k, { emit: o }) {
8
- const n = o, i = l(() => {
7
+ setup(a, { emit: o }) {
8
+ const n = o, i = c(() => {
9
9
  const t = u("vlite.workbook.addSheet");
10
10
  return t !== "vlite.workbook.addSheet" ? t : "Add New Sheet";
11
11
  });
12
- return (t, e) => (m(), s(d, {
12
+ return (t, e) => (s(), d(m, {
13
13
  variant: "ghost",
14
- size: "sm",
14
+ size: "md",
15
15
  icon: "lucide:plus",
16
16
  title: i.value,
17
17
  rounded: "none",
18
+ class: "h-full!",
18
19
  onClick: e[0] || (e[0] = (r) => n("click", r))
19
20
  }, null, 8, ["title"]));
20
21
  }
21
22
  });
22
23
  export {
23
- f as default
24
+ _ as default
24
25
  };
@@ -2,7 +2,9 @@ interface RippleElement extends HTMLElement {
2
2
  _rippleHandler?: (ev: MouseEvent) => void;
3
3
  }
4
4
  export declare const vRipple: {
5
- mounted(el: RippleElement): void;
5
+ mounted(el: RippleElement, binding: {
6
+ value?: boolean;
7
+ }): void;
6
8
  unmounted(el: RippleElement): void;
7
9
  };
8
10
  export {};
@@ -1,8 +1,8 @@
1
- const y = (e, t) => {
2
- const i = t.getBoundingClientRect(), p = e.clientX - i.left, d = e.clientY - i.top, s = Math.max(i.width, i.height), c = s / 2;
1
+ const f = (e, t) => {
2
+ const o = t.getBoundingClientRect(), p = e.clientX - o.left, d = e.clientY - o.top, s = Math.max(o.width, o.height), c = s / 2;
3
3
  t.querySelectorAll(".ripple").forEach((r) => r.remove());
4
- const o = document.createElement("span");
5
- o.style.cssText = `
4
+ const n = document.createElement("span");
5
+ n.style.cssText = `
6
6
  width: ${s}px;
7
7
  height: ${s}px;
8
8
  left: ${p - c}px;
@@ -14,22 +14,22 @@ const y = (e, t) => {
14
14
  opacity: 0;
15
15
  will-change: transform, opacity;
16
16
  background-color: rgba(255, 255, 255, 1);
17
- `, o.classList.add("ripple"), t.appendChild(o);
17
+ `, n.classList.add("ripple"), t.appendChild(n);
18
18
  let a = null;
19
19
  const m = 400, l = (r) => {
20
20
  a || (a = r);
21
- const n = Math.min((r - a) / m, 1), u = (1 - Math.pow(1 - n, 3)) * 2.5, h = n < 0.4 ? n * 0.2 : 0.08 * (1 - (n - 0.4) / 0.6);
22
- o.style.transform = `scale(${u})`, o.style.opacity = `${h}`, n < 1 ? requestAnimationFrame(l) : o.remove();
21
+ const i = Math.min((r - a) / m, 1), u = (1 - Math.pow(1 - i, 3)) * 2.5, h = i < 0.4 ? i * 0.2 : 0.08 * (1 - (i - 0.4) / 0.6);
22
+ n.style.transform = `scale(${u})`, n.style.opacity = `${h}`, i < 1 ? requestAnimationFrame(l) : n.remove();
23
23
  };
24
24
  requestAnimationFrame(l);
25
- }, g = {
26
- mounted(e) {
27
- window.getComputedStyle(e).position === "static" && (e.style.position = "relative"), e.style.overflow = "hidden", e._rippleHandler = (t) => y(t, e), e.addEventListener("click", e._rippleHandler);
25
+ }, v = {
26
+ mounted(e, t) {
27
+ t.value !== !1 && (window.getComputedStyle(e).position === "static" && (e.style.position = "relative"), e.style.overflow = "hidden", e._rippleHandler = (o) => f(o, e), e.addEventListener("click", e._rippleHandler));
28
28
  },
29
29
  unmounted(e) {
30
30
  e._rippleHandler && e.removeEventListener("click", e._rippleHandler), e.querySelectorAll(".ripple").forEach((t) => t.remove());
31
31
  }
32
32
  };
33
33
  export {
34
- g as vRipple
34
+ v as vRipple
35
35
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.2.8",
6
+ "version": "1.2.10",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",