@kiva/kv-components 7.6.3 → 8.0.1
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/.eslintignore +5 -0
- package/.github/copilot-instructions.md +11 -0
- package/AGENTS.md +184 -0
- package/CLAUDE.md +11 -0
- package/GEMINI.md +11 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +236 -216
- package/dist/utils/Alea.d.ts +9 -0
- package/dist/utils/Alea.js +23 -23
- package/dist/utils/arrayUtils.d.ts +3 -0
- package/dist/utils/arrayUtils.js +1 -1
- package/dist/utils/attrs.d.ts +6 -0
- package/dist/utils/carousels.d.ts +21 -0
- package/dist/utils/comparators.d.ts +3 -0
- package/dist/utils/comparators.js +20 -6
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +4 -4
- package/dist/utils/event.d.ts +1 -0
- package/dist/utils/event.js +7 -0
- package/dist/utils/expander.d.ts +14 -0
- package/dist/utils/imageUtils.d.ts +11 -0
- package/dist/utils/imageUtils.js +12 -12
- package/dist/utils/index.d.ts +21 -0
- package/dist/utils/loanCard.d.ts +35 -0
- package/dist/utils/loanCard.js +2 -2
- package/dist/utils/loanSearch/queryParamUtils.d.ts +1 -0
- package/dist/utils/loanUtils.d.ts +11 -0
- package/dist/utils/loanUtils.js +56 -53
- package/dist/utils/mapUtils.d.ts +5 -0
- package/dist/utils/markMatches.d.ts +1 -0
- package/dist/utils/paramCase.d.ts +1 -0
- package/dist/utils/printing.d.ts +2 -0
- package/dist/utils/scrollLock.d.ts +4 -0
- package/dist/utils/themeUtils.d.ts +12 -0
- package/dist/utils/throttle.d.ts +1 -0
- package/dist/utils/throttle.js +4 -4
- package/dist/utils/touchEvents.d.ts +3 -0
- package/dist/utils/touchEvents.js +9 -9
- package/dist/utils/treemap.d.ts +16 -0
- package/dist/utils/treemap.js +1 -1
- package/dist/vue/KvAccordionItem.js +28 -82
- package/dist/vue/KvAccordionItem.vue.d.ts +107 -0
- package/dist/vue/KvAccordionItem2.js +60 -0
- package/dist/vue/KvActivityRow.js +11 -22
- package/dist/vue/KvActivityRow.vue.d.ts +66 -0
- package/dist/vue/KvActivityRow2.js +16 -0
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +68 -248
- package/dist/vue/KvAtbModal.vue.d.ts +359 -0
- package/dist/vue/KvAtbModal2.js +186 -0
- package/dist/vue/KvBorrowerImage.js +17 -118
- package/dist/vue/KvBorrowerImage.vue.d.ts +62 -0
- package/dist/vue/KvBorrowerImage2.js +106 -0
- package/dist/vue/KvButton.js +20 -164
- package/dist/vue/KvButton.vue.d.ts +94 -0
- package/dist/vue/KvButton2.js +149 -0
- package/dist/vue/KvCardFrame.js +12 -74
- package/dist/vue/KvCardFrame.vue.d.ts +86 -0
- package/dist/vue/KvCardFrame2.js +67 -0
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +55 -192
- package/dist/vue/KvCarousel.vue.d.ts +135 -0
- package/dist/vue/KvCarousel2.js +142 -0
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal.js +31 -131
- package/dist/vue/KvCartModal.vue.d.ts +163 -0
- package/dist/vue/KvCartModal2.js +106 -0
- package/dist/vue/KvCartPill.js +12 -51
- package/dist/vue/KvCartPill.vue.d.ts +52 -0
- package/dist/vue/KvCartPill2.js +45 -0
- package/dist/vue/KvCheckbox.css +1 -1
- package/dist/vue/KvCheckbox.js +30 -126
- package/dist/vue/KvCheckbox.vue.d.ts +90 -0
- package/dist/vue/KvCheckbox2.js +102 -0
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +120 -199
- package/dist/vue/KvCheckoutReceipt.vue.d.ts +164 -0
- package/dist/vue/KvCheckoutReceipt2.js +85 -0
- package/dist/vue/KvChip.js +12 -29
- package/dist/vue/KvChip.vue.d.ts +22 -0
- package/dist/vue/KvChip2.js +22 -0
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +83 -351
- package/dist/vue/KvClassicLoanCard.vue.d.ts +2120 -0
- package/dist/vue/KvClassicLoanCard2.js +281 -0
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +34 -81
- package/dist/vue/KvCommentsAdd.vue.d.ts +296 -0
- package/dist/vue/KvCommentsAdd2.js +57 -0
- package/dist/vue/KvCommentsContainer.js +15 -66
- package/dist/vue/KvCommentsContainer.vue.d.ts +954 -0
- package/dist/vue/KvCommentsContainer2.js +58 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -1
- package/dist/vue/KvCommentsHeartButton.js +12 -51
- package/dist/vue/KvCommentsHeartButton.vue.d.ts +42 -0
- package/dist/vue/KvCommentsHeartButton2.js +44 -0
- package/dist/vue/KvCommentsList.js +9 -51
- package/dist/vue/KvCommentsList.vue.d.ts +619 -0
- package/dist/vue/KvCommentsList2.js +46 -0
- package/dist/vue/KvCommentsListItem.js +62 -186
- package/dist/vue/KvCommentsListItem.vue.d.ts +571 -0
- package/dist/vue/KvCommentsListItem2.js +135 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -1
- package/dist/vue/KvCommentsReplyButton.js +8 -17
- package/dist/vue/KvCommentsReplyButton.vue.d.ts +98 -0
- package/dist/vue/KvCommentsReplyButton2.js +13 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +71 -327
- package/dist/vue/KvCompactLoanCard.vue.d.ts +1272 -0
- package/dist/vue/KvCompactLoanCard2.js +269 -0
- package/dist/vue/KvContentfulImg.js +51 -164
- package/dist/vue/KvContentfulImg.vue.d.ts +107 -0
- package/dist/vue/KvContentfulImg2.js +119 -0
- package/dist/vue/KvCountdownTimer.js +8 -28
- package/dist/vue/KvCountdownTimer.vue.d.ts +15 -0
- package/dist/vue/KvCountdownTimer2.js +26 -0
- package/dist/vue/KvDatePicker.js +21 -101
- package/dist/vue/KvDatePicker.vue.d.ts +58 -0
- package/dist/vue/KvDatePicker2.js +86 -0
- package/dist/vue/KvExpandable.js +9 -56
- package/dist/vue/KvExpandable.vue.d.ts +53 -0
- package/dist/vue/KvExpandable2.js +52 -0
- package/dist/vue/KvExpandableQuestion.js +23 -82
- package/dist/vue/KvExpandableQuestion.vue.d.ts +124 -0
- package/dist/vue/KvExpandableQuestion2.js +65 -0
- package/dist/vue/KvFlag.css +1 -1
- package/dist/vue/KvFlag.js +16 -617
- package/dist/vue/KvFlag.vue.d.ts +66 -0
- package/dist/vue/KvFlag2.js +606 -0
- package/dist/vue/KvGrid.js +7 -18
- package/dist/vue/KvGrid.vue.d.ts +14 -0
- package/dist/vue/KvGrid2.js +15 -0
- package/dist/vue/KvIconBag.js +12 -18
- package/dist/vue/KvIconBag.vue.d.ts +14 -0
- package/dist/vue/KvIconBag2.js +11 -0
- package/dist/vue/KvImpactDashboardHeader.vue.d.ts +17 -0
- package/dist/vue/KvImpactVerticalSelector.js +31 -110
- package/dist/vue/KvImpactVerticalSelector.vue.d.ts +278 -0
- package/dist/vue/KvImpactVerticalSelector2.js +85 -0
- package/dist/vue/KvInlineActivityCard.js +15 -44
- package/dist/vue/KvInlineActivityCard.vue.d.ts +71 -0
- package/dist/vue/KvInlineActivityCard2.js +35 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -1
- package/dist/vue/KvInlineActivityFeed.js +11 -23
- package/dist/vue/KvInlineActivityFeed.vue.d.ts +85 -0
- package/dist/vue/KvInlineActivityFeed2.js +17 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +111 -309
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +617 -0
- package/dist/vue/KvIntroductionLoanCard2.js +209 -0
- package/dist/vue/KvLendAmountButton.js +9 -53
- package/dist/vue/KvLendAmountButton.vue.d.ts +140 -0
- package/dist/vue/KvLendAmountButton2.js +48 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +150 -530
- package/dist/vue/KvLendCta.vue.d.ts +583 -0
- package/dist/vue/KvLendCta2.js +387 -0
- package/dist/vue/KvLightbox.js +37 -148
- package/dist/vue/KvLightbox.vue.d.ts +77 -0
- package/dist/vue/KvLightbox2.js +117 -0
- package/dist/vue/KvLineGraph.js +25 -58
- package/dist/vue/KvLineGraph.vue.d.ts +35 -0
- package/dist/vue/KvLineGraph2.js +39 -0
- package/dist/vue/KvLoadingPlaceholder.vue.d.ts +2 -0
- package/dist/vue/KvLoadingSpinner.js +9 -34
- package/dist/vue/KvLoadingSpinner.vue.d.ts +27 -0
- package/dist/vue/KvLoadingSpinner2.js +29 -0
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +37 -179
- package/dist/vue/KvLoanActivities.vue.d.ts +853 -0
- package/dist/vue/KvLoanActivities2.js +151 -0
- package/dist/vue/KvLoanBookmark.js +14 -40
- package/dist/vue/KvLoanBookmark.vue.d.ts +32 -0
- package/dist/vue/KvLoanBookmark2.js +32 -0
- package/dist/vue/KvLoanCallouts.css +1 -1
- package/dist/vue/KvLoanCallouts.js +10 -17
- package/dist/vue/KvLoanCallouts.vue.d.ts +18 -0
- package/dist/vue/KvLoanCallouts2.js +12 -0
- package/dist/vue/KvLoanInfoCard.js +20 -19
- package/dist/vue/KvLoanProgressGroup.css +1 -1
- package/dist/vue/KvLoanProgressGroup.js +18 -57
- package/dist/vue/KvLoanProgressGroup.vue.d.ts +108 -0
- package/dist/vue/KvLoanProgressGroup2.js +44 -0
- package/dist/vue/KvLoanTag.js +15 -103
- package/dist/vue/KvLoanTag.vue.d.ts +46 -0
- package/dist/vue/KvLoanTag2.js +94 -0
- package/dist/vue/KvLoanTeamPick.vue.d.ts +2 -0
- package/dist/vue/KvLoanUse.js +12 -100
- package/dist/vue/KvLoanUse.vue.d.ts +120 -0
- package/dist/vue/KvLoanUse2.js +95 -0
- package/dist/vue/KvLogo.vue.d.ts +2 -0
- package/dist/vue/KvMap.js +13 -381
- package/dist/vue/KvMap.vue.d.ts +213 -0
- package/dist/vue/KvMap2.js +376 -0
- package/dist/vue/KvMaterialIcon.js +10 -20
- package/dist/vue/KvMaterialIcon.vue.d.ts +14 -0
- package/dist/vue/KvMaterialIcon2.js +15 -0
- package/dist/vue/KvPageContainer.js +9 -8
- package/dist/vue/KvPageContainer.vue.d.ts +2 -0
- package/dist/vue/KvPageContainer2.js +4 -0
- package/dist/vue/KvPagination.js +38 -138
- package/dist/vue/KvPagination.vue.d.ts +107 -0
- package/dist/vue/KvPagination2.js +105 -0
- package/dist/vue/KvPieChart.css +1 -1
- package/dist/vue/KvPieChart.js +49 -128
- package/dist/vue/KvPieChart.vue.d.ts +47 -0
- package/dist/vue/KvPieChart2.js +85 -0
- package/dist/vue/KvPill.js +9 -19
- package/dist/vue/KvPill.vue.d.ts +23 -0
- package/dist/vue/KvPill2.js +15 -0
- package/dist/vue/KvPopper.js +14 -122
- package/dist/vue/KvPopper.vue.d.ts +80 -0
- package/dist/vue/KvPopper2.js +113 -0
- package/dist/vue/KvProgressBar.js +17 -112
- package/dist/vue/KvProgressBar.vue.d.ts +70 -0
- package/dist/vue/KvProgressBar2.js +101 -0
- package/dist/vue/KvPulsingDot.css +1 -1
- package/dist/vue/KvPulsingDot.js +11 -25
- package/dist/vue/KvPulsingDot.vue.d.ts +23 -0
- package/dist/vue/KvPulsingDot2.js +19 -0
- package/dist/vue/KvRadio.js +23 -106
- package/dist/vue/KvRadio.vue.d.ts +62 -0
- package/dist/vue/KvRadio2.js +89 -0
- package/dist/vue/KvSecondaryNav.css +1 -1
- package/dist/vue/KvSecondaryNav.js +46 -122
- package/dist/vue/KvSecondaryNav.vue.d.ts +117 -0
- package/dist/vue/KvSecondaryNav2.js +82 -0
- package/dist/vue/KvSelect.css +1 -1
- package/dist/vue/KvSelect.js +18 -78
- package/dist/vue/KvSelect.vue.d.ts +58 -0
- package/dist/vue/KvSelect2.js +66 -0
- package/dist/vue/KvSideSheet.js +44 -262
- package/dist/vue/KvSideSheet.vue.d.ts +136 -0
- package/dist/vue/KvSideSheet2.js +224 -0
- package/dist/vue/KvSwitch.js +23 -76
- package/dist/vue/KvSwitch.vue.d.ts +34 -0
- package/dist/vue/KvSwitch2.js +59 -0
- package/dist/vue/KvTab.js +15 -57
- package/dist/vue/KvTab.vue.d.ts +34 -0
- package/dist/vue/KvTab2.js +48 -0
- package/dist/vue/KvTabPanel.js +14 -36
- package/dist/vue/KvTabPanel.vue.d.ts +14 -0
- package/dist/vue/KvTabPanel2.js +28 -0
- package/dist/vue/KvTabs.js +21 -75
- package/dist/vue/KvTabs.vue.d.ts +22 -0
- package/dist/vue/KvTabs2.js +60 -0
- package/dist/vue/KvTextInput.js +28 -148
- package/dist/vue/KvTextInput.vue.d.ts +105 -0
- package/dist/vue/KvTextInput2.js +126 -0
- package/dist/vue/KvTextLink.js +13 -76
- package/dist/vue/KvTextLink.vue.d.ts +64 -0
- package/dist/vue/KvTextLink2.js +68 -0
- package/dist/vue/KvThemeProvider.js +8 -59
- package/dist/vue/KvThemeProvider.vue.d.ts +23 -0
- package/dist/vue/KvThemeProvider2.js +55 -0
- package/dist/vue/KvToast.js +32 -69
- package/dist/vue/KvToast.vue.d.ts +31 -0
- package/dist/vue/KvToast2.js +43 -0
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +27 -123
- package/dist/vue/KvTooltip.vue.d.ts +2 -0
- package/dist/vue/KvTooltip2.js +103 -0
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvTreeMapChart.js +28 -156
- package/dist/vue/KvTreeMapChart.vue.d.ts +60 -0
- package/dist/vue/KvTreeMapChart2.js +133 -0
- package/dist/vue/KvUserAvatar.js +28 -110
- package/dist/vue/KvUserAvatar.vue.d.ts +55 -0
- package/dist/vue/KvUserAvatar2.js +88 -0
- package/dist/vue/KvUtilityMenu.js +19 -95
- package/dist/vue/KvUtilityMenu.vue.d.ts +104 -0
- package/dist/vue/KvUtilityMenu2.js +81 -0
- package/dist/vue/KvVerticalCarousel.js +40 -137
- package/dist/vue/KvVerticalCarousel.vue.d.ts +90 -0
- package/dist/vue/KvVerticalCarousel2.js +103 -0
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +31 -88
- package/dist/vue/KvVotingCard.vue.d.ts +249 -0
- package/dist/vue/KvVotingCard2.js +63 -0
- package/dist/vue/KvVotingCardV2.js +35 -90
- package/dist/vue/KvVotingCardV2.vue.d.ts +308 -0
- package/dist/vue/KvVotingCardV22.js +61 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +66 -274
- package/dist/vue/KvWideLoanCard.vue.d.ts +1191 -0
- package/dist/vue/KvWideLoanCard2.js +220 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +34 -38
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +20 -83
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.vue.d.ts +91 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink2.js +69 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +77 -248
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.vue.d.ts +1071 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +178 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +8 -12
- package/dist/vue/KvWwwHeader/KvHeaderLogo.vue.d.ts +4 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.vue.d.ts +17 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +37 -91
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.vue.d.ts +162 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +36 -58
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.vue.d.ts +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +27 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +20 -24
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +105 -181
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.vue.d.ts +319 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +82 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +93 -173
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.vue.d.ts +166 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +86 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +17 -157
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.vue.d.ts +506 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +145 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +11 -18
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +12 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +10 -16
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +11 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +35 -148
- package/dist/vue/KvWwwHeader.vue.d.ts +4430 -0
- package/dist/vue/KvWwwHeader2.js +119 -0
- package/dist/vue/index.d.ts +86 -0
- package/package.json +35 -33
- package/tsconfig.json +32 -0
- package/vite.config.ts +84 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { ref as v, onMounted as E, computed as n } from "vue";
|
|
2
|
+
import I from "./KvCardFrame.js";
|
|
3
|
+
import b from "./KvContentfulImg.js";
|
|
4
|
+
const B = {
|
|
5
|
+
components: {
|
|
6
|
+
KvCardFrame: I,
|
|
7
|
+
KvContentfulImg: b
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
// Expects an array of categories from our API
|
|
11
|
+
categoryList: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
// Expects a list of category ids to hide from the selector
|
|
16
|
+
hiddenCategories: {
|
|
17
|
+
type: Array,
|
|
18
|
+
default: () => []
|
|
19
|
+
},
|
|
20
|
+
imageWidth: {
|
|
21
|
+
type: Number,
|
|
22
|
+
default: 64
|
|
23
|
+
},
|
|
24
|
+
// Category id to pre-select when component mounts
|
|
25
|
+
preSelectedCategory: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: null
|
|
28
|
+
},
|
|
29
|
+
// Use compact horizontal layout on tablet and up (keeps image to the left)
|
|
30
|
+
useCompactCard: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
// Array of category ids that the user has already selected
|
|
35
|
+
existingCategories: {
|
|
36
|
+
type: Array,
|
|
37
|
+
default: () => []
|
|
38
|
+
},
|
|
39
|
+
// Message to show for categories that are in the existingCategories list
|
|
40
|
+
existingCategoryMessage: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "Already selected"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
emits: ["category-selected"],
|
|
46
|
+
setup(t, { emit: p }) {
|
|
47
|
+
const i = v(null), a = (e) => {
|
|
48
|
+
i.value = e, p("category-selected", e);
|
|
49
|
+
};
|
|
50
|
+
E(() => {
|
|
51
|
+
t.preSelectedCategory && a(t.preSelectedCategory);
|
|
52
|
+
});
|
|
53
|
+
const x = (e) => {
|
|
54
|
+
var l, o, u, c, d, m, f, C, g;
|
|
55
|
+
if (e.contentfulEntry) {
|
|
56
|
+
const r = (c = (u = (o = (l = e == null ? void 0 : e.contentfulEntry) == null ? void 0 : l.entry) == null ? void 0 : o.fields) == null ? void 0 : u.content) == null ? void 0 : c.find(
|
|
57
|
+
(s) => {
|
|
58
|
+
var w, y;
|
|
59
|
+
return (y = (w = s == null ? void 0 : s.fields) == null ? void 0 : w.key) == null ? void 0 : y.includes("category-icon");
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
return ((g = (C = (f = (m = (d = r == null ? void 0 : r.fields) == null ? void 0 : d.contentLight) == null ? void 0 : m[0]) == null ? void 0 : f.fields) == null ? void 0 : C.file) == null ? void 0 : g.url) ?? null;
|
|
63
|
+
}
|
|
64
|
+
return null;
|
|
65
|
+
}, h = n(() => t.useCompactCard ? "tw-p-1 md:tw-p-2 tw-flex tw-flex-row tw-items-center tw-cursor-pointer" : "tw-p-2 tw-flex tw-flex-row md:tw-flex-col tw-items-center tw-cursor-pointer"), L = n(() => t.useCompactCard ? "tw-shrink-0 tw-mr-2" : "tw-shrink-0 tw-mr-2 md:tw-mr-0 md:tw-mb-2"), S = n(() => t.useCompactCard ? "" : "md:tw-text-center"), A = (e) => t.existingCategories.includes(e), k = n(() => !t.categoryList || t.categoryList.length === 0 ? [] : t.categoryList.filter((e) => !t.hiddenCategories.includes(e.id)).map((e) => ({
|
|
66
|
+
id: e.id,
|
|
67
|
+
name: e.name,
|
|
68
|
+
description: e.description,
|
|
69
|
+
customImage: e.customImage || null,
|
|
70
|
+
contentfulImage: x(e) || null
|
|
71
|
+
})));
|
|
72
|
+
return {
|
|
73
|
+
selectedCategory: i,
|
|
74
|
+
formattedCategories: k,
|
|
75
|
+
selectCategory: a,
|
|
76
|
+
cardContainerClasses: h,
|
|
77
|
+
imageClasses: L,
|
|
78
|
+
textContainerClasses: S,
|
|
79
|
+
isCategoryExisting: A
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
export {
|
|
84
|
+
B as default
|
|
85
|
+
};
|
|
@@ -1,52 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* Activity data object
|
|
12
|
-
*/
|
|
13
|
-
activity: {
|
|
14
|
-
type: Object,
|
|
15
|
-
default: () => ({})
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(s) {
|
|
19
|
-
const {
|
|
20
|
-
activity: e
|
|
21
|
-
} = c(s), a = l(() => {
|
|
22
|
-
var t, r;
|
|
23
|
-
return ((r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.name) ?? "";
|
|
24
|
-
});
|
|
25
|
-
return {
|
|
26
|
-
lenderImageUrl: l(() => {
|
|
27
|
-
var t, r, o;
|
|
28
|
-
return ((o = (r = (t = e == null ? void 0 : e.value) == null ? void 0 : t.lender) == null ? void 0 : r.image) == null ? void 0 : o.url) ?? "";
|
|
29
|
-
}),
|
|
30
|
-
lenderName: a
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
}, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" }, N = { class: "data-hj-suppress" };
|
|
34
|
-
function U(s, e, a, n, t, r) {
|
|
35
|
-
const o = m("KvUserAvatar");
|
|
36
|
-
return p(), i("div", x, [
|
|
37
|
-
w(o, {
|
|
38
|
-
"lender-image-url": n.lenderImageUrl,
|
|
39
|
-
"lender-name": n.lenderName,
|
|
1
|
+
import o from "./KvInlineActivityCard2.js";
|
|
2
|
+
import { resolveComponent as s, openBlock as a, createElementBlock as l, createVNode as d, createElementVNode as r, toDisplayString as c, createTextVNode as i } from "vue";
|
|
3
|
+
import m from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, w = { class: "tw-text-base tw-whitespace-nowrap" }, _ = { class: "data-hj-suppress" };
|
|
5
|
+
function f(x, t, h, e, v, g) {
|
|
6
|
+
const n = s("KvUserAvatar");
|
|
7
|
+
return a(), l("div", p, [
|
|
8
|
+
d(n, {
|
|
9
|
+
"lender-image-url": e.lenderImageUrl,
|
|
10
|
+
"lender-name": e.lenderName,
|
|
40
11
|
class: "tw-w-4 tw-h-4 tw-flex-shrink-0",
|
|
41
12
|
"is-small": ""
|
|
42
13
|
}, null, 8, ["lender-image-url", "lender-name"]),
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
14
|
+
r("p", w, [
|
|
15
|
+
r("span", _, c(e.lenderName), 1),
|
|
16
|
+
t[0] || (t[0] = i(" contributed "))
|
|
46
17
|
])
|
|
47
18
|
]);
|
|
48
19
|
}
|
|
49
|
-
const
|
|
20
|
+
const k = /* @__PURE__ */ m(o, [["render", f]]);
|
|
50
21
|
export {
|
|
51
|
-
|
|
22
|
+
k as default
|
|
52
23
|
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
activity: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}>, {
|
|
7
|
+
lenderImageUrl: import('vue').ComputedRef<any>;
|
|
8
|
+
lenderName: import('vue').ComputedRef<any>;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
activity: {
|
|
11
|
+
type: ObjectConstructor;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
activity: Record<string, any>;
|
|
16
|
+
}, {}, {
|
|
17
|
+
KvUserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
18
|
+
lenderName: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
lenderImageUrl: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
isSmall: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
showCssPlaceholder: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>, {
|
|
35
|
+
isAnonymousUser: import('vue').ComputedRef<boolean>;
|
|
36
|
+
avatarClass: import('vue').ComputedRef<string>;
|
|
37
|
+
userHasImage: import('vue').ComputedRef<boolean>;
|
|
38
|
+
lenderNameFirstLetter: import('vue').ComputedRef<string>;
|
|
39
|
+
letterViewBox: import('vue').ComputedRef<"0 0 27 27" | "0 0 27.5 27.5">;
|
|
40
|
+
isLegacyPlaceholderAvatar: typeof import('..').isLegacyPlaceholderAvatar;
|
|
41
|
+
isImageLoading: import('vue').Ref<boolean, boolean>;
|
|
42
|
+
onImgLoad: () => void;
|
|
43
|
+
imageRef: import('vue').Ref<any, any>;
|
|
44
|
+
userAvatar: import('vue').Ref<any, any>;
|
|
45
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
46
|
+
lenderName: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
lenderImageUrl: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
isSmall: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
showCssPlaceholder: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{}>, {
|
|
63
|
+
lenderName: string;
|
|
64
|
+
lenderImageUrl: string;
|
|
65
|
+
isSmall: boolean;
|
|
66
|
+
showCssPlaceholder: boolean;
|
|
67
|
+
}, {}, {
|
|
68
|
+
KvLoadingPlaceholder: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
69
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
70
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
71
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { toRefs as m, computed as o } from "vue";
|
|
2
|
+
import s from "./KvUserAvatar.js";
|
|
3
|
+
const c = {
|
|
4
|
+
name: "KvInlineActivityCard",
|
|
5
|
+
components: {
|
|
6
|
+
KvUserAvatar: s
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
/**
|
|
10
|
+
* Activity data object
|
|
11
|
+
*/
|
|
12
|
+
activity: {
|
|
13
|
+
type: Object,
|
|
14
|
+
default: () => ({})
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
setup(a) {
|
|
18
|
+
const {
|
|
19
|
+
activity: e
|
|
20
|
+
} = m(a), l = o(() => {
|
|
21
|
+
var r, n;
|
|
22
|
+
return ((n = (r = e == null ? void 0 : e.value) == null ? void 0 : r.lender) == null ? void 0 : n.name) ?? "";
|
|
23
|
+
});
|
|
24
|
+
return {
|
|
25
|
+
lenderImageUrl: o(() => {
|
|
26
|
+
var r, n, t;
|
|
27
|
+
return ((t = (n = (r = e == null ? void 0 : e.value) == null ? void 0 : r.lender) == null ? void 0 : n.image) == null ? void 0 : t.url) ?? "";
|
|
28
|
+
}),
|
|
29
|
+
lenderName: l
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
export {
|
|
34
|
+
c as default
|
|
35
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.hide-scrollbar[data-v-
|
|
1
|
+
.hide-scrollbar[data-v-1d2e3e07]{-ms-overflow-style:none;scrollbar-width:none}.hide-scrollbar[data-v-1d2e3e07]::-webkit-scrollbar{display:none}
|
|
@@ -1,30 +1,18 @@
|
|
|
1
|
-
import c from "./
|
|
1
|
+
import c from "./KvInlineActivityFeed2.js";
|
|
2
2
|
import { resolveComponent as a, openBlock as t, createElementBlock as e, Fragment as l, renderList as s, createBlock as p } from "vue";
|
|
3
3
|
import "./KvInlineActivityFeed.css";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
activities: {
|
|
13
|
-
type: Array,
|
|
14
|
-
default: () => []
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}, m = { class: "tw-flex tw-gap-x-0.5 tw-overflow-x-auto tw-py-2 tw-px-1 hide-scrollbar" };
|
|
18
|
-
function _(f, y, i, u, x, w) {
|
|
19
|
-
const n = a("KvInlineActivityCard");
|
|
20
|
-
return t(), e("div", m, [
|
|
21
|
-
(t(!0), e(l, null, s(i.activities, (o, r) => (t(), p(n, {
|
|
22
|
-
key: r,
|
|
23
|
-
activity: o
|
|
4
|
+
import d from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const _ = { class: "tw-flex tw-gap-x-0.5 tw-overflow-x-auto tw-py-2 tw-px-1 hide-scrollbar" };
|
|
6
|
+
function m(v, f, o, u, x, w) {
|
|
7
|
+
const r = a("KvInlineActivityCard");
|
|
8
|
+
return t(), e("div", _, [
|
|
9
|
+
(t(!0), e(l, null, s(o.activities, (n, i) => (t(), p(r, {
|
|
10
|
+
key: i,
|
|
11
|
+
activity: n
|
|
24
12
|
}, null, 8, ["activity"]))), 128))
|
|
25
13
|
]);
|
|
26
14
|
}
|
|
27
|
-
const
|
|
15
|
+
const A = /* @__PURE__ */ d(c, [["render", m], ["__scopeId", "data-v-1d2e3e07"]]);
|
|
28
16
|
export {
|
|
29
|
-
|
|
17
|
+
A as default
|
|
30
18
|
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
activities: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => any[];
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
7
|
+
activities: {
|
|
8
|
+
type: ArrayConstructor;
|
|
9
|
+
default: () => any[];
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
activities: unknown[];
|
|
13
|
+
}, {}, {
|
|
14
|
+
KvInlineActivityCard: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
15
|
+
activity: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
lenderImageUrl: import('vue').ComputedRef<any>;
|
|
21
|
+
lenderName: import('vue').ComputedRef<any>;
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
activity: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
activity: Record<string, any>;
|
|
29
|
+
}, {}, {
|
|
30
|
+
KvUserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
31
|
+
lenderName: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
lenderImageUrl: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
isSmall: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
showCssPlaceholder: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
default: boolean;
|
|
46
|
+
};
|
|
47
|
+
}>, {
|
|
48
|
+
isAnonymousUser: import('vue').ComputedRef<boolean>;
|
|
49
|
+
avatarClass: import('vue').ComputedRef<string>;
|
|
50
|
+
userHasImage: import('vue').ComputedRef<boolean>;
|
|
51
|
+
lenderNameFirstLetter: import('vue').ComputedRef<string>;
|
|
52
|
+
letterViewBox: import('vue').ComputedRef<"0 0 27 27" | "0 0 27.5 27.5">;
|
|
53
|
+
isLegacyPlaceholderAvatar: typeof import('..').isLegacyPlaceholderAvatar;
|
|
54
|
+
isImageLoading: import('vue').Ref<boolean, boolean>;
|
|
55
|
+
onImgLoad: () => void;
|
|
56
|
+
imageRef: import('vue').Ref<any, any>;
|
|
57
|
+
userAvatar: import('vue').Ref<any, any>;
|
|
58
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
59
|
+
lenderName: {
|
|
60
|
+
type: StringConstructor;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
lenderImageUrl: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
isSmall: {
|
|
68
|
+
type: BooleanConstructor;
|
|
69
|
+
default: boolean;
|
|
70
|
+
};
|
|
71
|
+
showCssPlaceholder: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{}>, {
|
|
76
|
+
lenderName: string;
|
|
77
|
+
lenderImageUrl: string;
|
|
78
|
+
isSmall: boolean;
|
|
79
|
+
showCssPlaceholder: boolean;
|
|
80
|
+
}, {}, {
|
|
81
|
+
KvLoadingPlaceholder: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
82
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
83
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
84
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
85
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import t from "./KvInlineActivityCard.js";
|
|
2
|
+
const i = {
|
|
3
|
+
name: "KvInlineActivityFeed",
|
|
4
|
+
components: { KvInlineActivityCard: t },
|
|
5
|
+
props: {
|
|
6
|
+
/**
|
|
7
|
+
* Activities data array
|
|
8
|
+
*/
|
|
9
|
+
activities: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
i as default
|
|
17
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-callouts[data-v-
|
|
1
|
+
.loan-callouts[data-v-5220c6a3] span{background-color:transparent!important;--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.loan-card-use[data-v-5220c6a3]:hover,.loan-card-use[data-v-5220c6a3]: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-5220c6a3],.loan-card-active-hover:hover .loan-card-name[data-v-5220c6a3]{text-decoration-line:underline}.loan-card-progress[data-v-5220c6a3],.loan-card-progress[data-v-5220c6a3]:hover,.loan-card-progress[data-v-5220c6a3]:focus{text-decoration-line:none}.loan-card-name[data-v-5220c6a3]{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-5220c6a3] button{border-top-left-radius:0!important;border-top-right-radius:0!important}
|