@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
|
@@ -14,12 +14,12 @@ export class CoNavbar {
|
|
|
14
14
|
this.rounded = false;
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("div", { key: '
|
|
17
|
+
return (h("div", { key: 'b99979a7f80e002c44577f5664dd0ab7f40af57d', class: {
|
|
18
18
|
'co-navbar': true,
|
|
19
19
|
[`co-navbar--${this.variant}`]: true,
|
|
20
20
|
[`co-navbar--${this.size}`]: true,
|
|
21
21
|
'co-navbar--rounded': this.rounded,
|
|
22
|
-
}, part: "navbar", role: "toolbar" }, h("slot", { key: '
|
|
22
|
+
}, part: "navbar", role: "toolbar" }, h("slot", { key: 'd650d8cb7214135f439867a1279b90d54b568637' })));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "co-navbar"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
min-height: 40px;
|
|
60
60
|
overflow: hidden;
|
|
61
61
|
box-sizing: border-box;
|
|
62
|
-
transition: border-color
|
|
62
|
+
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);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/* ── Size variants (mirror co-input: s 28 / sm 32 / md 40 / lg 48) ── */
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
color: var(--co-semantic-text-default);
|
|
101
101
|
cursor: pointer;
|
|
102
102
|
padding: 0;
|
|
103
|
-
transition: background
|
|
103
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
.co-number-field__btn:hover:not(:disabled) {
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
background: transparent;
|
|
138
138
|
color: var(--co-semantic-text-muted);
|
|
139
139
|
cursor: pointer;
|
|
140
|
-
transition: color
|
|
140
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
.co-number-field__clear:hover {
|
|
@@ -124,13 +124,13 @@ export class CoNumberField {
|
|
|
124
124
|
this.coChange.emit(clamped);
|
|
125
125
|
}
|
|
126
126
|
render() {
|
|
127
|
-
return (h("div", { key: '
|
|
127
|
+
return (h("div", { key: 'a17f3666d9fa62e3714231b1c512b67a15421e91', class: {
|
|
128
128
|
'co-number-field': true,
|
|
129
129
|
'co-number-field--disabled': this.disabled,
|
|
130
130
|
'co-number-field--focused': this.focused,
|
|
131
131
|
[`co-number-field--${this.size}`]: true,
|
|
132
132
|
[`co-number-field--${this.status}`]: this.status !== 'default',
|
|
133
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
133
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '0a93904accabaa16d7a1e13442708ff44c8f907d', class: "co-number-field__labels" }, this.label && h("label", { key: '47bba6d60e6a62d67f2c74ba544484c917acecad', class: "co-number-field__label" }, this.label, h(RequiredMark, { key: 'd453580e0956c1e91b0f3663c3c2d9d7c7e4c82c', required: this.required })), this.secondaryLabel && h("span", { key: '85c32f97a55c44808ce6a44336594e447c1e1cd4', class: "co-number-field__secondary-label" }, this.secondaryLabel))), h("div", { key: '4351f6817e3d08cdc79b4f6242311c64ebde99f2', class: "co-number-field__row" }, h("button", { key: '8576a67dbf23d9a299728f71415664e269fceef4', class: "co-number-field__btn co-number-field__btn--minus", type: "button", tabIndex: -1, disabled: !this.canDecrement, onClick: this.handleDecrement, "aria-label": "Decrease" }, h("co-icon", { key: '8441220f10d025ac209f6a682348efd1519e51c8', name: "minus", size: 16 })), h("input", { key: '6c33ebf3559addfccdd5a15ae90e4c34eaca183b', ref: el => (this.inputEl = el), class: "co-number-field__input", type: "text", inputMode: "decimal", value: this.isEmpty ? '' : String(this.toDisplay(this.value)), placeholder: this.placeholder, disabled: this.disabled, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown }), this.scaled && !this.isEmpty && (h("span", { key: '410d460daf25fcde952b5e58fc30b853f530f350', class: "co-number-field__affix", "aria-hidden": "true" }, "%")), this.clearable && !this.isEmpty && !this.disabled && (h("button", { key: '8e0369d14d2c8be2642efc70cc3f065a30dd287d', class: "co-number-field__clear", type: "button", tabIndex: -1, onClick: this.handleClear, "aria-label": "Clear" }, h("co-icon", { key: '93b5cf7f38717df2efd7950c5b1624ebaf4b1bf6', name: "x-circle", size: 16, weight: "fill" }))), h("button", { key: 'effa948dedca998c27c17e768ff6b940ad8b9563', class: "co-number-field__btn co-number-field__btn--plus", type: "button", tabIndex: -1, disabled: !this.canIncrement, onClick: this.handleIncrement, "aria-label": "Increase" }, h("co-icon", { key: 'b9f4ac31129dac242e3a6cd3f48413b1e64b550a', name: "plus", size: 16 }))), this.helperText && (h("div", { key: '53772e160a9268e8caa8714a1ec2de76c8f53916', class: `co-number-field__helper co-number-field__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '3643cbdc11330d50b357ea5933c105d9214bcf97', name: this.statusIcon, size: 14, weight: "fill", class: "co-number-field__helper-icon" }), h("span", { key: 'ab0f3c59ebd154126c3c0a48e080afed2457a2ee', class: "co-number-field__helper-text" }, this.helperText)))));
|
|
134
134
|
}
|
|
135
135
|
static get is() { return "co-number-field"; }
|
|
136
136
|
static get encapsulation() { return "shadow"; }
|
|
@@ -674,10 +674,12 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
674
674
|
font-family: var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
|
|
675
675
|
}
|
|
676
676
|
|
|
677
|
-
/* Figma spec (panel dropdown unificado): search 32px + filas 32px
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
*
|
|
677
|
+
/* Figma spec (panel dropdown unificado): search 32px + filas 32px, pitch
|
|
678
|
+
* vertical 34px (= fila 32 + gap 2) — debe coincidir con VIRTUAL_ITEM_HEIGHT
|
|
679
|
+
* en optionListLogic.ts. El chrome del panel (borde, sombra, bg, ancho) es del
|
|
680
|
+
* host; aquí solo el interior. Labels/search a 14px (subidos del 12px del
|
|
681
|
+
* Figma original, 2026-07-29: a 12px el texto quedaba ilegible en paneles
|
|
682
|
+
* densos como el picker de campos del filtro avanzado).
|
|
681
683
|
* Todos los var() llevan fallback literal: el host puede tener un build de
|
|
682
684
|
* tokens viejo sin los tokens nuevos (font-size-12, spacing-sm2, mono…). */
|
|
683
685
|
.co-option-list {
|
|
@@ -723,7 +725,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
723
725
|
background: transparent;
|
|
724
726
|
padding: 0;
|
|
725
727
|
font-family: var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
|
|
726
|
-
font-size: var(--co-font-size-
|
|
728
|
+
font-size: var(--co-font-size-14, 14px);
|
|
727
729
|
font-weight: 500;
|
|
728
730
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
729
731
|
line-height: 1;
|
|
@@ -764,7 +766,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
764
766
|
}
|
|
765
767
|
|
|
766
768
|
/* ── Rows ────────────────────────────────────────────────── */
|
|
767
|
-
/* 32px de alto, padding 4/8/4/4, radius 8, label
|
|
769
|
+
/* 32px de alto, padding 4/8/4/4, radius 8, label 14px regular. */
|
|
768
770
|
.co-option-list__option {
|
|
769
771
|
display: flex;
|
|
770
772
|
align-items: center;
|
|
@@ -775,10 +777,10 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
775
777
|
padding: var(--co-spacing-xs, 4px) var(--co-spacing-sm2, 8px) var(--co-spacing-xs, 4px) var(--co-spacing-xs, 4px);
|
|
776
778
|
border-radius: var(--co-border-radius-xs, 8px);
|
|
777
779
|
cursor: pointer;
|
|
778
|
-
font-size: var(--co-font-size-
|
|
780
|
+
font-size: var(--co-font-size-14, 14px);
|
|
779
781
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
780
782
|
color: var(--co-semantic-text-default, #1f1c1b);
|
|
781
|
-
transition: background
|
|
783
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
782
784
|
}
|
|
783
785
|
|
|
784
786
|
/* Filas virtualizadas: alto FIJO 32 + margen 2 = pitch 34 exacto
|
|
@@ -890,7 +892,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
890
892
|
padding: 0;
|
|
891
893
|
cursor: pointer;
|
|
892
894
|
color: var(--co-semantic-text-muted, #888888);
|
|
893
|
-
transition: color
|
|
895
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
894
896
|
}
|
|
895
897
|
|
|
896
898
|
.co-option-list__row-action:hover {
|
|
@@ -943,7 +945,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
943
945
|
cursor: pointer;
|
|
944
946
|
text-align: left;
|
|
945
947
|
font-family: var(--co-font-family-primary, 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
|
|
946
|
-
font-size: var(--co-font-size-
|
|
948
|
+
font-size: var(--co-font-size-14, 14px);
|
|
947
949
|
letter-spacing: var(--co-font-letter-spacing-body, -0.03em);
|
|
948
950
|
color: var(--co-semantic-text-secondary, #585858);
|
|
949
951
|
}
|
|
@@ -965,7 +967,7 @@ html[data-overlayscrollbars-viewport~=scrollbarHidden] > body::-webkit-scrollbar
|
|
|
965
967
|
align-items: center;
|
|
966
968
|
gap: var(--co-spacing-sm2, 8px);
|
|
967
969
|
padding: var(--co-spacing-md, 12px) var(--co-spacing-xs, 4px);
|
|
968
|
-
font-size: var(--co-font-size-
|
|
970
|
+
font-size: var(--co-font-size-14, 14px);
|
|
969
971
|
color: var(--co-semantic-text-muted, #888888);
|
|
970
972
|
}
|
|
971
973
|
|
|
@@ -245,6 +245,18 @@ export class CoOptionList {
|
|
|
245
245
|
return false;
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
/** X "deselect" de la fila seleccionada: emite la DESELECCIÓN real. pick()
|
|
249
|
+
* no sirve acá: en single re-emite el mismo id (re-selección no-op) — el
|
|
250
|
+
* consumidor jamás se enteraba y la X parecía muerta (bug del workspace). */
|
|
251
|
+
deselectItem(item) {
|
|
252
|
+
if (this.multiple) {
|
|
253
|
+
const next = this.selectedIds.filter((id) => id !== item._id);
|
|
254
|
+
this.coChange.emit({ value: next, item });
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
this.coChange.emit({ value: null, item });
|
|
258
|
+
}
|
|
259
|
+
}
|
|
248
260
|
pick(item) {
|
|
249
261
|
if (this.multiple) {
|
|
250
262
|
const current = this.selectedIds;
|
|
@@ -342,7 +354,7 @@ export class CoOptionList {
|
|
|
342
354
|
'co-option-list__option--dragging': this.dragKey === item._id,
|
|
343
355
|
'co-option-list__option--drop-before': this.overKey === item._id && !this.dropAfter,
|
|
344
356
|
'co-option-list__option--drop-after': this.overKey === item._id && this.dropAfter,
|
|
345
|
-
}, key: item._id, id: `co-optlist-${index}`, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": item.disabled ? 'true' : 'false', draggable: canDrag && this.armedKey === item._id, onClick: () => !item.disabled && this.pick(item), onMouseEnter: () => { this.activeIndex = index; }, onDragStart: canDrag ? (e) => this.handleRowDragStart(e, item._id) : undefined, onDragOver: canDrag ? (e) => this.handleRowDragOver(e, item._id) : undefined, onDrop: canDrag ? (e) => this.handleRowDrop(e, item._id) : undefined, onDragEnd: canDrag ? this.handleRowDragEnd : undefined, onDragLeave: canDrag ? (e) => this.handleRowDragLeave(e, item._id) : undefined }, canDrag && (h("span", { class: "co-option-list__drag-handle", part: "drag-handle", title: "Drag to reorder", onMouseDown: () => (this.armedKey = item._id), onClick: (e) => e.stopPropagation() }, h("co-icon", { name: "dots-six-vertical", size: 16 }))), this.renderLeading(item), h("div", { class: "co-option-list__text" }, h("span", { class: "co-option-list__title" }, h("span", { class: "co-option-list__label", style: item.labelColor ? { color: item.labelColor, fontWeight: '600' } : undefined }, this.renderLabelText(item.label)), item.suffix && h("span", { class: "co-option-list__suffix" }, "- ", item.suffix), item.badge && (h("span", { class: "co-option-list__badge", style: item.badge.color ? { backgroundColor: item.badge.color, color: 'var(--co-color-base-blanco, #fff)' } : undefined }, item.badge.label))), item.description && h("span", { class: "co-option-list__desc" }, item.description)), isSelected && this.removableItems && this.multiple && (h("button", { class: "co-option-list__row-action", type: "button", tabIndex: -1, "aria-label": `Remove ${item.label}`, onClick: (e) => { e.stopPropagation(); this.coRemoveItem.emit(item._id); } }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), isSelected && !this.removableItems && this.selectedAffordance === 'deselect' && (h("button", { class: "co-option-list__row-action", type: "button", tabIndex: -1, "aria-label": `Deselect ${item.label}`, onClick: (e) => { e.stopPropagation(); this.
|
|
357
|
+
}, key: item._id, id: `co-optlist-${index}`, role: "option", "aria-selected": isSelected ? 'true' : 'false', "aria-disabled": item.disabled ? 'true' : 'false', draggable: canDrag && this.armedKey === item._id, onClick: () => !item.disabled && this.pick(item), onMouseEnter: () => { this.activeIndex = index; }, onDragStart: canDrag ? (e) => this.handleRowDragStart(e, item._id) : undefined, onDragOver: canDrag ? (e) => this.handleRowDragOver(e, item._id) : undefined, onDrop: canDrag ? (e) => this.handleRowDrop(e, item._id) : undefined, onDragEnd: canDrag ? this.handleRowDragEnd : undefined, onDragLeave: canDrag ? (e) => this.handleRowDragLeave(e, item._id) : undefined }, canDrag && (h("span", { class: "co-option-list__drag-handle", part: "drag-handle", title: "Drag to reorder", onMouseDown: () => (this.armedKey = item._id), onClick: (e) => e.stopPropagation() }, h("co-icon", { name: "dots-six-vertical", size: 16 }))), this.renderLeading(item), h("div", { class: "co-option-list__text" }, h("span", { class: "co-option-list__title" }, h("span", { class: "co-option-list__label", style: item.labelColor ? { color: item.labelColor, fontWeight: '600' } : undefined }, this.renderLabelText(item.label)), item.suffix && h("span", { class: "co-option-list__suffix" }, "- ", item.suffix), item.badge && (h("span", { class: "co-option-list__badge", style: item.badge.color ? { backgroundColor: item.badge.color, color: 'var(--co-color-base-blanco, #fff)' } : undefined }, item.badge.label))), item.description && h("span", { class: "co-option-list__desc" }, item.description)), isSelected && this.removableItems && this.multiple && (h("button", { class: "co-option-list__row-action", type: "button", tabIndex: -1, "aria-label": `Remove ${item.label}`, onClick: (e) => { e.stopPropagation(); this.coRemoveItem.emit(item._id); } }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), isSelected && !this.removableItems && this.selectedAffordance === 'deselect' && (h("button", { class: "co-option-list__row-action", type: "button", tabIndex: -1, "aria-label": `Deselect ${item.label}`, onClick: (e) => { e.stopPropagation(); this.deselectItem(item); } }, h("co-icon", { name: "x-circle", size: 16, weight: "fill" }))), isSelected && !this.removableItems && this.selectedAffordance === 'check' && (h("co-icon", { name: "check", size: 16, class: "co-option-list__check" }))));
|
|
346
358
|
}
|
|
347
359
|
renderVirtual(items, selectedIds) {
|
|
348
360
|
const { totalHeight, startIdx, endIdx, offsetY } = virtualSlice(this.scrollTop, items.length);
|
|
@@ -353,11 +365,11 @@ export class CoOptionList {
|
|
|
353
365
|
const selectedIds = this.selectedIds;
|
|
354
366
|
const { hasMore, remaining } = deriveMore(this.parsedItems.length, this.total, this.hasMore);
|
|
355
367
|
const showClear = !!this.clearOptionLabel && selectedIds.length > 0;
|
|
356
|
-
return (h("div", { key: '
|
|
368
|
+
return (h("div", { key: 'e71c23c9e944811e8a2fe22ed0da7e0079a09fc1', class: "co-option-list", onKeyDown: this.onRootKeyDown }, this.searchable && (h("div", { key: '243cac58bf43d1d96517ce23339566f64ac0e829', class: "co-option-list__search", part: "search" }, h("co-icon", { key: '88cacafb269fba4d2f257c3fb4e782aac87e6ccb', name: "magnifying-glass", size: 16 }), h("input", { key: 'bbf89cd00fb5abcf4da69cb8717dbde333c9bee5', class: "co-option-list__search-input", type: "text", placeholder: this.searchPlaceholder, value: this.term, onInput: this.onSearchInput, ref: (el) => (this.searchInputEl = el), role: "combobox", "aria-expanded": "true", "aria-autocomplete": "list" }))), h("div", { key: '7dad7f46277280ada5db040cc075600e1ca9fc8e', class: "co-option-list__options", part: "options", role: "listbox", "aria-multiselectable": this.multiple ? 'true' : 'false', ref: (el) => (this.optionsEl = el), onScroll: this.onNativeScroll }, h("div", { key: 'ab0925bef3b21a9458bbf9e878050032bf12a314', class: "co-option-list__inner" }, showClear && (h("button", { key: 'f0191ab61018bf5f485e38a7ec91a3669be65d8c', class: "co-option-list__clear-row", type: "button", onClick: () => this.coClearSelection.emit() }, h("co-icon", { key: 'f1fdecf5c762d0ea35fbc7b226db07af68ffe5f6', name: "x-circle", size: 14 }), h("span", { key: 'cc0f9bbbba12d77fe16b6257d1055ae0b5dfb412' }, this.clearOptionLabel))), this.loading && items.length === 0 && (h("div", { key: 'a4d274d005e27eecc2aa00bc3e26200f609b6557', class: "co-option-list__loading" }, h("co-loader", { key: 'fc26901e715b626c554fbb966acaab6c6545dc65', size: "sm" }))), !this.loading && items.length === 0 && (h("div", { key: '8e5ec84e5b457fffe510811325167120bb93d0a4', class: "co-option-list__empty" }, h("co-icon", { key: 'f4432e87a933d6a26223095c8fb98c7d524e9ec5', name: "magnifying-glass", size: 20 }), h("span", { key: '9ff323be5cbef3a9e47a3a4df2d083e45ea8c66f' }, this.emptyMessage))), items.length > 0 && this.virtual
|
|
357
369
|
? this.renderVirtual(items, selectedIds)
|
|
358
370
|
: buildRows(items).map((row) => row.kind === 'header'
|
|
359
371
|
? h("div", { class: "co-option-list__group", role: "presentation" }, row.label)
|
|
360
|
-
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '
|
|
372
|
+
: this.renderRow(row.item, row.index, selectedIds)), this.loading && items.length > 0 && (h("div", { key: '75da57f74983d6e1d6c51c9a7028ab5b60cb09fb', class: "co-option-list__loading-more" }, h("co-loader", { key: '2de686294f2b7420c914b7fc2de6ad61accef230', size: "sm" }))), !this.loading && hasMore && remaining > 0 && (h("div", { key: 'abfd2f90990eff232b87b64f5cfe80c158e2d51c', class: "co-option-list__more" }, remaining, " more results")))), h("slot", { key: 'c8c245a8fd133ce0b24a135592a4bdac4d2da485', name: "footer" })));
|
|
361
373
|
}
|
|
362
374
|
static get is() { return "co-option-list"; }
|
|
363
375
|
static get encapsulation() { return "shadow"; }
|
|
@@ -847,7 +859,7 @@ export class CoOptionList {
|
|
|
847
859
|
"name": "coSearch",
|
|
848
860
|
"bubbles": false,
|
|
849
861
|
"cancelable": true,
|
|
850
|
-
"composed":
|
|
862
|
+
"composed": false,
|
|
851
863
|
"docs": {
|
|
852
864
|
"tags": [],
|
|
853
865
|
"text": ""
|
|
@@ -862,14 +874,14 @@ export class CoOptionList {
|
|
|
862
874
|
"name": "coChange",
|
|
863
875
|
"bubbles": false,
|
|
864
876
|
"cancelable": true,
|
|
865
|
-
"composed":
|
|
877
|
+
"composed": false,
|
|
866
878
|
"docs": {
|
|
867
879
|
"tags": [],
|
|
868
880
|
"text": ""
|
|
869
881
|
},
|
|
870
882
|
"complexType": {
|
|
871
|
-
"original": "{ value: string | string[]; item: OptionListItem }",
|
|
872
|
-
"resolved": "{ value: string | string[]; item: OptionListItem; }",
|
|
883
|
+
"original": "{ value: string | string[] | null; item: OptionListItem }",
|
|
884
|
+
"resolved": "{ value: string | string[] | null; item: OptionListItem; }",
|
|
873
885
|
"references": {
|
|
874
886
|
"OptionListItem": {
|
|
875
887
|
"location": "import",
|
|
@@ -884,7 +896,7 @@ export class CoOptionList {
|
|
|
884
896
|
"name": "coLoadMore",
|
|
885
897
|
"bubbles": false,
|
|
886
898
|
"cancelable": true,
|
|
887
|
-
"composed":
|
|
899
|
+
"composed": false,
|
|
888
900
|
"docs": {
|
|
889
901
|
"tags": [],
|
|
890
902
|
"text": ""
|
|
@@ -899,7 +911,7 @@ export class CoOptionList {
|
|
|
899
911
|
"name": "coClearSelection",
|
|
900
912
|
"bubbles": false,
|
|
901
913
|
"cancelable": true,
|
|
902
|
-
"composed":
|
|
914
|
+
"composed": false,
|
|
903
915
|
"docs": {
|
|
904
916
|
"tags": [],
|
|
905
917
|
"text": ""
|
|
@@ -914,7 +926,7 @@ export class CoOptionList {
|
|
|
914
926
|
"name": "coRemoveItem",
|
|
915
927
|
"bubbles": false,
|
|
916
928
|
"cancelable": true,
|
|
917
|
-
"composed":
|
|
929
|
+
"composed": false,
|
|
918
930
|
"docs": {
|
|
919
931
|
"tags": [],
|
|
920
932
|
"text": ""
|
|
@@ -929,7 +941,7 @@ export class CoOptionList {
|
|
|
929
941
|
"name": "coReorder",
|
|
930
942
|
"bubbles": false,
|
|
931
943
|
"cancelable": true,
|
|
932
|
-
"composed":
|
|
944
|
+
"composed": false,
|
|
933
945
|
"docs": {
|
|
934
946
|
"tags": [],
|
|
935
947
|
"text": "Emitido tras un drag-reorder: nuevo orden de ids seleccionados + \u00EDtem movido."
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
backdrop-filter: blur(var(--co-overlay-blur, 2px));
|
|
26
26
|
opacity: 0;
|
|
27
27
|
pointer-events: none;
|
|
28
|
-
transition: opacity
|
|
28
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-in);
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.co-overlay--open {
|
|
32
32
|
opacity: 1;
|
|
33
33
|
pointer-events: auto;
|
|
34
|
-
transition: opacity
|
|
34
|
+
transition: opacity var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
35
35
|
}
|
|
@@ -187,7 +187,7 @@ export class CoOverlay {
|
|
|
187
187
|
focusables[nextIndex].focus();
|
|
188
188
|
}
|
|
189
189
|
render() {
|
|
190
|
-
return (h("div", { key: '
|
|
190
|
+
return (h("div", { key: '161c444c041a11e1582dc9f6ff9405a7cf7f58dd', class: { 'co-overlay': true, 'co-overlay--open': this.open }, part: "overlay", popover: "manual", tabindex: this.trapFocus ? -1 : undefined, ref: (el) => (this.overlayEl = el), onClick: this.handleClick, onTransitionEnd: this.handleTransitionEnd }, h("slot", { key: '81ca9b2a323b7bf5c8d47db1e0b4be1283063039' })));
|
|
191
191
|
}
|
|
192
192
|
static get is() { return "co-overlay"; }
|
|
193
193
|
static get encapsulation() { return "shadow"; }
|
|
@@ -6,7 +6,7 @@ import { h } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class CoPageHeader {
|
|
8
8
|
render() {
|
|
9
|
-
return (h("div", { key: '
|
|
9
|
+
return (h("div", { key: '305f42c88d10f238351f362b72283abe82eaeb20', class: "co-page-header", part: "page-header" }, h("div", { key: '10185fe127049bfece585c59f92824888113861e', class: "co-page-header__left" }, this.icon && (h("span", { key: '017bc4f2aed8d05999c581ce0d7a4797aa84eff6', class: "co-page-header__icon" }, h("co-icon", { key: '7d5863437875aa09ad3bbe9e12c0b5d5c9f5c0c7', name: this.icon, size: 24 }))), h("span", { key: 'e62ead8cb061045d8995689dce3009e9843e3997', class: "co-page-header__title" }, h("slot", { key: '9e1d01a94942daeeb1c56f1d0f05534b45125422' }, this.heading))), h("div", { key: '5a2dd08e5b11ab33e64ddb581196d8535deb0925', class: "co-page-header__actions" }, h("slot", { key: '7fd3a5ea06593c9208a59ba2812bb827f1d39815', name: "actions" }))));
|
|
10
10
|
}
|
|
11
11
|
static get is() { return "co-page-header"; }
|
|
12
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
background: var(--co-semantic-surface-page);
|
|
54
54
|
border: 1px solid var(--co-semantic-border-field);
|
|
55
55
|
border-radius: var(--co-border-radius-xs);
|
|
56
|
-
transition: border-color
|
|
56
|
+
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);
|
|
57
57
|
min-height: 40px;
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
}
|
|
@@ -159,7 +159,7 @@ export class CoPhoneField {
|
|
|
159
159
|
render() {
|
|
160
160
|
const entry = this.selectedEntry;
|
|
161
161
|
const statusClass = this.status !== 'default' ? `co-phone-field--${this.status}` : '';
|
|
162
|
-
return (h("div", { key: '
|
|
162
|
+
return (h("div", { key: '44113c6d2a4845b96b185bc1a291335ad099491b', class: `co-phone-field co-phone-field--${this.size} ${statusClass} ${this.disabled ? 'co-phone-field--disabled' : ''}` }, this.label && (h("label", { key: 'aee2eced519f996ebf8941210e5151ebe32429d3', class: "co-phone-field__label" }, this.label, h(RequiredMark, { key: '85b8d50b8062d0041b0f416beb7a140d29d06b1f', required: this.required }))), h("div", { key: '381313d069536477ded093cd236ff740dc534ae4', class: "co-phone-field__container" }, h("button", { key: '4aa81cd26e4824c45b9fd0530a4ff1016acbc877', type: "button", class: "co-phone-field__selector", disabled: this.disabled, onClick: () => this.handleToggleDropdown(), "aria-expanded": String(this.isOpen), "aria-haspopup": "listbox" }, entry ? (h("img", { class: "co-phone-field__flag", src: `https://flagcdn.com/w40/${entry.iso2.toLowerCase()}.png`, alt: entry.iso2 })) : (h("co-icon", { name: "phone", size: 16 })), h("span", { key: 'd8ba9bbaae902853d97c37892ea2094a3a05c2ed', class: "co-phone-field__dial-code" }, entry ? entry.dialCode : ''), h("span", { key: '065c2daf2b277fd870204c989b3eb359aa68dec4', class: "co-phone-field__chevron" }, h("co-icon", { key: '53761d275d9f98010c197e7d8b8f5b20abf753fd', name: "caret-down", size: 14 }))), h("input", { key: '8340a483e8deaf24fd7b03d2239195064d392eb4', class: "co-phone-field__input", type: "tel", placeholder: this.placeholder, value: this.numberPart, disabled: this.disabled, onInput: (e) => this.handleNumberInput(e) })), this.isOpen && (h("div", { key: '6e736fb24707feb8faf373a403b192670698a043', class: "co-phone-field__dropdown", role: "listbox" }, h("div", { key: 'f0750d83d3da8cebc3c1b39d21a35b31bc17bd4a', class: "co-phone-field__search" }, h("input", { key: '546c432e6e11010e2d685780e2f5eddfbf3ad73d', class: "co-phone-field__search-input", type: "text", placeholder: "Search country...", value: this.searchQuery, onInput: (e) => this.handleSearchInput(e), autoFocus: true })), h("div", { key: '5960b2979fbedf66ea197ff7f37093b6240242bc', class: "co-phone-field__options" }, this.filteredCountries.map((d) => (h("button", { type: "button", key: d.iso2, class: `co-phone-field__option ${d.iso2 === this.selectedIso2 ? 'co-phone-field__option--selected' : ''}`, role: "option", "aria-selected": d.iso2 === this.selectedIso2 ? 'true' : 'false', onClick: () => this.handleCountrySelect(d) }, h("img", { class: "co-phone-field__option-flag", src: `https://flagcdn.com/w40/${d.iso2.toLowerCase()}.png`, alt: d.iso2 }), h("span", { class: "co-phone-field__option-name" }, this.renderName(d.name)), h("span", { class: "co-phone-field__option-code" }, d.dialCode))))))), this.helperText && (h("div", { key: 'fa9e15ba4f08abf2caff8b1b196ce25ce2e89bb9', class: "co-phone-field__helper" }, this.statusIcon && (h("co-icon", { key: '122a32febae2d6f86e32d8b3d1f2ec2df9e573c7', name: this.statusIcon, size: 14, weight: "fill", class: "co-phone-field__helper-icon" })), h("span", { key: '6117ecd58a0c2ddefca94237f7c5d815fd5c3c79', class: "co-phone-field__helper-text" }, this.helperText)))));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "co-phone-field"; }
|
|
165
165
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,7 +37,13 @@
|
|
|
37
37
|
max-width: none;
|
|
38
38
|
max-height: none;
|
|
39
39
|
z-index: 10000;
|
|
40
|
+
/* Estado inicial de la entrada. `visibility: hidden` ya ocultaba el panel
|
|
41
|
+
hasta que JS lo posiciona (--positioned); opacity/scale se suman a esa
|
|
42
|
+
misma puerta, así que si el posicionamiento no corre el panel queda
|
|
43
|
+
exactamente igual de invisible que antes — sin estado nuevo que limpiar. */
|
|
40
44
|
visibility: hidden;
|
|
45
|
+
opacity: 0;
|
|
46
|
+
transform: scale(0.98);
|
|
41
47
|
background: var(--co-semantic-surface-page, #fff);
|
|
42
48
|
border: 1px solid var(--co-semantic-border-subtle);
|
|
43
49
|
border-radius: var(--co-border-radius-sm, 12px);
|
|
@@ -45,6 +51,27 @@
|
|
|
45
51
|
overflow: visible;
|
|
46
52
|
}
|
|
47
53
|
|
|
54
|
+
/* La transición vive en --positioned (solo entrada): el cierre desmonta el nodo,
|
|
55
|
+
no hay fase de salida que animar. */
|
|
48
56
|
.co-popover__panel--positioned {
|
|
49
57
|
visibility: visible;
|
|
58
|
+
opacity: 1;
|
|
59
|
+
transform: scale(1);
|
|
60
|
+
transition:
|
|
61
|
+
opacity var(--co-motion-duration-base) var(--co-motion-ease-out),
|
|
62
|
+
transform var(--co-motion-duration-base) var(--co-motion-ease-out);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Origen según el lado resuelto (post-flip) por el que abre el panel. */
|
|
66
|
+
.co-popover__panel--bottom {
|
|
67
|
+
transform-origin: top center;
|
|
68
|
+
}
|
|
69
|
+
.co-popover__panel--top {
|
|
70
|
+
transform-origin: bottom center;
|
|
71
|
+
}
|
|
72
|
+
.co-popover__panel--right {
|
|
73
|
+
transform-origin: center left;
|
|
74
|
+
}
|
|
75
|
+
.co-popover__panel--left {
|
|
76
|
+
transform-origin: center right;
|
|
50
77
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { computePosition, findNearestScrollParent, getOffsetAncestor } from "../../utils/positioning";
|
|
3
|
+
import { pushLayer, removeLayer, isTopLayer } from "../../utils/popover-stack";
|
|
4
|
+
/** Side classes driving the entrance `transform-origin` (see co-popover.css). */
|
|
5
|
+
const SIDE_CLASSES = ['top', 'bottom', 'left', 'right'].map((s) => `co-popover__panel--${s}`);
|
|
3
6
|
export class CoPopover {
|
|
4
7
|
constructor() {
|
|
5
8
|
// ── Props ──────────────────────────────────────────────────
|
|
@@ -11,7 +14,14 @@ export class CoPopover {
|
|
|
11
14
|
this.matchWidth = false;
|
|
12
15
|
/** Gap in px between trigger and panel. */
|
|
13
16
|
this.offset = 4;
|
|
14
|
-
/**
|
|
17
|
+
/**
|
|
18
|
+
* Close when clicking outside the component.
|
|
19
|
+
*
|
|
20
|
+
* ⚠️ In a stacked popover scenario, only the top-of-stack layer reacts to
|
|
21
|
+
* outside clicks (see `handleDocumentClickManual`). If the TOP layer sets
|
|
22
|
+
* this to `false` (a persistent popover), outside clicks are swallowed
|
|
23
|
+
* entirely — popovers below it in the stack lose their dismiss too.
|
|
24
|
+
*/
|
|
15
25
|
this.closeOnClickOutside = true;
|
|
16
26
|
/** Close when pressing Escape. */
|
|
17
27
|
this.closeOnEscape = true;
|
|
@@ -37,6 +47,15 @@ export class CoPopover {
|
|
|
37
47
|
// Early-exit keeps closed instances silent.
|
|
38
48
|
if (!this.open || !this.closeOnClickOutside)
|
|
39
49
|
return;
|
|
50
|
+
// Solo el tope de la pila reacciona al click afuera: con popovers
|
|
51
|
+
// anidados (dropdown dentro de un panel de filtro), el primer click
|
|
52
|
+
// afuera cierra solo el de más arriba; el padre queda intacto. Nota: si
|
|
53
|
+
// el TOPE tiene closeOnClickOutside=false (popover persistente), el
|
|
54
|
+
// click afuera no cierra NADA — el padre queda protegido detrás del hijo
|
|
55
|
+
// persistente (comportamiento deseado: el hijo bloquea el dismiss del
|
|
56
|
+
// padre). Con un solo popover abierto, nada cambia respecto a hoy.
|
|
57
|
+
if (!isTopLayer(this.el))
|
|
58
|
+
return;
|
|
40
59
|
const path = e.composedPath();
|
|
41
60
|
if (!path.includes(this.el)) {
|
|
42
61
|
this.open = false;
|
|
@@ -45,6 +64,8 @@ export class CoPopover {
|
|
|
45
64
|
this.handleDocumentKeydownManual = (e) => {
|
|
46
65
|
if (!this.open || !this.closeOnEscape)
|
|
47
66
|
return;
|
|
67
|
+
if (!isTopLayer(this.el))
|
|
68
|
+
return; // solo el tope reacciona a ESC
|
|
48
69
|
if (e.key === 'Escape') {
|
|
49
70
|
e.stopPropagation();
|
|
50
71
|
this.open = false;
|
|
@@ -55,8 +76,22 @@ export class CoPopover {
|
|
|
55
76
|
if (!this.open || !this.triggerEl || !this.panelEl)
|
|
56
77
|
return;
|
|
57
78
|
const triggerRect = this.triggerEl.getBoundingClientRect();
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
// ⚠️ El panel arrastra el `transform: scale()` de la entrada, y
|
|
80
|
+
// getBoundingClientRect() devuelve la caja TRANSFORMADA: 0.98× al montar y
|
|
81
|
+
// ~0.982× en la segunda pasada del watcher (~16ms de los 180ms). Medir con
|
|
82
|
+
// ella metía el factor de escala DENTRO de la matemática de posicionamiento,
|
|
83
|
+
// y ~2% del error quedaba en la posición de reposo: las alineaciones que
|
|
84
|
+
// restan el tamaño del panel (`bottom-end` — el default de co-menu —, `top*`,
|
|
85
|
+
// `left`) quedaban corridas y saltaban al re-medirse en scale(1) en el primer
|
|
86
|
+
// scroll. `offsetWidth/offsetHeight` son la caja de borde SIN transform.
|
|
87
|
+
// computePosition usa el panelRect solo como input de TAMAÑO: lee width y
|
|
88
|
+
// height y nada más (positioning.ts:61-113 — nunca x/y/top/left), por eso
|
|
89
|
+
// acá se construye a partir del tamaño y se ahorra el getBoundingClientRect.
|
|
90
|
+
const panelRect = DOMRect.fromRect({
|
|
91
|
+
width: this.panelEl.offsetWidth,
|
|
92
|
+
height: this.panelEl.offsetHeight,
|
|
93
|
+
});
|
|
94
|
+
const { top, left, actualPlacement } = computePosition(triggerRect, panelRect, {
|
|
60
95
|
placement: this.placement,
|
|
61
96
|
offset: this.offset,
|
|
62
97
|
flip: this.flip,
|
|
@@ -89,6 +124,16 @@ export class CoPopover {
|
|
|
89
124
|
// Apply styles directly to DOM to avoid triggering a re-render loop
|
|
90
125
|
if (this.panelEl) {
|
|
91
126
|
Object.assign(this.panelEl.style, style);
|
|
127
|
+
// Side of the RESOLVED placement (post-flip), not of the `placement` prop:
|
|
128
|
+
// it drives the entrance `transform-origin` so the panel grows out of the
|
|
129
|
+
// trigger. Re-positioning (scroll/resize) can flip sides, so the class is
|
|
130
|
+
// re-evaluated on every run — but only written when it actually changed,
|
|
131
|
+
// to keep the scroll path free of per-tick class-attribute churn.
|
|
132
|
+
const sideClass = `co-popover__panel--${actualPlacement.split('-')[0]}`;
|
|
133
|
+
if (!this.panelEl.classList.contains(sideClass)) {
|
|
134
|
+
this.panelEl.classList.remove(...SIDE_CLASSES);
|
|
135
|
+
this.panelEl.classList.add(sideClass);
|
|
136
|
+
}
|
|
92
137
|
this.panelEl.classList.add('co-popover__panel--positioned');
|
|
93
138
|
}
|
|
94
139
|
};
|
|
@@ -118,12 +163,14 @@ export class CoPopover {
|
|
|
118
163
|
this.onOpenChange(true);
|
|
119
164
|
}
|
|
120
165
|
disconnectedCallback() {
|
|
166
|
+
removeLayer(this.el);
|
|
121
167
|
this.unbindDocListeners();
|
|
122
168
|
this.cleanupListeners();
|
|
123
169
|
}
|
|
124
170
|
// ── Watchers ───────────────────────────────────────────────
|
|
125
171
|
onOpenChange(isOpen) {
|
|
126
172
|
if (isOpen) {
|
|
173
|
+
pushLayer(this.el);
|
|
127
174
|
this.coOpen.emit();
|
|
128
175
|
this.bindDocListeners();
|
|
129
176
|
// Schedule two updates: one immediate for initial position,
|
|
@@ -137,6 +184,7 @@ export class CoPopover {
|
|
|
137
184
|
this.addScrollListeners();
|
|
138
185
|
}
|
|
139
186
|
else {
|
|
187
|
+
removeLayer(this.el);
|
|
140
188
|
this.coClose.emit();
|
|
141
189
|
this.cleanupListeners();
|
|
142
190
|
this.unbindDocListeners();
|
|
@@ -223,13 +271,13 @@ export class CoPopover {
|
|
|
223
271
|
}
|
|
224
272
|
// ── Render ─────────────────────────────────────────────────
|
|
225
273
|
render() {
|
|
226
|
-
return (h("div", { key: '
|
|
274
|
+
return (h("div", { key: '8a4ccad04a131824d9990759a41905e4772fd56c', class: "co-popover" }, h("div", { key: 'b71344c25aa5f785dbcb65425931f25403877173', class: "co-popover__trigger", ref: (el) => (this.triggerEl = el), onClick: this.handleTriggerClick }, h("slot", { key: '3a2ad77fbf1d79f917f9c7278faef8ecb65a364e', name: "trigger" })), this.open && (h("div", { key: 'dd6d65a867b15ad3d6fe18658d1f3fdd89be8806', class: "co-popover__panel", popover: "manual", ref: (el) => {
|
|
227
275
|
if (el && el !== this.panelEl) {
|
|
228
276
|
this.panelEl = el;
|
|
229
277
|
this.promotePanel();
|
|
230
278
|
this.scheduleUpdate();
|
|
231
279
|
}
|
|
232
|
-
} }, h("slot", { key: '
|
|
280
|
+
} }, h("slot", { key: '3082d046fc973bd5f571b4f9b845844be6e6bf9c' })))));
|
|
233
281
|
}
|
|
234
282
|
static get is() { return "co-popover"; }
|
|
235
283
|
static get encapsulation() { return "shadow"; }
|
|
@@ -343,7 +391,7 @@ export class CoPopover {
|
|
|
343
391
|
"optional": false,
|
|
344
392
|
"docs": {
|
|
345
393
|
"tags": [],
|
|
346
|
-
"text": "Close when clicking outside the component."
|
|
394
|
+
"text": "Close when clicking outside the component.\n\n\u26A0\uFE0F In a stacked popover scenario, only the top-of-stack layer reacts to\noutside clicks (see `handleDocumentClickManual`). If the TOP layer sets\nthis to `false` (a persistent popover), outside clicks are swallowed\nentirely \u2014 popovers below it in the stack lose their dismiss too."
|
|
347
395
|
},
|
|
348
396
|
"getter": false,
|
|
349
397
|
"setter": false,
|
|
@@ -18,12 +18,12 @@ export class CoProgressBar {
|
|
|
18
18
|
render() {
|
|
19
19
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
20
20
|
const indeterminate = this.indeterminate;
|
|
21
|
-
return (h("div", { key: '
|
|
21
|
+
return (h("div", { key: '1d46449d4034da8868004f4204007301126526dd', class: {
|
|
22
22
|
'co-progress-bar': true,
|
|
23
23
|
[`co-progress-bar--${this.status}`]: true,
|
|
24
24
|
[`co-progress-bar--${this.variant}`]: true,
|
|
25
25
|
'co-progress-bar--indeterminate': indeterminate,
|
|
26
|
-
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: '
|
|
26
|
+
}, role: "progressbar", "aria-valuenow": indeterminate ? undefined : clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "bar", style: { height: `${this.thickness}px` } }, h("div", { key: '2bbc631c4ee331cc265b1fb779006b72f6cd436e', class: "co-progress-bar__fill", style: indeterminate ? undefined : { width: `${clamped}%` } })));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "co-progress-bar"; }
|
|
29
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -19,7 +19,7 @@ export class CoProgressCircle {
|
|
|
19
19
|
const clamped = Math.max(0, Math.min(100, this.value));
|
|
20
20
|
const angle = (clamped / 100) * 360;
|
|
21
21
|
const safeStroke = Math.min(this.strokeWidth, this.size / 2);
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '161f80b35c78efff11e7ecbff1c9cb234bb85390', class: {
|
|
23
23
|
'co-progress-circle': true,
|
|
24
24
|
[`co-progress-circle--${this.status}`]: true,
|
|
25
25
|
}, role: "progressbar", "aria-valuenow": clamped, "aria-valuemin": 0, "aria-valuemax": 100, part: "circle", style: {
|
|
@@ -27,7 +27,7 @@ export class CoProgressCircle {
|
|
|
27
27
|
height: `${this.size}px`,
|
|
28
28
|
'--co-pc-angle': `${angle}deg`,
|
|
29
29
|
'--co-pc-stroke': `${safeStroke}px`,
|
|
30
|
-
} }, h("div", { key: '
|
|
30
|
+
} }, h("div", { key: 'f68892a3b122f6ad97cb3a2415fd7456055fdc3a', class: "co-progress-circle__track" }), this.showLabel && (h("span", { key: '4bac057faa45335a4fba807b7a58eebdabd26489', class: "co-progress-circle__label" }, clamped, "%"))));
|
|
31
31
|
}
|
|
32
32
|
static get is() { return "co-progress-circle"; }
|
|
33
33
|
static get encapsulation() { return "shadow"; }
|
|
@@ -17,15 +17,15 @@ export class CoRadio {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (h("div", { key: '
|
|
20
|
+
return (h("div", { key: '4d3635f594d87efe5dbfee2dae2c57dd359c79f8', class: {
|
|
21
21
|
'co-radio-row': true,
|
|
22
22
|
'co-radio-row--disabled': this.disabled,
|
|
23
|
-
}, onClick: this.handleClick }, h("button", { key: '
|
|
23
|
+
}, onClick: this.handleClick }, h("button", { key: '8e438682bc870404be748acba71589ab87f63dec', role: "radio", "aria-checked": String(this.checked), "aria-label": this.label || '', class: {
|
|
24
24
|
'co-radio': true,
|
|
25
25
|
[`co-radio--${this.size}`]: true,
|
|
26
26
|
'co-radio--checked': this.checked,
|
|
27
27
|
'co-radio--disabled': this.disabled,
|
|
28
|
-
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '
|
|
28
|
+
}, disabled: this.disabled, part: "circle" }), this.label && (h("span", { key: '17668c66e61b664e3b49a2acd230b99b2cf8409b', class: "co-radio__label", part: "label" }, this.label))));
|
|
29
29
|
}
|
|
30
30
|
static get is() { return "co-radio"; }
|
|
31
31
|
static get encapsulation() { return "shadow"; }
|