@kiva/kv-components 5.3.0 → 5.3.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/dist/vue/KvSideSheet.js +8 -8
- package/package.json +2 -2
package/dist/vue/KvSideSheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as T, ref as
|
|
1
|
+
import { toRefs as T, ref as f, watch as E, resolveComponent as B, openBlock as g, createElementBlock as S, normalizeClass as c, withModifiers as _, createElementVNode as d, normalizeStyle as z, createVNode as b, createCommentVNode as C, renderSlot as F } from "vue";
|
|
2
2
|
import { mdiClose as K, mdiLaunch as N } from "@mdi/js";
|
|
3
3
|
import V from "./KvMaterialIcon.js";
|
|
4
4
|
import j from "../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -50,15 +50,15 @@ const G = {
|
|
|
50
50
|
const {
|
|
51
51
|
visible: a,
|
|
52
52
|
kvTrackFunction: t,
|
|
53
|
-
trackEventCategory:
|
|
53
|
+
trackEventCategory: m,
|
|
54
54
|
animationSourceElement: r
|
|
55
|
-
} = T(w), n =
|
|
55
|
+
} = T(w), n = f(!1), i = f({}), s = f({});
|
|
56
56
|
let u = null;
|
|
57
|
-
const
|
|
57
|
+
const v = () => {
|
|
58
58
|
const l = "tw-overflow-hidden";
|
|
59
59
|
n.value ? document.body.classList.add(l) : document.body.classList.remove(l);
|
|
60
60
|
}, y = () => {
|
|
61
|
-
n.value = !1,
|
|
61
|
+
n.value = !1, v(), t.value(m.value, "click", "side-sheet-closed"), r.value && (s.value = {
|
|
62
62
|
...i.value,
|
|
63
63
|
transition: "all 0.5s ease-in-out"
|
|
64
64
|
}), setTimeout(() => {
|
|
@@ -73,7 +73,7 @@ const G = {
|
|
|
73
73
|
var l;
|
|
74
74
|
if (a.value) {
|
|
75
75
|
document.addEventListener("keyup", u), setTimeout(() => {
|
|
76
|
-
n.value = !0,
|
|
76
|
+
n.value = !0, v();
|
|
77
77
|
}, 100);
|
|
78
78
|
const e = (l = r.value) == null ? void 0 : l.getBoundingClientRect(), h = (e == null ? void 0 : e.top) ?? 0, L = (e == null ? void 0 : e.left) ?? 0, p = (e == null ? void 0 : e.width) ?? 0, k = (e == null ? void 0 : e.height) ?? 0;
|
|
79
79
|
h || L || p || k ? (i.value = {
|
|
@@ -87,7 +87,7 @@ const G = {
|
|
|
87
87
|
}, setTimeout(() => {
|
|
88
88
|
s.value = {
|
|
89
89
|
top: "0",
|
|
90
|
-
width: "
|
|
90
|
+
width: "100%",
|
|
91
91
|
height: "100%",
|
|
92
92
|
transition: "all 0.5s ease-in-out"
|
|
93
93
|
};
|
|
@@ -103,7 +103,7 @@ const G = {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
|
-
function M(w, o, a, t,
|
|
106
|
+
function M(w, o, a, t, m, r) {
|
|
107
107
|
const n = B("kv-material-icon");
|
|
108
108
|
return a.visible ? (g(), S("div", {
|
|
109
109
|
key: 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -106,5 +106,5 @@
|
|
|
106
106
|
"embla-carousel-fade",
|
|
107
107
|
"popper.js"
|
|
108
108
|
],
|
|
109
|
-
"gitHead": "
|
|
109
|
+
"gitHead": "88b1926c2f4cd748e6be886e11a5fd3843261cd2"
|
|
110
110
|
}
|