@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.
Files changed (309) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/CAccordion.d.ts +2 -11
  3. package/dist/components/accordion/CAccordionItem.d.ts +3 -13
  4. package/dist/components/alert/CAlert.d.ts +2 -17
  5. package/dist/components/alert/CAlertHeading.d.ts +0 -2
  6. package/dist/components/avatar/CAvatar.d.ts +13 -25
  7. package/dist/components/backdrop/CBackdrop.d.ts +1 -4
  8. package/dist/components/badge/CBadge.d.ts +0 -12
  9. package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +4 -19
  10. package/dist/components/button/CButton.d.ts +6 -43
  11. package/dist/components/button-group/CButtonGroup.d.ts +2 -13
  12. package/dist/components/card/CCardHeader.d.ts +0 -2
  13. package/dist/components/card/CCardImage.d.ts +0 -7
  14. package/dist/components/card/CCardLink.d.ts +0 -2
  15. package/dist/components/card/CCardSubtitle.d.ts +0 -2
  16. package/dist/components/card/CCardText.d.ts +0 -2
  17. package/dist/components/card/CCardTitle.d.ts +0 -2
  18. package/dist/components/carousel/CCarousel.d.ts +0 -10
  19. package/dist/components/carousel/CCarouselItem.d.ts +0 -4
  20. package/dist/components/close-button/CCloseButton.d.ts +5 -17
  21. package/dist/components/collapse/CCollapse.d.ts +4 -16
  22. package/dist/components/dropdown/CDropdown.d.ts +11 -46
  23. package/dist/components/dropdown/CDropdownHeader.d.ts +0 -2
  24. package/dist/components/dropdown/CDropdownItem.d.ts +6 -29
  25. package/dist/components/dropdown/CDropdownMenu.d.ts +0 -2
  26. package/dist/components/dropdown/CDropdownToggle.d.ts +7 -43
  27. package/dist/components/footer/CFooter.d.ts +1 -7
  28. package/dist/components/form/CForm.d.ts +2 -8
  29. package/dist/components/form/CFormCheck.d.ts +19 -51
  30. package/dist/components/form/CFormControlValidation.d.ts +8 -24
  31. package/dist/components/form/CFormFeedback.d.ts +0 -2
  32. package/dist/components/form/CFormInput.d.ts +145 -194
  33. package/dist/components/form/CFormLabel.d.ts +3 -13
  34. package/dist/components/form/CFormRange.d.ts +16 -64
  35. package/dist/components/form/CFormSelect.d.ts +20 -82
  36. package/dist/components/form/CFormSwitch.d.ts +13 -35
  37. package/dist/components/form/CFormText.d.ts +0 -2
  38. package/dist/components/form/CFormTextarea.d.ts +22 -69
  39. package/dist/components/form/CInputGroup.d.ts +1 -7
  40. package/dist/components/form/CInputGroupText.d.ts +0 -2
  41. package/dist/components/grid/CCol.d.ts +1 -32
  42. package/dist/components/grid/CContainer.d.ts +12 -48
  43. package/dist/components/grid/CRow.d.ts +23 -68
  44. package/dist/components/header/CHeader.d.ts +1 -12
  45. package/dist/components/header/CHeaderBrand.d.ts +0 -2
  46. package/dist/components/header/CHeaderNav.d.ts +0 -2
  47. package/dist/components/image/CImage.d.ts +6 -29
  48. package/dist/components/link/CLink.d.ts +6 -29
  49. package/dist/components/list-group/CListGroup.d.ts +2 -15
  50. package/dist/components/list-group/CListGroupItem.d.ts +4 -18
  51. package/dist/components/modal/CModal.d.ts +4 -21
  52. package/dist/components/modal/CModalHeader.d.ts +0 -2
  53. package/dist/components/modal/CModalTitle.d.ts +0 -2
  54. package/dist/components/nav/CNav.d.ts +0 -12
  55. package/dist/components/nav/CNavLink.d.ts +6 -29
  56. package/dist/components/navbar/CNavbar.d.ts +0 -22
  57. package/dist/components/navbar/CNavbarBrand.d.ts +2 -13
  58. package/dist/components/navbar/CNavbarNav.d.ts +0 -2
  59. package/dist/components/offcanvas/COffcanvas.d.ts +8 -5
  60. package/dist/components/offcanvas/COffcanvasTitle.d.ts +0 -2
  61. package/dist/components/pagination/CPagination.d.ts +1 -12
  62. package/dist/components/pagination/CPaginationItem.d.ts +8 -38
  63. package/dist/components/placeholder/CPlaceholder.d.ts +12 -78
  64. package/dist/components/popover/CPopover.d.ts +4 -28
  65. package/dist/components/progress/CProgressBar.d.ts +2 -15
  66. package/dist/components/props.d.ts +5 -6
  67. package/dist/components/sidebar/CSidebar.d.ts +4 -22
  68. package/dist/components/spinner/CSpinner.d.ts +0 -16
  69. package/dist/components/table/CTable.d.ts +17 -110
  70. package/dist/components/table/CTableDataCell.d.ts +4 -21
  71. package/dist/components/table/CTableRow.d.ts +2 -13
  72. package/dist/components/table/types.d.ts +14 -0
  73. package/dist/components/table/utils.d.ts +5 -0
  74. package/dist/components/tabs/CTabPane.d.ts +0 -2
  75. package/dist/components/toast/CToast.d.ts +7 -46
  76. package/dist/components/toast/CToastHeader.d.ts +2 -8
  77. package/dist/components/toast/CToaster.d.ts +1 -7
  78. package/dist/components/tooltip/CTooltip.d.ts +2 -17
  79. package/dist/components/widgets/CWidgetStatsA.d.ts +4 -24
  80. package/dist/components/widgets/CWidgetStatsB.d.ts +6 -34
  81. package/dist/components/widgets/CWidgetStatsC.d.ts +14 -23
  82. package/dist/components/widgets/CWidgetStatsD.d.ts +0 -2
  83. package/dist/components/widgets/CWidgetStatsE.d.ts +2 -13
  84. package/dist/components/widgets/CWidgetStatsF.d.ts +4 -24
  85. package/dist/index.es.js +356 -999
  86. package/dist/index.es.js.map +1 -1
  87. package/dist/index.js +356 -999
  88. package/dist/index.js.map +1 -1
  89. package/dist/props.d.ts +19 -0
  90. package/dist/types.d.ts +5 -0
  91. package/package.json +13 -5
  92. package/src/components/accordion/CAccordion.ts +1 -5
  93. package/src/components/accordion/CAccordionBody.ts +1 -1
  94. package/src/components/accordion/CAccordionItem.ts +1 -6
  95. package/src/components/accordion/__tests__/__snapshots__/CAccordion.spec.ts.snap +1 -1
  96. package/src/components/accordion/__tests__/__snapshots__/CAccordionBody.spec.ts.snap +3 -3
  97. package/src/components/accordion/__tests__/__snapshots__/CAccordionButton.spec.ts.snap +1 -1
  98. package/src/components/accordion/__tests__/__snapshots__/CAccordionHeader.spec.ts.snap +1 -1
  99. package/src/components/accordion/__tests__/__snapshots__/CAccordionItem.spec.ts.snap +1 -1
  100. package/src/components/alert/CAlert.ts +4 -12
  101. package/src/components/alert/CAlertHeading.ts +0 -1
  102. package/src/components/alert/__tests__/CAlert.spec.ts +1 -1
  103. package/src/components/alert/__tests__/__snapshots__/CAlert.spec.ts.snap +16 -1
  104. package/src/components/alert/__tests__/__snapshots__/CAlertHeading.spec.ts.snap +2 -2
  105. package/src/components/alert/__tests__/__snapshots__/CAlertLink.spec.ts.snap +1 -1
  106. package/src/components/avatar/CAvatar.ts +3 -10
  107. package/src/components/avatar/__tests__/__snapshots__/CAvatar.spec.ts.snap +2 -2
  108. package/src/components/backdrop/CBackdrop.ts +7 -29
  109. package/src/components/backdrop/__tests__/__snapshots__/CBackdrop.spec.ts.snap +2 -2
  110. package/src/components/badge/CBadge.ts +1 -6
  111. package/src/components/badge/__tests__/CBadge.spec.ts +1 -1
  112. package/src/components/breadcrumb/CBreadcrumbItem.ts +2 -9
  113. package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumb.spec.ts.snap +2 -2
  114. package/src/components/breadcrumb/__tests__/__snapshots__/CBreadcrumbItem.spec.ts.snap +2 -2
  115. package/src/components/button/CButton.ts +5 -21
  116. package/src/components/button/__tests__/__snapshots__/CButton.spec.ts.snap +3 -3
  117. package/src/components/button-group/CButtonGroup.ts +1 -6
  118. package/src/components/button-group/__tests__/__snapshots__/CButtonGroup.spec.ts.snap +2 -2
  119. package/src/components/button-group/__tests__/__snapshots__/CButtonToolbar.spec.ts.snap +1 -1
  120. package/src/components/callout/CCallout.ts +2 -1
  121. package/src/components/callout/__tests__/__snapshots__/CCallout.spec.ts.snap +2 -2
  122. package/src/components/card/CCard.ts +2 -1
  123. package/src/components/card/CCardHeader.ts +0 -1
  124. package/src/components/card/CCardImage.ts +0 -3
  125. package/src/components/card/CCardLink.ts +0 -1
  126. package/src/components/card/CCardSubtitle.ts +0 -1
  127. package/src/components/card/CCardText.ts +0 -1
  128. package/src/components/card/CCardTitle.ts +0 -1
  129. package/src/components/card/__tests__/__snapshots__/CCard.spec.ts.snap +2 -2
  130. package/src/components/card/__tests__/__snapshots__/CCardBody.spec.ts.snap +1 -1
  131. package/src/components/card/__tests__/__snapshots__/CCardFooter.spec.ts.snap +1 -1
  132. package/src/components/card/__tests__/__snapshots__/CCardGroup.spec.ts.snap +1 -1
  133. package/src/components/card/__tests__/__snapshots__/CCardHeader.spec.ts.snap +2 -2
  134. package/src/components/card/__tests__/__snapshots__/CCardImage.spec.ts.snap +2 -2
  135. package/src/components/card/__tests__/__snapshots__/CCardImageOverlay.spec.ts.snap +1 -1
  136. package/src/components/card/__tests__/__snapshots__/CCardLink.spec.ts.snap +1 -1
  137. package/src/components/card/__tests__/__snapshots__/CCardSubtitle.spec.ts.snap +2 -2
  138. package/src/components/card/__tests__/__snapshots__/CCardText.spec.ts.snap +2 -2
  139. package/src/components/card/__tests__/__snapshots__/CCardTitle.spec.ts.snap +2 -2
  140. package/src/components/carousel/CCarousel.ts +3 -8
  141. package/src/components/carousel/CCarouselItem.ts +0 -2
  142. package/src/components/carousel/__tests__/__snapshots__/CCarousel.spec.ts.snap +5 -5
  143. package/src/components/carousel/__tests__/__snapshots__/CCarouselCaption.spec.ts.snap +1 -1
  144. package/src/components/carousel/__tests__/__snapshots__/CCarouselItem.spec.ts.snap +2 -2
  145. package/src/components/close-button/CCloseButton.ts +2 -8
  146. package/src/components/close-button/__tests__/__snapshots__/CCloseButton.spec.ts.snap +2 -2
  147. package/src/components/collapse/CCollapse.ts +3 -9
  148. package/src/components/collapse/__test__/__snapshots__/CCollapse.spec.ts.snap +4 -4
  149. package/src/components/dropdown/CDropdown.ts +6 -21
  150. package/src/components/dropdown/CDropdownHeader.ts +0 -1
  151. package/src/components/dropdown/CDropdownItem.ts +3 -14
  152. package/src/components/dropdown/CDropdownMenu.ts +0 -1
  153. package/src/components/dropdown/CDropdownToggle.ts +8 -23
  154. package/src/components/dropdown/__tests__/CDropdown.spec.ts +1 -1
  155. package/src/components/dropdown/__tests__/__snapshots__/CDropdown.spec.ts.snap +2 -2
  156. package/src/components/dropdown/__tests__/__snapshots__/CDropdownDivider.spec.ts.snap +1 -1
  157. package/src/components/dropdown/__tests__/__snapshots__/CDropdownHeader.spec.ts.snap +2 -2
  158. package/src/components/dropdown/__tests__/__snapshots__/CDropdownItem.spec.ts.snap +2 -2
  159. package/src/components/dropdown/__tests__/__snapshots__/CDropdownMenu.spec.ts.snap +2 -2
  160. package/src/components/dropdown/__tests__/__snapshots__/CDropdownToggle.spec.ts.snap +2 -2
  161. package/src/components/footer/CFooter.ts +0 -2
  162. package/src/components/footer/__tests__/__snapshots__/CFooter.spec.ts.snap +2 -2
  163. package/src/components/form/CForm.ts +1 -4
  164. package/src/components/form/CFormCheck.ts +9 -25
  165. package/src/components/form/CFormControlValidation.ts +4 -12
  166. package/src/components/form/CFormControlWrapper.ts +4 -12
  167. package/src/components/form/CFormFeedback.ts +0 -1
  168. package/src/components/form/CFormInput.ts +11 -37
  169. package/src/components/form/CFormLabel.ts +1 -5
  170. package/src/components/form/CFormRange.ts +8 -30
  171. package/src/components/form/CFormSelect.ts +10 -39
  172. package/src/components/form/CFormSwitch.ts +6 -17
  173. package/src/components/form/CFormText.ts +0 -1
  174. package/src/components/form/CFormTextarea.ts +11 -34
  175. package/src/components/form/CInputGroup.ts +0 -2
  176. package/src/components/form/CInputGroupText.ts +0 -1
  177. package/src/components/form/__tests__/__snapshots__/CForm.spec.ts.snap +2 -2
  178. package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +5 -5
  179. package/src/components/form/__tests__/__snapshots__/CFormFeedback.spec.ts.snap +3 -3
  180. package/src/components/form/__tests__/__snapshots__/CFormFloating.spec.ts.snap +1 -1
  181. package/src/components/form/__tests__/__snapshots__/CFormInput.spec.ts.snap +3 -3
  182. package/src/components/form/__tests__/__snapshots__/CFormLabel.spec.ts.snap +2 -2
  183. package/src/components/form/__tests__/__snapshots__/CFormRange.spec.ts.snap +2 -2
  184. package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.ts.snap +2 -2
  185. package/src/components/form/__tests__/__snapshots__/CFormSwitch.spec.ts.snap +2 -2
  186. package/src/components/form/__tests__/__snapshots__/CFormText.spec.ts.snap +2 -2
  187. package/src/components/form/__tests__/__snapshots__/CFormTextarea.spec.ts.snap +2 -2
  188. package/src/components/form/__tests__/__snapshots__/CInputGroup.spec.ts.snap +2 -2
  189. package/src/components/form/__tests__/__snapshots__/CInputGroupText.spec.ts.snap +2 -2
  190. package/src/components/grid/CCol.ts +0 -12
  191. package/src/components/grid/CContainer.ts +6 -24
  192. package/src/components/grid/CRow.ts +11 -35
  193. package/src/components/grid/__tests__/__snapshots__/CCol.spec.ts.snap +2 -2
  194. package/src/components/grid/__tests__/__snapshots__/CContainer.spec.ts.snap +2 -2
  195. package/src/components/grid/__tests__/__snapshots__/CRow.spec.ts.snap +2 -2
  196. package/src/components/header/CHeader.ts +0 -4
  197. package/src/components/header/CHeaderBrand.ts +0 -1
  198. package/src/components/header/CHeaderNav.ts +0 -1
  199. package/src/components/header/__tests__/__snapshots__/CHeader.spec.ts.snap +3 -3
  200. package/src/components/header/__tests__/__snapshots__/CHeaderBrand.spec.ts.snap +2 -2
  201. package/src/components/header/__tests__/__snapshots__/CHeaderDivider.spec.ts.snap +1 -1
  202. package/src/components/header/__tests__/__snapshots__/CHeaderNav.spec.ts.snap +2 -2
  203. package/src/components/header/__tests__/__snapshots__/CHeaderText.spec.ts.snap +1 -1
  204. package/src/components/header/__tests__/__snapshots__/CHeaderToggler.spec.ts.snap +2 -2
  205. package/src/components/image/CImage.ts +3 -14
  206. package/src/components/image/__tests__/__snapshots__/CImage.spec.ts.snap +3 -3
  207. package/src/components/link/CLink.ts +3 -14
  208. package/src/components/link/__tests__/__snapshots__/CLink.spec.ts.snap +2 -2
  209. package/src/components/list-group/CListGroup.ts +1 -7
  210. package/src/components/list-group/CListGroupItem.ts +3 -10
  211. package/src/components/list-group/__tests__/__snapshots__/CListGroup.spec.ts.snap +2 -2
  212. package/src/components/list-group/__tests__/__snapshots__/CListGroupItem.spec.ts.snap +3 -3
  213. package/src/components/modal/CModal.ts +4 -11
  214. package/src/components/modal/CModalHeader.ts +0 -1
  215. package/src/components/modal/CModalTitle.ts +0 -1
  216. package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +10 -10
  217. package/src/components/modal/__tests__/__snapshots__/CModalBody.spec.ts.snap +1 -1
  218. package/src/components/modal/__tests__/__snapshots__/CModalFooter.spec.ts.snap +1 -1
  219. package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.ts.snap +2 -2
  220. package/src/components/modal/__tests__/__snapshots__/CModalTitle.spec.ts.snap +2 -2
  221. package/src/components/nav/CNav.ts +0 -5
  222. package/src/components/nav/CNavGroup.ts +1 -1
  223. package/src/components/nav/CNavLink.ts +3 -14
  224. package/src/components/nav/__tests__/__snapshots__/CNav.spec.ts.snap +2 -2
  225. package/src/components/nav/__tests__/__snapshots__/CNavGroup.spec.ts.snap +5 -5
  226. package/src/components/nav/__tests__/__snapshots__/CNavGroupItems.spec.ts.snap +1 -1
  227. package/src/components/nav/__tests__/__snapshots__/CNavItem.spec.ts.snap +3 -3
  228. package/src/components/nav/__tests__/__snapshots__/CNavLink.spec.ts.snap +2 -2
  229. package/src/components/nav/__tests__/__snapshots__/CNavTitle.spec.ts.snap +1 -1
  230. package/src/components/navbar/CNavbar.ts +1 -10
  231. package/src/components/navbar/CNavbarBrand.ts +1 -6
  232. package/src/components/navbar/CNavbarNav.ts +0 -1
  233. package/src/components/navbar/__tests__/__snapshots__/CNavbar.spec.ts.snap +3 -3
  234. package/src/components/navbar/__tests__/__snapshots__/CNavbarBrand.spec.ts.snap +3 -3
  235. package/src/components/navbar/__tests__/__snapshots__/CNavbarNav.spec.ts.snap +2 -2
  236. package/src/components/navbar/__tests__/__snapshots__/CNavbarText.spec.ts.snap +1 -1
  237. package/src/components/navbar/__tests__/__snapshots__/CNavbarToggler.spec.ts.snap +2 -2
  238. package/src/components/offcanvas/COffcanvas.ts +11 -8
  239. package/src/components/offcanvas/COffcanvasTitle.ts +0 -1
  240. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.ts.snap +8 -8
  241. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasBody.spec.ts.snap +1 -1
  242. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasHeader.spec.ts.snap +1 -1
  243. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasTitle.spec.ts.snap +2 -2
  244. package/src/components/pagination/CPagination.ts +0 -4
  245. package/src/components/pagination/CPaginationItem.ts +4 -18
  246. package/src/components/pagination/__tests__/__snapshots__/CPagination.spec.ts.snap +2 -2
  247. package/src/components/pagination/__tests__/__snapshots__/CPaginationItem.spec.ts.snap +2 -2
  248. package/src/components/placeholder/CPlaceholder.ts +7 -36
  249. package/src/components/placeholder/__tests__/CPlaceholder.spec.ts +1 -1
  250. package/src/components/popover/CPopover.ts +3 -14
  251. package/src/components/progress/CProgress.ts +1 -5
  252. package/src/components/progress/CProgressBar.ts +2 -8
  253. package/src/components/progress/__tests__/__snapshots__/CProgress.spec.ts.snap +2 -2
  254. package/src/components/progress/__tests__/__snapshots__/CProgressBar.spec.ts.snap +2 -2
  255. package/src/components/props.ts +10 -8
  256. package/src/components/sidebar/CSidebar.ts +3 -11
  257. package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -2
  258. package/src/components/sidebar/__tests__/__snapshots__/CSidebarBrand.spec.ts.snap +1 -1
  259. package/src/components/sidebar/__tests__/__snapshots__/CSidebarFooter.spec.ts.snap +1 -1
  260. package/src/components/sidebar/__tests__/__snapshots__/CSidebarHeader.spec.ts.snap +1 -1
  261. package/src/components/sidebar/__tests__/__snapshots__/CSidebarNav.spec.ts.snap +1 -1
  262. package/src/components/sidebar/__tests__/__snapshots__/CSidebarToggler.spec.ts.snap +1 -1
  263. package/src/components/smart-table/CSmartTable.ts +7 -7
  264. package/src/components/spinner/CSpinner.ts +0 -7
  265. package/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.ts.snap +2 -2
  266. package/src/components/table/CTable.ts +21 -93
  267. package/src/components/table/CTableBody.ts +1 -1
  268. package/src/components/table/CTableDataCell.ts +3 -11
  269. package/src/components/table/CTableFoot.ts +1 -1
  270. package/src/components/table/CTableHead.ts +1 -1
  271. package/src/components/table/CTableHeaderCell.ts +1 -1
  272. package/src/components/table/CTableRow.ts +2 -7
  273. package/src/components/table/__tests__/__snapshots__/CTable.spec.ts.snap +15 -3
  274. package/src/components/table/__tests__/__snapshots__/CTableBody.spec.ts.snap +2 -2
  275. package/src/components/table/__tests__/__snapshots__/CTableDataCell.spec.ts.snap +2 -2
  276. package/src/components/table/__tests__/__snapshots__/CTableFoot.spec.ts.snap +2 -2
  277. package/src/components/table/__tests__/__snapshots__/CTableHead.spec.ts.snap +2 -2
  278. package/src/components/table/__tests__/__snapshots__/CTableHeaderCell.spec.ts.snap +2 -2
  279. package/src/components/table/__tests__/__snapshots__/CTableRow.spec.ts.snap +2 -2
  280. package/src/components/table/types.ts +20 -0
  281. package/src/components/table/utils.ts +24 -0
  282. package/src/components/tabs/CTabPane.ts +1 -2
  283. package/src/components/tabs/__tests__/__snapshots__/CTabContent.spec.ts.snap +1 -1
  284. package/src/components/tabs/__tests__/__snapshots__/CTabPane.spec.ts.snap +4 -4
  285. package/src/components/toast/CToast.ts +48 -83
  286. package/src/components/toast/CToastClose.ts +1 -5
  287. package/src/components/toast/CToastHeader.ts +1 -4
  288. package/src/components/toast/CToaster.ts +0 -2
  289. package/src/components/toast/__tests__/CToast.spec.ts +3 -1
  290. package/src/components/toast/__tests__/__snapshots__/CToast.spec.ts.snap +4 -4
  291. package/src/components/toast/__tests__/__snapshots__/CToastBody.spec.ts.snap +1 -1
  292. package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +2 -2
  293. package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.ts.snap +2 -2
  294. package/src/components/toast/__tests__/__snapshots__/CToaster.spec.ts.snap +2 -2
  295. package/src/components/tooltip/CTooltip.ts +2 -9
  296. package/src/components/widgets/CWidgetStatsA.ts +3 -12
  297. package/src/components/widgets/CWidgetStatsB.ts +8 -20
  298. package/src/components/widgets/CWidgetStatsC.ts +5 -14
  299. package/src/components/widgets/CWidgetStatsD.ts +4 -4
  300. package/src/components/widgets/CWidgetStatsE.ts +3 -8
  301. package/src/components/widgets/CWidgetStatsF.ts +6 -14
  302. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsA.spec.ts.snap +3 -3
  303. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsB.spec.ts.snap +6 -6
  304. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsC.spec.ts.snap +7 -7
  305. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsD.spec.ts.snap +10 -10
  306. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap +4 -4
  307. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsF.spec.ts.snap +6 -6
  308. package/src/props.ts +88 -0
  309. package/src/types.ts +54 -0
