@kiva/kv-components 6.47.1 → 6.48.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/KvWwwHeader/KvHeaderDropdownLink.js +10 -11
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +81 -78
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +123 -103
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +120 -102
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +57 -51
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +36 -34
- package/package.json +3 -3
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ref as i, shallowRef as
|
|
1
|
+
import { ref as i, shallowRef as L, resolveComponent as c, resolveDirective as M, openBlock as v, createBlock as y, withCtx as f, createElementVNode as m, createVNode as u, Transition as k, withDirectives as g, vShow as p, createElementBlock as C, normalizeStyle as H, resolveDynamicComponent as B } from "vue";
|
|
2
2
|
import D from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
3
|
+
import U from "./KvWwwHeader/KvHeaderLogo.js";
|
|
4
|
+
import x from "./KvThemeProvider.js";
|
|
5
5
|
import "./KvWwwHeader.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import N from "../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const T = {
|
|
8
8
|
components: {
|
|
9
9
|
KvHeaderLinkBar: D,
|
|
10
|
-
KvHeaderLogo:
|
|
11
|
-
KvThemeProvider:
|
|
10
|
+
KvHeaderLogo: U,
|
|
11
|
+
KvThemeProvider: x
|
|
12
12
|
},
|
|
13
13
|
props: {
|
|
14
14
|
loggedIn: {
|
|
@@ -54,35 +54,39 @@ const U = {
|
|
|
54
54
|
isMobile: {
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: !1
|
|
57
|
+
},
|
|
58
|
+
showMGUpsellLink: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
63
|
emits: [
|
|
60
64
|
"load-lend-menu-data"
|
|
61
65
|
],
|
|
62
66
|
setup(I, { emit: n }) {
|
|
63
|
-
const e = i(!0), t = i(null),
|
|
64
|
-
let
|
|
67
|
+
const e = i(!0), t = i(null), l = i(!1), a = L(null), s = i(null), r = i({ left: 0, position: "relative" });
|
|
68
|
+
let d;
|
|
65
69
|
return {
|
|
66
70
|
emitLendMenuEvent: () => {
|
|
67
71
|
n("load-lend-menu-data");
|
|
68
72
|
},
|
|
69
73
|
linksVisible: e,
|
|
70
|
-
menuOpen:
|
|
71
|
-
onHover: (_, o,
|
|
72
|
-
o ? (clearTimeout(
|
|
73
|
-
...
|
|
74
|
+
menuOpen: l,
|
|
75
|
+
onHover: (_, o, h) => {
|
|
76
|
+
o ? (clearTimeout(d), a.value !== o && (r.value = { left: 0, position: "relative" }), a.value = o, l.value = !0, h && (r.value = {
|
|
77
|
+
...h,
|
|
74
78
|
position: "absolute"
|
|
75
|
-
})) :
|
|
76
|
-
|
|
79
|
+
})) : l.value && (d = setTimeout(() => {
|
|
80
|
+
l.value = !1, a.value = null;
|
|
77
81
|
}, 200));
|
|
78
82
|
},
|
|
79
83
|
loadMenuData: (_) => {
|
|
80
84
|
var o;
|
|
81
|
-
(o =
|
|
85
|
+
(o = s.value) == null || o.onLoad(_);
|
|
82
86
|
},
|
|
83
87
|
activeHeaderItem: t,
|
|
84
|
-
menuComponent:
|
|
85
|
-
menuComponentInstance:
|
|
88
|
+
menuComponent: a,
|
|
89
|
+
menuComponentInstance: s,
|
|
86
90
|
menuPosition: r
|
|
87
91
|
};
|
|
88
92
|
}
|
|
@@ -96,17 +100,14 @@ const U = {
|
|
|
96
100
|
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",
|
|
97
101
|
style: { top: "3.75rem" }
|
|
98
102
|
}, V = { class: "header-margins tw-px-2.5" };
|
|
99
|
-
function z(I, n, e, t,
|
|
100
|
-
const
|
|
101
|
-
return v(),
|
|
102
|
-
tag: "div",
|
|
103
|
-
class: "tw-border-b tw-border-tertiary"
|
|
104
|
-
}, {
|
|
103
|
+
function z(I, n, e, t, l, a) {
|
|
104
|
+
const s = c("kv-header-link-bar"), r = c("kv-header-logo"), d = c("kv-theme-provider"), w = M("kv-track-event");
|
|
105
|
+
return v(), y(d, { tag: "div" }, {
|
|
105
106
|
default: f(() => [
|
|
106
107
|
m("nav", S, [
|
|
107
108
|
u(k, { name: "header-fade" }, {
|
|
108
109
|
default: f(() => [
|
|
109
|
-
g(u(
|
|
110
|
+
g(u(s, {
|
|
110
111
|
"logged-in": e.loggedIn,
|
|
111
112
|
"basket-count": e.basketCount,
|
|
112
113
|
"login-url": e.loginUrl,
|
|
@@ -123,10 +124,10 @@ function z(I, n, e, t, a, l) {
|
|
|
123
124
|
]),
|
|
124
125
|
_: 1
|
|
125
126
|
}),
|
|
126
|
-
g((v(),
|
|
127
|
+
g((v(), C("a", E, [
|
|
127
128
|
u(r)
|
|
128
129
|
])), [
|
|
129
|
-
[
|
|
130
|
+
[w, ["TopNav", "click-Logo"]]
|
|
130
131
|
])
|
|
131
132
|
]),
|
|
132
133
|
u(k, { name: "header-fade" }, {
|
|
@@ -134,12 +135,12 @@ function z(I, n, e, t, a, l) {
|
|
|
134
135
|
g(m("div", K, [
|
|
135
136
|
m("div", {
|
|
136
137
|
class: "tw-bg-primary",
|
|
137
|
-
style:
|
|
138
|
-
onMouseover: n[0] || (n[0] = (
|
|
139
|
-
onMouseout: n[1] || (n[1] = (
|
|
138
|
+
style: H(t.menuPosition),
|
|
139
|
+
onMouseover: n[0] || (n[0] = (b) => t.onHover(t.activeHeaderItem, t.menuComponent)),
|
|
140
|
+
onMouseout: n[1] || (n[1] = (b) => t.onHover())
|
|
140
141
|
}, [
|
|
141
142
|
m("div", V, [
|
|
142
|
-
(v(),
|
|
143
|
+
(v(), y(B(t.menuComponent), {
|
|
143
144
|
ref: "menuComponentInstance",
|
|
144
145
|
"logged-in": e.loggedIn,
|
|
145
146
|
"login-url": e.loginUrl,
|
|
@@ -147,8 +148,9 @@ function z(I, n, e, t, a, l) {
|
|
|
147
148
|
"is-borrower": e.isBorrower,
|
|
148
149
|
"is-trustee": e.isTrustee,
|
|
149
150
|
"my-dashboard-url": e.myDashboardUrl,
|
|
151
|
+
"show-m-g-upsell-link": e.showMGUpsellLink,
|
|
150
152
|
onLoadLendMenuData: t.emitLendMenuEvent
|
|
151
|
-
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "onLoadLendMenuData"]))
|
|
153
|
+
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
|
|
152
154
|
])
|
|
153
155
|
], 36)
|
|
154
156
|
], 512), [
|
|
@@ -161,7 +163,7 @@ function z(I, n, e, t, a, l) {
|
|
|
161
163
|
_: 1
|
|
162
164
|
});
|
|
163
165
|
}
|
|
164
|
-
const
|
|
166
|
+
const A = /* @__PURE__ */ N(T, [["render", z], ["__scopeId", "data-v-588c2857"]]);
|
|
165
167
|
export {
|
|
166
|
-
|
|
168
|
+
A as default
|
|
167
169
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.48.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@babel/preset-env": "^7.24.8",
|
|
22
22
|
"@babel/preset-react": "^7.24.7",
|
|
23
23
|
"@babel/preset-typescript": "^7.24.7",
|
|
24
|
-
"@kiva/kv-tokens": "^3.4.
|
|
24
|
+
"@kiva/kv-tokens": "^3.4.1",
|
|
25
25
|
"@kiva/vite-plugin-vue-lib-css": "^2.0.0",
|
|
26
26
|
"@laynezh/vite-plugin-lib-assets": "^0.6.1",
|
|
27
27
|
"@mdi/js": "^7.4.47",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"embla-carousel-fade",
|
|
114
114
|
"popper.js"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "d6faecba8a629cf10ff434d9fdcbad291a517fe1"
|
|
117
117
|
}
|