@prolibu-suite/cobalt-core 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (443) hide show
  1. package/custom-elements.json +179 -10
  2. package/dist/cjs/co-accordion.cjs.entry.js +2 -2
  3. package/dist/cjs/co-action-bar.cjs.entry.js +2 -2
  4. package/dist/cjs/co-app-shell.cjs.entry.js +2 -2
  5. package/dist/cjs/co-audio-player.cjs.entry.js +3 -3
  6. package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
  7. package/dist/cjs/co-avatar_2.cjs.entry.js +2 -2
  8. package/dist/cjs/co-badge.cjs.entry.js +1 -1
  9. package/dist/cjs/co-bottom-sheet.cjs.entry.js +3 -3
  10. package/dist/cjs/co-breadcrumb-item.cjs.entry.js +2 -2
  11. package/dist/cjs/co-breadcrumb.cjs.entry.js +1 -1
  12. package/dist/cjs/co-button-group.cjs.entry.js +2 -2
  13. package/dist/cjs/co-button.cjs.entry.js +2 -2
  14. package/dist/cjs/co-calendar-month_2.cjs.entry.js +3 -3
  15. package/dist/cjs/co-calendar_3.cjs.entry.js +5 -5
  16. package/dist/cjs/co-card.cjs.entry.js +2 -2
  17. package/dist/cjs/co-carousel-item.cjs.entry.js +1 -1
  18. package/dist/cjs/co-carousel.cjs.entry.js +2 -2
  19. package/dist/cjs/co-checkbox.cjs.entry.js +3 -3
  20. package/dist/cjs/co-chip_2.cjs.entry.js +11 -11
  21. package/dist/cjs/co-color-picker.cjs.entry.js +2 -2
  22. package/dist/cjs/co-column-picker.cjs.entry.js +2 -2
  23. package/dist/cjs/co-combobox.cjs.entry.js +1 -1
  24. package/dist/cjs/co-data-table-pagination.cjs.entry.js +4 -4
  25. package/dist/cjs/co-data-table.cjs.entry.js +127 -8
  26. package/dist/cjs/co-date-range.cjs.entry.js +1 -1
  27. package/dist/cjs/co-date-time-picker.cjs.entry.js +2 -2
  28. package/dist/cjs/co-drive-card.cjs.entry.js +1 -1
  29. package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
  30. package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
  31. package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
  32. package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
  33. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  34. package/dist/cjs/co-file-field.cjs.entry.js +5 -5
  35. package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
  36. package/dist/cjs/co-helper-text.cjs.entry.js +2 -2
  37. package/dist/cjs/co-icon-button.cjs.entry.js +1 -1
  38. package/dist/cjs/co-icon.cjs.entry.js +2 -2
  39. package/dist/cjs/co-json-field.cjs.entry.js +3 -3
  40. package/dist/cjs/co-lightbox.cjs.entry.js +4 -4
  41. package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
  42. package/dist/cjs/co-list-item.cjs.entry.js +4 -4
  43. package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
  44. package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
  45. package/dist/cjs/co-menu.cjs.entry.js +1 -1
  46. package/dist/cjs/co-modal.cjs.entry.js +2 -2
  47. package/dist/cjs/co-navbar.cjs.entry.js +2 -2
  48. package/dist/cjs/co-number-field.cjs.entry.js +2 -2
  49. package/dist/cjs/co-overlay.cjs.entry.js +1 -1
  50. package/dist/cjs/co-page-header.cjs.entry.js +1 -1
  51. package/dist/cjs/co-phone-field.cjs.entry.js +1 -1
  52. package/dist/cjs/co-popover.cjs.entry.js +49 -3
  53. package/dist/cjs/co-progress-bar.cjs.entry.js +2 -2
  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.cjs.entry.js +3 -3
  57. package/dist/cjs/co-rating.cjs.entry.js +3 -3
  58. package/dist/cjs/co-ref-field.cjs.entry.js +13 -4
  59. package/dist/cjs/co-rich-text-editor.cjs.entry.js +3 -3
  60. package/dist/cjs/co-row.cjs.entry.js +2 -2
  61. package/dist/cjs/co-select.cjs.entry.js +13 -4
  62. package/dist/cjs/co-separator.cjs.entry.js +1 -1
  63. package/dist/cjs/co-sidebar-nav.cjs.entry.js +2 -2
  64. package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
  65. package/dist/cjs/co-slider.cjs.entry.js +2 -2
  66. package/dist/cjs/co-switch.cjs.entry.js +3 -3
  67. package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
  68. package/dist/cjs/co-tab.cjs.entry.js +2 -2
  69. package/dist/cjs/co-tags-field.cjs.entry.js +5 -5
  70. package/dist/cjs/co-textarea.cjs.entry.js +4 -4
  71. package/dist/cjs/co-toast.cjs.entry.js +2 -2
  72. package/dist/cjs/co-toggle-button-group.cjs.entry.js +2 -2
  73. package/dist/cjs/co-toggle-button.cjs.entry.js +2 -2
  74. package/dist/cjs/co-transfer-list.cjs.entry.js +2 -2
  75. package/dist/cjs/co-video.cjs.entry.js +2 -2
  76. package/dist/cjs/cobalt.cjs.js +1 -1
  77. package/dist/cjs/index-DK-2Lzmf.js +12 -12
  78. package/dist/cjs/loader.cjs.js +1 -1
  79. package/dist/cobalt/cobalt.esm.js +1 -1
  80. package/dist/cobalt/{p-142506d9.entry.js → p-02ac492f.entry.js} +1 -1
  81. package/dist/cobalt/p-02f4b71a.entry.js +1 -0
  82. package/dist/cobalt/{p-24e93fcb.entry.js → p-07d570a6.entry.js} +1 -1
  83. package/dist/cobalt/{p-b9ac1f25.entry.js → p-136440fc.entry.js} +1 -1
  84. package/dist/cobalt/{p-7ec85887.entry.js → p-138b8bc1.entry.js} +1 -1
  85. package/dist/cobalt/{p-724b9b54.entry.js → p-17ae943c.entry.js} +1 -1
  86. package/dist/cobalt/{p-43b1f8fb.entry.js → p-2637efc5.entry.js} +1 -1
  87. package/dist/cobalt/{p-9fe9e2fe.entry.js → p-2c0099a4.entry.js} +1 -1
  88. package/dist/cobalt/{p-baeb5d55.entry.js → p-2d329ac8.entry.js} +1 -1
  89. package/dist/cobalt/{p-417ce874.entry.js → p-2d81b292.entry.js} +1 -1
  90. package/dist/cobalt/{p-e7e34852.entry.js → p-2f778a5a.entry.js} +1 -1
  91. package/dist/cobalt/{p-7521ec0c.entry.js → p-315586b0.entry.js} +1 -1
  92. package/dist/cobalt/{p-b64b0a07.entry.js → p-316c62c0.entry.js} +1 -1
  93. package/dist/cobalt/{p-8a93beb0.entry.js → p-342e1da4.entry.js} +1 -1
  94. package/dist/cobalt/{p-76dff399.entry.js → p-37c17bd8.entry.js} +1 -1
  95. package/dist/cobalt/{p-d21da71a.entry.js → p-3a229bba.entry.js} +1 -1
  96. package/dist/cobalt/{p-a530bec2.entry.js → p-3d338881.entry.js} +1 -1
  97. package/dist/cobalt/{p-a45e2c00.entry.js → p-3ef0f849.entry.js} +1 -1
  98. package/dist/cobalt/{p-c7a809c7.entry.js → p-40ce8a3d.entry.js} +1 -1
  99. package/dist/cobalt/{p-c31f5c1b.entry.js → p-4299cfa5.entry.js} +1 -1
  100. package/dist/cobalt/{p-6d532475.entry.js → p-43bd298d.entry.js} +1 -1
  101. package/dist/cobalt/{p-19706923.entry.js → p-43d31055.entry.js} +1 -1
  102. package/dist/cobalt/{p-37541725.entry.js → p-44fb4a3f.entry.js} +1 -1
  103. package/dist/cobalt/{p-81866f71.entry.js → p-4a503187.entry.js} +1 -1
  104. package/dist/cobalt/{p-49bde154.entry.js → p-4fe9a3ae.entry.js} +1 -1
  105. package/dist/cobalt/{p-39007b6c.entry.js → p-5c1767db.entry.js} +1 -1
  106. package/dist/cobalt/p-6556465f.entry.js +1 -0
  107. package/dist/cobalt/p-682b3313.entry.js +1 -0
  108. package/dist/cobalt/p-6c35b5cc.entry.js +1 -0
  109. package/dist/cobalt/{p-a5d84c7a.entry.js → p-7457aa89.entry.js} +1 -1
  110. package/dist/cobalt/{p-3ecc29fa.entry.js → p-75b7ed13.entry.js} +1 -1
  111. package/dist/cobalt/{p-94a8a119.entry.js → p-7c5e846a.entry.js} +1 -1
  112. package/dist/cobalt/{p-12a0ae24.entry.js → p-7cf4b4ae.entry.js} +1 -1
  113. package/dist/cobalt/p-7fbd3359.entry.js +1 -0
  114. package/dist/cobalt/{p-e99832a9.entry.js → p-8183f56f.entry.js} +1 -1
  115. package/dist/cobalt/{p-5ddebd10.entry.js → p-82c8f07b.entry.js} +1 -1
  116. package/dist/cobalt/{p-b004c3bb.entry.js → p-88a0659f.entry.js} +1 -1
  117. package/dist/cobalt/{p-a074f2ba.entry.js → p-8eb485c8.entry.js} +1 -1
  118. package/dist/cobalt/{p-f52f61d4.entry.js → p-8f600512.entry.js} +1 -1
  119. package/dist/cobalt/{p-09fe6ece.entry.js → p-905ba0dd.entry.js} +1 -1
  120. package/dist/cobalt/{p-c42c505c.entry.js → p-909c0113.entry.js} +1 -1
  121. package/dist/cobalt/{p-fa5c25d6.entry.js → p-90e292de.entry.js} +1 -1
  122. package/dist/cobalt/{p-360714ae.entry.js → p-929a4f19.entry.js} +1 -1
  123. package/dist/cobalt/{p-9c2ce487.entry.js → p-9c89cb01.entry.js} +1 -1
  124. package/dist/cobalt/{p-87fc5aed.entry.js → p-9c9f5b26.entry.js} +1 -1
  125. package/dist/cobalt/{p-d7b00e5f.entry.js → p-a0a6bfa3.entry.js} +1 -1
  126. package/dist/cobalt/{p-19f5d480.entry.js → p-a3669301.entry.js} +1 -1
  127. package/dist/cobalt/{p-21832273.entry.js → p-a3c6b974.entry.js} +1 -1
  128. package/dist/cobalt/{p-d3c765e3.entry.js → p-a6357340.entry.js} +1 -1
  129. package/dist/cobalt/p-a6b5cadd.entry.js +1 -0
  130. package/dist/cobalt/{p-e5b5ae89.entry.js → p-a811464d.entry.js} +1 -1
  131. package/dist/cobalt/{p-5d7c26f2.entry.js → p-a8c64cc3.entry.js} +1 -1
  132. package/dist/cobalt/{p-b800e107.entry.js → p-a9b29cc2.entry.js} +1 -1
  133. package/dist/cobalt/p-aafb9d11.entry.js +1 -0
  134. package/dist/cobalt/{p-cc72557d.entry.js → p-ab45d9bd.entry.js} +1 -1
  135. package/dist/cobalt/{p-c3c2087e.entry.js → p-b107063c.entry.js} +1 -1
  136. package/dist/cobalt/{p-f4cebc1f.entry.js → p-b22981fd.entry.js} +1 -1
  137. package/dist/cobalt/{p-8b7a4f6c.entry.js → p-b5b97c9b.entry.js} +1 -1
  138. package/dist/cobalt/{p-7255ab63.entry.js → p-b892b312.entry.js} +1 -1
  139. package/dist/cobalt/{p-debe0d79.entry.js → p-bfc2a849.entry.js} +1 -1
  140. package/dist/cobalt/{p-e5296961.entry.js → p-c1880595.entry.js} +1 -1
  141. package/dist/cobalt/{p-7a2dab23.entry.js → p-c3bb7e1f.entry.js} +1 -1
  142. package/dist/cobalt/{p-5f1b273b.entry.js → p-c3fd7b22.entry.js} +1 -1
  143. package/dist/cobalt/p-c6b9b9d6.entry.js +1 -0
  144. package/dist/cobalt/{p-ed2ca588.entry.js → p-ce35c898.entry.js} +1 -1
  145. package/dist/cobalt/{p-d85a751d.entry.js → p-d4debd6f.entry.js} +1 -1
  146. package/dist/cobalt/p-da18b5f4.entry.js +1 -0
  147. package/dist/cobalt/{p-3ac316e0.entry.js → p-e085b4ff.entry.js} +1 -1
  148. package/dist/cobalt/{p-8206c7c0.entry.js → p-e4ef25b0.entry.js} +1 -1
  149. package/dist/cobalt/{p-5f0f5d4b.entry.js → p-e742e978.entry.js} +1 -1
  150. package/dist/cobalt/{p-39bce45f.entry.js → p-e8878cf9.entry.js} +1 -1
  151. package/dist/cobalt/{p-2a9ba4c8.entry.js → p-f945a1bd.entry.js} +1 -1
  152. package/dist/cobalt/{p-b1ef5107.entry.js → p-fabe5fb2.entry.js} +1 -1
  153. package/dist/cobalt/{p-4e2379e4.entry.js → p-fdc6ec11.entry.js} +1 -1
  154. package/dist/collection/components/co-accordion/co-accordion.js +2 -2
  155. package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
  156. package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
  157. package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
  158. package/dist/collection/components/co-autocomplete/co-autocomplete.css +1 -1
  159. package/dist/collection/components/co-badge/co-badge.js +1 -1
  160. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
  161. package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
  162. package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
  163. package/dist/collection/components/co-button/co-button.js +2 -2
  164. package/dist/collection/components/co-button-group/co-button-group.js +2 -2
  165. package/dist/collection/components/co-calendar/co-calendar.js +1 -1
  166. package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
  167. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
  168. package/dist/collection/components/co-card/co-card.js +2 -2
  169. package/dist/collection/components/co-carousel/co-carousel.js +2 -2
  170. package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
  171. package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
  172. package/dist/collection/components/co-chip/co-chip.js +2 -2
  173. package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
  174. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  175. package/dist/collection/components/co-combobox/co-combobox.css +3 -1
  176. package/dist/collection/components/co-data-table/co-data-table.css +33 -0
  177. package/dist/collection/components/co-data-table/co-data-table.js +89 -7
  178. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  179. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  180. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  181. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
  182. package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
  183. package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
  184. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  185. package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
  186. package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
  187. package/dist/collection/components/co-fab/co-fab.css +8 -5
  188. package/dist/collection/components/co-fab/co-fab.js +2 -2
  189. package/dist/collection/components/co-file-field/co-file-field.js +5 -5
  190. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  191. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  192. package/dist/collection/components/co-icon/co-icon.js +2 -2
  193. package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
  194. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  195. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  196. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  197. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  198. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  199. package/dist/collection/components/co-menu/co-menu.js +1 -1
  200. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  201. package/dist/collection/components/co-modal/co-modal.js +2 -2
  202. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  203. package/dist/collection/components/co-number-field/co-number-field.js +2 -2
  204. package/dist/collection/components/co-option-list/co-option-list.css +11 -9
  205. package/dist/collection/components/co-option-list/co-option-list.js +8 -8
  206. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  207. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  208. package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
  209. package/dist/collection/components/co-popover/co-popover.js +26 -4
  210. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  211. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  212. package/dist/collection/components/co-radio/co-radio.js +3 -3
  213. package/dist/collection/components/co-rating/co-rating.js +3 -3
  214. package/dist/collection/components/co-ref-field/co-ref-field.css +15 -0
  215. package/dist/collection/components/co-ref-field/co-ref-field.js +71 -3
  216. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
  217. package/dist/collection/components/co-row/co-row.js +2 -2
  218. package/dist/collection/components/co-select/co-select.js +67 -4
  219. package/dist/collection/components/co-separator/co-separator.js +1 -1
  220. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  221. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +2 -2
  222. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  223. package/dist/collection/components/co-slider/co-slider.js +2 -2
  224. package/dist/collection/components/co-switch/co-switch.js +3 -3
  225. package/dist/collection/components/co-tab/co-tab.js +2 -2
  226. package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
  227. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  228. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  229. package/dist/collection/components/co-toast/co-toast.js +2 -2
  230. package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
  231. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
  232. package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
  233. package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
  234. package/dist/collection/components/co-video/co-video.js +2 -2
  235. package/dist/collection/utils/columnResize.js +37 -0
  236. package/dist/collection/utils/popover-stack.js +28 -0
  237. package/dist/components/co-accordion.js +1 -1
  238. package/dist/components/co-action-bar.js +1 -1
  239. package/dist/components/co-app-shell.js +1 -1
  240. package/dist/components/co-audio-player.js +1 -1
  241. package/dist/components/co-autocomplete.js +1 -1
  242. package/dist/components/co-avatar-group.js +1 -1
  243. package/dist/components/co-avatar.js +1 -1
  244. package/dist/components/co-badge.js +1 -1
  245. package/dist/components/co-bottom-sheet.js +1 -1
  246. package/dist/components/co-breadcrumb-item.js +1 -1
  247. package/dist/components/co-breadcrumb.js +1 -1
  248. package/dist/components/co-button-group.js +1 -1
  249. package/dist/components/co-button.js +1 -1
  250. package/dist/components/co-calendar-month.js +1 -1
  251. package/dist/components/co-calendar-timegrid.js +1 -1
  252. package/dist/components/co-calendar.js +1 -1
  253. package/dist/components/co-card.js +1 -1
  254. package/dist/components/co-carousel-item.js +1 -1
  255. package/dist/components/co-carousel.js +1 -1
  256. package/dist/components/co-checkbox-group.js +1 -1
  257. package/dist/components/co-checkbox.js +1 -1
  258. package/dist/components/co-chip.js +1 -1
  259. package/dist/components/co-color-picker.js +1 -1
  260. package/dist/components/co-column-picker.js +1 -1
  261. package/dist/components/co-combobox.js +1 -1
  262. package/dist/components/co-command-search.js +1 -1
  263. package/dist/components/co-data-table-pagination.js +1 -1
  264. package/dist/components/co-data-table.js +1 -1
  265. package/dist/components/co-date-field.js +1 -1
  266. package/dist/components/co-date-picker.js +1 -1
  267. package/dist/components/co-date-range-picker.js +1 -1
  268. package/dist/components/co-date-range.js +1 -1
  269. package/dist/components/co-date-time-picker.js +1 -1
  270. package/dist/components/co-drawer.js +1 -1
  271. package/dist/components/co-drive-card.js +1 -1
  272. package/dist/components/co-drop-zone.js +1 -1
  273. package/dist/components/co-empty-state.js +1 -1
  274. package/dist/components/co-event-calendar.js +1 -1
  275. package/dist/components/co-event-popover.js +1 -1
  276. package/dist/components/co-fab.js +1 -1
  277. package/dist/components/co-file-field.js +1 -1
  278. package/dist/components/co-file-type-tile.js +1 -1
  279. package/dist/components/co-helper-text.js +1 -1
  280. package/dist/components/co-icon-button.js +1 -1
  281. package/dist/components/co-icon.js +1 -1
  282. package/dist/components/co-input.js +1 -1
  283. package/dist/components/co-json-field.js +1 -1
  284. package/dist/components/co-lightbox.js +1 -1
  285. package/dist/components/co-list-footer.js +1 -1
  286. package/dist/components/co-list-item.js +1 -1
  287. package/dist/components/co-media-thumb.js +1 -1
  288. package/dist/components/co-menu-divider.js +1 -1
  289. package/dist/components/co-menu-item.js +1 -1
  290. package/dist/components/co-menu.js +1 -1
  291. package/dist/components/co-modal.js +1 -1
  292. package/dist/components/co-navbar.js +1 -1
  293. package/dist/components/co-number-field.js +1 -1
  294. package/dist/components/co-option-list.js +1 -1
  295. package/dist/components/co-overlay.js +1 -1
  296. package/dist/components/co-page-header.js +1 -1
  297. package/dist/components/co-phone-field.js +1 -1
  298. package/dist/components/co-popover.js +1 -1
  299. package/dist/components/co-progress-bar.js +1 -1
  300. package/dist/components/co-progress-circle.js +1 -1
  301. package/dist/components/co-radio-group.js +1 -1
  302. package/dist/components/co-radio.js +1 -1
  303. package/dist/components/co-rating.js +1 -1
  304. package/dist/components/co-ref-field.js +1 -1
  305. package/dist/components/co-rich-text-editor.js +1 -1
  306. package/dist/components/co-rich-text-toolbar.js +1 -1
  307. package/dist/components/co-row.js +1 -1
  308. package/dist/components/co-select.js +1 -1
  309. package/dist/components/co-separator.js +1 -1
  310. package/dist/components/co-sidebar-nav.js +1 -1
  311. package/dist/components/co-sidebar.js +1 -1
  312. package/dist/components/co-skeleton.js +1 -1
  313. package/dist/components/co-slider.js +1 -1
  314. package/dist/components/co-switch.js +1 -1
  315. package/dist/components/co-tab-group.js +1 -1
  316. package/dist/components/co-tab.js +1 -1
  317. package/dist/components/co-tags-field.js +1 -1
  318. package/dist/components/co-textarea.js +1 -1
  319. package/dist/components/co-toast.js +1 -1
  320. package/dist/components/co-toggle-button-group.js +1 -1
  321. package/dist/components/co-toggle-button.js +1 -1
  322. package/dist/components/co-tooltip.js +1 -1
  323. package/dist/components/co-transfer-list.js +1 -1
  324. package/dist/components/co-video.js +1 -1
  325. package/dist/components/{p-BiefJDu3.js → p-4t5Fputx.js} +1 -1
  326. package/dist/components/{p-_YYd42XM.js → p-8wvfrEY4.js} +1 -1
  327. package/dist/components/{p-BCnjq3jN.js → p-BCZ-tPBT.js} +1 -1
  328. package/dist/components/{p-CmxZEGYq.js → p-BEiPCCVl.js} +1 -1
  329. package/dist/components/p-BOmAHbix.js +1 -0
  330. package/dist/components/{p-2zy1K6zg.js → p-BUYgHlPz.js} +1 -1
  331. package/dist/components/{p-ushHimOL.js → p-BYnSPxpp.js} +1 -1
  332. package/dist/components/{p-BlvsTlsS.js → p-Bhuk55S0.js} +1 -1
  333. package/dist/components/{p-DAaKsGqj.js → p-C4So28aS.js} +1 -1
  334. package/dist/components/{p-CL4dicvk.js → p-CRABrJmD.js} +1 -1
  335. package/dist/components/{p-Cv5yuGLz.js → p-CXLX8DpD.js} +1 -1
  336. package/dist/components/{p-CYv2ig6I.js → p-CXdIxtbK.js} +1 -1
  337. package/dist/components/{p-DFT1qsVu.js → p-ClAsHpYv.js} +1 -1
  338. package/dist/components/{p-CkQqqKRp.js → p-CnBjUP_M.js} +1 -1
  339. package/dist/components/{p-xvWmYN3W.js → p-DEYpoVxc.js} +1 -1
  340. package/dist/components/p-DP0bbhfN.js +1 -0
  341. package/dist/components/{p-re2gJwnQ.js → p-DUYGgqjB.js} +1 -1
  342. package/dist/components/{p-CKKBJaNB.js → p-DWt_rL1l.js} +1 -1
  343. package/dist/components/{p-Bsll5Ofy.js → p-DmyELlI1.js} +1 -1
  344. package/dist/components/p-aiNhl9Xd.js +1 -0
  345. package/dist/components/{p-Ce0ZJcks.js → p-njonLO8t.js} +1 -1
  346. package/dist/components/{p-CJNo2JDc.js → p-xjzIZcgZ.js} +1 -1
  347. package/dist/esm/co-accordion.entry.js +2 -2
  348. package/dist/esm/co-action-bar.entry.js +2 -2
  349. package/dist/esm/co-app-shell.entry.js +2 -2
  350. package/dist/esm/co-audio-player.entry.js +3 -3
  351. package/dist/esm/co-autocomplete.entry.js +1 -1
  352. package/dist/esm/co-avatar_2.entry.js +2 -2
  353. package/dist/esm/co-badge.entry.js +1 -1
  354. package/dist/esm/co-bottom-sheet.entry.js +3 -3
  355. package/dist/esm/co-breadcrumb-item.entry.js +2 -2
  356. package/dist/esm/co-breadcrumb.entry.js +1 -1
  357. package/dist/esm/co-button-group.entry.js +2 -2
  358. package/dist/esm/co-button.entry.js +2 -2
  359. package/dist/esm/co-calendar-month_2.entry.js +3 -3
  360. package/dist/esm/co-calendar_3.entry.js +5 -5
  361. package/dist/esm/co-card.entry.js +2 -2
  362. package/dist/esm/co-carousel-item.entry.js +1 -1
  363. package/dist/esm/co-carousel.entry.js +2 -2
  364. package/dist/esm/co-checkbox.entry.js +3 -3
  365. package/dist/esm/co-chip_2.entry.js +11 -11
  366. package/dist/esm/co-color-picker.entry.js +2 -2
  367. package/dist/esm/co-column-picker.entry.js +2 -2
  368. package/dist/esm/co-combobox.entry.js +1 -1
  369. package/dist/esm/co-data-table-pagination.entry.js +4 -4
  370. package/dist/esm/co-data-table.entry.js +127 -8
  371. package/dist/esm/co-date-range.entry.js +1 -1
  372. package/dist/esm/co-date-time-picker.entry.js +2 -2
  373. package/dist/esm/co-drive-card.entry.js +1 -1
  374. package/dist/esm/co-drop-zone.entry.js +1 -1
  375. package/dist/esm/co-empty-state.entry.js +2 -2
  376. package/dist/esm/co-event-calendar.entry.js +2 -2
  377. package/dist/esm/co-event-popover.entry.js +1 -1
  378. package/dist/esm/co-fab.entry.js +3 -3
  379. package/dist/esm/co-file-field.entry.js +5 -5
  380. package/dist/esm/co-file-type-tile.entry.js +2 -2
  381. package/dist/esm/co-helper-text.entry.js +2 -2
  382. package/dist/esm/co-icon-button.entry.js +1 -1
  383. package/dist/esm/co-icon.entry.js +2 -2
  384. package/dist/esm/co-json-field.entry.js +3 -3
  385. package/dist/esm/co-lightbox.entry.js +4 -4
  386. package/dist/esm/co-list-footer.entry.js +1 -1
  387. package/dist/esm/co-list-item.entry.js +4 -4
  388. package/dist/esm/co-media-thumb.entry.js +2 -2
  389. package/dist/esm/co-menu-divider.entry.js +1 -1
  390. package/dist/esm/co-menu.entry.js +1 -1
  391. package/dist/esm/co-modal.entry.js +2 -2
  392. package/dist/esm/co-navbar.entry.js +2 -2
  393. package/dist/esm/co-number-field.entry.js +2 -2
  394. package/dist/esm/co-overlay.entry.js +1 -1
  395. package/dist/esm/co-page-header.entry.js +1 -1
  396. package/dist/esm/co-phone-field.entry.js +1 -1
  397. package/dist/esm/co-popover.entry.js +49 -3
  398. package/dist/esm/co-progress-bar.entry.js +2 -2
  399. package/dist/esm/co-progress-circle.entry.js +2 -2
  400. package/dist/esm/co-provider-logo_2.entry.js +1 -1
  401. package/dist/esm/co-radio.entry.js +3 -3
  402. package/dist/esm/co-rating.entry.js +3 -3
  403. package/dist/esm/co-ref-field.entry.js +13 -4
  404. package/dist/esm/co-rich-text-editor.entry.js +3 -3
  405. package/dist/esm/co-row.entry.js +2 -2
  406. package/dist/esm/co-select.entry.js +13 -4
  407. package/dist/esm/co-separator.entry.js +1 -1
  408. package/dist/esm/co-sidebar-nav.entry.js +2 -2
  409. package/dist/esm/co-sidebar.entry.js +2 -2
  410. package/dist/esm/co-slider.entry.js +2 -2
  411. package/dist/esm/co-switch.entry.js +3 -3
  412. package/dist/esm/co-tab-group.entry.js +2 -2
  413. package/dist/esm/co-tab.entry.js +2 -2
  414. package/dist/esm/co-tags-field.entry.js +5 -5
  415. package/dist/esm/co-textarea.entry.js +4 -4
  416. package/dist/esm/co-toast.entry.js +2 -2
  417. package/dist/esm/co-toggle-button-group.entry.js +2 -2
  418. package/dist/esm/co-toggle-button.entry.js +2 -2
  419. package/dist/esm/co-transfer-list.entry.js +2 -2
  420. package/dist/esm/co-video.entry.js +2 -2
  421. package/dist/esm/cobalt.js +1 -1
  422. package/dist/esm/index-CrtiywTB.js +12 -12
  423. package/dist/esm/loader.js +1 -1
  424. package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
  425. package/dist/types/components/co-popover/co-popover.d.ts +8 -1
  426. package/dist/types/components/co-ref-field/co-ref-field.d.ts +17 -0
  427. package/dist/types/components/co-select/co-select.d.ts +7 -0
  428. package/dist/types/components.d.ts +60 -2
  429. package/dist/types/utils/columnResize.d.ts +42 -0
  430. package/dist/types/utils/popover-stack.d.ts +5 -0
  431. package/package.json +3 -3
  432. package/dist/cobalt/p-212ed2ba.entry.js +0 -1
  433. package/dist/cobalt/p-2aeb1471.entry.js +0 -1
  434. package/dist/cobalt/p-2d0354cc.entry.js +0 -1
  435. package/dist/cobalt/p-30ec230e.entry.js +0 -1
  436. package/dist/cobalt/p-77593319.entry.js +0 -1
  437. package/dist/cobalt/p-e054cb52.entry.js +0 -1
  438. package/dist/cobalt/p-e612b43c.entry.js +0 -1
  439. package/dist/cobalt/p-f1284fcd.entry.js +0 -1
  440. package/dist/cobalt/p-f1731fe9.entry.js +0 -1
  441. package/dist/components/p-BUE9mBqk.js +0 -1
  442. package/dist/components/p-Bh2__nEw.js +0 -1
  443. package/dist/components/p-DTJsO_Eg.js +0 -1
