/*! * @license * Copyright © 2005-2025 Hyland Software, Inc. and its affiliates. All rights reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import { EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from '@angular/core'; import { CloseButtonPosition, Track, ViewerComponent, ViewerMoreActionsComponent, ViewerOpenWithComponent, ViewerSidebarComponent, ViewerToolbarActionsComponent, ViewerToolbarComponent } from '@alfresco/adf-core'; import { ContentApi, Node, NodeEntry, NodesApi, SharedlinksApi, VersionEntry, VersionsApi } from '@alfresco/js-api'; import { MatDialog } from '@angular/material/dialog'; import * as i0 from "@angular/core"; export declare class AlfrescoViewerComponent implements OnChanges, OnInit { private readonly apiService; private readonly nodesApiService; private readonly renditionService; private readonly viewUtilService; private readonly contentService; private readonly uploadService; dialog: MatDialog; private readonly cdr; private readonly nodeActionsService; adfViewer: ViewerComponent<{ node: Node; }>; toolbar: ViewerToolbarComponent; sidebar: ViewerSidebarComponent; toolbarActions: ViewerToolbarActionsComponent; moreActions: ViewerMoreActionsComponent; openWith: ViewerOpenWithComponent; viewerExtensions: TemplateRef; /** Node Id of the file to load. */ nodeId: string; /** Version Id of the file to load. */ versionId: string; /** Shared link id (to display shared file). */ sharedLinkId: string; /** Hide or show the viewer */ showViewer: boolean; /** * Number of times the Viewer will retry fetching content Rendition. * There is a delay of at least one second between attempts. */ maxRetries: number; /** Allows `back` navigation */ allowGoBack: boolean; /** Hide or show the toolbar */ showToolbar: boolean; /** * If `true` then show the Viewer as a full page over the current content. * Otherwise, fit inside the parent div. */ overlayMode: boolean; /** * Toggles before/next navigation. You can use the arrow buttons to navigate * between documents in the collection. */ allowNavigate: boolean; /** Toggles the "before" ("<") button. Requires `allowNavigate` to be enabled. */ canNavigateBefore: boolean; /** Toggles the next (">") button. Requires `allowNavigate` to be enabled. */ canNavigateNext: boolean; /** Allow the left the sidebar. */ allowLeftSidebar: boolean; /** Allow the right sidebar. */ allowRightSidebar: boolean; /** Toggles right sidebar visibility. Requires `allowRightSidebar` to be set to `true`. */ showRightSidebar: boolean; /** Toggles left sidebar visibility. Requires `allowLeftSidebar` to be set to `true`. */ showLeftSidebar: boolean; /** Toggles downloading. */ allowDownload: boolean; /** Toggles printing. */ allowPrint: boolean; /** Toggles the 'Full Screen' feature. */ allowFullScreen: boolean; /** Toggles the 'Info Button' */ hideInfoButton: boolean; /** Change the close button position Right/Left */ closeButtonPosition: CloseButtonPosition; /** The template for the right sidebar. The template context contains the loaded node data. */ sidebarRightTemplate: TemplateRef; /** The template for the left sidebar. The template context contains the loaded node data. */ sidebarLeftTemplate: TemplateRef; /** Should viewer work in read only mode */ readOnly: boolean; /** Toggles dividers visibility */ showToolbarDividers: boolean; /** Emitted when the shared link used is not valid. */ invalidSharedLink: EventEmitter; /** Emitted when user clicks 'Navigate Before' ("<") button. */ navigateBefore: EventEmitter; /** Emitted when user clicks 'Navigate Next' (">") button. */ navigateNext: EventEmitter; /** Emitted when the viewer close */ showViewerChange: EventEmitter; private cacheBusterNumber; versionEntry: VersionEntry; urlFileContent: string; fileName: string; mimeType: string; nodeMimeType: string; nodeEntry: NodeEntry; tracks: Track[]; canEditNode: boolean; allowedEditActions: { [key: string]: boolean; }; sidebarRightTemplateContext: { node: Node; }; sidebarLeftTemplateContext: { node: Node; }; private _sharedLinksApi; get sharedLinksApi(): SharedlinksApi; private _versionsApi; get versionsApi(): VersionsApi; private _nodesApi; get nodesApi(): NodesApi; private _contentApi; get contentApi(): ContentApi; private readonly destroyRef; constructor(); ngOnInit(): void; private onNodeUpdated; private getNodeVersionProperty; private setupSharedLink; private setupNode; private setUpNodeFile; private setUpSharedLinkFile; private getSharedLinkRendition; private generateCacheBusterNumber; /** * close the viewer */ onClose(): void; onPrintContent(event: MouseEvent): void; onSubmitFile(newImageBlob: Blob): void; onNavigateBeforeClick(event: MouseEvent | KeyboardEvent): void; onNavigateNextClick(event: MouseEvent | KeyboardEvent): void; isSourceDefined(): boolean; ngOnChanges(changes: SimpleChanges): void; onDownloadFile(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }