@coreui/vue-pro 4.8.0 → 4.8.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/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 +17 -49
- 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 +11 -33
- 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 +353 -995
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +353 -995
- package/dist/index.js.map +1 -1
- package/dist/props.d.ts +19 -0
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
- 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 +1 -6
- 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__/__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 +8 -24
- 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 +5 -16
- 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,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h } from 'vue'
|
|
2
2
|
|
|
3
|
-
import { Color } from '
|
|
3
|
+
import { Color } from '../../props'
|
|
4
4
|
|
|
5
5
|
const CTableRow = defineComponent({
|
|
6
6
|
name: 'CTableRow',
|
|
@@ -8,10 +8,7 @@ const CTableRow = defineComponent({
|
|
|
8
8
|
/**
|
|
9
9
|
* Highlight a table row or cell..
|
|
10
10
|
*/
|
|
11
|
-
active:
|
|
12
|
-
type: Boolean,
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
11
|
+
active: Boolean,
|
|
15
12
|
/**
|
|
16
13
|
* Set the vertical aligment.
|
|
17
14
|
*
|
|
@@ -19,8 +16,6 @@ const CTableRow = defineComponent({
|
|
|
19
16
|
*/
|
|
20
17
|
align: {
|
|
21
18
|
type: String,
|
|
22
|
-
default: undefined,
|
|
23
|
-
required: false,
|
|
24
19
|
validator: (value: string) => {
|
|
25
20
|
return ['bottom', 'middle', 'top'].includes(value)
|
|
26
21
|
},
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CTable component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<table class
|
|
4
|
+
"<div class="table-responsive-lg">
|
|
5
|
+
<table class="table align-center caption-top border-dark table-bordered table-borderless table-warning table-hover table-sm table-striped">
|
|
6
|
+
<!---->
|
|
7
|
+
<!---->
|
|
8
|
+
<!---->Default slot
|
|
9
|
+
<!---->
|
|
10
|
+
</table>
|
|
6
11
|
</div>"
|
|
7
12
|
`;
|
|
8
13
|
|
|
9
|
-
exports[`Loads and display CTable component renders correctly 1`] = `
|
|
14
|
+
exports[`Loads and display CTable component renders correctly 1`] = `
|
|
15
|
+
"<table class="table">
|
|
16
|
+
<!---->
|
|
17
|
+
<!---->
|
|
18
|
+
<!---->Default slot
|
|
19
|
+
<!---->
|
|
20
|
+
</table>"
|
|
21
|
+
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableBody component renders correctly 1`] = `"<tbody class
|
|
3
|
+
exports[`Customize CTableBody component renders correctly 1`] = `"<tbody class="table-warning">Default slot</tbody>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableBody component renders correctly 1`] = `"<tbody class
|
|
5
|
+
exports[`Loads and display CTableBody component renders correctly 1`] = `"<tbody class="">Default slot</tbody>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableDataCell component renders correctly 1`] = `"<td class
|
|
3
|
+
exports[`Customize CTableDataCell component renders correctly 1`] = `"<td class="align-middle table-active table-warning">Default slot</td>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableDataCell component renders correctly 1`] = `"<td class
|
|
5
|
+
exports[`Loads and display CTableDataCell component renders correctly 1`] = `"<td class="">Default slot</td>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableFoot component renders correctly 1`] = `"<tfoot class
|
|
3
|
+
exports[`Customize CTableFoot component renders correctly 1`] = `"<tfoot class="table-warning">Default slot</tfoot>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableFoot component renders correctly 1`] = `"<tfoot class
|
|
5
|
+
exports[`Loads and display CTableFoot component renders correctly 1`] = `"<tfoot class="">Default slot</tfoot>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableHead component renders correctly 1`] = `"<thead class
|
|
3
|
+
exports[`Customize CTableHead component renders correctly 1`] = `"<thead class="table-warning">Default slot</thead>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableHead component renders correctly 1`] = `"<thead class
|
|
5
|
+
exports[`Loads and display CTableHead component renders correctly 1`] = `"<thead class="">Default slot</thead>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableHeaderCell component renders correctly 1`] = `"<th class
|
|
3
|
+
exports[`Customize CTableHeaderCell component renders correctly 1`] = `"<th class="table-warning">Default slot</th>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableHeaderCell component renders correctly 1`] = `"<th class
|
|
5
|
+
exports[`Loads and display CTableHeaderCell component renders correctly 1`] = `"<th class="">Default slot</th>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CTableRow component renders correctly 1`] = `"<tr class
|
|
3
|
+
exports[`Customize CTableRow component renders correctly 1`] = `"<tr class="align-middle table-active table-warning">Default slot</tr>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CTableRow component renders correctly 1`] = `"<tr class
|
|
5
|
+
exports[`Loads and display CTableRow component renders correctly 1`] = `"<tr class="">Default slot</tr>"`;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Column = {
|
|
2
|
+
label?: string
|
|
3
|
+
key: string
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
_style?: any
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
|
+
_props?: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export type FooterItem = {
|
|
11
|
+
label?: string
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
13
|
+
_props?: any
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type Item = {
|
|
17
|
+
[key: string]: number | string | any
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
19
|
+
_props?: any
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Column, Item } from './types'
|
|
2
|
+
|
|
3
|
+
export const pretifyName = (name: string) => {
|
|
4
|
+
return name
|
|
5
|
+
.replace(/[-_.]/g, ' ')
|
|
6
|
+
.replace(/ +/g, ' ')
|
|
7
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1 $2')
|
|
8
|
+
.split(' ')
|
|
9
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1))
|
|
10
|
+
.join(' ')
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const getColumnLabel = (column: Column | string) =>
|
|
14
|
+
typeof column === 'object' ? column.label ?? pretifyName(column.key) : pretifyName(column)
|
|
15
|
+
|
|
16
|
+
export const getColumnNames = (columns: (string | Column)[] | undefined, items?: Item[]) =>
|
|
17
|
+
columns
|
|
18
|
+
? columns.map((column: Column | string) => {
|
|
19
|
+
return typeof column === 'object' ? column.key : column
|
|
20
|
+
})
|
|
21
|
+
: items && getColumnNamesFromItems(items)
|
|
22
|
+
|
|
23
|
+
export const getColumnNamesFromItems = (items: Item[]) =>
|
|
24
|
+
Object.keys(items[0] || {}).filter((el) => el.charAt(0) !== '_')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h, ref, RendererElement, Transition, vShow, withDirectives } from 'vue'
|
|
2
2
|
|
|
3
|
-
import { executeAfterTransition } from '
|
|
3
|
+
import { executeAfterTransition } from '../../utils/transition'
|
|
4
4
|
|
|
5
5
|
const CTabPane = defineComponent({
|
|
6
6
|
name: 'CTabPane',
|
|
@@ -11,7 +11,6 @@ const CTabPane = defineComponent({
|
|
|
11
11
|
visible: {
|
|
12
12
|
type: Boolean,
|
|
13
13
|
default: false,
|
|
14
|
-
required: false,
|
|
15
14
|
},
|
|
16
15
|
},
|
|
17
16
|
emits: [
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CTabContent component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Loads and display CTabContent component renders correctly 1`] = `"<div class="tab-content">Default slot</div>"`;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CTabPane component renders correctly 1`] = `
|
|
4
|
-
"<transition-stub>
|
|
5
|
-
<div class
|
|
4
|
+
"<transition-stub appear="false" persisted="false" css="true">
|
|
5
|
+
<div class="tab-pane fade active show">Default slot</div>
|
|
6
6
|
</transition-stub>"
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`Loads and display CTabPane component renders correctly 1`] = `
|
|
10
|
-
"<transition-stub>
|
|
11
|
-
<div class
|
|
10
|
+
"<transition-stub appear="false" persisted="false" css="true">
|
|
11
|
+
<div class="tab-pane fade" style="display: none;">Default slot</div>
|
|
12
12
|
</transition-stub>"
|
|
13
13
|
`;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { defineComponent, h, onMounted, provide, ref,
|
|
1
|
+
import { defineComponent, h, onMounted, provide, ref, Transition } from 'vue'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import { Color } from '../props'
|
|
3
|
+
import { Color } from '../../props'
|
|
6
4
|
|
|
7
5
|
const CToast = defineComponent({
|
|
8
6
|
name: 'CToast',
|
|
@@ -13,7 +11,6 @@ const CToast = defineComponent({
|
|
|
13
11
|
autohide: {
|
|
14
12
|
type: Boolean,
|
|
15
13
|
default: true,
|
|
16
|
-
required: false,
|
|
17
14
|
},
|
|
18
15
|
/**
|
|
19
16
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
@@ -27,7 +24,6 @@ const CToast = defineComponent({
|
|
|
27
24
|
delay: {
|
|
28
25
|
type: Number,
|
|
29
26
|
default: 5000,
|
|
30
|
-
required: false,
|
|
31
27
|
},
|
|
32
28
|
/**
|
|
33
29
|
* Optionally add a close button to component and allow it to self dismiss.
|
|
@@ -35,32 +31,19 @@ const CToast = defineComponent({
|
|
|
35
31
|
dismissible: {
|
|
36
32
|
type: Boolean,
|
|
37
33
|
default: true,
|
|
38
|
-
required: false,
|
|
39
34
|
},
|
|
40
35
|
/**
|
|
41
36
|
* index of the component.
|
|
42
37
|
*/
|
|
43
|
-
index:
|
|
44
|
-
type: Number,
|
|
45
|
-
default: undefined,
|
|
46
|
-
required: false,
|
|
47
|
-
},
|
|
38
|
+
index: Number,
|
|
48
39
|
/**
|
|
49
40
|
* Title node for your component.
|
|
50
41
|
*/
|
|
51
|
-
title:
|
|
52
|
-
type: String,
|
|
53
|
-
default: undefined,
|
|
54
|
-
required: false,
|
|
55
|
-
},
|
|
42
|
+
title: String,
|
|
56
43
|
/**
|
|
57
44
|
* Toggle the visibility of component.
|
|
58
45
|
*/
|
|
59
|
-
visible:
|
|
60
|
-
type: Boolean,
|
|
61
|
-
default: true,
|
|
62
|
-
required: false,
|
|
63
|
-
},
|
|
46
|
+
visible: Boolean,
|
|
64
47
|
},
|
|
65
48
|
emits: [
|
|
66
49
|
/**
|
|
@@ -73,51 +56,23 @@ const CToast = defineComponent({
|
|
|
73
56
|
'show',
|
|
74
57
|
],
|
|
75
58
|
setup(props, { slots, emit }) {
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const updateVisible = (v: boolean) => {
|
|
80
|
-
visible.value = v
|
|
81
|
-
}
|
|
82
|
-
provide('updateVisible', updateVisible)
|
|
83
|
-
|
|
84
|
-
const handleBeforeEnter = (el: RendererElement) => {
|
|
85
|
-
el.classList.add('showing')
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
const handleEnter = (el: RendererElement, done: () => void) => {
|
|
89
|
-
executeAfterTransition(() => done(), el as HTMLElement)
|
|
90
|
-
el.classList.add('show')
|
|
91
|
-
setTimeout(() => {
|
|
92
|
-
el.classList.remove('showing')
|
|
93
|
-
}, 1)
|
|
94
|
-
|
|
95
|
-
if (props.index) {
|
|
96
|
-
emit('show', props.index)
|
|
97
|
-
} else {
|
|
98
|
-
emit('show')
|
|
99
|
-
}
|
|
100
|
-
}
|
|
59
|
+
const timeout = ref(0)
|
|
60
|
+
const visible = ref()
|
|
101
61
|
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
el.classList.add('showing')
|
|
62
|
+
const updateVisible = (_visible: boolean) => {
|
|
63
|
+
visible.value = _visible
|
|
105
64
|
}
|
|
106
65
|
|
|
107
|
-
|
|
108
|
-
el.classList.remove('show')
|
|
109
|
-
el.classList.add('hide')
|
|
110
|
-
if (props.index) {
|
|
111
|
-
emit('close', props.index)
|
|
112
|
-
} else {
|
|
113
|
-
emit('close')
|
|
114
|
-
}
|
|
115
|
-
}
|
|
66
|
+
provide('updateVisible', updateVisible)
|
|
116
67
|
|
|
117
68
|
onMounted(() => {
|
|
69
|
+
if (props.visible) {
|
|
70
|
+
visible.value = props.visible
|
|
71
|
+
}
|
|
72
|
+
|
|
118
73
|
if (props.autohide) {
|
|
119
|
-
clearTimeout(timeout)
|
|
120
|
-
timeout = window.setTimeout(() => {
|
|
74
|
+
clearTimeout(timeout.value)
|
|
75
|
+
timeout.value = window.setTimeout(() => {
|
|
121
76
|
visible.value = false
|
|
122
77
|
emit('close')
|
|
123
78
|
}, props.delay)
|
|
@@ -129,29 +84,39 @@ const CToast = defineComponent({
|
|
|
129
84
|
Transition,
|
|
130
85
|
{
|
|
131
86
|
appear: true,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
87
|
+
enterFromClass: '',
|
|
88
|
+
enterActiveClass: 'show showing',
|
|
89
|
+
enterToClass: 'show',
|
|
90
|
+
leaveFromClass: 'show',
|
|
91
|
+
leaveActiveClass: 'show showing',
|
|
92
|
+
leaveToClass: 'show',
|
|
93
|
+
onAfterEnter: (el) => {
|
|
94
|
+
el.classList.add('show')
|
|
95
|
+
props.index ? emit('show', props.index) : emit('show')
|
|
96
|
+
},
|
|
97
|
+
onAfterLeave: () => {
|
|
98
|
+
props.index ? emit('close', props.index) : emit('close')
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
default: () =>
|
|
103
|
+
visible.value &&
|
|
104
|
+
h(
|
|
105
|
+
'div',
|
|
106
|
+
{
|
|
107
|
+
class: [
|
|
108
|
+
'toast fade',
|
|
109
|
+
{
|
|
110
|
+
[`bg-${props.color}`]: props.color,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
'aria-live': 'assertive',
|
|
114
|
+
'aria-atomic': true,
|
|
115
|
+
role: 'alert',
|
|
116
|
+
},
|
|
117
|
+
slots.default && slots.default(),
|
|
118
|
+
),
|
|
136
119
|
},
|
|
137
|
-
() =>
|
|
138
|
-
visible.value &&
|
|
139
|
-
h(
|
|
140
|
-
'div',
|
|
141
|
-
{
|
|
142
|
-
class: [
|
|
143
|
-
'toast fade',
|
|
144
|
-
{
|
|
145
|
-
[`bg-${props.color}`]: props.color,
|
|
146
|
-
},
|
|
147
|
-
],
|
|
148
|
-
'aria-live': 'assertive',
|
|
149
|
-
'aria-atomic': true,
|
|
150
|
-
role: 'alert',
|
|
151
|
-
ref: 'toastRef',
|
|
152
|
-
},
|
|
153
|
-
slots.default && slots.default(),
|
|
154
|
-
),
|
|
155
120
|
)
|
|
156
121
|
},
|
|
157
122
|
})
|
|
@@ -7,11 +7,7 @@ const CToastClose = defineComponent({
|
|
|
7
7
|
/**
|
|
8
8
|
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
9
9
|
*/
|
|
10
|
-
component:
|
|
11
|
-
type: String,
|
|
12
|
-
default: undefined,
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
10
|
+
component: String,
|
|
15
11
|
...CCloseButton.props,
|
|
16
12
|
},
|
|
17
13
|
emits: [
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CToast component renders correctly 1`] = `
|
|
4
|
-
"<transition-stub>
|
|
5
|
-
<div class
|
|
4
|
+
"<transition-stub enterfromclass="" enteractiveclass="show showing" entertoclass="show" leavefromclass="show" leaveactiveclass="show showing" leavetoclass="show" appear="true" persisted="false" css="true">
|
|
5
|
+
<div class="toast fade bg-warning" aria-live="assertive" aria-atomic="true" role="alert">Default slot</div>
|
|
6
6
|
</transition-stub>"
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
9
|
exports[`Loads and display CToast component renders correctly 1`] = `
|
|
10
|
-
"<transition-stub>
|
|
11
|
-
<div class
|
|
10
|
+
"<transition-stub enterfromclass="" enteractiveclass="show showing" entertoclass="show" leavefromclass="show" leaveactiveclass="show showing" leavetoclass="show" appear="true" persisted="false" css="true">
|
|
11
|
+
<div class="toast fade" aria-live="assertive" aria-atomic="true" role="alert">Default slot</div>
|
|
12
12
|
</transition-stub>"
|
|
13
13
|
`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CToastBody component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Loads and display CToastBody component renders correctly 1`] = `"<div class="toast-body">Default slot</div>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CToastClose component renders correctly 1`] = `"<button class
|
|
3
|
+
exports[`Customize CToastClose component renders correctly 1`] = `"<button class="btn btn-undefined" type="button">Default slot</button>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CToastClose component renders correctly 1`] = `"<button type
|
|
5
|
+
exports[`Loads and display CToastClose component renders correctly 1`] = `"<button type="button" class="btn btn-close" aria-label="Close"></button>"`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CToastHeader component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CToastHeader component renders correctly 1`] = `"<div class="toast-header">Default slot<button type="button" class="btn btn-close" aria-label="Close"></button></div>"`;
|
|
4
4
|
|
|
5
5
|
exports[`Loads and display CToastHeader component renders correctly 1`] = `
|
|
6
|
-
"<div class
|
|
6
|
+
"<div class="toast-header">Default slot
|
|
7
7
|
<!---->
|
|
8
8
|
</div>"
|
|
9
9
|
`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CToaster component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CToaster component renders correctly 1`] = `"<div class="toaster toast-container p-3 position-fixed top-0 end-0">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CToaster component renders correctly 1`] = `"<div class
|
|
5
|
+
exports[`Loads and display CToaster component renders correctly 1`] = `"<div class="toaster toast-container p-3">Default slot</div>"`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent, h, PropType, ref, RendererElement, Teleport, Transition } from 'vue'
|
|
2
2
|
import { createPopper, Placement } from '@popperjs/core'
|
|
3
3
|
|
|
4
|
-
import { executeAfterTransition } from '
|
|
4
|
+
import { executeAfterTransition } from '../../utils/transition'
|
|
5
5
|
|
|
6
6
|
const CTooltip = defineComponent({
|
|
7
7
|
name: 'CTooltip',
|
|
@@ -9,18 +9,13 @@ const CTooltip = defineComponent({
|
|
|
9
9
|
/**
|
|
10
10
|
* Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
|
|
11
11
|
*/
|
|
12
|
-
content:
|
|
13
|
-
type: String,
|
|
14
|
-
default: undefined,
|
|
15
|
-
required: false,
|
|
16
|
-
},
|
|
12
|
+
content: String,
|
|
17
13
|
/**
|
|
18
14
|
* Offset of the tooltip relative to its target.
|
|
19
15
|
*/
|
|
20
16
|
offset: {
|
|
21
17
|
type: Array,
|
|
22
18
|
default: () => [0, 0],
|
|
23
|
-
required: false,
|
|
24
19
|
},
|
|
25
20
|
/**
|
|
26
21
|
* Describes the placement of your component after Popper.js has applied all the modifiers that may have flipped or altered the originally provided placement property.
|
|
@@ -28,7 +23,6 @@ const CTooltip = defineComponent({
|
|
|
28
23
|
placement: {
|
|
29
24
|
type: String as PropType<Placement>,
|
|
30
25
|
default: 'top',
|
|
31
|
-
required: false,
|
|
32
26
|
validator: (value: string) => {
|
|
33
27
|
return ['top', 'right', 'bottom', 'left'].includes(value)
|
|
34
28
|
},
|
|
@@ -41,7 +35,6 @@ const CTooltip = defineComponent({
|
|
|
41
35
|
trigger: {
|
|
42
36
|
type: [String, Array] as PropType<string | string[]>,
|
|
43
37
|
default: 'hover',
|
|
44
|
-
required: false,
|
|
45
38
|
validator: (value: string | string[]) => {
|
|
46
39
|
if (typeof value === 'string') {
|
|
47
40
|
return ['click', 'focus', 'hover'].includes(value)
|
|
@@ -5,26 +5,17 @@ import { CCard, CCardBody } from '../card'
|
|
|
5
5
|
const CWidgetStatsA = defineComponent({
|
|
6
6
|
name: 'CWidgetStatsA',
|
|
7
7
|
props: {
|
|
8
|
-
color:
|
|
9
|
-
type: String,
|
|
10
|
-
default: undefined,
|
|
11
|
-
require: false,
|
|
12
|
-
},
|
|
8
|
+
color: String,
|
|
13
9
|
/**
|
|
14
10
|
* Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
|
|
15
11
|
*/
|
|
16
|
-
title:
|
|
17
|
-
type: String,
|
|
18
|
-
default: undefined,
|
|
19
|
-
require: false,
|
|
20
|
-
},
|
|
12
|
+
title: String,
|
|
21
13
|
/**
|
|
22
14
|
* Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
|
|
23
15
|
*/
|
|
24
16
|
value: {
|
|
25
17
|
type: [Number, String],
|
|
26
|
-
default: 0
|
|
27
|
-
require: false,
|
|
18
|
+
default: 0
|
|
28
19
|
},
|
|
29
20
|
},
|
|
30
21
|
/**
|
|
@@ -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 }) {
|