@coreui/vue-pro 5.0.0-rc.2 → 5.0.0

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 (225) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/components/accordion/index.js.map +1 -1
  3. package/dist/cjs/components/alert/index.js.map +1 -1
  4. package/dist/cjs/components/avatar/index.js.map +1 -1
  5. package/dist/cjs/components/backdrop/index.js.map +1 -1
  6. package/dist/cjs/components/badge/CBadge.d.ts +34 -14
  7. package/dist/cjs/components/badge/CBadge.js +15 -7
  8. package/dist/cjs/components/badge/CBadge.js.map +1 -1
  9. package/dist/cjs/components/badge/index.js.map +1 -1
  10. package/dist/cjs/components/breadcrumb/index.js.map +1 -1
  11. package/dist/cjs/components/button/index.js.map +1 -1
  12. package/dist/cjs/components/button-group/index.js.map +1 -1
  13. package/dist/cjs/components/calendar/CCalendar.d.ts +6 -6
  14. package/dist/cjs/components/calendar/CCalendar.js +3 -3
  15. package/dist/cjs/components/calendar/index.js.map +1 -1
  16. package/dist/cjs/components/callout/index.js.map +1 -1
  17. package/dist/cjs/components/card/CCard.d.ts +20 -0
  18. package/dist/cjs/components/card/CCard.js +8 -0
  19. package/dist/cjs/components/card/CCard.js.map +1 -1
  20. package/dist/cjs/components/card/index.js.map +1 -1
  21. package/dist/cjs/components/carousel/index.js.map +1 -1
  22. package/dist/cjs/components/close-button/index.js.map +1 -1
  23. package/dist/cjs/components/collapse/index.js.map +1 -1
  24. package/dist/cjs/components/conditional-teleport/CConditionalTeleport.d.ts +2 -2
  25. package/dist/cjs/components/conditional-teleport/CConditionalTeleport.js +1 -1
  26. package/dist/cjs/components/conditional-teleport/index.js.map +1 -1
  27. package/dist/cjs/components/date-picker/CDatePicker.d.ts +12 -12
  28. package/dist/cjs/components/date-picker/CDatePicker.js +6 -6
  29. package/dist/cjs/components/date-picker/index.js.map +1 -1
  30. package/dist/cjs/components/date-range-picker/CDateRangePicker.d.ts +12 -12
  31. package/dist/cjs/components/date-range-picker/CDateRangePicker.js +6 -6
  32. package/dist/cjs/components/date-range-picker/index.js.map +1 -1
  33. package/dist/cjs/components/dropdown/CDropdown.d.ts +4 -4
  34. package/dist/cjs/components/dropdown/CDropdown.js +2 -2
  35. package/dist/cjs/components/dropdown/CDropdownToggle.d.ts +2 -2
  36. package/dist/cjs/components/dropdown/CDropdownToggle.js +2 -2
  37. package/dist/cjs/components/dropdown/CDropdownToggle.js.map +1 -1
  38. package/dist/cjs/components/dropdown/index.js.map +1 -1
  39. package/dist/cjs/components/element-cover/index.js.map +1 -1
  40. package/dist/cjs/components/footer/index.js.map +1 -1
  41. package/dist/cjs/components/form/index.js.map +1 -1
  42. package/dist/cjs/components/grid/index.js.map +1 -1
  43. package/dist/cjs/components/header/index.js.map +1 -1
  44. package/dist/cjs/components/image/index.js.map +1 -1
  45. package/dist/cjs/components/link/index.js.map +1 -1
  46. package/dist/cjs/components/list-group/index.js.map +1 -1
  47. package/dist/cjs/components/loading-button/index.js.map +1 -1
  48. package/dist/cjs/components/modal/CModal.d.ts +2 -2
  49. package/dist/cjs/components/modal/CModal.js +1 -1
  50. package/dist/cjs/components/modal/index.js.map +1 -1
  51. package/dist/cjs/components/multi-select/index.js.map +1 -1
  52. package/dist/cjs/components/nav/CNavLink.js +2 -2
  53. package/dist/cjs/components/nav/CNavLink.js.map +1 -1
  54. package/dist/cjs/components/nav/index.js.map +1 -1
  55. package/dist/cjs/components/navbar/index.js.map +1 -1
  56. package/dist/cjs/components/offcanvas/index.js.map +1 -1
  57. package/dist/cjs/components/pagination/CPaginationItem.js +1 -1
  58. package/dist/cjs/components/pagination/CPaginationItem.js.map +1 -1
  59. package/dist/cjs/components/pagination/index.js.map +1 -1
  60. package/dist/cjs/components/picker/index.js.map +1 -1
  61. package/dist/cjs/components/placeholder/index.js.map +1 -1
  62. package/dist/cjs/components/popover/CPopover.d.ts +2 -2
  63. package/dist/cjs/components/popover/CPopover.js +1 -1
  64. package/dist/cjs/components/popover/index.js.map +1 -1
  65. package/dist/cjs/components/progress/CProgress.d.ts +2 -2
  66. package/dist/cjs/components/progress/CProgress.js +1 -1
  67. package/dist/cjs/components/progress/index.js.map +1 -1
  68. package/dist/cjs/components/sidebar/index.js.map +1 -1
  69. package/dist/cjs/components/smart-pagination/index.js.map +1 -1
  70. package/dist/cjs/components/smart-table/index.js.map +1 -1
  71. package/dist/cjs/components/spinner/index.js.map +1 -1
  72. package/dist/cjs/components/table/index.js.map +1 -1
  73. package/dist/cjs/components/tabs/index.js.map +1 -1
  74. package/dist/cjs/components/time-picker/CTimePicker.js +3 -3
  75. package/dist/cjs/components/time-picker/index.js.map +1 -1
  76. package/dist/cjs/components/toast/index.js.map +1 -1
  77. package/dist/cjs/components/tooltip/CTooltip.d.ts +2 -2
  78. package/dist/cjs/components/tooltip/CTooltip.js +1 -1
  79. package/dist/cjs/components/tooltip/index.js.map +1 -1
  80. package/dist/cjs/components/virtual-scroller/index.js.map +1 -1
  81. package/dist/cjs/components/widgets/index.js.map +1 -1
  82. package/dist/esm/components/accordion/index.js.map +1 -1
  83. package/dist/esm/components/alert/index.js.map +1 -1
  84. package/dist/esm/components/avatar/index.js.map +1 -1
  85. package/dist/esm/components/backdrop/index.js.map +1 -1
  86. package/dist/esm/components/badge/CBadge.d.ts +34 -14
  87. package/dist/esm/components/badge/CBadge.js +15 -7
  88. package/dist/esm/components/badge/CBadge.js.map +1 -1
  89. package/dist/esm/components/badge/index.js.map +1 -1
  90. package/dist/esm/components/breadcrumb/index.js.map +1 -1
  91. package/dist/esm/components/button/index.js.map +1 -1
  92. package/dist/esm/components/button-group/index.js.map +1 -1
  93. package/dist/esm/components/calendar/CCalendar.d.ts +6 -6
  94. package/dist/esm/components/calendar/CCalendar.js +3 -3
  95. package/dist/esm/components/calendar/index.js.map +1 -1
  96. package/dist/esm/components/callout/index.js.map +1 -1
  97. package/dist/esm/components/card/CCard.d.ts +20 -0
  98. package/dist/esm/components/card/CCard.js +8 -0
  99. package/dist/esm/components/card/CCard.js.map +1 -1
  100. package/dist/esm/components/card/index.js.map +1 -1
  101. package/dist/esm/components/carousel/index.js.map +1 -1
  102. package/dist/esm/components/close-button/index.js.map +1 -1
  103. package/dist/esm/components/collapse/index.js.map +1 -1
  104. package/dist/esm/components/conditional-teleport/CConditionalTeleport.d.ts +2 -2
  105. package/dist/esm/components/conditional-teleport/CConditionalTeleport.js +1 -1
  106. package/dist/esm/components/conditional-teleport/index.js.map +1 -1
  107. package/dist/esm/components/date-picker/CDatePicker.d.ts +12 -12
  108. package/dist/esm/components/date-picker/CDatePicker.js +6 -6
  109. package/dist/esm/components/date-picker/index.js.map +1 -1
  110. package/dist/esm/components/date-range-picker/CDateRangePicker.d.ts +12 -12
  111. package/dist/esm/components/date-range-picker/CDateRangePicker.js +6 -6
  112. package/dist/esm/components/date-range-picker/index.js.map +1 -1
  113. package/dist/esm/components/dropdown/CDropdown.d.ts +4 -4
  114. package/dist/esm/components/dropdown/CDropdown.js +2 -2
  115. package/dist/esm/components/dropdown/CDropdownToggle.d.ts +2 -2
  116. package/dist/esm/components/dropdown/CDropdownToggle.js +2 -2
  117. package/dist/esm/components/dropdown/CDropdownToggle.js.map +1 -1
  118. package/dist/esm/components/dropdown/index.js.map +1 -1
  119. package/dist/esm/components/element-cover/index.js.map +1 -1
  120. package/dist/esm/components/footer/index.js.map +1 -1
  121. package/dist/esm/components/form/index.js.map +1 -1
  122. package/dist/esm/components/grid/index.js.map +1 -1
  123. package/dist/esm/components/header/index.js.map +1 -1
  124. package/dist/esm/components/image/index.js.map +1 -1
  125. package/dist/esm/components/link/index.js.map +1 -1
  126. package/dist/esm/components/list-group/index.js.map +1 -1
  127. package/dist/esm/components/loading-button/index.js.map +1 -1
  128. package/dist/esm/components/modal/CModal.d.ts +2 -2
  129. package/dist/esm/components/modal/CModal.js +1 -1
  130. package/dist/esm/components/modal/index.js.map +1 -1
  131. package/dist/esm/components/multi-select/index.js.map +1 -1
  132. package/dist/esm/components/nav/CNavLink.js +2 -2
  133. package/dist/esm/components/nav/CNavLink.js.map +1 -1
  134. package/dist/esm/components/nav/index.js.map +1 -1
  135. package/dist/esm/components/navbar/index.js.map +1 -1
  136. package/dist/esm/components/offcanvas/index.js.map +1 -1
  137. package/dist/esm/components/pagination/CPaginationItem.js +1 -1
  138. package/dist/esm/components/pagination/CPaginationItem.js.map +1 -1
  139. package/dist/esm/components/pagination/index.js.map +1 -1
  140. package/dist/esm/components/picker/index.js.map +1 -1
  141. package/dist/esm/components/placeholder/index.js.map +1 -1
  142. package/dist/esm/components/popover/CPopover.d.ts +2 -2
  143. package/dist/esm/components/popover/CPopover.js +1 -1
  144. package/dist/esm/components/popover/index.js.map +1 -1
  145. package/dist/esm/components/progress/CProgress.d.ts +2 -2
  146. package/dist/esm/components/progress/CProgress.js +1 -1
  147. package/dist/esm/components/progress/index.js.map +1 -1
  148. package/dist/esm/components/sidebar/index.js.map +1 -1
  149. package/dist/esm/components/smart-pagination/index.js.map +1 -1
  150. package/dist/esm/components/smart-table/index.js.map +1 -1
  151. package/dist/esm/components/spinner/index.js.map +1 -1
  152. package/dist/esm/components/table/index.js.map +1 -1
  153. package/dist/esm/components/tabs/index.js.map +1 -1
  154. package/dist/esm/components/time-picker/CTimePicker.js +3 -3
  155. package/dist/esm/components/time-picker/index.js.map +1 -1
  156. package/dist/esm/components/toast/index.js.map +1 -1
  157. package/dist/esm/components/tooltip/CTooltip.d.ts +2 -2
  158. package/dist/esm/components/tooltip/CTooltip.js +1 -1
  159. package/dist/esm/components/tooltip/index.js.map +1 -1
  160. package/dist/esm/components/virtual-scroller/index.js.map +1 -1
  161. package/dist/esm/components/widgets/index.js.map +1 -1
  162. package/package.json +9 -9
  163. package/src/components/accordion/index.ts +5 -5
  164. package/src/components/alert/index.ts +3 -3
  165. package/src/components/avatar/index.ts +1 -1
  166. package/src/components/backdrop/index.ts +1 -1
  167. package/src/components/badge/CBadge.ts +15 -7
  168. package/src/components/badge/index.ts +1 -1
  169. package/src/components/breadcrumb/index.ts +2 -2
  170. package/src/components/button/index.ts +1 -1
  171. package/src/components/button-group/index.ts +2 -2
  172. package/src/components/calendar/CCalendar.ts +3 -3
  173. package/src/components/calendar/index.ts +1 -1
  174. package/src/components/callout/index.ts +1 -1
  175. package/src/components/card/CCard.ts +8 -0
  176. package/src/components/card/index.ts +11 -11
  177. package/src/components/carousel/index.ts +3 -3
  178. package/src/components/close-button/index.ts +1 -1
  179. package/src/components/collapse/index.ts +1 -1
  180. package/src/components/conditional-teleport/CConditionalTeleport.ts +1 -1
  181. package/src/components/conditional-teleport/index.ts +1 -1
  182. package/src/components/date-picker/CDatePicker.ts +6 -6
  183. package/src/components/date-picker/index.ts +1 -1
  184. package/src/components/date-range-picker/CDateRangePicker.ts +6 -6
  185. package/src/components/date-range-picker/index.ts +1 -1
  186. package/src/components/dropdown/CDropdown.ts +2 -2
  187. package/src/components/dropdown/CDropdownToggle.ts +2 -2
  188. package/src/components/dropdown/index.ts +6 -6
  189. package/src/components/element-cover/index.ts +1 -1
  190. package/src/components/footer/index.ts +1 -1
  191. package/src/components/form/index.ts +13 -13
  192. package/src/components/grid/index.ts +3 -3
  193. package/src/components/header/index.ts +6 -6
  194. package/src/components/image/index.ts +1 -1
  195. package/src/components/link/index.ts +1 -1
  196. package/src/components/list-group/index.ts +2 -2
  197. package/src/components/loading-button/index.ts +1 -1
  198. package/src/components/modal/CModal.ts +1 -1
  199. package/src/components/modal/index.ts +5 -5
  200. package/src/components/multi-select/index.ts +1 -1
  201. package/src/components/nav/CNavLink.ts +2 -2
  202. package/src/components/nav/index.ts +6 -6
  203. package/src/components/navbar/index.ts +5 -5
  204. package/src/components/offcanvas/index.ts +4 -4
  205. package/src/components/pagination/CPaginationItem.ts +1 -1
  206. package/src/components/pagination/index.ts +2 -2
  207. package/src/components/picker/index.ts +1 -1
  208. package/src/components/placeholder/index.ts +1 -1
  209. package/src/components/popover/CPopover.ts +1 -1
  210. package/src/components/popover/index.ts +1 -1
  211. package/src/components/progress/CProgress.ts +1 -1
  212. package/src/components/progress/index.ts +3 -3
  213. package/src/components/sidebar/index.ts +6 -6
  214. package/src/components/smart-pagination/index.ts +1 -1
  215. package/src/components/smart-table/index.ts +1 -1
  216. package/src/components/spinner/index.ts +1 -1
  217. package/src/components/table/index.ts +8 -8
  218. package/src/components/tabs/index.ts +2 -2
  219. package/src/components/time-picker/CTimePicker.ts +3 -3
  220. package/src/components/time-picker/index.ts +1 -1
  221. package/src/components/toast/index.ts +5 -5
  222. package/src/components/tooltip/CTooltip.ts +1 -1
  223. package/src/components/tooltip/index.ts +1 -1
  224. package/src/components/virtual-scroller/index.ts +1 -1
  225. package/src/components/widgets/index.ts +6 -6
