@opencloud-eu/web-pkg 0.1.0 → 1.0.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-CJlQUXAU.js → TextEditor-dPv5RFiT.js} +2 -1
- package/dist/{index-Dwxl8NsB.js → index-B8n8dCfU.js} +1 -1
- package/dist/package/src/apps/index.d.ts +1 -0
- package/dist/package/src/apps/types.d.ts +118 -0
- package/dist/package/src/cern/composables/index.d.ts +1 -0
- package/dist/package/src/cern/composables/useGroupingSettings.d.ts +32 -0
- package/dist/package/src/cern/index.d.ts +1 -0
- package/dist/package/src/components/AppBar/AppBar.vue.d.ts +536 -0
- package/dist/package/src/components/AppBar/CreateSpace.vue.d.ts +18 -0
- package/dist/package/src/components/AppBar/index.d.ts +2 -0
- package/dist/package/src/components/AppLoadingSpinner.vue.d.ts +2 -0
- package/dist/package/src/components/AppTemplates/AppWrapper.vue.d.ts +889 -0
- package/dist/package/src/components/AppTemplates/AppWrapperRoute.d.ts +10 -0
- package/dist/package/src/components/AppTemplates/PartialViews/ErrorScreen.vue.d.ts +22 -0
- package/dist/package/src/components/AppTemplates/PartialViews/LoadingScreen.vue.d.ts +2 -0
- package/dist/package/src/components/AppTemplates/index.d.ts +3 -0
- package/dist/package/src/components/AppTemplates/types.d.ts +11 -0
- package/dist/package/src/components/AppTopBar.vue.d.ts +526 -0
- package/dist/package/src/components/BatchActions.vue.d.ts +125 -0
- package/dist/package/src/components/ContextActions/ActionMenuItem.vue.d.ts +93 -0
- package/dist/package/src/components/ContextActions/ContextActionMenu.vue.d.ts +138 -0
- package/dist/package/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +29 -0
- package/dist/package/src/components/ContextActions/index.d.ts +3 -0
- package/dist/package/src/components/CreateLinkModal.vue.d.ts +126 -0
- package/dist/package/src/components/CreateShortcutModal.vue.d.ts +603 -0
- package/dist/package/src/components/CustomComponentTarget.vue.d.ts +16 -0
- package/dist/package/src/components/FilesList/ContextActions.vue.d.ts +148 -0
- package/dist/package/src/components/FilesList/ResourceGhostElement.vue.d.ts +49 -0
- package/dist/package/src/components/FilesList/ResourceIcon.vue.d.ts +44 -0
- package/dist/package/src/components/FilesList/ResourceLink.vue.d.ts +78 -0
- package/dist/package/src/components/FilesList/ResourceListItem.vue.d.ts +384 -0
- package/dist/package/src/components/FilesList/ResourceName.vue.d.ts +140 -0
- package/dist/package/src/components/FilesList/ResourceSize.vue.d.ts +25 -0
- package/dist/package/src/components/FilesList/ResourceTable.vue.d.ts +1411 -0
- package/dist/package/src/components/FilesList/ResourceTile.vue.d.ts +507 -0
- package/dist/package/src/components/FilesList/ResourceTiles.vue.d.ts +740 -0
- package/dist/package/src/components/FilesList/index.d.ts +10 -0
- package/dist/package/src/components/Filters/DateFilter.vue.d.ts +171 -0
- package/dist/package/src/components/Filters/ItemFilterInline.vue.d.ts +28 -0
- package/dist/package/src/components/Filters/index.d.ts +3 -0
- package/dist/package/src/components/Filters/types.d.ts +4 -0
- package/dist/package/src/components/ItemFilter.vue.d.ts +122 -0
- package/dist/package/src/components/ItemFilterToggle.vue.d.ts +26 -0
- package/dist/package/src/components/LinkRoleDropdown.vue.d.ts +40 -0
- package/dist/package/src/components/LoadingIndicator.vue.d.ts +5 -0
- package/dist/package/src/components/Modals/DatePickerModal.vue.d.ts +57 -0
- package/dist/package/src/components/Modals/EmojiPickerModal.vue.d.ts +19 -0
- package/dist/package/src/components/Modals/FilePickerModal.vue.d.ts +41 -0
- package/dist/package/src/components/Modals/ResourceConflictModal.vue.d.ts +76 -0
- package/dist/package/src/components/Modals/SaveAsModal.vue.d.ts +49 -0
- package/dist/package/src/components/Modals/SpaceMoveInfoModal.vue.d.ts +14 -0
- package/dist/package/src/components/Modals/UnsavedChangesModal.vue.d.ts +27 -0
- package/dist/package/src/components/Modals/index.d.ts +7 -0
- package/dist/package/src/components/NoContentMessage.vue.d.ts +22 -0
- package/dist/package/src/components/Pagination.vue.d.ts +20 -0
- package/dist/package/src/components/PortalTarget.vue.d.ts +41 -0
- package/dist/package/src/components/QuotaSelect.vue.d.ts +74 -0
- package/dist/package/src/components/Search/ResourcePreview.vue.d.ts +548 -0
- package/dist/package/src/components/Search/index.d.ts +2 -0
- package/dist/package/src/components/Search/types.d.ts +29 -0
- package/dist/package/src/components/SearchBarFilter.vue.d.ts +27 -0
- package/dist/package/src/components/SideBar/CompareSaveDialog.vue.d.ts +38 -0
- package/dist/package/src/components/SideBar/FileSideBar.vue.d.ts +256 -0
- package/dist/package/src/components/SideBar/Files/FileInfo.vue.d.ts +136 -0
- package/dist/package/src/components/SideBar/Files/index.d.ts +1 -0
- package/dist/package/src/components/SideBar/SideBar.vue.d.ts +73 -0
- package/dist/package/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +96 -0
- package/dist/package/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +24 -0
- package/dist/package/src/components/SideBar/Spaces/Details/index.d.ts +2 -0
- package/dist/package/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -0
- package/dist/package/src/components/SideBar/Spaces/SpaceNoSelection.vue.d.ts +2 -0
- package/dist/package/src/components/SideBar/Spaces/index.d.ts +3 -0
- package/dist/package/src/components/SideBar/WebDavDetails.vue.d.ts +21 -0
- package/dist/package/src/components/SideBar/index.d.ts +7 -0
- package/dist/package/src/components/SideBar/types.d.ts +22 -0
- package/dist/package/src/components/SpaceQuota.vue.d.ts +26 -0
- package/dist/package/src/components/Spaces/QuotaModal.vue.d.ts +155 -0
- package/dist/package/src/components/Spaces/index.d.ts +1 -0
- package/dist/package/src/components/TextEditor/TextEditor.vue.d.ts +172 -0
- package/dist/package/src/components/TextEditor/index.d.ts +168 -0
- package/dist/package/src/components/TextEditor/l18n.d.ts +22 -0
- package/dist/package/src/components/ViewOptions.vue.d.ts +127 -0
- package/dist/package/src/components/index.d.ts +27 -0
- package/dist/package/src/composables/ability/index.d.ts +1 -0
- package/dist/package/src/composables/ability/useAbility.d.ts +2 -0
- package/dist/package/src/composables/actions/files/index.d.ts +28 -0
- package/dist/package/src/composables/actions/files/useFileActions.d.ts +28 -0
- package/dist/package/src/composables/actions/files/useFileActionsCopy.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsCopyPermanentLink.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsCreateLink.d.ts +6 -0
- package/dist/package/src/composables/actions/files/useFileActionsCreateNewFile.d.ts +11 -0
- package/dist/package/src/composables/actions/files/useFileActionsCreateNewFolder.d.ts +10 -0
- package/dist/package/src/composables/actions/files/useFileActionsCreateNewShortcut.d.ts +8 -0
- package/dist/package/src/composables/actions/files/useFileActionsCreateSpaceFromResource.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsDelete.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsDisableSync.d.ts +5 -0
- package/dist/package/src/composables/actions/files/useFileActionsDownloadArchive.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsDownloadFile.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsEmptyTrashBin.d.ts +8 -0
- package/dist/package/src/composables/actions/files/useFileActionsEnableSync.d.ts +5 -0
- package/dist/package/src/composables/actions/files/useFileActionsFavorite.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsMove.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsNavigate.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsOpenShortcut.d.ts +5 -0
- package/dist/package/src/composables/actions/files/useFileActionsOpenWithApp.d.ts +6 -0
- package/dist/package/src/composables/actions/files/useFileActionsPaste.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsRename.d.ts +7 -0
- package/dist/package/src/composables/actions/files/useFileActionsRestore.d.ts +12 -0
- package/dist/package/src/composables/actions/files/useFileActionsSaveAs.d.ts +7 -0
- package/dist/package/src/composables/actions/files/useFileActionsSetImage.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsShowActions.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsShowDetails.d.ts +4 -0
- package/dist/package/src/composables/actions/files/useFileActionsShowShares.d.ts +5 -0
- package/dist/package/src/composables/actions/files/useFileActionsToggleHideShare.d.ts +5 -0
- package/dist/package/src/composables/actions/helpers/index.d.ts +3 -0
- package/dist/package/src/composables/actions/helpers/useFileActionsDeleteResources.d.ts +5 -0
- package/dist/package/src/composables/actions/helpers/useIsFilesAppActive.d.ts +1 -0
- package/dist/package/src/composables/actions/helpers/useIsSearchActive.d.ts +1 -0
- package/dist/package/src/composables/actions/index.d.ts +8 -0
- package/dist/package/src/composables/actions/spaces/index.d.ts +11 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsDelete.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsDisable.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsDuplicate.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsEditDescription.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsEditQuota.d.ts +4 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsEditReadmeContent.d.ts +4 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsNavigateToTrash.d.ts +4 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsRename.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsRestore.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsSetIcon.d.ts +6 -0
- package/dist/package/src/composables/actions/spaces/useSpaceActionsShowMembers.d.ts +4 -0
- package/dist/package/src/composables/actions/types.d.ts +48 -0
- package/dist/package/src/composables/actions/useActionsShowDetails.d.ts +4 -0
- package/dist/package/src/composables/actions/useOpenEmptyEditor.d.ts +3 -0
- package/dist/package/src/composables/actions/useOpenWithDefaultApp.d.ts +7 -0
- package/dist/package/src/composables/actions/useWindowOpen.d.ts +3 -0
- package/dist/package/src/composables/appDefaults/index.d.ts +8 -0
- package/dist/package/src/composables/appDefaults/types.d.ts +15 -0
- package/dist/package/src/composables/appDefaults/useAppConfig.d.ts +11 -0
- package/dist/package/src/composables/appDefaults/useAppDefaults.d.ts +20 -0
- package/dist/package/src/composables/appDefaults/useAppDocumentTitle.d.ts +13 -0
- package/dist/package/src/composables/appDefaults/useAppFileHandling.d.ts +24 -0
- package/dist/package/src/composables/appDefaults/useAppFolderHandling.d.ts +16 -0
- package/dist/package/src/composables/appDefaults/useAppMeta.d.ts +9 -0
- package/dist/package/src/composables/appDefaults/useAppNavigation.d.ts +27 -0
- package/dist/package/src/composables/appDefaults/useDocumentTitle.d.ts +8 -0
- package/dist/package/src/composables/appProviderService/index.d.ts +1 -0
- package/dist/package/src/composables/appProviderService/useAppProviderService.d.ts +2 -0
- package/dist/package/src/composables/archiverService/index.d.ts +1 -0
- package/dist/package/src/composables/archiverService/useArchiverService.d.ts +2 -0
- package/dist/package/src/composables/authContext/index.d.ts +2 -0
- package/dist/package/src/composables/authContext/useAuthService.d.ts +10 -0
- package/dist/package/src/composables/authContext/useRequest.d.ts +15 -0
- package/dist/package/src/composables/breadcrumbs/index.d.ts +1 -0
- package/dist/package/src/composables/breadcrumbs/useBreadcrumbsFromPath.d.ts +14 -0
- package/dist/package/src/composables/clientService/index.d.ts +1 -0
- package/dist/package/src/composables/clientService/useClientService.d.ts +2 -0
- package/dist/package/src/composables/clipboard/index.d.ts +1 -0
- package/dist/package/src/composables/clipboard/useClipboard.d.ts +3 -0
- package/dist/package/src/composables/download/index.d.ts +1 -0
- package/dist/package/src/composables/download/useDownloadFile.d.ts +8 -0
- package/dist/package/src/composables/driveResolver/index.d.ts +2 -0
- package/dist/package/src/composables/driveResolver/useDriveResolver.d.ts +13 -0
- package/dist/package/src/composables/driveResolver/useSpacesLoading.d.ts +3 -0
- package/dist/package/src/composables/embedMode/index.d.ts +1 -0
- package/dist/package/src/composables/embedMode/useEmbedMode.d.ts +23 -0
- package/dist/package/src/composables/eventBus/index.d.ts +1 -0
- package/dist/package/src/composables/eventBus/useEventBus.d.ts +1 -0
- package/dist/package/src/composables/fileListHeaderPosition/index.d.ts +1 -0
- package/dist/package/src/composables/fileListHeaderPosition/useFileListHeaderPosition.d.ts +5 -0
- package/dist/package/src/composables/filesList/index.d.ts +1 -0
- package/dist/package/src/composables/filesList/useResourceRouteResolver.d.ts +13 -0
- package/dist/package/src/composables/folderLink/index.d.ts +1 -0
- package/dist/package/src/composables/folderLink/useFolderLink.d.ts +15 -0
- package/dist/package/src/composables/index.d.ts +40 -0
- package/dist/package/src/composables/isTopBarSticky/index.d.ts +1 -0
- package/dist/package/src/composables/isTopBarSticky/useIsTopBarSticky.d.ts +8 -0
- package/dist/package/src/composables/keyboardActions/index.d.ts +1 -0
- package/dist/package/src/composables/keyboardActions/useKeyboardActions.d.ts +39 -0
- package/dist/package/src/composables/links/index.d.ts +1 -0
- package/dist/package/src/composables/links/useLinkTypes.d.ts +36 -0
- package/dist/package/src/composables/loadingService/index.d.ts +1 -0
- package/dist/package/src/composables/loadingService/useLoadingService.d.ts +2 -0
- package/dist/package/src/composables/localStorage/index.d.ts +1 -0
- package/dist/package/src/composables/localStorage/useLocalStorage.d.ts +2 -0
- package/dist/package/src/composables/pagination/constants.d.ts +5 -0
- package/dist/package/src/composables/pagination/index.d.ts +2 -0
- package/dist/package/src/composables/pagination/usePagination.d.ts +17 -0
- package/dist/package/src/composables/passwordPolicyService/index.d.ts +1 -0
- package/dist/package/src/composables/passwordPolicyService/usePasswordPolicyService.d.ts +2 -0
- package/dist/package/src/composables/piniaStores/apps.d.ts +157 -0
- package/dist/package/src/composables/piniaStores/auth.d.ts +59 -0
- package/dist/package/src/composables/piniaStores/capabilities.d.ts +1731 -0
- package/dist/package/src/composables/piniaStores/clipboard.d.ts +658 -0
- package/dist/package/src/composables/piniaStores/config/config.d.ts +756 -0
- package/dist/package/src/composables/piniaStores/config/index.d.ts +2 -0
- package/dist/package/src/composables/piniaStores/config/types.d.ts +854 -0
- package/dist/package/src/composables/piniaStores/extensionRegistry/extensionPreferences.d.ts +22 -0
- package/dist/package/src/composables/piniaStores/extensionRegistry/extensionRegistry.d.ts +37 -0
- package/dist/package/src/composables/piniaStores/extensionRegistry/index.d.ts +3 -0
- package/dist/package/src/composables/piniaStores/extensionRegistry/types.d.ts +60 -0
- package/dist/package/src/composables/piniaStores/index.d.ts +14 -0
- package/dist/package/src/composables/piniaStores/messages.d.ts +125 -0
- package/dist/package/src/composables/piniaStores/modals.d.ts +1365 -0
- package/dist/package/src/composables/piniaStores/resources.d.ts +189 -0
- package/dist/package/src/composables/piniaStores/shares/index.d.ts +2 -0
- package/dist/package/src/composables/piniaStores/shares/shares.d.ts +57 -0
- package/dist/package/src/composables/piniaStores/shares/types.d.ts +43 -0
- package/dist/package/src/composables/piniaStores/spaces.d.ts +9061 -0
- package/dist/package/src/composables/piniaStores/theme.d.ts +1368 -0
- package/dist/package/src/composables/piniaStores/user.d.ts +15 -0
- package/dist/package/src/composables/piniaStores/webWorkers.d.ts +29 -0
- package/dist/package/src/composables/portalTarget/eventTopics.d.ts +3 -0
- package/dist/package/src/composables/portalTarget/index.d.ts +2 -0
- package/dist/package/src/composables/portalTarget/usePortalTarget.d.ts +4 -0
- package/dist/package/src/composables/previewService/index.d.ts +1 -0
- package/dist/package/src/composables/previewService/usePreviewService.d.ts +2 -0
- package/dist/package/src/composables/requestHeaders/index.d.ts +1 -0
- package/dist/package/src/composables/requestHeaders/useRequestHeaders.d.ts +3 -0
- package/dist/package/src/composables/resources/index.d.ts +5 -0
- package/dist/package/src/composables/resources/useCanBeOpenedWithSecureView.d.ts +4 -0
- package/dist/package/src/composables/resources/useCanListVersions.d.ts +7 -0
- package/dist/package/src/composables/resources/useGetResourceContext.d.ts +1495 -0
- package/dist/package/src/composables/resources/useLoadPreview.d.ts +26 -0
- package/dist/package/src/composables/resources/useResourceContents.d.ts +5 -0
- package/dist/package/src/composables/router/index.d.ts +11 -0
- package/dist/package/src/composables/router/types.d.ts +16 -0
- package/dist/package/src/composables/router/useActiveApp.d.ts +4 -0
- package/dist/package/src/composables/router/useActiveLocation.d.ts +10 -0
- package/dist/package/src/composables/router/useFileRouteReplace.d.ts +15 -0
- package/dist/package/src/composables/router/useRoute.d.ts +3 -0
- package/dist/package/src/composables/router/useRouteMeta.d.ts +2 -0
- package/dist/package/src/composables/router/useRouteName.d.ts +2 -0
- package/dist/package/src/composables/router/useRouteParam.d.ts +3 -0
- package/dist/package/src/composables/router/useRouteQuery.d.ts +3 -0
- package/dist/package/src/composables/router/useRouteQueryPersisted.d.ts +8 -0
- package/dist/package/src/composables/router/useRouter.d.ts +2 -0
- package/dist/package/src/composables/scrollTo/index.d.ts +1 -0
- package/dist/package/src/composables/scrollTo/useScrollTo.d.ts +9 -0
- package/dist/package/src/composables/search/constants.d.ts +4 -0
- package/dist/package/src/composables/search/index.d.ts +2 -0
- package/dist/package/src/composables/search/useSearch.d.ts +14 -0
- package/dist/package/src/composables/selection/index.d.ts +1 -0
- package/dist/package/src/composables/selection/useSelectedResources.d.ts +9 -0
- package/dist/package/src/composables/service/index.d.ts +1 -0
- package/dist/package/src/composables/service/useService.d.ts +1 -0
- package/dist/package/src/composables/shares/index.d.ts +2 -0
- package/dist/package/src/composables/shares/useCanListShares.d.ts +7 -0
- package/dist/package/src/composables/shares/useCanShare.d.ts +7 -0
- package/dist/package/src/composables/sideBar/eventTopics.d.ts +7 -0
- package/dist/package/src/composables/sideBar/index.d.ts +2 -0
- package/dist/package/src/composables/sideBar/useSideBar.d.ts +12 -0
- package/dist/package/src/composables/sort/constants.d.ts +4 -0
- package/dist/package/src/composables/sort/index.d.ts +2 -0
- package/dist/package/src/composables/sort/useSort.d.ts +36 -0
- package/dist/package/src/composables/spaces/index.d.ts +3 -0
- package/dist/package/src/composables/spaces/useCreateSpace.d.ts +5 -0
- package/dist/package/src/composables/spaces/useGetMatchingSpace.d.ts +15 -0
- package/dist/package/src/composables/spaces/useSpaceHelpers.d.ts +5 -0
- package/dist/package/src/composables/upload/index.d.ts +1 -0
- package/dist/package/src/composables/upload/useUpload.d.ts +6 -0
- package/dist/package/src/composables/viewMode/constants.d.ts +12 -0
- package/dist/package/src/composables/viewMode/index.d.ts +3 -0
- package/dist/package/src/composables/viewMode/useTileSize.d.ts +4 -0
- package/dist/package/src/composables/viewMode/useViewMode.d.ts +4 -0
- package/dist/package/src/composables/webWorkers/deleteWorker/index.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/deleteWorker/useDeleteWorker.d.ts +28 -0
- package/dist/package/src/composables/webWorkers/deleteWorker/worker.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/index.d.ts +4 -0
- package/dist/package/src/composables/webWorkers/pasteWorker/index.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/pasteWorker/usePasteWorker.d.ts +25 -0
- package/dist/package/src/composables/webWorkers/pasteWorker/worker.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/restoreWorker/index.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/restoreWorker/useRestoreWorker.d.ts +28 -0
- package/dist/package/src/composables/webWorkers/restoreWorker/worker.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/tokenTimerWorker/index.d.ts +1 -0
- package/dist/package/src/composables/webWorkers/tokenTimerWorker/useTokenTimerWorker.d.ts +12 -0
- package/dist/package/src/composables/webWorkers/tokenTimerWorker/worker.d.ts +1 -0
- package/dist/package/src/constants.d.ts +14 -0
- package/dist/package/src/errors/index.d.ts +1 -0
- package/dist/package/src/errors/types.d.ts +13 -0
- package/dist/package/src/helpers/binary.d.ts +2 -0
- package/dist/package/src/helpers/breadcrumbs.d.ts +4 -0
- package/dist/package/src/helpers/cache/cache.d.ts +20 -0
- package/dist/package/src/helpers/cache/index.d.ts +1 -0
- package/dist/package/src/helpers/clipboardActions.d.ts +4 -0
- package/dist/package/src/helpers/contextMenuDropdown.d.ts +7 -0
- package/dist/package/src/helpers/datetime.d.ts +11 -0
- package/dist/package/src/helpers/download.d.ts +1 -0
- package/dist/package/src/helpers/filesize.d.ts +8 -0
- package/dist/package/src/helpers/folderLink/index.d.ts +1 -0
- package/dist/package/src/helpers/folderLink/types.d.ts +6 -0
- package/dist/package/src/helpers/fuse.d.ts +5 -0
- package/dist/package/src/helpers/index.d.ts +18 -0
- package/dist/package/src/helpers/locale.d.ts +1 -0
- package/dist/package/src/helpers/path.d.ts +13 -0
- package/dist/package/src/helpers/permissions.d.ts +8 -0
- package/dist/package/src/helpers/resource/conflictHandling/conflictDialog.d.ts +15 -0
- package/dist/package/src/helpers/resource/conflictHandling/conflictUtils.d.ts +3 -0
- package/dist/package/src/helpers/resource/conflictHandling/index.d.ts +4 -0
- package/dist/package/src/helpers/resource/conflictHandling/transfer.d.ts +27 -0
- package/dist/package/src/helpers/resource/conflictHandling/types.d.ts +24 -0
- package/dist/package/src/helpers/resource/filter.d.ts +2 -0
- package/dist/package/src/helpers/resource/icon.d.ts +9 -0
- package/dist/package/src/helpers/resource/index.d.ts +5 -0
- package/dist/package/src/helpers/resource/renameResource.d.ts +2 -0
- package/dist/package/src/helpers/resource/sameResource.d.ts +2 -0
- package/dist/package/src/helpers/router/buildUrl.d.ts +2 -0
- package/dist/package/src/helpers/router/index.d.ts +2 -0
- package/dist/package/src/helpers/router/routeOptions.d.ts +24 -0
- package/dist/package/src/helpers/share/driveItem.d.ts +12 -0
- package/dist/package/src/helpers/share/index.d.ts +2 -0
- package/dist/package/src/helpers/share/sharedAncestorRoute.d.ts +7 -0
- package/dist/package/src/helpers/statusIndicators.d.ts +9 -0
- package/dist/package/src/helpers/store.d.ts +8 -0
- package/dist/package/src/helpers/ui/index.d.ts +3 -0
- package/dist/package/src/helpers/ui/resourceCheckbox.d.ts +1 -0
- package/dist/package/src/helpers/ui/resourceTable.d.ts +3 -0
- package/dist/package/src/helpers/ui/resourceTiles.d.ts +6 -0
- package/dist/package/src/http/client.d.ts +23 -0
- package/dist/package/src/http/index.d.ts +1 -0
- package/dist/package/src/index.d.ts +14 -0
- package/dist/package/src/observer/index.d.ts +1 -0
- package/dist/package/src/observer/visibility.d.ts +26 -0
- package/dist/package/src/router/common.d.ts +9 -0
- package/dist/package/src/router/deprecated.d.ts +12 -0
- package/dist/package/src/router/index.d.ts +12 -0
- package/dist/package/src/router/public.d.ts +9 -0
- package/dist/package/src/router/router.d.ts +27 -0
- package/dist/package/src/router/shares.d.ts +10 -0
- package/dist/package/src/router/spaces.d.ts +9 -0
- package/dist/package/src/router/trash.d.ts +9 -0
- package/dist/package/src/router/utils.d.ts +32 -0
- package/dist/package/src/services/appProvider/index.d.ts +2 -0
- package/dist/package/src/services/appProvider/schemas.d.ts +152 -0
- package/dist/package/src/services/appProvider/service.d.ts +27 -0
- package/dist/package/src/services/archiver.d.ts +26 -0
- package/dist/package/src/services/cache.d.ts +14 -0
- package/dist/package/src/services/client/auth.d.ts +12 -0
- package/dist/package/src/services/client/client.d.ts +43 -0
- package/dist/package/src/services/client/index.d.ts +2 -0
- package/dist/package/src/services/eventBus.d.ts +8 -0
- package/dist/package/src/services/folder/folderService.d.ts +26 -0
- package/dist/package/src/services/folder/index.d.ts +2 -0
- package/dist/package/src/services/folder/loaders/index.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/loaderFavorites.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/loaderSharedViaLink.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/loaderSharedWithMe.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/loaderSharedWithOthers.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/loaderSpace.d.ts +12 -0
- package/dist/package/src/services/folder/loaders/loaderTrashbin.d.ts +7 -0
- package/dist/package/src/services/folder/loaders/types.d.ts +3 -0
- package/dist/package/src/services/index.d.ts +10 -0
- package/dist/package/src/services/loadingService.d.ts +33 -0
- package/dist/package/src/services/passwordPolicy/index.d.ts +1 -0
- package/dist/package/src/services/passwordPolicy/passwordPolicy.d.ts +20 -0
- package/dist/package/src/services/passwordPolicy/rules.d.ts +63 -0
- package/dist/package/src/services/preview/index.d.ts +2 -0
- package/dist/package/src/services/preview/previewService.d.ts +28 -0
- package/dist/package/src/services/preview/types.d.ts +18 -0
- package/dist/package/src/services/uppy/index.d.ts +1 -0
- package/dist/package/src/services/uppy/uppyService.d.ts +90 -0
- package/dist/package/src/types.d.ts +17 -0
- package/dist/package/src/ui/index.d.ts +1 -0
- package/dist/package/src/ui/types.d.ts +13 -0
- package/dist/package/src/utils/dirname.d.ts +1 -0
- package/dist/package/src/utils/encodePath.d.ts +1 -0
- package/dist/package/src/utils/index.d.ts +4 -0
- package/dist/package/src/utils/objectKeys.d.ts +1 -0
- package/dist/package/src/utils/types.d.ts +5 -0
- package/dist/package/vite.config.d.ts +2 -0
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +172 -0
- package/dist/src/components/TextEditor/index.d.ts +168 -0
- package/dist/web-pkg.js +2 -2
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './AppBar';
|
|
2
|
+
export * from './AppTemplates';
|
|
3
|
+
export * from './ContextActions';
|
|
4
|
+
export * from './FilesList';
|
|
5
|
+
export * from './Filters';
|
|
6
|
+
export * from './Modals';
|
|
7
|
+
export * from './SideBar';
|
|
8
|
+
export * from './Search';
|
|
9
|
+
export * from './Spaces';
|
|
10
|
+
export * from './TextEditor';
|
|
11
|
+
export { default as AppLoadingSpinner } from './AppLoadingSpinner.vue';
|
|
12
|
+
export { default as AppTopBar } from './AppTopBar.vue';
|
|
13
|
+
export { default as BatchActions } from './BatchActions.vue';
|
|
14
|
+
export { default as CustomComponentTarget } from './CustomComponentTarget.vue';
|
|
15
|
+
export { default as ItemFilter } from './ItemFilter.vue';
|
|
16
|
+
export { default as ItemFilterToggle } from './ItemFilterToggle.vue';
|
|
17
|
+
export { default as LinkRoleDropdown } from './LinkRoleDropdown.vue';
|
|
18
|
+
export { default as LoadingIndicator } from './LoadingIndicator.vue';
|
|
19
|
+
export { default as NoContentMessage } from './NoContentMessage.vue';
|
|
20
|
+
export { default as Pagination } from './Pagination.vue';
|
|
21
|
+
export { default as QuotaSelect } from './QuotaSelect.vue';
|
|
22
|
+
export { default as SpaceQuota } from './SpaceQuota.vue';
|
|
23
|
+
export { default as SearchBarFilter } from './SearchBarFilter.vue';
|
|
24
|
+
export { default as ViewOptions } from './ViewOptions.vue';
|
|
25
|
+
export { default as PortalTarget } from './PortalTarget.vue';
|
|
26
|
+
export { default as CreateShortcutModal } from './CreateShortcutModal.vue';
|
|
27
|
+
export { default as CreateLinkModal } from './CreateLinkModal.vue';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useAbility';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export * from './useFileActions';
|
|
2
|
+
export * from './useFileActionsEnableSync';
|
|
3
|
+
export * from './useFileActionsToggleHideShare';
|
|
4
|
+
export * from './useFileActionsCopy';
|
|
5
|
+
export * from './useFileActionsCopyPermanentLink';
|
|
6
|
+
export * from './useFileActionsDisableSync';
|
|
7
|
+
export * from './useFileActionsDelete';
|
|
8
|
+
export * from './useFileActionsDownloadArchive';
|
|
9
|
+
export * from './useFileActionsDownloadFile';
|
|
10
|
+
export * from './useFileActionsEmptyTrashBin';
|
|
11
|
+
export * from './useFileActionsFavorite';
|
|
12
|
+
export * from './useFileActionsMove';
|
|
13
|
+
export * from './useFileActionsNavigate';
|
|
14
|
+
export * from './useFileActionsPaste';
|
|
15
|
+
export * from './useFileActionsRename';
|
|
16
|
+
export * from './useFileActionsRestore';
|
|
17
|
+
export * from './useFileActionsSetImage';
|
|
18
|
+
export * from './useFileActionsShowActions';
|
|
19
|
+
export * from './useFileActionsShowDetails';
|
|
20
|
+
export * from './useFileActionsShowShares';
|
|
21
|
+
export * from './useFileActionsCreateSpaceFromResource';
|
|
22
|
+
export * from './useFileActionsCreateNewFolder';
|
|
23
|
+
export * from './useFileActionsCreateNewFile';
|
|
24
|
+
export * from './useFileActionsCreateNewShortcut';
|
|
25
|
+
export * from './useFileActionsOpenShortcut';
|
|
26
|
+
export * from './useFileActionsCreateLink';
|
|
27
|
+
export * from './useFileActionsOpenWithApp';
|
|
28
|
+
export * from './useFileActionsSaveAs';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Action, FileAction, FileActionOptions } from '../../actions';
|
|
2
|
+
import { ApplicationFileExtension } from '../../../apps';
|
|
3
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
4
|
+
import { RouteRecordName } from 'vue-router';
|
|
5
|
+
export declare const EDITOR_MODE_EDIT = "edit";
|
|
6
|
+
export declare const EDITOR_MODE_CREATE = "create";
|
|
7
|
+
export interface GetFileActionsOptions extends FileActionOptions {
|
|
8
|
+
omitSystemActions?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const useFileActions: () => {
|
|
11
|
+
editorActions: import('vue').ComputedRef<FileAction[]>;
|
|
12
|
+
systemActions: import('vue').ComputedRef<Action<import('../types').ActionOptions>[]>;
|
|
13
|
+
getDefaultAction: (options: GetFileActionsOptions) => Action | undefined;
|
|
14
|
+
getAllAvailableActions: (options: GetFileActionsOptions) => (Action<import('../types').ActionOptions> | FileAction)[];
|
|
15
|
+
getEditorRouteOpts: (routeName: RouteRecordName, space: SpaceResource, resource: Resource, remoteItemId: string, templateId?: string) => {
|
|
16
|
+
name: RouteRecordName;
|
|
17
|
+
params: {
|
|
18
|
+
driveAliasAndItem: string;
|
|
19
|
+
};
|
|
20
|
+
query: {
|
|
21
|
+
templateId: string;
|
|
22
|
+
fileId: string;
|
|
23
|
+
shareId: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
openEditor: (appFileExtension: ApplicationFileExtension, space: SpaceResource, resource: Resource) => void;
|
|
27
|
+
triggerDefaultAction: (options: FileActionOptions) => void;
|
|
28
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { FileAction } from '../types';
|
|
4
|
+
import { ApplicationFileExtension } from '../../../apps';
|
|
5
|
+
export declare const useFileActionsCreateNewFile: ({ space }?: {
|
|
6
|
+
space?: Ref<SpaceResource>;
|
|
7
|
+
}) => {
|
|
8
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
9
|
+
getNameErrorMsg: (fileName: string) => string;
|
|
10
|
+
openFile: (resource: Resource, appFileExtension: ApplicationFileExtension) => void;
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { Ref } from 'vue';
|
|
3
|
+
import { FileAction } from '../types';
|
|
4
|
+
export declare const useFileActionsCreateNewFolder: ({ space }?: {
|
|
5
|
+
space?: Ref<SpaceResource>;
|
|
6
|
+
}) => {
|
|
7
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
8
|
+
checkNewFolderName: (folderName: string, setError: (error: string) => void) => void;
|
|
9
|
+
addNewFolder: (folderName: string) => Promise<void>;
|
|
10
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { FileAction } from '../../../composables';
|
|
3
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
4
|
+
export declare const useFileActionsCreateNewShortcut: ({ space }: {
|
|
5
|
+
space: Ref<SpaceResource>;
|
|
6
|
+
}) => {
|
|
7
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { FileAction } from '../types';
|
|
3
|
+
export declare const useFileActionsEmptyTrashBin: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
5
|
+
emptyTrashBin: ({ space }: {
|
|
6
|
+
space: SpaceResource;
|
|
7
|
+
}) => Promise<void>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { FileAction } from '../types';
|
|
3
|
+
export declare const useFileActionsRename: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
5
|
+
getNameErrorMsg: (resource: Resource, newName: string, parentResources?: Resource[]) => string;
|
|
6
|
+
renameResource: (space: SpaceResource, resource: Resource, newName: string) => Promise<void | import('vue-router').NavigationFailure>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { FileAction } from '../types';
|
|
3
|
+
export declare const useFileActionsRestore: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<FileAction[]>;
|
|
5
|
+
restoreResources: (space: SpaceResource, resources: Resource[], missingFolderPaths: string[]) => void;
|
|
6
|
+
collectConflicts: (space: SpaceResource, sortedResources: Resource[]) => Promise<{
|
|
7
|
+
existingResourcesByPath: Record<string, Resource[]>;
|
|
8
|
+
conflicts: Resource[];
|
|
9
|
+
resolvedResources: Resource[];
|
|
10
|
+
missingFolderPaths: string[];
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsFilesAppActive: () => import('vue').ComputedRef<boolean>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useIsSearchActive: () => import('vue').ComputedRef<boolean>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './helpers';
|
|
2
|
+
export * from './files';
|
|
3
|
+
export * from './spaces';
|
|
4
|
+
export * from './types';
|
|
5
|
+
export * from './useActionsShowDetails';
|
|
6
|
+
export * from './useOpenEmptyEditor';
|
|
7
|
+
export * from './useOpenWithDefaultApp';
|
|
8
|
+
export * from './useWindowOpen';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './useSpaceActionsDelete';
|
|
2
|
+
export * from './useSpaceActionsDisable';
|
|
3
|
+
export * from './useSpaceActionsDuplicate';
|
|
4
|
+
export * from './useSpaceActionsEditDescription';
|
|
5
|
+
export * from './useSpaceActionsEditQuota';
|
|
6
|
+
export * from './useSpaceActionsEditReadmeContent';
|
|
7
|
+
export * from './useSpaceActionsRename';
|
|
8
|
+
export * from './useSpaceActionsRestore';
|
|
9
|
+
export * from './useSpaceActionsShowMembers';
|
|
10
|
+
export * from './useSpaceActionsNavigateToTrash';
|
|
11
|
+
export * from './useSpaceActionsSetIcon';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SpaceAction } from '../types';
|
|
3
|
+
export declare const useSpaceActionsDelete: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
deleteSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SpaceAction } from '../types';
|
|
3
|
+
export declare const useSpaceActionsDisable: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
disableSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SpaceAction } from '../types';
|
|
3
|
+
export declare const useSpaceActionsDuplicate: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
duplicateSpace: (existingSpace: SpaceResource) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceAction } from '../types';
|
|
2
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
|
+
export declare const useSpaceActionsEditDescription: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
editDescriptionSpace: (space: SpaceResource, description: string) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceAction } from '../types';
|
|
2
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
|
+
export declare const useSpaceActionsRename: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
renameSpace: (space: SpaceResource, name: string) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SpaceAction } from '../types';
|
|
3
|
+
export declare const useSpaceActionsRestore: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
restoreSpaces: (spaces: SpaceResource[]) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { SpaceAction } from '../types';
|
|
3
|
+
export declare const useSpaceActionsSetIcon: () => {
|
|
4
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
5
|
+
setIconSpace: (space: SpaceResource, emoji: string) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { Group, User } from '@opencloud-eu/web-client/graph/generated';
|
|
3
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
4
|
+
import { IconFillType } from '../../helpers';
|
|
5
|
+
import { StringUnionOrAnyString } from '../../utils';
|
|
6
|
+
export type ActionOptions = Record<string, unknown | unknown[]>;
|
|
7
|
+
export interface Action<T = ActionOptions> {
|
|
8
|
+
name: string;
|
|
9
|
+
category?: StringUnionOrAnyString<'context' | 'share' | 'actions' | 'sidebar'>;
|
|
10
|
+
icon: string;
|
|
11
|
+
iconFillType?: IconFillType;
|
|
12
|
+
variation?: string;
|
|
13
|
+
appearance?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
img?: string;
|
|
16
|
+
class?: string;
|
|
17
|
+
hasPriority?: boolean;
|
|
18
|
+
hideLabel?: boolean;
|
|
19
|
+
shortcut?: string;
|
|
20
|
+
keepOpen?: boolean;
|
|
21
|
+
showOpenInNewTabHint?: boolean;
|
|
22
|
+
isExternal?: boolean;
|
|
23
|
+
ext?: string;
|
|
24
|
+
label(options?: T): string;
|
|
25
|
+
isVisible(options?: T): boolean;
|
|
26
|
+
handler?(options?: T): Promise<void> | void;
|
|
27
|
+
route?(options?: T): RouteLocationRaw;
|
|
28
|
+
href?(options?: T): string;
|
|
29
|
+
isDisabled?(options?: T): boolean;
|
|
30
|
+
disabledTooltip?(options?: T): string;
|
|
31
|
+
}
|
|
32
|
+
export type FileActionOptions<T extends Resource = Resource> = {
|
|
33
|
+
space: SpaceResource;
|
|
34
|
+
resources?: T[];
|
|
35
|
+
};
|
|
36
|
+
export type FileAction<T extends Resource = Resource> = Action<FileActionOptions<T>>;
|
|
37
|
+
export type GroupActionOptions = {
|
|
38
|
+
resources: Group[];
|
|
39
|
+
};
|
|
40
|
+
export type GroupAction = Action<GroupActionOptions>;
|
|
41
|
+
export type SpaceActionOptions = {
|
|
42
|
+
resources?: SpaceResource[];
|
|
43
|
+
};
|
|
44
|
+
export type SpaceAction = Action<SpaceActionOptions>;
|
|
45
|
+
export type UserActionOptions = {
|
|
46
|
+
resources: User[];
|
|
47
|
+
};
|
|
48
|
+
export type UserAction = Action<UserActionOptions>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './types';
|
|
2
|
+
export * from './useAppConfig';
|
|
3
|
+
export * from './useAppDefaults';
|
|
4
|
+
export * from './useAppFileHandling';
|
|
5
|
+
export * from './useAppFolderHandling';
|
|
6
|
+
export * from './useAppMeta';
|
|
7
|
+
export * from './useAppNavigation';
|
|
8
|
+
export * from './useDocumentTitle';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MaybeRef } from '../../utils';
|
|
2
|
+
import { LocationQuery } from '../router';
|
|
3
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
4
|
+
import { RouteParams } from 'vue-router';
|
|
5
|
+
export interface FileContext {
|
|
6
|
+
path: MaybeRef<string>;
|
|
7
|
+
driveAliasAndItem: MaybeRef<string>;
|
|
8
|
+
space: MaybeRef<SpaceResource>;
|
|
9
|
+
item: MaybeRef<string>;
|
|
10
|
+
itemId: MaybeRef<string>;
|
|
11
|
+
fileName: MaybeRef<string>;
|
|
12
|
+
routeName: MaybeRef<string>;
|
|
13
|
+
routeParams: MaybeRef<RouteParams>;
|
|
14
|
+
routeQuery: MaybeRef<LocationQuery>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { AppConfigObject } from '../../apps';
|
|
3
|
+
import { AppsStore } from '../piniaStores';
|
|
4
|
+
export interface AppConfigOptions {
|
|
5
|
+
appsStore: AppsStore;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AppConfigResult {
|
|
9
|
+
applicationConfig: Ref<AppConfigObject>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useAppConfig(options: AppConfigOptions): AppConfigResult;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ClientService } from '../../services';
|
|
3
|
+
import { FileContext } from './types';
|
|
4
|
+
import { AppNavigationResult } from './useAppNavigation';
|
|
5
|
+
import { AppConfigResult } from './useAppConfig';
|
|
6
|
+
import { AppFileHandlingResult } from './useAppFileHandling';
|
|
7
|
+
import { AppFolderHandlingResult } from './useAppFolderHandling';
|
|
8
|
+
import { RequestResult } from '../authContext';
|
|
9
|
+
import { MaybeRef } from '../../utils';
|
|
10
|
+
interface AppDefaultsOptions {
|
|
11
|
+
applicationId: string;
|
|
12
|
+
applicationName?: MaybeRef<string>;
|
|
13
|
+
clientService?: ClientService;
|
|
14
|
+
}
|
|
15
|
+
export type AppDefaultsResult = AppConfigResult & AppNavigationResult & AppFileHandlingResult & RequestResult & AppFolderHandlingResult & {
|
|
16
|
+
isPublicLinkContext: Ref<boolean>;
|
|
17
|
+
currentFileContext: Ref<FileContext>;
|
|
18
|
+
};
|
|
19
|
+
export declare function useAppDefaults(options: AppDefaultsOptions): AppDefaultsResult;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref, MaybeRef } from 'vue';
|
|
2
|
+
import { FileContext } from './types';
|
|
3
|
+
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
4
|
+
import { AppsStore } from '../piniaStores';
|
|
5
|
+
interface AppDocumentTitleOptions {
|
|
6
|
+
appsStore: AppsStore;
|
|
7
|
+
applicationId: string;
|
|
8
|
+
applicationName?: MaybeRef<string>;
|
|
9
|
+
currentFileContext: Ref<FileContext>;
|
|
10
|
+
currentRoute?: Ref<RouteLocationNormalizedLoaded>;
|
|
11
|
+
}
|
|
12
|
+
export declare function useAppDocumentTitle({ appsStore, applicationId, applicationName, currentFileContext, currentRoute }: AppDocumentTitleOptions): void;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Resource, FileResource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { MaybeRef } from '../../utils';
|
|
3
|
+
import { ClientService } from '../../services';
|
|
4
|
+
import { FileContext } from './types';
|
|
5
|
+
import { ListFilesOptions, WebDAV } from '@opencloud-eu/web-client/webdav';
|
|
6
|
+
interface AppFileHandlingOptions {
|
|
7
|
+
clientService: ClientService;
|
|
8
|
+
}
|
|
9
|
+
export type FileContentOptions = {
|
|
10
|
+
responseType?: 'arraybuffer' | 'blob' | 'text';
|
|
11
|
+
signal?: AbortSignal;
|
|
12
|
+
} & Record<string, any>;
|
|
13
|
+
export type UrlForResourceOptions = Omit<Parameters<WebDAV['getFileUrl']>[2], 'isUrlSigningEnabled'>;
|
|
14
|
+
export interface AppFileHandlingResult {
|
|
15
|
+
getUrlForResource(space: SpaceResource, resource: Resource, options?: UrlForResourceOptions): Promise<string>;
|
|
16
|
+
revokeUrl(url: string): void;
|
|
17
|
+
getFileInfo(fileContext: MaybeRef<FileContext>, options?: ListFilesOptions): Promise<Resource>;
|
|
18
|
+
getFileContents(fileContext: MaybeRef<FileContext>, options?: FileContentOptions): Promise<any>;
|
|
19
|
+
putFileContents(fileContext: MaybeRef<FileContext>, putFileOptions: {
|
|
20
|
+
content?: string;
|
|
21
|
+
} & Record<string, any>): Promise<FileResource>;
|
|
22
|
+
}
|
|
23
|
+
export declare function useAppFileHandling({ clientService }: AppFileHandlingOptions): AppFileHandlingResult;
|
|
24
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Ref, MaybeRef } from 'vue';
|
|
2
|
+
import { ClientService } from '../../services';
|
|
3
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
4
|
+
import { FileContext } from './types';
|
|
5
|
+
import { RouteLocationNormalizedLoaded } from 'vue-router';
|
|
6
|
+
interface AppFolderHandlingOptions {
|
|
7
|
+
currentRoute: Ref<RouteLocationNormalizedLoaded>;
|
|
8
|
+
clientService?: ClientService;
|
|
9
|
+
}
|
|
10
|
+
export interface AppFolderHandlingResult {
|
|
11
|
+
isFolderLoading: Ref<boolean>;
|
|
12
|
+
activeFiles: Ref<Array<Resource>>;
|
|
13
|
+
loadFolderForFileContext(context: MaybeRef<FileContext>): Promise<any>;
|
|
14
|
+
}
|
|
15
|
+
export declare function useAppFolderHandling({ currentRoute, clientService }: AppFolderHandlingOptions): AppFolderHandlingResult;
|
|
16
|
+
export {};
|