@kiva/kv-components 3.97.0 → 3.98.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
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.98.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.97.0...@kiva/kv-components@3.98.0) (2024-09-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* add bookmark functionality to new loan card ([10ddade](https://github.com/kiva/kv-ui-elements/commit/10ddade2555770635b14272534791f6b6931d6d0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.97.0](https://github.com/kiva/kv-ui-elements/compare/@kiva/kv-components@3.96.0...@kiva/kv-components@3.97.0) (2024-08-29)
|
|
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.98.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"optional": true
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "5703aed220722cffdda318c700cb4d5c97ed083c"
|
|
88
88
|
}
|
|
@@ -72,6 +72,15 @@
|
|
|
72
72
|
</p>
|
|
73
73
|
</div>
|
|
74
74
|
</component>
|
|
75
|
+
|
|
76
|
+
<kv-loan-bookmark
|
|
77
|
+
v-if="!isVisitor"
|
|
78
|
+
:loan-id="loanId"
|
|
79
|
+
:is-bookmarked="isBookmarked"
|
|
80
|
+
class="loan-bookmark tw-absolute tw-right-1.5 tw-top-0"
|
|
81
|
+
data-testid="loan-card-bookmark"
|
|
82
|
+
@toggle-bookmark="$emit('toggle-bookmark')"
|
|
83
|
+
/>
|
|
75
84
|
</div>
|
|
76
85
|
|
|
77
86
|
<!-- Loan name -->
|
|
@@ -245,7 +254,7 @@
|
|
|
245
254
|
<script>
|
|
246
255
|
import numeral from 'numeral';
|
|
247
256
|
import { loanCardComputedProperties, loanCardMethods } from '../utils/loanCard';
|
|
248
|
-
|
|
257
|
+
import KvLoanBookmark from './KvLoanBookmark.vue';
|
|
249
258
|
import KvLoanUse from './KvLoanUse.vue';
|
|
250
259
|
import KvBorrowerImage from './KvBorrowerImage.vue';
|
|
251
260
|
import KvLoanProgressGroup from './KvLoanProgressGroup.vue';
|
|
@@ -266,6 +275,7 @@ export default {
|
|
|
266
275
|
KvLoanTag,
|
|
267
276
|
KvLoanCallouts,
|
|
268
277
|
KvFlag,
|
|
278
|
+
KvLoanBookmark,
|
|
269
279
|
},
|
|
270
280
|
props: {
|
|
271
281
|
loanId: {
|
|
@@ -312,6 +322,14 @@ export default {
|
|
|
312
322
|
type: Boolean,
|
|
313
323
|
default: false,
|
|
314
324
|
},
|
|
325
|
+
isVisitor: {
|
|
326
|
+
type: Boolean,
|
|
327
|
+
default: true,
|
|
328
|
+
},
|
|
329
|
+
isBookmarked: {
|
|
330
|
+
type: Boolean,
|
|
331
|
+
default: false,
|
|
332
|
+
},
|
|
315
333
|
},
|
|
316
334
|
setup(props, { emit }) {
|
|
317
335
|
const {
|
|
@@ -414,4 +432,7 @@ export default {
|
|
|
414
432
|
.loan-card-name {
|
|
415
433
|
@apply tw-pt-1 tw-px-3 tw-text-ellipsis tw-overflow-hidden tw-line-clamp-1 tw-cursor-pointer;
|
|
416
434
|
}
|
|
435
|
+
.loan-bookmark >>> button {
|
|
436
|
+
@apply !tw-rounded-t-none;
|
|
437
|
+
}
|
|
417
438
|
</style>
|
|
@@ -18,6 +18,7 @@ const story = (args) => {
|
|
|
18
18
|
:custom-callouts="customCallouts"
|
|
19
19
|
:kv-track-function="kvTrackFunction"
|
|
20
20
|
:photo-path="photoPath"
|
|
21
|
+
:is-visitor="isVisitor"
|
|
21
22
|
@show-loan-details="showLoanDetails"
|
|
22
23
|
/>
|
|
23
24
|
</div>
|
|
@@ -197,3 +198,11 @@ export const USLoan = story({
|
|
|
197
198
|
kvTrackFunction,
|
|
198
199
|
photoPath,
|
|
199
200
|
});
|
|
201
|
+
|
|
202
|
+
export const Bookmark = story({
|
|
203
|
+
loanId: loan.id,
|
|
204
|
+
loan,
|
|
205
|
+
kvTrackFunction,
|
|
206
|
+
photoPath,
|
|
207
|
+
isVisitor: false,
|
|
208
|
+
});
|