@@ -21,7 +21,7 @@ const CTooltip = defineComponent({
21
21
  /**
22
22
  * Appends the vue tooltip to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
23
23
  *
24
- * @since v5.0.0-rc.2
24
+ * @since v5.0.0
25
25
  */
26
26
  container: {
27
27
  type: [Object, String],
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/tooltip/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,MAAM,cAAc,GAAG;AACrB,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;KACvC;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/tooltip/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,MAAM,cAAc,GAAG;AACrB,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAc,EAAE,QAAQ,CAAC,CAAA;KACjD;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/virtual-scroller/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,MAAM,sBAAsB,GAAG;AAC7B,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAA;KACvD;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/virtual-scroller/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,MAAM,sBAAsB,GAAG;AAC7B,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAc,EAAE,gBAAgB,CAAC,CAAA;KACjE;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../../src/components/widgets/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAQA,MAAM,mBAAmB,GAAG;AAC1B,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAChD,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAChD,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAChD,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAChD,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;QAChD,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;KACjD;;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../../../../src/components/widgets/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAQA,MAAM,mBAAmB,GAAG;AAC1B,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;QAC1D,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;QAC1D,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;QAC1D,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;QAC1D,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;QAC1D,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,IAAc,EAAE,aAAa,CAAC,CAAA;KAC3D;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coreui/vue-pro",
3
- "version": "5.0.0-rc.2",
3
+ "version": "5.0.0",
4
4
  "description": "UI Components Library for Vue.js",
5
5
  "keywords": [
6
6
  "vue",
@@ -41,24 +41,24 @@
41
41
  "test:update": "jest --coverage --updateSnapshot"
42
42
  },
43
43
  "dependencies": {
44
- "@coreui/coreui-pro": "^5.0.0-rc.2",
44
+ "@coreui/coreui-pro": "^5.0.0",
45
45
  "@popperjs/core": "^2.11.8"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@rollup/plugin-commonjs": "^25.0.7",
49
49
  "@rollup/plugin-node-resolve": "^15.2.3",
50
- "@rollup/plugin-typescript": "^11.1.5",
51
- "@types/jest": "^29.5.11",
52
- "@vue/test-utils": "^2.4.3",
50
+ "@rollup/plugin-typescript": "^11.1.6",
51
+ "@types/jest": "^29.5.12",
52
+ "@vue/test-utils": "^2.4.5",
53
53
  "@vue/vue3-jest": "29.2.6",
54
54
  "cross-env": "^7.0.3",
55
55
  "jest": "^29.7.0",
56
56
  "jest-environment-jsdom": "^29.7.0",
57
- "rollup": "^4.9.2",
57
+ "rollup": "^4.13.2",
58
58
  "rollup-plugin-vue": "^6.0.0",
59
- "ts-jest": "^29.1.1",
60
- "typescript": "^5.3.3",
61
- "vue": "^3.4.3",
59
+ "ts-jest": "^29.1.2",
60
+ "typescript": "^5.4.3",
61
+ "vue": "^3.4.21",
62
62
  "vue-types": "^5.1.1"
63
63
  },
64
64
  "peerDependencies": {
@@ -7,11 +7,11 @@ import { CAccordionItem } from './CAccordionItem'
7
7
 
8
8
  const CAccordionPlugin = {
9
9
  install: (app: App): void => {
10
- app.component(CAccordion.name, CAccordion)
11
- app.component(CAccordionBody.name, CAccordionBody)
12
- app.component(CAccordionButton.name, CAccordionButton)
13
- app.component(CAccordionHeader.name, CAccordionHeader)
14
- app.component(CAccordionItem.name, CAccordionItem)
10
+ app.component(CAccordion.name as string, CAccordion)
11
+ app.component(CAccordionBody.name as string, CAccordionBody)
12
+ app.component(CAccordionButton.name as string, CAccordionButton)
13
+ app.component(CAccordionHeader.name as string, CAccordionHeader)
14
+ app.component(CAccordionItem.name as string, CAccordionItem)
15
15
  },
16
16
  }
17
17
 
@@ -5,9 +5,9 @@ import { CAlertLink } from './CAlertLink'
5
5
 
6
6
  const CAlertPlugin = {
7
7
  install: (app: App): void => {
8
- app.component(CAlert.name, CAlert)
9
- app.component(CAlertHeading.name, CAlertHeading)
10
- app.component(CAlertLink.name, CAlertLink)
8
+ app.component(CAlert.name as string, CAlert)
9
+ app.component(CAlertHeading.name as string, CAlertHeading)
10
+ app.component(CAlertLink.name as string, CAlertLink)
11
11
  },
12
12
  }
13
13
 
@@ -3,7 +3,7 @@ import { CAvatar } from './CAvatar'
3
3
 
4
4
  const CAvatarPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CAvatar.name, CAvatar)
6
+ app.component(CAvatar.name as string, CAvatar)
7
7
  },
8
8
  }
9
9
 
@@ -3,7 +3,7 @@ import { CBackdrop } from './CBackdrop'
3
3
 
4
4
  const CBackdropPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CBackdrop.name, CBackdrop)
