@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.js CHANGED
@@ -10,11 +10,7 @@ const CAccordion = vue.defineComponent({
10
10
  /**
11
11
  * The active item key.
12
12
  */
13
- activeItemKey: {
14
- type: [Number, String],
15
- default: undefined,
16
- require: false,
17
- },
13
+ activeItemKey: [Number, String],
18
14
  /**
19
15
  * Make accordion items stay open when another item is opened
20
16
  */
@@ -120,17 +116,11 @@ const CCollapse = vue.defineComponent({
120
116
  /**
121
117
  * Set horizontal collapsing to transition the width instead of height.
122
118
  */
123
- horizontal: {
124
- type: Boolean,
125
- required: false,
126
- },
119
+ horizontal: Boolean,
127
120
  /**
128
121
  * Toggle the visibility of component.
129
122
  */
130
- visible: {
131
- type: Boolean,
132
- required: false,
133
- },
123
+ visible: Boolean,
134
124
  },
135
125
  emits: [
136
126
  /**
@@ -245,16 +235,11 @@ const CAccordionItem = vue.defineComponent({
245
235
  /**
246
236
  * The item key.
247
237
  */
248
- itemKey: {
249
- type: [Number, String],
250
- default: undefined,
251
- require: false,
252
- },
238
+ itemKey: [Number, String]
253
239
  },
254
240
  setup(props, { slots }) {
255
241
  const activeItemKey = vue.inject('activeItemKey');
256
242
  const alwaysOpen = vue.inject('alwaysOpen');
257
- // eslint-disable-next-line no-unused-vars
258
243
  const setActiveItemKey = vue.inject('setActiveItemKey');
259
244
  const itemKey = vue.ref(props.itemKey ? props.itemKey : Math.random().toString(36).substr(2, 9));
260
245
  const visible = vue.ref(Boolean(activeItemKey.value === itemKey.value));
@@ -279,6 +264,54 @@ const CAccordionPlugin = {
279
264
  },
280
265
  };
281
266
 
267
+ const CCloseButton = vue.defineComponent({
268
+ name: 'CCloseButton',
269
+ props: {
270
+ /**
271
+ * Toggle the disabled state for the component.
272
+ */
273
+ disabled: Boolean,
274
+ /**
275
+ * Change the default color to white.
276
+ */
277
+ white: Boolean,
278
+ },
279
+ emits: [
280
+ /**
281
+ * Event called when the user clicks on the component.
282
+ */
283
+ 'click',
284
+ ],
285
+ setup(props, { emit }) {
286
+ const handleClick = () => {
287
+ if (props.disabled) {
288
+ return;
289
+ }
290
+ emit('click');
291
+ };
292
+ return () => vue.h('button', {
293
+ type: 'button',
294
+ class: [
295
+ 'btn',
296
+ 'btn-close',
297
+ {
298
+ ['btn-close-white']: props.white,
299
+ },
300
+ props.disabled,
301
+ ],
302
+ 'aria-label': 'Close',
303
+ disabled: props.disabled,
304
+ onClick: handleClick,
305
+ });
306
+ },
307
+ });
308
+
309
+ const CCloseButtonPlugin = {
310
+ install: (app) => {
311
+ app.component(CCloseButton.name, CCloseButton);
312
+ },
313
+ };
314
+
282
315
  const Shape = {
283
316
  type: String,
284
317
  validator: (value) => {
@@ -298,7 +331,7 @@ const Shape = {
298
331
  ].includes(value);
299
332
  },
300
333
  };
301
- const Color = {
334
+ const Color$1 = {
302
335
  type: String,
303
336
  validator: (value) => {
304
337
  // The value must match one of these strings
@@ -348,54 +381,6 @@ const TextColor = {
348
381
  },
349
382
  };
350
383
 
351
- const CCloseButton = vue.defineComponent({
352
- name: 'CCloseButton',
353
- props: {
354
- /**
355
- * Toggle the disabled state for the component.
356
- */
357
- disabled: {
358
- type: Boolean,
359
- required: false,
360
- },
361
- /**
362
- * Change the default color to white.
363
- */
364
- white: {
365
- type: Boolean,
366
- required: false,
367
- },
368
- },
369
- emits: [
370
- /**
371
- * Event called when the user clicks on the component.
372
- */
373
- 'click',
374
- ],
375
- setup(props, { emit }) {
376
- const handleClick = () => {
377
- if (props.disabled) {
378
- return;
379
- }
380
- emit('click');
381
- };
382
- return () => vue.h('button', {
383
- type: 'button',
384
- class: [
385
- 'btn',
386
- 'btn-close',
387
- {
388
- ['btn-close-white']: props.white,
389
- },
390
- props.disabled,
391
- ],
392
- 'aria-label': 'Close',
393
- disabled: props.disabled,
394
- onClick: handleClick,
395
- });
396
- },
397
- });
398
-
399
384
  const CAlert = vue.defineComponent({
400
385
  name: 'CAlert',
401
386
  props: {
@@ -404,15 +389,11 @@ const CAlert = vue.defineComponent({
404
389
  *
405
390
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
406
391
  */
407
- color: Color,
392
+ color: Color$1,
408
393
  /**
409
394
  * Optionally add a close button to alert and allow it to self dismisss.
410
395
  */
411
- dismissible: {
412
- type: Boolean,
413
- default: false,
414
- required: false,
415
- },
396
+ dismissible: Boolean,
416
397
  /**
417
398
  * Set the alert variant to a solid.
418
399
  *
@@ -420,8 +401,6 @@ const CAlert = vue.defineComponent({
420
401
  */
421
402
  variant: {
422
403
  type: String,
423
- default: undefined,
424
- required: false,
425
404
  validator: (value) => {
426
405
  return value === 'solid';
427
406
  },
@@ -432,7 +411,6 @@ const CAlert = vue.defineComponent({
432
411
  visible: {
433
412
  type: Boolean,
434
413
  default: true,
435
- required: false,
436
414
  },
437
415
  },
438
416
  emits: [
@@ -451,8 +429,6 @@ const CAlert = vue.defineComponent({
451
429
  emit('close');
452
430
  };
453
431
  return () => vue.h(vue.Transition, {
454
- name: 'fade',
455
- duration: 350,
456
432
  enterFromClass: '',
457
433
  enterActiveClass: 'fade',
458
434
  enterToClass: 'fade show',
@@ -492,7 +468,6 @@ const CAlertHeading = vue.defineComponent({
492
468
  component: {
493
469
  type: String,
494
470
  default: 'h4',
495
- required: false,
496
471
  },
497
472
  },
498
473
  setup(props, { slots }) {
@@ -527,7 +502,7 @@ const CAvatar = vue.defineComponent({
527
502
  *
528
503
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
529
504
  */
530
- color: Color,
505
+ color: Color$1,
531
506
  /**
532
507
  * Select the shape of the component.
533
508
  *
@@ -541,8 +516,6 @@ const CAvatar = vue.defineComponent({
541
516
  */
542
517
  size: {
543
518
  type: String,
544
- default: undefined,
545
- required: false,
546
519
  validator: (value) => {
547
520
  return ['sm', 'md', 'lg', 'xl'].includes(value);
548
521
  },
@@ -550,11 +523,7 @@ const CAvatar = vue.defineComponent({
550
523
  /**
551
524
  * The src attribute for the img element.
552
525
  */
553
- src: {
554
- type: String,
555
- default: undefined,
556
- required: false,
557
- },
526
+ src: String,
558
527
  /**
559
528
  * Sets the color context of the status indicator to one of CoreUI’s themed colors.
560
529
  *
@@ -562,8 +531,6 @@ const CAvatar = vue.defineComponent({
562
531
  */
563
532
  status: {
564
533
  type: String,
565
- default: undefined,
566
- required: false,
567
534
  validator: (value) => {
568
535
  return [
569
536
  'primary',
@@ -619,32 +586,16 @@ const CBackdrop = vue.defineComponent({
619
586
  visible: {
620
587
  type: Boolean,
621
588
  default: false,
622
- required: false,
623
589
  },
624
590
  },
625
591
  setup(props) {
626
- const handleBeforeEnter = (el) => {
627
- el.classList.remove('d-none');
628
- };
629
- const handleEnter = (el, done) => {
630
- executeAfterTransition(() => done(), el);
631
- setTimeout(() => {
632
- el.style.visibility = 'visible';
633
- el.classList.add('show');
634
- }, 1);
635
- };
636
- const handleLeave = (el, done) => {
637
- executeAfterTransition(() => done(), el);
638
- el.classList.remove('show');
639
- };
640
- const handleAfterLeave = (el) => {
641
- el.classList.add('d-none');
642
- };
643
592
  return () => vue.h(vue.Transition, {
644
- onBeforeEnter: (el) => handleBeforeEnter(el),
645
- onEnter: (el, done) => handleEnter(el, done),
646
- onLeave: (el, done) => handleLeave(el, done),
647
- onAfterLeave: (el) => handleAfterLeave(el),
593
+ onEnter: (el) => {
594
+ el.classList.add('show');
595
+ },
596
+ onLeave: (el) => {
597
+ el.classList.remove('show');
598
+ }
648
599
  }, () => props.visible &&
649
600
  vue.h('div', {
650
601
  class: 'fade',
@@ -666,13 +617,12 @@ const CBadge = vue.defineComponent({
666
617
  *
667
618
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
668
619
  */
669
- color: Color,
620
+ color: Color$1,
670
621
  /**
671
622
  * Component used for the root node. Either a string to use a HTML element or a component.
672
623
  */
673
624
  component: {
674
625
  type: String,
675
- required: false,
676
626
  default: 'span',
677
627
  },
678
628
  /**
@@ -682,8 +632,6 @@ const CBadge = vue.defineComponent({
682
632
  */
683
633
  position: {
684
634
  type: String,
685
- default: undefined,
686
- required: false,
687
635
  validator: (value) => {
688
636
  return ['top-start', 'top-end', 'bottom-end', 'bottom-start'].includes(value);
689
637
  },
@@ -701,8 +649,6 @@ const CBadge = vue.defineComponent({
701
649
  */
702
650
  size: {
703
651
  type: String,
704
- default: undefined,
705
- required: false,
706
652
  validator: (value) => {
707
653
  return value === 'sm';
708
654
  },
@@ -746,18 +692,11 @@ const CBreadcrumbItem = vue.defineComponent({
746
692
  /**
747
693
  * Toggle the active state for the component.
748
694
  */
749
- active: {
750
- type: Boolean,
751
- required: false,
752
- },
695
+ active: Boolean,
753
696
  /**
754
697
  * The `href` attribute for the inner link component.
755
698
  */
756
- href: {
757
- type: String,
758
- default: undefined,
759
- required: false,
760
- },
699
+ href: String,
761
700
  },
762
701
  setup(props, { slots }) {
763
702
  return () => vue.h('li', {
@@ -796,40 +735,28 @@ const CButton = vue.defineComponent({
796
735
  /**
797
736
  * Toggle the active state for the component.
798
737
  */
799
- active: {
800
- type: Boolean,
801
- default: false,
802
- required: false,
803
- },
738
+ active: Boolean,
804
739
  /**
805
740
  * Sets the color context of the component to one of CoreUI’s themed colors.
806
741
  *
807
742
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
808
743
  */
809
- color: Color,
744
+ color: Color$1,
810
745
  /**
811
746
  * Component used for the root node. Either a string to use a HTML element or a component.
812
747
  */
813
748
  component: {
814
749
  type: String,
815
750
  default: 'button',
816
- required: false,
817
751
  },
818
752
  /**
819
753
  * Toggle the disabled state for the component.
820
754
  */
821
- disabled: {
822
- type: Boolean,
823
- required: false,
824
- },
755
+ disabled: Boolean,
825
756
  /**
826
757
  * The href attribute specifies the URL of the page the link goes to.
827
758
  */
828
- href: {
829
- type: String,
830
- default: undefined,
831
- required: false,
832
- },
759
+ href: String,
833
760
  /**
834
761
  * Select the shape of the component.
835
762
  *
@@ -843,8 +770,6 @@ const CButton = vue.defineComponent({
843
770
  */
844
771
  size: {
845
772
  type: String,
846
- default: undefined,
847
- required: false,
848
773
  validator: (value) => {
849
774
  return ['sm', 'lg'].includes(value);
850
775
  },
@@ -858,7 +783,6 @@ const CButton = vue.defineComponent({
858
783
  type: {
859
784
  type: String,
860
785
  default: 'button',
861
- required: false,
862
786
  validator: (value) => {
863
787
  return ['button', 'submit', 'reset'].includes(value);
864
788
  },
@@ -870,8 +794,6 @@ const CButton = vue.defineComponent({
870
794
  */
871
795
  variant: {
872
796
  type: String,
873
- default: undefined,
874
- required: false,
875
797
  validator: (value) => {
876
798
  return ['ghost', 'outline'].includes(value);
877
799
  },
@@ -933,8 +855,6 @@ const CButtonGroup = vue.defineComponent({
933
855
  */
934
856
  size: {
935
857
  type: String,
936
- default: undefined,
937
- required: false,
938
858
  validator: (value) => {
939
859
  return ['sm', 'lg'].includes(value);
940
860
  },
@@ -942,10 +862,7 @@ const CButtonGroup = vue.defineComponent({
942
862
  /**
943
863
  * Create a set of buttons that appear vertically stacked rather than horizontally. Split button dropdowns are not supported here.
944
864
  */
945
- vertical: {
946
- type: Boolean,
947
- required: false,
948
- },
865
+ vertical: Boolean,
949
866
  },
950
867
  setup(props, { slots }) {
951
868
  return () => vue.h('div', {
@@ -1637,7 +1554,7 @@ const CCallout = vue.defineComponent({
1637
1554
  *
1638
1555
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
1639
1556
  */
1640
- color: Color,
1557
+ color: Color$1,
1641
1558
  },
1642
1559
  setup(props, { slots }) {
1643
1560
  return () => vue.h('div', {
@@ -1665,7 +1582,7 @@ const CCard = vue.defineComponent({
1665
1582
  *
1666
1583
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
1667
1584
  */
1668
- color: Color,
1585
+ color: Color$1,
1669
1586
  /**
1670
1587
  * Sets the text color context of the component to one of CoreUI’s themed colors.
1671
1588
  *
@@ -1715,7 +1632,6 @@ const CCardHeader = vue.defineComponent({
1715
1632
  */
1716
1633
  component: {
1717
1634
  type: String,
1718
- required: false,
1719
1635
  default: 'div',
1720
1636
  },
1721
1637
  },
@@ -1732,7 +1648,6 @@ const CCardImage = vue.defineComponent({
1732
1648
  */
1733
1649
  component: {
1734
1650
  type: String,
1735
- required: false,
1736
1651
  default: 'img',
1737
1652
  },
1738
1653
  /**
@@ -1742,8 +1657,6 @@ const CCardImage = vue.defineComponent({
1742
1657
  */
1743
1658
  orientation: {
1744
1659
  type: String,
1745
- default: undefined,
1746
- required: false,
1747
1660
  validator: (value) => {
1748
1661
  return ['top', 'bottom'].includes(value);
1749
1662
  },
@@ -1769,33 +1682,22 @@ const CLink = vue.defineComponent({
1769
1682
  /**
1770
1683
  * Toggle the active state for the component.
1771
1684
  */
1772
- active: {
1773
- type: Boolean,
1774
- required: false,
1775
- },
1685
+ active: Boolean,
1776
1686
  /**
1777
1687
  * Component used for the root node. Either a string to use a HTML element or a component.
1778
1688
  */
1779
1689
  component: {
1780
1690
  type: String,
1781
- required: false,
1782
1691
  default: 'a',
1783
1692
  },
1784
1693
  /**
1785
1694
  * Toggle the disabled state for the component.
1786
1695
  */
1787
- disabled: {
1788
- type: Boolean,
1789
- required: false,
1790
- },
1696
+ disabled: Boolean,
1791
1697
  /**
1792
1698
  * The href attribute specifies the URL of the page the link goes to.
1793
1699
  */
1794
- href: {
1795
- type: String,
1796
- default: undefined,
1797
- required: false,
1798
- },
1700
+ href: String,
1799
1701
  },
1800
1702
  emits: [
1801
1703
  /**
@@ -1834,7 +1736,6 @@ const CCardLink = vue.defineComponent({
1834
1736
  href: {
1835
1737
  type: String,
1836
1738
  default: '#',
1837
- required: false,
1838
1739
  },
1839
1740
  },
1840
1741
  setup(props, { slots }) {
@@ -1850,7 +1751,6 @@ const CCardSubtitle = vue.defineComponent({
1850
1751
  */
1851
1752
  component: {
1852
1753
  type: String,
1853
- required: false,
1854
1754
  default: 'h6',
1855
1755
  },
1856
1756
  },
@@ -1867,7 +1767,6 @@ const CCardText = vue.defineComponent({
1867
1767
  */
1868
1768
  component: {
1869
1769
  type: String,
1870
- required: false,
1871
1770
  default: 'p',
1872
1771
  },
1873
1772
  },
@@ -1884,7 +1783,6 @@ const CCardTitle = vue.defineComponent({
1884
1783
  */
1885
1784
  component: {
1886
1785
  type: String,
1887
- required: false,
1888
1786
  default: 'h5',
1889
1787
  },
1890
1788
  },
@@ -1934,7 +1832,6 @@ const CCarousel = vue.defineComponent({
1934
1832
  index: {
1935
1833
  type: Number,
1936
1834
  default: 0,
1937
- required: false,
1938
1835
  },
1939
1836
  /**
1940
1837
  * Adding indicators at the bottom of the carousel for each item.
@@ -1946,7 +1843,6 @@ const CCarousel = vue.defineComponent({
1946
1843
  interval: {
1947
1844
  type: [Boolean, Number],
1948
1845
  default: 5000,
1949
- required: false,
1950
1846
  },
1951
1847
  /**
1952
1848
  * 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.
@@ -1954,7 +1850,6 @@ const CCarousel = vue.defineComponent({
1954
1850
  pause: {
1955
1851
  type: [Boolean, String],
1956
1852
  default: 'hover',
1957
- required: false,
1958
1853
  validator: (value) => {
1959
1854
  return typeof value === 'boolean' || value === 'hover';
1960
1855
  },
@@ -1967,7 +1862,6 @@ const CCarousel = vue.defineComponent({
1967
1862
  transition: {
1968
1863
  type: String,
1969
1864
  default: 'slide',
1970
- required: false,
1971
1865
  validator: (value) => {
1972
1866
  return ['crossfade', 'slide'].includes(value);
1973
1867
  },
@@ -1978,7 +1872,6 @@ const CCarousel = vue.defineComponent({
1978
1872
  wrap: {
1979
1873
  type: Boolean,
1980
1874
  default: true,
1981
- required: false,
1982
1875
  },
1983
1876
  },
1984
1877
  setup(props, { slots }) {
@@ -2149,7 +2042,6 @@ const CCarouselItem = vue.defineComponent({
2149
2042
  direction: {
2150
2043
  type: String,
2151
2044
  default: 'next',
2152
- required: false,
2153
2045
  },
2154
2046
  /**
2155
2047
  * The amount of time to delay between automatically cycling an item.
@@ -2157,7 +2049,6 @@ const CCarouselItem = vue.defineComponent({
2157
2049
  interval: {
2158
2050
  type: [Boolean, Number],
2159
2051
  default: false,
2160
- required: false,
2161
2052
  },
2162
2053
  },
2163
2054
  setup(props, { slots }) {
@@ -2219,12 +2110,6 @@ const CCarouselPlugin = {
2219
2110
  },
2220
2111
  };
2221
2112
 
2222
- const CCloseButtonPlugin = {
2223
- install: (app) => {
2224
- app.component(CCloseButton.name, CCloseButton);
2225
- },
2226
- };
2227
-
2228
2113
  const CCollapsePlugin = {
2229
2114
  install: (app) => {
2230
2115
  app.component(CCollapse.name, CCollapse);
@@ -4592,10 +4477,7 @@ const CForm = vue.defineComponent({
4592
4477
  /**
4593
4478
  * Mark a form as validated. If you set it `true`, all validation styles will be applied to the forms component.
4594
4479
  */
4595
- validated: {
4596
- type: Boolean,
4597
- required: false,
4598
- },
4480
+ validated: Boolean,
4599
4481
  },
4600
4482
  setup(props, { slots }) {
4601
4483
  return () => vue.h('form', { class: [{ ['was-validated']: props.validated }] }, slots.default && slots.default());
@@ -4610,7 +4492,6 @@ const CFormFeedback = vue.defineComponent({
4610
4492
  */
4611
4493
  component: {
4612
4494
  type: String,
4613
- required: false,
4614
4495
  default: 'div',
4615
4496
  },
4616
4497
  /**
@@ -4645,33 +4526,25 @@ const CFormControlValidation = vue.defineComponent({
4645
4526
  /**
4646
4527
  * @ignore
4647
4528
  */
4648
- describedby: {
4649
- type: String,
4650
- },
4529
+ describedby: String,
4651
4530
  /**
4652
4531
  * Provide valuable, actionable feedback.
4653
4532
  *
4654
4533
  * @since 4.3.0
4655
4534
  */
4656
- feedback: {
4657
- type: String,
4658
- },
4535
+ feedback: String,
4659
4536
  /**
4660
4537
  * Provide valuable, actionable feedback.
4661
4538
  *
4662
4539
  * @since 4.3.0
4663
4540
  */
4664
- feedbackInvalid: {
4665
- type: String,
4666
- },
4541
+ feedbackInvalid: String,
4667
4542
  /**
4668
4543
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
4669
4544
  *
4670
4545
  * @since 4.3.0
4671
4546
  */
4672
- feedbackValid: {
4673
- type: String,
4674
- },
4547
+ feedbackValid: String,
4675
4548
  /**
4676
4549
  * Set component validation state to invalid.
4677
4550
  */
@@ -4724,11 +4597,7 @@ const CFormLabel = vue.defineComponent({
4724
4597
  /**
4725
4598
  * A string of all className you want to be applied to the component, and override standard className value.
4726
4599
  */
4727
- customClassName: {
4728
- type: [Array, String],
4729
- default: undefined,
4730
- required: false,
4731
- },
4600
+ customClassName: [Array, String],
4732
4601
  },
4733
4602
  setup(props, { slots }) {
4734
4603
  return () => vue.h('label', {
@@ -4746,33 +4615,25 @@ const CFormCheck = vue.defineComponent({
4746
4615
  *
4747
4616
  * @see http://coreui.io/vue/docs/components/button.html
4748
4617
  */
4749
- button: {
4750
- type: Object,
4751
- },
4618
+ button: Object,
4752
4619
  /**
4753
4620
  * Provide valuable, actionable feedback.
4754
4621
  *
4755
4622
  * @since 4.3.0
4756
4623
  */
4757
- feedback: {
4758
- type: String,
4759
- },
4624
+ feedback: String,
4760
4625
  /**
4761
4626
  * Provide valuable, actionable feedback.
4762
4627
  *
4763
4628
  * @since 4.3.0
4764
4629
  */
4765
- feedbackInvalid: {
4766
- type: String,
4767
- },
4630
+ feedbackInvalid: String,
4768
4631
  /**
4769
4632
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
4770
4633
  *
4771
4634
  * @since 4.3.0
4772
4635
  */
4773
- feedbackValid: {
4774
- type: String,
4775
- },
4636
+ feedbackValid: String,
4776
4637
  /**
4777
4638
  * Sets hit area to the full area of the component.
4778
4639
  */
@@ -4786,9 +4647,7 @@ const CFormCheck = vue.defineComponent({
4786
4647
  /**
4787
4648
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
4788
4649
  */
4789
- id: {
4790
- type: String,
4791
- },
4650
+ id: String,
4792
4651
  /**
4793
4652
  * Input Checkbox indeterminate Property
4794
4653
  */
@@ -4796,9 +4655,7 @@ const CFormCheck = vue.defineComponent({
4796
4655
  /**
4797
4656
  * Group checkboxes or radios on the same horizontal row by adding.
4798
4657
  */
4799
- inline: {
4800
- type: Boolean,
4801
- },
4658
+ inline: Boolean,
4802
4659
  /**
4803
4660
  * Set component validation state to invalid.
4804
4661
  */
@@ -4806,9 +4663,7 @@ const CFormCheck = vue.defineComponent({
4806
4663
  /**
4807
4664
  * The element represents a caption for a component.
4808
4665
  */
4809
- label: {
4810
- type: String,
4811
- },
4666
+ label: String,
4812
4667
  /**
4813
4668
  * The default name for a value passed using v-model.
4814
4669
  */
@@ -4840,9 +4695,7 @@ const CFormCheck = vue.defineComponent({
4840
4695
  /**
4841
4696
  * Set component validation state to valid.
4842
4697
  */
4843
- valid: {
4844
- type: Boolean,
4845
- },
4698
+ valid: Boolean,
4846
4699
  },
4847
4700
  emits: [
4848
4701
  /**
@@ -4946,7 +4799,6 @@ const CFormText = vue.defineComponent({
4946
4799
  */
4947
4800
  component: {
4948
4801
  type: String,
4949
- required: false,
4950
4802
  default: 'div',
4951
4803
  },
4952
4804
  },
@@ -4965,31 +4817,23 @@ const CFormControlWrapper = vue.defineComponent({
4965
4817
  *
4966
4818
  * @since 4.3.0
4967
4819
  */
4968
- floatingLabel: {
4969
- type: String,
4970
- },
4820
+ floatingLabel: String,
4971
4821
  /**
4972
4822
  * @ignore
4973
4823
  */
4974
- id: {
4975
- type: String,
4976
- },
4824
+ id: String,
4977
4825
  /**
4978
4826
  * Add a caption for a component.
4979
4827
  *
4980
4828
  * @since 4.3.0
4981
4829
  */
4982
- label: {
4983
- type: String,
4984
- },
4830
+ label: String,
4985
4831
  /**
4986
4832
  * Add helper text to the component.
4987
4833
  *
4988
4834
  * @since 4.3.0
4989
4835
  */
4990
- text: {
4991
- type: String,
4992
- },
4836
+ text: String,
4993
4837
  },
4994
4838
  setup(props, { slots }) {
4995
4839
  const formControlValidation = () => vue.h(CFormControlValidation, {
@@ -5053,49 +4897,36 @@ const CFormInput = vue.defineComponent({
5053
4897
  /**
5054
4898
  * Toggle the disabled state for the component.
5055
4899
  */
5056
- disabled: {
5057
- type: Boolean,
5058
- required: false,
5059
- },
4900
+ disabled: Boolean,
5060
4901
  // Inherited Props from CFormControlWrapper
5061
4902
  /**
5062
4903
  * Provide valuable, actionable feedback.
5063
4904
  *
5064
4905
  * @since 4.3.0
5065
4906
  */
5066
- feedback: {
5067
- type: String,
5068
- },
4907
+ feedback: String,
5069
4908
  /**
5070
4909
  * Provide valuable, actionable feedback.
5071
4910
  *
5072
4911
  * @since 4.3.0
5073
4912
  */
5074
- feedbackInvalid: {
5075
- type: String,
5076
- },
4913
+ feedbackInvalid: String,
5077
4914
  /**
5078
4915
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5079
4916
  *
5080
4917
  * @since 4.3.0
5081
4918
  */
5082
- feedbackValid: {
5083
- type: String,
5084
- },
4919
+ feedbackValid: String,
5085
4920
  /**
5086
4921
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5087
4922
  *
5088
4923
  * @since 4.3.0
5089
4924
  */
5090
- floatingLabel: {
5091
- type: String,
5092
- },
4925
+ floatingLabel: String,
5093
4926
  /**
5094
4927
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5095
4928
  */
5096
- id: {
5097
- type: String,
5098
- },
4929
+ id: String,
5099
4930
  /**
5100
4931
  * Set component validation state to invalid.
5101
4932
  */
@@ -5105,30 +4936,19 @@ const CFormInput = vue.defineComponent({
5105
4936
  *
5106
4937
  * @since 4.3.0
5107
4938
  */
5108
- label: {
5109
- type: String,
5110
- },
4939
+ label: String,
5111
4940
  /**
5112
4941
  * The default name for a value passed using v-model.
5113
4942
  */
5114
- modelValue: {
5115
- type: [File, Number, String],
5116
- default: undefined,
5117
- },
4943
+ modelValue: [File, Number, String],
5118
4944
  /**
5119
4945
  * 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`.
5120
4946
  */
5121
- plainText: {
5122
- type: Boolean,
5123
- required: false,
5124
- },
4947
+ plainText: Boolean,
5125
4948
  /**
5126
4949
  * Toggle the readonly state for the component.
5127
4950
  */
5128
- readonly: {
5129
- type: Boolean,
5130
- required: false,
5131
- },
4951
+ readonly: Boolean,
5132
4952
  /**
5133
4953
  * Size the component small or large.
5134
4954
  *
@@ -5145,9 +4965,7 @@ const CFormInput = vue.defineComponent({
5145
4965
  *
5146
4966
  * @since 4.3.0
5147
4967
  */
5148
- text: {
5149
- type: String,
5150
- },
4968
+ text: String,
5151
4969
  /**
5152
4970
  * Display validation feedback in a styled tooltip.
5153
4971
  *
@@ -5245,61 +5063,39 @@ const CFormRange = vue.defineComponent({
5245
5063
  /**
5246
5064
  * Toggle the disabled state for the component.
5247
5065
  */
5248
- disabled: {
5249
- type: Boolean,
5250
- default: undefined,
5251
- },
5066
+ disabled: Boolean,
5252
5067
  /**
5253
5068
  * Add a caption for a component.
5254
5069
  *
5255
5070
  * @since 4.3.0
5256
5071
  */
5257
- label: {
5258
- type: String,
5259
- },
5072
+ label: String,
5260
5073
  /**
5261
5074
  * Specifies the maximum value for the component.
5262
5075
  */
5263
- max: {
5264
- type: Number,
5265
- default: undefined,
5266
- },
5076
+ max: Number,
5267
5077
  /**
5268
5078
  * Specifies the minimum value for the component.
5269
5079
  */
5270
- min: {
5271
- type: Number,
5272
- default: undefined,
5273
- },
5080
+ min: Number,
5274
5081
  /**
5275
5082
  * The default name for a value passed using v-model.
5276
5083
  */
5277
- modelValue: {
5278
- type: String,
5279
- value: undefined,
5280
- },
5084
+ modelValue: String,
5281
5085
  /**
5282
5086
  * Toggle the readonly state for the component.
5283
5087
  */
5284
- readonly: {
5285
- type: Boolean,
5286
- },
5088
+ readonly: Boolean,
5287
5089
  /**
5288
5090
  * Specifies the interval between legal numbers in the component.
5289
5091
  */
5290
- steps: {
5291
- type: Number,
5292
- default: undefined,
5293
- },
5092
+ steps: Number,
5294
5093
  /**
5295
5094
  * The `value` attribute of component.
5296
5095
  *
5297
5096
  * @controllable onChange
5298
5097
  * */
5299
- value: {
5300
- type: Number,
5301
- default: undefined,
5302
- },
5098
+ value: Number,
5303
5099
  },
5304
5100
  emits: [
5305
5101
  /**
@@ -5348,47 +5144,33 @@ const CFormSelect = vue.defineComponent({
5348
5144
  *
5349
5145
  * @since 4.3.0
5350
5146
  */
5351
- feedback: {
5352
- type: String,
5353
- },
5147
+ feedback: String,
5354
5148
  /**
5355
5149
  * Provide valuable, actionable feedback.
5356
5150
  *
5357
5151
  * @since 4.3.0
5358
5152
  */
5359
- feedbackInvalid: {
5360
- type: String,
5361
- },
5153
+ feedbackInvalid: String,
5362
5154
  /**
5363
5155
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5364
5156
  *
5365
5157
  * @since 4.3.0
5366
5158
  */
5367
- feedbackValid: {
5368
- type: String,
5369
- },
5159
+ feedbackValid: String,
5370
5160
  /**
5371
5161
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5372
5162
  *
5373
5163
  * @since 4.3.0
5374
5164
  */
5375
- floatingLabel: {
5376
- type: String,
5377
- },
5165
+ floatingLabel: String,
5378
5166
  /**
5379
5167
  * Specifies the number of visible options in a drop-down list.
5380
5168
  */
5381
- htmlSize: {
5382
- type: Number,
5383
- default: undefined,
5384
- required: false,
5385
- },
5169
+ htmlSize: Number,
5386
5170
  /**
5387
5171
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5388
5172
  */
5389
- id: {
5390
- type: String,
5391
- },
5173
+ id: String,
5392
5174
  /**
5393
5175
  * Set component validation state to invalid.
5394
5176
  */
@@ -5398,32 +5180,21 @@ const CFormSelect = vue.defineComponent({
5398
5180
  *
5399
5181
  * @since 4.3.0
5400
5182
  */
5401
- label: {
5402
- type: String,
5403
- },
5183
+ label: String,
5404
5184
  /**
5405
5185
  * The default name for a value passed using v-model.
5406
5186
  */
5407
5187
  modelValue: {
5408
5188
  type: [String, Array],
5409
- default: undefined,
5410
- require: false,
5411
- },
5412
- multiple: {
5413
- type: Boolean,
5414
- required: false,
5415
5189
  },
5190
+ multiple: Boolean,
5416
5191
  /**
5417
5192
  * Options list of the select component. Available keys: `label`, `value`, `disabled`.
5418
5193
  * Examples:
5419
5194
  * - `:options="[{ value: 'js', label: 'JavaScript' }, { value: 'html', label: 'HTML', disabled: true }]"`
5420
5195
  * - `:options="['js', 'html']"`
5421
5196
  */
5422
- options: {
5423
- type: Array,
5424
- default: undefined,
5425
- required: false,
5426
- },
5197
+ options: Array,
5427
5198
  /**
5428
5199
  * Size the component small or large.
5429
5200
  *
@@ -5431,8 +5202,6 @@ const CFormSelect = vue.defineComponent({
5431
5202
  */
5432
5203
  size: {
5433
5204
  type: String,
5434
- default: undefined,
5435
- require: false,
5436
5205
  validator: (value) => {
5437
5206
  return ['sm', 'lg'].includes(value);
5438
5207
  },
@@ -5442,9 +5211,7 @@ const CFormSelect = vue.defineComponent({
5442
5211
  *
5443
5212
  * @since 4.3.0
5444
5213
  */
5445
- text: {
5446
- type: String,
5447
- },
5214
+ text: String,
5448
5215
  /**
5449
5216
  * Display validation feedback in a styled tooltip.
5450
5217
  *
@@ -5540,28 +5307,19 @@ const CFormSwitch = vue.defineComponent({
5540
5307
  /**
5541
5308
  * The id global attribute defines an identifier (ID) that must be unique in the whole document
5542
5309
  */
5543
- id: {
5544
- type: String,
5545
- },
5310
+ id: String,
5546
5311
  /**
5547
5312
  * Set component validation state to invalid.
5548
5313
  */
5549
- invalid: {
5550
- type: Boolean,
5551
- },
5314
+ invalid: Boolean,
5552
5315
  /**
5553
5316
  * The element represents a caption for a component.
5554
5317
  */
5555
- label: {
5556
- type: String,
5557
- },
5318
+ label: String,
5558
5319
  /**
5559
5320
  * The default name for a value passed using v-model.
5560
5321
  */
5561
- modelValue: {
5562
- type: [Boolean, String],
5563
- value: undefined,
5564
- },
5322
+ modelValue: [Boolean, String],
5565
5323
  /**
5566
5324
  * Put checkboxes or radios on the opposite side.
5567
5325
  *
@@ -5591,9 +5349,7 @@ const CFormSwitch = vue.defineComponent({
5591
5349
  /**
5592
5350
  * Set component validation state to valid.
5593
5351
  */
5594
- valid: {
5595
- type: Boolean,
5596
- },
5352
+ valid: Boolean,
5597
5353
  },
5598
5354
  emits: [
5599
5355
  /**
@@ -5653,47 +5409,35 @@ const CFormTextarea = vue.defineComponent({
5653
5409
  /**
5654
5410
  * Toggle the disabled state for the component.
5655
5411
  */
5656
- disabled: {
5657
- type: Boolean,
5658
- },
5412
+ disabled: Boolean,
5659
5413
  /**
5660
5414
  * Provide valuable, actionable feedback.
5661
5415
  *
5662
5416
  * @since 4.3.0
5663
5417
  */
5664
- feedback: {
5665
- type: String,
5666
- },
5418
+ feedback: String,
5667
5419
  /**
5668
5420
  * Provide valuable, actionable feedback.
5669
5421
  *
5670
5422
  * @since 4.3.0
5671
5423
  */
5672
- feedbackInvalid: {
5673
- type: String,
5674
- },
5424
+ feedbackInvalid: String,
5675
5425
  /**
5676
5426
  * Provide valuable, actionable invalid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5677
5427
  *
5678
5428
  * @since 4.3.0
5679
5429
  */
5680
- feedbackValid: {
5681
- type: String,
5682
- },
5430
+ feedbackValid: String,
5683
5431
  /**
5684
5432
  * Provide valuable, actionable valid feedback when using standard HTML form validation which applied two CSS pseudo-classes, `:invalid` and `:valid`.
5685
5433
  *
5686
5434
  * @since 4.3.0
5687
5435
  */
5688
- floatingLabel: {
5689
- type: String,
5690
- },
5436
+ floatingLabel: String,
5691
5437
  /**
5692
5438
  * The id global attribute defines an identifier (ID) that must be unique in the whole document.
5693
5439
  */
5694
- id: {
5695
- type: String,
5696
- },
5440
+ id: String,
5697
5441
  /**
5698
5442
  * Set component validation state to invalid.
5699
5443
  */
@@ -5703,36 +5447,25 @@ const CFormTextarea = vue.defineComponent({
5703
5447
  *
5704
5448
  * @since 4.3.0
5705
5449
  */
5706
- label: {
5707
- type: String,
5708
- },
5450
+ label: String,
5709
5451
  /**
5710
5452
  * The default name for a value passed using v-model.
5711
5453
  */
5712
- modelValue: {
5713
- type: String,
5714
- default: undefined,
5715
- },
5454
+ modelValue: String,
5716
5455
  /**
5717
5456
  * 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`.
5718
5457
  */
5719
- plainText: {
5720
- type: Boolean,
5721
- },
5458
+ plainText: Boolean,
5722
5459
  /**
5723
5460
  * Toggle the readonly state for the component.
5724
5461
  */
5725
- readonly: {
5726
- type: Boolean,
5727
- },
5462
+ readonly: Boolean,
5728
5463
  /**
5729
5464
  * Add helper text to the component.
5730
5465
  *
5731
5466
  * @since 4.3.0
5732
5467
  */
5733
- text: {
5734
- type: String,
5735
- },
5468
+ text: String,
5736
5469
  /**
5737
5470
  * Display validation feedback in a styled tooltip.
5738
5471
  *
@@ -5821,8 +5554,6 @@ const CInputGroup = vue.defineComponent({
5821
5554
  */
5822
5555
  size: {
5823
5556
  type: String,
5824
- default: undefined,
5825
- required: false,
5826
5557
  validator: (value) => {
5827
5558
  return ['sm', 'lg'].includes(value);
5828
5559
  },
@@ -5848,7 +5579,6 @@ const CInputGroupText = vue.defineComponent({
5848
5579
  */
5849
5580
  component: {
5850
5581
  type: String,
5851
- required: false,
5852
5582
  default: 'span',
5853
5583
  },
5854
5584
  },
@@ -7860,8 +7590,6 @@ const CDropdown = vue.defineComponent({
7860
7590
  */
7861
7591
  alignment: {
7862
7592
  type: [String, Object],
7863
- default: undefined,
7864
- required: false,
7865
7593
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
7866
7594
  validator: (value) => {
7867
7595
  if (value === 'start' || value === 'end') {
@@ -7907,10 +7635,7 @@ const CDropdown = vue.defineComponent({
7907
7635
  /**
7908
7636
  * Sets a darker color scheme to match a dark navbar.
7909
7637
  */
7910
- dark: {
7911
- type: Boolean,
7912
- required: false,
7913
- },
7638
+ dark: Boolean,
7914
7639
  /**
7915
7640
  * Sets a specified direction and location of the dropdown menu.
7916
7641
  *
@@ -7918,8 +7643,6 @@ const CDropdown = vue.defineComponent({
7918
7643
  */
7919
7644
  direction: {
7920
7645
  type: String,
7921
- default: undefined,
7922
- required: false,
7923
7646
  validator: (value) => {
7924
7647
  return ['center', 'dropup', 'dropup-center', 'dropend', 'dropstart'].includes(value);
7925
7648
  },
@@ -7927,10 +7650,7 @@ const CDropdown = vue.defineComponent({
7927
7650
  /**
7928
7651
  * Toggle the disabled state for the component.
7929
7652
  */
7930
- disabled: {
7931
- type: Boolean,
7932
- required: false,
7933
- },
7653
+ disabled: Boolean,
7934
7654
  /**
7935
7655
  * 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.
7936
7656
  *
@@ -7939,7 +7659,6 @@ const CDropdown = vue.defineComponent({
7939
7659
  placement: {
7940
7660
  type: String,
7941
7661
  default: 'bottom-start',
7942
- required: false,
7943
7662
  },
7944
7663
  /**
7945
7664
  * If you want to disable dynamic positioning set this property to `true`.
@@ -7947,14 +7666,12 @@ const CDropdown = vue.defineComponent({
7947
7666
  popper: {
7948
7667
  type: Boolean,
7949
7668
  default: true,
7950
- required: false,
7951
7669
  },
7952
7670
  /**
7953
7671
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
7954
7672
  */
7955
7673
  trigger: {
7956
- type: [String, Array],
7957
- required: false,
7674
+ type: String,
7958
7675
  default: 'click',
7959
7676
  },
7960
7677
  /**
@@ -7965,7 +7682,6 @@ const CDropdown = vue.defineComponent({
7965
7682
  variant: {
7966
7683
  type: String,
7967
7684
  default: 'btn-group',
7968
- required: false,
7969
7685
  validator: (value) => {
7970
7686
  return ['btn-group', 'dropdown', 'input-group', 'nav-item'].includes(value);
7971
7687
  },
@@ -7973,10 +7689,7 @@ const CDropdown = vue.defineComponent({
7973
7689
  /**
7974
7690
  * Toggle the visibility of dropdown menu component.
7975
7691
  */
7976
- visible: {
7977
- type: Boolean,
7978
- required: false,
7979
- },
7692
+ visible: Boolean,
7980
7693
  },
7981
7694
  emits: [
7982
7695
  /**
@@ -8089,33 +7802,22 @@ const CDropdownItem = vue.defineComponent({
8089
7802
  /**
8090
7803
  * Toggle the active state for the component.
8091
7804
  */
8092
- active: {
8093
- type: Boolean,
8094
- required: false,
8095
- },
7805
+ active: Boolean,
8096
7806
  /**
8097
7807
  * Component used for the root node. Either a string to use a HTML element or a component.
8098
7808
  */
8099
7809
  component: {
8100
7810
  type: String,
8101
7811
  default: 'a',
8102
- required: false,
8103
7812
  },
8104
7813
  /**
8105
7814
  * Toggle the disabled state for the component.
8106
7815
  */
8107
- disabled: {
8108
- type: Boolean,
8109
- required: false,
8110
- },
7816
+ disabled: Boolean,
8111
7817
  /**
8112
7818
  * The href attribute specifies the URL of the page the link goes to.
8113
7819
  */
8114
- href: {
8115
- type: String,
8116
- default: undefined,
8117
- required: false,
8118
- },
7820
+ href: String,
8119
7821
  },
8120
7822
  setup(props, { slots }) {
8121
7823
  return () => vue.h(CLink, {
@@ -8139,7 +7841,6 @@ const CDropdownHeader = vue.defineComponent({
8139
7841
  component: {
8140
7842
  type: String,
8141
7843
  default: 'h6',
8142
- required: false,
8143
7844
  },
8144
7845
  },
8145
7846
  setup(props, { slots }) {
@@ -8169,7 +7870,6 @@ const CDropdownMenu = vue.defineComponent({
8169
7870
  component: {
8170
7871
  type: String,
8171
7872
  default: 'div',
8172
- required: false,
8173
7873
  },
8174
7874
  },
8175
7875
  setup(props, { slots }) {
@@ -8247,32 +7947,26 @@ const CDropdownToggle = vue.defineComponent({
8247
7947
  /**
8248
7948
  * Toggle the active state for the component.
8249
7949
  */
8250
- active: {
8251
- type: Boolean,
8252
- default: false,
8253
- required: false,
8254
- },
7950
+ active: Boolean,
8255
7951
  /**
8256
7952
  * Sets the color context of the component to one of CoreUI’s themed colors.
8257
7953
  *
8258
7954
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8259
7955
  */
8260
- color: Color,
7956
+ color: Color$1,
8261
7957
  /**
8262
7958
  * Enables pseudo element caret on toggler.
8263
7959
  */
8264
7960
  caret: {
8265
7961
  type: Boolean,
8266
7962
  default: true,
8267
- required: false,
8268
7963
  },
8269
7964
  /**
8270
7965
  * Component used for the root node. Either a string to use a HTML element or a component.
8271
7966
  */
8272
7967
  component: {
8273
7968
  type: String,
8274
- default: 'button',
8275
- require: false,
7969
+ default: 'button'
8276
7970
  },
8277
7971
  /**
8278
7972
  * Create a custom toggler which accepts any content.
@@ -8281,10 +7975,7 @@ const CDropdownToggle = vue.defineComponent({
8281
7975
  /**
8282
7976
  * Toggle the disabled state for the component.
8283
7977
  */
8284
- disabled: {
8285
- type: Boolean,
8286
- required: false,
8287
- },
7978
+ disabled: Boolean,
8288
7979
  /**
8289
7980
  * @values 'rounded', 'rounded-top', 'rounded-end', 'rounded-bottom', 'rounded-start', 'rounded-circle', 'rounded-pill', 'rounded-0', 'rounded-1', 'rounded-2', 'rounded-3'
8290
7981
  */
@@ -8296,8 +7987,6 @@ const CDropdownToggle = vue.defineComponent({
8296
7987
  */
8297
7988
  size: {
8298
7989
  type: String,
8299
- default: undefined,
8300
- required: false,
8301
7990
  validator: (value) => {
8302
7991
  return ['sm', 'lg'].includes(value);
8303
7992
  },
@@ -8305,10 +7994,7 @@ const CDropdownToggle = vue.defineComponent({
8305
7994
  /**
8306
7995
  * 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.
8307
7996
  */
8308
- split: {
8309
- type: Boolean,
8310
- required: false,
8311
- },
7997
+ split: Boolean,
8312
7998
  /**
8313
7999
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
8314
8000
  *
@@ -8317,7 +8003,6 @@ const CDropdownToggle = vue.defineComponent({
8317
8003
  trigger: {
8318
8004
  type: String,
8319
8005
  default: 'click',
8320
- required: false,
8321
8006
  },
8322
8007
  /**
8323
8008
  * Set the button variant to an outlined button or a ghost button.
@@ -8326,8 +8011,6 @@ const CDropdownToggle = vue.defineComponent({
8326
8011
  */
8327
8012
  variant: {
8328
8013
  type: String,
8329
- default: undefined,
8330
- required: false,
8331
8014
  validator: (value) => {
8332
8015
  return ['ghost', 'outline'].includes(value);
8333
8016
  },
@@ -8434,21 +8117,48 @@ const CDropdownPlugin = {
8434
8117
  },
8435
8118
  };
8436
8119
 
8437
- const CPicker = vue.defineComponent({
8438
- name: 'CPicker',
8439
- props: {
8440
- ...CDropdown.props,
8441
- /**
8442
- * Toggle visibility or set the content of cancel button.
8443
- */
8444
- cancelButton: {
8445
- type: [Boolean, String],
8446
- default: 'Cancel',
8447
- },
8448
- /**
8449
- * Sets the color context of the cancel button to one of CoreUI’s themed colors.
8450
- *
8451
- * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8120
+ const Color = {
8121
+ type: String,
8122
+ validator: (value) => {
8123
+ // The value must match one of these strings
8124
+ return [
8125
+ 'primary',
8126
+ 'secondary',
8127
+ 'success',
8128
+ 'danger',
8129
+ 'warning',
8130
+ 'info',
8131
+ 'dark',
8132
+ 'light',
8133
+ 'link',
8134
+ 'transparent',
8135
+ 'primary-gradient',
8136
+ 'secondary-gradient',
8137
+ 'success-gradient',
8138
+ 'danger-gradient',
8139
+ 'warning-gradient',
8140
+ 'info-gradient',
8141
+ 'dark-gradient',
8142
+ 'light-gradient',
8143
+ ].includes(value);
8144
+ },
8145
+ };
8146
+
8147
+ const CPicker = vue.defineComponent({
8148
+ name: 'CPicker',
8149
+ props: {
8150
+ ...CDropdown.props,
8151
+ /**
8152
+ * Toggle visibility or set the content of cancel button.
8153
+ */
8154
+ cancelButton: {
8155
+ type: [Boolean, String],
8156
+ default: 'Cancel',
8157
+ },
8158
+ /**
8159
+ * Sets the color context of the cancel button to one of CoreUI’s themed colors.
8160
+ *
8161
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
8452
8162
  */
8453
8163
  cancelButtonColor: {
8454
8164
  ...Color,
@@ -10339,8 +10049,6 @@ const CSpinner = vue.defineComponent({
10339
10049
  */
10340
10050
  color: {
10341
10051
  type: String,
10342
- default: undefined,
10343
- required: false,
10344
10052
  validator: (value) => {
10345
10053
  return [
10346
10054
  'primary',
@@ -10360,7 +10068,6 @@ const CSpinner = vue.defineComponent({
10360
10068
  component: {
10361
10069
  type: String,
10362
10070
  default: 'div',
10363
- required: false,
10364
10071
  },
10365
10072
  /**
10366
10073
  * Size the component small.
@@ -10369,8 +10076,6 @@ const CSpinner = vue.defineComponent({
10369
10076
  */
10370
10077
  size: {
10371
10078
  type: String,
10372
- default: undefined,
10373
- required: false,
10374
10079
  validator: (value) => {
10375
10080
  return value === 'sm';
10376
10081
  },
@@ -10383,7 +10088,6 @@ const CSpinner = vue.defineComponent({
10383
10088
  variant: {
10384
10089
  type: String,
10385
10090
  default: 'border',
10386
- required: false,
10387
10091
  validator: (value) => {
10388
10092
  return ['border', 'grow'].includes(value);
10389
10093
  },
@@ -10394,7 +10098,6 @@ const CSpinner = vue.defineComponent({
10394
10098
  visuallyHiddenLabel: {
10395
10099
  type: String,
10396
10100
  default: 'Loading...',
10397
- required: false,
10398
10101
  },
10399
10102
  },
10400
10103
  setup(props) {
@@ -10518,8 +10221,6 @@ const CFooter = vue.defineComponent({
10518
10221
  */
10519
10222
  position: {
10520
10223
  type: String,
10521
- default: undefined,
10522
- required: false,
10523
10224
  validator: (value) => {
10524
10225
  return ['fixed', 'sticky'].includes(value);
10525
10226
  },
@@ -10554,8 +10255,6 @@ const CCol = vue.defineComponent({
10554
10255
  */
10555
10256
  xs: {
10556
10257
  type: [Boolean, Number, String, Object],
10557
- default: undefined,
10558
- require: false,
10559
10258
  },
10560
10259
  /**
10561
10260
  * The number of columns/offset/order on small devices (<768px).
@@ -10564,8 +10263,6 @@ const CCol = vue.defineComponent({
10564
10263
  */
10565
10264
  sm: {
10566
10265
  type: [Boolean, Number, String, Object],
10567
- default: undefined,
10568
- require: false,
10569
10266
  },
10570
10267
  /**
10571
10268
  * The number of columns/offset/order on medium devices (<992px).
@@ -10574,8 +10271,6 @@ const CCol = vue.defineComponent({
10574
10271
  */
10575
10272
  md: {
10576
10273
  type: [Boolean, Number, String, Object],
10577
- default: undefined,
10578
- require: false,
10579
10274
  },
10580
10275
  /**
10581
10276
  * The number of columns/offset/order on large devices (<1200px).
@@ -10584,8 +10279,6 @@ const CCol = vue.defineComponent({
10584
10279
  */
10585
10280
  lg: {
10586
10281
  type: [Boolean, Number, String, Object],
10587
- default: undefined,
10588
- require: false,
10589
10282
  },
10590
10283
  /**
10591
10284
  * The number of columns/offset/order on X-Large devices (<1400px).
@@ -10594,8 +10287,6 @@ const CCol = vue.defineComponent({
10594
10287
  */
10595
10288
  xl: {
10596
10289
  type: [Boolean, Number, String, Object],
10597
- default: undefined,
10598
- require: false,
10599
10290
  },
10600
10291
  /**
10601
10292
  * The number of columns/offset/order on XX-Large devices (≥1400px).
@@ -10604,8 +10295,6 @@ const CCol = vue.defineComponent({
10604
10295
  */
10605
10296
  xxl: {
10606
10297
  type: [Boolean, Number, String, Object],
10607
- default: undefined,
10608
- require: false,
10609
10298
  },
10610
10299
  },
10611
10300
  setup(props, { slots }) {
@@ -10656,45 +10345,27 @@ const CContainer = vue.defineComponent({
10656
10345
  /**
10657
10346
  * Set container 100% wide until small breakpoint.
10658
10347
  */
10659
- sm: {
10660
- type: Boolean,
10661
- required: false,
10662
- },
10348
+ sm: Boolean,
10663
10349
  /**
10664
10350
  * Set container 100% wide until medium breakpoint.
10665
10351
  */
10666
- md: {
10667
- type: Boolean,
10668
- required: false,
10669
- },
10352
+ md: Boolean,
10670
10353
  /**
10671
10354
  * Set container 100% wide until large breakpoint.
10672
10355
  */
10673
- lg: {
10674
- type: Boolean,
10675
- required: false,
10676
- },
10356
+ lg: Boolean,
10677
10357
  /**
10678
10358
  * Set container 100% wide until X-large breakpoint.
10679
10359
  */
10680
- xl: {
10681
- type: Boolean,
10682
- required: false,
10683
- },
10360
+ xl: Boolean,
10684
10361
  /**
10685
10362
  * Set container 100% wide until XX-large breakpoint.
10686
10363
  */
10687
- xxl: {
10688
- type: Boolean,
10689
- required: false,
10690
- },
10364
+ xxl: Boolean,
10691
10365
  /**
10692
10366
  * Set container 100% wide, spanning the entire width of the viewport.
10693
10367
  */
10694
- fluid: {
10695
- type: Boolean,
10696
- required: false,
10697
- },
10368
+ fluid: Boolean,
10698
10369
  },
10699
10370
  setup(props, { slots }) {
10700
10371
  const repsonsiveClassNames = [];
@@ -10724,61 +10395,37 @@ const CRow = vue.defineComponent({
10724
10395
  *
10725
10396
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10726
10397
  */
10727
- xs: {
10728
- type: Object,
10729
- default: undefined,
10730
- required: false,
10731
- },
10398
+ xs: Object,
10732
10399
  /**
10733
10400
  * The number of columns/offset/order on small devices (<768px).
10734
10401
  *
10735
10402
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10736
10403
  */
10737
- sm: {
10738
- type: Object,
10739
- default: undefined,
10740
- required: false,
10741
- /**
10742
- * The number of columns/offset/order on medium devices (<992px).
10743
- *
10744
- * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10745
- */
10746
- },
10747
- md: {
10748
- type: Object,
10749
- default: undefined,
10750
- required: false,
10751
- },
10404
+ sm: Object,
10405
+ /**
10406
+ * The number of columns/offset/order on medium devices (<992px).
10407
+ *
10408
+ * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10409
+ */
10410
+ md: Object,
10752
10411
  /**
10753
10412
  * The number of columns/offset/order on large devices (<1200px).
10754
10413
  *
10755
10414
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10756
10415
  */
10757
- lg: {
10758
- type: Object,
10759
- default: undefined,
10760
- required: false,
10761
- },
10416
+ lg: Object,
10762
10417
  /**
10763
10418
  * The number of columns/offset/order on X-Large devices (<1400px).
10764
10419
  *
10765
10420
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10766
10421
  */
10767
- xl: {
10768
- type: Object,
10769
- default: undefined,
10770
- required: false,
10771
- },
10422
+ xl: Object,
10772
10423
  /**
10773
10424
  * The number of columns/offset/order on XX-Large devices (≥1400px).
10774
10425
  *
10775
10426
  * @values { cols: 'auto' | number | string } | { gutter: number | string } | { gutterX: number | string } | { gutterY: number | string }
10776
10427
  */
10777
- xxl: {
10778
- type: Object,
10779
- default: undefined,
10780
- required: false,
10781
- },
10428
+ xxl: Object,
10782
10429
  },
10783
10430
  setup(props, { slots }) {
10784
10431
  const repsonsiveClassNames = [];
@@ -10824,8 +10471,6 @@ const CHeader = vue.defineComponent({
10824
10471
  */
10825
10472
  container: {
10826
10473
  type: [Boolean, String],
10827
- default: undefined,
10828
- required: false,
10829
10474
  validator: (value) => {
10830
10475
  return (typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl', 'fluid'].includes(value));
10831
10476
  },
@@ -10837,8 +10482,6 @@ const CHeader = vue.defineComponent({
10837
10482
  */
10838
10483
  position: {
10839
10484
  type: String,
10840
- default: undefined,
10841
- required: false,
10842
10485
  validator: (value) => {
10843
10486
  return ['fixed', 'sticky'].includes(value);
10844
10487
  },
@@ -10859,7 +10502,6 @@ const CHeaderBrand = vue.defineComponent({
10859
10502
  */
10860
10503
  component: {
10861
10504
  type: String,
10862
- required: false,
10863
10505
  default: 'a',
10864
10506
  },
10865
10507
  },
@@ -10883,7 +10525,6 @@ const CHeaderNav = vue.defineComponent({
10883
10525
  */
10884
10526
  component: {
10885
10527
  type: String,
10886
- required: false,
10887
10528
  default: 'ul',
10888
10529
  },
10889
10530
  },
@@ -10934,8 +10575,6 @@ const CImage = vue.defineComponent({
10934
10575
  */
10935
10576
  align: {
10936
10577
  type: String,
10937
- default: undefined,
10938
- required: false,
10939
10578
  validator: (value) => {
10940
10579
  return ['start', 'center', 'end'].includes(value);
10941
10580
  },
@@ -10943,24 +10582,15 @@ const CImage = vue.defineComponent({
10943
10582
  /**
10944
10583
  * Make image responsive.
10945
10584
  */
10946
- fluid: {
10947
- type: Boolean,
10948
- required: false,
10949
- },
10585
+ fluid: Boolean,
10950
10586
  /**
10951
10587
  * Make image rounded.
10952
10588
  */
10953
- rounded: {
10954
- type: Boolean,
10955
- required: false,
10956
- },
10589
+ rounded: Boolean,
10957
10590
  /**
10958
10591
  * Give an image a rounded 1px border appearance.
10959
10592
  */
10960
- thumbnail: {
10961
- type: Boolean,
10962
- required: false,
10963
- },
10593
+ thumbnail: Boolean,
10964
10594
  },
10965
10595
  setup(props) {
10966
10596
  return () => vue.h('img', {
@@ -10991,16 +10621,12 @@ const CListGroup = vue.defineComponent({
10991
10621
  */
10992
10622
  component: {
10993
10623
  type: String,
10994
- required: false,
10995
10624
  default: 'ul',
10996
10625
  },
10997
10626
  /**
10998
10627
  * Remove some borders and rounded corners to render list group items edge-to-edge in a parent component (e.g., `<CCard>`)
10999
10628
  */
11000
- flush: {
11001
- type: Boolean,
11002
- required: false,
11003
- },
10629
+ flush: Boolean,
11004
10630
  /**
11005
10631
  * Specify a layout type.
11006
10632
  *
@@ -11008,8 +10634,6 @@ const CListGroup = vue.defineComponent({
11008
10634
  */
11009
10635
  layout: {
11010
10636
  type: String,
11011
- default: undefined,
11012
- required: false,
11013
10637
  validator: (value) => {
11014
10638
  return [
11015
10639
  'horizontal',
@@ -11041,29 +10665,22 @@ const CListGroupItem = vue.defineComponent({
11041
10665
  /**
11042
10666
  * Toggle the active state for the component.
11043
10667
  */
11044
- active: {
11045
- type: Boolean,
11046
- required: false,
11047
- },
10668
+ active: Boolean,
11048
10669
  /**
11049
10670
  * Sets the color context of the component to one of CoreUI’s themed colors.
11050
10671
  *
11051
10672
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
11052
10673
  */
11053
- color: Color,
10674
+ color: Color$1,
11054
10675
  /**
11055
10676
  * Toggle the disabled state for the component.
11056
10677
  */
11057
- disabled: {
11058
- type: Boolean,
11059
- required: false,
11060
- },
10678
+ disabled: Boolean,
11061
10679
  /**
11062
10680
  * Component used for the root node. Either a string to use a HTML element or a component.
11063
10681
  */
11064
10682
  component: {
11065
10683
  type: String,
11066
- required: false,
11067
10684
  default: 'li',
11068
10685
  },
11069
10686
  },
@@ -11210,10 +10827,7 @@ const CModal = vue.defineComponent({
11210
10827
  /**
11211
10828
  * A string of all className you want applied to the modal content component.
11212
10829
  */
11213
- contentClassName: {
11214
- type: String,
11215
- default: undefined,
11216
- },
10830
+ contentClassName: String,
11217
10831
  /**
11218
10832
  * Set modal to covers the entire user viewport
11219
10833
  *
@@ -11221,7 +10835,6 @@ const CModal = vue.defineComponent({
11221
10835
  */
11222
10836
  fullscreen: {
11223
10837
  type: [Boolean, String],
11224
- default: undefined,
11225
10838
  validator: (value) => {
11226
10839
  if (typeof value == 'string') {
11227
10840
  return ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
@@ -11242,9 +10855,7 @@ const CModal = vue.defineComponent({
11242
10855
  /**
11243
10856
  * Create a scrollable modal that allows scrolling the modal body.
11244
10857
  */
11245
- scrollable: {
11246
- type: Boolean,
11247
- },
10858
+ scrollable: Boolean,
11248
10859
  /**
11249
10860
  * Size the component small, large, or extra large.
11250
10861
  *
@@ -11252,7 +10863,6 @@ const CModal = vue.defineComponent({
11252
10863
  */
11253
10864
  size: {
11254
10865
  type: String,
11255
- default: undefined,
11256
10866
  validator: (value) => {
11257
10867
  return ['sm', 'lg', 'xl'].includes(value);
11258
10868
  },
@@ -11425,7 +11035,6 @@ const CModalHeader = vue.defineComponent({
11425
11035
  */
11426
11036
  closeButton: {
11427
11037
  type: Boolean,
11428
- required: false,
11429
11038
  default: true,
11430
11039
  },
11431
11040
  },
@@ -11447,7 +11056,6 @@ const CModalTitle = vue.defineComponent({
11447
11056
  component: {
11448
11057
  type: String,
11449
11058
  default: 'h5',
11450
- required: false,
11451
11059
  },
11452
11060
  },
11453
11061
  setup(props, { slots }) {
@@ -12316,7 +11924,6 @@ const CNav = vue.defineComponent({
12316
11924
  */
12317
11925
  component: {
12318
11926
  type: String,
12319
- required: false,
12320
11927
  default: 'ul',
12321
11928
  },
12322
11929
  /**
@@ -12326,8 +11933,6 @@ const CNav = vue.defineComponent({
12326
11933
  */
12327
11934
  layout: {
12328
11935
  type: String,
12329
- required: false,
12330
- default: undefined,
12331
11936
  validator: (value) => {
12332
11937
  return ['fill', 'justified'].includes(value);
12333
11938
  },
@@ -12339,8 +11944,6 @@ const CNav = vue.defineComponent({
12339
11944
  */
12340
11945
  variant: {
12341
11946
  type: String,
12342
- required: false,
12343
- default: undefined,
12344
11947
  validator: (value) => {
12345
11948
  return ['tabs', 'pills', 'underline'].includes(value);
12346
11949
  },
@@ -12484,33 +12087,22 @@ const CNavLink = vue.defineComponent({
12484
12087
  /**
12485
12088
  * Toggle the active state for the component.
12486
12089
  */
12487
- active: {
12488
- type: Boolean,
12489
- required: false,
12490
- },
12090
+ active: Boolean,
12491
12091
  /**
12492
12092
  * Component used for the root node. Either a string to use a HTML element or a component.
12493
12093
  */
12494
12094
  component: {
12495
12095
  type: String,
12496
- required: false,
12497
12096
  default: 'a',
12498
12097
  },
12499
12098
  /**
12500
12099
  * Toggle the disabled state for the component.
12501
12100
  */
12502
- disabled: {
12503
- type: Boolean,
12504
- required: false,
12505
- },
12101
+ disabled: Boolean,
12506
12102
  /**
12507
12103
  * @ignore
12508
12104
  */
12509
- href: {
12510
- type: String,
12511
- default: undefined,
12512
- required: false,
12513
- },
12105
+ href: String,
12514
12106
  },
12515
12107
  setup(props, { slots }) {
12516
12108
  return () => vue.h(CLink, {
@@ -12572,7 +12164,7 @@ const CNavbar = vue.defineComponent({
12572
12164
  *
12573
12165
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
12574
12166
  */
12575
- color: Color,
12167
+ color: Color$1,
12576
12168
  /**
12577
12169
  * Sets if the color of text should be colored for a light or dark dark background.
12578
12170
  *
@@ -12580,8 +12172,6 @@ const CNavbar = vue.defineComponent({
12580
12172
  */
12581
12173
  colorScheme: {
12582
12174
  type: String,
12583
- default: undefined,
12584
- required: false,
12585
12175
  validator: (value) => {
12586
12176
  return ['dark', 'light'].includes(value);
12587
12177
  },
@@ -12592,7 +12182,6 @@ const CNavbar = vue.defineComponent({
12592
12182
  component: {
12593
12183
  type: String,
12594
12184
  default: 'nav',
12595
- required: false,
12596
12185
  },
12597
12186
  /**
12598
12187
  * Defines optional container wrapping children elements.
@@ -12601,8 +12190,6 @@ const CNavbar = vue.defineComponent({
12601
12190
  */
12602
12191
  container: {
12603
12192
  type: [Boolean, String],
12604
- default: undefined,
12605
- required: false,
12606
12193
  validator: (value) => {
12607
12194
  return (typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl', 'fluid'].includes(value));
12608
12195
  },
@@ -12614,8 +12201,6 @@ const CNavbar = vue.defineComponent({
12614
12201
  */
12615
12202
  expand: {
12616
12203
  type: [Boolean, String],
12617
- default: undefined,
12618
- required: false,
12619
12204
  validator: (value) => {
12620
12205
  return typeof value === 'boolean' || ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
12621
12206
  },
@@ -12627,8 +12212,6 @@ const CNavbar = vue.defineComponent({
12627
12212
  */
12628
12213
  placement: {
12629
12214
  type: String,
12630
- default: undefined,
12631
- required: false,
12632
12215
  validator: (value) => {
12633
12216
  return ['fixed-top', 'fixed-bottom', 'sticky-top'].includes(value);
12634
12217
  },
@@ -12663,16 +12246,11 @@ const CNavbarBrand = vue.defineComponent({
12663
12246
  component: {
12664
12247
  type: String,
12665
12248
  default: 'a',
12666
- required: false,
12667
12249
  },
12668
12250
  /**
12669
12251
  * The href attribute specifies the URL of the page the link goes to.
12670
12252
  */
12671
- href: {
12672
- type: String,
12673
- default: undefined,
12674
- required: false,
12675
- },
12253
+ href: String,
12676
12254
  },
12677
12255
  setup(props, { slots }) {
12678
12256
  return () => vue.h(props.component ? props.component : props.href ? 'a' : 'span', {
@@ -12690,7 +12268,6 @@ const CNavbarNav = vue.defineComponent({
12690
12268
  */
12691
12269
  component: {
12692
12270
  type: String,
12693
- required: false,
12694
12271
  default: 'ul',
12695
12272
  },
12696
12273
  },
@@ -12763,7 +12340,6 @@ const COffcanvas = vue.defineComponent({
12763
12340
  */
12764
12341
  placement: {
12765
12342
  type: String,
12766
- default: undefined,
12767
12343
  require: true,
12768
12344
  validator: (value) => {
12769
12345
  return ['start', 'end', 'top', 'bottom'].includes(value);
@@ -12798,7 +12374,10 @@ const COffcanvas = vue.defineComponent({
12798
12374
  /**
12799
12375
  * Toggle the visibility of offcanvas component.
12800
12376
  */
12801
- visible: Boolean,
12377
+ visible: {
12378
+ type: Boolean,
12379
+ default: false,
12380
+ },
12802
12381
  },
12803
12382
  emits: [
12804
12383
  /**
@@ -12817,11 +12396,9 @@ const COffcanvas = vue.defineComponent({
12817
12396
  visible.value = props.visible;
12818
12397
  });
12819
12398
  vue.watch(visible, () => {
12820
- if (visible.value) {
12821
- if (!props.scroll) {
12822
- document.body.style.overflow = 'hidden';
12823
- document.body.style.paddingRight = '0px';
12824
- }
12399
+ if (visible.value && !props.scroll) {
12400
+ document.body.style.overflow = 'hidden';
12401
+ document.body.style.paddingRight = '0px';
12825
12402
  return;
12826
12403
  }
12827
12404
  if (!props.scroll) {
@@ -12911,7 +12488,6 @@ const COffcanvasTitle = vue.defineComponent({
12911
12488
  */
12912
12489
  component: {
12913
12490
  type: String,
12914
- required: false,
12915
12491
  default: 'h5',
12916
12492
  },
12917
12493
  },
@@ -12939,8 +12515,6 @@ const CPagination = vue.defineComponent({
12939
12515
  */
12940
12516
  align: {
12941
12517
  type: String,
12942
- default: undefined,
12943
- required: false,
12944
12518
  validator: (value) => {
12945
12519
  return ['start', 'center', 'end'].includes(value);
12946
12520
  },
@@ -12952,8 +12526,6 @@ const CPagination = vue.defineComponent({
12952
12526
  */
12953
12527
  size: {
12954
12528
  type: String,
12955
- default: undefined,
12956
- required: false,
12957
12529
  validator: (value) => {
12958
12530
  return ['sm', 'lg'].includes(value);
12959
12531
  },
@@ -12978,33 +12550,19 @@ const CPaginationItem = vue.defineComponent({
12978
12550
  /**
12979
12551
  * Toggle the active state for the component.
12980
12552
  */
12981
- active: {
12982
- type: Boolean,
12983
- required: false,
12984
- },
12553
+ active: Boolean,
12985
12554
  /**
12986
12555
  * Component used for the root node. Either a string to use a HTML element or a component.
12987
12556
  */
12988
- component: {
12989
- type: String,
12990
- default: undefined,
12991
- required: false,
12992
- },
12557
+ component: String,
12993
12558
  /**
12994
12559
  * Toggle the disabled state for the component.
12995
12560
  */
12996
- disabled: {
12997
- type: Boolean,
12998
- required: false,
12999
- },
12561
+ disabled: Boolean,
13000
12562
  /**
13001
12563
  * The href attribute specifies the URL of the page the link goes to.
13002
12564
  */
13003
- href: {
13004
- type: String,
13005
- default: undefined,
13006
- required: false,
13007
- },
12565
+ href: String,
13008
12566
  },
13009
12567
  setup(props, { slots }) {
13010
12568
  return () => {
@@ -13056,8 +12614,6 @@ const CPlaceholder = vue.defineComponent({
13056
12614
  */
13057
12615
  animation: {
13058
12616
  type: String,
13059
- default: undefined,
13060
- require: false,
13061
12617
  validator: (value) => {
13062
12618
  return ['glow', 'wave'].includes(value);
13063
12619
  },
@@ -13067,14 +12623,13 @@ const CPlaceholder = vue.defineComponent({
13067
12623
  *
13068
12624
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
13069
12625
  */
13070
- color: Color,
12626
+ color: Color$1,
13071
12627
  /**
13072
12628
  * Component used for the root node. Either a string to use a HTML element or a component.
13073
12629
  */
13074
12630
  component: {
13075
12631
  type: String,
13076
12632
  default: 'span',
13077
- required: false,
13078
12633
  },
13079
12634
  /**
13080
12635
  * Size the component extra small, small, or large.
@@ -13083,8 +12638,6 @@ const CPlaceholder = vue.defineComponent({
13083
12638
  */
13084
12639
  size: {
13085
12640
  type: String,
13086
- default: undefined,
13087
- required: false,
13088
12641
  validator: (value) => {
13089
12642
  return ['xs', 'sm', 'lg'].includes(value);
13090
12643
  },
@@ -13092,51 +12645,27 @@ const CPlaceholder = vue.defineComponent({
13092
12645
  /**
13093
12646
  * The number of columns on extra small devices (<576px).
13094
12647
  */
13095
- xs: {
13096
- type: Number,
13097
- default: undefined,
13098
- require: false,
13099
- },
12648
+ xs: Number,
13100
12649
  /**
13101
12650
  * The number of columns on small devices (<768px).
13102
12651
  */
13103
- sm: {
13104
- type: Number,
13105
- default: undefined,
13106
- require: false,
13107
- },
12652
+ sm: Number,
13108
12653
  /**
13109
12654
  * The number of columns on medium devices (<992px).
13110
12655
  */
13111
- md: {
13112
- type: Number,
13113
- default: undefined,
13114
- require: false,
13115
- },
12656
+ md: Number,
13116
12657
  /**
13117
12658
  * The number of columns on large devices (<1200px).
13118
12659
  */
13119
- lg: {
13120
- type: Number,
13121
- default: undefined,
13122
- require: false,
13123
- },
12660
+ lg: Number,
13124
12661
  /**
13125
12662
  * The number of columns on X-Large devices (<1400px).
13126
12663
  */
13127
- xl: {
13128
- type: Number,
13129
- default: undefined,
13130
- require: false,
13131
- },
12664
+ xl: Number,
13132
12665
  /**
13133
12666
  * The number of columns on XX-Large devices (≥1400px).
13134
12667
  */
13135
- xxl: {
13136
- type: Number,
13137
- default: undefined,
13138
- require: false,
13139
- },
12668
+ xxl: Number,
13140
12669
  },
13141
12670
  setup(props, { slots }) {
13142
12671
  const repsonsiveClassNames = [];
@@ -13175,22 +12704,18 @@ const CProgressBar = vue.defineComponent({
13175
12704
  /**
13176
12705
  * Use to animate the stripes right to left via CSS3 animations.
13177
12706
  */
13178
- animated: {
13179
- type: Boolean,
13180
- required: false,
13181
- },
12707
+ animated: Boolean,
13182
12708
  /**
13183
12709
  * Sets the color context of the component to one of CoreUI’s themed colors.
13184
12710
  *
13185
12711
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
13186
12712
  */
13187
- color: Color,
12713
+ color: Color$1,
13188
12714
  /**
13189
12715
  * The percent to progress the ProgressBar.
13190
12716
  */
13191
12717
  value: {
13192
12718
  type: Number,
13193
- required: false,
13194
12719
  default: 0,
13195
12720
  },
13196
12721
  /**
@@ -13200,8 +12725,6 @@ const CProgressBar = vue.defineComponent({
13200
12725
  */
13201
12726
  variant: {
13202
12727
  type: String,
13203
- default: undefined,
13204
- require: false,
13205
12728
  validator: (value) => {
13206
12729
  return value === 'striped';
13207
12730
  },
@@ -13232,11 +12755,7 @@ const CProgress = vue.defineComponent({
13232
12755
  /**
13233
12756
  * Sets the height of the component. If you set that value the inner `<CProgressBar>` will automatically resize accordingly.
13234
12757
  */
13235
- height: {
13236
- type: Number,
13237
- default: undefined,
13238
- required: false,
13239
- },
12758
+ height: Number,
13240
12759
  /**
13241
12760
  * Makes progress bar thinner.
13242
12761
  */
@@ -13281,18 +12800,13 @@ const CPopover = vue.defineComponent({
13281
12800
  /**
13282
12801
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
13283
12802
  */
13284
- content: {
13285
- type: String,
13286
- default: undefined,
13287
- required: false,
13288
- },
12803
+ content: String,
13289
12804
  /**
13290
12805
  * Offset of the popover relative to its target.
13291
12806
  */
13292
12807
  offset: {
13293
12808
  type: Array,
13294
12809
  default: () => [0, 8],
13295
- required: false,
13296
12810
  },
13297
12811
  /**
13298
12812
  * 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.
@@ -13300,7 +12814,6 @@ const CPopover = vue.defineComponent({
13300
12814
  placement: {
13301
12815
  type: String,
13302
12816
  default: 'top',
13303
- required: false,
13304
12817
  validator: (value) => {
13305
12818
  return ['top', 'right', 'bottom', 'left'].includes(value);
13306
12819
  },
@@ -13308,11 +12821,7 @@ const CPopover = vue.defineComponent({
13308
12821
  /**
13309
12822
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
13310
12823
  */
13311
- title: {
13312
- type: String,
13313
- default: undefined,
13314
- required: false,
13315
- },
12824
+ title: String,
13316
12825
  /**
13317
12826
  * Sets which event handlers you’d like provided to your toggle prop. You can specify one trigger or an array of them.
13318
12827
  *
@@ -13321,7 +12830,6 @@ const CPopover = vue.defineComponent({
13321
12830
  trigger: {
13322
12831
  type: [String, Array],
13323
12832
  default: 'click',
13324
- required: false,
13325
12833
  validator: (value) => {
13326
12834
  if (typeof value === 'string') {
13327
12835
  return ['click', 'focus', 'hover'].includes(value);
@@ -13452,17 +12960,11 @@ const CSidebar = vue.defineComponent({
13452
12960
  /**
13453
12961
  * Make sidebar narrow.
13454
12962
  */
13455
- narrow: {
13456
- type: Boolean,
13457
- required: false,
13458
- },
12963
+ narrow: Boolean,
13459
12964
  /**
13460
12965
  * Set sidebar to overlaid variant.
13461
12966
  */
13462
- overlaid: {
13463
- type: Boolean,
13464
- required: false,
13465
- },
12967
+ overlaid: Boolean,
13466
12968
  /**
13467
12969
  * Components placement, there’s no default placement.
13468
12970
  * @values 'start', 'end'
@@ -13479,7 +12981,6 @@ const CSidebar = vue.defineComponent({
13479
12981
  */
13480
12982
  position: {
13481
12983
  type: String,
13482
- default: undefined,
13483
12984
  validator: (value) => {
13484
12985
  return ['fixed'].includes(value);
13485
12986
  },
@@ -13489,7 +12990,6 @@ const CSidebar = vue.defineComponent({
13489
12990
  */
13490
12991
  size: {
13491
12992
  type: String,
13492
- default: undefined,
13493
12993
  validator: (value) => {
13494
12994
  return ['sm', 'lg', 'xl'].includes(value);
13495
12995
  },
@@ -14114,7 +13614,7 @@ const CTableBody = vue.defineComponent({
14114
13614
  *
14115
13615
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14116
13616
  */
14117
- color: Color,
13617
+ color: Color$1,
14118
13618
  },
14119
13619
  setup(props, { slots }) {
14120
13620
  return () => vue.h('tbody', {
@@ -14140,10 +13640,7 @@ const CTableDataCell = vue.defineComponent({
14140
13640
  /**
14141
13641
  * Highlight a table row or cell.
14142
13642
  */
14143
- active: {
14144
- type: Boolean,
14145
- required: false,
14146
- },
13643
+ active: Boolean,
14147
13644
  /**
14148
13645
  * Set the vertical aligment.
14149
13646
  *
@@ -14151,8 +13648,6 @@ const CTableDataCell = vue.defineComponent({
14151
13648
  */
14152
13649
  align: {
14153
13650
  type: String,
14154
- default: undefined,
14155
- required: false,
14156
13651
  validator: (value) => {
14157
13652
  return ['bottom', 'middle', 'top'].includes(value);
14158
13653
  },
@@ -14162,14 +13657,11 @@ const CTableDataCell = vue.defineComponent({
14162
13657
  *
14163
13658
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14164
13659
  */
14165
- color: Color,
13660
+ color: Color$1,
14166
13661
  /**
14167
13662
  * @ignore
14168
13663
  */
14169
- scope: {
14170
- type: String,
14171
- required: false,
14172
- },
13664
+ scope: String,
14173
13665
  },
14174
13666
  setup(props, { slots }) {
14175
13667
  return () => vue.h(props.scope ? 'th' : 'td', {
@@ -14193,7 +13685,7 @@ const CTableFoot = vue.defineComponent({
14193
13685
  *
14194
13686
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14195
13687
  */
14196
- color: Color,
13688
+ color: Color$1,
14197
13689
  },
14198
13690
  setup(props, { slots }) {
14199
13691
  return () => vue.h('tfoot', {
@@ -14214,7 +13706,7 @@ const CTableHead = vue.defineComponent({
14214
13706
  *
14215
13707
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14216
13708
  */
14217
- color: Color,
13709
+ color: Color$1,
14218
13710
  },
14219
13711
  setup(props, { slots }) {
14220
13712
  return () => vue.h('thead', {
@@ -14235,7 +13727,7 @@ const CTableHeaderCell = vue.defineComponent({
14235
13727
  *
14236
13728
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14237
13729
  */
14238
- color: Color,
13730
+ color: Color$1,
14239
13731
  },
14240
13732
  setup(props, { slots }) {
14241
13733
  return () => vue.h('th', {
@@ -14254,10 +13746,7 @@ const CTableRow = vue.defineComponent({
14254
13746
  /**
14255
13747
  * Highlight a table row or cell..
14256
13748
  */
14257
- active: {
14258
- type: Boolean,
14259
- required: false,
14260
- },
13749
+ active: Boolean,
14261
13750
  /**
14262
13751
  * Set the vertical aligment.
14263
13752
  *
@@ -14265,8 +13754,6 @@ const CTableRow = vue.defineComponent({
14265
13754
  */
14266
13755
  align: {
14267
13756
  type: String,
14268
- default: undefined,
14269
- required: false,
14270
13757
  validator: (value) => {
14271
13758
  return ['bottom', 'middle', 'top'].includes(value);
14272
13759
  },
@@ -14276,7 +13763,7 @@ const CTableRow = vue.defineComponent({
14276
13763
  *
14277
13764
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14278
13765
  */
14279
- color: Color,
13766
+ color: Color$1,
14280
13767
  },
14281
13768
  setup(props, { slots }) {
14282
13769
  return () => vue.h('tr', {
@@ -14300,11 +13787,14 @@ const pretifyName$1 = (name) => {
14300
13787
  .map((word) => word.charAt(0).toUpperCase() + word.slice(1))
14301
13788
  .join(' ');
14302
13789
  };
14303
- const label = (column) => typeof column === 'object'
14304
- ? column.label !== undefined
14305
- ? column.label
14306
- : pretifyName$1(column.key)
14307
- : pretifyName$1(column);
13790
+ const getColumnLabel$1 = (column) => typeof column === 'object' ? column.label ?? pretifyName$1(column.key) : pretifyName$1(column);
13791
+ const getColumnNames$1 = (columns, items) => columns
13792
+ ? columns.map((column) => {
13793
+ return typeof column === 'object' ? column.key : column;
13794
+ })
13795
+ : items && getColumnNamesFromItems$1(items);
13796
+ const getColumnNamesFromItems$1 = (items) => Object.keys(items[0] || {}).filter((el) => el.charAt(0) !== '_');
13797
+
14308
13798
  const CTable = vue.defineComponent({
14309
13799
  name: 'CTable',
14310
13800
  props: {
@@ -14315,8 +13805,6 @@ const CTable = vue.defineComponent({
14315
13805
  */
14316
13806
  align: {
14317
13807
  type: String,
14318
- default: undefined,
14319
- required: false,
14320
13808
  validator: (value) => {
14321
13809
  return ['bottom', 'middle', 'top'].includes(value);
14322
13810
  },
@@ -14326,41 +13814,27 @@ const CTable = vue.defineComponent({
14326
13814
  *
14327
13815
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
14328
13816
  */
14329
- borderColor: Color,
13817
+ borderColor: Color$1,
14330
13818
  /**
14331
13819
  * Add borders on all sides of the table and cells.
14332
13820
  */
14333
- bordered: {
14334
- type: Boolean,
14335
- required: false,
14336
- },
13821
+ bordered: Boolean,
14337
13822
  /**
14338
13823
  * Remove borders on all sides of the table and cells.
14339
13824
  */
14340
- borderless: {
14341
- type: Boolean,
14342
- required: false,
14343
- },
13825
+ borderless: Boolean,
14344
13826
  /**
14345
13827
  * Put the `<caption>` on the top of the table.
14346
13828
  *
14347
13829
  * @values 'top' | string
14348
13830
  */
14349
- caption: {
14350
- type: String,
14351
- default: undefined,
14352
- required: false,
14353
- },
13831
+ caption: String,
14354
13832
  /**
14355
13833
  * Set the text of the table caption and the caption on the top of the table.
14356
13834
  *
14357
13835
  * @since 4.5.0
14358
13836
  */
14359
- captionTop: {
14360
- type: String,
14361
- default: undefined,
14362
- required: false,
14363
- },
13837
+ captionTop: String,
14364
13838
  /**
14365
13839
  * 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')
14366
13840
  *
@@ -14376,14 +13850,13 @@ const CTable = vue.defineComponent({
14376
13850
  */
14377
13851
  columns: {
14378
13852
  type: Array,
14379
- required: false,
14380
13853
  },
14381
13854
  /**
14382
13855
  * Sets the color context of the component to one of CoreUI’s themed colors.
14383
13856
  *
14384
13857
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
14385
13858
  */
14386
- color: Color,
13859
+ color: Color$1,
14387
13860
  /**
14388
13861
  * Array of objects or strings, where each element represents one cell in the table footer.
14389
13862
  *
@@ -14396,15 +13869,11 @@ const CTable = vue.defineComponent({
14396
13869
  */
14397
13870
  footer: {
14398
13871
  type: Array,
14399
- required: false,
14400
13872
  },
14401
13873
  /**
14402
13874
  * Enable a hover state on table rows within a `<CTableBody>`.
14403
13875
  */
14404
- hover: {
14405
- type: Boolean,
14406
- required: false,
14407
- },
13876
+ hover: Boolean,
14408
13877
  /**
14409
13878
  * 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'.
14410
13879
  *
@@ -14415,12 +13884,9 @@ const CTable = vue.defineComponent({
14415
13884
  */
14416
13885
  items: {
14417
13886
  type: Array,
14418
- required: false,
14419
13887
  },
14420
13888
  responsive: {
14421
13889
  type: [Boolean, String],
14422
- default: undefined,
14423
- required: false,
14424
13890
  validator: (value) => {
14425
13891
  if (typeof value == 'string') {
14426
13892
  return ['sm', 'md', 'lg', 'xl', 'xxl'].includes(value);
@@ -14434,26 +13900,17 @@ const CTable = vue.defineComponent({
14434
13900
  /**
14435
13901
  * Make table more compact by cutting all cell `padding` in half.
14436
13902
  */
14437
- small: {
14438
- type: Boolean,
14439
- required: false,
14440
- },
13903
+ small: Boolean,
14441
13904
  /**
14442
13905
  * Add zebra-striping to any table row within the `<CTableBody>`.
14443
13906
  */
14444
- striped: {
14445
- type: Boolean,
14446
- required: false,
14447
- },
13907
+ striped: Boolean,
14448
13908
  /**
14449
13909
  * Add zebra-striping to any table column.
14450
13910
  *
14451
13911
  * @since 4.4.0
14452
13912
  */
14453
- stripedColumns: {
14454
- type: Boolean,
14455
- required: false,
14456
- },
13913
+ stripedColumns: Boolean,
14457
13914
  /**
14458
13915
  * Properties that will be passed to the table footer component.
14459
13916
  *
@@ -14462,8 +13919,6 @@ const CTable = vue.defineComponent({
14462
13919
  */
14463
13920
  tableFootProps: {
14464
13921
  type: Object,
14465
- default: undefined,
14466
- required: false,
14467
13922
  },
14468
13923
  /**
14469
13924
  * Properties that will be passed to the table head component.
@@ -14473,19 +13928,17 @@ const CTable = vue.defineComponent({
14473
13928
  */
14474
13929
  tableHeadProps: {
14475
13930
  type: Object,
14476
- default: undefined,
14477
- required: false,
14478
13931
  },
14479
13932
  },
14480
13933
  setup(props, { slots, attrs }) {
14481
- const rawColumnNames = vue.computed(() => props.columns
14482
- ? props.columns.map((column) => {
14483
- if (typeof column === 'object')
14484
- return column.key;
14485
- else
14486
- return column;
14487
- })
14488
- : Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'));
13934
+ const columnNames = vue.computed(() => getColumnNames$1(props.columns, props.items));
13935
+ // props.columns
13936
+ // ? props.columns.map((column: Column | string) => {
13937
+ // if (typeof column === 'object') return column.key
13938
+ // else return column
13939
+ // })
13940
+ // : Object.keys((props.items && props.items[0]) || {}).filter((el) => el.charAt(0) !== '_'),
13941
+ // )
14489
13942
  const table = () => vue.h('table', {
14490
13943
  class: [
14491
13944
  'table',
@@ -14522,7 +13975,7 @@ const CTable = vue.defineComponent({
14522
13975
  ...(typeof column === 'object' &&
14523
13976
  column._style && { style: { ...column._style } }),
14524
13977
  }, {
14525
- default: () => label(column),
13978
+ default: () => getColumnLabel$1(column),
14526
13979
  })),
14527
13980
  ],
14528
13981
  }),
@@ -14535,7 +13988,7 @@ const CTable = vue.defineComponent({
14535
13988
  ...(item._props && { ...item._props }),
14536
13989
  }, {
14537
13990
  default: () => [
14538
- rawColumnNames.value.map((colName) => item[colName] &&
13991
+ columnNames.value && columnNames.value.map((colName) => item[colName] &&
14539
13992
  vue.h(CTableDataCell, {
14540
13993
  ...(item._cellProps &&
14541
13994
  item._cellProps['all'] && { ...item._cellProps['all'] }),
@@ -15611,10 +15064,10 @@ const CSmartTable = vue.defineComponent({
15611
15064
  : handleActivePageChange(page),
15612
15065
  })
15613
15066
  : ''),
15614
- vue.h('div', {
15615
- class: 'col-auto ms-auto',
15616
- }, props.itemsPerPageSelect &&
15067
+ props.itemsPerPageSelect &&
15617
15068
  vue.h('div', {
15069
+ class: 'col-auto ms-auto',
15070
+ }, vue.h('div', {
15618
15071
  class: 'row',
15619
15072
  }, {
15620
15073
  default: () => [
@@ -15666,7 +15119,6 @@ const CTabPane = vue.defineComponent({
15666
15119
  visible: {
15667
15120
  type: Boolean,
15668
15121
  default: false,
15669
- required: false,
15670
15122
  },
15671
15123
  },
15672
15124
  emits: [
@@ -15729,21 +15181,19 @@ const CToast = vue.defineComponent({
15729
15181
  autohide: {
15730
15182
  type: Boolean,
15731
15183
  default: true,
15732
- required: false,
15733
15184
  },
15734
15185
  /**
15735
15186
  * Sets the color context of the component to one of CoreUI’s themed colors.
15736
15187
  *
15737
15188
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light', string
15738
15189
  */
15739
- color: Color,
15190
+ color: Color$1,
15740
15191
  /**
15741
15192
  * Delay hiding the toast (ms).
15742
15193
  */
15743
15194
  delay: {
15744
15195
  type: Number,
15745
15196
  default: 5000,
15746
- required: false,
15747
15197
  },
15748
15198
  /**
15749
15199
  * Optionally add a close button to component and allow it to self dismiss.
@@ -15751,32 +15201,19 @@ const CToast = vue.defineComponent({
15751
15201
  dismissible: {
15752
15202
  type: Boolean,
15753
15203
  default: true,
15754
- required: false,
15755
15204
  },
15756
15205
  /**
15757
15206
  * index of the component.
15758
15207
  */
15759
- index: {
15760
- type: Number,
15761
- default: undefined,
15762
- required: false,
15763
- },
15208
+ index: Number,
15764
15209
  /**
15765
15210
  * Title node for your component.
15766
15211
  */
15767
- title: {
15768
- type: String,
15769
- default: undefined,
15770
- required: false,
15771
- },
15212
+ title: String,
15772
15213
  /**
15773
15214
  * Toggle the visibility of component.
15774
15215
  */
15775
- visible: {
15776
- type: Boolean,
15777
- default: true,
15778
- required: false,
15779
- },
15216
+ visible: Boolean,
15780
15217
  },
15781
15218
  emits: [
15782
15219
  /**
@@ -15789,46 +15226,19 @@ const CToast = vue.defineComponent({
15789
15226
  'show',
15790
15227
  ],
15791
15228
  setup(props, { slots, emit }) {
15792
- const visible = vue.ref(props.visible);
15793
- let timeout = 0;
15794
- const updateVisible = (v) => {
15795
- visible.value = v;
15229
+ const timeout = vue.ref(0);
15230
+ const visible = vue.ref();
15231
+ const updateVisible = (_visible) => {
15232
+ visible.value = _visible;
15796
15233
  };
15797
15234
  vue.provide('updateVisible', updateVisible);
15798
- const handleBeforeEnter = (el) => {
15799
- el.classList.add('showing');
15800
- };
15801
- const handleEnter = (el, done) => {
15802
- executeAfterTransition(() => done(), el);
15803
- el.classList.add('show');
15804
- setTimeout(() => {
15805
- el.classList.remove('showing');
15806
- }, 1);
15807
- if (props.index) {
15808
- emit('show', props.index);
15809
- }
15810
- else {
15811
- emit('show');
15812
- }
15813
- };
15814
- const handleLeave = (el, done) => {
15815
- executeAfterTransition(() => done(), el);
15816
- el.classList.add('showing');
15817
- };
15818
- const handleAfterLeave = (el) => {
15819
- el.classList.remove('show');
15820
- el.classList.add('hide');
15821
- if (props.index) {
15822
- emit('close', props.index);
15823
- }
15824
- else {
15825
- emit('close');
15826
- }
15827
- };
15828
15235
  vue.onMounted(() => {
15236
+ if (props.visible) {
15237
+ visible.value = props.visible;
15238
+ }
15829
15239
  if (props.autohide) {
15830
- clearTimeout(timeout);
15831
- timeout = window.setTimeout(() => {
15240
+ clearTimeout(timeout.value);
15241
+ timeout.value = window.setTimeout(() => {
15832
15242
  visible.value = false;
15833
15243
  emit('close');
15834
15244
  }, props.delay);
@@ -15836,23 +15246,33 @@ const CToast = vue.defineComponent({
15836
15246
  });
15837
15247
  return () => vue.h(vue.Transition, {
15838
15248
  appear: true,
15839
- onBeforeEnter: (el) => handleBeforeEnter(el),
15840
- onEnter: (el, done) => handleEnter(el, done),
15841
- onLeave: (el, done) => handleLeave(el, done),
15842
- onAfterLeave: (el) => handleAfterLeave(el),
15843
- }, () => visible.value &&
15844
- vue.h('div', {
15845
- class: [
15846
- 'toast fade',
15847
- {
15848
- [`bg-${props.color}`]: props.color,
15849
- },
15850
- ],
15851
- 'aria-live': 'assertive',
15852
- 'aria-atomic': true,
15853
- role: 'alert',
15854
- ref: 'toastRef',
15855
- }, slots.default && slots.default()));
15249
+ enterFromClass: '',
15250
+ enterActiveClass: 'show showing',
15251
+ enterToClass: 'show',
15252
+ leaveFromClass: 'show',
15253
+ leaveActiveClass: 'show showing',
15254
+ leaveToClass: 'show',
15255
+ onAfterEnter: (el) => {
15256
+ el.classList.add('show');
15257
+ props.index ? emit('show', props.index) : emit('show');
15258
+ },
15259
+ onAfterLeave: () => {
15260
+ props.index ? emit('close', props.index) : emit('close');
15261
+ },
15262
+ }, {
15263
+ default: () => visible.value &&
15264
+ vue.h('div', {
15265
+ class: [
15266
+ 'toast fade',
15267
+ {
15268
+ [`bg-${props.color}`]: props.color,
15269
+ },
15270
+ ],
15271
+ 'aria-live': 'assertive',
15272
+ 'aria-atomic': true,
15273
+ role: 'alert',
15274
+ }, slots.default && slots.default()),
15275
+ });
15856
15276
  },
15857
15277
  });
15858
15278
 
@@ -15869,11 +15289,7 @@ const CToastClose = vue.defineComponent({
15869
15289
  /**
15870
15290
  * Component used for the root node. Either a string to use a HTML element or a component.
15871
15291
  */
15872
- component: {
15873
- type: String,
15874
- default: undefined,
15875
- required: false,
15876
- },
15292
+ component: String,
15877
15293
  ...CCloseButton.props,
15878
15294
  },
15879
15295
  emits: [
@@ -15914,8 +15330,6 @@ const CToaster = vue.defineComponent({
15914
15330
  */
15915
15331
  placement: {
15916
15332
  type: String,
15917
- default: undefined,
15918
- require: false,
15919
15333
  validator: (value) => {
15920
15334
  return [
15921
15335
  'top-start',
@@ -15955,10 +15369,7 @@ const CToastHeader = vue.defineComponent({
15955
15369
  /**
15956
15370
  * Automatically add a close button to the header.
15957
15371
  */
15958
- closeButton: {
15959
- type: Boolean,
15960
- require: false,
15961
- },
15372
+ closeButton: Boolean,
15962
15373
  },
15963
15374
  emits: [
15964
15375
  /**
@@ -15993,18 +15404,13 @@ const CTooltip = vue.defineComponent({
15993
15404
  /**
15994
15405
  * Content for your component. If you want to pass non-string value please use dedicated slot `<template #content>...</template>`
15995
15406
  */
15996
- content: {
15997
- type: String,
15998
- default: undefined,
15999
- required: false,
16000
- },
15407
+ content: String,
16001
15408
  /**
16002
15409
  * Offset of the tooltip relative to its target.
16003
15410
  */
16004
15411
  offset: {
16005
15412
  type: Array,
16006
15413
  default: () => [0, 0],
16007
- required: false,
16008
15414
  },
16009
15415
  /**
16010
15416
  * 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.
@@ -16012,7 +15418,6 @@ const CTooltip = vue.defineComponent({
16012
15418
  placement: {
16013
15419
  type: String,
16014
15420
  default: 'top',
16015
- required: false,
16016
15421
  validator: (value) => {
16017
15422
  return ['top', 'right', 'bottom', 'left'].includes(value);
16018
15423
  },
@@ -16025,7 +15430,6 @@ const CTooltip = vue.defineComponent({
16025
15430
  trigger: {
16026
15431
  type: [String, Array],
16027
15432
  default: 'hover',
16028
- required: false,
16029
15433
  validator: (value) => {
16030
15434
  if (typeof value === 'string') {
16031
15435
  return ['click', 'focus', 'hover'].includes(value);
@@ -16136,26 +15540,17 @@ const CTooltipPlugin = {
16136
15540
  const CWidgetStatsA = vue.defineComponent({
16137
15541
  name: 'CWidgetStatsA',
16138
15542
  props: {
16139
- color: {
16140
- type: String,
16141
- default: undefined,
16142
- require: false,
16143
- },
15543
+ color: String,
16144
15544
  /**
16145
15545
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16146
15546
  */
16147
- title: {
16148
- type: String,
16149
- default: undefined,
16150
- require: false,
16151
- },
15547
+ title: String,
16152
15548
  /**
16153
15549
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16154
15550
  */
16155
15551
  value: {
16156
15552
  type: [Number, String],
16157
- default: 0,
16158
- require: false,
15553
+ default: 0
16159
15554
  },
16160
15555
  },
16161
15556
  /**
@@ -16244,22 +15639,18 @@ const CWidgetStatsB = vue.defineComponent({
16244
15639
  *
16245
15640
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16246
15641
  */
16247
- color: Color,
15642
+ color: Color$1,
16248
15643
  /**
16249
15644
  * Colors have been inverted from their default dark shade.
16250
15645
  */
16251
- inverse: {
16252
- type: Boolean,
16253
- default: undefined,
16254
- require: false,
16255
- },
15646
+ inverse: Boolean,
16256
15647
  progress: J({
16257
15648
  /**
16258
15649
  * Sets the color context of the progress bar to one of CoreUI’s themed colors
16259
15650
  *
16260
15651
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16261
15652
  */
16262
- color: Color,
15653
+ color: Color$1,
16263
15654
  /**
16264
15655
  * The percent to progress the ProgressBar (out of 100).
16265
15656
  */
@@ -16271,26 +15662,17 @@ const CWidgetStatsB = vue.defineComponent({
16271
15662
  /**
16272
15663
  * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
16273
15664
  */
16274
- text: {
16275
- type: String,
16276
- default: undefined,
16277
- require: false,
16278
- },
15665
+ text: String,
16279
15666
  /**
16280
15667
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16281
15668
  */
16282
- title: {
16283
- type: String,
16284
- default: undefined,
16285
- require: false,
16286
- },
15669
+ title: String,
16287
15670
  /**
16288
15671
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16289
15672
  */
16290
15673
  value: {
16291
15674
  type: [Number, String],
16292
- default: 0,
16293
- require: false,
15675
+ default: 0
16294
15676
  },
16295
15677
  },
16296
15678
  setup(props, { slots }) {
@@ -16341,22 +15723,18 @@ const CWidgetStatsC = vue.defineComponent({
16341
15723
  *
16342
15724
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16343
15725
  */
16344
- color: Color,
15726
+ color: Color$1,
16345
15727
  /**
16346
15728
  * Colors have been inverted from their default dark shade.
16347
15729
  */
16348
- inverse: {
16349
- type: Boolean,
16350
- default: undefined,
16351
- require: false,
16352
- },
15730
+ inverse: Boolean,
16353
15731
  progress: J({
16354
15732
  /**
16355
15733
  * Sets the color context of the progress bar to one of CoreUI’s themed colors
16356
15734
  *
16357
15735
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16358
15736
  */
16359
- color: Color,
15737
+ color: Color$1,
16360
15738
  /**
16361
15739
  * The percent to progress the ProgressBar (out of 100).
16362
15740
  */
@@ -16368,18 +15746,13 @@ const CWidgetStatsC = vue.defineComponent({
16368
15746
  /**
16369
15747
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16370
15748
  */
16371
- title: {
16372
- type: String,
16373
- default: undefined,
16374
- require: false,
16375
- },
15749
+ title: String,
16376
15750
  /**
16377
15751
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16378
15752
  */
16379
15753
  value: {
16380
15754
  type: [Number, String],
16381
- default: 0,
16382
- require: false,
15755
+ default: 0
16383
15756
  },
16384
15757
  },
16385
15758
  /**
@@ -16439,14 +15812,13 @@ const CWidgetStatsD = vue.defineComponent({
16439
15812
  *
16440
15813
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16441
15814
  */
16442
- color: Color,
15815
+ color: Color$1,
16443
15816
  /**
16444
15817
  * Values and titles for your component.
16445
15818
  */
16446
15819
  values: {
16447
15820
  type: Array,
16448
15821
  default: () => [],
16449
- require: false,
16450
15822
  },
16451
15823
  },
16452
15824
  /**
@@ -16495,18 +15867,13 @@ const CWidgetStatsE = vue.defineComponent({
16495
15867
  /**
16496
15868
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16497
15869
  */
16498
- title: {
16499
- type: String,
16500
- default: undefined,
16501
- require: false,
16502
- },
15870
+ title: String,
16503
15871
  /**
16504
15872
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16505
15873
  */
16506
15874
  value: {
16507
15875
  type: [Number, String],
16508
- default: 0,
16509
- require: false,
15876
+ default: 0
16510
15877
  },
16511
15878
  },
16512
15879
  /**
@@ -16544,7 +15911,7 @@ const CWidgetStatsF = vue.defineComponent({
16544
15911
  *
16545
15912
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
16546
15913
  */
16547
- color: Color,
15914
+ color: Color$1,
16548
15915
  /**
16549
15916
  * Set padding of your component.
16550
15917
  */
@@ -16555,26 +15922,17 @@ const CWidgetStatsF = vue.defineComponent({
16555
15922
  /**
16556
15923
  * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
16557
15924
  */
16558
- title: {
16559
- type: String,
16560
- default: undefined,
16561
- require: false,
16562
- },
15925
+ title: String,
16563
15926
  /**
16564
15927
  * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
16565
15928
  */
16566
- text: {
16567
- type: String,
16568
- default: undefined,
16569
- require: false,
16570
- },
15929
+ text: String,
16571
15930
  /**
16572
15931
  * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
16573
15932
  */
16574
15933
  value: {
16575
15934
  type: [Number, String],
16576
- default: 0,
16577
- require: false,
15935
+ default: 0
16578
15936
  },
16579
15937
  },
16580
15938
  /**