@prolibu-suite/cobalt-core 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +8275 -5147
- package/dist/cjs/co-accordion.cjs.entry.js +4 -4
- package/dist/cjs/co-action-bar.cjs.entry.js +89 -0
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-audio-player.cjs.entry.js +279 -0
- 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 +17 -6
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +13 -6
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +1601 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +13 -13
- package/dist/cjs/co-card.cjs.entry.js +4 -4
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +109 -8
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-combobox.cjs.entry.js +14 -6
- package/dist/cjs/co-command-search.cjs.entry.js +20 -6
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +6 -6
- package/dist/cjs/co-data-table.cjs.entry.js +2 -2
- package/dist/cjs/co-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +409 -0
- 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 +119 -18
- package/dist/cjs/co-event-popover.cjs.entry.js +132 -0
- 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 +7 -7
- 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 +3 -3
- 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 +33 -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 +72 -0
- 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 +22 -6
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +1 -1
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-select.cjs.entry.js +4 -4
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +14 -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 +20 -4
- package/dist/cjs/co-tab.cjs.entry.js +4 -4
- package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
- package/dist/cjs/co-textarea.cjs.entry.js +7 -7
- package/dist/cjs/co-toast.cjs.entry.js +35 -5
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-transfer-list.cjs.entry.js +4 -4
- package/dist/cjs/co-video.cjs.entry.js +4 -4
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{dateI18n-BdiNAl0_.js → dateI18n-wblvKRq_.js} +21 -0
- package/dist/cjs/{dates-D8D-aS5d.js → dates-TQLHlFd2.js} +64 -13
- package/dist/cjs/{fieldChip-B_npd9rL.js → fieldChip-xNJPEFcS.js} +1 -1
- package/dist/cjs/{index-kBiXCEE7.js → index-DK-2Lzmf.js} +29 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{positioning-DwHW399W.js → positioning-DCj_AJ2T.js} +10 -0
- package/dist/cjs/{requiredMark-DuMIcKtt.js → requiredMark-C1xcrzSZ.js} +1 -1
- package/dist/cjs/time-LBHtzLHe.js +42 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-09fe6ece.entry.js +1 -0
- package/dist/cobalt/p-12a0ae24.entry.js +1 -0
- package/dist/cobalt/p-142506d9.entry.js +1 -0
- package/dist/cobalt/{p-e4555fda.entry.js → p-19706923.entry.js} +1 -1
- package/dist/cobalt/p-19f5d480.entry.js +1 -0
- package/dist/cobalt/{p-B6JZk8fL.js → p-1EK-COrb.js} +1 -1
- package/dist/cobalt/p-1ddbc48b.entry.js +1 -0
- package/dist/cobalt/p-212ed2ba.entry.js +1 -0
- package/dist/cobalt/p-21832273.entry.js +1 -0
- package/dist/cobalt/p-24e93fcb.entry.js +1 -0
- package/dist/cobalt/{p-9211e794.entry.js → p-2a9ba4c8.entry.js} +1 -1
- package/dist/cobalt/p-2aeb1471.entry.js +1 -0
- package/dist/cobalt/p-2d0354cc.entry.js +1 -0
- package/dist/cobalt/p-30ec230e.entry.js +1 -0
- package/dist/cobalt/p-360714ae.entry.js +1 -0
- package/dist/cobalt/{p-3c681e3a.entry.js → p-37541725.entry.js} +1 -1
- package/dist/cobalt/p-39007b6c.entry.js +1 -0
- package/dist/cobalt/{p-2f6c7eb5.entry.js → p-39bce45f.entry.js} +1 -1
- package/dist/cobalt/{p-7f78e45c.entry.js → p-3ac316e0.entry.js} +1 -1
- package/dist/cobalt/{p-69723cc1.entry.js → p-3ced4269.entry.js} +1 -1
- package/dist/cobalt/{p-9994fcd8.entry.js → p-3ecc29fa.entry.js} +1 -1
- package/dist/cobalt/p-417ce874.entry.js +1 -0
- package/dist/cobalt/{p-28ab9cef.entry.js → p-43b1f8fb.entry.js} +1 -1
- package/dist/cobalt/p-49bde154.entry.js +1 -0
- package/dist/cobalt/{p-54f8c68c.entry.js → p-4e2379e4.entry.js} +1 -1
- package/dist/cobalt/p-5d7c26f2.entry.js +1 -0
- package/dist/cobalt/p-5ddebd10.entry.js +1 -0
- package/dist/cobalt/{p-bcd38114.entry.js → p-5f0f5d4b.entry.js} +1 -1
- package/dist/cobalt/{p-2661557c.entry.js → p-5f1b273b.entry.js} +1 -1
- package/dist/cobalt/p-60cb66f5.entry.js +1 -0
- package/dist/cobalt/{p-48fbf051.entry.js → p-6795a258.entry.js} +1 -1
- package/dist/cobalt/{p-5b84cf37.entry.js → p-6d532475.entry.js} +1 -1
- package/dist/cobalt/{p-0110108f.entry.js → p-724b9b54.entry.js} +1 -1
- package/dist/cobalt/{p-ceb85838.entry.js → p-7255ab63.entry.js} +1 -1
- package/dist/cobalt/p-7521ec0c.entry.js +1 -0
- package/dist/cobalt/{p-69ce2269.entry.js → p-76dff399.entry.js} +1 -1
- package/dist/cobalt/p-77593319.entry.js +1 -0
- package/dist/cobalt/p-7a2dab23.entry.js +1 -0
- package/dist/cobalt/p-7ec85887.entry.js +1 -0
- package/dist/cobalt/p-81866f71.entry.js +1 -0
- package/dist/cobalt/{p-c3004e1c.entry.js → p-8206c7c0.entry.js} +1 -1
- package/dist/cobalt/p-85a61e28.entry.js +1 -0
- package/dist/cobalt/p-87fc5aed.entry.js +1 -0
- package/dist/cobalt/p-8a93beb0.entry.js +1 -0
- package/dist/cobalt/p-8b7a4f6c.entry.js +1 -0
- package/dist/cobalt/{p-741cf623.entry.js → p-8e667eb6.entry.js} +1 -1
- package/dist/cobalt/{p-3b9be8a8.entry.js → p-94a8a119.entry.js} +1 -1
- package/dist/cobalt/p-9c2ce487.entry.js +1 -0
- package/dist/cobalt/p-9fe9e2fe.entry.js +1 -0
- package/dist/cobalt/p-BMdapAL8.js +1 -0
- package/dist/cobalt/p-BU7SQCje.js +1 -0
- package/dist/cobalt/p-CF8OB_TM.js +1 -0
- package/dist/cobalt/p-CQAYgqA6.js +1 -0
- package/dist/cobalt/p-CnNpoKwg.js +1 -0
- package/dist/cobalt/p-CrtiywTB.js +2 -0
- package/dist/cobalt/p-T4la7ly_.js +1 -0
- package/dist/cobalt/{p-2da09948.entry.js → p-a074f2ba.entry.js} +1 -1
- package/dist/cobalt/{p-0a294205.entry.js → p-a45e2c00.entry.js} +1 -1
- package/dist/cobalt/p-a530bec2.entry.js +1 -0
- package/dist/cobalt/p-a5d84c7a.entry.js +1 -0
- package/dist/cobalt/p-b004c3bb.entry.js +1 -0
- package/dist/cobalt/p-b1ef5107.entry.js +1 -0
- package/dist/cobalt/p-b28dc0fe.entry.js +1 -0
- package/dist/cobalt/{p-cdedaa82.entry.js → p-b64b0a07.entry.js} +1 -1
- package/dist/cobalt/p-b800e107.entry.js +1 -0
- package/dist/cobalt/p-b9ac1f25.entry.js +1 -0
- package/dist/cobalt/{p-202eadfc.entry.js → p-baeb5d55.entry.js} +1 -1
- package/dist/cobalt/{p-7178113f.entry.js → p-c31f5c1b.entry.js} +1 -1
- package/dist/cobalt/p-c3c2087e.entry.js +1 -0
- package/dist/cobalt/p-c42c505c.entry.js +1 -0
- package/dist/cobalt/p-c7a809c7.entry.js +1 -0
- package/dist/cobalt/{p-eec1c44c.entry.js → p-c8dba82f.entry.js} +1 -1
- package/dist/cobalt/p-cc72557d.entry.js +1 -0
- package/dist/cobalt/p-d21da71a.entry.js +1 -0
- package/dist/cobalt/{p-e1b468c1.entry.js → p-d3c765e3.entry.js} +1 -1
- package/dist/cobalt/p-d7b00e5f.entry.js +1 -0
- package/dist/cobalt/p-d85a751d.entry.js +1 -0
- package/dist/cobalt/{p-3af74ab8.entry.js → p-da546d08.entry.js} +1 -1
- package/dist/cobalt/p-debe0d79.entry.js +1 -0
- package/dist/cobalt/p-e054cb52.entry.js +1 -0
- package/dist/cobalt/p-e5296961.entry.js +1 -0
- package/dist/cobalt/p-e5b5ae89.entry.js +1 -0
- package/dist/cobalt/p-e612b43c.entry.js +1 -0
- package/dist/cobalt/{p-97875bde.entry.js → p-e6882ddd.entry.js} +1 -1
- package/dist/cobalt/p-e7e34852.entry.js +1 -0
- package/dist/cobalt/p-e99832a9.entry.js +1 -0
- package/dist/cobalt/{p-616e4286.entry.js → p-ed2ca588.entry.js} +1 -1
- package/dist/cobalt/p-f1284fcd.entry.js +1 -0
- package/dist/cobalt/{p-6b38e8fb.entry.js → p-f1731fe9.entry.js} +1 -1
- package/dist/cobalt/{p-ba5c6aa7.entry.js → p-f4cebc1f.entry.js} +1 -1
- package/dist/cobalt/p-f52f61d4.entry.js +1 -0
- package/dist/cobalt/{p-a252f8c5.entry.js → p-f83b48fd.entry.js} +1 -1
- package/dist/cobalt/p-fa5c25d6.entry.js +1 -0
- package/dist/cobalt/p-fd39f410.entry.js +1 -0
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/co-accordion/co-accordion.css +12 -4
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.css +136 -0
- package/dist/collection/components/co-action-bar/co-action-bar.js +247 -0
- package/dist/collection/components/co-app-shell/co-app-shell.css +1 -1
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.css +57 -0
- package/dist/collection/components/co-audio-player/co-audio-player.js +453 -0
- package/dist/collection/components/co-audio-player/co-audio-player.utils.js +44 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +14 -5
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +4 -12
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +36 -1
- package/dist/collection/components/co-button/co-button.js +31 -5
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +2 -2
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +53 -4
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +238 -55
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +265 -0
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +1305 -0
- package/dist/collection/components/co-card/co-card.css +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +85 -59
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +1 -1
- package/dist/collection/components/co-chip/co-chip.css +2 -2
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +3 -3
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.css +8 -8
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +13 -5
- package/dist/collection/components/co-command-search/co-command-search.css +13 -3
- package/dist/collection/components/co-command-search/co-command-search.js +18 -4
- package/dist/collection/components/co-data-table/co-data-table.css +9 -9
- 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 +325 -0
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +1079 -0
- package/dist/collection/components/co-drawer/co-drawer.css +48 -2
- package/dist/collection/components/co-drawer/co-drawer.js +1 -1
- 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 +21 -9
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +342 -39
- package/dist/collection/components/co-event-popover/co-event-popover.css +25 -0
- package/dist/collection/components/co-event-popover/co-event-popover.js +326 -0
- package/dist/collection/components/co-fab/co-fab.css +18 -12
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +5 -5
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +10 -1
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-input/co-input.css +3 -3
- package/dist/collection/components/co-json-field/co-json-field.css +1 -1
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +4 -4
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.css +1 -1
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.css +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +22 -1
- package/dist/collection/components/co-menu-item/co-menu-item.js +20 -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 +20 -2
- package/dist/collection/components/co-option-list/co-option-list.js +141 -7
- package/dist/collection/components/co-option-list/optionListLogic.js +13 -0
- package/dist/collection/components/co-overlay/co-overlay.css +2 -2
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +27 -0
- package/dist/collection/components/co-popover/co-popover.js +30 -4
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +1 -1
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-provider-logo/co-provider-logo.css +23 -0
- package/dist/collection/components/co-provider-logo/co-provider-logo.js +124 -0
- package/dist/collection/components/co-radio/co-radio.css +1 -1
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +1 -1
- package/dist/collection/components/co-rating/co-rating.css +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +4 -4
- package/dist/collection/components/co-ref-field/co-ref-field.js +18 -2
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +16 -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 +20 -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 +1 -1
- 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 +12 -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.css +25 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +18 -2
- package/dist/collection/components/co-tags-field/co-tags-field.css +3 -3
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +2 -2
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.css +63 -1
- package/dist/collection/components/co-toast/co-toast.js +38 -3
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +1 -1
- package/dist/collection/components/co-tooltip/co-tooltip.js +14 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +3 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +9 -9
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/dateI18n.js +21 -0
- package/dist/collection/utils/eventColor.js +52 -0
- package/dist/collection/utils/positioning.js +10 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.d.ts +11 -0
- package/dist/components/co-action-bar.js +1 -0
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.d.ts +11 -0
- package/dist/components/co-audio-player.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-calendar-timegrid.js +1 -0
- 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.d.ts +11 -0
- package/dist/components/co-date-time-picker.js +1 -0
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-event-popover.d.ts +11 -0
- package/dist/components/co-event-popover.js +1 -0
- 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-provider-logo.d.ts +11 -0
- package/dist/components/co-provider-logo.js +1 -0
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-2zy1K6zg.js +1 -0
- package/dist/components/{p-B3U63yZw.js → p-BCnjq3jN.js} +1 -1
- package/dist/components/p-BMdapAL8.js +1 -0
- package/dist/components/{p-T0UfY6rA.js → p-BUE9mBqk.js} +1 -1
- package/dist/components/p-Bh2__nEw.js +1 -0
- package/dist/components/{p-Cd3inFSL.js → p-BiefJDu3.js} +1 -1
- package/dist/components/{p-Bul6EdDX.js → p-BlvsTlsS.js} +1 -1
- package/dist/components/p-Bsll5Ofy.js +1 -0
- package/dist/components/p-C-5cLeKr.js +1 -0
- package/dist/components/p-CF8OB_TM.js +1 -0
- package/dist/components/p-CJNo2JDc.js +1 -0
- package/dist/components/p-CKKBJaNB.js +1 -0
- package/dist/components/p-CL4dicvk.js +1 -0
- package/dist/components/{p-DfpOEXHC.js → p-CYv2ig6I.js} +1 -1
- package/dist/components/p-Ce0ZJcks.js +1 -0
- package/dist/components/p-Ch837Ggl.js +1 -0
- package/dist/components/p-CkQqqKRp.js +1 -0
- package/dist/components/p-CmxZEGYq.js +1 -0
- package/dist/components/p-CnNpoKwg.js +1 -0
- package/dist/components/p-Cv5yuGLz.js +1 -0
- package/dist/components/{p-oV_1MoAN.js → p-DAaKsGqj.js} +1 -1
- package/dist/components/p-DFT1qsVu.js +1 -0
- package/dist/components/p-DTJsO_Eg.js +1 -0
- package/dist/components/p-Dxa7c4Ap.js +1 -0
- package/dist/components/p-_YYd42XM.js +1 -0
- package/dist/components/p-e5KibEs8.js +1 -0
- package/dist/components/p-re2gJwnQ.js +1 -0
- package/dist/components/p-ushHimOL.js +1 -0
- package/dist/components/p-xvWmYN3W.js +1 -0
- package/dist/esm/co-accordion.entry.js +4 -4
- package/dist/esm/co-action-bar.entry.js +87 -0
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-audio-player.entry.js +277 -0
- 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 +17 -6
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +13 -6
- package/dist/esm/co-calendar-month_2.entry.js +1598 -0
- package/dist/esm/co-calendar_3.entry.js +13 -13
- package/dist/esm/co-card.entry.js +4 -4
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +4 -4
- package/dist/esm/co-checkbox-group.entry.js +2 -2
- package/dist/esm/co-checkbox.entry.js +5 -5
- package/dist/esm/co-chip_2.entry.js +109 -8
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-column-picker.entry.js +4 -4
- package/dist/esm/co-combobox.entry.js +14 -6
- package/dist/esm/co-command-search.entry.js +20 -6
- package/dist/esm/co-data-table-pagination.entry.js +6 -6
- package/dist/esm/co-data-table.entry.js +2 -2
- package/dist/esm/co-date-picker.entry.js +3 -3
- package/dist/esm/co-date-range-picker.entry.js +5 -5
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +407 -0
- 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 +120 -19
- package/dist/esm/co-event-popover.entry.js +130 -0
- 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 +7 -7
- 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 +3 -3
- 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 +33 -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 +69 -0
- 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 +22 -6
- package/dist/esm/co-rich-text-editor.entry.js +5 -5
- package/dist/esm/co-rich-text-toolbar.entry.js +2 -2
- package/dist/esm/co-rich-text-viewer.entry.js +1 -1
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +1 -1
- package/dist/esm/co-select.entry.js +4 -4
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +14 -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 +20 -4
- package/dist/esm/co-tab.entry.js +4 -4
- package/dist/esm/co-tags-field.entry.js +9 -9
- package/dist/esm/co-textarea.entry.js +7 -7
- package/dist/esm/co-toast.entry.js +35 -5
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-transfer-list.entry.js +4 -4
- package/dist/esm/co-video.entry.js +4 -4
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{dateI18n-C1DCLOEl.js → dateI18n-CnNpoKwg.js} +21 -0
- package/dist/esm/{dates-tPYikBRJ.js → dates-BU7SQCje.js} +64 -13
- package/dist/esm/{fieldChip-Bb8YIN0J.js → fieldChip-BZDUy9Z-.js} +1 -1
- package/dist/esm/{index-BCEz3S-z.js → index-CrtiywTB.js} +29 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{positioning-C2mZ7x_Y.js → positioning-BMdapAL8.js} +10 -0
- package/dist/esm/{requiredMark-D7kAMXHM.js → requiredMark-DCD-ZA51.js} +1 -1
- package/dist/esm/time-CF8OB_TM.js +37 -0
- package/dist/esm/{tz-B6JZk8fL.js → tz-1EK-COrb.js} +1 -1
- package/dist/types/components/co-action-bar/co-action-bar.d.ts +66 -0
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +62 -0
- package/dist/types/components/co-audio-player/co-audio-player.utils.d.ts +11 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +1 -1
- package/dist/types/components/co-button/co-button.d.ts +18 -1
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +33 -1
- package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +178 -0
- 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-date-time-picker/co-date-time-picker.d.ts +131 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +61 -8
- package/dist/types/components/co-event-popover/co-event-popover.d.ts +45 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +3 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +28 -1
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +17 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +5 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -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 +1251 -82
- package/dist/types/utils/dateI18n.d.ts +7 -0
- package/dist/types/utils/eventColor.d.ts +20 -0
- package/package.json +3 -3
- package/dist/cjs/co-calendar-month.cjs.entry.js +0 -381
- package/dist/cjs/co-skeleton.cjs.entry.js +0 -26
- package/dist/cobalt/p-037cc571.entry.js +0 -1
- package/dist/cobalt/p-080f62e4.entry.js +0 -1
- package/dist/cobalt/p-0b7359bb.entry.js +0 -1
- package/dist/cobalt/p-0b92167a.entry.js +0 -1
- package/dist/cobalt/p-0bc5a962.entry.js +0 -1
- package/dist/cobalt/p-264508ae.entry.js +0 -1
- package/dist/cobalt/p-27dce0ac.entry.js +0 -1
- package/dist/cobalt/p-30c80e3a.entry.js +0 -1
- package/dist/cobalt/p-331a0108.entry.js +0 -1
- package/dist/cobalt/p-36ad3a96.entry.js +0 -1
- package/dist/cobalt/p-3ecbbe93.entry.js +0 -1
- package/dist/cobalt/p-3f1030fb.entry.js +0 -1
- package/dist/cobalt/p-3f7215e7.entry.js +0 -1
- package/dist/cobalt/p-431cec34.entry.js +0 -1
- package/dist/cobalt/p-4f615cbd.entry.js +0 -1
- package/dist/cobalt/p-5319ac3f.entry.js +0 -1
- package/dist/cobalt/p-532baca4.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-54857f78.entry.js +0 -1
- package/dist/cobalt/p-585c132d.entry.js +0 -1
- package/dist/cobalt/p-59b114ab.entry.js +0 -1
- package/dist/cobalt/p-5c250889.entry.js +0 -1
- package/dist/cobalt/p-5d0510a5.entry.js +0 -1
- package/dist/cobalt/p-5e246304.entry.js +0 -1
- package/dist/cobalt/p-64115d66.entry.js +0 -1
- package/dist/cobalt/p-75515a8e.entry.js +0 -1
- package/dist/cobalt/p-8155d781.entry.js +0 -1
- package/dist/cobalt/p-8fe5b07e.entry.js +0 -1
- package/dist/cobalt/p-9824c478.entry.js +0 -1
- package/dist/cobalt/p-9bf42bf4.entry.js +0 -1
- package/dist/cobalt/p-9fab9c1f.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-C1DCLOEl.js +0 -1
- package/dist/cobalt/p-C2mZ7x_Y.js +0 -1
- package/dist/cobalt/p-D5gr2ent.js +0 -1
- package/dist/cobalt/p-b06af5c6.entry.js +0 -1
- package/dist/cobalt/p-b87a2e7a.entry.js +0 -1
- package/dist/cobalt/p-bb00ae4a.entry.js +0 -1
- package/dist/cobalt/p-c237add6.entry.js +0 -1
- package/dist/cobalt/p-c589ae25.entry.js +0 -1
- package/dist/cobalt/p-c635417b.entry.js +0 -1
- package/dist/cobalt/p-c7d9ff39.entry.js +0 -1
- package/dist/cobalt/p-c9528a5f.entry.js +0 -1
- package/dist/cobalt/p-cbac0a11.entry.js +0 -1
- package/dist/cobalt/p-cd28aa6d.entry.js +0 -1
- package/dist/cobalt/p-d3a1a604.entry.js +0 -1
- package/dist/cobalt/p-d71b800a.entry.js +0 -1
- package/dist/cobalt/p-df752f6e.entry.js +0 -1
- package/dist/cobalt/p-ec9dd3a3.entry.js +0 -1
- package/dist/cobalt/p-eeed80ac.entry.js +0 -1
- package/dist/cobalt/p-f0a98453.entry.js +0 -1
- package/dist/cobalt/p-ff581807.entry.js +0 -1
- package/dist/cobalt/p-fffeb610.entry.js +0 -1
- package/dist/cobalt/p-tPYikBRJ.js +0 -1
- package/dist/components/p-9aNhJfTT.js +0 -1
- package/dist/components/p-B0b9Etx4.js +0 -1
- package/dist/components/p-B7Yv00g9.js +0 -1
- package/dist/components/p-BTa6ss5i.js +0 -1
- package/dist/components/p-BtpRnpaF.js +0 -1
- package/dist/components/p-Bzg5FPSA.js +0 -1
- package/dist/components/p-C1DCLOEl.js +0 -1
- package/dist/components/p-C2mZ7x_Y.js +0 -1
- package/dist/components/p-CQ-8domm.js +0 -1
- package/dist/components/p-CVeEoHr7.js +0 -1
- package/dist/components/p-CYi6V_Ss.js +0 -1
- package/dist/components/p-CmCsm4L-.js +0 -1
- package/dist/components/p-CuQjKAf5.js +0 -1
- package/dist/components/p-CyYF8IJE.js +0 -1
- package/dist/components/p-DKvTqEaf.js +0 -1
- package/dist/components/p-DwwxS5bY.js +0 -1
- package/dist/esm/co-calendar-month.entry.js +0 -379
- package/dist/esm/co-skeleton.entry.js +0 -24
|
@@ -22,7 +22,7 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
22
22
|
font-family: var(--co-font-family-primary);
|
|
23
23
|
transform: translateY(8px) scale(0.98);
|
|
24
24
|
opacity: 0;
|
|
25
|
-
transition: transform
|
|
25
|
+
transition: transform var(--co-motion-duration-fast) var(--co-motion-ease-out), opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
26
26
|
margin-top: -15vh;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -120,7 +120,7 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
120
120
|
cursor: pointer;
|
|
121
121
|
padding: 0;
|
|
122
122
|
line-height: 1;
|
|
123
|
-
transition: background
|
|
123
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
.co-command-search__facet-chip-remove:hover {
|
|
@@ -134,10 +134,20 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
134
134
|
gap: var(--co-spacing-sm);
|
|
135
135
|
padding: var(--co-spacing-md); /* even breathing room from the input divider + bottom border */
|
|
136
136
|
overflow-x: auto;
|
|
137
|
+
/* overflow-x:auto alone promotes overflow-y from `visible` to `auto` (CSS spec):
|
|
138
|
+
the horizontal scrollbar then eats a few px of height and triggers a spurious
|
|
139
|
+
VERTICAL scrollbar. Pin overflow-y:hidden so only the horizontal axis scrolls. */
|
|
140
|
+
overflow-y: hidden;
|
|
141
|
+
/* This row's scroll affordance is the left fade + sticky "Más" chip, not a
|
|
142
|
+
scrollbar — hide the native chrome (robust across OS "always show scrollbars"). */
|
|
143
|
+
scrollbar-width: none; /* Firefox + Chromium ≥121 */
|
|
137
144
|
border-bottom: 1px solid var(--co-semantic-border-default);
|
|
138
145
|
/* Keep the active tab clear of the sticky "Más" chip when scrolled into view. */
|
|
139
146
|
scroll-padding-right: 104px;
|
|
140
147
|
}
|
|
148
|
+
.co-command-search__tabs::-webkit-scrollbar {
|
|
149
|
+
display: none; /* Safari / older WebKit */
|
|
150
|
+
}
|
|
141
151
|
/* Tabs are co-chip components. Keep them from shrinking in the scroll row. */
|
|
142
152
|
.co-command-search__tab {
|
|
143
153
|
flex: 0 0 auto;
|
|
@@ -177,7 +187,7 @@ co-overlay { --co-overlay-bg: rgba(0, 0, 0, 0.16); }
|
|
|
177
187
|
font-family: inherit;
|
|
178
188
|
text-align: center;
|
|
179
189
|
min-width: 0;
|
|
180
|
-
transition: background
|
|
190
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
181
191
|
}
|
|
182
192
|
.co-command-search__fav-card:hover {
|
|
183
193
|
background: var(--co-semantic-surface-hover);
|
|
@@ -70,6 +70,18 @@ export class CoCommandSearch {
|
|
|
70
70
|
if (item)
|
|
71
71
|
this.selectItem(item);
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* Escape a nivel PANEL: el `handleKeyDown` del input solo dispara con el input
|
|
75
|
+
* enfocado, así que al hacer click en una tab/chip/"Más" o mover el foco a la
|
|
76
|
+
* lista de resultados el Escape se perdía (el palette quedaba atrapado hasta
|
|
77
|
+
* completar una acción). El keydown burbujea desde cualquier hijo hasta acá.
|
|
78
|
+
*/
|
|
79
|
+
this.handlePanelKeyDown = (e) => {
|
|
80
|
+
if (e.key === 'Escape') {
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
this.close();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
73
85
|
this.handleOverlayClick = () => {
|
|
74
86
|
this.close();
|
|
75
87
|
};
|
|
@@ -150,20 +162,22 @@ export class CoCommandSearch {
|
|
|
150
162
|
this.close();
|
|
151
163
|
}
|
|
152
164
|
close() {
|
|
165
|
+
if (!this.open)
|
|
166
|
+
return; // idempotente: overlay-click + Escape + input-handler no deben doble-emitir
|
|
153
167
|
this.open = false;
|
|
154
168
|
this.coClose.emit();
|
|
155
169
|
}
|
|
156
170
|
render() {
|
|
157
171
|
const items = this.filteredItems;
|
|
158
172
|
return [
|
|
159
|
-
h("div", { key: '
|
|
160
|
-
h("co-overlay", { key: '
|
|
173
|
+
h("div", { key: '2fa819f611d5e106367baecd8d0d468ef538abb9', class: "co-command-search__trigger", onClick: this.handleTriggerClick }, h("slot", { key: 'ee17e409b1253cc447d9813a458c3b123597caa1', name: "trigger" })),
|
|
174
|
+
h("co-overlay", { key: '57f2be7cc61b9c73d20af7cabe44f27f52da130b', open: this.open, onCoClose: this.handleOverlayClick }, h("div", { key: '8e582bca997ca0b0ed0b77a26a2f5bce17540159', class: { 'co-command-search': true, 'co-command-search--open': this.open }, part: "panel", role: "dialog", "aria-modal": "true", "aria-label": "Command palette", onClick: this.handlePanelClick, onKeyDown: this.handlePanelKeyDown }, h("div", { key: '6252fab9df91285b063186c0814a678c2f91aec9', class: "co-command-search__input-row", part: "input-row" }, h("co-icon", { key: '4ce68141969cd823f3b6d1e286dcd62609244587', name: "magnifying-glass", size: 20 }), this.parsedChips.map((chip, idx) => (h("span", { class: "co-command-search__facet-chip" }, chip.icon && h("co-icon", { name: chip.icon, size: 12 }), h("span", { class: "co-command-search__facet-chip-label" }, chip.label), h("button", { class: "co-command-search__facet-chip-remove", type: "button", "aria-label": `Remove filter ${chip.label}`, onClick: (e) => {
|
|
161
175
|
e.stopPropagation();
|
|
162
176
|
this.coChipRemove.emit(idx);
|
|
163
|
-
} }, h("co-icon", { name: "x", size: 10, weight: "bold" }))))), h("input", { key: '
|
|
177
|
+
} }, h("co-icon", { name: "x", size: 10, weight: "bold" }))))), h("input", { key: '565abed1c59c32ce3336e110cd9da6afadb693b5', class: "co-command-search__input", type: "text", placeholder: this.placeholder, value: this.query, onInput: this.handleInput, onKeyDown: this.handleKeyDown, ref: el => (this.inputEl = el), part: "input", role: "combobox", "aria-expanded": this.open ? 'true' : 'false', "aria-autocomplete": "list" }), this.loading && (h("co-loader", { key: 'f84db9e0b3f9c53d8eae6ab6edb790f189b3e49d', class: "co-command-search__loading", part: "loading", size: "sm" })), h("span", { key: '7f9e3b653c9d52d0438fafbb645506f3a7aa7f2c', class: "co-command-search__shortcut" }, "ESC")), (this.parsedTabs.length > 0 || this.hasMore) && (h("div", { key: 'fd734ad98b004d5e08f601631d6e2c547ef70dca', class: "co-command-search__tabs", part: "tabs", role: "tablist" }, this.parsedTabs.map(tab => {
|
|
164
178
|
const active = tab.value === this.activeTab;
|
|
165
179
|
return (h("co-chip", { class: "co-command-search__tab", role: "tab", "aria-selected": active ? 'true' : 'false', clickable: true, selected: active, variant: active ? 'filled' : 'outlined', color: active ? 'primary' : 'default', iconLeft: tab.icon, label: tab.label, onCoClick: () => this.coTabSelect.emit(active ? '' : tab.value) }));
|
|
166
|
-
}), this.hasMore && (h("co-chip", { key: '
|
|
180
|
+
}), this.hasMore && (h("co-chip", { key: 'f5812a94f9f24df93b34abd9588e43b354d6c5e8', class: "co-command-search__tab co-command-search__tab--more", clickable: true, variant: "outlined", label: this.moreLabel, iconRight: "caret-down", onCoClick: () => this.coMoreTabs.emit() })))), h("div", { key: 'b21f950593d51ecb05ffa7f752cd3b8eebf0ef08', class: "co-command-search__results", part: "results" }, this.parsedFavorites.length > 0 && !this.query && (h("div", { key: '054210475307154dbd369a6468e5bd38a88534a2', class: "co-command-search__fav", part: "favorites" }, h("div", { key: '4cc849cf107af9b94cb9715a7d054f6567e75345', class: "co-command-search__fav-grid" }, this.parsedFavorites.map(fav => (h("button", { class: "co-command-search__fav-card", type: "button", onClick: () => this.coSelect.emit(fav.value) }, h("span", { class: "co-command-search__fav-icon", style: { background: fav.color || 'var(--co-semantic-surface-muted)' } }, h("co-icon", { name: fav.icon || 'circle', size: 26, weight: "fill" })), h("span", { class: "co-command-search__fav-label" }, fav.label))))))), h("co-option-list", { key: 'b48e7eb20f3591e8539211343908fa84ca1ebd1f', ref: (el) => (this.optionListEl = el), items: JSON.stringify(items.map((it) => ({
|
|
167
181
|
_id: it.value, label: it.label, icon: it.icon, description: it.subtitle, group: it.section,
|
|
168
182
|
disabled: it.disabled,
|
|
169
183
|
}))), autoHighlight: true, highlightMatches: true, highlightTerm: this.query, loading: this.loading, emptyMessage: this.emptyMessage, onCoChange: (e) => this.handleListPick(e.detail.item._id) })))),
|
|
@@ -62,8 +62,8 @@ co-data-table {
|
|
|
62
62
|
height: 40px; /* Figma header 40 — altura dura, centrado por flex/vertical-align */
|
|
63
63
|
padding: 0 var(--co-spacing-md);
|
|
64
64
|
background: var(--co-color-base-blanco);
|
|
65
|
-
border-bottom: 1px solid var(--co-
|
|
66
|
-
border-right: 1px solid var(--co-
|
|
65
|
+
border-bottom: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
66
|
+
border-right: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
67
67
|
text-align: left;
|
|
68
68
|
vertical-align: middle;
|
|
69
69
|
font-size: var(--co-font-size-14);
|
|
@@ -108,7 +108,7 @@ co-data-table {
|
|
|
108
108
|
color: var(--co-color-gray-300);
|
|
109
109
|
cursor: pointer;
|
|
110
110
|
opacity: 0;
|
|
111
|
-
transition: opacity
|
|
111
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.co-data-table__pin-icon--active {
|
|
@@ -132,7 +132,7 @@ co-data-table {
|
|
|
132
132
|
color: var(--co-color-gray-300);
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
opacity: 0;
|
|
135
|
-
transition: opacity
|
|
135
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out), color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
.co-data-table__th:hover .co-data-table__filter-icon {
|
|
@@ -164,7 +164,7 @@ co-data-table {
|
|
|
164
164
|
align-items: center;
|
|
165
165
|
flex-shrink: 0;
|
|
166
166
|
color: var(--co-color-gray-400);
|
|
167
|
-
transition: color
|
|
167
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
168
168
|
}
|
|
169
169
|
|
|
170
170
|
.co-data-table__sort-icon--active {
|
|
@@ -232,7 +232,7 @@ co-data-table {
|
|
|
232
232
|
pointer-events: none;
|
|
233
233
|
opacity: 0;
|
|
234
234
|
background: linear-gradient(to right, var(--co-color-opacity-negro-8), transparent);
|
|
235
|
-
transition: opacity
|
|
235
|
+
transition: opacity var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
/* ─── RESIZE HANDLE ─────────────────────────────────────────── */
|
|
@@ -259,7 +259,7 @@ co-data-table {
|
|
|
259
259
|
/* ─── BODY ──────────────────────────────────────────────────── */
|
|
260
260
|
.co-data-table__row {
|
|
261
261
|
height: 48px;
|
|
262
|
-
transition: background-color
|
|
262
|
+
transition: background-color var(--co-motion-duration-fast) var(--co-motion-ease-out); /* Browser-native rendering optimization: skips layout/paint
|
|
263
263
|
for rows outside the viewport. No JS virtual scrolling needed,
|
|
264
264
|
no VDOM conflicts. Supported in Chrome/Edge 85+. */
|
|
265
265
|
content-visibility: auto;
|
|
@@ -287,8 +287,8 @@ co-data-table {
|
|
|
287
287
|
height: 48px;
|
|
288
288
|
padding: 0 var(--co-spacing-md);
|
|
289
289
|
background: inherit;
|
|
290
|
-
border-bottom: 1px solid var(--co-
|
|
291
|
-
border-right: 1px solid var(--co-
|
|
290
|
+
border-bottom: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
291
|
+
border-right: 1px solid color-mix(in srgb, var(--co-semantic-border-default) 75%, transparent);
|
|
292
292
|
vertical-align: middle;
|
|
293
293
|
font-size: var(--co-font-size-12);
|
|
294
294
|
font-weight: var(--co-font-weight-medium); /* Figma Btn4/Medium para contenido de celda */
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
text-align: center;
|
|
58
58
|
padding: 0 var(--co-spacing-xs);
|
|
59
59
|
outline: none;
|
|
60
|
-
transition: border-color
|
|
60
|
+
transition: border-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.co-pagination__jump-input:focus {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
cursor: pointer;
|
|
77
77
|
padding: var(--co-spacing-xs) var(--co-spacing-sm);
|
|
78
78
|
border-radius: var(--co-border-radius-xxs);
|
|
79
|
-
transition: background-color
|
|
79
|
+
transition: background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
.co-pagination__page-size-trigger:hover {
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
color: var(--co-semantic-text-default);
|
|
113
113
|
text-align: left;
|
|
114
114
|
cursor: pointer;
|
|
115
|
-
transition: background-color
|
|
115
|
+
transition: background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
.co-pagination__page-size-option:hover {
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
font-size: var(--co-font-size-12);
|
|
144
144
|
color: var(--co-semantic-text-default);
|
|
145
145
|
cursor: pointer;
|
|
146
|
-
transition: background-color
|
|
146
|
+
transition: background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
147
147
|
white-space: nowrap;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
font-size: var(--co-font-size-12);
|
|
170
170
|
color: var(--co-semantic-text-secondary);
|
|
171
171
|
cursor: pointer;
|
|
172
|
-
transition: background-color
|
|
172
|
+
transition: background-color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.co-pagination__page-btn:hover {
|
|
@@ -84,17 +84,17 @@ export class CoDataTablePagination {
|
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
86
|
const pages = this.getVisiblePages();
|
|
87
|
-
return (h("div", { key: '
|
|
87
|
+
return (h("div", { key: 'ccf2b514ca05bb56014a2adf60cc5b4a55e8c60c', class: "co-pagination", part: "pagination" }, h("div", { key: '49649c806450bf111bb7b2e26d004ac3c0b20373', class: "co-pagination__section" }, h("span", { key: '8419a89097e4e6a89777b346de6627da9331d0f6', class: "co-pagination__label" }, this.jumpToPageLabel), h("input", { key: '315b8a1675fe6d7f3fca8fe0f1992bcbca9325a0', type: "text", class: "co-pagination__jump-input", value: this.jumpToValue || String(this.page), onInput: (e) => {
|
|
88
88
|
this.jumpToValue = e.target.value;
|
|
89
89
|
}, onKeyDown: (e) => this.handleJumpToPage(e), onFocus: (e) => {
|
|
90
90
|
e.target.select();
|
|
91
|
-
}, part: "jump-input" })), h("div", { key: '
|
|
91
|
+
}, part: "jump-input" })), h("div", { key: 'a97c699d390734902220805bec64420deeb4fd6a', class: "co-pagination__section co-pagination__section--page-size" }, h("div", { key: 'fcd095371ce699102ce8c66787918c065481e35d', class: "co-pagination__page-size-trigger", onClick: () => { this.showPageSizeDropdown = !this.showPageSizeDropdown; } }, h("span", { key: '1ba988e2bd9c457feefa8af4cd76b0bded02fd12', class: "co-pagination__page-size-value" }, this.pageSize), h("span", { key: '51d5d3917d817c9752433a729427550a38750e56', class: "co-pagination__label" }, this.perPageLabel), h("co-icon", { key: '093883ae845b9f813337d296711c42ba130323a7', name: "caret-down", size: 14 })), this.showPageSizeDropdown && (h("div", { key: 'bbab8ec16c6abbd6f311bcbaafa1b9409f3c8a0f', class: "co-pagination__page-size-dropdown", part: "dropdown" }, this.parsedPageSizes.map(size => (h("button", { class: {
|
|
92
92
|
'co-pagination__page-size-option': true,
|
|
93
93
|
'co-pagination__page-size-option--active': size === this.pageSize,
|
|
94
|
-
}, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '
|
|
94
|
+
}, onClick: () => this.changePageSize(size) }, size)))))), h("div", { key: '970ec69d86943f9a2ce03427ca046767c853761d', class: "co-pagination__spacer" }), h("div", { key: 'd3b9ac58040df59daf1cb8848237ad8ed2b05604', class: "co-pagination__section" }, h("span", { key: '6c28ef609f8f3da05791e5b8ff56d84164984def', class: "co-pagination__count" }, this.totalCount.toLocaleString(), " ", this.recordsLabel)), h("div", { key: '5a0d8770c82e23e93d3a5101111e65842af027d9', class: "co-pagination__section co-pagination__nav" }, h("button", { key: '2bea97c046df6ee0d2a7d7de80762659eb2bf9b0', class: "co-pagination__nav-btn", disabled: this.page <= 1, onClick: () => this.goToPage(this.page - 1), part: "prev-btn" }, this.previousLabel), pages.map(p => p === '...' ? (h("span", { class: "co-pagination__ellipsis" }, "\u2026")) : (h("button", { class: {
|
|
95
95
|
'co-pagination__page-btn': true,
|
|
96
96
|
'co-pagination__page-btn--active': p === this.page,
|
|
97
|
-
}, onClick: () => this.goToPage(p) }, p))), h("button", { key: '
|
|
97
|
+
}, onClick: () => this.goToPage(p) }, p))), h("button", { key: '0e432cb2ec4ff54997a0297ddd864bfe050c01a0', class: "co-pagination__nav-btn", disabled: this.page >= this.totalPages, onClick: () => this.goToPage(this.page + 1), part: "next-btn" }, this.nextLabel))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "co-data-table-pagination"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
background: var(--co-semantic-surface-page);
|
|
58
58
|
border: 1px solid var(--co-semantic-border-field);
|
|
59
59
|
border-radius: var(--co-border-radius-xs);
|
|
60
|
-
transition: border-color
|
|
60
|
+
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);
|
|
61
61
|
min-height: 40px;
|
|
62
62
|
box-sizing: border-box;
|
|
63
63
|
overflow: hidden;
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
background: transparent;
|
|
117
117
|
cursor: pointer;
|
|
118
118
|
color: var(--co-semantic-text-muted);
|
|
119
|
-
transition: color
|
|
119
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
.co-date-field__clear--hidden {
|
|
@@ -162,20 +162,20 @@ export class CoDateField {
|
|
|
162
162
|
// should still fall back to the localized default placeholder.
|
|
163
163
|
const placeholder = this.placeholder || t.setDate;
|
|
164
164
|
const helper = this.isInvalid ? this.errorMessage : this.helperText;
|
|
165
|
-
return (h("div", { key: '
|
|
165
|
+
return (h("div", { key: '58824a62494004dc20539095b0dc4b0abd672429', class: {
|
|
166
166
|
'co-date-field': true,
|
|
167
167
|
'co-date-field--disabled': this.disabled,
|
|
168
168
|
'co-date-field--focused': this.hasFocus,
|
|
169
169
|
'co-date-field--filled': this.hasValue,
|
|
170
170
|
'co-date-field--invalid': this.isInvalid,
|
|
171
171
|
[`co-date-field--${this.size}`]: true,
|
|
172
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
172
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '35cbbc4dfcce22b17758b9585762bc7fe01463d1', class: "co-date-field__labels" }, h("label", { key: '172c4d990dc882b9fa6010287fdda46664473c5c', class: "co-date-field__label", part: "label" }, this.label, h(RequiredMark, { key: 'a2145c6218cf73a6ef8f248279eb3c468562d709', required: this.required })))), h("div", { key: '86b90e9a67887cbd164ec85822c2c9650cd4c6d6', class: "co-date-field__field-row" }, h("div", { key: '6ce335d82253cc3ae10d97ee76c7b7d19386fb41', class: "co-date-field__field", part: "field" }, h("co-icon", { key: '93c3e62fba825f40062d6f4113802314c51fbc04', name: "calendar", size: 16, class: "co-date-field__icon" }), h("div", { key: 'c9b227f14857a568ee2197590257313e805ef58d', class: "co-date-field__input-wrapper" }, h("input", { key: 'f756ae8a58864fb31bb707e65548e4c58c7cf217', ref: (el) => (this.inputEl = el), class: "co-date-field__native", type: "text", inputMode: "numeric", autocomplete: "off", value: this.draft, placeholder: placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? t.dateLabel : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, part: "input" })), this.clearable && (h("button", { key: '2e2c361974484bb390d9d6f80b55f03857ffe568', class: {
|
|
173
173
|
'co-date-field__clear': true,
|
|
174
174
|
'co-date-field__clear--hidden': !showClear,
|
|
175
|
-
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: '
|
|
175
|
+
}, type: "button", tabIndex: -1, onMouseDown: (e) => e.preventDefault() /* keep input focus */, onClick: this.handleClear, "aria-label": (_a = this.clearLabel) !== null && _a !== void 0 ? _a : t.clearDate, part: "clear" }, h("co-icon", { key: 'c1c29a37857c1c2d6894da49bb32d243cc2cf8dd', name: "x-circle", size: 16, weight: "fill" }))))), this.name && h("input", { key: 'a0b4b27a1101a2993f488b88f072e681e4d6ef0c', type: "hidden", name: this.name, value: (_b = this.value) !== null && _b !== void 0 ? _b : '' }), helper && (h("div", { key: 'eae215d0d4c99c6105fd72c8ee6704f8a1c8444f', class: {
|
|
176
176
|
'co-date-field__helper': true,
|
|
177
177
|
'co-date-field__helper--error': this.isInvalid,
|
|
178
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
178
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'afc623261826da8d6e94c866808b6eff58da1a44', name: "warning-circle", size: 14, class: "co-date-field__helper-icon" })), h("span", { key: '20e477abb5f1069673f2b65100aa3b6c40b85a6b', class: "co-date-field__helper-text" }, helper)))));
|
|
179
179
|
}
|
|
180
180
|
static get is() { return "co-date-field"; }
|
|
181
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -33,7 +33,7 @@ export class CoDateRange {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return (h("co-date-range-picker", { key: '
|
|
36
|
+
return (h("co-date-range-picker", { key: '4c6ae7f2b043b03a896c94411ffb8dcd6b375ffc', value: this.value, label: this.label, placeholder: this.placeholder, disabled: this.disabled, clearable: this.clearable, presets: this.presets, helperText: this.helperText, locale: this.locale, applyLabel: this.applyLabel, clearLabel: this.clearLabel, onCoApply: this.handleApply, onCoClear: () => this.coClear.emit() }));
|
|
37
37
|
}
|
|
38
38
|
static get is() { return "co-date-range"; }
|
|
39
39
|
static get encapsulation() { return "shadow"; }
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
cursor: pointer;
|
|
47
47
|
color: var(--co-semantic-text-default);
|
|
48
48
|
box-sizing: border-box;
|
|
49
|
-
transition: border-color
|
|
49
|
+
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);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/* ── Variant: flat (no border/background — reads as content) ──────────
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
font-family: inherit;
|
|
168
168
|
color: var(--co-semantic-text-default);
|
|
169
169
|
cursor: pointer;
|
|
170
|
-
transition: background
|
|
170
|
+
transition: background var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
171
171
|
}
|
|
172
172
|
.co-date-range-picker__preset:hover {
|
|
173
173
|
background: var(--co-semantic-surface-hover);
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/* ============================================================
|
|
2
|
+
co-date-time-picker — the field box mirrors co-date-field /
|
|
3
|
+
co-input (same Text Field anatomy) so a datetime field is
|
|
4
|
+
visually identical to every other form control. The panel is
|
|
5
|
+
the co-calendar grid + a Google-style scrollable hour list.
|
|
6
|
+
============================================================ */
|
|
7
|
+
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
font-family: var(--co-font-family-primary);
|
|
11
|
+
font-size: var(--co-font-size-14);
|
|
12
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
13
|
+
line-height: 1;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.co-date-time-picker {
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
gap: var(--co-spacing-sm2);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/* ---- Label (mirrors co-date-field/co-input) ---- */
|
|
23
|
+
.co-date-time-picker__label {
|
|
24
|
+
padding: 0 var(--co-spacing-xs);
|
|
25
|
+
color: var(--co-semantic-text-secondary);
|
|
26
|
+
font-size: var(--co-font-size-14);
|
|
27
|
+
font-weight: 400;
|
|
28
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
29
|
+
line-height: 1;
|
|
30
|
+
white-space: nowrap;
|
|
31
|
+
cursor: default;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/*
|
|
35
|
+
* co-popover's :host defaults to inline-block (sized to content) — right for
|
|
36
|
+
* button triggers, wrong for a full-width field. This descendant selector
|
|
37
|
+
* (0,1,1) outranks co-popover's own :host rule (0,1,0). We do NOT use
|
|
38
|
+
* match-width (that would stretch the panel to the field width).
|
|
39
|
+
*/
|
|
40
|
+
.co-date-time-picker co-popover {
|
|
41
|
+
display: block;
|
|
42
|
+
width: 100%;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.co-date-time-picker__trigger {
|
|
46
|
+
display: block;
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* ---- Field box ---- */
|
|
51
|
+
.co-date-time-picker__field {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: var(--co-spacing-sm2);
|
|
55
|
+
padding: var(--co-spacing-sm2) var(--co-spacing-md);
|
|
56
|
+
background: var(--co-semantic-surface-page);
|
|
57
|
+
border: 1px solid var(--co-semantic-border-field);
|
|
58
|
+
border-radius: var(--co-border-radius-xs);
|
|
59
|
+
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);
|
|
60
|
+
min-height: 40px;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
overflow: hidden;
|
|
63
|
+
min-width: 0;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Size variants (mirror co-input/co-date-field: s 28 / sm 32 / md 40 / lg 48) */
|
|
67
|
+
.co-date-time-picker__field--s { min-height: 28px; padding: var(--co-spacing-xxs) var(--co-spacing-sm); }
|
|
68
|
+
.co-date-time-picker__field--sm { min-height: 32px; padding: var(--co-spacing-xs) var(--co-spacing-sm); }
|
|
69
|
+
.co-date-time-picker__field--lg { min-height: 48px; padding: var(--co-spacing-sm) var(--co-spacing-lg); }
|
|
70
|
+
|
|
71
|
+
/* ── Variant: flat (no border/background — reads as content) ──
|
|
72
|
+
Declared BEFORE the state rules below: same specificity (0,2,0), so the
|
|
73
|
+
focused/invalid/disabled treatments still win on source order. */
|
|
74
|
+
:host([variant='flat']) .co-date-time-picker__field {
|
|
75
|
+
background: transparent;
|
|
76
|
+
border-color: transparent;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.co-date-time-picker__icon {
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
color: var(--co-semantic-text-muted);
|
|
82
|
+
display: flex;
|
|
83
|
+
align-items: center;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* The value itself is the trigger: a real button (keyboard-operable), styled
|
|
87
|
+
as plain text inside the field box. */
|
|
88
|
+
.co-date-time-picker__display {
|
|
89
|
+
flex: 1;
|
|
90
|
+
min-width: 0;
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
min-height: 22px;
|
|
94
|
+
padding: 0;
|
|
95
|
+
margin: 0;
|
|
96
|
+
border: none;
|
|
97
|
+
background: transparent;
|
|
98
|
+
font-family: inherit;
|
|
99
|
+
font-size: inherit;
|
|
100
|
+
font-weight: 400;
|
|
101
|
+
letter-spacing: inherit;
|
|
102
|
+
line-height: 1;
|
|
103
|
+
color: var(--co-semantic-text-default);
|
|
104
|
+
text-align: left;
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
/* The focus ring is drawn on the field box (:focus-within), like co-input. */
|
|
107
|
+
outline: none;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* Truncation: the formatted instant can outgrow a narrow column. */
|
|
111
|
+
.co-date-time-picker__text,
|
|
112
|
+
.co-date-time-picker__placeholder {
|
|
113
|
+
display: block;
|
|
114
|
+
min-width: 0;
|
|
115
|
+
white-space: nowrap;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.co-date-time-picker__placeholder {
|
|
121
|
+
color: var(--co-semantic-text-muted);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/* ---- Clear button ---- */
|
|
125
|
+
.co-date-time-picker__clear {
|
|
126
|
+
flex-shrink: 0;
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
width: 16px;
|
|
131
|
+
padding: 0;
|
|
132
|
+
margin: 0;
|
|
133
|
+
border: none;
|
|
134
|
+
background: transparent;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
color: var(--co-semantic-text-muted);
|
|
137
|
+
transition: color var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.co-date-time-picker__clear--hidden {
|
|
141
|
+
visibility: hidden;
|
|
142
|
+
pointer-events: none;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.co-date-time-picker__clear:hover {
|
|
146
|
+
color: var(--co-semantic-text-default);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* ---- States ---- */
|
|
150
|
+
.co-date-time-picker__field:focus-within {
|
|
151
|
+
border-color: var(--co-semantic-border-focus);
|
|
152
|
+
box-shadow: 0 0 0 2px var(--co-semantic-border-focus-ring);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.co-date-time-picker__field--disabled {
|
|
156
|
+
background: var(--co-semantic-surface-disabled);
|
|
157
|
+
border-color: transparent;
|
|
158
|
+
cursor: not-allowed;
|
|
159
|
+
/* Clicks must not reach co-popover's trigger box. */
|
|
160
|
+
pointer-events: none;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.co-date-time-picker__field--disabled .co-date-time-picker__display,
|
|
164
|
+
.co-date-time-picker__field--disabled .co-date-time-picker__placeholder,
|
|
165
|
+
.co-date-time-picker__field--disabled .co-date-time-picker__icon {
|
|
166
|
+
color: var(--co-semantic-text-disabled);
|
|
167
|
+
cursor: not-allowed;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.co-date-time-picker__field--readonly .co-date-time-picker__display {
|
|
171
|
+
cursor: default;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.co-date-time-picker__field--invalid {
|
|
175
|
+
border-color: var(--co-semantic-status-error);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.co-date-time-picker__field--invalid:focus-within {
|
|
179
|
+
border-color: var(--co-semantic-status-error);
|
|
180
|
+
box-shadow: 0 0 0 2px rgba(170, 46, 27, 0.12);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* ---- Helper text ---- */
|
|
184
|
+
.co-date-time-picker__helper {
|
|
185
|
+
display: flex;
|
|
186
|
+
align-items: center;
|
|
187
|
+
gap: var(--co-spacing-xs);
|
|
188
|
+
padding: 0 var(--co-spacing-xs);
|
|
189
|
+
color: var(--co-semantic-text-muted);
|
|
190
|
+
font-size: var(--co-font-size-14);
|
|
191
|
+
font-weight: 400;
|
|
192
|
+
letter-spacing: var(--co-font-letter-spacing-body);
|
|
193
|
+
line-height: 1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.co-date-time-picker__helper--error {
|
|
197
|
+
color: var(--co-semantic-status-error);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* ============================================================
|
|
201
|
+
Panel: calendar | hour list
|
|
202
|
+
============================================================ */
|
|
203
|
+
.co-date-time-picker__panel {
|
|
204
|
+
display: flex;
|
|
205
|
+
align-items: stretch;
|
|
206
|
+
gap: var(--co-spacing-md);
|
|
207
|
+
padding: var(--co-spacing-md);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.co-date-time-picker__calendar {
|
|
211
|
+
flex: 0 0 auto;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.co-date-time-picker__times {
|
|
215
|
+
position: relative; /* offsetTop anchor for the open-scroll */
|
|
216
|
+
flex: 0 0 auto;
|
|
217
|
+
width: 7.5rem;
|
|
218
|
+
max-height: 17.5rem;
|
|
219
|
+
overflow-y: auto;
|
|
220
|
+
overscroll-behavior: contain;
|
|
221
|
+
padding-left: var(--co-spacing-sm2);
|
|
222
|
+
border-left: 1px solid var(--co-semantic-border-default);
|
|
223
|
+
outline: none;
|
|
224
|
+
box-sizing: border-box;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.co-date-time-picker__times:focus-visible {
|
|
228
|
+
outline: 2px solid var(--co-semantic-border-focus);
|
|
229
|
+
outline-offset: 1px;
|
|
230
|
+
border-radius: var(--co-border-radius-xxs);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.co-date-time-picker__time {
|
|
234
|
+
padding: var(--co-spacing-sm) var(--co-spacing-sm2);
|
|
235
|
+
border-radius: var(--co-border-radius-xxs);
|
|
236
|
+
color: var(--co-semantic-text-default);
|
|
237
|
+
font-size: var(--co-font-size-14);
|
|
238
|
+
line-height: 1;
|
|
239
|
+
white-space: nowrap;
|
|
240
|
+
cursor: pointer;
|
|
241
|
+
user-select: none;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.co-date-time-picker__time:hover:not(.co-date-time-picker__time--selected) {
|
|
245
|
+
background: var(--co-semantic-surface-hover);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/* Keyboard cursor — distinct from the committed selection. */
|
|
249
|
+
.co-date-time-picker__time--active:not(.co-date-time-picker__time--selected) {
|
|
250
|
+
box-shadow: inset 0 0 0 1px var(--co-semantic-border-focus);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* SELECTED — solid fill + inverse text, same treatment as co-calendar's day. */
|
|
254
|
+
.co-date-time-picker__time--selected {
|
|
255
|
+
background: var(--co-semantic-surface-primary);
|
|
256
|
+
color: var(--co-semantic-on-primary);
|
|
257
|
+
font-weight: 600;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/* ---- Mobile bottom sheet: calendar on top, hours below ---- */
|
|
261
|
+
.co-date-time-picker__sheet {
|
|
262
|
+
display: flex;
|
|
263
|
+
justify-content: center;
|
|
264
|
+
padding: var(--co-spacing-sm) 0 var(--co-spacing-lg);
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
.co-date-time-picker__panel--touch {
|
|
268
|
+
flex-direction: column;
|
|
269
|
+
align-items: center;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.co-date-time-picker__panel--touch .co-date-time-picker__times {
|
|
273
|
+
width: 100%;
|
|
274
|
+
max-width: 20rem;
|
|
275
|
+
max-height: 12rem;
|
|
276
|
+
padding-left: 0;
|
|
277
|
+
padding-top: var(--co-spacing-sm2);
|
|
278
|
+
border-left: none;
|
|
279
|
+
border-top: 1px solid var(--co-semantic-border-default);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.co-date-time-picker__panel--touch .co-date-time-picker__time {
|
|
283
|
+
min-height: 44px;
|
|
284
|
+
display: flex;
|
|
285
|
+
align-items: center;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* ── Horizontal layout: label left; control + helper stacked right ──
|
|
289
|
+
Set --co-field-label-width on a container to align labels across fields. */
|
|
290
|
+
:host([layout='horizontal']) .co-date-time-picker {
|
|
291
|
+
display: grid;
|
|
292
|
+
grid-template-columns: var(--co-field-label-width, max-content) 1fr;
|
|
293
|
+
align-items: start;
|
|
294
|
+
column-gap: var(--co-spacing-md);
|
|
295
|
+
row-gap: var(--co-spacing-sm2);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:host([layout='horizontal']) .co-date-time-picker__label {
|
|
299
|
+
grid-column: 1;
|
|
300
|
+
grid-row: 1;
|
|
301
|
+
padding-top: var(--co-spacing-sm2);
|
|
302
|
+
min-width: 0;
|
|
303
|
+
white-space: normal;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
:host([layout='horizontal']) .co-date-time-picker > :not(.co-date-time-picker__label) {
|
|
307
|
+
grid-column: 2;
|
|
308
|
+
min-width: 0;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.co-field-required {
|
|
312
|
+
margin-left: 2px;
|
|
313
|
+
color: var(--co-color-status-error);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.co-field-required__caption {
|
|
317
|
+
margin-left: 4px;
|
|
318
|
+
color: var(--co-semantic-text-muted);
|
|
319
|
+
font-size: var(--co-font-size-12);
|
|
320
|
+
font-weight: 400;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.co-field-required__caption::before {
|
|
324
|
+
content: var(--co-field-required-text, ' (required)');
|
|
325
|
+
}
|