@opencloud-eu/web-pkg 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{TextEditor-CJgYG8Kl.js → TextEditor-CXSedGM4.js} +1 -1
- package/dist/assets/worker-22sDKzz_.js +21 -0
- package/dist/assets/worker-BSCY2vwA.js +21 -0
- package/dist/assets/worker-DH8D29Kr.js +21 -0
- package/dist/index-CEJcEmbf.js +25419 -0
- package/dist/src/components/AppBar/AppBar.vue.d.ts +1 -9
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -1
- 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/PortalTarget.vue.d.ts +1 -40
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +2 -12
- 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/composables/actions/files/index.d.ts +1 -0
- package/dist/src/composables/actions/files/useFileActionFallbackToDownload.d.ts +4 -0
- package/dist/src/composables/folderLink/useFolderLink.d.ts +1 -1
- package/dist/src/composables/index.d.ts +0 -1
- package/dist/src/composables/piniaStores/avatars.d.ts +1 -1
- package/dist/src/composables/piniaStores/index.d.ts +4 -3
- package/dist/src/composables/piniaStores/sideBar.d.ts +46 -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/helpers/statusIndicators.d.ts +3 -14
- package/dist/web-pkg.js +254 -251
- package/dist/web-pkg.umd.cjs +19 -51
- package/package.json +4 -5
- 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/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
|
@@ -46,10 +46,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
|
-
isSideBarOpen: {
|
|
50
|
-
type: BooleanConstructor;
|
|
51
|
-
default: boolean;
|
|
52
|
-
};
|
|
53
49
|
batchActionsLoading: {
|
|
54
50
|
type: BooleanConstructor;
|
|
55
51
|
default: boolean;
|
|
@@ -71,6 +67,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
71
67
|
pageTitle: import('vue').ComputedRef<string>;
|
|
72
68
|
selectedResources: import('vue').ComputedRef<Resource[]>;
|
|
73
69
|
isSticky: Ref<boolean, boolean>;
|
|
70
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
74
71
|
}, {
|
|
75
72
|
resizeObserver: ResizeObserver;
|
|
76
73
|
limitedScreenSpace: boolean;
|
|
@@ -122,10 +119,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
122
119
|
type: BooleanConstructor;
|
|
123
120
|
default: boolean;
|
|
124
121
|
};
|
|
125
|
-
isSideBarOpen: {
|
|
126
|
-
type: BooleanConstructor;
|
|
127
|
-
default: boolean;
|
|
128
|
-
};
|
|
129
122
|
batchActionsLoading: {
|
|
130
123
|
type: BooleanConstructor;
|
|
131
124
|
default: boolean;
|
|
@@ -142,7 +135,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
142
135
|
hasPagination: boolean;
|
|
143
136
|
viewModeDefault: string;
|
|
144
137
|
viewModes: FolderView[];
|
|
145
|
-
isSideBarOpen: boolean;
|
|
146
138
|
breadcrumbs: BreadcrumbItem[];
|
|
147
139
|
breadcrumbsContextActionsItems: Resource[];
|
|
148
140
|
hasBulkActions: boolean;
|
|
@@ -33,7 +33,7 @@ declare function __VLS_template(): {
|
|
|
33
33
|
revokeUrl: (url: string) => void;
|
|
34
34
|
getUrlForResource: (space: SpaceResource, resource: Resource, options?: UrlForResourceOptions) => Promise<string>;
|
|
35
35
|
class: {
|
|
36
|
-
'w-[calc(100%-440px)]
|
|
36
|
+
'w-[calc(100%-440px)]': boolean;
|
|
37
37
|
};
|
|
38
38
|
}): any;
|
|
39
39
|
};
|
|
@@ -12,7 +12,6 @@ type __VLS_Props = {
|
|
|
12
12
|
areResourcesClickable?: boolean;
|
|
13
13
|
headerPosition?: number;
|
|
14
14
|
isSelectable?: boolean;
|
|
15
|
-
isSideBarOpen?: boolean;
|
|
16
15
|
dragDrop?: boolean;
|
|
17
16
|
viewMode?: typeof FolderViewModeConstants.name.condensedTable | typeof FolderViewModeConstants.name.table;
|
|
18
17
|
hover?: boolean;
|
|
@@ -1,41 +1,2 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
-
properties: import('vue').ComputedRef<any>;
|
|
3
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {} | {
|
|
4
|
-
[x: string]: any;
|
|
5
|
-
}, {}, {
|
|
6
|
-
PortalTargetVue: import('vue').DefineComponent<{
|
|
7
|
-
multiple: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
name: {
|
|
12
|
-
type: StringConstructor;
|
|
13
|
-
required: true;
|
|
14
|
-
};
|
|
15
|
-
slotProps: {
|
|
16
|
-
type: ObjectConstructor;
|
|
17
|
-
default: () => {};
|
|
18
|
-
};
|
|
19
|
-
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
20
|
-
[key: string]: any;
|
|
21
|
-
}>[] | undefined, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "change"[], "change", import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, Readonly<import('vue').ExtractPropTypes<{
|
|
22
|
-
multiple: {
|
|
23
|
-
type: BooleanConstructor;
|
|
24
|
-
default: boolean;
|
|
25
|
-
};
|
|
26
|
-
name: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
required: true;
|
|
29
|
-
};
|
|
30
|
-
slotProps: {
|
|
31
|
-
type: ObjectConstructor;
|
|
32
|
-
default: () => {};
|
|
33
|
-
};
|
|
34
|
-
}>> & {
|
|
35
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
slotProps: Record<string, any>;
|
|
38
|
-
multiple: boolean;
|
|
39
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
40
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
41
2
|
export default _default;
|
|
@@ -1,20 +1,16 @@
|
|
|
1
1
|
import { SideBarPanelContext } from '../SideBar/types';
|
|
2
2
|
import { SpaceResource } from '@opencloud-eu/web-client';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
activePanel?: string;
|
|
6
4
|
space?: SpaceResource;
|
|
7
5
|
};
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions,
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
9
7
|
sidebar: {
|
|
10
8
|
$: import('vue').ComponentInternalInstance;
|
|
11
9
|
$data: {};
|
|
12
10
|
$props: {
|
|
13
|
-
readonly isOpen: boolean;
|
|
14
11
|
readonly loading: boolean;
|
|
15
12
|
readonly availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
|
|
16
13
|
readonly panelContext: SideBarPanelContext<unknown, unknown, unknown>;
|
|
17
|
-
readonly activePanel?: string;
|
|
18
14
|
readonly onClose?: () => any;
|
|
19
15
|
readonly onSelectPanel?: (panel: string) => any;
|
|
20
16
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
@@ -23,8 +19,6 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
23
19
|
};
|
|
24
20
|
$refs: {
|
|
25
21
|
[x: string]: unknown;
|
|
26
|
-
} & {
|
|
27
|
-
appSideBar: HTMLDivElement;
|
|
28
22
|
};
|
|
29
23
|
$slots: Readonly<{
|
|
30
24
|
[name: string]: import('vue').Slot<any>;
|
|
@@ -33,13 +27,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
33
27
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
34
28
|
$host: Element | null;
|
|
35
29
|
$emit: ((event: "close") => void) & ((event: "selectPanel", panel: string) => void);
|
|
36
|
-
$el:
|
|
30
|
+
$el: any;
|
|
37
31
|
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
38
|
-
isOpen: boolean;
|
|
39
32
|
loading: boolean;
|
|
40
33
|
availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
|
|
41
34
|
panelContext: SideBarPanelContext<unknown, unknown, unknown>;
|
|
42
|
-
activePanel?: string;
|
|
43
35
|
}> & Readonly<{
|
|
44
36
|
onClose?: () => any;
|
|
45
37
|
onSelectPanel?: (panel: string) => any;
|
|
@@ -67,11 +59,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
67
59
|
$nextTick: typeof import('vue').nextTick;
|
|
68
60
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
69
61
|
} & Readonly<{}> & Omit<Readonly<{
|
|
70
|
-
isOpen: boolean;
|
|
71
62
|
loading: boolean;
|
|
72
63
|
availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
|
|
73
64
|
panelContext: SideBarPanelContext<unknown, unknown, unknown>;
|
|
74
|
-
activePanel?: string;
|
|
75
65
|
}> & Readonly<{
|
|
76
66
|
onClose?: () => any;
|
|
77
67
|
onSelectPanel?: (panel: string) => any;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { SideBarPanel, SideBarPanelContext } from './types';
|
|
2
2
|
type __VLS_Props = {
|
|
3
|
-
isOpen: boolean;
|
|
4
3
|
loading: boolean;
|
|
5
4
|
availablePanels: SideBarPanel<unknown, unknown, unknown>[];
|
|
6
5
|
panelContext: SideBarPanelContext<unknown, unknown, unknown>;
|
|
7
|
-
activePanel?: string;
|
|
8
6
|
};
|
|
9
7
|
declare function __VLS_template(): {
|
|
10
8
|
attrs: Partial<{}>;
|
|
@@ -17,10 +15,8 @@ declare function __VLS_template(): {
|
|
|
17
15
|
rootHeader: () => unknown;
|
|
18
16
|
subHeader: () => unknown;
|
|
19
17
|
};
|
|
20
|
-
refs: {
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
rootEl: HTMLDivElement;
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
24
20
|
};
|
|
25
21
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
26
22
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -29,9 +25,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
29
25
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
30
26
|
onClose?: () => any;
|
|
31
27
|
onSelectPanel?: (panel: string) => any;
|
|
32
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
33
|
-
appSideBar: HTMLDivElement;
|
|
34
|
-
}, HTMLDivElement>;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
35
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
36
30
|
export default _default;
|
|
37
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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';
|
|
@@ -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;
|
|
@@ -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>;
|
|
@@ -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,46 @@
|
|
|
1
|
+
/** @deprecated use exposed methods from useSideBar instead */
|
|
2
|
+
export declare enum SideBarEventTopics {
|
|
3
|
+
open = "sidebar.open",
|
|
4
|
+
close = "sidebar.close",
|
|
5
|
+
toggle = "sidebar.toggle",
|
|
6
|
+
openWithPanel = "sidebar.openWithPanel",
|
|
7
|
+
setActivePanel = "sidebar.setActivePanel"
|
|
8
|
+
}
|
|
9
|
+
export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick<{
|
|
10
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
11
|
+
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
12
|
+
focusSidebar: () => Promise<void>;
|
|
13
|
+
onInitialLoad: () => void;
|
|
14
|
+
toggleSideBar: () => void;
|
|
15
|
+
closeSideBar: () => void;
|
|
16
|
+
openSideBar: () => void;
|
|
17
|
+
openSideBarPanel: (panelName: string) => void;
|
|
18
|
+
setActiveSideBarPanel: (panelName: string) => void;
|
|
19
|
+
/** @deprecated */
|
|
20
|
+
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
21
|
+
}, "sideBarActivePanel">, 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
|
+
/** @deprecated */
|
|
32
|
+
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
33
|
+
}, "isSideBarOpen">, Pick<{
|
|
34
|
+
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
35
|
+
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
36
|
+
focusSidebar: () => Promise<void>;
|
|
37
|
+
onInitialLoad: () => void;
|
|
38
|
+
toggleSideBar: () => void;
|
|
39
|
+
closeSideBar: () => void;
|
|
40
|
+
openSideBar: () => void;
|
|
41
|
+
openSideBarPanel: (panelName: string) => void;
|
|
42
|
+
setActiveSideBarPanel: (panelName: string) => void;
|
|
43
|
+
/** @deprecated */
|
|
44
|
+
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
45
|
+
}, "focusSidebar" | "onInitialLoad" | "toggleSideBar" | "closeSideBar" | "openSideBar" | "openSideBarPanel" | "setActiveSideBarPanel" | "onPanelActive">>;
|
|
46
|
+
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,20 +1,9 @@
|
|
|
1
1
|
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
2
2
|
import { AncestorMetaData } from '../types';
|
|
3
3
|
import { User } from '@opencloud-eu/web-client/graph/generated';
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export interface ResourceIndicator {
|
|
8
|
-
id: string;
|
|
9
|
-
accessibleDescription: string;
|
|
10
|
-
label: string;
|
|
11
|
-
icon: string;
|
|
12
|
-
fillType: IconFillType;
|
|
13
|
-
type: string;
|
|
14
|
-
category: ResourceIndicatorCategory;
|
|
15
|
-
handler?: (resource: Resource, event?: MouseEvent) => void;
|
|
16
|
-
}
|
|
17
|
-
export declare const getIndicators: ({ space, resource, ancestorMetaData, user, interceptModifierClick }: {
|
|
4
|
+
import { useInterceptModifierClick, ResourceIndicator } from '../composables';
|
|
5
|
+
/** @deprecated use `useResourceIndicators` instead. make sure to call this with injection context. */
|
|
6
|
+
export declare const getIndicators: ({ space, resource }: {
|
|
18
7
|
space: SpaceResource;
|
|
19
8
|
resource: Resource;
|
|
20
9
|
ancestorMetaData: AncestorMetaData;
|