[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:
Cilibiu Bogdan
2018-02-20 12:29:40 +02:00
committed by Eugenio Romano
parent 5955cc567d
commit 28ca71a5f9
22 changed files with 631 additions and 18 deletions

View File

@@ -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;