@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.
Files changed (47) hide show
  1. package/dist/{TextEditor-Cn7QTWpj.js → TextEditor-CJgYG8Kl.js} +5 -5
  2. package/dist/assets/worker-Bc2UmjVr.js +40 -0
  3. package/dist/assets/worker-BeDmEhWu.js +40 -0
  4. package/dist/assets/worker-DWoO7i6z.js +40 -0
  5. package/dist/{index-BAXp6cDe.js → index-D-EuklHo.js} +17376 -17380
  6. package/dist/src/apps/types.d.ts +1 -0
  7. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
  8. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
  9. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
  10. package/dist/src/components/FilesList/ResourceName.vue.d.ts +11 -139
  11. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +16 -357
  12. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +16 -66
  13. package/dist/src/components/ItemFilter.vue.d.ts +8 -9
  14. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +1 -4
  15. package/dist/src/composables/actions/files/index.d.ts +12 -11
  16. package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
  17. package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
  18. package/dist/src/composables/actions/types.d.ts +1 -1
  19. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +6 -7
  20. package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
  21. package/dist/src/composables/index.d.ts +0 -1
  22. package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
  23. package/dist/src/composables/piniaStores/apps.d.ts +6 -0
  24. package/dist/src/composables/piniaStores/capabilities.d.ts +1 -13
  25. package/dist/src/composables/piniaStores/messages.d.ts +6 -6
  26. package/dist/src/composables/resources/index.d.ts +2 -0
  27. package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
  28. package/dist/src/composables/resources/useResourceViewDrag.d.ts +8 -29
  29. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +25 -34
  30. package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
  31. package/dist/src/composables/sort/useSort.d.ts +2 -4
  32. package/dist/src/constants.d.ts +3 -0
  33. package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
  34. package/dist/src/helpers/index.d.ts +0 -1
  35. package/dist/src/services/cache.d.ts +0 -5
  36. package/dist/src/services/client/client.d.ts +0 -4
  37. package/dist/src/ui/types.d.ts +0 -2
  38. package/dist/web-pkg.js +322 -323
  39. package/dist/web-pkg.umd.cjs +48 -47
  40. package/package.json +3 -3
  41. package/dist/assets/worker-B8_1fnv6.js +0 -40
  42. package/dist/assets/worker-CexULVXL.js +0 -40
  43. package/dist/assets/worker-DW5HxaGD.js +0 -40
  44. package/dist/src/composables/clipboard/index.d.ts +0 -1
  45. package/dist/src/composables/clipboard/useClipboard.d.ts +0 -6
  46. package/dist/src/helpers/folderLink/index.d.ts +0 -1
  47. package/dist/src/helpers/folderLink/types.d.ts +0 -6
@@ -1,9 +1,7 @@
1
- import { ComponentPublicInstance } from 'vue';
2
1
  import { Resource, SpaceResource } from '@opencloud-eu/web-client';
3
- import { FolderViewModeConstants, SortDir } from '../../composables';
4
- import { ImageDimension } from '../../constants';
5
- import { CreateTargetRouteOptions } from '../../helpers';
2
+ import { FolderViewModeConstants } from '../../composables';
6
3
  import { FileActionOptions } from '../../composables/actions';
