@kiva/kv-components 6.47.0 → 6.48.0
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/KvUserAvatar.js +37 -35
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +19 -21
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +90 -83
- 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 +38 -36
- package/package.json +2 -2
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,
|
|
@@ -115,17 +116,18 @@ function z(I, n, e, t, a, l) {
|
|
|
115
116
|
"lender-name": e.lenderName,
|
|
116
117
|
"lender-image-url": e.lenderImageUrl,
|
|
117
118
|
"is-mobile": e.isMobile,
|
|
119
|
+
balance: e.balance,
|
|
118
120
|
onItemHover: t.onHover
|
|
119
|
-
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "onItemHover"]), [
|
|
121
|
+
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
|
|
120
122
|
[p, t.linksVisible]
|
|
121
123
|
])
|
|
122
124
|
]),
|
|
123
125
|
_: 1
|
|
124
126
|
}),
|
|
125
|
-
g((v(),
|
|
127
|
+
g((v(), C("a", E, [
|
|
126
128
|
u(r)
|
|
127
129
|
])), [
|
|
128
|
-
[
|
|
130
|
+
[w, ["TopNav", "click-Logo"]]
|
|
129
131
|
])
|
|
130
132
|
]),
|
|
131
133
|
u(k, { name: "header-fade" }, {
|
|
@@ -133,22 +135,22 @@ function z(I, n, e, t, a, l) {
|
|
|
133
135
|
g(m("div", K, [
|
|
134
136
|
m("div", {
|
|
135
137
|
class: "tw-bg-primary",
|
|
136
|
-
style:
|
|
137
|
-
onMouseover: n[0] || (n[0] = (
|
|
138
|
-
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())
|
|
139
141
|
}, [
|
|
140
142
|
m("div", V, [
|
|
141
|
-
(v(),
|
|
143
|
+
(v(), y(B(t.menuComponent), {
|
|
142
144
|
ref: "menuComponentInstance",
|
|
143
145
|
"logged-in": e.loggedIn,
|
|
144
146
|
"login-url": e.loginUrl,
|
|
145
147
|
"user-id": e.userId,
|
|
146
|
-
balance: e.balance,
|
|
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", "
|
|
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.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"embla-carousel-fade",
|
|
114
114
|
"popper.js"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "16c3d26321c8cb8cc7915fc55e60bcd1616de1f3"
|
|
117
117
|
}
|