@alfresco/aca-content 4.1.0 → 4.2.0-5542991658
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/assets/app.extensions.json +3 -3
- package/esm2020/lib/aca-content.module.mjs +2 -2
- package/esm2020/lib/aca-content.routes.mjs +27 -27
- package/esm2020/lib/extensions/core.extensions.module.mjs +2 -3
- package/esm2020/lib/services/node-template.service.mjs +1 -1
- package/esm2020/ms-office/aos-extension.module.mjs +7 -9
- package/esm2020/preview/alfresco-aca-content-preview.mjs +5 -0
- package/esm2020/preview/lib/components/preview.component.mjs +406 -0
- package/esm2020/preview/lib/preview.module.mjs +84 -0
- package/esm2020/preview/public-api.mjs +29 -0
- package/esm2020/viewer/alfresco-aca-content-viewer.mjs +5 -0
- package/esm2020/viewer/lib/components/viewer/viewer.component.mjs +402 -0
- package/esm2020/viewer/lib/viewer.module.mjs +81 -0
- package/esm2020/viewer/public-api.mjs +29 -0
- package/fesm2015/alfresco-aca-content-ms-office.mjs +4 -5
- package/fesm2015/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2015/alfresco-aca-content-preview.mjs +495 -0
- package/fesm2015/alfresco-aca-content-preview.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content-viewer.mjs +491 -0
- package/fesm2015/alfresco-aca-content-viewer.mjs.map +1 -0
- package/fesm2015/alfresco-aca-content.mjs +28 -86
- package/fesm2015/alfresco-aca-content.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-ms-office.mjs +4 -5
- package/fesm2020/alfresco-aca-content-ms-office.mjs.map +1 -1
- package/fesm2020/alfresco-aca-content-preview.mjs +511 -0
- package/fesm2020/alfresco-aca-content-preview.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content-viewer.mjs +504 -0
- package/fesm2020/alfresco-aca-content-viewer.mjs.map +1 -0
- package/fesm2020/alfresco-aca-content.mjs +28 -86
- package/fesm2020/alfresco-aca-content.mjs.map +1 -1
- package/lib/services/node-template.service.d.ts +1 -1
- package/ms-office/aos-extension.module.d.ts +1 -2
- package/package.json +21 -5
- package/preview/index.d.ts +5 -0
- package/preview/lib/components/preview.component.d.ts +115 -0
- package/preview/lib/preview.module.d.ts +13 -0
- package/preview/public-api.d.ts +25 -0
- package/viewer/index.d.ts +5 -0
- package/viewer/lib/components/viewer/viewer.component.d.ts +111 -0
- package/viewer/lib/viewer.module.d.ts +13 -0
- package/viewer/public-api.d.ts +25 -0
- package/esm2020/lib/services/content-service-extension.service.mjs +0 -63
- package/lib/services/content-service-extension.service.d.ts +0 -11
|
@@ -17,7 +17,7 @@ export declare class NodeTemplateService {
|
|
|
17
17
|
dialog: MatDialog;
|
|
18
18
|
private currentTemplateConfig;
|
|
19
19
|
private rootNode;
|
|
20
|
-
_searchApi
|
|
20
|
+
private _searchApi;
|
|
21
21
|
get searchApi(): SearchApi;
|
|
22
22
|
constructor(store: Store<AppStore>, alfrescoApiService: AlfrescoApiService, translation: TranslationService, dialog: MatDialog);
|
|
23
23
|
selectTemplateDialog(config: TemplateDialogConfig): Subject<Node[]>;
|
|
@@ -23,11 +23,10 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { ExtensionService } from '@alfresco/adf-extensions';
|
|
25
25
|
import { TranslationService } from '@alfresco/adf-core';
|
|
26
|
-
import { AlfrescoOfficeExtensionService } from '@alfresco/aca-shared';
|
|
27
26
|
import * as i0 from "@angular/core";
|
|
28
27
|
import * as i1 from "@ngrx/effects";
|
|
29
28
|
export declare class AosExtensionModule {
|
|
30
|
-
constructor(extensions: ExtensionService, translation: TranslationService
|
|
29
|
+
constructor(extensions: ExtensionService, translation: TranslationService);
|
|
31
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<AosExtensionModule, never>;
|
|
32
31
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AosExtensionModule, never, [typeof i1.EffectsFeatureModule], never>;
|
|
33
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<AosExtensionModule>;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/aca-content",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0-5542991658",
|
|
4
4
|
"license": "LGPL-3.0",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^14.1.0",
|
|
7
7
|
"@angular/core": "^14.1.0",
|
|
8
|
-
"@alfresco/adf-core": "
|
|
9
|
-
"@alfresco/adf-content-services": "
|
|
10
|
-
"@alfresco/adf-extensions": "
|
|
11
|
-
"@alfresco/js-api": ">=6.
|
|
8
|
+
"@alfresco/adf-core": "^6.3.0-5468717985",
|
|
9
|
+
"@alfresco/adf-content-services": "^6.3.0-5468717985",
|
|
10
|
+
"@alfresco/adf-extensions": "^6.3.0-5468717985",
|
|
11
|
+
"@alfresco/js-api": ">=6.3.0-1025",
|
|
12
12
|
"@angular/animations": "^14.1.3",
|
|
13
13
|
"@angular/cdk": "^14.1.3",
|
|
14
14
|
"@angular/forms": "^14.1.3",
|
|
@@ -68,6 +68,22 @@
|
|
|
68
68
|
"es2015": "./fesm2015/alfresco-aca-content-ms-office.mjs",
|
|
69
69
|
"node": "./fesm2015/alfresco-aca-content-ms-office.mjs",
|
|
70
70
|
"default": "./fesm2020/alfresco-aca-content-ms-office.mjs"
|
|
71
|
+
},
|
|
72
|
+
"./preview": {
|
|
73
|
+
"types": "./preview/index.d.ts",
|
|
74
|
+
"esm2020": "./esm2020/preview/alfresco-aca-content-preview.mjs",
|
|
75
|
+
"es2020": "./fesm2020/alfresco-aca-content-preview.mjs",
|
|
76
|
+
"es2015": "./fesm2015/alfresco-aca-content-preview.mjs",
|
|
77
|
+
"node": "./fesm2015/alfresco-aca-content-preview.mjs",
|
|
78
|
+
"default": "./fesm2020/alfresco-aca-content-preview.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./viewer": {
|
|
81
|
+
"types": "./viewer/index.d.ts",
|
|
82
|
+
"esm2020": "./esm2020/viewer/alfresco-aca-content-viewer.mjs",
|
|
83
|
+
"es2020": "./fesm2020/alfresco-aca-content-viewer.mjs",
|
|
84
|
+
"es2015": "./fesm2015/alfresco-aca-content-viewer.mjs",
|
|
85
|
+
"node": "./fesm2015/alfresco-aca-content-viewer.mjs",
|
|
86
|
+
"default": "./fesm2020/alfresco-aca-content-viewer.mjs"
|
|
71
87
|
}
|
|
72
88
|
},
|
|
73
89
|
"sideEffects": false
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
25
|
+
import { Location } from '@angular/common';
|
|
26
|
+
import { ActivatedRoute } from '@angular/router';
|
|
27
|
+
import { UserPreferencesService } from '@alfresco/adf-core';
|
|
28
|
+
import { PageComponent, AppHookService, ContentApiService } from '@alfresco/aca-shared';
|
|
29
|
+
import { ContentActionRef, ViewerExtensionRef } from '@alfresco/adf-extensions';
|
|
30
|
+
import { Actions } from '@ngrx/effects';
|
|
31
|
+
import { NodesApiService } from '@alfresco/adf-content-services';
|
|
32
|
+
import * as i0 from "@angular/core";
|
|
33
|
+
export declare class PreviewComponent extends PageComponent implements OnInit, OnDestroy {
|
|
34
|
+
private contentApi;
|
|
35
|
+
private preferences;
|
|
36
|
+
private route;
|
|
37
|
+
private nodesApiService;
|
|
38
|
+
private actions$;
|
|
39
|
+
private location;
|
|
40
|
+
private appHookService;
|
|
41
|
+
previewLocation: string;
|
|
42
|
+
routesSkipNavigation: string[];
|
|
43
|
+
navigateSource: string;
|
|
44
|
+
navigationSources: string[];
|
|
45
|
+
folderId: string;
|
|
46
|
+
nodeId: string;
|
|
47
|
+
previousNodeId: string;
|
|
48
|
+
nextNodeId: string;
|
|
49
|
+
navigateMultiple: boolean;
|
|
50
|
+
openWith: Array<ContentActionRef>;
|
|
51
|
+
contentExtensions: Array<ViewerExtensionRef>;
|
|
52
|
+
showRightSide: boolean;
|
|
53
|
+
navigateBackAsClose: boolean;
|
|
54
|
+
simplestMode: boolean;
|
|
55
|
+
recentFileFilters: string[];
|
|
56
|
+
private containersSkipNavigation;
|
|
57
|
+
constructor(contentApi: ContentApiService, preferences: UserPreferencesService, route: ActivatedRoute, nodesApiService: NodesApiService, actions$: Actions, location: Location, appHookService: AppHookService);
|
|
58
|
+
ngOnInit(): void;
|
|
59
|
+
ngOnDestroy(): void;
|
|
60
|
+
/**
|
|
61
|
+
* Loads the particular node into the Viewer
|
|
62
|
+
*
|
|
63
|
+
* @param id Unique identifier for the Node to display
|
|
64
|
+
*/
|
|
65
|
+
displayNode(id: string): Promise<void>;
|
|
66
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
67
|
+
/**
|
|
68
|
+
* Handles the visibility change of the Viewer component.
|
|
69
|
+
*
|
|
70
|
+
* @param isVisible Indicator whether Viewer is visible or hidden.
|
|
71
|
+
*/
|
|
72
|
+
onVisibilityChanged(isVisible: boolean): void;
|
|
73
|
+
navigateToFileLocation(shouldNavigate: boolean): void;
|
|
74
|
+
/** Handles navigation to a previous document */
|
|
75
|
+
onNavigateBefore(event: MouseEvent | KeyboardEvent): void;
|
|
76
|
+
/** Handles navigation to a next document */
|
|
77
|
+
onNavigateNext(event: MouseEvent | KeyboardEvent): void;
|
|
78
|
+
/**
|
|
79
|
+
* Generates a node preview route based on folder and node IDs.
|
|
80
|
+
*
|
|
81
|
+
* @param folderId Folder ID
|
|
82
|
+
* @param nodeId Node ID
|
|
83
|
+
*/
|
|
84
|
+
getPreviewPath(folderId: string, nodeId: string): any[];
|
|
85
|
+
/**
|
|
86
|
+
* Retrieves nearest node information for the given node and folder.
|
|
87
|
+
*
|
|
88
|
+
* @param nodeId Unique identifier of the document node
|
|
89
|
+
* @param folderId Unique identifier of the containing folder node.
|
|
90
|
+
*/
|
|
91
|
+
getNearestNodes(nodeId: string, folderId: string): Promise<{
|
|
92
|
+
left: string;
|
|
93
|
+
right: string;
|
|
94
|
+
}>;
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves a list of node identifiers for the folder and data source.
|
|
97
|
+
*
|
|
98
|
+
* @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.
|
|
99
|
+
* @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.
|
|
100
|
+
*/
|
|
101
|
+
getFileIds(source: string, folderId?: string): Promise<string[]>;
|
|
102
|
+
private sort;
|
|
103
|
+
/**
|
|
104
|
+
* Get the root field name from the property path.
|
|
105
|
+
* Example: 'property1.some.child.property' => 'property1'
|
|
106
|
+
*
|
|
107
|
+
* @param path Property path
|
|
108
|
+
*/
|
|
109
|
+
getRootField(path: string): string;
|
|
110
|
+
private getNavigationCommands;
|
|
111
|
+
private shouldNavigate;
|
|
112
|
+
private isChild;
|
|
113
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewComponent, never>;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PreviewComponent, "app-preview", never, {}, {}, never, never, false>;
|
|
115
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/preview.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/router";
|
|
5
|
+
import * as i4 from "@alfresco/adf-core";
|
|
6
|
+
import * as i5 from "@alfresco/adf-extensions";
|
|
7
|
+
import * as i6 from "@alfresco/adf-content-services";
|
|
8
|
+
import * as i7 from "@alfresco/aca-shared";
|
|
9
|
+
export declare class PreviewModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PreviewModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PreviewModule, [typeof i1.PreviewComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.CoreModule, typeof i5.ExtensionsModule, typeof i6.ContentModule, typeof i6.ContentDirectiveModule, typeof i7.SharedDirectivesModule, typeof i6.ContentDirectiveModule, typeof i7.SharedToolbarModule, typeof i7.InfoDrawerComponent], [typeof i1.PreviewComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PreviewModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export * from './lib/components/preview.component';
|
|
25
|
+
export * from './lib/preview.module';
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
import { AppExtensionService, AppHookService, ContentApiService } from '@alfresco/aca-shared';
|
|
25
|
+
import { AppStore } from '@alfresco/aca-shared/store';
|
|
26
|
+
import { ContentActionRef, SelectionState } from '@alfresco/adf-extensions';
|
|
27
|
+
import { MinimalNodeEntryEntity, VersionsApi } from '@alfresco/js-api';
|
|
28
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
29
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
30
|
+
import { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';
|
|
31
|
+
import { Store } from '@ngrx/store';
|
|
32
|
+
import { Observable, Subject } from 'rxjs';
|
|
33
|
+
import { Actions } from '@ngrx/effects';
|
|
34
|
+
import { NodesApiService, UploadService } from '@alfresco/adf-content-services';
|
|
35
|
+
import * as i0 from "@angular/core";
|
|
36
|
+
export declare class AcaViewerComponent implements OnInit, OnDestroy {
|
|
37
|
+
private router;
|
|
38
|
+
private route;
|
|
39
|
+
private store;
|
|
40
|
+
private extensions;
|
|
41
|
+
private contentApi;
|
|
42
|
+
private actions$;
|
|
43
|
+
private preferences;
|
|
44
|
+
private apiService;
|
|
45
|
+
private nodesApiService;
|
|
46
|
+
private uploadService;
|
|
47
|
+
private appHookService;
|
|
48
|
+
private _versionsApi;
|
|
49
|
+
get versionsApi(): VersionsApi;
|
|
50
|
+
onDestroy$: Subject<boolean>;
|
|
51
|
+
fileName: string;
|
|
52
|
+
folderId: string;
|
|
53
|
+
nodeId: string;
|
|
54
|
+
versionId: string;
|
|
55
|
+
node: MinimalNodeEntryEntity;
|
|
56
|
+
selection: SelectionState;
|
|
57
|
+
infoDrawerOpened$: Observable<boolean>;
|
|
58
|
+
showRightSide: boolean;
|
|
59
|
+
openWith: ContentActionRef[];
|
|
60
|
+
toolbarActions: ContentActionRef[];
|
|
61
|
+
navigateSource: string;
|
|
62
|
+
previousNodeId: string;
|
|
63
|
+
nextNodeId: string;
|
|
64
|
+
navigateMultiple: boolean;
|
|
65
|
+
routesSkipNavigation: string[];
|
|
66
|
+
navigationSources: string[];
|
|
67
|
+
recentFileFilters: string[];
|
|
68
|
+
private navigationPath;
|
|
69
|
+
private previewLocation;
|
|
70
|
+
private containersSkipNavigation;
|
|
71
|
+
constructor(router: Router, route: ActivatedRoute, store: Store<AppStore>, extensions: AppExtensionService, contentApi: ContentApiService, actions$: Actions, preferences: UserPreferencesService, apiService: AlfrescoApiService, nodesApiService: NodesApiService, uploadService: UploadService, appHookService: AppHookService);
|
|
72
|
+
ngOnInit(): void;
|
|
73
|
+
onViewerVisibilityChanged(): void;
|
|
74
|
+
ngOnDestroy(): void;
|
|
75
|
+
trackByActionId(_: number, obj: ContentActionRef): string;
|
|
76
|
+
displayNode(nodeId: string): Promise<void>;
|
|
77
|
+
onNavigateBefore(event: MouseEvent | KeyboardEvent): void;
|
|
78
|
+
onNavigateNext(event: MouseEvent | KeyboardEvent): void;
|
|
79
|
+
/**
|
|
80
|
+
* Retrieves nearest node information for the given node and folder.
|
|
81
|
+
*
|
|
82
|
+
* @param nodeId Unique identifier of the document node
|
|
83
|
+
* @param folderId Unique identifier of the containing folder node.
|
|
84
|
+
*/
|
|
85
|
+
getNearestNodes(nodeId: string, folderId: string): Promise<{
|
|
86
|
+
left: string;
|
|
87
|
+
right: string;
|
|
88
|
+
}>;
|
|
89
|
+
/**
|
|
90
|
+
* Retrieves a list of node identifiers for the folder and data source.
|
|
91
|
+
*
|
|
92
|
+
* @param source Data source name. Allowed values are: personal-files, libraries, favorites, shared, recent-files.
|
|
93
|
+
* @param folderId Containing folder node identifier for 'personal-files' and 'libraries' sources.
|
|
94
|
+
*/
|
|
95
|
+
getFileIds(source: string, folderId?: string): Promise<string[]>;
|
|
96
|
+
/**
|
|
97
|
+
* Get the root field name from the property path.
|
|
98
|
+
* Example: 'property1.some.child.property' => 'property1'
|
|
99
|
+
*
|
|
100
|
+
* @param path Property path
|
|
101
|
+
*/
|
|
102
|
+
getRootField(path: string): string;
|
|
103
|
+
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
104
|
+
private sort;
|
|
105
|
+
private navigateToFileLocation;
|
|
106
|
+
private getFileLocation;
|
|
107
|
+
private shouldNavigate;
|
|
108
|
+
private isChild;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcaViewerComponent, never>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AcaViewerComponent, "aca-viewer", never, {}, {}, never, never, false>;
|
|
111
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/viewer/viewer.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@alfresco/adf-core";
|
|
5
|
+
import * as i4 from "@angular/router";
|
|
6
|
+
import * as i5 from "@alfresco/adf-extensions";
|
|
7
|
+
import * as i6 from "@alfresco/adf-content-services";
|
|
8
|
+
import * as i7 from "@alfresco/aca-shared";
|
|
9
|
+
export declare class AcaViewerModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AcaViewerModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AcaViewerModule, [typeof i1.AcaViewerComponent], [typeof i2.CommonModule, typeof i3.CoreModule, typeof i4.RouterModule, typeof i5.ExtensionsModule, typeof i6.ContentModule, typeof i6.ContentDirectiveModule, typeof i7.SharedDirectivesModule, typeof i7.InfoDrawerComponent, typeof i7.SharedToolbarModule], [typeof i1.AcaViewerComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<AcaViewerModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* Alfresco Example Content Application
|
|
5
|
+
*
|
|
6
|
+
* This file is part of the Alfresco Example Content Application.
|
|
7
|
+
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
+
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
+
* provided under the following open source license terms:
|
|
10
|
+
*
|
|
11
|
+
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
+
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
+
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
+
* (at your option) any later version.
|
|
15
|
+
*
|
|
16
|
+
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
+
* GNU Lesser General Public License for more details.
|
|
20
|
+
*
|
|
21
|
+
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
+
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
+
*/
|
|
24
|
+
export * from './lib/components/viewer/viewer.component';
|
|
25
|
+
export * from './lib/viewer.module';
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Alfresco Example Content Application
|
|
5
|
-
*
|
|
6
|
-
* This file is part of the Alfresco Example Content Application.
|
|
7
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
8
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
9
|
-
* provided under the following open source license terms:
|
|
10
|
-
*
|
|
11
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
12
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
13
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
14
|
-
* (at your option) any later version.
|
|
15
|
-
*
|
|
16
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
17
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
18
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
19
|
-
* GNU Lesser General Public License for more details.
|
|
20
|
-
*
|
|
21
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
22
|
-
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
|
-
*/
|
|
24
|
-
import { Injectable } from '@angular/core';
|
|
25
|
-
import { AppConfigService } from '@alfresco/adf-core';
|
|
26
|
-
import { take } from 'rxjs/operators';
|
|
27
|
-
import * as i0 from "@angular/core";
|
|
28
|
-
import * as i1 from "@alfresco/adf-core";
|
|
29
|
-
export class ContentServiceExtensionService {
|
|
30
|
-
constructor(appConfigService) {
|
|
31
|
-
this.appConfigService = appConfigService;
|
|
32
|
-
this.updateContentServiceAvailability();
|
|
33
|
-
}
|
|
34
|
-
updateContentServiceAvailability() {
|
|
35
|
-
this.appConfigService.onLoad.pipe(take(1)).subscribe((config) => {
|
|
36
|
-
if (config.plugins && config.plugins.contentService === false) {
|
|
37
|
-
this.disableContentServices();
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.enableContentServices();
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
disableContentServices() {
|
|
45
|
-
if (localStorage) {
|
|
46
|
-
localStorage.setItem('contentService', 'false');
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
enableContentServices() {
|
|
50
|
-
if (localStorage && localStorage.getItem('contentService') === 'false') {
|
|
51
|
-
localStorage.setItem('contentService', 'true');
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
ContentServiceExtensionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
56
|
-
ContentServiceExtensionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, providedIn: 'root' });
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: ContentServiceExtensionService, decorators: [{
|
|
58
|
-
type: Injectable,
|
|
59
|
-
args: [{
|
|
60
|
-
providedIn: 'root'
|
|
61
|
-
}]
|
|
62
|
-
}], ctorParameters: function () { return [{ type: i1.AppConfigService }]; } });
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29udGVudC1zZXJ2aWNlLWV4dGVuc2lvbi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYWNhLWNvbnRlbnQvc3JjL2xpYi9zZXJ2aWNlcy9jb250ZW50LXNlcnZpY2UtZXh0ZW5zaW9uLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0FzQkc7QUFFSCxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQzNDLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxJQUFJLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7O0FBS3RDLE1BQU0sT0FBTyw4QkFBOEI7SUFDekMsWUFBb0IsZ0JBQWtDO1FBQWxDLHFCQUFnQixHQUFoQixnQkFBZ0IsQ0FBa0I7UUFDcEQsSUFBSSxDQUFDLGdDQUFnQyxFQUFFLENBQUM7SUFDMUMsQ0FBQztJQUVELGdDQUFnQztRQUM5QixJQUFJLENBQUMsZ0JBQWdCLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRTtZQUM5RCx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G9jYWxTdG9yYWdlKSB7XG4gICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSgnY29udGVudFNlcnZpY2UnLCAnZmFsc2UnKTtcbiAgICB9XG4gIH1cblxuICBwcml2YXRlIGVuYWJsZUNvbnRlbnRTZXJ2aWNlcygpIHtcbiAgICBpZiAobG9jYWxTdG9yYWdlICYmIGxvY2FsU3RvcmFnZS5nZXRJdGVtKCdjb250ZW50U2VydmljZScpID09PSAnZmFsc2UnKSB7XG4gICAgICBsb2NhbFN0b3JhZ2Uuc2V0SXRlbSgnY29udGVudFNlcnZpY2UnLCAndHJ1ZScpO1xuICAgIH1cbiAgfVxufVxuIl19
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { AppConfigService } from '@alfresco/adf-core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ContentServiceExtensionService {
|
|
4
|
-
private appConfigService;
|
|
5
|
-
constructor(appConfigService: AppConfigService);
|
|
6
|
-
updateContentServiceAvailability(): void;
|
|
7
|
-
private disableContentServices;
|
|
8
|
-
private enableContentServices;
|
|
9
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContentServiceExtensionService, never>;
|
|
10
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ContentServiceExtensionService>;
|
|
11
|
-
}
|