@prolibu-suite/cobalt-core 0.11.6 → 0.11.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (632) hide show
  1. package/custom-elements.json +160 -46
  2. package/dist/cjs/co-action-bar.cjs.entry.js +1 -1
  3. package/dist/cjs/co-app-shell.cjs.entry.js +1 -1
  4. package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
  5. package/dist/cjs/co-avatar.cjs.entry.js +6 -3
  6. package/dist/cjs/co-button.cjs.entry.js +14 -6
  7. package/dist/cjs/co-calendar-month_2.cjs.entry.js +9 -5
  8. package/dist/cjs/co-calendar_3.cjs.entry.js +23 -7
  9. package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
  10. package/dist/cjs/co-checkbox.cjs.entry.js +1 -1
  11. package/dist/cjs/co-chip_2.cjs.entry.js +4 -4
  12. package/dist/cjs/co-color-picker.cjs.entry.js +24 -5
  13. package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
  14. package/dist/cjs/co-combobox.cjs.entry.js +7 -5
  15. package/dist/cjs/co-command-search.cjs.entry.js +1 -1
  16. package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
  17. package/dist/cjs/co-data-table.cjs.entry.js +1 -1
  18. package/dist/cjs/co-date-picker.cjs.entry.js +1 -1
  19. package/dist/cjs/co-date-range-picker.cjs.entry.js +1 -1
  20. package/dist/cjs/co-date-range.cjs.entry.js +1 -1
  21. package/dist/cjs/co-date-time-picker.cjs.entry.js +3 -3
  22. package/dist/cjs/co-document-editor.cjs.entry.js +108 -7
  23. package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
  24. package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
  25. package/dist/cjs/co-emoji-picker.cjs.entry.js +2 -2
  26. package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
  27. package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
  28. package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
  29. package/dist/cjs/co-fab.cjs.entry.js +3 -3
  30. package/dist/cjs/co-file-field.cjs.entry.js +87 -16
  31. package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
  32. package/dist/cjs/co-gradient-bar.cjs.entry.js +4 -4
  33. package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
  34. package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
  35. package/dist/cjs/co-icon.cjs.entry.js +2 -2
  36. package/dist/cjs/co-input.cjs.entry.js +1 -1
  37. package/dist/cjs/co-json-field.cjs.entry.js +4 -4
  38. package/dist/cjs/co-kbd_2.cjs.entry.js +3 -3
  39. package/dist/cjs/co-lightbox.cjs.entry.js +71 -7
  40. package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
  41. package/dist/cjs/co-list-item.cjs.entry.js +4 -4
  42. package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
  43. package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
  44. package/dist/cjs/co-menu-item.cjs.entry.js +1 -1
  45. package/dist/cjs/co-menu.cjs.entry.js +3 -3
  46. package/dist/cjs/co-modal.cjs.entry.js +23 -3
  47. package/dist/cjs/co-navbar.cjs.entry.js +2 -2
  48. package/dist/cjs/co-number-field.cjs.entry.js +9 -5
  49. package/dist/cjs/co-overlay.cjs.entry.js +2 -2
  50. package/dist/cjs/co-page-header.cjs.entry.js +1 -1
  51. package/dist/cjs/co-phone-field.cjs.entry.js +52 -2
  52. package/dist/cjs/co-popover.cjs.entry.js +33 -4
  53. package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
  54. package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
  55. package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
  56. package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
  57. package/dist/cjs/co-radio.cjs.entry.js +3 -3
  58. package/dist/cjs/co-rating.cjs.entry.js +4 -4
  59. package/dist/cjs/co-ref-field.cjs.entry.js +15 -8
  60. package/dist/cjs/co-rich-text-editor.cjs.entry.js +80 -23
  61. package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +105 -2
  62. package/dist/cjs/co-rich-text-viewer.cjs.entry.js +2 -2
  63. package/dist/cjs/co-row.cjs.entry.js +2 -2
  64. package/dist/cjs/co-select.cjs.entry.js +10 -8
  65. package/dist/cjs/co-separator.cjs.entry.js +1 -1
  66. package/dist/cjs/co-sidebar-nav.cjs.entry.js +11 -9
  67. package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
  68. package/dist/cjs/co-slider.cjs.entry.js +3 -3
  69. package/dist/cjs/co-swatch-grid.cjs.entry.js +3 -3
  70. package/dist/cjs/co-switch.cjs.entry.js +4 -4
  71. package/dist/cjs/co-tab-group.cjs.entry.js +110 -12
  72. package/dist/cjs/co-tab.cjs.entry.js +3 -3
  73. package/dist/cjs/co-tags-field.cjs.entry.js +7 -7
  74. package/dist/cjs/co-textarea.cjs.entry.js +5 -5
  75. package/dist/cjs/co-tile.cjs.entry.js +1 -1
  76. package/dist/cjs/co-time-field.cjs.entry.js +1 -1
  77. package/dist/cjs/co-toast.cjs.entry.js +1 -1
  78. package/dist/cjs/co-toggle-button-group.cjs.entry.js +6 -4
  79. package/dist/cjs/co-toggle-button.cjs.entry.js +5 -3
  80. package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
  81. package/dist/cjs/co-video.cjs.entry.js +2 -2
  82. package/dist/cjs/cobalt.cjs.js +1 -1
  83. package/dist/cjs/{color-DQVrQGi0.js → color-DlKNWtdc.js} +38 -2
  84. package/dist/cjs/escapeLayers-DlCir9Sr.js +22 -0
  85. package/dist/cjs/fieldChip-DbYMfylq.js +7 -0
  86. package/dist/cjs/{gradientStops-CMpH4fB_.js → gradientStops-xZbv7bi6.js} +1 -1
  87. package/dist/cjs/{index-BbSD1Eyw.js → index-CJhgaDE1.js} +1 -1
  88. package/dist/cjs/index-bHoidDwv.js +14 -14
  89. package/dist/cjs/loader.cjs.js +1 -1
  90. package/dist/cjs/{pagination-S2sSAgdl.js → pagination-BPA1UGs-.js} +30 -0
  91. package/dist/cjs/{richTextI18n-DXGIv5w1.js → richTextI18n-B8qb5JKb.js} +12 -0
  92. package/dist/cobalt/cobalt.esm.js +1 -1
  93. package/dist/cobalt/p-01b54d81.entry.js +1 -0
  94. package/dist/cobalt/{p-02ff847e.entry.js → p-02133c95.entry.js} +1 -1
  95. package/dist/cobalt/{p-73313cbe.entry.js → p-0bbaaf4f.entry.js} +1 -1
  96. package/dist/cobalt/p-0f3a3232.entry.js +1 -0
  97. package/dist/cobalt/p-12fc5119.entry.js +1 -0
  98. package/dist/cobalt/p-19f0f534.entry.js +1 -0
  99. package/dist/cobalt/p-1c9253a2.entry.js +1 -0
  100. package/dist/cobalt/{p-63908a8d.entry.js → p-256ca457.entry.js} +1 -1
  101. package/dist/cobalt/{p-71fe35c4.entry.js → p-2ff8f591.entry.js} +1 -1
  102. package/dist/cobalt/p-33840969.entry.js +1 -0
  103. package/dist/cobalt/p-353ff9ed.entry.js +1 -0
  104. package/dist/cobalt/p-37f9ec35.entry.js +1 -0
  105. package/dist/cobalt/p-3878f174.entry.js +1 -0
  106. package/dist/cobalt/{p-a4eb298c.entry.js → p-3890d22f.entry.js} +1 -1
  107. package/dist/cobalt/{p-7fabd8ba.entry.js → p-3b7e90c8.entry.js} +1 -1
  108. package/dist/cobalt/p-3bff827a.entry.js +1 -0
  109. package/dist/cobalt/{p-65c191aa.entry.js → p-3e532a11.entry.js} +1 -1
  110. package/dist/cobalt/{p-4d743628.entry.js → p-3e864e7d.entry.js} +1 -1
  111. package/dist/cobalt/p-454dd8ab.entry.js +1 -0
  112. package/dist/cobalt/{p-cfaaa684.entry.js → p-4ae6fe0e.entry.js} +1 -1
  113. package/dist/cobalt/p-4cdfcd9c.entry.js +1 -0
  114. package/dist/cobalt/p-50ab6b9b.entry.js +1 -0
  115. package/dist/cobalt/{p-713637f2.entry.js → p-59a71695.entry.js} +1 -1
  116. package/dist/cobalt/{p-06689166.entry.js → p-5d41b58b.entry.js} +1 -1
  117. package/dist/cobalt/{p-95f2ebb1.entry.js → p-5e14f676.entry.js} +1 -1
  118. package/dist/cobalt/p-5e39cf70.entry.js +1 -0
  119. package/dist/cobalt/{p-df529110.entry.js → p-600d0cab.entry.js} +1 -1
  120. package/dist/cobalt/{p-38eb2615.entry.js → p-60ea3d33.entry.js} +1 -1
  121. package/dist/cobalt/{p-d5d8fa8b.entry.js → p-63f888a1.entry.js} +1 -1
  122. package/dist/cobalt/{p-d00c3894.entry.js → p-6eca1c7c.entry.js} +1 -1
  123. package/dist/cobalt/p-74804c79.entry.js +1 -0
  124. package/dist/cobalt/{p-f2fa2ac0.entry.js → p-76ea3f34.entry.js} +1 -1
  125. package/dist/cobalt/p-7737354e.entry.js +1 -0
  126. package/dist/cobalt/p-7e444408.entry.js +1 -0
  127. package/dist/cobalt/p-7e72720a.entry.js +1 -0
  128. package/dist/cobalt/p-82bcd062.entry.js +1 -0
  129. package/dist/cobalt/{p-56176aa0.entry.js → p-83691cfb.entry.js} +1 -1
  130. package/dist/cobalt/p-84256bde.entry.js +1 -0
  131. package/dist/cobalt/p-84ad0227.entry.js +1 -0
  132. package/dist/cobalt/{p-b2457431.entry.js → p-89328cd8.entry.js} +1 -1
  133. package/dist/cobalt/p-8a26f3cc.entry.js +1 -0
  134. package/dist/cobalt/p-8c22bf4b.entry.js +1 -0
  135. package/dist/cobalt/p-8e7ad2fe.entry.js +1 -0
  136. package/dist/cobalt/p-947b8e35.entry.js +1 -0
  137. package/dist/cobalt/p-94b871fb.entry.js +1 -0
  138. package/dist/cobalt/p-99781b0b.entry.js +1 -0
  139. package/dist/cobalt/{p-71dc8e4a.entry.js → p-9af26af0.entry.js} +1 -1
  140. package/dist/cobalt/p-9ce57385.entry.js +1 -0
  141. package/dist/cobalt/p-BzxEh7sq.js +1 -0
  142. package/dist/cobalt/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
  143. package/dist/cobalt/p-CSLjZ3WO.js +1 -0
  144. package/dist/cobalt/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
  145. package/dist/cobalt/p-EtYK1iGx.js +1 -0
  146. package/dist/cobalt/p-LnW75kr5.js +1 -0
  147. package/dist/cobalt/{p-cf5b91be.entry.js → p-a18c01eb.entry.js} +1 -1
  148. package/dist/cobalt/{p-65d44da2.entry.js → p-a33a277a.entry.js} +1 -1
  149. package/dist/cobalt/p-a4154bcf.entry.js +1 -0
  150. package/dist/cobalt/{p-aed832d5.entry.js → p-a4264bde.entry.js} +1 -1
  151. package/dist/cobalt/p-a6c9a0c5.entry.js +1 -0
  152. package/dist/cobalt/{p-868d1a18.entry.js → p-b2c49664.entry.js} +1 -1
  153. package/dist/cobalt/{p-f69804a6.entry.js → p-b402665a.entry.js} +1 -1
  154. package/dist/cobalt/{p-903237f9.entry.js → p-bbf3d859.entry.js} +1 -1
  155. package/dist/cobalt/p-bee52042.entry.js +1 -0
  156. package/dist/cobalt/{p-a7cd61ce.entry.js → p-c004fde5.entry.js} +1 -1
  157. package/dist/cobalt/p-c026968c.entry.js +1 -0
  158. package/dist/cobalt/{p-8a2a2b6c.entry.js → p-c23630ab.entry.js} +1 -1
  159. package/dist/cobalt/p-c31b9b51.entry.js +1 -0
  160. package/dist/cobalt/{p-0e4c2234.entry.js → p-c93be2d5.entry.js} +1 -1
  161. package/dist/cobalt/p-cb1013e6.entry.js +1 -0
  162. package/dist/cobalt/p-cd43d372.entry.js +1 -0
  163. package/dist/cobalt/{p-26cbdc33.entry.js → p-cea21e08.entry.js} +1 -1
  164. package/dist/cobalt/p-cf675968.entry.js +1 -0
  165. package/dist/cobalt/{p-ba39a965.entry.js → p-d1595580.entry.js} +1 -1
  166. package/dist/cobalt/{p-99df434b.entry.js → p-d26dc681.entry.js} +1 -1
  167. package/dist/cobalt/{p-8680559b.entry.js → p-d375c84e.entry.js} +1 -1
  168. package/dist/cobalt/{p-bee30373.entry.js → p-d7775109.entry.js} +1 -1
  169. package/dist/cobalt/p-d9b4594b.entry.js +1 -0
  170. package/dist/cobalt/{p-b67fb616.entry.js → p-e4646a0e.entry.js} +1 -1
  171. package/dist/cobalt/{p-7beface1.entry.js → p-e5350eeb.entry.js} +1 -1
  172. package/dist/cobalt/{p-e5f0d560.entry.js → p-f1da1df1.entry.js} +1 -1
  173. package/dist/cobalt/p-f23f52ed.entry.js +1 -0
  174. package/dist/cobalt/{p-13e5b724.entry.js → p-f6f273f7.entry.js} +1 -1
  175. package/dist/cobalt/{p-71ae1551.entry.js → p-fb6671e0.entry.js} +1 -1
  176. package/dist/cobalt/p-fb731600.entry.js +1 -0
  177. package/dist/cobalt/{p-7d1718ed.entry.js → p-feec49a4.entry.js} +1 -1
  178. package/dist/cobalt/p-ff218d09.entry.js +1 -0
  179. package/dist/cobalt/p-hXbDUT3I.js +1 -0
  180. package/dist/collection/components/co-action-bar/co-action-bar.css +6 -2
  181. package/dist/collection/components/co-app-shell/co-app-shell.css +6 -5
  182. package/dist/collection/components/co-autocomplete/co-autocomplete.css +12 -6
  183. package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
  184. package/dist/collection/components/co-avatar/co-avatar.css +11 -1
  185. package/dist/collection/components/co-avatar/co-avatar.js +5 -2
  186. package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
  187. package/dist/collection/components/co-button/co-button.css +38 -7
  188. package/dist/collection/components/co-button/co-button.js +34 -6
  189. package/dist/collection/components/co-calendar/co-calendar.css +4 -1
  190. package/dist/collection/components/co-calendar-month/co-calendar-month.css +3 -1
  191. package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +3 -1
  192. package/dist/collection/components/co-checkbox/co-checkbox.css +5 -1
  193. package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +10 -5
  194. package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
  195. package/dist/collection/components/co-chip/co-chip.css +17 -12
  196. package/dist/collection/components/co-color-area/co-color-area.js +2 -2
  197. package/dist/collection/components/co-color-picker/co-color-picker.css +19 -7
  198. package/dist/collection/components/co-color-picker/co-color-picker.js +42 -3
  199. package/dist/collection/components/co-color-slider/co-color-slider.js +1 -1
  200. package/dist/collection/components/co-column-picker/co-column-picker.css +10 -5
  201. package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
  202. package/dist/collection/components/co-combobox/co-combobox.css +8 -5
  203. package/dist/collection/components/co-combobox/co-combobox.js +7 -5
  204. package/dist/collection/components/co-command-search/co-command-search.css +5 -2
  205. package/dist/collection/components/co-command-search/co-command-search.js +1 -1
  206. package/dist/collection/components/co-data-table/co-data-table.css +13 -10
  207. package/dist/collection/components/co-data-table/co-data-table.js +1 -1
  208. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +15 -13
  209. package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
  210. package/dist/collection/components/co-date-field/co-date-field.css +11 -5
  211. package/dist/collection/components/co-date-field/co-date-field.js +4 -4
  212. package/dist/collection/components/co-date-picker/co-date-picker.css +5 -2
  213. package/dist/collection/components/co-date-range/co-date-range.js +1 -1
  214. package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +9 -3
  215. package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
  216. package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +11 -5
  217. package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
  218. package/dist/collection/components/co-document-editor/co-document-editor.css +112 -1
  219. package/dist/collection/components/co-document-editor/co-document-editor.js +91 -10
  220. package/dist/collection/components/co-document-editor/signature-bar.js +26 -0
  221. package/dist/collection/components/co-drawer/co-drawer.css +12 -4
  222. package/dist/collection/components/co-drawer/co-drawer.js +16 -0
  223. package/dist/collection/components/co-drive-card/co-drive-card.css +18 -12
  224. package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
  225. package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
  226. package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
  227. package/dist/collection/components/co-empty-state/co-empty-state.css +10 -6
  228. package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
  229. package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
  230. package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
  231. package/dist/collection/components/co-fab/co-fab.css +5 -3
  232. package/dist/collection/components/co-fab/co-fab.js +2 -2
  233. package/dist/collection/components/co-file-field/co-file-field.css +11 -6
  234. package/dist/collection/components/co-file-field/co-file-field.js +30 -16
  235. package/dist/collection/components/co-file-field/co-file-field.utils.js +57 -0
  236. package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
  237. package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +2 -2
  238. package/dist/collection/components/co-helper-text/co-helper-text.css +6 -4
  239. package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
  240. package/dist/collection/components/co-icon/co-icon.js +2 -2
  241. package/dist/collection/components/co-icon-button/co-icon-button.css +5 -3
  242. package/dist/collection/components/co-icon-button/co-icon-button.js +2 -2
  243. package/dist/collection/components/co-input/co-input.css +49 -22
  244. package/dist/collection/components/co-json-field/co-json-field.css +10 -5
  245. package/dist/collection/components/co-json-field/co-json-field.js +3 -3
  246. package/dist/collection/components/co-kbd/co-kbd.js +1 -1
  247. package/dist/collection/components/co-lightbox/co-lightbox.js +8 -7
  248. package/dist/collection/components/co-lightbox/openInTab.js +63 -0
  249. package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
  250. package/dist/collection/components/co-list-item/co-list-item.js +4 -4
  251. package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
  252. package/dist/collection/components/co-menu/co-menu.css +7 -0
  253. package/dist/collection/components/co-menu/co-menu.js +2 -2
  254. package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
  255. package/dist/collection/components/co-menu-item/co-menu-item.css +19 -7
  256. package/dist/collection/components/co-modal/co-modal.css +3 -0
  257. package/dist/collection/components/co-modal/co-modal.js +23 -2
  258. package/dist/collection/components/co-navbar/co-navbar.js +2 -2
  259. package/dist/collection/components/co-number-field/co-number-field.css +12 -6
  260. package/dist/collection/components/co-number-field/co-number-field.js +3 -3
  261. package/dist/collection/components/co-option-list/co-option-list.css +7 -4
  262. package/dist/collection/components/co-option-list/co-option-list.js +2 -2
  263. package/dist/collection/components/co-overlay/co-overlay.css +3 -0
  264. package/dist/collection/components/co-overlay/co-overlay.js +1 -1
  265. package/dist/collection/components/co-overlay/escapeLayers.js +20 -0
  266. package/dist/collection/components/co-page-header/co-page-header.js +1 -1
  267. package/dist/collection/components/co-phone-field/co-phone-field.css +8 -3
  268. package/dist/collection/components/co-phone-field/co-phone-field.js +36 -1
  269. package/dist/collection/components/co-popover/co-popover.css +4 -0
  270. package/dist/collection/components/co-popover/co-popover.js +33 -4
  271. package/dist/collection/components/co-progress-bar/co-progress-bar.css +6 -2
  272. package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
  273. package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
  274. package/dist/collection/components/co-radio/co-radio.js +3 -3
  275. package/dist/collection/components/co-radio-group/co-radio-group.css +10 -5
  276. package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
  277. package/dist/collection/components/co-rating/co-rating.css +6 -4
  278. package/dist/collection/components/co-rating/co-rating.js +3 -3
  279. package/dist/collection/components/co-ref-field/co-ref-field.css +43 -8
  280. package/dist/collection/components/co-ref-field/co-ref-field.js +17 -10
  281. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +26 -4
  282. package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +77 -20
  283. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +3 -1
  284. package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +40 -0
  285. package/dist/collection/components/co-rich-text-toolbar/panelFit.js +63 -0
  286. package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +2 -1
  287. package/dist/collection/components/co-row/co-row.js +2 -2
  288. package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
  289. package/dist/collection/components/co-select/co-select.css +22 -12
  290. package/dist/collection/components/co-select/co-select.js +10 -8
  291. package/dist/collection/components/co-separator/co-separator.js +1 -1
  292. package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
  293. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +56 -19
  294. package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +11 -9
  295. package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
  296. package/dist/collection/components/co-slider/co-slider.css +6 -4
  297. package/dist/collection/components/co-slider/co-slider.js +2 -2
  298. package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +1 -1
  299. package/dist/collection/components/co-switch/co-switch.css +16 -7
  300. package/dist/collection/components/co-switch/co-switch.js +3 -3
  301. package/dist/collection/components/co-tab/co-tab.css +33 -29
  302. package/dist/collection/components/co-tab/co-tab.js +2 -2
  303. package/dist/collection/components/co-tab-group/co-tab-group.css +26 -6
  304. package/dist/collection/components/co-tab-group/co-tab-group.js +78 -11
  305. package/dist/collection/components/co-tab-group/trackScroll.js +31 -0
  306. package/dist/collection/components/co-tags-field/co-tags-field.css +10 -5
  307. package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
  308. package/dist/collection/components/co-textarea/co-textarea.css +12 -7
  309. package/dist/collection/components/co-textarea/co-textarea.js +4 -4
  310. package/dist/collection/components/co-tile/co-tile.js +1 -1
  311. package/dist/collection/components/co-time-field/co-time-field.js +1 -1
  312. package/dist/collection/components/co-toast/co-toast.css +36 -25
  313. package/dist/collection/components/co-toast/co-toast.js +2 -2
  314. package/dist/collection/components/co-toggle-button/co-toggle-button.css +47 -0
  315. package/dist/collection/components/co-toggle-button/co-toggle-button.js +7 -5
  316. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +12 -0
  317. package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +10 -8
  318. package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
  319. package/dist/collection/components/co-transfer-list/co-transfer-list.css +15 -8
  320. package/dist/collection/components/co-transfer-list/co-transfer-list.js +1 -1
  321. package/dist/collection/components/co-tree-item/co-tree-item.js +2 -2
  322. package/dist/collection/components/co-video/co-video.js +2 -2
  323. package/dist/collection/utils/amountText.js +5 -1
  324. package/dist/collection/utils/color.js +36 -2
  325. package/dist/collection/utils/eventColor.js +7 -3
  326. package/dist/collection/utils/fieldChip.js +1 -1
  327. package/dist/collection/utils/phoneI18n.js +34 -0
  328. package/dist/collection/utils/richTextI18n.js +12 -0
  329. package/dist/components/co-accordion.js +1 -1
  330. package/dist/components/co-action-bar.js +1 -1
  331. package/dist/components/co-app-shell.js +1 -1
  332. package/dist/components/co-audio-player.js +1 -1
  333. package/dist/components/co-autocomplete.js +1 -1
  334. package/dist/components/co-avatar-group.js +1 -1
  335. package/dist/components/co-avatar.js +1 -1
  336. package/dist/components/co-breadcrumb-item.js +1 -1
  337. package/dist/components/co-breadcrumb.js +1 -1
  338. package/dist/components/co-button.js +1 -1
  339. package/dist/components/co-calendar-month.js +1 -1
  340. package/dist/components/co-calendar-timegrid.js +1 -1
  341. package/dist/components/co-calendar.js +1 -1
  342. package/dist/components/co-carousel.js +1 -1
  343. package/dist/components/co-checkbox-group.js +1 -1
  344. package/dist/components/co-checkbox.js +1 -1
  345. package/dist/components/co-chip.js +1 -1
  346. package/dist/components/co-color-picker.js +1 -1
  347. package/dist/components/co-column-picker.js +1 -1
  348. package/dist/components/co-combobox.js +1 -1
  349. package/dist/components/co-command-search.js +1 -1
  350. package/dist/components/co-data-table-pagination.js +1 -1
  351. package/dist/components/co-data-table.js +1 -1
  352. package/dist/components/co-date-field.js +1 -1
  353. package/dist/components/co-date-picker.js +1 -1
  354. package/dist/components/co-date-range-picker.js +1 -1
  355. package/dist/components/co-date-range.js +1 -1
  356. package/dist/components/co-date-time-picker.js +1 -1
  357. package/dist/components/co-document-editor.js +1 -1
  358. package/dist/components/co-drawer.js +1 -1
  359. package/dist/components/co-drive-card.js +1 -1
  360. package/dist/components/co-drop-zone.js +1 -1
  361. package/dist/components/co-emoji-picker.js +1 -1
  362. package/dist/components/co-empty-state.js +1 -1
  363. package/dist/components/co-event-calendar.js +1 -1
  364. package/dist/components/co-event-popover.js +1 -1
  365. package/dist/components/co-fab.js +1 -1
  366. package/dist/components/co-file-field.js +1 -1
  367. package/dist/components/co-file-type-tile.js +1 -1
  368. package/dist/components/co-gradient-bar.js +1 -1
  369. package/dist/components/co-helper-text.js +1 -1
  370. package/dist/components/co-icon-button.js +1 -1
  371. package/dist/components/co-icon.js +1 -1
  372. package/dist/components/co-input.js +1 -1
  373. package/dist/components/co-json-field.js +1 -1
  374. package/dist/components/co-kbd.js +1 -1
  375. package/dist/components/co-lightbox.js +1 -1
  376. package/dist/components/co-list-footer.js +1 -1
  377. package/dist/components/co-list-item.js +1 -1
  378. package/dist/components/co-media-thumb.js +1 -1
  379. package/dist/components/co-menu-divider.js +1 -1
  380. package/dist/components/co-menu-item.js +1 -1
  381. package/dist/components/co-menu.js +1 -1
  382. package/dist/components/co-modal.js +1 -1
  383. package/dist/components/co-navbar.js +1 -1
  384. package/dist/components/co-number-field.js +1 -1
  385. package/dist/components/co-option-list.js +1 -1
  386. package/dist/components/co-overlay.js +1 -1
  387. package/dist/components/co-page-header.js +1 -1
  388. package/dist/components/co-phone-field.js +1 -1
  389. package/dist/components/co-popover.js +1 -1
  390. package/dist/components/co-progress-bar.js +1 -1
  391. package/dist/components/co-progress-circle.js +1 -1
  392. package/dist/components/co-radio-group.js +1 -1
  393. package/dist/components/co-radio.js +1 -1
  394. package/dist/components/co-rating.js +1 -1
  395. package/dist/components/co-ref-field.js +1 -1
  396. package/dist/components/co-rich-text-editor.js +1 -1
  397. package/dist/components/co-rich-text-toolbar.js +1 -1
  398. package/dist/components/co-rich-text-viewer.js +1 -1
  399. package/dist/components/co-row.js +1 -1
  400. package/dist/components/co-select.js +1 -1
  401. package/dist/components/co-separator.js +1 -1
  402. package/dist/components/co-sidebar-nav.js +1 -1
  403. package/dist/components/co-sidebar.js +1 -1
  404. package/dist/components/co-skeleton.js +1 -1
  405. package/dist/components/co-slider.js +1 -1
  406. package/dist/components/co-swatch-grid.js +1 -1
  407. package/dist/components/co-switch.js +1 -1
  408. package/dist/components/co-tab-group.js +1 -1
  409. package/dist/components/co-tab.js +1 -1
  410. package/dist/components/co-tags-field.js +1 -1
  411. package/dist/components/co-textarea.js +1 -1
  412. package/dist/components/co-tile.js +1 -1
  413. package/dist/components/co-time-field.js +1 -1
  414. package/dist/components/co-toast.js +1 -1
  415. package/dist/components/co-toggle-button-group.js +1 -1
  416. package/dist/components/co-toggle-button.js +1 -1
  417. package/dist/components/co-tooltip.js +1 -1
  418. package/dist/components/co-transfer-list.js +1 -1
  419. package/dist/components/co-tree-item.js +1 -1
  420. package/dist/components/co-video.js +1 -1
  421. package/dist/components/{p-CxWo3qDo.js → p-4Y3YkFf1.js} +1 -1
  422. package/dist/components/{p-V7HYy0VO.js → p-B5F93Ujt.js} +1 -1
  423. package/dist/components/p-B70R6xWE.js +1 -0
  424. package/dist/components/p-BSt2t5Fy.js +1 -0
  425. package/dist/components/p-BfDYq7JS.js +1 -0
  426. package/dist/components/{p-C4sZjIDj.js → p-BhmVj5-9.js} +1 -1
  427. package/dist/components/p-BzxEh7sq.js +1 -0
  428. package/dist/components/p-CDiRdG6I.js +1 -0
  429. package/dist/components/p-CMMv2RcH.js +1 -0
  430. package/dist/components/{p-Dn2wblrA.js → p-CO12CK0t.js} +1 -1
  431. package/dist/components/{p-DymSqdlK.js → p-COCcx0DN.js} +1 -1
  432. package/dist/components/{p-DXLeDZvr.js → p-CP7MznKV.js} +1 -1
  433. package/dist/components/{p-wUXcJGdy.js → p-CX0bNXK3.js} +1 -1
  434. package/dist/components/{p-Bw_b_czs.js → p-CXi0fhTi.js} +1 -1
  435. package/dist/components/p-CaAdnjC6.js +1 -0
  436. package/dist/components/p-CaFwCFgg.js +1 -0
  437. package/dist/components/p-CjB5Vqpy.js +1 -0
  438. package/dist/components/p-Co0eKIiO.js +1 -0
  439. package/dist/components/{p-Ch-Tygdb.js → p-CqQobidl.js} +1 -1
  440. package/dist/components/{p-BRZci8B3.js → p-CwRoHnzq.js} +1 -1
  441. package/dist/components/{p-Dnz99Ox_.js → p-DMW9TJ7Z.js} +1 -1
  442. package/dist/components/p-DTWqwwXO.js +1 -0
  443. package/dist/components/{p-8XzG8pzY.js → p-DldA2IL3.js} +1 -1
  444. package/dist/components/p-LnW75kr5.js +1 -0
  445. package/dist/components/p-R1W48hzW.js +1 -0
  446. package/dist/components/{p-BW10Sgiy.js → p-_S5htX1i.js} +1 -1
  447. package/dist/components/p-hXbDUT3I.js +1 -0
  448. package/dist/components/p-o5wUtH9g.js +1 -0
  449. package/dist/components/{p-KK2vAKs-.js → p-qMNHMnvI.js} +1 -1
  450. package/dist/components/{p-C6WHpL5X.js → p-rfvTj6cP.js} +1 -1
  451. package/dist/components/{p-BI_VaFsx.js → p-upZqhFKo.js} +1 -1
  452. package/dist/components/{p-COozgrEk.js → p-w3AQrtBx.js} +1 -1
  453. package/dist/components/p-xtGT3YeI.js +1 -0
  454. package/dist/esm/co-action-bar.entry.js +1 -1
  455. package/dist/esm/co-app-shell.entry.js +1 -1
  456. package/dist/esm/co-autocomplete.entry.js +1 -1
  457. package/dist/esm/co-avatar.entry.js +6 -3
  458. package/dist/esm/co-button.entry.js +14 -6
  459. package/dist/esm/co-calendar-month_2.entry.js +9 -5
  460. package/dist/esm/co-calendar_3.entry.js +23 -7
  461. package/dist/esm/co-checkbox-group.entry.js +1 -1
  462. package/dist/esm/co-checkbox.entry.js +1 -1
  463. package/dist/esm/co-chip_2.entry.js +4 -4
  464. package/dist/esm/co-color-picker.entry.js +24 -5
  465. package/dist/esm/co-column-picker.entry.js +3 -3
  466. package/dist/esm/co-combobox.entry.js +7 -5
  467. package/dist/esm/co-command-search.entry.js +1 -1
  468. package/dist/esm/co-data-table-pagination.entry.js +5 -5
  469. package/dist/esm/co-data-table.entry.js +1 -1
  470. package/dist/esm/co-date-picker.entry.js +1 -1
  471. package/dist/esm/co-date-range-picker.entry.js +1 -1
  472. package/dist/esm/co-date-range.entry.js +1 -1
  473. package/dist/esm/co-date-time-picker.entry.js +3 -3
  474. package/dist/esm/co-document-editor.entry.js +108 -7
  475. package/dist/esm/co-drive-card.entry.js +2 -2
  476. package/dist/esm/co-drop-zone.entry.js +1 -1
  477. package/dist/esm/co-emoji-picker.entry.js +2 -2
  478. package/dist/esm/co-empty-state.entry.js +3 -3
  479. package/dist/esm/co-event-calendar.entry.js +2 -2
  480. package/dist/esm/co-event-popover.entry.js +1 -1
  481. package/dist/esm/co-fab.entry.js +3 -3
  482. package/dist/esm/co-file-field.entry.js +87 -16
  483. package/dist/esm/co-file-type-tile.entry.js +2 -2
  484. package/dist/esm/co-gradient-bar.entry.js +4 -4
  485. package/dist/esm/co-helper-text.entry.js +3 -3
  486. package/dist/esm/co-icon-button.entry.js +3 -3
  487. package/dist/esm/co-icon.entry.js +2 -2
  488. package/dist/esm/co-input.entry.js +1 -1
  489. package/dist/esm/co-json-field.entry.js +4 -4
  490. package/dist/esm/co-kbd_2.entry.js +3 -3
  491. package/dist/esm/co-lightbox.entry.js +71 -7
  492. package/dist/esm/co-list-footer.entry.js +1 -1
  493. package/dist/esm/co-list-item.entry.js +4 -4
  494. package/dist/esm/co-media-thumb.entry.js +2 -2
  495. package/dist/esm/co-menu-divider.entry.js +1 -1
  496. package/dist/esm/co-menu-item.entry.js +1 -1
  497. package/dist/esm/co-menu.entry.js +3 -3
  498. package/dist/esm/co-modal.entry.js +23 -3
  499. package/dist/esm/co-navbar.entry.js +2 -2
  500. package/dist/esm/co-number-field.entry.js +9 -5
  501. package/dist/esm/co-overlay.entry.js +2 -2
  502. package/dist/esm/co-page-header.entry.js +1 -1
  503. package/dist/esm/co-phone-field.entry.js +52 -2
  504. package/dist/esm/co-popover.entry.js +33 -4
  505. package/dist/esm/co-progress-bar.entry.js +3 -3
  506. package/dist/esm/co-progress-circle.entry.js +2 -2
  507. package/dist/esm/co-provider-logo_2.entry.js +1 -1
  508. package/dist/esm/co-radio-group.entry.js +1 -1
  509. package/dist/esm/co-radio.entry.js +3 -3
  510. package/dist/esm/co-rating.entry.js +4 -4
  511. package/dist/esm/co-ref-field.entry.js +15 -8
  512. package/dist/esm/co-rich-text-editor.entry.js +80 -23
  513. package/dist/esm/co-rich-text-toolbar.entry.js +105 -2
  514. package/dist/esm/co-rich-text-viewer.entry.js +2 -2
  515. package/dist/esm/co-row.entry.js +2 -2
  516. package/dist/esm/co-select.entry.js +10 -8
  517. package/dist/esm/co-separator.entry.js +1 -1
  518. package/dist/esm/co-sidebar-nav.entry.js +11 -9
  519. package/dist/esm/co-sidebar.entry.js +2 -2
  520. package/dist/esm/co-slider.entry.js +3 -3
  521. package/dist/esm/co-swatch-grid.entry.js +3 -3
  522. package/dist/esm/co-switch.entry.js +4 -4
  523. package/dist/esm/co-tab-group.entry.js +110 -12
  524. package/dist/esm/co-tab.entry.js +3 -3
  525. package/dist/esm/co-tags-field.entry.js +7 -7
  526. package/dist/esm/co-textarea.entry.js +5 -5
  527. package/dist/esm/co-tile.entry.js +1 -1
  528. package/dist/esm/co-time-field.entry.js +1 -1
  529. package/dist/esm/co-toast.entry.js +1 -1
  530. package/dist/esm/co-toggle-button-group.entry.js +6 -4
  531. package/dist/esm/co-toggle-button.entry.js +5 -3
  532. package/dist/esm/co-transfer-list.entry.js +1 -1
  533. package/dist/esm/co-video.entry.js +2 -2
  534. package/dist/esm/cobalt.js +1 -1
  535. package/dist/esm/{color-BVGGRfNG.js → color-BzxEh7sq.js} +37 -3
  536. package/dist/esm/escapeLayers-hXbDUT3I.js +18 -0
  537. package/dist/esm/fieldChip-B0N8z5W-.js +5 -0
  538. package/dist/esm/{gradientStops-DDK0y8ra.js → gradientStops-W-_rTTl_.js} +1 -1
  539. package/dist/esm/{index-CgyOJePd.js → index-BNt7Zg14.js} +1 -1
  540. package/dist/esm/index-DJkaRtbb.js +14 -14
  541. package/dist/esm/loader.js +1 -1
  542. package/dist/esm/{pagination-BzrIQtrk.js → pagination-BXztNUE3.js} +30 -0
  543. package/dist/esm/{richTextI18n-xnrKkNWQ.js → richTextI18n-EtYK1iGx.js} +12 -0
  544. package/dist/types/components/co-button/co-button.d.ts +4 -0
  545. package/dist/types/components/co-color-picker/co-color-picker.d.ts +7 -0
  546. package/dist/types/components/co-document-editor/co-document-editor.d.ts +24 -1
  547. package/dist/types/components/co-document-editor/signature-bar.d.ts +26 -0
  548. package/dist/types/components/co-drawer/co-drawer.d.ts +2 -0
  549. package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
  550. package/dist/types/components/co-file-field/co-file-field.utils.d.ts +26 -0
  551. package/dist/types/components/co-lightbox/co-lightbox.d.ts +5 -0
  552. package/dist/types/components/co-lightbox/openInTab.d.ts +46 -0
  553. package/dist/types/components/co-modal/co-modal.d.ts +2 -0
  554. package/dist/types/components/co-overlay/escapeLayers.d.ts +18 -0
  555. package/dist/types/components/co-phone-field/co-phone-field.d.ts +11 -0
  556. package/dist/types/components/co-popover/co-popover.d.ts +7 -0
  557. package/dist/types/components/co-ref-field/co-ref-field.d.ts +3 -2
  558. package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +14 -1
  559. package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +10 -0
  560. package/dist/types/components/co-rich-text-toolbar/panelFit.d.ts +38 -0
  561. package/dist/types/components/co-tab-group/co-tab-group.d.ts +21 -3
  562. package/dist/types/components/co-tab-group/trackScroll.d.ts +19 -0
  563. package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +3 -1
  564. package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +6 -4
  565. package/dist/types/components.d.ts +50 -25
  566. package/dist/types/utils/color.d.ts +28 -1
  567. package/dist/types/utils/eventColor.d.ts +3 -1
  568. package/dist/types/utils/fieldChip.d.ts +6 -0
  569. package/dist/types/utils/phoneI18n.d.ts +18 -0
  570. package/dist/types/utils/richTextI18n.d.ts +4 -0
  571. package/package.json +3 -3
  572. package/dist/cjs/fieldChip-C7MxxBVO.js +0 -7
  573. package/dist/cobalt/p-0d046d98.entry.js +0 -1
  574. package/dist/cobalt/p-12914c0a.entry.js +0 -1
  575. package/dist/cobalt/p-1348d5ca.entry.js +0 -1
  576. package/dist/cobalt/p-2231bacc.entry.js +0 -1
  577. package/dist/cobalt/p-28cf05f3.entry.js +0 -1
  578. package/dist/cobalt/p-3d1a48e5.entry.js +0 -1
  579. package/dist/cobalt/p-4bcdd422.entry.js +0 -1
  580. package/dist/cobalt/p-58ebb303.entry.js +0 -1
  581. package/dist/cobalt/p-5e678e88.entry.js +0 -1
  582. package/dist/cobalt/p-60f948c4.entry.js +0 -1
  583. package/dist/cobalt/p-6974df59.entry.js +0 -1
  584. package/dist/cobalt/p-69ecc933.entry.js +0 -1
  585. package/dist/cobalt/p-6c1992c9.entry.js +0 -1
  586. package/dist/cobalt/p-6c7e423c.entry.js +0 -1
  587. package/dist/cobalt/p-6d4a660c.entry.js +0 -1
  588. package/dist/cobalt/p-763698b3.entry.js +0 -1
  589. package/dist/cobalt/p-77e0d401.entry.js +0 -1
  590. package/dist/cobalt/p-78412feb.entry.js +0 -1
  591. package/dist/cobalt/p-7c20207b.entry.js +0 -1
  592. package/dist/cobalt/p-7df18a52.entry.js +0 -1
  593. package/dist/cobalt/p-848f5ca4.entry.js +0 -1
  594. package/dist/cobalt/p-87de5469.entry.js +0 -1
  595. package/dist/cobalt/p-93063876.entry.js +0 -1
  596. package/dist/cobalt/p-9adbab95.entry.js +0 -1
  597. package/dist/cobalt/p-9b114836.entry.js +0 -1
  598. package/dist/cobalt/p-9dc01092.entry.js +0 -1
  599. package/dist/cobalt/p-BVGGRfNG.js +0 -1
  600. package/dist/cobalt/p-DGLDAl09.js +0 -1
  601. package/dist/cobalt/p-DgJovDdy.js +0 -1
  602. package/dist/cobalt/p-a56bd4a8.entry.js +0 -1
  603. package/dist/cobalt/p-a5eabecb.entry.js +0 -1
  604. package/dist/cobalt/p-a5ee1fc2.entry.js +0 -1
  605. package/dist/cobalt/p-ad752791.entry.js +0 -1
  606. package/dist/cobalt/p-b39a4999.entry.js +0 -1
  607. package/dist/cobalt/p-b5dabdc3.entry.js +0 -1
  608. package/dist/cobalt/p-b9b73dcb.entry.js +0 -1
  609. package/dist/cobalt/p-bb7bbe70.entry.js +0 -1
  610. package/dist/cobalt/p-c5464a98.entry.js +0 -1
  611. package/dist/cobalt/p-c567533e.entry.js +0 -1
  612. package/dist/cobalt/p-d6215d80.entry.js +0 -1
  613. package/dist/cobalt/p-ea24eea8.entry.js +0 -1
  614. package/dist/cobalt/p-f0898e21.entry.js +0 -1
  615. package/dist/cobalt/p-f403eeec.entry.js +0 -1
  616. package/dist/cobalt/p-xnrKkNWQ.js +0 -1
  617. package/dist/components/p-B3Egz082.js +0 -1
  618. package/dist/components/p-B9wdMd_0.js +0 -1
  619. package/dist/components/p-BVGGRfNG.js +0 -1
  620. package/dist/components/p-BdmzslA5.js +0 -1
  621. package/dist/components/p-BzNBPHen.js +0 -1
  622. package/dist/components/p-C4U2tbRp.js +0 -1
  623. package/dist/components/p-C_6szR7t.js +0 -1
  624. package/dist/components/p-CiYPJW0B.js +0 -1
  625. package/dist/components/p-D4XP17VP.js +0 -1
  626. package/dist/components/p-DB8DGMc-.js +0 -1
  627. package/dist/components/p-DGLDAl09.js +0 -1
  628. package/dist/components/p-DhPxNA2f.js +0 -1
  629. package/dist/components/p-DsuFNmTI.js +0 -1
  630. package/dist/components/p-TGRbLkLz.js +0 -1
  631. package/dist/components/p-dnaee7fS.js +0 -1
  632. package/dist/esm/fieldChip-B2ctp2m6.js +0 -5
