@prolibu-suite/cobalt-core 0.7.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 +8266 -5138
- package/dist/cjs/co-action-bar.cjs.entry.js +89 -0
- package/dist/cjs/co-app-shell.cjs.entry.js +2 -2
- package/dist/cjs/co-audio-player.cjs.entry.js +279 -0
- package/dist/cjs/co-avatar_2.cjs.entry.js +3 -3
- package/dist/cjs/co-badge.cjs.entry.js +1 -1
- package/dist/cjs/co-bottom-sheet.cjs.entry.js +3 -3
- package/dist/cjs/co-breadcrumb-item.cjs.entry.js +2 -2
- package/dist/cjs/co-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/co-button-group.cjs.entry.js +2 -2
- package/dist/cjs/co-button.cjs.entry.js +12 -5
- package/dist/cjs/co-calendar-month_2.cjs.entry.js +1601 -0
- package/dist/cjs/co-calendar_3.cjs.entry.js +9 -9
- package/dist/cjs/co-card.cjs.entry.js +2 -2
- package/dist/cjs/co-carousel-item.cjs.entry.js +1 -1
- package/dist/cjs/co-carousel.cjs.entry.js +3 -3
- package/dist/cjs/co-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/co-chip_2.cjs.entry.js +95 -6
- package/dist/cjs/co-color-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-column-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-data-table-pagination.cjs.entry.js +4 -4
- package/dist/cjs/co-data-table.cjs.entry.js +1 -1
- package/dist/cjs/co-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/co-date-range-picker.cjs.entry.js +2 -2
- package/dist/cjs/co-date-range.cjs.entry.js +1 -1
- package/dist/cjs/co-date-time-picker.cjs.entry.js +409 -0
- package/dist/cjs/co-drive-card.cjs.entry.js +1 -1
- package/dist/cjs/co-drop-zone.cjs.entry.js +1 -1
- package/dist/cjs/co-empty-state.cjs.entry.js +2 -2
- package/dist/cjs/co-event-calendar.cjs.entry.js +118 -17
- package/dist/cjs/co-event-popover.cjs.entry.js +132 -0
- package/dist/cjs/co-fab.cjs.entry.js +2 -2
- package/dist/cjs/co-file-field.cjs.entry.js +5 -5
- package/dist/cjs/co-file-type-tile.cjs.entry.js +2 -2
- package/dist/cjs/co-helper-text.cjs.entry.js +2 -2
- package/dist/cjs/co-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/co-icon.cjs.entry.js +2 -2
- package/dist/cjs/co-json-field.cjs.entry.js +3 -3
- package/dist/cjs/co-lightbox.cjs.entry.js +5 -5
- package/dist/cjs/co-list-footer.cjs.entry.js +1 -1
- package/dist/cjs/co-list-item.cjs.entry.js +4 -4
- package/dist/cjs/co-media-thumb.cjs.entry.js +2 -2
- package/dist/cjs/co-menu-divider.cjs.entry.js +1 -1
- package/dist/cjs/co-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/co-menu.cjs.entry.js +1 -1
- package/dist/cjs/co-modal.cjs.entry.js +2 -2
- package/dist/cjs/co-navbar.cjs.entry.js +2 -2
- package/dist/cjs/co-number-field.cjs.entry.js +2 -2
- package/dist/cjs/co-overlay.cjs.entry.js +1 -1
- package/dist/cjs/co-page-header.cjs.entry.js +1 -1
- package/dist/cjs/co-phone-field.cjs.entry.js +1 -1
- package/dist/cjs/co-popover.cjs.entry.js +1 -1
- package/dist/cjs/co-progress-bar.cjs.entry.js +2 -2
- package/dist/cjs/co-progress-circle.cjs.entry.js +2 -2
- package/dist/cjs/co-provider-logo_2.cjs.entry.js +72 -0
- package/dist/cjs/co-radio.cjs.entry.js +3 -3
- package/dist/cjs/co-rating.cjs.entry.js +3 -3
- package/dist/cjs/co-ref-field.cjs.entry.js +6 -2
- package/dist/cjs/co-rich-text-editor.cjs.entry.js +4 -4
- package/dist/cjs/co-rich-text-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/co-row.cjs.entry.js +2 -2
- package/dist/cjs/co-select.cjs.entry.js +1 -1
- package/dist/cjs/co-separator.cjs.entry.js +1 -1
- package/dist/cjs/co-sidebar-nav.cjs.entry.js +12 -2
- package/dist/cjs/co-sidebar.cjs.entry.js +2 -2
- package/dist/cjs/co-slider.cjs.entry.js +2 -2
- package/dist/cjs/co-switch.cjs.entry.js +3 -3
- package/dist/cjs/co-tab-group.cjs.entry.js +19 -3
- package/dist/cjs/co-tab.cjs.entry.js +2 -2
- package/dist/cjs/co-tags-field.cjs.entry.js +5 -5
- package/dist/cjs/co-textarea.cjs.entry.js +4 -4
- package/dist/cjs/co-toggle-button-group.cjs.entry.js +2 -2
- package/dist/cjs/co-toggle-button.cjs.entry.js +2 -2
- package/dist/cjs/co-video.cjs.entry.js +2 -2
- package/dist/cjs/cobalt.cjs.js +1 -1
- package/dist/cjs/{dateI18n-BdiNAl0_.js → dateI18n-wblvKRq_.js} +21 -0
- package/dist/cjs/{dates-D8D-aS5d.js → dates-TQLHlFd2.js} +64 -13
- package/dist/cjs/index-kBiXCEE7.js +28 -12
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{positioning-DwHW399W.js → positioning-DCj_AJ2T.js} +10 -0
- package/dist/cjs/time-LBHtzLHe.js +42 -0
- package/dist/cobalt/cobalt.esm.js +1 -1
- package/dist/cobalt/{p-616e4286.entry.js → p-00830b8c.entry.js} +1 -1
- package/dist/cobalt/{p-9994fcd8.entry.js → p-0769eee9.entry.js} +1 -1
- package/dist/cobalt/{p-9bf42bf4.entry.js → p-0f18c4d2.entry.js} +1 -1
- package/dist/cobalt/{p-cdedaa82.entry.js → p-0fc1edca.entry.js} +1 -1
- package/dist/cobalt/p-15852fec.entry.js +1 -0
- package/dist/cobalt/{p-eec1c44c.entry.js → p-195c67ee.entry.js} +1 -1
- package/dist/cobalt/{p-B6JZk8fL.js → p-1EK-COrb.js} +1 -1
- package/dist/cobalt/{p-2da09948.entry.js → p-1e9c9d46.entry.js} +1 -1
- package/dist/cobalt/{p-e1b468c1.entry.js → p-20bd3702.entry.js} +1 -1
- package/dist/cobalt/p-25f59046.entry.js +1 -0
- package/dist/cobalt/{p-b06af5c6.entry.js → p-260196cb.entry.js} +1 -1
- package/dist/cobalt/p-2bf44b2b.entry.js +1 -0
- package/dist/cobalt/{p-8155d781.entry.js → p-2c100914.entry.js} +1 -1
- package/dist/cobalt/p-2e1d930f.entry.js +1 -0
- package/dist/cobalt/{p-080f62e4.entry.js → p-35518aee.entry.js} +1 -1
- package/dist/cobalt/{p-28ab9cef.entry.js → p-38ae8bff.entry.js} +1 -1
- package/dist/cobalt/{p-f0a98453.entry.js → p-38cf47b6.entry.js} +1 -1
- package/dist/cobalt/p-39dea0c0.entry.js +1 -0
- package/dist/cobalt/{p-3c681e3a.entry.js → p-3a746267.entry.js} +1 -1
- package/dist/cobalt/p-3ae69426.entry.js +1 -0
- package/dist/cobalt/{p-9211e794.entry.js → p-3d4e697e.entry.js} +1 -1
- package/dist/cobalt/{p-264508ae.entry.js → p-445acc4c.entry.js} +1 -1
- package/dist/cobalt/p-4de9232a.entry.js +1 -0
- package/dist/cobalt/{p-7f78e45c.entry.js → p-50bbfad8.entry.js} +1 -1
- package/dist/cobalt/{p-54f8c68c.entry.js → p-51a1ad38.entry.js} +1 -1
- package/dist/cobalt/{p-75515a8e.entry.js → p-523aca9f.entry.js} +1 -1
- package/dist/cobalt/{p-2f6c7eb5.entry.js → p-52af222b.entry.js} +1 -1
- package/dist/cobalt/{p-0b7359bb.entry.js → p-59f7d44b.entry.js} +1 -1
- package/dist/cobalt/{p-4f615cbd.entry.js → p-5b984323.entry.js} +1 -1
- package/dist/cobalt/{p-8fe5b07e.entry.js → p-5bfaca70.entry.js} +1 -1
- package/dist/cobalt/p-5c1328ff.entry.js +1 -0
- package/dist/cobalt/p-5e21ca17.entry.js +1 -0
- package/dist/cobalt/p-61d5ca3c.entry.js +1 -0
- package/dist/cobalt/{p-64115d66.entry.js → p-6357d9dd.entry.js} +1 -1
- package/dist/cobalt/{p-0a294205.entry.js → p-6985a964.entry.js} +1 -1
- package/dist/cobalt/p-69b8d98e.entry.js +1 -0
- package/dist/cobalt/{p-532baca4.entry.js → p-6b089060.entry.js} +1 -1
- package/dist/cobalt/{p-ceb85838.entry.js → p-6b256d01.entry.js} +1 -1
- package/dist/cobalt/{p-c9528a5f.entry.js → p-7c6b3175.entry.js} +1 -1
- package/dist/cobalt/{p-431cec34.entry.js → p-7d077a7c.entry.js} +1 -1
- package/dist/cobalt/{p-cbac0a11.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-7178113f.entry.js → p-8fe08257.entry.js} +1 -1
- package/dist/cobalt/p-913b2a14.entry.js +1 -0
- package/dist/cobalt/{p-5b84cf37.entry.js → p-959556f4.entry.js} +1 -1
- package/dist/cobalt/{p-331a0108.entry.js → p-99c1ff0f.entry.js} +1 -1
- 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-CnNpoKwg.js +1 -0
- package/dist/cobalt/{p-ba5c6aa7.entry.js → p-a04feb70.entry.js} +1 -1
- package/dist/cobalt/p-a4f39ba2.entry.js +1 -0
- package/dist/cobalt/{p-d3a1a604.entry.js → p-a7c23027.entry.js} +1 -1
- package/dist/cobalt/p-ab8e150e.entry.js +1 -0
- package/dist/cobalt/{p-69ce2269.entry.js → p-acdb68a7.entry.js} +1 -1
- package/dist/cobalt/{p-3b9be8a8.entry.js → p-afd957c0.entry.js} +1 -1
- package/dist/cobalt/{p-c3004e1c.entry.js → p-b45ea918.entry.js} +1 -1
- package/dist/cobalt/{p-eeed80ac.entry.js → p-bad7ce84.entry.js} +1 -1
- package/dist/cobalt/{p-bcd38114.entry.js → p-bebacee2.entry.js} +1 -1
- package/dist/cobalt/{p-ec9dd3a3.entry.js → p-c32949a5.entry.js} +1 -1
- package/dist/cobalt/p-cd5555d2.entry.js +1 -0
- package/dist/cobalt/p-cd96aabf.entry.js +1 -0
- package/dist/cobalt/{p-2661557c.entry.js → p-ce961fba.entry.js} +1 -1
- package/dist/cobalt/p-d56b8a1f.entry.js +1 -0
- package/dist/cobalt/{p-c7d9ff39.entry.js → p-d6fff135.entry.js} +1 -1
- package/dist/cobalt/{p-6b38e8fb.entry.js → p-d71b87d3.entry.js} +1 -1
- package/dist/cobalt/{p-ff581807.entry.js → p-d83e5189.entry.js} +1 -1
- package/dist/cobalt/{p-741cf623.entry.js → p-dc269096.entry.js} +1 -1
- package/dist/cobalt/{p-e4555fda.entry.js → p-dc8e88f4.entry.js} +1 -1
- package/dist/cobalt/p-de5a05fc.entry.js +1 -0
- package/dist/cobalt/{p-0110108f.entry.js → p-df63f23c.entry.js} +1 -1
- package/dist/cobalt/{p-9fab9c1f.entry.js → p-e2188319.entry.js} +1 -1
- package/dist/cobalt/p-f0c589ad.entry.js +1 -0
- package/dist/cobalt/p-f4370423.entry.js +1 -0
- package/dist/cobalt/{p-b87a2e7a.entry.js → p-f4e4bebf.entry.js} +1 -1
- package/dist/cobalt/p-f53b9536.entry.js +1 -0
- package/dist/cobalt/{p-bb00ae4a.entry.js → p-f7ae0228.entry.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -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-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.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 +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.js +2 -2
- package/dist/collection/components/co-column-picker/co-column-picker.js +2 -2
- package/dist/collection/components/co-data-table/co-data-table.css +4 -4
- package/dist/collection/components/co-data-table-pagination/co-data-table-pagination.js +4 -4
- package/dist/collection/components/co-date-field/co-date-field.js +4 -4
- package/dist/collection/components/co-date-range/co-date-range.js +1 -1
- package/dist/collection/components/co-date-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.js +2 -2
- package/dist/collection/components/co-file-field/co-file-field.js +5 -5
- package/dist/collection/components/co-file-type-tile/co-file-type-tile.js +2 -2
- package/dist/collection/components/co-helper-text/co-helper-text.js +2 -2
- package/dist/collection/components/co-icon/co-icon.js +2 -2
- package/dist/collection/components/co-icon-button/co-icon-button.js +1 -1
- package/dist/collection/components/co-json-field/co-json-field.js +3 -3
- package/dist/collection/components/co-lightbox/co-lightbox.js +4 -4
- package/dist/collection/components/co-list-footer/co-list-footer.js +1 -1
- package/dist/collection/components/co-list-item/co-list-item.js +4 -4
- package/dist/collection/components/co-media-thumb/co-media-thumb.js +2 -2
- package/dist/collection/components/co-menu/co-menu.js +1 -1
- package/dist/collection/components/co-menu-divider/co-menu-divider.js +1 -1
- package/dist/collection/components/co-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.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.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.js +6 -2
- package/dist/collection/components/co-rich-text-editor/co-rich-text-editor.css +11 -0
- 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 +8 -0
- package/dist/collection/components/co-row/co-row.js +2 -2
- 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.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 +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.js +5 -5
- package/dist/collection/components/co-textarea/co-textarea.js +4 -4
- package/dist/collection/components/co-toggle-button/co-toggle-button.js +2 -2
- package/dist/collection/components/co-toggle-button-group/co-toggle-button-group.js +2 -2
- package/dist/collection/components/co-tooltip/co-tooltip.js +2 -2
- package/dist/collection/components/co-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/p-B21rOC2Y.js +1 -0
- package/dist/components/{p-Cd3inFSL.js → p-BC6sxVVr.js} +1 -1
- package/dist/components/p-BMdapAL8.js +1 -0
- package/dist/components/p-BQFperIX.js +1 -0
- package/dist/components/{p-CQ-8domm.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-oV_1MoAN.js → p-CIWoKlGj.js} +1 -1
- package/dist/components/{p-Bul6EdDX.js → p-CVCEiwOS.js} +1 -1
- package/dist/components/{p-B0b9Etx4.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-DfpOEXHC.js → p-ChPooamL.js} +1 -1
- package/dist/components/p-CnNpoKwg.js +1 -0
- package/dist/components/{p-B7Yv00g9.js → p-D-3BTFRs.js} +1 -1
- package/dist/components/p-D0wrmRH8.js +1 -0
- package/dist/components/p-DZX7cEqP.js +1 -0
- package/dist/components/{p-B3U63yZw.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-DwwxS5bY.js → p-W8Y8ZuPs.js} +1 -1
- package/dist/components/{p-9aNhJfTT.js → p-cteJszd-.js} +1 -1
- package/dist/components/p-e5KibEs8.js +1 -0
- package/dist/components/{p-Bzg5FPSA.js → p-mUoTCiYa.js} +1 -1
- package/dist/components/p-uZ2D6ESV.js +1 -0
- package/dist/components/{p-BtpRnpaF.js → p-ySi6UG0O.js} +1 -1
- package/dist/esm/co-action-bar.entry.js +87 -0
- package/dist/esm/co-app-shell.entry.js +2 -2
- package/dist/esm/co-audio-player.entry.js +277 -0
- package/dist/esm/co-avatar_2.entry.js +3 -3
- package/dist/esm/co-badge.entry.js +1 -1
- package/dist/esm/co-bottom-sheet.entry.js +3 -3
- package/dist/esm/co-breadcrumb-item.entry.js +2 -2
- package/dist/esm/co-breadcrumb.entry.js +1 -1
- package/dist/esm/co-button-group.entry.js +2 -2
- package/dist/esm/co-button.entry.js +12 -5
- package/dist/esm/co-calendar-month_2.entry.js +1598 -0
- package/dist/esm/co-calendar_3.entry.js +9 -9
- package/dist/esm/co-card.entry.js +2 -2
- package/dist/esm/co-carousel-item.entry.js +1 -1
- package/dist/esm/co-carousel.entry.js +3 -3
- package/dist/esm/co-checkbox.entry.js +4 -4
- package/dist/esm/co-chip_2.entry.js +95 -6
- package/dist/esm/co-color-picker.entry.js +2 -2
- package/dist/esm/co-column-picker.entry.js +2 -2
- package/dist/esm/co-data-table-pagination.entry.js +4 -4
- package/dist/esm/co-data-table.entry.js +1 -1
- package/dist/esm/co-date-picker.entry.js +1 -1
- package/dist/esm/co-date-range-picker.entry.js +2 -2
- package/dist/esm/co-date-range.entry.js +1 -1
- package/dist/esm/co-date-time-picker.entry.js +407 -0
- package/dist/esm/co-drive-card.entry.js +1 -1
- package/dist/esm/co-drop-zone.entry.js +1 -1
- package/dist/esm/co-empty-state.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/co-file-field.entry.js +5 -5
- package/dist/esm/co-file-type-tile.entry.js +2 -2
- package/dist/esm/co-helper-text.entry.js +2 -2
- package/dist/esm/co-icon-button.entry.js +1 -1
- package/dist/esm/co-icon.entry.js +2 -2
- package/dist/esm/co-json-field.entry.js +3 -3
- package/dist/esm/co-lightbox.entry.js +5 -5
- package/dist/esm/co-list-footer.entry.js +1 -1
- package/dist/esm/co-list-item.entry.js +4 -4
- package/dist/esm/co-media-thumb.entry.js +2 -2
- package/dist/esm/co-menu-divider.entry.js +1 -1
- package/dist/esm/co-menu-item.entry.js +2 -2
- package/dist/esm/co-menu.entry.js +1 -1
- package/dist/esm/co-modal.entry.js +2 -2
- package/dist/esm/co-navbar.entry.js +2 -2
- package/dist/esm/co-number-field.entry.js +2 -2
- package/dist/esm/co-overlay.entry.js +1 -1
- package/dist/esm/co-page-header.entry.js +1 -1
- package/dist/esm/co-phone-field.entry.js +1 -1
- package/dist/esm/co-popover.entry.js +1 -1
- package/dist/esm/co-progress-bar.entry.js +2 -2
- package/dist/esm/co-progress-circle.entry.js +2 -2
- package/dist/esm/co-provider-logo_2.entry.js +69 -0
- package/dist/esm/co-radio.entry.js +3 -3
- package/dist/esm/co-rating.entry.js +3 -3
- package/dist/esm/co-ref-field.entry.js +6 -2
- package/dist/esm/co-rich-text-editor.entry.js +4 -4
- package/dist/esm/co-rich-text-toolbar.entry.js +1 -1
- package/dist/esm/co-row.entry.js +2 -2
- package/dist/esm/co-select.entry.js +1 -1
- package/dist/esm/co-separator.entry.js +1 -1
- package/dist/esm/co-sidebar-nav.entry.js +12 -2
- package/dist/esm/co-sidebar.entry.js +2 -2
- package/dist/esm/co-slider.entry.js +2 -2
- package/dist/esm/co-switch.entry.js +3 -3
- package/dist/esm/co-tab-group.entry.js +19 -3
- package/dist/esm/co-tab.entry.js +2 -2
- package/dist/esm/co-tags-field.entry.js +5 -5
- package/dist/esm/co-textarea.entry.js +4 -4
- package/dist/esm/co-toggle-button-group.entry.js +2 -2
- package/dist/esm/co-toggle-button.entry.js +2 -2
- package/dist/esm/co-video.entry.js +2 -2
- package/dist/esm/cobalt.js +1 -1
- 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/index-BCEz3S-z.js +28 -12
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{positioning-C2mZ7x_Y.js → positioning-BMdapAL8.js} +10 -0
- 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-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-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 +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 +1 -0
- package/dist/types/components/co-tab-group/co-tab-group.d.ts +5 -0
- package/dist/types/components.d.ts +1245 -76
- package/dist/types/utils/dateI18n.d.ts +7 -0
- package/dist/types/utils/eventColor.d.ts +20 -0
- package/package.json +2 -2
- 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-0b92167a.entry.js +0 -1
- package/dist/cobalt/p-0bc5a962.entry.js +0 -1
- package/dist/cobalt/p-30c80e3a.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-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-5d0510a5.entry.js +0 -1
- package/dist/cobalt/p-5e246304.entry.js +0 -1
- package/dist/cobalt/p-C1DCLOEl.js +0 -1
- package/dist/cobalt/p-C2mZ7x_Y.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-cd28aa6d.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-fffeb610.entry.js +0 -1
- package/dist/cobalt/p-tPYikBRJ.js +0 -1
- package/dist/components/p-BTa6ss5i.js +0 -1
- package/dist/components/p-C1DCLOEl.js +0 -1
- package/dist/components/p-C2mZ7x_Y.js +0 -1
- package/dist/components/p-CVeEoHr7.js +0 -1
- package/dist/components/p-CYi6V_Ss.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-T0UfY6rA.js +0 -1
- package/dist/esm/co-calendar-month.entry.js +0 -379
- package/dist/esm/co-skeleton.entry.js +0 -24
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-kBiXCEE7.js');
|
|
4
|
-
var dateI18n = require('./dateI18n-
|
|
5
|
-
var dates = require('./dates-
|
|
4
|
+
var dateI18n = require('./dateI18n-wblvKRq_.js');
|
|
5
|
+
var dates = require('./dates-TQLHlFd2.js');
|
|
6
6
|
var tz = require('./tz-Dgom0W69.js');
|
|
7
7
|
|
|
8
8
|
/**
|
|
@@ -104,6 +104,7 @@ function normalizeEvent(raw, options = {}) {
|
|
|
104
104
|
startMs,
|
|
105
105
|
endMs,
|
|
106
106
|
status: raw.status,
|
|
107
|
+
responseState: raw.responseState,
|
|
107
108
|
backgroundColor,
|
|
108
109
|
borderColor,
|
|
109
110
|
className: raw.className,
|
|
@@ -127,7 +128,7 @@ function normalizeEvents(raw, options = {}) {
|
|
|
127
128
|
return out;
|
|
128
129
|
}
|
|
129
130
|
|
|
130
|
-
const coEventCalendarCss = () => `:host{display:flex;flex-direction:column;gap:var(--co-spacing-md);font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);block-size:100%;min-block-size:0}.cal{display:flex;flex-direction:column;gap:var(--co-spacing-md);block-size:100%;min-block-size:0}.cal__toolbar{display:flex;align-items:center;gap:var(--co-spacing-md)}.
|
|
131
|
+
const coEventCalendarCss = () => `:host{display:flex;flex-direction:column;gap:var(--co-spacing-md);font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);block-size:100%;min-block-size:0}.cal{display:flex;flex-direction:column;gap:var(--co-spacing-md);block-size:100%;min-block-size:0}.cal__toolbar{display:flex;align-items:center;gap:var(--co-spacing-md)}.cal__title-group{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:var(--co-spacing-xs)}.cal__title{margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:var(--co-font-size-20, 20px);font-weight:400;letter-spacing:-0.01em;text-transform:capitalize;color:var(--co-semantic-text-default)}.cal__views-spacer{flex:0 0 auto;inline-size:1px}.cal__btn{height:32px;padding:0 var(--co-spacing-md);background:none;border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-full);font-family:inherit;font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-default);cursor:pointer;transition:background 0.1s ease}.cal__btn:hover{background:var(--co-semantic-surface-hover)}.cal__btn:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:1px}.cal__icon-btn{height:32px;width:32px;display:inline-flex;align-items:center;justify-content:center;background:none;border:0;border-radius:var(--co-border-radius-xs);color:var(--co-semantic-text-default);cursor:pointer;transition:background 0.1s ease}.cal__icon-btn:hover{background:var(--co-semantic-surface-hover)}.cal__icon-btn:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:1px}.cal__views{display:inline-flex;gap:2px;padding:2px;background:var(--co-semantic-surface-hover);border-radius:var(--co-border-radius-xs)}.cal__view-btn{height:28px;padding:0 var(--co-spacing-md);background:none;border:0;border-radius:var(--co-border-radius-xxs);font-family:inherit;font-size:var(--co-font-size-14, 14px);color:var(--co-semantic-text-secondary);cursor:pointer;text-transform:capitalize}.cal__view-btn--active{background:var(--co-semantic-surface-page);color:var(--co-semantic-text-default);font-weight:600;box-shadow:0 1px 2px rgba(0, 0, 0, 0.08)}.cal__view-btn:focus-visible{outline:2px solid var(--co-semantic-border-focus);outline-offset:1px}.cal__body{flex:1 1 auto;min-block-size:0;display:flex;flex-direction:column}.cal__body co-calendar-month{flex:1 1 auto;min-block-size:0}.cal__body co-calendar-timegrid{flex:1 1 auto;min-block-size:0}.cal__placeholder{flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:var(--co-spacing-sm);color:var(--co-semantic-text-muted);text-transform:capitalize}`;
|
|
131
132
|
|
|
132
133
|
const CoEventCalendar = class {
|
|
133
134
|
constructor(hostRef) {
|
|
@@ -135,10 +136,11 @@ const CoEventCalendar = class {
|
|
|
135
136
|
this.coEventClick = index.createEvent(this, "coEventClick", 3);
|
|
136
137
|
this.coDateSelect = index.createEvent(this, "coDateSelect", 3);
|
|
137
138
|
this.coEventDrop = index.createEvent(this, "coEventDrop", 3);
|
|
139
|
+
this.coEventDblClick = index.createEvent(this, "coEventDblClick", 3);
|
|
138
140
|
this.coDatesSet = index.createEvent(this, "coDatesSet", 3);
|
|
139
141
|
this.coViewChange = index.createEvent(this, "coViewChange", 3);
|
|
140
142
|
this.coMoreClick = index.createEvent(this, "coMoreClick", 3);
|
|
141
|
-
/** Active view.
|
|
143
|
+
/** Active view. `month`/`week`/`day` are implemented; `agenda` is pending. */
|
|
142
144
|
this.view = 'month';
|
|
143
145
|
/** Events: an array or a JSON string (raw-HTML use). */
|
|
144
146
|
this.events = [];
|
|
@@ -156,18 +158,52 @@ const CoEventCalendar = class {
|
|
|
156
158
|
this.availableViews = ['month'];
|
|
157
159
|
/** Default minutes for a timed event missing an end. */
|
|
158
160
|
this.defaultDurationMinutes = 60;
|
|
161
|
+
/** Show the all-day lane in week/day views. */
|
|
162
|
+
this.allDaySlot = true;
|
|
163
|
+
/** Visible-hours window for week/day (minutes-of-day bounds as "HH:mm"). */
|
|
164
|
+
this.minTime = '00:00';
|
|
165
|
+
this.maxTime = '24:00';
|
|
166
|
+
/** Slot/snap granularity (minutes) for week/day. */
|
|
167
|
+
this.slotMinutes = 15;
|
|
168
|
+
this.snapMinutes = 15;
|
|
169
|
+
/** Initial scroll position for week/day ("HH:mm"). */
|
|
170
|
+
this.scrollTime = '07:00';
|
|
171
|
+
/** Show the current-time indicator in week/day. */
|
|
172
|
+
this.nowIndicator = true;
|
|
173
|
+
/** Cargando eventos: se propaga a la grilla (mes/timegrid), que reemplaza
|
|
174
|
+
* SUS chips por bloques skeleton y conserva toda su estructura — bordes,
|
|
175
|
+
* cabecera de días, eje de horas. El toolbar sigue operable y nada se
|
|
176
|
+
* desmonta, así no se pierde el scroll de semana/día. */
|
|
177
|
+
this.loading = false;
|
|
159
178
|
this.goToday = () => this.setAnchor(dates.todayYMD());
|
|
160
179
|
this.goPrev = () => this.step(-1);
|
|
161
180
|
this.goNext = () => this.step(1);
|
|
162
|
-
// ──
|
|
181
|
+
// ── View delegation handlers ─────────────────────────────────────────────
|
|
163
182
|
this.handleDaySelect = (e) => {
|
|
183
|
+
var _a;
|
|
164
184
|
const date = e.detail.date;
|
|
165
|
-
this.coDateSelect.emit({ start: date, end: dates.addDays(date, 1), allDay: true });
|
|
185
|
+
this.coDateSelect.emit({ start: date, end: dates.addDays(date, 1), allDay: true, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
186
|
+
};
|
|
187
|
+
this.handleRangeSelect = (e) => {
|
|
188
|
+
var _a;
|
|
189
|
+
this.coDateSelect.emit({
|
|
190
|
+
start: e.detail.start,
|
|
191
|
+
end: e.detail.end,
|
|
192
|
+
allDay: false,
|
|
193
|
+
rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null,
|
|
194
|
+
});
|
|
166
195
|
};
|
|
167
196
|
this.handleEventClick = (e) => {
|
|
197
|
+
var _a;
|
|
168
198
|
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
169
199
|
if (ev)
|
|
170
|
-
this.coEventClick.emit({ event: ev });
|
|
200
|
+
this.coEventClick.emit({ event: ev, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
201
|
+
};
|
|
202
|
+
this.handleEventDblClick = (e) => {
|
|
203
|
+
var _a;
|
|
204
|
+
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
205
|
+
if (ev)
|
|
206
|
+
this.coEventDblClick.emit({ event: ev, rect: (_a = e.detail.rect) !== null && _a !== void 0 ? _a : null });
|
|
171
207
|
};
|
|
172
208
|
this.handleEventDrop = (e) => {
|
|
173
209
|
const ev = this.normalized.find((x) => x.id === e.detail.id);
|
|
@@ -195,6 +231,13 @@ const CoEventCalendar = class {
|
|
|
195
231
|
this.coMoreClick.emit({ date, events });
|
|
196
232
|
};
|
|
197
233
|
}
|
|
234
|
+
/** Limpia el resaltado persistente de selección de la vista activa (timegrid
|
|
235
|
+
* o month) — lo llama el host al cerrar su bubble/form de creación. */
|
|
236
|
+
async clearRangeSelection() {
|
|
237
|
+
var _a, _b;
|
|
238
|
+
const view = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('co-calendar-timegrid, co-calendar-month');
|
|
239
|
+
await ((_b = view === null || view === void 0 ? void 0 : view.clearSelection) === null || _b === void 0 ? void 0 : _b.call(view));
|
|
240
|
+
}
|
|
198
241
|
componentWillLoad() {
|
|
199
242
|
this.anchor = this.date && dates.parseISO(this.date) ? this.date : dates.todayYMD();
|
|
200
243
|
}
|
|
@@ -211,20 +254,60 @@ const CoEventCalendar = class {
|
|
|
211
254
|
return this.timeZone || tz.getLocalTimeZone();
|
|
212
255
|
}
|
|
213
256
|
get normalized() {
|
|
257
|
+
const c = this._normCache;
|
|
258
|
+
if (c &&
|
|
259
|
+
c.events === this.events &&
|
|
260
|
+
c.dd === this.defaultDurationMinutes &&
|
|
261
|
+
c.sc === this.statusColors) {
|
|
262
|
+
return c.result;
|
|
263
|
+
}
|
|
214
264
|
const raw = parseEventsProp(this.events);
|
|
215
265
|
const opts = {
|
|
216
266
|
defaultDurationMinutes: this.defaultDurationMinutes,
|
|
217
267
|
statusColors: parseStatusColors(this.statusColors),
|
|
218
268
|
};
|
|
219
|
-
|
|
269
|
+
const result = normalizeEvents(raw, opts);
|
|
270
|
+
this._normCache = {
|
|
271
|
+
events: this.events,
|
|
272
|
+
dd: this.defaultDurationMinutes,
|
|
273
|
+
sc: this.statusColors,
|
|
274
|
+
result,
|
|
275
|
+
};
|
|
276
|
+
return result;
|
|
220
277
|
}
|
|
221
278
|
get viewsList() {
|
|
222
279
|
return Array.isArray(this.availableViews)
|
|
223
280
|
? this.availableViews
|
|
224
281
|
: String(this.availableViews).split(',').map((s) => s.trim()).filter(Boolean);
|
|
225
282
|
}
|
|
226
|
-
/**
|
|
283
|
+
/** Sunday=0 UTC day-of-week of a date-only key (tz-independent). */
|
|
284
|
+
dowOf(dateKey) {
|
|
285
|
+
const [y, mo, d] = dateKey.split('-').map(Number);
|
|
286
|
+
return new Date(Date.UTC(y, mo - 1, d)).getUTCDay();
|
|
287
|
+
}
|
|
288
|
+
weekStart(dateKey) {
|
|
289
|
+
const diff = (this.dowOf(dateKey) - this.firstDayOfWeek + 7) % 7;
|
|
290
|
+
return dates.addDays(dateKey, -diff);
|
|
291
|
+
}
|
|
292
|
+
/** Day keys the active view renders: 7 for week, 1 for day, [] for month. */
|
|
293
|
+
get visibleDates() {
|
|
294
|
+
if (this.view === 'week') {
|
|
295
|
+
const start = this.weekStart(this.anchor);
|
|
296
|
+
return Array.from({ length: 7 }, (_, i) => dates.addDays(start, i));
|
|
297
|
+
}
|
|
298
|
+
if (this.view === 'day')
|
|
299
|
+
return [this.anchor];
|
|
300
|
+
return [];
|
|
301
|
+
}
|
|
302
|
+
/** Visible [start, end) of the active view, as date strings. */
|
|
227
303
|
visibleRange() {
|
|
304
|
+
if (this.view === 'week') {
|
|
305
|
+
const start = this.weekStart(this.anchor);
|
|
306
|
+
return { start, end: dates.addDays(start, 7) };
|
|
307
|
+
}
|
|
308
|
+
if (this.view === 'day') {
|
|
309
|
+
return { start: this.anchor, end: dates.addDays(this.anchor, 1) };
|
|
310
|
+
}
|
|
228
311
|
const a = dates.parseISO(this.anchor);
|
|
229
312
|
const matrix = dates.getMonthMatrix(a.year, a.month, this.firstDayOfWeek);
|
|
230
313
|
const start = matrix[0][0].value;
|
|
@@ -241,12 +324,12 @@ const CoEventCalendar = class {
|
|
|
241
324
|
this.emitDatesSet();
|
|
242
325
|
}
|
|
243
326
|
step(dir) {
|
|
244
|
-
if (this.view === 'month')
|
|
327
|
+
if (this.view === 'month')
|
|
245
328
|
this.setAnchor(dates.addMonths(this.anchor, dir));
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
329
|
+
else if (this.view === 'day')
|
|
330
|
+
this.setAnchor(dates.addDays(this.anchor, dir));
|
|
331
|
+
else
|
|
332
|
+
this.setAnchor(dates.addDays(this.anchor, dir * 7)); // week (and agenda fallback)
|
|
250
333
|
}
|
|
251
334
|
switchView(next) {
|
|
252
335
|
if (next === this.view)
|
|
@@ -257,18 +340,31 @@ const CoEventCalendar = class {
|
|
|
257
340
|
}
|
|
258
341
|
title() {
|
|
259
342
|
const a = dates.parseISO(this.anchor);
|
|
260
|
-
|
|
343
|
+
if (this.view === 'month')
|
|
344
|
+
return dates.getMonthLabel(a.year, a.month, this.locale, 'long');
|
|
345
|
+
if (this.view === 'day') {
|
|
346
|
+
return new Intl.DateTimeFormat(this.locale, {
|
|
347
|
+
weekday: 'short', day: 'numeric', month: 'short', year: 'numeric',
|
|
348
|
+
}).format(utcDate(this.anchor));
|
|
349
|
+
}
|
|
350
|
+
// week: "13 – 19 jul 2026"
|
|
351
|
+
const start = this.weekStart(this.anchor);
|
|
352
|
+
const end = dates.addDays(start, 6);
|
|
353
|
+
const fmt = new Intl.DateTimeFormat(this.locale, { day: 'numeric', month: 'short' });
|
|
354
|
+
const yr = new Intl.DateTimeFormat(this.locale, { year: 'numeric' }).format(utcDate(end));
|
|
355
|
+
return `${fmt.format(utcDate(start))} – ${fmt.format(utcDate(end))} ${yr}`;
|
|
261
356
|
}
|
|
262
357
|
render() {
|
|
263
358
|
var _a;
|
|
264
359
|
const t = dateI18n.getDateStrings(this.locale);
|
|
265
360
|
const views = this.viewsList;
|
|
266
361
|
const a = dates.parseISO(this.anchor);
|
|
267
|
-
return (index.h("div", { key: '
|
|
362
|
+
return (index.h("div", { key: '12c11a1954cd53034be9717fc5fdd80c4195ae6f', class: "cal" }, index.h("div", { key: '44e56be42b6ac944983a6ba29e4aba95c67589ab', class: "cal__toolbar", part: "toolbar" }, index.h("button", { key: '26db9f5e32e604bf6d3f5645b14a92510d224f4c', type: "button", class: "cal__btn", onClick: this.goToday }, (_a = t.today) !== null && _a !== void 0 ? _a : 'Today'), index.h("div", { key: '40878237f7d076531fa210b0b765087923e0256f', class: "cal__title-group" }, index.h("button", { key: '59bb0f5d15e834f95f54a7a2575dc097d213d5ce', type: "button", class: "cal__icon-btn", "aria-label": t.prevMonth, onClick: this.goPrev }, index.h("co-icon", { key: '0db880709e17ab918507bcf9ee0377dd260fbb10', name: "caret-left", size: 16 })), index.h("h2", { key: '772eb75bb0f749c78da037e0fb918cfa2dd3bc12', class: "cal__title", "aria-live": "polite" }, this.title()), index.h("button", { key: '3ec51c2cd9485841aee0b7b9145756e1721791e3', type: "button", class: "cal__icon-btn", "aria-label": t.nextMonth, onClick: this.goNext }, index.h("co-icon", { key: '95d54c3fcd198d16ae8d874afe558480323b993c', name: "caret-right", size: 16 }))), views.length > 1 ? (index.h("div", { class: "cal__views", role: "tablist" }, views.map((v) => {
|
|
268
363
|
var _a;
|
|
269
364
|
return (index.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));
|
|
270
|
-
}))) : (index.h("span", { class: "cal__views-spacer" }))), index.h("div", { key: '
|
|
365
|
+
}))) : (index.h("span", { class: "cal__views-spacer" }))), index.h("div", { key: 'c866ef7e6117d662309e57805511a024640fd18d', class: "cal__body", part: "body" }, this.view === 'month' ? (index.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' ? (index.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 })) : (index.h("div", { class: "cal__placeholder" }, index.h("co-icon", { name: "calendar-dots", size: 32 }), index.h("p", null, `${this.view} view — coming soon`))))));
|
|
271
366
|
}
|
|
367
|
+
get el() { return index.getElement(this); }
|
|
272
368
|
static get watchers() { return {
|
|
273
369
|
"date": [{
|
|
274
370
|
"onDateChange": 0
|
|
@@ -313,6 +409,11 @@ function zonedDay(ms, timeZone) {
|
|
|
313
409
|
}).format(new Date(ms));
|
|
314
410
|
return parts; // en-CA → "YYYY-MM-DD"
|
|
315
411
|
}
|
|
412
|
+
/** UTC Date for a date-only key — safe for Intl formatting (no tz drift). */
|
|
413
|
+
function utcDate(dateKey) {
|
|
414
|
+
const [y, mo, d] = dateKey.split('-').map(Number);
|
|
415
|
+
return new Date(Date.UTC(y, mo - 1, d, 12)); // noon UTC avoids any date rollover
|
|
416
|
+
}
|
|
316
417
|
CoEventCalendar.style = coEventCalendarCss();
|
|
317
418
|
|
|
318
419
|
exports.co_event_calendar = CoEventCalendar;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var index = require('./index-kBiXCEE7.js');
|
|
4
|
+
var positioning = require('./positioning-DCj_AJ2T.js');
|
|
5
|
+
|
|
6
|
+
const coEventPopoverCss = () => `:host{display:contents}.pop{position:fixed;margin:0;inset:auto;width:400px;max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);overflow:auto;background:var(--co-semantic-surface-page);border:1px solid var(--co-semantic-border-default);border-radius:var(--co-border-radius-md, 14px);box-shadow:var(--co-shadow-xl, var(--co-shadow-lg));padding:0;z-index:1000;font-family:var(--co-font-family-primary);color:var(--co-semantic-text-default);animation:co-pop-in 0.15s cubic-bezier(0.05, 0.7, 0.1, 1);outline:none}@media (prefers-reduced-motion: reduce){.pop{animation:none}}@keyframes co-pop-in{from{opacity:0;transform:scale(0.96)}to{opacity:1;transform:scale(1)}}.pop__actions{display:flex;justify-content:flex-end;gap:var(--co-spacing-xxs);padding:var(--co-spacing-sm2) var(--co-spacing-sm2) 0}.pop__head{display:flex;gap:var(--co-spacing-md);padding:var(--co-spacing-xs) var(--co-spacing-xl) var(--co-spacing-xl)}.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)}.pop__body{min-width:0;flex:1 1 auto}`;
|
|
7
|
+
|
|
8
|
+
const CoEventPopover = class {
|
|
9
|
+
constructor(hostRef) {
|
|
10
|
+
index.registerInstance(this, hostRef);
|
|
11
|
+
this.coClose = index.createEvent(this, "coClose", 3);
|
|
12
|
+
this.open = false;
|
|
13
|
+
this.placement = 'right-start';
|
|
14
|
+
/** Render the leading color dot. Set false for dot-less content (quick-create). */
|
|
15
|
+
this.dot = true;
|
|
16
|
+
this.closeOnEscape = true;
|
|
17
|
+
this.closeOnClickOutside = true;
|
|
18
|
+
this.position = () => {
|
|
19
|
+
if (!this.open || !this.panelEl || !this.anchorRect)
|
|
20
|
+
return;
|
|
21
|
+
const a = this.anchorRect;
|
|
22
|
+
const triggerRect = {
|
|
23
|
+
top: a.top, left: a.left, right: a.left + a.width, bottom: a.top + a.height,
|
|
24
|
+
width: a.width, height: a.height,
|
|
25
|
+
};
|
|
26
|
+
const panelRect = this.panelEl.getBoundingClientRect();
|
|
27
|
+
const { top, left } = positioning.computePosition(triggerRect, panelRect, {
|
|
28
|
+
placement: this.placement, offset: 8, flip: true,
|
|
29
|
+
});
|
|
30
|
+
this.panelEl.style.top = `${top}px`;
|
|
31
|
+
this.panelEl.style.left = `${left}px`;
|
|
32
|
+
};
|
|
33
|
+
// The anchor rect is a point-in-time snapshot: once the page scrolls or resizes
|
|
34
|
+
// it's stale, and a top-layer panel would stay pinned to a chip that has moved
|
|
35
|
+
// (or disappeared). Google Calendar closes the popover in that case — match it.
|
|
36
|
+
this.onScroll = () => {
|
|
37
|
+
if (this.open)
|
|
38
|
+
this.requestClose();
|
|
39
|
+
};
|
|
40
|
+
this.onKeydown = (e) => {
|
|
41
|
+
if (!this.open)
|
|
42
|
+
return;
|
|
43
|
+
if (this.closeOnEscape && e.key === 'Escape') {
|
|
44
|
+
e.stopPropagation();
|
|
45
|
+
this.requestClose();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
this.onPointerDown = (e) => {
|
|
49
|
+
if (!this.open || !this.closeOnClickOutside || !this.panelEl)
|
|
50
|
+
return;
|
|
51
|
+
const path = e.composedPath();
|
|
52
|
+
if (path.includes(this.panelEl) || path.includes(this.el))
|
|
53
|
+
return;
|
|
54
|
+
this.requestClose();
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
componentDidLoad() {
|
|
58
|
+
// Stencil no dispara @Watch para el valor inicial (gotcha conocido del DS).
|
|
59
|
+
if (this.open)
|
|
60
|
+
this.onOpenChange(true);
|
|
61
|
+
}
|
|
62
|
+
onOpenChange(v) {
|
|
63
|
+
var _a;
|
|
64
|
+
if (v) {
|
|
65
|
+
this.prevFocus = (_a = document.activeElement) !== null && _a !== void 0 ? _a : undefined;
|
|
66
|
+
requestAnimationFrame(() => this.promoteAndPosition());
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.dismissPanel();
|
|
70
|
+
if (this.prevFocus)
|
|
71
|
+
this.prevFocus.focus();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
onAnchorChange() {
|
|
75
|
+
if (this.open)
|
|
76
|
+
this.position();
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
this.teardownListeners();
|
|
80
|
+
}
|
|
81
|
+
promoteAndPosition() {
|
|
82
|
+
var _a, _b;
|
|
83
|
+
if (!this.open || !this.panelEl)
|
|
84
|
+
return;
|
|
85
|
+
// Promote to the top-layer so contain:layout ancestors don't re-anchor us.
|
|
86
|
+
try {
|
|
87
|
+
(_b = (_a = this.panelEl).showPopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
88
|
+
}
|
|
89
|
+
catch ( /* already shown */_c) { /* already shown */ }
|
|
90
|
+
this.position();
|
|
91
|
+
// Dialog-pattern focus: focus the panel itself (tabIndex=-1). Slotted actions
|
|
92
|
+
// live in light DOM and co-icon-button is shadow — querySelector here can't
|
|
93
|
+
// reach them; Tab from the panel lands on the first slotted action naturally.
|
|
94
|
+
this.panelEl.focus();
|
|
95
|
+
window.addEventListener('resize', this.onScroll);
|
|
96
|
+
window.addEventListener('scroll', this.onScroll, true);
|
|
97
|
+
window.addEventListener('keydown', this.onKeydown, true);
|
|
98
|
+
window.addEventListener('pointerdown', this.onPointerDown, true);
|
|
99
|
+
}
|
|
100
|
+
dismissPanel() {
|
|
101
|
+
var _a, _b;
|
|
102
|
+
try {
|
|
103
|
+
(_b = (_a = this.panelEl) === null || _a === void 0 ? void 0 : _a.hidePopover) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
104
|
+
}
|
|
105
|
+
catch ( /* noop */_c) { /* noop */ }
|
|
106
|
+
this.teardownListeners();
|
|
107
|
+
}
|
|
108
|
+
teardownListeners() {
|
|
109
|
+
window.removeEventListener('resize', this.onScroll);
|
|
110
|
+
window.removeEventListener('scroll', this.onScroll, true);
|
|
111
|
+
window.removeEventListener('keydown', this.onKeydown, true);
|
|
112
|
+
window.removeEventListener('pointerdown', this.onPointerDown, true);
|
|
113
|
+
}
|
|
114
|
+
requestClose() {
|
|
115
|
+
this.coClose.emit();
|
|
116
|
+
}
|
|
117
|
+
render() {
|
|
118
|
+
return (index.h(index.Host, { key: 'ac4fad8add6f42cd02cd516f32e0820f1bc7b1c6' }, index.h("div", { key: 'bd0f4d1adb5d21d329ec5b6dd06c08ef13e86cf4', class: "pop", popover: "manual", role: "dialog", "aria-modal": "false", "aria-label": this.popoverLabel, tabIndex: -1, ref: (el) => (this.panelEl = el) }, index.h("div", { key: '22599ea7ff5fdc39c38b0546ecc6869f6a6e0036', class: "pop__actions", part: "actions" }, index.h("slot", { key: 'fd9fd75cce78007b7407be5e7a0ef54f49ce2dcc', name: "actions" })), index.h("div", { key: '16b5af287977fbab204b69cc94e1591c5db963fb', class: "pop__head" }, this.dot && index.h("span", { key: '6bb8f39ef10c5a81ee461557e42837f43cd44c20', class: "pop__dot", style: this.color ? { background: this.color } : {} }), index.h("div", { key: '0dcd02e0da924f914015ada88388ddc1d9732447', class: "pop__body", part: "body" }, index.h("slot", { key: 'b00ade5c89b5a1e908e9cb463c6b461720609121' }))))));
|
|
119
|
+
}
|
|
120
|
+
get el() { return index.getElement(this); }
|
|
121
|
+
static get watchers() { return {
|
|
122
|
+
"open": [{
|
|
123
|
+
"onOpenChange": 0
|
|
124
|
+
}],
|
|
125
|
+
"anchorRect": [{
|
|
126
|
+
"onAnchorChange": 0
|
|
127
|
+
}]
|
|
128
|
+
}; }
|
|
129
|
+
};
|
|
130
|
+
CoEventPopover.style = coEventPopoverCss();
|
|
131
|
+
|
|
132
|
+
exports.co_event_popover = CoEventPopover;
|
|
@@ -35,7 +35,7 @@ const CoFab = class {
|
|
|
35
35
|
const iconSize = this.size === 'xl' ? 24 : this.size === 'l' ? 24 : this.size === 's' ? 18 : 20;
|
|
36
36
|
const hasLabel = !!this.label;
|
|
37
37
|
const hoverExpand = hasLabel && this.expandOnHover;
|
|
38
|
-
return (index.h("button", { key: '
|
|
38
|
+
return (index.h("button", { key: 'ffedc2aea8b7b813b8e646872f4a0814589f80ab', class: {
|
|
39
39
|
'co-fab': true,
|
|
40
40
|
[`co-fab--${this.variant}`]: true,
|
|
41
41
|
[`co-fab--${this.size}`]: true,
|
|
@@ -43,7 +43,7 @@ const CoFab = class {
|
|
|
43
43
|
'co-fab--hover-expand': hoverExpand,
|
|
44
44
|
'co-fab--disabled': this.disabled,
|
|
45
45
|
[`co-fab--${this.position}`]: this.position !== 'none',
|
|
46
|
-
}, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, index.h("co-icon", { key: '
|
|
46
|
+
}, type: "button", disabled: this.disabled, onClick: this.handleClick, onPointerEnter: this.handleExpandMeasure, onFocusin: this.handleExpandMeasure, "aria-label": this.ariaLabelText || this.label || this.icon }, index.h("co-icon", { key: '34242af8b8de622400507b106e566b8214f53534', name: this.icon, size: iconSize }), this.label && (index.h("span", { key: '56cd6e22505608ebf909a1c0356ecba5c0bae418', class: "co-fab__label", ref: (el) => (this.labelEl = el) }, this.label))));
|
|
47
47
|
}
|
|
48
48
|
get el() { return index.getElement(this); }
|
|
49
49
|
};
|
|
@@ -452,12 +452,12 @@ const CoFileField = class {
|
|
|
452
452
|
const previews = items.filter((it) => isImage(it) && !this.failedPreviews.has(this.keyFor(it)));
|
|
453
453
|
const canReorder = this.reorderable && this.multiple && !this.disabled && !this.readonly && items.length > 1;
|
|
454
454
|
const capacity = this.capacityHint(s);
|
|
455
|
-
return (index.h("div", { key: '
|
|
455
|
+
return (index.h("div", { key: 'd69adf5472c920d9fda750d390c8d66495c7d912', class: {
|
|
456
456
|
'co-file-field': true,
|
|
457
457
|
'co-file-field--disabled': this.disabled,
|
|
458
458
|
'co-file-field--invalid': this.isInvalid,
|
|
459
459
|
[statusClass]: !!statusClass,
|
|
460
|
-
}, part: "wrapper" }, this.label && (index.h("div", { key: '
|
|
460
|
+
}, part: "wrapper" }, this.label && (index.h("div", { key: '3e084a96b7fbd714fa07aeeea09146c3782af2b0', class: "co-file-field__labels" }, index.h("label", { key: '6618041eec9358983794238014f49ae8ad724d79', class: "co-file-field__label", part: "label" }, this.label, index.h(requiredMark.RequiredMark, { key: '16aa21951eedafb190180ee40c1cba13230ef128', required: this.required })))), showDropzone && (index.h("div", { key: '33bfe60be00c270fe9861f0250ffe6e4ddcf820b', class: {
|
|
461
461
|
'co-file-field__dropzone': true,
|
|
462
462
|
'co-file-field__dropzone--drag': this.dragOver,
|
|
463
463
|
}, part: "dropzone", role: "button", tabIndex: this.disabled ? -1 : 0, onClick: this.handleBrowse, onKeyDown: (e) => {
|
|
@@ -465,7 +465,7 @@ const CoFileField = class {
|
|
|
465
465
|
e.preventDefault();
|
|
466
466
|
this.handleBrowse();
|
|
467
467
|
}
|
|
468
|
-
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, index.h("button", { key: '
|
|
468
|
+
}, onDragOver: this.handleDragOver, onDragLeave: this.handleDragLeave, onDrop: this.handleDrop }, index.h("button", { key: '219538469e33b0e5e2a1e26e1591d2b578b548ef', class: "co-file-field__upload-btn", part: "upload-button", type: "button", tabIndex: -1 }, index.h("co-icon", { key: '5021d06fe31100f7b4c6028a868b707aeb3df0c8', name: "file-arrow-up", size: 18 }), index.h("span", { key: 'ba785ab9e8cd6173f367ebf0a4320a37fa4b0832' }, this.uploadButtonText || s.uploadButton)), index.h("span", { key: '1fae290aace7b669b27cd53529ea30c36e009805', class: "co-file-field__dropzone-text" }, this.dropText || s.dropHint), capacity && index.h("span", { key: '999ac1eda129973f4b8710bd252337786e4eb99c', class: "co-file-field__dropzone-hint" }, capacity), index.h("div", { key: 'd2ce4783e5eba96fdf59e998f37411ef0f418458', class: "co-file-field__actions", part: "actions" }, index.h("slot", { key: '55e22bcaff045708471a2837d1c0345d53a0a748', name: "actions" })), index.h("input", { key: '773880ce9b881512d03eac3be0465942c6376843', ref: (el) => (this.inputEl = el), class: "co-file-field__input", type: "file", multiple: this.multiple, accept: this.inputAccept, disabled: this.disabled, onChange: this.handleInputChange, "aria-hidden": "true", tabIndex: -1 }))), items.length > 0 && (index.h("div", { key: '57164ac1e53062957a99ef182394ae9da7636c3e', class: "co-file-field__uploaded" }, this.multiple && (index.h("div", { key: '91894d7e208c62e0aa9407812bbaf7ad491ca275', class: "co-file-field__uploaded-title", part: "uploaded-title" }, `${this.uploadedTitle || s.uploadedTitle} (${items.length})`)), previews.length > 0 && (index.h("div", { key: 'c7f74b97051085770677b6433adb7b54fcf4405d', class: "co-file-field__previews", part: "previews" }, previews.map((item) => (index.h("button", { class: "co-file-field__preview", part: "preview", type: "button", key: `prev-${this.keyFor(item)}`, title: item.name, "aria-label": s.openPreview, onClick: () => this.handlePreviewOpen(item) }, index.h("img", { src: item.thumbnail || item.url, alt: item.name, loading: "lazy", onError: () => this.handlePreviewError(item) })))))), index.h("ul", { key: '4c55ead3dcdff97d502c2f41af86d372712ba478', class: "co-file-field__list", part: "list" }, items.map((item) => {
|
|
469
469
|
const key = this.keyFor(item);
|
|
470
470
|
const draggable = canReorder && item.status === 'done';
|
|
471
471
|
return (index.h("li", { class: {
|
|
@@ -486,10 +486,10 @@ const CoFileField = class {
|
|
|
486
486
|
'co-file-field__action': true,
|
|
487
487
|
'co-file-field__action--copied': this.copiedKey === key,
|
|
488
488
|
}, type: "button", tabIndex: -1, title: this.copiedKey === key ? s.copied : s.copyUrl, "aria-label": s.copyUrl, onClick: () => this.handleCopy(item) }, index.h("co-icon", { name: this.copiedKey === key ? 'check' : 'copy', size: 18 }))), !this.disabled && !this.readonly && (index.h("button", { class: "co-file-field__action", type: "button", tabIndex: -1, title: s.removeFile, "aria-label": s.removeFile, onClick: () => this.coRemove.emit(key) }, index.h("co-icon", { name: "trash", size: 18 })))));
|
|
489
|
-
})))), helper && (index.h("div", { key: '
|
|
489
|
+
})))), helper && (index.h("div", { key: 'ba03c24a5c7e6e0c774b68af85f60ec2fc4a2f0e', class: {
|
|
490
490
|
'co-file-field__helper': true,
|
|
491
491
|
'co-file-field__helper--error': this.isInvalid,
|
|
492
|
-
}, part: "helper" }, this.isInvalid && (index.h("co-icon", { key: '
|
|
492
|
+
}, part: "helper" }, this.isInvalid && (index.h("co-icon", { key: 'ed936a52670f30b4626a1339ce7e6a246bdb65dd', name: "warning-circle", size: 14, class: "co-file-field__helper-icon" })), index.h("span", { key: '295f5de6a6dda88246441816f636cce156aefbe8', class: "co-file-field__helper-text" }, helper)))));
|
|
493
493
|
}
|
|
494
494
|
get el() { return index.getElement(this); }
|
|
495
495
|
};
|
|
@@ -60,7 +60,7 @@ const CoFileTypeTile = class {
|
|
|
60
60
|
const iconSize = Math.round(this.size * 0.5);
|
|
61
61
|
const background = this.colorTags ? meta.tint : 'var(--co-color-gray-100)';
|
|
62
62
|
const color = this.colorTags ? meta.accent : 'var(--co-color-gray-600)';
|
|
63
|
-
return (index.h("span", { key: '
|
|
63
|
+
return (index.h("span", { key: '5eb049a7b3503d2bc82245403da53bdd7fab0ee5', class: {
|
|
64
64
|
'co-file-type-tile': true,
|
|
65
65
|
[`co-file-type-tile--${type}`]: true,
|
|
66
66
|
'co-file-type-tile--mono': !this.colorTags,
|
|
@@ -70,7 +70,7 @@ const CoFileTypeTile = class {
|
|
|
70
70
|
borderRadius: `${this.radius}px`,
|
|
71
71
|
background,
|
|
72
72
|
color,
|
|
73
|
-
} }, index.h("co-icon", { key: '
|
|
73
|
+
} }, index.h("co-icon", { key: 'ebb6d9ea5ffc35daefab825ad26519cb42ce2293', name: meta.icon, size: iconSize, weight: "fill" })));
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
CoFileTypeTile.style = coFileTypeTileCss();
|
|
@@ -18,10 +18,10 @@ const CoHelperText = class {
|
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
20
|
render() {
|
|
21
|
-
return (index.h("div", { key: '
|
|
21
|
+
return (index.h("div", { key: 'e0e318d1f4c3a9f524d11d3a9ad648960d26bb7f', class: {
|
|
22
22
|
'co-helper-text': true,
|
|
23
23
|
[`co-helper-text--${this.status}`]: true,
|
|
24
|
-
}, part: "helper-text" }, index.h("co-icon", { key: '
|
|
24
|
+
}, part: "helper-text" }, index.h("co-icon", { key: 'a65678c3cf9a832ffde08f4f47e09974338745ff', name: this.STATUS_ICON[this.status], size: 14, weight: "fill", class: "co-helper-text__icon" }), index.h("span", { key: 'c3667f4f4b6e53748d5a90ab2fe12e3fcb9cdb2a', class: "co-helper-text__message" }, index.h("slot", { key: 'f854e37b266feee82a4b6281070d3ed84555f13c' }, this.message))));
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
CoHelperText.style = coHelperTextCss();
|
|
@@ -47,7 +47,7 @@ const CoIconButton = class {
|
|
|
47
47
|
: 'var(--co-border-radius-full)',
|
|
48
48
|
}
|
|
49
49
|
: undefined;
|
|
50
|
-
return (index.h("button", { key: '
|
|
50
|
+
return (index.h("button", { key: '380bc110b581dba4f897ba8c8b733598c9e4f9ca', class: {
|
|
51
51
|
'co-icon-button': true,
|
|
52
52
|
[`co-icon-button--${this.variant}`]: true,
|
|
53
53
|
[`co-icon-button--${this.shape}`]: true,
|
|
@@ -69,12 +69,12 @@ const CoIcon = class {
|
|
|
69
69
|
this.svgContent = await loadSvg(this.name, this.weight);
|
|
70
70
|
}
|
|
71
71
|
render() {
|
|
72
|
-
return (index.h(index.Host, { key: '
|
|
72
|
+
return (index.h(index.Host, { key: '3d1fa57953812f68ff8a972f85aaf0d3f7b3ea9e', "aria-hidden": "true", style: {
|
|
73
73
|
display: 'inline-flex',
|
|
74
74
|
width: `${this.size}px`,
|
|
75
75
|
height: `${this.size}px`,
|
|
76
76
|
flexShrink: '0',
|
|
77
|
-
} }, index.h("span", { key: '
|
|
77
|
+
} }, index.h("span", { key: '07413295bbb15dcbacfaaca47e7a25d28744c71e', part: "svg", innerHTML: this.svgContent })));
|
|
78
78
|
}
|
|
79
79
|
static get watchers() { return {
|
|
80
80
|
"name": [{
|
|
@@ -89,17 +89,17 @@ const CoJsonField = class {
|
|
|
89
89
|
render() {
|
|
90
90
|
const helper = this.internalInvalid ? this.invalidMessage : this.helperText;
|
|
91
91
|
const statusClass = this.status !== 'default' ? `co-json-field--${this.status}` : '';
|
|
92
|
-
return (index.h("div", { key: '
|
|
92
|
+
return (index.h("div", { key: 'd8b9c23bee6f09946081ce7cb91c1697941087e0', class: {
|
|
93
93
|
'co-json-field': true,
|
|
94
94
|
'co-json-field--disabled': this.disabled,
|
|
95
95
|
'co-json-field--focused': this.hasFocus,
|
|
96
96
|
'co-json-field--invalid': this.isInvalid,
|
|
97
97
|
[`co-json-field--${this.size}`]: true,
|
|
98
98
|
[statusClass]: !!statusClass,
|
|
99
|
-
}, part: "wrapper" }, this.label && (index.h("div", { key: '
|
|
99
|
+
}, part: "wrapper" }, this.label && (index.h("div", { key: 'f2ed5ce77d91b1387241a1094d56a75cb23ffe56', class: "co-json-field__labels" }, index.h("label", { key: 'bb29ba11182753c531d9c32a54312a85c82d79be', class: "co-json-field__label", part: "label" }, this.label, index.h(requiredMark.RequiredMark, { key: 'f43ada2a1eedea7338022114dcd1a9f3678a2eac', required: this.required })))), index.h("div", { key: 'c49bbb7fbebfb654bad666d651229fefc4fa1527', class: "co-json-field__field", part: "field" }, index.h("textarea", { key: 'e79137036d429efa440931e7b46f1d7e72cf8194', class: "co-json-field__native", rows: this.rows, spellcheck: false, autocomplete: "off", value: this.draft, placeholder: this.placeholder, disabled: this.disabled, readOnly: this.readonly, required: this.required, "aria-invalid": this.isInvalid ? 'true' : 'false', "aria-label": !this.label ? 'JSON' : undefined, onInput: this.handleInput, onFocus: this.handleFocus, onBlur: this.handleBlur, part: "input" })), this.name && index.h("input", { key: 'f84bb6f034b7fe724af92d42b8d19fe6b9e183b1', type: "hidden", name: this.name, value: this.draft }), helper && (index.h("div", { key: '077147072123742355123df6e56fbbff44b12037', class: {
|
|
100
100
|
'co-json-field__helper': true,
|
|
101
101
|
'co-json-field__helper--error': this.isInvalid,
|
|
102
|
-
}, part: "helper" }, this.isInvalid && (index.h("co-icon", { key: '
|
|
102
|
+
}, part: "helper" }, this.isInvalid && (index.h("co-icon", { key: '8ba83b63c2283eb2ce26e43ceed41a7806f7a7b6', name: "warning-circle", size: 14, class: "co-json-field__helper-icon" })), index.h("span", { key: '7da6904539ed1ae85b2ceac2432824d0b9a7fbe2', class: "co-json-field__helper-text" }, helper)))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return index.getElement(this); }
|
|
105
105
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var index = require('./index-kBiXCEE7.js');
|
|
4
|
-
var dateI18n = require('./dateI18n-
|
|
4
|
+
var dateI18n = require('./dateI18n-wblvKRq_.js');
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Built-in UI string dictionary for co-lightbox (aria labels + tooltips).
|
|
@@ -341,17 +341,17 @@ const CoLightbox = class {
|
|
|
341
341
|
const counter = s.counter
|
|
342
342
|
.replace('{i}', String(this.index + 1))
|
|
343
343
|
.replace('{n}', String(imgs.length));
|
|
344
|
-
return (index.h("div", { key: '
|
|
344
|
+
return (index.h("div", { key: '409eeaf562838f77035c1ec68db8de59aa862f5e', class: { 'co-lightbox': true, 'co-lightbox--open': this.open }, part: "overlay", role: "dialog", "aria-modal": "true", "aria-label": img === null || img === void 0 ? void 0 : img.alt, popover: "manual", ref: this.syncTopLayer, onClick: this.requestClose }, img && (index.h("div", { key: '1e92d6f50ab44b6a70407a2c55acba360c0c66c0', class: "co-lightbox__toolbar", part: "toolbar", onClick: this.stop }, index.h("span", { key: '0181054cd227183e0b942e1262d42a29125852b5', class: "co-lightbox__caption", title: img.alt }, img.alt), index.h("div", { key: '97cb4d596a790dc1fe41cda38bdd4b0b4a7d873f', class: "co-lightbox__zoom" }, index.h("button", { key: '8c37c4b6978b8bfb1ce7a33a52fce30e2d740d4b', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomOut, title: s.zoomOut, onClick: () => this.zoomAt(this.scale / WHEEL_FACTOR, 0, 0) }, index.h("co-icon", { key: '294ee562bfe7be7bb2a181a8411045a4d0c1b684', name: "minus", size: 16 })), index.h("button", { key: 'f32438655d3a7e81a08196720471212443594d7d', class: "co-lightbox__btn co-lightbox__zoom-value", type: "button", "aria-label": s.zoomReset, title: s.zoomReset, onClick: () => this.resetView() }, Math.round(this.scale * 100), "%"), index.h("button", { key: 'c82db20eda5ef0bd671f551f24ff96771f30a579', class: "co-lightbox__btn", type: "button", "aria-label": s.zoomIn, title: s.zoomIn, onClick: () => this.zoomAt(this.scale * WHEEL_FACTOR, 0, 0) }, index.h("co-icon", { key: '855559de89e53c3aa8ae34802fbc04da8a04e28d', name: "plus", size: 16 }))), index.h("button", { key: '00cbfeec37137ba3a5c86801caf5e41e17a25c57', class: "co-lightbox__btn", type: "button", "aria-label": s.openOriginal, title: s.openOriginal, onClick: this.openOriginal }, index.h("co-icon", { key: '62f5c52bd92b3470b3940f59e61c4f89fad7e86b', name: "arrow-square-out", size: 16 })), index.h("button", { key: '800b50c607772142b2229b4a19fe970998a8e886', class: "co-lightbox__btn", part: "close", type: "button", "aria-label": s.close, title: s.close, ref: (el) => (this.closeBtnEl = el), onClick: this.requestClose }, index.h("co-icon", { key: '9850ddfb8c2aa409fa35ea9f357bbea2ace3aa41', name: "x", size: 16 })))), img && (index.h("div", { key: '4b669e9c6599a25743ba6d194c80faf1cdbfceec', class: "co-lightbox__stage", ref: (el) => (this.stageEl = el), onWheel: this.handleWheel }, index.h("img", { key: '34218bfdd2691dc399ed03ca25d64ee81106114c', class: {
|
|
345
345
|
'co-lightbox__img': true,
|
|
346
346
|
'co-lightbox__img--zoomed': this.scale > MIN_SCALE,
|
|
347
347
|
'co-lightbox__img--dragging': this.dragging,
|
|
348
|
-
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (index.h("button", { key: '
|
|
348
|
+
}, part: "image", ref: (el) => (this.imgEl = el), src: img.src, alt: img.alt || '', draggable: false, style: { transform: `translate(${this.tx}px, ${this.ty}px) scale(${this.scale})` }, onClick: this.stop, onDblClick: this.handleDblClick, onPointerDown: this.handlePointerDown, onPointerMove: this.handlePointerMove, onPointerUp: this.handlePointerUp, onPointerCancel: this.handlePointerUp }))), img && multi && (index.h("button", { key: 'dc9a8e78cfdf8e220e2173a8960f06a8bdeaea59', class: "co-lightbox__nav co-lightbox__nav--prev", part: "prev", type: "button", "aria-label": s.prevImage, title: s.prevImage, onClick: (e) => {
|
|
349
349
|
e.stopPropagation();
|
|
350
350
|
this.goTo(-1);
|
|
351
|
-
} }, index.h("co-icon", { key: '
|
|
351
|
+
} }, index.h("co-icon", { key: '020e87affb9ad79b48ec9d77a7796923127b45b4', name: "caret-left", size: 24 }))), img && multi && (index.h("button", { key: '5dd82a8b66cc3b2abc4c04483141032a7a07bf2d', class: "co-lightbox__nav co-lightbox__nav--next", part: "next", type: "button", "aria-label": s.nextImage, title: s.nextImage, onClick: (e) => {
|
|
352
352
|
e.stopPropagation();
|
|
353
353
|
this.goTo(1);
|
|
354
|
-
} }, index.h("co-icon", { key: '
|
|
354
|
+
} }, index.h("co-icon", { key: '85e8aaebc526455e22eb635b2e64f5105730b56e', name: "caret-right", size: 24 }))), img && multi && (index.h("div", { key: '6976d3bb7f5594e8d40cf01b05cc7611cb6066cb', class: "co-lightbox__counter", part: "counter", onClick: this.stop }, counter))));
|
|
355
355
|
}
|
|
356
356
|
get el() { return index.getElement(this); }
|
|
357
357
|
static get watchers() { return {
|
|
@@ -17,7 +17,7 @@ const CoListFooter = class {
|
|
|
17
17
|
this.handleSecondary = () => this.coSecondary.emit();
|
|
18
18
|
}
|
|
19
19
|
render() {
|
|
20
|
-
return (index.h("div", { key: '
|
|
20
|
+
return (index.h("div", { key: '54b813b714dbcdfb535349f6f49c715e53bdadd7', class: "co-list-footer", part: "footer" }, this.secondaryLabel && (index.h("button", { key: '6fdf4c75f1803532e43b0609fd765aeb79ae3d89', class: "co-list-footer__btn co-list-footer__btn--secondary", type: "button", onClick: this.handleSecondary }, this.secondaryIcon && index.h("co-icon", { key: 'e4199ccd7f50044b12aa7bc16b3233fbc4ffd9bf', name: this.secondaryIcon, size: 16 }), index.h("span", { key: 'f6f81eaf8ae03526fd3cf5e31946d1470523adb3' }, this.secondaryLabel))), this.primaryLabel && (index.h("button", { key: '5ab90aceea926978ef73f6be77b7c9aa8fd45156', class: "co-list-footer__btn co-list-footer__btn--primary", type: "button", onClick: this.handlePrimary }, this.primaryIcon && index.h("co-icon", { key: '2693de047b35e795ee24932612b4b01c8050ef1f', name: this.primaryIcon, size: 16 }), index.h("span", { key: 'e29b11a48ee4bf3acda5a7a4f493cafdd6fc691d' }, this.primaryLabel))), index.h("slot", { key: '7f9ed9622ff7ed6486b5c253f9c3bd4e5c2ce1e3' })));
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
CoListFooter.style = coListFooterCss();
|