@alfresco/aca-shared 2.0.1 → 4.0.0-A.2-9919
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/README.md +2 -1
- package/{esm2015/alfresco-aca-shared.js → esm2020/alfresco-aca-shared.mjs} +0 -0
- package/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +74 -0
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +160 -0
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +10 -0
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +42 -0
- package/esm2020/lib/components/generic-error/generic-error.module.mjs +45 -0
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +124 -0
- package/esm2020/lib/components/info-drawer/shared-info-drawer.module.mjs +47 -0
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +53 -0
- package/esm2020/lib/components/locked-by/locked-by.module.mjs +45 -0
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +49 -0
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +41 -0
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +45 -0
- package/esm2020/lib/components/tool-bar/shared-toolbar.module.mjs +47 -0
- package/esm2020/lib/components/tool-bar/toolbar-action/toolbar-action.component.mjs +58 -0
- package/esm2020/lib/components/tool-bar/toolbar-button/toolbar-button.component.mjs +67 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.mjs +78 -0
- package/esm2020/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.mjs +69 -0
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +107 -0
- package/{esm2015/lib/components/info-drawer/shared-info-drawer.module.js → esm2020/lib/directives/contextmenu/contextmenu.module.mjs} +17 -15
- package/esm2020/lib/directives/pagination.directive.mjs +55 -0
- package/esm2020/lib/directives/shared.directives.module.mjs +42 -0
- package/esm2020/lib/models/modal-configuration.mjs +2 -0
- package/{esm2015/lib/models/types.js → esm2020/lib/models/types.mjs} +1 -0
- package/{esm2015/lib/models/viewer.rules.js → esm2020/lib/models/viewer.rules.mjs} +2 -1
- package/esm2020/lib/routing/shared.guard.mjs +49 -0
- package/esm2020/lib/services/alfresco-office-extension.service.mjs +64 -0
- package/esm2020/lib/services/app-hook.service.mjs +88 -0
- package/esm2020/lib/services/app.extension.service.mjs +453 -0
- package/esm2020/lib/services/app.service.mjs +213 -0
- package/esm2020/lib/services/content-api.service.mjs +268 -0
- package/{esm2015/lib/services/node-permission.service.js → esm2020/lib/services/node-permission.service.mjs} +9 -7
- package/esm2020/lib/services/router.extension.service.mjs +106 -0
- package/esm2020/lib/shared.module.mjs +49 -0
- package/esm2020/lib/testing/lib-testing-module.mjs +118 -0
- package/{esm2015/store/actions/contextmenu.actions.js → esm2020/lib/testing/translation.service.mjs} +19 -9
- package/{esm2015/lib/utils/node.utils.js → esm2020/lib/utils/node.utils.mjs} +0 -0
- package/esm2020/public-api.mjs +63 -0
- package/{esm2015/rules/alfresco-aca-shared-rules.js → esm2020/rules/alfresco-aca-shared-rules.mjs} +0 -0
- package/esm2020/rules/app.rules.mjs +503 -0
- package/esm2020/rules/navigation.rules.mjs +152 -0
- package/{esm2015/rules/public-api.js → esm2020/rules/public-api.mjs} +0 -0
- package/{esm2015/store/states/app.state.js → esm2020/rules/repository.rules.mjs} +10 -1
- package/esm2020/rules/user.rules.mjs +30 -0
- package/esm2020/store/actions/app-action-types.mjs +48 -0
- package/esm2020/store/actions/app.actions.mjs +135 -0
- package/esm2020/store/actions/context-menu-action-types.mjs +29 -0
- package/esm2020/store/actions/contextmenu.actions.mjs +32 -0
- package/esm2020/store/actions/library.actions.mjs +64 -0
- package/{esm2015/store/actions/metadata-aspect.actions.js → esm2020/store/actions/metadata-aspect.actions.mjs} +0 -0
- package/esm2020/store/actions/node.actions.mjs +189 -0
- package/{esm2015/lib/components/generic-error/generic-error.module.js → esm2020/store/actions/router-action-types.mjs} +9 -15
- package/esm2020/store/actions/router.actions.mjs +55 -0
- package/esm2020/store/actions/search.actions.mjs +36 -0
- package/esm2020/store/actions/snackbar.actions.mjs +58 -0
- package/esm2020/store/actions/template-action-types.mjs +32 -0
- package/{esm2015/lib/components/generic-error/generic-error.component.js → esm2020/store/actions/template.actions.mjs} +21 -17
- package/esm2020/store/actions/upload.actions.mjs +50 -0
- package/esm2020/store/actions/viewer.actions.mjs +82 -0
- package/{esm2015/store/alfresco-aca-shared-store.js → esm2020/store/alfresco-aca-shared-store.mjs} +0 -0
- package/esm2020/store/effects/dialog.effects.mjs +45 -0
- package/esm2020/store/effects/router.effects.mjs +117 -0
- package/esm2020/store/effects/snackbar.effects.mjs +86 -0
- package/{esm2015/store/models/delete-status.model.js → esm2020/store/models/delete-status.model.mjs} +1 -0
- package/{esm2015/store/models/deleted-node-info.model.js → esm2020/store/models/deleted-node-info.model.mjs} +1 -0
- package/esm2020/store/models/modal-configuration.mjs +2 -0
- package/{esm2015/store/models/node-info.model.js → esm2020/store/models/node-info.model.mjs} +1 -0
- package/{esm2015/store/models/search-option.model.js → esm2020/store/models/search-option.model.mjs} +0 -0
- package/esm2020/store/public-api.mjs +50 -0
- package/esm2020/store/selectors/app.selectors.mjs +60 -0
- package/esm2020/store/states/app.state.mjs +27 -0
- package/esm2020/store/store.module.mjs +43 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs +751 -0
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2015/{alfresco-aca-shared-store.js → alfresco-aca-shared-store.mjs} +302 -276
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2015/alfresco-aca-shared.mjs +2726 -0
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -0
- package/{fesm2015/alfresco-aca-shared-rules.js → fesm2020/alfresco-aca-shared-rules.mjs} +220 -150
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared-store.mjs +1406 -0
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -0
- package/fesm2020/alfresco-aca-shared.mjs +2841 -0
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -0
- package/{alfresco-aca-shared.d.ts → index.d.ts} +1 -0
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +4 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +74 -0
- package/lib/components/document-base-page/document-base-page.service.d.ts +5 -0
- package/lib/components/generic-error/generic-error.component.d.ts +3 -24
- package/lib/components/generic-error/generic-error.module.d.ts +8 -24
- package/lib/components/info-drawer/info-drawer.component.d.ts +6 -0
- package/lib/components/info-drawer/shared-info-drawer.module.d.ts +11 -24
- package/lib/components/locked-by/locked-by.component.d.ts +5 -30
- package/lib/components/locked-by/locked-by.module.d.ts +8 -24
- package/lib/components/page-layout/page-layout-content.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-error.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout-header.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout.component.d.ts +3 -24
- package/lib/components/page-layout/page-layout.module.d.ts +9 -24
- package/lib/components/tool-bar/shared-toolbar.module.d.ts +11 -24
- package/lib/components/tool-bar/toolbar-action/toolbar-action.component.d.ts +7 -2
- package/lib/components/tool-bar/toolbar-button/toolbar-button.component.d.ts +5 -25
- package/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.d.ts +13 -7
- package/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.d.ts +7 -27
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +5 -1
- package/lib/directives/contextmenu/contextmenu.module.d.ts +5 -24
- package/lib/directives/pagination.directive.d.ts +3 -0
- package/lib/directives/shared.directives.module.d.ts +6 -24
- package/lib/models/modal-configuration.d.ts +3 -0
- package/lib/models/viewer.rules.d.ts +4 -0
- package/lib/routing/shared.guard.d.ts +3 -24
- package/lib/services/alfresco-office-extension.service.d.ts +11 -0
- package/lib/services/app-hook.service.d.ts +55 -0
- package/lib/services/app.extension.service.d.ts +30 -45
- package/lib/services/app.service.d.ts +42 -6
- package/lib/services/content-api.service.d.ts +34 -25
- package/lib/services/node-permission.service.d.ts +3 -24
- package/lib/services/router.extension.service.d.ts +3 -24
- package/lib/shared.module.d.ts +5 -0
- package/lib/testing/lib-testing-module.d.ts +43 -0
- package/lib/testing/translation.service.d.ts +10 -0
- package/package.json +57 -18
- package/public-api.d.ts +7 -1
- package/rules/app.rules.d.ts +104 -30
- package/rules/{alfresco-aca-shared-rules.d.ts → index.d.ts} +1 -0
- package/rules/navigation.rules.d.ts +6 -6
- package/rules/repository.rules.d.ts +2 -1
- package/rules/user.rules.d.ts +1 -1
- package/store/actions/app-action-types.d.ts +46 -0
- package/store/actions/app.actions.d.ts +19 -18
- package/{lib/routing/app.routes.strategy.d.ts → store/actions/context-menu-action-types.d.ts} +2 -15
- package/store/actions/contextmenu.actions.d.ts +1 -3
- package/store/actions/library.actions.d.ts +3 -1
- package/store/actions/node.actions.d.ts +33 -7
- package/store/actions/router-action-types.d.ts +31 -0
- package/store/actions/router.actions.d.ts +5 -6
- package/store/actions/search.actions.d.ts +1 -13
- package/store/actions/snackbar.actions.d.ts +8 -11
- package/store/actions/template-action-types.d.ts +30 -0
- package/store/actions/template.actions.d.ts +1 -6
- package/store/actions/upload.actions.d.ts +3 -1
- package/store/actions/viewer.actions.d.ts +6 -0
- package/store/effects/dialog.effects.d.ts +4 -1
- package/store/effects/router.effects.d.ts +11 -29
- package/store/effects/snackbar.effects.d.ts +6 -3
- package/store/{alfresco-aca-shared-store.d.ts → index.d.ts} +1 -0
- package/store/models/modal-configuration.d.ts +3 -0
- package/store/public-api.d.ts +4 -0
- package/store/selectors/app.selectors.d.ts +6 -1
- package/store/states/app.state.d.ts +8 -1
- package/store/store.module.d.ts +5 -24
- package/alfresco-aca-shared.metadata.json +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.js +0 -745
- package/bundles/alfresco-aca-shared-rules.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-rules.umd.min.js +0 -125
- package/bundles/alfresco-aca-shared-rules.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.js +0 -1784
- package/bundles/alfresco-aca-shared-store.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared-store.umd.min.js +0 -462
- package/bundles/alfresco-aca-shared-store.umd.min.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.js +0 -2523
- package/bundles/alfresco-aca-shared.umd.js.map +0 -1
- package/bundles/alfresco-aca-shared.umd.min.js +0 -740
- package/bundles/alfresco-aca-shared.umd.min.js.map +0 -1
- package/esm2015/lib/adf-extensions/extensions-data-loader.guard.js +0 -74
- package/esm2015/lib/components/info-drawer/info-drawer.component.js +0 -105
- package/esm2015/lib/components/locked-by/locked-by.component.js +0 -54
- package/esm2015/lib/components/locked-by/locked-by.module.js +0 -38
- package/esm2015/lib/components/page-layout/page-layout-content.component.js +0 -43
- package/esm2015/lib/components/page-layout/page-layout-error.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout-header.component.js +0 -37
- package/esm2015/lib/components/page-layout/page-layout.component.js +0 -44
- package/esm2015/lib/components/page-layout/page-layout.module.js +0 -40
- package/esm2015/lib/components/tool-bar/shared-toolbar.module.js +0 -42
- package/esm2015/lib/components/tool-bar/toolbar-action/toolbar-action.component.js +0 -57
- package/esm2015/lib/components/tool-bar/toolbar-button/toolbar-button.component.js +0 -66
- package/esm2015/lib/components/tool-bar/toolbar-menu/toolbar-menu.component.js +0 -55
- package/esm2015/lib/components/tool-bar/toolbar-menu-item/toolbar-menu-item.component.js +0 -65
- package/esm2015/lib/directives/contextmenu/contextmenu.directive.js +0 -97
- package/esm2015/lib/directives/contextmenu/contextmenu.module.js +0 -38
- package/esm2015/lib/directives/pagination.directive.js +0 -55
- package/esm2015/lib/directives/shared.directives.module.js +0 -37
- package/esm2015/lib/routing/app.routes.strategy.js +0 -105
- package/esm2015/lib/routing/shared.guard.js +0 -50
- package/esm2015/lib/services/app.extension.service.js +0 -398
- package/esm2015/lib/services/app.service.js +0 -69
- package/esm2015/lib/services/content-api.service.js +0 -205
- package/esm2015/lib/services/router.extension.service.js +0 -110
- package/esm2015/lib/shared.module.js +0 -44
- package/esm2015/public-api.js +0 -57
- package/esm2015/rules/app.rules.js +0 -420
- package/esm2015/rules/navigation.rules.js +0 -164
- package/esm2015/rules/repository.rules.js +0 -32
- package/esm2015/rules/user.rules.js +0 -32
- package/esm2015/store/actions/app.actions.js +0 -130
- package/esm2015/store/actions/library.actions.js +0 -63
- package/esm2015/store/actions/node.actions.js +0 -161
- package/esm2015/store/actions/router.actions.js +0 -56
- package/esm2015/store/actions/search.actions.js +0 -54
- package/esm2015/store/actions/snackbar.actions.js +0 -61
- package/esm2015/store/actions/template.actions.js +0 -54
- package/esm2015/store/actions/upload.actions.js +0 -49
- package/esm2015/store/actions/viewer.actions.js +0 -75
- package/esm2015/store/effects/dialog.effects.js +0 -49
- package/esm2015/store/effects/router.effects.js +0 -132
- package/esm2015/store/effects/snackbar.effects.js +0 -90
- package/esm2015/store/public-api.js +0 -46
- package/esm2015/store/selectors/app.selectors.js +0 -80
- package/esm2015/store/store.module.js +0 -37
- package/fesm2015/alfresco-aca-shared-rules.js.map +0 -1
- package/fesm2015/alfresco-aca-shared-store.js.map +0 -1
- package/fesm2015/alfresco-aca-shared.js +0 -2167
- package/fesm2015/alfresco-aca-shared.js.map +0 -1
- package/rules/alfresco-aca-shared-rules.metadata.json +0 -1
- package/rules/package.json +0 -11
- package/store/alfresco-aca-shared-store.metadata.json +0 -1
- package/store/package.json +0 -11
|
@@ -26,6 +26,7 @@ import { OnInit, OnDestroy } from '@angular/core';
|
|
|
26
26
|
import { Subject } from 'rxjs';
|
|
27
27
|
import { Store } from '@ngrx/store';
|
|
28
28
|
import { AppStore } from '@alfresco/aca-shared/store';
|
|
29
|
+
import * as i0 from "@angular/core";
|
|
29
30
|
export declare class ContextActionsDirective implements OnInit, OnDestroy {
|
|
30
31
|
private store;
|
|
31
32
|
private execute$;
|
|
@@ -35,8 +36,11 @@ export declare class ContextActionsDirective implements OnInit, OnDestroy {
|
|
|
35
36
|
constructor(store: Store<AppStore>);
|
|
36
37
|
ngOnInit(): void;
|
|
37
38
|
ngOnDestroy(): void;
|
|
38
|
-
execute(event: MouseEvent, target: Element):
|
|
39
|
+
execute(event: MouseEvent, target: Element): any;
|
|
39
40
|
private getTarget;
|
|
40
41
|
private isSelected;
|
|
42
|
+
private isEmptyTable;
|
|
41
43
|
private findAncestor;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextActionsDirective, never>;
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ContextActionsDirective, "[acaContextActions]", ["acaContextActions"], { "enabled": "acaContextEnable"; }, {}, never, never, false>;
|
|
42
46
|
}
|
|
@@ -1,29 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./contextmenu.directive";
|
|
25
3
|
/**
|
|
26
4
|
* @deprecated in 1.11.0, use SharedDirectivesModule instead.
|
|
27
5
|
*/
|
|
28
6
|
export declare class ContextActionsModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContextActionsModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ContextActionsModule, [typeof i1.ContextActionsDirective], never, [typeof i1.ContextActionsDirective]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<ContextActionsModule>;
|
|
29
10
|
}
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
*/
|
|
25
25
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
26
26
|
import { PaginationComponent, UserPreferencesService, AppConfigService } from '@alfresco/adf-core';
|
|
27
|
+
import * as i0 from "@angular/core";
|
|
27
28
|
export declare class PaginationDirective implements OnInit, OnDestroy {
|
|
28
29
|
private pagination;
|
|
29
30
|
private preferences;
|
|
@@ -32,4 +33,6 @@ export declare class PaginationDirective implements OnInit, OnDestroy {
|
|
|
32
33
|
constructor(pagination: PaginationComponent, preferences: UserPreferencesService, config: AppConfigService);
|
|
33
34
|
ngOnInit(): void;
|
|
34
35
|
ngOnDestroy(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationDirective, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationDirective, "[acaPagination]", never, {}, {}, never, never, false>;
|
|
35
38
|
}
|
|
@@ -1,26 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pagination.directive";
|
|
3
|
+
import * as i2 from "./contextmenu/contextmenu.module";
|
|
25
4
|
export declare class SharedDirectivesModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectivesModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.PaginationDirective], [typeof i2.ContextActionsModule], [typeof i1.PaginationDirective, typeof i2.ContextActionsModule]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectivesModule>;
|
|
26
8
|
}
|
|
@@ -1,34 +1,13 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
1
|
import { CanActivate, ActivatedRouteSnapshot } from '@angular/router';
|
|
26
2
|
import { Observable } from 'rxjs';
|
|
27
3
|
import { Store } from '@ngrx/store';
|
|
28
4
|
import { AppStore } from '@alfresco/aca-shared/store';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
29
6
|
export declare class AppSharedRuleGuard implements CanActivate {
|
|
30
7
|
isQuickShareEnabled$: Observable<boolean>;
|
|
31
8
|
constructor(store: Store<AppStore>);
|
|
32
9
|
canActivate(_: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
33
10
|
canActivateChild(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSharedRuleGuard, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppSharedRuleGuard>;
|
|
34
13
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppConfigService } from '@alfresco/adf-core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AlfrescoOfficeExtensionService {
|
|
4
|
+
private appConfigService;
|
|
5
|
+
constructor(appConfigService: AppConfigService);
|
|
6
|
+
enablePlugin(): void;
|
|
7
|
+
disablePlugin(): void;
|
|
8
|
+
isAosPluginEnabled(): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AlfrescoOfficeExtensionService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AlfrescoOfficeExtensionService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { SiteEntry } from '@alfresco/js-api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AppHookService {
|
|
5
|
+
/**
|
|
6
|
+
* Gets emitted when reloads event fired
|
|
7
|
+
*/
|
|
8
|
+
reload: Subject<any>;
|
|
9
|
+
/**
|
|
10
|
+
* Gets emitted when user reset the node
|
|
11
|
+
*/
|
|
12
|
+
reset: Subject<any>;
|
|
13
|
+
/**
|
|
14
|
+
* Gets emitted when user delete the node
|
|
15
|
+
*/
|
|
16
|
+
nodesDeleted: Subject<any>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets emitted when user delete the library
|
|
19
|
+
*/
|
|
20
|
+
libraryDeleted: Subject<string>;
|
|
21
|
+
/**
|
|
22
|
+
* Gets emitted when user create the library
|
|
23
|
+
*/
|
|
24
|
+
libraryCreated: Subject<SiteEntry>;
|
|
25
|
+
/**
|
|
26
|
+
* Gets emitted when user update the library
|
|
27
|
+
*/
|
|
28
|
+
libraryUpdated: Subject<SiteEntry>;
|
|
29
|
+
/**
|
|
30
|
+
* Gets emitted when user join the library
|
|
31
|
+
*/
|
|
32
|
+
libraryJoined: Subject<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Gets emitted when user left the library
|
|
35
|
+
*/
|
|
36
|
+
libraryLeft: Subject<string>;
|
|
37
|
+
/**
|
|
38
|
+
* Gets emitted when library throws 400 error code
|
|
39
|
+
*/
|
|
40
|
+
library400Error: Subject<any>;
|
|
41
|
+
/**
|
|
42
|
+
* Gets emitted when user join the library
|
|
43
|
+
*/
|
|
44
|
+
joinLibraryToggle: Subject<string>;
|
|
45
|
+
/**
|
|
46
|
+
* Gets emitted when user unlink the node
|
|
47
|
+
*/
|
|
48
|
+
linksUnshared: Subject<any>;
|
|
49
|
+
/**
|
|
50
|
+
* Gets emitted when user mark the the favorite library
|
|
51
|
+
*/
|
|
52
|
+
favoriteLibraryToggle: Subject<any>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppHookService, never>;
|
|
54
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppHookService>;
|
|
55
|
+
}
|
|
@@ -1,27 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
1
|
import { Store } from '@ngrx/store';
|
|
26
2
|
import { MatIconRegistry } from '@angular/material/icon';
|
|
27
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
@@ -33,31 +9,34 @@ import { RepositoryInfo, NodeEntry } from '@alfresco/js-api';
|
|
|
33
9
|
import { ViewerRules } from '../models/viewer.rules';
|
|
34
10
|
import { SettingsGroupRef } from '../models/types';
|
|
35
11
|
import { NodePermissionService } from '../services/node-permission.service';
|
|
12
|
+
import { ModalConfiguration } from '../models/modal-configuration';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
36
14
|
export declare class AppExtensionService implements RuleContext {
|
|
37
15
|
auth: AuthenticationService;
|
|
38
16
|
protected store: Store<AppStore>;
|
|
39
17
|
protected loader: ExtensionLoaderService;
|
|
40
18
|
protected extensions: ExtensionService;
|
|
41
19
|
permissions: NodePermissionService;
|
|
42
|
-
|
|
20
|
+
appConfig: AppConfigService;
|
|
43
21
|
protected matIconRegistry: MatIconRegistry;
|
|
44
22
|
protected sanitizer: DomSanitizer;
|
|
45
23
|
protected logger: LogService;
|
|
46
24
|
private _references;
|
|
47
|
-
headerActions: Array<ContentActionRef>;
|
|
48
|
-
toolbarActions: Array<ContentActionRef>;
|
|
49
|
-
viewerToolbarActions: Array<ContentActionRef>;
|
|
50
|
-
sharedLinkViewerToolbarActions: Array<ContentActionRef>;
|
|
51
|
-
contextMenuActions: Array<ContentActionRef>;
|
|
52
|
-
openWithActions: Array<ContentActionRef>;
|
|
53
|
-
createActions: Array<ContentActionRef>;
|
|
54
25
|
navbar: Array<NavBarGroupRef>;
|
|
55
26
|
sidebarTabs: Array<SidebarTabRef>;
|
|
56
|
-
sidebarActions: Array<ContentActionRef>;
|
|
57
27
|
contentMetadata: any;
|
|
28
|
+
search: any;
|
|
58
29
|
viewerRules: ViewerRules;
|
|
59
|
-
userActions: Array<ContentActionRef>;
|
|
60
30
|
settingGroups: Array<SettingsGroupRef>;
|
|
31
|
+
private _headerActions;
|
|
32
|
+
private _toolbarActions;
|
|
33
|
+
private _viewerToolbarActions;
|
|
34
|
+
private _sharedLinkViewerToolbarActions;
|
|
35
|
+
private _contextMenuActions;
|
|
36
|
+
private _openWithActions;
|
|
37
|
+
private _createActions;
|
|
38
|
+
private _mainActions;
|
|
39
|
+
private _sidebarActions;
|
|
61
40
|
documentListPresets: {
|
|
62
41
|
files: Array<DocumentListPresetRef>;
|
|
63
42
|
libraries: Array<DocumentListPresetRef>;
|
|
@@ -73,8 +52,8 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
73
52
|
profile: ProfileState;
|
|
74
53
|
repository: RepositoryInfo;
|
|
75
54
|
withCredentials: boolean;
|
|
76
|
-
languagePicker: boolean;
|
|
77
55
|
references$: Observable<ExtensionRef[]>;
|
|
56
|
+
config: ExtensionConfig;
|
|
78
57
|
constructor(auth: AuthenticationService, store: Store<AppStore>, loader: ExtensionLoaderService, extensions: ExtensionService, permissions: NodePermissionService, appConfig: AppConfigService, matIconRegistry: MatIconRegistry, sanitizer: DomSanitizer, logger: LogService);
|
|
79
58
|
load(): Promise<void>;
|
|
80
59
|
setup(config: ExtensionConfig): void;
|
|
@@ -83,6 +62,7 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
83
62
|
protected getDocumentListPreset(config: ExtensionConfig, key: string): DocumentListPresetRef[];
|
|
84
63
|
getApplicationNavigation(elements: any): Array<NavBarGroupRef>;
|
|
85
64
|
loadContentMetadata(config: ExtensionConfig): any;
|
|
65
|
+
loadSearchForms(config: ExtensionConfig): any;
|
|
86
66
|
filterDisabled(object: Array<{
|
|
87
67
|
disabled: boolean;
|
|
88
68
|
}> | {
|
|
@@ -90,23 +70,28 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
90
70
|
}): any;
|
|
91
71
|
getNavigationGroups(): Array<NavBarGroupRef>;
|
|
92
72
|
getSidebarTabs(): Array<SidebarTabRef>;
|
|
93
|
-
|
|
73
|
+
private setActionDisabledFromRule;
|
|
74
|
+
getCreateActions(): Observable<Array<ContentActionRef>>;
|
|
75
|
+
getMainAction(): Observable<ContentActionRef>;
|
|
94
76
|
private buildMenu;
|
|
95
77
|
private getAllowedActions;
|
|
96
|
-
getAllowedSidebarActions(): Array<ContentActionRef
|
|
97
|
-
getAllowedToolbarActions(): Array<ContentActionRef
|
|
98
|
-
getViewerToolbarActions(): Array<ContentActionRef
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
78
|
+
getAllowedSidebarActions(): Observable<Array<ContentActionRef>>;
|
|
79
|
+
getAllowedToolbarActions(): Observable<Array<ContentActionRef>>;
|
|
80
|
+
getViewerToolbarActions(): Observable<Array<ContentActionRef>>;
|
|
81
|
+
getOpenWithActions(): Observable<Array<ContentActionRef>>;
|
|
82
|
+
getSharedLinkViewerToolbarActions(): Observable<Array<ContentActionRef>>;
|
|
83
|
+
getHeaderActions(): Observable<Array<ContentActionRef>>;
|
|
84
|
+
getAllowedContextMenuActions(): Observable<Array<ContentActionRef>>;
|
|
103
85
|
getSettingsGroups(): Array<SettingsGroupRef>;
|
|
104
86
|
copyAction(action: ContentActionRef): ContentActionRef;
|
|
105
|
-
filterVisible(action: ContentActionRef | SettingsGroupRef | SidebarTabRef): boolean;
|
|
87
|
+
filterVisible(action: ContentActionRef | SettingsGroupRef | SidebarTabRef | DocumentListPresetRef): boolean;
|
|
106
88
|
isViewerExtensionDisabled(extension: any): boolean;
|
|
107
|
-
runActionById(id: string): void;
|
|
89
|
+
runActionById(id: string, additionalPayload?: ModalConfiguration): void;
|
|
108
90
|
isRuleDefined(ruleId: string): boolean;
|
|
109
91
|
evaluateRule(ruleId: string, ...args: any[]): boolean;
|
|
110
92
|
getEvaluator(key: string): RuleEvaluator;
|
|
111
93
|
canPreviewNode(node: NodeEntry): boolean;
|
|
94
|
+
canShowViewerNavigation(node: NodeEntry): boolean;
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppExtensionService, never>;
|
|
96
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppExtensionService>;
|
|
112
97
|
}
|
|
@@ -22,18 +22,54 @@
|
|
|
22
22
|
* You should have received a copy of the GNU Lesser General Public License
|
|
23
23
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
24
|
*/
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { SearchQueryBuilderService } from '@alfresco/adf-content-services';
|
|
29
|
-
|
|
25
|
+
import { OnDestroy } from '@angular/core';
|
|
26
|
+
import { AuthenticationService, AppConfigService, AlfrescoApiService, UploadService, FileUploadErrorEvent, PageTitleService, UserPreferencesService } from '@alfresco/adf-core';
|
|
27
|
+
import { Observable, Subject } from 'rxjs';
|
|
28
|
+
import { GroupService, SearchQueryBuilderService, SharedLinksApiService } from '@alfresco/adf-content-services';
|
|
29
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
30
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
31
|
+
import { AppState, AppStore } from '@alfresco/aca-shared/store';
|
|
32
|
+
import { ContentApiService } from './content-api.service';
|
|
33
|
+
import { RouterExtensionService } from './router.extension.service';
|
|
34
|
+
import { Store } from '@ngrx/store';
|
|
35
|
+
import * as i0 from "@angular/core";
|
|
36
|
+
export declare class AppService implements OnDestroy {
|
|
37
|
+
preferencesService: UserPreferencesService;
|
|
38
|
+
private authenticationService;
|
|
39
|
+
private store;
|
|
40
|
+
private router;
|
|
41
|
+
private activatedRoute;
|
|
30
42
|
private config;
|
|
43
|
+
private pageTitle;
|
|
44
|
+
private alfrescoApiService;
|
|
45
|
+
private uploadService;
|
|
46
|
+
private routerExtensionService;
|
|
47
|
+
private contentApi;
|
|
48
|
+
private sharedLinksApiService;
|
|
49
|
+
private groupService;
|
|
50
|
+
private overlayContainer;
|
|
51
|
+
private initialAppState;
|
|
31
52
|
private ready;
|
|
32
53
|
ready$: Observable<boolean>;
|
|
54
|
+
pageHeading$: Observable<string>;
|
|
55
|
+
hideSidenavConditions: string[];
|
|
56
|
+
minimizeSidenavConditions: string[];
|
|
57
|
+
onDestroy$: Subject<boolean>;
|
|
33
58
|
/**
|
|
34
59
|
* Whether `withCredentials` mode is enabled.
|
|
35
60
|
* Usually means that `Kerberos` mode is used.
|
|
36
61
|
*/
|
|
37
62
|
get withCredentials(): boolean;
|
|
38
|
-
constructor(
|
|
63
|
+
constructor(preferencesService: UserPreferencesService, authenticationService: AuthenticationService, store: Store<AppStore>, router: Router, activatedRoute: ActivatedRoute, config: AppConfigService, pageTitle: PageTitleService, alfrescoApiService: AlfrescoApiService, uploadService: UploadService, routerExtensionService: RouterExtensionService, contentApi: ContentApiService, sharedLinksApiService: SharedLinksApiService, groupService: GroupService, overlayContainer: OverlayContainer, initialAppState: AppState, searchQueryBuilderService: SearchQueryBuilderService);
|
|
64
|
+
ngOnDestroy(): void;
|
|
65
|
+
init(): void;
|
|
66
|
+
private loadRepositoryStatus;
|
|
67
|
+
private loadUserProfile;
|
|
68
|
+
loadAppSettings(): void;
|
|
69
|
+
onFileUploadedError(error: FileUploadErrorEvent): void;
|
|
70
|
+
private loadCustomCss;
|
|
71
|
+
private loadCustomWebFont;
|
|
72
|
+
private createLink;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppService, never>;
|
|
74
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
39
75
|
}
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
1
|
import { AlfrescoApiService, UserPreferencesService } from '@alfresco/adf-core';
|
|
26
2
|
import { Observable } from 'rxjs';
|
|
27
|
-
import { MinimalNodeEntity, NodePaging, Node, DeletedNodesPaging, PersonEntry, NodeEntry, DiscoveryEntry, FavoritePaging, SharedLinkPaging, SearchRequest, ResultSetPaging, SiteBody, SiteEntry, FavoriteEntry } from '@alfresco/js-api';
|
|
3
|
+
import { MinimalNodeEntity, NodePaging, Node, DeletedNodesPaging, PersonEntry, NodeEntry, DiscoveryEntry, FavoritePaging, SharedLinkPaging, SearchRequest, ResultSetPaging, SiteBody, SiteEntry, FavoriteEntry, NodesApi, TrashcanApi, SharedlinksApi, DiscoveryApi, FavoritesApi, ContentApi, SitesApi, SearchApi, PeopleApi, VersionsApi, DirectAccessUrlEntry, VersionPaging } from '@alfresco/js-api';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
28
5
|
export declare class ContentApiService {
|
|
29
6
|
private api;
|
|
30
7
|
private preferences;
|
|
8
|
+
_nodesApi: NodesApi;
|
|
9
|
+
get nodesApi(): NodesApi;
|
|
10
|
+
_trashcanApi: TrashcanApi;
|
|
11
|
+
get trashcanApi(): TrashcanApi;
|
|
12
|
+
_sharedLinksApi: SharedlinksApi;
|
|
13
|
+
get sharedLinksApi(): SharedlinksApi;
|
|
14
|
+
_discoveryApi: DiscoveryApi;
|
|
15
|
+
get discoveryApi(): DiscoveryApi;
|
|
16
|
+
_favoritesApi: FavoritesApi;
|
|
17
|
+
get favoritesApi(): FavoritesApi;
|
|
18
|
+
_contentApi: ContentApi;
|
|
19
|
+
get contentApi(): ContentApi;
|
|
20
|
+
_sitesApi: SitesApi;
|
|
21
|
+
get sitesApi(): SitesApi;
|
|
22
|
+
_searchApi: SearchApi;
|
|
23
|
+
get searchApi(): SearchApi;
|
|
24
|
+
_peopleApi: PeopleApi;
|
|
25
|
+
get peopleApi(): PeopleApi;
|
|
26
|
+
_versionsApi: VersionsApi;
|
|
27
|
+
get versionsApi(): VersionsApi;
|
|
31
28
|
constructor(api: AlfrescoApiService, preferences: UserPreferencesService);
|
|
32
29
|
/**
|
|
33
30
|
* Moves a node to the trashcan.
|
|
31
|
+
*
|
|
34
32
|
* @param nodeId ID of the target node
|
|
35
33
|
* @param options Optional parameters supported by JS-API
|
|
36
34
|
* @returns Empty result that notifies when the deletion is complete
|
|
@@ -40,6 +38,7 @@ export declare class ContentApiService {
|
|
|
40
38
|
}): Observable<void>;
|
|
41
39
|
/**
|
|
42
40
|
* Gets the stored information about a node.
|
|
41
|
+
*
|
|
43
42
|
* @param nodeId ID of the target node
|
|
44
43
|
* @param options Optional parameters supported by JS-API
|
|
45
44
|
* @returns Node information
|
|
@@ -48,6 +47,7 @@ export declare class ContentApiService {
|
|
|
48
47
|
getNodeInfo(nodeId: string, options?: any): Observable<Node>;
|
|
49
48
|
/**
|
|
50
49
|
* Gets the items contained in a folder node.
|
|
50
|
+
*
|
|
51
51
|
* @param nodeId ID of the target node
|
|
52
52
|
* @param options Optional parameters supported by JS-API
|
|
53
53
|
* @returns List of child items from the folder
|
|
@@ -59,7 +59,9 @@ export declare class ContentApiService {
|
|
|
59
59
|
purgeDeletedNode(nodeId: string): Observable<any>;
|
|
60
60
|
/**
|
|
61
61
|
* Gets information about a user identified by their username.
|
|
62
|
+
*
|
|
62
63
|
* @param personId ID of the target user
|
|
64
|
+
* @param options Api options
|
|
63
65
|
* @returns User information
|
|
64
66
|
*/
|
|
65
67
|
getPerson(personId: string, options?: {
|
|
@@ -71,6 +73,7 @@ export declare class ContentApiService {
|
|
|
71
73
|
* @param nodeId The id of the node to be copied
|
|
72
74
|
* @param targetParentId The id of the folder-node where the node have to be copied to
|
|
73
75
|
* @param name The new name for the copy that would be added on the destination folder
|
|
76
|
+
* @param opts Api options
|
|
74
77
|
*/
|
|
75
78
|
copyNode(nodeId: string, targetParentId: string, name?: string, opts?: {
|
|
76
79
|
include?: Array<string>;
|
|
@@ -78,6 +81,7 @@ export declare class ContentApiService {
|
|
|
78
81
|
}): Observable<NodeEntry>;
|
|
79
82
|
/**
|
|
80
83
|
* Gets product information for Content Services.
|
|
84
|
+
*
|
|
81
85
|
* @returns ProductVersionModel containing product details
|
|
82
86
|
*/
|
|
83
87
|
getRepositoryInformation(): Observable<DiscoveryEntry>;
|
|
@@ -110,4 +114,9 @@ export declare class ContentApiService {
|
|
|
110
114
|
addFavorite(nodes: Array<MinimalNodeEntity>): Observable<FavoriteEntry>;
|
|
111
115
|
removeFavorite(nodes: Array<MinimalNodeEntity>): Observable<any>;
|
|
112
116
|
unlockNode(nodeId: string, opts?: any): Promise<MinimalNodeEntity>;
|
|
117
|
+
getNodeVersions(nodeId: string, opts?: any): Observable<VersionPaging>;
|
|
118
|
+
requestNodeDirectAccessUrl(nodeId: string): Observable<DirectAccessUrlEntry>;
|
|
119
|
+
requestVersionDirectAccessUrl(nodeId: string, versionId: string): Observable<DirectAccessUrlEntry>;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ContentApiService, never>;
|
|
121
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ContentApiService>;
|
|
113
122
|
}
|
|
@@ -1,29 +1,6 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
1
|
import { NodePermissions } from '@alfresco/adf-extensions';
|
|
26
2
|
import { Node, SharedLinkEntry, NodeEntry } from '@alfresco/js-api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
27
4
|
export declare type PermissionSource = NodeEntry | SharedLinkEntry | Node;
|
|
28
5
|
export interface PermissionOptions {
|
|
29
6
|
target?: string;
|
|
@@ -35,4 +12,6 @@ export declare class NodePermissionService implements NodePermissions {
|
|
|
35
12
|
check(source: PermissionSource | PermissionSource[], permissions: string[], options?: PermissionOptions): boolean;
|
|
36
13
|
private isOperationAllowed;
|
|
37
14
|
private getAllowableOperations;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NodePermissionService, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NodePermissionService>;
|
|
38
17
|
}
|
|
@@ -1,30 +1,7 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* @license
|
|
3
|
-
* Alfresco Example Content Application
|
|
4
|
-
*
|
|
5
|
-
* Copyright (C) 2005 - 2020 Alfresco Software Limited
|
|
6
|
-
*
|
|
7
|
-
* This file is part of the Alfresco Example Content Application.
|
|
8
|
-
* If the software was purchased under a paid Alfresco license, the terms of
|
|
9
|
-
* the paid license agreement will prevail. Otherwise, the software is
|
|
10
|
-
* provided under the following open source license terms:
|
|
11
|
-
*
|
|
12
|
-
* The Alfresco Example Content Application is free software: you can redistribute it and/or modify
|
|
13
|
-
* it under the terms of the GNU Lesser General Public License as published by
|
|
14
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
15
|
-
* (at your option) any later version.
|
|
16
|
-
*
|
|
17
|
-
* The Alfresco Example Content Application is distributed in the hope that it will be useful,
|
|
18
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
20
|
-
* GNU Lesser General Public License for more details.
|
|
21
|
-
*
|
|
22
|
-
* You should have received a copy of the GNU Lesser General Public License
|
|
23
|
-
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
|
-
*/
|
|
25
1
|
import { ExtensionService } from '@alfresco/adf-extensions';
|
|
26
2
|
import { ExtensionRoute } from '../models/types';
|
|
27
3
|
import { Router } from '@angular/router';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
28
5
|
export declare class RouterExtensionService {
|
|
29
6
|
private router;
|
|
30
7
|
protected extensions: ExtensionService;
|
|
@@ -39,4 +16,6 @@ export declare class RouterExtensionService {
|
|
|
39
16
|
private extensionRouteHasChild;
|
|
40
17
|
private convertExtensionRouteToRoute;
|
|
41
18
|
private findRoute;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouterExtensionService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RouterExtensionService>;
|
|
42
21
|
}
|
package/lib/shared.module.d.ts
CHANGED
|
@@ -23,6 +23,11 @@
|
|
|
23
23
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
24
24
|
*/
|
|
25
25
|
import { ModuleWithProviders } from '@angular/core';
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
import * as i1 from "./directives/contextmenu/contextmenu.module";
|
|
26
28
|
export declare class SharedModule {
|
|
27
29
|
static forRoot(): ModuleWithProviders<SharedModule>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
31
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, never, [typeof i1.ContextActionsModule], [typeof i1.ContextActionsModule]>;
|
|
32
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
28
33
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/platform-browser/animations";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/common/http";
|
|
5
|
+
import * as i4 from "@angular/router/testing";
|
|
6
|
+
import * as i5 from "@ngrx/store";
|
|
7
|
+
import * as i6 from "@ngrx/effects";
|
|
8
|
+
import * as i7 from "@ngx-translate/core";
|
|
9
|
+
import * as i8 from "@alfresco/adf-core";
|
|
10
|
+
export declare const initialState: {
|
|
11
|
+
app: {
|
|
12
|
+
appName: string;
|
|
13
|
+
headerColor: string;
|
|
14
|
+
logoPath: string;
|
|
15
|
+
headerImagePath: string;
|
|
16
|
+
sharedUrl: string;
|
|
17
|
+
user: {
|
|
18
|
+
isAdmin: any;
|
|
19
|
+
id: any;
|
|
20
|
+
firstName: string;
|
|
21
|
+
lastName: string;
|
|
22
|
+
};
|
|
23
|
+
selection: {
|
|
24
|
+
nodes: any[];
|
|
25
|
+
libraries: any[];
|
|
26
|
+
isEmpty: boolean;
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
29
|
+
navigation: {
|
|
30
|
+
currentFolder: any;
|
|
31
|
+
};
|
|
32
|
+
infoDrawerOpened: boolean;
|
|
33
|
+
infoDrawerMetadataAspect: string;
|
|
34
|
+
showFacetFilter: boolean;
|
|
35
|
+
documentDisplayMode: string;
|
|
36
|
+
repository: any;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export declare class LibTestingModule {
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibTestingModule, never>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.RouterTestingModule, typeof i5.StoreModule, typeof i6.EffectsRootModule, typeof i7.TranslateModule, typeof i8.PipeModule], never>;
|
|
42
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<LibTestingModule>;
|
|
43
|
+
}
|