@kiva/kv-components 3.20.0 → 3.21.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/CHANGELOG.md +11 -0
- package/package.json +2 -2
- package/vue/KvLoanTag.vue +12 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.21.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.20.0...@kiva/kv-components@3.21.0) (2023-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* remove countdown for now from loan tags ([7aeae11](https://github.com/kiva/kv-ui-elements/commit/7aeae114c4dd7823829241ea659ff5a19de948ef))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.20.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.19.0...@kiva/kv-components@3.20.0) (2023-05-11)
|
|
7
18
|
|
|
8
19
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"optional": true
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "b5908abf0f006a9f517d04db84df4d9065c4353e"
|
|
79
79
|
}
|
package/vue/KvLoanTag.vue
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
style="color: #CE4A00;"
|
|
6
6
|
>
|
|
7
7
|
{{ tagText }}
|
|
8
|
-
|
|
8
|
+
<!-- TODO: ensure countdown works in Vue 3 apps -->
|
|
9
|
+
<!-- <vue-countdown
|
|
9
10
|
v-if="variation === 'ending-soon' && isMounted"
|
|
10
11
|
:time="timeLeftMs"
|
|
11
12
|
:emit-events="false"
|
|
@@ -14,20 +15,22 @@
|
|
|
14
15
|
<template slot-scope="props">
|
|
15
16
|
{{ props.hours }}h {{ props.minutes }}m {{ props.seconds }}s
|
|
16
17
|
</template>
|
|
17
|
-
</vue-countdown>
|
|
18
|
+
</vue-countdown> -->
|
|
18
19
|
</div>
|
|
19
20
|
</template>
|
|
20
21
|
|
|
21
22
|
<script>
|
|
22
23
|
import { differenceInDays, parseISO } from 'date-fns';
|
|
23
|
-
|
|
24
|
+
// TODO: ensure countdown works in Vue 3 apps
|
|
25
|
+
// import VueCountdown from '@chenfengyuan/vue-countdown';
|
|
24
26
|
import numeral from 'numeral';
|
|
25
27
|
|
|
26
28
|
export default {
|
|
27
29
|
name: 'KvLoanTag',
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
// TODO: ensure countdown works in Vue 3 apps
|
|
31
|
+
// components: {
|
|
32
|
+
// VueCountdown,
|
|
33
|
+
// },
|
|
31
34
|
props: {
|
|
32
35
|
loan: {
|
|
33
36
|
type: Object,
|
|
@@ -63,7 +66,9 @@ export default {
|
|
|
63
66
|
switch (this.variation) {
|
|
64
67
|
case 'almost-funded': return 'Almost funded';
|
|
65
68
|
case 'matched-loan': return `${this.matchRatio + 1}x matching by ${this.loan?.matchingText}`;
|
|
66
|
-
default: return 'Ending soon
|
|
69
|
+
default: return 'Ending soon';
|
|
70
|
+
// TODO: ensure countdown works in Vue 3 apps
|
|
71
|
+
// default: return 'Ending soon: ';
|
|
67
72
|
}
|
|
68
73
|
},
|
|
69
74
|
timeLeftMs() {
|