@opencloud-eu/web-pkg 4.2.1 → 5.0.0-alpha.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.
Files changed (59) hide show
  1. package/dist/{TextEditor-BEOcGAsh.js → TextEditor-uEaAtt7z.js} +44 -42
  2. package/dist/assets/worker-Br2EoHIh.js +40 -0
  3. package/dist/assets/{worker-DkMHRpBn.js → worker-CL8AMTxB.js} +20 -30
  4. package/dist/assets/worker-SrzUf4Ns.js +40 -0
  5. package/dist/{index-C-VmIu2P.js → index-BwyOzVbn.js} +18618 -18873
  6. package/dist/src/apps/types.d.ts +1 -0
  7. package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -0
  8. package/dist/src/components/BatchActions.vue.d.ts +1 -0
  9. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +1 -0
  10. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +1 -0
  11. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +2 -2
  12. package/dist/src/components/CreateLinkModal.vue.d.ts +17 -141
  13. package/dist/src/components/FilesList/ContextActions.vue.d.ts +1 -0
  14. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -28
  15. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +5 -44
  16. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +174 -1533
  17. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +4 -2
  18. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +19 -67
  19. package/dist/src/components/ItemFilter.vue.d.ts +12 -9
  20. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +60 -85
  21. package/dist/src/composables/actions/files/index.d.ts +12 -11
  22. package/dist/src/composables/actions/files/useFileActions.d.ts +2 -7
  23. package/dist/src/composables/actions/files/useFileActionsOpenWithDefault.d.ts +4 -0
  24. package/dist/src/composables/actions/types.d.ts +2 -2
  25. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +8 -4
  26. package/dist/src/composables/folderLink/useFolderLink.d.ts +2 -2
  27. package/dist/src/composables/keyboardActions/useInterceptModifierClick.d.ts +1 -1
  28. package/dist/src/composables/piniaStores/apps.d.ts +6 -0
  29. package/dist/src/composables/piniaStores/capabilities.d.ts +27 -0
  30. package/dist/src/composables/piniaStores/config/config.d.ts +4 -1
  31. package/dist/src/composables/piniaStores/groupwareConfig/groupwareConfig.d.ts +297 -0
  32. package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +2 -0
  33. package/dist/src/composables/piniaStores/groupwareConfig/types.d.ts +140 -0
  34. package/dist/src/composables/piniaStores/index.d.ts +1 -0
  35. package/dist/src/composables/piniaStores/messages.d.ts +12 -12
  36. package/dist/src/composables/resources/index.d.ts +4 -0
  37. package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +11 -0
  38. package/dist/src/composables/resources/useResourceViewDrag.d.ts +37 -0
  39. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +67 -0
  40. package/dist/src/composables/resources/useResourceViewSelection.d.ts +13 -0
  41. package/dist/src/composables/selection/index.d.ts +0 -1
  42. package/dist/src/composables/sort/useSort.d.ts +2 -0
  43. package/dist/src/constants.d.ts +3 -0
  44. package/dist/src/helpers/contextMenuDropdown.d.ts +1 -1
  45. package/dist/src/helpers/index.d.ts +1 -1
  46. package/dist/src/helpers/promise.d.ts +2 -0
  47. package/dist/src/index.d.ts +0 -1
  48. package/dist/web-pkg.js +345 -332
  49. package/dist/web-pkg.umd.cjs +47 -66
  50. package/package.json +4 -4
  51. package/src/index.ts +0 -3
  52. package/dist/assets/worker-C2IPj8GP.js +0 -50
  53. package/dist/assets/worker-CQqhh0uK.js +0 -50
  54. package/dist/src/cern/composables/index.d.ts +0 -1
  55. package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -34
  56. package/dist/src/cern/index.d.ts +0 -1
  57. package/dist/src/composables/selection/useToggleTile.d.ts +0 -4
  58. package/dist/src/helpers/folderLink/index.d.ts +0 -1
  59. package/dist/src/helpers/folderLink/types.d.ts +0 -6
@@ -110,13 +110,15 @@ declare function __VLS_template(): {
110
110
  };
111
111
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
112
112
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
113
- click: (event: MouseEvent | KeyboardEvent) => any;
114
113
  contextmenu: (event: MouseEvent | KeyboardEvent) => any;
115
114
  itemVisible: () => any;
115
+ fileNameClicked: (event: MouseEvent | KeyboardEvent) => any;
116
+ tileClicked: (event: [Resource, MouseEvent | KeyboardEvent]) => any;
116
117
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
117
- onClick?: (event: MouseEvent | KeyboardEvent) => any;
118
118
  onContextmenu?: (event: MouseEvent | KeyboardEvent) => any;