@@ -1 +1 @@
1
- import{r as t,c as i,h as s,a as e}from"./p-DJkaRtbb.js";import{R as o}from"./p-CYN5B3IQ.js";import{g as a}from"./p-jYd9gu_c.js";const r=class{constructor(s){t(this,s),this.coInput=i(this,"coInput",7),this.coChange=i(this,"coChange",7),this.coInvalid=i(this,"coInvalid",7),this.coClear=i(this,"coClear",7),this.coFocus=i(this,"coFocus",7),this.coBlur=i(this,"coBlur",7),this.coOpen=i(this,"coOpen",3),this.coClose=i(this,"coClose",3),this.value=null,this.locale="es-CO",this.displayFormat="d MMM yyyy",this.firstDayOfWeek=1,this.size="md",this.variant="default",this.disabled=!1,this.readonly=!1,this.required=!1,this.clearable=!0,this.invalid=!1,this.layout="vertical",this.placement="bottom-start",this.closeOnSelect=!0,this.open=!1,this.mobileBreakpoint=600,this.isMobile=!1,this.internalInvalid=!1,this.pendingFocusGrid=!1,this.pendingFocusField=!1,this.mqlHandler=t=>{this.isMobile=t.matches},this.onFieldChange=t=>{this.value=t.detail,this.internalInvalid=!1,this.coChange.emit(t.detail)},this.onFieldInput=t=>{this.coInput.emit(t.detail)},this.onFieldInvalid=t=>{this.internalInvalid=!0,this.coInvalid.emit(t.detail)},this.onFieldClear=()=>{this.value=null,this.internalInvalid=!1,this.coClear.emit()},this.onFieldKeyDown=t=>{"ArrowDown"===t.key&&(t.preventDefault(),this.open||this.setOpen(!0),this.pendingFocusGrid=!0,this.calendarEl&&this.focusGridSoon())},this.onCalendarSelect=t=>{this.value=t.detail,this.internalInvalid=!1,this.coChange.emit(t.detail),this.closeOnSelect&&(this.setOpen(!1),this.pendingFocusField=!0)},this.onPopoverOpen=()=>{this.open||(this.open=!0,this.coOpen.emit())},this.onPopoverClose=()=>{this.open&&(this.open=!1,this.coClose.emit())},this.onRootKeyDown=t=>{"Escape"===t.key&&this.open&&(t.stopPropagation(),this.setOpen(!1),this.pendingFocusField=!0)}}connectedCallback(){this.mql=window.matchMedia(`(max-width: ${this.mobileBreakpoint}px)`),this.isMobile=this.mql.matches,this.mql.addEventListener("change",this.mqlHandler)}disconnectedCallback(){var t;null===(t=this.mql)||void 0===t||t.removeEventListener("change",this.mqlHandler)}get isInvalid(){return this.invalid||this.internalInvalid}setOpen(t){this.open!==t&&(this.open=t,t?this.coOpen.emit():this.coClose.emit())}focusGridSoon(){requestAnimationFrame((()=>{var t,i;null===(i=null===(t=this.calendarEl)||void 0===t?void 0:t.focusGrid)||void 0===i||i.call(t)}))}componentDidRender(){var t,i;this.pendingFocusGrid&&this.open&&this.calendarEl&&(this.pendingFocusGrid=!1,this.focusGridSoon()),this.pendingFocusField&&(this.pendingFocusField=!1,null===(i=null===(t=this.fieldEl)||void 0===t?void 0:t.focusInput)||void 0===i||i.call(t))}renderField(){return s("co-date-field",{ref:t=>this.fieldEl=t,"data-variant":this.variant,value:this.value,min:this.min,max:this.max,disabledDates:this.disabledDates,disabledDaysOfWeek:this.disabledDaysOfWeek,locale:this.locale,displayFormat:this.displayFormat,placeholder:this.placeholder,size:this.size,name:this.name,disabled:this.disabled,readonly:this.readonly,required:this.required,clearable:this.clearable,invalid:this.isInvalid,onCoChange:this.onFieldChange,onCoInput:this.onFieldInput,onCoInvalid:this.onFieldInvalid,onCoClear:this.onFieldClear,onCoFocus:()=>this.coFocus.emit(),onCoBlur:()=>this.coBlur.emit()})}renderCalendar(t){return s("co-calendar",{ref:t=>this.calendarEl=t,"data-touch":t?"":void 0,value:this.value,min:this.min,max:this.max,disabledDates:this.disabledDates,disabledDaysOfWeek:this.disabledDaysOfWeek,locale:this.locale,firstDayOfWeek:this.firstDayOfWeek,onCoSelect:this.onCalendarSelect})}renderHelper(){const t=this.isInvalid?this.errorMessage:this.helperText;return t?s("div",{class:{"co-date-picker__helper":!0,"co-date-picker__helper--error":this.isInvalid},part:"helper"},this.isInvalid&&s("co-icon",{name:"warning-circle",size:14}),s("span",null,t)):null}render(){if(this.isMobile){const t=a(this.locale);return s("div",{class:"co-date-picker co-date-picker--mobile",onKeyDown:this.onRootKeyDown},this.label&&s("label",{class:"co-date-picker__label",part:"label"},this.label,s(o,{required:this.required})),s("div",{class:"co-date-picker__trigger",onClick:()=>!this.disabled&&this.setOpen(!0)},this.renderField()),s("co-drawer",{position:"bottom",open:this.open,heading:t.selectDate,onCoClose:()=>this.setOpen(!1)},s("div",{class:"co-date-picker__sheet"},this.renderCalendar(!0))),this.renderHelper())}return s("div",{class:"co-date-picker",onKeyDown:this.onRootKeyDown},this.label&&s("label",{class:"co-date-picker__label",part:"label"},this.label,s(o,{required:this.required})),s("co-popover",{open:this.open,placement:this.placement,offset:4,closeOnEscape:!1,onCoOpen:this.onPopoverOpen,onCoClose:this.onPopoverClose},s("div",{slot:"trigger",class:"co-date-picker__trigger",onKeyDown:this.onFieldKeyDown},this.renderField()),this.open&&s("div",{class:"co-date-picker__panel"},this.renderCalendar(!1))),this.renderHelper())}get el(){return e(this)}};r.style=":host{display:block;font-family:var(--co-font-family-primary)}.co-date-picker{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}co-date-field[data-variant='flat']::part(field){background:transparent;border-color:transparent}.co-date-picker__label{padding:0 var(--co-spacing-xs);color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1;white-space:nowrap;cursor:default}.co-date-picker__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs);color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-date-picker__helper--error{color:var(--co-semantic-status-error)}.co-date-picker co-popover{display:block;width:100%}.co-date-picker__trigger{display:block;width:100%;cursor:text}.co-date-picker__panel{padding:var(--co-spacing-md)}.co-date-picker__sheet{display:flex;justify-content:center;padding:var(--co-spacing-sm) 0 var(--co-spacing-lg)}:host([layout='horizontal']) .co-date-picker{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-date-picker__label{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-date-picker__label{white-space:normal}:host([layout='horizontal']) .co-date-picker>:not(.co-date-picker__label){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-color-status-error)}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}";export{r as co_date_picker}
1
+ import{r as t,c as i,h as s,a as e}from"./p-DJkaRtbb.js";import{R as o}from"./p-CYN5B3IQ.js";import{g as a}from"./p-jYd9gu_c.js";const r=class{constructor(s){t(this,s),this.coInput=i(this,"coInput",7),this.coChange=i(this,"coChange",7),this.coInvalid=i(this,"coInvalid",7),this.coClear=i(this,"coClear",7),this.coFocus=i(this,"coFocus",7),this.coBlur=i(this,"coBlur",7),this.coOpen=i(this,"coOpen",3),this.coClose=i(this,"coClose",3),this.value=null,this.locale="es-CO",this.displayFormat="d MMM yyyy",this.firstDayOfWeek=1,this.size="md",this.variant="default",this.disabled=!1,this.readonly=!1,this.required=!1,this.clearable=!0,this.invalid=!1,this.layout="vertical",this.placement="bottom-start",this.closeOnSelect=!0,this.open=!1,this.mobileBreakpoint=600,this.isMobile=!1,this.internalInvalid=!1,this.pendingFocusGrid=!1,this.pendingFocusField=!1,this.mqlHandler=t=>{this.isMobile=t.matches},this.onFieldChange=t=>{this.value=t.detail,this.internalInvalid=!1,this.coChange.emit(t.detail)},this.onFieldInput=t=>{this.coInput.emit(t.detail)},this.onFieldInvalid=t=>{this.internalInvalid=!0,this.coInvalid.emit(t.detail)},this.onFieldClear=()=>{this.value=null,this.internalInvalid=!1,this.coClear.emit()},this.onFieldKeyDown=t=>{"ArrowDown"===t.key&&(t.preventDefault(),this.open||this.setOpen(!0),this.pendingFocusGrid=!0,this.calendarEl&&this.focusGridSoon())},this.onCalendarSelect=t=>{this.value=t.detail,this.internalInvalid=!1,this.coChange.emit(t.detail),this.closeOnSelect&&(this.setOpen(!1),this.pendingFocusField=!0)},this.onPopoverOpen=()=>{this.open||(this.open=!0,this.coOpen.emit())},this.onPopoverClose=()=>{this.open&&(this.open=!1,this.coClose.emit())},this.onRootKeyDown=t=>{"Escape"===t.key&&this.open&&(t.stopPropagation(),this.setOpen(!1),this.pendingFocusField=!0)}}connectedCallback(){this.mql=window.matchMedia(`(max-width: ${this.mobileBreakpoint}px)`),this.isMobile=this.mql.matches,this.mql.addEventListener("change",this.mqlHandler)}disconnectedCallback(){var t;null===(t=this.mql)||void 0===t||t.removeEventListener("change",this.mqlHandler)}get isInvalid(){return this.invalid||this.internalInvalid}setOpen(t){this.open!==t&&(this.open=t,t?this.coOpen.emit():this.coClose.emit())}focusGridSoon(){requestAnimationFrame((()=>{var t,i;null===(i=null===(t=this.calendarEl)||void 0===t?void 0:t.focusGrid)||void 0===i||i.call(t)}))}componentDidRender(){var t,i;this.pendingFocusGrid&&this.open&&this.calendarEl&&(this.pendingFocusGrid=!1,this.focusGridSoon()),this.pendingFocusField&&(this.pendingFocusField=!1,null===(i=null===(t=this.fieldEl)||void 0===t?void 0:t.focusInput)||void 0===i||i.call(t))}renderField(){return s("co-date-field",{ref:t=>this.fieldEl=t,"data-variant":this.variant,value:this.value,min:this.min,max:this.max,disabledDates:this.disabledDates,disabledDaysOfWeek:this.disabledDaysOfWeek,locale:this.locale,displayFormat:this.displayFormat,placeholder:this.placeholder,size:this.size,name:this.name,disabled:this.disabled,readonly:this.readonly,required:this.required,clearable:this.clearable,invalid:this.isInvalid,onCoChange:this.onFieldChange,onCoInput:this.onFieldInput,onCoInvalid:this.onFieldInvalid,onCoClear:this.onFieldClear,onCoFocus:()=>this.coFocus.emit(),onCoBlur:()=>this.coBlur.emit()})}renderCalendar(t){return s("co-calendar",{ref:t=>this.calendarEl=t,"data-touch":t?"":void 0,value:this.value,min:this.min,max:this.max,disabledDates:this.disabledDates,disabledDaysOfWeek:this.disabledDaysOfWeek,locale:this.locale,firstDayOfWeek:this.firstDayOfWeek,onCoSelect:this.onCalendarSelect})}renderHelper(){const t=this.isInvalid?this.errorMessage:this.helperText;return t?s("div",{class:{"co-date-picker__helper":!0,"co-date-picker__helper--error":this.isInvalid},part:"helper"},this.isInvalid&&s("co-icon",{name:"warning-circle",size:14}),s("span",null,t)):null}render(){if(this.isMobile){const t=a(this.locale);return s("div",{class:"co-date-picker co-date-picker--mobile",onKeyDown:this.onRootKeyDown},this.label&&s("label",{class:"co-date-picker__label",part:"label"},this.label,s(o,{required:this.required})),s("div",{class:"co-date-picker__trigger",onClick:()=>!this.disabled&&this.setOpen(!0)},this.renderField()),s("co-drawer",{position:"bottom",open:this.open,heading:t.selectDate,onCoClose:()=>this.setOpen(!1)},s("div",{class:"co-date-picker__sheet"},this.renderCalendar(!0))),this.renderHelper())}return s("div",{class:"co-date-picker",onKeyDown:this.onRootKeyDown},this.label&&s("label",{class:"co-date-picker__label",part:"label"},this.label,s(o,{required:this.required})),s("co-popover",{open:this.open,placement:this.placement,offset:4,closeOnEscape:!1,onCoOpen:this.onPopoverOpen,onCoClose:this.onPopoverClose},s("div",{slot:"trigger",class:"co-date-picker__trigger",onKeyDown:this.onFieldKeyDown},this.renderField()),this.open&&s("div",{class:"co-date-picker__panel"},this.renderCalendar(!1))),this.renderHelper())}get el(){return e(this)}};r.style=":host{display:block;font-family:var(--co-font-family-primary)}.co-date-picker{display:flex;flex-direction:column;gap:var(--co-spacing-sm2)}co-date-field[data-variant='flat']::part(field){background:transparent;border-color:transparent}.co-date-picker__label{padding:0 var(--co-spacing-xs);color:var(--co-semantic-text-secondary);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1;white-space:nowrap;cursor:default}.co-date-picker__helper{display:flex;align-items:center;gap:var(--co-spacing-xs);padding:0 var(--co-spacing-xs);color:var(--co-semantic-text-muted);font-size:var(--co-font-size-14);font-weight:400;letter-spacing:var(--co-font-letter-spacing-body);line-height:1}.co-date-picker__helper--error{color:var(--co-semantic-text-error, var(--co-semantic-status-error))}.co-date-picker co-popover{display:block;width:100%}.co-date-picker__trigger{display:block;width:100%;cursor:text}.co-date-picker__panel{padding:var(--co-spacing-md)}.co-date-picker__sheet{display:flex;justify-content:center;padding:var(--co-spacing-sm) 0 var(--co-spacing-lg)}:host([layout='horizontal']) .co-date-picker{display:grid;grid-template-columns:var(--co-field-label-width, max-content) 1fr;align-items:start;column-gap:var(--co-spacing-md);row-gap:var(--co-spacing-sm2)}:host([layout='horizontal']) .co-date-picker__label{grid-column:1;grid-row:1;padding-top:var(--co-spacing-sm2);min-width:0}:host([layout='horizontal']) .co-date-picker__label{white-space:normal}:host([layout='horizontal']) .co-date-picker>:not(.co-date-picker__label){grid-column:2;min-width:0}.co-field-required{margin-left:2px;color:var(--co-semantic-text-error, var(--co-color-status-error))}.co-field-required__caption{margin-left:4px;color:var(--co-semantic-text-muted);font-size:var(--co-font-size-12);font-weight:400}.co-field-required__caption::before{content:var(--co-field-required-text, ' (required)')}";export{r as co_date_picker}
@@ -0,0 +1 @@
1
+ import{r,h as s}from"./p-DJkaRtbb.js";const o=class{constructor(s){r(this,s),this.value=0,this.status="default",this.variant="solid",this.thickness=4,this.indeterminate=!1}render(){const r=Math.max(0,Math.min(100,this.value)),o=this.indeterminate;return s("div",{key:"11e44e13ee324094bd7992d79cc6dc835c9de2f3",class:{"co-progress-bar":!0,[`co-progress-bar--${this.status}`]:!0,[`co-progress-bar--${this.variant}`]:!0,"co-progress-bar--indeterminate":o},role:"progressbar","aria-valuenow":o?void 0:r,"aria-valuemin":0,"aria-valuemax":100,part:"bar",style:{height:`${this.thickness}px`}},s("div",{key:"e0448637058e041aa2ff6a49f1be5464114c0d15",class:"co-progress-bar__fill",style:o?void 0:{width:`${r}%`}}))}};o.style=":host{display:block;width:100%}.co-progress-bar{width:100%;border-radius:9999px;overflow:hidden;background:var(--co-progress-bar-track, var(--co-semantic-border-subtle));position:relative}.co-progress-bar__fill{height:100%;border-radius:9999px;transition:width 0.3s ease}.co-progress-bar--solid .co-progress-bar__fill{background:var(--co-progress-bar-fill, var(--co-semantic-status-info))}.co-progress-bar--solid.co-progress-bar--success .co-progress-bar__fill{background:var(--co-semantic-status-success)}.co-progress-bar--solid.co-progress-bar--warning .co-progress-bar__fill{background:var(--co-semantic-status-warning)}.co-progress-bar--solid.co-progress-bar--error .co-progress-bar__fill{background:var(--co-semantic-status-error)}.co-progress-bar--dashed{background:transparent;border:2px dashed var(--co-semantic-border-subtle)}.co-progress-bar--dashed .co-progress-bar__fill{background:transparent;border-bottom:2px dashed var(--co-semantic-status-info);border-radius:0}.co-progress-bar--dashed.co-progress-bar--success .co-progress-bar__fill{border-bottom-color:var(--co-semantic-status-success)}.co-progress-bar--dashed.co-progress-bar--warning .co-progress-bar__fill{border-bottom-color:var(--co-semantic-status-warning)}.co-progress-bar--dashed.co-progress-bar--error .co-progress-bar__fill{border-bottom-color:var(--co-semantic-status-error)}.co-progress-bar--dashed.co-progress-bar--default{border-color:var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08))}.co-progress-bar--indeterminate .co-progress-bar__fill{width:40%;transition:none;animation:co-progress-indeterminate 1.4s ease-in-out infinite;will-change:transform}@keyframes co-progress-indeterminate{0%{transform:translateX(-110%)}100%{transform:translateX(360%)}}@media (prefers-reduced-motion: reduce){.co-progress-bar--indeterminate .co-progress-bar__fill{animation:none;width:100%;opacity:0.45}}";export{o as co_progress_bar}
@@ -0,0 +1 @@
1
+ function n(n){if(!n||"string"!=typeof n)return null;const t=n.trim().replace("#","");return/^[0-9a-f]+$/i.test(t)?3===t.length?{r:parseInt(t[0]+t[0],16),g:parseInt(t[1]+t[1],16),b:parseInt(t[2]+t[2],16)}:6===t.length?{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16)}:null:null}function t(n,t,r){const s=n=>Math.max(0,Math.min(255,Math.round(Number.isFinite(n)?n:0))).toString(16).padStart(2,"0").toUpperCase();return`#${s(n)}${s(t)}${s(r)}`}function r(t){const r=n(t);if(!r)return null;const s=r.r/255,u=r.g/255,a=r.b/255,e=Math.max(s,u,a),o=e-Math.min(s,u,a);let c=0;return 0!==o&&(c=e===s?(u-a)/o%6:e===u?(a-s)/o+2:(s-u)/o+4,c*=60,c<0&&(c+=360)),{h:c,s:0===e?0:o/e*100,v:100*e}}function s({h:n,s:r,v:s}){const u=n=>Number.isFinite(n)?n:0,a=(u(n)%360+360)%360,e=u(r)/100,o=u(s)/100,c=o*e,i=c*(1-Math.abs(a/60%2-1)),f=o-c,l=Math.floor(a/60),h=[[c,i,0],[i,c,0],[0,c,i],[0,i,c],[i,0,c],[c,0,i]],[M,b,d]=h[l%6];return t(255*(M+f),255*(b+f),255*(d+f))}function u(n){return/^#?(?:[0-9a-f]{3}|[0-9a-f]{6})$/i.test((n||"").trim())}function a(r){const a=(r||"").trim();if(!a)return null;if(u(a)){const r=n(a);return t(r.r,r.g,r.b)}const e=a.match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(e){const[n,r,s]=[+e[1],+e[2],+e[3]];return[n,r,s].every(Number.isFinite)?t(n,r,s):null}const o=a.match(/^hsla?\(\s*([\d.-]+)(?:deg)?[\s,]+([\d.]+)%[\s,]+([\d.]+)%(?:[\s,/]+[\d.%]+)?\s*\)$/i);if(o){const n=+o[1],t=+o[3]/100,r=+o[2]/100;if(![n,t,r].every(Number.isFinite))return null;const u=t+r*Math.min(t,1-t);return s({h:n,s:100*(0===u?0:2*(1-t/u)),v:100*u})}return null}function e({r:n,g:t,b:r}){const[s,u,a]=[n/255,t/255,r/255].map((n=>n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)));return.2126*s+.7152*u+.0722*a}function o(t){const r=n(t);return r?e(r):0}const c=o("#1F1C1B"),i=Math.sqrt(1.05*(c+.05))-.05;function f(n){return o(n)>i}const l=Math.sqrt(1.05*.05)-.05;function h(n){return o(n)>l}export{i as I,u as a,a as b,r as c,s as h,f as i,e as l,h as p}
@@ -1 +1 @@
1
- import{l as r}from"./p-BVGGRfNG.js";import{c as n,h as t,r as u}from"./p-COJdaKBU.js";function o(r){var u;if(!r||"string"!=typeof r)return null;const o=r.trim();if(o.startsWith("#")){const r=t(o);return r?{r:r.r,g:r.g,b:r.b,a:null!==(u=r.a)&&void 0!==u?u:1}:null}const e=/^rgba?\(\s*([^)]*?)\s*\)$/i.exec(o);if(!e)return null;const s=e[1].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(s.length<3||s.length>4)return null;const[a,i,c]=s.slice(0,3).map((r=>Number(r)));if([a,i,c].some((r=>Number.isNaN(r))))return null;const f=void 0===s[3]?1:function(r){const t=r.endsWith("%"),u=Number(t?r.slice(0,-1):r);return Number.isNaN(u)?null:n(t?u/100:u,0,1)}(s[3]);return null===f?null:{r:n(a,0,255),g:n(i,0,255),b:n(c,0,255),a:f}}function e({r,g:n,b:t,a:o}){return o>=1?u({r,g:n,b:t}):`rgba(${Math.round(r)}, ${Math.round(n)}, ${Math.round(t)}, ${e=o,Math.round(1e3*e)/1e3})`;var e}function s(r){const n=o(r);return n?e(Object.assign(Object.assign({},n),{a:1})):r}const a=r=>[...r].sort(((r,n)=>r.position-n.position));function i(r,t){if(0===r.length)return"rgba(0, 0, 0, 0)";const u=a(r),s=n(t,0,100);if(s<=u[0].position)return u[0].color;const i=u[u.length-1];if(s>=i.position)return i.color;let c=1;for(;u[c].position<s;)c++;const f=u[c-1],l=u[c],b=l.position-f.position,g=0===b?0:(s-f.position)/b,$=g<.5?f:l,h=o(f.color),m=o(l.color);return h&&m?e({r:h.r+(m.r-h.r)*g,g:h.g+(m.g-h.g)*g,b:h.b+(m.b-h.b)*g,a:h.a+(m.a-h.a)*g}):$.color}function c(r){if(0===r.length)return"transparent";if(1===r.length){const{color:n}=r[0];return`linear-gradient(to right, ${n} 0%, ${n} 100%)`}return`linear-gradient(to right, ${a(r).map((r=>`${r.color} ${n(r.position,0,100)}%`)).join(", ")})`}function f(r){return r.some((r=>{const n=o(r.color);return!!n&&n.a<1}))}function l(r,t,u){return u<=0?0:Math.round(n((r-t)/u*100,0,100))}function b(r,t){return n(r+t,0,100)}function g(n){const t=o(n);if(!t)return!1;const u=r=>r*t.a+255*(1-t.a);return r({r:u(t.r),g:u(t.g),b:u(t.b)})>.85}export{g as a,c as g,f as h,i,s as o,l as p,b as s}
1
+ import{l as r}from"./p-BzxEh7sq.js";import{c as n,h as t,r as u}from"./p-COJdaKBU.js";function o(r){var u;if(!r||"string"!=typeof r)return null;const o=r.trim();if(o.startsWith("#")){const r=t(o);return r?{r:r.r,g:r.g,b:r.b,a:null!==(u=r.a)&&void 0!==u?u:1}:null}const e=/^rgba?\(\s*([^)]*?)\s*\)$/i.exec(o);if(!e)return null;const s=e[1].split(/\s*[,/]\s*|\s+/).filter(Boolean);if(s.length<3||s.length>4)return null;const[a,i,c]=s.slice(0,3).map((r=>Number(r)));if([a,i,c].some((r=>Number.isNaN(r))))return null;const f=void 0===s[3]?1:function(r){const t=r.endsWith("%"),u=Number(t?r.slice(0,-1):r);return Number.isNaN(u)?null:n(t?u/100:u,0,1)}(s[3]);return null===f?null:{r:n(a,0,255),g:n(i,0,255),b:n(c,0,255),a:f}}function e({r,g:n,b:t,a:o}){return o>=1?u({r,g:n,b:t}):`rgba(${Math.round(r)}, ${Math.round(n)}, ${Math.round(t)}, ${e=o,Math.round(1e3*e)/1e3})`;var e}function s(r){const n=o(r);return n?e(Object.assign(Object.assign({},n),{a:1})):r}const a=r=>[...r].sort(((r,n)=>r.position-n.position));function i(r,t){if(0===r.length)return"rgba(0, 0, 0, 0)";const u=a(r),s=n(t,0,100);if(s<=u[0].position)return u[0].color;const i=u[u.length-1];if(s>=i.position)return i.color;let c=1;for(;u[c].position<s;)c++;const f=u[c-1],l=u[c],b=l.position-f.position,g=0===b?0:(s-f.position)/b,h=g<.5?f:l,$=o(f.color),m=o(l.color);return $&&m?e({r:$.r+(m.r-$.r)*g,g:$.g+(m.g-$.g)*g,b:$.b+(m.b-$.b)*g,a:$.a+(m.a-$.a)*g}):h.color}function c(r){if(0===r.length)return"transparent";if(1===r.length){const{color:n}=r[0];return`linear-gradient(to right, ${n} 0%, ${n} 100%)`}return`linear-gradient(to right, ${a(r).map((r=>`${r.color} ${n(r.position,0,100)}%`)).join(", ")})`}function f(r){return r.some((r=>{const n=o(r.color);return!!n&&n.a<1}))}function l(r,t,u){return u<=0?0:Math.round(n((r-t)/u*100,0,100))}function b(r,t){return n(r+t,0,100)}function g(n){const t=o(n);if(!t)return!1;const u=r=>r*t.a+255*(1-t.a);return r({r:u(t.r),g:u(t.g),b:u(t.b)})>.85}export{g as a,c as g,f as h,i,s as o,l as p,b as s}
@@ -0,0 +1 @@
1
+ import{h as e}from"./p-DJkaRtbb.js";const t=({baseClass:t,label:l,modifiers:i={},style:o,title:s,key:a,onRemove:n,onChipDblClick:c,onEdit:b,editLabel:p},d)=>e("span",{class:Object.assign({[t]:!0},i),style:o,title:s,key:a,onDblClick:c},b&&e("button",{class:`${t}-edit`,type:"button",tabIndex:-1,title:p||void 0,"aria-label":p||void 0,onClick:b},e("co-icon",{name:"pencil-simple",size:14})),d,e("span",{class:`${t}-label`},l),n&&e("button",{class:`${t}-remove`,type:"button",tabIndex:-1,onClick:n},e("co-icon",{name:"x-circle",weight:"fill",size:16})));export{t as F}