@prolibu-suite/cobalt-core 0.9.0 → 0.9.2
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 +589 -27
- 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 +3 -3
- package/dist/cjs/co-autocomplete.cjs.entry.js +1 -1
- package/dist/cjs/co-avatar_2.cjs.entry.js +2 -2
- package/dist/cjs/co-badge.cjs.entry.js +1 -1
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +10 -11
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/co-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +2 -2
- package/dist/cjs/co-button.cjs.entry.js +2 -2
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +3 -3
- package/dist/cjs/co-calendar_3.cjs.entry.js +42 -7
- 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 +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/co-chip_2.cjs.entry.js +11 -11
- package/dist/cjs/co-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-column-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-combobox.cjs.entry.js +1 -1
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +4 -4
- package/dist/cjs/co-data-table.cjs.entry.js +127 -8
- package/dist/cjs/co-date-range.cjs.entry.js +1 -1
- package/dist/cjs/co-date-time-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-drive-card.cjs.entry.js +1 -1
- package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
- package/dist/cjs/co-emoji-picker.cjs.entry.js +2808 -0
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-event-calendar.cjs.entry.js +2 -2
- package/dist/cjs/co-event-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-fab.cjs.entry.js +3 -3
- package/dist/cjs/co-file-field.cjs.entry.js +5 -5
- package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
- package/dist/cjs/co-helper-text.cjs.entry.js +2 -2
- package/dist/cjs/co-icon-button.cjs.entry.js +2 -2
- package/dist/cjs/co-icon.cjs.entry.js +2 -2
- package/dist/cjs/co-json-field.cjs.entry.js +3 -3
- package/dist/cjs/co-lightbox.cjs.entry.js +4 -4
- package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
- package/dist/cjs/co-list-item.cjs.entry.js +4 -4
- package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/co-menu.cjs.entry.js +1 -1
- package/dist/cjs/co-modal.cjs.entry.js +9 -3
- package/dist/cjs/co-navbar.cjs.entry.js +2 -2
- package/dist/cjs/co-number-field.cjs.entry.js +2 -2
- package/dist/cjs/co-overlay.cjs.entry.js +1 -1
- package/dist/cjs/co-page-header.cjs.entry.js +1 -1
- package/dist/cjs/co-phone-field.cjs.entry.js +1 -1
- package/dist/cjs/co-popover.cjs.entry.js +49 -3
- package/dist/cjs/co-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +3 -3
- package/dist/cjs/co-rating.cjs.entry.js +3 -3
- package/dist/cjs/co-ref-field.cjs.entry.js +13 -4
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +3 -3
- package/dist/cjs/co-row.cjs.entry.js +2 -2
- package/dist/cjs/co-select.cjs.entry.js +13 -4
- package/dist/cjs/co-separator.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +2 -2
- package/dist/cjs/co-switch.cjs.entry.js +3 -3
- package/dist/cjs/co-tab-group.cjs.entry.js +2 -2
- package/dist/cjs/co-tab.cjs.entry.js +2 -2
- package/dist/cjs/co-tags-field.cjs.entry.js +5 -5
- package/dist/cjs/co-textarea.cjs.entry.js +4 -4
- package/dist/cjs/co-toast.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/co-transfer-list.cjs.entry.js +2 -2
- package/dist/cjs/co-video.cjs.entry.js +2 -2
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/emojiNames.es-BjpSEJ0c.js +1925 -0
- package/dist/cjs/emojiNames.pt-DWupaZMJ.js +1925 -0
- package/dist/cjs/index-DK-2Lzmf.js +16 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/slotContent-Bm9RcM_Q.js +34 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-142506d9.entry.js → p-02ac492f.entry.js} +1 -1
- package/dist/cobalt/p-07904986.entry.js +1 -0
- package/dist/cobalt/{p-24e93fcb.entry.js → p-07d570a6.entry.js} +1 -1
- package/dist/cobalt/p-09799193.entry.js +1 -0
- package/dist/cobalt/{p-e5b5ae89.entry.js → p-0ccb672b.entry.js} +1 -1
- package/dist/cobalt/{p-49bde154.entry.js → p-0e91e5c4.entry.js} +1 -1
- package/dist/cobalt/{p-724b9b54.entry.js → p-17ae943c.entry.js} +1 -1
- package/dist/cobalt/{p-fa5c25d6.entry.js → p-18af9e44.entry.js} +1 -1
- package/dist/cobalt/{p-b9ac1f25.entry.js → p-18d34b01.entry.js} +1 -1
- package/dist/cobalt/{p-d7b00e5f.entry.js → p-1c68bc41.entry.js} +1 -1
- package/dist/cobalt/{p-2a9ba4c8.entry.js → p-2114c036.entry.js} +1 -1
- package/dist/cobalt/{p-37541725.entry.js → p-23a103a0.entry.js} +1 -1
- package/dist/cobalt/{p-7255ab63.entry.js → p-23b3ff3f.entry.js} +1 -1
- package/dist/cobalt/{p-baeb5d55.entry.js → p-2d329ac8.entry.js} +1 -1
- package/dist/cobalt/{p-417ce874.entry.js → p-2d81b292.entry.js} +1 -1
- package/dist/cobalt/{p-b64b0a07.entry.js → p-316c62c0.entry.js} +1 -1
- package/dist/cobalt/{p-c3c2087e.entry.js → p-33ea4a90.entry.js} +1 -1
- package/dist/cobalt/{p-8a93beb0.entry.js → p-342e1da4.entry.js} +1 -1
- package/dist/cobalt/p-3495fda1.entry.js +1 -0
- package/dist/cobalt/{p-5f1b273b.entry.js → p-36197363.entry.js} +1 -1
- package/dist/cobalt/{p-2d0354cc.entry.js → p-3f0eed59.entry.js} +1 -1
- package/dist/cobalt/{p-6d532475.entry.js → p-43bd298d.entry.js} +1 -1
- package/dist/cobalt/{p-81866f71.entry.js → p-4a503187.entry.js} +1 -1
- package/dist/cobalt/{p-c7a809c7.entry.js → p-4b083da4.entry.js} +1 -1
- package/dist/cobalt/{p-f1284fcd.entry.js → p-4c7e3984.entry.js} +1 -1
- package/dist/cobalt/p-4f754c9a.entry.js +1 -0
- package/dist/cobalt/p-54ae807d.entry.js +1 -0
- package/dist/cobalt/{p-d21da71a.entry.js → p-55566b37.entry.js} +1 -1
- package/dist/cobalt/p-682b3313.entry.js +1 -0
- package/dist/cobalt/{p-a5d84c7a.entry.js → p-7457aa89.entry.js} +1 -1
- package/dist/cobalt/{p-8b7a4f6c.entry.js → p-77719335.entry.js} +1 -1
- package/dist/cobalt/{p-94a8a119.entry.js → p-7c5e846a.entry.js} +1 -1
- package/dist/cobalt/{p-9c2ce487.entry.js → p-7c88163e.entry.js} +1 -1
- package/dist/cobalt/{p-12a0ae24.entry.js → p-7cf4b4ae.entry.js} +1 -1
- package/dist/cobalt/{p-3ac316e0.entry.js → p-7e53e9c8.entry.js} +1 -1
- package/dist/cobalt/{p-e99832a9.entry.js → p-8183f56f.entry.js} +1 -1
- package/dist/cobalt/p-8345b25f.entry.js +1 -0
- package/dist/cobalt/{p-b004c3bb.entry.js → p-88a0659f.entry.js} +1 -1
- package/dist/cobalt/{p-87fc5aed.entry.js → p-89e38c5e.entry.js} +1 -1
- package/dist/cobalt/{p-a074f2ba.entry.js → p-8eb485c8.entry.js} +1 -1
- package/dist/cobalt/{p-c31f5c1b.entry.js → p-8f38e24d.entry.js} +1 -1
- package/dist/cobalt/{p-f52f61d4.entry.js → p-8f600512.entry.js} +1 -1
- package/dist/cobalt/{p-09fe6ece.entry.js → p-95efe661.entry.js} +1 -1
- package/dist/cobalt/{p-c42c505c.entry.js → p-983af614.entry.js} +1 -1
- package/dist/cobalt/p-B6oiFdUY.js +1 -0
- package/dist/cobalt/p-CBX_oabB.js +1 -0
- package/dist/cobalt/p-a02db338.entry.js +1 -0
- package/dist/cobalt/{p-19f5d480.entry.js → p-a51d8775.entry.js} +1 -1
- package/dist/cobalt/{p-d3c765e3.entry.js → p-a6357340.entry.js} +1 -1
- package/dist/cobalt/p-a6b5cadd.entry.js +1 -0
- package/dist/cobalt/{p-5d7c26f2.entry.js → p-a8c64cc3.entry.js} +1 -1
- package/dist/cobalt/{p-19706923.entry.js → p-a9096b5c.entry.js} +1 -1
- package/dist/cobalt/{p-b800e107.entry.js → p-a9b29cc2.entry.js} +1 -1
- package/dist/cobalt/p-aafb9d11.entry.js +1 -0
- package/dist/cobalt/{p-cc72557d.entry.js → p-ab45d9bd.entry.js} +1 -1
- package/dist/cobalt/{p-43b1f8fb.entry.js → p-ac466658.entry.js} +1 -1
- package/dist/cobalt/{p-3ecc29fa.entry.js → p-ac91259e.entry.js} +1 -1
- package/dist/cobalt/{p-a45e2c00.entry.js → p-b0319a2d.entry.js} +1 -1
- package/dist/cobalt/{p-8206c7c0.entry.js → p-b8581787.entry.js} +1 -1
- package/dist/cobalt/{p-debe0d79.entry.js → p-bfc2a849.entry.js} +1 -1
- package/dist/cobalt/{p-4e2379e4.entry.js → p-c1e7fb32.entry.js} +1 -1
- package/dist/cobalt/{p-21832273.entry.js → p-c5684c79.entry.js} +1 -1
- package/dist/cobalt/p-c6b9b9d6.entry.js +1 -0
- package/dist/cobalt/{p-ed2ca588.entry.js → p-ce35c898.entry.js} +1 -1
- package/dist/cobalt/{p-e5296961.entry.js → p-d15d3a97.entry.js} +1 -1
- package/dist/cobalt/p-d40a465f.entry.js +1 -0
- package/dist/cobalt/{p-d85a751d.entry.js → p-d4debd6f.entry.js} +1 -1
- package/dist/cobalt/{p-7ec85887.entry.js → p-d629fb4e.entry.js} +1 -1
- package/dist/cobalt/p-da18b5f4.entry.js +1 -0
- package/dist/cobalt/{p-360714ae.entry.js → p-dca4cd5f.entry.js} +1 -1
- package/dist/cobalt/{p-a530bec2.entry.js → p-dea43204.entry.js} +1 -1
- package/dist/cobalt/{p-f4cebc1f.entry.js → p-dfcf667d.entry.js} +1 -1
- package/dist/cobalt/{p-9fe9e2fe.entry.js → p-e5495539.entry.js} +1 -1
- package/dist/cobalt/{p-39bce45f.entry.js → p-e8878cf9.entry.js} +1 -1
- package/dist/cobalt/{p-39007b6c.entry.js → p-ef5e1167.entry.js} +1 -1
- package/dist/cobalt/{p-b1ef5107.entry.js → p-fabe5fb2.entry.js} +1 -1
- package/dist/cobalt/{p-76dff399.entry.js → p-fb3a095b.entry.js} +1 -1
- package/dist/cobalt/p-reaWaY4g.js +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.js +2 -2
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.js +3 -3
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +1 -1
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +1 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +10 -11
- 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.js +2 -2
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.js +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.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.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.js +1 -1
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +3 -1
- package/dist/collection/components/co-combobox/co-combobox.js +1 -1
- package/dist/collection/components/co-command-search/co-command-search.js +1 -1
- package/dist/collection/components/co-data-table/co-data-table.css +33 -0
- package/dist/collection/components/co-data-table/co-data-table.js +90 -8
- 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.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.js +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 +5 -2
- package/dist/collection/components/co-drawer/co-drawer.js +43 -1
- 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-emoji-picker/co-emoji-picker.css +290 -0
- package/dist/collection/components/co-emoji-picker/co-emoji-picker.js +682 -0
- package/dist/collection/components/co-emoji-picker/emojiData.js +1953 -0
- package/dist/collection/components/co-emoji-picker/emojiNames.es.js +1922 -0
- package/dist/collection/components/co-emoji-picker/emojiNames.pt.js +1922 -0
- package/dist/collection/components/co-emoji-picker/emojiPickerLogic.js +375 -0
- package/dist/collection/components/co-empty-state/co-empty-state.js +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.js +1 -1
- package/dist/collection/components/co-fab/co-fab.css +8 -5
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- 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 +25 -0
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +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-modal/co-modal.css +3 -1
- package/dist/collection/components/co-modal/co-modal.js +13 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +11 -9
- package/dist/collection/components/co-option-list/co-option-list.js +8 -8
- 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.js +1 -1
- package/dist/collection/components/co-popover/co-popover.js +27 -5
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.js +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +15 -0
- package/dist/collection/components/co-ref-field/co-ref-field.js +72 -4
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-segmented-bar/co-segmented-bar.js +1 -1
- package/dist/collection/components/co-select/co-select.js +68 -5
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +3 -3
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- 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.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.js +4 -4
- 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.js +2 -2
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +3 -3
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/columnResize.js +37 -0
- package/dist/collection/utils/emojiI18n.js +92 -0
- package/dist/collection/utils/popover-stack.js +28 -0
- package/dist/collection/utils/slotContent.js +30 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.js +1 -1
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.js +1 -1
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.js +1 -1
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-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-emoji-picker.d.ts +11 -0
- package/dist/components/co-emoji-picker.js +1 -0
- 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/p-AvSaw4Ua.js +1 -0
- package/dist/components/p-B3TkpLNh.js +1 -0
- package/dist/components/p-B6oiFdUY.js +1 -0
- package/dist/components/{p-CmxZEGYq.js → p-B7hvddnu.js} +1 -1
- package/dist/components/{p-Ce0ZJcks.js → p-BGD3oQ73.js} +1 -1
- package/dist/components/{p-CJNo2JDc.js → p-BT5tSgZa.js} +1 -1
- package/dist/components/{p-CYv2ig6I.js → p-BsQQ7Mki.js} +1 -1
- package/dist/components/p-CBX_oabB.js +1 -0
- package/dist/components/{p-Cv5yuGLz.js → p-CXLX8DpD.js} +1 -1
- package/dist/components/{p-DFT1qsVu.js → p-CklsvHeL.js} +1 -1
- package/dist/components/{p-CKKBJaNB.js → p-CyMaOb1j.js} +1 -1
- package/dist/components/{p-xvWmYN3W.js → p-D5QJpmqf.js} +1 -1
- package/dist/components/{p-BlvsTlsS.js → p-D6OUW6oW.js} +1 -1
- package/dist/components/p-DP0bbhfN.js +1 -0
- package/dist/components/{p-BUE9mBqk.js → p-DTvb412h.js} +1 -1
- package/dist/components/{p-Bsll5Ofy.js → p-DkmKOF60.js} +1 -1
- package/dist/components/{p-re2gJwnQ.js → p-DolCkNsL.js} +1 -1
- package/dist/components/{p-CkQqqKRp.js → p-KWTokD0C.js} +1 -1
- package/dist/components/{p-BCnjq3jN.js → p-Q6caHt79.js} +1 -1
- package/dist/components/{p-2zy1K6zg.js → p-WWlZiln1.js} +1 -1
- package/dist/components/{p-DAaKsGqj.js → p-_131DL6m.js} +1 -1
- package/dist/components/{p-ushHimOL.js → p-gI62K3Be.js} +1 -1
- package/dist/components/{p-_YYd42XM.js → p-mom5kiBa.js} +1 -1
- package/dist/components/p-nwy6X1QT.js +1 -0
- package/dist/components/p-reaWaY4g.js +1 -0
- 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 +3 -3
- package/dist/esm/co-autocomplete.entry.js +1 -1
- package/dist/esm/co-avatar_2.entry.js +2 -2
- package/dist/esm/co-badge.entry.js +1 -1
- package/dist/esm/co-bottom-sheet.entry.js +10 -11
- package/dist/esm/co-breadcrumb-item.entry.js +2 -2
- package/dist/esm/co-breadcrumb.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +2 -2
- package/dist/esm/co-button.entry.js +2 -2
- package/dist/esm/co-calendar-month_2.entry.js +3 -3
- package/dist/esm/co-calendar_3.entry.js +42 -7
- 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 +2 -2
- package/dist/esm/co-checkbox.entry.js +3 -3
- package/dist/esm/co-chip_2.entry.js +11 -11
- package/dist/esm/co-color-picker.entry.js +2 -2
- package/dist/esm/co-column-picker.entry.js +2 -2
- package/dist/esm/co-combobox.entry.js +1 -1
- package/dist/esm/co-data-table-pagination.entry.js +4 -4
- package/dist/esm/co-data-table.entry.js +127 -8
- package/dist/esm/co-date-range.entry.js +1 -1
- package/dist/esm/co-date-time-picker.entry.js +2 -2
- package/dist/esm/co-drive-card.entry.js +1 -1
- package/dist/esm/co-drop-zone.entry.js +1 -1
- package/dist/esm/co-emoji-picker.entry.js +2806 -0
- package/dist/esm/co-empty-state.entry.js +2 -2
- package/dist/esm/co-event-calendar.entry.js +2 -2
- package/dist/esm/co-event-popover.entry.js +1 -1
- package/dist/esm/co-fab.entry.js +3 -3
- package/dist/esm/co-file-field.entry.js +5 -5
- package/dist/esm/co-file-type-tile.entry.js +2 -2
- package/dist/esm/co-helper-text.entry.js +2 -2
- package/dist/esm/co-icon-button.entry.js +2 -2
- package/dist/esm/co-icon.entry.js +2 -2
- package/dist/esm/co-json-field.entry.js +3 -3
- package/dist/esm/co-lightbox.entry.js +4 -4
- package/dist/esm/co-list-footer.entry.js +1 -1
- package/dist/esm/co-list-item.entry.js +4 -4
- package/dist/esm/co-media-thumb.entry.js +2 -2
- package/dist/esm/co-menu-divider.entry.js +1 -1
- package/dist/esm/co-menu.entry.js +1 -1
- package/dist/esm/co-modal.entry.js +9 -3
- package/dist/esm/co-navbar.entry.js +2 -2
- package/dist/esm/co-number-field.entry.js +2 -2
- package/dist/esm/co-overlay.entry.js +1 -1
- package/dist/esm/co-page-header.entry.js +1 -1
- package/dist/esm/co-phone-field.entry.js +1 -1
- package/dist/esm/co-popover.entry.js +49 -3
- package/dist/esm/co-progress-bar.entry.js +2 -2
- package/dist/esm/co-progress-circle.entry.js +2 -2
- package/dist/esm/co-provider-logo_2.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +3 -3
- package/dist/esm/co-rating.entry.js +3 -3
- package/dist/esm/co-ref-field.entry.js +13 -4
- package/dist/esm/co-rich-text-editor.entry.js +3 -3
- package/dist/esm/co-row.entry.js +2 -2
- package/dist/esm/co-select.entry.js +13 -4
- package/dist/esm/co-separator.entry.js +1 -1
- package/dist/esm/co-sidebar-nav.entry.js +2 -2
- package/dist/esm/co-sidebar.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +2 -2
- package/dist/esm/co-switch.entry.js +3 -3
- package/dist/esm/co-tab-group.entry.js +2 -2
- package/dist/esm/co-tab.entry.js +2 -2
- package/dist/esm/co-tags-field.entry.js +5 -5
- package/dist/esm/co-textarea.entry.js +4 -4
- package/dist/esm/co-toast.entry.js +2 -2
- package/dist/esm/co-toggle-button-group.entry.js +2 -2
- package/dist/esm/co-toggle-button.entry.js +2 -2
- package/dist/esm/co-transfer-list.entry.js +2 -2
- package/dist/esm/co-video.entry.js +2 -2
- package/dist/esm/cobalt.js +1 -1
- package/dist/esm/emojiNames.es-reaWaY4g.js +1923 -0
- package/dist/esm/emojiNames.pt-B6oiFdUY.js +1923 -0
- package/dist/esm/index-CrtiywTB.js +16 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/slotContent-CBX_oabB.js +32 -0
- package/dist/types/components/co-bottom-sheet/co-bottom-sheet.d.ts +0 -1
- package/dist/types/components/co-data-table/co-data-table.d.ts +5 -0
- package/dist/types/components/co-drawer/co-drawer.d.ts +23 -0
- package/dist/types/components/co-emoji-picker/co-emoji-picker.d.ts +145 -0
- package/dist/types/components/co-emoji-picker/emojiData.d.ts +24 -0
- package/dist/types/components/co-emoji-picker/emojiNames.es.d.ts +12 -0
- package/dist/types/components/co-emoji-picker/emojiNames.pt.d.ts +12 -0
- package/dist/types/components/co-emoji-picker/emojiPickerLogic.d.ts +149 -0
- package/dist/types/components/co-modal/co-modal.d.ts +2 -0
- package/dist/types/components/co-popover/co-popover.d.ts +8 -1
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +17 -0
- package/dist/types/components/co-select/co-select.d.ts +7 -0
- package/dist/types/components.d.ts +255 -2
- package/dist/types/utils/columnResize.d.ts +42 -0
- package/dist/types/utils/emojiI18n.d.ts +22 -0
- package/dist/types/utils/popover-stack.d.ts +5 -0
- package/dist/types/utils/slotContent.d.ts +19 -0
- package/package.json +4 -4
- package/dist/cobalt/p-212ed2ba.entry.js +0 -1
- package/dist/cobalt/p-2aeb1471.entry.js +0 -1
- package/dist/cobalt/p-30ec230e.entry.js +0 -1
- package/dist/cobalt/p-5ddebd10.entry.js +0 -1
- package/dist/cobalt/p-5f0f5d4b.entry.js +0 -1
- package/dist/cobalt/p-7521ec0c.entry.js +0 -1
- package/dist/cobalt/p-77593319.entry.js +0 -1
- package/dist/cobalt/p-7a2dab23.entry.js +0 -1
- package/dist/cobalt/p-e054cb52.entry.js +0 -1
- package/dist/cobalt/p-e612b43c.entry.js +0 -1
- package/dist/cobalt/p-e7e34852.entry.js +0 -1
- package/dist/cobalt/p-f1731fe9.entry.js +0 -1
- package/dist/components/p-Bh2__nEw.js +0 -1
- package/dist/components/p-BiefJDu3.js +0 -1
- package/dist/components/p-CL4dicvk.js +0 -1
- package/dist/components/p-DTJsO_Eg.js +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import { createVelocityTracker, decideRelease, rubberBand, } from "../../utils/sheetGesture";
|
|
3
|
+
import { slotHasContent } from "../../utils/slotContent";
|
|
3
4
|
/**
|
|
4
5
|
* Mobile bottom sheet with native drag physics: the sheet follows the finger
|
|
5
6
|
* 1:1 downward, a fast flick (or a slow release past ~45% of its height)
|
|
@@ -49,10 +50,10 @@ export class CoBottomSheet {
|
|
|
49
50
|
this.coClose.emit();
|
|
50
51
|
};
|
|
51
52
|
this.handleFooterSlotChange = (e) => {
|
|
52
|
-
this.hasFooter =
|
|
53
|
+
this.hasFooter = slotHasContent(e);
|
|
53
54
|
};
|
|
54
55
|
this.handleHeaderSlotChange = (e) => {
|
|
55
|
-
this.hasHeaderSlot =
|
|
56
|
+
this.hasHeaderSlot = slotHasContent(e);
|
|
56
57
|
};
|
|
57
58
|
this.handleTransitionEnd = (e) => {
|
|
58
59
|
if (e.propertyName !== 'transform' || e.target !== this.sheetEl)
|
|
@@ -206,12 +207,6 @@ export class CoBottomSheet {
|
|
|
206
207
|
if (this.backdropEl)
|
|
207
208
|
this.backdropEl.style.opacity = '';
|
|
208
209
|
}
|
|
209
|
-
slotHasContent(e) {
|
|
210
|
-
return e.target
|
|
211
|
-
.assignedNodes({ flatten: true })
|
|
212
|
-
.some((node) => node.nodeType === Node.ELEMENT_NODE ||
|
|
213
|
-
(node.nodeType === Node.TEXT_NODE && (node.textContent || '').trim() !== ''));
|
|
214
|
-
}
|
|
215
210
|
arm(e, fromBody) {
|
|
216
211
|
if (!this.open || this.dismissPending || !e.isPrimary)
|
|
217
212
|
return;
|
|
@@ -255,13 +250,17 @@ export class CoBottomSheet {
|
|
|
255
250
|
(_a = this.bodyEl) === null || _a === void 0 ? void 0 : _a.removeEventListener('touchmove', this.touchBlocker);
|
|
256
251
|
}
|
|
257
252
|
render() {
|
|
258
|
-
return (h("div", { key: '
|
|
253
|
+
return (h("div", { key: '9c7c9c9dc4f1d627be8801afdaf3cc5999ead3be', class: { 'co-bottom-sheet-root': true, 'co-bottom-sheet-root--open': this.open } }, h("div", { key: '7de7991fdeb6338f3af4a31464f275cd4c9cd909', class: "co-bottom-sheet__backdrop", part: "backdrop", onClick: this.handleBackdropClick, ref: (el) => (this.backdropEl = el) }), h("section", { key: '81ef802c44978ca6db8d2322b0e98f0613d80ad9', class: { 'co-bottom-sheet': true, 'co-bottom-sheet--open': this.open }, part: "sheet", role: "dialog", "aria-modal": "true", "aria-labelledby": this.hasHeaderSlot
|
|
254
|
+
? 'co-bottom-sheet-header'
|
|
255
|
+
: this.heading
|
|
256
|
+
? 'co-bottom-sheet-heading'
|
|
257
|
+
: undefined, style: { '--co-bottom-sheet-max-height': this.maxHeight }, onTransitionEnd: this.handleTransitionEnd, ref: (el) => (this.sheetEl = el) }, h("div", { key: 'a66516cb09be2cf219ef1045802c476d9d9b938e', class: "co-bottom-sheet__grip", onPointerDown: this.handleGripPointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel }, this.showHandle && (h("div", { key: '214e9765f91449e6f0773c2b5ad6991cf0bb6be8', class: "co-bottom-sheet__handle", part: "handle", "aria-hidden": "true" })), h("header", { key: '3d63d502be3511b543463709e882db231df40c9b', class: {
|
|
259
258
|
'co-bottom-sheet__header': true,
|
|
260
259
|
'co-bottom-sheet__header--show': this.hasHeaderSlot || !!this.heading,
|
|
261
|
-
}, part: "header" }, h("slot", { key: '
|
|
260
|
+
}, part: "header", id: "co-bottom-sheet-header" }, h("slot", { key: '652d26a569389c0a4829fae4330141603fd0f072', name: "header", onSlotchange: this.handleHeaderSlotChange }, this.heading && (h("h2", { key: '6076038750176a915aad4acff2e0e6cc0f699d12', class: "co-bottom-sheet__heading", id: "co-bottom-sheet-heading" }, this.heading))))), h("div", { key: 'fb08ac38369623c07450a96409961086831be022', class: "co-bottom-sheet__body", part: "body", onPointerDown: this.handleBodyPointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, ref: (el) => (this.bodyEl = el) }, h("slot", { key: '963205af45ba01d295afa648f8b37875e6f3adea' })), h("footer", { key: 'b72a488ea199acba8bc9d647a4b5d0eb3170a2c7', class: {
|
|
262
261
|
'co-bottom-sheet__footer': true,
|
|
263
262
|
'co-bottom-sheet__footer--show': this.hasFooter,
|
|
264
|
-
}, part: "footer" }, h("slot", { key: '
|
|
263
|
+
}, part: "footer" }, h("slot", { key: 'aeecf78508978fd5e5c068ac2b37bfaecb709e1e', name: "footer", onSlotchange: this.handleFooterSlotChange })))));
|
|
265
264
|
}
|
|
266
265
|
static get is() { return "co-bottom-sheet"; }
|
|
267
266
|
static get encapsulation() { return "shadow"; }
|
|
@@ -42,7 +42,7 @@ export class CoBreadcrumb {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
const data = this.parseItems();
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '8ab383589f78948c7f11d38d4e25fa5509a56dbc', part: "breadcrumb", role: "navigation", "aria-label": "Breadcrumb" }, data
|
|
46
46
|
? data.map((it, i) => (h("co-breadcrumb-item", { key: i, label: it.label, value: it.value, icon: it.icon, separator: this.separator, current: i === data.length - 1 })))
|
|
47
47
|
: h("slot", { onSlotchange: this.handleSlotChange })));
|
|
48
48
|
}
|
|
@@ -29,10 +29,10 @@ export class CoBreadcrumbItem {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '16deecfc675429362263d3afb7257025e9170b26', part: "breadcrumb-item", class: {
|
|
33
33
|
'co-breadcrumb-item': true,
|
|
34
34
|
'co-breadcrumb-item--current': this.current,
|
|
35
|
-
} }, h("span", { key: '
|
|
35
|
+
} }, h("span", { key: '795723b3d89d48356ffe8f9a35df63d9d5dea836', class: "co-breadcrumb-item__sep", "aria-hidden": "true" }, h("co-icon", { key: 'a1bc3a756d0b2ead8a9f150f60688ae19f46cae0', name: this.separator, size: 13 })), h("span", { key: '6dada7bc4a556af7f3b9dc63d2b2d001c13e173e', class: "co-breadcrumb-item__content", part: "content", role: "link", tabindex: "0", "aria-current": this.current ? 'page' : undefined, onClick: this.handleClick, onKeyDown: this.handleKeydown }, this.icon && (h("span", { key: '63424dc201114b2a589559ee10324ee4cc9cc305', class: "co-breadcrumb-item__icon" }, h("co-icon", { key: 'be25f19369d9f6d0459acd255793782c1580256e', name: this.icon, size: 16 }))), h("span", { key: 'e8f0919b4ab1ba60ae632ccd21e3f353b04deac7', class: "co-breadcrumb-item__label" }, this.label, h("slot", { key: '0ac8d7d59e7828f939f637ef73ab7787a5c820d8' })))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "co-breadcrumb-item"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -53,7 +53,7 @@ export class CoButton {
|
|
|
53
53
|
customStyle.background = this.color;
|
|
54
54
|
if (this.textColor)
|
|
55
55
|
customStyle.color = this.textColor;
|
|
56
|
-
return (h("button", { key: '
|
|
56
|
+
return (h("button", { key: 'e765a1fcb3b4efcc7c43e155015b3c178a536d3c', class: {
|
|
57
57
|
'co-button': true,
|
|
58
58
|
[`co-button--${this.variant}`]: true,
|
|
59
59
|
[`co-button--${this.shape}`]: true,
|
|
@@ -63,7 +63,7 @@ export class CoButton {
|
|
|
63
63
|
'co-button--disabled': this.disabled,
|
|
64
64
|
}, style: Object.keys(customStyle).length ? customStyle : undefined, type: this.type, disabled: this.disabled, "aria-label": this.ariaLabelText || undefined, onClick: this.handleClick, part: "button" }, this.iconLeft
|
|
65
65
|
? h("co-icon", { name: this.iconLeft, weight: this.iconWeight, size: iconSize })
|
|
66
|
-
: null, h("slot", { key: '
|
|
66
|
+
: null, h("slot", { key: '8dd3e816276a67ba6072eeed1ad34a982b60389e' }, this.label), this.iconRight
|
|
67
67
|
? h("co-icon", { name: this.iconRight, weight: this.iconWeight, size: iconSize })
|
|
68
68
|
: null));
|
|
69
69
|
}
|
|
@@ -10,12 +10,12 @@ export class CoButtonGroup {
|
|
|
10
10
|
this.disabled = false;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
13
|
+
return (h("div", { key: 'fe4b05941d1bf86586c7e4f2c93fe9644ea027d3', class: {
|
|
14
14
|
'co-button-group': true,
|
|
15
15
|
[`co-button-group--${this.direction}`]: true,
|
|
16
16
|
[`co-button-group--${this.variant}`]: true,
|
|
17
17
|
'co-button-group--disabled': this.disabled,
|
|
18
|
-
}, role: "group" }, h("slot", { key: '
|
|
18
|
+
}, role: "group" }, h("slot", { key: 'c583ee5dd23aceea08c3178b93b6f1227101e96e' })));
|
|
19
19
|
}
|
|
20
20
|
static get is() { return "co-button-group"; }
|
|
21
21
|
static get encapsulation() { return "shadow"; }
|
|
@@ -363,7 +363,7 @@ export class CoCalendar {
|
|
|
363
363
|
render() {
|
|
364
364
|
var _a, _b;
|
|
365
365
|
const t = getDateStrings(this.locale);
|
|
366
|
-
return (h("div", { key: '
|
|
366
|
+
return (h("div", { key: '795529e38ec7b72934d786b9dcaa5046e73fbde8', class: "co-calendar", part: "root" }, h("div", { key: 'f409d1670f4f649d8e91f21915e0008d9ed330ac', class: "co-calendar__header", part: "header" }, h("button", { key: '23a4f12ec30cd86e49661daf755a6d2e23b209ad', type: "button", class: "co-calendar__nav", onClick: this.handlePrev, "aria-label": (_a = this.prevMonthLabel) !== null && _a !== void 0 ? _a : t.prevMonth }, h("co-icon", { key: 'ce6b736011e3ed13781cac180fe4542ec38c75c3', name: "caret-left", size: 16 })), h("button", { key: 'b1fcbb3d09e33b0b462bc278b46e14a348f9f9a9', type: "button", class: "co-calendar__title", "aria-live": "polite", onClick: this.toggleView }, this.headerTitle(), h("co-icon", { key: 'dbe1800ed74e234dc8f334183e504d19d8ab9d74', name: "caret-down", size: 12, class: "co-calendar__title-caret" })), h("button", { key: 'bdbda5999d20cb799aeabe48ebad6e8a4d7d89ff', type: "button", class: "co-calendar__nav", onClick: this.handleNext, "aria-label": (_b = this.nextMonthLabel) !== null && _b !== void 0 ? _b : t.nextMonth }, h("co-icon", { key: 'ec2e268c38d04d1f298cfb12d29647b530b03a94', name: "caret-right", size: 16 }))), this.view === 'days' && this.renderDays(t), this.view === 'months' && this.renderMonths(), this.view === 'years' && this.renderYears()));
|
|
367
367
|
}
|
|
368
368
|
static get is() { return "co-calendar"; }
|
|
369
369
|
static get encapsulation() { return "shadow"; }
|
|
@@ -269,7 +269,7 @@ export class CoCalendarMonth {
|
|
|
269
269
|
const short = getWeekdayLabels(this.locale, this.firstDayOfWeek, 'short');
|
|
270
270
|
const long = getWeekdayLabels(this.locale, this.firstDayOfWeek, 'long');
|
|
271
271
|
const today = todayYMD();
|
|
272
|
-
return (h("div", { key: '
|
|
272
|
+
return (h("div", { key: 'f8bcb53b7ef7c47a1ff59caee0305dfc1a3f1fc2', class: "cal-month", part: "grid", role: "grid", onKeyDown: this.handleKeyDown, ref: (el) => (this.rootEl = el) }, h("div", { key: '11acf9973a13ad661590a04dd934c86ceaa10f5d', class: "cal-month__dow", role: "row" }, short.map((lbl, i) => (h("span", { class: "cal-month__dow-cell", role: "columnheader", "aria-label": long[i] }, lbl)))), matrix.map((week, wi) => {
|
|
273
273
|
var _a;
|
|
274
274
|
return (h("div", { class: "cal-month__week", role: "row" }, h("div", { class: "cal-month__days" }, week.map((date) => {
|
|
275
275
|
const ymd = parseISO(date);
|
|
@@ -704,11 +704,11 @@ export class CoCalendarTimegrid {
|
|
|
704
704
|
'--co-cal-hour-h': `calc(${60 / this.slotM} * var(--co-cal-slot-h))`,
|
|
705
705
|
'--co-cal-hour-offset': `calc(${((60 - (this.minM % 60)) % 60) / this.slotM} * var(--co-cal-slot-h))`,
|
|
706
706
|
};
|
|
707
|
-
return (h("div", { key: '
|
|
707
|
+
return (h("div", { key: '6714fb717616dff758156f0fcf6d50370bcc52e0', class: "tg", tabIndex: 0, onKeyDown: this.handleKeyDown, ref: (el) => (this.rootEl = el) }, h("div", { key: '86aa3ebcc5c8c3e66fc200b25819b8806a8883fa', class: "tg__head" }, h("div", { key: '63353e0fb0765f90ecaf6942bad3323497638a17', class: "tg__head-spacer" }), h("div", { key: '842770c40be192de75e8e3d8635d2f78976ee492', class: "tg__head-days", style: { gridTemplateColumns: colsTemplate } }, dates.map((d) => {
|
|
708
708
|
const ymd = parseISO(d);
|
|
709
709
|
const dow = utcDayOfWeek(d);
|
|
710
710
|
return (h("div", { class: { 'tg__head-day': true, 'tg__head-day--today': compareYMD(d, today) === 0 } }, h("span", { class: "tg__head-dow" }, short[dow]), h("span", { class: "tg__head-num" }, ymd.day)));
|
|
711
|
-
}))), this.allDaySlot && (h("div", { key: '
|
|
711
|
+
}))), this.allDaySlot && (h("div", { key: 'f78e9159e84ecc4a0259c296e1120830b2a2513b', class: "tg__allday" }, h("div", { key: '255ad5c8e6a8c93377c2898acb8ecc06e0a0eb6d', class: "tg__allday-axis" }, gmtLabel(this.timeZone, dates[0])), h("div", { key: '5023271e34910ac5dead15f4b4a4bd4c588b6594', class: "tg__allday-lane", style: { height: `${Math.max(1, allDay.laneCount) * ALLDAY_LANE_H + 4}px` } }, allDay.segments.map((seg) => this.renderAllDayBar(seg, dates.length, byId))))), h("div", { key: '5d37824151562d8a53906ecb059d96afdee93d3e', class: "tg__scroll", ref: (el) => (this.scrollEl = el) }, h("div", { key: 'ebeac3733271bd3ebcaca2343a9f5f01285a7f05', class: "tg__body" }, h("div", { key: '9eed6c09dfe67a9613c0641dbc305ba594312166', class: "tg__axis", style: { height: bodyHeight } }, this.hourList().map((m) => (h("span", { class: "tg__axis-hour", style: { top: `${minutesToFraction(m, this.minM, this.maxM) * 100}%` } }, hourLabel(m, this.locale))))), h("div", { key: 'bc8f8c0e5bf00c8fc92bb6c823fa9ba6c321ad2c', class: "tg__cols", style: Object.assign({ gridTemplateColumns: colsTemplate, height: bodyHeight }, hourVars) }, dates.map((d, i) => {
|
|
712
712
|
var _a;
|
|
713
713
|
const isToday = compareYMD(d, today) === 0;
|
|
714
714
|
return (h("div", { class: { tg__col: true, 'tg__col--today': isToday }, "data-col-date": d, onPointerDown: (e) => this.startSelection(e, d, e.currentTarget), onPointerMove: (e) => this.extendSelection(e, e.currentTarget) }, this.loading
|
|
@@ -29,13 +29,13 @@ export class CoCard {
|
|
|
29
29
|
return nodes.length > 0;
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h("div", { key: '
|
|
32
|
+
return (h("div", { key: '52e3eb679a025b1b53854b38063b6fa951cf9f70', class: {
|
|
33
33
|
'co-card': true,
|
|
34
34
|
[`co-card--${this.variant}`]: true,
|
|
35
35
|
[`co-card--pad-${this.padding}`]: true,
|
|
36
36
|
'co-card--clickable': this.clickable,
|
|
37
37
|
'co-card--stretch': this.stretch,
|
|
38
|
-
}, part: "card", role: this.clickable ? 'button' : undefined, tabIndex: this.clickable ? 0 : undefined }, h("div", { key: '
|
|
38
|
+
}, part: "card", role: this.clickable ? 'button' : undefined, tabIndex: this.clickable ? 0 : undefined }, h("div", { key: '753b2277a6629673e8583774e126b2472709221d', class: { 'co-card__header': true, 'co-card__header--empty': !this.hasHeader }, part: "header" }, h("slot", { key: 'f73192e7fa291c8a2d831a0f9db7ebe8a7ef8907', name: "header", onSlotchange: this.handleHeaderSlotChange })), h("div", { key: '2916b424d3cb1feacf438678132d10217df51ad9', class: "co-card__body", part: "body" }, h("slot", { key: 'f957907056567d135c3de5d412251911c7cf8db0' })), h("div", { key: 'f1f183b7d3eacbd11787e0cc3d0ef438f8272480', class: { 'co-card__footer': true, 'co-card__footer--empty': !this.hasFooter }, part: "footer" }, h("slot", { key: '2171a95906d5b862c7b39a756cafee17d86f7dbc', name: "footer", onSlotchange: this.handleFooterSlotChange }))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "co-card"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -303,11 +303,11 @@ export class CoCarousel {
|
|
|
303
303
|
};
|
|
304
304
|
if (this.dragging)
|
|
305
305
|
trackStyle.transition = 'none';
|
|
306
|
-
return (h(Host, { key: '
|
|
306
|
+
return (h(Host, { key: '2e2d00e6956b5de4af5950ad6725a77023420f11' }, h("div", { key: '40878a4740b4ad9bf70cf9816d7edc89b8bafeda', class: { 'co-carousel': true, [aspectClass]: true }, part: "container", role: "region", "aria-roledescription": "carousel", "aria-label": s.carouselLabel, tabindex: 0, onKeyDown: this.handleKeyDown, onMouseEnter: this.handleMouseEnter, onMouseLeave: this.handleMouseLeave, onFocusin: this.handleFocusIn, onFocusout: this.handleFocusOut }, h("div", { key: '5c0ec11025ae5c6eb3a88b10595c243a9b910671', class: "co-carousel__viewport", part: "viewport", ref: el => (this.viewportEl = el), onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerCancel, onClickCapture: this.handleClickCapture }, h("div", { key: '746d85f914bc24ca86ad88005fe95a214de7cd31', class: "co-carousel__track", part: "track", style: trackStyle, "aria-live": this.rotating ? 'off' : 'polite' }, h("slot", { key: 'b33c34a9cb6e03af50176094a89b1c79d363f13d', onSlotchange: this.handleSlotChange }))), this.arrows && multi && (h("button", { key: '4f30b56e84da8f7e15b6cea71a0238f5cd19f39e', class: { 'co-carousel__arrow': true, 'co-carousel__arrow--prev': true, 'co-carousel__arrow--disabled': !canPrev }, part: "arrow-prev", type: "button", "aria-label": s.prevSlide, disabled: !canPrev, onClick: () => this.advance(-1) }, h("co-icon", { key: '09eaa1a665762f7e2b372eb264860e182e411d17', name: "caret-left", size: 18, weight: "bold" }))), this.arrows && multi && (h("button", { key: '7026bfe945ee42ef7b0f9194ecf6a04f0ef1ab1c', class: { 'co-carousel__arrow': true, 'co-carousel__arrow--next': true, 'co-carousel__arrow--disabled': !canNext }, part: "arrow-next", type: "button", "aria-label": s.nextSlide, disabled: !canNext, onClick: () => this.advance(1) }, h("co-icon", { key: '564f5bc3bef0b0ce23e8be91bed8e37540209a7b', name: "caret-right", size: 18, weight: "bold" }))), this.dots && multi && (
|
|
307
307
|
// APG grouped-carousel picker pattern: plain always-tabbable
|
|
308
308
|
// buttons in a labelled group (tablist/tab would demand
|
|
309
309
|
// aria-controls + roving tabindex we don't implement).
|
|
310
|
-
h("div", { key: '
|
|
310
|
+
h("div", { key: 'b19aed5296fa2f3547e85e6c439589703809bae3', class: "co-carousel__dots", part: "dots", role: "group", "aria-label": s.pickSlide }, Array.from({ length: this.itemCount }, (_, i) => (h("button", { class: { 'co-carousel__dot': true, 'co-carousel__dot--active': i === this.value }, part: "dot", type: "button", "aria-current": i === this.value ? 'true' : undefined, "aria-label": s.goToSlide.replace('{i}', String(i + 1)), onClick: () => this.setActive(i) }))))))));
|
|
311
311
|
}
|
|
312
312
|
static get is() { return "co-carousel"; }
|
|
313
313
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ import { Host, h } from "@stencil/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export class CoCarouselItem {
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'ae04768a65db80be93705a0ff9d0852ae2e6d0cc', role: "group", "aria-roledescription": "slide" }, h("slot", { key: '7a9f94454ca5e2574b4161ed06d863728c88a814' })));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "co-carousel-item"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -37,17 +37,17 @@ export class CoCheckbox {
|
|
|
37
37
|
// Only override the fill when a custom color is provided AND the box is "on".
|
|
38
38
|
// Leaving this undefined keeps the default appearance byte-identical to before.
|
|
39
39
|
const boxStyle = this.onColor && isOn ? { background: this.onColor } : undefined;
|
|
40
|
-
return (h("div", { key: '
|
|
40
|
+
return (h("div", { key: '31690de633689da0b273e3c88cc200cabb4cee75', class: {
|
|
41
41
|
'co-checkbox-row': true,
|
|
42
42
|
'co-checkbox-row--disabled': this.disabled,
|
|
43
|
-
}, onClick: this.handleClick }, h("span", { key: '
|
|
43
|
+
}, onClick: this.handleClick }, h("span", { key: '2b0c4ebbe4c7a7a8046cf726e682a3d42ae3ebbe', role: "checkbox", "aria-checked": this.indeterminate ? 'mixed' : String(this.checked), "aria-label": this.label || '', class: {
|
|
44
44
|
'co-checkbox': true,
|
|
45
45
|
[`co-checkbox--${this.size}`]: true,
|
|
46
46
|
'co-checkbox--overlay': isOverlay,
|
|
47
47
|
'co-checkbox--checked': this.checked && !this.indeterminate,
|
|
48
48
|
'co-checkbox--indeterminate': this.indeterminate,
|
|
49
49
|
'co-checkbox--disabled': this.disabled,
|
|
50
|
-
}, style: boxStyle, part: "box" }, h("svg", { key: '
|
|
50
|
+
}, style: boxStyle, part: "box" }, h("svg", { key: 'a127c176e0233460f14c4261d8d2157e657689a9', class: "co-checkbox__glyph", viewBox: "0 0 16 16", fill: "none", "aria-hidden": "true" }, h("path", { key: 'ad7dc0018cdae31156884cd04326bbcdba132b4f', class: "co-checkbox__check", d: "M3.5 8.5l3 3 6-6.5", pathLength: "1", "stroke-linecap": "round", "stroke-linejoin": "round" }), h("path", { key: 'dd665144b25aa51339cf9f6ce0e0edf65cfbe5a9', class: "co-checkbox__dash", d: "M3 8h10", pathLength: "1", "stroke-linecap": "round" }))), this.label && (h("span", { key: '08d6c695e2cbb8188564dc8bb5aab9b569c24838', class: "co-checkbox__label", part: "label" }, this.label))));
|
|
51
51
|
}
|
|
52
52
|
static get is() { return "co-checkbox"; }
|
|
53
53
|
static get encapsulation() { return "shadow"; }
|
|
@@ -231,7 +231,7 @@ export class CoCheckboxGroup {
|
|
|
231
231
|
"references": {
|
|
232
232
|
"CheckboxOption": {
|
|
233
233
|
"location": "local",
|
|
234
|
-
"path": "/Users/agox/
|
|
234
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-checkbox-group/co-checkbox-group.tsx",
|
|
235
235
|
"id": "src/components/co-checkbox-group/co-checkbox-group.tsx::CheckboxOption"
|
|
236
236
|
}
|
|
237
237
|
}
|
|
@@ -70,7 +70,7 @@ export class CoChip {
|
|
|
70
70
|
else
|
|
71
71
|
effectiveIconMode = 'none';
|
|
72
72
|
const Tag = this.clickable ? 'button' : 'div';
|
|
73
|
-
return (h(Tag, { key: '
|
|
73
|
+
return (h(Tag, { key: '385173584372bbad8872565f1fc95e8ae8e14563', class: {
|
|
74
74
|
'co-chip': true,
|
|
75
75
|
[`co-chip--${this.shape}`]: true,
|
|
76
76
|
[`co-chip--${this.size}`]: true,
|
|
@@ -80,7 +80,7 @@ export class CoChip {
|
|
|
80
80
|
'co-chip--clickable': this.clickable,
|
|
81
81
|
'co-chip--disabled': this.disabled,
|
|
82
82
|
'co-chip--selected': this.selected,
|
|
83
|
-
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (h("span", { key: '
|
|
83
|
+
}, part: "chip", type: this.clickable ? 'button' : undefined, disabled: this.clickable ? this.disabled : undefined, onClick: this.handleClick }, this.dot && (h("span", { key: 'a680c376ac13140b2c073e01fc901f2cfa54bde8', class: "co-chip__dot", part: "dot", style: this.dotColor ? { color: this.dotColor } : undefined }, h("co-icon", { key: '73e58b8b90234eb883b6a1e49b5e37b267f03d1b', name: "circle", size: iconSize, weight: "fill" }))), this.iconLeft && !hasLeftSlot && (h("span", { key: 'b944fbf0a0161846411d8fc2fe034c48c77d42ea', class: "co-chip__icon-left", part: "icon-left" }, h("co-icon", { key: 'b24a5a3c64d0eda1b9d87c66ac93c0d4703973bc', name: this.iconLeft, size: iconSize, weight: this.iconWeight }))), hasLeftSlot && (h("span", { key: '9f1e7fa47bd86e1d7e4812ec0fe5f61490ab0878', class: "co-chip__icon-left", part: "icon-left" }, h("slot", { key: 'e52df105783ff84c932bc289f6e88304ccc4240a', name: "icon-left" }))), h("span", { key: '269f54eca09a4ff301d9ec4e673bf9c8d19ccd87', class: "co-chip__label" }, h("slot", { key: '31fba7c9c05b830562800cc46c48e667e7dc046c' }, this.label), this.valueLabel != null && this.valueLabel !== '' && (h("span", { key: 'a455314236c688f2bff9185135787899da52ea5f', class: "co-chip__value", part: "value" }, `: ${this.valueLabel}`))), this.iconRight && !hasRightSlot && !this.removable && (h("span", { key: '13e5862e03e2fcf7129230a4d68ce7e2b1b4f11e', class: "co-chip__icon-right", part: "icon-right" }, h("co-icon", { key: '66fc09efbdeea37f1dbce3b5ad4443a760618b66', name: this.iconRight, size: iconSize, weight: this.iconWeight }))), hasRightSlot && (h("span", { key: '7acfa1a23e294cb92b17d5174ec0a78161877624', class: "co-chip__icon-right", part: "icon-right" }, h("slot", { key: '9e8ded0f256a72ab81c587a82d2bb570930288f9', name: "icon-right" }))), this.removable && (h("span", { key: 'e30345ce825c823fbf7da1aaaec4141351e18a02', class: "co-chip__remove", part: "remove", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleRemove, "aria-label": "Remove" }, h("co-icon", { key: '3d9777c29b706cda71ee64b313961c97e215b900', name: "x-circle", size: removeIconSize, weight: "fill" }))), this.trailingIcon && (h("span", { key: 'd99af23fbbb7a8557b8cefd15a4cebdc7437ff43', class: "co-chip__trailing", part: "trailing" }, h("co-icon", { key: 'aa99f2c0f6ec96f95656c607ca5846c282447e35', name: this.trailingIcon, size: trailingIconSize, weight: this.iconWeight })))));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "co-chip"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -82,10 +82,10 @@ export class CoColorPicker {
|
|
|
82
82
|
const presets = this.parsedPresets;
|
|
83
83
|
const hasValue = !!this.value;
|
|
84
84
|
const statusClass = this.status !== 'default' ? `co-color-picker--${this.status}` : '';
|
|
85
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: '41a7a80f81aeaf71e1f8429e66aa5511437882fa', class: `co-color-picker co-color-picker--${this.size} ${statusClass} ${this.isOpen ? 'co-color-picker--open' : ''} ${this.disabled ? 'co-color-picker--disabled' : ''}` }, this.label && (h("label", { key: '96404f15d058b7bc0b2d2c13b6744404cc11769a', class: "co-color-picker__label" }, this.label, h(RequiredMark, { key: '16af407f56b58ad6ea649a19aa8a3c96f2caae04', required: this.required }))), h("co-popover", { key: '8eb3b862b8618b32d76e862ce003e667801c3262', open: this.isOpen, placement: "bottom-start", matchWidth: true, offset: 4, onCoOpen: this.handlePopoverOpen, onCoClose: this.handlePopoverClose }, h("div", { key: '0314b0dbf7404fdb23a0b5cd837b07b5879f85a1', slot: "trigger", class: "co-color-picker__trigger" }, h("span", { key: '0d08254d17a15786834c5de548526b6b359a09be', class: "co-color-picker__swatch", style: { background: hasValue ? this.value : 'transparent' } }), h("span", { key: 'afbfa48cb5bd140767acdf2e1df35d7e8985948d', class: `co-color-picker__value ${!hasValue ? 'co-color-picker__value--empty' : ''}` }, hasValue ? this.value : this.placeholder)), this.isOpen && (h("div", { key: '9e0d22b668546a175c6e6559c2af5dd0de2a1843', class: "co-color-picker__panel" }, h("div", { key: '018fec91282680d660be82b01f340b29f13c73f7', class: "co-color-picker__grid" }, presets.map((preset) => {
|
|
86
86
|
var _a;
|
|
87
87
|
return (h("button", { type: "button", key: preset.value, class: `co-color-picker__grid-item ${preset.value.toUpperCase() === ((_a = this.value) === null || _a === void 0 ? void 0 : _a.toUpperCase()) ? 'co-color-picker__grid-item--selected' : ''}`, style: { background: preset.value }, title: preset.name, onClick: () => this.handleSwatchClick(preset.value) }));
|
|
88
|
-
})), hasValue && (h("div", { key: '
|
|
88
|
+
})), hasValue && (h("div", { key: '83420abbf343f57fa57804c676fd22e91d2f6816', class: "co-color-picker__hex-row" }, h("span", { key: '1b9ce2cdb091734c9d34003c8ce48a165e8763a8', class: "co-color-picker__hex-prefix" }, "#"), h("span", { key: '5733ec9110227e3ffa45c15c294629cfe420c485', class: "co-color-picker__hex-value" }, this.value.replace(/^#/, '')), h("button", { key: '249b0f7eb80517c89ecaa11c09cf64ae70fd3d52', type: "button", class: `co-color-picker__copy-btn ${this.copied ? 'co-color-picker__copy-btn--copied' : ''}`, title: "Copy", onClick: () => this.handleCopy() }, h("co-icon", { key: 'aed9a2fe68c39047e6027c76c185a1cfc5abb097', name: this.copied ? 'check' : 'copy', size: 16 }))))))), this.helperText && (h("div", { key: '276d4f39ca9f5be6add8bd2ae423a02960f82581', class: "co-color-picker__helper" }, this.statusIcon && (h("co-icon", { key: '4f4323dc9f3d26581fb6ec1f5bd1e668e9a45011', name: this.statusIcon, size: 14, weight: "fill", class: "co-color-picker__helper-icon" })), h("span", { key: 'ee725d0ce3a30985a71bf2d34e5e64124f89891b', class: "co-color-picker__helper-text" }, this.helperText)))));
|
|
89
89
|
}
|
|
90
90
|
static get is() { return "co-color-picker"; }
|
|
91
91
|
static get encapsulation() { return "shadow"; }
|
|
@@ -165,13 +165,13 @@ export class CoColumnPicker {
|
|
|
165
165
|
return (h("div", { class: "co-column-picker__empty" }, h("co-icon", { name: "magnifying-glass", size: 40, class: "co-column-picker__empty-icon" }), h("span", null, this.emptyText)));
|
|
166
166
|
}
|
|
167
167
|
render() {
|
|
168
|
-
return (h("div", { key: '
|
|
168
|
+
return (h("div", { key: '6407a41a8e03d70e54cfd378747396a413eb0a11', class: {
|
|
169
169
|
'co-column-picker': true,
|
|
170
170
|
'co-column-picker--open': this.isOpen,
|
|
171
171
|
'co-column-picker--disabled': this.disabled,
|
|
172
172
|
'co-column-picker--focused': this.focused,
|
|
173
173
|
[`co-column-picker--${this.status}`]: this.status !== 'default',
|
|
174
|
-
} }, (this.label || this.secondaryLabel) && (h("div", { key: '
|
|
174
|
+
} }, (this.label || this.secondaryLabel) && (h("div", { key: '86850ac9d0162b34369c70424549d101c9b72cc3', class: "co-column-picker__labels" }, this.label && h("label", { key: 'c05eccf88052fdcf8b593282daa1fc0f9a8bab1e', class: "co-column-picker__label" }, this.label), this.secondaryLabel && h("span", { key: 'fe64f07fb1238d51506575c679bb33c7797c2edc', class: "co-column-picker__secondary-label" }, this.secondaryLabel))), this.renderField(), this.isOpen && (h("div", { key: 'cb28e40aaf843c96a2649efef1e3803cde627345', class: "co-column-picker__dropdown" }, this.showSearch && (h("div", { key: '37ab85bf708a3ba34f5ddb1ab416600b0d0be072', class: "co-column-picker__search" }, h("co-icon", { key: '8b10c859742279f5e11d764d6012429259bdec19', name: "magnifying-glass", size: 14, class: "co-column-picker__search-icon" }), h("input", { key: '7f52dbbcc524bf78424cb85396ad62b68b16dac5', ref: el => (this.searchInputEl = el), class: "co-column-picker__search-input", type: "text", value: this.query, placeholder: this.placeholder, onInput: this.handleSearchInput, onClick: (e) => e.stopPropagation() }), this.query && (h("button", { key: 'ddbd0996534dcda27de900019d10b12eeb352d8d', class: "co-column-picker__search-clear", type: "button", onClick: this.handleSearchClear }, h("co-icon", { key: 'f4d997c88423b664f63fcc09acf5366f735f3a57', name: "x", size: 14 }))))), this.showToolbar && this.multiple && (h("div", { key: '0e6ee3c9351c48c10affd4e2146cf9939a06971d', class: "co-column-picker__toolbar" }, h("button", { key: '101167f8a9da5f47dec86a94f9ffa0d4bb2edfbb', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleSelectAll }, this.selectAllText), h("button", { key: '6e00fd6f1be5f2bc223dbb1b6800916d0872b7a2', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleDeselectAll }, this.clearText), h("span", { key: '9446309b1a737059936a3fecdbbca37677544c49', class: "co-column-picker__toolbar-sep" }), h("button", { key: '7a014ee36386286cee3b97d1a67cafe8eca60ac4', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleExpandAll }, this.expandText), h("button", { key: '09a58d24e5fef162b9c8452d905e36c89b5fb0a9', class: "co-column-picker__toolbar-btn", type: "button", onClick: this.handleCollapseAll }, this.collapseText), h("span", { key: '01468f7c6140081183cccb1c7ae063f8bbafad5e', style: { flex: '1' } }), this.selectedValues.length > 0 && h("span", { key: '94d9805ce88fed580da36d122d134c4f445df03f', class: "co-column-picker__toolbar-counter" }, this.selectedValues.length, " ", this.selectedText))), h("div", { key: '95aab5f3408bf840d0e27f6e1de3908b6a9dd3c6', class: "co-column-picker__scroll", style: { maxHeight: `${this.maxHeight}px` } }, this.renderTree()))), this.helperText && (h("div", { key: '27533140acd117f09e981f307f0c39d741b92515', class: `co-column-picker__helper co-column-picker__helper--${this.status}` }, this.statusIcon && h("co-icon", { key: '7992e3f214985653e673f64f5b85e07be5298cc7', name: this.statusIcon, size: 14, weight: "fill", class: "co-column-picker__helper-icon" }), h("span", { key: '01eb7d766027a9c0cff30f91be730f3dbb4b2443', class: "co-column-picker__helper-text" }, this.helperText)))));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "co-column-picker"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -204,8 +204,10 @@
|
|
|
204
204
|
Dropdown panel
|
|
205
205
|
============================================================ */
|
|
206
206
|
|
|
207
|
+
/* Sin padding propio: co-option-list ES el interior del panel (search margin
|
|
208
|
+
* 12 + options padding 12 — su contrato dice "el chrome es del host; aquí solo
|
|
209
|
+
* el interior"). Un padding acá se SUMA al suyo y deja gutters dobles (24px). */
|
|
207
210
|
.co-combobox__dropdown {
|
|
208
|
-
padding: var(--co-spacing-md);
|
|
209
211
|
display: flex;
|
|
210
212
|
flex-direction: column;
|
|
211
213
|
gap: var(--co-spacing-sm2);
|
|
@@ -502,7 +502,7 @@ export class CoCombobox {
|
|
|
502
502
|
"references": {
|
|
503
503
|
"ComboboxOption": {
|
|
504
504
|
"location": "local",
|
|
505
|
-
"path": "/Users/agox/
|
|
505
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-combobox/co-combobox.tsx",
|
|
506
506
|
"id": "src/components/co-combobox/co-combobox.tsx::ComboboxOption"
|
|
507
507
|
}
|
|
508
508
|
}
|
|
@@ -246,7 +246,7 @@ export class CoCommandSearch {
|
|
|
246
246
|
"references": {
|
|
247
247
|
"CommandItem": {
|
|
248
248
|
"location": "local",
|
|
249
|
-
"path": "/Users/agox/
|
|
249
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-command-search/co-command-search.tsx",
|
|
250
250
|
"id": "src/components/co-command-search/co-command-search.tsx::CommandItem"
|
|
251
251
|
}
|
|
252
252
|
}
|
|
@@ -220,6 +220,39 @@ co-data-table {
|
|
|
220
220
|
z-index: 3;
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
+
/* ⚠️ Una celda STICKY NO puede establecer un clip propio (overflow hidden/clip,
|
|
224
|
+
contain:paint). Doble clase para ganarle por especificidad al `overflow:hidden`
|
|
225
|
+
de las reglas base .co-data-table__th / .co-data-table__td (que van después en
|
|
226
|
+
este archivo), sin depender del orden.
|
|
227
|
+
|
|
228
|
+
Dos defectos, ambos verificados en vivo (Chromium 141, scrollbars clásicas):
|
|
229
|
+
|
|
230
|
+
1. HIT-TEST FUERA DEL SCROLLPORT — Chromium no intersecta la región de
|
|
231
|
+
hit-test de una celda sticky que tiene clip propio con el borde INFERIOR
|
|
232
|
+
del scrollport: la celda de la última fila (recortada a medias) y sus
|
|
233
|
+
hijos siguen siendo hitteables dentro del canal de 11px de la scrollbar
|
|
234
|
+
horizontal y le roban el puntero al thumb. Efecto: sobre las columnas
|
|
235
|
+
fijadas el thumb no toma :hover ni se puede arrastrar — funciona en el
|
|
236
|
+
resto del ancho. `elementFromPoint` en el canal devolvía el contenido de
|
|
237
|
+
la celda en vez de .co-data-table__scroll.
|
|
238
|
+
2. CONTENEDOR DE SCROLL FANTASMA — con la sombra ::after en right:-4px,
|
|
239
|
+
scrollWidth > clientWidth convierte a la celda en un scroll container
|
|
240
|
+
horizontal incapaz de scrollear, y el trackpad engancha el swipe al eje
|
|
241
|
+
vertical solo sobre esa columna.
|
|
242
|
+
|
|
243
|
+
Matriz medida: static+hidden = OK · sticky+visible = OK ·
|
|
244
|
+
sticky+hidden / sticky+clip / sticky+contain:paint = AMBOS defectos.
|
|
245
|
+
El z-index no influye.
|
|
246
|
+
|
|
247
|
+
El truncado NO se pierde: vive en el contenido (.co-data-table__cell-text y
|
|
248
|
+
.co-data-table__th-label ya traen overflow:hidden + text-overflow:ellipsis,
|
|
249
|
+
y sus min-width:auto resuelven a 0 por tener overflow≠visible). Bonus: la
|
|
250
|
+
sombra ::after ya no queda recortada en el <th>. */
|
|
251
|
+
.co-data-table__th.co-data-table__th--sticky,
|
|
252
|
+
.co-data-table__td.co-data-table__td--sticky {
|
|
253
|
+
overflow: visible;
|
|
254
|
+
}
|
|
255
|
+
|
|
223
256
|
/* Shadow for sticky columns on scroll */
|
|
224
257
|
.co-data-table__td--sticky::after,
|
|
225
258
|
.co-data-table__th--sticky::after {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { edgeAutoScrollSpeed, resizeWidth } from "../../utils/columnResize";
|
|
2
3
|
/**
|
|
3
4
|
* @slot - Default slot for custom row content (advanced usage)
|
|
4
5
|
*/
|
|
@@ -52,6 +53,17 @@ export class CoDataTable {
|
|
|
52
53
|
this.resizingColumn = null;
|
|
53
54
|
this.resizeStartX = 0;
|
|
54
55
|
this.resizeStartWidth = 0;
|
|
56
|
+
// Edge auto-scroll drag state — plain fields (not @State): they mutate per
|
|
57
|
+
// frame and the re-render is already driven by the columnWidths Map swap.
|
|
58
|
+
this.resizeEdgeExtra = 0;
|
|
59
|
+
this.resizeLastClientX = 0;
|
|
60
|
+
this.resizeAutoScrollRaf = 0;
|
|
61
|
+
// Scroll owed to the auto-scroll growth, applied in componentDidRender —
|
|
62
|
+
// NEVER in the tick itself: the @State render is async, so at max scroll a
|
|
63
|
+
// same-tick scrollLeft advance clamps against the not-yet-grown table and
|
|
64
|
+
// the scroll falls permanently behind the width (boundary drifts off the
|
|
65
|
+
// pointer). Deferring to didRender lands width + scroll in the SAME paint.
|
|
66
|
+
this.resizePendingScroll = 0;
|
|
55
67
|
// Swallows the click the browser synthesizes right after a resize drag ends.
|
|
56
68
|
// The resize handle lives inside the sortable <th>, so without this a resize
|
|
57
69
|
// would bubble to the header's onClick and trigger a sort (+ a full refetch).
|
|
@@ -113,6 +125,18 @@ export class CoDataTable {
|
|
|
113
125
|
this.parseFilteredFields();
|
|
114
126
|
this.parseIndirectFields();
|
|
115
127
|
}
|
|
128
|
+
componentDidRender() {
|
|
129
|
+
// Auto-scroll parity: the resize tick grew the column (async @State render)
|
|
130
|
+
// and owes the container the same px of scroll. Here the DOM already has
|
|
131
|
+
// the new table width, so the advance can't clamp — width and scroll land
|
|
132
|
+
// in the same paint and the drag boundary stays pinned under the pointer.
|
|
133
|
+
if (this.resizePendingScroll) {
|
|
134
|
+
const scrollEl = this.el.querySelector('.co-data-table__scroll');
|
|
135
|
+
if (scrollEl)
|
|
136
|
+
scrollEl.scrollLeft += this.resizePendingScroll;
|
|
137
|
+
this.resizePendingScroll = 0;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
116
140
|
/* ─── SORT HANDLERS ─────────────────────────────────────── */
|
|
117
141
|
handleSort(field) {
|
|
118
142
|
// Ignore the click synthesized by a resize drag that ended on this <th>.
|
|
@@ -164,16 +188,74 @@ export class CoDataTable {
|
|
|
164
188
|
this.resizingColumn = field;
|
|
165
189
|
this.resizeStartX = e.clientX;
|
|
166
190
|
this.resizeStartWidth = this.columnWidths.get(field) || 150;
|
|
191
|
+
this.resizeEdgeExtra = 0;
|
|
192
|
+
this.resizeLastClientX = e.clientX;
|
|
193
|
+
const scrollEl = this.el.querySelector('.co-data-table__scroll');
|
|
194
|
+
const columnMinWidth = () => { var _a; return ((_a = this.parsedColumns.find(c => c.field === this.resizingColumn)) === null || _a === void 0 ? void 0 : _a.minWidth) || 80; };
|
|
195
|
+
const applyWidth = () => {
|
|
196
|
+
const column = this.resizingColumn;
|
|
197
|
+
if (!column)
|
|
198
|
+
return 0;
|
|
199
|
+
const newWidth = resizeWidth({
|
|
200
|
+
startWidth: this.resizeStartWidth,
|
|
201
|
+
minWidth: columnMinWidth(),
|
|
202
|
+
pointerDelta: this.resizeLastClientX - this.resizeStartX,
|
|
203
|
+
autoScrollExtra: this.resizeEdgeExtra,
|
|
204
|
+
});
|
|
205
|
+
this.columnWidths = new Map(this.columnWidths.set(column, newWidth));
|
|
206
|
+
return newWidth;
|
|
207
|
+
};
|
|
208
|
+
// Growing a column past the viewport needs the container to CHASE the
|
|
209
|
+
// pointer: while it hovers the edge zone, each frame adds `speed` px to the
|
|
210
|
+
// width AND owes the container the same px of scroll, so the boundary stays
|
|
211
|
+
// pinned under the pointer instead of dying at the viewport edge (the old
|
|
212
|
+
// drag forced release → scrollbar → drag again to keep growing). The owed
|
|
213
|
+
// scroll is NOT applied here — see resizePendingScroll/componentDidRender:
|
|
214
|
+
// the @State render is async, so a same-tick scrollLeft advance would clamp
|
|
215
|
+
// against the not-yet-grown table and fall permanently behind the width.
|
|
216
|
+
const autoScrollTick = () => {
|
|
217
|
+
this.resizeAutoScrollRaf = 0;
|
|
218
|
+
const column = this.resizingColumn;
|
|
219
|
+
if (!column || !scrollEl)
|
|
220
|
+
return;
|
|
221
|
+
const rect = scrollEl.getBoundingClientRect();
|
|
222
|
+
const speed = edgeAutoScrollSpeed({
|
|
223
|
+
pointerX: this.resizeLastClientX,
|
|
224
|
+
containerLeft: rect.left,
|
|
225
|
+
containerRight: rect.right,
|
|
226
|
+
});
|
|
227
|
+
if (!speed)
|
|
228
|
+
return;
|
|
229
|
+
// Shrinking at the left edge: once the column bottoms out at minWidth
|
|
230
|
+
// stop the loop — accumulating further negative extra would rubber-band
|
|
231
|
+
// the next rightward drag.
|
|
232
|
+
if (speed < 0 && (this.columnWidths.get(column) || this.resizeStartWidth) <= columnMinWidth())
|
|
233
|
+
return;
|
|
234
|
+
this.resizeEdgeExtra += speed;
|
|
235
|
+
this.resizePendingScroll += speed;
|
|
236
|
+
// applyWidth swaps the Map reference → guarantees a render → guarantees
|
|
237
|
+
// componentDidRender flushes the pending scroll right after the paint
|
|
238
|
+
// that shows the wider table.
|
|
239
|
+
applyWidth();
|
|
240
|
+
this.resizeAutoScrollRaf = requestAnimationFrame(autoScrollTick);
|
|
241
|
+
};
|
|
167
242
|
const onMouseMove = (ev) => {
|
|
168
|
-
var _a;
|
|
169
243
|
if (!this.resizingColumn)
|
|
170
244
|
return;
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
245
|
+
this.resizeLastClientX = ev.clientX;
|
|
246
|
+
applyWidth();
|
|
247
|
+
if (!this.resizeAutoScrollRaf)
|
|
248
|
+
this.resizeAutoScrollRaf = requestAnimationFrame(autoScrollTick);
|
|
175
249
|
};
|
|
176
250
|
const onMouseUp = () => {
|
|
251
|
+
if (this.resizeAutoScrollRaf) {
|
|
252
|
+
cancelAnimationFrame(this.resizeAutoScrollRaf);
|
|
253
|
+
this.resizeAutoScrollRaf = 0;
|
|
254
|
+
}
|
|
255
|
+
// resizePendingScroll is NOT zeroed here: it is only ever nonzero with a
|
|
256
|
+
// render already in flight (each tick increments it right before
|
|
257
|
+
// applyWidth), so its flush in componentDidRender is the legitimate tail
|
|
258
|
+
// of the drag — zeroing it would strand the boundary short of the pointer.
|
|
177
259
|
if (this.resizingColumn) {
|
|
178
260
|
const width = this.columnWidths.get(this.resizingColumn) || 150;
|
|
179
261
|
this.coColumnResize.emit({ field: this.resizingColumn, width });
|
|
@@ -339,12 +421,12 @@ export class CoDataTable {
|
|
|
339
421
|
: h("slot", { name: "empty-action" }))));
|
|
340
422
|
}
|
|
341
423
|
render() {
|
|
342
|
-
return (h("div", { key: '
|
|
424
|
+
return (h("div", { key: '6ba1f3bb555252c55246c8af73b8ce08610e93b0', class: {
|
|
343
425
|
'co-data-table': true,
|
|
344
426
|
'co-data-table--resizing': this.resizingColumn !== null,
|
|
345
427
|
'co-data-table--loading': this.loading,
|
|
346
428
|
'co-data-table--empty': !this.loading && this.parsedRows.length === 0,
|
|
347
|
-
} }, h("div", { key: '
|
|
429
|
+
} }, h("div", { key: '69bc61a98f48ac06006d9b5ab132abf15bbeeb64', class: "co-data-table__scroll" }, h("table", { key: 'bc7627b050900ca6c8887981e47368bfb7f181ea', class: "co-data-table__table", style: { width: `${this.getTableWidth()}px`, minWidth: '100%' } }, this.renderColgroup(), this.renderHeader(), h("slot", { key: 'fc98863e680b660844ec968af6ebc645160ee32e' }), this.loading ? this.renderSkeletonBody() : null)), this.renderEmpty()));
|
|
348
430
|
}
|
|
349
431
|
static get is() { return "co-data-table"; }
|
|
350
432
|
static get originalStyleUrls() {
|
|
@@ -368,7 +450,7 @@ export class CoDataTable {
|
|
|
368
450
|
"references": {
|
|
369
451
|
"CoDataTableColumn": {
|
|
370
452
|
"location": "local",
|
|
371
|
-
"path": "/Users/agox/
|
|
453
|
+
"path": "/Users/agox/worktrees/cobalt-release/packages/core/src/components/co-data-table/co-data-table.tsx",
|
|
372
454
|
"id": "src/components/co-data-table/co-data-table.tsx::CoDataTableColumn"
|
|
373
455
|
}
|
|
374
456
|
}
|