@kiva/kv-components 7.6.3 → 8.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintignore +5 -0
- package/.github/copilot-instructions.md +11 -0
- package/AGENTS.md +184 -0
- package/CLAUDE.md +11 -0
- package/GEMINI.md +11 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +236 -216
- package/dist/utils/Alea.d.ts +9 -0
- package/dist/utils/Alea.js +23 -23
- package/dist/utils/arrayUtils.d.ts +3 -0
- package/dist/utils/arrayUtils.js +1 -1
- package/dist/utils/attrs.d.ts +6 -0
- package/dist/utils/carousels.d.ts +21 -0
- package/dist/utils/comparators.d.ts +3 -0
- package/dist/utils/comparators.js +20 -6
- package/dist/utils/debounce.d.ts +1 -0
- package/dist/utils/debounce.js +4 -4
- package/dist/utils/event.d.ts +1 -0
- package/dist/utils/event.js +7 -0
- package/dist/utils/expander.d.ts +14 -0
- package/dist/utils/imageUtils.d.ts +11 -0
- package/dist/utils/imageUtils.js +12 -12
- package/dist/utils/index.d.ts +21 -0
- package/dist/utils/loanCard.d.ts +35 -0
- package/dist/utils/loanCard.js +2 -2
- package/dist/utils/loanSearch/queryParamUtils.d.ts +1 -0
- package/dist/utils/loanUtils.d.ts +11 -0
- package/dist/utils/loanUtils.js +56 -53
- package/dist/utils/mapUtils.d.ts +5 -0
- package/dist/utils/markMatches.d.ts +1 -0
- package/dist/utils/paramCase.d.ts +1 -0
- package/dist/utils/printing.d.ts +2 -0
- package/dist/utils/scrollLock.d.ts +4 -0
- package/dist/utils/themeUtils.d.ts +12 -0
- package/dist/utils/throttle.d.ts +1 -0
- package/dist/utils/throttle.js +4 -4
- package/dist/utils/touchEvents.d.ts +3 -0
- package/dist/utils/touchEvents.js +9 -9
- package/dist/utils/treemap.d.ts +16 -0
- package/dist/utils/treemap.js +1 -1
- package/dist/vue/KvAccordionItem.js +28 -82
- package/dist/vue/KvAccordionItem.vue.d.ts +107 -0
- package/dist/vue/KvAccordionItem2.js +60 -0
- package/dist/vue/KvActivityRow.js +11 -22
- package/dist/vue/KvActivityRow.vue.d.ts +66 -0
- package/dist/vue/KvActivityRow2.js +16 -0
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +68 -248
- package/dist/vue/KvAtbModal.vue.d.ts +359 -0
- package/dist/vue/KvAtbModal2.js +186 -0
- package/dist/vue/KvBorrowerImage.js +17 -118
- package/dist/vue/KvBorrowerImage.vue.d.ts +62 -0
- package/dist/vue/KvBorrowerImage2.js +106 -0
- package/dist/vue/KvButton.js +20 -164
- package/dist/vue/KvButton.vue.d.ts +94 -0
- package/dist/vue/KvButton2.js +149 -0
- package/dist/vue/KvCardFrame.js +12 -74
- package/dist/vue/KvCardFrame.vue.d.ts +86 -0
- package/dist/vue/KvCardFrame2.js +67 -0
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel.js +55 -192
- package/dist/vue/KvCarousel.vue.d.ts +135 -0
- package/dist/vue/KvCarousel2.js +142 -0
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal.js +31 -131
- package/dist/vue/KvCartModal.vue.d.ts +163 -0
- package/dist/vue/KvCartModal2.js +106 -0
- package/dist/vue/KvCartPill.js +12 -51
- package/dist/vue/KvCartPill.vue.d.ts +52 -0
- package/dist/vue/KvCartPill2.js +45 -0
- package/dist/vue/KvCheckbox.css +1 -1
- package/dist/vue/KvCheckbox.js +30 -126
- package/dist/vue/KvCheckbox.vue.d.ts +90 -0
- package/dist/vue/KvCheckbox2.js +102 -0
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +120 -199
- package/dist/vue/KvCheckoutReceipt.vue.d.ts +164 -0
- package/dist/vue/KvCheckoutReceipt2.js +85 -0
- package/dist/vue/KvChip.js +12 -29
- package/dist/vue/KvChip.vue.d.ts +22 -0
- package/dist/vue/KvChip2.js +22 -0
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +83 -351
- package/dist/vue/KvClassicLoanCard.vue.d.ts +2120 -0
- package/dist/vue/KvClassicLoanCard2.js +281 -0
- package/dist/vue/KvCommentsAdd.css +1 -1
- package/dist/vue/KvCommentsAdd.js +34 -81
- package/dist/vue/KvCommentsAdd.vue.d.ts +296 -0
- package/dist/vue/KvCommentsAdd2.js +57 -0
- package/dist/vue/KvCommentsContainer.js +15 -66
- package/dist/vue/KvCommentsContainer.vue.d.ts +954 -0
- package/dist/vue/KvCommentsContainer2.js +58 -0
- package/dist/vue/KvCommentsHeartButton.css +1 -1
- package/dist/vue/KvCommentsHeartButton.js +12 -51
- package/dist/vue/KvCommentsHeartButton.vue.d.ts +42 -0
- package/dist/vue/KvCommentsHeartButton2.js +44 -0
- package/dist/vue/KvCommentsList.js +9 -51
- package/dist/vue/KvCommentsList.vue.d.ts +619 -0
- package/dist/vue/KvCommentsList2.js +46 -0
- package/dist/vue/KvCommentsListItem.js +62 -186
- package/dist/vue/KvCommentsListItem.vue.d.ts +571 -0
- package/dist/vue/KvCommentsListItem2.js +135 -0
- package/dist/vue/KvCommentsReplyButton.css +1 -1
- package/dist/vue/KvCommentsReplyButton.js +8 -17
- package/dist/vue/KvCommentsReplyButton.vue.d.ts +98 -0
- package/dist/vue/KvCommentsReplyButton2.js +13 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +71 -327
- package/dist/vue/KvCompactLoanCard.vue.d.ts +1272 -0
- package/dist/vue/KvCompactLoanCard2.js +269 -0
- package/dist/vue/KvContentfulImg.js +51 -164
- package/dist/vue/KvContentfulImg.vue.d.ts +107 -0
- package/dist/vue/KvContentfulImg2.js +119 -0
- package/dist/vue/KvCountdownTimer.js +8 -28
- package/dist/vue/KvCountdownTimer.vue.d.ts +15 -0
- package/dist/vue/KvCountdownTimer2.js +26 -0
- package/dist/vue/KvDatePicker.js +21 -101
- package/dist/vue/KvDatePicker.vue.d.ts +58 -0
- package/dist/vue/KvDatePicker2.js +86 -0
- package/dist/vue/KvExpandable.js +9 -56
- package/dist/vue/KvExpandable.vue.d.ts +53 -0
- package/dist/vue/KvExpandable2.js +52 -0
- package/dist/vue/KvExpandableQuestion.js +23 -82
- package/dist/vue/KvExpandableQuestion.vue.d.ts +124 -0
- package/dist/vue/KvExpandableQuestion2.js +65 -0
- package/dist/vue/KvFlag.css +1 -1
- package/dist/vue/KvFlag.js +16 -617
- package/dist/vue/KvFlag.vue.d.ts +66 -0
- package/dist/vue/KvFlag2.js +606 -0
- package/dist/vue/KvGrid.js +7 -18
- package/dist/vue/KvGrid.vue.d.ts +14 -0
- package/dist/vue/KvGrid2.js +15 -0
- package/dist/vue/KvIconBag.js +12 -18
- package/dist/vue/KvIconBag.vue.d.ts +14 -0
- package/dist/vue/KvIconBag2.js +11 -0
- package/dist/vue/KvImpactDashboardHeader.vue.d.ts +17 -0
- package/dist/vue/KvImpactVerticalSelector.js +31 -110
- package/dist/vue/KvImpactVerticalSelector.vue.d.ts +278 -0
- package/dist/vue/KvImpactVerticalSelector2.js +85 -0
- package/dist/vue/KvInlineActivityCard.js +15 -44
- package/dist/vue/KvInlineActivityCard.vue.d.ts +71 -0
- package/dist/vue/KvInlineActivityCard2.js +35 -0
- package/dist/vue/KvInlineActivityFeed.css +1 -1
- package/dist/vue/KvInlineActivityFeed.js +11 -23
- package/dist/vue/KvInlineActivityFeed.vue.d.ts +85 -0
- package/dist/vue/KvInlineActivityFeed2.js +17 -0
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +111 -309
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +617 -0
- package/dist/vue/KvIntroductionLoanCard2.js +209 -0
- package/dist/vue/KvLendAmountButton.js +9 -53
- package/dist/vue/KvLendAmountButton.vue.d.ts +140 -0
- package/dist/vue/KvLendAmountButton2.js +48 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +150 -530
- package/dist/vue/KvLendCta.vue.d.ts +583 -0
- package/dist/vue/KvLendCta2.js +387 -0
- package/dist/vue/KvLightbox.js +37 -148
- package/dist/vue/KvLightbox.vue.d.ts +77 -0
- package/dist/vue/KvLightbox2.js +117 -0
- package/dist/vue/KvLineGraph.js +25 -58
- package/dist/vue/KvLineGraph.vue.d.ts +35 -0
- package/dist/vue/KvLineGraph2.js +39 -0
- package/dist/vue/KvLoadingPlaceholder.vue.d.ts +2 -0
- package/dist/vue/KvLoadingSpinner.js +9 -34
- package/dist/vue/KvLoadingSpinner.vue.d.ts +27 -0
- package/dist/vue/KvLoadingSpinner2.js +29 -0
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +37 -179
- package/dist/vue/KvLoanActivities.vue.d.ts +853 -0
- package/dist/vue/KvLoanActivities2.js +151 -0
- package/dist/vue/KvLoanBookmark.js +14 -40
- package/dist/vue/KvLoanBookmark.vue.d.ts +32 -0
- package/dist/vue/KvLoanBookmark2.js +32 -0
- package/dist/vue/KvLoanCallouts.css +1 -1
- package/dist/vue/KvLoanCallouts.js +10 -17
- package/dist/vue/KvLoanCallouts.vue.d.ts +18 -0
- package/dist/vue/KvLoanCallouts2.js +12 -0
- package/dist/vue/KvLoanInfoCard.js +20 -19
- package/dist/vue/KvLoanProgressGroup.css +1 -1
- package/dist/vue/KvLoanProgressGroup.js +18 -57
- package/dist/vue/KvLoanProgressGroup.vue.d.ts +108 -0
- package/dist/vue/KvLoanProgressGroup2.js +44 -0
- package/dist/vue/KvLoanTag.js +15 -103
- package/dist/vue/KvLoanTag.vue.d.ts +46 -0
- package/dist/vue/KvLoanTag2.js +94 -0
- package/dist/vue/KvLoanTeamPick.vue.d.ts +2 -0
- package/dist/vue/KvLoanUse.js +12 -100
- package/dist/vue/KvLoanUse.vue.d.ts +120 -0
- package/dist/vue/KvLoanUse2.js +95 -0
- package/dist/vue/KvLogo.vue.d.ts +2 -0
- package/dist/vue/KvMap.js +13 -381
- package/dist/vue/KvMap.vue.d.ts +213 -0
- package/dist/vue/KvMap2.js +376 -0
- package/dist/vue/KvMaterialIcon.js +10 -20
- package/dist/vue/KvMaterialIcon.vue.d.ts +14 -0
- package/dist/vue/KvMaterialIcon2.js +15 -0
- package/dist/vue/KvPageContainer.js +9 -8
- package/dist/vue/KvPageContainer.vue.d.ts +2 -0
- package/dist/vue/KvPageContainer2.js +4 -0
- package/dist/vue/KvPagination.js +38 -138
- package/dist/vue/KvPagination.vue.d.ts +107 -0
- package/dist/vue/KvPagination2.js +105 -0
- package/dist/vue/KvPieChart.css +1 -1
- package/dist/vue/KvPieChart.js +49 -128
- package/dist/vue/KvPieChart.vue.d.ts +47 -0
- package/dist/vue/KvPieChart2.js +85 -0
- package/dist/vue/KvPill.js +9 -19
- package/dist/vue/KvPill.vue.d.ts +23 -0
- package/dist/vue/KvPill2.js +15 -0
- package/dist/vue/KvPopper.js +14 -122
- package/dist/vue/KvPopper.vue.d.ts +80 -0
- package/dist/vue/KvPopper2.js +113 -0
- package/dist/vue/KvProgressBar.js +17 -112
- package/dist/vue/KvProgressBar.vue.d.ts +70 -0
- package/dist/vue/KvProgressBar2.js +101 -0
- package/dist/vue/KvPulsingDot.css +1 -1
- package/dist/vue/KvPulsingDot.js +11 -25
- package/dist/vue/KvPulsingDot.vue.d.ts +23 -0
- package/dist/vue/KvPulsingDot2.js +19 -0
- package/dist/vue/KvRadio.js +23 -106
- package/dist/vue/KvRadio.vue.d.ts +62 -0
- package/dist/vue/KvRadio2.js +89 -0
- package/dist/vue/KvSecondaryNav.css +1 -1
- package/dist/vue/KvSecondaryNav.js +46 -122
- package/dist/vue/KvSecondaryNav.vue.d.ts +117 -0
- package/dist/vue/KvSecondaryNav2.js +82 -0
- package/dist/vue/KvSelect.css +1 -1
- package/dist/vue/KvSelect.js +18 -78
- package/dist/vue/KvSelect.vue.d.ts +58 -0
- package/dist/vue/KvSelect2.js +66 -0
- package/dist/vue/KvSideSheet.js +44 -262
- package/dist/vue/KvSideSheet.vue.d.ts +136 -0
- package/dist/vue/KvSideSheet2.js +224 -0
- package/dist/vue/KvSwitch.js +23 -76
- package/dist/vue/KvSwitch.vue.d.ts +34 -0
- package/dist/vue/KvSwitch2.js +59 -0
- package/dist/vue/KvTab.js +15 -57
- package/dist/vue/KvTab.vue.d.ts +34 -0
- package/dist/vue/KvTab2.js +48 -0
- package/dist/vue/KvTabPanel.js +14 -36
- package/dist/vue/KvTabPanel.vue.d.ts +14 -0
- package/dist/vue/KvTabPanel2.js +28 -0
- package/dist/vue/KvTabs.js +21 -75
- package/dist/vue/KvTabs.vue.d.ts +22 -0
- package/dist/vue/KvTabs2.js +60 -0
- package/dist/vue/KvTextInput.js +28 -148
- package/dist/vue/KvTextInput.vue.d.ts +105 -0
- package/dist/vue/KvTextInput2.js +126 -0
- package/dist/vue/KvTextLink.js +13 -76
- package/dist/vue/KvTextLink.vue.d.ts +64 -0
- package/dist/vue/KvTextLink2.js +68 -0
- package/dist/vue/KvThemeProvider.js +8 -59
- package/dist/vue/KvThemeProvider.vue.d.ts +23 -0
- package/dist/vue/KvThemeProvider2.js +55 -0
- package/dist/vue/KvToast.js +32 -69
- package/dist/vue/KvToast.vue.d.ts +31 -0
- package/dist/vue/KvToast2.js +43 -0
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +27 -123
- package/dist/vue/KvTooltip.vue.d.ts +2 -0
- package/dist/vue/KvTooltip2.js +103 -0
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvTreeMapChart.js +28 -156
- package/dist/vue/KvTreeMapChart.vue.d.ts +60 -0
- package/dist/vue/KvTreeMapChart2.js +133 -0
- package/dist/vue/KvUserAvatar.js +28 -110
- package/dist/vue/KvUserAvatar.vue.d.ts +55 -0
- package/dist/vue/KvUserAvatar2.js +88 -0
- package/dist/vue/KvUtilityMenu.js +19 -95
- package/dist/vue/KvUtilityMenu.vue.d.ts +104 -0
- package/dist/vue/KvUtilityMenu2.js +81 -0
- package/dist/vue/KvVerticalCarousel.js +40 -137
- package/dist/vue/KvVerticalCarousel.vue.d.ts +90 -0
- package/dist/vue/KvVerticalCarousel2.js +103 -0
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +31 -88
- package/dist/vue/KvVotingCard.vue.d.ts +249 -0
- package/dist/vue/KvVotingCard2.js +63 -0
- package/dist/vue/KvVotingCardV2.js +35 -90
- package/dist/vue/KvVotingCardV2.vue.d.ts +308 -0
- package/dist/vue/KvVotingCardV22.js +61 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +66 -274
- package/dist/vue/KvWideLoanCard.vue.d.ts +1191 -0
- package/dist/vue/KvWideLoanCard2.js +220 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +34 -38
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +20 -83
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.vue.d.ts +91 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink2.js +69 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +77 -248
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.vue.d.ts +1071 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +178 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +8 -12
- package/dist/vue/KvWwwHeader/KvHeaderLogo.vue.d.ts +4 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo2.js +9 -0
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.vue.d.ts +17 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +37 -91
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.vue.d.ts +162 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +36 -58
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.vue.d.ts +59 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +27 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +20 -24
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +9 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +105 -181
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.vue.d.ts +319 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +82 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +93 -173
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.vue.d.ts +166 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +86 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +17 -157
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.vue.d.ts +506 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +145 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +11 -18
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +12 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +10 -16
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.vue.d.ts +20 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +11 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +35 -148
- package/dist/vue/KvWwwHeader.vue.d.ts +4430 -0
- package/dist/vue/KvWwwHeader2.js +119 -0
- package/dist/vue/index.d.ts +86 -0
- package/package.json +35 -33
- package/tsconfig.json +32 -0
- package/vite.config.ts +84 -0
package/dist/vue/KvTextLink.js
CHANGED
|
@@ -1,93 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
},
|
|
8
|
-
props: {
|
|
9
|
-
/**
|
|
10
|
-
* Use if linking to a Vue route
|
|
11
|
-
* */
|
|
12
|
-
to: {
|
|
13
|
-
type: [String, Object],
|
|
14
|
-
default: null
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* Use if linking to an external link or old-stack page
|
|
18
|
-
* */
|
|
19
|
-
href: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: null
|
|
22
|
-
},
|
|
23
|
-
/**
|
|
24
|
-
* SVG path data passed in from an imported @mdi/js module.
|
|
25
|
-
* ```
|
|
26
|
-
* import { mdiArrowRight } from '@mdi/js';
|
|
27
|
-
* data() { return { mdiArrowRight } };
|
|
28
|
-
* <kv-text-link :icon="mdiArrowRight" />`
|
|
29
|
-
* ```
|
|
30
|
-
* */
|
|
31
|
-
icon: {
|
|
32
|
-
type: String,
|
|
33
|
-
default: ""
|
|
34
|
-
},
|
|
35
|
-
/**
|
|
36
|
-
* State of the button
|
|
37
|
-
* @values '', disabled
|
|
38
|
-
* */
|
|
39
|
-
state: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: "",
|
|
42
|
-
validator(n) {
|
|
43
|
-
return ["", "disabled"].includes(n);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
emits: [
|
|
48
|
-
"click"
|
|
49
|
-
],
|
|
50
|
-
setup(n, { emit: i }) {
|
|
51
|
-
const {
|
|
52
|
-
to: t,
|
|
53
|
-
href: e
|
|
54
|
-
} = f(n), o = d(null), r = m(() => t.value ? "router-link" : e.value ? "a" : "button"), a = (c) => {
|
|
55
|
-
r.value === "button" && (c.preventDefault(), i("click", c));
|
|
56
|
-
}, l = () => {
|
|
57
|
-
e.value && (o.value.href = e.value);
|
|
58
|
-
};
|
|
59
|
-
return w(e, () => l()), p(() => l()), {
|
|
60
|
-
tag: r,
|
|
61
|
-
onClick: a,
|
|
62
|
-
buttonRef: o,
|
|
63
|
-
setHref: l
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
function S(n, i, t, e, o, r) {
|
|
68
|
-
const a = v("kv-material-icon");
|
|
69
|
-
return s(), u(k(e.tag), {
|
|
1
|
+
import r from "./KvTextLink2.js";
|
|
2
|
+
import { resolveComponent as l, openBlock as o, createBlock as n, resolveDynamicComponent as c, normalizeClass as s, withCtx as m, renderSlot as w, createCommentVNode as d } from "vue";
|
|
3
|
+
import f from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
function u(a, _, t, e, k, x) {
|
|
5
|
+
const i = l("kv-material-icon");
|
|
6
|
+
return o(), n(c(e.tag), {
|
|
70
7
|
ref: "buttonRef",
|
|
71
8
|
to: t.to,
|
|
72
9
|
disabled: t.state === "disabled",
|
|
73
|
-
class:
|
|
10
|
+
class: s(["tw-text-h4 tw-text-link", {
|
|
74
11
|
"tw-opacity-low tw-pointer-events-none": t.state === "disabled",
|
|
75
12
|
"tw-group tw-inline-flex tw-items-center tw-gap-x-0.5": t.icon
|
|
76
13
|
}]),
|
|
77
14
|
onClick: e.onClick
|
|
78
15
|
}, {
|
|
79
|
-
default:
|
|
80
|
-
|
|
81
|
-
t.icon ? (
|
|
16
|
+
default: m(() => [
|
|
17
|
+
w(a.$slots, "default"),
|
|
18
|
+
t.icon ? (o(), n(i, {
|
|
82
19
|
key: 0,
|
|
83
20
|
icon: t.icon,
|
|
84
21
|
class: "tw-w-1.5 tw-h-1.5 md:tw-w-2 md:tw-h-2 tw-transition-transform tw-ease-in-out tw-duration-200 group-hover:tw-translate-x-[0.125rem] group-focus:tw-translate-x-[0.125rem]"
|
|
85
|
-
}, null, 8, ["icon"])) :
|
|
22
|
+
}, null, 8, ["icon"])) : d("", !0)
|
|
86
23
|
]),
|
|
87
24
|
_: 3
|
|
88
25
|
}, 8, ["to", "disabled", "class", "onClick"]);
|
|
89
26
|
}
|
|
90
|
-
const
|
|
27
|
+
const b = /* @__PURE__ */ f(r, [["render", u]]);
|
|
91
28
|
export {
|
|
92
|
-
|
|
29
|
+
b as default
|
|
93
30
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
to: {
|
|
3
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
href: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
state: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
validator(value: string): boolean;
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
tag: import('vue').ComputedRef<"button" | "router-link" | "a">;
|
|
21
|
+
onClick: (event: any) => void;
|
|
22
|
+
buttonRef: import('vue').Ref<any, any>;
|
|
23
|
+
setHref: () => void;
|
|
24
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "click"[], "click", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
25
|
+
to: {
|
|
26
|
+
type: (StringConstructor | ObjectConstructor)[];
|
|
27
|
+
default: any;
|
|
28
|
+
};
|
|
29
|
+
href: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: any;
|
|
32
|
+
};
|
|
33
|
+
icon: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
state: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
validator(value: string): boolean;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{
|
|
43
|
+
onClick?: (...args: any[]) => any;
|
|
44
|
+
}>, {
|
|
45
|
+
to: string | Record<string, any>;
|
|
46
|
+
icon: string;
|
|
47
|
+
href: string;
|
|
48
|
+
state: string;
|
|
49
|
+
}, {}, {
|
|
50
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
51
|
+
icon: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: string;
|
|
54
|
+
};
|
|
55
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
+
icon: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {
|
|
61
|
+
icon: string;
|
|
62
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
export default _default;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { toRefs as f, ref as c, computed as s, watch as p, onMounted as d } from "vue";
|
|
2
|
+
import m from "./KvMaterialIcon.js";
|
|
3
|
+
const g = {
|
|
4
|
+
components: {
|
|
5
|
+
KvMaterialIcon: m
|
|
6
|
+
},
|
|
7
|
+
props: {
|
|
8
|
+
/**
|
|
9
|
+
* Use if linking to a Vue route
|
|
10
|
+
* */
|
|
11
|
+
to: {
|
|
12
|
+
type: [String, Object],
|
|
13
|
+
default: null
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* Use if linking to an external link or old-stack page
|
|
17
|
+
* */
|
|
18
|
+
href: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: null
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* SVG path data passed in from an imported @mdi/js module.
|
|
24
|
+
* ```
|
|
25
|
+
* import { mdiArrowRight } from '@mdi/js';
|
|
26
|
+
* data() { return { mdiArrowRight } };
|
|
27
|
+
* <kv-text-link :icon="mdiArrowRight" />`
|
|
28
|
+
* ```
|
|
29
|
+
* */
|
|
30
|
+
icon: {
|
|
31
|
+
type: String,
|
|
32
|
+
default: ""
|
|
33
|
+
},
|
|
34
|
+
/**
|
|
35
|
+
* State of the button
|
|
36
|
+
* @values '', disabled
|
|
37
|
+
* */
|
|
38
|
+
state: {
|
|
39
|
+
type: String,
|
|
40
|
+
default: "",
|
|
41
|
+
validator(e) {
|
|
42
|
+
return ["", "disabled"].includes(e);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
emits: [
|
|
47
|
+
"click"
|
|
48
|
+
],
|
|
49
|
+
setup(e, { emit: l }) {
|
|
50
|
+
const {
|
|
51
|
+
to: a,
|
|
52
|
+
href: t
|
|
53
|
+
} = f(e), r = c(null), o = s(() => a.value ? "router-link" : t.value ? "a" : "button"), i = (u) => {
|
|
54
|
+
o.value === "button" && (u.preventDefault(), l("click", u));
|
|
55
|
+
}, n = () => {
|
|
56
|
+
t.value && (r.value.href = t.value);
|
|
57
|
+
};
|
|
58
|
+
return p(t, () => n()), d(() => n()), {
|
|
59
|
+
tag: o,
|
|
60
|
+
onClick: i,
|
|
61
|
+
buttonRef: r,
|
|
62
|
+
setHref: n
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
export {
|
|
67
|
+
g as default
|
|
68
|
+
};
|
|
@@ -1,72 +1,21 @@
|
|
|
1
|
-
import
|
|
1
|
+
import r from "./KvThemeProvider2.js";
|
|
2
|
+
import { openBlock as o, createBlock as a, resolveDynamicComponent as m, normalizeStyle as n, withCtx as l, renderSlot as c } from "vue";
|
|
2
3
|
import "./KvThemeProvider.css";
|
|
3
4
|
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type: String,
|
|
8
|
-
default: "div"
|
|
9
|
-
},
|
|
10
|
-
/**
|
|
11
|
-
* An object containing CSS custom properties set to RGB values.
|
|
12
|
-
*
|
|
13
|
-
* For custom theming, see all available custom properties set to white in RGB, below
|
|
14
|
-
* @usage
|
|
15
|
-
* ```
|
|
16
|
-
* {
|
|
17
|
-
* --text-primary: '255, 255, 255',
|
|
18
|
-
* --text-primary-inverse: '255, 255, 255',
|
|
19
|
-
* --text-secondary: '255, 255, 255',
|
|
20
|
-
* --text-tertiary: '255, 255, 255',
|
|
21
|
-
* --text-action: '255, 255, 255',
|
|
22
|
-
* --text-action-highlight: '255, 255, 255',
|
|
23
|
-
* --text-danger: '255, 255, 255',
|
|
24
|
-
* --text-danger-highlight: '255, 255, 255',
|
|
25
|
-
*
|
|
26
|
-
* --bg-primary: '255, 255, 255',
|
|
27
|
-
* --bg-primary-inverse: '255, 255, 255',
|
|
28
|
-
* --bg-secondary: '255, 255, 255',
|
|
29
|
-
* --bg-tertiary: '255, 255, 255',
|
|
30
|
-
* --bg-action: '255, 255, 255',
|
|
31
|
-
* --bg-action-highlight: '255, 255, 255',
|
|
32
|
-
* --bg-danger: '255, 255, 255',
|
|
33
|
-
* --bg-danger-highlight: '255, 255, 255',
|
|
34
|
-
* --bg-caution: '255, 255, 255',
|
|
35
|
-
*
|
|
36
|
-
* --border-primary: '255, 255, 255',
|
|
37
|
-
* --border-primary-inverse: '255, 255, 255',
|
|
38
|
-
* --border-secondary: '255, 255, 255',
|
|
39
|
-
* --border-tertiary: '255, 255, 255',
|
|
40
|
-
* --border-action: '255, 255, 255',
|
|
41
|
-
* --border-action-highlight: '255, 255, 255',
|
|
42
|
-
* --border-danger: '255, 255, 255',
|
|
43
|
-
* --border-danger-highlight: '255, 255, 255',
|
|
44
|
-
*
|
|
45
|
-
* --heading-underline-primary: url('/kvui/heading-underline.svg#FFFFFF'),
|
|
46
|
-
* }
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* */
|
|
50
|
-
theme: {
|
|
51
|
-
type: Object,
|
|
52
|
-
default: null
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
function s(t, p, e, d, f, u) {
|
|
57
|
-
return r(), o(a(e.tag), {
|
|
58
|
-
style: l({
|
|
5
|
+
function s(t, f, e, p, d, _) {
|
|
6
|
+
return o(), a(m(e.tag), {
|
|
7
|
+
style: n({
|
|
59
8
|
...e.theme,
|
|
60
9
|
color: "rgb(var(--text-primary))"
|
|
61
10
|
})
|
|
62
11
|
}, {
|
|
63
|
-
default:
|
|
12
|
+
default: l(() => [
|
|
64
13
|
c(t.$slots, "default")
|
|
65
14
|
]),
|
|
66
15
|
_: 3
|
|
67
16
|
}, 8, ["style"]);
|
|
68
17
|
}
|
|
69
|
-
const
|
|
18
|
+
const x = /* @__PURE__ */ i(r, [["render", s]]);
|
|
70
19
|
export {
|
|
71
|
-
|
|
20
|
+
x as default
|
|
72
21
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
tag: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
theme: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: any;
|
|
9
|
+
};
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
tag: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
theme: {
|
|
16
|
+
type: ObjectConstructor;
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
tag: string;
|
|
21
|
+
theme: Record<string, any>;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
props: {
|
|
3
|
+
tag: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: "div"
|
|
6
|
+
},
|
|
7
|
+
/**
|
|
8
|
+
* An object containing CSS custom properties set to RGB values.
|
|
9
|
+
*
|
|
10
|
+
* For custom theming, see all available custom properties set to white in RGB, below
|
|
11
|
+
* @usage
|
|
12
|
+
* ```
|
|
13
|
+
* {
|
|
14
|
+
* --text-primary: '255, 255, 255',
|
|
15
|
+
* --text-primary-inverse: '255, 255, 255',
|
|
16
|
+
* --text-secondary: '255, 255, 255',
|
|
17
|
+
* --text-tertiary: '255, 255, 255',
|
|
18
|
+
* --text-action: '255, 255, 255',
|
|
19
|
+
* --text-action-highlight: '255, 255, 255',
|
|
20
|
+
* --text-danger: '255, 255, 255',
|
|
21
|
+
* --text-danger-highlight: '255, 255, 255',
|
|
22
|
+
*
|
|
23
|
+
* --bg-primary: '255, 255, 255',
|
|
24
|
+
* --bg-primary-inverse: '255, 255, 255',
|
|
25
|
+
* --bg-secondary: '255, 255, 255',
|
|
26
|
+
* --bg-tertiary: '255, 255, 255',
|
|
27
|
+
* --bg-action: '255, 255, 255',
|
|
28
|
+
* --bg-action-highlight: '255, 255, 255',
|
|
29
|
+
* --bg-danger: '255, 255, 255',
|
|
30
|
+
* --bg-danger-highlight: '255, 255, 255',
|
|
31
|
+
* --bg-caution: '255, 255, 255',
|
|
32
|
+
*
|
|
33
|
+
* --border-primary: '255, 255, 255',
|
|
34
|
+
* --border-primary-inverse: '255, 255, 255',
|
|
35
|
+
* --border-secondary: '255, 255, 255',
|
|
36
|
+
* --border-tertiary: '255, 255, 255',
|
|
37
|
+
* --border-action: '255, 255, 255',
|
|
38
|
+
* --border-action-highlight: '255, 255, 255',
|
|
39
|
+
* --border-danger: '255, 255, 255',
|
|
40
|
+
* --border-danger-highlight: '255, 255, 255',
|
|
41
|
+
*
|
|
42
|
+
* --heading-underline-primary: url('/kvui/heading-underline.svg#FFFFFF'),
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* */
|
|
47
|
+
theme: {
|
|
48
|
+
type: Object,
|
|
49
|
+
default: null
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
export {
|
|
54
|
+
t as default
|
|
55
|
+
};
|
package/dist/vue/KvToast.js
CHANGED
|
@@ -1,65 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import K from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const L = {
|
|
7
|
-
components: {
|
|
8
|
-
KvMaterialIcon: N,
|
|
9
|
-
KvPageContainer: I
|
|
10
|
-
},
|
|
11
|
-
emits: [
|
|
12
|
-
"close"
|
|
13
|
-
],
|
|
14
|
-
setup(g, { emit: e, slots: r }) {
|
|
15
|
-
const t = i(!1), c = i(""), s = i("confirmation"), o = i(!1), a = i(null), d = u(() => s.value === "warning" ? S : s.value === "error" ? V : A), h = u(() => {
|
|
16
|
-
const w = document.createElement("span");
|
|
17
|
-
w.innerHTML = c.value;
|
|
18
|
-
const k = 100 * w.innerText.length;
|
|
19
|
-
return Math.max(k, 5e3);
|
|
20
|
-
}), T = u(() => !!(r != null && r.toastContent)), _ = () => {
|
|
21
|
-
t.value = !1, clearTimeout(a.value), e("close");
|
|
22
|
-
};
|
|
23
|
-
return {
|
|
24
|
-
mdiClose: B,
|
|
25
|
-
isVisible: t,
|
|
26
|
-
message: c,
|
|
27
|
-
messageType: s,
|
|
28
|
-
persist: o,
|
|
29
|
-
timeout: a,
|
|
30
|
-
icon: d,
|
|
31
|
-
msToDisplayToast: h,
|
|
32
|
-
close: _,
|
|
33
|
-
show: (f, v, w, y) => {
|
|
34
|
-
t.value = !0, c.value = typeof f == "string" ? f : "", s.value = typeof v == "string" ? v : "", o.value = !!w, o.value || (a.value = setTimeout(() => {
|
|
35
|
-
_();
|
|
36
|
-
}, y ?? h.value));
|
|
37
|
-
},
|
|
38
|
-
hasToastContentSlot: T
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}, P = {
|
|
1
|
+
import d from "./KvToast2.js";
|
|
2
|
+
import { resolveComponent as l, openBlock as n, createElementBlock as s, createVNode as i, Transition as f, withCtx as r, createElementVNode as o, normalizeClass as g, createBlock as v, renderSlot as y, createCommentVNode as p } from "vue";
|
|
3
|
+
import _ from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const x = {
|
|
42
5
|
role: "alert",
|
|
43
6
|
"aria-live": "polite"
|
|
44
|
-
},
|
|
7
|
+
}, h = {
|
|
45
8
|
key: 0,
|
|
46
9
|
"data-test": "tip-message",
|
|
47
10
|
class: "tw-mx-2.5"
|
|
48
|
-
},
|
|
11
|
+
}, k = { class: "tw-rounded tw-overflow-hidden tw-flex tw-bg-secondary tw-mx-auto tw-w-full md:tw-w-max md:tw-max-w-full md:tw-min-w-1/2 tw-shadow" }, C = {
|
|
49
12
|
key: 0,
|
|
50
13
|
width: "16",
|
|
51
14
|
height: "24",
|
|
52
15
|
viewBox: "0 0 16 24",
|
|
53
16
|
fill: "none",
|
|
54
17
|
xmlns: "http://www.w3.org/2000/svg"
|
|
55
|
-
},
|
|
18
|
+
}, u = {
|
|
56
19
|
ref: "messageRef",
|
|
57
20
|
class: "tw-flex-1 tw-px-1 tw-py-2 tw-flex"
|
|
58
|
-
},
|
|
59
|
-
function
|
|
60
|
-
const
|
|
61
|
-
return
|
|
62
|
-
|
|
21
|
+
}, T = ["innerHTML"];
|
|
22
|
+
function b(w, e, H, t, V, M) {
|
|
23
|
+
const a = l("kv-material-icon"), c = l("kv-page-container");
|
|
24
|
+
return n(), s("div", x, [
|
|
25
|
+
i(f, {
|
|
63
26
|
"enter-active-class": "tw-transition-opacity tw-duration-300",
|
|
64
27
|
"leave-active-class": "tw-transition-opacity tw-duration-300",
|
|
65
28
|
"enter-class": "tw-opacity-0",
|
|
@@ -67,57 +30,57 @@ function q(g, e, r, t, c, s) {
|
|
|
67
30
|
"leave-class": "tw-opacity-full",
|
|
68
31
|
"leave-to-class": "tw-opacity-0"
|
|
69
32
|
}, {
|
|
70
|
-
default:
|
|
71
|
-
t.isVisible ? (
|
|
72
|
-
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
class:
|
|
33
|
+
default: r(() => [
|
|
34
|
+
t.isVisible ? (n(), s("div", h, [
|
|
35
|
+
i(c, null, {
|
|
36
|
+
default: r(() => [
|
|
37
|
+
o("div", k, [
|
|
38
|
+
o("div", {
|
|
39
|
+
class: g(["tw-w-5 tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center", {
|
|
77
40
|
"tw-bg-brand tw-text-white": t.messageType === "" || t.messageType === "confirmation" || t.messageType === "kiva-logo",
|
|
78
41
|
"tw-bg-danger tw-text-primary-inverse": t.messageType === "error",
|
|
79
42
|
"tw-bg-caution tw-text-primary": t.messageType === "warning"
|
|
80
43
|
}])
|
|
81
44
|
}, [
|
|
82
|
-
t.messageType === "kiva-logo" ? (
|
|
83
|
-
|
|
45
|
+
t.messageType === "kiva-logo" ? (n(), s("svg", C, e[1] || (e[1] = [
|
|
46
|
+
o("path", {
|
|
84
47
|
d: "M4.78202 0H0V23.141H4.78202V0ZM6.00533 14.6274C13.6788 14.6274 15.4582 8.05649 15.4582 6.91372H14.7909C7.11743 6.91372 5.33807 13.4846 5.33807 14.6274H6.00533ZM5.33807 15.1988C5.33807 16.3987 6.67259 23.0838 14.9021 23.0838H15.5694C15.5694 21.8839 14.2349 15.1988 6.00533 15.1988H5.33807Z",
|
|
85
48
|
fill: "white"
|
|
86
49
|
}, null, -1)
|
|
87
|
-
]))) : (
|
|
50
|
+
]))) : (n(), v(a, {
|
|
88
51
|
key: 1,
|
|
89
52
|
class: "tw-w-2.5 tw-h-2.5",
|
|
90
53
|
icon: t.icon
|
|
91
54
|
}, null, 8, ["icon"]))
|
|
92
55
|
], 2),
|
|
93
|
-
|
|
94
|
-
t.hasToastContentSlot ?
|
|
56
|
+
o("div", u, [
|
|
57
|
+
t.hasToastContentSlot ? y(w.$slots, "toastContent", { key: 0 }) : (n(), s("p", {
|
|
95
58
|
key: 1,
|
|
96
59
|
class: "tw-inline-block tw-m-auto",
|
|
97
60
|
innerHTML: t.message
|
|
98
|
-
}, null, 8,
|
|
61
|
+
}, null, 8, T))
|
|
99
62
|
], 512),
|
|
100
|
-
|
|
63
|
+
o("button", {
|
|
101
64
|
class: "tw-w-5 tw-flex-shrink-0 tw-flex tw-items-center tw-justify-center tw-bg-secondary hover:tw-text-action-highlight",
|
|
102
|
-
onClick: e[0] || (e[0] = (...
|
|
65
|
+
onClick: e[0] || (e[0] = (...m) => t.close && t.close(...m))
|
|
103
66
|
}, [
|
|
104
|
-
|
|
67
|
+
i(a, {
|
|
105
68
|
class: "tw-w-2.5 tw-h-2.5",
|
|
106
69
|
icon: t.mdiClose
|
|
107
70
|
}, null, 8, ["icon"]),
|
|
108
|
-
e[2] || (e[2] =
|
|
71
|
+
e[2] || (e[2] = o("span", { class: "tw-sr-only" }, "Close notification", -1))
|
|
109
72
|
])
|
|
110
73
|
])
|
|
111
74
|
]),
|
|
112
75
|
_: 3
|
|
113
76
|
})
|
|
114
|
-
])) :
|
|
77
|
+
])) : p("", !0)
|
|
115
78
|
]),
|
|
116
79
|
_: 3
|
|
117
80
|
})
|
|
118
81
|
]);
|
|
119
82
|
}
|
|
120
|
-
const
|
|
83
|
+
const j = /* @__PURE__ */ _(d, [["render", b]]);
|
|
121
84
|
export {
|
|
122
|
-
|
|
85
|
+
j as default
|
|
123
86
|
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
mdiClose: string;
|
|
3
|
+
isVisible: import('vue').Ref<boolean, boolean>;
|
|
4
|
+
message: import('vue').Ref<string, string>;
|
|
5
|
+
messageType: import('vue').Ref<string, string>;
|
|
6
|
+
persist: import('vue').Ref<boolean, boolean>;
|
|
7
|
+
timeout: import('vue').Ref<any, any>;
|
|
8
|
+
icon: import('vue').ComputedRef<string>;
|
|
9
|
+
msToDisplayToast: import('vue').ComputedRef<number>;
|
|
10
|
+
close: () => void;
|
|
11
|
+
show: (messageInput: any, type: any, persistInput: any, hideDelay: any) => void;
|
|
12
|
+
hasToastContentSlot: import('vue').ComputedRef<boolean>;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "close"[], "close", import('vue').PublicProps, Readonly<{}> & Readonly<{
|
|
14
|
+
onClose?: (...args: any[]) => any;
|
|
15
|
+
}>, {}, {}, {
|
|
16
|
+
KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
17
|
+
icon: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
+
icon: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>> & Readonly<{}>, {
|
|
27
|
+
icon: string;
|
|
28
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
29
|
+
KvPageContainer: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ref as e, computed as u } from "vue";
|
|
2
|
+
import { mdiAlert as h, mdiAlertCircle as _, mdiCheckCircle as d, mdiClose as g } from "@mdi/js";
|
|
3
|
+
import A from "./KvMaterialIcon.js";
|
|
4
|
+
import R from "./KvPageContainer.js";
|
|
5
|
+
const H = {
|
|
6
|
+
components: {
|
|
7
|
+
KvMaterialIcon: A,
|
|
8
|
+
KvPageContainer: R
|
|
9
|
+
},
|
|
10
|
+
emits: [
|
|
11
|
+
"close"
|
|
12
|
+
],
|
|
13
|
+
setup(E, { emit: v, slots: n }) {
|
|
14
|
+
const r = e(!1), a = e(""), t = e("confirmation"), s = e(!1), c = e(null), M = u(() => t.value === "warning" ? h : t.value === "error" ? _ : d), m = u(() => {
|
|
15
|
+
const o = document.createElement("span");
|
|
16
|
+
o.innerHTML = a.value;
|
|
17
|
+
const T = 100 * o.innerText.length;
|
|
18
|
+
return Math.max(T, 5e3);
|
|
19
|
+
}), C = u(() => !!(n != null && n.toastContent) || !1), f = () => {
|
|
20
|
+
r.value = !1, clearTimeout(c.value), v("close");
|
|
21
|
+
};
|
|
22
|
+
return {
|
|
23
|
+
mdiClose: g,
|
|
24
|
+
isVisible: r,
|
|
25
|
+
message: a,
|
|
26
|
+
messageType: t,
|
|
27
|
+
persist: s,
|
|
28
|
+
timeout: c,
|
|
29
|
+
icon: M,
|
|
30
|
+
msToDisplayToast: m,
|
|
31
|
+
close: f,
|
|
32
|
+
show: (i, l, o, p) => {
|
|
33
|
+
r.value = !0, a.value = typeof i == "string" ? i : "", t.value = typeof l == "string" ? l : "", s.value = !!o, s.value || (c.value = setTimeout(() => {
|
|
34
|
+
f();
|
|
35
|
+
}, p ?? m.value));
|
|
36
|
+
},
|
|
37
|
+
hasToastContentSlot: C
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
export {
|
|
42
|
+
H as default
|
|
43
|
+
};
|
package/dist/vue/KvTooltip.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tooltip-pane[data-v-
|
|
1
|
+
.tooltip-pane[data-v-7ec95952],.tooltip-arrow[data-v-7ec95952]{box-shadow:0 4px 12px #00000014}.tooltip-arrow[data-v-7ec95952]{margin:.5rem;border-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}.tooltip-pane[x-placement^=top][data-v-7ec95952]{margin-bottom:.5rem}.tooltip-pane[x-placement^=top] .tooltip-arrow[data-v-7ec95952]{border-width:8px 8px 0 8px;border-left-color:transparent;border-right-color:transparent;border-bottom-color:transparent;left:calc(50% - 8px);bottom:-.5rem;margin-top:0;margin-bottom:0}.tooltip-pane[x-placement^=bottom][data-v-7ec95952]{margin-top:.5rem}.tooltip-pane[x-placement^=bottom] .tooltip-arrow[data-v-7ec95952]{border-width:0 8px 8px 8px;border-left-color:transparent;border-right-color:transparent;border-top-color:transparent;left:calc(50% - 8px);top:-.5rem;margin-bottom:0;margin-top:0}.tooltip-pane[x-placement^=right][data-v-7ec95952]{margin-left:.5rem}.tooltip-pane[x-placement^=right] .tooltip-arrow[data-v-7ec95952]{border-width:8px 8px 8px 0;border-left-color:transparent;border-top-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);left:-.5rem;margin-left:0;margin-right:0}.tooltip-pane[x-placement^=left][data-v-7ec95952]{margin-right:.5rem}.tooltip-pane[x-placement^=left] .tooltip-arrow[data-v-7ec95952]{border-width:8px 0 8px 8px;border-top-color:transparent;border-right-color:transparent;border-bottom-color:transparent;top:calc(50% - 8px);right:-.5rem;margin-left:0;margin-right:0}
|