@abraca/nuxt 0.3.0 → 1.6.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/dist/module.d.mts +26 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +51 -8
- package/dist/runtime/components/AAccountSwitcherModal.d.vue.ts +10 -0
- package/dist/runtime/components/AAccountSwitcherModal.vue +158 -0
- package/dist/runtime/components/AAccountSwitcherModal.vue.d.ts +10 -0
- package/dist/runtime/components/AClaimAccountModal.d.vue.ts +10 -0
- package/dist/runtime/components/AClaimAccountModal.vue +230 -0
- package/dist/runtime/components/AClaimAccountModal.vue.d.ts +10 -0
- package/dist/runtime/components/ACollaborationUsers.vue +1 -0
- package/dist/runtime/components/AColorPicker.vue +4 -2
- package/dist/runtime/components/ACommandPalette.vue +4 -2
- package/dist/runtime/components/AConnectServerModal.d.vue.ts +12 -0
- package/dist/runtime/components/AConnectServerModal.vue +200 -0
- package/dist/runtime/components/AConnectServerModal.vue.d.ts +12 -0
- package/dist/runtime/components/AConnectionStatus.vue +1 -0
- package/dist/runtime/components/ADocPickModal.d.vue.ts +13 -0
- package/dist/runtime/components/ADocPickModal.vue +71 -0
- package/dist/runtime/components/ADocPickModal.vue.d.ts +13 -0
- package/dist/runtime/components/ADocRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/ADocRenderer.vue +6 -0
- package/dist/runtime/components/ADocRenderer.vue.d.ts +1 -1
- package/dist/runtime/components/ADocTypeSelect.vue +4 -3
- package/dist/runtime/components/ADocumentTree.d.vue.ts +3 -3
- package/dist/runtime/components/ADocumentTree.vue +118 -10
- package/dist/runtime/components/ADocumentTree.vue.d.ts +3 -3
- package/dist/runtime/components/AEditor.d.vue.ts +4 -4
- package/dist/runtime/components/AEditor.vue +16 -1
- package/dist/runtime/components/AEditor.vue.d.ts +4 -4
- package/dist/runtime/components/AFloatingWindow.d.vue.ts +54 -2
- package/dist/runtime/components/AFloatingWindow.vue +15 -14
- package/dist/runtime/components/AFloatingWindow.vue.d.ts +54 -2
- package/dist/runtime/components/AIconPicker.vue +2 -0
- package/dist/runtime/components/AInviteRedeemModal.d.vue.ts +10 -0
- package/dist/runtime/components/AInviteRedeemModal.vue +122 -0
- package/dist/runtime/components/AInviteRedeemModal.vue.d.ts +10 -0
- package/dist/runtime/components/ANodePanel.vue +10 -2
- package/dist/runtime/components/ANotifications.vue +3 -1
- package/dist/runtime/components/APermissionGuard.vue +1 -0
- package/dist/runtime/components/APresence.vue +1 -0
- package/dist/runtime/components/AProvider.d.vue.ts +0 -1
- package/dist/runtime/components/AProvider.vue +17 -4
- package/dist/runtime/components/AProvider.vue.d.ts +0 -1
- package/dist/runtime/components/ARoleBadge.vue +1 -0
- package/dist/runtime/components/ASpaceFormModal.d.vue.ts +16 -0
- package/dist/runtime/components/ASpaceFormModal.vue +182 -0
- package/dist/runtime/components/ASpaceFormModal.vue.d.ts +16 -0
- package/dist/runtime/components/AVoiceBar.vue +3 -1
- package/dist/runtime/components/AVoiceTile.vue +1 -0
- package/dist/runtime/components/AWindowLayer.vue +1 -0
- package/dist/runtime/components/aware/AArea.d.vue.ts +1 -1
- package/dist/runtime/components/aware/AArea.vue +2 -1
- package/dist/runtime/components/aware/AArea.vue.d.ts +1 -1
- package/dist/runtime/components/aware/AAvatar.vue +2 -0
- package/dist/runtime/components/aware/AButton.vue +2 -1
- package/dist/runtime/components/aware/ACursorLabel.vue +1 -0
- package/dist/runtime/components/aware/ADocBadge.vue +2 -0
- package/dist/runtime/components/aware/AFacepile.vue +2 -0
- package/dist/runtime/components/aware/AInput.vue +3 -2
- package/dist/runtime/components/aware/ASelect.vue +3 -2
- package/dist/runtime/components/aware/ATextarea.vue +3 -2
- package/dist/runtime/components/aware/AUserList.vue +2 -0
- package/dist/runtime/components/chat/AChatAgentStatus.d.vue.ts +15 -0
- package/dist/runtime/components/chat/AChatAgentStatus.vue +95 -0
- package/dist/runtime/components/chat/AChatAgentStatus.vue.d.ts +15 -0
- package/dist/runtime/components/chat/AChatDocLink.d.vue.ts +18 -0
- package/dist/runtime/components/chat/AChatDocLink.vue +29 -0
- package/dist/runtime/components/chat/AChatDocLink.vue.d.ts +18 -0
- package/dist/runtime/components/chat/AChatDocQuote.d.vue.ts +26 -0
- package/dist/runtime/components/chat/AChatDocQuote.vue +47 -0
- package/dist/runtime/components/chat/AChatDocQuote.vue.d.ts +26 -0
- package/dist/runtime/components/chat/AChatInput.d.vue.ts +45 -0
- package/dist/runtime/components/chat/AChatInput.vue +219 -0
- package/dist/runtime/components/chat/AChatInput.vue.d.ts +45 -0
- package/dist/runtime/components/chat/AChatList.d.vue.ts +59 -0
- package/dist/runtime/components/chat/AChatList.vue +184 -0
- package/dist/runtime/components/chat/AChatList.vue.d.ts +59 -0
- package/dist/runtime/components/chat/AChatMemberList.d.vue.ts +24 -0
- package/dist/runtime/components/chat/AChatMemberList.vue +97 -0
- package/dist/runtime/components/chat/AChatMemberList.vue.d.ts +24 -0
- package/dist/runtime/components/chat/AChatMessages.d.vue.ts +31 -0
- package/dist/runtime/components/chat/AChatMessages.vue +161 -0
- package/dist/runtime/components/chat/AChatMessages.vue.d.ts +31 -0
- package/dist/runtime/components/chat/AChatPanel.d.vue.ts +84 -0
- package/dist/runtime/components/chat/AChatPanel.vue +89 -0
- package/dist/runtime/components/chat/AChatPanel.vue.d.ts +84 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.d.vue.ts +11 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.vue +58 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.vue.d.ts +11 -0
- package/dist/runtime/components/editor/AColorPalettePopover.d.vue.ts +23 -0
- package/dist/runtime/components/editor/AColorPalettePopover.vue +71 -0
- package/dist/runtime/components/editor/AColorPalettePopover.vue.d.ts +23 -0
- package/dist/runtime/components/editor/ADocLinkPopover.d.vue.ts +7 -0
- package/dist/runtime/components/editor/ADocLinkPopover.vue +74 -0
- package/dist/runtime/components/editor/ADocLinkPopover.vue.d.ts +7 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.d.vue.ts +10 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.vue +353 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.vue.d.ts +10 -0
- package/dist/runtime/components/editor/AFileGlbViewer.d.vue.ts +13 -0
- package/dist/runtime/components/editor/AFileGlbViewer.vue +187 -0
- package/dist/runtime/components/editor/AFileGlbViewer.vue.d.ts +13 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.d.vue.ts +7 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.vue +62 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.vue.d.ts +7 -0
- package/dist/runtime/components/editor/ALinkPopover.d.vue.ts +8 -0
- package/dist/runtime/components/editor/ALinkPopover.vue +149 -0
- package/dist/runtime/components/editor/ALinkPopover.vue.d.ts +8 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.d.vue.ts +28 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.vue +232 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.d.vue.ts +2 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +207 -327
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +2 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue +3 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue +1 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue +14 -12
- package/dist/runtime/components/renderers/AGalleryRenderer.vue +120 -12
- package/dist/runtime/components/renderers/AGraphRenderer.vue +5 -2
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +21 -5
- package/dist/runtime/components/renderers/AMapRenderer.vue +2 -0
- package/dist/runtime/components/renderers/AMediaRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AMediaRenderer.vue +224 -0
- package/dist/runtime/components/renderers/AMediaRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +1 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.vue +436 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/ATableRenderer.vue +65 -45
- package/dist/runtime/components/renderers/ATimelineRenderer.vue +282 -260
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.d.vue.ts +41 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue +109 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue.d.ts +41 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.d.vue.ts +49 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue +152 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue.d.ts +49 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.d.vue.ts +39 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue +101 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue.d.ts +39 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.d.vue.ts +43 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue +87 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue.d.ts +43 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.d.vue.ts +38 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.vue +206 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.vue.d.ts +38 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.d.vue.ts +28 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.vue +33 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.d.vue.ts +50 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue +188 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue.d.ts +50 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.d.vue.ts +25 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.vue +115 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.vue.d.ts +25 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.d.vue.ts +21 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.vue +61 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.vue.d.ts +21 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.d.vue.ts +22 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.vue +98 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.vue.d.ts +22 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.d.vue.ts +20 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.vue +26 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.vue.d.ts +20 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.vue +257 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.vue +18 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.vue +53 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.d.vue.ts +25 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.vue +129 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.vue.d.ts +25 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.d.vue.ts +21 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.vue +370 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.vue.d.ts +21 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.d.vue.ts +22 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.vue +106 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.vue.d.ts +22 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.d.vue.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.vue +54 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.vue.d.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.d.vue.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue +67 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue.d.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.vue +91 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.vue +30 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.vue.d.ts +6 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.vue +76 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.vue +54 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.vue +35 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.d.vue.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.vue +111 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.vue.d.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.vue +35 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.vue +92 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.vue +44 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.d.vue.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.vue +31 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.vue.d.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.vue +63 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.d.vue.ts +9 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.vue +53 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.vue.d.ts +9 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.d.vue.ts +26 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.vue +59 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.vue.d.ts +26 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.d.vue.ts +28 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue +109 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.d.vue.ts +43 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue +168 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue.d.ts +43 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.d.vue.ts +24 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue +46 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue.d.ts +24 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.d.vue.ts +34 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.vue +193 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.vue.d.ts +34 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.vue +159 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.vue +146 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.vue +157 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.vue +134 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsModal.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsModal.vue +176 -0
- package/dist/runtime/components/settings/ASettingsModal.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.vue +170 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.vue +96 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.vue +223 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.vue +312 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.vue +195 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.vue +135 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.vue.d.ts +3 -0
- package/dist/runtime/components/shell/AChildContextMenu.d.vue.ts +30 -0
- package/dist/runtime/components/shell/AChildContextMenu.vue +48 -0
- package/dist/runtime/components/shell/AChildContextMenu.vue.d.ts +30 -0
- package/dist/runtime/components/shell/ACursorOverlay.d.vue.ts +11 -0
- package/dist/runtime/components/shell/ACursorOverlay.vue +55 -0
- package/dist/runtime/components/shell/ACursorOverlay.vue.d.ts +11 -0
- package/dist/runtime/components/shell/ADocDragGhost.d.vue.ts +3 -0
- package/dist/runtime/components/shell/ADocDragGhost.vue +58 -0
- package/dist/runtime/components/shell/ADocDragGhost.vue.d.ts +3 -0
- package/dist/runtime/components/shell/ADocPanelSettings.d.vue.ts +111 -0
- package/dist/runtime/components/shell/ADocPanelSettings.vue +621 -0
- package/dist/runtime/components/shell/ADocPanelSettings.vue.d.ts +111 -0
- package/dist/runtime/components/shell/AFavoritesList.d.vue.ts +27 -0
- package/dist/runtime/components/shell/AFavoritesList.vue +83 -0
- package/dist/runtime/components/shell/AFavoritesList.vue.d.ts +27 -0
- package/dist/runtime/components/shell/ANodeContextMenu.d.vue.ts +17 -0
- package/dist/runtime/components/shell/ANodeContextMenu.vue +14 -0
- package/dist/runtime/components/shell/ANodeContextMenu.vue.d.ts +17 -0
- package/dist/runtime/components/shell/ASidebar.d.vue.ts +54 -0
- package/dist/runtime/components/shell/ASidebar.vue +92 -0
- package/dist/runtime/components/shell/ASidebar.vue.d.ts +54 -0
- package/dist/runtime/components/shell/ASidebarToggle.d.vue.ts +7 -0
- package/dist/runtime/components/shell/ASidebarToggle.vue +23 -0
- package/dist/runtime/components/shell/ASidebarToggle.vue.d.ts +7 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.d.vue.ts +32 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.vue +63 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.vue.d.ts +32 -0
- package/dist/runtime/components/shell/ASyncStatus.d.vue.ts +25 -0
- package/dist/runtime/components/shell/ASyncStatus.vue +96 -0
- package/dist/runtime/components/shell/ASyncStatus.vue.d.ts +25 -0
- package/dist/runtime/components/shell/AUserMenu.d.vue.ts +28 -0
- package/dist/runtime/components/shell/AUserMenu.vue +79 -0
- package/dist/runtime/components/shell/AUserMenu.vue.d.ts +28 -0
- package/dist/runtime/components/shell/AUserProfilePopover.d.vue.ts +54 -0
- package/dist/runtime/components/shell/AUserProfilePopover.vue +176 -0
- package/dist/runtime/components/shell/AUserProfilePopover.vue.d.ts +54 -0
- package/dist/runtime/components/shell/AWelcomeScreen.d.vue.ts +96 -0
- package/dist/runtime/components/shell/AWelcomeScreen.vue +422 -0
- package/dist/runtime/components/shell/AWelcomeScreen.vue.d.ts +96 -0
- package/dist/runtime/composables/useAAField.js +2 -0
- package/dist/runtime/composables/useAbraLocale.js +1 -0
- package/dist/runtime/composables/useAbracadabra.js +1 -0
- package/dist/runtime/composables/useAbracadabraAuth.d.ts +3 -4
- package/dist/runtime/composables/useAbracadabraAuth.js +4 -0
- package/dist/runtime/composables/useAwareness.js +1 -0
- package/dist/runtime/composables/useAwarenessPeers.js +1 -0
- package/dist/runtime/composables/useBackgroundSync.d.ts +5 -0
- package/dist/runtime/composables/useBackgroundSync.js +24 -3
- package/dist/runtime/composables/useCalendarView.d.ts +86 -0
- package/dist/runtime/composables/useCalendarView.js +316 -0
- package/dist/runtime/composables/useChat.d.ts +2 -1
- package/dist/runtime/composables/useChat.js +17 -10
- package/dist/runtime/composables/useChatUsers.js +1 -0
- package/dist/runtime/composables/useChildTree.d.ts +4 -2
- package/dist/runtime/composables/useChildTree.js +31 -21
- package/dist/runtime/composables/useCommandPalette.js +16 -17
- package/dist/runtime/composables/useConnectionStatus.d.ts +1 -1
- package/dist/runtime/composables/useConnectionStatus.js +1 -1
- package/dist/runtime/composables/useCrossWindowSync.d.ts +11 -0
- package/dist/runtime/composables/useCrossWindowSync.js +38 -0
- package/dist/runtime/composables/useDashboard.js +17 -9
- package/dist/runtime/composables/useDevicePairing.js +2 -0
- package/dist/runtime/composables/useDocDragBus.d.ts +28 -0
- package/dist/runtime/composables/useDocDragBus.js +22 -0
- package/dist/runtime/composables/useDocDropZone.d.ts +51 -0
- package/dist/runtime/composables/useDocDropZone.js +84 -0
- package/dist/runtime/composables/useDocExport.js +2 -0
- package/dist/runtime/composables/useDocImport.js +1 -0
- package/dist/runtime/composables/useDocLabels.d.ts +22 -0
- package/dist/runtime/composables/useDocLabels.js +11 -0
- package/dist/runtime/composables/useDocLinkPick.d.ts +18 -0
- package/dist/runtime/composables/useDocLinkPick.js +22 -0
- package/dist/runtime/composables/useDocSeo.js +3 -2
- package/dist/runtime/composables/useDocSlugs.js +3 -0
- package/dist/runtime/composables/useDocTree.d.ts +1 -0
- package/dist/runtime/composables/useDocTree.js +6 -2
- package/dist/runtime/composables/useEditor.js +1 -0
- package/dist/runtime/composables/useEditorDragHandle.js +2 -0
- package/dist/runtime/composables/useEditorEmojis.d.ts +22 -0
- package/dist/runtime/composables/useEditorEmojis.js +57 -0
- package/dist/runtime/composables/useEditorMentions.d.ts +10 -3
- package/dist/runtime/composables/useEditorMentions.js +31 -3
- package/dist/runtime/composables/useEditorSuggestions.d.ts +2 -2
- package/dist/runtime/composables/useEditorSuggestions.js +27 -19
- package/dist/runtime/composables/useEditorToolbar.d.ts +1 -1
- package/dist/runtime/composables/useEditorToolbar.js +3 -0
- package/dist/runtime/composables/useFavorites.d.ts +13 -0
- package/dist/runtime/composables/useFavorites.js +42 -0
- package/dist/runtime/composables/useFileIndex.js +2 -0
- package/dist/runtime/composables/useFileTransfer.js +13 -1
- package/dist/runtime/composables/useFollowUser.js +2 -0
- package/dist/runtime/composables/useIdentityDoc.d.ts +89 -0
- package/dist/runtime/composables/useIdentityDoc.js +349 -0
- package/dist/runtime/composables/useInstalledPlugins.d.ts +31 -0
- package/dist/runtime/composables/useInstalledPlugins.js +58 -0
- package/dist/runtime/composables/useInvites.js +1 -0
- package/dist/runtime/composables/useJoinLink.d.ts +25 -0
- package/dist/runtime/composables/useJoinLink.js +58 -0
- package/dist/runtime/composables/useMediaExtractor.d.ts +31 -0
- package/dist/runtime/composables/useMediaExtractor.js +46 -0
- package/dist/runtime/composables/useMediaPlayback.d.ts +43 -0
- package/dist/runtime/composables/useMediaPlayback.js +465 -0
- package/dist/runtime/composables/useNodeContextMenu.d.ts +26 -0
- package/dist/runtime/composables/useNodeContextMenu.js +99 -0
- package/dist/runtime/composables/useNodePanel.d.ts +7 -1
- package/dist/runtime/composables/useNodePanel.js +45 -8
- package/dist/runtime/composables/useNodePanelFollow.d.ts +2 -0
- package/dist/runtime/composables/useNodePanelFollow.js +37 -0
- package/dist/runtime/composables/useNotifications.d.ts +1 -0
- package/dist/runtime/composables/useNotifications.js +7 -2
- package/dist/runtime/composables/usePluginRegistry.js +1 -0
- package/dist/runtime/composables/useRendererBase.d.ts +16 -1
- package/dist/runtime/composables/useRendererBase.js +10 -1
- package/dist/runtime/composables/useSearchIndex.js +2 -0
- package/dist/runtime/composables/useSettingsModal.d.ts +18 -0
- package/dist/runtime/composables/useSettingsModal.js +30 -0
- package/dist/runtime/composables/useSlideoverSwipe.d.ts +39 -0
- package/dist/runtime/composables/useSlideoverSwipe.js +48 -0
- package/dist/runtime/composables/useSlugRoute.js +2 -0
- package/dist/runtime/composables/useSpaces.js +2 -0
- package/dist/runtime/composables/useSpatialCamera.d.ts +16 -0
- package/dist/runtime/composables/useSpatialCamera.js +175 -0
- package/dist/runtime/composables/useSpatialDrag.d.ts +14 -0
- package/dist/runtime/composables/useSpatialDrag.js +137 -0
- package/dist/runtime/composables/useTableView.d.ts +29 -0
- package/dist/runtime/composables/useTableView.js +184 -0
- package/dist/runtime/composables/useTimelineView.d.ts +55 -0
- package/dist/runtime/composables/useTimelineView.js +434 -0
- package/dist/runtime/composables/useTiptapDragState.d.ts +8 -0
- package/dist/runtime/composables/useTiptapDragState.js +5 -0
- package/dist/runtime/composables/useTouchDrag.d.ts +2 -0
- package/dist/runtime/composables/useTouchDrag.js +3 -0
- package/dist/runtime/composables/useTrash.d.ts +4 -0
- package/dist/runtime/composables/useTrash.js +6 -3
- package/dist/runtime/composables/useTreeUndoManager.d.ts +22 -0
- package/dist/runtime/composables/useTreeUndoManager.js +45 -0
- package/dist/runtime/composables/useUndoRedo.d.ts +37 -0
- package/dist/runtime/composables/useUndoRedo.js +115 -0
- package/dist/runtime/composables/useVoice.js +2 -0
- package/dist/runtime/composables/useWebRTC.js +2 -0
- package/dist/runtime/composables/useWindowManager.d.ts +2 -0
- package/dist/runtime/composables/useWindowManager.js +63 -1
- package/dist/runtime/extensions/code-preview.d.ts +2 -0
- package/dist/runtime/extensions/code-preview.js +17 -0
- package/dist/runtime/extensions/code-tree.d.ts +2 -0
- package/dist/runtime/extensions/code-tree.js +33 -0
- package/dist/runtime/extensions/doc-embed.d.ts +12 -0
- package/dist/runtime/extensions/doc-embed.js +63 -0
- package/dist/runtime/extensions/doc-link-drop.d.ts +3 -0
- package/dist/runtime/extensions/doc-link-drop.js +63 -0
- package/dist/runtime/extensions/document-header.js +1 -1
- package/dist/runtime/extensions/field.d.ts +3 -0
- package/dist/runtime/extensions/field.js +53 -0
- package/dist/runtime/extensions/mention-drop.d.ts +8 -0
- package/dist/runtime/extensions/mention-drop.js +47 -0
- package/dist/runtime/extensions/meta-field.js +2 -0
- package/dist/runtime/extensions/selection-drag.d.ts +13 -0
- package/dist/runtime/extensions/selection-drag.js +126 -0
- package/dist/runtime/extensions/views/AccordionItemView.vue +1 -0
- package/dist/runtime/extensions/views/BadgeView.vue +1 -0
- package/dist/runtime/extensions/views/CardView.vue +1 -0
- package/dist/runtime/extensions/views/CodeCollapseView.vue +1 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue +1 -0
- package/dist/runtime/extensions/views/CodePreviewView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodePreviewView.vue +48 -0
- package/dist/runtime/extensions/views/CodePreviewView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CodeTreeView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodeTreeView.vue +88 -0
- package/dist/runtime/extensions/views/CodeTreeView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CollapsibleView.vue +1 -0
- package/dist/runtime/extensions/views/DocEmbedView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/DocEmbedView.vue +198 -0
- package/dist/runtime/extensions/views/DocEmbedView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FieldGroupView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/FieldGroupView.vue +25 -0
- package/dist/runtime/extensions/views/FieldGroupView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FieldView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/FieldView.vue +53 -0
- package/dist/runtime/extensions/views/FieldView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FileNodeView.vue +2 -0
- package/dist/runtime/extensions/views/KbdView.vue +1 -0
- package/dist/runtime/extensions/views/MetaFieldView.vue +68 -2
- package/dist/runtime/extensions/views/ProseIconView.vue +1 -0
- package/dist/runtime/extensions/views/StepsView.vue +1 -0
- package/dist/runtime/extensions/views/TabsView.vue +1 -0
- package/dist/runtime/locale.d.ts +65 -0
- package/dist/runtime/locale.js +67 -2
- package/dist/runtime/middleware/abracadabra-auth.d.ts +1 -10
- package/dist/runtime/middleware/abracadabra-auth.js +2 -0
- package/dist/runtime/plugin-abracadabra.client.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.client.js +99 -53
- package/dist/runtime/plugin-abracadabra.server.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.server.js +2 -0
- package/dist/runtime/plugin-shared-globals.client.d.ts +1 -1
- package/dist/runtime/plugin-shared-globals.client.js +1 -0
- package/dist/runtime/plugins/core.plugin.js +40 -4
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.d.ts +19 -17
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.js +4 -0
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.d.ts +11 -1
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.js +1 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.js +1 -0
- package/dist/runtime/server/api/_abracadabra/spaces.get.d.ts +1 -10
- package/dist/runtime/server/api/_abracadabra/spaces.get.js +3 -0
- package/dist/runtime/server/plugins/abracadabra-service.js +24 -12
- package/dist/runtime/server/utils/docCache.d.ts +8 -6
- package/dist/runtime/server/utils/docCache.js +3 -3
- package/dist/runtime/server/utils/serverPluginLoader.d.ts +20 -0
- package/dist/runtime/server/utils/serverPluginLoader.js +42 -0
- package/dist/runtime/server/utils/serverRunner.d.ts +11 -2
- package/dist/runtime/server/utils/serverRunner.js +21 -10
- package/dist/runtime/server/utils/spaceManager.d.ts +25 -0
- package/dist/runtime/server/utils/spaceManager.js +188 -0
- package/dist/runtime/types.d.ts +128 -30
- package/dist/runtime/types.js +17 -17
- package/dist/runtime/utils/chatContent.d.ts +41 -0
- package/dist/runtime/utils/chatContent.js +65 -0
- package/dist/runtime/utils/colorPalettes.js +12 -6
- package/dist/runtime/utils/coverCache.d.ts +12 -0
- package/dist/runtime/utils/coverCache.js +14 -0
- package/dist/runtime/utils/docReferenceEdges.d.ts +26 -0
- package/dist/runtime/utils/docReferenceEdges.js +122 -0
- package/dist/runtime/utils/docTypes.d.ts +6 -1
- package/dist/runtime/utils/duplicateDocContent.d.ts +19 -0
- package/dist/runtime/utils/duplicateDocContent.js +68 -0
- package/dist/runtime/utils/extractFileMetadata.d.ts +13 -0
- package/dist/runtime/utils/extractFileMetadata.js +94 -0
- package/dist/runtime/utils/getMetaColor.d.ts +6 -0
- package/dist/runtime/utils/getMetaColor.js +12 -0
- package/dist/runtime/utils/htmlToYjs.d.ts +19 -0
- package/dist/runtime/utils/htmlToYjs.js +235 -0
- package/dist/runtime/utils/markdownToYjs.js +3 -3
- package/dist/runtime/utils/metaFieldDefinitions.js +9 -0
- package/dist/runtime/utils/notificationRenderers.d.ts +13 -0
- package/dist/runtime/utils/notificationRenderers.js +41 -0
- package/dist/runtime/utils/sdkRef.d.ts +12 -2
- package/dist/types.d.mts +12 -0
- package/package.json +26 -27
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, watch, onBeforeUnmount } from "vue";
|
|
3
|
+
import { useRuntimeConfig, defineShortcuts } from "#imports";
|
|
3
4
|
import { useRendererBase } from "../../composables/useRendererBase";
|
|
4
5
|
import { useTouchDrag } from "../../composables/useTouchDrag";
|
|
5
6
|
import { useNodePanel } from "../../composables/useNodePanel";
|
|
7
|
+
import { useCalendarView } from "../../composables/useCalendarView";
|
|
6
8
|
import { DEFAULT_LOCALE } from "../../locale";
|
|
9
|
+
import ACalendarToolbar from "./calendar/ACalendarToolbar.vue";
|
|
10
|
+
import ACalendarMonthView from "./calendar/ACalendarMonthView.vue";
|
|
11
|
+
import ACalendarWeekView from "./calendar/ACalendarWeekView.vue";
|
|
12
|
+
import ACalendarDayView from "./calendar/ACalendarDayView.vue";
|
|
13
|
+
import ACalendarUnscheduled from "./calendar/ACalendarUnscheduled.vue";
|
|
7
14
|
const props = defineProps({
|
|
8
15
|
docId: { type: String, required: true },
|
|
9
16
|
childProvider: { type: null, required: true },
|
|
10
17
|
docLabel: { type: String, required: true },
|
|
11
18
|
pageTypes: { type: Array, required: false },
|
|
12
19
|
labels: { type: Object, required: false },
|
|
13
|
-
editable: { type: Boolean, required: false, default: true }
|
|
20
|
+
editable: { type: Boolean, required: false, default: true },
|
|
21
|
+
weekStartDay: { type: String, required: false },
|
|
22
|
+
showWeekNumbers: { type: Boolean, required: false }
|
|
14
23
|
});
|
|
15
24
|
const config = useRuntimeConfig();
|
|
16
25
|
const locale = computed(() => ({
|
|
@@ -27,158 +36,134 @@ const {
|
|
|
27
36
|
closePanel
|
|
28
37
|
} = useNodePanel(childProviderRef);
|
|
29
38
|
const myClientId = computed(() => props.childProvider?.awareness?.clientID ?? 0);
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
const WEEK_DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
37
|
-
function prevMonth() {
|
|
38
|
-
currentDate.value = new Date(year.value, month.value - 1, 1);
|
|
39
|
-
}
|
|
40
|
-
function nextMonth() {
|
|
41
|
-
currentDate.value = new Date(year.value, month.value + 1, 1);
|
|
42
|
-
}
|
|
43
|
-
function goToday() {
|
|
44
|
-
currentDate.value = /* @__PURE__ */ new Date();
|
|
45
|
-
}
|
|
46
|
-
const todayStr = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
|
|
47
|
-
const weeks = computed(() => {
|
|
48
|
-
const y = year.value;
|
|
49
|
-
const m = month.value;
|
|
50
|
-
const firstDay = new Date(y, m, 1).getDay();
|
|
51
|
-
const daysInMonth = new Date(y, m + 1, 0).getDate();
|
|
52
|
-
const raw = [];
|
|
53
|
-
for (let i = 0; i < firstDay; i++) raw.push({ date: null, dateStr: null, isToday: false });
|
|
54
|
-
for (let d = 1; d <= daysInMonth; d++) {
|
|
55
|
-
const date = new Date(y, m, d);
|
|
56
|
-
const dateStr = date.toISOString().slice(0, 10);
|
|
57
|
-
raw.push({ date, dateStr, isToday: dateStr === todayStr });
|
|
58
|
-
}
|
|
59
|
-
while (raw.length % 7 !== 0) raw.push({ date: null, dateStr: null, isToday: false });
|
|
60
|
-
const entries = tree.childrenOf(null);
|
|
61
|
-
const result = [];
|
|
62
|
-
for (let wi = 0; wi < raw.length; wi += 7) {
|
|
63
|
-
const weekRaw = raw.slice(wi, wi + 7);
|
|
64
|
-
const weekDates = weekRaw.map((c) => c.dateStr);
|
|
65
|
-
const seenIds = /* @__PURE__ */ new Set();
|
|
66
|
-
const multiDay = [];
|
|
67
|
-
const singleDay = [];
|
|
68
|
-
for (const entry of entries) {
|
|
69
|
-
const start = entry.meta?.datetimeStart?.slice(0, 10);
|
|
70
|
-
if (!start) continue;
|
|
71
|
-
const end = entry.meta?.datetimeEnd?.slice(0, 10) ?? start;
|
|
72
|
-
const isMulti = start !== end;
|
|
73
|
-
let startCol = -1;
|
|
74
|
-
let endCol = -1;
|
|
75
|
-
for (let col = 0; col < 7; col++) {
|
|
76
|
-
const d = weekDates[col];
|
|
77
|
-
if (!d) continue;
|
|
78
|
-
if (d >= start && d <= end) {
|
|
79
|
-
if (startCol === -1) startCol = col;
|
|
80
|
-
endCol = col;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
if (startCol === -1 || seenIds.has(entry.id)) continue;
|
|
84
|
-
seenIds.add(entry.id);
|
|
85
|
-
const info = {
|
|
86
|
-
id: entry.id,
|
|
87
|
-
label: entry.label,
|
|
88
|
-
color: entry.meta?.color ?? "#6366f1"
|
|
89
|
-
};
|
|
90
|
-
if (isMulti) {
|
|
91
|
-
multiDay.push({ ...info, startCol, endCol, globalStart: start });
|
|
92
|
-
} else {
|
|
93
|
-
singleDay.push({ ...info, col: startCol });
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
multiDay.sort(
|
|
97
|
-
(a, b) => a.startCol - b.startCol || b.endCol - b.startCol - (a.endCol - a.startCol) || a.globalStart.localeCompare(b.globalStart)
|
|
98
|
-
);
|
|
99
|
-
const lanes = [];
|
|
100
|
-
const assigned = [];
|
|
101
|
-
for (const evt of multiDay) {
|
|
102
|
-
let lane = lanes.findIndex((lastEnd) => lastEnd < evt.startCol);
|
|
103
|
-
if (lane === -1) {
|
|
104
|
-
lane = lanes.length;
|
|
105
|
-
lanes.push(-1);
|
|
106
|
-
}
|
|
107
|
-
lanes[lane] = evt.endCol;
|
|
108
|
-
assigned.push({ ...evt, lane });
|
|
109
|
-
}
|
|
110
|
-
const laneCount = lanes.length;
|
|
111
|
-
const cells = weekRaw.map((r, col) => {
|
|
112
|
-
const laneSlots = [];
|
|
113
|
-
for (let l = 0; l < laneCount; l++) {
|
|
114
|
-
const span = assigned.find((s) => s.lane === l && col >= s.startCol && col <= s.endCol);
|
|
115
|
-
if (span) {
|
|
116
|
-
laneSlots.push({
|
|
117
|
-
type: "span",
|
|
118
|
-
id: span.id,
|
|
119
|
-
label: span.label,
|
|
120
|
-
color: span.color,
|
|
121
|
-
isStart: col === span.startCol,
|
|
122
|
-
isEnd: col === span.endCol
|
|
123
|
-
});
|
|
124
|
-
} else {
|
|
125
|
-
laneSlots.push({ type: "empty" });
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
const events = singleDay.filter((e) => e.col === col).map((e) => ({ id: e.id, label: e.label, color: e.color }));
|
|
129
|
-
return { ...r, laneSlots, events };
|
|
130
|
-
});
|
|
131
|
-
result.push({ cells, laneCount });
|
|
132
|
-
}
|
|
133
|
-
return result;
|
|
39
|
+
const weekStartDayRef = computed(() => props.weekStartDay ?? "sun");
|
|
40
|
+
const showWeekNumbersRef = computed(() => props.showWeekNumbers ?? false);
|
|
41
|
+
const cal = useCalendarView({
|
|
42
|
+
tree,
|
|
43
|
+
weekStartDay: weekStartDayRef,
|
|
44
|
+
showWeekNumbers: showWeekNumbersRef
|
|
134
45
|
});
|
|
135
|
-
|
|
136
|
-
(
|
|
137
|
-
);
|
|
138
|
-
|
|
46
|
+
watch(cal.viewMode, (mode) => {
|
|
47
|
+
setLocalState({ "calendar:viewMode": mode });
|
|
48
|
+
});
|
|
49
|
+
watch(cal.periodLabel, (label) => {
|
|
50
|
+
setLocalState({ "calendar:viewing": label });
|
|
51
|
+
}, { immediate: true });
|
|
52
|
+
function createEvent(date, hour) {
|
|
139
53
|
if (!props.editable) return;
|
|
140
54
|
const d = date ?? /* @__PURE__ */ new Date();
|
|
141
55
|
const dateStr = d.toISOString().slice(0, 10);
|
|
142
56
|
const id = tree.createChild(null, locale.value.newEvent);
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
57
|
+
if (hour !== void 0) {
|
|
58
|
+
const startHour = String(hour).padStart(2, "0");
|
|
59
|
+
const endHour = String(Math.min(hour + 1, 23)).padStart(2, "0");
|
|
60
|
+
tree.updateMeta(id, {
|
|
61
|
+
datetimeStart: `${dateStr}T${startHour}:00:00.000Z`,
|
|
62
|
+
datetimeEnd: `${dateStr}T${endHour}:00:00.000Z`,
|
|
63
|
+
color: "#6366f1"
|
|
64
|
+
});
|
|
65
|
+
} else {
|
|
66
|
+
tree.updateMeta(id, {
|
|
67
|
+
datetimeStart: `${dateStr}T00:00:00.000Z`,
|
|
68
|
+
datetimeEnd: `${dateStr}T01:00:00.000Z`,
|
|
69
|
+
allDay: true,
|
|
70
|
+
color: "#6366f1"
|
|
71
|
+
});
|
|
72
|
+
}
|
|
149
73
|
openNode(id, locale.value.newEvent);
|
|
150
74
|
}
|
|
75
|
+
function onCreateEvent(payload) {
|
|
76
|
+
if (payload instanceof Date) {
|
|
77
|
+
createEvent(payload);
|
|
78
|
+
} else {
|
|
79
|
+
createEvent(payload.date, payload.hour);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
const dragPreviewTime = ref(null);
|
|
151
83
|
const { dragId, dragOverContainer, handlePointerDown } = useTouchDrag({
|
|
152
84
|
onMoveToContainer: (eventId, dateStr) => {
|
|
153
85
|
if (!props.editable) return;
|
|
154
86
|
const entry = tree.entries.value.find((e) => e.id === eventId);
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
|
|
87
|
+
if (cal.viewMode.value !== "month" && dragPreviewTime.value) {
|
|
88
|
+
const minutes = dragPreviewTime.value.minutes;
|
|
89
|
+
const snapped = Math.round(minutes / 10) * 10;
|
|
90
|
+
const h = String(dragPreviewTime.value.hours).padStart(2, "0");
|
|
91
|
+
const m = String(snapped % 60).padStart(2, "0");
|
|
92
|
+
let duration = 36e5;
|
|
93
|
+
if (entry?.meta?.datetimeStart && entry?.meta?.datetimeEnd) {
|
|
94
|
+
duration = new Date(entry.meta.datetimeEnd).getTime() - new Date(entry.meta.datetimeStart).getTime();
|
|
95
|
+
}
|
|
96
|
+
const startTime = (/* @__PURE__ */ new Date(`${dateStr}T${h}:${m}:00.000Z`)).getTime();
|
|
97
|
+
tree.updateMeta(eventId, {
|
|
98
|
+
datetimeStart: new Date(startTime).toISOString(),
|
|
99
|
+
datetimeEnd: new Date(startTime + duration).toISOString(),
|
|
100
|
+
allDay: false,
|
|
101
|
+
color: entry?.meta?.color ?? "#6366f1"
|
|
102
|
+
});
|
|
103
|
+
} else {
|
|
104
|
+
let newEnd = `${dateStr}T01:00:00.000Z`;
|
|
105
|
+
if (entry?.meta?.datetimeStart && entry?.meta?.datetimeEnd) {
|
|
106
|
+
const duration = new Date(entry.meta.datetimeEnd).getTime() - new Date(entry.meta.datetimeStart).getTime();
|
|
107
|
+
newEnd = new Date((/* @__PURE__ */ new Date(`${dateStr}T00:00:00.000Z`)).getTime() + duration).toISOString();
|
|
108
|
+
}
|
|
109
|
+
tree.updateMeta(eventId, {
|
|
110
|
+
datetimeStart: `${dateStr}T00:00:00.000Z`,
|
|
111
|
+
datetimeEnd: newEnd,
|
|
112
|
+
allDay: entry?.meta?.allDay ?? true,
|
|
113
|
+
color: entry?.meta?.color ?? "#6366f1"
|
|
114
|
+
});
|
|
159
115
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
116
|
+
dragPreviewTime.value = null;
|
|
117
|
+
},
|
|
118
|
+
onMoveOverContainer: (_eventId, _containerId, pointerEvent) => {
|
|
119
|
+
if (cal.viewMode.value === "month") return;
|
|
120
|
+
const target = pointerEvent.target?.closest("[data-hour-grid]");
|
|
121
|
+
if (!target) return;
|
|
122
|
+
const gridHeight = Number(target.getAttribute("data-hour-grid")) || 48;
|
|
123
|
+
const rect = target.getBoundingClientRect();
|
|
124
|
+
const y = pointerEvent.clientY - rect.top + target.scrollTop;
|
|
125
|
+
const totalMinutes = Math.max(0, Math.min(1439, y / gridHeight * 60));
|
|
126
|
+
const snapped = Math.round(totalMinutes / 10) * 10;
|
|
127
|
+
dragPreviewTime.value = {
|
|
128
|
+
hours: Math.floor(snapped / 60),
|
|
129
|
+
minutes: snapped % 60
|
|
130
|
+
};
|
|
166
131
|
},
|
|
167
132
|
containerAttr: "data-drop-container"
|
|
168
133
|
});
|
|
134
|
+
function onDragStart(payload) {
|
|
135
|
+
if (!props.editable) return;
|
|
136
|
+
handlePointerDown(payload.event, payload.id);
|
|
137
|
+
}
|
|
138
|
+
const renameId = ref(null);
|
|
139
|
+
const renameValue = ref("");
|
|
140
|
+
function _startRename(id, _label) {
|
|
141
|
+
renameId.value = id;
|
|
142
|
+
renameValue.value = _label;
|
|
143
|
+
}
|
|
144
|
+
function commitRename() {
|
|
145
|
+
if (renameId.value && renameValue.value.trim()) {
|
|
146
|
+
tree.renameEntry(renameId.value, renameValue.value.trim());
|
|
147
|
+
}
|
|
148
|
+
renameId.value = null;
|
|
149
|
+
}
|
|
150
|
+
function cancelRename() {
|
|
151
|
+
renameId.value = null;
|
|
152
|
+
}
|
|
153
|
+
function onOpenEvent(event) {
|
|
154
|
+
openNode(event.id, event.label);
|
|
155
|
+
}
|
|
169
156
|
function focusEvent(eventId) {
|
|
170
157
|
setLocalState({ "calendar:focused": eventId });
|
|
171
158
|
}
|
|
172
159
|
function unfocusEvent() {
|
|
173
160
|
setLocalState({ "calendar:focused": null });
|
|
174
161
|
}
|
|
175
|
-
watch(currentDate, () => {
|
|
176
|
-
setLocalState({ "calendar:viewing": monthLabel.value });
|
|
177
|
-
}, { immediate: true });
|
|
178
162
|
function eventFocusers(eventId) {
|
|
179
|
-
return states.value.filter(
|
|
180
|
-
|
|
181
|
-
|
|
163
|
+
return states.value.filter((s) => s.clientId !== myClientId.value && s["calendar:focused"] === eventId).map((s) => ({
|
|
164
|
+
name: s.user?.name ?? "",
|
|
165
|
+
color: s.user?.color ?? "#888"
|
|
166
|
+
}));
|
|
182
167
|
}
|
|
183
168
|
const remoteViewers = computed(
|
|
184
169
|
() => states.value.filter((s) => s.clientId !== myClientId.value && s["calendar:viewing"]).map((s) => ({
|
|
@@ -207,215 +192,110 @@ watch(childDoc, (doc) => {
|
|
|
207
192
|
});
|
|
208
193
|
}, { immediate: true });
|
|
209
194
|
defineShortcuts({
|
|
210
|
-
arrowleft:
|
|
211
|
-
arrowright:
|
|
212
|
-
t: goToday
|
|
195
|
+
arrowleft: () => cal.prevPeriod(),
|
|
196
|
+
arrowright: () => cal.nextPeriod(),
|
|
197
|
+
t: () => cal.goToday()
|
|
213
198
|
});
|
|
214
199
|
onBeforeUnmount(() => {
|
|
215
200
|
setLocalState({ "calendar:focused": null, "calendar:viewing": null });
|
|
201
|
+
cal.cleanup();
|
|
216
202
|
});
|
|
217
203
|
defineExpose({ connectedUsers });
|
|
218
204
|
</script>
|
|
219
205
|
|
|
220
206
|
<template>
|
|
221
207
|
<div class="flex-1 min-h-0 flex flex-col relative">
|
|
222
|
-
<!--
|
|
223
|
-
<
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
size="xs"
|
|
233
|
-
variant="ghost"
|
|
234
|
-
color="neutral"
|
|
235
|
-
@click="prevMonth"
|
|
236
|
-
/>
|
|
237
|
-
</UTooltip>
|
|
238
|
-
<button
|
|
239
|
-
class="text-sm font-medium w-44 text-center hover:text-(--ui-primary) transition-colors"
|
|
240
|
-
@click="goToday"
|
|
241
|
-
>
|
|
242
|
-
{{ monthLabel }}
|
|
243
|
-
</button>
|
|
244
|
-
<UTooltip
|
|
245
|
-
text="Next month"
|
|
246
|
-
:kbds="['\u2192']"
|
|
247
|
-
:content="{ side: 'bottom' }"
|
|
248
|
-
>
|
|
249
|
-
<UButton
|
|
250
|
-
icon="i-lucide-chevron-right"
|
|
251
|
-
size="xs"
|
|
252
|
-
variant="ghost"
|
|
253
|
-
color="neutral"
|
|
254
|
-
@click="nextMonth"
|
|
255
|
-
/>
|
|
256
|
-
</UTooltip>
|
|
257
|
-
</div>
|
|
258
|
-
|
|
259
|
-
<!-- Remote viewers + new event -->
|
|
260
|
-
<div class="flex items-center gap-1.5">
|
|
261
|
-
<span
|
|
262
|
-
v-for="rv in remoteViewers"
|
|
263
|
-
:key="rv.clientId"
|
|
264
|
-
class="text-[10px] px-1.5 py-0.5 rounded-full border"
|
|
265
|
-
:style="{ borderColor: rv.color, color: rv.color }"
|
|
266
|
-
:title="`${rv.name} is viewing ${rv.viewing}`"
|
|
267
|
-
>
|
|
268
|
-
{{ rv.name?.split(" ")[0] || "?" }} · {{ rv.viewing }}
|
|
269
|
-
</span>
|
|
270
|
-
<UButton
|
|
271
|
-
v-if="editable"
|
|
272
|
-
icon="i-lucide-plus"
|
|
273
|
-
size="xs"
|
|
274
|
-
variant="ghost"
|
|
275
|
-
color="neutral"
|
|
276
|
-
:label="locale.newEvent"
|
|
277
|
-
@click="createEvent()"
|
|
278
|
-
/>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
|
|
282
|
-
<!-- Calendar body -->
|
|
283
|
-
<div class="flex-1 min-h-0 flex flex-col p-4">
|
|
284
|
-
<!-- Day headers -->
|
|
285
|
-
<div class="grid grid-cols-7 shrink-0">
|
|
286
|
-
<div
|
|
287
|
-
v-for="day in WEEK_DAYS"
|
|
288
|
-
:key="day"
|
|
289
|
-
class="text-center text-xs font-medium text-(--ui-text-muted) py-1"
|
|
290
|
-
>
|
|
291
|
-
{{ day }}
|
|
292
|
-
</div>
|
|
293
|
-
</div>
|
|
294
|
-
|
|
295
|
-
<!-- Week rows -->
|
|
296
|
-
<div class="flex-1 min-h-0 flex flex-col">
|
|
297
|
-
<div
|
|
298
|
-
v-for="(week, wi) in weeks"
|
|
299
|
-
:key="wi"
|
|
300
|
-
class="flex-1 min-h-0 grid grid-cols-7"
|
|
301
|
-
>
|
|
302
|
-
<div
|
|
303
|
-
v-for="(cell, ci) in week.cells"
|
|
304
|
-
:key="ci"
|
|
305
|
-
class="min-h-0 overflow-hidden bg-(--ui-bg-elevated) border-b border-r border-(--ui-border)/30 p-1 transition-colors"
|
|
306
|
-
:class="{
|
|
307
|
-
'invisible pointer-events-none': !cell.date,
|
|
308
|
-
'ring-2 ring-(--ui-primary)/40 bg-(--ui-primary)/5': cell.dateStr && dragOverContainer === cell.dateStr,
|
|
309
|
-
'border-l': ci === 0,
|
|
310
|
-
'border-t': wi === 0,
|
|
311
|
-
'rounded-tl-md': wi === 0 && ci === 0,
|
|
312
|
-
'rounded-tr-md': wi === 0 && ci === 6,
|
|
313
|
-
'rounded-bl-md': wi === weeks.length - 1 && ci === 0,
|
|
314
|
-
'rounded-br-md': wi === weeks.length - 1 && ci === 6
|
|
208
|
+
<!-- Toolbar -->
|
|
209
|
+
<ACalendarToolbar
|
|
210
|
+
:view-mode="cal.viewMode.value"
|
|
211
|
+
:period-label="cal.periodLabel.value"
|
|
212
|
+
:current-year="cal.year.value"
|
|
213
|
+
:current-month="cal.month.value"
|
|
214
|
+
:remote-viewers="remoteViewers"
|
|
215
|
+
:editable="editable"
|
|
216
|
+
:labels="{
|
|
217
|
+
newEvent: locale.newEvent
|
|
315
218
|
}"
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
@click="editable ? createEvent(cell.date) : void 0"
|
|
324
|
-
>
|
|
325
|
-
{{ cell.date.getDate() }}
|
|
326
|
-
</button>
|
|
219
|
+
@update:view-mode="cal.viewMode.value = $event"
|
|
220
|
+
@prev="cal.prevPeriod()"
|
|
221
|
+
@next="cal.nextPeriod()"
|
|
222
|
+
@today="cal.goToday()"
|
|
223
|
+
@add-event="createEvent()"
|
|
224
|
+
@navigate-to-month="(year, month) => cal.goToMonth(year, month)"
|
|
225
|
+
/>
|
|
327
226
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
@pointerleave="unfocusEvent"
|
|
351
|
-
@click.stop="openNode(slot.id, slot.label)"
|
|
352
|
-
>
|
|
353
|
-
<span
|
|
354
|
-
v-if="slot.isStart"
|
|
355
|
-
class="truncate"
|
|
356
|
-
>{{ slot.label }}</span>
|
|
357
|
-
</button>
|
|
358
|
-
</div>
|
|
227
|
+
<!-- Month view -->
|
|
228
|
+
<ACalendarMonthView
|
|
229
|
+
v-if="cal.viewMode.value === 'month'"
|
|
230
|
+
:weeks="cal.weeks.value"
|
|
231
|
+
:week-day-headers="cal.weekDayHeaders.value"
|
|
232
|
+
:week-numbers="cal.weekNumbers.value"
|
|
233
|
+
:show-week-numbers="showWeekNumbers"
|
|
234
|
+
:drag-id="dragId"
|
|
235
|
+
:drag-over-container="dragOverContainer"
|
|
236
|
+
:event-focusers="eventFocusers"
|
|
237
|
+
:rename-id="renameId"
|
|
238
|
+
:rename-value="renameValue"
|
|
239
|
+
:editable="editable"
|
|
240
|
+
@create-event="onCreateEvent"
|
|
241
|
+
@open-event="onOpenEvent"
|
|
242
|
+
@drag-start="onDragStart"
|
|
243
|
+
@focus-event="focusEvent"
|
|
244
|
+
@unfocus-event="unfocusEvent"
|
|
245
|
+
@rename-input="renameValue = $event"
|
|
246
|
+
@rename-commit="commitRename"
|
|
247
|
+
@rename-cancel="cancelRename"
|
|
248
|
+
/>
|
|
359
249
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
>
|
|
381
|
-
{{ evt.label }}
|
|
382
|
-
</button>
|
|
383
|
-
<span
|
|
384
|
-
v-if="cell.events.length > 3"
|
|
385
|
-
class="block text-[10px] text-(--ui-text-dimmed) px-1"
|
|
386
|
-
>
|
|
387
|
-
+{{ cell.events.length - 3 }} more
|
|
388
|
-
</span>
|
|
389
|
-
</div>
|
|
390
|
-
</template>
|
|
391
|
-
</div>
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
250
|
+
<!-- Week view -->
|
|
251
|
+
<ACalendarWeekView
|
|
252
|
+
v-else-if="cal.viewMode.value === 'week'"
|
|
253
|
+
:columns="cal.weekColumns.value"
|
|
254
|
+
:event-focusers="eventFocusers"
|
|
255
|
+
:drag-id="dragId"
|
|
256
|
+
:drag-over-container="dragOverContainer"
|
|
257
|
+
:drag-preview-time="dragPreviewTime"
|
|
258
|
+
:rename-id="renameId"
|
|
259
|
+
:rename-value="renameValue"
|
|
260
|
+
:editable="editable"
|
|
261
|
+
@create-event="onCreateEvent"
|
|
262
|
+
@open-event="onOpenEvent"
|
|
263
|
+
@drag-start="onDragStart"
|
|
264
|
+
@focus-event="focusEvent"
|
|
265
|
+
@unfocus-event="unfocusEvent"
|
|
266
|
+
@rename-input="renameValue = $event"
|
|
267
|
+
@rename-commit="commitRename"
|
|
268
|
+
@rename-cancel="cancelRename"
|
|
269
|
+
/>
|
|
394
270
|
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
271
|
+
<!-- Day view -->
|
|
272
|
+
<ACalendarDayView
|
|
273
|
+
v-else
|
|
274
|
+
:column="cal.dayColumn.value"
|
|
275
|
+
:event-focusers="eventFocusers"
|
|
276
|
+
:drag-id="dragId"
|
|
277
|
+
:drag-preview-time="dragPreviewTime"
|
|
278
|
+
:rename-id="renameId"
|
|
279
|
+
:rename-value="renameValue"
|
|
280
|
+
:editable="editable"
|
|
281
|
+
@create-event="onCreateEvent"
|
|
282
|
+
@open-event="onOpenEvent"
|
|
283
|
+
@drag-start="onDragStart"
|
|
284
|
+
@focus-event="focusEvent"
|
|
285
|
+
@unfocus-event="unfocusEvent"
|
|
286
|
+
@rename-input="renameValue = $event"
|
|
287
|
+
@rename-commit="commitRename"
|
|
288
|
+
@rename-cancel="cancelRename"
|
|
289
|
+
/>
|
|
290
|
+
|
|
291
|
+
<!-- Unscheduled events -->
|
|
292
|
+
<ACalendarUnscheduled
|
|
293
|
+
:entries="cal.unscheduledEntries.value"
|
|
294
|
+
:drag-id="dragId"
|
|
295
|
+
:editable="editable"
|
|
296
|
+
@open-entry="openNode($event.id, $event.label)"
|
|
297
|
+
@drag-start="onDragStart"
|
|
298
|
+
/>
|
|
419
299
|
|
|
420
300
|
<!-- Node panel -->
|
|
421
301
|
<ANodePanel
|
|
@@ -3,6 +3,8 @@ import type { AbracadabraLocale } from '../../locale.js';
|
|
|
3
3
|
type __VLS_Props = RendererBaseProps & {
|
|
4
4
|
labels?: Partial<AbracadabraLocale['renderers']['calendar']>;
|
|
5
5
|
editable?: boolean;
|
|
6
|
+
weekStartDay?: string;
|
|
7
|
+
showWeekNumbers?: boolean;
|
|
6
8
|
};
|
|
7
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
10
|
connectedUsers: import("vue").ComputedRef<{
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { computed, onMounted } from "vue";
|
|
3
|
+
import { useRuntimeConfig } from "#imports";
|
|
4
|
+
import { useAbracadabra } from "../../composables/useAbracadabra";
|
|
5
|
+
import { useVoice } from "../../composables/useVoice";
|
|
3
6
|
import { DEFAULT_LOCALE } from "../../locale";
|
|
4
7
|
const props = defineProps({
|
|
5
8
|
docId: { type: String, required: true },
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, nextTick, onBeforeUnmount } from "vue";
|
|
3
|
+
import { useRuntimeConfig } from "#imports";
|
|
3
4
|
import { useRendererBase } from "../../composables/useRendererBase";
|
|
4
5
|
import { useTouchDrag } from "../../composables/useTouchDrag";
|
|
5
6
|
import { useNodePanel } from "../../composables/useNodePanel";
|