@kiva/kv-components 6.60.0 → 6.61.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 +203 -199
- package/dist/vue/KvCompactLoanCard.css +1 -0
- package/dist/vue/KvCompactLoanCard.js +393 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,221 +1,225 @@
|
|
|
1
1
|
import { default as t } from "./vue/KvAccordionItem.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as r } from "./vue/KvActivityRow.js";
|
|
3
3
|
import { default as l } from "./vue/KvBorrowerImage.js";
|
|
4
4
|
import { default as d } from "./vue/KvButton.js";
|
|
5
5
|
import { default as p } from "./vue/KvCardFrame.js";
|
|
6
6
|
import { default as x } from "./vue/KvCarousel.js";
|
|
7
7
|
import { default as n } from "./vue/KvCartModal.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
8
|
+
import { default as A } from "./vue/KvCartPill.js";
|
|
9
|
+
import { default as i } from "./vue/KvCheckbox.js";
|
|
10
10
|
import { default as L } from "./vue/KvCheckoutReceipt.js";
|
|
11
11
|
import { default as T } from "./vue/KvChip.js";
|
|
12
12
|
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as E, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as R, default as M } from "./vue/KvClassicLoanCard.js";
|
|
13
|
-
import {
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { default as
|
|
39
|
-
import {
|
|
40
|
-
import { default as
|
|
41
|
-
import {
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
13
|
+
import { KV_COMPACT_LOAN_CARD_FRAGMENT as S, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as I, default as P } from "./vue/KvCompactLoanCard.js";
|
|
14
|
+
import { default as G } from "./vue/KvCommentsAdd.js";
|
|
15
|
+
import { default as F } from "./vue/KvCommentsContainer.js";
|
|
16
|
+
import { default as D } from "./vue/KvCommentsHeartButton.js";
|
|
17
|
+
import { default as B } from "./vue/KvCommentsList.js";
|
|
18
|
+
import { default as y } from "./vue/KvCommentsListItem.js";
|
|
19
|
+
import { default as w } from "./vue/KvCommentsReplyButton.js";
|
|
20
|
+
import { default as H } from "./vue/KvContentfulImg.js";
|
|
21
|
+
import { default as z } from "./vue/KvCountdownTimer.js";
|
|
22
|
+
import { default as q } from "./vue/KvDatePicker.js";
|
|
23
|
+
import { default as X } from "./vue/KvExpandable.js";
|
|
24
|
+
import { default as Z } from "./vue/KvExpandableQuestion.js";
|
|
25
|
+
import { default as ee } from "./vue/KvFlag.js";
|
|
26
|
+
import { default as te } from "./vue/KvGrid.js";
|
|
27
|
+
import { default as re } from "./vue/KvImpactDashboardHeader.js";
|
|
28
|
+
import { default as le } from "./vue/KvImpactVerticalSelector.js";
|
|
29
|
+
import { default as de } from "./vue/KvInlineActivityCard.js";
|
|
30
|
+
import { default as pe } from "./vue/KvInlineActivityFeed.js";
|
|
31
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as xe, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as Ke, default as ne } from "./vue/KvIntroductionLoanCard.js";
|
|
32
|
+
import { default as Ae } from "./vue/KvLendAmountButton.js";
|
|
33
|
+
import { KV_LEND_CTA_FRAGMENT as ie, KV_LEND_CTA_USER_FRAGMENT as _e, default as Le } from "./vue/KvLendCta.js";
|
|
34
|
+
import { default as Te } from "./vue/KvLightbox.js";
|
|
35
|
+
import { default as Ee } from "./vue/KvLineGraph.js";
|
|
36
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as Me, default as Oe } from "./vue/KvLoanActivities.js";
|
|
37
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as Ie, default as Pe } from "./vue/KvLoanBookmark.js";
|
|
38
|
+
import { default as Ge } from "./vue/KvLoanCallouts.js";
|
|
39
|
+
import { default as Fe } from "./vue/KvLoanProgressGroup.js";
|
|
40
|
+
import { KV_LOAN_TAG_FRAGMENT as De, default as ke } from "./vue/KvLoanTag.js";
|
|
41
|
+
import { default as Ue } from "./vue/KvLoanTeamPick.js";
|
|
42
|
+
import { KV_LOAN_USE_FRAGMENT as be, default as we } from "./vue/KvLoanUse.js";
|
|
43
|
+
import { default as He } from "./vue/KvLoadingPlaceholder.js";
|
|
44
|
+
import { default as ze } from "./vue/KvLoadingSpinner.js";
|
|
45
|
+
import { default as qe } from "./vue/KvMap.js";
|
|
46
|
+
import { default as Xe } from "./vue/KvMaterialIcon.js";
|
|
47
|
+
import { default as Ze } from "./vue/KvPageContainer.js";
|
|
48
|
+
import { default as eo } from "./vue/KvPagination.js";
|
|
49
|
+
import { default as to } from "./vue/KvPieChart.js";
|
|
50
|
+
import { default as ro } from "./vue/KvPill.js";
|
|
51
|
+
import { default as lo } from "./vue/KvPopper.js";
|
|
52
|
+
import { default as mo } from "./vue/KvProgressBar.js";
|
|
53
|
+
import { default as uo } from "./vue/KvPulsingDot.js";
|
|
54
|
+
import { default as Ko } from "./vue/KvRadio.js";
|
|
55
|
+
import { default as vo } from "./vue/KvSelect.js";
|
|
56
|
+
import { default as Co } from "./vue/KvSideSheet.js";
|
|
57
|
+
import { default as _o } from "./vue/KvSwitch.js";
|
|
58
|
+
import { default as No } from "./vue/KvTab.js";
|
|
59
|
+
import { default as co } from "./vue/KvTabPanel.js";
|
|
60
|
+
import { default as Ro } from "./vue/KvTabs.js";
|
|
61
|
+
import { default as Oo } from "./vue/KvTextInput.js";
|
|
62
|
+
import { default as Io } from "./vue/KvTextLink.js";
|
|
63
|
+
import { default as go } from "./vue/KvThemeProvider.js";
|
|
64
|
+
import { default as ho } from "./vue/KvToast.js";
|
|
65
|
+
import { default as Vo } from "./vue/KvTooltip.js";
|
|
66
|
+
import { default as ko } from "./vue/KvTreeMapChart.js";
|
|
67
|
+
import { default as Uo } from "./vue/KvUserAvatar.js";
|
|
68
|
+
import { default as bo } from "./vue/KvUtilityMenu.js";
|
|
69
|
+
import { default as Wo } from "./vue/KvVerticalCarousel.js";
|
|
70
|
+
import { default as jo } from "./vue/KvVotingCard.js";
|
|
71
|
+
import { default as Qo } from "./vue/KvVotingCardV2.js";
|
|
72
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as Jo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Xo, default as Yo } from "./vue/KvWideLoanCard.js";
|
|
73
|
+
import { default as $o } from "./vue/KvAtbModal.js";
|
|
74
|
+
import { default as ot } from "./vue/KvSecondaryNav.js";
|
|
75
|
+
import { default as at } from "./vue/KvWwwHeader.js";
|
|
76
|
+
import { default as ft, Mash as lt } from "./utils/Alea.js";
|
|
77
|
+
import { useAttrs as dt } from "./utils/attrs.js";
|
|
78
|
+
import { carouselUtil as pt } from "./utils/carousels.js";
|
|
79
|
+
import { collapse as xt, expand as Kt } from "./utils/expander.js";
|
|
80
|
+
import { getKivaImageUrl as vt, isLegacyPlaceholderAvatar as At, randomizedUserAvatarClass as Ct } from "./utils/imageUtils.js";
|
|
81
|
+
import { LOAN_CALLOUTS_FRAGMENT as _t, LOAN_GEOCODE_FRAGMENT as Lt, LOAN_PROGRESS_FRAGMENT as Nt, loanCardComputedProperties as Tt, loanCardMethods as ct } from "./utils/loanCard.js";
|
|
82
|
+
import { BALANCE_CAMPAIGN as Rt, BASE_CAMPAIGN as Mt, ERL_COOKIE_NAME as Ot, NO_BALANCE_CAMPAIGN as St, TOP_UP_CAMPAIGN as It, getDropdownPriceArray as Pt, getLendCtaSelectedOption as gt, isBetween25And50 as Gt, isLessThan25 as ht } from "./utils/loanUtils.js";
|
|
83
|
+
import { animationCoordinator as Vt, generateMapMarkers as Dt, getCoordinatesBetween as kt, getCountryColor as Bt, getLoansIntervals as Ut } from "./utils/mapUtils.js";
|
|
84
|
+
import { lockPrintSingleEl as bt, unlockPrintSingleEl as wt } from "./utils/printing.js";
|
|
85
|
+
import { lockScroll as Ht, lockScrollSmallOnly as jt, unlockScroll as zt, unlockScrollSmallOnly as Qt } from "./utils/scrollLock.js";
|
|
86
|
+
import { buildTailwindClassName as Jt, headerNumberCase as Xt, kebabCase as Yt, removeObjectProperty as Zt } from "./utils/themeUtils.js";
|
|
87
|
+
import { throttle as ea } from "./utils/throttle.js";
|
|
88
|
+
import { isTargetElement as ta, offBodyTouchstart as aa, onBodyTouchstart as ra } from "./utils/touchEvents.js";
|
|
89
|
+
import { getTreemap as la } from "./utils/treemap.js";
|
|
90
|
+
import { KvBlueskyIcon as da } from "./assets/icons/bluesky.js";
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
ft as Alea,
|
|
93
|
+
Rt as BALANCE_CAMPAIGN,
|
|
94
|
+
Mt as BASE_CAMPAIGN,
|
|
95
|
+
Ot as ERL_COOKIE_NAME,
|
|
95
96
|
E as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
96
97
|
R as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
S as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
99
|
+
I as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
100
|
+
xe as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
101
|
+
Ke as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
102
|
+
ie as KV_LEND_CTA_FRAGMENT,
|
|
103
|
+
_e as KV_LEND_CTA_USER_FRAGMENT,
|
|
104
|
+
Me as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
105
|
+
Ie as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
106
|
+
De as KV_LOAN_TAG_FRAGMENT,
|
|
107
|
+
be as KV_LOAN_USE_FRAGMENT,
|
|
108
|
+
Jo as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
109
|
+
Xo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
107
110
|
t as KvAccordionItem,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
r as KvActivityRow,
|
|
112
|
+
$o as KvAtbModal,
|
|
113
|
+
da as KvBlueskyIcon,
|
|
111
114
|
l as KvBorrowerImage,
|
|
112
115
|
d as KvButton,
|
|
113
116
|
p as KvCardFrame,
|
|
114
117
|
x as KvCarousel,
|
|
115
118
|
n as KvCartModal,
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
A as KvCartPill,
|
|
120
|
+
i as KvCheckbox,
|
|
118
121
|
L as KvCheckoutReceipt,
|
|
119
122
|
T as KvChip,
|
|
120
123
|
M as KvClassicLoanCard,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
pe as
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
Qo as
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
wt as
|
|
219
|
-
|
|
220
|
-
|
|
124
|
+
G as KvCommentsAdd,
|
|
125
|
+
F as KvCommentsContainer,
|
|
126
|
+
D as KvCommentsHeartButton,
|
|
127
|
+
B as KvCommentsList,
|
|
128
|
+
y as KvCommentsListItem,
|
|
129
|
+
w as KvCommentsReplyButton,
|
|
130
|
+
P as KvCompactLoanCard,
|
|
131
|
+
H as KvContentfulImg,
|
|
132
|
+
z as KvCountdownTimer,
|
|
133
|
+
q as KvDatePicker,
|
|
134
|
+
X as KvExpandable,
|
|
135
|
+
Z as KvExpandableQuestion,
|
|
136
|
+
ee as KvFlag,
|
|
137
|
+
te as KvGrid,
|
|
138
|
+
re as KvImpactDashboardHeader,
|
|
139
|
+
le as KvImpactVerticalSelector,
|
|
140
|
+
de as KvInlineActivityCard,
|
|
141
|
+
pe as KvInlineActivityFeed,
|
|
142
|
+
ne as KvIntroductionLoanCard,
|
|
143
|
+
Ae as KvLendAmountButton,
|
|
144
|
+
Le as KvLendCta,
|
|
145
|
+
Te as KvLightbox,
|
|
146
|
+
Ee as KvLineGraph,
|
|
147
|
+
He as KvLoadingPlaceholder,
|
|
148
|
+
ze as KvLoadingSpinner,
|
|
149
|
+
Oe as KvLoanActivities,
|
|
150
|
+
Pe as KvLoanBookmark,
|
|
151
|
+
Ge as KvLoanCallouts,
|
|
152
|
+
Fe as KvLoanProgressGroup,
|
|
153
|
+
ke as KvLoanTag,
|
|
154
|
+
Ue as KvLoanTeamPick,
|
|
155
|
+
we as KvLoanUse,
|
|
156
|
+
qe as KvMap,
|
|
157
|
+
Xe as KvMaterialIcon,
|
|
158
|
+
Ze as KvPageContainer,
|
|
159
|
+
eo as KvPagination,
|
|
160
|
+
to as KvPieChart,
|
|
161
|
+
ro as KvPill,
|
|
162
|
+
lo as KvPopper,
|
|
163
|
+
mo as KvProgressBar,
|
|
164
|
+
uo as KvPulsingDot,
|
|
165
|
+
Ko as KvRadio,
|
|
166
|
+
ot as KvSecondaryNav,
|
|
167
|
+
vo as KvSelect,
|
|
168
|
+
Co as KvSideSheet,
|
|
169
|
+
_o as KvSwitch,
|
|
170
|
+
No as KvTab,
|
|
171
|
+
co as KvTabPanel,
|
|
172
|
+
Ro as KvTabs,
|
|
173
|
+
Oo as KvTextInput,
|
|
174
|
+
Io as KvTextLink,
|
|
175
|
+
go as KvThemeProvider,
|
|
176
|
+
ho as KvToast,
|
|
177
|
+
Vo as KvTooltip,
|
|
178
|
+
ko as KvTreeMapChart,
|
|
179
|
+
Uo as KvUserAvatar,
|
|
180
|
+
bo as KvUtilityMenu,
|
|
181
|
+
Wo as KvVerticalCarousel,
|
|
182
|
+
jo as KvVotingCard,
|
|
183
|
+
Qo as KvVotingCardV2,
|
|
184
|
+
Yo as KvWideLoanCard,
|
|
185
|
+
at as KvWwwHeader,
|
|
186
|
+
_t as LOAN_CALLOUTS_FRAGMENT,
|
|
187
|
+
Lt as LOAN_GEOCODE_FRAGMENT,
|
|
188
|
+
Nt as LOAN_PROGRESS_FRAGMENT,
|
|
189
|
+
lt as Mash,
|
|
190
|
+
St as NO_BALANCE_CAMPAIGN,
|
|
191
|
+
It as TOP_UP_CAMPAIGN,
|
|
192
|
+
Vt as animationCoordinator,
|
|
193
|
+
Jt as buildTailwindClassName,
|
|
194
|
+
pt as carouselUtil,
|
|
195
|
+
xt as collapse,
|
|
196
|
+
Kt as expand,
|
|
197
|
+
Dt as generateMapMarkers,
|
|
198
|
+
kt as getCoordinatesBetween,
|
|
199
|
+
Bt as getCountryColor,
|
|
200
|
+
Pt as getDropdownPriceArray,
|
|
201
|
+
vt as getKivaImageUrl,
|
|
202
|
+
gt as getLendCtaSelectedOption,
|
|
203
|
+
Ut as getLoansIntervals,
|
|
204
|
+
la as getTreemap,
|
|
205
|
+
Xt as headerNumberCase,
|
|
206
|
+
Gt as isBetween25And50,
|
|
207
|
+
At as isLegacyPlaceholderAvatar,
|
|
208
|
+
ht as isLessThan25,
|
|
209
|
+
ta as isTargetElement,
|
|
210
|
+
Yt as kebabCase,
|
|
211
|
+
Tt as loanCardComputedProperties,
|
|
212
|
+
ct as loanCardMethods,
|
|
213
|
+
bt as lockPrintSingleEl,
|
|
214
|
+
Ht as lockScroll,
|
|
215
|
+
jt as lockScrollSmallOnly,
|
|
216
|
+
aa as offBodyTouchstart,
|
|
217
|
+
ra as onBodyTouchstart,
|
|
218
|
+
Ct as randomizedUserAvatarClass,
|
|
219
|
+
Zt as removeObjectProperty,
|
|
220
|
+
ea as throttle,
|
|
221
|
+
wt as unlockPrintSingleEl,
|
|
222
|
+
zt as unlockScroll,
|
|
223
|
+
Qt as unlockScrollSmallOnly,
|
|
224
|
+
dt as useAttrs
|
|
221
225
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.loan-card-use[data-v-9340d33c]:hover,.loan-card-use[data-v-9340d33c]: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-9340d33c]{text-decoration-line:underline}.loan-card-progress[data-v-9340d33c]:hover,.loan-card-progress[data-v-9340d33c]:focus{text-decoration-line:none}.loan-card-use-text[data-v-9340d33c] 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-9340d33c] form,.loan-card-cta[data-v-9340d33c] fieldset,.loan-card-cta[data-v-9340d33c] .tw-w-full,.loan-card-cta[data-v-9340d33c] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-9340d33c] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import p from "graphql-tag";
|
|
2
|
+
import E from "numeral";
|
|
3
|
+
import { mdiMapMarker as O, mdiHome as D } from "@mdi/js";
|
|
4
|
+
import { LOAN_CALLOUTS_FRAGMENT as S, LOAN_GEOCODE_FRAGMENT as G, LOAN_PROGRESS_FRAGMENT as V, loanCardComputedProperties as U, loanCardMethods as I } from "../utils/loanCard.js";
|
|
5
|
+
import H, { KV_LOAN_USE_FRAGMENT as j } from "./KvLoanUse.js";
|
|
6
|
+
import q from "./KvBorrowerImage.js";
|
|
7
|
+
import Z from "./KvLoanCallouts.js";
|
|
8
|
+
import z, { KV_LEND_CTA_FRAGMENT as J, KV_LEND_CTA_USER_FRAGMENT as Q } from "./KvLendCta.js";
|
|
9
|
+
import W, { KV_LOAN_BOOKMARK_FRAGMENT as X } from "./KvLoanBookmark.js";
|
|
10
|
+
import Y from "./KvLoanProgressGroup.js";
|
|
11
|
+
import $, { KV_LOAN_TAG_FRAGMENT as ee } from "./KvLoanTag.js";
|
|
12
|
+
import te from "./KvMaterialIcon.js";
|
|
13
|
+
import oe from "./KvLoadingPlaceholder.js";
|
|
14
|
+
import ae from "./KvLoanTeamPick.js";
|
|
15
|
+
import { resolveComponent as i, openBlock as n, createElementBlock as d, createElementVNode as r, createVNode as m, createBlock as u, resolveDynamicComponent as C, withCtx as A, createCommentVNode as k, Fragment as y, renderList as ne, normalizeClass as x } from "vue";
|
|
16
|
+
import "./KvCompactLoanCard.css";
|
|
17
|
+
import le from "../_virtual/_plugin-vue_export-helper.js";
|
|
18
|
+
const Oe = p`
|
|
19
|
+
fragment KvCompactLoanCard on LoanBasic {
|
|
20
|
+
id
|
|
21
|
+
image {
|
|
22
|
+
id
|
|
23
|
+
hash
|
|
24
|
+
}
|
|
25
|
+
lenders(limit: 0) {
|
|
26
|
+
totalCount
|
|
27
|
+
}
|
|
28
|
+
loanFundraisingInfo {
|
|
29
|
+
id
|
|
30
|
+
fundedAmount
|
|
31
|
+
}
|
|
32
|
+
name
|
|
33
|
+
...KvLendCta
|
|
34
|
+
...KvLoanTag
|
|
35
|
+
...KvLoanUse
|
|
36
|
+
...LoanCallouts
|
|
37
|
+
...LoanGeocode
|
|
38
|
+
...LoanProgress
|
|
39
|
+
}
|
|
40
|
+
${J}
|
|
41
|
+
${ee}
|
|
42
|
+
${j}
|
|
43
|
+
${S}
|
|
44
|
+
${G}
|
|
45
|
+
${V}
|
|
46
|
+
`, De = p`
|
|
47
|
+
fragment KvCompactLoanCardUser on LoanBasic {
|
|
48
|
+
id
|
|
49
|
+
...KvLendCtaUser
|
|
50
|
+
...KvLoanBookmark
|
|
51
|
+
}
|
|
52
|
+
${Q}
|
|
53
|
+
${X}
|
|
54
|
+
`, re = {
|
|
55
|
+
name: "KvCompactLoanCard",
|
|
56
|
+
components: {
|
|
57
|
+
KvBorrowerImage: q,
|
|
58
|
+
KvLoadingPlaceholder: oe,
|
|
59
|
+
KvLoanUse: H,
|
|
60
|
+
KvMaterialIcon: te,
|
|
61
|
+
KvLendCta: z,
|
|
62
|
+
KvLoanTag: $,
|
|
63
|
+
KvLoanCallouts: Z,
|
|
64
|
+
KvLoanBookmark: W,
|
|
65
|
+
KvLoanTeamPick: ae,
|
|
66
|
+
KvLoanProgressGroup: Y
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
loanId: {
|
|
70
|
+
type: Number,
|
|
71
|
+
default: void 0
|
|
72
|
+
},
|
|
73
|
+
loan: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: null
|
|
76
|
+
},
|
|
77
|
+
customLoanDetails: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
},
|
|
81
|
+
showTags: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !0
|
|
84
|
+
},
|
|
85
|
+
categoryPageName: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: ""
|
|
88
|
+
},
|
|
89
|
+
enableFiveDollarsNotes: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
isAdding: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !1
|
|
96
|
+
},
|
|
97
|
+
isVisitor: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: !0
|
|
100
|
+
},
|
|
101
|
+
basketItems: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => []
|
|
104
|
+
},
|
|
105
|
+
isBookmarked: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
},
|
|
109
|
+
kvTrackFunction: {
|
|
110
|
+
type: Function,
|
|
111
|
+
required: !0
|
|
112
|
+
},
|
|
113
|
+
photoPath: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: !0
|
|
116
|
+
},
|
|
117
|
+
showViewLoan: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: !1
|
|
120
|
+
},
|
|
121
|
+
externalLinks: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: !1
|
|
124
|
+
},
|
|
125
|
+
route: {
|
|
126
|
+
type: Object,
|
|
127
|
+
default: void 0
|
|
128
|
+
},
|
|
129
|
+
userBalance: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: void 0
|
|
132
|
+
},
|
|
133
|
+
getCookie: {
|
|
134
|
+
type: Function,
|
|
135
|
+
default: void 0
|
|
136
|
+
},
|
|
137
|
+
setCookie: {
|
|
138
|
+
type: Function,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
fiveDollarsSelected: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
},
|
|
145
|
+
customCallouts: {
|
|
146
|
+
type: Array,
|
|
147
|
+
default: () => []
|
|
148
|
+
},
|
|
149
|
+
isTeamPick: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !1
|
|
152
|
+
},
|
|
153
|
+
primaryButtonText: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: "Lend"
|
|
156
|
+
},
|
|
157
|
+
secondaryButtonHandler: {
|
|
158
|
+
type: Function,
|
|
159
|
+
default: void 0
|
|
160
|
+
},
|
|
161
|
+
secondaryButtonText: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: "Checkout now"
|
|
164
|
+
},
|
|
165
|
+
showContributors: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: !1
|
|
168
|
+
},
|
|
169
|
+
customHref: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: ""
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
setup(l, { emit: o }) {
|
|
175
|
+
const {
|
|
176
|
+
allDataLoaded: t,
|
|
177
|
+
borrowerName: e,
|
|
178
|
+
city: L,
|
|
179
|
+
countryName: b,
|
|
180
|
+
distributionModel: c,
|
|
181
|
+
formattedLocation: f,
|
|
182
|
+
fundraisingPercent: s,
|
|
183
|
+
hasProgressData: w,
|
|
184
|
+
imageHash: g,
|
|
185
|
+
isLoading: h,
|
|
186
|
+
loanAmount: v,
|
|
187
|
+
loanBorrowerCount: a,
|
|
188
|
+
loanCallouts: _,
|
|
189
|
+
loanStatus: B,
|
|
190
|
+
loanUse: N,
|
|
191
|
+
readMorePath: T,
|
|
192
|
+
state: K,
|
|
193
|
+
tag: M,
|
|
194
|
+
unreservedAmount: P,
|
|
195
|
+
sharesAvailable: F
|
|
196
|
+
} = U(l), {
|
|
197
|
+
clickReadMore: R
|
|
198
|
+
} = I(l, o);
|
|
199
|
+
return {
|
|
200
|
+
allDataLoaded: t,
|
|
201
|
+
borrowerName: e,
|
|
202
|
+
city: L,
|
|
203
|
+
countryName: b,
|
|
204
|
+
distributionModel: c,
|
|
205
|
+
formattedLocation: f,
|
|
206
|
+
fundraisingPercent: s,
|
|
207
|
+
hasProgressData: w,
|
|
208
|
+
imageHash: g,
|
|
209
|
+
isLoading: h,
|
|
210
|
+
loanAmount: v,
|
|
211
|
+
loanBorrowerCount: a,
|
|
212
|
+
loanCallouts: _,
|
|
213
|
+
loanStatus: B,
|
|
214
|
+
loanUse: N,
|
|
215
|
+
mdiMapMarker: O,
|
|
216
|
+
mdiHome: D,
|
|
217
|
+
readMorePath: T,
|
|
218
|
+
state: K,
|
|
219
|
+
tag: M,
|
|
220
|
+
unreservedAmount: P,
|
|
221
|
+
sharesAvailable: F,
|
|
222
|
+
clickReadMore: R
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
computed: {
|
|
226
|
+
lendersNumber() {
|
|
227
|
+
var l, o;
|
|
228
|
+
return ((o = (l = this.loan) == null ? void 0 : l.lenders) == null ? void 0 : o.totalCount) ?? 0;
|
|
229
|
+
},
|
|
230
|
+
amountLent() {
|
|
231
|
+
var o, t;
|
|
232
|
+
const l = ((t = (o = this.loan) == null ? void 0 : o.loanFundraisingInfo) == null ? void 0 : t.fundedAmount) ?? 0;
|
|
233
|
+
return E(l).format("$0,0");
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, se = { class: "tw-flex tw-flex-col tw-items-start tw-gap-3 tw-w-full" }, ie = { class: "tw-flex tw-items-start tw-gap-3 tw-w-full" }, de = { class: "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-80" }, me = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, ue = { class: "tw-flex tw-items-start tw-gap-2 tw-w-full" }, ce = { class: "tw-flex-shrink-0 tw-overflow-hidden" }, fe = {
|
|
237
|
+
class: "tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1",
|
|
238
|
+
style: { height: "7.25rem" }
|
|
239
|
+
}, we = {
|
|
240
|
+
key: 0,
|
|
241
|
+
class: "loan-card-use-text tw-w-full tw-overflow-hidden",
|
|
242
|
+
style: { width: "13rem" }
|
|
243
|
+
}, ge = {
|
|
244
|
+
key: 1,
|
|
245
|
+
class: "loan-card-use-text tw-w-full tw-overflow-hidden"
|
|
246
|
+
}, he = { class: "tw-flex-1" }, ve = { class: "tw-flex-1 tw-min-w-0" };
|
|
247
|
+
function _e(l, o, t, e, L, b) {
|
|
248
|
+
const c = i("kv-borrower-image"), f = i("kv-loan-tag"), s = i("kv-loading-placeholder"), w = i("kv-loan-use"), g = i("kv-loan-callouts"), h = i("kv-loan-progress-group"), v = i("kv-lend-cta");
|
|
249
|
+
return n(), d("div", se, [
|
|
250
|
+
r("div", ie, [
|
|
251
|
+
r("div", de, [
|
|
252
|
+
r("div", me, [
|
|
253
|
+
r("div", ue, [
|
|
254
|
+
r("div", ce, [
|
|
255
|
+
m(c, {
|
|
256
|
+
class: "tw-bg-gray-300 tw-rounded-md tw-object-cover",
|
|
257
|
+
style: { width: "100px", height: "100px" },
|
|
258
|
+
alt: `Photo of ${e.borrowerName}`,
|
|
259
|
+
"aspect-ratio": 1,
|
|
260
|
+
"default-image": { width: 200, faceZoom: 50 },
|
|
261
|
+
hash: e.imageHash,
|
|
262
|
+
images: [{ width: 200, faceZoom: 50 }],
|
|
263
|
+
"photo-path": t.photoPath
|
|
264
|
+
}, null, 8, ["alt", "hash", "photo-path"])
|
|
265
|
+
]),
|
|
266
|
+
r("div", fe, [
|
|
267
|
+
(n(), u(C(e.tag), {
|
|
268
|
+
to: e.readMorePath,
|
|
269
|
+
href: e.readMorePath,
|
|
270
|
+
class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline -tw-mt-1",
|
|
271
|
+
"aria-label": "Loan tag",
|
|
272
|
+
onClick: o[0] || (o[0] = (a) => e.clickReadMore("Tag", a))
|
|
273
|
+
}, {
|
|
274
|
+
default: A(() => [
|
|
275
|
+
t.showTags && !e.isLoading ? (n(), u(f, {
|
|
276
|
+
key: 0,
|
|
277
|
+
loan: t.loan
|
|
278
|
+
}, null, 8, ["loan"])) : k("", !0)
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["to", "href"])),
|
|
282
|
+
e.isLoading ? (n(), d("div", we, [
|
|
283
|
+
(n(!0), d(y, null, ne([...Array(4)], (a, _) => (n(), d("div", {
|
|
284
|
+
key: _,
|
|
285
|
+
class: "tw-h-2 tw-mb-1"
|
|
286
|
+
}, [
|
|
287
|
+
m(s)
|
|
288
|
+
]))), 128))
|
|
289
|
+
])) : (n(), d("div", ge, [
|
|
290
|
+
m(w, {
|
|
291
|
+
use: e.loanUse,
|
|
292
|
+
"loan-amount": e.loanAmount,
|
|
293
|
+
status: e.loanStatus,
|
|
294
|
+
"borrower-count": e.loanBorrowerCount,
|
|
295
|
+
name: e.borrowerName,
|
|
296
|
+
"distribution-model": e.distributionModel,
|
|
297
|
+
class: "tw-text-small tw-leading-tight"
|
|
298
|
+
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model"])
|
|
299
|
+
]))
|
|
300
|
+
])
|
|
301
|
+
]),
|
|
302
|
+
e.isLoading || typeof e.loanCallouts > "u" ? (n(), u(s, {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
|
|
305
|
+
style: { width: "60%", height: "1.5rem" }
|
|
306
|
+
})) : (n(), u(g, {
|
|
307
|
+
key: 1,
|
|
308
|
+
callouts: e.loanCallouts,
|
|
309
|
+
class: "tw-mt-1.5",
|
|
310
|
+
onClick: o[1] || (o[1] = (a) => l.$emit("jump-filter-page", a))
|
|
311
|
+
}, null, 8, ["callouts"]))
|
|
312
|
+
]),
|
|
313
|
+
r("div", {
|
|
314
|
+
class: x(["tw-flex tw-items-end tw-w-full tw-mt-1", { "tw-gap-2": e.sharesAvailable }])
|
|
315
|
+
}, [
|
|
316
|
+
e.hasProgressData ? (n(), d(y, { key: 1 }, [
|
|
317
|
+
r("div", ve, [
|
|
318
|
+
e.sharesAvailable ? (n(), u(C(e.tag), {
|
|
319
|
+
key: 0,
|
|
320
|
+
to: e.readMorePath,
|
|
321
|
+
href: e.readMorePath,
|
|
322
|
+
class: "loan-card-progress tw-no-underline tw-block",
|
|
323
|
+
"aria-label": "Loan progress",
|
|
324
|
+
onClick: o[2] || (o[2] = (a) => e.clickReadMore("Progress", a))
|
|
325
|
+
}, {
|
|
326
|
+
default: A(() => [
|
|
327
|
+
m(h, {
|
|
328
|
+
id: "loanProgress",
|
|
329
|
+
"money-left": e.unreservedAmount,
|
|
330
|
+
"progress-percent": e.fundraisingPercent,
|
|
331
|
+
class: "tw-text-black"
|
|
332
|
+
}, null, 8, ["money-left", "progress-percent"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
}, 8, ["to", "href"])) : k("", !0)
|
|
336
|
+
]),
|
|
337
|
+
r("div", {
|
|
338
|
+
class: x(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
|
|
339
|
+
style: { height: "40px" }
|
|
340
|
+
}, [
|
|
341
|
+
m(v, {
|
|
342
|
+
loan: t.loan,
|
|
343
|
+
"unreserved-amount": e.unreservedAmount,
|
|
344
|
+
"basket-items": t.basketItems,
|
|
345
|
+
"is-loading": e.isLoading,
|
|
346
|
+
"is-adding": t.isAdding,
|
|
347
|
+
"enable-five-dollars-notes": t.enableFiveDollarsNotes,
|
|
348
|
+
"five-dollars-selected": t.fiveDollarsSelected,
|
|
349
|
+
"kv-track-function": t.kvTrackFunction,
|
|
350
|
+
"show-view-loan": t.showViewLoan,
|
|
351
|
+
"custom-loan-details": t.customLoanDetails,
|
|
352
|
+
"external-links": t.externalLinks,
|
|
353
|
+
route: t.route,
|
|
354
|
+
"user-balance": t.userBalance,
|
|
355
|
+
"get-cookie": t.getCookie,
|
|
356
|
+
"set-cookie": t.setCookie,
|
|
357
|
+
"is-visitor": t.isVisitor,
|
|
358
|
+
"primary-button-text": t.primaryButtonText,
|
|
359
|
+
"secondary-button-text": t.secondaryButtonText,
|
|
360
|
+
"secondary-button-handler": t.secondaryButtonHandler,
|
|
361
|
+
onAddToBasket: o[3] || (o[3] = (a) => l.$emit("add-to-basket", a)),
|
|
362
|
+
onShowLoanDetails: o[4] || (o[4] = (a) => e.clickReadMore("ViewLoan", a)),
|
|
363
|
+
onRemoveFromBasket: o[5] || (o[5] = (a) => l.$emit("remove-from-basket", a))
|
|
364
|
+
}, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "primary-button-text", "secondary-button-text", "secondary-button-handler"])
|
|
365
|
+
], 2)
|
|
366
|
+
], 64)) : (n(), d(y, { key: 0 }, [
|
|
367
|
+
r("div", he, [
|
|
368
|
+
m(s, {
|
|
369
|
+
class: "tw-mb-0.5",
|
|
370
|
+
style: { width: "11rem", height: "1rem" }
|
|
371
|
+
}),
|
|
372
|
+
m(s, {
|
|
373
|
+
class: "tw-rounded",
|
|
374
|
+
style: { width: "11rem", height: "0.5rem" }
|
|
375
|
+
})
|
|
376
|
+
]),
|
|
377
|
+
e.allDataLoaded ? k("", !0) : (n(), u(s, {
|
|
378
|
+
key: 0,
|
|
379
|
+
class: "tw-rounded tw-flex-shrink-0",
|
|
380
|
+
style: { width: "8rem", height: "2.5rem" }
|
|
381
|
+
}))
|
|
382
|
+
], 64))
|
|
383
|
+
], 2)
|
|
384
|
+
])
|
|
385
|
+
])
|
|
386
|
+
]);
|
|
387
|
+
}
|
|
388
|
+
const Se = /* @__PURE__ */ le(re, [["render", _e], ["__scopeId", "data-v-9340d33c"]]);
|
|
389
|
+
export {
|
|
390
|
+
Oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
391
|
+
De as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
392
|
+
Se as default
|
|
393
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.61.0",
|
|
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": "af604e490b9ad129ebc44f950c32b485ab413e18"
|
|
118
118
|
}
|