@opencloud-eu/web-pkg 6.0.0 → 6.2.0

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