@prolibu-suite/cobalt-core 0.8.0 → 0.9.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/custom-elements.json +188 -19
- package/dist/cjs/co-accordion.cjs.entry.js +2 -2
- package/dist/cjs/co-action-bar.cjs.entry.js +2 -2
- package/dist/cjs/co-app-shell.cjs.entry.js +2 -2
- package/dist/cjs/co-audio-player.cjs.entry.js +2 -2
- package/dist/cjs/co-autocomplete.cjs.entry.js +15 -6
- package/dist/cjs/co-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar_2.cjs.entry.js +16 -5
- package/dist/cjs/co-badge.cjs.entry.js +1 -1
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +2 -2
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +1 -1
- package/dist/cjs/co-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +1 -1
- package/dist/cjs/co-button.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar_3.cjs.entry.js +9 -9
- package/dist/cjs/co-card.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/co-carousel.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/co-chip_2.cjs.entry.js +26 -14
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-combobox.cjs.entry.js +14 -6
- package/dist/cjs/co-command-search.cjs.entry.js +20 -6
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +6 -6
- package/dist/cjs/co-data-table.cjs.entry.js +128 -9
- package/dist/cjs/co-date-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-drive-card.cjs.entry.js +3 -3
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +4 -4
- package/dist/cjs/co-event-popover.cjs.entry.js +3 -3
- package/dist/cjs/co-fab.cjs.entry.js +4 -4
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +3 -3
- package/dist/cjs/co-json-field.cjs.entry.js +6 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +6 -6
- package/dist/cjs/co-list-footer.cjs.entry.js +3 -3
- package/dist/cjs/co-list-item.cjs.entry.js +6 -6
- 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 +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +4 -4
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +3 -3
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
- package/dist/cjs/co-popover.cjs.entry.js +79 -7
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +4 -4
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +2 -2
- package/dist/cjs/co-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/co-radio.cjs.entry.js +5 -5
- package/dist/cjs/co-rating.cjs.entry.js +5 -5
- package/dist/cjs/co-ref-field.cjs.entry.js +28 -7
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +1 -1
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-select.cjs.entry.js +16 -7
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +4 -4
- package/dist/cjs/co-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/co-slider.cjs.entry.js +4 -4
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +3 -3
- package/dist/cjs/co-tab.cjs.entry.js +4 -4
- package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
- package/dist/cjs/co-textarea.cjs.entry.js +7 -7
- package/dist/cjs/co-toast.cjs.entry.js +35 -5
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-transfer-list.cjs.entry.js +2 -2
- package/dist/cjs/co-video.cjs.entry.js +4 -4
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{fieldChip-B_npd9rL.js → fieldChip-xNJPEFcS.js} +1 -1
- package/dist/cjs/{index-kBiXCEE7.js → index-DK-2Lzmf.js} +13 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{requiredMark-DuMIcKtt.js → requiredMark-C1xcrzSZ.js} +1 -1
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-890296f9.entry.js → p-02ac492f.entry.js} +1 -1
- package/dist/cobalt/{p-f0c589ad.entry.js → p-02f4b71a.entry.js} +1 -1
- package/dist/cobalt/p-07d570a6.entry.js +1 -0
- package/dist/cobalt/p-136440fc.entry.js +1 -0
- package/dist/cobalt/{p-3ae69426.entry.js → p-138b8bc1.entry.js} +1 -1
- package/dist/cobalt/{p-df63f23c.entry.js → p-17ae943c.entry.js} +1 -1
- package/dist/cobalt/p-1ddbc48b.entry.js +1 -0
- package/dist/cobalt/{p-38ae8bff.entry.js → p-2637efc5.entry.js} +1 -1
- package/dist/cobalt/p-2c0099a4.entry.js +1 -0
- package/dist/cobalt/{p-202eadfc.entry.js → p-2d329ac8.entry.js} +1 -1
- package/dist/cobalt/p-2d81b292.entry.js +1 -0
- package/dist/cobalt/p-2f778a5a.entry.js +1 -0
- package/dist/cobalt/p-315586b0.entry.js +1 -0
- package/dist/cobalt/{p-0fc1edca.entry.js → p-316c62c0.entry.js} +1 -1
- package/dist/cobalt/p-342e1da4.entry.js +1 -0
- package/dist/cobalt/{p-acdb68a7.entry.js → p-37c17bd8.entry.js} +1 -1
- package/dist/cobalt/p-3a229bba.entry.js +1 -0
- package/dist/cobalt/{p-69723cc1.entry.js → p-3ced4269.entry.js} +1 -1
- package/dist/cobalt/{p-5c1328ff.entry.js → p-3d338881.entry.js} +1 -1
- package/dist/cobalt/{p-6985a964.entry.js → p-3ef0f849.entry.js} +1 -1
- package/dist/cobalt/p-40ce8a3d.entry.js +1 -0
- package/dist/cobalt/{p-8fe08257.entry.js → p-4299cfa5.entry.js} +1 -1
- package/dist/cobalt/{p-959556f4.entry.js → p-43bd298d.entry.js} +1 -1
- package/dist/cobalt/{p-dc8e88f4.entry.js → p-43d31055.entry.js} +1 -1
- package/dist/cobalt/{p-3a746267.entry.js → p-44fb4a3f.entry.js} +1 -1
- package/dist/cobalt/p-4a503187.entry.js +1 -0
- package/dist/cobalt/p-4fe9a3ae.entry.js +1 -0
- package/dist/cobalt/{p-f53b9536.entry.js → p-5c1767db.entry.js} +1 -1
- package/dist/cobalt/p-60cb66f5.entry.js +1 -0
- package/dist/cobalt/p-6556465f.entry.js +1 -0
- package/dist/cobalt/{p-48fbf051.entry.js → p-6795a258.entry.js} +1 -1
- package/dist/cobalt/p-682b3313.entry.js +1 -0
- package/dist/cobalt/p-6c35b5cc.entry.js +1 -0
- package/dist/cobalt/p-7457aa89.entry.js +1 -0
- package/dist/cobalt/{p-0769eee9.entry.js → p-75b7ed13.entry.js} +1 -1
- package/dist/cobalt/{p-afd957c0.entry.js → p-7c5e846a.entry.js} +1 -1
- package/dist/cobalt/{p-cd96aabf.entry.js → p-7cf4b4ae.entry.js} +1 -1
- package/dist/cobalt/p-7fbd3359.entry.js +1 -0
- package/dist/cobalt/p-8183f56f.entry.js +1 -0
- package/dist/cobalt/p-82c8f07b.entry.js +1 -0
- package/dist/cobalt/p-85a61e28.entry.js +1 -0
- package/dist/cobalt/p-88a0659f.entry.js +1 -0
- package/dist/cobalt/{p-dc269096.entry.js → p-8e667eb6.entry.js} +1 -1
- package/dist/cobalt/{p-1e9c9d46.entry.js → p-8eb485c8.entry.js} +1 -1
- package/dist/cobalt/p-8f600512.entry.js +1 -0
- package/dist/cobalt/{p-25f59046.entry.js → p-905ba0dd.entry.js} +1 -1
- package/dist/cobalt/p-909c0113.entry.js +1 -0
- package/dist/cobalt/p-90e292de.entry.js +1 -0
- package/dist/cobalt/p-929a4f19.entry.js +1 -0
- package/dist/cobalt/p-9c89cb01.entry.js +1 -0
- package/dist/cobalt/p-9c9f5b26.entry.js +1 -0
- package/dist/cobalt/p-CQAYgqA6.js +1 -0
- package/dist/cobalt/p-CrtiywTB.js +2 -0
- package/dist/cobalt/p-T4la7ly_.js +1 -0
- package/dist/cobalt/p-a0a6bfa3.entry.js +1 -0
- package/dist/cobalt/p-a3669301.entry.js +1 -0
- package/dist/cobalt/p-a3c6b974.entry.js +1 -0
- package/dist/cobalt/{p-20bd3702.entry.js → p-a6357340.entry.js} +1 -1
- package/dist/cobalt/p-a6b5cadd.entry.js +1 -0
- package/dist/cobalt/p-a811464d.entry.js +1 -0
- package/dist/cobalt/p-a8c64cc3.entry.js +1 -0
- package/dist/cobalt/p-a9b29cc2.entry.js +1 -0
- package/dist/cobalt/p-aafb9d11.entry.js +1 -0
- package/dist/cobalt/p-ab45d9bd.entry.js +1 -0
- package/dist/cobalt/p-b107063c.entry.js +1 -0
- package/dist/cobalt/{p-a04feb70.entry.js → p-b22981fd.entry.js} +1 -1
- package/dist/cobalt/p-b28dc0fe.entry.js +1 -0
- package/dist/cobalt/p-b5b97c9b.entry.js +1 -0
- package/dist/cobalt/{p-6b256d01.entry.js → p-b892b312.entry.js} +1 -1
- package/dist/cobalt/{p-39dea0c0.entry.js → p-bfc2a849.entry.js} +1 -1
- package/dist/cobalt/p-c1880595.entry.js +1 -0
- package/dist/cobalt/{p-7c6b3175.entry.js → p-c3bb7e1f.entry.js} +1 -1
- package/dist/cobalt/{p-ce961fba.entry.js → p-c3fd7b22.entry.js} +1 -1
- package/dist/cobalt/p-c6b9b9d6.entry.js +1 -0
- package/dist/cobalt/{p-195c67ee.entry.js → p-c8dba82f.entry.js} +1 -1
- package/dist/cobalt/{p-00830b8c.entry.js → p-ce35c898.entry.js} +1 -1
- package/dist/cobalt/p-d4debd6f.entry.js +1 -0
- package/dist/cobalt/p-da18b5f4.entry.js +1 -0
- package/dist/cobalt/{p-3af74ab8.entry.js → p-da546d08.entry.js} +1 -1
- package/dist/cobalt/{p-50bbfad8.entry.js → p-e085b4ff.entry.js} +1 -1
- package/dist/cobalt/{p-b45ea918.entry.js → p-e4ef25b0.entry.js} +1 -1
- package/dist/cobalt/{p-97875bde.entry.js → p-e6882ddd.entry.js} +1 -1
- package/dist/cobalt/{p-bebacee2.entry.js → p-e742e978.entry.js} +1 -1
- package/dist/cobalt/{p-52af222b.entry.js → p-e8878cf9.entry.js} +1 -1
- package/dist/cobalt/{p-a252f8c5.entry.js → p-f83b48fd.entry.js} +1 -1
- package/dist/cobalt/{p-3d4e697e.entry.js → p-f945a1bd.entry.js} +1 -1
- package/dist/cobalt/p-fabe5fb2.entry.js +1 -0
- package/dist/cobalt/{p-15852fec.entry.js → p-fd39f410.entry.js} +1 -1
- package/dist/cobalt/{p-51a1ad38.entry.js → p-fdc6ec11.entry.js} +1 -1
- package/dist/collection/components/co-accordion/co-accordion.css +12 -4
- package/dist/collection/components/co-action-bar/co-action-bar.css +4 -16
- package/dist/collection/components/co-app-shell/co-app-shell.css +1 -1
- package/dist/collection/components/co-audio-player/co-audio-player.css +1 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +14 -5
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +4 -12
- package/dist/collection/components/co-button/co-button.css +17 -1
- package/dist/collection/components/co-calendar/co-calendar.css +2 -2
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +1 -1
- package/dist/collection/components/co-card/co-card.css +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +84 -58
- package/dist/collection/components/co-checkbox/co-checkbox.js +1 -1
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +1 -1
- package/dist/collection/components/co-chip/co-chip.css +2 -2
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +3 -3
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.css +8 -8
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +5 -3
- package/dist/collection/components/co-combobox/co-combobox.js +13 -5
- package/dist/collection/components/co-command-search/co-command-search.css +13 -3
- package/dist/collection/components/co-command-search/co-command-search.js +18 -4
- package/dist/collection/components/co-data-table/co-data-table.css +38 -5
- package/dist/collection/components/co-data-table/co-data-table.js +89 -7
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +5 -5
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +2 -2
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +2 -2
- package/dist/collection/components/co-drawer/co-drawer.css +2 -2
- package/dist/collection/components/co-drive-card/co-drive-card.css +5 -5
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.css +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +2 -2
- package/dist/collection/components/co-event-popover/co-event-popover.css +1 -2
- package/dist/collection/components/co-event-popover/co-event-popover.js +1 -1
- package/dist/collection/components/co-fab/co-fab.css +26 -17
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +5 -5
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +10 -1
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-input/co-input.css +3 -3
- package/dist/collection/components/co-json-field/co-json-field.css +1 -1
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +4 -4
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.css +1 -1
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.css +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +1 -1
- package/dist/collection/components/co-modal/co-modal.css +2 -2
- package/dist/collection/components/co-modal/co-modal.js +2 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +3 -3
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +13 -11
- package/dist/collection/components/co-option-list/co-option-list.js +23 -11
- package/dist/collection/components/co-overlay/co-overlay.css +2 -2
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +27 -0
- package/dist/collection/components/co-popover/co-popover.js +54 -6
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +1 -1
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.css +1 -1
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +1 -1
- package/dist/collection/components/co-rating/co-rating.css +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +19 -4
- package/dist/collection/components/co-ref-field/co-ref-field.js +83 -3
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +5 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +12 -12
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +4 -4
- package/dist/collection/components/co-select/co-select.js +67 -4
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.css +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +33 -7
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +2 -2
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +9 -2
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +5 -4
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +2 -2
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.js +2 -2
- package/dist/collection/components/co-tags-field/co-tags-field.css +3 -3
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +2 -2
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.css +63 -1
- package/dist/collection/components/co-toast/co-toast.js +38 -3
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +1 -1
- package/dist/collection/components/co-tooltip/co-tooltip.js +14 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +3 -3
- package/dist/collection/components/co-video/co-video.css +9 -9
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/columnResize.js +37 -0
- package/dist/collection/utils/popover-stack.js +28 -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-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.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.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-picker.js +1 -1
- 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-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-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-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-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-row.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-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-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-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-BC6sxVVr.js → p-4t5Fputx.js} +1 -1
- package/dist/components/p-8wvfrEY4.js +1 -0
- package/dist/components/{p-DbISGXT_.js → p-BCZ-tPBT.js} +1 -1
- package/dist/components/p-BEiPCCVl.js +1 -0
- package/dist/components/{p-CDWXNRpo.js → p-BOmAHbix.js} +1 -1
- package/dist/components/p-BUYgHlPz.js +1 -0
- package/dist/components/p-BYnSPxpp.js +1 -0
- package/dist/components/{p-CVCEiwOS.js → p-Bhuk55S0.js} +1 -1
- package/dist/components/{p-CIWoKlGj.js → p-C4So28aS.js} +1 -1
- package/dist/components/p-CRABrJmD.js +1 -0
- package/dist/components/p-CXLX8DpD.js +1 -0
- package/dist/components/{p-ChPooamL.js → p-CXdIxtbK.js} +1 -1
- package/dist/components/p-ClAsHpYv.js +1 -0
- package/dist/components/p-CnBjUP_M.js +1 -0
- package/dist/components/p-DEYpoVxc.js +1 -0
- package/dist/components/p-DP0bbhfN.js +1 -0
- package/dist/components/{p-T0MdU7sb.js → p-DUYGgqjB.js} +1 -1
- package/dist/components/p-DWt_rL1l.js +1 -0
- package/dist/components/p-DmyELlI1.js +1 -0
- package/dist/components/{p-uZ2D6ESV.js → p-aiNhl9Xd.js} +1 -1
- package/dist/components/p-njonLO8t.js +1 -0
- package/dist/components/{p-BQFperIX.js → p-xjzIZcgZ.js} +1 -1
- package/dist/esm/co-accordion.entry.js +2 -2
- package/dist/esm/co-action-bar.entry.js +2 -2
- package/dist/esm/co-app-shell.entry.js +2 -2
- package/dist/esm/co-audio-player.entry.js +2 -2
- package/dist/esm/co-autocomplete.entry.js +15 -6
- package/dist/esm/co-avatar-group.entry.js +2 -2
- package/dist/esm/co-avatar_2.entry.js +16 -5
- package/dist/esm/co-badge.entry.js +1 -1
- package/dist/esm/co-bottom-sheet.entry.js +2 -2
- package/dist/esm/co-breadcrumb-item.entry.js +1 -1
- package/dist/esm/co-breadcrumb.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +1 -1
- package/dist/esm/co-button.entry.js +2 -2
- package/dist/esm/co-calendar-month_2.entry.js +2 -2
- package/dist/esm/co-calendar_3.entry.js +9 -9
- package/dist/esm/co-card.entry.js +2 -2
- package/dist/esm/co-carousel-item.entry.js +1 -1
- package/dist/esm/co-carousel.entry.js +1 -1
- package/dist/esm/co-checkbox-group.entry.js +2 -2
- package/dist/esm/co-checkbox.entry.js +3 -3
- package/dist/esm/co-chip_2.entry.js +26 -14
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-column-picker.entry.js +4 -4
- package/dist/esm/co-combobox.entry.js +14 -6
- package/dist/esm/co-command-search.entry.js +20 -6
- package/dist/esm/co-data-table-pagination.entry.js +6 -6
- package/dist/esm/co-data-table.entry.js +128 -9
- package/dist/esm/co-date-picker.entry.js +2 -2
- package/dist/esm/co-date-range-picker.entry.js +3 -3
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +5 -5
- package/dist/esm/co-drive-card.entry.js +3 -3
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +4 -4
- package/dist/esm/co-event-popover.entry.js +3 -3
- package/dist/esm/co-fab.entry.js +4 -4
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +3 -3
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +3 -3
- package/dist/esm/co-json-field.entry.js +6 -6
- package/dist/esm/co-lightbox.entry.js +6 -6
- package/dist/esm/co-list-footer.entry.js +3 -3
- package/dist/esm/co-list-item.entry.js +6 -6
- 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 +2 -2
- package/dist/esm/co-menu-item.entry.js +2 -2
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +4 -4
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +3 -3
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +4 -4
- package/dist/esm/co-popover.entry.js +79 -7
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +4 -4
- package/dist/esm/co-provider-logo_2.entry.js +2 -2
- package/dist/esm/co-radio-group.entry.js +2 -2
- package/dist/esm/co-radio.entry.js +5 -5
- package/dist/esm/co-rating.entry.js +5 -5
- package/dist/esm/co-ref-field.entry.js +28 -7
- package/dist/esm/co-rich-text-editor.entry.js +5 -5
- package/dist/esm/co-rich-text-toolbar.entry.js +2 -2
- package/dist/esm/co-rich-text-viewer.entry.js +1 -1
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +1 -1
- package/dist/esm/co-select.entry.js +16 -7
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +4 -4
- package/dist/esm/co-sidebar.entry.js +4 -4
- package/dist/esm/co-slider.entry.js +4 -4
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +3 -3
- package/dist/esm/co-tab.entry.js +4 -4
- package/dist/esm/co-tags-field.entry.js +9 -9
- package/dist/esm/co-textarea.entry.js +7 -7
- package/dist/esm/co-toast.entry.js +35 -5
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-transfer-list.entry.js +2 -2
- package/dist/esm/co-video.entry.js +4 -4
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{fieldChip-Bb8YIN0J.js → fieldChip-BZDUy9Z-.js} +1 -1
- package/dist/esm/{index-BCEz3S-z.js → index-CrtiywTB.js} +13 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{requiredMark-D7kAMXHM.js → requiredMark-DCD-ZA51.js} +1 -1
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +1 -1
- package/dist/types/components/co-combobox/co-combobox.d.ts +1 -1
- package/dist/types/components/co-command-search/co-command-search.d.ts +7 -0
- package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +5 -1
- package/dist/types/components/co-popover/co-popover.d.ts +8 -1
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +21 -0
- package/dist/types/components/co-select/co-select.d.ts +7 -0
- package/dist/types/components/co-toast/co-toast.d.ts +19 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +6 -0
- package/dist/types/components.d.ts +66 -8
- package/dist/types/utils/columnResize.d.ts +42 -0
- package/dist/types/utils/popover-stack.d.ts +5 -0
- package/package.json +2 -2
- package/dist/cobalt/p-0f18c4d2.entry.js +0 -1
- package/dist/cobalt/p-260196cb.entry.js +0 -1
- package/dist/cobalt/p-27dce0ac.entry.js +0 -1
- package/dist/cobalt/p-2bf44b2b.entry.js +0 -1
- package/dist/cobalt/p-2c100914.entry.js +0 -1
- package/dist/cobalt/p-2e1d930f.entry.js +0 -1
- package/dist/cobalt/p-35518aee.entry.js +0 -1
- package/dist/cobalt/p-38cf47b6.entry.js +0 -1
- package/dist/cobalt/p-445acc4c.entry.js +0 -1
- package/dist/cobalt/p-4de9232a.entry.js +0 -1
- package/dist/cobalt/p-523aca9f.entry.js +0 -1
- package/dist/cobalt/p-5319ac3f.entry.js +0 -1
- package/dist/cobalt/p-53a276a8.entry.js +0 -1
- package/dist/cobalt/p-543cc00d.entry.js +0 -1
- package/dist/cobalt/p-59f7d44b.entry.js +0 -1
- package/dist/cobalt/p-5b984323.entry.js +0 -1
- package/dist/cobalt/p-5bfaca70.entry.js +0 -1
- package/dist/cobalt/p-5c250889.entry.js +0 -1
- package/dist/cobalt/p-5e21ca17.entry.js +0 -1
- package/dist/cobalt/p-61d5ca3c.entry.js +0 -1
- package/dist/cobalt/p-6357d9dd.entry.js +0 -1
- package/dist/cobalt/p-69b8d98e.entry.js +0 -1
- package/dist/cobalt/p-6b089060.entry.js +0 -1
- package/dist/cobalt/p-7d077a7c.entry.js +0 -1
- package/dist/cobalt/p-7f4bf341.entry.js +0 -1
- package/dist/cobalt/p-869c338a.entry.js +0 -1
- package/dist/cobalt/p-913b2a14.entry.js +0 -1
- package/dist/cobalt/p-9824c478.entry.js +0 -1
- package/dist/cobalt/p-99c1ff0f.entry.js +0 -1
- package/dist/cobalt/p-BCEz3S-z.js +0 -2
- package/dist/cobalt/p-C-d15gih.js +0 -1
- package/dist/cobalt/p-D5gr2ent.js +0 -1
- package/dist/cobalt/p-a4f39ba2.entry.js +0 -1
- package/dist/cobalt/p-a7c23027.entry.js +0 -1
- package/dist/cobalt/p-ab8e150e.entry.js +0 -1
- package/dist/cobalt/p-bad7ce84.entry.js +0 -1
- package/dist/cobalt/p-c237add6.entry.js +0 -1
- package/dist/cobalt/p-c32949a5.entry.js +0 -1
- package/dist/cobalt/p-cd5555d2.entry.js +0 -1
- package/dist/cobalt/p-d56b8a1f.entry.js +0 -1
- package/dist/cobalt/p-d6fff135.entry.js +0 -1
- package/dist/cobalt/p-d71b87d3.entry.js +0 -1
- package/dist/cobalt/p-d83e5189.entry.js +0 -1
- package/dist/cobalt/p-de5a05fc.entry.js +0 -1
- package/dist/cobalt/p-e2188319.entry.js +0 -1
- package/dist/cobalt/p-f4370423.entry.js +0 -1
- package/dist/cobalt/p-f4e4bebf.entry.js +0 -1
- package/dist/cobalt/p-f7ae0228.entry.js +0 -1
- package/dist/components/p-B21rOC2Y.js +0 -1
- package/dist/components/p-BXtiFFM2.js +0 -1
- package/dist/components/p-BdArvV6T.js +0 -1
- package/dist/components/p-BnkGlFYy.js +0 -1
- package/dist/components/p-CfeNhAHW.js +0 -1
- package/dist/components/p-ChLib-si.js +0 -1
- package/dist/components/p-D-3BTFRs.js +0 -1
- package/dist/components/p-D0wrmRH8.js +0 -1
- package/dist/components/p-DZX7cEqP.js +0 -1
- package/dist/components/p-W8Y8ZuPs.js +0 -1
- package/dist/components/p-cteJszd-.js +0 -1
- package/dist/components/p-mUoTCiYa.js +0 -1
- package/dist/components/p-ySi6UG0O.js +0 -1
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
background: transparent;
|
|
41
41
|
cursor: pointer;
|
|
42
42
|
color: var(--co-semantic-border-subtle);
|
|
43
|
-
transition: color
|
|
43
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out), transform var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
.co-rating__star:hover:not(:disabled) {
|
|
@@ -36,16 +36,16 @@ export class CoRating {
|
|
|
36
36
|
const iconSize = this.size === 'large' ? 28 : 20;
|
|
37
37
|
const active = this.hoverValue || this.value;
|
|
38
38
|
const stars = Array.from({ length: this.max }, (_, i) => i + 1);
|
|
39
|
-
return (h("div", { key: '
|
|
39
|
+
return (h("div", { key: '3e6bb945a46ad896a07d2588c6a4d969bce3dfcf', class: {
|
|
40
40
|
'co-rating': true,
|
|
41
41
|
'co-rating--disabled': this.disabled,
|
|
42
42
|
'co-rating--readonly': this.readOnly,
|
|
43
43
|
[`co-rating--${this.size}`]: true,
|
|
44
|
-
} }, this.label && h("label", { key: '
|
|
44
|
+
} }, this.label && h("label", { key: 'ef9971e3314eb4f270c35b94d2a85f25b8861b68', class: "co-rating__label" }, this.label), h("div", { key: 'b1c3997ec8a3a8950e24ef97af571d5db7283b50', class: "co-rating__stars", onMouseLeave: this.handleMouseLeave }, stars.map(star => (h("button", { class: {
|
|
45
45
|
'co-rating__star': true,
|
|
46
46
|
'co-rating__star--active': star <= active,
|
|
47
47
|
'co-rating__star--hover': this.hoverValue > 0 && star <= this.hoverValue,
|
|
48
|
-
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '
|
|
48
|
+
}, type: "button", tabIndex: this.disabled || this.readOnly ? -1 : 0, disabled: this.disabled, onClick: () => this.handleClick(star), onMouseEnter: () => this.handleMouseEnter(star), "aria-label": `${star} of ${this.max}` }, h("co-icon", { name: this.icon, size: iconSize, weight: star <= active ? 'fill' : 'regular' }))))), this.helperText && (h("div", { key: '523e14b17fceb0f52f77cd1e9b4053fdd25dffba', class: `co-rating__helper co-rating__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'ae894de5a6c390837c511364b5e8b7ba8a8123f1', name: this.statusIcon, size: 14, weight: "fill", class: "co-rating__helper-icon" }), h("span", { key: '23d04a20799d6b15693c7eb119922e5584031373', class: "co-rating__helper-text" }, this.helperText)))));
|
|
49
49
|
}
|
|
50
50
|
static get is() { return "co-rating"; }
|
|
51
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
min-height: 40px;
|
|
65
65
|
box-sizing: border-box;
|
|
66
66
|
cursor: pointer;
|
|
67
|
-
transition: border-color
|
|
67
|
+
transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/* ── Variant: flat (no border/background — reads as content) ──────────
|
|
@@ -162,6 +162,21 @@
|
|
|
162
162
|
align-items: center;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
/* Badge de estado del trigger (triggerBadgeIcon): pill chico tras el label.
|
|
166
|
+
El fondo por defecto es un velo neutro que funciona sobre triggers tintados
|
|
167
|
+
(navbar por color de workspace); los hosts lo ajustan vía
|
|
168
|
+
--co-ref-field-trigger-badge-bg. */
|
|
169
|
+
.co-ref-field__trigger-badge {
|
|
170
|
+
flex-shrink: 0;
|
|
171
|
+
display: grid;
|
|
172
|
+
place-items: center;
|
|
173
|
+
width: 18px;
|
|
174
|
+
height: 18px;
|
|
175
|
+
border-radius: var(--co-border-radius-xxs);
|
|
176
|
+
background: var(--co-ref-field-trigger-badge-bg, rgba(0, 0, 0, 0.22));
|
|
177
|
+
color: var(--co-semantic-text-default);
|
|
178
|
+
}
|
|
179
|
+
|
|
165
180
|
.co-ref-field__clear {
|
|
166
181
|
flex-shrink: 0;
|
|
167
182
|
display: flex;
|
|
@@ -172,7 +187,7 @@
|
|
|
172
187
|
background: transparent;
|
|
173
188
|
cursor: pointer;
|
|
174
189
|
color: var(--co-semantic-text-muted);
|
|
175
|
-
transition: color
|
|
190
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
176
191
|
}
|
|
177
192
|
|
|
178
193
|
.co-ref-field__clear:hover {
|
|
@@ -303,7 +318,7 @@
|
|
|
303
318
|
background: transparent;
|
|
304
319
|
cursor: pointer;
|
|
305
320
|
color: var(--co-color-gray-500);
|
|
306
|
-
transition: color
|
|
321
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
307
322
|
flex-shrink: 0;
|
|
308
323
|
}
|
|
309
324
|
|
|
@@ -386,7 +401,7 @@
|
|
|
386
401
|
letter-spacing: var(--co-font-letter-spacing-body);
|
|
387
402
|
white-space: nowrap;
|
|
388
403
|
cursor: pointer;
|
|
389
|
-
transition: opacity
|
|
404
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
390
405
|
box-sizing: border-box;
|
|
391
406
|
min-height: 32px;
|
|
392
407
|
}
|
|
@@ -56,6 +56,15 @@ export class CoRefField {
|
|
|
56
56
|
this.maxChips = 0;
|
|
57
57
|
/** Panel color theme. 'auto' follows trigger, 'dark' forces dark panel, 'light' forces light. */
|
|
58
58
|
this.panelTheme = 'auto';
|
|
59
|
+
/**
|
|
60
|
+
* Phosphor icon rendered as a small status badge after the selected label in
|
|
61
|
+
* the trigger (e.g. 'funnel' = strict workspace filter active). Only shows
|
|
62
|
+
* while a value is selected. Empty = no badge. Tint the pill via
|
|
63
|
+
* --co-ref-field-trigger-badge-bg.
|
|
64
|
+
*/
|
|
65
|
+
this.triggerBadgeIcon = '';
|
|
66
|
+
/** Accessible name / tooltip for the trigger badge. */
|
|
67
|
+
this.triggerBadgeLabel = '';
|
|
59
68
|
/**
|
|
60
69
|
* Shape of the leading avatar (selected value + option rows). Defaults to
|
|
61
70
|
* 'circle' (people refs); use 'square' for company/workspace refs — it renders
|
|
@@ -78,6 +87,18 @@ export class CoRefField {
|
|
|
78
87
|
if (this.disabled)
|
|
79
88
|
e.stopPropagation();
|
|
80
89
|
};
|
|
90
|
+
/** Change de la co-option-list: `value: null` = deselección explícita (la X
|
|
91
|
+
* de la fila) → mismo camino que la X del trigger (clear + coClear). El
|
|
92
|
+
* resto sigue por handleOptionClick con el ítem. */
|
|
93
|
+
this.handleListChange = (detail) => {
|
|
94
|
+
if (!this.multiple && detail.value === null) {
|
|
95
|
+
this.value = '';
|
|
96
|
+
this.coClear.emit();
|
|
97
|
+
this.isOpen = false;
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.handleOptionClick(detail.item);
|
|
101
|
+
};
|
|
81
102
|
this.handleOptionClick = (option) => {
|
|
82
103
|
if (this.multiple) {
|
|
83
104
|
const current = this.parsedValue;
|
|
@@ -273,7 +294,7 @@ export class CoRefField {
|
|
|
273
294
|
[`co-ref-field--${this.normalizedSize}`]: true,
|
|
274
295
|
[`co-ref-field--${this.status}`]: this.status !== 'default',
|
|
275
296
|
'co-ref-field--flat': this.variant === 'flat',
|
|
276
|
-
}, onClick: this.handleTriggerClick }, this.iconLeft && (h("span", { class: "co-ref-field__icon" }, h("co-icon", { name: this.iconLeft, size: 16 }))), h("div", { class: "co-ref-field__value" }, !hasValue && h("span", { class: "co-ref-field__placeholder", part: "trigger-placeholder" }, this.placeholder), hasValue && !this.multiple && this.renderSingleValue(selected[0]), hasValue && this.multiple && this.renderMultipleValue(selected)), hasValue && this.clearable && !this.disabled && (h("button", { class: "co-ref-field__clear", part: "trigger-clear", onClick: this.handleClear, type: "button" }, h("co-icon", { name: "x", size: 14 }))), h("span", { class: "co-ref-field__caret", part: "trigger-chevron" }, h("co-icon", { name: "caret-up-down", size: 16 }))));
|
|
297
|
+
}, onClick: this.handleTriggerClick }, this.iconLeft && (h("span", { class: "co-ref-field__icon" }, h("co-icon", { name: this.iconLeft, size: 16 }))), h("div", { class: "co-ref-field__value" }, !hasValue && h("span", { class: "co-ref-field__placeholder", part: "trigger-placeholder" }, this.placeholder), hasValue && !this.multiple && this.renderSingleValue(selected[0]), hasValue && this.multiple && this.renderMultipleValue(selected)), hasValue && this.triggerBadgeIcon && (h("span", { class: "co-ref-field__trigger-badge", part: "trigger-badge", role: "img", title: this.triggerBadgeLabel || undefined, "aria-label": this.triggerBadgeLabel || undefined }, h("co-icon", { name: this.triggerBadgeIcon, size: 11, weight: "fill" }))), hasValue && this.clearable && !this.disabled && (h("button", { class: "co-ref-field__clear", part: "trigger-clear", onClick: this.handleClear, type: "button" }, h("co-icon", { name: "x", size: 14 }))), h("span", { class: "co-ref-field__caret", part: "trigger-chevron" }, h("co-icon", { name: "caret-up-down", size: 16 }))));
|
|
277
298
|
}
|
|
278
299
|
/**
|
|
279
300
|
* Leading visual for a selected value / chip. Prefers a real avatar (image
|
|
@@ -320,11 +341,11 @@ export class CoRefField {
|
|
|
320
341
|
'co-ref-field__panel': true,
|
|
321
342
|
'co-ref-field__panel--dark': this.panelTheme === 'dark',
|
|
322
343
|
'co-ref-field__panel--light': this.panelTheme === 'light',
|
|
323
|
-
} }, h("co-option-list", { ref: (el) => (this.optionListEl = el), items: typeof this.options === 'string' ? this.options : JSON.stringify(this.options), value: this.value, selectedItems: typeof this.selectedDisplay === 'string' ? this.selectedDisplay : JSON.stringify(this.selectedDisplay), multiple: this.multiple, selectedFirst: this.multiple, reorderable: this.multiple, selectedAffordance: "deselect", searchable: this.searchable, searchPlaceholder: this.searchPlaceholder, searchDebounce: this.searchDebounce, loading: this.loading, total: this.total, emptyMessage: this.emptyMessage, avatarShape: this.avatarShape, onCoSearch: (e) => this.coSearch.emit(e.detail), onCoChange: (e) => this.
|
|
344
|
+
}, style: this.panelWidth ? { width: this.panelWidth } : undefined }, h("co-option-list", { ref: (el) => (this.optionListEl = el), items: typeof this.options === 'string' ? this.options : JSON.stringify(this.options), value: this.value, selectedItems: typeof this.selectedDisplay === 'string' ? this.selectedDisplay : JSON.stringify(this.selectedDisplay), multiple: this.multiple, selectedFirst: this.multiple, reorderable: this.multiple, selectedAffordance: "deselect", searchable: this.searchable, searchPlaceholder: this.searchPlaceholder, searchDebounce: this.searchDebounce, loading: this.loading, total: this.total, emptyMessage: this.emptyMessage, avatarShape: this.avatarShape, onCoSearch: (e) => this.coSearch.emit(e.detail), onCoChange: (e) => this.handleListChange(e.detail), onCoReorder: (e) => this.handleReorder(e.detail), onCoLoadMore: () => this.coLoadMore.emit() }, h("slot", { name: "panel-footer", slot: "footer" }), this.showFooter && (h("div", { class: "co-ref-field__footer", slot: "footer" }, this.footerSecondaryLabel && (h("button", { class: "co-ref-field__footer-btn co-ref-field__footer-btn--secondary", type: "button", onClick: this.handleFooterSecondary }, h("co-icon", { name: "plus", size: 16 }), h("span", null, this.footerSecondaryLabel))), h("button", { class: "co-ref-field__footer-btn co-ref-field__footer-btn--primary", type: "button", onClick: this.handleFooterPrimary }, h("co-icon", { name: "check", size: 16 }), h("span", null, this.footerPrimaryLabel)))))));
|
|
324
345
|
}
|
|
325
346
|
// ── Main render ────────────────────────────────────────────
|
|
326
347
|
render() {
|
|
327
|
-
return (h("div", { key: '
|
|
348
|
+
return (h("div", { key: '2947ab90a0811a53bc77263f96f13da30a2ed975', class: "co-ref-field" }, (this.label || this.secondaryLabel) && (h("div", { key: '5e16afd2e37e56191e019cdf4be27aea292836eb', class: "co-ref-field__labels" }, this.label && (h("label", { key: '28b97b7f577fa1a1ea2c2c9a8bbd31aa9915ef7f', class: "co-ref-field__label" }, this.labelIcon && (h("co-icon", { key: 'a02fdfc4ebd37c6b7fe1ff84788fb5b94b11c5bf', class: "co-ref-field__label-icon", name: this.labelIcon, size: 16 })), this.label, h(RequiredMark, { key: '933bb1d1d78894a9d127d0666f184a470bbe621f', required: this.required }))), this.secondaryLabel && (h("span", { key: 'cfe226e11e1cafb1187a90c4bba8abfe2318a9ca', class: "co-ref-field__secondary-label" }, this.secondaryLabel)))), h("co-popover", { key: 'd6fb3e669735e53c4b01269a69c018d703761758', open: this.isOpen, placement: "bottom-start", matchWidth: !this.panelWidth, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '7f80d30580f77a23b38f85a4771b6fb1170f6791', slot: "trigger" }, this.renderTrigger()), this.isOpen && this.renderPanel()), this.helperText && (h("div", { key: '9ed05c93faee76f9d4ff18f41f8ae1e8ce60a734', class: `co-ref-field__helper co-ref-field__helper--${this.status}` }, this.status !== 'default' && (h("co-icon", { key: 'ffcb659c5dd52bc6f8b14ca982d0cba5f4089529', name: this.status === 'error' ? 'warning-circle' : this.status === 'success' ? 'check-circle' : 'info', size: 14 })), h("span", { key: 'ab0f53e7e2ade7d635389767b0b31d89844697ae' }, this.helperText)))));
|
|
328
349
|
}
|
|
329
350
|
static get is() { return "co-ref-field"; }
|
|
330
351
|
static get encapsulation() { return "shadow"; }
|
|
@@ -895,6 +916,65 @@ export class CoRefField {
|
|
|
895
916
|
"attribute": "panel-theme",
|
|
896
917
|
"defaultValue": "'auto'"
|
|
897
918
|
},
|
|
919
|
+
"triggerBadgeIcon": {
|
|
920
|
+
"type": "string",
|
|
921
|
+
"mutable": false,
|
|
922
|
+
"complexType": {
|
|
923
|
+
"original": "string",
|
|
924
|
+
"resolved": "string",
|
|
925
|
+
"references": {}
|
|
926
|
+
},
|
|
927
|
+
"required": false,
|
|
928
|
+
"optional": false,
|
|
929
|
+
"docs": {
|
|
930
|
+
"tags": [],
|
|
931
|
+
"text": "Phosphor icon rendered as a small status badge after the selected label in\nthe trigger (e.g. 'funnel' = strict workspace filter active). Only shows\nwhile a value is selected. Empty = no badge. Tint the pill via\n--co-ref-field-trigger-badge-bg."
|
|
932
|
+
},
|
|
933
|
+
"getter": false,
|
|
934
|
+
"setter": false,
|
|
935
|
+
"reflect": false,
|
|
936
|
+
"attribute": "trigger-badge-icon",
|
|
937
|
+
"defaultValue": "''"
|
|
938
|
+
},
|
|
939
|
+
"triggerBadgeLabel": {
|
|
940
|
+
"type": "string",
|
|
941
|
+
"mutable": false,
|
|
942
|
+
"complexType": {
|
|
943
|
+
"original": "string",
|
|
944
|
+
"resolved": "string",
|
|
945
|
+
"references": {}
|
|
946
|
+
},
|
|
947
|
+
"required": false,
|
|
948
|
+
"optional": false,
|
|
949
|
+
"docs": {
|
|
950
|
+
"tags": [],
|
|
951
|
+
"text": "Accessible name / tooltip for the trigger badge."
|
|
952
|
+
},
|
|
953
|
+
"getter": false,
|
|
954
|
+
"setter": false,
|
|
955
|
+
"reflect": false,
|
|
956
|
+
"attribute": "trigger-badge-label",
|
|
957
|
+
"defaultValue": "''"
|
|
958
|
+
},
|
|
959
|
+
"panelWidth": {
|
|
960
|
+
"type": "string",
|
|
961
|
+
"mutable": false,
|
|
962
|
+
"complexType": {
|
|
963
|
+
"original": "string",
|
|
964
|
+
"resolved": "string | undefined",
|
|
965
|
+
"references": {}
|
|
966
|
+
},
|
|
967
|
+
"required": false,
|
|
968
|
+
"optional": true,
|
|
969
|
+
"docs": {
|
|
970
|
+
"tags": [],
|
|
971
|
+
"text": "Fixed panel width (CSS size, e.g. '264px'). By default the panel matches\nthe trigger width (form-field convention); set this for compact triggers\nwhose panel needs room of its own (e.g. the navbar workspace selector with\nits panel-footer switch). The panel stays anchored to the trigger's start\nedge."
|
|
972
|
+
},
|
|
973
|
+
"getter": false,
|
|
974
|
+
"setter": false,
|
|
975
|
+
"reflect": false,
|
|
976
|
+
"attribute": "panel-width"
|
|
977
|
+
},
|
|
898
978
|
"avatarShape": {
|
|
899
979
|
"type": "string",
|
|
900
980
|
"mutable": false,
|
|
@@ -40,7 +40,7 @@ co-rich-text-editor {
|
|
|
40
40
|
background: var(--co-semantic-surface-page);
|
|
41
41
|
border: 1px solid var(--co-semantic-border-field);
|
|
42
42
|
border-radius: var(--co-border-radius-xs);
|
|
43
|
-
transition: border-color
|
|
43
|
+
transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
44
44
|
min-height: 0;
|
|
45
45
|
flex: 1;
|
|
46
46
|
position: relative;
|
|
@@ -525,7 +525,7 @@ co-rich-text-editor {
|
|
|
525
525
|
font-size: 11px;
|
|
526
526
|
cursor: pointer;
|
|
527
527
|
white-space: nowrap;
|
|
528
|
-
transition: background
|
|
528
|
+
transition: background var(--co-motion-duration-fast), border-color var(--co-motion-duration-fast);
|
|
529
529
|
}
|
|
530
530
|
|
|
531
531
|
.co-rte-bubble__select-trigger:hover {
|
|
@@ -700,7 +700,7 @@ co-rich-text-editor {
|
|
|
700
700
|
border: none;
|
|
701
701
|
border-radius: 3px;
|
|
702
702
|
cursor: pointer;
|
|
703
|
-
transition: transform
|
|
703
|
+
transition: transform var(--co-motion-duration-fast), box-shadow var(--co-motion-duration-fast);
|
|
704
704
|
}
|
|
705
705
|
|
|
706
706
|
.co-rte-bubble__color-swatch:hover {
|
|
@@ -1225,7 +1225,7 @@ co-rich-text-editor {
|
|
|
1225
1225
|
background: transparent;
|
|
1226
1226
|
color: var(--co-semantic-text-default, #333);
|
|
1227
1227
|
cursor: pointer;
|
|
1228
|
-
transition: background
|
|
1228
|
+
transition: background var(--co-motion-duration-fast), border-color var(--co-motion-duration-fast);
|
|
1229
1229
|
}
|
|
1230
1230
|
|
|
1231
1231
|
.co-rte-img-layout__btn:hover {
|
|
@@ -1262,7 +1262,7 @@ co-rich-text-editor {
|
|
|
1262
1262
|
border-radius: 4px;
|
|
1263
1263
|
pointer-events: none;
|
|
1264
1264
|
opacity: 0;
|
|
1265
|
-
transition: opacity
|
|
1265
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
1266
1266
|
z-index: 100;
|
|
1267
1267
|
}
|
|
1268
1268
|
.co-rte-img-layout__btn[data-tooltip]:hover::after {
|
|
@@ -2031,7 +2031,7 @@ export class CoRichTextEditor {
|
|
|
2031
2031
|
render() {
|
|
2032
2032
|
const showToolbar = this.resolvedToolbar !== 'none' && !this.readonly && !this.disabled;
|
|
2033
2033
|
const showCount = this.showCharacterCount || this.maxLength != null;
|
|
2034
|
-
return (h("div", { key: '
|
|
2034
|
+
return (h("div", { key: 'c3753a40ce423ef2c8e744be02e79536200b00cf', class: {
|
|
2035
2035
|
'co-rich-text-editor': true,
|
|
2036
2036
|
'co-rich-text-editor--focused': this.hasFocus,
|
|
2037
2037
|
'co-rich-text-editor--disabled': this.disabled,
|
|
@@ -2039,10 +2039,10 @@ export class CoRichTextEditor {
|
|
|
2039
2039
|
'co-rich-text-editor--loading': !this.ready,
|
|
2040
2040
|
[`co-rich-text-editor--${this.status}`]: this.status !== 'default',
|
|
2041
2041
|
'co-rich-text-editor--flat': this.variant === 'flat',
|
|
2042
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
2042
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'ea8d8b975095ace8694ac7ae523e2e9f6385c52d', class: "co-rich-text-editor__labels" }, this.label && h("label", { key: '0346e882e321f10813b20a9d7f6ed68e30270d3d', class: "co-rich-text-editor__label", part: "label" }, this.label), this.secondaryLabel && (h("span", { key: 'd6c48a58fb7b37ab44f2a23a787f490368623bfc', class: "co-rich-text-editor__secondary-label" }, this.secondaryLabel)))), h("div", { key: '623338675e90a2b6cef791a4016652c1ad6e62f6', class: "co-rich-text-editor__frame" }, showToolbar && (h("co-rich-text-toolbar", { key: '8261b966367504c7befe6d0de27970563bf8a6b7', class: "co-rich-text-editor__toolbar", part: "toolbar", variant: this.resolvedToolbar, disabled: this.disabled || this.readonly, locale: this.locale, attachmentsEnabled: this.attachmentsEnabled, attachmentAccept: this.attachmentAccept, onCoAttachmentsSelected: (e) => {
|
|
2043
2043
|
e.stopPropagation();
|
|
2044
2044
|
this.coAttachmentsSelected.emit(e.detail);
|
|
2045
|
-
}, ref: (el) => (this.toolbarEl = el) })), h("div", { key: '
|
|
2045
|
+
}, ref: (el) => (this.toolbarEl = el) })), h("div", { key: '3561ed2f658f81f7704e597d00e64183bfbe3457', class: "co-rich-text-editor__box" }, h("div", { key: '1ce7f396efdb92e4a4cd8e25e4ae731af96c50cc', class: "co-rte-content", part: "content", role: "textbox", "aria-multiline": "true", "aria-label": this.label, "aria-required": this.required ? 'true' : undefined, "aria-invalid": this.status === 'error' ? 'true' : undefined, ref: (el) => (this.contentEl = el) }))), h("div", { key: '72d2cd2fa5a5b8b54f5d024fa927e47f79c3d30a', class: "co-rich-text-editor__footer" }, this.helperText && (h("div", { key: 'a7841aa36dd1a63907d9811f563b286ccaa2136c', class: `co-rich-text-editor__helper co-rich-text-editor__helper--${this.status}`, part: "helper" }, h("co-icon", { key: 'd3da4da7e0ccbea5c0be2ea0fd37395aaff365be', name: this.helperIcon, size: 14 }), h("span", { key: '8cdfccf2edd7505e7abd13258155a5b8745bfb78' }, this.helperText))), showCount && (h("span", { key: 'e257595d41c060544862068a0d35b9e3f3a4b62a', class: "co-rich-text-editor__count", ref: (el) => (this.charCountEl = el) }, this.charCount, this.maxLength != null ? ` / ${this.maxLength}` : '')))));
|
|
2046
2046
|
}
|
|
2047
2047
|
static get is() { return "co-rich-text-editor"; }
|
|
2048
2048
|
static get originalStyleUrls() {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
border-radius: 4px;
|
|
54
54
|
pointer-events: none;
|
|
55
55
|
opacity: 0;
|
|
56
|
-
transition: opacity
|
|
56
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
57
57
|
z-index: 9999;
|
|
58
58
|
}
|
|
59
59
|
[data-tooltip]:hover::after {
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
background: transparent;
|
|
86
86
|
color: var(--co-semantic-text-default, #333);
|
|
87
87
|
cursor: pointer;
|
|
88
|
-
transition: background
|
|
88
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
.co-rich-text-toolbar__btn:hover:not(:disabled):not(.co-rich-text-toolbar__btn--active) {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
font-size: var(--co-font-size-12, 12px);
|
|
129
129
|
cursor: pointer;
|
|
130
130
|
white-space: nowrap;
|
|
131
|
-
transition: background
|
|
131
|
+
transition: background var(--co-motion-duration-fast), border-color var(--co-motion-duration-fast);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
.co-rich-text-toolbar__select-btn:hover:not(:disabled) {
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
cursor: pointer;
|
|
210
210
|
background: var(--co-semantic-surface-secondary, #fff);
|
|
211
211
|
color: var(--co-semantic-text-default, #333);
|
|
212
|
-
transition: background
|
|
212
|
+
transition: background var(--co-motion-duration-fast);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
215
|
.co-rich-text-toolbar__popover-btn:hover:not(.co-rich-text-toolbar__popover-btn--primary) {
|
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
font-size: var(--co-font-size-14, 14px);
|
|
247
247
|
cursor: pointer;
|
|
248
248
|
text-align: left;
|
|
249
|
-
transition: background
|
|
249
|
+
transition: background var(--co-motion-duration-fast);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
.co-rich-text-toolbar__popover-option:hover {
|
|
@@ -285,7 +285,7 @@
|
|
|
285
285
|
font-size: var(--co-font-size-14, 14px);
|
|
286
286
|
cursor: pointer;
|
|
287
287
|
text-align: left;
|
|
288
|
-
transition: background
|
|
288
|
+
transition: background var(--co-motion-duration-fast);
|
|
289
289
|
}
|
|
290
290
|
|
|
291
291
|
.co-rich-text-toolbar__dropdown-item:hover {
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
border: none;
|
|
361
361
|
border-radius: 3px;
|
|
362
362
|
cursor: pointer;
|
|
363
|
-
transition: transform
|
|
363
|
+
transition: transform var(--co-motion-duration-fast), box-shadow var(--co-motion-duration-fast);
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.co-rich-text-toolbar__color-swatch:hover {
|
|
@@ -459,7 +459,7 @@
|
|
|
459
459
|
background: transparent;
|
|
460
460
|
color: var(--co-semantic-text-secondary, #666);
|
|
461
461
|
cursor: pointer;
|
|
462
|
-
transition: background
|
|
462
|
+
transition: background var(--co-motion-duration-fast), color var(--co-motion-duration-fast);
|
|
463
463
|
}
|
|
464
464
|
|
|
465
465
|
.co-rich-text-toolbar__table-tab:hover {
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
border-radius: 3px;
|
|
492
492
|
background: transparent;
|
|
493
493
|
cursor: pointer;
|
|
494
|
-
transition: background
|
|
494
|
+
transition: background var(--co-motion-duration-instant), border-color var(--co-motion-duration-instant);
|
|
495
495
|
}
|
|
496
496
|
|
|
497
497
|
.co-rich-text-toolbar__grid-cell:hover,
|
|
@@ -593,7 +593,7 @@
|
|
|
593
593
|
border: none;
|
|
594
594
|
border-radius: var(--co-border-radius-xxs, 4px);
|
|
595
595
|
cursor: pointer;
|
|
596
|
-
transition: opacity
|
|
596
|
+
transition: opacity var(--co-motion-duration-fast);
|
|
597
597
|
}
|
|
598
598
|
|
|
599
599
|
.co-rich-text-toolbar__table-btn--primary {
|
|
@@ -639,7 +639,7 @@
|
|
|
639
639
|
background: transparent;
|
|
640
640
|
color: var(--co-semantic-text-default, #333);
|
|
641
641
|
cursor: pointer;
|
|
642
|
-
transition: background
|
|
642
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
.co-rich-text-toolbar__split-caret:hover:not(:disabled),
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
border-radius: 8px;
|
|
681
681
|
background: var(--co-semantic-surface-secondary, #fff);
|
|
682
682
|
cursor: pointer;
|
|
683
|
-
transition: border-color
|
|
683
|
+
transition: border-color var(--co-motion-duration-fast), box-shadow var(--co-motion-duration-fast), background var(--co-motion-duration-fast);
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
.co-rich-text-toolbar__listpicker-item:hover {
|
|
@@ -13,11 +13,11 @@ export class CoRow {
|
|
|
13
13
|
this.size = 'sm';
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: 'cf40ecb8896089a87f527be917396d1f01057cec', class: {
|
|
17
17
|
'co-row': true,
|
|
18
18
|
[`co-row--${this.position}`]: true,
|
|
19
19
|
[`co-row--${this.size}`]: true,
|
|
20
|
-
}, part: "row" }, h("div", { key: '
|
|
20
|
+
}, part: "row" }, h("div", { key: '8d24887fb9704673fe0facfaabd792ca455bd479', class: "co-row__prefix" }, h("slot", { key: 'd2546cc155fe508f8f2a7eba580a99e370e82887', name: "prefix" })), h("div", { key: '5e6c33efacc0dde29f202a09c664294ad7524572', class: "co-row__content" }, h("slot", { key: '5efffa62218f021f439ad12eba00cb1479ccfc58' })), h("div", { key: '42cc9c00f8ca199e4e29ac8e2f6b6b585c2b3a99', class: "co-row__suffix" }, h("slot", { key: '3389e9ef5a2914629a7c2d1246d37c5fa956be33', name: "suffix" }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "co-row"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -735,7 +735,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
735
735
|
min-height: 40px;
|
|
736
736
|
box-sizing: border-box;
|
|
737
737
|
cursor: pointer;
|
|
738
|
-
transition: border-color
|
|
738
|
+
transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), box-shadow var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
739
739
|
}
|
|
740
740
|
|
|
741
741
|
/* ── Variant: flat (no border/background — reads as content) ──────────
|
|
@@ -788,7 +788,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
788
788
|
background: transparent;
|
|
789
789
|
cursor: pointer;
|
|
790
790
|
color: var(--co-color-gray-500);
|
|
791
|
-
transition: color
|
|
791
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
792
792
|
flex-shrink: 0;
|
|
793
793
|
}
|
|
794
794
|
|
|
@@ -877,7 +877,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
877
877
|
background: transparent;
|
|
878
878
|
cursor: pointer;
|
|
879
879
|
color: var(--co-semantic-text-muted);
|
|
880
|
-
transition: color
|
|
880
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
881
881
|
}
|
|
882
882
|
|
|
883
883
|
.co-select__clear:hover {
|
|
@@ -965,7 +965,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
965
965
|
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
966
966
|
border-radius: var(--co-border-radius-xs);
|
|
967
967
|
cursor: pointer;
|
|
968
|
-
transition: background
|
|
968
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
969
969
|
min-height: 32px;
|
|
970
970
|
box-sizing: border-box;
|
|
971
971
|
}
|
|
@@ -25,6 +25,10 @@ export class CoSelect {
|
|
|
25
25
|
this.searchable = false;
|
|
26
26
|
this.searchPlaceholder = 'Search…';
|
|
27
27
|
this.emptyText = 'No results';
|
|
28
|
+
/** Footer de confirmación al pie del panel (paridad co-combobox/co-ref-field). */
|
|
29
|
+
this.showFooter = false;
|
|
30
|
+
/** Label del botón primario del footer. */
|
|
31
|
+
this.footerPrimaryLabel = 'Ok';
|
|
28
32
|
this.isOpen = false;
|
|
29
33
|
this.scrollTop = 0;
|
|
30
34
|
this.searchText = '';
|
|
@@ -56,6 +60,10 @@ export class CoSelect {
|
|
|
56
60
|
this.coClear.emit();
|
|
57
61
|
this.coChange.emit(this.multiple ? [] : '');
|
|
58
62
|
};
|
|
63
|
+
this.handleFooterPrimary = () => {
|
|
64
|
+
this.coFooterPrimary.emit();
|
|
65
|
+
this.isOpen = false;
|
|
66
|
+
};
|
|
59
67
|
this.handleOptionClick = (optionValue) => {
|
|
60
68
|
if (this.multiple) {
|
|
61
69
|
const sel = [...this.selectedValues];
|
|
@@ -213,20 +221,20 @@ export class CoSelect {
|
|
|
213
221
|
var _a;
|
|
214
222
|
const selected = this.selectedValues;
|
|
215
223
|
const options = this.filteredOptions;
|
|
216
|
-
return (h("div", { key: '
|
|
224
|
+
return (h("div", { key: 'bad4f3499f16c7bbe02c6ca688350224dafc5d6b', class: {
|
|
217
225
|
'co-select': true,
|
|
218
226
|
'co-select--open': this.isOpen,
|
|
219
227
|
'co-select--disabled': this.disabled,
|
|
220
228
|
[`co-select--${this.size}`]: true,
|
|
221
229
|
[`co-select--${this.status}`]: this.status !== 'default',
|
|
222
230
|
'co-select--flat': this.variant === 'flat',
|
|
223
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
231
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '16f9d5d6b49559400c9bec5e14e1c4df027ce1ea', class: "co-select__labels" }, this.label && h("label", { key: '83943deadacbad791de84a140721c9ec4f33f614', class: "co-select__label" }, this.label, h(RequiredMark, { key: 'f8d016bdce053c0f9ff11a197a9786eadb80b2c8', required: this.required })), this.secondaryLabel && h("span", { key: '33a470cf9faa4dbd57a935efa076f6cfcacbf56e', class: "co-select__secondary-label" }, this.secondaryLabel))), h("co-popover", { key: '363d1cbfab691acc7b63fb0c42864a9753e66b72', open: this.isOpen, placement: "bottom-start", matchWidth: true, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '9f5c31a29ea2027dc4721e6bf3eedeeb3bab1627', slot: "trigger", class: "co-select__trigger", onClick: this.handleTriggerClick }, this.iconLeft && h("co-icon", { key: 'a1a0379af6cbcf5ff9d03dd21b8a6eed67681aa3', name: this.iconLeft, size: 16, class: "co-select__icon" }), ((_a = this.selectedOption) === null || _a === void 0 ? void 0 : _a.image) && (h("img", { key: 'a6f2c211809d1db409f76d549ae8283d503e34e9', class: "co-select__flag", src: this.selectedOption.image, alt: "" })), this.multiple && this.hasValue ? (h("div", { class: "co-select__chips" }, this.selectedValues.map((v) => {
|
|
224
232
|
const opt = this.parsedOptions.find((o) => o.value === v);
|
|
225
233
|
return (h("span", { class: "co-select__chip", key: v }, h("span", { class: "co-select__chip-label" }, opt ? opt.label : v), h("button", { class: "co-select__chip-remove", type: "button", tabIndex: -1, "aria-label": "Remove", onClick: (e) => {
|
|
226
234
|
e.stopPropagation();
|
|
227
235
|
this.handleOptionClick(v);
|
|
228
236
|
} }, h("co-icon", { name: "x", size: 12 }))));
|
|
229
|
-
}))) : (h("span", { class: { 'co-select__text': true, 'co-select__text--placeholder': !this.hasValue } }, this.hasValue ? this.displayText : this.placeholder)), this.clearable && this.hasValue && !this.disabled && (h("button", { key: '
|
|
237
|
+
}))) : (h("span", { class: { 'co-select__text': true, 'co-select__text--placeholder': !this.hasValue } }, this.hasValue ? this.displayText : this.placeholder)), this.clearable && this.hasValue && !this.disabled && (h("button", { key: '3d166cacb8bffe7a9d1afb3024393ecab45983db', class: "co-select__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '9c294164bffc014958d650f0f73abe89590bf0d4', name: "x-circle", size: 16, weight: "fill" }))), h("co-icon", { key: '5fa3c25ee20c61b2a108051bfcae41e1a806230b', name: this.isOpen ? 'caret-up' : 'caret-down', size: 16, class: "co-select__caret" })), h("div", { key: 'b332004740d6b9b28009521b7462eabd5c9e34e5', class: "co-select__dropdown" }, this.isOpen && this.searchable && (h("div", { key: '5e74135218cae4f3ac081e484e0f8fd6ff243349', class: "co-select__search" }, h("co-icon", { key: '3c696854ee11e8e5dc5f2ebc30bb64b07ad251a4', name: "magnifying-glass", size: 16, class: "co-select__search-icon" }), h("input", { key: '7c3982eb4a72a89a41e6495faf9fb67ff59e39dc', class: "co-select__search-input", type: "text", placeholder: this.searchPlaceholder, value: this.searchText, onInput: this.handleSearchInput, ref: (el) => (this.searchInputEl = el) }))), this.isOpen && this.searchable && options.length === 0 && (h("div", { key: '076020e18baab05215d3203d8b75feede2e00f40', class: "co-select__empty" }, this.emptyText)), h("div", { key: '3d1ea578714f6ed2cf078365869cd15424b5e120', class: "co-select__options", ref: (el) => (this.optionsContainerEl = el) }, this.isOpen && (() => {
|
|
230
238
|
const { totalHeight, startIdx, endIdx, offsetY } = this.getVirtualSlice(options);
|
|
231
239
|
return (h("div", { class: "co-select__virtual-spacer", style: { height: `${totalHeight}px`, position: 'relative' } }, h("div", { style: { position: 'absolute', top: `${offsetY}px`, left: '0', right: '0' } }, options.slice(startIdx, endIdx).map(opt => {
|
|
232
240
|
const isSelected = selected.includes(opt.value);
|
|
@@ -237,7 +245,7 @@ export class CoSelect {
|
|
|
237
245
|
'co-select__option--disabled': isDisabled,
|
|
238
246
|
}, onClick: () => !isDisabled && this.handleOptionClick(opt.value) }, opt.image ? (h("img", { class: "co-select__option-flag", src: opt.image, alt: "", loading: "lazy" })) : opt.icon ? (h("co-icon", { name: opt.icon, size: 20, class: "co-select__option-icon" })) : null, h("span", { class: "co-select__option-label" }, this.renderLabel(opt.label)), isSelected && h("co-icon", { name: "check", size: 16, class: "co-select__option-check" })));
|
|
239
247
|
}))));
|
|
240
|
-
})()))), this.helperText && (h("div", { key: '
|
|
248
|
+
})()), this.isOpen && this.showFooter && (h("co-list-footer", { key: '2111c0b465b9bb197c1dcd4adfb9a779f8683872', class: "co-select__footer", primaryLabel: this.footerPrimaryLabel, primaryIcon: "check", onCoPrimary: this.handleFooterPrimary })))), this.helperText && (h("div", { key: '4b1b97363bda399af6e8d60dbd5a4ffc2c844c87', class: `co-select__helper co-select__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '466b666be057e2a6090c3b695c12215b1f1fa629', name: this.statusIcon, size: 14, class: "co-select__helper-icon" }), h("span", { key: '3da8e3ecaa7380a17c9cc61d98025737659c066a', class: "co-select__helper-text" }, this.helperText)))));
|
|
241
249
|
}
|
|
242
250
|
static get is() { return "co-select"; }
|
|
243
251
|
static get encapsulation() { return "shadow"; }
|
|
@@ -614,6 +622,46 @@ export class CoSelect {
|
|
|
614
622
|
"reflect": false,
|
|
615
623
|
"attribute": "empty-text",
|
|
616
624
|
"defaultValue": "'No results'"
|
|
625
|
+
},
|
|
626
|
+
"showFooter": {
|
|
627
|
+
"type": "boolean",
|
|
628
|
+
"mutable": false,
|
|
629
|
+
"complexType": {
|
|
630
|
+
"original": "boolean",
|
|
631
|
+
"resolved": "boolean",
|
|
632
|
+
"references": {}
|
|
633
|
+
},
|
|
634
|
+
"required": false,
|
|
635
|
+
"optional": false,
|
|
636
|
+
"docs": {
|
|
637
|
+
"tags": [],
|
|
638
|
+
"text": "Footer de confirmaci\u00F3n al pie del panel (paridad co-combobox/co-ref-field)."
|
|
639
|
+
},
|
|
640
|
+
"getter": false,
|
|
641
|
+
"setter": false,
|
|
642
|
+
"reflect": false,
|
|
643
|
+
"attribute": "show-footer",
|
|
644
|
+
"defaultValue": "false"
|
|
645
|
+
},
|
|
646
|
+
"footerPrimaryLabel": {
|
|
647
|
+
"type": "string",
|
|
648
|
+
"mutable": false,
|
|
649
|
+
"complexType": {
|
|
650
|
+
"original": "string",
|
|
651
|
+
"resolved": "string",
|
|
652
|
+
"references": {}
|
|
653
|
+
},
|
|
654
|
+
"required": false,
|
|
655
|
+
"optional": false,
|
|
656
|
+
"docs": {
|
|
657
|
+
"tags": [],
|
|
658
|
+
"text": "Label del bot\u00F3n primario del footer."
|
|
659
|
+
},
|
|
660
|
+
"getter": false,
|
|
661
|
+
"setter": false,
|
|
662
|
+
"reflect": false,
|
|
663
|
+
"attribute": "footer-primary-label",
|
|
664
|
+
"defaultValue": "'Ok'"
|
|
617
665
|
}
|
|
618
666
|
};
|
|
619
667
|
}
|
|
@@ -656,6 +704,21 @@ export class CoSelect {
|
|
|
656
704
|
"resolved": "void",
|
|
657
705
|
"references": {}
|
|
658
706
|
}
|
|
707
|
+
}, {
|
|
708
|
+
"method": "coFooterPrimary",
|
|
709
|
+
"name": "coFooterPrimary",
|
|
710
|
+
"bubbles": true,
|
|
711
|
+
"cancelable": true,
|
|
712
|
+
"composed": true,
|
|
713
|
+
"docs": {
|
|
714
|
+
"tags": [],
|
|
715
|
+
"text": "Click en el bot\u00F3n primario del footer (el panel se cierra solo)."
|
|
716
|
+
},
|
|
717
|
+
"complexType": {
|
|
718
|
+
"original": "void",
|
|
719
|
+
"resolved": "void",
|
|
720
|
+
"references": {}
|
|
721
|
+
}
|
|
659
722
|
}];
|
|
660
723
|
}
|
|
661
724
|
static get elementRef() { return "el"; }
|
|
@@ -57,7 +57,7 @@ export class CoSeparator {
|
|
|
57
57
|
style['--co-separator-inset-end'] = '0px';
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
return (h("hr", { key: '
|
|
60
|
+
return (h("hr", { key: 'e3424f147cc4168638d2ac823046351fb880ac57', class: {
|
|
61
61
|
'co-separator': true,
|
|
62
62
|
'co-separator--vertical': this.vertical,
|
|
63
63
|
'co-separator--dark': this.dark,
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
font-family: var(--co-font-family-primary);
|
|
12
12
|
box-sizing: border-box;
|
|
13
13
|
overflow: hidden;
|
|
14
|
-
transition: width
|
|
14
|
+
transition: width var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/* ─── Modes ─────────────────────────────────────────────────── */
|
|
@@ -10,10 +10,10 @@ export class CoSidebar {
|
|
|
10
10
|
this.mode = 'full';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("nav", { key: '
|
|
13
|
+
return (h("nav", { key: 'ad5f66c721365f3a9ca2192765df243e8dea492e', class: {
|
|
14
14
|
'co-sidebar': true,
|
|
15
15
|
[`co-sidebar--${this.mode}`]: true,
|
|
16
|
-
}, part: "sidebar" }, h("div", { key: '
|
|
16
|
+
}, part: "sidebar" }, h("div", { key: '45a2250516e1080f79b4a4554a0db7715c30066d', class: "co-sidebar__header", part: "header" }, h("slot", { key: '04a468d4eb6cf9bbd2acc482ba50defc4271166e', name: "header" })), h("div", { key: '730e37997945ce8bc7bc2d177beb25bbd0a1813f', class: "co-sidebar__body", part: "body" }, h("slot", { key: '22c20554c8f2d85952d43484cda5903dbf33588d' })), h("div", { key: '6bb53d0394b9107ea1553e21047d51ea5fe0f292', class: "co-sidebar__footer", part: "footer" }, h("slot", { key: '2b326d1beed32288d50ba17abad459929ed1e940', name: "footer" }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "co-sidebar"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|