6
+ app.component(CBackdrop.name as string, CBackdrop)
7
7
  },
8
8
  }
9
9
 
@@ -5,12 +5,6 @@ import { Color, Shape, TextColor } from '../../props'
5
5
  const CBadge = defineComponent({
6
6
  name: 'CBadge',
7
7
  props: {
8
- /**
9
- * Sets the color context of the component to one of CoreUI’s themed colors.
10
- *
11
- * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
12
- */
13
- color: Color,
14
8
  /**
15
9
  * Component used for the root node. Either a string to use a HTML element or a component.
16
10
  */
@@ -18,6 +12,12 @@ const CBadge = defineComponent({
18
12
  type: String,
19
13
  default: 'span',
20
14
  },
15
+ /**
16
+ * Sets the color context of the component to one of CoreUI’s themed colors.
17
+ *
18
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
19
+ */
20
+ color: Color,
21
21
  /**
22
22
  * Position badge in one of the corners of a link or button.
23
23
  *
@@ -46,6 +46,13 @@ const CBadge = defineComponent({
46
46
  return value === 'sm'
47
47
  },
48
48
  },
49
+ /**
50
+ * Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
51
+ *
52
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
53
+ * @since 5.0.0
54
+ */
55
+ textBgColor: Color,
49
56
  /**
50
57
  * Sets the text color of the component to one of CoreUI’s themed colors.
51
58
  *
@@ -61,7 +68,7 @@ const CBadge = defineComponent({
61
68
  class: [
62
69
  'badge',
63
70
  {
64
- [`text-bg-${props.color}`]: props.color,
71
+ [`bg-${props.color}`]: props.color,
65
72
  'position-absolute translate-middle': props.position,
66
73
  'top-0': props.position && props.position.includes('top'),
67
74
  'top-100': props.position && props.position.includes('bottom'),
@@ -69,6 +76,7 @@ const CBadge = defineComponent({
69
76
  'start-0': props.position && props.position.includes('start'),
70
77
  [`badge-${props.size}`]: props.size,
71
78
  [`text-${props.textColor}`]: props.textColor,
79
+ [`text-bg-${props.textBgColor}`]: props.textBgColor,
72
80
  },
73
81
  props.shape,
74
82
  ],
@@ -3,7 +3,7 @@ import { CBadge } from './CBadge'
3
3
 
4
4
  const CBadgePlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CBadge.name, CBadge)
6
+ app.component(CBadge.name as string, CBadge)
7
7
  },
8
8
  }
9
9
 
@@ -4,8 +4,8 @@ import { CBreadcrumb } from './CBreadcrumb'
4
4
 
5
5
  const CBreadcrumbPlugin = {
6
6
  install: (app: App): void => {
7
- app.component(CBreadcrumb.name, CBreadcrumb)
8
- app.component(CBreadcrumbItem.name, CBreadcrumbItem)
7
+ app.component(CBreadcrumb.name as string, CBreadcrumb)
8
+ app.component(CBreadcrumbItem.name as string, CBreadcrumbItem)
9
9
  },
10
10
  }
11
11
 
@@ -3,7 +3,7 @@ import { CButton } from './CButton'
3
3
 
4
4
  const CButtonPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CButton.name, CButton)
6
+ app.component(CButton.name as string, CButton)
7
7
  },
8
8
  }
9
9
 
@@ -4,8 +4,8 @@ import { CButtonGroup } from './CButtonGroup'
4
4
 
5
5
  const CButtonGroupPlugin = {
6
6
  install: (app: App): void => {
7
- app.component(CButtonToolbar.name, CButtonToolbar)
8
- app.component(CButtonGroup.name, CButtonGroup)
7
+ app.component(CButtonToolbar.name as string, CButtonToolbar)
8
+ app.component(CButtonGroup.name as string, CButtonGroup)
9
9
  },
10
10
  }
11
11
 
@@ -124,7 +124,7 @@ const CCalendar = defineComponent({
124
124
  /**
125
125
  * Specify the type of date selection as day, week, month, or year.
126
126
  *
127
- * @since 5.0.0-rc.2
127
+ * @since 5.0.0
128
128
  */
129
129
  selectionType: {
130
130
  type: String as PropType<'day' | 'week' | 'month' | 'year'>,
@@ -143,7 +143,7 @@ const CCalendar = defineComponent({
143
143
  /**
144
144
  * Set whether to display week numbers in the calendar.
145
145
  *
146
- * @since 5.0.0-rc.2
146
+ * @since 5.0.0
147
147
  */
148
148
  showWeekNumber: Boolean,
149
149
  /**
@@ -174,7 +174,7 @@ const CCalendar = defineComponent({
174
174
  /**
175
175
  * Label displayed over week numbers in the calendar.
176
176
  *
177
- * @since 5.0.0-rc.2
177
+ * @since 5.0.0
178
178
  */
179
179
  weekNumbersLabel: String,
180
180
  },
@@ -3,7 +3,7 @@ import { CCalendar } from './CCalendar'
3
3
 
4
4
  const CCalendarPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CCalendar.name, CCalendar)
6
+ app.component(CCalendar.name as string, CCalendar)
7
7
  },
8
8
  }
9
9
 
@@ -3,7 +3,7 @@ import { CCallout } from './CCallout'
3
3
 
4
4
  const CCalloutPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CCallout.name, CCallout)
6
+ app.component(CCallout.name as string, CCallout)
7
7
  },
8
8
  }
