@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
|
@@ -33,17 +33,31 @@ const caretAfterSignificant = (text, count) => {
|
|
|
33
33
|
}
|
|
34
34
|
return text.length;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* Campo numérico con botones −/+, flechas del teclado para escalonar, límites
|
|
38
|
+
* `min`/`max` y formatos de tasa, porcentaje o monto. Wrapper Vue:
|
|
39
|
+
* `CoNumberField` de `@prolibu-suite/cobalt-vue`.
|
|
40
|
+
*
|
|
41
|
+
* @part row - Fila del campo: input y botones −/+.
|
|
42
|
+
* @part input - El `<input>` nativo.
|
|
43
|
+
*/
|
|
36
44
|
export class CoNumberField {
|
|
37
45
|
constructor() {
|
|
38
46
|
/** Whether the field is required (renders a required marker on the label). */
|
|
39
47
|
this.required = false;
|
|
40
48
|
/** Label layout: vertical (label above) or horizontal (label beside) */
|
|
41
49
|
this.layout = 'vertical';
|
|
50
|
+
/** Estado de validación: pinta el borde y el `helperText` con el color del estado. */
|
|
42
51
|
this.status = 'default';
|
|
52
|
+
/** Valor numérico (reflejado); `null` = vacío (solo alcanzable con `clearable`). El componente lo actualiza. */
|
|
43
53
|
this.value = 0;
|
|
54
|
+
/** Paso de los botones −/+ y de las flechas (default 1). */
|
|
44
55
|
this.step = 1;
|
|
56
|
+
/** Deshabilita el campo y los botones. */
|
|
45
57
|
this.disabled = false;
|
|
58
|
+
/** Placeholder del campo vacío (default `'0'`). */
|
|
46
59
|
this.placeholder = '0';
|
|
60
|
+
/** Alto del campo: `s` 28 · `sm` 32 · `md` 40 (default) · `lg` 48. */
|
|
47
61
|
this.size = 'md';
|
|
48
62
|
/** Show clear button when the field has a value */
|
|
49
63
|
this.clearable = false;
|
|
@@ -323,18 +337,18 @@ export class CoNumberField {
|
|
|
323
337
|
return this.scaled && !this.isEmpty ? '%' : null;
|
|
324
338
|
}
|
|
325
339
|
render() {
|
|
326
|
-
return (h("div", { key: '
|
|
340
|
+
return (h("div", { key: 'cf4d63ce0278fd8f429aa4bf541497b7cf178ffe', class: {
|
|
327
341
|
'co-number-field': true,
|
|
328
342
|
'co-number-field--disabled': this.disabled,
|
|
329
343
|
'co-number-field--focused': this.focused,
|
|
330
344
|
[`co-number-field--${this.size}`]: true,
|
|
331
345
|
[`co-number-field--${this.status}`]: this.status !== 'default',
|
|
332
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
346
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: 'ecf9fd16f18a3ebbaef5b81b0c8ae41b80f04abf', class: "co-number-field__labels" }, this.label && h("label", { key: '7602d901e085e3380dff2a355d61ac1dc515428b', class: "co-number-field__label" }, this.label, h(RequiredMark, { key: '361743bf41c66ff28ceec00aba583328f2404713', required: this.required })), this.secondaryLabel && h("span", { key: 'ec9af4b27f3915704ef89ed6f51e7184eb5e1dd4', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: '30f1716aed06da03f924fa1da2b2ab29dbede0bb', class: "co-number-field__row", part: "row" }, !this.hideControls && (h("button", { key: '1dbee1178df2a86e54ae42572a20ecf30484b8bc', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '40f61bd3774fb03b6aaceaef006dd45f2df260d3', name: "minus", size: 16 }))), h("input", { key: '254a74cd61a2776a69953965f8b289267b25fbb2', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal",
|
|
333
347
|
// Mismo guard `focused` que el @Watch: mientras el usuario edita, su
|
|
334
348
|
// texto manda. Sin esto, el re-render que dispara emitValue repinta
|
|
335
349
|
// el input desde el NÚMERO y se come el texto en construcción
|
|
336
350
|
// ("34,640.00" pegado quedaba "34,640"; un "12." perdería el punto).
|
|
337
|
-
value: this.focused && this.inputEl ? this.inputEl.value : this.displayValue, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onPaste: this.handlePaste, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" }), this.affixText && (h("span", { key: '
|
|
351
|
+
value: this.focused && this.inputEl ? this.inputEl.value : this.displayValue, placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onPaste: this.handlePaste, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" }), this.affixText && (h("span", { key: '836ea4e4cba0b21a36b1017d6fc0c4d621d69e56', class: "co-number-field__affix", "aria-hidden": "true" }, this.affixText)), this.clearable && !this.isEmpty && !this.disabled && (h("button", { key: '5eefa937a055dea1855d1bc3bae675003d8382c8', class: "co-number-field__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '096dec8d88b7b241cd83a04788bc4db05feec585', name: "x-circle", size: 16, weight: "fill" }))), h("slot", { key: '1ea7d1ff2c61d74b0884e7b8f1b7b54de4978876', name: "suffix" }), !this.hideControls && (h("button", { key: '9ae95697534b85dcd928c0d0e7f72a3b8c5402c7', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: 'af526ac4278865052f32ae7359a571aa485492af', name: "plus", size: 16 })))), this.helperText && (h("div", { key: '9bad3ffd8c70ce49205132f9f73294a83b6ebbc3', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '4987bc82011c4bb93e1bd00ef1ffd45d2e8681f4', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: '8eac5821653dc0110113f94833e13f27411188a7', class: "co-number-field__helper-text" }, this.helperText)))));
|
|
338
352
|
}
|
|
339
353
|
static get is() { return "co-number-field"; }
|
|
340
354
|
static get encapsulation() { return "shadow"; }
|
|
@@ -362,7 +376,7 @@ export class CoNumberField {
|
|
|
362
376
|
"optional": true,
|
|
363
377
|
"docs": {
|
|
364
378
|
"tags": [],
|
|
365
|
-
"text": ""
|
|
379
|
+
"text": "Etiqueta del campo."
|
|
366
380
|
},
|
|
367
381
|
"getter": false,
|
|
368
382
|
"setter": false,
|
|
@@ -401,7 +415,7 @@ export class CoNumberField {
|
|
|
401
415
|
"optional": true,
|
|
402
416
|
"docs": {
|
|
403
417
|
"tags": [],
|
|
404
|
-
"text": ""
|
|
418
|
+
"text": "Texto secundario junto a la etiqueta."
|
|
405
419
|
},
|
|
406
420
|
"getter": false,
|
|
407
421
|
"setter": false,
|
|
@@ -420,7 +434,7 @@ export class CoNumberField {
|
|
|
420
434
|
"optional": true,
|
|
421
435
|
"docs": {
|
|
422
436
|
"tags": [],
|
|
423
|
-
"text": ""
|
|
437
|
+
"text": "Texto de ayuda o de error bajo el campo."
|
|
424
438
|
},
|
|
425
439
|
"getter": false,
|
|
426
440
|
"setter": false,
|
|
@@ -459,7 +473,7 @@ export class CoNumberField {
|
|
|
459
473
|
"optional": false,
|
|
460
474
|
"docs": {
|
|
461
475
|
"tags": [],
|
|
462
|
-
"text": ""
|
|
476
|
+
"text": "Estado de validaci\u00F3n: pinta el borde y el `helperText` con el color del estado."
|
|
463
477
|
},
|
|
464
478
|
"getter": false,
|
|
465
479
|
"setter": false,
|
|
@@ -479,7 +493,7 @@ export class CoNumberField {
|
|
|
479
493
|
"optional": false,
|
|
480
494
|
"docs": {
|
|
481
495
|
"tags": [],
|
|
482
|
-
"text": ""
|
|
496
|
+
"text": "Valor num\u00E9rico (reflejado); `null` = vac\u00EDo (solo alcanzable con `clearable`). El componente lo actualiza."
|
|
483
497
|
},
|
|
484
498
|
"getter": false,
|
|
485
499
|
"setter": false,
|
|
@@ -499,7 +513,7 @@ export class CoNumberField {
|
|
|
499
513
|
"optional": true,
|
|
500
514
|
"docs": {
|
|
501
515
|
"tags": [],
|
|
502
|
-
"text": ""
|
|
516
|
+
"text": "M\u00EDnimo: los valores se recortan a este l\u00EDmite."
|
|
503
517
|
},
|
|
504
518
|
"getter": false,
|
|
505
519
|
"setter": false,
|
|
@@ -518,7 +532,7 @@ export class CoNumberField {
|
|
|
518
532
|
"optional": true,
|
|
519
533
|
"docs": {
|
|
520
534
|
"tags": [],
|
|
521
|
-
"text": ""
|
|
535
|
+
"text": "M\u00E1ximo: los valores se recortan a este l\u00EDmite."
|
|
522
536
|
},
|
|
523
537
|
"getter": false,
|
|
524
538
|
"setter": false,
|
|
@@ -537,7 +551,7 @@ export class CoNumberField {
|
|
|
537
551
|
"optional": false,
|
|
538
552
|
"docs": {
|
|
539
553
|
"tags": [],
|
|
540
|
-
"text": ""
|
|
554
|
+
"text": "Paso de los botones \u2212/+ y de las flechas (default 1)."
|
|
541
555
|
},
|
|
542
556
|
"getter": false,
|
|
543
557
|
"setter": false,
|
|
@@ -557,7 +571,7 @@ export class CoNumberField {
|
|
|
557
571
|
"optional": false,
|
|
558
572
|
"docs": {
|
|
559
573
|
"tags": [],
|
|
560
|
-
"text": ""
|
|
574
|
+
"text": "Deshabilita el campo y los botones."
|
|
561
575
|
},
|
|
562
576
|
"getter": false,
|
|
563
577
|
"setter": false,
|
|
@@ -577,7 +591,7 @@ export class CoNumberField {
|
|
|
577
591
|
"optional": false,
|
|
578
592
|
"docs": {
|
|
579
593
|
"tags": [],
|
|
580
|
-
"text": ""
|
|
594
|
+
"text": "Placeholder del campo vac\u00EDo (default `'0'`)."
|
|
581
595
|
},
|
|
582
596
|
"getter": false,
|
|
583
597
|
"setter": false,
|
|
@@ -597,7 +611,7 @@ export class CoNumberField {
|
|
|
597
611
|
"optional": false,
|
|
598
612
|
"docs": {
|
|
599
613
|
"tags": [],
|
|
600
|
-
"text": ""
|
|
614
|
+
"text": "Alto del campo: `s` 28 \u00B7 `sm` 32 \u00B7 `md` 40 (default) \u00B7 `lg` 48."
|
|
601
615
|
},
|
|
602
616
|
"getter": false,
|
|
603
617
|
"setter": false,
|
|
@@ -699,7 +713,7 @@ export class CoNumberField {
|
|
|
699
713
|
"composed": true,
|
|
700
714
|
"docs": {
|
|
701
715
|
"tags": [],
|
|
702
|
-
"text": ""
|
|
716
|
+
"text": "Cambi\u00F3 el valor (ya recortado a `min`/`max`; `value` ya est\u00E1 actualizado): `detail` = n\u00FAmero, o `null` al vaciar con `clearable`."
|
|
703
717
|
},
|
|
704
718
|
"complexType": {
|
|
705
719
|
"original": "number | null",
|
|
@@ -669,6 +669,44 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
669
669
|
overflow: auto;
|
|
670
670
|
}
|
|
671
671
|
|
|
672
|
+
/**
|
|
673
|
+
* @prop --co-option-list-max-height: Alto máximo del área de filas antes de scrollear (default 280px).
|
|
674
|
+
* @prop --co-option-list-options-padding: Padding del área de filas.
|
|
675
|
+
* @prop --co-option-list-gap: Separación vertical entre filas.
|
|
676
|
+
* @prop --co-option-list-item-gap: Separación entre los elementos de una fila (ícono, textos, acciones).
|
|
677
|
+
* @prop --co-option-list-item-min-height: Alto mínimo de fila (default 32px); no cambia el paso fijo de la lista virtual.
|
|
678
|
+
* @prop --co-option-list-item-padding-y: Padding vertical de la fila.
|
|
679
|
+
* @prop --co-option-list-item-radius: Radio de la fila.
|
|
680
|
+
* @prop --co-option-list-item-bg: Fondo de la fila en reposo.
|
|
681
|
+
* @prop --co-option-list-item-ring: Sombra/anillo de la fila en reposo.
|
|
682
|
+
* @prop --co-option-list-item-font-size: Tamaño del texto de la fila (default 14px).
|
|
683
|
+
* @prop --co-option-list-active-bg: Fondo de la fila activa (hover o teclado).
|
|
684
|
+
* @prop --co-option-list-active-ring: Sombra/anillo de la fila activa.
|
|
685
|
+
* @prop --co-option-list-label-weight: Peso del label de la fila.
|
|
686
|
+
* @prop --co-option-list-text-gap: Separación entre el título y la descripción de la fila.
|
|
687
|
+
* @prop --co-option-list-icon-tile-size: Lado del recuadro del ícono (default 22px).
|
|
688
|
+
* @prop --co-option-list-icon-tile-radius: Radio del recuadro del ícono.
|
|
689
|
+
* @prop --co-option-list-icon-tile-mix: Porcentaje del tinte del ícono en el fondo del recuadro (default 12%).
|
|
690
|
+
* @prop --co-option-list-icon-tile-ring-mix: Porcentaje del tinte en el borde del recuadro (default 0%, sin borde).
|
|
691
|
+
* @prop --co-option-list-search-height: Alto del buscador (default 32px).
|
|
692
|
+
* @prop --co-option-list-search-margin: Margen del buscador.
|
|
693
|
+
* @prop --co-option-list-search-padding: Padding del buscador.
|
|
694
|
+
* @prop --co-option-list-search-border: Borde del buscador (shorthand).
|
|
695
|
+
* @prop --co-option-list-search-radius: Radio del buscador.
|
|
696
|
+
* @prop --co-option-list-search-bg: Fondo del buscador.
|
|
697
|
+
* @prop --co-option-list-search-border-focus: Color del borde del buscador con foco.
|
|
698
|
+
* @prop --co-option-list-search-bg-focus: Fondo del buscador con foco.
|
|
699
|
+
* @prop --co-option-list-search-caret: Color del cursor de texto del buscador.
|
|
700
|
+
* @prop --co-option-list-group-padding-top: Padding superior del encabezado de grupo.
|
|
701
|
+
* @prop --co-option-list-group-padding-bottom: Padding inferior del encabezado de grupo.
|
|
702
|
+
* @prop --co-option-list-group-font-family: Familia tipográfica del encabezado de grupo (default mono).
|
|
703
|
+
* @prop --co-option-list-group-font-size: Tamaño del encabezado de grupo.
|
|
704
|
+
* @prop --co-option-list-group-font-weight: Peso del encabezado de grupo.
|
|
705
|
+
* @prop --co-option-list-group-text-transform: Transformación del encabezado de grupo (default uppercase).
|
|
706
|
+
* @prop --co-option-list-group-letter-spacing: Espaciado de letras del encabezado de grupo.
|
|
707
|
+
* @prop --co-option-list-group-color: Color del encabezado de grupo.
|
|
708
|
+
*/
|
|
709
|
+
|
|
672
710
|
:host {
|
|
673
711
|
display: block;
|
|
674
712
|
font-family: var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
|
|
@@ -698,22 +736,30 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
698
736
|
|
|
699
737
|
/* ── Search ──────────────────────────────────────────────── */
|
|
700
738
|
/* Caja 32px: icono lupa centrado en un box de 24px (16px + 4px por lado),
|
|
701
|
-
* gap 6px al texto — offsets exactos del Figma (icono en x=8, texto en x=34).
|
|
739
|
+
* gap 6px al texto — offsets exactos del Figma (icono en x=8, texto en x=34).
|
|
740
|
+
* Overridables por host (paletas con el buscador en la fila de cabecera, sin
|
|
741
|
+
* caja, o campo relleno suave): `--co-option-list-search-height` (32px),
|
|
742
|
+
* `-search-margin` (12px 12px 0), `-search-padding` (0 8px 0 4px),
|
|
743
|
+
* `-search-border` (1px solid border-subtle), `-search-border-focus`
|
|
744
|
+
* (border-focus), `-search-bg` (transparent), `-search-bg-focus` (= bg),
|
|
745
|
+
* `-search-radius` (radius-xs) y `-search-caret` (auto). Defaults = Figma. */
|
|
702
746
|
.co-option-list__search {
|
|
703
747
|
display: flex;
|
|
704
748
|
align-items: center;
|
|
705
749
|
gap: var(--co-spacing-sm, 6px);
|
|
706
|
-
height: 32px;
|
|
750
|
+
height: var(--co-option-list-search-height, 32px);
|
|
707
751
|
box-sizing: border-box;
|
|
708
|
-
margin: var(--co-spacing-md, 12px) var(--co-spacing-md, 12px) 0;
|
|
709
|
-
padding: 0 var(--co-spacing-sm2, 8px) 0 var(--co-spacing-xs, 4px);
|
|
710
|
-
border: 1px solid var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08));
|
|
711
|
-
border-radius: var(--co-border-radius-xs, 8px);
|
|
752
|
+
margin: var(--co-option-list-search-margin, var(--co-spacing-md, 12px) var(--co-spacing-md, 12px) 0);
|
|
753
|
+
padding: var(--co-option-list-search-padding, 0 var(--co-spacing-sm2, 8px) 0 var(--co-spacing-xs, 4px));
|
|
754
|
+
border: var(--co-option-list-search-border, 1px solid var(--co-semantic-border-subtle, rgba(31, 28, 27, 0.08)));
|
|
755
|
+
border-radius: var(--co-option-list-search-radius, var(--co-border-radius-xs, 8px));
|
|
756
|
+
background: var(--co-option-list-search-bg, transparent);
|
|
712
757
|
color: var(--co-semantic-text-muted, #888888);
|
|
713
758
|
}
|
|
714
759
|
|
|
715
760
|
.co-option-list__search:focus-within {
|
|
716
|
-
border-color: var(--co-semantic-border-focus, rgba(31, 28, 27, 0.25));
|
|
761
|
+
border-color: var(--co-option-list-search-border-focus, var(--co-semantic-border-focus, rgba(31, 28, 27, 0.25)));
|
|
762
|
+
background: var(--co-option-list-search-bg-focus, var(--co-option-list-search-bg, transparent));
|
|
717
763
|
}
|
|
718
764
|
|
|
719
765
|
.co-option-list__search co-icon {
|
|
@@ -738,6 +784,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
738
784
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
739
785
|
line-height: 1;
|
|
740
786
|
color: var(--co-semantic-text-default, #1f1c1b);
|
|
787
|
+
caret-color: var(--co-option-list-search-caret, auto);
|
|
741
788
|
}
|
|
742
789
|
|
|
743
790
|
.co-option-list__search-input::placeholder {
|
|
@@ -752,13 +799,16 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
752
799
|
max-height: var(--co-option-list-max-height, 280px);
|
|
753
800
|
overflow-y: auto;
|
|
754
801
|
overflow-x: hidden;
|
|
755
|
-
|
|
802
|
+
/* Overridable: `--co-option-list-options-padding` (default 12px) — paletas con cabecera propia que acercan la
|
|
803
|
+
primera sección al filtro de arriba. */
|
|
804
|
+
padding: var(--co-option-list-options-padding, var(--co-spacing-md, 12px));
|
|
756
805
|
}
|
|
757
806
|
|
|
758
807
|
.co-option-list__inner {
|
|
759
808
|
display: flex;
|
|
760
809
|
flex-direction: column;
|
|
761
|
-
|
|
810
|
+
/* Overridable: `--co-option-list-gap` (default 2px) — paletas con filas-tarjeta separadas. */
|
|
811
|
+
gap: var(--co-option-list-gap, var(--co-spacing-xxs, 2px));
|
|
762
812
|
min-width: 0;
|
|
763
813
|
}
|
|
764
814
|
|
|
@@ -781,14 +831,22 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
781
831
|
.co-option-list__option {
|
|
782
832
|
display: flex;
|
|
783
833
|
align-items: center;
|
|
784
|
-
|
|
834
|
+
/* Overridable: `--co-option-list-item-gap` (default 8px) — gap entre el leading (tile/icono/avatar) y el texto;
|
|
835
|
+
paletas con tile tintado lo acercan (Attio: ~5px del tile al rótulo). */
|
|
836
|
+
gap: var(--co-option-list-item-gap, var(--co-spacing-sm2, 8px));
|
|
785
837
|
min-width: 0;
|
|
786
838
|
min-height: var(--co-option-list-item-min-height, 32px);
|
|
787
839
|
box-sizing: border-box;
|
|
788
840
|
padding: var(--co-option-list-item-padding-y, var(--co-spacing-xs, 4px)) var(--co-spacing-sm2, 8px) var(--co-option-list-item-padding-y, var(--co-spacing-xs, 4px)) var(--co-spacing-xs, 4px);
|
|
789
|
-
|
|
841
|
+
/* Overridables (paletas con filas-tarjeta, Attio): `--co-option-list-item-radius` (default 8px) y
|
|
842
|
+
`--co-option-list-item-font-size` (default 14px). */
|
|
843
|
+
border-radius: var(--co-option-list-item-radius, var(--co-border-radius-xs, 8px));
|
|
844
|
+
/* Reposo overridable (paletas con filas-tarjeta, Attio): `--co-option-list-item-bg` (default transparent) y
|
|
845
|
+
`--co-option-list-item-ring` (default none). La activa/seleccionada los pisa. */
|
|
846
|
+
background: var(--co-option-list-item-bg, transparent);
|
|
847
|
+
box-shadow: var(--co-option-list-item-ring, none);
|
|
790
848
|
cursor: pointer;
|
|
791
|
-
font-size: var(--co-font-size-14, 14px);
|
|
849
|
+
font-size: var(--co-option-list-item-font-size, var(--co-font-size-14, 14px));
|
|
792
850
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
793
851
|
color: var(--co-semantic-text-default, #1f1c1b);
|
|
794
852
|
transition:
|
|
@@ -804,7 +862,8 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
804
862
|
}
|
|
805
863
|
|
|
806
864
|
.co-option-list__option--active {
|
|
807
|
-
background: var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04));
|
|
865
|
+
background: var(--co-option-list-active-bg, var(--co-semantic-surface-hover, rgba(31, 28, 27, 0.04)));
|
|
866
|
+
box-shadow: var(--co-option-list-active-ring, none);
|
|
808
867
|
}
|
|
809
868
|
|
|
810
869
|
/* Seleccionado = mismo gris-100 del Figma; el affordance (X/check) distingue. */
|
|
@@ -828,6 +887,24 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
828
887
|
margin: 0 var(--co-spacing-xs, 4px);
|
|
829
888
|
}
|
|
830
889
|
|
|
890
|
+
/* Tile tintado (item.iconTint): 22px, mismo lenguaje que los tiles de categoría de los hosts.
|
|
891
|
+
* Overridables (paletas con tiles más presentes, Attio): `--co-option-list-icon-tile-size` (22px),
|
|
892
|
+
* `--co-option-list-icon-tile-radius` (4px), `--co-option-list-icon-tile-mix` (% del tinte en el fondo, 12%) y
|
|
893
|
+
* `--co-option-list-icon-tile-ring-mix` (% del tinte en el hairline interior, 0% = sin hairline). */
|
|
894
|
+
.co-option-list__icon-tile {
|
|
895
|
+
flex-shrink: 0;
|
|
896
|
+
display: inline-flex;
|
|
897
|
+
align-items: center;
|
|
898
|
+
justify-content: center;
|
|
899
|
+
width: var(--co-option-list-icon-tile-size, 22px);
|
|
900
|
+
height: var(--co-option-list-icon-tile-size, 22px);
|
|
901
|
+
margin: 0 var(--co-spacing-xxs, 2px);
|
|
902
|
+
border-radius: var(--co-option-list-icon-tile-radius, var(--co-border-radius-xxs, 4px));
|
|
903
|
+
background: color-mix(in srgb, var(--co-option-list-icon-tint) var(--co-option-list-icon-tile-mix, 12%), transparent);
|
|
904
|
+
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--co-option-list-icon-tint) var(--co-option-list-icon-tile-ring-mix, 0%), transparent);
|
|
905
|
+
color: var(--co-option-list-icon-tint);
|
|
906
|
+
}
|
|
907
|
+
|
|
831
908
|
.co-option-list__dot {
|
|
832
909
|
flex-shrink: 0;
|
|
833
910
|
width: 10px;
|
|
@@ -852,7 +929,8 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
852
929
|
}
|
|
853
930
|
|
|
854
931
|
.co-option-list__label {
|
|
855
|
-
|
|
932
|
+
/* Overridable: `--co-option-list-label-weight` (default 400) — paletas de título solo con rótulo medium. */
|
|
933
|
+
font-weight: var(--co-option-list-label-weight, 400);
|
|
856
934
|
line-height: 1;
|
|
857
935
|
overflow: hidden;
|
|
858
936
|
text-overflow: ellipsis;
|
|
@@ -984,14 +1062,17 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
984
1062
|
/* ── Group headers ───────────────────────────────────────── */
|
|
985
1063
|
/* Figma: Geist Mono 10px uppercase, tracking 0.8px, color default. */
|
|
986
1064
|
.co-option-list__group {
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1065
|
+
/* Overridables: `--co-option-list-group-padding-top` / `-bottom` (paletas con secciones aireadas: 16/6). */
|
|
1066
|
+
padding: var(--co-option-list-group-padding-top, var(--co-spacing-sm2, 8px)) var(--co-spacing-xs, 4px) var(--co-option-list-group-padding-bottom, var(--co-spacing-xs, 4px));
|
|
1067
|
+
/* Overridables de tipografía (paletas con rótulos en sentence case): `--co-option-list-group-font-family`,
|
|
1068
|
+
`-font-size`, `-font-weight`, `-text-transform`, `-letter-spacing`, `-color`. Default = Figma. */
|
|
1069
|
+
font-family: var(--co-option-list-group-font-family, var(--co-font-family-mono, 'Geist Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace));
|
|
1070
|
+
font-size: var(--co-option-list-group-font-size, var(--co-font-size-10, 10px));
|
|
1071
|
+
font-weight: var(--co-option-list-group-font-weight, 400);
|
|
1072
|
+
text-transform: var(--co-option-list-group-text-transform, uppercase);
|
|
1073
|
+
letter-spacing: var(--co-option-list-group-letter-spacing, var(--co-font-letter-spacing-overline, 0.08em));
|
|
993
1074
|
line-height: 1.1;
|
|
994
|
-
color: var(--co-semantic-text-default, #1f1c1b);
|
|
1075
|
+
color: var(--co-option-list-group-color, var(--co-semantic-text-default, #1f1c1b));
|
|
995
1076
|
}
|
|
996
1077
|
|
|
997
1078
|
/* ── Clear row ───────────────────────────────────────────── */
|
|
@@ -9,8 +9,16 @@ import { buildRows, deriveMore, listReorderIds, liveSelectedOrder, nextActiveInd
|
|
|
9
9
|
*
|
|
10
10
|
* NO renderiza trigger ni chrome de panel (popover/dialog/ancho): eso es del
|
|
11
11
|
* host. Es 100% controlada: no muta `value`; emite y el host decide.
|
|
12
|
+
* Wrapper Vue: `CoOptionList` de `@prolibu-suite/cobalt-vue`. Sus eventos NO
|
|
13
|
+
* burbujean ni cruzan el shadow DOM: se escuchan sobre el propio elemento.
|
|
12
14
|
*
|
|
15
|
+
* @slot header - Entre el buscador y la lista (filtros por categoría de una paleta). UN elemento siempre montado.
|
|
13
16
|
* @slot footer - Footer del panel (normalmente <co-list-footer>).
|
|
17
|
+
*
|
|
18
|
+
* @part search - Contenedor del buscador integrado (solo con `searchable`).
|
|
19
|
+
* @part options - Contenedor scrolleable de las filas.
|
|
20
|
+
* @part icon-tile - Recuadro tintado del ícono de una fila (`item.icon` + `item.iconTint`).
|
|
21
|
+
* @part drag-handle - Tirador de arrastre de una fila (con `reorderable` o `listReorderable`).
|
|
14
22
|
*/
|
|
15
23
|
export class CoOptionList {
|
|
16
24
|
constructor() {
|
|
@@ -21,6 +29,8 @@ export class CoOptionList {
|
|
|
21
29
|
this.value = '';
|
|
22
30
|
/** Display-items de la selección (para selected-first con ids fuera de página). */
|
|
23
31
|
this.selectedItems = '[]';
|
|
32
|
+
/** Selección múltiple: `value` es un JSON array de ids y `coChange` emite el
|
|
33
|
+
* array completo; con `false` (default) la selección es un solo id. */
|
|
24
34
|
this.multiple = false;
|
|
25
35
|
/** Partición selected-first (snapshot al llamar snapshotOrder()). */
|
|
26
36
|
this.selectedFirst = false;
|
|
@@ -38,17 +48,24 @@ export class CoOptionList {
|
|
|
38
48
|
* Independiente de multiple/selectedFirst. No soportado con `virtual`. */
|
|
39
49
|
this.listReorderable = false;
|
|
40
50
|
// ── Search integrado (opcional) ────────────────────────────
|
|
51
|
+
/** Muestra el buscador integrado arriba de la lista (reflejado como atributo).
|
|
52
|
+
* El filtrado lo hace el host al recibir `coSearch`. */
|
|
41
53
|
this.searchable = false;
|
|
54
|
+
/** Placeholder del buscador integrado. */
|
|
42
55
|
this.searchPlaceholder = 'Search…';
|
|
56
|
+
/** Espera en ms entre la última tecla y el `coSearch` (default 350). */
|
|
43
57
|
this.searchDebounce = 350;
|
|
44
58
|
/** Pre-seed del término (modo convert de las celdas). */
|
|
45
59
|
this.initialTerm = '';
|
|
46
60
|
// ── Estados ────────────────────────────────────────────────
|
|
61
|
+
/** Cargando: sin filas muestra un loader en lugar de la lista; con filas,
|
|
62
|
+
* un loader al pie. Mientras está activo no se emite `coLoadMore`. */
|
|
47
63
|
this.loading = false;
|
|
48
64
|
/** Total del server: deriva hasMore + hint "N more results". */
|
|
49
65
|
this.total = 0;
|
|
50
66
|
/** Fallback cuando el host no conoce totales (⌘K). total>0 manda. */
|
|
51
67
|
this.hasMore = false;
|
|
68
|
+
/** Texto cuando no hay filas y no se está cargando. */
|
|
52
69
|
this.emptyMessage = 'No results found';
|
|
53
70
|
/** Si se setea y hay selección, fila "quitar selección" al tope. */
|
|
54
71
|
this.clearOptionLabel = '';
|
|
@@ -59,6 +76,7 @@ export class CoOptionList {
|
|
|
59
76
|
this.highlightMatches = false;
|
|
60
77
|
/** Término externo para highlight (input en el host, p.ej. ⌘K). */
|
|
61
78
|
this.highlightTerm = '';
|
|
79
|
+
/** Forma del `co-avatar` de las filas que traen avatar: `circle` (default) o `square`. */
|
|
62
80
|
this.avatarShape = 'circle';
|
|
63
81
|
/** `end` pinta el suffix como columna a la derecha de la fila (precio/meta),
|
|
64
82
|
* sin el guion; `inline` = junto al label (default). */
|
|
@@ -307,7 +325,6 @@ export class CoOptionList {
|
|
|
307
325
|
this.activeIndex = activeId ? this.orderedItems.findIndex((i) => i._id === activeId) : -1;
|
|
308
326
|
}
|
|
309
327
|
// ── Métodos públicos ───────────────────────────────────────
|
|
310
|
-
/** Re-toma el snapshot selected-first. El host la llama al abrir su panel. */
|
|
311
328
|
/**
|
|
312
329
|
* Vacía el buscador (texto, término y cualquier coSearch en vuelo) y emite
|
|
313
330
|
* `coSearch('')`. Para hosts que reabren el panel (co-popover): el término
|
|
@@ -327,6 +344,7 @@ export class CoOptionList {
|
|
|
327
344
|
this.takeSnapshot();
|
|
328
345
|
this.coSearch.emit('');
|
|
329
346
|
}
|
|
347
|
+
/** Re-toma el snapshot selected-first. El host la llama al abrir su panel. */
|
|
330
348
|
async snapshotOrder() {
|
|
331
349
|
this.takeSnapshot();
|
|
332
350
|
}
|
|
@@ -709,6 +727,9 @@ export class CoOptionList {
|
|
|
709
727
|
}
|
|
710
728
|
if (item.color)
|
|
711
729
|
return h("span", { class: "co-option-list__dot", style: { backgroundColor: item.color } });
|
|
730
|
+
if (item.icon && item.iconTint) {
|
|
731
|
+
return (h("span", { class: "co-option-list__icon-tile", part: "icon-tile", style: { '--co-option-list-icon-tint': item.iconTint } }, h("co-icon", { name: item.icon, size: 14 })));
|
|
732
|
+
}
|
|
712
733
|
if (item.icon)
|
|
713
734
|
return h("co-icon", { name: item.icon, size: 16, class: "co-option-list__icon" });
|
|
714
735
|
return null;
|
|
@@ -760,11 +781,11 @@ export class CoOptionList {
|
|
|
760
781
|
const selectedIds = this.selectedIds;
|
|
761
782
|
const { hasMore, remaining } = deriveMore(this.parsedItems.length, this.total, this.hasMore);
|
|
762
783
|
const showClear = !!this.clearOptionLabel && selectedIds.length > 0;
|
|
763
|
-
return (h("div", { key: '
|
|
784
|
+
return (h("div", { key: 'ca480a23b7127ff745ee57002a71dea707e32e95', class: "co-option-list", onKeyDown: this.onRootKeyDown }, this.searchable && (h("div", { key: 'de6a96f09450c05c9194933f3e5f732e158437c7', class: "co-option-list__search", part: "search" }, h("co-icon", { key: 'f99a19e0a194d6a0bcce6d40a736197593af8fdf', name: "magnifying-glass", size: 16 }), h("input", { key: '26fabd78b4660523e25b40bc8e92740df2677244', class: "co-option-list__search-input", type: "text", placeholder: this.searchPlaceholder, value: this.term, onInput: this.onSearchInput, ref: (el) => (this.searchInputEl = el), role: "combobox", "aria-expanded": "true", "aria-autocomplete": "list" }))), h("slot", { key: '05dc7fb2d632ba58b3b960e9355b1e48a71df32c', name: "header" }), h("div", { key: 'b3edc8acf06c7f433da9584249be73d25c5f1fee', class: "co-option-list__options", part: "options", role: "listbox", "aria-multiselectable": this.multiple ? 'true' : 'false', ref: (el) => (this.optionsEl = el), onScroll: this.onNativeScroll }, h("div", { key: '8abe9a20998f35332ee320512a433d8fb8196875', class: "co-option-list__inner" }, showClear && (h("button", { key: '9b420f4a08d94c7588657ec73102253dc3aace29', class: "co-option-list__clear-row", type: "button", onClick: () => this.coClearSelection.emit() }, h("co-icon", { key: '5e0d86b76f5b85ee41a4534284c4e05fec4f2df1', name: "x-circle", size: 14 }), h("span", { key: 'ff554cd331978bbe2e6aaef44b590a9de66c67d5' }, this.clearOptionLabel))), this.loading && items.length === 0 && (h("div", { key: '1db10de6bf8b6cda7b7ca13f5969400ab420a3e7', class: "co-option-list__loading" }, h("co-loader", { key: 'd724879c38f755067e544503c233c740f932f46e', size: "sm" }))), !this.loading && items.length === 0 && (h("div", { key: '95f42f0028e6f7a1641bc45f6a294fe2ded5a29f', class: "co-option-list__empty" }, h("co-icon", { key: '1bed6dbd8c0c4e0722f6c28c2867331bba4e3879', name: "magnifying-glass", size: 20 }), h("span", { key: '7f2d01d6eed6e91ab14ace418f52167713963976' }, this.emptyMessage))), items.length > 0 && this.virtual
|
|
764
785
|
? this.renderVirtual(items, selectedIds)
|
|
765
786
|
: buildRows(items).map((row) => row.kind === 'header'
|
|
766
787
|
? h("div", { class: "co-option-list__group", role: "presentation" }, row.label)
|
|
767
|
-
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '
|
|
788
|
+
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '9fb95c0193357bf50eabc21dae3f8ca0bb2b3a9f', class: "co-option-list__loading-more" }, h("co-loader", { key: 'dddf472d61b1c14f281212b02538bd576dce09d1', size: "sm" }))), !this.loading && hasMore && remaining > 0 && (h("div", { key: '6d4f16d14d67b137fe37b67fe1590d209b51b800', class: "co-option-list__more" }, remaining, " more results")))), h("slot", { key: '9091482eaf2228e93b3eeb893e804d5fcd8c3d44', name: "footer" })));
|
|
768
789
|
}
|
|
769
790
|
static get is() { return "co-option-list"; }
|
|
770
791
|
static get encapsulation() { return "shadow"; }
|
|
@@ -866,7 +887,7 @@ export class CoOptionList {
|
|
|
866
887
|
"optional": false,
|
|
867
888
|
"docs": {
|
|
868
889
|
"tags": [],
|
|
869
|
-
"text": ""
|
|
890
|
+
"text": "Selecci\u00F3n m\u00FAltiple: `value` es un JSON array de ids y `coChange` emite el\narray completo; con `false` (default) la selecci\u00F3n es un solo id."
|
|
870
891
|
},
|
|
871
892
|
"getter": false,
|
|
872
893
|
"setter": false,
|
|
@@ -1006,7 +1027,7 @@ export class CoOptionList {
|
|
|
1006
1027
|
"optional": false,
|
|
1007
1028
|
"docs": {
|
|
1008
1029
|
"tags": [],
|
|
1009
|
-
"text": ""
|
|
1030
|
+
"text": "Muestra el buscador integrado arriba de la lista (reflejado como atributo).\nEl filtrado lo hace el host al recibir `coSearch`."
|
|
1010
1031
|
},
|
|
1011
1032
|
"getter": false,
|
|
1012
1033
|
"setter": false,
|
|
@@ -1026,7 +1047,7 @@ export class CoOptionList {
|
|
|
1026
1047
|
"optional": false,
|
|
1027
1048
|
"docs": {
|
|
1028
1049
|
"tags": [],
|
|
1029
|
-
"text": ""
|
|
1050
|
+
"text": "Placeholder del buscador integrado."
|
|
1030
1051
|
},
|
|
1031
1052
|
"getter": false,
|
|
1032
1053
|
"setter": false,
|
|
@@ -1046,7 +1067,7 @@ export class CoOptionList {
|
|
|
1046
1067
|
"optional": false,
|
|
1047
1068
|
"docs": {
|
|
1048
1069
|
"tags": [],
|
|
1049
|
-
"text": ""
|
|
1070
|
+
"text": "Espera en ms entre la \u00FAltima tecla y el `coSearch` (default 350)."
|
|
1050
1071
|
},
|
|
1051
1072
|
"getter": false,
|
|
1052
1073
|
"setter": false,
|
|
@@ -1086,7 +1107,7 @@ export class CoOptionList {
|
|
|
1086
1107
|
"optional": false,
|
|
1087
1108
|
"docs": {
|
|
1088
1109
|
"tags": [],
|
|
1089
|
-
"text": ""
|
|
1110
|
+
"text": "Cargando: sin filas muestra un loader en lugar de la lista; con filas,\nun loader al pie. Mientras est\u00E1 activo no se emite `coLoadMore`."
|
|
1090
1111
|
},
|
|
1091
1112
|
"getter": false,
|
|
1092
1113
|
"setter": false,
|
|
@@ -1146,7 +1167,7 @@ export class CoOptionList {
|
|
|
1146
1167
|
"optional": false,
|
|
1147
1168
|
"docs": {
|
|
1148
1169
|
"tags": [],
|
|
1149
|
-
"text": ""
|
|
1170
|
+
"text": "Texto cuando no hay filas y no se est\u00E1 cargando."
|
|
1150
1171
|
},
|
|
1151
1172
|
"getter": false,
|
|
1152
1173
|
"setter": false,
|
|
@@ -1246,7 +1267,7 @@ export class CoOptionList {
|
|
|
1246
1267
|
"optional": false,
|
|
1247
1268
|
"docs": {
|
|
1248
1269
|
"tags": [],
|
|
1249
|
-
"text": ""
|
|
1270
|
+
"text": "Forma del `co-avatar` de las filas que traen avatar: `circle` (default) o `square`."
|
|
1250
1271
|
},
|
|
1251
1272
|
"getter": false,
|
|
1252
1273
|
"setter": false,
|
|
@@ -1317,7 +1338,7 @@ export class CoOptionList {
|
|
|
1317
1338
|
"composed": false,
|
|
1318
1339
|
"docs": {
|
|
1319
1340
|
"tags": [],
|
|
1320
|
-
"text": ""
|
|
1341
|
+
"text": "T\u00E9rmino del buscador integrado, con debounce (`searchDebounce`); `''` al vaciarlo\no tras `clearSearch()`. No burbujea."
|
|
1321
1342
|
},
|
|
1322
1343
|
"complexType": {
|
|
1323
1344
|
"original": "string",
|
|
@@ -1332,7 +1353,7 @@ export class CoOptionList {
|
|
|
1332
1353
|
"composed": false,
|
|
1333
1354
|
"docs": {
|
|
1334
1355
|
"tags": [],
|
|
1335
|
-
"text": ""
|
|
1356
|
+
"text": "Selecci\u00F3n pedida (el componente no muta `value`). `detail.value`: el id elegido,\nel array completo en `multiple`, o `null` al deseleccionar en single;\n`detail.item`: la fila involucrada. No burbujea."
|
|
1336
1357
|
},
|
|
1337
1358
|
"complexType": {
|
|
1338
1359
|
"original": "{ value: string | string[] | null; item: OptionListItem }",
|
|
@@ -1354,7 +1375,7 @@ export class CoOptionList {
|
|
|
1354
1375
|
"composed": false,
|
|
1355
1376
|
"docs": {
|
|
1356
1377
|
"tags": [],
|
|
1357
|
-
"text": ""
|
|
1378
|
+
"text": "Pide la p\u00E1gina siguiente: al acercarse el scroll al final, o si las filas\ncargadas no llenan el panel. Solo con m\u00E1s resultados (`total`/`hasMore`) y\nsin `loading`. Sin `detail`. No burbujea."
|
|
1358
1379
|
},
|
|
1359
1380
|
"complexType": {
|
|
1360
1381
|
"original": "void",
|
|
@@ -1369,7 +1390,7 @@ export class CoOptionList {
|
|
|
1369
1390
|
"composed": false,
|
|
1370
1391
|
"docs": {
|
|
1371
1392
|
"tags": [],
|
|
1372
|
-
"text": ""
|
|
1393
|
+
"text": "Click en la fila \u00ABquitar selecci\u00F3n\u00BB (`clearOptionLabel`). Sin `detail`. No burbujea."
|
|
1373
1394
|
},
|
|
1374
1395
|
"complexType": {
|
|
1375
1396
|
"original": "void",
|
|
@@ -1384,7 +1405,7 @@ export class CoOptionList {
|
|
|
1384
1405
|
"composed": false,
|
|
1385
1406
|
"docs": {
|
|
1386
1407
|
"tags": [],
|
|
1387
|
-
"text": ""
|
|
1408
|
+
"text": "Click en la X de una fila seleccionada (`removableItems`); `detail` = id de la fila. No burbujea."
|
|
1388
1409
|
},
|
|
1389
1410
|
"complexType": {
|
|
1390
1411
|
"original": "string",
|
|
@@ -1491,7 +1512,7 @@ export class CoOptionList {
|
|
|
1491
1512
|
"return": "Promise<void>"
|
|
1492
1513
|
},
|
|
1493
1514
|
"docs": {
|
|
1494
|
-
"text": "",
|
|
1515
|
+
"text": "Re-toma el snapshot selected-first. El host la llama al abrir su panel.",
|
|
1495
1516
|
"tags": []
|
|
1496
1517
|
}
|
|
1497
1518
|
},
|