@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
|
@@ -28,6 +28,8 @@ function dayPeriodLabels(locale) {
|
|
|
28
28
|
* (co-date-time-picker: coInput→draft, coCommit→commit+close).
|
|
29
29
|
* `coEscape` = anuncio de intención; el picker NO lo wirea — ver
|
|
30
30
|
* co-date-time-picker.tsx (Escape lo posee su root handler).
|
|
31
|
+
*
|
|
32
|
+
* Wrapper Vue: `CoTimeField` de `@prolibu-suite/cobalt-vue`.
|
|
31
33
|
*/
|
|
32
34
|
export class CoTimeField {
|
|
33
35
|
constructor() {
|
|
@@ -35,7 +37,9 @@ export class CoTimeField {
|
|
|
35
37
|
this.value = null;
|
|
36
38
|
/** Reloj de 12 h. `false` = 00–23 sin segmento de período. */
|
|
37
39
|
this.hour12 = true;
|
|
40
|
+
/** Locale BCP-47: textos del período (a. m./p. m.) y nombres accesibles de los segmentos. */
|
|
38
41
|
this.locale = 'es-CO';
|
|
42
|
+
/** Deshabilita el campo. */
|
|
39
43
|
this.disabled = false;
|
|
40
44
|
/** Paso de PageUp/PageDown sobre el minuto. */
|
|
41
45
|
this.pageStep = 15;
|
|
@@ -154,6 +158,7 @@ export class CoTimeField {
|
|
|
154
158
|
this.hour24 = Math.floor(m / 60);
|
|
155
159
|
this.minute = m % 60;
|
|
156
160
|
}
|
|
161
|
+
/** Enfoca el segmento de la hora. */
|
|
157
162
|
async focusInput() {
|
|
158
163
|
var _a;
|
|
159
164
|
(_a = this.hourEl) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -313,7 +318,7 @@ export class CoTimeField {
|
|
|
313
318
|
}
|
|
314
319
|
render() {
|
|
315
320
|
const t = getDateStrings(this.locale);
|
|
316
|
-
return (h("div", { key: '
|
|
321
|
+
return (h("div", { key: 'b35cb03c86b6073d7af850316ef15754bedc059c', class: { 'co-time-field': true, 'co-time-field--disabled': this.disabled }, role: "group", "aria-label": this.fieldLabel || t.timeFieldLabel }, h("span", { key: 'dd3325ea0193f0819f4e8c2341eab0c0671cf421', class: "co-time-field__segs" }, this.renderSeg('hour', t), h("span", { key: '4bfae37879f6cb2fa00d26bdabdbdc04eb7701ad', class: "co-time-field__sep", "aria-hidden": "true" }, ":"), this.renderSeg('minute', t), this.hour12 && this.renderSeg('period', t)), h("span", { key: '196fcdc84979ee4631cefd208ef78b8d7a46d0c8', class: "co-time-field__steppers" }, h("button", { key: '1e2dbe2b2746048f6a1de6bdff3304180028bb90', type: "button", tabIndex: -1, "aria-hidden": "true", onMouseDown: (e) => e.preventDefault(), onClick: this.onStepperClick(1) }, h("co-icon", { key: '7b3a75bfb9b8038667dc709b65b1b1ea8ebecc0e', name: "caret-up", size: 10 })), h("button", { key: '948ae31bfe775c72269ff2bbdea8839c15d2f076', type: "button", tabIndex: -1, "aria-hidden": "true", onMouseDown: (e) => e.preventDefault(), onClick: this.onStepperClick(-1) }, h("co-icon", { key: '357072a670ee75c74569bd59e6ea4bcdebf216ac', name: "caret-down", size: 10 })))));
|
|
317
322
|
}
|
|
318
323
|
static get is() { return "co-time-field"; }
|
|
319
324
|
static get encapsulation() { return "shadow"; }
|
|
@@ -381,7 +386,7 @@ export class CoTimeField {
|
|
|
381
386
|
"optional": false,
|
|
382
387
|
"docs": {
|
|
383
388
|
"tags": [],
|
|
384
|
-
"text": ""
|
|
389
|
+
"text": "Locale BCP-47: textos del per\u00EDodo (a. m./p. m.) y nombres accesibles de los segmentos."
|
|
385
390
|
},
|
|
386
391
|
"getter": false,
|
|
387
392
|
"setter": false,
|
|
@@ -401,7 +406,7 @@ export class CoTimeField {
|
|
|
401
406
|
"optional": false,
|
|
402
407
|
"docs": {
|
|
403
408
|
"tags": [],
|
|
404
|
-
"text": ""
|
|
409
|
+
"text": "Deshabilita el campo."
|
|
405
410
|
},
|
|
406
411
|
"getter": false,
|
|
407
412
|
"setter": false,
|
|
@@ -520,7 +525,7 @@ export class CoTimeField {
|
|
|
520
525
|
"return": "Promise<void>"
|
|
521
526
|
},
|
|
522
527
|
"docs": {
|
|
523
|
-
"text": "",
|
|
528
|
+
"text": "Enfoca el segmento de la hora.",
|
|
524
529
|
"tags": []
|
|
525
530
|
}
|
|
526
531
|
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cada variante las reasigna en el elemento interno, así que se sobrescriben vía
|
|
3
|
+
* `co-toast::part(toast) { --co-toast-bg: … }`.
|
|
4
|
+
* @prop --co-toast-bg: Fondo de la tarjeta.
|
|
5
|
+
* @prop --co-toast-border: Color del borde.
|
|
6
|
+
* @prop --co-toast-text: Color del mensaje.
|
|
7
|
+
* @prop --co-toast-text-secondary: Color de la descripción.
|
|
8
|
+
* @prop --co-toast-icon: Color del ícono inicial.
|
|
9
|
+
* @prop --co-toast-dismiss-bg: Fondo del botón ✕.
|
|
10
|
+
* @prop --co-toast-dismiss-color: Color del ícono del botón ✕.
|
|
11
|
+
*/
|
|
1
12
|
:host {
|
|
2
13
|
display: block;
|
|
3
14
|
|
|
@@ -8,6 +8,11 @@ const DEFAULT_ICON = {
|
|
|
8
8
|
};
|
|
9
9
|
const ALERT_VARIANTS = ['error', 'warning'];
|
|
10
10
|
/**
|
|
11
|
+
* Notificación breve con mensaje, descripción opcional, ícono, acciones y ✕,
|
|
12
|
+
* con variantes semánticas y barra de progreso opcional. Es solo la tarjeta:
|
|
13
|
+
* mostrarla, apilarla y ocultarla es del host. Wrapper Vue: `CoToast` de
|
|
14
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
15
|
+
*
|
|
11
16
|
* @slot action - Action area (buttons, icon buttons)
|
|
12
17
|
*
|
|
13
18
|
* Figma variants (Tipos) are layout choices:
|
|
@@ -17,6 +22,10 @@ const ALERT_VARIANTS = ['error', 'warning'];
|
|
|
17
22
|
* - Tipo=04 → message + inline icon action + dismiss
|
|
18
23
|
*
|
|
19
24
|
* Semantic `variant` adds a colored left accent + tinted icon + default icon when none provided.
|
|
25
|
+
*
|
|
26
|
+
* @part toast - Tarjeta del toast.
|
|
27
|
+
* @part track - Riel de la barra de progreso (`progress`).
|
|
28
|
+
* @part fill - Relleno de la barra de progreso.
|
|
20
29
|
*/
|
|
21
30
|
export class CoToast {
|
|
22
31
|
constructor() {
|
|
@@ -76,8 +85,8 @@ export class CoToast {
|
|
|
76
85
|
'co-toast--progress': hasProgress,
|
|
77
86
|
'co-toast--in': this.entered,
|
|
78
87
|
};
|
|
79
|
-
const content = (h("div", { key: '
|
|
80
|
-
return (h("div", { key: '
|
|
88
|
+
const content = (h("div", { key: '77bab740efb16eb862d74d3a072baa0399ac5cdc', class: "co-toast__content" }, h("span", { key: '5677e36f94c873b634e211aa7918ed44ace21b34', class: "co-toast__message" }, this.message), hasDescription && (h("span", { key: 'ca564a3e80564ac91a260d288f38a2ce28db66bb', class: "co-toast__description" }, this.description))));
|
|
89
|
+
return (h("div", { key: 'd065c88d1d5e6465dab56a2fd59849051e0682d8', class: rootClass, part: "toast", role: role }, (drawsCheck || resolvedIcon) && (h("span", { key: 'ee73223250c29067ee3e1a40140a3f8ef44aed4f', class: "co-toast__icon" }, resolvedIcon ? (h("co-icon", { name: resolvedIcon, size: 20 })) : (h("svg", { class: "co-toast__check", viewBox: "0 0 16 16", width: "20", height: "20", "aria-hidden": "true" }, h("path", { d: "M3.5 8.5l3 3 6-6.5", pathLength: "1", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("div", { key: '5aad9debc4e7b0a319e50b0f75ef10ac0b903a73', class: "co-toast__body" }, hasProgress ? (h("div", { class: "co-toast__progress" }, h("div", { class: "co-toast__progress-header" }, content, h("span", { class: "co-toast__percent" }, clampedProgress, "%")), h("div", { class: "co-toast__track", part: "track", role: "progressbar", "aria-valuenow": clampedProgress, "aria-valuemin": 0, "aria-valuemax": 100 }, h("span", { class: "co-toast__fill", part: "fill", style: { width: `${clampedProgress}%` } })))) : (content), isStacked && (h("div", { key: 'f7b7332e1dd67f2f4b1a2d5b97785f8f9593f14f', class: "co-toast__actions" }, h("slot", { key: 'c4238c8ee27dc2211419f0c8af77021cb7a35ec2', name: "action" })))), !isStacked && (h("div", { key: '06b844a254ecd51dcb21c9cf84f2a7e5094a08bc', class: "co-toast__actions" }, h("slot", { key: 'c15f765d10ae12b38d081f3ad4b403c98ecd54c5', name: "action" }))), this.dismissible && (h("button", { key: '52482f3d953e68c7b6108bdedb889aa136739316', class: "co-toast__dismiss", type: "button", "aria-label": "Dismiss", onClick: () => this.coDismiss.emit() }, h("co-icon", { key: '9c92e6bcc6ef0bc346a1f9104d382af5bf50c3a6', name: "x", size: 16 })))));
|
|
81
90
|
}
|
|
82
91
|
static get is() { return "co-toast"; }
|
|
83
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -180,7 +189,7 @@ export class CoToast {
|
|
|
180
189
|
"references": {
|
|
181
190
|
"CoToastActionsLayout": {
|
|
182
191
|
"location": "local",
|
|
183
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
192
|
+
"path": "/Users/agox/worktrees/cobalt-docs-2026-09-24/packages/core/src/components/co-toast/co-toast.tsx",
|
|
184
193
|
"id": "src/components/co-toast/co-toast.tsx::CoToastActionsLayout"
|
|
185
194
|
}
|
|
186
195
|
}
|
|
@@ -206,7 +215,7 @@ export class CoToast {
|
|
|
206
215
|
"references": {
|
|
207
216
|
"CoToastVariant": {
|
|
208
217
|
"location": "local",
|
|
209
|
-
"path": "/Users/agox/worktrees/cobalt-
|
|
218
|
+
"path": "/Users/agox/worktrees/cobalt-docs-2026-09-24/packages/core/src/components/co-toast/co-toast.tsx",
|
|
210
219
|
"id": "src/components/co-toast/co-toast.tsx::CoToastVariant"
|
|
211
220
|
}
|
|
212
221
|
}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
/* co-toggle-button */
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* @prop --co-toggle-button-width: Ancho del botón (default auto); útil para pastillas de ancho fijo.
|
|
5
|
+
* @prop --co-toggle-button-radius: Radio del botón (default según la talla); se sobrescribe sobre el elemento.
|
|
6
|
+
*/
|
|
7
|
+
|
|
3
8
|
:host {
|
|
4
9
|
display: inline-flex;
|
|
5
10
|
/* Squircle radius, size-aware — mirrors co-button shape="square".
|
|
@@ -74,6 +79,42 @@
|
|
|
74
79
|
cursor: not-allowed;
|
|
75
80
|
}
|
|
76
81
|
|
|
82
|
+
/* Anillo de foco por teclado (m-18). Antes no había NINGUNA regla de foco acá y
|
|
83
|
+
tampoco hay reset global de `outline`, así que al tabular caía el anillo del
|
|
84
|
+
navegador.
|
|
85
|
+
|
|
86
|
+
Va POR DENTRO de la pastilla (`outline-offset` negativo: el anillo ocupa de 1
|
|
87
|
+
a 3px hacia adentro, justo después del borde). En el grupo `connected` —el
|
|
88
|
+
default— las pastillas se tocan (`margin-left: -1px` del grupo) y cada una es
|
|
89
|
+
su propio stacking context (`backdrop-filter`): un anillo que sale del borde
|
|
90
|
+
queda tapado por la vecina siguiente. Subirle el `z-index` no alcanza —
|
|
91
|
+
verificado en Chromium—: sobre una vecina seleccionada, que es negra, un
|
|
92
|
+
anillo oscuro se pierde igual y queda una "C" abierta. Por dentro no toca a
|
|
93
|
+
nadie, y se cierra en los cuatro lados en las tres variantes.
|
|
94
|
+
|
|
95
|
+
Color: la tinta del tema (`--co-semantic-text-default`: negro en claro,
|
|
96
|
+
blanco en oscuro), bastante más contraste que el azul nativo al que
|
|
97
|
+
reemplaza (~16:1 contra ~6:1 sobre blanco). En la pastilla SELECCIONADA
|
|
98
|
+
toma la tinta de la propia pastilla (`currentColor`), porque su superficie
|
|
99
|
+
puede ser inversa (negra en `connected`) y su texto, por diseño, se lee
|
|
100
|
+
sobre ella. Esa regla pesa lo mismo (0,2,0) que la base y va después.
|
|
101
|
+
|
|
102
|
+
Por `outline` y no por `box-shadow`: `outline` no lo escribe ninguna
|
|
103
|
+
variante, mientras que `:host([variant='track']) .co-toggle-button` (0,3,0)
|
|
104
|
+
pone `box-shadow: none` en todas las pastillas de `track`.
|
|
105
|
+
|
|
106
|
+
`:focus-visible` y no `:focus`: el clic con el mouse no lo enciende. Lo fija
|
|
107
|
+
`co-toggle-button.css.test.ts`, que además impide que una variante o estado
|
|
108
|
+
lo apague o lo saque del borde. */
|
|
109
|
+
.co-toggle-button:focus-visible {
|
|
110
|
+
outline: 2px solid var(--co-semantic-text-default);
|
|
111
|
+
outline-offset: -3px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.co-toggle-button--selected:focus-visible {
|
|
115
|
+
outline-color: currentColor;
|
|
116
|
+
}
|
|
117
|
+
|
|
77
118
|
.co-toggle-button__label {
|
|
78
119
|
line-height: 1;
|
|
79
120
|
}
|
|
@@ -125,3 +166,68 @@
|
|
|
125
166
|
background: var(--co-semantic-surface-page);
|
|
126
167
|
border-color: var(--co-toggle-pill-border, var(--co-semantic-border-default));
|
|
127
168
|
}
|
|
169
|
+
|
|
170
|
+
/* Track + xs — pastilla más compacta (Task C7): mayor especificidad que las
|
|
171
|
+
reglas [variant='track'] de arriba, así que gana sin importar el orden.
|
|
172
|
+
Geometría (alto/radio) aplica a ambos estados; el color va en una regla
|
|
173
|
+
aparte acotada con :not(--selected) — sin esa exclusión, esta clase de
|
|
174
|
+
selector (0,4,0) le gana en especificidad a :host([variant='track'])
|
|
175
|
+
.co-toggle-button--selected (0,3,0) y pisaría el color del texto activo;
|
|
176
|
+
hoy "funcionaba" solo porque text-default y base-negro resuelven al mismo
|
|
177
|
+
hex (ver fix round 1 de code review). */
|
|
178
|
+
/* Los knobs publicados en 0.10.1 (--co-toggle-pill-height/-radius/-shadow,
|
|
179
|
+
ver arriba) siguen mandando también en xs: el valor compacto es solo su
|
|
180
|
+
fallback. Sin knobs, la pastilla xs es exactamente la de Task C7. */
|
|
181
|
+
:host([variant='track'][size='xs']) .co-toggle-button {
|
|
182
|
+
height: var(--co-toggle-pill-height, 20px);
|
|
183
|
+
border-radius: var(--co-toggle-pill-radius, var(--co-border-radius-xxs));
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
:host([variant='track'][size='xs']) .co-toggle-button:not(.co-toggle-button--selected) {
|
|
187
|
+
color: var(--co-semantic-text-default);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
:host([variant='track'][size='xs']) .co-toggle-button.co-toggle-button--icon-only {
|
|
191
|
+
width: 20px;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
:host([variant='track'][size='xs']) .co-toggle-button--selected {
|
|
195
|
+
box-shadow: var(--co-toggle-pill-shadow, none);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Soft variant — chip separado, --co-semantic-surface-control sólido; seleccionado usa el par
|
|
199
|
+
celeste-100/primary-azul. El border-radius shorthand de acá gana sobre las
|
|
200
|
+
longhands por-esquina que el grupo setea para achatar la costura del
|
|
201
|
+
'connected' (misma técnica que 'track' ya usa arriba). */
|
|
202
|
+
:host([variant='soft']) .co-toggle-button {
|
|
203
|
+
height: 24px;
|
|
204
|
+
border-radius: var(--co-border-radius-xxs);
|
|
205
|
+
border-color: transparent;
|
|
206
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
207
|
+
color: var(--co-semantic-text-default);
|
|
208
|
+
font-size: var(--co-font-size-12);
|
|
209
|
+
font-weight: var(--co-font-weight-regular);
|
|
210
|
+
/* El diseño pide el contenido a 8px del borde de la pastilla. El borde de
|
|
211
|
+
1px de `.co-toggle-button` sigue existiendo —`soft` solo lo vuelve
|
|
212
|
+
transparente, para que la caja mida lo mismo con y sin variante— y con
|
|
213
|
+
`box-sizing: border-box` SUMA al inset: con `padding: 0 8px` el texto
|
|
214
|
+
arrancaba a 9px. Se descuenta el borde del padding: 1 + 7 = 8. */
|
|
215
|
+
padding: 0 calc(var(--co-spacing-sm2) - 1px);
|
|
216
|
+
gap: var(--co-spacing-sm2);
|
|
217
|
+
-webkit-backdrop-filter: none;
|
|
218
|
+
backdrop-filter: none;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:host([variant='soft']) .co-toggle-button:hover:not(:disabled) {
|
|
222
|
+
background: var(--co-semantic-surface-control, #f6f6f6);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
:host([variant='soft']) .co-toggle-button--selected {
|
|
226
|
+
background: var(--co-color-celeste-100);
|
|
227
|
+
color: var(--co-color-primary-azul);
|
|
228
|
+
border-color: transparent;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
:host([variant='soft']) .co-toggle-button--selected:hover:not(:disabled) {
|
|
232
|
+
background: var(--co-color-celeste-100);
|
|
233
|
+
}
|
|
@@ -1,12 +1,46 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/** Tallas que entiende este botón. El grupo puede traer una fuera de esta
|
|
3
|
+
* lista (el host usa `<co-toggle-button-group size="sm">`): nunca se adopta. */
|
|
4
|
+
const SIZES = new Set(['l', 'm', 's', 'xs']);
|
|
5
|
+
/** true SOLO para `variant="soft"` (cualquier talla) o `variant="track"` +
|
|
6
|
+
* `size="xs"` — las combinaciones nuevas de la Fase 2 Cobalt — y con una talla
|
|
7
|
+
* dentro de la unión. Fuera de eso el botón ignora la talla del grupo, como
|
|
8
|
+
* siempre lo hizo (aditivo: los usos actuales del host quedan intactos). */
|
|
9
|
+
const groupSizeApplies = (variant, size) => SIZES.has(size !== null && size !== void 0 ? size : '') && (variant === 'soft' || (variant === 'track' && size === 'xs'));
|
|
10
|
+
/**
|
|
11
|
+
* co-toggle-button — pastilla de un `co-toggle-button-group`.
|
|
12
|
+
* Wrapper Vue: `CoToggleButton` de `@prolibu-suite/cobalt-vue`.
|
|
13
|
+
*
|
|
14
|
+
* @part button - El `<button>` interno. El hook para lo que el CSS deja
|
|
15
|
+
* hardcodeado y no tiene prop, empezando por su
|
|
16
|
+
* `justify-content: center`: `::part(button) { justify-content:
|
|
17
|
+
* flex-start }` alinea el contenido a la izquierda sin tener que
|
|
18
|
+
* mover el texto a un slot.
|
|
19
|
+
* @slot leading - Contenido propio antes del label (logos a color, banderas):
|
|
20
|
+
* lo espacia el mismo `gap` que a `iconLeft`.
|
|
21
|
+
*/
|
|
2
22
|
export class CoToggleButton {
|
|
3
23
|
constructor() {
|
|
24
|
+
/** Activado (reflejado). El click lo invierte; dentro de un `co-toggle-button-group` lo coordina el grupo. */
|
|
4
25
|
this.selected = false;
|
|
26
|
+
/** Valor que identifica al botón dentro de su grupo y que viaja en `coToggle`. */
|
|
5
27
|
this.value = '';
|
|
28
|
+
/** Talla del botón. Si no se indica (ni atributo ni propiedad) y el botón
|
|
29
|
+
* está dentro de un `co-toggle-button-group` con `variant="soft"` (cualquier
|
|
30
|
+
* talla) o `variant="track"` + `size="xs"`, adopta la talla del grupo al
|
|
31
|
+
* montarse — la lee el propio botón en `componentWillLoad`, ver
|
|
32
|
+
* `adoptGroupSize()`. Un `size` propio siempre manda. En cualquier otra
|
|
33
|
+
* combinación (`connected`, `track` con `l|m|s`, o una talla fuera de
|
|
34
|
+
* `l|m|s|xs`) el grupo no influye, exactamente como antes. La talla se
|
|
35
|
+
* adopta UNA vez, al montar: cambiar después el `size` del grupo no
|
|
36
|
+
* re-talla a los botones ya montados (el editor lo fija estáticamente). */
|
|
6
37
|
this.size = 'm';
|
|
38
|
+
/** Deshabilita el botón. */
|
|
7
39
|
this.disabled = false;
|
|
8
40
|
/** Visual variant. 'track' renders the button as a detached rounded pill for a
|
|
9
|
-
* sunken toggle-button-group track.
|
|
41
|
+
* sunken toggle-button-group track. 'soft' renders it as a separated gray-100
|
|
42
|
+
* chip whose selected state uses the celeste-100/primary-azul accent pair.
|
|
43
|
+
* Normally set by the parent group. */
|
|
10
44
|
this.variant = 'connected';
|
|
11
45
|
this.handleClick = () => {
|
|
12
46
|
if (this.disabled)
|
|
@@ -15,16 +49,57 @@ export class CoToggleButton {
|
|
|
15
49
|
this.coToggle.emit({ value: this.value, selected: this.selected });
|
|
16
50
|
};
|
|
17
51
|
}
|
|
52
|
+
componentWillLoad() {
|
|
53
|
+
this.adoptGroupSize();
|
|
54
|
+
}
|
|
55
|
+
/** Adopta la talla del grupo contenedor en las combinaciones nuevas de la
|
|
56
|
+
* Fase 2 (`soft`, o `track` + `xs`) SOLO si este botón no trae `size`
|
|
57
|
+
* propio. Vive en el hijo y corre ANTES del primer render a propósito:
|
|
58
|
+
* `size` es `reflect: true`, así que en el primer render Stencil escribe el
|
|
59
|
+
* default `m` como atributo del host — y ese render ocurre antes del
|
|
60
|
+
* `componentDidLoad` del grupo. Propagar desde el grupo (versión anterior,
|
|
61
|
+
* chequeaba `hasAttribute('size')` en el hijo) nunca actuaba en el browser:
|
|
62
|
+
* a esa altura el atributo ya estaba y no se puede distinguir un `m`
|
|
63
|
+
* explícito de uno reflejado. Los specs en jsdom no lo detectaban porque
|
|
64
|
+
* `@stencil/vitest` no siembra el default de un class-field `@Prop`. */
|
|
65
|
+
adoptGroupSize() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
// Un `size` propio manda: como atributo (el default todavía no se reflejó)
|
|
68
|
+
// o como propiedad distinta del default (`undefined` cuenta como ausente).
|
|
69
|
+
const explicitSize = this.el.hasAttribute('size') || (this.size != null && this.size !== 'm');
|
|
70
|
+
if (explicitSize)
|
|
71
|
+
return;
|
|
72
|
+
const grupo = this.el.closest('co-toggle-button-group');
|
|
73
|
+
if (!grupo)
|
|
74
|
+
return;
|
|
75
|
+
// Si el grupo ya está upgradeado responden sus @Prop (el `size` del grupo no
|
|
76
|
+
// se refleja, así que la propiedad es la única fuente cuando lo setea un
|
|
77
|
+
// framework); si todavía no, quedan los atributos del markup.
|
|
78
|
+
const variant = (_a = grupo.variant) !== null && _a !== void 0 ? _a : grupo.getAttribute('variant');
|
|
79
|
+
const size = (_b = grupo.size) !== null && _b !== void 0 ? _b : grupo.getAttribute('size');
|
|
80
|
+
if (groupSizeApplies(variant, size))
|
|
81
|
+
this.size = size;
|
|
82
|
+
}
|
|
18
83
|
render() {
|
|
19
|
-
|
|
84
|
+
// 'track' ignoraba el size y siempre usaba 18 — xs ahora tiene su propia
|
|
85
|
+
// pastilla compacta (Task C7), el resto de tamaños de track no cambia.
|
|
86
|
+
const iconSize = this.variant === 'track'
|
|
87
|
+
? this.size === 'xs' ? 14 : 18
|
|
88
|
+
: this.size === 'l' ? 20 : this.size === 'xs' ? 14 : 16;
|
|
20
89
|
const iconWeight = this.selected && this.selectedIconWeight ? this.selectedIconWeight : undefined;
|
|
21
|
-
return (h("button", { key: '
|
|
90
|
+
return (h("button", { key: 'a0b0aa7d128e4ee66a91a223851b126684d8e997',
|
|
91
|
+
/* El `<button>` vive en shadow DOM: sin `part` el consumidor no podía
|
|
92
|
+
tocarlo desde afuera — ni su `justify-content: center`, que está
|
|
93
|
+
hardcodeado en el CSS (el editor terminó moviendo el texto a un slot
|
|
94
|
+
solo para alinearlo a la izquierda). `::part(button)` es el hook.
|
|
95
|
+
Aditivo: ni el render ni el CSS cambian. */
|
|
96
|
+
part: "button", class: {
|
|
22
97
|
'co-toggle-button': true,
|
|
23
98
|
'co-toggle-button--selected': this.selected,
|
|
24
99
|
[`co-toggle-button--${this.size}`]: true,
|
|
25
100
|
'co-toggle-button--disabled': this.disabled,
|
|
26
101
|
'co-toggle-button--icon-only': !this.label && (!!this.iconLeft || !!this.iconRight),
|
|
27
|
-
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: '
|
|
102
|
+
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: 'd683a91a68fb3820a01b8bd91dc3b81b8d8994f0', name: "leading" }), this.iconLeft && h("co-icon", { key: '6894633951caa68a614824af931a33dc46a552ab', name: this.iconLeft, size: iconSize, weight: iconWeight }), this.label && h("span", { key: '96d902f0f28a8ea8a810425cf775ff6a9437be4d', class: "co-toggle-button__label" }, this.label), this.iconRight && h("co-icon", { key: '4e5db3f34af24fffce2ec95e4a7767c82768db39', name: this.iconRight, size: iconSize, weight: iconWeight })));
|
|
28
103
|
}
|
|
29
104
|
static get is() { return "co-toggle-button"; }
|
|
30
105
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +127,7 @@ export class CoToggleButton {
|
|
|
52
127
|
"optional": false,
|
|
53
128
|
"docs": {
|
|
54
129
|
"tags": [],
|
|
55
|
-
"text": ""
|
|
130
|
+
"text": "Activado (reflejado). El click lo invierte; dentro de un `co-toggle-button-group` lo coordina el grupo."
|
|
56
131
|
},
|
|
57
132
|
"getter": false,
|
|
58
133
|
"setter": false,
|
|
@@ -72,7 +147,7 @@ export class CoToggleButton {
|
|
|
72
147
|
"optional": false,
|
|
73
148
|
"docs": {
|
|
74
149
|
"tags": [],
|
|
75
|
-
"text": ""
|
|
150
|
+
"text": "Valor que identifica al bot\u00F3n dentro de su grupo y que viaja en `coToggle`."
|
|
76
151
|
},
|
|
77
152
|
"getter": false,
|
|
78
153
|
"setter": false,
|
|
@@ -92,7 +167,7 @@ export class CoToggleButton {
|
|
|
92
167
|
"optional": true,
|
|
93
168
|
"docs": {
|
|
94
169
|
"tags": [],
|
|
95
|
-
"text": ""
|
|
170
|
+
"text": "Texto del bot\u00F3n."
|
|
96
171
|
},
|
|
97
172
|
"getter": false,
|
|
98
173
|
"setter": false,
|
|
@@ -111,7 +186,7 @@ export class CoToggleButton {
|
|
|
111
186
|
"optional": true,
|
|
112
187
|
"docs": {
|
|
113
188
|
"tags": [],
|
|
114
|
-
"text": ""
|
|
189
|
+
"text": "\u00CDcono Phosphor antes del texto."
|
|
115
190
|
},
|
|
116
191
|
"getter": false,
|
|
117
192
|
"setter": false,
|
|
@@ -130,7 +205,7 @@ export class CoToggleButton {
|
|
|
130
205
|
"optional": true,
|
|
131
206
|
"docs": {
|
|
132
207
|
"tags": [],
|
|
133
|
-
"text": ""
|
|
208
|
+
"text": "\u00CDcono Phosphor despu\u00E9s del texto."
|
|
134
209
|
},
|
|
135
210
|
"getter": false,
|
|
136
211
|
"setter": false,
|
|
@@ -149,7 +224,7 @@ export class CoToggleButton {
|
|
|
149
224
|
"optional": false,
|
|
150
225
|
"docs": {
|
|
151
226
|
"tags": [],
|
|
152
|
-
"text": ""
|
|
227
|
+
"text": "Talla del bot\u00F3n. Si no se indica (ni atributo ni propiedad) y el bot\u00F3n\nest\u00E1 dentro de un `co-toggle-button-group` con `variant=\"soft\"` (cualquier\ntalla) o `variant=\"track\"` + `size=\"xs\"`, adopta la talla del grupo al\nmontarse \u2014 la lee el propio bot\u00F3n en `componentWillLoad`, ver\n`adoptGroupSize()`. Un `size` propio siempre manda. En cualquier otra\ncombinaci\u00F3n (`connected`, `track` con `l|m|s`, o una talla fuera de\n`l|m|s|xs`) el grupo no influye, exactamente como antes. La talla se\nadopta UNA vez, al montar: cambiar despu\u00E9s el `size` del grupo no\nre-talla a los botones ya montados (el editor lo fija est\u00E1ticamente)."
|
|
153
228
|
},
|
|
154
229
|
"getter": false,
|
|
155
230
|
"setter": false,
|
|
@@ -169,7 +244,7 @@ export class CoToggleButton {
|
|
|
169
244
|
"optional": false,
|
|
170
245
|
"docs": {
|
|
171
246
|
"tags": [],
|
|
172
|
-
"text": ""
|
|
247
|
+
"text": "Deshabilita el bot\u00F3n."
|
|
173
248
|
},
|
|
174
249
|
"getter": false,
|
|
175
250
|
"setter": false,
|
|
@@ -181,15 +256,15 @@ export class CoToggleButton {
|
|
|
181
256
|
"type": "string",
|
|
182
257
|
"mutable": false,
|
|
183
258
|
"complexType": {
|
|
184
|
-
"original": "'connected' | 'track'",
|
|
185
|
-
"resolved": "\"connected\" | \"track\"",
|
|
259
|
+
"original": "'connected' | 'track' | 'soft'",
|
|
260
|
+
"resolved": "\"connected\" | \"soft\" | \"track\"",
|
|
186
261
|
"references": {}
|
|
187
262
|
},
|
|
188
263
|
"required": false,
|
|
189
264
|
"optional": false,
|
|
190
265
|
"docs": {
|
|
191
266
|
"tags": [],
|
|
192
|
-
"text": "Visual variant. 'track' renders the button as a detached rounded pill for a\nsunken toggle-button-group track.
|
|
267
|
+
"text": "Visual variant. 'track' renders the button as a detached rounded pill for a\nsunken toggle-button-group track. 'soft' renders it as a separated gray-100\nchip whose selected state uses the celeste-100/primary-azul accent pair.\nNormally set by the parent group."
|
|
193
268
|
},
|
|
194
269
|
"getter": false,
|
|
195
270
|
"setter": false,
|
|
@@ -227,7 +302,7 @@ export class CoToggleButton {
|
|
|
227
302
|
"composed": true,
|
|
228
303
|
"docs": {
|
|
229
304
|
"tags": [],
|
|
230
|
-
"text": ""
|
|
305
|
+
"text": "Click en el bot\u00F3n: `{ value, selected }` con el estado nuevo."
|
|
231
306
|
},
|
|
232
307
|
"complexType": {
|
|
233
308
|
"original": "{ value: string; selected: boolean }",
|
|
@@ -236,4 +311,5 @@ export class CoToggleButton {
|
|
|
236
311
|
}
|
|
237
312
|
}];
|
|
238
313
|
}
|
|
314
|
+
static get elementRef() { return "el"; }
|
|
239
315
|
}
|
|
@@ -103,3 +103,24 @@
|
|
|
103
103
|
.co-toggle-button-group--track ::slotted(co-toggle-button) {
|
|
104
104
|
margin: 0 !important;
|
|
105
105
|
}
|
|
106
|
+
|
|
107
|
+
/* Track + xs — pista más compacta (Task C7); la pastilla ajusta su propio
|
|
108
|
+
alto/radio/ícono en co-toggle-button[variant='track'][size='xs']. Los knobs
|
|
109
|
+
de la pista (0.10.1) siguen mandando en xs: lo compacto es su fallback. */
|
|
110
|
+
.co-toggle-button-group--track.co-toggle-button-group--xs {
|
|
111
|
+
gap: var(--co-toggle-track-gap, var(--co-spacing-xxs));
|
|
112
|
+
padding: var(--co-toggle-track-padding, var(--co-spacing-xxs));
|
|
113
|
+
border-radius: var(--co-toggle-track-radius, var(--co-border-radius-xxs));
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Soft variant — chips separados con gap fijo; el fondo/radio/estado
|
|
117
|
+
'selected' de cada botón vive en co-toggle-button[variant='soft'] (misma
|
|
118
|
+
técnica que 'track': un override de mayor especificidad ahí gana sobre el
|
|
119
|
+
achatado de esquinas seam-collapse de --row/--column de acá abajo). */
|
|
120
|
+
.co-toggle-button-group--soft {
|
|
121
|
+
gap: var(--co-spacing-sm2);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.co-toggle-button-group--soft ::slotted(co-toggle-button) {
|
|
125
|
+
margin: 0 !important;
|
|
126
|
+
}
|
|
@@ -1,17 +1,42 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
/**
|
|
3
|
+
* Grupo de `co-toggle-button` que coordina la selección: única (default) o
|
|
4
|
+
* `multiple`. `variant` elige el estilo (`connected`, `track`, `soft`) y se
|
|
5
|
+
* propaga a los botones. Wrapper Vue: `CoToggleButtonGroup` de
|
|
6
|
+
* `@prolibu-suite/cobalt-vue`.
|
|
7
|
+
*/
|
|
2
8
|
export class CoToggleButtonGroup {
|
|
3
9
|
constructor() {
|
|
4
10
|
/** Current selected value(s). Single string or JSON array for multiple. */
|
|
5
11
|
this.value = '';
|
|
12
|
+
/** Selección múltiple: `value` y `coChange` llevan un array de valores. */
|
|
6
13
|
this.multiple = false;
|
|
14
|
+
/** Talla del grupo. El grupo NO la empuja a sus hijos: cada `co-toggle-button`
|
|
15
|
+
* sin `size` propio la LEE al montarse (`componentWillLoad`, antes de su
|
|
16
|
+
* primer render) y la adopta SOLO en las combinaciones compactas del editor
|
|
17
|
+
* — `variant="soft"` (cualquier talla) o `variant="track"` +
|
|
18
|
+
* `size="xs"` — y nunca con un valor fuera de la unión del hijo (`l|m|s|xs`).
|
|
19
|
+
* Fuera de eso los hijos la ignoran, como siempre: el host ya usa
|
|
20
|
+
* `size="sm"` (fuera de la unión) y `size="s"` con la variante default, y
|
|
21
|
+
* esos casos quedan intactos (aditivo). Por qué lo lee el hijo y no lo
|
|
22
|
+
* empuja el grupo: `size` del hijo es `reflect: true` y su primer render —
|
|
23
|
+
* que escribe el default `m` como atributo — ocurre ANTES del
|
|
24
|
+
* `componentDidLoad` del grupo, así que el grupo ya no puede distinguir un
|
|
25
|
+
* `m` explícito de uno reflejado. Consecuencia: se adopta una vez, al
|
|
26
|
+
* montar; cambiar `size` del grupo después no re-talla a los hijos ya
|
|
27
|
+
* montados (aquí solo actualiza la clase `--xs` de la pista). */
|
|
7
28
|
this.size = 'm';
|
|
29
|
+
/** Deshabilita todos los botones del grupo. */
|
|
8
30
|
this.disabled = false;
|
|
31
|
+
/** Disposición de los botones: `row` (default) o `column`. */
|
|
9
32
|
this.direction = 'row';
|
|
10
33
|
/** Stretch the group to fill its container; each button shares the width equally. */
|
|
11
34
|
this.fullWidth = false;
|
|
12
35
|
/** 'connected' (default) keeps the seamless dark-fill segmented control.
|
|
13
36
|
* 'track' turns the group into a sunken gray track carrying detached rounded
|
|
14
|
-
* pills (white + shadow when selected) — e.g. an icon-only view toggle.
|
|
37
|
+
* pills (white + shadow when selected) — e.g. an icon-only view toggle.
|
|
38
|
+
* 'soft' separates each button into its own gray-100 chip (gap between them);
|
|
39
|
+
* the selected chip gets the celeste-100/primary-azul accent pair. */
|
|
15
40
|
this.variant = 'connected';
|
|
16
41
|
}
|
|
17
42
|
get selectedValues() {
|
|
@@ -56,6 +81,8 @@ export class CoToggleButtonGroup {
|
|
|
56
81
|
}
|
|
57
82
|
this.updateChildStates();
|
|
58
83
|
}
|
|
84
|
+
/** Sincroniza `selected` y `variant` en los hijos. `size` NO se toca acá a
|
|
85
|
+
* propósito: lo adopta cada hijo al montarse (ver doc del @Prop `size`). */
|
|
59
86
|
updateChildStates() {
|
|
60
87
|
const sel = this.selectedValues;
|
|
61
88
|
const children = this.el.querySelectorAll('co-toggle-button');
|
|
@@ -65,13 +92,16 @@ export class CoToggleButtonGroup {
|
|
|
65
92
|
});
|
|
66
93
|
}
|
|
67
94
|
render() {
|
|
68
|
-
return (h("div", { key: '
|
|
95
|
+
return (h("div", { key: '876d581e3c53b790f1e89ba3917325ccc7b5e8ba', class: {
|
|
69
96
|
'co-toggle-button-group': true,
|
|
70
97
|
[`co-toggle-button-group--${this.direction}`]: true,
|
|
71
98
|
[`co-toggle-button-group--${this.variant}`]: true,
|
|
99
|
+
/* Solo 'xs' recibe clase propia por ahora (Task C7: track+xs más
|
|
100
|
+
compacto); l/m/s no cambian el default. */
|
|
101
|
+
'co-toggle-button-group--xs': this.size === 'xs',
|
|
72
102
|
'co-toggle-button-group--disabled': this.disabled,
|
|
73
103
|
'co-toggle-button-group--full': this.fullWidth,
|
|
74
|
-
}, role: "group" }, h("slot", { key: '
|
|
104
|
+
}, role: "group" }, h("slot", { key: '9e791ede02a818a5fbe0bf571cc185cc3ea609a6' })));
|
|
75
105
|
}
|
|
76
106
|
static get is() { return "co-toggle-button-group"; }
|
|
77
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -119,7 +149,7 @@ export class CoToggleButtonGroup {
|
|
|
119
149
|
"optional": false,
|
|
120
150
|
"docs": {
|
|
121
151
|
"tags": [],
|
|
122
|
-
"text": ""
|
|
152
|
+
"text": "Selecci\u00F3n m\u00FAltiple: `value` y `coChange` llevan un array de valores."
|
|
123
153
|
},
|
|
124
154
|
"getter": false,
|
|
125
155
|
"setter": false,
|
|
@@ -139,7 +169,7 @@ export class CoToggleButtonGroup {
|
|
|
139
169
|
"optional": false,
|
|
140
170
|
"docs": {
|
|
141
171
|
"tags": [],
|
|
142
|
-
"text": ""
|
|
172
|
+
"text": "Talla del grupo. El grupo NO la empuja a sus hijos: cada `co-toggle-button`\nsin `size` propio la LEE al montarse (`componentWillLoad`, antes de su\nprimer render) y la adopta SOLO en las combinaciones compactas del editor\n\u2014 `variant=\"soft\"` (cualquier talla) o `variant=\"track\"` +\n`size=\"xs\"` \u2014 y nunca con un valor fuera de la uni\u00F3n del hijo (`l|m|s|xs`).\nFuera de eso los hijos la ignoran, como siempre: el host ya usa\n`size=\"sm\"` (fuera de la uni\u00F3n) y `size=\"s\"` con la variante default, y\nesos casos quedan intactos (aditivo). Por qu\u00E9 lo lee el hijo y no lo\nempuja el grupo: `size` del hijo es `reflect: true` y su primer render \u2014\nque escribe el default `m` como atributo \u2014 ocurre ANTES del\n`componentDidLoad` del grupo, as\u00ED que el grupo ya no puede distinguir un\n`m` expl\u00EDcito de uno reflejado. Consecuencia: se adopta una vez, al\nmontar; cambiar `size` del grupo despu\u00E9s no re-talla a los hijos ya\nmontados (aqu\u00ED solo actualiza la clase `--xs` de la pista)."
|
|
143
173
|
},
|
|
144
174
|
"getter": false,
|
|
145
175
|
"setter": false,
|
|
@@ -159,7 +189,7 @@ export class CoToggleButtonGroup {
|
|
|
159
189
|
"optional": false,
|
|
160
190
|
"docs": {
|
|
161
191
|
"tags": [],
|
|
162
|
-
"text": ""
|
|
192
|
+
"text": "Deshabilita todos los botones del grupo."
|
|
163
193
|
},
|
|
164
194
|
"getter": false,
|
|
165
195
|
"setter": false,
|
|
@@ -179,7 +209,7 @@ export class CoToggleButtonGroup {
|
|
|
179
209
|
"optional": false,
|
|
180
210
|
"docs": {
|
|
181
211
|
"tags": [],
|
|
182
|
-
"text": ""
|
|
212
|
+
"text": "Disposici\u00F3n de los botones: `row` (default) o `column`."
|
|
183
213
|
},
|
|
184
214
|
"getter": false,
|
|
185
215
|
"setter": false,
|
|
@@ -211,15 +241,15 @@ export class CoToggleButtonGroup {
|
|
|
211
241
|
"type": "string",
|
|
212
242
|
"mutable": false,
|
|
213
243
|
"complexType": {
|
|
214
|
-
"original": "'connected' | 'track'",
|
|
215
|
-
"resolved": "\"connected\" | \"track\"",
|
|
244
|
+
"original": "'connected' | 'track' | 'soft'",
|
|
245
|
+
"resolved": "\"connected\" | \"soft\" | \"track\"",
|
|
216
246
|
"references": {}
|
|
217
247
|
},
|
|
218
248
|
"required": false,
|
|
219
249
|
"optional": false,
|
|
220
250
|
"docs": {
|
|
221
251
|
"tags": [],
|
|
222
|
-
"text": "'connected' (default) keeps the seamless dark-fill segmented control.\n'track' turns the group into a sunken gray track carrying detached rounded\npills (white + shadow when selected) \u2014 e.g. an icon-only view toggle."
|
|
252
|
+
"text": "'connected' (default) keeps the seamless dark-fill segmented control.\n'track' turns the group into a sunken gray track carrying detached rounded\npills (white + shadow when selected) \u2014 e.g. an icon-only view toggle.\n'soft' separates each button into its own gray-100 chip (gap between them);\nthe selected chip gets the celeste-100/primary-azul accent pair."
|
|
223
253
|
},
|
|
224
254
|
"getter": false,
|
|
225
255
|
"setter": false,
|
|
@@ -238,7 +268,7 @@ export class CoToggleButtonGroup {
|
|
|
238
268
|
"composed": true,
|
|
239
269
|
"docs": {
|
|
240
270
|
"tags": [],
|
|
241
|
-
"text": ""
|
|
271
|
+
"text": "Cambi\u00F3 la selecci\u00F3n (`value` ya est\u00E1 actualizado): el valor elegido, o el array en `multiple`."
|
|
242
272
|
},
|
|
243
273
|
"complexType": {
|
|
244
274
|
"original": "string | string[]",
|