@opencloud-eu/web-pkg 4.3.0 → 5.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-Cn7QTWpj.js → TextEditor-CJgYG8Kl.js} +5 -5
- package/dist/assets/worker-Bc2UmjVr.js +40 -0
- package/dist/assets/worker-BeDmEhWu.js +40 -0
- package/dist/assets/worker-DWoO7i6z.js +40 -0
- package/dist/{index-BAXp6cDe.js → index-D-EuklHo.js} +17376 -17380
- package/dist/src/apps/types.d.ts +1 -0
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
- package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
- package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
- package/dist/src/components/FilesList/ResourceName.vue.d.ts +11 -139
- package/dist/src/components/FilesList/ResourceTable.vue.d.ts +16 -357
- package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +16 -66
- package/dist/src/components/ItemFilter.vue.d.ts +8 -9
- package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +1 -4
- package/dist/src/composables/actions/files/index.d.ts +12 -11
- package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
- package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
- package/dist/src/composables/actions/types.d.ts +1 -1
- package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +6 -7
- package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
- package/dist/src/composables/index.d.ts +0 -1
- package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
- package/dist/src/composables/piniaStores/apps.d.ts +6 -0
- package/dist/src/composables/piniaStores/capabilities.d.ts +1 -13
- package/dist/src/composables/piniaStores/messages.d.ts +6 -6
- package/dist/src/composables/resources/index.d.ts +2 -0
- package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
- package/dist/src/composables/resources/useResourceViewDrag.d.ts +8 -29
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +25 -34
- package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
- package/dist/src/composables/sort/useSort.d.ts +2 -4
- package/dist/src/constants.d.ts +3 -0
- package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
- package/dist/src/helpers/index.d.ts +0 -1
- package/dist/src/services/cache.d.ts +0 -5
- package/dist/src/services/client/client.d.ts +0 -4
- package/dist/src/ui/types.d.ts +0 -2
- package/dist/web-pkg.js +322 -323
- package/dist/web-pkg.umd.cjs +48 -47
- package/package.json +3 -3
- package/dist/assets/worker-B8_1fnv6.js +0 -40
- package/dist/assets/worker-CexULVXL.js +0 -40
- package/dist/assets/worker-DW5HxaGD.js +0 -40
- package/dist/src/composables/clipboard/index.d.ts +0 -1
- package/dist/src/composables/clipboard/useClipboard.d.ts +0 -6
- package/dist/src/helpers/folderLink/index.d.ts +0 -1
- package/dist/src/helpers/folderLink/types.d.ts +0 -6
|
@@ -23,7 +23,7 @@ export interface Action<T = ActionOptions> {
|
|
|
23
23
|
label(options?: T): string;
|
|
24
24
|
isVisible(options?: T): boolean;
|
|
25
25
|
handler?(options?: T): Promise<void> | void;
|
|
26
|
-
route?(options?: T): RouteLocationRaw;
|
|
26
|
+
route?(options?: T): RouteLocationRaw | undefined;
|
|
27
27
|
href?(options?: T): string;
|
|
28
28
|
isDisabled?(options?: T): boolean;
|
|
29
29
|
disabledTooltip?(options?: T): string;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { CreateTargetRouteOptions } from '../../helpers/folderLink/types';
|
|
3
2
|
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
4
3
|
import { ConfigStore } from '../piniaStores';
|
|
5
4
|
export type ResourceRouteResolverOptions = {
|
|
6
5
|
configStore?: ConfigStore;
|
|
7
|
-
targetRouteCallback?: Ref<(arg: CreateTargetRouteOptions) => unknown>;
|
|
8
6
|
space?: Ref<SpaceResource>;
|
|
9
7
|
};
|
|
10
|
-
export declare const useResourceRouteResolver: (options?: ResourceRouteResolverOptions
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
export declare const useResourceRouteResolver: (options?: ResourceRouteResolverOptions) => {
|
|
9
|
+
createFolderLink: (createTargetRouteOptions: {
|
|
10
|
+
path: string;
|
|
11
|
+
resource: Resource | SpaceResource;
|
|
12
|
+
fileId?: string;
|
|
13
|
+
}) => import('vue-router').RouteLocationNamedRaw;
|
|
15
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) => any;
|
|
5
|
-
getFolderLink: (resource: Resource) =>
|
|
6
|
-
getParentFolderLink: (resource: Resource) =>
|
|
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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Resource } from '@opencloud-eu/web-client';
|
|
2
2
|
export declare function useInterceptModifierClick(): {
|
|
3
|
-
interceptModifierClick: (event: MouseEvent | undefined, resource: Resource) => boolean;
|
|
3
|
+
interceptModifierClick: (event: MouseEvent | KeyboardEvent | undefined, resource: Resource) => boolean;
|
|
4
4
|
};
|
|
@@ -7,6 +7,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
7
7
|
fileExtensions: import('vue').Ref<{
|
|
8
8
|
app?: string;
|
|
9
9
|
extension?: string;
|
|
10
|
+
type?: "file" | "folder";
|
|
10
11
|
createFileHandler?: (arg: {
|
|
11
12
|
fileName: string;
|
|
12
13
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -25,6 +26,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
25
26
|
}[], ApplicationFileExtension[] | {
|
|
26
27
|
app?: string;
|
|
27
28
|
extension?: string;
|
|
29
|
+
type?: "file" | "folder";
|
|
28
30
|
createFileHandler?: (arg: {
|
|
29
31
|
fileName: string;
|
|
30
32
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -58,6 +60,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
58
60
|
fileExtensions: import('vue').Ref<{
|
|
59
61
|
app?: string;
|
|
60
62
|
extension?: string;
|
|
63
|
+
type?: "file" | "folder";
|
|
61
64
|
createFileHandler?: (arg: {
|
|
62
65
|
fileName: string;
|
|
63
66
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -76,6 +79,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
76
79
|
}[], ApplicationFileExtension[] | {
|
|
77
80
|
app?: string;
|
|
78
81
|
extension?: string;
|
|
82
|
+
type?: "file" | "folder";
|
|
79
83
|
createFileHandler?: (arg: {
|
|
80
84
|
fileName: string;
|
|
81
85
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -109,6 +113,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
109
113
|
fileExtensions: import('vue').Ref<{
|
|
110
114
|
app?: string;
|
|
111
115
|
extension?: string;
|
|
116
|
+
type?: "file" | "folder";
|
|
112
117
|
createFileHandler?: (arg: {
|
|
113
118
|
fileName: string;
|
|
114
119
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -127,6 +132,7 @@ export declare const useAppsStore: import('pinia').StoreDefinition<"apps", Pick<
|
|
|
127
132
|
}[], ApplicationFileExtension[] | {
|
|
128
133
|
app?: string;
|
|
129
134
|
extension?: string;
|
|
135
|
+
type?: "file" | "folder";
|
|
130
136
|
createFileHandler?: (arg: {
|
|
131
137
|
fileName: string;
|
|
132
138
|
space: import('@opencloud-eu/web-client').SpaceResource;
|
|
@@ -73,7 +73,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
73
73
|
'check-for-updates'?: boolean;
|
|
74
74
|
'support-sse'?: boolean;
|
|
75
75
|
'support-radicale'?: boolean;
|
|
76
|
-
'support-url-signing'?: boolean;
|
|
77
76
|
'webdav-root'?: string;
|
|
78
77
|
};
|
|
79
78
|
dav: {
|
|
@@ -220,7 +219,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
220
219
|
"check-for-updates"?: boolean;
|
|
221
220
|
"support-sse"?: boolean;
|
|
222
221
|
"support-radicale"?: boolean;
|
|
223
|
-
"support-url-signing"?: boolean;
|
|
224
222
|
"webdav-root"?: string;
|
|
225
223
|
};
|
|
226
224
|
dav: {
|
|
@@ -382,7 +380,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
382
380
|
'check-for-updates'?: boolean;
|
|
383
381
|
'support-sse'?: boolean;
|
|
384
382
|
'support-radicale'?: boolean;
|
|
385
|
-
'support-url-signing'?: boolean;
|
|
386
383
|
'webdav-root'?: string;
|
|
387
384
|
};
|
|
388
385
|
dav: {
|
|
@@ -513,7 +510,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
513
510
|
version?: string;
|
|
514
511
|
versionstring?: string;
|
|
515
512
|
}>;
|
|
516
|
-
supportUrlSigning: import('vue').ComputedRef<boolean>;
|
|
517
513
|
supportSSE: import('vue').ComputedRef<boolean>;
|
|
518
514
|
supportRadicale: import('vue').ComputedRef<boolean>;
|
|
519
515
|
personalDataExport: import('vue').ComputedRef<boolean>;
|
|
@@ -659,7 +655,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
659
655
|
'check-for-updates'?: boolean;
|
|
660
656
|
'support-sse'?: boolean;
|
|
661
657
|
'support-radicale'?: boolean;
|
|
662
|
-
'support-url-signing'?: boolean;
|
|
663
658
|
'webdav-root'?: string;
|
|
664
659
|
};
|
|
665
660
|
dav: {
|
|
@@ -806,7 +801,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
806
801
|
"check-for-updates"?: boolean;
|
|
807
802
|
"support-sse"?: boolean;
|
|
808
803
|
"support-radicale"?: boolean;
|
|
809
|
-
"support-url-signing"?: boolean;
|
|
810
804
|
"webdav-root"?: string;
|
|
811
805
|
};
|
|
812
806
|
dav: {
|
|
@@ -968,7 +962,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
968
962
|
'check-for-updates'?: boolean;
|
|
969
963
|
'support-sse'?: boolean;
|
|
970
964
|
'support-radicale'?: boolean;
|
|
971
|
-
'support-url-signing'?: boolean;
|
|
972
965
|
'webdav-root'?: string;
|
|
973
966
|
};
|
|
974
967
|
dav: {
|
|
@@ -1099,7 +1092,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1099
1092
|
version?: string;
|
|
1100
1093
|
versionstring?: string;
|
|
1101
1094
|
}>;
|
|
1102
|
-
supportUrlSigning: import('vue').ComputedRef<boolean>;
|
|
1103
1095
|
supportSSE: import('vue').ComputedRef<boolean>;
|
|
1104
1096
|
supportRadicale: import('vue').ComputedRef<boolean>;
|
|
1105
1097
|
personalDataExport: import('vue').ComputedRef<boolean>;
|
|
@@ -1171,7 +1163,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1171
1163
|
searchContent: import('vue').ComputedRef<import('@opencloud-eu/web-client/ocs').SearchPropertyCapability | {
|
|
1172
1164
|
enabled?: boolean;
|
|
1173
1165
|
}>;
|
|
1174
|
-
}, "status" | "
|
|
1166
|
+
}, "status" | "supportSSE" | "supportRadicale" | "personalDataExport" | "davReports" | "davTrashbin" | "spacesMaxQuota" | "spacesProjects" | "graphUsersCreateDisabled" | "graphUsersDeleteDisabled" | "graphUsersChangeSelfPasswordDisabled" | "graphUsersEditLoginAllowedDisabled" | "graphUsersReadOnlyAttributes" | "filesAppProviders" | "filesFavorites" | "filesArchivers" | "filesPrivateLinks" | "filesPermanentDeletion" | "filesTags" | "filesUndelete" | "sharingApiEnabled" | "sharingCanRename" | "sharingAllowCustom" | "sharingPublicEnabled" | "sharingPublicCanEdit" | "sharingPublicCanContribute" | "sharingPublicAlias" | "sharingPublicDefaultPermissions" | "sharingPublicPasswordEnforcedFor" | "sharingSearchMinLength" | "sharingUserProfilePicture" | "tusMaxChunkSize" | "tusExtension" | "tusHttpMethodOverride" | "notificationsOcsEndpoints" | "passwordPolicy" | "searchLastMofifiedDate" | "searchMediaType" | "searchContent">, Pick<{
|
|
1175
1167
|
isInitialized: import('vue').Ref<boolean, boolean>;
|
|
1176
1168
|
capabilities: import('vue').Ref<{
|
|
1177
1169
|
checksums?: {
|
|
@@ -1245,7 +1237,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1245
1237
|
'check-for-updates'?: boolean;
|
|
1246
1238
|
'support-sse'?: boolean;
|
|
1247
1239
|
'support-radicale'?: boolean;
|
|
1248
|
-
'support-url-signing'?: boolean;
|
|
1249
1240
|
'webdav-root'?: string;
|
|
1250
1241
|
};
|
|
1251
1242
|
dav: {
|
|
@@ -1392,7 +1383,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1392
1383
|
"check-for-updates"?: boolean;
|
|
1393
1384
|
"support-sse"?: boolean;
|
|
1394
1385
|
"support-radicale"?: boolean;
|
|
1395
|
-
"support-url-signing"?: boolean;
|
|
1396
1386
|
"webdav-root"?: string;
|
|
1397
1387
|
};
|
|
1398
1388
|
dav: {
|
|
@@ -1554,7 +1544,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1554
1544
|
'check-for-updates'?: boolean;
|
|
1555
1545
|
'support-sse'?: boolean;
|
|
1556
1546
|
'support-radicale'?: boolean;
|
|
1557
|
-
'support-url-signing'?: boolean;
|
|
1558
1547
|
'webdav-root'?: string;
|
|
1559
1548
|
};
|
|
1560
1549
|
dav: {
|
|
@@ -1685,7 +1674,6 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
|
|
|
1685
1674
|
version?: string;
|
|
1686
1675
|
versionstring?: string;
|
|
1687
1676
|
}>;
|
|
1688
|
-
supportUrlSigning: import('vue').ComputedRef<boolean>;
|
|
1689
1677
|
supportSSE: import('vue').ComputedRef<boolean>;
|
|
1690
1678
|
supportRadicale: import('vue').ComputedRef<boolean>;
|
|
1691
1679
|
personalDataExport: import('vue').ComputedRef<boolean>;
|
|
@@ -136,7 +136,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
136
136
|
label: (options?: ActionOptions) => string;
|
|
137
137
|
isVisible: (options?: ActionOptions) => boolean;
|
|
138
138
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
139
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
139
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
140
140
|
href?: (options?: ActionOptions) => string;
|
|
141
141
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
142
142
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -265,7 +265,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
265
265
|
label: (options?: ActionOptions) => string;
|
|
266
266
|
isVisible: (options?: ActionOptions) => boolean;
|
|
267
267
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
268
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
268
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
269
269
|
href?: (options?: ActionOptions) => string;
|
|
270
270
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
271
271
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -419,7 +419,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
419
419
|
label: (options?: ActionOptions) => string;
|
|
420
420
|
isVisible: (options?: ActionOptions) => boolean;
|
|
421
421
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
422
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
422
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
423
423
|
href?: (options?: ActionOptions) => string;
|
|
424
424
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
425
425
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -548,7 +548,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
548
548
|
label: (options?: ActionOptions) => string;
|
|
549
549
|
isVisible: (options?: ActionOptions) => boolean;
|
|
550
550
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
551
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
551
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
552
552
|
href?: (options?: ActionOptions) => string;
|
|
553
553
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
554
554
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -702,7 +702,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
702
702
|
label: (options?: ActionOptions) => string;
|
|
703
703
|
isVisible: (options?: ActionOptions) => boolean;
|
|
704
704
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
705
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
705
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
706
706
|
href?: (options?: ActionOptions) => string;
|
|
707
707
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
708
708
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -831,7 +831,7 @@ export declare const useMessages: import('pinia').StoreDefinition<"messages", Pi
|
|
|
831
831
|
label: (options?: ActionOptions) => string;
|
|
832
832
|
isVisible: (options?: ActionOptions) => boolean;
|
|
833
833
|
handler?: (options?: ActionOptions) => Promise<void> | void;
|
|
834
|
-
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw;
|
|
834
|
+
route?: (options?: ActionOptions) => import('vue-router').RouteLocationRaw | undefined;
|
|
835
835
|
href?: (options?: ActionOptions) => string;
|
|
836
836
|
isDisabled?: (options?: ActionOptions) => boolean;
|
|
837
837
|
disabledTooltip?: (options?: ActionOptions) => string;
|
|
@@ -3,5 +3,7 @@ export * from './useCanListVersions';
|
|
|
3
3
|
export * from './useGetResourceContext';
|
|
4
4
|
export * from './useLoadPreview';
|
|
5
5
|
export * from './useResourceContents';
|
|
6
|
+
export * from './useResourceViewContextMenu';
|
|
6
7
|
export * from './useResourceViewDrag';
|
|
7
8
|
export * from './useResourceViewHelpers';
|
|
9
|
+
export * from './useResourceViewSelection';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { ContextMenuBtnClickEventData } from '../../helpers';
|
|
3
|
+
export declare const useResourceViewContextMenu: ({ isResourceSelected, isResourceDisabled, emit }: {
|
|
4
|
+
isResourceSelected: (resource: Resource) => boolean;
|
|
5
|
+
isResourceDisabled: (resource: Resource) => boolean;
|
|
6
|
+
emit: ReturnType<typeof defineEmits>;
|
|
7
|
+
}) => {
|
|
8
|
+
shouldShowContextDrop: (item: Resource) => boolean;
|
|
9
|
+
showContextMenuOnBtnClick: (data: ContextMenuBtnClickEventData, item: Resource) => boolean;
|
|
10
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) => boolean;
|
|
11
|
+
};
|
|
@@ -3,7 +3,7 @@ import { Resource } from '@opencloud-eu/web-client';
|
|
|
3
3
|
export declare const useResourceViewDrag: ({ selectedIds, selectedResources, emit }: {
|
|
4
4
|
selectedIds: Ref<string[]>;
|
|
5
5
|
selectedResources: Ref<Resource[]>;
|
|
6
|
-
emit:
|
|
6
|
+
emit: ReturnType<typeof defineEmits>;
|
|
7
7
|
}) => {
|
|
8
8
|
ghostElement: Readonly<import('vue').ShallowRef<ComponentPublicInstance<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
9
9
|
previewItems: {
|
|
@@ -21,34 +21,13 @@ export declare const useResourceViewDrag: ({ selectedIds, selectedResources, emi
|
|
|
21
21
|
required: true;
|
|
22
22
|
};
|
|
23
23
|
}>> & Readonly<{}>, {}, {}, {
|
|
24
|
-
ResourceIcon: import('vue').DefineComponent<
|
|
25
|
-
resource:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
size
|
|
30
|
-
|
|
31
|
-
default: string;
|
|
32
|
-
validator: (value: string) => boolean;
|
|
33
|
-
};
|
|
34
|
-
}>, {
|
|
35
|
-
icon: import('vue').ComputedRef<import('../..').IconType>;
|
|
36
|
-
isSpace: import('vue').ComputedRef<boolean>;
|
|
37
|
-
isFolder: import('vue').ComputedRef<boolean>;
|
|
38
|
-
isDisabledSpace: import('vue').ComputedRef<boolean>;
|
|
39
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
40
|
-
resource: {
|
|
41
|
-
type: import('vue').PropType<Resource | import('@opencloud-eu/web-client').SpaceResource>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
size: {
|
|
45
|
-
type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
|
|
46
|
-
default: string;
|
|
47
|
-
validator: (value: string) => boolean;
|
|
48
|
-
};
|
|
49
|
-
}>> & Readonly<{}>, {
|
|
50
|
-
size: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
51
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
24
|
+
ResourceIcon: import('vue').DefineComponent<{
|
|
25
|
+
resource: Resource | import('@opencloud-eu/web-client').SpaceResource;
|
|
26
|
+
size?: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
27
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
28
|
+
resource: Resource | import('@opencloud-eu/web-client').SpaceResource;
|
|
29
|
+
size?: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
30
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
52
31
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>>>;
|
|
53
32
|
dragItem: Ref<Resource, Resource>;
|
|
54
33
|
dragSelection: import('vue').ComputedRef<Resource[]>;
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
|
-
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
+
import { Resource, SpaceResource } from '@opencloud-eu/web-client';
|
|
3
3
|
/**
|
|
4
4
|
* Shared helpers for resource view components (like ResourceTable and ResourceTiles).
|
|
5
5
|
*/
|
|
6
|
-
export declare const useResourceViewHelpers: ({ resources, selectedIds, emit }: {
|
|
6
|
+
export declare const useResourceViewHelpers: ({ space, resources, selectedIds, emit }: {
|
|
7
|
+
space: Ref<SpaceResource>;
|
|
7
8
|
resources: Ref<Resource[]>;
|
|
8
9
|
selectedIds: Ref<string[]>;
|
|
9
|
-
emit:
|
|
10
|
+
emit: ReturnType<typeof defineEmits>;
|
|
10
11
|
}) => {
|
|
12
|
+
getResourceCheckboxLabel: (resource: Resource) => string;
|
|
13
|
+
areAllResourcesSelected: import('vue').ComputedRef<boolean>;
|
|
14
|
+
selectAllCheckboxLabel: import('vue').ComputedRef<string>;
|
|
15
|
+
toggleSelectionAll: () => void;
|
|
16
|
+
shouldShowContextDrop: (item: Resource) => boolean;
|
|
17
|
+
showContextMenuOnBtnClick: (data: import('../..').ContextMenuBtnClickEventData, item: Resource) => boolean;
|
|
18
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) => boolean;
|
|
11
19
|
ghostElement: Readonly<import('vue').ShallowRef<import('vue').ComponentPublicInstance<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
12
20
|
previewItems: {
|
|
13
21
|
type: import('vue').PropType<Resource[]>;
|
|
@@ -24,34 +32,13 @@ export declare const useResourceViewHelpers: ({ resources, selectedIds, emit }:
|
|
|
24
32
|
required: true;
|
|
25
33
|
};
|
|
26
34
|
}>> & Readonly<{}>, {}, {}, {
|
|
27
|
-
ResourceIcon: import('vue').DefineComponent<
|
|
28
|
-
resource:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
size
|
|
33
|
-
|
|
34
|
-
default: string;
|
|
35
|
-
validator: (value: string) => boolean;
|
|
36
|
-
};
|
|
37
|
-
}>, {
|
|
38
|
-
icon: import('vue').ComputedRef<import('../..').IconType>;
|
|
39
|
-
isSpace: import('vue').ComputedRef<boolean>;
|
|
40
|
-
isFolder: import('vue').ComputedRef<boolean>;
|
|
41
|
-
isDisabledSpace: import('vue').ComputedRef<boolean>;
|
|
42
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
43
|
-
resource: {
|
|
44
|
-
type: import('vue').PropType<Resource | import('@opencloud-eu/web-client').SpaceResource>;
|
|
45
|
-
required: true;
|
|
46
|
-
};
|
|
47
|
-
size: {
|
|
48
|
-
type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
|
|
49
|
-
default: string;
|
|
50
|
-
validator: (value: string) => boolean;
|
|
51
|
-
};
|
|
52
|
-
}>> & Readonly<{}>, {
|
|
53
|
-
size: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
54
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
35
|
+
ResourceIcon: import('vue').DefineComponent<{
|
|
36
|
+
resource: Resource | SpaceResource;
|
|
37
|
+
size?: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
38
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
39
|
+
resource: Resource | SpaceResource;
|
|
40
|
+
size?: import('@opencloud-eu/design-system/helpers').SizeType;
|
|
41
|
+
}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
55
42
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>>>;
|
|
56
43
|
dragItem: Ref<Resource, Resource>;
|
|
57
44
|
dragSelection: import('vue').ComputedRef<Resource[]>;
|
|
@@ -59,19 +46,23 @@ export declare const useResourceViewHelpers: ({ resources, selectedIds, emit }:
|
|
|
59
46
|
fileDropped: (resource: Resource, event: DragEvent) => void;
|
|
60
47
|
setDropStyling: (resource: Resource, leaving: boolean, event: DragEvent) => void;
|
|
61
48
|
selectedResources: import('vue').ComputedRef<Resource[]>;
|
|
49
|
+
disabledResources: import('vue').ComputedRef<string[]>;
|
|
62
50
|
isResourceSelected: (item: Resource) => boolean;
|
|
63
51
|
isResourceInDeleteQueue: (id: string) => boolean;
|
|
64
52
|
isResourceDisabled: (resource: Resource) => boolean;
|
|
53
|
+
isResourceClickable: (resource: Resource, areResourcesClickable: boolean) => boolean;
|
|
54
|
+
isResourceCut: (resource: Resource) => boolean;
|
|
65
55
|
fileContainerClicked: ({ resource, event }: {
|
|
66
56
|
resource: Resource;
|
|
67
|
-
event: MouseEvent;
|
|
57
|
+
event: MouseEvent | KeyboardEvent;
|
|
68
58
|
}) => void;
|
|
69
59
|
fileNameClicked: ({ resource, event }: {
|
|
70
60
|
resource: Resource;
|
|
71
|
-
event: MouseEvent;
|
|
61
|
+
event: MouseEvent | KeyboardEvent;
|
|
72
62
|
}) => void;
|
|
73
63
|
fileCheckboxClicked: ({ resource, event }: {
|
|
74
64
|
resource: Resource;
|
|
75
|
-
event: MouseEvent;
|
|
65
|
+
event: MouseEvent | KeyboardEvent;
|
|
76
66
|
}) => void;
|
|
67
|
+
getResourceLink: (resource: Resource) => string | import('vue-router').RouteLocationAsRelativeGeneric | import('vue-router').RouteLocationAsPathGeneric;
|
|
77
68
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { Resource } from '@opencloud-eu/web-client';
|
|
3
|
+
export declare const useResourceViewSelection: ({ resources, disabledResources, selectedIds, emit }: {
|
|
4
|
+
resources: Ref<Resource[]>;
|
|
5
|
+
disabledResources: Ref<string[]>;
|
|
6
|
+
selectedIds: Ref<string[]>;
|
|
7
|
+
emit: ReturnType<typeof defineEmits>;
|
|
8
|
+
}) => {
|
|
9
|
+
getResourceCheckboxLabel: (resource: Resource) => string;
|
|
10
|
+
areAllResourcesSelected: import('vue').ComputedRef<boolean>;
|
|
11
|
+
selectAllCheckboxLabel: import('vue').ComputedRef<string>;
|
|
12
|
+
toggleSelectionAll: () => void;
|
|
13
|
+
};
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { Ref, MaybeRef } from 'vue';
|
|
2
2
|
import { ReadOnlyRef } from '../../utils';
|
|
3
|
+
import { SortDir } from '@opencloud-eu/design-system/helpers';
|
|
3
4
|
export interface SortableItem {
|
|
4
5
|
type?: string;
|
|
5
|
-
|
|
6
|
-
export declare enum SortDir {
|
|
7
|
-
Desc = "desc",
|
|
8
|
-
Asc = "asc"
|
|
6
|
+
extension?: string;
|
|
9
7
|
}
|
|
10
8
|
export interface SortField {
|
|
11
9
|
name: string;
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
/** @deprecated use from design-system instead */
|
|
1
2
|
export declare const EVENT_TROW_MOUNTED = "rowMounted";
|
|
3
|
+
/** @deprecated use from design-system instead */
|
|
2
4
|
export declare const EVENT_FILE_DROPPED = "fileDropped";
|
|
5
|
+
/** @deprecated use from design-system instead */
|
|
3
6
|
export declare const EVENT_TROW_CONTEXTMENU = "contextmenuClicked";
|
|
4
7
|
export declare abstract class ImageDimension {
|
|
5
8
|
static readonly Thumbnail: [number, number];
|
|
@@ -4,4 +4,4 @@ export type ContextMenuBtnClickEventData = {
|
|
|
4
4
|
event: MouseEvent | KeyboardEvent;
|
|
5
5
|
dropdown: ComponentPublicInstance<typeof OcDrop>;
|
|
6
6
|
};
|
|
7
|
-
export declare const displayPositionedDropdown: (dropdown: ComponentPublicInstance<typeof OcDrop>, event: MouseEvent | KeyboardEvent, contextMenuButton: ComponentPublicInstance<unknown>) => void;
|
|
7
|
+
export declare const displayPositionedDropdown: (dropdown: ComponentPublicInstance<typeof OcDrop>, event: MouseEvent | KeyboardEvent, contextMenuButton: HTMLElement | ComponentPublicInstance<unknown>) => void;
|
|
@@ -26,10 +26,6 @@ export declare class ClientService {
|
|
|
26
26
|
get graphAuthenticated(): Graph;
|
|
27
27
|
get sseAuthenticated(): EventSource;
|
|
28
28
|
get ocs(): OCS;
|
|
29
|
-
/** @deprecated use `ocs()` instead */
|
|
30
|
-
get ocsUserContext(): OCS;
|
|
31
|
-
/** @deprecated use `ocs()` instead */
|
|
32
|
-
ocsPublicLinkContext(password?: string): OCS;
|
|
33
29
|
get webdav(): WebDAV;
|
|
34
30
|
get currentLanguage(): string;
|
|
35
31
|
getRequestHeaders: ({ useAuth }?: {
|
package/dist/src/ui/types.d.ts
CHANGED