mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
update codelyzer last version wit accessibility check
This commit is contained in:
@@ -31,9 +31,8 @@
|
||||
<div class="adf-empty-folder-this-space-is-empty">{{'ADF-DOCUMENT-LIST.EMPTY.HEADER' | translate}}</div>
|
||||
<div fxHide.lt-md="true" class="adf-empty-folder-drag-drop">{{ 'ADF-DATATABLE.EMPTY.DRAG-AND-DROP.TITLE' | translate }}</div>
|
||||
<div fxHide.lt-md="true" class="adf-empty-folder-any-files-here-to-add">{{ 'ADF-DATATABLE.EMPTY.DRAG-AND-DROP.SUBTITLE' | translate }}</div>
|
||||
<img class="adf-empty-folder-image" [src]="emptyFolderImageUrl">
|
||||
<img [alt]="'ADF-DATATABLE.EMPTY.DRAG-AND-DROP.TITLE' | translate" class="adf-empty-folder-image" [src]="emptyFolderImageUrl">
|
||||
</div>
|
||||
<!-- <div adf-empty-list-header class="adf-empty-list-header"> {{'ADF-DOCUMENT-LIST.EMPTY.HEADER' | translate}} </div> -->
|
||||
</adf-empty-list>
|
||||
<ng-content select="adf-custom-empty-content-template, empty-folder-content"></ng-content>
|
||||
</ng-template>
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
(touchend)="elementClicked(item)">
|
||||
<!-- This is a comment -->
|
||||
<mat-icon mat-list-icon>
|
||||
<img [src]="getMimeTypeIcon(item)"/>
|
||||
<img [alt]="getMimeType(item)" [src]="getMimeTypeIcon(item)"/>
|
||||
</mat-icon>
|
||||
<h4 mat-line id="result_name_{{idx}}"
|
||||
*ngIf="highlight; else elseBlock"
|
||||
|
||||
@@ -174,14 +174,21 @@ export class SearchControlComponent implements OnInit, OnDestroy {
|
||||
getMimeTypeIcon(node: NodeEntry): string {
|
||||
let mimeType;
|
||||
|
||||
mimeType = this.getMimeType(node);
|
||||
|
||||
return this.thumbnailService.getMimeTypeIcon(mimeType);
|
||||
}
|
||||
|
||||
private getMimeType(node: NodeEntry) {
|
||||
let mimeType;
|
||||
|
||||
if (node.entry.content && node.entry.content.mimeType) {
|
||||
mimeType = node.entry.content.mimeType;
|
||||
}
|
||||
if (node.entry.isFolder) {
|
||||
mimeType = 'folder';
|
||||
}
|
||||
|
||||
return this.thumbnailService.getMimeTypeIcon(mimeType);
|
||||
return mimeType;
|
||||
}
|
||||
|
||||
isSearchBarActive() {
|
||||
|
||||
@@ -63,24 +63,24 @@
|
||||
<h3>{{ 'ABOUT.VERSIONS.TITLE' | translate }}</h3>
|
||||
<div *ngIf="bpmVersion">
|
||||
<h3>{{ 'ABOUT.VERSIONS.PROCESS_SERVICE' | translate }}</h3>
|
||||
<label> {{ 'ABOUT.VERSIONS.LABELS.EDITION' | translate }} </label> {{ bpmVersion.edition }}
|
||||
<div> {{ 'ABOUT.VERSIONS.divS.EDITION' | translate }} </div> {{ bpmVersion.edition }}
|
||||
<p></p>
|
||||
<label> {{ 'ABOUT.VERSIONS.LABELS.VERSION' | translate }} </label> {{ bpmVersion.majorVersion }}.{{
|
||||
<div> {{ 'ABOUT.VERSIONS.divS.VERSION' | translate }} </div> {{ bpmVersion.majorVersion }}.{{
|
||||
bpmVersion.minorVersion }}.{{ bpmVersion.revisionVersion }}
|
||||
</div>
|
||||
<div *ngIf="ecmVersion">
|
||||
<h3>{{ 'ABOUT.VERSIONS.CONTENT_SERVICE' | translate }}</h3>
|
||||
<label>{{ 'ABOUT.VERSIONS.LABELS.EDITION' | translate }}</label> {{ ecmVersion.edition }}
|
||||
<div>{{ 'ABOUT.VERSIONS.divS.EDITION' | translate }}</div> {{ ecmVersion.edition }}
|
||||
<p></p>
|
||||
<label> {{ 'ABOUT.VERSIONS.LABELS.VERSION' | translate }} </label> {{ ecmVersion.version.display }}
|
||||
<div> {{ 'ABOUT.VERSIONS.divS.VERSION' | translate }} </div> {{ ecmVersion.version.display }}
|
||||
<p></p>
|
||||
<h4>{{ 'ABOUT.VERSIONS.LABELS.LICENSE' | translate }}</h4>
|
||||
<h4>{{ 'ABOUT.VERSIONS.divS.LICENSE' | translate }}</h4>
|
||||
<adf-datatable [data]="license"></adf-datatable>
|
||||
|
||||
<h4> {{ 'ABOUT.VERSIONS.LABELS.STATUS' | translate }}</h4>
|
||||
<h4> {{ 'ABOUT.VERSIONS.divS.STATUS' | translate }}</h4>
|
||||
<adf-datatable [data]="status"></adf-datatable>
|
||||
|
||||
<h4>{{ 'ABOUT.VERSIONS.LABELS.MODULES' | translate }}</h4>
|
||||
<h4>{{ 'ABOUT.VERSIONS.divS.MODULES' | translate }}</h4>
|
||||
|
||||
<adf-datatable [data]="modules"></adf-datatable>
|
||||
</div>
|
||||
|
||||
@@ -11,10 +11,9 @@
|
||||
{{getUserShortName(comment.createdBy)}}
|
||||
</div>
|
||||
<div>
|
||||
<img *ngIf="isPictureDefined(comment.createdBy)"
|
||||
<img [alt]="comment.createdBy" *ngIf="isPictureDefined(comment.createdBy)"
|
||||
class="adf-people-img"
|
||||
[src]="getUserImage(comment.createdBy)"
|
||||
/>
|
||||
[src]="getUserImage(comment.createdBy)" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="adf-comment-contents">
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<div [outerHTML]="user | usernameInitials:'adf-people-widget-pic'"></div>
|
||||
<div *ngIf="user.pictureId" class="adf-people-widget-image-row">
|
||||
<img id="adf-people-widget-pic-{{i}}" class="adf-people-widget-image"
|
||||
[src]="peopleProcessService.getUserImage(user)"/>
|
||||
[alt]="getDisplayName(user)" [src]="peopleProcessService.getUserImage(user)"/>
|
||||
</div>
|
||||
<span class="adf-people-label-name">{{getDisplayName(user)}}</span>
|
||||
</div>
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
id="username"
|
||||
data-automation-id="username"
|
||||
(blur)="trimUsername($event)"
|
||||
tabindex="1">
|
||||
tabindex="-1">
|
||||
</mat-form-field>
|
||||
|
||||
<span class="adf-login-validation" for="username" *ngIf="formError['username']">
|
||||
@@ -60,13 +60,13 @@
|
||||
[formControl]="form.controls['password']"
|
||||
id="password"
|
||||
data-automation-id="password"
|
||||
tabindex="2">
|
||||
tabindex="-2">
|
||||
<mat-icon *ngIf="isPasswordShow" matSuffix class="adf-login-password-icon"
|
||||
data-automation-id="hide_password" (click)="toggleShowPassword()" (keyup.enter)="toggleShowPassword()" tabindex="3">
|
||||
data-automation-id="hide_password" (click)="toggleShowPassword()" (keyup.enter)="toggleShowPassword()" tabindex="-3">
|
||||
visibility
|
||||
</mat-icon>
|
||||
<mat-icon *ngIf="!isPasswordShow" matSuffix class="adf-login-password-icon"
|
||||
data-automation-id="show_password" (click)="toggleShowPassword()" (keyup.enter)="toggleShowPassword()" tabindex="3">
|
||||
data-automation-id="show_password" (click)="toggleShowPassword()" (keyup.enter)="toggleShowPassword()" tabindex="-3">
|
||||
visibility_off
|
||||
</mat-icon>
|
||||
</mat-form-field>
|
||||
@@ -80,7 +80,7 @@
|
||||
<ng-content></ng-content>
|
||||
|
||||
<br>
|
||||
<button type="submit" id="login-button" tabindex="4"
|
||||
<button type="submit" id="login-button" tabindex="-4"
|
||||
class="adf-login-button"
|
||||
mat-raised-button color="primary"
|
||||
[class.adf-isChecking]="actualLoginStep === LoginSteps.Checking"
|
||||
@@ -115,7 +115,7 @@
|
||||
</div>
|
||||
|
||||
<div *ngIf="implicitFlow">
|
||||
<button type="button" (click)="implicitLogin()" id="login-button-sso" tabindex="1"
|
||||
<button type="button" (click)="implicitLogin()" id="login-button-sso" tabindex="-1"
|
||||
class="adf-login-button"
|
||||
mat-raised-button color="primary"
|
||||
data-automation-id="login-button-sso">
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<mat-card-content>
|
||||
<mat-form-field class="adf-full-width" floatLabel="{{'CORE.HOST_SETTINGS.CS-HOST' | translate }}">
|
||||
<mat-label>{{'CORE.HOST_SETTINGS.CS-HOST' | translate }}</mat-label>
|
||||
<input matInput [formControl]="ecmHost" data-automation-id="ecmHost" type="text" tabindex="2"
|
||||
<input matInput [formControl]="ecmHost" data-automation-id="ecmHost" type="text"
|
||||
id="ecmHost" placeholder="http(s)://host|ip:port(/path)">
|
||||
<mat-error *ngIf="ecmHost.hasError('pattern')">
|
||||
{{ 'CORE.HOST_SETTINGS.NOT_VALID'| translate }}
|
||||
@@ -44,7 +44,7 @@
|
||||
<mat-card-content>
|
||||
<mat-form-field class="adf-full-width" floatLabel="{{'CORE.HOST_SETTINGS.BP-HOST' | translate }}">
|
||||
<mat-label>{{'CORE.HOST_SETTINGS.BP-HOST' | translate }}</mat-label>
|
||||
<input matInput [formControl]="bpmHost" data-automation-id="bpmHost" type="text" tabindex="2"
|
||||
<input matInput [formControl]="bpmHost" data-automation-id="bpmHost" type="text"
|
||||
id="bpmHost" placeholder="http(s)://host|ip:port(/path)">
|
||||
<mat-error *ngIf="bpmHost.hasError('pattern')">
|
||||
{{ 'CORE.HOST_SETTINGS.NOT_VALID'| translate }}
|
||||
@@ -134,7 +134,7 @@
|
||||
<button mat-button (click)="onCancel()" color="primary">
|
||||
{{'CORE.HOST_SETTINGS.BACK' | translate }}
|
||||
</button>
|
||||
<button type="submit" id="host-button" tabindex="4" class="adf-login-button" mat-raised-button
|
||||
<button type="submit" id="host-button" class="adf-login-button" mat-raised-button
|
||||
color="primary" data-automation-id="host-button"
|
||||
[disabled]="!form.valid">
|
||||
{{'CORE.HOST_SETTINGS.APPLY' | translate }}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<ng-container *ngIf="image$ | async as image">
|
||||
<img [src]="image"
|
||||
<img [src]="image" [alt]="'ADF_VIEWER.SIDEBAR.THUMBNAILS.PAGE' | translate: { pageNum: page.id }"
|
||||
title="{{ 'ADF_VIEWER.SIDEBAR.THUMBNAILS.PAGE' | translate: { pageNum: page.id } }}">
|
||||
</ng-container>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
(click)="onNavigateBeforeClick()">
|
||||
<mat-icon>navigate_before</mat-icon>
|
||||
</button>
|
||||
<img class="adf-viewer__mimeicon" [src]="mimeType | adfMimeTypeIcon" data-automation-id="adf-file-thumbnail">
|
||||
<img class="adf-viewer__mimeicon" [alt]="mimeType | adfMimeTypeIcon" [src]="mimeType | adfMimeTypeIcon" data-automation-id="adf-file-thumbnail">
|
||||
<span class="adf-viewer__display-name" id="adf-viewer-display-name">{{ fileTitle }}</span>
|
||||
<button
|
||||
*ngIf="allowNavigate && canNavigateNext"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<label>{{field.nameKey | translate}}</label><br>
|
||||
<div [formGroup]="dateRange">
|
||||
<label for="adf-dateRange" >{{field.nameKey | translate}}</label><br>
|
||||
<div id="adf-dateRange" [formGroup]="dateRange">
|
||||
<small *ngIf="isStartDateGreaterThanEndDate()" class="adf-date-range-analytics-text-danger">
|
||||
{{'DATE-WIDGET.MESSAGES.START-LESS-THAN-END-DATE' | translate}}
|
||||
</small>
|
||||
|
||||
@@ -40,7 +40,7 @@
|
||||
(click)="openSelectDialogFromFileSource()">
|
||||
{{field.params?.fileSource?.name}}
|
||||
<mat-icon>
|
||||
<img class="adf-attach-widget__image-logo" src="../assets/images/alfresco-flower.svg">
|
||||
<img alt="alfresco" class="adf-attach-widget__image-logo" src="../assets/images/alfresco-flower.svg">
|
||||
</mat-icon>
|
||||
</button>
|
||||
<div *ngIf="!isDefinedSourceFolder()">
|
||||
@@ -49,7 +49,7 @@
|
||||
(click)="openSelectDialog(repo)">
|
||||
{{repo.name}}
|
||||
<mat-icon>
|
||||
<img class="adf-attach-widget__image-logo" src="../assets/images/alfresco-flower.svg">
|
||||
<img alt="alfresco" class="adf-attach-widget__image-logo" src="../assets/images/alfresco-flower.svg">
|
||||
</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
+2
-2
@@ -17,7 +17,7 @@
|
||||
<div *ngIf="!entry.row.obj.pictureId" class="adf-people-pic">
|
||||
{{getInitialUserName(entry.row.obj.firstName, entry.row.obj.lastName)}}</div>
|
||||
<div>
|
||||
<img *ngIf="entry.row.obj.pictureId" class="adf-people-img"
|
||||
<img [alt]="getDisplayUser(entry.row.obj.firstName, entry.row.obj.lastName, ' ')" *ngIf="entry.row.obj.pictureId" class="adf-people-img"
|
||||
[src]="peopleProcessService.getUserImage(entry.row.obj)"/>
|
||||
</div>
|
||||
</ng-template>
|
||||
@@ -30,4 +30,4 @@
|
||||
</data-columns>
|
||||
</adf-people-list>
|
||||
</div>
|
||||
</ng-container>
|
||||
</ng-container>
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<div *ngIf="!entry.row.obj.pictureId" class="adf-people-search-people-pic">
|
||||
{{getInitialUserName(entry.row.obj.firstName, entry.row.obj.lastName)}}</div>
|
||||
<div>
|
||||
<img *ngIf="entry.row.obj.pictureId" class="adf-people-img"
|
||||
<img [alt]="getDisplayUser(entry.row.obj.firstName, entry.row.obj.lastName, ' ')" *ngIf="entry.row.obj.pictureId" class="adf-people-img"
|
||||
[src]="peopleProcessService.getUserImage(entry.row.obj)"/>
|
||||
</div>
|
||||
</ng-template>
|
||||
|
||||
+6
-1
@@ -2,5 +2,10 @@
|
||||
"extends": "../tslint.json",
|
||||
"rules": {
|
||||
"adf-license-banner": [true, "lib/+(core|content-services|process-services|process-services-cloud|insights|extensions)/**/*.ts", "./license-community.txt"]
|
||||
}
|
||||
},
|
||||
"template-accessibility-alt-text": true,
|
||||
"template-accessibility-label-for": true,
|
||||
"template-accessibility-tabindex-no-positive": true,
|
||||
"template-accessibility-table-scope": true,
|
||||
"template-accessibility-valid-aria": true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user