@kiva/kv-components 6.21.1 → 6.22.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 +17 -16
- package/package.json +2 -2
package/dist/vue/KvSideSheet.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as J, ref as w, reactive as P, computed as z, onMounted as Q, onUnmounted as j, watch as p, resolveComponent as Y, openBlock as k, createElementBlock as b, normalizeClass as x, withModifiers as Z, createElementVNode as
|
|
1
|
+
import { toRefs as J, ref as w, reactive as P, computed as z, onMounted as Q, onUnmounted as j, watch as p, resolveComponent as Y, openBlock as k, createElementBlock as b, normalizeClass as x, withModifiers as Z, createElementVNode as h, normalizeStyle as W, createVNode as _, createCommentVNode as S, toDisplayString as $, renderSlot as U, nextTick as ee } from "vue";
|
|
2
2
|
import { mdiArrowLeft as te, mdiClose as oe, mdiExportVariant as ne } from "@mdi/js";
|
|
3
3
|
import ie from "./KvMaterialIcon.js";
|
|
4
4
|
import le from "../_virtual/_plugin-vue_export-helper.js";
|
|
@@ -81,7 +81,7 @@ const ae = {
|
|
|
81
81
|
visible: t,
|
|
82
82
|
kvTrackFunction: V,
|
|
83
83
|
trackEventCategory: K,
|
|
84
|
-
animationSourceElement:
|
|
84
|
+
animationSourceElement: f,
|
|
85
85
|
widthDimensions: i
|
|
86
86
|
} = J(l), u = w(!1), B = w({}), s = w({}), L = w(null), m = w(null), y = w(null), M = w(window.innerHeight), D = w(window.innerWidth), v = P({
|
|
87
87
|
headline: 0,
|
|
@@ -162,7 +162,7 @@ const ae = {
|
|
|
162
162
|
document.addEventListener("keyup", H), s.value = {}, setTimeout(() => {
|
|
163
163
|
u.value = !0, O(), E();
|
|
164
164
|
}, 10);
|
|
165
|
-
const o = (n =
|
|
165
|
+
const o = (n = f.value) == null ? void 0 : n.getBoundingClientRect(), d = (o == null ? void 0 : o.top) ?? 0, g = (o == null ? void 0 : o.left) ?? 0, c = (o == null ? void 0 : o.width) ?? 0, R = (o == null ? void 0 : o.height) ?? 0;
|
|
166
166
|
o && (d || g || c || R) && (B.value = {
|
|
167
167
|
position: "fixed",
|
|
168
168
|
top: `${d}px`,
|
|
@@ -182,7 +182,7 @@ const ae = {
|
|
|
182
182
|
};
|
|
183
183
|
}, 10));
|
|
184
184
|
} else
|
|
185
|
-
u.value = !1, O(), document.removeEventListener("keyup", H),
|
|
185
|
+
u.value = !1, O(), document.removeEventListener("keyup", H), f.value && Object.keys(B.value).length > 0 ? s.value = {
|
|
186
186
|
...B.value,
|
|
187
187
|
transition: "all 0.3s ease-in-out"
|
|
188
188
|
} : s.value = {};
|
|
@@ -246,7 +246,7 @@ const ae = {
|
|
|
246
246
|
}
|
|
247
247
|
}, se = { class: "tw-flex tw-gap-1.5" }, re = { key: 1 }, de = { class: "tw-flex tw-gap-1.5" };
|
|
248
248
|
function ce(l, a, r, t, V, K) {
|
|
249
|
-
const
|
|
249
|
+
const f = Y("kv-material-icon");
|
|
250
250
|
return r.visible ? (k(), b("div", {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: x(["tw-block lg:tw-mt-0 tw-fixed tw-inset-0 tw-bg-black tw-transition-all md:tw-duration-150 tw-z-modal", {
|
|
@@ -255,7 +255,7 @@ function ce(l, a, r, t, V, K) {
|
|
|
255
255
|
}]),
|
|
256
256
|
onClick: a[3] || (a[3] = Z((...i) => t.closeSideSheet && t.closeSideSheet(...i), ["self"]))
|
|
257
257
|
}, [
|
|
258
|
-
|
|
258
|
+
h("div", {
|
|
259
259
|
ref: "sideSheetRef",
|
|
260
260
|
class: x(["tw-fixed tw-right-0 tw-transition-all tw-duration-300 tw-bg-white tw-overflow-y-auto", {
|
|
261
261
|
"tw-translate-x-full": !t.open,
|
|
@@ -264,11 +264,11 @@ function ce(l, a, r, t, V, K) {
|
|
|
264
264
|
}]),
|
|
265
265
|
style: W(t.sideSheetStyles)
|
|
266
266
|
}, [
|
|
267
|
-
|
|
267
|
+
h("div", {
|
|
268
268
|
class: "tw-flex tw-flex-col tw-h-full",
|
|
269
269
|
style: W(t.modalStyles)
|
|
270
270
|
}, [
|
|
271
|
-
|
|
271
|
+
h("div", {
|
|
272
272
|
ref: "headlineRef",
|
|
273
273
|
class: x(["tw-flex tw-justify-between tw-transition-opacity tw-duration-200 tw-px-3 tw-py-2 tw-border-tertiary", {
|
|
274
274
|
"tw-opacity-0": !t.open,
|
|
@@ -276,46 +276,47 @@ function ce(l, a, r, t, V, K) {
|
|
|
276
276
|
"tw-border-b": r.showHeadlineBorder
|
|
277
277
|
}])
|
|
278
278
|
}, [
|
|
279
|
-
|
|
279
|
+
h("div", se, [
|
|
280
280
|
r.showBackButton ? (k(), b("button", {
|
|
281
281
|
key: 0,
|
|
282
282
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
283
283
|
onClick: a[0] || (a[0] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
284
284
|
}, [
|
|
285
|
-
_(
|
|
285
|
+
_(f, {
|
|
286
286
|
class: "tw-w-3 tw-h-3",
|
|
287
287
|
icon: t.mdiArrowLeft
|
|
288
288
|
}, null, 8, ["icon"])
|
|
289
289
|
])) : S("", !0),
|
|
290
290
|
r.headline ? (k(), b("h2", re, $(r.headline), 1)) : S("", !0)
|
|
291
291
|
]),
|
|
292
|
-
|
|
292
|
+
h("div", de, [
|
|
293
293
|
r.showGoToLink ? (k(), b("button", {
|
|
294
294
|
key: 0,
|
|
295
295
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
296
296
|
onClick: a[1] || (a[1] = (...i) => t.goToLink && t.goToLink(...i))
|
|
297
297
|
}, [
|
|
298
|
-
_(
|
|
298
|
+
_(f, {
|
|
299
299
|
class: "tw-w-3 tw-h-3",
|
|
300
300
|
icon: t.mdiExportVariant
|
|
301
301
|
}, null, 8, ["icon"])
|
|
302
302
|
])) : S("", !0),
|
|
303
|
-
|
|
303
|
+
h("button", {
|
|
304
304
|
class: "hover:tw-text-action-highlight tw-flex tw-items-center tw-justify-center",
|
|
305
305
|
onClick: a[2] || (a[2] = (...i) => t.closeSideSheet && t.closeSideSheet(...i))
|
|
306
306
|
}, [
|
|
307
|
-
_(
|
|
307
|
+
_(f, {
|
|
308
308
|
class: "tw-w-3 tw-h-3",
|
|
309
309
|
icon: t.mdiClose
|
|
310
310
|
}, null, 8, ["icon"])
|
|
311
311
|
])
|
|
312
312
|
])
|
|
313
313
|
], 2),
|
|
314
|
-
|
|
314
|
+
h("div", {
|
|
315
|
+
id: "sidesheet-content",
|
|
315
316
|
class: "tw-overflow-y-auto tw-overscroll-y-contain",
|
|
316
317
|
style: W({ height: t.contentHeight + "px" })
|
|
317
318
|
}, [
|
|
318
|
-
|
|
319
|
+
h("div", {
|
|
319
320
|
class: x(["tw-p-2 tw-transition-opacity tw-duration-200", {
|
|
320
321
|
"tw-opacity-0": !t.open,
|
|
321
322
|
"tw-opacity-full": t.open
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.22.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "2e79f200809fc5329546c0c1a75acbb1238d2c03"
|
|
115
115
|
}
|