update codelyzer last version wit accessibility check

This commit is contained in:
Eugenio Romano
2019-03-26 17:05:03 +00:00
parent fbb6ab6cb8
commit 89f612bbb0
18 changed files with 150 additions and 126 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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