@prolibu-suite/cobalt-core 0.11.6 → 0.11.7

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 (632) hide show
  1. package/custom-elements.json +160 -46
  2. package/dist/cjs/co-action-bar.cjs.entry.js +1 -1
  3. package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
  5. package/dist/cjs/co-avatar.cjs.entry.js +6 -3
  6. package/dist/cjs/co-button.cjs.entry.js +14 -6
  7. package/dist/cjs/co-calendar-month_2.cjs.entry.js +9 -5
  8. package/dist/cjs/co-calendar_3.cjs.entry.js +23 -7
  9. package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
  10. package/dist/cjs/co-checkbox.cjs.entry.js +1 -1
  11. package/dist/cjs/co-chip_2.cjs.entry.js +4 -4
  12. package/dist/cjs/co-color-picker.cjs.entry.js +24 -5
  13. package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
  14. package/dist/cjs/co-combobox.cjs.entry.js +7 -5
  15. package/dist/cjs/co-command-search.cjs.entry.js +1 -1
  16. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  17. package/dist/cjs/co-data-table.cjs.entry.js +1 -1
  18. package/dist/cjs/co-date-picker.cjs.entry.js +1 -1
  19. package/dist/cjs/co-date-range-picker.cjs.entry.js +1 -1
  20. package/dist/cjs/co-date-range.cjs.entry.js +1 -1
  21. package/dist/cjs/co-date-time-picker.cjs.entry.js +3 -3
  22. package/dist/cjs/co-document-editor.cjs.entry.js +108 -7
  23. package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
  24. package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
  25. package/dist/cjs/co-emoji-picker.cjs.entry.js +2 -2
  26. package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
  27. package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
  28. package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
  29. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  30. package/dist/cjs/co-file-field.cjs.entry.js +87 -16
  31. package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
  32. package/dist/cjs/co-gradient-bar.cjs.entry.js +4 -4
  33. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  34. package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
  35. package/dist/cjs/co-icon.cjs.entry.js +2 -2
  36. package/dist/cjs/co-input.cjs.entry.js +1 -1
  37. package/dist/cjs/co-json-field.cjs.entry.js +4 -4
  38. package/dist/cjs/co-kbd_2.cjs.entry.js +3 -3
  39. package/dist/cjs/co-lightbox.cjs.entry.js +71 -7
  40. package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
  41. package/dist/cjs/co-list-item.cjs.entry.js +4 -4
  42. package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
  43. package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
  45. package/dist/cjs/co-menu.cjs.entry.js +3 -3
  46. package/dist/cjs/co-modal.cjs.entry.js +23 -3
  47. package/dist/cjs/co-navbar.cjs.entry.js +2 -2
  48. package/dist/cjs/co-number-field.cjs.entry.js +9 -5
  49. package/dist/cjs/co-overlay.cjs.entry.js +2 -2
  50. package/dist/cjs/co-page-header.cjs.entry.js +1 -1
  51. package/dist/cjs/co-phone-field.cjs.entry.js +52 -2
  52. package/dist/cjs/co-popover.cjs.entry.js +33 -4
  53. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  54. package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
  55. package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
  56. package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
  57. package/dist/cjs/co-radio.cjs.entry.js +3 -3
  58. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  59. package/dist/cjs/co-ref-field.cjs.entry.js +15 -8
  60. package/dist/cjs/co-rich-text-editor.cjs.entry.js +80 -23
  61. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +105 -2
  62. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +2 -2
  63. package/dist/cjs/co-row.cjs.entry.js +2 -2
  64. package/dist/cjs/co-select.cjs.entry.js +10 -8
  65. package/dist/cjs/co-separator.cjs.entry.js +1 -1
  66. package/dist/cjs/co-sidebar-nav.cjs.entry.js +11 -9
  67. package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
  68. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  69. package/dist/cjs/co-swatch-grid.cjs.entry.js +3 -3
  70. package/dist/cjs/co-switch.cjs.entry.js +4 -4
  71. package/dist/cjs/co-tab-group.cjs.entry.js +110 -12
  72. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  73. package/dist/cjs/co-tags-field.cjs.entry.js +7 -7
  74. package/dist/cjs/co-textarea.cjs.entry.js +5 -5
  75. package/dist/cjs/co-tile.cjs.entry.js +1 -1
  76. package/dist/cjs/co-time-field.cjs.entry.js +1 -1
  77. package/dist/cjs/co-toast.cjs.entry.js +1 -1
  78. package/dist/cjs/co-toggle-button-group.cjs.entry.js +6 -4
  79. package/dist/cjs/co-toggle-button.cjs.entry.js +5 -3
  80. package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
  81. package/dist/cjs/co-video.cjs.entry.js +2 -2
  82. package/dist/cjs/cobalt.cjs.js +1 -1
  83. package/dist/cjs/{color-DQVrQGi0.js → color-DlKNWtdc.js} +38 -2
  84. package/dist/cjs/escapeLayers-DlCir9Sr.js +22 -0
  85. package/dist/cjs/fieldChip-DbYMfylq.js +7 -0
  86. package/dist/cjs/{gradientStops-CMpH4fB_.js → gradientStops-xZbv7bi6.js} +1 -1
  87. package/dist/cjs/{index-BbSD1Eyw.js → index-CJhgaDE1.js} +1 -1
  88. package/dist/cjs/index-bHoidDwv.js +14 -14
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{pagination-S2sSAgdl.js → pagination-BPA1UGs-.js} +30 -0
  91. package/dist/cjs/{richTextI18n-DXGIv5w1.js → richTextI18n-B8qb5JKb.js} +12 -0
  92. package/dist/cobalt/cobalt.esm.js +1 -1
  93. package/dist/cobalt/p-01b54d81.entry.js +1 -0
  94. package/dist/cobalt/{p-02ff847e.entry.js → p-02133c95.entry.js} +1 -1
  95. package/dist/cobalt/{p-73313cbe.entry.js → p-0bbaaf4f.entry.js} +1 -1
  96. package/dist/cobalt/p-0f3a3232.entry.js +1 -0
  97. package/dist/cobalt/p-12fc5119.entry.js +1 -0
  98. package/dist/cobalt/p-19f0f534.entry.js +1 -0
  99. package/dist/cobalt/p-1c9253a2.entry.js +1 -0
  100. package/dist/cobalt/{p-63908a8d.entry.js → p-256ca457.entry.js} +1 -1
  101. package/dist/cobalt/{p-71fe35c4.entry.js → p-2ff8f591.entry.js} +1 -1
  102. package/dist/cobalt/p-33840969.entry.js +1 -0
  103. package/dist/cobalt/p-353ff9ed.entry.js +1 -0
  104. package/dist/cobalt/p-37f9ec35.entry.js +1 -0
  105. package/dist/cobalt/p-3878f174.entry.js +1 -0
  106. package/dist/cobalt/{p-a4eb298c.entry.js → p-3890d22f.entry.js} +1 -1
  107. package/dist/cobalt/{p-7fabd8ba.entry.js → p-3b7e90c8.entry.js} +1 -1
  108. package/dist/cobalt/p-3bff827a.entry.js +1 -0
  109. package/dist/cobalt/{p-65c191aa.entry.js → p-3e532a11.entry.js} +1 -1
  110. package/dist/cobalt/{p-4d743628.entry.js → p-3e864e7d.entry.js} +1 -1
  111. package/dist/cobalt/p-454dd8ab.entry.js +1 -0
  112. package/dist/cobalt/{p-cfaaa684.entry.js → p-4ae6fe0e.entry.js} +1 -1
  113. package/dist/cobalt/p-4cdfcd9c.entry.js +1 -0
  114. package/dist/cobalt/p-50ab6b9b.entry.js +1 -0
  115. package/dist/cobalt/{p-713637f2.entry.js → p-59a71695.entry.js} +1 -1
  116. package/dist/cobalt/{p-06689166.entry.js → p-5d41b58b.entry.js} +1 -1
  117. package/dist/cobalt/{p-95f2ebb1.entry.js → p-5e14f676.entry.js} +1 -1
  118. package/dist/cobalt/p-5e39cf70.entry.js +1 -0
  119. package/dist/cobalt/{p-df529110.entry.js → p-600d0cab.entry.js} +1 -1
  120. package/dist/cobalt/{p-38eb2615.entry.js → p-60ea3d33.entry.js} +1 -1
  121. package/dist/cobalt/{p-d5d8fa8b.entry.js → p-63f888a1.entry.js} +1 -1
  122. package/dist/cobalt/{p-d00c3894.entry.js → p-6eca1c7c.entry.js} +1 -1
  123. package/dist/cobalt/p-74804c79.entry.js +1 -0
  124. package/dist/cobalt/{p-f2fa2ac0.entry.js → p-76ea3f34.entry.js} +1 -1
  125. package/dist/cobalt/p-7737354e.entry.js +1 -0
  126. package/dist/cobalt/p-7e444408.entry.js +1 -0
  127. package/dist/cobalt/p-7e72720a.entry.js +1 -0
  128. package/dist/cobalt/p-82bcd062.entry.js +1 -0
  129. package/dist/cobalt/{p-56176aa0.entry.js → p-83691cfb.entry.js} +1 -1
  130. package/dist/cobalt/p-84256bde.entry.js +1 -0
  131. package/dist/cobalt/p-84ad0227.entry.js +1 -0
  132. package/dist/cobalt/{p-b2457431.entry.js → p-89328cd8.entry.js} +1 -1
  133. package/dist/cobalt/p-8a26f3cc.entry.js +1 -0
  134. package/dist/cobalt/p-8c22bf4b.entry.js +1 -0
  135. package/dist/cobalt/p-8e7ad2fe.entry.js +1 -0
  136. package/dist/cobalt/p-947b8e35.entry.js +1 -0
  137. package/dist/cobalt/p-94b871fb.entry.js +1 -0
  138. package/dist/cobalt/p-99781b0b.entry.js +1 -0
  139. package/dist/cobalt/{p-71dc8e4a.entry.js → p-9af26af0.entry.js} +1 -1
  140. package/dist/cobalt/p-9ce57385.entry.js +1 -0
  141. package/dist/cobalt/p-BzxEh7sq.js +1 -0
  142. package/dist/cobalt/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
  143. package/dist/cobalt/p-CSLjZ3WO.js +1 -0
  144. package/dist/cobalt/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
  145. package/dist/cobalt/p-EtYK1iGx.js +1 -0
  146. package/dist/cobalt/p-LnW75kr5.js +1 -0
  147. package/dist/cobalt/{p-cf5b91be.entry.js → p-a18c01eb.entry.js} +1 -1
  148. package/dist/cobalt/{p-65d44da2.entry.js → p-a33a277a.entry.js} +1 -1
  149. package/dist/cobalt/p-a4154bcf.entry.js +1 -0
  150. package/dist/cobalt/{p-aed832d5.entry.js → p-a4264bde.entry.js} +1 -1
  151. package/dist/cobalt/p-a6c9a0c5.entry.js +1 -0
  152. package/dist/cobalt/{p-868d1a18.entry.js → p-b2c49664.entry.js} +1 -1
  153. package/dist/cobalt/{p-f69804a6.entry.js → p-b402665a.entry.js} +1 -1
  154. package/dist/cobalt/{p-903237f9.entry.js → p-bbf3d859.entry.js} +1 -1
  155. package/dist/cobalt/p-bee52042.entry.js +1 -0
  156. package/dist/cobalt/{p-a7cd61ce.entry.js → p-c004fde5.entry.js} +1 -1
  157. package/dist/cobalt/p-c026968c.entry.js +1 -0
  158. package/dist/cobalt/{p-8a2a2b6c.entry.js → p-c23630ab.entry.js} +1 -1
  159. package/dist/cobalt/p-c31b9b51.entry.js +1 -0
  160. package/dist/cobalt/{p-0e4c2234.entry.js → p-c93be2d5.entry.js} +1 -1
  161. package/dist/cobalt/p-cb1013e6.entry.js +1 -0
  162. package/dist/cobalt/p-cd43d372.entry.js +1 -0
  163. package/dist/cobalt/{p-26cbdc33.entry.js → p-cea21e08.entry.js} +1 -1
  164. package/dist/cobalt/p-cf675968.entry.js +1 -0
  165. package/dist/cobalt/{p-ba39a965.entry.js → p-d1595580.entry.js} +1 -1
  166. package/dist/cobalt/{p-99df434b.entry.js → p-d26dc681.entry.js} +1 -1
  167. package/dist/cobalt/{p-8680559b.entry.js → p-d375c84e.entry.js} +1 -1
  168. package/dist/cobalt/{p-bee30373.entry.js → p-d7775109.entry.js} +1 -1
  169. package/dist/cobalt/p-d9b4594b.entry.js +1 -0
  170. package/dist/cobalt/{p-b67fb616.entry.js → p-e4646a0e.entry.js} +1 -1
  171. package/dist/cobalt/{p-7beface1.entry.js → p-e5350eeb.entry.js} +1 -1
  172. package/dist/cobalt/{p-e5f0d560.entry.js → p-f1da1df1.entry.js} +1 -1
  173. package/dist/cobalt/p-f23f52ed.entry.js +1 -0
  174. package/dist/cobalt/{p-13e5b724.entry.js → p-f6f273f7.entry.js} +1 -1
  175. package/dist/cobalt/{p-71ae1551.entry.js → p-fb6671e0.entry.js} +1 -1
  176. package/dist/cobalt/p-fb731600.entry.js +1 -0
  177. package/dist/cobalt/{p-7d1718ed.entry.js → p-feec49a4.entry.js} +1 -1
  178. package/dist/cobalt/p-ff218d09.entry.js +1 -0
  179. package/dist/cobalt/p-hXbDUT3I.js +1 -0
  180. package/dist/collection/components/co-action-bar/co-action-bar.css +6 -2
  181. package/dist/collection/components/co-app-shell/co-app-shell.css +6 -5
  182. package/dist/collection/components/co-autocomplete/co-autocomplete.css +12 -6
  183. package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
  184. package/dist/collection/components/co-avatar/co-avatar.css +11 -1
  185. package/dist/collection/components/co-avatar/co-avatar.js +5 -2
  186. package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
  187. package/dist/collection/components/co-button/co-button.css +38 -7
  188. package/dist/collection/components/co-button/co-button.js +34 -6
  189. package/dist/collection/components/co-calendar/co-calendar.css +4 -1
  190. package/dist/collection/components/co-calendar-month/co-calendar-month.css +3 -1
  191. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +3 -1
  192. package/dist/collection/components/co-checkbox/co-checkbox.css +5 -1
  193. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +10 -5
  194. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
  195. package/dist/collection/components/co-chip/co-chip.css +17 -12
  196. package/dist/collection/components/co-color-area/co-color-area.js +2 -2
  197. package/dist/collection/components/co-color-picker/co-color-picker.css +19 -7
  198. package/dist/collection/components/co-color-picker/co-color-picker.js +42 -3
  199. package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
  200. package/dist/collection/components/co-column-picker/co-column-picker.css +10 -5
  201. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  202. package/dist/collection/components/co-combobox/co-combobox.css +8 -5
  203. package/dist/collection/components/co-combobox/co-combobox.js +7 -5
  204. package/dist/collection/components/co-command-search/co-command-search.css +5 -2
  205. package/dist/collection/components/co-command-search/co-command-search.js +1 -1
  206. package/dist/collection/components/co-data-table/co-data-table.css +13 -10
  207. package/dist/collection/components/co-data-table/co-data-table.js +1 -1
  208. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +15 -13
  209. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  210. package/dist/collection/components/co-date-field/co-date-field.css +11 -5
  211. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  212. package/dist/collection/components/co-date-picker/co-date-picker.css +5 -2
  213. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  214. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +9 -3
  215. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
  216. package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +11 -5
  217. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
  218. package/dist/collection/components/co-document-editor/co-document-editor.css +112 -1
  219. package/dist/collection/components/co-document-editor/co-document-editor.js +91 -10
  220. package/dist/collection/components/co-document-editor/signature-bar.js +26 -0
  221. package/dist/collection/components/co-drawer/co-drawer.css +12 -4
  222. package/dist/collection/components/co-drawer/co-drawer.js +16 -0
  223. package/dist/collection/components/co-drive-card/co-drive-card.css +18 -12
  224. package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
  225. package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
  226. package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
  227. package/dist/collection/components/co-empty-state/co-empty-state.css +10 -6
  228. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  229. package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
  230. package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
  231. package/dist/collection/components/co-fab/co-fab.css +5 -3
  232. package/dist/collection/components/co-fab/co-fab.js +2 -2
  233. package/dist/collection/components/co-file-field/co-file-field.css +11 -6
  234. package/dist/collection/components/co-file-field/co-file-field.js +30 -16
  235. package/dist/collection/components/co-file-field/co-file-field.utils.js +57 -0
  236. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  237. package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +2 -2
  238. package/dist/collection/components/co-helper-text/co-helper-text.css +6 -4
  239. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  240. package/dist/collection/components/co-icon/co-icon.js +2 -2
  241. package/dist/collection/components/co-icon-button/co-icon-button.css +5 -3
  242. package/dist/collection/components/co-icon-button/co-icon-button.js +2 -2
  243. package/dist/collection/components/co-input/co-input.css +49 -22
  244. package/dist/collection/components/co-json-field/co-json-field.css +10 -5
  245. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  246. package/dist/collection/components/co-kbd/co-kbd.js +1 -1
  247. package/dist/collection/components/co-lightbox/co-lightbox.js +8 -7
  248. package/dist/collection/components/co-lightbox/openInTab.js +63 -0
  249. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  250. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  251. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  252. package/dist/collection/components/co-menu/co-menu.css +7 -0
  253. package/dist/collection/components/co-menu/co-menu.js +2 -2
  254. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  255. package/dist/collection/components/co-menu-item/co-menu-item.css +19 -7
  256. package/dist/collection/components/co-modal/co-modal.css +3 -0
  257. package/dist/collection/components/co-modal/co-modal.js +23 -2
  258. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  259. package/dist/collection/components/co-number-field/co-number-field.css +12 -6
  260. package/dist/collection/components/co-number-field/co-number-field.js +3 -3
  261. package/dist/collection/components/co-option-list/co-option-list.css +7 -4
  262. package/dist/collection/components/co-option-list/co-option-list.js +2 -2
  263. package/dist/collection/components/co-overlay/co-overlay.css +3 -0
  264. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  265. package/dist/collection/components/co-overlay/escapeLayers.js +20 -0
  266. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  267. package/dist/collection/components/co-phone-field/co-phone-field.css +8 -3
  268. package/dist/collection/components/co-phone-field/co-phone-field.js +36 -1
  269. package/dist/collection/components/co-popover/co-popover.css +4 -0
  270. package/dist/collection/components/co-popover/co-popover.js +33 -4
  271. package/dist/collection/components/co-progress-bar/co-progress-bar.css +6 -2
  272. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  273. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  274. package/dist/collection/components/co-radio/co-radio.js +3 -3
  275. package/dist/collection/components/co-radio-group/co-radio-group.css +10 -5
  276. package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
  277. package/dist/collection/components/co-rating/co-rating.css +6 -4
  278. package/dist/collection/components/co-rating/co-rating.js +3 -3
  279. package/dist/collection/components/co-ref-field/co-ref-field.css +43 -8
  280. package/dist/collection/components/co-ref-field/co-ref-field.js +17 -10
  281. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +26 -4
  282. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +77 -20
  283. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +3 -1
  284. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +40 -0
  285. package/dist/collection/components/co-rich-text-toolbar/panelFit.js +63 -0
  286. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +2 -1
  287. package/dist/collection/components/co-row/co-row.js +2 -2
  288. package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
  289. package/dist/collection/components/co-select/co-select.css +22 -12
  290. package/dist/collection/components/co-select/co-select.js +10 -8
  291. package/dist/collection/components/co-separator/co-separator.js +1 -1
  292. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  293. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +56 -19
  294. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +11 -9
  295. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  296. package/dist/collection/components/co-slider/co-slider.css +6 -4
  297. package/dist/collection/components/co-slider/co-slider.js +2 -2
  298. package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +1 -1
  299. package/dist/collection/components/co-switch/co-switch.css +16 -7
  300. package/dist/collection/components/co-switch/co-switch.js +3 -3
  301. package/dist/collection/components/co-tab/co-tab.css +33 -29
  302. package/dist/collection/components/co-tab/co-tab.js +2 -2
  303. package/dist/collection/components/co-tab-group/co-tab-group.css +26 -6
  304. package/dist/collection/components/co-tab-group/co-tab-group.js +78 -11
  305. package/dist/collection/components/co-tab-group/trackScroll.js +31 -0
  306. package/dist/collection/components/co-tags-field/co-tags-field.css +10 -5
  307. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  308. package/dist/collection/components/co-textarea/co-textarea.css +12 -7
  309. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  310. package/dist/collection/components/co-tile/co-tile.js +1 -1
  311. package/dist/collection/components/co-time-field/co-time-field.js +1 -1
  312. package/dist/collection/components/co-toast/co-toast.css +36 -25
  313. package/dist/collection/components/co-toast/co-toast.js +2 -2
  314. package/dist/collection/components/co-toggle-button/co-toggle-button.css +47 -0
  315. package/dist/collection/components/co-toggle-button/co-toggle-button.js +7 -5
  316. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +12 -0
  317. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +10 -8
  318. package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
  319. package/dist/collection/components/co-transfer-list/co-transfer-list.css +15 -8
  320. package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
  321. package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
  322. package/dist/collection/components/co-video/co-video.js +2 -2
  323. package/dist/collection/utils/amountText.js +5 -1
  324. package/dist/collection/utils/color.js +36 -2
  325. package/dist/collection/utils/eventColor.js +7 -3
  326. package/dist/collection/utils/fieldChip.js +1 -1
  327. package/dist/collection/utils/phoneI18n.js +34 -0
  328. package/dist/collection/utils/richTextI18n.js +12 -0
  329. package/dist/components/co-accordion.js +1 -1
  330. package/dist/components/co-action-bar.js +1 -1
  331. package/dist/components/co-app-shell.js +1 -1
  332. package/dist/components/co-audio-player.js +1 -1
  333. package/dist/components/co-autocomplete.js +1 -1
  334. package/dist/components/co-avatar-group.js +1 -1
  335. package/dist/components/co-avatar.js +1 -1
  336. package/dist/components/co-breadcrumb-item.js +1 -1
  337. package/dist/components/co-breadcrumb.js +1 -1
  338. package/dist/components/co-button.js +1 -1
  339. package/dist/components/co-calendar-month.js +1 -1
  340. package/dist/components/co-calendar-timegrid.js +1 -1
  341. package/dist/components/co-calendar.js +1 -1
  342. package/dist/components/co-carousel.js +1 -1
  343. package/dist/components/co-checkbox-group.js +1 -1
  344. package/dist/components/co-checkbox.js +1 -1
  345. package/dist/components/co-chip.js +1 -1
  346. package/dist/components/co-color-picker.js +1 -1
  347. package/dist/components/co-column-picker.js +1 -1
  348. package/dist/components/co-combobox.js +1 -1
  349. package/dist/components/co-command-search.js +1 -1
  350. package/dist/components/co-data-table-pagination.js +1 -1
  351. package/dist/components/co-data-table.js +1 -1
  352. package/dist/components/co-date-field.js +1 -1
  353. package/dist/components/co-date-picker.js +1 -1
  354. package/dist/components/co-date-range-picker.js +1 -1
  355. package/dist/components/co-date-range.js +1 -1
  356. package/dist/components/co-date-time-picker.js +1 -1
  357. package/dist/components/co-document-editor.js +1 -1
  358. package/dist/components/co-drawer.js +1 -1
  359. package/dist/components/co-drive-card.js +1 -1
  360. package/dist/components/co-drop-zone.js +1 -1
  361. package/dist/components/co-emoji-picker.js +1 -1
  362. package/dist/components/co-empty-state.js +1 -1
  363. package/dist/components/co-event-calendar.js +1 -1
  364. package/dist/components/co-event-popover.js +1 -1
  365. package/dist/components/co-fab.js +1 -1
  366. package/dist/components/co-file-field.js +1 -1
  367. package/dist/components/co-file-type-tile.js +1 -1
  368. package/dist/components/co-gradient-bar.js +1 -1
  369. package/dist/components/co-helper-text.js +1 -1
  370. package/dist/components/co-icon-button.js +1 -1
  371. package/dist/components/co-icon.js +1 -1
  372. package/dist/components/co-input.js +1 -1
  373. package/dist/components/co-json-field.js +1 -1
  374. package/dist/components/co-kbd.js +1 -1
  375. package/dist/components/co-lightbox.js +1 -1
  376. package/dist/components/co-list-footer.js +1 -1
  377. package/dist/components/co-list-item.js +1 -1
  378. package/dist/components/co-media-thumb.js +1 -1
  379. package/dist/components/co-menu-divider.js +1 -1
  380. package/dist/components/co-menu-item.js +1 -1
  381. package/dist/components/co-menu.js +1 -1
  382. package/dist/components/co-modal.js +1 -1
  383. package/dist/components/co-navbar.js +1 -1
  384. package/dist/components/co-number-field.js +1 -1
  385. package/dist/components/co-option-list.js +1 -1
  386. package/dist/components/co-overlay.js +1 -1
  387. package/dist/components/co-page-header.js +1 -1
  388. package/dist/components/co-phone-field.js +1 -1
  389. package/dist/components/co-popover.js +1 -1
  390. package/dist/components/co-progress-bar.js +1 -1
  391. package/dist/components/co-progress-circle.js +1 -1
  392. package/dist/components/co-radio-group.js +1 -1
  393. package/dist/components/co-radio.js +1 -1
  394. package/dist/components/co-rating.js +1 -1
  395. package/dist/components/co-ref-field.js +1 -1
  396. package/dist/components/co-rich-text-editor.js +1 -1
  397. package/dist/components/co-rich-text-toolbar.js +1 -1
  398. package/dist/components/co-rich-text-viewer.js +1 -1
  399. package/dist/components/co-row.js +1 -1
  400. package/dist/components/co-select.js +1 -1
  401. package/dist/components/co-separator.js +1 -1
  402. package/dist/components/co-sidebar-nav.js +1 -1
  403. package/dist/components/co-sidebar.js +1 -1
  404. package/dist/components/co-skeleton.js +1 -1
  405. package/dist/components/co-slider.js +1 -1
  406. package/dist/components/co-swatch-grid.js +1 -1
  407. package/dist/components/co-switch.js +1 -1
  408. package/dist/components/co-tab-group.js +1 -1
  409. package/dist/components/co-tab.js +1 -1
  410. package/dist/components/co-tags-field.js +1 -1
  411. package/dist/components/co-textarea.js +1 -1
  412. package/dist/components/co-tile.js +1 -1
  413. package/dist/components/co-time-field.js +1 -1
  414. package/dist/components/co-toast.js +1 -1
  415. package/dist/components/co-toggle-button-group.js +1 -1
  416. package/dist/components/co-toggle-button.js +1 -1
  417. package/dist/components/co-tooltip.js +1 -1
  418. package/dist/components/co-transfer-list.js +1 -1
  419. package/dist/components/co-tree-item.js +1 -1
  420. package/dist/components/co-video.js +1 -1
  421. package/dist/components/{p-CxWo3qDo.js → p-4Y3YkFf1.js} +1 -1
  422. package/dist/components/{p-V7HYy0VO.js → p-B5F93Ujt.js} +1 -1
  423. package/dist/components/p-B70R6xWE.js +1 -0
  424. package/dist/components/p-BSt2t5Fy.js +1 -0
  425. package/dist/components/p-BfDYq7JS.js +1 -0
  426. package/dist/components/{p-C4sZjIDj.js → p-BhmVj5-9.js} +1 -1
  427. package/dist/components/p-BzxEh7sq.js +1 -0
  428. package/dist/components/p-CDiRdG6I.js +1 -0
  429. package/dist/components/p-CMMv2RcH.js +1 -0
  430. package/dist/components/{p-Dn2wblrA.js → p-CO12CK0t.js} +1 -1
  431. package/dist/components/{p-DymSqdlK.js → p-COCcx0DN.js} +1 -1
  432. package/dist/components/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
  433. package/dist/components/{p-wUXcJGdy.js → p-CX0bNXK3.js} +1 -1
  434. package/dist/components/{p-Bw_b_czs.js → p-CXi0fhTi.js} +1 -1
  435. package/dist/components/p-CaAdnjC6.js +1 -0
  436. package/dist/components/p-CaFwCFgg.js +1 -0
  437. package/dist/components/p-CjB5Vqpy.js +1 -0
  438. package/dist/components/p-Co0eKIiO.js +1 -0
  439. package/dist/components/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
  440. package/dist/components/{p-BRZci8B3.js → p-CwRoHnzq.js} +1 -1
  441. package/dist/components/{p-Dnz99Ox_.js → p-DMW9TJ7Z.js} +1 -1
  442. package/dist/components/p-DTWqwwXO.js +1 -0
  443. package/dist/components/{p-8XzG8pzY.js → p-DldA2IL3.js} +1 -1
  444. package/dist/components/p-LnW75kr5.js +1 -0
  445. package/dist/components/p-R1W48hzW.js +1 -0
  446. package/dist/components/{p-BW10Sgiy.js → p-_S5htX1i.js} +1 -1
  447. package/dist/components/p-hXbDUT3I.js +1 -0
  448. package/dist/components/p-o5wUtH9g.js +1 -0
  449. package/dist/components/{p-KK2vAKs-.js → p-qMNHMnvI.js} +1 -1
  450. package/dist/components/{p-C6WHpL5X.js → p-rfvTj6cP.js} +1 -1
  451. package/dist/components/{p-BI_VaFsx.js → p-upZqhFKo.js} +1 -1
  452. package/dist/components/{p-COozgrEk.js → p-w3AQrtBx.js} +1 -1
  453. package/dist/components/p-xtGT3YeI.js +1 -0
  454. package/dist/esm/co-action-bar.entry.js +1 -1
  455. package/dist/esm/co-app-shell.entry.js +1 -1
  456. package/dist/esm/co-autocomplete.entry.js +1 -1
  457. package/dist/esm/co-avatar.entry.js +6 -3
  458. package/dist/esm/co-button.entry.js +14 -6
  459. package/dist/esm/co-calendar-month_2.entry.js +9 -5
  460. package/dist/esm/co-calendar_3.entry.js +23 -7
  461. package/dist/esm/co-checkbox-group.entry.js +1 -1
  462. package/dist/esm/co-checkbox.entry.js +1 -1
  463. package/dist/esm/co-chip_2.entry.js +4 -4
  464. package/dist/esm/co-color-picker.entry.js +24 -5
  465. package/dist/esm/co-column-picker.entry.js +3 -3
  466. package/dist/esm/co-combobox.entry.js +7 -5
  467. package/dist/esm/co-command-search.entry.js +1 -1
  468. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  469. package/dist/esm/co-data-table.entry.js +1 -1
  470. package/dist/esm/co-date-picker.entry.js +1 -1
  471. package/dist/esm/co-date-range-picker.entry.js +1 -1
  472. package/dist/esm/co-date-range.entry.js +1 -1
  473. package/dist/esm/co-date-time-picker.entry.js +3 -3
  474. package/dist/esm/co-document-editor.entry.js +108 -7
  475. package/dist/esm/co-drive-card.entry.js +2 -2
  476. package/dist/esm/co-drop-zone.entry.js +1 -1
  477. package/dist/esm/co-emoji-picker.entry.js +2 -2
  478. package/dist/esm/co-empty-state.entry.js +3 -3
  479. package/dist/esm/co-event-calendar.entry.js +2 -2
  480. package/dist/esm/co-event-popover.entry.js +1 -1
  481. package/dist/esm/co-fab.entry.js +3 -3
  482. package/dist/esm/co-file-field.entry.js +87 -16
  483. package/dist/esm/co-file-type-tile.entry.js +2 -2
  484. package/dist/esm/co-gradient-bar.entry.js +4 -4
  485. package/dist/esm/co-helper-text.entry.js +3 -3
  486. package/dist/esm/co-icon-button.entry.js +3 -3
  487. package/dist/esm/co-icon.entry.js +2 -2
  488. package/dist/esm/co-input.entry.js +1 -1
  489. package/dist/esm/co-json-field.entry.js +4 -4
  490. package/dist/esm/co-kbd_2.entry.js +3 -3
  491. package/dist/esm/co-lightbox.entry.js +71 -7
  492. package/dist/esm/co-list-footer.entry.js +1 -1
  493. package/dist/esm/co-list-item.entry.js +4 -4
  494. package/dist/esm/co-media-thumb.entry.js +2 -2
  495. package/dist/esm/co-menu-divider.entry.js +1 -1
  496. package/dist/esm/co-menu-item.entry.js +1 -1
  497. package/dist/esm/co-menu.entry.js +3 -3
  498. package/dist/esm/co-modal.entry.js +23 -3
  499. package/dist/esm/co-navbar.entry.js +2 -2
  500. package/dist/esm/co-number-field.entry.js +9 -5
  501. package/dist/esm/co-overlay.entry.js +2 -2
  502. package/dist/esm/co-page-header.entry.js +1 -1
  503. package/dist/esm/co-phone-field.entry.js +52 -2
  504. package/dist/esm/co-popover.entry.js +33 -4
  505. package/dist/esm/co-progress-bar.entry.js +3 -3
  506. package/dist/esm/co-progress-circle.entry.js +2 -2
  507. package/dist/esm/co-provider-logo_2.entry.js +1 -1
  508. package/dist/esm/co-radio-group.entry.js +1 -1
  509. package/dist/esm/co-radio.entry.js +3 -3
  510. package/dist/esm/co-rating.entry.js +4 -4
  511. package/dist/esm/co-ref-field.entry.js +15 -8
  512. package/dist/esm/co-rich-text-editor.entry.js +80 -23
  513. package/dist/esm/co-rich-text-toolbar.entry.js +105 -2
  514. package/dist/esm/co-rich-text-viewer.entry.js +2 -2
  515. package/dist/esm/co-row.entry.js +2 -2
  516. package/dist/esm/co-select.entry.js +10 -8
  517. package/dist/esm/co-separator.entry.js +1 -1
  518. package/dist/esm/co-sidebar-nav.entry.js +11 -9
  519. package/dist/esm/co-sidebar.entry.js +2 -2
  520. package/dist/esm/co-slider.entry.js +3 -3
  521. package/dist/esm/co-swatch-grid.entry.js +3 -3
  522. package/dist/esm/co-switch.entry.js +4 -4
  523. package/dist/esm/co-tab-group.entry.js +110 -12
  524. package/dist/esm/co-tab.entry.js +3 -3
  525. package/dist/esm/co-tags-field.entry.js +7 -7
  526. package/dist/esm/co-textarea.entry.js +5 -5
  527. package/dist/esm/co-tile.entry.js +1 -1
  528. package/dist/esm/co-time-field.entry.js +1 -1
  529. package/dist/esm/co-toast.entry.js +1 -1
  530. package/dist/esm/co-toggle-button-group.entry.js +6 -4
  531. package/dist/esm/co-toggle-button.entry.js +5 -3
  532. package/dist/esm/co-transfer-list.entry.js +1 -1
  533. package/dist/esm/co-video.entry.js +2 -2
  534. package/dist/esm/cobalt.js +1 -1
  535. package/dist/esm/{color-BVGGRfNG.js → color-BzxEh7sq.js} +37 -3
  536. package/dist/esm/escapeLayers-hXbDUT3I.js +18 -0
  537. package/dist/esm/fieldChip-B0N8z5W-.js +5 -0
  538. package/dist/esm/{gradientStops-DDK0y8ra.js → gradientStops-W-_rTTl_.js} +1 -1
  539. package/dist/esm/{index-CgyOJePd.js → index-BNt7Zg14.js} +1 -1
  540. package/dist/esm/index-DJkaRtbb.js +14 -14
  541. package/dist/esm/loader.js +1 -1
  542. package/dist/esm/{pagination-BzrIQtrk.js → pagination-BXztNUE3.js} +30 -0
  543. package/dist/esm/{richTextI18n-xnrKkNWQ.js → richTextI18n-EtYK1iGx.js} +12 -0
  544. package/dist/types/components/co-button/co-button.d.ts +4 -0
  545. package/dist/types/components/co-color-picker/co-color-picker.d.ts +7 -0
  546. package/dist/types/components/co-document-editor/co-document-editor.d.ts +24 -1
  547. package/dist/types/components/co-document-editor/signature-bar.d.ts +26 -0
  548. package/dist/types/components/co-drawer/co-drawer.d.ts +2 -0
  549. package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
  550. package/dist/types/components/co-file-field/co-file-field.utils.d.ts +26 -0
  551. package/dist/types/components/co-lightbox/co-lightbox.d.ts +5 -0
  552. package/dist/types/components/co-lightbox/openInTab.d.ts +46 -0
  553. package/dist/types/components/co-modal/co-modal.d.ts +2 -0
  554. package/dist/types/components/co-overlay/escapeLayers.d.ts +18 -0
  555. package/dist/types/components/co-phone-field/co-phone-field.d.ts +11 -0
  556. package/dist/types/components/co-popover/co-popover.d.ts +7 -0
  557. package/dist/types/components/co-ref-field/co-ref-field.d.ts +3 -2
  558. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +14 -1
  559. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +10 -0
  560. package/dist/types/components/co-rich-text-toolbar/panelFit.d.ts +38 -0
  561. package/dist/types/components/co-tab-group/co-tab-group.d.ts +21 -3
  562. package/dist/types/components/co-tab-group/trackScroll.d.ts +19 -0
  563. package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +3 -1
  564. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +6 -4
  565. package/dist/types/components.d.ts +50 -25
  566. package/dist/types/utils/color.d.ts +28 -1
  567. package/dist/types/utils/eventColor.d.ts +3 -1
  568. package/dist/types/utils/fieldChip.d.ts +6 -0
  569. package/dist/types/utils/phoneI18n.d.ts +18 -0
  570. package/dist/types/utils/richTextI18n.d.ts +4 -0
  571. package/package.json +3 -3
  572. package/dist/cjs/fieldChip-C7MxxBVO.js +0 -7
  573. package/dist/cobalt/p-0d046d98.entry.js +0 -1
  574. package/dist/cobalt/p-12914c0a.entry.js +0 -1
  575. package/dist/cobalt/p-1348d5ca.entry.js +0 -1
  576. package/dist/cobalt/p-2231bacc.entry.js +0 -1
  577. package/dist/cobalt/p-28cf05f3.entry.js +0 -1
  578. package/dist/cobalt/p-3d1a48e5.entry.js +0 -1
  579. package/dist/cobalt/p-4bcdd422.entry.js +0 -1
  580. package/dist/cobalt/p-58ebb303.entry.js +0 -1
  581. package/dist/cobalt/p-5e678e88.entry.js +0 -1
  582. package/dist/cobalt/p-60f948c4.entry.js +0 -1
  583. package/dist/cobalt/p-6974df59.entry.js +0 -1
  584. package/dist/cobalt/p-69ecc933.entry.js +0 -1
  585. package/dist/cobalt/p-6c1992c9.entry.js +0 -1
  586. package/dist/cobalt/p-6c7e423c.entry.js +0 -1
  587. package/dist/cobalt/p-6d4a660c.entry.js +0 -1
  588. package/dist/cobalt/p-763698b3.entry.js +0 -1
  589. package/dist/cobalt/p-77e0d401.entry.js +0 -1
  590. package/dist/cobalt/p-78412feb.entry.js +0 -1
  591. package/dist/cobalt/p-7c20207b.entry.js +0 -1
  592. package/dist/cobalt/p-7df18a52.entry.js +0 -1
  593. package/dist/cobalt/p-848f5ca4.entry.js +0 -1
  594. package/dist/cobalt/p-87de5469.entry.js +0 -1
  595. package/dist/cobalt/p-93063876.entry.js +0 -1
  596. package/dist/cobalt/p-9adbab95.entry.js +0 -1
  597. package/dist/cobalt/p-9b114836.entry.js +0 -1
  598. package/dist/cobalt/p-9dc01092.entry.js +0 -1
  599. package/dist/cobalt/p-BVGGRfNG.js +0 -1
  600. package/dist/cobalt/p-DGLDAl09.js +0 -1
  601. package/dist/cobalt/p-DgJovDdy.js +0 -1
  602. package/dist/cobalt/p-a56bd4a8.entry.js +0 -1
  603. package/dist/cobalt/p-a5eabecb.entry.js +0 -1
  604. package/dist/cobalt/p-a5ee1fc2.entry.js +0 -1
  605. package/dist/cobalt/p-ad752791.entry.js +0 -1
  606. package/dist/cobalt/p-b39a4999.entry.js +0 -1
  607. package/dist/cobalt/p-b5dabdc3.entry.js +0 -1
  608. package/dist/cobalt/p-b9b73dcb.entry.js +0 -1
  609. package/dist/cobalt/p-bb7bbe70.entry.js +0 -1
  610. package/dist/cobalt/p-c5464a98.entry.js +0 -1
  611. package/dist/cobalt/p-c567533e.entry.js +0 -1
  612. package/dist/cobalt/p-d6215d80.entry.js +0 -1
  613. package/dist/cobalt/p-ea24eea8.entry.js +0 -1
  614. package/dist/cobalt/p-f0898e21.entry.js +0 -1
  615. package/dist/cobalt/p-f403eeec.entry.js +0 -1
  616. package/dist/cobalt/p-xnrKkNWQ.js +0 -1
  617. package/dist/components/p-B3Egz082.js +0 -1
  618. package/dist/components/p-B9wdMd_0.js +0 -1
  619. package/dist/components/p-BVGGRfNG.js +0 -1
  620. package/dist/components/p-BdmzslA5.js +0 -1
  621. package/dist/components/p-BzNBPHen.js +0 -1
  622. package/dist/components/p-C4U2tbRp.js +0 -1
  623. package/dist/components/p-C_6szR7t.js +0 -1
  624. package/dist/components/p-CiYPJW0B.js +0 -1
  625. package/dist/components/p-D4XP17VP.js +0 -1
  626. package/dist/components/p-DB8DGMc-.js +0 -1
  627. package/dist/components/p-DGLDAl09.js +0 -1
  628. package/dist/components/p-DhPxNA2f.js +0 -1
  629. package/dist/components/p-DsuFNmTI.js +0 -1
  630. package/dist/components/p-TGRbLkLz.js +0 -1
  631. package/dist/components/p-dnaee7fS.js +0 -1
  632. package/dist/esm/fieldChip-B2ctp2m6.js +0 -5
