@kiva/kv-components 6.40.4 → 6.40.5
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/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +4 -4
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +33 -31
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +18 -18
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.lend-link[data-v-
|
|
1
|
+
.lend-link[data-v-4fed1891]{display:block;width:100%;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.lend-link[data-v-4fed1891]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -251,7 +251,7 @@ function le(C, e, r, f, N, K) {
|
|
|
251
251
|
}, 512)
|
|
252
252
|
]);
|
|
253
253
|
}
|
|
254
|
-
const fe = /* @__PURE__ */ z(G, [["render", le], ["__scopeId", "data-v-
|
|
254
|
+
const fe = /* @__PURE__ */ z(G, [["render", le], ["__scopeId", "data-v-4fed1891"]]);
|
|
255
255
|
export {
|
|
256
256
|
fe as default
|
|
257
257
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.menu-heading[data-v-
|
|
1
|
+
.menu-heading[data-v-695e2428]{font-weight:300;font-size:1rem;letter-spacing:0em;line-height:1.5}@media (min-width: 64rem){.menu-heading[data-v-695e2428]{font-size:1.0625rem;letter-spacing:0em}}.menu-heading[data-v-695e2428]{font-weight:400}.region-list[data-v-695e2428],.search-list[data-v-695e2428]{-moz-column-fill:auto;column-fill:auto;-moz-columns:3;columns:3;gap:2rem}.mega-menu-link[data-v-695e2428]{display:inline-block;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mega-menu-link[data-v-695e2428]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}.link-item[data-v-695e2428]{width:11rem;text-decoration-line:none}.link-item[data-v-695e2428]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -88,13 +88,13 @@ const z = {
|
|
|
88
88
|
href: "/lend"
|
|
89
89
|
}, Z = { key: 0 }, $ = { class: "tw-font-medium" }, ee = ["href"], te = {
|
|
90
90
|
key: 1,
|
|
91
|
-
class: "tw-text-secondary tw-py-1 tw-inline-block"
|
|
91
|
+
class: "tw-text-secondary tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
92
92
|
}, ne = ["aria-pressed"], se = {
|
|
93
93
|
key: 1,
|
|
94
94
|
class: "tw-text-secondary tw-py-1 tw-inline-block"
|
|
95
95
|
}, oe = {
|
|
96
96
|
href: "/lend/countries-not-lent",
|
|
97
|
-
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block"
|
|
97
|
+
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
98
98
|
}, le = { class: "tw-col-span-2" }, ie = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ae = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, re = { class: "tw-font-medium" }, ce = ["aria-pressed", "onClick"];
|
|
99
99
|
function de(p, e, i, l, y, S) {
|
|
100
100
|
const h = u("kv-loading-placeholder"), f = u("kv-material-icon"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), a = u("kv-grid"), r = R("kv-track-event");
|
|
@@ -164,7 +164,7 @@ function de(p, e, i, l, y, S) {
|
|
|
164
164
|
i.favorites > 0 ? d((n(), s("a", {
|
|
165
165
|
key: 0,
|
|
166
166
|
href: `/lend?lenderFavorite=${i.userId}`,
|
|
167
|
-
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block"
|
|
167
|
+
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
168
168
|
}, e[6] || (e[6] = [
|
|
169
169
|
m(" Saved loans ")
|
|
170
170
|
]), 8, ee)), [
|
|
@@ -257,7 +257,7 @@ function de(p, e, i, l, y, S) {
|
|
|
257
257
|
], 4)
|
|
258
258
|
]);
|
|
259
259
|
}
|
|
260
|
-
const _e = /* @__PURE__ */ F(z, [["render", de], ["__scopeId", "data-v-
|
|
260
|
+
const _e = /* @__PURE__ */ F(z, [["render", de], ["__scopeId", "data-v-695e2428"]]);
|
|
261
261
|
export {
|
|
262
262
|
_e as default
|
|
263
263
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { gql as v } from "@apollo/client/core";
|
|
2
|
-
import { toRefs as w, ref as a, computed as _, onMounted as S, resolveComponent as L, openBlock as x, createElementBlock as A, createVNode as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { indexIn as
|
|
6
|
-
import { groupBy as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
2
|
+
import { toRefs as w, ref as a, computed as _, onMounted as S, resolveComponent as L, openBlock as x, createElementBlock as A, createVNode as b } from "vue";
|
|
3
|
+
import F from "./KvLendListMenu.js";
|
|
4
|
+
import N from "./KvLendMegaMenu.js";
|
|
5
|
+
import { indexIn as O } from "../../../utils/comparators.js";
|
|
6
|
+
import { groupBy as R, sortBy as I } from "../../../utils/arrayUtils.js";
|
|
7
|
+
import B from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const E = {
|
|
9
9
|
components: {
|
|
10
|
-
KvLendListMenu:
|
|
11
|
-
KvLendMegaMenu:
|
|
10
|
+
KvLendListMenu: F,
|
|
11
|
+
KvLendMegaMenu: N
|
|
12
12
|
},
|
|
13
13
|
props: {
|
|
14
14
|
userId: {
|
|
@@ -20,7 +20,7 @@ const F = {
|
|
|
20
20
|
setup(f, { emit: y }) {
|
|
21
21
|
const {
|
|
22
22
|
userId: i
|
|
23
|
-
} = w(f), e = a([]), d = a([]), m = a(0),
|
|
23
|
+
} = w(f), e = a([]), d = a([]), m = a(0), c = a([]), g = [
|
|
24
24
|
"North America",
|
|
25
25
|
"Central America",
|
|
26
26
|
"South America",
|
|
@@ -30,7 +30,7 @@ const F = {
|
|
|
30
30
|
"Asia",
|
|
31
31
|
"Oceania"
|
|
32
32
|
], h = a(!0), C = a(!0), M = async (t) => {
|
|
33
|
-
var
|
|
33
|
+
var r, s, o, u;
|
|
34
34
|
if (t.watchQuery({
|
|
35
35
|
query: v`query countryFacets {
|
|
36
36
|
lend {
|
|
@@ -47,8 +47,8 @@ const F = {
|
|
|
47
47
|
}`
|
|
48
48
|
}).subscribe({
|
|
49
49
|
next: ({ data: n }) => {
|
|
50
|
-
var
|
|
51
|
-
d.value = ((
|
|
50
|
+
var l;
|
|
51
|
+
d.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], h.value = !1;
|
|
52
52
|
}
|
|
53
53
|
}), t.watchQuery({
|
|
54
54
|
query: v`
|
|
@@ -66,15 +66,17 @@ const F = {
|
|
|
66
66
|
`
|
|
67
67
|
}).subscribe({
|
|
68
68
|
next: ({ data: n }) => {
|
|
69
|
-
var
|
|
70
|
-
e.value = ((p = (
|
|
69
|
+
var l, p;
|
|
70
|
+
e.value = ((p = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : p.values) ?? [], C.value = !1;
|
|
71
71
|
}
|
|
72
72
|
}), i.value) {
|
|
73
73
|
const { data: n } = await t.query({
|
|
74
74
|
query: v`
|
|
75
75
|
query lendMenuPrivateData($userId: Int!) {
|
|
76
76
|
lend {
|
|
77
|
-
loans(
|
|
77
|
+
loans(limit: 1, filters: {
|
|
78
|
+
lenderFavorite: $userId
|
|
79
|
+
}) {
|
|
78
80
|
totalCount
|
|
79
81
|
}
|
|
80
82
|
}
|
|
@@ -94,7 +96,7 @@ const F = {
|
|
|
94
96
|
},
|
|
95
97
|
fetchPolicy: "network-only"
|
|
96
98
|
});
|
|
97
|
-
m.value = ((
|
|
99
|
+
m.value = ((s = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : s.totalCount) ?? 0, c.value = ((u = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : u.values) ?? [];
|
|
98
100
|
}
|
|
99
101
|
}, k = _(() => {
|
|
100
102
|
const t = d.value.map((o) => ({
|
|
@@ -102,19 +104,19 @@ const F = {
|
|
|
102
104
|
region: o.country.region,
|
|
103
105
|
isoCode: o.country.isoCode.toLowerCase(),
|
|
104
106
|
count: o.count || 0
|
|
105
|
-
})),
|
|
106
|
-
for (const [o,
|
|
107
|
-
|
|
107
|
+
})), r = R(t, "region"), s = [];
|
|
108
|
+
for (const [o, u] of Object.entries(r))
|
|
109
|
+
s.push({
|
|
108
110
|
name: o,
|
|
109
|
-
countries:
|
|
111
|
+
countries: u.sort(I("name"))
|
|
110
112
|
});
|
|
111
|
-
return
|
|
113
|
+
return s.sort(O(g, "name"));
|
|
112
114
|
}), q = _(() => {
|
|
113
|
-
var
|
|
114
|
-
return ((
|
|
115
|
-
const o = JSON.parse(JSON.stringify(
|
|
115
|
+
var r;
|
|
116
|
+
return ((r = e.value) == null ? void 0 : r.map((s) => {
|
|
117
|
+
const o = JSON.parse(JSON.stringify(s));
|
|
116
118
|
return o.url = o.url.replace("lend", "lend-by-category"), o;
|
|
117
|
-
})).sort(
|
|
119
|
+
})).sort(I("name"));
|
|
118
120
|
});
|
|
119
121
|
return S(() => {
|
|
120
122
|
y("load-lend-menu-data");
|
|
@@ -124,15 +126,15 @@ const F = {
|
|
|
124
126
|
computedCategories: q,
|
|
125
127
|
isChannelsLoading: C,
|
|
126
128
|
isRegionsLoading: h,
|
|
127
|
-
savedSearches:
|
|
129
|
+
savedSearches: c,
|
|
128
130
|
favoritesCount: m
|
|
129
131
|
};
|
|
130
132
|
}
|
|
131
133
|
};
|
|
132
134
|
function D(f, y, i, e, d, m) {
|
|
133
|
-
const
|
|
135
|
+
const c = L("kv-lend-list-menu"), g = L("kv-lend-mega-menu");
|
|
134
136
|
return x(), A("div", null, [
|
|
135
|
-
|
|
137
|
+
b(c, {
|
|
136
138
|
class: "lg:tw-hidden",
|
|
137
139
|
categories: e.computedCategories,
|
|
138
140
|
regions: e.regions,
|
|
@@ -142,7 +144,7 @@ function D(f, y, i, e, d, m) {
|
|
|
142
144
|
"is-regions-loading": e.isRegionsLoading,
|
|
143
145
|
"is-channels-loading": e.isChannelsLoading
|
|
144
146
|
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading"]),
|
|
145
|
-
|
|
147
|
+
b(g, {
|
|
146
148
|
class: "tw-hidden lg:tw-block",
|
|
147
149
|
categories: e.computedCategories,
|
|
148
150
|
regions: e.regions,
|
|
@@ -154,7 +156,7 @@ function D(f, y, i, e, d, m) {
|
|
|
154
156
|
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading"])
|
|
155
157
|
]);
|
|
156
158
|
}
|
|
157
|
-
const G = /* @__PURE__ */ E
|
|
159
|
+
const G = /* @__PURE__ */ B(E, [["render", D]]);
|
|
158
160
|
export {
|
|
159
161
|
G as default
|
|
160
162
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-margins[data-v-
|
|
1
|
+
.header-margins[data-v-adc253f8]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-adc253f8]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-adc253f8]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-adc253f8],.header-fade-leave-to[data-v-adc253f8]{opacity:0}.header-fade-leave[data-v-adc253f8],.header-fade-enter-to[data-v-adc253f8]{opacity:1}.bg-opacity-50[data-v-adc253f8]{background-color:rgba(var(--bg-action-highlight),.5)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as s, shallowRef as L, resolveComponent as c, resolveDirective as H, openBlock as h, createBlock as p, withCtx as d, createElementVNode as g, createVNode as r, Transition as w, withDirectives as _, vShow as
|
|
1
|
+
import { ref as s, shallowRef as L, resolveComponent as c, resolveDirective as H, openBlock as h, createBlock as p, withCtx as d, createElementVNode as g, createVNode as r, Transition as w, withDirectives as _, vShow as b, createElementBlock as O, normalizeClass as x, createCommentVNode as B, resolveDynamicComponent as I } from "vue";
|
|
2
2
|
import N from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
3
3
|
import E from "./KvWwwHeader/KvHeaderLogo.js";
|
|
4
4
|
import M from "./KvWwwHeader/KvHeaderSearchBar.js";
|
|
@@ -48,11 +48,11 @@ const D = {
|
|
|
48
48
|
"load-lend-menu-data"
|
|
49
49
|
],
|
|
50
50
|
setup(C, { emit: n }) {
|
|
51
|
-
const t = s(!0), e = s(null),
|
|
51
|
+
const t = s(!0), e = s(null), m = s(!1), k = s(null), l = s(!1), i = L(null), u = s(null);
|
|
52
52
|
let f;
|
|
53
53
|
return {
|
|
54
54
|
afterLinksNotVisible: () => {
|
|
55
|
-
|
|
55
|
+
m.value = !0;
|
|
56
56
|
},
|
|
57
57
|
afterSearchClosed: () => {
|
|
58
58
|
t.value = !0;
|
|
@@ -65,7 +65,7 @@ const D = {
|
|
|
65
65
|
n("load-lend-menu-data");
|
|
66
66
|
},
|
|
67
67
|
linksVisible: t,
|
|
68
|
-
searchOpen:
|
|
68
|
+
searchOpen: m,
|
|
69
69
|
menuOpen: l,
|
|
70
70
|
onHover: (a, o) => {
|
|
71
71
|
o ? (clearTimeout(f), i.value = o, l.value = !0) : l.value && (f = setTimeout(() => {
|
|
@@ -76,7 +76,7 @@ const D = {
|
|
|
76
76
|
t.value = !1;
|
|
77
77
|
},
|
|
78
78
|
closeSearch: () => {
|
|
79
|
-
|
|
79
|
+
m.value = !1;
|
|
80
80
|
},
|
|
81
81
|
getSuggestions: (a) => {
|
|
82
82
|
var o;
|
|
@@ -84,23 +84,23 @@ const D = {
|
|
|
84
84
|
},
|
|
85
85
|
loadMenuData: (a) => {
|
|
86
86
|
var o;
|
|
87
|
-
(o =
|
|
87
|
+
(o = u.value) == null || o.onLoad(a);
|
|
88
88
|
},
|
|
89
|
-
activeHeaderItem:
|
|
89
|
+
activeHeaderItem: k,
|
|
90
90
|
searchBar: e,
|
|
91
91
|
menuComponent: i,
|
|
92
|
-
menuComponentInstance:
|
|
92
|
+
menuComponentInstance: u
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}, K = {
|
|
96
96
|
class: "header-margins tw-relative tw-py-1 tw-px-1.5 tw-font-medium",
|
|
97
97
|
style: { height: "3.75rem" }
|
|
98
98
|
}, U = { class: "header-margins tw-px-2.5" };
|
|
99
|
-
function z(C, n, t, e,
|
|
100
|
-
const l = c("kv-header-link-bar"), i = c("kv-header-logo"),
|
|
99
|
+
function z(C, n, t, e, m, k) {
|
|
100
|
+
const l = c("kv-header-link-bar"), i = c("kv-header-logo"), u = c("kv-header-search-bar"), f = c("kv-header-search-suggestions"), S = c("kv-theme-provider"), y = H("kv-track-event");
|
|
101
101
|
return h(), p(S, {
|
|
102
|
-
tag: "
|
|
103
|
-
class: "tw-bg-secondary"
|
|
102
|
+
tag: "div",
|
|
103
|
+
class: "tw-bg-secondary tw-border-b tw-border-tertiary"
|
|
104
104
|
}, {
|
|
105
105
|
default: d(() => [
|
|
106
106
|
g("nav", K, [
|
|
@@ -117,7 +117,7 @@ function z(C, n, t, e, u, b) {
|
|
|
117
117
|
onItemHover: e.onHover,
|
|
118
118
|
onOpenSearch: e.openSearch
|
|
119
119
|
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "onItemHover", "onOpenSearch"]), [
|
|
120
|
-
[
|
|
120
|
+
[b, e.linksVisible]
|
|
121
121
|
])
|
|
122
122
|
]),
|
|
123
123
|
_: 1
|
|
@@ -138,15 +138,15 @@ function z(C, n, t, e, u, b) {
|
|
|
138
138
|
onAfterLeave: e.afterSearchClosed
|
|
139
139
|
}, {
|
|
140
140
|
default: d(() => [
|
|
141
|
-
_(r(
|
|
141
|
+
_(r(u, {
|
|
142
142
|
ref: "searchBar",
|
|
143
|
-
class: "tw-absolute tw-left-1/2 tw--translate-x-1/2 tw-top-1/2 tw--translate-y-1/2 tw-h-full tw-w-full",
|
|
143
|
+
class: "tw-absolute tw-left-1/2 tw--translate-x-1/2 tw-top-1/2 tw--translate-y-1/2 tw-h-full tw-w-full tw-min-h-screen",
|
|
144
144
|
style: {
|
|
145
145
|
"max-width": "600px"
|
|
146
146
|
},
|
|
147
147
|
onCloseSearch: e.closeSearch
|
|
148
148
|
}, null, 8, ["onCloseSearch"]), [
|
|
149
|
-
[
|
|
149
|
+
[b, e.searchOpen]
|
|
150
150
|
])
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
@@ -187,7 +187,7 @@ function z(C, n, t, e, u, b) {
|
|
|
187
187
|
])
|
|
188
188
|
], 32)
|
|
189
189
|
], 512), [
|
|
190
|
-
[
|
|
190
|
+
[b, e.menuOpen || e.searchOpen]
|
|
191
191
|
])
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
@@ -196,7 +196,7 @@ function z(C, n, t, e, u, b) {
|
|
|
196
196
|
_: 1
|
|
197
197
|
});
|
|
198
198
|
}
|
|
199
|
-
const te = /* @__PURE__ */ V(D, [["render", z], ["__scopeId", "data-v-
|
|
199
|
+
const te = /* @__PURE__ */ V(D, [["render", z], ["__scopeId", "data-v-adc253f8"]]);
|
|
200
200
|
export {
|
|
201
201
|
te as default
|
|
202
202
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.40.
|
|
3
|
+
"version": "6.40.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "7684d83b97745310b7d55001d3dab0878c9acd33"
|
|
118
118
|
}
|