Update branch for ADF 6.0.0-A.2-7992 and JS-API 5.4.0-561 [ci:force] (#2952)

* [ci:force][auto-commit] Update @alfresco/adf-extensions to 6.0.0-A.2-8156 for branch: update-alfresco-dependencies originated from @alfresco/adf-extensions PR: 37793

* [ci:force][auto-commit] Update @alfresco/adf-core to 6.0.0-A.2-7992 for branch: update-alfresco-dependencies originated from @alfresco/adf-core PR: 37793

* [ci:force][auto-commit] Update @alfresco/adf-content-services to 6.0.0-A.2-8156 for branch: update-alfresco-dependencies originated from @alfresco/adf-content-services PR: 37793

* [ci:force][auto-commit] Update @alfresco/adf-cli to 6.0.0-A.2-7992 for branch: update-alfresco-dependencies originated from @alfresco/adf-cli PR: 37793

* [ci:force][auto-commit] Update @alfresco/adf-testing to 6.0.0-A.2-7992 for branch: update-alfresco-dependencies originated from @alfresco/adf-testing PR: 37793

* [AAE-10778] Fix viewer BC: replace adf-viewer with adf-alfresco-viewer

* Update @alfresco/adf-extensions and @alfresco/adf-content-services to 6.0.0-A.2-7992

* [AAE-10778] Fix viewer BC: fix Unit node effects unit tests, replace ViewUtilService with RenditionViewerService since method 'printFileGeneric' has been moved from ViewUtilService to RenditionViewerService

* Fix comments-tab unit test: provide a mock onLogout value

---------

Co-authored-by: Amedeo Lepore <amedeo.lepore@hyland.com>
This commit is contained in:
Alfresco Build
2023-02-02 11:07:02 +01:00
committed by GitHub
parent 567882e864
commit 704f0a8b65
17 changed files with 58 additions and 51 deletions

View File

@@ -29,6 +29,8 @@ import { AppTestingModule } from '../../../testing/app-testing.module';
import { NodePermissionService } from '@alfresco/aca-shared';
import { Node } from '@alfresco/js-api';
import { NodeCommentsModule } from '@alfresco/adf-content-services';
import { of } from 'rxjs';
import { AuthenticationService } from '@alfresco/adf-core';
describe('CommentsTabComponent', () => {
let component: CommentsTabComponent;
@@ -39,7 +41,8 @@ describe('CommentsTabComponent', () => {
beforeEach(() => {
TestBed.configureTestingModule({
imports: [AppTestingModule, NodeCommentsModule],
declarations: [CommentsTabComponent]
declarations: [CommentsTabComponent],
providers: [{ provide: AuthenticationService, useValue: { onLogout: of({}) } }]
});
nodePermissionService = TestBed.inject(NodePermissionService);

View File

@@ -95,7 +95,7 @@
"
*ngIf="infoDrawerOpened$ | async"
>
<adf-viewer
<adf-alfresco-viewer
class="adf-search-results--embedded_viewer"
[nodeId]="selection.last.entry.id"
*ngIf="infoDrawerPreview$ | async; else infoDrawerPanel"
@@ -122,7 +122,7 @@
</div>
</div>
</adf-viewer-toolbar>
</adf-viewer>
</adf-alfresco-viewer>
<ng-template #infoDrawerPanel>
<div class="sidebar">
<aca-info-drawer [node]="selection.last"></aca-info-drawer>

View File

@@ -1,9 +1,9 @@
<ng-container *ngIf="sharedLinkId">
<adf-viewer [allowPrint]="false" [allowDownload]="false" [allowFullScreen]="false" [sharedLinkId]="sharedLinkId" [allowGoBack]="false">
<adf-alfresco-viewer [allowPrint]="false" [allowDownload]="false" [allowFullScreen]="false" [sharedLinkId]="sharedLinkId" [allowGoBack]="false">
<adf-viewer-toolbar-actions>
<ng-container *ngFor="let action of viewerToolbarActions; trackBy: trackByActionId">
<aca-toolbar-action [actionRef]="action"></aca-toolbar-action>
</ng-container>
</adf-viewer-toolbar-actions>
</adf-viewer>
</adf-alfresco-viewer>
</ng-container>

View File

@@ -32,6 +32,7 @@ import { AppCommonModule } from '../common/common.module';
import { AppToolbarModule } from '../toolbar/toolbar.module';
import { AppInfoDrawerModule } from '../info-drawer/info.drawer.module';
import { CoreExtensionsModule } from '../../extensions/core.extensions.module';
import { ContentModule } from '@alfresco/adf-content-services';
@NgModule({
imports: [
@@ -41,7 +42,8 @@ import { CoreExtensionsModule } from '../../extensions/core.extensions.module';
AppCommonModule,
AppToolbarModule,
CoreExtensionsModule.forChild(),
AppInfoDrawerModule
AppInfoDrawerModule,
ContentModule
],
declarations: [SharedLinkViewComponent],
exports: [SharedLinkViewComponent]