fix peer-dependencies (#4080)

update codelyzer rules
This commit is contained in:
Eugenio Romano
2018-12-13 23:08:08 +00:00
committed by GitHub
parent 96ddd4210c
commit ffd72b853f
11 changed files with 132 additions and 2270 deletions

View File

@@ -12,19 +12,19 @@
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
},
"peerDependencies": {
"@angular/animations": ">=5.1.1",
"@angular/cdk": ">=5.1.1",
"@angular/common": ">=5.1.1",
"@angular/compiler": ">=5.1.1",
"@angular/core": ">=5.1.1",
"@angular/flex-layout": ">=6.0.0-beta.18",
"@angular/forms": ">=5.1.1",
"@angular/http": ">=5.1.1",
"@angular/material": ">=5.1.1",
"@angular/material-moment-adapter": ">=5.1.1",
"@angular/platform-browser": ">=5.1.1",
"@angular/platform-browser-dynamic": ">=5.1.1",
"@angular/router": ">=5.1.1",
"@angular/animations": ">=7.0.3",
"@angular/cdk": ">=7.0.3",
"@angular/common": ">=7.0.3",
"@angular/compiler": ">=7.0.3",
"@angular/core": ">=7.0.3",
"@angular/flex-layout": ">=7.0.0-beta.19",
"@angular/forms": ">=7.0.3",
"@angular/http": ">=7.0.3",
"@angular/material": ">=7.0.3",
"@angular/material-moment-adapter": ">=7.0.3",
"@angular/platform-browser": ">=7.0.3",
"@angular/platform-browser-dynamic": ">=7.0.3",
"@angular/router": ">=7.0.3",
"alfresco-js-api": ">=2.7.0-beta5",
"rxjs": ">=6.2.2",
"@alfresco/adf-core": ">=2.7.0-beta5",

View File

@@ -71,10 +71,8 @@
</div>
<div
*ngIf="file.status === FileUploadStatus.Cancelled ||
file.status === FileUploadStatus.Aborted ||
file.status === FileUploadStatus.Deleted"
*ngIf="showCancelledStatus()"
class="adf-file-uploading-row__block adf-file-uploading-row__status--cancelled">
{{ 'ADF_FILE_UPLOAD.STATUS.FILE_CANCELED_STATUS' | translate }}
</div>
<div>
</div>

View File

@@ -21,7 +21,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
@Component({
selector: 'adf-file-uploading-list-row',
templateUrl: './file-uploading-list-row.component.html',
styleUrls: [ './file-uploading-list-row.component.scss' ]
styleUrls: ['./file-uploading-list-row.component.scss']
})
export class FileUploadingListRowComponent {
@Input()
@@ -42,4 +42,10 @@ export class FileUploadingListRowComponent {
onRemove(file: FileModel): void {
this.remove.emit(file);
}
showCancelledStatus(): boolean {
return this.file.status === FileUploadStatus.Cancelled ||
this.file.status === FileUploadStatus.Aborted ||
this.file.status === FileUploadStatus.Deleted;
}
}