refactor(ui): migrate controls to lucide (#1840)

This commit is contained in:
Alex
2026-07-01 10:31:44 +01:00
committed by GitHub
parent 6fd21dac4a
commit 891f900d31
27 changed files with 233 additions and 212 deletions
@@ -13,6 +13,7 @@ import {
} from '@angular/core';
import { type FormValueControl } from '@angular/forms/signals';
import { TranslocoPipe, translateSignal } from '@jsverse/transloco';
import { LucideLoaderCircle } from '@lucide/angular';
import { APP_FIELD } from '../field/app-field.context';
@@ -30,7 +31,7 @@ interface Star {
@Component({
selector: 'app-rating',
standalone: true,
imports: [TranslocoPipe],
imports: [TranslocoPipe, LucideLoaderCircle],
changeDetection: ChangeDetectionStrategy.OnPush,
host: { class: 'inline-flex' },
template: `
@@ -57,7 +58,7 @@ interface Star {
<span class="rating-label">{{ valueLabel() }}</span>
}
@if (pending()) {
<i class="pi pi-spinner pi-spin ml-1 text-xs text-text-muted" aria-hidden="true"></i>
<svg lucideLoaderCircle class="ml-1 size-4 animate-spin text-text-muted" aria-hidden="true"></svg>
}
</span>
} @else {
@@ -109,7 +110,7 @@ interface Star {
<span class="rating-label">{{ valueLabel() }}</span>
}
@if (pending()) {
<i class="pi pi-spinner pi-spin ml-1 text-xs text-text-muted" aria-hidden="true"></i>
<svg lucideLoaderCircle class="ml-1 size-4 animate-spin text-text-muted" aria-hidden="true"></svg>
}
</div>
}