@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
@@ -0,0 +1,296 @@
1
+ export declare const ADD_COMMENT_ID = "add-comment-value";
2
+ export declare const ADD_COMMENT_EVENT = "add-comment";
3
+ export declare const HIDE_INPUT_EVENT = "hide-input";
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ userImageUrl: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ userDisplayName: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ isReply: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ }>, {
18
+ ADD_COMMENT_ID: string;
19
+ addCommentValue: import('vue').Ref<string, string>;
20
+ commentButtonState: import('vue').ComputedRef<"" | "disabled">;
21
+ cancel: () => void;
22
+ comment: () => void;
23
+ focus: () => any;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("add-comment" | "hide-input")[], "add-comment" | "hide-input", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ userImageUrl: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ userDisplayName: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ isReply: {
34
+ type: BooleanConstructor;
35
+ default: boolean;
36
+ };
37
+ }>> & Readonly<{
38
+ "onAdd-comment"?: (...args: any[]) => any;
39
+ "onHide-input"?: (...args: any[]) => any;
40
+ }>, {
41
+ userImageUrl: string;
42
+ userDisplayName: string;
43
+ isReply: boolean;
44
+ }, {}, {
45
+ KvButton: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
46
+ to: {
47
+ type: (StringConstructor | ObjectConstructor)[];
48
+ default: any;
49
+ };
50
+ href: {
51
+ type: StringConstructor;
52
+ default: any;
53
+ };
54
+ type: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ validator(value: string): boolean;
58
+ };
59
+ variant: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ validator(value: string): boolean;
63
+ };
64
+ state: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ validator(value: string): boolean;
68
+ };
69
+ }>, {
70
+ buttonRef: import('vue').Ref<any, any>;
71
+ buttonInnerRef: import('vue').Ref<any, any>;
72
+ computedClass: import('vue').ComputedRef<string>;
73
+ computedType: import('vue').ComputedRef<string>;
74
+ isDisabled: import('vue').ComputedRef<boolean>;
75
+ loadingColor: import('vue').ComputedRef<"white" | "brand" | "black">;
76
+ onClick: (event: any) => void;
77
+ tag: import('vue').ComputedRef<"button" | "router-link" | "a">;
78
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
79
+ to: {
80
+ type: (StringConstructor | ObjectConstructor)[];
81
+ default: any;
82
+ };
83
+ href: {
84
+ type: StringConstructor;
85
+ default: any;
86
+ };
87
+ type: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ validator(value: string): boolean;
91
+ };
92
+ variant: {
93
+ type: StringConstructor;
94
+ default: string;
95
+ validator(value: string): boolean;
96
+ };
97
+ state: {
98
+ type: StringConstructor;
99
+ default: string;
100
+ validator(value: string): boolean;
101
+ };
102
+ }>> & Readonly<{
103
+ onClick?: (...args: any[]) => any;
104
+ }>, {
105
+ to: string | Record<string, any>;
106
+ type: string;
107
+ href: string;
108
+ variant: string;
109
+ state: string;
110
+ }, {}, {
111
+ KvLoadingSpinner: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
112
+ size: {
113
+ type: StringConstructor;
114
+ default: string;
115
+ validator(value: string): boolean;
116
+ };
117
+ color: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ validator(value: string): boolean;
121
+ };
122
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
123
+ size: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ validator(value: string): boolean;
127
+ };
128
+ color: {
129
+ type: StringConstructor;
130
+ default: string;
131
+ validator(value: string): boolean;
132
+ };
133
+ }>> & Readonly<{}>, {
134
+ size: string;
135
+ color: string;
136
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
137
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
138
+ KvTextInput: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
139
+ id: {
140
+ type: StringConstructor;
141
+ required: true;
142
+ };
143
+ modelValue: {
144
+ type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
145
+ default: string;
146
+ };
147
+ placeholder: {
148
+ type: StringConstructor;
149
+ default: any;
150
+ };
151
+ disabled: {
152
+ type: BooleanConstructor;
153
+ default: boolean;
154
+ };
155
+ valid: {
156
+ type: BooleanConstructor;
157
+ default: boolean;
158
+ };
159
+ icon: {
160
+ type: StringConstructor;
161
+ default: any;
162
+ };
163
+ type: {
164
+ type: StringConstructor;
165
+ default: string;
166
+ };
167
+ canClear: {
168
+ type: BooleanConstructor;
169
+ default: boolean;
170
+ };
171
+ }>, {
172
+ mdiAlertCircleOutline: string;
173
+ mdiClose: string;
174
+ onInput: (event: any) => void;
175
+ focus: () => void;
176
+ blur: () => void;
177
+ clearInput: () => void;
178
+ inputText: import('vue').Ref<string | number | boolean, string | number | boolean>;
179
+ classes: any[];
180
+ styles: any[];
181
+ inputAttrs: any;
182
+ inputListeners: any;
183
+ textInputRef: import('vue').Ref<any, any>;
184
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, string[], string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
185
+ id: {
186
+ type: StringConstructor;
187
+ required: true;
188
+ };
189
+ modelValue: {
190
+ type: (StringConstructor | NumberConstructor | BooleanConstructor)[];
191
+ default: string;
192
+ };
193
+ placeholder: {
194
+ type: StringConstructor;
195
+ default: any;
196
+ };
197
+ disabled: {
198
+ type: BooleanConstructor;
199
+ default: boolean;
200
+ };
201
+ valid: {
202
+ type: BooleanConstructor;
203
+ default: boolean;
204
+ };
205
+ icon: {
206
+ type: StringConstructor;
207
+ default: any;
208
+ };
209
+ type: {
210
+ type: StringConstructor;
211
+ default: string;
212
+ };
213
+ canClear: {
214
+ type: BooleanConstructor;
215
+ default: boolean;
216
+ };
217
+ }>> & Readonly<{
218
+ [x: `on${Capitalize<string>}`]: (...args: any[]) => any;
219
+ }>, {
220
+ type: string;
221
+ icon: string;
222
+ disabled: boolean;
223
+ modelValue: string | number | boolean;
224
+ valid: boolean;
225
+ placeholder: string;
226
+ canClear: boolean;
227
+ }, {}, {
228
+ KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
229
+ icon: {
230
+ type: StringConstructor;
231
+ default: string;
232
+ };
233
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
234
+ icon: {
235
+ type: StringConstructor;
236
+ default: string;
237
+ };
238
+ }>> & Readonly<{}>, {
239
+ icon: string;
240
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
241
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
242
+ KvUserAvatar: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
243
+ lenderName: {
244
+ type: StringConstructor;
245
+ default: string;
246
+ };
247
+ lenderImageUrl: {
248
+ type: StringConstructor;
249
+ default: string;
250
+ };
251
+ isSmall: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ showCssPlaceholder: {
256
+ type: BooleanConstructor;
257
+ default: boolean;
258
+ };
259
+ }>, {
260
+ isAnonymousUser: import('vue').ComputedRef<boolean>;
261
+ avatarClass: import('vue').ComputedRef<string>;
262
+ userHasImage: import('vue').ComputedRef<boolean>;
263
+ lenderNameFirstLetter: import('vue').ComputedRef<string>;
264
+ letterViewBox: import('vue').ComputedRef<"0 0 27 27" | "0 0 27.5 27.5">;
265
+ isLegacyPlaceholderAvatar: typeof import('..').isLegacyPlaceholderAvatar;
266
+ isImageLoading: import('vue').Ref<boolean, boolean>;
267
+ onImgLoad: () => void;
268
+ imageRef: import('vue').Ref<any, any>;
269
+ userAvatar: import('vue').Ref<any, any>;
270
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
271
+ lenderName: {
272
+ type: StringConstructor;
273
+ default: string;
274
+ };
275
+ lenderImageUrl: {
276
+ type: StringConstructor;
277
+ default: string;
278
+ };
279
+ isSmall: {
280
+ type: BooleanConstructor;
281
+ default: boolean;
282
+ };
283
+ showCssPlaceholder: {
284
+ type: BooleanConstructor;
285
+ default: boolean;
286
+ };
287
+ }>> & Readonly<{}>, {
288
+ lenderName: string;
289
+ lenderImageUrl: string;
290
+ isSmall: boolean;
291
+ showCssPlaceholder: boolean;
292
+ }, {}, {
293
+ KvLoadingPlaceholder: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
294
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
295
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
296
+ export default _default;
@@ -0,0 +1,57 @@
1
+ import { ref as a, computed as u } from "vue";
2
+ import l from "./KvButton.js";
3
+ import r from "./KvTextInput.js";
4
+ import p from "./KvUserAvatar.js";
5
+ const d = "add-comment-value", s = "add-comment", o = "hide-input", N = {
6
+ name: "KvCommentsAdd",
7
+ components: {
8
+ KvButton: l,
9
+ KvTextInput: r,
10
+ KvUserAvatar: p
11
+ },
12
+ props: {
13
+ /**
14
+ * The full URL for the user image
15
+ */
16
+ userImageUrl: {
17
+ type: String,
18
+ default: ""
19
+ },
20
+ /**
21
+ * The name to display for the user
22
+ */
23
+ userDisplayName: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ /**
28
+ * Whether or not the comment is a reply
29
+ */
30
+ isReply: {
31
+ type: Boolean,
32
+ default: !1
33
+ }
34
+ },
35
+ emits: [s, o],
36
+ setup(n, { emit: e }) {
37
+ const t = a(""), m = a(null), c = u(() => t.value ? "" : "disabled");
38
+ return {
39
+ ADD_COMMENT_ID: d,
40
+ addCommentValue: t,
41
+ commentButtonState: c,
42
+ cancel: () => {
43
+ t.value = "", n.isReply && e(o);
44
+ },
45
+ comment: () => {
46
+ e(s, t.value), t.value = "", n.isReply && e(o);
47
+ },
48
+ focus: () => m.value.focus()
49
+ };
50
+ }
51
+ };
52
+ export {
53
+ s as ADD_COMMENT_EVENT,
54
+ d as ADD_COMMENT_ID,
55
+ o as HIDE_INPUT_EVENT,
56
+ N as default
57
+ };
@@ -1,80 +1,29 @@
1
- import d from "./KvCommentsAdd.js";
2
- import _ from "./KvCommentsList.js";
3
- import { resolveComponent as s, openBlock as m, createElementBlock as f, createBlock as a, createCommentVNode as r } from "vue";
4
- import p from "../_virtual/_plugin-vue_export-helper.js";
5
- const y = "add-comment", l = "add-reaction", C = {
6
- name: "KvCommentsContainer",
7
- components: {
8
- KvCommentsAdd: d,
9
- KvCommentsList: _
10
- },
11
- props: {
12
- /**
13
- * The full URL for the user image
14
- */
15
- userImageUrl: {
16
- type: String,
17
- default: ""
18
- },
19
- /**
20
- * The name to display for the user
21
- */
22
- userDisplayName: {
23
- type: String,
24
- default: ""
25
- },
26
- /**
27
- * The ID for the user
28
- */
29
- userPublicId: {
30
- type: String,
31
- default: ""
32
- },
33
- /**
34
- * Activity comments
35
- */
36
- comments: {
37
- type: Array,
38
- default: () => []
39
- }
40
- },
41
- emits: [l],
42
- setup(i, { emit: o }) {
43
- return {
44
- handleReaction: (n) => {
45
- let t;
46
- n.value === void 0 ? t = {
47
- reaction: y,
48
- id: null,
49
- isChild: !1,
50
- value: n
51
- } : t = n, o(l, t);
52
- }
53
- };
54
- }
55
- };
56
- function v(i, o, e, n, t, g) {
57
- const u = s("kv-comments-add"), c = s("kv-comments-list");
58
- return m(), f("div", null, [
59
- e.userPublicId ? (m(), a(u, {
1
+ import s from "./KvCommentsContainer2.js";
2
+ import { ADD_COMMENT_EVENT as g, ADD_REACTION_EVENT as D } from "./KvCommentsContainer2.js";
3
+ import { resolveComponent as o, openBlock as n, createElementBlock as l, createBlock as t, createCommentVNode as r } from "vue";
4
+ import u from "../_virtual/_plugin-vue_export-helper.js";
5
+ function i(d, _, e, m, f, k) {
6
+ const a = o("kv-comments-add"), c = o("kv-comments-list");
7
+ return n(), l("div", null, [
8
+ e.userPublicId ? (n(), t(a, {
60
9
  key: 0,
61
10
  "user-image-url": e.userImageUrl,
62
11
  "user-display-name": e.userDisplayName,
63
- onAddComment: n.handleReaction
12
+ onAddComment: m.handleReaction
64
13
  }, null, 8, ["user-image-url", "user-display-name", "onAddComment"])) : r("", !0),
65
- e.comments ? (m(), a(c, {
14
+ e.comments ? (n(), t(c, {
66
15
  key: 1,
67
16
  "user-image-url": e.userImageUrl,
68
17
  "user-display-name": e.userDisplayName,
69
18
  "user-public-id": e.userPublicId,
70
19
  comments: e.comments,
71
- onAddReaction: n.handleReaction
20
+ onAddReaction: m.handleReaction
72
21
  }, null, 8, ["user-image-url", "user-display-name", "user-public-id", "comments", "onAddReaction"])) : r("", !0)
73
22
  ]);
74
23
  }
75
- const E = /* @__PURE__ */ p(C, [["render", v]]);
24
+ const A = /* @__PURE__ */ u(s, [["render", i]]);
76
25
  export {
77
- y as ADD_COMMENT_EVENT,
78
- l as ADD_REACTION_EVENT,
79
- E as default
26
+ g as ADD_COMMENT_EVENT,
27
+ D as ADD_REACTION_EVENT,
28
+ A as default
80
29
  };