From a2b3cdc2706f12a2ee004f5ba9194a0651c7057a Mon Sep 17 00:00:00 2001 From: Diego Franchina Date: Thu, 14 Dec 2023 21:47:09 +0100 Subject: [PATCH] format code --- src/app/components/checkbox/checkbox.ts | 8 ++++---- src/app/components/tristatecheckbox/tristatecheckbox.ts | 8 ++++---- .../doc/tristatecheckbox/tristatecheckboxdoc.module.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/components/checkbox/checkbox.ts b/src/app/components/checkbox/checkbox.ts index c5af97f9427..072efafbeb6 100755 --- a/src/app/components/checkbox/checkbox.ts +++ b/src/app/components/checkbox/checkbox.ts @@ -203,13 +203,13 @@ export class Checkbox implements ControlValueAccessor { model: any; - onModelChange: Function = () => { }; + onModelChange: Function = () => {}; - onModelTouched: Function = () => { }; + onModelTouched: Function = () => {}; focused: boolean = false; - constructor(public cd: ChangeDetectorRef) { } + constructor(public cd: ChangeDetectorRef) {} ngAfterContentInit() { (this.templates as QueryList).forEach((item) => { @@ -285,4 +285,4 @@ export class Checkbox implements ControlValueAccessor { exports: [Checkbox, SharedModule], declarations: [Checkbox] }) -export class CheckboxModule { } +export class CheckboxModule {} diff --git a/src/app/components/tristatecheckbox/tristatecheckbox.ts b/src/app/components/tristatecheckbox/tristatecheckbox.ts index b3d164e416d..f4f0b59201a 100755 --- a/src/app/components/tristatecheckbox/tristatecheckbox.ts +++ b/src/app/components/tristatecheckbox/tristatecheckbox.ts @@ -76,7 +76,7 @@ export const TRISTATECHECKBOX_VALUE_ACCESSOR: any = { } }) export class TriStateCheckbox implements ControlValueAccessor { - constructor(private cd: ChangeDetectorRef) { } + constructor(private cd: ChangeDetectorRef) {} /** * When present, it specifies that the element should be disabled. * @group Props @@ -154,9 +154,9 @@ export class TriStateCheckbox implements ControlValueAccessor { value: Nullable; - onModelChange: Function = () => { }; + onModelChange: Function = () => {}; - onModelTouched: Function = () => { }; + onModelTouched: Function = () => {}; onClick(event: Event, input: HTMLInputElement) { if (!this.disabled && !this.readonly) { @@ -232,4 +232,4 @@ export class TriStateCheckbox implements ControlValueAccessor { exports: [TriStateCheckbox, SharedModule], declarations: [TriStateCheckbox] }) -export class TriStateCheckboxModule { } +export class TriStateCheckboxModule {} diff --git a/src/app/showcase/doc/tristatecheckbox/tristatecheckboxdoc.module.ts b/src/app/showcase/doc/tristatecheckbox/tristatecheckboxdoc.module.ts index 0d76a29e14b..57a8ffdded8 100644 --- a/src/app/showcase/doc/tristatecheckbox/tristatecheckboxdoc.module.ts +++ b/src/app/showcase/doc/tristatecheckbox/tristatecheckboxdoc.module.ts @@ -19,4 +19,4 @@ import { CheckboxModule } from 'primeng/checkbox'; exports: [AppDocModule], declarations: [ImportDoc, BasicDoc, InvalidDoc, DisabledDoc, StyleDoc, AccessibilityDoc, ReactiveFormsDoc] }) -export class TristatecheckboxDocModule { } +export class TristatecheckboxDocModule {}