@opencloud-eu/web-pkg 5.0.0 → 6.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-CJgYG8Kl.js → TextEditor-D-HQDUkm.js} +3 -5
- package/dist/assets/worker-CVwKToFD.js +21 -0
- package/dist/assets/worker-DJbU-qfq.js +21 -0
- package/dist/assets/worker-DyU7W9CZ.js +21 -0
- package/dist/index-OU30YA6H.js +25032 -0
- package/dist/src/apps/types.d.ts +0 -3
- package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -9
- package/dist/src/components/AppBar/index.d.ts +0 -1
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -1
- package/dist/src/components/AppTopBar.vue.d.ts +1 -1
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +409 -11
- package/dist/src/components/CreateShortcutModal.vue.d.ts +222 -0
- package/dist/src/components/CustomComponentTarget.vue.d.ts +4 -14
- package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -1
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +0 -1
- package/dist/src/components/Filters/DateFilter.vue.d.ts +500 -0
- package/dist/src/components/Navigation/MobileNav.vue.d.ts +2 -0
- package/dist/src/components/Navigation/index.d.ts +1 -0
- package/dist/src/components/NoContentMessage.vue.d.ts +3 -2
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +4 -13
- package/dist/src/components/SideBar/SideBar.vue.d.ts +3 -9
- package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +38 -0
- package/dist/src/components/SideBar/index.d.ts +1 -0
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/composables/actions/files/index.d.ts +1 -0
- package/dist/src/composables/actions/files/useFileActionFallbackToDownload.d.ts +4 -0
- package/dist/src/composables/actions/spaces/index.d.ts +1 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsCreate.d.ts +7 -0
- package/dist/src/composables/folderLink/useFolderLink.d.ts +1 -1
- package/dist/src/composables/index.d.ts +1 -2
- package/dist/src/composables/navItems/index.d.ts +1 -0
- package/dist/src/composables/navItems/useNavItems.d.ts +13 -0
- package/dist/src/composables/piniaStores/auth.d.ts +8 -2
- package/dist/src/composables/piniaStores/avatars.d.ts +1 -1
- package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +14 -1
- package/dist/src/composables/piniaStores/index.d.ts +4 -3
- package/dist/src/composables/piniaStores/sideBar.d.ts +32 -0
- package/dist/src/composables/piniaStores/user.d.ts +1 -1
- package/dist/src/composables/resources/index.d.ts +1 -0
- package/dist/src/composables/resources/useResourceIndicators.d.ts +19 -0
- package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +4 -3
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +2 -2
- package/dist/src/composables/spaces/useCreateSpace.d.ts +1 -0
- package/dist/src/constants.d.ts +0 -6
- package/dist/src/extensionPoints.d.ts +3 -0
- package/dist/src/helpers/filesize.d.ts +0 -7
- package/dist/src/helpers/index.d.ts +1 -2
- package/dist/src/helpers/versions.d.ts +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/web-pkg.js +301 -300
- package/dist/web-pkg.umd.cjs +14 -66
- package/package.json +5 -7
- package/src/index.ts +1 -0
- package/dist/assets/worker-Bc2UmjVr.js +0 -40
- package/dist/assets/worker-BeDmEhWu.js +0 -40
- package/dist/assets/worker-DWoO7i6z.js +0 -40
- package/dist/index-D-EuklHo.js +0 -33782
- package/dist/src/components/AppBar/CreateSpace.vue.d.ts +0 -18
- package/dist/src/components/PortalTarget.vue.d.ts +0 -41
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +0 -165
- package/dist/src/components/TextEditor/index.d.ts +0 -161
- package/dist/src/composables/portalTarget/eventTopics.d.ts +0 -3
- package/dist/src/composables/portalTarget/index.d.ts +0 -2
- package/dist/src/composables/portalTarget/usePortalTarget.d.ts +0 -4
- package/dist/src/composables/sideBar/eventTopics.d.ts +0 -7
- package/dist/src/composables/sideBar/index.d.ts +0 -2
- package/dist/src/composables/sideBar/useSideBar.d.ts +0 -12
- package/dist/src/helpers/contextMenuDropdown.d.ts +0 -7
- package/dist/src/helpers/statusIndicators.d.ts +0 -23
- package/dist/src/services/passwordPolicy/rules.d.ts +0 -69
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SideBarPanel, SideBarPanelContext } from './types';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
loading: boolean;
|
|
4
|
+
availablePanels: SideBarPanel<unknown, unknown, unknown>[];
|
|
5
|
+
panelContext: SideBarPanelContext<unknown, unknown, unknown>;
|
|
6
|
+
activePanel?: string;
|
|
7
|
+
};
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: Readonly<{
|
|
11
|
+
body: () => unknown;
|
|
12
|
+
rootHeader: () => unknown;
|
|
13
|
+
subHeader: () => unknown;
|
|
14
|
+
}> & {
|
|
15
|
+
body: () => unknown;
|
|
16
|
+
rootHeader: () => unknown;
|
|
17
|
+
subHeader: () => unknown;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
+
close: () => any;
|
|
25
|
+
selectPanel: (panel: string) => any;
|
|
26
|
+
closePanel: () => any;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
28
|
+
onClose?: () => any;
|
|
29
|
+
onSelectPanel?: (panel: string) => any;
|
|
30
|
+
onClosePanel?: () => any;
|
|
31
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -4,4 +4,5 @@ export * from './types';
|
|
|
4
4
|
export { default as CompareSaveDialog } from './CompareSaveDialog.vue';
|
|
5
5
|
export { default as SideBar } from './SideBar.vue';
|
|
6
6
|
export { default as FileSideBar } from './FileSideBar.vue';
|
|
7
|
+
export { default as SideBarPanels } from './SideBarPanels.vue';
|
|
7
8
|
export { default as WebDavDetails } from './WebDavDetails.vue';
|
|
@@ -4,6 +4,7 @@ export * from './ContextActions';
|
|
|
4
4
|
export * from './FilesList';
|
|
5
5
|
export * from './Filters';
|
|
6
6
|
export * from './Modals';
|
|
7
|
+
export * from './Navigation';
|
|
7
8
|
export * from './SideBar';
|
|
8
9
|
export * from './Search';
|
|
9
10
|
export * from './Spaces';
|
|
@@ -23,7 +24,6 @@ export { default as QuotaSelect } from './QuotaSelect.vue';
|
|
|
23
24
|
export { default as SpaceQuota } from './SpaceQuota.vue';
|
|
24
25
|
export { default as SearchBarFilter } from './SearchBarFilter.vue';
|
|
25
26
|
export { default as ViewOptions } from './ViewOptions.vue';
|
|
26
|
-
export { default as PortalTarget } from './PortalTarget.vue';
|
|
27
27
|
export { default as CreateShortcutModal } from './CreateShortcutModal.vue';
|
|
28
28
|
export { default as CreateLinkModal } from './CreateLinkModal.vue';
|
|
29
29
|
export { default as VersionCheck } from './VersionCheck.vue';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SpaceAction } from '../types';
|
|
2
|
+
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
|
+
export declare const useSpaceActionsCreate: ({ onSpaceCreated }?: {
|
|
4
|
+
onSpaceCreated?: (space: SpaceResource) => void;
|
|
5
|
+
}) => {
|
|
6
|
+
actions: import('vue').ComputedRef<SpaceAction[]>;
|
|
7
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Resource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { ResourceRouteResolverOptions } from '../filesList';
|
|
3
3
|
export declare const useFolderLink: (options?: ResourceRouteResolverOptions) => {
|
|
4
|
-
getPathPrefix: (resource: Resource) =>
|
|
4
|
+
getPathPrefix: (resource: Resource) => string;
|
|
5
5
|
getFolderLink: (resource: Resource) => import('vue-router').RouteLocationNamedRaw;
|
|
6
6
|
getParentFolderLink: (resource: Resource) => import('vue-router').RouteLocationNamedRaw;
|
|
7
7
|
getParentFolderName: (resource: Resource) => string;
|
|
@@ -18,10 +18,10 @@ export * from './keyboardActions';
|
|
|
18
18
|
export * from './links';
|
|
19
19
|
export * from './loadingService';
|
|
20
20
|
export * from './localStorage';
|
|
21
|
+
export * from './navItems';
|
|
21
22
|
export * from './pagination';
|
|
22
23
|
export * from './passwordPolicyService';
|
|
23
24
|
export * from './piniaStores';
|
|
24
|
-
export * from './portalTarget';
|
|
25
25
|
export * from './previewService';
|
|
26
26
|
export * from './requestHeaders';
|
|
27
27
|
export * from './resources';
|
|
@@ -31,7 +31,6 @@ export * from './search';
|
|
|
31
31
|
export * from './selection';
|
|
32
32
|
export * from './service';
|
|
33
33
|
export * from './shares';
|
|
34
|
-
export * from './sideBar';
|
|
35
34
|
export * from './sort';
|
|
36
35
|
export * from './spaces';
|
|
37
36
|
export * from './upload';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useNavItems';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ExtensionRegistry } from '../piniaStores';
|
|
2
|
+
import { AppNavigationItem } from '../../apps';
|
|
3
|
+
export interface NavItem extends Omit<AppNavigationItem, 'name'> {
|
|
4
|
+
name: string;
|
|
5
|
+
active: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const getExtensionNavItems: ({ extensionRegistry, appId }: {
|
|
8
|
+
extensionRegistry: ExtensionRegistry;
|
|
9
|
+
appId: string;
|
|
10
|
+
}) => AppNavigationItem[];
|
|
11
|
+
export declare const useNavItems: () => {
|
|
12
|
+
navItems: import('vue').ComputedRef<NavItem[]>;
|
|
13
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PublicLinkType } from '@opencloud-eu/web-client';
|
|
2
2
|
export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<{
|
|
3
3
|
accessToken: import('vue').Ref<string, string>;
|
|
4
|
+
sessionId: import('vue').Ref<string, string>;
|
|
4
5
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
5
6
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -8,6 +9,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
8
9
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
9
10
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
10
11
|
setAccessToken: (value: string) => void;
|
|
12
|
+
setSessionId: (value: string) => void;
|
|
11
13
|
setIdpContextReady: (value: boolean) => void;
|
|
12
14
|
setUserContextReady: (value: boolean) => void;
|
|
13
15
|
setPublicLinkContext: (context: {
|
|
@@ -18,8 +20,9 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
18
20
|
}) => void;
|
|
19
21
|
clearUserContext: () => void;
|
|
20
22
|
clearPublicLinkContext: () => void;
|
|
21
|
-
}, "publicLinkPassword" | "publicLinkType" | "accessToken" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady">, Pick<{
|
|
23
|
+
}, "publicLinkPassword" | "publicLinkType" | "accessToken" | "sessionId" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady">, Pick<{
|
|
22
24
|
accessToken: import('vue').Ref<string, string>;
|
|
25
|
+
sessionId: import('vue').Ref<string, string>;
|
|
23
26
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
24
27
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
25
28
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -27,6 +30,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
27
30
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
28
31
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
29
32
|
setAccessToken: (value: string) => void;
|
|
33
|
+
setSessionId: (value: string) => void;
|
|
30
34
|
setIdpContextReady: (value: boolean) => void;
|
|
31
35
|
setUserContextReady: (value: boolean) => void;
|
|
32
36
|
setPublicLinkContext: (context: {
|
|
@@ -39,6 +43,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
39
43
|
clearPublicLinkContext: () => void;
|
|
40
44
|
}, never>, Pick<{
|
|
41
45
|
accessToken: import('vue').Ref<string, string>;
|
|
46
|
+
sessionId: import('vue').Ref<string, string>;
|
|
42
47
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
43
48
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
44
49
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -46,6 +51,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
46
51
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
47
52
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
48
53
|
setAccessToken: (value: string) => void;
|
|
54
|
+
setSessionId: (value: string) => void;
|
|
49
55
|
setIdpContextReady: (value: boolean) => void;
|
|
50
56
|
setUserContextReady: (value: boolean) => void;
|
|
51
57
|
setPublicLinkContext: (context: {
|
|
@@ -56,5 +62,5 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
56
62
|
}) => void;
|
|
57
63
|
clearUserContext: () => void;
|
|
58
64
|
clearPublicLinkContext: () => void;
|
|
59
|
-
}, "setAccessToken" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext">>;
|
|
65
|
+
}, "setAccessToken" | "setSessionId" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext">>;
|
|
60
66
|
export type AuthStore = ReturnType<typeof useAuthStore>;
|
|
@@ -23,5 +23,5 @@ export declare const useAvatarsStore: import('pinia').StoreDefinition<"avatars",
|
|
|
23
23
|
reset: () => void;
|
|
24
24
|
avatarsQueue: import('vue').Raw<PQueue<import('node_modules/p-queue/dist/priority-queue').default, import('p-queue').QueueAddOptions>>;
|
|
25
25
|
pendingAvatarsRequests: Map<string, Promise<any>>;
|
|
26
|
-
}, "
|
|
26
|
+
}, "getAvatar" | "addAvatar" | "removeAvatar" | "reset">>;
|
|
27
27
|
export type AvatarsStore = ReturnType<typeof useAvatarsStore>;
|
|
@@ -5,7 +5,7 @@ import { Item } from '@opencloud-eu/web-client';
|
|
|
5
5
|
import { FolderView } from '../../../ui';
|
|
6
6
|
import { Component, Slot } from 'vue';
|
|
7
7
|
import { StringUnionOrAnyString } from '../../../utils';
|
|
8
|
-
export type ExtensionType = StringUnionOrAnyString<'action' | 'appMenuItem' | 'customComponent' | 'folderView' | 'search' | 'sidebarNav' | 'sidebarPanel' | 'accountExtension'>;
|
|
8
|
+
export type ExtensionType = StringUnionOrAnyString<'action' | 'appMenuItem' | 'customComponent' | 'folderView' | 'search' | 'sidebarNav' | 'sidebarPanel' | 'accountExtension' | 'floatingActionButton'>;
|
|
9
9
|
export type Extension = {
|
|
10
10
|
id: string;
|
|
11
11
|
type: ExtensionType;
|
|
@@ -37,6 +37,7 @@ export interface FolderViewExtension extends Extension {
|
|
|
37
37
|
export interface CustomComponentExtension extends Extension {
|
|
38
38
|
type: 'customComponent';
|
|
39
39
|
content: Slot | Component;
|
|
40
|
+
componentProps?: () => Record<string, unknown>;
|
|
40
41
|
}
|
|
41
42
|
export interface AccountExtension extends Extension {
|
|
42
43
|
type: 'accountExtension';
|
|
@@ -44,6 +45,18 @@ export interface AccountExtension extends Extension {
|
|
|
44
45
|
label: () => string;
|
|
45
46
|
icon: string;
|
|
46
47
|
}
|
|
48
|
+
export type FloatingActionButtonExtensionMode = 'drop' | 'handler';
|
|
49
|
+
export interface FloatingActionButtonExtension extends Extension {
|
|
50
|
+
type: 'floatingActionButton';
|
|
51
|
+
label: () => string;
|
|
52
|
+
isVisible?: () => boolean;
|
|
53
|
+
isDisabled?: () => boolean;
|
|
54
|
+
color?: string;
|
|
55
|
+
icon?: string;
|
|
56
|
+
mode: () => FloatingActionButtonExtensionMode;
|
|
57
|
+
handler?: () => Promise<void> | void;
|
|
58
|
+
dropComponent?: Component;
|
|
59
|
+
}
|
|
47
60
|
export interface AppMenuItemExtension extends Extension {
|
|
48
61
|
type: 'appMenuItem';
|
|
49
62
|
label: () => string;
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
export * from './apps';
|
|
2
2
|
export * from './auth';
|
|
3
|
+
export * from './avatars';
|
|
3
4
|
export * from './capabilities';
|
|
4
5
|
export * from './clipboard';
|
|
5
6
|
export * from './config';
|
|
6
7
|
export * from './extensionRegistry';
|
|
8
|
+
export * from './groupwareConfig';
|
|
7
9
|
export * from './messages';
|
|
8
10
|
export * from './modals';
|
|
9
11
|
export * from './resources';
|
|
10
12
|
export * from './shares';
|
|
13
|
+
export * from './sideBar';
|
|
11
14
|
export * from './spaces';
|
|
12
15
|
export * from './theme';
|
|
16
|
+
export * from './updates';
|
|
13
17
|
export * from './user';
|
|
14
18
|
export * from './webWorkers';
|
|
15
|
-
export * from './avatars';
|
|
16
|
-
export * from './updates';
|
|
17
|
-
export * from './groupwareConfig';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick<{
|
|
2
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
3
|
+
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
4
|
+
focusSidebar: () => Promise<void>;
|
|
5
|
+
onInitialLoad: () => void;
|
|
6
|
+
toggleSideBar: () => void;
|
|
7
|
+
closeSideBar: () => void;
|
|
8
|
+
openSideBar: () => void;
|
|
9
|
+
openSideBarPanel: (panelName: string) => void;
|
|
10
|
+
setActiveSideBarPanel: (panelName: string) => void;
|
|
11
|
+
}, "sideBarActivePanel">, Pick<{
|
|
12
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
13
|
+
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
14
|
+
focusSidebar: () => Promise<void>;
|
|
15
|
+
onInitialLoad: () => void;
|
|
16
|
+
toggleSideBar: () => void;
|
|
17
|
+
closeSideBar: () => void;
|
|
18
|
+
openSideBar: () => void;
|
|
19
|
+
openSideBarPanel: (panelName: string) => void;
|
|
20
|
+
setActiveSideBarPanel: (panelName: string) => void;
|
|
21
|
+
}, "isSideBarOpen">, Pick<{
|
|
22
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
23
|
+
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
24
|
+
focusSidebar: () => Promise<void>;
|
|
25
|
+
onInitialLoad: () => void;
|
|
26
|
+
toggleSideBar: () => void;
|
|
27
|
+
closeSideBar: () => void;
|
|
28
|
+
openSideBar: () => void;
|
|
29
|
+
openSideBarPanel: (panelName: string) => void;
|
|
30
|
+
setActiveSideBarPanel: (panelName: string) => void;
|
|
31
|
+
}, "focusSidebar" | "onInitialLoad" | "toggleSideBar" | "closeSideBar" | "openSideBar" | "openSideBarPanel" | "setActiveSideBarPanel">>;
|
|
32
|
+
export type SideBarStore = ReturnType<typeof useSideBar>;
|
|
@@ -11,5 +11,5 @@ export declare const useUserStore: import('pinia').StoreDefinition<"user", Pick<
|
|
|
11
11
|
user: import('vue').Ref<User, User>;
|
|
12
12
|
setUser: (data: User) => void;
|
|
13
13
|
reset: () => void;
|
|
14
|
-
}, "
|
|
14
|
+
}, "reset" | "setUser">>;
|
|
15
15
|
export type UserStore = ReturnType<typeof useUserStore>;
|
|
@@ -3,6 +3,7 @@ export * from './useCanListVersions';
|
|
|
3
3
|
export * from './useGetResourceContext';
|
|
4
4
|
export * from './useLoadPreview';
|
|
5
5
|
export * from './useResourceContents';
|
|
6
|
+
export * from './useResourceIndicators';
|
|
6
7
|
export * from './useResourceViewContextMenu';
|
|
7
8
|
export * from './useResourceViewDrag';
|
|
8
9
|
export * from './useResourceViewHelpers';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { IconFillType } from '../../helpers';
|
|
3
|
+
export type ResourceIndicatorCategory = 'system' | 'sharing' | 'space';
|
|
4
|
+
export interface ResourceIndicator {
|
|
5
|
+
id: string;
|
|
6
|
+
accessibleDescription: string;
|
|
7
|
+
label: string;
|
|
8
|
+
icon: string;
|
|
9
|
+
fillType: IconFillType;
|
|
10
|
+
type: string;
|
|
11
|
+
category: ResourceIndicatorCategory;
|
|
12
|
+
handler?: (resource: Resource, event?: MouseEvent) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare const useResourceIndicators: () => {
|
|
15
|
+
getIndicators: ({ space, resource }: {
|
|
16
|
+
space: SpaceResource;
|
|
17
|
+
resource: Resource;
|
|
18
|
+
}) => ResourceIndicator[];
|
|
19
|
+
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
1
2
|
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
-
import {
|
|
3
|
+
import { OcDrop } from '@opencloud-eu/design-system/components';
|
|
3
4
|
export declare const useResourceViewContextMenu: ({ isResourceSelected, isResourceDisabled, emit }: {
|
|
4
5
|
isResourceSelected: (resource: Resource) => boolean;
|
|
5
6
|
isResourceDisabled: (resource: Resource) => boolean;
|
|
6
7
|
emit: ReturnType<typeof defineEmits>;
|
|
7
8
|
}) => {
|
|
8
9
|
shouldShowContextDrop: (item: Resource) => boolean;
|
|
9
|
-
showContextMenuOnBtnClick: (
|
|
10
|
-
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) =>
|
|
10
|
+
showContextMenuOnBtnClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: ComponentPublicInstance<typeof OcDrop>) => void;
|
|
11
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: ComponentPublicInstance<typeof OcDrop>) => void;
|
|
11
12
|
};
|
|
@@ -14,8 +14,8 @@ export declare const useResourceViewHelpers: ({ space, resources, selectedIds, e
|
|
|
14
14
|
selectAllCheckboxLabel: import('vue').ComputedRef<string>;
|
|
15
15
|
toggleSelectionAll: () => void;
|
|
16
16
|
shouldShowContextDrop: (item: Resource) => boolean;
|
|
17
|
-
showContextMenuOnBtnClick: (
|
|
18
|
-
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) =>
|
|
17
|
+
showContextMenuOnBtnClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: import('vue').ComponentPublicInstance<typeof import('@opencloud-eu/design-system/components').OcDrop>) => void;
|
|
18
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: import('vue').ComponentPublicInstance<typeof import('@opencloud-eu/design-system/components').OcDrop>) => void;
|
|
19
19
|
ghostElement: Readonly<import('vue').ShallowRef<import('vue').ComponentPublicInstance<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
20
20
|
previewItems: {
|
|
21
21
|
type: import('vue').PropType<Resource[]>;
|
|
@@ -2,4 +2,5 @@ import { SpaceResource } from '@opencloud-eu/web-client';
|
|
|
2
2
|
export declare const useCreateSpace: () => {
|
|
3
3
|
createSpace: (name: string) => Promise<SpaceResource>;
|
|
4
4
|
createDefaultMetaFolder: (space: SpaceResource) => Promise<import('@opencloud-eu/web-client').FolderResource>;
|
|
5
|
+
addNewSpace: (name: string) => Promise<SpaceResource>;
|
|
5
6
|
};
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/** @deprecated use from design-system instead */
|
|
2
|
-
export declare const EVENT_TROW_MOUNTED = "rowMounted";
|
|
3
|
-
/** @deprecated use from design-system instead */
|
|
4
|
-
export declare const EVENT_FILE_DROPPED = "fileDropped";
|
|
5
|
-
/** @deprecated use from design-system instead */
|
|
6
|
-
export declare const EVENT_TROW_CONTEXTMENU = "contextmenuClicked";
|
|
7
1
|
export declare abstract class ImageDimension {
|
|
8
2
|
static readonly Thumbnail: [number, number];
|
|
9
3
|
static readonly Tile: [number, number];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CustomComponentExtension, ExtensionPoint } from './composables';
|
|
2
|
+
export declare const fileSideBarSpaceDetailsTableExtensionPoint: ExtensionPoint<CustomComponentExtension>;
|
|
3
|
+
export declare const extensionPoints: () => import('vue').ComputedRef<ExtensionPoint<any>[]>;
|
|
@@ -6,16 +6,15 @@ export * from './spaces';
|
|
|
6
6
|
export * from './ui';
|
|
7
7
|
export * from './breadcrumbs';
|
|
8
8
|
export * from './clipboardActions';
|
|
9
|
-
export * from './contextMenuDropdown';
|
|
10
9
|
export * from './datetime';
|
|
11
10
|
export * from './download';
|
|
12
11
|
export * from './filesize';
|
|
13
12
|
export * from './fuse';
|
|
14
13
|
export * from './locale';
|
|
15
14
|
export * from './path';
|
|
16
|
-
export * from './statusIndicators';
|
|
17
15
|
export * from './store';
|
|
18
16
|
export * from './binary';
|
|
19
17
|
export * from './platform';
|
|
20
18
|
export * from './promise';
|
|
21
19
|
export * from './textByteSize';
|
|
20
|
+
export * from './versions';
|
package/dist/src/index.d.ts
CHANGED