@opencloud-eu/web-pkg 4.2.0 → 4.3.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 (51) hide show
  1. package/dist/{TextEditor-DjjOAW4z.js → TextEditor-Cn7QTWpj.js} +43 -40
  2. package/dist/assets/worker-B8_1fnv6.js +40 -0
  3. package/dist/assets/worker-CexULVXL.js +40 -0
  4. package/dist/assets/{worker-CvdOYtKy.js → worker-DW5HxaGD.js} +20 -30
  5. package/dist/{index-R7qeOPe_.js → index-BAXp6cDe.js} +17735 -18054
  6. package/dist/src/components/AppBar/AppBar.vue.d.ts +2 -0
  7. package/dist/src/components/BatchActions.vue.d.ts +1 -0
  8. package/dist/src/components/ContextActions/ActionMenuItem.vue.d.ts +1 -0
  9. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +1 -0
  10. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +32 -38
  11. package/dist/src/components/CreateLinkModal.vue.d.ts +19 -159
  12. package/dist/src/components/FilesList/ContextActions.vue.d.ts +1 -0
  13. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +480 -1481
  14. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +4 -2
  15. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +5 -5
  16. package/dist/src/components/ItemFilter.vue.d.ts +4 -0
  17. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +60 -85
  18. package/dist/src/composables/actions/types.d.ts +1 -1
  19. package/dist/src/composables/clipboard/useClipboard.d.ts +3 -0
  20. package/dist/src/composables/filesList/useResourceRouteResolver.d.ts +3 -1
  21. package/dist/src/composables/links/index.d.ts +1 -0
  22. package/dist/src/composables/links/useCopyLink.d.ts +14 -0
  23. package/dist/src/composables/piniaStores/capabilities.d.ts +40 -1
  24. package/dist/src/composables/piniaStores/config/config.d.ts +4 -1
  25. package/dist/src/composables/piniaStores/groupwareConfig/groupwareConfig.d.ts +297 -0
  26. package/dist/src/composables/piniaStores/groupwareConfig/index.d.ts +2 -0
  27. package/dist/src/composables/piniaStores/groupwareConfig/types.d.ts +140 -0
  28. package/dist/src/composables/piniaStores/index.d.ts +1 -0
  29. package/dist/src/composables/piniaStores/messages.d.ts +6 -6
  30. package/dist/src/composables/resources/index.d.ts +2 -0
  31. package/dist/src/composables/resources/useGetResourceContext.d.ts +1 -1
  32. package/dist/src/composables/resources/useResourceViewDrag.d.ts +58 -0
  33. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +77 -0
  34. package/dist/src/composables/selection/index.d.ts +0 -1
  35. package/dist/src/helpers/index.d.ts +1 -0
  36. package/dist/src/helpers/promise.d.ts +2 -0
  37. package/dist/src/helpers/resource/index.d.ts +1 -0
  38. package/dist/src/helpers/resource/isItemInCurrentFolder.d.ts +5 -0
  39. package/dist/src/index.d.ts +0 -1
  40. package/dist/src/services/archiver.d.ts +1 -0
  41. package/dist/src/services/cache.d.ts +1 -0
  42. package/dist/web-pkg.js +348 -334
  43. package/dist/web-pkg.umd.cjs +46 -66
  44. package/package.json +4 -4
  45. package/src/index.ts +0 -3
  46. package/dist/assets/worker-CGWVcik_.js +0 -50
  47. package/dist/assets/worker-DLek5ZML.js +0 -50
  48. package/dist/src/cern/composables/index.d.ts +0 -1
  49. package/dist/src/cern/composables/useGroupingSettings.d.ts +0 -34
  50. package/dist/src/cern/index.d.ts +0 -1
  51. package/dist/src/composables/selection/useToggleTile.d.ts +0 -4
@@ -223,6 +223,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
223
223
  disabled: boolean;
224
224
  appearance: import('@opencloud-eu/design-system/helpers').AppearanceType;
225
225
  }>;
