@opencloud-eu/web-pkg 6.0.0 → 6.2.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/TextEditor-CTRIgoeG.js +819 -0
- package/dist/assets/worker-BVTM6bn-.js +1 -0
- package/dist/assets/worker-Bv-mZ-VL.js +25 -0
- package/dist/assets/worker-Dx2ttEp-.js +25 -0
- package/dist/assets/worker-nUcRt7qV.js +25 -0
- package/dist/composables-CAlEpA5b.js +20172 -0
- package/dist/src/apps/types.d.ts +9 -9
- package/dist/src/components/AppBar/AppBar.vue.d.ts +82 -82
- package/dist/src/components/AppLoadingSpinner.vue.d.ts +2 -1
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +29 -33
- package/dist/src/components/AppTemplates/AppWrapperRoute.d.ts +1 -1
- package/dist/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +5 -4
- package/dist/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +2 -1
- package/dist/src/components/AppTopBar.vue.d.ts +4 -3
- package/dist/src/components/Avatars/AvatarUpload.vue.d.ts +3 -4
- package/dist/src/components/Avatars/UserAvatar.vue.d.ts +3 -1
- package/dist/src/components/BatchActions.vue.d.ts +16 -15
- package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +3 -2
- package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +9 -8
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +19 -18
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +30 -385
- package/dist/src/components/CreateLinkModal.vue.d.ts +7 -5
- package/dist/src/components/CreateShortcutModal.vue.d.ts +36 -139
- package/dist/src/components/CustomComponentTarget.vue.d.ts +2 -1
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +38 -37
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +12 -11
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +2 -1
- package/dist/src/components/FilesList/ResourceLink.vue.d.ts +7 -6
- package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +5 -3
- package/dist/src/components/FilesList/ResourceName.vue.d.ts +4 -1
- package/dist/src/components/FilesList/ResourceSize.vue.d.ts +6 -5
- package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +2 -1
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +38 -149
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +25 -149
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +21 -114
- package/dist/src/components/Filters/DateFilter.vue.d.ts +26 -497
- package/dist/src/components/Filters/ItemFilterInline.vue.d.ts +6 -5
- package/dist/src/components/Groupware/Accounts/AccountsSwitch.vue.d.ts +3 -0
- package/dist/src/components/Groupware/Accounts/index.d.ts +1 -0
- package/dist/src/components/Groupware/index.d.ts +1 -0
- package/dist/src/components/ItemFilter.vue.d.ts +10 -203
- package/dist/src/components/ItemFilterToggle.vue.d.ts +6 -5
- package/dist/src/components/LinkRoleDropdown.vue.d.ts +7 -6
- package/dist/src/components/LoadingIndicator.vue.d.ts +5 -4
- package/dist/src/components/Modals/DatePickerModal.vue.d.ts +8 -7
- package/dist/src/components/Modals/EmojiPickerModal.vue.d.ts +6 -5
- package/dist/src/components/Modals/FilePickerModal.vue.d.ts +8 -7
- package/dist/src/components/Modals/ResourceConflictModal.vue.d.ts +9 -8
- package/dist/src/components/Modals/SaveAsModal.vue.d.ts +8 -7
- package/dist/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +5 -4
- package/dist/src/components/Modals/UnsavedChangesModal.vue.d.ts +5 -4
- package/dist/src/components/NoContentMessage.vue.d.ts +9 -12
- package/dist/src/components/Pagination.vue.d.ts +5 -4
- package/dist/src/components/QuotaSelect.vue.d.ts +7 -6
- package/dist/src/components/Search/ResourcePreview.vue.d.ts +2 -41
- package/dist/src/components/SearchBarFilter.vue.d.ts +7 -6
- package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +6 -5
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +2 -76
- package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +2 -1
- package/dist/src/components/SideBar/SideBar.vue.d.ts +10 -19
- package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +10 -19
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +2 -1
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +2 -1
- package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +6 -1
- package/dist/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +2 -1
- package/dist/src/components/SideBar/WebDavDetails.vue.d.ts +7 -6
- package/dist/src/components/SpaceQuota.vue.d.ts +2 -1
- package/dist/src/components/Spaces/QuotaModal.vue.d.ts +5 -4
- package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +4 -4
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +18 -0
- package/dist/src/components/TextEditor/index.d.ts +17 -0
- package/dist/src/components/VersionCheck.vue.d.ts +2 -1
- package/dist/src/components/ViewOptions.vue.d.ts +2 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionFallbackToDownload.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActions.d.ts +2 -2
- package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsDelete.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsDownloadFile.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsMove.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsNavigate.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsRename.d.ts +2 -2
- package/dist/src/composables/actions/files/useFileActionsRestore.d.ts +2 -2
- package/dist/src/composables/actions/files/useFileActionsSaveAs.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +1 -1
- package/dist/src/composables/actions/files/useFileActionsUndoDelete.d.ts +2 -2
- package/dist/src/composables/actions/helpers/useIsAppActive.d.ts +1 -1
- package/dist/src/composables/actions/helpers/useIsFilesAppActive.d.ts +1 -1
- package/dist/src/composables/actions/helpers/useIsSearchActive.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsCreate.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsDeleteImage.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +1 -1
- package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +1 -1
- package/dist/src/composables/actions/types.d.ts +92 -2
- package/dist/src/composables/actions/useActionsShowDetails.d.ts +1 -1
- package/dist/src/composables/appDefaults/useAppConfig.d.ts +1 -1
- package/dist/src/composables/appDefaults/useAppDocumentTitle.d.ts +2 -1
- package/dist/src/composables/appDefaults/useAppFileHandling.d.ts +4 -2
- package/dist/src/composables/appDefaults/useAppMeta.d.ts +1 -1
- package/dist/src/composables/authContext/useAuthService.d.ts +3 -1
- package/dist/src/composables/authContext/useRequest.d.ts +2 -2
- package/dist/src/composables/driveResolver/useSpacesLoading.d.ts +1 -1
- package/dist/src/composables/embedMode/useEmbedMode.d.ts +8 -8
- package/dist/src/composables/eventBus/useEventBus.d.ts +1 -1
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +1 -1
- package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
- package/dist/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +1 -1
- package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
- package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +1 -0
- package/dist/src/composables/links/useLinkTypes.d.ts +1 -1
- package/dist/src/composables/localStorage/useLocalStorage.d.ts +1 -1
- package/dist/src/composables/navItems/useNavItems.d.ts +1 -1
- package/dist/src/composables/piniaStores/apps.d.ts +31 -31
- package/dist/src/composables/piniaStores/auth.d.ts +25 -25
- package/dist/src/composables/piniaStores/avatars.d.ts +9 -9
- package/dist/src/composables/piniaStores/capabilities.d.ts +160 -160
- package/dist/src/composables/piniaStores/clipboard.d.ts +49 -49
- package/dist/src/composables/piniaStores/config/config.d.ts +135 -141
- package/dist/src/composables/piniaStores/config/types.d.ts +6 -20
- package/dist/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +4 -4
- package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +1 -1
- package/dist/src/composables/piniaStores/groupware/accounts.d.ts +511 -0
- package/dist/src/composables/piniaStores/{groupwareConfig/groupwareConfig.d.ts → groupware/config.d.ts} +107 -80
- package/dist/src/composables/piniaStores/groupware/index.d.ts +3 -0
- package/dist/src/composables/piniaStores/{groupwareConfig → groupware}/types.d.ts +30 -18
- package/dist/src/composables/piniaStores/index.d.ts +1 -1
- package/dist/src/composables/piniaStores/messages.d.ts +34 -616
- package/dist/src/composables/piniaStores/modals.d.ts +197 -209
- package/dist/src/composables/piniaStores/resources.d.ts +11 -11
- package/dist/src/composables/piniaStores/shares/shares.d.ts +1 -1
- package/dist/src/composables/piniaStores/shares/types.d.ts +2 -1
- package/dist/src/composables/piniaStores/sideBar.d.ts +7 -7
- package/dist/src/composables/piniaStores/spaces.d.ts +189 -188
- package/dist/src/composables/piniaStores/theme.d.ts +10 -10
- package/dist/src/composables/piniaStores/updates.d.ts +10 -10
- package/dist/src/composables/piniaStores/user.d.ts +5 -5
- package/dist/src/composables/piniaStores/webWorkers.d.ts +1 -1
- package/dist/src/composables/requestHeaders/useRequestHeaders.d.ts +1 -1
- package/dist/src/composables/resources/useGetResourceContext.d.ts +26 -26
- package/dist/src/composables/resources/useLoadPreview.d.ts +1 -1
- package/dist/src/composables/resources/useResourceContents.d.ts +1 -1
- package/dist/src/composables/resources/useResourceIndicators.d.ts +12 -1
- package/dist/src/composables/resources/useResourceViewDrag.d.ts +13 -13
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +18 -18
- package/dist/src/composables/resources/useResourceViewSelection.d.ts +2 -2
- package/dist/src/composables/selection/useSelectedResources.d.ts +2 -1
- package/dist/src/composables/spaces/useCreateSpace.d.ts +1 -1
- package/dist/src/composables/spaces/useSpaceHelpers.d.ts +1 -1
- package/dist/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +1 -1
- package/dist/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +2 -2
- package/dist/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +1 -1
- package/dist/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +3 -1
- package/dist/src/extensionPoints.d.ts +1 -1
- package/dist/src/helpers/resource/conflictHandling/conflictDialog.d.ts +1 -1
- package/dist/src/helpers/resource/conflictHandling/transfer.d.ts +4 -4
- package/dist/src/helpers/resource/conflictHandling/types.d.ts +1 -1
- package/dist/src/helpers/share/driveItem.d.ts +1 -1
- package/dist/src/router/common.d.ts +1 -1
- package/dist/src/router/index.d.ts +2 -1
- package/dist/src/router/public.d.ts +1 -1
- package/dist/src/router/shares.d.ts +1 -1
- package/dist/src/router/spaces.d.ts +1 -1
- package/dist/src/router/trash.d.ts +1 -1
- package/dist/src/services/passwordPolicy/rules.d.ts +63 -0
- package/dist/src/services/preview/types.d.ts +1 -1
- package/dist/src/services/uppy/DropTarget/plugin.d.ts +2 -1
- package/dist/src/services/uppy/uppyService.d.ts +3 -3
- package/dist/web-pkg.js +4181 -352
- package/package.json +37 -38
- package/dist/TextEditor-D-HQDUkm.js +0 -865
- package/dist/assets/worker-BBQqm_-D.js +0 -1
- package/dist/assets/worker-CVwKToFD.js +0 -21
- package/dist/assets/worker-DJbU-qfq.js +0 -21
- package/dist/assets/worker-DyU7W9CZ.js +0 -21
- package/dist/index-OU30YA6H.js +0 -25032
- package/dist/src/components/Navigation/MobileNav.vue.d.ts +0 -2
- package/dist/src/components/Navigation/index.d.ts +0 -1
- package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +0 -2
- package/dist/web-pkg.umd.cjs +0 -16
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useFileActionsEmptyTrashBin: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
emptyTrashBin: ({ space }: {
|
|
6
6
|
space: SpaceResource;
|
|
7
7
|
}) => Promise<void>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IncomingShareResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { FileAction } from '../../actions';
|
|
3
3
|
export declare const useFileActionsEnableSync: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<FileAction<IncomingShareResource>[]>;
|
|
5
5
|
};
|
|
@@ -4,7 +4,7 @@ import { LocationQuery } from 'vue-router';
|
|
|
4
4
|
export declare const useFileActionsOpenWithApp: ({ appId }: {
|
|
5
5
|
appId: string;
|
|
6
6
|
}) => {
|
|
7
|
-
actions: import(
|
|
7
|
+
actions: import("vue").ComputedRef<FileAction[]>;
|
|
8
8
|
onFilePicked: ({ resource, locationQuery }: {
|
|
9
9
|
resource: Resource;
|
|
10
10
|
locationQuery: LocationQuery;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { FileAction } from '../types';
|
|
3
3
|
export declare const useFileActionsRename: () => {
|
|
4
|
-
actions: import(
|
|
5
|
-
renameResource: (space: SpaceResource, resource: Resource, newName: string) => Promise<void | import(
|
|
4
|
+
actions: import("vue").ComputedRef<FileAction[]>;
|
|
5
|
+
renameResource: (space: SpaceResource, resource: Resource, newName: string) => Promise<void | import("vue-router").NavigationFailure>;
|
|
6
6
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
-
import { FileAction, FileActionOptions } from '../types';
|
|
2
|
+
import type { FileAction, FileActionOptions } from '../types';
|
|
3
3
|
export declare const useFileActionsRestore: ({ showSuccessMessage, onRestoreComplete }?: {
|
|
4
4
|
showSuccessMessage?: boolean;
|
|
5
5
|
onRestoreComplete?: (result: FileActionOptions) => void;
|
|
6
6
|
}) => {
|
|
7
|
-
actions: import(
|
|
7
|
+
actions: import("vue").ComputedRef<FileAction[]>;
|
|
8
8
|
restoreResources: (space: SpaceResource, resources: Resource[], missingFolderPaths: string[]) => void;
|
|
9
9
|
collectConflicts: (space: SpaceResource, sortedResources: Resource[]) => Promise<{
|
|
10
10
|
existingResourcesByPath: Record<string, Resource[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ShareResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { FileAction } from '../types';
|
|
3
3
|
export declare const useFileActionsShowShares: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<FileAction<ShareResource>[]>;
|
|
5
5
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileAction } from '../../actions';
|
|
2
2
|
import { IncomingShareResource } from '@opencloud-eu/web-client';
|
|
3
3
|
export declare const useFileActionsToggleHideShare: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<FileAction<IncomingShareResource>[]>;
|
|
5
5
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Action, FileActionOptions } from '../types';
|
|
1
|
+
import type { Action, FileActionOptions } from '../types';
|
|
2
2
|
type UndoActionOptions = FileActionOptions & {
|
|
3
3
|
callback?: () => void;
|
|
4
4
|
};
|
|
5
5
|
export declare const useFileActionsUndoDelete: () => {
|
|
6
|
-
actions: import(
|
|
6
|
+
actions: import("vue").ComputedRef<Action<UndoActionOptions>[]>;
|
|
7
7
|
};
|
|
8
8
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsAppActive: () => import(
|
|
1
|
+
export declare const useIsAppActive: () => import("vue").ComputedRef<string | string[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsFilesAppActive: () => import(
|
|
1
|
+
export declare const useIsFilesAppActive: () => import("vue").ComputedRef<boolean>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useIsSearchActive: () => import(
|
|
1
|
+
export declare const useIsSearchActive: () => import("vue").ComputedRef<boolean>;
|
|
@@ -3,5 +3,5 @@ import { SpaceResource } from '@opencloud-eu/web-client';
|
|
|
3
3
|
export declare const useSpaceActionsCreate: ({ onSpaceCreated }?: {
|
|
4
4
|
onSpaceCreated?: (space: SpaceResource) => void;
|
|
5
5
|
}) => {
|
|
6
|
-
actions: import(
|
|
6
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsDelete: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
deleteSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsDeleteImage: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
deleteSpaceImage: ({ space }: {
|
|
6
6
|
space: SpaceResource;
|
|
7
7
|
}) => Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsDisable: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
disableSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsDuplicate: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
duplicateSpace: (existingSpace: SpaceResource) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceAction } from '../types';
|
|
2
2
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
3
|
export declare const useSpaceActionsEditDescription: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
editDescriptionSpace: (space: SpaceResource, description: string) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceAction } from '../types';
|
|
2
2
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
3
|
export declare const useSpaceActionsRename: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
renameSpace: (space: SpaceResource, name: string) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsRestore: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
restoreSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { SpaceAction } from '../types';
|
|
3
3
|
export declare const useSpaceActionsSetIcon: () => {
|
|
4
|
-
actions: import(
|
|
4
|
+
actions: import("vue").ComputedRef<SpaceAction[]>;
|
|
5
5
|
setIconSpace: (space: SpaceResource, emoji: string) => Promise<void>;
|
|
6
6
|
};
|
|
@@ -2,30 +2,119 @@ import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
|
2
2
|
import { Group, User } from '@opencloud-eu/web-client/graph/generated';
|
|
3
3
|
import { RouteLocationRaw } from 'vue-router';
|
|
4
4
|
import { IconFillType } from '../../helpers';
|
|
5
|
-
import { StringUnionOrAnyString } from '../../utils';
|
|
6
5
|
import { AppearanceType } from '@opencloud-eu/design-system/helpers';
|
|
7
6
|
export type ActionOptions = Record<string, unknown | unknown[]>;
|
|
7
|
+
type ActionCategory = 'actions' | 'context' | 'share' | 'sidebar';
|
|
8
|
+
/**
|
|
9
|
+
* Generic action interface.
|
|
10
|
+
* When implementing actions on your own, it's recommended to use the `ActionMenuItem`
|
|
11
|
+
* component from `web-pkg` to ensure the defaults are being set properly.
|
|
12
|
+
*/
|
|
8
13
|
export interface Action<T = ActionOptions> {
|
|
14
|
+
/**
|
|
15
|
+
* The unique name of the action. This is used for identifying it.
|
|
16
|
+
*/
|
|
9
17
|
name: string;
|
|
10
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Determines where an action will be displayed in the resource context menu.
|
|
20
|
+
*
|
|
21
|
+
* - actions: action will appear in the "actions" section of the resource context menu.
|
|
22
|
+
* - context: action will appear in the "Open with..."-menu of the resource context menu.
|
|
23
|
+
* It will also be the default when no other action is available for the given file type.
|
|
24
|
+
* - share: action will appear in the "shares" section of the resource context menu.
|
|
25
|
+
* - sidebar: action will appear in the "sidebar" section of the resource context menu.
|
|
26
|
+
*
|
|
27
|
+
* @default actions
|
|
28
|
+
*/
|
|
29
|
+
category?: ActionCategory;
|
|
30
|
+
/**
|
|
31
|
+
* The name of an icon from the OpenCloud icon set or a function
|
|
32
|
+
* that returns the icon name based on the given options.
|
|
33
|
+
*/
|
|
11
34
|
icon: string | ((options?: ActionOptions) => string);
|
|
35
|
+
/**
|
|
36
|
+
* Determines the fill type of the icon in the UI.
|
|
37
|
+
* @default line
|
|
38
|
+
*/
|
|
12
39
|
iconFillType?: IconFillType;
|
|
40
|
+
/**
|
|
41
|
+
* The appearance of the action element in the UI.
|
|
42
|
+
* @default raw
|
|
43
|
+
*/
|
|
13
44
|
appearance?: AppearanceType;
|
|
45
|
+
/**
|
|
46
|
+
* ID of the action, used as DOM selector.
|
|
47
|
+
*/
|
|
14
48
|
id?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated this is unused.
|
|
51
|
+
*/
|
|
15
52
|
img?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Additional CSS classes to apply to the action element in the UI.
|
|
55
|
+
*/
|
|
16
56
|
class?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Setting this to true will make the action more prominent in the UI
|
|
59
|
+
* as well as in the order for default actions.
|
|
60
|
+
*/
|
|
17
61
|
hasPriority?: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Setting this to true will hide the action label in the UI and only show the icon.
|
|
64
|
+
*/
|
|
18
65
|
hideLabel?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Specify a shortcut label that will be shown in the UI.
|
|
68
|
+
* This does not automatically register a keyboard shortcut for the action.
|
|
69
|
+
*/
|
|
19
70
|
shortcut?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Setting this will call `stopPropagation()` on the click event.
|
|
73
|
+
* @default false
|
|
74
|
+
* @deprecated This should not be used anymore, as it can lead to unexpected behavior.
|
|
75
|
+
*/
|
|
20
76
|
keepOpen?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* External actions come first in the "New" context menu. Therefore, this flag only has
|
|
79
|
+
* an effect for actions appearing in that menu.
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
21
82
|
isExternal?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* This determines the file icon for the action in the "New" menu and will show as
|
|
85
|
+
* file extension label.
|
|
86
|
+
*/
|
|
22
87
|
ext?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The label of the action in the UI.
|
|
90
|
+
* This can be a string or a function that returns a string based on the given options.
|
|
91
|
+
*/
|
|
23
92
|
label(options?: T): string;
|
|
93
|
+
/**
|
|
94
|
+
* Determines whether the action should be visible in the UI based on the given options.
|
|
95
|
+
*/
|
|
24
96
|
isVisible(options?: T): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Actions with a handler will be rendered as buttons in the UI.
|
|
99
|
+
*/
|
|
25
100
|
handler?(options?: T): Promise<void> | void;
|
|
101
|
+
/**
|
|
102
|
+
* Actions with a route will be rendered as anchor elements in the UI.
|
|
103
|
+
* This is intended for internal links.
|
|
104
|
+
*/
|
|
26
105
|
route?(options?: T): RouteLocationRaw | undefined;
|
|
106
|
+
/**
|
|
107
|
+
* Actions with a href will be rendered as anchor elements in the UI.
|
|
108
|
+
* This is intended for external links.
|
|
109
|
+
*/
|
|
27
110
|
href?(options?: T): string;
|
|
111
|
+
/**
|
|
112
|
+
* Determines whether the action should be disabled in the UI based on the given options.
|
|
113
|
+
*/
|
|
28
114
|
isDisabled?(options?: T): boolean;
|
|
115
|
+
/**
|
|
116
|
+
* If specified, this will show a tooltip with the given message when the action is disabled.
|
|
117
|
+
*/
|
|
29
118
|
disabledTooltip?(options?: T): string;
|
|
30
119
|
}
|
|
31
120
|
export type FileActionOptions<T extends Resource = Resource> = {
|
|
@@ -45,3 +134,4 @@ export type UserActionOptions = {
|
|
|
45
134
|
resources: User[];
|
|
46
135
|
};
|
|
47
136
|
export type UserAction = Action<UserActionOptions>;
|
|
137
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Ref
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
2
|
import { FileContext } from './types';
|
|
3
3
|
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
4
|
+
import { MaybeRef } from 'vue';
|
|
4
5
|
import { AppsStore } from '../piniaStores';
|
|
5
6
|
interface AppDocumentTitleOptions {
|
|
6
7
|
appsStore: AppsStore;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { Resource
|
|
1
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { MaybeRef } from '../../utils';
|
|
3
3
|
import { ClientService } from '../../services';
|
|
4
4
|
import { FileContext } from './types';
|
|
5
|
-
import {
|
|
5
|
+
import { FileResource, SpaceResource } from '@opencloud-eu/web-client';
|
|
6
|
+
import { ListFilesOptions } from '@opencloud-eu/web-client/webdav';
|
|
7
|
+
import { WebDAV } from '@opencloud-eu/web-client/webdav';
|
|
6
8
|
interface AppFileHandlingOptions {
|
|
7
9
|
clientService: ClientService;
|
|
8
10
|
}
|
|
@@ -4,6 +4,6 @@ interface AppMetaOptions {
|
|
|
4
4
|
applicationId: string;
|
|
5
5
|
}
|
|
6
6
|
export declare function useAppMeta({ appsStore, applicationId }: AppMetaOptions): {
|
|
7
|
-
applicationMeta: import(
|
|
7
|
+
applicationMeta: import("vue").ComputedRef<import("../..").ApplicationInformation>;
|
|
8
8
|
};
|
|
9
9
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { NavigationFailure } from 'vue-router';
|
|
2
2
|
export interface AuthServiceInterface {
|
|
3
|
-
handleAuthError(route: any,
|
|
3
|
+
handleAuthError(route: any,
|
|
4
|
+
/** @deprecated This option is no longer used. */
|
|
5
|
+
options?: {
|
|
4
6
|
forceLogout?: boolean;
|
|
5
7
|
}): any;
|
|
6
8
|
signinSilent(): Promise<unknown>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Router, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
2
|
-
import { Method, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
1
|
+
import type { Router, RouteLocationNormalizedLoaded } from 'vue-router';
|
|
2
|
+
import type { Method, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
import { ClientService } from '../../services';
|
|
4
4
|
import { AuthStore } from '../piniaStores';
|
|
5
5
|
interface RequestOptions {
|
|
@@ -10,14 +10,14 @@ export interface embedModeLocationPickMessageData {
|
|
|
10
10
|
locationQuery?: LocationQuery;
|
|
11
11
|
}
|
|
12
12
|
export declare const useEmbedMode: () => {
|
|
13
|
-
isEnabled: import(
|
|
14
|
-
isLocationPicker: import(
|
|
15
|
-
chooseFileName: import(
|
|
16
|
-
chooseFileNameSuggestion: import(
|
|
17
|
-
isFilePicker: import(
|
|
18
|
-
messagesTargetOrigin: import(
|
|
19
|
-
isDelegatingAuthentication: import(
|
|
20
|
-
fileTypes: import(
|
|
13
|
+
isEnabled: import("vue").ComputedRef<boolean>;
|
|
14
|
+
isLocationPicker: import("vue").ComputedRef<boolean>;
|
|
15
|
+
chooseFileName: import("vue").ComputedRef<boolean>;
|
|
16
|
+
chooseFileNameSuggestion: import("vue").ComputedRef<string>;
|
|
17
|
+
isFilePicker: import("vue").ComputedRef<boolean>;
|
|
18
|
+
messagesTargetOrigin: import("vue").ComputedRef<string>;
|
|
19
|
+
isDelegatingAuthentication: import("vue").ComputedRef<boolean>;
|
|
20
|
+
fileTypes: import("vue").ComputedRef<string[]>;
|
|
21
21
|
postMessage: <Payload>(name: string, data?: Payload) => void;
|
|
22
22
|
verifyDelegatedAuthenticationOrigin: (eventOrigin: string) => boolean;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const useEventBus: () => import(
|
|
1
|
+
export declare const useEventBus: () => import("../..").EventBus;
|
|
@@ -10,5 +10,5 @@ export declare const useResourceRouteResolver: (options?: ResourceRouteResolverO
|
|
|
10
10
|
path: string;
|
|
11
11
|
resource: Resource | SpaceResource;
|
|
12
12
|
fileId?: string;
|
|
13
|
-
}) => import(
|
|
13
|
+
}) => import("vue-router").RouteLocationNamedRaw;
|
|
14
14
|
};
|
|
@@ -2,8 +2,8 @@ import { Resource } from '@opencloud-eu/web-client';
|
|
|
2
2
|
import { ResourceRouteResolverOptions } from '../filesList';
|
|
3
3
|
export declare const useFolderLink: (options?: ResourceRouteResolverOptions) => {
|
|
4
4
|
getPathPrefix: (resource: Resource) => string;
|
|
5
|
-
getFolderLink: (resource: Resource) => import(
|
|
6
|
-
getParentFolderLink: (resource: Resource) => import(
|
|
5
|
+
getFolderLink: (resource: Resource) => import("vue-router").RouteLocationNamedRaw;
|
|
6
|
+
getParentFolderLink: (resource: Resource) => import("vue-router").RouteLocationNamedRaw;
|
|
7
7
|
getParentFolderName: (resource: Resource) => string;
|
|
8
8
|
getParentFolderLinkIconAdditionalAttributes: (resource: Resource) => {
|
|
9
9
|
name: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Resource } from '@opencloud-eu/web-client';
|
|
1
|
+
import type { Resource } from '@opencloud-eu/web-client';
|
|
2
2
|
export declare function useInterceptModifierClick(): {
|
|
3
3
|
interceptModifierClick: (event: MouseEvent | KeyboardEvent | undefined, resource: Resource) => boolean;
|
|
4
4
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SharingLinkType } from '@opencloud-eu/web-client/graph/generated';
|
|
2
2
|
import { ShareRole } from '@opencloud-eu/web-client';
|
|
3
3
|
export declare const useLinkTypes: () => {
|
|
4
|
-
defaultLinkType: import(
|
|
4
|
+
defaultLinkType: import("vue").ComputedRef<SharingLinkType>;
|
|
5
5
|
isPasswordEnforcedForLinkType: (type: SharingLinkType) => boolean;
|
|
6
6
|
getAvailableLinkTypes: ({ isFolder }: {
|
|
7
7
|
isFolder: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
export declare const useLocalStorage: <T>(key: string, defaultValue?: T) => [T] extends [Ref<any, any>] ? import(
|
|
2
|
+
export declare const useLocalStorage: <T>(key: string, defaultValue?: T) => [T] extends [Ref<any, any>] ? import("@vue/shared").IfAny<T, Ref<T, T>, T> : Ref<import("vue").UnwrapRef<T>, T | import("vue").UnwrapRef<T>>;
|
|
@@ -9,5 +9,5 @@ export declare const getExtensionNavItems: ({ extensionRegistry, appId }: {
|
|
|
9
9
|
appId: string;
|
|
10
10
|
}) => AppNavigationItem[];
|
|
11
11
|
export declare const useNavItems: () => {
|
|
12
|
-
navItems: import(
|
|
12
|
+
navItems: import("vue").ComputedRef<NavItem[]>;
|
|
13
13
|
};
|