@prolibu-suite/cobalt-core 0.10.4 → 0.11.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 (824) hide show
  1. package/README.md +12 -5
  2. package/custom-elements.json +7034 -1203
  3. package/dist/cjs/co-accordion.cjs.entry.js +3 -3
  4. package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
  5. package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
  6. package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
  7. package/dist/cjs/co-autocomplete.cjs.entry.js +12 -5
  8. package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
  9. package/dist/cjs/co-avatar.cjs.entry.js +7 -4
  10. package/dist/cjs/co-badge.cjs.entry.js +2 -2
  11. package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
  12. package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
  13. package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
  14. package/dist/cjs/co-button-group.cjs.entry.js +4 -3
  15. package/dist/cjs/co-button.cjs.entry.js +9 -7
  16. package/dist/cjs/co-calendar-month_2.cjs.entry.js +16 -4
  17. package/dist/cjs/co-calendar_3.cjs.entry.js +76 -27
  18. package/dist/cjs/co-card.cjs.entry.js +3 -3
  19. package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
  20. package/dist/cjs/co-carousel.cjs.entry.js +6 -3
  21. package/dist/cjs/co-checkbox-group.cjs.entry.js +4 -4
  22. package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
  23. package/dist/cjs/co-chip_2.cjs.entry.js +20 -7
  24. package/dist/cjs/co-color-area.cjs.entry.js +169 -0
  25. package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
  26. package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
  27. package/dist/cjs/co-column-picker.cjs.entry.js +23 -3
  28. package/dist/cjs/co-combobox.cjs.entry.js +5 -5
  29. package/dist/cjs/co-command-search.cjs.entry.js +5 -5
  30. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  31. package/dist/cjs/co-data-table.cjs.entry.js +3 -3
  32. package/dist/cjs/co-date-picker.cjs.entry.js +10 -2
  33. package/dist/cjs/co-date-range-picker.cjs.entry.js +11 -2
  34. package/dist/cjs/co-date-range.cjs.entry.js +8 -2
  35. package/dist/cjs/co-date-time-picker.cjs.entry.js +11 -4
  36. package/dist/cjs/co-document-editor.cjs.entry.js +1167 -0
  37. package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
  38. package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
  39. package/dist/cjs/co-emoji-picker.cjs.entry.js +3 -3
  40. package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
  41. package/dist/cjs/co-event-calendar.cjs.entry.js +5 -3
  42. package/dist/cjs/co-event-popover.cjs.entry.js +7 -3
  43. package/dist/cjs/co-fab.cjs.entry.js +7 -3
  44. package/dist/cjs/co-file-field.cjs.entry.js +12 -8
  45. package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
  46. package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
  47. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  48. package/dist/cjs/co-icon-button.cjs.entry.js +48 -9
  49. package/dist/cjs/co-icon.cjs.entry.js +3 -3
  50. package/dist/cjs/co-input.cjs.entry.js +14 -8
  51. package/dist/cjs/co-json-field.cjs.entry.js +10 -5
  52. package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
  53. package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
  54. package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
  55. package/dist/cjs/co-list-item.cjs.entry.js +5 -5
  56. package/dist/cjs/co-loader.cjs.entry.js +1 -1
  57. package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
  58. package/dist/cjs/co-menu-divider.cjs.entry.js +3 -3
  59. package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
  60. package/dist/cjs/co-menu.cjs.entry.js +81 -5
  61. package/dist/cjs/co-modal.cjs.entry.js +350 -7
  62. package/dist/cjs/co-navbar.cjs.entry.js +3 -3
  63. package/dist/cjs/co-number-field.cjs.entry.js +11 -5
  64. package/dist/cjs/co-overlay.cjs.entry.js +8 -4
  65. package/dist/cjs/co-page-header.cjs.entry.js +2 -2
  66. package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
  67. package/dist/cjs/co-popover.cjs.entry.js +69 -6
  68. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  69. package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
  70. package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
  71. package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
  72. package/dist/cjs/co-radio.cjs.entry.js +4 -4
  73. package/dist/cjs/co-rating.cjs.entry.js +11 -4
  74. package/dist/cjs/co-ref-field.cjs.entry.js +14 -5
  75. package/dist/cjs/co-rich-text-editor.cjs.entry.js +40 -92
  76. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +80 -20
  77. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
  78. package/dist/cjs/co-row.cjs.entry.js +3 -3
  79. package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
  80. package/dist/cjs/co-select.cjs.entry.js +171 -29
  81. package/dist/cjs/co-separator.cjs.entry.js +2 -2
  82. package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
  83. package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
  84. package/dist/cjs/co-slider.cjs.entry.js +209 -23
  85. package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
  86. package/dist/cjs/co-switch.cjs.entry.js +5 -5
  87. package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
  88. package/dist/cjs/co-tab.cjs.entry.js +15 -5
  89. package/dist/cjs/co-tags-field.cjs.entry.js +13 -8
  90. package/dist/cjs/co-textarea.cjs.entry.js +6 -6
  91. package/dist/cjs/co-tile.cjs.entry.js +61 -0
  92. package/dist/cjs/co-time-field.cjs.entry.js +5 -2
  93. package/dist/cjs/co-toast.cjs.entry.js +3 -3
  94. package/dist/cjs/co-toggle-button-group.cjs.entry.js +29 -5
  95. package/dist/cjs/co-toggle-button.cjs.entry.js +70 -6
  96. package/dist/cjs/co-transfer-list.cjs.entry.js +7 -3
  97. package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
  98. package/dist/cjs/co-video.cjs.entry.js +11 -3
  99. package/dist/cjs/cobalt.cjs.js +2 -2
  100. package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
  101. package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
  102. package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
  103. package/dist/cjs/hsv-DpfSF3M2.js +95 -0
  104. package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
  105. package/dist/cjs/index-oMHzCXm6.js +144 -0
  106. package/dist/cjs/loader.cjs.js +2 -2
  107. package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
  108. package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
  109. package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
  110. package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
  111. package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
  112. package/dist/cjs/submenu-RlaX6irw.js +65 -0
  113. package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
  114. package/dist/cobalt/cobalt.css +1 -1
  115. package/dist/cobalt/cobalt.esm.js +1 -1
  116. package/dist/cobalt/{p-76249983.entry.js → p-019eed8e.entry.js} +1 -1
  117. package/dist/cobalt/p-04e3e1f6.entry.js +1 -0
  118. package/dist/cobalt/p-06689166.entry.js +1 -0
  119. package/dist/cobalt/p-0d046d98.entry.js +1 -0
  120. package/dist/cobalt/{p-28764b8e.entry.js → p-0e4c2234.entry.js} +1 -1
  121. package/dist/cobalt/{p-b90d41e4.entry.js → p-1348d5ca.entry.js} +1 -1
  122. package/dist/cobalt/{p-49834b8e.entry.js → p-13e5b724.entry.js} +1 -1
  123. package/dist/cobalt/p-1a5bec8c.entry.js +1 -0
  124. package/dist/cobalt/p-21b4a830.entry.js +1 -0
  125. package/dist/cobalt/p-2231bacc.entry.js +1 -0
  126. package/dist/cobalt/{p-b437eff6.entry.js → p-26cbdc33.entry.js} +1 -1
  127. package/dist/cobalt/{p-aa9400bf.entry.js → p-28cf05f3.entry.js} +1 -1
  128. package/dist/cobalt/{p-eadfd661.entry.js → p-358a6c2a.entry.js} +1 -1
  129. package/dist/cobalt/p-3b5024ce.entry.js +1 -0
  130. package/dist/cobalt/p-3b6efb79.entry.js +1 -0
  131. package/dist/cobalt/p-3d1a48e5.entry.js +1 -0
  132. package/dist/cobalt/p-47eca182.entry.js +1 -0
  133. package/dist/cobalt/{p-eb82358d.entry.js → p-4bcdd422.entry.js} +1 -1
  134. package/dist/cobalt/{p-17244412.entry.js → p-4d743628.entry.js} +1 -1
  135. package/dist/cobalt/{p-011dc80b.entry.js → p-4e81e580.entry.js} +1 -1
  136. package/dist/cobalt/{p-ee9a623d.entry.js → p-53a251ca.entry.js} +1 -1
  137. package/dist/cobalt/{p-11c5ce78.entry.js → p-56176aa0.entry.js} +1 -1
  138. package/dist/cobalt/{p-a32b20eb.entry.js → p-58ebb303.entry.js} +1 -1
  139. package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
  140. package/dist/cobalt/{p-2636b7eb.entry.js → p-5e678e88.entry.js} +1 -1
  141. package/dist/cobalt/{p-996f4e38.entry.js → p-60f948c4.entry.js} +1 -1
  142. package/dist/cobalt/p-63908a8d.entry.js +1 -0
  143. package/dist/cobalt/p-65c191aa.entry.js +1 -0
  144. package/dist/cobalt/{p-c2ebf0ec.entry.js → p-65d44da2.entry.js} +1 -1
  145. package/dist/cobalt/p-67a024dd.entry.js +1 -0
  146. package/dist/cobalt/{p-ee149fd2.entry.js → p-6974df59.entry.js} +1 -1
  147. package/dist/cobalt/{p-000a15b8.entry.js → p-69ecc933.entry.js} +1 -1
  148. package/dist/cobalt/p-6c1992c9.entry.js +1 -0
  149. package/dist/cobalt/{p-b821d9de.entry.js → p-6d4a660c.entry.js} +1 -1
  150. package/dist/cobalt/{p-f57dffca.entry.js → p-713637f2.entry.js} +1 -1
  151. package/dist/cobalt/{p-292b0389.entry.js → p-71ae1551.entry.js} +1 -1
  152. package/dist/cobalt/{p-91e73a92.entry.js → p-71dc8e4a.entry.js} +1 -1
  153. package/dist/cobalt/{p-aaca6dab.entry.js → p-71ee36a8.entry.js} +1 -1
  154. package/dist/cobalt/p-71fe35c4.entry.js +1 -0
  155. package/dist/cobalt/{p-08e42e00.entry.js → p-73313cbe.entry.js} +1 -1
  156. package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
  157. package/dist/cobalt/p-77e0d401.entry.js +1 -0
  158. package/dist/cobalt/{p-c91d4fc6.entry.js → p-78412feb.entry.js} +1 -1
  159. package/dist/cobalt/p-7beface1.entry.js +1 -0
  160. package/dist/cobalt/{p-f4e1c3c3.entry.js → p-7d1718ed.entry.js} +1 -1
  161. package/dist/cobalt/{p-826ee074.entry.js → p-7df18a52.entry.js} +1 -1
  162. package/dist/cobalt/p-7e678cbd.entry.js +1 -0
  163. package/dist/cobalt/{p-d0b2c418.entry.js → p-7fabd8ba.entry.js} +1 -1
  164. package/dist/cobalt/{p-23ab0cc5.entry.js → p-848f5ca4.entry.js} +1 -1
  165. package/dist/cobalt/{p-623cc195.entry.js → p-8680559b.entry.js} +1 -1
  166. package/dist/cobalt/p-87de5469.entry.js +1 -0
  167. package/dist/cobalt/p-87e62e2b.entry.js +1 -0
  168. package/dist/cobalt/{p-1861fe41.entry.js → p-8a2a2b6c.entry.js} +1 -1
  169. package/dist/cobalt/p-903237f9.entry.js +1 -0
  170. package/dist/cobalt/{p-2c9dba2f.entry.js → p-95f2ebb1.entry.js} +1 -1
  171. package/dist/cobalt/{p-24196410.entry.js → p-99df434b.entry.js} +1 -1
  172. package/dist/cobalt/{p-290066ef.entry.js → p-9adbab95.entry.js} +1 -1
  173. package/dist/cobalt/p-9dc01092.entry.js +1 -0
  174. package/dist/cobalt/p-9ee5bef3.entry.js +1 -0
  175. package/dist/cobalt/p-B1JT7us1.js +1 -0
  176. package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
  177. package/dist/cobalt/p-BmdKHBZP.js +1 -0
  178. package/dist/cobalt/p-BtliEQAT.js +1 -0
  179. package/dist/cobalt/p-COJdaKBU.js +1 -0
  180. package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
  181. package/dist/cobalt/p-CYN5B3IQ.js +1 -0
  182. package/dist/cobalt/p-DJkaRtbb.js +2 -0
  183. package/dist/cobalt/p-DU-KOQ8L.js +1 -0
  184. package/dist/cobalt/p-DXLeDZvr.js +1 -0
  185. package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
  186. package/dist/cobalt/p-RVQJEYxa.js +1 -0
  187. package/dist/cobalt/{p-ee2023da.entry.js → p-a27013e6.entry.js} +1 -1
  188. package/dist/cobalt/{p-2f9cbbd5.entry.js → p-a4eb298c.entry.js} +1 -1
  189. package/dist/cobalt/p-a56bd4a8.entry.js +1 -0
  190. package/dist/cobalt/{p-59963937.entry.js → p-a5eabecb.entry.js} +1 -1
  191. package/dist/cobalt/p-a5ee1fc2.entry.js +1 -0
  192. package/dist/cobalt/{p-fb2d1144.entry.js → p-a7cd61ce.entry.js} +1 -1
  193. package/dist/cobalt/{p-39a50e7f.entry.js → p-ad752791.entry.js} +1 -1
  194. package/dist/cobalt/{p-07416e31.entry.js → p-ae999b94.entry.js} +1 -1
  195. package/dist/cobalt/{p-4d65e713.entry.js → p-aed832d5.entry.js} +1 -1
  196. package/dist/cobalt/p-b2457431.entry.js +1 -0
  197. package/dist/cobalt/{p-6dd220e0.entry.js → p-b39a4999.entry.js} +1 -1
  198. package/dist/cobalt/p-b5dabdc3.entry.js +1 -0
  199. package/dist/cobalt/{p-8471abe2.entry.js → p-b67fb616.entry.js} +1 -1
  200. package/dist/cobalt/{p-f7eb1a40.entry.js → p-b9b73dcb.entry.js} +1 -1
  201. package/dist/cobalt/{p-f9a7b7c6.entry.js → p-ba39a965.entry.js} +1 -1
  202. package/dist/cobalt/{p-58d9b650.entry.js → p-be520bd5.entry.js} +1 -1
  203. package/dist/cobalt/{p-1dc55e43.entry.js → p-bee30373.entry.js} +1 -1
  204. package/dist/cobalt/{p-44c4e4a3.entry.js → p-c220362c.entry.js} +1 -1
  205. package/dist/cobalt/p-c4c997f3.entry.js +1 -0
  206. package/dist/cobalt/{p-a2462d7a.entry.js → p-c5464a98.entry.js} +1 -1
  207. package/dist/cobalt/p-c567533e.entry.js +1 -0
  208. package/dist/cobalt/{p-c30b4cb5.entry.js → p-cf5b91be.entry.js} +1 -1
  209. package/dist/cobalt/p-cfaaa684.entry.js +1 -0
  210. package/dist/cobalt/p-d00c3894.entry.js +1 -0
  211. package/dist/cobalt/p-d1e83525.entry.js +1 -0
  212. package/dist/cobalt/{p-44ea675f.entry.js → p-d5d8fa8b.entry.js} +1 -1
  213. package/dist/cobalt/p-d6215d80.entry.js +1 -0
  214. package/dist/cobalt/p-d6e7c258.entry.js +1 -0
  215. package/dist/cobalt/p-dabcbba7.entry.js +1 -0
  216. package/dist/cobalt/p-db623519.entry.js +1 -0
  217. package/dist/cobalt/{p-c7d7d7f7.entry.js → p-df529110.entry.js} +1 -1
  218. package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
  219. package/dist/cobalt/{p-d29bb0fa.entry.js → p-efb3cbb0.entry.js} +1 -1
  220. package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
  221. package/dist/cobalt/{p-0c004735.entry.js → p-f2fa2ac0.entry.js} +1 -1
  222. package/dist/cobalt/p-f403eeec.entry.js +1 -0
  223. package/dist/cobalt/{p-e4264532.entry.js → p-f69804a6.entry.js} +1 -1
  224. package/dist/cobalt/p-xnrKkNWQ.js +1 -0
  225. package/dist/collection/collection-manifest.json +8 -0
  226. package/dist/collection/components/co-accordion/co-accordion.js +12 -2
  227. package/dist/collection/components/co-action-bar/co-action-bar.css +6 -0
  228. package/dist/collection/components/co-action-bar/co-action-bar.js +3 -2
  229. package/dist/collection/components/co-app-shell/co-app-shell.css +6 -0
  230. package/dist/collection/components/co-app-shell/co-app-shell.js +13 -2
  231. package/dist/collection/components/co-audio-player/co-audio-player.js +19 -7
  232. package/dist/collection/components/co-autocomplete/co-autocomplete.js +30 -17
  233. package/dist/collection/components/co-avatar/co-avatar.css +16 -2
  234. package/dist/collection/components/co-avatar/co-avatar.js +14 -4
  235. package/dist/collection/components/co-avatar-group/co-avatar-group.css +4 -0
  236. package/dist/collection/components/co-avatar-group/co-avatar-group.js +8 -3
  237. package/dist/collection/components/co-badge/co-badge.js +8 -1
  238. package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +13 -4
  239. package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +5 -1
  240. package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +8 -2
  241. package/dist/collection/components/co-button/co-button.css +81 -6
  242. package/dist/collection/components/co-button/co-button.js +39 -11
  243. package/dist/collection/components/co-button-group/co-button-group.js +10 -3
  244. package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
  245. package/dist/collection/components/co-calendar/co-calendar.css +19 -1
  246. package/dist/collection/components/co-calendar/co-calendar.js +84 -20
  247. package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
  248. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +36 -19
  249. package/dist/collection/components/co-card/co-card.js +11 -2
  250. package/dist/collection/components/co-carousel/co-carousel.css +10 -0
  251. package/dist/collection/components/co-carousel/co-carousel.js +17 -5
  252. package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
  253. package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
  254. package/dist/collection/components/co-checkbox/co-checkbox.js +39 -3
  255. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +9 -4
  256. package/dist/collection/components/co-chip/co-chip.css +9 -0
  257. package/dist/collection/components/co-chip/co-chip.js +15 -2
  258. package/dist/collection/components/co-color-area/co-color-area.css +87 -0
  259. package/dist/collection/components/co-color-area/co-color-area.js +342 -0
  260. package/dist/collection/components/co-color-picker/co-color-picker.js +4 -2
  261. package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
  262. package/dist/collection/components/co-color-slider/co-color-slider.js +354 -0
  263. package/dist/collection/components/co-column-picker/co-column-picker.js +51 -25
  264. package/dist/collection/components/co-combobox/co-combobox.js +18 -4
  265. package/dist/collection/components/co-command-search/co-command-search.js +19 -8
  266. package/dist/collection/components/co-data-table/co-data-table.js +8 -3
  267. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +16 -4
  268. package/dist/collection/components/co-date-field/co-date-field.js +19 -13
  269. package/dist/collection/components/co-date-picker/co-date-picker.js +38 -25
  270. package/dist/collection/components/co-date-range/co-date-range.js +19 -10
  271. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +44 -30
  272. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +31 -22
  273. package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
  274. package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
  275. package/dist/collection/components/co-document-editor/co-document-editor.js +1549 -0
  276. package/dist/collection/components/co-document-editor/document-props.js +40 -0
  277. package/dist/collection/components/co-document-editor/header-tools.js +11 -0
  278. package/dist/collection/components/co-document-editor/image-bar.js +66 -0
  279. package/dist/collection/components/co-document-editor/page-styles.js +90 -0
  280. package/dist/collection/components/co-document-editor/zoom.js +45 -0
  281. package/dist/collection/components/co-drawer/co-drawer.css +5 -0
  282. package/dist/collection/components/co-drawer/co-drawer.js +13 -0
  283. package/dist/collection/components/co-drive-card/co-drive-card.js +14 -1
  284. package/dist/collection/components/co-drop-zone/co-drop-zone.js +7 -2
  285. package/dist/collection/components/co-emoji-picker/co-emoji-picker.css +4 -0
  286. package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +11 -2
  287. package/dist/collection/components/co-empty-state/co-empty-state.js +4 -2
  288. package/dist/collection/components/co-event-calendar/co-event-calendar.js +16 -4
  289. package/dist/collection/components/co-event-popover/co-event-popover.js +18 -6
  290. package/dist/collection/components/co-fab/co-fab.css +8 -0
  291. package/dist/collection/components/co-fab/co-fab.js +17 -8
  292. package/dist/collection/components/co-file-field/co-file-field.js +16 -11
  293. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +9 -2
  294. package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +143 -0
  295. package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +412 -0
  296. package/dist/collection/components/co-helper-text/co-helper-text.js +4 -2
  297. package/dist/collection/components/co-icon/co-icon.js +6 -2
  298. package/dist/collection/components/co-icon-button/co-icon-button.css +104 -19
  299. package/dist/collection/components/co-icon-button/co-icon-button.js +125 -10
  300. package/dist/collection/components/co-input/co-input.css +125 -0
  301. package/dist/collection/components/co-input/co-input.js +48 -11
  302. package/dist/collection/components/co-json-field/co-json-field.js +19 -12
  303. package/dist/collection/components/co-kbd/co-kbd.css +99 -0
  304. package/dist/collection/components/co-kbd/co-kbd.js +298 -0
  305. package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
  306. package/dist/collection/components/co-list-footer/co-list-footer.js +4 -1
  307. package/dist/collection/components/co-list-item/co-list-item.js +7 -4
  308. package/dist/collection/components/co-loader/co-loader.js +5 -0
  309. package/dist/collection/components/co-media-thumb/co-media-thumb.js +9 -2
  310. package/dist/collection/components/co-menu/co-menu.css +70 -0
  311. package/dist/collection/components/co-menu/co-menu.js +146 -6
  312. package/dist/collection/components/co-menu-divider/co-menu-divider.css +21 -0
  313. package/dist/collection/components/co-menu-divider/co-menu-divider.js +2 -1
  314. package/dist/collection/components/co-menu-item/co-menu-item.css +56 -6
  315. package/dist/collection/components/co-menu-item/co-menu-item.js +60 -4
  316. package/dist/collection/components/co-modal/co-modal.css +218 -1
  317. package/dist/collection/components/co-modal/co-modal.js +354 -12
  318. package/dist/collection/components/co-navbar/co-navbar.css +7 -0
  319. package/dist/collection/components/co-navbar/co-navbar.js +4 -2
  320. package/dist/collection/components/co-number-field/co-number-field.js +29 -15
  321. package/dist/collection/components/co-option-list/co-option-list.css +102 -21
  322. package/dist/collection/components/co-option-list/co-option-list.js +37 -16
  323. package/dist/collection/components/co-overlay/co-overlay.css +4 -0
  324. package/dist/collection/components/co-overlay/co-overlay.js +17 -3
  325. package/dist/collection/components/co-page-header/co-page-header.js +4 -1
  326. package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
  327. package/dist/collection/components/co-popover/co-popover.css +20 -2
  328. package/dist/collection/components/co-popover/co-popover.js +148 -10
  329. package/dist/collection/components/co-progress-bar/co-progress-bar.js +5 -2
  330. package/dist/collection/components/co-progress-circle/co-progress-circle.js +5 -2
  331. package/dist/collection/components/co-provider-logo/co-provider-logo.js +3 -0
  332. package/dist/collection/components/co-radio/co-radio.js +11 -3
  333. package/dist/collection/components/co-radio-group/co-radio-group.js +9 -4
  334. package/dist/collection/components/co-rating/co-rating.js +25 -13
  335. package/dist/collection/components/co-ref-field/co-ref-field.css +14 -0
  336. package/dist/collection/components/co-ref-field/co-ref-field.js +55 -27
  337. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +66 -111
  338. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
  339. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +127 -19
  340. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +16 -1
  341. package/dist/collection/components/co-row/co-row.js +5 -2
  342. package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +9 -3
  343. package/dist/collection/components/co-select/co-select.css +207 -11
  344. package/dist/collection/components/co-select/co-select.js +198 -48
  345. package/dist/collection/components/co-select/virtualRows.js +57 -0
  346. package/dist/collection/components/co-separator/co-separator.js +8 -1
  347. package/dist/collection/components/co-sidebar/co-sidebar.js +10 -2
  348. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +15 -0
  349. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +20 -4
  350. package/dist/collection/components/co-skeleton/co-skeleton.js +4 -1
  351. package/dist/collection/components/co-slider/co-slider.css +155 -5
  352. package/dist/collection/components/co-slider/co-slider.js +263 -32
  353. package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
  354. package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +293 -0
  355. package/dist/collection/components/co-switch/co-switch.css +4 -0
  356. package/dist/collection/components/co-switch/co-switch.js +12 -3
  357. package/dist/collection/components/co-tab/co-tab.css +60 -0
  358. package/dist/collection/components/co-tab/co-tab.js +44 -6
  359. package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
  360. package/dist/collection/components/co-tab-group/co-tab-group.js +133 -2
  361. package/dist/collection/components/co-tab-group/revealTab.js +26 -0
  362. package/dist/collection/components/co-tags-field/co-tags-field.js +21 -14
  363. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  364. package/dist/collection/components/co-tile/co-tile.css +63 -0
  365. package/dist/collection/components/co-tile/co-tile.js +167 -0
  366. package/dist/collection/components/co-time-field/co-time-field.js +9 -4
  367. package/dist/collection/components/co-toast/co-toast.css +11 -0
  368. package/dist/collection/components/co-toast/co-toast.js +13 -4
  369. package/dist/collection/components/co-toggle-button/co-toggle-button.css +106 -0
  370. package/dist/collection/components/co-toggle-button/co-toggle-button.js +91 -15
  371. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
  372. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +41 -11
  373. package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
  374. package/dist/collection/components/co-tooltip/co-tooltip.js +61 -3
  375. package/dist/collection/components/co-transfer-list/co-transfer-list.js +19 -10
  376. package/dist/collection/components/co-tree-item/co-tree-item.css +235 -0
  377. package/dist/collection/components/co-tree-item/co-tree-item.js +355 -0
  378. package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
  379. package/dist/collection/components/co-video/co-video.css +11 -0
  380. package/dist/collection/components/co-video/co-video.js +41 -22
  381. package/dist/collection/utils/color.js +9 -5
  382. package/dist/collection/utils/dragMove.js +95 -0
  383. package/dist/collection/utils/gradientBarI18n.js +24 -0
  384. package/dist/collection/utils/gradientStops.js +142 -0
  385. package/dist/collection/utils/hsv.js +114 -0
  386. package/dist/collection/utils/kbdI18n.js +29 -0
  387. package/dist/collection/utils/positioning.js +44 -18
  388. package/dist/collection/utils/rich-text-host.js +109 -0
  389. package/dist/collection/utils/richTextI18n.js +45 -0
  390. package/dist/collection/utils/submenu.js +23 -3
  391. package/dist/collection/utils/swatchGridI18n.js +14 -0
  392. package/dist/collection/utils/test/fake-block-layout.js +41 -0
  393. package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
  394. package/dist/collection/utils/test/shared-contract-css.js +9 -0
  395. package/dist/components/co-accordion.js +1 -1
  396. package/dist/components/co-action-bar.js +1 -1
  397. package/dist/components/co-app-shell.js +1 -1
  398. package/dist/components/co-audio-player.js +1 -1
  399. package/dist/components/co-autocomplete.js +1 -1
  400. package/dist/components/co-avatar-group.js +1 -1
  401. package/dist/components/co-avatar.js +1 -1
  402. package/dist/components/co-badge.js +1 -1
  403. package/dist/components/co-bottom-sheet.js +1 -1
  404. package/dist/components/co-breadcrumb-item.js +1 -1
  405. package/dist/components/co-breadcrumb.js +1 -1
  406. package/dist/components/co-button-group.js +1 -1
  407. package/dist/components/co-button.js +1 -1
  408. package/dist/components/co-calendar-month.js +1 -1
  409. package/dist/components/co-calendar-timegrid.js +1 -1
  410. package/dist/components/co-calendar.js +1 -1
  411. package/dist/components/co-card.js +1 -1
  412. package/dist/components/co-carousel-item.js +1 -1
  413. package/dist/components/co-carousel.js +1 -1
  414. package/dist/components/co-checkbox-group.js +1 -1
  415. package/dist/components/co-checkbox.js +1 -1
  416. package/dist/components/co-chip.js +1 -1
  417. package/dist/components/co-color-area.d.ts +11 -0
  418. package/dist/components/co-color-area.js +1 -0
  419. package/dist/components/co-color-picker.js +1 -1
  420. package/dist/components/co-color-slider.d.ts +11 -0
  421. package/dist/components/co-color-slider.js +1 -0
  422. package/dist/components/co-column-picker.js +1 -1
  423. package/dist/components/co-combobox.js +1 -1
  424. package/dist/components/co-command-search.js +1 -1
  425. package/dist/components/co-data-table-pagination.js +1 -1
  426. package/dist/components/co-data-table.js +1 -1
  427. package/dist/components/co-date-field.js +1 -1
  428. package/dist/components/co-date-picker.js +1 -1
  429. package/dist/components/co-date-range-picker.js +1 -1
  430. package/dist/components/co-date-range.js +1 -1
  431. package/dist/components/co-date-time-picker.js +1 -1
  432. package/dist/components/co-document-editor.d.ts +11 -0
  433. package/dist/components/co-document-editor.js +1 -0
  434. package/dist/components/co-drawer.js +1 -1
  435. package/dist/components/co-drive-card.js +1 -1
  436. package/dist/components/co-drop-zone.js +1 -1
  437. package/dist/components/co-emoji-picker.js +1 -1
  438. package/dist/components/co-empty-state.js +1 -1
  439. package/dist/components/co-event-calendar.js +1 -1
  440. package/dist/components/co-event-popover.js +1 -1
  441. package/dist/components/co-fab.js +1 -1
  442. package/dist/components/co-file-field.js +1 -1
  443. package/dist/components/co-file-type-tile.js +1 -1
  444. package/dist/components/co-gradient-bar.d.ts +11 -0
  445. package/dist/components/co-gradient-bar.js +1 -0
  446. package/dist/components/co-helper-text.js +1 -1
  447. package/dist/components/co-icon-button.js +1 -1
  448. package/dist/components/co-icon.js +1 -1
  449. package/dist/components/co-input.js +1 -1
  450. package/dist/components/co-json-field.js +1 -1
  451. package/dist/components/co-kbd.d.ts +11 -0
  452. package/dist/components/co-kbd.js +1 -0
  453. package/dist/components/co-lightbox.js +1 -1
  454. package/dist/components/co-list-footer.js +1 -1
  455. package/dist/components/co-list-item.js +1 -1
  456. package/dist/components/co-media-thumb.js +1 -1
  457. package/dist/components/co-menu-divider.js +1 -1
  458. package/dist/components/co-menu-item.js +1 -1
  459. package/dist/components/co-menu.js +1 -1
  460. package/dist/components/co-modal.js +1 -1
  461. package/dist/components/co-navbar.js +1 -1
  462. package/dist/components/co-number-field.js +1 -1
  463. package/dist/components/co-option-list.js +1 -1
  464. package/dist/components/co-overlay.js +1 -1
  465. package/dist/components/co-page-header.js +1 -1
  466. package/dist/components/co-phone-field.js +1 -1
  467. package/dist/components/co-popover.js +1 -1
  468. package/dist/components/co-progress-bar.js +1 -1
  469. package/dist/components/co-progress-circle.js +1 -1
  470. package/dist/components/co-radio-group.js +1 -1
  471. package/dist/components/co-radio.js +1 -1
  472. package/dist/components/co-rating.js +1 -1
  473. package/dist/components/co-ref-field.js +1 -1
  474. package/dist/components/co-rich-text-editor.js +1 -1
  475. package/dist/components/co-rich-text-toolbar.js +1 -1
  476. package/dist/components/co-rich-text-viewer.js +1 -1
  477. package/dist/components/co-row.js +1 -1
  478. package/dist/components/co-segmented-bar.js +1 -1
  479. package/dist/components/co-select.js +1 -1
  480. package/dist/components/co-separator.js +1 -1
  481. package/dist/components/co-sidebar-nav.js +1 -1
  482. package/dist/components/co-sidebar.js +1 -1
  483. package/dist/components/co-skeleton.js +1 -1
  484. package/dist/components/co-slider.js +1 -1
  485. package/dist/components/co-swatch-grid.d.ts +11 -0
  486. package/dist/components/co-swatch-grid.js +1 -0
  487. package/dist/components/co-switch.js +1 -1
  488. package/dist/components/co-tab-group.js +1 -1
  489. package/dist/components/co-tab.js +1 -1
  490. package/dist/components/co-tags-field.js +1 -1
  491. package/dist/components/co-textarea.js +1 -1
  492. package/dist/components/co-tile.d.ts +11 -0
  493. package/dist/components/co-tile.js +1 -0
  494. package/dist/components/co-time-field.js +1 -1
  495. package/dist/components/co-toast.js +1 -1
  496. package/dist/components/co-toggle-button-group.js +1 -1
  497. package/dist/components/co-toggle-button.js +1 -1
  498. package/dist/components/co-tooltip.js +1 -1
  499. package/dist/components/co-transfer-list.js +1 -1
  500. package/dist/components/co-tree-item.d.ts +11 -0
  501. package/dist/components/co-tree-item.js +1 -0
  502. package/dist/components/co-video.js +1 -1
  503. package/dist/components/index.js +1 -1
  504. package/dist/components/p-8XzG8pzY.js +1 -0
  505. package/dist/components/p-9VoFSbIH.js +1 -0
  506. package/dist/components/p-B1JT7us1.js +1 -0
  507. package/dist/components/{p-Dc_Kbari.js → p-B3Egz082.js} +1 -1
  508. package/dist/components/p-B9wdMd_0.js +1 -0
  509. package/dist/components/p-BRZci8B3.js +1 -0
  510. package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
  511. package/dist/components/{p-B56LX2SH.js → p-BVdCvEza.js} +1 -1
  512. package/dist/components/p-BdmzslA5.js +1 -0
  513. package/dist/components/p-BmdKHBZP.js +1 -0
  514. package/dist/components/p-BtliEQAT.js +1 -0
  515. package/dist/components/{p-CT2enQ6h.js → p-Bw_b_czs.js} +1 -1
  516. package/dist/components/{p-NNxjElcX.js → p-C4sZjIDj.js} +1 -1
  517. package/dist/components/{p-Nt4JJxbL.js → p-C6WHpL5X.js} +1 -1
  518. package/dist/components/p-COJdaKBU.js +1 -0
  519. package/dist/components/p-COozgrEk.js +1 -0
  520. package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
  521. package/dist/components/{p-uxdXViMV.js → p-CiYPJW0B.js} +1 -1
  522. package/dist/components/p-Cnfd6Zze.js +1 -0
  523. package/dist/components/{p-BhCVadcA.js → p-CxWo3qDo.js} +1 -1
  524. package/dist/components/p-D4XP17VP.js +1 -0
  525. package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
  526. package/dist/components/p-DU-KOQ8L.js +1 -0
  527. package/dist/components/p-DXLeDZvr.js +1 -0
  528. package/dist/components/{p-DvR45CLa.js → p-Dn2wblrA.js} +1 -1
  529. package/dist/components/p-Dnz99Ox_.js +1 -0
  530. package/dist/components/p-DsuFNmTI.js +1 -0
  531. package/dist/components/{p-Du_CgT5E.js → p-Du8EpQb-.js} +1 -1
  532. package/dist/components/{p-DFlJMEJ-.js → p-DymSqdlK.js} +1 -1
  533. package/dist/components/p-Hi57w2_2.js +1 -0
  534. package/dist/components/{p-DNJAIVfI.js → p-KK2vAKs-.js} +1 -1
  535. package/dist/components/p-RVQJEYxa.js +1 -0
  536. package/dist/components/p-TGRbLkLz.js +1 -0
  537. package/dist/components/p-VcrjNCew.js +1 -0
  538. package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
  539. package/dist/components/p-nrwDl_gx.js +1 -0
  540. package/dist/components/{p-P4HlMBlL.js → p-zJ3pjFzW.js} +1 -1
  541. package/dist/esm/co-accordion.entry.js +3 -3
  542. package/dist/esm/co-action-bar.entry.js +3 -3
  543. package/dist/esm/co-app-shell.entry.js +3 -3
  544. package/dist/esm/co-audio-player.entry.js +4 -4
  545. package/dist/esm/co-autocomplete.entry.js +12 -5
  546. package/dist/esm/co-avatar-group.entry.js +3 -3
  547. package/dist/esm/co-avatar.entry.js +7 -4
  548. package/dist/esm/co-badge.entry.js +2 -2
  549. package/dist/esm/co-bottom-sheet.entry.js +5 -5
  550. package/dist/esm/co-breadcrumb-item.entry.js +3 -3
  551. package/dist/esm/co-breadcrumb.entry.js +2 -2
  552. package/dist/esm/co-button-group.entry.js +4 -3
  553. package/dist/esm/co-button.entry.js +9 -7
  554. package/dist/esm/co-calendar-month_2.entry.js +16 -4
  555. package/dist/esm/co-calendar_3.entry.js +76 -27
  556. package/dist/esm/co-card.entry.js +3 -3
  557. package/dist/esm/co-carousel-item.entry.js +2 -2
  558. package/dist/esm/co-carousel.entry.js +6 -3
  559. package/dist/esm/co-checkbox-group.entry.js +4 -4
  560. package/dist/esm/co-checkbox.entry.js +13 -5
  561. package/dist/esm/co-chip_2.entry.js +20 -7
  562. package/dist/esm/co-color-area.entry.js +167 -0
  563. package/dist/esm/co-color-picker.entry.js +5 -5
  564. package/dist/esm/co-color-slider.entry.js +187 -0
  565. package/dist/esm/co-column-picker.entry.js +23 -3
  566. package/dist/esm/co-combobox.entry.js +5 -5
  567. package/dist/esm/co-command-search.entry.js +5 -5
  568. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  569. package/dist/esm/co-data-table.entry.js +3 -3
  570. package/dist/esm/co-date-picker.entry.js +10 -2
  571. package/dist/esm/co-date-range-picker.entry.js +11 -2
  572. package/dist/esm/co-date-range.entry.js +8 -2
  573. package/dist/esm/co-date-time-picker.entry.js +11 -4
  574. package/dist/esm/co-document-editor.entry.js +1165 -0
  575. package/dist/esm/co-drive-card.entry.js +2 -2
  576. package/dist/esm/co-drop-zone.entry.js +2 -2
  577. package/dist/esm/co-emoji-picker.entry.js +3 -3
  578. package/dist/esm/co-empty-state.entry.js +3 -3
  579. package/dist/esm/co-event-calendar.entry.js +5 -3
  580. package/dist/esm/co-event-popover.entry.js +7 -3
  581. package/dist/esm/co-fab.entry.js +7 -3
  582. package/dist/esm/co-file-field.entry.js +12 -8
  583. package/dist/esm/co-file-type-tile.entry.js +3 -3
  584. package/dist/esm/co-gradient-bar.entry.js +218 -0
  585. package/dist/esm/co-helper-text.entry.js +3 -3
  586. package/dist/esm/co-icon-button.entry.js +48 -9
  587. package/dist/esm/co-icon.entry.js +3 -3
  588. package/dist/esm/co-input.entry.js +14 -8
  589. package/dist/esm/co-json-field.entry.js +10 -5
  590. package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
  591. package/dist/esm/co-lightbox.entry.js +5 -5
  592. package/dist/esm/co-list-footer.entry.js +2 -2
  593. package/dist/esm/co-list-item.entry.js +5 -5
  594. package/dist/esm/co-loader.entry.js +1 -1
  595. package/dist/esm/co-media-thumb.entry.js +3 -3
  596. package/dist/esm/co-menu-divider.entry.js +3 -3
  597. package/dist/esm/co-menu-item.entry.js +39 -41
  598. package/dist/esm/co-menu.entry.js +81 -5
  599. package/dist/esm/co-modal.entry.js +350 -7
  600. package/dist/esm/co-navbar.entry.js +3 -3
  601. package/dist/esm/co-number-field.entry.js +11 -5
  602. package/dist/esm/co-overlay.entry.js +8 -4
  603. package/dist/esm/co-page-header.entry.js +2 -2
  604. package/dist/esm/co-phone-field.entry.js +3 -3
  605. package/dist/esm/co-popover.entry.js +69 -6
  606. package/dist/esm/co-progress-bar.entry.js +3 -3
  607. package/dist/esm/co-progress-circle.entry.js +3 -3
  608. package/dist/esm/co-provider-logo_2.entry.js +2 -2
  609. package/dist/esm/co-radio-group.entry.js +4 -4
  610. package/dist/esm/co-radio.entry.js +4 -4
  611. package/dist/esm/co-rating.entry.js +11 -4
  612. package/dist/esm/co-ref-field.entry.js +14 -5
  613. package/dist/esm/co-rich-text-editor.entry.js +40 -92
  614. package/dist/esm/co-rich-text-toolbar.entry.js +80 -20
  615. package/dist/esm/co-rich-text-viewer.entry.js +9 -2
  616. package/dist/esm/co-row.entry.js +3 -3
  617. package/dist/esm/co-segmented-bar.entry.js +3 -3
  618. package/dist/esm/co-select.entry.js +171 -29
  619. package/dist/esm/co-separator.entry.js +2 -2
  620. package/dist/esm/co-sidebar-nav.entry.js +20 -5
  621. package/dist/esm/co-sidebar.entry.js +3 -3
  622. package/dist/esm/co-slider.entry.js +209 -23
  623. package/dist/esm/co-swatch-grid.entry.js +119 -0
  624. package/dist/esm/co-switch.entry.js +5 -5
  625. package/dist/esm/co-tab-group.entry.js +113 -4
  626. package/dist/esm/co-tab.entry.js +15 -5
  627. package/dist/esm/co-tags-field.entry.js +13 -8
  628. package/dist/esm/co-textarea.entry.js +6 -6
  629. package/dist/esm/co-tile.entry.js +59 -0
  630. package/dist/esm/co-time-field.entry.js +5 -2
  631. package/dist/esm/co-toast.entry.js +3 -3
  632. package/dist/esm/co-toggle-button-group.entry.js +29 -5
  633. package/dist/esm/co-toggle-button.entry.js +70 -6
  634. package/dist/esm/co-transfer-list.entry.js +7 -3
  635. package/dist/esm/co-tree-item.entry.js +108 -0
  636. package/dist/esm/co-video.entry.js +11 -3
  637. package/dist/esm/cobalt.js +3 -3
  638. package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
  639. package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
  640. package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
  641. package/dist/esm/hsv-COJdaKBU.js +90 -0
  642. package/dist/esm/index-Cpo8HTwr.js +142 -0
  643. package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
  644. package/dist/esm/loader.js +3 -3
  645. package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
  646. package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
  647. package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
  648. package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
  649. package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
  650. package/dist/esm/submenu-DU-KOQ8L.js +57 -0
  651. package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
  652. package/dist/types/components/co-accordion/co-accordion.d.ts +10 -0
  653. package/dist/types/components/co-action-bar/co-action-bar.d.ts +1 -0
  654. package/dist/types/components/co-app-shell/co-app-shell.d.ts +11 -0
  655. package/dist/types/components/co-audio-player/co-audio-player.d.ts +16 -0
  656. package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +21 -0
  657. package/dist/types/components/co-avatar/co-avatar.d.ts +11 -2
  658. package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +5 -0
  659. package/dist/types/components/co-badge/co-badge.d.ts +7 -0
  660. package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +9 -0
  661. package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +4 -0
  662. package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +6 -0
  663. package/dist/types/components/co-button/co-button.d.ts +12 -4
  664. package/dist/types/components/co-button-group/co-button-group.d.ts +7 -0
  665. package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
  666. package/dist/types/components/co-calendar/co-calendar.d.ts +18 -0
  667. package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +23 -0
  668. package/dist/types/components/co-card/co-card.d.ts +9 -0
  669. package/dist/types/components/co-carousel/co-carousel.d.ts +12 -0
  670. package/dist/types/components/co-checkbox/co-checkbox.d.ts +15 -0
  671. package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +5 -0
  672. package/dist/types/components/co-chip/co-chip.d.ts +13 -0
  673. package/dist/types/components/co-color-area/co-color-area.d.ts +65 -0
  674. package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
  675. package/dist/types/components/co-color-slider/co-color-slider.d.ts +62 -0
  676. package/dist/types/components/co-column-picker/co-column-picker.d.ts +32 -0
  677. package/dist/types/components/co-combobox/co-combobox.d.ts +14 -0
  678. package/dist/types/components/co-command-search/co-command-search.d.ts +15 -0
  679. package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
  680. package/dist/types/components/co-data-table-pagination/co-data-table-pagination.d.ts +12 -0
  681. package/dist/types/components/co-date-field/co-date-field.d.ts +11 -0
  682. package/dist/types/components/co-date-picker/co-date-picker.d.ts +30 -0
  683. package/dist/types/components/co-date-range/co-date-range.d.ts +12 -0
  684. package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +33 -0
  685. package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +22 -1
  686. package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
  687. package/dist/types/components/co-document-editor/co-document-editor.d.ts +284 -0
  688. package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
  689. package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
  690. package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
  691. package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
  692. package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
  693. package/dist/types/components/co-drawer/co-drawer.d.ts +13 -0
  694. package/dist/types/components/co-drive-card/co-drive-card.d.ts +13 -0
  695. package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +6 -1
  696. package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +9 -0
  697. package/dist/types/components/co-empty-state/co-empty-state.d.ts +2 -0
  698. package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +12 -16
  699. package/dist/types/components/co-event-popover/co-event-popover.d.ts +13 -0
  700. package/dist/types/components/co-fab/co-fab.d.ts +11 -0
  701. package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
  702. package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +7 -0
  703. package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +77 -0
  704. package/dist/types/components/co-helper-text/co-helper-text.d.ts +2 -0
  705. package/dist/types/components/co-icon/co-icon.d.ts +4 -0
  706. package/dist/types/components/co-icon-button/co-icon-button.d.ts +39 -2
  707. package/dist/types/components/co-input/co-input.d.ts +25 -5
  708. package/dist/types/components/co-json-field/co-json-field.d.ts +11 -0
  709. package/dist/types/components/co-kbd/co-kbd.d.ts +50 -0
  710. package/dist/types/components/co-list-footer/co-list-footer.d.ts +3 -0
  711. package/dist/types/components/co-list-item/co-list-item.d.ts +3 -0
  712. package/dist/types/components/co-loader/co-loader.d.ts +5 -0
  713. package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +7 -0
  714. package/dist/types/components/co-menu/co-menu.d.ts +42 -1
  715. package/dist/types/components/co-menu-divider/co-menu-divider.d.ts +1 -0
  716. package/dist/types/components/co-menu-item/co-menu-item.d.ts +19 -0
  717. package/dist/types/components/co-modal/co-modal.d.ts +126 -5
  718. package/dist/types/components/co-navbar/co-navbar.d.ts +2 -0
  719. package/dist/types/components/co-number-field/co-number-field.d.ts +20 -0
  720. package/dist/types/components/co-option-list/co-option-list.d.ts +29 -1
  721. package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
  722. package/dist/types/components/co-overlay/co-overlay.d.ts +10 -0
  723. package/dist/types/components/co-page-header/co-page-header.d.ts +3 -0
  724. package/dist/types/components/co-popover/co-popover.d.ts +51 -0
  725. package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +3 -0
  726. package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +3 -0
  727. package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +3 -0
  728. package/dist/types/components/co-radio/co-radio.d.ts +8 -0
  729. package/dist/types/components/co-radio-group/co-radio-group.d.ts +5 -0
  730. package/dist/types/components/co-rating/co-rating.d.ts +15 -0
  731. package/dist/types/components/co-ref-field/co-ref-field.d.ts +42 -0
  732. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +31 -5
  733. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +20 -2
  734. package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +8 -0
  735. package/dist/types/components/co-row/co-row.d.ts +3 -0
  736. package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +6 -0
  737. package/dist/types/components/co-select/co-select.d.ts +73 -5
  738. package/dist/types/components/co-select/virtualRows.d.ts +44 -0
  739. package/dist/types/components/co-separator/co-separator.d.ts +7 -0
  740. package/dist/types/components/co-sidebar/co-sidebar.d.ts +8 -0
  741. package/dist/types/components/co-sidebar-nav/co-sidebar-nav.d.ts +1 -0
  742. package/dist/types/components/co-skeleton/co-skeleton.d.ts +3 -0
  743. package/dist/types/components/co-slider/co-slider.d.ts +160 -1
  744. package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +38 -0
  745. package/dist/types/components/co-switch/co-switch.d.ts +9 -0
  746. package/dist/types/components/co-tab/co-tab.d.ts +20 -2
  747. package/dist/types/components/co-tab-group/co-tab-group.d.ts +46 -0
  748. package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
  749. package/dist/types/components/co-tags-field/co-tags-field.d.ts +11 -0
  750. package/dist/types/components/co-tile/co-tile.d.ts +45 -0
  751. package/dist/types/components/co-time-field/co-time-field.d.ts +5 -0
  752. package/dist/types/components/co-toast/co-toast.d.ts +9 -0
  753. package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +45 -2
  754. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +30 -2
  755. package/dist/types/components/co-tooltip/co-tooltip.d.ts +22 -0
  756. package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +12 -0
  757. package/dist/types/components/co-tree-item/co-tree-item.d.ts +75 -0
  758. package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
  759. package/dist/types/components/co-video/co-video.d.ts +31 -0
  760. package/dist/types/components.d.ts +3905 -85
  761. package/dist/types/utils/color.d.ts +9 -1
  762. package/dist/types/utils/dragMove.d.ts +63 -0
  763. package/dist/types/utils/gradientBarI18n.d.ts +8 -0
  764. package/dist/types/utils/gradientStops.d.ts +63 -0
  765. package/dist/types/utils/hsv.d.ts +44 -0
  766. package/dist/types/utils/kbdI18n.d.ts +25 -0
  767. package/dist/types/utils/positioning.d.ts +24 -0
  768. package/dist/types/utils/rich-text-host.d.ts +41 -0
  769. package/dist/types/utils/richTextI18n.d.ts +15 -0
  770. package/dist/types/utils/submenu.d.ts +16 -2
  771. package/dist/types/utils/swatchGridI18n.d.ts +6 -0
  772. package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
  773. package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
  774. package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
  775. package/package.json +5 -5
  776. package/dist/cobalt/p-0678c797.entry.js +0 -1
  777. package/dist/cobalt/p-1d3a79af.entry.js +0 -1
  778. package/dist/cobalt/p-216a63ee.entry.js +0 -1
  779. package/dist/cobalt/p-3d31c575.entry.js +0 -1
  780. package/dist/cobalt/p-416795f5.entry.js +0 -1
  781. package/dist/cobalt/p-56551580.entry.js +0 -1
  782. package/dist/cobalt/p-58137c9e.entry.js +0 -1
  783. package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
  784. package/dist/cobalt/p-5c756787.entry.js +0 -1
  785. package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
  786. package/dist/cobalt/p-6a4f3179.entry.js +0 -1
  787. package/dist/cobalt/p-71cbc53c.entry.js +0 -1
  788. package/dist/cobalt/p-72e52af7.entry.js +0 -1
  789. package/dist/cobalt/p-8530ad16.entry.js +0 -1
  790. package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
  791. package/dist/cobalt/p-8e05b979.entry.js +0 -1
  792. package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
  793. package/dist/cobalt/p-8f2199ff.entry.js +0 -1
  794. package/dist/cobalt/p-9246e09c.entry.js +0 -1
  795. package/dist/cobalt/p-99a655f6.entry.js +0 -1
  796. package/dist/cobalt/p-BYKAgwq3.js +0 -1
  797. package/dist/cobalt/p-CJW9H3Gi.js +0 -1
  798. package/dist/cobalt/p-DFHRS9cJ.js +0 -1
  799. package/dist/cobalt/p-DH5lfRNj.js +0 -2
  800. package/dist/cobalt/p-a1b422ca.entry.js +0 -1
  801. package/dist/cobalt/p-ade07307.entry.js +0 -1
  802. package/dist/cobalt/p-b0762fd8.entry.js +0 -1
  803. package/dist/cobalt/p-b698188c.entry.js +0 -1
  804. package/dist/cobalt/p-bde32f8b.entry.js +0 -1
  805. package/dist/cobalt/p-d375014b.entry.js +0 -1
  806. package/dist/cobalt/p-db805569.entry.js +0 -1
  807. package/dist/cobalt/p-e3aae282.entry.js +0 -1
  808. package/dist/cobalt/p-e49a564c.entry.js +0 -1
  809. package/dist/cobalt/p-ef301976.entry.js +0 -1
  810. package/dist/cobalt/p-fMqVDypp.js +0 -1
  811. package/dist/components/p-2EOI1nrz.js +0 -1
  812. package/dist/components/p-7TncUlLN.js +0 -1
  813. package/dist/components/p-B4NCaKrR.js +0 -1
  814. package/dist/components/p-BGDqldEg.js +0 -1
  815. package/dist/components/p-BJh68Jqe.js +0 -1
  816. package/dist/components/p-BrAFTkAn.js +0 -1
  817. package/dist/components/p-Bsh0JMGf.js +0 -1
  818. package/dist/components/p-CJW9H3Gi.js +0 -1
  819. package/dist/components/p-CWCYYQrF.js +0 -1
  820. package/dist/components/p-D9T7zKeL.js +0 -1
  821. package/dist/components/p-DFHRS9cJ.js +0 -1
  822. package/dist/components/p-DTPYZwaZ.js +0 -1
  823. package/dist/components/p-Dcg4krSX.js +0 -1
  824. package/dist/components/p-Dh8ffSjK.js +0 -1