226
+ actionIcon: import('vue').ComputedRef<string>;
226
227
  }, {}, {
227
228
  hasExternalImageIcon(): boolean;
228
229
  componentListeners(): {
@@ -365,6 +366,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
365
366
  disabled: boolean;
366
367
  appearance: import('@opencloud-eu/design-system/helpers').AppearanceType;
367
368
  }>;
369
+ actionIcon: import('vue').ComputedRef<string>;
368
370
  }, {}, {
369
371
  hasExternalImageIcon(): boolean;
370
372
  componentListeners(): {
@@ -73,6 +73,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
73
73
  disabled: boolean;
74
74
  appearance: import('@opencloud-eu/design-system/helpers').AppearanceType;
75
75
  }>;
76
+ actionIcon: import('vue').ComputedRef<string>;
76
77
  }, {}, {
77
78
  hasExternalImageIcon(): boolean;
78
79
  componentListeners(): {
@@ -43,6 +43,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
43
43
  disabled: boolean;
44
44
  appearance: AppearanceType;
45
45
  }>;
46
+ actionIcon: import('vue').ComputedRef<string>;
46
47
  }, {}, {
47
48
  hasExternalImageIcon(): boolean;
48
49
  componentListeners(): {
@@ -84,6 +84,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
84
84
  disabled: boolean;
85
85
  appearance: AppearanceType;
86
86
  }>;
87
+ actionIcon: import('vue').ComputedRef<string>;
87
88
  }, {}, {
88
89
  hasExternalImageIcon(): boolean;
89
90
  componentListeners(): {
@@ -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,163 +1,23 @@
1
- import { DateTime } from 'luxon';
2
- import { ComponentPublicInstance, PropType } from 'vue';
3
1
  import { Modal } from '../composables';
4
- import { LinkShare, SpaceResource, Resource } from '@opencloud-eu/web-client';
5
- import { OcButton } from '@opencloud-eu/design-system/components';
6
- import { SharingLinkType } from '@opencloud-eu/web-client/graph/generated';
7
- type RoleRef = ComponentPublicInstance<typeof OcButton>;
8
- interface CallbackArgs {
9
- result: PromiseSettledResult<LinkShare>[];
10
- password: string;
11
- options?: {
12
- copyPassword?: boolean;
13
- };
14
- }
15
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
16
- modal: {
17
- type: PropType<Modal>;
18
- required: true;
19
- };
20
- resources: {
21
- type: PropType<Resource[]>;
22
- required: true;
23
- };
24
- space: {
25
- type: PropType<SpaceResource>;
26
- default: any;
27
- };
28
- callbackFn: {
29
- type: PropType<(args: CallbackArgs) => Promise<void> | void>;
30
- default: any;
31
- };
32
- }>, {
33
- roleRefs: import('vue').Ref<Record<string, RoleRef>, Record<string, RoleRef>>;
34
- password: {
35
- value: string;
36
- error: any;
37
- };
38
- passwordEnforced: import('vue').ComputedRef<boolean>;
39
- passwordPolicy: PasswordPolicy;
40
- generatePasswordMethod: () => string;
41
- passwordInputKey: import('vue').Ref<string, string>;
42
- selectedExpiry: import('vue').Ref<DateTime<boolean>, DateTime<boolean>>;
43
- availableLinkTypes: import('vue').ComputedRef<SharingLinkType[]>;
44
- selectedType: import('vue').Ref<SharingLinkType, SharingLinkType>;
45
- selectedTypeIcon: import('vue').ComputedRef<string>;
46
- selectedTypeDisplayName: import('vue').ComputedRef<string>;
47
- selectedTypeDescription: import('vue').ComputedRef<string>;
48
- isSelectedLinkType: (type: SharingLinkType) => boolean;
49
- updateSelectedLinkType: (type: SharingLinkType) => void;
50
- updatePassword: (value: string) => void;
51
- getLinkRoleByType: (type: SharingLinkType) => import('@opencloud-eu/web-client').ShareRole;
52
- confirmButtonText: import('vue').ComputedRef<string>;
53
- isAdvancedMode: import('vue').Ref<boolean, boolean>;
54
- setAdvancedMode: () => void;
55
- onExpiryDateChanged: ({ date, error }: {
56
- date: DateTime;
57
- error: boolean;
58
- }) => void;
59
- confirmButtonDisabled: import('vue').ComputedRef<boolean>;
60
- DateTime: typeof DateTime;
61
- currentTheme: import('vue').Ref<{
62
- isDark: boolean;
63
- label: string;
64
- name?: string;
65
- slogan?: string;
66
- logo?: string;
67
- logoMobile?: string;
68
- urls?: {
69
- accessDeniedHelp?: string;
70
- imprint?: string;
71
- privacy?: string;
72
- accessibility?: string;
73
- };
74
- shareRoles?: Record<string, {
75
- iconName: string;
76
- }>;
77
- designTokens?: {
78
- roles?: Record<string, string>;
79
- colorPalette?: Record<string, string>;
80
- fontFamily?: string;
81
- };
82
- favicon?: string;
83
- background?: string;
84
- }, {
85
- isDark: boolean;
86
- label: string;
87
- name?: string;
88
- slogan?: string;
89
- logo?: string;
90
- logoMobile?: string;
91
- urls?: {
92
- accessDeniedHelp?: string;
93
- imprint?: string;
94
- privacy?: string;
95
- accessibility?: string;
96
- };
97
- shareRoles?: Record<string, {
98
- iconName: string;
99
- }>;
100
- designTokens?: {
101
- roles?: Record<string, string>;
102
- colorPalette?: Record<string, string>;
103
- fontFamily?: string;
104
- };
105
- favicon?: string;
106
- background?: string;
107
- }>;
2
+ import { SpaceResource, Resource } from '@opencloud-eu/web-client';
3
+ type __VLS_Props = {
4
+ modal: Modal;
5
+ resources: Resource[];
6
+ space?: SpaceResource;
7
+ };
8
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
108
9
  onConfirm: (options?: {
109
10
  copyPassword?: boolean;
110
- }) => Promise<never>;
111
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("cancel" | "confirm")[], "cancel" | "confirm", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
112
- modal: {
113
- type: PropType<Modal>;
114
- required: true;
115
- };
116
- resources: {
117
- type: PropType<Resource[]>;
118
- required: true;
119
- };
120
- space: {
121
- type: PropType<SpaceResource>;
122
- default: any;
123
- };
124
- callbackFn: {
125
- type: PropType<(args: CallbackArgs) => Promise<void> | void>;
126
- default: any;
127
- };
128
- }>> & Readonly<{
129
- onCancel?: (...args: any[]) => any;
130
- onConfirm?: (...args: any[]) => any;
131
- }>, {
132
- space: SpaceResource;
133
- callbackFn: (args: CallbackArgs) => Promise<void> | void;
134
- }, {}, {
135
- LinkRoleDropdown: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
136
- modelValue: {
137
- type: PropType<SharingLinkType>;
138
- required: true;
139
- };
140
- availableLinkTypeOptions: {
141
- type: PropType<SharingLinkType[]>;
142
- required: true;
143
- };
144
- }>, {
145
- isSelectedType: (type: SharingLinkType) => boolean;
146
- updateSelectedType: (type: SharingLinkType) => void;
147
- currentLinkRoleLabel: import('vue').ComputedRef<string>;
148
- dropUuid: string;
149
- getLinkRoleByType: (type: SharingLinkType) => import('@opencloud-eu/web-client').ShareRole;
150
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
151
- modelValue: {
152
- type: PropType<SharingLinkType>;
153
- required: true;
154
- };
155
- availableLinkTypeOptions: {
156
- type: PropType<SharingLinkType[]>;
157
- required: true;
158
- };
159
- }>> & Readonly<{
160
- "onUpdate:modelValue"?: (...args: any[]) => any;
161
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
162
- }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
11
+ }) => Promise<void>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
13
+ cancel: () => any;
14
+ confirm: (options?: {
15
+ copyPassword?: boolean;
16
+ }) => any;
17
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onCancel?: () => any;
19
+ onConfirm?: (options?: {
20
+ copyPassword?: boolean;
21
+ }) => any;
22
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
163
23
  export default _default;
@@ -96,6 +96,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
96
96
  disabled: boolean;
97
97
  appearance: import('@opencloud-eu/design-system/helpers').AppearanceType;
98
98
  }>;
99
+ actionIcon: import('vue').ComputedRef<string>;
99
100
  }, {}, {
100
101
  hasExternalImageIcon(): boolean;
101
102
  componentListeners(): {