mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
fix tsc viewer
This commit is contained in:
@@ -36,7 +36,7 @@ export class NotSupportedFormat {
|
|||||||
/**
|
/**
|
||||||
* Download file opening it in a new window
|
* Download file opening it in a new window
|
||||||
*/
|
*/
|
||||||
private download() {
|
download() {
|
||||||
window.open(this.urlFile);
|
window.open(this.urlFile);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -244,9 +244,9 @@ export class PdfViewerComponent {
|
|||||||
@HostListener('document:keydown', ['$event'])
|
@HostListener('document:keydown', ['$event'])
|
||||||
handleKeyboardEvent(event: KeyboardEvent) {
|
handleKeyboardEvent(event: KeyboardEvent) {
|
||||||
let key = event.keyCode;
|
let key = event.keyCode;
|
||||||
if (key === 39) { //right arrow
|
if (key === 39) { // right arrow
|
||||||
this.nextPage();
|
this.nextPage();
|
||||||
} else if (key === 37) {//left arrow
|
} else if (key === 37) { // left arrow
|
||||||
this.previousPage();
|
this.previousPage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -151,7 +151,7 @@ export class ViewerComponent {
|
|||||||
*
|
*
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
private supportedExtension() {
|
supportedExtension() {
|
||||||
return this.isImage() || this.isPdf();
|
return this.isImage() || this.isPdf();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,7 +162,7 @@ export class ViewerComponent {
|
|||||||
@HostListener('document:keydown', ['$event'])
|
@HostListener('document:keydown', ['$event'])
|
||||||
handleKeyboardEvent(event: KeyboardEvent) {
|
handleKeyboardEvent(event: KeyboardEvent) {
|
||||||
let key = event.keyCode;
|
let key = event.keyCode;
|
||||||
if (key === 27) { //esc
|
if (key === 27) { // esc
|
||||||
this.close();
|
this.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -8,11 +8,20 @@
|
|||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"removeComments": true,
|
"removeComments": true,
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
|
"noLib": false,
|
||||||
|
"allowUnreachableCode": false,
|
||||||
|
"allowUnusedLabels": false,
|
||||||
|
"noImplicitAny": false,
|
||||||
|
"noImplicitReturns": false,
|
||||||
|
"noImplicitUseStrict": false,
|
||||||
|
"noFallthroughCasesInSwitch": true,
|
||||||
"outDir": "dist"
|
"outDir": "dist"
|
||||||
},
|
},
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"demo",
|
"demo",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
"typings/main",
|
||||||
|
"typings/main.d.ts",
|
||||||
"dist"
|
"dist"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user