@coreui/vue-pro 4.8.0-next.1 → 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 +30 -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 +24 -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/smart-table/CSmartTable.d.ts +1 -1
- package/dist/components/smart-table/CSmartTableHead.d.ts +1 -1
- 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 +385 -1012
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +384 -1011
- 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 +37 -40
- 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 +15 -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 +12 -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
- package/dist/components/accordion/CAccordionCollapse.d.ts +0 -22
- package/dist/components/multi-select/CMultiSelect copy.d.ts +0 -305
- package/dist/components/pagination/CSmartPagination.d.ts +0 -257
- package/dist/utils/calendar.d.ts +0 -23
- package/dist/utils/getNextSibling.d.ts +0 -2
- package/dist/utils/getPreviousSibling.d.ts +0 -2
- package/dist/utils/isObjectInArray.d.ts +0 -2
- package/dist/utils/isVisible.d.ts +0 -2
- package/dist/utils/time.d.ts +0 -21
|
@@ -6,33 +6,22 @@ const CLink = defineComponent({
|
|
|
6
6
|
/**
|
|
7
7
|
* Toggle the active state for the component.
|
|
8
8
|
*/
|
|
9
|
-
active:
|
|
10
|
-
type: Boolean,
|
|
11
|
-
required: false,
|
|
12
|
-
},
|
|
9
|
+
active: Boolean,
|
|
13
10
|
/**
|
|
14
11
|
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
15
12
|
*/
|
|
16
13
|
component: {
|
|
17
14
|
type: String,
|
|
18
|
-
required: false,
|
|
19
15
|
default: 'a',
|
|
20
16
|
},
|
|
21
17
|
/**
|
|
22
18
|
* Toggle the disabled state for the component.
|
|
23
19
|
*/
|
|
24
|
-
disabled:
|
|
25
|
-
type: Boolean,
|
|
26
|
-
required: false,
|
|
27
|
-
},
|
|
20
|
+
disabled: Boolean,
|
|
28
21
|
/**
|
|
29
22
|
* The href attribute specifies the URL of the page the link goes to.
|
|
30
23
|
*/
|
|
31
|
-
href:
|
|
32
|
-
type: String,
|
|
33
|
-
default: undefined,
|
|
34
|
-
required: false,
|
|
35
|
-
},
|
|
24
|
+
href: String,
|
|
36
25
|
},
|
|
37
26
|
emits: [
|
|
38
27
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CLink component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CLink component renders correctly 1`] = `"<div class="active disabled" aria-current="page" href="/bazinga">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CLink component renders correctly 1`] = `"<a class
|
|
5
|
+
exports[`Loads and display CLink component renders correctly 1`] = `"<a class="disabled" aria-disabled="true" tabindex="-1">Default slot</a>"`;
|
|
@@ -8,16 +8,12 @@ const CListGroup = defineComponent({
|
|
|
8
8
|
*/
|
|
9
9
|
component: {
|
|
10
10
|
type: String,
|
|
11
|
-
required: false,
|
|
12
11
|
default: 'ul',
|
|
13
12
|
},
|
|
14
13
|
/**
|
|
15
14
|
* Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., `<CCard>`)
|
|
16
15
|
*/
|
|
17
|
-
flush:
|
|
18
|
-
type: Boolean,
|
|
19
|
-
required: false,
|
|
20
|
-
},
|
|
16
|
+
flush: Boolean,
|
|
21
17
|
/**
|
|
22
18
|
* Specify a layout type.
|
|
23
19
|
*
|
|
@@ -25,8 +21,6 @@ const CListGroup = defineComponent({
|
|
|
25
21
|
*/
|
|
26
22
|
layout: {
|
|
27
23
|
type: String,
|
|
28
|
-
default: undefined,
|
|
29
|
-
required: false,
|
|
30
24
|
validator: (value: string) => {
|
|
31
25
|
return [
|
|
32
26
|
'horizontal',
|
|
@@ -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 CListGroupItem = defineComponent({
|
|
6
6
|
name: 'CListGroupItem',
|
|
@@ -8,10 +8,7 @@ const CListGroupItem = defineComponent({
|
|
|
8
8
|
/**
|
|
9
9
|
* Toggle the active state for the component.
|
|
10
10
|
*/
|
|
11
|
-
active:
|
|
12
|
-
type: Boolean,
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
11
|
+
active: Boolean,
|
|
15
12
|
/**
|
|
16
13
|
* Sets the color context of the component to one of CoreUI’s themed colors.
|
|
17
14
|
*
|
|
@@ -21,16 +18,12 @@ const CListGroupItem = defineComponent({
|
|
|
21
18
|
/**
|
|
22
19
|
* Toggle the disabled state for the component.
|
|
23
20
|
*/
|
|
24
|
-
disabled:
|
|
25
|
-
type: Boolean,
|
|
26
|
-
required: false,
|
|
27
|
-
},
|
|
21
|
+
disabled: Boolean,
|
|
28
22
|
/**
|
|
29
23
|
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
30
24
|
*/
|
|
31
25
|
component: {
|
|
32
26
|
type: String,
|
|
33
|
-
required: false,
|
|
34
27
|
default: 'li',
|
|
35
28
|
},
|
|
36
29
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CListGroup component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CListGroup component renders correctly 1`] = `"<div class="list-group list-group-flush list-group-horizontal-lg">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CListGroup component renders correctly 1`] = `"<ul class
|
|
5
|
+
exports[`Loads and display CListGroup component renders correctly 1`] = `"<ul class="list-group">Default slot</ul>"`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize (two) CListGroupItem component renders correctly 1`] = `"<button class
|
|
3
|
+
exports[`Customize (two) CListGroupItem component renders correctly 1`] = `"<button class="list-group-item list-group-item-action active disabled" active="true" disabled="" aria-current="true" aria-disabled="true">Default slot</button>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Customize CListGroupItem component renders correctly 1`] = `"<div class
|
|
5
|
+
exports[`Customize CListGroupItem component renders correctly 1`] = `"<div class="list-group-item list-group-item-warning active disabled" aria-current="true" aria-disabled="true">Default slot</div>"`;
|
|
6
6
|
|
|
7
|
-
exports[`Loads and display CListGroupItem component renders correctly 1`] = `"<li class
|
|
7
|
+
exports[`Loads and display CListGroupItem component renders correctly 1`] = `"<li class="list-group-item">Default slot</li>"`;
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
withDirectives,
|
|
11
11
|
} from 'vue'
|
|
12
12
|
|
|
13
|
-
import { CBackdrop } from '
|
|
13
|
+
import { CBackdrop } from '../backdrop/CBackdrop'
|
|
14
14
|
|
|
15
|
-
import { executeAfterTransition } from '
|
|
15
|
+
import { executeAfterTransition } from '../../utils/transition'
|
|
16
16
|
|
|
17
17
|
const CModal = defineComponent({
|
|
18
18
|
name: 'CModal',
|
|
@@ -50,10 +50,7 @@ const CModal = defineComponent({
|
|
|
50
50
|
/**
|
|
51
51
|
* A string of all className you want applied to the modal content component.
|
|
52
52
|
*/
|
|
53
|
-
contentClassName:
|
|
54
|
-
type: String,
|
|
55
|
-
default: undefined,
|
|
56
|
-
},
|
|
53
|
+
contentClassName: String,
|
|
57
54
|
/**
|
|
58
55
|
* Set modal to covers the entire user viewport
|
|
59
56
|
*
|
|
@@ -61,7 +58,6 @@ const CModal = defineComponent({
|
|
|
61
58
|
*/
|
|
62
59
|
fullscreen: {
|
|
63
60
|
type: [Boolean, String],
|
|
64
|
-
default: undefined,
|
|
65
61
|
validator: (value: boolean | string) => {
|
|
66
62
|
if (typeof value == 'string') {
|
|
67
63
|
return ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value)
|
|
@@ -82,9 +78,7 @@ const CModal = defineComponent({
|
|
|
82
78
|
/**
|
|
83
79
|
* Create a scrollable modal that allows scrolling the modal body.
|
|
84
80
|
*/
|
|
85
|
-
scrollable:
|
|
86
|
-
type: Boolean,
|
|
87
|
-
},
|
|
81
|
+
scrollable: Boolean,
|
|
88
82
|
/**
|
|
89
83
|
* Size the component small, large, or extra large.
|
|
90
84
|
*
|
|
@@ -92,7 +86,6 @@ const CModal = defineComponent({
|
|
|
92
86
|
*/
|
|
93
87
|
size: {
|
|
94
88
|
type: String,
|
|
95
|
-
default: undefined,
|
|
96
89
|
validator: (value: string) => {
|
|
97
90
|
return ['sm', 'lg', 'xl'].includes(value)
|
|
98
91
|
},
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CModal component renders correctly 1`] = `
|
|
4
|
-
"<transition-stub>
|
|
5
|
-
<div class
|
|
6
|
-
<div class
|
|
7
|
-
<div class
|
|
4
|
+
"<transition-stub appear="false" persisted="false" css="false">
|
|
5
|
+
<div class="modal">
|
|
6
|
+
<div class="modal-dialog modal-dialog-centered modal-fullscreen-lg-down modal-dialog-scrollable modal-lg" role="dialog">
|
|
7
|
+
<div class="modal-content bazinga">Default slot</div>
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
</transition-stub>"
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`Loads and display CModal component renders correctly 1`] = `
|
|
14
|
-
"<transition-stub>
|
|
15
|
-
<div class
|
|
16
|
-
<div class
|
|
17
|
-
<div class
|
|
14
|
+
"<transition-stub appear="false" persisted="false" css="false">
|
|
15
|
+
<div class="modal fade">
|
|
16
|
+
<div class="modal-dialog modal-fullscreen" role="dialog">
|
|
17
|
+
<div class="modal-content">Default slot</div>
|
|
18
18
|
</div>
|
|
19
19
|
</div>
|
|
20
20
|
</transition-stub>
|
|
21
|
-
<transition-stub class
|
|
22
|
-
<div class
|
|
21
|
+
<transition-stub appear="false" persisted="false" css="true" class="modal-backdrop">
|
|
22
|
+
<div class="fade"></div>
|
|
23
23
|
</transition-stub>"
|
|
24
24
|
`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CModalBody component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Loads and display CModalBody component renders correctly 1`] = `"<div class="modal-body">Default slot</div>"`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CModalFooter component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Loads and display CModalFooter component renders correctly 1`] = `"<div class="modal-footer">Default slot</div>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CModalHeader component renders correctly 1`] = `"<span class
|
|
3
|
+
exports[`Customize CModalHeader component renders correctly 1`] = `"<span class="modal-header">Default slot<button type="button" class="btn btn-close" aria-label="Close"></button></span>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CModalHeader component renders correctly 1`] = `"<span class
|
|
5
|
+
exports[`Loads and display CModalHeader component renders correctly 1`] = `"<span class="modal-header">Default slot<button type="button" class="btn btn-close" aria-label="Close"></button></span>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CModalTitle component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CModalTitle component renders correctly 1`] = `"<div class="modal-title">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CModalTitle component renders correctly 1`] = `"<h5 class
|
|
5
|
+
exports[`Loads and display CModalTitle component renders correctly 1`] = `"<h5 class="modal-title">Default slot</h5>"`;
|
|
@@ -8,7 +8,6 @@ const CNav = defineComponent({
|
|
|
8
8
|
*/
|
|
9
9
|
component: {
|
|
10
10
|
type: String,
|
|
11
|
-
required: false,
|
|
12
11
|
default: 'ul',
|
|
13
12
|
},
|
|
14
13
|
/**
|
|
@@ -18,8 +17,6 @@ const CNav = defineComponent({
|
|
|
18
17
|
*/
|
|
19
18
|
layout: {
|
|
20
19
|
type: String,
|
|
21
|
-
required: false,
|
|
22
|
-
default: undefined,
|
|
23
20
|
validator: (value: string) => {
|
|
24
21
|
return ['fill', 'justified'].includes(value)
|
|
25
22
|
},
|
|
@@ -31,8 +28,6 @@ const CNav = defineComponent({
|
|
|
31
28
|
*/
|
|
32
29
|
variant: {
|
|
33
30
|
type: String,
|
|
34
|
-
required: false,
|
|
35
|
-
default: undefined,
|
|
36
31
|
validator: (value: string) => {
|
|
37
32
|
return ['tabs', 'pills', 'underline'].includes(value)
|
|
38
33
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent, h, onMounted, ref, RendererElement, Transition, watch } from 'vue'
|
|
2
2
|
|
|
3
|
-
import { executeAfterTransition } from '
|
|
3
|
+
import { executeAfterTransition } from '../../utils/transition'
|
|
4
4
|
|
|
5
5
|
const CNavGroup = defineComponent({
|
|
6
6
|
name: 'CNavGroup',
|
|
@@ -8,33 +8,22 @@ const CNavLink = defineComponent({
|
|
|
8
8
|
/**
|
|
9
9
|
* Toggle the active state for the component.
|
|
10
10
|
*/
|
|
11
|
-
active:
|
|
12
|
-
type: Boolean,
|
|
13
|
-
required: false,
|
|
14
|
-
},
|
|
11
|
+
active: Boolean,
|
|
15
12
|
/**
|
|
16
13
|
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
17
14
|
*/
|
|
18
15
|
component: {
|
|
19
16
|
type: String,
|
|
20
|
-
required: false,
|
|
21
17
|
default: 'a',
|
|
22
18
|
},
|
|
23
19
|
/**
|
|
24
20
|
* Toggle the disabled state for the component.
|
|
25
21
|
*/
|
|
26
|
-
disabled:
|
|
27
|
-
type: Boolean,
|
|
28
|
-
required: false,
|
|
29
|
-
},
|
|
22
|
+
disabled: Boolean,
|
|
30
23
|
/**
|
|
31
24
|
* @ignore
|
|
32
25
|
*/
|
|
33
|
-
href:
|
|
34
|
-
type: String,
|
|
35
|
-
default: undefined,
|
|
36
|
-
required: false,
|
|
37
|
-
},
|
|
26
|
+
href: String,
|
|
38
27
|
},
|
|
39
28
|
setup(props, { slots }) {
|
|
40
29
|
return () =>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CNav component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CNav component renders correctly 1`] = `"<div class="nav nav-fill nav-pills" role="navigation">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CNav component renders correctly 1`] = `"<ul class
|
|
5
|
+
exports[`Loads and display CNav component renders correctly 1`] = `"<ul class="nav" role="navigation">Default slot</ul>"`;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CNavGroup component renders correctly 1`] = `
|
|
4
|
-
"<li class
|
|
5
|
-
<transition-stub>
|
|
6
|
-
<ul class
|
|
4
|
+
"<li class="nav-group show"><a class="nav-link nav-group-toggle">togglerContent</a>
|
|
5
|
+
<transition-stub appear="false" persisted="false" css="false">
|
|
6
|
+
<ul class="nav-group-items compact"></ul>
|
|
7
7
|
</transition-stub>
|
|
8
8
|
</li>"
|
|
9
9
|
`;
|
|
10
10
|
|
|
11
11
|
exports[`Loads and display CNavGroup component renders correctly 1`] = `
|
|
12
|
-
"<li class
|
|
12
|
+
"<li class="nav-group">
|
|
13
13
|
<!---->
|
|
14
|
-
<transition-stub>
|
|
14
|
+
<transition-stub appear="false" persisted="false" css="false">
|
|
15
15
|
<!---->
|
|
16
16
|
</transition-stub>
|
|
17
17
|
</li>"
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CNavGroupItems component renders correctly 1`] = `"<ul class
|
|
3
|
+
exports[`Loads and display CNavGroupItems component renders correctly 1`] = `"<ul class="nav-group-items">Default slot</ul>"`;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CNavItem component renders correctly 1`] = `
|
|
4
|
-
"<li class
|
|
5
|
-
<div class
|
|
4
|
+
"<li class="nav-item">
|
|
5
|
+
<div class="active disabled nav-link" aria-current="page" href="/bazinga">Default slot</div>
|
|
6
6
|
</li>"
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
|
-
exports[`Loads and display CNavItem component renders correctly 1`] = `"<li class
|
|
9
|
+
exports[`Loads and display CNavItem component renders correctly 1`] = `"<li class="nav-item">Default slot</li>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CNavLink component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CNavLink component renders correctly 1`] = `"<div class="active disabled nav-link" aria-current="page" href="/bazinga">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CNavLink component renders correctly 1`] = `"<a class
|
|
5
|
+
exports[`Loads and display CNavLink component renders correctly 1`] = `"<a class="nav-link">Default slot</a>"`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CNavTitle component renders correctly 1`] = `"<li class
|
|
3
|
+
exports[`Loads and display CNavTitle component renders correctly 1`] = `"<li class="nav-title">Default slot</li>"`;
|
|
@@ -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 CNavbar = defineComponent({
|
|
6
6
|
name: 'CNavbar',
|
|
@@ -18,8 +18,6 @@ const CNavbar = defineComponent({
|
|
|
18
18
|
*/
|
|
19
19
|
colorScheme: {
|
|
20
20
|
type: String,
|
|
21
|
-
default: undefined,
|
|
22
|
-
required: false,
|
|
23
21
|
validator: (value: string) => {
|
|
24
22
|
return ['dark', 'light'].includes(value)
|
|
25
23
|
},
|
|
@@ -30,7 +28,6 @@ const CNavbar = defineComponent({
|
|
|
30
28
|
component: {
|
|
31
29
|
type: String,
|
|
32
30
|
default: 'nav',
|
|
33
|
-
required: false,
|
|
34
31
|
},
|
|
35
32
|
/**
|
|
36
33
|
* Defines optional container wrapping children elements.
|
|
@@ -39,8 +36,6 @@ const CNavbar = defineComponent({
|
|
|
39
36
|
*/
|
|
40
37
|
container: {
|
|
41
38
|
type: [Boolean, String],
|
|
42
|
-
default: undefined,
|
|
43
|
-
required: false,
|
|
44
39
|
validator: (value: boolean | string) => {
|
|
45
40
|
return (
|
|
46
41
|
typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl', 'fluid'].includes(value)
|
|
@@ -54,8 +49,6 @@ const CNavbar = defineComponent({
|
|
|
54
49
|
*/
|
|
55
50
|
expand: {
|
|
56
51
|
type: [Boolean, String],
|
|
57
|
-
default: undefined,
|
|
58
|
-
required: false,
|
|
59
52
|
validator: (value: boolean | string) => {
|
|
60
53
|
return typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value)
|
|
61
54
|
},
|
|
@@ -67,8 +60,6 @@ const CNavbar = defineComponent({
|
|
|
67
60
|
*/
|
|
68
61
|
placement: {
|
|
69
62
|
type: String,
|
|
70
|
-
default: undefined,
|
|
71
|
-
required: false,
|
|
72
63
|
validator: (value: string) => {
|
|
73
64
|
return ['fixed-top', 'fixed-bottom', 'sticky-top'].includes(value)
|
|
74
65
|
},
|
|
@@ -10,16 +10,11 @@ const CNavbarBrand = defineComponent({
|
|
|
10
10
|
component: {
|
|
11
11
|
type: String,
|
|
12
12
|
default: 'a',
|
|
13
|
-
required: false,
|
|
14
13
|
},
|
|
15
14
|
/**
|
|
16
15
|
* The href attribute specifies the URL of the page the link goes to.
|
|
17
16
|
*/
|
|
18
|
-
href:
|
|
19
|
-
type: String,
|
|
20
|
-
default: undefined,
|
|
21
|
-
required: false,
|
|
22
|
-
},
|
|
17
|
+
href: String,
|
|
23
18
|
},
|
|
24
19
|
setup(props, { slots }) {
|
|
25
20
|
return () =>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize CNavbar component renders correctly 1`] = `
|
|
4
|
-
"<div class
|
|
5
|
-
<div class
|
|
4
|
+
"<div class="navbar bg-warning navbar-light navbar-expand-xl fixed-bottom">
|
|
5
|
+
<div class="container-lg">Default slot</div>
|
|
6
6
|
</div>"
|
|
7
7
|
`;
|
|
8
8
|
|
|
9
|
-
exports[`Loads and display CNavbar component renders correctly 1`] = `"<nav class
|
|
9
|
+
exports[`Loads and display CNavbar component renders correctly 1`] = `"<nav class="navbar">Default slot</nav>"`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize (two) CNavbarBrand component renders correctly 1`] = `"<a class
|
|
3
|
+
exports[`Customize (two) CNavbarBrand component renders correctly 1`] = `"<a class="navbar-brand" href="/bazinga">Default slot</a>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Customize CNavbarBrand component renders correctly 1`] = `"<div class
|
|
5
|
+
exports[`Customize CNavbarBrand component renders correctly 1`] = `"<div class="navbar-brand" href="/bazinga">Default slot</div>"`;
|
|
6
6
|
|
|
7
|
-
exports[`Loads and display CNavbarBrand component renders correctly 1`] = `"<a class
|
|
7
|
+
exports[`Loads and display CNavbarBrand component renders correctly 1`] = `"<a class="navbar-brand">Default slot</a>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CNavbarNav component renders correctly 1`] = `"<div class
|
|
3
|
+
exports[`Customize CNavbarNav component renders correctly 1`] = `"<div class="navbar-nav" role="navigation">Default slot</div>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CNavbarNav component renders correctly 1`] = `"<ul class
|
|
5
|
+
exports[`Loads and display CNavbarNav component renders correctly 1`] = `"<ul class="navbar-nav" role="navigation">Default slot</ul>"`;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Loads and display CNavbarText component renders correctly 1`] = `"<span class
|
|
3
|
+
exports[`Loads and display CNavbarText component renders correctly 1`] = `"<span class="navbar-text">Default slot</span>"`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`Customize CNavbarToggler component renders correctly 1`] = `"<button class
|
|
3
|
+
exports[`Customize CNavbarToggler component renders correctly 1`] = `"<button class="navbar-toggler">Default slot</button>"`;
|
|
4
4
|
|
|
5
|
-
exports[`Loads and display CNavbarToggler component renders correctly 1`] = `"<button class
|
|
5
|
+
exports[`Loads and display CNavbarToggler component renders correctly 1`] = `"<button class="navbar-toggler"><span class="navbar-toggler-icon"></span></button>"`;
|
|
@@ -3,7 +3,7 @@ import { defineComponent, h, ref, RendererElement, Transition, watch, withDirect
|
|
|
3
3
|
import { CBackdrop } from '../backdrop'
|
|
4
4
|
|
|
5
5
|
import { vVisible } from '../../directives/v-c-visible'
|
|
6
|
-
import { executeAfterTransition } from '
|
|
6
|
+
import { executeAfterTransition } from '../../utils/transition'
|
|
7
7
|
|
|
8
8
|
const COffcanvas = defineComponent({
|
|
9
9
|
name: 'COffcanvas',
|
|
@@ -40,7 +40,6 @@ const COffcanvas = defineComponent({
|
|
|
40
40
|
*/
|
|
41
41
|
placement: {
|
|
42
42
|
type: String,
|
|
43
|
-
default: undefined,
|
|
44
43
|
require: true,
|
|
45
44
|
validator: (value: string) => {
|
|
46
45
|
return ['start', 'end', 'top', 'bottom'].includes(value)
|
|
@@ -72,10 +71,14 @@ const COffcanvas = defineComponent({
|
|
|
72
71
|
type: Boolean,
|
|
73
72
|
default: false,
|
|
74
73
|
},
|
|
74
|
+
|
|
75
75
|
/**
|
|
76
76
|
* Toggle the visibility of offcanvas component.
|
|
77
77
|
*/
|
|
78
|
-
visible:
|
|
78
|
+
visible: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: false,
|
|
81
|
+
},
|
|
79
82
|
},
|
|
80
83
|
emits: [
|
|
81
84
|
/**
|
|
@@ -98,12 +101,12 @@ const COffcanvas = defineComponent({
|
|
|
98
101
|
},
|
|
99
102
|
)
|
|
100
103
|
|
|
104
|
+
|
|
101
105
|
watch(visible, () => {
|
|
102
|
-
if (visible.value) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
}
|
|
106
|
+
if (visible.value && !props.scroll) {
|
|
107
|
+
document.body.style.overflow = 'hidden'
|
|
108
|
+
document.body.style.paddingRight = '0px'
|
|
109
|
+
|
|
107
110
|
return
|
|
108
111
|
}
|
|
109
112
|
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`Customize COffcanvas component renders correctly 1`] = `
|
|
4
|
-
"<transition-stub>
|
|
5
|
-
<div class
|
|
4
|
+
"<transition-stub appear="false" persisted="false" css="false">
|
|
5
|
+
<div class="offcanvas offcanvas-bottom" role="dialog" tabindex="-1">Default slot</div>
|
|
6
6
|
</transition-stub>
|
|
7
|
-
<transition-stub class
|
|
8
|
-
<div class
|
|
7
|
+
<transition-stub appear="false" persisted="false" css="true" class="offcanvas-backdrop">
|
|
8
|
+
<div class="fade"></div>
|
|
9
9
|
</transition-stub>"
|
|
10
10
|
`;
|
|
11
11
|
|
|
12
12
|
exports[`Loads and display COffcanvas component renders correctly 1`] = `
|
|
13
|
-
"<transition-stub>
|
|
14
|
-
<div class
|
|
13
|
+
"<transition-stub appear="false" persisted="false" css="false">
|
|
14
|
+
<div class="offcanvas offcanvas-end" role="dialog" tabindex="-1">Default slot</div>
|
|
15
15
|
</transition-stub>
|
|
16
|
-
<transition-stub class
|
|
17
|
-
<div class
|
|
16
|
+
<transition-stub appear="false" persisted="false" css="true" class="offcanvas-backdrop">
|
|
17
|
+
<div class="fade"></div>
|
|
18
18
|
</transition-stub>"
|
|
19
19
|
`;
|