@kiva/kv-components 8.7.4 → 8.8.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/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +2 -2
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +12 -12
- package/dist/vue/KvCompactLoanCard.vue.d.ts +7 -7
- package/dist/vue/KvCompactLoanCard2.js +27 -27
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +5 -5
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +69 -67
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +2 -2
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-36c426a5]:hover,.loan-card-use[data-v-36c426a5]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-36c426a5]{text-decoration-line:underline}.loan-card-progress[data-v-36c426a5]:hover,.loan-card-progress[data-v-36c426a5]:focus{text-decoration-line:none}
|
|
@@ -30,7 +30,7 @@ function O(u, a, e, t, q, d) {
|
|
|
30
30
|
c("div", I, [
|
|
31
31
|
t.isLoading ? (o(), n(k, {
|
|
32
32
|
key: 0,
|
|
33
|
-
class: r(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": e.largeCard, "tw-rounded-sm": !e.largeCard }]),
|
|
33
|
+
class: r(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": e.largeCard, "!tw-rounded-sm": !e.largeCard }]),
|
|
34
34
|
style: { height: "15rem" }
|
|
35
35
|
}, null, 8, ["class"])) : (o(), s("div", E, [
|
|
36
36
|
(o(), n(g(t.tag), {
|
|
@@ -231,7 +231,7 @@ function O(u, a, e, t, q, d) {
|
|
|
231
231
|
])) : w("", !0)
|
|
232
232
|
], 6);
|
|
233
233
|
}
|
|
234
|
-
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-
|
|
234
|
+
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-36c426a5"]]);
|
|
235
235
|
export {
|
|
236
236
|
ee as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
237
237
|
te as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-b1272f83]:hover,.loan-card-use[data-v-b1272f83]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-b1272f83]{text-decoration-line:underline}.loan-card-progress[data-v-b1272f83]:hover,.loan-card-progress[data-v-b1272f83]:focus{text-decoration-line:none}.loan-card-use-text[data-v-b1272f83] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-b1272f83] form,.loan-card-cta[data-v-b1272f83] fieldset,.loan-card-cta[data-v-b1272f83] .tw-w-full,.loan-card-cta[data-v-b1272f83] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-b1272f83] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
|
|
@@ -2,8 +2,8 @@ import N from "./KvCompactLoanCard2.js";
|
|
|
2
2
|
import { KV_COMPACT_LOAN_CARD_FRAGMENT as p, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as $ } from "./KvCompactLoanCard2.js";
|
|
3
3
|
import { resolveComponent as w, openBlock as a, createElementBlock as l, normalizeClass as c, createVNode as i, createCommentVNode as d, createElementVNode as r, normalizeStyle as T, createBlock as s, resolveDynamicComponent as u, withCtx as f, toDisplayString as k, withModifiers as P, Fragment as g, renderList as A } from "vue";
|
|
4
4
|
import "./KvCompactLoanCard.css";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import R from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const B = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, V = { class: "tw-flex-shrink-0 tw-overflow-hidden" }, D = { class: "tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0" }, S = {
|
|
7
7
|
key: 0,
|
|
8
8
|
class: "tw-mb-0.5 tw-w-full"
|
|
9
9
|
}, F = { class: "tw-text-primary !tw-font-medium tw-text-base tw-leading-normal tw-truncate" }, W = ["href"], j = { class: "tw-truncate" }, E = {
|
|
@@ -13,24 +13,24 @@ const V = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, R = { class
|
|
|
13
13
|
function z(h, o, t, e, G, H) {
|
|
14
14
|
const b = w("kv-material-icon"), v = w("kv-borrower-image"), x = w("kv-loan-tag"), m = w("kv-loading-placeholder"), _ = w("kv-loan-use"), y = w("kv-loan-callouts"), L = w("kv-loan-progress-group"), C = w("kv-lend-cta");
|
|
15
15
|
return a(), l("div", {
|
|
16
|
-
class: c(["tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-full", { "tw-relative": t.
|
|
16
|
+
class: c(["tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-full", { "tw-relative": t.showRefreshButton, "!tw-p-1.5": t.showLightView }])
|
|
17
17
|
}, [
|
|
18
|
-
t.
|
|
18
|
+
t.showRefreshButton ? (a(), l("button", {
|
|
19
19
|
key: 0,
|
|
20
|
-
class: "tw-absolute tw--top-1 tw--right-1 tw-
|
|
21
|
-
onClick: o[0] || (o[0] = (...n) => e.
|
|
20
|
+
class: "tw-absolute tw--top-1 tw--right-1 tw-bg-white tw-rounded-full tw-w-2.5 tw-h-2.5 tw-flex tw-items-center tw-justify-center tw-cursor-pointer tw-drop-shadow-sm",
|
|
21
|
+
onClick: o[0] || (o[0] = (...n) => e.handleRefreshButton && e.handleRefreshButton(...n))
|
|
22
22
|
}, [
|
|
23
23
|
i(b, {
|
|
24
|
-
icon: e.
|
|
25
|
-
class: "tw-w-
|
|
24
|
+
icon: e.mdiCached,
|
|
25
|
+
class: "tw-w-2.5 tw-h-2.5 tw--scale-x-100 tw-text-gray-500"
|
|
26
26
|
}, null, 8, ["icon"])
|
|
27
27
|
])) : d("", !0),
|
|
28
|
-
r("div",
|
|
28
|
+
r("div", B, [
|
|
29
29
|
r("div", {
|
|
30
30
|
class: c(["tw-flex tw-items-start tw-gap-2 tw-w-full loan-card-active-hover", { "!tw-gap-1": t.showLightView }]),
|
|
31
31
|
style: T(e.customStyle)
|
|
32
32
|
}, [
|
|
33
|
-
r("div",
|
|
33
|
+
r("div", V, [
|
|
34
34
|
(a(), s(u(e.tag), {
|
|
35
35
|
to: e.readMorePath,
|
|
36
36
|
href: e.readMorePath,
|
|
@@ -42,7 +42,7 @@ function z(h, o, t, e, G, H) {
|
|
|
42
42
|
}, {
|
|
43
43
|
default: f(() => [
|
|
44
44
|
i(v, {
|
|
45
|
-
class: c(["tw-bg-gray-300 tw-rounded-
|
|
45
|
+
class: c(["tw-bg-gray-300 tw-rounded-sm tw-object-cover tw-bg-clip-content", { "!tw-w-7.5 !tw-h-7.5": t.showLightView }]),
|
|
46
46
|
style: { width: "100px", height: "100px" },
|
|
47
47
|
alt: `Photo of ${e.borrowerName}`,
|
|
48
48
|
"aspect-ratio": 1,
|
|
@@ -240,7 +240,7 @@ function z(h, o, t, e, G, H) {
|
|
|
240
240
|
], 2)
|
|
241
241
|
], 2);
|
|
242
242
|
}
|
|
243
|
-
const Q = /* @__PURE__ */
|
|
243
|
+
const Q = /* @__PURE__ */ R(N, [["render", z], ["__scopeId", "data-v-b1272f83"]]);
|
|
244
244
|
export {
|
|
245
245
|
p as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
246
246
|
$ as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
@@ -127,7 +127,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
127
127
|
type: NumberConstructor;
|
|
128
128
|
default: number;
|
|
129
129
|
};
|
|
130
|
-
|
|
130
|
+
showRefreshButton: {
|
|
131
131
|
type: BooleanConstructor;
|
|
132
132
|
default: boolean;
|
|
133
133
|
};
|
|
@@ -155,7 +155,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
155
155
|
mdiMapMarker: string;
|
|
156
156
|
mdiHome: string;
|
|
157
157
|
mdiLink: string;
|
|
158
|
-
|
|
158
|
+
mdiCached: string;
|
|
159
159
|
readMorePath: import('vue').ComputedRef<any>;
|
|
160
160
|
state: import('vue').ComputedRef<any>;
|
|
161
161
|
tag: import('vue').ComputedRef<"router-link" | "a">;
|
|
@@ -168,11 +168,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
168
168
|
loanUseLoadingRows: import('vue').ComputedRef<3 | 4>;
|
|
169
169
|
clickReadMore: (target: string, event: Event) => void;
|
|
170
170
|
trackWebsiteClick: () => void;
|
|
171
|
-
|
|
171
|
+
handleRefreshButton: (event: any) => void;
|
|
172
172
|
}, {}, {
|
|
173
173
|
lendersNumber(): any;
|
|
174
174
|
amountLent(): any;
|
|
175
|
-
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("add-to-basket" | "remove-from-basket" | "jump-filter-page" | "
|
|
175
|
+
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button")[], "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
176
176
|
loanId: {
|
|
177
177
|
type: NumberConstructor;
|
|
178
178
|
default: any;
|
|
@@ -297,7 +297,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
297
297
|
type: NumberConstructor;
|
|
298
298
|
default: number;
|
|
299
299
|
};
|
|
300
|
-
|
|
300
|
+
showRefreshButton: {
|
|
301
301
|
type: BooleanConstructor;
|
|
302
302
|
default: boolean;
|
|
303
303
|
};
|
|
@@ -309,7 +309,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
309
309
|
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
310
310
|
"onRemove-from-basket"?: (...args: any[]) => any;
|
|
311
311
|
"onJump-filter-page"?: (...args: any[]) => any;
|
|
312
|
-
"
|
|
312
|
+
"onRefresh-button"?: (...args: any[]) => any;
|
|
313
313
|
}>, {
|
|
314
314
|
loan: Record<string, any>;
|
|
315
315
|
externalLinks: boolean;
|
|
@@ -340,7 +340,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
340
340
|
website: string;
|
|
341
341
|
showLoanUse: boolean;
|
|
342
342
|
showLightView: boolean;
|
|
343
|
-
|
|
343
|
+
showRefreshButton: boolean;
|
|
344
344
|
customAmountLent: string;
|
|
345
345
|
}, {}, {
|
|
346
346
|
KvBorrowerImage: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "graphql-tag";
|
|
2
|
-
import
|
|
2
|
+
import R from "numeral";
|
|
3
3
|
import { computed as n } from "vue";
|
|
4
|
-
import { mdiMapMarker as
|
|
4
|
+
import { mdiMapMarker as F, mdiHome as M, mdiLink as S, mdiCached as E } from "@mdi/js";
|
|
5
5
|
import { LOAN_CALLOUTS_FRAGMENT as O, LOAN_GEOCODE_FRAGMENT as G, LOAN_PROGRESS_FRAGMENT as P, loanCardComputedProperties as V, loanCardMethods as U } from "../utils/loanCard.js";
|
|
6
6
|
import D from "./KvLoanUse.js";
|
|
7
7
|
import $ from "./KvBorrowerImage.js";
|
|
@@ -15,7 +15,7 @@ import z from "./KvLoanTeamPick.js";
|
|
|
15
15
|
import { KV_LEND_CTA_FRAGMENT as J, KV_LEND_CTA_USER_FRAGMENT as Q } from "./KvLendCta2.js";
|
|
16
16
|
import { KV_LOAN_TAG_FRAGMENT as X } from "./KvLoanTag2.js";
|
|
17
17
|
import { KV_LOAN_USE_FRAGMENT as Y } from "./KvLoanUse2.js";
|
|
18
|
-
const
|
|
18
|
+
const ge = r`
|
|
19
19
|
fragment KvCompactLoanCard on LoanBasic {
|
|
20
20
|
id
|
|
21
21
|
image {
|
|
@@ -43,7 +43,7 @@ const Ce = r`
|
|
|
43
43
|
${O}
|
|
44
44
|
${G}
|
|
45
45
|
${P}
|
|
46
|
-
`,
|
|
46
|
+
`, Ce = r`
|
|
47
47
|
fragment KvCompactLoanCardUser on LoanBasic {
|
|
48
48
|
id
|
|
49
49
|
...KvLendCtaUser
|
|
@@ -187,7 +187,7 @@ const Ce = r`
|
|
|
187
187
|
type: Number,
|
|
188
188
|
default: 0
|
|
189
189
|
},
|
|
190
|
-
|
|
190
|
+
showRefreshButton: {
|
|
191
191
|
type: Boolean,
|
|
192
192
|
default: !1
|
|
193
193
|
},
|
|
@@ -197,7 +197,7 @@ const Ce = r`
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
emits: [
|
|
200
|
-
"
|
|
200
|
+
"refresh-button",
|
|
201
201
|
"jump-filter-page",
|
|
202
202
|
"add-to-basket",
|
|
203
203
|
"remove-from-basket"
|
|
@@ -206,8 +206,8 @@ const Ce = r`
|
|
|
206
206
|
const {
|
|
207
207
|
allDataLoaded: a,
|
|
208
208
|
borrowerName: i,
|
|
209
|
-
city:
|
|
210
|
-
countryName:
|
|
209
|
+
city: s,
|
|
210
|
+
countryName: l,
|
|
211
211
|
distributionModel: u,
|
|
212
212
|
formattedLocation: d,
|
|
213
213
|
fundraisingPercent: m,
|
|
@@ -215,10 +215,10 @@ const Ce = r`
|
|
|
215
215
|
imageHash: c,
|
|
216
216
|
isLoading: p,
|
|
217
217
|
loanAmount: L,
|
|
218
|
-
loanBorrowerCount:
|
|
219
|
-
loanCallouts:
|
|
220
|
-
loanStatus:
|
|
221
|
-
loanUse:
|
|
218
|
+
loanBorrowerCount: h,
|
|
219
|
+
loanCallouts: y,
|
|
220
|
+
loanStatus: g,
|
|
221
|
+
loanUse: C,
|
|
222
222
|
readMorePath: A,
|
|
223
223
|
state: _,
|
|
224
224
|
tag: N,
|
|
@@ -238,8 +238,8 @@ const Ce = r`
|
|
|
238
238
|
return {
|
|
239
239
|
allDataLoaded: a,
|
|
240
240
|
borrowerName: i,
|
|
241
|
-
city:
|
|
242
|
-
countryName:
|
|
241
|
+
city: s,
|
|
242
|
+
countryName: l,
|
|
243
243
|
distributionModel: u,
|
|
244
244
|
formattedLocation: d,
|
|
245
245
|
formattedWebsite: v,
|
|
@@ -248,14 +248,14 @@ const Ce = r`
|
|
|
248
248
|
imageHash: c,
|
|
249
249
|
isLoading: p,
|
|
250
250
|
loanAmount: L,
|
|
251
|
-
loanBorrowerCount:
|
|
252
|
-
loanCallouts:
|
|
253
|
-
loanStatus:
|
|
254
|
-
loanUse:
|
|
255
|
-
mdiMapMarker:
|
|
256
|
-
mdiHome:
|
|
257
|
-
mdiLink:
|
|
258
|
-
|
|
251
|
+
loanBorrowerCount: h,
|
|
252
|
+
loanCallouts: y,
|
|
253
|
+
loanStatus: g,
|
|
254
|
+
loanUse: C,
|
|
255
|
+
mdiMapMarker: F,
|
|
256
|
+
mdiHome: M,
|
|
257
|
+
mdiLink: S,
|
|
258
|
+
mdiCached: E,
|
|
259
259
|
readMorePath: A,
|
|
260
260
|
state: _,
|
|
261
261
|
tag: N,
|
|
@@ -267,8 +267,8 @@ const Ce = r`
|
|
|
267
267
|
trackWebsiteClick: () => {
|
|
268
268
|
e.kvTrackFunction("Lending", "click-Business Website", "Website", e.loanId);
|
|
269
269
|
},
|
|
270
|
-
|
|
271
|
-
t("
|
|
270
|
+
handleRefreshButton: (o) => {
|
|
271
|
+
t("refresh-button", o);
|
|
272
272
|
}
|
|
273
273
|
};
|
|
274
274
|
},
|
|
@@ -280,12 +280,12 @@ const Ce = r`
|
|
|
280
280
|
amountLent() {
|
|
281
281
|
var t, a;
|
|
282
282
|
const e = ((a = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : a.fundedAmount) ?? 0;
|
|
283
|
-
return
|
|
283
|
+
return R(e).format("$0,0");
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
export {
|
|
288
|
-
|
|
289
|
-
|
|
288
|
+
ge as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
289
|
+
Ce as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
290
290
|
Ae as default
|
|
291
291
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-callouts[data-v-
|
|
1
|
+
.loan-callouts[data-v-035d3df9] span{background-color:transparent!important;--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.loan-card-use[data-v-035d3df9]:hover,.loan-card-use[data-v-035d3df9]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-035d3df9],.loan-card-active-hover:hover .loan-card-name[data-v-035d3df9]{text-decoration-line:underline}.loan-card-progress[data-v-035d3df9],.loan-card-progress[data-v-035d3df9]:hover,.loan-card-progress[data-v-035d3df9]:focus{text-decoration-line:none}.loan-card-name[data-v-035d3df9]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding-left:1.5rem;padding-right:1.5rem;padding-top:.5rem}.loan-bookmark[data-v-035d3df9] button{border-top-left-radius:0!important;border-top-right-radius:0!important}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import M from "./KvIntroductionLoanCard2.js";
|
|
2
2
|
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as tt, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as et } from "./KvIntroductionLoanCard2.js";
|
|
3
|
-
import { resolveComponent as d, openBlock as e, createElementBlock as n, normalizeClass as _, normalizeStyle as P, createElementVNode as s, createBlock as o, resolveDynamicComponent as g, withCtx as m, createVNode as i, Suspense as R, createTextVNode as
|
|
3
|
+
import { resolveComponent as d, openBlock as e, createElementBlock as n, normalizeClass as _, normalizeStyle as P, createElementVNode as s, createBlock as o, resolveDynamicComponent as g, withCtx as m, createVNode as i, Suspense as R, createTextVNode as p, toDisplayString as f, createCommentVNode as c, Fragment as A, renderList as T } from "vue";
|
|
4
4
|
import "./KvIntroductionLoanCard.css";
|
|
5
5
|
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const D = { class: "tw-grow" }, z = { class: "loan-card-active-hover" }, I = {
|
|
@@ -48,7 +48,7 @@ function G(k, a, w, t, H, h) {
|
|
|
48
48
|
}, {
|
|
49
49
|
default: m(() => [
|
|
50
50
|
i(u, {
|
|
51
|
-
class: "tw-relative tw-w-full tw-bg-black tw-rounded-t borrower-image",
|
|
51
|
+
class: "tw-relative tw-w-full tw-bg-black tw-rounded-t borrower-image tw-bg-clip-content",
|
|
52
52
|
alt: `Photo of ${t.borrowerName}`,
|
|
53
53
|
"aspect-ratio": h.imageAspectRatio,
|
|
54
54
|
"default-image": { width: h.imageDefaultWidth },
|
|
@@ -70,7 +70,7 @@ function G(k, a, w, t, H, h) {
|
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
72
|
})),
|
|
73
|
-
|
|
73
|
+
p(" " + f(t.formattedLocation), 1)
|
|
74
74
|
])
|
|
75
75
|
])) : c("", !0)
|
|
76
76
|
]),
|
|
@@ -150,7 +150,7 @@ function G(k, a, w, t, H, h) {
|
|
|
150
150
|
class: _(["tw-pt-0.5 tw-px-2", { "tw-mb-1.5": !t.isLoading }])
|
|
151
151
|
}, [
|
|
152
152
|
t.isLoading ? (e(), n("div", S, [
|
|
153
|
-
(e(!0), n(
|
|
153
|
+
(e(!0), n(A, null, T([...Array(3)], (r, L) => (e(), n("div", {
|
|
154
154
|
key: L,
|
|
155
155
|
class: "tw-h-2 tw-mb-1"
|
|
156
156
|
}, [
|
|
@@ -226,7 +226,7 @@ function G(k, a, w, t, H, h) {
|
|
|
226
226
|
])
|
|
227
227
|
], 6);
|
|
228
228
|
}
|
|
229
|
-
const Y = /* @__PURE__ */ B(M, [["render", G], ["__scopeId", "data-v-
|
|
229
|
+
const Y = /* @__PURE__ */ B(M, [["render", G], ["__scopeId", "data-v-035d3df9"]]);
|
|
230
230
|
export {
|
|
231
231
|
tt as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
232
232
|
et as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-active-hover[data-v-
|
|
1
|
+
.loan-card-active-hover[data-v-5370a5d5]:hover{cursor:pointer}.loan-card-use[data-v-5370a5d5]:hover,.loan-card-use[data-v-5370a5d5]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-5370a5d5]{text-decoration-line:underline}.loan-card-progress[data-v-5370a5d5]:hover,.loan-card-progress[data-v-5370a5d5]:focus{text-decoration-line:none}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LOAN_GEOCODE_FRAGMENT as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { resolveComponent as
|
|
1
|
+
import B from "graphql-tag";
|
|
2
|
+
import { LOAN_GEOCODE_FRAGMENT as R, loanCardComputedProperties as z, loanCardMethods as D } from "../utils/loanCard.js";
|
|
3
|
+
import K from "./KvLoanUse.js";
|
|
4
|
+
import W from "./KvBorrowerImage.js";
|
|
5
|
+
import F from "./KvMaterialIcon.js";
|
|
6
|
+
import T from "./KvLoadingPlaceholder.js";
|
|
7
|
+
import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeClass as _, normalizeStyle as E, createElementVNode as d, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, createTextVNode as I, toDisplayString as b, createCommentVNode as O, Fragment as V, renderList as U, withModifiers as G } from "vue";
|
|
8
8
|
import "./KvLoanInfoCard.css";
|
|
9
|
-
import
|
|
10
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
11
|
-
const
|
|
9
|
+
import H from "../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
import { KV_LOAN_USE_FRAGMENT as q } from "./KvLoanUse2.js";
|
|
11
|
+
const fe = B`
|
|
12
12
|
fragment KvLoanInfoCard on LoanBasic {
|
|
13
13
|
id
|
|
14
14
|
gender
|
|
@@ -20,15 +20,15 @@ const ue = P`
|
|
|
20
20
|
...KvLoanUse
|
|
21
21
|
...LoanGeocode
|
|
22
22
|
}
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
`,
|
|
23
|
+
${q}
|
|
24
|
+
${R}
|
|
25
|
+
`, j = {
|
|
26
26
|
name: "KvLoanInfoCard",
|
|
27
27
|
components: {
|
|
28
|
-
KvBorrowerImage:
|
|
29
|
-
KvLoadingPlaceholder:
|
|
30
|
-
KvLoanUse:
|
|
31
|
-
KvMaterialIcon:
|
|
28
|
+
KvBorrowerImage: W,
|
|
29
|
+
KvLoadingPlaceholder: T,
|
|
30
|
+
KvLoanUse: K,
|
|
31
|
+
KvMaterialIcon: F
|
|
32
32
|
},
|
|
33
33
|
props: {
|
|
34
34
|
loanId: {
|
|
@@ -76,7 +76,7 @@ const ue = P`
|
|
|
76
76
|
default: ""
|
|
77
77
|
}
|
|
78
78
|
},
|
|
79
|
-
setup(
|
|
79
|
+
setup(w, { emit: a }) {
|
|
80
80
|
const {
|
|
81
81
|
allDataLoaded: o,
|
|
82
82
|
borrowerName: e,
|
|
@@ -87,17 +87,18 @@ const ue = P`
|
|
|
87
87
|
imageHash: u,
|
|
88
88
|
isLoading: f,
|
|
89
89
|
loanAmount: r,
|
|
90
|
-
|
|
90
|
+
loanBorrowerCount: g,
|
|
91
|
+
loanStatus: x,
|
|
91
92
|
loanUse: p,
|
|
92
|
-
mdiMapMarker:
|
|
93
|
-
readMorePath:
|
|
94
|
-
state:
|
|
95
|
-
tag:
|
|
96
|
-
unreservedAmount:
|
|
97
|
-
sharesAvailable:
|
|
98
|
-
} =
|
|
99
|
-
clickReadMore:
|
|
100
|
-
} =
|
|
93
|
+
mdiMapMarker: L,
|
|
94
|
+
readMorePath: C,
|
|
95
|
+
state: M,
|
|
96
|
+
tag: N,
|
|
97
|
+
unreservedAmount: S,
|
|
98
|
+
sharesAvailable: A
|
|
99
|
+
} = z(w), {
|
|
100
|
+
clickReadMore: P
|
|
101
|
+
} = D(w, a);
|
|
101
102
|
return {
|
|
102
103
|
allDataLoaded: o,
|
|
103
104
|
borrowerName: e,
|
|
@@ -108,15 +109,16 @@ const ue = P`
|
|
|
108
109
|
imageHash: u,
|
|
109
110
|
isLoading: f,
|
|
110
111
|
loanAmount: r,
|
|
111
|
-
|
|
112
|
+
loanBorrowerCount: g,
|
|
113
|
+
loanStatus: x,
|
|
112
114
|
loanUse: p,
|
|
113
|
-
mdiMapMarker:
|
|
114
|
-
readMorePath:
|
|
115
|
-
state:
|
|
116
|
-
tag:
|
|
117
|
-
unreservedAmount:
|
|
118
|
-
sharesAvailable:
|
|
119
|
-
clickReadMore:
|
|
115
|
+
mdiMapMarker: L,
|
|
116
|
+
readMorePath: C,
|
|
117
|
+
state: M,
|
|
118
|
+
tag: N,
|
|
119
|
+
unreservedAmount: S,
|
|
120
|
+
sharesAvailable: A,
|
|
121
|
+
clickReadMore: P
|
|
120
122
|
};
|
|
121
123
|
},
|
|
122
124
|
computed: {
|
|
@@ -139,36 +141,36 @@ const ue = P`
|
|
|
139
141
|
];
|
|
140
142
|
}
|
|
141
143
|
}
|
|
142
|
-
},
|
|
144
|
+
}, J = { class: "tw-grow" }, Q = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, X = {
|
|
143
145
|
key: 1,
|
|
144
146
|
class: "tw-relative"
|
|
145
|
-
},
|
|
147
|
+
}, Y = { key: 0 }, Z = {
|
|
146
148
|
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-mr-2 tw-text-h4 tw-inline-flex tw-items-center",
|
|
147
149
|
style: { padding: "2px 6px", "text-transform": "capitalize" }
|
|
148
|
-
},
|
|
150
|
+
}, $ = { class: "tw-mb-1.5 tw-pt-1" }, ee = {
|
|
149
151
|
key: 0,
|
|
150
152
|
class: "tw-w-full",
|
|
151
153
|
style: { height: "5.5rem" }
|
|
152
|
-
},
|
|
154
|
+
}, te = { key: 1 }, ae = { class: "tw-mt-1" }, oe = {
|
|
153
155
|
key: 0,
|
|
154
156
|
class: "tw-w-full",
|
|
155
157
|
style: { height: "1rem" }
|
|
156
158
|
};
|
|
157
|
-
function
|
|
158
|
-
const l =
|
|
159
|
+
function re(w, a, o, e, y, n) {
|
|
160
|
+
const l = m("kv-loading-placeholder"), h = m("kv-borrower-image"), u = m("kv-material-icon"), f = m("kv-loan-use");
|
|
159
161
|
return t(), i("div", {
|
|
160
162
|
class: _(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-h-full tw-w-full tw-pb-1 tw-p-1", { "tw-pointer-events-none": e.isLoading }]),
|
|
161
163
|
"data-testid": "loan-card",
|
|
162
|
-
style:
|
|
164
|
+
style: E([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
|
|
163
165
|
}, [
|
|
164
|
-
d("div",
|
|
165
|
-
d("div",
|
|
166
|
-
e.isLoading ? (t(),
|
|
166
|
+
d("div", J, [
|
|
167
|
+
d("div", Q, [
|
|
168
|
+
e.isLoading ? (t(), c(l, {
|
|
167
169
|
key: 0,
|
|
168
|
-
class: _(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": o.largeCard, "tw-rounded": !o.largeCard }]),
|
|
170
|
+
class: _(["tw-mb-1 tw-w-full", { "tw-rounded-t-sm tw-rounded-b-none": o.largeCard, "!tw-rounded-sm": !o.largeCard }]),
|
|
169
171
|
style: { height: "15rem" }
|
|
170
|
-
}, null, 8, ["class"])) : (t(), i("div",
|
|
171
|
-
(t(),
|
|
172
|
+
}, null, 8, ["class"])) : (t(), i("div", X, [
|
|
173
|
+
(t(), c(v(e.tag), {
|
|
172
174
|
to: e.readMorePath,
|
|
173
175
|
href: e.readMorePath,
|
|
174
176
|
class: "tw-flex",
|
|
@@ -177,7 +179,7 @@ function oe(m, a, o, e, y, n) {
|
|
|
177
179
|
}, {
|
|
178
180
|
default: k(() => [
|
|
179
181
|
s(h, {
|
|
180
|
-
class: _(["tw-relative tw-w-full tw-bg-black", { "tw-rounded-t": o.largeCard, "tw-rounded": !o.largeCard }]),
|
|
182
|
+
class: _(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t-sm": o.largeCard, "tw-rounded-sm": !o.largeCard }]),
|
|
181
183
|
alt: `Photo of ${e.borrowerName}`,
|
|
182
184
|
"aspect-ratio": n.imageAspectRatio,
|
|
183
185
|
"default-image": { width: n.imageDefaultWidth },
|
|
@@ -185,20 +187,20 @@ function oe(m, a, o, e, y, n) {
|
|
|
185
187
|
images: n.imageSizes,
|
|
186
188
|
"photo-path": o.photoPath
|
|
187
189
|
}, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
188
|
-
e.countryName ? (t(), i("div",
|
|
189
|
-
d("p",
|
|
190
|
+
e.countryName ? (t(), i("div", Y, [
|
|
191
|
+
d("p", Z, [
|
|
190
192
|
s(u, {
|
|
191
193
|
class: "tw-h-2 tw-w-2",
|
|
192
194
|
icon: e.mdiMapMarker
|
|
193
195
|
}, null, 8, ["icon"]),
|
|
194
|
-
|
|
196
|
+
I(" " + b(e.formattedLocation), 1)
|
|
195
197
|
])
|
|
196
|
-
])) :
|
|
198
|
+
])) : O("", !0)
|
|
197
199
|
]),
|
|
198
200
|
_: 1
|
|
199
201
|
}, 8, ["to", "href"]))
|
|
200
202
|
])),
|
|
201
|
-
(t(),
|
|
203
|
+
(t(), c(v(e.tag), {
|
|
202
204
|
to: e.readMorePath,
|
|
203
205
|
href: e.readMorePath,
|
|
204
206
|
class: "loan-card-use tw-no-underline tw-text-primary",
|
|
@@ -206,21 +208,21 @@ function oe(m, a, o, e, y, n) {
|
|
|
206
208
|
onClick: a[1] || (a[1] = (r) => e.clickReadMore("Use", r))
|
|
207
209
|
}, {
|
|
208
210
|
default: k(() => [
|
|
209
|
-
d("div",
|
|
210
|
-
e.isLoading ? (t(), i("div",
|
|
211
|
-
(t(!0), i(
|
|
211
|
+
d("div", $, [
|
|
212
|
+
e.isLoading ? (t(), i("div", ee, [
|
|
213
|
+
(t(!0), i(V, null, U([...Array(4)], (r, g) => (t(), i("div", {
|
|
212
214
|
key: g,
|
|
213
215
|
class: "tw-h-2 tw-mb-1"
|
|
214
216
|
}, [
|
|
215
217
|
s(l)
|
|
216
218
|
]))), 128))
|
|
217
|
-
])) : (t(), i("div",
|
|
219
|
+
])) : (t(), i("div", te, [
|
|
218
220
|
s(f, {
|
|
219
221
|
use: e.loanUse,
|
|
220
222
|
"hide-loan-amount": !0,
|
|
221
223
|
"loan-amount": e.loanAmount,
|
|
222
224
|
status: e.loanStatus,
|
|
223
|
-
"borrower-count":
|
|
225
|
+
"borrower-count": e.loanBorrowerCount,
|
|
224
226
|
name: e.borrowerName,
|
|
225
227
|
"distribution-model": e.distributionModel,
|
|
226
228
|
"use-indicative-help-text": !0
|
|
@@ -230,7 +232,7 @@ function oe(m, a, o, e, y, n) {
|
|
|
230
232
|
]),
|
|
231
233
|
_: 1
|
|
232
234
|
}, 8, ["to", "href"])),
|
|
233
|
-
(t(),
|
|
235
|
+
(t(), c(v(e.tag), {
|
|
234
236
|
to: e.readMorePath,
|
|
235
237
|
href: e.readMorePath,
|
|
236
238
|
class: "loan-card-learn-more tw-no-underline hover:tw-no-underline tw-font-medium tw-text-action hover:tw-text-action-highlight tw-mt-auto",
|
|
@@ -238,12 +240,12 @@ function oe(m, a, o, e, y, n) {
|
|
|
238
240
|
onClick: a[3] || (a[3] = (r) => e.clickReadMore(o.primaryLinkText, r))
|
|
239
241
|
}, {
|
|
240
242
|
default: k(() => [
|
|
241
|
-
d("div",
|
|
242
|
-
e.isLoading ? (t(), i("div",
|
|
243
|
+
d("div", ae, [
|
|
244
|
+
e.isLoading ? (t(), i("div", oe, [
|
|
243
245
|
s(l)
|
|
244
246
|
])) : (t(), i("div", {
|
|
245
247
|
key: 1,
|
|
246
|
-
onClick: a[2] || (a[2] =
|
|
248
|
+
onClick: a[2] || (a[2] = G((r) => e.clickReadMore("ViewLoan", r), ["prevent"]))
|
|
247
249
|
}, b(o.primaryLinkText), 1))
|
|
248
250
|
])
|
|
249
251
|
]),
|
|
@@ -253,8 +255,8 @@ function oe(m, a, o, e, y, n) {
|
|
|
253
255
|
])
|
|
254
256
|
], 6);
|
|
255
257
|
}
|
|
256
|
-
const
|
|
258
|
+
const ge = /* @__PURE__ */ H(j, [["render", re], ["__scopeId", "data-v-5370a5d5"]]);
|
|
257
259
|
export {
|
|
258
|
-
|
|
259
|
-
|
|
260
|
+
fe as KV_LOAN_INFO_CARD_FRAGMENT,
|
|
261
|
+
ge as default
|
|
260
262
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-6435536c]:hover,.loan-card-use[data-v-6435536c]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-6435536c]{text-decoration-line:underline}.loan-card-progress[data-v-6435536c],.loan-card-progress[data-v-6435536c]:hover,.loan-card-progress[data-v-6435536c]:focus{text-decoration-line:none}.loan-callouts[data-v-6435536c] div{height:auto;flex-wrap:wrap}
|
|
@@ -39,7 +39,7 @@ function O(h, a, t, e, j, g) {
|
|
|
39
39
|
}, {
|
|
40
40
|
default: k(() => [
|
|
41
41
|
s(v, {
|
|
42
|
-
class: "tw-relative tw-w-full tw-bg-black tw-rounded",
|
|
42
|
+
class: "tw-relative tw-w-full tw-bg-black tw-rounded-sm tw-bg-clip-content",
|
|
43
43
|
alt: `Photo of ${e.borrowerName}`,
|
|
44
44
|
"aspect-ratio": g.imageAspectRatio,
|
|
45
45
|
"default-image": { width: g.imageDefaultWidth },
|
|
@@ -185,7 +185,7 @@ function O(h, a, t, e, j, g) {
|
|
|
185
185
|
])
|
|
186
186
|
], 2);
|
|
187
187
|
}
|
|
188
|
-
const X = /* @__PURE__ */ V(P, [["render", O], ["__scopeId", "data-v-
|
|
188
|
+
const X = /* @__PURE__ */ V(P, [["render", O], ["__scopeId", "data-v-6435536c"]]);
|
|
189
189
|
export {
|
|
190
190
|
p as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
191
191
|
$ as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.8.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -125,5 +125,5 @@
|
|
|
125
125
|
"embla-carousel-fade",
|
|
126
126
|
"popper.js"
|
|
127
127
|
],
|
|
128
|
-
"gitHead": "
|
|
128
|
+
"gitHead": "ad3a7e8530e8f47ad2a93e41c3307173755dbcde"
|
|
129
129
|
}
|