mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-10-08 14:51:14 +00:00
* improved update script and latest ADF libs * upgrade to latest js-api and ADF * upgrade tests * update viewer code * use @alfresco/js-api * update to latest adf * fix deprecation issues * update viewer * fix copy/move dialog * change expect * fix remove site from favorites * fix unit test * update adf version * use ADF upload dialog
51 lines
1.7 KiB
HTML
51 lines
1.7 KiB
HTML
<ng-container *ngIf="nodeId">
|
|
<adf-viewer
|
|
[nodeId]="nodeId"
|
|
[allowNavigate]="navigateMultiple"
|
|
[allowRightSidebar]="hasRightSidebar"
|
|
[allowPrint]="false"
|
|
[allowDownload]="false"
|
|
[allowFullScreen]="false"
|
|
[canNavigateBefore]="previousNodeId"
|
|
[canNavigateNext]="nextNodeId"
|
|
[overlayMode]="true"
|
|
(showViewerChange)="onVisibilityChanged($event)"
|
|
(navigateBefore)="onNavigateBefore()"
|
|
(navigateNext)="onNavigateNext()"
|
|
[ngClass]="hasRightSidebar ? 'hide-last-divider' : ''"
|
|
>
|
|
<adf-viewer-sidebar>
|
|
<aca-info-drawer [node]="selection.file"></aca-info-drawer>
|
|
</adf-viewer-sidebar>
|
|
|
|
<adf-viewer-open-with *ngIf="openWith.length">
|
|
<ng-container *ngFor="let action of openWith; trackBy: trackByActionId">
|
|
<app-toolbar-menu-item [actionRef]="action"></app-toolbar-menu-item>
|
|
</ng-container>
|
|
</adf-viewer-open-with>
|
|
|
|
<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>
|
|
|
|
<ng-container *ngFor="let ext of contentExtensions">
|
|
<adf-viewer-extension [supportedExtensions]="[ext.fileExtension]">
|
|
<ng-template let-url="urlFileContent" let-extension="extension">
|
|
<app-preview-extension
|
|
[id]="ext.component"
|
|
[node]="selection.file?.entry"
|
|
[url]="url"
|
|
[extension]="extension"
|
|
[attr.data-automation-id]="ext.component"
|
|
>
|
|
</app-preview-extension>
|
|
</ng-template>
|
|
</adf-viewer-extension>
|
|
</ng-container>
|
|
</adf-viewer>
|
|
</ng-container>
|