@prolibu-suite/cobalt-core 0.10.4 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -5
- package/custom-elements.json +7034 -1203
- 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 +12 -5
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- 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 +4 -3
- package/dist/cjs/co-button.cjs.entry.js +9 -7
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +16 -4
- package/dist/cjs/co-calendar_3.cjs.entry.js +76 -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 +6 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox.cjs.entry.js +13 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +20 -7
- 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 +23 -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 +10 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +11 -2
- package/dist/cjs/co-date-range.cjs.entry.js +8 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +11 -4
- package/dist/cjs/co-document-editor.cjs.entry.js +1167 -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 +5 -3
- package/dist/cjs/co-event-popover.cjs.entry.js +7 -3
- package/dist/cjs/co-fab.cjs.entry.js +7 -3
- package/dist/cjs/co-file-field.cjs.entry.js +12 -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 +48 -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 +10 -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 +11 -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 +69 -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 +11 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +14 -5
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +40 -92
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +80 -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 +171 -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 +209 -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 +13 -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 +5 -2
- package/dist/cjs/co-toast.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +29 -5
- package/dist/cjs/co-toggle-button.cjs.entry.js +70 -6
- package/dist/cjs/co-transfer-list.cjs.entry.js +7 -3
- package/dist/cjs/co-tree-item.cjs.entry.js +110 -0
- package/dist/cjs/co-video.cjs.entry.js +11 -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-76249983.entry.js → p-019eed8e.entry.js} +1 -1
- package/dist/cobalt/p-04e3e1f6.entry.js +1 -0
- package/dist/cobalt/p-06689166.entry.js +1 -0
- package/dist/cobalt/p-0d046d98.entry.js +1 -0
- package/dist/cobalt/{p-28764b8e.entry.js → p-0e4c2234.entry.js} +1 -1
- package/dist/cobalt/{p-b90d41e4.entry.js → p-1348d5ca.entry.js} +1 -1
- package/dist/cobalt/{p-49834b8e.entry.js → p-13e5b724.entry.js} +1 -1
- package/dist/cobalt/p-1a5bec8c.entry.js +1 -0
- package/dist/cobalt/p-21b4a830.entry.js +1 -0
- package/dist/cobalt/p-2231bacc.entry.js +1 -0
- package/dist/cobalt/{p-b437eff6.entry.js → p-26cbdc33.entry.js} +1 -1
- package/dist/cobalt/{p-aa9400bf.entry.js → p-28cf05f3.entry.js} +1 -1
- package/dist/cobalt/{p-eadfd661.entry.js → p-358a6c2a.entry.js} +1 -1
- package/dist/cobalt/p-3b5024ce.entry.js +1 -0
- package/dist/cobalt/p-3b6efb79.entry.js +1 -0
- package/dist/cobalt/p-3d1a48e5.entry.js +1 -0
- package/dist/cobalt/p-47eca182.entry.js +1 -0
- package/dist/cobalt/{p-eb82358d.entry.js → p-4bcdd422.entry.js} +1 -1
- package/dist/cobalt/{p-17244412.entry.js → p-4d743628.entry.js} +1 -1
- package/dist/cobalt/{p-011dc80b.entry.js → p-4e81e580.entry.js} +1 -1
- package/dist/cobalt/{p-ee9a623d.entry.js → p-53a251ca.entry.js} +1 -1
- package/dist/cobalt/{p-11c5ce78.entry.js → p-56176aa0.entry.js} +1 -1
- package/dist/cobalt/{p-a32b20eb.entry.js → p-58ebb303.entry.js} +1 -1
- package/dist/cobalt/{p-4592ca00.entry.js → p-5a32b9a2.entry.js} +1 -1
- package/dist/cobalt/{p-2636b7eb.entry.js → p-5e678e88.entry.js} +1 -1
- package/dist/cobalt/{p-996f4e38.entry.js → p-60f948c4.entry.js} +1 -1
- package/dist/cobalt/p-63908a8d.entry.js +1 -0
- package/dist/cobalt/p-65c191aa.entry.js +1 -0
- package/dist/cobalt/{p-c2ebf0ec.entry.js → p-65d44da2.entry.js} +1 -1
- package/dist/cobalt/p-67a024dd.entry.js +1 -0
- package/dist/cobalt/{p-ee149fd2.entry.js → p-6974df59.entry.js} +1 -1
- package/dist/cobalt/{p-000a15b8.entry.js → p-69ecc933.entry.js} +1 -1
- package/dist/cobalt/p-6c1992c9.entry.js +1 -0
- package/dist/cobalt/{p-b821d9de.entry.js → p-6d4a660c.entry.js} +1 -1
- package/dist/cobalt/{p-f57dffca.entry.js → p-713637f2.entry.js} +1 -1
- package/dist/cobalt/{p-292b0389.entry.js → p-71ae1551.entry.js} +1 -1
- package/dist/cobalt/{p-91e73a92.entry.js → p-71dc8e4a.entry.js} +1 -1
- package/dist/cobalt/{p-aaca6dab.entry.js → p-71ee36a8.entry.js} +1 -1
- package/dist/cobalt/p-71fe35c4.entry.js +1 -0
- package/dist/cobalt/{p-08e42e00.entry.js → p-73313cbe.entry.js} +1 -1
- package/dist/cobalt/{p-7b5c555c.entry.js → p-763698b3.entry.js} +1 -1
- package/dist/cobalt/p-77e0d401.entry.js +1 -0
- package/dist/cobalt/{p-c91d4fc6.entry.js → p-78412feb.entry.js} +1 -1
- package/dist/cobalt/p-7beface1.entry.js +1 -0
- package/dist/cobalt/{p-f4e1c3c3.entry.js → p-7d1718ed.entry.js} +1 -1
- package/dist/cobalt/{p-826ee074.entry.js → p-7df18a52.entry.js} +1 -1
- package/dist/cobalt/p-7e678cbd.entry.js +1 -0
- package/dist/cobalt/{p-d0b2c418.entry.js → p-7fabd8ba.entry.js} +1 -1
- package/dist/cobalt/{p-23ab0cc5.entry.js → p-848f5ca4.entry.js} +1 -1
- package/dist/cobalt/{p-623cc195.entry.js → p-8680559b.entry.js} +1 -1
- package/dist/cobalt/p-87de5469.entry.js +1 -0
- package/dist/cobalt/p-87e62e2b.entry.js +1 -0
- package/dist/cobalt/{p-1861fe41.entry.js → p-8a2a2b6c.entry.js} +1 -1
- package/dist/cobalt/p-903237f9.entry.js +1 -0
- package/dist/cobalt/{p-2c9dba2f.entry.js → p-95f2ebb1.entry.js} +1 -1
- package/dist/cobalt/{p-24196410.entry.js → p-99df434b.entry.js} +1 -1
- package/dist/cobalt/{p-290066ef.entry.js → p-9adbab95.entry.js} +1 -1
- package/dist/cobalt/p-9dc01092.entry.js +1 -0
- package/dist/cobalt/p-9ee5bef3.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-ee2023da.entry.js → p-a27013e6.entry.js} +1 -1
- package/dist/cobalt/{p-2f9cbbd5.entry.js → p-a4eb298c.entry.js} +1 -1
- package/dist/cobalt/p-a56bd4a8.entry.js +1 -0
- package/dist/cobalt/{p-59963937.entry.js → p-a5eabecb.entry.js} +1 -1
- package/dist/cobalt/p-a5ee1fc2.entry.js +1 -0
- package/dist/cobalt/{p-fb2d1144.entry.js → p-a7cd61ce.entry.js} +1 -1
- package/dist/cobalt/{p-39a50e7f.entry.js → p-ad752791.entry.js} +1 -1
- package/dist/cobalt/{p-07416e31.entry.js → p-ae999b94.entry.js} +1 -1
- package/dist/cobalt/{p-4d65e713.entry.js → p-aed832d5.entry.js} +1 -1
- package/dist/cobalt/p-b2457431.entry.js +1 -0
- package/dist/cobalt/{p-6dd220e0.entry.js → p-b39a4999.entry.js} +1 -1
- package/dist/cobalt/p-b5dabdc3.entry.js +1 -0
- package/dist/cobalt/{p-8471abe2.entry.js → p-b67fb616.entry.js} +1 -1
- package/dist/cobalt/{p-f7eb1a40.entry.js → p-b9b73dcb.entry.js} +1 -1
- package/dist/cobalt/{p-f9a7b7c6.entry.js → p-ba39a965.entry.js} +1 -1
- package/dist/cobalt/{p-58d9b650.entry.js → p-be520bd5.entry.js} +1 -1
- package/dist/cobalt/{p-1dc55e43.entry.js → p-bee30373.entry.js} +1 -1
- package/dist/cobalt/{p-44c4e4a3.entry.js → p-c220362c.entry.js} +1 -1
- package/dist/cobalt/p-c4c997f3.entry.js +1 -0
- package/dist/cobalt/{p-a2462d7a.entry.js → p-c5464a98.entry.js} +1 -1
- package/dist/cobalt/p-c567533e.entry.js +1 -0
- package/dist/cobalt/{p-c30b4cb5.entry.js → p-cf5b91be.entry.js} +1 -1
- package/dist/cobalt/p-cfaaa684.entry.js +1 -0
- package/dist/cobalt/p-d00c3894.entry.js +1 -0
- package/dist/cobalt/p-d1e83525.entry.js +1 -0
- package/dist/cobalt/{p-44ea675f.entry.js → p-d5d8fa8b.entry.js} +1 -1
- package/dist/cobalt/p-d6215d80.entry.js +1 -0
- package/dist/cobalt/p-d6e7c258.entry.js +1 -0
- package/dist/cobalt/p-dabcbba7.entry.js +1 -0
- package/dist/cobalt/p-db623519.entry.js +1 -0
- package/dist/cobalt/{p-c7d7d7f7.entry.js → p-df529110.entry.js} +1 -1
- package/dist/cobalt/{p-1cc818ca.entry.js → p-ea24eea8.entry.js} +1 -1
- package/dist/cobalt/{p-d29bb0fa.entry.js → p-efb3cbb0.entry.js} +1 -1
- package/dist/cobalt/{p-f6691108.entry.js → p-f0898e21.entry.js} +1 -1
- package/dist/cobalt/{p-0c004735.entry.js → p-f2fa2ac0.entry.js} +1 -1
- package/dist/cobalt/p-f403eeec.entry.js +1 -0
- package/dist/cobalt/{p-e4264532.entry.js → p-f69804a6.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 +12 -2
- package/dist/collection/components/co-action-bar/co-action-bar.css +6 -0
- package/dist/collection/components/co-action-bar/co-action-bar.js +3 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +6 -0
- package/dist/collection/components/co-app-shell/co-app-shell.js +13 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +19 -7
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +30 -17
- package/dist/collection/components/co-avatar/co-avatar.css +16 -2
- package/dist/collection/components/co-avatar/co-avatar.js +14 -4
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +4 -0
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +8 -3
- package/dist/collection/components/co-badge/co-badge.js +8 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +13 -4
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +5 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +8 -2
- package/dist/collection/components/co-button/co-button.css +81 -6
- package/dist/collection/components/co-button/co-button.js +39 -11
- package/dist/collection/components/co-button-group/co-button-group.js +10 -3
- package/dist/collection/components/co-calendar/calendarMarks.js +40 -0
- package/dist/collection/components/co-calendar/co-calendar.css +19 -1
- package/dist/collection/components/co-calendar/co-calendar.js +84 -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 +36 -19
- package/dist/collection/components/co-card/co-card.js +11 -2
- package/dist/collection/components/co-carousel/co-carousel.css +10 -0
- package/dist/collection/components/co-carousel/co-carousel.js +17 -5
- 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 +39 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +9 -4
- package/dist/collection/components/co-chip/co-chip.css +9 -0
- package/dist/collection/components/co-chip/co-chip.js +15 -2
- package/dist/collection/components/co-color-area/co-color-area.css +87 -0
- package/dist/collection/components/co-color-area/co-color-area.js +342 -0
- package/dist/collection/components/co-color-picker/co-color-picker.js +4 -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 +354 -0
- package/dist/collection/components/co-column-picker/co-column-picker.js +51 -25
- package/dist/collection/components/co-combobox/co-combobox.js +18 -4
- package/dist/collection/components/co-command-search/co-command-search.js +19 -8
- package/dist/collection/components/co-data-table/co-data-table.js +8 -3
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +16 -4
- package/dist/collection/components/co-date-field/co-date-field.js +19 -13
- package/dist/collection/components/co-date-picker/co-date-picker.js +38 -25
- package/dist/collection/components/co-date-range/co-date-range.js +19 -10
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +44 -30
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +31 -22
- 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 +1549 -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-drawer/co-drawer.css +5 -0
- package/dist/collection/components/co-drawer/co-drawer.js +13 -0
- package/dist/collection/components/co-drive-card/co-drive-card.js +14 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +7 -2
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.css +4 -0
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +11 -2
- package/dist/collection/components/co-empty-state/co-empty-state.js +4 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +16 -4
- package/dist/collection/components/co-event-popover/co-event-popover.js +18 -6
- package/dist/collection/components/co-fab/co-fab.css +8 -0
- package/dist/collection/components/co-fab/co-fab.js +17 -8
- package/dist/collection/components/co-file-field/co-file-field.js +16 -11
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +9 -2
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.css +143 -0
- package/dist/collection/components/co-gradient-bar/co-gradient-bar.js +412 -0
- package/dist/collection/components/co-helper-text/co-helper-text.js +4 -2
- package/dist/collection/components/co-icon/co-icon.js +6 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +104 -19
- package/dist/collection/components/co-icon-button/co-icon-button.js +125 -10
- package/dist/collection/components/co-input/co-input.css +125 -0
- package/dist/collection/components/co-input/co-input.js +48 -11
- package/dist/collection/components/co-json-field/co-json-field.js +19 -12
- package/dist/collection/components/co-kbd/co-kbd.css +99 -0
- package/dist/collection/components/co-kbd/co-kbd.js +298 -0
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +4 -1
- package/dist/collection/components/co-list-item/co-list-item.js +7 -4
- package/dist/collection/components/co-loader/co-loader.js +5 -0
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +9 -2
- package/dist/collection/components/co-menu/co-menu.css +70 -0
- package/dist/collection/components/co-menu/co-menu.js +146 -6
- package/dist/collection/components/co-menu-divider/co-menu-divider.css +21 -0
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +2 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +56 -6
- package/dist/collection/components/co-menu-item/co-menu-item.js +60 -4
- package/dist/collection/components/co-modal/co-modal.css +218 -1
- package/dist/collection/components/co-modal/co-modal.js +354 -12
- package/dist/collection/components/co-navbar/co-navbar.css +7 -0
- package/dist/collection/components/co-navbar/co-navbar.js +4 -2
- package/dist/collection/components/co-number-field/co-number-field.js +29 -15
- package/dist/collection/components/co-option-list/co-option-list.css +102 -21
- package/dist/collection/components/co-option-list/co-option-list.js +37 -16
- package/dist/collection/components/co-overlay/co-overlay.css +4 -0
- package/dist/collection/components/co-overlay/co-overlay.js +17 -3
- package/dist/collection/components/co-page-header/co-page-header.js +4 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +20 -2
- package/dist/collection/components/co-popover/co-popover.js +148 -10
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +5 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +5 -2
- package/dist/collection/components/co-provider-logo/co-provider-logo.js +3 -0
- package/dist/collection/components/co-radio/co-radio.js +11 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +9 -4
- package/dist/collection/components/co-rating/co-rating.js +25 -13
- package/dist/collection/components/co-ref-field/co-ref-field.css +14 -0
- package/dist/collection/components/co-ref-field/co-ref-field.js +55 -27
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +66 -111
- 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 +127 -19
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +16 -1
- package/dist/collection/components/co-row/co-row.js +5 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +9 -3
- package/dist/collection/components/co-select/co-select.css +207 -11
- package/dist/collection/components/co-select/co-select.js +198 -48
- package/dist/collection/components/co-select/virtualRows.js +57 -0
- package/dist/collection/components/co-separator/co-separator.js +8 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +10 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +15 -0
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +20 -4
- package/dist/collection/components/co-skeleton/co-skeleton.js +4 -1
- package/dist/collection/components/co-slider/co-slider.css +155 -5
- package/dist/collection/components/co-slider/co-slider.js +263 -32
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.css +56 -0
- package/dist/collection/components/co-swatch-grid/co-swatch-grid.js +293 -0
- package/dist/collection/components/co-switch/co-switch.css +4 -0
- package/dist/collection/components/co-switch/co-switch.js +12 -3
- package/dist/collection/components/co-tab/co-tab.css +60 -0
- package/dist/collection/components/co-tab/co-tab.js +44 -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 +133 -2
- package/dist/collection/components/co-tab-group/revealTab.js +26 -0
- package/dist/collection/components/co-tags-field/co-tags-field.js +21 -14
- 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 +167 -0
- package/dist/collection/components/co-time-field/co-time-field.js +9 -4
- package/dist/collection/components/co-toast/co-toast.css +11 -0
- package/dist/collection/components/co-toast/co-toast.js +13 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +106 -0
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +91 -15
- 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 +41 -11
- package/dist/collection/components/co-tooltip/co-tooltip.css +36 -0
- package/dist/collection/components/co-tooltip/co-tooltip.js +61 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +19 -10
- package/dist/collection/components/co-tree-item/co-tree-item.css +235 -0
- package/dist/collection/components/co-tree-item/co-tree-item.js +355 -0
- package/dist/collection/components/co-tree-item/treeItemI18n.js +16 -0
- package/dist/collection/components/co-video/co-video.css +11 -0
- package/dist/collection/components/co-video/co-video.js +41 -22
- 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-8XzG8pzY.js +1 -0
- package/dist/components/p-9VoFSbIH.js +1 -0
- package/dist/components/p-B1JT7us1.js +1 -0
- package/dist/components/{p-Dc_Kbari.js → p-B3Egz082.js} +1 -1
- package/dist/components/p-B9wdMd_0.js +1 -0
- package/dist/components/p-BRZci8B3.js +1 -0
- package/dist/components/{p-BRbgGqLw.js → p-BVGGRfNG.js} +1 -1
- package/dist/components/{p-B56LX2SH.js → p-BVdCvEza.js} +1 -1
- package/dist/components/p-BdmzslA5.js +1 -0
- package/dist/components/p-BmdKHBZP.js +1 -0
- package/dist/components/p-BtliEQAT.js +1 -0
- package/dist/components/{p-CT2enQ6h.js → p-Bw_b_czs.js} +1 -1
- package/dist/components/{p-NNxjElcX.js → p-C4sZjIDj.js} +1 -1
- package/dist/components/{p-Nt4JJxbL.js → p-C6WHpL5X.js} +1 -1
- package/dist/components/p-COJdaKBU.js +1 -0
- package/dist/components/p-COozgrEk.js +1 -0
- package/dist/components/{p-BAYo-RBt.js → p-CRxTFT_z.js} +1 -1
- package/dist/components/{p-uxdXViMV.js → p-CiYPJW0B.js} +1 -1
- package/dist/components/p-Cnfd6Zze.js +1 -0
- package/dist/components/{p-BhCVadcA.js → p-CxWo3qDo.js} +1 -1
- package/dist/components/p-D4XP17VP.js +1 -0
- package/dist/components/{p-e5KibEs8.js → p-DJ468fPu.js} +1 -1
- package/dist/components/p-DU-KOQ8L.js +1 -0
- package/dist/components/p-DXLeDZvr.js +1 -0
- package/dist/components/{p-DvR45CLa.js → p-Dn2wblrA.js} +1 -1
- package/dist/components/p-Dnz99Ox_.js +1 -0
- package/dist/components/p-DsuFNmTI.js +1 -0
- package/dist/components/{p-Du_CgT5E.js → p-Du8EpQb-.js} +1 -1
- package/dist/components/{p-DFlJMEJ-.js → p-DymSqdlK.js} +1 -1
- package/dist/components/p-Hi57w2_2.js +1 -0
- package/dist/components/{p-DNJAIVfI.js → p-KK2vAKs-.js} +1 -1
- package/dist/components/p-RVQJEYxa.js +1 -0
- package/dist/components/p-TGRbLkLz.js +1 -0
- package/dist/components/p-VcrjNCew.js +1 -0
- package/dist/components/{p-Dxa7c4Ap.js → p-dnaee7fS.js} +1 -1
- package/dist/components/p-nrwDl_gx.js +1 -0
- package/dist/components/{p-P4HlMBlL.js → p-zJ3pjFzW.js} +1 -1
- 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 +12 -5
- package/dist/esm/co-avatar-group.entry.js +3 -3
- 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 +4 -3
- package/dist/esm/co-button.entry.js +9 -7
- package/dist/esm/co-calendar-month_2.entry.js +16 -4
- package/dist/esm/co-calendar_3.entry.js +76 -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 +6 -3
- package/dist/esm/co-checkbox-group.entry.js +4 -4
- package/dist/esm/co-checkbox.entry.js +13 -5
- package/dist/esm/co-chip_2.entry.js +20 -7
- 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 +23 -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 +10 -2
- package/dist/esm/co-date-range-picker.entry.js +11 -2
- package/dist/esm/co-date-range.entry.js +8 -2
- package/dist/esm/co-date-time-picker.entry.js +11 -4
- package/dist/esm/co-document-editor.entry.js +1165 -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 +5 -3
- package/dist/esm/co-event-popover.entry.js +7 -3
- package/dist/esm/co-fab.entry.js +7 -3
- package/dist/esm/co-file-field.entry.js +12 -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 +48 -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 +10 -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 +11 -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 +69 -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 +11 -4
- package/dist/esm/co-ref-field.entry.js +14 -5
- package/dist/esm/co-rich-text-editor.entry.js +40 -92
- package/dist/esm/co-rich-text-toolbar.entry.js +80 -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 +171 -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 +209 -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 +13 -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 +5 -2
- package/dist/esm/co-toast.entry.js +3 -3
- package/dist/esm/co-toggle-button-group.entry.js +29 -5
- package/dist/esm/co-toggle-button.entry.js +70 -6
- package/dist/esm/co-transfer-list.entry.js +7 -3
- package/dist/esm/co-tree-item.entry.js +108 -0
- package/dist/esm/co-video.entry.js +11 -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-accordion/co-accordion.d.ts +10 -0
- package/dist/types/components/co-action-bar/co-action-bar.d.ts +1 -0
- package/dist/types/components/co-app-shell/co-app-shell.d.ts +11 -0
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +16 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +21 -0
- package/dist/types/components/co-avatar/co-avatar.d.ts +11 -2
- package/dist/types/components/co-avatar-group/co-avatar-group.d.ts +5 -0
- package/dist/types/components/co-badge/co-badge.d.ts +7 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +9 -0
- package/dist/types/components/co-breadcrumb/co-breadcrumb.d.ts +4 -0
- package/dist/types/components/co-breadcrumb-item/co-breadcrumb-item.d.ts +6 -0
- package/dist/types/components/co-button/co-button.d.ts +12 -4
- package/dist/types/components/co-button-group/co-button-group.d.ts +7 -0
- package/dist/types/components/co-calendar/calendarMarks.d.ts +15 -0
- package/dist/types/components/co-calendar/co-calendar.d.ts +18 -0
- package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +23 -0
- package/dist/types/components/co-card/co-card.d.ts +9 -0
- package/dist/types/components/co-carousel/co-carousel.d.ts +12 -0
- package/dist/types/components/co-checkbox/co-checkbox.d.ts +15 -0
- package/dist/types/components/co-checkbox-group/co-checkbox-group.d.ts +5 -0
- package/dist/types/components/co-chip/co-chip.d.ts +13 -0
- package/dist/types/components/co-color-area/co-color-area.d.ts +65 -0
- package/dist/types/components/co-color-picker/co-color-picker.d.ts +2 -0
- package/dist/types/components/co-color-slider/co-color-slider.d.ts +62 -0
- package/dist/types/components/co-column-picker/co-column-picker.d.ts +32 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +14 -0
- package/dist/types/components/co-command-search/co-command-search.d.ts +15 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
- package/dist/types/components/co-data-table-pagination/co-data-table-pagination.d.ts +12 -0
- package/dist/types/components/co-date-field/co-date-field.d.ts +11 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +30 -0
- package/dist/types/components/co-date-range/co-date-range.d.ts +12 -0
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +33 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +22 -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 +284 -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-drawer/co-drawer.d.ts +13 -0
- package/dist/types/components/co-drive-card/co-drive-card.d.ts +13 -0
- package/dist/types/components/co-drop-zone/co-drop-zone.d.ts +6 -1
- package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +9 -0
- package/dist/types/components/co-empty-state/co-empty-state.d.ts +2 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +12 -16
- package/dist/types/components/co-event-popover/co-event-popover.d.ts +13 -0
- package/dist/types/components/co-fab/co-fab.d.ts +11 -0
- package/dist/types/components/co-file-field/co-file-field.d.ts +6 -0
- package/dist/types/components/co-file-type-tile/co-file-type-tile.d.ts +7 -0
- package/dist/types/components/co-gradient-bar/co-gradient-bar.d.ts +77 -0
- package/dist/types/components/co-helper-text/co-helper-text.d.ts +2 -0
- package/dist/types/components/co-icon/co-icon.d.ts +4 -0
- package/dist/types/components/co-icon-button/co-icon-button.d.ts +39 -2
- package/dist/types/components/co-input/co-input.d.ts +25 -5
- package/dist/types/components/co-json-field/co-json-field.d.ts +11 -0
- package/dist/types/components/co-kbd/co-kbd.d.ts +50 -0
- package/dist/types/components/co-list-footer/co-list-footer.d.ts +3 -0
- package/dist/types/components/co-list-item/co-list-item.d.ts +3 -0
- package/dist/types/components/co-loader/co-loader.d.ts +5 -0
- package/dist/types/components/co-media-thumb/co-media-thumb.d.ts +7 -0
- package/dist/types/components/co-menu/co-menu.d.ts +42 -1
- package/dist/types/components/co-menu-divider/co-menu-divider.d.ts +1 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +19 -0
- package/dist/types/components/co-modal/co-modal.d.ts +126 -5
- package/dist/types/components/co-navbar/co-navbar.d.ts +2 -0
- package/dist/types/components/co-number-field/co-number-field.d.ts +20 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +29 -1
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-overlay/co-overlay.d.ts +10 -0
- package/dist/types/components/co-page-header/co-page-header.d.ts +3 -0
- package/dist/types/components/co-popover/co-popover.d.ts +51 -0
- package/dist/types/components/co-progress-bar/co-progress-bar.d.ts +3 -0
- package/dist/types/components/co-progress-circle/co-progress-circle.d.ts +3 -0
- package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +3 -0
- package/dist/types/components/co-radio/co-radio.d.ts +8 -0
- package/dist/types/components/co-radio-group/co-radio-group.d.ts +5 -0
- package/dist/types/components/co-rating/co-rating.d.ts +15 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +42 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +31 -5
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +20 -2
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +8 -0
- package/dist/types/components/co-row/co-row.d.ts +3 -0
- package/dist/types/components/co-segmented-bar/co-segmented-bar.d.ts +6 -0
- package/dist/types/components/co-select/co-select.d.ts +73 -5
- package/dist/types/components/co-select/virtualRows.d.ts +44 -0
- package/dist/types/components/co-separator/co-separator.d.ts +7 -0
- package/dist/types/components/co-sidebar/co-sidebar.d.ts +8 -0
- package/dist/types/components/co-sidebar-nav/co-sidebar-nav.d.ts +1 -0
- package/dist/types/components/co-skeleton/co-skeleton.d.ts +3 -0
- package/dist/types/components/co-slider/co-slider.d.ts +160 -1
- package/dist/types/components/co-swatch-grid/co-swatch-grid.d.ts +38 -0
- package/dist/types/components/co-switch/co-switch.d.ts +9 -0
- package/dist/types/components/co-tab/co-tab.d.ts +20 -2
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +46 -0
- package/dist/types/components/co-tab-group/revealTab.d.ts +29 -0
- package/dist/types/components/co-tags-field/co-tags-field.d.ts +11 -0
- package/dist/types/components/co-tile/co-tile.d.ts +45 -0
- package/dist/types/components/co-time-field/co-time-field.d.ts +5 -0
- package/dist/types/components/co-toast/co-toast.d.ts +9 -0
- package/dist/types/components/co-toggle-button/co-toggle-button.d.ts +45 -2
- package/dist/types/components/co-toggle-button-group/co-toggle-button-group.d.ts +30 -2
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +22 -0
- package/dist/types/components/co-transfer-list/co-transfer-list.d.ts +12 -0
- package/dist/types/components/co-tree-item/co-tree-item.d.ts +75 -0
- package/dist/types/components/co-tree-item/treeItemI18n.d.ts +6 -0
- package/dist/types/components/co-video/co-video.d.ts +31 -0
- package/dist/types/components.d.ts +3905 -85
- 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-d375014b.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-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-BGDqldEg.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
|
+
}
|
|
@@ -83,6 +83,11 @@
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @prop --co-shell-r: Radio del panel; es el mismo knob que usa `co-app-shell` (default `--co-border-radius-md`, 14px).
|
|
88
|
+
* @prop --co-drawer-r: Radio del panel, asignado en el propio panel a partir de `--co-shell-r`; se sobrescribe vía `co-drawer::part(drawer) { --co-drawer-r: … }`.
|
|
89
|
+
*/
|
|
90
|
+
|
|
86
91
|
:host {
|
|
87
92
|
display: contents;
|
|
88
93
|
}
|
|
@@ -2,6 +2,19 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { afterEventFor } from "../co-overlay/overlayAfterClose";
|
|
3
3
|
import { slotHasContent } from "../../utils/slotContent";
|
|
4
4
|
/**
|
|
5
|
+
* Panel lateral (derecha, izquierda o abajo) sobre un scrim, con header, pestañas,
|
|
6
|
+
* cuerpo scrolleable y footer. Es controlado: la ✕, el scrim y Escape emiten
|
|
7
|
+
* `coClose` y quien lo usa pone `open` en `false`. Wrapper Vue: `CoDrawer` de
|
|
8
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
9
|
+
*
|
|
10
|
+
* @part drawer - El panel completo (posición, sombra y animación).
|
|
11
|
+
* @part card - Superficie interna del panel.
|
|
12
|
+
* @part header - Header (título o slot `header`, y la ✕).
|
|
13
|
+
* @part tabs - Fila del slot `tabs`.
|
|
14
|
+
* @part body - Cuerpo scrolleable (slot por defecto).
|
|
15
|
+
* @part loader - Loader superpuesto al cuerpo (`loading`).
|
|
16
|
+
* @part footer - Footer de acciones (slot `footer`).
|
|
17
|
+
*
|
|
5
18
|
* @slot header - Custom header content (overrides `heading` prop). Receives close button next to it.
|
|
6
19
|
* @slot tabs - Optional row under the header (e.g. <co-tab-group>).
|
|
7
20
|
* @slot - Drawer body (scrollable).
|
|
@@ -15,6 +15,19 @@ import { h } from "@stencil/core";
|
|
|
15
15
|
* <co-file-type-tile> when `ext` is set.
|
|
16
16
|
* @slot trailing - (folder) Trailing content after the star (e.g. a dots menu).
|
|
17
17
|
* @slot actions - (file) The fading action affordance in the foot row.
|
|
18
|
+
*
|
|
19
|
+
* Wrapper Vue: `CoDriveCard` de `@prolibu-suite/cobalt-vue`.
|
|
20
|
+
*
|
|
21
|
+
* @part card - Tarjeta completa.
|
|
22
|
+
* @part select - Chip de selección de la esquina.
|
|
23
|
+
* @part tile - (carpeta) Ícono de la carpeta.
|
|
24
|
+
* @part name - Nombre del ítem.
|
|
25
|
+
* @part meta - Texto secundario (fecha, tamaño…).
|
|
26
|
+
* @part trailing - (carpeta) Contenido final después de la estrella.
|
|
27
|
+
* @part thumb - (archivo) Zona de miniatura.
|
|
28
|
+
* @part star - Botón de favorito.
|
|
29
|
+
* @part foot - (archivo) Fila inferior con tipo, nombre y acciones.
|
|
30
|
+
* @part actions - (archivo) Acciones que aparecen en hover.
|
|
18
31
|
*/
|
|
19
32
|
export class CoDriveCard {
|
|
20
33
|
constructor() {
|
|
@@ -74,7 +87,7 @@ export class CoDriveCard {
|
|
|
74
87
|
}
|
|
75
88
|
render() {
|
|
76
89
|
const isFile = this.variant === 'file';
|
|
77
|
-
return (h("div", { key: '
|
|
90
|
+
return (h("div", { key: '35d58b53bd6f000c2c0e6fb4f16cc4914bd8ece9', class: {
|
|
78
91
|
'co-drive-card': true,
|
|
79
92
|
[`co-drive-card--${this.variant}`]: true,
|
|
80
93
|
[`co-drive-card--${this.density}`]: true,
|
|
@@ -8,7 +8,12 @@ import { Host, h } from "@stencil/core";
|
|
|
8
8
|
* 2. Self-managed — the host listens for native dragenter/over/leave/drop and
|
|
9
9
|
* flips `active` itself, emitting `coDragStateChange` and `coDrop`.
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* Wrapper Vue: `CoDropZone` de `@prolibu-suite/cobalt-vue`.
|
|
12
|
+
*
|
|
13
|
+
* @part host - El propio elemento (envuelve el contenido del slot).
|
|
14
|
+
* @part overlay - Capa que aparece al arrastrar archivos encima.
|
|
15
|
+
* @part badge - Círculo con el ícono dentro de la capa.
|
|
16
|
+
* @part label - Texto de la capa (`label`).
|
|
12
17
|
*/
|
|
13
18
|
export class CoDropZone {
|
|
14
19
|
constructor() {
|
|
@@ -58,7 +63,7 @@ export class CoDropZone {
|
|
|
58
63
|
this.coDragStateChange.emit(next);
|
|
59
64
|
}
|
|
60
65
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '5c7232e2bc5fe0f1cc24181d1758fcd0369c47cb', 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: 'efdf82946b7396ddf88e7f440aa6c460cb15821b' }), this.active && (h("div", { key: '3b9a9f2e78275fbf4a4fb240beafd6725b06f36f', class: "co-drop-zone__overlay", part: "overlay" }, h("div", { key: '3a540d077413199f63904a3b8f2a82d01306927a', class: "co-drop-zone__badge", part: "badge" }, h("co-icon", { key: '224941558e33dddb16ae7d98b63f63a0f4d41c5e', name: this.icon, size: 34 })), h("span", { key: '256aa058549937ab0cf0bdc31337d22fa860da75', class: "co-drop-zone__label", part: "label" }, this.label)))));
|
|
62
67
|
}
|
|
63
68
|
static get is() { return "co-drop-zone"; }
|
|
64
69
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prop --co-emoji-picker-cell: Lado de cada celda de emoji (default 36px); también define el ancho del panel.
|
|
3
|
+
* @prop --co-emoji-picker-height: Alto de la grilla (default 8 filas).
|
|
4
|
+
*/
|
|
1
5
|
:host {
|
|
2
6
|
display: block;
|
|
3
7
|
font-family: var(--co-font-family-primary);
|
|
@@ -19,6 +19,15 @@ const NAV_KEYS = [
|
|
|
19
19
|
*
|
|
20
20
|
* @event coSelect - El emoji elegido: `{ emoji, name }`.
|
|
21
21
|
* @event coClose - Escape con el buscador vacío (el host decide si cierra).
|
|
22
|
+
*
|
|
23
|
+
* Wrapper Vue: `CoEmojiPicker` de `@prolibu-suite/cobalt-vue`.
|
|
24
|
+
*
|
|
25
|
+
* @part panel - Contenedor del panel.
|
|
26
|
+
* @part search - Fila del buscador.
|
|
27
|
+
* @part input - El `<input>` de búsqueda.
|
|
28
|
+
* @part tones - Selector de tono de piel.
|
|
29
|
+
* @part categories - Barra de categorías.
|
|
30
|
+
* @part grid - Grilla virtualizada de emoji.
|
|
22
31
|
*/
|
|
23
32
|
export class CoEmojiPicker {
|
|
24
33
|
constructor() {
|
|
@@ -383,14 +392,14 @@ export class CoEmojiPicker {
|
|
|
383
392
|
const stripCategories = hasRecent
|
|
384
393
|
? [RECENT_CATEGORY, ...EMOJI_CATEGORIES]
|
|
385
394
|
: [...EMOJI_CATEGORIES];
|
|
386
|
-
return (h("div", { key: '
|
|
395
|
+
return (h("div", { key: '3f45e20684cb31d39feabb1e9a431001153badc4', 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: 'e7e0345d77fc03813f87c2cc119b205f2da67807', class: "co-emoji-picker__search", part: "search" }, h("co-icon", { key: '631f7a147601969961941f0f63a080e75a4ade41', name: "magnifying-glass", size: 16 }), h("input", { key: 'e216e1bf3898d4c747c247aa86df348eca1eb906', 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: '0d212f4c661651e51503e82ad2e4c81af9e89d55', class: "co-emoji-picker__categories", part: "categories", "aria-label": s.categoriesLabel }, !this.searchable && this.renderTones(), stripCategories.map((category) => {
|
|
387
396
|
var _a, _b;
|
|
388
397
|
const name = (_a = s.categories[category]) !== null && _a !== void 0 ? _a : category;
|
|
389
398
|
return (h("button", { type: "button", key: category, class: {
|
|
390
399
|
'co-emoji-picker__category': true,
|
|
391
400
|
'co-emoji-picker__category--active': category === activeCategory,
|
|
392
401
|
}, "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: '
|
|
402
|
+
}))), h("div", { key: '9d75f1c71e8162708bff7ff3d3e8ac50d2ae8506', 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
403
|
}
|
|
395
404
|
static get is() { return "co-emoji-picker"; }
|
|
396
405
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
3
|
* Empty state placeholder — icon, title, description, and action buttons.
|
|
4
|
+
* Wrapper Vue: `CoEmptyState` de `@prolibu-suite/cobalt-vue`.
|
|
4
5
|
* @slot - Action buttons
|
|
6
|
+
* @part empty-state - Contenedor del estado vacío.
|
|
5
7
|
*/
|
|
6
8
|
export class CoEmptyState {
|
|
7
9
|
constructor() {
|
|
@@ -13,11 +15,11 @@ export class CoEmptyState {
|
|
|
13
15
|
render() {
|
|
14
16
|
var _a;
|
|
15
17
|
const iconWeight = (_a = this.iconWeight) !== null && _a !== void 0 ? _a : (this.variant === 'card' ? 'regular' : 'light');
|
|
16
|
-
return (h("div", { key: '
|
|
18
|
+
return (h("div", { key: '419da2f8dee690bb65956debb4a1d9aad3319906', class: {
|
|
17
19
|
'co-empty-state': true,
|
|
18
20
|
[`co-empty-state--${this.variant}`]: true,
|
|
19
21
|
[`co-empty-state--${this.size}`]: true,
|
|
20
|
-
}, part: "empty-state" }, this.icon && (h("div", { key: '
|
|
22
|
+
}, part: "empty-state" }, this.icon && (h("div", { key: '5fd70dd13d10ad6e76f4c73ed43c7a4aca9c4fa1', class: "co-empty-state__icon" }, h("co-icon", { key: '75882f8eed9f64ffbe8b1163ea9d0a7666372ab2', name: this.icon, size: 40, weight: iconWeight }))), this.heading && (h("div", { key: '514ee7eb7b29867aa0d95088c03d6d24a1805f32', class: "co-empty-state__heading" }, this.heading)), this.description && (h("div", { key: '2e004a9bacf1094c0c1ee5ad697862b13d05241b', class: "co-empty-state__description" }, this.description)), h("div", { key: '4e78c8ce7a8169e4afabc9fbce485f40175ee1cb', class: "co-empty-state__actions" }, h("slot", { key: '519d8af5d16b2f3382044d3ee098207b97e1bbf4' }))));
|
|
21
23
|
}
|
|
22
24
|
static get is() { return "co-empty-state"; }
|
|
23
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,6 +2,16 @@ import { h, } from "@stencil/core";
|
|
|
2
2
|
import { addDays, addMonths, getMonthLabel, getMonthMatrix, parseISO, todayYMD, } from "@prolibu-suite/cobalt-date-utils";
|
|
3
3
|
import { normalizeEvents, getLocalTimeZone, } from "@prolibu-suite/cobalt-calendar-utils";
|
|
4
4
|
import { getDateStrings } from "../../utils/dateI18n";
|
|
5
|
+
/**
|
|
6
|
+
* Calendario de eventos completo: vistas Mes, Semana y Día con barra de
|
|
7
|
+
* navegación. Es controlado: emite pedidos (`coEventDrop`, `coDateSelect`) y el
|
|
8
|
+
* host los aplica actualizando `events`. Los instantes son strings ISO-8601 con
|
|
9
|
+
* zona (o `YYYY-MM-DD` para todo el día); `timeZone` define el reloj en que se
|
|
10
|
+
* pintan. Wrapper Vue: `CoEventCalendar` de `@prolibu-suite/cobalt-vue`.
|
|
11
|
+
*
|
|
12
|
+
* @part toolbar - Barra de navegación (vista, fecha, hoy).
|
|
13
|
+
* @part body - Contenedor de la vista activa.
|
|
14
|
+
*/
|
|
5
15
|
export class CoEventCalendar {
|
|
6
16
|
constructor() {
|
|
7
17
|
/** Active view. `month`/`week`/`day` are implemented; `agenda` is pending. */
|
|
@@ -26,9 +36,11 @@ export class CoEventCalendar {
|
|
|
26
36
|
this.allDaySlot = true;
|
|
27
37
|
/** Visible-hours window for week/day (minutes-of-day bounds as "HH:mm"). */
|
|
28
38
|
this.minTime = '00:00';
|
|
39
|
+
/** Última hora visible `HH:mm` en Semana/Día (default 24:00). */
|
|
29
40
|
this.maxTime = '24:00';
|
|
30
41
|
/** Slot/snap granularity (minutes) for week/day. */
|
|
31
42
|
this.slotMinutes = 15;
|
|
43
|
+
/** Minutos a los que se ajustan arrastres y selecciones en Semana/Día (default 15). */
|
|
32
44
|
this.snapMinutes = 15;
|
|
33
45
|
/** Initial scroll position for week/day ("HH:mm"). */
|
|
34
46
|
this.scrollTime = '07:00';
|
|
@@ -223,10 +235,10 @@ export class CoEventCalendar {
|
|
|
223
235
|
const t = getDateStrings(this.locale);
|
|
224
236
|
const views = this.viewsList;
|
|
225
237
|
const a = parseISO(this.anchor);
|
|
226
|
-
return (h("div", { key: '
|
|
238
|
+
return (h("div", { key: '523b25e47b0d586ead40867d0c496b6d8fd1a21b', class: "cal" }, h("div", { key: '4943440f6f492be23a23f8820b1d638a0d292902', class: "cal__toolbar", part: "toolbar" }, h("button", { key: 'a6d890434149f15ef770db851e70e4d93646571b', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: 'a617c5087b9055bc4f8530eafe619cca49c0930e', class: "cal__title-group" }, h("button", { key: '1b2f1ba3972d815be76a4527711e887066a994a1', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: '918828dec396d69678618d40c8aeb3793c6aa620', name: "caret-left", size: 16 })), h("h2", { key: 'c099fc2e18fa07f79fe0a0e72e372e71b658c553', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '52c2ad1d1a06955f892ac6d179d905270df3a967', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: '9b4becd4d18465a86d42491291166ccad94973d3', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
|
|
227
239
|
var _a;
|
|
228
240
|
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: '
|
|
241
|
+
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '266dc8d6f4b490559eaa648970328e0861d44ec8', 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
242
|
}
|
|
231
243
|
static get is() { return "co-event-calendar"; }
|
|
232
244
|
static get encapsulation() { return "shadow"; }
|
|
@@ -581,7 +593,7 @@ export class CoEventCalendar {
|
|
|
581
593
|
"optional": false,
|
|
582
594
|
"docs": {
|
|
583
595
|
"tags": [],
|
|
584
|
-
"text": ""
|
|
596
|
+
"text": "\u00DAltima hora visible `HH:mm` en Semana/D\u00EDa (default 24:00)."
|
|
585
597
|
},
|
|
586
598
|
"getter": false,
|
|
587
599
|
"setter": false,
|
|
@@ -621,7 +633,7 @@ export class CoEventCalendar {
|
|
|
621
633
|
"optional": false,
|
|
622
634
|
"docs": {
|
|
623
635
|
"tags": [],
|
|
624
|
-
"text": ""
|
|
636
|
+
"text": "Minutos a los que se ajustan arrastres y selecciones en Semana/D\u00EDa (default 15)."
|
|
625
637
|
},
|
|
626
638
|
"getter": false,
|
|
627
639
|
"setter": false,
|
|
@@ -6,14 +6,26 @@ import { computePosition } from "../../utils/positioning";
|
|
|
6
6
|
* getBoundingClientRect), promotes to the top-layer (the calendar shell has
|
|
7
7
|
* contain:layout ancestors that re-anchor position:fixed), and closes on Escape /
|
|
8
8
|
* outside-click. Content is slotted by the host (suite-v2 fills the meeting fields).
|
|
9
|
+
*
|
|
10
|
+
* Wrapper Vue: `CoEventPopover` de `@prolibu-suite/cobalt-vue`.
|
|
11
|
+
*
|
|
12
|
+
* @slot actions - Botones de acción de la esquina (editar, borrar, cerrar…).
|
|
13
|
+
* @slot - Contenido del detalle del evento.
|
|
14
|
+
*
|
|
15
|
+
* @part actions - Fila de acciones (slot `actions`).
|
|
16
|
+
* @part body - Cuerpo del detalle (slot por defecto).
|
|
9
17
|
*/
|
|
10
18
|
export class CoEventPopover {
|
|
11
19
|
constructor() {
|
|
20
|
+
/** Visible (reflejado); el componente lo pone en `false` al cerrarse por Escape o click afuera. */
|
|
12
21
|
this.open = false;
|
|
22
|
+
/** Lado y alineación respecto de `anchorRect` (default `right-start`); voltea si no cabe. */
|
|
13
23
|
this.placement = 'right-start';
|
|
14
24
|
/** Render the leading color dot. Set false for dot-less content (quick-create). */
|
|
15
25
|
this.dot = true;
|
|
26
|
+
/** Cierra con Escape (default `true`). */
|
|
16
27
|
this.closeOnEscape = true;
|
|
28
|
+
/** Cierra con un click fuera del panel (default `true`). */
|
|
17
29
|
this.closeOnClickOutside = true;
|
|
18
30
|
this.position = () => {
|
|
19
31
|
if (!this.open || !this.panelEl || !this.anchorRect)
|
|
@@ -118,7 +130,7 @@ export class CoEventPopover {
|
|
|
118
130
|
this.coClose.emit();
|
|
119
131
|
}
|
|
120
132
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
133
|
+
return (h(Host, { key: '9796ba38e83610ddb390dcab0818baf6bededc72' }, h("div", { key: 'e08bba8ebefb5206cbdd7a554e25ff9f4fcf9541', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: '185e30ed1640cbfb04e056d7a3433df2f5b94e06', class: "pop__actions", part: "actions" }, h("slot", { key: 'db04986cc1b63d52c5f1cc6579b5d00dbd46e476', name: "actions" })), h("div", { key: '89bbdc2a255e18d180183dbb127ce05a72ff262d', class: "pop__head" }, this.dot && h("span", { key: '6819901baff501958c8214dd7546a90a108c45f5', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: '1111598f3ee886a0f2d9360c57278f1d71b76ddc', class: "pop__body", part: "body" }, h("slot", { key: '82c5eb8ff0e7752993d8b25b6d33a4d15d7edd25' }))))));
|
|
122
134
|
}
|
|
123
135
|
static get is() { return "co-event-popover"; }
|
|
124
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -146,7 +158,7 @@ export class CoEventPopover {
|
|
|
146
158
|
"optional": false,
|
|
147
159
|
"docs": {
|
|
148
160
|
"tags": [],
|
|
149
|
-
"text": ""
|
|
161
|
+
"text": "Visible (reflejado); el componente lo pone en `false` al cerrarse por Escape o click afuera."
|
|
150
162
|
},
|
|
151
163
|
"getter": false,
|
|
152
164
|
"setter": false,
|
|
@@ -190,7 +202,7 @@ export class CoEventPopover {
|
|
|
190
202
|
"optional": false,
|
|
191
203
|
"docs": {
|
|
192
204
|
"tags": [],
|
|
193
|
-
"text": ""
|
|
205
|
+
"text": "Lado y alineaci\u00F3n respecto de `anchorRect` (default `right-start`); voltea si no cabe."
|
|
194
206
|
},
|
|
195
207
|
"getter": false,
|
|
196
208
|
"setter": false,
|
|
@@ -249,7 +261,7 @@ export class CoEventPopover {
|
|
|
249
261
|
"optional": false,
|
|
250
262
|
"docs": {
|
|
251
263
|
"tags": [],
|
|
252
|
-
"text": ""
|
|
264
|
+
"text": "Cierra con Escape (default `true`)."
|
|
253
265
|
},
|
|
254
266
|
"getter": false,
|
|
255
267
|
"setter": false,
|
|
@@ -269,7 +281,7 @@ export class CoEventPopover {
|
|
|
269
281
|
"optional": false,
|
|
270
282
|
"docs": {
|
|
271
283
|
"tags": [],
|
|
272
|
-
"text": ""
|
|
284
|
+
"text": "Cierra con un click fuera del panel (default `true`)."
|
|
273
285
|
},
|
|
274
286
|
"getter": false,
|
|
275
287
|
"setter": false,
|
|
@@ -307,7 +319,7 @@ export class CoEventPopover {
|
|
|
307
319
|
"composed": true,
|
|
308
320
|
"docs": {
|
|
309
321
|
"tags": [],
|
|
310
|
-
"text": ""
|
|
322
|
+
"text": "Se cerr\u00F3 (Escape o click afuera). No burbujea."
|
|
311
323
|
},
|
|
312
324
|
"complexType": {
|
|
313
325
|
"original": "void",
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
/* co-fab — floating action button */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @prop --co-fab-bg: Fondo de la variante `primary` (default negro sólido).
|
|
5
|
+
* @prop --co-fab-offset-bottom: Distancia al borde inferior con `position` bottom-* (default 24px).
|
|
6
|
+
* @prop --co-fab-offset-top: Distancia al borde superior con `position` top-* (default 24px).
|
|
7
|
+
* @prop --co-fab-offset-right: Distancia al borde derecho con `position` *-right (default 24px).
|
|
8
|
+
* @prop --co-fab-offset-left: Distancia al borde izquierdo con `position` *-left (default 24px).
|
|
9
|
+
*/
|
|
10
|
+
|
|
3
11
|
:host {
|
|
4
12
|
display: inline-flex;
|
|
5
13
|
font-family: var(--co-font-family-primary);
|