@opencloud-eu/web-pkg 6.1.0 → 6.2.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 (56) hide show
  1. package/dist/{TextEditor-B0ZZfO_w.js → TextEditor-CTRIgoeG.js} +1 -1
  2. package/dist/assets/worker-Bv-mZ-VL.js +25 -0
  3. package/dist/assets/worker-Dx2ttEp-.js +25 -0
  4. package/dist/assets/worker-nUcRt7qV.js +25 -0
  5. package/dist/{composables-TkULFBg4.js → composables-CAlEpA5b.js} +2457 -2450
  6. package/dist/src/components/AppBar/AppBar.vue.d.ts +34 -91
  7. package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -9
  8. package/dist/src/components/AppTopBar.vue.d.ts +3 -11
  9. package/dist/src/components/Avatars/UserAvatar.vue.d.ts +1 -9
  10. package/dist/src/components/ContextActions/ActionMenuDropItem.vue.d.ts +1 -9
  11. package/dist/src/components/ContextActions/ContextActionMenu.vue.d.ts +9 -27
  12. package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +15 -125
  13. package/dist/src/components/CreateLinkModal.vue.d.ts +6 -14
  14. package/dist/src/components/CreateShortcutModal.vue.d.ts +19 -133
  15. package/dist/src/components/CustomComponentTarget.vue.d.ts +1 -9
  16. package/dist/src/components/FilesList/ContextActions.vue.d.ts +9 -27
  17. package/dist/src/components/FilesList/ResourceGhostElement.vue.d.ts +7 -17
  18. package/dist/src/components/FilesList/ResourceIcon.vue.d.ts +1 -9
  19. package/dist/src/components/FilesList/ResourceListItem.vue.d.ts +5 -12
  20. package/dist/src/components/FilesList/ResourceName.vue.d.ts +3 -9
  21. package/dist/src/components/FilesList/ResourceStatusIndicators.vue.d.ts +1 -9
  22. package/dist/src/components/FilesList/ResourceTable.vue.d.ts +8 -16
  23. package/dist/src/components/FilesList/ResourceTile.vue.d.ts +6 -14
  24. package/dist/src/components/FilesList/ResourceTiles.vue.d.ts +7 -15
  25. package/dist/src/components/Filters/DateFilter.vue.d.ts +5 -13
  26. package/dist/src/components/ItemFilter.vue.d.ts +5 -13
  27. package/dist/src/components/NoContentMessage.vue.d.ts +1 -9
  28. package/dist/src/components/Search/ResourcePreview.vue.d.ts +1 -9
  29. package/dist/src/components/SideBar/CompareSaveDialog.vue.d.ts +1 -1
  30. package/dist/src/components/SideBar/FileSideBar.vue.d.ts +1 -9
  31. package/dist/src/components/SideBar/Files/FileInfo.vue.d.ts +1 -9
  32. package/dist/src/components/SideBar/SideBar.vue.d.ts +5 -13
  33. package/dist/src/components/SideBar/SideBarPanels.vue.d.ts +6 -14
  34. package/dist/src/components/SideBar/Spaces/Details/SpaceDetails.vue.d.ts +1 -9
  35. package/dist/src/components/SideBar/Spaces/Details/SpaceDetailsMultiple.vue.d.ts +1 -9
  36. package/dist/src/components/SideBar/Spaces/SpaceInfo.vue.d.ts +5 -1
  37. package/dist/src/components/SpaceQuota.vue.d.ts +1 -9
  38. package/dist/src/components/Spaces/QuotaModal.vue.d.ts +3 -11
  39. package/dist/src/components/Spaces/SpaceImageModal.vue.d.ts +2 -10
  40. package/dist/src/components/TextEditor/TextEditor.vue.d.ts +4 -12
  41. package/dist/src/components/TextEditor/index.d.ts +16 -38
  42. package/dist/src/components/ViewOptions.vue.d.ts +1 -9
  43. package/dist/src/components/index.d.ts +0 -1
  44. package/dist/src/composables/actions/types.d.ts +92 -2
  45. package/dist/src/composables/keyboardActions/useKeyboardActions.d.ts +1 -0
  46. package/dist/src/composables/piniaStores/avatars.d.ts +3 -3
  47. package/dist/src/composables/piniaStores/messages.d.ts +6 -588
  48. package/dist/src/composables/resources/useResourceViewDrag.d.ts +7 -17
  49. package/dist/src/composables/resources/useResourceViewHelpers.d.ts +7 -17
  50. package/dist/web-pkg.js +1225 -1295
  51. package/package.json +4 -4
  52. package/dist/assets/worker-C-Nrpmiq.js +0 -24
  53. package/dist/assets/worker-CzI1mBNb.js +0 -24
  54. package/dist/assets/worker-DDmV-och.js +0 -24
  55. package/dist/src/components/Navigation/MobileNav.vue.d.ts +0 -3
  56. package/dist/src/components/Navigation/index.d.ts +0 -1
