@prolibu-suite/cobalt-core 0.10.4 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +4362 -388
- package/dist/cjs/co-accordion.cjs.entry.js +3 -3
- package/dist/cjs/co-action-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-audio-player.cjs.entry.js +4 -4
- package/dist/cjs/co-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar-group.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar.cjs.entry.js +7 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +72 -27
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +9 -6
- package/dist/cjs/co-color-area.cjs.entry.js +169 -0
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-color-slider.cjs.entry.js +189 -0
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +5 -5
- package/dist/cjs/co-command-search.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +3 -3
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1161 -0
- package/dist/cjs/co-drive-card.cjs.entry.js +2 -2
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-emoji-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +3 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-gradient-bar.cjs.entry.js +220 -0
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +49 -9
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +14 -8
- package/dist/cjs/co-json-field.cjs.entry.js +5 -5
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-kbd_2.cjs.entry.js} +194 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-item.cjs.entry.js +41 -43
- package/dist/cjs/co-menu.cjs.entry.js +81 -5
- package/dist/cjs/co-modal.cjs.entry.js +350 -7
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +8 -4
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +3 -3
- package/dist/cjs/co-popover.cjs.entry.js +67 -6
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
- package/dist/cjs/co-radio-group.cjs.entry.js +4 -4
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +26 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +79 -20
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +9 -2
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-select.cjs.entry.js +158 -29
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +20 -5
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +203 -23
- package/dist/cjs/co-swatch-grid.cjs.entry.js +121 -0
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +113 -4
- package/dist/cjs/co-tab.cjs.entry.js +15 -5
- package/dist/cjs/co-tags-field.cjs.entry.js +8 -8
- package/dist/cjs/co-textarea.cjs.entry.js +6 -6
- package/dist/cjs/co-tile.cjs.entry.js +61 -0
- package/dist/cjs/co-time-field.cjs.entry.js +2 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +26 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +67 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +3 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +3 -3
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{color-CML2Cfdh.js → color-DQVrQGi0.js} +10 -5
- package/dist/cjs/{fieldChip-B6YIGU1V.js → fieldChip-C7MxxBVO.js} +1 -1
- package/dist/cjs/gradientStops-CMpH4fB_.js +153 -0
- package/dist/cjs/hsv-DpfSF3M2.js +95 -0
- package/dist/cjs/{index-MDAnKsze.js → index-bHoidDwv.js} +67 -27
- package/dist/cjs/index-oMHzCXm6.js +144 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{index-2kMmd5-a.js → pagination-DV43TRj9.js} +1780 -297
- package/dist/cjs/{positioning-CyatXeT_.js → positioning-CILo5esi.js} +45 -18
- package/dist/cjs/{requiredMark-D-t-IPN0.js → requiredMark-21yHvvZS.js} +1 -1
- package/dist/cjs/rich-text-host-ueFSfW-6.js +119 -0
- package/dist/cjs/{richTextI18n-B28uAhh4.js → richTextI18n-DXGIv5w1.js} +45 -0
- package/dist/cjs/submenu-RlaX6irw.js +65 -0
- package/dist/cjs/{toolbar-config-CYACt9hh.js → toolbar-config-DczL6C4W.js} +32 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-ee149fd2.entry.js → p-05000ef3.entry.js} +1 -1
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/{p-1dc55e43.entry.js → p-0a5cfed0.entry.js} +1 -1
- package/dist/cobalt/p-1289131f.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-136beb2c.entry.js} +1 -1
- package/dist/cobalt/{p-b437eff6.entry.js → p-1693b614.entry.js} +1 -1
- package/dist/cobalt/p-1bfb69ae.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-1f3d5313.entry.js} +1 -1
- package/dist/cobalt/{p-b821d9de.entry.js → p-22233b31.entry.js} +1 -1
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-26fa36f8.entry.js} +1 -1
- package/dist/cobalt/p-2794c500.entry.js +1 -0
- package/dist/cobalt/p-297b55cd.entry.js +1 -0
- package/dist/cobalt/{p-17244412.entry.js → p-2a2b0c7a.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-2e5702a0.entry.js} +1 -1
- package/dist/cobalt/p-3011c84f.entry.js +1 -0
- package/dist/cobalt/{p-4d65e713.entry.js → p-30760f77.entry.js} +1 -1
- package/dist/cobalt/{p-6dd220e0.entry.js → p-3b9a8e86.entry.js} +1 -1
- package/dist/cobalt/p-4111fefa.entry.js +1 -0
- package/dist/cobalt/{p-a32b20eb.entry.js → p-44edde81.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-45007758.entry.js} +1 -1
- package/dist/cobalt/p-48c23310.entry.js +1 -0
- package/dist/cobalt/p-4b327483.entry.js +1 -0
- package/dist/cobalt/p-4c6caa41.entry.js +1 -0
- package/dist/cobalt/{p-000a15b8.entry.js → p-5534a64f.entry.js} +1 -1
- package/dist/cobalt/p-5573985a.entry.js +1 -0
- package/dist/cobalt/p-57d250ad.entry.js +1 -0
- package/dist/cobalt/{p-826ee074.entry.js → p-59d3e8fc.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/p-5b2aa70e.entry.js +1 -0
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-5d6e02dd.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-608d251d.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-66fc1528.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-67ad9544.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-6c157ea2.entry.js} +1 -1
- package/dist/cobalt/{p-a2462d7a.entry.js → p-6d541199.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-7376f4ed.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-7569375a.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-7675cebe.entry.js} +1 -1
- package/dist/cobalt/p-78a20284.entry.js +1 -0
- package/dist/cobalt/{p-aa9400bf.entry.js → p-7f3523ce.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-86b6fd81.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-889563d5.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-8ab5b396.entry.js} +1 -1
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-8b2e4579.entry.js} +1 -1
- package/dist/cobalt/p-8cd3acaa.entry.js +1 -0
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-8f701eac.entry.js} +1 -1
- package/dist/cobalt/p-90fad0f9.entry.js +1 -0
- package/dist/cobalt/{p-76249983.entry.js → p-97a4fbba.entry.js} +1 -1
- package/dist/cobalt/p-9b46a8fe.entry.js +1 -0
- package/dist/cobalt/{p-ee2023da.entry.js → p-9bee9dc8.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-9cf10331.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9e406172.entry.js +1 -0
- package/dist/cobalt/p-B1JT7us1.js +1 -0
- package/dist/cobalt/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/cobalt/p-BmdKHBZP.js +1 -0
- package/dist/cobalt/p-BtliEQAT.js +1 -0
- package/dist/cobalt/p-COJdaKBU.js +1 -0
- package/dist/cobalt/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/cobalt/p-CYN5B3IQ.js +1 -0
- package/dist/cobalt/p-DJkaRtbb.js +2 -0
- package/dist/cobalt/p-DU-KOQ8L.js +1 -0
- package/dist/cobalt/p-DXLeDZvr.js +1 -0
- package/dist/cobalt/{p-D_zA1Pv4.js → p-DgJovDdy.js} +1 -1
- package/dist/cobalt/p-RVQJEYxa.js +1 -0
- package/dist/cobalt/{p-1861fe41.entry.js → p-a07dedd1.entry.js} +1 -1
- package/dist/cobalt/{p-08e42e00.entry.js → p-a336178b.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-a52ed6ff.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-a930cdd7.entry.js} +1 -1
- package/dist/cobalt/{p-eb82358d.entry.js → p-b1994bb4.entry.js} +1 -1
- package/dist/cobalt/p-b2b13da8.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-b5ec4286.entry.js} +1 -1
- package/dist/cobalt/p-b9401dd7.entry.js +1 -0
- package/dist/cobalt/p-b9dfb333.entry.js +1 -0
- package/dist/cobalt/p-bc3ba0cd.entry.js +1 -0
- package/dist/cobalt/{p-d375014b.entry.js → p-bc4fbfa6.entry.js} +1 -1
- package/dist/cobalt/{p-d0b2c418.entry.js → p-c109a1e1.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-c1caa112.entry.js} +1 -1
- package/dist/cobalt/p-c9990662.entry.js +1 -0
- package/dist/cobalt/p-cc4b51fa.entry.js +1 -0
- package/dist/cobalt/p-cc5989e9.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-ce2b2048.entry.js} +1 -1
- package/dist/cobalt/p-d1c378ff.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-d1f47915.entry.js} +1 -1
- package/dist/cobalt/{p-28764b8e.entry.js → p-d4979025.entry.js} +1 -1
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-d75d2f3d.entry.js +1 -0
- package/dist/cobalt/p-db42c4ab.entry.js +1 -0
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-e4ff2fcb.entry.js} +1 -1
- package/dist/cobalt/p-e6116149.entry.js +1 -0
- package/dist/cobalt/{p-0c004735.entry.js → p-e99ddf9c.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ea564148.entry.js} +1 -1
- package/dist/cobalt/{p-8471abe2.entry.js → p-ec7a6bf2.entry.js} +1 -1
- package/dist/cobalt/{p-fb2d1144.entry.js → p-ee42dca6.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-ee88ec40.entry.js} +1 -1
- package/dist/cobalt/p-eeb114da.entry.js +1 -0
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/p-f246946a.entry.js +1 -0
- package/dist/cobalt/{p-b90d41e4.entry.js → p-f5934cd9.entry.js} +1 -1
- package/dist/cobalt/p-f5e1873d.entry.js +1 -0
- package/dist/cobalt/p-f60bd4d6.entry.js +1 -0
- package/dist/cobalt/p-f813569c.entry.js +1 -0
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-f8c7941f.entry.js} +1 -1
- package/dist/cobalt/{p-44ea675f.entry.js → p-f8d3c71e.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-ffbe955a.entry.js} +1 -1
- package/dist/cobalt/p-xnrKkNWQ.js +1 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +11 -2
- package/dist/collection/components/co-avatar/co-avatar.js +7 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +4 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +73 -6
- package/dist/collection/components/co-button/co-button.js +33 -11
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +11 -1
- package/dist/collection/components/co-calendar/co-calendar.js +82 -20
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +43 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +31 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-area/co-color-area.css +83 -0
- package/dist/collection/components/co-color-area/co-color-area.js +341 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-color-slider/co-color-slider.css +115 -0
- package/dist/collection/components/co-color-slider/co-color-slider.js +353 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +4 -4
- package/dist/collection/components/co-command-search/co-command-search.js +5 -5
- package/dist/collection/components/co-data-table/co-data-table.js +3 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +3 -3
- package/dist/collection/components/co-document-editor/change-throttle.js +30 -0
- package/dist/collection/components/co-document-editor/co-document-editor.css +438 -0
- package/dist/collection/components/co-document-editor/co-document-editor.js +1542 -0
- package/dist/collection/components/co-document-editor/document-props.js +40 -0
- package/dist/collection/components/co-document-editor/header-tools.js +11 -0
- package/dist/collection/components/co-document-editor/image-bar.js +66 -0
- package/dist/collection/components/co-document-editor/page-styles.js +90 -0
- package/dist/collection/components/co-document-editor/zoom.js +45 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +2 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.js +6 -6
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +138 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +407 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +95 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +120 -10
- package/dist/collection/components/co-input/co-input.css +122 -0
- package/dist/collection/components/co-input/co-input.js +37 -11
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +291 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.css +60 -0
- package/dist/collection/components/co-menu/co-menu.js +143 -3
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +17 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +42 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +58 -4
- package/dist/collection/components/co-modal/co-modal.css +212 -1
- package/dist/collection/components/co-modal/co-modal.js +339 -9
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +3 -3
- package/dist/collection/components/co-option-list/co-option-list.css +64 -21
- package/dist/collection/components/co-option-list/co-option-list.js +6 -2
- package/dist/collection/components/co-overlay/co-overlay.js +7 -3
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +15 -2
- package/dist/collection/components/co-popover/co-popover.js +130 -5
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +4 -4
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.js +5 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +23 -90
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +123 -18
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +8 -1
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +3 -3
- package/dist/collection/components/co-select/co-select.css +194 -10
- package/dist/collection/components/co-select/co-select.js +163 -32
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +10 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +19 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +148 -5
- package/dist/collection/components/co-slider/co-slider.js +240 -21
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +292 -0
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +36 -6
- package/dist/collection/components/co-tab-group/co-tab-group.css +24 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +124 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-tile/co-tile.css +63 -0
- package/dist/collection/components/co-tile/co-tile.js +162 -0
- package/dist/collection/components/co-time-field/co-time-field.js +1 -1
- package/dist/collection/components/co-toast/co-toast.js +4 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +101 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +80 -8
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.css +21 -0
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +28 -7
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +51 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
- package/dist/collection/components/co-tree-item/co-tree-item.css +226 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +353 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/color.js +9 -5
- package/dist/collection/utils/dragMove.js +95 -0
- package/dist/collection/utils/gradientBarI18n.js +24 -0
- package/dist/collection/utils/gradientStops.js +142 -0
- package/dist/collection/utils/hsv.js +114 -0
- package/dist/collection/utils/kbdI18n.js +29 -0
- package/dist/collection/utils/positioning.js +44 -18
- package/dist/collection/utils/rich-text-host.js +109 -0
- package/dist/collection/utils/richTextI18n.js +45 -0
- package/dist/collection/utils/submenu.js +23 -3
- package/dist/collection/utils/swatchGridI18n.js +14 -0
- package/dist/collection/utils/test/fake-block-layout.js +41 -0
- package/dist/collection/utils/test/prosemirror-dom-shim.js +17 -0
- package/dist/collection/utils/test/shared-contract-css.js +9 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-area.d.ts +11 -0
- package/dist/components/co-color-area.js +1 -0
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-color-slider.d.ts +11 -0
- package/dist/components/co-color-slider.js +1 -0
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-date-time-picker.js +1 -1
- package/dist/components/co-document-editor.d.ts +11 -0
- package/dist/components/co-document-editor.js +1 -0
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-emoji-picker.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-event-popover.js +1 -1
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- package/dist/components/co-gradient-bar.d.ts +11 -0
- package/dist/components/co-gradient-bar.js +1 -0
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-kbd.d.ts +11 -0
- package/dist/components/co-kbd.js +1 -0
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-rich-text-viewer.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-segmented-bar.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-swatch-grid.d.ts +11 -0
- package/dist/components/co-swatch-grid.js +1 -0
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-tile.d.ts +11 -0
- package/dist/components/co-tile.js +1 -0
- package/dist/components/co-time-field.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-tree-item.d.ts +11 -0
- package/dist/components/co-tree-item.js +1 -0
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-B1JT7us1.js +1 -0
- package/dist/components/{p-Nt4JJxbL.js → p-B20o5exO.js} +1 -1
- package/dist/components/{p-DNJAIVfI.js → p-B3kKOgsA.js} +1 -1
- package/dist/components/{p-P4HlMBlL.js → p-BIDSDP05.js} +1 -1
- package/dist/components/p-BOqtnWTJ.js +1 -0
- package/dist/components/p-BQltjDw5.js +1 -0
- package/dist/components/p-BR0LYW9v.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/p-BZDl9aFl.js +1 -0
- package/dist/components/p-BcXdId8y.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/{p-NNxjElcX.js → p-BraiMwgs.js} +1 -1
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/p-Bymi-A7C.js +1 -0
- package/dist/components/p-C-f8wTqe.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-C1jZYtUS.js} +1 -1
- package/dist/components/{p-CT2enQ6h.js → p-C3G8oPgU.js} +1 -1
- package/dist/components/{p-B56LX2SH.js → p-CGH3E8uK.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-Du_CgT5E.js → p-CfJgypOl.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-ChwSnCFf.js} +1 -1
- package/dist/components/{p-Dc_Kbari.js → p-CpGEV0iM.js} +1 -1
- package/dist/components/{p-DvR45CLa.js → p-D9or2g4j.js} +1 -1
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DKXCr-hE.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-BGDqldEg.js → p-DfcPGitr.js} +1 -1
- package/dist/components/p-Dg-Ti_Bf.js +1 -0
- package/dist/components/p-Dh_eRYKu.js +1 -0
- package/dist/components/p-Dp650Gpp.js +1 -0
- package/dist/components/p-FA1kBmZ-.js +1 -0
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-d4rf3H8p.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-f2xwcrXa.js +1 -0
- package/dist/esm/co-accordion.entry.js +3 -3
- package/dist/esm/co-action-bar.entry.js +3 -3
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-audio-player.entry.js +4 -4
- package/dist/esm/co-autocomplete.entry.js +2 -2
- package/dist/esm/co-avatar-group.entry.js +1 -1
- package/dist/esm/co-avatar.entry.js +7 -4
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +4 -4
- package/dist/esm/co-calendar_3.entry.js +72 -27
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +9 -6
- package/dist/esm/co-color-area.entry.js +167 -0
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-color-slider.entry.js +187 -0
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +5 -5
- package/dist/esm/co-command-search.entry.js +5 -5
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +3 -3
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +4 -4
- package/dist/esm/co-document-editor.entry.js +1159 -0
- package/dist/esm/co-drive-card.entry.js +2 -2
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-emoji-picker.entry.js +3 -3
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +3 -3
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-gradient-bar.entry.js +218 -0
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +49 -9
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +14 -8
- package/dist/esm/co-json-field.entry.js +5 -5
- package/dist/esm/{co-tooltip.entry.js → co-kbd_2.entry.js} +194 -7
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +3 -3
- package/dist/esm/co-menu-item.entry.js +39 -41
- package/dist/esm/co-menu.entry.js +81 -5
- package/dist/esm/co-modal.entry.js +350 -7
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +8 -4
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +3 -3
- package/dist/esm/co-popover.entry.js +67 -6
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +2 -2
- package/dist/esm/co-radio-group.entry.js +4 -4
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +5 -5
- package/dist/esm/co-rich-text-editor.entry.js +26 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +79 -20
- package/dist/esm/co-rich-text-viewer.entry.js +9 -2
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +3 -3
- package/dist/esm/co-select.entry.js +158 -29
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +20 -5
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +203 -23
- package/dist/esm/co-swatch-grid.entry.js +119 -0
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +113 -4
- package/dist/esm/co-tab.entry.js +15 -5
- package/dist/esm/co-tags-field.entry.js +8 -8
- package/dist/esm/co-textarea.entry.js +6 -6
- package/dist/esm/co-tile.entry.js +59 -0
- package/dist/esm/co-time-field.entry.js +2 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +26 -5
- package/dist/esm/co-toggle-button.entry.js +67 -6
- package/dist/esm/co-transfer-list.entry.js +3 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +3 -3
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{color-BRbgGqLw.js → color-BVGGRfNG.js} +10 -6
- package/dist/esm/{fieldChip-uyggU8VV.js → fieldChip-B2ctp2m6.js} +1 -1
- package/dist/esm/gradientStops-DDK0y8ra.js +145 -0
- package/dist/esm/hsv-COJdaKBU.js +90 -0
- package/dist/esm/index-Cpo8HTwr.js +142 -0
- package/dist/esm/{index-DH5lfRNj.js → index-DJkaRtbb.js} +67 -28
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{index-BBIYyvq-.js → pagination-D9OfZUnY.js} +1728 -297
- package/dist/esm/{positioning-DFHRS9cJ.js → positioning-BtliEQAT.js} +45 -19
- package/dist/esm/{requiredMark-BCJUuZvC.js → requiredMark-D5C5NzOE.js} +1 -1
- package/dist/esm/rich-text-host-BmdKHBZP.js +111 -0
- package/dist/esm/{richTextI18n-BYKAgwq3.js → richTextI18n-xnrKkNWQ.js} +45 -0
- package/dist/esm/submenu-DU-KOQ8L.js +57 -0
- package/dist/esm/{toolbar-config-BAYo-RBt.js → toolbar-config-CRxTFT_z.js} +32 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +4 -2
- package/dist/types/components/co-button/co-button.d.ts +6 -4
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +16 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +7 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +64 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +61 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +1 -1
- package/dist/types/components/co-document-editor/change-throttle.d.ts +9 -0
- package/dist/types/components/co-document-editor/co-document-editor.d.ts +276 -0
- package/dist/types/components/co-document-editor/document-props.d.ts +6 -0
- package/dist/types/components/co-document-editor/header-tools.d.ts +11 -0
- package/dist/types/components/co-document-editor/image-bar.d.ts +50 -0
- package/dist/types/components/co-document-editor/page-styles.d.ts +1 -0
- package/dist/types/components/co-document-editor/zoom.d.ts +26 -0
- package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +72 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +34 -2
- package/dist/types/components/co-input/co-input.d.ts +14 -5
- package/dist/types/components/co-kbd/co-kbd.d.ts +43 -0
- package/dist/types/components/co-menu/co-menu.d.ts +40 -1
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +17 -0
- package/dist/types/components/co-modal/co-modal.d.ts +111 -2
- package/dist/types/components/co-option-list/co-option-list.d.ts +1 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +36 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +2 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +17 -2
- package/dist/types/components/co-select/co-select.d.ts +47 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-slider/co-slider.d.ts +143 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +37 -0
- package/dist/types/components/co-tab/co-tab.d.ts +12 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +37 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tile/co-tile.d.ts +40 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +37 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +20 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +73 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components.d.ts +1744 -88
- package/dist/types/utils/color.d.ts +9 -1
- package/dist/types/utils/dragMove.d.ts +63 -0
- package/dist/types/utils/gradientBarI18n.d.ts +8 -0
- package/dist/types/utils/gradientStops.d.ts +63 -0
- package/dist/types/utils/hsv.d.ts +44 -0
- package/dist/types/utils/kbdI18n.d.ts +25 -0
- package/dist/types/utils/positioning.d.ts +24 -0
- package/dist/types/utils/rich-text-host.d.ts +41 -0
- package/dist/types/utils/richTextI18n.d.ts +15 -0
- package/dist/types/utils/submenu.d.ts +16 -2
- package/dist/types/utils/swatchGridI18n.d.ts +6 -0
- package/dist/types/utils/test/fake-block-layout.d.ts +7 -0
- package/dist/types/utils/test/prosemirror-dom-shim.d.ts +1 -0
- package/dist/types/utils/test/shared-contract-css.d.ts +9 -0
- package/package.json +5 -5
- package/dist/cobalt/p-0678c797.entry.js +0 -1
- package/dist/cobalt/p-1d3a79af.entry.js +0 -1
- package/dist/cobalt/p-216a63ee.entry.js +0 -1
- package/dist/cobalt/p-3d31c575.entry.js +0 -1
- package/dist/cobalt/p-416795f5.entry.js +0 -1
- package/dist/cobalt/p-56551580.entry.js +0 -1
- package/dist/cobalt/p-58137c9e.entry.js +0 -1
- package/dist/cobalt/p-5a3e4c81.entry.js +0 -1
- package/dist/cobalt/p-5c756787.entry.js +0 -1
- package/dist/cobalt/p-67f3b9d6.entry.js +0 -1
- package/dist/cobalt/p-6a4f3179.entry.js +0 -1
- package/dist/cobalt/p-71cbc53c.entry.js +0 -1
- package/dist/cobalt/p-72e52af7.entry.js +0 -1
- package/dist/cobalt/p-8530ad16.entry.js +0 -1
- package/dist/cobalt/p-8a74bf7d.entry.js +0 -1
- package/dist/cobalt/p-8e05b979.entry.js +0 -1
- package/dist/cobalt/p-8ebc0c12.entry.js +0 -1
- package/dist/cobalt/p-8f2199ff.entry.js +0 -1
- package/dist/cobalt/p-9246e09c.entry.js +0 -1
- package/dist/cobalt/p-99a655f6.entry.js +0 -1
- package/dist/cobalt/p-BYKAgwq3.js +0 -1
- package/dist/cobalt/p-CJW9H3Gi.js +0 -1
- package/dist/cobalt/p-DFHRS9cJ.js +0 -1
- package/dist/cobalt/p-DH5lfRNj.js +0 -2
- package/dist/cobalt/p-a1b422ca.entry.js +0 -1
- package/dist/cobalt/p-ade07307.entry.js +0 -1
- package/dist/cobalt/p-b0762fd8.entry.js +0 -1
- package/dist/cobalt/p-b698188c.entry.js +0 -1
- package/dist/cobalt/p-bde32f8b.entry.js +0 -1
- package/dist/cobalt/p-db805569.entry.js +0 -1
- package/dist/cobalt/p-e3aae282.entry.js +0 -1
- package/dist/cobalt/p-e49a564c.entry.js +0 -1
- package/dist/cobalt/p-ef301976.entry.js +0 -1
- package/dist/cobalt/p-f4e1c3c3.entry.js +0 -1
- package/dist/cobalt/p-fMqVDypp.js +0 -1
- package/dist/components/p-2EOI1nrz.js +0 -1
- package/dist/components/p-7TncUlLN.js +0 -1
- package/dist/components/p-B4NCaKrR.js +0 -1
- package/dist/components/p-BJh68Jqe.js +0 -1
- package/dist/components/p-BrAFTkAn.js +0 -1
- package/dist/components/p-Bsh0JMGf.js +0 -1
- package/dist/components/p-CJW9H3Gi.js +0 -1
- package/dist/components/p-CWCYYQrF.js +0 -1
- package/dist/components/p-D9T7zKeL.js +0 -1
- package/dist/components/p-DFHRS9cJ.js +0 -1
- package/dist/components/p-DTPYZwaZ.js +0 -1
- package/dist/components/p-Dcg4krSX.js +0 -1
- package/dist/components/p-Dh8ffSjK.js +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export const DEFAULT_MARGINS = { top: 38, right: 38, bottom: 38, left: 38 };
|
|
2
|
+
const NAMED = new Set(['letter', 'a4', 'legal']);
|
|
3
|
+
/** `true` o `'true'`. Un `'false'` que dejó el multipart de V1 cuenta como falso (spec §3.6). */
|
|
4
|
+
export function toBoolIntent(v) {
|
|
5
|
+
return v === true || v === 'true';
|
|
6
|
+
}
|
|
7
|
+
export function parsePageSize(v) {
|
|
8
|
+
if (typeof v === 'string') {
|
|
9
|
+
if (NAMED.has(v))
|
|
10
|
+
return v;
|
|
11
|
+
try {
|
|
12
|
+
return parsePageSize(JSON.parse(v));
|
|
13
|
+
}
|
|
14
|
+
catch (_a) {
|
|
15
|
+
return 'letter';
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
if (v && typeof v === 'object') {
|
|
19
|
+
const { width, height } = v;
|
|
20
|
+
if (Number(width) > 0 && Number(height) > 0)
|
|
21
|
+
return { width: Number(width), height: Number(height) };
|
|
22
|
+
}
|
|
23
|
+
return 'letter';
|
|
24
|
+
}
|
|
25
|
+
export function parseMargins(v) {
|
|
26
|
+
let raw = v;
|
|
27
|
+
if (typeof v === 'string') {
|
|
28
|
+
try {
|
|
29
|
+
raw = JSON.parse(v);
|
|
30
|
+
}
|
|
31
|
+
catch (_a) {
|
|
32
|
+
return Object.assign({}, DEFAULT_MARGINS);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
if (!raw || typeof raw !== 'object')
|
|
36
|
+
return Object.assign({}, DEFAULT_MARGINS);
|
|
37
|
+
const m = raw;
|
|
38
|
+
const pick = (k) => (Number.isFinite(Number(m[k])) && m[k] !== undefined ? Number(m[k]) : DEFAULT_MARGINS[k]);
|
|
39
|
+
return { top: pick('top'), right: pick('right'), bottom: pick('bottom'), left: pick('left') };
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Herramientas de la banda del encabezado en edición (interruptor de número de
|
|
3
|
+
* página + ✓). La fila cuelga ENCIMA de la banda, dentro del margen superior de la
|
|
4
|
+
* hoja, y el papel tiene `overflow: clip`: tiene que entrar en el margen mínimo
|
|
5
|
+
* (10 mm = 38 px) o se recorta. `co-icon-button size="sm"` mide 48 px: el tamaño va
|
|
6
|
+
* por `box-size`. Fila = max(✓, switch de 24) + padding + borde (ver la prueba).
|
|
7
|
+
*/
|
|
8
|
+
export const HEADER_TOOL_BOX_PX = 28;
|
|
9
|
+
export const HEADER_TOOL_ICON_PX = 16;
|
|
10
|
+
/** Margen superior más chico que se admite (10 mm a 96 dpi, el default del componente). */
|
|
11
|
+
export const MIN_TOP_MARGIN_PX = 38;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Barra de diseño de imagen (4 modos de V1). Vive DENTRO del papel, que tiene
|
|
3
|
+
* `overflow: clip`: su posición se decide acá para que nunca quede recortada.
|
|
4
|
+
* Las medidas son las del CSS (`.co-doc-editor__image-bar` / `__image-mode`,
|
|
5
|
+
* ver la prueba): se calculan sin medir el DOM porque la barra todavía no existe
|
|
6
|
+
* cuando se decide dónde va.
|
|
7
|
+
*/
|
|
8
|
+
export const IMAGE_MODE_ICONS = {
|
|
9
|
+
inline: 'image-square',
|
|
10
|
+
'wrap-left': 'text-align-left',
|
|
11
|
+
'wrap-right': 'text-align-right',
|
|
12
|
+
break: 'rows',
|
|
13
|
+
};
|
|
14
|
+
/** Botón de modo (ancho = alto). */
|
|
15
|
+
export const IMAGE_MODE_BUTTON_PX = 28;
|
|
16
|
+
export const IMAGE_MODE_ICON_PX = 16;
|
|
17
|
+
/** 4 botones × 28 + 3 separaciones de 2 + relleno 2 × 2 + borde 1 × 2. */
|
|
18
|
+
export const IMAGE_BAR_SIZE = { width: 124, height: 34 };
|
|
19
|
+
/** Aire entre la imagen y la barra. */
|
|
20
|
+
export const IMAGE_BAR_GAP_PX = 4;
|
|
21
|
+
/**
|
|
22
|
+
* Debajo de la imagen (por defecto: una imagen pegada al margen superior no la
|
|
23
|
+
* saca por arriba); si no entra debajo (final del papel), encima; si tampoco,
|
|
24
|
+
* dentro de la imagen, sobre su borde inferior. En horizontal se acota al papel.
|
|
25
|
+
* Un papel sin medidas (0) no acota.
|
|
26
|
+
*/
|
|
27
|
+
export function imageBarPosition(img, sheet, bar = IMAGE_BAR_SIZE, gap = IMAGE_BAR_GAP_PX) {
|
|
28
|
+
const below = img.top + img.height + gap;
|
|
29
|
+
const above = img.top - gap - bar.height;
|
|
30
|
+
let top = below;
|
|
31
|
+
let placement = 'below';
|
|
32
|
+
if (sheet.height > 0 && below + bar.height > sheet.height) {
|
|
33
|
+
if (above >= 0) {
|
|
34
|
+
top = above;
|
|
35
|
+
placement = 'above';
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
top = Math.max(0, Math.min(img.top + img.height - gap - bar.height, sheet.height - bar.height));
|
|
39
|
+
placement = 'inside';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
let left = img.left;
|
|
43
|
+
if (sheet.width > 0)
|
|
44
|
+
left = Math.max(0, Math.min(left, sheet.width - bar.width));
|
|
45
|
+
return { top, left, placement };
|
|
46
|
+
}
|
|
47
|
+
/** `offsetLeft` acumulado hasta `root` (par de `layoutBox`, que da el top). */
|
|
48
|
+
export function layoutLeft(el, root) {
|
|
49
|
+
let left = 0;
|
|
50
|
+
let node = el;
|
|
51
|
+
while (node && node !== root) {
|
|
52
|
+
left += node.offsetLeft;
|
|
53
|
+
node = node.offsetParent;
|
|
54
|
+
}
|
|
55
|
+
return left;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Ancho con el que nace una imagen insertada (nota T8 / plan B §6.4): sin `width`,
|
|
59
|
+
* V1 la abre a 800 px, más que la columna (≈740 en carta). Nunca pasa de la columna.
|
|
60
|
+
*/
|
|
61
|
+
export function defaultImageWidth(naturalWidth, columnWidth) {
|
|
62
|
+
const natural = naturalWidth > 0 ? naturalWidth : 0;
|
|
63
|
+
const column = columnWidth > 0 ? columnWidth : 0;
|
|
64
|
+
const w = natural && column ? Math.min(natural, column) : natural || column;
|
|
65
|
+
return w ? Math.max(1, Math.round(w)) : null;
|
|
66
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Acota el CSS de impresión del host (SharedContractUtils: editorCss + defaultCss)
|
|
3
|
+
* a UNA hoja: cada selector queda bajo `:where(scope)`; `*`, `html`, `body` y `:root`
|
|
4
|
+
* pasan a ser la hoja (el `*` global de defaultCss no puede escapar a la página).
|
|
5
|
+
* Se entra en @media/@supports, se conserva @keyframes y se descartan las
|
|
6
|
+
* reglas que no aplican a pantalla o traerían red (@page, @font-face, @import).
|
|
7
|
+
*/
|
|
8
|
+
const DROP_STATEMENTS = /@(import|charset|namespace)[^;]*;/gi;
|
|
9
|
+
export function scopePageStyles(css, scope) {
|
|
10
|
+
if (!css)
|
|
11
|
+
return '';
|
|
12
|
+
const src = css.replace(/\/\*[\s\S]*?\*\//g, '').replace(DROP_STATEMENTS, '');
|
|
13
|
+
return scopeBlock(src, scope).trim();
|
|
14
|
+
}
|
|
15
|
+
function matchingBrace(src, open) {
|
|
16
|
+
let depth = 0;
|
|
17
|
+
let quote = null;
|
|
18
|
+
for (let i = open; i < src.length; i += 1) {
|
|
19
|
+
const c = src[i];
|
|
20
|
+
if (quote) {
|
|
21
|
+
if (c === quote && src[i - 1] !== '\\')
|
|
22
|
+
quote = null;
|
|
23
|
+
continue;
|
|
24
|
+
}
|
|
25
|
+
if (c === '"' || c === "'")
|
|
26
|
+
quote = c;
|
|
27
|
+
else if (c === '{')
|
|
28
|
+
depth += 1;
|
|
29
|
+
else if (c === '}') {
|
|
30
|
+
depth -= 1;
|
|
31
|
+
if (depth === 0)
|
|
32
|
+
return i;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return -1;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* El scope va dentro de `:where()`: especificidad 0. Cada regla del host conserva la
|
|
39
|
+
* especificidad que tenía en el PDF, y la geometría propia de la hoja (clases del
|
|
40
|
+
* componente, ≥ (0,1,0)) le gana a sus resets (`* { padding: 0 }`, `.tiptap table td`…).
|
|
41
|
+
*
|
|
42
|
+
* Excepción del `*`: en el PDF es CSS de autor y le gana a la UA de `pre`/`code`
|
|
43
|
+
* (`font-family: monospace`). En la app, el normalize global (Quasar: `code, kbd, pre, samp
|
|
44
|
+
* { font-family: monospace }`, (0,0,1)) es de autor y le ganaba al `:where(scope) *` (0,0,0):
|
|
45
|
+
* un bloque de código medía distinto en la hoja que en el PDF. `:where(scope) :is(pre, code)`
|
|
46
|
+
* sube el reset a (0,0,1): empata con el normalize y gana por orden (el `<style>` de la hoja
|
|
47
|
+
* vive dentro del documento, después de las hojas globales del `<head>`), y sigue perdiendo
|
|
48
|
+
* contra cualquier regla del host más específica o posterior (`.tiptap pre`, `pre {…}`), como en
|
|
49
|
+
* el PDF. `inherit` desde la hoja no sirve: un `pre` hijo directo de `.ProseMirror` heredaría la
|
|
50
|
+
* fuente del contenedor (Geist) y no la del `*` (Roboto) que ve el PDF.
|
|
51
|
+
*/
|
|
52
|
+
function scopeSelector(sel, scope) {
|
|
53
|
+
const s = sel.trim();
|
|
54
|
+
if (!s)
|
|
55
|
+
return '';
|
|
56
|
+
const root = `:where(${scope})`;
|
|
57
|
+
if (s === '*')
|
|
58
|
+
return `${root}, ${root} *, ${root} :is(pre, code)`;
|
|
59
|
+
const rest = s.replace(/^(?:(?:html|body|:root)(?=$|[\s>+~.#:[])\s*)+/i, '').trim();
|
|
60
|
+
return rest ? `${root} ${rest}` : root;
|
|
61
|
+
}
|
|
62
|
+
function scopeBlock(src, scope) {
|
|
63
|
+
let out = '';
|
|
64
|
+
let i = 0;
|
|
65
|
+
while (i < src.length) {
|
|
66
|
+
const open = src.indexOf('{', i);
|
|
67
|
+
if (open === -1)
|
|
68
|
+
break;
|
|
69
|
+
const close = matchingBrace(src, open);
|
|
70
|
+
if (close === -1)
|
|
71
|
+
break;
|
|
72
|
+
const prelude = src.slice(i, open).trim();
|
|
73
|
+
const body = src.slice(open + 1, close);
|
|
74
|
+
i = close + 1;
|
|
75
|
+
if (!prelude)
|
|
76
|
+
continue;
|
|
77
|
+
if (prelude.startsWith('@')) {
|
|
78
|
+
const at = prelude.slice(1).split(/[\s(]/)[0].toLowerCase();
|
|
79
|
+
if (at === 'media' || at === 'supports')
|
|
80
|
+
out += `${prelude}{${scopeBlock(body, scope)}}`;
|
|
81
|
+
else if (at.endsWith('keyframes'))
|
|
82
|
+
out += `${prelude}{${body}}`;
|
|
83
|
+
continue; // @page, @font-face y cualquier otra at-rule: fuera
|
|
84
|
+
}
|
|
85
|
+
const selectors = prelude.split(',').map((x) => scopeSelector(x, scope)).filter(Boolean);
|
|
86
|
+
if (selectors.length)
|
|
87
|
+
out += `${selectors.join(', ')}{${body}}`;
|
|
88
|
+
}
|
|
89
|
+
return out;
|
|
90
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Aire lateral que se descuenta del lienzo al ajustar al ancho (2 × --co-spacing-lg). */
|
|
2
|
+
export const ZOOM_GUTTER_PX = 32;
|
|
3
|
+
/** Escala para que la hoja entre en el ancho disponible: nunca agranda, nunca baja de 25 %. */
|
|
4
|
+
export function fitScale(available, pageWidth) {
|
|
5
|
+
if (!(available > 0) || !(pageWidth > 0))
|
|
6
|
+
return 1;
|
|
7
|
+
const s = Math.min(1, Math.max(0.25, available / pageWidth));
|
|
8
|
+
return Math.round(s * 1000) / 1000;
|
|
9
|
+
}
|
|
10
|
+
/** Tope del zoom libre (pinza / ctrl+rueda). El piso es el mismo de «Ajustar al ancho». */
|
|
11
|
+
export const ZOOM_MIN = 0.25;
|
|
12
|
+
export const ZOOM_MAX = 3;
|
|
13
|
+
/** Acota la escala a [ZOOM_MIN, ZOOM_MAX] y la redondea a milésimas (NaN → 1). */
|
|
14
|
+
export function clampScale(scale) {
|
|
15
|
+
if (!Number.isFinite(scale))
|
|
16
|
+
return 1;
|
|
17
|
+
return Math.round(Math.min(ZOOM_MAX, Math.max(ZOOM_MIN, scale)) * 1000) / 1000;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Nueva escala para un evento `wheel` con ctrlKey (la pinza del trackpad llega así en Chrome,
|
|
21
|
+
* Edge y Firefox; también ctrl+rueda del mouse). Exponencial: acercar y alejar el mismo delta
|
|
22
|
+
* vuelve al punto de partida, y la velocidad se siente igual a cualquier escala.
|
|
23
|
+
*/
|
|
24
|
+
export function pinchScale(current, deltaY) {
|
|
25
|
+
if (!Number.isFinite(deltaY))
|
|
26
|
+
return current;
|
|
27
|
+
return clampScale(current * Math.exp(-deltaY * 0.01));
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Punto del papel (px de layout, sin escala) bajo el cursor: `stageStart` es el borde de la hoja
|
|
31
|
+
* escalada en pantalla (getBoundingClientRect), `scale` la escala que el DOM refleja HOY.
|
|
32
|
+
*/
|
|
33
|
+
export function paperPoint(client, stageStart, scale) {
|
|
34
|
+
if (!(scale > 0))
|
|
35
|
+
return 0;
|
|
36
|
+
return (client - stageStart) / scale;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Cuánto hay que correr el scroll para que el punto `paper` vuelva a quedar bajo el cursor,
|
|
40
|
+
* medido DESPUÉS del render con la escala nueva (la hoja está centrada y el lienzo tiene
|
|
41
|
+
* relleno fijo: predecir la posición falla, medirla no).
|
|
42
|
+
*/
|
|
43
|
+
export function anchorCorrection(stageStart, paper, scale, client) {
|
|
44
|
+
return stageStart + paper * scale - client;
|
|
45
|
+
}
|
|
@@ -74,7 +74,7 @@ export class CoDriveCard {
|
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
76
|
const isFile = this.variant === 'file';
|
|
77
|
-
return (h("div", { key: '
|
|
77
|
+
return (h("div", { key: 'fba210f4eb2629fdbc599cacd37bb547b43f01a7', class: {
|
|
78
78
|
'co-drive-card': true,
|
|
79
79
|
[`co-drive-card--${this.variant}`]: true,
|
|
80
80
|
[`co-drive-card--${this.density}`]: true,
|
|
@@ -58,7 +58,7 @@ export class CoDropZone {
|
|
|
58
58
|
this.coDragStateChange.emit(next);
|
|
59
59
|
}
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'ae0d0449a7c0057dcdf527bb67196745b9173852', class: { 'co-drop-zone': true, 'co-drop-zone--active': this.active }, part: "host", style: { '--co-drop-zone-accent': this.accent }, onDragEnter: this.handleDragEnter, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("slot", { key: '28e0b0232514e4d936eb6c4a5e5096a9eb9b20eb' }), this.active && (h("div", { key: '21f78c6c91184f1e6f8ef0f8d37f4ce0f2db73a6', class: "co-drop-zone__overlay", part: "overlay" }, h("div", { key: '1e413d3eb21b4425d7b47834fdc23e84b35c890d', class: "co-drop-zone__badge", part: "badge" }, h("co-icon", { key: '7d3f145bdf6fae71b31ee8e77ac9243d2101c740', name: this.icon, size: 34 })), h("span", { key: '1ed93eabef61c01cedfcf94cd4a31c8a1968ce90', class: "co-drop-zone__label", part: "label" }, this.label)))));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "co-drop-zone"; }
|
|
64
64
|
static get encapsulation() { return "shadow"; }
|
|
@@ -383,14 +383,14 @@ export class CoEmojiPicker {
|
|
|
383
383
|
const stripCategories = hasRecent
|
|
384
384
|
? [RECENT_CATEGORY, ...EMOJI_CATEGORIES]
|
|
385
385
|
: [...EMOJI_CATEGORIES];
|
|
386
|
-
return (h("div", { key: '
|
|
386
|
+
return (h("div", { key: '75eb6f07186ba466fa831f35d3a1d4c0283276bc', class: "co-emoji-picker", part: "panel", role: "group", "aria-label": this.label || s.pickerLabel, style: { '--co-emoji-picker-columns': String(Math.max(1, this.columns)) }, onKeyDown: this.handleKeyDown }, this.searchable && (h("div", { key: 'd785f750db7b96d40bc4d48f8110f355dd25ddc2', class: "co-emoji-picker__search", part: "search" }, h("co-icon", { key: 'c2f74a0cae224a5ad92dfe79cd88c39324004531', name: "magnifying-glass", size: 16 }), h("input", { key: '98221cd4dea82d03dc652c7db4b4ee19bb44c722', class: "co-emoji-picker__input", part: "input", type: "text", value: this.term, placeholder: this.searchPlaceholder || s.searchPlaceholder, onInput: this.handleInput, ref: (el) => (this.inputEl = el), role: "combobox", "aria-expanded": "true", "aria-autocomplete": "list", "aria-controls": CoEmojiPicker.GRID_ID, "aria-activedescendant": activeCellId }), this.renderTones())), this.showCategories && (h("div", { key: '7124c7d0fb624678207c409254eb0514346447f8', class: "co-emoji-picker__categories", part: "categories", "aria-label": s.categoriesLabel }, !this.searchable && this.renderTones(), stripCategories.map((category) => {
|
|
387
387
|
var _a, _b;
|
|
388
388
|
const name = (_a = s.categories[category]) !== null && _a !== void 0 ? _a : category;
|
|
389
389
|
return (h("button", { type: "button", key: category, class: {
|
|
390
390
|
'co-emoji-picker__category': true,
|
|
391
391
|
'co-emoji-picker__category--active': category === activeCategory,
|
|
392
392
|
}, "aria-label": name, "aria-current": category === activeCategory ? 'true' : undefined, title: name, onClick: () => this.jumpToCategory(category) }, h("co-icon", { name: (_b = EMOJI_CATEGORY_ICONS[category]) !== null && _b !== void 0 ? _b : 'circle', size: 16 })));
|
|
393
|
-
}))), h("div", { key: '
|
|
393
|
+
}))), h("div", { key: '5e941a4ec0594953dcc5bac59d0bef1f3ce53712', class: "co-emoji-picker__scroll", part: "grid", id: CoEmojiPicker.GRID_ID, role: "listbox", "aria-label": s.gridLabel, ref: (el) => (this.scrollEl = el), onScroll: this.handleScroll }, isEmpty ? (h("div", { class: "co-emoji-picker__empty" }, h("co-icon", { name: "magnifying-glass", size: 20 }), h("span", null, this.emptyMessage || s.emptyMessage))) : (this.renderRows(rows)))));
|
|
394
394
|
}
|
|
395
395
|
static get is() { return "co-emoji-picker"; }
|
|
396
396
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,11 +13,11 @@ export class CoEmptyState {
|
|
|
13
13
|
render() {
|
|
14
14
|
var _a;
|
|
15
15
|
const iconWeight = (_a = this.iconWeight) !== null && _a !== void 0 ? _a : (this.variant === 'card' ? 'regular' : 'light');
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '191c38c574ecf961bbeffc83783e820e5dfdde0c', class: {
|
|
17
17
|
'co-empty-state': true,
|
|
18
18
|
[`co-empty-state--${this.variant}`]: true,
|
|
19
19
|
[`co-empty-state--${this.size}`]: true,
|
|
20
|
-
}, part: "empty-state" }, this.icon && (h("div", { key: '
|
|
20
|
+
}, part: "empty-state" }, this.icon && (h("div", { key: '4e6c36922ed59f5d65f5ce73f261eb3ccdc72e35', class: "co-empty-state__icon" }, h("co-icon", { key: '5dc6b8fb6c67539ea16e2171676e2b5de96ca194', name: this.icon, size: 40, weight: iconWeight }))), this.heading && (h("div", { key: '4be3d32fda76c0e603651507cc1bd1c3b2d6fad9', class: "co-empty-state__heading" }, this.heading)), this.description && (h("div", { key: 'ee920e1eb636a1a55a0f9d32145f69c16d072b52', class: "co-empty-state__description" }, this.description)), h("div", { key: 'eb22109eab803e58eec32d8603aefa783b1e2d17', class: "co-empty-state__actions" }, h("slot", { key: '14f7583ee7ef6db2e0e5d38eb336d3d4469e7fd7' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "co-empty-state"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -223,10 +223,10 @@ export class CoEventCalendar {
|
|
|
223
223
|
const t = getDateStrings(this.locale);
|
|
224
224
|
const views = this.viewsList;
|
|
225
225
|
const a = parseISO(this.anchor);
|
|
226
|
-
return (h("div", { key: '
|
|
226
|
+
return (h("div", { key: '21a10260d591309d68ecb02004ea1160fa8eab8b', class: "cal" }, h("div", { key: '4d4038feb333d2da935dd46bf058b876b0ca7657', class: "cal__toolbar", part: "toolbar" }, h("button", { key: '79e01f296686ade3bd8c8598fd26e0e304122d7f', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: '9f4e4fb351b96bad31dbd6cb7628bd4171434709', class: "cal__title-group" }, h("button", { key: '511837460816d0ebbe542995c72fcc6d08ec4671', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: 'cb7cd8b28e0502c9da1611f4e28d6ff3bee86652', name: "caret-left", size: 16 })), h("h2", { key: '7892530164e755daba2c8f1ea39661fc40ecf852', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '56297f90364a3628bac3d2e1d3080339ba8b27e1', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: '2576d8083c47024e243e7de7019433de80ec6126', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
|
|
227
227
|
var _a;
|
|
228
228
|
return (h("button", { type: "button", role: "tab", "aria-selected": this.view === v ? 'true' : 'false', class: { 'cal__view-btn': true, 'cal__view-btn--active': this.view === v }, onClick: () => this.switchView(v) }, (_a = t[v]) !== null && _a !== void 0 ? _a : v));
|
|
229
|
-
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '
|
|
229
|
+
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '48b98ddc4835df8bfa3b3654e197983966002b10', class: "cal__body", part: "body" }, this.view === 'month' ? (h("co-calendar-month", { loading: this.loading, events: this.normalized, year: a.year, month: a.month, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, timeZone: this.tz, minDate: this.minDate, maxDate: this.maxDate, editable: this.editable, selectable: this.selectable, maxLanes: this.dayMaxEvents, onCoDaySelect: this.handleDaySelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, onCoMoreClick: this.handleMoreClick })) : this.view === 'week' || this.view === 'day' ? (h("co-calendar-timegrid", { loading: this.loading, events: this.normalized, dates: this.visibleDates, locale: this.locale, timeZone: this.tz, editable: this.editable, selectable: this.selectable, minDate: this.minDate, maxDate: this.maxDate, onCoRangeSelect: this.handleRangeSelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, defaultDurationMinutes: this.defaultDurationMinutes, allDaySlot: this.allDaySlot, minTime: this.minTime, maxTime: this.maxTime, slotMinutes: this.slotMinutes, snapMinutes: this.snapMinutes, scrollTime: this.scrollTime, nowIndicator: this.nowIndicator })) : (h("div", { class: "cal__placeholder" }, h("co-icon", { name: "calendar-dots", size: 32 }), h("p", null, `${this.view} view — coming soon`))))));
|
|
230
230
|
}
|
|
231
231
|
static get is() { return "co-event-calendar"; }
|
|
232
232
|
static get encapsulation() { return "shadow"; }
|
|
@@ -118,7 +118,7 @@ export class CoEventPopover {
|
|
|
118
118
|
this.coClose.emit();
|
|
119
119
|
}
|
|
120
120
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
121
|
+
return (h(Host, { key: 'a646f722530e2198c0a0b082de540021be9cc9c0' }, h("div", { key: 'b9937d848335d6d5e21ac34d392a842815c51ffe', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: '81b409086819ab1623fc2759742795bd9b3fca28', class: "pop__actions", part: "actions" }, h("slot", { key: '21080d17fc497bcc7d0f537397686ddb03e0cd60', name: "actions" })), h("div", { key: '1a6e0ab2801ae963579e4f50b8132fe3f26d84f9', class: "pop__head" }, this.dot && h("span", { key: '04abf696922f1a93b15ab3b9066782bc9b08a89d', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: '659f842611275562d4617d2f1f6ecbc73920d914', class: "pop__body", part: "body" }, h("slot", { key: 'b5606cdff567ae0f16bb2dcf228987de3b376d34' }))))));
|
|
122
122
|
}
|
|
123
123
|
static get is() { return "co-event-popover"; }
|
|
124
124
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class CoFab {
|
|
|
28
28
|
const iconSize = this.size === 'xl' ? 24 : this.size === 'l' ? 24 : this.size === 's' ? 18 : 20;
|
|
29
29
|
const hasLabel = !!this.label;
|
|
30
30
|
const hoverExpand = hasLabel && this.expandOnHover;
|
|
31
|
-
return (h("button", { key: '
|
|
31
|
+
return (h("button", { key: '5ac75328c6505b000c84e5f5365abfabad1dc831', class: {
|
|
32
32
|
'co-fab': true,
|
|
33
33
|
[`co-fab--${this.variant}`]: true,
|
|
34
34
|
[`co-fab--${this.size}`]: true,
|
|
@@ -36,7 +36,7 @@ export class CoFab {
|
|
|
36
36
|
'co-fab--hover-expand': hoverExpand,
|
|
37
37
|
'co-fab--disabled': this.disabled,
|
|
38
38
|
[`co-fab--${this.position}`]: this.position !== 'none',
|
|
39
|
-
}, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: '
|
|
39
|
+
}, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: '9bde6e77c635eb64bca7cc7e129eb2ebe4f8a004', name: this.icon, size: iconSize }), this.label && (h("span", { key: '412f43091a9ba740b1ceddbe1539f60e3d1c27d1', class: "co-fab__label", ref: (el) => (this.labelEl = el) }, this.label))));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "co-fab"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -358,12 +358,12 @@ export class CoFileField {
|
|
|
358
358
|
const previews = this.previewItems();
|
|
359
359
|
const canReorder = this.reorderable && this.multiple && !this.disabled && !this.readonly && items.length > 1;
|
|
360
360
|
const capacity = this.capacityHint(s);
|
|
361
|
-
return (h("div", { key: '
|
|
361
|
+
return (h("div", { key: 'af16871d531125d82a3fc5ba0ab5a08ca6e67756', class: {
|
|
362
362
|
'co-file-field': true,
|
|
363
363
|
'co-file-field--disabled': this.disabled,
|
|
364
364
|
'co-file-field--invalid': this.isInvalid,
|
|
365
365
|
[statusClass]: !!statusClass,
|
|
366
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
366
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '9eb9c80a6c23b24be12b2410fd5713c4ab62965d', class: "co-file-field__labels" }, h("label", { key: '3b577dd00ea6cfa4635bd016dcde4604f6b01dd3', class: "co-file-field__label", part: "label" }, this.label, h(RequiredMark, { key: '2d41558573a614e7f7fa654dad622d36e6e35ffa', required: this.required })))), showDropzone && (h("div", { key: 'ad4215799a768078703d78b4b38689d987e8a13b', class: {
|
|
367
367
|
'co-file-field__dropzone': true,
|
|
368
368
|
'co-file-field__dropzone--drag': this.dragOver,
|
|
369
369
|
}, part: "dropzone", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleBrowse, onKeyDown: (e) => {
|
|
@@ -371,7 +371,7 @@ export class CoFileField {
|
|
|
371
371
|
e.preventDefault();
|
|
372
372
|
this.handleBrowse();
|
|
373
373
|
}
|
|
374
|
-
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: '
|
|
374
|
+
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: 'e32603408a107ad2fbd5ab158b1ca52c7c858833', class: "co-file-field__upload-btn", part: "upload-button", type: "button", tabIndex: -1 }, h("co-icon", { key: 'dd5e41181e235722531cca15f289c54754a301ee', name: "file-arrow-up", size: 18 }), h("span", { key: '842ac546197c761eb9732504ae0dbae7967ceb49' }, this.uploadButtonText || s.uploadButton)), h("span", { key: '1f53b0376ff5ff0b6b0adecf808a846af7628d9a', class: "co-file-field__dropzone-text" }, this.dropText || s.dropHint), capacity && h("span", { key: '2df578f0c6717255ba18cc5da64f5fda34f3714f', class: "co-file-field__dropzone-hint" }, capacity), h("div", { key: '0f0cd178f617119623edb6bc042d8f0647e48527', class: "co-file-field__actions", part: "actions" }, h("slot", { key: 'a2238c3ae9732e96574447aeab9948959e27445a', name: "actions" })), h("input", { key: '2ad962b5becf263b05ebb72492afa89db9e81e47', ref: (el) => (this.inputEl = el), class: "co-file-field__input", type: "file", multiple: this.multiple, accept: this.inputAccept, disabled: this.disabled, onChange: this.handleInputChange, "aria-hidden": "true", tabIndex: -1 }))), items.length > 0 && (h("div", { key: 'd49f51126e68860782ca184eef99b6f74a0fd94b', class: "co-file-field__uploaded" }, this.multiple && (h("div", { key: 'bbc88a36167076a64d244886b3d8c6f388e065d5', class: "co-file-field__uploaded-title", part: "uploaded-title" }, `${this.uploadedTitle || s.uploadedTitle} (${items.length})`)), previews.length > 0 && (h("div", { key: '108e8dbcb0fb47d397c765400ea2333d83fb0d57', class: "co-file-field__previews", part: "previews" }, previews.map((item) => {
|
|
375
375
|
const key = this.keyFor(item);
|
|
376
376
|
const video = isVideo(item);
|
|
377
377
|
// A video without a usable poster still gets a card — the
|
|
@@ -382,7 +382,7 @@ export class CoFileField {
|
|
|
382
382
|
'co-file-field__preview': true,
|
|
383
383
|
'co-file-field__preview--video': video,
|
|
384
384
|
}, part: "preview", type: "button", key: `prev-${key}`, title: item.name, "aria-label": `${video ? s.playVideo : s.openPreview}: ${item.name}`, onClick: () => this.handlePreviewOpen(item) }, showImg && (h("img", { src: video ? poster : item.thumbnail || item.url, alt: item.name, loading: "lazy", onError: () => this.handlePreviewError(item) })), video && (h("span", { class: "co-file-field__preview-play", "aria-hidden": "true" }, h("span", { class: "co-file-field__preview-play-badge" }, h("co-icon", { name: "play", size: 20, weight: "fill" })), !poster && (h("span", { class: "co-file-field__preview-ext" }, fileExtension(item).toUpperCase()))))));
|
|
385
|
-
}))), h("ul", { key: '
|
|
385
|
+
}))), h("ul", { key: '876616fa30a35a3f3597d2043fb1ce09cf6d12b5', class: "co-file-field__list", part: "list" }, items.map((item) => {
|
|
386
386
|
const key = this.keyFor(item);
|
|
387
387
|
const draggable = canReorder && item.status === 'done';
|
|
388
388
|
return (h("li", { class: {
|
|
@@ -406,10 +406,10 @@ export class CoFileField {
|
|
|
406
406
|
'co-file-field__action': true,
|
|
407
407
|
'co-file-field__action--copied': this.copiedKey === key,
|
|
408
408
|
}, type: "button", tabIndex: -1, "aria-label": s.copyUrl, onClick: () => this.handleCopy(item) }, h("co-icon", { name: this.copiedKey === key ? 'check' : 'copy', size: 18 })))), !this.disabled && !this.readonly && (h("co-tooltip", { content: s.removeFile }, h("button", { class: "co-file-field__action", type: "button", tabIndex: -1, "aria-label": s.removeFile, onClick: () => this.coRemove.emit(key) }, h("co-icon", { name: "trash", size: 18 }))))));
|
|
409
|
-
})))), helper && (h("div", { key: '
|
|
409
|
+
})))), helper && (h("div", { key: 'b6600a528ff6e9e3302bf889e58fac59edfeab2d', class: {
|
|
410
410
|
'co-file-field__helper': true,
|
|
411
411
|
'co-file-field__helper--error': this.isInvalid,
|
|
412
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
412
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '22d4218f3df57544633322761c905af8c4398f26', name: "warning-circle", size: 14, class: "co-file-field__helper-icon" })), h("span", { key: 'c7e02e0931ba3ea0bb6e3a6f5381e86ddbf982f1', class: "co-file-field__helper-text" }, helper)))));
|
|
413
413
|
}
|
|
414
414
|
static get is() { return "co-file-field"; }
|
|
415
415
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class CoFileTypeTile {
|
|
|
15
15
|
const iconSize = Math.round(this.size * 0.5);
|
|
16
16
|
const background = this.colorTags ? meta.tint : 'var(--co-color-gray-100)';
|
|
17
17
|
const color = this.colorTags ? meta.accent : 'var(--co-color-gray-600)';
|
|
18
|
-
return (h("span", { key: '
|
|
18
|
+
return (h("span", { key: 'bf16f0141f09189575a7333030affb4e365f7de5', class: {
|
|
19
19
|
'co-file-type-tile': true,
|
|
20
20
|
[`co-file-type-tile--${type}`]: true,
|
|
21
21
|
'co-file-type-tile--mono': !this.colorTags,
|
|
@@ -25,7 +25,7 @@ export class CoFileTypeTile {
|
|
|
25
25
|
borderRadius: `${this.radius}px`,
|
|
26
26
|
background,
|
|
27
27
|
color,
|
|
28
|
-
} }, h("co-icon", { key: '
|
|
28
|
+
} }, h("co-icon", { key: 'e194cb5de679470c57774c83d852522b9ce77b31', name: meta.icon, size: iconSize, weight: "fill" })));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "co-file-type-tile"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* co-gradient-bar — barra de paradas de un degradado (popover de relleno) */
|
|
2
|
+
|
|
3
|
+
:host {
|
|
4
|
+
display: block;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:host([hidden]) {
|
|
9
|
+
display: none;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/* Inset de 8px a cada lado: un handle de 16 centrado en 0% o 100% queda justo
|
|
13
|
+
dentro del host, sin sobresalir. Arriba, 9px: el cuadrado va centrado sobre
|
|
14
|
+
el borde superior del track (maqueta Figma 05-rect-gradiente), así que
|
|
15
|
+
sobresale 8px + 1px de halo opcional. */
|
|
16
|
+
.co-gradient-bar {
|
|
17
|
+
position: relative;
|
|
18
|
+
padding: 9px 8px 0;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ── Track ─────────────────────────────────────────────────────────────── */
|
|
23
|
+
.co-gradient-bar__track {
|
|
24
|
+
position: relative;
|
|
25
|
+
height: 24px;
|
|
26
|
+
border-radius: 6px;
|
|
27
|
+
cursor: copy;
|
|
28
|
+
touch-action: none;
|
|
29
|
+
user-select: none;
|
|
30
|
+
-webkit-user-select: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Damero debajo del degradado cuando alguna parada es translúcida. */
|
|
34
|
+
.co-gradient-bar--transparent .co-gradient-bar__track {
|
|
35
|
+
background: conic-gradient(var(--co-color-gray-200) 25%, #ffffff 0 50%, var(--co-color-gray-200) 0 75%, #ffffff 0) 0 0 / 12px 12px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.co-gradient-bar__fill {
|
|
39
|
+
position: absolute;
|
|
40
|
+
inset: 0;
|
|
41
|
+
border-radius: 6px;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Borde hairline por encima del degradado; como box-shadow interior no corre
|
|
46
|
+
el contenido (0% y 100% coinciden con los bordes del track). */
|
|
47
|
+
.co-gradient-bar__track::after {
|
|
48
|
+
content: '';
|
|
49
|
+
position: absolute;
|
|
50
|
+
inset: 0;
|
|
51
|
+
border-radius: 6px;
|
|
52
|
+
box-shadow: inset 0 0 0 1px var(--co-semantic-border-hairline);
|
|
53
|
+
pointer-events: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* ── Handles ───────────────────────────────────────────────────────────── */
|
|
57
|
+
/* Cuadrado de 16 centrado SOBRE EL BORDE SUPERIOR del track (centro = y del
|
|
58
|
+
borde), como en la maqueta: la mitad de arriba queda fuera de la barra y el
|
|
59
|
+
puntero apunta hacia abajo, dentro del degradado. */
|
|
60
|
+
.co-gradient-bar__handle {
|
|
61
|
+
position: absolute;
|
|
62
|
+
top: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
width: 16px;
|
|
65
|
+
height: 16px;
|
|
66
|
+
box-sizing: border-box;
|
|
67
|
+
transform: translate(-50%, -50%);
|
|
68
|
+
border-radius: 3px;
|
|
69
|
+
border: 2px solid var(--co-color-opacity-negro-16);
|
|
70
|
+
/* Chip partido como en Figma: mitad izquierda el color opaco, mitad derecha
|
|
71
|
+
el color real (con su alpha) sobre un damero. En un stop opaco ambas
|
|
72
|
+
mitades son iguales y el chip se ve liso. */
|
|
73
|
+
background:
|
|
74
|
+
linear-gradient(to right, var(--co-gradient-bar-stop-opaque, var(--co-gradient-bar-stop-color)) 50%, transparent 50%),
|
|
75
|
+
linear-gradient(var(--co-gradient-bar-stop-color), var(--co-gradient-bar-stop-color)),
|
|
76
|
+
conic-gradient(var(--co-color-gray-200) 25%, #ffffff 0 50%, var(--co-color-gray-200) 0 75%, #ffffff 0) 0 0 / 6px 6px;
|
|
77
|
+
/* Halo de 1px por fuera, opcional: el export de Figma no lo trae, así que el
|
|
78
|
+
default es transparent; el host lo enciende con
|
|
79
|
+
--co-gradient-bar-handle-halo (p.ej. blanco-80) si necesita silueta sobre
|
|
80
|
+
un tramo del degradado del mismo color. No cambia los 16px.
|
|
81
|
+
Sombra del handle: variable con el default de siempre (--co-shadow-sm2)
|
|
82
|
+
como fallback; el export de Figma (05-rect-gradiente) NO lleva sombra en
|
|
83
|
+
los handles, así que el host que quiera el look exacto pone
|
|
84
|
+
`--co-gradient-bar-handle-shadow: none`. Sin la variable, cero cambio. */
|
|
85
|
+
box-shadow:
|
|
86
|
+
0 0 0 1px var(--co-gradient-bar-handle-halo, transparent),
|
|
87
|
+
var(--co-gradient-bar-handle-shadow, var(--co-shadow-sm2));
|
|
88
|
+
cursor: grab;
|
|
89
|
+
outline: none;
|
|
90
|
+
touch-action: none;
|
|
91
|
+
z-index: 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* Puntero 6×2 colgando del cuadrado hacia abajo (justo bajo el borde
|
|
95
|
+
exterior; el containing block es la caja de padding, de ahí el +2px del
|
|
96
|
+
borde), del color del trazo. */
|
|
97
|
+
.co-gradient-bar__handle::after {
|
|
98
|
+
content: '';
|
|
99
|
+
position: absolute;
|
|
100
|
+
left: 50%;
|
|
101
|
+
top: calc(100% + 2px);
|
|
102
|
+
width: 6px;
|
|
103
|
+
height: 2px;
|
|
104
|
+
transform: translateX(-50%);
|
|
105
|
+
border-radius: 1px;
|
|
106
|
+
background: var(--co-color-opacity-negro-16);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.co-gradient-bar__handle--selected {
|
|
110
|
+
border-color: var(--co-semantic-accent);
|
|
111
|
+
z-index: 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.co-gradient-bar__handle--selected::after {
|
|
115
|
+
background: var(--co-semantic-accent);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* Anillo de foco por teclado — solo :focus-visible (misma regla que co-icon-button). */
|
|
119
|
+
.co-gradient-bar__handle:focus-visible {
|
|
120
|
+
box-shadow:
|
|
121
|
+
0 0 0 1px var(--co-gradient-bar-handle-halo, transparent),
|
|
122
|
+
0 0 0 2px var(--co-semantic-border-focus),
|
|
123
|
+
var(--co-gradient-bar-handle-shadow, var(--co-shadow-sm2));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.co-gradient-bar--dragging .co-gradient-bar__handle {
|
|
127
|
+
cursor: grabbing;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* ── Disabled ──────────────────────────────────────────────────────────── */
|
|
131
|
+
.co-gradient-bar--disabled {
|
|
132
|
+
opacity: 0.4;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.co-gradient-bar--disabled .co-gradient-bar__track,
|
|
136
|
+
.co-gradient-bar--disabled .co-gradient-bar__handle {
|
|
137
|
+
cursor: not-allowed;
|
|
138
|
+
}
|