@prolibu-suite/cobalt-core 0.7.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +8275 -5147
- package/dist/cjs/co-accordion.cjs.entry.js +4 -4
- package/dist/cjs/co-action-bar.cjs.entry.js +89 -0
- package/dist/cjs/co-app-shell.cjs.entry.js +4 -4
- package/dist/cjs/co-audio-player.cjs.entry.js +279 -0
- package/dist/cjs/co-autocomplete.cjs.entry.js +15 -6
- package/dist/cjs/co-avatar-group.cjs.entry.js +2 -2
- package/dist/cjs/co-avatar_2.cjs.entry.js +17 -6
- package/dist/cjs/co-badge.cjs.entry.js +2 -2
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +5 -5
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/co-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-button.cjs.entry.js +13 -6
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +1601 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +13 -13
- package/dist/cjs/co-card.cjs.entry.js +4 -4
- package/dist/cjs/co-carousel-item.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel.cjs.entry.js +4 -4
- package/dist/cjs/co-checkbox-group.cjs.entry.js +2 -2
- package/dist/cjs/co-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/co-chip_2.cjs.entry.js +109 -8
- package/dist/cjs/co-color-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-column-picker.cjs.entry.js +4 -4
- package/dist/cjs/co-combobox.cjs.entry.js +14 -6
- package/dist/cjs/co-command-search.cjs.entry.js +20 -6
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +6 -6
- package/dist/cjs/co-data-table.cjs.entry.js +2 -2
- package/dist/cjs/co-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/co-date-range-picker.cjs.entry.js +5 -5
- package/dist/cjs/co-date-range.cjs.entry.js +2 -2
- package/dist/cjs/co-date-time-picker.cjs.entry.js +409 -0
- package/dist/cjs/co-drive-card.cjs.entry.js +3 -3
- package/dist/cjs/co-drop-zone.cjs.entry.js +2 -2
- package/dist/cjs/co-empty-state.cjs.entry.js +3 -3
- package/dist/cjs/co-event-calendar.cjs.entry.js +119 -18
- package/dist/cjs/co-event-popover.cjs.entry.js +132 -0
- package/dist/cjs/co-fab.cjs.entry.js +4 -4
- package/dist/cjs/co-file-field.cjs.entry.js +8 -8
- package/dist/cjs/co-file-type-tile.cjs.entry.js +3 -3
- package/dist/cjs/co-helper-text.cjs.entry.js +3 -3
- package/dist/cjs/co-icon-button.cjs.entry.js +3 -3
- package/dist/cjs/co-icon.cjs.entry.js +3 -3
- package/dist/cjs/co-input.cjs.entry.js +3 -3
- package/dist/cjs/co-json-field.cjs.entry.js +6 -6
- package/dist/cjs/co-lightbox.cjs.entry.js +7 -7
- package/dist/cjs/co-list-footer.cjs.entry.js +3 -3
- package/dist/cjs/co-list-item.cjs.entry.js +6 -6
- package/dist/cjs/co-loader.cjs.entry.js +1 -1
- package/dist/cjs/co-media-thumb.cjs.entry.js +3 -3
- package/dist/cjs/co-menu-divider.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/co-menu.cjs.entry.js +2 -2
- package/dist/cjs/co-modal.cjs.entry.js +4 -4
- package/dist/cjs/co-navbar.cjs.entry.js +3 -3
- package/dist/cjs/co-number-field.cjs.entry.js +5 -5
- package/dist/cjs/co-overlay.cjs.entry.js +3 -3
- package/dist/cjs/co-page-header.cjs.entry.js +2 -2
- package/dist/cjs/co-phone-field.cjs.entry.js +4 -4
- package/dist/cjs/co-popover.cjs.entry.js +33 -7
- package/dist/cjs/co-progress-bar.cjs.entry.js +3 -3
- package/dist/cjs/co-progress-circle.cjs.entry.js +4 -4
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +72 -0
- package/dist/cjs/co-radio-group.cjs.entry.js +2 -2
- package/dist/cjs/co-radio.cjs.entry.js +5 -5
- package/dist/cjs/co-rating.cjs.entry.js +5 -5
- package/dist/cjs/co-ref-field.cjs.entry.js +22 -6
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +5 -5
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/co-rich-text-viewer.cjs.entry.js +1 -1
- package/dist/cjs/co-row.cjs.entry.js +3 -3
- package/dist/cjs/co-segmented-bar.cjs.entry.js +1 -1
- package/dist/cjs/co-select.cjs.entry.js +4 -4
- package/dist/cjs/co-separator.cjs.entry.js +2 -2
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +14 -4
- package/dist/cjs/co-sidebar.cjs.entry.js +4 -4
- package/dist/cjs/co-slider.cjs.entry.js +4 -4
- package/dist/cjs/co-switch.cjs.entry.js +6 -6
- package/dist/cjs/co-tab-group.cjs.entry.js +20 -4
- package/dist/cjs/co-tab.cjs.entry.js +4 -4
- package/dist/cjs/co-tags-field.cjs.entry.js +9 -9
- package/dist/cjs/co-textarea.cjs.entry.js +7 -7
- package/dist/cjs/co-toast.cjs.entry.js +35 -5
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +3 -3
- package/dist/cjs/co-toggle-button.cjs.entry.js +4 -4
- package/dist/cjs/co-transfer-list.cjs.entry.js +4 -4
- package/dist/cjs/co-video.cjs.entry.js +4 -4
- package/dist/cjs/cobalt.cjs.js +2 -2
- package/dist/cjs/{dateI18n-BdiNAl0_.js → dateI18n-wblvKRq_.js} +21 -0
- package/dist/cjs/{dates-D8D-aS5d.js → dates-TQLHlFd2.js} +64 -13
- package/dist/cjs/{fieldChip-B_npd9rL.js → fieldChip-xNJPEFcS.js} +1 -1
- package/dist/cjs/{index-kBiXCEE7.js → index-DK-2Lzmf.js} +29 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{positioning-DwHW399W.js → positioning-DCj_AJ2T.js} +10 -0
- package/dist/cjs/{requiredMark-DuMIcKtt.js → requiredMark-C1xcrzSZ.js} +1 -1
- package/dist/cjs/time-LBHtzLHe.js +42 -0
- package/dist/cobalt/cobalt.css +1 -1
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/p-09fe6ece.entry.js +1 -0
- package/dist/cobalt/p-12a0ae24.entry.js +1 -0
- package/dist/cobalt/p-142506d9.entry.js +1 -0
- package/dist/cobalt/{p-e4555fda.entry.js → p-19706923.entry.js} +1 -1
- package/dist/cobalt/p-19f5d480.entry.js +1 -0
- package/dist/cobalt/{p-B6JZk8fL.js → p-1EK-COrb.js} +1 -1
- package/dist/cobalt/p-1ddbc48b.entry.js +1 -0
- package/dist/cobalt/p-212ed2ba.entry.js +1 -0
- package/dist/cobalt/p-21832273.entry.js +1 -0
- package/dist/cobalt/p-24e93fcb.entry.js +1 -0
- package/dist/cobalt/{p-9211e794.entry.js → p-2a9ba4c8.entry.js} +1 -1
- package/dist/cobalt/p-2aeb1471.entry.js +1 -0
- package/dist/cobalt/p-2d0354cc.entry.js +1 -0
- package/dist/cobalt/p-30ec230e.entry.js +1 -0
- package/dist/cobalt/p-360714ae.entry.js +1 -0
- package/dist/cobalt/{p-3c681e3a.entry.js → p-37541725.entry.js} +1 -1
- package/dist/cobalt/p-39007b6c.entry.js +1 -0
- package/dist/cobalt/{p-2f6c7eb5.entry.js → p-39bce45f.entry.js} +1 -1
- package/dist/cobalt/{p-7f78e45c.entry.js → p-3ac316e0.entry.js} +1 -1
- package/dist/cobalt/{p-69723cc1.entry.js → p-3ced4269.entry.js} +1 -1
- package/dist/cobalt/{p-9994fcd8.entry.js → p-3ecc29fa.entry.js} +1 -1
- package/dist/cobalt/p-417ce874.entry.js +1 -0
- package/dist/cobalt/{p-28ab9cef.entry.js → p-43b1f8fb.entry.js} +1 -1
- package/dist/cobalt/p-49bde154.entry.js +1 -0
- package/dist/cobalt/{p-54f8c68c.entry.js → p-4e2379e4.entry.js} +1 -1
- package/dist/cobalt/p-5d7c26f2.entry.js +1 -0
- package/dist/cobalt/p-5ddebd10.entry.js +1 -0
- package/dist/cobalt/{p-bcd38114.entry.js → p-5f0f5d4b.entry.js} +1 -1
- package/dist/cobalt/{p-2661557c.entry.js → p-5f1b273b.entry.js} +1 -1
- package/dist/cobalt/p-60cb66f5.entry.js +1 -0
- package/dist/cobalt/{p-48fbf051.entry.js → p-6795a258.entry.js} +1 -1
- package/dist/cobalt/{p-5b84cf37.entry.js → p-6d532475.entry.js} +1 -1
- package/dist/cobalt/{p-0110108f.entry.js → p-724b9b54.entry.js} +1 -1
- package/dist/cobalt/{p-ceb85838.entry.js → p-7255ab63.entry.js} +1 -1
- package/dist/cobalt/p-7521ec0c.entry.js +1 -0
- package/dist/cobalt/{p-69ce2269.entry.js → p-76dff399.entry.js} +1 -1
- package/dist/cobalt/p-77593319.entry.js +1 -0
- package/dist/cobalt/p-7a2dab23.entry.js +1 -0
- package/dist/cobalt/p-7ec85887.entry.js +1 -0
- package/dist/cobalt/p-81866f71.entry.js +1 -0
- package/dist/cobalt/{p-c3004e1c.entry.js → p-8206c7c0.entry.js} +1 -1
- package/dist/cobalt/p-85a61e28.entry.js +1 -0
- package/dist/cobalt/p-87fc5aed.entry.js +1 -0
- package/dist/cobalt/p-8a93beb0.entry.js +1 -0
- package/dist/cobalt/p-8b7a4f6c.entry.js +1 -0
- package/dist/cobalt/{p-741cf623.entry.js → p-8e667eb6.entry.js} +1 -1
- package/dist/cobalt/{p-3b9be8a8.entry.js → p-94a8a119.entry.js} +1 -1
- package/dist/cobalt/p-9c2ce487.entry.js +1 -0
- package/dist/cobalt/p-9fe9e2fe.entry.js +1 -0
- package/dist/cobalt/p-BMdapAL8.js +1 -0
- package/dist/cobalt/p-BU7SQCje.js +1 -0
- package/dist/cobalt/p-CF8OB_TM.js +1 -0
- package/dist/cobalt/p-CQAYgqA6.js +1 -0
- package/dist/cobalt/p-CnNpoKwg.js +1 -0
- package/dist/cobalt/p-CrtiywTB.js +2 -0
- package/dist/cobalt/p-T4la7ly_.js +1 -0
- package/dist/cobalt/{p-2da09948.entry.js → p-a074f2ba.entry.js} +1 -1
- package/dist/cobalt/{p-0a294205.entry.js → p-a45e2c00.entry.js} +1 -1
- package/dist/cobalt/p-a530bec2.entry.js +1 -0
- package/dist/cobalt/p-a5d84c7a.entry.js +1 -0
- package/dist/cobalt/p-b004c3bb.entry.js +1 -0
- package/dist/cobalt/p-b1ef5107.entry.js +1 -0
- package/dist/cobalt/p-b28dc0fe.entry.js +1 -0
- package/dist/cobalt/{p-cdedaa82.entry.js → p-b64b0a07.entry.js} +1 -1
- package/dist/cobalt/p-b800e107.entry.js +1 -0
- package/dist/cobalt/p-b9ac1f25.entry.js +1 -0
- package/dist/cobalt/{p-202eadfc.entry.js → p-baeb5d55.entry.js} +1 -1
- package/dist/cobalt/{p-7178113f.entry.js → p-c31f5c1b.entry.js} +1 -1
- package/dist/cobalt/p-c3c2087e.entry.js +1 -0
- package/dist/cobalt/p-c42c505c.entry.js +1 -0
- package/dist/cobalt/p-c7a809c7.entry.js +1 -0
- package/dist/cobalt/{p-eec1c44c.entry.js → p-c8dba82f.entry.js} +1 -1
- package/dist/cobalt/p-cc72557d.entry.js +1 -0
- package/dist/cobalt/p-d21da71a.entry.js +1 -0
- package/dist/cobalt/{p-e1b468c1.entry.js → p-d3c765e3.entry.js} +1 -1
- package/dist/cobalt/p-d7b00e5f.entry.js +1 -0
- package/dist/cobalt/p-d85a751d.entry.js +1 -0
- package/dist/cobalt/{p-3af74ab8.entry.js → p-da546d08.entry.js} +1 -1
- package/dist/cobalt/p-debe0d79.entry.js +1 -0
- package/dist/cobalt/p-e054cb52.entry.js +1 -0
- package/dist/cobalt/p-e5296961.entry.js +1 -0
- package/dist/cobalt/p-e5b5ae89.entry.js +1 -0
- package/dist/cobalt/p-e612b43c.entry.js +1 -0
- package/dist/cobalt/{p-97875bde.entry.js → p-e6882ddd.entry.js} +1 -1
- package/dist/cobalt/p-e7e34852.entry.js +1 -0
- package/dist/cobalt/p-e99832a9.entry.js +1 -0
- package/dist/cobalt/{p-616e4286.entry.js → p-ed2ca588.entry.js} +1 -1
- package/dist/cobalt/p-f1284fcd.entry.js +1 -0
- package/dist/cobalt/{p-6b38e8fb.entry.js → p-f1731fe9.entry.js} +1 -1
- package/dist/cobalt/{p-ba5c6aa7.entry.js → p-f4cebc1f.entry.js} +1 -1
- package/dist/cobalt/p-f52f61d4.entry.js +1 -0
- package/dist/cobalt/{p-a252f8c5.entry.js → p-f83b48fd.entry.js} +1 -1
- package/dist/cobalt/p-fa5c25d6.entry.js +1 -0
- package/dist/cobalt/p-fd39f410.entry.js +1 -0
- package/dist/collection/collection-manifest.json +6 -0
- package/dist/collection/components/co-accordion/co-accordion.css +12 -4
- package/dist/collection/components/co-accordion/co-accordion.js +2 -2
- package/dist/collection/components/co-action-bar/co-action-bar.css +136 -0
- package/dist/collection/components/co-action-bar/co-action-bar.js +247 -0
- package/dist/collection/components/co-app-shell/co-app-shell.css +1 -1
- package/dist/collection/components/co-app-shell/co-app-shell.js +2 -2
- package/dist/collection/components/co-audio-player/co-audio-player.css +57 -0
- package/dist/collection/components/co-audio-player/co-audio-player.js +453 -0
- package/dist/collection/components/co-audio-player/co-audio-player.utils.js +44 -0
- package/dist/collection/components/co-autocomplete/co-autocomplete.css +2 -2
- package/dist/collection/components/co-autocomplete/co-autocomplete.js +14 -5
- package/dist/collection/components/co-avatar-group/co-avatar-group.css +1 -1
- package/dist/collection/components/co-badge/co-badge.js +1 -1
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.css +4 -12
- package/dist/collection/components/co-bottom-sheet/co-bottom-sheet.js +3 -3
- package/dist/collection/components/co-breadcrumb/co-breadcrumb.js +1 -1
- package/dist/collection/components/co-breadcrumb-item/co-breadcrumb-item.js +2 -2
- package/dist/collection/components/co-button/co-button.css +36 -1
- package/dist/collection/components/co-button/co-button.js +31 -5
- package/dist/collection/components/co-button-group/co-button-group.js +2 -2
- package/dist/collection/components/co-calendar/co-calendar.css +2 -2
- package/dist/collection/components/co-calendar/co-calendar.js +1 -1
- package/dist/collection/components/co-calendar-month/co-calendar-month.css +53 -4
- package/dist/collection/components/co-calendar-month/co-calendar-month.js +238 -55
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.css +265 -0
- package/dist/collection/components/co-calendar-timegrid/co-calendar-timegrid.js +1305 -0
- package/dist/collection/components/co-card/co-card.css +1 -1
- package/dist/collection/components/co-card/co-card.js +2 -2
- package/dist/collection/components/co-carousel/co-carousel.js +2 -2
- package/dist/collection/components/co-carousel-item/co-carousel-item.js +1 -1
- package/dist/collection/components/co-checkbox/co-checkbox.css +85 -59
- package/dist/collection/components/co-checkbox/co-checkbox.js +3 -3
- package/dist/collection/components/co-checkbox-group/co-checkbox-group.css +1 -1
- package/dist/collection/components/co-chip/co-chip.css +2 -2
- package/dist/collection/components/co-chip/co-chip.js +2 -2
- package/dist/collection/components/co-color-picker/co-color-picker.css +3 -3
- package/dist/collection/components/co-color-picker/co-color-picker.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.css +8 -8
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-combobox/co-combobox.css +2 -2
- package/dist/collection/components/co-combobox/co-combobox.js +13 -5
- package/dist/collection/components/co-command-search/co-command-search.css +13 -3
- package/dist/collection/components/co-command-search/co-command-search.js +18 -4
- package/dist/collection/components/co-data-table/co-data-table.css +9 -9
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.css +5 -5
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.css +2 -2
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-range-picker/co-date-range-picker.css +2 -2
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.css +325 -0
- package/dist/collection/components/co-date-time-picker/co-date-time-picker.js +1079 -0
- package/dist/collection/components/co-drawer/co-drawer.css +48 -2
- package/dist/collection/components/co-drawer/co-drawer.js +1 -1
- package/dist/collection/components/co-drive-card/co-drive-card.css +5 -5
- package/dist/collection/components/co-drive-card/co-drive-card.js +1 -1
- package/dist/collection/components/co-drop-zone/co-drop-zone.js +1 -1
- package/dist/collection/components/co-empty-state/co-empty-state.js +2 -2
- package/dist/collection/components/co-event-calendar/co-event-calendar.css +21 -9
- package/dist/collection/components/co-event-calendar/co-event-calendar.js +342 -39
- package/dist/collection/components/co-event-popover/co-event-popover.css +25 -0
- package/dist/collection/components/co-event-popover/co-event-popover.js +326 -0
- package/dist/collection/components/co-fab/co-fab.css +18 -12
- package/dist/collection/components/co-fab/co-fab.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.css +5 -5
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.css +10 -1
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-input/co-input.css +3 -3
- package/dist/collection/components/co-json-field/co-json-field.css +1 -1
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.css +4 -4
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.css +1 -1
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.css +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-menu-item/co-menu-item.css +22 -1
- package/dist/collection/components/co-menu-item/co-menu-item.js +20 -1
- package/dist/collection/components/co-modal/co-modal.css +2 -2
- package/dist/collection/components/co-modal/co-modal.js +2 -2
- package/dist/collection/components/co-navbar/co-navbar.js +2 -2
- package/dist/collection/components/co-number-field/co-number-field.css +3 -3
- package/dist/collection/components/co-number-field/co-number-field.js +2 -2
- package/dist/collection/components/co-option-list/co-option-list.css +20 -2
- package/dist/collection/components/co-option-list/co-option-list.js +141 -7
- package/dist/collection/components/co-option-list/optionListLogic.js +13 -0
- package/dist/collection/components/co-overlay/co-overlay.css +2 -2
- package/dist/collection/components/co-overlay/co-overlay.js +1 -1
- package/dist/collection/components/co-page-header/co-page-header.js +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.css +1 -1
- package/dist/collection/components/co-phone-field/co-phone-field.js +1 -1
- package/dist/collection/components/co-popover/co-popover.css +27 -0
- package/dist/collection/components/co-popover/co-popover.js +30 -4
- package/dist/collection/components/co-progress-bar/co-progress-bar.js +2 -2
- package/dist/collection/components/co-progress-circle/co-progress-circle.css +1 -1
- package/dist/collection/components/co-progress-circle/co-progress-circle.js +2 -2
- package/dist/collection/components/co-provider-logo/co-provider-logo.css +23 -0
- package/dist/collection/components/co-provider-logo/co-provider-logo.js +124 -0
- package/dist/collection/components/co-radio/co-radio.css +1 -1
- package/dist/collection/components/co-radio/co-radio.js +3 -3
- package/dist/collection/components/co-radio-group/co-radio-group.css +1 -1
- package/dist/collection/components/co-rating/co-rating.css +1 -1
- package/dist/collection/components/co-rating/co-rating.js +3 -3
- package/dist/collection/components/co-ref-field/co-ref-field.css +4 -4
- package/dist/collection/components/co-ref-field/co-ref-field.js +18 -2
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +16 -5
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.js +3 -3
- package/dist/collection/components/co-rich-text-toolbar/co-rich-text-toolbar.css +20 -12
- package/dist/collection/components/co-row/co-row.js +2 -2
- package/dist/collection/components/co-select/co-select.css +4 -4
- package/dist/collection/components/co-select/co-select.js +1 -1
- package/dist/collection/components/co-separator/co-separator.js +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.css +1 -1
- package/dist/collection/components/co-sidebar/co-sidebar.js +2 -2
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.css +33 -7
- package/dist/collection/components/co-sidebar-nav/co-sidebar-nav.js +12 -2
- package/dist/collection/components/co-skeleton/co-skeleton.js +1 -1
- package/dist/collection/components/co-slider/co-slider.css +9 -2
- package/dist/collection/components/co-slider/co-slider.js +2 -2
- package/dist/collection/components/co-switch/co-switch.css +5 -4
- package/dist/collection/components/co-switch/co-switch.js +3 -3
- package/dist/collection/components/co-tab/co-tab.css +2 -2
- package/dist/collection/components/co-tab/co-tab.js +2 -2
- package/dist/collection/components/co-tab-group/co-tab-group.css +25 -0
- package/dist/collection/components/co-tab-group/co-tab-group.js +18 -2
- package/dist/collection/components/co-tags-field/co-tags-field.css +3 -3
- package/dist/collection/components/co-tags-field/co-tags-field.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.css +2 -2
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toast/co-toast.css +63 -1
- package/dist/collection/components/co-toast/co-toast.js +38 -3
- package/dist/collection/components/co-toggle-button/co-toggle-button.css +1 -1
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.css +1 -1
- package/dist/collection/components/co-tooltip/co-tooltip.js +14 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.css +3 -3
- package/dist/collection/components/co-transfer-list/co-transfer-list.js +2 -2
- package/dist/collection/components/co-video/co-video.css +9 -9
- package/dist/collection/components/co-video/co-video.js +2 -2
- package/dist/collection/utils/dateI18n.js +21 -0
- package/dist/collection/utils/eventColor.js +52 -0
- package/dist/collection/utils/positioning.js +10 -0
- package/dist/components/co-accordion.js +1 -1
- package/dist/components/co-action-bar.d.ts +11 -0
- package/dist/components/co-action-bar.js +1 -0
- package/dist/components/co-app-shell.js +1 -1
- package/dist/components/co-audio-player.d.ts +11 -0
- package/dist/components/co-audio-player.js +1 -0
- package/dist/components/co-autocomplete.js +1 -1
- package/dist/components/co-avatar-group.js +1 -1
- package/dist/components/co-avatar.js +1 -1
- package/dist/components/co-badge.js +1 -1
- package/dist/components/co-bottom-sheet.js +1 -1
- package/dist/components/co-breadcrumb-item.js +1 -1
- package/dist/components/co-breadcrumb.js +1 -1
- package/dist/components/co-button-group.js +1 -1
- package/dist/components/co-button.js +1 -1
- package/dist/components/co-calendar-month.js +1 -1
- package/dist/components/co-calendar-timegrid.d.ts +11 -0
- package/dist/components/co-calendar-timegrid.js +1 -0
- package/dist/components/co-calendar.js +1 -1
- package/dist/components/co-card.js +1 -1
- package/dist/components/co-carousel-item.js +1 -1
- package/dist/components/co-carousel.js +1 -1
- package/dist/components/co-checkbox-group.js +1 -1
- package/dist/components/co-checkbox.js +1 -1
- package/dist/components/co-chip.js +1 -1
- package/dist/components/co-color-picker.js +1 -1
- package/dist/components/co-column-picker.js +1 -1
- package/dist/components/co-combobox.js +1 -1
- package/dist/components/co-command-search.js +1 -1
- package/dist/components/co-data-table-pagination.js +1 -1
- package/dist/components/co-data-table.js +1 -1
- package/dist/components/co-date-field.js +1 -1
- package/dist/components/co-date-picker.js +1 -1
- package/dist/components/co-date-range-picker.js +1 -1
- package/dist/components/co-date-range.js +1 -1
- package/dist/components/co-date-time-picker.d.ts +11 -0
- package/dist/components/co-date-time-picker.js +1 -0
- package/dist/components/co-drawer.js +1 -1
- package/dist/components/co-drive-card.js +1 -1
- package/dist/components/co-drop-zone.js +1 -1
- package/dist/components/co-empty-state.js +1 -1
- package/dist/components/co-event-calendar.js +1 -1
- package/dist/components/co-event-popover.d.ts +11 -0
- package/dist/components/co-event-popover.js +1 -0
- package/dist/components/co-fab.js +1 -1
- package/dist/components/co-file-field.js +1 -1
- package/dist/components/co-file-type-tile.js +1 -1
- package/dist/components/co-helper-text.js +1 -1
- package/dist/components/co-icon-button.js +1 -1
- package/dist/components/co-icon.js +1 -1
- package/dist/components/co-input.js +1 -1
- package/dist/components/co-json-field.js +1 -1
- package/dist/components/co-lightbox.js +1 -1
- package/dist/components/co-list-footer.js +1 -1
- package/dist/components/co-list-item.js +1 -1
- package/dist/components/co-media-thumb.js +1 -1
- package/dist/components/co-menu-divider.js +1 -1
- package/dist/components/co-menu-item.js +1 -1
- package/dist/components/co-menu.js +1 -1
- package/dist/components/co-modal.js +1 -1
- package/dist/components/co-navbar.js +1 -1
- package/dist/components/co-number-field.js +1 -1
- package/dist/components/co-option-list.js +1 -1
- package/dist/components/co-overlay.js +1 -1
- package/dist/components/co-page-header.js +1 -1
- package/dist/components/co-phone-field.js +1 -1
- package/dist/components/co-popover.js +1 -1
- package/dist/components/co-progress-bar.js +1 -1
- package/dist/components/co-progress-circle.js +1 -1
- package/dist/components/co-provider-logo.d.ts +11 -0
- package/dist/components/co-provider-logo.js +1 -0
- package/dist/components/co-radio-group.js +1 -1
- package/dist/components/co-radio.js +1 -1
- package/dist/components/co-rating.js +1 -1
- package/dist/components/co-ref-field.js +1 -1
- package/dist/components/co-rich-text-editor.js +1 -1
- package/dist/components/co-rich-text-toolbar.js +1 -1
- package/dist/components/co-row.js +1 -1
- package/dist/components/co-select.js +1 -1
- package/dist/components/co-separator.js +1 -1
- package/dist/components/co-sidebar-nav.js +1 -1
- package/dist/components/co-sidebar.js +1 -1
- package/dist/components/co-skeleton.js +1 -1
- package/dist/components/co-slider.js +1 -1
- package/dist/components/co-switch.js +1 -1
- package/dist/components/co-tab-group.js +1 -1
- package/dist/components/co-tab.js +1 -1
- package/dist/components/co-tags-field.js +1 -1
- package/dist/components/co-textarea.js +1 -1
- package/dist/components/co-toast.js +1 -1
- package/dist/components/co-toggle-button-group.js +1 -1
- package/dist/components/co-toggle-button.js +1 -1
- package/dist/components/co-tooltip.js +1 -1
- package/dist/components/co-transfer-list.js +1 -1
- package/dist/components/co-video.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/p-2zy1K6zg.js +1 -0
- package/dist/components/{p-B3U63yZw.js → p-BCnjq3jN.js} +1 -1
- package/dist/components/p-BMdapAL8.js +1 -0
- package/dist/components/{p-T0UfY6rA.js → p-BUE9mBqk.js} +1 -1
- package/dist/components/p-Bh2__nEw.js +1 -0
- package/dist/components/{p-Cd3inFSL.js → p-BiefJDu3.js} +1 -1
- package/dist/components/{p-Bul6EdDX.js → p-BlvsTlsS.js} +1 -1
- package/dist/components/p-Bsll5Ofy.js +1 -0
- package/dist/components/p-C-5cLeKr.js +1 -0
- package/dist/components/p-CF8OB_TM.js +1 -0
- package/dist/components/p-CJNo2JDc.js +1 -0
- package/dist/components/p-CKKBJaNB.js +1 -0
- package/dist/components/p-CL4dicvk.js +1 -0
- package/dist/components/{p-DfpOEXHC.js → p-CYv2ig6I.js} +1 -1
- package/dist/components/p-Ce0ZJcks.js +1 -0
- package/dist/components/p-Ch837Ggl.js +1 -0
- package/dist/components/p-CkQqqKRp.js +1 -0
- package/dist/components/p-CmxZEGYq.js +1 -0
- package/dist/components/p-CnNpoKwg.js +1 -0
- package/dist/components/p-Cv5yuGLz.js +1 -0
- package/dist/components/{p-oV_1MoAN.js → p-DAaKsGqj.js} +1 -1
- package/dist/components/p-DFT1qsVu.js +1 -0
- package/dist/components/p-DTJsO_Eg.js +1 -0
- package/dist/components/p-Dxa7c4Ap.js +1 -0
- package/dist/components/p-_YYd42XM.js +1 -0
- package/dist/components/p-e5KibEs8.js +1 -0
- package/dist/components/p-re2gJwnQ.js +1 -0
- package/dist/components/p-ushHimOL.js +1 -0
- package/dist/components/p-xvWmYN3W.js +1 -0
- package/dist/esm/co-accordion.entry.js +4 -4
- package/dist/esm/co-action-bar.entry.js +87 -0
- package/dist/esm/co-app-shell.entry.js +4 -4
- package/dist/esm/co-audio-player.entry.js +277 -0
- package/dist/esm/co-autocomplete.entry.js +15 -6
- package/dist/esm/co-avatar-group.entry.js +2 -2
- package/dist/esm/co-avatar_2.entry.js +17 -6
- package/dist/esm/co-badge.entry.js +2 -2
- package/dist/esm/co-bottom-sheet.entry.js +5 -5
- package/dist/esm/co-breadcrumb-item.entry.js +3 -3
- package/dist/esm/co-breadcrumb.entry.js +2 -2
- package/dist/esm/co-button-group.entry.js +3 -3
- package/dist/esm/co-button.entry.js +13 -6
- package/dist/esm/co-calendar-month_2.entry.js +1598 -0
- package/dist/esm/co-calendar_3.entry.js +13 -13
- package/dist/esm/co-card.entry.js +4 -4
- package/dist/esm/co-carousel-item.entry.js +2 -2
- package/dist/esm/co-carousel.entry.js +4 -4
- package/dist/esm/co-checkbox-group.entry.js +2 -2
- package/dist/esm/co-checkbox.entry.js +5 -5
- package/dist/esm/co-chip_2.entry.js +109 -8
- package/dist/esm/co-color-picker.entry.js +5 -5
- package/dist/esm/co-column-picker.entry.js +4 -4
- package/dist/esm/co-combobox.entry.js +14 -6
- package/dist/esm/co-command-search.entry.js +20 -6
- package/dist/esm/co-data-table-pagination.entry.js +6 -6
- package/dist/esm/co-data-table.entry.js +2 -2
- package/dist/esm/co-date-picker.entry.js +3 -3
- package/dist/esm/co-date-range-picker.entry.js +5 -5
- package/dist/esm/co-date-range.entry.js +2 -2
- package/dist/esm/co-date-time-picker.entry.js +407 -0
- package/dist/esm/co-drive-card.entry.js +3 -3
- package/dist/esm/co-drop-zone.entry.js +2 -2
- package/dist/esm/co-empty-state.entry.js +3 -3
- package/dist/esm/co-event-calendar.entry.js +120 -19
- package/dist/esm/co-event-popover.entry.js +130 -0
- package/dist/esm/co-fab.entry.js +4 -4
- package/dist/esm/co-file-field.entry.js +8 -8
- package/dist/esm/co-file-type-tile.entry.js +3 -3
- package/dist/esm/co-helper-text.entry.js +3 -3
- package/dist/esm/co-icon-button.entry.js +3 -3
- package/dist/esm/co-icon.entry.js +3 -3
- package/dist/esm/co-input.entry.js +3 -3
- package/dist/esm/co-json-field.entry.js +6 -6
- package/dist/esm/co-lightbox.entry.js +7 -7
- package/dist/esm/co-list-footer.entry.js +3 -3
- package/dist/esm/co-list-item.entry.js +6 -6
- package/dist/esm/co-loader.entry.js +1 -1
- package/dist/esm/co-media-thumb.entry.js +3 -3
- package/dist/esm/co-menu-divider.entry.js +2 -2
- package/dist/esm/co-menu-item.entry.js +3 -3
- package/dist/esm/co-menu.entry.js +2 -2
- package/dist/esm/co-modal.entry.js +4 -4
- package/dist/esm/co-navbar.entry.js +3 -3
- package/dist/esm/co-number-field.entry.js +5 -5
- package/dist/esm/co-overlay.entry.js +3 -3
- package/dist/esm/co-page-header.entry.js +2 -2
- package/dist/esm/co-phone-field.entry.js +4 -4
- package/dist/esm/co-popover.entry.js +33 -7
- package/dist/esm/co-progress-bar.entry.js +3 -3
- package/dist/esm/co-progress-circle.entry.js +4 -4
- package/dist/esm/co-provider-logo_2.entry.js +69 -0
- package/dist/esm/co-radio-group.entry.js +2 -2
- package/dist/esm/co-radio.entry.js +5 -5
- package/dist/esm/co-rating.entry.js +5 -5
- package/dist/esm/co-ref-field.entry.js +22 -6
- package/dist/esm/co-rich-text-editor.entry.js +5 -5
- package/dist/esm/co-rich-text-toolbar.entry.js +2 -2
- package/dist/esm/co-rich-text-viewer.entry.js +1 -1
- package/dist/esm/co-row.entry.js +3 -3
- package/dist/esm/co-segmented-bar.entry.js +1 -1
- package/dist/esm/co-select.entry.js +4 -4
- package/dist/esm/co-separator.entry.js +2 -2
- package/dist/esm/co-sidebar-nav.entry.js +14 -4
- package/dist/esm/co-sidebar.entry.js +4 -4
- package/dist/esm/co-slider.entry.js +4 -4
- package/dist/esm/co-switch.entry.js +6 -6
- package/dist/esm/co-tab-group.entry.js +20 -4
- package/dist/esm/co-tab.entry.js +4 -4
- package/dist/esm/co-tags-field.entry.js +9 -9
- package/dist/esm/co-textarea.entry.js +7 -7
- package/dist/esm/co-toast.entry.js +35 -5
- package/dist/esm/co-toggle-button-group.entry.js +3 -3
- package/dist/esm/co-toggle-button.entry.js +4 -4
- package/dist/esm/co-transfer-list.entry.js +4 -4
- package/dist/esm/co-video.entry.js +4 -4
- package/dist/esm/cobalt.js +3 -3
- package/dist/esm/{dateI18n-C1DCLOEl.js → dateI18n-CnNpoKwg.js} +21 -0
- package/dist/esm/{dates-tPYikBRJ.js → dates-BU7SQCje.js} +64 -13
- package/dist/esm/{fieldChip-Bb8YIN0J.js → fieldChip-BZDUy9Z-.js} +1 -1
- package/dist/esm/{index-BCEz3S-z.js → index-CrtiywTB.js} +29 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{positioning-C2mZ7x_Y.js → positioning-BMdapAL8.js} +10 -0
- package/dist/esm/{requiredMark-D7kAMXHM.js → requiredMark-DCD-ZA51.js} +1 -1
- package/dist/esm/time-CF8OB_TM.js +37 -0
- package/dist/esm/{tz-B6JZk8fL.js → tz-1EK-COrb.js} +1 -1
- package/dist/types/components/co-action-bar/co-action-bar.d.ts +66 -0
- package/dist/types/components/co-audio-player/co-audio-player.d.ts +62 -0
- package/dist/types/components/co-audio-player/co-audio-player.utils.d.ts +11 -0
- package/dist/types/components/co-autocomplete/co-autocomplete.d.ts +1 -1
- package/dist/types/components/co-button/co-button.d.ts +18 -1
- package/dist/types/components/co-calendar-month/co-calendar-month.d.ts +33 -1
- package/dist/types/components/co-calendar-timegrid/co-calendar-timegrid.d.ts +178 -0
- package/dist/types/components/co-combobox/co-combobox.d.ts +1 -1
- package/dist/types/components/co-command-search/co-command-search.d.ts +7 -0
- package/dist/types/components/co-date-time-picker/co-date-time-picker.d.ts +131 -0
- package/dist/types/components/co-event-calendar/co-event-calendar.d.ts +61 -8
- package/dist/types/components/co-event-popover/co-event-popover.d.ts +45 -0
- package/dist/types/components/co-menu-item/co-menu-item.d.ts +3 -0
- package/dist/types/components/co-option-list/co-option-list.d.ts +28 -1
- package/dist/types/components/co-option-list/optionListLogic.d.ts +3 -0
- package/dist/types/components/co-provider-logo/co-provider-logo.d.ts +17 -0
- package/dist/types/components/co-ref-field/co-ref-field.d.ts +5 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -0
- package/dist/types/components/co-toast/co-toast.d.ts +19 -0
- package/dist/types/components/co-tooltip/co-tooltip.d.ts +6 -0
- package/dist/types/components.d.ts +1251 -82
- package/dist/types/utils/dateI18n.d.ts +7 -0
- package/dist/types/utils/eventColor.d.ts +20 -0
- package/package.json +3 -3
- package/dist/cjs/co-calendar-month.cjs.entry.js +0 -381
- package/dist/cjs/co-skeleton.cjs.entry.js +0 -26
- package/dist/cobalt/p-037cc571.entry.js +0 -1
- package/dist/cobalt/p-080f62e4.entry.js +0 -1
- package/dist/cobalt/p-0b7359bb.entry.js +0 -1
- package/dist/cobalt/p-0b92167a.entry.js +0 -1
- package/dist/cobalt/p-0bc5a962.entry.js +0 -1
- package/dist/cobalt/p-264508ae.entry.js +0 -1
- package/dist/cobalt/p-27dce0ac.entry.js +0 -1
- package/dist/cobalt/p-30c80e3a.entry.js +0 -1
- package/dist/cobalt/p-331a0108.entry.js +0 -1
- package/dist/cobalt/p-36ad3a96.entry.js +0 -1
- package/dist/cobalt/p-3ecbbe93.entry.js +0 -1
- package/dist/cobalt/p-3f1030fb.entry.js +0 -1
- package/dist/cobalt/p-3f7215e7.entry.js +0 -1
- package/dist/cobalt/p-431cec34.entry.js +0 -1
- package/dist/cobalt/p-4f615cbd.entry.js +0 -1
- package/dist/cobalt/p-5319ac3f.entry.js +0 -1
- package/dist/cobalt/p-532baca4.entry.js +0 -1
- package/dist/cobalt/p-53a276a8.entry.js +0 -1
- package/dist/cobalt/p-543cc00d.entry.js +0 -1
- package/dist/cobalt/p-54857f78.entry.js +0 -1
- package/dist/cobalt/p-585c132d.entry.js +0 -1
- package/dist/cobalt/p-59b114ab.entry.js +0 -1
- package/dist/cobalt/p-5c250889.entry.js +0 -1
- package/dist/cobalt/p-5d0510a5.entry.js +0 -1
- package/dist/cobalt/p-5e246304.entry.js +0 -1
- package/dist/cobalt/p-64115d66.entry.js +0 -1
- package/dist/cobalt/p-75515a8e.entry.js +0 -1
- package/dist/cobalt/p-8155d781.entry.js +0 -1
- package/dist/cobalt/p-8fe5b07e.entry.js +0 -1
- package/dist/cobalt/p-9824c478.entry.js +0 -1
- package/dist/cobalt/p-9bf42bf4.entry.js +0 -1
- package/dist/cobalt/p-9fab9c1f.entry.js +0 -1
- package/dist/cobalt/p-BCEz3S-z.js +0 -2
- package/dist/cobalt/p-C-d15gih.js +0 -1
- package/dist/cobalt/p-C1DCLOEl.js +0 -1
- package/dist/cobalt/p-C2mZ7x_Y.js +0 -1
- package/dist/cobalt/p-D5gr2ent.js +0 -1
- package/dist/cobalt/p-b06af5c6.entry.js +0 -1
- package/dist/cobalt/p-b87a2e7a.entry.js +0 -1
- package/dist/cobalt/p-bb00ae4a.entry.js +0 -1
- package/dist/cobalt/p-c237add6.entry.js +0 -1
- package/dist/cobalt/p-c589ae25.entry.js +0 -1
- package/dist/cobalt/p-c635417b.entry.js +0 -1
- package/dist/cobalt/p-c7d9ff39.entry.js +0 -1
- package/dist/cobalt/p-c9528a5f.entry.js +0 -1
- package/dist/cobalt/p-cbac0a11.entry.js +0 -1
- package/dist/cobalt/p-cd28aa6d.entry.js +0 -1
- package/dist/cobalt/p-d3a1a604.entry.js +0 -1
- package/dist/cobalt/p-d71b800a.entry.js +0 -1
- package/dist/cobalt/p-df752f6e.entry.js +0 -1
- package/dist/cobalt/p-ec9dd3a3.entry.js +0 -1
- package/dist/cobalt/p-eeed80ac.entry.js +0 -1
- package/dist/cobalt/p-f0a98453.entry.js +0 -1
- package/dist/cobalt/p-ff581807.entry.js +0 -1
- package/dist/cobalt/p-fffeb610.entry.js +0 -1
- package/dist/cobalt/p-tPYikBRJ.js +0 -1
- package/dist/components/p-9aNhJfTT.js +0 -1
- package/dist/components/p-B0b9Etx4.js +0 -1
- package/dist/components/p-B7Yv00g9.js +0 -1
- package/dist/components/p-BTa6ss5i.js +0 -1
- package/dist/components/p-BtpRnpaF.js +0 -1
- package/dist/components/p-Bzg5FPSA.js +0 -1
- package/dist/components/p-C1DCLOEl.js +0 -1
- package/dist/components/p-C2mZ7x_Y.js +0 -1
- package/dist/components/p-CQ-8domm.js +0 -1
- package/dist/components/p-CVeEoHr7.js +0 -1
- package/dist/components/p-CYi6V_Ss.js +0 -1
- package/dist/components/p-CmCsm4L-.js +0 -1
- package/dist/components/p-CuQjKAf5.js +0 -1
- package/dist/components/p-CyYF8IJE.js +0 -1
- package/dist/components/p-DKvTqEaf.js +0 -1
- package/dist/components/p-DwwxS5bY.js +0 -1
- package/dist/esm/co-calendar-month.entry.js +0 -379
- package/dist/esm/co-skeleton.entry.js +0 -24
|
@@ -2,25 +2,9 @@ import { h, } from "@stencil/core";
|
|
|
2
2
|
import { addDays, addMonths, getMonthLabel, getMonthMatrix, parseISO, todayYMD, } from "@prolibu-suite/cobalt-date-utils";
|
|
3
3
|
import { normalizeEvents, getLocalTimeZone, } from "@prolibu-suite/cobalt-calendar-utils";
|
|
4
4
|
import { getDateStrings } from "../../utils/dateI18n";
|
|
5
|
-
/**
|
|
6
|
-
* co-event-calendar — the public entry point of the Cobalt Calendars family.
|
|
7
|
-
*
|
|
8
|
-
* Owns view state, the visible anchor date, event normalization and the toolbar,
|
|
9
|
-
* and delegates rendering to the active view (Phase 1: month). All hard math
|
|
10
|
-
* lives in `@prolibu-suite/cobalt-calendar-utils`. Events are CONTROLLED: the
|
|
11
|
-
* calendar emits requests (`coEventDrop`, `coDateSelect`) and the host applies
|
|
12
|
-
* them by updating the `events` prop — leaving it unchanged on failure is the
|
|
13
|
-
* revert.
|
|
14
|
-
*
|
|
15
|
-
* Instants are ISO-8601 strings WITH offset/Z (timed) or "YYYY-MM-DD" (all-day);
|
|
16
|
-
* the calendar never exposes Date objects. `timeZone` controls wall-clock render.
|
|
17
|
-
*
|
|
18
|
-
* @part toolbar - The header toolbar
|
|
19
|
-
* @part body - The active view container
|
|
20
|
-
*/
|
|
21
5
|
export class CoEventCalendar {
|
|
22
6
|
constructor() {
|
|
23
|
-
/** Active view.
|
|
7
|
+
/** Active view. `month`/`week`/`day` are implemented; `agenda` is pending. */
|
|
24
8
|
this.view = 'month';
|
|
25
9
|
/** Events: an array or a JSON string (raw-HTML use). */
|
|
26
10
|
this.events = [];
|
|
@@ -38,18 +22,52 @@ export class CoEventCalendar {
|
|
|
38
22
|
this.availableViews = ['month'];
|
|
39
23
|
/** Default minutes for a timed event missing an end. */
|
|
40
24
|
this.defaultDurationMinutes = 60;
|
|
25
|
+
/** Show the all-day lane in week/day views. */
|
|
26
|
+
this.allDaySlot = true;
|
|
27
|
+
/** Visible-hours window for week/day (minutes-of-day bounds as "HH:mm"). */
|
|
28
|
+
this.minTime = '00:00';
|
|
29
|
+
this.maxTime = '24:00';
|
|
30
|
+
/** Slot/snap granularity (minutes) for week/day. */
|
|
31
|
+
this.slotMinutes = 15;
|
|
32
|
+
this.snapMinutes = 15;
|
|
33
|
+
/** Initial scroll position for week/day ("HH:mm"). */
|
|
34
|
+
this.scrollTime = '07:00';
|
|
35
|
+
/** Show the current-time indicator in week/day. */
|
|
36
|
+
this.nowIndicator = true;
|
|
37
|
+
/** Cargando eventos: se propaga a la grilla (mes/timegrid), que reemplaza
|
|
38
|
+
* SUS chips por bloques skeleton y conserva toda su estructura — bordes,
|
|
39
|
+
* cabecera de días, eje de horas. El toolbar sigue operable y nada se
|
|
40
|
+
* desmonta, así no se pierde el scroll de semana/día. */
|
|
41
|
+
this.loading = false;
|
|
41
42
|
this.goToday = () => this.setAnchor(todayYMD());
|
|
42
43
|
this.goPrev = () => this.step(-1);
|
|
43
44
|
this.goNext = () => this.step(1);
|
|
44
|
-
// ──
|
|
45
|
+
// ── View delegation handlers ─────────────────────────────────────────────
|
|
45
46
|
this.handleDaySelect = (e) => {
|
|
47
|
+
var _a;
|
|
46
48
|
const date = e.detail.date;
|
|
47
|
-
this.coDateSelect.emit({ start: date, end: addDays(date, 1), allDay: true });
|
|
49
|
+
this.coDateSelect.emit({ start: date, end: addDays(date, 1), allDay: true, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
50
|
+
};
|
|
51
|
+
this.handleRangeSelect = (e) => {
|
|
52
|
+
var _a;
|
|
53
|
+
this.coDateSelect.emit({
|
|
54
|
+
start: e.detail.start,
|
|
55
|
+
end: e.detail.end,
|
|
56
|
+
allDay: false,
|
|
57
|
+
rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null,
|
|
58
|
+
});
|
|
48
59
|
};
|
|
49
60
|
this.handleEventClick = (e) => {
|
|
61
|
+
var _a;
|
|
62
|
+
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
63
|
+
if (ev)
|
|
64
|
+
this.coEventClick.emit({ event: ev, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
65
|
+
};
|
|
66
|
+
this.handleEventDblClick = (e) => {
|
|
67
|
+
var _a;
|
|
50
68
|
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
51
69
|
if (ev)
|
|
52
|
-
this.
|
|
70
|
+
this.coEventDblClick.emit({ event: ev, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
53
71
|
};
|
|
54
72
|
this.handleEventDrop = (e) => {
|
|
55
73
|
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
@@ -77,6 +95,13 @@ export class CoEventCalendar {
|
|
|
77
95
|
this.coMoreClick.emit({ date, events });
|
|
78
96
|
};
|
|
79
97
|
}
|
|
98
|
+
/** Limpia el resaltado persistente de selección de la vista activa (timegrid
|
|
99
|
+
* o month) — lo llama el host al cerrar su bubble/form de creación. */
|
|
100
|
+
async clearRangeSelection() {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
const view = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('co-calendar-timegrid, co-calendar-month');
|
|
103
|
+
await ((_b = view === null || view === void 0 ? void 0 : view.clearSelection) === null || _b === void 0 ? void 0 : _b.call(view));
|
|
104
|
+
}
|
|
80
105
|
componentWillLoad() {
|
|
81
106
|
this.anchor = this.date && parseISO(this.date) ? this.date : todayYMD();
|
|
82
107
|
}
|
|
@@ -93,20 +118,60 @@ export class CoEventCalendar {
|
|
|
93
118
|
return this.timeZone || getLocalTimeZone();
|
|
94
119
|
}
|
|
95
120
|
get normalized() {
|
|
121
|
+
const c = this._normCache;
|
|
122
|
+
if (c &&
|
|
123
|
+
c.events === this.events &&
|
|
124
|
+
c.dd === this.defaultDurationMinutes &&
|
|
125
|
+
c.sc === this.statusColors) {
|
|
126
|
+
return c.result;
|
|
127
|
+
}
|
|
96
128
|
const raw = parseEventsProp(this.events);
|
|
97
129
|
const opts = {
|
|
98
130
|
defaultDurationMinutes: this.defaultDurationMinutes,
|
|
99
131
|
statusColors: parseStatusColors(this.statusColors),
|
|
100
132
|
};
|
|
101
|
-
|
|
133
|
+
const result = normalizeEvents(raw, opts);
|
|
134
|
+
this._normCache = {
|
|
135
|
+
events: this.events,
|
|
136
|
+
dd: this.defaultDurationMinutes,
|
|
137
|
+
sc: this.statusColors,
|
|
138
|
+
result,
|
|
139
|
+
};
|
|
140
|
+
return result;
|
|
102
141
|
}
|
|
103
142
|
get viewsList() {
|
|
104
143
|
return Array.isArray(this.availableViews)
|
|
105
144
|
? this.availableViews
|
|
106
145
|
: String(this.availableViews).split(',').map((s) => s.trim()).filter(Boolean);
|
|
107
146
|
}
|
|
108
|
-
/**
|
|
147
|
+
/** Sunday=0 UTC day-of-week of a date-only key (tz-independent). */
|
|
148
|
+
dowOf(dateKey) {
|
|
149
|
+
const [y, mo, d] = dateKey.split('-').map(Number);
|
|
150
|
+
return new Date(Date.UTC(y, mo - 1, d)).getUTCDay();
|
|
151
|
+
}
|
|
152
|
+
weekStart(dateKey) {
|
|
153
|
+
const diff = (this.dowOf(dateKey) - this.firstDayOfWeek + 7) % 7;
|
|
154
|
+
return addDays(dateKey, -diff);
|
|
155
|
+
}
|
|
156
|
+
/** Day keys the active view renders: 7 for week, 1 for day, [] for month. */
|
|
157
|
+
get visibleDates() {
|
|
158
|
+
if (this.view === 'week') {
|
|
159
|
+
const start = this.weekStart(this.anchor);
|
|
160
|
+
return Array.from({ length: 7 }, (_, i) => addDays(start, i));
|
|
161
|
+
}
|
|
162
|
+
if (this.view === 'day')
|
|
163
|
+
return [this.anchor];
|
|
164
|
+
return [];
|
|
165
|
+
}
|
|
166
|
+
/** Visible [start, end) of the active view, as date strings. */
|
|
109
167
|
visibleRange() {
|
|
168
|
+
if (this.view === 'week') {
|
|
169
|
+
const start = this.weekStart(this.anchor);
|
|
170
|
+
return { start, end: addDays(start, 7) };
|
|
171
|
+
}
|
|
172
|
+
if (this.view === 'day') {
|
|
173
|
+
return { start: this.anchor, end: addDays(this.anchor, 1) };
|
|
174
|
+
}
|
|
110
175
|
const a = parseISO(this.anchor);
|
|
111
176
|
const matrix = getMonthMatrix(a.year, a.month, this.firstDayOfWeek);
|
|
112
177
|
const start = matrix[0][0].value;
|
|
@@ -123,12 +188,12 @@ export class CoEventCalendar {
|
|
|
123
188
|
this.emitDatesSet();
|
|
124
189
|
}
|
|
125
190
|
step(dir) {
|
|
126
|
-
if (this.view === 'month')
|
|
191
|
+
if (this.view === 'month')
|
|
127
192
|
this.setAnchor(addMonths(this.anchor, dir));
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
193
|
+
else if (this.view === 'day')
|
|
194
|
+
this.setAnchor(addDays(this.anchor, dir));
|
|
195
|
+
else
|
|
196
|
+
this.setAnchor(addDays(this.anchor, dir * 7)); // week (and agenda fallback)
|
|
132
197
|
}
|
|
133
198
|
switchView(next) {
|
|
134
199
|
if (next === this.view)
|
|
@@ -139,17 +204,29 @@ export class CoEventCalendar {
|
|
|
139
204
|
}
|
|
140
205
|
title() {
|
|
141
206
|
const a = parseISO(this.anchor);
|
|
142
|
-
|
|
207
|
+
if (this.view === 'month')
|
|
208
|
+
return getMonthLabel(a.year, a.month, this.locale, 'long');
|
|
209
|
+
if (this.view === 'day') {
|
|
210
|
+
return new Intl.DateTimeFormat(this.locale, {
|
|
211
|
+
weekday: 'short', day: 'numeric', month: 'short', year: 'numeric',
|
|
212
|
+
}).format(utcDate(this.anchor));
|
|
213
|
+
}
|
|
214
|
+
// week: "13 – 19 jul 2026"
|
|
215
|
+
const start = this.weekStart(this.anchor);
|
|
216
|
+
const end = addDays(start, 6);
|
|
217
|
+
const fmt = new Intl.DateTimeFormat(this.locale, { day: 'numeric', month: 'short' });
|
|
218
|
+
const yr = new Intl.DateTimeFormat(this.locale, { year: 'numeric' }).format(utcDate(end));
|
|
219
|
+
return `${fmt.format(utcDate(start))} – ${fmt.format(utcDate(end))} ${yr}`;
|
|
143
220
|
}
|
|
144
221
|
render() {
|
|
145
222
|
var _a;
|
|
146
223
|
const t = getDateStrings(this.locale);
|
|
147
224
|
const views = this.viewsList;
|
|
148
225
|
const a = parseISO(this.anchor);
|
|
149
|
-
return (h("div", { key: '
|
|
226
|
+
return (h("div", { key: '5fc690577299cbb5d2e4e75d41279ee6f49b9e80', class: "cal" }, h("div", { key: '55b342eacfa324b5eb3e1c819948aba5783e028e', class: "cal__toolbar", part: "toolbar" }, h("button", { key: '7e190cb82abe886d5740b314aeacc136732e0538', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), h("div", { key: '0d12537595e3fb72a7214e968cd952ce68f09b90', class: "cal__title-group" }, h("button", { key: '7d658998a4df6144b9b7752103cae448eb9bea6e', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, h("co-icon", { key: '4b793fef900dfd76f1356b1e78c7f5ed10b3da4f', name: "caret-left", size: 16 })), h("h2", { key: '0461afb4b372f7c95b528f5746b2ba6008181dcc', class: "cal__title", "aria-live": "polite" }, this.title()), h("button", { key: '7b169bb04482f6049f4af0c19cf8bf86a962dabf', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, h("co-icon", { key: 'b426d015251b5a476e2cd34b01d1c7d5d92be71d', name: "caret-right", size: 16 }))), views.length > 1 ? (h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
|
|
150
227
|
var _a;
|
|
151
228
|
return (h("button", { type: "button", role: "tab", "aria-selected": this.view === v ? 'true' : 'false', class: { 'cal__view-btn': true, 'cal__view-btn--active': this.view === v }, onClick: () => this.switchView(v) }, (_a = t[v]) !== null && _a !== void 0 ? _a : v));
|
|
152
|
-
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '
|
|
229
|
+
}))) : (h("span", { class: "cal__views-spacer" }))), h("div", { key: '417cc54fe753d802f30d13992fef86d055c823a3', class: "cal__body", part: "body" }, this.view === 'month' ? (h("co-calendar-month", { loading: this.loading, events: this.normalized, year: a.year, month: a.month, locale: this.locale, firstDayOfWeek: this.firstDayOfWeek, timeZone: this.tz, minDate: this.minDate, maxDate: this.maxDate, editable: this.editable, selectable: this.selectable, maxLanes: this.dayMaxEvents, onCoDaySelect: this.handleDaySelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, onCoMoreClick: this.handleMoreClick })) : this.view === 'week' || this.view === 'day' ? (h("co-calendar-timegrid", { loading: this.loading, events: this.normalized, dates: this.visibleDates, locale: this.locale, timeZone: this.tz, editable: this.editable, selectable: this.selectable, minDate: this.minDate, maxDate: this.maxDate, onCoRangeSelect: this.handleRangeSelect, onCoEventClick: this.handleEventClick, onCoEventDblClick: this.handleEventDblClick, onCoEventDrop: this.handleEventDrop, defaultDurationMinutes: this.defaultDurationMinutes, allDaySlot: this.allDaySlot, minTime: this.minTime, maxTime: this.maxTime, slotMinutes: this.slotMinutes, snapMinutes: this.snapMinutes, scrollTime: this.scrollTime, nowIndicator: this.nowIndicator })) : (h("div", { class: "cal__placeholder" }, h("co-icon", { name: "calendar-dots", size: 32 }), h("p", null, `${this.view} view — coming soon`))))));
|
|
153
230
|
}
|
|
154
231
|
static get is() { return "co-event-calendar"; }
|
|
155
232
|
static get encapsulation() { return "shadow"; }
|
|
@@ -177,7 +254,7 @@ export class CoEventCalendar {
|
|
|
177
254
|
"optional": false,
|
|
178
255
|
"docs": {
|
|
179
256
|
"tags": [],
|
|
180
|
-
"text": "Active view.
|
|
257
|
+
"text": "Active view. `month`/`week`/`day` are implemented; `agenda` is pending."
|
|
181
258
|
},
|
|
182
259
|
"getter": false,
|
|
183
260
|
"setter": false,
|
|
@@ -412,12 +489,12 @@ export class CoEventCalendar {
|
|
|
412
489
|
"type": "string",
|
|
413
490
|
"mutable": false,
|
|
414
491
|
"complexType": {
|
|
415
|
-
"original": "
|
|
492
|
+
"original": "StatusColorsProp",
|
|
416
493
|
"resolved": "string | undefined | { backgroundColor?: string | undefined; borderColor?: string | undefined; }",
|
|
417
494
|
"references": {
|
|
418
|
-
"
|
|
495
|
+
"StatusColorsProp": {
|
|
419
496
|
"location": "global",
|
|
420
|
-
"id": "global::
|
|
497
|
+
"id": "global::StatusColorsProp"
|
|
421
498
|
}
|
|
422
499
|
}
|
|
423
500
|
},
|
|
@@ -451,6 +528,166 @@ export class CoEventCalendar {
|
|
|
451
528
|
"reflect": false,
|
|
452
529
|
"attribute": "default-duration-minutes",
|
|
453
530
|
"defaultValue": "60"
|
|
531
|
+
},
|
|
532
|
+
"allDaySlot": {
|
|
533
|
+
"type": "boolean",
|
|
534
|
+
"mutable": false,
|
|
535
|
+
"complexType": {
|
|
536
|
+
"original": "boolean",
|
|
537
|
+
"resolved": "boolean",
|
|
538
|
+
"references": {}
|
|
539
|
+
},
|
|
540
|
+
"required": false,
|
|
541
|
+
"optional": false,
|
|
542
|
+
"docs": {
|
|
543
|
+
"tags": [],
|
|
544
|
+
"text": "Show the all-day lane in week/day views."
|
|
545
|
+
},
|
|
546
|
+
"getter": false,
|
|
547
|
+
"setter": false,
|
|
548
|
+
"reflect": false,
|
|
549
|
+
"attribute": "all-day-slot",
|
|
550
|
+
"defaultValue": "true"
|
|
551
|
+
},
|
|
552
|
+
"minTime": {
|
|
553
|
+
"type": "string",
|
|
554
|
+
"mutable": false,
|
|
555
|
+
"complexType": {
|
|
556
|
+
"original": "string",
|
|
557
|
+
"resolved": "string",
|
|
558
|
+
"references": {}
|
|
559
|
+
},
|
|
560
|
+
"required": false,
|
|
561
|
+
"optional": false,
|
|
562
|
+
"docs": {
|
|
563
|
+
"tags": [],
|
|
564
|
+
"text": "Visible-hours window for week/day (minutes-of-day bounds as \"HH:mm\")."
|
|
565
|
+
},
|
|
566
|
+
"getter": false,
|
|
567
|
+
"setter": false,
|
|
568
|
+
"reflect": false,
|
|
569
|
+
"attribute": "min-time",
|
|
570
|
+
"defaultValue": "'00:00'"
|
|
571
|
+
},
|
|
572
|
+
"maxTime": {
|
|
573
|
+
"type": "string",
|
|
574
|
+
"mutable": false,
|
|
575
|
+
"complexType": {
|
|
576
|
+
"original": "string",
|
|
577
|
+
"resolved": "string",
|
|
578
|
+
"references": {}
|
|
579
|
+
},
|
|
580
|
+
"required": false,
|
|
581
|
+
"optional": false,
|
|
582
|
+
"docs": {
|
|
583
|
+
"tags": [],
|
|
584
|
+
"text": ""
|
|
585
|
+
},
|
|
586
|
+
"getter": false,
|
|
587
|
+
"setter": false,
|
|
588
|
+
"reflect": false,
|
|
589
|
+
"attribute": "max-time",
|
|
590
|
+
"defaultValue": "'24:00'"
|
|
591
|
+
},
|
|
592
|
+
"slotMinutes": {
|
|
593
|
+
"type": "number",
|
|
594
|
+
"mutable": false,
|
|
595
|
+
"complexType": {
|
|
596
|
+
"original": "number",
|
|
597
|
+
"resolved": "number",
|
|
598
|
+
"references": {}
|
|
599
|
+
},
|
|
600
|
+
"required": false,
|
|
601
|
+
"optional": false,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "Slot/snap granularity (minutes) for week/day."
|
|
605
|
+
},
|
|
606
|
+
"getter": false,
|
|
607
|
+
"setter": false,
|
|
608
|
+
"reflect": false,
|
|
609
|
+
"attribute": "slot-minutes",
|
|
610
|
+
"defaultValue": "15"
|
|
611
|
+
},
|
|
612
|
+
"snapMinutes": {
|
|
613
|
+
"type": "number",
|
|
614
|
+
"mutable": false,
|
|
615
|
+
"complexType": {
|
|
616
|
+
"original": "number",
|
|
617
|
+
"resolved": "number",
|
|
618
|
+
"references": {}
|
|
619
|
+
},
|
|
620
|
+
"required": false,
|
|
621
|
+
"optional": false,
|
|
622
|
+
"docs": {
|
|
623
|
+
"tags": [],
|
|
624
|
+
"text": ""
|
|
625
|
+
},
|
|
626
|
+
"getter": false,
|
|
627
|
+
"setter": false,
|
|
628
|
+
"reflect": false,
|
|
629
|
+
"attribute": "snap-minutes",
|
|
630
|
+
"defaultValue": "15"
|
|
631
|
+
},
|
|
632
|
+
"scrollTime": {
|
|
633
|
+
"type": "string",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "string",
|
|
637
|
+
"resolved": "string",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "Initial scroll position for week/day (\"HH:mm\")."
|
|
645
|
+
},
|
|
646
|
+
"getter": false,
|
|
647
|
+
"setter": false,
|
|
648
|
+
"reflect": false,
|
|
649
|
+
"attribute": "scroll-time",
|
|
650
|
+
"defaultValue": "'07:00'"
|
|
651
|
+
},
|
|
652
|
+
"nowIndicator": {
|
|
653
|
+
"type": "boolean",
|
|
654
|
+
"mutable": false,
|
|
655
|
+
"complexType": {
|
|
656
|
+
"original": "boolean",
|
|
657
|
+
"resolved": "boolean",
|
|
658
|
+
"references": {}
|
|
659
|
+
},
|
|
660
|
+
"required": false,
|
|
661
|
+
"optional": false,
|
|
662
|
+
"docs": {
|
|
663
|
+
"tags": [],
|
|
664
|
+
"text": "Show the current-time indicator in week/day."
|
|
665
|
+
},
|
|
666
|
+
"getter": false,
|
|
667
|
+
"setter": false,
|
|
668
|
+
"reflect": false,
|
|
669
|
+
"attribute": "now-indicator",
|
|
670
|
+
"defaultValue": "true"
|
|
671
|
+
},
|
|
672
|
+
"loading": {
|
|
673
|
+
"type": "boolean",
|
|
674
|
+
"mutable": false,
|
|
675
|
+
"complexType": {
|
|
676
|
+
"original": "boolean",
|
|
677
|
+
"resolved": "boolean",
|
|
678
|
+
"references": {}
|
|
679
|
+
},
|
|
680
|
+
"required": false,
|
|
681
|
+
"optional": false,
|
|
682
|
+
"docs": {
|
|
683
|
+
"tags": [],
|
|
684
|
+
"text": "Cargando eventos: se propaga a la grilla (mes/timegrid), que reemplaza\nSUS chips por bloques skeleton y conserva toda su estructura \u2014 bordes,\ncabecera de d\u00EDas, eje de horas. El toolbar sigue operable y nada se\ndesmonta, as\u00ED no se pierde el scroll de semana/d\u00EDa."
|
|
685
|
+
},
|
|
686
|
+
"getter": false,
|
|
687
|
+
"setter": false,
|
|
688
|
+
"reflect": false,
|
|
689
|
+
"attribute": "loading",
|
|
690
|
+
"defaultValue": "false"
|
|
454
691
|
}
|
|
455
692
|
};
|
|
456
693
|
}
|
|
@@ -471,14 +708,18 @@ export class CoEventCalendar {
|
|
|
471
708
|
"text": "An event chip was activated."
|
|
472
709
|
},
|
|
473
710
|
"complexType": {
|
|
474
|
-
"original": "{ event: NormalizedEvent }",
|
|
475
|
-
"resolved": "{ event: NormalizedEvent; }",
|
|
711
|
+
"original": "{ event: NormalizedEvent; rect: DOMRect | null }",
|
|
712
|
+
"resolved": "{ event: NormalizedEvent; rect: DOMRect | null; }",
|
|
476
713
|
"references": {
|
|
477
714
|
"NormalizedEvent": {
|
|
478
715
|
"location": "import",
|
|
479
716
|
"path": "@prolibu-suite/cobalt-calendar-utils",
|
|
480
717
|
"id": "../calendar-utils/dist/index.d.ts::NormalizedEvent",
|
|
481
718
|
"referenceLocation": "NormalizedEvent"
|
|
719
|
+
},
|
|
720
|
+
"DOMRect": {
|
|
721
|
+
"location": "global",
|
|
722
|
+
"id": "global::DOMRect"
|
|
482
723
|
}
|
|
483
724
|
}
|
|
484
725
|
}
|
|
@@ -493,9 +734,14 @@ export class CoEventCalendar {
|
|
|
493
734
|
"text": "A date/range was selected (create request)."
|
|
494
735
|
},
|
|
495
736
|
"complexType": {
|
|
496
|
-
"original": "{
|
|
497
|
-
"resolved": "{ start: string; end: string; allDay: boolean; }",
|
|
498
|
-
"references": {
|
|
737
|
+
"original": "{\n start: string;\n end: string;\n allDay: boolean;\n /** Viewport-anchored rect of the selected day/range, for the host to anchor a quick-create bubble. */\n rect: DOMRect | { top: number; left: number; width: number; height: number } | null;\n }",
|
|
738
|
+
"resolved": "{ start: string; end: string; allDay: boolean; rect: DOMRect | { top: number; left: number; width: number; height: number; } | null; }",
|
|
739
|
+
"references": {
|
|
740
|
+
"DOMRect": {
|
|
741
|
+
"location": "global",
|
|
742
|
+
"id": "global::DOMRect"
|
|
743
|
+
}
|
|
744
|
+
}
|
|
499
745
|
}
|
|
500
746
|
}, {
|
|
501
747
|
"method": "coEventDrop",
|
|
@@ -519,6 +765,32 @@ export class CoEventCalendar {
|
|
|
519
765
|
}
|
|
520
766
|
}
|
|
521
767
|
}
|
|
768
|
+
}, {
|
|
769
|
+
"method": "coEventDblClick",
|
|
770
|
+
"name": "coEventDblClick",
|
|
771
|
+
"bubbles": false,
|
|
772
|
+
"cancelable": true,
|
|
773
|
+
"composed": true,
|
|
774
|
+
"docs": {
|
|
775
|
+
"tags": [],
|
|
776
|
+
"text": "An event chip was double-activated (direct-edit request)."
|
|
777
|
+
},
|
|
778
|
+
"complexType": {
|
|
779
|
+
"original": "{ event: NormalizedEvent; rect: DOMRect | null }",
|
|
780
|
+
"resolved": "{ event: NormalizedEvent; rect: DOMRect | null; }",
|
|
781
|
+
"references": {
|
|
782
|
+
"NormalizedEvent": {
|
|
783
|
+
"location": "import",
|
|
784
|
+
"path": "@prolibu-suite/cobalt-calendar-utils",
|
|
785
|
+
"id": "../calendar-utils/dist/index.d.ts::NormalizedEvent",
|
|
786
|
+
"referenceLocation": "NormalizedEvent"
|
|
787
|
+
},
|
|
788
|
+
"DOMRect": {
|
|
789
|
+
"location": "global",
|
|
790
|
+
"id": "global::DOMRect"
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
522
794
|
}, {
|
|
523
795
|
"method": "coDatesSet",
|
|
524
796
|
"name": "coDatesSet",
|
|
@@ -573,6 +845,32 @@ export class CoEventCalendar {
|
|
|
573
845
|
}
|
|
574
846
|
}];
|
|
575
847
|
}
|
|
848
|
+
static get methods() {
|
|
849
|
+
return {
|
|
850
|
+
"clearRangeSelection": {
|
|
851
|
+
"complexType": {
|
|
852
|
+
"signature": "() => Promise<void>",
|
|
853
|
+
"parameters": [],
|
|
854
|
+
"references": {
|
|
855
|
+
"Promise": {
|
|
856
|
+
"location": "global",
|
|
857
|
+
"id": "global::Promise"
|
|
858
|
+
},
|
|
859
|
+
"HTMLElement": {
|
|
860
|
+
"location": "global",
|
|
861
|
+
"id": "global::HTMLElement"
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"return": "Promise<void>"
|
|
865
|
+
},
|
|
866
|
+
"docs": {
|
|
867
|
+
"text": "Limpia el resaltado persistente de selecci\u00F3n de la vista activa (timegrid\no month) \u2014 lo llama el host al cerrar su bubble/form de creaci\u00F3n.",
|
|
868
|
+
"tags": []
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
};
|
|
872
|
+
}
|
|
873
|
+
static get elementRef() { return "el"; }
|
|
576
874
|
static get watchers() {
|
|
577
875
|
return [{
|
|
578
876
|
"propName": "date",
|
|
@@ -618,3 +916,8 @@ function zonedDay(ms, timeZone) {
|
|
|
618
916
|
}).format(new Date(ms));
|
|
619
917
|
return parts; // en-CA → "YYYY-MM-DD"
|
|
620
918
|
}
|
|
919
|
+
/** UTC Date for a date-only key — safe for Intl formatting (no tz drift). */
|
|
920
|
+
function utcDate(dateKey) {
|
|
921
|
+
const [y, mo, d] = dateKey.split('-').map(Number);
|
|
922
|
+
return new Date(Date.UTC(y, mo - 1, d, 12)); // noon UTC avoids any date rollover
|
|
923
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
:host { display: contents; }
|
|
2
|
+
.pop {
|
|
3
|
+
position: fixed;
|
|
4
|
+
margin: 0;
|
|
5
|
+
inset: auto;
|
|
6
|
+
width: 400px;
|
|
7
|
+
max-width: calc(100vw - 24px);
|
|
8
|
+
max-height: calc(100vh - 24px);
|
|
9
|
+
overflow: auto;
|
|
10
|
+
background: var(--co-semantic-surface-page);
|
|
11
|
+
border: 1px solid var(--co-semantic-border-default);
|
|
12
|
+
border-radius: var(--co-border-radius-md, 14px);
|
|
13
|
+
box-shadow: var(--co-shadow-xl, var(--co-shadow-lg));
|
|
14
|
+
padding: 0;
|
|
15
|
+
z-index: 1000;
|
|
16
|
+
font-family: var(--co-font-family-primary);
|
|
17
|
+
color: var(--co-semantic-text-default);
|
|
18
|
+
animation: co-pop-in var(--co-motion-duration-fast) var(--co-motion-ease-out);
|
|
19
|
+
outline: none;
|
|
20
|
+
}
|
|
21
|
+
@keyframes co-pop-in { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
|
|
22
|
+
.pop__actions { display: flex; justify-content: flex-end; gap: var(--co-spacing-xxs); padding: var(--co-spacing-sm2) var(--co-spacing-sm2) 0; }
|
|
23
|
+
.pop__head { display: flex; gap: var(--co-spacing-md); padding: var(--co-spacing-xs) var(--co-spacing-xl) var(--co-spacing-xl); }
|
|
24
|
+
.pop__dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: var(--co-border-radius-xxs); margin-top: 5px; background: var(--co-color-primary-azul); }
|
|
25
|
+
.pop__body { min-width: 0; flex: 1 1 auto; }
|