@@ -1,8 +1,10 @@
1
- import { r as registerInstance, c as createEvent, h, a as getElement } from './index-DH5lfRNj.js';
2
- import { R as RichText } from './index-BBIYyvq-.js';
3
- import { g as getRichTextStrings } from './richTextI18n-BYKAgwq3.js';
1
+ import { r as registerInstance, c as createEvent, h, a as getElement } from './index-DJkaRtbb.js';
2
+ import { R as RichText } from './index-Cpo8HTwr.js';
3
+ import { g as getRichTextStrings } from './richTextI18n-xnrKkNWQ.js';
4
+ import { E as EchoGuard, p as parseEditorValue, a as applyExternalValue, b as parseFeatures, c as buildOutput, s as syncToolbarEditor, d as syncImageLayouts } from './rich-text-host-BmdKHBZP.js';
5
+ import './pagination-D9OfZUnY.js';
4
6
  import './purify.es-B2QLgWrz.js';
5
- import './toolbar-config-BAYo-RBt.js';
7
+ import './toolbar-config-CRxTFT_z.js';
6
8
 
7
9
  const coRichTextEditorCss = () => `co-rich-text-editor{display:block;font-family:var(--co-font-family-primary);font-size:var(--co-font-size-14);letter-spacing:var(--co-font-letter-spacing-body)}.co-rich-text-editor{display:flex;flex-direction:column;gap:var(--co-spacing-sm2, 6px)}.co-rich-text-editor__labels{display:flex;align-items:center;justify-content:space-between;padding:0 var(--co-spacing-xs);gap:var(--co-spacing-sm2, 6px)}.co-rich-text-editor__label,.co-rich-text-editor__secondary-label{color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;line-height:1}.co-rich-text-editor__frame{display:flex;flex-direction:column;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-field);border-radius:var(--co-border-radius-xs);transition:border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);min-height:0;flex:1;position:relative;overflow:visible}.co-rich-text-editor__box{display:flex;flex-direction:column;min-height:0;flex:1;position:relative;overflow-y:auto;overflow-x:hidden}.co-rich-text-editor--flat .co-rich-text-editor__frame{background:transparent;border-color:transparent}.co-rich-text-editor--focused .co-rich-text-editor__frame{border-color:var(--co-semantic-border-focus, var(--co-color-base-negro, #1a1a1a));box-shadow:0 0 0 3px var(--co-semantic-border-focus-ring, rgba(37, 99, 235, 0.15))}.co-rich-text-editor--error .co-rich-text-editor__frame{border-color:var(--co-color-status-error)}.co-rich-text-editor--success .co-rich-text-editor__frame{border-color:var(--co-color-status-success)}.co-rich-text-editor--disabled .co-rich-text-editor__frame,.co-rich-text-editor--readonly .co-rich-text-editor__frame{opacity:0.7;cursor:not-allowed}.co-rich-text-editor--loading .co-rte-content{min-height:96px;background:linear-gradient(90deg, var(--co-semantic-surface-secondary) 0%, var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.04)) 50%, var(--co-semantic-surface-secondary) 100%);background-size:200% 100%;animation:co-rte-skeleton 1.2s ease-in-out infinite}@keyframes co-rte-skeleton{0%{background-position:200% 0}100%{background-position:-200% 0}}.co-rich-text-editor__toolbar{position:relative;flex-shrink:0;z-index:60;border-top-left-radius:calc(var(--co-border-radius-xs) - 1px);border-top-right-radius:calc(var(--co-border-radius-xs) - 1px)}.co-rich-text-editor__toolbar-row{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-md);flex-shrink:0;min-width:0;border-top:1px solid var(--co-semantic-border-subtle)}.co-rich-text-editor--toolbar-bottom .co-rich-text-editor__toolbar{border-top-left-radius:0;border-top-right-radius:0;min-width:0}.co-rte-content{min-height:96px;color:var(--co-semantic-text-default);flex:1 0 auto;display:flex;flex-direction:column}.co-rte-content .ProseMirror{outline:none;flex:1 0 auto;line-height:1.5;padding:var(--co-spacing-md);box-sizing:border-box}.co-rte-content .ProseMirror p{margin:0 0 var(--co-spacing-sm) 0}.co-rte-content .ProseMirror p:last-child{margin-bottom:0}.co-rte-content .ProseMirror>p{margin-bottom:var(--co-spacing-sm) !important}.co-rte-content .ProseMirror>p:last-child{margin-bottom:0 !important}.co-rte-content .ProseMirror [style*="text-align: justify"]{text-align-last:left}.co-rte-content .ProseMirror [style*="text-align: center"]{text-align:center}.co-rte-content .ProseMirror [style*="text-align: right"]{text-align:right}.co-rte-content .ProseMirror h1,.co-rte-content .ProseMirror h2,.co-rte-content .ProseMirror h3,.co-rte-content .ProseMirror h4{margin:var(--co-spacing-md) 0 var(--co-spacing-sm);font-weight:600;line-height:1.3}.co-rte-content .ProseMirror h1{font-size:var(--co-font-size-28, 28px)}.co-rte-content .ProseMirror h2{font-size:var(--co-font-size-20, 20px)}.co-rte-content .ProseMirror h3{font-size:var(--co-font-size-16, 16px)}.co-rte-content .ProseMirror ul,.co-rte-content .ProseMirror ol{padding-left:var(--co-spacing-xl);margin:0 0 var(--co-spacing-sm) 0}.co-rte-content .ProseMirror ul[data-type="taskList"]{list-style:none;padding-left:0;margin:0 0 var(--co-spacing-sm) 0}.co-rte-content .ProseMirror ul[data-type="taskList"] li{display:flex;align-items:flex-start;gap:var(--co-spacing-sm, 8px)}.co-rte-content .ProseMirror ul[data-type="taskList"] li>label{flex:0 0 auto;margin-top:0.15em;user-select:none}.co-rte-content .ProseMirror ul[data-type="taskList"] li>div{flex:1 1 auto;min-width:0}.co-rte-content .ProseMirror ul[data-type="taskList"] li>div>p{margin:0}.co-rte-content .ProseMirror ul[data-type="taskList"] input[type="checkbox"]{width:16px;height:16px;cursor:pointer;accent-color:var(--co-color-base-negro, #1a1a1a)}.co-rte-content .ProseMirror ul[data-type="taskList"][data-variant="strike"] li[data-checked="true"]>div{text-decoration:line-through;color:var(--co-semantic-text-muted, #999)}.co-rte-content .ProseMirror ul[data-type="taskList"][data-variant="plain"] li[data-checked="true"]>div{text-decoration:none}.co-rte-content .ProseMirror blockquote{border-left:3px solid var(--co-semantic-border-default, var(--co-semantic-border-subtle));padding-left:var(--co-spacing-md);margin:0 0 var(--co-spacing-sm) 0;color:var(--co-semantic-text-secondary)}.co-rte-content .ProseMirror a{color:var(--co-color-base-negro, #1a1a1a);text-decoration:underline;text-underline-offset:2px}.co-rte-content .ProseMirror img{max-width:100%;height:auto;border-radius:var(--co-border-radius-xs);margin:var(--co-spacing-sm) 0;cursor:default;-webkit-user-drag:none;user-select:none}.co-rte-content .ProseMirror img.ProseMirror-selectednode{outline:2px solid var(--co-color-base-negro, #1a1a1a)}.co-rte-content [data-resize-container].ProseMirror-selectednode{outline:2px solid var(--co-color-base-negro, #1a1a1a);outline-offset:0px;border-radius:0}.co-rte-content [data-resize-container]{position:relative;display:inline-block;width:fit-content;max-width:100%;margin:var(--co-spacing-sm) 0;line-height:0}.co-rte-content [data-resize-container][data-resize-state="true"]{outline:2px solid var(--co-color-base-negro, #1a1a1a);outline-offset:0px;border-radius:0}.co-rte-content [data-resize-wrapper]{position:relative;display:inline-block;line-height:0}.co-rte-content [data-resize-handle]{width:10px;height:10px;background:var(--co-color-base-negro, #1a1a1a);border:1.5px solid #fff;border-radius:50%;box-shadow:0 0 2px rgba(0, 0, 0, 0.3);z-index:5;opacity:0;pointer-events:none}.co-rte-content [data-resize-container][data-resize-state="true"] [data-resize-handle],.co-rte-content [data-resize-container].ProseMirror-selectednode [data-resize-handle]{opacity:1;pointer-events:auto}.co-rte-content [data-resize-handle="top-left"]{cursor:nw-resize}.co-rte-content [data-resize-handle="top-right"]{cursor:ne-resize}.co-rte-content [data-resize-handle="bottom-left"]{cursor:sw-resize}.co-rte-content [data-resize-handle="bottom-right"]{cursor:se-resize}.co-rte-content [data-resize-handle="top"],.co-rte-content [data-resize-handle="bottom"]{width:30px;height:6px;border-radius:3px;left:50% !important;transform:translateX(-50%)}.co-rte-content [data-resize-handle="top"]{cursor:n-resize}.co-rte-content [data-resize-handle="bottom"]{cursor:s-resize}.co-rte-content [data-resize-handle="left"],.co-rte-content [data-resize-handle="right"]{width:6px;height:30px;border-radius:3px;top:50% !important;transform:translateY(-50%)}.co-rte-content [data-resize-handle="left"]{cursor:w-resize}.co-rte-content [data-resize-handle="right"]{cursor:e-resize}.co-rte-content [data-resize-container] img{max-width:100%;display:block;border-radius:0;margin:0}.co-rte-content .ProseMirror hr{border:none;border-top:1px solid var(--co-semantic-border-default, #e0e0e0);margin:var(--co-spacing-lg) 0}.co-rte-content .ProseMirror code{font-family:var(--co-font-family-mono);font-size:0.9em;background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));padding:0.1em 0.3em;border-radius:var(--co-border-radius-xxs)}.co-rte-content .ProseMirror pre{font-family:var(--co-font-family-mono);font-size:0.9em;background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));padding:var(--co-spacing-md);border-radius:var(--co-border-radius-xs);overflow-x:auto;margin:var(--co-spacing-sm) 0}.co-rte-content .ProseMirror pre code{background:none;padding:0;border-radius:0}.co-rte-content .ProseMirror p.is-editor-empty:first-child::before{content:attr(data-placeholder);color:var(--co-semantic-text-muted);float:left;height:0;pointer-events:none}.co-rte-content .co-rte-variable,.co-rte-content .co-rte-mention{display:inline-block;padding:0.05em 0.4em;border-radius:var(--co-border-radius-xxs);background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff);font-size:0.9em;white-space:nowrap}.co-rte-content .co-rte-mention{background:var(--co-color-azul-200);color:var(--co-color-azul-800)}.co-rich-text-editor__footer{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-sm);padding:0 var(--co-spacing-xs);min-height:0}.co-rich-text-editor__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-12, 12px)}.co-rich-text-editor__helper--error{color:var(--co-color-status-error)}.co-rich-text-editor__helper--success{color:var(--co-color-status-success)}.co-rich-text-editor__count{margin-left:auto;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12, 12px)}.co-rte-bubble.co-rte-bubble--suppressed{display:none !important}.co-rte-bubble{position:absolute;z-index:50;display:flex;flex-direction:row;align-items:center;gap:2px;padding:var(--co-spacing-xs, 4px) var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);user-select:none;white-space:nowrap;max-width:100%;box-sizing:border-box;flex-wrap:wrap}.co-rte-bubble__drag-handle{display:flex;align-items:center;justify-content:center;cursor:grab;color:var(--co-semantic-text-muted, #999);width:18px;height:28px;margin:0 2px 0 0;flex-shrink:0}.co-rte-bubble__drag-handle:hover{color:var(--co-semantic-text-secondary, #555)}.co-rte-bubble__drag-handle:active{cursor:grabbing}.co-rte-bubble__row{display:flex;align-items:center;gap:2px;flex-wrap:wrap;max-width:100%;min-width:0}.co-rte-bubble__btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:none;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer}.co-rte-bubble__btn:hover:not(.co-rte-bubble__btn--active){background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06))}.co-rte-bubble__btn--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rte-bubble__btn--active:hover{background:var(--co-color-base-negro, #333)}.co-rte-bubble__sep{display:inline-block;width:1px;height:18px;margin:0 4px;background:var(--co-semantic-border-default, rgba(0, 0, 0, 0.12));flex-shrink:0}.co-rte-bubble__select{position:relative}.co-rte-bubble__select-trigger{display:flex;align-items:center;gap:2px;height:28px;padding:0 6px;border:1px solid transparent;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:11px;cursor:pointer;white-space:nowrap;transition:background var(--co-motion-duration-fast), border-color var(--co-motion-duration-fast)}.co-rte-bubble__select-trigger:hover{background:var(--co-semantic-surface-hover, #f5f5f5);border-color:var(--co-semantic-border-default, #e0e0e0)}.co-rte-bubble__select-label{max-width:72px;overflow:hidden;text-overflow:ellipsis}.co-rte-bubble__select--font .co-rte-bubble__select-label{max-width:110px}.co-rte-bubble__select-dropdown{position:absolute;bottom:100%;left:0;z-index:120;min-width:100px;max-height:260px;overflow-y:auto;padding:var(--co-spacing-xxs, 2px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xxs, 4px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-bottom:4px;white-space:normal}.co-rte-bubble__select-dropdown[data-position="above"]{bottom:100%;top:auto;margin-bottom:4px;margin-top:0}.co-rte-bubble__select-dropdown[data-position="below"]{top:100%;bottom:auto;margin-top:4px;margin-bottom:0}.co-rte-bubble__select-option{display:block;width:100%;padding:4px 8px;border:none;border-radius:3px;background:transparent;color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:12px;text-align:left;cursor:pointer;white-space:nowrap}.co-rte-bubble__select-option:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rte-bubble__select-dropdown--font{min-width:200px;max-height:320px;overflow:hidden;overflow-y:auto;display:flex;flex-direction:column;white-space:normal}.co-rte-bubble__font-search{padding:6px 6px 4px;flex-shrink:0}.co-rte-bubble__font-search-input{width:100%;padding:4px 8px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:4px;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:12px;outline:none;box-sizing:border-box}.co-rte-bubble__font-search-input:focus{border-color:var(--co-color-base-negro, #1a1a1a)}.co-rte-bubble__font-list{max-height:260px;overflow-y:auto;padding:0 var(--co-spacing-xxs, 2px) var(--co-spacing-xxs, 2px)}.co-rte-bubble__font-section-header{padding:6px 8px 2px;font-size:11px;font-weight:600;color:var(--co-semantic-text-muted, #888);text-transform:uppercase;letter-spacing:0.5px}.co-rte-bubble__font-empty{padding:12px 8px;text-align:center;color:var(--co-semantic-text-muted, #888);font-size:12px}.co-rte-bubble__color{position:relative}.co-rte-bubble__color-dropdown{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);z-index:120;width:224px;padding:var(--co-spacing-sm, 8px);background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-bottom:4px;white-space:normal;max-width:calc(100vw - 16px)}.co-rte-bubble__color-dropdown[data-position="above"]{bottom:100%;top:auto;margin-bottom:4px;margin-top:0}.co-rte-bubble__color-dropdown[data-position="below"]{top:100%;bottom:auto;margin-top:4px;margin-bottom:0}.co-rte-bubble__color-grid{display:grid;grid-template-columns:repeat(10, 1fr);gap:2px}.co-rte-bubble__color-swatch{width:20px;height:20px;padding:0;border:none;border-radius:3px;cursor:pointer;transition:transform var(--co-motion-duration-fast), box-shadow var(--co-motion-duration-fast)}.co-rte-bubble__color-swatch:hover{transform:scale(1.2);box-shadow:0 0 0 2px var(--co-color-base-negro, #1a1a1a)}.co-rte-bubble__color-hex{display:flex;align-items:center;gap:4px;margin-top:6px}.co-rte-bubble__color-hex-input{width:100%;padding:3px 6px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:3px;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-mono, monospace);font-size:11px;outline:none}.co-rte-bubble__color-hex-input:focus{border-color:var(--co-color-base-negro, #1a1a1a)}.co-rte-bubble__color-clear{display:flex;align-items:center;gap:4px;width:100%;padding:3px 6px;margin-top:4px;border:none;background:transparent;color:var(--co-semantic-text-secondary, #666);font-family:var(--co-font-family-primary);font-size:11px;cursor:pointer;border-radius:3px}.co-rte-bubble__color-clear:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rte-bubble__link-form{display:flex;align-items:center;gap:4px;margin-left:4px}.co-rte-bubble__link-input{width:160px;padding:3px 8px;border:1px solid var(--co-semantic-border-default, #ccc);border-radius:4px;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333);font-family:var(--co-font-family-primary);font-size:12px;outline:none}.co-rte-bubble__link-input::placeholder{color:var(--co-semantic-text-muted, #999)}.co-rte-bubble__link-input:focus{border-color:var(--co-color-base-negro, #1a1a1a);box-shadow:0 0 0 2px rgba(0, 0, 0, 0.1)}.co-rte-bubble__link-btn{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;border-radius:4px;background:var(--co-color-base-negro, #1a1a1a);color:#fff;cursor:pointer}.co-rte-bubble__link-btn:hover{opacity:0.9}.co-rte-bubble__link-unlink{background:var(--co-semantic-status-error, #aa2e1b)}.co-rte-bubble__panel{position:absolute;z-index:140;width:230px;background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);overflow:hidden;user-select:none}.co-rte-bubble__panel-header{display:flex;align-items:center;gap:4px;padding:6px 8px;border-bottom:1px solid var(--co-semantic-border-subtle, #eee)}.co-rte-bubble__panel-drag{cursor:grab;display:flex;align-items:center;justify-content:center;color:var(--co-semantic-text-muted, #999);flex-shrink:0}.co-rte-bubble__panel-drag:active{cursor:grabbing}.co-rte-bubble__panel-title{flex:1;font-size:12px;font-weight:600;color:var(--co-semantic-text-default, #333);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.co-rte-bubble__panel-close{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:none;border-radius:3px;background:transparent;color:var(--co-semantic-text-muted, #999);cursor:pointer;flex-shrink:0}.co-rte-bubble__panel-close:hover{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));color:var(--co-semantic-text-default, #333)}.co-rte-bubble__panel-input-wrap{padding:6px 8px}.co-rte-bubble__panel-input{width:100%;padding:4px 8px;border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:4px;font-size:12px;font-family:inherit;outline:none;box-sizing:border-box;background:var(--co-semantic-surface-secondary, #fff);color:var(--co-semantic-text-default, #333)}.co-rte-bubble__panel-input:focus{border-color:var(--co-color-base-negro, #1a1a1a)}.co-rte-bubble__panel-options{max-height:280px;overflow-y:auto;padding:2px 4px 4px}.co-rte-bubble__panel-option{display:block;width:100%;padding:5px 8px;border:none;border-radius:3px;background:transparent;cursor:pointer;text-align:left;font-family:inherit;color:var(--co-semantic-text-default, #333)}.co-rte-bubble__panel-option:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rte-bubble__panel-sep{height:1px;background:var(--co-semantic-border-subtle, #eee);margin:4px 8px}.co-rte-bubble__panel-opt-row{display:flex;justify-content:space-between;align-items:center;width:100%}.co-rte-bubble__panel-opt-value{color:var(--co-semantic-text-muted, #999);font-size:11px;font-weight:400 !important;min-width:28px;text-align:right}.co-rte-bubble__panel[data-position="above"]{bottom:100%;top:auto;margin-bottom:4px}.co-rte-bubble__panel[data-position="below"]{top:100%;bottom:auto;margin-top:4px}.co-rte-bubble__overflow{position:relative}.co-rte-bubble__overflow-menu{position:absolute;bottom:100%;right:0;z-index:130;min-width:230px;padding:4px;background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 4px 16px rgba(0, 0, 0, 0.12);margin-bottom:4px}.co-rte-bubble__overflow-menu[data-position="below"]{top:100%;bottom:auto;margin-top:4px;margin-bottom:0}.co-rte-bubble__overflow-item{display:flex;align-items:center;gap:8px;width:100%;padding:6px 8px;border:none;border-radius:4px;background:transparent;font-family:inherit;font-size:13px;color:var(--co-semantic-text-default, #333);cursor:pointer;text-align:left;white-space:nowrap}.co-rte-bubble__overflow-item:hover{background:var(--co-semantic-surface-hover, #f5f5f5)}.co-rte-bubble__overflow-item--active{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06));color:var(--co-color-base-negro, #1a1a1a);font-weight:600}.co-rte-bubble__overflow-value{margin-left:auto;color:var(--co-semantic-text-muted, #999);font-size:11px}.co-rte-bubble__overflow-sep{height:1px;background:var(--co-semantic-border-subtle, #eee);margin:3px 8px}.co-rte-bubble__overflow-section-title{padding:6px 8px 2px;font-size:11px;font-weight:600;color:var(--co-semantic-text-muted, #888);letter-spacing:0.5px}.co-rte-bubble__overflow-item--danger{color:var(--co-color-status-error, #aa2e1b)}.co-rte-bubble__overflow-item--danger:hover{background:rgba(170, 46, 27, 0.06)}.co-rte-bubble__color-indicator{display:flex;flex-direction:column;align-items:center;gap:1px;line-height:1}.co-rte-bubble__color-letter{font-family:var(--co-font-family-primary);font-size:14px;font-weight:700;color:var(--co-semantic-text-default, #333);line-height:1}.co-rte-bubble__color-bar{width:14px;height:3px;border-radius:1px}.co-rte-content .callout{display:flex;gap:0.75rem;padding:1rem;border-radius:var(--co-border-radius-xs, 8px);border:2px solid;margin:1rem 0}.co-rte-content .callout--info{background:#eff6ff;border-color:#bfdbfe}.co-rte-content .callout--warning{background:#fffbeb;border-color:#fde68a}.co-rte-content .callout--success{background:#f0fdf4;border-color:#bbf7d0}.co-rte-content .callout--error{background:#fef2f2;border-color:#fecaca}.co-rte-content .callout__icon{flex-shrink:0;font-size:1.2em}.co-rte-content .callout__content{flex:1}.co-rte-content .callout__content p{margin:0}.co-rte-content table{border-collapse:collapse;table-layout:auto;width:100%;margin:1rem 0;overflow:hidden}.co-rte-content .tableWrapper{overflow-x:auto;max-width:100%}.co-rte-content td,.co-rte-content th{min-width:1em;border:1px solid var(--co-semantic-border-default, #e0e0e0);padding:0.5rem;vertical-align:top;box-sizing:border-box;position:relative}.co-rte-content th{font-weight:600;text-align:left;background-color:#e3e3e3;color:var(--co-semantic-text-default, #333)}.co-rte-content .ProseMirror table th{background-color:#e3e3e3}.co-rte-content .selectedCell{background:rgba(0, 0, 0, 0.06)}.co-rte-content .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background-color:var(--co-color-base-negro, #1a1a1a);pointer-events:none}.co-rte-content .ProseMirror.resize-cursor,.co-rte-content .ProseMirror.resize-cursor *{cursor:col-resize}.co-rte-content iframe{border-radius:var(--co-border-radius-xs, 8px);max-width:100%;aspect-ratio:16 / 9;width:100%;height:auto;display:block;margin:0}.co-rte-content .co-rte-embed{position:relative;display:block;max-width:100%;margin:1rem 0;line-height:0}.co-rte-content .co-rte-embed::before{content:'';position:absolute;inset:0;z-index:1}.co-rte-content .co-rte-embed.ProseMirror-selectednode,.co-rte-content .co-rte-embed--selected{outline:2px solid var(--co-color-base-negro, #1a1a1a);outline-offset:2px;border-radius:var(--co-border-radius-xs, 8px)}.co-rte-content .co-rte-embed__handle{position:absolute;width:12px;height:12px;background:var(--co-color-base-negro, #1a1a1a);border:1.5px solid #fff;border-radius:50%;box-shadow:0 0 2px rgba(0, 0, 0, 0.3);z-index:3;opacity:0;pointer-events:none}.co-rte-content .co-rte-embed.ProseMirror-selectednode .co-rte-embed__handle,.co-rte-content .co-rte-embed--selected .co-rte-embed__handle{opacity:1;pointer-events:auto}.co-rte-content .co-rte-embed__handle--bottom-right{right:-6px;bottom:-6px;cursor:nwse-resize}.co-rte-content .co-rte-embed__handle--bottom-left{left:-6px;bottom:-6px;cursor:nesw-resize}.co-rte-content .co-rte-embed--resizing{outline:2px dashed var(--co-color-base-negro, #1a1a1a);outline-offset:2px}.co-rich-text-editor--readonly .co-rte-embed::before,.co-rich-text-editor--disabled .co-rte-embed::before{display:none}.co-rich-text-editor--readonly .co-rte-embed.ProseMirror-selectednode,.co-rich-text-editor--readonly .co-rte-embed--selected,.co-rich-text-editor--disabled .co-rte-embed.ProseMirror-selectednode,.co-rich-text-editor--disabled .co-rte-embed--selected{outline:none !important}.co-rte-img-layout{position:absolute;z-index:50;display:flex;align-items:center;gap:2px;padding:4px;background:var(--co-semantic-surface-secondary, #fff);border:1px solid var(--co-semantic-border-default, #e0e0e0);border-radius:var(--co-border-radius-xs, 8px);box-shadow:0 2px 12px rgba(0, 0, 0, 0.12);pointer-events:auto}.co-rte-img-layout__btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:0;border:1px solid transparent;border-radius:var(--co-border-radius-xxs, 4px);background:transparent;color:var(--co-semantic-text-default, #333);cursor:pointer;transition:background var(--co-motion-duration-fast), border-color var(--co-motion-duration-fast)}.co-rte-img-layout__btn:hover{background:var(--co-semantic-surface-hover, rgba(0, 0, 0, 0.06))}.co-rte-img-layout__btn--active{background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff)}.co-rte-img-layout__btn--active:hover{background:var(--co-color-base-negro, #333)}.co-rte-img-layout__btn[data-tooltip]{position:relative}.co-rte-img-layout__btn[data-tooltip]::after{content:attr(data-tooltip);position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);padding:4px 8px;background:var(--co-color-base-negro, #1a1a1a);color:var(--co-color-base-blanco, #fff);font-family:var(--co-font-family-primary);font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;border-radius:4px;pointer-events:none;opacity:0;transition:opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);z-index:100}.co-rte-img-layout__btn[data-tooltip]:hover::after{opacity:1;transition-delay:0.3s}.co-rte-content [data-resize-container][data-image-layout="wrap-left"]{float:left;max-width:50%;margin:4px 16px 8px 0}.co-rte-content [data-resize-container][data-image-layout="wrap-right"]{float:right;max-width:50%;margin:4px 0 8px 16px}.co-rte-content [data-resize-container][data-image-layout="center"]{display:block;margin:12px auto}.co-rte-content [data-resize-container][data-image-layout="full-width"]{display:block;width:100%;margin:12px 0}.co-rte-content [data-resize-container][data-image-layout="full-width"] [data-resize-wrapper],.co-rte-content [data-resize-container][data-image-layout="full-width"] img{width:100%}@media (max-width: 768px){.co-rte-content [data-resize-container][data-image-layout="wrap-left"],.co-rte-content [data-resize-container][data-image-layout="wrap-right"]{float:none;max-width:100%;display:block;margin:12px 0}}.co-rte-content--site .ProseMirror{width:var(--co-rte-content-width, 80%);max-width:100%;margin:0 auto}@media (max-width: 768px){.co-rte-content--site .ProseMirror{width:100%}}.co-rich-text-editor--readonly [data-resize-handle],.co-rich-text-editor--disabled [data-resize-handle]{display:none !important}.co-rich-text-editor--readonly [data-resize-container].ProseMirror-selectednode,.co-rich-text-editor--disabled [data-resize-container].ProseMirror-selectednode,.co-rich-text-editor--readonly img.ProseMirror-selectednode,.co-rich-text-editor--disabled img.ProseMirror-selectednode{outline:none !important}`;
