@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.
Files changed (332) hide show
  1. package/.eslintignore +5 -0
  2. package/dist/index.d.ts +3 -0
  3. package/dist/index.js +236 -216
  4. package/dist/utils/Alea.d.ts +9 -0
  5. package/dist/utils/Alea.js +23 -23
  6. package/dist/utils/arrayUtils.d.ts +3 -0
  7. package/dist/utils/arrayUtils.js +1 -1
  8. package/dist/utils/attrs.d.ts +6 -0
  9. package/dist/utils/carousels.d.ts +21 -0
  10. package/dist/utils/comparators.d.ts +3 -0
  11. package/dist/utils/comparators.js +20 -6
  12. package/dist/utils/debounce.d.ts +1 -0
  13. package/dist/utils/debounce.js +4 -4
  14. package/dist/utils/event.d.ts +1 -0
  15. package/dist/utils/event.js +7 -0
  16. package/dist/utils/expander.d.ts +14 -0
  17. package/dist/utils/imageUtils.d.ts +11 -0
  18. package/dist/utils/imageUtils.js +12 -12
  19. package/dist/utils/index.d.ts +21 -0
  20. package/dist/utils/loanCard.d.ts +35 -0
  21. package/dist/utils/loanCard.js +2 -2
  22. package/dist/utils/loanSearch/queryParamUtils.d.ts +1 -0
  23. package/dist/utils/loanUtils.d.ts +11 -0
  24. package/dist/utils/loanUtils.js +56 -53
  25. package/dist/utils/mapUtils.d.ts +5 -0
  26. package/dist/utils/markMatches.d.ts +1 -0
  27. package/dist/utils/paramCase.d.ts +1 -0
  28. package/dist/utils/printing.d.ts +2 -0
  29. package/dist/utils/scrollLock.d.ts +4 -0
  30. package/dist/utils/themeUtils.d.ts +12 -0
  31. package/dist/utils/throttle.d.ts +1 -0
  32. package/dist/utils/throttle.js +4 -4
  33. package/dist/utils/touchEvents.d.ts +3 -0
  34. package/dist/utils/touchEvents.js +9 -9
  35. package/dist/utils/treemap.d.ts +16 -0
  36. package/dist/utils/treemap.js +1 -1
  37. package/dist/vue/KvAccordionItem.js +28 -82
  38. package/dist/vue/KvAccordionItem.vue.d.ts +107 -0
  39. package/dist/vue/KvAccordionItem2.js +60 -0
  40. package/dist/vue/KvActivityRow.js +11 -22
  41. package/dist/vue/KvActivityRow.vue.d.ts +66 -0
  42. package/dist/vue/KvActivityRow2.js +16 -0
  43. package/dist/vue/KvAtbModal.css +1 -1
  44. package/dist/vue/KvAtbModal.js +68 -248
  45. package/dist/vue/KvAtbModal.vue.d.ts +359 -0
  46. package/dist/vue/KvAtbModal2.js +186 -0
  47. package/dist/vue/KvBorrowerImage.js +17 -118
  48. package/dist/vue/KvBorrowerImage.vue.d.ts +62 -0
  49. package/dist/vue/KvBorrowerImage2.js +106 -0
  50. package/dist/vue/KvButton.js +20 -164
  51. package/dist/vue/KvButton.vue.d.ts +94 -0
  52. package/dist/vue/KvButton2.js +149 -0
  53. package/dist/vue/KvCardFrame.js +12 -74
  54. package/dist/vue/KvCardFrame.vue.d.ts +86 -0
  55. package/dist/vue/KvCardFrame2.js +67 -0
  56. package/dist/vue/KvCarousel.css +1 -1
  57. package/dist/vue/KvCarousel.js +55 -192
  58. package/dist/vue/KvCarousel.vue.d.ts +135 -0
  59. package/dist/vue/KvCarousel2.js +142 -0
  60. package/dist/vue/KvCartModal.css +1 -1
  61. package/dist/vue/KvCartModal.js +31 -131
  62. package/dist/vue/KvCartModal.vue.d.ts +163 -0
  63. package/dist/vue/KvCartModal2.js +106 -0
  64. package/dist/vue/KvCartPill.js +12 -51
  65. package/dist/vue/KvCartPill.vue.d.ts +52 -0
  66. package/dist/vue/KvCartPill2.js +45 -0
  67. package/dist/vue/KvCheckbox.css +1 -1
  68. package/dist/vue/KvCheckbox.js +30 -126
  69. package/dist/vue/KvCheckbox.vue.d.ts +90 -0
  70. package/dist/vue/KvCheckbox2.js +102 -0
  71. package/dist/vue/KvCheckoutReceipt.css +1 -1
  72. package/dist/vue/KvCheckoutReceipt.js +120 -199
  73. package/dist/vue/KvCheckoutReceipt.vue.d.ts +164 -0
  74. package/dist/vue/KvCheckoutReceipt2.js +85 -0
  75. package/dist/vue/KvChip.js +12 -29
  76. package/dist/vue/KvChip.vue.d.ts +22 -0
  77. package/dist/vue/KvChip2.js +22 -0
  78. package/dist/vue/KvClassicLoanCard.css +1 -1
  79. package/dist/vue/KvClassicLoanCard.js +83 -351
  80. package/dist/vue/KvClassicLoanCard.vue.d.ts +2120 -0
  81. package/dist/vue/KvClassicLoanCard2.js +281 -0
  82. package/dist/vue/KvCommentsAdd.css +1 -1
  83. package/dist/vue/KvCommentsAdd.js +34 -81
  84. package/dist/vue/KvCommentsAdd.vue.d.ts +296 -0
  85. package/dist/vue/KvCommentsAdd2.js +57 -0
  86. package/dist/vue/KvCommentsContainer.js +15 -66
  87. package/dist/vue/KvCommentsContainer.vue.d.ts +954 -0
  88. package/dist/vue/KvCommentsContainer2.js +58 -0
  89. package/dist/vue/KvCommentsHeartButton.css +1 -1
  90. package/dist/vue/KvCommentsHeartButton.js +12 -51
  91. package/dist/vue/KvCommentsHeartButton.vue.d.ts +42 -0
  92. package/dist/vue/KvCommentsHeartButton2.js +44 -0
  93. package/dist/vue/KvCommentsList.js +9 -51
  94. package/dist/vue/KvCommentsList.vue.d.ts +619 -0
  95. package/dist/vue/KvCommentsList2.js +46 -0
  96. package/dist/vue/KvCommentsListItem.js +62 -186
  97. package/dist/vue/KvCommentsListItem.vue.d.ts +571 -0
  98. package/dist/vue/KvCommentsListItem2.js +135 -0
  99. package/dist/vue/KvCommentsReplyButton.css +1 -1
  100. package/dist/vue/KvCommentsReplyButton.js +8 -17
  101. package/dist/vue/KvCommentsReplyButton.vue.d.ts +98 -0
  102. package/dist/vue/KvCommentsReplyButton2.js +13 -0
  103. package/dist/vue/KvCompactLoanCard.css +1 -1
  104. package/dist/vue/KvCompactLoanCard.js +71 -327
  105. package/dist/vue/KvCompactLoanCard.vue.d.ts +1272 -0
  106. package/dist/vue/KvCompactLoanCard2.js +269 -0
  107. package/dist/vue/KvContentfulImg.js +51 -164
  108. package/dist/vue/KvContentfulImg.vue.d.ts +107 -0
  109. package/dist/vue/KvContentfulImg2.js +119 -0
  110. package/dist/vue/KvCountdownTimer.js +8 -28
  111. package/dist/vue/KvCountdownTimer.vue.d.ts +15 -0
  112. package/dist/vue/KvCountdownTimer2.js +26 -0
  113. package/dist/vue/KvDatePicker.js +21 -101
  114. package/dist/vue/KvDatePicker.vue.d.ts +58 -0
  115. package/dist/vue/KvDatePicker2.js +86 -0
  116. package/dist/vue/KvExpandable.js +9 -56
  117. package/dist/vue/KvExpandable.vue.d.ts +53 -0
  118. package/dist/vue/KvExpandable2.js +52 -0
  119. package/dist/vue/KvExpandableQuestion.js +23 -82
  120. package/dist/vue/KvExpandableQuestion.vue.d.ts +124 -0
  121. package/dist/vue/KvExpandableQuestion2.js +65 -0
  122. package/dist/vue/KvFlag.css +1 -1
  123. package/dist/vue/KvFlag.js +16 -617
  124. package/dist/vue/KvFlag.vue.d.ts +66 -0
  125. package/dist/vue/KvFlag2.js +606 -0
  126. package/dist/vue/KvGrid.js +7 -18
  127. package/dist/vue/KvGrid.vue.d.ts +14 -0
  128. package/dist/vue/KvGrid2.js +15 -0
  129. package/dist/vue/KvIconBag.js +12 -18
  130. package/dist/vue/KvIconBag.vue.d.ts +14 -0
  131. package/dist/vue/KvIconBag2.js +11 -0
  132. package/dist/vue/KvImpactDashboardHeader.vue.d.ts +17 -0
  133. package/dist/vue/KvImpactVerticalSelector.js +31 -110
  134. package/dist/vue/KvImpactVerticalSelector.vue.d.ts +278 -0
  135. package/dist/vue/KvImpactVerticalSelector2.js +85 -0
  136. package/dist/vue/KvInlineActivityCard.js +15 -44
  137. package/dist/vue/KvInlineActivityCard.vue.d.ts +71 -0
  138. package/dist/vue/KvInlineActivityCard2.js +35 -0
  139. package/dist/vue/KvInlineActivityFeed.css +1 -1
  140. package/dist/vue/KvInlineActivityFeed.js +11 -23
  141. package/dist/vue/KvInlineActivityFeed.vue.d.ts +85 -0
  142. package/dist/vue/KvInlineActivityFeed2.js +17 -0
  143. package/dist/vue/KvIntroductionLoanCard.css +1 -1
  144. package/dist/vue/KvIntroductionLoanCard.js +111 -309
  145. package/dist/vue/KvIntroductionLoanCard.vue.d.ts +617 -0
  146. package/dist/vue/KvIntroductionLoanCard2.js +209 -0
  147. package/dist/vue/KvLendAmountButton.js +9 -53
  148. package/dist/vue/KvLendAmountButton.vue.d.ts +140 -0
  149. package/dist/vue/KvLendAmountButton2.js +48 -0
  150. package/dist/vue/KvLendCta.css +1 -1
  151. package/dist/vue/KvLendCta.js +150 -530
  152. package/dist/vue/KvLendCta.vue.d.ts +583 -0
  153. package/dist/vue/KvLendCta2.js +387 -0
  154. package/dist/vue/KvLightbox.js +37 -148
  155. package/dist/vue/KvLightbox.vue.d.ts +77 -0
  156. package/dist/vue/KvLightbox2.js +117 -0
  157. package/dist/vue/KvLineGraph.js +25 -58
  158. package/dist/vue/KvLineGraph.vue.d.ts +35 -0
  159. package/dist/vue/KvLineGraph2.js +39 -0
  160. package/dist/vue/KvLoadingPlaceholder.vue.d.ts +2 -0
  161. package/dist/vue/KvLoadingSpinner.js +9 -34
  162. package/dist/vue/KvLoadingSpinner.vue.d.ts +27 -0
  163. package/dist/vue/KvLoadingSpinner2.js +29 -0
  164. package/dist/vue/KvLoanActivities.css +1 -1
  165. package/dist/vue/KvLoanActivities.js +37 -179
  166. package/dist/vue/KvLoanActivities.vue.d.ts +853 -0
  167. package/dist/vue/KvLoanActivities2.js +151 -0
  168. package/dist/vue/KvLoanBookmark.js +14 -40
  169. package/dist/vue/KvLoanBookmark.vue.d.ts +32 -0
  170. package/dist/vue/KvLoanBookmark2.js +32 -0
  171. package/dist/vue/KvLoanCallouts.css +1 -1
  172. package/dist/vue/KvLoanCallouts.js +10 -17
  173. package/dist/vue/KvLoanCallouts.vue.d.ts +18 -0
  174. package/dist/vue/KvLoanCallouts2.js +12 -0
  175. package/dist/vue/KvLoanInfoCard.js +20 -19
  176. package/dist/vue/KvLoanProgressGroup.css +1 -1
  177. package/dist/vue/KvLoanProgressGroup.js +18 -57
  178. package/dist/vue/KvLoanProgressGroup.vue.d.ts +108 -0
  179. package/dist/vue/KvLoanProgressGroup2.js +44 -0
  180. package/dist/vue/KvLoanTag.js +15 -103
  181. package/dist/vue/KvLoanTag.vue.d.ts +46 -0
  182. package/dist/vue/KvLoanTag2.js +94 -0
  183. package/dist/vue/KvLoanTeamPick.vue.d.ts +2 -0
  184. package/dist/vue/KvLoanUse.js +12 -100
  185. package/dist/vue/KvLoanUse.vue.d.ts +120 -0
  186. package/dist/vue/KvLoanUse2.js +95 -0
  187. package/dist/vue/KvLogo.vue.d.ts +2 -0
  188. package/dist/vue/KvMap.js +13 -381
  189. package/dist/vue/KvMap.vue.d.ts +213 -0
  190. package/dist/vue/KvMap2.js +376 -0
  191. package/dist/vue/KvMaterialIcon.js +10 -20
  192. package/dist/vue/KvMaterialIcon.vue.d.ts +14 -0
  193. package/dist/vue/KvMaterialIcon2.js +15 -0
  194. package/dist/vue/KvPageContainer.js +9 -8
  195. package/dist/vue/KvPageContainer.vue.d.ts +2 -0
  196. package/dist/vue/KvPageContainer2.js +4 -0
  197. package/dist/vue/KvPagination.js +38 -138
  198. package/dist/vue/KvPagination.vue.d.ts +107 -0
  199. package/dist/vue/KvPagination2.js +105 -0
  200. package/dist/vue/KvPieChart.css +1 -1
  201. package/dist/vue/KvPieChart.js +49 -128
  202. package/dist/vue/KvPieChart.vue.d.ts +47 -0
  203. package/dist/vue/KvPieChart2.js +85 -0
  204. package/dist/vue/KvPill.js +9 -19
  205. package/dist/vue/KvPill.vue.d.ts +23 -0
  206. package/dist/vue/KvPill2.js +15 -0
  207. package/dist/vue/KvPopper.js +14 -122
  208. package/dist/vue/KvPopper.vue.d.ts +80 -0
  209. package/dist/vue/KvPopper2.js +113 -0
  210. package/dist/vue/KvProgressBar.js +17 -112
  211. package/dist/vue/KvProgressBar.vue.d.ts +70 -0
  212. package/dist/vue/KvProgressBar2.js +101 -0
  213. package/dist/vue/KvPulsingDot.css +1 -1
  214. package/dist/vue/KvPulsingDot.js +11 -25
  215. package/dist/vue/KvPulsingDot.vue.d.ts +23 -0
  216. package/dist/vue/KvPulsingDot2.js +19 -0
  217. package/dist/vue/KvRadio.js +23 -106
  218. package/dist/vue/KvRadio.vue.d.ts +62 -0
  219. package/dist/vue/KvRadio2.js +89 -0
  220. package/dist/vue/KvSecondaryNav.css +1 -1
  221. package/dist/vue/KvSecondaryNav.js +46 -122
  222. package/dist/vue/KvSecondaryNav.vue.d.ts +117 -0
  223. package/dist/vue/KvSecondaryNav2.js +82 -0
  224. package/dist/vue/KvSelect.css +1 -1
  225. package/dist/vue/KvSelect.js +18 -78
  226. package/dist/vue/KvSelect.vue.d.ts +58 -0
  227. package/dist/vue/KvSelect2.js +66 -0
  228. package/dist/vue/KvSideSheet.js +44 -262
  229. package/dist/vue/KvSideSheet.vue.d.ts +136 -0
  230. package/dist/vue/KvSideSheet2.js +224 -0
  231. package/dist/vue/KvSwitch.js +23 -76
  232. package/dist/vue/KvSwitch.vue.d.ts +34 -0
  233. package/dist/vue/KvSwitch2.js +59 -0
  234. package/dist/vue/KvTab.js +15 -57
  235. package/dist/vue/KvTab.vue.d.ts +34 -0
  236. package/dist/vue/KvTab2.js +48 -0
  237. package/dist/vue/KvTabPanel.js +14 -36
  238. package/dist/vue/KvTabPanel.vue.d.ts +14 -0
  239. package/dist/vue/KvTabPanel2.js +28 -0
  240. package/dist/vue/KvTabs.js +21 -75
  241. package/dist/vue/KvTabs.vue.d.ts +22 -0
  242. package/dist/vue/KvTabs2.js +60 -0
  243. package/dist/vue/KvTextInput.js +28 -148
  244. package/dist/vue/KvTextInput.vue.d.ts +105 -0
  245. package/dist/vue/KvTextInput2.js +126 -0
  246. package/dist/vue/KvTextLink.js +13 -76
  247. package/dist/vue/KvTextLink.vue.d.ts +64 -0
  248. package/dist/vue/KvTextLink2.js +68 -0
  249. package/dist/vue/KvThemeProvider.js +8 -59
  250. package/dist/vue/KvThemeProvider.vue.d.ts +23 -0
  251. package/dist/vue/KvThemeProvider2.js +55 -0
  252. package/dist/vue/KvToast.js +32 -69
  253. package/dist/vue/KvToast.vue.d.ts +31 -0
  254. package/dist/vue/KvToast2.js +43 -0
  255. package/dist/vue/KvTooltip.css +1 -1
  256. package/dist/vue/KvTooltip.js +27 -123
  257. package/dist/vue/KvTooltip.vue.d.ts +2 -0
  258. package/dist/vue/KvTooltip2.js +103 -0
  259. package/dist/vue/KvTreeMapChart.css +1 -1
  260. package/dist/vue/KvTreeMapChart.js +28 -156
  261. package/dist/vue/KvTreeMapChart.vue.d.ts +60 -0
  262. package/dist/vue/KvTreeMapChart2.js +133 -0
  263. package/dist/vue/KvUserAvatar.js +28 -110
  264. package/dist/vue/KvUserAvatar.vue.d.ts +55 -0
  265. package/dist/vue/KvUserAvatar2.js +88 -0
  266. package/dist/vue/KvUtilityMenu.js +19 -95
  267. package/dist/vue/KvUtilityMenu.vue.d.ts +104 -0
  268. package/dist/vue/KvUtilityMenu2.js +81 -0
  269. package/dist/vue/KvVerticalCarousel.js +40 -137
  270. package/dist/vue/KvVerticalCarousel.vue.d.ts +90 -0
  271. package/dist/vue/KvVerticalCarousel2.js +103 -0
  272. package/dist/vue/KvVotingCard.css +1 -1
  273. package/dist/vue/KvVotingCard.js +31 -88
  274. package/dist/vue/KvVotingCard.vue.d.ts +249 -0
  275. package/dist/vue/KvVotingCard2.js +63 -0
  276. package/dist/vue/KvVotingCardV2.js +35 -90
  277. package/dist/vue/KvVotingCardV2.vue.d.ts +308 -0
  278. package/dist/vue/KvVotingCardV22.js +61 -0
  279. package/dist/vue/KvWideLoanCard.css +1 -1
  280. package/dist/vue/KvWideLoanCard.js +66 -274
  281. package/dist/vue/KvWideLoanCard.vue.d.ts +1191 -0
  282. package/dist/vue/KvWideLoanCard2.js +220 -0
  283. package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +34 -38
  284. package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.vue.d.ts +20 -0
  285. package/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +9 -0
  286. package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +20 -83
  287. package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.vue.d.ts +91 -0
  288. package/dist/vue/KvWwwHeader/KvHeaderDropdownLink2.js +69 -0
  289. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
  290. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +77 -248
  291. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.vue.d.ts +1071 -0
  292. package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +178 -0
  293. package/dist/vue/KvWwwHeader/KvHeaderLogo.js +8 -12
  294. package/dist/vue/KvWwwHeader/KvHeaderLogo.vue.d.ts +4 -0
  295. package/dist/vue/KvWwwHeader/KvHeaderLogo2.js +9 -0
  296. package/dist/vue/KvWwwHeader/KvHeaderMenuLink.vue.d.ts +17 -0
  297. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
  298. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +37 -91
  299. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.vue.d.ts +162 -0
  300. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +59 -0
  301. package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +36 -58
  302. package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.vue.d.ts +59 -0
  303. package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +27 -0
  304. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +20 -24
  305. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.vue.d.ts +20 -0
  306. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +9 -0
  307. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
  308. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +105 -181
  309. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.vue.d.ts +319 -0
  310. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +82 -0
  311. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
  312. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +93 -173
  313. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.vue.d.ts +166 -0
  314. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +86 -0
  315. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +17 -157
  316. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.vue.d.ts +506 -0
  317. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +145 -0
  318. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -1
  319. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +11 -18
  320. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.vue.d.ts +20 -0
  321. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +12 -0
  322. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +10 -16
  323. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.vue.d.ts +20 -0
  324. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +11 -0
  325. package/dist/vue/KvWwwHeader.css +1 -1
  326. package/dist/vue/KvWwwHeader.js +35 -148
  327. package/dist/vue/KvWwwHeader.vue.d.ts +4430 -0
  328. package/dist/vue/KvWwwHeader2.js +119 -0
  329. package/dist/vue/index.d.ts +86 -0
  330. package/package.json +34 -32
  331. package/tsconfig.json +32 -0
  332. package/vite.config.ts +84 -0
