@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,9 +1,15 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, watch, 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";
|
|
7
|
+
import { useTimelineView } from "../../composables/useTimelineView";
|
|
6
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";
|
|
7
13
|
const props = defineProps({
|
|
8
14
|
docId: { type: String, required: true },
|
|
9
15
|
childProvider: { type: null, required: true },
|
|
@@ -27,77 +33,139 @@ const {
|
|
|
27
33
|
closePanel
|
|
28
34
|
} = useNodePanel(childProviderRef);
|
|
29
35
|
const myClientId = computed(() => props.childProvider?.awareness?.clientID ?? 0);
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
+
});
|
|
37
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
|
+
}
|
|
38
115
|
function addEpic() {
|
|
39
116
|
if (!props.editable) return;
|
|
40
|
-
const id = tree.createChild(null, locale.value.
|
|
117
|
+
const id = tree.createChild(null, locale.value.newEpic);
|
|
41
118
|
const now = /* @__PURE__ */ new Date();
|
|
42
119
|
const end = new Date(now);
|
|
43
120
|
end.setDate(end.getDate() + 14);
|
|
44
121
|
tree.updateMeta(id, {
|
|
45
|
-
dateStart:
|
|
46
|
-
dateEnd:
|
|
122
|
+
dateStart: tl.toDateStr(now),
|
|
123
|
+
dateEnd: tl.toDateStr(end),
|
|
47
124
|
taskProgress: 0,
|
|
48
125
|
color: "#6366f1"
|
|
49
126
|
});
|
|
50
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
|
+
}
|
|
51
137
|
function addTask(epicId) {
|
|
52
138
|
if (!props.editable) return;
|
|
53
|
-
const id = tree.createChild(epicId, locale.value.
|
|
139
|
+
const id = tree.createChild(epicId, locale.value.newTask);
|
|
54
140
|
const now = /* @__PURE__ */ new Date();
|
|
55
141
|
const end = new Date(now);
|
|
56
142
|
end.setDate(end.getDate() + 7);
|
|
57
143
|
tree.updateMeta(id, {
|
|
58
|
-
dateStart:
|
|
59
|
-
dateEnd:
|
|
144
|
+
dateStart: tl.toDateStr(now),
|
|
145
|
+
dateEnd: tl.toDateStr(end),
|
|
60
146
|
taskProgress: 0,
|
|
61
147
|
color: "#818cf8"
|
|
62
148
|
});
|
|
63
149
|
}
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
return
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
);
|
|
76
|
-
return diff * cfg.value.pixelsPerDay;
|
|
77
|
-
}
|
|
78
|
-
function spanWidth(start, end) {
|
|
79
|
-
const s = new Date(start);
|
|
80
|
-
const e = new Date(end);
|
|
81
|
-
const days = Math.max(
|
|
82
|
-
1,
|
|
83
|
-
Math.ceil((e.getTime() - s.getTime()) / (1e3 * 60 * 60 * 24))
|
|
84
|
-
);
|
|
85
|
-
return days * cfg.value.pixelsPerDay;
|
|
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);
|
|
86
161
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
d.setDate(d.getDate() + i);
|
|
92
|
-
const fmt = zoomLevel.value === "week" ? { weekday: "short", day: "numeric" } : { month: "short", day: "numeric" };
|
|
93
|
-
labels.push({
|
|
94
|
-
label: d.toLocaleDateString("en-US", fmt),
|
|
95
|
-
offset: i * cfg.value.pixelsPerDay
|
|
96
|
-
});
|
|
162
|
+
function commitRename() {
|
|
163
|
+
if (renameCooldown) return;
|
|
164
|
+
if (renameId.value && renameValue.value.trim()) {
|
|
165
|
+
tree.renameEntry(renameId.value, renameValue.value.trim());
|
|
97
166
|
}
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
const todayOffset = computed(() => dateToOffset((/* @__PURE__ */ new Date()).toISOString().slice(0, 10)));
|
|
167
|
+
renameId.value = null;
|
|
168
|
+
}
|
|
101
169
|
function orderBetween(list, targetIdx) {
|
|
102
170
|
const prev = list[targetIdx - 1];
|
|
103
171
|
const next = list[targetIdx];
|
|
@@ -118,17 +186,6 @@ const {
|
|
|
118
186
|
tree.moveEntry(srcId, null, newOrder);
|
|
119
187
|
}
|
|
120
188
|
});
|
|
121
|
-
function taskFocusers(taskId) {
|
|
122
|
-
return states.value.filter(
|
|
123
|
-
(s) => s.clientId !== myClientId.value && s["timeline:focused"] === taskId
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
function focusTask(id) {
|
|
127
|
-
setLocalState({ "timeline:focused": id });
|
|
128
|
-
}
|
|
129
|
-
function clearFocus() {
|
|
130
|
-
setLocalState({ "timeline:focused": null });
|
|
131
|
-
}
|
|
132
189
|
const barDragId = ref(null);
|
|
133
190
|
const barDragStart = ref({ clientX: 0, origStart: "", origEnd: "" });
|
|
134
191
|
const barDidMove = ref(false);
|
|
@@ -140,7 +197,7 @@ function onBarPointerDown(e, id) {
|
|
|
140
197
|
e.stopPropagation();
|
|
141
198
|
const entry = tree.entries.value.find((en) => en.id === id);
|
|
142
199
|
const meta = entry?.meta;
|
|
143
|
-
if (!meta?.dateStart
|
|
200
|
+
if (!meta?.dateStart) return;
|
|
144
201
|
barDragId.value = id;
|
|
145
202
|
barDidMove.value = false;
|
|
146
203
|
barHoverEpicId.value = null;
|
|
@@ -148,42 +205,78 @@ function onBarPointerDown(e, id) {
|
|
|
148
205
|
barDragStart.value = {
|
|
149
206
|
clientX: e.clientX,
|
|
150
207
|
origStart: meta.dateStart,
|
|
151
|
-
origEnd: meta.dateEnd
|
|
208
|
+
origEnd: meta.dateEnd ?? meta.dateStart
|
|
152
209
|
};
|
|
153
|
-
|
|
210
|
+
document.addEventListener("pointermove", onDocBarPointerMove);
|
|
211
|
+
document.addEventListener("pointerup", onDocBarPointerUp);
|
|
154
212
|
}
|
|
155
|
-
function
|
|
156
|
-
if (barDragId.value
|
|
157
|
-
const
|
|
158
|
-
if (!entry?.meta?.dateStart) return;
|
|
213
|
+
function onDocBarPointerMove(e) {
|
|
214
|
+
if (!barDragId.value) return;
|
|
215
|
+
const id = barDragId.value;
|
|
159
216
|
const dx = e.clientX - barDragStart.value.clientX;
|
|
160
217
|
if (Math.abs(dx) > 4) barDidMove.value = true;
|
|
161
218
|
const els = document.elementsFromPoint(e.clientX, e.clientY);
|
|
162
219
|
const epicEl = els.find((el) => el.dataset?.epicId);
|
|
163
220
|
barHoverEpicId.value = epicEl?.dataset.epicId ?? null;
|
|
164
|
-
const daysShifted = Math.round(dx /
|
|
221
|
+
const daysShifted = Math.round(dx / tl.pixelsPerDay.value);
|
|
165
222
|
if (daysShifted === lastDaysShifted) return;
|
|
166
223
|
lastDaysShifted = daysShifted;
|
|
167
224
|
const MS = 24 * 60 * 60 * 1e3;
|
|
168
225
|
const s0 = new Date(barDragStart.value.origStart).getTime();
|
|
169
226
|
const e0 = new Date(barDragStart.value.origEnd).getTime();
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
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);
|
|
174
235
|
}
|
|
175
|
-
function
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
if (
|
|
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) {
|
|
179
244
|
tree.moveEntry(id, barHoverEpicId.value, Date.now());
|
|
180
245
|
}
|
|
246
|
+
barDragId.value = null;
|
|
181
247
|
barHoverEpicId.value = null;
|
|
182
248
|
}
|
|
183
249
|
function onBarClick(id, label) {
|
|
184
250
|
if (barDidMove.value) return;
|
|
185
251
|
openNode(id, label);
|
|
186
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
|
+
}
|
|
187
280
|
watch(childDoc, (doc) => {
|
|
188
281
|
if (!doc) return;
|
|
189
282
|
const legacyMap = doc.getMap("task-dates");
|
|
@@ -202,59 +295,38 @@ watch(childDoc, (doc) => {
|
|
|
202
295
|
for (const key of [...legacyMap.keys()]) legacyMap.delete(key);
|
|
203
296
|
});
|
|
204
297
|
}, { immediate: true });
|
|
205
|
-
const containerRef = ref(null);
|
|
206
|
-
function onPointerMove(e) {
|
|
207
|
-
const rect = containerRef.value?.getBoundingClientRect();
|
|
208
|
-
if (!rect) return;
|
|
209
|
-
setLocalState({
|
|
210
|
-
pos: {
|
|
211
|
-
x: (e.clientX - rect.left) / rect.width * 100,
|
|
212
|
-
y: (e.clientY - rect.top) / rect.height * 100
|
|
213
|
-
}
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
function clearCursor() {
|
|
217
|
-
setLocalState({ pos: null });
|
|
218
|
-
}
|
|
219
298
|
onBeforeUnmount(() => {
|
|
220
|
-
setLocalState({ "
|
|
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);
|
|
221
304
|
});
|
|
222
305
|
defineExpose({ connectedUsers });
|
|
223
306
|
</script>
|
|
224
307
|
|
|
225
308
|
<template>
|
|
226
|
-
<div
|
|
227
|
-
ref="containerRef"
|
|
228
|
-
class="flex-1 min-h-0 flex flex-col relative"
|
|
229
|
-
@pointermove="onPointerMove"
|
|
230
|
-
@pointerleave="clearCursor"
|
|
231
|
-
>
|
|
309
|
+
<div class="flex-1 min-h-0 flex flex-col relative">
|
|
232
310
|
<!-- Toolbar -->
|
|
233
|
-
<
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
variant="ghost"
|
|
250
|
-
color="neutral"
|
|
251
|
-
:label="locale.addEpic"
|
|
252
|
-
@click="addEpic"
|
|
253
|
-
/>
|
|
254
|
-
</div>
|
|
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
|
+
/>
|
|
255
327
|
|
|
256
328
|
<!-- Content -->
|
|
257
|
-
<div class="flex-1 overflow-
|
|
329
|
+
<div class="flex-1 min-h-0 overflow-hidden">
|
|
258
330
|
<!-- Empty state -->
|
|
259
331
|
<div
|
|
260
332
|
v-if="epics.length === 0"
|
|
@@ -278,153 +350,103 @@ defineExpose({ connectedUsers });
|
|
|
278
350
|
|
|
279
351
|
<div
|
|
280
352
|
v-else
|
|
281
|
-
class="flex h-full"
|
|
353
|
+
class="flex flex-col h-full"
|
|
282
354
|
>
|
|
283
|
-
<!--
|
|
284
|
-
<div class="
|
|
285
|
-
|
|
286
|
-
<
|
|
287
|
-
|
|
288
|
-
|
|
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"
|
|
289
379
|
>
|
|
290
|
-
<
|
|
291
|
-
|
|
292
|
-
:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
class="h-9 w-full flex items-center px-3 text-sm font-medium border-b border-(--ui-border) cursor-grab hover:bg-(--ui-bg-elevated) text-left transition-colors touch-none"
|
|
297
|
-
:class="{
|
|
298
|
-
'border-t-2 border-(--ui-primary)': epicDragOver === epic.id,
|
|
299
|
-
'opacity-40': epicDragId === epic.id
|
|
300
|
-
}"
|
|
301
|
-
@pointerdown="editable && handleEpicPointerDown($event, epic.id)"
|
|
302
|
-
@click="openNode(epic.id, epic.label)"
|
|
303
|
-
>
|
|
304
|
-
<UIcon
|
|
305
|
-
name="i-lucide-chevron-right"
|
|
306
|
-
class="size-3 mr-1.5 text-(--ui-text-muted) shrink-0"
|
|
307
|
-
/>
|
|
308
|
-
<span class="truncate">{{ epic.label }}</span>
|
|
309
|
-
</button>
|
|
310
|
-
|
|
311
|
-
<button
|
|
312
|
-
v-for="task in tree.childrenOf(epic.id)"
|
|
313
|
-
:key="task.id"
|
|
314
|
-
class="h-8 w-full flex items-center px-6 text-xs border-b border-(--ui-border) hover:bg-(--ui-bg-elevated) text-left"
|
|
315
|
-
@click="openNode(task.id, task.label)"
|
|
316
|
-
>
|
|
317
|
-
<span class="truncate text-(--ui-text-dimmed)">
|
|
318
|
-
{{ task.label }}
|
|
319
|
-
</span>
|
|
320
|
-
</button>
|
|
321
|
-
|
|
322
|
-
<button
|
|
323
|
-
v-if="editable"
|
|
324
|
-
class="h-7 w-full flex items-center px-6 text-xs text-(--ui-text-dimmed) hover:text-(--ui-text) border-b border-(--ui-border) text-left"
|
|
325
|
-
@click="addTask(epic.id)"
|
|
326
|
-
>
|
|
327
|
-
+ {{ locale.addTask.toLowerCase() }}
|
|
328
|
-
</button>
|
|
329
|
-
</div>
|
|
330
|
-
</TransitionGroup>
|
|
380
|
+
<ATimelineAxis
|
|
381
|
+
:labels="tl.axisLabels.value"
|
|
382
|
+
:today-offset="tl.todayOffset.value"
|
|
383
|
+
:container-width="tl.containerWidth.value"
|
|
384
|
+
/>
|
|
385
|
+
</div>
|
|
331
386
|
</div>
|
|
332
387
|
|
|
333
|
-
<!--
|
|
334
|
-
<div
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
+
/>
|
|
352
417
|
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
v-for="epic in epics"
|
|
360
|
-
:key="epic.id"
|
|
361
|
-
:data-epic-id="epic.id"
|
|
362
|
-
:class="barHoverEpicId === epic.id && barDragId ? 'bg-(--ui-primary)/5' : ''"
|
|
363
|
-
>
|
|
364
|
-
<!-- Epic bar row -->
|
|
365
|
-
<div class="h-9 relative border-b border-(--ui-border)">
|
|
366
|
-
<div
|
|
367
|
-
v-if="epic.meta?.dateStart && epic.meta?.dateEnd"
|
|
368
|
-
class="absolute top-2 h-5 rounded text-white text-[10px] flex items-center px-2 font-medium select-none transition-opacity"
|
|
369
|
-
:class="barDragId === epic.id ? 'opacity-60 cursor-grabbing' : 'cursor-grab hover:opacity-80'"
|
|
370
|
-
:style="{
|
|
371
|
-
left: `${dateToOffset(epic.meta.dateStart)}px`,
|
|
372
|
-
width: `${spanWidth(epic.meta.dateStart, epic.meta.dateEnd)}px`,
|
|
373
|
-
background: epic.meta.color ?? '#6366f1',
|
|
374
|
-
maxWidth: '100%',
|
|
375
|
-
...taskFocusers(epic.id).length ? { outline: `2px solid ${taskFocusers(epic.id)[0].user?.color}`, outlineOffset: '1px' } : {}
|
|
376
|
-
}"
|
|
377
|
-
@pointerdown="onBarPointerDown($event, epic.id)"
|
|
378
|
-
@pointermove="onBarPointerMove($event, epic.id)"
|
|
379
|
-
@pointerup="onBarPointerUp(epic.id)"
|
|
380
|
-
@pointerenter="focusTask(epic.id)"
|
|
381
|
-
@pointerleave="clearFocus"
|
|
382
|
-
@click.stop="onBarClick(epic.id, epic.label)"
|
|
383
|
-
>
|
|
384
|
-
<span class="truncate">{{ epic.label }}</span>
|
|
385
|
-
</div>
|
|
386
|
-
</div>
|
|
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
|
+
/>
|
|
387
424
|
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
|
|
416
|
-
<!-- Add task spacer -->
|
|
417
|
-
<div
|
|
418
|
-
v-if="editable"
|
|
419
|
-
class="h-7 border-b border-(--ui-border)"
|
|
420
|
-
/>
|
|
421
|
-
</div>
|
|
422
|
-
</TransitionGroup>
|
|
423
|
-
|
|
424
|
-
<!-- Today vertical line across bars -->
|
|
425
|
-
<div
|
|
426
|
-
class="absolute top-8 bottom-0 w-px bg-(--ui-primary) opacity-20 pointer-events-none"
|
|
427
|
-
:style="{ left: `${todayOffset}px` }"
|
|
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"
|
|
428
450
|
/>
|
|
429
451
|
</div>
|
|
430
452
|
</div>
|