refactor: migra NgModules a componentes standalone

This commit is contained in:
2026-07-27 21:34:48 +02:00
parent 771d83c0aa
commit c84de249bf
173 changed files with 1229 additions and 2176 deletions

View File

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

View File

@@ -1,3 +1,3 @@
export * from './util-value.module';
export * from './directives/value.directive';

View File

@@ -1,11 +0,0 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { PiValueDirective } from './directives/value.directive';
@NgModule({
imports: [CommonModule],
declarations: [PiValueDirective],
exports: [PiValueDirective],
})
export class PiSharedUtilValueModule {}