@@ -1,175 +1,78 @@
1
- import { mdiPause as I, mdiPlay as C, mdiChevronDown as A, mdiChevronUp as _ } from "@mdi/js";
2
- import { toRefs as j, computed as O, resolveComponent as P, openBlock as a, createElementBlock as s, createElementVNode as o, normalizeStyle as U, Fragment as E, renderList as K, renderSlot as V, normalizeClass as B, createVNode as u, withModifiers as N, createBlock as m, createCommentVNode as H } from "vue";
3
- import { carouselUtil as z } from "../utils/carousels.js";
4
- import D from "./KvMaterialIcon.js";
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
- }, L = ["aria-label", "aria-current", "aria-hidden", "tab-index"], R = { class: "kv-carousel__controls tw-flex tw-items-center tw-gap-2 tw-mt-2 tw-w-full tw-justify-center" }, q = ["disabled"], G = ["disabled"];
106
- function J(r, e, d, t, c, w) {
107
- const n = P("kv-material-icon");
108
- return a(), s("div", null, [
109
- o("section", F, [
110
- o("div", {
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: U(`height: ${d.heightStyle}`)
15
+ style: u(`height: ${c.heightStyle}`)
113
16
  }, [
114
- (a(!0), s(E, null, K(t.componentSlotKeys, (i, l) => (a(), s("div", {
115
- key: l,
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 ${l + 1} of ${t.componentSlotKeys.length}`,
118
- "aria-current": t.currentIndex === l ? "true" : "false",
119
- "aria-hidden": t.isAriaHidden(l) ? "true" : "false",
120
- "tab-index": t.isAriaHidden(l) ? "-1" : !1
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
- V(r.$slots, i)
123
- ], 8, L))), 128))
25
+ v(w.$slots, n)
26
+ ], 8, _))), 128))
124
27
  ], 4)
125
28
  ], 512),
126
- o("div", R, [
127
- o("div", {
128
- class: B(["tw-flex tw-gap-2 tw-w-full md:tw-w-auto", { "tw-justify-center": !t.hasAutoplay }])
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
- o("button", {
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] = (i) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
36
+ onClick: e[0] || (e[0] = (n) => t.handleUserInteraction(t.previousIndex, "click-left-arrow"))
134
37
  }, [
135
- u(n, {
38
+ s(i, {
136
39
  class: "tw-w-4",
137
40
  icon: t.mdiChevronUp
138
41
  }, null, 8, ["icon"]),
139
- e[3] || (e[3] = o("span", { class: "tw-sr-only" }, "Show previous slide", -1))
140
- ], 8, q),
141
- o("button", {
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] = (i) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
47
+ onClick: e[1] || (e[1] = (n) => t.handleUserInteraction(t.nextIndex, "click-right-arrow"))
145
48
  }, [
146
- u(n, {
49
+ s(i, {
147
50
  class: "tw-w-4",
148
51
  icon: t.mdiChevronDown
149
52
  }, null, 8, ["icon"]),
150
- e[4] || (e[4] = o("span", { class: "tw-sr-only" }, "Show next slide", -1))
151
- ], 8, G)
53
+ e[4] || (e[4] = l("span", { class: "tw-sr-only" }, "Show next slide", -1))
54
+ ], 8, A)
152
55
  ], 2),
153
- t.hasAutoplay ? (a(), s("button", {
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] = N((i) => t.toggleAutoPlay(), ["prevent"]))
59
+ onClick: e[2] || (e[2] = k((n) => t.toggleAutoPlay(), ["prevent"]))
157
60
  }, [
158
- t.isAutoplaying ? (a(), m(n, {
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"])) : (a(), m(n, {
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] = o("span", { class: "tw-sr-only" }, "Show previous slide", -1))
168
- ])) : H("", !0)
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 tt = /* @__PURE__ */ M(T, [["render", J]]);
75
+ const E = /* @__PURE__ */ p(m, [["render", j]]);
173
76
  export {
174
- tt as default
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-f0e8c18f]{max-width:300px}
1
+ .kv-voting-card[data-v-e470d150]{max-width:300px}
@@ -1,77 +1,20 @@
1
- import { mdiInformation as g } from "@mdi/js";
2
- import { computed as _, resolveComponent as a, openBlock as o, createElementBlock as w, createElementVNode as t, renderSlot as h, toDisplayString as l, createBlock as s, createCommentVNode as r, withCtx as v, createTextVNode as p } from "vue";
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 b from "../_virtual/_plugin-vue_export-helper.js";
8
- const C = {
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
- }, N = { class: "tw-flex tw-flex-grow" }, K = { class: "tw-flex-grow" }, P = { class: "tw-font-medium" }, S = { class: "tw-flex-shrink" }, z = { class: "tw-flex tw-items-center tw-w-full tw-mb-1" }, E = {
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 A(i, n, e, d, D, c) {
70
- const f = a("kv-material-icon"), m = a("kv-progress-bar"), u = a("kv-button");
71
- return o(), w("div", I, [
72
- t("div", B, [
73
- h(i.$slots, "image", {}, void 0, !0),
74
- t("div", V, [
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, l(e.borrowerName), 1)
34
+ t("div", null, c(e.borrowerName), 1)
92
35
  ])
93
36
  ]),
94
- t("div", N, [
95
- t("div", K, [
96
- t("h3", P, l(e.category), 1)
37
+ t("div", C, [
38
+ t("div", y, [
39
+ t("h3", V, c(e.category), 1)
97
40
  ]),
98
- t("div", S, [
99
- e.showInfoIcon ? (o(), s(f, {
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: c.handleInfoClick
104
- }, null, 8, ["icon", "onClick"])) : r("", !0)
46
+ onClick: w.handleInfoClick
47
+ }, null, 8, ["icon", "onClick"])) : l("", !0)
105
48
  ])
106
49
  ]),
107
- t("div", z, [
108
- e.showPercentage ? (o(), s(m, {
50
+ t("div", I, [
51
+ e.showPercentage ? (o(), i(_, {
109
52
  key: 0,
110
53
  class: "tw-flex-grow",
111
- "aria-label": "Percent of votes for " + e.category,
54
+ label: "Percent of votes for " + e.category,
112
55
  value: e.percentage
113
- }, null, 8, ["aria-label", "value"])) : r("", !0),
114
- e.showPercentage ? (o(), w("div", E, l(e.percentage) + "% ", 1)) : r("", !0)
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(), s(u, {
59
+ e.showVoteButton ? (o(), i(f, {
117
60
  key: 0,
118
61
  class: "tw-w-full",
119
- onClick: c.castVote
62
+ onClick: w.castVote
120
63
  }, {
121
- default: v(() => n[1] || (n[1] = [
122
- p(" Vote ")
64
+ default: g(() => n[1] || (n[1] = [
65
+ h(" Vote ")
123
66
  ])),
124
67
  _: 1
125
- }, 8, ["onClick"])) : r("", !0)
68
+ }, 8, ["onClick"])) : l("", !0)
126
69
  ]);
127
70
  }
128
- const J = /* @__PURE__ */ b(C, [["render", A], ["__scopeId", "data-v-f0e8c18f"]]);
71
+ const T = /* @__PURE__ */ x(u, [["render", P], ["__scopeId", "data-v-e470d150"]]);
129
72
  export {
130
- J as default
73
+ T as default
131
74
  };