4
+ import { SortDir } from '@opencloud-eu/design-system/helpers';
7
5
  type __VLS_Props = {
8
6
  resources: Resource[];
9
7
  resourceDomSelector?: (resource: Resource) => string;
@@ -11,7 +9,6 @@ type __VLS_Props = {
11
9
  selectedIds?: string[];
12
10
  hasActions?: boolean;
13
11
  showRenameQuickAction?: boolean;
14
- targetRouteCallback?: (arg: CreateTargetRouteOptions) => unknown;
15
12
  areResourcesClickable?: boolean;
16
13
  headerPosition?: number;
17
14
  isSelectable?: boolean;
@@ -94,85 +91,6 @@ declare function __VLS_template(): {
94
91
  footer?: () => unknown;
95
92
  };
96
93
  refs: {
97
- contextMenuButton: {
98
- $: import('vue').ComponentInternalInstance;
99
- $data: {};
100
- $props: {
101
- readonly item: Resource;
102
- readonly resourceDomSelector?: (resource: Resource) => string;
103
- readonly title?: string;
104
- readonly onQuickActionClicked?: (payload: {
105
- event: MouseEvent;
106
- dropdown: unknown;
107
- }) => any;
108
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
109
- $attrs: {
110
- [x: string]: unknown;
111
- };
112
- $refs: {
113
- [x: string]: unknown;
114
- };
115
- $slots: Readonly<{
116
- [name: string]: import('vue').Slot<any>;
117
- }>;
118
- $root: ComponentPublicInstance | null;
119
- $parent: ComponentPublicInstance | null;
120
- $host: Element | null;
121
- $emit: (event: "quickActionClicked", payload: {
122
- event: MouseEvent;
123
- dropdown: unknown;
124
- }) => void;
125
- $el: any;
126
- $options: import('vue').ComponentOptionsBase<Readonly<{
127
- item: Resource;
128
- resourceDomSelector?: (resource: Resource) => string;
129
- title?: string;
130
- }> & Readonly<{
131
- onQuickActionClicked?: (payload: {
132
- event: MouseEvent;
133
- dropdown: unknown;
134
- }) => any;
135
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
136
- quickActionClicked: (payload: {
137
- event: MouseEvent;
138
- dropdown: unknown;
139
- }) => any;
140
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
141
- beforeCreate?: (() => void) | (() => void)[];
142
- created?: (() => void) | (() => void)[];
143
- beforeMount?: (() => void) | (() => void)[];
144
- mounted?: (() => void) | (() => void)[];
145
- beforeUpdate?: (() => void) | (() => void)[];
146
- updated?: (() => void) | (() => void)[];
147
- activated?: (() => void) | (() => void)[];
148
- deactivated?: (() => void) | (() => void)[];
149
- beforeDestroy?: (() => void) | (() => void)[];
150
- beforeUnmount?: (() => void) | (() => void)[];
151
- destroyed?: (() => void) | (() => void)[];
152
- unmounted?: (() => void) | (() => void)[];
153
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
154
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
155
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
156
- };
157
- $forceUpdate: () => void;
158
- $nextTick: typeof import('vue').nextTick;
159
- $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;
160
- } & Readonly<{}> & Omit<Readonly<{
161
- item: Resource;
162
- resourceDomSelector?: (resource: Resource) => string;
163
- title?: string;
164
- }> & Readonly<{
165
- onQuickActionClicked?: (payload: {
166
- event: MouseEvent;
167
- dropdown: unknown;
168
- }) => any;
169
- }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
170
- $slots: {
171
- contextMenu?(_: {
172
- item: Resource;
173
- }): any;
174
- };
175
- };
176
94
  ghostElement: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
177
95
  previewItems: {
178
96
  type: import('vue').PropType<Resource[]>;
@@ -184,34 +102,13 @@ declare function __VLS_template(): {
184
102
  showThirdLayer(): boolean;
185
103
  itemCount(): number;
186
104
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, {
187
- ResourceIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
188
- resource: {
189
- type: import('vue').PropType<Resource | SpaceResource>;
190
- required: true;
191
- };
192
- size: {
193
- type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
194
- default: string;
195
- validator: (value: string) => boolean;
196
- };
197
- }>, {
198
- icon: import('vue').ComputedRef<import('../..').IconType>;
199
- isSpace: import('vue').ComputedRef<boolean>;
200
- isFolder: import('vue').ComputedRef<boolean>;
201
- isDisabledSpace: import('vue').ComputedRef<boolean>;
202
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
203
- resource: {
204
- type: import('vue').PropType<Resource | SpaceResource>;
205
- required: true;
206
- };
207
- size: {
208
- type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
209
- default: string;
210
- validator: (value: string) => boolean;
211
- };
212
- }>> & Readonly<{}>, {
213
- size: import('@opencloud-eu/design-system/helpers').SizeType;
214
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
105
+ ResourceIcon: import('vue').DefineComponent<{
106
+ resource: Resource | SpaceResource;
107
+ size?: import('@opencloud-eu/design-system/helpers').SizeType;
108
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
109
+ resource: Resource | SpaceResource;
110
+ size?: import('@opencloud-eu/design-system/helpers').SizeType;
111
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
215
112
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
216
113
  P: {};
217
114
  B: {};
@@ -239,75 +136,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
239
136
  sortBy: string;
240
137
  sortDir: SortDir;
241
138
  }) => any;
242
- rowMounted: (item: Resource, rowElement: ComponentPublicInstance<{
243
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
244
- onClick?: (...args: any[]) => any;
245
- onContextmenu?: (...args: any[]) => any;
246
- onDragenter?: (...args: any[]) => any;
247
- onDragleave?: (...args: any[]) => any;
248
- onDragover?: (...args: any[]) => any;
249
- onDragstart?: (...args: any[]) => any;
250
- onDrop?: (...args: any[]) => any;
251
- onMouseleave?: (...args: any[]) => any;
252
- onItemVisible?: (...args: any[]) => any;
253
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
254
- click: (...args: any[]) => void;
255
- contextmenu: (...args: any[]) => void;
256
- dragenter: (...args: any[]) => void;
257
- dragleave: (...args: any[]) => void;
258
- dragover: (...args: any[]) => void;
259
- dragstart: (...args: any[]) => void;
260
- drop: (...args: any[]) => void;
261
- mouseleave: (...args: any[]) => void;
262
- itemVisible: (...args: any[]) => void;
263
- }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
264
- observerTarget: HTMLTableRowElement;
265
- }, HTMLTableRowElement, import('vue').ComponentProvideOptions, {
266
- P: {};
267
- B: {};
268
- D: {};
269
- C: {};
270
- M: {};
271
- Defaults: {};
272
- }, Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
273
- onClick?: (...args: any[]) => any;
274
- onContextmenu?: (...args: any[]) => any;
275
- onDragenter?: (...args: any[]) => any;
276
- onDragleave?: (...args: any[]) => any;
277
- onDragover?: (...args: any[]) => any;
278
- onDragstart?: (...args: any[]) => any;
279
- onDrop?: (...args: any[]) => any;
280
- onMouseleave?: (...args: any[]) => any;
281
- onItemVisible?: (...args: any[]) => any;
282
- }>, {}, {}, {}, {}, {}>;
283
- __isFragment?: never;
284
- __isTeleport?: never;
285
- __isSuspense?: never;
286
- } & import('vue').ComponentOptionsBase<Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
287
- onClick?: (...args: any[]) => any;
288
- onContextmenu?: (...args: any[]) => any;
289
- onDragenter?: (...args: any[]) => any;
290
- onDragleave?: (...args: any[]) => any;
291
- onDragover?: (...args: any[]) => any;
292
- onDragstart?: (...args: any[]) => any;
293
- onDrop?: (...args: any[]) => any;
294
- onMouseleave?: (...args: any[]) => any;
295
- onItemVisible?: (...args: any[]) => any;
296
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
297
- click: (...args: any[]) => void;
298
- contextmenu: (...args: any[]) => void;
299
- dragenter: (...args: any[]) => void;
300
- dragleave: (...args: any[]) => void;
301
- dragover: (...args: any[]) => void;
302
- dragstart: (...args: any[]) => void;
303
- drop: (...args: any[]) => void;
304
- mouseleave: (...args: any[]) => void;
305
- itemVisible: (...args: any[]) => void;
306
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
307
- $slots: {
308
- default?(_: {}): any;
309
- };
310
- })>, dimension: ImageDimension) => any;
311
139
  fileDropped: (id: string) => any;
