@opencloud-eu/web-pkg 4.2.0 → 4.2.1

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.
@@ -1,41 +1,35 @@
1
1
  import { Resource } from '@opencloud-eu/web-client';
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
- item: {
4
- type: ObjectConstructor;
5
- required: true;
2
+ type __VLS_Props = {
3
+ item: Resource;
4
+ resourceDomSelector?: (resource: Resource) => string;
5
+ title?: string;
6
+ };
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ contextMenu?(_: {
11
+ item: Resource;
12
+ }): any;
6
13
  };
7
- resourceDomSelector: {
8
- type: FunctionConstructor;
9
- required: false;
10
- default: (resource: Resource) => string;
11
- };
12
- title: {
13
- type: StringConstructor;
14
- required: false;
15
- default: string;
16
- };
17
- }>, {
18
- contextMenuLabel: import('vue').ComputedRef<string>;
19
- isOpen: import('vue').Ref<boolean, boolean>;
20
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "quickActionClicked"[], "quickActionClicked", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
21
- item: {
22
- type: ObjectConstructor;
23
- required: true;
24
- };
25
- resourceDomSelector: {
26
- type: FunctionConstructor;
27
- required: false;
28
- default: (resource: Resource) => string;
29
- };
30
- title: {
31
- type: StringConstructor;
32
- required: false;
33
- default: string;
34
- };
35
- }>> & Readonly<{
36
- onQuickActionClicked?: (...args: any[]) => any;
37
- }>, {
38
- title: string;
39
- resourceDomSelector: Function;
40
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
14
+ refs: {};
15
+ rootEl: any;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
+ quickActionClicked: (payload: {
20
+ event: MouseEvent;
21
+ dropdown: unknown;
22
+ }) => any;
23
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
24
+ onQuickActionClicked?: (payload: {
25
+ event: MouseEvent;
26
+ dropdown: unknown;
27
+ }) => any;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
29
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
30
  export default _default;
31
+ type __VLS_WithTemplateSlots<T, S> = T & {
32
+ new (): {
33
+ $slots: S;
34
+ };
35
+ };
@@ -1,17 +1,10 @@
1
1
  import { DateTime } from 'luxon';
2
2
  import { ComponentPublicInstance, PropType } from 'vue';
3
3
  import { Modal } from '../composables';
4
- import { LinkShare, SpaceResource, Resource } from '@opencloud-eu/web-client';
4
+ import { SpaceResource, Resource } from '@opencloud-eu/web-client';
5
5
  import { OcButton } from '@opencloud-eu/design-system/components';
6
6
  import { SharingLinkType } from '@opencloud-eu/web-client/graph/generated';
7
7
  type RoleRef = ComponentPublicInstance<typeof OcButton>;
8
- interface CallbackArgs {
9
- result: PromiseSettledResult<LinkShare>[];
10
- password: string;
11
- options?: {
12
- copyPassword?: boolean;
13
- };
14
- }
15
8
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
16
9
  modal: {
17
10
  type: PropType<Modal>;
@@ -25,10 +18,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
25
18
  type: PropType<SpaceResource>;
26
19
  default: any;
27
20
  };
28
- callbackFn: {
29
- type: PropType<(args: CallbackArgs) => Promise<void> | void>;
30
- default: any;
31
- };
32
21
  }>, {
33
22
  roleRefs: import('vue').Ref<Record<string, RoleRef>, Record<string, RoleRef>>;
34
23
  password: {
@@ -107,7 +96,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
107
96
  }>;
108
97
  onConfirm: (options?: {
109
98
  copyPassword?: boolean;
110
- }) => Promise<never>;
99
+ }) => Promise<void>;
111
100
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
112
101
  modal: {
113
102
  type: PropType<Modal>;
@@ -121,16 +110,11 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
121
110
  type: PropType<SpaceResource>;
122
111
  default: any;
123
112
  };
124
- callbackFn: {
125
- type: PropType<(args: CallbackArgs) => Promise<void> | void>;
126
- default: any;
127
- };
128
113
  }>> & Readonly<{
129
114
  onCancel?: (...args: any[]) => any;
130
115
  onConfirm?: (...args: any[]) => any;
131
116
  }>, {
132
117
  space: SpaceResource;
133
- callbackFn: (args: CallbackArgs) => Promise<void> | void;
134
118
  }, {}, {
135
119
  LinkRoleDropdown: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
136
120
  modelValue: {
@@ -978,45 +978,62 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
978
978
  userId: string;
979
979
  userName: string;
980
980
  }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLSpanElement>;
981
- ContextMenuQuickAction: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
982
- item: {
983
- type: ObjectConstructor;
984
- required: true;
985
- };
986
- resourceDomSelector: {
987
- type: FunctionConstructor;
988
- required: false;
989
- default: (resource: Resource) => string;
990
- };
991
- title: {
992
- type: StringConstructor;
993
- required: false;
994
- default: string;
995
- };
996
- }>, {
997
- contextMenuLabel: ComputedRef<string>;
998
- isOpen: import('vue').Ref<boolean, boolean>;
999
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "quickActionClicked"[], "quickActionClicked", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
1000
- item: {
1001
- type: ObjectConstructor;
1002
- required: true;
1003
- };
1004
- resourceDomSelector: {
1005
- type: FunctionConstructor;
1006
- required: false;
1007
- default: (resource: Resource) => string;
1008
- };
1009
- title: {
1010
- type: StringConstructor;
1011
- required: false;
1012
- default: string;
981
+ ContextMenuQuickAction: {
982
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
983
+ item: Resource;
984
+ resourceDomSelector?: (resource: Resource) => string;
985
+ title?: string;
986
+ }> & Readonly<{
987
+ onQuickActionClicked?: (payload: {
988
+ event: MouseEvent;
989
+ dropdown: unknown;
990
+ }) => any;
991
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
992
+ quickActionClicked: (payload: {
993
+ event: MouseEvent;
994
+ dropdown: unknown;
995
+ }) => any;
996
+ }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
997
+ P: {};
998
+ B: {};
999
+ D: {};
1000
+ C: {};
1001
+ M: {};
1002
+ Defaults: {};
1003
+ }, Readonly<{
1004
+ item: Resource;
1005
+ resourceDomSelector?: (resource: Resource) => string;
1006
+ title?: string;
1007
+ }> & Readonly<{
1008
+ onQuickActionClicked?: (payload: {
1009
+ event: MouseEvent;
1010
+ dropdown: unknown;
1011
+ }) => any;
1012
+ }>, {}, {}, {}, {}, {}>;
1013
+ __isFragment?: never;
1014
+ __isTeleport?: never;
1015
+ __isSuspense?: never;
1016
+ } & import('vue').ComponentOptionsBase<Readonly<{
1017
+ item: Resource;
1018
+ resourceDomSelector?: (resource: Resource) => string;
1019
+ title?: string;
1020
+ }> & Readonly<{
1021
+ onQuickActionClicked?: (payload: {
1022
+ event: MouseEvent;
1023
+ dropdown: unknown;
1024
+ }) => any;
1025
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
1026
+ quickActionClicked: (payload: {
1027
+ event: MouseEvent;
1028
+ dropdown: unknown;
1029
+ }) => any;
1030
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
1031
+ $slots: {
1032
+ contextMenu?(_: {
1033
+ item: Resource;
1034
+ }): any;
1013
1035
  };
1014
- }>> & Readonly<{
1015
- onQuickActionClicked?: (...args: any[]) => any;
1016
- }>, {
1017
- title: string;
1018
- resourceDomSelector: Function;
1019
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1036
+ });
1020
1037
  ResourceGhostElement: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
1021
1038
  previewItems: {
1022
1039
  type: PropType<Resource[]>;
@@ -32,7 +32,6 @@ declare function __VLS_template(): {
32
32
  }) => unknown;
33
33
  contextMenu?: (props: {
34
34
  resource: Resource;
35
- isOpen: boolean;
36
35
  }) => unknown;
37
36
  footer?: () => unknown;
