@acorex/modules 19.4.3 → 19.4.5
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/conversation/README.md +113 -2
- package/conversation/index.d.ts +2 -14
- package/conversation/lib/const.d.ts +25 -6
- package/conversation/lib/conversation.module.d.ts +32 -3
- package/conversation/lib/entities/index.d.ts +2 -0
- package/conversation/lib/entities/message/index.d.ts +3 -0
- package/conversation/lib/entities/message/message.entity.d.ts +3 -0
- package/conversation/lib/entities/message/message.service.d.ts +10 -0
- package/conversation/lib/entities/message/message.types.d.ts +20 -0
- package/conversation/lib/entities/room/index.d.ts +3 -0
- package/conversation/lib/entities/room/room.entity.d.ts +3 -0
- package/conversation/lib/entities/room/room.service.d.ts +10 -0
- package/conversation/lib/entities/room/room.types.d.ts +8 -0
- package/conversation/lib/entity.provider.d.ts +12 -0
- package/conversation/lib/features/chat/chat-preview.helper.d.ts +68 -0
- package/conversation/lib/features/chat/chat.component.d.ts +42 -0
- package/conversation/lib/features/chat/chat.service.d.ts +101 -0
- package/conversation/lib/features/chat/chat.type.d.ts +38 -0
- package/conversation/lib/{entities → features}/chat/components/chat-item/chat-item.component.d.ts +6 -1
- package/conversation/lib/{entities → features}/chat/components/chat-preview/chat-preview.component.d.ts +3 -0
- package/conversation/lib/features/chat/index.d.ts +5 -0
- package/conversation/lib/{entities/comments/pages → features/comment}/comment-list-view.component.d.ts +12 -12
- package/conversation/lib/features/comment/comment.service.d.ts +66 -0
- package/conversation/lib/features/comment/comment.type.d.ts +45 -0
- package/conversation/lib/features/comment/index.d.ts +4 -0
- package/conversation/lib/features/index.d.ts +2 -0
- package/document-management/lib/entities/folder/folder.types.d.ts +3 -2
- package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +5 -2
- package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +22 -20
- package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +22 -2
- package/document-management/lib/features/document-explorer/views/attachement-widget/attachment-widget.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +52 -33
- package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +52 -33
- package/document-management/lib/features/drive/drive.component.d.ts +52 -31
- package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +49 -28
- package/document-management/lib/features/shared/components/document-type-choose-file/document-type-choose-file.component.d.ts +6 -6
- package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +21 -2
- package/document-management/lib/features/shared/document-manager.service.d.ts +177 -45
- package/document-management/lib/features/shared/document-manager.types.d.ts +2 -1
- package/document-management/lib/features/shared/index.d.ts +1 -0
- package/fesm2022/acorex-modules-application-management-module-designer.component-BJp8imYd.mjs +315 -0
- package/fesm2022/acorex-modules-application-management-module-designer.component-BJp8imYd.mjs.map +1 -0
- package/fesm2022/acorex-modules-application-management.mjs +1 -1
- package/fesm2022/acorex-modules-common.mjs +7 -0
- package/fesm2022/acorex-modules-common.mjs.map +1 -1
- package/fesm2022/acorex-modules-conversation.mjs +2382 -820
- package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
- package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs → acorex-modules-document-management-acorex-modules-document-management-BATdoqJi.mjs} +1679 -2019
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BATdoqJi.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs → acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs.map → acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs +144 -0
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-details-view.component-D0RIYrHB.mjs → acorex-modules-document-management-details-view.component-CvHIETNf.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-details-view.component-D0RIYrHB.mjs.map → acorex-modules-document-management-details-view.component-CvHIETNf.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs → acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs} +29 -9
- package/fesm2022/acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs.map +1 -0
- package/fesm2022/acorex-modules-document-management-drive.component-Crh10Z5J.mjs +363 -0
- package/fesm2022/acorex-modules-document-management-drive.component-Crh10Z5J.mjs.map +1 -0
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs → acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs.map → acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs → acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs.map → acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-list-view.component-C1inszTC.mjs → acorex-modules-document-management-list-view.component-BHEwRA3m.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-list-view.component-C1inszTC.mjs.map → acorex-modules-document-management-list-view.component-BHEwRA3m.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs → acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs.map → acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs → acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs} +5 -5
- package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs.map → acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs → acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs.map → acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs → acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs} +2 -2
- package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs.map → acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs.map} +1 -1
- package/fesm2022/acorex-modules-document-management.mjs +1 -1
- package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-ErtEMU89.mjs → acorex-modules-issue-management-acorex-modules-issue-management-DbVfrgVX.mjs} +5 -5
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-DbVfrgVX.mjs.map +1 -0
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-B6k0Zn9C.mjs → acorex-modules-issue-management-capture-screen.component-_9mwJVkz.mjs} +2 -2
- package/fesm2022/{acorex-modules-issue-management-capture-screen.component-B6k0Zn9C.mjs.map → acorex-modules-issue-management-capture-screen.component-_9mwJVkz.mjs.map} +1 -1
- package/fesm2022/acorex-modules-issue-management.mjs +1 -1
- package/fesm2022/acorex-modules-notification-management.mjs +5 -5
- package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
- package/fesm2022/{acorex-modules-organization-management-org-chart.page-CP8zz-Bc.mjs → acorex-modules-organization-management-org-chart.page-CrOUUr4c.mjs} +1 -2
- package/fesm2022/acorex-modules-organization-management-org-chart.page-CrOUUr4c.mjs.map +1 -0
- package/fesm2022/acorex-modules-organization-management.mjs +2 -2
- package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs → acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs} +326 -87
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs.map +1 -0
- package/fesm2022/{acorex-modules-platform-management-list-version.component-D50Xundj.mjs → acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-list-version.component-D50Xundj.mjs.map → acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs.map} +1 -1
- package/fesm2022/{acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs → acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs} +2 -2
- package/fesm2022/{acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs.map → acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs.map} +1 -1
- package/fesm2022/acorex-modules-platform-management.mjs +1 -1
- package/fesm2022/acorex-modules-project-management.mjs +108 -0
- package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-settings-management.mjs +20 -21
- package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-training-management.mjs +1 -1
- package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
- package/fesm2022/acorex-modules-workflow-management-task-board.page-3_Tn2GeA.mjs +305 -0
- package/fesm2022/acorex-modules-workflow-management-task-board.page-3_Tn2GeA.mjs.map +1 -0
- package/fesm2022/acorex-modules-workflow-management.mjs +123 -0
- package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -0
- package/package.json +20 -16
- package/platform-management/lib/task-board.provider.d.ts +14 -0
- package/project-management/lib/task-board.provider.d.ts +14 -0
- package/settings-management/lib/settings-management.module.d.ts +1 -1
- package/workflow-management/README.md +3 -0
- package/workflow-management/index.d.ts +2 -0
- package/workflow-management/lib/const.d.ts +11 -0
- package/workflow-management/lib/features/task-board/index.d.ts +2 -0
- package/workflow-management/lib/features/task-board/settings.keys.d.ts +5 -0
- package/workflow-management/lib/features/task-board/task-board.module.d.ts +6 -0
- package/workflow-management/lib/features/task-board/task-board.page.d.ts +76 -0
- package/workflow-management/lib/features/task-board/task-board.service.d.ts +13 -0
- package/workflow-management/lib/features/task-board/task-board.viewmodel.d.ts +20 -0
- package/workflow-management/lib/features/task-board/views/task-board-calendar-view/task-board-calendar-view.page.d.ts +25 -0
- package/workflow-management/lib/workflow-management.module.d.ts +8 -0
- package/conversation/lib/entities/chat/chat.module.d.ts +0 -28
- package/conversation/lib/entities/chat/chat.service.d.ts +0 -14
- package/conversation/lib/entities/chat/chat.type.d.ts +0 -22
- package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +0 -5
- package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +0 -12
- package/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.d.ts +0 -7
- package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +0 -23
- package/conversation/lib/entities/comments/comment.module.d.ts +0 -26
- package/conversation/lib/entities/comments/comments.service.d.ts +0 -13
- package/conversation/lib/entities/comments/comments.type.d.ts +0 -74
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +0 -6
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +0 -212
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +0 -6
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +0 -6
- package/document-management/lib/features/widgets/document-attachment/document-attachment-widget.config.d.ts +0 -7
- package/document-management/lib/features/widgets/document-attachment/index.d.ts +0 -5
- package/document-management/lib/features/widgets/index.d.ts +0 -1
- package/fesm2022/acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs +0 -315
- package/fesm2022/acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs +0 -141
- package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs.map +0 -1
- package/fesm2022/acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs.map +0 -1
- package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-ErtEMU89.mjs.map +0 -1
- package/fesm2022/acorex-modules-organization-management-org-chart.page-CP8zz-Bc.mjs.map +0 -1
- package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs.map +0 -1
- /package/conversation/lib/{entities/comments/pages → features/comment}/comment-lookup-popup.component.d.ts +0 -0
@@ -7,6 +7,7 @@ import { AXFileService } from '@acorex/core/file';
|
|
7
7
|
import { AXPPlatformScope, AXPQueryRequest } from '@acorex/platform/core';
|
8
8
|
import { AXMDocumentManagementDocumentTypeEntityModel, AXMDocumentManagementFolderCreateDto, AXMDocumentService, AXMFolderService } from '../../entities';
|
9
9
|
import { AXMDocumentExplorerBrowseMode, AXMDocumentExplorerNode, CreateFileDto, UpdateFileDto, UpdateFolderDto } from './document-manager.types';
|
10
|
+
import { AXTranslationService } from '@acorex/core/translation';
|
10
11
|
import * as i0 from "@angular/core";
|
11
12
|
/**
|
12
13
|
* Interface defining the contract for document drive service
|
@@ -35,10 +36,10 @@ export interface AXMDocumentManagerServiceInterface {
|
|
35
36
|
updateFile(fileId: string, data: UpdateFileDto): Promise<AXMDocumentExplorerNode>;
|
36
37
|
deleteFile(fileId: string): Promise<void>;
|
37
38
|
deleteNodes(nodeIds: AXMDocumentExplorerNode[]): Promise<void>;
|
39
|
+
copy(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode>;
|
38
40
|
showCreateFolderDialog(parentId?: string): Promise<AXMDocumentExplorerNode | null>;
|
39
41
|
showDeleteNodesDialog(nodeIds: AXMDocumentExplorerNode[]): Promise<boolean>;
|
40
42
|
showRenamePopup(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode | undefined>;
|
41
|
-
copy(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode>;
|
42
43
|
searchFolders(searchTerm: string, scope: AXPPlatformScope, options?: {
|
43
44
|
tenantId?: string;
|
44
45
|
userId?: string;
|
@@ -88,46 +89,53 @@ export declare class AXMDocumentManagerService implements AXMDocumentManagerServ
|
|
88
89
|
protected fileService: AXPFileStorageService;
|
89
90
|
protected fileManagerService: AXFileService;
|
90
91
|
protected workflow: AXPWorkflowService;
|
92
|
+
protected translate: AXTranslationService;
|
91
93
|
private scopedDriveCache;
|
94
|
+
/**
|
95
|
+
* Creates a scoped drive service for the specified platform scope
|
96
|
+
*/
|
92
97
|
scope(scope: AXPPlatformScope, options?: {
|
93
98
|
tenantId?: string;
|
94
99
|
userId?: string;
|
95
100
|
}): ScopedDriveService;
|
101
|
+
/**
|
102
|
+
* Generates a cache key for the scoped drive service
|
103
|
+
*/
|
96
104
|
private getScopeCacheKey;
|
97
105
|
/**
|
98
106
|
* Gets the platform root folder (top-level folder)
|
99
|
-
* @returns Root folder for the platform
|
100
107
|
*/
|
101
108
|
private getPlatformRootFolder;
|
102
109
|
/**
|
103
110
|
* Gets the tenant root folder
|
104
|
-
* @param rootFolderId The platform root folder ID
|
105
|
-
* @param tenantId The tenant ID
|
106
|
-
* @returns Tenant root folder
|
107
111
|
*/
|
108
112
|
private getTenantRootFolder;
|
109
113
|
/**
|
110
114
|
* Gets the user root folder
|
111
|
-
* @param tenantFolderId The tenant folder ID
|
112
|
-
* @param tenantId The tenant ID
|
113
|
-
* @param userId The user ID
|
114
|
-
* @returns User root folder
|
115
115
|
*/
|
116
116
|
private getUserRootFolder;
|
117
|
+
/**
|
118
|
+
* Maps folder entity to document explorer node
|
119
|
+
*/
|
117
120
|
private mapFolderDtoToFolderNode;
|
121
|
+
/**
|
122
|
+
* Maps file entity to document explorer node
|
123
|
+
*/
|
124
|
+
private mapFileToNode;
|
125
|
+
/**
|
126
|
+
* Maps document to media viewer data
|
127
|
+
*/
|
128
|
+
private mapDocumentToMediaViewerData;
|
129
|
+
/**
|
130
|
+
* Builds navigation path for a node
|
131
|
+
*/
|
118
132
|
private buildPath;
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
showUnlockDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
124
|
-
showFolderEditDialog(node: AXMDocumentExplorerNode): Promise<boolean>;
|
125
|
-
updateFileName(node: AXMDocumentExplorerNode, name: string): Promise<AXMDocumentExplorerNode>;
|
133
|
+
/**
|
134
|
+
* Creates a copy name by adding " copy" before the extension
|
135
|
+
*/
|
136
|
+
private createCopyName;
|
126
137
|
/**
|
127
138
|
* Gets the root folder based on the specified scope
|
128
|
-
* @param scope The drive scope (Platform, Tenant, User)
|
129
|
-
* @param options Optional parameters for tenant and user IDs
|
130
|
-
* @returns Root folder for the specified scope
|
131
139
|
*/
|
132
140
|
getRoot(scope: AXPPlatformScope, options?: {
|
133
141
|
tenantId?: string;
|
@@ -138,8 +146,6 @@ export declare class AXMDocumentManagerService implements AXMDocumentManagerServ
|
|
138
146
|
}>;
|
139
147
|
/**
|
140
148
|
* Gets a specific folder by ID
|
141
|
-
* @param folderId The folder ID to retrieve
|
142
|
-
* @returns The requested folder
|
143
149
|
*/
|
144
150
|
getFolder(scope: AXPPlatformScope, folderId: string, options?: {
|
145
151
|
tenantId?: string;
|
@@ -148,68 +154,166 @@ export declare class AXMDocumentManagerService implements AXMDocumentManagerServ
|
|
148
154
|
path: AXMDocumentExplorerNode[];
|
149
155
|
result: AXMDocumentExplorerNode;
|
150
156
|
}>;
|
157
|
+
/**
|
158
|
+
* Creates a new folder
|
159
|
+
*/
|
151
160
|
createFolder(data: AXMDocumentManagementFolderCreateDto): Promise<AXMDocumentExplorerNode>;
|
161
|
+
/**
|
162
|
+
* Updates an existing folder
|
163
|
+
*/
|
152
164
|
updateFolder(folderId: string, data: UpdateFolderDto): Promise<AXMDocumentExplorerNode>;
|
165
|
+
/**
|
166
|
+
* Deletes a folder
|
167
|
+
*/
|
153
168
|
deleteFolder(folderId: string): Promise<void>;
|
169
|
+
/**
|
170
|
+
* Gets available storage space
|
171
|
+
*/
|
154
172
|
getAvailableSpace(): Promise<number>;
|
155
|
-
|
173
|
+
/**
|
174
|
+
* Creates a new file
|
175
|
+
*/
|
156
176
|
createFile(data: CreateFileDto): Promise<AXMDocumentExplorerNode>;
|
177
|
+
/**
|
178
|
+
* Updates an existing file
|
179
|
+
*/
|
157
180
|
updateFile(fileId: string, data: UpdateFileDto): Promise<AXMDocumentExplorerNode>;
|
181
|
+
/**
|
182
|
+
* Deletes a file
|
183
|
+
*/
|
158
184
|
deleteFile(fileId: string): Promise<void>;
|
185
|
+
/**
|
186
|
+
* Opens a file
|
187
|
+
*/
|
188
|
+
openFile(node: AXMDocumentExplorerNode): Promise<void>;
|
189
|
+
/**
|
190
|
+
* Downloads a file
|
191
|
+
*/
|
192
|
+
downloadFile(node: AXMDocumentExplorerNode): Promise<void>;
|
193
|
+
/**
|
194
|
+
* Deletes multiple nodes (files and folders)
|
195
|
+
*/
|
159
196
|
deleteNodes(nodes: AXMDocumentExplorerNode[]): Promise<void>;
|
160
|
-
|
197
|
+
/**
|
198
|
+
* Creates a copy of a node (file or folder)
|
199
|
+
*/
|
200
|
+
copy(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode>;
|
201
|
+
/**
|
202
|
+
* Moves a node to another location
|
203
|
+
*/
|
161
204
|
moveTo(options: {
|
162
205
|
node: AXMDocumentExplorerNode;
|
206
|
+
scope: AXPPlatformScope;
|
163
207
|
browseMode?: AXMDocumentExplorerBrowseMode;
|
164
208
|
multiple?: boolean;
|
165
209
|
}): Promise<boolean>;
|
210
|
+
/**
|
211
|
+
* Copies a node to another location
|
212
|
+
*/
|
166
213
|
copyTo(options: {
|
167
214
|
node: AXMDocumentExplorerNode;
|
215
|
+
scope: AXPPlatformScope;
|
168
216
|
browseMode?: AXMDocumentExplorerBrowseMode;
|
169
217
|
multiple?: boolean;
|
170
218
|
}): Promise<boolean>;
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
folderVituralfiles?: AXMDocumentExplorerNode[];
|
175
|
-
}): Promise<void>;
|
176
|
-
openFile(node: AXMDocumentExplorerNode): Promise<void>;
|
177
|
-
showRenamePopup(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode | undefined>;
|
178
|
-
showDeleteNodesDialog(nodeIds: AXMDocumentExplorerNode[]): Promise<boolean>;
|
219
|
+
/**
|
220
|
+
* Searches for folders by term within a scope
|
221
|
+
*/
|
179
222
|
searchFolders(searchTerm: string, scope: AXPPlatformScope, options?: {
|
180
223
|
tenantId?: string;
|
181
224
|
userId?: string;
|
182
225
|
}): Promise<AXMDocumentExplorerNode[]>;
|
226
|
+
/**
|
227
|
+
* Searches for files by term within a scope
|
228
|
+
*/
|
183
229
|
searchFiles(searchTerm: string, scope: AXPPlatformScope, options?: {
|
184
230
|
tenantId?: string;
|
185
231
|
userId?: string;
|
186
232
|
}): Promise<AXMDocumentExplorerNode[]>;
|
233
|
+
/**
|
234
|
+
* Searches for both files and folders by term within a scope
|
235
|
+
*/
|
187
236
|
searchNodes(searchTerm: string, scope: AXPPlatformScope, options?: {
|
188
237
|
tenantId?: string;
|
189
238
|
userId?: string;
|
190
239
|
}): Promise<AXMDocumentExplorerNode[]>;
|
240
|
+
/**
|
241
|
+
* Gets all folders
|
242
|
+
*/
|
191
243
|
getAllFolders(): Promise<AXMDocumentExplorerNode[]>;
|
244
|
+
/**
|
245
|
+
* Gets all files with optional query
|
246
|
+
*/
|
192
247
|
getAllFiles(request?: AXPQueryRequest): Promise<AXMDocumentExplorerNode[]>;
|
193
|
-
getAllNodes(): Promise<AXMDocumentExplorerNode[]>;
|
194
|
-
showChooseFileDialog(scope: AXPPlatformScope): Promise<AXMDocumentExplorerNode[]>;
|
195
|
-
downloadFile(node: AXMDocumentExplorerNode): Promise<void>;
|
196
248
|
/**
|
197
|
-
*
|
198
|
-
* @param node The node to copy
|
199
|
-
* @returns The newly created copied node
|
249
|
+
* Gets all nodes (files and folders)
|
200
250
|
*/
|
201
|
-
|
251
|
+
getAllNodes(): Promise<AXMDocumentExplorerNode[]>;
|
202
252
|
/**
|
203
|
-
*
|
204
|
-
* @param originalName The original filename
|
205
|
-
* @returns The new filename with " copy" added before the extension
|
253
|
+
* Uploads file by document type to a specific folder
|
206
254
|
*/
|
207
|
-
private createCopyName;
|
208
255
|
uploadFileByType(folderId: string, docTypeId: string): Promise<boolean>;
|
256
|
+
/**
|
257
|
+
* Uploads virtual file by document type
|
258
|
+
*/
|
209
259
|
uploadFileVirtualByType(docType: AXMDocumentManagementDocumentTypeEntityModel): Promise<AXMDocumentExplorerNode[]>;
|
260
|
+
/**
|
261
|
+
* Shows share dialog for a node
|
262
|
+
*/
|
263
|
+
showShareDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
264
|
+
/**
|
265
|
+
* Shows share via email dialog for a node
|
266
|
+
*/
|
267
|
+
showShareWithEmailDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
268
|
+
/**
|
269
|
+
* Shows link dialog for a node
|
270
|
+
*/
|
271
|
+
showLinkDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
272
|
+
/**
|
273
|
+
* Shows lock dialog for a document
|
274
|
+
*/
|
275
|
+
showLockDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
276
|
+
/**
|
277
|
+
* Shows unlock dialog for a document
|
278
|
+
*/
|
279
|
+
showUnlockDialog(node: AXMDocumentExplorerNode): Promise<void>;
|
280
|
+
/**
|
281
|
+
* Shows folder edit dialog
|
282
|
+
*/
|
283
|
+
showFolderEditDialog(node: AXMDocumentExplorerNode): Promise<boolean>;
|
284
|
+
/**
|
285
|
+
* Shows create folder dialog
|
286
|
+
*/
|
287
|
+
showCreateFolderDialog(parentId?: string): Promise<AXMDocumentExplorerNode | null>;
|
288
|
+
/**
|
289
|
+
* Shows rename popup for a node
|
290
|
+
*/
|
291
|
+
showRenamePopup(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode | undefined>;
|
292
|
+
/**
|
293
|
+
* Shows delete nodes confirmation dialog
|
294
|
+
*/
|
295
|
+
showDeleteNodesDialog(nodeIds: AXMDocumentExplorerNode[]): Promise<boolean>;
|
296
|
+
/**
|
297
|
+
* Shows choose file dialog
|
298
|
+
*/
|
299
|
+
showChooseFileDialog(scope: AXPPlatformScope): Promise<AXMDocumentExplorerNode[]>;
|
300
|
+
/**
|
301
|
+
* Shows file viewer popup
|
302
|
+
*/
|
303
|
+
showFileViewerPopup(node: AXMDocumentExplorerNode, options?: {
|
304
|
+
index?: number;
|
305
|
+
folderVirtualFiles?: AXMDocumentExplorerNode[];
|
306
|
+
}): Promise<void>;
|
307
|
+
/**
|
308
|
+
* Updates a file name
|
309
|
+
*/
|
310
|
+
updateFileName(node: AXMDocumentExplorerNode, name: string): Promise<AXMDocumentExplorerNode>;
|
210
311
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXMDocumentManagerService, never>;
|
211
312
|
static ɵprov: i0.ɵɵInjectableDeclaration<AXMDocumentManagerService>;
|
212
313
|
}
|
314
|
+
/**
|
315
|
+
* Scoped drive service for specific platform scopes
|
316
|
+
*/
|
213
317
|
export declare class ScopedDriveService {
|
214
318
|
private parent;
|
215
319
|
private scope;
|
@@ -218,26 +322,54 @@ export declare class ScopedDriveService {
|
|
218
322
|
tenantId?: string;
|
219
323
|
userId?: string;
|
220
324
|
} | undefined);
|
325
|
+
/**
|
326
|
+
* Validates the scope options are appropriate for the selected scope
|
327
|
+
*/
|
221
328
|
private validateScopeOptions;
|
329
|
+
/**
|
330
|
+
* Gets root folder for this scope
|
331
|
+
*/
|
222
332
|
getRoot(): Promise<{
|
223
333
|
path: AXMDocumentExplorerNode[];
|
224
334
|
result: AXMDocumentExplorerNode;
|
225
335
|
}>;
|
336
|
+
/**
|
337
|
+
* Gets folder for this scope
|
338
|
+
*/
|
226
339
|
getFolder(folderId: string): Promise<{
|
227
340
|
path: AXMDocumentExplorerNode[];
|
228
341
|
result: AXMDocumentExplorerNode;
|
229
342
|
}>;
|
343
|
+
/**
|
344
|
+
* Creates folder in this scope
|
345
|
+
*/
|
230
346
|
createFolder(data: Omit<AXMDocumentManagementFolderCreateDto, 'tenantId' | 'userId'>): Promise<AXMDocumentExplorerNode>;
|
347
|
+
/**
|
348
|
+
* Updates folder in this scope
|
349
|
+
*/
|
231
350
|
updateFolder(folderId: string, data: UpdateFolderDto): Promise<AXMDocumentExplorerNode>;
|
351
|
+
/**
|
352
|
+
* Deletes folder in this scope
|
353
|
+
*/
|
232
354
|
deleteFolder(folderId: string): Promise<void>;
|
355
|
+
/**
|
356
|
+
* Gets available space for this scope
|
357
|
+
*/
|
233
358
|
getAvailableSpace(): Promise<number>;
|
359
|
+
/**
|
360
|
+
* Searches folders in this scope
|
361
|
+
*/
|
234
362
|
searchFolders(searchTerm: string): Promise<AXMDocumentExplorerNode[]>;
|
363
|
+
/**
|
364
|
+
* Searches files in this scope
|
365
|
+
*/
|
235
366
|
searchFiles(searchTerm: string): Promise<AXMDocumentExplorerNode[]>;
|
367
|
+
/**
|
368
|
+
* Searches nodes in this scope
|
369
|
+
*/
|
236
370
|
searchNodes(searchTerm: string): Promise<AXMDocumentExplorerNode[]>;
|
237
371
|
/**
|
238
|
-
* Creates a copy of a node
|
239
|
-
* @param node The node to copy
|
240
|
-
* @returns The newly created copied node
|
372
|
+
* Creates a copy of a node in this scope
|
241
373
|
*/
|
242
374
|
copy(node: AXMDocumentExplorerNode): Promise<AXMDocumentExplorerNode>;
|
243
375
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { AXMDocumentManagementDocumentEntityModel, AXMDocumentManagementDocumentTypeEntityModel, AXMDocumentManagementFolderEntityModel } from '../../entities';
|
2
|
+
import { AXMDocumentInheritanceType } from '../../entities/folder/folder.types';
|
2
3
|
export interface AXMDocumentExplorerNode {
|
3
4
|
id: string;
|
4
5
|
name: string;
|
@@ -16,7 +17,7 @@ export interface AXMDocumentExplorerNode {
|
|
16
17
|
meta?: {
|
17
18
|
[key: string]: any;
|
18
19
|
};
|
19
|
-
inherit?:
|
20
|
+
inherit?: AXMDocumentInheritanceType;
|
20
21
|
}
|
21
22
|
export interface AXMNodeType extends AXMDocumentManagementDocumentTypeEntityModel {
|
22
23
|
}
|