@alfresco/aca-shared 5.2.0 → 5.3.0-11955434723
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/esm2022/lib/components/document-base-page/document-base-page.component.mjs +13 -16
- package/esm2022/lib/components/info-drawer/info-drawer.component.mjs +8 -11
- package/esm2022/lib/components/page-layout/page-layout.component.mjs +4 -10
- package/esm2022/lib/directives/contextmenu/contextmenu.directive.mjs +7 -10
- package/esm2022/lib/directives/pagination.directive.mjs +7 -10
- package/esm2022/lib/services/app.service.mjs +3 -8
- package/fesm2022/alfresco-aca-shared.mjs +23 -44
- package/fesm2022/alfresco-aca-shared.mjs.map +1 -1
- package/lib/components/document-base-page/document-base-page.component.d.ts +4 -4
- package/lib/components/info-drawer/info-drawer.component.d.ts +2 -3
- package/lib/components/page-layout/page-layout.component.d.ts +1 -27
- package/lib/directives/contextmenu/contextmenu.directive.d.ts +4 -6
- package/lib/directives/pagination.directive.d.ts +4 -5
- package/lib/services/app.service.d.ts +3 -29
- package/package.json +5 -5
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
import { DocumentListComponent, DocumentListService, SearchAiInputState, SearchAiService, ShareDataRow, UploadService } from '@alfresco/adf-content-services';
|
|
25
25
|
import { ShowHeaderMode, UserPreferencesService } from '@alfresco/adf-core';
|
|
26
26
|
import { ContentActionRef, DocumentListPresetRef, SelectionState } from '@alfresco/adf-extensions';
|
|
27
|
-
import { OnDestroy, OnInit,
|
|
27
|
+
import { DestroyRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
28
28
|
import { Store } from '@ngrx/store';
|
|
29
|
-
import {
|
|
30
|
-
import { Observable,
|
|
29
|
+
import { Node, NodeEntry, NodePaging } from '@alfresco/js-api';
|
|
30
|
+
import { Observable, Subscription } from 'rxjs';
|
|
31
31
|
import { DocumentBasePageService } from './document-base-page.service';
|
|
32
32
|
import { AppStore, ViewNodeExtras } from '@alfresco/aca-shared/store';
|
|
33
33
|
import { AppExtensionService } from '../../services/app.extension.service';
|
|
@@ -36,7 +36,6 @@ import { Router } from '@angular/router';
|
|
|
36
36
|
import { AppSettingsService } from '../../services/app-settings.service';
|
|
37
37
|
import * as i0 from "@angular/core";
|
|
38
38
|
export declare abstract class PageComponent implements OnInit, OnDestroy, OnChanges {
|
|
39
|
-
onDestroy$: Subject<void>;
|
|
40
39
|
documentList: DocumentListComponent;
|
|
41
40
|
title: string;
|
|
42
41
|
infoDrawerOpened$: Observable<boolean>;
|
|
@@ -64,6 +63,7 @@ export declare abstract class PageComponent implements OnInit, OnDestroy, OnChan
|
|
|
64
63
|
protected router: Router;
|
|
65
64
|
protected userPreferencesService: UserPreferencesService;
|
|
66
65
|
protected searchAiService: SearchAiService;
|
|
66
|
+
protected readonly destroyRef: DestroyRef;
|
|
67
67
|
private autoDownloadService;
|
|
68
68
|
private navigationHistoryService;
|
|
69
69
|
protected subscriptions: Subscription[];
|
|
@@ -22,12 +22,11 @@
|
|
|
22
22
|
* from Hyland Software. If not, see <http://www.gnu.org/licenses/>.
|
|
23
23
|
*/
|
|
24
24
|
import { OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
25
|
-
import {
|
|
25
|
+
import { Node, NodeEntry, SiteEntry } from '@alfresco/js-api';
|
|
26
26
|
import { ContentActionRef, SidebarTabRef } from '@alfresco/adf-extensions';
|
|
27
27
|
import { Store } from '@ngrx/store';
|
|
28
28
|
import { AppExtensionService } from '../../services/app.extension.service';
|
|
29
29
|
import { ContentApiService } from '../../services/content-api.service';
|
|
30
|
-
import { Subject } from 'rxjs';
|
|
31
30
|
import { ContentService, NodesApiService } from '@alfresco/adf-content-services';
|
|
32
31
|
import * as i0 from "@angular/core";
|
|
33
32
|
export declare class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
@@ -42,10 +41,10 @@ export declare class InfoDrawerComponent implements OnChanges, OnInit, OnDestroy
|
|
|
42
41
|
displayNode: Node | SiteEntry;
|
|
43
42
|
tabs: Array<SidebarTabRef>;
|
|
44
43
|
actions: Array<ContentActionRef>;
|
|
45
|
-
onDestroy$: Subject<boolean>;
|
|
46
44
|
preventFromClosing: boolean;
|
|
47
45
|
icon: string;
|
|
48
46
|
onEscapeKeyboardEvent(): void;
|
|
47
|
+
private readonly destroyRef;
|
|
49
48
|
constructor(store: Store<any>, contentApi: ContentApiService, extensions: AppExtensionService, nodesService: NodesApiService, contentService: ContentService);
|
|
50
49
|
ngOnInit(): void;
|
|
51
50
|
ngOnDestroy(): void;
|
|
@@ -1,38 +1,12 @@
|
|
|
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 { OnDestroy } from '@angular/core';
|
|
25
1
|
import { Observable } from 'rxjs';
|
|
26
2
|
import { AppService } from '../../services/app.service';
|
|
27
3
|
import * as i0 from "@angular/core";
|
|
28
|
-
export declare class PageLayoutComponent
|
|
4
|
+
export declare class PageLayoutComponent {
|
|
29
5
|
private appService;
|
|
30
6
|
hasError: boolean;
|
|
31
|
-
private onDestroy$;
|
|
32
7
|
appNavNarMode$: Observable<'collapsed' | 'expanded'>;
|
|
33
8
|
constructor(appService: AppService);
|
|
34
9
|
toggleClick(): void;
|
|
35
|
-
ngOnDestroy(): void;
|
|
36
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageLayoutComponent, never>;
|
|
37
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<PageLayoutComponent, "aca-page-layout", never, { "hasError": { "alias": "hasError"; "required": false; }; }, {}, never, [".aca-page-layout-header, aca-page-layout-header", ".aca-page-layout-error, aca-page-layout-error", ".aca-page-layout-content, aca-page-layout-content"], true, never>;
|
|
38
12
|
}
|
|
@@ -21,22 +21,20 @@
|
|
|
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
|
-
import { OnInit
|
|
25
|
-
import { Subject } from 'rxjs';
|
|
24
|
+
import { OnInit } from '@angular/core';
|
|
26
25
|
import { Store } from '@ngrx/store';
|
|
27
26
|
import { AppStore } from '@alfresco/aca-shared/store';
|
|
28
27
|
import { ContentActionRef } from '@alfresco/adf-extensions';
|
|
29
28
|
import * as i0 from "@angular/core";
|
|
30
|
-
export declare class ContextActionsDirective implements OnInit
|
|
29
|
+
export declare class ContextActionsDirective implements OnInit {
|
|
31
30
|
private store;
|
|
32
|
-
private execute$;
|
|
33
|
-
onDestroy$: Subject<boolean>;
|
|
34
31
|
enabled: boolean;
|
|
35
32
|
customActions: ContentActionRef[];
|
|
36
33
|
onContextMenuEvent(event: MouseEvent): void;
|
|
34
|
+
private execute$;
|
|
35
|
+
private readonly destroyRef;
|
|
37
36
|
constructor(store: Store<AppStore>);
|
|
38
37
|
ngOnInit(): void;
|
|
39
|
-
ngOnDestroy(): void;
|
|
40
38
|
execute(event: MouseEvent, target: Element): any;
|
|
41
39
|
private getTarget;
|
|
42
40
|
private isSelected;
|
|
@@ -21,17 +21,16 @@
|
|
|
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
|
-
import { OnInit
|
|
25
|
-
import { PaginationComponent, UserPreferencesService
|
|
24
|
+
import { OnInit } from '@angular/core';
|
|
25
|
+
import { AppConfigService, PaginationComponent, UserPreferencesService } from '@alfresco/adf-core';
|
|
26
26
|
import * as i0 from "@angular/core";
|
|
27
|
-
export declare class PaginationDirective implements OnInit
|
|
27
|
+
export declare class PaginationDirective implements OnInit {
|
|
28
28
|
private pagination;
|
|
29
29
|
private preferences;
|
|
30
30
|
private config;
|
|
31
|
-
private
|
|
31
|
+
private readonly destroyRef;
|
|
32
32
|
constructor(pagination: PaginationComponent, preferences: UserPreferencesService, config: AppConfigService);
|
|
33
33
|
ngOnInit(): void;
|
|
34
|
-
ngOnDestroy(): void;
|
|
35
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationDirective, never>;
|
|
36
35
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PaginationDirective, "[acaPagination]", never, {}, {}, never, never, true, never>;
|
|
37
36
|
}
|
|
@@ -1,30 +1,6 @@
|
|
|
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 { OnDestroy } from '@angular/core';
|
|
25
|
-
import { AuthenticationService, AppConfigService, PageTitleService, UserPreferencesService } from '@alfresco/adf-core';
|
|
1
|
+
import { AppConfigService, AuthenticationService, PageTitleService, UserPreferencesService } from '@alfresco/adf-core';
|
|
26
2
|
import { Observable, Subject } from 'rxjs';
|
|
27
|
-
import { AlfrescoApiService, SearchQueryBuilderService, SharedLinksApiService, UploadService
|
|
3
|
+
import { AlfrescoApiService, FileUploadErrorEvent, SearchQueryBuilderService, SharedLinksApiService, UploadService } from '@alfresco/adf-content-services';
|
|
28
4
|
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
29
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
30
6
|
import { AppStore } from '@alfresco/aca-shared/store';
|
|
@@ -36,7 +12,7 @@ import { ShellAppService } from '@alfresco/adf-core/shell';
|
|
|
36
12
|
import { AppSettingsService } from './app-settings.service';
|
|
37
13
|
import { UserProfileService } from './user-profile.service';
|
|
38
14
|
import * as i0 from "@angular/core";
|
|
39
|
-
export declare class AppService implements ShellAppService
|
|
15
|
+
export declare class AppService implements ShellAppService {
|
|
40
16
|
preferencesService: UserPreferencesService;
|
|
41
17
|
private authenticationService;
|
|
42
18
|
private store;
|
|
@@ -64,14 +40,12 @@ export declare class AppService implements ShellAppService, OnDestroy {
|
|
|
64
40
|
toggleAppNavBar$: Subject<void>;
|
|
65
41
|
hideSidenavConditions: string[];
|
|
66
42
|
minimizeSidenavConditions: string[];
|
|
67
|
-
onDestroy$: Subject<boolean>;
|
|
68
43
|
/**
|
|
69
44
|
* Whether `withCredentials` mode is enabled.
|
|
70
45
|
* Usually means that `Kerberos` mode is used.
|
|
71
46
|
*/
|
|
72
47
|
get withCredentials(): boolean;
|
|
73
48
|
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, overlayContainer: OverlayContainer, searchQueryBuilderService: SearchQueryBuilderService, acaMobileAppSwitcherService: AcaMobileAppSwitcherService, appSettingsService: AppSettingsService, userProfileService: UserProfileService);
|
|
74
|
-
ngOnDestroy(): void;
|
|
75
49
|
init(): void;
|
|
76
50
|
setAppNavbarMode(mode: 'expanded' | 'collapsed'): void;
|
|
77
51
|
private loadRepositoryStatus;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfresco/aca-shared",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0-11955434723",
|
|
4
4
|
"commit": "",
|
|
5
5
|
"license": "LGPL-3.0",
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@alfresco/adf-content-services": ">=7.0.0-alpha.
|
|
8
|
-
"@alfresco/adf-core": ">=7.0.0-alpha.
|
|
9
|
-
"@alfresco/adf-extensions": ">=7.0.0-alpha.
|
|
10
|
-
"@alfresco/js-api": ">=8.0.0-alpha.
|
|
7
|
+
"@alfresco/adf-content-services": ">=7.0.0-alpha.7-0",
|
|
8
|
+
"@alfresco/adf-core": ">=7.0.0-alpha.7-0",
|
|
9
|
+
"@alfresco/adf-extensions": ">=7.0.0-alpha.7-0",
|
|
10
|
+
"@alfresco/js-api": ">=8.0.0-alpha.7-0",
|
|
11
11
|
"@angular/animations": ">=15.2",
|
|
12
12
|
"@angular/common": ">=15.2",
|
|
13
13
|
"@angular/compiler": ">=15.2",
|