@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,178 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type NormalizedEvent } from '@prolibu-suite/cobalt-calendar-utils';
|
|
3
|
+
/**
|
|
4
|
+
* co-calendar-timegrid — the Week/Day time-grid. The shell renders it with
|
|
5
|
+
* `dates` = 7 day-keys (week) or 1 (day). Presentation + interaction only; the
|
|
6
|
+
* host owns data (CONTROLLED). All instant math is delegated to the engine — the
|
|
7
|
+
* only timezone boundary is the `timeZone` prop (wall-clock render).
|
|
8
|
+
*/
|
|
9
|
+
export declare class CoCalendarTimegrid {
|
|
10
|
+
el: HTMLElement;
|
|
11
|
+
events: NormalizedEvent[];
|
|
12
|
+
/** Visible day keys "YYYY-MM-DD" (7 = week, 1 = day). */
|
|
13
|
+
dates: string[];
|
|
14
|
+
locale: string;
|
|
15
|
+
timeZone: string;
|
|
16
|
+
editable: boolean;
|
|
17
|
+
selectable: boolean;
|
|
18
|
+
minDate?: string;
|
|
19
|
+
maxDate?: string;
|
|
20
|
+
slotMinutes: number;
|
|
21
|
+
snapMinutes: number;
|
|
22
|
+
defaultDurationMinutes: number;
|
|
23
|
+
scrollTime: string;
|
|
24
|
+
nowIndicator: boolean;
|
|
25
|
+
/** Cargando: en vez de los eventos pinta bloques skeleton en las columnas.
|
|
26
|
+
* La grilla (eje de horas, líneas, cabecera de días, franja de todo-el-día)
|
|
27
|
+
* se mantiene: lo único que todavía no se sabe son los eventos. */
|
|
28
|
+
loading: boolean;
|
|
29
|
+
allDaySlot: boolean;
|
|
30
|
+
minTime: string;
|
|
31
|
+
maxTime: string;
|
|
32
|
+
/** Minute of "now" for the indicator; refreshed on a 60s timer. */
|
|
33
|
+
nowMinutes: number;
|
|
34
|
+
nowDay: string;
|
|
35
|
+
/** Roving-tabindex focus position for keyboard navigation over slots. */
|
|
36
|
+
focusDate: string;
|
|
37
|
+
focusMin: number;
|
|
38
|
+
/** A time range was selected on an empty area (create request). */
|
|
39
|
+
coRangeSelect: EventEmitter<{
|
|
40
|
+
start: string;
|
|
41
|
+
end: string;
|
|
42
|
+
/** Viewport-anchored rect of the selected area, for the host to anchor a quick-create bubble. */
|
|
43
|
+
rect?: {
|
|
44
|
+
top: number;
|
|
45
|
+
left: number;
|
|
46
|
+
width: number;
|
|
47
|
+
height: number;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
50
|
+
coEventClick: EventEmitter<{
|
|
51
|
+
id: string;
|
|
52
|
+
rect?: DOMRect;
|
|
53
|
+
}>;
|
|
54
|
+
coEventDrop: EventEmitter<{
|
|
55
|
+
id: string;
|
|
56
|
+
start: string;
|
|
57
|
+
end: string;
|
|
58
|
+
oldStart: string;
|
|
59
|
+
oldEnd: string;
|
|
60
|
+
allDay: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
/** Doble activación de un chip (direct-edit request del host). */
|
|
63
|
+
coEventDblClick: EventEmitter<{
|
|
64
|
+
id: string;
|
|
65
|
+
rect?: DOMRect;
|
|
66
|
+
}>;
|
|
67
|
+
selDate: string | null;
|
|
68
|
+
selStartMin: number;
|
|
69
|
+
selEndMin: number;
|
|
70
|
+
private selecting;
|
|
71
|
+
/** Coords crudas del último pointermove: el getBoundingClientRect corre UNA vez
|
|
72
|
+
* por frame, dentro del rAF (antes corría a ~120Hz, en el move crudo). */
|
|
73
|
+
private pendingSel;
|
|
74
|
+
private selRaf;
|
|
75
|
+
private pendingDrag;
|
|
76
|
+
private dragRaf;
|
|
77
|
+
private onWindowPointerUp;
|
|
78
|
+
dragId: string | null;
|
|
79
|
+
private dragMode;
|
|
80
|
+
private dragGrabOffsetMin;
|
|
81
|
+
private dragDurationMin;
|
|
82
|
+
private dragDate;
|
|
83
|
+
private dragStartMin;
|
|
84
|
+
private dragEndMin;
|
|
85
|
+
private origStartMin;
|
|
86
|
+
private origEndMin;
|
|
87
|
+
private origDate;
|
|
88
|
+
private suppressNextClick;
|
|
89
|
+
private dragArmedId;
|
|
90
|
+
private dragStartPointer;
|
|
91
|
+
private onWindowPointerMove;
|
|
92
|
+
private onWindowPointerUpDrag;
|
|
93
|
+
private nowTimer?;
|
|
94
|
+
private rootEl?;
|
|
95
|
+
private scrollEl?;
|
|
96
|
+
/** Ghost imperativo del drag: se posiciona con style directo, nunca por vdom. */
|
|
97
|
+
private ghostEl?;
|
|
98
|
+
/** Rects de las columnas cacheados AL AGARRAR: con esto el frame de drag es
|
|
99
|
+
* aritmética pura (antes: ~9 getBoundingClientRect + 2 querySelector/frame,
|
|
100
|
+
* que además forzaban reflow síncrono al escribir estilos en el mismo rAF). */
|
|
101
|
+
private colRects;
|
|
102
|
+
private gridRect;
|
|
103
|
+
private onDragViewportChange;
|
|
104
|
+
/** Memo de layoutTimeGrid/layoutAllDay/byId por identidad de inputs. */
|
|
105
|
+
private layoutCache?;
|
|
106
|
+
componentWillLoad(): void;
|
|
107
|
+
componentDidLoad(): void;
|
|
108
|
+
disconnectedCallback(): void;
|
|
109
|
+
/** Limpia el resaltado persistente de selección (lo llama el host al cerrar
|
|
110
|
+
* su bubble/form de creación). */
|
|
111
|
+
clearSelection(): Promise<void>;
|
|
112
|
+
/** Un refetch (post-save) invalida la referencia visual de la selección. */
|
|
113
|
+
onEventsChange(): void;
|
|
114
|
+
private refreshNow;
|
|
115
|
+
private get minM();
|
|
116
|
+
private get maxM();
|
|
117
|
+
private scrollToInitial;
|
|
118
|
+
/** Visible day keys, with the same fallback the render uses. */
|
|
119
|
+
private visibleDates;
|
|
120
|
+
/** Slot size guarded: ahora alimenta un `calc()` (un 0/NaN dejaría la grilla
|
|
121
|
+
* sin altura, silenciosamente). */
|
|
122
|
+
private get slotM();
|
|
123
|
+
/** Number of slot rows in the visible window (drives the body height). */
|
|
124
|
+
private slotCount;
|
|
125
|
+
/** Hour marks inside the visible window — one axis label each (was 1 div per
|
|
126
|
+
* slot with a label only on the hour). */
|
|
127
|
+
private hourList;
|
|
128
|
+
/** Minutes-of-day at a clientY within a column element, snapped and clamped. */
|
|
129
|
+
private minutesFromPointer;
|
|
130
|
+
/** Same math as minutesFromPointer but over the cached grid rect (drag path):
|
|
131
|
+
* cero lecturas de layout por frame. */
|
|
132
|
+
private minutesFromCachedY;
|
|
133
|
+
private minutesAtFraction;
|
|
134
|
+
/** Snapshot de la geometría de columnas al empezar un drag. Se re-toma solo
|
|
135
|
+
* cuando el viewport cambia (scroll del body / resize), nunca por frame. */
|
|
136
|
+
private captureDragRects;
|
|
137
|
+
private bindDragViewportListeners;
|
|
138
|
+
/** Marca la interacción en el root (hover/hit-testing off en los chips). No es
|
|
139
|
+
* @State a propósito: no debe disparar un render por drag. */
|
|
140
|
+
private setInteracting;
|
|
141
|
+
/** Build an ISO instant (UTC) for a wall-clock minute-of-day on a given day. */
|
|
142
|
+
private toInstant;
|
|
143
|
+
private isDayInteractable;
|
|
144
|
+
private startSelection;
|
|
145
|
+
private extendSelection;
|
|
146
|
+
private finishSelection;
|
|
147
|
+
/** Viewport rect of the selected span, mirroring the `.tg__selection` ghost's
|
|
148
|
+
* fraction math over the column's own bounding box. Never throws: falls back to
|
|
149
|
+
* the whole-column rect, or undefined if the column isn't in the DOM. */
|
|
150
|
+
private selectionRect;
|
|
151
|
+
private eventById;
|
|
152
|
+
/** The day column under a clientX (week can drop across days) — resuelto por
|
|
153
|
+
* aritmética sobre los rects cacheados, sin tocar el DOM. */
|
|
154
|
+
private dateKeyAtX;
|
|
155
|
+
private startMove;
|
|
156
|
+
private startResize;
|
|
157
|
+
private beginDragInteraction;
|
|
158
|
+
/** Ghost del drag escrito DIRECTO al DOM: el vdom no participa (los campos del
|
|
159
|
+
* drag son privados a propósito — promoverlos a @State volvería a re-renderizar
|
|
160
|
+
* la grilla entera por frame). */
|
|
161
|
+
private paintGhost;
|
|
162
|
+
private hideGhost;
|
|
163
|
+
/** Igual que extendSelection: un solo apply por frame (ver comentario allí). */
|
|
164
|
+
private trackDrag;
|
|
165
|
+
private applyDrag;
|
|
166
|
+
private finishDrag;
|
|
167
|
+
/** Roving-tabindex keyboard nav: ↑/↓ by slot, ←/→ by day, Enter/Space to select. */
|
|
168
|
+
private handleKeyDown;
|
|
169
|
+
private shiftFocusDate;
|
|
170
|
+
private renderSelectionGhost;
|
|
171
|
+
private renderEventBox;
|
|
172
|
+
private renderAllDayBar;
|
|
173
|
+
/** Los 3 cómputos de layout del render, memoizados por IDENTIDAD de inputs
|
|
174
|
+
* (`events` llega memoizado del shell): un re-render por drag/now-tick/focus
|
|
175
|
+
* no vuelve a empaquetar la semana. */
|
|
176
|
+
private getLayouts;
|
|
177
|
+
render(): any;
|
|
178
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
/**
|
|
3
|
+
* A generic slide carousel. Coordinates light-DOM `co-carousel-item`
|
|
4
|
+
* children (same pattern as co-tab-group): the parent stamps aria and
|
|
5
|
+
* inertness on each item and translates a flex track to the active index.
|
|
6
|
+
*
|
|
7
|
+
* No v-model in the Vue wrappers — consume with `:value` + `@coSlideChange`.
|
|
8
|
+
*
|
|
9
|
+
* @slot - co-carousel-item elements
|
|
10
|
+
*/
|
|
11
|
+
export declare class CoCarousel {
|
|
12
|
+
el: HTMLElement;
|
|
13
|
+
/** Active slide index */
|
|
14
|
+
value: number;
|
|
15
|
+
/** Auto-advance slides */
|
|
16
|
+
autoplay: boolean;
|
|
17
|
+
/** Autoplay interval in milliseconds (floored at 1000) */
|
|
18
|
+
interval: number;
|
|
19
|
+
/** Wrap around at the ends */
|
|
20
|
+
loop: boolean;
|
|
21
|
+
/** Show prev/next arrows */
|
|
22
|
+
arrows: boolean;
|
|
23
|
+
/** Show dot indicators */
|
|
24
|
+
dots: boolean;
|
|
25
|
+
/** Pause autoplay while hovered */
|
|
26
|
+
pauseOnHover: boolean;
|
|
27
|
+
/** Enable pointer swipe navigation */
|
|
28
|
+
swipe: boolean;
|
|
29
|
+
/** Container aspect ratio */
|
|
30
|
+
aspectRatio: '16:9' | '4:3' | '1:1' | '21:9' | 'auto';
|
|
31
|
+
/** Language for aria labels (es/en/pt, accepts full locales) */
|
|
32
|
+
locale: string;
|
|
33
|
+
/** Emitted when the active slide changes (user, autoplay or method) */
|
|
34
|
+
coSlideChange: EventEmitter<number>;
|
|
35
|
+
private itemCount;
|
|
36
|
+
private dragDx;
|
|
37
|
+
private dragging;
|
|
38
|
+
/** True while the autoplay interval is actually running (drives aria-live). */
|
|
39
|
+
private rotating;
|
|
40
|
+
private timer?;
|
|
41
|
+
private hovering;
|
|
42
|
+
private focusWithin;
|
|
43
|
+
private reducedMotion;
|
|
44
|
+
private motionQuery?;
|
|
45
|
+
private pointerStartX;
|
|
46
|
+
private pointerStartY;
|
|
47
|
+
private pointerId;
|
|
48
|
+
private suppressClick;
|
|
49
|
+
private viewportEl?;
|
|
50
|
+
/** Minimum horizontal travel (px) before a pointer gesture counts as a drag. */
|
|
51
|
+
private static readonly DRAG_SLOP;
|
|
52
|
+
/** Horizontal travel (px) needed to change slide on release. */
|
|
53
|
+
private static readonly SWIPE_THRESHOLD;
|
|
54
|
+
componentWillLoad(): void;
|
|
55
|
+
componentDidLoad(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
watchValue(): void;
|
|
58
|
+
watchLocale(): void;
|
|
59
|
+
watchAutoplay(): void;
|
|
60
|
+
next(): Promise<void>;
|
|
61
|
+
prev(): Promise<void>;
|
|
62
|
+
goTo(index: number): Promise<void>;
|
|
63
|
+
private getItems;
|
|
64
|
+
private refreshItems;
|
|
65
|
+
private syncItems;
|
|
66
|
+
private handleSlotChange;
|
|
67
|
+
private clampIndex;
|
|
68
|
+
private setActive;
|
|
69
|
+
private advance;
|
|
70
|
+
private restartAutoplay;
|
|
71
|
+
private stopAutoplay;
|
|
72
|
+
private handleVisibilityChange;
|
|
73
|
+
private handleMotionChange;
|
|
74
|
+
private handleMouseEnter;
|
|
75
|
+
private handleMouseLeave;
|
|
76
|
+
private handleFocusIn;
|
|
77
|
+
private handleFocusOut;
|
|
78
|
+
private handlePointerDown;
|
|
79
|
+
private handlePointerMove;
|
|
80
|
+
private handlePointerUp;
|
|
81
|
+
private handlePointerCancel;
|
|
82
|
+
private handleClickCapture;
|
|
83
|
+
private handleKeyDown;
|
|
84
|
+
render(): any;
|
|
85
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single slide inside a co-carousel. The parent carousel stamps
|
|
3
|
+
* aria-label / aria-hidden / inert on each item (same light-DOM
|
|
4
|
+
* coordination pattern as co-tab-group ↔ co-tab).
|
|
5
|
+
*
|
|
6
|
+
* @slot - Slide content
|
|
7
|
+
*/
|
|
8
|
+
export declare class CoCarouselItem {
|
|
9
|
+
render(): any;
|
|
10
|
+
}
|
|
@@ -33,6 +33,13 @@ export declare class CoDatePicker {
|
|
|
33
33
|
placeholder?: string;
|
|
34
34
|
/** Field size, forwarded to the inner co-date-field. */
|
|
35
35
|
size: 's' | 'sm' | 'md' | 'lg';
|
|
36
|
+
/** Visual style. `flat` strips the inner co-date-field's border and
|
|
37
|
+
* background so it reads as plain content instead of a boxed control —
|
|
38
|
+
* padding, label, focus ring, disabled and invalid states are unaffected.
|
|
39
|
+
* `default` (the standard bordered box) renders identically to before
|
|
40
|
+
* this prop existed. co-date-field itself has no `variant` prop, so this
|
|
41
|
+
* is applied from the outside via `::part(field)` — see co-date-picker.css. */
|
|
42
|
+
variant: 'default' | 'flat';
|
|
36
43
|
name?: string;
|
|
37
44
|
disabled: boolean;
|
|
38
45
|
readonly: boolean;
|
|
@@ -54,6 +54,11 @@ export declare class CoDateRangePicker {
|
|
|
54
54
|
layout: 'vertical' | 'horizontal';
|
|
55
55
|
/** Trigger size (mirrors co-input): s 28 / sm 32 / md 40 / lg 48. */
|
|
56
56
|
size: 's' | 'sm' | 'md' | 'lg';
|
|
57
|
+
/** Visual style. `flat` strips the trigger's border and background so it
|
|
58
|
+
* reads as plain content instead of a boxed control — padding, label,
|
|
59
|
+
* focus ring, disabled and invalid states are unaffected. `default` (the
|
|
60
|
+
* standard bordered box) renders identically to before this prop existed. */
|
|
61
|
+
variant: 'default' | 'flat';
|
|
57
62
|
placement: Placement;
|
|
58
63
|
open: boolean;
|
|
59
64
|
applyLabel?: string;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import type { Placement } from '../../utils/positioning';
|
|
3
|
+
/**
|
|
4
|
+
* Date + TIME picker: one field, one popover. Composes `co-popover` (floating
|
|
5
|
+
* panel, outside-click) + `co-calendar` (day grid) + a scrollable list of times
|
|
6
|
+
* beside it — the Google Calendar layout.
|
|
7
|
+
*
|
|
8
|
+
* VALUE CONTRACT — the committed `value` is a UTC ISO instant
|
|
9
|
+
* ("2026-07-25T21:30:00.000Z"), never a wall-clock string. The wall clock the
|
|
10
|
+
* user sees and edits is rendered in `timeZone` (IANA; browser zone when
|
|
11
|
+
* omitted). All ISO↔wall-clock conversion goes through the calendar engine
|
|
12
|
+
* (`@prolibu-suite/cobalt-calendar-utils`), so DST comes from the platform tz
|
|
13
|
+
* database — the same boundary `co-calendar-timegrid` uses. A date-only value
|
|
14
|
+
* ("2026-07-25") is NOT an instant: it is read as that wall-clock day in
|
|
15
|
+
* `timeZone` at {@link DEFAULT_MINUTES} (09:00), never as UTC midnight (which
|
|
16
|
+
* would shift the day west of UTC).
|
|
17
|
+
*
|
|
18
|
+
* INTERACTION (Google):
|
|
19
|
+
* - Click the field → opens. Picking a DAY commits and keeps the panel open
|
|
20
|
+
* (you almost always want to set the hour next); picking a TIME commits and
|
|
21
|
+
* closes. So there is no draft/apply step and no confirm button.
|
|
22
|
+
* - ArrowDown on the field → moves focus into the calendar grid.
|
|
23
|
+
* - The time list is a listbox: Arrow/Home/End/PageUp/PageDown move the active
|
|
24
|
+
* option, Enter/Space selects it.
|
|
25
|
+
* - Escape → closes and returns focus to the field. Outside click → closes.
|
|
26
|
+
*
|
|
27
|
+
* Escape is owned here (co-popover `closeOnEscape=false`) so focus can return to
|
|
28
|
+
* the field; outside-click stays with co-popover.
|
|
29
|
+
*
|
|
30
|
+
* @part field - The bordered trigger row
|
|
31
|
+
* @part label - The field label
|
|
32
|
+
* @part display - The button that shows the formatted value
|
|
33
|
+
* @part clear - The clear button
|
|
34
|
+
* @part helper - The helper/error text row
|
|
35
|
+
*/
|
|
36
|
+
export declare class CoDateTimePicker {
|
|
37
|
+
el: HTMLElement;
|
|
38
|
+
/** Committed value: UTC ISO instant ("2026-07-25T21:30:00.000Z") or null. */
|
|
39
|
+
value: string | null;
|
|
40
|
+
/** IANA zone the wall clock is rendered in. Defaults to the browser zone. */
|
|
41
|
+
timeZone?: string;
|
|
42
|
+
/** Minutes between consecutive options in the time list. */
|
|
43
|
+
stepMinutes: number;
|
|
44
|
+
/** 12-hour clock (Google style). `false` renders a 24h clock. */
|
|
45
|
+
hour12: boolean;
|
|
46
|
+
/** Earliest selectable day. Date-only "YYYY-MM-DD" or an instant. */
|
|
47
|
+
min?: string;
|
|
48
|
+
/** Latest selectable day. Date-only "YYYY-MM-DD" or an instant. */
|
|
49
|
+
max?: string;
|
|
50
|
+
disabledDates?: string[] | string;
|
|
51
|
+
disabledDaysOfWeek?: number[] | string;
|
|
52
|
+
locale: string;
|
|
53
|
+
/** Date part of the trigger text (tokens yyyy/yy/MMMM/MMM/MM/M/dd/d). */
|
|
54
|
+
displayFormat: string;
|
|
55
|
+
firstDayOfWeek: number;
|
|
56
|
+
label?: string;
|
|
57
|
+
placeholder?: string;
|
|
58
|
+
/** Field size, mirrors co-input/co-date-field: s 28 / sm 32 / md 40 / lg 48. */
|
|
59
|
+
size: 's' | 'sm' | 'md' | 'lg';
|
|
60
|
+
/** `flat` strips the trigger's border/background so it reads as content. */
|
|
61
|
+
variant: 'default' | 'flat';
|
|
62
|
+
name?: string;
|
|
63
|
+
disabled: boolean;
|
|
64
|
+
readonly: boolean;
|
|
65
|
+
required: boolean;
|
|
66
|
+
clearable: boolean;
|
|
67
|
+
invalid: boolean;
|
|
68
|
+
errorMessage?: string;
|
|
69
|
+
helperText?: string;
|
|
70
|
+
/** Label layout: vertical (label above) or horizontal (label beside). */
|
|
71
|
+
layout: 'vertical' | 'horizontal';
|
|
72
|
+
/** Popover placement relative to the field. */
|
|
73
|
+
placement: Placement;
|
|
74
|
+
/** Whether the panel is open. */
|
|
75
|
+
open: boolean;
|
|
76
|
+
/** Max viewport width (px) that renders the panel as a bottom sheet. */
|
|
77
|
+
mobileBreakpoint: number;
|
|
78
|
+
/** True when the viewport is at/under `mobileBreakpoint`. */
|
|
79
|
+
isMobile: boolean;
|
|
80
|
+
/** Minutes-of-day highlighted by the keyboard in the time list. */
|
|
81
|
+
activeMinutes: number;
|
|
82
|
+
/** Committed instant (UTC ISO) or null. */
|
|
83
|
+
coChange: EventEmitter<string | null>;
|
|
84
|
+
coClear: EventEmitter<void>;
|
|
85
|
+
coFocus: EventEmitter<void>;
|
|
86
|
+
coBlur: EventEmitter<void>;
|
|
87
|
+
coOpen: EventEmitter<void>;
|
|
88
|
+
coClose: EventEmitter<void>;
|
|
89
|
+
private popoverEl?;
|
|
90
|
+
private calendarEl?;
|
|
91
|
+
private triggerBtn?;
|
|
92
|
+
private listEl?;
|
|
93
|
+
private pendingFocusGrid;
|
|
94
|
+
private pendingFocusTrigger;
|
|
95
|
+
/** 'center' when the list is (re)opened, 'nearest' while arrowing through it. */
|
|
96
|
+
private pendingScroll;
|
|
97
|
+
private mql?;
|
|
98
|
+
private mqlHandler;
|
|
99
|
+
connectedCallback(): void;
|
|
100
|
+
disconnectedCallback(): void;
|
|
101
|
+
onOpenChange(next: boolean): void;
|
|
102
|
+
private get zone();
|
|
103
|
+
private get isInvalid();
|
|
104
|
+
/** Wall clock of the committed value in `zone`, or null when empty/invalid. */
|
|
105
|
+
private get parts();
|
|
106
|
+
/** Calendar bounds are date-only; accept an instant and reduce it to its day. */
|
|
107
|
+
private dayBound;
|
|
108
|
+
private setOpen;
|
|
109
|
+
/** Write day+minutes as a UTC instant and notify. */
|
|
110
|
+
private commit;
|
|
111
|
+
private onTriggerKeyDown;
|
|
112
|
+
private onClearClick;
|
|
113
|
+
private onCalendarSelect;
|
|
114
|
+
private pickTime;
|
|
115
|
+
private onListKeyDown;
|
|
116
|
+
private onPopoverOpen;
|
|
117
|
+
private onPopoverClose;
|
|
118
|
+
private onRootKeyDown;
|
|
119
|
+
private focusGridSoon;
|
|
120
|
+
private scrollActiveIntoView;
|
|
121
|
+
componentDidRender(): void;
|
|
122
|
+
private get step();
|
|
123
|
+
/** Grid of minutes-of-day, plus the committed hour when it falls off-grid
|
|
124
|
+
* (an imported 16:37 meeting must stay visible and selectable). */
|
|
125
|
+
private get options();
|
|
126
|
+
private renderTrigger;
|
|
127
|
+
private renderPanel;
|
|
128
|
+
private renderHelper;
|
|
129
|
+
private renderLabel;
|
|
130
|
+
render(): any;
|
|
131
|
+
}
|
|
@@ -4,8 +4,8 @@ import { type CoCalendarEvent, type NormalizedEvent } from '@prolibu-suite/cobal
|
|
|
4
4
|
* co-event-calendar — the public entry point of the Cobalt Calendars family.
|
|
5
5
|
*
|
|
6
6
|
* Owns view state, the visible anchor date, event normalization and the toolbar,
|
|
7
|
-
* and delegates rendering to the active view (
|
|
8
|
-
* lives in `@prolibu-suite/cobalt-calendar-utils`. Events are CONTROLLED: the
|
|
7
|
+
* and delegates rendering to the active view (month/week/day; agenda pending).
|
|
8
|
+
* All hard math lives in `@prolibu-suite/cobalt-calendar-utils`. Events are CONTROLLED: the
|
|
9
9
|
* calendar emits requests (`coEventDrop`, `coDateSelect`) and the host applies
|
|
10
10
|
* them by updating the `events` prop — leaving it unchanged on failure is the
|
|
11
11
|
* revert.
|
|
@@ -16,8 +16,16 @@ import { type CoCalendarEvent, type NormalizedEvent } from '@prolibu-suite/cobal
|
|
|
16
16
|
* @part toolbar - The header toolbar
|
|
17
17
|
* @part body - The active view container
|
|
18
18
|
*/
|
|
19
|
+
type StatusColorsProp = Record<string, {
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
}> | string;
|
|
19
23
|
export declare class CoEventCalendar {
|
|
20
|
-
|
|
24
|
+
el: HTMLElement;
|
|
25
|
+
/** Limpia el resaltado persistente de selección de la vista activa (timegrid
|
|
26
|
+
* o month) — lo llama el host al cerrar su bubble/form de creación. */
|
|
27
|
+
clearRangeSelection(): Promise<void>;
|
|
28
|
+
/** Active view. `month`/`week`/`day` are implemented; `agenda` is pending. */
|
|
21
29
|
view: 'month' | 'week' | 'day' | 'agenda';
|
|
22
30
|
/** Anchor date "YYYY-MM-DD" controlling the visible period. Persisted by host. */
|
|
23
31
|
date?: string;
|
|
@@ -42,23 +50,45 @@ export declare class CoEventCalendar {
|
|
|
42
50
|
/** Views offered in the switcher. Defaults to the implemented set. */
|
|
43
51
|
availableViews: string[] | string;
|
|
44
52
|
/** Optional status→{backgroundColor,borderColor} map (object or JSON string). */
|
|
45
|
-
statusColors?:
|
|
46
|
-
backgroundColor?: string;
|
|
47
|
-
borderColor?: string;
|
|
48
|
-
}> | string;
|
|
53
|
+
statusColors?: StatusColorsProp;
|
|
49
54
|
/** Default minutes for a timed event missing an end. */
|
|
50
55
|
defaultDurationMinutes: number;
|
|
56
|
+
/** Show the all-day lane in week/day views. */
|
|
57
|
+
allDaySlot: boolean;
|
|
58
|
+
/** Visible-hours window for week/day (minutes-of-day bounds as "HH:mm"). */
|
|
59
|
+
minTime: string;
|
|
60
|
+
maxTime: string;
|
|
61
|
+
/** Slot/snap granularity (minutes) for week/day. */
|
|
62
|
+
slotMinutes: number;
|
|
63
|
+
snapMinutes: number;
|
|
64
|
+
/** Initial scroll position for week/day ("HH:mm"). */
|
|
65
|
+
scrollTime: string;
|
|
66
|
+
/** Show the current-time indicator in week/day. */
|
|
67
|
+
nowIndicator: boolean;
|
|
68
|
+
/** Cargando eventos: se propaga a la grilla (mes/timegrid), que reemplaza
|
|
69
|
+
* SUS chips por bloques skeleton y conserva toda su estructura — bordes,
|
|
70
|
+
* cabecera de días, eje de horas. El toolbar sigue operable y nada se
|
|
71
|
+
* desmonta, así no se pierde el scroll de semana/día. */
|
|
72
|
+
loading: boolean;
|
|
51
73
|
/** Internal anchor (YYYY-MM-DD) — mirrors `date`, defaults to today. */
|
|
52
74
|
anchor: string;
|
|
53
75
|
/** An event chip was activated. */
|
|
54
76
|
coEventClick: EventEmitter<{
|
|
55
77
|
event: NormalizedEvent;
|
|
78
|
+
rect: DOMRect | null;
|
|
56
79
|
}>;
|
|
57
80
|
/** A date/range was selected (create request). */
|
|
58
81
|
coDateSelect: EventEmitter<{
|
|
59
82
|
start: string;
|
|
60
83
|
end: string;
|
|
61
84
|
allDay: boolean;
|
|
85
|
+
/** Viewport-anchored rect of the selected day/range, for the host to anchor a quick-create bubble. */
|
|
86
|
+
rect: DOMRect | {
|
|
87
|
+
top: number;
|
|
88
|
+
left: number;
|
|
89
|
+
width: number;
|
|
90
|
+
height: number;
|
|
91
|
+
} | null;
|
|
62
92
|
}>;
|
|
63
93
|
/** An event was dragged to a new time (move). `revert` is a host convenience. */
|
|
64
94
|
coEventDrop: EventEmitter<{
|
|
@@ -70,6 +100,11 @@ export declare class CoEventCalendar {
|
|
|
70
100
|
allDay: boolean;
|
|
71
101
|
revert: () => void;
|
|
72
102
|
}>;
|
|
103
|
+
/** An event chip was double-activated (direct-edit request). */
|
|
104
|
+
coEventDblClick: EventEmitter<{
|
|
105
|
+
event: NormalizedEvent;
|
|
106
|
+
rect: DOMRect | null;
|
|
107
|
+
}>;
|
|
73
108
|
/** The visible period changed → host should refetch and persist the view pref. */
|
|
74
109
|
coDatesSet: EventEmitter<{
|
|
75
110
|
view: string;
|
|
@@ -90,9 +125,24 @@ export declare class CoEventCalendar {
|
|
|
90
125
|
componentDidLoad(): void;
|
|
91
126
|
onDateChange(value?: string): void;
|
|
92
127
|
private get tz();
|
|
128
|
+
/**
|
|
129
|
+
* Memo for the `normalized` getter below. Re-normalizing on every access is
|
|
130
|
+
* wasted work (render reads it twice) AND, since `normalizeEvents` always
|
|
131
|
+
* returns a fresh array, breaks referential-equality memos downstream that
|
|
132
|
+
* depend on a stable `events` reference (layout/packing caching). Keyed by
|
|
133
|
+
* the raw prop identities that feed normalization — `events`/`statusColors`
|
|
134
|
+
* are compared by `===` (stable array/string/object reference from the
|
|
135
|
+
* host unless it actually changed), `defaultDurationMinutes` by value.
|
|
136
|
+
*/
|
|
137
|
+
private _normCache?;
|
|
93
138
|
private get normalized();
|
|
94
139
|
private get viewsList();
|
|
95
|
-
/**
|
|
140
|
+
/** Sunday=0 UTC day-of-week of a date-only key (tz-independent). */
|
|
141
|
+
private dowOf;
|
|
142
|
+
private weekStart;
|
|
143
|
+
/** Day keys the active view renders: 7 for week, 1 for day, [] for month. */
|
|
144
|
+
private get visibleDates();
|
|
145
|
+
/** Visible [start, end) of the active view, as date strings. */
|
|
96
146
|
private visibleRange;
|
|
97
147
|
private emitDatesSet;
|
|
98
148
|
private setAnchor;
|
|
@@ -102,9 +152,12 @@ export declare class CoEventCalendar {
|
|
|
102
152
|
private step;
|
|
103
153
|
private switchView;
|
|
104
154
|
private handleDaySelect;
|
|
155
|
+
private handleRangeSelect;
|
|
105
156
|
private handleEventClick;
|
|
157
|
+
private handleEventDblClick;
|
|
106
158
|
private handleEventDrop;
|
|
107
159
|
private handleMoreClick;
|
|
108
160
|
private title;
|
|
109
161
|
render(): any;
|
|
110
162
|
}
|
|
163
|
+
export {};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { type Placement } 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 declare class CoEventPopover {
|
|
11
|
+
el: HTMLElement;
|
|
12
|
+
open: boolean;
|
|
13
|
+
/** Anchor rect in viewport coords (chip.getBoundingClientRect()). */
|
|
14
|
+
anchorRect?: {
|
|
15
|
+
top: number;
|
|
16
|
+
left: number;
|
|
17
|
+
width: number;
|
|
18
|
+
height: number;
|
|
19
|
+
};
|
|
20
|
+
placement: Placement;
|
|
21
|
+
/** Accent color for the leading dot (event color). */
|
|
22
|
+
color?: string;
|
|
23
|
+
/** Render the leading color dot. Set false for dot-less content (quick-create). */
|
|
24
|
+
dot: boolean;
|
|
25
|
+
closeOnEscape: boolean;
|
|
26
|
+
closeOnClickOutside: boolean;
|
|
27
|
+
/** Accessible name for the panel (role="dialog" needs one). */
|
|
28
|
+
popoverLabel?: string;
|
|
29
|
+
coClose: EventEmitter<void>;
|
|
30
|
+
private panelEl?;
|
|
31
|
+
private prevFocus?;
|
|
32
|
+
componentDidLoad(): void;
|
|
33
|
+
onOpenChange(v: boolean): void;
|
|
34
|
+
onAnchorChange(): void;
|
|
35
|
+
disconnectedCallback(): void;
|
|
36
|
+
private promoteAndPosition;
|
|
37
|
+
private dismissPanel;
|
|
38
|
+
private teardownListeners;
|
|
39
|
+
private position;
|
|
40
|
+
private onScroll;
|
|
41
|
+
private onKeydown;
|
|
42
|
+
private onPointerDown;
|
|
43
|
+
private requestClose;
|
|
44
|
+
render(): any;
|
|
45
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
2
|
export declare class CoFab {
|
|
3
|
+
el: HTMLElement;
|
|
3
4
|
icon: string;
|
|
4
5
|
label?: string;
|
|
5
6
|
variant: 'primary' | 'secondary' | 'stroke';
|
|
@@ -9,7 +10,12 @@ export declare class CoFab {
|
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
/** Fixed position on screen */
|
|
11
12
|
position: 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left' | 'none';
|
|
13
|
+
/** With `label`: icon-only circle at rest that stretches into the extended
|
|
14
|
+
* pill on hover/focus-visible (springy "liquid" morph). */
|
|
15
|
+
expandOnHover: boolean;
|
|
12
16
|
coClick: EventEmitter<void>;
|
|
17
|
+
private labelEl?;
|
|
13
18
|
private handleClick;
|
|
19
|
+
private handleExpandMeasure;
|
|
14
20
|
render(): any;
|
|
15
21
|
}
|
|
@@ -52,6 +52,11 @@ export declare class CoInput {
|
|
|
52
52
|
* In the filled search-pill variant (`fill`) this drives the pill height
|
|
53
53
|
* instead (s ≈ 38px). */
|
|
54
54
|
size: 's' | 'sm' | 'md' | 'lg';
|
|
55
|
+
/** Visual style. `flat` strips the field's border and background so it
|
|
56
|
+
* reads as plain content instead of a boxed input — padding, label, focus
|
|
57
|
+
* ring, disabled and status states are unaffected. `default` (the
|
|
58
|
+
* standard bordered box) renders identically to before this prop existed. */
|
|
59
|
+
variant: 'default' | 'flat';
|
|
55
60
|
/** Filled search-pill variant. When true the field renders as a minimal gray
|
|
56
61
|
* pill (background gray-100, no border/box-shadow, 10px radius) with a search
|
|
57
62
|
* glyph on the left and a plain-`x` clear — the floating label, helper text and
|
|
@@ -63,6 +63,13 @@ export declare class CoLightbox {
|
|
|
63
63
|
connectedCallback(): void;
|
|
64
64
|
disconnectedCallback(): void;
|
|
65
65
|
componentDidRender(): void;
|
|
66
|
+
/** Root element (popover="manual") — promoted to the TOP LAYER while open.
|
|
67
|
+
* z-index cannot beat top-layer surfaces (co-overlay promotes the modal
|
|
68
|
+
* drawer's scrim+card via popover), so the viewer must live there too:
|
|
69
|
+
* top-layer paint order = promotion order, and the lightbox opens last. */
|
|
70
|
+
private rootEl?;
|
|
71
|
+
private demoteTimer?;
|
|
72
|
+
private syncTopLayer;
|
|
66
73
|
onOpenChange(open: boolean): void;
|
|
67
74
|
onStartIndexChange(v: number): void;
|
|
68
75
|
onImagesChange(): void;
|
|
@@ -21,6 +21,9 @@ export declare class CoMenuItem {
|
|
|
21
21
|
iconSize?: number;
|
|
22
22
|
/** Text shown in the row. */
|
|
23
23
|
label?: string;
|
|
24
|
+
/** Optional second line under the label (muted, smaller) — e.g. what an
|
|
25
|
+
* export method means. The row auto-grows (min-height, not height). */
|
|
26
|
+
caption?: string;
|
|
24
27
|
/** Tighter row metrics (32px instead of 36px). */
|
|
25
28
|
dense: boolean;
|
|
26
29
|
/** Marks the row as selected — paints an at-rest gray-100 background. Used by
|