@@ -0,0 +1 @@
1
+ import{r as e,c as i,h as t,a}from"./p-DJkaRtbb.js";import{R as s}from"./p-CYN5B3IQ.js";import{F as o}from"./p-CSLjZ3WO.js";const r=class{constructor(t){e(this,t),this.coChange=i(this,"coChange",7),this.coInput=i(this,"coInput",7),this.coClear=i(this,"coClear",7),this.coFocus=i(this,"coFocus",7),this.coBlur=i(this,"coBlur",7),this.value="[]",this.placeholder="",this.required=!1,this.disabled=!1,this.readonly=!1,this.clearable=!0,this.allowDuplicates=!1,this.invalid=!1,this.layout="vertical",this.size="md",this.draft="",this.editingIndex=null,this.editingDraft="",this.hasFocus=!1,this.handleClearAll=()=>{var e;this.hasValue&&(this.commit([]),this.coClear.emit(),null===(e=this.inputEl)||void 0===e||e.focus())},this.handleInput=e=>{this.draft=e.target.value,this.coInput.emit(this.draft)},this.handleKeyDown=e=>{"Enter"!==e.key&&"Tab"!==e.key&&","!==e.key?"Backspace"===e.key&&""===this.draft&&this.hasValue&&(e.preventDefault(),this.removeTag(this.tags.length-1)):this.draft.trim()&&(e.preventDefault(),this.addTag())},this.handleFocus=()=>{this.hasFocus=!0,this.coFocus.emit()},this.handleBlur=()=>{this.draft.trim()&&this.addTag(),this.hasFocus=!1,this.coBlur.emit()},this.handleEditKeyDown=e=>{"Enter"===e.key?(e.preventDefault(),this.saveEdit()):"Escape"===e.key&&(e.preventDefault(),this.cancelEdit())},this.handleFieldClick=()=>{var e;this.disabled||this.readonly||null===this.editingIndex&&(null===(e=this.inputEl)||void 0===e||e.focus())}}onEditingIndexChange(e){null!==e&&requestAnimationFrame((()=>{var e;return null===(e=this.editEl)||void 0===e?void 0:e.focus()}))}get tags(){if(Array.isArray(this.value))return this.value.map((e=>String(e)));if("string"==typeof this.value&&this.value.trim())try{const e=JSON.parse(this.value);if(Array.isArray(e))return e.map((e=>String(e)))}catch(e){}return[]}get hasValue(){return this.tags.length>0}get isInvalid(){return this.invalid}get atCapacity(){return"number"==typeof this.maxTags&&this.tags.length>=this.maxTags}commit(e){this.value=JSON.stringify(e),this.coChange.emit(e)}addTag(){const e=this.draft.trim();if(this.draft="",!e||this.atCapacity)return;const i=this.tags;!this.allowDuplicates&&i.includes(e)||this.commit([...i,e])}removeTag(e){const i=this.tags.filter(((i,t)=>t!==e));this.commit(i)}startEdit(e){var i;this.disabled||this.readonly||(this.editingIndex=e,this.editingDraft=null!==(i=this.tags[e])&&void 0!==i?i:"")}saveEdit(){if(null===this.editingIndex)return;const e=this.editingIndex,i=this.editingDraft.trim(),t=this.tags;if(this.editingIndex=null,this.editingDraft="",!i)return void this.commit(t.filter(((i,t)=>t!==e)));if(!this.allowDuplicates&&t.some(((t,a)=>a!==e&&t===i)))return void this.commit(t.filter(((i,t)=>t!==e)));const a=[...t];a[e]=i,this.commit(a)}cancelEdit(){this.editingIndex=null,this.editingDraft=""}render(){const e=this.tags,i=this.clearable&&this.hasValue&&!this.disabled&&!this.readonly,a=this.isInvalid?this.errorMessage:this.helperText,r=!this.readonly&&!this.atCapacity;return t("div",{key:"fd91a99e457cbf54c88d423be8af54c566f3066c",class:{"co-tags-field":!0,"co-tags-field--disabled":this.disabled,"co-tags-field--focused":this.hasFocus,"co-tags-field--filled":this.hasValue,"co-tags-field--invalid":this.isInvalid,[`co-tags-field--${this.size}`]:!0},part:"wrapper"},this.label&&t("div",{key:"49bfcb174303ee8660e5acc4f98217aaf66f40ac",class:"co-tags-field__labels"},t("label",{key:"79762edec0be8829ccaca058eba30a3bde927254",class:"co-tags-field__label",part:"label"},this.label,t(s,{key:"c70bec9252eb1921c481ecd61d8b6fe63a3d6c10",required:this.required}))),t("div",{key:"32a0647964bd4acc982a2a790647c93a40801c36",class:"co-tags-field__field-row"},t("div",{key:"4e8368806c1f672c72eb02331f113669db4cf8d1",class:"co-tags-field__field",part:"field",onClick:this.handleFieldClick},t("div",{key:"4ad6a373fd8c05ee5aac5bff758ce2fbe4312dc8",class:"co-tags-field__input-wrapper"},e.map(((e,i)=>this.editingIndex===i?t("input",{key:`edit-${i}`,ref:e=>this.editEl=e,class:"co-tags-field__edit",type:"text",value:this.editingDraft,onInput:e=>this.editingDraft=e.target.value,onKeyDown:this.handleEditKeyDown,onBlur:()=>this.saveEdit()}):t(o,{key:`chip-${i}-${e}`,baseClass:"co-tags-field__chip",label:e,title:e,onChipDblClick:()=>this.startEdit(i),onRemove:this.disabled||this.readonly?void 0:e=>{e.stopPropagation(),this.removeTag(i)}}))),r&&t("input",{key:"f225a29c660941323b3e83344cf4b5524bbd72a2",ref:e=>this.inputEl=e,class:"co-tags-field__native",type:"text",autocomplete:"off",value:this.draft,placeholder:0===e.length?this.placeholder:"",disabled:this.disabled,required:this.required&&0===e.length,"aria-invalid":this.isInvalid?"true":"false","aria-label":this.label?void 0:"Tags",onInput:this.handleInput,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyDown:this.handleKeyDown,part:"input"})),this.clearable&&t("button",{key:"37317b91ff4f58ca30ae13d7d639fcc79efaeb3b",class:{"co-tags-field__clear":!0,"co-tags-field__clear--hidden":!i},type:"button",tabIndex:-1,onMouseDown:e=>e.preventDefault(),onClick:this.handleClearAll,"aria-label":"Clear all",part:"clear"},t("co-icon",{key:"f29e8727db13e9ce6b6fc72e38786aeb619a51b1",name:"x-circle",size:16,weight:"fill"})))),this.name&&t("input",{key:"592bcd5ecd3f552ac6c8adb87fbd9dab04ec0e40",type:"hidden",name:this.name,value:JSON.stringify(e)}),a&&t("div",{key:"7402a33a90484fdce495df229b7325d6e6527991",class:{"co-tags-field__helper":!0,"co-tags-field__helper--error":this.isInvalid},part:"helper"},this.isInvalid&&t("co-icon",{key:"8b9116529e02f275ef957e23ad98adb8d726b375",name:"warning-circle",size:14,class:"co-tags-field__helper-icon"}),t("span",{key:"5f952c6feb9b82b46552bb8e8faeb5aaeb4abc29",class:"co-tags-field__helper-text"},a)))}get el(){return a(this)}static get watchers(){return{editingIndex:[{onEditingIndexChange:0}]}}};r.style=":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-tags-field{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}.co-tags-field__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-tags-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-field-required{margin-left:2px;color:var(--co-semantic-text-error, 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)')}.co-tags-field__field-row{display:flex;align-items:stretch}.co-tags-field__field{display:flex;align-items:flex-start;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 var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);min-height:40px;box-sizing:border-box;flex:1;min-width:0;cursor:text}.co-tags-field__input-wrapper{flex:1;display:flex;flex-wrap:wrap;align-items:center;gap:var(--co-spacing-sm);min-width:0;min-height:22px;padding:0}.co-tags-field--s .co-tags-field__field{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm);font-size:var(--co-font-size-12)}.co-tags-field--sm .co-tags-field__field{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-14)}.co-tags-field--lg .co-tags-field__field{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg);font-size:var(--co-font-size-16)}.co-tags-field__chip{display:inline-flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-sm) var(--co-spacing-sm2);background:var(--co-semantic-surface-hover);border-radius:var(--co-border-radius-full);font-size:var(--co-font-size-14);line-height:1;max-width:240px;cursor:pointer;user-select:none}.co-tags-field__chip-label{color:var(--co-semantic-text-default);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-tags-field__chip-remove{display:flex;align-items:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color var(--co-motion-duration-fast) var(--co-motion-ease-out);flex-shrink:0}.co-tags-field__chip-remove:hover{color:var(--co-semantic-text-default)}.co-tags-field__native{flex:1;min-width:80px;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-tags-field__native::placeholder{color:var(--co-semantic-text-muted)}.co-tags-field__edit{border:1px solid var(--co-semantic-border-focus);border-radius:var(--co-border-radius-xxs);outline:none;background:var(--co-semantic-surface-page);font-family:inherit;font-size:var(--co-font-size-12);line-height:1;color:var(--co-semantic-text-default);padding:var(--co-spacing-xxs) var(--co-spacing-xs);margin:0;min-width:60px}.co-tags-field__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:16px;padding:0;margin:var(--co-spacing-xxs) 0 0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-tags-field__clear--hidden{visibility:hidden;pointer-events:none}.co-tags-field__clear:hover{color:var(--co-semantic-text-default)}.co-tags-field__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-tags-field__helper-icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-tags-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-tags-field--focused .co-tags-field__field{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-tags-field--disabled{opacity:0.6;pointer-events:none}.co-tags-field--disabled .co-tags-field__labels .co-tags-field__label{color:var(--co-semantic-text-disabled)}.co-tags-field--disabled .co-tags-field__field{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-tags-field--invalid .co-tags-field__field{border-color:var(--co-semantic-border-error, var(--co-semantic-status-error))}.co-tags-field--invalid.co-tags-field--focused .co-tags-field__field{border-color:var(--co-semantic-border-error, var(--co-semantic-status-error));box-shadow:0 0 0 2px color-mix(in srgb, var(--co-semantic-border-error, var(--co-semantic-status-error)) 12%, transparent)}.co-tags-field__helper--error .co-tags-field__helper-icon,.co-tags-field__helper--error .co-tags-field__helper-text{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}:host([layout='horizontal']) .co-tags-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-tags-field__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-tags-field__label{white-space:normal}:host([layout='horizontal']) .co-tags-field>:not(.co-tags-field__labels){grid-column:2;min-width:0}";export{r as co_tags_field}
@@ -1 +1 @@
1
- import{r as a,c as e,h as o,a as c}from"./p-DJkaRtbb.js";import{r as t}from"./p-Ba_v-MzM.js";const s=class{constructor(o){a(this,o),this.coSelect=e(this,"coSelect",7),this.coClose=e(this,"coClose",7),this.coSearch=e(this,"coSearch",7),this.coScopeChange=e(this,"coScopeChange",1),this.coBackspaceEmpty=e(this,"coBackspaceEmpty",1),this.coChipRemove=e(this,"coChipRemove",1),this.coTabSelect=e(this,"coTabSelect",1),this.coMoreTabs=e(this,"coMoreTabs",1),this.open=!1,this.placeholder="Search...",this.items=[],this.emptyMessage="No results found",this.async=!1,this.loading=!1,this.chips="[]",this.tabs="[]",this.activeTab="",this.hasMore=!1,this.moreLabel="More",this.favorites="[]",this.query="",this.handleInput=a=>{this.query=a.target.value,this.coSearch.emit(this.query)},this.handleKeyDown=a=>{var e,o;if("Backspace"===a.key&&""===this.query)return a.preventDefault(),void this.coBackspaceEmpty.emit(this.query);switch(a.key){case"ArrowDown":case"ArrowUp":case"Enter":a.preventDefault(),null===(e=this.optionListEl)||void 0===e||e.handleKey(a);break;case"Escape":a.preventDefault(),this.close();break;case"Tab":a.preventDefault(),null===(o=this.optionListEl)||void 0===o||o.handleKey(new KeyboardEvent("keydown",{key:a.shiftKey?"ArrowUp":"ArrowDown"}))}},this.handleListPick=a=>{const e=this.filteredItems.find((e=>e.value===a));e&&this.selectItem(e)},this.handlePanelKeyDown=a=>{"Escape"===a.key&&(a.preventDefault(),this.close())},this.handleOverlayClick=()=>{this.close()},this.handlePanelClick=a=>{a.stopPropagation()},this.handleTriggerClick=()=>{this.open=!0}}get parsedItems(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch(a){return[]}return this.items}get filteredItems(){return a=this.parsedItems,e=this.query,this.async?a:e?t(a,e,(a=>[a.label,a.value])):a;var a,e}get parsedChips(){try{const a="string"==typeof this.chips?JSON.parse(this.chips):this.chips;return Array.isArray(a)?a:[]}catch(a){return[]}}get parsedTabs(){try{const a="string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs;return Array.isArray(a)?a:[]}catch(a){return[]}}get parsedFavorites(){try{const a="string"==typeof this.favorites?JSON.parse(this.favorites):this.favorites;return Array.isArray(a)?a:[]}catch(a){return[]}}onActiveTabChange(a){a&&(this.query=""),requestAnimationFrame((()=>{var a;const e=null===(a=this.el.shadowRoot)||void 0===a?void 0:a.querySelector('.co-command-search__tab[aria-selected="true"]');null==e||e.scrollIntoView({inline:"nearest",block:"nearest"})}))}onOpenChange(a){a&&(this.query="",requestAnimationFrame((()=>{var a;return null===(a=this.inputEl)||void 0===a?void 0:a.focus()})))}selectItem(a){!function(a){return!0===a.keepOpen}(a)?(this.coSelect.emit(a.value),this.close()):this.coScopeChange.emit(a.value)}close(){this.open&&(this.open=!1,this.coClose.emit())}render(){const a=this.filteredItems;return[o("div",{key:"37a7fa941fee9d90d58937fea9a968604e825daf",class:"co-command-search__trigger",onClick:this.handleTriggerClick},o("slot",{key:"23aff571c1cc19b36b1931a5c30d3d3c544eb9b8",name:"trigger"})),o("co-overlay",{key:"bc74cdb881e5005d12ae0e55f301507715303d63",open:this.open,onCoClose:this.handleOverlayClick},o("div",{key:"654ab29570bd313809b660cce6ba9f71c0730e57",class:{"co-command-search":!0,"co-command-search--open":this.open},part:"panel",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:this.handlePanelClick,onKeyDown:this.handlePanelKeyDown},o("div",{key:"f62ae09d7384d180b4169e1f7c21d14c7f3ca0b3",class:"co-command-search__input-row",part:"input-row"},o("co-icon",{key:"800323c34524e72dd0255166e45528dcf273a642",name:"magnifying-glass",size:20}),this.parsedChips.map(((a,e)=>o("span",{class:"co-command-search__facet-chip"},a.icon&&o("co-icon",{name:a.icon,size:12}),o("span",{class:"co-command-search__facet-chip-label"},a.label),o("button",{class:"co-command-search__facet-chip-remove",type:"button","aria-label":`Remove filter ${a.label}`,onClick:a=>{a.stopPropagation(),this.coChipRemove.emit(e)}},o("co-icon",{name:"x",size:10,weight:"bold"}))))),o("input",{key:"5468e510b549c996e7208b691b846b2949b2870d",class:"co-command-search__input",type:"text",placeholder:this.placeholder,value:this.query,onInput:this.handleInput,onKeyDown:this.handleKeyDown,ref:a=>this.inputEl=a,part:"input",role:"combobox","aria-expanded":this.open?"true":"false","aria-autocomplete":"list"}),this.loading&&o("co-loader",{key:"300afe578342e795b968c01ec4a941b2fc07c25b",class:"co-command-search__loading",part:"loading",size:"sm"}),o("span",{key:"96c6c03f2330c1c4fbdecba635cc61aee1cef442",class:"co-command-search__shortcut"},"ESC")),(this.parsedTabs.length>0||this.hasMore)&&o("div",{key:"b05917311a4e65b98ed2e1db1c0cedb9f83bd5a2",class:"co-command-search__tabs",part:"tabs",role:"tablist"},this.parsedTabs.map((a=>{const e=a.value===this.activeTab;return o("co-chip",{class:"co-command-search__tab",role:"tab","aria-selected":e?"true":"false",clickable:!0,selected:e,variant:e?"filled":"outlined",color:e?"primary":"default",iconLeft:a.icon,label:a.label,onCoClick:()=>this.coTabSelect.emit(e?"":a.value)})})),this.hasMore&&o("co-chip",{key:"36c25c208b1e26394bd02a56dda55d5e0fd912fd",class:"co-command-search__tab co-command-search__tab--more",clickable:!0,variant:"outlined",label:this.moreLabel,iconRight:"caret-down",onCoClick:()=>this.coMoreTabs.emit()})),o("div",{key:"72497fec08f07fd6a91f62db10091d7d635eeab9",class:"co-command-search__results",part:"results"},this.parsedFavorites.length>0&&!this.query&&o("div",{key:"be18a43f0e3e5cc4c9ce0cbfacc90c7e5568017b",class:"co-command-search__fav",part:"favorites"},o("div",{key:"9c29628bb6ba66daf9253aa5d490f7dcc56e4b3b",class:"co-command-search__fav-grid"},this.parsedFavorites.map((a=>o("button",{class:"co-command-search__fav-card",type:"button",onClick:()=>this.coSelect.emit(a.value)},o("span",{class:"co-command-search__fav-icon",style:{background:a.color||"var(--co-semantic-surface-muted)"}},o("co-icon",{name:a.icon||"circle",size:26,weight:"fill"})),o("span",{class:"co-command-search__fav-label"},a.label)))))),o("co-option-list",{key:"ee50dd0d97743a7a85de59f8daf6e45e989a422d",ref:a=>this.optionListEl=a,items:JSON.stringify(a.map((a=>({_id:a.value,label:a.label,icon:a.icon,description:a.subtitle,group:a.section,disabled:a.disabled})))),autoHighlight:!0,highlightMatches:!0,highlightTerm:this.query,loading:this.loading,emptyMessage:this.emptyMessage,onCoChange:a=>this.handleListPick(a.detail.item._id)}))))]}get el(){return c(this)}static get watchers(){return{activeTab:[{onActiveTabChange:0}],open:[{onOpenChange:0}]}}};s.style=":host{display:contents}co-overlay{--co-overlay-bg:rgba(0, 0, 0, 0.16)}.co-command-search__trigger{display:contents}.co-command-search{display:flex;flex-direction:column;width:90vw;max-width:560px;max-height:420px;background:var(--co-semantic-surface-page);border-radius:var(--co-border-radius-lg);box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);overflow:hidden;font-family:var(--co-font-family-primary);transform:translateY(8px) scale(0.98);opacity:0;transition:transform var(--co-motion-duration-fast) var(--co-motion-ease-out), opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);margin-top:-15vh}.co-command-search--open{transform:translateY(0) scale(1);opacity:1}.co-command-search__input-row{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-md) var(--co-spacing-lg);border-bottom:1px solid var(--co-semantic-border-default);color:var(--co-semantic-text-muted)}.co-command-search__input{flex:1;border:none;outline:none;background:transparent;font-size:var(--co-font-size-16);font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);min-width:0}.co-command-search__input::placeholder{color:var(--co-semantic-text-muted)}.co-command-search__shortcut{font-size:var(--co-font-size-10);color:var(--co-semantic-text-muted);background:var(--co-semantic-surface-muted);padding:2px var(--co-spacing-xs);border-radius:var(--co-border-radius-xxs);font-weight:500;line-height:1.4;flex-shrink:0}.co-command-search__results{flex:1;overflow-y:auto;padding:var(--co-spacing-xs) 0}.co-command-search__loading{flex-shrink:0;display:flex;align-items:center}.co-command-search__facet-chip{display:inline-flex;align-items:center;gap:2px;padding:2px var(--co-spacing-xs);background:var(--co-color-primary-azul);color:var(--co-color-base-blanco, #fff);border-radius:var(--co-border-radius-full);font-size:var(--co-font-size-12);font-weight:500;white-space:nowrap;flex-shrink:0}.co-command-search__facet-chip-label{max-width:110px;overflow:hidden;text-overflow:ellipsis}.co-command-search__facet-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:none;border-radius:var(--co-border-radius-full);background:rgba(255, 255, 255, 0.25);color:inherit;cursor:pointer;padding:0;line-height:1;transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-command-search__facet-chip-remove:hover{background:rgba(255, 255, 255, 0.4)}.co-command-search__tabs{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-md);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--co-semantic-border-default);scroll-padding-right:104px}.co-command-search__tabs::-webkit-scrollbar{display:none;}.co-command-search__tab{flex:0 0 auto}.co-command-search__tab--more{position:sticky;right:0;padding-left:var(--co-spacing-sm);background:var(--co-semantic-surface-page);box-shadow:-12px 0 10px -4px var(--co-semantic-surface-page)}.co-command-search__fav{padding:var(--co-spacing-sm) var(--co-spacing-lg) var(--co-spacing-md);border-bottom:1px solid var(--co-semantic-border-default)}.co-command-search__fav-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(88px, 1fr));gap:var(--co-spacing-xs)}.co-command-search__fav-card{display:flex;flex-direction:column;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-sm) var(--co-spacing-xs);background:transparent;border:none;border-radius:var(--co-border-radius-sm);cursor:pointer;font-family:inherit;text-align:center;min-width:0;transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-command-search__fav-card:hover{background:var(--co-semantic-surface-hover)}.co-command-search__fav-card:focus-visible{outline:none;box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-command-search__fav-icon{flex:none;width:50px;height:50px;border-radius:var(--co-border-radius-sm);display:flex;align-items:center;justify-content:center;color:var(--co-color-base-blanco, #fff);box-shadow:0 2px 6px rgba(0, 0, 0, 0.14)}.co-command-search__fav-label{font-size:var(--co-font-size-12);font-weight:500;line-height:1.2;color:var(--co-semantic-text-default);max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}";export{s as co_command_search}
1
+ import{r as a,c as e,h as o,a as c}from"./p-DJkaRtbb.js";import{r as t}from"./p-Ba_v-MzM.js";const s=class{constructor(o){a(this,o),this.coSelect=e(this,"coSelect",7),this.coClose=e(this,"coClose",7),this.coSearch=e(this,"coSearch",7),this.coScopeChange=e(this,"coScopeChange",1),this.coBackspaceEmpty=e(this,"coBackspaceEmpty",1),this.coChipRemove=e(this,"coChipRemove",1),this.coTabSelect=e(this,"coTabSelect",1),this.coMoreTabs=e(this,"coMoreTabs",1),this.open=!1,this.placeholder="Search...",this.items=[],this.emptyMessage="No results found",this.async=!1,this.loading=!1,this.chips="[]",this.tabs="[]",this.activeTab="",this.hasMore=!1,this.moreLabel="More",this.favorites="[]",this.query="",this.handleInput=a=>{this.query=a.target.value,this.coSearch.emit(this.query)},this.handleKeyDown=a=>{var e,o;if("Backspace"===a.key&&""===this.query)return a.preventDefault(),void this.coBackspaceEmpty.emit(this.query);switch(a.key){case"ArrowDown":case"ArrowUp":case"Enter":a.preventDefault(),null===(e=this.optionListEl)||void 0===e||e.handleKey(a);break;case"Escape":a.preventDefault(),this.close();break;case"Tab":a.preventDefault(),null===(o=this.optionListEl)||void 0===o||o.handleKey(new KeyboardEvent("keydown",{key:a.shiftKey?"ArrowUp":"ArrowDown"}))}},this.handleListPick=a=>{const e=this.filteredItems.find((e=>e.value===a));e&&this.selectItem(e)},this.handlePanelKeyDown=a=>{"Escape"===a.key&&(a.preventDefault(),this.close())},this.handleOverlayClick=()=>{this.close()},this.handlePanelClick=a=>{a.stopPropagation()},this.handleTriggerClick=()=>{this.open=!0}}get parsedItems(){if("string"==typeof this.items)try{return JSON.parse(this.items)}catch(a){return[]}return this.items}get filteredItems(){return a=this.parsedItems,e=this.query,this.async?a:e?t(a,e,(a=>[a.label,a.value])):a;var a,e}get parsedChips(){try{const a="string"==typeof this.chips?JSON.parse(this.chips):this.chips;return Array.isArray(a)?a:[]}catch(a){return[]}}get parsedTabs(){try{const a="string"==typeof this.tabs?JSON.parse(this.tabs):this.tabs;return Array.isArray(a)?a:[]}catch(a){return[]}}get parsedFavorites(){try{const a="string"==typeof this.favorites?JSON.parse(this.favorites):this.favorites;return Array.isArray(a)?a:[]}catch(a){return[]}}onActiveTabChange(a){a&&(this.query=""),requestAnimationFrame((()=>{var a;const e=null===(a=this.el.shadowRoot)||void 0===a?void 0:a.querySelector('.co-command-search__tab[aria-selected="true"]');null==e||e.scrollIntoView({inline:"nearest",block:"nearest"})}))}onOpenChange(a){a&&(this.query="",requestAnimationFrame((()=>{var a;return null===(a=this.inputEl)||void 0===a?void 0:a.focus()})))}selectItem(a){!function(a){return!0===a.keepOpen}(a)?(this.coSelect.emit(a.value),this.close()):this.coScopeChange.emit(a.value)}close(){this.open&&(this.open=!1,this.coClose.emit())}render(){const a=this.filteredItems;return[o("div",{key:"37a7fa941fee9d90d58937fea9a968604e825daf",class:"co-command-search__trigger",onClick:this.handleTriggerClick},o("slot",{key:"23aff571c1cc19b36b1931a5c30d3d3c544eb9b8",name:"trigger"})),o("co-overlay",{key:"bc74cdb881e5005d12ae0e55f301507715303d63",open:this.open,onCoClose:this.handleOverlayClick},o("div",{key:"654ab29570bd313809b660cce6ba9f71c0730e57",class:{"co-command-search":!0,"co-command-search--open":this.open},part:"panel",role:"dialog","aria-modal":"true","aria-label":"Command palette",onClick:this.handlePanelClick,onKeyDown:this.handlePanelKeyDown},o("div",{key:"f62ae09d7384d180b4169e1f7c21d14c7f3ca0b3",class:"co-command-search__input-row",part:"input-row"},o("co-icon",{key:"800323c34524e72dd0255166e45528dcf273a642",name:"magnifying-glass",size:20}),this.parsedChips.map(((a,e)=>o("span",{class:"co-command-search__facet-chip"},a.icon&&o("co-icon",{name:a.icon,size:12}),o("span",{class:"co-command-search__facet-chip-label"},a.label),o("button",{class:"co-command-search__facet-chip-remove",type:"button","aria-label":`Remove filter ${a.label}`,onClick:a=>{a.stopPropagation(),this.coChipRemove.emit(e)}},o("co-icon",{name:"x",size:10,weight:"bold"}))))),o("input",{key:"5468e510b549c996e7208b691b846b2949b2870d",class:"co-command-search__input",type:"text",placeholder:this.placeholder,value:this.query,onInput:this.handleInput,onKeyDown:this.handleKeyDown,ref:a=>this.inputEl=a,part:"input",role:"combobox","aria-expanded":this.open?"true":"false","aria-autocomplete":"list"}),this.loading&&o("co-loader",{key:"300afe578342e795b968c01ec4a941b2fc07c25b",class:"co-command-search__loading",part:"loading",size:"sm"}),o("span",{key:"96c6c03f2330c1c4fbdecba635cc61aee1cef442",class:"co-command-search__shortcut"},"ESC")),(this.parsedTabs.length>0||this.hasMore)&&o("div",{key:"b05917311a4e65b98ed2e1db1c0cedb9f83bd5a2",class:"co-command-search__tabs",part:"tabs",role:"tablist"},this.parsedTabs.map((a=>{const e=a.value===this.activeTab;return o("co-chip",{class:"co-command-search__tab",role:"tab","aria-selected":e?"true":"false",clickable:!0,selected:e,variant:e?"filled":"outlined",color:e?"primary":"default",iconLeft:a.icon,label:a.label,onCoClick:()=>this.coTabSelect.emit(e?"":a.value)})})),this.hasMore&&o("co-chip",{key:"36c25c208b1e26394bd02a56dda55d5e0fd912fd",class:"co-command-search__tab co-command-search__tab--more",clickable:!0,variant:"outlined",label:this.moreLabel,iconRight:"caret-down",onCoClick:()=>this.coMoreTabs.emit()})),o("div",{key:"72497fec08f07fd6a91f62db10091d7d635eeab9",class:"co-command-search__results",part:"results"},this.parsedFavorites.length>0&&!this.query&&o("div",{key:"be18a43f0e3e5cc4c9ce0cbfacc90c7e5568017b",class:"co-command-search__fav",part:"favorites"},o("div",{key:"9c29628bb6ba66daf9253aa5d490f7dcc56e4b3b",class:"co-command-search__fav-grid"},this.parsedFavorites.map((a=>o("button",{class:"co-command-search__fav-card",type:"button",onClick:()=>this.coSelect.emit(a.value)},o("span",{class:"co-command-search__fav-icon",style:{background:a.color||"var(--co-semantic-surface-muted)"}},o("co-icon",{name:a.icon||"circle",size:26,weight:"fill"})),o("span",{class:"co-command-search__fav-label"},a.label)))))),o("co-option-list",{key:"ee50dd0d97743a7a85de59f8daf6e45e989a422d",ref:a=>this.optionListEl=a,items:JSON.stringify(a.map((a=>({_id:a.value,label:a.label,icon:a.icon,description:a.subtitle,group:a.section,disabled:a.disabled})))),autoHighlight:!0,highlightMatches:!0,highlightTerm:this.query,loading:this.loading,emptyMessage:this.emptyMessage,onCoChange:a=>this.handleListPick(a.detail.item._id)}))))]}get el(){return c(this)}static get watchers(){return{activeTab:[{onActiveTabChange:0}],open:[{onOpenChange:0}]}}};s.style=":host{display:contents}co-overlay{--co-overlay-bg:rgba(0, 0, 0, 0.16)}.co-command-search__trigger{display:contents}.co-command-search{display:flex;flex-direction:column;width:90vw;max-width:560px;max-height:420px;background:var(--co-semantic-surface-page);color:var(--co-semantic-text-default);border-radius:var(--co-border-radius-lg);box-shadow:0 8px 32px rgba(0, 0, 0, 0.12);overflow:hidden;font-family:var(--co-font-family-primary);transform:translateY(8px) scale(0.98);opacity:0;transition:transform var(--co-motion-duration-fast) var(--co-motion-ease-out), opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);margin-top:-15vh}.co-command-search--open{transform:translateY(0) scale(1);opacity:1}.co-command-search__input-row{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-md) var(--co-spacing-lg);border-bottom:1px solid var(--co-semantic-border-default);color:var(--co-semantic-text-muted)}.co-command-search__input{flex:1;border:none;outline:none;background:transparent;font-size:var(--co-font-size-16);font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);min-width:0}.co-command-search__input::placeholder{color:var(--co-semantic-text-muted)}.co-command-search__shortcut{font-size:var(--co-font-size-10);color:var(--co-semantic-text-secondary);background:var(--co-semantic-surface-control);padding:2px var(--co-spacing-xs);border-radius:var(--co-border-radius-xxs);font-weight:500;line-height:1.4;flex-shrink:0}.co-command-search__results{flex:1;overflow-y:auto;padding:var(--co-spacing-xs) 0}.co-command-search__loading{flex-shrink:0;display:flex;align-items:center}.co-command-search__facet-chip{display:inline-flex;align-items:center;gap:2px;padding:2px var(--co-spacing-xs);background:var(--co-color-primary-azul);color:var(--co-color-base-blanco, #fff);border-radius:var(--co-border-radius-full);font-size:var(--co-font-size-12);font-weight:500;white-space:nowrap;flex-shrink:0}.co-command-search__facet-chip-label{max-width:110px;overflow:hidden;text-overflow:ellipsis}.co-command-search__facet-chip-remove{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border:none;border-radius:var(--co-border-radius-full);background:rgba(255, 255, 255, 0.25);color:inherit;cursor:pointer;padding:0;line-height:1;transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-command-search__facet-chip-remove:hover{background:rgba(255, 255, 255, 0.4)}.co-command-search__tabs{display:flex;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-md);overflow-x:auto;overflow-y:hidden;scrollbar-width:none;border-bottom:1px solid var(--co-semantic-border-default);scroll-padding-right:104px}.co-command-search__tabs::-webkit-scrollbar{display:none;}.co-command-search__tab{flex:0 0 auto}.co-command-search__tab--more{position:sticky;right:0;padding-left:var(--co-spacing-sm);background:var(--co-semantic-surface-page);box-shadow:-12px 0 10px -4px var(--co-semantic-surface-page)}.co-command-search__fav{padding:var(--co-spacing-sm) var(--co-spacing-lg) var(--co-spacing-md);border-bottom:1px solid var(--co-semantic-border-default)}.co-command-search__fav-grid{display:grid;grid-template-columns:repeat(auto-fill, minmax(88px, 1fr));gap:var(--co-spacing-xs)}.co-command-search__fav-card{display:flex;flex-direction:column;align-items:center;gap:var(--co-spacing-sm);padding:var(--co-spacing-sm) var(--co-spacing-xs);background:transparent;border:none;border-radius:var(--co-border-radius-sm);cursor:pointer;font-family:inherit;text-align:center;min-width:0;transition:background var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-command-search__fav-card:hover{background:var(--co-semantic-surface-hover)}.co-command-search__fav-card:focus-visible{outline:none;box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-command-search__fav-icon{flex:none;width:50px;height:50px;border-radius:var(--co-border-radius-sm);display:flex;align-items:center;justify-content:center;color:var(--co-color-base-blanco, #fff);box-shadow:0 2px 6px rgba(0, 0, 0, 0.14)}.co-command-search__fav-label{font-size:var(--co-font-size-12);font-weight:500;line-height:1.2;color:var(--co-semantic-text-default);max-width:100%;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}";export{s as co_command_search}
@@ -1 +1 @@
1
- import{r as t,c as i,h as e,a as s}from"./p-DJkaRtbb.js";import{g as o}from"./p-jYd9gu_c.js";const n=new Map,r=class{constructor(e){t(this,e),this.coInput=i(this,"coInput",7),this.coCommit=i(this,"coCommit",7),this.coEscape=i(this,"coEscape",7),this.value=null,this.hour12=!0,this.locale="es-CO",this.disabled=!1,this.pageStep=15,this.hour24=null,this.minute=null,this.focused=null,this.buffer="",this.onSegKeyDown=t=>i=>{var e;if(this.disabled)return;const s=i.key;if("Enter"!==s){if("Escape"===s)return i.preventDefault(),void this.coEscape.emit();if("ArrowUp"===s||"ArrowDown"===s)return i.preventDefault(),this.buffer="",void this.stepSegment(t,"ArrowUp"===s?1:-1);if("PageUp"===s||"PageDown"===s){i.preventDefault(),this.buffer="";const t=Math.max(1,Math.round(this.pageStep))*("PageUp"===s?1:-1),o=((null!==(e=this.minutesOfDay())&&void 0!==e?e:540)+t+1440)%1440;return this.hour24=Math.floor(o/60),this.minute=o%60,void this.emitDraft()}if("ArrowLeft"!==s&&"ArrowRight"!==s){if("Backspace"===s||"Delete"===s)return i.preventDefault(),this.buffer="",void("hour"===t?(this.hour24=null,this.coInput.emit(null)):"minute"===t&&(this.minute=null,this.coInput.emit(null)));if("period"===t&&this.hour12&&/^[ap]$/i.test(s)){i.preventDefault();const t="p"===s.toLowerCase();return null==this.hour24?this.hour24=t?21:9:t!==this.isPm&&(this.hour24=(this.hour24+12)%24),null==this.minute&&(this.minute=0),void this.emitDraft()}/^\d$/.test(s)&&"period"!==t&&(i.preventDefault(),this.typeDigit(t,Number(s)))}else{i.preventDefault(),this.buffer="";const e=this.hour12?["hour","minute","period"]:["hour","minute"],o=e.indexOf(t)+("ArrowRight"===s?1:-1),n=e[Math.max(0,Math.min(e.length-1,o))];n!==t&&this.focusSegment(n)}}else{i.preventDefault();const t=this.minutesOfDay();null!=t&&this.coCommit.emit(t)}},this.onStepperClick=t=>i=>{var e;i.preventDefault(),this.disabled||(this.buffer="",this.stepSegment(null!==(e=this.focused)&&void 0!==e?e:"hour",t))}}componentWillLoad(){this.syncFromValue(this.value)}syncFromValue(t){if(null==t||!Number.isFinite(t))return this.buffer="",this.hour24=null,void(this.minute=null);const i=Math.max(0,Math.min(1439,Math.round(t)));this.minutesOfDay()!==i&&(this.buffer="",this.hour24=Math.floor(i/60),this.minute=i%60)}async focusInput(){var t;null===(t=this.hourEl)||void 0===t||t.focus()}minutesOfDay(){return null==this.hour24||null==this.minute?null:60*this.hour24+this.minute}get isPm(){var t;return(null!==(t=this.hour24)&&void 0!==t?t:0)>=12}displayHour(){return null==this.hour24?null:this.hour12?this.hour24%12||12:this.hour24}emitDraft(){const t=this.minutesOfDay();null!=t&&this.coInput.emit(t)}setDisplayHour(t){if(this.hour12){const i=t%12;this.hour24=this.isPm?i+12:i}else this.hour24=Math.max(0,Math.min(23,t));null==this.minute&&(this.minute=0),this.emitDraft()}stepSegment(t,i){var e,s,o;if("hour"===t){const t=null!==(e=this.hour24)&&void 0!==e?e:9;this.hour24=(t+i+24)%24,null==this.minute&&(this.minute=0)}else if("minute"===t){const t=null!==(s=this.minute)&&void 0!==s?s:0;this.minute=(t+i+60)%60,null==this.hour24&&(this.hour24=9)}else this.hour24=((null!==(o=this.hour24)&&void 0!==o?o:9)+12)%24,null==this.minute&&(this.minute=0);this.emitDraft()}typeDigit(t,i){this.buffer+=String(i);const e=Number(this.buffer);if("hour"===t){e>(this.hour12?12:23)&&(this.buffer=String(i));const t=Number(this.buffer);this.hour12?t>=1&&this.setDisplayHour(t):2===this.buffer.length||t>2?(this.hour24=Math.min(23,t),null==this.minute&&(this.minute=0),this.emitDraft()):t>0&&(this.hour24=t,null==this.minute&&(this.minute=0),this.emitDraft()),(2===this.buffer.length||(this.hour12?10*t>12:10*t>23))&&this.advanceFrom("hour")}else if("minute"===t){e>59&&(this.buffer=String(i));const t=Number(this.buffer);this.minute=t,null==this.hour24&&(this.hour24=9),this.emitDraft(),(2===this.buffer.length||t>5)&&this.advanceFrom("minute")}}advanceFrom(t){this.buffer="";const i=this.hour12?["hour","minute","period"]:["hour","minute"],e=i.indexOf(t),s=i[e+1];s&&this.focusSegment(s)}focusSegment(t){var i;null===(i=this.el.shadowRoot.querySelector(`.co-time-field__seg--${t}`))||void 0===i||i.focus()}renderSeg(t,i){const s="hour"===t?i.hourLabel:"minute"===t?i.minuteLabel:i.dayPeriodLabel;let o,r=null,a=0,h=59;if("hour"===t){const t=this.displayHour();o=null==t?"––":String(t).padStart(2,"0"),r=t,a=this.hour12?1:0,h=this.hour12?12:23}else if("minute"===t)o=null==this.minute?"––":String(this.minute).padStart(2,"0"),r=this.minute;else{const t=null==this.hour24,{am:i,pm:e}=function(t){var i,e,s,o;const r=n.get(t);if(r)return r;const a=new Intl.DateTimeFormat(t,{hour:"numeric",hour12:!0}),h={am:null!==(e=null===(i=a.formatToParts(new Date(2e3,0,1,9,0)).find((t=>"dayPeriod"===t.type)))||void 0===i?void 0:i.value)&&void 0!==e?e:"AM",pm:null!==(o=null===(s=a.formatToParts(new Date(2e3,0,1,21,0)).find((t=>"dayPeriod"===t.type)))||void 0===s?void 0:s.value)&&void 0!==o?o:"PM"};return n.set(t,h),h}(this.locale);o=this.isPm?e:i,r=t?null:this.isPm?1:0,a=0,h=1}const l="hour"===t&&null==this.hour24||"minute"===t&&null==this.minute||"period"===t&&null==this.hour24;return e("span",{ref:"hour"===t?t=>this.hourEl=t:void 0,class:{"co-time-field__seg":!0,[`co-time-field__seg--${t}`]:!0,"co-time-field__seg--empty":l},role:"spinbutton",tabIndex:this.disabled?-1:0,"aria-label":s,"aria-valuemin":String(a),"aria-valuemax":String(h),"aria-valuenow":null==r?void 0:String(r),"aria-valuetext":l?void 0:o,"aria-disabled":this.disabled?"true":void 0,onKeyDown:this.onSegKeyDown(t),onFocus:()=>{this.focused=t,this.buffer=""},onBlur:()=>{this.focused===t&&(this.focused=null)}},o)}render(){const t=o(this.locale);return e("div",{key:"b35cb03c86b6073d7af850316ef15754bedc059c",class:{"co-time-field":!0,"co-time-field--disabled":this.disabled},role:"group","aria-label":this.fieldLabel||t.timeFieldLabel},e("span",{key:"dd3325ea0193f0819f4e8c2341eab0c0671cf421",class:"co-time-field__segs"},this.renderSeg("hour",t),e("span",{key:"4bfae37879f6cb2fa00d26bdabdbdc04eb7701ad",class:"co-time-field__sep","aria-hidden":"true"},":"),this.renderSeg("minute",t),this.hour12&&this.renderSeg("period",t)),e("span",{key:"196fcdc84979ee4631cefd208ef78b8d7a46d0c8",class:"co-time-field__steppers"},e("button",{key:"1e2dbe2b2746048f6a1de6bdff3304180028bb90",type:"button",tabIndex:-1,"aria-hidden":"true",onMouseDown:t=>t.preventDefault(),onClick:this.onStepperClick(1)},e("co-icon",{key:"7b3a75bfb9b8038667dc709b65b1b1ea8ebecc0e",name:"caret-up",size:10})),e("button",{key:"948ae31bfe775c72269ff2bbdea8839c15d2f076",type:"button",tabIndex:-1,"aria-hidden":"true",onMouseDown:t=>t.preventDefault(),onClick:this.onStepperClick(-1)},e("co-icon",{key:"357072a670ee75c74569bd59e6ea4bcdebf216ac",name:"caret-down",size:10}))))}get el(){return s(this)}static get watchers(){return{value:[{syncFromValue:0}]}}};r.style=":host{display:block;font-family:var(--co-font-family-primary);letter-spacing:var(--co-font-letter-spacing-body)}.co-time-field{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-xs);min-height:32px;padding:3px var(--co-spacing-sm) 3px var(--co-spacing-sm2);background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);box-sizing:border-box;transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-time-field:focus-within{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-time-field--disabled{background:var(--co-semantic-surface-disabled);border-color:transparent;pointer-events:none}.co-time-field__segs{display:inline-flex;align-items:center;gap:1px}.co-time-field__seg{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 3px;border-radius:var(--co-border-radius-xxs);font-size:var(--co-font-size-14);font-variant-numeric:tabular-nums;color:var(--co-semantic-text-default);box-sizing:border-box;cursor:default;user-select:none;outline:none}.co-time-field__seg:focus{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary);font-weight:600}.co-time-field__seg--period{margin-left:var(--co-spacing-xs);font-size:var(--co-font-size-13)}.co-time-field__seg--empty{color:var(--co-semantic-text-muted)}.co-time-field__sep{color:var(--co-semantic-text-muted)}.co-time-field__steppers{display:inline-flex;flex-direction:column}.co-time-field__steppers button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:12px;padding:0;border:0;background:transparent;color:var(--co-semantic-text-muted);cursor:pointer}.co-time-field__steppers button:hover{color:var(--co-semantic-text-default)}:host([data-touch]) .co-time-field{min-height:44px;padding:var(--co-spacing-sm) var(--co-spacing-sm2)}:host([data-touch]) .co-time-field__seg{min-width:34px;height:32px;font-size:var(--co-font-size-16)}";export{r as co_time_field}
1
+ import{r as t,c as i,h as e,a as s}from"./p-DJkaRtbb.js";import{g as o}from"./p-jYd9gu_c.js";const n=new Map,r=class{constructor(e){t(this,e),this.coInput=i(this,"coInput",7),this.coCommit=i(this,"coCommit",7),this.coEscape=i(this,"coEscape",7),this.value=null,this.hour12=!0,this.locale="es-CO",this.disabled=!1,this.pageStep=15,this.hour24=null,this.minute=null,this.focused=null,this.buffer="",this.onSegKeyDown=t=>i=>{var e;if(this.disabled)return;const s=i.key;if("Enter"!==s){if("Escape"===s)return i.preventDefault(),void this.coEscape.emit();if("ArrowUp"===s||"ArrowDown"===s)return i.preventDefault(),this.buffer="",void this.stepSegment(t,"ArrowUp"===s?1:-1);if("PageUp"===s||"PageDown"===s){i.preventDefault(),this.buffer="";const t=Math.max(1,Math.round(this.pageStep))*("PageUp"===s?1:-1),o=((null!==(e=this.minutesOfDay())&&void 0!==e?e:540)+t+1440)%1440;return this.hour24=Math.floor(o/60),this.minute=o%60,void this.emitDraft()}if("ArrowLeft"!==s&&"ArrowRight"!==s){if("Backspace"===s||"Delete"===s)return i.preventDefault(),this.buffer="",void("hour"===t?(this.hour24=null,this.coInput.emit(null)):"minute"===t&&(this.minute=null,this.coInput.emit(null)));if("period"===t&&this.hour12&&/^[ap]$/i.test(s)){i.preventDefault();const t="p"===s.toLowerCase();return null==this.hour24?this.hour24=t?21:9:t!==this.isPm&&(this.hour24=(this.hour24+12)%24),null==this.minute&&(this.minute=0),void this.emitDraft()}/^\d$/.test(s)&&"period"!==t&&(i.preventDefault(),this.typeDigit(t,Number(s)))}else{i.preventDefault(),this.buffer="";const e=this.hour12?["hour","minute","period"]:["hour","minute"],o=e.indexOf(t)+("ArrowRight"===s?1:-1),n=e[Math.max(0,Math.min(e.length-1,o))];n!==t&&this.focusSegment(n)}}else{i.preventDefault();const t=this.minutesOfDay();null!=t&&this.coCommit.emit(t)}},this.onStepperClick=t=>i=>{var e;i.preventDefault(),this.disabled||(this.buffer="",this.stepSegment(null!==(e=this.focused)&&void 0!==e?e:"hour",t))}}componentWillLoad(){this.syncFromValue(this.value)}syncFromValue(t){if(null==t||!Number.isFinite(t))return this.buffer="",this.hour24=null,void(this.minute=null);const i=Math.max(0,Math.min(1439,Math.round(t)));this.minutesOfDay()!==i&&(this.buffer="",this.hour24=Math.floor(i/60),this.minute=i%60)}async focusInput(){var t;null===(t=this.hourEl)||void 0===t||t.focus()}minutesOfDay(){return null==this.hour24||null==this.minute?null:60*this.hour24+this.minute}get isPm(){var t;return(null!==(t=this.hour24)&&void 0!==t?t:0)>=12}displayHour(){return null==this.hour24?null:this.hour12?this.hour24%12||12:this.hour24}emitDraft(){const t=this.minutesOfDay();null!=t&&this.coInput.emit(t)}setDisplayHour(t){if(this.hour12){const i=t%12;this.hour24=this.isPm?i+12:i}else this.hour24=Math.max(0,Math.min(23,t));null==this.minute&&(this.minute=0),this.emitDraft()}stepSegment(t,i){var e,s,o;if("hour"===t){const t=null!==(e=this.hour24)&&void 0!==e?e:9;this.hour24=(t+i+24)%24,null==this.minute&&(this.minute=0)}else if("minute"===t){const t=null!==(s=this.minute)&&void 0!==s?s:0;this.minute=(t+i+60)%60,null==this.hour24&&(this.hour24=9)}else this.hour24=((null!==(o=this.hour24)&&void 0!==o?o:9)+12)%24,null==this.minute&&(this.minute=0);this.emitDraft()}typeDigit(t,i){this.buffer+=String(i);const e=Number(this.buffer);if("hour"===t){e>(this.hour12?12:23)&&(this.buffer=String(i));const t=Number(this.buffer);this.hour12?t>=1&&this.setDisplayHour(t):2===this.buffer.length||t>2?(this.hour24=Math.min(23,t),null==this.minute&&(this.minute=0),this.emitDraft()):t>0&&(this.hour24=t,null==this.minute&&(this.minute=0),this.emitDraft()),(2===this.buffer.length||(this.hour12?10*t>12:10*t>23))&&this.advanceFrom("hour")}else if("minute"===t){e>59&&(this.buffer=String(i));const t=Number(this.buffer);this.minute=t,null==this.hour24&&(this.hour24=9),this.emitDraft(),(2===this.buffer.length||t>5)&&this.advanceFrom("minute")}}advanceFrom(t){this.buffer="";const i=this.hour12?["hour","minute","period"]:["hour","minute"],e=i.indexOf(t),s=i[e+1];s&&this.focusSegment(s)}focusSegment(t){var i;null===(i=this.el.shadowRoot.querySelector(`.co-time-field__seg--${t}`))||void 0===i||i.focus()}renderSeg(t,i){const s="hour"===t?i.hourLabel:"minute"===t?i.minuteLabel:i.dayPeriodLabel;let o,r=null,a=0,h=59;if("hour"===t){const t=this.displayHour();o=null==t?"––":String(t).padStart(2,"0"),r=t,a=this.hour12?1:0,h=this.hour12?12:23}else if("minute"===t)o=null==this.minute?"––":String(this.minute).padStart(2,"0"),r=this.minute;else{const t=null==this.hour24,{am:i,pm:e}=function(t){var i,e,s,o;const r=n.get(t);if(r)return r;const a=new Intl.DateTimeFormat(t,{hour:"numeric",hour12:!0}),h={am:null!==(e=null===(i=a.formatToParts(new Date(2e3,0,1,9,0)).find((t=>"dayPeriod"===t.type)))||void 0===i?void 0:i.value)&&void 0!==e?e:"AM",pm:null!==(o=null===(s=a.formatToParts(new Date(2e3,0,1,21,0)).find((t=>"dayPeriod"===t.type)))||void 0===s?void 0:s.value)&&void 0!==o?o:"PM"};return n.set(t,h),h}(this.locale);o=this.isPm?e:i,r=t?null:this.isPm?1:0,a=0,h=1}const l="hour"===t&&null==this.hour24||"minute"===t&&null==this.minute||"period"===t&&null==this.hour24;return e("span",{ref:"hour"===t?t=>this.hourEl=t:void 0,class:{"co-time-field__seg":!0,[`co-time-field__seg--${t}`]:!0,"co-time-field__seg--empty":l},role:"spinbutton",tabIndex:this.disabled?-1:0,"aria-label":s,"aria-valuemin":String(a),"aria-valuemax":String(h),"aria-valuenow":null==r?void 0:String(r),"aria-valuetext":l?void 0:o,"aria-disabled":this.disabled?"true":void 0,onKeyDown:this.onSegKeyDown(t),onFocus:()=>{this.focused=t,this.buffer=""},onBlur:()=>{this.focused===t&&(this.focused=null)}},o)}render(){const t=o(this.locale);return e("div",{key:"1eb2bed23d36204e93e5118dfd90977120bab249",class:{"co-time-field":!0,"co-time-field--disabled":this.disabled},role:"group","aria-label":this.fieldLabel||t.timeFieldLabel},e("span",{key:"f9ae6d5353b49e51a03e449e0daec153a1947b13",class:"co-time-field__segs"},this.renderSeg("hour",t),e("span",{key:"bb25e1e804e37d3740b2d67b4d9301bedf3319b2",class:"co-time-field__sep","aria-hidden":"true"},":"),this.renderSeg("minute",t),this.hour12&&this.renderSeg("period",t)),e("span",{key:"a0c601d45ed167bf6ba8b445ee7a242a7a92d169",class:"co-time-field__steppers"},e("button",{key:"fc10a1e000e7b7bed8512217b6fad8c304817326",type:"button",tabIndex:-1,"aria-hidden":"true",onMouseDown:t=>t.preventDefault(),onClick:this.onStepperClick(1)},e("co-icon",{key:"c293e1cbc842867401c01cd1a482900e127a0223",name:"caret-up",size:10})),e("button",{key:"c60eb3694573641425204e59ed4ac882c8c39402",type:"button",tabIndex:-1,"aria-hidden":"true",onMouseDown:t=>t.preventDefault(),onClick:this.onStepperClick(-1)},e("co-icon",{key:"c2b7ce55d167c8501ac3a3c66b419db04db00f29",name:"caret-down",size:10}))))}get el(){return s(this)}static get watchers(){return{value:[{syncFromValue:0}]}}};r.style=":host{display:block;font-family:var(--co-font-family-primary);letter-spacing:var(--co-font-letter-spacing-body)}.co-time-field{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-xs);min-height:32px;padding:3px var(--co-spacing-sm) 3px var(--co-spacing-sm2);background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);box-sizing:border-box;transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-time-field:focus-within{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-time-field--disabled{background:var(--co-semantic-surface-disabled);border-color:transparent;pointer-events:none}.co-time-field__segs{display:inline-flex;align-items:center;gap:1px}.co-time-field__seg{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:24px;padding:0 3px;border-radius:var(--co-border-radius-xxs);font-size:var(--co-font-size-14);font-variant-numeric:tabular-nums;color:var(--co-semantic-text-default);box-sizing:border-box;cursor:default;user-select:none;outline:none}.co-time-field__seg:focus{background:var(--co-semantic-surface-primary);color:var(--co-semantic-on-primary);font-weight:600}.co-time-field__seg--period{margin-left:var(--co-spacing-xs);font-size:var(--co-font-size-13)}.co-time-field__seg--empty{color:var(--co-semantic-text-muted)}.co-time-field__sep{color:var(--co-semantic-text-muted)}.co-time-field__steppers{display:inline-flex;flex-direction:column}.co-time-field__steppers button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:12px;padding:0;border:0;background:transparent;color:var(--co-semantic-text-muted);cursor:pointer}.co-time-field__steppers button:hover{color:var(--co-semantic-text-default)}:host([data-touch]) .co-time-field{min-height:44px;padding:var(--co-spacing-sm) var(--co-spacing-sm2)}:host([data-touch]) .co-time-field__seg{min-width:34px;height:32px;font-size:var(--co-font-size-16)}";export{r as co_time_field}
@@ -0,0 +1 @@
1
+ import{r as e,c as r,h as c}from"./p-DJkaRtbb.js";import{R as t}from"./p-CYN5B3IQ.js";const a=class{constructor(c){e(this,c),this.coChange=r(this,"coChange",7),this.checked=!1,this.disabled=!1,this.required=!1,this.status="default",this.handleClick=()=>{this.disabled||(this.checked=!this.checked,this.coChange.emit(this.checked))}}get statusIcon(){return{error:"warning-circle",success:"check-circle",warning:"warning",info:"info"}[this.status]||null}render(){const e=this.label||this.secondaryLabel,r=!!this.helperText;return c("div",{key:"6aabc6ae0391fbf4fa7426b76bc681055ecbf2d3",class:{"co-switch-wrapper":!0,"co-switch-wrapper--disabled":this.disabled,[`co-switch-wrapper--${this.status}`]:"default"!==this.status}},c("div",{key:"4873bb3271632fc90720c04b3354a1ba01237575",class:"co-switch-wrapper__row",onClick:this.handleClick},c("button",{key:"b393832df4eabb3d3411373517de4cc10942b847",role:"switch","aria-checked":String(this.checked),"aria-label":this.label||"",class:{"co-switch":!0,"co-switch--on":this.checked,"co-switch--off":!this.checked,"co-switch--disabled":this.disabled},disabled:this.disabled,part:"track"},c("span",{key:"22caaea1c694f5a18193c83cb3777c42dd8c76e1",class:"co-switch__thumb",part:"thumb"})),e&&c("div",{key:"a4bd9311e6dffdce3478bcf58d7aa1dbce60eb2f",class:"co-switch-wrapper__labels"},this.label&&c("span",{key:"7be285b4acfd32bcaa6aaf87ea73cfaa62f4e1ba",class:"co-switch-wrapper__label",part:"label"},this.label,c(t,{key:"50aa4b8a2895781424d9b9e5049c51ab0d105ccd",required:this.required})),this.secondaryLabel&&c("span",{key:"77d37cc202438af84f5b80638bb8592f07168882",class:"co-switch-wrapper__secondary-label",part:"secondary-label"},this.secondaryLabel))),r&&c("div",{key:"8133fa87b018a7a2ec96368ec0687652319c40ec",class:`co-switch-wrapper__helper co-switch-wrapper__helper--${this.status}`},this.statusIcon&&c("co-icon",{key:"c55bad51cdddcc583de762b563dfbabf39cb7d76",name:this.statusIcon,size:14,weight:"fill",class:"co-switch-wrapper__helper-icon"}),c("span",{key:"9f99e4fcf3ea29a1db4b7fdb7bc7d1e81ec56c31",class:"co-switch-wrapper__helper-text"},this.helperText)))}};a.style=":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-switch-wrapper{display:flex;flex-direction:column;gap:var(--co-spacing-xs)}.co-switch-wrapper__row{display:flex;align-items:center;gap:var(--co-switch-label-gap, var(--co-spacing-sm2));cursor:pointer}.co-switch-wrapper--disabled .co-switch-wrapper__row{cursor:not-allowed}.co-switch-wrapper__labels{display:flex;align-items:center;gap:var(--co-spacing-sm2);flex:1;min-width:0}.co-switch-wrapper__label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap}.co-switch-wrapper__secondary-label{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1;white-space:nowrap;margin-left:auto}.co-switch-wrapper--disabled .co-switch-wrapper__label,.co-switch-wrapper--disabled .co-switch-wrapper__secondary-label{color:var(--co-semantic-text-disabled)}.co-switch-wrapper__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding-left:calc(44px + var(--co-spacing-sm2));}.co-switch-wrapper__helper-icon{flex-shrink:0;display:flex;align-items:center}.co-switch-wrapper__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1}.co-switch-wrapper__helper--error .co-switch-wrapper__helper-icon,.co-switch-wrapper__helper--error .co-switch-wrapper__helper-text{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}.co-switch-wrapper__helper--success .co-switch-wrapper__helper-icon,.co-switch-wrapper__helper--success .co-switch-wrapper__helper-text{color:var(--co-semantic-text-success, var(--co-semantic-status-success))}.co-switch-wrapper__helper--warning .co-switch-wrapper__helper-icon,.co-switch-wrapper__helper--warning .co-switch-wrapper__helper-text{color:var(--co-semantic-text-warning, var(--co-color-status-review))}.co-switch-wrapper__helper--info .co-switch-wrapper__helper-icon,.co-switch-wrapper__helper--info .co-switch-wrapper__helper-text{color:var(--co-semantic-text-info, var(--co-semantic-status-info))}.co-switch{position:relative;display:inline-flex;align-items:center;width:44px;height:24px;border-radius:var(--co-border-radius-full);border:none;outline:none;cursor:pointer;padding:0;overflow:hidden;transition:background var(--co-motion-duration-base) var(--co-motion-ease-out);box-sizing:border-box;flex-shrink:0}.co-switch--on{background:var(--co-semantic-surface-primary)}.co-switch--off{background:var(--co-semantic-control-track-off, color-mix(in srgb, var(--co-semantic-surface-muted) 35%, transparent))}.co-switch__thumb{position:absolute;top:50%;left:2px;transform:translateY(-50%);width:20px;height:20px;border-radius:var(--co-border-radius-full);background:var(--co-semantic-control-thumb);transition:transform var(--co-motion-duration-base) var(--co-motion-ease-spring);box-shadow:0 1px 3px var(--co-semantic-control-shadow)}.co-switch--off .co-switch__thumb{transform:translateY(-50%) translateX(0)}.co-switch--on .co-switch__thumb{transform:translateY(-50%) translateX(20px)}.co-switch--disabled{opacity:0.4;cursor:not-allowed;pointer-events:none}.co-field-required{margin-left:2px;color:var(--co-semantic-text-error, 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)')}@supports not (background: color-mix(in srgb, red, transparent)){.co-switch--off{background:var(--co-semantic-surface-muted)}}";export{a as co_switch}
@@ -1 +1 @@
1
- import{r as a,c as r,h as e,H as o}from"./p-DJkaRtbb.js";const c=class{constructor(e){a(this,e),this.coSidebarModeChange=r(this,"coSidebarModeChange",7),this.sidebarMode="min",this.contentCard=!0}render(){return e(o,{key:"94ecab3775bfc41a8579c1d1c76c9312160aebad"},e("aside",{key:"3ddf6675b4d7ce1697c48e3e5885c1e303cdbc5f",class:"sidebar",part:"sidebar"},e("div",{key:"b64ecb693c193e4c8b4ac1e2facce961487e56cf",class:"sidebar__header",part:"sidebar-header"},e("slot",{key:"83d961e15824aea7b5fa7cc9da616d2e05da0cce",name:"sidebar-header"})),e("div",{key:"971f6ae8a723d811f2062963ab370a803284d5f8",class:"sidebar__body",part:"sidebar-body"},e("slot",{key:"be55e67e6344346e92eaf086fa139bc3e763949d",name:"sidebar"})),e("div",{key:"5b6680a3368ce37e0e34f99e8544e0007d1131c2",class:"sidebar__footer",part:"sidebar-footer"},e("slot",{key:"b0f72b695b2d5fd89e30d64982f9f43370c81341",name:"sidebar-footer"}))),e("div",{key:"fa85fc8ea88350e90df48e3853429641d6527014",class:"main co-sq-elevation co-sq-elevation-fallback",part:"main"},e("div",{key:"7a258e3649bb03756d8e56c69e1777bb9006cd53",class:"main__card co-sq-clip",part:"card"},e("header",{key:"bdfc99ad70e4c9772da3e8c99d631d2f7cbd7436",class:"main__header",part:"header"},e("slot",{key:"f697503aac1963ba4c86e57d45e5e5a3fe4781ee",name:"navbar"})),e("main",{key:"ca66e612ed04f5f829a0b75ac509c01012a6b4a5",class:{main__content:!0,"main__content--card":this.contentCard},part:"content"},e("slot",{key:"b99b1ea67e4ae8c059a3dcb03c0a04bbc2af569b"})))))}};c.style='.co-sq-elevation{border-radius:var(--co-sq-r);corner-shape:squircle;box-shadow:var(--co-sq-shadow)}.co-sq-clip{overflow:hidden;border-radius:var(--co-sq-r);corner-shape:squircle}@supports not (corner-shape: squircle){.co-sq-elevation{box-shadow:none}.co-sq-elevation-fallback{filter:var(--co-sq-drop-shadow)}.co-sq-clip{border-radius:0;--co-sq-tl:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M100 0L97.5 0L95 0L92.5 0L90 0L87.5 0.01L85 0.01L82.5 0.02L80 0.04L77.5 0.06L75 0.1L72.5 0.14L70 0.2L67.5 0.28L65 0.38L62.5 0.5L60 0.65L57.5 0.83L55 1.04L52.5 1.3L50 1.6L47.5 1.96L45 2.37L42.5 2.85L40 3.41L37.5 4.05L35 4.8L32.5 5.65L30 6.63L27.5 7.77L25 9.07L22.5 10.58L20 12.34L17.5 14.41L15 16.85L12.5 19.79L10 23.42L7.5 28.06L5 34.37L2.5 44.29L0 100L100 100Z%27 fill=%27%23fff%27/></svg>");--co-sq-tr:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M0 0L2.5 0L5 0L7.5 0L10 0L12.5 0.01L15 0.01L17.5 0.02L20 0.04L22.5 0.06L25 0.1L27.5 0.14L30 0.2L32.5 0.28L35 0.38L37.5 0.5L40 0.65L42.5 0.83L45 1.04L47.5 1.3L50 1.6L52.5 1.96L55 2.37L57.5 2.85L60 3.41L62.5 4.05L65 4.8L67.5 5.65L70 6.63L72.5 7.77L75 9.07L77.5 10.58L80 12.34L82.5 14.41L85 16.85L87.5 19.79L90 23.42L92.5 28.06L95 34.37L97.5 44.29L100 100L0 100Z%27 fill=%27%23fff%27/></svg>");--co-sq-bl:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M0 0L2.5 55.71L5 65.63L7.5 71.94L10 76.58L12.5 80.21L15 83.15L17.5 85.59L20 87.66L22.5 89.42L25 90.93L27.5 92.23L30 93.37L32.5 94.35L35 95.2L37.5 95.95L40 96.59L42.5 97.15L45 97.63L47.5 98.04L50 98.4L52.5 98.7L55 98.96L57.5 99.17L60 99.35L62.5 99.5L65 99.62L67.5 99.72L70 99.8L72.5 99.86L75 99.9L77.5 99.94L80 99.96L82.5 99.98L85 99.99L87.5 99.99L90 100L92.5 100L95 100L97.5 100L100 100L100 0Z%27 fill=%27%23fff%27/></svg>");--co-sq-br:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M100 0L97.5 55.71L95 65.63L92.5 71.94L90 76.58L87.5 80.21L85 83.15L82.5 85.59L80 87.66L77.5 89.42L75 90.93L72.5 92.23L70 93.37L67.5 94.35L65 95.2L62.5 95.95L60 96.59L57.5 97.15L55 97.63L52.5 98.04L50 98.4L47.5 98.7L45 98.96L42.5 99.17L40 99.35L37.5 99.5L35 99.62L32.5 99.72L30 99.8L27.5 99.86L25 99.9L22.5 99.94L20 99.96L17.5 99.98L15 99.99L12.5 99.99L10 100L7.5 100L5 100L2.5 100L0 100L0 0Z%27 fill=%27%23fff%27/></svg>");-webkit-mask:var(--co-sq-tl) top left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-tr) top right / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-bl) bottom left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-br) bottom right / var(--co-sq-r) var(--co-sq-r) no-repeat, linear-gradient(#fff 0 0) center / 100% calc(100% - 2 * var(--co-sq-r) + 2px) no-repeat, linear-gradient(#fff 0 0) center / calc(100% - 2 * var(--co-sq-r) + 2px) 100% no-repeat;mask:var(--co-sq-tl) top left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-tr) top right / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-bl) bottom left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-br) bottom right / var(--co-sq-r) var(--co-sq-r) no-repeat, linear-gradient(#fff 0 0) center / 100% calc(100% - 2 * var(--co-sq-r) + 2px) no-repeat, linear-gradient(#fff 0 0) center / calc(100% - 2 * var(--co-sq-r) + 2px) 100% no-repeat}}:host{display:flex;height:100vh;overflow:hidden;background:var(--co-app-shell-bg, linear-gradient( 180deg, var(--co-color-base-off-white) 0%, var(--co-color-neutral-100) 50%, var(--co-color-neutral-100) 100% ));font-family:var(--co-font-family-primary)}.sidebar{display:flex;flex-direction:column;width:256px;height:100%;flex-shrink:0;overflow:hidden;transition:width var(--co-motion-duration-base) var(--co-motion-ease-out);padding:var(--co-spacing-sm);padding-right:0;box-sizing:border-box}:host([sidebar-mode="min"]) .sidebar{--co-sidebar-min-width:64px;width:var(--co-sidebar-min-width);align-items:flex-start;padding:var(--co-spacing-sm) 0}.sidebar__header{flex-shrink:0}.sidebar__body{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.sidebar__body:hover{scrollbar-color:var(--co-color-opacity-blanco-16) transparent}.sidebar__body::-webkit-scrollbar{width:6px}.sidebar__body::-webkit-scrollbar-track{background:transparent}.sidebar__body::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}.sidebar__body:hover::-webkit-scrollbar-thumb{background:var(--co-color-opacity-blanco-16)}.sidebar__body:hover::-webkit-scrollbar-thumb:hover{background:var(--co-color-opacity-blanco-25)}.sidebar__body:hover::-webkit-scrollbar-thumb:active{background:var(--co-color-opacity-blanco-50)}.sidebar__footer{flex-shrink:0}:host([sidebar-mode="min"]) .sidebar__header,:host([sidebar-mode="min"]) .sidebar__body,:host([sidebar-mode="min"]) .sidebar__footer{display:flex;flex-direction:column;align-items:center;width:var(--co-sidebar-min-width, 64px)}:host([sidebar-mode="min"]) .sidebar__header{gap:var(--co-spacing-sm);padding-bottom:var(--co-spacing-md)}:host([sidebar-mode="min"]) .sidebar__body{scrollbar-width:none}:host([sidebar-mode="min"]) .sidebar__body::-webkit-scrollbar{width:0}.main{display:flex;flex-direction:column;flex:1;min-width:0;padding:0;margin:var(--co-spacing-sm);margin-left:0;min-height:0;contain:layout;--co-shell-r:var(--co-border-radius-md);--co-sq-r:var(--co-shell-r);--co-sq-shadow:var(--co-app-shell-shadow, 0 1px 4px rgba(31, 28, 27, 0.06), 0 10px 56px rgba(31, 28, 27, 0.12));--co-sq-drop-shadow:var(--co-app-shell-drop-shadow, drop-shadow(0 1px 2px rgba(31, 28, 27, 0.06)) drop-shadow(0 10px 28px rgba(31, 28, 27, 0.12)))}.main__card{flex:1;min-height:0;display:flex;flex-direction:column}.main__header{flex-shrink:0}.main__content{flex:1;min-height:0;overflow:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.main__content:hover{scrollbar-color:var(--co-color-opacity-negro-16) transparent}.main__content::-webkit-scrollbar{width:6px;height:6px}.main__content::-webkit-scrollbar-track{background:transparent}.main__content::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}.main__content:hover::-webkit-scrollbar-thumb{background:var(--co-color-opacity-negro-16)}.main__content:hover::-webkit-scrollbar-thumb:hover{background:var(--co-color-opacity-negro-25)}.main__content:hover::-webkit-scrollbar-thumb:active{background:var(--co-color-opacity-negro-50)}.main__content--card{background:var(--co-semantic-surface-secondary)}';export{c as co_app_shell}
1
+ import{r as a,c as r,h as e,H as o}from"./p-DJkaRtbb.js";const s=class{constructor(e){a(this,e),this.coSidebarModeChange=r(this,"coSidebarModeChange",7),this.sidebarMode="min",this.contentCard=!0}render(){return e(o,{key:"94ecab3775bfc41a8579c1d1c76c9312160aebad"},e("aside",{key:"3ddf6675b4d7ce1697c48e3e5885c1e303cdbc5f",class:"sidebar",part:"sidebar"},e("div",{key:"b64ecb693c193e4c8b4ac1e2facce961487e56cf",class:"sidebar__header",part:"sidebar-header"},e("slot",{key:"83d961e15824aea7b5fa7cc9da616d2e05da0cce",name:"sidebar-header"})),e("div",{key:"971f6ae8a723d811f2062963ab370a803284d5f8",class:"sidebar__body",part:"sidebar-body"},e("slot",{key:"be55e67e6344346e92eaf086fa139bc3e763949d",name:"sidebar"})),e("div",{key:"5b6680a3368ce37e0e34f99e8544e0007d1131c2",class:"sidebar__footer",part:"sidebar-footer"},e("slot",{key:"b0f72b695b2d5fd89e30d64982f9f43370c81341",name:"sidebar-footer"}))),e("div",{key:"fa85fc8ea88350e90df48e3853429641d6527014",class:"main co-sq-elevation co-sq-elevation-fallback",part:"main"},e("div",{key:"7a258e3649bb03756d8e56c69e1777bb9006cd53",class:"main__card co-sq-clip",part:"card"},e("header",{key:"bdfc99ad70e4c9772da3e8c99d631d2f7cbd7436",class:"main__header",part:"header"},e("slot",{key:"f697503aac1963ba4c86e57d45e5e5a3fe4781ee",name:"navbar"})),e("main",{key:"ca66e612ed04f5f829a0b75ac509c01012a6b4a5",class:{main__content:!0,"main__content--card":this.contentCard},part:"content"},e("slot",{key:"b99b1ea67e4ae8c059a3dcb03c0a04bbc2af569b"})))))}};s.style='.co-sq-elevation{border-radius:var(--co-sq-r);corner-shape:squircle;box-shadow:var(--co-sq-shadow)}.co-sq-clip{overflow:hidden;border-radius:var(--co-sq-r);corner-shape:squircle}@supports not (corner-shape: squircle){.co-sq-elevation{box-shadow:none}.co-sq-elevation-fallback{filter:var(--co-sq-drop-shadow)}.co-sq-clip{border-radius:0;--co-sq-tl:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M100 0L97.5 0L95 0L92.5 0L90 0L87.5 0.01L85 0.01L82.5 0.02L80 0.04L77.5 0.06L75 0.1L72.5 0.14L70 0.2L67.5 0.28L65 0.38L62.5 0.5L60 0.65L57.5 0.83L55 1.04L52.5 1.3L50 1.6L47.5 1.96L45 2.37L42.5 2.85L40 3.41L37.5 4.05L35 4.8L32.5 5.65L30 6.63L27.5 7.77L25 9.07L22.5 10.58L20 12.34L17.5 14.41L15 16.85L12.5 19.79L10 23.42L7.5 28.06L5 34.37L2.5 44.29L0 100L100 100Z%27 fill=%27%23fff%27/></svg>");--co-sq-tr:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M0 0L2.5 0L5 0L7.5 0L10 0L12.5 0.01L15 0.01L17.5 0.02L20 0.04L22.5 0.06L25 0.1L27.5 0.14L30 0.2L32.5 0.28L35 0.38L37.5 0.5L40 0.65L42.5 0.83L45 1.04L47.5 1.3L50 1.6L52.5 1.96L55 2.37L57.5 2.85L60 3.41L62.5 4.05L65 4.8L67.5 5.65L70 6.63L72.5 7.77L75 9.07L77.5 10.58L80 12.34L82.5 14.41L85 16.85L87.5 19.79L90 23.42L92.5 28.06L95 34.37L97.5 44.29L100 100L0 100Z%27 fill=%27%23fff%27/></svg>");--co-sq-bl:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M0 0L2.5 55.71L5 65.63L7.5 71.94L10 76.58L12.5 80.21L15 83.15L17.5 85.59L20 87.66L22.5 89.42L25 90.93L27.5 92.23L30 93.37L32.5 94.35L35 95.2L37.5 95.95L40 96.59L42.5 97.15L45 97.63L47.5 98.04L50 98.4L52.5 98.7L55 98.96L57.5 99.17L60 99.35L62.5 99.5L65 99.62L67.5 99.72L70 99.8L72.5 99.86L75 99.9L77.5 99.94L80 99.96L82.5 99.98L85 99.99L87.5 99.99L90 100L92.5 100L95 100L97.5 100L100 100L100 0Z%27 fill=%27%23fff%27/></svg>");--co-sq-br:url("data:image/svg+xml,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 100 100%27 preserveAspectRatio=%27none%27><path d=%27M100 0L97.5 55.71L95 65.63L92.5 71.94L90 76.58L87.5 80.21L85 83.15L82.5 85.59L80 87.66L77.5 89.42L75 90.93L72.5 92.23L70 93.37L67.5 94.35L65 95.2L62.5 95.95L60 96.59L57.5 97.15L55 97.63L52.5 98.04L50 98.4L47.5 98.7L45 98.96L42.5 99.17L40 99.35L37.5 99.5L35 99.62L32.5 99.72L30 99.8L27.5 99.86L25 99.9L22.5 99.94L20 99.96L17.5 99.98L15 99.99L12.5 99.99L10 100L7.5 100L5 100L2.5 100L0 100L0 0Z%27 fill=%27%23fff%27/></svg>");-webkit-mask:var(--co-sq-tl) top left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-tr) top right / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-bl) bottom left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-br) bottom right / var(--co-sq-r) var(--co-sq-r) no-repeat, linear-gradient(#fff 0 0) center / 100% calc(100% - 2 * var(--co-sq-r) + 2px) no-repeat, linear-gradient(#fff 0 0) center / calc(100% - 2 * var(--co-sq-r) + 2px) 100% no-repeat;mask:var(--co-sq-tl) top left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-tr) top right / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-bl) bottom left / var(--co-sq-r) var(--co-sq-r) no-repeat, var(--co-sq-br) bottom right / var(--co-sq-r) var(--co-sq-r) no-repeat, linear-gradient(#fff 0 0) center / 100% calc(100% - 2 * var(--co-sq-r) + 2px) no-repeat, linear-gradient(#fff 0 0) center / calc(100% - 2 * var(--co-sq-r) + 2px) 100% no-repeat}}:host{display:flex;height:100vh;overflow:hidden;background:var(--co-app-shell-bg, linear-gradient( 180deg, var(--co-color-base-off-white) 0%, var(--co-color-neutral-100) 50%, var(--co-color-neutral-100) 100% ));font-family:var(--co-font-family-primary)}.sidebar{display:flex;flex-direction:column;width:256px;height:100%;flex-shrink:0;overflow:hidden;transition:width var(--co-motion-duration-base) var(--co-motion-ease-out);padding:var(--co-spacing-sm);padding-right:0;box-sizing:border-box}:host([sidebar-mode="min"]) .sidebar{--co-sidebar-min-width:64px;width:var(--co-sidebar-min-width);align-items:flex-start;padding:var(--co-spacing-sm) 0}.sidebar__header{flex-shrink:0}.sidebar__body{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.sidebar__body:hover{scrollbar-color:var(--co-color-opacity-blanco-16) transparent}.sidebar__body::-webkit-scrollbar{width:6px}.sidebar__body::-webkit-scrollbar-track{background:transparent}.sidebar__body::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}.sidebar__body:hover::-webkit-scrollbar-thumb{background:var(--co-color-opacity-blanco-16)}.sidebar__body:hover::-webkit-scrollbar-thumb:hover{background:var(--co-color-opacity-blanco-25)}.sidebar__body:hover::-webkit-scrollbar-thumb:active{background:var(--co-color-opacity-blanco-50)}.sidebar__footer{flex-shrink:0}:host([sidebar-mode="min"]) .sidebar__header,:host([sidebar-mode="min"]) .sidebar__body,:host([sidebar-mode="min"]) .sidebar__footer{display:flex;flex-direction:column;align-items:center;width:var(--co-sidebar-min-width, 64px)}:host([sidebar-mode="min"]) .sidebar__header{gap:var(--co-spacing-sm);padding-bottom:var(--co-spacing-md)}:host([sidebar-mode="min"]) .sidebar__body{scrollbar-width:none}:host([sidebar-mode="min"]) .sidebar__body::-webkit-scrollbar{width:0}.main{display:flex;flex-direction:column;flex:1;min-width:0;padding:0;margin:var(--co-spacing-sm);margin-left:0;min-height:0;contain:layout;--co-shell-r:var(--co-border-radius-md);--co-sq-r:var(--co-shell-r);--co-sq-shadow:var(--co-app-shell-shadow, 0 1px 4px rgba(31, 28, 27, 0.06), 0 10px 56px rgba(31, 28, 27, 0.12));--co-sq-drop-shadow:var(--co-app-shell-drop-shadow, drop-shadow(0 1px 2px rgba(31, 28, 27, 0.06)) drop-shadow(0 10px 28px rgba(31, 28, 27, 0.12)))}.main__card{flex:1;min-height:0;display:flex;flex-direction:column}.main__header{flex-shrink:0}.main__content{flex:1;min-height:0;overflow:hidden;scrollbar-width:thin;scrollbar-color:transparent transparent}.main__content:hover{scrollbar-color:var(--co-semantic-border-default) transparent}.main__content::-webkit-scrollbar{width:6px;height:6px}.main__content::-webkit-scrollbar-track{background:transparent}.main__content::-webkit-scrollbar-thumb{background:transparent;border-radius:9999px}.main__content:hover::-webkit-scrollbar-thumb{background:var(--co-semantic-border-default)}.main__content:hover::-webkit-scrollbar-thumb:hover{background:var(--co-semantic-border-field)}.main__content:hover::-webkit-scrollbar-thumb:active{background:var(--co-semantic-border-strong)}.main__content--card{background:var(--co-semantic-surface-secondary)}';export{s as co_app_shell}
@@ -0,0 +1 @@
1
+ import{r as o,c as e,h as t,a as i}from"./p-DJkaRtbb.js";import{R as c}from"./p-CYN5B3IQ.js";import{r as s}from"./p-Ba_v-MzM.js";const a=class{constructor(t){o(this,t),this.coChange=e(this,"coChange",7),this.coOpen=e(this,"coOpen",3),this.coClose=e(this,"coClose",3),this.coClear=e(this,"coClear",7),this.coFooterPrimary=e(this,"coFooterPrimary",7),this.coFooterSecondary=e(this,"coFooterSecondary",7),this.required=!1,this.placeholder="",this.disabled=!1,this.clearable=!0,this.searchable=!1,this.searchPlaceholder="Search",this.showFooter=!1,this.footerPrimaryLabel="Ok",this.footerSecondaryLabel="New Tags",this.options="[]",this.emptyMessage="No results found",this.value="[]",this.multiple=!0,this.size="md",this.status="default",this.layout="vertical",this.isOpen=!1,this.searchQuery="",this.overflowCount=0,this.pendingFocus=!1,this.handleTriggerClick=o=>{this.disabled&&o.stopPropagation()},this.handleTriggerKeyDown=o=>{this.disabled||o.target===this.triggerEl&&("Enter"===o.key||" "===o.key?(o.preventDefault(),this.isOpen=!this.isOpen):"ArrowDown"!==o.key||this.isOpen||(o.preventDefault(),this.isOpen=!0))},this.handlePopoverOpen=()=>{console.log("[co-combobox] handlePopoverOpen called"),this.isOpen=!0},this.handlePopoverClose=()=>{console.log("[co-combobox] handlePopoverClose called"),this.isOpen=!1},this.handleClear=o=>{o.stopPropagation(),this.value="[]",this.coClear.emit(),this.coChange.emit({value:this.multiple?[]:"",item:null})},this.handleListChange=o=>{if(null==o.value)return this.value="[]",this.isOpen=!1,void this.coChange.emit({value:null,item:null});if(this.multiple){const e=o.value;this.value=JSON.stringify(e),this.coChange.emit({value:e,item:o.item})}else{const e=o.value;this.value=JSON.stringify([e]),this.isOpen=!1,this.coChange.emit({value:e,item:o.item})}},this.handleListRemove=o=>{const e=this.selectedValues.filter((e=>e!==o));this.value=JSON.stringify(e),this.coChange.emit({value:e,item:{_id:o,label:o}})},this.handleFooterPrimary=()=>{this.coFooterPrimary.emit(),this.isOpen=!1},this.handleFooterSecondary=()=>{this.coFooterSecondary.emit()}}normalizeOptions(o){return o.map((o=>"string"==typeof o?{label:o,value:o}:o))}get parsedOptions(){if("string"==typeof this.options)try{return this.normalizeOptions(JSON.parse(this.options))}catch(o){return[]}return this.normalizeOptions(this.options)}get selectedValues(){if("string"==typeof this.value)try{return JSON.parse(this.value)}catch(o){return[]}return this.value}get filteredOptions(){return this.searchQuery?s(this.parsedOptions,this.searchQuery,(o=>o.label)):this.parsedOptions}get listItemsJson(){return JSON.stringify(this.filteredOptions.map((o=>({_id:o.value,label:o.label,icon:o.icon}))))}get displayText(){const o=this.selectedValues;if(0===o.length)return"";const e=this.parsedOptions.find((e=>e.value===o[0]));return e?e.label:o[0]}get selectedOptions(){return this.selectedValues.map((o=>this.parsedOptions.find((e=>e.value===o)))).filter((o=>!!o))}get hasValue(){return this.selectedValues.length>0}get statusIcon(){return{error:"warning-circle",success:"check-circle",warning:"warning",info:"info"}[this.status]||null}onOpenChange(o){o?(this.searchQuery="",this.pendingFocus=!0,this.coOpen.emit()):(this.coClose.emit(),this.restoreTriggerFocus())}onValueChange(){}connectedCallback(){this.resizeObserver=new ResizeObserver((()=>{this.calcOverflow()}))}disconnectedCallback(){var o;null===(o=this.resizeObserver)||void 0===o||o.disconnect()}componentDidRender(){var o,e,t;this.chipContainerEl&&(null===(o=this.resizeObserver)||void 0===o||o.disconnect(),null===(e=this.resizeObserver)||void 0===e||e.observe(this.chipContainerEl)),this.calcOverflow(),this.pendingFocus&&(null===(t=this.optionListEl)||void 0===t?void 0:t.isConnected)&&(this.pendingFocus=!1,this.optionListEl.focusSearch())}calcOverflow(){if(!this.multiple||!this.chipContainerEl)return;const o=this.chipContainerEl,e=Array.from(o.querySelectorAll("co-chip"));if(0===e.length)return void(0!==this.overflowCount&&(this.overflowCount=0));const t=o.getBoundingClientRect().right;let i=0;for(let o=e.length-1;o>=0&&e[o].getBoundingClientRect().right>t+1;o--)i++;i!==this.overflowCount&&(this.overflowCount=i)}restoreTriggerFocus(){var o;const e=document.activeElement;(e===this.el||this.el.contains(e))&&(null===(o=this.triggerEl)||void 0===o||o.focus({preventScroll:!0}))}render(){return t("div",{key:"f99c5d0c64f2b663d0cd553a26e5d64b66610571",class:{"co-combobox":!0,"co-combobox--open":this.isOpen,"co-combobox--disabled":this.disabled,[`co-combobox--${this.size}`]:!0},part:"wrapper"},(this.label||this.secondaryLabel)&&t("div",{key:"0e779933aa8d138ff765440ac2bd42ec6a3d13d7",class:"co-combobox__labels"},this.label&&t("label",{key:"463b2a9b0adaa41cc94ae6fa4f4010518294d210",class:"co-combobox__label",part:"label"},this.label,t(c,{key:"516ffb77b7e7a76ea8a37bd2afcb1e7089af83cd",required:this.required})),this.secondaryLabel&&t("span",{key:"43c140bbd96c4008d972d3692899cef6521b2f7f",class:"co-combobox__secondary-label",part:"secondary-label"},this.secondaryLabel)),t("co-popover",{key:"74e786d471d4a0d0c496cf2e0ff943b0041737ab",open:this.isOpen,placement:"bottom-start",matchWidth:!0,offset:4,onCoOpen:this.handlePopoverOpen,onCoClose:this.handlePopoverClose},t("div",{key:"302aae50470ebdba2a60d35372e9403724632d0c",slot:"trigger",class:"co-combobox__trigger",part:"trigger",role:"combobox","aria-expanded":this.isOpen?"true":"false","aria-haspopup":"listbox","aria-label":this.label||void 0,"aria-disabled":this.disabled?"true":void 0,"aria-controls":this.isOpen?a.LIST_ID:void 0,tabIndex:this.disabled?-1:0,ref:o=>this.triggerEl=o,onClick:this.handleTriggerClick,onKeyDown:this.handleTriggerKeyDown},this.iconLeft&&t("co-icon",{key:"dc3e6cf2d6b0e43bc51ee9176c2b820717fb7bef",name:this.iconLeft,size:16,class:"co-combobox__icon"}),t("div",{key:"fa07a4fc78beb89a0528eb5ca860aafbf97b5e78",class:"co-combobox__input-wrapper",ref:o=>this.chipContainerEl=o},this.multiple&&this.hasValue?this.selectedOptions.map((o=>t("co-chip",{size:"small","icon-mode":"both",label:o.label},t("co-icon",{slot:"icon-left",name:o.icon||"circle",size:10}),t("co-icon",{slot:"icon-right",name:"x-circle",size:10,weight:"fill",onClick:e=>{e.stopPropagation(),this.handleListRemove(o.value)}})))):t("span",{class:{"co-combobox__text":!0,"co-combobox__text--placeholder":!this.hasValue}},this.hasValue?this.displayText:this.placeholder)),this.multiple&&this.overflowCount>0&&t("span",{key:"157baffb4927145da44cd6fc722ae1732cf20f13",class:"co-combobox__overflow-badge"},this.overflowCount),this.clearable&&this.hasValue&&!this.disabled&&t("button",{key:"1788b18dbd71a4f4e3c8c579d8394d69edda11ab",class:"co-combobox__clear",type:"button",tabIndex:-1,onClick:this.handleClear,"aria-label":"Clear selection",part:"clear"},t("co-icon",{key:"e37b3b32b59958dda1c0f9d33e59c9e9ebf48cbb",name:"x-circle",size:16,weight:"fill"})),t("co-icon",{key:"9686ea04af76add029c292936f393f059c85ad8d",name:this.isOpen?"caret-up":"caret-down",size:16,class:"co-combobox__caret"})),t("div",{key:"7b1ffa794b02e14594990d86ae4032b41b536854",class:"co-combobox__dropdown",part:"dropdown"},this.isOpen&&t("co-option-list",{key:"33c1d95d4ea218b7707ddc0665db826bb8f86028",id:a.LIST_ID,ref:o=>this.optionListEl=o,items:this.listItemsJson,value:this.multiple?JSON.stringify(this.selectedValues):this.selectedValues[0]||"",multiple:this.multiple,selectedAffordance:"check",removableItems:this.multiple,virtual:!0,searchable:this.searchable,searchPlaceholder:this.searchPlaceholder,searchDebounce:0,highlightMatches:!0,emptyMessage:this.emptyMessage,onCoSearch:o=>{this.searchQuery=o.detail},onCoChange:o=>this.handleListChange(o.detail),onCoRemoveItem:o=>this.handleListRemove(o.detail)},this.showFooter&&t("co-list-footer",{key:"933855b46314034c639869b4aafd9e5e577a3e1b",slot:"footer",secondaryLabel:this.footerSecondaryLabel,primaryLabel:this.footerPrimaryLabel,onCoSecondary:this.handleFooterSecondary,onCoPrimary:this.handleFooterPrimary})))),this.helperText&&t("div",{key:"876426c2eae453d0bd8cc5bbbfd704970d8eb243",class:`co-combobox__helper co-combobox__helper--${this.status}`,part:"helper"},this.statusIcon&&t("co-icon",{key:"53cb106c5cddb0ba6a29bc9cc73aae8fd21c8913",name:this.statusIcon,size:14,weight:"fill",class:"co-combobox__helper-icon"}),t("span",{key:"0f9a22080d190fa2cbd4f68d28838a42a6ab2761",class:"co-combobox__helper-text"},this.helperText)))}get el(){return i(this)}static get watchers(){return{isOpen:[{onOpenChange:0}],value:[{onValueChange:0}]}}};a.LIST_ID="co-combobox-list",a.style=":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;position:relative}.co-combobox{display:flex;flex-direction:column;gap:var(--co-spacing-sm2);position:relative}.co-combobox__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2)}.co-combobox__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-combobox__secondary-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;text-align:right}.co-combobox__trigger{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);min-height:40px;box-sizing:border-box;cursor:pointer;transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);overflow:hidden}.co-combobox--s .co-combobox__trigger{min-height:28px;padding:var(--co-spacing-xxs) var(--co-spacing-sm);font-size:var(--co-font-size-12)}.co-combobox--sm .co-combobox__trigger{min-height:32px;padding:var(--co-spacing-xs) var(--co-spacing-sm);font-size:var(--co-font-size-14)}.co-combobox--lg .co-combobox__trigger{min-height:48px;padding:var(--co-spacing-sm) var(--co-spacing-lg);font-size:var(--co-font-size-16)}.co-combobox--open .co-combobox__trigger{border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-combobox__trigger:focus-visible{outline:none;border-color:var(--co-semantic-border-focus);box-shadow:0 0 0 2px var(--co-semantic-border-focus-ring)}.co-combobox--disabled .co-combobox__trigger{background:var(--co-semantic-surface-disabled);border-color:transparent;cursor:not-allowed}.co-combobox__icon{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-combobox--disabled .co-combobox__icon{color:var(--co-semantic-text-disabled)}.co-combobox__input-wrapper{flex:1;display:flex;align-items:center;flex-wrap:nowrap;gap:4px;min-width:0;min-height:22px;padding:0;overflow:hidden}.co-combobox__input-wrapper co-chip{--co-chip-max-width:120px;--co-chip-bg:var(--co-semantic-surface-muted);--co-chip-color:var(--co-semantic-text-default);--co-chip-border:1px solid var(--co-semantic-border-subtle);flex-shrink:0}.co-combobox__overflow-badge{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;border-radius:var(--co-border-radius-full);background:var(--co-semantic-status-info, #2d6cc5);color:var(--co-color-base-blanco, #fff);font-family:var(--co-font-family-primary);font-size:var(--co-font-size-10);font-weight:600;line-height:1;white-space:nowrap}.co-combobox__text{color:var(--co-semantic-text-default);font-family:inherit;font-size:inherit;font-weight:400;letter-spacing:inherit;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-combobox__text--placeholder{color:var(--co-semantic-text-muted)}.co-combobox--disabled .co-combobox__text{color:var(--co-semantic-text-disabled)}.co-combobox__clear{flex-shrink:0;display:flex;align-items:center;justify-content:center;padding:0;margin:0;border:none;background:transparent;cursor:pointer;color:var(--co-semantic-text-muted);transition:color var(--co-motion-duration-fast) var(--co-motion-ease-out)}.co-combobox__clear:hover{color:var(--co-semantic-text-default)}.co-combobox__caret{flex-shrink:0;color:var(--co-semantic-text-muted);display:flex;align-items:center}.co-combobox--disabled .co-combobox__caret{color:var(--co-semantic-text-disabled)}.co-combobox__dropdown{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}.co-combobox__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs)}.co-combobox__helper-icon{flex-shrink:0;display:flex;align-items:center}.co-combobox__helper-text{color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;line-height:1}.co-combobox__helper--error .co-combobox__helper-icon,.co-combobox__helper--error .co-combobox__helper-text{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}.co-combobox__helper--success .co-combobox__helper-icon,.co-combobox__helper--success .co-combobox__helper-text{color:var(--co-semantic-text-success, var(--co-semantic-status-success))}.co-combobox__helper--warning .co-combobox__helper-icon,.co-combobox__helper--warning .co-combobox__helper-text{color:var(--co-semantic-text-warning, var(--co-color-status-review))}.co-combobox__helper--info .co-combobox__helper-icon,.co-combobox__helper--info .co-combobox__helper-text{color:var(--co-semantic-text-info, var(--co-semantic-status-info))}:host([layout='horizontal']) .co-combobox{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-combobox__labels{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-combobox__label{white-space:normal}:host([layout='horizontal']) .co-combobox>:not(.co-combobox__labels){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-semantic-text-error, 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)')}";export{a as co_combobox}
@@ -0,0 +1 @@
1
+ const n=[];function t(t){o(t),n.push(t)}function o(t){const o=n.indexOf(t);o>=0&&n.splice(o,1)}function c(t){const o=n.filter((n=>!(n=>!0===n.modeless)(n))),c=o.length?o:n;return c.length>0&&c[c.length-1]===t}export{c as i,t as p,o as r}
@@ -9,6 +9,10 @@
9
9
  :host {
10
10
  display: inline-flex;
11
11
  font-family: var(--co-font-family-primary);
12
+ /* Tinta de las acciones `surface="dark"` (co-button/co-icon-button, sloteadas y la ✕):
13
+ pareja de nuestro fondo inverso — blanca sobre la barra negra en claro, negra sobre la
14
+ barra BLANCA en oscuro. Sin esto cableaban blanco fijo: blanco sobre blanco en oscuro. */
15
+ --co-surface-dark-ink: var(--co-semantic-on-primary);
12
16
  /* Fix round 1 (Task 5 finding): con position="bottom-center" el host queda
13
17
  fixed y SIGUE siendo hit-testable por sí mismo aunque el div interno del
14
18
  shadow tenga pointer-events:none — document.elementFromPoint retargetea
@@ -117,7 +121,7 @@
117
121
 
118
122
  /* Divisor vertical inverso: los consumidores slotean un <hr> plano y la barra
119
123
  lo tematiza — reemplaza los divisores hand-rolled de CloudDriveSelectionBar
120
- (text-inverse 16%) y BulkActionsBar; acá blanco ~28% via color-mix. */
124
+ (text-inverse 16%) y BulkActionsBar; acá la tinta de la barra ~28% via color-mix. */
121
125
  ::slotted(hr) {
122
126
  width: 1px;
123
127
  height: 24px;
@@ -126,7 +130,7 @@
126
130
  margin: 0 var(--co-spacing-xs);
127
131
  border: none;
128
132
  padding: 0;
129
- background: color-mix(in srgb, var(--co-color-base-blanco, #fff) 28%, transparent);
133
+ background: color-mix(in srgb, var(--co-surface-dark-ink, var(--co-color-base-blanco, #fff)) 28%, transparent);
130
134
  }
131
135
 
132
136
  /* ── Dismiss ────────────────────────────────────────────────── */
@@ -263,13 +263,14 @@
263
263
  min-height: 0;
264
264
  overflow: hidden;
265
265
 
266
- /* Scrollbar — light context */
266
+ /* Scrollbar: thumb por border-* (mismo valor en claro que negro-16/25/50; en oscuro, blanco
267
+ translúcido — la tinta negra fija no se veía sobre la superficie oscura). */
267
268
  scrollbar-width: thin;
268
269
  scrollbar-color: transparent transparent;
269
270
  }
270
271
 
271
272
  .main__content:hover {
272
- scrollbar-color: var(--co-color-opacity-negro-16) transparent;
273
+ scrollbar-color: var(--co-semantic-border-default) transparent;
273
274
  }
274
275
 
275
276
  .main__content::-webkit-scrollbar {
@@ -287,15 +288,15 @@
287
288
  }
288
289
 
289
290
  .main__content:hover::-webkit-scrollbar-thumb {
290
- background: var(--co-color-opacity-negro-16);
291
+ background: var(--co-semantic-border-default);
291
292
  }
292
293
 
293
294
  .main__content:hover::-webkit-scrollbar-thumb:hover {
294
- background: var(--co-color-opacity-negro-25);
295
+ background: var(--co-semantic-border-field);
295
296
  }
296
297
 
297
298
  .main__content:hover::-webkit-scrollbar-thumb:active {
298
- background: var(--co-color-opacity-negro-50);
299
+ background: var(--co-semantic-border-strong);
299
300
  }
300
301
 
301
302
  .main__content--card {
@@ -97,7 +97,10 @@
97
97
  cursor: not-allowed;
98
98
  }
99
99
 
100
- .co-autocomplete--error .co-autocomplete__field { border-color: var(--co-semantic-status-error); }
100
+ /* Borde de error de CAMPO por --co-semantic-border-error: gira con el tema (status-error es
101
+ relleno fijo y como trazo en oscuro daba 2,94:1). En claro vale status-error (idéntico).
102
+ Fallback: la primitiva de hoy, hasta publicar tokens. */
103
+ .co-autocomplete--error .co-autocomplete__field { border-color: var(--co-semantic-border-error, var(--co-semantic-status-error)); }
101
104
  .co-autocomplete--success .co-autocomplete__field { border-color: var(--co-semantic-status-success); }
102
105
  .co-autocomplete--warning .co-autocomplete__field { border-color: var(--co-color-status-review); }
103
106
  .co-autocomplete--info .co-autocomplete__field { border-color: var(--co-semantic-status-info); }
@@ -207,17 +210,19 @@
207
210
  line-height: 1;
208
211
  }
209
212
 
213
+ /* Tinta de estado por --co-semantic-text-*: gira con el tema (status-* es relleno, no se
214
+ aclara, y como texto en oscuro daba <4,5). Fallback a la primitiva hasta publicar tokens. */
210
215
  .co-autocomplete__helper--error .co-autocomplete__helper-icon,
211
- .co-autocomplete__helper--error .co-autocomplete__helper-text { color: var(--co-semantic-status-error); }
216
+ .co-autocomplete__helper--error .co-autocomplete__helper-text { color: var(--co-semantic-text-error, var(--co-semantic-status-error)); }
212
217
 
213
218
  .co-autocomplete__helper--success .co-autocomplete__helper-icon,
214
- .co-autocomplete__helper--success .co-autocomplete__helper-text { color: var(--co-semantic-status-success); }
219
+ .co-autocomplete__helper--success .co-autocomplete__helper-text { color: var(--co-semantic-text-success, var(--co-semantic-status-success)); }
215
220
 
216
221
  .co-autocomplete__helper--warning .co-autocomplete__helper-icon,
217
- .co-autocomplete__helper--warning .co-autocomplete__helper-text { color: var(--co-color-status-review); }
222
+ .co-autocomplete__helper--warning .co-autocomplete__helper-text { color: var(--co-semantic-text-warning, var(--co-color-status-review)); }
218
223
 
219
224
  .co-autocomplete__helper--info .co-autocomplete__helper-icon,
220
- .co-autocomplete__helper--info .co-autocomplete__helper-text { color: var(--co-semantic-status-info); }
225
+ .co-autocomplete__helper--info .co-autocomplete__helper-text { color: var(--co-semantic-text-info, var(--co-semantic-status-info)); }
221
226
 
222
227
  /* ── Horizontal layout: label left; control + helper stacked right ──
223
228
  Set --co-field-label-width on a container to align labels across fields. */
@@ -245,9 +250,10 @@
245
250
  min-width: 0;
246
251
  }
247
252
 
253
+ /* Asterisco de requerido: tinta --co-semantic-text-error (gira con el tema). */
248
254
  .co-field-required {
249
255
  margin-left: 2px;
250
- color: var(--co-color-status-error);
256
+ color: var(--co-semantic-text-error, var(--co-color-status-error));
251
257
  }
252
258
 
253
259
  .co-field-required__caption {
@@ -431,7 +431,7 @@ export class CoAutocomplete {
431
431
  "references": {
432
432
  "AutocompleteOption": {
433
433
  "location": "local",
434
- "path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-autocomplete/co-autocomplete.tsx",
434
+ "path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-autocomplete/co-autocomplete.tsx",
435
435
  "id": "src/components/co-autocomplete/co-autocomplete.tsx::AutocompleteOption"
436
436
  }
437
437
  }
@@ -100,8 +100,18 @@
100
100
  mask-composite: exclude;
101
101
  }
102
102
 
103
+ /* Con `color` propio la tinta depende SOLO del fondo, no del tema: `on-primary` es negro en
104
+ oscuro y dejaba las iniciales negras sobre un color oscuro (2026-09-27). Blanco fijo, y
105
+ `--light` (declarado DESPUÉS, misma especificidad) le gana en los colores claros. */
106
+ .co-avatar--colored {
107
+ color: var(--co-color-base-blanco);
108
+ }
109
+
110
+ /* Negro OPACO: el rgba(0,0,0,.87) de antes dejaba pasar el fondo y en la franja L 0,18-0,21
111
+ las iniciales quedaban bajo AA. Con #000 el cruce es ≈0,179 (`prefersBlackInk` en
112
+ co-avatar.tsx) y la peor tinta posible da 4,58:1 (auditoría L8, 2026-09-27). */
103
113
  .co-avatar--light {
104
- color: rgba(0, 0, 0, 0.87);
114
+ color: #000;
105
115
  }
106
116
 
107
117
  /* When `name` is set, co-avatar.tsx wraps the disc in <co-tooltip> so every
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
- import { isLightColor } from "../../utils/color";
2
+ import { prefersBlackInk } from "../../utils/color";
3
3
  const SIZE_MAP = {
4
4
  xl: 80, lg: 64, md: 56, sm: 48, xs: 32, xxs: 24,
5
5
  };
@@ -61,7 +61,10 @@ export class CoAvatar {
61
61
  [`co-avatar--${this.type}`]: true,
62
62
  'co-avatar--square': this.shape === 'square',
63
63
  'co-avatar--rounded': this.shape === 'rounded',
64
- 'co-avatar--light': !!this.color && isLightColor(this.color),
64
+ 'co-avatar--colored': !!this.color,
65
+ // Tinta #000 opaca → su propio cruce WCAG (≈0,179), no el de base-negro (0,205):
66
+ // en la franja L 0,18-0,21 el blanco daba 4,2-4,4:1 (auditoría L8, 2026-09-27).
67
+ 'co-avatar--light': !!this.color && prefersBlackInk(this.color),
65
68
  }, style: Object.assign(Object.assign({ width: `var(--co-avatar-size, ${dim}px)`, height: `var(--co-avatar-size, ${dim}px)`, fontSize }, (this.color ? { background: this.color } : {})), (this.ringColor
66
69
  ? { '--co-avatar-border-color': this.ringColor, '--co-avatar-border-width': '2px' }
67
70
  : {})), part: "avatar", role: "img", "aria-label": ariaLabel }, showImage ? (h("img", { class: "co-avatar__img", src: this.src, alt: (_g = (_f = this.alt) !== null && _f !== void 0 ? _f : this.text) !== null && _g !== void 0 ? _g : '', onError: this.handleImgError })) : showIcon ? (h("co-icon", { name: this.icon, weight: this.iconWeight, size: iconSize })) : (h("span", { class: "co-avatar__text" }, this.text))));
@@ -92,7 +92,7 @@ export class CoAvatarGroup {
92
92
  "references": {
93
93
  "CoAvatarGroupItem": {
94
94
  "location": "local",
95
- "path": "/Users/agox/worktrees/cobalt-tooltip-tone/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
95
+ "path": "/Users/agox/Documents/Prolibu/prolibu-cobalt/packages/core/src/components/co-avatar-group/co-avatar-group.tsx",
96
96
  "id": "src/components/co-avatar-group/co-avatar-group.tsx::CoAvatarGroupItem"
97
97
  }
98
98
  }
@@ -201,15 +201,18 @@
201
201
 
202
202
  /* ─── ON-DARK SURFACE · ghost/stroke ─────────────────────────────
203
203
  surface="dark": for buttons placed on a dark bar (e.g. a selection
204
- bar). White ink/icon + a blanco-16 hover wash. Higher specificity
205
- than the default variant + :hover rules above, so it wins. */
204
+ bar). White ink/icon + a 16% ink hover wash. Higher specificity
205
+ than the default variant + :hover rules above, so it wins.
206
+ La tinta sale de `--co-surface-dark-ink` (fallback: blanco): una barra
207
+ cuyo fondo GIRA con el tema (co-action-bar = surface-primary, blanca en
208
+ oscuro) la fija a on-primary; una navbar oscura de verdad no la toca. */
206
209
  .co-button--ghost.co-button--surface-dark,
207
210
  .co-button--stroke.co-button--surface-dark {
208
- color: var(--co-color-base-blanco, #fff);
211
+ color: var(--co-surface-dark-ink, var(--co-color-base-blanco, #fff));
209
212
  }
210
213
  .co-button--ghost.co-button--surface-dark:hover:not(:disabled),
211
214
  .co-button--stroke.co-button--surface-dark:hover:not(:disabled) {
212
- background: var(--co-color-opacity-blanco-16);
215
+ background: color-mix(in srgb, var(--co-surface-dark-ink, var(--co-color-base-blanco, #fff)) 16%, transparent);
213
216
  -webkit-backdrop-filter: none;
214
217
  backdrop-filter: none;
215
218
  }
@@ -227,10 +230,10 @@
227
230
  Eliminar = danger surface="dark". */
228
231
  .co-button--danger.co-button--surface-dark:hover:not(:disabled) {
229
232
  opacity: 1;
230
- background: color-mix(in srgb, var(--co-semantic-status-error) 84%, var(--co-color-base-blanco, #fff));
233
+ background: color-mix(in srgb, var(--co-semantic-status-error) 84%, var(--co-surface-dark-ink, var(--co-color-base-blanco, #fff)));
231
234
  }
232
235
  .co-button--danger.co-button--surface-dark:focus-visible {
233
- box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-color-base-blanco, #fff) 45%, transparent);
236
+ box-shadow: 0 0 0 2px color-mix(in srgb, var(--co-surface-dark-ink, var(--co-color-base-blanco, #fff)) 45%, transparent);
234
237
  }
235
238
 
236
239
  /* ─── ICON SLOTS ─────────────────────────────────────────────── */
@@ -245,7 +248,8 @@
245
248
  so an icon-left button came out 2px taller than its text-only sibling in the
246
249
  same row (34 vs 32 on square/s next to a co-toggle-button, 2026-09-17). Pull
247
250
  the 1px overshoot per side back: text-only and icon buttons share one height. */
248
- .co-button > co-icon {
251
+ .co-button > co-icon,
252
+ .co-button > .co-button__spinner {
249
253
  margin-block: -1px;
250
254
  }
251
255
 
@@ -317,3 +321,30 @@
317
321
  co-icon {
318
322
  color: var(--co-button-icon-color, inherit);
319
323
  }
324
+
325
+ /* ── loading ─────────────────────────────────────────────────── */
326
+ /* En curso NO se lee como deshabilitado: mantiene color y opacidad (solo bloquea el click).
327
+ El spinner toma el lugar del ícono (mismo ancho) y hereda la tinta del botón. */
328
+ .co-button--loading,
329
+ .co-button--loading:disabled {
330
+ opacity: 1;
331
+ cursor: progress;
332
+ }
333
+
334
+ .co-button__spinner {
335
+ box-sizing: border-box;
336
+ flex-shrink: 0;
337
+ border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
338
+ border-top-color: currentColor;
339
+ border-radius: var(--co-border-radius-full);
340
+ animation: co-button-spin 0.6s linear infinite;
341
+ }
342
+
343
+ @keyframes co-button-spin {
344
+ to { transform: rotate(360deg); }
345
+ }
346
+
347
+ /* Loop infinito: con reduced-motion queda el aro quieto (la señal sigue ahí). */
348
+ @media (prefers-reduced-motion: reduce) {
349
+ .co-button__spinner { animation: none; }
350
+ }
@@ -34,12 +34,17 @@ export class CoButton {
34
34
  * the inner button's own pointer-events:none re-targets clicks to the host,
35
35
  * where consumers' click listeners live. */
36
36
  this.disabled = false;
37
+ /** Text label (alternative to default slot) */
38
+ /** Acción en curso: spinner EN el lugar del ícono izquierdo (mismo ancho, la fila no se
39
+ * mueve), botón deshabilitado y `aria-busy`. Sin ícono izquierdo el spinner va delante del
40
+ * texto. Reemplaza el patrón «CoLoader al lado del botón», que ensanchaba la fila. */
41
+ this.loading = false;
37
42
  /** Icon weight applied to both iconLeft and iconRight */
38
43
  this.iconWeight = 'regular';
39
44
  /** HTML button type — use "submit" inside forms */
40
45
  this.type = 'button';
41
46
  this.handleClick = () => {
42
- if (this.disabled)
47
+ if (this.disabled || this.loading)
43
48
  return;
44
49
  if (this.type === 'submit') {
45
50
  const form = this.el.closest('form');
@@ -63,7 +68,7 @@ export class CoButton {
63
68
  customStyle.background = this.color;
64
69
  if (this.textColor)
65
70
  customStyle.color = this.textColor;
66
- return (h("button", { key: 'e77a3b67e23b2690a818e6ad9aa38b21b4c8f972', class: {
71
+ return (h("button", { key: '68b52977a8e70c0568f499b220be2256a87f910d', class: {
67
72
  'co-button': true,
68
73
  [`co-button--${this.variant}`]: true,
69
74
  [`co-button--${this.shape}`]: true,
@@ -71,9 +76,12 @@ export class CoButton {
71
76
  [`co-button--surface-${this.surface}`]: true,
72
77
  'co-button--elevated': this.elevated,
73
78
  'co-button--disabled': this.disabled,
74
- }, style: Object.keys(customStyle).length ? customStyle : undefined, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabelText || undefined, onClick: this.handleClick, part: "button" }, this.iconLeft
75
- ? h("co-icon", { name: this.iconLeft, weight: this.iconWeight, size: iconSize })
76
- : null, h("slot", { key: 'ee52eb057c04ee3e1f5a5b2e87dc778a338d9887' }, this.label), this.iconRight
79
+ 'co-button--loading': this.loading,
80
+ }, style: Object.keys(customStyle).length ? customStyle : undefined, type: this.type, disabled: this.disabled || this.loading, "aria-busy": this.loading ? 'true' : undefined, "aria-label": this.ariaLabelText || undefined, onClick: this.handleClick, part: "button" }, this.loading
81
+ ? h("span", { class: "co-button__spinner", "aria-hidden": "true", style: { width: `${iconSize}px`, height: `${iconSize}px` } })
82
+ : this.iconLeft
83
+ ? h("co-icon", { name: this.iconLeft, weight: this.iconWeight, size: iconSize })
84
+ : null, h("slot", { key: '56eb3d8687aa6ca0389fe0c5200459bfb4cc2376' }, this.label), this.iconRight
77
85
  ? h("co-icon", { name: this.iconRight, weight: this.iconWeight, size: iconSize })
78
86
  : null));
79
87
  }
@@ -231,6 +239,26 @@ export class CoButton {
231
239
  "attribute": "disabled",
232
240
  "defaultValue": "false"
233
241
  },
242
+ "loading": {
243
+ "type": "boolean",
244
+ "mutable": false,
245
+ "complexType": {
246
+ "original": "boolean",
247
+ "resolved": "boolean",
248
+ "references": {}
249
+ },
250
+ "required": false,
251
+ "optional": false,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": "Acci\u00F3n en curso: spinner EN el lugar del \u00EDcono izquierdo (mismo ancho, la fila no se\nmueve), bot\u00F3n deshabilitado y `aria-busy`. Sin \u00EDcono izquierdo el spinner va delante del\ntexto. Reemplaza el patr\u00F3n \u00ABCoLoader al lado del bot\u00F3n\u00BB, que ensanchaba la fila."
255
+ },
256
+ "getter": false,
257
+ "setter": false,
258
+ "reflect": true,
259
+ "attribute": "loading",
260
+ "defaultValue": "false"
261
+ },
234
262
  "label": {
235
263
  "type": "string",
236
264
  "mutable": false,
@@ -243,7 +271,7 @@ export class CoButton {
243
271
  "optional": true,
244
272
  "docs": {
245
273
  "tags": [],
246
- "text": "Text label (alternative to default slot)"
274
+ "text": ""
247
275
  },
248
276
  "getter": false,
249
277
  "setter": false,
@@ -185,7 +185,10 @@
185
185
  transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out), border-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
186
186
  }
187
187
 
188
- .co-calendar__day:hover:not(.co-calendar__day--disabled):not(.co-calendar__day--selected):not(.co-calendar__day--marked) {
188
+ /* Los días con relleno SÓLIDO (seleccionado, marcado, extremos del rango) no cambian al hover:
189
+ este selector pesa (0,5+,0) y les pisaba el fondo — un extremo bajo el puntero quedaba con su
190
+ tinta inversa (on-primary) sobre un gris claro, casi invisible (2026-09-28). */
191
+ .co-calendar__day:hover:not(.co-calendar__day--disabled):not(.co-calendar__day--selected):not(.co-calendar__day--marked):not(.co-calendar__day--range-start):not(.co-calendar__day--range-end) {
189
192
  background: var(--co-semantic-surface-hover);
190
193
  }
191
194
 
@@ -30,7 +30,9 @@
30
30
  --co-cal-event-border: transparent;
31
31
  --co-cal-event-text: var(--co-color-base-blanco, #fff);
32
32
  --co-cal-event-text-light: var(--co-color-base-blanco, #fff);
33
- --co-cal-event-text-dark: var(--co-semantic-text-default);
33
+ /* Tinta sobre un chip CLARO (amarillo, naranja): depende del chip, no del
34
+ tema — con text-default salía blanca en oscuro (~1,6:1 sobre amarillo). */
35
+ --co-cal-event-text-dark: var(--co-color-base-negro, #1f1c1b);
34
36
  }
35
37
 
36
38
  .cal-month {