@prolibu-suite/cobalt-core 0.10.3 → 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 +4385 -389
- 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 +28 -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 +81 -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 +43 -3
- 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 +144 -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-cndRd_-U.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 +28 -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 +81 -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 +8 -0
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +38 -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 +1748 -91
- 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-216a63ee.entry.js +0 -1
- package/dist/cobalt/p-39dc4ec8.entry.js +0 -1
- package/dist/cobalt/p-3d31c575.entry.js +0 -1
- package/dist/cobalt/p-410bee4d.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-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-D7Lhxz7L.js +0 -1
- package/dist/components/p-DFHRS9cJ.js +0 -1
- package/dist/components/p-DRP8D9ro.js +0 -1
- package/dist/components/p-DTPYZwaZ.js +0 -1
- package/dist/components/p-Dcg4krSX.js +0 -1
|
@@ -505,7 +505,7 @@ export class CoRefField {
|
|
|
505
505
|
}
|
|
506
506
|
// ── Main render ────────────────────────────────────────────
|
|
507
507
|
render() {
|
|
508
|
-
return (h("div", { key: '
|
|
508
|
+
return (h("div", { key: '67a5576b8bd40fce7ba99fd4cc32ea6666fc409c', class: "co-ref-field" }, (this.label || this.secondaryLabel) && (h("div", { key: 'e0a34e6913484e07d9b758ffb85969e1f5790603', class: "co-ref-field__labels" }, this.label && (h("label", { key: '7db53aa0ad57d8edbb4d745d52c9c6d6fa7697d1', class: "co-ref-field__label" }, this.labelIcon && (h("co-icon", { key: '220706f3a48453d84de18f8a12574560dcd33f16', class: "co-ref-field__label-icon", name: this.labelIcon, size: 16 })), this.label, h(RequiredMark, { key: 'fd1814aab65fadc89ae8bf8db4af9a7279761c23', required: this.required }))), this.secondaryLabel && (h("span", { key: '9d9292a8295a73536638718a67c97f326cece53a', class: "co-ref-field__secondary-label" }, this.secondaryLabel)))), h("co-popover", { key: '934f77e646fbe81f935415202884eead11b7044b', open: this.isOpen, placement: "bottom-start", matchWidth: !this.panelWidth, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '840494a7ea54f4c58e77d90e1dc7c57713c26a25', slot: "trigger" }, this.renderTrigger()), this.isOpen && this.renderPanel()), this.helperText && (h("div", { key: '6ee3efb271c12356166e2980b521c31b3bda66ff', class: `co-ref-field__helper co-ref-field__helper--${this.status}` }, this.status !== 'default' && (h("co-icon", { key: '8889e534784663f5dabff0ffba4e7fa946916aa2', name: this.status === 'error' ? 'warning-circle' : this.status === 'success' ? 'check-circle' : 'info', size: 14 })), h("span", { key: 'a731a16b2bd53d83a7a0ed3c75d9cdb9ea3b5191' }, this.helperText)))));
|
|
509
509
|
}
|
|
510
510
|
static get is() { return "co-ref-field"; }
|
|
511
511
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1321,7 +1321,7 @@ export class CoRefField {
|
|
|
1321
1321
|
"references": {
|
|
1322
1322
|
"RefFieldOption": {
|
|
1323
1323
|
"location": "local",
|
|
1324
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
1324
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1325
1325
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
@@ -1462,7 +1462,7 @@ export class CoRefField {
|
|
|
1462
1462
|
"references": {
|
|
1463
1463
|
"RefFieldOption": {
|
|
1464
1464
|
"location": "local",
|
|
1465
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
1465
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1466
1466
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
@@ -1483,7 +1483,7 @@ export class CoRefField {
|
|
|
1483
1483
|
"references": {
|
|
1484
1484
|
"RefFieldOption": {
|
|
1485
1485
|
"location": "local",
|
|
1486
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
1486
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1487
1487
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1488
1488
|
}
|
|
1489
1489
|
}
|
|
@@ -1522,7 +1522,7 @@ export class CoRefField {
|
|
|
1522
1522
|
},
|
|
1523
1523
|
"RefFieldOption": {
|
|
1524
1524
|
"location": "local",
|
|
1525
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
1525
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-ref-field/co-ref-field.tsx",
|
|
1526
1526
|
"id": "src/components/co-ref-field/co-ref-field.tsx::RefFieldOption"
|
|
1527
1527
|
}
|
|
1528
1528
|
},
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import * as RichText from "@prolibu-suite/cobalt-rich-text";
|
|
3
3
|
import { getRichTextStrings } from "../../utils/richTextI18n";
|
|
4
|
+
import { applyExternalValue, buildOutput, EchoGuard, parseEditorValue, parseFeatures, syncImageLayouts, syncToolbarEditor } from "../../utils/rich-text-host";
|
|
4
5
|
/**
|
|
5
6
|
* Rich text editor backed by Tiptap v3.
|
|
6
7
|
*
|
|
@@ -63,10 +64,8 @@ export class CoRichTextEditor {
|
|
|
63
64
|
this._loadedAccountFonts = [];
|
|
64
65
|
this._fontLoaderCalled = false;
|
|
65
66
|
this._fontLoaderLoading = false;
|
|
66
|
-
/**
|
|
67
|
-
this.
|
|
68
|
-
/** Last emitted HTML string — parents often send HTML back via value prop. */
|
|
69
|
-
this.lastEmittedHtml = '';
|
|
67
|
+
/** Guarda anti-eco compartida (utils/rich-text-host). */
|
|
68
|
+
this.echo = new EchoGuard();
|
|
70
69
|
/** True while applying an external value (suppresses emit). */
|
|
71
70
|
this.applyingExternal = false;
|
|
72
71
|
this.rt = RichText;
|
|
@@ -76,15 +75,10 @@ export class CoRichTextEditor {
|
|
|
76
75
|
if (this.applyingExternal)
|
|
77
76
|
return;
|
|
78
77
|
const out = this.buildOutput(editor);
|
|
79
|
-
|
|
80
|
-
//
|
|
81
|
-
this.lastEmittedJson = out.json ? JSON.stringify(out.json) : null;
|
|
82
|
-
this.lastEmittedHtml = out.html;
|
|
83
|
-
// Do NOT set this.value here — it triggers unnecessary Stencil re-renders
|
|
84
|
-
// and the Watch cycle. The parent is the source of truth for the value prop.
|
|
78
|
+
this.echo.markEmitted(out);
|
|
79
|
+
// No se asigna this.value: dispararía re-renders y el Watch. El padre es la fuente de verdad.
|
|
85
80
|
this.coInput.emit(out);
|
|
86
|
-
//
|
|
87
|
-
// (e.g. task-list checkbox toggled by onReadOnlyChecked).
|
|
81
|
+
// En readonly no hay ciclo de blur: se confirma en el acto (p. ej. checkbox de task-list).
|
|
88
82
|
if (this.readonly)
|
|
89
83
|
this.coChange.emit(out);
|
|
90
84
|
};
|
|
@@ -123,7 +117,7 @@ export class CoRichTextEditor {
|
|
|
123
117
|
this.editor = this.rt.createEditor({
|
|
124
118
|
preset: this.preset,
|
|
125
119
|
element: this.contentEl,
|
|
126
|
-
content:
|
|
120
|
+
content: parseEditorValue(this.value),
|
|
127
121
|
editable: !this.disabled && !this.readonly,
|
|
128
122
|
placeholder: this.placeholder,
|
|
129
123
|
maxLength: this.maxLength,
|
|
@@ -176,7 +170,7 @@ export class CoRichTextEditor {
|
|
|
176
170
|
this.suppressBubble(!!open);
|
|
177
171
|
});
|
|
178
172
|
}
|
|
179
|
-
this.
|
|
173
|
+
this.echo.seed((_b = this.value) !== null && _b !== void 0 ? _b : null);
|
|
180
174
|
this.ready = true;
|
|
181
175
|
this.refreshCharCount();
|
|
182
176
|
this.syncToolbar();
|
|
@@ -218,24 +212,17 @@ export class CoRichTextEditor {
|
|
|
218
212
|
if (!this.editor || this.applyingExternal)
|
|
219
213
|
return;
|
|
220
214
|
const incoming = next !== null && next !== void 0 ? next : null;
|
|
221
|
-
//
|
|
222
|
-
//
|
|
223
|
-
|
|
224
|
-
if (incoming === this.lastEmittedJson || incoming === this.lastEmittedHtml)
|
|
215
|
+
// El padre suele devolver nuestro propio output (JSON o HTML): re-aplicarlo
|
|
216
|
+
// reinicia el editor en cada tecla.
|
|
217
|
+
if (this.echo.isEcho(incoming))
|
|
225
218
|
return;
|
|
226
219
|
this.applyingExternal = true;
|
|
227
220
|
try {
|
|
228
|
-
|
|
229
|
-
this.editor.commands.clearContent(false);
|
|
230
|
-
}
|
|
231
|
-
else {
|
|
232
|
-
this.editor.commands.setContent(this.parseValue(next), { emitUpdate: false });
|
|
233
|
-
}
|
|
221
|
+
applyExternalValue(this.editor, incoming);
|
|
234
222
|
}
|
|
235
223
|
finally {
|
|
236
224
|
this.applyingExternal = false;
|
|
237
|
-
this.
|
|
238
|
-
this.lastEmittedHtml = '';
|
|
225
|
+
this.echo.seed(incoming);
|
|
239
226
|
this.refreshCharCount();
|
|
240
227
|
}
|
|
241
228
|
}
|
|
@@ -280,27 +267,7 @@ export class CoRichTextEditor {
|
|
|
280
267
|
return (_a = f === null || f === void 0 ? void 0 : f.image) !== null && _a !== void 0 ? _a : this.preset === 'document';
|
|
281
268
|
}
|
|
282
269
|
get parsedFeatures() {
|
|
283
|
-
|
|
284
|
-
return undefined;
|
|
285
|
-
if (typeof this.features === 'string') {
|
|
286
|
-
try {
|
|
287
|
-
return JSON.parse(this.features);
|
|
288
|
-
}
|
|
289
|
-
catch (_a) {
|
|
290
|
-
return undefined;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return this.features;
|
|
294
|
-
}
|
|
295
|
-
parseValue(v) {
|
|
296
|
-
if (!v)
|
|
297
|
-
return '';
|
|
298
|
-
try {
|
|
299
|
-
return JSON.parse(v);
|
|
300
|
-
}
|
|
301
|
-
catch (_a) {
|
|
302
|
-
return v; // tolerate an HTML string
|
|
303
|
-
}
|
|
270
|
+
return parseFeatures(this.features);
|
|
304
271
|
}
|
|
305
272
|
sanitizeHtml(html) {
|
|
306
273
|
// Con las MISMAS features que cargaron el schema: sin ellas, un <img> con
|
|
@@ -309,12 +276,7 @@ export class CoRichTextEditor {
|
|
|
309
276
|
return this.rt.sanitize(html, this.preset, this.parsedFeatures);
|
|
310
277
|
}
|
|
311
278
|
buildOutput(editor) {
|
|
312
|
-
|
|
313
|
-
return {
|
|
314
|
-
json: empty ? null : editor.getJSON(),
|
|
315
|
-
html: empty ? '' : this.sanitizeHtml(editor.getHTML()),
|
|
316
|
-
text: editor.getText(),
|
|
317
|
-
};
|
|
279
|
+
return buildOutput(editor, (html) => this.sanitizeHtml(html));
|
|
318
280
|
}
|
|
319
281
|
/** Lock the bubble position so floating-ui doesn't reposition it. */
|
|
320
282
|
lockBubblePosition(durationMs = 1000) {
|
|
@@ -423,12 +385,7 @@ export class CoRichTextEditor {
|
|
|
423
385
|
}
|
|
424
386
|
}
|
|
425
387
|
syncToolbar() {
|
|
426
|
-
|
|
427
|
-
this.toolbarEl.editor = this.editor;
|
|
428
|
-
}
|
|
429
|
-
if (this.toolbarEl) {
|
|
430
|
-
this.toolbarEl.imageUpload = this.imageUpload;
|
|
431
|
-
}
|
|
388
|
+
syncToolbarEditor(this.toolbarEl, this.editor, this.imageUpload);
|
|
432
389
|
}
|
|
433
390
|
get resolvedToolbar() {
|
|
434
391
|
if (this.toolbar !== 'auto')
|
|
@@ -1986,32 +1943,8 @@ export class CoRichTextEditor {
|
|
|
1986
1943
|
* from state and write the attribute imperatively to the container.
|
|
1987
1944
|
*/
|
|
1988
1945
|
syncImageLayouts() {
|
|
1989
|
-
if (
|
|
1990
|
-
|
|
1991
|
-
const view = this.editor.view;
|
|
1992
|
-
this.editor.state.doc.descendants((node, pos) => {
|
|
1993
|
-
var _a;
|
|
1994
|
-
if (node.type.name !== 'image')
|
|
1995
|
-
return true;
|
|
1996
|
-
const dom = view.nodeDOM(pos);
|
|
1997
|
-
const c = (((_a = dom === null || dom === void 0 ? void 0 : dom.closest) === null || _a === void 0 ? void 0 : _a.call(dom, '[data-resize-container]')) || dom);
|
|
1998
|
-
if (!c)
|
|
1999
|
-
return true;
|
|
2000
|
-
const layout = node.attrs.imageLayout || 'inline';
|
|
2001
|
-
c.dataset.imageLayout = layout;
|
|
2002
|
-
// Neutralise any absolute positioning baked by the old fixed-page model.
|
|
2003
|
-
c.style.position = '';
|
|
2004
|
-
c.style.left = '';
|
|
2005
|
-
c.style.top = '';
|
|
2006
|
-
c.style.zIndex = '';
|
|
2007
|
-
// The resize NodeView pins `display: inline-flex` INLINE on the container, which
|
|
2008
|
-
// beats the stylesheet's `display: block` for `center` / `full-width`: the editor
|
|
2009
|
-
// showed those images inline-left while the viewer (and the sent email) centred
|
|
2010
|
-
// them (2026-09-17). Clear it for block layouts so the CSS rule can apply; the
|
|
2011
|
-
// inline value is restored for flow layouts so the resize handles keep working.
|
|
2012
|
-
c.style.display = layout === 'center' || layout === 'full-width' ? '' : 'inline-flex';
|
|
2013
|
-
return true;
|
|
2014
|
-
});
|
|
1946
|
+
if (this.editor)
|
|
1947
|
+
syncImageLayouts(this.editor);
|
|
2015
1948
|
}
|
|
2016
1949
|
/** Reposition only the layout bar (used during drag for performance). */
|
|
2017
1950
|
updateImageLayoutBarPosition() {
|
|
@@ -2052,11 +1985,11 @@ export class CoRichTextEditor {
|
|
|
2052
1985
|
const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
|
|
2053
1986
|
const showCount = this.showCharacterCount || this.maxLength != null;
|
|
2054
1987
|
const bottom = this.toolbarPosition === 'bottom';
|
|
2055
|
-
const toolbar = showToolbar && (h("co-rich-text-toolbar", { key: '
|
|
1988
|
+
const toolbar = showToolbar && (h("co-rich-text-toolbar", { key: '8d13314a23cc3b290d5a2ac8a2ef1b68f55b9574', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, position: this.toolbarPosition, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
|
|
2056
1989
|
e.stopPropagation();
|
|
2057
1990
|
this.coAttachmentsSelected.emit(e.detail);
|
|
2058
1991
|
}, ref: (el) => (this.toolbarEl = el) }));
|
|
2059
|
-
return (h("div", { key: '
|
|
1992
|
+
return (h("div", { key: '65401af712fa511cf2f30761d4b2ff753dc75a6f', class: {
|
|
2060
1993
|
'co-rich-text-editor': true,
|
|
2061
1994
|
'co-rich-text-editor--focused': this.hasFocus,
|
|
2062
1995
|
'co-rich-text-editor--disabled': this.disabled,
|
|
@@ -2065,7 +1998,7 @@ export class CoRichTextEditor {
|
|
|
2065
1998
|
[`co-rich-text-editor--${this.status}`]: this.status !== 'default',
|
|
2066
1999
|
'co-rich-text-editor--flat': this.variant === 'flat',
|
|
2067
2000
|
'co-rich-text-editor--toolbar-bottom': bottom,
|
|
2068
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
2001
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '012dc50c67d9ca53896a8ffc329a32909685994e', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: '23b54b1f9556bc1e6ad1a3b3dd0ed9e26a5e7500', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: '534941598c650f1262f046c16a3f30817b0c2d88', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: 'f14dbd62014625638da4b209d6f083d3ca16e184', class: "co-rich-text-editor__frame" }, !bottom && toolbar, h("div", { key: '98d5e7aa68b73a51da6a74512ac8a08e6dbb9df0', class: "co-rich-text-editor__box" }, h("div", { key: '16b7aaa9773290a58122595ad188ab6f9db3354b', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) })), h("slot", { key: '0f90fc0c30ee03ec2023f229348debab6e734ade', name: "content-end" }), bottom && (h("div", { key: '68d646dbe5d37c7ebebe105b8ada3584684340e1', class: "co-rich-text-editor__toolbar-row", part: "toolbar-row" }, toolbar, h("slot", { key: '48ec89359f8a6957bf0451384602cabd37a99019', name: "toolbar-end" })))), h("div", { key: '932083b9360e7abbede76a10a3a7eeec1dc88a84', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: '6be15e0e151e9548e2d5a964f864992687113393', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: '456f73c7afec3eb8bd88dc13c2b6942021d31b78', name: this.helperIcon, size: 14 }), h("span", { key: '666d8db7d19a1559f392b2cfea76c393080c2d98' }, this.helperText))), showCount && (h("span", { key: '2d561825e0bc7790407750de52242c87b1515e8c', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
|
|
2069
2002
|
}
|
|
2070
2003
|
static get is() { return "co-rich-text-editor"; }
|
|
2071
2004
|
static get originalStyleUrls() {
|
|
@@ -2105,7 +2038,7 @@ export class CoRichTextEditor {
|
|
|
2105
2038
|
"mutable": false,
|
|
2106
2039
|
"complexType": {
|
|
2107
2040
|
"original": "RichTextPreset",
|
|
2108
|
-
"resolved": "\"block-email\" | \"comment\" | \"document\" | \"email\" | \"notes\" | \"task\"",
|
|
2041
|
+
"resolved": "\"block-email\" | \"comment\" | \"document\" | \"email\" | \"notes\" | \"print\" | \"print-header\" | \"task\"",
|
|
2109
2042
|
"references": {
|
|
2110
2043
|
"RichTextPreset": {
|
|
2111
2044
|
"location": "import",
|
|
@@ -2368,7 +2301,7 @@ export class CoRichTextEditor {
|
|
|
2368
2301
|
"mutable": false,
|
|
2369
2302
|
"complexType": {
|
|
2370
2303
|
"original": "ToolbarVariant",
|
|
2371
|
-
"resolved": "\"auto\" | \"basic\" | \"compact\" | \"compact-assets\" | \"email\" | \"full\" | \"none\" | \"notes\"",
|
|
2304
|
+
"resolved": "\"auto\" | \"basic\" | \"compact\" | \"compact-assets\" | \"document\" | \"email\" | \"full\" | \"none\" | \"notes\"",
|
|
2372
2305
|
"references": {
|
|
2373
2306
|
"ToolbarVariant": {
|
|
2374
2307
|
"location": "import",
|
|
@@ -895,3 +895,15 @@
|
|
|
895
895
|
margin-top: 0;
|
|
896
896
|
margin-bottom: var(--co-spacing-xs, 4px);
|
|
897
897
|
}
|
|
898
|
+
|
|
899
|
+
/* Botones del host (extraItems): llevan texto visible, así que no son icon-only. */
|
|
900
|
+
.co-rich-text-toolbar__btn--extra {
|
|
901
|
+
width: auto;
|
|
902
|
+
gap: var(--co-spacing-xs);
|
|
903
|
+
padding-inline: var(--co-spacing-sm2);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
.co-rich-text-toolbar__extra-label {
|
|
907
|
+
font-size: var(--co-font-size-13);
|
|
908
|
+
white-space: nowrap;
|
|
909
|
+
}
|
|
@@ -23,6 +23,8 @@ export class CoRichTextToolbar {
|
|
|
23
23
|
/** Shows the attachment button (compact-assets variant). The editor never
|
|
24
24
|
* owns the attachment list — it only emits the picked files. */
|
|
25
25
|
this.attachmentsEnabled = false;
|
|
26
|
+
/** Muestra «Encabezado» (variante document). co-document-editor lo apaga mientras se edita la banda. */
|
|
27
|
+
this.documentHeaderEnabled = false;
|
|
26
28
|
this.items = [];
|
|
27
29
|
/** Bumped on every editor transaction to refresh active state. */
|
|
28
30
|
this.tick = 0;
|
|
@@ -176,10 +178,18 @@ export class CoRichTextToolbar {
|
|
|
176
178
|
chain.outdent().run();
|
|
177
179
|
}
|
|
178
180
|
break;
|
|
181
|
+
case 'signature':
|
|
182
|
+
chain.insertSignatureSlot().run();
|
|
183
|
+
break;
|
|
184
|
+
case 'documentHeader':
|
|
185
|
+
// El editor de documento abre la banda: la barra solo avisa.
|
|
186
|
+
this.coAction.emit({ action: 'documentHeader' });
|
|
187
|
+
return;
|
|
179
188
|
case 'attachment':
|
|
180
189
|
this.triggerAttachmentFileUpload();
|
|
181
190
|
return; // no editor command — the host owns the files
|
|
182
191
|
case 'link':
|
|
192
|
+
case 'field':
|
|
183
193
|
case 'image':
|
|
184
194
|
case 'youtube':
|
|
185
195
|
case 'iframe':
|
|
@@ -226,6 +236,7 @@ export class CoRichTextToolbar {
|
|
|
226
236
|
addRowBefore: s.addRowBefore, deleteRow: s.deleteRow,
|
|
227
237
|
deleteTable: s.deleteTable, mergeCells: s.mergeCells,
|
|
228
238
|
splitCell: s.splitCell, toggleHeaderRow: s.headerRow,
|
|
239
|
+
field: s.field, signature: s.signature, documentHeader: s.documentHeader,
|
|
229
240
|
};
|
|
230
241
|
return (_a = map[item.action]) !== null && _a !== void 0 ? _a : item.label;
|
|
231
242
|
}
|
|
@@ -244,6 +255,8 @@ export class CoRichTextToolbar {
|
|
|
244
255
|
return s.subtitle;
|
|
245
256
|
if (level === 3)
|
|
246
257
|
return s.heading3;
|
|
258
|
+
if (level === 4)
|
|
259
|
+
return s.heading4;
|
|
247
260
|
}
|
|
248
261
|
if (opt.action === 'bulletStyle') {
|
|
249
262
|
const m = { disc: s.disc, circle: s.circle, square: s.square };
|
|
@@ -280,6 +293,9 @@ export class CoRichTextToolbar {
|
|
|
280
293
|
document.addEventListener('click', this.handleDocumentClick, true);
|
|
281
294
|
}
|
|
282
295
|
componentWillLoad() {
|
|
296
|
+
// H3: el harness de specs no aplica los defaults de clase de @State; en
|
|
297
|
+
// producción es neutro (mismo valor inicial).
|
|
298
|
+
this.tableContextItems = [];
|
|
283
299
|
this.items = this.resolveItems(this.variant);
|
|
284
300
|
this.colorPalette = COLOR_PALETTE;
|
|
285
301
|
this._tableContextItems = TABLE_CONTEXT_ITEMS;
|
|
@@ -290,6 +306,23 @@ export class CoRichTextToolbar {
|
|
|
290
306
|
onAttachmentsEnabledChange() {
|
|
291
307
|
this.items = this.resolveItems(this.variant);
|
|
292
308
|
}
|
|
309
|
+
onDocumentHeaderEnabledChange() {
|
|
310
|
+
this.items = this.resolveItems(this.variant);
|
|
311
|
+
}
|
|
312
|
+
get parsedExtraItems() {
|
|
313
|
+
const raw = this.extraItems;
|
|
314
|
+
if (!raw)
|
|
315
|
+
return [];
|
|
316
|
+
if (typeof raw !== 'string')
|
|
317
|
+
return raw;
|
|
318
|
+
try {
|
|
319
|
+
const v = JSON.parse(raw);
|
|
320
|
+
return Array.isArray(v) ? v : [];
|
|
321
|
+
}
|
|
322
|
+
catch (_a) {
|
|
323
|
+
return [];
|
|
324
|
+
}
|
|
325
|
+
}
|
|
293
326
|
onEditorChange(next, prev) {
|
|
294
327
|
prev === null || prev === void 0 ? void 0 : prev.off('transaction', this.onTransaction);
|
|
295
328
|
next === null || next === void 0 ? void 0 : next.on('transaction', this.onTransaction);
|
|
@@ -320,13 +353,16 @@ export class CoRichTextToolbar {
|
|
|
320
353
|
}
|
|
321
354
|
};
|
|
322
355
|
const kept = base.filter((entry) => {
|
|
356
|
+
var _a;
|
|
323
357
|
if (this.isSeparator(entry))
|
|
324
358
|
return true;
|
|
325
359
|
const action = entry.action;
|
|
326
360
|
// attachment has no editor command — visibility is host opt-in.
|
|
327
361
|
if (action === 'attachment')
|
|
328
362
|
return this.attachmentsEnabled;
|
|
329
|
-
|
|
363
|
+
if (action === 'documentHeader')
|
|
364
|
+
return this.documentHeaderEnabled;
|
|
365
|
+
const cmd = (_a = CoRichTextToolbar.ITEM_COMMAND[action]) !== null && _a !== void 0 ? _a : (variant === 'document' ? CoRichTextToolbar.DOCUMENT_ITEM_COMMAND[action] : undefined);
|
|
330
366
|
return cmd ? available(cmd) : true;
|
|
331
367
|
});
|
|
332
368
|
// Drop separators that ended up leading, trailing, or doubled-up.
|
|
@@ -451,6 +487,9 @@ export class CoRichTextToolbar {
|
|
|
451
487
|
case 'link':
|
|
452
488
|
chain.setLink({ href: url }).run();
|
|
453
489
|
break;
|
|
490
|
+
case 'field':
|
|
491
|
+
chain.insertField(url).run();
|
|
492
|
+
break;
|
|
454
493
|
case 'image':
|
|
455
494
|
chain.setImage({ src: url }).run();
|
|
456
495
|
break;
|
|
@@ -596,6 +635,7 @@ export class CoRichTextToolbar {
|
|
|
596
635
|
}
|
|
597
636
|
}
|
|
598
637
|
getDropdownLabel(item) {
|
|
638
|
+
var _a, _b;
|
|
599
639
|
if (!this.editor)
|
|
600
640
|
return null;
|
|
601
641
|
const s = this.s;
|
|
@@ -606,12 +646,15 @@ export class CoRichTextToolbar {
|
|
|
606
646
|
return s.subtitle;
|
|
607
647
|
if (this.editor.isActive('heading', { level: 3 }))
|
|
608
648
|
return s.headingAbbr3;
|
|
649
|
+
if (this.editor.isActive('heading', { level: 4 }))
|
|
650
|
+
return s.headingAbbr4;
|
|
609
651
|
return s.normal;
|
|
610
652
|
}
|
|
611
653
|
if (item.action === 'fontSize') {
|
|
612
|
-
|
|
613
|
-
const
|
|
614
|
-
|
|
654
|
+
// Preset print: el tamaño es la marca `printFontSize` (forma de V1); el resto lo guarda en textStyle.
|
|
655
|
+
const printSize = (_a = this.editor.getAttributes('printFontSize')) === null || _a === void 0 ? void 0 : _a.size;
|
|
656
|
+
const fs = printSize !== null && printSize !== void 0 ? printSize : (_b = this.editor.getAttributes('textStyle')) === null || _b === void 0 ? void 0 : _b.fontSize;
|
|
657
|
+
return fs ? String(fs).replace('px', '') : '16';
|
|
615
658
|
}
|
|
616
659
|
if (item.action === 'fontFamily') {
|
|
617
660
|
const attrs = this.editor.getAttributes('textStyle');
|
|
@@ -773,16 +816,19 @@ export class CoRichTextToolbar {
|
|
|
773
816
|
const isLink = item.action === 'link';
|
|
774
817
|
const isIframe = item.action === 'iframe';
|
|
775
818
|
const hasExisting = (isLink && ((_a = this.editor) === null || _a === void 0 ? void 0 : _a.isActive('link'))) || (isIframe && ((_b = this.editor) === null || _b === void 0 ? void 0 : _b.isActive('iframe')));
|
|
776
|
-
const
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
819
|
+
const isField = item.action === 'field';
|
|
820
|
+
const placeholder = isField
|
|
821
|
+
? this.s.fieldNamePlaceholder
|
|
822
|
+
: item.action === 'iframe'
|
|
823
|
+
? this.s.iframeUrlPlaceholder
|
|
824
|
+
: item.action === 'link'
|
|
825
|
+
? 'https://...'
|
|
826
|
+
: this.s.youtubeUrlPlaceholder;
|
|
781
827
|
return (h("div", { class: "co-rich-text-toolbar__popover", onMouseDown: (e) => {
|
|
782
828
|
if (e.target.tagName !== 'INPUT')
|
|
783
829
|
e.preventDefault();
|
|
784
830
|
e.stopPropagation();
|
|
785
|
-
} }, h("input", { type:
|
|
831
|
+
} }, h("input", { type: isField ? 'text' : 'url', class: "co-rich-text-toolbar__popover-input", placeholder: placeholder, "aria-label": placeholder, value: this.popoverInput, onInput: (e) => { this.popoverInput = e.target.value; }, onKeyDown: (e) => {
|
|
786
832
|
if (e.key === 'Enter')
|
|
787
833
|
this.submitPopover(item.action);
|
|
788
834
|
if (e.key === 'Escape') {
|
|
@@ -1097,12 +1143,9 @@ export class CoRichTextToolbar {
|
|
|
1097
1143
|
return null;
|
|
1098
1144
|
// reference tick so Stencil re-renders on selection changes
|
|
1099
1145
|
void this.tick;
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
}
|
|
1104
|
-
return this.renderButton(entry);
|
|
1105
|
-
})));
|
|
1146
|
+
const extras = this.parsedExtraItems;
|
|
1147
|
+
const renderEntry = (entry) => this.isSeparator(entry) ? h("span", { class: "co-rich-text-toolbar__sep" }) : this.renderButton(entry);
|
|
1148
|
+
return (h("div", { class: "co-rich-text-toolbar", role: "toolbar", "aria-label": "Formatting", part: "toolbar" }, this.items.map(renderEntry), this.variant === 'document' && this.tableContextItems.map(renderEntry), extras.length > 0 && h("span", { class: "co-rich-text-toolbar__sep" }), extras.map((x) => (h("button", { type: "button", key: `extra-${x.id}`, class: "co-rich-text-toolbar__btn co-rich-text-toolbar__btn--extra", part: "button", disabled: this.disabled, onMouseDown: (e) => e.preventDefault(), onClick: () => this.coAction.emit({ action: x.id, payload: { extra: true } }) }, x.icon && h("co-icon", { name: x.icon, size: 18 }), h("span", { class: "co-rich-text-toolbar__extra-label" }, x.label))))));
|
|
1106
1149
|
}
|
|
1107
1150
|
static get is() { return "co-rich-text-toolbar"; }
|
|
1108
1151
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1146,8 +1189,8 @@ export class CoRichTextToolbar {
|
|
|
1146
1189
|
"type": "string",
|
|
1147
1190
|
"mutable": false,
|
|
1148
1191
|
"complexType": {
|
|
1149
|
-
"original": "'none' | 'compact' | 'compact-assets' | 'basic' | 'notes' | 'email' | 'full'",
|
|
1150
|
-
"resolved": "\"basic\" | \"compact\" | \"compact-assets\" | \"email\" | \"full\" | \"none\" | \"notes\"",
|
|
1192
|
+
"original": "'none' | 'compact' | 'compact-assets' | 'basic' | 'notes' | 'email' | 'full' | 'document'",
|
|
1193
|
+
"resolved": "\"basic\" | \"compact\" | \"compact-assets\" | \"document\" | \"email\" | \"full\" | \"none\" | \"notes\"",
|
|
1151
1194
|
"references": {}
|
|
1152
1195
|
},
|
|
1153
1196
|
"required": false,
|
|
@@ -1286,6 +1329,52 @@ export class CoRichTextToolbar {
|
|
|
1286
1329
|
"setter": false,
|
|
1287
1330
|
"reflect": false,
|
|
1288
1331
|
"attribute": "attachment-accept"
|
|
1332
|
+
},
|
|
1333
|
+
"documentHeaderEnabled": {
|
|
1334
|
+
"type": "boolean",
|
|
1335
|
+
"mutable": false,
|
|
1336
|
+
"complexType": {
|
|
1337
|
+
"original": "boolean",
|
|
1338
|
+
"resolved": "boolean",
|
|
1339
|
+
"references": {}
|
|
1340
|
+
},
|
|
1341
|
+
"required": false,
|
|
1342
|
+
"optional": false,
|
|
1343
|
+
"docs": {
|
|
1344
|
+
"tags": [],
|
|
1345
|
+
"text": "Muestra \u00ABEncabezado\u00BB (variante document). co-document-editor lo apaga mientras se edita la banda."
|
|
1346
|
+
},
|
|
1347
|
+
"getter": false,
|
|
1348
|
+
"setter": false,
|
|
1349
|
+
"reflect": false,
|
|
1350
|
+
"attribute": "document-header-enabled",
|
|
1351
|
+
"defaultValue": "false"
|
|
1352
|
+
},
|
|
1353
|
+
"extraItems": {
|
|
1354
|
+
"type": "string",
|
|
1355
|
+
"mutable": false,
|
|
1356
|
+
"complexType": {
|
|
1357
|
+
"original": "ToolbarExtraItem[] | string",
|
|
1358
|
+
"resolved": "ToolbarExtraItem[] | string | undefined",
|
|
1359
|
+
"references": {
|
|
1360
|
+
"ToolbarExtraItem": {
|
|
1361
|
+
"location": "import",
|
|
1362
|
+
"path": "@prolibu-suite/cobalt-rich-text",
|
|
1363
|
+
"id": "../rich-text/dist/index.d.ts::ToolbarExtraItem",
|
|
1364
|
+
"referenceLocation": "ToolbarExtraItem"
|
|
1365
|
+
}
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
"required": false,
|
|
1369
|
+
"optional": true,
|
|
1370
|
+
"docs": {
|
|
1371
|
+
"tags": [],
|
|
1372
|
+
"text": "Botones del host al final de la barra (propiedad JS o JSON): `[{ id, label, icon? }]`.\nSu clic emite `coAction` con `{ action: id, payload: { extra: true } }` y no toca el editor."
|
|
1373
|
+
},
|
|
1374
|
+
"getter": false,
|
|
1375
|
+
"setter": false,
|
|
1376
|
+
"reflect": false,
|
|
1377
|
+
"attribute": "extra-items"
|
|
1289
1378
|
}
|
|
1290
1379
|
};
|
|
1291
1380
|
}
|
|
@@ -1369,6 +1458,9 @@ export class CoRichTextToolbar {
|
|
|
1369
1458
|
}, {
|
|
1370
1459
|
"propName": "attachmentsEnabled",
|
|
1371
1460
|
"methodName": "onAttachmentsEnabledChange"
|
|
1461
|
+
}, {
|
|
1462
|
+
"propName": "documentHeaderEnabled",
|
|
1463
|
+
"methodName": "onDocumentHeaderEnabledChange"
|
|
1372
1464
|
}, {
|
|
1373
1465
|
"propName": "editor",
|
|
1374
1466
|
"methodName": "onEditorChange"
|
|
@@ -1404,3 +1496,16 @@ CoRichTextToolbar.ITEM_COMMAND = {
|
|
|
1404
1496
|
bulletListMenu: 'toggleBulletList',
|
|
1405
1497
|
orderedListMenu: 'toggleOrderedList',
|
|
1406
1498
|
};
|
|
1499
|
+
/**
|
|
1500
|
+
* Filtro por schema SOLO de la variante `document` (co-document-editor): el editor
|
|
1501
|
+
* del encabezado (preset print-header) no tiene links, títulos, listas ni firmas.
|
|
1502
|
+
* Las demás variantes resuelven exactamente como antes (spec: el RTE no cambia).
|
|
1503
|
+
*/
|
|
1504
|
+
CoRichTextToolbar.DOCUMENT_ITEM_COMMAND = {
|
|
1505
|
+
link: 'setLink',
|
|
1506
|
+
headingStyle: 'toggleHeading',
|
|
1507
|
+
bulletList: 'toggleBulletList',
|
|
1508
|
+
orderedList: 'toggleOrderedList',
|
|
1509
|
+
field: 'insertField',
|
|
1510
|
+
signature: 'insertSignatureSlot',
|
|
1511
|
+
};
|
|
@@ -20,6 +20,13 @@ const ALLOWED_TAGS = {
|
|
|
20
20
|
email: ['p', 'br', 'strong', 'em', 'a', 'span', 'u', 's', 'code', 'ul', 'ol', 'li', 'blockquote', 'h2', 'h3', 'div', 'img'],
|
|
21
21
|
document: ['p', 'br', 'strong', 'em', 'a', 'span', 'u', 's', 'code', 'ul', 'ol', 'li', 'blockquote', 'h1', 'h2', 'h3', 'h4', 'hr', 'div', 'mark', 'img', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'iframe'],
|
|
22
22
|
'block-email': ['p', 'br', 'strong', 'em', 'a', 'span', 'u', 's', 'code', 'ul', 'ol', 'li', 'blockquote', 'h2', 'h3', 'div', 'img'],
|
|
23
|
+
// Espejo de SANITIZE_CONFIGS.print / 'print-header' (rich-text/sanitizer.ts).
|
|
24
|
+
// Solo TAGS: la lista de atributos del viewer (sin class, containerstyle,
|
|
25
|
+
// wrapperstyle ni data-*) no se amplió, así que un HTML de impresión pintado
|
|
26
|
+
// acá pierde campos, firmas y modos de imagen. Nadie lo consume hoy (H14);
|
|
27
|
+
// para pintarlo fiel hay que completar también los atributos.
|
|
28
|
+
print: ['p', 'br', 'strong', 'em', 's', 'code', 'a', 'span', 'mark', 'h1', 'h2', 'h3', 'h4', 'ul', 'ol', 'li', 'blockquote', 'pre', 'hr', 'img', 'div', 'table', 'colgroup', 'col', 'thead', 'tbody', 'tr', 'th', 'td'],
|
|
29
|
+
'print-header': ['p', 'br', 'strong', 'em', 's', 'code', 'span', 'mark', 'img'],
|
|
23
30
|
};
|
|
24
31
|
/** iframes are permitted only with an https: source (blocks javascript:/data:/http:). */
|
|
25
32
|
const SAFE_IFRAME_SRC_RE = /^https:\/\/[^\s"'<>]+$/i;
|
|
@@ -198,7 +205,7 @@ export class CoRichTextViewer {
|
|
|
198
205
|
"mutable": false,
|
|
199
206
|
"complexType": {
|
|
200
207
|
"original": "RichTextPreset",
|
|
201
|
-
"resolved": "\"block-email\" | \"comment\" | \"document\" | \"email\" | \"notes\" | \"task\"",
|
|
208
|
+
"resolved": "\"block-email\" | \"comment\" | \"document\" | \"email\" | \"notes\" | \"print\" | \"print-header\" | \"task\"",
|
|
202
209
|
"references": {
|
|
203
210
|
"RichTextPreset": {
|
|
204
211
|
"location": "import",
|
|
@@ -13,11 +13,11 @@ export class CoRow {
|
|
|
13
13
|
this.size = 'sm';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'd82c1b834c4c6825da02a0112d78a8e5a6d12219', class: {
|
|
17
17
|
'co-row': true,
|
|
18
18
|
[`co-row--${this.position}`]: true,
|
|
19
19
|
[`co-row--${this.size}`]: true,
|
|
20
|
-
}, part: "row" }, h("div", { key: '
|
|
20
|
+
}, part: "row" }, h("div", { key: '33ae6da740cd01f7b81ed2b76cdba355a9e3e3d2', class: "co-row__prefix" }, h("slot", { key: '9f646baf5b45b931042504b18bc683332f000f6a', name: "prefix" })), h("div", { key: '3c5648a7b0b326ad4c5a547a4ce6f158b85150ec', class: "co-row__content" }, h("slot", { key: '56384849d661312ffd659de530ffb4735fb943c2' })), h("div", { key: 'bf8d524a890d724db01d3216d9128bb00aa9011d', class: "co-row__suffix" }, h("slot", { key: '41aa4471ed0d20f925944e2ef850c0b8f8ec8607', name: "suffix" }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "co-row"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -43,13 +43,13 @@ export class CoSegmentedBar {
|
|
|
43
43
|
render() {
|
|
44
44
|
const segments = this.parsedSegments;
|
|
45
45
|
const total = this.total > 0 ? this.total : 100;
|
|
46
|
-
return (h("div", { key: '
|
|
46
|
+
return (h("div", { key: 'f7301a9d7e31e6b3fbf6037fb2425b1701af171e', class: "co-segmented-bar", part: "segmented-bar" }, h("div", { key: '22f3063c1db26411e6c0b5e18f1d9249fcf05ca5', class: {
|
|
47
47
|
'co-segmented-bar__track': true,
|
|
48
48
|
[`co-segmented-bar__track--radius-${this.radius}`]: true,
|
|
49
49
|
}, part: "track", style: { height: `${this.thickness}px`, background: this.trackColor } }, segments.map((seg, i) => (h("span", { key: i, class: "co-segmented-bar__segment", part: "segment", title: seg.label, style: {
|
|
50
50
|
width: `${(seg.value / total) * 100}%`,
|
|
51
51
|
background: seg.color,
|
|
52
|
-
} })))), h("slot", { key: '
|
|
52
|
+
} })))), h("slot", { key: '3eb6275c7f248d3f93d24f5e44c1c30e6eb4f019', name: "legend" })));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "co-segmented-bar"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -154,7 +154,7 @@ export class CoSegmentedBar {
|
|
|
154
154
|
"references": {
|
|
155
155
|
"CoSegment": {
|
|
156
156
|
"location": "local",
|
|
157
|
-
"path": "/Users/agox/worktrees/cobalt-release-
|
|
157
|
+
"path": "/Users/agox/worktrees/cobalt-release-2026-09-24/packages/core/src/components/co-segmented-bar/co-segmented-bar.tsx",
|
|
158
158
|
"id": "src/components/co-segmented-bar/co-segmented-bar.tsx::CoSegment"
|
|
159
159
|
}
|
|
160
160
|
}
|