Skip to content

Commit

Permalink
Formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
SoyDiego committed Dec 3, 2023
1 parent ded6445 commit 960482b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
20 changes: 10 additions & 10 deletions src/app/components/autocomplete/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,9 +718,9 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr

_suggestions = signal<any>(null);

onModelChange: Function = () => { };
onModelChange: Function = () => {};

onModelTouched: Function = () => { };
onModelTouched: Function = () => {};

timeout: Nullable<any>;

Expand Down Expand Up @@ -844,11 +844,11 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
return !this.virtualScroll;
}

constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public config: PrimeNGConfig, public overlayService: OverlayService, private zone: NgZone) { }
constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public config: PrimeNGConfig, public overlayService: OverlayService, private zone: NgZone) {}

ngOnInit() {
this.id = this.id || UniqueComponentId();
this.cd.detectChanges()
this.cd.detectChanges();
}

ngAfterViewChecked() {
Expand Down Expand Up @@ -974,8 +974,8 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
const matchedOptionIndex =
index < this.visibleOptions().length - 1
? this.visibleOptions()
.slice(index + 1)
.findIndex((option) => this.isValidOption(option))
.slice(index + 1)
.findIndex((option) => this.isValidOption(option))
: -1;

return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
Expand Down Expand Up @@ -1529,9 +1529,9 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
return (
(this.optionGroupLabel
? index -
this.visibleOptions()
.slice(0, index)
.filter((option) => this.isOptionGroup(option)).length
this.visibleOptions()
.slice(0, index)
.filter((option) => this.isOptionGroup(option)).length
: index) + 1
);
}
Expand Down Expand Up @@ -1608,4 +1608,4 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr
exports: [AutoComplete, OverlayModule, SharedModule, ScrollerModule, AutoFocusModule],
declarations: [AutoComplete]
})
export class AutoCompleteModule { }
export class AutoCompleteModule {}
2 changes: 1 addition & 1 deletion src/app/components/image/image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ export class Image implements AfterContentInit {
imagePreviewStyle() {
return { transform: 'rotate(' + this.rotate + 'deg) scale(' + this.scale + ')' };
}

get zoomImageAriaLabel() {
return this.config.translation.aria ? this.config.translation.aria.zoomImage : undefined;
}
Expand Down
4 changes: 1 addition & 3 deletions src/app/components/toast/toast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export class ToastItem implements AfterViewInit, OnDestroy {

timeout: any;

constructor(private zone: NgZone,private config: PrimeNGConfig) {}
constructor(private zone: NgZone, private config: PrimeNGConfig) {}

ngAfterViewInit() {
this.initTimeout();
Expand Down Expand Up @@ -192,8 +192,6 @@ export class ToastItem implements AfterViewInit, OnDestroy {
ngOnDestroy() {
this.clearTimeout();
}


}

/**
Expand Down
4 changes: 1 addition & 3 deletions src/app/showcase/doc/Image/accessibilitydoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ import { Component } from '@angular/core';
selector: 'accessibility-doc',
template: ` <app-docsectiontext>
<h3>Screen Reader</h3>
<p>
The preview button is a native <i>button</i> element with an <i>aria-label</i> that refers to the <i>aria.zoomImage</i> property of the <a href="/configuration/#locale">locale</a> API by default.
</p>
<p>The preview button is a native <i>button</i> element with an <i>aria-label</i> that refers to the <i>aria.zoomImage</i> property of the <a href="/configuration/#locale">locale</a> API by default.</p>
<p>When preview is active, <i>dialog</i> role with <i>aria-modal</i> is applied to the overlay image container.</p>
<p>Button controls use <i>aria.rotateRight</i>, <i>aria.rotateLeft</i>, <i>aria.zoomIn</i>, <i>aria.zoomOut</i> and <i>aria.close</i> from the <a href="/configuration/#locale">locale</a> API as <i>aria-label</i>.</p>
<h3>ButtonBar Keyboard Support</h3>
Expand Down

0 comments on commit 960482b

Please sign in to comment.