9
9
 
@@ -11,6 +11,13 @@ const CCard = defineComponent({
11
11
  * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
12
12
  */
13
13
  color: Color,
14
+ /**
15
+ * Sets the component's color scheme to one of CoreUI's themed colors, ensuring the text color contrast adheres to the WCAG 4.5:1 contrast ratio standard for accessibility.
16
+ *
17
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
18
+ * @since 5.0.0
19
+ */
20
+ textBgColor: Color,
14
21
  /**
15
22
  * Sets the text color context of the component to one of CoreUI’s themed colors.
16
23
  *
@@ -28,6 +35,7 @@ const CCard = defineComponent({
28
35
  {
29
36
  [`bg-${props.color}`]: props.color,
30
37
  [`text-${props.textColor}`]: props.textColor,
38
+ [`text-bg-${props.textBgColor}`]: props.textBgColor,
31
39
  },
32
40
  ],
33
41
  },
@@ -13,17 +13,17 @@ import { CCardTitle } from './CCardTitle'
13
13
 
14
14
  const CCardPlugin = {
15
15
  install: (app: App): void => {
16
- app.component(CCard.name, CCard)
17
- app.component(CCardBody.name, CCardBody)
18
- app.component(CCardFooter.name, CCardFooter)
19
- app.component(CCardGroup.name, CCardGroup)
20
- app.component(CCardHeader.name, CCardHeader)
21
- app.component(CCardImage.name, CCardImage)
22
- app.component(CCardImageOverlay.name, CCardImageOverlay)
23
- app.component(CCardLink.name, CCardLink)
24
- app.component(CCardSubtitle.name, CCardSubtitle)
25
- app.component(CCardText.name, CCardText)
26
- app.component(CCardTitle.name, CCardTitle)
16
+ app.component(CCard.name as string, CCard)
17
+ app.component(CCardBody.name as string, CCardBody)
18
+ app.component(CCardFooter.name as string, CCardFooter)
19
+ app.component(CCardGroup.name as string, CCardGroup)
20
+ app.component(CCardHeader.name as string, CCardHeader)
21
+ app.component(CCardImage.name as string, CCardImage)
22
+ app.component(CCardImageOverlay.name as string, CCardImageOverlay)
23
+ app.component(CCardLink.name as string, CCardLink)
24
+ app.component(CCardSubtitle.name as string, CCardSubtitle)
25
+ app.component(CCardText.name as string, CCardText)
26
+ app.component(CCardTitle.name as string, CCardTitle)
27
27
  },
28
28
  }
29
29
 
@@ -5,9 +5,9 @@ import { CCarouselItem } from './CCarouselItem'
5
5
 
6
6
  const CCarouselPlugin = {
7
7
  install: (app: App): void => {
8
- app.component(CCarousel.name, CCarousel)
9
- app.component(CCarouselCaption.name, CCarouselCaption)
10
- app.component(CCarouselItem.name, CCarouselItem)
8
+ app.component(CCarousel.name as string, CCarousel)
9
+ app.component(CCarouselCaption.name as string, CCarouselCaption)
10
+ app.component(CCarouselItem.name as string, CCarouselItem)
11
11
  },
12
12
  }
13
13
 
@@ -3,7 +3,7 @@ import { CCloseButton } from './CCloseButton'
3
3
 
4
4
  const CCloseButtonPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CCloseButton.name, CCloseButton)
6
+ app.component(CCloseButton.name as string, CCloseButton)
7
7
  },
8
8
  }
9
9
 
@@ -3,7 +3,7 @@ import { CCollapse } from './CCollapse'
3
3
 
4
4
  const CCollapsePlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CCollapse.name, CCollapse)
6
+ app.component(CCollapse.name as string, CCollapse)
7
7
  },
8
8
  }
9
9
 
@@ -16,7 +16,7 @@ const CConditionalTeleport = defineComponent({
16
16
  /**
17
17
  * An HTML element or function that returns a single element, with `document.body` as the default.
18
18
  *
19
- * @since v5.0.0-rc.2
19
+ * @since v5.0.0
20
20
  */
21
21
  container: {
22
22
  type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
@@ -3,7 +3,7 @@ import { CConditionalTeleport } from './CConditionalTeleport'
3
3
 
4
4
  const CConditionalTeleportPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CConditionalTeleport.name, CConditionalTeleport)
6
+ app.component(CConditionalTeleport.name as string, CConditionalTeleport)
7
7
  },
8
8
  }