@@ -9,24 +9,16 @@ type __VLS_Slots = {
9
9
  rootHeader: () => unknown;
10
10
  subHeader: () => unknown;
11
11
  };
12
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- selectPanel: (panel: string) => void;
14
- close: () => void;
15
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
12
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ close: () => any;
14
+ selectPanel: (panel: string) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  onClose?: () => any;
17
17
  onSelectPanel?: (panel: string) => any;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
18
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
20
  declare const _default: typeof __VLS_export;
21
21
  export default _default;
22
- type __VLS_TypePropsToOption<T> = {
23
- [K in keyof T]-?: {} extends Pick<T, K> ? {
24
- type: import('vue').PropType<Required<T>[K]>;
25
- } : {
26
- type: import('vue').PropType<T[K]>;
27
- required: true;
28
- };
29
- };
30
22
  type __VLS_WithSlots<T, S> = T & {
31
23
  new (): {
32
24
  $slots: S;
@@ -10,26 +10,18 @@ type __VLS_Slots = {
10
10
  rootHeader: () => unknown;
11
11
  subHeader: () => unknown;
12
12
  };
13
- declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- selectPanel: (panel: string) => void;
15
- close: () => void;
16
- closePanel: () => void;
17
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
13
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
14
+ close: () => any;
15
+ selectPanel: (panel: string) => any;
16
+ closePanel: () => any;
17
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
18
  onClose?: () => any;
19
19
  onSelectPanel?: (panel: string) => any;
20
20
  onClosePanel?: () => any;
21
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
23
23
  declare const _default: typeof __VLS_export;
24
24
  export default _default;
25
- type __VLS_TypePropsToOption<T> = {
26
- [K in keyof T]-?: {} extends Pick<T, K> ? {
27
- type: import('vue').PropType<Required<T>[K]>;
28
- } : {
29
- type: import('vue').PropType<T[K]>;
30
- required: true;
31
- };
32
- };
33
25
  type __VLS_WithSlots<T, S> = T & {
34
26
  new (): {
35
27
  $slots: S;
@@ -1,14 +1,6 @@
1
1
  type __VLS_Props = {
2
2
  showShareIndicators?: boolean;
3
3
  };
4
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
5
  declare const _default: typeof __VLS_export;
6
6
  export default _default;
7
- type __VLS_TypePropsToOption<T> = {
8
- [K in keyof T]-?: {} extends Pick<T, K> ? {
9
- type: import('vue').PropType<Required<T>[K]>;
10
- } : {
11
- type: import('vue').PropType<T[K]>;
12
- required: true;
13
- };
14
- };
@@ -2,14 +2,6 @@ import { SpaceResource } from '@opencloud-eu/web-client';
2
2
  type __VLS_Props = {
3
3
  selectedSpaces: SpaceResource[];
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<Required<T>[K]>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
@@ -1,3 +1,7 @@
1
- declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ import { SpaceResource } from '@opencloud-eu/web-client';
2
+ type __VLS_Props = {
3
+ spaceResource?: SpaceResource | null;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
6
  declare const _default: typeof __VLS_export;
3
7
  export default _default;
@@ -2,14 +2,6 @@ import { Quota } from '@opencloud-eu/web-client/graph/generated';
2
2
  type __VLS_Props = {
3
3
  spaceQuota: Quota;
4
4
  };
5
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
8
- type __VLS_TypePropsToOption<T> = {
9
- [K in keyof T]-?: {} extends Pick<T, K> ? {
10
- type: import('vue').PropType<Required<T>[K]>;
11
- } : {
12
- type: import('vue').PropType<T[K]>;
13
- required: true;
14
- };
15
- };
@@ -8,20 +8,12 @@ type __VLS_Props = {
8
8
  warningMessageContextualHelperData?: ContextualHelperData;
9
9
  resourceType?: 'space' | 'user' | string;
10
10
  };
11
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
12
12
  onConfirm: () => Promise<void>;
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
14
  "update:confirmDisabled": (...args: any[]) => void;
15
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
16
  "onUpdate:confirmDisabled"?: (...args: any[]) => any;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
18
  declare const _default: typeof __VLS_export;
19
19
  export default _default;
20
- type __VLS_TypePropsToOption<T> = {
21
- [K in keyof T]-?: {} extends Pick<T, K> ? {
22
- type: import('vue').PropType<Required<T>[K]>;
23
- } : {
24
- type: import('vue').PropType<T[K]>;
25
- required: true;
26
- };
27
- };
@@ -6,16 +6,8 @@ type __VLS_Props = {
6
6
  space: SpaceResource;
7
7
  file: File;
8
8
  };
9
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {
9
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
10
10
  onConfirm: () => Promise<void>;
11
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
12
  declare const _default: typeof __VLS_export;
13
13
  export default _default;
14
- type __VLS_TypePropsToOption<T> = {
15
- [K in keyof T]-?: {} extends Pick<T, K> ? {
16
- type: import('vue').PropType<Required<T>[K]>;
17
- } : {
18
- type: import('vue').PropType<T[K]>;
19
- required: true;
20
- };
21
- };
@@ -9,18 +9,10 @@ type __VLS_Props = {
9
9
  isReadOnly?: boolean;
10
10
  resource?: Resource;
11
11
  };
12
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- "update:currentContent": (value: string) => void;
14
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
13
+ "update:currentContent": (value: string) => any;
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
15
  "onUpdate:currentContent"?: (value: string) => any;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
17
  declare const _default: typeof __VLS_export;
18
18
  export default _default;
19
- type __VLS_TypePropsToOption<T> = {
20
- [K in keyof T]-?: {} extends Pick<T, K> ? {
21
- type: import('vue').PropType<Required<T>[K]>;
22
- } : {
23
- type: import('vue').PropType<T[K]>;
24
- required: true;
25
- };
26
- };
@@ -1,39 +1,17 @@
1
- export declare const TextEditor: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- applicationConfig: {
3
- type: import("vue").PropType<import("../../index.js").AppConfigObject>;
4
- };
5
- currentContent: {
6
- type: import("vue").PropType<string>;
7
- required: true;
8
- };
9
- markdownMode: {
10
- type: import("vue").PropType<boolean>;
11
- };
12
- isReadOnly: {
13
- type: import("vue").PropType<boolean>;
14
- };
15
- resource: {
16
- type: import("vue").PropType<import("@opencloud-eu/web-client").Resource>;
17
- };
18
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:currentContent": (value: string) => void;
20
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
21
- applicationConfig: {
22
- type: import("vue").PropType<import("../../index.js").AppConfigObject>;
23
- };
24
- currentContent: {
25
- type: import("vue").PropType<string>;
26
- required: true;
27
- };
28
- markdownMode: {
29
- type: import("vue").PropType<boolean>;
30
- };
31
- isReadOnly: {
32
- type: import("vue").PropType<boolean>;
33
- };
34
- resource: {
35
- type: import("vue").PropType<import("@opencloud-eu/web-client").Resource>;
36
- };
37
- }>> & Readonly<{
1
+ export declare const TextEditor: import("vue").DefineComponent<{
2
+ applicationConfig?: import("../../index.js").AppConfigObject;
3
+ currentContent: string;
4
+ markdownMode?: boolean;
5
+ isReadOnly?: boolean;
6
+ resource?: import("@opencloud-eu/web-client").Resource;
7
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
8
+ "update:currentContent": (value: string) => any;
9
+ }, string, import("vue").PublicProps, Readonly<{
10
+ applicationConfig?: import("../../index.js").AppConfigObject;
11
+ currentContent: string;
12
+ markdownMode?: boolean;
13
+ isReadOnly?: boolean;
14
+ resource?: import("@opencloud-eu/web-client").Resource;
15
+ }> & Readonly<{
38
16
  "onUpdate:currentContent"?: (value: string) => any;
39
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -10,14 +10,6 @@ type __VLS_Props = {
10
10
  viewModeDefault?: string;
11
11
  viewModes?: FolderView[];
12
12
  };
13
- declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
14
  declare const _default: typeof __VLS_export;
15
15
  export default _default;
16
- type __VLS_TypePropsToOption<T> = {
17
- [K in keyof T]-?: {} extends Pick<T, K> ? {
18
- type: import('vue').PropType<Required<T>[K]>;
19
- } : {
20
- type: import('vue').PropType<T[K]>;
21
- required: true;
22
- };
23
- };
@@ -5,7 +5,6 @@ export * from './FilesList';
5
5
  export * from './Filters';
6
6
  export * from './Groupware';
7
7
  export * from './Modals';
8
- export * from './Navigation';
9
8
  export * from './SideBar';
10
9
  export * from './Search';
11
10
  export * from './Spaces';
@@ -2,30 +2,119 @@ import { Resource, SpaceResource } from '@opencloud-eu/web-client';
2
2
  import { Group, User } from '@opencloud-eu/web-client/graph/generated';
3
3
  import { RouteLocationRaw } from 'vue-router';
4
4
  import { IconFillType } from '../../helpers';
5
- import { StringUnionOrAnyString } from '../../utils';
6
5
  import { AppearanceType } from '@opencloud-eu/design-system/helpers';
7
6
  export type ActionOptions = Record<string, unknown | unknown[]>;
7
+ type ActionCategory = 'actions' | 'context' | 'share' | 'sidebar';
8
+ /**
9
+ * Generic action interface.
10
+ * When implementing actions on your own, it's recommended to use the `ActionMenuItem`
11
+ * component from `web-pkg` to ensure the defaults are being set properly.
12
+ */
8
13
  export interface Action<T = ActionOptions> {
14
+ /**
15
+ * The unique name of the action. This is used for identifying it.
16
+ */
9
17
  name: string;
10
- category?: StringUnionOrAnyString<'context' | 'share' | 'actions' | 'sidebar'>;
18
+ /**
19
+ * Determines where an action will be displayed in the resource context menu.
20
+ *
21
+ * - actions: action will appear in the "actions" section of the resource context menu.
22
+ * - context: action will appear in the "Open with..."-menu of the resource context menu.
23
+ * It will also be the default when no other action is available for the given file type.
24
+ * - share: action will appear in the "shares" section of the resource context menu.
25
+ * - sidebar: action will appear in the "sidebar" section of the resource context menu.
26
+ *
27
+ * @default actions
28
+ */
29
+ category?: ActionCategory;
30
+ /**
31
+ * The name of an icon from the OpenCloud icon set or a function
32
+ * that returns the icon name based on the given options.
33
+ */
11
34
  icon: string | ((options?: ActionOptions) => string);
35
+ /**
36
+ * Determines the fill type of the icon in the UI.
37
+ * @default line
38
+ */
12
39
  iconFillType?: IconFillType;
40
+ /**
41
+ * The appearance of the action element in the UI.
42
+ * @default raw
43
+ */
13
44
  appearance?: AppearanceType;
45
+ /**
46
+ * ID of the action, used as DOM selector.
47
+ */
14
48
  id?: string;
49
+ /**
50
+ * @deprecated this is unused.
51
+ */
15
52
  img?: string;
53
+ /**
54
+ * Additional CSS classes to apply to the action element in the UI.
55
+ */
16
56
  class?: string;
57
+ /**
58
+ * Setting this to true will make the action more prominent in the UI
59
+ * as well as in the order for default actions.
60
+ */
17
61
  hasPriority?: boolean;
62
+ /**
63
+ * Setting this to true will hide the action label in the UI and only show the icon.
64
+ */
18
65
  hideLabel?: boolean;
66
+ /**
67
+ * Specify a shortcut label that will be shown in the UI.
68
+ * This does not automatically register a keyboard shortcut for the action.
69
+ */
19
70
  shortcut?: string;
71
+ /**
72
+ * Setting this will call `stopPropagation()` on the click event.
73
+ * @default false
74
+ * @deprecated This should not be used anymore, as it can lead to unexpected behavior.
75
+ */
20
76
  keepOpen?: boolean;
77
+ /**
78
+ * External actions come first in the "New" context menu. Therefore, this flag only has
79
+ * an effect for actions appearing in that menu.
80
+ * @default false
81
+ */
21
82
  isExternal?: boolean;
83
+ /**
84
+ * This determines the file icon for the action in the "New" menu and will show as
85
+ * file extension label.
86
+ */
22
87
  ext?: string;
88
+ /**
89
+ * The label of the action in the UI.
90
+ * This can be a string or a function that returns a string based on the given options.
91
+ */
23
92
  label(options?: T): string;
93
+ /**
94
+ * Determines whether the action should be visible in the UI based on the given options.
95
+ */
24
96
  isVisible(options?: T): boolean;
97
+ /**
98
+ * Actions with a handler will be rendered as buttons in the UI.
99
+ */
25
100
  handler?(options?: T): Promise<void> | void;
101
+ /**
102
+ * Actions with a route will be rendered as anchor elements in the UI.
103
+ * This is intended for internal links.
104
+ */
26
105
  route?(options?: T): RouteLocationRaw | undefined;
106
+ /**
107
+ * Actions with a href will be rendered as anchor elements in the UI.
108
+ * This is intended for external links.
109
+ */
27
110
  href?(options?: T): string;
111
+ /**
112
+ * Determines whether the action should be disabled in the UI based on the given options.
113
+ */
28
114
  isDisabled?(options?: T): boolean;
115
+ /**
116
+ * If specified, this will show a tooltip with the given message when the action is disabled.
117
+ */
29
118
  disabledTooltip?(options?: T): string;
30
119
  }
31
120
  export type FileActionOptions<T extends Resource = Resource> = {
@@ -45,3 +134,4 @@ export type UserActionOptions = {
45
134
  resources: User[];
46
135
  };
47
136
  export type UserAction = Action<UserActionOptions>;
137
+ export {};
@@ -12,6 +12,7 @@ export declare enum Key {
12
12
  Plus = "+",
13
13
  Minus = "-",
14
14
  Space = " ",
15
+ Slash = "/",
15
16
  ArrowUp = "ArrowUp",
16
17
  ArrowDown = "ArrowDown",
17
18
  ArrowLeft = "ArrowLeft",
@@ -5,7 +5,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
5
5
  addAvatar: (userId: string, avatar: string) => void;
6
6
  removeAvatar: (userId: string) => void;
7
7
  reset: () => void;
8
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
8
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
9
9
  pendingAvatarsRequests: Map<string, Promise<any>>;
10
10
  }, "avatarMap" | "avatarsQueue" | "pendingAvatarsRequests">, Pick<{
11
11
  avatarMap: import("vue").Ref<Record<string, string>, Record<string, string>>;
@@ -13,7 +13,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
13
13
  addAvatar: (userId: string, avatar: string) => void;
14
14
  removeAvatar: (userId: string) => void;
15
15
  reset: () => void;
16
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
16
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
17
17
  pendingAvatarsRequests: Map<string, Promise<any>>;
18
18
  }, never>, Pick<{
19
19
  avatarMap: import("vue").Ref<Record<string, string>, Record<string, string>>;
@@ -21,7 +21,7 @@ export declare const useAvatarsStore: import("pinia").StoreDefinition<"avatars",
21
21
  addAvatar: (userId: string, avatar: string) => void;
22
22
  removeAvatar: (userId: string) => void;
23
23
  reset: () => void;
24
- avatarsQueue: import("vue").Raw<PQueue<import("node_modules/p-queue/dist/priority-queue").default, import("p-queue").QueueAddOptions>>;
24
+ avatarsQueue: import("vue").Raw<PQueue<import("p-queue").PriorityQueue, import("p-queue").QueueAddOptions>>;
25
25
  pendingAvatarsRequests: Map<string, Promise<any>>;
26
26
  }, "reset" | "getAvatar" | "addAvatar" | "removeAvatar">>;
27
27
  export type AvatarsStore = ReturnType<typeof useAvatarsStore>;