Skip to content

Commit

Permalink
Cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Dec 13, 2023
1 parent ff35596 commit e48ab18
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
5 changes: 0 additions & 5 deletions src/app/components/tristatecheckbox/tristatecheckbox.css

This file was deleted.

6 changes: 3 additions & 3 deletions src/app/showcase/doc/tristatecheckbox/basicdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Code } from '../../domain/code';
</app-docsectiontext>
<div class="card flex flex-column gap-3 align-items-center">
<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="tricheckbox">{{ value === null ? 'null' : value }}</label>
<label for="tricheckbox">{{ value === null ? 'null' : value }}</label>
</div>
<app-code [code]="code" selector="tri-state-checkbox-basic-demo"></app-code>
`
Expand All @@ -18,12 +18,12 @@ export class BasicDoc {
value: boolean | null = null;

code: Code = {
basic: `<p-triStateCheckbox class="p-tristatecheckbox-label" [(ngModel)]="value" inputId="tricheckbox"></p-triStateCheckbox>`,
basic: `<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox"></p-triStateCheckbox>`,

html: `
<div class="card flex flex-column gap-3 align-items-center">
<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="tricheckbox">{{ value === null ? 'null' : value }}</label>
<label for="tricheckbox">{{ value === null ? 'null' : value }}</label>
</div>`,

typescript: `
Expand Down
8 changes: 4 additions & 4 deletions src/app/showcase/doc/tristatecheckbox/invaliddoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import { Code } from '../../domain/code';
selector: 'invalid-doc',
template: `
<app-docsectiontext>
<p>Invalid state style is added using the <i>ng-invalid</i> and <i>ng-dirty</i> class to indicate a failed validation.</p>
<p>Invalid state style is added using the <i>ng-invalid</i> and <i>ng-dirty</i> class to indicate a failed validation.</p>
</app-docsectiontext>
<div class="card flex flex-column gap-3 align-items-center">
<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox" class="ng-dirty ng-invalid"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="tricheckbox">{{ value === null ? 'null' : value }}</label>
<label for="tricheckbox">{{ value === null ? 'null' : value }}</label>
</div>
<app-code [code]="code" selector="tri-state-checkbox-invalid-demo"></app-code>
`
Expand All @@ -19,11 +19,11 @@ export class InvalidDoc {

code: Code = {
basic: `<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox" class="ng-dirty ng-invalid"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="tricheckbox">{{ value === null ? 'null' : value }}</label>`,
<label for="tricheckbox">{{ value === null ? 'null' : value }}</label>`,

html: `<div class="card flex flex-column gap-3 align-items-center">
<p-triStateCheckbox [(ngModel)]="value" inputId="tricheckbox" class="ng-dirty ng-invalid"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="tricheckbox">{{ value === null ? 'null' : value }}</label>
<label for="tricheckbox">{{ value === null ? 'null' : value }}</label>
</div>`,

typescript: `
Expand Down
6 changes: 3 additions & 3 deletions src/app/showcase/doc/tristatecheckbox/reactiveformsdoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { Code } from '../../domain/code';
<div class="card flex justify-content-center">
<form [formGroup]="formGroup" class="flex flex-column align-items-center gap-3">
<p-triStateCheckbox formControlName="checked" inputId="checked"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
<label for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
</form>
</div>
<app-code [code]="code" selector="tri-state-checkbox-reactive-forms-demo"></app-code>
Expand All @@ -29,14 +29,14 @@ export class ReactiveFormsDoc implements OnInit {
code: Code = {
basic: `<form [formGroup]="formGroup" class="flex flex-column align-items-center gap-3">
<p-triStateCheckbox formControlName="checked" inputId="checked"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
<label for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
</form>`,

html: `
<div class="card flex justify-content-center">
<form [formGroup]="formGroup" class="flex flex-column align-items-center gap-3">
<p-triStateCheckbox formControlName="checked" inputId="checked"></p-triStateCheckbox>
<label class="p-tristatecheckbox-label" for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
<label for="checked">{{ formGroup.value.checked === null ? 'null' : formGroup.value.checked }}</label>
</form>
</div>`,

Expand Down

0 comments on commit e48ab18

Please sign in to comment.