38
37
  additionalResourceContent?: (props: {
@@ -47,7 +46,6 @@ declare function __VLS_template(): {
47
46
  }) => unknown;
48
47
  contextMenu?: (props: {
49
48
  resource: Resource;
50
- isOpen: boolean;
51
49
  }) => unknown;
52
50
  footer?: () => unknown;
53
51
  additionalResourceContent?: (props: {
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated use useClipboard from vueuse or useCopyLink for links instead
3
+ */
1
4
  export declare const useClipboard: () => {
2
5
  copyToClipboard: (quickLinkUrl: string) => Promise<void>;
3
6
  };
@@ -1 +1,2 @@
1
+ export * from './useCopyLink';
1
2
  export * from './useLinkTypes';
@@ -0,0 +1,14 @@
1
+ import { LinkShare } from '@opencloud-eu/web-client';
2
+ /**
3
+ * Dedicated composable for copying created links to clipboard because it requires
4
+ * special handling for Safari. For this to work you need to pass the link create method
5
+ * to copyLink so that the link is created within the same user interaction as the clipboard write.
6
+ *
7
+ * This composable also takes care of showing success and error messages.
8
+ */
9
+ export declare const useCopyLink: () => {
10
+ copyLink: ({ createLinkHandler, password }: {
11
+ createLinkHandler: () => Promise<PromiseSettledResult<LinkShare>[]>;
12
+ password?: string;
13
+ }) => Promise<void>;
14
+ };
@@ -72,6 +72,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
72
72
  };
73
73
  'check-for-updates'?: boolean;
74
74
  'support-sse'?: boolean;
75
+ 'support-radicale'?: boolean;
75
76
  'support-url-signing'?: boolean;
76
77
  'webdav-root'?: string;
77
78
  };
@@ -215,6 +216,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
215
216
  };
216
217
  "check-for-updates"?: boolean;
217
218
  "support-sse"?: boolean;
219
+ "support-radicale"?: boolean;
218
220
  "support-url-signing"?: boolean;
219
221
  "webdav-root"?: string;
220
222
  };
@@ -373,6 +375,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
373
375
  };
374
376
  'check-for-updates'?: boolean;
375
377
  'support-sse'?: boolean;
378
+ 'support-radicale'?: boolean;
376
379
  'support-url-signing'?: boolean;
377
380
  'webdav-root'?: string;
378
381
  };
@@ -503,6 +506,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
503
506
  }>;
504
507
  supportUrlSigning: import('vue').ComputedRef<boolean>;
505
508
  supportSSE: import('vue').ComputedRef<boolean>;
509
+ supportRadicale: import('vue').ComputedRef<boolean>;
506
510
  personalDataExport: import('vue').ComputedRef<boolean>;
507
511
  davReports: import('vue').ComputedRef<string[]>;
508
512
  davTrashbin: import('vue').ComputedRef<string>;
@@ -645,6 +649,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
645
649
  };
646
650
  'check-for-updates'?: boolean;
647
651
  'support-sse'?: boolean;
652
+ 'support-radicale'?: boolean;
648
653
  'support-url-signing'?: boolean;
649
654
  'webdav-root'?: string;
650
655
  };
@@ -788,6 +793,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
788
793
  };
789
794
  "check-for-updates"?: boolean;
790
795
  "support-sse"?: boolean;
796
+ "support-radicale"?: boolean;
791
797
  "support-url-signing"?: boolean;
792
798
  "webdav-root"?: string;
793
799
  };
@@ -946,6 +952,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
946
952
  };
947
953
  'check-for-updates'?: boolean;
948
954
  'support-sse'?: boolean;
955
+ 'support-radicale'?: boolean;
949
956
  'support-url-signing'?: boolean;
950
957
  'webdav-root'?: string;
951
958
  };
@@ -1076,6 +1083,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1076
1083
  }>;
1077
1084
  supportUrlSigning: import('vue').ComputedRef<boolean>;
1078
1085
  supportSSE: import('vue').ComputedRef<boolean>;
