@kiva/kv-components 7.6.3 → 8.0.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/.eslintignore +5 -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 +34 -32
- package/tsconfig.json +32 -0
- package/vite.config.ts +84 -0
|
@@ -1,175 +1,78 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import M from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const T = {
|
|
7
|
-
components: {
|
|
8
|
-
KvMaterialIcon: D
|
|
9
|
-
},
|
|
10
|
-
props: {
|
|
11
|
-
/**
|
|
12
|
-
* Height style declaration of the vertical carousel.
|
|
13
|
-
* */
|
|
14
|
-
heightStyle: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: "400px;"
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* Options for the embla carousel - // https://davidcetinkaya.github.io/embla-carousel/api#options
|
|
20
|
-
* */
|
|
21
|
-
emblaOptions: {
|
|
22
|
-
type: Object,
|
|
23
|
-
default() {
|
|
24
|
-
return {};
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
/**
|
|
28
|
-
* The type of logic to implement when deciding how many slides
|
|
29
|
-
* to scroll when pressing the next/prev button
|
|
30
|
-
* `visible, auto`
|
|
31
|
-
* */
|
|
32
|
-
slidesToScroll: {
|
|
33
|
-
type: String,
|
|
34
|
-
default: "auto",
|
|
35
|
-
validator: (r) => ["visible", "auto"].indexOf(r) !== -1
|
|
36
|
-
},
|
|
37
|
-
/**
|
|
38
|
-
* Options for the autoplay plugin - // https://www.embla-carousel.com/plugins/autoplay/#options
|
|
39
|
-
* */
|
|
40
|
-
autoplayOptions: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default() {
|
|
43
|
-
return {};
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
/**
|
|
47
|
-
* Enable fade plugin - // https://www.embla-carousel.com/plugins/fade/
|
|
48
|
-
* */
|
|
49
|
-
fadeEnabled: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: !1
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
emits: [
|
|
55
|
-
"change",
|
|
56
|
-
"interact-carousel"
|
|
57
|
-
],
|
|
58
|
-
setup(r, { emit: e, slots: d }) {
|
|
59
|
-
const {
|
|
60
|
-
autoplayOptions: t
|
|
61
|
-
} = j(r), {
|
|
62
|
-
componentSlotKeys: c,
|
|
63
|
-
currentIndex: w,
|
|
64
|
-
embla: n,
|
|
65
|
-
goToSlide: i,
|
|
66
|
-
handleUserInteraction: l,
|
|
67
|
-
isAriaHidden: f,
|
|
68
|
-
isAutoplaying: y,
|
|
69
|
-
nextIndex: b,
|
|
70
|
-
previousIndex: p,
|
|
71
|
-
reInit: v,
|
|
72
|
-
reInitVisible: h,
|
|
73
|
-
rootEl: x,
|
|
74
|
-
slideIndicatorCount: g,
|
|
75
|
-
slides: k,
|
|
76
|
-
toggleAutoPlay: S
|
|
77
|
-
} = z(r, { emit: e, slots: d }, { axis: "y" });
|
|
78
|
-
return {
|
|
79
|
-
hasAutoplay: O(() => Object.keys(t.value).length !== 0),
|
|
80
|
-
componentSlotKeys: c,
|
|
81
|
-
currentIndex: w,
|
|
82
|
-
embla: n,
|
|
83
|
-
goToSlide: i,
|
|
84
|
-
handleUserInteraction: l,
|
|
85
|
-
isAriaHidden: f,
|
|
86
|
-
isAutoplaying: y,
|
|
87
|
-
mdiPause: I,
|
|
88
|
-
mdiPlay: C,
|
|
89
|
-
mdiChevronDown: A,
|
|
90
|
-
mdiChevronUp: _,
|
|
91
|
-
nextIndex: b,
|
|
92
|
-
previousIndex: p,
|
|
93
|
-
reInit: v,
|
|
94
|
-
reInitVisible: h,
|
|
95
|
-
rootEl: x,
|
|
96
|
-
slideIndicatorCount: g,
|
|
97
|
-
slides: k,
|
|
98
|
-
toggleAutoPlay: S
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}, F = {
|
|
1
|
+
import m from "./KvVerticalCarousel2.js";
|
|
2
|
+
import { resolveComponent as f, openBlock as r, createElementBlock as a, createElementVNode as l, normalizeStyle as u, Fragment as y, renderList as b, renderSlot as v, normalizeClass as h, createVNode as s, withModifiers as k, createBlock as d, createCommentVNode as x } from "vue";
|
|
3
|
+
import p from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const g = {
|
|
102
5
|
ref: "rootEl",
|
|
103
6
|
"aria-label": "carousel",
|
|
104
7
|
class: "kv-carousel tw-overflow-hidden tw-relative"
|
|
105
|
-
},
|
|
106
|
-
function
|
|
107
|
-
const
|
|
108
|
-
return
|
|
109
|
-
|
|
110
|
-
|
|
8
|
+
}, _ = ["aria-label", "aria-current", "aria-hidden", "tab-index"], S = { class: "kv-carousel__controls tw-flex tw-items-center tw-gap-2 tw-mt-2 tw-w-full tw-justify-center" }, C = ["disabled"], A = ["disabled"];
|
|
9
|
+
function j(w, e, c, t, I, N) {
|
|
10
|
+
const i = f("kv-material-icon");
|
|
11
|
+
return r(), a("div", null, [
|
|
12
|
+
l("section", g, [
|
|
13
|
+
l("div", {
|
|
111
14
|
class: "tw-flex tw-flex-col",
|
|
112
|
-
style:
|
|
15
|
+
style: u(`height: ${c.heightStyle}`)
|
|
113
16
|
}, [
|
|
114
|
-
(
|
|
115
|
-
key:
|
|
17
|
+
(r(!0), a(y, null, b(t.componentSlotKeys, (n, o) => (r(), a("div", {
|
|
18
|
+
key: o,
|
|
116
19
|
role: "group",
|
|
117
|
-
"aria-label": `slide ${
|
|
118
|
-
"aria-current": t.currentIndex ===
|
|
119
|
-
"aria-hidden": t.isAriaHidden(
|
|
120
|
-
"tab-index": t.isAriaHidden(
|
|
20
|
+
"aria-label": `slide ${o + 1} of ${t.componentSlotKeys.length}`,
|
|
21
|
+
"aria-current": t.currentIndex === o ? "true" : "false",
|
|
22
|
+
"aria-hidden": t.isAriaHidden(o) ? "true" : "false",
|
|
23
|
+
"tab-index": t.isAriaHidden(o) ? "-1" : !1
|
|
121
24
|
}, [
|
|
122
|
-
|
|
123
|
-
], 8,
|
|
25
|
+
v(w.$slots, n)
|
|
26
|
+
], 8, _))), 128))
|
|
124
27
|
], 4)
|
|
125
28
|
], 512),
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
class:
|
|
29
|
+
l("div", S, [
|
|
30
|
+
l("div", {
|
|
31
|
+
class: h(["tw-flex tw-gap-2 tw-w-full md:tw-w-auto", { "tw-justify-center": !t.hasAutoplay }])
|
|
129
32
|
}, [
|
|
130
|
-
|
|
33
|
+
l("button", {
|
|
131
34
|
class: "tw-text-primary tw-rounded-full tw-border-2 tw-border-primary tw-h-4 tw-w-4 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
132
35
|
disabled: t.embla && !t.embla.canScrollPrev(),
|
|
133
|
-
onClick: e[0] || (e[0] = (
|
|
36
|
+
onClick: e[0] || (e[0] = (n) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
|
|
134
37
|
}, [
|
|
135
|
-
|
|
38
|
+
s(i, {
|
|
136
39
|
class: "tw-w-4",
|
|
137
40
|
icon: t.mdiChevronUp
|
|
138
41
|
}, null, 8, ["icon"]),
|
|
139
|
-
e[3] || (e[3] =
|
|
140
|
-
], 8,
|
|
141
|
-
|
|
42
|
+
e[3] || (e[3] = l("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
43
|
+
], 8, C),
|
|
44
|
+
l("button", {
|
|
142
45
|
class: "tw-text-primary tw-rounded-full tw-border-2 tw-border-primary tw-h-4 tw-w-4 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
143
46
|
disabled: t.embla && !t.embla.canScrollNext(),
|
|
144
|
-
onClick: e[1] || (e[1] = (
|
|
47
|
+
onClick: e[1] || (e[1] = (n) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
|
|
145
48
|
}, [
|
|
146
|
-
|
|
49
|
+
s(i, {
|
|
147
50
|
class: "tw-w-4",
|
|
148
51
|
icon: t.mdiChevronDown
|
|
149
52
|
}, null, 8, ["icon"]),
|
|
150
|
-
e[4] || (e[4] =
|
|
151
|
-
], 8,
|
|
53
|
+
e[4] || (e[4] = l("span", { class: "tw-sr-only" }, "Show next slide", -1))
|
|
54
|
+
], 8, A)
|
|
152
55
|
], 2),
|
|
153
|
-
t.hasAutoplay ? (
|
|
56
|
+
t.hasAutoplay ? (r(), a("button", {
|
|
154
57
|
key: 0,
|
|
155
58
|
class: "tw-text-primary tw-rounded-full tw-border-2 tw-border-primary tw-h-4 tw-w-4 tw-flex tw-items-center tw-justify-center disabled:tw-opacity-low disabled:tw-cursor-default",
|
|
156
|
-
onClick: e[2] || (e[2] =
|
|
59
|
+
onClick: e[2] || (e[2] = k((n) => t.toggleAutoPlay(), ["prevent"]))
|
|
157
60
|
}, [
|
|
158
|
-
t.isAutoplaying ? (
|
|
61
|
+
t.isAutoplaying ? (r(), d(i, {
|
|
159
62
|
key: 0,
|
|
160
63
|
class: "tw-w-4",
|
|
161
64
|
icon: t.mdiPause
|
|
162
|
-
}, null, 8, ["icon"])) : (
|
|
65
|
+
}, null, 8, ["icon"])) : (r(), d(i, {
|
|
163
66
|
key: 1,
|
|
164
67
|
class: "tw-w-4",
|
|
165
68
|
icon: t.mdiPlay
|
|
166
69
|
}, null, 8, ["icon"])),
|
|
167
|
-
e[5] || (e[5] =
|
|
168
|
-
])) :
|
|
70
|
+
e[5] || (e[5] = l("span", { class: "tw-sr-only" }, "Show previous slide", -1))
|
|
71
|
+
])) : x("", !0)
|
|
169
72
|
])
|
|
170
73
|
]);
|
|
171
74
|
}
|
|
172
|
-
const
|
|
75
|
+
const E = /* @__PURE__ */ p(m, [["render", j]]);
|
|
173
76
|
export {
|
|
174
|
-
|
|
77
|
+
E as default
|
|
175
78
|
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
heightStyle: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
emblaOptions: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default(): {};
|
|
9
|
+
};
|
|
10
|
+
slidesToScroll: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (value: string) => boolean;
|
|
14
|
+
};
|
|
15
|
+
autoplayOptions: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default(): {};
|
|
18
|
+
};
|
|
19
|
+
fadeEnabled: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
}>, {
|
|
24
|
+
hasAutoplay: import('vue').ComputedRef<boolean>;
|
|
25
|
+
componentSlotKeys: import('vue').ComputedRef<string[]>;
|
|
26
|
+
currentIndex: import('vue').Ref<any, any>;
|
|
27
|
+
embla: import('vue').Ref<any, any>;
|
|
28
|
+
goToSlide: (index: number) => void;
|
|
29
|
+
handleUserInteraction: (index: number | null, interactionType: string) => Promise<void>;
|
|
30
|
+
isAriaHidden: (index: number) => boolean;
|
|
31
|
+
isAutoplaying: import('vue').Ref<boolean, boolean>;
|
|
32
|
+
mdiPause: string;
|
|
33
|
+
mdiPlay: string;
|
|
34
|
+
mdiChevronDown: string;
|
|
35
|
+
mdiChevronUp: string;
|
|
36
|
+
nextIndex: import('vue').ComputedRef<any>;
|
|
37
|
+
previousIndex: import('vue').ComputedRef<number>;
|
|
38
|
+
reInit: () => void;
|
|
39
|
+
reInitVisible: () => void;
|
|
40
|
+
rootEl: import('vue').Ref<any, any>;
|
|
41
|
+
slideIndicatorCount: import('vue').Ref<number, number>;
|
|
42
|
+
slides: import('vue').Ref<any[], any[]>;
|
|
43
|
+
toggleAutoPlay: () => void;
|
|
44
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "interact-carousel")[], "change" | "interact-carousel", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
heightStyle: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
emblaOptions: {
|
|
50
|
+
type: ObjectConstructor;
|
|
51
|
+
default(): {};
|
|
52
|
+
};
|
|
53
|
+
slidesToScroll: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
validator: (value: string) => boolean;
|
|
57
|
+
};
|
|
58
|
+
autoplayOptions: {
|
|
59
|
+
type: ObjectConstructor;
|
|
60
|
+
default(): {};
|
|
61
|
+
};
|
|
62
|
+
fadeEnabled: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{
|
|
67
|
+
onChange?: (...args: any[]) => any;
|
|
68
|
+
"onInteract-carousel"?: (...args: any[]) => any;
|
|
69
|
+
}>, {
|
|
70
|
+
autoplayOptions: Record<string, any>;
|
|
71
|
+
fadeEnabled: boolean;
|
|
72
|
+
emblaOptions: Record<string, any>;
|
|
73
|
+
slidesToScroll: string;
|
|
74
|
+
heightStyle: string;
|
|
75
|
+
}, {}, {
|
|
76
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
77
|
+
icon: {
|
|
78
|
+
type: StringConstructor;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
82
|
+
icon: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
}>> & Readonly<{}>, {
|
|
87
|
+
icon: string;
|
|
88
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
89
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { mdiPause as x, mdiPlay as I, mdiChevronDown as v, mdiChevronUp as O } from "@mdi/js";
|
|
2
|
+
import { toRefs as S, computed as A } from "vue";
|
|
3
|
+
import { carouselUtil as j } from "../utils/carousels.js";
|
|
4
|
+
import C from "./KvMaterialIcon.js";
|
|
5
|
+
const _ = {
|
|
6
|
+
components: {
|
|
7
|
+
KvMaterialIcon: C
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
/**
|
|
11
|
+
* Height style declaration of the vertical carousel.
|
|
12
|
+
* */
|
|
13
|
+
heightStyle: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "400px;"
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* Options for the embla carousel - // https://davidcetinkaya.github.io/embla-carousel/api#options
|
|
19
|
+
* */
|
|
20
|
+
emblaOptions: {
|
|
21
|
+
type: Object,
|
|
22
|
+
default() {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* The type of logic to implement when deciding how many slides
|
|
28
|
+
* to scroll when pressing the next/prev button
|
|
29
|
+
* `visible, auto`
|
|
30
|
+
* */
|
|
31
|
+
slidesToScroll: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "auto",
|
|
34
|
+
validator: (e) => ["visible", "auto"].indexOf(e) !== -1
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* Options for the autoplay plugin - // https://www.embla-carousel.com/plugins/autoplay/#options
|
|
38
|
+
* */
|
|
39
|
+
autoplayOptions: {
|
|
40
|
+
type: Object,
|
|
41
|
+
default() {
|
|
42
|
+
return {};
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Enable fade plugin - // https://www.embla-carousel.com/plugins/fade/
|
|
47
|
+
* */
|
|
48
|
+
fadeEnabled: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !1
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
emits: [
|
|
54
|
+
"change",
|
|
55
|
+
"interact-carousel"
|
|
56
|
+
],
|
|
57
|
+
setup(e, { emit: t, slots: o }) {
|
|
58
|
+
const {
|
|
59
|
+
autoplayOptions: a
|
|
60
|
+
} = S(e), {
|
|
61
|
+
componentSlotKeys: n,
|
|
62
|
+
currentIndex: i,
|
|
63
|
+
embla: l,
|
|
64
|
+
goToSlide: r,
|
|
65
|
+
handleUserInteraction: s,
|
|
66
|
+
isAriaHidden: u,
|
|
67
|
+
isAutoplaying: d,
|
|
68
|
+
nextIndex: p,
|
|
69
|
+
previousIndex: c,
|
|
70
|
+
reInit: m,
|
|
71
|
+
reInitVisible: y,
|
|
72
|
+
rootEl: f,
|
|
73
|
+
slideIndicatorCount: g,
|
|
74
|
+
slides: h,
|
|
75
|
+
toggleAutoPlay: b
|
|
76
|
+
} = j(e, { emit: t, slots: o }, { axis: "y" });
|
|
77
|
+
return {
|
|
78
|
+
hasAutoplay: A(() => Object.keys(a.value).length !== 0),
|
|
79
|
+
componentSlotKeys: n,
|
|
80
|
+
currentIndex: i,
|
|
81
|
+
embla: l,
|
|
82
|
+
goToSlide: r,
|
|
83
|
+
handleUserInteraction: s,
|
|
84
|
+
isAriaHidden: u,
|
|
85
|
+
isAutoplaying: d,
|
|
86
|
+
mdiPause: x,
|
|
87
|
+
mdiPlay: I,
|
|
88
|
+
mdiChevronDown: v,
|
|
89
|
+
mdiChevronUp: O,
|
|
90
|
+
nextIndex: p,
|
|
91
|
+
previousIndex: c,
|
|
92
|
+
reInit: m,
|
|
93
|
+
reInitVisible: y,
|
|
94
|
+
rootEl: f,
|
|
95
|
+
slideIndicatorCount: g,
|
|
96
|
+
slides: h,
|
|
97
|
+
toggleAutoPlay: b
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
};
|
|
101
|
+
export {
|
|
102
|
+
_ as default
|
|
103
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.kv-voting-card[data-v-
|
|
1
|
+
.kv-voting-card[data-v-e470d150]{max-width:300px}
|
package/dist/vue/KvVotingCard.js
CHANGED
|
@@ -1,77 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import x from "./KvProgressBar.js";
|
|
4
|
-
import k from "./KvButton.js";
|
|
5
|
-
import y from "./KvMaterialIcon.js";
|
|
1
|
+
import u from "./KvVotingCard2.js";
|
|
2
|
+
import { resolveComponent as s, openBlock as o, createElementBlock as r, createElementVNode as t, renderSlot as v, toDisplayString as c, createBlock as i, createCommentVNode as l, withCtx as g, createTextVNode as h } from "vue";
|
|
6
3
|
import "./KvVotingCard.css";
|
|
7
|
-
import
|
|
8
|
-
const
|
|
9
|
-
name: "KvVotingCard",
|
|
10
|
-
components: {
|
|
11
|
-
KvProgressBar: x,
|
|
12
|
-
KvButton: k,
|
|
13
|
-
KvMaterialIcon: y
|
|
14
|
-
},
|
|
15
|
-
props: {
|
|
16
|
-
borrowerName: {
|
|
17
|
-
type: String,
|
|
18
|
-
default: ""
|
|
19
|
-
},
|
|
20
|
-
category: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: ""
|
|
23
|
-
},
|
|
24
|
-
images: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => []
|
|
27
|
-
},
|
|
28
|
-
percentage: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 0
|
|
31
|
-
},
|
|
32
|
-
showVoteButton: {
|
|
33
|
-
type: Boolean,
|
|
34
|
-
default: !0
|
|
35
|
-
},
|
|
36
|
-
showPercentage: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
default: !0
|
|
39
|
-
},
|
|
40
|
-
showInfoIcon: {
|
|
41
|
-
type: Boolean,
|
|
42
|
-
default: !1
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
setup() {
|
|
46
|
-
return {
|
|
47
|
-
infoIcon: _(() => g)
|
|
48
|
-
};
|
|
49
|
-
},
|
|
50
|
-
methods: {
|
|
51
|
-
castVote() {
|
|
52
|
-
this.$emit("vote", {
|
|
53
|
-
category: this.category
|
|
54
|
-
});
|
|
55
|
-
},
|
|
56
|
-
handleInfoClick() {
|
|
57
|
-
this.$emit("info-click", {
|
|
58
|
-
category: this.category
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}, I = { class: "kv-voting-card tw-bg-white tw-rounded tw-shadow tw-p-1 tw-flex tw-flex-col tw-max-w-300" }, B = { class: "tw-relative tw-flex tw-w-full tw-bg-black tw-rounded tw-mb-1" }, V = {
|
|
4
|
+
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const k = { class: "kv-voting-card tw-bg-white tw-rounded tw-shadow tw-p-1 tw-flex tw-flex-col tw-max-w-300" }, b = { class: "tw-relative tw-flex tw-w-full tw-bg-black tw-rounded tw-mb-1" }, p = {
|
|
63
6
|
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-text-h4 tw-inline-flex tw-items-center",
|
|
64
7
|
style: { padding: "2px 6px", "text-transform": "capitalize" }
|
|
65
|
-
},
|
|
8
|
+
}, C = { class: "tw-flex tw-flex-grow" }, y = { class: "tw-flex-grow" }, V = { class: "tw-font-medium" }, B = { class: "tw-flex-shrink" }, I = { class: "tw-flex tw-items-center tw-w-full tw-mb-1" }, N = {
|
|
66
9
|
key: 1,
|
|
67
10
|
class: "tw-ml-2 tw-font-medium"
|
|
68
11
|
};
|
|
69
|
-
function
|
|
70
|
-
const
|
|
71
|
-
return o(),
|
|
72
|
-
t("div",
|
|
73
|
-
|
|
74
|
-
t("div",
|
|
12
|
+
function P(a, n, e, d, z, w) {
|
|
13
|
+
const m = s("kv-material-icon"), _ = s("kv-progress-bar"), f = s("kv-button");
|
|
14
|
+
return o(), r("div", k, [
|
|
15
|
+
t("div", b, [
|
|
16
|
+
v(a.$slots, "image", {}, void 0, !0),
|
|
17
|
+
t("div", p, [
|
|
75
18
|
n[0] || (n[0] = t("span", {
|
|
76
19
|
class: "tw-inline-flex tw-align-text-top",
|
|
77
20
|
"aria-hidden": "true",
|
|
@@ -88,44 +31,44 @@ function A(i, n, e, d, D, c) {
|
|
|
88
31
|
})
|
|
89
32
|
])
|
|
90
33
|
], -1)),
|
|
91
|
-
t("div", null,
|
|
34
|
+
t("div", null, c(e.borrowerName), 1)
|
|
92
35
|
])
|
|
93
36
|
]),
|
|
94
|
-
t("div",
|
|
95
|
-
t("div",
|
|
96
|
-
t("h3",
|
|
37
|
+
t("div", C, [
|
|
38
|
+
t("div", y, [
|
|
39
|
+
t("h3", V, c(e.category), 1)
|
|
97
40
|
]),
|
|
98
|
-
t("div",
|
|
99
|
-
e.showInfoIcon ? (o(),
|
|
41
|
+
t("div", B, [
|
|
42
|
+
e.showInfoIcon ? (o(), i(m, {
|
|
100
43
|
key: 0,
|
|
101
44
|
icon: d.infoIcon,
|
|
102
45
|
class: "tw-h-3 tw-w-3",
|
|
103
|
-
onClick:
|
|
104
|
-
}, null, 8, ["icon", "onClick"])) :
|
|
46
|
+
onClick: w.handleInfoClick
|
|
47
|
+
}, null, 8, ["icon", "onClick"])) : l("", !0)
|
|
105
48
|
])
|
|
106
49
|
]),
|
|
107
|
-
t("div",
|
|
108
|
-
e.showPercentage ? (o(),
|
|
50
|
+
t("div", I, [
|
|
51
|
+
e.showPercentage ? (o(), i(_, {
|
|
109
52
|
key: 0,
|
|
110
53
|
class: "tw-flex-grow",
|
|
111
|
-
|
|
54
|
+
label: "Percent of votes for " + e.category,
|
|
112
55
|
value: e.percentage
|
|
113
|
-
}, null, 8, ["
|
|
114
|
-
e.showPercentage ? (o(),
|
|
56
|
+
}, null, 8, ["label", "value"])) : l("", !0),
|
|
57
|
+
e.showPercentage ? (o(), r("div", N, c(e.percentage) + "% ", 1)) : l("", !0)
|
|
115
58
|
]),
|
|
116
|
-
e.showVoteButton ? (o(),
|
|
59
|
+
e.showVoteButton ? (o(), i(f, {
|
|
117
60
|
key: 0,
|
|
118
61
|
class: "tw-w-full",
|
|
119
|
-
onClick:
|
|
62
|
+
onClick: w.castVote
|
|
120
63
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
64
|
+
default: g(() => n[1] || (n[1] = [
|
|
65
|
+
h(" Vote ")
|
|
123
66
|
])),
|
|
124
67
|
_: 1
|
|
125
|
-
}, 8, ["onClick"])) :
|
|
68
|
+
}, 8, ["onClick"])) : l("", !0)
|
|
126
69
|
]);
|
|
127
70
|
}
|
|
128
|
-
const
|
|
71
|
+
const T = /* @__PURE__ */ x(u, [["render", P], ["__scopeId", "data-v-e470d150"]]);
|
|
129
72
|
export {
|
|
130
|
-
|
|
73
|
+
T as default
|
|
131
74
|
};
|