mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-01 14:41:32 +00:00
* [ADF-4552] Rating component refactoring, add ability to unRate * [ADF-4552] RTL support added * [ADF-4552] Improve behaviour and styling structure in RTL languages * [ADF-4552] Improve behaviour and styling structure in RTL languages * [ADF-4552] Added refresh rating when the node Id input changes * [ADF-4552][ADF-4482] Refactor social component, add ability to unrate, add e2e automation * [ADF-4552][ADF-4482] Added unsibscribe from Observables, added css variables, removed unused class id's * [ADF-4552][ADF-4482] Improve structure and behaviour of e2e automation tests * [ADF-4552][ADF-4482] Improve structure and behaviour of e2e automation tests * [ADF-4552][ADF-4482] fix expected single space * [ADF-4552][ADF-4482] fix lint check failure * Fix circular dependency error
19 lines
1013 B
HTML
19 lines
1013 B
HTML
<mat-list id="adf-rating-container" class="adf-rating-container">
|
|
<mat-list-item class="adf-rating-star" *ngFor="let currentRate of stars; let idx = index;">
|
|
<span id="adf-rate-{{idx}}">
|
|
<mat-icon id="adf-colored-star-{{idx}}" *ngIf="currentRate.fill" class="adf-colored-star"
|
|
[ngClass]="{'adf-average-star': !ratingValue}"
|
|
(click)="updateVote(idx + 1)">star_rate
|
|
</mat-icon>
|
|
<mat-icon id="adf-grey-star-{{idx}}" *ngIf="!currentRate.fill" class="adf-grey-star"
|
|
(click)="updateVote(idx + 1)">star_border
|
|
</mat-icon>
|
|
</span>
|
|
</mat-list-item>
|
|
<div class="adf-rating-counter-container">
|
|
<div id="adf-rating-counter" class="adf-rating-counter">{{ratingsCounter}}</div>
|
|
<div class="adf-rating-left" *ngIf="ratingsCounter<=1">Rating</div>
|
|
<div class="adf-rating-left" *ngIf="ratingsCounter>1">Ratings</div>
|
|
</div>
|
|
</mat-list>
|