@kiva/kv-components 9.1.0 → 9.1.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/utils/headerMenuTiming.d.ts +6 -0
- package/dist/utils/headerMenuTiming.js +9 -0
- package/dist/utils/useHeaderMenuGroup.d.ts +27 -0
- package/dist/utils/useHeaderMenuGroup.js +68 -0
- package/dist/utils/useHeaderMenuPlacement.d.ts +6 -0
- package/dist/utils/useHeaderMenuPlacement.js +30 -0
- package/dist/utils/useHeaderMenuState.d.ts +10 -0
- package/dist/utils/useHeaderMenuState.js +21 -0
- package/dist/utils/useHoverIntent.d.ts +5 -0
- package/dist/utils/useHoverIntent.js +17 -0
- package/dist/utils/useOutsidePointerDown.d.ts +2 -0
- package/dist/utils/useOutsidePointerDown.js +19 -0
- package/dist/utils/usePointerType.d.ts +5 -0
- package/dist/utils/usePointerType.js +19 -0
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.css +1 -0
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.js +35 -0
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.vue.d.ts +25 -0
- package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup2.js +37 -0
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +29 -75
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic2.js +37 -92
- package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.js +206 -132
- package/dist/vue/KvWwwHeaderBasic/LinkBar.vue.d.ts +226 -185
- package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +69 -96
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.vue.d.ts +9 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +12 -11
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.vue.d.ts +9 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar.js +12 -12
- package/dist/vue/KvWwwHeaderBasic/SearchBar.vue.d.ts +9 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar2.js +49 -43
- package/package.json +3 -4
- package/dist/utils/useHeaderBasicMenuState.d.ts +0 -3197
- package/dist/utils/useHeaderBasicMenuState.js +0 -30
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { HeaderMenuState } from '../../../../../../../../../src/utils/useHeaderMenuState';
|
|
3
|
+
import { HeaderMenuPlacement } from '../../../../../../../../../src/utils/useHeaderMenuPlacement';
|
|
4
|
+
export interface TriggerAttrs {
|
|
5
|
+
'aria-expanded': boolean;
|
|
6
|
+
'aria-controls': string;
|
|
7
|
+
onClick(event: Event): void;
|
|
8
|
+
}
|
|
9
|
+
export interface HeaderMenuGroupOptions {
|
|
10
|
+
panelId: Ref<string>;
|
|
11
|
+
rootRef: Ref<HTMLElement | null>;
|
|
12
|
+
menus: HeaderMenuState;
|
|
13
|
+
placement?: HeaderMenuPlacement | null;
|
|
14
|
+
}
|
|
15
|
+
export declare function useHeaderMenuGroup({ panelId, rootRef, menus, placement, }: HeaderMenuGroupOptions): {
|
|
16
|
+
approached: Ref<boolean, boolean>;
|
|
17
|
+
toggled: import('vue').ComputedRef<boolean>;
|
|
18
|
+
expanded: import('vue').ComputedRef<any>;
|
|
19
|
+
trigger: import('vue').ComputedRef<TriggerAttrs>;
|
|
20
|
+
toggle: (event?: Event) => void;
|
|
21
|
+
close: () => void;
|
|
22
|
+
onPointerEnter: (event: PointerEvent) => void;
|
|
23
|
+
onPointerLeave: () => void;
|
|
24
|
+
onFocusIn: () => void;
|
|
25
|
+
onFocusOut: (event: FocusEvent) => void;
|
|
26
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
27
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ref as k, computed as s, onMounted as m, onBeforeUnmount as x } from "vue";
|
|
2
|
+
import { MENU_OPEN_DELAY_MS as A } from "./headerMenuTiming.js";
|
|
3
|
+
import { useHoverIntent as D } from "./useHoverIntent.js";
|
|
4
|
+
import { useOutsidePointerDown as H } from "./useOutsidePointerDown.js";
|
|
5
|
+
function w({
|
|
6
|
+
panelId: l,
|
|
7
|
+
rootRef: a,
|
|
8
|
+
menus: t,
|
|
9
|
+
placement: c
|
|
10
|
+
}) {
|
|
11
|
+
const n = k(!1), f = D(A);
|
|
12
|
+
let i;
|
|
13
|
+
const o = s(() => t.toggledId.value === l.value), v = s(() => o.value || f.settled.value);
|
|
14
|
+
function d(e) {
|
|
15
|
+
if ((e == null ? void 0 : e.currentTarget) instanceof HTMLAnchorElement && e.currentTarget.hasAttribute("href")) {
|
|
16
|
+
if (t.pointerType.value !== "touch") return;
|
|
17
|
+
e.preventDefault();
|
|
18
|
+
}
|
|
19
|
+
n.value = !0, t.toggle(l.value);
|
|
20
|
+
}
|
|
21
|
+
function u() {
|
|
22
|
+
o.value && t.close();
|
|
23
|
+
}
|
|
24
|
+
H(a, o, u);
|
|
25
|
+
function p(e) {
|
|
26
|
+
n.value = !0, e.pointerType !== "touch" && (o.value || t.close(), f.enter());
|
|
27
|
+
}
|
|
28
|
+
function h() {
|
|
29
|
+
f.leave();
|
|
30
|
+
}
|
|
31
|
+
function E() {
|
|
32
|
+
n.value = !0;
|
|
33
|
+
}
|
|
34
|
+
function T(e) {
|
|
35
|
+
var r;
|
|
36
|
+
e.relatedTarget instanceof Element && ((r = a.value) != null && r.contains(e.relatedTarget) || u());
|
|
37
|
+
}
|
|
38
|
+
function y(e) {
|
|
39
|
+
var r, g;
|
|
40
|
+
e.key !== "Escape" || !o.value || (u(), (g = (r = a.value) == null ? void 0 : r.querySelector("[aria-expanded]")) == null || g.focus());
|
|
41
|
+
}
|
|
42
|
+
const M = s(() => ({
|
|
43
|
+
"aria-expanded": v.value,
|
|
44
|
+
"aria-controls": l.value,
|
|
45
|
+
onClick: d
|
|
46
|
+
}));
|
|
47
|
+
return m(() => {
|
|
48
|
+
const e = a.value;
|
|
49
|
+
e && (i = c == null ? void 0 : c.registerGroup(e), e.matches(":hover") && (n.value = !0));
|
|
50
|
+
}), x(() => {
|
|
51
|
+
i == null || i(), u();
|
|
52
|
+
}), {
|
|
53
|
+
approached: n,
|
|
54
|
+
toggled: o,
|
|
55
|
+
expanded: v,
|
|
56
|
+
trigger: M,
|
|
57
|
+
toggle: d,
|
|
58
|
+
close: u,
|
|
59
|
+
onPointerEnter: p,
|
|
60
|
+
onPointerLeave: h,
|
|
61
|
+
onFocusIn: E,
|
|
62
|
+
onFocusOut: T,
|
|
63
|
+
onKeydown: y
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
w as useHeaderMenuGroup
|
|
68
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
export interface HeaderMenuPlacement {
|
|
3
|
+
registerGroup(el: HTMLElement): () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare const HEADER_MENU_PLACEMENT: InjectionKey<HeaderMenuPlacement>;
|
|
6
|
+
export declare function useHeaderMenuPlacement(rootRef: Ref<HTMLElement | null>): HeaderMenuPlacement;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { onMounted as g, onBeforeUnmount as d } from "vue";
|
|
2
|
+
const p = Symbol("headerMenuPlacement");
|
|
3
|
+
function y(c) {
|
|
4
|
+
const o = /* @__PURE__ */ new Set();
|
|
5
|
+
let e = null;
|
|
6
|
+
function a() {
|
|
7
|
+
const t = c.value, i = t == null ? void 0 : t.offsetParent;
|
|
8
|
+
if (!t || !(i instanceof HTMLElement)) return;
|
|
9
|
+
const n = i.getBoundingClientRect(), u = Array.from(o, (r) => [r, r.getBoundingClientRect()]);
|
|
10
|
+
t.style.setProperty("--nav-height", `${n.height}px`), u.forEach(([r, s]) => {
|
|
11
|
+
const f = s.left + s.width / 2;
|
|
12
|
+
r.style.setProperty("--trigger-gap-left", `${f - n.left}px`), r.style.setProperty("--trigger-gap-right", `${n.right - f}px`), r.style.setProperty("--trigger-width", `${s.width}px`);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function l(t) {
|
|
16
|
+
return o.add(t), e == null || e.observe(t), () => {
|
|
17
|
+
o.delete(t), e == null || e.unobserve(t);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
return g(() => {
|
|
21
|
+
const t = c.value, i = t == null ? void 0 : t.offsetParent;
|
|
22
|
+
typeof ResizeObserver < "u" && t && i instanceof HTMLElement && (e = new ResizeObserver(a), e.observe(i), Array.from(t.children).forEach((n) => e == null ? void 0 : e.observe(n)), o.forEach((n) => e == null ? void 0 : e.observe(n))), a();
|
|
23
|
+
}), d(() => {
|
|
24
|
+
e == null || e.disconnect(), e = null;
|
|
25
|
+
}), { registerGroup: l };
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
p as HEADER_MENU_PLACEMENT,
|
|
29
|
+
y as useHeaderMenuPlacement
|
|
30
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { PointerType } from '../../../../../../../../../src/utils/usePointerType';
|
|
3
|
+
export interface HeaderMenuState {
|
|
4
|
+
toggledId: Readonly<Ref<string | null>>;
|
|
5
|
+
pointerType: Readonly<Ref<PointerType | null>>;
|
|
6
|
+
toggle(id: string): void;
|
|
7
|
+
close(): void;
|
|
8
|
+
}
|
|
9
|
+
export declare const HEADER_MENU_STATE: InjectionKey<HeaderMenuState>;
|
|
10
|
+
export declare function useHeaderMenuState(pointerType: Readonly<Ref<PointerType | null>>): HeaderMenuState;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ref as u, readonly as r } from "vue";
|
|
2
|
+
const c = Symbol("headerMenuState");
|
|
3
|
+
function d(n) {
|
|
4
|
+
const e = u(null);
|
|
5
|
+
function t(l) {
|
|
6
|
+
e.value = e.value === l ? null : l;
|
|
7
|
+
}
|
|
8
|
+
function o() {
|
|
9
|
+
e.value = null;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
toggledId: r(e),
|
|
13
|
+
pointerType: n,
|
|
14
|
+
toggle: t,
|
|
15
|
+
close: o
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
c as HEADER_MENU_STATE,
|
|
20
|
+
d as useHeaderMenuState
|
|
21
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ref as u, onBeforeUnmount as l } from "vue";
|
|
2
|
+
function a(o) {
|
|
3
|
+
const t = u(!1);
|
|
4
|
+
let e;
|
|
5
|
+
function n() {
|
|
6
|
+
clearTimeout(e), e = setTimeout(() => {
|
|
7
|
+
t.value = !0;
|
|
8
|
+
}, o);
|
|
9
|
+
}
|
|
10
|
+
function r() {
|
|
11
|
+
clearTimeout(e), t.value = !1;
|
|
12
|
+
}
|
|
13
|
+
return l(() => clearTimeout(e)), { settled: t, enter: n, leave: r };
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
a as useHoverIntent
|
|
17
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { watch as f, onMounted as a, onBeforeUnmount as c } from "vue";
|
|
2
|
+
function s(u, o, d) {
|
|
3
|
+
function e(n) {
|
|
4
|
+
var i;
|
|
5
|
+
n.target instanceof Node && ((i = u.value) != null && i.contains(n.target)) || d();
|
|
6
|
+
}
|
|
7
|
+
function t() {
|
|
8
|
+
document.addEventListener("pointerdown", e);
|
|
9
|
+
}
|
|
10
|
+
function r() {
|
|
11
|
+
document.removeEventListener("pointerdown", e);
|
|
12
|
+
}
|
|
13
|
+
f(o, (n) => n ? t() : r()), a(() => {
|
|
14
|
+
o.value && t();
|
|
15
|
+
}), c(r);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as useOutsidePointerDown
|
|
19
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ref as i, onMounted as a, onBeforeUnmount as p } from "vue";
|
|
2
|
+
function s(n) {
|
|
3
|
+
const o = i(null);
|
|
4
|
+
function r(t) {
|
|
5
|
+
const e = t.pointerType;
|
|
6
|
+
e && e !== o.value && (o.value = e);
|
|
7
|
+
}
|
|
8
|
+
return a(() => {
|
|
9
|
+
var e, u;
|
|
10
|
+
const t = typeof window.matchMedia == "function" && window.matchMedia("(hover: none)").matches;
|
|
11
|
+
o.value = t ? "touch" : "mouse", (e = n.value) == null || e.addEventListener("pointerdown", r, { capture: !0, passive: !0 }), (u = n.value) == null || u.addEventListener("pointermove", r, { capture: !0, passive: !0 });
|
|
12
|
+
}), p(() => {
|
|
13
|
+
var t, e;
|
|
14
|
+
(t = n.value) == null || t.removeEventListener("pointerdown", r, { capture: !0 }), (e = n.value) == null || e.removeEventListener("pointermove", r, { capture: !0 });
|
|
15
|
+
}), { pointerType: o };
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
s as usePointerType
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@media(min-width:45.875rem){.menu-group[data-v-22583929]{align-self:stretch}.menu-group[data-v-22583929]:hover:after{content:"";position:absolute;top:4rem;height:calc(var(--nav-height, 4rem) - 4rem);left:calc(var(--trigger-gap-left, 0px) - var(--trigger-width, 0px) / 2);width:var(--trigger-width, 0px)}}.menu-panel[data-v-22583929]{position:absolute;z-index:1400;overflow-y:auto;--tw-bg-opacity: 1;background-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1));top:var(--nav-height, 4rem);max-height:0;visibility:hidden;opacity:0;transition:opacity var(--menu-close-fade) ease var(--menu-open-delay),visibility 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),max-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),min-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade))}.menu-group:has(>[aria-expanded=true])>.menu-panel[data-v-22583929],[data-pointer=mouse] .menu-group:hover>.menu-panel[data-v-22583929]{visibility:visible;opacity:1;max-height:calc(100dvh - var(--nav-height, 4rem));transition:opacity .3s ease var(--menu-open-delay),visibility 0s var(--menu-open-delay),max-height 0s var(--menu-open-delay),min-height 0s var(--menu-open-delay)}.menu-panel--full[data-v-22583929],.menu-panel--drawer[data-v-22583929]{inset-inline:0}.menu-panel--card[data-v-22583929]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;border-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));right:var(--trigger-gap-right, 0px);translate:clamp(calc(100% - var(--trigger-gap-left, 0px)),50%,var(--trigger-gap-right, 0px)) 0;max-width:100%}.menu-panel--drawer[data-v-22583929]{border-radius:0}.menu-group:has(>[aria-expanded=true])>.menu-panel--drawer[data-v-22583929],[data-pointer=mouse] .menu-group:hover>.menu-panel--drawer[data-v-22583929]{max-height:none;min-height:100dvh}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import s from "./HeaderMenuGroup2.js";
|
|
2
|
+
import { openBlock as d, createElementBlock as i, renderSlot as t, createElementVNode as l, normalizeClass as u, createCommentVNode as a } from "vue";
|
|
3
|
+
import "./HeaderMenuGroup.css";
|
|
4
|
+
import p from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const m = ["id"];
|
|
6
|
+
function f(e, o, r, g, v, F) {
|
|
7
|
+
return d(), i("div", {
|
|
8
|
+
ref: "root",
|
|
9
|
+
class: "menu-group tw-flex tw-items-center",
|
|
10
|
+
onPointerenter: o[0] || (o[0] = (...n) => e.onPointerEnter && e.onPointerEnter(...n)),
|
|
11
|
+
onPointerleave: o[1] || (o[1] = (...n) => e.onPointerLeave && e.onPointerLeave(...n)),
|
|
12
|
+
onFocusin: o[2] || (o[2] = (...n) => e.onFocusIn && e.onFocusIn(...n)),
|
|
13
|
+
onFocusout: o[3] || (o[3] = (...n) => e.onFocusOut && e.onFocusOut(...n)),
|
|
14
|
+
onKeydown: o[4] || (o[4] = (...n) => e.onKeydown && e.onKeydown(...n))
|
|
15
|
+
}, [
|
|
16
|
+
t(e.$slots, "default", {
|
|
17
|
+
trigger: e.trigger,
|
|
18
|
+
toggle: e.toggle,
|
|
19
|
+
expanded: e.expanded
|
|
20
|
+
}, void 0, !0),
|
|
21
|
+
l("div", {
|
|
22
|
+
id: r.panelId,
|
|
23
|
+
class: u(["menu-panel", `menu-panel--${r.variant}`])
|
|
24
|
+
}, [
|
|
25
|
+
e.approached ? t(e.$slots, "panel", {
|
|
26
|
+
key: 0,
|
|
27
|
+
close: e.close
|
|
28
|
+
}, void 0, !0) : a("", !0)
|
|
29
|
+
], 10, m)
|
|
30
|
+
], 544);
|
|
31
|
+
}
|
|
32
|
+
const E = /* @__PURE__ */ p(s, [["render", f], ["__scopeId", "data-v-22583929"]]);
|
|
33
|
+
export {
|
|
34
|
+
E as default
|
|
35
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
panelId: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
variant: {
|
|
7
|
+
type: () => "full" | "card" | "drawer";
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "open")[], "close" | "open", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
panelId: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
variant: {
|
|
16
|
+
type: () => "full" | "card" | "drawer";
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{
|
|
20
|
+
onOpen?: (...args: any[]) => any;
|
|
21
|
+
onClose?: (...args: any[]) => any;
|
|
22
|
+
}>, {
|
|
23
|
+
variant: "card" | "full" | "drawer";
|
|
24
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { inject as t, shallowRef as s, toRef as l, watch as i } from "vue";
|
|
2
|
+
import { HEADER_MENU_STATE as E } from "../../utils/useHeaderMenuState.js";
|
|
3
|
+
import { HEADER_MENU_PLACEMENT as c } from "../../utils/useHeaderMenuPlacement.js";
|
|
4
|
+
import { useHeaderMenuGroup as d } from "../../utils/useHeaderMenuGroup.js";
|
|
5
|
+
const A = {
|
|
6
|
+
name: "HeaderMenuGroup",
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* Id for the panel element, referenced by the trigger's aria-controls. Also identifies the
|
|
10
|
+
* group in the shared toggled state.
|
|
11
|
+
*/
|
|
12
|
+
panelId: { type: String, required: !0 },
|
|
13
|
+
/**
|
|
14
|
+
* Panel shape: 'full' spans the nav, 'drawer' is the full-screen mobile drawer, 'card'
|
|
15
|
+
* centers under the trigger and clamps to the nav's edges.
|
|
16
|
+
*/
|
|
17
|
+
variant: {
|
|
18
|
+
type: String,
|
|
19
|
+
default: "card"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: ["open", "close"],
|
|
23
|
+
setup(n, { emit: p }) {
|
|
24
|
+
const e = t(E);
|
|
25
|
+
if (!e) throw new Error("HeaderMenuGroup requires a HEADER_MENU_STATE provider");
|
|
26
|
+
const a = t(c, null), r = s(null), o = d({
|
|
27
|
+
panelId: l(n, "panelId"),
|
|
28
|
+
rootRef: r,
|
|
29
|
+
menus: e,
|
|
30
|
+
placement: a
|
|
31
|
+
});
|
|
32
|
+
return i(o.expanded, (u) => p(u ? "open" : "close"), { flush: "sync" }), { root: r, ...o };
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export {
|
|
36
|
+
A as default
|
|
37
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
1
|
+
.header-fade-enter-active[data-v-25e697e2]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-25e697e2]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-25e697e2],.header-fade-leave-to[data-v-25e697e2]{opacity:0}.header-fade-leave[data-v-25e697e2],.header-fade-enter-to[data-v-25e697e2]{opacity:1}
|
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import u from "./KvWwwHeaderBasic2.js";
|
|
2
|
+
import { resolveComponent as o, openBlock as g, createBlock as c, withCtx as r, createElementVNode as b, normalizeStyle as k, createVNode as l, Transition as v, withDirectives as f, vShow as w } from "vue";
|
|
3
3
|
import "./KvWwwHeaderBasic.css";
|
|
4
|
-
import
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
4
|
+
import _ from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function h(i, t, e, a, L, I) {
|
|
6
|
+
const s = o("link-bar"), d = o("kv-page-container"), m = o("kv-theme-provider");
|
|
7
|
+
return g(), c(m, {
|
|
8
8
|
tag: "div",
|
|
9
9
|
class: "tw-bg-primary"
|
|
10
10
|
}, {
|
|
11
|
-
default:
|
|
12
|
-
|
|
13
|
-
ref: "navRef",
|
|
11
|
+
default: r(() => [
|
|
12
|
+
b("nav", {
|
|
14
13
|
class: "tw-font-medium tw-relative",
|
|
15
|
-
style:
|
|
14
|
+
style: k({ minHeight: a.MIN_HEADER_HEIGHT })
|
|
16
15
|
}, [
|
|
17
|
-
|
|
18
|
-
default:
|
|
19
|
-
|
|
20
|
-
default:
|
|
21
|
-
|
|
16
|
+
l(d, null, {
|
|
17
|
+
default: r(() => [
|
|
18
|
+
l(v, { name: "header-fade" }, {
|
|
19
|
+
default: r(() => [
|
|
20
|
+
f(l(s, {
|
|
21
|
+
ref: "linkBarRef",
|
|
22
22
|
"logged-in": e.loggedIn,
|
|
23
23
|
"basket-count": e.basketCount,
|
|
24
24
|
balance: e.balance,
|
|
25
25
|
"user-id": e.userId,
|
|
26
26
|
"is-borrower": e.isBorrower,
|
|
27
27
|
"is-trustee": e.isTrustee,
|
|
28
|
+
"trustee-id": e.trusteeId,
|
|
29
|
+
"most-recent-borrowed-loan-id": e.mostRecentBorrowedLoanId,
|
|
28
30
|
"lender-name": e.lenderName,
|
|
29
31
|
"lender-image-url": e.lenderImageUrl,
|
|
30
32
|
"is-user-data-loading": e.isUserDataLoading,
|
|
@@ -34,16 +36,15 @@ function L(t, o, e, n, C, D) {
|
|
|
34
36
|
"login-url": e.loginUrl,
|
|
35
37
|
"my-dashboard-url": e.myDashboardUrl,
|
|
36
38
|
"countries-not-lent-to-url": e.countriesNotLentToUrl,
|
|
37
|
-
"app-origin":
|
|
38
|
-
"search-suggestions":
|
|
39
|
-
"is-mobile":
|
|
40
|
-
"
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
[b, n.linksVisible]
|
|
39
|
+
"app-origin": a.resolvedAppOrigin,
|
|
40
|
+
"search-suggestions": a.effectiveSuggestions,
|
|
41
|
+
"is-mobile": a.isMobile,
|
|
42
|
+
onLoadLendMenuData: t[0] || (t[0] = (n) => i.$emit("load-lend-menu-data")),
|
|
43
|
+
onLoadSearchData: t[1] || (t[1] = (n) => i.$emit("load-search-data")),
|
|
44
|
+
onSearchSubmit: t[2] || (t[2] = (n) => i.$emit("search-submit", n)),
|
|
45
|
+
onLoginClick: t[3] || (t[3] = (n) => i.$emit("login-click", n))
|
|
46
|
+
}, null, 8, ["logged-in", "basket-count", "balance", "user-id", "is-borrower", "is-trustee", "trustee-id", "most-recent-borrowed-loan-id", "lender-name", "lender-image-url", "is-user-data-loading", "is-basket-data-loading", "use-esi-avatar", "show-m-g-upsell-link", "login-url", "my-dashboard-url", "countries-not-lent-to-url", "app-origin", "search-suggestions", "is-mobile"]), [
|
|
47
|
+
[w, a.linksVisible]
|
|
47
48
|
])
|
|
48
49
|
]),
|
|
49
50
|
_: 1
|
|
@@ -51,59 +52,12 @@ function L(t, o, e, n, C, D) {
|
|
|
51
52
|
]),
|
|
52
53
|
_: 1
|
|
53
54
|
})
|
|
54
|
-
], 4)
|
|
55
|
-
r(g, { name: "header-fade" }, {
|
|
56
|
-
default: a(() => [
|
|
57
|
-
v(s("div", {
|
|
58
|
-
class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
|
|
59
|
-
style: d({ top: n.navHeight }),
|
|
60
|
-
onTouchstart: o[9] || (o[9] = (...i) => n.handleOverlayClick && n.handleOverlayClick(...i))
|
|
61
|
-
}, [
|
|
62
|
-
s("div", {
|
|
63
|
-
ref: "menuPanelRef",
|
|
64
|
-
class: h(["tw-bg-primary tw-overflow-y-auto", n.menuPanelClass]),
|
|
65
|
-
style: d({
|
|
66
|
-
...n.menuPosition,
|
|
67
|
-
maxHeight: n.isMobileMenuActive ? "auto" : `calc(100dvh - ${n.navHeight})`
|
|
68
|
-
}),
|
|
69
|
-
onMouseenter: o[7] || (o[7] = (i) => n.setMenu(n.menuItem, n.menuComponent)),
|
|
70
|
-
onMouseleave: o[8] || (o[8] = (i) => n.setMenu())
|
|
71
|
-
}, [
|
|
72
|
-
(m(), u(y(n.menuComponent), {
|
|
73
|
-
ref: "menuComponentInstance",
|
|
74
|
-
"logged-in": e.loggedIn,
|
|
75
|
-
"login-url": e.loginUrl,
|
|
76
|
-
"user-id": e.userId,
|
|
77
|
-
"is-borrower": e.isBorrower,
|
|
78
|
-
"is-trustee": e.isTrustee,
|
|
79
|
-
"trustee-id": e.trusteeId,
|
|
80
|
-
"most-recent-borrowed-loan-id": e.mostRecentBorrowedLoanId,
|
|
81
|
-
"my-dashboard-url": e.myDashboardUrl,
|
|
82
|
-
"show-m-g-upsell-link": e.showMGUpsellLink,
|
|
83
|
-
"is-mobile": n.isMobile,
|
|
84
|
-
"countries-not-lent-to-url": e.countriesNotLentToUrl,
|
|
85
|
-
"use-mobile-mega-menu": !0,
|
|
86
|
-
"app-origin": n.resolvedAppOrigin,
|
|
87
|
-
"search-suggestions": n.effectiveSuggestions,
|
|
88
|
-
onLoadLendMenuData: n.emitLendMenuEvent,
|
|
89
|
-
onLoadSearchData: o[3] || (o[3] = (i) => t.$emit("load-search-data")),
|
|
90
|
-
onSearchSubmit: o[4] || (o[4] = (i) => t.$emit("search-submit", i)),
|
|
91
|
-
onClosingMenu: o[5] || (o[5] = (i) => n.setMenu()),
|
|
92
|
-
onTouchstart: o[6] || (o[6] = M(() => {
|
|
93
|
-
}, ["stop"]))
|
|
94
|
-
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "trustee-id", "most-recent-borrowed-loan-id", "my-dashboard-url", "show-m-g-upsell-link", "is-mobile", "countries-not-lent-to-url", "app-origin", "search-suggestions", "onLoadLendMenuData"]))
|
|
95
|
-
], 38)
|
|
96
|
-
], 36), [
|
|
97
|
-
[b, n.menuOpen]
|
|
98
|
-
])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
})
|
|
55
|
+
], 4)
|
|
102
56
|
]),
|
|
103
57
|
_: 1
|
|
104
58
|
});
|
|
105
59
|
}
|
|
106
|
-
const
|
|
60
|
+
const U = /* @__PURE__ */ _(u, [["render", h], ["__scopeId", "data-v-25e697e2"]]);
|
|
107
61
|
export {
|
|
108
|
-
|
|
62
|
+
U as default
|
|
109
63
|
};
|