@abraca/nuxt 0.2.0 → 1.5.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 +72 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +139 -3
- package/dist/runtime/assets/editor.css +1 -0
- 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 +8 -3
- 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 +29 -0
- package/dist/runtime/components/ADocRenderer.vue +105 -0
- package/dist/runtime/components/ADocRenderer.vue.d.ts +29 -0
- package/dist/runtime/components/ADocTypeSelect.vue +8 -4
- package/dist/runtime/components/ADocumentTree.d.vue.ts +3 -3
- package/dist/runtime/components/ADocumentTree.vue +196 -29
- package/dist/runtime/components/ADocumentTree.vue.d.ts +3 -3
- package/dist/runtime/components/AEditor.d.vue.ts +9 -4
- package/dist/runtime/components/AEditor.vue +118 -8
- package/dist/runtime/components/AEditor.vue.d.ts +9 -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 +10 -2
- 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 +109 -62
- package/dist/runtime/components/ANotifications.vue +37 -8
- package/dist/runtime/components/APermissionGuard.vue +4 -1
- package/dist/runtime/components/APresence.vue +15 -3
- package/dist/runtime/components/AProvider.d.vue.ts +0 -1
- package/dist/runtime/components/AProvider.vue +24 -5
- 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 +60 -16
- package/dist/runtime/components/AVoiceTile.vue +5 -1
- 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 +3 -2
- package/dist/runtime/components/aware/AArea.vue.d.ts +1 -1
- package/dist/runtime/components/aware/AAvatar.vue +87 -16
- package/dist/runtime/components/aware/AButton.vue +7 -2
- package/dist/runtime/components/aware/ACursorLabel.vue +6 -1
- package/dist/runtime/components/aware/ADocBadge.vue +6 -1
- package/dist/runtime/components/aware/AFacepile.vue +15 -3
- package/dist/runtime/components/aware/AInput.vue +8 -3
- package/dist/runtime/components/aware/ASelect.vue +3 -2
- package/dist/runtime/components/aware/ATextarea.vue +8 -3
- package/dist/runtime/components/aware/AUserList.vue +10 -2
- 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 +14 -1
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +279 -125
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +14 -1
- package/dist/runtime/components/renderers/ACallRenderer.d.vue.ts +13 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue +172 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue.d.ts +13 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue +582 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue +1374 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.vue +60 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryRenderer.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/AGalleryRenderer.vue +327 -53
- package/dist/runtime/components/renderers/AGalleryRenderer.vue.d.ts +12 -1
- package/dist/runtime/components/renderers/AGraphRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AGraphRenderer.vue +1030 -0
- package/dist/runtime/components/renderers/AGraphRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +490 -140
- package/dist/runtime/components/renderers/AKanbanRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/renderers/AMapRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AMapRenderer.vue +1624 -0
- package/dist/runtime/components/renderers/AMapRenderer.vue.d.ts +19 -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.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +295 -134
- package/dist/runtime/components/renderers/AOutlineRenderer.vue.d.ts +12 -1
- 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.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/ATableRenderer.vue +459 -147
- package/dist/runtime/components/renderers/ATableRenderer.vue.d.ts +12 -1
- package/dist/runtime/components/renderers/ATimelineRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ATimelineRenderer.vue +468 -0
- package/dist/runtime/components/renderers/ATimelineRenderer.vue.d.ts +19 -0
- 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 +6 -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/useBroadcastSync.d.ts +18 -0
- package/dist/runtime/composables/useBroadcastSync.js +26 -0
- 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 +21 -12
- package/dist/runtime/composables/useChatUsers.js +3 -1
- package/dist/runtime/composables/useChildTree.d.ts +4 -2
- package/dist/runtime/composables/useChildTree.js +31 -21
- package/dist/runtime/composables/useCommandPalette.js +77 -19
- package/dist/runtime/composables/useConnectionStatus.d.ts +1 -1
- package/dist/runtime/composables/useConnectionStatus.js +8 -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.d.ts +58 -0
- package/dist/runtime/composables/useDevicePairing.js +110 -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.d.ts +5 -0
- package/dist/runtime/composables/useDocExport.js +4 -2
- package/dist/runtime/composables/useDocImport.js +5 -3
- 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.d.ts +20 -0
- package/dist/runtime/composables/useDocSeo.js +45 -0
- package/dist/runtime/composables/useDocSlugs.d.ts +7 -0
- package/dist/runtime/composables/useDocSlugs.js +23 -0
- package/dist/runtime/composables/useDocTree.d.ts +35 -0
- package/dist/runtime/composables/useDocTree.js +39 -0
- package/dist/runtime/composables/useEditor.js +1 -0
- package/dist/runtime/composables/useEditorDragHandle.js +4 -1
- 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 +35 -5
- package/dist/runtime/composables/useEditorSuggestions.d.ts +2 -1
- package/dist/runtime/composables/useEditorSuggestions.js +36 -21
- package/dist/runtime/composables/useEditorToolbar.d.ts +1 -1
- package/dist/runtime/composables/useEditorToolbar.js +5 -1
- package/dist/runtime/composables/useFavorites.d.ts +13 -0
- package/dist/runtime/composables/useFavorites.js +42 -0
- package/dist/runtime/composables/useFileIndex.js +4 -1
- package/dist/runtime/composables/useFileTransfer.d.ts +112 -0
- package/dist/runtime/composables/useFileTransfer.js +183 -0
- package/dist/runtime/composables/useFollowUser.js +4 -1
- 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.d.ts +56 -0
- package/dist/runtime/composables/useInvites.js +78 -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 +20 -0
- package/dist/runtime/composables/useNodePanel.js +89 -0
- 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 +9 -2
- package/dist/runtime/composables/usePasskeyAccounts.js +4 -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.d.ts +1 -0
- package/dist/runtime/composables/useSearchIndex.js +15 -5
- package/dist/runtime/composables/useServerInfo.d.ts +31 -0
- package/dist/runtime/composables/useServerInfo.js +80 -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.d.ts +6 -0
- package/dist/runtime/composables/useSlugRoute.js +21 -0
- package/dist/runtime/composables/useSpaces.d.ts +37 -0
- package/dist/runtime/composables/useSpaces.js +85 -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 +36 -0
- package/dist/runtime/composables/useTouchDrag.js +194 -0
- package/dist/runtime/composables/useTrash.d.ts +5 -1
- package/dist/runtime/composables/useTrash.js +12 -6
- 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.d.ts +50 -0
- package/dist/runtime/composables/useWebRTC.js +179 -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.d.ts +4 -1
- 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/steps.js +1 -1
- package/dist/runtime/extensions/views/AccordionItemView.vue +14 -3
- package/dist/runtime/extensions/views/AccordionView.vue +4 -1
- package/dist/runtime/extensions/views/BadgeView.vue +12 -2
- package/dist/runtime/extensions/views/CalloutView.vue +4 -1
- package/dist/runtime/extensions/views/CardGroupView.vue +4 -1
- package/dist/runtime/extensions/views/CardView.vue +18 -3
- package/dist/runtime/extensions/views/CodeCollapseView.vue +1 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue +5 -1
- 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 +9 -2
- 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 +34 -8
- package/dist/runtime/extensions/views/KbdView.vue +9 -2
- package/dist/runtime/extensions/views/MetaFieldView.vue +276 -48
- package/dist/runtime/extensions/views/ProseIconView.vue +9 -2
- package/dist/runtime/extensions/views/StepsView.vue +1 -0
- package/dist/runtime/extensions/views/TabsView.vue +18 -4
- package/dist/runtime/locale.d.ts +136 -0
- package/dist/runtime/locale.js +137 -1
- 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 +127 -55
- package/dist/runtime/plugin-abracadabra.server.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.server.js +4 -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 +33 -4
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.d.ts +12 -0
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.js +44 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.d.ts +2 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.js +8 -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 +29 -12
- package/dist/runtime/server/runners/doc-tree-cache.js +4 -0
- 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/slugMap.d.ts +32 -0
- package/dist/runtime/server/utils/slugMap.js +58 -0
- 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 +129 -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 +34 -1
- package/dist/runtime/utils/docTypes.js +129 -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 +5 -5
- 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 -0
- package/dist/runtime/utils/sdkRef.js +7 -0
- package/dist/runtime/utils/slugify.d.ts +40 -0
- package/dist/runtime/utils/slugify.js +36 -0
- package/dist/types.d.mts +18 -0
- package/package.json +44 -32
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RendererBaseProps } from '../../composables/useRendererBase.js';
|
|
2
|
+
import type { AbracadabraLocale } from '../../locale.js';
|
|
3
|
+
type __VLS_Props = RendererBaseProps & {
|
|
4
|
+
labels?: Partial<AbracadabraLocale['renderers']['timeline']>;
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
connectedUsers: import("vue").ComputedRef<{
|
|
9
|
+
clientId: number;
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
avatar: string | undefined;
|
|
13
|
+
publicKey: any;
|
|
14
|
+
}[]>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
editable: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,468 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { ref, computed, watch, onBeforeUnmount } from "vue";
|
|
3
|
+
import { useRuntimeConfig } from "#imports";
|
|
4
|
+
import { useRendererBase } from "../../composables/useRendererBase";
|
|
5
|
+
import { useTouchDrag } from "../../composables/useTouchDrag";
|
|
6
|
+
import { useNodePanel } from "../../composables/useNodePanel";
|
|
7
|
+
import { useTimelineView } from "../../composables/useTimelineView";
|
|
8
|
+
import { DEFAULT_LOCALE } from "../../locale";
|
|
9
|
+
import ATimelineToolbar from "./timeline/ATimelineToolbar.vue";
|
|
10
|
+
import ATimelineLabelPanel from "./timeline/ATimelineLabelPanel.vue";
|
|
11
|
+
import ATimelineAxis from "./timeline/ATimelineAxis.vue";
|
|
12
|
+
import ATimelineBarArea from "./timeline/ATimelineBarArea.vue";
|
|
13
|
+
const props = defineProps({
|
|
14
|
+
docId: { type: String, required: true },
|
|
15
|
+
childProvider: { type: null, required: true },
|
|
16
|
+
docLabel: { type: String, required: true },
|
|
17
|
+
pageTypes: { type: Array, required: false },
|
|
18
|
+
labels: { type: Object, required: false },
|
|
19
|
+
editable: { type: Boolean, required: false, default: true }
|
|
20
|
+
});
|
|
21
|
+
const config = useRuntimeConfig();
|
|
22
|
+
const locale = computed(() => ({
|
|
23
|
+
...DEFAULT_LOCALE.renderers.timeline,
|
|
24
|
+
...config.public?.abracadabra?.locale?.renderers?.timeline ?? {},
|
|
25
|
+
...props.labels ?? {}
|
|
26
|
+
}));
|
|
27
|
+
const { tree, childDoc, childProviderRef, states, setLocalState, connectedUsers } = useRendererBase(props);
|
|
28
|
+
const {
|
|
29
|
+
openNodeId,
|
|
30
|
+
openNodeLabel,
|
|
31
|
+
openNodeProvider,
|
|
32
|
+
openNode,
|
|
33
|
+
closePanel
|
|
34
|
+
} = useNodePanel(childProviderRef);
|
|
35
|
+
const myClientId = computed(() => props.childProvider?.awareness?.clientID ?? 0);
|
|
36
|
+
const timelineContainerRef = ref(null);
|
|
37
|
+
const scrollBodyRef = ref(null);
|
|
38
|
+
const storedPpd = computed(() => {
|
|
39
|
+
const entry = tree.treeMap.get(props.docId);
|
|
40
|
+
const val = entry?.meta?.timelinePixelsPerDay;
|
|
41
|
+
return val ? Number(val) : void 0;
|
|
42
|
+
});
|
|
43
|
+
const storedZoom = computed(
|
|
44
|
+
() => tree.treeMap.get(props.docId)?.meta?.timelineZoom
|
|
45
|
+
);
|
|
46
|
+
const storedCenter = computed(
|
|
47
|
+
() => tree.treeMap.get(props.docId)?.meta?.timelineCenterDate
|
|
48
|
+
);
|
|
49
|
+
const timelineEntries = computed(() => {
|
|
50
|
+
const directChildren = tree.childrenOf(null);
|
|
51
|
+
const result = [...directChildren];
|
|
52
|
+
for (const epic of directChildren) {
|
|
53
|
+
result.push(...tree.childrenOf(epic.id));
|
|
54
|
+
}
|
|
55
|
+
return result;
|
|
56
|
+
});
|
|
57
|
+
const tl = useTimelineView({
|
|
58
|
+
containerRef: timelineContainerRef,
|
|
59
|
+
scrollContainerRef: scrollBodyRef,
|
|
60
|
+
storedPixelsPerDay: storedPpd,
|
|
61
|
+
storedZoomLevel: storedZoom,
|
|
62
|
+
storedCenterDate: storedCenter,
|
|
63
|
+
entries: timelineEntries,
|
|
64
|
+
onViewChange: (ppd, centerDate) => {
|
|
65
|
+
if (!props.editable) return;
|
|
66
|
+
tree.updateMeta(props.docId, {
|
|
67
|
+
timelinePixelsPerDay: ppd,
|
|
68
|
+
timelineCenterDate: centerDate
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
const epics = computed(() => tree.childrenOf(null));
|
|
73
|
+
let viewportBroadcastTimer = null;
|
|
74
|
+
watch([tl.pixelsPerDay, tl.centerDate], () => {
|
|
75
|
+
if (viewportBroadcastTimer) clearTimeout(viewportBroadcastTimer);
|
|
76
|
+
viewportBroadcastTimer = setTimeout(() => {
|
|
77
|
+
viewportBroadcastTimer = null;
|
|
78
|
+
setLocalState({
|
|
79
|
+
"timeline:camera": {
|
|
80
|
+
pixelsPerDay: tl.pixelsPerDay.value,
|
|
81
|
+
centerMs: tl.centerDate.value.getTime(),
|
|
82
|
+
t: Date.now()
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}, 150);
|
|
86
|
+
});
|
|
87
|
+
const showLabels = ref(true);
|
|
88
|
+
const LABEL_MIN = 80;
|
|
89
|
+
const LABEL_MAX = 480;
|
|
90
|
+
const labelWidth = ref(192);
|
|
91
|
+
let resizing = false;
|
|
92
|
+
let resizeStartX = 0;
|
|
93
|
+
let resizeStartWidth = 0;
|
|
94
|
+
function onResizePointerDown(e) {
|
|
95
|
+
e.preventDefault();
|
|
96
|
+
resizing = true;
|
|
97
|
+
resizeStartX = e.clientX;
|
|
98
|
+
resizeStartWidth = labelWidth.value;
|
|
99
|
+
document.body.style.cursor = "col-resize";
|
|
100
|
+
document.body.style.userSelect = "none";
|
|
101
|
+
document.addEventListener("pointermove", onResizePointerMove);
|
|
102
|
+
document.addEventListener("pointerup", onResizePointerUp);
|
|
103
|
+
}
|
|
104
|
+
function onResizePointerMove(e) {
|
|
105
|
+
if (!resizing) return;
|
|
106
|
+
labelWidth.value = Math.max(LABEL_MIN, Math.min(LABEL_MAX, resizeStartWidth + (e.clientX - resizeStartX)));
|
|
107
|
+
}
|
|
108
|
+
function onResizePointerUp() {
|
|
109
|
+
resizing = false;
|
|
110
|
+
document.body.style.cursor = "";
|
|
111
|
+
document.body.style.userSelect = "";
|
|
112
|
+
document.removeEventListener("pointermove", onResizePointerMove);
|
|
113
|
+
document.removeEventListener("pointerup", onResizePointerUp);
|
|
114
|
+
}
|
|
115
|
+
function addEpic() {
|
|
116
|
+
if (!props.editable) return;
|
|
117
|
+
const id = tree.createChild(null, locale.value.newEpic);
|
|
118
|
+
const now = /* @__PURE__ */ new Date();
|
|
119
|
+
const end = new Date(now);
|
|
120
|
+
end.setDate(end.getDate() + 14);
|
|
121
|
+
tree.updateMeta(id, {
|
|
122
|
+
dateStart: tl.toDateStr(now),
|
|
123
|
+
dateEnd: tl.toDateStr(end),
|
|
124
|
+
taskProgress: 0,
|
|
125
|
+
color: "#6366f1"
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function addMilestone(epicId) {
|
|
129
|
+
if (!props.editable) return;
|
|
130
|
+
const id = tree.createChild(epicId ?? null, locale.value.newMilestone);
|
|
131
|
+
const now = tl.toDateStr(/* @__PURE__ */ new Date());
|
|
132
|
+
tree.updateMeta(id, {
|
|
133
|
+
dateStart: now,
|
|
134
|
+
color: "#f59e0b"
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function addTask(epicId) {
|
|
138
|
+
if (!props.editable) return;
|
|
139
|
+
const id = tree.createChild(epicId, locale.value.newTask);
|
|
140
|
+
const now = /* @__PURE__ */ new Date();
|
|
141
|
+
const end = new Date(now);
|
|
142
|
+
end.setDate(end.getDate() + 7);
|
|
143
|
+
tree.updateMeta(id, {
|
|
144
|
+
dateStart: tl.toDateStr(now),
|
|
145
|
+
dateEnd: tl.toDateStr(end),
|
|
146
|
+
taskProgress: 0,
|
|
147
|
+
color: "#818cf8"
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
const renameId = ref(null);
|
|
151
|
+
const renameValue = ref("");
|
|
152
|
+
let renameCooldown = false;
|
|
153
|
+
function startRename(id, label) {
|
|
154
|
+
if (!props.editable) return;
|
|
155
|
+
renameId.value = id;
|
|
156
|
+
renameValue.value = label;
|
|
157
|
+
renameCooldown = true;
|
|
158
|
+
setTimeout(() => {
|
|
159
|
+
renameCooldown = false;
|
|
160
|
+
}, 200);
|
|
161
|
+
}
|
|
162
|
+
function commitRename() {
|
|
163
|
+
if (renameCooldown) return;
|
|
164
|
+
if (renameId.value && renameValue.value.trim()) {
|
|
165
|
+
tree.renameEntry(renameId.value, renameValue.value.trim());
|
|
166
|
+
}
|
|
167
|
+
renameId.value = null;
|
|
168
|
+
}
|
|
169
|
+
function orderBetween(list, targetIdx) {
|
|
170
|
+
const prev = list[targetIdx - 1];
|
|
171
|
+
const next = list[targetIdx];
|
|
172
|
+
if (!prev && !next) return Date.now();
|
|
173
|
+
if (!prev) return next.order - 1e3;
|
|
174
|
+
if (!next) return prev.order + 1e3;
|
|
175
|
+
return (prev.order + next.order) / 2;
|
|
176
|
+
}
|
|
177
|
+
const {
|
|
178
|
+
dragId: epicDragId,
|
|
179
|
+
dragOverId: epicDragOver,
|
|
180
|
+
handlePointerDown: handleEpicPointerDown
|
|
181
|
+
} = useTouchDrag({
|
|
182
|
+
onDrop: (srcId, targetId) => {
|
|
183
|
+
if (!props.editable) return;
|
|
184
|
+
const targetIdx = epics.value.findIndex((ep) => ep.id === targetId);
|
|
185
|
+
const newOrder = orderBetween(epics.value, targetIdx);
|
|
186
|
+
tree.moveEntry(srcId, null, newOrder);
|
|
187
|
+
}
|
|
188
|
+
});
|
|
189
|
+
const barDragId = ref(null);
|
|
190
|
+
const barDragStart = ref({ clientX: 0, origStart: "", origEnd: "" });
|
|
191
|
+
const barDidMove = ref(false);
|
|
192
|
+
const barHoverEpicId = ref(null);
|
|
193
|
+
let lastDaysShifted = 0;
|
|
194
|
+
function onBarPointerDown(e, id) {
|
|
195
|
+
if (!props.editable) return;
|
|
196
|
+
if (e.button !== 0) return;
|
|
197
|
+
e.stopPropagation();
|
|
198
|
+
const entry = tree.entries.value.find((en) => en.id === id);
|
|
199
|
+
const meta = entry?.meta;
|
|
200
|
+
if (!meta?.dateStart) return;
|
|
201
|
+
barDragId.value = id;
|
|
202
|
+
barDidMove.value = false;
|
|
203
|
+
barHoverEpicId.value = null;
|
|
204
|
+
lastDaysShifted = 0;
|
|
205
|
+
barDragStart.value = {
|
|
206
|
+
clientX: e.clientX,
|
|
207
|
+
origStart: meta.dateStart,
|
|
208
|
+
origEnd: meta.dateEnd ?? meta.dateStart
|
|
209
|
+
};
|
|
210
|
+
document.addEventListener("pointermove", onDocBarPointerMove);
|
|
211
|
+
document.addEventListener("pointerup", onDocBarPointerUp);
|
|
212
|
+
}
|
|
213
|
+
function onDocBarPointerMove(e) {
|
|
214
|
+
if (!barDragId.value) return;
|
|
215
|
+
const id = barDragId.value;
|
|
216
|
+
const dx = e.clientX - barDragStart.value.clientX;
|
|
217
|
+
if (Math.abs(dx) > 4) barDidMove.value = true;
|
|
218
|
+
const els = document.elementsFromPoint(e.clientX, e.clientY);
|
|
219
|
+
const epicEl = els.find((el) => el.dataset?.epicId);
|
|
220
|
+
barHoverEpicId.value = epicEl?.dataset.epicId ?? null;
|
|
221
|
+
const daysShifted = Math.round(dx / tl.pixelsPerDay.value);
|
|
222
|
+
if (daysShifted === lastDaysShifted) return;
|
|
223
|
+
lastDaysShifted = daysShifted;
|
|
224
|
+
const MS = 24 * 60 * 60 * 1e3;
|
|
225
|
+
const s0 = new Date(barDragStart.value.origStart).getTime();
|
|
226
|
+
const e0 = new Date(barDragStart.value.origEnd).getTime();
|
|
227
|
+
const isMilestone = barDragStart.value.origStart === barDragStart.value.origEnd;
|
|
228
|
+
const newMeta = {
|
|
229
|
+
dateStart: new Date(s0 + daysShifted * MS).toISOString().slice(0, 10)
|
|
230
|
+
};
|
|
231
|
+
if (!isMilestone) {
|
|
232
|
+
newMeta.dateEnd = new Date(e0 + daysShifted * MS).toISOString().slice(0, 10);
|
|
233
|
+
}
|
|
234
|
+
tree.updateMeta(id, newMeta);
|
|
235
|
+
}
|
|
236
|
+
function onDocBarPointerUp() {
|
|
237
|
+
document.removeEventListener("pointermove", onDocBarPointerMove);
|
|
238
|
+
document.removeEventListener("pointerup", onDocBarPointerUp);
|
|
239
|
+
if (!barDragId.value) return;
|
|
240
|
+
const id = barDragId.value;
|
|
241
|
+
const entry = tree.entries.value.find((en) => en.id === id);
|
|
242
|
+
const currentParent = entry?.parentId;
|
|
243
|
+
if (currentParent && barHoverEpicId.value && barHoverEpicId.value !== currentParent) {
|
|
244
|
+
tree.moveEntry(id, barHoverEpicId.value, Date.now());
|
|
245
|
+
}
|
|
246
|
+
barDragId.value = null;
|
|
247
|
+
barHoverEpicId.value = null;
|
|
248
|
+
}
|
|
249
|
+
function onBarClick(id, label) {
|
|
250
|
+
if (barDidMove.value) return;
|
|
251
|
+
openNode(id, label);
|
|
252
|
+
}
|
|
253
|
+
function focusItem(id) {
|
|
254
|
+
setLocalState({ "timeline:focused": id });
|
|
255
|
+
}
|
|
256
|
+
function unfocusItem() {
|
|
257
|
+
setLocalState({ "timeline:focused": null });
|
|
258
|
+
}
|
|
259
|
+
function itemFocusers(itemId) {
|
|
260
|
+
const result = [];
|
|
261
|
+
for (const s of states.value) {
|
|
262
|
+
if (s.clientId === myClientId.value) continue;
|
|
263
|
+
if (s["timeline:focused"] === itemId && s.user) {
|
|
264
|
+
result.push({ name: s.user.name ?? "", color: s.user.color ?? "#888" });
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
const remoteViewers = computed(
|
|
270
|
+
() => states.value.filter((s) => s.clientId !== myClientId.value && s.user).map((s) => ({
|
|
271
|
+
clientId: s.clientId,
|
|
272
|
+
name: s.user?.name ?? "",
|
|
273
|
+
color: s.user?.color ?? "#888"
|
|
274
|
+
}))
|
|
275
|
+
);
|
|
276
|
+
function goToDate(dateStr) {
|
|
277
|
+
const d = new Date(dateStr);
|
|
278
|
+
if (!Number.isNaN(d.getTime())) tl.navigateTo(d);
|
|
279
|
+
}
|
|
280
|
+
watch(childDoc, (doc) => {
|
|
281
|
+
if (!doc) return;
|
|
282
|
+
const legacyMap = doc.getMap("task-dates");
|
|
283
|
+
if (legacyMap.size === 0) return;
|
|
284
|
+
legacyMap.forEach((val, id) => {
|
|
285
|
+
if (!tree.treeMap.get(id)?.meta?.dateStart) {
|
|
286
|
+
tree.updateMeta(id, {
|
|
287
|
+
dateStart: val.start,
|
|
288
|
+
dateEnd: val.end,
|
|
289
|
+
taskProgress: val.progress ?? 0,
|
|
290
|
+
color: val.color
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
});
|
|
294
|
+
doc.transact(() => {
|
|
295
|
+
for (const key of [...legacyMap.keys()]) legacyMap.delete(key);
|
|
296
|
+
});
|
|
297
|
+
}, { immediate: true });
|
|
298
|
+
onBeforeUnmount(() => {
|
|
299
|
+
setLocalState({ "timeline:focused": null });
|
|
300
|
+
document.removeEventListener("pointermove", onDocBarPointerMove);
|
|
301
|
+
document.removeEventListener("pointerup", onDocBarPointerUp);
|
|
302
|
+
document.removeEventListener("pointermove", onResizePointerMove);
|
|
303
|
+
document.removeEventListener("pointerup", onResizePointerUp);
|
|
304
|
+
});
|
|
305
|
+
defineExpose({ connectedUsers });
|
|
306
|
+
</script>
|
|
307
|
+
|
|
308
|
+
<template>
|
|
309
|
+
<div class="flex-1 min-h-0 flex flex-col relative">
|
|
310
|
+
<!-- Toolbar -->
|
|
311
|
+
<ATimelineToolbar
|
|
312
|
+
:pixels-per-day="tl.pixelsPerDay.value"
|
|
313
|
+
:is-mobile="tl.isMobile.value"
|
|
314
|
+
:show-labels="showLabels"
|
|
315
|
+
:remote-viewers="remoteViewers"
|
|
316
|
+
:editable="editable"
|
|
317
|
+
:labels="labels"
|
|
318
|
+
@zoom-in="tl.zoomIn()"
|
|
319
|
+
@zoom-out="tl.zoomOut()"
|
|
320
|
+
@today="tl.goToday()"
|
|
321
|
+
@go-to-date="goToDate"
|
|
322
|
+
@add-epic="addEpic"
|
|
323
|
+
@add-milestone="addMilestone()"
|
|
324
|
+
@toggle-labels="showLabels = !showLabels"
|
|
325
|
+
@fit="tl.fitToContent()"
|
|
326
|
+
/>
|
|
327
|
+
|
|
328
|
+
<!-- Content -->
|
|
329
|
+
<div class="flex-1 min-h-0 overflow-hidden">
|
|
330
|
+
<!-- Empty state -->
|
|
331
|
+
<div
|
|
332
|
+
v-if="epics.length === 0"
|
|
333
|
+
class="flex flex-col items-center justify-center h-full gap-3 text-center"
|
|
334
|
+
>
|
|
335
|
+
<UIcon
|
|
336
|
+
name="i-lucide-gantt-chart"
|
|
337
|
+
class="size-10 text-(--ui-text-dimmed)"
|
|
338
|
+
/>
|
|
339
|
+
<p class="text-sm text-(--ui-text-muted)">
|
|
340
|
+
{{ locale.empty }}
|
|
341
|
+
</p>
|
|
342
|
+
<UButton
|
|
343
|
+
v-if="editable"
|
|
344
|
+
icon="i-lucide-plus"
|
|
345
|
+
:label="locale.addEpic"
|
|
346
|
+
size="sm"
|
|
347
|
+
@click="addEpic"
|
|
348
|
+
/>
|
|
349
|
+
</div>
|
|
350
|
+
|
|
351
|
+
<div
|
|
352
|
+
v-else
|
|
353
|
+
class="flex flex-col h-full"
|
|
354
|
+
>
|
|
355
|
+
<!-- Fixed axis header row -->
|
|
356
|
+
<div class="flex flex-shrink-0 bg-(--ui-bg) z-20">
|
|
357
|
+
<!-- Label panel header spacer -->
|
|
358
|
+
<div
|
|
359
|
+
class="flex-shrink-0 border-r border-(--ui-border) h-10 transition-[width] overflow-hidden"
|
|
360
|
+
:style="showLabels ? { width: labelWidth + 'px' } : { width: '0px' }"
|
|
361
|
+
/>
|
|
362
|
+
<!-- Resize handle (header) -->
|
|
363
|
+
<div
|
|
364
|
+
v-if="showLabels"
|
|
365
|
+
class="flex-shrink-0 w-1 -ml-0.5 h-10 cursor-col-resize z-30 hover:bg-(--ui-primary)/30"
|
|
366
|
+
@pointerdown="onResizePointerDown"
|
|
367
|
+
/>
|
|
368
|
+
<!-- Axis (wheel + pointer for zoom/pan) -->
|
|
369
|
+
<div
|
|
370
|
+
ref="timelineContainerRef"
|
|
371
|
+
class="flex-1 overflow-hidden cursor-grab select-none h-10 touch-none"
|
|
372
|
+
@wheel.prevent="tl.onWheel"
|
|
373
|
+
@pointerdown="tl.onPanPointerDown"
|
|
374
|
+
@pointermove="tl.onPanPointerMove"
|
|
375
|
+
@pointerup="tl.onPanPointerUp"
|
|
376
|
+
@touchstart.passive="tl.onTouchStart"
|
|
377
|
+
@touchmove="tl.onTouchMove"
|
|
378
|
+
@touchend.passive="tl.onTouchEnd"
|
|
379
|
+
>
|
|
380
|
+
<ATimelineAxis
|
|
381
|
+
:labels="tl.axisLabels.value"
|
|
382
|
+
:today-offset="tl.todayOffset.value"
|
|
383
|
+
:container-width="tl.containerWidth.value"
|
|
384
|
+
/>
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
|
|
388
|
+
<!-- Shared scrollable body -->
|
|
389
|
+
<div
|
|
390
|
+
ref="scrollBodyRef"
|
|
391
|
+
class="flex flex-1 min-h-0 overflow-y-auto overflow-x-hidden items-start"
|
|
392
|
+
>
|
|
393
|
+
<!-- Label panel -->
|
|
394
|
+
<ATimelineLabelPanel
|
|
395
|
+
:epics="epics"
|
|
396
|
+
:tree="tree"
|
|
397
|
+
:epic-drag-id="epicDragId"
|
|
398
|
+
:epic-drag-over="epicDragOver"
|
|
399
|
+
:rename-id="renameId"
|
|
400
|
+
:rename-value="renameValue"
|
|
401
|
+
:visible="showLabels"
|
|
402
|
+
:label-width="labelWidth"
|
|
403
|
+
:item-focusers="itemFocusers"
|
|
404
|
+
:editable="editable"
|
|
405
|
+
:labels="labels"
|
|
406
|
+
@open-node="openNode"
|
|
407
|
+
@add-task="addTask"
|
|
408
|
+
@add-milestone="addMilestone"
|
|
409
|
+
@epic-pointer-down="handleEpicPointerDown"
|
|
410
|
+
@start-rename="startRename"
|
|
411
|
+
@rename-input="renameValue = $event"
|
|
412
|
+
@rename-commit="commitRename"
|
|
413
|
+
@rename-cancel="renameId = null"
|
|
414
|
+
@delete-entry="tree.deleteEntry($event)"
|
|
415
|
+
@duplicate-entry="tree.duplicateEntry($event)"
|
|
416
|
+
/>
|
|
417
|
+
|
|
418
|
+
<!-- Resize handle (body) -->
|
|
419
|
+
<div
|
|
420
|
+
v-if="showLabels"
|
|
421
|
+
class="flex-shrink-0 w-1 -ml-0.5 cursor-col-resize z-30 hover:bg-(--ui-primary)/30"
|
|
422
|
+
@pointerdown="onResizePointerDown"
|
|
423
|
+
/>
|
|
424
|
+
|
|
425
|
+
<!-- Bar area (wheel intercepted for zoom, pointer for pan) -->
|
|
426
|
+
<div
|
|
427
|
+
class="flex-1 relative cursor-grab select-none min-w-0 touch-none"
|
|
428
|
+
@wheel.prevent="tl.onWheel"
|
|
429
|
+
@pointerdown="tl.onPanPointerDown"
|
|
430
|
+
@pointermove="tl.onPanPointerMove"
|
|
431
|
+
@pointerup="tl.onPanPointerUp"
|
|
432
|
+
@touchstart.passive="tl.onTouchStart"
|
|
433
|
+
@touchmove="tl.onTouchMove"
|
|
434
|
+
@touchend.passive="tl.onTouchEnd"
|
|
435
|
+
>
|
|
436
|
+
<ATimelineBarArea
|
|
437
|
+
:epics="epics"
|
|
438
|
+
:tree="tree"
|
|
439
|
+
:date-to-x="tl.dateToX"
|
|
440
|
+
:span-width="tl.spanWidth"
|
|
441
|
+
:today-offset="tl.todayOffset.value"
|
|
442
|
+
:bar-drag-id="barDragId"
|
|
443
|
+
:bar-hover-epic-id="barHoverEpicId"
|
|
444
|
+
:item-focusers="itemFocusers"
|
|
445
|
+
:editable="editable"
|
|
446
|
+
@bar-pointer-down="onBarPointerDown"
|
|
447
|
+
@bar-click="onBarClick"
|
|
448
|
+
@focus-item="focusItem"
|
|
449
|
+
@unfocus-item="unfocusItem"
|
|
450
|
+
/>
|
|
451
|
+
</div>
|
|
452
|
+
</div>
|
|
453
|
+
</div>
|
|
454
|
+
</div>
|
|
455
|
+
|
|
456
|
+
<!-- Node panel -->
|
|
457
|
+
<ANodePanel
|
|
458
|
+
:node-id="openNodeId"
|
|
459
|
+
:node-label="openNodeLabel"
|
|
460
|
+
:child-provider="openNodeProvider"
|
|
461
|
+
@close="closePanel"
|
|
462
|
+
/>
|
|
463
|
+
</div>
|
|
464
|
+
</template>
|
|
465
|
+
|
|
466
|
+
<style scoped>
|
|
467
|
+
.tepic-move{transition:transform .25s ease}.tepic-enter-active{transition:opacity .18s ease,transform .18s ease}.tepic-enter-from{opacity:0;transform:translateY(-6px) scale(.97)}.tepic-leave-active{transition:opacity .15s ease}.tepic-leave-to{opacity:0}
|
|
468
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RendererBaseProps } from '../../composables/useRendererBase.js';
|
|
2
|
+
import type { AbracadabraLocale } from '../../locale.js';
|
|
3
|
+
type __VLS_Props = RendererBaseProps & {
|
|
4
|
+
labels?: Partial<AbracadabraLocale['renderers']['timeline']>;
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
8
|
+
connectedUsers: import("vue").ComputedRef<{
|
|
9
|
+
clientId: number;
|
|
10
|
+
name: string;
|
|
11
|
+
color: string;
|
|
12
|
+
avatar: string | undefined;
|
|
13
|
+
publicKey: any;
|
|
14
|
+
}[]>;
|
|
15
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
+
editable: boolean;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { CalendarCell, CalendarEvent } from '../../../composables/useCalendarView.js';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
cell: CalendarCell;
|
|
4
|
+
dragOverContainer?: string | null;
|
|
5
|
+
dragId?: string | null;
|
|
6
|
+
eventFocusers: (id: string) => Array<{
|
|
7
|
+
name: string;
|
|
8
|
+
color: string;
|
|
9
|
+
}>;
|
|
10
|
+
renameId?: string | null;
|
|
11
|
+
renameValue?: string;
|
|
12
|
+
isCurrentMonth?: boolean;
|
|
13
|
+
editable?: boolean;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
"drag-start": (payload: {
|
|
17
|
+
event: PointerEvent;
|
|
18
|
+
id: string;
|
|
19
|
+
}) => any;
|
|
20
|
+
"rename-input": (value: string) => any;
|
|
21
|
+
"rename-commit": () => any;
|
|
22
|
+
"rename-cancel": () => any;
|
|
23
|
+
"create-event": (date: Date) => any;
|
|
24
|
+
"open-event": (event: CalendarEvent) => any;
|
|
25
|
+
"focus-event": (id: string) => any;
|
|
26
|
+
"unfocus-event": () => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
"onDrag-start"?: ((payload: {
|
|
29
|
+
event: PointerEvent;
|
|
30
|
+
id: string;
|
|
31
|
+
}) => any) | undefined;
|
|
32
|
+
"onRename-input"?: ((value: string) => any) | undefined;
|
|
33
|
+
"onRename-commit"?: (() => any) | undefined;
|
|
34
|
+
"onRename-cancel"?: (() => any) | undefined;
|
|
35
|
+
"onCreate-event"?: ((date: Date) => any) | undefined;
|
|
36
|
+
"onOpen-event"?: ((event: CalendarEvent) => any) | undefined;
|
|
37
|
+
"onFocus-event"?: ((id: string) => any) | undefined;
|
|
38
|
+
"onUnfocus-event"?: (() => any) | undefined;
|
|
39
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
40
|
+
declare const _default: typeof __VLS_export;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
3
|
+
import ACalendarEventChip from "./ACalendarEventChip.vue";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
cell: { type: Object, required: true },
|
|
6
|
+
dragOverContainer: { type: [String, null], required: false },
|
|
7
|
+
dragId: { type: [String, null], required: false },
|
|
8
|
+
eventFocusers: { type: Function, required: true },
|
|
9
|
+
renameId: { type: [String, null], required: false },
|
|
10
|
+
renameValue: { type: String, required: false },
|
|
11
|
+
isCurrentMonth: { type: Boolean, required: false },
|
|
12
|
+
editable: { type: Boolean, required: false }
|
|
13
|
+
});
|
|
14
|
+
const emit = defineEmits(["create-event", "open-event", "drag-start", "focus-event", "unfocus-event", "rename-input", "rename-commit", "rename-cancel"]);
|
|
15
|
+
const isDropTarget = computed(
|
|
16
|
+
() => props.cell.dateStr && props.dragOverContainer === props.cell.dateStr
|
|
17
|
+
);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<div
|
|
22
|
+
class="min-h-0 overflow-hidden bg-(--ui-bg-elevated) border-b border-r border-(--ui-border)/30 p-1 transition-colors relative group/cell"
|
|
23
|
+
:class="{
|
|
24
|
+
'ring-2 ring-(--ui-primary)/40 bg-(--ui-primary)/5': isDropTarget,
|
|
25
|
+
'opacity-50': !isCurrentMonth
|
|
26
|
+
}"
|
|
27
|
+
:data-drop-container="cell.dateStr ?? void 0"
|
|
28
|
+
>
|
|
29
|
+
<template v-if="cell.date">
|
|
30
|
+
<!-- Date number + hover add button -->
|
|
31
|
+
<div class="flex items-center justify-between mb-0.5">
|
|
32
|
+
<button
|
|
33
|
+
class="text-xs font-medium w-6 h-6 rounded-full flex items-center justify-center transition-colors shrink-0"
|
|
34
|
+
:class="
|
|
35
|
+
cell.isToday ? 'bg-(--ui-primary) text-white' : 'text-(--ui-text) hover:bg-(--ui-bg)'
|
|
36
|
+
"
|
|
37
|
+
@click="editable !== false && emit('create-event', cell.date)"
|
|
38
|
+
>
|
|
39
|
+
{{ cell.date.getDate() }}
|
|
40
|
+
</button>
|
|
41
|
+
<button
|
|
42
|
+
v-if="editable !== false"
|
|
43
|
+
class="w-5 h-5 rounded-full flex items-center justify-center text-(--ui-text-dimmed) hover:text-(--ui-primary) hover:bg-(--ui-bg) opacity-0 group-hover/cell:opacity-100 transition-opacity text-xs shrink-0"
|
|
44
|
+
@click="emit('create-event', cell.date)"
|
|
45
|
+
>
|
|
46
|
+
<UIcon
|
|
47
|
+
name="i-lucide-plus"
|
|
48
|
+
class="size-3"
|
|
49
|
+
/>
|
|
50
|
+
</button>
|
|
51
|
+
</div>
|
|
52
|
+
|
|
53
|
+
<!-- Multi-day span bar slots -->
|
|
54
|
+
<div
|
|
55
|
+
v-for="(slot, li) in cell.laneSlots"
|
|
56
|
+
:key="'lane-' + li"
|
|
57
|
+
class="h-[22px] flex items-center -mx-1"
|
|
58
|
+
>
|
|
59
|
+
<ACalendarEventChip
|
|
60
|
+
v-if="slot.type === 'span'"
|
|
61
|
+
:event="{ id: slot.id, label: slot.label, color: slot.color, icon: slot.icon, datetimeStart: '', datetimeEnd: '', allDay: true, entry: {} }"
|
|
62
|
+
span
|
|
63
|
+
:is-start="slot.isStart"
|
|
64
|
+
:is-end="slot.isEnd"
|
|
65
|
+
:is-dragging="dragId === slot.id"
|
|
66
|
+
:focusers="eventFocusers(slot.id)"
|
|
67
|
+
:rename-id="renameId"
|
|
68
|
+
:rename-value="renameValue"
|
|
69
|
+
@click="emit('open-event', $event)"
|
|
70
|
+
@drag-start="emit('drag-start', $event)"
|
|
71
|
+
@pointer-enter="emit('focus-event', slot.id)"
|
|
72
|
+
@pointer-leave="emit('unfocus-event')"
|
|
73
|
+
@rename-input="emit('rename-input', $event)"
|
|
74
|
+
@rename-commit="emit('rename-commit')"
|
|
75
|
+
@rename-cancel="emit('rename-cancel')"
|
|
76
|
+
/>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<!-- Single-day events -->
|
|
80
|
+
<div
|
|
81
|
+
class="space-y-0.5"
|
|
82
|
+
:class="{ 'mt-0.5': cell.laneSlots.length > 0 }"
|
|
83
|
+
>
|
|
84
|
+
<ACalendarEventChip
|
|
85
|
+
v-for="evt in cell.events.slice(0, 3)"
|
|
86
|
+
:key="evt.id"
|
|
87
|
+
:event="evt"
|
|
88
|
+
:is-dragging="dragId === evt.id"
|
|
89
|
+
:focusers="eventFocusers(evt.id)"
|
|
90
|
+
:rename-id="renameId"
|
|
91
|
+
:rename-value="renameValue"
|
|
92
|
+
@click="emit('open-event', $event)"
|
|
93
|
+
@drag-start="emit('drag-start', $event)"
|
|
94
|
+
@pointer-enter="emit('focus-event', evt.id)"
|
|
95
|
+
@pointer-leave="emit('unfocus-event')"
|
|
96
|
+
@rename-input="emit('rename-input', $event)"
|
|
97
|
+
@rename-commit="emit('rename-commit')"
|
|
98
|
+
@rename-cancel="emit('rename-cancel')"
|
|
99
|
+
/>
|
|
100
|
+
<span
|
|
101
|
+
v-if="cell.events.length > 3"
|
|
102
|
+
class="block text-[10px] text-(--ui-text-dimmed) px-1"
|
|
103
|
+
>
|
|
104
|
+
+{{ cell.events.length - 3 }} more
|
|
105
|
+
</span>
|
|
106
|
+
</div>
|
|
107
|
+
</template>
|
|
108
|
+
</div>
|
|
109
|
+
</template>
|