ng update @angular/core@21 @angular/cli@21
This commit is contained in:
@@ -1,16 +1,28 @@
|
||||
<div *ngIf="gradientItems" class="form-control gradient-select" (click)="handleToggleList()">
|
||||
<div *ngIf="selectedItem">
|
||||
<div *ngIf="showLabel">{{selectedItem?.name}}</div>
|
||||
<fm-gradient [gradientItem]="selectedItem"></fm-gradient>
|
||||
</div>
|
||||
@if (gradientItems) {
|
||||
<div class="form-control gradient-select" (click)="handleToggleList()">
|
||||
@if (selectedItem) {
|
||||
<div>
|
||||
@if (showLabel) {
|
||||
<div>{{selectedItem?.name}}</div>
|
||||
}
|
||||
<fm-gradient [gradientItem]="selectedItem"></fm-gradient>
|
||||
</div>
|
||||
}
|
||||
<div class="gradient-list" [ngClass]="{'visible':listVisible}">
|
||||
<ul *ngIf="gradientItems">
|
||||
<li *ngFor="let item of gradientItems" (click)="handleSelect(item)" [ngClass]="{'bg-primary':isSelected(item),'text-white':isSelected(item)} ">
|
||||
<div>{{item?.name}}</div>
|
||||
<div><fm-gradient [gradientItem]="item"></fm-gradient></div>
|
||||
@if (gradientItems) {
|
||||
<ul>
|
||||
@for (item of gradientItems; track item) {
|
||||
<li (click)="handleSelect(item)" [ngClass]="{'bg-primary':isSelected(item),'text-white':isSelected(item)} ">
|
||||
<div>{{item?.name}}</div>
|
||||
<div><fm-gradient [gradientItem]="item"></fm-gradient></div>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
<div *ngIf="showAdd" class="addGradient"><a href="#" i18n (click)="handleAdd($event)" >Add gradient</a></div>
|
||||
}
|
||||
@if (showAdd) {
|
||||
<div class="addGradient"><a href="#" i18n (click)="handleAdd($event)" >Add gradient</a></div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user