@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
|
@@ -48,6 +48,10 @@ function getStrArr(key) {
|
|
|
48
48
|
const v = storage()?.pageMeta?.[key];
|
|
49
49
|
return Array.isArray(v) ? v : [];
|
|
50
50
|
}
|
|
51
|
+
function getObjArr(key) {
|
|
52
|
+
const v = storage()?.pageMeta?.[key];
|
|
53
|
+
return Array.isArray(v) ? v : [];
|
|
54
|
+
}
|
|
51
55
|
function getNum(key, fallback = 0) {
|
|
52
56
|
return storage()?.pageMeta?.[key] ?? fallback;
|
|
53
57
|
}
|
|
@@ -55,7 +59,10 @@ function getBool(key) {
|
|
|
55
59
|
return Boolean(storage()?.pageMeta?.[key]);
|
|
56
60
|
}
|
|
57
61
|
function patch(update) {
|
|
58
|
-
storage()
|
|
62
|
+
const s = storage();
|
|
63
|
+
if (!s) return;
|
|
64
|
+
if (s.pageMeta) Object.assign(s.pageMeta, update);
|
|
65
|
+
s.updateMeta?.(update);
|
|
59
66
|
}
|
|
60
67
|
const labelDraft = ref("");
|
|
61
68
|
function commitLabel() {
|
|
@@ -148,6 +155,10 @@ const displayValue = computed(() => {
|
|
|
148
155
|
const lat = getNum(metaKey.value);
|
|
149
156
|
return lat ? `${getNum(props.node.attrs.latKey)?.toFixed(2)}, ${getNum(props.node.attrs.lngKey)?.toFixed(2)}` : "Set";
|
|
150
157
|
}
|
|
158
|
+
if (t === "members") {
|
|
159
|
+
const arr = getObjArr(metaKey.value);
|
|
160
|
+
return arr.length ? arr.map((m) => m.label).join(", ") : "Add members";
|
|
161
|
+
}
|
|
151
162
|
return getStr(metaKey.value) || "\u2014";
|
|
152
163
|
});
|
|
153
164
|
const chipColor = computed(() => {
|
|
@@ -159,25 +170,44 @@ const popoverOpen = ref(false);
|
|
|
159
170
|
const editingText = ref(false);
|
|
160
171
|
const textDraft = ref("");
|
|
161
172
|
const newOption = ref("");
|
|
173
|
+
const memberSearch = ref("");
|
|
174
|
+
const mentionItems = computed(
|
|
175
|
+
() => props.editor.storage?.metaField?.mentionItems ?? []
|
|
176
|
+
);
|
|
177
|
+
const filteredMentionItems = computed(() => {
|
|
178
|
+
const q = memberSearch.value.toLowerCase();
|
|
179
|
+
return q ? mentionItems.value.filter((u) => u.label.toLowerCase().includes(q)) : mentionItems.value;
|
|
180
|
+
});
|
|
181
|
+
function onToggleMember(user) {
|
|
182
|
+
const current = getObjArr(metaKey.value);
|
|
183
|
+
const exists = current.some((m) => m.id === user.id);
|
|
184
|
+
patch({ [metaKey.value]: exists ? current.filter((m) => m.id !== user.id) : [...current, { id: user.id, label: user.label }] });
|
|
185
|
+
}
|
|
162
186
|
function openEditor() {
|
|
163
187
|
labelDraft.value = fieldLabel.value;
|
|
164
188
|
popoverOpen.value = true;
|
|
165
189
|
}
|
|
166
|
-
function
|
|
190
|
+
function _startTextEdit() {
|
|
167
191
|
textDraft.value = getStr(metaKey.value);
|
|
168
192
|
editingText.value = true;
|
|
169
193
|
nextTick(() => document.querySelector(".meta-text-input")?.focus());
|
|
170
194
|
}
|
|
171
|
-
function
|
|
195
|
+
function _commitText() {
|
|
172
196
|
patch({ [metaKey.value]: textDraft.value });
|
|
173
197
|
editingText.value = false;
|
|
174
198
|
}
|
|
175
199
|
</script>
|
|
176
200
|
|
|
177
201
|
<template>
|
|
178
|
-
<NodeViewWrapper
|
|
202
|
+
<NodeViewWrapper
|
|
203
|
+
as="span"
|
|
204
|
+
class="inline-flex items-center"
|
|
205
|
+
>
|
|
179
206
|
<!-- ── Chip wrapper ─────────────────────────────────────────────────────── -->
|
|
180
|
-
<UPopover
|
|
207
|
+
<UPopover
|
|
208
|
+
v-model:open="popoverOpen"
|
|
209
|
+
:content="{ side: 'bottom', align: 'start' }"
|
|
210
|
+
>
|
|
181
211
|
<button
|
|
182
212
|
type="button"
|
|
183
213
|
class="inline-flex items-center gap-1 rounded-md border border-default bg-muted px-2 py-0.5 text-xs font-medium text-default hover:bg-elevated cursor-pointer select-none mx-0.5"
|
|
@@ -197,10 +227,16 @@ function commitText() {
|
|
|
197
227
|
<span class="text-default">
|
|
198
228
|
<!-- Toggle shows a switch icon -->
|
|
199
229
|
<span v-if="fieldType === 'toggle'">
|
|
200
|
-
<UIcon
|
|
230
|
+
<UIcon
|
|
231
|
+
:name="getBool(metaKey) ? 'i-lucide-toggle-right' : 'i-lucide-toggle-left'"
|
|
232
|
+
class="size-3.5 align-middle"
|
|
233
|
+
/>
|
|
201
234
|
</span>
|
|
202
235
|
<!-- Rating shows stars -->
|
|
203
|
-
<span
|
|
236
|
+
<span
|
|
237
|
+
v-else-if="fieldType === 'rating'"
|
|
238
|
+
class="flex gap-0.5"
|
|
239
|
+
>
|
|
204
240
|
<UIcon
|
|
205
241
|
v-for="i in sliderMax"
|
|
206
242
|
:key="i"
|
|
@@ -235,11 +271,14 @@ function commitText() {
|
|
|
235
271
|
class="flex-1 text-xs font-medium bg-transparent border-none outline-none"
|
|
236
272
|
@blur="commitLabel"
|
|
237
273
|
@keydown.enter.prevent="commitLabel"
|
|
238
|
-
|
|
274
|
+
>
|
|
239
275
|
</div>
|
|
240
276
|
|
|
241
277
|
<!-- ── Toggle ──────────────────────────────────────────────────── -->
|
|
242
|
-
<div
|
|
278
|
+
<div
|
|
279
|
+
v-if="fieldType === 'toggle'"
|
|
280
|
+
class="flex items-center justify-between"
|
|
281
|
+
>
|
|
243
282
|
<span class="text-xs text-muted">{{ getBool(metaKey) ? "On" : "Off" }}</span>
|
|
244
283
|
<USwitch
|
|
245
284
|
:model-value="getBool(metaKey)"
|
|
@@ -248,7 +287,10 @@ function commitText() {
|
|
|
248
287
|
</div>
|
|
249
288
|
|
|
250
289
|
<!-- ── Color presets ───────────────────────────────────────────── -->
|
|
251
|
-
<div
|
|
290
|
+
<div
|
|
291
|
+
v-else-if="fieldType === 'colorPreset'"
|
|
292
|
+
class="flex flex-wrap gap-1.5"
|
|
293
|
+
>
|
|
252
294
|
<button
|
|
253
295
|
v-for="c in allPresets"
|
|
254
296
|
:key="c"
|
|
@@ -263,18 +305,24 @@ function commitText() {
|
|
|
263
305
|
class="size-5 rounded-full border border-default flex items-center justify-center text-muted hover:bg-muted"
|
|
264
306
|
@click="patch({ [metaKey]: '' })"
|
|
265
307
|
>
|
|
266
|
-
<UIcon
|
|
308
|
+
<UIcon
|
|
309
|
+
name="i-lucide-x"
|
|
310
|
+
class="size-3"
|
|
311
|
+
/>
|
|
267
312
|
</button>
|
|
268
313
|
</div>
|
|
269
314
|
|
|
270
315
|
<!-- ── Color picker ────────────────────────────────────────────── -->
|
|
271
|
-
<div
|
|
316
|
+
<div
|
|
317
|
+
v-else-if="fieldType === 'colorPicker'"
|
|
318
|
+
class="space-y-1"
|
|
319
|
+
>
|
|
272
320
|
<input
|
|
273
321
|
type="color"
|
|
274
322
|
:value="getStr(metaKey) || '#6366f1'"
|
|
275
323
|
class="w-full h-8 rounded cursor-pointer"
|
|
276
324
|
@input="(e) => patch({ [metaKey]: e.target.value })"
|
|
277
|
-
|
|
325
|
+
>
|
|
278
326
|
<UButton
|
|
279
327
|
v-if="getStr(metaKey)"
|
|
280
328
|
icon="i-lucide-x"
|
|
@@ -294,7 +342,7 @@ function commitText() {
|
|
|
294
342
|
:value="getStr(metaKey)"
|
|
295
343
|
class="w-full text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
296
344
|
@change="(e) => patch({ [metaKey]: e.target.value })"
|
|
297
|
-
|
|
345
|
+
>
|
|
298
346
|
</div>
|
|
299
347
|
|
|
300
348
|
<!-- ── Datetime ───────────────────────────────────────────────── -->
|
|
@@ -304,32 +352,85 @@ function commitText() {
|
|
|
304
352
|
:value="getStr(metaKey)"
|
|
305
353
|
class="w-full text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
306
354
|
@change="(e) => patch({ [metaKey]: e.target.value })"
|
|
307
|
-
|
|
355
|
+
>
|
|
308
356
|
</div>
|
|
309
357
|
|
|
310
358
|
<!-- ── Date range ─────────────────────────────────────────────── -->
|
|
311
|
-
<div
|
|
312
|
-
|
|
313
|
-
|
|
359
|
+
<div
|
|
360
|
+
v-else-if="fieldType === 'daterange'"
|
|
361
|
+
class="space-y-1"
|
|
362
|
+
>
|
|
363
|
+
<div class="flex items-center gap-1 text-xs text-muted">
|
|
364
|
+
<span class="w-8">Start</span><input
|
|
365
|
+
type="date"
|
|
366
|
+
:value="getStr(startKey)"
|
|
367
|
+
class="flex-1 text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
368
|
+
@change="(e) => patch({ [startKey]: e.target.value })"
|
|
369
|
+
>
|
|
370
|
+
</div>
|
|
371
|
+
<div class="flex items-center gap-1 text-xs text-muted">
|
|
372
|
+
<span class="w-8">End</span><input
|
|
373
|
+
type="date"
|
|
374
|
+
:value="getStr(endKey)"
|
|
375
|
+
class="flex-1 text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
376
|
+
@change="(e) => patch({ [endKey]: e.target.value })"
|
|
377
|
+
>
|
|
378
|
+
</div>
|
|
314
379
|
</div>
|
|
315
380
|
|
|
316
381
|
<!-- ── Datetime range ─────────────────────────────────────────── -->
|
|
317
|
-
<div
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
382
|
+
<div
|
|
383
|
+
v-else-if="fieldType === 'datetimerange'"
|
|
384
|
+
class="space-y-1"
|
|
385
|
+
>
|
|
386
|
+
<div class="flex items-center gap-1 text-xs text-muted">
|
|
387
|
+
<span class="w-8">Start</span><input
|
|
388
|
+
type="datetime-local"
|
|
389
|
+
:value="getStr(startKey)"
|
|
390
|
+
class="flex-1 text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
391
|
+
@change="(e) => patch({ [startKey]: e.target.value })"
|
|
392
|
+
>
|
|
393
|
+
</div>
|
|
394
|
+
<div class="flex items-center gap-1 text-xs text-muted">
|
|
395
|
+
<span class="w-8">End</span><input
|
|
396
|
+
type="datetime-local"
|
|
397
|
+
:value="getStr(endKey)"
|
|
398
|
+
class="flex-1 text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
399
|
+
@change="(e) => patch({ [endKey]: e.target.value })"
|
|
400
|
+
>
|
|
401
|
+
</div>
|
|
402
|
+
<div class="flex items-center gap-2 text-xs">
|
|
403
|
+
<USwitch
|
|
404
|
+
:model-value="getBool(allDayKey)"
|
|
405
|
+
@update:model-value="(v) => patch({ [allDayKey]: v })"
|
|
406
|
+
/><span class="text-muted">All day</span>
|
|
407
|
+
</div>
|
|
321
408
|
</div>
|
|
322
409
|
|
|
323
410
|
<!-- ── Time ───────────────────────────────────────────────────── -->
|
|
324
411
|
<div v-else-if="fieldType === 'time' || fieldType === 'timerange'">
|
|
325
412
|
<div class="space-y-1">
|
|
326
|
-
<input
|
|
327
|
-
|
|
413
|
+
<input
|
|
414
|
+
type="time"
|
|
415
|
+
:value="fieldType === 'time' ? getStr(metaKey) : getStr(startKey)"
|
|
416
|
+
class="w-full text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
417
|
+
@change="(e) => patch({ [fieldType === 'time' ? metaKey : startKey]: e.target.value })"
|
|
418
|
+
>
|
|
419
|
+
<input
|
|
420
|
+
v-if="fieldType === 'timerange'"
|
|
421
|
+
type="time"
|
|
422
|
+
:value="getStr(endKey)"
|
|
423
|
+
class="w-full text-xs rounded border border-default bg-transparent px-2 py-1 outline-none"
|
|
424
|
+
@change="(e) => patch({ [endKey]: e.target.value })"
|
|
425
|
+
>
|
|
328
426
|
</div>
|
|
329
427
|
</div>
|
|
330
428
|
|
|
331
429
|
<!-- ── Slider ─────────────────────────────────────────────────── -->
|
|
332
|
-
<div
|
|
430
|
+
<div
|
|
431
|
+
v-else-if="fieldType === 'slider'"
|
|
432
|
+
class="space-y-1"
|
|
433
|
+
>
|
|
333
434
|
<div class="flex items-center gap-2">
|
|
334
435
|
<USlider
|
|
335
436
|
:model-value="getNum(metaKey, sliderMin)"
|
|
@@ -347,7 +448,10 @@ function commitText() {
|
|
|
347
448
|
</div>
|
|
348
449
|
|
|
349
450
|
<!-- ── Number ─────────────────────────────────────────────────── -->
|
|
350
|
-
<div
|
|
451
|
+
<div
|
|
452
|
+
v-else-if="fieldType === 'number'"
|
|
453
|
+
class="flex items-center gap-2"
|
|
454
|
+
>
|
|
351
455
|
<UInputNumber
|
|
352
456
|
:model-value="getNum(metaKey)"
|
|
353
457
|
:min="sliderMin"
|
|
@@ -357,11 +461,17 @@ function commitText() {
|
|
|
357
461
|
size="xs"
|
|
358
462
|
@update:model-value="(v) => patch({ [metaKey]: v })"
|
|
359
463
|
/>
|
|
360
|
-
<span
|
|
464
|
+
<span
|
|
465
|
+
v-if="unit"
|
|
466
|
+
class="text-xs text-muted"
|
|
467
|
+
>{{ unit }}</span>
|
|
361
468
|
</div>
|
|
362
469
|
|
|
363
470
|
<!-- ── Rating ─────────────────────────────────────────────────── -->
|
|
364
|
-
<div
|
|
471
|
+
<div
|
|
472
|
+
v-else-if="fieldType === 'rating'"
|
|
473
|
+
class="flex gap-1"
|
|
474
|
+
>
|
|
365
475
|
<button
|
|
366
476
|
v-for="i in sliderMax"
|
|
367
477
|
:key="i"
|
|
@@ -377,7 +487,10 @@ function commitText() {
|
|
|
377
487
|
</div>
|
|
378
488
|
|
|
379
489
|
<!-- ── Select ─────────────────────────────────────────────────── -->
|
|
380
|
-
<div
|
|
490
|
+
<div
|
|
491
|
+
v-else-if="fieldType === 'select'"
|
|
492
|
+
class="space-y-1"
|
|
493
|
+
>
|
|
381
494
|
<button
|
|
382
495
|
v-for="opt in options"
|
|
383
496
|
:key="opt"
|
|
@@ -385,14 +498,26 @@ function commitText() {
|
|
|
385
498
|
:class="getStr(metaKey) === opt ? 'bg-primary/10 text-primary' : ''"
|
|
386
499
|
@click="toggleSelect(opt)"
|
|
387
500
|
>
|
|
388
|
-
<UIcon
|
|
501
|
+
<UIcon
|
|
502
|
+
v-if="getStr(metaKey) === opt"
|
|
503
|
+
name="i-lucide-check"
|
|
504
|
+
class="size-3"
|
|
505
|
+
/>
|
|
389
506
|
<span :class="getStr(metaKey) === opt ? '' : 'ml-5'">{{ opt }}</span>
|
|
390
507
|
</button>
|
|
391
|
-
<div
|
|
508
|
+
<div
|
|
509
|
+
v-if="!options.length"
|
|
510
|
+
class="text-xs text-muted px-2"
|
|
511
|
+
>
|
|
512
|
+
No options yet
|
|
513
|
+
</div>
|
|
392
514
|
</div>
|
|
393
515
|
|
|
394
516
|
<!-- ── Multi select ───────────────────────────────────────────── -->
|
|
395
|
-
<div
|
|
517
|
+
<div
|
|
518
|
+
v-else-if="fieldType === 'multiselect'"
|
|
519
|
+
class="space-y-1"
|
|
520
|
+
>
|
|
396
521
|
<button
|
|
397
522
|
v-for="opt in options"
|
|
398
523
|
:key="opt"
|
|
@@ -400,14 +525,25 @@ function commitText() {
|
|
|
400
525
|
:class="getStrArr(metaKey).includes(opt) ? 'bg-primary/10 text-primary' : ''"
|
|
401
526
|
@click="toggleMultiSelect(opt)"
|
|
402
527
|
>
|
|
403
|
-
<UIcon
|
|
528
|
+
<UIcon
|
|
529
|
+
:name="getStrArr(metaKey).includes(opt) ? 'i-lucide-check-square' : 'i-lucide-square'"
|
|
530
|
+
class="size-3"
|
|
531
|
+
/>
|
|
404
532
|
{{ opt }}
|
|
405
533
|
</button>
|
|
406
|
-
<div
|
|
534
|
+
<div
|
|
535
|
+
v-if="!options.length"
|
|
536
|
+
class="text-xs text-muted px-2"
|
|
537
|
+
>
|
|
538
|
+
No options yet
|
|
539
|
+
</div>
|
|
407
540
|
</div>
|
|
408
541
|
|
|
409
542
|
<!-- ── Tags ───────────────────────────────────────────────────── -->
|
|
410
|
-
<div
|
|
543
|
+
<div
|
|
544
|
+
v-else-if="fieldType === 'tags'"
|
|
545
|
+
class="space-y-2"
|
|
546
|
+
>
|
|
411
547
|
<div class="flex flex-wrap gap-1">
|
|
412
548
|
<span
|
|
413
549
|
v-for="tag in getStrArr(metaKey)"
|
|
@@ -415,27 +551,43 @@ function commitText() {
|
|
|
415
551
|
class="inline-flex items-center gap-0.5 rounded-full bg-primary/10 text-primary px-2 py-0.5 text-xs"
|
|
416
552
|
>
|
|
417
553
|
{{ tag }}
|
|
418
|
-
<button @click="toggleTag(tag)"><UIcon
|
|
554
|
+
<button @click="toggleTag(tag)"><UIcon
|
|
555
|
+
name="i-lucide-x"
|
|
556
|
+
class="size-3"
|
|
557
|
+
/></button>
|
|
419
558
|
</span>
|
|
420
559
|
</div>
|
|
421
560
|
<div class="flex gap-1">
|
|
422
|
-
<UInput
|
|
561
|
+
<UInput
|
|
562
|
+
v-model="newOption"
|
|
563
|
+
size="xs"
|
|
564
|
+
placeholder="Add tag…"
|
|
565
|
+
class="flex-1"
|
|
566
|
+
@keydown.enter.prevent="() => {
|
|
423
567
|
if (newOption.trim()) {
|
|
424
568
|
toggleTag(newOption.trim());
|
|
425
569
|
newOption = '';
|
|
426
570
|
}
|
|
427
|
-
}"
|
|
428
|
-
|
|
571
|
+
}"
|
|
572
|
+
/>
|
|
573
|
+
<UButton
|
|
574
|
+
size="xs"
|
|
575
|
+
icon="i-lucide-plus"
|
|
576
|
+
@click="() => {
|
|
429
577
|
if (newOption.trim()) {
|
|
430
578
|
toggleTag(newOption.trim());
|
|
431
579
|
newOption = '';
|
|
432
580
|
}
|
|
433
|
-
}"
|
|
581
|
+
}"
|
|
582
|
+
/>
|
|
434
583
|
</div>
|
|
435
584
|
</div>
|
|
436
585
|
|
|
437
586
|
<!-- ── URL ────────────────────────────────────────────────────── -->
|
|
438
|
-
<div
|
|
587
|
+
<div
|
|
588
|
+
v-else-if="fieldType === 'url'"
|
|
589
|
+
class="space-y-1"
|
|
590
|
+
>
|
|
439
591
|
<UInput
|
|
440
592
|
:model-value="getStr(metaKey)"
|
|
441
593
|
size="xs"
|
|
@@ -443,8 +595,16 @@ function commitText() {
|
|
|
443
595
|
leading-icon="i-lucide-link"
|
|
444
596
|
@update:model-value="(v) => patch({ [metaKey]: v })"
|
|
445
597
|
/>
|
|
446
|
-
<a
|
|
447
|
-
|
|
598
|
+
<a
|
|
599
|
+
v-if="getStr(metaKey)"
|
|
600
|
+
:href="getStr(metaKey)"
|
|
601
|
+
target="_blank"
|
|
602
|
+
class="text-xs text-primary hover:underline flex items-center gap-1"
|
|
603
|
+
>
|
|
604
|
+
<UIcon
|
|
605
|
+
name="i-lucide-external-link"
|
|
606
|
+
class="size-3"
|
|
607
|
+
/>
|
|
448
608
|
Open
|
|
449
609
|
</a>
|
|
450
610
|
</div>
|
|
@@ -461,27 +621,95 @@ function commitText() {
|
|
|
461
621
|
</div>
|
|
462
622
|
|
|
463
623
|
<!-- ── Location ───────────────────────────────────────────────── -->
|
|
464
|
-
<div
|
|
624
|
+
<div
|
|
625
|
+
v-else-if="fieldType === 'location'"
|
|
626
|
+
class="space-y-1"
|
|
627
|
+
>
|
|
465
628
|
<div class="flex items-center gap-1">
|
|
466
629
|
<span class="text-xs text-muted w-7">Lat</span>
|
|
467
|
-
<UInputNumber
|
|
630
|
+
<UInputNumber
|
|
631
|
+
:model-value="getNum(props.node.attrs.latKey)"
|
|
632
|
+
size="xs"
|
|
633
|
+
class="flex-1"
|
|
634
|
+
:step="1e-4"
|
|
635
|
+
@update:model-value="(v) => patch({ [props.node.attrs.latKey]: v })"
|
|
636
|
+
/>
|
|
468
637
|
</div>
|
|
469
638
|
<div class="flex items-center gap-1">
|
|
470
639
|
<span class="text-xs text-muted w-7">Lng</span>
|
|
471
|
-
<UInputNumber
|
|
640
|
+
<UInputNumber
|
|
641
|
+
:model-value="getNum(props.node.attrs.lngKey)"
|
|
642
|
+
size="xs"
|
|
643
|
+
class="flex-1"
|
|
644
|
+
:step="1e-4"
|
|
645
|
+
@update:model-value="(v) => patch({ [props.node.attrs.lngKey]: v })"
|
|
646
|
+
/>
|
|
472
647
|
</div>
|
|
473
648
|
</div>
|
|
474
649
|
|
|
475
650
|
<!-- ── Icon ───────────────────────────────────────────────────── -->
|
|
476
|
-
<div
|
|
651
|
+
<div
|
|
652
|
+
v-else-if="fieldType === 'icon'"
|
|
653
|
+
class="space-y-1"
|
|
654
|
+
>
|
|
477
655
|
<AIconPicker
|
|
478
656
|
:model-value="getStr(metaKey)"
|
|
479
657
|
@update:model-value="(v) => patch({ [metaKey]: v })"
|
|
480
658
|
/>
|
|
481
659
|
</div>
|
|
482
660
|
|
|
661
|
+
<!-- ── Members ──────────────────────────────────────────────── -->
|
|
662
|
+
<div
|
|
663
|
+
v-else-if="fieldType === 'members'"
|
|
664
|
+
class="space-y-1"
|
|
665
|
+
>
|
|
666
|
+
<UInput
|
|
667
|
+
v-model="memberSearch"
|
|
668
|
+
size="xs"
|
|
669
|
+
variant="none"
|
|
670
|
+
placeholder="Search members…"
|
|
671
|
+
leading-icon="i-lucide-search"
|
|
672
|
+
/>
|
|
673
|
+
<USeparator />
|
|
674
|
+
<div class="max-h-48 overflow-y-auto">
|
|
675
|
+
<button
|
|
676
|
+
v-for="user in filteredMentionItems"
|
|
677
|
+
:key="user.id"
|
|
678
|
+
class="flex items-center gap-2 w-full px-2 py-1.5 rounded text-xs hover:bg-muted text-left"
|
|
679
|
+
@click="onToggleMember(user)"
|
|
680
|
+
>
|
|
681
|
+
<UIcon
|
|
682
|
+
v-if="getObjArr(metaKey).some((m) => m.id === user.id)"
|
|
683
|
+
name="i-lucide-check"
|
|
684
|
+
class="size-3.5 text-primary shrink-0"
|
|
685
|
+
/>
|
|
686
|
+
<span
|
|
687
|
+
v-else
|
|
688
|
+
class="size-3.5 shrink-0"
|
|
689
|
+
/>
|
|
690
|
+
<UAvatar
|
|
691
|
+
:alt="user.label"
|
|
692
|
+
:style="user.avatar?.style"
|
|
693
|
+
size="2xs"
|
|
694
|
+
/>
|
|
695
|
+
<span class="truncate">{{ user.label }}</span>
|
|
696
|
+
</button>
|
|
697
|
+
<div
|
|
698
|
+
v-if="!filteredMentionItems.length"
|
|
699
|
+
class="px-2 py-2 text-xs text-muted"
|
|
700
|
+
>
|
|
701
|
+
No members found
|
|
702
|
+
</div>
|
|
703
|
+
</div>
|
|
704
|
+
</div>
|
|
705
|
+
|
|
483
706
|
<!-- Fallback -->
|
|
484
|
-
<div
|
|
707
|
+
<div
|
|
708
|
+
v-else
|
|
709
|
+
class="text-xs text-muted"
|
|
710
|
+
>
|
|
711
|
+
{{ fieldType }}
|
|
712
|
+
</div>
|
|
485
713
|
</div>
|
|
486
714
|
</template>
|
|
487
715
|
</UPopover>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { NodeViewWrapper } from "@tiptap/vue-3";
|
|
3
|
+
import { computed } from "vue";
|
|
3
4
|
const props = defineProps({
|
|
4
5
|
decorations: { type: Array, required: true },
|
|
5
6
|
selected: { type: Boolean, required: true },
|
|
@@ -17,7 +18,13 @@ const iconName = computed(() => props.node.attrs.name || "i-lucide-star");
|
|
|
17
18
|
</script>
|
|
18
19
|
|
|
19
20
|
<template>
|
|
20
|
-
<NodeViewWrapper
|
|
21
|
-
|
|
21
|
+
<NodeViewWrapper
|
|
22
|
+
as="span"
|
|
23
|
+
class="inline"
|
|
24
|
+
>
|
|
25
|
+
<UIcon
|
|
26
|
+
:name="iconName"
|
|
27
|
+
class="size-4 shrink-0 align-sub"
|
|
28
|
+
/>
|
|
22
29
|
</NodeViewWrapper>
|
|
23
30
|
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { NodeViewWrapper, NodeViewContent } from "@tiptap/vue-3";
|
|
3
|
+
import { ref, computed, watch } from "vue";
|
|
3
4
|
const props = defineProps({
|
|
4
5
|
decorations: { type: Array, required: true },
|
|
5
6
|
selected: { type: Boolean, required: true },
|
|
@@ -32,8 +33,14 @@ watch(() => props.node.childCount, () => {
|
|
|
32
33
|
</script>
|
|
33
34
|
|
|
34
35
|
<template>
|
|
35
|
-
<NodeViewWrapper
|
|
36
|
-
|
|
36
|
+
<NodeViewWrapper
|
|
37
|
+
as="div"
|
|
38
|
+
class="my-5"
|
|
39
|
+
>
|
|
40
|
+
<div
|
|
41
|
+
class="relative flex items-center border-b border-(--ui-border)"
|
|
42
|
+
contenteditable="false"
|
|
43
|
+
>
|
|
37
44
|
<button
|
|
38
45
|
v-for="(tab, i) in tabs"
|
|
39
46
|
:key="i"
|
|
@@ -41,9 +48,16 @@ watch(() => props.node.childCount, () => {
|
|
|
41
48
|
:class="activeIndex === i ? 'text-(--ui-primary)' : 'text-(--ui-text-muted) hover:text-(--ui-text)'"
|
|
42
49
|
@click="activeIndex = i"
|
|
43
50
|
>
|
|
44
|
-
<UIcon
|
|
51
|
+
<UIcon
|
|
52
|
+
v-if="tab.icon"
|
|
53
|
+
:name="tab.icon"
|
|
54
|
+
class="size-4 shrink-0 me-1.5 inline-block align-text-bottom"
|
|
55
|
+
/>
|
|
45
56
|
<span>{{ tab.label }}</span>
|
|
46
|
-
<span
|
|
57
|
+
<span
|
|
58
|
+
v-if="activeIndex === i"
|
|
59
|
+
class="absolute bottom-0 inset-x-0 h-0.5 bg-(--ui-primary) rounded-full"
|
|
60
|
+
/>
|
|
47
61
|
</button>
|
|
48
62
|
</div>
|
|
49
63
|
<div class="mt-4">
|