312
140
  "update:modelValue": (value: Resource[]) => any;
313
141
  fileClick: (options: FileActionOptions) => any;
@@ -317,159 +145,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
317
145
  sortBy: string;
318
146
  sortDir: SortDir;
319
147
  }) => any;
320
- onRowMounted?: (item: Resource, rowElement: ComponentPublicInstance<{
321
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
322
- onClick?: (...args: any[]) => any;
323
- onContextmenu?: (...args: any[]) => any;
324
- onDragenter?: (...args: any[]) => any;
325
- onDragleave?: (...args: any[]) => any;
326
- onDragover?: (...args: any[]) => any;
327
- onDragstart?: (...args: any[]) => any;
328
- onDrop?: (...args: any[]) => any;
329
- onMouseleave?: (...args: any[]) => any;
330
- onItemVisible?: (...args: any[]) => any;
331
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
332
- click: (...args: any[]) => void;
333
- contextmenu: (...args: any[]) => void;
334
- dragenter: (...args: any[]) => void;
335
- dragleave: (...args: any[]) => void;
336
- dragover: (...args: any[]) => void;
337
- dragstart: (...args: any[]) => void;
338
- drop: (...args: any[]) => void;
339
- mouseleave: (...args: any[]) => void;
340
- itemVisible: (...args: any[]) => void;
341
- }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
342
- observerTarget: HTMLTableRowElement;
343
- }, HTMLTableRowElement, import('vue').ComponentProvideOptions, {
344
- P: {};
345
- B: {};
346
- D: {};
347
- C: {};
348
- M: {};
349
- Defaults: {};
350
- }, Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
351
- onClick?: (...args: any[]) => any;
352
- onContextmenu?: (...args: any[]) => any;
353
- onDragenter?: (...args: any[]) => any;
354
- onDragleave?: (...args: any[]) => any;
355
- onDragover?: (...args: any[]) => any;
356
- onDragstart?: (...args: any[]) => any;
357
- onDrop?: (...args: any[]) => any;
358
- onMouseleave?: (...args: any[]) => any;
359
- onItemVisible?: (...args: any[]) => any;
360
- }>, {}, {}, {}, {}, {}>;
361
- __isFragment?: never;
362
- __isTeleport?: never;
363
- __isSuspense?: never;
364
- } & import('vue').ComponentOptionsBase<Readonly<import('node_modules/@opencloud-eu/design-system/src/components/OcTableTr/OcTableTr.vue').Props> & Readonly<{
365
- onClick?: (...args: any[]) => any;
366
- onContextmenu?: (...args: any[]) => any;
367
- onDragenter?: (...args: any[]) => any;
368
- onDragleave?: (...args: any[]) => any;
369
- onDragover?: (...args: any[]) => any;
370
- onDragstart?: (...args: any[]) => any;
371
- onDrop?: (...args: any[]) => any;
372
- onMouseleave?: (...args: any[]) => any;
373
- onItemVisible?: (...args: any[]) => any;
374
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
375
- click: (...args: any[]) => void;
376
- contextmenu: (...args: any[]) => void;
377
- dragenter: (...args: any[]) => void;
378
- dragleave: (...args: any[]) => void;
379
- dragover: (...args: any[]) => void;
380
- dragstart: (...args: any[]) => void;
381
- drop: (...args: any[]) => void;
382
- mouseleave: (...args: any[]) => void;
383
- itemVisible: (...args: any[]) => void;
384
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
385
- $slots: {
386
- default?(_: {}): any;
387
- };
388
- })>, dimension: ImageDimension) => any;
389
148
  onFileDropped?: (id: string) => any;
