mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-2137] Document Thumbnail Pane (#2943)
* pdf thumbnails * update TestBed declarations * add PdfViewerService to TestBed * content projection * update TestBed declaration * update TestBed * update TestBed * docs * pristine * added doc component image * use global PDFJS instance fro tests
This commit is contained in:
committed by
Eugenio Romano
parent
5955cc567d
commit
28ca71a5f9
@@ -18,7 +18,8 @@
|
||||
import { Location } from '@angular/common';
|
||||
import {
|
||||
Component, ContentChild, EventEmitter, HostListener, ElementRef,
|
||||
Input, OnChanges, Output, SimpleChanges, TemplateRef, ViewEncapsulation
|
||||
Input, OnChanges, Output, SimpleChanges, TemplateRef,
|
||||
ViewEncapsulation
|
||||
} from '@angular/core';
|
||||
import { MinimalNodeEntryEntity, RenditionEntry } from 'alfresco-js-api';
|
||||
import { BaseEvent } from '../../events';
|
||||
@@ -130,6 +131,10 @@ export class ViewerComponent implements OnChanges {
|
||||
@Input()
|
||||
allowSidebar = false;
|
||||
|
||||
/** Toggles PDF thumbnails. */
|
||||
@Input()
|
||||
allowThumbnails = true;
|
||||
|
||||
/** Toggles sidebar visibility. Requires `allowSidebar` to be set to `true`. */
|
||||
@Input()
|
||||
showSidebar = false;
|
||||
@@ -142,6 +147,10 @@ export class ViewerComponent implements OnChanges {
|
||||
@Input()
|
||||
sidebarTemplate: TemplateRef<any> = null;
|
||||
|
||||
/** The template for the pdf thumbnails. */
|
||||
@Input()
|
||||
thumbnailsTemplate: TemplateRef<any> = null;
|
||||
|
||||
/** MIME type of the file content (when not determined by the filename extension). */
|
||||
@Input()
|
||||
mimeType: string;
|
||||
@@ -192,6 +201,7 @@ export class ViewerComponent implements OnChanges {
|
||||
@Output()
|
||||
navigateNext = new EventEmitter();
|
||||
|
||||
showPdfThumbnails: boolean = false;
|
||||
viewerType = 'unknown';
|
||||
isLoading = false;
|
||||
node: MinimalNodeEntryEntity;
|
||||
|
Reference in New Issue
Block a user