@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
|
@@ -14,26 +14,43 @@ const DRAG_THRESHOLD_PX = 5;
|
|
|
14
14
|
* `dates` = 7 day-keys (week) or 1 (day). Presentation + interaction only; the
|
|
15
15
|
* host owns data (CONTROLLED). All instant math is delegated to the engine — the
|
|
16
16
|
* only timezone boundary is the `timeZone` prop (wall-clock render).
|
|
17
|
+
*
|
|
18
|
+
* Es la vista Semana/Día que compone `co-event-calendar`; se usa directo solo
|
|
19
|
+
* para una grilla horaria propia. Sus eventos NO burbujean ni cruzan el shadow
|
|
20
|
+
* DOM: se escuchan sobre el propio elemento. Wrapper Vue: `CoCalendarTimegrid`
|
|
21
|
+
* de `@prolibu-suite/cobalt-vue`.
|
|
17
22
|
*/
|
|
18
23
|
export class CoCalendarTimegrid {
|
|
19
24
|
constructor() {
|
|
25
|
+
/** Eventos ya normalizados por el motor (`@prolibu-suite/cobalt-calendar-utils`); propiedad JS. */
|
|
20
26
|
this.events = [];
|
|
21
27
|
/** Visible day keys "YYYY-MM-DD" (7 = week, 1 = day). */
|
|
22
28
|
this.dates = [];
|
|
29
|
+
/** Locale BCP-47 de las cabeceras de día y las etiquetas de hora. */
|
|
23
30
|
this.locale = 'es-CO';
|
|
31
|
+
/** Permite mover y redimensionar eventos arrastrando (salvo los que traen `editable: false`); emite `coEventDrop`. */
|
|
24
32
|
this.editable = true;
|
|
33
|
+
/** Permite seleccionar un rango en un área vacía para crear; emite `coRangeSelect`. */
|
|
25
34
|
this.selectable = true;
|
|
35
|
+
/** Minutos por fila de la grilla (default 15); también el paso del teclado. */
|
|
26
36
|
this.slotMinutes = 15;
|
|
37
|
+
/** Minutos a los que se ajustan arrastres y selecciones (default 15). */
|
|
27
38
|
this.snapMinutes = 15;
|
|
39
|
+
/** Duración en minutos del rango creado con un click simple (default 60). */
|
|
28
40
|
this.defaultDurationMinutes = 60;
|
|
41
|
+
/** Hora `HH:mm` a la que scrollea la grilla al montar (default 07:00). */
|
|
29
42
|
this.scrollTime = '07:00';
|
|
43
|
+
/** Línea de «ahora» en la columna del día actual. */
|
|
30
44
|
this.nowIndicator = true;
|
|
31
45
|
/** Cargando: en vez de los eventos pinta bloques skeleton en las columnas.
|
|
32
46
|
* La grilla (eje de horas, líneas, cabecera de días, franja de todo-el-día)
|
|
33
47
|
* se mantiene: lo único que todavía no se sabe son los eventos. */
|
|
34
48
|
this.loading = false;
|
|
49
|
+
/** Franja superior de eventos de todo el día. */
|
|
35
50
|
this.allDaySlot = true;
|
|
51
|
+
/** Primera hora visible `HH:mm` (default 00:00). */
|
|
36
52
|
this.minTime = '00:00';
|
|
53
|
+
/** Última hora visible `HH:mm` (default 24:00). */
|
|
37
54
|
this.maxTime = '24:00';
|
|
38
55
|
/** Minute of "now" for the indicator; refreshed on a 60s timer. */
|
|
39
56
|
this.nowMinutes = 0;
|
|
@@ -704,11 +721,11 @@ export class CoCalendarTimegrid {
|
|
|
704
721
|
'--co-cal-hour-h': `calc(${60 / this.slotM} * var(--co-cal-slot-h))`,
|
|
705
722
|
'--co-cal-hour-offset': `calc(${((60 - (this.minM % 60)) % 60) / this.slotM} * var(--co-cal-slot-h))`,
|
|
706
723
|
};
|
|
707
|
-
return (h("div", { key: '
|
|
724
|
+
return (h("div", { key: '55c583abdd12ac65d8188a8f9d4f0448e4fcf5b7', class: "tg", tabIndex: 0, onKeyDown: this.handleKeyDown, ref: (el) => (this.rootEl = el) }, h("div", { key: '33fa43418fdff096918441e6a2fdbf1d647980ec', class: "tg__head" }, h("div", { key: '2c4134daefc3cb99aa4965787c11318be9f27d40', class: "tg__head-spacer" }), h("div", { key: '0b6c10bbfb8b91723d62f05f1387d8c0513d7b09', class: "tg__head-days", style: { gridTemplateColumns: colsTemplate } }, dates.map((d) => {
|
|
708
725
|
const ymd = parseISO(d);
|
|
709
726
|
const dow = utcDayOfWeek(d);
|
|
710
727
|
return (h("div", { class: { 'tg__head-day': true, 'tg__head-day--today': compareYMD(d, today) === 0 } }, h("span", { class: "tg__head-dow" }, short[dow]), h("span", { class: "tg__head-num" }, ymd.day)));
|
|
711
|
-
}))), this.allDaySlot && (h("div", { key: '
|
|
728
|
+
}))), this.allDaySlot && (h("div", { key: 'ac00b1d478138334f6b265e7e7861dc910ea778e', class: "tg__allday" }, h("div", { key: '52ea789daff3b284863e90fe2356b3f1f5ed8e75', class: "tg__allday-axis" }, gmtLabel(this.timeZone, dates[0])), h("div", { key: '24e0a67773437bad42a3fb183cf55f53f2e04d0f', class: "tg__allday-lane", style: { height: `${Math.max(1, allDay.laneCount) * ALLDAY_LANE_H + 4}px` } }, allDay.segments.map((seg) => this.renderAllDayBar(seg, dates.length, byId))))), h("div", { key: '19ee69ba01bcd63d015acebba5001390324b1c93', class: "tg__scroll", ref: (el) => (this.scrollEl = el) }, h("div", { key: '644e0cae08a22795bfdaa802227c176e733dd418', class: "tg__body" }, h("div", { key: '56a20d546083e0a0695c01a0910c80fdcaf56589', class: "tg__axis", style: { height: bodyHeight } }, this.hourList().map((m) => (h("span", { class: "tg__axis-hour", style: { top: `${minutesToFraction(m, this.minM, this.maxM) * 100}%` } }, hourLabel(m, this.locale))))), h("div", { key: '391004de33499561a0fdc75e3eabf401fb4e5561', class: "tg__cols", style: Object.assign({ gridTemplateColumns: colsTemplate, height: bodyHeight }, hourVars) }, dates.map((d, i) => {
|
|
712
729
|
var _a;
|
|
713
730
|
const isToday = compareYMD(d, today) === 0;
|
|
714
731
|
return (h("div", { class: { tg__col: true, 'tg__col--today': isToday }, "data-col-date": d, onPointerDown: (e) => this.startSelection(e, d, e.currentTarget), onPointerMove: (e) => this.extendSelection(e, e.currentTarget) }, this.loading
|
|
@@ -752,7 +769,7 @@ export class CoCalendarTimegrid {
|
|
|
752
769
|
"optional": false,
|
|
753
770
|
"docs": {
|
|
754
771
|
"tags": [],
|
|
755
|
-
"text": ""
|
|
772
|
+
"text": "Eventos ya normalizados por el motor (`@prolibu-suite/cobalt-calendar-utils`); propiedad JS."
|
|
756
773
|
},
|
|
757
774
|
"getter": false,
|
|
758
775
|
"setter": false,
|
|
@@ -788,7 +805,7 @@ export class CoCalendarTimegrid {
|
|
|
788
805
|
"optional": false,
|
|
789
806
|
"docs": {
|
|
790
807
|
"tags": [],
|
|
791
|
-
"text": ""
|
|
808
|
+
"text": "Locale BCP-47 de las cabeceras de d\u00EDa y las etiquetas de hora."
|
|
792
809
|
},
|
|
793
810
|
"getter": false,
|
|
794
811
|
"setter": false,
|
|
@@ -808,7 +825,7 @@ export class CoCalendarTimegrid {
|
|
|
808
825
|
"optional": false,
|
|
809
826
|
"docs": {
|
|
810
827
|
"tags": [],
|
|
811
|
-
"text": ""
|
|
828
|
+
"text": "Zona IANA en la que se pinta el reloj (\u00FAnica frontera de zona horaria del componente)."
|
|
812
829
|
},
|
|
813
830
|
"getter": false,
|
|
814
831
|
"setter": false,
|
|
@@ -827,7 +844,7 @@ export class CoCalendarTimegrid {
|
|
|
827
844
|
"optional": false,
|
|
828
845
|
"docs": {
|
|
829
846
|
"tags": [],
|
|
830
|
-
"text": ""
|
|
847
|
+
"text": "Permite mover y redimensionar eventos arrastrando (salvo los que traen `editable: false`); emite `coEventDrop`."
|
|
831
848
|
},
|
|
832
849
|
"getter": false,
|
|
833
850
|
"setter": false,
|
|
@@ -847,7 +864,7 @@ export class CoCalendarTimegrid {
|
|
|
847
864
|
"optional": false,
|
|
848
865
|
"docs": {
|
|
849
866
|
"tags": [],
|
|
850
|
-
"text": ""
|
|
867
|
+
"text": "Permite seleccionar un rango en un \u00E1rea vac\u00EDa para crear; emite `coRangeSelect`."
|
|
851
868
|
},
|
|
852
869
|
"getter": false,
|
|
853
870
|
"setter": false,
|
|
@@ -867,7 +884,7 @@ export class CoCalendarTimegrid {
|
|
|
867
884
|
"optional": true,
|
|
868
885
|
"docs": {
|
|
869
886
|
"tags": [],
|
|
870
|
-
"text": ""
|
|
887
|
+
"text": "Primer d\u00EDa interactuable `YYYY-MM-DD`: antes no se puede seleccionar ni soltar."
|
|
871
888
|
},
|
|
872
889
|
"getter": false,
|
|
873
890
|
"setter": false,
|
|
@@ -886,7 +903,7 @@ export class CoCalendarTimegrid {
|
|
|
886
903
|
"optional": true,
|
|
887
904
|
"docs": {
|
|
888
905
|
"tags": [],
|
|
889
|
-
"text": ""
|
|
906
|
+
"text": "\u00DAltimo d\u00EDa interactuable `YYYY-MM-DD`."
|
|
890
907
|
},
|
|
891
908
|
"getter": false,
|
|
892
909
|
"setter": false,
|
|
@@ -905,7 +922,7 @@ export class CoCalendarTimegrid {
|
|
|
905
922
|
"optional": false,
|
|
906
923
|
"docs": {
|
|
907
924
|
"tags": [],
|
|
908
|
-
"text": ""
|
|
925
|
+
"text": "Minutos por fila de la grilla (default 15); tambi\u00E9n el paso del teclado."
|
|
909
926
|
},
|
|
910
927
|
"getter": false,
|
|
911
928
|
"setter": false,
|
|
@@ -925,7 +942,7 @@ export class CoCalendarTimegrid {
|
|
|
925
942
|
"optional": false,
|
|
926
943
|
"docs": {
|
|
927
944
|
"tags": [],
|
|
928
|
-
"text": ""
|
|
945
|
+
"text": "Minutos a los que se ajustan arrastres y selecciones (default 15)."
|
|
929
946
|
},
|
|
930
947
|
"getter": false,
|
|
931
948
|
"setter": false,
|
|
@@ -945,7 +962,7 @@ export class CoCalendarTimegrid {
|
|
|
945
962
|
"optional": false,
|
|
946
963
|
"docs": {
|
|
947
964
|
"tags": [],
|
|
948
|
-
"text": ""
|
|
965
|
+
"text": "Duraci\u00F3n en minutos del rango creado con un click simple (default 60)."
|
|
949
966
|
},
|
|
950
967
|
"getter": false,
|
|
951
968
|
"setter": false,
|
|
@@ -965,7 +982,7 @@ export class CoCalendarTimegrid {
|
|
|
965
982
|
"optional": false,
|
|
966
983
|
"docs": {
|
|
967
984
|
"tags": [],
|
|
968
|
-
"text": ""
|
|
985
|
+
"text": "Hora `HH:mm` a la que scrollea la grilla al montar (default 07:00)."
|
|
969
986
|
},
|
|
970
987
|
"getter": false,
|
|
971
988
|
"setter": false,
|
|
@@ -985,7 +1002,7 @@ export class CoCalendarTimegrid {
|
|
|
985
1002
|
"optional": false,
|
|
986
1003
|
"docs": {
|
|
987
1004
|
"tags": [],
|
|
988
|
-
"text": ""
|
|
1005
|
+
"text": "L\u00EDnea de \u00ABahora\u00BB en la columna del d\u00EDa actual."
|
|
989
1006
|
},
|
|
990
1007
|
"getter": false,
|
|
991
1008
|
"setter": false,
|
|
@@ -1025,7 +1042,7 @@ export class CoCalendarTimegrid {
|
|
|
1025
1042
|
"optional": false,
|
|
1026
1043
|
"docs": {
|
|
1027
1044
|
"tags": [],
|
|
1028
|
-
"text": ""
|
|
1045
|
+
"text": "Franja superior de eventos de todo el d\u00EDa."
|
|
1029
1046
|
},
|
|
1030
1047
|
"getter": false,
|
|
1031
1048
|
"setter": false,
|
|
@@ -1045,7 +1062,7 @@ export class CoCalendarTimegrid {
|
|
|
1045
1062
|
"optional": false,
|
|
1046
1063
|
"docs": {
|
|
1047
1064
|
"tags": [],
|
|
1048
|
-
"text": ""
|
|
1065
|
+
"text": "Primera hora visible `HH:mm` (default 00:00)."
|
|
1049
1066
|
},
|
|
1050
1067
|
"getter": false,
|
|
1051
1068
|
"setter": false,
|
|
@@ -1065,7 +1082,7 @@ export class CoCalendarTimegrid {
|
|
|
1065
1082
|
"optional": false,
|
|
1066
1083
|
"docs": {
|
|
1067
1084
|
"tags": [],
|
|
1068
|
-
"text": ""
|
|
1085
|
+
"text": "\u00DAltima hora visible `HH:mm` (default 24:00)."
|
|
1069
1086
|
},
|
|
1070
1087
|
"getter": false,
|
|
1071
1088
|
"setter": false,
|
|
@@ -1111,7 +1128,7 @@ export class CoCalendarTimegrid {
|
|
|
1111
1128
|
"composed": false,
|
|
1112
1129
|
"docs": {
|
|
1113
1130
|
"tags": [],
|
|
1114
|
-
"text": ""
|
|
1131
|
+
"text": "Click en un evento: `{ id, rect }` (rect del chip, para anclar un popover). No burbujea."
|
|
1115
1132
|
},
|
|
1116
1133
|
"complexType": {
|
|
1117
1134
|
"original": "{ id: string; rect?: DOMRect }",
|
|
@@ -1131,7 +1148,7 @@ export class CoCalendarTimegrid {
|
|
|
1131
1148
|
"composed": false,
|
|
1132
1149
|
"docs": {
|
|
1133
1150
|
"tags": [],
|
|
1134
|
-
"text": ""
|
|
1151
|
+
"text": "Se movi\u00F3 o redimension\u00F3 un evento: `{ id, start, end, oldStart, oldEnd, allDay }` (instantes ISO UTC).\nControlado: el host decide si aplica el cambio actualizando `events`. No burbujea."
|
|
1135
1152
|
},
|
|
1136
1153
|
"complexType": {
|
|
1137
1154
|
"original": "{\n id: string; start: string; end: string; oldStart: string; oldEnd: string; allDay: boolean;\n }",
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
|
+
* Contenedor tipo tarjeta con header, cuerpo y footer, en variantes elevada,
|
|
4
|
+
* con borde o plana; opcionalmente clickeable. Wrapper Vue: `CoCard` de
|
|
5
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
6
|
+
*
|
|
7
|
+
* @part card - La tarjeta.
|
|
8
|
+
* @part header - Área del slot `header`.
|
|
9
|
+
* @part body - Cuerpo (slot por defecto).
|
|
10
|
+
* @part footer - Área del slot `footer`.
|
|
11
|
+
*
|
|
3
12
|
* @slot header - Card header area (image, title, actions)
|
|
4
13
|
* @slot - Default slot for card body/content
|
|
5
14
|
* @slot footer - Card footer area (meta, actions)
|
|
@@ -29,13 +38,13 @@ export class CoCard {
|
|
|
29
38
|
return nodes.length > 0;
|
|
30
39
|
}
|
|
31
40
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: '662e725ff539d1696eeaa99a42f8160df8ba13ae', class: {
|
|
33
42
|
'co-card': true,
|
|
34
43
|
[`co-card--${this.variant}`]: true,
|
|
35
44
|
[`co-card--pad-${this.padding}`]: true,
|
|
36
45
|
'co-card--clickable': this.clickable,
|
|
37
46
|
'co-card--stretch': this.stretch,
|
|
38
|
-
}, part: "card", role: this.clickable ? 'button' : undefined, tabIndex: this.clickable ? 0 : undefined }, h("div", { key: '
|
|
47
|
+
}, part: "card", role: this.clickable ? 'button' : undefined, tabIndex: this.clickable ? 0 : undefined }, h("div", { key: '63b8d7696663831f6151d66ea17855ce85421045', class: { 'co-card__header': true, 'co-card__header--empty': !this.hasHeader }, part: "header" }, h("slot", { key: 'b4318780fa0d1fb8c9475056d59b9dd3bf055594', name: "header", onSlotchange: this.handleHeaderSlotChange })), h("div", { key: '20d5231348b8031688380b08a8222f4bd3f68575', class: "co-card__body", part: "body" }, h("slot", { key: '2946cc5d8d80cbc23f98e710b97cb77d542a019e' })), h("div", { key: '90dd12b60204cbd2e1ddb6752c8e6a413db7f860', class: { 'co-card__footer': true, 'co-card__footer--empty': !this.hasFooter }, part: "footer" }, h("slot", { key: 'de9d77a21962ed35d2862059d13910b1067d1573', name: "footer", onSlotchange: this.handleFooterSlotChange }))));
|
|
39
48
|
}
|
|
40
49
|
static get is() { return "co-card"; }
|
|
41
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
co-carousel
|
|
3
3
|
═══════════════════════════════════════════════════ */
|
|
4
4
|
|
|
5
|
+
/**
|
|
6
|
+
* Tienen su default en `:host`; se sobrescriben desde afuera sobre el elemento.
|
|
7
|
+
* @prop --co-carousel-arrow-size: Diámetro de las flechas (default 36px).
|
|
8
|
+
* @prop --co-carousel-arrow-bg: Fondo de las flechas.
|
|
9
|
+
* @prop --co-carousel-arrow-color: Color del ícono de las flechas.
|
|
10
|
+
* @prop --co-carousel-dot-size: Tamaño de los indicadores (default 6px).
|
|
11
|
+
* @prop --co-carousel-dot-color: Color de los indicadores inactivos.
|
|
12
|
+
* @prop --co-carousel-dot-active-color: Color del indicador activo.
|
|
13
|
+
* @prop --co-carousel-transition: Duración y curva del desplazamiento entre slides (default 320ms).
|
|
14
|
+
*/
|
|
5
15
|
:host {
|
|
6
16
|
display: block;
|
|
7
17
|
font-family: var(--co-font-family-primary);
|
|
@@ -6,8 +6,17 @@ import { getCarouselStrings } from "../../utils/carouselI18n";
|
|
|
6
6
|
* inertness on each item and translates a flex track to the active index.
|
|
7
7
|
*
|
|
8
8
|
* No v-model in the Vue wrappers — consume with `:value` + `@coSlideChange`.
|
|
9
|
+
* Wrapper Vue: `CoCarousel` de `@prolibu-suite/cobalt-vue`.
|
|
9
10
|
*
|
|
10
11
|
* @slot - co-carousel-item elements
|
|
12
|
+
*
|
|
13
|
+
* @part container - Caja del carrusel (relación de aspecto).
|
|
14
|
+
* @part viewport - Ventana visible que recorta los slides.
|
|
15
|
+
* @part track - Tira de slides que se desplaza al activo.
|
|
16
|
+
* @part arrow-prev - Flecha «anterior».
|
|
17
|
+
* @part arrow-next - Flecha «siguiente».
|
|
18
|
+
* @part dots - Grupo de indicadores.
|
|
19
|
+
* @part dot - Cada indicador (botón que lleva a su slide).
|
|
11
20
|
*/
|
|
12
21
|
export class CoCarousel {
|
|
13
22
|
constructor() {
|
|
@@ -197,12 +206,15 @@ export class CoCarousel {
|
|
|
197
206
|
this.restartAutoplay();
|
|
198
207
|
}
|
|
199
208
|
// ── Public methods ──────────────────────────────
|
|
209
|
+
/** Avanza al slide siguiente (con `loop`, del último vuelve al primero). */
|
|
200
210
|
async next() {
|
|
201
211
|
this.advance(1);
|
|
202
212
|
}
|
|
213
|
+
/** Retrocede al slide anterior (con `loop`, del primero va al último). */
|
|
203
214
|
async prev() {
|
|
204
215
|
this.advance(-1);
|
|
205
216
|
}
|
|
217
|
+
/** Va al slide `index` (base 0; se recorta al rango válido). Emite `coSlideChange`. */
|
|
206
218
|
async goTo(index) {
|
|
207
219
|
this.setActive(this.clampIndex(index));
|
|
208
220
|
}
|
|
@@ -303,11 +315,11 @@ export class CoCarousel {
|
|
|
303
315
|
};
|
|
304
316
|
if (this.dragging)
|
|
305
317
|
trackStyle.transition = 'none';
|
|
306
|
-
return (h(Host, { key: '
|
|
318
|
+
return (h(Host, { key: '893a30dd314f5d04c78c1824317b80db6d4326d4' }, h("div", { key: '799a7edfbd023adf57ea1e3dfb90fdd8e864954c', class: { 'co-carousel': true, [aspectClass]: true }, part: "container", role: "region", "aria-roledescription": "carousel", "aria-label": s.carouselLabel, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut }, h("div", { key: 'd6227b5963125ff1e2f9433d63d6ffb632e2f50a', class: "co-carousel__viewport", part: "viewport", ref: el => (this.viewportEl = el), onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, onClickCapture: this.handleClickCapture }, h("div", { key: '74b2910ef5d37bd94f054984eb80f090c6a4f878', class: "co-carousel__track", part: "track", style: trackStyle, "aria-live": this.rotating ? 'off' : 'polite' }, h("slot", { key: 'b590ed5dd8ee443cf5875f929280cf860284cf3d', onSlotchange: this.handleSlotChange }))), this.arrows && multi && (h("button", { key: '92d9002c893bd3d200bc290cadb0cdf87fb2a493', class: { 'co-carousel__arrow': true, 'co-carousel__arrow--prev': true, 'co-carousel__arrow--disabled': !canPrev }, part: "arrow-prev", type: "button", "aria-label": s.prevSlide, disabled: !canPrev, onClick: () => this.advance(-1) }, h("co-icon", { key: '8608c83fb246ec45c2f34eb221d1f25dac51c680', name: "caret-left", size: 18, weight: "bold" }))), this.arrows && multi && (h("button", { key: 'd1279fa7a3ebef36f2d590e5834a2b0484c2f6b3', class: { 'co-carousel__arrow': true, 'co-carousel__arrow--next': true, 'co-carousel__arrow--disabled': !canNext }, part: "arrow-next", type: "button", "aria-label": s.nextSlide, disabled: !canNext, onClick: () => this.advance(1) }, h("co-icon", { key: 'cfa98cc4aad1e658e63b7411638522687f6c3650', name: "caret-right", size: 18, weight: "bold" }))), this.dots && multi && (
|
|
307
319
|
// APG grouped-carousel picker pattern: plain always-tabbable
|
|
308
320
|
// buttons in a labelled group (tablist/tab would demand
|
|
309
321
|
// aria-controls + roving tabindex we don't implement).
|
|
310
|
-
h("div", { key: '
|
|
322
|
+
h("div", { key: '98fbe34ec71504ff2089f380cce0354b52753d08', class: "co-carousel__dots", part: "dots", role: "group", "aria-label": s.pickSlide }, Array.from({ length: this.itemCount }, (_, i) => (h("button", { class: { 'co-carousel__dot': true, 'co-carousel__dot--active': i === this.value }, part: "dot", type: "button", "aria-current": i === this.value ? 'true' : undefined, "aria-label": s.goToSlide.replace('{i}', String(i + 1)), onClick: () => this.setActive(i) }))))))));
|
|
311
323
|
}
|
|
312
324
|
static get is() { return "co-carousel"; }
|
|
313
325
|
static get encapsulation() { return "shadow"; }
|
|
@@ -566,7 +578,7 @@ export class CoCarousel {
|
|
|
566
578
|
"return": "Promise<void>"
|
|
567
579
|
},
|
|
568
580
|
"docs": {
|
|
569
|
-
"text": "",
|
|
581
|
+
"text": "Avanza al slide siguiente (con `loop`, del \u00FAltimo vuelve al primero).",
|
|
570
582
|
"tags": []
|
|
571
583
|
}
|
|
572
584
|
},
|
|
@@ -583,7 +595,7 @@ export class CoCarousel {
|
|
|
583
595
|
"return": "Promise<void>"
|
|
584
596
|
},
|
|
585
597
|
"docs": {
|
|
586
|
-
"text": "",
|
|
598
|
+
"text": "Retrocede al slide anterior (con `loop`, del primero va al \u00FAltimo).",
|
|
587
599
|
"tags": []
|
|
588
600
|
}
|
|
589
601
|
},
|
|
@@ -604,7 +616,7 @@ export class CoCarousel {
|
|
|
604
616
|
"return": "Promise<void>"
|
|
605
617
|
},
|
|
606
618
|
"docs": {
|
|
607
|
-
"text": "",
|
|
619
|
+
"text": "Va al slide `index` (base 0; se recorta al rango v\u00E1lido). Emite `coSlideChange`.",
|
|
608
620
|
"tags": []
|
|
609
621
|
}
|
|
610
622
|
}
|
|
@@ -8,7 +8,7 @@ import { Host, h } from "@stencil/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export class CoCarouselItem {
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'c35ea6afb9a70c602094a6b29d0fd8e80d945602', role: "group", "aria-roledescription": "slide" }, h("slot", { key: 'd2a344a92e6c5bb374ccb54eebc8eb3619566093' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "co-carousel-item"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -78,7 +78,14 @@
|
|
|
78
78
|
tinte de la fila). Frost real solo en appearance="overlay", más abajo. */
|
|
79
79
|
.co-checkbox:not(.co-checkbox--checked) {
|
|
80
80
|
background: color-mix(in srgb, var(--co-semantic-surface-secondary) 35%, transparent);
|
|
81
|
-
|
|
81
|
+
/* m-16: el borde va al token PLENO (negro-16 = 0,16), que es lo que pide el
|
|
82
|
+
diseño. El `color-mix(… 75%, transparent)` que había acá lo dejaba en 0,12
|
|
83
|
+
y, de paso, era el motivo por el que el puente de tema
|
|
84
|
+
`--co-semantic-border-field: var(--co-semantic-border-default)` nunca le
|
|
85
|
+
llegaba a la casilla: no leía `border-field` y encima diluía el otro.
|
|
86
|
+
Es el mismo borde que `labelSize="xs"` ya dibujaba pleno. El relleno
|
|
87
|
+
translúcido (35%) no se toca: el hallazgo es solo del borde. */
|
|
88
|
+
border: 1px solid var(--co-semantic-border-default);
|
|
82
89
|
}
|
|
83
90
|
|
|
84
91
|
/* ─── CHECKED ───────────────────────────────────────────────── */
|
|
@@ -250,3 +257,38 @@
|
|
|
250
257
|
border-color: var(--co-semantic-border-focus);
|
|
251
258
|
box-shadow: 0 0 0 2px var(--co-semantic-border-focus);
|
|
252
259
|
}
|
|
260
|
+
|
|
261
|
+
/* ─── LABEL SIZE "xs" (Task C6) ─────────────────────────────── */
|
|
262
|
+
/* Aditivo: solo aplica con la clase --label-xs en la fila; el default
|
|
263
|
+
(sin la clase) queda byte-idéntico a lo de arriba. */
|
|
264
|
+
.co-checkbox-row--label-xs {
|
|
265
|
+
gap: var(--co-spacing-sm); /* 6px, en vez del sm2 (8px) del default */
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.co-checkbox-row--label-xs .co-checkbox__label {
|
|
269
|
+
color: var(--co-semantic-text-default);
|
|
270
|
+
font-size: var(--co-font-size-12);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/* Fix round 1: sin este bloque, disabled + label-xs perdía el dimming del
|
|
274
|
+
label. La regla de arriba (.co-checkbox-row--label-xs .co-checkbox__label,
|
|
275
|
+
especificidad 0,2,0) empata en especificidad con la de disabled
|
|
276
|
+
(.co-checkbox-row--disabled .co-checkbox__label, línea ~32-34, también
|
|
277
|
+
0,2,0) y, al declararse después en el archivo, ganaba siempre — incluso
|
|
278
|
+
con disabled activo. Este selector compuesto sube a 0,3,0 (dos clases en
|
|
279
|
+
la fila + el label) y gana pase lo que pase el orden de declaración. */
|
|
280
|
+
.co-checkbox-row--disabled.co-checkbox-row--label-xs .co-checkbox__label {
|
|
281
|
+
color: var(--co-semantic-text-disabled);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Caja SIN MARCAR: fondo transparente + borde pleno (no color-mix), en vez
|
|
285
|
+
de la traslucidez 35%/75% del default. El estado marcado/indeterminado no
|
|
286
|
+
se toca — sigue siendo la regla de arriba (fondo sólido, sin borde). El
|
|
287
|
+
`:not(--indeterminate)` es necesario (fix I-3): la clase --checked solo va
|
|
288
|
+
con checked && !indeterminate (ver .tsx), así que un `:not(--checked)`
|
|
289
|
+
pelado también matcheaba el indeterminado → caja transparente con el
|
|
290
|
+
guion blanco encima, invisible. Misma forma que el chip overlay de arriba. */
|
|
291
|
+
.co-checkbox-row--label-xs .co-checkbox:not(.co-checkbox--checked):not(.co-checkbox--indeterminate) {
|
|
292
|
+
background: transparent;
|
|
293
|
+
border: 1px solid var(--co-semantic-border-default);
|
|
294
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Casilla de verificación con etiqueta, estado indeterminado y variante de chip
|
|
4
|
+
* de selección (`appearance="overlay"`). Wrapper Vue: `CoCheckbox` de
|
|
5
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
6
|
+
*
|
|
7
|
+
* @part box - La casilla.
|
|
8
|
+
* @part label - La etiqueta.
|
|
9
|
+
*/
|
|
2
10
|
export class CoCheckbox {
|
|
3
11
|
constructor() {
|
|
4
12
|
/** Whether the checkbox is checked */
|
|
@@ -7,6 +15,13 @@ export class CoCheckbox {
|
|
|
7
15
|
this.indeterminate = false;
|
|
8
16
|
/** Size: small=16px, medium=20px, large=24px (overlay appearance: small=20px, medium/large=22px) */
|
|
9
17
|
this.size = 'small';
|
|
18
|
+
/**
|
|
19
|
+
* Talla del label: 'default' (14px, sin cambios) o 'xs' (12px/400/text-default,
|
|
20
|
+
* gap 6). Con 'xs' la caja SIN MARCAR pasa a fondo transparente + borde
|
|
21
|
+
* `--co-semantic-border-default` pleno (hoy surface-secondary 35% + borde 75%);
|
|
22
|
+
* el estado marcado no cambia. Aditivo — el default sigue siendo idéntico.
|
|
23
|
+
*/
|
|
24
|
+
this.labelSize = 'default';
|
|
10
25
|
/** Disabled state */
|
|
11
26
|
this.disabled = false;
|
|
12
27
|
/** Value for checkbox group usage */
|
|
@@ -43,17 +58,18 @@ export class CoCheckbox {
|
|
|
43
58
|
// Only override the fill when a custom color is provided AND the box is "on".
|
|
44
59
|
// Leaving this undefined keeps the default appearance byte-identical to before.
|
|
45
60
|
const boxStyle = this.checkedColor && isOn ? { background: this.checkedColor } : undefined;
|
|
46
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: '9e2c38b7ae4421165cf8ebea81516a91478b99a1', class: {
|
|
47
62
|
'co-checkbox-row': true,
|
|
48
63
|
'co-checkbox-row--disabled': this.disabled,
|
|
49
|
-
|
|
64
|
+
'co-checkbox-row--label-xs': this.labelSize === 'xs',
|
|
65
|
+
}, onClick: this.handleClick }, h("span", { key: '6d7d00ff7624068dda50673b75844f7ac338c6e9', role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : String(this.checked), "aria-label": this.label || this.ariaLabelText || '', "aria-disabled": this.disabled ? 'true' : undefined, tabIndex: this.disabled ? -1 : 0, onKeyDown: this.handleKeyDown, class: {
|
|
50
66
|
'co-checkbox': true,
|
|
51
67
|
[`co-checkbox--${this.size}`]: true,
|
|
52
68
|
'co-checkbox--overlay': isOverlay,
|
|
53
69
|
'co-checkbox--checked': this.checked && !this.indeterminate,
|
|
54
70
|
'co-checkbox--indeterminate': this.indeterminate,
|
|
55
71
|
'co-checkbox--disabled': this.disabled,
|
|
56
|
-
}, style: boxStyle, part: "box" }, h("svg", { key: '
|
|
72
|
+
}, style: boxStyle, part: "box" }, h("svg", { key: '2c6377c45aa39658fe85d399d812fb7f32d0a51b', class: "co-checkbox__glyph", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { key: '0f754ffa9b90acc943bcb9ec354a27596b4b3532', class: "co-checkbox__check", d: "M3.5 8.5l3 3 6-6.5", pathLength: "1", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: 'beca1dff6db4a2eae3c7c2c25dcd10061fae5f31', class: "co-checkbox__dash", d: "M3 8h10", pathLength: "1", "stroke-linecap": "round" }))), this.label && (h("span", { key: '28f0916e57c3377040ebeb2a901ba1dec491f580', class: "co-checkbox__label", part: "label" }, this.label))));
|
|
57
73
|
}
|
|
58
74
|
static get is() { return "co-checkbox"; }
|
|
59
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -129,6 +145,26 @@ export class CoCheckbox {
|
|
|
129
145
|
"attribute": "size",
|
|
130
146
|
"defaultValue": "'small'"
|
|
131
147
|
},
|
|
148
|
+
"labelSize": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"mutable": false,
|
|
151
|
+
"complexType": {
|
|
152
|
+
"original": "'default' | 'xs'",
|
|
153
|
+
"resolved": "\"default\" | \"xs\"",
|
|
154
|
+
"references": {}
|
|
155
|
+
},
|
|
156
|
+
"required": false,
|
|
157
|
+
"optional": false,
|
|
158
|
+
"docs": {
|
|
159
|
+
"tags": [],
|
|
160
|
+
"text": "Talla del label: 'default' (14px, sin cambios) o 'xs' (12px/400/text-default,\ngap 6). Con 'xs' la caja SIN MARCAR pasa a fondo transparente + borde\n`--co-semantic-border-default` pleno (hoy surface-secondary 35% + borde 75%);\nel estado marcado no cambia. Aditivo \u2014 el default sigue siendo id\u00E9ntico."
|
|
161
|
+
},
|
|
162
|
+
"getter": false,
|
|
163
|
+
"setter": false,
|
|
164
|
+
"reflect": false,
|
|
165
|
+
"attribute": "label-size",
|
|
166
|
+
"defaultValue": "'default'"
|
|
167
|
+
},
|
|
132
168
|
"disabled": {
|
|
133
169
|
"type": "boolean",
|
|
134
170
|
"mutable": false,
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Grupo de casillas con etiqueta, ayuda y estado de validación: `options`
|
|
4
|
+
* define las casillas y `value` las marcadas (array). Emite `coChange` con el
|
|
5
|
+
* array completo. Wrapper Vue: `CoCheckboxGroup` de `@prolibu-suite/cobalt-vue`.
|
|
6
|
+
*/
|
|
2
7
|
export class CoCheckboxGroup {
|
|
3
8
|
constructor() {
|
|
4
9
|
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
@@ -70,11 +75,11 @@ export class CoCheckboxGroup {
|
|
|
70
75
|
const hasLabels = this.label || this.secondaryLabel;
|
|
71
76
|
const opts = this.parsedOptions;
|
|
72
77
|
const selected = this.selectedValues;
|
|
73
|
-
return (h("div", { key: '
|
|
78
|
+
return (h("div", { key: '9b4ee043c35d0be7da49ca2881671830d900dcb7', class: {
|
|
74
79
|
'co-checkbox-group': true,
|
|
75
80
|
'co-checkbox-group--disabled': this.disabled,
|
|
76
81
|
[`co-checkbox-group--${this.status}`]: this.status !== 'default',
|
|
77
|
-
}, role: "group", "aria-label": this.label || '' }, hasLabels && (h("div", { key: '
|
|
82
|
+
}, role: "group", "aria-label": this.label || '' }, hasLabels && (h("div", { key: 'fca5265d4bd96a5792840319443f48f4871f9e10', class: "co-checkbox-group__labels" }, this.label && h("span", { key: 'b53daed7cea22897e978dc83eee817d0b67e73d2', class: "co-checkbox-group__label" }, this.label), this.secondaryLabel && (h("span", { key: '88eb49c68465e27f53f91cdf73d9748effca7d8b', class: "co-checkbox-group__secondary-label" }, this.secondaryLabel)))), h("div", { key: 'dae5337bf83e5dbc46e0afc6fd6eed5bb4aee6db', class: {
|
|
78
83
|
'co-checkbox-group__options': true,
|
|
79
84
|
[`co-checkbox-group__options--${this.direction}`]: true,
|
|
80
85
|
} }, opts.map(opt => {
|
|
@@ -89,7 +94,7 @@ export class CoCheckboxGroup {
|
|
|
89
94
|
'co-checkbox-group__box--checked': isChecked,
|
|
90
95
|
'co-checkbox-group__box--disabled': isDisabled,
|
|
91
96
|
}, role: "checkbox", "aria-checked": String(isChecked), "aria-label": opt.label }), h("span", { class: "co-checkbox-group__option-label" }, opt.label)));
|
|
92
|
-
})), this.helperText && (h("div", { key: '
|
|
97
|
+
})), this.helperText && (h("div", { key: 'af541135d225b51ad80e39edd3d6947f2567dd75', class: `co-checkbox-group__helper co-checkbox-group__helper--${this.status}` }, this.statusIcon && (h("co-icon", { key: '52297bb73168c15af67b65eedaf6349a7c5dd6f3', name: this.statusIcon, size: 14, weight: "fill", class: "co-checkbox-group__helper-icon" })), h("span", { key: '3ebd17867c2d36b0483d7620476bc5502c36fd73', class: "co-checkbox-group__helper-text" }, this.helperText)))));
|
|
93
98
|
}
|
|
94
99
|
static get is() { return "co-checkbox-group"; }
|
|
95
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -231,7 +236,7 @@ export class CoCheckboxGroup {
|
|
|
231
236
|
"references": {
|
|
232
237
|
"CheckboxOption": {
|
|
233
238
|
"location": "local",
|
|
234
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
239
|
+
"path": "/Users/agox/worktrees/cobalt-docs-2026-09-24/packages/core/src/components/co-checkbox-group/co-checkbox-group.tsx",
|
|
235
240
|
"id": "src/components/co-checkbox-group/co-checkbox-group.tsx::CheckboxOption"
|
|
236
241
|
}
|
|
237
242
|
}
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
/* co-chip — all variants: filled/outlined, colors, removable, clickable, selected, disabled */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @prop --co-chip-bg: Fondo de la variante `filled`.
|
|
5
|
+
* @prop --co-chip-color: Color de texto de la variante `filled`.
|
|
6
|
+
* @prop --co-chip-border: Color del borde de la variante `filled` (default transparente).
|
|
7
|
+
* @prop --co-chip-max-width: Ancho máximo del chip; el texto se trunca con elipsis (default sin tope).
|
|
8
|
+
* @prop --co-chip-value-color: Color del sufijo `valueLabel` (default gray-500).
|
|
9
|
+
* @prop --co-chip-trailing-color: Color del ícono final `trailingIcon` (default: el del texto).
|
|
10
|
+
*/
|
|
11
|
+
|
|
3
12
|
:host {
|
|
4
13
|
display: inline-flex;
|
|
5
14
|
max-width: var(--co-chip-max-width, none);
|
|
@@ -1,8 +1,21 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
/**
|
|
3
|
+
* Etiqueta compacta para estados, tags, filtros o selecciones: con color
|
|
4
|
+
* semántico, íconos, punto de color, sufijo de valor («Ordenar: Reciente»),
|
|
5
|
+
* botón de quitar y modo clickeable/seleccionable. Wrapper Vue: `CoChip` de
|
|
6
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
7
|
+
*
|
|
3
8
|
* @slot icon-left - Icon before label (1nd Icon mode)
|
|
4
9
|
* @slot icon-right - Icon after label (2nd Icon mode)
|
|
5
10
|
* @slot - Label text
|
|
11
|
+
*
|
|
12
|
+
* @part chip - Contenedor del chip.
|
|
13
|
+
* @part dot - Punto de color inicial (`dot`).
|
|
14
|
+
* @part icon-left - Ícono o slot de la izquierda.
|
|
15
|
+
* @part icon-right - Ícono o slot de la derecha.
|
|
16
|
+
* @part value - Sufijo de valor (`valueLabel`).
|
|
17
|
+
* @part trailing - Ícono final (`trailingIcon`).
|
|
18
|
+
* @part remove - Botón × (`removable`).
|
|
6
19
|
*/
|
|
7
20
|
export class CoChip {
|
|
8
21
|
constructor() {
|
|
@@ -70,7 +83,7 @@ export class CoChip {
|
|
|
70
83
|
else
|
|
71
84
|
effectiveIconMode = 'none';
|
|
72
85
|
const Tag = this.clickable ? 'button' : 'div';
|
|
73
|
-
return (h(Tag, { key: '
|
|
86
|
+
return (h(Tag, { key: 'a0fef13e5a67b2d8c1ac96576d1f75f5187c70cb', class: {
|
|
74
87
|
'co-chip': true,
|
|
75
88
|
[`co-chip--${this.shape}`]: true,
|
|
76
89
|
[`co-chip--${this.size}`]: true,
|
|
@@ -80,7 +93,7 @@ export class CoChip {
|
|
|
80
93
|
'co-chip--clickable': this.clickable,
|
|
81
94
|
'co-chip--disabled': this.disabled,
|
|
82
95
|
'co-chip--selected': this.selected,
|
|
83
|
-
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (h("span", { key: '
|
|
96
|
+
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (h("span", { key: 'cac1c98fa890bae489af9b3efb4fb3ec0a06d1ca', class: "co-chip__dot", part: "dot", style: this.dotColor ? { color: this.dotColor } : undefined }, h("co-icon", { key: '545dba15817d7375447a0adb1d472b2accf7b878', name: "circle", size: iconSize, weight: "fill" }))), this.iconLeft && !hasLeftSlot && (h("span", { key: 'a54ecde8516125b1670716ebd8555d3ac6ca24be', class: "co-chip__icon-left", part: "icon-left" }, h("co-icon", { key: '0e3174abeb9761a8a2abca7bbd9ebec0bd3e9dea', name: this.iconLeft, size: iconSize, weight: this.iconWeight }))), hasLeftSlot && (h("span", { key: 'cf7a72c01e63140bc22bde8d87841cbb79bb4f4a', class: "co-chip__icon-left", part: "icon-left" }, h("slot", { key: 'f2398a1b9bb41f1f2dc039303ec0a6b8c8ccfada', name: "icon-left" }))), h("span", { key: 'de70419bb5a522cd5425096f6da19752736d14b8', class: "co-chip__label" }, h("slot", { key: '6bf611ee5235e60514eb2b3f37040183f7e0032c' }, this.label), this.valueLabel != null && this.valueLabel !== '' && (h("span", { key: 'bc36276493cd3ff26ce131c85094125b27791028', class: "co-chip__value", part: "value" }, `: ${this.valueLabel}`))), this.iconRight && !hasRightSlot && !this.removable && (h("span", { key: '8d20d206a23ed7109c5cc40b2beb278fd0e89614', class: "co-chip__icon-right", part: "icon-right" }, h("co-icon", { key: '28cdb555b65fefcf3e3471aea46fe4ec0d2aad18', name: this.iconRight, size: iconSize, weight: this.iconWeight }))), hasRightSlot && (h("span", { key: '009206c164ae5d378481e8512fe8e63c921bb57e', class: "co-chip__icon-right", part: "icon-right" }, h("slot", { key: '8397bf2f3add45386d34b61964fe6ea5ecb05f70', name: "icon-right" }))), this.removable && (h("span", { key: 'bb95705bdb89959b8bc64a5d692d54dcc2387e0b', class: "co-chip__remove", part: "remove", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleRemove, "aria-label": "Remove" }, h("co-icon", { key: 'a616ebe4d69c08be3bb908e7da1dcdd15a4c257a', name: "x-circle", size: removeIconSize, weight: "fill" }))), this.trailingIcon && (h("span", { key: '3302ddb23482eaeff3a4ba2de38282f423768b2c', class: "co-chip__trailing", part: "trailing" }, h("co-icon", { key: '34a716149f174722d7b7a5549821a80ee7cdad63', name: this.trailingIcon, size: trailingIconSize, weight: this.iconWeight })))));
|
|
84
97
|
}
|
|
85
98
|
static get is() { return "co-chip"; }
|
|
86
99
|
static get encapsulation() { return "shadow"; }
|