@prolibu-suite/cobalt-core 0.8.0 → 0.9.0
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 +10 -10
- package/dist/cjs/co-accordion.cjs.entry.js +4 -4
- package/dist/cjs/co-action-bar.cjs.entry.js +4 -4
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-audio-player.cjs.entry.js +5 -5
- 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 +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 +3 -3
- package/dist/cjs/co-button.cjs.entry.js +4 -4
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +5 -5
- package/dist/cjs/co-calendar_3.cjs.entry.js +10 -10
- package/dist/cjs/co-card.cjs.entry.js +4 -4
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +20 -8
- 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 +2 -2
- 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 +32 -6
- 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 +18 -6
- 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 +3 -3
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +2 -2
- 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 +4 -4
- 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} +1 -1
- 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-25f59046.entry.js → p-09fe6ece.entry.js} +1 -1
- package/dist/cobalt/{p-cd96aabf.entry.js → p-12a0ae24.entry.js} +1 -1
- package/dist/cobalt/{p-890296f9.entry.js → p-142506d9.entry.js} +1 -1
- package/dist/cobalt/{p-dc8e88f4.entry.js → p-19706923.entry.js} +1 -1
- package/dist/cobalt/p-19f5d480.entry.js +1 -0
- package/dist/cobalt/p-1ddbc48b.entry.js +1 -0
- package/dist/cobalt/p-212ed2ba.entry.js +1 -0
- package/dist/cobalt/p-21832273.entry.js +1 -0
- package/dist/cobalt/p-24e93fcb.entry.js +1 -0
- package/dist/cobalt/{p-3d4e697e.entry.js → p-2a9ba4c8.entry.js} +1 -1
- package/dist/cobalt/p-2aeb1471.entry.js +1 -0
- package/dist/cobalt/{p-f4370423.entry.js → p-2d0354cc.entry.js} +1 -1
- package/dist/cobalt/p-30ec230e.entry.js +1 -0
- package/dist/cobalt/p-360714ae.entry.js +1 -0
- package/dist/cobalt/{p-3a746267.entry.js → p-37541725.entry.js} +1 -1
- package/dist/cobalt/{p-f53b9536.entry.js → p-39007b6c.entry.js} +1 -1
- package/dist/cobalt/{p-52af222b.entry.js → p-39bce45f.entry.js} +1 -1
- package/dist/cobalt/{p-50bbfad8.entry.js → p-3ac316e0.entry.js} +1 -1
- package/dist/cobalt/{p-69723cc1.entry.js → p-3ced4269.entry.js} +1 -1
- package/dist/cobalt/{p-0769eee9.entry.js → p-3ecc29fa.entry.js} +1 -1
- package/dist/cobalt/p-417ce874.entry.js +1 -0
- package/dist/cobalt/{p-38ae8bff.entry.js → p-43b1f8fb.entry.js} +1 -1
- package/dist/cobalt/p-49bde154.entry.js +1 -0
- package/dist/cobalt/{p-51a1ad38.entry.js → p-4e2379e4.entry.js} +1 -1
- package/dist/cobalt/p-5d7c26f2.entry.js +1 -0
- package/dist/cobalt/p-5ddebd10.entry.js +1 -0
- package/dist/cobalt/{p-bebacee2.entry.js → p-5f0f5d4b.entry.js} +1 -1
- package/dist/cobalt/{p-ce961fba.entry.js → p-5f1b273b.entry.js} +1 -1
- package/dist/cobalt/p-60cb66f5.entry.js +1 -0
- package/dist/cobalt/{p-48fbf051.entry.js → p-6795a258.entry.js} +1 -1
- package/dist/cobalt/{p-959556f4.entry.js → p-6d532475.entry.js} +1 -1
- package/dist/cobalt/{p-df63f23c.entry.js → p-724b9b54.entry.js} +1 -1
- package/dist/cobalt/{p-6b256d01.entry.js → p-7255ab63.entry.js} +1 -1
- package/dist/cobalt/p-7521ec0c.entry.js +1 -0
- package/dist/cobalt/{p-acdb68a7.entry.js → p-76dff399.entry.js} +1 -1
- package/dist/cobalt/p-77593319.entry.js +1 -0
- package/dist/cobalt/p-7a2dab23.entry.js +1 -0
- package/dist/cobalt/{p-3ae69426.entry.js → p-7ec85887.entry.js} +1 -1
- package/dist/cobalt/p-81866f71.entry.js +1 -0
- package/dist/cobalt/{p-b45ea918.entry.js → p-8206c7c0.entry.js} +1 -1
- package/dist/cobalt/p-85a61e28.entry.js +1 -0
- package/dist/cobalt/p-87fc5aed.entry.js +1 -0
- package/dist/cobalt/p-8a93beb0.entry.js +1 -0
- package/dist/cobalt/p-8b7a4f6c.entry.js +1 -0
- package/dist/cobalt/{p-dc269096.entry.js → p-8e667eb6.entry.js} +1 -1
- package/dist/cobalt/{p-afd957c0.entry.js → p-94a8a119.entry.js} +1 -1
- package/dist/cobalt/p-9c2ce487.entry.js +1 -0
- package/dist/cobalt/p-9fe9e2fe.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-1e9c9d46.entry.js → p-a074f2ba.entry.js} +1 -1
- package/dist/cobalt/{p-6985a964.entry.js → p-a45e2c00.entry.js} +1 -1
- package/dist/cobalt/{p-5c1328ff.entry.js → p-a530bec2.entry.js} +1 -1
- package/dist/cobalt/p-a5d84c7a.entry.js +1 -0
- package/dist/cobalt/{p-69b8d98e.entry.js → p-b004c3bb.entry.js} +1 -1
- package/dist/cobalt/p-b1ef5107.entry.js +1 -0
- package/dist/cobalt/p-b28dc0fe.entry.js +1 -0
- package/dist/cobalt/{p-0fc1edca.entry.js → p-b64b0a07.entry.js} +1 -1
- package/dist/cobalt/p-b800e107.entry.js +1 -0
- package/dist/cobalt/p-b9ac1f25.entry.js +1 -0
- package/dist/cobalt/{p-202eadfc.entry.js → p-baeb5d55.entry.js} +1 -1
- package/dist/cobalt/{p-8fe08257.entry.js → p-c31f5c1b.entry.js} +1 -1
- package/dist/cobalt/p-c3c2087e.entry.js +1 -0
- package/dist/cobalt/p-c42c505c.entry.js +1 -0
- package/dist/cobalt/p-c7a809c7.entry.js +1 -0
- package/dist/cobalt/{p-195c67ee.entry.js → p-c8dba82f.entry.js} +1 -1
- package/dist/cobalt/p-cc72557d.entry.js +1 -0
- package/dist/cobalt/p-d21da71a.entry.js +1 -0
- package/dist/cobalt/{p-20bd3702.entry.js → p-d3c765e3.entry.js} +1 -1
- package/dist/cobalt/p-d7b00e5f.entry.js +1 -0
- package/dist/cobalt/p-d85a751d.entry.js +1 -0
- package/dist/cobalt/{p-3af74ab8.entry.js → p-da546d08.entry.js} +1 -1
- package/dist/cobalt/p-debe0d79.entry.js +1 -0
- package/dist/cobalt/p-e054cb52.entry.js +1 -0
- package/dist/cobalt/p-e5296961.entry.js +1 -0
- package/dist/cobalt/p-e5b5ae89.entry.js +1 -0
- package/dist/cobalt/{p-a4f39ba2.entry.js → p-e612b43c.entry.js} +1 -1
- package/dist/cobalt/{p-97875bde.entry.js → p-e6882ddd.entry.js} +1 -1
- package/dist/cobalt/p-e7e34852.entry.js +1 -0
- package/dist/cobalt/p-e99832a9.entry.js +1 -0
- package/dist/cobalt/{p-00830b8c.entry.js → p-ed2ca588.entry.js} +1 -1
- package/dist/cobalt/p-f1284fcd.entry.js +1 -0
- package/dist/cobalt/{p-d71b87d3.entry.js → p-f1731fe9.entry.js} +1 -1
- package/dist/cobalt/{p-a04feb70.entry.js → p-f4cebc1f.entry.js} +1 -1
- package/dist/cobalt/p-f52f61d4.entry.js +1 -0
- package/dist/cobalt/{p-a252f8c5.entry.js → p-f83b48fd.entry.js} +1 -1
- package/dist/cobalt/p-fa5c25d6.entry.js +1 -0
- package/dist/cobalt/{p-15852fec.entry.js → p-fd39f410.entry.js} +1 -1
- package/dist/collection/components/co-accordion/co-accordion.css +12 -4
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.css +4 -16
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.css +1 -1
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.css +1 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +2 -2
- 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-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +4 -12
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +17 -1
- package/dist/collection/components/co-button/co-button.js +2 -2
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +2 -2
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +1 -1
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +2 -2
- package/dist/collection/components/co-card/co-card.css +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +84 -58
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- 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 +2 -2
- 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 +5 -5
- 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 +18 -12
- 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 +2 -2
- package/dist/collection/components/co-option-list/co-option-list.js +17 -5
- 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 +30 -4
- 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 +4 -4
- package/dist/collection/components/co-ref-field/co-ref-field.js +14 -2
- 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-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-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-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +9 -9
- package/dist/collection/components/co-video/co-video.js +2 -2
- 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-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-2zy1K6zg.js +1 -0
- package/dist/components/{p-DbISGXT_.js → p-BCnjq3jN.js} +1 -1
- package/dist/components/p-BUE9mBqk.js +1 -0
- package/dist/components/p-Bh2__nEw.js +1 -0
- package/dist/components/{p-BC6sxVVr.js → p-BiefJDu3.js} +1 -1
- package/dist/components/{p-CVCEiwOS.js → p-BlvsTlsS.js} +1 -1
- package/dist/components/p-Bsll5Ofy.js +1 -0
- package/dist/components/{p-BQFperIX.js → p-CJNo2JDc.js} +1 -1
- package/dist/components/p-CKKBJaNB.js +1 -0
- package/dist/components/p-CL4dicvk.js +1 -0
- package/dist/components/{p-ChPooamL.js → p-CYv2ig6I.js} +1 -1
- package/dist/components/p-Ce0ZJcks.js +1 -0
- package/dist/components/p-CkQqqKRp.js +1 -0
- package/dist/components/p-CmxZEGYq.js +1 -0
- package/dist/components/p-Cv5yuGLz.js +1 -0
- package/dist/components/{p-CIWoKlGj.js → p-DAaKsGqj.js} +1 -1
- package/dist/components/p-DFT1qsVu.js +1 -0
- package/dist/components/p-DTJsO_Eg.js +1 -0
- package/dist/components/p-_YYd42XM.js +1 -0
- package/dist/components/{p-T0MdU7sb.js → p-re2gJwnQ.js} +1 -1
- package/dist/components/p-ushHimOL.js +1 -0
- package/dist/components/p-xvWmYN3W.js +1 -0
- package/dist/esm/co-accordion.entry.js +4 -4
- package/dist/esm/co-action-bar.entry.js +4 -4
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-audio-player.entry.js +5 -5
- 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 +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 +3 -3
- package/dist/esm/co-button.entry.js +4 -4
- package/dist/esm/co-calendar-month_2.entry.js +5 -5
- package/dist/esm/co-calendar_3.entry.js +10 -10
- package/dist/esm/co-card.entry.js +4 -4
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +3 -3
- package/dist/esm/co-checkbox-group.entry.js +2 -2
- package/dist/esm/co-checkbox.entry.js +5 -5
- package/dist/esm/co-chip_2.entry.js +20 -8
- 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 +2 -2
- 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 +32 -6
- 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 +18 -6
- 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 +3 -3
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +2 -2
- 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 +4 -4
- 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} +1 -1
- 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-option-list/co-option-list.d.ts +5 -1
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +4 -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 +6 -6
- package/package.json +3 -3
- 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-39dea0c0.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-6b089060.entry.js +0 -1
- package/dist/cobalt/p-7c6b3175.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-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-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-f0c589ad.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-CDWXNRpo.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-uZ2D6ESV.js +0 -1
- package/dist/components/p-ySi6UG0O.js +0 -1
|
@@ -21,13 +21,13 @@ export class CoTab {
|
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
23
|
const iconSize = this.variant === 'underline' ? 16 : this.size === 'large' ? 18 : 14;
|
|
24
|
-
return (h("button", { key: '
|
|
24
|
+
return (h("button", { key: '85ffca32d8f2fb7c2be25e9b2cf8c0570a438f54', class: {
|
|
25
25
|
'co-tab': true,
|
|
26
26
|
[`co-tab--${this.size}`]: true,
|
|
27
27
|
[`co-tab--${this.variant}`]: true,
|
|
28
28
|
'co-tab--selected': this.selected,
|
|
29
29
|
'co-tab--disabled': this.disabled,
|
|
30
|
-
}, type: "button", role: "tab", "aria-selected": this.selected ? 'true' : 'false', disabled: this.disabled, part: "tab", onClick: this.handleClick }, this.iconLeft && (h("co-icon", { key: '
|
|
30
|
+
}, type: "button", role: "tab", "aria-selected": this.selected ? 'true' : 'false', disabled: this.disabled, part: "tab", onClick: this.handleClick }, this.iconLeft && (h("co-icon", { key: 'a5084c288fbbf42f418450343b0cbcd1c36f3553', name: this.iconLeft, size: iconSize })), h("span", { key: '9dda4ae43156ee5e7274de262fb0df601b9a2221' }, this.label), this.badge && (h("span", { key: '84205996d20e27a69ac6dc49f88bf690ef9bb33d', class: "co-tab__badge", part: "badge" }, this.badge)), this.iconRight && (h("co-icon", { key: '7281ba1b981fca02a57b28f461877d2aa831e360', name: this.iconRight, size: iconSize }))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "co-tab"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -49,10 +49,10 @@ export class CoTabGroup {
|
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h("div", { key: '
|
|
52
|
+
return (h("div", { key: '8987563ec721e13e7cbc186b11ab4c6b28f82068', class: {
|
|
53
53
|
'co-tab-group': true,
|
|
54
54
|
[`co-tab-group--${this.variant}`]: true,
|
|
55
|
-
}, role: "tablist", part: "tab-group", onWheel: this.onWheel }, h("slot", { key: '
|
|
55
|
+
}, role: "tablist", part: "tab-group", onWheel: this.onWheel }, h("slot", { key: '9adad54c12867486cdf0677e92f5c5007f2b55e1', onSlotchange: this.onSlotChange })));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "co-tab-group"; }
|
|
58
58
|
static get encapsulation() { return "shadow"; }
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
background: var(--co-semantic-surface-page);
|
|
69
69
|
border: 1px solid var(--co-semantic-border-field);
|
|
70
70
|
border-radius: var(--co-border-radius-xs);
|
|
71
|
-
transition: border-color
|
|
71
|
+
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);
|
|
72
72
|
min-height: 40px;
|
|
73
73
|
box-sizing: border-box;
|
|
74
74
|
flex: 1;
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
background: transparent;
|
|
146
146
|
cursor: pointer;
|
|
147
147
|
color: var(--co-semantic-text-muted);
|
|
148
|
-
transition: color
|
|
148
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
149
149
|
flex-shrink: 0;
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
background: transparent;
|
|
202
202
|
cursor: pointer;
|
|
203
203
|
color: var(--co-semantic-text-muted);
|
|
204
|
-
transition: color
|
|
204
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
.co-tags-field__clear--hidden {
|
|
@@ -186,14 +186,14 @@ export class CoTagsField {
|
|
|
186
186
|
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
187
187
|
const helper = this.isInvalid ? this.errorMessage : this.helperText;
|
|
188
188
|
const showInput = !this.readonly && !this.atCapacity;
|
|
189
|
-
return (h("div", { key: '
|
|
189
|
+
return (h("div", { key: '1cddcc09b84bd9986332518809b22727e0ea6be8', class: {
|
|
190
190
|
'co-tags-field': true,
|
|
191
191
|
'co-tags-field--disabled': this.disabled,
|
|
192
192
|
'co-tags-field--focused': this.hasFocus,
|
|
193
193
|
'co-tags-field--filled': this.hasValue,
|
|
194
194
|
'co-tags-field--invalid': this.isInvalid,
|
|
195
195
|
[`co-tags-field--${this.size}`]: true,
|
|
196
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
196
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '2a17c1550fb77d74795e29019865decf25b62637', class: "co-tags-field__labels" }, h("label", { key: 'b4fa98a4375ebf9cb09854528bae440310dd6e7a', class: "co-tags-field__label", part: "label" }, this.label, h(RequiredMark, { key: '491ec28ffeade76cc659e5920654d4b25474348b', required: this.required })))), h("div", { key: '5959a21a0586e453bdd260a32aa4e9e6f9ee5b97', class: "co-tags-field__field-row" }, h("div", { key: 'babe8f7f15287758aaa6e644edbdd20bea271085', class: "co-tags-field__field", part: "field", onClick: this.handleFieldClick }, h("div", { key: '6f2a17374c0fd13463cd62f9596f7ff896b0b4b4', class: "co-tags-field__input-wrapper" }, tags.map((tag, index) => this.editingIndex === index ? (h("input", { key: `edit-${index}`, ref: (el) => (this.editEl = el), class: "co-tags-field__edit", type: "text", value: this.editingDraft, onInput: (e) => (this.editingDraft = e.target.value), onKeyDown: this.handleEditKeyDown, onBlur: () => this.saveEdit() })) : (
|
|
197
197
|
// Shared field-chip (utils/fieldChip.tsx) per the Figma
|
|
198
198
|
// "Tipo=Chips" spec — same look as co-ref-field's chips.
|
|
199
199
|
h(FieldChip, { key: `chip-${index}-${tag}`, baseClass: "co-tags-field__chip", label: tag, title: tag, onChipDblClick: () => this.startEdit(index), onRemove: !this.disabled && !this.readonly
|
|
@@ -201,13 +201,13 @@ export class CoTagsField {
|
|
|
201
201
|
e.stopPropagation();
|
|
202
202
|
this.removeTag(index);
|
|
203
203
|
}
|
|
204
|
-
: undefined }))), showInput && (h("input", { key: '
|
|
204
|
+
: undefined }))), showInput && (h("input", { key: '13fb645e7da2b931d565591cdca76010cc585d3d', ref: (el) => (this.inputEl = el), class: "co-tags-field__native", type: "text", autocomplete: "off", value: this.draft, placeholder: tags.length === 0 ? this.placeholder : '', disabled: this.disabled, required: this.required && tags.length === 0, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'Tags' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" }))), this.clearable && (h("button", { key: 'c7285e54cc7fbad03c5f0b107d01c31e63204f4b', class: {
|
|
205
205
|
'co-tags-field__clear': true,
|
|
206
206
|
'co-tags-field__clear--hidden': !showClear,
|
|
207
|
-
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClearAll, "aria-label": "Clear all", part: "clear" }, h("co-icon", { key: '
|
|
207
|
+
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClearAll, "aria-label": "Clear all", part: "clear" }, h("co-icon", { key: '9361a6e3f0d35bb2e976106a77dd6ee3c0053490', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: 'b0d3ea0609153c6237337bdf7463d3eaac0977d5', type: "hidden", name: this.name, value: JSON.stringify(tags) }), helper && (h("div", { key: 'be4a5527ef638303d3c4583063a364f03a26fbf6', class: {
|
|
208
208
|
'co-tags-field__helper': true,
|
|
209
209
|
'co-tags-field__helper--error': this.isInvalid,
|
|
210
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
210
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'b945852d4bc7cebf2440afb5507be3151009a789', name: "warning-circle", size: 14, class: "co-tags-field__helper-icon" })), h("span", { key: '92a7ac0cc4d84f63a4c9ca4b17c922bae485ffd6', class: "co-tags-field__helper-text" }, helper)))));
|
|
211
211
|
}
|
|
212
212
|
static get is() { return "co-tags-field"; }
|
|
213
213
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
background: var(--co-semantic-surface-page);
|
|
72
72
|
border: 1px solid var(--co-semantic-border-field);
|
|
73
73
|
border-radius: var(--co-border-radius-xs);
|
|
74
|
-
transition: border-color
|
|
74
|
+
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);
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
}
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
color: var(--co-semantic-text-muted);
|
|
158
158
|
cursor: pointer;
|
|
159
159
|
padding: 0;
|
|
160
|
-
transition: color
|
|
160
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out), background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
.co-textarea__clear:hover {
|
|
@@ -76,7 +76,7 @@ export class CoTextarea {
|
|
|
76
76
|
const showClear = this.clearable && this.hasValue && !this.disabled && !this.readonly;
|
|
77
77
|
const isOverLimit = this.maxLength != null && this.charCount > this.maxLength;
|
|
78
78
|
const statusClass = this.status !== 'default' ? `co-textarea--${this.status}` : '';
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '9d323b813a3c11f045f48556233675ce07ceb79d', class: {
|
|
80
80
|
'co-textarea': true,
|
|
81
81
|
'co-textarea--disabled': this.disabled,
|
|
82
82
|
'co-textarea--focused': this.hasFocus,
|
|
@@ -85,13 +85,13 @@ export class CoTextarea {
|
|
|
85
85
|
[`co-textarea--${this.size}`]: true,
|
|
86
86
|
[statusClass]: !!statusClass,
|
|
87
87
|
'co-textarea--flat': this.variant === 'flat',
|
|
88
|
-
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
88
|
+
}, part: "wrapper" }, (this.label || this.secondaryLabel) && (h("div", { key: 'efd2f5901bbb5e9ecd6ef6cecf9c58917dc310bc', class: "co-textarea__labels" }, this.label && (h("label", { key: '006c3e9b5b219164e1794617e0fee742a195f18e', class: "co-textarea__label", part: "label" }, this.label, h(RequiredMark, { key: '7a2842c50c8151104fb529bba60ea02045384744', required: this.required }))), this.secondaryLabel && (h("span", { key: '76798fcfeae6ed5f7fa7dcd5be4c5c32fc345198', class: "co-textarea__secondary-label" }, this.secondaryLabel)))), h("div", { key: '8ea7e80d1d39807d4b5097a7c010e79726caf6cf', class: "co-textarea__field", part: "field" }, h("textarea", { key: 'aeed03e98299c0bbdc11dc35c7ffb8964b5f5785', ref: (el) => (this.textareaEl = el), class: {
|
|
89
89
|
'co-textarea__native': true,
|
|
90
90
|
[`co-textarea__native--resize-${this.resize}`]: true,
|
|
91
|
-
}, rows: this.rows, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.status === 'error' || isOverLimit ? 'true' : 'false', onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" }), showClear && (h("button", { key: '
|
|
91
|
+
}, rows: this.rows, value: this.value, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.status === 'error' || isOverLimit ? 'true' : 'false', onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" }), showClear && (h("button", { key: '886cea9e161fff68046654f854a110f8fbefa320', class: "co-textarea__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '8f1055f7e0ea57b0811c0bed69e41fb7e70aaf34', name: "x-circle", size: 16, weight: "fill" })))), (this.helperText || this.maxLength != null) && (h("div", { key: '998fe8b200baac9f1f8198747b05f6836fedeb3d', class: "co-textarea__footer" }, this.helperText && (h("div", { key: 'deef703967cf1e57dab1a6df16b2e04139e41ed5', class: {
|
|
92
92
|
'co-textarea__helper': true,
|
|
93
93
|
'co-textarea__helper--error': this.status === 'error',
|
|
94
|
-
}, part: "helper" }, this.status === 'error' && (h("co-icon", { key: '
|
|
94
|
+
}, part: "helper" }, this.status === 'error' && (h("co-icon", { key: '6f42cf1cb23657ca1db2cb2b5db5a4bbad94c05b', name: "warning-circle", size: 14, class: "co-textarea__helper-icon" })), h("span", { key: '85ab87ee37978ee22fffbca0cfc75d9609b97212', class: "co-textarea__helper-text" }, this.helperText))), this.maxLength != null && (h("span", { key: '97a0c33e19dc4f39da62daadb3122a1373884622', class: {
|
|
95
95
|
'co-textarea__counter': true,
|
|
96
96
|
'co-textarea__counter--over': isOverLimit,
|
|
97
97
|
}, part: "counter" }, this.charCount, "/", this.maxLength))))));
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
color: var(--co-toast-dismiss-color);
|
|
111
111
|
cursor: pointer;
|
|
112
112
|
flex-shrink: 0;
|
|
113
|
-
transition: opacity
|
|
113
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
114
114
|
-webkit-font-smoothing: antialiased;
|
|
115
115
|
}
|
|
116
116
|
|
|
@@ -214,3 +214,65 @@
|
|
|
214
214
|
background: var(--co-color-primary-azul, #2563eb);
|
|
215
215
|
transition: width 0.3s ease;
|
|
216
216
|
}
|
|
217
|
+
|
|
218
|
+
/* ─── Entrada (on-mount) ─────────────────────────────────────────────
|
|
219
|
+
* co-toast se monta/desmonta desde afuera y no tiene estado `open`: nace
|
|
220
|
+
* oculto y un frame después del mount el propio componente se marca
|
|
221
|
+
* `.co-toast--in` (@State `entered` en co-toast.tsx). La SALIDA sigue
|
|
222
|
+
* siendo del host.
|
|
223
|
+
*
|
|
224
|
+
* Todo esto ocurre en el nodo INTERNO `.co-toast`, nunca en `:host`, por dos
|
|
225
|
+
* motivos independientes:
|
|
226
|
+
* 1. El transform: el contenedor que apila los toasts ya usa el transform
|
|
227
|
+
* del host para su enter/leave/move (p. ej. el TransitionGroup de
|
|
228
|
+
* suite-v2), y dos transforms sobre el mismo nodo se pisan. Un único
|
|
229
|
+
* nodo lleva el transform de entrada.
|
|
230
|
+
* 2. La bandera: el host es del consumidor. Vue (y cualquiera que use
|
|
231
|
+
* `setAttribute('class', …)`) reescribe `className` ENTERO al patchear
|
|
232
|
+
* un `:class` dinámico, borrando la clase — y con `opacity: 0` de base
|
|
233
|
+
* el toast quedaría invisible para siempre. Dentro del shadow es
|
|
234
|
+
* inmune. */
|
|
235
|
+
|
|
236
|
+
.co-toast {
|
|
237
|
+
opacity: 0;
|
|
238
|
+
transform: translateY(8px) scale(0.98);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.co-toast--in {
|
|
242
|
+
opacity: 1;
|
|
243
|
+
transform: none;
|
|
244
|
+
transition:
|
|
245
|
+
opacity var(--co-motion-duration-base) var(--co-motion-ease-out),
|
|
246
|
+
transform var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/* Success entra con pop: el transform rebota (spring) y dura un poco más.
|
|
250
|
+
* La opacidad se queda en base/ease-out — un spring sobre opacity
|
|
251
|
+
* sobrepasaría de 1 y el rebote no se vería, solo se recortaría.
|
|
252
|
+
* Ambas clases caen en el MISMO nodo, así que el selector compuesto tiene
|
|
253
|
+
* más especificidad (0,2,0) que `.co-toast--in` (0,1,0) y gana sin depender
|
|
254
|
+
* del orden. */
|
|
255
|
+
.co-toast--in.co-toast--success {
|
|
256
|
+
transition:
|
|
257
|
+
opacity var(--co-motion-duration-base) var(--co-motion-ease-out),
|
|
258
|
+
transform var(--co-motion-duration-slow) var(--co-motion-ease-spring);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/* ─── Check dibujado (success sin icono propio) ──────────────────────
|
|
262
|
+
* Mismo patrón que el glyph de co-checkbox: pathLength="1" normaliza el
|
|
263
|
+
* trazo a 1 unidad, así dasharray/dashoffset 1 = "sin dibujar" y 0 =
|
|
264
|
+
* "dibujado". El path se monta ya con su estado inicial, y la transición
|
|
265
|
+
* se declara SOLO en el estado final para que no haya dibujo inverso. */
|
|
266
|
+
|
|
267
|
+
.co-toast__check path {
|
|
268
|
+
stroke-dasharray: 1;
|
|
269
|
+
stroke-dashoffset: 1;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Se dibuja con la misma clase que la entrada, pero con un delay `fast`:
|
|
273
|
+
* el toast aterriza primero y el check se traza encima. */
|
|
274
|
+
.co-toast--in .co-toast__check path {
|
|
275
|
+
stroke-dashoffset: 0;
|
|
276
|
+
transition: stroke-dashoffset var(--co-motion-duration-slow)
|
|
277
|
+
var(--co-motion-ease-out) var(--co-motion-duration-fast);
|
|
278
|
+
}
|
|
@@ -20,6 +20,15 @@ const ALERT_VARIANTS = ['error', 'warning'];
|
|
|
20
20
|
*/
|
|
21
21
|
export class CoToast {
|
|
22
22
|
constructor() {
|
|
23
|
+
/**
|
|
24
|
+
* Bandera de entrada. Vive en el SHADOW (clase del root interno), no en el
|
|
25
|
+
* host: el host es de quien monta el toast, y frameworks como Vue asignan
|
|
26
|
+
* `el.className` ENTERO al patchear un `:class` dinámico — una bandera puesta
|
|
27
|
+
* ahí con `classList.add` se borraría y, como el estado base es `opacity: 0`
|
|
28
|
+
* y `componentDidLoad` ya corrió, el toast quedaría invisible para siempre
|
|
29
|
+
* sin forma de recuperarse. Adentro del shadow nadie puede pisarla.
|
|
30
|
+
*/
|
|
31
|
+
this.entered = false;
|
|
23
32
|
/** Toast message (title row) */
|
|
24
33
|
this.message = '';
|
|
25
34
|
/** Show dismiss (X) button */
|
|
@@ -29,6 +38,20 @@ export class CoToast {
|
|
|
29
38
|
/** Semantic variant — drives left accent color, icon tint, default icon, and announced ARIA role. */
|
|
30
39
|
this.variant = 'neutral';
|
|
31
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* El toast se monta/desmonta desde afuera y no tiene estado `open`, así que
|
|
43
|
+
* la entrada la dispara él mismo: nace oculto (CSS) y un frame después del
|
|
44
|
+
* mount se marca `.co-toast--in` en el root interno, que es lo que la
|
|
45
|
+
* transición interpola. El rAF es obligatorio — cambiar el estado en el
|
|
46
|
+
* mismo frame que el markup dejaría un solo recálculo de estilo y la
|
|
47
|
+
* transición no arrancaría.
|
|
48
|
+
* La SALIDA sigue siendo del host (ver comentario "Entrada" en el CSS).
|
|
49
|
+
*/
|
|
50
|
+
componentDidLoad() {
|
|
51
|
+
requestAnimationFrame(() => {
|
|
52
|
+
this.entered = true;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
32
55
|
render() {
|
|
33
56
|
var _a;
|
|
34
57
|
const hasDescription = !!this.description;
|
|
@@ -37,7 +60,13 @@ export class CoToast {
|
|
|
37
60
|
const clampedProgress = hasProgress
|
|
38
61
|
? Math.max(0, Math.min(100, this.progress))
|
|
39
62
|
: 0;
|
|
40
|
-
|
|
63
|
+
// Success sin icono propio dibuja su check en vez del co-icon por defecto.
|
|
64
|
+
// Con `icon` custom manda el consumidor; con `progress` manda el icono de
|
|
65
|
+
// subida (azul), que es la señal de la barra — ninguno de los dos se pisa.
|
|
66
|
+
const drawsCheck = this.variant === 'success' && !this.icon && !hasProgress;
|
|
67
|
+
const resolvedIcon = drawsCheck
|
|
68
|
+
? null
|
|
69
|
+
: (_a = this.icon) !== null && _a !== void 0 ? _a : (hasProgress ? 'upload-simple' : DEFAULT_ICON[this.variant]);
|
|
41
70
|
const role = ALERT_VARIANTS.includes(this.variant) ? 'alert' : 'status';
|
|
42
71
|
const rootClass = {
|
|
43
72
|
'co-toast': true,
|
|
@@ -45,9 +74,10 @@ export class CoToast {
|
|
|
45
74
|
'co-toast--multiline': hasDescription,
|
|
46
75
|
'co-toast--stacked': isStacked,
|
|
47
76
|
'co-toast--progress': hasProgress,
|
|
77
|
+
'co-toast--in': this.entered,
|
|
48
78
|
};
|
|
49
|
-
const content = (h("div", { key: '
|
|
50
|
-
return (h("div", { key: '
|
|
79
|
+
const content = (h("div", { key: '5782bc9fab6ba26b7a73628f3d4155d8c8b948b5', class: "co-toast__content" }, h("span", { key: 'e10a34acb31b7486fe3d26b8dce48e80d643181e', class: "co-toast__message" }, this.message), hasDescription && (h("span", { key: '8b6d2c9db99fe292b5a7d183c4a7a43d8b551f7d', class: "co-toast__description" }, this.description))));
|
|
80
|
+
return (h("div", { key: '30b8670f843101c9c3c409fa89f06d4e86167bc2', class: rootClass, part: "toast", role: role }, (drawsCheck || resolvedIcon) && (h("span", { key: 'e1420c1642606f7687fd7f093881e077b627cdc0', class: "co-toast__icon" }, resolvedIcon ? (h("co-icon", { name: resolvedIcon, size: 20 })) : (h("svg", { class: "co-toast__check", viewBox: "0 0 16 16", width: "20", height: "20", "aria-hidden": "true" }, h("path", { d: "M3.5 8.5l3 3 6-6.5", pathLength: "1", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }))))), h("div", { key: '400ec792a47ad70c8c43dbf4ee2893e0424423bb', class: "co-toast__body" }, hasProgress ? (h("div", { class: "co-toast__progress" }, h("div", { class: "co-toast__progress-header" }, content, h("span", { class: "co-toast__percent" }, clampedProgress, "%")), h("div", { class: "co-toast__track", part: "track", role: "progressbar", "aria-valuenow": clampedProgress, "aria-valuemin": 0, "aria-valuemax": 100 }, h("span", { class: "co-toast__fill", part: "fill", style: { width: `${clampedProgress}%` } })))) : (content), isStacked && (h("div", { key: 'f23e18bdd93f6edc8b1a5af7bf78bcc73e0b7659', class: "co-toast__actions" }, h("slot", { key: '690f4816bd3cdbfbefd1c3942aea88c4be1bdd9b', name: "action" })))), !isStacked && (h("div", { key: '9c26cb590848ff43481fa1073b97b5199dde01ca', class: "co-toast__actions" }, h("slot", { key: 'ee2e7247f74064bfbd88fae99b3c6924db37e4be', name: "action" }))), this.dismissible && (h("button", { key: 'd061e369a02d7ebb5fd851bd20554dfbf149e536', class: "co-toast__dismiss", type: "button", "aria-label": "Dismiss", onClick: () => this.coDismiss.emit() }, h("co-icon", { key: '8d8ce58403181a0710bf16cc21b1f4f3a10be8f3', name: "x", size: 16 })))));
|
|
51
81
|
}
|
|
52
82
|
static get is() { return "co-toast"; }
|
|
53
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -214,6 +244,11 @@ export class CoToast {
|
|
|
214
244
|
}
|
|
215
245
|
};
|
|
216
246
|
}
|
|
247
|
+
static get states() {
|
|
248
|
+
return {
|
|
249
|
+
"entered": {}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
217
252
|
static get events() {
|
|
218
253
|
return [{
|
|
219
254
|
"method": "coDismiss",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
font-family: var(--co-font-family-primary);
|
|
33
33
|
font-weight: 500;
|
|
34
34
|
cursor: pointer;
|
|
35
|
-
transition: background
|
|
35
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), border-color var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
36
36
|
white-space: nowrap;
|
|
37
37
|
box-sizing: border-box;
|
|
38
38
|
line-height: 1;
|
|
@@ -18,13 +18,13 @@ export class CoToggleButton {
|
|
|
18
18
|
render() {
|
|
19
19
|
const iconSize = this.variant === 'track' ? 18 : this.size === 'l' ? 20 : this.size === 'xs' ? 14 : 16;
|
|
20
20
|
const iconWeight = this.selected && this.selectedIconWeight ? this.selectedIconWeight : undefined;
|
|
21
|
-
return (h("button", { key: '
|
|
21
|
+
return (h("button", { key: '8e7cae7ef747e0f9c1dae261c4a405ab067f3682', class: {
|
|
22
22
|
'co-toggle-button': true,
|
|
23
23
|
'co-toggle-button--selected': this.selected,
|
|
24
24
|
[`co-toggle-button--${this.size}`]: true,
|
|
25
25
|
'co-toggle-button--disabled': this.disabled,
|
|
26
26
|
'co-toggle-button--icon-only': !this.label && (!!this.iconLeft || !!this.iconRight),
|
|
27
|
-
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: '
|
|
27
|
+
}, type: "button", disabled: this.disabled, "aria-pressed": String(this.selected), onClick: this.handleClick }, h("slot", { key: 'e1d87665d05262e7b254d1a794837a9ae498abed', name: "leading" }), this.iconLeft && h("co-icon", { key: '0ecf3a91f22ac583166ebc823eedd1b889b708cb', name: this.iconLeft, size: iconSize, weight: iconWeight }), this.label && h("span", { key: '25cc1de5e1d12cd7d3cc575ce82b9e4f87f91afd', class: "co-toggle-button__label" }, this.label), this.iconRight && h("co-icon", { key: '15b8d7d2c140185ebfd2f53e8afcd52590a42243', name: this.iconRight, size: iconSize, weight: iconWeight })));
|
|
28
28
|
}
|
|
29
29
|
static get is() { return "co-toggle-button"; }
|
|
30
30
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,13 +65,13 @@ export class CoToggleButtonGroup {
|
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
render() {
|
|
68
|
-
return (h("div", { key: '
|
|
68
|
+
return (h("div", { key: 'b8ab02efbc0d6d8490f5ab75af56290f05f45e6e', class: {
|
|
69
69
|
'co-toggle-button-group': true,
|
|
70
70
|
[`co-toggle-button-group--${this.direction}`]: true,
|
|
71
71
|
[`co-toggle-button-group--${this.variant}`]: true,
|
|
72
72
|
'co-toggle-button-group--disabled': this.disabled,
|
|
73
73
|
'co-toggle-button-group--full': this.fullWidth,
|
|
74
|
-
}, role: "group" }, h("slot", { key: '
|
|
74
|
+
}, role: "group" }, h("slot", { key: 'a43e7b7faf9051abac32eda76634ada88f0e3d5f' })));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "co-toggle-button-group"; }
|
|
77
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
word-wrap: break-word;
|
|
64
64
|
|
|
65
65
|
/* Entry animation */
|
|
66
|
-
transition: opacity
|
|
66
|
+
transition: opacity var(--co-motion-duration-base) var(--co-motion-ease-out), transform var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
69
|
.co-tooltip__panel--positioned {
|
|
@@ -28,12 +28,17 @@ export class CoTooltip {
|
|
|
28
28
|
// ── State ──────────────────────────────────────────────────
|
|
29
29
|
this.visible = false;
|
|
30
30
|
this.actualPlacement = 'top';
|
|
31
|
+
/** Activación del trigger (click/tap): el tooltip se oculta y queda
|
|
32
|
+
* SUPRIMIDO hasta que el puntero salga y vuelva a entrar (o el foco salga).
|
|
33
|
+
* Sin esto, el tooltip re-aparece SOBRE el menú/popover que el click abrió
|
|
34
|
+
* (el botón conserva hover+focus). El foco por teclado no suprime. */
|
|
35
|
+
this.suppressed = false;
|
|
31
36
|
this.scrollParents = [];
|
|
32
37
|
this.cachedOffsetAncestor = null;
|
|
33
38
|
this.offsetAncestorComputed = false;
|
|
34
39
|
// ── Show / Hide ────────────────────────────────────────────
|
|
35
40
|
this.scheduleShow = () => {
|
|
36
|
-
if (this.disabled || !this.content)
|
|
41
|
+
if (this.disabled || !this.content || this.suppressed)
|
|
37
42
|
return;
|
|
38
43
|
this.clearHideTimeout();
|
|
39
44
|
if (this.visible)
|
|
@@ -59,12 +64,18 @@ export class CoTooltip {
|
|
|
59
64
|
this.scheduleShow();
|
|
60
65
|
};
|
|
61
66
|
this.handleMouseLeave = () => {
|
|
67
|
+
this.suppressed = false;
|
|
62
68
|
this.scheduleHide();
|
|
63
69
|
};
|
|
70
|
+
this.handlePointerDown = () => {
|
|
71
|
+
this.suppressed = true;
|
|
72
|
+
this.hideImmediate();
|
|
73
|
+
};
|
|
64
74
|
this.handleFocusIn = () => {
|
|
65
75
|
this.scheduleShow();
|
|
66
76
|
};
|
|
67
77
|
this.handleFocusOut = () => {
|
|
78
|
+
this.suppressed = false;
|
|
68
79
|
this.scheduleHide();
|
|
69
80
|
};
|
|
70
81
|
this.handleKeyDown = (e) => {
|
|
@@ -214,7 +225,7 @@ export class CoTooltip {
|
|
|
214
225
|
// ── Render ─────────────────────────────────────────────────
|
|
215
226
|
render() {
|
|
216
227
|
const side = this.actualPlacement.split('-')[0];
|
|
217
|
-
return (h("div", { key: '
|
|
228
|
+
return (h("div", { key: '5a96ea6ece5fc1b0f0479013317ce436a6d1c7a1', class: "co-tooltip" }, h("div", { key: 'fec326dce031c56e8f03963dd681bf63f80e3438', class: "co-tooltip__trigger", ref: (el) => (this.triggerEl = el), onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onPointerDown: this.handlePointerDown, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut, onKeyDown: this.handleKeyDown, "aria-describedby": this.visible ? 'tooltip-panel' : undefined }, h("slot", { key: 'a480bf1d93a8a234c7d903fc5e4008b40b75c6ed' })), this.visible && this.content && (h("div", { key: '8ed6640fd0e44f115efeaf41994804030749bc0c', id: "tooltip-panel", class: {
|
|
218
229
|
'co-tooltip__panel': true,
|
|
219
230
|
[`co-tooltip__panel--${side}`]: true,
|
|
220
231
|
}, role: "tooltip", popover: "manual", ref: (el) => {
|
|
@@ -223,7 +234,7 @@ export class CoTooltip {
|
|
|
223
234
|
this.promotePanel();
|
|
224
235
|
this.scheduleUpdate();
|
|
225
236
|
}
|
|
226
|
-
}, style: { maxWidth: this.maxWidth } }, this.arrow && h("div", { key: '
|
|
237
|
+
}, style: { maxWidth: this.maxWidth } }, this.arrow && h("div", { key: 'ed6b26c594bddbb9d5d044a279f481c37194dd4c', class: `co-tooltip__arrow co-tooltip__arrow--${side}` }), h("span", { key: 'd776ef95bc1ff38c6128ce1557ac6d0929ca063a', class: "co-tooltip__content" }, this.content)))));
|
|
227
238
|
}
|
|
228
239
|
static get is() { return "co-tooltip"; }
|
|
229
240
|
static get encapsulation() { return "shadow"; }
|
|
@@ -764,7 +764,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
764
764
|
padding: var(--co-spacing-sm2) var(--co-spacing-sm2);
|
|
765
765
|
border-radius: var(--co-border-radius-xxs, 4px);
|
|
766
766
|
cursor: pointer;
|
|
767
|
-
transition: background
|
|
767
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
768
768
|
}
|
|
769
769
|
|
|
770
770
|
.co-transfer-list__item:hover {
|
|
@@ -791,7 +791,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
791
791
|
border: 1px solid var(--co-semantic-border-default);
|
|
792
792
|
background: transparent;
|
|
793
793
|
flex-shrink: 0;
|
|
794
|
-
transition: background
|
|
794
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), border-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
795
795
|
color: var(--co-semantic-on-primary);
|
|
796
796
|
}
|
|
797
797
|
|
|
@@ -836,7 +836,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
836
836
|
color: var(--co-semantic-text-default);
|
|
837
837
|
cursor: pointer;
|
|
838
838
|
padding: 0;
|
|
839
|
-
transition: background
|
|
839
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
.co-transfer-list__btn:hover:not(:disabled) {
|
|
@@ -117,11 +117,11 @@ export class CoTransferList {
|
|
|
117
117
|
this.osInstances = [];
|
|
118
118
|
}
|
|
119
119
|
render() {
|
|
120
|
-
return (h("div", { key: '
|
|
120
|
+
return (h("div", { key: '9a616d53e0fe957aec9e59ea5d199c09d4083297', class: {
|
|
121
121
|
'co-transfer-list': true,
|
|
122
122
|
'co-transfer-list--disabled': this.disabled,
|
|
123
123
|
[`co-transfer-list--${this.status}`]: this.status !== 'default',
|
|
124
|
-
} }, this.label && h("label", { key: '
|
|
124
|
+
} }, this.label && h("label", { key: '24302a86a4f08e1ddcbbe9535b5b12b6ee94c25d', class: "co-transfer-list__label" }, this.label), h("div", { key: 'bd7ad2f3b43d126bc230be464f2e25cd4a3949d3', class: "co-transfer-list__body" }, this.renderList(this.leftItems, this.leftChecked, this.toggleLeftCheck, this.leftTitle), h("div", { key: 'e647f1e14d17e47cd82fa12ee1b28af48ba0aad7', class: "co-transfer-list__actions" }, h("button", { key: 'd4be83c7e045c082ad9e740893fa3df1201a7c4d', class: "co-transfer-list__btn", disabled: this.disabled, onClick: this.moveAllRight, "aria-label": "Move all right" }, h("co-icon", { key: 'ae0b82548e8ba9f7adf3fc21c82b99fad0b9e2a3', name: "caret-double-right", size: 16 })), h("button", { key: '31bcece1626c32ab14c942169ea292456af32f5f', class: "co-transfer-list__btn", disabled: this.disabled || this.leftChecked.size === 0, onClick: this.moveRight, "aria-label": "Move selected right" }, h("co-icon", { key: '014f67a3bb60923eceb398f1daa2a828520edbc3', name: "caret-right", size: 16 })), h("button", { key: '667465966f2951dbd1a67379fcb9a5267171bb07', class: "co-transfer-list__btn", disabled: this.disabled || this.rightChecked.size === 0, onClick: this.moveLeft, "aria-label": "Move selected left" }, h("co-icon", { key: '1ca76a18e2b600c59d582f772d11734759a01f91', name: "caret-left", size: 16 })), h("button", { key: 'f6dd471e953cd8e1015dd692028a6142ad23c48b', class: "co-transfer-list__btn", disabled: this.disabled, onClick: this.moveAllLeft, "aria-label": "Move all left" }, h("co-icon", { key: '1c153936bda438f919da2637b7b865d40bd80c4c', name: "caret-double-left", size: 16 }))), this.renderList(this.rightItems, this.rightChecked, this.toggleRightCheck, this.rightTitle)), this.helperText && (h("div", { key: '319b978ec04dce9abb1f8d48cb43cbc3939428db', class: `co-transfer-list__helper co-transfer-list__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: 'cae67b4fbf235a07f23e8e368cd345333f239f5d', name: this.statusIcon, size: 14, weight: "fill", class: "co-transfer-list__helper-icon" }), h("span", { key: 'c0812b03a33d8543ffd19b3c34f071ae59a31876', class: "co-transfer-list__helper-text" }, this.helperText)))));
|
|
125
125
|
}
|
|
126
126
|
static get is() { return "co-transfer-list"; }
|
|
127
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
display: flex;
|
|
151
151
|
align-items: center;
|
|
152
152
|
justify-content: center;
|
|
153
|
-
transition: transform
|
|
153
|
+
transition: transform var(--co-motion-duration-base) var(--co-motion-ease-out), background var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.co-video__big-play:hover .co-video__big-play-circle {
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
font-family: var(--co-font-family-primary);
|
|
194
194
|
font-size: var(--co-font-size-14);
|
|
195
195
|
cursor: pointer;
|
|
196
|
-
transition: background
|
|
196
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out), border-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.co-video__error-retry:hover {
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
padding: var(--co-spacing-3xl) var(--co-spacing-lg) var(--co-spacing-md);
|
|
215
215
|
z-index: 5;
|
|
216
216
|
opacity: 1;
|
|
217
|
-
transition: opacity
|
|
217
|
+
transition: opacity var(--co-motion-duration-slow) var(--co-motion-ease-out);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
.co-video__controls--hidden {
|
|
@@ -229,7 +229,7 @@
|
|
|
229
229
|
width: 100%;
|
|
230
230
|
height: var(--co-video-progress-height);
|
|
231
231
|
cursor: pointer;
|
|
232
|
-
transition: height
|
|
232
|
+
transition: height var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
233
233
|
margin-bottom: var(--co-spacing-sm);
|
|
234
234
|
outline: none;
|
|
235
235
|
touch-action: none;
|
|
@@ -261,7 +261,7 @@
|
|
|
261
261
|
height: 100%;
|
|
262
262
|
background: var(--co-video-buffered);
|
|
263
263
|
border-radius: var(--co-border-radius-full);
|
|
264
|
-
transition: width
|
|
264
|
+
transition: width var(--co-motion-duration-slow) var(--co-motion-ease-out);
|
|
265
265
|
}
|
|
266
266
|
|
|
267
267
|
.co-video__progress-played {
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
border-radius: var(--co-border-radius-full);
|
|
282
282
|
background: var(--co-video-accent);
|
|
283
283
|
transform: translate(-50%, -50%) scale(0);
|
|
284
|
-
transition: transform
|
|
284
|
+
transition: transform var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
285
285
|
pointer-events: none;
|
|
286
286
|
}
|
|
287
287
|
|
|
@@ -319,7 +319,7 @@
|
|
|
319
319
|
cursor: pointer;
|
|
320
320
|
border-radius: var(--co-border-radius-xs);
|
|
321
321
|
padding: 0;
|
|
322
|
-
transition: background
|
|
322
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
323
323
|
flex-shrink: 0;
|
|
324
324
|
}
|
|
325
325
|
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
.co-video__volume-slider-wrap {
|
|
360
360
|
width: 0;
|
|
361
361
|
overflow: hidden;
|
|
362
|
-
transition: width
|
|
362
|
+
transition: width var(--co-motion-duration-base) var(--co-motion-ease-out), opacity var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
363
363
|
opacity: 0;
|
|
364
364
|
}
|
|
365
365
|
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
cursor: pointer;
|
|
453
453
|
background: transparent;
|
|
454
454
|
border: none;
|
|
455
|
-
transition: background
|
|
455
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
456
456
|
text-align: left;
|
|
457
457
|
}
|
|
458
458
|
|
|
@@ -789,14 +789,14 @@ export class CoVideo {
|
|
|
789
789
|
// ═══════════════════════════════════════════════════
|
|
790
790
|
render() {
|
|
791
791
|
const aspectClass = `co-video--${this.aspectRatio.replace(':', '-')}`;
|
|
792
|
-
return (h(Host, { key: '
|
|
792
|
+
return (h(Host, { key: '4ce2bbc8f36581a0683493f8690a788b7aa79873' }, h("div", { key: '15aca30a1ab1397d4135e350ba027b1b050e908b', class: {
|
|
793
793
|
'co-video': true,
|
|
794
794
|
[aspectClass]: true,
|
|
795
795
|
[`co-video--rounded-${this.rounded}`]: true,
|
|
796
796
|
'co-video--disabled': this.disabled,
|
|
797
797
|
'co-video--fullscreen': this.isFullscreen,
|
|
798
798
|
'co-video--playing': this.isPlaying,
|
|
799
|
-
}, part: "container", ref: el => (this.containerEl = el), role: "region", "aria-label": this.t.player, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseMove: this.handleContainerMouseMove, onMouseLeave: this.handleContainerMouseLeave, onTouchStart: this.handleContainerTouchStart }, h("video", { key: '
|
|
799
|
+
}, part: "container", ref: el => (this.containerEl = el), role: "region", "aria-label": this.t.player, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseMove: this.handleContainerMouseMove, onMouseLeave: this.handleContainerMouseLeave, onTouchStart: this.handleContainerTouchStart }, h("video", { key: '314574fe3e636ac479ee73fb429d14aeaba3371c', ref: el => (this.videoEl = el), class: "co-video__native", part: "video", src: this.src || undefined, poster: undefined, preload: this.preload, loop: this.loop, playsinline: true, tabindex: -1, controlsList: this.allowDownload ? undefined : 'nodownload' }), this.renderPoster(), this.renderLoader(), this.renderBigPlayButton(), this.renderError(), h("div", { key: '6883591629786aea9faed0d2c239942ba1900fad', class: "co-video__click-area", onClick: this.handleVideoAreaClick }), this.renderControls())));
|
|
800
800
|
}
|
|
801
801
|
static get is() { return "co-video"; }
|
|
802
802
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o,p as
|
|
1
|
+
import{t as o,p as a,H as c,c as e,h as i}from"./index.js";import{d as t}from"./p-BCnjq3jN.js";const n=a(class extends c{constructor(o){super(),!1!==o&&this.__registerHost(),this.__attachShadow(),this.coToggle=e(this,"coToggle",7),this.open=!0,this.heading="",this.subheading="",this.disabled=!1,this.hasSubheadingSlot=!1,this.handleToggle=()=>{this.disabled||(this.open=!this.open,this.coToggle.emit(this.open))}}componentWillLoad(){this.hasSubheadingSlot=!!this.el.querySelector('[slot="subheading"]')}componentWillRender(){this.hasSubheadingSlot=!!this.el.querySelector('[slot="subheading"]')}get showSubheading(){return!(!this.subheading||!this.subheading.trim())||this.hasSubheadingSlot}render(){return i("div",{key:"0f3dbc80f6d32d3fb9c662430880c64e46208d68",class:{"co-accordion":!0,"co-accordion--open":this.open,"co-accordion--disabled":this.disabled},part:"accordion"},i("div",{key:"bf832d3fdcce29d2e784a628c1a135a6a374ecf1",class:"co-accordion__header",part:"header"},i("span",{key:"f967f96bc1203dc14e1319fb3b62ec24e917abfd",class:"co-accordion__heading-group"},i("span",{key:"fadae27bbce21aa4550412a7d1ee50ee56b68261",class:"co-accordion__heading",part:"heading"},i("slot",{key:"a6d0989a503301fd690256eca6a8349ee2f2f536",name:"header"},this.heading)),this.showSubheading&&i("span",{key:"d12ab60f67edcd4c9a03489c3ddeb2229ec2e749",class:"co-accordion__subheading",part:"subheading"},i("slot",{key:"cc0e6c422cdffe2a8b7fd2b542d3158fb35fe25a",name:"subheading"},this.subheading))),i("button",{key:"b37af2d153398cd344dfab1adbbcf9b0ac147dad",class:"co-accordion__caret",type:"button","aria-expanded":this.open?"true":"false","aria-label":this.heading||"Toggle section",disabled:this.disabled,onClick:this.handleToggle,part:"caret"},i("co-icon",{key:"d0ed683ed331e1d8ac5ae46e9893a287fc18fb07",name:"caret-up",size:20}))),i("div",{key:"2b4af900a1c3364cc6e45bd099315ada9f4927d9",class:"co-accordion__body",part:"body"},i("div",{key:"041a960bac7760658f6ad5da17658766fbc73129",class:"co-accordion__body-inner",part:"body-inner"},i("slot",{key:"05405a5354af0e7d38128ba39e33ab902c86a1e2"}))))}get el(){return this}static get style(){return":host{display:block}.co-accordion{display:flex;flex-direction:column;width:100%}.co-accordion__header{display:flex;align-items:center;justify-content:space-between;gap:var(--co-spacing-sm, 6px);width:100%;font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);text-align:left}.co-accordion__heading-group{flex:1;min-width:0;display:flex;flex-direction:column;gap:var(--co-spacing-xxs, 2px)}.co-accordion__heading{font-size:var(--co-font-size-24);font-weight:500;line-height:1.25;letter-spacing:-0.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-accordion__subheading{font-size:var(--co-font-size-14);font-weight:400;line-height:1.3;letter-spacing:normal;color:var(--co-semantic-text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.co-accordion__caret{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:none;background:transparent;border-radius:var(--co-border-radius-full, 9999px);color:var(--co-semantic-text-default);cursor:pointer;transition:transform var(--co-motion-duration-base) var(--co-motion-ease-out), background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);transform:rotate(180deg);}.co-accordion__caret:hover:not(:disabled){background:var(--co-color-opacity-negro-8, rgba(31, 28, 27, 0.08))}.co-accordion--open .co-accordion__caret{transform:rotate(0deg);}.co-accordion__body{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--co-motion-duration-slow) var(--co-motion-ease-out)}.co-accordion__body-inner{min-height:0;overflow:hidden;padding-top:var(--co-spacing-2xl);transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out)}.co-accordion:not(.co-accordion--open) .co-accordion__body-inner{padding-top:0}.co-accordion--open .co-accordion__body{grid-template-rows:1fr}.co-accordion:not(.co-accordion--open) .co-accordion__body-inner{visibility:hidden;transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out), visibility 0s linear var(--co-motion-duration-slow)}.co-accordion--open .co-accordion__body-inner{visibility:visible;transition:padding-top var(--co-motion-duration-slow) var(--co-motion-ease-out), visibility 0s linear 0s}.co-accordion__caret:focus-visible{outline:2px solid var(--co-color-primary-azul, #2563eb);outline-offset:2px}.co-accordion--disabled .co-accordion__header{opacity:0.5}.co-accordion--disabled .co-accordion__caret{cursor:not-allowed}"}},[257,"co-accordion",{open:[1540],heading:[1],subheading:[1],disabled:[4],hasSubheadingSlot:[32]}]);function r(){"undefined"!=typeof customElements&&["co-accordion","co-icon"].forEach((a=>{switch(a){case"co-accordion":customElements.get(o(a))||customElements.define(o(a),n);break;case"co-icon":customElements.get(o(a))||t()}}))}r();const d=n,s=r;export{d as CoAccordion,s as defineCustomElement}
|