@kiva/kv-components 10.7.0 → 10.9.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 +210 -208
- package/dist/utils/loanUseFit.d.ts +5 -0
- package/dist/utils/loanUseFit.js +40 -0
- package/dist/vue/KvCheckoutLightbox.js +134 -0
- package/dist/vue/KvCheckoutLightbox.script.js +168 -0
- package/dist/vue/KvCheckoutLightbox.vue.d.ts +573 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +10 -9
- package/dist/vue/KvCompactLoanCard.script.js +23 -11
- package/dist/vue/KvCompactLoanCard.vue.d.ts +28 -2
- package/dist/vue/KvDatePicker.vue.d.ts +3 -3
- package/dist/vue/KvLoanUse.css +1 -0
- package/dist/vue/KvLoanUse.js +14 -12
- package/dist/vue/KvLoanUse.script.js +62 -12
- package/dist/vue/KvLoanUse.vue.d.ts +17 -2
- package/dist/vue/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
visible: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
loading: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
preventClose: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
title: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
isLoggedIn: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
totalsLoaded: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
depositRequired: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
paymentReady: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
paying: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
submitLabel: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
appUri: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
kvTrackFunction: {
|
|
47
|
+
type: FunctionConstructor;
|
|
48
|
+
default: () => void;
|
|
49
|
+
};
|
|
50
|
+
category: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
idPrefix: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
email: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
termsAgreement: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
emailUpdates: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
}>, {
|
|
71
|
+
emailTouched: import('vue').Ref<boolean, boolean>;
|
|
72
|
+
emailUpdatesCopy: string;
|
|
73
|
+
onEmailUpdatesChange: (value: boolean) => void;
|
|
74
|
+
onSubmit: () => void;
|
|
75
|
+
onTermsChange: (value: boolean) => void;
|
|
76
|
+
showEmailError: import('vue').ComputedRef<boolean>;
|
|
77
|
+
showTermsError: import('vue').ComputedRef<boolean>;
|
|
78
|
+
submitState: import('vue').ComputedRef<"" | "disabled" | "loading">;
|
|
79
|
+
track: (action: string, label?: string, property?: string, value?: number) => void;
|
|
80
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("submit" | "lightbox-closed" | "update:email" | "update:termsAgreement" | "update:emailUpdates")[], "submit" | "lightbox-closed" | "update:email" | "update:termsAgreement" | "update:emailUpdates", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
81
|
+
visible: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
loading: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
preventClose: {
|
|
90
|
+
type: BooleanConstructor;
|
|
91
|
+
default: boolean;
|
|
92
|
+
};
|
|
93
|
+
title: {
|
|
94
|
+
type: StringConstructor;
|
|
95
|
+
default: string;
|
|
96
|
+
};
|
|
97
|
+
isLoggedIn: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
totalsLoaded: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
depositRequired: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
paymentReady: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
paying: {
|
|
114
|
+
type: BooleanConstructor;
|
|
115
|
+
default: boolean;
|
|
116
|
+
};
|
|
117
|
+
submitLabel: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
appUri: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
kvTrackFunction: {
|
|
126
|
+
type: FunctionConstructor;
|
|
127
|
+
default: () => void;
|
|
128
|
+
};
|
|
129
|
+
category: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
idPrefix: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
email: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
termsAgreement: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
emailUpdates: {
|
|
146
|
+
type: BooleanConstructor;
|
|
147
|
+
default: boolean;
|
|
148
|
+
};
|
|
149
|
+
}>> & Readonly<{
|
|
150
|
+
onSubmit?: (...args: any[]) => any;
|
|
151
|
+
"onLightbox-closed"?: (...args: any[]) => any;
|
|
152
|
+
"onUpdate:email"?: (...args: any[]) => any;
|
|
153
|
+
"onUpdate:termsAgreement"?: (...args: any[]) => any;
|
|
154
|
+
"onUpdate:emailUpdates"?: (...args: any[]) => any;
|
|
155
|
+
}>, {
|
|
156
|
+
title: string;
|
|
157
|
+
loading: boolean;
|
|
158
|
+
visible: boolean;
|
|
159
|
+
preventClose: boolean;
|
|
160
|
+
email: string;
|
|
161
|
+
isLoggedIn: boolean;
|
|
162
|
+
totalsLoaded: boolean;
|
|
163
|
+
depositRequired: boolean;
|
|
164
|
+
paymentReady: boolean;
|
|
165
|
+
paying: boolean;
|
|
166
|
+
submitLabel: string;
|
|
167
|
+
appUri: string;
|
|
168
|
+
kvTrackFunction: Function;
|
|
169
|
+
category: string;
|
|
170
|
+
idPrefix: string;
|
|
171
|
+
termsAgreement: boolean;
|
|
172
|
+
emailUpdates: boolean;
|
|
173
|
+
}, {}, {
|
|
174
|
+
KvButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
175
|
+
to: {
|
|
176
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
177
|
+
default: any;
|
|
178
|
+
};
|
|
179
|
+
href: {
|
|
180
|
+
type: StringConstructor;
|
|
181
|
+
default: any;
|
|
182
|
+
};
|
|
183
|
+
type: {
|
|
184
|
+
type: StringConstructor;
|
|
185
|
+
default: string;
|
|
186
|
+
validator(value: string): boolean;
|
|
187
|
+
};
|
|
188
|
+
variant: {
|
|
189
|
+
type: StringConstructor;
|
|
190
|
+
default: string;
|
|
191
|
+
validator(value: string): boolean;
|
|
192
|
+
};
|
|
193
|
+
state: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
validator(value: string): boolean;
|
|
197
|
+
};
|
|
198
|
+
size: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
validator(value: string): boolean;
|
|
202
|
+
};
|
|
203
|
+
}>, {
|
|
204
|
+
buttonRef: import('vue').Ref<any, any>;
|
|
205
|
+
buttonInnerRef: import('vue').Ref<any, any>;
|
|
206
|
+
computedClass: import('vue').ComputedRef<string>;
|
|
207
|
+
computedType: import('vue').ComputedRef<string>;
|
|
208
|
+
heightClass: import('vue').ComputedRef<"tw-min-h-4" | "tw-min-h-6">;
|
|
209
|
+
isDisabled: import('vue').ComputedRef<boolean>;
|
|
210
|
+
loadingColor: import('vue').ComputedRef<"brand" | "white" | "black">;
|
|
211
|
+
onClick: (event: any) => void;
|
|
212
|
+
paddingClass: import('vue').ComputedRef<"tw-py-0.5 tw-px-2" | "tw-py-1 tw-px-3">;
|
|
213
|
+
roundedClass: import('vue').ComputedRef<"tw-rounded-sm" | "tw-rounded">;
|
|
214
|
+
tag: import('vue').ComputedRef<"button" | "router-link" | "a">;
|
|
215
|
+
textClass: import('vue').ComputedRef<"" | "tw-text-label">;
|
|
216
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
217
|
+
to: {
|
|
218
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
219
|
+
default: any;
|
|
220
|
+
};
|
|
221
|
+
href: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: any;
|
|
224
|
+
};
|
|
225
|
+
type: {
|
|
226
|
+
type: StringConstructor;
|
|
227
|
+
default: string;
|
|
228
|
+
validator(value: string): boolean;
|
|
229
|
+
};
|
|
230
|
+
variant: {
|
|
231
|
+
type: StringConstructor;
|
|
232
|
+
default: string;
|
|
233
|
+
validator(value: string): boolean;
|
|
234
|
+
};
|
|
235
|
+
state: {
|
|
236
|
+
type: StringConstructor;
|
|
237
|
+
default: string;
|
|
238
|
+
validator(value: string): boolean;
|
|
239
|
+
};
|
|
240
|
+
size: {
|
|
241
|
+
type: StringConstructor;
|
|
242
|
+
default: string;
|
|
243
|
+
validator(value: string): boolean;
|
|
244
|
+
};
|
|
245
|
+
}>> & Readonly<{
|
|
246
|
+
onClick?: (...args: any[]) => any;
|
|
247
|
+
}>, {
|
|
248
|
+
to: string | Record<string, any>;
|
|
249
|
+
type: string;
|
|
250
|
+
size: string;
|
|
251
|
+
href: string;
|
|
252
|
+
variant: string;
|
|
253
|
+
state: string;
|
|
254
|
+
}, {}, {
|
|
255
|
+
KvLoadingSpinner: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
256
|
+
size: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: string;
|
|
259
|
+
validator(value: string): boolean;
|
|
260
|
+
};
|
|
261
|
+
color: {
|
|
262
|
+
type: StringConstructor;
|
|
263
|
+
default: string;
|
|
264
|
+
validator(value: string): boolean;
|
|
265
|
+
};
|
|
266
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
267
|
+
size: {
|
|
268
|
+
type: StringConstructor;
|
|
269
|
+
default: string;
|
|
270
|
+
validator(value: string): boolean;
|
|
271
|
+
};
|
|
272
|
+
color: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
default: string;
|
|
275
|
+
validator(value: string): boolean;
|
|
276
|
+
};
|
|
277
|
+
}>> & Readonly<{}>, {
|
|
278
|
+
size: string;
|
|
279
|
+
color: string;
|
|
280
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
281
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
282
|
+
KvCheckbox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
283
|
+
modelValue: {
|
|
284
|
+
type: (BooleanConstructor | ArrayConstructor)[];
|
|
285
|
+
default: boolean;
|
|
286
|
+
};
|
|
287
|
+
disabled: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
291
|
+
value: {
|
|
292
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
293
|
+
default: string;
|
|
294
|
+
};
|
|
295
|
+
valid: {
|
|
296
|
+
type: BooleanConstructor;
|
|
297
|
+
default: boolean;
|
|
298
|
+
};
|
|
299
|
+
variant: {
|
|
300
|
+
type: StringConstructor;
|
|
301
|
+
default: string;
|
|
302
|
+
validator: (val: string) => boolean;
|
|
303
|
+
};
|
|
304
|
+
blurOnDisabled: {
|
|
305
|
+
type: BooleanConstructor;
|
|
306
|
+
default: boolean;
|
|
307
|
+
};
|
|
308
|
+
}>, {
|
|
309
|
+
uuid: import('vue').Ref<string, string>;
|
|
310
|
+
isChecked: import('vue').Ref<boolean, boolean>;
|
|
311
|
+
checkboxRef: import('vue').Ref<any, any>;
|
|
312
|
+
onChange: (event: any) => void;
|
|
313
|
+
setChecked: () => void;
|
|
314
|
+
focus: () => void;
|
|
315
|
+
blur: () => void;
|
|
316
|
+
classes: any[];
|
|
317
|
+
styles: any[];
|
|
318
|
+
inputAttrs: any;
|
|
319
|
+
inputListeners: any;
|
|
320
|
+
iconCheckCircle: string;
|
|
321
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, string[], string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
322
|
+
modelValue: {
|
|
323
|
+
type: (BooleanConstructor | ArrayConstructor)[];
|
|
324
|
+
default: boolean;
|
|
325
|
+
};
|
|
326
|
+
disabled: {
|
|
327
|
+
type: BooleanConstructor;
|
|
328
|
+
default: boolean;
|
|
329
|
+
};
|
|
330
|
+
value: {
|
|
331
|
+
type: (StringConstructor | BooleanConstructor)[];
|
|
332
|
+
default: string;
|
|
333
|
+
};
|
|
334
|
+
valid: {
|
|
335
|
+
type: BooleanConstructor;
|
|
336
|
+
default: boolean;
|
|
337
|
+
};
|
|
338
|
+
variant: {
|
|
339
|
+
type: StringConstructor;
|
|
340
|
+
default: string;
|
|
341
|
+
validator: (val: string) => boolean;
|
|
342
|
+
};
|
|
343
|
+
blurOnDisabled: {
|
|
344
|
+
type: BooleanConstructor;
|
|
345
|
+
default: boolean;
|
|
346
|
+
};
|
|
347
|
+
}>> & Readonly<{
|
|
348
|
+
[x: `on${Capitalize<string>}`]: (...args: any[]) => any;
|
|
349
|
+
}>, {
|
|
350
|
+
value: string | boolean;
|
|
351
|
+
disabled: boolean;
|
|
352
|
+
variant: string;
|
|
353
|
+
modelValue: boolean | unknown[];
|
|
354
|
+
valid: boolean;
|
|
355
|
+
blurOnDisabled: boolean;
|
|
356
|
+
}, {}, {
|
|
357
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
358
|
+
icon: {
|
|
359
|
+
type: StringConstructor;
|
|
360
|
+
default: string;
|
|
361
|
+
};
|
|
362
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
363
|
+
icon: {
|
|
364
|
+
type: StringConstructor;
|
|
365
|
+
default: string;
|
|
366
|
+
};
|
|
367
|
+
}>> & Readonly<{}>, {
|
|
368
|
+
icon: string;
|
|
369
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
370
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
371
|
+
KvLightbox: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
372
|
+
blurBackground: {
|
|
373
|
+
type: BooleanConstructor;
|
|
374
|
+
default: boolean;
|
|
375
|
+
};
|
|
376
|
+
visible: {
|
|
377
|
+
type: BooleanConstructor;
|
|
378
|
+
default: boolean;
|
|
379
|
+
};
|
|
380
|
+
variant: {
|
|
381
|
+
type: StringConstructor;
|
|
382
|
+
default: string;
|
|
383
|
+
validator(value: string): boolean;
|
|
384
|
+
};
|
|
385
|
+
title: {
|
|
386
|
+
type: StringConstructor;
|
|
387
|
+
required: true;
|
|
388
|
+
};
|
|
389
|
+
preventClose: {
|
|
390
|
+
type: BooleanConstructor;
|
|
391
|
+
default: boolean;
|
|
392
|
+
};
|
|
393
|
+
preventBackgroundClose: {
|
|
394
|
+
type: BooleanConstructor;
|
|
395
|
+
default: boolean;
|
|
396
|
+
};
|
|
397
|
+
closeButtonShowDelay: {
|
|
398
|
+
type: NumberConstructor;
|
|
399
|
+
default: number;
|
|
400
|
+
};
|
|
401
|
+
}>, {
|
|
402
|
+
mdiClose: string;
|
|
403
|
+
role: import('vue').ComputedRef<"alertdialog" | "dialog">;
|
|
404
|
+
kvLightbox: import('vue').Ref<any, any>;
|
|
405
|
+
kvLightboxBody: import('vue').Ref<any, any>;
|
|
406
|
+
onKeyUp: any;
|
|
407
|
+
onScreenClick: () => void;
|
|
408
|
+
hide: (closedBy?: string) => void;
|
|
409
|
+
show: () => void;
|
|
410
|
+
controlsRef: import('vue').Ref<any, any>;
|
|
411
|
+
closeButtonClasses: import('vue').ComputedRef<(string | {
|
|
412
|
+
'tw-invisible tw-opacity-0': boolean;
|
|
413
|
+
})[]>;
|
|
414
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "lightbox-closed"[], "lightbox-closed", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
415
|
+
blurBackground: {
|
|
416
|
+
type: BooleanConstructor;
|
|
417
|
+
default: boolean;
|
|
418
|
+
};
|
|
419
|
+
visible: {
|
|
420
|
+
type: BooleanConstructor;
|
|
421
|
+
default: boolean;
|
|
422
|
+
};
|
|
423
|
+
variant: {
|
|
424
|
+
type: StringConstructor;
|
|
425
|
+
default: string;
|
|
426
|
+
validator(value: string): boolean;
|
|
427
|
+
};
|
|
428
|
+
title: {
|
|
429
|
+
type: StringConstructor;
|
|
430
|
+
required: true;
|
|
431
|
+
};
|
|
432
|
+
preventClose: {
|
|
433
|
+
type: BooleanConstructor;
|
|
434
|
+
default: boolean;
|
|
435
|
+
};
|
|
436
|
+
preventBackgroundClose: {
|
|
437
|
+
type: BooleanConstructor;
|
|
438
|
+
default: boolean;
|
|
439
|
+
};
|
|
440
|
+
closeButtonShowDelay: {
|
|
441
|
+
type: NumberConstructor;
|
|
442
|
+
default: number;
|
|
443
|
+
};
|
|
444
|
+
}>> & Readonly<{
|
|
445
|
+
"onLightbox-closed"?: (...args: any[]) => any;
|
|
446
|
+
}>, {
|
|
447
|
+
variant: string;
|
|
448
|
+
visible: boolean;
|
|
449
|
+
preventClose: boolean;
|
|
450
|
+
blurBackground: boolean;
|
|
451
|
+
preventBackgroundClose: boolean;
|
|
452
|
+
closeButtonShowDelay: number;
|
|
453
|
+
}, {}, {
|
|
454
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
455
|
+
icon: {
|
|
456
|
+
type: StringConstructor;
|
|
457
|
+
default: string;
|
|
458
|
+
};
|
|
459
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
460
|
+
icon: {
|
|
461
|
+
type: StringConstructor;
|
|
462
|
+
default: string;
|
|
463
|
+
};
|
|
464
|
+
}>> & Readonly<{}>, {
|
|
465
|
+
icon: string;
|
|
466
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
467
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
468
|
+
KvTextInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
469
|
+
id: {
|
|
470
|
+
type: StringConstructor;
|
|
471
|
+
required: true;
|
|
472
|
+
};
|
|
473
|
+
modelValue: {
|
|
474
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
475
|
+
default: string;
|
|
476
|
+
};
|
|
477
|
+
placeholder: {
|
|
478
|
+
type: StringConstructor;
|
|
479
|
+
default: any;
|
|
480
|
+
};
|
|
481
|
+
disabled: {
|
|
482
|
+
type: BooleanConstructor;
|
|
483
|
+
default: boolean;
|
|
484
|
+
};
|
|
485
|
+
valid: {
|
|
486
|
+
type: BooleanConstructor;
|
|
487
|
+
default: boolean;
|
|
488
|
+
};
|
|
489
|
+
icon: {
|
|
490
|
+
type: StringConstructor;
|
|
491
|
+
default: any;
|
|
492
|
+
};
|
|
493
|
+
type: {
|
|
494
|
+
type: StringConstructor;
|
|
495
|
+
default: string;
|
|
496
|
+
};
|
|
497
|
+
canClear: {
|
|
498
|
+
type: BooleanConstructor;
|
|
499
|
+
default: boolean;
|
|
500
|
+
};
|
|
501
|
+
}>, {
|
|
502
|
+
mdiAlertCircleOutline: string;
|
|
503
|
+
mdiClose: string;
|
|
504
|
+
onInput: (event: any) => void;
|
|
505
|
+
focus: () => void;
|
|
506
|
+
blur: () => void;
|
|
507
|
+
clearInput: () => void;
|
|
508
|
+
inputText: import('vue').Ref<string | number | boolean, string | number | boolean>;
|
|
509
|
+
classes: any[];
|
|
510
|
+
styles: any[];
|
|
511
|
+
inputAttrs: any;
|
|
512
|
+
inputListeners: any;
|
|
513
|
+
textInputRef: import('vue').Ref<any, any>;
|
|
514
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, string[], string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
515
|
+
id: {
|
|
516
|
+
type: StringConstructor;
|
|
517
|
+
required: true;
|
|
518
|
+
};
|
|
519
|
+
modelValue: {
|
|
520
|
+
type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
|
|
521
|
+
default: string;
|
|
522
|
+
};
|
|
523
|
+
placeholder: {
|
|
524
|
+
type: StringConstructor;
|
|
525
|
+
default: any;
|
|
526
|
+
};
|
|
527
|
+
disabled: {
|
|
528
|
+
type: BooleanConstructor;
|
|
529
|
+
default: boolean;
|
|
530
|
+
};
|
|
531
|
+
valid: {
|
|
532
|
+
type: BooleanConstructor;
|
|
533
|
+
default: boolean;
|
|
534
|
+
};
|
|
535
|
+
icon: {
|
|
536
|
+
type: StringConstructor;
|
|
537
|
+
default: any;
|
|
538
|
+
};
|
|
539
|
+
type: {
|
|
540
|
+
type: StringConstructor;
|
|
541
|
+
default: string;
|
|
542
|
+
};
|
|
543
|
+
canClear: {
|
|
544
|
+
type: BooleanConstructor;
|
|
545
|
+
default: boolean;
|
|
546
|
+
};
|
|
547
|
+
}>> & Readonly<{
|
|
548
|
+
[x: `on${Capitalize<string>}`]: (...args: any[]) => any;
|
|
549
|
+
}>, {
|
|
550
|
+
type: string;
|
|
551
|
+
icon: string;
|
|
552
|
+
disabled: boolean;
|
|
553
|
+
modelValue: string | number | boolean;
|
|
554
|
+
valid: boolean;
|
|
555
|
+
placeholder: string;
|
|
556
|
+
canClear: boolean;
|
|
557
|
+
}, {}, {
|
|
558
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
559
|
+
icon: {
|
|
560
|
+
type: StringConstructor;
|
|
561
|
+
default: string;
|
|
562
|
+
};
|
|
563
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
564
|
+
icon: {
|
|
565
|
+
type: StringConstructor;
|
|
566
|
+
default: string;
|
|
567
|
+
};
|
|
568
|
+
}>> & Readonly<{}>, {
|
|
569
|
+
icon: string;
|
|
570
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
571
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
572
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
573
|
+
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-6313c6b8]:hover,.loan-card-use[data-v-6313c6b8]: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-6313c6b8]{text-decoration-line:underline}.loan-card-progress[data-v-6313c6b8]:hover,.loan-card-progress[data-v-6313c6b8]:focus{text-decoration-line:none}.loan-card-use-text-light-detailed[data-v-6313c6b8] p{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.loan-card-cta[data-v-6313c6b8] form,.loan-card-cta[data-v-6313c6b8] fieldset,.loan-card-cta[data-v-6313c6b8] .tw-w-full,.loan-card-cta[data-v-6313c6b8] button{display:flex!important;height:2.5rem!important;max-height:2.5rem!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-6313c6b8] .tw-inline-flex{height:2.5rem!important;max-height:2.5rem!important;min-height:2.5rem!important}[data-v-6313c6b8] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-6313c6b8] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-6313c6b8] div[role=progressbar]{background-color:#d9d9d9}.light-detailed-progress-group[data-v-6313c6b8] p:first-of-type{margin-bottom:.5rem}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import D from "./KvCompactLoanCard.script.js";
|
|
2
2
|
import { KV_COMPACT_LOAN_CARD_FRAGMENT as gt, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as ft } from "./KvCompactLoanCard.script.js";
|
|
3
|
-
import { resolveComponent as h, openBlock as a, createElementBlock as l, normalizeClass as c, createVNode as i, createCommentVNode as g, createElementVNode as r, normalizeStyle as
|
|
3
|
+
import { resolveComponent as h, openBlock as a, createElementBlock as l, normalizeClass as c, createVNode as i, createCommentVNode as g, createElementVNode as r, normalizeStyle as x, createBlock as d, resolveDynamicComponent as k, withCtx as f, Fragment as s, toDisplayString as w, withModifiers as R, renderList as u } from "vue";
|
|
4
4
|
import "./KvCompactLoanCard.css";
|
|
5
5
|
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const S = ["aria-busy"], G = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, U = {
|
|
@@ -32,7 +32,7 @@ const S = ["aria-busy"], G = { class: "tw-flex tw-flex-col tw-items-start tw-w-f
|
|
|
32
32
|
class: "tw-flex-1 tw-min-w-0",
|
|
33
33
|
style: { "max-width": "6.5rem" }
|
|
34
34
|
}, at = ["value"], ot = { class: "tw-flex-1 tw-min-w-0" }, nt = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
|
|
35
|
-
function lt(b, n, e, t, rt,
|
|
35
|
+
function lt(b, n, e, t, rt, _) {
|
|
36
36
|
var V;
|
|
37
37
|
const v = h("kv-material-icon"), m = h("kv-loading-placeholder"), P = h("kv-borrower-image"), C = h("kv-loan-tag"), L = h("kv-loan-use"), M = h("kv-loan-callouts"), y = h("kv-loan-progress-group"), N = h("kv-select"), A = h("kv-lend-cta");
|
|
38
38
|
return a(), l("div", {
|
|
@@ -60,7 +60,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
60
60
|
"!tw-gap-1": e.showLightView || t.isLightDetailedVariant,
|
|
61
61
|
"!tw-gap-1.5 md:!tw-gap-2.5": t.isPostGoalVariant
|
|
62
62
|
}]),
|
|
63
|
-
style:
|
|
63
|
+
style: x(t.customStyle)
|
|
64
64
|
}, [
|
|
65
65
|
t.isLoading ? (a(), d(m, {
|
|
66
66
|
key: 0,
|
|
@@ -70,7 +70,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
70
70
|
"!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": t.isPostGoalVariant,
|
|
71
71
|
"!tw-w-9.5 !tw-h-9.5": t.isLightDetailedVariant
|
|
72
72
|
}),
|
|
73
|
-
style:
|
|
73
|
+
style: x(t.borrowerImageStyle)
|
|
74
74
|
}, null, 8, ["class", "style"])) : (a(), l("div", U, [
|
|
75
75
|
(a(), d(k(t.tag), {
|
|
76
76
|
to: t.readMorePath,
|
|
@@ -88,7 +88,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
88
88
|
"!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": t.isPostGoalVariant,
|
|
89
89
|
"!tw-w-9.5 !tw-h-9.5": t.isLightDetailedVariant
|
|
90
90
|
}]),
|
|
91
|
-
style:
|
|
91
|
+
style: x(t.borrowerImageStyle),
|
|
92
92
|
alt: `Photo of ${t.borrowerName}`,
|
|
93
93
|
"aspect-ratio": 1,
|
|
94
94
|
"default-image": { width: 200, faceZoom: 50 },
|
|
@@ -234,7 +234,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
234
234
|
]))), 128))
|
|
235
235
|
])) : (a(), l("div", {
|
|
236
236
|
key: 1,
|
|
237
|
-
class: c(["tw-w-full tw-overflow-hidden", { "!tw--mt-1": e.showTags &&
|
|
237
|
+
class: c(["tw-w-full tw-overflow-hidden", { "!tw--mt-1": e.showTags && _.hasMatchingInfo && e.showLightView }])
|
|
238
238
|
}, [
|
|
239
239
|
i(L, {
|
|
240
240
|
use: t.loanUse,
|
|
@@ -247,8 +247,9 @@ function lt(b, n, e, t, rt, x) {
|
|
|
247
247
|
country: t.formattedLocation,
|
|
248
248
|
"show-read-more": e.showLightView,
|
|
249
249
|
"truncate-words-number": e.truncateWordsNumber,
|
|
250
|
+
"max-lines": e.loanUseMaxLines,
|
|
250
251
|
class: "tw-text-small tw-leading-tight"
|
|
251
|
-
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model", "country", "show-read-more", "truncate-words-number"])
|
|
252
|
+
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model", "country", "show-read-more", "truncate-words-number", "max-lines"])
|
|
252
253
|
], 2))
|
|
253
254
|
]),
|
|
254
255
|
_: 1
|
|
@@ -318,7 +319,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
318
319
|
t.handleSelectedAmount
|
|
319
320
|
],
|
|
320
321
|
"aria-label": "Lend amount",
|
|
321
|
-
disabled: !t.amountOptions.length ||
|
|
322
|
+
disabled: !t.amountOptions.length || _.isInBasket,
|
|
322
323
|
class: "amount-dropdown"
|
|
323
324
|
}, {
|
|
324
325
|
default: f(() => [
|
|
@@ -410,7 +411,7 @@ function lt(b, n, e, t, rt, x) {
|
|
|
410
411
|
], 2)
|
|
411
412
|
], 10, S);
|
|
412
413
|
}
|
|
413
|
-
const mt = /* @__PURE__ */ B(D, [["render", lt], ["__scopeId", "data-v-
|
|
414
|
+
const mt = /* @__PURE__ */ B(D, [["render", lt], ["__scopeId", "data-v-6313c6b8"]]);
|
|
414
415
|
export {
|
|
415
416
|
gt as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
416
417
|
ft as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|