@prolibu-suite/cobalt-core 0.7.0 → 0.9.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 (664) hide show
  1. package/custom-elements.json +8275 -5147
  2. package/dist/cjs/co-accordion.cjs.entry.js +4 -4
  3. package/dist/cjs/co-action-bar.cjs.entry.js +89 -0
  4. package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
  5. package/dist/cjs/co-audio-player.cjs.entry.js +279 -0
  6. package/dist/cjs/co-autocomplete.cjs.entry.js +15 -6
  7. package/dist/cjs/co-avatar-group.cjs.entry.js +2 -2
  8. package/dist/cjs/co-avatar_2.cjs.entry.js +17 -6
  9. package/dist/cjs/co-badge.cjs.entry.js +2 -2
  10. package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
  11. package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
  12. package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
  13. package/dist/cjs/co-button-group.cjs.entry.js +3 -3
  14. package/dist/cjs/co-button.cjs.entry.js +13 -6
  15. package/dist/cjs/co-calendar-month_2.cjs.entry.js +1601 -0
  16. package/dist/cjs/co-calendar_3.cjs.entry.js +13 -13
  17. package/dist/cjs/co-card.cjs.entry.js +4 -4
  18. package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
  19. package/dist/cjs/co-carousel.cjs.entry.js +4 -4
  20. package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
  21. package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
  22. package/dist/cjs/co-chip_2.cjs.entry.js +109 -8
  23. package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
  24. package/dist/cjs/co-column-picker.cjs.entry.js +4 -4
  25. package/dist/cjs/co-combobox.cjs.entry.js +14 -6
  26. package/dist/cjs/co-command-search.cjs.entry.js +20 -6
  27. package/dist/cjs/co-data-table-pagination.cjs.entry.js +6 -6
  28. package/dist/cjs/co-data-table.cjs.entry.js +2 -2
  29. package/dist/cjs/co-date-picker.cjs.entry.js +3 -3
  30. package/dist/cjs/co-date-range-picker.cjs.entry.js +5 -5
  31. package/dist/cjs/co-date-range.cjs.entry.js +2 -2
  32. package/dist/cjs/co-date-time-picker.cjs.entry.js +409 -0
  33. package/dist/cjs/co-drive-card.cjs.entry.js +3 -3
  34. package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
  35. package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
  36. package/dist/cjs/co-event-calendar.cjs.entry.js +119 -18
  37. package/dist/cjs/co-event-popover.cjs.entry.js +132 -0
  38. package/dist/cjs/co-fab.cjs.entry.js +4 -4
  39. package/dist/cjs/co-file-field.cjs.entry.js +8 -8
  40. package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
  41. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  42. package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
  43. package/dist/cjs/co-icon.cjs.entry.js +3 -3
  44. package/dist/cjs/co-input.cjs.entry.js +3 -3
  45. package/dist/cjs/co-json-field.cjs.entry.js +6 -6
  46. package/dist/cjs/co-lightbox.cjs.entry.js +7 -7
  47. package/dist/cjs/co-list-footer.cjs.entry.js +3 -3
  48. package/dist/cjs/co-list-item.cjs.entry.js +6 -6
  49. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  50. package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
  51. package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
  52. package/dist/cjs/co-menu-item.cjs.entry.js +3 -3
  53. package/dist/cjs/co-menu.cjs.entry.js +2 -2
  54. package/dist/cjs/co-modal.cjs.entry.js +4 -4
  55. package/dist/cjs/co-navbar.cjs.entry.js +3 -3
  56. package/dist/cjs/co-number-field.cjs.entry.js +5 -5
  57. package/dist/cjs/co-overlay.cjs.entry.js +3 -3
  58. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  59. package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
  60. package/dist/cjs/co-popover.cjs.entry.js +33 -7
  61. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  62. package/dist/cjs/co-progress-circle.cjs.entry.js +4 -4
  63. package/dist/cjs/co-provider-logo_2.cjs.entry.js +72 -0
  64. package/dist/cjs/co-radio-group.cjs.entry.js +2 -2
  65. package/dist/cjs/co-radio.cjs.entry.js +5 -5
  66. package/dist/cjs/co-rating.cjs.entry.js +5 -5
  67. package/dist/cjs/co-ref-field.cjs.entry.js +22 -6
  68. package/dist/cjs/co-rich-text-editor.cjs.entry.js +5 -5
  69. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +2 -2
  70. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +1 -1
  71. package/dist/cjs/co-row.cjs.entry.js +3 -3
  72. package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
  73. package/dist/cjs/co-select.cjs.entry.js +4 -4
  74. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  75. package/dist/cjs/co-sidebar-nav.cjs.entry.js +14 -4
  76. package/dist/cjs/co-sidebar.cjs.entry.js +4 -4
  77. package/dist/cjs/co-slider.cjs.entry.js +4 -4
  78. package/dist/cjs/co-switch.cjs.entry.js +6 -6
  79. package/dist/cjs/co-tab-group.cjs.entry.js +20 -4
  80. package/dist/cjs/co-tab.cjs.entry.js +4 -4
  81. package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
  82. package/dist/cjs/co-textarea.cjs.entry.js +7 -7
  83. package/dist/cjs/co-toast.cjs.entry.js +35 -5
  84. package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
  85. package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
  86. package/dist/cjs/co-transfer-list.cjs.entry.js +4 -4
  87. package/dist/cjs/co-video.cjs.entry.js +4 -4
  88. package/dist/cjs/cobalt.cjs.js +2 -2
  89. package/dist/cjs/{dateI18n-BdiNAl0_.js → dateI18n-wblvKRq_.js} +21 -0
  90. package/dist/cjs/{dates-D8D-aS5d.js → dates-TQLHlFd2.js} +64 -13
  91. package/dist/cjs/{fieldChip-B_npd9rL.js → fieldChip-xNJPEFcS.js} +1 -1
  92. package/dist/cjs/{index-kBiXCEE7.js → index-DK-2Lzmf.js} +29 -13
  93. package/dist/cjs/loader.cjs.js +2 -2
  94. package/dist/cjs/{positioning-DwHW399W.js → positioning-DCj_AJ2T.js} +10 -0
  95. package/dist/cjs/{requiredMark-DuMIcKtt.js → requiredMark-C1xcrzSZ.js} +1 -1
  96. package/dist/cjs/time-LBHtzLHe.js +42 -0
  97. package/dist/cobalt/cobalt.css +1 -1
  98. package/dist/cobalt/cobalt.esm.js +1 -1
  99. package/dist/cobalt/p-09fe6ece.entry.js +1 -0
  100. package/dist/cobalt/p-12a0ae24.entry.js +1 -0
  101. package/dist/cobalt/p-142506d9.entry.js +1 -0
  102. package/dist/cobalt/{p-e4555fda.entry.js → p-19706923.entry.js} +1 -1
  103. package/dist/cobalt/p-19f5d480.entry.js +1 -0
  104. package/dist/cobalt/{p-B6JZk8fL.js → p-1EK-COrb.js} +1 -1
  105. package/dist/cobalt/p-1ddbc48b.entry.js +1 -0
  106. package/dist/cobalt/p-212ed2ba.entry.js +1 -0
  107. package/dist/cobalt/p-21832273.entry.js +1 -0
  108. package/dist/cobalt/p-24e93fcb.entry.js +1 -0
  109. package/dist/cobalt/{p-9211e794.entry.js → p-2a9ba4c8.entry.js} +1 -1
  110. package/dist/cobalt/p-2aeb1471.entry.js +1 -0
  111. package/dist/cobalt/p-2d0354cc.entry.js +1 -0
  112. package/dist/cobalt/p-30ec230e.entry.js +1 -0
  113. package/dist/cobalt/p-360714ae.entry.js +1 -0
  114. package/dist/cobalt/{p-3c681e3a.entry.js → p-37541725.entry.js} +1 -1
  115. package/dist/cobalt/p-39007b6c.entry.js +1 -0
  116. package/dist/cobalt/{p-2f6c7eb5.entry.js → p-39bce45f.entry.js} +1 -1
  117. package/dist/cobalt/{p-7f78e45c.entry.js → p-3ac316e0.entry.js} +1 -1
  118. package/dist/cobalt/{p-69723cc1.entry.js → p-3ced4269.entry.js} +1 -1
  119. package/dist/cobalt/{p-9994fcd8.entry.js → p-3ecc29fa.entry.js} +1 -1
  120. package/dist/cobalt/p-417ce874.entry.js +1 -0
  121. package/dist/cobalt/{p-28ab9cef.entry.js → p-43b1f8fb.entry.js} +1 -1
  122. package/dist/cobalt/p-49bde154.entry.js +1 -0
  123. package/dist/cobalt/{p-54f8c68c.entry.js → p-4e2379e4.entry.js} +1 -1
  124. package/dist/cobalt/p-5d7c26f2.entry.js +1 -0
  125. package/dist/cobalt/p-5ddebd10.entry.js +1 -0
  126. package/dist/cobalt/{p-bcd38114.entry.js → p-5f0f5d4b.entry.js} +1 -1
  127. package/dist/cobalt/{p-2661557c.entry.js → p-5f1b273b.entry.js} +1 -1
  128. package/dist/cobalt/p-60cb66f5.entry.js +1 -0
  129. package/dist/cobalt/{p-48fbf051.entry.js → p-6795a258.entry.js} +1 -1
  130. package/dist/cobalt/{p-5b84cf37.entry.js → p-6d532475.entry.js} +1 -1
  131. package/dist/cobalt/{p-0110108f.entry.js → p-724b9b54.entry.js} +1 -1
  132. package/dist/cobalt/{p-ceb85838.entry.js → p-7255ab63.entry.js} +1 -1
  133. package/dist/cobalt/p-7521ec0c.entry.js +1 -0
  134. package/dist/cobalt/{p-69ce2269.entry.js → p-76dff399.entry.js} +1 -1
  135. package/dist/cobalt/p-77593319.entry.js +1 -0
  136. package/dist/cobalt/p-7a2dab23.entry.js +1 -0
  137. package/dist/cobalt/p-7ec85887.entry.js +1 -0
  138. package/dist/cobalt/p-81866f71.entry.js +1 -0
  139. package/dist/cobalt/{p-c3004e1c.entry.js → p-8206c7c0.entry.js} +1 -1
  140. package/dist/cobalt/p-85a61e28.entry.js +1 -0
  141. package/dist/cobalt/p-87fc5aed.entry.js +1 -0
  142. package/dist/cobalt/p-8a93beb0.entry.js +1 -0
  143. package/dist/cobalt/p-8b7a4f6c.entry.js +1 -0
  144. package/dist/cobalt/{p-741cf623.entry.js → p-8e667eb6.entry.js} +1 -1
  145. package/dist/cobalt/{p-3b9be8a8.entry.js → p-94a8a119.entry.js} +1 -1
  146. package/dist/cobalt/p-9c2ce487.entry.js +1 -0
  147. package/dist/cobalt/p-9fe9e2fe.entry.js +1 -0
  148. package/dist/cobalt/p-BMdapAL8.js +1 -0
  149. package/dist/cobalt/p-BU7SQCje.js +1 -0
  150. package/dist/cobalt/p-CF8OB_TM.js +1 -0
  151. package/dist/cobalt/p-CQAYgqA6.js +1 -0
  152. package/dist/cobalt/p-CnNpoKwg.js +1 -0
  153. package/dist/cobalt/p-CrtiywTB.js +2 -0
  154. package/dist/cobalt/p-T4la7ly_.js +1 -0
  155. package/dist/cobalt/{p-2da09948.entry.js → p-a074f2ba.entry.js} +1 -1
  156. package/dist/cobalt/{p-0a294205.entry.js → p-a45e2c00.entry.js} +1 -1
  157. package/dist/cobalt/p-a530bec2.entry.js +1 -0
  158. package/dist/cobalt/p-a5d84c7a.entry.js +1 -0
  159. package/dist/cobalt/p-b004c3bb.entry.js +1 -0
  160. package/dist/cobalt/p-b1ef5107.entry.js +1 -0
  161. package/dist/cobalt/p-b28dc0fe.entry.js +1 -0
  162. package/dist/cobalt/{p-cdedaa82.entry.js → p-b64b0a07.entry.js} +1 -1
  163. package/dist/cobalt/p-b800e107.entry.js +1 -0
  164. package/dist/cobalt/p-b9ac1f25.entry.js +1 -0
  165. package/dist/cobalt/{p-202eadfc.entry.js → p-baeb5d55.entry.js} +1 -1
  166. package/dist/cobalt/{p-7178113f.entry.js → p-c31f5c1b.entry.js} +1 -1
  167. package/dist/cobalt/p-c3c2087e.entry.js +1 -0
  168. package/dist/cobalt/p-c42c505c.entry.js +1 -0
  169. package/dist/cobalt/p-c7a809c7.entry.js +1 -0
  170. package/dist/cobalt/{p-eec1c44c.entry.js → p-c8dba82f.entry.js} +1 -1
  171. package/dist/cobalt/p-cc72557d.entry.js +1 -0
  172. package/dist/cobalt/p-d21da71a.entry.js +1 -0
  173. package/dist/cobalt/{p-e1b468c1.entry.js → p-d3c765e3.entry.js} +1 -1
  174. package/dist/cobalt/p-d7b00e5f.entry.js +1 -0
  175. package/dist/cobalt/p-d85a751d.entry.js +1 -0
  176. package/dist/cobalt/{p-3af74ab8.entry.js → p-da546d08.entry.js} +1 -1
  177. package/dist/cobalt/p-debe0d79.entry.js +1 -0
  178. package/dist/cobalt/p-e054cb52.entry.js +1 -0
  179. package/dist/cobalt/p-e5296961.entry.js +1 -0
  180. package/dist/cobalt/p-e5b5ae89.entry.js +1 -0
  181. package/dist/cobalt/p-e612b43c.entry.js +1 -0
  182. package/dist/cobalt/{p-97875bde.entry.js → p-e6882ddd.entry.js} +1 -1
  183. package/dist/cobalt/p-e7e34852.entry.js +1 -0
  184. package/dist/cobalt/p-e99832a9.entry.js +1 -0
  185. package/dist/cobalt/{p-616e4286.entry.js → p-ed2ca588.entry.js} +1 -1
  186. package/dist/cobalt/p-f1284fcd.entry.js +1 -0
  187. package/dist/cobalt/{p-6b38e8fb.entry.js → p-f1731fe9.entry.js} +1 -1
  188. package/dist/cobalt/{p-ba5c6aa7.entry.js → p-f4cebc1f.entry.js} +1 -1
  189. package/dist/cobalt/p-f52f61d4.entry.js +1 -0
  190. package/dist/cobalt/{p-a252f8c5.entry.js → p-f83b48fd.entry.js} +1 -1
  191. package/dist/cobalt/p-fa5c25d6.entry.js +1 -0
  192. package/dist/cobalt/p-fd39f410.entry.js +1 -0
  193. package/dist/collection/collection-manifest.json +6 -0
  194. package/dist/collection/components/co-accordion/co-accordion.css +12 -4
  195. package/dist/collection/components/co-accordion/co-accordion.js +2 -2
  196. package/dist/collection/components/co-action-bar/co-action-bar.css +136 -0
  197. package/dist/collection/components/co-action-bar/co-action-bar.js +247 -0
  198. package/dist/collection/components/co-app-shell/co-app-shell.css +1 -1
  199. package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
  200. package/dist/collection/components/co-audio-player/co-audio-player.css +57 -0
  201. package/dist/collection/components/co-audio-player/co-audio-player.js +453 -0
  202. package/dist/collection/components/co-audio-player/co-audio-player.utils.js +44 -0
  203. package/dist/collection/components/co-autocomplete/co-autocomplete.css +2 -2
  204. package/dist/collection/components/co-autocomplete/co-autocomplete.js +14 -5
  205. package/dist/collection/components/co-avatar-group/co-avatar-group.css +1 -1
  206. package/dist/collection/components/co-badge/co-badge.js +1 -1
  207. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +4 -12
  208. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
  209. package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
  210. package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
  211. package/dist/collection/components/co-button/co-button.css +36 -1
  212. package/dist/collection/components/co-button/co-button.js +31 -5
  213. package/dist/collection/components/co-button-group/co-button-group.js +2 -2
  214. package/dist/collection/components/co-calendar/co-calendar.css +2 -2
  215. package/dist/collection/components/co-calendar/co-calendar.js +1 -1
  216. package/dist/collection/components/co-calendar-month/co-calendar-month.css +53 -4
  217. package/dist/collection/components/co-calendar-month/co-calendar-month.js +238 -55
  218. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +265 -0
  219. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +1305 -0
  220. package/dist/collection/components/co-card/co-card.css +1 -1
  221. package/dist/collection/components/co-card/co-card.js +2 -2
  222. package/dist/collection/components/co-carousel/co-carousel.js +2 -2
  223. package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
  224. package/dist/collection/components/co-checkbox/co-checkbox.css +85 -59
  225. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  226. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +1 -1
  227. package/dist/collection/components/co-chip/co-chip.css +2 -2
  228. package/dist/collection/components/co-chip/co-chip.js +2 -2
  229. package/dist/collection/components/co-color-picker/co-color-picker.css +3 -3
  230. package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
  231. package/dist/collection/components/co-column-picker/co-column-picker.css +8 -8
  232. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  233. package/dist/collection/components/co-combobox/co-combobox.css +2 -2
  234. package/dist/collection/components/co-combobox/co-combobox.js +13 -5
  235. package/dist/collection/components/co-command-search/co-command-search.css +13 -3
  236. package/dist/collection/components/co-command-search/co-command-search.js +18 -4
  237. package/dist/collection/components/co-data-table/co-data-table.css +9 -9
  238. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +5 -5
  239. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  240. package/dist/collection/components/co-date-field/co-date-field.css +2 -2
  241. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  242. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  243. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +2 -2
  244. package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +325 -0
  245. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +1079 -0
  246. package/dist/collection/components/co-drawer/co-drawer.css +48 -2
  247. package/dist/collection/components/co-drawer/co-drawer.js +1 -1
  248. package/dist/collection/components/co-drive-card/co-drive-card.css +5 -5
  249. package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
  250. package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
  251. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  252. package/dist/collection/components/co-event-calendar/co-event-calendar.css +21 -9
  253. package/dist/collection/components/co-event-calendar/co-event-calendar.js +342 -39
  254. package/dist/collection/components/co-event-popover/co-event-popover.css +25 -0
  255. package/dist/collection/components/co-event-popover/co-event-popover.js +326 -0
  256. package/dist/collection/components/co-fab/co-fab.css +18 -12
  257. package/dist/collection/components/co-fab/co-fab.js +2 -2
  258. package/dist/collection/components/co-file-field/co-file-field.css +5 -5
  259. package/dist/collection/components/co-file-field/co-file-field.js +5 -5
  260. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  261. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  262. package/dist/collection/components/co-icon/co-icon.js +2 -2
  263. package/dist/collection/components/co-icon-button/co-icon-button.css +10 -1
  264. package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
  265. package/dist/collection/components/co-input/co-input.css +3 -3
  266. package/dist/collection/components/co-json-field/co-json-field.css +1 -1
  267. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  268. package/dist/collection/components/co-lightbox/co-lightbox.css +4 -4
  269. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  270. package/dist/collection/components/co-list-footer/co-list-footer.css +1 -1
  271. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  272. package/dist/collection/components/co-list-item/co-list-item.css +1 -1
  273. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  274. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  275. package/dist/collection/components/co-menu/co-menu.js +1 -1
  276. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  277. package/dist/collection/components/co-menu-item/co-menu-item.css +22 -1
  278. package/dist/collection/components/co-menu-item/co-menu-item.js +20 -1
  279. package/dist/collection/components/co-modal/co-modal.css +2 -2
  280. package/dist/collection/components/co-modal/co-modal.js +2 -2
  281. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  282. package/dist/collection/components/co-number-field/co-number-field.css +3 -3
  283. package/dist/collection/components/co-number-field/co-number-field.js +2 -2
  284. package/dist/collection/components/co-option-list/co-option-list.css +20 -2
  285. package/dist/collection/components/co-option-list/co-option-list.js +141 -7
  286. package/dist/collection/components/co-option-list/optionListLogic.js +13 -0
  287. package/dist/collection/components/co-overlay/co-overlay.css +2 -2
  288. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  289. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  290. package/dist/collection/components/co-phone-field/co-phone-field.css +1 -1
  291. package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
  292. package/dist/collection/components/co-popover/co-popover.css +27 -0
  293. package/dist/collection/components/co-popover/co-popover.js +30 -4
  294. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  295. package/dist/collection/components/co-progress-circle/co-progress-circle.css +1 -1
  296. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  297. package/dist/collection/components/co-provider-logo/co-provider-logo.css +23 -0
  298. package/dist/collection/components/co-provider-logo/co-provider-logo.js +124 -0
  299. package/dist/collection/components/co-radio/co-radio.css +1 -1
  300. package/dist/collection/components/co-radio/co-radio.js +3 -3
  301. package/dist/collection/components/co-radio-group/co-radio-group.css +1 -1
  302. package/dist/collection/components/co-rating/co-rating.css +1 -1
  303. package/dist/collection/components/co-rating/co-rating.js +3 -3
  304. package/dist/collection/components/co-ref-field/co-ref-field.css +4 -4
  305. package/dist/collection/components/co-ref-field/co-ref-field.js +18 -2
  306. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +16 -5
  307. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
  308. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +20 -12
  309. package/dist/collection/components/co-row/co-row.js +2 -2
  310. package/dist/collection/components/co-select/co-select.css +4 -4
  311. package/dist/collection/components/co-select/co-select.js +1 -1
  312. package/dist/collection/components/co-separator/co-separator.js +1 -1
  313. package/dist/collection/components/co-sidebar/co-sidebar.css +1 -1
  314. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  315. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +33 -7
  316. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +12 -2
  317. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  318. package/dist/collection/components/co-slider/co-slider.css +9 -2
  319. package/dist/collection/components/co-slider/co-slider.js +2 -2
  320. package/dist/collection/components/co-switch/co-switch.css +5 -4
  321. package/dist/collection/components/co-switch/co-switch.js +3 -3
  322. package/dist/collection/components/co-tab/co-tab.css +2 -2
  323. package/dist/collection/components/co-tab/co-tab.js +2 -2
  324. package/dist/collection/components/co-tab-group/co-tab-group.css +25 -0
  325. package/dist/collection/components/co-tab-group/co-tab-group.js +18 -2
  326. package/dist/collection/components/co-tags-field/co-tags-field.css +3 -3
  327. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  328. package/dist/collection/components/co-textarea/co-textarea.css +2 -2
  329. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  330. package/dist/collection/components/co-toast/co-toast.css +63 -1
  331. package/dist/collection/components/co-toast/co-toast.js +38 -3
  332. package/dist/collection/components/co-toggle-button/co-toggle-button.css +1 -1
  333. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  334. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
  335. package/dist/collection/components/co-tooltip/co-tooltip.css +1 -1
  336. package/dist/collection/components/co-tooltip/co-tooltip.js +14 -3
  337. package/dist/collection/components/co-transfer-list/co-transfer-list.css +3 -3
  338. package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
  339. package/dist/collection/components/co-video/co-video.css +9 -9
  340. package/dist/collection/components/co-video/co-video.js +2 -2
  341. package/dist/collection/utils/dateI18n.js +21 -0
  342. package/dist/collection/utils/eventColor.js +52 -0
  343. package/dist/collection/utils/positioning.js +10 -0
  344. package/dist/components/co-accordion.js +1 -1
  345. package/dist/components/co-action-bar.d.ts +11 -0
  346. package/dist/components/co-action-bar.js +1 -0
  347. package/dist/components/co-app-shell.js +1 -1
  348. package/dist/components/co-audio-player.d.ts +11 -0
  349. package/dist/components/co-audio-player.js +1 -0
  350. package/dist/components/co-autocomplete.js +1 -1
  351. package/dist/components/co-avatar-group.js +1 -1
  352. package/dist/components/co-avatar.js +1 -1
  353. package/dist/components/co-badge.js +1 -1
  354. package/dist/components/co-bottom-sheet.js +1 -1
  355. package/dist/components/co-breadcrumb-item.js +1 -1
  356. package/dist/components/co-breadcrumb.js +1 -1
  357. package/dist/components/co-button-group.js +1 -1
  358. package/dist/components/co-button.js +1 -1
  359. package/dist/components/co-calendar-month.js +1 -1
  360. package/dist/components/co-calendar-timegrid.d.ts +11 -0
  361. package/dist/components/co-calendar-timegrid.js +1 -0
  362. package/dist/components/co-calendar.js +1 -1
  363. package/dist/components/co-card.js +1 -1
  364. package/dist/components/co-carousel-item.js +1 -1
  365. package/dist/components/co-carousel.js +1 -1
  366. package/dist/components/co-checkbox-group.js +1 -1
  367. package/dist/components/co-checkbox.js +1 -1
  368. package/dist/components/co-chip.js +1 -1
  369. package/dist/components/co-color-picker.js +1 -1
  370. package/dist/components/co-column-picker.js +1 -1
  371. package/dist/components/co-combobox.js +1 -1
  372. package/dist/components/co-command-search.js +1 -1
  373. package/dist/components/co-data-table-pagination.js +1 -1
  374. package/dist/components/co-data-table.js +1 -1
  375. package/dist/components/co-date-field.js +1 -1
  376. package/dist/components/co-date-picker.js +1 -1
  377. package/dist/components/co-date-range-picker.js +1 -1
  378. package/dist/components/co-date-range.js +1 -1
  379. package/dist/components/co-date-time-picker.d.ts +11 -0
  380. package/dist/components/co-date-time-picker.js +1 -0
  381. package/dist/components/co-drawer.js +1 -1
  382. package/dist/components/co-drive-card.js +1 -1
  383. package/dist/components/co-drop-zone.js +1 -1
  384. package/dist/components/co-empty-state.js +1 -1
  385. package/dist/components/co-event-calendar.js +1 -1
  386. package/dist/components/co-event-popover.d.ts +11 -0
  387. package/dist/components/co-event-popover.js +1 -0
  388. package/dist/components/co-fab.js +1 -1
  389. package/dist/components/co-file-field.js +1 -1
  390. package/dist/components/co-file-type-tile.js +1 -1
  391. package/dist/components/co-helper-text.js +1 -1
  392. package/dist/components/co-icon-button.js +1 -1
  393. package/dist/components/co-icon.js +1 -1
  394. package/dist/components/co-input.js +1 -1
  395. package/dist/components/co-json-field.js +1 -1
  396. package/dist/components/co-lightbox.js +1 -1
  397. package/dist/components/co-list-footer.js +1 -1
  398. package/dist/components/co-list-item.js +1 -1
  399. package/dist/components/co-media-thumb.js +1 -1
  400. package/dist/components/co-menu-divider.js +1 -1
  401. package/dist/components/co-menu-item.js +1 -1
  402. package/dist/components/co-menu.js +1 -1
  403. package/dist/components/co-modal.js +1 -1
  404. package/dist/components/co-navbar.js +1 -1
  405. package/dist/components/co-number-field.js +1 -1
  406. package/dist/components/co-option-list.js +1 -1
  407. package/dist/components/co-overlay.js +1 -1
  408. package/dist/components/co-page-header.js +1 -1
  409. package/dist/components/co-phone-field.js +1 -1
  410. package/dist/components/co-popover.js +1 -1
  411. package/dist/components/co-progress-bar.js +1 -1
  412. package/dist/components/co-progress-circle.js +1 -1
  413. package/dist/components/co-provider-logo.d.ts +11 -0
  414. package/dist/components/co-provider-logo.js +1 -0
  415. package/dist/components/co-radio-group.js +1 -1
  416. package/dist/components/co-radio.js +1 -1
  417. package/dist/components/co-rating.js +1 -1
  418. package/dist/components/co-ref-field.js +1 -1
  419. package/dist/components/co-rich-text-editor.js +1 -1
  420. package/dist/components/co-rich-text-toolbar.js +1 -1
  421. package/dist/components/co-row.js +1 -1
  422. package/dist/components/co-select.js +1 -1
  423. package/dist/components/co-separator.js +1 -1
  424. package/dist/components/co-sidebar-nav.js +1 -1
  425. package/dist/components/co-sidebar.js +1 -1
  426. package/dist/components/co-skeleton.js +1 -1
  427. package/dist/components/co-slider.js +1 -1
  428. package/dist/components/co-switch.js +1 -1
  429. package/dist/components/co-tab-group.js +1 -1
  430. package/dist/components/co-tab.js +1 -1
  431. package/dist/components/co-tags-field.js +1 -1
  432. package/dist/components/co-textarea.js +1 -1
  433. package/dist/components/co-toast.js +1 -1
  434. package/dist/components/co-toggle-button-group.js +1 -1
  435. package/dist/components/co-toggle-button.js +1 -1
  436. package/dist/components/co-tooltip.js +1 -1
  437. package/dist/components/co-transfer-list.js +1 -1
  438. package/dist/components/co-video.js +1 -1
  439. package/dist/components/index.js +1 -1
  440. package/dist/components/p-2zy1K6zg.js +1 -0
  441. package/dist/components/{p-B3U63yZw.js → p-BCnjq3jN.js} +1 -1
  442. package/dist/components/p-BMdapAL8.js +1 -0
  443. package/dist/components/{p-T0UfY6rA.js → p-BUE9mBqk.js} +1 -1
  444. package/dist/components/p-Bh2__nEw.js +1 -0
  445. package/dist/components/{p-Cd3inFSL.js → p-BiefJDu3.js} +1 -1
  446. package/dist/components/{p-Bul6EdDX.js → p-BlvsTlsS.js} +1 -1
  447. package/dist/components/p-Bsll5Ofy.js +1 -0
  448. package/dist/components/p-C-5cLeKr.js +1 -0
  449. package/dist/components/p-CF8OB_TM.js +1 -0
  450. package/dist/components/p-CJNo2JDc.js +1 -0
  451. package/dist/components/p-CKKBJaNB.js +1 -0
  452. package/dist/components/p-CL4dicvk.js +1 -0
  453. package/dist/components/{p-DfpOEXHC.js → p-CYv2ig6I.js} +1 -1
  454. package/dist/components/p-Ce0ZJcks.js +1 -0
  455. package/dist/components/p-Ch837Ggl.js +1 -0
  456. package/dist/components/p-CkQqqKRp.js +1 -0
  457. package/dist/components/p-CmxZEGYq.js +1 -0
  458. package/dist/components/p-CnNpoKwg.js +1 -0
  459. package/dist/components/p-Cv5yuGLz.js +1 -0
  460. package/dist/components/{p-oV_1MoAN.js → p-DAaKsGqj.js} +1 -1
  461. package/dist/components/p-DFT1qsVu.js +1 -0
  462. package/dist/components/p-DTJsO_Eg.js +1 -0
  463. package/dist/components/p-Dxa7c4Ap.js +1 -0
  464. package/dist/components/p-_YYd42XM.js +1 -0
  465. package/dist/components/p-e5KibEs8.js +1 -0
  466. package/dist/components/p-re2gJwnQ.js +1 -0
  467. package/dist/components/p-ushHimOL.js +1 -0
  468. package/dist/components/p-xvWmYN3W.js +1 -0
  469. package/dist/esm/co-accordion.entry.js +4 -4
  470. package/dist/esm/co-action-bar.entry.js +87 -0
  471. package/dist/esm/co-app-shell.entry.js +4 -4
  472. package/dist/esm/co-audio-player.entry.js +277 -0
  473. package/dist/esm/co-autocomplete.entry.js +15 -6
  474. package/dist/esm/co-avatar-group.entry.js +2 -2
  475. package/dist/esm/co-avatar_2.entry.js +17 -6
  476. package/dist/esm/co-badge.entry.js +2 -2
  477. package/dist/esm/co-bottom-sheet.entry.js +5 -5
  478. package/dist/esm/co-breadcrumb-item.entry.js +3 -3
  479. package/dist/esm/co-breadcrumb.entry.js +2 -2
  480. package/dist/esm/co-button-group.entry.js +3 -3
  481. package/dist/esm/co-button.entry.js +13 -6
  482. package/dist/esm/co-calendar-month_2.entry.js +1598 -0
  483. package/dist/esm/co-calendar_3.entry.js +13 -13
  484. package/dist/esm/co-card.entry.js +4 -4
  485. package/dist/esm/co-carousel-item.entry.js +2 -2
  486. package/dist/esm/co-carousel.entry.js +4 -4
  487. package/dist/esm/co-checkbox-group.entry.js +2 -2
  488. package/dist/esm/co-checkbox.entry.js +5 -5
  489. package/dist/esm/co-chip_2.entry.js +109 -8
  490. package/dist/esm/co-color-picker.entry.js +5 -5
  491. package/dist/esm/co-column-picker.entry.js +4 -4
  492. package/dist/esm/co-combobox.entry.js +14 -6
  493. package/dist/esm/co-command-search.entry.js +20 -6
  494. package/dist/esm/co-data-table-pagination.entry.js +6 -6
  495. package/dist/esm/co-data-table.entry.js +2 -2
  496. package/dist/esm/co-date-picker.entry.js +3 -3
  497. package/dist/esm/co-date-range-picker.entry.js +5 -5
  498. package/dist/esm/co-date-range.entry.js +2 -2
  499. package/dist/esm/co-date-time-picker.entry.js +407 -0
  500. package/dist/esm/co-drive-card.entry.js +3 -3
  501. package/dist/esm/co-drop-zone.entry.js +2 -2
  502. package/dist/esm/co-empty-state.entry.js +3 -3
  503. package/dist/esm/co-event-calendar.entry.js +120 -19
  504. package/dist/esm/co-event-popover.entry.js +130 -0
  505. package/dist/esm/co-fab.entry.js +4 -4
  506. package/dist/esm/co-file-field.entry.js +8 -8
  507. package/dist/esm/co-file-type-tile.entry.js +3 -3
  508. package/dist/esm/co-helper-text.entry.js +3 -3
  509. package/dist/esm/co-icon-button.entry.js +3 -3
  510. package/dist/esm/co-icon.entry.js +3 -3
  511. package/dist/esm/co-input.entry.js +3 -3
  512. package/dist/esm/co-json-field.entry.js +6 -6
  513. package/dist/esm/co-lightbox.entry.js +7 -7
  514. package/dist/esm/co-list-footer.entry.js +3 -3
  515. package/dist/esm/co-list-item.entry.js +6 -6
  516. package/dist/esm/co-loader.entry.js +1 -1
  517. package/dist/esm/co-media-thumb.entry.js +3 -3
  518. package/dist/esm/co-menu-divider.entry.js +2 -2
  519. package/dist/esm/co-menu-item.entry.js +3 -3
  520. package/dist/esm/co-menu.entry.js +2 -2
  521. package/dist/esm/co-modal.entry.js +4 -4
  522. package/dist/esm/co-navbar.entry.js +3 -3
  523. package/dist/esm/co-number-field.entry.js +5 -5
  524. package/dist/esm/co-overlay.entry.js +3 -3
  525. package/dist/esm/co-page-header.entry.js +2 -2
  526. package/dist/esm/co-phone-field.entry.js +4 -4
  527. package/dist/esm/co-popover.entry.js +33 -7
  528. package/dist/esm/co-progress-bar.entry.js +3 -3
  529. package/dist/esm/co-progress-circle.entry.js +4 -4
  530. package/dist/esm/co-provider-logo_2.entry.js +69 -0
  531. package/dist/esm/co-radio-group.entry.js +2 -2
  532. package/dist/esm/co-radio.entry.js +5 -5
  533. package/dist/esm/co-rating.entry.js +5 -5
  534. package/dist/esm/co-ref-field.entry.js +22 -6
  535. package/dist/esm/co-rich-text-editor.entry.js +5 -5
  536. package/dist/esm/co-rich-text-toolbar.entry.js +2 -2
  537. package/dist/esm/co-rich-text-viewer.entry.js +1 -1
  538. package/dist/esm/co-row.entry.js +3 -3
  539. package/dist/esm/co-segmented-bar.entry.js +1 -1
  540. package/dist/esm/co-select.entry.js +4 -4
  541. package/dist/esm/co-separator.entry.js +2 -2
  542. package/dist/esm/co-sidebar-nav.entry.js +14 -4
  543. package/dist/esm/co-sidebar.entry.js +4 -4
  544. package/dist/esm/co-slider.entry.js +4 -4
  545. package/dist/esm/co-switch.entry.js +6 -6
  546. package/dist/esm/co-tab-group.entry.js +20 -4
  547. package/dist/esm/co-tab.entry.js +4 -4
  548. package/dist/esm/co-tags-field.entry.js +9 -9
  549. package/dist/esm/co-textarea.entry.js +7 -7
  550. package/dist/esm/co-toast.entry.js +35 -5
  551. package/dist/esm/co-toggle-button-group.entry.js +3 -3
  552. package/dist/esm/co-toggle-button.entry.js +4 -4
  553. package/dist/esm/co-transfer-list.entry.js +4 -4
  554. package/dist/esm/co-video.entry.js +4 -4
  555. package/dist/esm/cobalt.js +3 -3
  556. package/dist/esm/{dateI18n-C1DCLOEl.js → dateI18n-CnNpoKwg.js} +21 -0
  557. package/dist/esm/{dates-tPYikBRJ.js → dates-BU7SQCje.js} +64 -13
  558. package/dist/esm/{fieldChip-Bb8YIN0J.js → fieldChip-BZDUy9Z-.js} +1 -1
  559. package/dist/esm/{index-BCEz3S-z.js → index-CrtiywTB.js} +29 -13
  560. package/dist/esm/loader.js +3 -3
  561. package/dist/esm/{positioning-C2mZ7x_Y.js → positioning-BMdapAL8.js} +10 -0
  562. package/dist/esm/{requiredMark-D7kAMXHM.js → requiredMark-DCD-ZA51.js} +1 -1
  563. package/dist/esm/time-CF8OB_TM.js +37 -0
  564. package/dist/esm/{tz-B6JZk8fL.js → tz-1EK-COrb.js} +1 -1
  565. package/dist/types/components/co-action-bar/co-action-bar.d.ts +66 -0
  566. package/dist/types/components/co-audio-player/co-audio-player.d.ts +62 -0
  567. package/dist/types/components/co-audio-player/co-audio-player.utils.d.ts +11 -0
  568. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +1 -1
  569. package/dist/types/components/co-button/co-button.d.ts +18 -1
  570. package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +33 -1
  571. package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +178 -0
  572. package/dist/types/components/co-combobox/co-combobox.d.ts +1 -1
  573. package/dist/types/components/co-command-search/co-command-search.d.ts +7 -0
  574. package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +131 -0
  575. package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +61 -8
  576. package/dist/types/components/co-event-popover/co-event-popover.d.ts +45 -0
  577. package/dist/types/components/co-menu-item/co-menu-item.d.ts +3 -0
  578. package/dist/types/components/co-option-list/co-option-list.d.ts +28 -1
  579. package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
  580. package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +17 -0
  581. package/dist/types/components/co-ref-field/co-ref-field.d.ts +5 -0
  582. package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -0
  583. package/dist/types/components/co-toast/co-toast.d.ts +19 -0
  584. package/dist/types/components/co-tooltip/co-tooltip.d.ts +6 -0
  585. package/dist/types/components.d.ts +1251 -82
  586. package/dist/types/utils/dateI18n.d.ts +7 -0
  587. package/dist/types/utils/eventColor.d.ts +20 -0
  588. package/package.json +3 -3
  589. package/dist/cjs/co-calendar-month.cjs.entry.js +0 -381
  590. package/dist/cjs/co-skeleton.cjs.entry.js +0 -26
  591. package/dist/cobalt/p-037cc571.entry.js +0 -1
  592. package/dist/cobalt/p-080f62e4.entry.js +0 -1
  593. package/dist/cobalt/p-0b7359bb.entry.js +0 -1
  594. package/dist/cobalt/p-0b92167a.entry.js +0 -1
  595. package/dist/cobalt/p-0bc5a962.entry.js +0 -1
  596. package/dist/cobalt/p-264508ae.entry.js +0 -1
  597. package/dist/cobalt/p-27dce0ac.entry.js +0 -1
  598. package/dist/cobalt/p-30c80e3a.entry.js +0 -1
  599. package/dist/cobalt/p-331a0108.entry.js +0 -1
  600. package/dist/cobalt/p-36ad3a96.entry.js +0 -1
  601. package/dist/cobalt/p-3ecbbe93.entry.js +0 -1
  602. package/dist/cobalt/p-3f1030fb.entry.js +0 -1
  603. package/dist/cobalt/p-3f7215e7.entry.js +0 -1
  604. package/dist/cobalt/p-431cec34.entry.js +0 -1
  605. package/dist/cobalt/p-4f615cbd.entry.js +0 -1
  606. package/dist/cobalt/p-5319ac3f.entry.js +0 -1
  607. package/dist/cobalt/p-532baca4.entry.js +0 -1
  608. package/dist/cobalt/p-53a276a8.entry.js +0 -1
  609. package/dist/cobalt/p-543cc00d.entry.js +0 -1
  610. package/dist/cobalt/p-54857f78.entry.js +0 -1
  611. package/dist/cobalt/p-585c132d.entry.js +0 -1
  612. package/dist/cobalt/p-59b114ab.entry.js +0 -1
  613. package/dist/cobalt/p-5c250889.entry.js +0 -1
  614. package/dist/cobalt/p-5d0510a5.entry.js +0 -1
  615. package/dist/cobalt/p-5e246304.entry.js +0 -1
  616. package/dist/cobalt/p-64115d66.entry.js +0 -1
  617. package/dist/cobalt/p-75515a8e.entry.js +0 -1
  618. package/dist/cobalt/p-8155d781.entry.js +0 -1
  619. package/dist/cobalt/p-8fe5b07e.entry.js +0 -1
  620. package/dist/cobalt/p-9824c478.entry.js +0 -1
  621. package/dist/cobalt/p-9bf42bf4.entry.js +0 -1
  622. package/dist/cobalt/p-9fab9c1f.entry.js +0 -1
  623. package/dist/cobalt/p-BCEz3S-z.js +0 -2
  624. package/dist/cobalt/p-C-d15gih.js +0 -1
  625. package/dist/cobalt/p-C1DCLOEl.js +0 -1
  626. package/dist/cobalt/p-C2mZ7x_Y.js +0 -1
  627. package/dist/cobalt/p-D5gr2ent.js +0 -1
  628. package/dist/cobalt/p-b06af5c6.entry.js +0 -1
  629. package/dist/cobalt/p-b87a2e7a.entry.js +0 -1
  630. package/dist/cobalt/p-bb00ae4a.entry.js +0 -1
  631. package/dist/cobalt/p-c237add6.entry.js +0 -1
  632. package/dist/cobalt/p-c589ae25.entry.js +0 -1
  633. package/dist/cobalt/p-c635417b.entry.js +0 -1
  634. package/dist/cobalt/p-c7d9ff39.entry.js +0 -1
  635. package/dist/cobalt/p-c9528a5f.entry.js +0 -1
  636. package/dist/cobalt/p-cbac0a11.entry.js +0 -1
  637. package/dist/cobalt/p-cd28aa6d.entry.js +0 -1
  638. package/dist/cobalt/p-d3a1a604.entry.js +0 -1
  639. package/dist/cobalt/p-d71b800a.entry.js +0 -1
  640. package/dist/cobalt/p-df752f6e.entry.js +0 -1
  641. package/dist/cobalt/p-ec9dd3a3.entry.js +0 -1
  642. package/dist/cobalt/p-eeed80ac.entry.js +0 -1
  643. package/dist/cobalt/p-f0a98453.entry.js +0 -1
  644. package/dist/cobalt/p-ff581807.entry.js +0 -1
  645. package/dist/cobalt/p-fffeb610.entry.js +0 -1
  646. package/dist/cobalt/p-tPYikBRJ.js +0 -1
  647. package/dist/components/p-9aNhJfTT.js +0 -1
  648. package/dist/components/p-B0b9Etx4.js +0 -1
  649. package/dist/components/p-B7Yv00g9.js +0 -1
  650. package/dist/components/p-BTa6ss5i.js +0 -1
  651. package/dist/components/p-BtpRnpaF.js +0 -1
  652. package/dist/components/p-Bzg5FPSA.js +0 -1
  653. package/dist/components/p-C1DCLOEl.js +0 -1
  654. package/dist/components/p-C2mZ7x_Y.js +0 -1
  655. package/dist/components/p-CQ-8domm.js +0 -1
  656. package/dist/components/p-CVeEoHr7.js +0 -1
  657. package/dist/components/p-CYi6V_Ss.js +0 -1
  658. package/dist/components/p-CmCsm4L-.js +0 -1
  659. package/dist/components/p-CuQjKAf5.js +0 -1
  660. package/dist/components/p-CyYF8IJE.js +0 -1
  661. package/dist/components/p-DKvTqEaf.js +0 -1
  662. package/dist/components/p-DwwxS5bY.js +0 -1
  663. package/dist/esm/co-calendar-month.entry.js +0 -379
  664. package/dist/esm/co-skeleton.entry.js +0 -24