@@ -1,4 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
+ import { edgeAutoScrollSpeed, resizeWidth } from "../../utils/columnResize";
2
3
  /**
3
4
  * @slot - Default slot for custom row content (advanced usage)
4
5
  */
@@ -52,6 +53,17 @@ export class CoDataTable {
52
53
  this.resizingColumn = null;
53
54
  this.resizeStartX = 0;
54
55
  this.resizeStartWidth = 0;
56
+ // Edge auto-scroll drag state — plain fields (not @State): they mutate per
57
+ // frame and the re-render is already driven by the columnWidths Map swap.
58
+ this.resizeEdgeExtra = 0;
59
+ this.resizeLastClientX = 0;
60
+ this.resizeAutoScrollRaf = 0;
61
+ // Scroll owed to the auto-scroll growth, applied in componentDidRender —
62
+ // NEVER in the tick itself: the @State render is async, so at max scroll a
63
+ // same-tick scrollLeft advance clamps against the not-yet-grown table and
64
+ // the scroll falls permanently behind the width (boundary drifts off the
65
+ // pointer). Deferring to didRender lands width + scroll in the SAME paint.
66
+ this.resizePendingScroll = 0;
55
67
  // Swallows the click the browser synthesizes right after a resize drag ends.
56
68
  // The resize handle lives inside the sortable <th>, so without this a resize
57
69
  // would bubble to the header's onClick and trigger a sort (+ a full refetch).
@@ -113,6 +125,18 @@ export class CoDataTable {
113
125
  this.parseFilteredFields();
114
126
  this.parseIndirectFields();
115
127
  }
128
+ componentDidRender() {
129
+ // Auto-scroll parity: the resize tick grew the column (async @State render)
130
+ // and owes the container the same px of scroll. Here the DOM already has
131
+ // the new table width, so the advance can't clamp — width and scroll land
132
+ // in the same paint and the drag boundary stays pinned under the pointer.
133
+ if (this.resizePendingScroll) {
134
+ const scrollEl = this.el.querySelector('.co-data-table__scroll');
135
+ if (scrollEl)
136
+ scrollEl.scrollLeft += this.resizePendingScroll;
137
+ this.resizePendingScroll = 0;
138
+ }
139
+ }
116
140
  /* ─── SORT HANDLERS ─────────────────────────────────────── */
117
141
  handleSort(field) {
118
142
  // Ignore the click synthesized by a resize drag that ended on this <th>.
@@ -164,16 +188,74 @@ export class CoDataTable {
164
188
  this.resizingColumn = field;
165
189
  this.resizeStartX = e.clientX;
166
190
  this.resizeStartWidth = this.columnWidths.get(field) || 150;
191
+ this.resizeEdgeExtra = 0;
192
+ this.resizeLastClientX = e.clientX;
193
+ const scrollEl = this.el.querySelector('.co-data-table__scroll');
194
+ const columnMinWidth = () => { var _a; return ((_a = this.parsedColumns.find(c => c.field === this.resizingColumn)) === null || _a === void 0 ? void 0 : _a.minWidth) || 80; };
195
+ const applyWidth = () => {
196
+ const column = this.resizingColumn;
197
+ if (!column)
198
+ return 0;
199
+ const newWidth = resizeWidth({
200
+ startWidth: this.resizeStartWidth,
201
+ minWidth: columnMinWidth(),
202
+ pointerDelta: this.resizeLastClientX - this.resizeStartX,
203
+ autoScrollExtra: this.resizeEdgeExtra,
204
+ });
205
+ this.columnWidths = new Map(this.columnWidths.set(column, newWidth));
206
+ return newWidth;
207
+ };
208
+ // Growing a column past the viewport needs the container to CHASE the
209
+ // pointer: while it hovers the edge zone, each frame adds `speed` px to the
210
+ // width AND owes the container the same px of scroll, so the boundary stays
211
+ // pinned under the pointer instead of dying at the viewport edge (the old
212
+ // drag forced release → scrollbar → drag again to keep growing). The owed
213
+ // scroll is NOT applied here — see resizePendingScroll/componentDidRender:
214
+ // the @State render is async, so a same-tick scrollLeft advance would clamp
215
+ // against the not-yet-grown table and fall permanently behind the width.
216
+ const autoScrollTick = () => {
217
+ this.resizeAutoScrollRaf = 0;
218
+ const column = this.resizingColumn;
219
+ if (!column || !scrollEl)
220
+ return;
221
+ const rect = scrollEl.getBoundingClientRect();
222
+ const speed = edgeAutoScrollSpeed({
223
+ pointerX: this.resizeLastClientX,
224
+ containerLeft: rect.left,
225
+ containerRight: rect.right,
226
+ });
227
+ if (!speed)
228
+ return;
229
+ // Shrinking at the left edge: once the column bottoms out at minWidth
230
+ // stop the loop — accumulating further negative extra would rubber-band
231
+ // the next rightward drag.
232
+ if (speed < 0 && (this.columnWidths.get(column) || this.resizeStartWidth) <= columnMinWidth())
233
+ return;
234
+ this.resizeEdgeExtra += speed;
235
+ this.resizePendingScroll += speed;
236
+ // applyWidth swaps the Map reference → guarantees a render → guarantees
237
+ // componentDidRender flushes the pending scroll right after the paint
238
+ // that shows the wider table.
239
+ applyWidth();
240
+ this.resizeAutoScrollRaf = requestAnimationFrame(autoScrollTick);
241
+ };
167
242
  const onMouseMove = (ev) => {
168
- var _a;
169
243
  if (!this.resizingColumn)
170
244
  return;
171
- const diff = ev.clientX - this.resizeStartX;
172
- const minWidth = ((_a = this.parsedColumns.find(c => c.field === this.resizingColumn)) === null || _a === void 0 ? void 0 : _a.minWidth) || 80;
173
- const newWidth = Math.max(minWidth, this.resizeStartWidth + diff);
174
- this.columnWidths = new Map(this.columnWidths.set(this.resizingColumn, newWidth));
245
+ this.resizeLastClientX = ev.clientX;
246
+ applyWidth();
247
+ if (!this.resizeAutoScrollRaf)
248
+ this.resizeAutoScrollRaf = requestAnimationFrame(autoScrollTick);
175
249
  };
176
250
  const onMouseUp = () => {
251
+ if (this.resizeAutoScrollRaf) {
252
+ cancelAnimationFrame(this.resizeAutoScrollRaf);
253
+ this.resizeAutoScrollRaf = 0;
254
+ }
255
+ // resizePendingScroll is NOT zeroed here: it is only ever nonzero with a
256
+ // render already in flight (each tick increments it right before
257
+ // applyWidth), so its flush in componentDidRender is the legitimate tail
258
+ // of the drag — zeroing it would strand the boundary short of the pointer.
177
259
  if (this.resizingColumn) {
178
260
  const width = this.columnWidths.get(this.resizingColumn) || 150;
179
261
  this.coColumnResize.emit({ field: this.resizingColumn, width });
@@ -339,12 +421,12 @@ export class CoDataTable {
339
421
  : h("slot", { name: "empty-action" }))));
340
422
  }
341
423
  render() {
342
- return (h("div", { key: 'baf9a797b25e76d4b054513b3e4c90aacce24a80', class: {
424
+ return (h("div", { key: '6ba1f3bb555252c55246c8af73b8ce08610e93b0', class: {
343
425
  'co-data-table': true,
344
426
  'co-data-table--resizing': this.resizingColumn !== null,
345
427
  'co-data-table--loading': this.loading,
346
428
  'co-data-table--empty': !this.loading && this.parsedRows.length === 0,
347
- } }, h("div", { key: '132100357cb7fed5d27054e2e3a66c218dddad9d', class: "co-data-table__scroll" }, h("table", { key: '0e183744b6f1c7c44ec8dd741eb8cdbbbdf5b638', class: "co-data-table__table", style: { width: `${this.getTableWidth()}px`, minWidth: '100%' } }, this.renderColgroup(), this.renderHeader(), h("slot", { key: 'c3c58515f63fdfdfa760ba483f00c686863ddb20' }), this.loading ? this.renderSkeletonBody() : null)), this.renderEmpty()));
429
+ } }, h("div", { key: '69bc61a98f48ac06006d9b5ab132abf15bbeeb64', class: "co-data-table__scroll" }, h("table", { key: 'bc7627b050900ca6c8887981e47368bfb7f181ea', class: "co-data-table__table", style: { width: `${this.getTableWidth()}px`, minWidth: '100%' } }, this.renderColgroup(), this.renderHeader(), h("slot", { key: 'fc98863e680b660844ec968af6ebc645160ee32e' }), this.loading ? this.renderSkeletonBody() : null)), this.renderEmpty()));
348
430
  }
349
431
  static get is() { return "co-data-table"; }
350
432
  static get originalStyleUrls() {
@@ -84,17 +84,17 @@ export class CoDataTablePagination {
84
84
  }
85
85
  render() {
86
86
  const pages = this.getVisiblePages();
87
- return (h("div", { key: 'ccf2b514ca05bb56014a2adf60cc5b4a55e8c60c', class: "co-pagination", part: "pagination" }, h("div", { key: '49649c806450bf111bb7b2e26d004ac3c0b20373', class: "co-pagination__section" }, h("span", { key: '8419a89097e4e6a89777b346de6627da9331d0f6', class: "co-pagination__label" }, this.jumpToPageLabel), h("input", { key: '315b8a1675fe6d7f3fca8fe0f1992bcbca9325a0', type: "text", class: "co-pagination__jump-input", value: this.jumpToValue || String(this.page), onInput: (e) => {
87
+ return (h("div", { key: '185e1d7a9d69e1bacd7aeb697c70e9cefae6057d', class: "co-pagination", part: "pagination" }, h("div", { key: '93dcff37dcd024519d00176b3bf52c6fc94c00ec', class: "co-pagination__section" }, h("span", { key: 'f13f0b987bd3634046b26225b867b4a3f8766eb3', class: "co-pagination__label" }, this.jumpToPageLabel), h("input", { key: 'aed4e49fe945dac3dab1b84d97119f7e5c298142', type: "text", class: "co-pagination__jump-input", value: this.jumpToValue || String(this.page), onInput: (e) => {
88
88
  this.jumpToValue = e.target.value;
89
89
  }, onKeyDown: (e) => this.handleJumpToPage(e), onFocus: (e) => {
90
90
  e.target.select();
91
- }, part: "jump-input" })), h("div", { key: 'a97c699d390734902220805bec64420deeb4fd6a', class: "co-pagination__section co-pagination__section--page-size" }, h("div", { key: 'fcd095371ce699102ce8c66787918c065481e35d', class: "co-pagination__page-size-trigger", onClick: () => { this.showPageSizeDropdown = !this.showPageSizeDropdown; } }, h("span", { key: '1ba988e2bd9c457feefa8af4cd76b0bded02fd12', class: "co-pagination__page-size-value" }, this.pageSize), h("span", { key: '51d5d3917d817c9752433a729427550a38750e56', class: "co-pagination__label" }, this.perPageLabel), h("co-icon", { key: '093883ae845b9f813337d296711c42ba130323a7', name: "caret-down", size: 14 })), this.showPageSizeDropdown && (h("div", { key: 'bbab8ec16c6abbd6f311bcbaafa1b9409f3c8a0f', class: "co-pagination__page-size-dropdown", part: "dropdown" }, this.parsedPageSizes.map(size => (h("button", { class: {
91
+ }, part: "jump-input" })), h("div", { key: '67a1d54ce40eb1cc003d5f88ea644df994d0c590', class: "co-pagination__section co-pagination__section--page-size" }, h("div", { key: '877cb7ebbf427e505f399d14e48cec4011282ab4', class: "co-pagination__page-size-trigger", onClick: () => { this.showPageSizeDropdown = !this.showPageSizeDropdown; } }, h("span", { key: 'ef55eceda68aa0d561a3066a6a9f864171350f94', class: "co-pagination__page-size-value" }, this.pageSize), h("span", { key: '1813de04f69717833fe432ec5188aaa00a379128', class: "co-pagination__label" }, this.perPageLabel), h("co-icon", { key: '20ba29bbb24dfbd03551a439ad9f7cbbbb233f8e', name: "caret-down", size: 14 })), this.showPageSizeDropdown && (h("div", { key: '99bf24b654f5171fb2bf6a0b720057179e7931f1', class: "co-pagination__page-size-dropdown", part: "dropdown" }, this.parsedPageSizes.map(size => (h("button", { class: {
92
92
  'co-pagination__page-size-option': true,
93
93
  'co-pagination__page-size-option--active': size === this.pageSize,
94
- }, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '970ec69d86943f9a2ce03427ca046767c853761d', class: "co-pagination__spacer" }), h("div", { key: 'd3b9ac58040df59daf1cb8848237ad8ed2b05604', class: "co-pagination__section" }, h("span", { key: '6c28ef609f8f3da05791e5b8ff56d84164984def', class: "co-pagination__count" }, this.totalCount.toLocaleString(), " ", this.recordsLabel)), h("div", { key: '5a0d8770c82e23e93d3a5101111e65842af027d9', class: "co-pagination__section co-pagination__nav" }, h("button", { key: '2bea97c046df6ee0d2a7d7de80762659eb2bf9b0', class: "co-pagination__nav-btn", disabled: this.page <= 1, onClick: () => this.goToPage(this.page - 1), part: "prev-btn" }, this.previousLabel), pages.map(p => p === '...' ? (h("span", { class: "co-pagination__ellipsis" }, "\u2026")) : (h("button", { class: {
94
+ }, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '1b0a013033bffc0ef849590f4bd2b19ba78346f3', class: "co-pagination__spacer" }), h("div", { key: '02bcc300d05ff7e2710c2bbb1373ef695e563b6e', class: "co-pagination__section" }, h("span", { key: '3942e7ef9ac9d7b295c1c81685fbeec6032df795', class: "co-pagination__count" }, this.totalCount.toLocaleString(), " ", this.recordsLabel)), h("div", { key: '6e88cd0855d6f34ce0e38d1ee89234b8cf929ad0', class: "co-pagination__section co-pagination__nav" }, h("button", { key: '81b26b3f719a1eca429a6820bf7da6d68b79398f', class: "co-pagination__nav-btn", disabled: this.page <= 1, onClick: () => this.goToPage(this.page - 1), part: "prev-btn" }, this.previousLabel), pages.map(p => p === '...' ? (h("span", { class: "co-pagination__ellipsis" }, "\u2026")) : (h("button", { class: {
95
95
  'co-pagination__page-btn': true,
96
96
  'co-pagination__page-btn--active': p === this.page,
97
- }, onClick: () => this.goToPage(p) }, p))), h("button", { key: '0e432cb2ec4ff54997a0297ddd864bfe050c01a0', class: "co-pagination__nav-btn", disabled: this.page >= this.totalPages, onClick: () => this.goToPage(this.page + 1), part: "next-btn" }, this.nextLabel))));
97
+ }, onClick: () => this.goToPage(p) }, p))), h("button", { key: '83448292b1fba7470971b46e8ab14267e8a762dc', class: "co-pagination__nav-btn", disabled: this.page >= this.totalPages, onClick: () => this.goToPage(this.page + 1), part: "next-btn" }, this.nextLabel))));
98
98
  }
99
99
  static get is() { return "co-data-table-pagination"; }
100
100
  static get encapsulation() { return "shadow"; }
@@ -162,20 +162,20 @@ export class CoDateField {
162
162
  // should still fall back to the localized default placeholder.
163
163
  const placeholder = this.placeholder || t.setDate;
164
164
  const helper = this.isInvalid ? this.errorMessage : this.helperText;
165
- return (h("div", { key: '58824a62494004dc20539095b0dc4b0abd672429', class: {
165
+ return (h("div", { key: '76448762ebc35a510daa099e2b10fffb304a09c1', class: {
166
166
  'co-date-field': true,
167
167
  'co-date-field--disabled': this.disabled,
168
168
  'co-date-field--focused': this.hasFocus,
169
169
  'co-date-field--filled': this.hasValue,
170
170
  'co-date-field--invalid': this.isInvalid,
171
171
  [`co-date-field--${this.size}`]: true,
172
- }, part: "wrapper" }, this.label && (h("div", { key: '35cbbc4dfcce22b17758b9585762bc7fe01463d1', class: "co-date-field__labels" }, h("label", { key: '172c4d990dc882b9fa6010287fdda46664473c5c', class: "co-date-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'a2145c6218cf73a6ef8f248279eb3c468562d709', required: this.required })))), h("div", { key: '86b90e9a67887cbd164ec85822c2c9650cd4c6d6', class: "co-date-field__field-row" }, h("div", { key: '6ce335d82253cc3ae10d97ee76c7b7d19386fb41', class: "co-date-field__field", part: "field" }, h("co-icon", { key: '93c3e62fba825f40062d6f4113802314c51fbc04', name: "calendar", size: 16, class: "co-date-field__icon" }), h("div", { key: 'c9b227f14857a568ee2197590257313e805ef58d', class: "co-date-field__input-wrapper" }, h("input", { key: 'f756ae8a58864fb31bb707e65548e4c58c7cf217', ref: (el) => (this.inputEl = el), class: "co-date-field__native", type: "text", inputMode: "numeric", autocomplete: "off", value: this.draft, placeholder: placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? t.dateLabel : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { key: '2e2c361974484bb390d9d6f80b55f03857ffe568', class: {
172
+ }, part: "wrapper" }, this.label && (h("div", { key: 'e50f105a589cc7a4098281d2466b875fc70c706c', class: "co-date-field__labels" }, h("label", { key: '3dbb87b7f1a4b229afa920352f352cefa0b5be51', class: "co-date-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'adad4708c70542e18e241c73dc16522ffc83a52f', required: this.required })))), h("div", { key: 'ef8bbba2b0070c21cbff8feba625ada99a75e50f', class: "co-date-field__field-row" }, h("div", { key: 'a385b086440ef6842049159424664d1f4a9a5cb5', class: "co-date-field__field", part: "field" }, h("co-icon", { key: '5ebc11e2f8a0ccaa0534682c6633228c66565396', name: "calendar", size: 16, class: "co-date-field__icon" }), h("div", { key: '8ee80f5304623f8da75f20eb93d6fe3eb927d0f1', class: "co-date-field__input-wrapper" }, h("input", { key: 'c156767ea4818750c5b00f2f965c026417ef6bd2', ref: (el) => (this.inputEl = el), class: "co-date-field__native", type: "text", inputMode: "numeric", autocomplete: "off", value: this.draft, placeholder: placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? t.dateLabel : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { key: '4d0b388e20ad3f862e310c951ad7a07d620f9d76', class: {
173
173
  'co-date-field__clear': true,
174
174
  'co-date-field__clear--hidden': !showClear,
175
- }, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: 'c1c29a37857c1c2d6894da49bb32d243cc2cf8dd', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: 'a0b4b27a1101a2993f488b88f072e681e4d6ef0c', type: "hidden", name: this.name, value: (_b = this.value) !== null && _b !== void 0 ? _b : '' }), helper && (h("div", { key: 'eae215d0d4c99c6105fd72c8ee6704f8a1c8444f', class: {
175
+ }, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: '8eb87bc05e53b340b97bdb5f17a3bbd08e2844fc', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: 'b182c4196a15168a1ad654f00e4c83823b0bf894', type: "hidden", name: this.name, value: (_b = this.value) !== null && _b !== void 0 ? _b : '' }), helper && (h("div", { key: 'f2cdef4f478972926e417c03aa6c23269c87fd32', class: {
176
176
  'co-date-field__helper': true,
177
177
  'co-date-field__helper--error': this.isInvalid,
178
- }, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'afc623261826da8d6e94c866808b6eff58da1a44', name: "warning-circle", size: 14, class: "co-date-field__helper-icon" })), h("span", { key: '20e477abb5f1069673f2b65100aa3b6c40b85a6b', class: "co-date-field__helper-text" }, helper)))));
178
+ }, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'e4a0acf05080876968835be09f4cf04b4b3ee80f', name: "warning-circle", size: 14, class: "co-date-field__helper-icon" })), h("span", { key: '2329cec15faab426f09107615e3038428b26182f', class: "co-date-field__helper-text" }, helper)))));
179
179
  }
180
180
  static get is() { return "co-date-field"; }
181
181
  static get encapsulation() { return "shadow"; }
@@ -33,7 +33,7 @@ export class CoDateRange {
33
33
  }
34
34
  }
35
35
  render() {
36
- return (h("co-date-range-picker", { key: '4c6ae7f2b043b03a896c94411ffb8dcd6b375ffc', value: this.value, label: this.label, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, presets: this.presets, helperText: this.helperText, locale: this.locale, applyLabel: this.applyLabel, clearLabel: this.clearLabel, onCoApply: this.handleApply, onCoClear: () => this.coClear.emit() }));
36
+ return (h("co-date-range-picker", { key: 'c72ef0bfac5b2fb196286b77c39c84cf1d72e06d', value: this.value, label: this.label, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, presets: this.presets, helperText: this.helperText, locale: this.locale, applyLabel: this.applyLabel, clearLabel: this.clearLabel, onCoApply: this.handleApply, onCoClear: () => this.coClear.emit() }));
37
37
  }
38
38
  static get is() { return "co-date-range"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -367,10 +367,10 @@ export class CoDateTimePicker {
367
367
  render() {
368
368
  var _a;
369
369
  const t = getDateStrings(this.locale);
370
- return (h("div", { key: '60bb94ab59fc09e96a930a5a615671e8f3eb1baf', class: "co-date-time-picker", onKeyDown: this.onRootKeyDown }, this.renderLabel(), this.isMobile ? ([
370
+ return (h("div", { key: '8ccc0e31d77dfce13ab5fdd27294d6a93944f5ae', class: "co-date-time-picker", onKeyDown: this.onRootKeyDown }, this.renderLabel(), this.isMobile ? ([
371
371
  h("div", { class: "co-date-time-picker__trigger", onClick: () => !this.disabled && !this.readonly && this.setOpen(true) }, this.renderTrigger(t)),
372
372
  h("co-drawer", { position: "bottom", open: this.open, heading: t.selectDateTime, onCoClose: () => this.setOpen(false) }, h("div", { class: "co-date-time-picker__sheet" }, this.renderPanel(t, true))),
373
- ]) : (h("co-popover", { ref: (el) => (this.popoverEl = el), open: this.open, placement: this.placement, offset: 4, closeOnEscape: false, onCoOpen: this.onPopoverOpen, onCoClose: this.onPopoverClose }, h("div", { slot: "trigger", class: "co-date-time-picker__trigger" }, this.renderTrigger(t)), this.open && this.renderPanel(t, false))), this.name && h("input", { key: '820935f800a6a1ecb036751e9267edfdad8f574d', type: "hidden", name: this.name, value: (_a = this.value) !== null && _a !== void 0 ? _a : '' }), this.renderHelper()));
373
+ ]) : (h("co-popover", { ref: (el) => (this.popoverEl = el), open: this.open, placement: this.placement, offset: 4, closeOnEscape: false, onCoOpen: this.onPopoverOpen, onCoClose: this.onPopoverClose }, h("div", { slot: "trigger", class: "co-date-time-picker__trigger" }, this.renderTrigger(t)), this.open && this.renderPanel(t, false))), this.name && h("input", { key: 'c54ad2d2ebeccc0f6f4c836d25b5de0bee6376fc', type: "hidden", name: this.name, value: (_a = this.value) !== null && _a !== void 0 ? _a : '' }), this.renderHelper()));
374
374
  }
375
375
  static get is() { return "co-date-time-picker"; }
376
376
  static get encapsulation() { return "shadow"; }
@@ -74,7 +74,7 @@ export class CoDriveCard {
74
74
  }
75
75
  render() {
76
76
  const isFile = this.variant === 'file';
77
- return (h("div", { key: '62056a659681c95fb1bdd8dc471b8543581f1662', class: {
77
+ return (h("div", { key: 'fef9abf2a536fe08fa6c65fcc4e37955c5bc5373', class: {
78
78
  'co-drive-card': true,
79
79
  [`co-drive-card--${this.variant}`]: true,
80
80
  [`co-drive-card--${this.density}`]: true,
@@ -58,7 +58,7 @@ export class CoDropZone {
58
58
  this.coDragStateChange.emit(next);
59
59
  }
60
60
  render() {
61
- return (h(Host, { key: 'a5bf9dd9d62d7d7d2ec1b0d277a267b721ea430d', class: { 'co-drop-zone': true, 'co-drop-zone--active': this.active }, part: "host", style: { '--co-drop-zone-accent': this.accent }, onDragEnter: this.handleDragEnter, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("slot", { key: '609343dd414c752617e50f73f36f55d4edfc773f' }), this.active && (h("div", { key: '03f38f63b2cf7d9a166d31541f1c21bb2953c80f', class: "co-drop-zone__overlay", part: "overlay" }, h("div", { key: '7b8cd9daa821d224e40507646a166190ea5f917f', class: "co-drop-zone__badge", part: "badge" }, h("co-icon", { key: 'f5f201175801233c4d32772dab7f947c8886ca34', name: this.icon, size: 34 })), h("span", { key: '766d7defd61ab35ab07b6b51c3fe177eb3afee2e', class: "co-drop-zone__label", part: "label" }, this.label)))));
61
+ return (h(Host, { key: '95256dff45bfd8c003a8c4e81aa221873b850df3', class: { 'co-drop-zone': true, 'co-drop-zone--active': this.active }, part: "host", style: { '--co-drop-zone-accent': this.accent }, onDragEnter: this.handleDragEnter, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("slot", { key: '4a5841592fdb7cba17a51eb49bf617f1c5c88a03' }), this.active && (h("div", { key: '80d179ef44a5c5fd6294c1252fd17c35ac1e6f28', class: "co-drop-zone__overlay", part: "overlay" }, h("div", { key: '32fcd18641cd0d766273ce2390d83460347cb358', class: "co-drop-zone__badge", part: "badge" }, h("co-icon", { key: 'c193069fd16d3935c037f6ce69606bc9342d9ad8', name: this.icon, size: 34 })), h("span", { key: 'c6827e6f837f3707778c3b6b330b29907840e46c', class: "co-drop-zone__label", part: "label" }, this.label)))));
62
62
  }
63
63
  static get is() { return "co-drop-zone"; }
64
64
  static get encapsulation() { return "shadow"; }
@@ -13,11 +13,11 @@ export class CoEmptyState {
13
13
  render() {
14
14
  var _a;
15
15
  const iconWeight = (_a = this.iconWeight) !== null && _a !== void 0 ? _a : (this.variant === 'card' ? 'regular' : 'light');
16
- return (h("div", { key: 'fd0802c7ab379e2ff69d181a89e82f9af50c7eb7', class: {
16
+ return (h("div", { key: '4011b99b59671ad38cf5c90b5adc1b42a0353817', class: {
17
17
  'co-empty-state': true,
18
18
  [`co-empty-state--${this.variant}`]: true,
19
19
  [`co-empty-state--${this.size}`]: true,
20
- }, part: "empty-state" }, this.icon && (h("div", { key: '0e37fbc4e087c5bc5ac69eee01cecd9fcde09f49', class: "co-empty-state__icon" }, h("co-icon", { key: '0e75bba07af87b883e7cb236800282af51c4b84f', name: this.icon, size: 40, weight: iconWeight }))), this.heading && (h("div", { key: '69ea3039e73b48f77fa6e58d673802d34506c4ef', class: "co-empty-state__heading" }, this.heading)), this.description && (h("div", { key: '223d8321af110cbde025a59e3677338abee0cc33', class: "co-empty-state__description" }, this.description)), h("div", { key: 'bfba2044eacf53aae426fb99dc1f2d5314a0b8e6', class: "co-empty-state__actions" }, h("slot", { key: 'b22df42a753f9ca5797b373a611421e07881d3e1' }))));
20
+ }, part: "empty-state" }, this.icon && (h("div", { key: 'a6899c6690bb8b9fcdd858fb63a30644b7094672', class: "co-empty-state__icon" }, h("co-icon", { key: '312945448815ae5be78074e03840909b04e5f3c4', name: this.icon, size: 40, weight: iconWeight }))), this.heading && (h("div", { key: '7fd7fdb5fc4922bf2c7d6aab5200bc80947c20ba', class: "co-empty-state__heading" }, this.heading)), this.description && (h("div", { key: 'da5cddc1aa7afc32ee30f59293f66f1e30507614', class: "co-empty-state__description" }, this.description)), h("div", { key: '940a1b9ffa4022a3ee2623b7a6892000c63abfd4', class: "co-empty-state__actions" }, h("slot", { key: 'b6b9fbd93e79890193500d5c3bbbe72d32fa1e20' }))));
21
21
  }
22
22
  static get is() { return "co-empty-state"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -223,10 +223,10 @@ export class CoEventCalendar {
223
223
  const t = getDateStrings(this.locale);
224
224
  const views = this.viewsList;
225
225
  const a = parseISO(this.anchor);
226
- return (h("div", { key: '5fc690577299cbb5d2e4e75d41279ee6f49b9e80', class: "cal" }, h("div", { key: '55b342eacfa324b5eb3e1c819948aba5783e028e', class: "cal__toolbar", part: "toolbar" }, h("button", { key: '7e190cb82abe886d5740b314aeacc136732e0538', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: '0d12537595e3fb72a7214e968cd952ce68f09b90', class: "cal__title-group" }, h("button", { key: '7d658998a4df6144b9b7752103cae448eb9bea6e', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: '4b793fef900dfd76f1356b1e78c7f5ed10b3da4f', name: "caret-left", size: 16 })), h("h2", { key: '0461afb4b372f7c95b528f5746b2ba6008181dcc', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '7b169bb04482f6049f4af0c19cf8bf86a962dabf', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: 'b426d015251b5a476e2cd34b01d1c7d5d92be71d', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
226
+ return (h("div", { key: 'eb07a859a28ba0d09a3880a77a5b122c1ae063fb', class: "cal" }, h("div", { key: '693683cddfad9a1aed4be0bf3651cfff8b2ba1c7', class: "cal__toolbar", part: "toolbar" }, h("button", { key: '48f8fc44179b2950ea0498205f8f8a5d91d33e04', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: '387a1cee67da85bf72e791ca2adc67f7482eb629', class: "cal__title-group" }, h("button", { key: '24d316422fb98f7d7c66ed6154a90f54a56cab12', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: 'd0c575fce693943e91de8c578bb3371bfdb6425a', name: "caret-left", size: 16 })), h("h2", { key: '1bc26dd2c49d67854a1fc922cffc519485437f6a', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '0e152157ed337011d00699b450b6a5cd10016b97', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: 'c821a72abc278e325cadfeae54b4d2b05984d3ba', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
227
227
  var _a;
228
228
  return (h("button", { type: "button", role: "tab", "aria-selected": this.view === v ? 'true' : 'false', class: { 'cal__view-btn': true, 'cal__view-btn--active': this.view === v }, onClick: () => this.switchView(v) }, (_a = t[v]) !== null && _a !== void 0 ? _a : v));
229
- }))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '417cc54fe753d802f30d13992fef86d055c823a3', class: "cal__body", part: "body" }, this.view === 'month' ? (h("co-calendar-month", { loading: this.loading, events: this.normalized, year: a.year, month: a.month, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, timeZone: this.tz, minDate: this.minDate, maxDate: this.maxDate, editable: this.editable, selectable: this.selectable, maxLanes: this.dayMaxEvents, onCoDaySelect: this.handleDaySelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, onCoMoreClick: this.handleMoreClick })) : this.view === 'week' || this.view === 'day' ? (h("co-calendar-timegrid", { loading: this.loading, events: this.normalized, dates: this.visibleDates, locale: this.locale, timeZone: this.tz, editable: this.editable, selectable: this.selectable, minDate: this.minDate, maxDate: this.maxDate, onCoRangeSelect: this.handleRangeSelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, defaultDurationMinutes: this.defaultDurationMinutes, allDaySlot: this.allDaySlot, minTime: this.minTime, maxTime: this.maxTime, slotMinutes: this.slotMinutes, snapMinutes: this.snapMinutes, scrollTime: this.scrollTime, nowIndicator: this.nowIndicator })) : (h("div", { class: "cal__placeholder" }, h("co-icon", { name: "calendar-dots", size: 32 }), h("p", null, `${this.view} view — coming soon`))))));
229
+ }))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '2472ed0d314a489f41f2f46dc7988ce8860a64c2', class: "cal__body", part: "body" }, this.view === 'month' ? (h("co-calendar-month", { loading: this.loading, events: this.normalized, year: a.year, month: a.month, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, timeZone: this.tz, minDate: this.minDate, maxDate: this.maxDate, editable: this.editable, selectable: this.selectable, maxLanes: this.dayMaxEvents, onCoDaySelect: this.handleDaySelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, onCoMoreClick: this.handleMoreClick })) : this.view === 'week' || this.view === 'day' ? (h("co-calendar-timegrid", { loading: this.loading, events: this.normalized, dates: this.visibleDates, locale: this.locale, timeZone: this.tz, editable: this.editable, selectable: this.selectable, minDate: this.minDate, maxDate: this.maxDate, onCoRangeSelect: this.handleRangeSelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, defaultDurationMinutes: this.defaultDurationMinutes, allDaySlot: this.allDaySlot, minTime: this.minTime, maxTime: this.maxTime, slotMinutes: this.slotMinutes, snapMinutes: this.snapMinutes, scrollTime: this.scrollTime, nowIndicator: this.nowIndicator })) : (h("div", { class: "cal__placeholder" }, h("co-icon", { name: "calendar-dots", size: 32 }), h("p", null, `${this.view} view — coming soon`))))));
230
230
  }
231
231
  static get is() { return "co-event-calendar"; }
232
232
  static get encapsulation() { return "shadow"; }
@@ -115,7 +115,7 @@ export class CoEventPopover {
115
115
  this.coClose.emit();
116
116
  }
117
117
  render() {
118
- return (h(Host, { key: '0d80c0a501c72d7428c85ba44075a4c9cab05f6f' }, h("div", { key: 'a772efeb2c49d71f42b53f63ba56858019fcfdcd', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: '8eff11fdc9ae6ebd0de3967dc3a6522cd159bfa0', class: "pop__actions", part: "actions" }, h("slot", { key: 'b9c5c598356d8acc6b0cf135e3c5347de937a33b', name: "actions" })), h("div", { key: '0e1f10c5727d66170d9c1a5b8137ba48c61a867b', class: "pop__head" }, this.dot && h("span", { key: '78ab616e697fb9e4cdc354e791a4e2184ea20123', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: '1abdeb6c16aa3daf5adfb652f4f2ede5e0abb891', class: "pop__body", part: "body" }, h("slot", { key: 'f28a87f62acaa8c617cf24f264462b525065ecbc' }))))));
118
+ return (h(Host, { key: '9d9ef1be12cef8d6703df32d7e768bd4b33f5894' }, h("div", { key: 'ea63b1ab102045fc94c9d095cfcace4975f3fa70', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: 'c7f1c90eadd6fad31c60e6ac9878d7a5aa473ba0', class: "pop__actions", part: "actions" }, h("slot", { key: '84dd97edf67abeabba540914167b5bc3873587b3', name: "actions" })), h("div", { key: '41b360d62f4e61826a67a3445a0554a29a80d58a', class: "pop__head" }, this.dot && h("span", { key: '7b5d2f30b23464a73164f056719ae65d28786696', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: 'f9ef28f360297b6e145929ecbbcc4145b1ea855c', class: "pop__body", part: "body" }, h("slot", { key: '9029fc9c2c99a8202185a21f1a0212145b61334b' }))))));
119
119
  }
120
120
  static get is() { return "co-event-popover"; }
121
121
  static get encapsulation() { return "shadow"; }
@@ -152,11 +152,14 @@
152
152
  box-shadow: none;
153
153
  }
154
154
 
155
- /* ── Fixed positions ────────────────────────────────────────── */
156
- .co-fab--bottom-right { position: fixed; bottom: 24px; right: 24px; z-index: 1000; }
157
- .co-fab--bottom-left { position: fixed; bottom: 24px; left: 24px; z-index: 1000; }
158
- .co-fab--top-right { position: fixed; top: 24px; right: 24px; z-index: 1000; }
159
- .co-fab--top-left { position: fixed; top: 24px; left: 24px; z-index: 1000; }
155
+ /* ── Fixed positions ──────────────────────────────────────────
156
+ Los offsets son overridables por CSS var (default 24px) para que el
157
+ consumidor pueda separar el FAB de barras inferiores (ej. la paginación del
158
+ datatable): setear --co-fab-offset-bottom en el host levanta el FAB. */
159
+ .co-fab--bottom-right { position: fixed; bottom: var(--co-fab-offset-bottom, 24px); right: var(--co-fab-offset-right, 24px); z-index: 1000; }
160
+ .co-fab--bottom-left { position: fixed; bottom: var(--co-fab-offset-bottom, 24px); left: var(--co-fab-offset-left, 24px); z-index: 1000; }
161
+ .co-fab--top-right { position: fixed; top: var(--co-fab-offset-top, 24px); right: var(--co-fab-offset-right, 24px); z-index: 1000; }
162
+ .co-fab--top-left { position: fixed; top: var(--co-fab-offset-top, 24px); left: var(--co-fab-offset-left, 24px); z-index: 1000; }
160
163
 
161
164
  /* ── Label ──────────────────────────────────────────────────── */
162
165
  .co-fab__label {
@@ -28,7 +28,7 @@ export class CoFab {
28
28
  const iconSize = this.size === 'xl' ? 24 : this.size === 'l' ? 24 : this.size === 's' ? 18 : 20;
29
29
  const hasLabel = !!this.label;
30
30
  const hoverExpand = hasLabel && this.expandOnHover;
31
- return (h("button", { key: '67d54b40024fa3851d0ea79960949861ecaeaf4c', class: {
31
+ return (h("button", { key: 'f0d1612601922430df403628c5349b322ee8e88d', class: {
32
32
  'co-fab': true,
33
33
  [`co-fab--${this.variant}`]: true,
34
34
  [`co-fab--${this.size}`]: true,
@@ -36,7 +36,7 @@ export class CoFab {
36
36
  'co-fab--hover-expand': hoverExpand,
37
37
  'co-fab--disabled': this.disabled,
38
38
  [`co-fab--${this.position}`]: this.position !== 'none',
39
- }, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: 'e5e75805115a8b31530a56d8210dcdae66e28ab5', name: this.icon, size: iconSize }), this.label && (h("span", { key: '2e659c02f0056f848f5c0566069dd39f4cd48d2c', class: "co-fab__label", ref: (el) => (this.labelEl = el) }, this.label))));
39
+ }, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: 'fc53d94af9263b20cfce36656608962158d480ab', name: this.icon, size: iconSize }), this.label && (h("span", { key: '5a16cdace79b8fb7b6ead260d14ee4ae018ed02b', class: "co-fab__label", ref: (el) => (this.labelEl = el) }, this.label))));
40
40
  }
41
41
  static get is() { return "co-fab"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -341,12 +341,12 @@ export class CoFileField {
341
341
  const previews = items.filter((it) => isImage(it) && !this.failedPreviews.has(this.keyFor(it)));
342
342
  const canReorder = this.reorderable && this.multiple && !this.disabled && !this.readonly && items.length > 1;
343
343
  const capacity = this.capacityHint(s);
344
- return (h("div", { key: '11e79bc9c1b3b56c10c0558b0d504821db7e8cd6', class: {
344
+ return (h("div", { key: 'f0f1cf1e1f8e7b3551a7f2cf9cda0c780e89a5cd', class: {
345
345
  'co-file-field': true,
346
346
  'co-file-field--disabled': this.disabled,
347
347
  'co-file-field--invalid': this.isInvalid,
348
348
  [statusClass]: !!statusClass,
349
- }, part: "wrapper" }, this.label && (h("div", { key: '9e3f1d834e5a1b70411747568d7a1055b3e0d8f1', class: "co-file-field__labels" }, h("label", { key: '1c138fbe71432df15c970b00f910e0ddcc69a333', class: "co-file-field__label", part: "label" }, this.label, h(RequiredMark, { key: '34b7d0fe683a911fc10352f0d7c79cb01c559999', required: this.required })))), showDropzone && (h("div", { key: '9d046b734982edfd7d9743e9dab5b95593e15383', class: {
349
+ }, part: "wrapper" }, this.label && (h("div", { key: '1f2f390d2d83efa97c1aaa8721caed6a6c14347b', class: "co-file-field__labels" }, h("label", { key: 'd60c45bc97aed3e3a5a01078e9f0985378fc6d55', class: "co-file-field__label", part: "label" }, this.label, h(RequiredMark, { key: '99a129fd1477928257771d97dd3800a0ed0bc7b3', required: this.required })))), showDropzone && (h("div", { key: '404e7314e1fc2cb92751fae3e01685517649e2a5', class: {
350
350
  'co-file-field__dropzone': true,
351
351
  'co-file-field__dropzone--drag': this.dragOver,
352
352
  }, part: "dropzone", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleBrowse, onKeyDown: (e) => {
@@ -354,7 +354,7 @@ export class CoFileField {
354
354
  e.preventDefault();
355
355
  this.handleBrowse();
356
356
  }
357
- }, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: '9af47292af70f8da16062a0bbac21ea520a52a39', class: "co-file-field__upload-btn", part: "upload-button", type: "button", tabIndex: -1 }, h("co-icon", { key: '68f3467892671d62648ccf2d1302cd579cd6601c', name: "file-arrow-up", size: 18 }), h("span", { key: 'a167aa0aef4f1e209660f251dd945ac41576b39f' }, this.uploadButtonText || s.uploadButton)), h("span", { key: 'b1bcfb1eabab417cd46920ccc43f624e52d1470c', class: "co-file-field__dropzone-text" }, this.dropText || s.dropHint), capacity && h("span", { key: '44a29cb6fcd9ea9a65de12794d1313c0ef9da7b9', class: "co-file-field__dropzone-hint" }, capacity), h("div", { key: '4d4f68f6684b976ec1610ebd45bc59ece67a13a9', class: "co-file-field__actions", part: "actions" }, h("slot", { key: '000fe510d61916cb016a9a2d9968426c0edabe62', name: "actions" })), h("input", { key: '16169cf42cc8072d63c36bb3a25f9c5d540e48c3', ref: (el) => (this.inputEl = el), class: "co-file-field__input", type: "file", multiple: this.multiple, accept: this.inputAccept, disabled: this.disabled, onChange: this.handleInputChange, "aria-hidden": "true", tabIndex: -1 }))), items.length > 0 && (h("div", { key: '23dae3bd944ad6cbd7e0d10898832aa1367956a5', class: "co-file-field__uploaded" }, this.multiple && (h("div", { key: 'ca0c17ecc64a68594758c626d41bd14ad6a19633', class: "co-file-field__uploaded-title", part: "uploaded-title" }, `${this.uploadedTitle || s.uploadedTitle} (${items.length})`)), previews.length > 0 && (h("div", { key: '343ca190a8ebb4a2589b90d6b9718e91f7d23bf1', class: "co-file-field__previews", part: "previews" }, previews.map((item) => (h("button", { class: "co-file-field__preview", part: "preview", type: "button", key: `prev-${this.keyFor(item)}`, title: item.name, "aria-label": s.openPreview, onClick: () => this.handlePreviewOpen(item) }, h("img", { src: item.thumbnail || item.url, alt: item.name, loading: "lazy", onError: () => this.handlePreviewError(item) })))))), h("ul", { key: '9b911d176a0ac02b6f76c084c8b7f33c2c8637aa', class: "co-file-field__list", part: "list" }, items.map((item) => {
357
+ }, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: '323e98d5e7e25fcfc7c6b616f375f10bfc072c1f', class: "co-file-field__upload-btn", part: "upload-button", type: "button", tabIndex: -1 }, h("co-icon", { key: 'b9862962a720cfd1f2c9774499be80f25070ce58', name: "file-arrow-up", size: 18 }), h("span", { key: '9e2aead4e161f89a85480200f77b58f3893ce9d9' }, this.uploadButtonText || s.uploadButton)), h("span", { key: '85eb14b7a6e7e7bfdca34b65a9e2bc76a98d8a85', class: "co-file-field__dropzone-text" }, this.dropText || s.dropHint), capacity && h("span", { key: '2c18fd7507c4cf1ff9a62290378ff17a695123a2', class: "co-file-field__dropzone-hint" }, capacity), h("div", { key: '6d2fe109efb9d611ae0e9d0750264c07082d2293', class: "co-file-field__actions", part: "actions" }, h("slot", { key: 'c4004efe0aaee962fcb21ec9de3672ec747d9c5a', name: "actions" })), h("input", { key: 'd2e7504aec97b8cd210b938ed546662b321a0c67', ref: (el) => (this.inputEl = el), class: "co-file-field__input", type: "file", multiple: this.multiple, accept: this.inputAccept, disabled: this.disabled, onChange: this.handleInputChange, "aria-hidden": "true", tabIndex: -1 }))), items.length > 0 && (h("div", { key: 'be86d4a85621ebb3ac99a54381ea31f147f7d91e', class: "co-file-field__uploaded" }, this.multiple && (h("div", { key: '09a9769ee8a72011600b2516fbea7e2fdb6a8e78', class: "co-file-field__uploaded-title", part: "uploaded-title" }, `${this.uploadedTitle || s.uploadedTitle} (${items.length})`)), previews.length > 0 && (h("div", { key: 'f1e9d57bfaf98939d1371262cc469c770dda1cbb', class: "co-file-field__previews", part: "previews" }, previews.map((item) => (h("button", { class: "co-file-field__preview", part: "preview", type: "button", key: `prev-${this.keyFor(item)}`, title: item.name, "aria-label": s.openPreview, onClick: () => this.handlePreviewOpen(item) }, h("img", { src: item.thumbnail || item.url, alt: item.name, loading: "lazy", onError: () => this.handlePreviewError(item) })))))), h("ul", { key: '05308858680195f999764585cb6de75629a88db7', class: "co-file-field__list", part: "list" }, items.map((item) => {
358
358
  const key = this.keyFor(item);
359
359
  const draggable = canReorder && item.status === 'done';
360
360
  return (h("li", { class: {
@@ -375,10 +375,10 @@ export class CoFileField {
375
375
  'co-file-field__action': true,
376
376
  'co-file-field__action--copied': this.copiedKey === key,
377
377
  }, type: "button", tabIndex: -1, title: this.copiedKey === key ? s.copied : s.copyUrl, "aria-label": s.copyUrl, onClick: () => this.handleCopy(item) }, h("co-icon", { name: this.copiedKey === key ? 'check' : 'copy', size: 18 }))), !this.disabled && !this.readonly && (h("button", { class: "co-file-field__action", type: "button", tabIndex: -1, title: s.removeFile, "aria-label": s.removeFile, onClick: () => this.coRemove.emit(key) }, h("co-icon", { name: "trash", size: 18 })))));
378
- })))), helper && (h("div", { key: 'c2edda6419a9f6e75f7c16fac61ce3271159d816', class: {
378
+ })))), helper && (h("div", { key: 'ebbbb0cffa70dbf5125ffafd5ebdafd6cc03c1d9', class: {
379
379
  'co-file-field__helper': true,
380
380
  'co-file-field__helper--error': this.isInvalid,
381
- }, part: "helper" }, this.isInvalid && (h("co-icon", { key: '0772a3d9fdf8fc818b0738ce4c7f0297c6eb4984', name: "warning-circle", size: 14, class: "co-file-field__helper-icon" })), h("span", { key: '6153f585fdd804fb49b09e1d106c6625e473b917', class: "co-file-field__helper-text" }, helper)))));
381
+ }, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'bb81007afb2e2cb36d63045d09b784c6ce0aa7f1', name: "warning-circle", size: 14, class: "co-file-field__helper-icon" })), h("span", { key: '28618bdc3f08a5e226751e8ac5388e7aea02567f', class: "co-file-field__helper-text" }, helper)))));
382
382
  }
383
383
  static get is() { return "co-file-field"; }
384
384
  static get encapsulation() { return "shadow"; }
@@ -54,7 +54,7 @@ export class CoFileTypeTile {
54
54
  const iconSize = Math.round(this.size * 0.5);
55
55
  const background = this.colorTags ? meta.tint : 'var(--co-color-gray-100)';
56
56
  const color = this.colorTags ? meta.accent : 'var(--co-color-gray-600)';
57
- return (h("span", { key: '174e628c4a7fdd118cd5573c0054677c7c006989', class: {
57
+ return (h("span", { key: '1df6dee1c0f729279f36463be6df9137bcbf4af0', class: {
58
58
  'co-file-type-tile': true,
59
59
  [`co-file-type-tile--${type}`]: true,
60
60
  'co-file-type-tile--mono': !this.colorTags,
@@ -64,7 +64,7 @@ export class CoFileTypeTile {
64
64
  borderRadius: `${this.radius}px`,
65
65
  background,
66
66
  color,
67
- } }, h("co-icon", { key: '815957f4dd756fec566b4bbc996083e80aed0ab5', name: meta.icon, size: iconSize, weight: "fill" })));
67
+ } }, h("co-icon", { key: '566163b957b853911e3eef15cd38c7573cf749b4', name: meta.icon, size: iconSize, weight: "fill" })));
68
68
  }
69
69
  static get is() { return "co-file-type-tile"; }
70
70
  static get encapsulation() { return "shadow"; }
@@ -15,10 +15,10 @@ export class CoHelperText {
15
15
  };
16
16
  }
17
17
  render() {
18
- return (h("div", { key: 'c09b28c4e20a80ce87275beb8c8f38c4ec9a6ac3', class: {
18
+ return (h("div", { key: '2c4ae2b671b16dfda50eea3dd33b92c5661812fb', class: {
19
19
  'co-helper-text': true,
20
20
  [`co-helper-text--${this.status}`]: true,
21
- }, part: "helper-text" }, h("co-icon", { key: '48bee19674872e9ed7b06a9f0706063111abc3ae', name: this.STATUS_ICON[this.status], size: 14, weight: "fill", class: "co-helper-text__icon" }), h("span", { key: '9b1e0cd4c00ad73c915f826df299cbb05156ca02', class: "co-helper-text__message" }, h("slot", { key: '41c95d86b31bb19be88b619057aba484748f1dfc' }, this.message))));
21
+ }, part: "helper-text" }, h("co-icon", { key: '18a15852e651204d06279be5a685c79ed927c6d0', name: this.STATUS_ICON[this.status], size: 14, weight: "fill", class: "co-helper-text__icon" }), h("span", { key: '62c3d084abd1b62f90b2631953f51306293b23b7', class: "co-helper-text__message" }, h("slot", { key: '06604123763ac0f84fe1bc2ec1dd840d6ee2756d' }, this.message))));
22
22
  }
23
23
  static get is() { return "co-helper-text"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -31,12 +31,12 @@ export class CoIcon {
31
31
  this.svgContent = await loadSvg(this.name, this.weight);
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '81319f5bcb43f9f095f7ae6328002bcffe22bc42', "aria-hidden": "true", style: {
34
+ return (h(Host, { key: 'a1f3cfef2067bd672a17c19666821b6fac0b3027', "aria-hidden": "true", style: {
35
35
  display: 'inline-flex',
36
36
  width: `${this.size}px`,
37
37
  height: `${this.size}px`,
38
38
  flexShrink: '0',
39
- } }, h("span", { key: '4875243b3b1c0d40d82abc65307e398e83363b61', part: "svg", innerHTML: this.svgContent })));
39
+ } }, h("span", { key: 'cc92c6ea6d2ab5f59a7e793f166f2ae685f7928c', part: "svg", innerHTML: this.svgContent })));
40
40
  }
41
41
  static get is() { return "co-icon"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -41,7 +41,7 @@ export class CoIconButton {
41
41
  : 'var(--co-border-radius-full)',
42
42
  }
43
43
  : undefined;
44
- return (h("button", { key: '430b2aa64f664a6bd7cb40da53f592606c4b5308', class: {
44
+ return (h("button", { key: 'a49770e4411aed2b27e25e42903ccc9b29de5603', class: {
45
45
  'co-icon-button': true,
46
46
  [`co-icon-button--${this.variant}`]: true,
47
47
  [`co-icon-button--${this.shape}`]: true,
@@ -97,17 +97,17 @@ export class CoJsonField {
97
97
  render() {
98
98
  const helper = this.internalInvalid ? this.invalidMessage : this.helperText;
99
99
  const statusClass = this.status !== 'default' ? `co-json-field--${this.status}` : '';
100
- return (h("div", { key: '37c5b552e44d19e321bfd64a35da61e54418013c', class: {
100
+ return (h("div", { key: '6e303939542b1c400432876149a7f7cf94dbfad4', class: {
101
101
  'co-json-field': true,
102
102
  'co-json-field--disabled': this.disabled,
103
103
  'co-json-field--focused': this.hasFocus,
104
104
  'co-json-field--invalid': this.isInvalid,
105
105
  [`co-json-field--${this.size}`]: true,
106
106
  [statusClass]: !!statusClass,
107
- }, part: "wrapper" }, this.label && (h("div", { key: '5ab03329fc4828abf624e473aef67bfa6878a4b1', class: "co-json-field__labels" }, h("label", { key: '14babf193d87564b813174f34df4ae4fc299155b', class: "co-json-field__label", part: "label" }, this.label, h(RequiredMark, { key: '635dd453ef2ed9ee720cc1c3f1c07a7b744d61ec', required: this.required })))), h("div", { key: '83763a2b5438b74da65e51bcbbdd6e6776eda45a', class: "co-json-field__field", part: "field" }, h("textarea", { key: '1f3929e95d98aca26d8f47b3fbce6c2c37aea3fa', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && h("input", { key: '1dd77538a40085b72ba6b407e88d31faa73cd8dc', type: "hidden", name: this.name, value: this.draft }), helper && (h("div", { key: '6fb332624ab9dfa6b21af159ad3153eea4066c9a', class: {
107
+ }, part: "wrapper" }, this.label && (h("div", { key: '77c4793e6755c159d70943be68d94dc9a8f6f82c', class: "co-json-field__labels" }, h("label", { key: 'fa060ddb64fea5a78f339cf10ff46b8bbc3f6c9c', class: "co-json-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'fd130517bb57f0b5c012f39e61cd4ef905c34b42', required: this.required })))), h("div", { key: '752bccc5c2193a81ef174415b0e22936d1729914', class: "co-json-field__field", part: "field" }, h("textarea", { key: '397b3e80d4d252c55f55d9e6c444083f8ee2a28a', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && h("input", { key: '8d658f97252824dce51a262c19e251b664de9c4e', type: "hidden", name: this.name, value: this.draft }), helper && (h("div", { key: '857a97a47b5a88b0a778680329670b474ff1eac1', class: {
108
108
  'co-json-field__helper': true,
109
109
  'co-json-field__helper--error': this.isInvalid,
110
- }, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'f4da415f949ee8d127eece321f4d8feecdd3a1ff', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), h("span", { key: '7e3b458f7173be6ac4fdcf7df42d3a132ab5082b', class: "co-json-field__helper-text" }, helper)))));
110
+ }, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'df90fefaedba9e8340b1fbfd19dd8350ab8e26af', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), h("span", { key: '3ba614c007e38009f7cda47be0d705d63397359f', class: "co-json-field__helper-text" }, helper)))));
111
111
  }
112
112
  static get is() { return "co-json-field"; }
113
113
  static get encapsulation() { return "shadow"; }
@@ -313,17 +313,17 @@ export class CoLightbox {
313
313
  const counter = s.counter
314
314
  .replace('{i}', String(this.index + 1))
315
315
  .replace('{n}', String(imgs.length));
316
- return (h("div", { key: 'c1743a4e71ebdb84af2271962ba1b76a434bbe24', class: { 'co-lightbox': true, 'co-lightbox--open': this.open }, part: "overlay", role: "dialog", "aria-modal": "true", "aria-label": img === null || img === void 0 ? void 0 : img.alt, popover: "manual", ref: this.syncTopLayer, onClick: this.requestClose }, img && (h("div", { key: 'f12555c4b7e8f4f061b7a449d3cb6665c4846cda', class: "co-lightbox__toolbar", part: "toolbar", onClick: this.stop }, h("span", { key: '4bb66de1922f388886d000342f983ab852db0045', class: "co-lightbox__caption", title: img.alt }, img.alt), h("div", { key: '9fbdc078e7dbe0af9813a91a60155c1545e7309e', class: "co-lightbox__zoom" }, h("button", { key: 'b780571cec8da08b9ae069e1ffb6be1d933c4ea1', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomOut, title: s.zoomOut, onClick: () => this.zoomAt(this.scale / WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: '05ffc5137ff964d4159fed49191c2af17abec51f', name: "minus", size: 16 })), h("button", { key: 'b3d6751bb3b81233ccfb61b9692b9d14dda3307f', class: "co-lightbox__btn co-lightbox__zoom-value", type: "button", "aria-label": s.zoomReset, title: s.zoomReset, onClick: () => this.resetView() }, Math.round(this.scale * 100), "%"), h("button", { key: '34ffc666558698b6e8dd3c0559ed1c5372c7947b', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomIn, title: s.zoomIn, onClick: () => this.zoomAt(this.scale * WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: 'a0c066dfb0cf6026b08f85821e197e2340963979', name: "plus", size: 16 }))), h("button", { key: '12f8f66333d043214c57cebb81d1a153be72f9b3', class: "co-lightbox__btn", type: "button", "aria-label": s.openOriginal, title: s.openOriginal, onClick: this.openOriginal }, h("co-icon", { key: 'c60b9a9856aa62728576c356af09880ca2d7710d', name: "arrow-square-out", size: 16 })), h("button", { key: '8a7caebb371e5f509051b92a730712f6e304eac2', class: "co-lightbox__btn", part: "close", type: "button", "aria-label": s.close, title: s.close, ref: (el) => (this.closeBtnEl = el), onClick: this.requestClose }, h("co-icon", { key: 'efcd1f9672c2fa61b74f75b25771574ec6108004', name: "x", size: 16 })))), img && (h("div", { key: 'fc99ed851d5ffd99fb09b7c98fb4d317bcaa1f2a', class: "co-lightbox__stage", ref: (el) => (this.stageEl = el), onWheel: this.handleWheel }, h("img", { key: '7e43afbd4e170ab2b1a818501b7e34d4147c143e', class: {
316
+ return (h("div", { key: 'ee47c98cd468a05ffc7536756b72818bfa9391da', class: { 'co-lightbox': true, 'co-lightbox--open': this.open }, part: "overlay", role: "dialog", "aria-modal": "true", "aria-label": img === null || img === void 0 ? void 0 : img.alt, popover: "manual", ref: this.syncTopLayer, onClick: this.requestClose }, img && (h("div", { key: '80859431215ee33bc0480f8788a32886486d4e7c', class: "co-lightbox__toolbar", part: "toolbar", onClick: this.stop }, h("span", { key: '09ee3dc94fdb88f66516a1d5e5f44f1f2a90d850', class: "co-lightbox__caption", title: img.alt }, img.alt), h("div", { key: '86a02fb7b0c0e92eb633d5d61464c1a8e044564c', class: "co-lightbox__zoom" }, h("button", { key: '3e83390c0b22ef8986c39dc399f04e2cad48556e', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomOut, title: s.zoomOut, onClick: () => this.zoomAt(this.scale / WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: 'e4241a61696d191b262270370924ee4700949e98', name: "minus", size: 16 })), h("button", { key: '92b11da3129dfdd181b9114c613fc3624c9df41a', class: "co-lightbox__btn co-lightbox__zoom-value", type: "button", "aria-label": s.zoomReset, title: s.zoomReset, onClick: () => this.resetView() }, Math.round(this.scale * 100), "%"), h("button", { key: 'e224e703bf5902f7b72acb6428ed5ec46ace49a1', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomIn, title: s.zoomIn, onClick: () => this.zoomAt(this.scale * WHEEL_FACTOR, 0, 0) }, h("co-icon", { key: '4216032ce75fee7e05bdbc50095ddc7037910876', name: "plus", size: 16 }))), h("button", { key: '8ec864104b0127f0d6150d91179a46b35270fb4c', class: "co-lightbox__btn", type: "button", "aria-label": s.openOriginal, title: s.openOriginal, onClick: this.openOriginal }, h("co-icon", { key: '836480f7857396b613e99abf85fedabbf73fa43a', name: "arrow-square-out", size: 16 })), h("button", { key: '736dbb247d0af9e261fa5bf21ec6113f8d40f612', class: "co-lightbox__btn", part: "close", type: "button", "aria-label": s.close, title: s.close, ref: (el) => (this.closeBtnEl = el), onClick: this.requestClose }, h("co-icon", { key: '0c45bcfb64245b5388452216204effd74482a862', name: "x", size: 16 })))), img && (h("div", { key: 'af2d7a221312f18a62895579a067e740e878caf3', class: "co-lightbox__stage", ref: (el) => (this.stageEl = el), onWheel: this.handleWheel }, h("img", { key: 'fac630a31bf240d6ef5ffe3c85136e5534722b26', class: {
317
317
  'co-lightbox__img': true,
318
318
  'co-lightbox__img--zoomed': this.scale > MIN_SCALE,
319
319
  'co-lightbox__img--dragging': this.dragging,
320
- }, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (h("button", { key: '461444963dde42d1d72af6bd88fe2013ab3858ee', class: "co-lightbox__nav co-lightbox__nav--prev", part: "prev", type: "button", "aria-label": s.prevImage, title: s.prevImage, onClick: (e) => {
320
+ }, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (h("button", { key: '3cca38f856ec367dc40596acc988875d6b334f60', class: "co-lightbox__nav co-lightbox__nav--prev", part: "prev", type: "button", "aria-label": s.prevImage, title: s.prevImage, onClick: (e) => {
321
321
  e.stopPropagation();
322
322
  this.goTo(-1);
323
- } }, h("co-icon", { key: 'a69c348080ac70da9d5af641c502e6a1f206f7dd', name: "caret-left", size: 24 }))), img && multi && (h("button", { key: '56504889f11cb56cea40aef5676ea6916aade850', class: "co-lightbox__nav co-lightbox__nav--next", part: "next", type: "button", "aria-label": s.nextImage, title: s.nextImage, onClick: (e) => {
323
+ } }, h("co-icon", { key: 'f5c296f6802355140cb64b690401f12faac29faa', name: "caret-left", size: 24 }))), img && multi && (h("button", { key: 'a0104539bcc4a9ebc4090d28636c7fae7cfcf1ae', class: "co-lightbox__nav co-lightbox__nav--next", part: "next", type: "button", "aria-label": s.nextImage, title: s.nextImage, onClick: (e) => {
324
324
  e.stopPropagation();
325
325
  this.goTo(1);
326
- } }, h("co-icon", { key: '44cb0a0c644aa75c581bdd863df98590dbd0ebc3', name: "caret-right", size: 24 }))), img && multi && (h("div", { key: '6642109e875532fea123fc75fe0cf0ea6129be85', class: "co-lightbox__counter", part: "counter", onClick: this.stop }, counter))));
326
+ } }, h("co-icon", { key: '6adef24091aeaa4df0bf92cbade32bdf9273c015', name: "caret-right", size: 24 }))), img && multi && (h("div", { key: '6a31e663231a66339621c26aba74c28e3c9b152e', class: "co-lightbox__counter", part: "counter", onClick: this.stop }, counter))));
327
327
  }
328
328
  static get is() { return "co-lightbox"; }
329
329
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,7 @@ export class CoListFooter {
17
17
  this.handleSecondary = () => this.coSecondary.emit();
18
18
  }
19
19
  render() {
20
- return (h("div", { key: 'fbf4ec72aa2f6814b558d51c44592e784355751e', class: "co-list-footer", part: "footer" }, this.secondaryLabel && (h("button", { key: '78abef0f79117263c7d30e5ce37a876d193ba5e4', class: "co-list-footer__btn co-list-footer__btn--secondary", type: "button", onClick: this.handleSecondary }, this.secondaryIcon && h("co-icon", { key: 'a765ab5be51d7eb5791d3161cf5c7d3688fa0fd7', name: this.secondaryIcon, size: 16 }), h("span", { key: '0f5d57201bcd6ce40439c26916e01f1e37fcd87e' }, this.secondaryLabel))), this.primaryLabel && (h("button", { key: '27aa3b20666c9fe2a6fb7f28a9ca6e2542dd8fd7', class: "co-list-footer__btn co-list-footer__btn--primary", type: "button", onClick: this.handlePrimary }, this.primaryIcon && h("co-icon", { key: 'bafe2ebb9cfb2cc26c682ae9b419b09a512652f8', name: this.primaryIcon, size: 16 }), h("span", { key: 'c3c9baead987beea02ead3a65d3372c5532a67b8' }, this.primaryLabel))), h("slot", { key: '7a1ce48c91cc95c320c4d680053f42555e601187' })));
20
+ return (h("div", { key: '8dacde70abe5f58b86003a6bb82dad4bbc4b0394', class: "co-list-footer", part: "footer" }, this.secondaryLabel && (h("button", { key: 'd6049cfd2e018323dc9426da5cc267b8ddbd3479', class: "co-list-footer__btn co-list-footer__btn--secondary", type: "button", onClick: this.handleSecondary }, this.secondaryIcon && h("co-icon", { key: '04c33cf918267dc57d6955f53be90c1aa61065a1', name: this.secondaryIcon, size: 16 }), h("span", { key: '8062a62489076b81f6dd16dc95245bee1e57826e' }, this.secondaryLabel))), this.primaryLabel && (h("button", { key: '26c8305842045d4ebd1c37d6fc304efa67c8329b', class: "co-list-footer__btn co-list-footer__btn--primary", type: "button", onClick: this.handlePrimary }, this.primaryIcon && h("co-icon", { key: '62a0cab190325e97536f72393d4a5b8accb5e9c7', name: this.primaryIcon, size: 16 }), h("span", { key: '2a7eb0c0bda8112823090f5dfdb6aa8aa6329a09' }, this.primaryLabel))), h("slot", { key: '385b7fddd09c86e8d3e0c793cf205ba9358718ec' })));
21
21
  }
22
22
  static get is() { return "co-list-footer"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -70,21 +70,21 @@ export class CoListItem {
70
70
  requestAnimationFrame(this.measureTruncation);
71
71
  }
72
72
  render() {
73
- return (h("div", { key: '23cfee682f0e7d3a22ca793b9e6b29eb89cf8ca1', class: {
73
+ return (h("div", { key: '5b4255d0896c4b411e4b558623d23404f9a0a099', class: {
74
74
  'co-list-item': true,
75
75
  'co-list-item--selected': this.selected,
76
76
  'co-list-item--disabled': this.disabled,
77
77
  'co-list-item--dense': this.dense,
78
78
  'co-list-item--has-description': !!this.description,
79
- }, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: 'a0f3c86656e408225fdbfeb610a088f8adebfa55', class: "co-list-item__prefix" }, this.icon && h("co-icon", { key: '18be77a790afd7b83f8ad07c9af5925abed4f23b', name: this.icon, size: 18 }), h("slot", { key: '2e198e4c541e1c86c6c266cf93408e195c851428', name: "prefix" })), h("div", { key: 'cbb5768d0a7bb287dbab1e013ae5e03ff2194a1f', class: "co-list-item__content" }, this.label && (h("co-tooltip", { key: '79730131bb1a74660d6dba076b622358b7c1ee15', block: true, class: "co-list-item__tip", content: this.label, placement: "top", disabled: !this.labelTruncated }, h("span", { key: '778b003dc31bc196a770a7dc6c4eebe649faf8c3', class: "co-list-item__label", ref: (el) => {
79
+ }, part: "item", role: "option", tabindex: this.disabled ? -1 : 0, "aria-selected": this.selected ? 'true' : 'false', "aria-disabled": this.disabled ? 'true' : 'false', onClick: this.handleClick, onKeyDown: this.handleKeyDown }, h("span", { key: '8f2d21c6e38644a825dc7d90d03c8bb1ecdb9dbc', class: "co-list-item__prefix" }, this.icon && h("co-icon", { key: '42f7f82814dea4979aa42dfc199137cadca84d50', name: this.icon, size: 18 }), h("slot", { key: '2e8b8279c24afd6d6a3377a3e6407de3a946ce2d', name: "prefix" })), h("div", { key: '441c477e26e4188bf5fc57296e64ec7394244946', class: "co-list-item__content" }, this.label && (h("co-tooltip", { key: '77c6f39d6f9758dd06f8d6b3684dea9d670dc591', block: true, class: "co-list-item__tip", content: this.label, placement: "top", disabled: !this.labelTruncated }, h("span", { key: '6cb1798690cd602b5d3a41259420422ec5d9f147', class: "co-list-item__label", ref: (el) => {
80
80
  this.labelEl = el;
81
81
  if (el && this.ro)
82
82
  this.ro.observe(el);
83
- } }, this.label))), this.description && (h("co-tooltip", { key: '56c81304ceec7039a659c1e2443a17df48bf88eb', block: true, class: "co-list-item__tip", content: this.description, placement: "top", disabled: !this.descTruncated }, h("span", { key: '5f1f870da25778bfbe801cfb769319cff71fac75', class: "co-list-item__description", ref: (el) => {
83
+ } }, this.label))), this.description && (h("co-tooltip", { key: 'd514a4554ec7160e192575c019c2036bafacad93', block: true, class: "co-list-item__tip", content: this.description, placement: "top", disabled: !this.descTruncated }, h("span", { key: 'ff1a1fcf77f4fcb1c8da4aa686e325609652cbb0', class: "co-list-item__description", ref: (el) => {
84
84
  this.descEl = el;
85
85
  if (el && this.ro)
86
86
  this.ro.observe(el);
87
- } }, this.description))), h("slot", { key: '136ec5db83f4d2a77126d734ecac511c92b36d91' })), h("span", { key: '759b18ea3bedcb7b7b8023cb6ca1444fbacb5748', class: "co-list-item__suffix" }, h("slot", { key: 'c6519a183c1b7cdb84e4d822a5e2fa523a99ab52', name: "suffix" }))));
87
+ } }, this.description))), h("slot", { key: 'd449919d91bab89c6152bb506e79a89670182951' })), h("span", { key: '88003131b37470c9b922c9511c38f6e95af8c55a', class: "co-list-item__suffix" }, h("slot", { key: '2e55673f5a17d14b5194490e87a332cbce70daf6', name: "suffix" }))));
88
88
  }
89
89
  static get is() { return "co-list-item"; }
90
90
  static get encapsulation() { return "shadow"; }