@prolibu-suite/cobalt-core 0.6.0 → 0.8.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 +7924 -3799
- package/dist/cjs/co-accordion.cjs.entry.js +1 -1
- package/dist/cjs/co-action-bar.cjs.entry.js +89 -0
- package/dist/cjs/co-app-shell.cjs.entry.js +3 -3
- package/dist/cjs/co-audio-player.cjs.entry.js +279 -0
- package/dist/cjs/co-autocomplete.cjs.entry.js +3 -3
- package/dist/cjs/co-avatar-group.cjs.entry.js +3 -3
- package/dist/cjs/{co-tooltip.cjs.entry.js → co-avatar_2.cjs.entry.js} +96 -4
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +4 -4
- 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 +12 -12
- package/dist/cjs/co-card.cjs.entry.js +3 -3
- package/dist/cjs/co-carousel-item.cjs.entry.js +17 -0
- package/dist/cjs/co-carousel.cjs.entry.js +368 -0
- package/dist/cjs/co-checkbox-group.cjs.entry.js +1 -1
- package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +96 -7
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-combobox.cjs.entry.js +3 -3
- package/dist/cjs/co-command-search.cjs.entry.js +1 -1
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +5 -5
- package/dist/cjs/co-data-table.cjs.entry.js +2 -2
- package/dist/cjs/co-date-picker.cjs.entry.js +12 -5
- package/dist/cjs/co-date-range-picker.cjs.entry.js +11 -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 +2 -2
- 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 +21 -6
- 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 +2 -2
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +9 -3
- package/dist/cjs/co-json-field.cjs.entry.js +6 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +34 -7
- package/dist/cjs/co-list-footer.cjs.entry.js +2 -2
- package/dist/cjs/co-list-item.cjs.entry.js +5 -5
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +3 -3
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +72 -0
- package/dist/cjs/co-radio-group.cjs.entry.js +1 -1
- package/dist/cjs/co-radio.cjs.entry.js +4 -4
- package/dist/cjs/co-rating.cjs.entry.js +4 -4
- package/dist/cjs/co-ref-field.cjs.entry.js +16 -6
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +22 -7
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +37 -5
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +36 -6
- 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 +13 -7
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +13 -3
- package/dist/cjs/co-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/co-slider.cjs.entry.js +3 -3
- package/dist/cjs/co-switch.cjs.entry.js +5 -5
- package/dist/cjs/co-tab-group.cjs.entry.js +20 -4
- package/dist/cjs/co-tab.cjs.entry.js +3 -3
- package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
- package/dist/cjs/co-textarea.cjs.entry.js +13 -7
- package/dist/cjs/co-toast.cjs.entry.js +1 -1
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +3 -3
- package/dist/cjs/co-transfer-list.cjs.entry.js +1 -1
- package/dist/cjs/co-video.cjs.entry.js +3 -3
- 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-D8YJCyQF.js → fieldChip-B_npd9rL.js} +1 -1
- package/dist/cjs/{index-4y1Dm145.js → index-DFZ5YhIT.js} +171 -11
- package/dist/cjs/{index-DxEFsH_t.js → index-kBiXCEE7.js} +41 -21
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{positioning-DwHW399W.js → positioning-DCj_AJ2T.js} +10 -0
- package/dist/cjs/{requiredMark-B3pKyqYI.js → requiredMark-DuMIcKtt.js} +1 -1
- package/dist/cjs/{richTextI18n-B7ktXg3M.js → richTextI18n-B28uAhh4.js} +3 -0
- package/dist/cjs/time-LBHtzLHe.js +42 -0
- package/dist/cjs/{toolbar-config-3PlT-3zm.js → toolbar-config-BQfWTW6P.js} +2 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-075eed3d.entry.js → p-00830b8c.entry.js} +1 -1
- package/dist/cobalt/{p-cc0a4617.entry.js → p-0769eee9.entry.js} +1 -1
- package/dist/cobalt/p-0f18c4d2.entry.js +1 -0
- package/dist/cobalt/{p-5c3101b5.entry.js → p-0fc1edca.entry.js} +1 -1
- package/dist/cobalt/p-15852fec.entry.js +1 -0
- package/dist/cobalt/p-195c67ee.entry.js +1 -0
- package/dist/cobalt/{p-B6JZk8fL.js → p-1EK-COrb.js} +1 -1
- package/dist/cobalt/{p-d9608046.entry.js → p-1e9c9d46.entry.js} +1 -1
- package/dist/cobalt/{p-02c5a9a9.entry.js → p-202eadfc.entry.js} +1 -1
- package/dist/cobalt/{p-b4bed98b.entry.js → p-20bd3702.entry.js} +1 -1
- package/dist/cobalt/p-25f59046.entry.js +1 -0
- package/dist/cobalt/{p-809015dd.entry.js → p-260196cb.entry.js} +1 -1
- package/dist/cobalt/{p-771bc8fe.entry.js → p-27dce0ac.entry.js} +1 -1
- package/dist/cobalt/p-2bf44b2b.entry.js +1 -0
- package/dist/cobalt/{p-3f06d373.entry.js → p-2c100914.entry.js} +1 -1
- package/dist/cobalt/p-2e1d930f.entry.js +1 -0
- package/dist/cobalt/{p-47a2dd67.entry.js → p-35518aee.entry.js} +1 -1
- package/dist/cobalt/{p-c3462def.entry.js → p-38ae8bff.entry.js} +1 -1
- package/dist/cobalt/p-38cf47b6.entry.js +1 -0
- package/dist/cobalt/p-39dea0c0.entry.js +1 -0
- package/dist/cobalt/p-3a746267.entry.js +1 -0
- package/dist/cobalt/{p-9c6ca902.entry.js → p-3ae69426.entry.js} +1 -1
- package/dist/cobalt/{p-8dfb6886.entry.js → p-3af74ab8.entry.js} +1 -1
- package/dist/cobalt/{p-9a587867.entry.js → p-3d4e697e.entry.js} +1 -1
- package/dist/cobalt/{p-1681ce1d.entry.js → p-445acc4c.entry.js} +1 -1
- package/dist/cobalt/p-48fbf051.entry.js +1 -0
- package/dist/cobalt/p-4de9232a.entry.js +1 -0
- package/dist/cobalt/{p-fd27c2bd.entry.js → p-50bbfad8.entry.js} +1 -1
- package/dist/cobalt/{p-85eed52c.entry.js → p-51a1ad38.entry.js} +1 -1
- package/dist/cobalt/{p-1726ce07.entry.js → p-523aca9f.entry.js} +1 -1
- package/dist/cobalt/p-52af222b.entry.js +1 -0
- package/dist/cobalt/{p-81cfd951.entry.js → p-5319ac3f.entry.js} +1 -1
- package/dist/cobalt/{p-ba66584f.entry.js → p-53a276a8.entry.js} +1 -1
- package/dist/cobalt/{p-f0de4415.entry.js → p-543cc00d.entry.js} +1 -1
- package/dist/cobalt/{p-a9afbaa6.entry.js → p-59f7d44b.entry.js} +1 -1
- package/dist/cobalt/{p-e420d5c9.entry.js → p-5b984323.entry.js} +1 -1
- package/dist/cobalt/{p-e710b9ea.entry.js → p-5bfaca70.entry.js} +1 -1
- package/dist/cobalt/p-5c1328ff.entry.js +1 -0
- package/dist/cobalt/{p-0d7536a8.entry.js → p-5c250889.entry.js} +1 -1
- package/dist/cobalt/p-5e21ca17.entry.js +1 -0
- package/dist/cobalt/p-61d5ca3c.entry.js +1 -0
- package/dist/cobalt/{p-8e823c15.entry.js → p-6357d9dd.entry.js} +1 -1
- package/dist/cobalt/{p-495c9b99.entry.js → p-69723cc1.entry.js} +1 -1
- package/dist/cobalt/{p-8128e84a.entry.js → p-6985a964.entry.js} +1 -1
- package/dist/cobalt/p-69b8d98e.entry.js +1 -0
- package/dist/cobalt/p-6b089060.entry.js +1 -0
- package/dist/cobalt/{p-627d2d1a.entry.js → p-6b256d01.entry.js} +1 -1
- package/dist/cobalt/{p-c1e53e4c.entry.js → p-7c6b3175.entry.js} +1 -1
- package/dist/cobalt/p-7d077a7c.entry.js +1 -0
- package/dist/cobalt/{p-20ba59a2.entry.js → p-7f4bf341.entry.js} +1 -1
- package/dist/cobalt/p-869c338a.entry.js +1 -0
- package/dist/cobalt/p-890296f9.entry.js +1 -0
- package/dist/cobalt/{p-5c43d30e.entry.js → p-8fe08257.entry.js} +1 -1
- package/dist/cobalt/p-913b2a14.entry.js +1 -0
- package/dist/cobalt/{p-2d1cbd7f.entry.js → p-959556f4.entry.js} +1 -1
- package/dist/cobalt/p-97875bde.entry.js +1 -0
- package/dist/cobalt/p-9824c478.entry.js +1 -0
- package/dist/cobalt/p-99c1ff0f.entry.js +1 -0
- package/dist/cobalt/p-BCEz3S-z.js +2 -0
- package/dist/cobalt/{p-Bgxofdfb.js → p-BL0sCfMH.js} +1 -1
- package/dist/cobalt/p-BMdapAL8.js +1 -0
- package/dist/cobalt/p-BU7SQCje.js +1 -0
- package/dist/cobalt/p-BYKAgwq3.js +1 -0
- package/dist/cobalt/p-C-d15gih.js +1 -0
- package/dist/cobalt/p-CF8OB_TM.js +1 -0
- package/dist/cobalt/p-CnNpoKwg.js +1 -0
- package/dist/cobalt/p-D5gr2ent.js +1 -0
- package/dist/cobalt/p-WeuPA9Rw.js +1 -0
- package/dist/cobalt/{p-fb251497.entry.js → p-a04feb70.entry.js} +1 -1
- package/dist/cobalt/{p-77d01b39.entry.js → p-a252f8c5.entry.js} +1 -1
- package/dist/cobalt/p-a4f39ba2.entry.js +1 -0
- package/dist/cobalt/{p-5e9a9caf.entry.js → p-a7c23027.entry.js} +1 -1
- package/dist/cobalt/p-ab8e150e.entry.js +1 -0
- package/dist/cobalt/{p-6ad1625a.entry.js → p-acdb68a7.entry.js} +1 -1
- package/dist/cobalt/{p-c6fedc59.entry.js → p-afd957c0.entry.js} +1 -1
- package/dist/cobalt/{p-c750b2d2.entry.js → p-b45ea918.entry.js} +1 -1
- package/dist/cobalt/p-bad7ce84.entry.js +1 -0
- package/dist/cobalt/{p-5edd0d3f.entry.js → p-bebacee2.entry.js} +1 -1
- package/dist/cobalt/{p-bb534985.entry.js → p-c237add6.entry.js} +1 -1
- package/dist/cobalt/p-c32949a5.entry.js +1 -0
- package/dist/cobalt/{p-3f68fd2e.entry.js → p-cd5555d2.entry.js} +1 -1
- package/dist/cobalt/p-cd96aabf.entry.js +1 -0
- package/dist/cobalt/{p-b8ec0cc1.entry.js → p-ce961fba.entry.js} +1 -1
- package/dist/cobalt/p-d56b8a1f.entry.js +1 -0
- package/dist/cobalt/p-d6fff135.entry.js +1 -0
- package/dist/cobalt/{p-b1197c08.entry.js → p-d71b87d3.entry.js} +1 -1
- package/dist/cobalt/{p-af4cb263.entry.js → p-d83e5189.entry.js} +1 -1
- package/dist/cobalt/p-dc269096.entry.js +1 -0
- package/dist/cobalt/{p-0d6a562d.entry.js → p-dc8e88f4.entry.js} +1 -1
- package/dist/cobalt/p-de5a05fc.entry.js +1 -0
- package/dist/cobalt/{p-86e60cfa.entry.js → p-df63f23c.entry.js} +1 -1
- package/dist/cobalt/p-e2188319.entry.js +1 -0
- package/dist/cobalt/p-f0c589ad.entry.js +1 -0
- package/dist/cobalt/{p-e9aaeaf7.entry.js → p-f4370423.entry.js} +1 -1
- package/dist/cobalt/p-f4e4bebf.entry.js +1 -0
- package/dist/cobalt/p-f53b9536.entry.js +1 -0
- package/dist/cobalt/{p-373cd08e.entry.js → p-f7ae0228.entry.js} +1 -1
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/co-action-bar/co-action-bar.css +148 -0
- package/dist/collection/components/co-action-bar/co-action-bar.js +247 -0
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.css +58 -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 +1 -1
- package/dist/collection/components/co-avatar/co-avatar.css +23 -0
- package/dist/collection/components/co-avatar/co-avatar.js +24 -1
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +9 -5
- package/dist/collection/components/co-avatar-group/co-avatar-group.js +2 -2
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- 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 +19 -0
- 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.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +52 -3
- 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.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.css +152 -0
- package/dist/collection/components/co-carousel/co-carousel.js +633 -0
- package/dist/collection/components/co-carousel-item/co-carousel-item.css +6 -0
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +25 -0
- package/dist/collection/components/co-checkbox/co-checkbox.css +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +11 -10
- 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 +6 -8
- package/dist/collection/components/co-data-table/co-data-table.css +23 -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.css +6 -7
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-picker/co-date-picker.css +16 -0
- package/dist/collection/components/co-date-picker/co-date-picker.js +28 -1
- 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 +13 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.js +26 -0
- 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 +46 -0
- package/dist/collection/components/co-drawer/co-drawer.js +1 -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-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.css +19 -7
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +342 -39
- package/dist/collection/components/co-event-popover/co-event-popover.css +26 -0
- package/dist/collection/components/co-event-popover/co-event-popover.js +326 -0
- package/dist/collection/components/co-fab/co-fab.css +70 -10
- package/dist/collection/components/co-fab/co-fab.js +39 -4
- package/dist/collection/components/co-file-field/co-file-field.css +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.js +1 -1
- package/dist/collection/components/co-input/co-input.css +13 -1
- package/dist/collection/components/co-input/co-input.js +26 -0
- package/dist/collection/components/co-json-field/co-json-field.css +4 -8
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +12 -1
- package/dist/collection/components/co-lightbox/co-lightbox.js +31 -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-menu-item/co-menu-item.css +21 -0
- package/dist/collection/components/co-menu-item/co-menu-item.js +20 -1
- 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 +1 -1
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +18 -0
- package/dist/collection/components/co-option-list/co-option-list.js +127 -5
- package/dist/collection/components/co-option-list/optionListLogic.js +13 -0
- 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 +2 -2
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- 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-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.js +3 -3
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +17 -1
- package/dist/collection/components/co-ref-field/co-ref-field.js +32 -2
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +32 -3
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +97 -4
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +8 -0
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.js +93 -3
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.css +19 -0
- package/dist/collection/components/co-rich-text-viewer/co-rich-text-viewer.js +53 -4
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +12 -1
- package/dist/collection/components/co-select/co-select.js +30 -4
- 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 +12 -2
- 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.css +32 -4
- package/dist/collection/components/co-tab-group/co-tab-group.js +18 -2
- package/dist/collection/components/co-tags-field/co-tags-field.css +12 -21
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +18 -8
- package/dist/collection/components/co-textarea/co-textarea.js +30 -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-video/co-video.js +2 -2
- package/dist/collection/utils/carouselI18n.js +36 -0
- 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/collection/utils/richTextI18n.js +3 -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.d.ts +11 -0
- package/dist/components/co-carousel-item.js +1 -0
- package/dist/components/co-carousel.d.ts +11 -0
- package/dist/components/co-carousel.js +1 -0
- 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-rich-text-viewer.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-B21rOC2Y.js +1 -0
- package/dist/components/{p-DvL2TcDG.js → p-BC6sxVVr.js} +1 -1
- package/dist/components/{p-Bgxofdfb.js → p-BL0sCfMH.js} +1 -1
- package/dist/components/p-BMdapAL8.js +1 -0
- package/dist/components/p-BQFperIX.js +1 -0
- package/dist/components/{p-Cam92sWP.js → p-BXtiFFM2.js} +1 -1
- package/dist/components/{p-CmCsm4L-.js → p-BdArvV6T.js} +1 -1
- package/dist/components/p-BnkGlFYy.js +1 -0
- package/dist/components/p-C-5cLeKr.js +1 -0
- package/dist/components/p-CDWXNRpo.js +1 -0
- package/dist/components/p-CF8OB_TM.js +1 -0
- package/dist/components/{p-_k-j03K-.js → p-CIWoKlGj.js} +1 -1
- package/dist/components/{p-lus32JrB.js → p-CVCEiwOS.js} +1 -1
- package/dist/components/{p-QWi9AmnD.js → p-CfeNhAHW.js} +1 -1
- package/dist/components/p-Ch837Ggl.js +1 -0
- package/dist/components/p-ChLib-si.js +1 -0
- package/dist/components/p-ChPooamL.js +1 -0
- package/dist/components/p-CnNpoKwg.js +1 -0
- package/dist/components/p-D-3BTFRs.js +1 -0
- package/dist/components/p-D0wrmRH8.js +1 -0
- package/dist/components/p-DZX7cEqP.js +1 -0
- package/dist/components/{p-D4SOCy8I.js → p-DbISGXT_.js} +1 -1
- package/dist/components/p-Dxa7c4Ap.js +1 -0
- package/dist/components/p-T0MdU7sb.js +1 -0
- package/dist/components/p-W8Y8ZuPs.js +1 -0
- package/dist/components/p-WeuPA9Rw.js +1 -0
- package/dist/components/{p-CNIs9j-h.js → p-cteJszd-.js} +1 -1
- package/dist/components/p-e5KibEs8.js +1 -0
- package/dist/components/{p-COb8X_fE.js → p-mUoTCiYa.js} +1 -1
- package/dist/components/p-uZ2D6ESV.js +1 -0
- package/dist/components/p-ySi6UG0O.js +1 -0
- package/dist/esm/co-accordion.entry.js +1 -1
- package/dist/esm/co-action-bar.entry.js +87 -0
- package/dist/esm/co-app-shell.entry.js +3 -3
- package/dist/esm/co-audio-player.entry.js +277 -0
- package/dist/esm/co-autocomplete.entry.js +3 -3
- package/dist/esm/co-avatar-group.entry.js +3 -3
- package/dist/esm/{co-tooltip.entry.js → co-avatar_2.entry.js} +96 -5
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +4 -4
- 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 +12 -12
- package/dist/esm/co-card.entry.js +3 -3
- package/dist/esm/co-carousel-item.entry.js +15 -0
- package/dist/esm/co-carousel.entry.js +366 -0
- package/dist/esm/co-checkbox-group.entry.js +1 -1
- package/dist/esm/co-checkbox.entry.js +5 -5
- package/dist/esm/co-chip_2.entry.js +96 -7
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-column-picker.entry.js +3 -3
- package/dist/esm/co-combobox.entry.js +3 -3
- package/dist/esm/co-command-search.entry.js +1 -1
- package/dist/esm/co-data-table-pagination.entry.js +5 -5
- package/dist/esm/co-data-table.entry.js +2 -2
- package/dist/esm/co-date-picker.entry.js +12 -5
- package/dist/esm/co-date-range-picker.entry.js +11 -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 +2 -2
- 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 +21 -6
- 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 +2 -2
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +9 -3
- package/dist/esm/co-json-field.entry.js +6 -6
- package/dist/esm/co-lightbox.entry.js +34 -7
- package/dist/esm/co-list-footer.entry.js +2 -2
- package/dist/esm/co-list-item.entry.js +5 -5
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +3 -3
- package/dist/esm/co-provider-logo_2.entry.js +69 -0
- package/dist/esm/co-radio-group.entry.js +1 -1
- package/dist/esm/co-radio.entry.js +4 -4
- package/dist/esm/co-rating.entry.js +4 -4
- package/dist/esm/co-ref-field.entry.js +16 -6
- package/dist/esm/co-rich-text-editor.entry.js +22 -7
- package/dist/esm/co-rich-text-toolbar.entry.js +37 -5
- package/dist/esm/co-rich-text-viewer.entry.js +36 -6
- 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 +13 -7
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +13 -3
- package/dist/esm/co-sidebar.entry.js +3 -3
- package/dist/esm/co-slider.entry.js +3 -3
- package/dist/esm/co-switch.entry.js +5 -5
- package/dist/esm/co-tab-group.entry.js +20 -4
- package/dist/esm/co-tab.entry.js +3 -3
- package/dist/esm/co-tags-field.entry.js +9 -9
- package/dist/esm/co-textarea.entry.js +13 -7
- package/dist/esm/co-toast.entry.js +1 -1
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +3 -3
- package/dist/esm/co-transfer-list.entry.js +1 -1
- package/dist/esm/co-video.entry.js +3 -3
- 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-ChXW__C5.js → fieldChip-Bb8YIN0J.js} +1 -1
- package/dist/esm/{index-tT-aZV0-.js → index-BCEz3S-z.js} +41 -21
- package/dist/esm/{index-Cyrxk8Qq.js → index-RuXxdKzC.js} +171 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{positioning-C2mZ7x_Y.js → positioning-BMdapAL8.js} +10 -0
- package/dist/esm/{requiredMark-C7-_2UhB.js → requiredMark-D7kAMXHM.js} +1 -1
- package/dist/esm/{richTextI18n-B-ckjCUA.js → richTextI18n-BYKAgwq3.js} +3 -0
- package/dist/esm/time-CF8OB_TM.js +37 -0
- package/dist/esm/{toolbar-config-ChibIpZv.js → toolbar-config-WeuPA9Rw.js} +2 -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-avatar/co-avatar.d.ts +5 -0
- 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-carousel/co-carousel.d.ts +85 -0
- package/dist/types/components/co-carousel-item/co-carousel-item.d.ts +10 -0
- package/dist/types/components/co-date-picker/co-date-picker.d.ts +7 -0
- package/dist/types/components/co-date-range-picker/co-date-range-picker.d.ts +5 -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-fab/co-fab.d.ts +6 -0
- package/dist/types/components/co-input/co-input.d.ts +5 -0
- package/dist/types/components/co-lightbox/co-lightbox.d.ts +7 -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 +23 -0
- 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 +6 -0
- package/dist/types/components/co-rich-text-editor/co-rich-text-editor.d.ts +17 -0
- package/dist/types/components/co-rich-text-toolbar/co-rich-text-toolbar.d.ts +12 -1
- package/dist/types/components/co-rich-text-viewer/co-rich-text-viewer.d.ts +10 -0
- package/dist/types/components/co-select/co-select.d.ts +5 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -0
- package/dist/types/components/co-textarea/co-textarea.d.ts +5 -0
- package/dist/types/components.d.ts +1632 -103
- package/dist/types/utils/carouselI18n.d.ts +10 -0
- package/dist/types/utils/dateI18n.d.ts +7 -0
- package/dist/types/utils/eventColor.d.ts +20 -0
- package/dist/types/utils/richTextI18n.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cjs/co-avatar.cjs.entry.js +0 -92
- 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-002e5beb.entry.js +0 -1
- package/dist/cobalt/p-0c0621a7.entry.js +0 -1
- package/dist/cobalt/p-13fc9c8a.entry.js +0 -1
- package/dist/cobalt/p-14d4c5c7.entry.js +0 -1
- package/dist/cobalt/p-4a075257.entry.js +0 -1
- package/dist/cobalt/p-5647ca9d.entry.js +0 -1
- package/dist/cobalt/p-5b31d45b.entry.js +0 -1
- package/dist/cobalt/p-6911a034.entry.js +0 -1
- package/dist/cobalt/p-70f70e02.entry.js +0 -1
- package/dist/cobalt/p-73b30ebb.entry.js +0 -1
- package/dist/cobalt/p-75dcaeb0.entry.js +0 -1
- package/dist/cobalt/p-7780ddb5.entry.js +0 -1
- package/dist/cobalt/p-7FZXeBK4.js +0 -1
- package/dist/cobalt/p-86d4e016.entry.js +0 -1
- package/dist/cobalt/p-8a9ed2da.entry.js +0 -1
- package/dist/cobalt/p-8f194753.entry.js +0 -1
- package/dist/cobalt/p-9c873a6a.entry.js +0 -1
- package/dist/cobalt/p-B-ckjCUA.js +0 -1
- package/dist/cobalt/p-BAA4ln31.js +0 -1
- package/dist/cobalt/p-C1DCLOEl.js +0 -1
- package/dist/cobalt/p-C2mZ7x_Y.js +0 -1
- package/dist/cobalt/p-ChibIpZv.js +0 -1
- package/dist/cobalt/p-a6900010.entry.js +0 -1
- package/dist/cobalt/p-aa20ffca.entry.js +0 -1
- package/dist/cobalt/p-ac5df270.entry.js +0 -1
- package/dist/cobalt/p-c0f39ddd.entry.js +0 -1
- package/dist/cobalt/p-c2e2eee9.entry.js +0 -1
- package/dist/cobalt/p-cc8e2f16.entry.js +0 -1
- package/dist/cobalt/p-e1957078.entry.js +0 -1
- package/dist/cobalt/p-e2762263.entry.js +0 -1
- package/dist/cobalt/p-e33853fa.entry.js +0 -1
- package/dist/cobalt/p-e4a539da.entry.js +0 -1
- package/dist/cobalt/p-e7085f08.entry.js +0 -1
- package/dist/cobalt/p-f073b467.entry.js +0 -1
- package/dist/cobalt/p-f36e461f.entry.js +0 -1
- package/dist/cobalt/p-f6ac5301.entry.js +0 -1
- package/dist/cobalt/p-f6b0c4a0.entry.js +0 -1
- package/dist/cobalt/p-f86ccb38.entry.js +0 -1
- package/dist/cobalt/p-tPYikBRJ.js +0 -1
- package/dist/cobalt/p-tT-aZV0-.js +0 -2
- package/dist/components/p-BHqdcGDh.js +0 -1
- package/dist/components/p-BJTMFYax.js +0 -1
- package/dist/components/p-Ba5lW0pA.js +0 -1
- package/dist/components/p-Bsq90mo4.js +0 -1
- package/dist/components/p-C1DCLOEl.js +0 -1
- package/dist/components/p-C2mZ7x_Y.js +0 -1
- package/dist/components/p-ChibIpZv.js +0 -1
- package/dist/components/p-CyYF8IJE.js +0 -1
- package/dist/components/p-D3ts7oo9.js +0 -1
- package/dist/components/p-Dh-h40mY.js +0 -1
- package/dist/components/p-DrQh1Cb8.js +0 -1
- package/dist/components/p-OKwHt2i9.js +0 -1
- package/dist/components/p-Xwo2HQmt.js +0 -1
- package/dist/components/p-eSq2ze8W.js +0 -1
- package/dist/esm/co-avatar.entry.js +0 -90
- package/dist/esm/co-calendar-month.entry.js +0 -379
- package/dist/esm/co-skeleton.entry.js +0 -24
|
@@ -0,0 +1,326 @@
|
|
|
1
|
+
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { computePosition } from "../../utils/positioning";
|
|
3
|
+
/**
|
|
4
|
+
* co-event-popover — anchored detail card (Google-Calendar-style) for a calendar
|
|
5
|
+
* event. Non-modal, dismissible. Anchors to a viewport `anchorRect` (the chip's
|
|
6
|
+
* getBoundingClientRect), promotes to the top-layer (the calendar shell has
|
|
7
|
+
* contain:layout ancestors that re-anchor position:fixed), and closes on Escape /
|
|
8
|
+
* outside-click. Content is slotted by the host (suite-v2 fills the meeting fields).
|
|
9
|
+
*/
|
|
10
|
+
export class CoEventPopover {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.open = false;
|
|
13
|
+
this.placement = 'right-start';
|
|
14
|
+
/** Render the leading color dot. Set false for dot-less content (quick-create). */
|
|
15
|
+
this.dot = true;
|
|
16
|
+
this.closeOnEscape = true;
|
|
17
|
+
this.closeOnClickOutside = true;
|
|
18
|
+
this.position = () => {
|
|
19
|
+
if (!this.open || !this.panelEl || !this.anchorRect)
|
|
20
|
+
return;
|
|
21
|
+
const a = this.anchorRect;
|
|
22
|
+
const triggerRect = {
|
|
23
|
+
top: a.top, left: a.left, right: a.left + a.width, bottom: a.top + a.height,
|
|
24
|
+
width: a.width, height: a.height,
|
|
25
|
+
};
|
|
26
|
+
const panelRect = this.panelEl.getBoundingClientRect();
|
|
27
|
+
const { top, left } = computePosition(triggerRect, panelRect, {
|
|
28
|
+
placement: this.placement, offset: 8, flip: true,
|
|
29
|
+
});
|
|
30
|
+
this.panelEl.style.top = `${top}px`;
|
|
31
|
+
this.panelEl.style.left = `${left}px`;
|
|
32
|
+
};
|
|
33
|
+
// The anchor rect is a point-in-time snapshot: once the page scrolls or resizes
|
|
34
|
+
// it's stale, and a top-layer panel would stay pinned to a chip that has moved
|
|
35
|
+
// (or disappeared). Google Calendar closes the popover in that case — match it.
|
|
36
|
+
this.onScroll = () => {
|
|
37
|
+
if (this.open)
|
|
38
|
+
this.requestClose();
|
|
39
|
+
};
|
|
40
|
+
this.onKeydown = (e) => {
|
|
41
|
+
if (!this.open)
|
|
42
|
+
return;
|
|
43
|
+
if (this.closeOnEscape && e.key === 'Escape') {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
this.requestClose();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.onPointerDown = (e) => {
|
|
49
|
+
if (!this.open || !this.closeOnClickOutside || !this.panelEl)
|
|
50
|
+
return;
|
|
51
|
+
const path = e.composedPath();
|
|
52
|
+
if (path.includes(this.panelEl) || path.includes(this.el))
|
|
53
|
+
return;
|
|
54
|
+
this.requestClose();
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
componentDidLoad() {
|
|
58
|
+
// Stencil no dispara @Watch para el valor inicial (gotcha conocido del DS).
|
|
59
|
+
if (this.open)
|
|
60
|
+
this.onOpenChange(true);
|
|
61
|
+
}
|
|
62
|
+
onOpenChange(v) {
|
|
63
|
+
var _a;
|
|
64
|
+
if (v) {
|
|
65
|
+
this.prevFocus = (_a = document.activeElement) !== null && _a !== void 0 ? _a : undefined;
|
|
66
|
+
requestAnimationFrame(() => this.promoteAndPosition());
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.dismissPanel();
|
|
70
|
+
if (this.prevFocus)
|
|
71
|
+
this.prevFocus.focus();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
onAnchorChange() {
|
|
75
|
+
if (this.open)
|
|
76
|
+
this.position();
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
this.teardownListeners();
|
|
80
|
+
}
|
|
81
|
+
promoteAndPosition() {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
if (!this.open || !this.panelEl)
|
|
84
|
+
return;
|
|
85
|
+
// Promote to the top-layer so contain:layout ancestors don't re-anchor us.
|
|
86
|
+
try {
|
|
87
|
+
(_b = (_a = this.panelEl).showPopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
88
|
+
}
|
|
89
|
+
catch ( /* already shown */_c) { /* already shown */ }
|
|
90
|
+
this.position();
|
|
91
|
+
// Dialog-pattern focus: focus the panel itself (tabIndex=-1). Slotted actions
|
|
92
|
+
// live in light DOM and co-icon-button is shadow — querySelector here can't
|
|
93
|
+
// reach them; Tab from the panel lands on the first slotted action naturally.
|
|
94
|
+
this.panelEl.focus();
|
|
95
|
+
window.addEventListener('resize', this.onScroll);
|
|
96
|
+
window.addEventListener('scroll', this.onScroll, true);
|
|
97
|
+
window.addEventListener('keydown', this.onKeydown, true);
|
|
98
|
+
window.addEventListener('pointerdown', this.onPointerDown, true);
|
|
99
|
+
}
|
|
100
|
+
dismissPanel() {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
try {
|
|
103
|
+
(_b = (_a = this.panelEl) === null || _a === void 0 ? void 0 : _a.hidePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
104
|
+
}
|
|
105
|
+
catch ( /* noop */_c) { /* noop */ }
|
|
106
|
+
this.teardownListeners();
|
|
107
|
+
}
|
|
108
|
+
teardownListeners() {
|
|
109
|
+
window.removeEventListener('resize', this.onScroll);
|
|
110
|
+
window.removeEventListener('scroll', this.onScroll, true);
|
|
111
|
+
window.removeEventListener('keydown', this.onKeydown, true);
|
|
112
|
+
window.removeEventListener('pointerdown', this.onPointerDown, true);
|
|
113
|
+
}
|
|
114
|
+
requestClose() {
|
|
115
|
+
this.coClose.emit();
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
return (h(Host, { key: 'ac4fad8add6f42cd02cd516f32e0820f1bc7b1c6' }, h("div", { key: 'bd0f4d1adb5d21d329ec5b6dd06c08ef13e86cf4', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, h("div", { key: '22599ea7ff5fdc39c38b0546ecc6869f6a6e0036', class: "pop__actions", part: "actions" }, h("slot", { key: 'fd9fd75cce78007b7407be5e7a0ef54f49ce2dcc', name: "actions" })), h("div", { key: '16b5af287977fbab204b69cc94e1591c5db963fb', class: "pop__head" }, this.dot && h("span", { key: '6bb8f39ef10c5a81ee461557e42837f43cd44c20', class: "pop__dot", style: this.color ? { background: this.color } : {} }), h("div", { key: '0dcd02e0da924f914015ada88388ddc1d9732447', class: "pop__body", part: "body" }, h("slot", { key: 'b00ade5c89b5a1e908e9cb463c6b461720609121' }))))));
|
|
119
|
+
}
|
|
120
|
+
static get is() { return "co-event-popover"; }
|
|
121
|
+
static get encapsulation() { return "shadow"; }
|
|
122
|
+
static get originalStyleUrls() {
|
|
123
|
+
return {
|
|
124
|
+
"$": ["co-event-popover.css"]
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
static get styleUrls() {
|
|
128
|
+
return {
|
|
129
|
+
"$": ["co-event-popover.css"]
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
static get properties() {
|
|
133
|
+
return {
|
|
134
|
+
"open": {
|
|
135
|
+
"type": "boolean",
|
|
136
|
+
"mutable": true,
|
|
137
|
+
"complexType": {
|
|
138
|
+
"original": "boolean",
|
|
139
|
+
"resolved": "boolean",
|
|
140
|
+
"references": {}
|
|
141
|
+
},
|
|
142
|
+
"required": false,
|
|
143
|
+
"optional": false,
|
|
144
|
+
"docs": {
|
|
145
|
+
"tags": [],
|
|
146
|
+
"text": ""
|
|
147
|
+
},
|
|
148
|
+
"getter": false,
|
|
149
|
+
"setter": false,
|
|
150
|
+
"reflect": true,
|
|
151
|
+
"attribute": "open",
|
|
152
|
+
"defaultValue": "false"
|
|
153
|
+
},
|
|
154
|
+
"anchorRect": {
|
|
155
|
+
"type": "unknown",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "{ top: number; left: number; width: number; height: number }",
|
|
159
|
+
"resolved": "undefined | { top: number; left: number; width: number; height: number; }",
|
|
160
|
+
"references": {}
|
|
161
|
+
},
|
|
162
|
+
"required": false,
|
|
163
|
+
"optional": true,
|
|
164
|
+
"docs": {
|
|
165
|
+
"tags": [],
|
|
166
|
+
"text": "Anchor rect in viewport coords (chip.getBoundingClientRect())."
|
|
167
|
+
},
|
|
168
|
+
"getter": false,
|
|
169
|
+
"setter": false
|
|
170
|
+
},
|
|
171
|
+
"placement": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"mutable": false,
|
|
174
|
+
"complexType": {
|
|
175
|
+
"original": "Placement",
|
|
176
|
+
"resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
|
|
177
|
+
"references": {
|
|
178
|
+
"Placement": {
|
|
179
|
+
"location": "import",
|
|
180
|
+
"path": "../../utils/positioning",
|
|
181
|
+
"id": "src/utils/positioning.ts::Placement",
|
|
182
|
+
"referenceLocation": "Placement"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": ""
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"reflect": false,
|
|
195
|
+
"attribute": "placement",
|
|
196
|
+
"defaultValue": "'right-start'"
|
|
197
|
+
},
|
|
198
|
+
"color": {
|
|
199
|
+
"type": "string",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "string",
|
|
203
|
+
"resolved": "string | undefined",
|
|
204
|
+
"references": {}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": true,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Accent color for the leading dot (event color)."
|
|
211
|
+
},
|
|
212
|
+
"getter": false,
|
|
213
|
+
"setter": false,
|
|
214
|
+
"reflect": false,
|
|
215
|
+
"attribute": "color"
|
|
216
|
+
},
|
|
217
|
+
"dot": {
|
|
218
|
+
"type": "boolean",
|
|
219
|
+
"mutable": false,
|
|
220
|
+
"complexType": {
|
|
221
|
+
"original": "boolean",
|
|
222
|
+
"resolved": "boolean",
|
|
223
|
+
"references": {}
|
|
224
|
+
},
|
|
225
|
+
"required": false,
|
|
226
|
+
"optional": false,
|
|
227
|
+
"docs": {
|
|
228
|
+
"tags": [],
|
|
229
|
+
"text": "Render the leading color dot. Set false for dot-less content (quick-create)."
|
|
230
|
+
},
|
|
231
|
+
"getter": false,
|
|
232
|
+
"setter": false,
|
|
233
|
+
"reflect": false,
|
|
234
|
+
"attribute": "dot",
|
|
235
|
+
"defaultValue": "true"
|
|
236
|
+
},
|
|
237
|
+
"closeOnEscape": {
|
|
238
|
+
"type": "boolean",
|
|
239
|
+
"mutable": false,
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "boolean",
|
|
242
|
+
"resolved": "boolean",
|
|
243
|
+
"references": {}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": false,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": ""
|
|
250
|
+
},
|
|
251
|
+
"getter": false,
|
|
252
|
+
"setter": false,
|
|
253
|
+
"reflect": false,
|
|
254
|
+
"attribute": "close-on-escape",
|
|
255
|
+
"defaultValue": "true"
|
|
256
|
+
},
|
|
257
|
+
"closeOnClickOutside": {
|
|
258
|
+
"type": "boolean",
|
|
259
|
+
"mutable": false,
|
|
260
|
+
"complexType": {
|
|
261
|
+
"original": "boolean",
|
|
262
|
+
"resolved": "boolean",
|
|
263
|
+
"references": {}
|
|
264
|
+
},
|
|
265
|
+
"required": false,
|
|
266
|
+
"optional": false,
|
|
267
|
+
"docs": {
|
|
268
|
+
"tags": [],
|
|
269
|
+
"text": ""
|
|
270
|
+
},
|
|
271
|
+
"getter": false,
|
|
272
|
+
"setter": false,
|
|
273
|
+
"reflect": false,
|
|
274
|
+
"attribute": "close-on-click-outside",
|
|
275
|
+
"defaultValue": "true"
|
|
276
|
+
},
|
|
277
|
+
"popoverLabel": {
|
|
278
|
+
"type": "string",
|
|
279
|
+
"mutable": false,
|
|
280
|
+
"complexType": {
|
|
281
|
+
"original": "string",
|
|
282
|
+
"resolved": "string | undefined",
|
|
283
|
+
"references": {}
|
|
284
|
+
},
|
|
285
|
+
"required": false,
|
|
286
|
+
"optional": true,
|
|
287
|
+
"docs": {
|
|
288
|
+
"tags": [],
|
|
289
|
+
"text": "Accessible name for the panel (role=\"dialog\" needs one)."
|
|
290
|
+
},
|
|
291
|
+
"getter": false,
|
|
292
|
+
"setter": false,
|
|
293
|
+
"reflect": false,
|
|
294
|
+
"attribute": "popover-label"
|
|
295
|
+
}
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
static get events() {
|
|
299
|
+
return [{
|
|
300
|
+
"method": "coClose",
|
|
301
|
+
"name": "coClose",
|
|
302
|
+
"bubbles": false,
|
|
303
|
+
"cancelable": true,
|
|
304
|
+
"composed": true,
|
|
305
|
+
"docs": {
|
|
306
|
+
"tags": [],
|
|
307
|
+
"text": ""
|
|
308
|
+
},
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "void",
|
|
311
|
+
"resolved": "void",
|
|
312
|
+
"references": {}
|
|
313
|
+
}
|
|
314
|
+
}];
|
|
315
|
+
}
|
|
316
|
+
static get elementRef() { return "el"; }
|
|
317
|
+
static get watchers() {
|
|
318
|
+
return [{
|
|
319
|
+
"propName": "open",
|
|
320
|
+
"methodName": "onOpenChange"
|
|
321
|
+
}, {
|
|
322
|
+
"propName": "anchorRect",
|
|
323
|
+
"methodName": "onAnchorChange"
|
|
324
|
+
}];
|
|
325
|
+
}
|
|
326
|
+
}
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
/* ── Sizes ──────────────────────────────────────────────────── */
|
|
26
|
-
.co-fab--xl { width: 64px; height: 64px; font-size: var(--co-font-size-16); } /* Figma FAB */
|
|
27
|
-
.co-fab--l { width: 56px; height: 56px; font-size: var(--co-font-size-16); }
|
|
28
|
-
.co-fab--m { width: 48px; height: 48px; font-size: var(--co-font-size-14); }
|
|
29
|
-
.co-fab--s { width: 40px; height: 40px; font-size: var(--co-font-size-14); }
|
|
26
|
+
.co-fab--xl { --co-fab-size: 64px; width: 64px; height: 64px; font-size: var(--co-font-size-16); } /* Figma FAB */
|
|
27
|
+
.co-fab--l { --co-fab-size: 56px; width: 56px; height: 56px; font-size: var(--co-font-size-16); }
|
|
28
|
+
.co-fab--m { --co-fab-size: 48px; width: 48px; height: 48px; font-size: var(--co-font-size-14); }
|
|
29
|
+
.co-fab--s { --co-fab-size: 40px; width: 40px; height: 40px; font-size: var(--co-font-size-14); }
|
|
30
30
|
|
|
31
31
|
.co-fab--extended {
|
|
32
32
|
width: auto;
|
|
@@ -38,15 +38,75 @@
|
|
|
38
38
|
.co-fab--extended.co-fab--m { padding: 0 var(--co-spacing-lg); }
|
|
39
39
|
.co-fab--extended.co-fab--s { padding: 0 var(--co-spacing-md); }
|
|
40
40
|
|
|
41
|
+
/* ── Hover-expand ("liquid" morph) ──────────────────────────── */
|
|
42
|
+
/* Círculo en reposo → pill con rebote en hover/focus-visible. El ancho
|
|
43
|
+
expandido debe ser EXPLÍCITO (width:auto no anima; max-width/0fr clampean
|
|
44
|
+
y matan el overshoot): el componente mide el label y setea --co-fab-label-w
|
|
45
|
+
en pointerenter/focusin. El padding horizontal = (size − icon)/2 deja el
|
|
46
|
+
icono centrado en reposo con justify-content:flex-start, así no salta al
|
|
47
|
+
expandir. border-radius-full ya hace pill a cualquier ancho. */
|
|
48
|
+
.co-fab--hover-expand {
|
|
49
|
+
justify-content: flex-start;
|
|
50
|
+
overflow: hidden;
|
|
51
|
+
/* Colapso rápido y SIN rebote — el spring vive solo en el estado expandido. */
|
|
52
|
+
transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.15s ease,
|
|
53
|
+
box-shadow 0.15s ease, transform 0.1s ease;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.co-fab--hover-expand.co-fab--xl { padding: 0 20px; }
|
|
57
|
+
.co-fab--hover-expand.co-fab--l { padding: 0 16px; }
|
|
58
|
+
.co-fab--hover-expand.co-fab--m { padding: 0 14px; }
|
|
59
|
+
.co-fab--hover-expand.co-fab--s { padding: 0 11px; }
|
|
60
|
+
|
|
61
|
+
.co-fab--hover-expand:hover:not(:disabled),
|
|
62
|
+
.co-fab--hover-expand:focus-visible {
|
|
63
|
+
width: calc(var(--co-fab-size) + var(--co-spacing-sm2) + var(--co-fab-label-w, 0px));
|
|
64
|
+
transition: width 0.38s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s ease,
|
|
65
|
+
box-shadow 0.15s ease, transform 0.1s ease;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.co-fab--hover-expand co-icon {
|
|
69
|
+
flex-shrink: 0;
|
|
70
|
+
transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.co-fab--hover-expand:hover:not(:disabled) co-icon,
|
|
74
|
+
.co-fab--hover-expand:focus-visible co-icon {
|
|
75
|
+
/* 90° acompaña el estiramiento y el + sigue siendo un + (45° = ✕ de cerrar). */
|
|
76
|
+
transform: rotate(90deg);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/* El label vive siempre en el flow (flex-shrink:0 + nowrap del .co-fab) y el
|
|
80
|
+
overflow:hidden lo clipea en reposo — así offsetWidth mide el ancho real y
|
|
81
|
+
el texto se REVELA sin reflow por frame durante la animación. */
|
|
82
|
+
.co-fab--hover-expand .co-fab__label {
|
|
83
|
+
flex-shrink: 0;
|
|
84
|
+
opacity: 0;
|
|
85
|
+
transform: translateX(-6px);
|
|
86
|
+
transition: opacity 0.12s ease, transform 0.12s ease;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.co-fab--hover-expand:hover:not(:disabled) .co-fab__label,
|
|
90
|
+
.co-fab--hover-expand:focus-visible .co-fab__label {
|
|
91
|
+
opacity: 1;
|
|
92
|
+
transform: translateX(0);
|
|
93
|
+
transition: opacity 0.2s ease 0.1s, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@media (prefers-reduced-motion: reduce) {
|
|
97
|
+
.co-fab--hover-expand,
|
|
98
|
+
.co-fab--hover-expand co-icon,
|
|
99
|
+
.co-fab--hover-expand .co-fab__label {
|
|
100
|
+
transition: none;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
41
104
|
/* ── Variants ───────────────────────────────────────────────── */
|
|
42
105
|
.co-fab--primary {
|
|
43
|
-
/*
|
|
44
|
-
.co-fab
|
|
45
|
-
|
|
46
|
-
background: var(--co-fab-bg, var(--co-color-opacity-negro-80, rgba(31, 28, 27, 0.8)));
|
|
106
|
+
/* Negro sólido (pedido design 2026-07-22 — antes Negro 80% + blur, se veía
|
|
107
|
+
gris sobre fondos claros). --co-fab-bg sigue disponible como override. */
|
|
108
|
+
background: var(--co-fab-bg, var(--co-color-base-negro, #1f1c1b));
|
|
47
109
|
color: var(--co-semantic-on-primary);
|
|
48
|
-
-webkit-backdrop-filter: blur(40px);
|
|
49
|
-
backdrop-filter: blur(40px);
|
|
50
110
|
}
|
|
51
111
|
|
|
52
112
|
.co-fab--primary:hover:not(:disabled) {
|
|
@@ -7,22 +7,36 @@ export class CoFab {
|
|
|
7
7
|
this.disabled = false;
|
|
8
8
|
/** Fixed position on screen */
|
|
9
9
|
this.position = 'none';
|
|
10
|
+
/** With `label`: icon-only circle at rest that stretches into the extended
|
|
11
|
+
* pill on hover/focus-visible (springy "liquid" morph). */
|
|
12
|
+
this.expandOnHover = false;
|
|
10
13
|
this.handleClick = () => {
|
|
11
14
|
if (!this.disabled)
|
|
12
15
|
this.coClick.emit();
|
|
13
16
|
};
|
|
17
|
+
/* width:auto no anima — el CSS necesita el ancho expandido explícito. Se mide
|
|
18
|
+
el label (nowrap + flex-shrink:0 → offsetWidth = ancho completo aunque esté
|
|
19
|
+
clipeado) en cada entrada de hover/foco: barato y siempre fresco aunque la
|
|
20
|
+
fuente web cargue después del primer render. */
|
|
21
|
+
this.handleExpandMeasure = () => {
|
|
22
|
+
if (!this.expandOnHover || !this.labelEl)
|
|
23
|
+
return;
|
|
24
|
+
this.el.style.setProperty('--co-fab-label-w', `${this.labelEl.offsetWidth}px`);
|
|
25
|
+
};
|
|
14
26
|
}
|
|
15
27
|
render() {
|
|
16
28
|
const iconSize = this.size === 'xl' ? 24 : this.size === 'l' ? 24 : this.size === 's' ? 18 : 20;
|
|
17
|
-
const
|
|
18
|
-
|
|
29
|
+
const hasLabel = !!this.label;
|
|
30
|
+
const hoverExpand = hasLabel && this.expandOnHover;
|
|
31
|
+
return (h("button", { key: 'ffedc2aea8b7b813b8e646872f4a0814589f80ab', class: {
|
|
19
32
|
'co-fab': true,
|
|
20
33
|
[`co-fab--${this.variant}`]: true,
|
|
21
34
|
[`co-fab--${this.size}`]: true,
|
|
22
|
-
'co-fab--extended':
|
|
35
|
+
'co-fab--extended': hasLabel && !this.expandOnHover,
|
|
36
|
+
'co-fab--hover-expand': hoverExpand,
|
|
23
37
|
'co-fab--disabled': this.disabled,
|
|
24
38
|
[`co-fab--${this.position}`]: this.position !== 'none',
|
|
25
|
-
}, type: "button", disabled: this.disabled, onClick: this.handleClick, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: '
|
|
39
|
+
}, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, h("co-icon", { key: '34242af8b8de622400507b106e566b8214f53534', name: this.icon, size: iconSize }), this.label && (h("span", { key: '56cd6e22505608ebf909a1c0356ecba5c0bae418', class: "co-fab__label", ref: (el) => (this.labelEl = el) }, this.label))));
|
|
26
40
|
}
|
|
27
41
|
static get is() { return "co-fab"; }
|
|
28
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -175,6 +189,26 @@ export class CoFab {
|
|
|
175
189
|
"reflect": false,
|
|
176
190
|
"attribute": "position",
|
|
177
191
|
"defaultValue": "'none'"
|
|
192
|
+
},
|
|
193
|
+
"expandOnHover": {
|
|
194
|
+
"type": "boolean",
|
|
195
|
+
"mutable": false,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "boolean",
|
|
198
|
+
"resolved": "boolean",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": "With `label`: icon-only circle at rest that stretches into the extended\npill on hover/focus-visible (springy \"liquid\" morph)."
|
|
206
|
+
},
|
|
207
|
+
"getter": false,
|
|
208
|
+
"setter": false,
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"attribute": "expand-on-hover",
|
|
211
|
+
"defaultValue": "false"
|
|
178
212
|
}
|
|
179
213
|
};
|
|
180
214
|
}
|
|
@@ -196,4 +230,5 @@ export class CoFab {
|
|
|
196
230
|
}
|
|
197
231
|
}];
|
|
198
232
|
}
|
|
233
|
+
static get elementRef() { return "el"; }
|
|
199
234
|
}
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
background: color-mix(in srgb, var(--co-semantic-surface-hover) 55%, transparent);
|
|
62
62
|
-webkit-backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
63
63
|
backdrop-filter: blur(var(--co-glass-blur)) saturate(var(--co-glass-saturate));
|
|
64
|
-
border: 1px dashed var(--co-semantic-border-
|
|
64
|
+
border: 1px dashed var(--co-semantic-border-field);
|
|
65
65
|
border-radius: var(--co-border-radius-sm);
|
|
66
66
|
cursor: pointer;
|
|
67
67
|
text-align: center;
|
|
@@ -286,7 +286,7 @@
|
|
|
286
286
|
inset: 0;
|
|
287
287
|
width: 40%;
|
|
288
288
|
border-radius: var(--co-border-radius-full);
|
|
289
|
-
background: var(--co-semantic-
|
|
289
|
+
background: var(--co-semantic-status-info);
|
|
290
290
|
transition: width 0.2s ease;
|
|
291
291
|
}
|
|
292
292
|
|
|
@@ -341,12 +341,12 @@ export class CoFileField {
|
|
|
341
341
|
const previews = items.filter((it) => isImage(it) && !this.failedPreviews.has(this.keyFor(it)));
|
|
342
342
|
const canReorder = this.reorderable && this.multiple && !this.disabled && !this.readonly && items.length > 1;
|
|
343
343
|
const capacity = this.capacityHint(s);
|
|
344
|
-
return (h("div", { key: '
|
|
344
|
+
return (h("div", { key: 'd69adf5472c920d9fda750d390c8d66495c7d912', class: {
|
|
345
345
|
'co-file-field': true,
|
|
346
346
|
'co-file-field--disabled': this.disabled,
|
|
347
347
|
'co-file-field--invalid': this.isInvalid,
|
|
348
348
|
[statusClass]: !!statusClass,
|
|
349
|
-
}, part: "wrapper" }, this.label && (h("div", { key: '
|
|
349
|
+
}, part: "wrapper" }, this.label && (h("div", { key: '3e084a96b7fbd714fa07aeeea09146c3782af2b0', class: "co-file-field__labels" }, h("label", { key: '6618041eec9358983794238014f49ae8ad724d79', class: "co-file-field__label", part: "label" }, this.label, h(RequiredMark, { key: '16aa21951eedafb190180ee40c1cba13230ef128', required: this.required })))), showDropzone && (h("div", { key: '33bfe60be00c270fe9861f0250ffe6e4ddcf820b', class: {
|
|
350
350
|
'co-file-field__dropzone': true,
|
|
351
351
|
'co-file-field__dropzone--drag': this.dragOver,
|
|
352
352
|
}, part: "dropzone", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleBrowse, onKeyDown: (e) => {
|
|
@@ -354,7 +354,7 @@ export class CoFileField {
|
|
|
354
354
|
e.preventDefault();
|
|
355
355
|
this.handleBrowse();
|
|
356
356
|
}
|
|
357
|
-
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: '
|
|
357
|
+
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, h("button", { key: '219538469e33b0e5e2a1e26e1591d2b578b548ef', class: "co-file-field__upload-btn", part: "upload-button", type: "button", tabIndex: -1 }, h("co-icon", { key: '5021d06fe31100f7b4c6028a868b707aeb3df0c8', name: "file-arrow-up", size: 18 }), h("span", { key: 'ba785ab9e8cd6173f367ebf0a4320a37fa4b0832' }, this.uploadButtonText || s.uploadButton)), h("span", { key: '1fae290aace7b669b27cd53529ea30c36e009805', class: "co-file-field__dropzone-text" }, this.dropText || s.dropHint), capacity && h("span", { key: '999ac1eda129973f4b8710bd252337786e4eb99c', class: "co-file-field__dropzone-hint" }, capacity), h("div", { key: 'd2ce4783e5eba96fdf59e998f37411ef0f418458', class: "co-file-field__actions", part: "actions" }, h("slot", { key: '55e22bcaff045708471a2837d1c0345d53a0a748', name: "actions" })), h("input", { key: '773880ce9b881512d03eac3be0465942c6376843', ref: (el) => (this.inputEl = el), class: "co-file-field__input", type: "file", multiple: this.multiple, accept: this.inputAccept, disabled: this.disabled, onChange: this.handleInputChange, "aria-hidden": "true", tabIndex: -1 }))), items.length > 0 && (h("div", { key: '57164ac1e53062957a99ef182394ae9da7636c3e', class: "co-file-field__uploaded" }, this.multiple && (h("div", { key: '91894d7e208c62e0aa9407812bbaf7ad491ca275', class: "co-file-field__uploaded-title", part: "uploaded-title" }, `${this.uploadedTitle || s.uploadedTitle} (${items.length})`)), previews.length > 0 && (h("div", { key: 'c7f74b97051085770677b6433adb7b54fcf4405d', class: "co-file-field__previews", part: "previews" }, previews.map((item) => (h("button", { class: "co-file-field__preview", part: "preview", type: "button", key: `prev-${this.keyFor(item)}`, title: item.name, "aria-label": s.openPreview, onClick: () => this.handlePreviewOpen(item) }, h("img", { src: item.thumbnail || item.url, alt: item.name, loading: "lazy", onError: () => this.handlePreviewError(item) })))))), h("ul", { key: '4c55ead3dcdff97d502c2f41af86d372712ba478', class: "co-file-field__list", part: "list" }, items.map((item) => {
|
|
358
358
|
const key = this.keyFor(item);
|
|
359
359
|
const draggable = canReorder && item.status === 'done';
|
|
360
360
|
return (h("li", { class: {
|
|
@@ -375,10 +375,10 @@ export class CoFileField {
|
|
|
375
375
|
'co-file-field__action': true,
|
|
376
376
|
'co-file-field__action--copied': this.copiedKey === key,
|
|
377
377
|
}, type: "button", tabIndex: -1, title: this.copiedKey === key ? s.copied : s.copyUrl, "aria-label": s.copyUrl, onClick: () => this.handleCopy(item) }, h("co-icon", { name: this.copiedKey === key ? 'check' : 'copy', size: 18 }))), !this.disabled && !this.readonly && (h("button", { class: "co-file-field__action", type: "button", tabIndex: -1, title: s.removeFile, "aria-label": s.removeFile, onClick: () => this.coRemove.emit(key) }, h("co-icon", { name: "trash", size: 18 })))));
|
|
378
|
-
})))), helper && (h("div", { key: '
|
|
378
|
+
})))), helper && (h("div", { key: 'ba03c24a5c7e6e0c774b68af85f60ec2fc4a2f0e', class: {
|
|
379
379
|
'co-file-field__helper': true,
|
|
380
380
|
'co-file-field__helper--error': this.isInvalid,
|
|
381
|
-
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: '
|
|
381
|
+
}, part: "helper" }, this.isInvalid && (h("co-icon", { key: 'ed936a52670f30b4626a1339ce7e6a246bdb65dd', name: "warning-circle", size: 14, class: "co-file-field__helper-icon" })), h("span", { key: '295f5de6a6dda88246441816f636cce156aefbe8', class: "co-file-field__helper-text" }, helper)))));
|
|
382
382
|
}
|
|
383
383
|
static get is() { return "co-file-field"; }
|
|
384
384
|
static get encapsulation() { return "shadow"; }
|
|
@@ -54,7 +54,7 @@ export class CoFileTypeTile {
|
|
|
54
54
|
const iconSize = Math.round(this.size * 0.5);
|
|
55
55
|
const background = this.colorTags ? meta.tint : 'var(--co-color-gray-100)';
|
|
56
56
|
const color = this.colorTags ? meta.accent : 'var(--co-color-gray-600)';
|
|
57
|
-
return (h("span", { key: '
|
|
57
|
+
return (h("span", { key: '5eb049a7b3503d2bc82245403da53bdd7fab0ee5', class: {
|
|
58
58
|
'co-file-type-tile': true,
|
|
59
59
|
[`co-file-type-tile--${type}`]: true,
|
|
60
60
|
'co-file-type-tile--mono': !this.colorTags,
|
|
@@ -64,7 +64,7 @@ export class CoFileTypeTile {
|
|
|
64
64
|
borderRadius: `${this.radius}px`,
|
|
65
65
|
background,
|
|
66
66
|
color,
|
|
67
|
-
} }, h("co-icon", { key: '
|
|
67
|
+
} }, h("co-icon", { key: 'ebb6d9ea5ffc35daefab825ad26519cb42ce2293', name: meta.icon, size: iconSize, weight: "fill" })));
|
|
68
68
|
}
|
|
69
69
|
static get is() { return "co-file-type-tile"; }
|
|
70
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,10 +15,10 @@ export class CoHelperText {
|
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h("div", { key: '
|
|
18
|
+
return (h("div", { key: 'e0e318d1f4c3a9f524d11d3a9ad648960d26bb7f', class: {
|
|
19
19
|
'co-helper-text': true,
|
|
20
20
|
[`co-helper-text--${this.status}`]: true,
|
|
21
|
-
}, part: "helper-text" }, h("co-icon", { key: '
|
|
21
|
+
}, part: "helper-text" }, h("co-icon", { key: 'a65678c3cf9a832ffde08f4f47e09974338745ff', name: this.STATUS_ICON[this.status], size: 14, weight: "fill", class: "co-helper-text__icon" }), h("span", { key: 'c3667f4f4b6e53748d5a90ab2fe12e3fcb9cdb2a', class: "co-helper-text__message" }, h("slot", { key: 'f854e37b266feee82a4b6281070d3ed84555f13c' }, this.message))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "co-helper-text"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,12 +31,12 @@ export class CoIcon {
|
|
|
31
31
|
this.svgContent = await loadSvg(this.name, this.weight);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: '3d1fa57953812f68ff8a972f85aaf0d3f7b3ea9e', "aria-hidden": "true", style: {
|
|
35
35
|
display: 'inline-flex',
|
|
36
36
|
width: `${this.size}px`,
|
|
37
37
|
height: `${this.size}px`,
|
|
38
38
|
flexShrink: '0',
|
|
39
|
-
} }, h("span", { key: '
|
|
39
|
+
} }, h("span", { key: '07413295bbb15dcbacfaaca47e7a25d28744c71e', part: "svg", innerHTML: this.svgContent })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "co-icon"; }
|
|
42
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -41,7 +41,7 @@ export class CoIconButton {
|
|
|
41
41
|
: 'var(--co-border-radius-full)',
|
|
42
42
|
}
|
|
43
43
|
: undefined;
|
|
44
|
-
return (h("button", { key: '
|
|
44
|
+
return (h("button", { key: '380bc110b581dba4f897ba8c8b733598c9e4f9ca', class: {
|
|
45
45
|
'co-icon-button': true,
|
|
46
46
|
[`co-icon-button--${this.variant}`]: true,
|
|
47
47
|
[`co-icon-button--${this.shape}`]: true,
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
/* Figma Text Field: fondo sólido de página + borde Negro 25% (los campos
|
|
89
89
|
tenues negro-8 + glass no leen como editables sobre el drawer blanco). */
|
|
90
90
|
background: var(--co-semantic-surface-page);
|
|
91
|
-
border: 1px solid var(--co-
|
|
91
|
+
border: 1px solid var(--co-semantic-border-field);
|
|
92
92
|
border-radius: var(--co-border-radius-xs);
|
|
93
93
|
transition: border-color 0.15s ease, box-shadow 0.15s ease;
|
|
94
94
|
min-height: 40px;
|
|
@@ -98,6 +98,18 @@
|
|
|
98
98
|
min-width: 0;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
/* ---- Variant: flat (no border/background — reads as content) ----
|
|
102
|
+
Border-width/radius are left untouched (only the color goes transparent),
|
|
103
|
+
so padding/box size never shift between default and flat. Placed here
|
|
104
|
+
(before the size variants and ahead of the States/Validation sections
|
|
105
|
+
below) so the equal-specificity (0,2,0) state selectors — focused/
|
|
106
|
+
disabled/error/success/warning/info — win their cascade tie by source
|
|
107
|
+
order and keep showing through on top of flat, same as they do today. */
|
|
108
|
+
.co-input--flat .co-input__field {
|
|
109
|
+
background: transparent;
|
|
110
|
+
border-color: transparent;
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
/* ---- Size variants ---- */
|
|
102
114
|
.co-input--s .co-input__field {
|
|
103
115
|
min-height: 28px;
|