1086
+ supportRadicale: import('vue').ComputedRef<boolean>;
1079
1087
  personalDataExport: import('vue').ComputedRef<boolean>;
1080
1088
  davReports: import('vue').ComputedRef<string[]>;
1081
1089
  davTrashbin: import('vue').ComputedRef<string>;
@@ -1145,7 +1153,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1145
1153
  searchContent: import('vue').ComputedRef<import('@opencloud-eu/web-client/ocs').SearchPropertyCapability | {
1146
1154
  enabled?: boolean;
1147
1155
  }>;
1148
- }, "status" | "supportUrlSigning" | "supportSSE" | "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<{
1156
+ }, "status" | "supportUrlSigning" | "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<{
1149
1157
  isInitialized: import('vue').Ref<boolean, boolean>;
1150
1158
  capabilities: import('vue').Ref<{
1151
1159
  checksums?: {
@@ -1218,6 +1226,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1218
1226
  };
1219
1227
  'check-for-updates'?: boolean;
1220
1228
  'support-sse'?: boolean;
1229
+ 'support-radicale'?: boolean;
1221
1230
  'support-url-signing'?: boolean;
1222
1231
  'webdav-root'?: string;
1223
1232
  };
@@ -1361,6 +1370,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1361
1370
  };
1362
1371
  "check-for-updates"?: boolean;
1363
1372
  "support-sse"?: boolean;
1373
+ "support-radicale"?: boolean;
1364
1374
  "support-url-signing"?: boolean;
1365
1375
  "webdav-root"?: string;
1366
1376
  };
@@ -1519,6 +1529,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1519
1529
  };
1520
1530
  'check-for-updates'?: boolean;
1521
1531
  'support-sse'?: boolean;
1532
+ 'support-radicale'?: boolean;
1522
1533
  'support-url-signing'?: boolean;
1523
1534
  'webdav-root'?: string;
1524
1535
  };
@@ -1649,6 +1660,7 @@ export declare const useCapabilityStore: import('pinia').StoreDefinition<"capabi
1649
1660
  }>;
1650
1661
  supportUrlSigning: import('vue').ComputedRef<boolean>;
1651
1662
  supportSSE: import('vue').ComputedRef<boolean>;
1663
+ supportRadicale: import('vue').ComputedRef<boolean>;
1652
1664
  personalDataExport: import('vue').ComputedRef<boolean>;
1653
1665
  davReports: import('vue').ComputedRef<string[]>;
1654
1666
  davTrashbin: import('vue').ComputedRef<string>;
@@ -1,6 +1,6 @@
1
1
  import { Resource } from '@opencloud-eu/web-client';
2
2
  export declare const useGetResourceContext: () => {
3
- getResourceContext: (id: string) => Promise<{
3
+ getResourceContext: (id: string) => import('vue-concurrency').TaskInstance<{
4
4
  space: {
5
5
  description: string;
6
6
  disabled: boolean;
@@ -2,4 +2,5 @@ export * from './sameResource';
2
2
  export * from './conflictHandling';
3
3
  export * from './filter';
4
4
  export * from './icon';
5
+ export * from './isItemInCurrentFolder';
5
6
  export * from './renameResource';
@@ -0,0 +1,5 @@
1
+ import { ResourcesStore } from '../../composables';
2
+ export declare const isItemInCurrentFolder: ({ resourcesStore, parentFolderId }: {
3
+ resourcesStore: ResourcesStore;
4
+ parentFolderId: string;
5
+ }) => boolean;
@@ -6,6 +6,7 @@ interface TriggerDownloadOptions {
6
6
  files?: string[];
7
7
  fileIds?: string[];
8
8
  publicToken?: string;
9
+ publicLinkPassword?: string;
9
10
  }
10
11
  export declare class ArchiverService {
11
12
  clientService: ClientService;
@@ -1,5 +1,6 @@
1
1
  import { Cache } from '../helpers/cache';
2
2
  declare class CacheService {
3
+ /** @deprecated */
3
4
  get avatarUrl(): Cache<string, {
4
5
  size?: number;
5
6
  src?: string;