@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
@@ -1 +0,0 @@
1
- import{t,p as e,H as a,c as o,h as r}from"./index.js";import{d as n}from"./p-B3U63yZw.js";import{c,d as i,a as s,p as l,j as d,e as h,h as u}from"./p-CyYF8IJE.js";const m=t=>String(t).padStart(2,"0"),p=new Map;function f(t){if("number"==typeof t)return t;if(t instanceof Date)return t.getTime();const e=Date.parse(t);if(Number.isNaN(e))throw new RangeError(`tz: invalid instant "${t}"`);return e}function v(){return Intl.DateTimeFormat().resolvedOptions().timeZone}function b(t,e){const a=function(t){let e=p.get(t);return e||(e=new Intl.DateTimeFormat("en-US",{timeZone:t,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}),p.set(t,e)),e}(e).formatToParts(new Date(f(t))),o=t=>{const e=a.find((e=>e.type===t));return e?Number(e.value):0};let r=o("hour");return 24===r&&(r=0),{year:o("year"),month:o("month"),day:o("day"),hour:r,minute:o("minute"),second:o("second")}}function g(t,e){const a=f(t),o=b(a,e),r=Date.UTC(o.year,o.month-1,o.day,o.hour,o.minute,o.second);return Math.round((r-a)/6e4)}function y(t){return new Date(f(t)).toISOString()}function x(t,e){const a=b(t,e);return`${a.year}-${m(a.month)}-${m(a.day)}`}const _=e(class extends a{constructor(t){super(),!1!==t&&this.__registerHost(),this.__attachShadow(),this.coDaySelect=o(this,"coDaySelect",3),this.coEventClick=o(this,"coEventClick",3),this.coEventDrop=o(this,"coEventDrop",3),this.coMoreClick=o(this,"coMoreClick",3),this.events=[],this.locale="es-CO",this.firstDayOfWeek=1,this.editable=!0,this.selectable=!0,this.maxLanes=3,this.dragOverDate=null,this.dragId=null,this.onPointerUp=()=>this.finishDrag(),this.handleKeyDown=t=>{const e=this.focused;let a=!0;switch(t.key){case"ArrowLeft":this.moveFocus(i(e,-1));break;case"ArrowRight":this.moveFocus(i(e,1));break;case"ArrowUp":this.moveFocus(i(e,-7));break;case"ArrowDown":this.moveFocus(i(e,7));break;case"Enter":case" ":this.selectDay(e);break;default:a=!1}a&&(t.preventDefault(),t.stopPropagation())}}componentWillLoad(){this.focused=this.defaultFocus()}connectedCallback(){window.addEventListener("pointerup",this.onPointerUp)}disconnectedCallback(){window.removeEventListener("pointerup",this.onPointerUp)}defaultFocus(){const t=`${k(this.year)}-${w(this.month)}-01`,e=s(),a=l(e);return a.year===this.year&&a.month===this.month?e:t}get matrix(){return d(this.year,this.month,this.firstDayOfWeek).map((t=>t.map((t=>t.value))))}eventById(t){return this.events.find((e=>e.id===t))}isDayInteractable(t){return!h(t,{min:this.minDate,max:this.maxDate})}selectDay(t){this.selectable&&this.isDayInteractable(t)&&this.coDaySelect.emit({date:t})}activateEvent(t){this.coEventClick.emit({id:t})}moveFocus(t){this.focused=t,requestAnimationFrame((()=>this.focusCell()))}focusCell(){var t,e;null===(e=null===(t=this.el.shadowRoot)||void 0===t?void 0:t.querySelector(`[data-date="${this.focused}"]`))||void 0===e||e.focus()}startDrag(t,e){const a=this.eventById(e);a&&this.editable&&!1!==a.editable&&!1!==a.startEditable&&(t.preventDefault(),t.stopPropagation(),this.dragId=e,this.dragOverDate=null)}finishDrag(){const t=this.dragId,e=this.dragOverDate;if(this.dragId=null,this.dragOverDate=null,!t||!e)return;const a=this.eventById(t);if(!a)return;const o=function(t,e){const[a,o,r]=t.split("-").map(Number),[n,c,i]=e.split("-").map(Number);return Math.round((Date.UTC(n,c-1,i)-Date.UTC(a,o-1,r))/864e5)}(a.allDay?a.start.slice(0,10):x(a.startMs,this.timeZone),e);if(0===o)return;if(!this.isDayInteractable(e))return;const r=function(t,e,a){return t.allDay?{start:i(t.start.slice(0,10),e),end:i(t.end.slice(0,10),e)}:{start:y(D(t.startMs,e,a)),end:y(D(t.endMs,e,a))}}(a,o,this.timeZone);this.coEventDrop.emit({id:t,start:r.start,end:r.end,oldStart:a.start,oldEnd:a.end,allDay:a.allDay})}renderChip(t,e){var a;const o=this.eventById(t.eventId);if(!o)return null;const n=e.length,c=t.startCol/n*100,i=(t.endCol-t.startCol+1)/n*100,s=o.endMs<=Date.now(),l=!0===(null===(a=o.extendedProps)||void 0===a?void 0:a.isExternal),d=!this.editable||!1===o.editable,h=o.allDay||!t.isStart?"":function(t,e){const a=Math.floor(t/60),o=t%60;return new Intl.DateTimeFormat(e,{hour:"numeric",minute:"2-digit"}).format(new Date(2e3,0,1,a,o))}(function(t,e){const a=b(t,e);return 60*a.hour+a.minute}(o.startMs,this.timeZone),this.locale),u={left:`${c}%`,width:`${i}%`,top:`calc(var(--co-cal-daynum-h) + ${t.lane} * var(--co-cal-lane-h))`};return o.backgroundColor&&(u["--co-cal-event-bg"]=o.backgroundColor,u["--co-cal-event-text"]=function(t){const e=t.replace("#","").trim();if(3!==e.length&&6!==e.length)return"var(--co-cal-event-text)";const a=3===e.length?e.split("").map((t=>t+t)).join(""):e;return(299*parseInt(a.slice(0,2),16)+587*parseInt(a.slice(2,4),16)+114*parseInt(a.slice(4,6),16))/1e3>=150?"var(--co-cal-event-text-dark)":"var(--co-cal-event-text-light)"}(o.backgroundColor)),o.borderColor&&(u["--co-cal-event-border"]=o.borderColor),r("button",{type:"button",key:`${t.eventId}-${t.weekIndex}`,class:{"cal-chip":!0,"cal-chip--all-day":o.allDay,"cal-chip--past":s,"cal-chip--external":l,"cal-chip--locked":d,"cal-chip--dragging":this.dragId===o.id,"cal-chip--continues-before":t.continuesBefore,"cal-chip--continues-after":t.continuesAfter},style:u,title:o.title,"aria-label":o.title,onClick:t=>{t.stopPropagation(),this.activateEvent(o.id)},onPointerDown:t=>this.startDrag(t,o.id)},!o.allDay&&r("span",{class:"cal-chip__dot","aria-hidden":"true"}),h&&r("span",{class:"cal-chip__time"},h),r("span",{class:"cal-chip__title"},o.title||"—"),l&&r("co-icon",{name:"link",size:11,class:"cal-chip__ext"}))}render(){var t;const e=this.matrix,a=function(t,e,a={}){const o=a.maxLanes??1/0,r=[],n={};let s=0;const l=t.map((t=>function(t,e){if(t.allDay){const e=t.start.slice(0,10),a=i(t.end.slice(0,10),-1);return c(a,e)<0?{event:t,firstDay:e,lastDay:e}:{event:t,firstDay:e,lastDay:a}}const a=e?x(t.startMs,e):t.start.slice(0,10);return{event:t,firstDay:a,lastDay:a}}(t,a.timeZone))).filter((t=>null!==t));if(e.forEach(((t,e)=>{if(!t.length)return;const a=t[0],o=t[t.length-1],n=new Map(t.map(((t,e)=>[t,e]))),i=l.filter((t=>c(t.firstDay,o)<=0&&c(a,t.lastDay)<=0)).map((e=>{const r=c(e.firstDay,a)>=0?e.firstDay:a,i=c(e.lastDay,o)<=0?e.lastDay:o;return{span:e,startCol:n.get(r)??0,endCol:n.get(i)??t.length-1}})).sort(((t,e)=>t.startCol-e.startCol||e.endCol-e.startCol-(t.endCol-t.startCol)||t.span.event.startMs-e.span.event.startMs||(t.span.event.id<e.span.event.id?-1:1))),d=[];for(const t of i){let n=0;for(;d.some((e=>e.lane===n&&!(t.endCol<e.startCol||t.startCol>e.endCol)));)n++;d.push({lane:n,startCol:t.startCol,endCol:t.endCol}),s=Math.max(s,n+1),r.push({eventId:t.span.event.id,weekIndex:e,lane:n,startCol:t.startCol,endCol:t.endCol,isStart:c(t.span.firstDay,a)>=0,isEnd:c(t.span.lastDay,o)<=0,continuesBefore:c(t.span.firstDay,a)<0,continuesAfter:c(t.span.lastDay,o)>0})}})),Number.isFinite(o))for(const t of r)if(t.lane>=o)for(let a=t.startCol;a<=t.endCol;a++){const o=e[t.weekIndex][a];n[o]=(n[o]??0)+1}return{segments:r,overflow:n,laneCount:s}}(this.events,e,{maxLanes:this.maxLanes,timeZone:this.timeZone}),o=new Map;for(const e of a.segments){if(e.lane>=this.maxLanes)continue;const a=null!==(t=o.get(e.weekIndex))&&void 0!==t?t:[];a.push(e),o.set(e.weekIndex,a)}const n=u(this.locale,this.firstDayOfWeek,"short"),d=u(this.locale,this.firstDayOfWeek,"long"),h=s();return r("div",{key:"51781013cbfce9f2e8d07de9a46766c3a9326cbe",class:"cal-month",part:"grid",role:"grid",onKeyDown:this.handleKeyDown},r("div",{key:"ee3545fbd982390cd233cb54b33060b7cb9b08e1",class:"cal-month__dow",role:"row"},n.map(((t,e)=>r("span",{class:"cal-month__dow-cell",role:"columnheader","aria-label":d[e]},t)))),e.map(((t,e)=>{var n;return r("div",{class:"cal-month__week",role:"row"},r("div",{class:"cal-month__days"},t.map((t=>{const e=l(t),a=e.month===this.month,o=0===c(t,h),n=0===c(t,this.focused),i=this.isDayInteractable(t);return r("div",{role:"gridcell","data-date":t,tabIndex:n?0:-1,"aria-current":o?"date":void 0,"aria-disabled":i?void 0:"true",class:{"cal-month__day":!0,"cal-month__day--outside":!a,"cal-month__day--today":o,"cal-month__day--disabled":!i,"cal-month__day--drag-over":null!==this.dragId&&this.dragOverDate===t},onClick:()=>this.selectDay(t),onPointerEnter:()=>{this.dragId&&(this.dragOverDate=t)}},r("span",{class:"cal-month__daynum"},e.day))}))),r("div",{class:"cal-month__events"},(null!==(n=o.get(e))&&void 0!==n?n:[]).map((e=>this.renderChip(e,t))),t.map(((e,o)=>{var n;const c=null!==(n=a.overflow[e])&&void 0!==n?n:0;return c<=0?null:r("button",{type:"button",class:"cal-month__more",style:{left:o/t.length*100+"%",width:1/t.length*100+"%",top:`calc(var(--co-cal-daynum-h) + ${this.maxLanes} * var(--co-cal-lane-h))`},onClick:t=>{t.stopPropagation(),this.coMoreClick.emit({date:e})}},"+",c)}))))})))}get el(){return this}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);--co-cal-daynum-h:24px;--co-cal-lane-h:22px;--co-cal-min-week-h:92px;--co-cal-gap:2px;--co-cal-surface:var(--co-semantic-surface-page);--co-cal-border:var(--co-semantic-border-default);--co-cal-text:var(--co-semantic-text-default);--co-cal-text-muted:var(--co-semantic-text-muted);--co-cal-hover:var(--co-semantic-surface-hover);--co-cal-today-ring:var(--co-color-primary-azul);--co-cal-event-bg:var(--co-color-primary-azul);--co-cal-event-border:transparent;--co-cal-event-text:var(--co-color-base-blanco, #fff);--co-cal-event-text-light:var(--co-color-base-blanco, #fff);--co-cal-event-text-dark:var(--co-semantic-text-default)}.cal-month{display:flex;flex-direction:column;border:1px solid var(--co-cal-border);border-radius:var(--co-border-radius-xs);overflow:hidden;background:var(--co-cal-surface)}.cal-month__dow{display:grid;grid-template-columns:repeat(7, 1fr);border-bottom:1px solid var(--co-cal-border)}.cal-month__dow-cell{padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-10, 10px);font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:var(--co-cal-text-muted);text-align:right}.cal-month__week{position:relative;min-height:var(--co-cal-min-week-h)}.cal-month__week:not(:last-child){border-bottom:1px solid var(--co-cal-border)}.cal-month__days{display:grid;grid-template-columns:repeat(7, 1fr);height:100%;position:absolute;inset:0}.cal-month__day{border-right:1px solid var(--co-cal-border);padding:var(--co-spacing-xxs);cursor:pointer;transition:background 0.1s ease}.cal-month__day:last-child{border-right:0}.cal-month__day:hover{background:var(--co-cal-hover)}.cal-month__day:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:-2px}.cal-month__day--outside .cal-month__daynum{color:var(--co-cal-text-muted)}.cal-month__day--disabled{cursor:not-allowed;background:color-mix(in srgb, var(--co-cal-border) 20%, transparent)}.cal-month__day--drag-over{background:color-mix(in srgb, var(--co-cal-today-ring) 14%, transparent);box-shadow:inset 0 0 0 2px var(--co-cal-today-ring)}.cal-month__daynum{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:auto;float:right;font-size:var(--co-font-size-12, 12px);color:var(--co-cal-text);border-radius:var(--co-border-radius-full)}.cal-month__day--today .cal-month__daynum{background:var(--co-cal-today-ring);color:var(--co-color-base-blanco, #fff);font-weight:600}.cal-month__events{position:absolute;inset:0;pointer-events:none;}.cal-chip,.cal-month__more{position:absolute;height:calc(var(--co-cal-lane-h) - 3px);box-sizing:border-box;pointer-events:auto;display:flex;align-items:center;gap:var(--co-spacing-xxs);margin:0 3px;padding:0 var(--co-spacing-xs);border:1px solid var(--co-cal-event-border);border-radius:var(--co-border-radius-xxs);font-family:inherit;font-size:var(--co-font-size-12, 12px);line-height:1;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap}.cal-chip{background:var(--co-cal-event-bg);color:var(--co-cal-event-text)}.cal-chip:hover{filter:brightness(0.95)}.cal-chip:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:1px}.cal-chip--all-day{font-weight:500}.cal-chip__dot{flex:0 0 auto;width:7px;height:7px;border-radius:var(--co-border-radius-full);background:var(--co-cal-event-bg)}.cal-chip:not(.cal-chip--all-day){background:transparent;color:var(--co-cal-text);border-color:transparent}.cal-chip:not(.cal-chip--all-day):hover{background:var(--co-cal-hover);filter:none}.cal-chip__time{flex:0 0 auto;color:var(--co-cal-text-muted);font-variant-numeric:tabular-nums}.cal-chip__title{overflow:hidden;text-overflow:ellipsis}.cal-chip__ext{flex:0 0 auto;opacity:0.8}.cal-chip--past{opacity:0.55}.cal-chip--locked{cursor:default}.cal-chip--external{border-style:dashed}.cal-chip--dragging{opacity:0.4}.cal-chip--continues-before{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0}.cal-chip--continues-after{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.cal-month__more{background:transparent;color:var(--co-cal-text-muted);border-color:transparent;font-weight:600;font-size:var(--co-font-size-11, 11px)}.cal-month__more:hover{background:var(--co-cal-hover);color:var(--co-cal-text)}"}},[1,"co-calendar-month",{events:[16],year:[2],month:[2],locale:[1],firstDayOfWeek:[2,"first-day-of-week"],timeZone:[1,"time-zone"],minDate:[1,"min-date"],maxDate:[1,"max-date"],editable:[4],selectable:[4],maxLanes:[2,"max-lanes"],focused:[32],dragOverDate:[32],dragId:[32]}]);function w(t){return String(t).padStart(2,"0")}function k(t){return String(t).padStart(4,"0")}function D(t,e,a){const o=b(t,a),r=i(`${k(o.year)}-${w(o.month)}-${w(o.day)}`,e),[n,c,s]=r.split("-").map(Number);return function(t,e){const a=Date.UTC(t.year,t.month-1,t.day,t.hour??0,t.minute??0,t.second??0),o=g(a,e),r=a-6e4*o,n=g(r,e);return n===o?r:a-6e4*n}({year:n,month:c,day:s,hour:o.hour,minute:o.minute,second:o.second},a)}function C(){"undefined"!=typeof customElements&&["co-calendar-month","co-icon"].forEach((e=>{switch(e){case"co-calendar-month":customElements.get(t(e))||customElements.define(t(e),_);break;case"co-icon":customElements.get(t(e))||n()}}))}C();export{_ as C,y as a,C as d,v as g,f as t}
@@ -1 +0,0 @@
1
- const n=/^(\d{4})-(\d{2})-(\d{2})$/,e=n=>String(n).padStart(2,"0");function t(n){return new Date(n.year,n.month-1,n.day)}function r(n){return{year:n.getFullYear(),month:n.getMonth()+1,day:n.getDate()}}function o(e){if("string"!=typeof e)return!1;const t=n.exec(e);if(!t)return!1;const r=Number(t[1]),o=Number(t[2]),u=Number(t[3]);if(o<1||o>12||u<1||u>31)return!1;const a=new Date(r,o-1,u);return a.getFullYear()===r&&a.getMonth()===o-1&&a.getDate()===u}function u(e){if(!o(e))return null;const t=n.exec(e);return{year:Number(t[1]),month:Number(t[2]),day:Number(t[3])}}function a(n){return`${String(n.year).padStart(4,"0")}-${e(n.month)}-${e(n.day)}`}function s(){return a(r(new Date))}function c(e,t={}){const r=t.order??"dmy",u=t.twoDigitYearPivot??69,s={status:"invalid",value:null},c=(e??"").trim();if(""===c)return{status:"empty",value:null};if(n.test(c))return o(c)?{status:"valid",value:c}:s;const d=c.split(/[/.\-\s]+/).filter(Boolean).filter((n=>!f.has(l(n))));if(d.length<2||d.length>3)return s;const b=function(n){const e=n||"_base",t=y.get(e);if(t)return t;const r={...m};if(n)for(let e=0;e<12;e++){const t=new Date(2020,e,1);for(const o of["short","long"]){const u=l(new Intl.DateTimeFormat(n,{month:o}).format(t));u&&(r[u]=e+1,u.length>=3&&(r[u.slice(0,3)]=e+1))}}return y.set(e,r),r}(t.locale),M=[];let w,h,g,v=null;if(d.forEach(((n,e)=>{if(/^\d+$/.test(n))M.push({val:Number(n),pos:e});else{const e=b[l(n)];v=e&&null===v?e:-1}})),-1===v)return s;if(null!==v)if(h=v,2===M.length){const[n,e]=M;n.val>31||4===i(d,n.pos)?(g=n.val,w=e.val):e.val>31||4===i(d,e.pos)?(g=e.val,w=n.val):(g="ymd"===r?n.val:e.val,w="ymd"===r?e.val:n.val)}else{if(1!==M.length)return s;w=M[0].val,g=t.defaultYear??(new Date).getFullYear()}else{const n=M.map((n=>n.val));if(2===n.length){const[e,o]=n;"mdy"===r||"ymd"===r?(h=e,w=o):(w=e,h=o),g=t.defaultYear??(new Date).getFullYear()}else{const[e,t,o]=n;"ymd"===r?(g=e,h=t,w=o):"mdy"===r?(h=e,w=t,g=o):(w=e,h=t,g=o)}}g=function(n,e){return n>=100?n:n<=e?2e3+n:1900+n}(g,u);const D=a({year:g,month:h,day:w});return o(D)?{status:"valid",value:D}:s}function i(n,e){return n[e]?.length??0}const f=new Set(["de","del","of","the"]);function l(n){return n.normalize("NFD").replace(/[̀-ͯ]/g,"").toLowerCase().replace(/\.$/,"").trim()}const m={enero:1,febrero:2,marzo:3,abril:4,mayo:5,junio:6,julio:7,agosto:8,septiembre:9,setiembre:9,octubre:10,noviembre:11,diciembre:12,ene:1,feb:2,mar:3,abr:4,may:5,jun:6,jul:7,ago:8,sep:9,set:9,oct:10,nov:11,dic:12,january:1,february:2,march:3,april:4,june:6,july:7,august:8,september:9,october:10,november:11,december:12,jan:1,apr:4,aug:8,dec:12,janeiro:1,fevereiro:2,marco:3,maio:5,junho:6,julho:7,setembro:9,outubro:10,novembro:11,dezembro:12,fev:2,mai:5,out:10,dez:12},y=new Map;function d(n,r="dd/MM/yyyy",o="en-US"){if(!n)return"";const a=u(n);if(!a)return"";const s=t(a);return r.replace(/yyyy|yy|MMMM|MMM|MM|M|dd|d/g,(n=>{switch(n){case"yyyy":return String(a.year).padStart(4,"0");case"yy":return String(a.year).slice(-2);case"MMMM":return new Intl.DateTimeFormat(o,{month:"long"}).format(s);case"MMM":return new Intl.DateTimeFormat(o,{month:"short"}).format(s).replace(/\.$/,"");case"MM":return e(a.month);case"M":return String(a.month);case"dd":return e(a.day);case"d":return String(a.day);default:return n}}))}function b(n,e){return n===e?0:n<e?-1:1}function M(n,e){const o=u(n);if(!o)return n;const s=t(o);return s.setDate(s.getDate()+e),a(r(s))}function w(n,e){const t=u(n);if(!t)return n;const r=t.month-1+e,o=t.year+Math.floor(r/12),s=(r%12+12)%12,c=new Date(o,s+1,0).getDate();return a({year:o,month:s+1,day:Math.min(t.day,c)})}function h(n){const e=u(n);return e?a({year:e.year,month:e.month,day:1}):n}function g(n,e={}){return!(o(n)&&function(n,e,t){return!(e&&b(n,e)<0||t&&b(n,t)>0)}(n,e.min,e.max)&&(!e.disabledDates||!e.disabledDates.includes(n))&&(!e.disabledDaysOfWeek||!e.disabledDaysOfWeek.includes(function(n){const e=u(n);return e?t(e).getDay():-1}(n))))}function v(n,e,t=1,o=6){const u=(new Date(n,e-1,1).getDay()-t+7)%7,s=new Date(n,e-1,1-u),c=[];for(let n=0;n<o;n++){const t=[];for(let o=0;o<7;o++){const u=new Date(s.getFullYear(),s.getMonth(),s.getDate()+(7*n+o));t.push({value:a(r(u)),inMonth:u.getMonth()===e-1})}c.push(t)}return c}function D(n,e=1,t="short"){const r=new Intl.DateTimeFormat(n,{weekday:t}),o=[];for(let n=0;n<7;n++){const t=new Date(2024,0,1+(n+(e-1)+7)%7);o.push(r.format(t))}return o}function j(n,e,t,r="long"){return new Intl.DateTimeFormat(t,{month:r,year:"numeric"}).format(new Date(n,e-1,1))}function p(n,e){const r=u(n);return r?new Intl.DateTimeFormat(e,{weekday:"long",day:"numeric",month:"long",year:"numeric"}).format(t(r)):""}export{s as a,w as b,b as c,M as d,g as e,d as f,j as g,D as h,o as i,v as j,p as k,c as l,u as p,h as s,t}
@@ -1 +0,0 @@
1
- import{t as e,p as c,H as o,c as r,h as t}from"./index.js";const a=c(class extends o{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coChange=r(this,"coChange",7),this.checked=!1,this.indeterminate=!1,this.size="small",this.disabled=!1,this.value="",this.appearance="default",this.handleClick=()=>{this.disabled||(this.indeterminate?(this.indeterminate=!1,this.checked=!1,this.coChange.emit(!1)):(this.checked=!this.checked,this.coChange.emit(this.checked)))}}render(){const e="overlay"===this.appearance,c=this.onColor&&(this.checked||this.indeterminate)?{background:this.onColor}:void 0;return t("div",{key:"7d7318c97238d5784bc5e97b4d062324567f4298",class:{"co-checkbox-row":!0,"co-checkbox-row--disabled":this.disabled},onClick:this.handleClick},t("span",{key:"6a9eb80dd31b3fdcbad3fd5375c24a7039d7ed91",role:"checkbox","aria-checked":this.indeterminate?"mixed":String(this.checked),"aria-label":this.label||"",class:{"co-checkbox":!0,[`co-checkbox--${this.size}`]:!0,"co-checkbox--overlay":e,"co-checkbox--checked":this.checked&&!this.indeterminate,"co-checkbox--indeterminate":this.indeterminate,"co-checkbox--disabled":this.disabled},style:c,part:"box"},e&&this.indeterminate&&t("svg",{key:"ea2fc2c66f3fdf9a385d30fe1c15a50196d61502",class:"co-checkbox__glyph",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},t("path",{key:"9a0c46128e14f5e62e956f51d292f8d59aa23bee",d:"M3 8h10",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round"})),e&&this.checked&&!this.indeterminate&&t("svg",{key:"5898d1b96e97a2ba71bd80ef4ee9446a1250e88e",class:"co-checkbox__glyph",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true"},t("path",{key:"9dcac76996e654417555489e7d2c1467848ca242",d:"M3.5 8.5l3 3 6-6.5",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"}))),this.label&&t("span",{key:"3833a6596021f89ac26cd5201911d8fa4ca2f19a",class:"co-checkbox__label",part:"label"},this.label))}static get style(){return":host{display:inline-flex;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-checkbox-row{display:flex;align-items:center;gap:var(--co-spacing-sm2);cursor:pointer}.co-checkbox-row--disabled{cursor:not-allowed}.co-checkbox__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;user-select:none}.co-checkbox-row--disabled .co-checkbox__label{color:var(--co-semantic-text-disabled)}.co-checkbox{position:relative;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:none;outline:none;padding:0;overflow:hidden;flex-shrink:0;box-sizing:border-box;transition:background 0.15s ease, border-color 0.15s ease}.co-checkbox--small{width:16px;height:16px;border-radius:var(--co-border-radius-xxs);}.co-checkbox--medium{width:20px;height:20px;border-radius:var(--co-spacing-sm);}.co-checkbox--large{width:24px;height:24px;border-radius:var(--co-spacing-sm);}.co-checkbox:not(.co-checkbox--checked){background:color-mix(in srgb, var(--co-semantic-surface-secondary) 35%, transparent);-webkit-backdrop-filter:blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));backdrop-filter:blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));border:1px solid var(--co-semantic-border-subtle)}.co-checkbox--checked{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--checked::after{content:'';display:block;box-sizing:border-box;border-style:solid;border-color:var(--co-semantic-on-primary);border-width:0 0 1.5px 1.5px;transform:rotate(-45deg) translateY(-15%)}.co-checkbox--small.co-checkbox--checked::after{width:7px;height:4px}.co-checkbox--medium.co-checkbox--checked::after{width:8px;height:5px}.co-checkbox--large.co-checkbox--checked::after{width:10px;height:6px}.co-checkbox--indeterminate{background:var(--co-semantic-surface-primary);border:none}.co-checkbox--indeterminate::after{content:'';display:block;background:var(--co-semantic-on-primary);border-radius:1px}.co-checkbox--small.co-checkbox--indeterminate::after{width:8px;height:1.5px}.co-checkbox--medium.co-checkbox--indeterminate::after{width:10px;height:1.75px}.co-checkbox--large.co-checkbox--indeterminate::after{width:12px;height:2px}.co-checkbox--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}.co-checkbox--overlay{border-radius:6px}.co-checkbox--overlay.co-checkbox--small{width:20px;height:20px;border-radius:6px}.co-checkbox--overlay.co-checkbox--medium,.co-checkbox--overlay.co-checkbox--large{width:22px;height:22px;border-radius:6px}.co-checkbox--overlay:not(.co-checkbox--checked):not(.co-checkbox--indeterminate){background:rgba(255, 255, 255, 0.9);box-shadow:inset 0 0 0 1px var(--co-color-opacity-negro-16, rgba(31, 28, 27, 0.16));border:none}.co-checkbox--overlay.co-checkbox--checked,.co-checkbox--overlay.co-checkbox--indeterminate{background:var(--co-color-primary-azul, #2563eb);border:none;box-shadow:none}.co-checkbox--overlay.co-checkbox--checked::after,.co-checkbox--overlay.co-checkbox--indeterminate::after{content:none}.co-checkbox__glyph{display:block;width:100%;height:100%;pointer-events:none}@supports not (background: color-mix(in srgb, red, transparent)){.co-checkbox:not(.co-checkbox--checked){background:transparent}}"}},[1,"co-checkbox",{checked:[1540],indeterminate:[1540],size:[1],disabled:[4],label:[1],value:[1],onColor:[1,"on-color"],appearance:[1]}]);function i(){"undefined"!=typeof customElements&&["co-checkbox"].forEach((c=>{"co-checkbox"===c&&(customElements.get(e(c))||customElements.define(e(c),a))}))}i();export{a as C,i as d}
@@ -1 +0,0 @@
1
- import{t as e,p as i,H as t,c as a,h as d}from"./index.js";import{R as s}from"./p-CWneqh4n.js";import{g as o}from"./p-C1DCLOEl.js";import{d as c}from"./p-B3U63yZw.js";import{f as l,l as r,e as n}from"./p-CyYF8IJE.js";const h=i(class extends t{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.coInput=a(this,"coInput",7),this.coChange=a(this,"coChange",7),this.coInvalid=a(this,"coInvalid",7),this.coClear=a(this,"coClear",7),this.coFocus=a(this,"coFocus",7),this.coBlur=a(this,"coBlur",7),this.value=null,this.size="md",this.locale="es-CO",this.displayFormat="d MMM yyyy",this.disabled=!1,this.readonly=!1,this.required=!1,this.clearable=!0,this.invalid=!1,this.layout="vertical",this.draft="",this.internalInvalid=!1,this.hasFocus=!1,this.handleInput=e=>{this.draft=e.target.value,this.internalInvalid=!1,this.coInput.emit(this.draft)},this.handleFocus=()=>{this.hasFocus=!0,this.coFocus.emit()},this.handleBlur=()=>{this.hasFocus=!1,this.commit(),this.coBlur.emit()},this.handleKeyDown=e=>{"Enter"===e.key&&(this.commit()||(e.preventDefault(),e.stopPropagation()))},this.handleClear=()=>{var e;this.draft="",this.internalInvalid=!1,null!==this.value&&(this.value=null,this.coChange.emit(null)),this.coClear.emit(),null===(e=this.inputEl)||void 0===e||e.focus()}}componentWillLoad(){this.draft=l(this.value,this.displayFormat,this.locale)}onValueChange(){this.hasFocus||(this.draft=l(this.value,this.displayFormat,this.locale),this.internalInvalid=!1)}async focusInput(){var e;null===(e=this.inputEl)||void 0===e||e.focus()}get order(){const e=this.displayFormat.toLowerCase();return e.startsWith("y")?"ymd":e.startsWith("m")?"mdy":"dmy"}get isInvalid(){return this.invalid||this.internalInvalid}get hasValue(){return""!==this.draft.trim()}commit(){const e=r(this.draft,{order:this.order,locale:this.locale});if("empty"===e.status)return this.internalInvalid=!1,null!==this.value&&(this.value=null,this.coChange.emit(null)),!0;if("invalid"===e.status||null===e.value)return this.internalInvalid=!0,this.coInvalid.emit({raw:this.draft}),!1;const i=e.value;return n(i,{min:this.min,max:this.max,disabledDates:f(this.disabledDates),disabledDaysOfWeek:p(this.disabledDaysOfWeek)})?(this.internalInvalid=!0,this.coInvalid.emit({raw:this.draft}),!1):(this.internalInvalid=!1,this.draft=l(i,this.displayFormat,this.locale),this.value!==i&&(this.value=i,this.coChange.emit(i)),!0)}render(){var e,i;const t=o(this.locale),a=this.clearable&&this.hasValue&&!this.disabled&&!this.readonly,c=this.placeholder||t.setDate,l=this.isInvalid?this.errorMessage:this.helperText;return d("div",{key:"3536bc260fea07e059915baf8b094426b5304b7f",class:{"co-date-field":!0,"co-date-field--disabled":this.disabled,"co-date-field--focused":this.hasFocus,"co-date-field--filled":this.hasValue,"co-date-field--invalid":this.isInvalid,[`co-date-field--${this.size}`]:!0},part:"wrapper"},this.label&&d("div",{key:"5e241dc942081c61b96b8c58a69e03bba89ccdce",class:"co-date-field__labels"},d("label",{key:"0b5c7b758d48d322dcb4587a662ebb4ca2f5843b",class:"co-date-field__label",part:"label"},this.label,d(s,{key:"3b134781a1b1199bf96140a74e37e5269ec58f86",required:this.required}))),d("div",{key:"3985035d2fb8b52c91dd3e5ad12989e0e94d59a6",class:"co-date-field__field-row"},d("div",{key:"075d979038a918cb9936153031e8a4753d6fed19",class:"co-date-field__field",part:"field"},d("co-icon",{key:"c95e2441e0301031e54a57dfac9f58b071f50e9c",name:"calendar",size:16,class:"co-date-field__icon"}),d("div",{key:"bc0c45cf1bcc0f26cdb3e0e5d757fe1db60b2b5e",class:"co-date-field__input-wrapper"},d("input",{key:"804eedd12a02fc505e2b6743b17d189c4f3cf7cb",ref:e=>this.inputEl=e,class:"co-date-field__native",type:"text",inputMode:"numeric",autocomplete:"off",value:this.draft,placeholder:c,disabled:this.disabled,readOnly:this.readonly,required:this.required,"aria-invalid":this.isInvalid?"true":"false","aria-label":this.label?void 0:t.dateLabel,onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,part:"input"})),this.clearable&&d("button",{key:"f39034c484ebb4d07e173feea4bcc7fe16d53b5a",class:{"co-date-field__clear":!0,"co-date-field__clear--hidden":!a},type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:this.handleClear,"aria-label":null!==(e=this.clearLabel)&&void 0!==e?e:t.clearDate,part:"clear"},d("co-icon",{key:"ca94d8bca29632e70e08f99ef5605f24df458d25",name:"x-circle",size:16,weight:"fill"})))),this.name&&d("input",{key:"3dd400a30b59443f232d8001852811aeaa4945f5",type:"hidden",name:this.name,value:null!==(i=this.value)&&void 0!==i?i:""}),l&&d("div",{key:"d5981fda3e0ab19fea518acddc4cf1c2641bbdd1",class:{"co-date-field__helper":!0,"co-date-field__helper--error":this.isInvalid},part:"helper"},this.isInvalid&&d("co-icon",{key:"e111d135454ac081770edddb290929903c376fea",name:"warning-circle",size:14,class:"co-date-field__helper-icon"}),d("span",{key:"da47256ba021dce0590ce3adfcd602b8715d7184",class:"co-date-field__helper-text"},l)))}get el(){return this}static get watchers(){return{value:[{onValueChange:0}]}}static get style(){return":host{display:block;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-date-field{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}.co-date-field__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-date-field__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1;white-space:nowrap;cursor:default}.co-date-field__field-row{display:flex;align-items:stretch}.co-date-field--s .co-date-field__field{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm)}.co-date-field--sm .co-date-field__field{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm)}.co-date-field--lg .co-date-field__field{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg)}.co-date-field__field{display:flex;align-items:center;gap:var(--co-spacing-sm2);padding:var(--co-spacing-sm2) var(--co-spacing-md);background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);transition:border-color 0.15s ease, box-shadow 0.15s ease;min-height:40px;box-sizing:border-box;overflow:hidden;flex:1;min-width:0}.co-date-field__icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-date-field__input-wrapper{flex:1;display:flex;align-items:center;min-width:0;min-height:22px;padding:0}.co-date-field__native{width:100%;border:none;outline:none;background:transparent;font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:inherit;line-height:1;color:var(--co-semantic-text-default);padding:0;margin:0}.co-date-field__native::placeholder{color:var(--co-semantic-text-muted)}.co-date-field__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:16px;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color 0.15s ease}.co-date-field__clear--hidden{visibility:hidden;pointer-events:none}.co-date-field__clear:hover{color:var(--co-semantic-text-default)}.co-date-field__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-date-field__helper-icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-date-field__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1;letter-spacing:var(--co-font-letter-spacing-body)}.co-date-field--focused .co-date-field__field{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-date-field--disabled .co-date-field__labels .co-date-field__label{color:var(--co-semantic-text-disabled)}.co-date-field--disabled .co-date-field__field{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-date-field--disabled .co-date-field__native{color:var(--co-semantic-text-disabled);cursor:not-allowed}.co-date-field--disabled .co-date-field__native::placeholder{color:var(--co-semantic-text-disabled)}.co-date-field--disabled .co-date-field__icon{color:var(--co-semantic-text-disabled)}.co-date-field--invalid .co-date-field__field{border-color:var(--co-semantic-status-error)}.co-date-field--invalid.co-date-field--focused .co-date-field__field{border-color:var(--co-semantic-status-error);box-shadow:0 0 0 2px rgba(170, 46, 27, 0.12)}.co-date-field__helper--error .co-date-field__helper-icon,.co-date-field__helper--error .co-date-field__helper-text{color:var(--co-semantic-status-error)}:host([layout='horizontal']) .co-date-field{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-date-field__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-date-field__label{white-space:normal}:host([layout='horizontal']) .co-date-field>:not(.co-date-field__labels){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-color-status-error)}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}"}},[1,"co-date-field",{value:[1025],size:[513],min:[1],max:[1],disabledDates:[1,"disabled-dates"],disabledDaysOfWeek:[1,"disabled-days-of-week"],locale:[1],displayFormat:[1,"display-format"],label:[1],placeholder:[1],name:[1],disabled:[4],readonly:[4],required:[4],clearable:[4],invalid:[4],errorMessage:[1,"error-message"],helperText:[1,"helper-text"],layout:[513],clearLabel:[1,"clear-label"],draft:[32],internalInvalid:[32],hasFocus:[32],focusInput:[64]},void 0,{value:[{onValueChange:0}]}]);function f(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.trim()){try{const i=JSON.parse(e);if(Array.isArray(i))return i.map(String)}catch(e){}return e.split(",").map((e=>e.trim())).filter(Boolean)}return[]}function p(e){if(Array.isArray(e))return e;if("string"==typeof e&&e.trim()){try{const i=JSON.parse(e);if(Array.isArray(i))return i.map(Number).filter((e=>!Number.isNaN(e)))}catch(e){}return e.split(",").map((e=>Number(e.trim()))).filter((e=>!Number.isNaN(e)))}return[]}function u(){"undefined"!=typeof customElements&&["co-date-field","co-icon"].forEach((i=>{switch(i){case"co-date-field":customElements.get(e(i))||customElements.define(e(i),h);break;case"co-icon":customElements.get(e(i))||c()}}))}u();export{h as C,u as d}
@@ -1,379 +0,0 @@
1
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-BCEz3S-z.js';
2
- import { c as compareYMD, d as addDays, a as todayYMD, p as parseISO, g as getMonthMatrix, h as isDisabled, j as getWeekdayLabels } from './dates-tPYikBRJ.js';
3
- import { z as zonedDateKey, b as zonedMinutesOfDay, a as toUtcISO, c as getWallClock, w as wallClockToEpoch } from './tz-B6JZk8fL.js';
4
-
5
- /**
6
- * layout-month.ts — lane assignment for the month grid.
7
- *
8
- * Multi-day (all-day) events render as continuous bars spanning day cells; they
9
- * must keep a stable vertical lane across the days they cover, and overlapping
10
- * events must not share a lane. Single-day chips (timed events, single all-day)
11
- * are degenerate one-column bars. Days exceeding `maxLanes` report an overflow
12
- * count for the "+N more" affordance.
13
- *
14
- * Days are addressed by a week matrix of "YYYY-MM-DD" keys (e.g. from
15
- * `getMonthMatrix` in `@prolibu-suite/cobalt-date-utils`). Lexicographic string
16
- * comparison is correct for ISO dates, so no Date objects are needed here.
17
- */
18
- /** Inclusive day span of an event in calendar days. */
19
- function eventDaySpan(event, timeZone) {
20
- if (event.allDay) {
21
- // end is exclusive → last visible day is end - 1.
22
- const firstDay = event.start.slice(0, 10);
23
- const lastDay = addDays(event.end.slice(0, 10), -1);
24
- if (compareYMD(lastDay, firstDay) < 0)
25
- return { event, firstDay, lastDay: firstDay };
26
- return { event, firstDay, lastDay };
27
- }
28
- // Timed events occupy their (wall-clock) start day in the month grid.
29
- const day = timeZone ? zonedDateKey(event.startMs, timeZone) : event.start.slice(0, 10);
30
- return { event, firstDay: day, lastDay: day };
31
- }
32
- function layoutMonth(events, weeks, options = {}) {
33
- const maxLanes = options.maxLanes ?? Infinity;
34
- const segments = [];
35
- const overflow = {};
36
- let laneCount = 0;
37
- const spans = events
38
- .map((e) => eventDaySpan(e, options.timeZone))
39
- .filter((s) => s !== null);
40
- weeks.forEach((days, weekIndex) => {
41
- if (!days.length)
42
- return;
43
- const weekStart = days[0];
44
- const weekEnd = days[days.length - 1];
45
- const colOf = new Map(days.map((d, i) => [d, i]));
46
- // Candidate segments intersecting this week.
47
- const candidates = spans
48
- .filter((s) => compareYMD(s.firstDay, weekEnd) <= 0 && compareYMD(weekStart, s.lastDay) <= 0)
49
- .map((s) => {
50
- const segFirst = compareYMD(s.firstDay, weekStart) >= 0 ? s.firstDay : weekStart;
51
- const segLast = compareYMD(s.lastDay, weekEnd) <= 0 ? s.lastDay : weekEnd;
52
- return {
53
- span: s,
54
- startCol: colOf.get(segFirst) ?? 0,
55
- endCol: colOf.get(segLast) ?? days.length - 1,
56
- };
57
- })
58
- // Multi-day/earlier events claim lanes first → stable, readable bars.
59
- .sort((a, b) => a.startCol - b.startCol ||
60
- b.endCol - b.startCol - (a.endCol - a.startCol) ||
61
- a.span.event.startMs - b.span.event.startMs ||
62
- (a.span.event.id < b.span.event.id ? -1 : 1));
63
- const placed = [];
64
- for (const cand of candidates) {
65
- let lane = 0;
66
- while (placed.some((p) => p.lane === lane && !(cand.endCol < p.startCol || cand.startCol > p.endCol))) {
67
- lane++;
68
- }
69
- placed.push({ lane, startCol: cand.startCol, endCol: cand.endCol });
70
- laneCount = Math.max(laneCount, lane + 1);
71
- segments.push({
72
- eventId: cand.span.event.id,
73
- weekIndex,
74
- lane,
75
- startCol: cand.startCol,
76
- endCol: cand.endCol,
77
- isStart: compareYMD(cand.span.firstDay, weekStart) >= 0,
78
- isEnd: compareYMD(cand.span.lastDay, weekEnd) <= 0,
79
- continuesBefore: compareYMD(cand.span.firstDay, weekStart) < 0,
80
- continuesAfter: compareYMD(cand.span.lastDay, weekEnd) > 0,
81
- });
82
- }
83
- });
84
- if (Number.isFinite(maxLanes)) {
85
- for (const seg of segments) {
86
- if (seg.lane >= maxLanes) {
87
- for (let c = seg.startCol; c <= seg.endCol; c++) {
88
- const dk = weeks[seg.weekIndex][c];
89
- overflow[dk] = (overflow[dk] ?? 0) + 1;
90
- }
91
- }
92
- }
93
- }
94
- return { segments, overflow, laneCount };
95
- }
96
-
97
- const coCalendarMonthCss = () => `:host{display:block;font-family:var(--co-font-family-primary);--co-cal-daynum-h:24px;--co-cal-lane-h:22px;--co-cal-min-week-h:92px;--co-cal-gap:2px;--co-cal-surface:var(--co-semantic-surface-page);--co-cal-border:var(--co-semantic-border-default);--co-cal-text:var(--co-semantic-text-default);--co-cal-text-muted:var(--co-semantic-text-muted);--co-cal-hover:var(--co-semantic-surface-hover);--co-cal-today-ring:var(--co-color-primary-azul);--co-cal-event-bg:var(--co-color-primary-azul);--co-cal-event-border:transparent;--co-cal-event-text:var(--co-color-base-blanco, #fff);--co-cal-event-text-light:var(--co-color-base-blanco, #fff);--co-cal-event-text-dark:var(--co-semantic-text-default)}.cal-month{display:flex;flex-direction:column;border:1px solid var(--co-cal-border);border-radius:var(--co-border-radius-xs);overflow:hidden;background:var(--co-cal-surface)}.cal-month__dow{display:grid;grid-template-columns:repeat(7, 1fr);border-bottom:1px solid var(--co-cal-border)}.cal-month__dow-cell{padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-10, 10px);font-weight:600;text-transform:uppercase;letter-spacing:0.04em;color:var(--co-cal-text-muted);text-align:right}.cal-month__week{position:relative;min-height:var(--co-cal-min-week-h)}.cal-month__week:not(:last-child){border-bottom:1px solid var(--co-cal-border)}.cal-month__days{display:grid;grid-template-columns:repeat(7, 1fr);height:100%;position:absolute;inset:0}.cal-month__day{border-right:1px solid var(--co-cal-border);padding:var(--co-spacing-xxs);cursor:pointer;transition:background 0.1s ease}.cal-month__day:last-child{border-right:0}.cal-month__day:hover{background:var(--co-cal-hover)}.cal-month__day:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:-2px}.cal-month__day--outside .cal-month__daynum{color:var(--co-cal-text-muted)}.cal-month__day--disabled{cursor:not-allowed;background:color-mix(in srgb, var(--co-cal-border) 20%, transparent)}.cal-month__day--drag-over{background:color-mix(in srgb, var(--co-cal-today-ring) 14%, transparent);box-shadow:inset 0 0 0 2px var(--co-cal-today-ring)}.cal-month__daynum{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:auto;float:right;font-size:var(--co-font-size-12, 12px);color:var(--co-cal-text);border-radius:var(--co-border-radius-full)}.cal-month__day--today .cal-month__daynum{background:var(--co-cal-today-ring);color:var(--co-color-base-blanco, #fff);font-weight:600}.cal-month__events{position:absolute;inset:0;pointer-events:none;}.cal-chip,.cal-month__more{position:absolute;height:calc(var(--co-cal-lane-h) - 3px);box-sizing:border-box;pointer-events:auto;display:flex;align-items:center;gap:var(--co-spacing-xxs);margin:0 3px;padding:0 var(--co-spacing-xs);border:1px solid var(--co-cal-event-border);border-radius:var(--co-border-radius-xxs);font-family:inherit;font-size:var(--co-font-size-12, 12px);line-height:1;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap}.cal-chip{background:var(--co-cal-event-bg);color:var(--co-cal-event-text)}.cal-chip:hover{filter:brightness(0.95)}.cal-chip:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:1px}.cal-chip--all-day{font-weight:500}.cal-chip__dot{flex:0 0 auto;width:7px;height:7px;border-radius:var(--co-border-radius-full);background:var(--co-cal-event-bg)}.cal-chip:not(.cal-chip--all-day){background:transparent;color:var(--co-cal-text);border-color:transparent}.cal-chip:not(.cal-chip--all-day):hover{background:var(--co-cal-hover);filter:none}.cal-chip__time{flex:0 0 auto;color:var(--co-cal-text-muted);font-variant-numeric:tabular-nums}.cal-chip__title{overflow:hidden;text-overflow:ellipsis}.cal-chip__ext{flex:0 0 auto;opacity:0.8}.cal-chip--past{opacity:0.55}.cal-chip--locked{cursor:default}.cal-chip--external{border-style:dashed}.cal-chip--dragging{opacity:0.4}.cal-chip--continues-before{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:0}.cal-chip--continues-after{border-top-right-radius:0;border-bottom-right-radius:0;margin-right:0}.cal-month__more{background:transparent;color:var(--co-cal-text-muted);border-color:transparent;font-weight:600;font-size:var(--co-font-size-11, 11px)}.cal-month__more:hover{background:var(--co-cal-hover);color:var(--co-cal-text)}`;
98
-
99
- const CoCalendarMonth = class {
100
- constructor(hostRef) {
101
- registerInstance(this, hostRef);
102
- this.coDaySelect = createEvent(this, "coDaySelect", 3);
103
- this.coEventClick = createEvent(this, "coEventClick", 3);
104
- this.coEventDrop = createEvent(this, "coEventDrop", 3);
105
- this.coMoreClick = createEvent(this, "coMoreClick", 3);
106
- /** Normalized events to render (from the engine's `normalizeEvents`). */
107
- this.events = [];
108
- /** BCP-47 locale for weekday labels. */
109
- this.locale = 'es-CO';
110
- /** First day of week, 0=Sun..6=Sat. */
111
- this.firstDayOfWeek = 1;
112
- /** Master interaction gate. */
113
- this.editable = true;
114
- /** Allow empty-day click to request a create. */
115
- this.selectable = true;
116
- /** Max event lanes per day before "+N more". */
117
- this.maxLanes = 3;
118
- /** Day currently hovered while dragging an event. */
119
- this.dragOverDate = null;
120
- /** Id of the event being dragged. */
121
- this.dragId = null;
122
- this.onPointerUp = () => this.finishDrag();
123
- this.handleKeyDown = (e) => {
124
- const cur = this.focused;
125
- let handled = true;
126
- switch (e.key) {
127
- case 'ArrowLeft':
128
- this.moveFocus(addDays(cur, -1));
129
- break;
130
- case 'ArrowRight':
131
- this.moveFocus(addDays(cur, 1));
132
- break;
133
- case 'ArrowUp':
134
- this.moveFocus(addDays(cur, -7));
135
- break;
136
- case 'ArrowDown':
137
- this.moveFocus(addDays(cur, 7));
138
- break;
139
- case 'Enter':
140
- case ' ':
141
- this.selectDay(cur);
142
- break;
143
- default:
144
- handled = false;
145
- }
146
- if (handled) {
147
- e.preventDefault();
148
- e.stopPropagation();
149
- }
150
- };
151
- }
152
- componentWillLoad() {
153
- this.focused = this.defaultFocus();
154
- }
155
- connectedCallback() {
156
- window.addEventListener('pointerup', this.onPointerUp);
157
- }
158
- disconnectedCallback() {
159
- window.removeEventListener('pointerup', this.onPointerUp);
160
- }
161
- defaultFocus() {
162
- const first = `${pad4(this.year)}-${pad2(this.month)}-01`;
163
- const today = todayYMD();
164
- const t = parseISO(today);
165
- return t.year === this.year && t.month === this.month ? today : first;
166
- }
167
- get matrix() {
168
- return getMonthMatrix(this.year, this.month, this.firstDayOfWeek).map((row) => row.map((c) => c.value));
169
- }
170
- eventById(id) {
171
- return this.events.find((e) => e.id === id);
172
- }
173
- isDayInteractable(date) {
174
- return !isDisabled(date, { min: this.minDate, max: this.maxDate });
175
- }
176
- // ── Selection / activation ──────────────────────────────────────────────
177
- selectDay(date) {
178
- if (!this.selectable || !this.isDayInteractable(date))
179
- return;
180
- this.coDaySelect.emit({ date });
181
- }
182
- activateEvent(id) {
183
- this.coEventClick.emit({ id });
184
- }
185
- // ── Keyboard (WAI-ARIA grid, forked from co-calendar) ───────────────────
186
- moveFocus(next) {
187
- this.focused = next;
188
- requestAnimationFrame(() => this.focusCell());
189
- }
190
- focusCell() {
191
- var _a, _b;
192
- (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector(`[data-date="${this.focused}"]`)) === null || _b === void 0 ? void 0 : _b.focus();
193
- }
194
- // ── Drag-move (day granularity) ─────────────────────────────────────────
195
- startDrag(e, id) {
196
- const ev = this.eventById(id);
197
- if (!ev || !this.editable || ev.editable === false || ev.startEditable === false)
198
- return;
199
- e.preventDefault();
200
- e.stopPropagation();
201
- this.dragId = id;
202
- this.dragOverDate = null;
203
- }
204
- finishDrag() {
205
- const id = this.dragId;
206
- const target = this.dragOverDate;
207
- this.dragId = null;
208
- this.dragOverDate = null;
209
- if (!id || !target)
210
- return;
211
- const ev = this.eventById(id);
212
- if (!ev)
213
- return;
214
- const originDay = ev.allDay
215
- ? ev.start.slice(0, 10)
216
- : zonedDateKey(ev.startMs, this.timeZone);
217
- const deltaDays = daysBetween(originDay, target);
218
- if (deltaDays === 0)
219
- return;
220
- if (!this.isDayInteractable(target))
221
- return;
222
- const shifted = shiftEventByDays(ev, deltaDays, this.timeZone);
223
- this.coEventDrop.emit({
224
- id,
225
- start: shifted.start,
226
- end: shifted.end,
227
- oldStart: ev.start,
228
- oldEnd: ev.end,
229
- allDay: ev.allDay,
230
- });
231
- }
232
- // ── Render ──────────────────────────────────────────────────────────────
233
- renderChip(seg, weekDays) {
234
- var _a;
235
- const ev = this.eventById(seg.eventId);
236
- if (!ev)
237
- return null;
238
- const cols = weekDays.length;
239
- const left = (seg.startCol / cols) * 100;
240
- const width = ((seg.endCol - seg.startCol + 1) / cols) * 100;
241
- const isPast = ev.endMs <= Date.now();
242
- const isExternal = ((_a = ev.extendedProps) === null || _a === void 0 ? void 0 : _a.isExternal) === true;
243
- const locked = !this.editable || ev.editable === false;
244
- const timeText = ev.allDay || !seg.isStart
245
- ? ''
246
- : minutesToLabel(zonedMinutesOfDay(ev.startMs, this.timeZone), this.locale);
247
- const style = {
248
- left: `${left}%`,
249
- width: `${width}%`,
250
- top: `calc(var(--co-cal-daynum-h) + ${seg.lane} * var(--co-cal-lane-h))`,
251
- };
252
- if (ev.backgroundColor) {
253
- style['--co-cal-event-bg'] = ev.backgroundColor;
254
- style['--co-cal-event-text'] = readableText(ev.backgroundColor);
255
- }
256
- if (ev.borderColor)
257
- style['--co-cal-event-border'] = ev.borderColor;
258
- return (h("button", { type: "button", key: `${seg.eventId}-${seg.weekIndex}`, class: {
259
- 'cal-chip': true,
260
- 'cal-chip--all-day': ev.allDay,
261
- 'cal-chip--past': isPast,
262
- 'cal-chip--external': isExternal,
263
- 'cal-chip--locked': locked,
264
- 'cal-chip--dragging': this.dragId === ev.id,
265
- 'cal-chip--continues-before': seg.continuesBefore,
266
- 'cal-chip--continues-after': seg.continuesAfter,
267
- }, style: style, title: ev.title, "aria-label": ev.title, onClick: (e) => {
268
- e.stopPropagation();
269
- this.activateEvent(ev.id);
270
- }, onPointerDown: (e) => this.startDrag(e, ev.id) }, !ev.allDay && h("span", { class: "cal-chip__dot", "aria-hidden": "true" }), timeText && h("span", { class: "cal-chip__time" }, timeText), h("span", { class: "cal-chip__title" }, ev.title || '—'), isExternal && h("co-icon", { name: "link", size: 11, class: "cal-chip__ext" })));
271
- }
272
- render() {
273
- var _a;
274
- const matrix = this.matrix;
275
- const normalized = this.events;
276
- const layout = layoutMonth(normalized, matrix, {
277
- maxLanes: this.maxLanes,
278
- timeZone: this.timeZone,
279
- });
280
- const segByWeek = new Map();
281
- for (const seg of layout.segments) {
282
- if (seg.lane >= this.maxLanes)
283
- continue;
284
- const arr = (_a = segByWeek.get(seg.weekIndex)) !== null && _a !== void 0 ? _a : [];
285
- arr.push(seg);
286
- segByWeek.set(seg.weekIndex, arr);
287
- }
288
- const short = getWeekdayLabels(this.locale, this.firstDayOfWeek, 'short');
289
- const long = getWeekdayLabels(this.locale, this.firstDayOfWeek, 'long');
290
- const today = todayYMD();
291
- return (h("div", { key: '51781013cbfce9f2e8d07de9a46766c3a9326cbe', class: "cal-month", part: "grid", role: "grid", onKeyDown: this.handleKeyDown }, h("div", { key: 'ee3545fbd982390cd233cb54b33060b7cb9b08e1', class: "cal-month__dow", role: "row" }, short.map((lbl, i) => (h("span", { class: "cal-month__dow-cell", role: "columnheader", "aria-label": long[i] }, lbl)))), matrix.map((week, wi) => {
292
- var _a;
293
- return (h("div", { class: "cal-month__week", role: "row" }, h("div", { class: "cal-month__days" }, week.map((date) => {
294
- const ymd = parseISO(date);
295
- const inMonth = ymd.month === this.month;
296
- const isToday = compareYMD(date, today) === 0;
297
- const isFocused = compareYMD(date, this.focused) === 0;
298
- const interactable = this.isDayInteractable(date);
299
- return (h("div", { role: "gridcell", "data-date": date, tabIndex: isFocused ? 0 : -1, "aria-current": isToday ? 'date' : undefined, "aria-disabled": interactable ? undefined : 'true', class: {
300
- 'cal-month__day': true,
301
- 'cal-month__day--outside': !inMonth,
302
- 'cal-month__day--today': isToday,
303
- 'cal-month__day--disabled': !interactable,
304
- 'cal-month__day--drag-over': this.dragId !== null && this.dragOverDate === date,
305
- }, onClick: () => this.selectDay(date), onPointerEnter: () => {
306
- if (this.dragId)
307
- this.dragOverDate = date;
308
- } }, h("span", { class: "cal-month__daynum" }, ymd.day)));
309
- })), h("div", { class: "cal-month__events" }, ((_a = segByWeek.get(wi)) !== null && _a !== void 0 ? _a : []).map((seg) => this.renderChip(seg, week)), week.map((date, col) => {
310
- var _a;
311
- const more = (_a = layout.overflow[date]) !== null && _a !== void 0 ? _a : 0;
312
- if (more <= 0)
313
- return null;
314
- return (h("button", { type: "button", class: "cal-month__more", style: {
315
- left: `${(col / week.length) * 100}%`,
316
- width: `${(1 / week.length) * 100}%`,
317
- top: `calc(var(--co-cal-daynum-h) + ${this.maxLanes} * var(--co-cal-lane-h))`,
318
- }, onClick: (e) => {
319
- e.stopPropagation();
320
- this.coMoreClick.emit({ date });
321
- } }, "+", more));
322
- }))));
323
- })));
324
- }
325
- get el() { return getElement(this); }
326
- };
327
- // ── helpers ─────────────────────────────────────────────────────────────────
328
- function pad2(n) {
329
- return String(n).padStart(2, '0');
330
- }
331
- function pad4(n) {
332
- return String(n).padStart(4, '0');
333
- }
334
- /** Whole-day delta between two "YYYY-MM-DD" using UTC-midnight arithmetic. */
335
- function daysBetween(a, b) {
336
- const [ay, am, ad] = a.split('-').map(Number);
337
- const [by, bm, bd] = b.split('-').map(Number);
338
- return Math.round((Date.UTC(by, bm - 1, bd) - Date.UTC(ay, am - 1, ad)) / 86400000);
339
- }
340
- /** Shift an event by N days, preserving wall-clock time (DST-correct for timed). */
341
- function shiftEventByDays(ev, deltaDays, timeZone) {
342
- if (ev.allDay) {
343
- return {
344
- start: addDays(ev.start.slice(0, 10), deltaDays),
345
- end: addDays(ev.end.slice(0, 10), deltaDays),
346
- };
347
- }
348
- return {
349
- start: toUtcISO(shiftInstant(ev.startMs, deltaDays, timeZone)),
350
- end: toUtcISO(shiftInstant(ev.endMs, deltaDays, timeZone)),
351
- };
352
- }
353
- function shiftInstant(ms, deltaDays, timeZone) {
354
- const wc = getWallClock(ms, timeZone);
355
- const newDate = addDays(`${pad4(wc.year)}-${pad2(wc.month)}-${pad2(wc.day)}`, deltaDays);
356
- const [y, m, d] = newDate.split('-').map(Number);
357
- return wallClockToEpoch({ year: y, month: m, day: d, hour: wc.hour, minute: wc.minute, second: wc.second }, timeZone);
358
- }
359
- /** Short localized time label, e.g. "9:00 a. m." / "09:00". */
360
- function minutesToLabel(minutes, locale) {
361
- const h = Math.floor(minutes / 60);
362
- const m = minutes % 60;
363
- return new Intl.DateTimeFormat(locale, { hour: 'numeric', minute: '2-digit' }).format(new Date(2000, 0, 1, h, m));
364
- }
365
- /** Pick a readable text token for an arbitrary background color (YIQ luminance). */
366
- function readableText(bg) {
367
- const hex = bg.replace('#', '').trim();
368
- if (hex.length !== 3 && hex.length !== 6)
369
- return 'var(--co-cal-event-text)';
370
- const full = hex.length === 3 ? hex.split('').map((c) => c + c).join('') : hex;
371
- const r = parseInt(full.slice(0, 2), 16);
372
- const g = parseInt(full.slice(2, 4), 16);
373
- const b = parseInt(full.slice(4, 6), 16);
374
- const yiq = (r * 299 + g * 587 + b * 114) / 1000;
375
- return yiq >= 150 ? 'var(--co-cal-event-text-dark)' : 'var(--co-cal-event-text-light)';
376
- }
377
- CoCalendarMonth.style = coCalendarMonthCss();
378
-
379
- export { CoCalendarMonth as co_calendar_month };
@@ -1,24 +0,0 @@
1
- import { r as registerInstance, h } from './index-BCEz3S-z.js';
2
-
3
- const coSkeletonCss = () => `:host{display:block}.co-skeleton{height:1em;border-radius:var(--co-border-radius-xs);background:linear-gradient( 90deg, var(--co-semantic-surface-secondary) 0%, var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.04)) 50%, var(--co-semantic-surface-secondary) 100% );background-size:200% 100%;animation:co-skeleton-sweep 1.2s ease-in-out infinite}.co-skeleton--text{border-radius:var(--co-border-radius-xxs)}.co-skeleton--circle{border-radius:var(--co-border-radius-full)}@keyframes co-skeleton-sweep{0%{background-position:200% 0}100%{background-position:-200% 0}}@media (prefers-reduced-motion: reduce){.co-skeleton{animation:none}}`;
4
-
5
- const CoSkeleton = class {
6
- constructor(hostRef) {
7
- registerInstance(this, hostRef);
8
- /** rect (default) | text (radio menor) | circle */
9
- this.variant = 'rect';
10
- /** Ancho CSS (default 100%) */
11
- this.width = '100%';
12
- /** Alto CSS (default por variante en CSS) */
13
- this.height = '';
14
- }
15
- render() {
16
- const style = { width: this.width };
17
- if (this.height)
18
- style.height = this.height;
19
- return (h("div", { key: '62e14646999122acf4190e503bc89ba1a75a16a0', class: { 'co-skeleton': true, [`co-skeleton--${this.variant}`]: true }, part: "skeleton", style: style, "aria-hidden": "true" }));
20
- }
21
- };
22
- CoSkeleton.style = coSkeletonCss();
23
-
24
- export { CoSkeleton as co_skeleton };