@opencloud-eu/web-pkg 5.1.0 → 6.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.
- package/dist/{TextEditor-CXSedGM4.js → TextEditor-D-HQDUkm.js} +3 -5
- package/dist/assets/{worker-22sDKzz_.js → worker-CVwKToFD.js} +18 -18
- package/dist/assets/{worker-BSCY2vwA.js → worker-DJbU-qfq.js} +18 -18
- package/dist/assets/{worker-DH8D29Kr.js → worker-DyU7W9CZ.js} +18 -18
- package/dist/{index-CEJcEmbf.js → index-OU30YA6H.js} +10663 -11050
- package/dist/src/apps/types.d.ts +0 -3
- package/dist/src/components/AppBar/AppBar.vue.d.ts +1 -0
- package/dist/src/components/AppBar/index.d.ts +0 -1
- package/dist/src/components/AppTemplates/AppWrapper.vue.d.ts +1 -1
- package/dist/src/components/AppTopBar.vue.d.ts +1 -1
- package/dist/src/components/ContextActions/ContextMenuQuickAction.vue.d.ts +409 -11
- package/dist/src/components/CreateShortcutModal.vue.d.ts +222 -0
- package/dist/src/components/CustomComponentTarget.vue.d.ts +4 -14
- package/dist/src/components/Filters/DateFilter.vue.d.ts +500 -0
- package/dist/src/components/Navigation/index.d.ts +1 -0
- package/dist/src/components/NoContentMessage.vue.d.ts +3 -2
- package/dist/src/components/SideBar/FileSideBar.vue.d.ts +2 -1
- package/dist/src/components/index.d.ts +1 -1
- package/dist/src/composables/actions/spaces/index.d.ts +1 -0
- package/dist/src/composables/actions/spaces/useSpaceActionsCreate.d.ts +7 -0
- package/dist/src/composables/index.d.ts +1 -1
- package/dist/src/composables/navItems/index.d.ts +1 -0
- package/dist/src/composables/navItems/useNavItems.d.ts +13 -0
- package/dist/src/composables/piniaStores/auth.d.ts +8 -2
- package/dist/src/composables/piniaStores/extensionRegistry/types.d.ts +14 -1
- package/dist/src/composables/piniaStores/sideBar.d.ts +1 -15
- package/dist/src/composables/resources/useResourceViewContextMenu.d.ts +4 -3
- package/dist/src/composables/resources/useResourceViewHelpers.d.ts +2 -2
- package/dist/src/composables/spaces/useCreateSpace.d.ts +1 -0
- package/dist/src/constants.d.ts +0 -6
- package/dist/src/extensionPoints.d.ts +3 -0
- package/dist/src/helpers/filesize.d.ts +0 -7
- package/dist/src/helpers/index.d.ts +1 -2
- package/dist/src/helpers/versions.d.ts +5 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/web-pkg.js +329 -331
- package/dist/web-pkg.umd.cjs +14 -34
- package/package.json +4 -5
- package/src/index.ts +1 -0
- package/dist/src/components/AppBar/CreateSpace.vue.d.ts +0 -18
- package/dist/src/components/TextEditor/TextEditor.vue.d.ts +0 -165
- package/dist/src/components/TextEditor/index.d.ts +0 -161
- package/dist/src/composables/portalTarget/eventTopics.d.ts +0 -3
- package/dist/src/composables/portalTarget/index.d.ts +0 -2
- package/dist/src/composables/portalTarget/usePortalTarget.d.ts +0 -4
- package/dist/src/helpers/contextMenuDropdown.d.ts +0 -7
- package/dist/src/helpers/statusIndicators.d.ts +0 -12
- package/dist/src/services/passwordPolicy/rules.d.ts +0 -69
- /package/dist/src/components/{PortalTarget.vue.d.ts → Navigation/MobileNav.vue.d.ts} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PublicLinkType } from '@opencloud-eu/web-client';
|
|
2
2
|
export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<{
|
|
3
3
|
accessToken: import('vue').Ref<string, string>;
|
|
4
|
+
sessionId: import('vue').Ref<string, string>;
|
|
4
5
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
5
6
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
6
7
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -8,6 +9,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
8
9
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
9
10
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
10
11
|
setAccessToken: (value: string) => void;
|
|
12
|
+
setSessionId: (value: string) => void;
|
|
11
13
|
setIdpContextReady: (value: boolean) => void;
|
|
12
14
|
setUserContextReady: (value: boolean) => void;
|
|
13
15
|
setPublicLinkContext: (context: {
|
|
@@ -18,8 +20,9 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
18
20
|
}) => void;
|
|
19
21
|
clearUserContext: () => void;
|
|
20
22
|
clearPublicLinkContext: () => void;
|
|
21
|
-
}, "publicLinkPassword" | "publicLinkType" | "accessToken" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady">, Pick<{
|
|
23
|
+
}, "publicLinkPassword" | "publicLinkType" | "accessToken" | "sessionId" | "idpContextReady" | "userContextReady" | "publicLinkToken" | "publicLinkContextReady">, Pick<{
|
|
22
24
|
accessToken: import('vue').Ref<string, string>;
|
|
25
|
+
sessionId: import('vue').Ref<string, string>;
|
|
23
26
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
24
27
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
25
28
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -27,6 +30,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
27
30
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
28
31
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
29
32
|
setAccessToken: (value: string) => void;
|
|
33
|
+
setSessionId: (value: string) => void;
|
|
30
34
|
setIdpContextReady: (value: boolean) => void;
|
|
31
35
|
setUserContextReady: (value: boolean) => void;
|
|
32
36
|
setPublicLinkContext: (context: {
|
|
@@ -39,6 +43,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
39
43
|
clearPublicLinkContext: () => void;
|
|
40
44
|
}, never>, Pick<{
|
|
41
45
|
accessToken: import('vue').Ref<string, string>;
|
|
46
|
+
sessionId: import('vue').Ref<string, string>;
|
|
42
47
|
idpContextReady: import('vue').Ref<boolean, boolean>;
|
|
43
48
|
userContextReady: import('vue').Ref<boolean, boolean>;
|
|
44
49
|
publicLinkToken: import('vue').Ref<string, string>;
|
|
@@ -46,6 +51,7 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
46
51
|
publicLinkType: import('vue').Ref<PublicLinkType, PublicLinkType>;
|
|
47
52
|
publicLinkContextReady: import('vue').Ref<boolean, boolean>;
|
|
48
53
|
setAccessToken: (value: string) => void;
|
|
54
|
+
setSessionId: (value: string) => void;
|
|
49
55
|
setIdpContextReady: (value: boolean) => void;
|
|
50
56
|
setUserContextReady: (value: boolean) => void;
|
|
51
57
|
setPublicLinkContext: (context: {
|
|
@@ -56,5 +62,5 @@ export declare const useAuthStore: import('pinia').StoreDefinition<"auth", Pick<
|
|
|
56
62
|
}) => void;
|
|
57
63
|
clearUserContext: () => void;
|
|
58
64
|
clearPublicLinkContext: () => void;
|
|
59
|
-
}, "setAccessToken" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext">>;
|
|
65
|
+
}, "setAccessToken" | "setSessionId" | "setIdpContextReady" | "setUserContextReady" | "setPublicLinkContext" | "clearUserContext" | "clearPublicLinkContext">>;
|
|
60
66
|
export type AuthStore = ReturnType<typeof useAuthStore>;
|
|
@@ -5,7 +5,7 @@ import { Item } from '@opencloud-eu/web-client';
|
|
|
5
5
|
import { FolderView } from '../../../ui';
|
|
6
6
|
import { Component, Slot } from 'vue';
|
|
7
7
|
import { StringUnionOrAnyString } from '../../../utils';
|
|
8
|
-
export type ExtensionType = StringUnionOrAnyString<'action' | 'appMenuItem' | 'customComponent' | 'folderView' | 'search' | 'sidebarNav' | 'sidebarPanel' | 'accountExtension'>;
|
|
8
|
+
export type ExtensionType = StringUnionOrAnyString<'action' | 'appMenuItem' | 'customComponent' | 'folderView' | 'search' | 'sidebarNav' | 'sidebarPanel' | 'accountExtension' | 'floatingActionButton'>;
|
|
9
9
|
export type Extension = {
|
|
10
10
|
id: string;
|
|
11
11
|
type: ExtensionType;
|
|
@@ -37,6 +37,7 @@ export interface FolderViewExtension extends Extension {
|
|
|
37
37
|
export interface CustomComponentExtension extends Extension {
|
|
38
38
|
type: 'customComponent';
|
|
39
39
|
content: Slot | Component;
|
|
40
|
+
componentProps?: () => Record<string, unknown>;
|
|
40
41
|
}
|
|
41
42
|
export interface AccountExtension extends Extension {
|
|
42
43
|
type: 'accountExtension';
|
|
@@ -44,6 +45,18 @@ export interface AccountExtension extends Extension {
|
|
|
44
45
|
label: () => string;
|
|
45
46
|
icon: string;
|
|
46
47
|
}
|
|
48
|
+
export type FloatingActionButtonExtensionMode = 'drop' | 'handler';
|
|
49
|
+
export interface FloatingActionButtonExtension extends Extension {
|
|
50
|
+
type: 'floatingActionButton';
|
|
51
|
+
label: () => string;
|
|
52
|
+
isVisible?: () => boolean;
|
|
53
|
+
isDisabled?: () => boolean;
|
|
54
|
+
color?: string;
|
|
55
|
+
icon?: string;
|
|
56
|
+
mode: () => FloatingActionButtonExtensionMode;
|
|
57
|
+
handler?: () => Promise<void> | void;
|
|
58
|
+
dropComponent?: Component;
|
|
59
|
+
}
|
|
47
60
|
export interface AppMenuItemExtension extends Extension {
|
|
48
61
|
type: 'appMenuItem';
|
|
49
62
|
label: () => string;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/** @deprecated use exposed methods from useSideBar instead */
|
|
2
|
-
export declare enum SideBarEventTopics {
|
|
3
|
-
open = "sidebar.open",
|
|
4
|
-
close = "sidebar.close",
|
|
5
|
-
toggle = "sidebar.toggle",
|
|
6
|
-
openWithPanel = "sidebar.openWithPanel",
|
|
7
|
-
setActivePanel = "sidebar.setActivePanel"
|
|
8
|
-
}
|
|
9
1
|
export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick<{
|
|
10
2
|
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
11
3
|
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
@@ -16,8 +8,6 @@ export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick
|
|
|
16
8
|
openSideBar: () => void;
|
|
17
9
|
openSideBarPanel: (panelName: string) => void;
|
|
18
10
|
setActiveSideBarPanel: (panelName: string) => void;
|
|
19
|
-
/** @deprecated */
|
|
20
|
-
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
21
11
|
}, "sideBarActivePanel">, Pick<{
|
|
22
12
|
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
23
13
|
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
@@ -28,8 +18,6 @@ export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick
|
|
|
28
18
|
openSideBar: () => void;
|
|
29
19
|
openSideBarPanel: (panelName: string) => void;
|
|
30
20
|
setActiveSideBarPanel: (panelName: string) => void;
|
|
31
|
-
/** @deprecated */
|
|
32
|
-
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
33
21
|
}, "isSideBarOpen">, Pick<{
|
|
34
22
|
isSideBarOpen: import('vue').WritableComputedRef<boolean, boolean>;
|
|
35
23
|
sideBarActivePanel: import('vue').Ref<string, string>;
|
|
@@ -40,7 +28,5 @@ export declare const useSideBar: import('pinia').StoreDefinition<"sideBar", Pick
|
|
|
40
28
|
openSideBar: () => void;
|
|
41
29
|
openSideBarPanel: (panelName: string) => void;
|
|
42
30
|
setActiveSideBarPanel: (panelName: string) => void;
|
|
43
|
-
|
|
44
|
-
onPanelActive: (name: string, callback: (string: string) => void) => void;
|
|
45
|
-
}, "focusSidebar" | "onInitialLoad" | "toggleSideBar" | "closeSideBar" | "openSideBar" | "openSideBarPanel" | "setActiveSideBarPanel" | "onPanelActive">>;
|
|
31
|
+
}, "focusSidebar" | "onInitialLoad" | "toggleSideBar" | "closeSideBar" | "openSideBar" | "openSideBarPanel" | "setActiveSideBarPanel">>;
|
|
46
32
|
export type SideBarStore = ReturnType<typeof useSideBar>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
1
2
|
import { Resource } from '@opencloud-eu/web-client';
|
|
2
|
-
import {
|
|
3
|
+
import { OcDrop } from '@opencloud-eu/design-system/components';
|
|
3
4
|
export declare const useResourceViewContextMenu: ({ isResourceSelected, isResourceDisabled, emit }: {
|
|
4
5
|
isResourceSelected: (resource: Resource) => boolean;
|
|
5
6
|
isResourceDisabled: (resource: Resource) => boolean;
|
|
6
7
|
emit: ReturnType<typeof defineEmits>;
|
|
7
8
|
}) => {
|
|
8
9
|
shouldShowContextDrop: (item: Resource) => boolean;
|
|
9
|
-
showContextMenuOnBtnClick: (
|
|
10
|
-
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) =>
|
|
10
|
+
showContextMenuOnBtnClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: ComponentPublicInstance<typeof OcDrop>) => void;
|
|
11
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: ComponentPublicInstance<typeof OcDrop>) => void;
|
|
11
12
|
};
|
|
@@ -14,8 +14,8 @@ export declare const useResourceViewHelpers: ({ space, resources, selectedIds, e
|
|
|
14
14
|
selectAllCheckboxLabel: import('vue').ComputedRef<string>;
|
|
15
15
|
toggleSelectionAll: () => void;
|
|
16
16
|
shouldShowContextDrop: (item: Resource) => boolean;
|
|
17
|
-
showContextMenuOnBtnClick: (
|
|
18
|
-
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource) =>
|
|
17
|
+
showContextMenuOnBtnClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: import('vue').ComponentPublicInstance<typeof import('@opencloud-eu/design-system/components').OcDrop>) => void;
|
|
18
|
+
showContextMenuOnRightClick: (event: MouseEvent | KeyboardEvent, item: Resource, drop: import('vue').ComponentPublicInstance<typeof import('@opencloud-eu/design-system/components').OcDrop>) => void;
|
|
19
19
|
ghostElement: Readonly<import('vue').ShallowRef<import('vue').ComponentPublicInstance<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
20
20
|
previewItems: {
|
|
21
21
|
type: import('vue').PropType<Resource[]>;
|
|
@@ -2,4 +2,5 @@ import { SpaceResource } from '@opencloud-eu/web-client';
|
|
|
2
2
|
export declare const useCreateSpace: () => {
|
|
3
3
|
createSpace: (name: string) => Promise<SpaceResource>;
|
|
4
4
|
createDefaultMetaFolder: (space: SpaceResource) => Promise<import('@opencloud-eu/web-client').FolderResource>;
|
|
5
|
+
addNewSpace: (name: string) => Promise<SpaceResource>;
|
|
5
6
|
};
|
package/dist/src/constants.d.ts
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/** @deprecated use from design-system instead */
|
|
2
|
-
export declare const EVENT_TROW_MOUNTED = "rowMounted";
|
|
3
|
-
/** @deprecated use from design-system instead */
|
|
4
|
-
export declare const EVENT_FILE_DROPPED = "fileDropped";
|
|
5
|
-
/** @deprecated use from design-system instead */
|
|
6
|
-
export declare const EVENT_TROW_CONTEXTMENU = "contextmenuClicked";
|
|
7
1
|
export declare abstract class ImageDimension {
|
|
8
2
|
static readonly Thumbnail: [number, number];
|
|
9
3
|
static readonly Tile: [number, number];
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CustomComponentExtension, ExtensionPoint } from './composables';
|
|
2
|
+
export declare const fileSideBarSpaceDetailsTableExtensionPoint: ExtensionPoint<CustomComponentExtension>;
|
|
3
|
+
export declare const extensionPoints: () => import('vue').ComputedRef<ExtensionPoint<any>[]>;
|
|
@@ -6,16 +6,15 @@ export * from './spaces';
|
|
|
6
6
|
export * from './ui';
|
|
7
7
|
export * from './breadcrumbs';
|
|
8
8
|
export * from './clipboardActions';
|
|
9
|
-
export * from './contextMenuDropdown';
|
|
10
9
|
export * from './datetime';
|
|
11
10
|
export * from './download';
|
|
12
11
|
export * from './filesize';
|
|
13
12
|
export * from './fuse';
|
|
14
13
|
export * from './locale';
|
|
15
14
|
export * from './path';
|
|
16
|
-
export * from './statusIndicators';
|
|
17
15
|
export * from './store';
|
|
18
16
|
export * from './binary';
|
|
19
17
|
export * from './platform';
|
|
20
18
|
export * from './promise';
|
|
21
19
|
export * from './textByteSize';
|
|
20
|
+
export * from './versions';
|
package/dist/src/index.d.ts
CHANGED