9
9
 
@@ -183,19 +183,19 @@ const CDatePicker = defineComponent({
183
183
  /**
184
184
  * Custom function to format the selected date into a string according to a custom format.
185
185
  *
186
- * @since v5.0.0-rc.2
186
+ * @since v5.0.0
187
187
  */
188
188
  inputDateFormat: Function,
189
189
  /**
190
190
  * Custom function to parse the input value into a valid Date object.
191
191
  *
192
- * @since v5.0.0-rc.2
192
+ * @since v5.0.0
193
193
  */
194
194
  inputDateParse: Function,
195
195
  /**
196
196
  * Defines the delay (in milliseconds) for the input field's onChange event.
197
197
  *
198
- * @since v5.0.0-rc.2
198
+ * @since v5.0.0
199
199
  */
200
200
  inputOnChangeDelay: {
201
201
  type: Number,
@@ -249,7 +249,7 @@ const CDatePicker = defineComponent({
249
249
  /**
250
250
  * Specify the type of date selection as day, week, month, or year.
251
251
  *
252
- * @since 5.0.0-rc.2
252
+ * @since 5.0.0
253
253
  */
254
254
  selectionType: {
255
255
  type: String as PropType<'day' | 'week' | 'month' | 'year'>,
@@ -268,7 +268,7 @@ const CDatePicker = defineComponent({
268
268
  /**
269
269
  * Set whether to display week numbers in the calendar.
270
270
  *
271
- * @since 5.0.0-rc.2
271
+ * @since 5.0.0
272
272
  */
273
273
  showWeekNumber: Boolean,
274
274
  /**
@@ -311,7 +311,7 @@ const CDatePicker = defineComponent({
311
311
  /**
312
312
  * Label displayed over week numbers in the calendar.
313
313
  *
314
- * @since 5.0.0-rc.2
314
+ * @since 5.0.0
315
315
  */
316
316
  weekNumbersLabel: String,
317
317
  },
@@ -3,7 +3,7 @@ import { CDatePicker } from './CDatePicker'
3
3
 
4
4
  const CDatePickerPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CDatePicker.name, CDatePicker)
6
+ app.component(CDatePicker.name as string, CDatePicker)
7
7
  },
8
8
  }
9
9
 
@@ -214,19 +214,19 @@ const CDateRangePicker = defineComponent({
214
214
  /**
215
215
  * Custom function to format the selected date into a string according to a custom format.
216
216
  *
217
- * @since v5.0.0-rc.2
217
+ * @since v5.0.0
218
218
  */
219
219
  inputDateFormat: Function,
220
220
  /**
221
221
  * Custom function to parse the input value into a valid Date object.
222
222
  *
223
- * @since v5.0.0-rc.2
223
+ * @since v5.0.0
224
224
  */
225
225
  inputDateParse: Function,
226
226
  /**
227
227
  * Defines the delay (in milliseconds) for the input field's onChange event.
228
228
  *
229
- * @since v5.0.0-rc.2
229
+ * @since v5.0.0
230
230
  */
231
231
  inputOnChangeDelay: {
232
232
  type: Number,
@@ -316,7 +316,7 @@ const CDateRangePicker = defineComponent({
316
316
  /**
317
317
  * Specify the type of date selection as day, week, month, or year.
318
318
  *
319
- * @since 5.0.0-rc.2
319
+ * @since 5.0.0
320
320
  */
321
321
  selectionType: {
322
322
  type: String as PropType<'day' | 'week' | 'month' | 'year'>,
@@ -335,7 +335,7 @@ const CDateRangePicker = defineComponent({
335
335
  /**
336
336
  * Set whether to display week numbers in the calendar.
337
337
  *
338
- * @since 5.0.0-rc.2
338
+ * @since 5.0.0
339
339
  */
340
340
  showWeekNumber: Boolean,
341
341
  /**
@@ -453,7 +453,7 @@ const CDateRangePicker = defineComponent({
453
453
  /**
454
454
  * Label displayed over week numbers in the calendar.
455
455
  *
456
- * @since 5.0.0-rc.2
456
+ * @since 5.0.0
457
457
  */
458
458
  weekNumbersLabel: String,
459
459
  },
@@ -3,7 +3,7 @@ import { CDateRangePicker } from './CDateRangePicker'
3
3
 
4
4
  const CDateRangePickerPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CDateRangePicker.name, CDateRangePicker)
6
+ app.component(CDateRangePicker.name as string, CDateRangePicker)
7
7
  },
8
8
  }
9
9
 
@@ -62,7 +62,7 @@ const CDropdown = defineComponent({
62
62
  /**
63
63
  * Appends the vue dropdown menu to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
64
64
  *
65
- * @since v5.0.0-rc.2
65
+ * @since v5.0.0
66
66
  */
67
67
  container: {
68
68
  type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
@@ -115,7 +115,7 @@ const CDropdown = defineComponent({
115
115
  /**
116
116
  * Generates dropdown menu using Teleport.
117
117
  *
118
- * @since v5.0.0-rc.2
118
+ * @since v5.0.0
119
119
  */
120
120
  teleport: {
121
121
  type: Boolean,
@@ -49,7 +49,7 @@ const CDropdownToggle = defineComponent({
49
49
  /**
50
50
  * If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
51
51
  *
52
- * @since v5.0.0-rc.2
52
+ * @since v5.0.0
53
53
  */
54
54
  navLink: {
55
55
  type: Boolean,
@@ -176,8 +176,8 @@ const CDropdownToggle = defineComponent({
176
176
  CButton,
177
177
  {
178
178
  ...togglerProps.value,
179
+ as: props.as,
179
180
  color: props.color,
180
- component: props.as,
181
181
  disabled: props.disabled,
182
182
  shape: props.shape,
183
183
  size: props.size,
@@ -8,12 +8,12 @@ import { CDropdownToggle } from './CDropdownToggle'
8
8
 
9
9
  const CDropdownPlugin = {
10
10
  install: (app: App): void => {
11
- app.component(CDropdown.name, CDropdown)
12
- app.component(CDropdownItem.name, CDropdownItem)
13
- app.component(CDropdownHeader.name, CDropdownHeader)
14
- app.component(CDropdownDivider.name, CDropdownDivider)
15
- app.component(CDropdownMenu.name, CDropdownMenu)
16
- app.component(CDropdownToggle.name, CDropdownToggle)
11
+ app.component(CDropdown.name as string, CDropdown)
12
+ app.component(CDropdownItem.name as string, CDropdownItem)
13
+ app.component(CDropdownHeader.name as string, CDropdownHeader)
14
+ app.component(CDropdownDivider.name as string, CDropdownDivider)
15
+ app.component(CDropdownMenu.name as string, CDropdownMenu)
16
+ app.component(CDropdownToggle.name as string, CDropdownToggle)
17
17
  },
18
18
  }
19
19
 
@@ -3,7 +3,7 @@ import { CElementCover } from './CElementCover'
3
3
 
4
4
  const CElementCoverPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CElementCover.name, CElementCover)
6
+ app.component(CElementCover.name as string, CElementCover)
7
7
  },
8
8
  }
9
9
 
@@ -3,7 +3,7 @@ import { CFooter } from './CFooter'
3
3
 
4
4
  const CFooterPlugin = {
5
5
  install: (app: App): void => {
6
- app.component(CFooter.name, CFooter)
6
+ app.component(CFooter.name as string, CFooter)
7
7
  },
8
8
  }
9
9
 
@@ -15,19 +15,19 @@ import { CInputGroupText } from './CInputGroupText'
15
15
 
16
16
  const CFormPlugin = {
17
17
  install: (app: App): void => {
18
- app.component(CForm.name, CForm)
19
- app.component(CFormCheck.name, CFormCheck)
20
- app.component(CFormFeedback.name, CFormFeedback)
21
- app.component(CFormFloating.name, CFormFloating)
22
- app.component(CFormInput.name, CFormInput)
23
- app.component(CFormLabel.name, CFormLabel)
24
- app.component(CFormRange.name, CFormRange)
25
- app.component(CFormSelect.name, CFormSelect)
26
- app.component(CFormSwitch.name, CFormSwitch)
27
- app.component(CFormText.name, CFormText)
28
- app.component(CFormTextarea.name, CFormTextarea)
29
- app.component(CInputGroup.name, CInputGroup)
30
- app.component(CInputGroupText.name, CInputGroupText)
18
+ app.component(CForm.name as string, CForm)
19
+ app.component(CFormCheck.name as string, CFormCheck)
20
+ app.component(CFormFeedback.name as string, CFormFeedback)
21
+ app.component(CFormFloating.name as string, CFormFloating)
22
+ app.component(CFormInput.name as string, CFormInput)
23
+ app.component(CFormLabel.name as string, CFormLabel)
24
+ app.component(CFormRange.name as string, CFormRange)
25
+ app.component(CFormSelect.name as string, CFormSelect)
26
+ app.component(CFormSwitch.name as string, CFormSwitch)
27
+ app.component(CFormText.name as string, CFormText)
28
+ app.component(CFormTextarea.name as string, CFormTextarea)
29
+ app.component(CInputGroup.name as string, CInputGroup)
30
+ app.component(CInputGroupText.name as string, CInputGroupText)
31
31
  },
32
32
  }
33
33
 
@@ -5,9 +5,9 @@ import { CRow } from './CRow'
5
5
 
6
6
  const CGridPlugin = {
7
7
  install: (app: App): void => {
8
- app.component(CCol.name, CCol)
9
- app.component(CContainer.name, CContainer)
10
- app.component(CRow.name, CRow)
8
+ app.component(CCol.name as string, CCol)
9
+ app.component(CContainer.name as string, CContainer)
10
+ app.component(CRow.name as string, CRow)
11
11
  },
12
12
  }
13
13
  export { CGridPlugin, CCol, CContainer, CRow }
@@ -8,12 +8,12 @@ import { CHeaderToggler } from './CHeaderToggler'
8
8
 
9
9
  const CHeaderPlugin = {
10
10
  install: (app: App): void => {
11
- app.component(CHeader.name, CHeader)
12
- app.component(CHeaderBrand.name, CHeaderBrand)
13
- app.component(CHeaderDivider.name, CHeaderDivider)
14
- app.component(CHeaderNav.name, CHeaderNav)
15
- app.component(CHeaderText.name, CHeaderText)
16
- app.component(CHeaderToggler.name, CHeaderToggler)
11
+ app.component(CHeader.name as string, CHeader)
12
+ app.component(CHeaderBrand.name as string, CHeaderBrand)
13
+ app.component(CHeaderDivider.name as string, CHeaderDivider)
14
+ app.component(CHeaderNav.name as string, CHeaderNav)
15
+ app.component(CHeaderText.name as string, CHeaderText)
16
+ app.component(CHeaderToggler.name as string, CHeaderToggler)
17
17
  },
18
18
  }
19
19