fix: resuelve el type-checking estricto de plantillas y formatea con prettier
This commit is contained in:
@@ -1,20 +1,28 @@
|
||||
import { ChangeDetectionStrategy, Component, HostBinding, input } from '@angular/core';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
Component,
|
||||
HostBinding,
|
||||
input,
|
||||
} from '@angular/core';
|
||||
import { buttonSize, mode } from '../../../styles';
|
||||
import { PiBaseButtonComponent } from '../base-button.component';
|
||||
import { NgIf } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'pi-action-button',
|
||||
templateUrl: './action-button.component.html',
|
||||
styleUrls: ['./action-button.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
imports: [NgIf],
|
||||
selector: 'pi-action-button',
|
||||
templateUrl: './action-button.component.html',
|
||||
styleUrls: ['./action-button.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
imports: [NgIf],
|
||||
})
|
||||
export class PiActionButtonComponent extends PiBaseButtonComponent {
|
||||
@HostBinding('class') get classes(): string {
|
||||
return ['pi-action-button', this.sizeClass, this.directionClass, this.fontWeightClass].join(
|
||||
' '
|
||||
);
|
||||
return [
|
||||
'pi-action-button',
|
||||
this.sizeClass,
|
||||
this.directionClass,
|
||||
this.fontWeightClass,
|
||||
].join(' ');
|
||||
}
|
||||
|
||||
readonly previous = input(false);
|
||||
@@ -62,7 +70,9 @@ export class PiActionButtonComponent extends PiBaseButtonComponent {
|
||||
|
||||
override get appearanceClass(): string | null {
|
||||
const appearance = this.appearance();
|
||||
return appearance !== 'fill' ? `pi-button__appearance--${appearance}` : null;
|
||||
return appearance !== 'fill'
|
||||
? `pi-button__appearance--${appearance}`
|
||||
: null;
|
||||
}
|
||||
|
||||
get buttonTypeClass(): string | null {
|
||||
|
||||
Reference in New Issue
Block a user