@coreui/vue-pro 4.8.0 → 4.8.2
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/README.md +1 -1
- package/dist/components/accordion/CAccordion.d.ts +2 -11
- package/dist/components/accordion/CAccordionItem.d.ts +3 -13
- package/dist/components/alert/CAlert.d.ts +2 -17
- package/dist/components/alert/CAlertHeading.d.ts +0 -2
- package/dist/components/avatar/CAvatar.d.ts +13 -25
- package/dist/components/backdrop/CBackdrop.d.ts +1 -4
- package/dist/components/badge/CBadge.d.ts +0 -12
- package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +4 -19
- package/dist/components/button/CButton.d.ts +6 -43
- package/dist/components/button-group/CButtonGroup.d.ts +2 -13
- package/dist/components/card/CCardHeader.d.ts +0 -2
- package/dist/components/card/CCardImage.d.ts +0 -7
- package/dist/components/card/CCardLink.d.ts +0 -2
- package/dist/components/card/CCardSubtitle.d.ts +0 -2
- package/dist/components/card/CCardText.d.ts +0 -2
- package/dist/components/card/CCardTitle.d.ts +0 -2
- package/dist/components/carousel/CCarousel.d.ts +0 -10
- package/dist/components/carousel/CCarouselItem.d.ts +0 -4
- package/dist/components/close-button/CCloseButton.d.ts +5 -17
- package/dist/components/collapse/CCollapse.d.ts +4 -16
- package/dist/components/dropdown/CDropdown.d.ts +11 -46
- package/dist/components/dropdown/CDropdownHeader.d.ts +0 -2
- package/dist/components/dropdown/CDropdownItem.d.ts +6 -29
- package/dist/components/dropdown/CDropdownMenu.d.ts +0 -2
- package/dist/components/dropdown/CDropdownToggle.d.ts +7 -43
- package/dist/components/footer/CFooter.d.ts +1 -7
- package/dist/components/form/CForm.d.ts +2 -8
- package/dist/components/form/CFormCheck.d.ts +19 -51
- package/dist/components/form/CFormControlValidation.d.ts +8 -24
- package/dist/components/form/CFormFeedback.d.ts +0 -2
- package/dist/components/form/CFormInput.d.ts +145 -194
- package/dist/components/form/CFormLabel.d.ts +3 -13
- package/dist/components/form/CFormRange.d.ts +16 -64
- package/dist/components/form/CFormSelect.d.ts +20 -82
- package/dist/components/form/CFormSwitch.d.ts +13 -35
- package/dist/components/form/CFormText.d.ts +0 -2
- package/dist/components/form/CFormTextarea.d.ts +22 -69
- package/dist/components/form/CInputGroup.d.ts +1 -7
- package/dist/components/form/CInputGroupText.d.ts +0 -2
- package/dist/components/grid/CCol.d.ts +1 -32
- package/dist/components/grid/CContainer.d.ts +12 -48
- package/dist/components/grid/CRow.d.ts +23 -68
- package/dist/components/header/CHeader.d.ts +1 -12
- package/dist/components/header/CHeaderBrand.d.ts +0 -2
- package/dist/components/header/CHeaderNav.d.ts +0 -2
- package/dist/components/image/CImage.d.ts +6 -29
- package/dist/components/link/CLink.d.ts +6 -29
- package/dist/components/list-group/CListGroup.d.ts +2 -15
- package/dist/components/list-group/CListGroupItem.d.ts +4 -18
- package/dist/components/modal/CModal.d.ts +4 -21
- package/dist/components/modal/CModalHeader.d.ts +0 -2
- package/dist/components/modal/CModalTitle.d.ts +0 -2
- package/dist/components/nav/CNav.d.ts +0 -12
- package/dist/components/nav/CNavLink.d.ts +6 -29
- package/dist/components/navbar/CNavbar.d.ts +0 -22
- package/dist/components/navbar/CNavbarBrand.d.ts +2 -13
- package/dist/components/navbar/CNavbarNav.d.ts +0 -2
- package/dist/components/offcanvas/COffcanvas.d.ts +8 -5
- package/dist/components/offcanvas/COffcanvasTitle.d.ts +0 -2
- package/dist/components/pagination/CPagination.d.ts +1 -12
- package/dist/components/pagination/CPaginationItem.d.ts +8 -38
- package/dist/components/placeholder/CPlaceholder.d.ts +12 -78
- package/dist/components/popover/CPopover.d.ts +4 -28
- package/dist/components/progress/CProgressBar.d.ts +2 -15
- package/dist/components/props.d.ts +5 -6
- package/dist/components/sidebar/CSidebar.d.ts +4 -22
- package/dist/components/spinner/CSpinner.d.ts +0 -16
- package/dist/components/table/CTable.d.ts +17 -110
- package/dist/components/table/CTableDataCell.d.ts +4 -21
- package/dist/components/table/CTableRow.d.ts +2 -13
- package/dist/components/table/types.d.ts +14 -0
- package/dist/components/table/utils.d.ts +5 -0
- package/dist/components/tabs/CTabPane.d.ts +0 -2
- package/dist/components/toast/CToast.d.ts +7 -46
- package/dist/components/toast/CToastHeader.d.ts +2 -8
- package/dist/components/toast/CToaster.d.ts +1 -7
- package/dist/components/tooltip/CTooltip.d.ts +2 -17
- package/dist/components/widgets/CWidgetStatsA.d.ts +4 -24
- package/dist/components/widgets/CWidgetStatsB.d.ts +6 -34
- package/dist/components/widgets/CWidgetStatsC.d.ts +14 -23
- package/dist/components/widgets/CWidgetStatsD.d.ts +0 -2
- package/dist/components/widgets/CWidgetStatsE.d.ts +2 -13
- package/dist/components/widgets/CWidgetStatsF.d.ts +4 -24
- package/dist/index.es.js +356 -999
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +356 -999
- package/dist/index.js.map +1 -1
- package/dist/props.d.ts +19 -0
- package/dist/types.d.ts +5 -0
- package/package.json +13 -5
- package/src/components/accordion/CAccordion.ts +1 -5
- package/src/components/accordion/CAccordionBody.ts +1 -1
- package/src/components/accordion/CAccordionItem.ts +1 -6
- package/src/components/accordion/__tests__/__snapshots__/CAccordion.spec.ts.snap +1 -1
- package/src/components/accordion/__tests__/__snapshots__/CAccordionBody.spec.ts.snap +3 -3
- package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.ts.snap +1 -1
- package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.ts.snap +1 -1
- package/src/components/accordion/__tests__/__snapshots__/CAccordionItem.spec.ts.snap +1 -1
- package/src/components/alert/CAlert.ts +4 -12
- package/src/components/alert/CAlertHeading.ts +0 -1
- package/src/components/alert/__tests__/CAlert.spec.ts +1 -1
- package/src/components/alert/__tests__/__snapshots__/CAlert.spec.ts.snap +16 -1
- package/src/components/alert/__tests__/__snapshots__/CAlertHeading.spec.ts.snap +2 -2
- package/src/components/alert/__tests__/__snapshots__/CAlertLink.spec.ts.snap +1 -1
- package/src/components/avatar/CAvatar.ts +3 -10
- package/src/components/avatar/__tests__/__snapshots__/CAvatar.spec.ts.snap +2 -2
- package/src/components/backdrop/CBackdrop.ts +7 -29
- package/src/components/backdrop/__tests__/__snapshots__/CBackdrop.spec.ts.snap +2 -2
- package/src/components/badge/CBadge.ts +1 -6
- package/src/components/badge/__tests__/CBadge.spec.ts +1 -1
- package/src/components/breadcrumb/CBreadcrumbItem.ts +2 -9
- package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumb.spec.ts.snap +2 -2
- package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumbItem.spec.ts.snap +2 -2
- package/src/components/button/CButton.ts +5 -21
- package/src/components/button/__tests__/__snapshots__/CButton.spec.ts.snap +3 -3
- package/src/components/button-group/CButtonGroup.ts +1 -6
- package/src/components/button-group/__tests__/__snapshots__/CButtonGroup.spec.ts.snap +2 -2
- package/src/components/button-group/__tests__/__snapshots__/CButtonToolbar.spec.ts.snap +1 -1
- package/src/components/callout/CCallout.ts +2 -1
- package/src/components/callout/__tests__/__snapshots__/CCallout.spec.ts.snap +2 -2
- package/src/components/card/CCard.ts +2 -1
- package/src/components/card/CCardHeader.ts +0 -1
- package/src/components/card/CCardImage.ts +0 -3
- package/src/components/card/CCardLink.ts +0 -1
- package/src/components/card/CCardSubtitle.ts +0 -1
- package/src/components/card/CCardText.ts +0 -1
- package/src/components/card/CCardTitle.ts +0 -1
- package/src/components/card/__tests__/__snapshots__/CCard.spec.ts.snap +2 -2
- package/src/components/card/__tests__/__snapshots__/CCardBody.spec.ts.snap +1 -1
- package/src/components/card/__tests__/__snapshots__/CCardFooter.spec.ts.snap +1 -1
- package/src/components/card/__tests__/__snapshots__/CCardGroup.spec.ts.snap +1 -1
- package/src/components/card/__tests__/__snapshots__/CCardHeader.spec.ts.snap +2 -2
- package/src/components/card/__tests__/__snapshots__/CCardImage.spec.ts.snap +2 -2
- package/src/components/card/__tests__/__snapshots__/CCardImageOverlay.spec.ts.snap +1 -1
- package/src/components/card/__tests__/__snapshots__/CCardLink.spec.ts.snap +1 -1
- package/src/components/card/__tests__/__snapshots__/CCardSubtitle.spec.ts.snap +2 -2
- package/src/components/card/__tests__/__snapshots__/CCardText.spec.ts.snap +2 -2
- package/src/components/card/__tests__/__snapshots__/CCardTitle.spec.ts.snap +2 -2
- package/src/components/carousel/CCarousel.ts +3 -8
- package/src/components/carousel/CCarouselItem.ts +0 -2
- package/src/components/carousel/__tests__/__snapshots__/CCarousel.spec.ts.snap +5 -5
- package/src/components/carousel/__tests__/__snapshots__/CCarouselCaption.spec.ts.snap +1 -1
- package/src/components/carousel/__tests__/__snapshots__/CCarouselItem.spec.ts.snap +2 -2
- package/src/components/close-button/CCloseButton.ts +2 -8
- package/src/components/close-button/__tests__/__snapshots__/CCloseButton.spec.ts.snap +2 -2
- package/src/components/collapse/CCollapse.ts +3 -9
- package/src/components/collapse/__test__/__snapshots__/CCollapse.spec.ts.snap +4 -4
- package/src/components/dropdown/CDropdown.ts +6 -21
- package/src/components/dropdown/CDropdownHeader.ts +0 -1
- package/src/components/dropdown/CDropdownItem.ts +3 -14
- package/src/components/dropdown/CDropdownMenu.ts +0 -1
- package/src/components/dropdown/CDropdownToggle.ts +8 -23
- package/src/components/dropdown/__tests__/CDropdown.spec.ts +1 -1
- package/src/components/dropdown/__tests__/__snapshots__/CDropdown.spec.ts.snap +2 -2
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownDivider.spec.ts.snap +1 -1
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownHeader.spec.ts.snap +2 -2
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownItem.spec.ts.snap +2 -2
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownMenu.spec.ts.snap +2 -2
- package/src/components/dropdown/__tests__/__snapshots__/CDropdownToggle.spec.ts.snap +2 -2
- package/src/components/footer/CFooter.ts +0 -2
- package/src/components/footer/__tests__/__snapshots__/CFooter.spec.ts.snap +2 -2
- package/src/components/form/CForm.ts +1 -4
- package/src/components/form/CFormCheck.ts +9 -25
- package/src/components/form/CFormControlValidation.ts +4 -12
- package/src/components/form/CFormControlWrapper.ts +4 -12
- package/src/components/form/CFormFeedback.ts +0 -1
- package/src/components/form/CFormInput.ts +11 -37
- package/src/components/form/CFormLabel.ts +1 -5
- package/src/components/form/CFormRange.ts +8 -30
- package/src/components/form/CFormSelect.ts +10 -39
- package/src/components/form/CFormSwitch.ts +6 -17
- package/src/components/form/CFormText.ts +0 -1
- package/src/components/form/CFormTextarea.ts +11 -34
- package/src/components/form/CInputGroup.ts +0 -2
- package/src/components/form/CInputGroupText.ts +0 -1
- package/src/components/form/__tests__/__snapshots__/CForm.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +5 -5
- package/src/components/form/__tests__/__snapshots__/CFormFeedback.spec.ts.snap +3 -3
- package/src/components/form/__tests__/__snapshots__/CFormFloating.spec.ts.snap +1 -1
- package/src/components/form/__tests__/__snapshots__/CFormInput.spec.ts.snap +3 -3
- package/src/components/form/__tests__/__snapshots__/CFormLabel.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormRange.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormSwitch.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormText.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CFormTextarea.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CInputGroup.spec.ts.snap +2 -2
- package/src/components/form/__tests__/__snapshots__/CInputGroupText.spec.ts.snap +2 -2
- package/src/components/grid/CCol.ts +0 -12
- package/src/components/grid/CContainer.ts +6 -24
- package/src/components/grid/CRow.ts +11 -35
- package/src/components/grid/__tests__/__snapshots__/CCol.spec.ts.snap +2 -2
- package/src/components/grid/__tests__/__snapshots__/CContainer.spec.ts.snap +2 -2
- package/src/components/grid/__tests__/__snapshots__/CRow.spec.ts.snap +2 -2
- package/src/components/header/CHeader.ts +0 -4
- package/src/components/header/CHeaderBrand.ts +0 -1
- package/src/components/header/CHeaderNav.ts +0 -1
- package/src/components/header/__tests__/__snapshots__/CHeader.spec.ts.snap +3 -3
- package/src/components/header/__tests__/__snapshots__/CHeaderBrand.spec.ts.snap +2 -2
- package/src/components/header/__tests__/__snapshots__/CHeaderDivider.spec.ts.snap +1 -1
- package/src/components/header/__tests__/__snapshots__/CHeaderNav.spec.ts.snap +2 -2
- package/src/components/header/__tests__/__snapshots__/CHeaderText.spec.ts.snap +1 -1
- package/src/components/header/__tests__/__snapshots__/CHeaderToggler.spec.ts.snap +2 -2
- package/src/components/image/CImage.ts +3 -14
- package/src/components/image/__tests__/__snapshots__/CImage.spec.ts.snap +3 -3
- package/src/components/link/CLink.ts +3 -14
- package/src/components/link/__tests__/__snapshots__/CLink.spec.ts.snap +2 -2
- package/src/components/list-group/CListGroup.ts +1 -7
- package/src/components/list-group/CListGroupItem.ts +3 -10
- package/src/components/list-group/__tests__/__snapshots__/CListGroup.spec.ts.snap +2 -2
- package/src/components/list-group/__tests__/__snapshots__/CListGroupItem.spec.ts.snap +3 -3
- package/src/components/modal/CModal.ts +4 -11
- package/src/components/modal/CModalHeader.ts +0 -1
- package/src/components/modal/CModalTitle.ts +0 -1
- package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +10 -10
- package/src/components/modal/__tests__/__snapshots__/CModalBody.spec.ts.snap +1 -1
- package/src/components/modal/__tests__/__snapshots__/CModalFooter.spec.ts.snap +1 -1
- package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.ts.snap +2 -2
- package/src/components/modal/__tests__/__snapshots__/CModalTitle.spec.ts.snap +2 -2
- package/src/components/nav/CNav.ts +0 -5
- package/src/components/nav/CNavGroup.ts +1 -1
- package/src/components/nav/CNavLink.ts +3 -14
- package/src/components/nav/__tests__/__snapshots__/CNav.spec.ts.snap +2 -2
- package/src/components/nav/__tests__/__snapshots__/CNavGroup.spec.ts.snap +5 -5
- package/src/components/nav/__tests__/__snapshots__/CNavGroupItems.spec.ts.snap +1 -1
- package/src/components/nav/__tests__/__snapshots__/CNavItem.spec.ts.snap +3 -3
- package/src/components/nav/__tests__/__snapshots__/CNavLink.spec.ts.snap +2 -2
- package/src/components/nav/__tests__/__snapshots__/CNavTitle.spec.ts.snap +1 -1
- package/src/components/navbar/CNavbar.ts +1 -10
- package/src/components/navbar/CNavbarBrand.ts +1 -6
- package/src/components/navbar/CNavbarNav.ts +0 -1
- package/src/components/navbar/__tests__/__snapshots__/CNavbar.spec.ts.snap +3 -3
- package/src/components/navbar/__tests__/__snapshots__/CNavbarBrand.spec.ts.snap +3 -3
- package/src/components/navbar/__tests__/__snapshots__/CNavbarNav.spec.ts.snap +2 -2
- package/src/components/navbar/__tests__/__snapshots__/CNavbarText.spec.ts.snap +1 -1
- package/src/components/navbar/__tests__/__snapshots__/CNavbarToggler.spec.ts.snap +2 -2
- package/src/components/offcanvas/COffcanvas.ts +11 -8
- package/src/components/offcanvas/COffcanvasTitle.ts +0 -1
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.ts.snap +8 -8
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasBody.spec.ts.snap +1 -1
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasHeader.spec.ts.snap +1 -1
- package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasTitle.spec.ts.snap +2 -2
- package/src/components/pagination/CPagination.ts +0 -4
- package/src/components/pagination/CPaginationItem.ts +4 -18
- package/src/components/pagination/__tests__/__snapshots__/CPagination.spec.ts.snap +2 -2
- package/src/components/pagination/__tests__/__snapshots__/CPaginationItem.spec.ts.snap +2 -2
- package/src/components/placeholder/CPlaceholder.ts +7 -36
- package/src/components/placeholder/__tests__/CPlaceholder.spec.ts +1 -1
- package/src/components/popover/CPopover.ts +3 -14
- package/src/components/progress/CProgress.ts +1 -5
- package/src/components/progress/CProgressBar.ts +2 -8
- package/src/components/progress/__tests__/__snapshots__/CProgress.spec.ts.snap +2 -2
- package/src/components/progress/__tests__/__snapshots__/CProgressBar.spec.ts.snap +2 -2
- package/src/components/props.ts +10 -8
- package/src/components/sidebar/CSidebar.ts +3 -11
- package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -2
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarBrand.spec.ts.snap +1 -1
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarFooter.spec.ts.snap +1 -1
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarHeader.spec.ts.snap +1 -1
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarNav.spec.ts.snap +1 -1
- package/src/components/sidebar/__tests__/__snapshots__/CSidebarToggler.spec.ts.snap +1 -1
- package/src/components/smart-table/CSmartTable.ts +7 -7
- package/src/components/spinner/CSpinner.ts +0 -7
- package/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.ts.snap +2 -2
- package/src/components/table/CTable.ts +21 -93
- package/src/components/table/CTableBody.ts +1 -1
- package/src/components/table/CTableDataCell.ts +3 -11
- package/src/components/table/CTableFoot.ts +1 -1
- package/src/components/table/CTableHead.ts +1 -1
- package/src/components/table/CTableHeaderCell.ts +1 -1
- package/src/components/table/CTableRow.ts +2 -7
- package/src/components/table/__tests__/__snapshots__/CTable.spec.ts.snap +15 -3
- package/src/components/table/__tests__/__snapshots__/CTableBody.spec.ts.snap +2 -2
- package/src/components/table/__tests__/__snapshots__/CTableDataCell.spec.ts.snap +2 -2
- package/src/components/table/__tests__/__snapshots__/CTableFoot.spec.ts.snap +2 -2
- package/src/components/table/__tests__/__snapshots__/CTableHead.spec.ts.snap +2 -2
- package/src/components/table/__tests__/__snapshots__/CTableHeaderCell.spec.ts.snap +2 -2
- package/src/components/table/__tests__/__snapshots__/CTableRow.spec.ts.snap +2 -2
- package/src/components/table/types.ts +20 -0
- package/src/components/table/utils.ts +24 -0
- package/src/components/tabs/CTabPane.ts +1 -2
- package/src/components/tabs/__tests__/__snapshots__/CTabContent.spec.ts.snap +1 -1
- package/src/components/tabs/__tests__/__snapshots__/CTabPane.spec.ts.snap +4 -4
- package/src/components/toast/CToast.ts +48 -83
- package/src/components/toast/CToastClose.ts +1 -5
- package/src/components/toast/CToastHeader.ts +1 -4
- package/src/components/toast/CToaster.ts +0 -2
- package/src/components/toast/__tests__/CToast.spec.ts +3 -1
- package/src/components/toast/__tests__/__snapshots__/CToast.spec.ts.snap +4 -4
- package/src/components/toast/__tests__/__snapshots__/CToastBody.spec.ts.snap +1 -1
- package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +2 -2
- package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.ts.snap +2 -2
- package/src/components/toast/__tests__/__snapshots__/CToaster.spec.ts.snap +2 -2
- package/src/components/tooltip/CTooltip.ts +2 -9
- package/src/components/widgets/CWidgetStatsA.ts +3 -12
- package/src/components/widgets/CWidgetStatsB.ts +8 -20
- package/src/components/widgets/CWidgetStatsC.ts +5 -14
- package/src/components/widgets/CWidgetStatsD.ts +4 -4
- package/src/components/widgets/CWidgetStatsE.ts +3 -8
- package/src/components/widgets/CWidgetStatsF.ts +6 -14
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsA.spec.ts.snap +3 -3
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsB.spec.ts.snap +6 -6
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsC.spec.ts.snap +7 -7
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsD.spec.ts.snap +10 -10
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap +4 -4
- package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsF.spec.ts.snap +6 -6
- package/src/props.ts +88 -0
- package/src/types.ts +54 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue'
|
|
2
2
|
import { shape } from 'vue-types'
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { CCard, CCardBody } from '../card'
|
|
5
|
+
import { CProgress } from '../progress'
|
|
6
|
+
|
|
7
|
+
import { Color } from '../../props'
|
|
7
8
|
|
|
8
9
|
const CWidgetStatsB = defineComponent({
|
|
9
10
|
name: 'CWidgetStatsB',
|
|
@@ -17,11 +18,7 @@ const CWidgetStatsB = defineComponent({
|
|
|
17
18
|
/**
|
|
18
19
|
* Colors have been inverted from their default dark shade.
|
|
19
20
|
*/
|
|
20
|
-
inverse:
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: undefined,
|
|
23
|
-
require: false,
|
|
24
|
-
},
|
|
21
|
+
inverse: Boolean,
|
|
25
22
|
progress: shape({
|
|
26
23
|
/**
|
|
27
24
|
* Sets the color context of the progress bar to one of CoreUI’s themed colors
|
|
@@ -40,26 +37,17 @@ const CWidgetStatsB = defineComponent({
|
|
|
40
37
|
/**
|
|
41
38
|
* Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
|
|
42
39
|
*/
|
|
43
|
-
text:
|
|
44
|
-
type: String,
|
|
45
|
-
default: undefined,
|
|
46
|
-
require: false,
|
|
47
|
-
},
|
|
40
|
+
text: String,
|
|
48
41
|
/**
|
|
49
42
|
* Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
|
|
50
43
|
*/
|
|
51
|
-
title:
|
|
52
|
-
type: String,
|
|
53
|
-
default: undefined,
|
|
54
|
-
require: false,
|
|
55
|
-
},
|
|
44
|
+
title: String,
|
|
56
45
|
/**
|
|
57
46
|
* Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
|
|
58
47
|
*/
|
|
59
48
|
value: {
|
|
60
49
|
type: [Number, String],
|
|
61
|
-
default: 0
|
|
62
|
-
require: false,
|
|
50
|
+
default: 0
|
|
63
51
|
},
|
|
64
52
|
},
|
|
65
53
|
setup(props, { slots }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue'
|
|
2
2
|
import { shape } from 'vue-types'
|
|
3
3
|
|
|
4
|
-
import { Color } from '
|
|
5
|
-
import { CCard, CCardBody } from '
|
|
4
|
+
import { Color } from '../../props'
|
|
5
|
+
import { CCard, CCardBody } from '../card'
|
|
6
6
|
import { CProgress } from '../progress/CProgress'
|
|
7
7
|
|
|
8
8
|
const CWidgetStatsC = defineComponent({
|
|
@@ -17,11 +17,7 @@ const CWidgetStatsC = defineComponent({
|
|
|
17
17
|
/**
|
|
18
18
|
* Colors have been inverted from their default dark shade.
|
|
19
19
|
*/
|
|
20
|
-
inverse:
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: undefined,
|
|
23
|
-
require: false,
|
|
24
|
-
},
|
|
20
|
+
inverse: Boolean,
|
|
25
21
|
progress: shape({
|
|
26
22
|
/**
|
|
27
23
|
* Sets the color context of the progress bar to one of CoreUI’s themed colors
|
|
@@ -40,18 +36,13 @@ const CWidgetStatsC = defineComponent({
|
|
|
40
36
|
/**
|
|
41
37
|
* Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
|
|
42
38
|
*/
|
|
43
|
-
title:
|
|
44
|
-
type: String,
|
|
45
|
-
default: undefined,
|
|
46
|
-
require: false,
|
|
47
|
-
},
|
|
39
|
+
title: String,
|
|
48
40
|
/**
|
|
49
41
|
* Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
|
|
50
42
|
*/
|
|
51
43
|
value: {
|
|
52
44
|
type: [Number, String],
|
|
53
|
-
default: 0
|
|
54
|
-
require: false,
|
|
45
|
+
default: 0
|
|
55
46
|
},
|
|
56
47
|
},
|
|
57
48
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { defineComponent, h, PropType } from 'vue'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
3
|
+
import { CCard, CCardBody, CCardHeader } from '../card/'
|
|
4
|
+
import { CCol } from '../grid/'
|
|
5
|
+
|
|
6
|
+
import { Color } from '../../props'
|
|
6
7
|
|
|
7
8
|
type Value = {
|
|
8
9
|
title?: string
|
|
@@ -24,7 +25,6 @@ const CWidgetStatsD = defineComponent({
|
|
|
24
25
|
values: {
|
|
25
26
|
type: Array as PropType<Value[]>,
|
|
26
27
|
default: () => [],
|
|
27
|
-
require: false,
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue'
|
|
2
2
|
|
|
3
|
-
import { CCard, CCardBody } from '
|
|
3
|
+
import { CCard, CCardBody } from '../card/'
|
|
4
4
|
|
|
5
5
|
const CWidgetStatsE = defineComponent({
|
|
6
6
|
name: 'CWidgetStatsE',
|
|
@@ -8,18 +8,13 @@ const CWidgetStatsE = defineComponent({
|
|
|
8
8
|
/**
|
|
9
9
|
* Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
|
|
10
10
|
*/
|
|
11
|
-
title:
|
|
12
|
-
type: String,
|
|
13
|
-
default: undefined,
|
|
14
|
-
require: false,
|
|
15
|
-
},
|
|
11
|
+
title: String,
|
|
16
12
|
/**
|
|
17
13
|
* Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
|
|
18
14
|
*/
|
|
19
15
|
value: {
|
|
20
16
|
type: [Number, String],
|
|
21
|
-
default: 0
|
|
22
|
-
require: false,
|
|
17
|
+
default: 0
|
|
23
18
|
},
|
|
24
19
|
},
|
|
25
20
|
/**
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import { CCard, CCardBody, CCardFooter } from '../card/'
|
|
4
|
+
|
|
5
|
+
import { Color } from '../../props'
|
|
5
6
|
|
|
6
7
|
const CWidgetStatsF = defineComponent({
|
|
7
8
|
name: 'CWidgetStatsF',
|
|
@@ -22,26 +23,17 @@ const CWidgetStatsF = defineComponent({
|
|
|
22
23
|
/**
|
|
23
24
|
* Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
|
|
24
25
|
*/
|
|
25
|
-
title:
|
|
26
|
-
type: String,
|
|
27
|
-
default: undefined,
|
|
28
|
-
require: false,
|
|
29
|
-
},
|
|
26
|
+
title: String,
|
|
30
27
|
/**
|
|
31
28
|
* Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
|
|
32
29
|
*/
|
|
33
|
-
text:
|
|
34
|
-
type: String,
|
|
35
|
-
default: undefined,
|
|
36
|
-
require: false,
|
|
37
|
-
},
|
|
30
|
+
text: String,
|
|
38
31
|
/**
|
|
39
32
|
* Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
|
|
40
33
|
*/
|
|
41
34
|
value: {
|
|
42
35
|
type: [Number, String],
|
|
43
|
-
default: 0
|
|
44
|
-
require: false,
|
|
36
|
+
default: 0
|
|
45
37
|
},
|
|
46
38
|
},
|
|
47
39
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsA component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
4
|
+
"<div class="card bg-warning text-high-emphasis-inverse">
|
|
5
|
+
<div class="card-body pb-0 d-flex justify-content-between align-items-start">
|
|
6
6
|
<div>
|
|
7
|
-
<div class
|
|
7
|
+
<div class="fs-4 fw-semibold">75</div>
|
|
8
8
|
<div>title</div>
|
|
9
9
|
</div>action
|
|
10
10
|
</div>chartDefault slot
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsB component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
4
|
+
"<div class="card bg-warning text-high-emphasis-inverse">
|
|
5
|
+
<div class="card-body">
|
|
6
|
+
<div class="fs-4 fw-semibold">75</div>
|
|
7
7
|
<div>title</div>
|
|
8
|
-
<div class
|
|
9
|
-
<div class
|
|
10
|
-
</div><small class
|
|
8
|
+
<div class="progress progress-white my-2" style="height: 4px;">
|
|
9
|
+
<div class="progress-bar bg-info" role="progressbar" style="width: 75%;" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
|
|
10
|
+
</div><small class="text-medium-emphasis-inverse">text</small>
|
|
11
11
|
</div>
|
|
12
12
|
</div>"
|
|
13
13
|
`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsC component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
7
|
-
<div class
|
|
8
|
-
<div class
|
|
9
|
-
<div class
|
|
10
|
-
<div class
|
|
4
|
+
"<div class="card bg-warning text-white">
|
|
5
|
+
<div class="card-body">
|
|
6
|
+
<div class="text-end mb-4 text-medium-emphasis-inverse">icon</div>
|
|
7
|
+
<div class="fs-4 fw-semibold">75</div>
|
|
8
|
+
<div class="text-uppercase fw-semibold small text-medium-emphasis-inverse">title</div>
|
|
9
|
+
<div class="progress progress-white my-2" style="height: 4px;">
|
|
10
|
+
<div class="progress-bar bg-info" role="progressbar" style="width: 75%;" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100"></div>
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
</div>"
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsD component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
4
|
+
"<div class="card">
|
|
5
|
+
<div class="card-header position-relative d-flex justify-content-center align-items-center bg-warning">iconchart</div>
|
|
6
|
+
<div class="card-body row text-center">
|
|
7
7
|
<!---->
|
|
8
|
-
<div class
|
|
9
|
-
<div class
|
|
10
|
-
<div class
|
|
8
|
+
<div class="col">
|
|
9
|
+
<div class="col fs-5 fw-semibold">bb</div>
|
|
10
|
+
<div class="col text-uppercase text-medium-emphasis small">aa</div>
|
|
11
11
|
</div>
|
|
12
|
-
<div class
|
|
13
|
-
<div class
|
|
14
|
-
<div class
|
|
15
|
-
<div class
|
|
12
|
+
<div class="vr"></div>
|
|
13
|
+
<div class="col">
|
|
14
|
+
<div class="col fs-5 fw-semibold">dd</div>
|
|
15
|
+
<div class="col text-uppercase text-medium-emphasis small">cc</div>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</div>"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsE component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
7
|
-
<div class
|
|
4
|
+
"<div class="card">
|
|
5
|
+
<div class="card-body text-center">
|
|
6
|
+
<div class="text-muted small text-uppercase font-weight-bold">title</div>
|
|
7
|
+
<div class="h2 py-3">value</div>chartdefault
|
|
8
8
|
</div>
|
|
9
9
|
</div>"
|
|
10
10
|
`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Loads and display CWidgetStatsF component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
4
|
+
"<div class="card">
|
|
5
|
+
<div class="card-body d-flex align-items-center">
|
|
6
|
+
<div class="me-3 text-white bg-warning p-3">default</div>
|
|
7
7
|
<div>
|
|
8
|
-
<div class
|
|
9
|
-
<div class
|
|
8
|
+
<div class="fs-6 fw-semibold text-warning">75</div>
|
|
9
|
+
<div class="text-medium-emphasis text-uppercase fw-semibold small">title</div>
|
|
10
10
|
</div>
|
|
11
11
|
</div>
|
|
12
|
-
<div class
|
|
12
|
+
<div class="card-footer">footer</div>
|
|
13
13
|
</div>"
|
|
14
14
|
`;
|
package/src/props.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export const Shape = {
|
|
2
|
+
type: String,
|
|
3
|
+
validator: (value: string): boolean => {
|
|
4
|
+
// The value must match one of these strings
|
|
5
|
+
return [
|
|
6
|
+
'rounded',
|
|
7
|
+
'rounded-top',
|
|
8
|
+
'rounded-end',
|
|
9
|
+
'rounded-bottom',
|
|
10
|
+
'rounded-start',
|
|
11
|
+
'rounded-circle',
|
|
12
|
+
'rounded-pill',
|
|
13
|
+
'rounded-0',
|
|
14
|
+
'rounded-1',
|
|
15
|
+
'rounded-2',
|
|
16
|
+
'rounded-3',
|
|
17
|
+
].includes(value)
|
|
18
|
+
},
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export const Align = {
|
|
22
|
+
type: String,
|
|
23
|
+
validator: (value: string): boolean => {
|
|
24
|
+
// The value must match one of these strings
|
|
25
|
+
return ['', 'left', 'center', 'right'].includes(value)
|
|
26
|
+
},
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const Color = {
|
|
30
|
+
type: String,
|
|
31
|
+
validator: (value: string): boolean => {
|
|
32
|
+
// The value must match one of these strings
|
|
33
|
+
return [
|
|
34
|
+
'primary',
|
|
35
|
+
'secondary',
|
|
36
|
+
'success',
|
|
37
|
+
'danger',
|
|
38
|
+
'warning',
|
|
39
|
+
'info',
|
|
40
|
+
'dark',
|
|
41
|
+
'light',
|
|
42
|
+
'link',
|
|
43
|
+
'transparent',
|
|
44
|
+
'primary-gradient',
|
|
45
|
+
'secondary-gradient',
|
|
46
|
+
'success-gradient',
|
|
47
|
+
'danger-gradient',
|
|
48
|
+
'warning-gradient',
|
|
49
|
+
'info-gradient',
|
|
50
|
+
'dark-gradient',
|
|
51
|
+
'light-gradient',
|
|
52
|
+
].includes(value)
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export const TextColor = {
|
|
57
|
+
type: String,
|
|
58
|
+
validator: (value: string): boolean => {
|
|
59
|
+
return [
|
|
60
|
+
'primary',
|
|
61
|
+
'secondary',
|
|
62
|
+
'success',
|
|
63
|
+
'danger',
|
|
64
|
+
'warning',
|
|
65
|
+
'info',
|
|
66
|
+
'dark',
|
|
67
|
+
'light',
|
|
68
|
+
'white',
|
|
69
|
+
'muted',
|
|
70
|
+
'high-emphasis',
|
|
71
|
+
'medium-emphasis',
|
|
72
|
+
'disabled',
|
|
73
|
+
'high-emphasis-inverse',
|
|
74
|
+
'medium-emphasis-inverse',
|
|
75
|
+
'disabled-inverse',
|
|
76
|
+
].includes(value)
|
|
77
|
+
},
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const Breakpoint = {
|
|
81
|
+
validator: (value: boolean | number): boolean => {
|
|
82
|
+
if (typeof value == 'boolean' || typeof value == 'number') {
|
|
83
|
+
return true
|
|
84
|
+
} else {
|
|
85
|
+
return false
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
}
|
package/src/types.ts
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export type Breakpoints = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
|
|
2
|
+
|
|
3
|
+
export type Colors =
|
|
4
|
+
| 'primary'
|
|
5
|
+
| 'secondary'
|
|
6
|
+
| 'success'
|
|
7
|
+
| 'danger'
|
|
8
|
+
| 'warning'
|
|
9
|
+
| 'info'
|
|
10
|
+
| 'dark'
|
|
11
|
+
| 'light'
|
|
12
|
+
| 'primary-gradient'
|
|
13
|
+
| 'secondary-gradient'
|
|
14
|
+
| 'success-gradient'
|
|
15
|
+
| 'danger-gradient'
|
|
16
|
+
| 'warning-gradient'
|
|
17
|
+
| 'info-gradient'
|
|
18
|
+
| 'dark-gradient'
|
|
19
|
+
| 'light-gradient'
|
|
20
|
+
| string
|
|
21
|
+
|
|
22
|
+
export type Placements =
|
|
23
|
+
| 'auto'
|
|
24
|
+
| 'auto-start'
|
|
25
|
+
| 'auto-end'
|
|
26
|
+
| 'top-end'
|
|
27
|
+
| 'top'
|
|
28
|
+
| 'top-start'
|
|
29
|
+
| 'bottom-end'
|
|
30
|
+
| 'bottom'
|
|
31
|
+
| 'bottom-start'
|
|
32
|
+
| 'right-start'
|
|
33
|
+
| 'right'
|
|
34
|
+
| 'right-end'
|
|
35
|
+
| 'left-start'
|
|
36
|
+
| 'left'
|
|
37
|
+
| 'left-end'
|
|
38
|
+
| undefined
|
|
39
|
+
|
|
40
|
+
export type Shapes =
|
|
41
|
+
| 'rounded'
|
|
42
|
+
| 'rounded-top'
|
|
43
|
+
| 'rounded-end'
|
|
44
|
+
| 'rounded-bottom'
|
|
45
|
+
| 'rounded-start'
|
|
46
|
+
| 'rounded-circle'
|
|
47
|
+
| 'rounded-pill'
|
|
48
|
+
| 'rounded-0'
|
|
49
|
+
| 'rounded-1'
|
|
50
|
+
| 'rounded-2'
|
|
51
|
+
| 'rounded-3'
|
|
52
|
+
| string
|
|
53
|
+
|
|
54
|
+
export type Triggers = 'hover' | 'focus' | 'click'
|