@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.
Files changed (308) 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 +17 -49
  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 +11 -33
  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 +353 -995
  86. package/dist/index.es.js.map +1 -1
  87. package/dist/index.js +353 -995
  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 +1 -1
  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 +1 -6
  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__/__snapshots__/CDropdown.spec.ts.snap +2 -2
  155. package/src/components/dropdown/__tests__/__snapshots__/CDropdownDivider.spec.ts.snap +1 -1
  156. package/src/components/dropdown/__tests__/__snapshots__/CDropdownHeader.spec.ts.snap +2 -2
  157. package/src/components/dropdown/__tests__/__snapshots__/CDropdownItem.spec.ts.snap +2 -2
  158. package/src/components/dropdown/__tests__/__snapshots__/CDropdownMenu.spec.ts.snap +2 -2
  159. package/src/components/dropdown/__tests__/__snapshots__/CDropdownToggle.spec.ts.snap +2 -2
  160. package/src/components/footer/CFooter.ts +0 -2
  161. package/src/components/footer/__tests__/__snapshots__/CFooter.spec.ts.snap +2 -2
  162. package/src/components/form/CForm.ts +1 -4
  163. package/src/components/form/CFormCheck.ts +8 -24
  164. package/src/components/form/CFormControlValidation.ts +4 -12
  165. package/src/components/form/CFormControlWrapper.ts +4 -12
  166. package/src/components/form/CFormFeedback.ts +0 -1
  167. package/src/components/form/CFormInput.ts +11 -37
  168. package/src/components/form/CFormLabel.ts +1 -5
  169. package/src/components/form/CFormRange.ts +8 -30
  170. package/src/components/form/CFormSelect.ts +10 -39
  171. package/src/components/form/CFormSwitch.ts +5 -16
  172. package/src/components/form/CFormText.ts +0 -1
  173. package/src/components/form/CFormTextarea.ts +11 -34
  174. package/src/components/form/CInputGroup.ts +0 -2
  175. package/src/components/form/CInputGroupText.ts +0 -1
  176. package/src/components/form/__tests__/__snapshots__/CForm.spec.ts.snap +2 -2
  177. package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +5 -5
  178. package/src/components/form/__tests__/__snapshots__/CFormFeedback.spec.ts.snap +3 -3
  179. package/src/components/form/__tests__/__snapshots__/CFormFloating.spec.ts.snap +1 -1
  180. package/src/components/form/__tests__/__snapshots__/CFormInput.spec.ts.snap +3 -3
  181. package/src/components/form/__tests__/__snapshots__/CFormLabel.spec.ts.snap +2 -2
  182. package/src/components/form/__tests__/__snapshots__/CFormRange.spec.ts.snap +2 -2
  183. package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.ts.snap +2 -2
  184. package/src/components/form/__tests__/__snapshots__/CFormSwitch.spec.ts.snap +2 -2
  185. package/src/components/form/__tests__/__snapshots__/CFormText.spec.ts.snap +2 -2
  186. package/src/components/form/__tests__/__snapshots__/CFormTextarea.spec.ts.snap +2 -2
  187. package/src/components/form/__tests__/__snapshots__/CInputGroup.spec.ts.snap +2 -2
  188. package/src/components/form/__tests__/__snapshots__/CInputGroupText.spec.ts.snap +2 -2
  189. package/src/components/grid/CCol.ts +0 -12
  190. package/src/components/grid/CContainer.ts +6 -24
  191. package/src/components/grid/CRow.ts +11 -35
  192. package/src/components/grid/__tests__/__snapshots__/CCol.spec.ts.snap +2 -2
  193. package/src/components/grid/__tests__/__snapshots__/CContainer.spec.ts.snap +2 -2
  194. package/src/components/grid/__tests__/__snapshots__/CRow.spec.ts.snap +2 -2
  195. package/src/components/header/CHeader.ts +0 -4
  196. package/src/components/header/CHeaderBrand.ts +0 -1
  197. package/src/components/header/CHeaderNav.ts +0 -1
  198. package/src/components/header/__tests__/__snapshots__/CHeader.spec.ts.snap +3 -3
  199. package/src/components/header/__tests__/__snapshots__/CHeaderBrand.spec.ts.snap +2 -2
  200. package/src/components/header/__tests__/__snapshots__/CHeaderDivider.spec.ts.snap +1 -1
  201. package/src/components/header/__tests__/__snapshots__/CHeaderNav.spec.ts.snap +2 -2
  202. package/src/components/header/__tests__/__snapshots__/CHeaderText.spec.ts.snap +1 -1
  203. package/src/components/header/__tests__/__snapshots__/CHeaderToggler.spec.ts.snap +2 -2
  204. package/src/components/image/CImage.ts +3 -14
  205. package/src/components/image/__tests__/__snapshots__/CImage.spec.ts.snap +3 -3
  206. package/src/components/link/CLink.ts +3 -14
  207. package/src/components/link/__tests__/__snapshots__/CLink.spec.ts.snap +2 -2
  208. package/src/components/list-group/CListGroup.ts +1 -7
  209. package/src/components/list-group/CListGroupItem.ts +3 -10
  210. package/src/components/list-group/__tests__/__snapshots__/CListGroup.spec.ts.snap +2 -2
  211. package/src/components/list-group/__tests__/__snapshots__/CListGroupItem.spec.ts.snap +3 -3
  212. package/src/components/modal/CModal.ts +4 -11
  213. package/src/components/modal/CModalHeader.ts +0 -1
  214. package/src/components/modal/CModalTitle.ts +0 -1
  215. package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +10 -10
  216. package/src/components/modal/__tests__/__snapshots__/CModalBody.spec.ts.snap +1 -1
  217. package/src/components/modal/__tests__/__snapshots__/CModalFooter.spec.ts.snap +1 -1
  218. package/src/components/modal/__tests__/__snapshots__/CModalHeader.spec.ts.snap +2 -2
  219. package/src/components/modal/__tests__/__snapshots__/CModalTitle.spec.ts.snap +2 -2
  220. package/src/components/nav/CNav.ts +0 -5
  221. package/src/components/nav/CNavGroup.ts +1 -1
  222. package/src/components/nav/CNavLink.ts +3 -14
  223. package/src/components/nav/__tests__/__snapshots__/CNav.spec.ts.snap +2 -2
  224. package/src/components/nav/__tests__/__snapshots__/CNavGroup.spec.ts.snap +5 -5
  225. package/src/components/nav/__tests__/__snapshots__/CNavGroupItems.spec.ts.snap +1 -1
  226. package/src/components/nav/__tests__/__snapshots__/CNavItem.spec.ts.snap +3 -3
  227. package/src/components/nav/__tests__/__snapshots__/CNavLink.spec.ts.snap +2 -2
  228. package/src/components/nav/__tests__/__snapshots__/CNavTitle.spec.ts.snap +1 -1
  229. package/src/components/navbar/CNavbar.ts +1 -10
  230. package/src/components/navbar/CNavbarBrand.ts +1 -6
  231. package/src/components/navbar/CNavbarNav.ts +0 -1
  232. package/src/components/navbar/__tests__/__snapshots__/CNavbar.spec.ts.snap +3 -3
  233. package/src/components/navbar/__tests__/__snapshots__/CNavbarBrand.spec.ts.snap +3 -3
  234. package/src/components/navbar/__tests__/__snapshots__/CNavbarNav.spec.ts.snap +2 -2
  235. package/src/components/navbar/__tests__/__snapshots__/CNavbarText.spec.ts.snap +1 -1
  236. package/src/components/navbar/__tests__/__snapshots__/CNavbarToggler.spec.ts.snap +2 -2
  237. package/src/components/offcanvas/COffcanvas.ts +11 -8
  238. package/src/components/offcanvas/COffcanvasTitle.ts +0 -1
  239. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.ts.snap +8 -8
  240. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasBody.spec.ts.snap +1 -1
  241. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasHeader.spec.ts.snap +1 -1
  242. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvasTitle.spec.ts.snap +2 -2
  243. package/src/components/pagination/CPagination.ts +0 -4
  244. package/src/components/pagination/CPaginationItem.ts +4 -18
  245. package/src/components/pagination/__tests__/__snapshots__/CPagination.spec.ts.snap +2 -2
  246. package/src/components/pagination/__tests__/__snapshots__/CPaginationItem.spec.ts.snap +2 -2
  247. package/src/components/placeholder/CPlaceholder.ts +7 -36
  248. package/src/components/placeholder/__tests__/CPlaceholder.spec.ts +1 -1
  249. package/src/components/popover/CPopover.ts +3 -14
  250. package/src/components/progress/CProgress.ts +1 -5
  251. package/src/components/progress/CProgressBar.ts +2 -8
  252. package/src/components/progress/__tests__/__snapshots__/CProgress.spec.ts.snap +2 -2
  253. package/src/components/progress/__tests__/__snapshots__/CProgressBar.spec.ts.snap +2 -2
  254. package/src/components/props.ts +10 -8
  255. package/src/components/sidebar/CSidebar.ts +3 -11
  256. package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -2
  257. package/src/components/sidebar/__tests__/__snapshots__/CSidebarBrand.spec.ts.snap +1 -1
  258. package/src/components/sidebar/__tests__/__snapshots__/CSidebarFooter.spec.ts.snap +1 -1
  259. package/src/components/sidebar/__tests__/__snapshots__/CSidebarHeader.spec.ts.snap +1 -1
  260. package/src/components/sidebar/__tests__/__snapshots__/CSidebarNav.spec.ts.snap +1 -1
  261. package/src/components/sidebar/__tests__/__snapshots__/CSidebarToggler.spec.ts.snap +1 -1
  262. package/src/components/smart-table/CSmartTable.ts +7 -7
  263. package/src/components/spinner/CSpinner.ts +0 -7
  264. package/src/components/spinner/__tests__/__snapshots__/CSpinner.spec.ts.snap +2 -2
  265. package/src/components/table/CTable.ts +21 -93
  266. package/src/components/table/CTableBody.ts +1 -1
  267. package/src/components/table/CTableDataCell.ts +3 -11
  268. package/src/components/table/CTableFoot.ts +1 -1
  269. package/src/components/table/CTableHead.ts +1 -1
  270. package/src/components/table/CTableHeaderCell.ts +1 -1
  271. package/src/components/table/CTableRow.ts +2 -7
  272. package/src/components/table/__tests__/__snapshots__/CTable.spec.ts.snap +15 -3
  273. package/src/components/table/__tests__/__snapshots__/CTableBody.spec.ts.snap +2 -2
  274. package/src/components/table/__tests__/__snapshots__/CTableDataCell.spec.ts.snap +2 -2
  275. package/src/components/table/__tests__/__snapshots__/CTableFoot.spec.ts.snap +2 -2
  276. package/src/components/table/__tests__/__snapshots__/CTableHead.spec.ts.snap +2 -2
  277. package/src/components/table/__tests__/__snapshots__/CTableHeaderCell.spec.ts.snap +2 -2
  278. package/src/components/table/__tests__/__snapshots__/CTableRow.spec.ts.snap +2 -2
  279. package/src/components/table/types.ts +20 -0
  280. package/src/components/table/utils.ts +24 -0
  281. package/src/components/tabs/CTabPane.ts +1 -2
  282. package/src/components/tabs/__tests__/__snapshots__/CTabContent.spec.ts.snap +1 -1
  283. package/src/components/tabs/__tests__/__snapshots__/CTabPane.spec.ts.snap +4 -4
  284. package/src/components/toast/CToast.ts +48 -83
  285. package/src/components/toast/CToastClose.ts +1 -5
  286. package/src/components/toast/CToastHeader.ts +1 -4
  287. package/src/components/toast/CToaster.ts +0 -2
  288. package/src/components/toast/__tests__/CToast.spec.ts +3 -1
  289. package/src/components/toast/__tests__/__snapshots__/CToast.spec.ts.snap +4 -4
  290. package/src/components/toast/__tests__/__snapshots__/CToastBody.spec.ts.snap +1 -1
  291. package/src/components/toast/__tests__/__snapshots__/CToastClose.spec.ts.snap +2 -2
  292. package/src/components/toast/__tests__/__snapshots__/CToastHeader.spec.ts.snap +2 -2
  293. package/src/components/toast/__tests__/__snapshots__/CToaster.spec.ts.snap +2 -2
  294. package/src/components/tooltip/CTooltip.ts +2 -9
  295. package/src/components/widgets/CWidgetStatsA.ts +3 -12
  296. package/src/components/widgets/CWidgetStatsB.ts +8 -20
  297. package/src/components/widgets/CWidgetStatsC.ts +5 -14
  298. package/src/components/widgets/CWidgetStatsD.ts +4 -4
  299. package/src/components/widgets/CWidgetStatsE.ts +3 -8
  300. package/src/components/widgets/CWidgetStatsF.ts +6 -14
  301. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsA.spec.ts.snap +3 -3
  302. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsB.spec.ts.snap +6 -6
  303. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsC.spec.ts.snap +7 -7
  304. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsD.spec.ts.snap +10 -10
  305. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsE.spec.ts.snap +4 -4
  306. package/src/components/widgets/__tests__/__snapshots__/CWidgetStatsF.spec.ts.snap +6 -6
  307. package/src/props.ts +88 -0
  308. package/src/types.ts +54 -0