119
119
  onItemVisible?: () => any;
120
+ onFileNameClicked?: (event: MouseEvent | KeyboardEvent) => any;
121
+ onTileClicked?: (event: [Resource, MouseEvent | KeyboardEvent]) => any;
120
122
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
121
123
  observerTarget: {
122
124
  $: import('vue').ComponentInternalInstance;
@@ -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 } from '../../composables';
2
+ import { SortDir, SortField, FileActionOptions } from '../../composables';
7
3
  import { SizeType } from '@opencloud-eu/design-system/helpers';
8
- type ResourceTileRef = ComponentPublicInstance<typeof ResourceTile>;
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;
@@ -53,7 +47,7 @@ declare function __VLS_template(): {
53
47
  }) => unknown;
54
48
  };
55
49
  refs: {
56
- ghostElementRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
50
+ ghostElement: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
57
51
  previewItems: {
58
52
  type: import('vue').PropType<Resource[]>;
59
53
  required: true;
@@ -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,21 +92,21 @@ 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;
97
+ fileClick: (options: FileActionOptions) => any;
125
98
  "update:selectedIds": (ids: string[]) => any;
126
99
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
127
100
  onSort?: (value: {
128
101
  sortBy: string;
129
102
  sortDir: SortDir;
130
103
  }) => any;
131
- onRowMounted?: (resource: Resource, compnent: ResourceTileRef, dimension: ImageDimension) => any;
132
104
  onFileDropped?: (id: string) => any;
133
105
  onItemVisible?: (resource: Resource) => any;
106
+ onFileClick?: (options: FileActionOptions) => any;
134
107
  "onUpdate:selectedIds"?: (ids: string[]) => any;
135
108
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
136
- ghostElementRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
109
+ ghostElement: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
137
110
  previewItems: {
138
111
  type: import('vue').PropType<Resource[]>;
139
112
  required: true;
@@ -144,34 +117,13 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
144
117
  showThirdLayer(): boolean;
145
118
  itemCount(): number;
146
119
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, {
147
- ResourceIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
148
- resource: {
149
- type: import('vue').PropType<Resource | SpaceResource>;
150
- required: true;
151
- };
152
- size: {
153
- type: import('vue').PropType<SizeType>;
154
- default: string;
155
- validator: (value: string) => boolean;
156
- };
157
- }>, {
158
- icon: import('vue').ComputedRef<import('../..').IconType>;
159
- isSpace: import('vue').ComputedRef<boolean>;
160
- isFolder: import('vue').ComputedRef<boolean>;
161
- isDisabledSpace: import('vue').ComputedRef<boolean>;
162
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
163
- resource: {
164
- type: import('vue').PropType<Resource | SpaceResource>;
165
- required: true;
166
- };
167
- size: {
168
- type: import('vue').PropType<SizeType>;
169
- default: string;
170
- validator: (value: string) => boolean;
171
- };
172
- }>> & Readonly<{}>, {
173
- size: SizeType;
174
- }, {}, {}, {}, 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>;
175
127
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
176
128
  P: {};
177
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: {
@@ -37,6 +36,7 @@ declare function __VLS_template(): {
37
36
  readonly defaultValue?: string;
38
37
  readonly disabled?: boolean;
39
38
  readonly label: string;
39
+ readonly inlineLabel?: boolean;
40
40
  readonly errorMessage?: string;
41
41
  readonly errorMessageDebouncedTime?: number;
42
42
  readonly fixMessageLine?: boolean;
@@ -45,6 +45,7 @@ declare function __VLS_template(): {
45
45
  readonly requiredMark?: boolean;
46
46
  readonly passwordPolicy?: import('@opencloud-eu/design-system/helpers').PasswordPolicy;
47
47
  readonly generatePasswordMethod?: (...args: unknown[]) => string;
48
+ readonly hasBorder?: boolean;
48
49
  readonly onChange?: (value: string) => any;
49
50
  readonly onFocus?: (value: string) => any;
50
51
  readonly "onUpdate:modelValue"?: (value: string) => any;
@@ -120,9 +121,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
120
121
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
121
122
  setSelectedItemsBasedOnQuery: () => void;
122
123
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
123
- selectionChange: (selectedItems: Item[]) => any;
124
+ selectionChange: (selectedItems: any[]) => any;
124
125
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
125
- onSelectionChange?: (selectedItems: Item[]) => any;
126
+ onSelectionChange?: (selectedItems: any[]) => any;
126
127
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
127
128
  filterInputRef: {
128
129
  $: import('vue').ComponentInternalInstance;
@@ -137,6 +138,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
137
138
  readonly defaultValue?: string;
138
139
  readonly disabled?: boolean;
139
140
  readonly label: string;
141
+ readonly inlineLabel?: boolean;
140
142
  readonly errorMessage?: string;
141
143
  readonly errorMessageDebouncedTime?: number;
142
144
  readonly fixMessageLine?: boolean;
@@ -145,6 +147,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
145
147
  readonly requiredMark?: boolean;
146
148
  readonly passwordPolicy?: import('@opencloud-eu/design-system/helpers').PasswordPolicy;
147
149
  readonly generatePasswordMethod?: (...args: unknown[]) => string;
150
+ readonly hasBorder?: boolean;
148
151
  readonly onChange?: (value: string) => any;
149
152
  readonly onFocus?: (value: string) => any;
150
153
  readonly "onUpdate:modelValue"?: (value: string) => any;
@@ -1,60 +1,40 @@
1
- import { PropType } from 'vue';
2
1
  import { SideBarPanelContext } from '../SideBar/types';
3
- import { SpaceResource, Resource } from '@opencloud-eu/web-client';
4
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
- isOpen: {
6
- type: BooleanConstructor;
7
- required: true;
8
- };
9
- activePanel: {
10
- type: StringConstructor;
11
- required: false;
12
- default: any;
13
- };
14
- space: {
15
- type: PropType<SpaceResource>;
16
- required: false;
17
- default: any;
18
- };
19
- }>, {
20
- loadedResource: import('vue').Ref<Resource, Resource>;
21
- setActiveSideBarPanel: (panelName: string) => void;
22
- closeSideBar: () => void;
23
- panelContext: import('vue').ComputedRef<SideBarPanelContext<SpaceResource, Resource, Resource>>;
24
- availablePanels: import('vue').ComputedRef<import('.').SideBarPanel<SpaceResource, Resource, Resource>[]>;
25
- isFileHeaderVisible: import('vue').ComputedRef<boolean>;
26
- isSpaceHeaderVisible: import('vue').ComputedRef<boolean>;
27
- isLoading: import('vue').ComputedRef<boolean>;
28
- loadSharesTask: import('vue-concurrency').Task<void, [resource: Resource]>;
29
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
- isOpen: {
31
- type: BooleanConstructor;
32
- required: true;
33
- };
34
- activePanel: {
35
- type: StringConstructor;
36
- required: false;
37
- default: any;
38
- };
39
- space: {
40
- type: PropType<SpaceResource>;
41
- required: false;
42
- default: any;
43
- };
44
- }>> & Readonly<{}>, {
45
- space: SpaceResource;
46
- activePanel: string;
47
- }, {}, {
48
- FileInfo: import('vue').DefineComponent<{
49
- isSubPanelActive?: boolean;
50
- }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
51
- isSubPanelActive?: boolean;
52
- }> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
53
- SpaceInfo: import('vue').DefineComponent<{}, {
54
- resource: SpaceResource;
55
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
56
- InnerSideBar: {
57
- new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
2
+ import { SpaceResource } from '@opencloud-eu/web-client';
3
+ type __VLS_Props = {
4
+ isOpen: boolean;
5
+ activePanel?: string;
6
+ space?: SpaceResource;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
9
+ sidebar: {
10
+ $: import('vue').ComponentInternalInstance;
11
+ $data: {};
12
+ $props: {
13
+ readonly isOpen: boolean;
14
+ readonly loading: boolean;
15
+ readonly availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
16
+ readonly panelContext: SideBarPanelContext<unknown, unknown, unknown>;
17
+ readonly activePanel?: string;
18
+ readonly onClose?: () => any;
19
+ readonly onSelectPanel?: (panel: string) => any;
20
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
21
+ $attrs: {
22
+ [x: string]: unknown;
23
+ };
24
+ $refs: {
25
+ [x: string]: unknown;
26
+ } & {
27
+ appSideBar: HTMLDivElement;
28
+ };
29
+ $slots: Readonly<{
30
+ [name: string]: import('vue').Slot<any>;
31
+ }>;
32
+ $root: import('vue').ComponentPublicInstance | null;
33
+ $parent: import('vue').ComponentPublicInstance | null;
34
+ $host: Element | null;
35
+ $emit: ((event: "close") => void) & ((event: "selectPanel", panel: string) => void);
36
+ $el: HTMLDivElement;
37
+ $options: import('vue').ComponentOptionsBase<Readonly<{
58
38
  isOpen: boolean;
59
39
  loading: boolean;
60
40
  availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
@@ -66,29 +46,27 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
66
46
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
67
47
  close: () => any;
68
48
  selectPanel: (panel: string) => any;
69
- }, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
70
- appSideBar: HTMLDivElement;
71
- }, HTMLDivElement, import('vue').ComponentProvideOptions, {
72
- P: {};
73
- B: {};
74
- D: {};
75
- C: {};
76
- M: {};
77
- Defaults: {};
78
- }, Readonly<{
79
- isOpen: boolean;
80
- loading: boolean;
81
- availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
82
- panelContext: SideBarPanelContext<unknown, unknown, unknown>;
83
- activePanel?: string;
84
- }> & Readonly<{
85
- onClose?: () => any;
86
- onSelectPanel?: (panel: string) => any;
87
- }>, {}, {}, {}, {}, {}>;
88
- __isFragment?: never;
89
- __isTeleport?: never;
90
- __isSuspense?: never;
91
- } & import('vue').ComponentOptionsBase<Readonly<{
49
+ }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
50
+ beforeCreate?: (() => void) | (() => void)[];
51
+ created?: (() => void) | (() => void)[];
52
+ beforeMount?: (() => void) | (() => void)[];
53
+ mounted?: (() => void) | (() => void)[];
54
+ beforeUpdate?: (() => void) | (() => void)[];
55
+ updated?: (() => void) | (() => void)[];
56
+ activated?: (() => void) | (() => void)[];
57
+ deactivated?: (() => void) | (() => void)[];
58
+ beforeDestroy?: (() => void) | (() => void)[];
59
+ beforeUnmount?: (() => void) | (() => void)[];
60
+ destroyed?: (() => void) | (() => void)[];
61
+ unmounted?: (() => void) | (() => void)[];
62
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
63
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
64
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
65
+ };
66
+ $forceUpdate: () => void;
67
+ $nextTick: typeof import('vue').nextTick;
68
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
69
+ } & Readonly<{}> & Omit<Readonly<{
92
70
  isOpen: boolean;
93
71
  loading: boolean;
94
72
  availablePanels: import('.').SideBarPanel<unknown, unknown, unknown>[];
@@ -97,10 +75,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
97
75
  }> & Readonly<{
98
76
  onClose?: () => any;
99
77
  onSelectPanel?: (panel: string) => any;
100
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
101
- close: () => any;
102
- selectPanel: (panel: string) => any;
103
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
78
+ }>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
104
79
  $slots: Readonly<{
105
80
  body: () => unknown;
106
81
  rootHeader: () => unknown;
@@ -110,6 +85,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
110
85
  rootHeader: () => unknown;
111
86
  subHeader: () => unknown;
112
87
  };
113
- });
114
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
88
+ };
89
+ }, any>;
115
90
  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
  };
@@ -0,0 +1,4 @@
1
+ import { FileAction } from '../types';
2
+ export declare const useFileActionsOpenWithDefault: () => {
3
+ actions: import('vue').ComputedRef<FileAction[]>;
4
+ };
@@ -8,7 +8,7 @@ export type ActionOptions = Record<string, unknown | unknown[]>;
8
8
  export interface Action<T = ActionOptions> {
9
9
  name: string;
10
10
  category?: StringUnionOrAnyString<'context' | 'share' | 'actions' | 'sidebar'>;
11
- icon: string;
11
+ icon: string | ((options?: ActionOptions) => string);
12
12
  iconFillType?: IconFillType;
13
13
  appearance?: AppearanceType;
14
14
  id?: string;
@@ -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,13 +1,17 @@
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, context?: any) => {
8
+ export declare const useResourceRouteResolver: (options?: ResourceRouteResolverOptions,
9
+ /** @deprecated */
10
+ context?: any) => {
11
11
  createFileAction: (resource: Resource) => void;
12
- createFolderLink: (createTargetRouteOptions: CreateTargetRouteOptions) => unknown;
12
+ createFolderLink: (createTargetRouteOptions: {
13
+ path: string;
14
+ resource: Resource | SpaceResource;
15
+ fileId?: string;
16
+ }) => import('vue-router').RouteLocationNamedRaw;
13
17
  };
@@ -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) => unknown;
6
- getParentFolderLink: (resource: Resource) => unknown;
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;