@opencloud-eu/web-pkg 4.0.0 → 4.1.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-CqzAOOm0.js → TextEditor-QVYD64f0.js} +2 -1
- package/dist/assets/{worker-Cgdggo8k.js → worker-BJJcEMnx.js} +30 -30
- package/dist/assets/{worker-HJ1GIjJK.js → worker-C9GzAwNf.js} +30 -30
- package/dist/assets/{worker-bk9PAyWf.js → worker-DIwRVmuf.js} +28 -28
- package/dist/index-zEQVUjcV.js +34130 -0
- package/dist/src/apps/index.d.ts +1 -0
- package/dist/src/apps/types.d.ts +114 -0
- package/dist/src/cern/composables/index.d.ts +1 -0
- package/dist/src/cern/composables/useGroupingSettings.d.ts +34 -0
- package/dist/src/cern/index.d.ts +1 -0
- package/dist/src/components/AppBar/AppBar.vue.d.ts +582 -0
- package/dist/src/components/AppBar/CreateSpace.vue.d.ts +18 -0
- package/dist/src/components/AppBar/index.d.ts +2 -0
- package/dist/src/components/AppLoadingSpinner.vue.d.ts +2 -0
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +251 -0
- package/dist/src/components/AppTemplates/AppWrapperRoute.d.ts +10 -0
- package/dist/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +22 -0
- package/dist/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +2 -0
- package/dist/src/components/AppTemplates/index.d.ts +3 -0
- package/dist/src/components/AppTemplates/types.d.ts +11 -0
- package/dist/src/components/AppTopBar.vue.d.ts +17 -0
- package/dist/src/components/Avatars/AvatarUpload.vue.d.ts +5 -0
- package/dist/src/components/Avatars/UserAvatar.vue.d.ts +6 -0
- package/dist/src/components/Avatars/index.d.ts +2 -0
- package/dist/src/components/BatchActions.vue.d.ts +123 -0
- package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +11 -0
- package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +92 -0
- package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +147 -0
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +41 -0
- package/dist/src/components/ContextActions/index.d.ts +5 -0
- package/dist/src/components/ContextActions/types.d.ts +13 -0
- package/dist/src/components/CreateLinkModal.vue.d.ts +163 -0
- package/dist/src/components/CustomComponentTarget.vue.d.ts +16 -0
- package/dist/src/components/FilesList/ContextActions.vue.d.ts +173 -0
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +51 -0
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +47 -0
- package/dist/src/components/FilesList/ResourceLink.vue.d.ts +67 -0
- package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +21 -0
- package/dist/src/components/FilesList/ResourceName.vue.d.ts +140 -0
- package/dist/src/components/FilesList/ResourceSize.vue.d.ts +25 -0
- package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +9 -0
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +1538 -0
- package/dist/src/components/FilesList/ResourceTile.vue.d.ts +177 -0
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +204 -0
- package/dist/src/components/FilesList/index.d.ts +10 -0
- package/dist/src/components/Filters/ItemFilterInline.vue.d.ts +28 -0
- package/dist/src/components/Filters/index.d.ts +3 -0
- package/dist/src/components/Filters/types.d.ts +4 -0
- package/dist/src/components/ItemFilter.vue.d.ts +223 -0
- package/dist/src/components/ItemFilterToggle.vue.d.ts +26 -0
- package/dist/src/components/LinkRoleDropdown.vue.d.ts +30 -0
- package/dist/src/components/LoadingIndicator.vue.d.ts +5 -0
- package/dist/src/components/Modals/DatePickerModal.vue.d.ts +104 -0
- package/dist/src/components/Modals/EmojiPickerModal.vue.d.ts +19 -0
- package/dist/src/components/Modals/FilePickerModal.vue.d.ts +41 -0
- package/dist/src/components/Modals/ResourceConflictModal.vue.d.ts +76 -0
- package/dist/src/components/Modals/SaveAsModal.vue.d.ts +49 -0
- package/dist/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +14 -0
- package/dist/src/components/Modals/UnsavedChangesModal.vue.d.ts +27 -0
- package/dist/src/components/Modals/index.d.ts +7 -0
- package/dist/src/components/NoContentMessage.vue.d.ts +23 -0
- package/dist/src/components/Pagination.vue.d.ts +20 -0
- package/dist/src/components/PortalTarget.vue.d.ts +41 -0
- package/dist/src/components/QuotaSelect.vue.d.ts +74 -0
- package/dist/src/components/Search/ResourcePreview.vue.d.ts +48 -0
- package/dist/src/components/Search/index.d.ts +2 -0
- package/dist/src/components/Search/types.d.ts +29 -0
- package/dist/src/components/SearchBarFilter.vue.d.ts +27 -0
- package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +38 -0
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +115 -0
- package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Files/index.d.ts +1 -0
- package/dist/src/components/SideBar/SideBar.vue.d.ts +41 -0
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +6 -0
- package/dist/src/components/SideBar/Spaces/Details/index.d.ts +2 -0
- package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -0
- package/dist/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +2 -0
- package/dist/src/components/SideBar/Spaces/index.d.ts +3 -0
- package/dist/src/components/SideBar/WebDavDetails.vue.d.ts +21 -0
- package/dist/src/components/SideBar/index.d.ts +7 -0
- package/dist/src/components/SideBar/types.d.ts +22 -0
- package/dist/src/components/SpaceQuota.vue.d.ts +6 -0
- package/dist/src/components/Spaces/QuotaModal.vue.d.ts +18 -0
- package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +13 -0
- package/dist/src/components/Spaces/index.d.ts +2 -0
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +162 -0
- package/dist/src/components/TextEditor/index.d.ts +158 -0
- package/dist/src/components/TextEditor/l18n.d.ts +3 -0
- package/dist/src/components/ViewOptions.vue.d.ts +143 -0
- package/dist/src/components/index.d.ts +28 -0
- package/dist/src/composables/ability/index.d.ts +1 -0
- package/dist/src/composables/ability/useAbility.d.ts +2 -0
- package/dist/src/composables/actions/files/index.d.ts +29 -0
- package/dist/src/composables/actions/files/useFileActions.d.ts +32 -0
- package/dist/src/composables/actions/files/useFileActionsCopy.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsCreateLink.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +10 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +9 -0
- package/dist/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +8 -0
- package/dist/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDelete.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDisableSync.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsDownloadFile.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +8 -0
- package/dist/src/composables/actions/files/useFileActionsEnableSync.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsFavorite.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsMove.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsNavigate.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsPaste.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsRename.d.ts +6 -0
- package/dist/src/composables/actions/files/useFileActionsRestore.d.ts +15 -0
- package/dist/src/composables/actions/files/useFileActionsSaveAs.d.ts +7 -0
- package/dist/src/composables/actions/files/useFileActionsSetImage.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowActions.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowDetails.d.ts +4 -0
- package/dist/src/composables/actions/files/useFileActionsShowShares.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +5 -0
- package/dist/src/composables/actions/files/useFileActionsUndoDelete.d.ts +8 -0
- package/dist/src/composables/actions/helpers/index.d.ts +5 -0
- package/dist/src/composables/actions/helpers/useFileActionsDeleteResources.d.ts +5 -0
- package/dist/src/composables/actions/helpers/useIsAppActive.d.ts +1 -0
- package/dist/src/composables/actions/helpers/useIsFilesAppActive.d.ts +1 -0
- package/dist/src/composables/actions/helpers/useIsResourceNameValid.d.ts +11 -0
- package/dist/src/composables/actions/helpers/useIsSearchActive.d.ts +1 -0
- package/dist/src/composables/actions/index.d.ts +8 -0
- package/dist/src/composables/actions/spaces/index.d.ts +12 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDeleteImage.d.ts +8 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +4 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsRename.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +6 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +4 -0
- package/dist/src/composables/actions/types.d.ts +47 -0
- package/dist/src/composables/actions/useActionsShowDetails.d.ts +4 -0
- package/dist/src/composables/actions/useOpenEmptyEditor.d.ts +3 -0
- package/dist/src/composables/actions/useOpenWithDefaultApp.d.ts +7 -0
- package/dist/src/composables/actions/useWindowOpen.d.ts +3 -0
- package/dist/src/composables/appDefaults/index.d.ts +8 -0
- package/dist/src/composables/appDefaults/types.d.ts +15 -0
- package/dist/src/composables/appDefaults/useAppConfig.d.ts +11 -0
- package/dist/src/composables/appDefaults/useAppDefaults.d.ts +20 -0
- package/dist/src/composables/appDefaults/useAppDocumentTitle.d.ts +13 -0
- package/dist/src/composables/appDefaults/useAppFileHandling.d.ts +24 -0
- package/dist/src/composables/appDefaults/useAppFolderHandling.d.ts +16 -0
- package/dist/src/composables/appDefaults/useAppMeta.d.ts +9 -0
- package/dist/src/composables/appDefaults/useAppNavigation.d.ts +27 -0
- package/dist/src/composables/appDefaults/useDocumentTitle.d.ts +8 -0
- package/dist/src/composables/appProviderService/index.d.ts +1 -0
- package/dist/src/composables/appProviderService/useAppProviderService.d.ts +2 -0
- package/dist/src/composables/archiverService/index.d.ts +1 -0
- package/dist/src/composables/archiverService/useArchiverService.d.ts +2 -0
- package/dist/src/composables/authContext/index.d.ts +2 -0
- package/dist/src/composables/authContext/useAuthService.d.ts +10 -0
- package/dist/src/composables/authContext/useRequest.d.ts +15 -0
- package/dist/src/composables/avatars/index.d.ts +1 -0
- package/dist/src/composables/avatars/useLoadAvatars.d.ts +3 -0
- package/dist/src/composables/breadcrumbs/index.d.ts +1 -0
- package/dist/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +14 -0
- package/dist/src/composables/clientService/index.d.ts +1 -0
- package/dist/src/composables/clientService/useClientService.d.ts +2 -0
- package/dist/src/composables/clipboard/index.d.ts +1 -0
- package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
- package/dist/src/composables/download/index.d.ts +1 -0
- package/dist/src/composables/download/useDownloadFile.d.ts +8 -0
- package/dist/src/composables/driveResolver/index.d.ts +2 -0
- package/dist/src/composables/driveResolver/useDriveResolver.d.ts +13 -0
- package/dist/src/composables/driveResolver/useSpacesLoading.d.ts +3 -0
- package/dist/src/composables/embedMode/index.d.ts +1 -0
- package/dist/src/composables/embedMode/useEmbedMode.d.ts +23 -0
- package/dist/src/composables/eventBus/index.d.ts +1 -0
- package/dist/src/composables/eventBus/useEventBus.d.ts +1 -0
- package/dist/src/composables/fileListHeaderPosition/index.d.ts +1 -0
- package/dist/src/composables/fileListHeaderPosition/useFileListHeaderPosition.d.ts +5 -0
- package/dist/src/composables/filesList/index.d.ts +1 -0
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +13 -0
- package/dist/src/composables/folderLink/index.d.ts +1 -0
- package/dist/src/composables/folderLink/useFolderLink.d.ts +15 -0
- package/dist/src/composables/index.d.ts +41 -0
- package/dist/src/composables/isTopBarSticky/index.d.ts +1 -0
- package/dist/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +8 -0
- package/dist/src/composables/keyboardActions/index.d.ts +3 -0
- package/dist/src/composables/keyboardActions/useCropperKeyboardActions.d.ts +4 -0
- package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +4 -0
- package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +47 -0
- package/dist/src/composables/links/index.d.ts +1 -0
- package/dist/src/composables/links/useLinkTypes.d.ts +31 -0
- package/dist/src/composables/loadingService/index.d.ts +1 -0
- package/dist/src/composables/loadingService/useLoadingService.d.ts +2 -0
- package/dist/src/composables/localStorage/index.d.ts +1 -0
- package/dist/src/composables/localStorage/useLocalStorage.d.ts +2 -0
- package/dist/src/composables/pagination/constants.d.ts +5 -0
- package/dist/src/composables/pagination/index.d.ts +2 -0
- package/dist/src/composables/pagination/usePagination.d.ts +17 -0
- package/dist/src/composables/passwordPolicyService/index.d.ts +1 -0
- package/dist/src/composables/passwordPolicyService/usePasswordPolicyService.d.ts +2 -0
- package/dist/src/composables/piniaStores/apps.d.ts +157 -0
- package/dist/src/composables/piniaStores/auth.d.ts +60 -0
- package/dist/src/composables/piniaStores/avatars.d.ts +27 -0
- package/dist/src/composables/piniaStores/capabilities.d.ts +1722 -0
- package/dist/src/composables/piniaStores/clipboard.d.ts +598 -0
- package/dist/src/composables/piniaStores/config/config.d.ts +759 -0
- package/dist/src/composables/piniaStores/config/index.d.ts +2 -0
- package/dist/src/composables/piniaStores/config/types.d.ts +194 -0
- package/dist/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +22 -0
- package/dist/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +37 -0
- package/dist/src/composables/piniaStores/extensionRegistry/index.d.ts +3 -0
- package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +66 -0
- package/dist/src/composables/piniaStores/index.d.ts +16 -0
- package/dist/src/composables/piniaStores/messages.d.ts +866 -0
- package/dist/src/composables/piniaStores/modals.d.ts +1373 -0
- package/dist/src/composables/piniaStores/resources.d.ts +198 -0
- package/dist/src/composables/piniaStores/shares/index.d.ts +2 -0
- package/dist/src/composables/piniaStores/shares/shares.d.ts +57 -0
- package/dist/src/composables/piniaStores/shares/types.d.ts +41 -0
- package/dist/src/composables/piniaStores/spaces.d.ts +9045 -0
- package/dist/src/composables/piniaStores/theme.d.ts +514 -0
- package/dist/src/composables/piniaStores/updates.d.ts +24 -0
- package/dist/src/composables/piniaStores/user.d.ts +15 -0
- package/dist/src/composables/piniaStores/webWorkers.d.ts +29 -0
- package/dist/src/composables/portalTarget/eventTopics.d.ts +3 -0
- package/dist/src/composables/portalTarget/index.d.ts +2 -0
- package/dist/src/composables/portalTarget/usePortalTarget.d.ts +4 -0
- package/dist/src/composables/previewService/index.d.ts +1 -0
- package/dist/src/composables/previewService/usePreviewService.d.ts +2 -0
- package/dist/src/composables/requestHeaders/index.d.ts +1 -0
- package/dist/src/composables/requestHeaders/useRequestHeaders.d.ts +3 -0
- package/dist/src/composables/resources/index.d.ts +5 -0
- package/dist/src/composables/resources/useCanBeOpenedWithSecureView.d.ts +4 -0
- package/dist/src/composables/resources/useCanListVersions.d.ts +7 -0
- package/dist/src/composables/resources/useGetResourceContext.d.ts +1485 -0
- package/dist/src/composables/resources/useLoadPreview.d.ts +26 -0
- package/dist/src/composables/resources/useResourceContents.d.ts +5 -0
- package/dist/src/composables/router/index.d.ts +11 -0
- package/dist/src/composables/router/types.d.ts +16 -0
- package/dist/src/composables/router/useActiveApp.d.ts +4 -0
- package/dist/src/composables/router/useActiveLocation.d.ts +10 -0
- package/dist/src/composables/router/useFileRouteReplace.d.ts +15 -0
- package/dist/src/composables/router/useRoute.d.ts +3 -0
- package/dist/src/composables/router/useRouteMeta.d.ts +2 -0
- package/dist/src/composables/router/useRouteName.d.ts +2 -0
- package/dist/src/composables/router/useRouteParam.d.ts +3 -0
- package/dist/src/composables/router/useRouteQuery.d.ts +3 -0
- package/dist/src/composables/router/useRouteQueryPersisted.d.ts +8 -0
- package/dist/src/composables/router/useRouter.d.ts +2 -0
- package/dist/src/composables/scrollTo/index.d.ts +1 -0
- package/dist/src/composables/scrollTo/useScrollTo.d.ts +9 -0
- package/dist/src/composables/search/constants.d.ts +4 -0
- package/dist/src/composables/search/index.d.ts +2 -0
- package/dist/src/composables/search/useSearch.d.ts +14 -0
- package/dist/src/composables/selection/index.d.ts +2 -0
- package/dist/src/composables/selection/useSelectedResources.d.ts +9 -0
- package/dist/src/composables/selection/useToggleTile.d.ts +4 -0
- package/dist/src/composables/service/index.d.ts +1 -0
- package/dist/src/composables/service/useService.d.ts +1 -0
- package/dist/src/composables/shares/index.d.ts +2 -0
- package/dist/src/composables/shares/useCanListShares.d.ts +7 -0
- package/dist/src/composables/shares/useCanShare.d.ts +7 -0
- package/dist/src/composables/sideBar/eventTopics.d.ts +7 -0
- package/dist/src/composables/sideBar/index.d.ts +2 -0
- package/dist/src/composables/sideBar/useSideBar.d.ts +12 -0
- package/dist/src/composables/sort/constants.d.ts +4 -0
- package/dist/src/composables/sort/index.d.ts +2 -0
- package/dist/src/composables/sort/useSort.d.ts +36 -0
- package/dist/src/composables/spaces/index.d.ts +3 -0
- package/dist/src/composables/spaces/useCreateSpace.d.ts +5 -0
- package/dist/src/composables/spaces/useGetMatchingSpace.d.ts +15 -0
- package/dist/src/composables/spaces/useSpaceHelpers.d.ts +4 -0
- package/dist/src/composables/upload/index.d.ts +1 -0
- package/dist/src/composables/upload/useUpload.d.ts +6 -0
- package/dist/src/composables/viewMode/constants.d.ts +12 -0
- package/dist/src/composables/viewMode/index.d.ts +3 -0
- package/dist/src/composables/viewMode/useTileSize.d.ts +4 -0
- package/dist/src/composables/viewMode/useViewMode.d.ts +4 -0
- package/dist/src/composables/webWorkers/deleteWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +28 -0
- package/dist/src/composables/webWorkers/deleteWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/index.d.ts +4 -0
- package/dist/src/composables/webWorkers/pasteWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +25 -0
- package/dist/src/composables/webWorkers/pasteWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/restoreWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +28 -0
- package/dist/src/composables/webWorkers/restoreWorker/worker.d.ts +1 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/index.d.ts +1 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +12 -0
- package/dist/src/composables/webWorkers/tokenTimerWorker/worker.d.ts +1 -0
- package/dist/src/constants.d.ts +17 -0
- package/dist/src/errors/index.d.ts +1 -0
- package/dist/src/errors/types.d.ts +13 -0
- package/dist/src/helpers/binary.d.ts +2 -0
- package/dist/src/helpers/breadcrumbs.d.ts +4 -0
- package/dist/src/helpers/cache/cache.d.ts +20 -0
- package/dist/src/helpers/cache/index.d.ts +1 -0
- package/dist/src/helpers/clipboardActions.d.ts +4 -0
- package/dist/src/helpers/contextMenuDropdown.d.ts +7 -0
- package/dist/src/helpers/datetime.d.ts +11 -0
- package/dist/src/helpers/download.d.ts +1 -0
- package/dist/src/helpers/filesize.d.ts +8 -0
- package/dist/src/helpers/folderLink/index.d.ts +1 -0
- package/dist/src/helpers/folderLink/types.d.ts +6 -0
- package/dist/src/helpers/fuse.d.ts +5 -0
- package/dist/src/helpers/index.d.ts +21 -0
- package/dist/src/helpers/locale.d.ts +1 -0
- package/dist/src/helpers/path.d.ts +13 -0
- package/dist/src/helpers/permissions.d.ts +8 -0
- package/dist/src/helpers/platform.d.ts +1 -0
- package/dist/src/helpers/resource/conflictHandling/conflictDialog.d.ts +15 -0
- package/dist/src/helpers/resource/conflictHandling/conflictUtils.d.ts +3 -0
- package/dist/src/helpers/resource/conflictHandling/index.d.ts +4 -0
- package/dist/src/helpers/resource/conflictHandling/transfer.d.ts +27 -0
- package/dist/src/helpers/resource/conflictHandling/types.d.ts +24 -0
- package/dist/src/helpers/resource/filter.d.ts +2 -0
- package/dist/src/helpers/resource/icon.d.ts +10 -0
- package/dist/src/helpers/resource/index.d.ts +5 -0
- package/dist/src/helpers/resource/renameResource.d.ts +2 -0
- package/dist/src/helpers/resource/sameResource.d.ts +2 -0
- package/dist/src/helpers/router/buildUrl.d.ts +2 -0
- package/dist/src/helpers/router/index.d.ts +2 -0
- package/dist/src/helpers/router/routeOptions.d.ts +24 -0
- package/dist/src/helpers/share/driveItem.d.ts +12 -0
- package/dist/src/helpers/share/index.d.ts +2 -0
- package/dist/src/helpers/share/sharedAncestorRoute.d.ts +7 -0
- package/dist/src/helpers/spaces/index.d.ts +1 -0
- package/dist/src/helpers/spaces/permissions.d.ts +13 -0
- package/dist/src/helpers/statusIndicators.d.ts +23 -0
- package/dist/src/helpers/store.d.ts +8 -0
- package/dist/src/helpers/textByteSize.d.ts +1 -0
- package/dist/src/helpers/ui/index.d.ts +3 -0
- package/dist/src/helpers/ui/resourceCheckbox.d.ts +1 -0
- package/dist/src/helpers/ui/resourceTable.d.ts +3 -0
- package/dist/src/helpers/ui/resourceTiles.d.ts +6 -0
- package/dist/src/http/client.d.ts +23 -0
- package/dist/src/http/index.d.ts +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/observer/index.d.ts +1 -0
- package/dist/src/observer/visibility.d.ts +26 -0
- package/dist/src/router/common.d.ts +9 -0
- package/dist/src/router/deprecated.d.ts +12 -0
- package/dist/src/router/index.d.ts +12 -0
- package/dist/src/router/public.d.ts +9 -0
- package/dist/src/router/router.d.ts +27 -0
- package/dist/src/router/shares.d.ts +10 -0
- package/dist/src/router/spaces.d.ts +9 -0
- package/dist/src/router/trash.d.ts +9 -0
- package/dist/src/router/utils.d.ts +32 -0
- package/dist/src/services/appProvider/index.d.ts +2 -0
- package/dist/src/services/appProvider/schemas.d.ts +40 -0
- package/dist/src/services/appProvider/service.d.ts +27 -0
- package/dist/src/services/archiver.d.ts +25 -0
- package/dist/src/services/cache.d.ts +14 -0
- package/dist/src/services/client/auth.d.ts +12 -0
- package/dist/src/services/client/client.d.ts +48 -0
- package/dist/src/services/client/index.d.ts +2 -0
- package/dist/src/services/eventBus.d.ts +8 -0
- package/dist/src/services/folder/folderService.d.ts +27 -0
- package/dist/src/services/folder/index.d.ts +2 -0
- package/dist/src/services/folder/loaders/index.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderFavorites.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedViaLink.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedWithMe.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSharedWithOthers.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderSpace.d.ts +7 -0
- package/dist/src/services/folder/loaders/loaderTrashbin.d.ts +7 -0
- package/dist/src/services/folder/loaders/types.d.ts +3 -0
- package/dist/src/services/index.d.ts +10 -0
- package/dist/src/services/loadingService.d.ts +33 -0
- package/dist/src/services/passwordPolicy/index.d.ts +1 -0
- package/dist/src/services/passwordPolicy/passwordPolicy.d.ts +20 -0
- package/dist/src/services/passwordPolicy/rules.d.ts +69 -0
- package/dist/src/services/preview/index.d.ts +2 -0
- package/dist/src/services/preview/previewService.d.ts +21 -0
- package/dist/src/services/preview/types.d.ts +23 -0
- package/dist/src/services/uppy/DropTarget/getDroppedFiles.d.ts +1 -0
- package/dist/src/services/uppy/DropTarget/plugin.d.ts +21 -0
- package/dist/src/services/uppy/DropTarget/types.d.ts +9 -0
- package/dist/src/services/uppy/index.d.ts +2 -0
- package/dist/src/services/uppy/uppyService.d.ts +91 -0
- package/dist/src/services/uppy/utils.d.ts +11 -0
- package/dist/src/types.d.ts +24 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/src/ui/types.d.ts +14 -0
- package/dist/src/utils/dirname.d.ts +1 -0
- package/dist/src/utils/encodePath.d.ts +1 -0
- package/dist/src/utils/index.d.ts +5 -0
- package/dist/src/utils/objectKeys.d.ts +1 -0
- package/dist/src/utils/semver.d.ts +14 -0
- package/dist/src/utils/types.d.ts +5 -0
- package/dist/web-pkg.js +226 -220
- package/dist/web-pkg.umd.cjs +49 -49
- package/package.json +5 -7
- package/dist/index-Ctidv9Qe.js +0 -34023
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export * from './cache';
|
|
2
|
+
export * from './folderLink';
|
|
3
|
+
export * from './resource';
|
|
4
|
+
export * from './router';
|
|
5
|
+
export * from './share';
|
|
6
|
+
export * from './spaces';
|
|
7
|
+
export * from './ui';
|
|
8
|
+
export * from './breadcrumbs';
|
|
9
|
+
export * from './clipboardActions';
|
|
10
|
+
export * from './contextMenuDropdown';
|
|
11
|
+
export * from './datetime';
|
|
12
|
+
export * from './download';
|
|
13
|
+
export * from './filesize';
|
|
14
|
+
export * from './fuse';
|
|
15
|
+
export * from './locale';
|
|
16
|
+
export * from './path';
|
|
17
|
+
export * from './statusIndicators';
|
|
18
|
+
export * from './store';
|
|
19
|
+
export * from './binary';
|
|
20
|
+
export * from './platform';
|
|
21
|
+
export * from './textByteSize';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getLocaleFromLanguage: (currentLanguage: string) => string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Return all absolute parent paths.
|
|
3
|
+
*
|
|
4
|
+
* For example if passing in "a/b/c" it will return
|
|
5
|
+
* ["/a/b", "/a", ""]
|
|
6
|
+
|
|
7
|
+
* If an empty string or "/" is passed in, an empty array is returned.
|
|
8
|
+
*
|
|
9
|
+
* @param {String} path path to process
|
|
10
|
+
* @param {Boolean} includeCurrent whether to include the current path (with leading slash)
|
|
11
|
+
* @return {Array.<String>} parent paths
|
|
12
|
+
*/
|
|
13
|
+
export declare function getParentPaths(path?: string, includeCurrent?: boolean): string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
+
/**
|
|
3
|
+
* Asserts whether given resource can be moved
|
|
4
|
+
* @param {String} resource Resource which is to be moved
|
|
5
|
+
* @param {Object} parentPath Path of the parent folder of the resource
|
|
6
|
+
* @return {Boolean} can be moved
|
|
7
|
+
*/
|
|
8
|
+
export declare function canBeMoved(resource: Resource, parentPath: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isMacOs: () => RegExpMatchArray;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { ResolveConflict, ResolveStrategy } from './types';
|
|
3
|
+
import { Language } from 'vue3-gettext';
|
|
4
|
+
export interface FileConflict {
|
|
5
|
+
resource: Resource;
|
|
6
|
+
strategy?: ResolveStrategy;
|
|
7
|
+
}
|
|
8
|
+
export declare class ConflictDialog {
|
|
9
|
+
protected $gettext: Language['$gettext'];
|
|
10
|
+
protected $ngettext: Language['$ngettext'];
|
|
11
|
+
constructor($gettext: Language['$gettext'], $ngettext: Language['$ngettext']);
|
|
12
|
+
resolveAllConflicts(resourcesToMove: Resource[], targetFolder: Resource, targetFolderResources: Resource[]): Promise<FileConflict[]>;
|
|
13
|
+
resolveFileExists(resource: Resource, conflictCount: number, suggestMerge?: boolean, separateSkipHandling?: boolean): Promise<ResolveConflict>;
|
|
14
|
+
resolveDoCopyInsteadOfMoveForSpaces(): Promise<boolean>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
export declare const resolveFileNameDuplicate: (name: string, extension: string, existingResources: Resource[], iteration?: number) => string;
|
|
3
|
+
export declare const isResourceBeeingMovedToSameLocation: (sourceSpace: SpaceResource, resource: Resource, targetSpace: SpaceResource, targetFolder: Resource) => boolean;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { TransferType, TransferData } from './types';
|
|
3
|
+
import { ConflictDialog } from './conflictDialog';
|
|
4
|
+
import { ClientService } from '../../../services';
|
|
5
|
+
import { Ref } from 'vue';
|
|
6
|
+
import { Language } from 'vue3-gettext';
|
|
7
|
+
export declare class ResourceTransfer extends ConflictDialog {
|
|
8
|
+
private sourceSpace;
|
|
9
|
+
private resourcesToMove;
|
|
10
|
+
private targetSpace;
|
|
11
|
+
private targetFolder;
|
|
12
|
+
private currentFolder;
|
|
13
|
+
private clientService;
|
|
14
|
+
constructor(sourceSpace: SpaceResource, resourcesToMove: Resource[], targetSpace: SpaceResource, targetFolder: Resource, currentFolder: Ref<Resource>, clientService: ClientService, $gettext: Language['$gettext'], $ngettext: Language['$ngettext']);
|
|
15
|
+
hasRecursion(): boolean;
|
|
16
|
+
showRecursionErrorMessage(): void;
|
|
17
|
+
showResultMessage(errors: {
|
|
18
|
+
resourceName: string;
|
|
19
|
+
error: Error;
|
|
20
|
+
}[], movedResources: Array<Resource>, transferType: TransferType): void;
|
|
21
|
+
/**
|
|
22
|
+
* Gathers transfer data after resolving all potential conflicts.
|
|
23
|
+
* This data can then be used to feed the web worker for pasting resources.
|
|
24
|
+
*/
|
|
25
|
+
getTransferData(transferType: TransferType): Promise<TransferData[]>;
|
|
26
|
+
isOverwritingParentFolder(resource: Resource, targetFolder: Resource, targetFolderResources: Resource[]): boolean;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
export declare enum ResolveStrategy {
|
|
3
|
+
SKIP = 0,
|
|
4
|
+
REPLACE = 1,
|
|
5
|
+
KEEP_BOTH = 2,
|
|
6
|
+
MERGE = 3
|
|
7
|
+
}
|
|
8
|
+
export interface ResolveConflict {
|
|
9
|
+
strategy: ResolveStrategy;
|
|
10
|
+
doForAllConflicts: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare enum TransferType {
|
|
13
|
+
COPY = 0,
|
|
14
|
+
MOVE = 1
|
|
15
|
+
}
|
|
16
|
+
export type TransferData = {
|
|
17
|
+
resource: Resource;
|
|
18
|
+
sourceSpace: SpaceResource;
|
|
19
|
+
targetSpace: SpaceResource;
|
|
20
|
+
targetFolder: Resource;
|
|
21
|
+
path: string;
|
|
22
|
+
overwrite: boolean;
|
|
23
|
+
transferType: TransferType;
|
|
24
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FillType } from '@opencloud-eu/design-system/helpers';
|
|
2
|
+
export type IconFillType = FillType;
|
|
3
|
+
export type IconType = {
|
|
4
|
+
name: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
fillType?: IconFillType;
|
|
7
|
+
};
|
|
8
|
+
export type ResourceIconMapping = Record<'mimeType' | 'extension', Record<string, IconType>>;
|
|
9
|
+
export declare const resourceIconMappingInjectionKey = "oc-resource-icon-mapping";
|
|
10
|
+
export declare function createDefaultFileIconMapping(): Record<string, IconType>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { ConfigStore, LocationQuery } from '../../composables';
|
|
3
|
+
import { RouteParams } from 'vue-router';
|
|
4
|
+
/**
|
|
5
|
+
* Creates route options for routing into a file location:
|
|
6
|
+
* - params.driveAliasAndItem
|
|
7
|
+
* - query.shareId
|
|
8
|
+
* - query.fileId
|
|
9
|
+
*
|
|
10
|
+
* Both query options are optional.
|
|
11
|
+
*
|
|
12
|
+
* @param space {SpaceResource}
|
|
13
|
+
* @param target {path: string, fileId: string | number}
|
|
14
|
+
* @param options {configStore: ConfigStore}
|
|
15
|
+
*/
|
|
16
|
+
export declare const createFileRouteOptions: (space: SpaceResource, target?: {
|
|
17
|
+
path?: string;
|
|
18
|
+
fileId?: string | number;
|
|
19
|
+
}, options?: {
|
|
20
|
+
configStore: ConfigStore;
|
|
21
|
+
}) => {
|
|
22
|
+
params: RouteParams;
|
|
23
|
+
query: LocationQuery;
|
|
24
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { Graph } from '@opencloud-eu/web-client/graph';
|
|
3
|
+
import { SpacesStore } from '../../composables';
|
|
4
|
+
/**
|
|
5
|
+
* Gets the drive item for a given shared space.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getSharedDriveItem: ({ graphClient, spacesStore, space, signal }: {
|
|
8
|
+
graphClient: Graph;
|
|
9
|
+
spacesStore: SpacesStore;
|
|
10
|
+
space: SpaceResource;
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
}) => Promise<import('@opencloud-eu/web-client/graph/generated').DriveItem>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { RouteLocationNamedRaw } from 'vue-router';
|
|
3
|
+
import { AncestorMetaDataValue } from '../../types';
|
|
4
|
+
export declare const getSharedAncestorRoute: ({ sharedAncestor, matchingSpace }: {
|
|
5
|
+
sharedAncestor: AncestorMetaDataValue;
|
|
6
|
+
matchingSpace: SpaceResource;
|
|
7
|
+
}) => RouteLocationNamedRaw;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './permissions';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DriveItem } from '@opencloud-eu/web-client/graph/generated';
|
|
2
|
+
import { SharesStore, SpacesStore } from '../../composables/piniaStores';
|
|
3
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
4
|
+
/**
|
|
5
|
+
* Since shared spaces are only virtual, they and their permissions can't be fetched from the server.
|
|
6
|
+
* Hence the permissions for the current user may need to be set manually via the corresponding drive item.
|
|
7
|
+
*/
|
|
8
|
+
export declare const setCurrentUserShareSpacePermissions: ({ sharesStore, spacesStore, space, sharedDriveItem }: {
|
|
9
|
+
sharesStore: SharesStore;
|
|
10
|
+
spacesStore: SpacesStore;
|
|
11
|
+
space: SpaceResource;
|
|
12
|
+
sharedDriveItem: DriveItem;
|
|
13
|
+
}) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { AncestorMetaData } from '../types';
|
|
3
|
+
import { User } from '@opencloud-eu/web-client/graph/generated';
|
|
4
|
+
import { IconFillType } from './resource';
|
|
5
|
+
import { useInterceptModifierClick } from '../composables';
|
|
6
|
+
export type ResourceIndicatorCategory = 'system' | 'sharing' | 'space';
|
|
7
|
+
export interface ResourceIndicator {
|
|
8
|
+
id: string;
|
|
9
|
+
accessibleDescription: string;
|
|
10
|
+
label: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
fillType: IconFillType;
|
|
13
|
+
type: string;
|
|
14
|
+
category: ResourceIndicatorCategory;
|
|
15
|
+
handler?: (resource: Resource, event?: MouseEvent) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const getIndicators: ({ space, resource, ancestorMetaData, user, interceptModifierClick }: {
|
|
18
|
+
space: SpaceResource;
|
|
19
|
+
resource: Resource;
|
|
20
|
+
ancestorMetaData: AncestorMetaData;
|
|
21
|
+
user: User;
|
|
22
|
+
interceptModifierClick: ReturnType<typeof useInterceptModifierClick>["interceptModifierClick"];
|
|
23
|
+
}) => ResourceIndicator[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Takes an object from state and creates a copy of it with only the values (no watchers, etc.)
|
|
3
|
+
* Editing the copied object does not result in errors due to modifying the state.
|
|
4
|
+
* The copied object is still reactive.
|
|
5
|
+
* @param {Object} state Object in the state to be copied
|
|
6
|
+
* @return {Object} Copied object
|
|
7
|
+
*/
|
|
8
|
+
export declare function cloneStateObject<T>(state: T): T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getTextByteSize: (text: string) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const focusCheckbox: (id: string) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SortField } from '../../composables/sort';
|
|
3
|
+
import { Language } from 'vue3-gettext';
|
|
4
|
+
export declare const sortFields: SortField[];
|
|
5
|
+
export declare const determineResourceTilesSortFields: (firstResource: Resource) => SortField[];
|
|
6
|
+
export declare const translateSortFields: (fields: SortField[], { $gettext }: Language) => SortField[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export type RequestConfig<D, S> = AxiosRequestConfig<D> & {
|
|
4
|
+
schema?: S extends z.Schema ? S : never;
|
|
5
|
+
};
|
|
6
|
+
export declare class HttpClient {
|
|
7
|
+
private readonly instance;
|
|
8
|
+
private readonly cancelToken;
|
|
9
|
+
constructor(config?: AxiosRequestConfig, interceptor?: (value: InternalAxiosRequestConfig<any>) => InternalAxiosRequestConfig<any> | Promise<InternalAxiosRequestConfig<any>>);
|
|
10
|
+
cancel(msg?: string): void;
|
|
11
|
+
delete<T = any, D = any, S extends z.Schema | T = T>(url: string, data?: D, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
12
|
+
get<T = unknown, D = any, S extends z.Schema | T = T>(url: string, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
13
|
+
head<T = any, D = any, S extends z.Schema | T = T>(url: string, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
14
|
+
options<T = any, D = any, S extends z.Schema | T = T>(url: string, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
15
|
+
patch<T = any, D = any, S extends z.Schema | T = T>(url: string, data?: D, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
16
|
+
post<T = any, D = any, S extends z.Schema | T = T>(url: string, data?: D, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
17
|
+
put<T = any, D = any, S extends z.Schema | T = T>(url: string, data?: D, config?: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
18
|
+
request<T = any, D = any, S extends z.Schema | T = T>(config: RequestConfig<D, S>): Promise<AxiosResponse<S extends z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>> ? z.core.output<S> : S, any, {}>>;
|
|
19
|
+
private obtainConfig;
|
|
20
|
+
private processResponse;
|
|
21
|
+
private internalRequest;
|
|
22
|
+
private internalRequestWithData;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './client';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './apps';
|
|
2
|
+
export * from './components';
|
|
3
|
+
export * from './composables';
|
|
4
|
+
export * from './constants';
|
|
5
|
+
export * from './errors';
|
|
6
|
+
export * from './helpers';
|
|
7
|
+
export * from './http';
|
|
8
|
+
export * from './observer';
|
|
9
|
+
export * from './router';
|
|
10
|
+
export * from './services';
|
|
11
|
+
export * from './types';
|
|
12
|
+
export * from './ui';
|
|
13
|
+
export * from './utils';
|
|
14
|
+
export * from './cern';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './visibility';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface CbackOptions {
|
|
2
|
+
element: Element;
|
|
3
|
+
callCount: number;
|
|
4
|
+
unobserve: () => void;
|
|
5
|
+
}
|
|
6
|
+
type cback = (options: CbackOptions) => void;
|
|
7
|
+
interface Cbacks {
|
|
8
|
+
onEnter?: cback;
|
|
9
|
+
onExit?: cback;
|
|
10
|
+
}
|
|
11
|
+
interface VisibilityObserverOptions {
|
|
12
|
+
root?: Element | Document | null;
|
|
13
|
+
rootMargin?: string;
|
|
14
|
+
threshold?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare class VisibilityObserver {
|
|
17
|
+
private targets;
|
|
18
|
+
private readonly intersectionObserver;
|
|
19
|
+
private readonly options;
|
|
20
|
+
constructor(options?: VisibilityObserverOptions);
|
|
21
|
+
observe(element: Element, cbacks?: Cbacks, threshold?: number): void;
|
|
22
|
+
unobserve(element: Element): void;
|
|
23
|
+
disconnect(): void;
|
|
24
|
+
private trigger;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RouteComponents } from './router';
|
|
2
|
+
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
+
type commonTypes = 'files-common-favorites' | 'files-common-search';
|
|
4
|
+
export declare const createLocationCommon: (name: commonTypes, location?: {}) => RouteLocationNamedRaw;
|
|
5
|
+
export declare const locationFavorites: RouteLocationNamedRaw;
|
|
6
|
+
export declare const locationSearch: RouteLocationNamedRaw;
|
|
7
|
+
export declare const isLocationCommonActive: import('./utils').ActiveRouteDirectorFunc<commonTypes>;
|
|
8
|
+
export declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RouteRecordRaw, RouteLocationNamedRaw, Router } from 'vue-router';
|
|
2
|
+
/**
|
|
3
|
+
* listed routes only exist to keep backwards compatibility intact,
|
|
4
|
+
* all routes written in a flat syntax to keep them readable.
|
|
5
|
+
*/
|
|
6
|
+
export declare const buildRoutes: () => RouteRecordRaw[];
|
|
7
|
+
/**
|
|
8
|
+
* same as utils.isLocationActive with the difference that it remaps old route names to new ones and warns
|
|
9
|
+
* @param router
|
|
10
|
+
* @param comparatives
|
|
11
|
+
*/
|
|
12
|
+
export declare const isLocationActive: (router: Router, ...comparatives: [RouteLocationNamedRaw, ...RouteLocationNamedRaw[]]) => boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import { isLocationCommonActive, createLocationCommon } from './common';
|
|
3
|
+
import { isLocationActive } from './deprecated';
|
|
4
|
+
import { createLocationPublic, isLocationPublicActive, locationPublicLink, locationPublicUpload } from './public';
|
|
5
|
+
import { RouteComponents } from './router';
|
|
6
|
+
import { isLocationSharesActive, createLocationShares, locationSharesViaLink, locationSharesWithMe, locationSharesWithOthers, RouteShareTypes } from './shares';
|
|
7
|
+
import { isLocationSpacesActive, createLocationSpaces, locationSpacesGeneric } from './spaces';
|
|
8
|
+
import { isLocationTrashActive, createLocationTrash } from './trash';
|
|
9
|
+
import { isLocationActiveDirector, createLocation, ActiveRouteDirectorFunc } from './utils';
|
|
10
|
+
declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
11
|
+
export { createLocation, createLocationCommon, createLocationShares, createLocationSpaces, createLocationPublic, isLocationCommonActive, isLocationSharesActive, isLocationSpacesActive, isLocationPublicActive, isLocationActive, isLocationActiveDirector, isLocationTrashActive, createLocationTrash, locationPublicLink, locationPublicUpload, locationSpacesGeneric, locationSharesViaLink, locationSharesWithMe, locationSharesWithOthers, buildRoutes, ActiveRouteDirectorFunc };
|
|
12
|
+
export type { RouteShareTypes };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RouteComponents } from './router';
|
|
2
|
+
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
+
type shareTypes = 'files-public-link' | 'files-public-upload';
|
|
4
|
+
export declare const createLocationPublic: (name: shareTypes, location?: {}) => RouteLocationNamedRaw;
|
|
5
|
+
export declare const locationPublicLink: RouteLocationNamedRaw;
|
|
6
|
+
export declare const locationPublicUpload: RouteLocationNamedRaw;
|
|
7
|
+
export declare const isLocationPublicActive: import('./utils').ActiveRouteDirectorFunc<shareTypes>;
|
|
8
|
+
export declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* we need to inject the vue files into the route builders,
|
|
4
|
+
* this is because we also import the provided helpers from other js|ts files
|
|
5
|
+
* like mixins, rollup seems to have a problem to import files which contain vue file imports
|
|
6
|
+
* into js files which then again get imported by other vue files...
|
|
7
|
+
*/
|
|
8
|
+
type Component = ReturnType<typeof defineComponent>;
|
|
9
|
+
export interface RouteComponents {
|
|
10
|
+
App: Component;
|
|
11
|
+
Favorites: Component;
|
|
12
|
+
FilesDrop: Component;
|
|
13
|
+
SearchResults: Component;
|
|
14
|
+
Shares: {
|
|
15
|
+
SharedWithMe: Component;
|
|
16
|
+
SharedWithOthers: Component;
|
|
17
|
+
SharedViaLink: Component;
|
|
18
|
+
};
|
|
19
|
+
Spaces: {
|
|
20
|
+
DriveResolver: Component;
|
|
21
|
+
Projects: Component;
|
|
22
|
+
};
|
|
23
|
+
Trash: {
|
|
24
|
+
Overview: Component;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RouteComponents } from './router';
|
|
2
|
+
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
+
export type RouteShareTypes = 'files-shares' | 'files-shares-with-me' | 'files-shares-with-others' | 'files-shares-via-link';
|
|
4
|
+
export declare const createLocationShares: (name: RouteShareTypes, location?: {}) => RouteLocationNamedRaw;
|
|
5
|
+
export declare const locationShares: RouteLocationNamedRaw;
|
|
6
|
+
export declare const locationSharesWithMe: RouteLocationNamedRaw;
|
|
7
|
+
export declare const locationSharesWithOthers: RouteLocationNamedRaw;
|
|
8
|
+
export declare const locationSharesViaLink: RouteLocationNamedRaw;
|
|
9
|
+
export declare const isLocationSharesActive: import('./utils').ActiveRouteDirectorFunc<RouteShareTypes>;
|
|
10
|
+
export declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router';
|
|
2
|
+
import { RouteComponents } from './router';
|
|
3
|
+
type spaceTypes = 'files-spaces-projects' | 'files-spaces-generic';
|
|
4
|
+
export declare const createLocationSpaces: (name: spaceTypes, location?: {}) => RouteLocationNamedRaw;
|
|
5
|
+
export declare const locationSpacesProjects: RouteLocationNamedRaw;
|
|
6
|
+
export declare const locationSpacesGeneric: RouteLocationNamedRaw;
|
|
7
|
+
export declare const isLocationSpacesActive: import('./utils').ActiveRouteDirectorFunc<spaceTypes>;
|
|
8
|
+
export declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RouteComponents } from './router';
|
|
2
|
+
import { RouteLocationNamedRaw, RouteRecordRaw } from 'vue-router';
|
|
3
|
+
type trashTypes = 'files-trash-generic' | 'files-trash-overview';
|
|
4
|
+
export declare const createLocationTrash: (name: trashTypes, location?: {}) => RouteLocationNamedRaw;
|
|
5
|
+
export declare const locationTrashGeneric: RouteLocationNamedRaw;
|
|
6
|
+
export declare const locationTrashOverview: RouteLocationNamedRaw;
|
|
7
|
+
export declare const isLocationTrashActive: import('./utils').ActiveRouteDirectorFunc<trashTypes>;
|
|
8
|
+
export declare const buildRoutes: (components: RouteComponents) => RouteRecordRaw[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Router, RouteLocationNamedRaw } from 'vue-router';
|
|
2
|
+
export interface ActiveRouteDirectorFunc<T extends string> {
|
|
3
|
+
(router: Router, ...comparatives: T[]): boolean;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* helper function to find out if comparative route location is active or not.
|
|
7
|
+
* it uses vue router resolve to do so.
|
|
8
|
+
*
|
|
9
|
+
* @param router
|
|
10
|
+
* @param comparatives
|
|
11
|
+
*/
|
|
12
|
+
export declare const isLocationActive: (router: Router, ...comparatives: [RouteLocationNamedRaw, ...RouteLocationNamedRaw[]]) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* wraps isLocationActive to be used as a closure,
|
|
15
|
+
* the resulting closure then can be used to check a location against the defined set of director locations
|
|
16
|
+
*
|
|
17
|
+
* @param defaultComparatives
|
|
18
|
+
*/
|
|
19
|
+
export declare const isLocationActiveDirector: <T extends string>(...defaultComparatives: [RouteLocationNamedRaw, ...RouteLocationNamedRaw[]]) => ActiveRouteDirectorFunc<T>;
|
|
20
|
+
/**
|
|
21
|
+
* just a dummy function to trick gettext tools
|
|
22
|
+
*
|
|
23
|
+
* @param msg
|
|
24
|
+
*/
|
|
25
|
+
export declare function $gettext(msg: string): string;
|
|
26
|
+
/**
|
|
27
|
+
* create a location with attached default values
|
|
28
|
+
*
|
|
29
|
+
* @param name
|
|
30
|
+
* @param locations
|
|
31
|
+
*/
|
|
32
|
+
export declare const createLocation: (name: string, ...locations: RouteLocationNamedRaw[]) => RouteLocationNamedRaw;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const ExternalAppSchema: z.ZodObject<{
|
|
3
|
+
icon: z.ZodString;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
secure_view: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
6
|
+
target_ext: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ExternalApp = z.infer<typeof ExternalAppSchema>;
|
|
9
|
+
declare const MimeTypeSchema: z.ZodObject<{
|
|
10
|
+
allow_creation: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
app_providers: z.ZodArray<z.ZodObject<{
|
|
12
|
+
icon: z.ZodString;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
secure_view: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
15
|
+
target_ext: z.ZodOptional<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
default_application: z.ZodOptional<z.ZodString>;
|
|
18
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19
|
+
ext: z.ZodOptional<z.ZodString>;
|
|
20
|
+
mime_type: z.ZodString;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
export type MimeType = z.infer<typeof MimeTypeSchema>;
|
|
24
|
+
export declare const MimeTypesToAppsSchema: z.ZodObject<{
|
|
25
|
+
'mime-types': z.ZodArray<z.ZodObject<{
|
|
26
|
+
allow_creation: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
app_providers: z.ZodArray<z.ZodObject<{
|
|
28
|
+
icon: z.ZodString;
|
|
29
|
+
name: z.ZodString;
|
|
30
|
+
secure_view: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
target_ext: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
default_application: z.ZodOptional<z.ZodString>;
|
|
34
|
+
description: z.ZodOptional<z.ZodString>;
|
|
35
|
+
ext: z.ZodOptional<z.ZodString>;
|
|
36
|
+
mime_type: z.ZodString;
|
|
37
|
+
name: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { MimeType } from './schemas';
|
|
2
|
+
import { ClientService } from '../client';
|
|
3
|
+
export declare class AppProviderService {
|
|
4
|
+
private _mimeTypes;
|
|
5
|
+
private readonly serverUrl;
|
|
6
|
+
private readonly clientService;
|
|
7
|
+
constructor(serverUrl: string, clientService: ClientService);
|
|
8
|
+
loadData(): Promise<void>;
|
|
9
|
+
set mimeTypes(value: MimeType[]);
|
|
10
|
+
get mimeTypes(): MimeType[];
|
|
11
|
+
get templateMimeTypes(): {
|
|
12
|
+
app_providers: {
|
|
13
|
+
icon: string;
|
|
14
|
+
name: string;
|
|
15
|
+
secure_view: boolean;
|
|
16
|
+
target_ext?: string;
|
|
17
|
+
}[];
|
|
18
|
+
mime_type: string;
|
|
19
|
+
allow_creation?: boolean;
|
|
20
|
+
default_application?: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
ext?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
}[];
|
|
25
|
+
get appNames(): string[];
|
|
26
|
+
getMimeTypesByAppName(appName: string): MimeType[];
|
|
27
|
+
}
|