chore: copia de libs/shared con prefijo Pi y APIs de terceros actualizadas

This commit is contained in:
2026-07-27 21:14:48 +02:00
parent 0758b00d54
commit 771d83c0aa
672 changed files with 47352 additions and 4692 deletions

View File

@@ -0,0 +1,21 @@
import { Directive, HostBinding, Input } from '@angular/core';
@Directive({
standalone: false,
selector: '[pi-value]',
})
export class PiValueDirective {
@HostBinding('class') get classes(): string | boolean {
return ['pi-value', this.value > 0 ? 'is-positive' : 'is-negative'].join(' ');
}
@Input() value!: number;
checkValue(): string {
if (this.value > 0) {
return 'is-positive';
} else {
return 'is-negative';
}
}
}