@@ -4,18 +4,13 @@ declare const CPopover: import("vue").DefineComponent<{
4
4
  /**
5
5
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
6
6
  */
7
- content: {
8
- type: StringConstructor;
9
- default: undefined;
10
- required: false;
11
- };
7
+ content: StringConstructor;
12
8
  /**
13
9
  * Offset of the popover relative to its target.
14
10
  */
15
11
  offset: {
16
12
  type: ArrayConstructor;
17
13
  default: () => number[];
18
- required: false;
19
14
  };
20
15
  /**
21
16
  * 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.
@@ -23,17 +18,12 @@ declare const CPopover: import("vue").DefineComponent<{
23
18
  placement: {
24
19
  type: PropType<Placement>;
25
20
  default: string;
26
- required: false;
27
21
  validator: (value: string) => boolean;
28
22
  };
29
23
  /**
30
24
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
31
25
  */
32
- title: {
33
- type: StringConstructor;
34
- default: undefined;
35
- required: false;
36
- };
26
+ title: StringConstructor;
37
27
  /**
38
28
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
39
29
  *
@@ -42,7 +32,6 @@ declare const CPopover: import("vue").DefineComponent<{
42
32
  trigger: {
43
33
  type: PropType<string | string[]>;
44
34
  default: string;
45
- required: false;
46
35
  validator: (value: string | string[]) => boolean;
47
36
  };
48
37
  /**
@@ -57,18 +46,13 @@ declare const CPopover: import("vue").DefineComponent<{
57
46
  /**
58
47
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
59
48
  */
60
- content: {
61
- type: StringConstructor;
62
- default: undefined;
63
- required: false;
64
- };
49
+ content: StringConstructor;
65
50
  /**
66
51
  * Offset of the popover relative to its target.
67
52
  */
68
53
  offset: {
69
54
  type: ArrayConstructor;
70
55
  default: () => number[];
71
- required: false;
72
56
  };
73
57
  /**
74
58
  * 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.
@@ -76,17 +60,12 @@ declare const CPopover: import("vue").DefineComponent<{
76
60
  placement: {
77
61
  type: PropType<Placement>;
78
62
  default: string;
79
- required: false;
80
63
  validator: (value: string) => boolean;
81
64
  };
82
65
  /**
83
66
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
84
67
  */
85
- title: {
86
- type: StringConstructor;
87
- default: undefined;
88
- required: false;
89
- };
68
+ title: StringConstructor;
90
69
  /**
91
70
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
92
71
  *
@@ -95,7 +74,6 @@ declare const CPopover: import("vue").DefineComponent<{
95
74
  trigger: {
96
75
  type: PropType<string | string[]>;
97
76
  default: string;
98
- required: false;
99
77
  validator: (value: string | string[]) => boolean;
100
78
  };
101
79
  /**
@@ -107,10 +85,8 @@ declare const CPopover: import("vue").DefineComponent<{
107
85
  onShow?: ((...args: any[]) => any) | undefined;
108
86
  }, {
109
87
  visible: boolean;
110
- title: string;
111
88
  placement: Placement;
112
89
  trigger: string | string[];
113
90
  offset: unknown[];
114
- content: string;
115
91
  }>;
116
92
  export { CPopover };
@@ -2,10 +2,7 @@ declare const CProgressBar: import("vue").DefineComponent<{
2
2
  /**
3
3
  * Use to animate the stripes right to left via CSS3 animations.
4
4
  */
5
- animated: {
6
- type: BooleanConstructor;
7
- required: false;
8
- };
5
+ animated: BooleanConstructor;
9
6
  /**
10
7
  * Sets the color context of the component to one of CoreUI’s themed colors.
11
8
  *
@@ -20,7 +17,6 @@ declare const CProgressBar: import("vue").DefineComponent<{
20
17
  */
21
18
  value: {
22
19
  type: NumberConstructor;
23
- required: false;
24
20
  default: number;
25
21
  };
26
22
  /**
@@ -30,8 +26,6 @@ declare const CProgressBar: import("vue").DefineComponent<{
30
26
  */
31
27
  variant: {
32
28
  type: StringConstructor;
33
- default: undefined;
34
- require: boolean;
35
29
  validator: (value: string) => boolean;
36
30
  };
37
31
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -40,10 +34,7 @@ declare const CProgressBar: import("vue").DefineComponent<{
40
34
  /**
41
35
  * Use to animate the stripes right to left via CSS3 animations.
42
36
  */
43
- animated: {
44
- type: BooleanConstructor;
45
- required: false;
46
- };
37
+ animated: BooleanConstructor;
47
38
  /**
48
39
  * Sets the color context of the component to one of CoreUI’s themed colors.
49
40
  *
@@ -58,7 +49,6 @@ declare const CProgressBar: import("vue").DefineComponent<{
58
49
  */
59
50
  value: {
60
51
  type: NumberConstructor;
61
- required: false;
62
52
  default: number;
63
53
  };
64
54
  /**
@@ -68,13 +58,10 @@ declare const CProgressBar: import("vue").DefineComponent<{
68
58
  */
69
59
  variant: {
70
60
  type: StringConstructor;
71
- default: undefined;
72
- require: boolean;
73
61
  validator: (value: string) => boolean;
74
62
  };
75
63
  }>>, {
76
64
  value: number;
77
- variant: string;
78
65
  animated: boolean;
79
66
  }>;
80
67
  export { CProgressBar };
@@ -1,20 +1,19 @@
1
- declare const Shape: {
1
+ export declare const Shape: {
2
2
  type: StringConstructor;
3
3
  validator: (value: string) => boolean;
4
4
  };
5
- declare const Align: {
5
+ export declare const Align: {
6
6
  type: StringConstructor;
7
7
  validator: (value: string) => boolean;
8
8
  };
9
- declare const Color: {
9
+ export declare const Color: {
10
10
  type: StringConstructor;
11
11
  validator: (value: string) => boolean;
12
12
  };
13
- declare const TextColor: {
13
+ export declare const TextColor: {
14
14
  type: StringConstructor;
15
15
  validator: (value: string) => boolean;
16
16
  };
17
- declare const Breakpoint: {
17
+ export declare const Breakpoint: {
18
18
  validator: (value: boolean | number) => boolean;
19
19
  };
20
- export { Align, Breakpoint, Color, Shape, TextColor };
@@ -12,17 +12,11 @@ declare const CSidebar: import("vue").DefineComponent<{
12
12
  /**
13
13
  * Make sidebar narrow.
14
14
  */
15
- narrow: {
16
- type: BooleanConstructor;
17
- required: false;
18
- };
15
+ narrow: BooleanConstructor;
19
16
  /**
20
17
  * Set sidebar to overlaid variant.
21
18
  */
22
- overlaid: {
23
- type: BooleanConstructor;
24
- required: false;
25
- };
19
+ overlaid: BooleanConstructor;
26
20
  /**
27
21
  * Components placement, there’s no default placement.
28
22
  * @values 'start', 'end'
@@ -37,7 +31,6 @@ declare const CSidebar: import("vue").DefineComponent<{
37
31
  */
38
32
  position: {
39
33
  type: StringConstructor;
40
- default: undefined;
41
34
  validator: (value: string) => boolean;
42
35
  };
43
36
  /**
@@ -45,7 +38,6 @@ declare const CSidebar: import("vue").DefineComponent<{
45
38
  */
46
39
  size: {
47
40
  type: StringConstructor;
48
- default: undefined;
49
41
  validator: (value: string) => boolean;
50
42
  };
51
43
  /**
@@ -70,17 +62,11 @@ declare const CSidebar: import("vue").DefineComponent<{
70
62
  /**
71
63
  * Make sidebar narrow.
72
64
  */
73
- narrow: {
74
- type: BooleanConstructor;
75
- required: false;
76
- };
65
+ narrow: BooleanConstructor;
77
66
  /**
78
67
  * Set sidebar to overlaid variant.
79
68
  */
80
- overlaid: {
81
- type: BooleanConstructor;
82
- required: false;
83
- };
69
+ overlaid: BooleanConstructor;
84
70
  /**
85
71
  * Components placement, there’s no default placement.
86
72
  * @values 'start', 'end'
@@ -95,7 +81,6 @@ declare const CSidebar: import("vue").DefineComponent<{
95
81
  */
96
82
  position: {
97
83
  type: StringConstructor;
98
- default: undefined;
99
84
  validator: (value: string) => boolean;
100
85
  };
101
86
  /**
@@ -103,7 +88,6 @@ declare const CSidebar: import("vue").DefineComponent<{
103
88
  */
104
89
  size: {
105
90
  type: StringConstructor;
106
- default: undefined;
107
91
  validator: (value: string) => boolean;
108
92
  };
109
93
  /**
@@ -120,8 +104,6 @@ declare const CSidebar: import("vue").DefineComponent<{
120
104
  "onVisible-change"?: ((...args: any[]) => any) | undefined;
121
105
  }, {
122
106
  visible: boolean;
123
- size: string;
124
- position: string;
125
107
  narrow: boolean;
126
108
  placement: string;
127
109
  colorScheme: string;
@@ -6,8 +6,6 @@ declare const CSpinner: import("vue").DefineComponent<{
6
6
  */
7
7
  color: {
8
8
  type: StringConstructor;
9
- default: undefined;
10
- required: false;
11
9
  validator: (value: string) => boolean;
12
10
  };
13
11
  /**
@@ -16,7 +14,6 @@ declare const CSpinner: import("vue").DefineComponent<{
16
14
  component: {
17
15
  type: StringConstructor;
18
16
  default: string;
19
- required: false;
20
17
  };
21
18
  /**
22
19
  * Size the component small.
@@ -25,8 +22,6 @@ declare const CSpinner: import("vue").DefineComponent<{
25
22
  */
26
23
  size: {
27
24
  type: StringConstructor;
28
- default: undefined;
29
- required: false;
30
25
  validator: (value: string) => boolean;
31
26
  };
32
27
  /**
@@ -37,7 +32,6 @@ declare const CSpinner: import("vue").DefineComponent<{
37
32
  variant: {
38
33
  type: StringConstructor;
39
34
  default: string;
40
- required: false;
41
35
  validator: (value: string) => boolean;
42
36
  };
43
37
  /**
@@ -46,7 +40,6 @@ declare const CSpinner: import("vue").DefineComponent<{
46
40
  visuallyHiddenLabel: {
47
41
  type: StringConstructor;
48
42
  default: string;
49
- required: false;
50
43
  };
51
44
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
45
  [key: string]: any;
@@ -58,8 +51,6 @@ declare const CSpinner: import("vue").DefineComponent<{
58
51
  */
59
52
  color: {
60
53
  type: StringConstructor;
61
- default: undefined;
62
- required: false;
63
54
  validator: (value: string) => boolean;
64
55
  };
65
56
  /**
@@ -68,7 +59,6 @@ declare const CSpinner: import("vue").DefineComponent<{
68
59
  component: {
69
60
  type: StringConstructor;
70
61
  default: string;
71
- required: false;
72
62
  };
73
63
  /**
74
64
  * Size the component small.
@@ -77,8 +67,6 @@ declare const CSpinner: import("vue").DefineComponent<{
77
67
  */
78
68
  size: {
79
69
  type: StringConstructor;
80
- default: undefined;
81
- required: false;
82
70
  validator: (value: string) => boolean;
83
71
  };
84
72
  /**
@@ -89,7 +77,6 @@ declare const CSpinner: import("vue").DefineComponent<{
89
77
  variant: {
90
78
  type: StringConstructor;
91
79
  default: string;
92
- required: false;
93
80
  validator: (value: string) => boolean;
94
81
  };
95
82
  /**
@@ -98,13 +85,10 @@ declare const CSpinner: import("vue").DefineComponent<{
98
85
  visuallyHiddenLabel: {
99
86
  type: StringConstructor;
100
87
  default: string;
101
- required: false;
102
88
  };
103
89
  }>>, {
104
- color: string;
105
90
  variant: string;
106
91
  component: string;
107
- size: string;
108
92
  visuallyHiddenLabel: string;
109
93
  }>;
110
94
  export { CSpinner };
@@ -1,18 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- export interface Column {
3
- label?: string;
4
- key: string;
5
- _style?: any;
6
- _props?: any;
7
- }
8
- export interface FooterItem {
9
- label?: string;
10
- _props?: any;
11
- }
12
- export type Item = {
13
- [key: string]: number | string | any;
14
- _props?: any;
15
- };
2
+ import type { Column, FooterItem, Item } from './types';
16
3
  declare const CTable: import("vue").DefineComponent<{
17
4
  /**
18
5
  * Set the vertical aligment.
@@ -21,8 +8,6 @@ declare const CTable: import("vue").DefineComponent<{
21
8
  */
22
9
  align: {
23
10
  type: StringConstructor;
24
- default: undefined;
25
- required: false;
26
11
  validator: (value: string) => boolean;
27
12
  };
28
13
  /**
@@ -37,37 +22,23 @@ declare const CTable: import("vue").DefineComponent<{
37
22
  /**
38
23
  * Add borders on all sides of the table and cells.
39
24
  */
40
- bordered: {
41
- type: BooleanConstructor;
42
- required: false;
43
- };
25
+ bordered: BooleanConstructor;
44
26
  /**
45
27
  * Remove borders on all sides of the table and cells.
46
28
  */
47
- borderless: {
48
- type: BooleanConstructor;
49
- required: false;
50
- };
29
+ borderless: BooleanConstructor;
51
30
  /**
52
31
  * Put the `<caption>` on the top of the table.
53
32
  *
54
33
  * @values 'top' | string
55
34
  */
56
- caption: {
57
- type: StringConstructor;
58
- default: undefined;
59
- required: false;
60
- };
35
+ caption: StringConstructor;
61
36
  /**
62
37
  * Set the text of the table caption and the caption on the top of the table.
63
38
  *
64
39
  * @since 4.5.0
65
40
  */
66
- captionTop: {
67
- type: StringConstructor;
68
- default: undefined;
69
- required: false;
70
- };
41
+ captionTop: StringConstructor;
71
42
  /**
72
43
  * Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props')
73
44
  *
@@ -83,7 +54,6 @@ declare const CTable: import("vue").DefineComponent<{
83
54
  */
84
55
  columns: {
85
56
  type: PropType<(string | Column)[]>;
86
- required: false;
87
57
  };
88
58
  /**
89
59
  * Sets the color context of the component to one of CoreUI’s themed colors.
@@ -106,15 +76,11 @@ declare const CTable: import("vue").DefineComponent<{
106
76
  */
107
77
  footer: {
108
78
  type: PropType<(string | FooterItem)[]>;
109
- required: false;
110
79
  };
111
80
  /**
112
81
  * Enable a hover state on table rows within a `<CTableBody>`.
113
82
  */
114
- hover: {
115
- type: BooleanConstructor;
116
- required: false;
117
- };
83
+ hover: BooleanConstructor;
118
84
  /**
119
85
  * Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by '_props' key and to single cell by '_cellProps'.
120
86
  *
@@ -125,37 +91,25 @@ declare const CTable: import("vue").DefineComponent<{
125
91
  */
126
92
  items: {
127
93
  type: PropType<Item[]>;
128
- required: false;
129
94
  };
130
95
  responsive: {
131
96
  type: (StringConstructor | BooleanConstructor)[];
132
- default: undefined;
133
- required: false;
134
97
  validator: (value: boolean | string) => boolean;
135
98
  };
136
99
  /**
137
100
  * Make table more compact by cutting all cell `padding` in half.
138
101
  */
139
- small: {
140
- type: BooleanConstructor;
141
- required: false;
142
- };
102
+ small: BooleanConstructor;
143
103
  /**
144
104
  * Add zebra-striping to any table row within the `<CTableBody>`.
145
105
  */
146
- striped: {
147
- type: BooleanConstructor;
148
- required: false;
149
- };
106
+ striped: BooleanConstructor;
150
107
  /**
151
108
  * Add zebra-striping to any table column.
152
109
  *
153
110
  * @since 4.4.0
154
111
  */
155
- stripedColumns: {
156
- type: BooleanConstructor;
157
- required: false;
158
- };
112
+ stripedColumns: BooleanConstructor;
159
113
  /**
160
114
  * Properties that will be passed to the table footer component.
161
115
  *
@@ -164,8 +118,6 @@ declare const CTable: import("vue").DefineComponent<{
164
118
  */
165
119
  tableFootProps: {
166
120
  type: ObjectConstructor;
167
- default: undefined;
168
- required: false;
169
121
  };
170
122
  /**
171
123
  * Properties that will be passed to the table head component.
@@ -175,8 +127,6 @@ declare const CTable: import("vue").DefineComponent<{
175
127
  */
176
128
  tableHeadProps: {
177
129
  type: ObjectConstructor;
178
- default: undefined;
179
- required: false;
180
130
  };
181
131
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
182
132
  [key: string]: any;
@@ -188,8 +138,6 @@ declare const CTable: import("vue").DefineComponent<{
188
138
  */
189
139
  align: {
190
140
  type: StringConstructor;
191
- default: undefined;
192
- required: false;
193
141
  validator: (value: string) => boolean;
194
142
  };
195
143
  /**
@@ -204,37 +152,23 @@ declare const CTable: import("vue").DefineComponent<{
204
152
  /**
205
153
  * Add borders on all sides of the table and cells.
206
154
  */
207
- bordered: {
208
- type: BooleanConstructor;
209
- required: false;
210
- };
155
+ bordered: BooleanConstructor;
211
156
  /**
212
157
  * Remove borders on all sides of the table and cells.
213
158
  */
214
- borderless: {
215
- type: BooleanConstructor;
216
- required: false;
217
- };
159
+ borderless: BooleanConstructor;
218
160
  /**
219
161
  * Put the `<caption>` on the top of the table.
220
162
  *
221
163
  * @values 'top' | string
222
164
  */
223
- caption: {
224
- type: StringConstructor;
225
- default: undefined;
226
- required: false;
227
- };
165
+ caption: StringConstructor;
228
166
  /**
229
167
  * Set the text of the table caption and the caption on the top of the table.
230
168
  *
231
169
  * @since 4.5.0
232
170
  */
233
- captionTop: {
234
- type: StringConstructor;
235
- default: undefined;
236
- required: false;
237
- };
171
+ captionTop: StringConstructor;
238
172
  /**
239
173
  * Prop for table columns configuration. If prop is not defined, table will display columns based on the first item keys, omitting keys that begins with underscore (e.g. '_props')
240
174
  *
@@ -250,7 +184,6 @@ declare const CTable: import("vue").DefineComponent<{
250
184
  */
251
185
  columns: {
252
186
  type: PropType<(string | Column)[]>;
253
- required: false;
254
187
  };
255
188
  /**
256
189
  * Sets the color context of the component to one of CoreUI’s themed colors.
@@ -273,15 +206,11 @@ declare const CTable: import("vue").DefineComponent<{
273
206
  */
274
207
  footer: {
275
208
  type: PropType<(string | FooterItem)[]>;
276
- required: false;
277
209
  };
278
210
  /**
279
211
  * Enable a hover state on table rows within a `<CTableBody>`.
280
212
  */
281
- hover: {
282
- type: BooleanConstructor;
283
- required: false;
284
- };
213
+ hover: BooleanConstructor;
285
214
  /**
286
215
  * Array of objects, where each object represents one item - row in table. Additionally, you can add style classes to each row by passing them by '_props' key and to single cell by '_cellProps'.
287
216
  *
@@ -292,37 +221,25 @@ declare const CTable: import("vue").DefineComponent<{
292
221
  */
293
222
  items: {
294
223
  type: PropType<Item[]>;
295
- required: false;
296
224
  };
297
225
  responsive: {
298
226
  type: (StringConstructor | BooleanConstructor)[];
299
- default: undefined;
300
- required: false;
301
227
  validator: (value: boolean | string) => boolean;
302
228
  };
303
229
  /**
304
230
  * Make table more compact by cutting all cell `padding` in half.
305
231
  */
306
- small: {
307
- type: BooleanConstructor;
308
- required: false;
309
- };
232
+ small: BooleanConstructor;
310
233
  /**
311
234
  * Add zebra-striping to any table row within the `<CTableBody>`.
312
235
  */
313
- striped: {
314
- type: BooleanConstructor;
315
- required: false;
316
- };
236
+ striped: BooleanConstructor;
317
237
  /**
318
238
  * Add zebra-striping to any table column.
319
239
  *
320
240
  * @since 4.4.0
321
241
  */
322
- stripedColumns: {
323
- type: BooleanConstructor;
324
- required: false;
325
- };
242
+ stripedColumns: BooleanConstructor;
326
243
  /**
327
244
  * Properties that will be passed to the table footer component.
328
245
  *
@@ -331,8 +248,6 @@ declare const CTable: import("vue").DefineComponent<{
331
248
  */
332
249
  tableFootProps: {
333
250
  type: ObjectConstructor;
334
- default: undefined;
335
- required: false;
336
251
  };
337
252
  /**
338
253
  * Properties that will be passed to the table head component.
@@ -342,21 +257,13 @@ declare const CTable: import("vue").DefineComponent<{
342
257
  */
343
258
  tableHeadProps: {
344
259
  type: ObjectConstructor;
345
- default: undefined;
346
- required: false;
347
260
  };
348
261
  }>>, {
349
262
  small: boolean;
350
263
  hover: boolean;
351
- caption: string;
352
- align: string;
353
- responsive: string | boolean;
354
264
  striped: boolean;
355
265
  bordered: boolean;
356
266
  borderless: boolean;
357
- captionTop: string;
358
267
  stripedColumns: boolean;
359
- tableFootProps: Record<string, any>;
360
- tableHeadProps: Record<string, any>;
361
268
  }>;
362
269
  export { CTable };