@alfresco/aca-shared 4.4.1 → 4.5.0-10004013253
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/esm2020/lib/adf-extensions/extensions-data-loader.guard.mjs +2 -2
- package/esm2020/lib/components/document-base-page/document-base-page.component.mjs +8 -6
- package/esm2020/lib/components/document-base-page/document-base-page.service.mjs +2 -2
- package/esm2020/lib/components/generic-error/generic-error.component.mjs +2 -2
- package/esm2020/lib/components/info-drawer/info-drawer.component.mjs +5 -6
- package/esm2020/lib/components/locked-by/locked-by.component.mjs +2 -2
- package/esm2020/lib/components/open-in-app/open-in-app.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-content.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-error.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout-header.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout.component.mjs +2 -2
- package/esm2020/lib/components/page-layout/page-layout.module.mjs +2 -2
- package/esm2020/lib/components/toolbar/toolbar-action/toolbar-action.component.mjs +5 -6
- package/esm2020/lib/components/toolbar/toolbar-button/toolbar-button.component.mjs +2 -2
- package/esm2020/lib/components/toolbar/toolbar-menu/toolbar-menu.component.mjs +6 -8
- package/esm2020/lib/components/toolbar/toolbar-menu-item/toolbar-menu-item.component.mjs +8 -10
- package/esm2020/lib/components/toolbar/toolbar.component.mjs +2 -2
- package/esm2020/lib/constants/index.mjs +25 -0
- package/esm2020/lib/constants/mime-types.mjs +213 -0
- package/esm2020/lib/deprecated/shared-toolbar.module.mjs +5 -28
- package/esm2020/lib/deprecated/shared.module.mjs +2 -2
- package/esm2020/lib/directives/contextmenu/contextmenu.directive.mjs +2 -2
- package/esm2020/lib/directives/pagination.directive.mjs +2 -2
- package/esm2020/lib/models/types.mjs +2 -2
- package/esm2020/lib/models/viewer.rules.mjs +2 -2
- package/esm2020/lib/routing/plugin-enabled.guard.mjs +54 -0
- package/esm2020/lib/routing/shared.guard.mjs +2 -2
- package/esm2020/lib/services/aca-file-auto-download.service.mjs +2 -2
- package/esm2020/lib/services/aca-mobile-app-switcher.service.mjs +2 -2
- package/esm2020/lib/services/app-hook.service.mjs +2 -2
- package/esm2020/lib/services/app-settings.service.mjs +98 -0
- package/esm2020/lib/services/app.extension.service.mjs +3 -20
- package/esm2020/lib/services/app.service.mjs +18 -37
- package/esm2020/lib/services/content-api.service.mjs +2 -2
- package/esm2020/lib/services/node-permission.service.mjs +2 -2
- package/esm2020/lib/services/router.extension.service.mjs +2 -2
- package/esm2020/lib/testing/lib-testing-module.mjs +31 -9
- package/esm2020/lib/utils/node.utils.mjs +2 -2
- package/esm2020/public-api.mjs +5 -3
- package/esm2020/rules/app.rules.mjs +10 -24
- package/esm2020/rules/navigation.rules.mjs +2 -2
- package/esm2020/rules/public-api.mjs +2 -2
- package/esm2020/rules/repository.rules.mjs +2 -2
- package/esm2020/rules/user.rules.mjs +2 -2
- package/esm2020/store/actions/app-action-types.mjs +2 -3
- package/esm2020/store/actions/app.actions.mjs +2 -8
- package/esm2020/store/actions/context-menu-action-types.mjs +2 -2
- package/esm2020/store/actions/contextmenu.actions.mjs +2 -2
- package/esm2020/store/actions/library.actions.mjs +2 -2
- package/esm2020/store/actions/metadata-aspect.actions.mjs +2 -2
- package/esm2020/store/actions/node.actions.mjs +2 -2
- package/esm2020/store/actions/router-action-types.mjs +2 -2
- package/esm2020/store/actions/router.actions.mjs +2 -2
- package/esm2020/store/actions/search.actions.mjs +2 -2
- package/esm2020/store/actions/snackbar.actions.mjs +2 -2
- package/esm2020/store/actions/template-action-types.mjs +2 -2
- package/esm2020/store/actions/template.actions.mjs +2 -2
- package/esm2020/store/actions/upload.actions.mjs +2 -2
- package/esm2020/store/actions/viewer.actions.mjs +4 -4
- package/esm2020/store/effects/dialog.effects.mjs +2 -2
- package/esm2020/store/effects/router.effects.mjs +2 -2
- package/esm2020/store/effects/snackbar.effects.mjs +2 -2
- package/esm2020/store/models/delete-status.model.mjs +2 -2
- package/esm2020/store/models/deleted-node-info.model.mjs +2 -2
- package/esm2020/store/models/modal-configuration.mjs +2 -2
- package/esm2020/store/models/node-info.model.mjs +2 -2
- package/esm2020/store/models/search-option.model.mjs +2 -2
- package/esm2020/store/public-api.mjs +2 -2
- package/esm2020/store/selectors/app.selectors.mjs +4 -8
- package/esm2020/store/states/app.state.mjs +35 -2
- package/esm2020/store/store.module.mjs +2 -2
- package/fesm2015/alfresco-aca-shared-rules.mjs +14 -28
- package/fesm2015/alfresco-aca-shared-rules.mjs.map +1 -1
- package/fesm2015/alfresco-aca-shared-store.mjs +61 -39
- package/fesm2015/alfresco-aca-shared-store.mjs.map +1 -1
- package/fesm2015/alfresco-aca-shared.mjs +445 -121
- package/fesm2015/alfresco-aca-shared.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared-rules.mjs +14 -28
- package/fesm2020/alfresco-aca-shared-rules.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared-store.mjs +64 -42
- package/fesm2020/alfresco-aca-shared-store.mjs.map +1 -1
- package/fesm2020/alfresco-aca-shared.mjs +460 -142
- package/fesm2020/alfresco-aca-shared.mjs.map +1 -1
- package/lib/adf-extensions/extensions-data-loader.guard.d.ts +1 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +1 -2
- package/lib/components/document-base-page/document-base-page.service.d.ts +1 -1
- package/lib/components/info-drawer/info-drawer.component.d.ts +1 -1
- package/lib/components/locked-by/locked-by.component.d.ts +1 -1
- package/lib/components/page-layout/page-layout.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-action/toolbar-action.component.d.ts +1 -1
- package/lib/components/toolbar/toolbar-menu/toolbar-menu.component.d.ts +1 -1
- package/lib/{models/modal-configuration.d.ts → constants/index.d.ts} +2 -4
- package/lib/constants/mime-types.d.ts +28 -0
- package/lib/deprecated/shared-toolbar.module.d.ts +5 -8
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +1 -1
- package/lib/directives/pagination.directive.d.ts +1 -1
- package/lib/models/types.d.ts +1 -17
- package/lib/models/viewer.rules.d.ts +1 -1
- package/lib/routing/plugin-enabled.guard.d.ts +35 -0
- package/lib/services/app-settings.service.d.ts +44 -0
- package/lib/services/app.extension.service.d.ts +2 -7
- package/lib/services/app.service.d.ts +7 -6
- package/lib/testing/lib-testing-module.d.ts +14 -2
- package/lib/utils/node.utils.d.ts +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +4 -2
- package/rules/app.rules.d.ts +1 -7
- package/rules/navigation.rules.d.ts +1 -1
- package/rules/public-api.d.ts +1 -1
- package/rules/repository.rules.d.ts +1 -1
- package/rules/user.rules.d.ts +1 -1
- package/store/actions/app-action-types.d.ts +1 -2
- package/store/actions/app.actions.d.ts +1 -7
- package/store/actions/context-menu-action-types.d.ts +1 -1
- package/store/actions/contextmenu.actions.d.ts +1 -1
- package/store/actions/library.actions.d.ts +1 -1
- package/store/actions/metadata-aspect.actions.d.ts +1 -1
- package/store/actions/node.actions.d.ts +1 -1
- package/store/actions/router-action-types.d.ts +1 -1
- package/store/actions/router.actions.d.ts +1 -1
- package/store/actions/search.actions.d.ts +1 -1
- package/store/actions/snackbar.actions.d.ts +1 -1
- package/store/actions/template-action-types.d.ts +1 -1
- package/store/actions/template.actions.d.ts +1 -1
- package/store/actions/upload.actions.d.ts +1 -1
- package/store/actions/viewer.actions.d.ts +4 -4
- package/store/effects/dialog.effects.d.ts +1 -1
- package/store/effects/snackbar.effects.d.ts +1 -1
- package/store/models/delete-status.model.d.ts +1 -1
- package/store/models/deleted-node-info.model.d.ts +1 -1
- package/store/models/modal-configuration.d.ts +1 -1
- package/store/models/node-info.model.d.ts +1 -1
- package/store/models/search-option.model.d.ts +1 -1
- package/store/public-api.d.ts +1 -1
- package/store/selectors/app.selectors.d.ts +2 -7
- package/store/states/app.state.d.ts +5 -7
- package/esm2020/lib/models/modal-configuration.mjs +0 -25
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -41,7 +41,6 @@ export declare abstract class PageComponent implements OnInit, OnDestroy, OnChan
|
|
|
41
41
|
infoDrawerOpened$: Observable<boolean>;
|
|
42
42
|
node: Node;
|
|
43
43
|
selection: SelectionState;
|
|
44
|
-
sharedPreviewUrl$: Observable<string>;
|
|
45
44
|
actions: Array<ContentActionRef>;
|
|
46
45
|
viewerToolbarActions: Array<ContentActionRef>;
|
|
47
46
|
canUpdateNode: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -21,6 +21,4 @@
|
|
|
21
21
|
* You should have received a copy of the GNU Lesser General Public License
|
|
22
22
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
25
|
-
focusedElementOnCloseSelector?: string;
|
|
26
|
-
}
|
|
24
|
+
export * from './mime-types';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 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 interface AlfrescoMimeType {
|
|
25
|
+
label: string;
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const DefaultMimeTypes: AlfrescoMimeType[];
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "../components/toolbar/toolbar-
|
|
6
|
-
import * as i5 from "../components/toolbar/toolbar-action/toolbar-action.component";
|
|
7
|
-
import * as i6 from "../components/toolbar/toolbar-menu-item/toolbar-menu-item.component";
|
|
8
|
-
import * as i7 from "../components/toolbar/toolbar-menu/toolbar-menu.component";
|
|
2
|
+
import * as i1 from "../components/toolbar/toolbar-button/toolbar-button.component";
|
|
3
|
+
import * as i2 from "../components/toolbar/toolbar-action/toolbar-action.component";
|
|
4
|
+
import * as i3 from "../components/toolbar/toolbar-menu-item/toolbar-menu-item.component";
|
|
5
|
+
import * as i4 from "../components/toolbar/toolbar-menu/toolbar-menu.component";
|
|
9
6
|
export declare class SharedToolbarModule {
|
|
10
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedToolbarModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedToolbarModule, never, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedToolbarModule, never, [typeof i1.ToolbarButtonComponent, typeof i2.ToolbarActionComponent, typeof i3.ToolbarMenuItemComponent, typeof i4.ToolbarMenuComponent], [typeof i1.ToolbarButtonComponent, typeof i2.ToolbarActionComponent, typeof i3.ToolbarMenuItemComponent, typeof i4.ToolbarMenuComponent]>;
|
|
12
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedToolbarModule>;
|
|
13
10
|
}
|
package/lib/models/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -23,22 +23,6 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { ContentActionRef } from '@alfresco/adf-extensions';
|
|
25
25
|
import { Route } from '@angular/router';
|
|
26
|
-
export interface SettingsGroupRef {
|
|
27
|
-
id: string;
|
|
28
|
-
name: string;
|
|
29
|
-
parameters: Array<SettingsParameterRef>;
|
|
30
|
-
rules?: {
|
|
31
|
-
visible?: string;
|
|
32
|
-
[key: string]: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface SettingsParameterRef {
|
|
36
|
-
id?: string;
|
|
37
|
-
name: string;
|
|
38
|
-
key: string;
|
|
39
|
-
type: 'string' | 'boolean';
|
|
40
|
-
value?: any;
|
|
41
|
-
}
|
|
42
26
|
export interface ExtensionRoute extends Route {
|
|
43
27
|
parentRoute?: string;
|
|
44
28
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright © 2005-2024 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 { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router } from '@angular/router';
|
|
25
|
+
import { AppConfigService } from '@alfresco/adf-core';
|
|
26
|
+
import * as i0 from "@angular/core";
|
|
27
|
+
export declare class PluginEnabledGuard implements CanActivate, CanActivateChild {
|
|
28
|
+
private appConfigService;
|
|
29
|
+
private router;
|
|
30
|
+
constructor(appConfigService: AppConfigService, router: Router);
|
|
31
|
+
canActivate(route: ActivatedRouteSnapshot): boolean;
|
|
32
|
+
canActivateChild(route: ActivatedRouteSnapshot): boolean;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PluginEnabledGuard, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PluginEnabledGuard>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AlfrescoMimeType } from '../constants/mime-types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AppSettingsService {
|
|
4
|
+
private appConfig;
|
|
5
|
+
/**
|
|
6
|
+
* Get the AOS (Alfresco Office Services) host URL from the app settings.
|
|
7
|
+
*/
|
|
8
|
+
get aosHost(): string;
|
|
9
|
+
/**
|
|
10
|
+
* Get the default landing page from the app settings.
|
|
11
|
+
* Default value: `/personal-files`.
|
|
12
|
+
*/
|
|
13
|
+
get landingPage(): string;
|
|
14
|
+
/**
|
|
15
|
+
* Get the list of mime types from the app settings.
|
|
16
|
+
*/
|
|
17
|
+
get mimeTypes(): AlfrescoMimeType[];
|
|
18
|
+
/**
|
|
19
|
+
* Get the application name from the app settings.
|
|
20
|
+
*/
|
|
21
|
+
get appName(): string;
|
|
22
|
+
/**
|
|
23
|
+
* Get the application version from the app settings.
|
|
24
|
+
*/
|
|
25
|
+
get appVersion(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Get the application logo URL from the app settings.
|
|
28
|
+
*/
|
|
29
|
+
get appLogoUrl(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get the custom CSS stylesheet path from the app settings.
|
|
32
|
+
*/
|
|
33
|
+
get customCssPath(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Get the custom web font path from the app settings.
|
|
36
|
+
*/
|
|
37
|
+
get webFontPath(): string;
|
|
38
|
+
/**
|
|
39
|
+
* Get the base share URL from the app settings.
|
|
40
|
+
*/
|
|
41
|
+
get baseShareUrl(): string;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingsService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppSettingsService>;
|
|
44
|
+
}
|
|
@@ -7,7 +7,7 @@ import { AppConfigService, AuthenticationService, LogService } from '@alfresco/a
|
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { NodeEntry, RepositoryInfo } from '@alfresco/js-api';
|
|
9
9
|
import { ViewerRules } from '../models/viewer.rules';
|
|
10
|
-
import { Badge
|
|
10
|
+
import { Badge } from '../models/types';
|
|
11
11
|
import { NodePermissionService } from '../services/node-permission.service';
|
|
12
12
|
import { SearchCategory } from '@alfresco/adf-content-services';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
@@ -27,7 +27,6 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
27
27
|
contentMetadata: any;
|
|
28
28
|
search: any;
|
|
29
29
|
viewerRules: ViewerRules;
|
|
30
|
-
settingGroups: Array<SettingsGroupRef>;
|
|
31
30
|
private _headerActions;
|
|
32
31
|
private _toolbarActions;
|
|
33
32
|
private _viewerToolbarActions;
|
|
@@ -35,7 +34,6 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
35
34
|
private _contextMenuActions;
|
|
36
35
|
private _openWithActions;
|
|
37
36
|
private _createActions;
|
|
38
|
-
private _mainActions;
|
|
39
37
|
private _sidebarActions;
|
|
40
38
|
private _badges;
|
|
41
39
|
private _filesDocumentListPreset;
|
|
@@ -72,12 +70,10 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
72
70
|
}> | {
|
|
73
71
|
disabled: boolean;
|
|
74
72
|
}): any;
|
|
75
|
-
getNavigationGroups(): Array<NavBarGroupRef>;
|
|
76
73
|
getSidebarTabs(): Array<SidebarTabRef>;
|
|
77
74
|
private setActionDisabledFromRule;
|
|
78
75
|
updateSidebarActions(): void;
|
|
79
76
|
getCreateActions(): Observable<Array<ContentActionRef>>;
|
|
80
|
-
getMainAction(): Observable<ContentActionRef>;
|
|
81
77
|
getBadges(node: NodeEntry): Observable<Array<Badge>>;
|
|
82
78
|
getCustomMetadataPanels(node: NodeEntry): Observable<Array<ContentActionRef>>;
|
|
83
79
|
private buildMenu;
|
|
@@ -89,9 +85,8 @@ export declare class AppExtensionService implements RuleContext {
|
|
|
89
85
|
getSharedLinkViewerToolbarActions(): Observable<Array<ContentActionRef>>;
|
|
90
86
|
getHeaderActions(): Observable<Array<ContentActionRef>>;
|
|
91
87
|
getAllowedContextMenuActions(): Observable<Array<ContentActionRef>>;
|
|
92
|
-
getSettingsGroups(): Array<SettingsGroupRef>;
|
|
93
88
|
copyAction(action: ContentActionRef): ContentActionRef;
|
|
94
|
-
filterVisible(action: ContentActionRef |
|
|
89
|
+
filterVisible(action: ContentActionRef | SidebarTabRef | DocumentListPresetRef | SearchCategory): boolean;
|
|
95
90
|
isViewerExtensionDisabled(extension: any): boolean;
|
|
96
91
|
runActionById(id: string, additionalPayload?: any): void;
|
|
97
92
|
isRuleDefined(ruleId: string): boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -27,13 +27,15 @@ import { Observable, Subject } from 'rxjs';
|
|
|
27
27
|
import { GroupService, SearchQueryBuilderService, SharedLinksApiService, UploadService, FileUploadErrorEvent } from '@alfresco/adf-content-services';
|
|
28
28
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
29
29
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
30
|
-
import {
|
|
30
|
+
import { AppStore } from '@alfresco/aca-shared/store';
|
|
31
31
|
import { ContentApiService } from './content-api.service';
|
|
32
32
|
import { RouterExtensionService } from './router.extension.service';
|
|
33
33
|
import { Store } from '@ngrx/store';
|
|
34
34
|
import { AcaMobileAppSwitcherService } from './aca-mobile-app-switcher.service';
|
|
35
|
+
import { ShellAppService } from '@alfresco/adf-core/shell';
|
|
36
|
+
import { AppSettingsService } from './app-settings.service';
|
|
35
37
|
import * as i0 from "@angular/core";
|
|
36
|
-
export declare class AppService implements OnDestroy {
|
|
38
|
+
export declare class AppService implements ShellAppService, OnDestroy {
|
|
37
39
|
preferencesService: UserPreferencesService;
|
|
38
40
|
private authenticationService;
|
|
39
41
|
private store;
|
|
@@ -48,8 +50,8 @@ export declare class AppService implements OnDestroy {
|
|
|
48
50
|
private sharedLinksApiService;
|
|
49
51
|
private groupService;
|
|
50
52
|
private overlayContainer;
|
|
51
|
-
private initialAppState;
|
|
52
53
|
private acaMobileAppSwitcherService;
|
|
54
|
+
private appSettingsService;
|
|
53
55
|
private ready;
|
|
54
56
|
ready$: Observable<boolean>;
|
|
55
57
|
pageHeading$: Observable<string>;
|
|
@@ -63,13 +65,12 @@ export declare class AppService implements OnDestroy {
|
|
|
63
65
|
* Usually means that `Kerberos` mode is used.
|
|
64
66
|
*/
|
|
65
67
|
get withCredentials(): boolean;
|
|
66
|
-
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,
|
|
68
|
+
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, searchQueryBuilderService: SearchQueryBuilderService, acaMobileAppSwitcherService: AcaMobileAppSwitcherService, appSettingsService: AppSettingsService);
|
|
67
69
|
ngOnDestroy(): void;
|
|
68
70
|
init(): void;
|
|
69
71
|
setAppNavbarMode(mode: 'expanded' | 'collapsed'): void;
|
|
70
72
|
private loadRepositoryStatus;
|
|
71
73
|
private loadUserProfile;
|
|
72
|
-
loadAppSettings(): void;
|
|
73
74
|
onFileUploadedError(error: FileUploadErrorEvent): void;
|
|
74
75
|
private loadCustomCss;
|
|
75
76
|
private loadCustomWebFont;
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { RepositoryInfo } from '@alfresco/js-api';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { DocumentBasePageService } from '../../public-api';
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
5
|
import * as i1 from "@angular/platform-browser/animations";
|
|
3
6
|
import * as i2 from "@angular/common";
|
|
@@ -8,7 +11,6 @@ import * as i6 from "@ngrx/store";
|
|
|
8
11
|
import * as i7 from "@angular/cdk/overlay";
|
|
9
12
|
import * as i8 from "@ngrx/effects";
|
|
10
13
|
import * as i9 from "@ngx-translate/core";
|
|
11
|
-
import * as i10 from "@alfresco/adf-core";
|
|
12
14
|
export declare const initialState: {
|
|
13
15
|
app: {
|
|
14
16
|
appName: string;
|
|
@@ -35,8 +37,18 @@ export declare const initialState: {
|
|
|
35
37
|
repository: any;
|
|
36
38
|
};
|
|
37
39
|
};
|
|
40
|
+
export declare const discoveryApiServiceMockValue: {
|
|
41
|
+
ecmProductInfo$: BehaviorSubject<RepositoryInfo>;
|
|
42
|
+
getEcmProductInfo: () => Observable<RepositoryInfo>;
|
|
43
|
+
};
|
|
44
|
+
export declare class DocumentBasePageServiceMock extends DocumentBasePageService {
|
|
45
|
+
canUpdateNode(): boolean;
|
|
46
|
+
canUploadContent(): boolean;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentBasePageServiceMock, never>;
|
|
48
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DocumentBasePageServiceMock>;
|
|
49
|
+
}
|
|
38
50
|
export declare class LibTestingModule {
|
|
39
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibTestingModule, never>;
|
|
40
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<LibTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.RouterTestingModule, typeof i5.MatIconTestingModule, typeof i6.StoreModule, typeof i7.OverlayModule, typeof i6.StoreRootModule, typeof i8.EffectsRootModule, typeof i9.TranslateModule
|
|
52
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<LibTestingModule, never, [typeof i1.NoopAnimationsModule, typeof i2.CommonModule, typeof i3.HttpClientModule, typeof i4.RouterTestingModule, typeof i5.MatIconTestingModule, typeof i6.StoreModule, typeof i7.OverlayModule, typeof i6.StoreRootModule, typeof i8.EffectsRootModule, typeof i9.TranslateModule], [typeof i9.TranslateModule]>;
|
|
41
53
|
static ɵinj: i0.ɵɵInjectorDeclaration<LibTestingModule>;
|
|
42
54
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/aca-shared",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-10004013253",
|
|
4
4
|
"commit": "",
|
|
5
5
|
"license": "LGPL-3.0",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@alfresco/adf-content-services": ">=6.
|
|
8
|
-
"@alfresco/adf-core": ">=6.
|
|
9
|
-
"@alfresco/adf-extensions": ">=6.
|
|
10
|
-
"@alfresco/js-api": ">=7.
|
|
7
|
+
"@alfresco/adf-content-services": ">=6.10.0-0",
|
|
8
|
+
"@alfresco/adf-core": ">=6.10.0-0",
|
|
9
|
+
"@alfresco/adf-extensions": ">=6.10.0-0",
|
|
10
|
+
"@alfresco/js-api": ">=7.9.0-0",
|
|
11
11
|
"@angular/animations": ">=14.1.3",
|
|
12
12
|
"@angular/common": ">=14.1.3",
|
|
13
13
|
"@angular/compiler": ">=14.1.3",
|
package/public-api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -38,12 +38,13 @@ export * from './lib/components/info-drawer/info-drawer.component';
|
|
|
38
38
|
export * from './lib/components/document-base-page/document-base-page.component';
|
|
39
39
|
export * from './lib/components/document-base-page/document-base-page.service';
|
|
40
40
|
export * from './lib/components/open-in-app/open-in-app.component';
|
|
41
|
+
export * from './lib/constants';
|
|
41
42
|
export * from './lib/directives/contextmenu/contextmenu.directive';
|
|
42
43
|
export * from './lib/directives/pagination.directive';
|
|
43
44
|
export * from './lib/models/types';
|
|
44
45
|
export * from './lib/models/viewer.rules';
|
|
45
|
-
export * from './lib/models/modal-configuration';
|
|
46
46
|
export * from './lib/routing/shared.guard';
|
|
47
|
+
export * from './lib/routing/plugin-enabled.guard';
|
|
47
48
|
export * from './lib/services/app.service';
|
|
48
49
|
export * from './lib/services/content-api.service';
|
|
49
50
|
export * from './lib/services/node-permission.service';
|
|
@@ -51,6 +52,7 @@ export * from './lib/services/app.extension.service';
|
|
|
51
52
|
export * from './lib/services/router.extension.service';
|
|
52
53
|
export * from './lib/services/app-hook.service';
|
|
53
54
|
export * from './lib/services/aca-file-auto-download.service';
|
|
55
|
+
export * from './lib/services/app-settings.service';
|
|
54
56
|
export * from './lib/utils/node.utils';
|
|
55
57
|
export * from './lib/testing/lib-testing-module';
|
|
56
58
|
export * from './lib/deprecated/shared.module';
|
package/rules/app.rules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -71,11 +71,6 @@ export interface AcaRuleContext extends RuleContext {
|
|
|
71
71
|
* JSON ref: `app.isContentServiceEnabled`
|
|
72
72
|
*/
|
|
73
73
|
export declare const isContentServiceEnabled: (context: AcaRuleContext) => boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Checks if Search is supported for active view
|
|
76
|
-
* JSON ref: `app.isSearchSupported`
|
|
77
|
-
*/
|
|
78
|
-
export declare const isSearchSupported: (context: RuleContext) => boolean;
|
|
79
74
|
/**
|
|
80
75
|
* Checks if upload action is supported for the given context
|
|
81
76
|
* JSON ref: `app.isUploadSupported`
|
|
@@ -280,7 +275,6 @@ export declare const canManageFileVersions: (context: RuleContext) => boolean;
|
|
|
280
275
|
* @param context Rule execution context
|
|
281
276
|
*/
|
|
282
277
|
export declare const canEditAspects: (context: RuleContext) => boolean;
|
|
283
|
-
export declare const editAspects: (context: RuleContext) => boolean;
|
|
284
278
|
export declare const canShowExpand: (context: RuleContext) => boolean;
|
|
285
279
|
/**
|
|
286
280
|
* Checks if user can manage permissions for the selected node.
|
package/rules/public-api.d.ts
CHANGED
package/rules/user.rules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
23
|
*/
|
|
24
24
|
export declare enum AppActionTypes {
|
|
25
|
-
SetInitialState = "SET_INITIAL_STATE",
|
|
26
25
|
SetCurrentFolder = "SET_CURRENT_FOLDER",
|
|
27
26
|
SetCurrentVersion = "SET_CURRENT_VERSION",
|
|
28
27
|
SetCurrentUrl = "SET_CURRENT_URL",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Copyright © 2005-
|
|
2
|
+
* Copyright © 2005-2024 Hyland Software, Inc. and its affiliates. All rights reserved.
|
|
3
3
|
*
|
|
4
4
|
* Alfresco Example Content Application
|
|
5
5
|
*
|
|
@@ -23,13 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
import { Action } from '@ngrx/store';
|
|
25
25
|
import { Node, Person, Group, RepositoryInfo, VersionEntry } from '@alfresco/js-api';
|
|
26
|
-
import { AppState } from '../states/app.state';
|
|
27
26
|
import { AppActionTypes } from './app-action-types';
|
|
28
|
-
export declare class SetInitialStateAction implements Action {
|
|
29
|
-
payload: AppState;
|
|
30
|
-
readonly type = AppActionTypes.SetInitialState;
|
|
31
|
-
constructor(payload: AppState);
|
|
32
|
-
}
|
|
33
27
|
export declare class SetCurrentFolderAction implements Action {
|
|
34
28
|
payload: Node;
|
|
35
29
|
readonly type = AppActionTypes.SetCurrentFolder;
|