package/dist/index.es.js CHANGED
@@ -6,11 +6,7 @@ const CAccordion = defineComponent({
6
6
  /**
7
7
  * The active item key.
8
8
  */
9
- activeItemKey: {
10
- type: [Number, String],
11
- default: undefined,
12
- require: false,
13
- },
9
+ activeItemKey: [Number, String],
14
10
  /**
15
11
  * Make accordion items stay open when another item is opened
16
12
  */
@@ -116,17 +112,11 @@ const CCollapse = defineComponent({
116
112
  /**
117
113
  * Set horizontal collapsing to transition the width instead of height.
118
114
  */
119
- horizontal: {
120
- type: Boolean,
121
- required: false,
122
- },
115
+ horizontal: Boolean,
123
116
  /**
124
117
  * Toggle the visibility of component.
125
118
  */
126
- visible: {
127
- type: Boolean,
128
- required: false,
129
- },
119
+ visible: Boolean,
130
120
  },
131
121
  emits: [
132
122
  /**
@@ -241,16 +231,11 @@ const CAccordionItem = defineComponent({
241
231
  /**
242
232
  * The item key.
243
233
  */
244
- itemKey: {
245
- type: [Number, String],
246
- default: undefined,
247
- require: false,
248
- },
234
+ itemKey: [Number, String]
249
235
  },
250
236
  setup(props, { slots }) {
251
237
  const activeItemKey = inject('activeItemKey');
252
238
  const alwaysOpen = inject('alwaysOpen');
253
- // eslint-disable-next-line no-unused-vars
254
239
  const setActiveItemKey = inject('setActiveItemKey');
255
240
  const itemKey = ref(props.itemKey ? props.itemKey : Math.random().toString(36).substr(2, 9));
256
241
  const visible = ref(Boolean(activeItemKey.value === itemKey.value));
@@ -275,6 +260,54 @@ const CAccordionPlugin = {
275
260
  },
276
261
  };
277
262
 
263
+ const CCloseButton = defineComponent({
264
+ name: 'CCloseButton',
265
+ props: {
266
+ /**
267
+ * Toggle the disabled state for the component.
268
+ */
269
+ disabled: Boolean,
270
+ /**
271
+ * Change the default color to white.
272
+ */
273
+ white: Boolean,
274
+ },
275
+ emits: [
276
+ /**
277
+ * Event called when the user clicks on the component.
278
+ */
279
+ 'click',
280
+ ],
281
+ setup(props, { emit }) {
282
+ const handleClick = () => {
283
+ if (props.disabled) {
284
+ return;
285
+ }
286
+ emit('click');
287
+ };
288
+ return () => h$1('button', {
289
+ type: 'button',
290
+ class: [
291
+ 'btn',
292
+ 'btn-close',
293
+ {
294
+ ['btn-close-white']: props.white,
295
+ },
296
+ props.disabled,
297
+ ],
298
+ 'aria-label': 'Close',
299
+ disabled: props.disabled,
300
+ onClick: handleClick,
301
+ });
302
+ },
303
+ });
304
+
305
+ const CCloseButtonPlugin = {
306
+ install: (app) => {
307
+ app.component(CCloseButton.name, CCloseButton);
308
+ },
309
+ };
310
+
278
311
  const Shape = {
279
312
  type: String,
280
313
  validator: (value) => {
@@ -294,7 +327,7 @@ const Shape = {
294
327
  ].includes(value);
295
328
  },
296
329
  };
297
- const Color = {
330
+ const Color$1 = {
298
331
  type: String,
299
332
  validator: (value) => {
300
333
  // The value must match one of these strings
@@ -344,54 +377,6 @@ const TextColor = {
344
377
  },
345
378
  };
346
379
 
347
- const CCloseButton = defineComponent({
348
- name: 'CCloseButton',
349
- props: {
350
- /**
351
- * Toggle the disabled state for the component.
352
- */
353
- disabled: {
354
- type: Boolean,
355
- required: false,
356
- },
357
- /**
358
- * Change the default color to white.
359
- */
360
- white: {
361
- type: Boolean,
362
- required: false,
363
- },
364
- },
365
- emits: [
366
- /**
367
- * Event called when the user clicks on the component.
368
- */
369
- 'click',
370
- ],
371
- setup(props, { emit }) {
372
- const handleClick = () => {
373
- if (props.disabled) {
374
- return;
375
- }
376
- emit('click');
377
- };
378
- return () => h$1('button', {
379
- type: 'button',
380
- class: [
381
- 'btn',
382
- 'btn-close',
383
- {
384
- ['btn-close-white']: props.white,
385
- },
386
- props.disabled,
387
- ],
388
- 'aria-label': 'Close',
389
- disabled: props.disabled,
390
- onClick: handleClick,
391
- });
392
- },
393
- });
394
-
395
380
  const CAlert = defineComponent({
396
381
  name: 'CAlert',
397
382
  props: {
@@ -400,15 +385,11 @@ const CAlert = defineComponent({
400
385
  *
401
386
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
402
387
  */
403
- color: Color,
388
+ color: Color$1,
404
389
  /**
405
390
  * Optionally add a close button to alert and allow it to self dismisss.
406
391
  */
407
- dismissible: {
408
- type: Boolean,
409
- default: false,
410
- required: false,
411
- },
392
+ dismissible: Boolean,
412
393
  /**
413
394
  * Set the alert variant to a solid.
414
395
  *
@@ -416,8 +397,6 @@ const CAlert = defineComponent({
416
397
  */
417
398
  variant: {
418
399
  type: String,
419
- default: undefined,
420
- required: false,
421
400
  validator: (value) => {
422
401
  return value === 'solid';
423
402
  },
@@ -428,7 +407,6 @@ const CAlert = defineComponent({
428
407
  visible: {
429
408
  type: Boolean,
430
409
  default: true,
431
- required: false,
432
410
  },
433
411
  },
434
412
  emits: [
@@ -447,8 +425,6 @@ const CAlert = defineComponent({
447
425
  emit('close');
448
426
  };
449
427
  return () => h$1(Transition, {
450
- name: 'fade',
451
- duration: 350,
452
428
  enterFromClass: '',
453
429
  enterActiveClass: 'fade',
454
430
  enterToClass: 'fade show',
@@ -488,7 +464,6 @@ const CAlertHeading = defineComponent({
488
464
  component: {
489
465
  type: String,
490
466
  default: 'h4',
491
- required: false,
492
467
  },
493
468
  },
494
469
  setup(props, { slots }) {
@@ -523,7 +498,7 @@ const CAvatar = defineComponent({
523
498
  *
524
499
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
525
500
  */
526
- color: Color,
501
+ color: Color$1,
527
502
  /**
528
503
  * Select the shape of the component.
529
504
  *
@@ -537,8 +512,6 @@ const CAvatar = defineComponent({
537
512
  */
538
513
  size: {
539
514
  type: String,
540
- default: undefined,
541
- required: false,
542
515
  validator: (value) => {
543
516
  return ['sm', 'md', 'lg', 'xl'].includes(value);
544
517
  },
@@ -546,11 +519,7 @@ const CAvatar = defineComponent({
546
519
  /**
547
520
  * The src attribute for the img element.
548
521
  */
549
- src: {
550
- type: String,
551
- default: undefined,
552
- required: false,
553
- },
522
+ src: String,
554
523
  /**
555
524
  * Sets the color context of the status indicator to one of CoreUI’s themed colors.
556
525
  *
@@ -558,8 +527,6 @@ const CAvatar = defineComponent({
558
527
  */
559
528
  status: {
560
529
  type: String,
561
- default: undefined,
562
- required: false,
563
530
  validator: (value) => {
564
531
  return [
565
532
  'primary',
@@ -615,32 +582,16 @@ const CBackdrop = defineComponent({
615
582
  visible: {
616
583
  type: Boolean,
617
584
  default: false,
618
- required: false,
619
585
  },
620
586
  },
621
587
  setup(props) {
622
- const handleBeforeEnter = (el) => {
623
- el.classList.remove('d-none');
624
- };
625
- const handleEnter = (el, done) => {
626
- executeAfterTransition(() => done(), el);
627
- setTimeout(() => {
628
- el.style.visibility = 'visible';
629
- el.classList.add('show');
630
- }, 1);
631
- };
632
- const handleLeave = (el, done) => {
633
- executeAfterTransition(() => done(), el);
634
- el.classList.remove('show');
635
- };
636
- const handleAfterLeave = (el) => {
637
- el.classList.add('d-none');
638
- };
639
588
  return () => h$1(Transition, {
640
- onBeforeEnter: (el) => handleBeforeEnter(el),
641
- onEnter: (el, done) => handleEnter(el, done),
642
- onLeave: (el, done) => handleLeave(el, done),
643
- onAfterLeave: (el) => handleAfterLeave(el),
589
+ onEnter: (el) => {
590
+ el.classList.add('show');
591
+ },
592
+ onLeave: (el) => {
593
+ el.classList.remove('show');
594
+ }
644
595
  }, () => props.visible &&
645
596
  h$1('div', {
646
597
  class: 'fade',
@@ -662,13 +613,12 @@ const CBadge = defineComponent({
662
613
  *
663
614
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
664
615
  */
665
- color: Color,
616
+ color: Color$1,
666
617
  /**
667
618
  * Component used for the root node. Either a string to use a HTML element or a component.
668
619
  */
669
620
  component: {
670
621
  type: String,
671
- required: false,
672
622
  default: 'span',
673
623
  },
674
624
  /**
@@ -678,8 +628,6 @@ const CBadge = defineComponent({
678
628
  */
679
629
  position: {
680
630
  type: String,
681
- default: undefined,
682
- required: false,
683
631
  validator: (value) => {
684
632
  return ['top-start', 'top-end', 'bottom-end', 'bottom-start'].includes(value);
685
633
  },
@@ -697,8 +645,6 @@ const CBadge = defineComponent({
697
645
  */
698
646
  size: {
699
647
  type: String,
700
- default: undefined,
701
- required: false,
702
648
  validator: (value) => {
703
649
  return value === 'sm';
704
650
  },
@@ -742,18 +688,11 @@ const CBreadcrumbItem = defineComponent({
742
688
  /**
743
689
  * Toggle the active state for the component.
744
690
  */
745
- active: {
746
- type: Boolean,
747
- required: false,
748
- },
691
+ active: Boolean,
749
692
  /**
750
693
  * The `href` attribute for the inner link component.
751
694
  */
752
- href: {
753
- type: String,
754
- default: undefined,
755
- required: false,
756
- },
695
+ href: String,
757
696
  },
758
697
  setup(props, { slots }) {
759
698
  return () => h$1('li', {
@@ -792,40 +731,28 @@ const CButton = defineComponent({
792
731
  /**
793
732
  * Toggle the active state for the component.
794
733
  */
795
- active: {
796
- type: Boolean,
797
- default: false,
798
- required: false,
799
- },
734
+ active: Boolean,
800
735
  /**
801
736
  * Sets the color context of the component to one of CoreUI’s themed colors.
802
737
  *
803
738
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
804
739
  */
805
- color: Color,
740
+ color: Color$1,
806
741
  /**
807
742
  * Component used for the root node. Either a string to use a HTML element or a component.
808
743
  */
809
744
  component: {
810
745
  type: String,
811
746
  default: 'button',
812
- required: false,
813
747
  },
814
748
  /**
815
749
  * Toggle the disabled state for the component.
816
750
  */
817
- disabled: {
818
- type: Boolean,
819
- required: false,
820
- },
751
+ disabled: Boolean,
821
752
  /**
822
753
  * The href attribute specifies the URL of the page the link goes to.
823
754
  */
824
- href: {
825
- type: String,
826
- default: undefined,
827
- required: false,
828
- },
755
+ href: String,
829
756
  /**
830
757
  * Select the shape of the component.
831
758
  *
@@ -839,8 +766,6 @@ const CButton = defineComponent({
839
766
  */
840
767
  size: {
841
768
  type: String,
842
- default: undefined,
843
- required: false,
844
769
  validator: (value) => {
845
770
  return ['sm', 'lg'].includes(value);
846
771
  },
@@ -854,7 +779,6 @@ const CButton = defineComponent({
854
779
  type: {
855
780
  type: String,
856
781
  default: 'button',
857
- required: false,
858
782
  validator: (value) => {
859
783
  return ['button', 'submit', 'reset'].includes(value);
860
784
  },
@@ -866,8 +790,6 @@ const CButton = defineComponent({
866
790
  */
867
791
  variant: {
868
792
  type: String,
869
- default: undefined,
870
- required: false,
871
793
  validator: (value) => {
872
794
  return ['ghost', 'outline'].includes(value);
873
795
  },
@@ -929,8 +851,6 @@ const CButtonGroup = defineComponent({
929
851
  */
930
852
  size: {
931
853
  type: String,
932
- default: undefined,
933
- required: false,
934
854
  validator: (value) => {
935
855
  return ['sm', 'lg'].includes(value);
936
856
  },
@@ -938,10 +858,7 @@ const CButtonGroup = defineComponent({
938
858
  /**
939
859
  * Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
940
860
  */
941
- vertical: {
942
- type: Boolean,
943
- required: false,
944
- },
861
+ vertical: Boolean,
945
862
  },
946
863
  setup(props, { slots }) {
947
864
  return () => h$1('div', {
@@ -1633,7 +1550,7 @@ const CCallout = defineComponent({
1633
1550
  *
1634
1551
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
1635
1552
  */
1636
- color: Color,
1553
+ color: Color$1,
1637
1554
  },
1638
1555
  setup(props, { slots }) {
1639
1556
  return () => h$1('div', {
@@ -1661,7 +1578,7 @@ const CCard = defineComponent({
1661
1578
  *
1662
1579
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
1663
1580
  */
1664
- color: Color,
1581
+ color: Color$1,
1665
1582
  /**
1666
1583
  * Sets the text color context of the component to one of CoreUI’s themed colors.
1667
1584
  *
@@ -1711,7 +1628,6 @@ const CCardHeader = defineComponent({
1711
1628
  */
1712
1629
  component: {
1713
1630
  type: String,
1714
- required: false,
1715
1631
  default: 'div',
1716
1632
  },
1717
1633
  },
@@ -1728,7 +1644,6 @@ const CCardImage = defineComponent({
1728
1644
  */
1729
1645
  component: {
1730
1646
  type: String,
1731
- required: false,
1732
1647
  default: 'img',
1733
1648
  },
1734
1649
  /**
@@ -1738,8 +1653,6 @@ const CCardImage = defineComponent({
1738
1653
  */
1739
1654
  orientation: {
1740
1655
  type: String,
1741
- default: undefined,
1742
- required: false,
1743
1656
  validator: (value) => {
1744
1657
  return ['top', 'bottom'].includes(value);
1745
1658
  },
@@ -1765,33 +1678,22 @@ const CLink = defineComponent({
1765
1678
  /**
1766
1679
  * Toggle the active state for the component.
1767
1680
  */
1768
- active: {
1769
- type: Boolean,
1770
- required: false,
1771
- },
1681
+ active: Boolean,
1772
1682
  /**
1773
1683
  * Component used for the root node. Either a string to use a HTML element or a component.
1774
1684
  */
1775
1685
  component: {
1776
1686
  type: String,
1777
- required: false,
1778
1687
  default: 'a',
1779
1688
  },
1780
1689
  /**
1781
1690
  * Toggle the disabled state for the component.
1782
1691
  */
1783
- disabled: {
1784
- type: Boolean,
1785
- required: false,
1786
- },
1692
+ disabled: Boolean,
1787
1693
  /**
1788
1694
  * The href attribute specifies the URL of the page the link goes to.
1789
1695
  */
1790
- href: {
1791
- type: String,
1792
- default: undefined,
1793
- required: false,
1794
- },
1696
+ href: String,
1795
1697
  },
1796
1698
  emits: [
1797
1699
  /**
@@ -1830,7 +1732,6 @@ const CCardLink = defineComponent({
1830
1732
  href: {
1831
1733
  type: String,
1832
1734
  default: '#',
1833
- required: false,
1834
1735
  },
1835
1736
  },
1836
1737
  setup(props, { slots }) {
@@ -1846,7 +1747,6 @@ const CCardSubtitle = defineComponent({
1846
1747
  */
1847
1748
  component: {
1848
1749
  type: String,
1849
- required: false,
1850
1750
  default: 'h6',
1851
1751
  },
1852
1752
  },
@@ -1863,7 +1763,6 @@ const CCardText = defineComponent({
1863
1763
  */
1864
1764
  component: {
1865
1765
  type: String,
1866
- required: false,
1867
1766
  default: 'p',
1868
1767
  },
1869
1768
  },
@@ -1880,7 +1779,6 @@ const CCardTitle = defineComponent({
1880
1779
  */
1881
1780
  component: {
1882
1781
  type: String,
1883
- required: false,
1884
1782
  default: 'h5',
1885
1783
  },
1886
1784
  },
@@ -1930,7 +1828,6 @@ const CCarousel = defineComponent({
1930
1828
  index: {
1931
1829
  type: Number,
1932
1830
  default: 0,
1933
- required: false,
1934
1831
  },
1935
1832
  /**
1936
1833
  * Adding indicators at the bottom of the carousel for each item.
@@ -1942,7 +1839,6 @@ const CCarousel = defineComponent({
1942
1839
  interval: {
1943
1840
  type: [Boolean, Number],
1944
1841
  default: 5000,
1945
- required: false,
1946
1842
  },
1947
1843
  /**
1948
1844
  * If set to 'hover', pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on mouseleave. If set to false, hovering over the carousel won't pause it.
@@ -1950,7 +1846,6 @@ const CCarousel = defineComponent({
1950
1846
  pause: {
1951
1847
  type: [Boolean, String],
1952
1848
  default: 'hover',
1953
- required: false,
1954
1849
  validator: (value) => {
1955
1850
  return typeof value === 'boolean' || value === 'hover';
1956
1851
  },
@@ -1963,7 +1858,6 @@ const CCarousel = defineComponent({
1963
1858
  transition: {
1964
1859
  type: String,
1965
1860
  default: 'slide',
1966
- required: false,
1967
1861
  validator: (value) => {
1968
1862
  return ['crossfade', 'slide'].includes(value);
1969
1863
  },
@@ -1974,7 +1868,6 @@ const CCarousel = defineComponent({
1974
1868
  wrap: {
1975
1869
  type: Boolean,
1976
1870
  default: true,
1977
- required: false,
1978
1871
  },
1979
1872
  },
1980
1873
  setup(props, { slots }) {
@@ -2145,7 +2038,6 @@ const CCarouselItem = defineComponent({
2145
2038
  direction: {
2146
2039
  type: String,
2147
2040
  default: 'next',
2148
- required: false,
2149
2041
  },
2150
2042
  /**
2151
2043
  * The amount of time to delay between automatically cycling an item.
@@ -2153,7 +2045,6 @@ const CCarouselItem = defineComponent({
2153
2045
  interval: {
2154
2046
  type: [Boolean, Number],
2155
2047
  default: false,
2156
- required: false,
2157
2048
  },
2158
2049
  },
2159
2050
  setup(props, { slots }) {
@@ -2215,12 +2106,6 @@ const CCarouselPlugin = {
2215
2106
  },
2216
2107
  };
2217
2108
 
2218
- const CCloseButtonPlugin = {
2219
- install: (app) => {
2220
- app.component(CCloseButton.name, CCloseButton);
2221
- },
2222
- };
2223
-
2224
2109
  const CCollapsePlugin = {
2225
2110
  install: (app) => {
2226
2111
  app.component(CCollapse.name, CCollapse);
@@ -4588,10 +4473,7 @@ const CForm = defineComponent({
4588
4473
  /**
4589
4474
  * Mark a form as validated. If you set it `true`, all validation styles will be applied to the forms component.
4590
4475
  */
4591
- validated: {
4592
- type: Boolean,
4593
- required: false,
4594
- },
4476
+ validated: Boolean,
4595
4477
  },
4596
4478
  setup(props, { slots }) {
4597
4479
  return () => h$1('form', { class: [{ ['was-validated']: props.validated }] }, slots.default && slots.default());
@@ -4606,7 +4488,6 @@ const CFormFeedback = defineComponent({
4606
4488
  */
4607
4489
  component: {
4608
4490
  type: String,
4609
- required: false,
4610
4491
  default: 'div',
4611
4492
  },
4612
4493
  /**
@@ -4641,33 +4522,25 @@ const CFormControlValidation = defineComponent({
4641
4522
  /**
4642
4523
  * @ignore
4643
4524
  */
4644
- describedby: {
4645
- type: String,
4646
- },
4525
+ describedby: String,
4647
4526
  /**
4648
4527
  * Provide valuable, actionable feedback.
4649
4528
  *
4650
4529
  * @since 4.3.0
4651
4530
  */
4652
- feedback: {
4653
- type: String,
4654
- },
4531
+ feedback: String,
4655
4532
  /**
4656
4533
  * Provide valuable, actionable feedback.
4657
4534
  *
4658
4535
  * @since 4.3.0
4659
4536
  */
4660
- feedbackInvalid: {
4661
- type: String,
4662
- },
4537
+ feedbackInvalid: String,
4663
4538
  /**
4664
4539
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
4665
4540
  *
4666
4541
  * @since 4.3.0
4667
4542
  */
4668
- feedbackValid: {
4669
- type: String,
4670
- },
4543
+ feedbackValid: String,
4671
4544
  /**
4672
4545
  * Set component validation state to invalid.
4673
4546
  */
@@ -4720,11 +4593,7 @@ const CFormLabel = defineComponent({
4720
4593
  /**
4721
4594
  * A string of all className you want to be applied to the component, and override standard className value.
4722
4595
  */
4723
- customClassName: {
4724
- type: [Array, String],
4725
- default: undefined,
4726
- required: false,
4727
- },
4596
+ customClassName: [Array, String],
4728
4597
  },
4729
4598
  setup(props, { slots }) {
4730
4599
  return () => h$1('label', {
@@ -4742,33 +4611,25 @@ const CFormCheck = defineComponent({
4742
4611
  *
4743
4612
  * @see http://coreui.io/vue/docs/components/button.html
4744
4613
  */
4745
- button: {
4746
- type: Object,
4747
- },
4614
+ button: Object,
4748
4615
  /**
4749
4616
  * Provide valuable, actionable feedback.
4750
4617
  *
4751
4618
  * @since 4.3.0
4752
4619
  */
4753
- feedback: {
4754
- type: String,
4755
- },
4620
+ feedback: String,
4756
4621
  /**
4757
4622
  * Provide valuable, actionable feedback.
4758
4623
  *
4759
4624
  * @since 4.3.0
4760
4625
  */
4761
- feedbackInvalid: {
4762
- type: String,
4763
- },
4626
+ feedbackInvalid: String,
4764
4627
  /**
4765
4628
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
4766
4629
  *
4767
4630
  * @since 4.3.0
4768
4631
  */
4769
- feedbackValid: {
4770
- type: String,
4771
- },
4632
+ feedbackValid: String,
4772
4633
  /**
4773
4634
  * Sets hit area to the full area of the component.
4774
4635
  */
@@ -4782,9 +4643,7 @@ const CFormCheck = defineComponent({
4782
4643
  /**
4783
4644
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
4784
4645
  */
4785
- id: {
4786
- type: String,
4787
- },
4646
+ id: String,
4788
4647
  /**
4789
4648
  * Input Checkbox indeterminate Property
4790
4649
  */
@@ -4792,9 +4651,7 @@ const CFormCheck = defineComponent({
4792
4651
  /**
4793
4652
  * Group checkboxes or radios on the same horizontal row by adding.
4794
4653
  */
4795
- inline: {
4796
- type: Boolean,
4797
- },
4654
+ inline: Boolean,
4798
4655
  /**
4799
4656
  * Set component validation state to invalid.
4800
4657
  */
@@ -4802,9 +4659,7 @@ const CFormCheck = defineComponent({
4802
4659
  /**
4803
4660
  * The element represents a caption for a component.
4804
4661
  */
4805
- label: {
4806
- type: String,
4807
- },
4662
+ label: String,
4808
4663
  /**
4809
4664
  * The default name for a value passed using v-model.
4810
4665
  */
@@ -4836,9 +4691,7 @@ const CFormCheck = defineComponent({
4836
4691
  /**
4837
4692
  * Set component validation state to valid.
4838
4693
  */
4839
- valid: {
4840
- type: Boolean,
4841
- },
4694
+ valid: Boolean,
4842
4695
  },
4843
4696
  emits: [
4844
4697
  /**
@@ -4942,7 +4795,6 @@ const CFormText = defineComponent({
4942
4795
  */
4943
4796
  component: {
4944
4797
  type: String,
4945
- required: false,
4946
4798
  default: 'div',
4947
4799
  },
4948
4800
  },
@@ -4961,31 +4813,23 @@ const CFormControlWrapper = defineComponent({
4961
4813
  *
4962
4814
  * @since 4.3.0
4963
4815
  */
4964
- floatingLabel: {
4965
- type: String,
4966
- },
4816
+ floatingLabel: String,
4967
4817
  /**
4968
4818
  * @ignore
4969
4819
  */
4970
- id: {
4971
- type: String,
4972
- },
4820
+ id: String,
4973
4821
  /**
4974
4822
  * Add a caption for a component.
4975
4823
  *
4976
4824
  * @since 4.3.0
4977
4825
  */
4978
- label: {
4979
- type: String,
4980
- },
4826
+ label: String,
4981
4827
  /**
4982
4828
  * Add helper text to the component.
4983
4829
  *
4984
4830
  * @since 4.3.0
4985
4831
  */
4986
- text: {
4987
- type: String,
4988
- },
4832
+ text: String,
4989
4833
  },
4990
4834
  setup(props, { slots }) {
4991
4835
  const formControlValidation = () => h$1(CFormControlValidation, {
@@ -5049,49 +4893,36 @@ const CFormInput = defineComponent({
5049
4893
  /**
5050
4894
  * Toggle the disabled state for the component.
5051
4895
  */
5052
- disabled: {
5053
- type: Boolean,
5054
- required: false,
5055
- },
4896
+ disabled: Boolean,
5056
4897
  // Inherited Props from CFormControlWrapper
5057
4898
  /**
5058
4899
  * Provide valuable, actionable feedback.
5059
4900
  *
5060
4901
  * @since 4.3.0
5061
4902
  */
5062
- feedback: {
5063
- type: String,
5064
- },
4903
+ feedback: String,
5065
4904
  /**
5066
4905
  * Provide valuable, actionable feedback.
5067
4906
  *
5068
4907
  * @since 4.3.0
5069
4908
  */
5070
- feedbackInvalid: {
5071
- type: String,
5072
- },
4909
+ feedbackInvalid: String,
5073
4910
  /**
5074
4911
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5075
4912
  *
5076
4913
  * @since 4.3.0
5077
4914
  */
5078
- feedbackValid: {
5079
- type: String,
5080
- },
4915
+ feedbackValid: String,
5081
4916
  /**
5082
4917
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5083
4918
  *
5084
4919
  * @since 4.3.0
5085
4920
  */
5086
- floatingLabel: {
5087
- type: String,
5088
- },
4921
+ floatingLabel: String,
5089
4922
  /**
5090
4923
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5091
4924
  */
5092
- id: {
5093
- type: String,
5094
- },
4925
+ id: String,
5095
4926
  /**
5096
4927
  * Set component validation state to invalid.
5097
4928
  */
@@ -5101,30 +4932,19 @@ const CFormInput = defineComponent({
5101
4932
  *
5102
4933
  * @since 4.3.0
5103
4934
  */
5104
- label: {
5105
- type: String,
5106
- },
4935
+ label: String,
5107
4936
  /**
5108
4937
  * The default name for a value passed using v-model.
5109
4938
  */
5110
- modelValue: {
5111
- type: [File, Number, String],
5112
- default: undefined,
5113
- },
4939
+ modelValue: [File, Number, String],
5114
4940
  /**
5115
4941
  * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
5116
4942
  */
5117
- plainText: {
5118
- type: Boolean,
5119
- required: false,
5120
- },
4943
+ plainText: Boolean,
5121
4944
  /**
5122
4945
  * Toggle the readonly state for the component.
5123
4946
  */
5124
- readonly: {
5125
- type: Boolean,
5126
- required: false,
5127
- },
4947
+ readonly: Boolean,
5128
4948
  /**
5129
4949
  * Size the component small or large.
5130
4950
  *
@@ -5141,9 +4961,7 @@ const CFormInput = defineComponent({
5141
4961
  *
5142
4962
  * @since 4.3.0
5143
4963
  */
5144
- text: {
5145
- type: String,
5146
- },
4964
+ text: String,
5147
4965
  /**
5148
4966
  * Display validation feedback in a styled tooltip.
5149
4967
  *
@@ -5241,61 +5059,39 @@ const CFormRange = defineComponent({
5241
5059
  /**
5242
5060
  * Toggle the disabled state for the component.
5243
5061
  */
5244
- disabled: {
5245
- type: Boolean,
5246
- default: undefined,
5247
- },
5062
+ disabled: Boolean,
5248
5063
  /**
5249
5064
  * Add a caption for a component.
5250
5065
  *
5251
5066
  * @since 4.3.0
5252
5067
  */
5253
- label: {
5254
- type: String,
5255
- },
5068
+ label: String,
5256
5069
  /**
5257
5070
  * Specifies the maximum value for the component.
5258
5071
  */
5259
- max: {
5260
- type: Number,
5261
- default: undefined,
5262
- },
5072
+ max: Number,
5263
5073
  /**
5264
5074
  * Specifies the minimum value for the component.
5265
5075
  */
5266
- min: {
5267
- type: Number,
5268
- default: undefined,
5269
- },
5076
+ min: Number,
5270
5077
  /**
5271
5078
  * The default name for a value passed using v-model.
5272
5079
  */
5273
- modelValue: {
5274
- type: String,
5275
- value: undefined,
5276
- },
5080
+ modelValue: String,
5277
5081
  /**
5278
5082
  * Toggle the readonly state for the component.
5279
5083
  */
5280
- readonly: {
5281
- type: Boolean,
5282
- },
5084
+ readonly: Boolean,
5283
5085
  /**
5284
5086
  * Specifies the interval between legal numbers in the component.
5285
5087
  */
5286
- steps: {
5287
- type: Number,
5288
- default: undefined,
5289
- },
5088
+ steps: Number,
5290
5089
  /**
5291
5090
  * The `value` attribute of component.
5292
5091
  *
5293
5092
  * @controllable onChange
5294
5093
  * */
5295
- value: {
5296
- type: Number,
5297
- default: undefined,
5298
- },
5094
+ value: Number,
5299
5095
  },
5300
5096
  emits: [
5301
5097
  /**
@@ -5344,47 +5140,33 @@ const CFormSelect = defineComponent({
5344
5140
  *
5345
5141
  * @since 4.3.0
5346
5142
  */
5347
- feedback: {
5348
- type: String,
5349
- },
5143
+ feedback: String,
5350
5144
  /**
5351
5145
  * Provide valuable, actionable feedback.
5352
5146
  *
5353
5147
  * @since 4.3.0
5354
5148
  */
5355
- feedbackInvalid: {
5356
- type: String,
5357
- },
5149
+ feedbackInvalid: String,
5358
5150
  /**
5359
5151
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5360
5152
  *
5361
5153
  * @since 4.3.0
5362
5154
  */
5363
- feedbackValid: {
5364
- type: String,
5365
- },
5155
+ feedbackValid: String,
5366
5156
  /**
5367
5157
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5368
5158
  *
5369
5159
  * @since 4.3.0
5370
5160
  */
5371
- floatingLabel: {
5372
- type: String,
5373
- },
5161
+ floatingLabel: String,
5374
5162
  /**
5375
5163
  * Specifies the number of visible options in a drop-down list.
5376
5164
  */
5377
- htmlSize: {
5378
- type: Number,
5379
- default: undefined,
5380
- required: false,
5381
- },
5165
+ htmlSize: Number,
5382
5166
  /**
5383
5167
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5384
5168
  */
5385
- id: {
5386
- type: String,
5387
- },
5169
+ id: String,
5388
5170
  /**
5389
5171
  * Set component validation state to invalid.
5390
5172
  */
@@ -5394,32 +5176,21 @@ const CFormSelect = defineComponent({
5394
5176
  *
5395
5177
  * @since 4.3.0
5396
5178
  */
5397
- label: {
5398
- type: String,
5399
- },
5179
+ label: String,
5400
5180
  /**
5401
5181
  * The default name for a value passed using v-model.
5402
5182
  */
5403
5183
  modelValue: {
5404
5184
  type: [String, Array],
5405
- default: undefined,
5406
- require: false,
5407
- },
5408
- multiple: {
5409
- type: Boolean,
5410
- required: false,
5411
5185
  },
5186
+ multiple: Boolean,
5412
5187
  /**
5413
5188
  * Options list of the select component. Available keys: `label`, `value`, `disabled`.
5414
5189
  * Examples:
5415
5190
  * - `:options="[{ value: 'js', label: 'JavaScript' }, { value: 'html', label: 'HTML', disabled: true }]"`
5416
5191
  * - `:options="['js', 'html']"`
5417
5192
  */
5418
- options: {
5419
- type: Array,
5420
- default: undefined,
5421
- required: false,
5422
- },
5193
+ options: Array,
5423
5194
  /**
5424
5195
  * Size the component small or large.
5425
5196
  *
@@ -5427,8 +5198,6 @@ const CFormSelect = defineComponent({
5427
5198
  */
5428
5199
  size: {
5429
5200
  type: String,
5430
- default: undefined,
5431
- require: false,
5432
5201
  validator: (value) => {
5433
5202
  return ['sm', 'lg'].includes(value);
5434
5203
  },
@@ -5438,9 +5207,7 @@ const CFormSelect = defineComponent({
5438
5207
  *
5439
5208
  * @since 4.3.0
5440
5209
  */
5441
- text: {
5442
- type: String,
5443
- },
5210
+ text: String,
5444
5211
  /**
5445
5212
  * Display validation feedback in a styled tooltip.
5446
5213
  *
@@ -5536,28 +5303,19 @@ const CFormSwitch = defineComponent({
5536
5303
  /**
5537
5304
  * The id global attribute defines an identifier (ID) that must be unique in the whole document
5538
5305
  */
5539
- id: {
5540
- type: String,
5541
- },
5306
+ id: String,
5542
5307
  /**
5543
5308
  * Set component validation state to invalid.
5544
5309
  */
5545
- invalid: {
5546
- type: Boolean,
5547
- },
5310
+ invalid: Boolean,
5548
5311
  /**
5549
5312
  * The element represents a caption for a component.
5550
5313
  */
5551
- label: {
5552
- type: String,
5553
- },
5314
+ label: String,
5554
5315
  /**
5555
5316
  * The default name for a value passed using v-model.
5556
5317
  */
5557
- modelValue: {
5558
- type: [Boolean, String],
5559
- value: undefined,
5560
- },
5318
+ modelValue: [Boolean, String],
5561
5319
  /**
5562
5320
  * Put checkboxes or radios on the opposite side.
5563
5321
  *
@@ -5587,9 +5345,7 @@ const CFormSwitch = defineComponent({
5587
5345
  /**
5588
5346
  * Set component validation state to valid.
5589
5347
  */
5590
- valid: {
5591
- type: Boolean,
5592
- },
5348
+ valid: Boolean,
5593
5349
  },
5594
5350
  emits: [
5595
5351
  /**
@@ -5649,47 +5405,35 @@ const CFormTextarea = defineComponent({
5649
5405
  /**
5650
5406
  * Toggle the disabled state for the component.
5651
5407
  */
5652
- disabled: {
5653
- type: Boolean,
5654
- },
5408
+ disabled: Boolean,
5655
5409
  /**
5656
5410
  * Provide valuable, actionable feedback.
5657
5411
  *
5658
5412
  * @since 4.3.0
5659
5413
  */
5660
- feedback: {
5661
- type: String,
5662
- },
5414
+ feedback: String,
5663
5415
  /**
5664
5416
  * Provide valuable, actionable feedback.
5665
5417
  *
5666
5418
  * @since 4.3.0
5667
5419
  */
5668
- feedbackInvalid: {
5669
- type: String,
5670
- },
5420
+ feedbackInvalid: String,
5671
5421
  /**
5672
5422
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5673
5423
  *
5674
5424
  * @since 4.3.0
5675
5425
  */
5676
- feedbackValid: {
5677
- type: String,
5678
- },
5426
+ feedbackValid: String,
5679
5427
  /**
5680
5428
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5681
5429
  *
5682
5430
  * @since 4.3.0
5683
5431
  */
5684
- floatingLabel: {
5685
- type: String,
5686
- },
5432
+ floatingLabel: String,
5687
5433
  /**
5688
5434
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5689
5435
  */
5690
- id: {
5691
- type: String,
5692
- },
5436
+ id: String,
5693
5437
  /**
5694
5438
  * Set component validation state to invalid.
5695
5439
  */
@@ -5699,36 +5443,25 @@ const CFormTextarea = defineComponent({
5699
5443
  *
5700
5444
  * @since 4.3.0
5701
5445
  */
5702
- label: {
5703
- type: String,
5704
- },
5446
+ label: String,
5705
5447
  /**
5706
5448
  * The default name for a value passed using v-model.
5707
5449
  */
5708
- modelValue: {
5709
- type: String,
5710
- default: undefined,
5711
- },
5450
+ modelValue: String,
5712
5451
  /**
5713
5452
  * Render the component styled as plain text. Removes the default form field styling and preserve the correct margin and padding. Recommend to use only along side `readonly`.
5714
5453
  */
5715
- plainText: {
5716
- type: Boolean,
5717
- },
5454
+ plainText: Boolean,
5718
5455
  /**
5719
5456
  * Toggle the readonly state for the component.
5720
5457
  */
5721
- readonly: {
5722
- type: Boolean,
5723
- },
5458
+ readonly: Boolean,
5724
5459
  /**
5725
5460
  * Add helper text to the component.
5726
5461
  *
5727
5462
  * @since 4.3.0
5728
5463
  */
5729
- text: {
5730
- type: String,
5731
- },
5464
+ text: String,
5732
5465
  /**
5733
5466
  * Display validation feedback in a styled tooltip.
5734
5467
  *
@@ -5817,8 +5550,6 @@ const CInputGroup = defineComponent({
5817
5550
  */
5818
5551
  size: {
5819
5552
  type: String,
5820
- default: undefined,
5821
- required: false,
5822
5553
  validator: (value) => {
5823
5554
  return ['sm', 'lg'].includes(value);
5824
5555
  },
@@ -5844,7 +5575,6 @@ const CInputGroupText = defineComponent({
5844
5575
  */
5845
5576
  component: {
5846
5577
  type: String,
5847
- required: false,
5848
5578
  default: 'span',
5849
5579
  },
5850
5580
  },
@@ -7856,8 +7586,6 @@ const CDropdown = defineComponent({
7856
7586
  */
7857
7587
  alignment: {
7858
7588
  type: [String, Object],
7859
- default: undefined,
7860
- required: false,
7861
7589
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7862
7590
  validator: (value) => {
7863
7591
  if (value === 'start' || value === 'end') {
@@ -7903,10 +7631,7 @@ const CDropdown = defineComponent({
7903
7631
  /**
7904
7632
  * Sets a darker color scheme to match a dark navbar.
7905
7633
  */
7906
- dark: {
7907
- type: Boolean,
7908
- required: false,
7909
- },
7634
+ dark: Boolean,
7910
7635
  /**
7911
7636
  * Sets a specified direction and location of the dropdown menu.
7912
7637
  *
@@ -7914,8 +7639,6 @@ const CDropdown = defineComponent({
7914
7639
  */
7915
7640
  direction: {
7916
7641
  type: String,
7917
- default: undefined,
7918
- required: false,
7919
7642
  validator: (value) => {
7920
7643
  return ['center', 'dropup', 'dropup-center', 'dropend', 'dropstart'].includes(value);
7921
7644
  },
@@ -7923,10 +7646,7 @@ const CDropdown = defineComponent({
7923
7646
  /**
7924
7647
  * Toggle the disabled state for the component.
7925
7648
  */
7926
- disabled: {
7927
- type: Boolean,
7928
- required: false,
7929
- },
7649
+ disabled: Boolean,
7930
7650
  /**
7931
7651
  * 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.
7932
7652
  *
@@ -7935,7 +7655,6 @@ const CDropdown = defineComponent({
7935
7655
  placement: {
7936
7656
  type: String,
7937
7657
  default: 'bottom-start',
7938
- required: false,
7939
7658
  },
7940
7659
  /**
7941
7660
  * If you want to disable dynamic positioning set this property to `true`.
@@ -7943,14 +7662,12 @@ const CDropdown = defineComponent({
7943
7662
  popper: {
7944
7663
  type: Boolean,
7945
7664
  default: true,
7946
- required: false,
7947
7665
  },
7948
7666
  /**
7949
7667
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
7950
7668
  */
7951
7669
  trigger: {
7952
- type: [String, Array],
7953
- required: false,
7670
+ type: String,
7954
7671
  default: 'click',
7955
7672
  },
7956
7673
  /**
@@ -7961,7 +7678,6 @@ const CDropdown = defineComponent({
7961
7678
  variant: {
7962
7679
  type: String,
7963
7680
  default: 'btn-group',
7964
- required: false,
7965
7681
  validator: (value) => {
7966
7682
  return ['btn-group', 'dropdown', 'input-group', 'nav-item'].includes(value);
7967
7683
  },
@@ -7969,10 +7685,7 @@ const CDropdown = defineComponent({
7969
7685
  /**
7970
7686
  * Toggle the visibility of dropdown menu component.
7971
7687
  */
7972
- visible: {
7973
- type: Boolean,
7974
- required: false,
7975
- },
7688
+ visible: Boolean,
7976
7689
  },
7977
7690
  emits: [
7978
7691
  /**
@@ -8085,33 +7798,22 @@ const CDropdownItem = defineComponent({
8085
7798
  /**
8086
7799
  * Toggle the active state for the component.
8087
7800
  */
8088
- active: {
8089
- type: Boolean,
8090
- required: false,
8091
- },
7801
+ active: Boolean,
8092
7802
  /**
8093
7803
  * Component used for the root node. Either a string to use a HTML element or a component.
8094
7804
  */
8095
7805
  component: {
8096
7806
  type: String,
8097
7807
  default: 'a',
8098
- required: false,
8099
7808
  },
8100
7809
  /**
8101
7810
  * Toggle the disabled state for the component.
8102
7811
  */
8103
- disabled: {
8104
- type: Boolean,
8105
- required: false,
8106
- },
7812
+ disabled: Boolean,
8107
7813
  /**
8108
7814
  * The href attribute specifies the URL of the page the link goes to.
8109
7815
  */
8110
- href: {
8111
- type: String,
8112
- default: undefined,
8113
- required: false,
8114
- },
7816
+ href: String,
8115
7817
  },
8116
7818
  setup(props, { slots }) {
8117
7819
  return () => h$1(CLink, {
@@ -8135,7 +7837,6 @@ const CDropdownHeader = defineComponent({
8135
7837
  component: {
8136
7838
  type: String,
8137
7839
  default: 'h6',
8138
- required: false,
8139
7840
  },
8140
7841
  },
8141
7842
  setup(props, { slots }) {
@@ -8165,7 +7866,6 @@ const CDropdownMenu = defineComponent({
8165
7866
  component: {
8166
7867
  type: String,
8167
7868
  default: 'div',
8168
- required: false,
8169
7869
  },
8170
7870
  },
8171
7871
  setup(props, { slots }) {
@@ -8243,32 +7943,26 @@ const CDropdownToggle = defineComponent({
8243
7943
  /**
8244
7944
  * Toggle the active state for the component.
8245
7945
  */
8246
- active: {
8247
- type: Boolean,
8248
- default: false,
8249
- required: false,
8250
- },
7946
+ active: Boolean,
8251
7947
  /**
8252
7948
  * Sets the color context of the component to one of CoreUI’s themed colors.
8253
7949
  *
8254
7950
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8255
7951
  */
8256
- color: Color,
7952
+ color: Color$1,
8257
7953
  /**
8258
7954
  * Enables pseudo element caret on toggler.
8259
7955
  */
8260
7956
  caret: {
8261
7957
  type: Boolean,
8262
7958
  default: true,
8263
- required: false,
8264
7959
  },
8265
7960
  /**
8266
7961
  * Component used for the root node. Either a string to use a HTML element or a component.
8267
7962
  */
8268
7963
  component: {
8269
7964
  type: String,
8270
- default: 'button',
8271
- require: false,
7965
+ default: 'button'
8272
7966
  },
8273
7967
  /**
8274
7968
  * Create a custom toggler which accepts any content.
@@ -8277,10 +7971,7 @@ const CDropdownToggle = defineComponent({
8277
7971
  /**
8278
7972
  * Toggle the disabled state for the component.
8279
7973
  */
8280
- disabled: {
8281
- type: Boolean,
8282
- required: false,
8283
- },
7974
+ disabled: Boolean,
8284
7975
  /**
8285
7976
  * @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3'
8286
7977
  */
@@ -8292,8 +7983,6 @@ const CDropdownToggle = defineComponent({
8292
7983
  */
8293
7984
  size: {
8294
7985
  type: String,
8295
- default: undefined,
8296
- required: false,
8297
7986
  validator: (value) => {
8298
7987
  return ['sm', 'lg'].includes(value);
8299
7988
  },
@@ -8301,10 +7990,7 @@ const CDropdownToggle = defineComponent({
8301
7990
  /**
8302
7991
  * Similarly, create split button dropdowns with virtually the same markup as single button dropdowns, but with the addition of `.dropdown-toggle-split` className for proper spacing around the dropdown caret.
8303
7992
  */
8304
- split: {
8305
- type: Boolean,
8306
- required: false,
8307
- },
7993
+ split: Boolean,
8308
7994
  /**
8309
7995
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
8310
7996
  *
@@ -8313,7 +7999,6 @@ const CDropdownToggle = defineComponent({
8313
7999
  trigger: {
8314
8000
  type: String,
8315
8001
  default: 'click',
8316
- required: false,
8317
8002
  },
8318
8003
  /**
8319
8004
  * Set the button variant to an outlined button or a ghost button.
@@ -8322,8 +8007,6 @@ const CDropdownToggle = defineComponent({
8322
8007
  */
8323
8008
  variant: {
8324
8009
  type: String,
8325
- default: undefined,
8326
- required: false,
8327
8010
  validator: (value) => {
8328
8011
  return ['ghost', 'outline'].includes(value);
8329
8012
  },
@@ -8430,21 +8113,48 @@ const CDropdownPlugin = {
8430
8113
  },
8431
8114
  };
8432
8115
 
8433
- const CPicker = defineComponent({
8434
- name: 'CPicker',
8435
- props: {
8436
- ...CDropdown.props,
8437
- /**
8438
- * Toggle visibility or set the content of cancel button.
8439
- */
8440
- cancelButton: {
8441
- type: [Boolean, String],
8442
- default: 'Cancel',
8443
- },
8444
- /**
8445
- * Sets the color context of the cancel button to one of CoreUI’s themed colors.
8446
- *
8447
- * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8116
+ const Color = {
8117
+ type: String,
8118
+ validator: (value) => {
8119
+ // The value must match one of these strings
8120
+ return [
8121
+ 'primary',
8122
+ 'secondary',
8123
+ 'success',
8124
+ 'danger',
8125
+ 'warning',
8126
+ 'info',
8127
+ 'dark',
8128
+ 'light',
8129
+ 'link',
8130
+ 'transparent',
8131
+ 'primary-gradient',
8132
+ 'secondary-gradient',
8133
+ 'success-gradient',
8134
+ 'danger-gradient',
8135
+ 'warning-gradient',
8136
+ 'info-gradient',
8137
+ 'dark-gradient',
8138
+ 'light-gradient',
8139
+ ].includes(value);
8140
+ },
8141
+ };
8142
+
8143
+ const CPicker = defineComponent({
8144
+ name: 'CPicker',
8145
+ props: {
8146
+ ...CDropdown.props,
8147
+ /**
8148
+ * Toggle visibility or set the content of cancel button.
8149
+ */
8150
+ cancelButton: {
8151
+ type: [Boolean, String],
8152
+ default: 'Cancel',
8153
+ },
8154
+ /**
8155
+ * Sets the color context of the cancel button to one of CoreUI’s themed colors.
8156
+ *
8157
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8448
8158
  */
8449
8159
  cancelButtonColor: {
8450
8160
  ...Color,
@@ -10335,8 +10045,6 @@ const CSpinner = defineComponent({
10335
10045
  */
10336
10046
  color: {
10337
10047
  type: String,
10338
- default: undefined,
10339
- required: false,
10340
10048
  validator: (value) => {
10341
10049
  return [
10342
10050
  'primary',
@@ -10356,7 +10064,6 @@ const CSpinner = defineComponent({
10356
10064
  component: {
10357
10065
  type: String,
10358
10066
  default: 'div',
10359
- required: false,
10360
10067
  },
10361
10068
  /**
10362
10069
  * Size the component small.
@@ -10365,8 +10072,6 @@ const CSpinner = defineComponent({
10365
10072
  */
10366
10073
  size: {
10367
10074
  type: String,
10368
- default: undefined,
10369
- required: false,
10370
10075
  validator: (value) => {
10371
10076
  return value === 'sm';
10372
10077
  },
@@ -10379,7 +10084,6 @@ const CSpinner = defineComponent({
10379
10084
  variant: {
10380
10085
  type: String,
10381
10086
  default: 'border',
10382
- required: false,
10383
10087
  validator: (value) => {
10384
10088
  return ['border', 'grow'].includes(value);
10385
10089
  },
@@ -10390,7 +10094,6 @@ const CSpinner = defineComponent({
10390
10094
  visuallyHiddenLabel: {
10391
10095
  type: String,
10392
10096
  default: 'Loading...',
10393
- required: false,
10394
10097
  },
10395
10098
  },
10396
10099
  setup(props) {
@@ -10514,8 +10217,6 @@ const CFooter = defineComponent({
10514
10217
  */
10515
10218
  position: {
10516
10219
  type: String,
10517
- default: undefined,
10518
- required: false,
10519
10220
  validator: (value) => {
10520
10221
  return ['fixed', 'sticky'].includes(value);
10521
10222
  },
@@ -10550,8 +10251,6 @@ const CCol = defineComponent({
10550
10251
  */
10551
10252
  xs: {
10552
10253
  type: [Boolean, Number, String, Object],
10553
- default: undefined,
10554
- require: false,
10555
10254
  },
10556
10255
  /**
10557
10256
  * The number of columns/offset/order on small devices (<768px).
@@ -10560,8 +10259,6 @@ const CCol = defineComponent({
10560
10259
  */
10561
10260
  sm: {
10562
10261
  type: [Boolean, Number, String, Object],
10563
- default: undefined,
10564
- require: false,
10565
10262
  },
10566
10263
  /**
10567
10264
  * The number of columns/offset/order on medium devices (<992px).
@@ -10570,8 +10267,6 @@ const CCol = defineComponent({
10570
10267
  */
10571
10268
  md: {
10572
10269
  type: [Boolean, Number, String, Object],
10573
- default: undefined,
10574
- require: false,
10575
10270
  },
10576
10271
  /**
10577
10272
  * The number of columns/offset/order on large devices (<1200px).
@@ -10580,8 +10275,6 @@ const CCol = defineComponent({
10580
10275
  */
10581
10276
  lg: {
10582
10277
  type: [Boolean, Number, String, Object],
10583
- default: undefined,
10584
- require: false,
10585
10278
  },
10586
10279
  /**
10587
10280
  * The number of columns/offset/order on X-Large devices (<1400px).
@@ -10590,8 +10283,6 @@ const CCol = defineComponent({
10590
10283
  */
10591
10284
  xl: {
10592
10285
  type: [Boolean, Number, String, Object],
10593
- default: undefined,
10594
- require: false,
10595
10286
  },
10596
10287
  /**
10597
10288
  * The number of columns/offset/order on XX-Large devices (≥1400px).
@@ -10600,8 +10291,6 @@ const CCol = defineComponent({
10600
10291
  */
10601
10292
  xxl: {
10602
10293
  type: [Boolean, Number, String, Object],
10603
- default: undefined,
10604
- require: false,
10605
10294
  },
10606
10295
  },
10607
10296
  setup(props, { slots }) {
@@ -10652,45 +10341,27 @@ const CContainer = defineComponent({
10652
10341
  /**
10653
10342
  * Set container 100% wide until small breakpoint.
10654
10343
  */
10655
- sm: {
10656
- type: Boolean,
10657
- required: false,
10658
- },
10344
+ sm: Boolean,
10659
10345
  /**
10660
10346
  * Set container 100% wide until medium breakpoint.
10661
10347
  */
10662
- md: {
10663
- type: Boolean,
10664
- required: false,
10665
- },
10348
+ md: Boolean,
10666
10349
  /**
10667
10350
  * Set container 100% wide until large breakpoint.
10668
10351
  */
10669
- lg: {
10670
- type: Boolean,
10671
- required: false,
10672
- },
10352
+ lg: Boolean,
10673
10353
  /**
10674
10354
  * Set container 100% wide until X-large breakpoint.
10675
10355
  */
10676
- xl: {
10677
- type: Boolean,
10678
- required: false,
10679
- },
10356
+ xl: Boolean,
10680
10357
  /**
10681
10358
  * Set container 100% wide until XX-large breakpoint.
10682
10359
  */
10683
- xxl: {
10684
- type: Boolean,
10685
- required: false,
10686
- },
10360
+ xxl: Boolean,
10687
10361
  /**
10688
10362
  * Set container 100% wide, spanning the entire width of the viewport.
10689
10363
  */
10690
- fluid: {
10691
- type: Boolean,
10692
- required: false,
10693
- },
10364
+ fluid: Boolean,
10694
10365
  },
10695
10366
  setup(props, { slots }) {
10696
10367
  const repsonsiveClassNames = [];
@@ -10720,61 +10391,37 @@ const CRow = defineComponent({
10720
10391
  *
10721
10392
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10722
10393
  */
10723
- xs: {
10724
- type: Object,
10725
- default: undefined,
10726
- required: false,
10727
- },
10394
+ xs: Object,
10728
10395
  /**
10729
10396
  * The number of columns/offset/order on small devices (<768px).
10730
10397
  *
10731
10398
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10732
10399
  */
10733
- sm: {
10734
- type: Object,
10735
- default: undefined,
10736
- required: false,
10737
- /**
10738
- * The number of columns/offset/order on medium devices (<992px).
10739
- *
10740
- * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10741
- */
10742
- },
10743
- md: {
10744
- type: Object,
10745
- default: undefined,
10746
- required: false,
10747
- },
10400
+ sm: Object,
10401
+ /**
10402
+ * The number of columns/offset/order on medium devices (<992px).
10403
+ *
10404
+ * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10405
+ */
10406
+ md: Object,
10748
10407
  /**
10749
10408
  * The number of columns/offset/order on large devices (<1200px).
10750
10409
  *
10751
10410
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10752
10411
  */
10753
- lg: {
10754
- type: Object,
10755
- default: undefined,
10756
- required: false,
10757
- },
10412
+ lg: Object,
10758
10413
  /**
10759
10414
  * The number of columns/offset/order on X-Large devices (<1400px).
10760
10415
  *
10761
10416
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10762
10417
  */
10763
- xl: {
10764
- type: Object,
10765
- default: undefined,
10766
- required: false,
10767
- },
10418
+ xl: Object,
10768
10419
  /**
10769
10420
  * The number of columns/offset/order on XX-Large devices (≥1400px).
10770
10421
  *
10771
10422
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10772
10423
  */
10773
- xxl: {
10774
- type: Object,
10775
- default: undefined,
10776
- required: false,
10777
- },
10424
+ xxl: Object,
10778
10425
  },
10779
10426
  setup(props, { slots }) {
10780
10427
  const repsonsiveClassNames = [];
@@ -10820,8 +10467,6 @@ const CHeader = defineComponent({
10820
10467
  */
10821
10468
  container: {
10822
10469
  type: [Boolean, String],
10823
- default: undefined,
10824
- required: false,
10825
10470
  validator: (value) => {
10826
10471
  return (typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl', 'fluid'].includes(value));
10827
10472
  },
@@ -10833,8 +10478,6 @@ const CHeader = defineComponent({
10833
10478
  */
10834
10479
  position: {
10835
10480
  type: String,
10836
- default: undefined,
10837
- required: false,
10838
10481
  validator: (value) => {
10839
10482
  return ['fixed', 'sticky'].includes(value);
10840
10483
  },
@@ -10855,7 +10498,6 @@ const CHeaderBrand = defineComponent({
10855
10498
  */
10856
10499
  component: {
10857
10500
  type: String,
10858
- required: false,
10859
10501
  default: 'a',
10860
10502
  },
10861
10503
  },
@@ -10879,7 +10521,6 @@ const CHeaderNav = defineComponent({
10879
10521
  */
10880
10522
  component: {
10881
10523
  type: String,
10882
- required: false,
10883
10524
  default: 'ul',
10884
10525
  },
10885
10526
  },
@@ -10930,8 +10571,6 @@ const CImage = defineComponent({
10930
10571
  */
10931
10572
  align: {
10932
10573
  type: String,
10933
- default: undefined,
10934
- required: false,
10935
10574
  validator: (value) => {
10936
10575
  return ['start', 'center', 'end'].includes(value);
10937
10576
  },
@@ -10939,24 +10578,15 @@ const CImage = defineComponent({
10939
10578
  /**
10940
10579
  * Make image responsive.
10941
10580
  */
10942
- fluid: {
10943
- type: Boolean,
10944
- required: false,
10945
- },
10581
+ fluid: Boolean,
10946
10582
  /**
10947
10583
  * Make image rounded.
10948
10584
  */
10949
- rounded: {
10950
- type: Boolean,
10951
- required: false,
10952
- },
10585
+ rounded: Boolean,
10953
10586
  /**
10954
10587
  * Give an image a rounded 1px border appearance.
10955
10588
  */
10956
- thumbnail: {
10957
- type: Boolean,
10958
- required: false,
10959
- },
10589
+ thumbnail: Boolean,
10960
10590
  },
10961
10591
  setup(props) {
10962
10592
  return () => h$1('img', {
@@ -10987,16 +10617,12 @@ const CListGroup = defineComponent({
10987
10617
  */
10988
10618
  component: {
10989
10619
  type: String,
10990
- required: false,
10991
10620
  default: 'ul',
10992
10621
  },
10993
10622
  /**
10994
10623
  * Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., `<CCard>`)
10995
10624
  */
10996
- flush: {
10997
- type: Boolean,
10998
- required: false,
10999
- },
10625
+ flush: Boolean,
11000
10626
  /**
11001
10627
  * Specify a layout type.
11002
10628
  *
@@ -11004,8 +10630,6 @@ const CListGroup = defineComponent({
11004
10630
  */
11005
10631
  layout: {
11006
10632
  type: String,
11007
- default: undefined,
11008
- required: false,
11009
10633
  validator: (value) => {
11010
10634
  return [
11011
10635
  'horizontal',
@@ -11037,29 +10661,22 @@ const CListGroupItem = defineComponent({
11037
10661
  /**
11038
10662
  * Toggle the active state for the component.
11039
10663
  */
11040
- active: {
11041
- type: Boolean,
11042
- required: false,
11043
- },
10664
+ active: Boolean,
11044
10665
  /**
11045
10666
  * Sets the color context of the component to one of CoreUI’s themed colors.
11046
10667
  *
11047
10668
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
11048
10669
  */
11049
- color: Color,
10670
+ color: Color$1,
11050
10671
  /**
11051
10672
  * Toggle the disabled state for the component.
11052
10673
  */
11053
- disabled: {
11054
- type: Boolean,
11055
- required: false,
11056
- },
10674
+ disabled: Boolean,
11057
10675
  /**
11058
10676
  * Component used for the root node. Either a string to use a HTML element or a component.
11059
10677
  */
11060
10678
  component: {
11061
10679
  type: String,
11062
- required: false,
11063
10680
  default: 'li',
11064
10681
  },
11065
10682
  },
@@ -11206,10 +10823,7 @@ const CModal = defineComponent({
11206
10823
  /**
11207
10824
  * A string of all className you want applied to the modal content component.
11208
10825
  */
11209
- contentClassName: {
11210
- type: String,
11211
- default: undefined,
11212
- },
10826
+ contentClassName: String,
11213
10827
  /**
11214
10828
  * Set modal to covers the entire user viewport
11215
10829
  *
@@ -11217,7 +10831,6 @@ const CModal = defineComponent({
11217
10831
  */
11218
10832
  fullscreen: {
11219
10833
  type: [Boolean, String],
11220
- default: undefined,
11221
10834
  validator: (value) => {
11222
10835
  if (typeof value == 'string') {
11223
10836
  return ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
@@ -11238,9 +10851,7 @@ const CModal = defineComponent({
11238
10851
  /**
11239
10852
  * Create a scrollable modal that allows scrolling the modal body.
11240
10853
  */
11241
- scrollable: {
11242
- type: Boolean,
11243
- },
10854
+ scrollable: Boolean,
11244
10855
  /**
11245
10856
  * Size the component small, large, or extra large.
11246
10857
  *
@@ -11248,7 +10859,6 @@ const CModal = defineComponent({
11248
10859
  */
11249
10860
  size: {
11250
10861
  type: String,
11251
- default: undefined,
11252
10862
  validator: (value) => {
11253
10863
  return ['sm', 'lg', 'xl'].includes(value);
11254
10864
  },
@@ -11421,7 +11031,6 @@ const CModalHeader = defineComponent({
11421
11031
  */
11422
11032
  closeButton: {
11423
11033
  type: Boolean,
11424
- required: false,
11425
11034
  default: true,
11426
11035
  },
11427
11036
  },
@@ -11443,7 +11052,6 @@ const CModalTitle = defineComponent({
11443
11052
  component: {
11444
11053
  type: String,
11445
11054
  default: 'h5',
11446
- required: false,
11447
11055
  },
11448
11056
  },
11449
11057
  setup(props, { slots }) {
@@ -12312,7 +11920,6 @@ const CNav = defineComponent({
12312
11920
  */
12313
11921
  component: {
12314
11922
  type: String,
12315
- required: false,
12316
11923
  default: 'ul',
12317
11924
  },
12318
11925
  /**
@@ -12322,8 +11929,6 @@ const CNav = defineComponent({
12322
11929
  */
12323
11930
  layout: {
12324
11931
  type: String,
12325
- required: false,
12326
- default: undefined,
12327
11932
  validator: (value) => {
12328
11933
  return ['fill', 'justified'].includes(value);
12329
11934
  },
@@ -12335,8 +11940,6 @@ const CNav = defineComponent({
12335
11940
  */
12336
11941
  variant: {
12337
11942
  type: String,
12338
- required: false,
12339
- default: undefined,
12340
11943
  validator: (value) => {
12341
11944
  return ['tabs', 'pills', 'underline'].includes(value);
12342
11945
  },
@@ -12480,33 +12083,22 @@ const CNavLink = defineComponent({
12480
12083
  /**
12481
12084
  * Toggle the active state for the component.
12482
12085
  */
12483
- active: {
12484
- type: Boolean,
12485
- required: false,
12486
- },
12086
+ active: Boolean,
12487
12087
  /**
12488
12088
  * Component used for the root node. Either a string to use a HTML element or a component.
12489
12089
  */
12490
12090
  component: {
12491
12091
  type: String,
12492
- required: false,
12493
12092
  default: 'a',
12494
12093
  },
12495
12094
  /**
12496
12095
  * Toggle the disabled state for the component.
12497
12096
  */
12498
- disabled: {
12499
- type: Boolean,
12500
- required: false,
12501
- },
12097
+ disabled: Boolean,
12502
12098
  /**
12503
12099
  * @ignore
12504
12100
  */
12505
- href: {
12506
- type: String,
12507
- default: undefined,
12508
- required: false,
12509
- },
12101
+ href: String,
12510
12102
  },
12511
12103
  setup(props, { slots }) {
12512
12104
  return () => h$1(CLink, {
@@ -12568,7 +12160,7 @@ const CNavbar = defineComponent({
12568
12160
  *
12569
12161
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
12570
12162
  */
12571
- color: Color,
12163
+ color: Color$1,
12572
12164
  /**
12573
12165
  * Sets if the color of text should be colored for a light or dark dark background.
12574
12166
  *
@@ -12576,8 +12168,6 @@ const CNavbar = defineComponent({
12576
12168
  */
12577
12169
  colorScheme: {
12578
12170
  type: String,
12579
- default: undefined,
12580
- required: false,
12581
12171
  validator: (value) => {
12582
12172
  return ['dark', 'light'].includes(value);
12583
12173
  },
@@ -12588,7 +12178,6 @@ const CNavbar = defineComponent({
12588
12178
  component: {
12589
12179
  type: String,
12590
12180
  default: 'nav',
12591
- required: false,
12592
12181
  },
12593
12182
  /**
12594
12183
  * Defines optional container wrapping children elements.
@@ -12597,8 +12186,6 @@ const CNavbar = defineComponent({
12597
12186
  */
12598
12187
  container: {
12599
12188
  type: [Boolean, String],
12600
- default: undefined,
12601
- required: false,
12602
12189
  validator: (value) => {
12603
12190
  return (typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl', 'fluid'].includes(value));
12604
12191
  },
@@ -12610,8 +12197,6 @@ const CNavbar = defineComponent({
12610
12197
  */
12611
12198
  expand: {
12612
12199
  type: [Boolean, String],
12613
- default: undefined,
12614
- required: false,
12615
12200
  validator: (value) => {
12616
12201
  return typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
12617
12202
  },
@@ -12623,8 +12208,6 @@ const CNavbar = defineComponent({
12623
12208
  */
12624
12209
  placement: {
12625
12210
  type: String,
12626
- default: undefined,
12627
- required: false,
12628
12211
  validator: (value) => {
12629
12212
  return ['fixed-top', 'fixed-bottom', 'sticky-top'].includes(value);
12630
12213
  },
@@ -12659,16 +12242,11 @@ const CNavbarBrand = defineComponent({
12659
12242
  component: {
12660
12243
  type: String,
12661
12244
  default: 'a',
12662
- required: false,
12663
12245
  },
12664
12246
  /**
12665
12247
  * The href attribute specifies the URL of the page the link goes to.
12666
12248
  */
12667
- href: {
12668
- type: String,
12669
- default: undefined,
12670
- required: false,
12671
- },
12249
+ href: String,
12672
12250
  },
12673
12251
  setup(props, { slots }) {
12674
12252
  return () => h$1(props.component ? props.component : props.href ? 'a' : 'span', {
@@ -12686,7 +12264,6 @@ const CNavbarNav = defineComponent({
12686
12264
  */
12687
12265
  component: {
12688
12266
  type: String,
12689
- required: false,
12690
12267
  default: 'ul',
12691
12268
  },
12692
12269
  },
@@ -12759,7 +12336,6 @@ const COffcanvas = defineComponent({
12759
12336
  */
12760
12337
  placement: {
12761
12338
  type: String,
12762
- default: undefined,
12763
12339
  require: true,
12764
12340
  validator: (value) => {
12765
12341
  return ['start', 'end', 'top', 'bottom'].includes(value);
@@ -12794,7 +12370,10 @@ const COffcanvas = defineComponent({
12794
12370
  /**
12795
12371
  * Toggle the visibility of offcanvas component.
12796
12372
  */
12797
- visible: Boolean,
12373
+ visible: {
12374
+ type: Boolean,
12375
+ default: false,
12376
+ },
12798
12377
  },
12799
12378
  emits: [
12800
12379
  /**
@@ -12813,11 +12392,9 @@ const COffcanvas = defineComponent({
12813
12392
  visible.value = props.visible;
12814
12393
  });
12815
12394
  watch(visible, () => {
12816
- if (visible.value) {
12817
- if (!props.scroll) {
12818
- document.body.style.overflow = 'hidden';
12819
- document.body.style.paddingRight = '0px';
12820
- }
12395
+ if (visible.value && !props.scroll) {
12396
+ document.body.style.overflow = 'hidden';
12397
+ document.body.style.paddingRight = '0px';
12821
12398
  return;
12822
12399
  }
12823
12400
  if (!props.scroll) {
@@ -12907,7 +12484,6 @@ const COffcanvasTitle = defineComponent({
12907
12484
  */
12908
12485
  component: {
12909
12486
  type: String,
12910
- required: false,
12911
12487
  default: 'h5',
12912
12488
  },
12913
12489
  },
@@ -12935,8 +12511,6 @@ const CPagination = defineComponent({
12935
12511
  */
12936
12512
  align: {
12937
12513
  type: String,
12938
- default: undefined,
12939
- required: false,
12940
12514
  validator: (value) => {
12941
12515
  return ['start', 'center', 'end'].includes(value);
12942
12516
  },
@@ -12948,8 +12522,6 @@ const CPagination = defineComponent({
12948
12522
  */
12949
12523
  size: {
12950
12524
  type: String,
12951
- default: undefined,
12952
- required: false,
12953
12525
  validator: (value) => {
12954
12526
  return ['sm', 'lg'].includes(value);
12955
12527
  },
@@ -12974,33 +12546,19 @@ const CPaginationItem = defineComponent({
12974
12546
  /**
12975
12547
  * Toggle the active state for the component.
12976
12548
  */
12977
- active: {
12978
- type: Boolean,
12979
- required: false,
12980
- },
12549
+ active: Boolean,
12981
12550
  /**
12982
12551
  * Component used for the root node. Either a string to use a HTML element or a component.
12983
12552
  */
12984
- component: {
12985
- type: String,
12986
- default: undefined,
12987
- required: false,
12988
- },
12553
+ component: String,
12989
12554
  /**
12990
12555
  * Toggle the disabled state for the component.
12991
12556
  */
12992
- disabled: {
12993
- type: Boolean,
12994
- required: false,
12995
- },
12557
+ disabled: Boolean,
12996
12558
  /**
12997
12559
  * The href attribute specifies the URL of the page the link goes to.
12998
12560
  */
12999
- href: {
13000
- type: String,
13001
- default: undefined,
13002
- required: false,
13003
- },
12561
+ href: String,
13004
12562
  },
13005
12563
  setup(props, { slots }) {
13006
12564
  return () => {
@@ -13052,8 +12610,6 @@ const CPlaceholder = defineComponent({
13052
12610
  */
13053
12611
  animation: {
13054
12612
  type: String,
13055
- default: undefined,
13056
- require: false,
13057
12613
  validator: (value) => {
13058
12614
  return ['glow', 'wave'].includes(value);
13059
12615
  },
@@ -13063,14 +12619,13 @@ const CPlaceholder = defineComponent({
13063
12619
  *
13064
12620
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
13065
12621
  */
13066
- color: Color,
12622
+ color: Color$1,
13067
12623
  /**
13068
12624
  * Component used for the root node. Either a string to use a HTML element or a component.
13069
12625
  */
13070
12626
  component: {
13071
12627
  type: String,
13072
12628
  default: 'span',
13073
- required: false,
13074
12629
  },
13075
12630
  /**
13076
12631
  * Size the component extra small, small, or large.
@@ -13079,8 +12634,6 @@ const CPlaceholder = defineComponent({
13079
12634
  */
13080
12635
  size: {
13081
12636
  type: String,
13082
- default: undefined,
13083
- required: false,
13084
12637
  validator: (value) => {
13085
12638
  return ['xs', 'sm', 'lg'].includes(value);
13086
12639
  },
@@ -13088,51 +12641,27 @@ const CPlaceholder = defineComponent({
13088
12641
  /**
13089
12642
  * The number of columns on extra small devices (<576px).
13090
12643
  */
13091
- xs: {
13092
- type: Number,
13093
- default: undefined,
13094
- require: false,
13095
- },
12644
+ xs: Number,
13096
12645
  /**
13097
12646
  * The number of columns on small devices (<768px).
13098
12647
  */
13099
- sm: {
13100
- type: Number,
13101
- default: undefined,
13102
- require: false,
13103
- },
12648
+ sm: Number,
13104
12649
  /**
13105
12650
  * The number of columns on medium devices (<992px).
13106
12651
  */
13107
- md: {
13108
- type: Number,
13109
- default: undefined,
13110
- require: false,
13111
- },
12652
+ md: Number,
13112
12653
  /**
13113
12654
  * The number of columns on large devices (<1200px).
13114
12655
  */
13115
- lg: {
13116
- type: Number,
13117
- default: undefined,
13118
- require: false,
13119
- },
12656
+ lg: Number,
13120
12657
  /**
13121
12658
  * The number of columns on X-Large devices (<1400px).
13122
12659
  */
13123
- xl: {
13124
- type: Number,
13125
- default: undefined,
13126
- require: false,
13127
- },
12660
+ xl: Number,
13128
12661
  /**
13129
12662
  * The number of columns on XX-Large devices (≥1400px).
13130
12663
  */
13131
- xxl: {
13132
- type: Number,
13133
- default: undefined,
13134
- require: false,
13135
- },
12664
+ xxl: Number,
13136
12665
  },
13137
12666
  setup(props, { slots }) {
13138
12667
  const repsonsiveClassNames = [];
@@ -13171,22 +12700,18 @@ const CProgressBar = defineComponent({
13171
12700
  /**
13172
12701
  * Use to animate the stripes right to left via CSS3 animations.
13173
12702
  */
13174
- animated: {
13175
- type: Boolean,
13176
- required: false,
13177
- },
12703
+ animated: Boolean,
13178
12704
  /**
13179
12705
  * Sets the color context of the component to one of CoreUI’s themed colors.
13180
12706
  *
13181
12707
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
13182
12708
  */
13183
- color: Color,
12709
+ color: Color$1,
13184
12710
  /**
13185
12711
  * The percent to progress the ProgressBar.
13186
12712
  */
13187
12713
  value: {
13188
12714
  type: Number,
13189
- required: false,
13190
12715
  default: 0,
13191
12716
  },
13192
12717
  /**
@@ -13196,8 +12721,6 @@ const CProgressBar = defineComponent({
13196
12721
  */
13197
12722
  variant: {
13198
12723
  type: String,
13199
- default: undefined,
13200
- require: false,
13201
12724
  validator: (value) => {
13202
12725
  return value === 'striped';
13203
12726
  },
@@ -13228,11 +12751,7 @@ const CProgress = defineComponent({
13228
12751
  /**
13229
12752
  * Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
13230
12753
  */
13231
- height: {
13232
- type: Number,
13233
- default: undefined,
13234
- required: false,
13235
- },
12754
+ height: Number,
13236
12755
  /**
13237
12756
  * Makes progress bar thinner.
13238
12757
  */
@@ -13277,18 +12796,13 @@ const CPopover = defineComponent({
13277
12796
  /**
13278
12797
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
13279
12798
  */
13280
- content: {
13281
- type: String,
13282
- default: undefined,
13283
- required: false,
13284
- },
12799
+ content: String,
13285
12800
  /**
13286
12801
  * Offset of the popover relative to its target.
13287
12802
  */
13288
12803
  offset: {
13289
12804
  type: Array,
13290
12805
  default: () => [0, 8],
13291
- required: false,
13292
12806
  },
13293
12807
  /**
13294
12808
  * 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.
@@ -13296,7 +12810,6 @@ const CPopover = defineComponent({
13296
12810
  placement: {
13297
12811
  type: String,
13298
12812
  default: 'top',
13299
- required: false,
13300
12813
  validator: (value) => {
13301
12814
  return ['top', 'right', 'bottom', 'left'].includes(value);
13302
12815
  },
@@ -13304,11 +12817,7 @@ const CPopover = defineComponent({
13304
12817
  /**
13305
12818
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
13306
12819
  */
13307
- title: {
13308
- type: String,
13309
- default: undefined,
13310
- required: false,
13311
- },
12820
+ title: String,
13312
12821
  /**
13313
12822
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
13314
12823
  *
@@ -13317,7 +12826,6 @@ const CPopover = defineComponent({
13317
12826
  trigger: {
13318
12827
  type: [String, Array],
13319
12828
  default: 'click',
13320
- required: false,
13321
12829
  validator: (value) => {
13322
12830
  if (typeof value === 'string') {
13323
12831
  return ['click', 'focus', 'hover'].includes(value);
@@ -13448,17 +12956,11 @@ const CSidebar = defineComponent({
13448
12956
  /**
13449
12957
  * Make sidebar narrow.
13450
12958
  */
13451
- narrow: {
13452
- type: Boolean,
13453
- required: false,
13454
- },
12959
+ narrow: Boolean,
13455
12960
  /**
13456
12961
  * Set sidebar to overlaid variant.
13457
12962
  */
13458
- overlaid: {
13459
- type: Boolean,
13460
- required: false,
13461
- },
12963
+ overlaid: Boolean,
13462
12964
  /**
13463
12965
  * Components placement, there’s no default placement.
13464
12966
  * @values 'start', 'end'
@@ -13475,7 +12977,6 @@ const CSidebar = defineComponent({
13475
12977
  */
13476
12978
  position: {
13477
12979
  type: String,
13478
- default: undefined,
13479
12980
  validator: (value) => {
13480
12981
  return ['fixed'].includes(value);
13481
12982
  },
@@ -13485,7 +12986,6 @@ const CSidebar = defineComponent({
13485
12986
  */
13486
12987
  size: {
13487
12988
  type: String,
13488
- default: undefined,
13489
12989
  validator: (value) => {
13490
12990
  return ['sm', 'lg', 'xl'].includes(value);
13491
12991
  },
@@ -14110,7 +13610,7 @@ const CTableBody = defineComponent({
14110
13610
  *
14111
13611
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14112
13612
  */
14113
- color: Color,
13613
+ color: Color$1,
14114
13614
  },
14115
13615
  setup(props, { slots }) {
14116
13616
  return () => h$1('tbody', {
@@ -14136,10 +13636,7 @@ const CTableDataCell = defineComponent({
14136
13636
  /**
14137
13637
  * Highlight a table row or cell.
14138
13638
  */
14139
- active: {
14140
- type: Boolean,
14141
- required: false,
14142
- },
13639
+ active: Boolean,
14143
13640
  /**
14144
13641
  * Set the vertical aligment.
14145
13642
  *
@@ -14147,8 +13644,6 @@ const CTableDataCell = defineComponent({
14147
13644
  */
14148
13645
  align: {
14149
13646
  type: String,
14150
- default: undefined,
14151
- required: false,
14152
13647
  validator: (value) => {
14153
13648
  return ['bottom', 'middle', 'top'].includes(value);
14154
13649
  },
@@ -14158,14 +13653,11 @@ const CTableDataCell = defineComponent({
14158
13653
  *
14159
13654
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14160
13655
  */
14161
- color: Color,
13656
+ color: Color$1,
14162
13657
  /**
14163
13658
  * @ignore
14164
13659
  */
14165
- scope: {
14166
- type: String,
14167
- required: false,
14168
- },
13660
+ scope: String,
14169
13661
  },
14170
13662
  setup(props, { slots }) {
14171
13663
  return () => h$1(props.scope ? 'th' : 'td', {
@@ -14189,7 +13681,7 @@ const CTableFoot = defineComponent({
14189
13681
  *
14190
13682
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14191
13683
  */
14192
- color: Color,
13684
+ color: Color$1,
14193
13685
  },
14194
13686
  setup(props, { slots }) {
14195
13687
  return () => h$1('tfoot', {
@@ -14210,7 +13702,7 @@ const CTableHead = defineComponent({
14210
13702
  *
14211
13703
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14212
13704
  */
14213
- color: Color,
13705
+ color: Color$1,
14214
13706
  },
14215
13707
  setup(props, { slots }) {
14216
13708
  return () => h$1('thead', {
@@ -14231,7 +13723,7 @@ const CTableHeaderCell = defineComponent({
14231
13723
  *
14232
13724
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14233
13725
  */
14234
- color: Color,
13726
+ color: Color$1,
14235
13727
  },
14236
13728
  setup(props, { slots }) {
14237
13729
  return () => h$1('th', {
@@ -14250,10 +13742,7 @@ const CTableRow = defineComponent({
14250
13742
  /**
14251
13743
  * Highlight a table row or cell..
14252
13744
  */
14253
- active: {
14254
- type: Boolean,
14255
- required: false,
14256
- },
13745
+ active: Boolean,
14257
13746
  /**
14258
13747
  * Set the vertical aligment.
14259
13748
  *
@@ -14261,8 +13750,6 @@ const CTableRow = defineComponent({
14261
13750
  */
14262
13751
  align: {
14263
13752
  type: String,
14264
- default: undefined,
14265
- required: false,
14266
13753
  validator: (value) => {
14267
13754
  return ['bottom', 'middle', 'top'].includes(value);
14268
13755
  },
@@ -14272,7 +13759,7 @@ const CTableRow = defineComponent({
14272
13759
  *
14273
13760
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14274
13761
  */
14275
- color: Color,
13762
+ color: Color$1,
14276
13763
  },
14277
13764
  setup(props, { slots }) {
14278
13765
  return () => h$1('tr', {
@@ -14296,11 +13783,14 @@ const pretifyName$1 = (name) => {
14296
13783
  .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
14297
13784
  .join(' ');
14298
13785
  };
14299
- const label = (column) => typeof column === 'object'
14300
- ? column.label !== undefined
14301
- ? column.label
14302
- : pretifyName$1(column.key)
14303
- : pretifyName$1(column);
13786
+ const getColumnLabel$1 = (column) => typeof column === 'object' ? column.label ?? pretifyName$1(column.key) : pretifyName$1(column);
13787
+ const getColumnNames$1 = (columns, items) => columns
13788
+ ? columns.map((column) => {
13789
+ return typeof column === 'object' ? column.key : column;
13790
+ })
13791
+ : items && getColumnNamesFromItems$1(items);
13792
+ const getColumnNamesFromItems$1 = (items) => Object.keys(items[0] || {}).filter((el) => el.charAt(0) !== '_');
13793
+
14304
13794
  const CTable = defineComponent({
14305
13795
  name: 'CTable',
14306
13796
  props: {
@@ -14311,8 +13801,6 @@ const CTable = defineComponent({
14311
13801
  */
14312
13802
  align: {
14313
13803
  type: String,
14314
- default: undefined,
14315
- required: false,
14316
13804
  validator: (value) => {
14317
13805
  return ['bottom', 'middle', 'top'].includes(value);
14318
13806
  },
@@ -14322,41 +13810,27 @@ const CTable = defineComponent({
14322
13810
  *
14323
13811
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
14324
13812
  */
14325
- borderColor: Color,
13813
+ borderColor: Color$1,
14326
13814
  /**
14327
13815
  * Add borders on all sides of the table and cells.
14328
13816
  */
14329
- bordered: {
14330
- type: Boolean,
14331
- required: false,
14332
- },
13817
+ bordered: Boolean,
14333
13818
  /**
14334
13819
  * Remove borders on all sides of the table and cells.
14335
13820
  */
14336
- borderless: {
14337
- type: Boolean,
14338
- required: false,
14339
- },
13821
+ borderless: Boolean,
14340
13822
  /**
14341
13823
  * Put the `<caption>` on the top of the table.
14342
13824
  *
14343
13825
  * @values 'top' | string
14344
13826
  */
14345
- caption: {
14346
- type: String,
14347
- default: undefined,
14348
- required: false,
14349
- },
13827
+ caption: String,
14350
13828
  /**
14351
13829
  * Set the text of the table caption and the caption on the top of the table.
14352
13830
  *
14353
13831
  * @since 4.5.0
14354
13832
  */
14355
- captionTop: {
14356
- type: String,
14357
- default: undefined,
14358
- required: false,
14359
- },
13833
+ captionTop: String,
14360
13834
  /**
14361
13835
  * 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')
14362
13836
  *
@@ -14372,14 +13846,13 @@ const CTable = defineComponent({
14372
13846
  */
14373
13847
  columns: {
14374
13848
  type: Array,
14375
- required: false,
14376
13849
  },
14377
13850
  /**
14378
13851
  * Sets the color context of the component to one of CoreUI’s themed colors.
14379
13852
  *
14380
13853
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14381
13854
  */
14382
- color: Color,
13855
+ color: Color$1,
14383
13856
  /**
14384
13857
  * Array of objects or strings, where each element represents one cell in the table footer.
14385
13858
  *
@@ -14392,15 +13865,11 @@ const CTable = defineComponent({
14392
13865
  */
14393
13866
  footer: {
14394
13867
  type: Array,
14395
- required: false,
14396
13868
  },
14397
13869
  /**
14398
13870
  * Enable a hover state on table rows within a `<CTableBody>`.
14399
13871
  */
14400
- hover: {
14401
- type: Boolean,
14402
- required: false,
14403
- },
13872
+ hover: Boolean,
14404
13873
  /**
14405
13874
  * 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'.
14406
13875
  *
@@ -14411,12 +13880,9 @@ const CTable = defineComponent({
14411
13880
  */
14412
13881
  items: {
14413
13882
  type: Array,
14414
- required: false,
14415
13883
  },
14416
13884
  responsive: {
14417
13885
  type: [Boolean, String],
14418
- default: undefined,
14419
- required: false,
14420
13886
  validator: (value) => {
14421
13887
  if (typeof value == 'string') {
14422
13888
  return ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
@@ -14430,26 +13896,17 @@ const CTable = defineComponent({
14430
13896
  /**
14431
13897
  * Make table more compact by cutting all cell `padding` in half.
14432
13898
  */
14433
- small: {
14434
- type: Boolean,
14435
- required: false,
14436
- },
13899
+ small: Boolean,
14437
13900
  /**
14438
13901
  * Add zebra-striping to any table row within the `<CTableBody>`.
14439
13902
  */
14440
- striped: {
14441
- type: Boolean,
14442
- required: false,
14443
- },
13903
+ striped: Boolean,
14444
13904
  /**
14445
13905
  * Add zebra-striping to any table column.
14446
13906
  *
14447
13907
  * @since 4.4.0
14448
13908
  */
14449
- stripedColumns: {
14450
- type: Boolean,
14451
- required: false,
14452
- },
13909
+ stripedColumns: Boolean,
14453
13910
  /**
14454
13911
  * Properties that will be passed to the table footer component.
14455
13912
  *
@@ -14458,8 +13915,6 @@ const CTable = defineComponent({
14458
13915
  */
14459
13916
  tableFootProps: {
14460
13917
  type: Object,
14461
- default: undefined,
14462
- required: false,
14463
13918
  },
14464
13919
  /**
14465
13920
  * Properties that will be passed to the table head component.
@@ -14469,19 +13924,17 @@ const CTable = defineComponent({
14469
13924
  */
14470
13925
  tableHeadProps: {
14471
13926
  type: Object,
14472
- default: undefined,
14473
- required: false,
14474
13927
  },
14475
13928
  },
14476
13929
  setup(props, { slots, attrs }) {
14477
- const rawColumnNames = computed(() => props.columns
14478
- ? props.columns.map((column) => {
14479
- if (typeof column === 'object')
14480
- return column.key;
14481
- else
14482
- return column;
14483
- })
14484
- : Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'));
13930
+ const columnNames = computed(() => getColumnNames$1(props.columns, props.items));
13931
+ // props.columns
13932
+ // ? props.columns.map((column: Column | string) => {
13933
+ // if (typeof column === 'object') return column.key
13934
+ // else return column
13935
+ // })
13936
+ // : Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'),
13937
+ // )
14485
13938
  const table = () => h$1('table', {
14486
13939
  class: [
14487
13940
  'table',
@@ -14518,7 +13971,7 @@ const CTable = defineComponent({
14518
13971
  ...(typeof column === 'object' &&
14519
13972
  column._style && { style: { ...column._style } }),
14520
13973
  }, {
14521
- default: () => label(column),
13974
+ default: () => getColumnLabel$1(column),
14522
13975
  })),
14523
13976
  ],
14524
13977
  }),
@@ -14531,7 +13984,7 @@ const CTable = defineComponent({
14531
13984
  ...(item._props && { ...item._props }),
14532
13985
  }, {
14533
13986
  default: () => [
14534
- rawColumnNames.value.map((colName) => item[colName] &&
13987
+ columnNames.value && columnNames.value.map((colName) => item[colName] &&
14535
13988
  h$1(CTableDataCell, {
14536
13989
  ...(item._cellProps &&
14537
13990
  item._cellProps['all'] && { ...item._cellProps['all'] }),
@@ -15607,10 +15060,10 @@ const CSmartTable = defineComponent({
15607
15060
  : handleActivePageChange(page),
15608
15061
  })
15609
15062
  : ''),
15610
- h$1('div', {
15611
- class: 'col-auto ms-auto',
15612
- }, props.itemsPerPageSelect &&
15063
+ props.itemsPerPageSelect &&
15613
15064
  h$1('div', {
15065
+ class: 'col-auto ms-auto',
15066
+ }, h$1('div', {
15614
15067
  class: 'row',
15615
15068
  }, {
15616
15069
  default: () => [
@@ -15662,7 +15115,6 @@ const CTabPane = defineComponent({
15662
15115
  visible: {
15663
15116
  type: Boolean,
15664
15117
  default: false,
15665
- required: false,
15666
15118
  },
15667
15119
  },
15668
15120
  emits: [
@@ -15725,21 +15177,19 @@ const CToast = defineComponent({
15725
15177
  autohide: {
15726
15178
  type: Boolean,
15727
15179
  default: true,
15728
- required: false,
15729
15180
  },
15730
15181
  /**
15731
15182
  * Sets the color context of the component to one of CoreUI’s themed colors.
15732
15183
  *
15733
15184
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
15734
15185
  */
15735
- color: Color,
15186
+ color: Color$1,
15736
15187
  /**
15737
15188
  * Delay hiding the toast (ms).
15738
15189
  */
15739
15190
  delay: {
15740
15191
  type: Number,
15741
15192
  default: 5000,
15742
- required: false,
15743
15193
  },
15744
15194
  /**
15745
15195
  * Optionally add a close button to component and allow it to self dismiss.
@@ -15747,32 +15197,19 @@ const CToast = defineComponent({
15747
15197
  dismissible: {
15748
15198
  type: Boolean,
15749
15199
  default: true,
15750
- required: false,
15751
15200
  },
15752
15201
  /**
15753
15202
  * index of the component.
15754
15203
  */
15755
- index: {
15756
- type: Number,
15757
- default: undefined,
15758
- required: false,
15759
- },
15204
+ index: Number,
15760
15205
  /**
15761
15206
  * Title node for your component.
15762
15207
  */
15763
- title: {
15764
- type: String,
15765
- default: undefined,
15766
- required: false,
15767
- },
15208
+ title: String,
15768
15209
  /**
15769
15210
  * Toggle the visibility of component.
15770
15211
  */
15771
- visible: {
15772
- type: Boolean,
15773
- default: true,
15774
- required: false,
15775
- },
15212
+ visible: Boolean,
15776
15213
  },
15777
15214
  emits: [
15778
15215
  /**
@@ -15785,46 +15222,19 @@ const CToast = defineComponent({
15785
15222
  'show',
15786
15223
  ],
15787
15224
  setup(props, { slots, emit }) {
15788
- const visible = ref(props.visible);
15789
- let timeout = 0;
15790
- const updateVisible = (v) => {
15791
- visible.value = v;
15225
+ const timeout = ref(0);
15226
+ const visible = ref();
15227
+ const updateVisible = (_visible) => {
15228
+ visible.value = _visible;
15792
15229
  };
15793
15230
  provide('updateVisible', updateVisible);
15794
- const handleBeforeEnter = (el) => {
15795
- el.classList.add('showing');
15796
- };
15797
- const handleEnter = (el, done) => {
15798
- executeAfterTransition(() => done(), el);
15799
- el.classList.add('show');
15800
- setTimeout(() => {
15801
- el.classList.remove('showing');
15802
- }, 1);
15803
- if (props.index) {
15804
- emit('show', props.index);
15805
- }
15806
- else {
15807
- emit('show');
15808
- }
15809
- };
15810
- const handleLeave = (el, done) => {
15811
- executeAfterTransition(() => done(), el);
15812
- el.classList.add('showing');
15813
- };
15814
- const handleAfterLeave = (el) => {
15815
- el.classList.remove('show');
15816
- el.classList.add('hide');
15817
- if (props.index) {
15818
- emit('close', props.index);
15819
- }
15820
- else {
15821
- emit('close');
15822
- }
15823
- };
15824
15231
  onMounted(() => {
15232
+ if (props.visible) {
15233
+ visible.value = props.visible;
15234
+ }
15825
15235
  if (props.autohide) {
15826
- clearTimeout(timeout);
15827
- timeout = window.setTimeout(() => {
15236
+ clearTimeout(timeout.value);
15237
+ timeout.value = window.setTimeout(() => {
15828
15238
  visible.value = false;
15829
15239
  emit('close');
15830
15240
  }, props.delay);
@@ -15832,23 +15242,33 @@ const CToast = defineComponent({
15832
15242
  });
15833
15243
  return () => h$1(Transition, {
15834
15244
  appear: true,
15835
- onBeforeEnter: (el) => handleBeforeEnter(el),
15836
- onEnter: (el, done) => handleEnter(el, done),
15837
- onLeave: (el, done) => handleLeave(el, done),
15838
- onAfterLeave: (el) => handleAfterLeave(el),
15839
- }, () => visible.value &&
15840
- h$1('div', {
15841
- class: [
15842
- 'toast fade',
15843
- {
15844
- [`bg-${props.color}`]: props.color,
15845
- },
15846
- ],
15847
- 'aria-live': 'assertive',
15848
- 'aria-atomic': true,
15849
- role: 'alert',
15850
- ref: 'toastRef',
15851
- }, slots.default && slots.default()));
15245
+ enterFromClass: '',
15246
+ enterActiveClass: 'show showing',
15247
+ enterToClass: 'show',
15248
+ leaveFromClass: 'show',
15249
+ leaveActiveClass: 'show showing',
15250
+ leaveToClass: 'show',
15251
+ onAfterEnter: (el) => {
15252
+ el.classList.add('show');
15253
+ props.index ? emit('show', props.index) : emit('show');
15254
+ },
15255
+ onAfterLeave: () => {
15256
+ props.index ? emit('close', props.index) : emit('close');
15257
+ },
15258
+ }, {
15259
+ default: () => visible.value &&
15260
+ h$1('div', {
15261
+ class: [
15262
+ 'toast fade',
15263
+ {
15264
+ [`bg-${props.color}`]: props.color,
15265
+ },
15266
+ ],
15267
+ 'aria-live': 'assertive',
15268
+ 'aria-atomic': true,
15269
+ role: 'alert',
15270
+ }, slots.default && slots.default()),
15271
+ });
15852
15272
  },
15853
15273
  });
15854
15274
 
@@ -15865,11 +15285,7 @@ const CToastClose = defineComponent({
15865
15285
  /**
15866
15286
  * Component used for the root node. Either a string to use a HTML element or a component.
15867
15287
  */
15868
- component: {
15869
- type: String,
15870
- default: undefined,
15871
- required: false,
15872
- },
15288
+ component: String,
15873
15289
  ...CCloseButton.props,
15874
15290
  },
15875
15291
  emits: [
@@ -15910,8 +15326,6 @@ const CToaster = defineComponent({
15910
15326
  */
15911
15327
  placement: {
15912
15328
  type: String,
15913
- default: undefined,
15914
- require: false,
15915
15329
  validator: (value) => {
15916
15330
  return [
15917
15331
  'top-start',
@@ -15951,10 +15365,7 @@ const CToastHeader = defineComponent({
15951
15365
  /**
15952
15366
  * Automatically add a close button to the header.
15953
15367
  */
15954
- closeButton: {
15955
- type: Boolean,
15956
- require: false,
15957
- },
15368
+ closeButton: Boolean,
15958
15369
  },
15959
15370
  emits: [
15960
15371
  /**
@@ -15989,18 +15400,13 @@ const CTooltip = defineComponent({
15989
15400
  /**
15990
15401
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
15991
15402
  */
15992
- content: {
15993
- type: String,
15994
- default: undefined,
15995
- required: false,
15996
- },
15403
+ content: String,
15997
15404
  /**
15998
15405
  * Offset of the tooltip relative to its target.
15999
15406
  */
16000
15407
  offset: {
16001
15408
  type: Array,
16002
15409
  default: () => [0, 0],
16003
- required: false,
16004
15410
  },
16005
15411
  /**
16006
15412
  * 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.
@@ -16008,7 +15414,6 @@ const CTooltip = defineComponent({
16008
15414
  placement: {
16009
15415
  type: String,
16010
15416
  default: 'top',
16011
- required: false,
16012
15417
  validator: (value) => {
16013
15418
  return ['top', 'right', 'bottom', 'left'].includes(value);
16014
15419
  },
@@ -16021,7 +15426,6 @@ const CTooltip = defineComponent({
16021
15426
  trigger: {
16022
15427
  type: [String, Array],
16023
15428
  default: 'hover',
16024
- required: false,
16025
15429
  validator: (value) => {
16026
15430
  if (typeof value === 'string') {
16027
15431
  return ['click', 'focus', 'hover'].includes(value);
@@ -16132,26 +15536,17 @@ const CTooltipPlugin = {
16132
15536
  const CWidgetStatsA = defineComponent({
16133
15537
  name: 'CWidgetStatsA',
16134
15538
  props: {
16135
- color: {
16136
- type: String,
16137
- default: undefined,
16138
- require: false,
16139
- },
15539
+ color: String,
16140
15540
  /**
16141
15541
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16142
15542
  */
16143
- title: {
16144
- type: String,
16145
- default: undefined,
16146
- require: false,
16147
- },
15543
+ title: String,
16148
15544
  /**
16149
15545
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16150
15546
  */
16151
15547
  value: {
16152
15548
  type: [Number, String],
16153
- default: 0,
16154
- require: false,
15549
+ default: 0
16155
15550
  },
16156
15551
  },
16157
15552
  /**
@@ -16240,22 +15635,18 @@ const CWidgetStatsB = defineComponent({
16240
15635
  *
16241
15636
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16242
15637
  */
16243
- color: Color,
15638
+ color: Color$1,
16244
15639
  /**
16245
15640
  * Colors have been inverted from their default dark shade.
16246
15641
  */
16247
- inverse: {
16248
- type: Boolean,
16249
- default: undefined,
16250
- require: false,
16251
- },
15642
+ inverse: Boolean,
16252
15643
  progress: J({
16253
15644
  /**
16254
15645
  * Sets the color context of the progress bar to one of CoreUI’s themed colors
16255
15646
  *
16256
15647
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16257
15648
  */
16258
- color: Color,
15649
+ color: Color$1,
16259
15650
  /**
16260
15651
  * The percent to progress the ProgressBar (out of 100).
16261
15652
  */
@@ -16267,26 +15658,17 @@ const CWidgetStatsB = defineComponent({
16267
15658
  /**
16268
15659
  * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
16269
15660
  */
16270
- text: {
16271
- type: String,
16272
- default: undefined,
16273
- require: false,
16274
- },
15661
+ text: String,
16275
15662
  /**
16276
15663
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16277
15664
  */
16278
- title: {
16279
- type: String,
16280
- default: undefined,
16281
- require: false,
16282
- },
15665
+ title: String,
16283
15666
  /**
16284
15667
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16285
15668
  */
16286
15669
  value: {
16287
15670
  type: [Number, String],
16288
- default: 0,
16289
- require: false,
15671
+ default: 0
16290
15672
  },
16291
15673
  },
16292
15674
  setup(props, { slots }) {
@@ -16337,22 +15719,18 @@ const CWidgetStatsC = defineComponent({
16337
15719
  *
16338
15720
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16339
15721
  */
16340
- color: Color,
15722
+ color: Color$1,
16341
15723
  /**
16342
15724
  * Colors have been inverted from their default dark shade.
16343
15725
  */
16344
- inverse: {
16345
- type: Boolean,
16346
- default: undefined,
16347
- require: false,
16348
- },
15726
+ inverse: Boolean,
16349
15727
  progress: J({
16350
15728
  /**
16351
15729
  * Sets the color context of the progress bar to one of CoreUI’s themed colors
16352
15730
  *
16353
15731
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16354
15732
  */
16355
- color: Color,
15733
+ color: Color$1,
16356
15734
  /**
16357
15735
  * The percent to progress the ProgressBar (out of 100).
16358
15736
  */
@@ -16364,18 +15742,13 @@ const CWidgetStatsC = defineComponent({
16364
15742
  /**
16365
15743
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16366
15744
  */
16367
- title: {
16368
- type: String,
16369
- default: undefined,
16370
- require: false,
16371
- },
15745
+ title: String,
16372
15746
  /**
16373
15747
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16374
15748
  */
16375
15749
  value: {
16376
15750
  type: [Number, String],
16377
- default: 0,
16378
- require: false,
15751
+ default: 0
16379
15752
  },
16380
15753
  },
16381
15754
  /**
@@ -16435,14 +15808,13 @@ const CWidgetStatsD = defineComponent({
16435
15808
  *
16436
15809
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16437
15810
  */
16438
- color: Color,
15811
+ color: Color$1,
16439
15812
  /**
16440
15813
  * Values and titles for your component.
16441
15814
  */
16442
15815
  values: {
16443
15816
  type: Array,
16444
15817
  default: () => [],
16445
- require: false,
16446
15818
  },
16447
15819
  },
16448
15820
  /**
@@ -16491,18 +15863,13 @@ const CWidgetStatsE = defineComponent({
16491
15863
  /**
16492
15864
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16493
15865
  */
16494
- title: {
16495
- type: String,
16496
- default: undefined,
16497
- require: false,
16498
- },
15866
+ title: String,
16499
15867
  /**
16500
15868
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16501
15869
  */
16502
15870
  value: {
16503
15871
  type: [Number, String],
16504
- default: 0,
16505
- require: false,
15872
+ default: 0
16506
15873
  },
16507
15874
  },
16508
15875
  /**
@@ -16540,7 +15907,7 @@ const CWidgetStatsF = defineComponent({
16540
15907
  *
16541
15908
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16542
15909
  */
16543
- color: Color,
15910
+ color: Color$1,
16544
15911
  /**
16545
15912
  * Set padding of your component.
16546
15913
  */
@@ -16551,26 +15918,17 @@ const CWidgetStatsF = defineComponent({
16551
15918
  /**
16552
15919
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16553
15920
  */
16554
- title: {
16555
- type: String,
16556
- default: undefined,
16557
- require: false,
16558
- },
15921
+ title: String,
16559
15922
  /**
16560
15923
  * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
16561
15924
  */
16562
- text: {
16563
- type: String,
16564
- default: undefined,
16565
- require: false,
16566
- },
15925
+ text: String,
16567
15926
  /**
16568
15927
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16569
15928
  */
16570
15929
  value: {
16571
15930
  type: [Number, String],
16572
- default: 0,
16573
- require: false,
15931
+ default: 0
16574
15932
  },
16575
15933
  },
16576
15934
  /**