@opencloud-eu/web-pkg 5.0.0-alpha.1 → 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.
@@ -1,140 +1,12 @@
1
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
- /**
3
- * The name of the resource
4
- */
5
- name: {
6
- type: StringConstructor;
7
- required: true;
8
- };
9
- /**
10
- * The prefix that will be shown in the path
11
- */
12
- pathPrefix: {
13
- type: StringConstructor;
14
- required: false;
15
- default: string;
16
- };
17
- /**
18
- * The extension of the resource, if there is one
19
- */
20
- extension: {
21
- type: StringConstructor;
22
- required: false;
23
- default: string;
24
- };
25
- /**
26
- * The type of the resource
27
- */
28
- type: {
29
- type: StringConstructor;
30
- required: true;
31
- };
32
- /**
33
- * A full path of the resource
34
- */
35
- fullPath: {
36
- type: StringConstructor;
37
- required: true;
38
- };
39
- /**
40
- * Asserts whether the resource path should be displayed
41
- */
42
- isPathDisplayed: {
43
- type: BooleanConstructor;
44
- required: false;
45
- default: boolean;
46
- };
47
- /**
48
- * Asserts whether the resource extension should be displayed
49
- */
50
- isExtensionDisplayed: {
51
- type: BooleanConstructor;
52
- required: false;
53
- default: boolean;
54
- };
55
- /**
56
- * Asserts whether the resource name should be truncated if it's too long
57
- */
58
- truncateName: {
59
- type: BooleanConstructor;
60
- required: false;
61
- default: boolean;
62
- };
63
- }>, {}, {}, {
64
- tooltip(): any;
65
- fullName(): string;
66
- displayName(): string;
67
- displayExtension(): string;
68
- displayPath(): string;
69
- pathTooltip(): any;
70
- htmlTitle(): string;
71
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
72
- /**
73
- * The name of the resource
74
- */
75
- name: {
76
- type: StringConstructor;
77
- required: true;
78
- };
79
- /**
80
- * The prefix that will be shown in the path
81
- */
82
- pathPrefix: {
83
- type: StringConstructor;
84
- required: false;
85
- default: string;
86
- };
87
- /**
88
- * The extension of the resource, if there is one
89
- */
90
- extension: {
91
- type: StringConstructor;
92
- required: false;
93
- default: string;
94
- };
95
- /**
96
- * The type of the resource
97
- */
98
- type: {
99
- type: StringConstructor;
100
- required: true;
101
- };
102
- /**
103
- * A full path of the resource
104
- */
105
- fullPath: {
106
- type: StringConstructor;
107
- required: true;
108
- };
109
- /**
110
- * Asserts whether the resource path should be displayed
111
- */
112
- isPathDisplayed: {
113
- type: BooleanConstructor;
114
- required: false;
115
- default: boolean;
116
- };
117
- /**
118
- * Asserts whether the resource extension should be displayed
119
- */
120
- isExtensionDisplayed: {
121
- type: BooleanConstructor;
122
- required: false;
123
- default: boolean;
124
- };
125
- /**
126
- * Asserts whether the resource name should be truncated if it's too long
127
- */
128
- truncateName: {
129
- type: BooleanConstructor;
130
- required: false;
131
- default: boolean;
132
- };
133
- }>> & Readonly<{}>, {
134
- extension: string;
135
- pathPrefix: string;
136
- isPathDisplayed: boolean;
137
- isExtensionDisplayed: boolean;
138
- truncateName: boolean;
139
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
1
+ type __VLS_Props = {
2
+ name: string;
3
+ type: string;
4
+ fullPath: string;
5
+ pathPrefix?: string;
6
+ extension?: string;
7
+ isPathDisplayed?: boolean;
8
+ isExtensionDisplayed?: boolean;
9
+ truncateName?: boolean;
10
+ };
11
+ 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, false, {}, HTMLSpanElement>;
140
12
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { Resource, SpaceResource } from '@opencloud-eu/web-client';
2
- import { SortDir, SortField, FileActionOptions } from '../../composables';
3
- import { SizeType } from '@opencloud-eu/design-system/helpers';
2
+ import { SortField, FileActionOptions } from '../../composables';
3
+ import { SizeType, SortDir } from '@opencloud-eu/design-system/helpers';
4
4
  type __VLS_Props = {
5
5
  resources?: Resource[];
6
6
  selectedIds?: string[];
@@ -1,5 +1,2 @@
1
- import { SpaceResource } from '@opencloud-eu/web-client';
2
- declare const _default: import('vue').DefineComponent<{}, {
3
- resource: SpaceResource;
4
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, 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, {}, HTMLDivElement>;
5
2
  export default _default;
@@ -5,10 +5,7 @@ export type ResourceRouteResolverOptions = {
5
5
  configStore?: ConfigStore;
6
6
  space?: Ref<SpaceResource>;
7
7
  };
8
- export declare const useResourceRouteResolver: (options?: ResourceRouteResolverOptions,
9
- /** @deprecated */
10
- context?: any) => {
11
- createFileAction: (resource: Resource) => void;
8
+ export declare const useResourceRouteResolver: (options?: ResourceRouteResolverOptions) => {
12
9
  createFolderLink: (createTargetRouteOptions: {
13
10
  path: string;
14
11
  resource: Resource | SpaceResource;
@@ -6,7 +6,6 @@ export * from './archiverService';
6
6
  export * from './authContext';
7
7
  export * from './breadcrumbs';
8
8
  export * from './clientService';
9
- export * from './clipboard';
10
9
  export * from './download';
11
10
  export * from './driveResolver';
12
11
  export * from './embedMode';
@@ -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" | "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<{
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>;
@@ -51,6 +51,7 @@ export declare const useResourceViewHelpers: ({ space, resources, selectedIds, e
51
51
  isResourceInDeleteQueue: (id: string) => boolean;
52
52
  isResourceDisabled: (resource: Resource) => boolean;
53
53
  isResourceClickable: (resource: Resource, areResourcesClickable: boolean) => boolean;
54
+ isResourceCut: (resource: Resource) => boolean;
54
55
  fileContainerClicked: ({ resource, event }: {
55
56
  resource: Resource;
56
57
  event: MouseEvent | KeyboardEvent;
@@ -1,14 +1,10 @@
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
  extension?: string;
6
7
  }
7
- /** @deprecated use SortDir from design-system instead */
8
- export declare enum SortDir {
9
- Desc = "desc",
10
- Asc = "asc"
11
- }
12
8
  export interface SortField {
13
9
  name: string;
14
10
  prop?: string;
@@ -1,10 +1,5 @@
1
1
  import { Cache } from '../helpers/cache';
2
2
  declare class CacheService {
3
- /** @deprecated */
4
- get avatarUrl(): Cache<string, {
5
- size?: number;
6
- src?: string;
7
- }>;
8
3
  get filePreview(): Cache<string, {
9
4
  etag?: string;
10
5
  src?: string;
@@ -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 }?: {
@@ -7,8 +7,6 @@ export type FolderView = {
7
7
  name: string;
8
8
  fillType: IconFillType;
9
9
  };
10
- /** @deprecated style your view with proper CSS instead */
11
- isScrollable?: boolean;
12
10
  component: Component;
13
11
  componentAttrs?: () => Record<string, unknown>;
14
12
  };