@@ -0,0 +1,453 @@
1
+ import { h } from "@stencil/core";
2
+ import { formatTime, resamplePeaks, fallbackPeaks, scrubFraction } from "./co-audio-player.utils";
3
+ export class CoAudioPlayer {
4
+ constructor() {
5
+ /** Compact variant: narrower, hides the download button. */
6
+ this.compact = false;
7
+ /** Fallback bar count used before the container width is measured. Once
8
+ * measured, the real bar count is derived from the width via `barDensity`
9
+ * (V1 parity: a dense, detail-rich waveform rather than a fixed count). */
10
+ this.bars = 64;
11
+ /** Pixels per waveform bar (bar + gap). Lower = denser/more detailed, like V1
12
+ * (`SkAudioPlayer` used 3). The measured bar count = floor(width / barDensity). */
13
+ this.barDensity = 3;
14
+ /** Passthrough to the underlying <audio> preload. */
15
+ this.preload = 'metadata';
16
+ /** Filename for the download button. */
17
+ this.downloadFilename = 'audio';
18
+ /** Hide the download button even in full mode. */
19
+ this.noDownload = false;
20
+ this.isPlaying = false;
21
+ this.isLoading = false;
22
+ this.hasError = false;
23
+ this.currentTime = 0;
24
+ this.duration = 0;
25
+ this.peaks = [];
26
+ /** Measured wave width (px); 0 until the ResizeObserver reports it. */
27
+ this.containerWidth = 0;
28
+ /** Current playback rate; the speed control cycles through `SPEEDS`. */
29
+ this.playbackRate = 1;
30
+ // Decoded mono PCM, kept so bars can be re-resampled on resize without re-fetching.
31
+ this.rawChannelData = null;
32
+ this.onMeta = () => { var _a; this.duration = ((_a = this.audio) === null || _a === void 0 ? void 0 : _a.duration) || 0; };
33
+ this.onCanPlay = () => { this.isLoading = false; };
34
+ this.onWaiting = () => { this.isLoading = true; };
35
+ this.onTime = () => { var _a; this.currentTime = ((_a = this.audio) === null || _a === void 0 ? void 0 : _a.currentTime) || 0; };
36
+ this.onEnded = () => { this.isPlaying = false; this.currentTime = 0; this.coEnded.emit(); };
37
+ this.onErr = (e) => { this.isLoading = false; this.hasError = true; this.coError.emit(e); };
38
+ this.toggle = () => {
39
+ if (!this.audio || this.hasError)
40
+ return;
41
+ if (this.isPlaying) {
42
+ this.audio.pause();
43
+ this.isPlaying = false;
44
+ this.coPause.emit();
45
+ }
46
+ else {
47
+ this.audio.play().then(() => { this.isPlaying = true; this.coPlay.emit(); }).catch(() => { });
48
+ }
49
+ };
50
+ // Playback-speed cycle (V1 SkAudioPlayer parity): the label shows the current
51
+ // rate and clicking it advances to the next.
52
+ this.SPEEDS = [1, 1.5, 2, 0.5];
53
+ this.cycleSpeed = () => {
54
+ const i = this.SPEEDS.indexOf(this.playbackRate);
55
+ this.playbackRate = this.SPEEDS[(i + 1) % this.SPEEDS.length];
56
+ if (this.audio)
57
+ this.audio.playbackRate = this.playbackRate;
58
+ };
59
+ this.seekAt = (clientX) => {
60
+ if (!this.audio || !this.waveEl || !this.duration)
61
+ return;
62
+ const frac = scrubFraction(clientX, this.waveEl.getBoundingClientRect());
63
+ this.audio.currentTime = frac * this.duration;
64
+ this.currentTime = this.audio.currentTime;
65
+ };
66
+ this.onWaveKey = (e) => {
67
+ if (e.key === ' ' || e.key === 'Enter') {
68
+ e.preventDefault();
69
+ this.toggle();
70
+ return;
71
+ }
72
+ if (!this.audio || !this.duration)
73
+ return;
74
+ if (e.key === 'ArrowRight')
75
+ this.audio.currentTime = Math.min(this.duration, this.audio.currentTime + 5);
76
+ else if (e.key === 'ArrowLeft')
77
+ this.audio.currentTime = Math.max(0, this.audio.currentTime - 5);
78
+ else
79
+ return;
80
+ this.currentTime = this.audio.currentTime;
81
+ };
82
+ }
83
+ /** Bar count: derived from the measured width (V1-style density) once known,
84
+ * else the `bars` fallback. Floored at 24 so a narrow player still reads as a wave. */
85
+ get effectiveBars() {
86
+ return this.containerWidth > 0
87
+ ? Math.max(24, Math.floor(this.containerWidth / this.barDensity))
88
+ : this.bars;
89
+ }
90
+ // componentWillLoad (not componentDidLoad) so `init()` seeds @State before the
91
+ // FIRST render pass. Under @stencil/vitest's test-bundle transform, class-field
92
+ // defaults for @Prop/@State are not seeded on the element ahead of render (see
93
+ // the co-tab-group.spec.tsx comment on this repo's harness gap) — running before
94
+ // the first render, not after, is what keeps this.peaks/duration/etc. defined.
95
+ componentWillLoad() { this.init(); }
96
+ // Measure the wave width so the bar count tracks it (V1 density). The wave
97
+ // element exists only after the first render, hence componentDidLoad.
98
+ componentDidLoad() {
99
+ if (typeof ResizeObserver === 'undefined' || !this.waveEl)
100
+ return;
101
+ this.resizeObserver = new ResizeObserver((entries) => {
102
+ var _a;
103
+ for (const entry of entries) {
104
+ const w = ((_a = entry.contentRect) === null || _a === void 0 ? void 0 : _a.width) || entry.target.clientWidth || 0;
105
+ if (w > 2 && Math.abs(w - this.containerWidth) > 2) {
106
+ this.containerWidth = w;
107
+ this.rebuildBars();
108
+ }
109
+ }
110
+ });
111
+ this.resizeObserver.observe(this.waveEl);
112
+ const w0 = this.waveEl.clientWidth || 0;
113
+ if (w0 > 2) {
114
+ this.containerWidth = w0;
115
+ this.rebuildBars();
116
+ }
117
+ }
118
+ disconnectedCallback() {
119
+ var _a;
120
+ this.teardown();
121
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
122
+ this.resizeObserver = undefined;
123
+ }
124
+ onSrcChange() { this.init(); }
125
+ // Re-derive bars for the current width: from cached PCM if decoded, else the
126
+ // deterministic fallback shape. Reassign the array so Stencil re-renders.
127
+ rebuildBars() {
128
+ this.peaks = this.rawChannelData
129
+ ? resamplePeaks(this.rawChannelData, this.effectiveBars)
130
+ : fallbackPeaks(this.effectiveBars);
131
+ }
132
+ init() {
133
+ this.teardown();
134
+ this.rawChannelData = null;
135
+ this.peaks = fallbackPeaks(this.effectiveBars); // draw immediately; refine with real peaks
136
+ this.currentTime = 0;
137
+ this.duration = 0;
138
+ this.playbackRate = 1; // a fresh source starts at 1x (new <audio> defaults to 1)
139
+ this.hasError = false;
140
+ if (!this.src)
141
+ return;
142
+ this.isLoading = true;
143
+ this.extractPeaks(this.src);
144
+ if (typeof Audio === 'undefined')
145
+ return; // test/SSR guard
146
+ const el = new Audio();
147
+ el.preload = this.preload;
148
+ el.crossOrigin = 'anonymous';
149
+ el.src = this.src;
150
+ el.addEventListener('loadedmetadata', this.onMeta);
151
+ el.addEventListener('timeupdate', this.onTime);
152
+ el.addEventListener('ended', this.onEnded);
153
+ el.addEventListener('error', this.onErr);
154
+ el.addEventListener('canplay', this.onCanPlay);
155
+ el.addEventListener('waiting', this.onWaiting);
156
+ this.audio = el;
157
+ }
158
+ teardown() {
159
+ if (this.audio) {
160
+ this.audio.pause();
161
+ this.audio.removeEventListener('loadedmetadata', this.onMeta);
162
+ this.audio.removeEventListener('timeupdate', this.onTime);
163
+ this.audio.removeEventListener('ended', this.onEnded);
164
+ this.audio.removeEventListener('error', this.onErr);
165
+ this.audio.removeEventListener('canplay', this.onCanPlay);
166
+ this.audio.removeEventListener('waiting', this.onWaiting);
167
+ this.audio.src = '';
168
+ this.audio = undefined;
169
+ }
170
+ this.isPlaying = false;
171
+ }
172
+ async extractPeaks(url) {
173
+ try {
174
+ const Ctx = window.AudioContext || window.webkitAudioContext;
175
+ if (!Ctx || typeof fetch === 'undefined')
176
+ return; // keep fallback
177
+ const ctx = new Ctx();
178
+ const buf = await (await fetch(url)).arrayBuffer();
179
+ const audioBuf = await ctx.decodeAudioData(buf);
180
+ this.rawChannelData = audioBuf.getChannelData(0);
181
+ this.peaks = resamplePeaks(this.rawChannelData, this.effectiveBars);
182
+ ctx.close();
183
+ }
184
+ catch (_a) {
185
+ this.rawChannelData = null;
186
+ this.peaks = fallbackPeaks(this.effectiveBars); // stays functional
187
+ }
188
+ }
189
+ async download() {
190
+ if (!this.src || typeof fetch === 'undefined')
191
+ return;
192
+ try {
193
+ const blob = await (await fetch(this.src)).blob();
194
+ const url = URL.createObjectURL(blob);
195
+ const a = document.createElement('a');
196
+ a.href = url;
197
+ a.download = this.downloadFilename;
198
+ document.body.appendChild(a);
199
+ a.click();
200
+ a.remove();
201
+ URL.revokeObjectURL(url);
202
+ }
203
+ catch ( /* ignore */_a) { /* ignore */ }
204
+ }
205
+ render() {
206
+ const H = 40, UNIT = 3, W = 1.8, R = 0.6;
207
+ const vbW = Math.max(1, this.peaks.length * UNIT);
208
+ const pct = this.duration ? (this.currentTime / this.duration) * 100 : 0;
209
+ const bar = (hFrac, i, played = false) => (h("rect", { key: '4775b84d9af61824dcd56d79aca4d198802fd9ab', x: i * UNIT, y: H / 2 - (hFrac * H) / 2, width: W, height: Math.max(hFrac * H, 2), rx: R, class: { 'co-audio-player__bar': true, 'co-audio-player__bar--played': played } }));
210
+ return (h("div", { key: 'b1e8e33109602b0f88c2d95a1bc004d282ae1985', class: {
211
+ 'co-audio-player': true,
212
+ 'co-audio-player--compact': this.compact,
213
+ 'co-audio-player--error': this.hasError,
214
+ 'co-audio-player--playing': this.isPlaying,
215
+ }, part: "player" }, h("button", { key: '37c0b83df324d87382aa6c3c1793597f74f9cefe', type: "button", class: "co-audio-player__play", part: "play", "aria-label": this.hasError ? 'Audio no disponible' : this.isPlaying ? 'Pausar' : 'Reproducir', "aria-busy": this.isLoading ? 'true' : 'false', disabled: this.hasError || !this.src, onClick: this.toggle }, h("co-icon", { key: '5dd0f24e7ca67fa080e4e9dd8b0512b322d5e53e', name: this.hasError ? 'warning-circle' : this.isPlaying ? 'pause' : 'play', weight: "fill", size: this.compact ? 12 : 14 })), h("div", { key: 'ad0e201fec15d2cebf9d049c83a19221f9a00f68', class: "co-audio-player__wave", part: "wave", role: "slider", tabindex: "0", "aria-label": "Progreso de reproducci\u00F3n", "aria-valuemin": 0, "aria-valuemax": Math.floor(this.duration), "aria-valuenow": Math.floor(this.currentTime), ref: (el) => (this.waveEl = el), onClick: (e) => this.seekAt(e.clientX), onKeyDown: this.onWaveKey }, h("svg", { key: '2407820a1b05cfd4f433a15824be006698353d05', class: "co-audio-player__svg", viewBox: `0 0 ${vbW} ${H}`, preserveAspectRatio: "none", "aria-hidden": "true" }, this.peaks.map((hFrac, i) => bar(hFrac, i)), h("clipPath", { key: 'ef30411f2c3db0167adbe22828c3eff9fbc9faf9', id: "co-ap-clip" }, h("rect", { key: 'c63779f30c3cc18b5e44d33f243ab8ddf209bb06', x: "0", y: "0", width: (pct / 100) * vbW, height: H })), h("g", { key: '0d56c6299e0affdea922048205365ced7e5b135b', "clip-path": "url(#co-ap-clip)" }, this.peaks.map((hFrac, i) => bar(hFrac, i, true))))), h("span", { key: 'd123e909e5c0641968d5d5c18f11a48e416a9ccc', class: "co-audio-player__time", part: "time" }, formatTime(this.currentTime), " / ", formatTime(this.duration)), !this.compact && (h("button", { key: 'ec9bf8ec5d81105dfc8346d69f6cd63b127a3d72', type: "button", class: "co-audio-player__speed", part: "speed", "aria-label": `Velocidad de reproducción ${this.playbackRate}x`, onClick: this.cycleSpeed }, this.playbackRate, "x")), !this.compact && !this.noDownload && (h("button", { key: '28be3e9a09967e836fde4a4422971edb576998f0', type: "button", class: "co-audio-player__dl", part: "download", "aria-label": "Descargar", onClick: () => this.download() }, h("co-icon", { key: 'fad58b255cc75b70f692136c516913131c25677c', name: "download-simple", size: 14 })))));
216
+ }
217
+ static get is() { return "co-audio-player"; }
218
+ static get encapsulation() { return "shadow"; }
219
+ static get originalStyleUrls() {
220
+ return {
221
+ "$": ["co-audio-player.css"]
222
+ };
223
+ }
224
+ static get styleUrls() {
225
+ return {
226
+ "$": ["co-audio-player.css"]
227
+ };
228
+ }
229
+ static get properties() {
230
+ return {
231
+ "src": {
232
+ "type": "string",
233
+ "mutable": false,
234
+ "complexType": {
235
+ "original": "string",
236
+ "resolved": "string | undefined",
237
+ "references": {}
238
+ },
239
+ "required": false,
240
+ "optional": true,
241
+ "docs": {
242
+ "tags": [],
243
+ "text": "Audio URL (use a signedUrl for private buckets)."
244
+ },
245
+ "getter": false,
246
+ "setter": false,
247
+ "reflect": false,
248
+ "attribute": "src"
249
+ },
250
+ "compact": {
251
+ "type": "boolean",
252
+ "mutable": false,
253
+ "complexType": {
254
+ "original": "boolean",
255
+ "resolved": "boolean",
256
+ "references": {}
257
+ },
258
+ "required": false,
259
+ "optional": false,
260
+ "docs": {
261
+ "tags": [],
262
+ "text": "Compact variant: narrower, hides the download button."
263
+ },
264
+ "getter": false,
265
+ "setter": false,
266
+ "reflect": false,
267
+ "attribute": "compact",
268
+ "defaultValue": "false"
269
+ },
270
+ "bars": {
271
+ "type": "number",
272
+ "mutable": false,
273
+ "complexType": {
274
+ "original": "number",
275
+ "resolved": "number",
276
+ "references": {}
277
+ },
278
+ "required": false,
279
+ "optional": false,
280
+ "docs": {
281
+ "tags": [],
282
+ "text": "Fallback bar count used before the container width is measured. Once\nmeasured, the real bar count is derived from the width via `barDensity`\n(V1 parity: a dense, detail-rich waveform rather than a fixed count)."
283
+ },
284
+ "getter": false,
285
+ "setter": false,
286
+ "reflect": false,
287
+ "attribute": "bars",
288
+ "defaultValue": "64"
289
+ },
290
+ "barDensity": {
291
+ "type": "number",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "number",
295
+ "resolved": "number",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [],
302
+ "text": "Pixels per waveform bar (bar + gap). Lower = denser/more detailed, like V1\n(`SkAudioPlayer` used 3). The measured bar count = floor(width / barDensity)."
303
+ },
304
+ "getter": false,
305
+ "setter": false,
306
+ "reflect": false,
307
+ "attribute": "bar-density",
308
+ "defaultValue": "3"
309
+ },
310
+ "preload": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "'none' | 'metadata'",
315
+ "resolved": "\"metadata\" | \"none\"",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": "Passthrough to the underlying <audio> preload."
323
+ },
324
+ "getter": false,
325
+ "setter": false,
326
+ "reflect": false,
327
+ "attribute": "preload",
328
+ "defaultValue": "'metadata'"
329
+ },
330
+ "downloadFilename": {
331
+ "type": "string",
332
+ "mutable": false,
333
+ "complexType": {
334
+ "original": "string",
335
+ "resolved": "string",
336
+ "references": {}
337
+ },
338
+ "required": false,
339
+ "optional": false,
340
+ "docs": {
341
+ "tags": [],
342
+ "text": "Filename for the download button."
343
+ },
344
+ "getter": false,
345
+ "setter": false,
346
+ "reflect": false,
347
+ "attribute": "download-filename",
348
+ "defaultValue": "'audio'"
349
+ },
350
+ "noDownload": {
351
+ "type": "boolean",
352
+ "mutable": false,
353
+ "complexType": {
354
+ "original": "boolean",
355
+ "resolved": "boolean",
356
+ "references": {}
357
+ },
358
+ "required": false,
359
+ "optional": false,
360
+ "docs": {
361
+ "tags": [],
362
+ "text": "Hide the download button even in full mode."
363
+ },
364
+ "getter": false,
365
+ "setter": false,
366
+ "reflect": false,
367
+ "attribute": "no-download",
368
+ "defaultValue": "false"
369
+ }
370
+ };
371
+ }
372
+ static get states() {
373
+ return {
374
+ "isPlaying": {},
375
+ "isLoading": {},
376
+ "hasError": {},
377
+ "currentTime": {},
378
+ "duration": {},
379
+ "peaks": {},
380
+ "containerWidth": {},
381
+ "playbackRate": {}
382
+ };
383
+ }
384
+ static get events() {
385
+ return [{
386
+ "method": "coPlay",
387
+ "name": "coPlay",
388
+ "bubbles": true,
389
+ "cancelable": true,
390
+ "composed": true,
391
+ "docs": {
392
+ "tags": [],
393
+ "text": ""
394
+ },
395
+ "complexType": {
396
+ "original": "void",
397
+ "resolved": "void",
398
+ "references": {}
399
+ }
400
+ }, {
401
+ "method": "coPause",
402
+ "name": "coPause",
403
+ "bubbles": true,
404
+ "cancelable": true,
405
+ "composed": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": ""
409
+ },
410
+ "complexType": {
411
+ "original": "void",
412
+ "resolved": "void",
413
+ "references": {}
414
+ }
415
+ }, {
416
+ "method": "coEnded",
417
+ "name": "coEnded",
418
+ "bubbles": true,
419
+ "cancelable": true,
420
+ "composed": true,
421
+ "docs": {
422
+ "tags": [],
423
+ "text": ""
424
+ },
425
+ "complexType": {
426
+ "original": "void",
427
+ "resolved": "void",
428
+ "references": {}
429
+ }
430
+ }, {
431
+ "method": "coError",
432
+ "name": "coError",
433
+ "bubbles": true,
434
+ "cancelable": true,
435
+ "composed": true,
436
+ "docs": {
437
+ "tags": [],
438
+ "text": ""
439
+ },
440
+ "complexType": {
441
+ "original": "unknown",
442
+ "resolved": "unknown",
443
+ "references": {}
444
+ }
445
+ }];
446
+ }
447
+ static get watchers() {
448
+ return [{
449
+ "propName": "src",
450
+ "methodName": "onSrcChange"
451
+ }];
452
+ }
453
+ }
@@ -0,0 +1,44 @@
1
+ /** Seconds → "m:ss" (floors; 0 for NaN/negative). */
2
+ export function formatTime(seconds) {
3
+ const s = Math.max(0, Math.floor(seconds || 0));
4
+ const m = Math.floor(s / 60);
5
+ const sec = s % 60;
6
+ return `${m}:${sec.toString().padStart(2, '0')}`;
7
+ }
8
+ /** Downsample raw PCM to `bars` peak heights, each normalized to a 0..1 fraction. */
9
+ export function resamplePeaks(channelData, bars) {
10
+ const len = channelData.length;
11
+ if (!len || bars <= 0)
12
+ return [];
13
+ const step = Math.max(1, Math.floor(len / bars));
14
+ const peaks = [];
15
+ for (let i = 0; i < bars; i++) {
16
+ let max = 0;
17
+ const start = i * step;
18
+ for (let j = start; j < start + step && j < len; j++) {
19
+ const abs = Math.abs(channelData[j]);
20
+ if (abs > max)
21
+ max = abs;
22
+ }
23
+ peaks.push(0.12 + max * 0.88); // floor of 0.12 so silent buckets still show a sliver
24
+ }
25
+ return peaks;
26
+ }
27
+ /** Deterministic pseudo-waveform (stable render + testable — no Math.random). */
28
+ export function fallbackPeaks(bars) {
29
+ if (bars <= 0)
30
+ return [];
31
+ const peaks = [];
32
+ for (let i = 0; i < bars; i++) {
33
+ const envelope = Math.sin((i / Math.max(1, bars)) * Math.PI) * 0.6 + 0.3;
34
+ const wobble = 0.75 + 0.25 * Math.abs(Math.sin(i * 1.7));
35
+ peaks.push(0.12 + envelope * wobble * 0.88);
36
+ }
37
+ return peaks;
38
+ }
39
+ /** Clamped 0..1 position of a click within a track rect. */
40
+ export function scrubFraction(clientX, rect) {
41
+ if (!rect.width)
42
+ return 0;
43
+ return Math.max(0, Math.min(1, (clientX - rect.left) / rect.width));
44
+ }
@@ -62,7 +62,7 @@
62
62
  border-radius: var(--co-border-radius-xs);
