@kiva/kv-components 8.26.0 → 8.27.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/index.js +75 -74
- package/dist/utils/loanCard.js +106 -90
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +94 -79
- package/dist/vue/KvClassicLoanCard2.js +52 -45
- package/dist/vue/KvDatePicker.vue.d.ts +3 -3
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +86 -71
- package/dist/vue/KvIntroductionLoanCard2.js +48 -41
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +137 -115
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +74 -59
- package/dist/vue/KvWideLoanCard2.js +53 -46
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +19 -18
- package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic2.js +5 -5
- package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar.vue.d.ts +3 -2
- package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +10 -10
- package/package.json +2 -2
- package/dist/utils/loanCard.d.ts +0 -35
- package/dist/vue/KvClassicLoanCard.vue.d.ts +0 -2252
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +0 -665
- package/dist/vue/KvWideLoanCard.vue.d.ts +0 -1275
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import o from "graphql-tag";
|
|
2
|
-
import { LOAN_CALLOUTS_FRAGMENT as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
2
|
+
import { LOAN_CALLOUTS_FRAGMENT as M, LOAN_GEOCODE_FRAGMENT as R, LOAN_PROGRESS_FRAGMENT as B, loanCardComputedProperties as S, loanCardMethods as k, useLocationTruncation as w } from "../utils/loanCard.js";
|
|
3
|
+
import O from "./KvLoanUse.js";
|
|
4
|
+
import D from "./KvBorrowerImage.js";
|
|
5
|
+
import F from "./KvLoanProgressGroup.js";
|
|
6
|
+
import G from "./KvLoanCallouts.js";
|
|
7
|
+
import b from "./KvLendCta.js";
|
|
8
|
+
import P from "./KvLoanBookmark.js";
|
|
9
|
+
import U from "./KvLoanTag.js";
|
|
10
|
+
import V from "./KvMaterialIcon.js";
|
|
11
|
+
import W from "./KvLoadingPlaceholder.js";
|
|
12
|
+
import $ from "./KvTooltip.js";
|
|
13
|
+
import { KV_LEND_CTA_FRAGMENT as z, KV_LEND_CTA_USER_FRAGMENT as I } from "./KvLendCta2.js";
|
|
14
|
+
import { KV_LOAN_TAG_FRAGMENT as q } from "./KvLoanTag2.js";
|
|
15
|
+
import { KV_LOAN_USE_FRAGMENT as x } from "./KvLoanUse2.js";
|
|
16
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as H } from "./KvLoanBookmark2.js";
|
|
17
|
+
const me = o`
|
|
17
18
|
fragment KvWideLoanCard on LoanBasic {
|
|
18
19
|
id
|
|
19
20
|
image {
|
|
@@ -28,32 +29,33 @@ const ie = o`
|
|
|
28
29
|
...LoanGeocode
|
|
29
30
|
...LoanProgress
|
|
30
31
|
}
|
|
31
|
-
${
|
|
32
|
-
${
|
|
33
|
-
${
|
|
34
|
-
${E}
|
|
32
|
+
${z}
|
|
33
|
+
${q}
|
|
34
|
+
${x}
|
|
35
35
|
${M}
|
|
36
|
+
${R}
|
|
36
37
|
${B}
|
|
37
|
-
`,
|
|
38
|
+
`, ue = o`
|
|
38
39
|
fragment KvWideLoanCardUser on LoanBasic {
|
|
39
40
|
id
|
|
40
41
|
...KvLendCtaUser
|
|
41
42
|
...KvLoanBookmark
|
|
42
43
|
}
|
|
43
|
-
${
|
|
44
|
-
${
|
|
45
|
-
`,
|
|
44
|
+
${I}
|
|
45
|
+
${H}
|
|
46
|
+
`, fe = {
|
|
46
47
|
name: "KvWideLoanCard",
|
|
47
48
|
components: {
|
|
48
|
-
KvBorrowerImage:
|
|
49
|
-
KvLoadingPlaceholder:
|
|
50
|
-
KvLoanUse:
|
|
51
|
-
KvLoanProgressGroup:
|
|
52
|
-
KvMaterialIcon:
|
|
53
|
-
KvLendCta:
|
|
54
|
-
KvLoanTag:
|
|
55
|
-
KvLoanCallouts:
|
|
56
|
-
KvLoanBookmark:
|
|
49
|
+
KvBorrowerImage: D,
|
|
50
|
+
KvLoadingPlaceholder: W,
|
|
51
|
+
KvLoanUse: O,
|
|
52
|
+
KvLoanProgressGroup: F,
|
|
53
|
+
KvMaterialIcon: V,
|
|
54
|
+
KvLendCta: b,
|
|
55
|
+
KvLoanTag: U,
|
|
56
|
+
KvLoanCallouts: G,
|
|
57
|
+
KvLoanBookmark: P,
|
|
58
|
+
KvTooltip: $
|
|
57
59
|
},
|
|
58
60
|
props: {
|
|
59
61
|
loanId: {
|
|
@@ -162,19 +164,22 @@ const ie = o`
|
|
|
162
164
|
imageHash: u,
|
|
163
165
|
isLoading: f,
|
|
164
166
|
loanAmount: p,
|
|
165
|
-
loanBorrowerCount:
|
|
166
|
-
loanCallouts:
|
|
167
|
+
loanBorrowerCount: c,
|
|
168
|
+
loanCallouts: L,
|
|
167
169
|
loanStatus: g,
|
|
168
|
-
loanUse:
|
|
169
|
-
mdiMapMarker:
|
|
170
|
+
loanUse: v,
|
|
171
|
+
mdiMapMarker: _,
|
|
170
172
|
readMorePath: A,
|
|
171
173
|
state: y,
|
|
172
174
|
tag: K,
|
|
173
175
|
unreservedAmount: N,
|
|
174
176
|
sharesAvailable: h
|
|
175
|
-
} =
|
|
177
|
+
} = S(e), {
|
|
176
178
|
clickReadMore: C
|
|
177
|
-
} =
|
|
179
|
+
} = k(e, a), {
|
|
180
|
+
locationRef: T,
|
|
181
|
+
isLocationTruncated: E
|
|
182
|
+
} = w();
|
|
178
183
|
return {
|
|
179
184
|
allDataLoaded: t,
|
|
180
185
|
borrowerName: r,
|
|
@@ -187,17 +192,19 @@ const ie = o`
|
|
|
187
192
|
imageHash: u,
|
|
188
193
|
isLoading: f,
|
|
189
194
|
loanAmount: p,
|
|
190
|
-
loanBorrowerCount:
|
|
191
|
-
loanCallouts:
|
|
195
|
+
loanBorrowerCount: c,
|
|
196
|
+
loanCallouts: L,
|
|
192
197
|
loanStatus: g,
|
|
193
|
-
loanUse:
|
|
194
|
-
mdiMapMarker:
|
|
198
|
+
loanUse: v,
|
|
199
|
+
mdiMapMarker: _,
|
|
195
200
|
readMorePath: A,
|
|
196
201
|
state: y,
|
|
197
202
|
tag: K,
|
|
198
203
|
unreservedAmount: N,
|
|
199
204
|
sharesAvailable: h,
|
|
200
|
-
clickReadMore: C
|
|
205
|
+
clickReadMore: C,
|
|
206
|
+
locationRef: T,
|
|
207
|
+
isLocationTruncated: E
|
|
201
208
|
};
|
|
202
209
|
},
|
|
203
210
|
computed: {
|
|
@@ -222,7 +229,7 @@ const ie = o`
|
|
|
222
229
|
}
|
|
223
230
|
};
|
|
224
231
|
export {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
232
|
+
me as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
233
|
+
ue as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
234
|
+
fe as default
|
|
228
235
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
1
|
+
.header-fade-enter-active[data-v-5fc51700]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-5fc51700]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-5fc51700],.header-fade-leave-to[data-v-5fc51700]{opacity:0}.header-fade-leave[data-v-5fc51700],.header-fade-enter-to[data-v-5fc51700]{opacity:1}.bg-opacity-50[data-v-5fc51700]{background-color:rgba(var(--bg-action-highlight),.5)}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { resolveComponent as
|
|
1
|
+
import k from "./KvWwwHeaderBasic2.js";
|
|
2
|
+
import { resolveComponent as a, openBlock as m, createBlock as u, withCtx as r, createElementVNode as s, normalizeStyle as d, createVNode as l, Transition as g, withDirectives as b, vShow as v, normalizeClass as h, resolveDynamicComponent as y, withModifiers as M } from "vue";
|
|
3
3
|
import "./KvWwwHeaderBasic.css";
|
|
4
4
|
import I from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
function L(t, o, n, e, C, D) {
|
|
6
|
-
const w =
|
|
7
|
-
return m(), u(
|
|
6
|
+
const w = a("link-bar"), f = a("kv-page-container"), c = a("kv-theme-provider");
|
|
7
|
+
return m(), u(c, {
|
|
8
8
|
tag: "div",
|
|
9
9
|
class: "tw-bg-primary"
|
|
10
10
|
}, {
|
|
@@ -14,11 +14,11 @@ function L(t, o, n, e, C, D) {
|
|
|
14
14
|
class: "tw-font-medium tw-relative",
|
|
15
15
|
style: d({ minHeight: e.MIN_HEADER_HEIGHT })
|
|
16
16
|
}, [
|
|
17
|
-
|
|
17
|
+
l(f, null, {
|
|
18
18
|
default: r(() => [
|
|
19
|
-
|
|
19
|
+
l(g, { name: "header-fade" }, {
|
|
20
20
|
default: r(() => [
|
|
21
|
-
b(
|
|
21
|
+
b(l(w, {
|
|
22
22
|
"logged-in": n.loggedIn,
|
|
23
23
|
"basket-count": n.basketCount,
|
|
24
24
|
balance: n.balance,
|
|
@@ -39,7 +39,8 @@ function L(t, o, n, e, C, D) {
|
|
|
39
39
|
"open-menu-item": e.menuComponent,
|
|
40
40
|
onItemHover: e.onItemHover,
|
|
41
41
|
onLoadSearchData: o[0] || (o[0] = (i) => t.$emit("load-search-data")),
|
|
42
|
-
onSearchSubmit: o[1] || (o[1] = (i) => t.$emit("search-submit", i))
|
|
42
|
+
onSearchSubmit: o[1] || (o[1] = (i) => t.$emit("search-submit", i)),
|
|
43
|
+
onLoginClick: o[2] || (o[2] = (i) => t.$emit("login-click", i))
|
|
43
44
|
}, null, 8, ["logged-in", "basket-count", "balance", "user-id", "is-borrower", "is-trustee", "lender-name", "lender-image-url", "is-user-data-loading", "is-basket-data-loading", "show-m-g-upsell-link", "login-url", "my-dashboard-url", "countries-not-lent-to-url", "app-origin", "search-suggestions", "is-mobile", "open-menu-item", "onItemHover"]), [
|
|
44
45
|
[v, e.linksVisible]
|
|
45
46
|
])
|
|
@@ -50,22 +51,22 @@ function L(t, o, n, e, C, D) {
|
|
|
50
51
|
_: 1
|
|
51
52
|
})
|
|
52
53
|
], 4),
|
|
53
|
-
|
|
54
|
+
l(g, { name: "header-fade" }, {
|
|
54
55
|
default: r(() => [
|
|
55
56
|
b(s("div", {
|
|
56
57
|
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",
|
|
57
58
|
style: d({ top: e.navHeight }),
|
|
58
|
-
onTouchstart: o[
|
|
59
|
+
onTouchstart: o[9] || (o[9] = (...i) => e.handleOverlayClick && e.handleOverlayClick(...i))
|
|
59
60
|
}, [
|
|
60
61
|
s("div", {
|
|
61
62
|
ref: "menuPanelRef",
|
|
62
|
-
class:
|
|
63
|
+
class: h(["tw-bg-primary tw-overflow-y-auto", e.menuPanelClass]),
|
|
63
64
|
style: d({
|
|
64
65
|
...e.menuPosition,
|
|
65
66
|
maxHeight: e.isMobileMenuActive ? "auto" : `calc(100dvh - ${e.navHeight})`
|
|
66
67
|
}),
|
|
67
|
-
onMouseenter: o[
|
|
68
|
-
onMouseleave: o[
|
|
68
|
+
onMouseenter: o[7] || (o[7] = (i) => e.setMenu(e.menuItem, e.menuComponent)),
|
|
69
|
+
onMouseleave: o[8] || (o[8] = (i) => e.setMenu())
|
|
69
70
|
}, [
|
|
70
71
|
(m(), u(y(e.menuComponent), {
|
|
71
72
|
ref: "menuComponentInstance",
|
|
@@ -84,10 +85,10 @@ function L(t, o, n, e, C, D) {
|
|
|
84
85
|
"app-origin": e.resolvedAppOrigin,
|
|
85
86
|
"search-suggestions": e.effectiveSuggestions,
|
|
86
87
|
onLoadLendMenuData: e.emitLendMenuEvent,
|
|
87
|
-
onLoadSearchData: o[
|
|
88
|
-
onSearchSubmit: o[
|
|
89
|
-
onClosingMenu: o[
|
|
90
|
-
onTouchstart: o[
|
|
88
|
+
onLoadSearchData: o[3] || (o[3] = (i) => t.$emit("load-search-data")),
|
|
89
|
+
onSearchSubmit: o[4] || (o[4] = (i) => t.$emit("search-submit", i)),
|
|
90
|
+
onClosingMenu: o[5] || (o[5] = (i) => e.setMenu()),
|
|
91
|
+
onTouchstart: o[6] || (o[6] = M(() => {
|
|
91
92
|
}, ["stop"]))
|
|
92
93
|
}, 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"]))
|
|
93
94
|
], 38)
|
|
@@ -101,7 +102,7 @@ function L(t, o, n, e, C, D) {
|
|
|
101
102
|
_: 1
|
|
102
103
|
});
|
|
103
104
|
}
|
|
104
|
-
const B = /* @__PURE__ */ I(
|
|
105
|
+
const B = /* @__PURE__ */ I(k, [["render", L], ["__scopeId", "data-v-5fc51700"]]);
|
|
105
106
|
export {
|
|
106
107
|
B as default
|
|
107
108
|
};
|
|
@@ -42,10 +42,10 @@ const S = "4rem", Y = G`
|
|
|
42
42
|
trusteeId: { type: Number, default: null },
|
|
43
43
|
mostRecentBorrowedLoanId: { type: Number, default: null }
|
|
44
44
|
},
|
|
45
|
-
emits: ["load-lend-menu-data", "load-search-data", "search-submit"],
|
|
45
|
+
emits: ["load-lend-menu-data", "load-search-data", "search-submit", "login-click"],
|
|
46
46
|
setup(d, { emit: M }) {
|
|
47
|
-
const { isMobile: B, checkIsMobile:
|
|
48
|
-
menuOpen:
|
|
47
|
+
const { isMobile: B, checkIsMobile: k } = Q(), {
|
|
48
|
+
menuOpen: I,
|
|
49
49
|
menuComponent: A,
|
|
50
50
|
menuItem: N,
|
|
51
51
|
menuPosition: v,
|
|
@@ -102,7 +102,7 @@ const S = "4rem", Y = G`
|
|
|
102
102
|
g.value || f();
|
|
103
103
|
}
|
|
104
104
|
return K(() => {
|
|
105
|
-
!d.appOrigin && typeof window < "u" && (b.value = window.location.origin),
|
|
105
|
+
!d.appOrigin && typeof window < "u" && (b.value = window.location.origin), k(), O(), r.value && typeof ResizeObserver < "u" && (u = new ResizeObserver(() => {
|
|
106
106
|
r.value && (y.value = `${r.value.offsetHeight}px`);
|
|
107
107
|
}), u.observe(r.value));
|
|
108
108
|
}), $(() => {
|
|
@@ -115,7 +115,7 @@ const S = "4rem", Y = G`
|
|
|
115
115
|
resolvedAppOrigin: b,
|
|
116
116
|
effectiveSuggestions: U,
|
|
117
117
|
isMobile: B,
|
|
118
|
-
menuOpen:
|
|
118
|
+
menuOpen: I,
|
|
119
119
|
menuComponent: A,
|
|
120
120
|
menuItem: N,
|
|
121
121
|
menuPosition: v,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.link-bar[data-v-
|
|
1
|
+
.link-bar[data-v-2fd75227]{display:flex;align-items:center;gap:.5rem}.link-bar__logo[data-v-2fd75227]{position:absolute;top:50%;left:50%;--tw-translate-x: -50%;--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}@media(min-width:45.875rem){.link-bar[data-v-2fd75227]{display:grid;-moz-column-gap:1rem;column-gap:1rem;grid-template-areas:"logo lend right" "search search search";grid-template-columns:1fr auto auto;grid-template-rows:4rem auto;row-gap:.5rem}.link-bar__logo[data-v-2fd75227]{position:static;--tw-translate-x: 0;--tw-translate-y: 0;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));grid-area:logo;justify-self:start}.link-bar__lend[data-v-2fd75227]{grid-area:lend}.link-bar__search[data-v-2fd75227]{grid-area:search;margin-bottom:.5rem}.link-bar__right[data-v-2fd75227]{grid-area:right}}@media(min-width:64rem){.link-bar[data-v-2fd75227]{-moz-column-gap:1.25rem;column-gap:1.25rem;grid-template-areas:"logo lend search right";grid-template-columns:auto auto 1fr auto;grid-template-rows:4rem}.link-bar__search[data-v-2fd75227]{margin-bottom:0}}.header-link[data-v-2fd75227]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-2fd75227]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|
|
@@ -155,7 +155,7 @@ function V(k, n, o, e, j, X) {
|
|
|
155
155
|
])
|
|
156
156
|
], 32);
|
|
157
157
|
}
|
|
158
|
-
const Q = /* @__PURE__ */ O(M, [["render", V], ["__scopeId", "data-v-
|
|
158
|
+
const Q = /* @__PURE__ */ O(M, [["render", V], ["__scopeId", "data-v-2fd75227"]]);
|
|
159
159
|
export {
|
|
160
160
|
Q as default
|
|
161
161
|
};
|
|
@@ -257,11 +257,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
257
257
|
handleTouchStart: (item: string, menu: unknown, position?: unknown, triggerCenterX?: number | null) => void;
|
|
258
258
|
handleEmptySpaceClick: (event: Event) => void;
|
|
259
259
|
onPrimaryClick: (link: NavLink) => void;
|
|
260
|
-
onLoginClick: () => void;
|
|
260
|
+
onLoginClick: (event: MouseEvent) => void;
|
|
261
261
|
onBasketClick: () => void;
|
|
262
262
|
onSupportKivaClick: () => void;
|
|
263
263
|
onLogoClick: () => void;
|
|
264
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("load-search-data" | "search-submit" | "item-hover")[], "load-search-data" | "search-submit" | "item-hover", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
264
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("load-search-data" | "search-submit" | "item-hover" | "login-click")[], "load-search-data" | "search-submit" | "item-hover" | "login-click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
265
265
|
loggedIn: {
|
|
266
266
|
type: BooleanConstructor;
|
|
267
267
|
default: boolean;
|
|
@@ -338,6 +338,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
338
338
|
"onLoad-search-data"?: (...args: any[]) => any;
|
|
339
339
|
"onSearch-submit"?: (...args: any[]) => any;
|
|
340
340
|
"onItem-hover"?: (...args: any[]) => any;
|
|
341
|
+
"onLogin-click"?: (...args: any[]) => any;
|
|
341
342
|
}>, {
|
|
342
343
|
lenderName: string;
|
|
343
344
|
lenderImageUrl: string;
|
|
@@ -9,7 +9,7 @@ import F from "../KvWwwHeader/KvHeaderLogo.js";
|
|
|
9
9
|
import G from "../KvWwwHeader/KvHeaderDropdownLink.js";
|
|
10
10
|
import { PRIMARY_LINKS as W } from "../../utils/headerNavLinks.js";
|
|
11
11
|
import X from "./SearchBar.js";
|
|
12
|
-
const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")),
|
|
12
|
+
const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), g = r(() => import("./AboutMenu.js")), Y = r(() => import("./MyKivaMenu.js")), q = r(() => import("./MobileMenu.js")), ie = {
|
|
13
13
|
name: "LinkBar",
|
|
14
14
|
components: {
|
|
15
15
|
KvMaterialIcon: E,
|
|
@@ -40,11 +40,11 @@ const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), p = r(() =>
|
|
|
40
40
|
isMobile: { type: Boolean, default: !1 },
|
|
41
41
|
openMenuItem: { type: [Object, Function], default: null }
|
|
42
42
|
},
|
|
43
|
-
emits: ["item-hover", "load-search-data", "search-submit"],
|
|
43
|
+
emits: ["item-hover", "load-search-data", "search-submit", "login-click"],
|
|
44
44
|
setup(t, { emit: l }) {
|
|
45
45
|
const o = P("$kvTrackEvent", () => {
|
|
46
46
|
}), a = d(null), u = d(null);
|
|
47
|
-
function
|
|
47
|
+
function p() {
|
|
48
48
|
const e = u.value, n = e == null ? void 0 : e.getBoundingClientRect();
|
|
49
49
|
return n ? t.isMobile ? { right: "0" } : { right: `${window.innerWidth - n.right}px` } : null;
|
|
50
50
|
}
|
|
@@ -53,7 +53,7 @@ const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), p = r(() =>
|
|
|
53
53
|
const e = u.value, n = e == null ? void 0 : e.getBoundingClientRect();
|
|
54
54
|
return n ? n.left + n.width / 2 : null;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const k = i(() => W.filter((e) => e.visibility === "visitor" ? !t.loggedIn : e.visibility === "loggedIn" ? t.loggedIn : !0)), h = i(() => t.isMobile ? void 0 : "/lend-by-category"), y = i(() => $(Math.floor(t.balance)).format("$0")), M = i(() => t.openMenuItem === v ? t.openMenuItem : null), B = i(() => t.openMenuItem === g ? t.openMenuItem : null), L = {
|
|
57
57
|
menuButton: { action: "hover-Mobile-menu", label: "Mobile" },
|
|
58
58
|
lendButton: { action: "hover-Lend-menu", label: "Lend" },
|
|
59
59
|
aboutLink: { action: "hover-About-menu", label: "About" },
|
|
@@ -84,8 +84,8 @@ const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), p = r(() =>
|
|
|
84
84
|
function K(e) {
|
|
85
85
|
o(e.track[0], e.track[1]);
|
|
86
86
|
}
|
|
87
|
-
function U() {
|
|
88
|
-
o("TopNav", "click-Log-in");
|
|
87
|
+
function U(e) {
|
|
88
|
+
o("TopNav", "click-Log-in"), l("login-click", e);
|
|
89
89
|
}
|
|
90
90
|
function A() {
|
|
91
91
|
o("TopNav", "click-Basket");
|
|
@@ -101,14 +101,14 @@ const v = r(() => import("../KvWwwHeader/LendMenu/KvLendMenu.js")), p = r(() =>
|
|
|
101
101
|
mdiChevronDown: x,
|
|
102
102
|
mdiBriefcase: D,
|
|
103
103
|
KvLendMenu: v,
|
|
104
|
-
AboutMenu:
|
|
104
|
+
AboutMenu: g,
|
|
105
105
|
MyKivaMenu: Y,
|
|
106
106
|
MobileMenu: q,
|
|
107
107
|
avatarMenu: u,
|
|
108
|
-
getAvatarMenuPosition:
|
|
108
|
+
getAvatarMenuPosition: p,
|
|
109
109
|
getAvatarTriggerCenterX: b,
|
|
110
|
-
visiblePrimaryLinks:
|
|
111
|
-
lendUrl:
|
|
110
|
+
visiblePrimaryLinks: k,
|
|
111
|
+
lendUrl: h,
|
|
112
112
|
formattedBalance: y,
|
|
113
113
|
lendOpenItem: M,
|
|
114
114
|
aboutOpenItem: B,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.27.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"dependencies": {
|
|
114
114
|
"fuse.js": "^7.1.0"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "bb636116de28fdd44916765d3f498617f473ed22"
|
|
117
117
|
}
|
package/dist/utils/loanCard.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
export interface Callout {
|
|
2
|
-
id: number | null;
|
|
3
|
-
label: string;
|
|
4
|
-
type: 'tag' | 'attribute' | 'activity' | 'sector';
|
|
5
|
-
}
|
|
6
|
-
export declare const LOAN_CALLOUTS_FRAGMENT: import('graphql').DocumentNode;
|
|
7
|
-
export declare const LOAN_GEOCODE_FRAGMENT: import('graphql').DocumentNode;
|
|
8
|
-
export declare const LOAN_PROGRESS_FRAGMENT: import('graphql').DocumentNode;
|
|
9
|
-
export declare function loanCardComputedProperties(props: any, hideUnitedStatesText?: boolean): {
|
|
10
|
-
tag: import('vue').ComputedRef<"router-link" | "a">;
|
|
11
|
-
readMorePath: import('vue').ComputedRef<any>;
|
|
12
|
-
isLoading: import('vue').ComputedRef<boolean>;
|
|
13
|
-
borrowerName: import('vue').ComputedRef<any>;
|
|
14
|
-
countryName: import('vue').ComputedRef<any>;
|
|
15
|
-
countryCode: import('vue').ComputedRef<any>;
|
|
16
|
-
city: import('vue').ComputedRef<any>;
|
|
17
|
-
state: import('vue').ComputedRef<any>;
|
|
18
|
-
distributionModel: import('vue').ComputedRef<any>;
|
|
19
|
-
imageHash: import('vue').ComputedRef<any>;
|
|
20
|
-
hasProgressData: import('vue').ComputedRef<boolean>;
|
|
21
|
-
allDataLoaded: import('vue').ComputedRef<boolean>;
|
|
22
|
-
fundraisingPercent: import('vue').ComputedRef<any>;
|
|
23
|
-
unreservedAmount: import('vue').ComputedRef<any>;
|
|
24
|
-
sharesAvailable: import('vue').ComputedRef<boolean>;
|
|
25
|
-
formattedLocation: import('vue').ComputedRef<any>;
|
|
26
|
-
loanUse: import('vue').ComputedRef<any>;
|
|
27
|
-
loanStatus: import('vue').ComputedRef<any>;
|
|
28
|
-
loanAmount: import('vue').ComputedRef<any>;
|
|
29
|
-
loanBorrowerCount: import('vue').ComputedRef<any>;
|
|
30
|
-
mdiMapMarker: string;
|
|
31
|
-
loanCallouts: import('vue').ComputedRef<Callout[]>;
|
|
32
|
-
};
|
|
33
|
-
export declare function loanCardMethods(props: any, emit: any): {
|
|
34
|
-
clickReadMore: (target: string, event: Event) => void;
|
|
35
|
-
};
|