390
149
  "onUpdate:modelValue"?: (value: Resource[]) => any;
391
150
  onFileClick?: (options: FileActionOptions) => any;
392
151
  "onUpdate:selectedIds"?: (selectedIds: string[]) => any;
393
152
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
394
- contextMenuButton: {
395
- $: import('vue').ComponentInternalInstance;
396
- $data: {};
397
- $props: {
398
- readonly item: Resource;
399
- readonly resourceDomSelector?: (resource: Resource) => string;
400
- readonly title?: string;
401
- readonly onQuickActionClicked?: (payload: {
402
- event: MouseEvent;
403
- dropdown: unknown;
404
- }) => any;
405
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
406
- $attrs: {
407
- [x: string]: unknown;
408
- };
409
- $refs: {
410
- [x: string]: unknown;
411
- };
412
- $slots: Readonly<{
413
- [name: string]: import('vue').Slot<any>;
414
- }>;
415
- $root: ComponentPublicInstance | null;
416
- $parent: ComponentPublicInstance | null;
417
- $host: Element | null;
418
- $emit: (event: "quickActionClicked", payload: {
419
- event: MouseEvent;
420
- dropdown: unknown;
421
- }) => void;
422
- $el: any;
423
- $options: import('vue').ComponentOptionsBase<Readonly<{
424
- item: Resource;
425
- resourceDomSelector?: (resource: Resource) => string;
426
- title?: string;
427
- }> & Readonly<{
428
- onQuickActionClicked?: (payload: {
429
- event: MouseEvent;
430
- dropdown: unknown;
431
- }) => any;
432
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
433
- quickActionClicked: (payload: {
434
- event: MouseEvent;
435
- dropdown: unknown;
436
- }) => any;
437
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
438
- beforeCreate?: (() => void) | (() => void)[];
439
- created?: (() => void) | (() => void)[];
440
- beforeMount?: (() => void) | (() => void)[];
441
- mounted?: (() => void) | (() => void)[];
442
- beforeUpdate?: (() => void) | (() => void)[];
443
- updated?: (() => void) | (() => void)[];
444
- activated?: (() => void) | (() => void)[];
445
- deactivated?: (() => void) | (() => void)[];
446
- beforeDestroy?: (() => void) | (() => void)[];
447
- beforeUnmount?: (() => void) | (() => void)[];
448
- destroyed?: (() => void) | (() => void)[];
449
- unmounted?: (() => void) | (() => void)[];
450
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
451
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
452
- errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
453
- };
454
- $forceUpdate: () => void;
455
- $nextTick: typeof import('vue').nextTick;
456
- $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;
457
- } & Readonly<{}> & Omit<Readonly<{
458
- item: Resource;
459
- resourceDomSelector?: (resource: Resource) => string;
460
- title?: string;
461
- }> & Readonly<{
462
- onQuickActionClicked?: (payload: {
463
- event: MouseEvent;
464
- dropdown: unknown;
465
- }) => any;
466
- }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
467
- $slots: {
468
- contextMenu?(_: {
469
- item: Resource;
470
- }): any;
471
- };
472
- };
473
153
  ghostElement: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