63
63
  min-height: 40px;
64
64
  box-sizing: border-box;
65
- transition: border-color 0.15s ease, box-shadow 0.15s ease;
65
+ transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);
66
66
  }
67
67
 
68
68
  /* ── Size variants (mirror co-input: s 28 / sm 32 / md 40 / lg 48) ── */
@@ -148,7 +148,7 @@
148
148
  background: transparent;
149
149
  cursor: pointer;
150
150
  color: var(--co-semantic-text-muted);
151
- transition: color 0.15s ease;
151
+ transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
152
152
  }
153
153
 
154
154
  .co-autocomplete__clear:hover {
@@ -61,6 +61,15 @@ export class CoAutocomplete {
61
61
  this.coChange.emit({ value: sel, item: { _id: val, label: val } });
62
62
  };
63
63
  this.handleListChange = (detail) => {
64
+ // co-option-list emite value:null al DESELECCIONAR → limpiar y PROPAGAR el
65
+ // deselect (value:null) para que el host distinga "vacío" de "sin cambio".
66
+ if (detail.value == null) {
67
+ this.value = this.multiple ? '[]' : '';
68
+ this.query = '';
69
+ this.isOpen = false;
70
+ this.coChange.emit({ value: null, item: null });
71
+ return;
72
+ }
64
73
  if (this.multiple) {
65
74
  this.value = JSON.stringify(detail.value);
66
75
  this.coChange.emit({ value: detail.value, item: detail.item });
@@ -159,16 +168,16 @@ export class CoAutocomplete {
159
168
  render() {
160
169
  const options = this.parsedOptions;
161
170
  const selected = this.selectedValues;
162
- return (h("div", { key: 'a152ee025b4c76813f8783ba1cd0e6791a7372ee', class: {
171
+ return (h("div", { key: '0fad340e2daa5ee4b56e28325d5eaec4d60d7188', class: {
163
172
  'co-autocomplete': true,
164
173
  'co-autocomplete--disabled': this.disabled,
165
174
  'co-autocomplete--focused': this.focused,
166
175
  [`co-autocomplete--${this.size}`]: true,
167
176
  [`co-autocomplete--${this.status}`]: this.status !== 'default',
168
- } }, (this.label || this.secondaryLabel) && (h("div", { key: '484443890da0c01c028716095ef2215f56b64e93', class: "co-autocomplete__labels" }, this.label && h("label", { key: '24fc760c0fa0322e1952d948e8daf463a4999226', class: "co-autocomplete__label" }, this.label, h(RequiredMark, { key: '250f449b8d860d5476652dd906b5405e76cba1d1', required: this.required })), this.secondaryLabel && h("span", { key: '5f7b6c3b0308cc031336d945ce629aa06495404d', class: "co-autocomplete__secondary-label" }, this.secondaryLabel))), h("div", { key: '632abdc8eb131cf8f5c482487d377d9297c11ad6', class: "co-autocomplete__field" }, this.iconLeft && h("co-icon", { key: '7c1f1af01c2a9b9686de933a38d4da0302f40cbc', name: this.iconLeft, size: 16, class: "co-autocomplete__icon" }), this.multiple && selected.length > 0 && (h("div", { key: 'bfe9c9fbce1c7050f928128fb77f8bf5018903d1', class: "co-autocomplete__chips" }, selected.map(val => {
177
+ } }, (this.label || this.secondaryLabel) && (h("div", { key: 'a724b6267fd6dbe267725f3619677e043843c96c', class: "co-autocomplete__labels" }, this.label && h("label", { key: '45c176c82f0967c6ff0f1f323d36834d247f8ac6', class: "co-autocomplete__label" }, this.label, h(RequiredMark, { key: '52940ac88fa7ba5f2b662990a66b0ad84d728ecc', required: this.required })), this.secondaryLabel && h("span", { key: '5eac2ccf44d59067f7ca070561c18c9b45b4cfc1', class: "co-autocomplete__secondary-label" }, this.secondaryLabel))), h("div", { key: '4837e011ac491a34efdfb84bd80f2baa52c4f451', class: "co-autocomplete__field" }, this.iconLeft && h("co-icon", { key: '1a46dba433dec3b8dec82b6d2e93cee0575f5673', name: this.iconLeft, size: 16, class: "co-autocomplete__icon" }), this.multiple && selected.length > 0 && (h("div", { key: '95054c8e5ec371ba04f6fa5938d74babffef473f', class: "co-autocomplete__chips" }, selected.map(val => {
169
178
  const opt = this.parsedOptions.find(o => o.value === val);
170
179
  return (h("co-chip", { label: opt ? opt.label : val, size: "small", removable: true, onCoRemove: () => this.handleChipRemove(val) }));
171
- }))), h("input", { key: 'fc621839dde68853a1b28231551e6cb0a6f415e7', ref: el => (this.inputEl = el), class: "co-autocomplete__input", type: "text", value: this.query, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onKeyDown: this.handleInputKeyDown }), this.loading && h("div", { key: 'fbe41e89ca6202a4de04a09437f1f11f756f25eb', class: "co-autocomplete__spinner" }), this.clearable && (this.hasValue || this.query) && !this.disabled && (h("button", { key: 'e3096cd897d7a98fa7cd203d21eb57dc6ce961a5', class: "co-autocomplete__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '3211cf54fcdae0a73afb62e2b6cb25081486f3a7', name: "x-circle", size: 16, weight: "fill" })))), this.isOpen && (h("div", { key: '9c5e500a17c9486b6834c46be9e95c0e0fea6beb', class: "co-autocomplete__dropdown" }, h("co-option-list", { key: 'b44c39253a07c470dc5e059223fce58548e8d02d', ref: (el) => (this.optionListEl = el), items: JSON.stringify(options.map((o) => ({ _id: o.value, label: o.label, icon: o.icon, disabled: o.disabled }))), value: this.multiple ? JSON.stringify(this.selectedValues) : (this.selectedValues[0] || ''), multiple: this.multiple, selectedAffordance: "check", virtual: true, loading: this.loading, emptyMessage: this.emptyMessage, onCoChange: (e) => this.handleListChange(e.detail) }))), this.helperText && (h("div", { key: '30ac040bfef45e66d1b18bfdda9b5b07b8f2c3d5', class: `co-autocomplete__helper co-autocomplete__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'a4fc8c4c9695c13cd515d9b7562986a62bf07110', name: this.statusIcon, size: 14, weight: "fill", class: "co-autocomplete__helper-icon" }), h("span", { key: '4a7f3031b62c451e0561024d232331b1c7679a07', class: "co-autocomplete__helper-text" }, this.helperText)))));
180
+ }))), h("input", { key: '016887bf4fa1872bafd1ba60a7fb960ca89e8b76', ref: el => (this.inputEl = el), class: "co-autocomplete__input", type: "text", value: this.query, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onKeyDown: this.handleInputKeyDown }), this.loading && h("div", { key: 'eac7e752a8d8f18b866c5fe4283707e851355328', class: "co-autocomplete__spinner" }), this.clearable && (this.hasValue || this.query) && !this.disabled && (h("button", { key: 'aac8dcfced13e8abf3bb6beb0fa56124814804ea', class: "co-autocomplete__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '8a5605cfe09eb17ca65c9fd97662ceec893431b7', name: "x-circle", size: 16, weight: "fill" })))), this.isOpen && (h("div", { key: '7263c42e73656db3ee8d1c1c2f5f5cd941b0e40b', class: "co-autocomplete__dropdown" }, h("co-option-list", { key: '32071562943c992b0013451c8b89da20590554cf', ref: (el) => (this.optionListEl = el), items: JSON.stringify(options.map((o) => ({ _id: o.value, label: o.label, icon: o.icon, disabled: o.disabled }))), value: this.multiple ? JSON.stringify(this.selectedValues) : (this.selectedValues[0] || ''), multiple: this.multiple, selectedAffordance: "check", virtual: true, loading: this.loading, emptyMessage: this.emptyMessage, onCoChange: (e) => this.handleListChange(e.detail) }))), this.helperText && (h("div", { key: '47ba4956d829c700700a7509e8fd2fc58dd6e4d9', class: `co-autocomplete__helper co-autocomplete__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'b4363e83a7258241d23f4911c1f6fb352330c19d', name: this.statusIcon, size: 14, weight: "fill", class: "co-autocomplete__helper-icon" }), h("span", { key: '952777047bd27a6604daea9531f26ce5aab0c475', class: "co-autocomplete__helper-text" }, this.helperText)))));
172
181
  }
173
182
  static get is() { return "co-autocomplete"; }
174
183
  static get encapsulation() { return "shadow"; }
@@ -582,8 +591,8 @@ export class CoAutocomplete {
582
591
  "text": ""
583
592
  },
584
593
  "complexType": {
585
- "original": "{ value: string | string[]; item: { _id: string; label: string } | null }",
586
- "resolved": "{ value: string | string[]; item: { _id: string; label: string; } | null; }",
594
+ "original": "{ value: string | string[] | null; item: { _id: string; label: string } | null }",
595
+ "resolved": "{ value: string | string[] | null; item: { _id: string; label: string; } | null; }",
587
596
  "references": {}
588
597
  }
589
598
  }, {
@@ -22,7 +22,7 @@
22
22
  cursor: pointer;
23
23
  border-radius: var(--co-border-radius-full);
24
24
  outline: none;
25
- transition: opacity 0.12s ease;
25
+ transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
26
26
  }
27
27
 
28
28
  .co-avatar-group--interactive:hover {
@@ -10,7 +10,7 @@ export class CoBadge {
10
10
  this.color = 'default';
11
11
  }
12
12
  render() {
13
- return (h("span", { key: '7c3421c8ace895670435fc85850877a5b38771de', class: {
13
+ return (h("span", { key: '8e24eae365e19b27d3af88bda2b292b8087ccbe7', class: {
14
14
  'co-badge': true,
15
15
  [`co-badge--${this.size}`]: true,
16
16
  [`co-badge--${this.color}`]: true,
@@ -16,13 +16,13 @@
16
16
  backdrop-filter: blur(var(--co-overlay-blur, 2px));
17
17
  opacity: 0;
18
18
  pointer-events: none;
19
- transition: opacity 0.25s ease;
19
+ transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-in);
20
20
  }
21
21
 
22
22
  .co-bottom-sheet-root--open .co-bottom-sheet__backdrop {
23
23
  opacity: 1;
24
24
  pointer-events: auto;
25
- transition: opacity 0.12s ease;
25
+ transition: opacity var(--co-motion-duration-base) var(--co-motion-ease-out);
26
26
  }
27
27
 
28
28
  .co-bottom-sheet {
@@ -40,7 +40,7 @@
40
40
  border-radius: var(--co-border-radius-xl) var(--co-border-radius-xl) 0 0;
41
41
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
42
42
  transform: translateY(100%);
43
- transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
43
+ transition: transform var(--co-motion-duration-slow) var(--co-motion-ease-in-out);
44
44
  will-change: transform;
45
45
  overflow: hidden;
46
46
  visibility: hidden;
@@ -53,7 +53,7 @@
53
53
 
54
54
  /* keep the slide-out visible while it animates */
55
55
  .co-bottom-sheet:not(.co-bottom-sheet--open) {
56
- transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.25s;
56
+ transition: transform var(--co-motion-duration-slow) var(--co-motion-ease-in-out), visibility 0s linear var(--co-motion-duration-slow);
57
57
  }
58
58
 
59
59
  /* while the finger drives the sheet, nothing animates */
@@ -126,11 +126,3 @@
126
126
  background: var(--co-semantic-surface-page);
127
127
  }
128
128
 
129
- @media (prefers-reduced-motion: reduce) {
130
- /* near-zero (not zero) so transitionend still fires coAfterOpen/Close */
131
- .co-bottom-sheet,
132
- .co-bottom-sheet:not(.co-bottom-sheet--open),
133
- .co-bottom-sheet__backdrop {
134
- transition-duration: 0.01s !important;
135
- }
136
- }