8
10
 
@@ -22,7 +24,9 @@ const CoRichTextEditor = class {
22
24
  this.value = null;
23
25
  /** Preset controlling allowed nodes/marks, toolbar and sanitization. */
24
26
  this.preset = 'task';
27
+ /** Texto de ayuda del editor vacío. */
25
28
  this.placeholder = '';
29
+ /** Estado de validación: pinta el borde y el `helperText` con el color del estado. */
26
30
  this.status = 'default';
27
31
  /** Visual style. `flat` strips the frame's border and background so it
28
32
  * reads as plain content instead of a boxed control — padding, label,
@@ -32,10 +36,15 @@ const CoRichTextEditor = class {
32
36
  * outer box is gone. `default` (the standard bordered box) renders
33
37
  * identically to before this prop existed. */
34
38
  this.variant = 'default';
39
+ /** Deshabilita el editor. */
35
40
  this.disabled = false;
41
+ /** Solo lectura: sin barra ni edición; `coChange` sale en el acto (p. ej. al marcar una casilla de task-list). */
36
42
  this.readonly = false;
43
+ /** Campo obligatorio (marca de requerido en la etiqueta). */
37
44
  this.required = false;
45
+ /** Muestra el contador de caracteres aunque no haya `maxLength`. */
38
46
  this.showCharacterCount = false;
47
+ /** Enfoca el editor al montarse. */
39
48
  this.autofocus = false;
40
49
  /** Toolbar layout. `auto` uses the preset default. */
41
50
  this.toolbar = 'auto';
@@ -65,10 +74,8 @@ const CoRichTextEditor = class {
65
74
  this._loadedAccountFonts = [];
66
75
  this._fontLoaderCalled = false;
67
76
  this._fontLoaderLoading = false;
68
- /** Last emitted JSON string — guards the value Watch against feedback loops. */
69
- this.lastEmittedJson = null;
70
- /** Last emitted HTML string — parents often send HTML back via value prop. */
71
- this.lastEmittedHtml = '';
77
+ /** Guarda anti-eco compartida (utils/rich-text-host). */
78
+ this.echo = new EchoGuard();
72
79
  /** True while applying an external value (suppresses emit). */
73
80
  this.applyingExternal = false;
74
81
  this.rt = RichText;
@@ -78,15 +85,10 @@ const CoRichTextEditor = class {
78
85
  if (this.applyingExternal)
79
86
  return;
80
87
  const out = this.buildOutput(editor);
81
- // Track both JSON and HTML forms to prevent feedback loops.
82
- // The parent may send back either format via the value prop.
83
- this.lastEmittedJson = out.json ? JSON.stringify(out.json) : null;
84
- this.lastEmittedHtml = out.html;
85
- // Do NOT set this.value here — it triggers unnecessary Stencil re-renders
86
- // and the Watch cycle. The parent is the source of truth for the value prop.
88
+ this.echo.markEmitted(out);
89
+ // No se asigna this.value: dispararía re-renders y el Watch. El padre es la fuente de verdad.
87
90
  this.coInput.emit(out);
88
- // In readonly mode there's no blur cycle, so commit immediately
89
- // (e.g. task-list checkbox toggled by onReadOnlyChecked).
91
+ // En readonly no hay ciclo de blur: se confirma en el acto (p. ej. checkbox de task-list).
90
92
  if (this.readonly)
91
93
  this.coChange.emit(out);
92
94
  };
@@ -125,7 +127,7 @@ const CoRichTextEditor = class {
125
127
  this.editor = this.rt.createEditor({
126
128
  preset: this.preset,
127
129
  element: this.contentEl,
128
- content: this.parseValue(this.value),
130
+ content: parseEditorValue(this.value),
129
131
  editable: !this.disabled && !this.readonly,
130
132
  placeholder: this.placeholder,
131
133
  maxLength: this.maxLength,
@@ -178,7 +180,7 @@ const CoRichTextEditor = class {
178
180
  this.suppressBubble(!!open);
179
181
  });
180
182
  }
181
- this.lastEmittedJson = (_b = this.value) !== null && _b !== void 0 ? _b : null;
183
+ this.echo.seed((_b = this.value) !== null && _b !== void 0 ? _b : null);
182
184
  this.ready = true;
183
185
  this.refreshCharCount();
184
186
  this.syncToolbar();
@@ -220,24 +222,17 @@ const CoRichTextEditor = class {
220
222
  if (!this.editor || this.applyingExternal)
221
223
  return;
222
224
  const incoming = next !== null && next !== void 0 ? next : null;
223
- // Skip if this value matches what we last emitted (JSON or HTML form).
224
- // This prevents the destructive feedback loop where the parent sends
225
- // back our own output and setContent resets the editor on every keystroke.
226
- if (incoming === this.lastEmittedJson || incoming === this.lastEmittedHtml)
225
+ // El padre suele devolver nuestro propio output (JSON o HTML): re-aplicarlo
226
+ // reinicia el editor en cada tecla.
227
+ if (this.echo.isEcho(incoming))
227
228
  return;
228
229
  this.applyingExternal = true;
229
230
  try {
230
- if (incoming === '' || incoming === null) {
231
- this.editor.commands.clearContent(false);
232
- }
233
- else {
234
- this.editor.commands.setContent(this.parseValue(next), { emitUpdate: false });
235
- }
231
+ applyExternalValue(this.editor, incoming);
236
232
  }
237
233
  finally {
238
234
  this.applyingExternal = false;
239
- this.lastEmittedJson = incoming;
240
- this.lastEmittedHtml = '';
235
+ this.echo.seed(incoming);
241
236
  this.refreshCharCount();
242
237
  }
243
238
  }
@@ -246,30 +241,37 @@ const CoRichTextEditor = class {
246
241
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.setEditable(!this.disabled && !this.readonly);
247
242
  }
248
243
  /* ── Public methods (escape hatches + imperative control) ── */
244
+ /** Documento como JSON de ProseMirror, o `null` si está vacío. */
249
245
  async getJSON() {
250
246
  return this.editor && !this.editor.isEmpty ? this.editor.getJSON() : null;
251
247
  }
248
+ /** HTML sanitizado según el preset (`getHtml`, no `getHTML`, para no chocar con `HTMLElement`). */
252
249
  async getHtml() {
253
250
  return this.editor ? this.sanitizeHtml(this.editor.getHTML()) : '';
254
251
  }
252
+ /** Texto plano del documento. */
255
253
  async getText() {
256
254
  var _a, _b;
257
255
  return (_b = (_a = this.editor) === null || _a === void 0 ? void 0 : _a.getText()) !== null && _b !== void 0 ? _b : '';
258
256
  }
257
+ /** Vacía el contenido y emite `coClear`. */
259
258
  async clear() {
260
259
  if (!this.editor)
261
260
  return;
262
261
  this.editor.commands.clearContent(true);
263
262
  this.coClear.emit();
264
263
  }
264
+ /** Enfoca el editor (`focusEditor`, no `focus`, para no chocar con `HTMLElement`). */
265
265
  async focusEditor() {
266
266
  var _a;
267
267
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.focus();
268
268
  }
269
+ /** Reemplaza el contenido: HTML (string) o JSON de ProseMirror. */
269
270
  async setContent(content) {
270
271
  var _a;
271
272
  (_a = this.editor) === null || _a === void 0 ? void 0 : _a.commands.setContent(content);
272
273
  }
274
+ /** Instancia Tiptap subyacente (escape hatch para control avanzado), o `null` antes de montar. */
273
275
  async getEditorInstance() {
274
276
  var _a;
275
277
  return (_a = this.editor) !== null && _a !== void 0 ? _a : null;
@@ -282,27 +284,7 @@ const CoRichTextEditor = class {
282
284
  return (_a = f === null || f === void 0 ? void 0 : f.image) !== null && _a !== void 0 ? _a : this.preset === 'document';
283
285
  }
284
286
  get parsedFeatures() {
285
- if (!this.features)
286
- return undefined;
287
- if (typeof this.features === 'string') {
288
- try {
289
- return JSON.parse(this.features);
290
- }
291
- catch (_a) {
292
- return undefined;
293
- }
294
- }
295
- return this.features;
296
- }
297
- parseValue(v) {
298
- if (!v)
299
- return '';
300
- try {
301
- return JSON.parse(v);
302
- }
303
- catch (_a) {
304
- return v; // tolerate an HTML string
305
- }
287
+ return parseFeatures(this.features);
306
288
  }
307
289
  sanitizeHtml(html) {
308
290
  // Con las MISMAS features que cargaron el schema: sin ellas, un <img> con
@@ -311,12 +293,7 @@ const CoRichTextEditor = class {
311
293
  return this.rt.sanitize(html, this.preset, this.parsedFeatures);
312
294
  }
313
295
  buildOutput(editor) {
314
- const empty = editor.isEmpty;
315
- return {
316
- json: empty ? null : editor.getJSON(),
317
- html: empty ? '' : this.sanitizeHtml(editor.getHTML()),
318
- text: editor.getText(),
319
- };
296
+ return buildOutput(editor, (html) => this.sanitizeHtml(html));
320
297
  }
321
298
  /** Lock the bubble position so floating-ui doesn't reposition it. */
322
299
  lockBubblePosition(durationMs = 1000) {
@@ -425,12 +402,7 @@ const CoRichTextEditor = class {
425
402
  }
426
403
  }
427
404
  syncToolbar() {
428
- if (this.toolbarEl && this.editor && this.toolbarEl.editor !== this.editor) {
429
- this.toolbarEl.editor = this.editor;
430
- }
431
- if (this.toolbarEl) {
432
- this.toolbarEl.imageUpload = this.imageUpload;
433
- }
405
+ syncToolbarEditor(this.toolbarEl, this.editor, this.imageUpload);
434
406
  }
435
407
  get resolvedToolbar() {
436
408
  if (this.toolbar !== 'auto')
@@ -1983,32 +1955,8 @@ const CoRichTextEditor = class {
1983
1955
  * from state and write the attribute imperatively to the container.
1984
1956
  */
1985
1957
  syncImageLayouts() {
1986
- if (!this.editor)
1987
- return;
1988
- const view = this.editor.view;
1989
- this.editor.state.doc.descendants((node, pos) => {
1990
- var _a;
1991
- if (node.type.name !== 'image')
1992
- return true;
1993
- const dom = view.nodeDOM(pos);
1994
- const c = (((_a = dom === null || dom === void 0 ? void 0 : dom.closest) === null || _a === void 0 ? void 0 : _a.call(dom, '[data-resize-container]')) || dom);
1995
- if (!c)
1996
- return true;
1997
- const layout = node.attrs.imageLayout || 'inline';
1998
- c.dataset.imageLayout = layout;
1999
- // Neutralise any absolute positioning baked by the old fixed-page model.
2000
- c.style.position = '';
2001
- c.style.left = '';
2002
- c.style.top = '';
2003
- c.style.zIndex = '';
2004
- // The resize NodeView pins `display: inline-flex` INLINE on the container, which
2005
- // beats the stylesheet's `display: block` for `center` / `full-width`: the editor
2006
- // showed those images inline-left while the viewer (and the sent email) centred
2007
- // them (2026-09-17). Clear it for block layouts so the CSS rule can apply; the
2008
- // inline value is restored for flow layouts so the resize handles keep working.
2009
- c.style.display = layout === 'center' || layout === 'full-width' ? '' : 'inline-flex';
2010
- return true;
2011
- });
1958
+ if (this.editor)
1959
+ syncImageLayouts(this.editor);
2012
1960
  }
2013
1961
  /** Reposition only the layout bar (used during drag for performance). */
2014
1962
  updateImageLayoutBarPosition() {
@@ -2049,11 +1997,11 @@ const CoRichTextEditor = class {
2049
1997
  const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
2050
1998
  const showCount = this.showCharacterCount || this.maxLength != null;
2051
1999
  const bottom = this.toolbarPosition === 'bottom';
2052
- const toolbar = showToolbar && (h("co-rich-text-toolbar", { key: '0df30a57a843cbcd967ffd254ae0e54bee448902', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, position: this.toolbarPosition, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
2000
+ const toolbar = showToolbar && (h("co-rich-text-toolbar", { key: '6bcb6ab2d8023c96062ce4aa64ef6450357c22e7', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, position: this.toolbarPosition, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
2053
2001
  e.stopPropagation();
2054
2002
  this.coAttachmentsSelected.emit(e.detail);
2055
2003
  }, ref: (el) => (this.toolbarEl = el) }));
2056
- return (h("div", { key: '03be9df0d50d00a3cf889b3404c4f347626aa27c', class: {
2004
+ return (h("div", { key: 'acb670aca986206aa8cae2960a9ace5723d5b710', class: {
2057
2005
  'co-rich-text-editor': true,
2058
2006
  'co-rich-text-editor--focused': this.hasFocus,
2059
2007
  'co-rich-text-editor--disabled': this.disabled,
@@ -2062,7 +2010,7 @@ const CoRichTextEditor = class {
2062
2010
  [`co-rich-text-editor--${this.status}`]: this.status !== 'default',
2063
2011
  'co-rich-text-editor--flat': this.variant === 'flat',
2064
2012
  'co-rich-text-editor--toolbar-bottom': bottom,
2065
- }, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'ae732219465a376af19e771e63589c955be37c4b', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: 'd316724c4f4bcbf55adf582b8ad40c6c45fba407', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: '3cca63f6dfa2335dcd7122eb734205d4fd86a90f', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: '620bd101dd94684f7b2d533401717eeb7421593c', class: "co-rich-text-editor__frame" }, !bottom && toolbar, h("div", { key: 'a20f163022dd1c6e23dfc222786ddf0fc6f9b3ac', class: "co-rich-text-editor__box" }, h("div", { key: 'd678e095ae36610895cb466c1a15c722b46d4483', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) })), h("slot", { key: '62127cb0a34e7f43ceadcb20ef724aba0524fa69', name: "content-end" }), bottom && (h("div", { key: '99d574e7cbb2a115a243288b770cb03f1892ff93', class: "co-rich-text-editor__toolbar-row", part: "toolbar-row" }, toolbar, h("slot", { key: 'b9b971930ddda8d118c8b6d204fad8d41d25468e', name: "toolbar-end" })))), h("div", { key: 'caafa3f153192eee6efa7679dafa376dea69b150', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '8d2ab21ababab2c14c912f8ffd6945001fca62f7', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: 'b60df4c320b9356a87df39179c75360f91e858bf', name: this.helperIcon, size: 14 }), h("span", { key: 'd56108257c9bba2332e434d6240f4f387e2411f6' }, this.helperText))), showCount && (h("span", { key: '7973c2996e24ec991115fe4932915a9aefc1b495', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
2013
+ }, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '0bbda76dde378f9f9dc49593409036efa0306982', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: '328d770182eeba4010337e32359f6e1f96c32e54', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: 'd8b3ac25a32189686226b9fe6da311f6672ca331', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: 'ed9d88e6e62a3defe9f302d252eb7f8dd33d4a0a', class: "co-rich-text-editor__frame" }, !bottom && toolbar, h("div", { key: '96625d0fbbc619e7a7f7812c83d1e86df8086da4', class: "co-rich-text-editor__box" }, h("div", { key: '77ce10f2902b9e758c18dabd5e91c5544c0cdd54', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) })), h("slot", { key: '6c2fbaa3625889c4bb6a493be037f4c64b60fece', name: "content-end" }), bottom && (h("div", { key: 'eda6a58e138c36dc412a84aa995dfcbfd6d7e93f', class: "co-rich-text-editor__toolbar-row", part: "toolbar-row" }, toolbar, h("slot", { key: 'f8b01d2d2b27851d474bb174e4e42b45efd96758', name: "toolbar-end" })))), h("div", { key: 'fdffcf44d4d181d30cc6f48e073e3a18c18f48ca', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '52ab70e42dad525b1fc1c4c27bdb98bedaf5cd90', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: 'c7e79a0292c51c9cf7927eb504401be5fd68b767', name: this.helperIcon, size: 14 }), h("span", { key: '4a09b04c257f3cd605f9b753d12c118312cb65fc' }, this.helperText))), showCount && (h("span", { key: '7c25580b095af4d0ef11e77d13b07cedbf3e61c4', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
2066
2014
  }
2067
2015
  get el() { return getElement(this); }
2068
2016
  static get watchers() { return {