474
154
  previewItems: {
475
155
  type: import('vue').PropType<Resource[]>;
@@ -481,34 +161,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
481
161
  showThirdLayer(): boolean;
482
162
  itemCount(): number;
483
163
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, {
484
- ResourceIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
485
- resource: {
486
- type: import('vue').PropType<Resource | SpaceResource>;
487
- required: true;
488
- };
489
- size: {
490
- type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
491
- default: string;
492
- validator: (value: string) => boolean;
493
- };
494
- }>, {
495
- icon: import('vue').ComputedRef<import('../..').IconType>;
496
- isSpace: import('vue').ComputedRef<boolean>;
497
- isFolder: import('vue').ComputedRef<boolean>;
498
- isDisabledSpace: import('vue').ComputedRef<boolean>;
499
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
500
- resource: {
501
- type: import('vue').PropType<Resource | SpaceResource>;
502
- required: true;
503
- };
504
- size: {
505
- type: import('vue').PropType<import('@opencloud-eu/design-system/helpers').SizeType>;
506
- default: string;
507
- validator: (value: string) => boolean;
508
- };
509
- }>> & Readonly<{}>, {
510
- size: import('@opencloud-eu/design-system/helpers').SizeType;
511
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
164
+ ResourceIcon: import('vue').DefineComponent<{
165
+ resource: Resource | SpaceResource;
166
+ size?: import('@opencloud-eu/design-system/helpers').SizeType;
167
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
168
+ resource: Resource | SpaceResource;
169
+ size?: import('@opencloud-eu/design-system/helpers').SizeType;
170
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
512
171
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
513
172
  P: {};
514
173
  B: {};
@@ -1,16 +1,10 @@
1
- import { ComponentPublicInstance } from 'vue';
2
1
  import { Resource, SpaceResource } from '@opencloud-eu/web-client';
3
- import { CreateTargetRouteOptions } from '../../helpers';
4
- import { ImageDimension } from '../../constants';
5
- import { default as ResourceTile } from './ResourceTile.vue';
6
- import { SortDir, SortField, FileActionOptions } from '../../composables';
7
- import { SizeType } from '@opencloud-eu/design-system/helpers';
8
- type ResourceTileRef = ComponentPublicInstance<typeof ResourceTile>;
2
+ import { SortField, FileActionOptions } from '../../composables';
3
+ import { SizeType, SortDir } from '@opencloud-eu/design-system/helpers';
9
4
  type __VLS_Props = {
10
5
  resources?: Resource[];
11
6
  selectedIds?: string[];
12
7
  isSelectable?: boolean;
13
- targetRouteCallback?: (arg: CreateTargetRouteOptions) => unknown;
14
8
  space?: SpaceResource;
15
9
  sortFields?: SortField[];
16
10
  sortBy?: string;
@@ -64,34 +58,13 @@ declare function __VLS_template(): {
64
58
  showThirdLayer(): boolean;
65
59
  itemCount(): number;
66
60
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, {
67
- ResourceIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
68
- resource: {
69
- type: import('vue').PropType<Resource | SpaceResource>;
70
- required: true;
71
- };
72
- size: {
73
- type: import('vue').PropType<SizeType>;
74
- default: string;
75
- validator: (value: string) => boolean;
76
- };
77
- }>, {
78
- icon: import('vue').ComputedRef<import('../..').IconType>;
79
- isSpace: import('vue').ComputedRef<boolean>;
80
- isFolder: import('vue').ComputedRef<boolean>;
81
- isDisabledSpace: import('vue').ComputedRef<boolean>;
82
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
83
- resource: {
84
- type: import('vue').PropType<Resource | SpaceResource>;
85
- required: true;
86
- };
87
- size: {
88
- type: import('vue').PropType<SizeType>;
89
- default: string;
90
- validator: (value: string) => boolean;
91
- };
92
- }>> & Readonly<{}>, {
93
- size: SizeType;
94
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
61
+ ResourceIcon: import('vue').DefineComponent<{
62
+ resource: Resource | SpaceResource;
63
+ size?: SizeType;
64
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
65
+ resource: Resource | SpaceResource;
66
+ size?: SizeType;
67
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
95
68
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
96
69
  P: {};
97
70
  B: {};
@@ -119,7 +92,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
119
92
  sortBy: string;
120
93
  sortDir: SortDir;
121
94
  }) => any;
122
- rowMounted: (resource: Resource, compnent: ResourceTileRef, dimension: ImageDimension) => any;
123
95
  fileDropped: (id: string) => any;
124
96
  itemVisible: (resource: Resource) => any;
125
97
  fileClick: (options: FileActionOptions) => any;
@@ -129,7 +101,6 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
129
101
  sortBy: string;
130
102
  sortDir: SortDir;
131
103
  }) => any;
132
- onRowMounted?: (resource: Resource, compnent: ResourceTileRef, dimension: ImageDimension) => any;
133
104
  onFileDropped?: (id: string) => any;
134
105
  onItemVisible?: (resource: Resource) => any;
135
106
  onFileClick?: (options: FileActionOptions) => any;
@@ -146,34 +117,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
146
117
  showThirdLayer(): boolean;
147
118
  itemCount(): number;
148
119
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, {
149
- ResourceIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
150
- resource: {
151
- type: import('vue').PropType<Resource | SpaceResource>;
152
- required: true;
153
- };
154
- size: {
155
- type: import('vue').PropType<SizeType>;
156
- default: string;
157
- validator: (value: string) => boolean;
158
- };
159
- }>, {
160
- icon: import('vue').ComputedRef<import('../..').IconType>;
161
- isSpace: import('vue').ComputedRef<boolean>;
162
- isFolder: import('vue').ComputedRef<boolean>;
163
- isDisabledSpace: import('vue').ComputedRef<boolean>;
164
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
165
- resource: {
166
- type: import('vue').PropType<Resource | SpaceResource>;
167
- required: true;
168
- };
169
- size: {
170
- type: import('vue').PropType<SizeType>;
171
- default: string;
172
- validator: (value: string) => boolean;
173
- };
174
- }>> & Readonly<{}>, {
175
- size: SizeType;
176
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
120
+ ResourceIcon: import('vue').DefineComponent<{
121
+ resource: Resource | SpaceResource;
122
+ size?: SizeType;
123
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
124
+ resource: Resource | SpaceResource;
125
+ size?: SizeType;
126
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
177
127
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
178
128
  P: {};
179
129
  B: {};
@@ -15,13 +15,12 @@ type __VLS_Props = {
15
15
  };
16
16
  declare function __VLS_template(): {
17
17
  attrs: Partial<{}>;
18
- slots: {
19
- image?(_: {
20
- item: Item;
21
- }): any;
22
- item?(_: {
23
- item: Item;
24
- }): any;
18
+ slots: Readonly<{
19
+ image?: (item: Item) => unknown;
20
+ item?: (item: Item) => unknown;
21
+ }> & {
22
+ image?: (item: Item) => unknown;
23
+ item?: (item: Item) => unknown;
25
24
  };
26
25
  refs: {
27
26
  filterInputRef: {
@@ -122,9 +121,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
122
121
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
123
122
  setSelectedItemsBasedOnQuery: () => void;
124
123
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
125
- selectionChange: (selectedItems: Item[]) => any;
124
+ selectionChange: (selectedItems: any[]) => any;
126
125
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
127
- onSelectionChange?: (selectedItems: Item[]) => any;
126
+ onSelectionChange?: (selectedItems: any[]) => any;
128
127
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
129
128
  filterInputRef: {
130
129
  $: import('vue').ComponentInternalInstance;
@@ -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;
@@ -1,29 +1,30 @@
1
1
  export * from './useFileActions';
2
- export * from './useFileActionsEnableSync';
3
- export * from './useFileActionsToggleHideShare';
4
2
  export * from './useFileActionsCopy';
5
3
  export * from './useFileActionsCopyPermanentLink';
6
- export * from './useFileActionsDisableSync';
4
+ export * from './useFileActionsCreateLink';
5
+ export * from './useFileActionsCreateNewFile';
6
+ export * from './useFileActionsCreateNewFolder';
7
+ export * from './useFileActionsCreateNewShortcut';
8
+ export * from './useFileActionsCreateSpaceFromResource';
7
9
  export * from './useFileActionsDelete';
10
+ export * from './useFileActionsDisableSync';
8
11
  export * from './useFileActionsDownloadArchive';
9
12
  export * from './useFileActionsDownloadFile';
10
13
  export * from './useFileActionsEmptyTrashBin';
14
+ export * from './useFileActionsEnableSync';
11
15
  export * from './useFileActionsFavorite';
12
16
  export * from './useFileActionsMove';
13
17
  export * from './useFileActionsNavigate';
18
+ export * from './useFileActionsOpenWithDefault';
19
+ export * from './useFileActionsOpenShortcut';
20
+ export * from './useFileActionsOpenWithApp';
14
21
  export * from './useFileActionsPaste';
15
22
  export * from './useFileActionsRename';
16
23
  export * from './useFileActionsRestore';
24
+ export * from './useFileActionsSaveAs';
17
25
  export * from './useFileActionsSetImage';
18
26
  export * from './useFileActionsShowActions';
19
27
  export * from './useFileActionsShowDetails';
20
28
  export * from './useFileActionsShowShares';
21
- export * from './useFileActionsCreateSpaceFromResource';
22
- export * from './useFileActionsCreateNewFolder';
23
- export * from './useFileActionsCreateNewFile';
24
- export * from './useFileActionsCreateNewShortcut';
25
- export * from './useFileActionsOpenShortcut';
26
- export * from './useFileActionsCreateLink';
27
- export * from './useFileActionsOpenWithApp';
28
- export * from './useFileActionsSaveAs';
29
+ export * from './useFileActionsToggleHideShare';
29
30
  export * from './useFileActionsUndoDelete';
@@ -2,8 +2,6 @@ import { Resource, SpaceResource } from '@opencloud-eu/web-client';
2
2
  import { Action, FileAction, FileActionOptions } from '../../actions';
3
3
  import { ApplicationFileExtension } from '../../../apps';
4
4
  import { RouteRecordName } from 'vue-router';
5
- export declare const EDITOR_MODE_EDIT = "edit";
6
- export declare const EDITOR_MODE_CREATE = "create";
7
5
  export interface GetFileActionsOptions extends FileActionOptions {
8
6
  omitSystemActions?: boolean;
9
7
  }
@@ -11,11 +9,8 @@ export interface FileActionOptionsWithEvent extends FileActionOptions<Resource>
11
9
  event?: MouseEvent;
12
10
  }
13
11
  export declare const useFileActions: () => {
14
- editorActions: import('vue').ComputedRef<FileAction[]>;
15
- defaultEditorActions: import('vue').ComputedRef<FileAction[]>;
16
- systemActions: import('vue').ComputedRef<Action<import('../types').ActionOptions>[]>;
17
12
  getDefaultAction: (options: GetFileActionsOptions) => Action | undefined;
18
- getAllAvailableActions: (options: GetFileActionsOptions) => (Action<import('../types').ActionOptions> | FileAction)[];
13
+ getAllOpenWithActions: (options: GetFileActionsOptions) => (Action<import('../types').ActionOptions> | FileAction)[];
19
14
  getEditorRouteOpts: (routeName: RouteRecordName, space: SpaceResource, resource: Resource, remoteItemId: string, templateId?: string) => {
20
15
  name: import('vue-router').RouteRecordNameGeneric;
21
16
  params: {
@@ -28,5 +23,5 @@ export declare const useFileActions: () => {
28
23
  };
29
24
  };
30
25
  openEditor: (appFileExtension: ApplicationFileExtension, space: SpaceResource, resource: Resource) => void;
31
- triggerDefaultAction: (options: FileActionOptions) => void;
26
+ triggerDefaultAction: (options: GetFileActionsOptions) => void;
32
27
  };