From 9dc7500c22f899623e4ab1a9d9ae46c5e86d28b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mehmet=20=C3=87etin?= <92744169+mehmetcetin01140@users.noreply.github.com> Date: Thu, 4 Jul 2024 15:10:40 +0300 Subject: [PATCH] code format --- src/app/components/accordion/accordion.ts | 11 +- src/app/components/animate/animate.ts | 6 +- .../animateonscroll/animateonscroll.ts | 8 +- .../components/autocomplete/autocomplete.ts | 10 +- src/app/components/badge/badge.ts | 6 +- src/app/components/blockui/blockui.ts | 9 +- src/app/components/button/button.ts | 5 +- src/app/components/calendar/calendar.ts | 10 +- src/app/components/carousel/carousel.ts | 10 +- .../components/cascadeselect/cascadeselect.ts | 12 +- src/app/components/chart/chart.ts | 6 +- src/app/components/checkbox/checkbox.ts | 6 +- src/app/components/chips/chips.ts | 7 +- .../components/confirmdialog/confirmdialog.ts | 10 +- src/app/components/contextmenu/contextmenu.ts | 9 +- src/app/components/dataview/dataview.ts | 9 +- src/app/components/defer/defer.ts | 9 +- src/app/components/dialog/dialog.ts | 10 +- src/app/components/dock/dock.ts | 5 +- src/app/components/dragdrop/dragdrop.ts | 12 +- src/app/components/dropdown/dropdown.ts | 9 +- .../components/dynamicdialog/dialogservice.ts | 6 +- .../dynamicdialog/dynamicdialog-injector.ts | 5 +- .../dynamicdialog/dynamicdialog.spec.ts | 5 +- src/app/components/editor/editor.ts | 5 +- src/app/components/galleria/galleria.ts | 24 +++- src/app/components/image/image.ts | 7 +- src/app/components/inputmask/inputmask.ts | 8 +- src/app/components/inputnumber/inputnumber.ts | 7 +- src/app/components/inputtext/inputtext.ts | 7 +- .../components/inputtextarea/inputtextarea.ts | 8 +- src/app/components/keyfilter/keyfilter.ts | 6 +- src/app/components/knob/knob.ts | 7 +- src/app/components/listbox/listbox.ts | 8 +- src/app/components/megamenu/megamenu.ts | 14 ++- src/app/components/menu/menu.ts | 5 +- src/app/components/menubar/menubar.ts | 7 +- src/app/components/messages/messages.ts | 7 +- src/app/components/metergroup/metergroup.ts | 8 +- src/app/components/multiselect/multiselect.ts | 10 +- .../organizationchart/organizationchart.ts | 10 +- src/app/components/paginator/paginator.ts | 5 +- src/app/components/panelmenu/panelmenu.ts | 5 +- src/app/components/password/password.ts | 17 ++- src/app/components/radiobutton/radiobutton.ts | 7 +- src/app/components/rating/rating.ts | 5 +- src/app/components/ripple/ripple.ts | 9 +- src/app/components/scroller/scroller.ts | 8 +- src/app/components/scrollpanel/scrollpanel.ts | 9 +- src/app/components/scrolltop/scrolltop.ts | 9 +- src/app/components/sidebar/sidebar.ts | 8 +- src/app/components/slidemenu/slidemenu.ts | 8 +- src/app/components/slider/slider.ts | 9 +- src/app/components/speeddial/speeddial.ts | 8 +- src/app/components/spinner/spinner.ts | 5 +- src/app/components/splitter/splitter.ts | 8 +- src/app/components/steps/steps.ts | 6 +- src/app/components/styleclass/styleclass.ts | 6 +- src/app/components/table/table.ts | 117 +++++++++++++++--- src/app/components/tabmenu/tabmenu.ts | 7 +- src/app/components/tabview/tabview.ts | 14 ++- src/app/components/terminal/terminal.ts | 6 +- src/app/components/tieredmenu/tieredmenu.ts | 6 +- src/app/components/toast/toast.ts | 28 +++-- .../components/togglebutton/togglebutton.ts | 14 +-- src/app/components/tooltip/tooltip.ts | 9 +- src/app/components/tree/tree.ts | 7 +- src/app/components/treeselect/treeselect.ts | 7 +- src/app/components/treetable/treetable.ts | 87 ++++++++++--- .../tristatecheckbox/tristatecheckbox.ts | 5 +- .../virtualscroller/virtualscroller.ts | 5 +- src/app/showcase/demo/deferreddemo.ts | 13 +- .../showcase/doc/autocomplete/dropdowndoc.ts | 5 +- src/app/showcase/doc/carousel/basicdoc.ts | 5 +- src/app/showcase/doc/carousel/circulardoc.ts | 5 +- src/app/showcase/doc/carousel/numscrolldoc.ts | 5 +- .../showcase/doc/carousel/responsivedoc.ts | 5 +- src/app/showcase/doc/carousel/templatedoc.ts | 5 +- src/app/showcase/doc/carousel/verticaldoc.ts | 5 +- src/app/showcase/doc/chart/basicdoc.ts | 6 +- src/app/showcase/doc/chart/combodoc.ts | 6 +- src/app/showcase/doc/chart/doughnutdoc.ts | 6 +- .../showcase/doc/chart/horizontalbardoc.ts | 6 +- src/app/showcase/doc/chart/linedoc.ts | 6 +- src/app/showcase/doc/chart/linestyledoc.ts | 6 +- src/app/showcase/doc/chart/multiaxisdoc.ts | 6 +- src/app/showcase/doc/chart/piedoc.ts | 6 +- src/app/showcase/doc/chart/polarareadoc.ts | 6 +- src/app/showcase/doc/chart/radardoc.ts | 6 +- src/app/showcase/doc/chart/stackedbardoc.ts | 6 +- src/app/showcase/doc/chart/verticalbardoc.ts | 6 +- .../showcase/doc/confirmdialog/basicdoc.ts | 5 +- .../showcase/doc/confirmdialog/headlessdoc.ts | 5 +- .../showcase/doc/confirmdialog/positiondoc.ts | 5 +- .../showcase/doc/confirmdialog/templatedoc.ts | 5 +- src/app/showcase/doc/confirmpopup/basicdoc.ts | 5 +- .../showcase/doc/confirmpopup/headlessdoc.ts | 5 +- .../showcase/doc/confirmpopup/templatedoc.ts | 5 +- src/app/showcase/doc/defer/datatabledoc.ts | 5 +- src/app/showcase/doc/dock/advanceddoc.ts | 7 +- .../doc/dropdown/lazyvirtualscrolldoc.ts | 25 ++-- .../showcase/doc/dynamicdialog/closedoc.ts | 5 +- .../showcase/doc/dynamicdialog/exampledoc.ts | 5 +- .../showcase/doc/dynamicdialog/infodemo.ts | 5 +- .../doc/dynamicdialog/productlistdemo.ts | 6 +- .../showcase/doc/fileupload/templatedoc.ts | 5 +- .../doc/filterservice/tableintegrationdoc.ts | 5 +- src/app/showcase/doc/galleria/advanceddoc.ts | 6 +- src/app/showcase/doc/orderlist/basicdoc.ts | 5 +- src/app/showcase/doc/orderlist/dragdropdoc.ts | 5 +- src/app/showcase/doc/orderlist/filterdoc.ts | 5 +- .../showcase/doc/overlaypanel/datatabledoc.ts | 6 +- src/app/showcase/doc/picklist/basicdoc.ts | 5 +- src/app/showcase/doc/picklist/filterdoc.ts | 5 +- .../showcase/doc/progressbar/dynamicdoc.ts | 6 +- src/app/showcase/doc/scroller/lazyloaddoc.ts | 27 ++-- .../showcase/doc/steps/confirmationdemo.ts | 5 +- src/app/showcase/doc/steps/paymentdemo.ts | 5 +- src/app/showcase/doc/steps/personaldemo.ts | 5 +- src/app/showcase/doc/steps/routingdoc.ts | 5 +- src/app/showcase/doc/steps/seatdemo.ts | 5 +- src/app/showcase/doc/table/basicdoc.ts | 5 +- src/app/showcase/doc/table/celleditdoc.ts | 7 +- .../doc/table/checkboxselectiondoc.ts | 5 +- src/app/showcase/doc/table/columngroupdoc.ts | 8 +- .../doc/table/columnresizeexpandmodedoc.ts | 5 +- .../doc/table/columnresizefitmodedoc.ts | 5 +- .../table/columnresizescrollablemodedoc.ts | 5 +- .../showcase/doc/table/columnselectiondoc.ts | 6 +- src/app/showcase/doc/table/contextmenudoc.ts | 8 +- .../doc/table/controlledselectiondoc.ts | 5 +- src/app/showcase/doc/table/customersdoc.ts | 9 +- src/app/showcase/doc/table/customsortdoc.ts | 7 +- src/app/showcase/doc/table/dynamicdoc.ts | 5 +- .../doc/table/expandablerowgroupdoc.ts | 5 +- src/app/showcase/doc/table/exportdoc.ts | 5 +- .../showcase/doc/table/filteradvanceddoc.ts | 9 +- src/app/showcase/doc/table/filterbasic.ts | 5 +- .../showcase/doc/table/filtersorteditdoc.ts | 7 +- .../showcase/doc/table/flexiblescrolldoc.ts | 5 +- .../showcase/doc/table/frozencolumnsdoc.ts | 5 +- src/app/showcase/doc/table/frozenrowsdoc.ts | 5 +- src/app/showcase/doc/table/gridlinesdoc.ts | 5 +- .../showcase/doc/table/horizontalscrolldoc.ts | 5 +- src/app/showcase/doc/table/lazyloaddoc.ts | 5 +- .../doc/table/multiplecolumnssortdoc.ts | 5 +- .../doc/table/multipleselectiondoc.ts | 5 +- .../doc/table/pageonlyselectiondoc.ts | 5 +- .../showcase/doc/table/paginatorbasicdoc.ts | 5 +- .../showcase/doc/table/paginatorlocaledoc.ts | 5 +- .../doc/table/paginatorprogrammaticdoc.ts | 5 +- src/app/showcase/doc/table/presortdoc.ts | 7 +- src/app/showcase/doc/table/productsdoc.ts | 9 +- .../doc/table/radiobuttonselectiondoc.ts | 5 +- src/app/showcase/doc/table/reorderdoc.ts | 5 +- .../showcase/doc/table/responsivescrolldoc.ts | 7 +- .../showcase/doc/table/responsivestackdoc.ts | 7 +- src/app/showcase/doc/table/roweditdoc.ts | 8 +- src/app/showcase/doc/table/rowexpansiondoc.ts | 10 +- .../showcase/doc/table/rowspangroupingdoc.ts | 5 +- .../showcase/doc/table/selectioneventsdoc.ts | 6 +- .../showcase/doc/table/singlecolumnsortdoc.ts | 5 +- .../showcase/doc/table/singleselectiondoc.ts | 5 +- src/app/showcase/doc/table/sizedoc.ts | 5 +- src/app/showcase/doc/table/statefuldoc.ts | 5 +- src/app/showcase/doc/table/stripeddoc.ts | 5 +- src/app/showcase/doc/table/styledoc.ts | 5 +- .../doc/table/subheadergroupingdoc.ts | 5 +- src/app/showcase/doc/table/templatedoc.ts | 7 +- .../showcase/doc/table/verticalscrolldoc.ts | 5 +- .../doc/table/virtualscrolllazydoc.ts | 23 ++-- src/app/showcase/doc/toast/headlessdoc.ts | 5 +- src/app/showcase/doc/tree/contextmenudoc.ts | 5 +- src/app/showcase/doc/tree/eventdoc.ts | 5 +- src/app/showcase/doc/tree/virtualscrolldoc.ts | 5 +- .../showcase/doc/tree/virtualscrolllazydoc.ts | 5 +- src/app/showcase/doc/treetable/basicdoc.ts | 5 +- .../showcase/doc/treetable/contextmenudoc.ts | 5 +- .../showcase/doc/treetable/controlleddoc.ts | 5 +- .../doc/treetable/flexiblescrolldoc.ts | 5 +- src/app/showcase/doc/treetable/lazyloaddoc.ts | 5 +- .../doc/treetable/selectioncheckboxdoc.ts | 5 +- .../doc/treetable/selectioneventscdoc.ts | 5 +- src/app/showcase/layout/app.component.ts | 9 +- src/app/showcase/layout/app.main.component.ts | 5 +- .../layout/config/app.config.component.ts | 7 +- .../showcase/layout/doc/app.code.component.ts | 5 +- .../showcase/layout/doc/app.doc.component.ts | 7 +- .../layout/doc/app.docapisection.component.ts | 14 ++- .../layout/doc/app.docapitable.component.ts | 7 +- .../doc/app.docsection-nav.component.ts | 9 +- .../doc/app.docsectiontext.component.ts | 5 +- .../layout/menu/app.menu.component.ts | 6 +- .../layout/news/app.news.component.ts | 5 +- .../templatefeaturesanimation.ts | 6 +- .../templatefeaturesanimationinline.ts | 6 +- .../layout/topbar/app.topbar.component.ts | 8 +- src/app/showcase/pages/defer/deferdemo.ts | 5 +- .../pages/landing/herosection.component.ts | 6 +- .../pages/landing/landing.component.ts | 6 +- .../pages/landing/themesection.component.ts | 11 +- src/app/showcase/pages/lts/lts.component.ts | 5 +- .../pages/roadmap/roadmap.component.ts | 5 +- .../learnmore/learnmore.component.ts | 5 +- .../pages/templates/templates.component.ts | 5 +- .../showcase/pages/uikit/uikit.component.ts | 6 +- src/app/showcase/service/platformservice.ts | 5 +- 207 files changed, 1307 insertions(+), 326 deletions(-) diff --git a/src/app/components/accordion/accordion.ts b/src/app/components/accordion/accordion.ts index 7b46b274d8e..058a35e7f16 100755 --- a/src/app/components/accordion/accordion.ts +++ b/src/app/components/accordion/accordion.ts @@ -230,7 +230,11 @@ export class AccordionTab implements AfterContentInit, OnDestroy { accordion: Accordion; - constructor(@Inject(forwardRef(() => Accordion)) accordion: Accordion, public el: ElementRef, public changeDetector: ChangeDetectorRef) { + constructor( + @Inject(forwardRef(() => Accordion)) accordion: Accordion, + public el: ElementRef, + public changeDetector: ChangeDetectorRef + ) { this.accordion = accordion as Accordion; this.id = UniqueComponentId(); } @@ -437,7 +441,10 @@ export class Accordion implements BlockableUI, AfterContentInit, OnDestroy { public tabs: AccordionTab[] = []; - constructor(public el: ElementRef, public changeDetector: ChangeDetectorRef) {} + constructor( + public el: ElementRef, + public changeDetector: ChangeDetectorRef + ) {} @HostListener('keydown', ['$event']) onKeydown(event) { diff --git a/src/app/components/animate/animate.ts b/src/app/components/animate/animate.ts index 4f57fc758e7..40569336691 100644 --- a/src/app/components/animate/animate.ts +++ b/src/app/components/animate/animate.ts @@ -27,7 +27,11 @@ export class Animate implements OnInit, AfterViewInit { timeout: any; - constructor(private host: ElementRef, public el: ElementRef, public renderer: Renderer2) {} + constructor( + private host: ElementRef, + public el: ElementRef, + public renderer: Renderer2 + ) {} ngOnInit() { console.log('pAnimate directive is deprecated in 16.7.0 and will be removed in the future. Use pAnimateOnScroll directive instead'); diff --git a/src/app/components/animateonscroll/animateonscroll.ts b/src/app/components/animateonscroll/animateonscroll.ts index f664bc353c2..4ee3936f962 100644 --- a/src/app/components/animateonscroll/animateonscroll.ts +++ b/src/app/components/animateonscroll/animateonscroll.ts @@ -60,7 +60,13 @@ export class AnimateOnScroll implements OnInit, AfterViewInit { animationEndListener: VoidFunction | undefined; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private host: ElementRef, public el: ElementRef, public renderer: Renderer2) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private host: ElementRef, + public el: ElementRef, + public renderer: Renderer2 + ) {} ngOnInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/components/autocomplete/autocomplete.ts b/src/app/components/autocomplete/autocomplete.ts index da00d7b009a..b7a79ec97f7 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -873,7 +873,15 @@ export class AutoComplete implements AfterViewChecked, AfterContentInit, OnDestr return typeof this.modelValue() === 'string' && this.optionValue; } - 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 + ) { effect(() => { this.filled = ObjectUtils.isNotEmpty(this.modelValue()); }); diff --git a/src/app/components/badge/badge.ts b/src/app/components/badge/badge.ts index bc36926dd44..33e9b04f528 100755 --- a/src/app/components/badge/badge.ts +++ b/src/app/components/badge/badge.ts @@ -58,7 +58,11 @@ export class BadgeDirective implements OnChanges, AfterViewInit { return this.id && !this.disabled; } - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, private renderer: Renderer2) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + private renderer: Renderer2 + ) {} public ngOnChanges({ value, size, severity, disabled }: SimpleChanges): void { if (disabled) { diff --git a/src/app/components/blockui/blockui.ts b/src/app/components/blockui/blockui.ts index 974ec41da4c..44369e45b25 100755 --- a/src/app/components/blockui/blockui.ts +++ b/src/app/components/blockui/blockui.ts @@ -96,7 +96,14 @@ export class BlockUI implements AfterViewInit, OnDestroy { contentTemplate: TemplateRef | undefined; - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public cd: ChangeDetectorRef, public config: PrimeNGConfig, private renderer: Renderer2, @Inject(PLATFORM_ID) public platformId: any) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public cd: ChangeDetectorRef, + public config: PrimeNGConfig, + private renderer: Renderer2, + @Inject(PLATFORM_ID) public platformId: any + ) {} ngAfterViewInit() { if (this._blocked) this.block(); diff --git a/src/app/components/button/button.ts b/src/app/components/button/button.ts index 04d452d71c1..a6b9d9a5c1c 100755 --- a/src/app/components/button/button.ts +++ b/src/app/components/button/button.ts @@ -155,7 +155,10 @@ export class ButtonDirective implements AfterViewInit, OnDestroy { private _internalClasses: string[] = Object.values(INTERNAL_BUTTON_CLASSES); - constructor(public el: ElementRef, @Inject(DOCUMENT) private document: Document) {} + constructor( + public el: ElementRef, + @Inject(DOCUMENT) private document: Document + ) {} ngAfterViewInit() { DomHandler.addMultipleClasses(this.htmlElement, this.getStyleClass().join(' ')); diff --git a/src/app/components/calendar/calendar.ts b/src/app/components/calendar/calendar.ts index 3eb99a6b0cb..4fd23823147 100644 --- a/src/app/components/calendar/calendar.ts +++ b/src/app/components/calendar/calendar.ts @@ -1169,7 +1169,15 @@ export class Calendar implements OnInit, OnDestroy, ControlValueAccessor { return this.currentView === 'year' ? this.getTranslation('nextDecade') : this.currentView === 'month' ? this.getTranslation('nextYear') : this.getTranslation('nextMonth'); } - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, private zone: NgZone, private config: PrimeNGConfig, public overlayService: OverlayService) { + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public renderer: Renderer2, + public cd: ChangeDetectorRef, + private zone: NgZone, + private config: PrimeNGConfig, + public overlayService: OverlayService + ) { this.window = this.document.defaultView as Window; } diff --git a/src/app/components/carousel/carousel.ts b/src/app/components/carousel/carousel.ts index 1409301165e..bf4277a2956 100755 --- a/src/app/components/carousel/carousel.ts +++ b/src/app/components/carousel/carousel.ts @@ -357,7 +357,15 @@ export class Carousel implements AfterContentInit { window: Window; - constructor(public el: ElementRef, public zone: NgZone, public cd: ChangeDetectorRef, private renderer: Renderer2, @Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private config: PrimeNGConfig) { + constructor( + public el: ElementRef, + public zone: NgZone, + public cd: ChangeDetectorRef, + private renderer: Renderer2, + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private config: PrimeNGConfig + ) { this.totalShiftedItems = this.page * this.numScroll * -1; this.window = this.document.defaultView as Window; } diff --git a/src/app/components/cascadeselect/cascadeselect.ts b/src/app/components/cascadeselect/cascadeselect.ts index 929d9575ad3..3786a2ce95d 100755 --- a/src/app/components/cascadeselect/cascadeselect.ts +++ b/src/app/components/cascadeselect/cascadeselect.ts @@ -142,7 +142,10 @@ export class CascadeSelectSub implements OnInit { return this.config.getTranslation(TranslationKeys.ARIA)['listLabel']; } - constructor(private el: ElementRef, public config: PrimeNGConfig) {} + constructor( + private el: ElementRef, + public config: PrimeNGConfig + ) {} ngOnInit() { if (!this.root) { @@ -1303,7 +1306,12 @@ export class CascadeSelect implements OnInit, AfterContentInit { return grouped ? this.getOptionGroupLabel(processedOption.option) : this.getOptionLabel(processedOption.option); } - constructor(private el: ElementRef, private cd: ChangeDetectorRef, private config: PrimeNGConfig, public overlayService: OverlayService) { + constructor( + private el: ElementRef, + private cd: ChangeDetectorRef, + private config: PrimeNGConfig, + public overlayService: OverlayService + ) { effect(() => { const activeOptionPath = this.activeOptionPath(); if (ObjectUtils.isNotEmpty(activeOptionPath)) { diff --git a/src/app/components/chart/chart.ts b/src/app/components/chart/chart.ts index 3d34a8ab0d1..25a0e7a8b11 100755 --- a/src/app/components/chart/chart.ts +++ b/src/app/components/chart/chart.ts @@ -92,7 +92,11 @@ export class UIChart implements AfterViewInit, OnDestroy { chart: any; - constructor(@Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, private zone: NgZone) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + private zone: NgZone + ) {} ngAfterViewInit() { this.initChart(); diff --git a/src/app/components/checkbox/checkbox.ts b/src/app/components/checkbox/checkbox.ts index 7a750467adf..d99d54d50c3 100755 --- a/src/app/components/checkbox/checkbox.ts +++ b/src/app/components/checkbox/checkbox.ts @@ -247,7 +247,11 @@ export class Checkbox implements ControlValueAccessor { focused: boolean = false; - constructor(public cd: ChangeDetectorRef, private readonly injector: Injector, public config: PrimeNGConfig) {} + constructor( + public cd: ChangeDetectorRef, + private readonly injector: Injector, + public config: PrimeNGConfig + ) {} ngAfterContentInit() { this.templates.forEach((item) => { diff --git a/src/app/components/chips/chips.ts b/src/app/components/chips/chips.ts index 516f3e73ad2..c8b1ad19631 100755 --- a/src/app/components/chips/chips.ts +++ b/src/app/components/chips/chips.ts @@ -310,7 +310,12 @@ export class Chips implements AfterContentInit, ControlValueAccessor { return this.max && this.value && this.max === this.value.length; } - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngAfterContentInit() { this.templates.forEach((item) => { diff --git a/src/app/components/confirmdialog/confirmdialog.ts b/src/app/components/confirmdialog/confirmdialog.ts index 26d69b673f0..fcc7d0ca729 100755 --- a/src/app/components/confirmdialog/confirmdialog.ts +++ b/src/app/components/confirmdialog/confirmdialog.ts @@ -442,7 +442,15 @@ export class ConfirmDialog implements AfterContentInit, OnInit, OnDestroy { translationSubscription: Subscription | undefined; - constructor(public el: ElementRef, public renderer: Renderer2, private confirmationService: ConfirmationService, public zone: NgZone, private cd: ChangeDetectorRef, public config: PrimeNGConfig, @Inject(DOCUMENT) private document: Document) { + constructor( + public el: ElementRef, + public renderer: Renderer2, + private confirmationService: ConfirmationService, + public zone: NgZone, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig, + @Inject(DOCUMENT) private document: Document + ) { this.subscription = this.confirmationService.requireConfirmation$.subscribe((confirmation) => { if (!confirmation) { this.hide(); diff --git a/src/app/components/contextmenu/contextmenu.ts b/src/app/components/contextmenu/contextmenu.ts index 963b9f9182f..9af8d5ca483 100755 --- a/src/app/components/contextmenu/contextmenu.ts +++ b/src/app/components/contextmenu/contextmenu.ts @@ -237,7 +237,14 @@ export class ContextMenuSub { @ViewChild('sublist') sublistViewChild: ElementRef; - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, private cd: ChangeDetectorRef, @Inject(forwardRef(() => ContextMenu)) public contextMenu: ContextMenu, private ref: ViewContainerRef) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public renderer: Renderer2, + private cd: ChangeDetectorRef, + @Inject(forwardRef(() => ContextMenu)) public contextMenu: ContextMenu, + private ref: ViewContainerRef + ) {} getItemProp(processedItem: any, name: string, params: any | null = null) { return processedItem && processedItem.item ? ObjectUtils.getItemValue(processedItem.item[name], params) : undefined; diff --git a/src/app/components/dataview/dataview.ts b/src/app/components/dataview/dataview.ts index 038a4fcbd81..f08117e05fb 100755 --- a/src/app/components/dataview/dataview.ts +++ b/src/app/components/dataview/dataview.ts @@ -76,7 +76,7 @@ import { DataViewLayoutChangeEvent, DataViewLazyLoadEvent, DataViewPageEvent, Da >
- +
@@ -358,7 +358,12 @@ export class DataView implements OnInit, AfterContentInit, OnDestroy, BlockableU return this.emptyMessage || this.config.getTranslation(TranslationKeys.EMPTY_MESSAGE); } - constructor(public el: ElementRef, public cd: ChangeDetectorRef, public filterService: FilterService, public config: PrimeNGConfig) {} + constructor( + public el: ElementRef, + public cd: ChangeDetectorRef, + public filterService: FilterService, + public config: PrimeNGConfig + ) {} ngOnInit() { if (this.lazy && this.lazyLoadOnInit) { diff --git a/src/app/components/defer/defer.ts b/src/app/components/defer/defer.ts index 174f3995ca0..061ebb1001f 100755 --- a/src/app/components/defer/defer.ts +++ b/src/app/components/defer/defer.ts @@ -27,7 +27,14 @@ export class DeferredLoader implements AfterViewInit, OnDestroy { window: Window; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public renderer: Renderer2, public viewContainer: ViewContainerRef, private cd: ChangeDetectorRef) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public renderer: Renderer2, + public viewContainer: ViewContainerRef, + private cd: ChangeDetectorRef + ) { this.window = this.document.defaultView as Window; } diff --git a/src/app/components/dialog/dialog.ts b/src/app/components/dialog/dialog.ts index 424a64f4844..1d9b7faa391 100755 --- a/src/app/components/dialog/dialog.ts +++ b/src/app/components/dialog/dialog.ts @@ -546,7 +546,15 @@ export class Dialog implements AfterContentInit, OnInit, OnDestroy { return this.config.getTranslation(TranslationKeys.ARIA)['maximizeLabel']; } - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public renderer: Renderer2, public zone: NgZone, private cd: ChangeDetectorRef, public config: PrimeNGConfig) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public renderer: Renderer2, + public zone: NgZone, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) { this.window = this.document.defaultView as Window; } diff --git a/src/app/components/dock/dock.ts b/src/app/components/dock/dock.ts index 6b402fe889e..8ab391905d7 100755 --- a/src/app/components/dock/dock.ts +++ b/src/app/components/dock/dock.ts @@ -166,7 +166,10 @@ export class Dock implements AfterContentInit { return this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : null; } - constructor(private el: ElementRef, public cd: ChangeDetectorRef) { + constructor( + private el: ElementRef, + public cd: ChangeDetectorRef + ) { this.currentIndex = -3; } diff --git a/src/app/components/dragdrop/dragdrop.ts b/src/app/components/dragdrop/dragdrop.ts index 6453519f3eb..f7580d86e61 100755 --- a/src/app/components/dragdrop/dragdrop.ts +++ b/src/app/components/dragdrop/dragdrop.ts @@ -53,7 +53,11 @@ export class Draggable implements AfterViewInit, OnDestroy { _pDraggableDisabled: boolean = false; - constructor(public el: ElementRef, public zone: NgZone, private renderer: Renderer2) {} + constructor( + public el: ElementRef, + public zone: NgZone, + private renderer: Renderer2 + ) {} @Input() get pDraggableDisabled(): boolean { return this._pDraggableDisabled; @@ -195,7 +199,11 @@ export class Droppable implements AfterViewInit, OnDestroy { */ @Output() onDrop: EventEmitter = new EventEmitter(); - constructor(public el: ElementRef, public zone: NgZone, private renderer: Renderer2) {} + constructor( + public el: ElementRef, + public zone: NgZone, + private renderer: Renderer2 + ) {} dragOverListener: VoidListener; diff --git a/src/app/components/dropdown/dropdown.ts b/src/app/components/dropdown/dropdown.ts index 235e27a01cc..904f34a9ef5 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1012,7 +1012,14 @@ export class Dropdown implements OnInit, AfterViewInit, AfterContentInit, AfterV editableInputValue = computed(() => this.getOptionLabel(this.selectedOption) || this.modelValue() || ''); - constructor(public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public zone: NgZone, public filterService: FilterService, public config: PrimeNGConfig) { + constructor( + public el: ElementRef, + public renderer: Renderer2, + public cd: ChangeDetectorRef, + public zone: NgZone, + public filterService: FilterService, + public config: PrimeNGConfig + ) { effect(() => { const modelValue = this.modelValue(); const visibleOptions = this.visibleOptions(); diff --git a/src/app/components/dynamicdialog/dialogservice.ts b/src/app/components/dynamicdialog/dialogservice.ts index 2f891919b69..19587caa4a8 100755 --- a/src/app/components/dynamicdialog/dialogservice.ts +++ b/src/app/components/dynamicdialog/dialogservice.ts @@ -14,7 +14,11 @@ import { ObjectUtils } from 'primeng/utils'; export class DialogService { dialogComponentRefMap: Map, ComponentRef> = new Map(); - constructor(private appRef: ApplicationRef, private injector: Injector, @Inject(DOCUMENT) private document: Document) {} + constructor( + private appRef: ApplicationRef, + private injector: Injector, + @Inject(DOCUMENT) private document: Document + ) {} /** * Displays the dialog using the dynamic dialog object options. * @param {*} componentType - Dynamic component for content template. diff --git a/src/app/components/dynamicdialog/dynamicdialog-injector.ts b/src/app/components/dynamicdialog/dynamicdialog-injector.ts index 7a707d9e86d..b146d2bcfab 100755 --- a/src/app/components/dynamicdialog/dynamicdialog-injector.ts +++ b/src/app/components/dynamicdialog/dynamicdialog-injector.ts @@ -1,7 +1,10 @@ import { InjectOptions, Injector, ProviderToken, InjectFlags } from '@angular/core'; export class DynamicDialogInjector implements Injector { - constructor(private _parentInjector: Injector, private _additionalTokens: WeakMap) {} + constructor( + private _parentInjector: Injector, + private _additionalTokens: WeakMap + ) {} get(token: ProviderToken, notFoundValue?: T, options?: InjectOptions | InjectFlags): T { const value = this._additionalTokens.get(token); diff --git a/src/app/components/dynamicdialog/dynamicdialog.spec.ts b/src/app/components/dynamicdialog/dynamicdialog.spec.ts index 8fff5dd5143..e113f47afd7 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.spec.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.spec.ts @@ -12,7 +12,10 @@ import { DynamicDialogRef } from './dynamicdialog-ref'; template: `

PrimeNG ROCKS!

` }) export class TestComponent { - constructor(public ref: DynamicDialogRef, public config: DynamicDialogConfig) {} + constructor( + public ref: DynamicDialogRef, + public config: DynamicDialogConfig + ) {} } @Component({ diff --git a/src/app/components/editor/editor.ts b/src/app/components/editor/editor.ts index 2f8a19742e0..fc9ff806d84 100755 --- a/src/app/components/editor/editor.ts +++ b/src/app/components/editor/editor.ts @@ -194,7 +194,10 @@ export class Editor implements AfterContentInit, ControlValueAccessor { private quillElements!: { editorElement: HTMLElement; toolbarElement: HTMLElement }; - constructor(public el: ElementRef, @Inject(PLATFORM_ID) private platformId: object) { + constructor( + public el: ElementRef, + @Inject(PLATFORM_ID) private platformId: object + ) { /** * Read or write the DOM once, when initializing non-Angular (Quill) library. */ diff --git a/src/app/components/galleria/galleria.ts b/src/app/components/galleria/galleria.ts index 5d805c1ed09..a78b8ccc40f 100755 --- a/src/app/components/galleria/galleria.ts +++ b/src/app/components/galleria/galleria.ts @@ -286,7 +286,13 @@ export class Galleria implements OnChanges, OnDestroy { numVisibleLimit = 0; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) public platformId: any, public element: ElementRef, public cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) public platformId: any, + public element: ElementRef, + public cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngAfterContentInit() { this.templates?.forEach((item) => { @@ -503,7 +509,13 @@ export class GalleriaContent implements DoCheck { private differ: any; - constructor(public galleria: Galleria, public cd: ChangeDetectorRef, private differs: KeyValueDiffers, public config: PrimeNGConfig, private elementRef: ElementRef) { + constructor( + public galleria: Galleria, + public cd: ChangeDetectorRef, + private differs: KeyValueDiffers, + public config: PrimeNGConfig, + private elementRef: ElementRef + ) { this.id = this.galleria.id || UniqueComponentId(); this.differ = this.differs.find(this.galleria).create(); } @@ -1017,7 +1029,13 @@ export class GalleriaThumbnails implements OnInit, AfterContentChecked, AfterVie _oldactiveIndex: number = 0; - constructor(public galleria: Galleria, @Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, private cd: ChangeDetectorRef) {} + constructor( + public galleria: Galleria, + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + private cd: ChangeDetectorRef + ) {} ngOnInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/components/image/image.ts b/src/app/components/image/image.ts index edf5024770d..dc5a532d792 100755 --- a/src/app/components/image/image.ts +++ b/src/app/components/image/image.ts @@ -253,7 +253,12 @@ export class Image implements AfterContentInit { min: 0.5 }; - constructor(@Inject(DOCUMENT) private document: Document, private config: PrimeNGConfig, private cd: ChangeDetectorRef, public el: ElementRef) {} + constructor( + @Inject(DOCUMENT) private document: Document, + private config: PrimeNGConfig, + private cd: ChangeDetectorRef, + public el: ElementRef + ) {} ngAfterContentInit() { this.templates?.forEach((item) => { diff --git a/src/app/components/inputmask/inputmask.ts b/src/app/components/inputmask/inputmask.ts index ebb19273650..6d2bc5956c2 100755 --- a/src/app/components/inputmask/inputmask.ts +++ b/src/app/components/inputmask/inputmask.ts @@ -355,7 +355,13 @@ export class InputMask implements OnInit, ControlValueAccessor { }; } - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngOnInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/components/inputnumber/inputnumber.ts b/src/app/components/inputnumber/inputnumber.ts index d54d09b82fb..574b1389005 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -516,7 +516,12 @@ export class InputNumber implements OnInit, AfterContentInit, OnChanges, Control private ngControl: NgControl | null = null; - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, private cd: ChangeDetectorRef, private readonly injector: Injector) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + private cd: ChangeDetectorRef, + private readonly injector: Injector + ) {} ngOnChanges(simpleChange: SimpleChanges) { const props = ['locale', 'localeMatcher', 'mode', 'currency', 'currencyDisplay', 'useGrouping', 'minFractionDigits', 'maxFractionDigits', 'prefix', 'suffix']; diff --git a/src/app/components/inputtext/inputtext.ts b/src/app/components/inputtext/inputtext.ts index 2974a9f50c7..565883b6983 100755 --- a/src/app/components/inputtext/inputtext.ts +++ b/src/app/components/inputtext/inputtext.ts @@ -25,7 +25,12 @@ export class InputText implements DoCheck, AfterViewInit { filled: Nullable; - constructor(public el: ElementRef, @Optional() public ngModel: NgModel, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + public el: ElementRef, + @Optional() public ngModel: NgModel, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngAfterViewInit() { this.updateFilledState(); diff --git a/src/app/components/inputtextarea/inputtextarea.ts b/src/app/components/inputtextarea/inputtextarea.ts index 9b2921040f8..c6b6be1365d 100755 --- a/src/app/components/inputtextarea/inputtextarea.ts +++ b/src/app/components/inputtextarea/inputtextarea.ts @@ -42,7 +42,13 @@ export class InputTextarea implements OnInit, AfterViewInit, OnDestroy { ngControlSubscription: Subscription | undefined; - constructor(public el: ElementRef, @Optional() public ngModel: NgModel, @Optional() public control: NgControl, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + public el: ElementRef, + @Optional() public ngModel: NgModel, + @Optional() public control: NgControl, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngOnInit() { if (this.ngModel) { diff --git a/src/app/components/keyfilter/keyfilter.ts b/src/app/components/keyfilter/keyfilter.ts index 3870746e09e..16a0e67eb98 100755 --- a/src/app/components/keyfilter/keyfilter.ts +++ b/src/app/components/keyfilter/keyfilter.ts @@ -113,7 +113,11 @@ export class KeyFilter implements Validator { lastValue: any; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef + ) { if (isPlatformBrowser(this.platformId)) { this.isAndroid = DomHandler.isAndroid(); } else { diff --git a/src/app/components/knob/knob.ts b/src/app/components/knob/knob.ts index 7e06d50c33c..a743ed524fb 100755 --- a/src/app/components/knob/knob.ts +++ b/src/app/components/knob/knob.ts @@ -171,7 +171,12 @@ export class Knob { onModelTouched: Function = () => {}; - constructor(@Inject(DOCUMENT) private document: Document, private renderer: Renderer2, private cd: ChangeDetectorRef, private el: ElementRef) {} + constructor( + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2, + private cd: ChangeDetectorRef, + private el: ElementRef + ) {} mapRange(x: number, inMin: number, inMax: number, outMin: number, outMax: number) { return ((x - inMin) * (outMax - outMin)) / (inMax - inMin) + outMin; diff --git a/src/app/components/listbox/listbox.ts b/src/app/components/listbox/listbox.ts index 545cf4d73f9..4f20dd18c9d 100755 --- a/src/app/components/listbox/listbox.ts +++ b/src/app/components/listbox/listbox.ts @@ -667,7 +667,13 @@ export class Listbox implements AfterContentInit, OnInit, ControlValueAccessor, return this._filterValue() ? this.filterService.filter(options, this.searchFields, this._filterValue(), this.filterMatchMode, this.filterLocale) : options; }); - constructor(public el: ElementRef, public cd: ChangeDetectorRef, public filterService: FilterService, public config: PrimeNGConfig, private renderer: Renderer2) {} + constructor( + public el: ElementRef, + public cd: ChangeDetectorRef, + public filterService: FilterService, + public config: PrimeNGConfig, + private renderer: Renderer2 + ) {} ngOnInit() { this.id = this.id || UniqueComponentId(); diff --git a/src/app/components/megamenu/megamenu.ts b/src/app/components/megamenu/megamenu.ts index fe320732195..9ee537ddcd8 100755 --- a/src/app/components/megamenu/megamenu.ts +++ b/src/app/components/megamenu/megamenu.ts @@ -238,7 +238,10 @@ export class MegaMenuSub { @ViewChild('menubar', { static: true }) menubarViewChild: ElementRef; - constructor(public el: ElementRef, @Inject(forwardRef(() => MegaMenu)) public megaMenu: MegaMenu) {} + constructor( + public el: ElementRef, + @Inject(forwardRef(() => MegaMenu)) public megaMenu: MegaMenu + ) {} onItemClick(event: any, processedItem: any) { this.getItemProp(processedItem, 'command', { originalEvent: event, item: processedItem.item }); @@ -529,7 +532,14 @@ export class MegaMenu implements AfterContentInit, OnDestroy, OnInit { return focusedItem?.item && focusedItem.item?.id ? focusedItem.item.id : ObjectUtils.isNotEmpty(focusedItem.key) ? `${this.id}_${focusedItem.key}` : null; } - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public renderer: Renderer2, public config: PrimeNGConfig, public cd: ChangeDetectorRef) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public renderer: Renderer2, + public config: PrimeNGConfig, + public cd: ChangeDetectorRef + ) { effect(() => { const activeItem = this.activeItem(); if (ObjectUtils.isNotEmpty(activeItem)) { diff --git a/src/app/components/menu/menu.ts b/src/app/components/menu/menu.ts index 9b6505f7ef1..085d9d54850 100755 --- a/src/app/components/menu/menu.ts +++ b/src/app/components/menu/menu.ts @@ -41,7 +41,10 @@ import { UniqueComponentId, ZIndexUtils } from 'primeng/utils'; name: 'safeHtml' }) export class SafeHtmlPipe implements PipeTransform { - constructor(@Inject(PLATFORM_ID) private readonly platformId: any, private readonly sanitizer: DomSanitizer) {} + constructor( + @Inject(PLATFORM_ID) private readonly platformId: any, + private readonly sanitizer: DomSanitizer + ) {} public transform(value: string): SafeHtml { if (!value || !isPlatformBrowser(this.platformId)) { diff --git a/src/app/components/menubar/menubar.ts b/src/app/components/menubar/menubar.ts index a169503ff41..732dd73f6db 100755 --- a/src/app/components/menubar/menubar.ts +++ b/src/app/components/menubar/menubar.ts @@ -251,7 +251,12 @@ export class MenubarSub implements OnInit, OnDestroy { mouseLeaveSubscriber: Subscription | undefined; - constructor(public el: ElementRef, public renderer: Renderer2, private cd: ChangeDetectorRef, private menubarService: MenubarService) {} + constructor( + public el: ElementRef, + public renderer: Renderer2, + private cd: ChangeDetectorRef, + private menubarService: MenubarService + ) {} ngOnInit() { this.mouseLeaveSubscriber = this.menubarService.mouseLeft$.subscribe(() => { diff --git a/src/app/components/messages/messages.ts b/src/app/components/messages/messages.ts index 7241efdeee8..fa2edd2244b 100644 --- a/src/app/components/messages/messages.ts +++ b/src/app/components/messages/messages.ts @@ -167,7 +167,12 @@ export class Messages implements AfterContentInit, OnDestroy { contentTemplate: TemplateRef | undefined; - constructor(@Optional() public messageService: MessageService, public el: ElementRef, public cd: ChangeDetectorRef, private config: PrimeNGConfig) {} + constructor( + @Optional() public messageService: MessageService, + public el: ElementRef, + public cd: ChangeDetectorRef, + private config: PrimeNGConfig + ) {} ngAfterContentInit() { this.templates?.forEach((item) => { diff --git a/src/app/components/metergroup/metergroup.ts b/src/app/components/metergroup/metergroup.ts index 3fbcc13ae7e..64b2584e8dd 100644 --- a/src/app/components/metergroup/metergroup.ts +++ b/src/app/components/metergroup/metergroup.ts @@ -53,8 +53,8 @@ export class MeterGroupLabel { template: `
@if (labelPosition === 'start') { - - + + }
@@ -68,8 +68,8 @@ export class MeterGroupLabel {
@if (labelPosition === 'end') { - - + + }
`, diff --git a/src/app/components/multiselect/multiselect.ts b/src/app/components/multiselect/multiselect.ts index a6cf3d381a4..e6f2e9aa7f6 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -1189,7 +1189,15 @@ export class MultiSelect implements OnInit, AfterViewInit, AfterContentInit, Aft return ObjectUtils.isNotEmpty(this.maxSelectedLabels) && this.modelValue() && this.modelValue().length > this.maxSelectedLabels ? this.modelValue().slice(0, this.maxSelectedLabels) : this.modelValue(); }); - constructor(public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public zone: NgZone, public filterService: FilterService, public config: PrimeNGConfig, public overlayService: OverlayService) { + constructor( + public el: ElementRef, + public renderer: Renderer2, + public cd: ChangeDetectorRef, + public zone: NgZone, + public filterService: FilterService, + public config: PrimeNGConfig, + public overlayService: OverlayService + ) { effect(() => { const modelValue = this.modelValue(); diff --git a/src/app/components/organizationchart/organizationchart.ts b/src/app/components/organizationchart/organizationchart.ts index 1b1b1a2374f..933c0bed653 100755 --- a/src/app/components/organizationchart/organizationchart.ts +++ b/src/app/components/organizationchart/organizationchart.ts @@ -104,7 +104,10 @@ export class OrganizationChartNode implements OnDestroy { subscription: Subscription; - constructor(@Inject(forwardRef(() => OrganizationChart)) chart: OrganizationChart, public cd: ChangeDetectorRef) { + constructor( + @Inject(forwardRef(() => OrganizationChart)) chart: OrganizationChart, + public cd: ChangeDetectorRef + ) { this.chart = chart as OrganizationChart; this.subscription = this.chart.selectionSource$.subscribe(() => { this.cd.markForCheck(); @@ -247,7 +250,10 @@ export class OrganizationChart implements AfterContentInit { selectionSource$ = this.selectionSource.asObservable(); - constructor(public el: ElementRef, public cd: ChangeDetectorRef) {} + constructor( + public el: ElementRef, + public cd: ChangeDetectorRef + ) {} get root(): TreeNode | null { return this.value && this.value.length ? this.value[0] : null; diff --git a/src/app/components/paginator/paginator.ts b/src/app/components/paginator/paginator.ts index eab7a9066e4..97a7550fccd 100755 --- a/src/app/components/paginator/paginator.ts +++ b/src/app/components/paginator/paginator.ts @@ -319,7 +319,10 @@ export class Paginator implements OnInit, AfterContentInit, OnChanges { _page: number = 0; - constructor(private cd: ChangeDetectorRef, private config: PrimeNGConfig) {} + constructor( + private cd: ChangeDetectorRef, + private config: PrimeNGConfig + ) {} ngOnInit() { this.updatePaginatorState(); diff --git a/src/app/components/panelmenu/panelmenu.ts b/src/app/components/panelmenu/panelmenu.ts index 91308de1d4e..b926499adb0 100644 --- a/src/app/components/panelmenu/panelmenu.ts +++ b/src/app/components/panelmenu/panelmenu.ts @@ -201,7 +201,10 @@ export class PanelMenuSub { @ViewChild('list') listViewChild: ElementRef; - constructor(@Inject(forwardRef(() => PanelMenu)) public panelMenu: PanelMenu, public el: ElementRef) {} + constructor( + @Inject(forwardRef(() => PanelMenu)) public panelMenu: PanelMenu, + public el: ElementRef + ) {} getItemId(processedItem) { return processedItem.item?.id ?? `${this.panelId}_${processedItem.key}`; diff --git a/src/app/components/password/password.ts b/src/app/components/password/password.ts index 55bb18555b5..6582e19af40 100644 --- a/src/app/components/password/password.ts +++ b/src/app/components/password/password.ts @@ -109,7 +109,14 @@ export class PasswordDirective implements OnDestroy, DoCheck { documentResizeListener: VoidListener; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public el: ElementRef, public zone: NgZone, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public el: ElementRef, + public zone: NgZone, + public config: PrimeNGConfig + ) {} ngDoCheck() { this.updateFilledState(); @@ -337,7 +344,7 @@ export const Password_VALUE_ACCESSOR: any = { @Component({ selector: 'p-password', template: ` -
+
-
+
{{ infoText }}
diff --git a/src/app/components/radiobutton/radiobutton.ts b/src/app/components/radiobutton/radiobutton.ts index 2d3f2514abb..14cd436f516 100755 --- a/src/app/components/radiobutton/radiobutton.ts +++ b/src/app/components/radiobutton/radiobutton.ts @@ -208,7 +208,12 @@ export class RadioButton implements ControlValueAccessor, OnInit, OnDestroy { control: Nullable; - constructor(public cd: ChangeDetectorRef, private injector: Injector, private registry: RadioControlRegistry, public config: PrimeNGConfig) {} + constructor( + public cd: ChangeDetectorRef, + private injector: Injector, + private registry: RadioControlRegistry, + public config: PrimeNGConfig + ) {} ngOnInit() { this.control = this.injector.get(NgControl); diff --git a/src/app/components/rating/rating.ts b/src/app/components/rating/rating.ts index 08f40a81142..2ffe5bafbdd 100755 --- a/src/app/components/rating/rating.ts +++ b/src/app/components/rating/rating.ts @@ -195,7 +195,10 @@ export class Rating implements OnInit, ControlValueAccessor { name: string | undefined; - constructor(private cd: ChangeDetectorRef, private config: PrimeNGConfig) {} + constructor( + private cd: ChangeDetectorRef, + private config: PrimeNGConfig + ) {} ngOnInit() { this.name = this.name || UniqueComponentId(); diff --git a/src/app/components/ripple/ripple.ts b/src/app/components/ripple/ripple.ts index 8f429913cad..ebac88a382e 100644 --- a/src/app/components/ripple/ripple.ts +++ b/src/app/components/ripple/ripple.ts @@ -15,7 +15,14 @@ import { VoidListener } from 'primeng/ts-helpers'; } }) export class Ripple implements AfterViewInit, OnDestroy { - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public el: ElementRef, public zone: NgZone, @Optional() public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public el: ElementRef, + public zone: NgZone, + @Optional() public config: PrimeNGConfig + ) {} animationListener: VoidListener; diff --git a/src/app/components/scroller/scroller.ts b/src/app/components/scroller/scroller.ts index 76fb6d97ba4..b559691785d 100644 --- a/src/app/components/scroller/scroller.ts +++ b/src/app/components/scroller/scroller.ts @@ -504,7 +504,13 @@ export class Scroller implements OnInit, AfterContentInit, AfterViewChecked, OnD return this._columns; } - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, private cd: ChangeDetectorRef, private zone: NgZone) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + private cd: ChangeDetectorRef, + private zone: NgZone + ) {} ngOnInit() { this.setInitialState(); diff --git a/src/app/components/scrollpanel/scrollpanel.ts b/src/app/components/scrollpanel/scrollpanel.ts index ad287fa7bc0..12515b86846 100755 --- a/src/app/components/scrollpanel/scrollpanel.ts +++ b/src/app/components/scrollpanel/scrollpanel.ts @@ -146,7 +146,14 @@ export class ScrollPanel implements AfterViewInit, AfterContentInit, OnDestroy { documentMouseUpListener: Nullable<(event?: any) => void>; - constructor(@Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public zone: NgZone, public cd: ChangeDetectorRef, @Inject(DOCUMENT) private document: Document, private renderer: Renderer2) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public zone: NgZone, + public cd: ChangeDetectorRef, + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2 + ) { this.contentId = UniqueComponentId() + '_content'; } diff --git a/src/app/components/scrolltop/scrolltop.ts b/src/app/components/scrolltop/scrolltop.ts index 17670b5516e..babd7f0a96f 100755 --- a/src/app/components/scrolltop/scrolltop.ts +++ b/src/app/components/scrolltop/scrolltop.ts @@ -117,7 +117,14 @@ export class ScrollTop implements OnInit, OnDestroy { private window: Window | null; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public el: ElementRef, private cd: ChangeDetectorRef, public config: PrimeNGConfig) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public el: ElementRef, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) { this.window = this.document.defaultView; } diff --git a/src/app/components/sidebar/sidebar.ts b/src/app/components/sidebar/sidebar.ts index 4e1f616ae71..b6db9f60b4c 100755 --- a/src/app/components/sidebar/sidebar.ts +++ b/src/app/components/sidebar/sidebar.ts @@ -260,7 +260,13 @@ export class Sidebar implements AfterViewInit, AfterContentInit, OnDestroy { headlessTemplate: Nullable>; - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, public cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public renderer: Renderer2, + public cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} ngAfterViewInit() { this.initialized = true; diff --git a/src/app/components/slidemenu/slidemenu.ts b/src/app/components/slidemenu/slidemenu.ts index acc68f54c66..8be190c87a0 100755 --- a/src/app/components/slidemenu/slidemenu.ts +++ b/src/app/components/slidemenu/slidemenu.ts @@ -242,7 +242,13 @@ export class SlideMenuSub { return -this.slideMenu.left == this.level * this.menuWidth; } - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public renderer: Renderer2, private cd: ChangeDetectorRef, @Inject(forwardRef(() => SlideMenu)) public slideMenu: SlideMenu) {} + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public renderer: Renderer2, + private cd: ChangeDetectorRef, + @Inject(forwardRef(() => SlideMenu)) public slideMenu: SlideMenu + ) {} getItemProp(processedItem: any, name: string, params: any | null = null) { return processedItem && processedItem.item ? ObjectUtils.getItemValue(processedItem.item[name], params) : undefined; diff --git a/src/app/components/slider/slider.ts b/src/app/components/slider/slider.ts index 36687376549..08ae3fd657f 100755 --- a/src/app/components/slider/slider.ts +++ b/src/app/components/slider/slider.ts @@ -264,7 +264,14 @@ export class Slider implements OnDestroy, ControlValueAccessor { public starty: Nullable; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public renderer: Renderer2, private ngZone: NgZone, public cd: ChangeDetectorRef) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public renderer: Renderer2, + private ngZone: NgZone, + public cd: ChangeDetectorRef + ) {} onMouseDown(event: Event, index?: number) { if (this.disabled) { diff --git a/src/app/components/speeddial/speeddial.ts b/src/app/components/speeddial/speeddial.ts index 4db568de217..d31a9fd411f 100644 --- a/src/app/components/speeddial/speeddial.ts +++ b/src/app/components/speeddial/speeddial.ts @@ -318,7 +318,13 @@ export class SpeedDial implements AfterViewInit, AfterContentInit, OnDestroy { return this.focusedOptionIndex() !== -1 ? this.focusedOptionIndex() : null; } - constructor(@Inject(PLATFORM_ID) private platformId: any, private el: ElementRef, public cd: ChangeDetectorRef, @Inject(DOCUMENT) private document: Document, private renderer: Renderer2) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private el: ElementRef, + public cd: ChangeDetectorRef, + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2 + ) {} ngOnInit() { this.id = this.id || UniqueComponentId(); diff --git a/src/app/components/spinner/spinner.ts b/src/app/components/spinner/spinner.ts index 6cae652a2ce..e23c886bc88 100755 --- a/src/app/components/spinner/spinner.ts +++ b/src/app/components/spinner/spinner.ts @@ -160,7 +160,10 @@ export class Spinner implements OnInit, ControlValueAccessor { } } - constructor(public el: ElementRef, public cd: ChangeDetectorRef) {} + constructor( + public el: ElementRef, + public cd: ChangeDetectorRef + ) {} ngOnInit() { if (this.formatInput) { diff --git a/src/app/components/splitter/splitter.ts b/src/app/components/splitter/splitter.ts index f26786c85c1..9a8eb9ac3c2 100755 --- a/src/app/components/splitter/splitter.ts +++ b/src/app/components/splitter/splitter.ts @@ -178,7 +178,13 @@ export class Splitter { private window: Window; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public cd: ChangeDetectorRef, private el: ElementRef) { + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public cd: ChangeDetectorRef, + private el: ElementRef + ) { this.window = this.document.defaultView as Window; } diff --git a/src/app/components/steps/steps.ts b/src/app/components/steps/steps.ts index 300360721d5..b056a4b15f6 100755 --- a/src/app/components/steps/steps.ts +++ b/src/app/components/steps/steps.ts @@ -123,7 +123,11 @@ export class Steps implements OnInit, OnDestroy { @ViewChild('list', { static: false }) listViewChild: Nullable; - constructor(private router: Router, private route: ActivatedRoute, private cd: ChangeDetectorRef) {} + constructor( + private router: Router, + private route: ActivatedRoute, + private cd: ChangeDetectorRef + ) {} subscription: Subscription | undefined; diff --git a/src/app/components/styleclass/styleclass.ts b/src/app/components/styleclass/styleclass.ts index dee1ef70fb0..e5a042e52b3 100644 --- a/src/app/components/styleclass/styleclass.ts +++ b/src/app/components/styleclass/styleclass.ts @@ -13,7 +13,11 @@ import { VoidListener } from 'primeng/ts-helpers'; } }) export class StyleClass implements OnDestroy { - constructor(public el: ElementRef, public renderer: Renderer2, private zone: NgZone) {} + constructor( + public el: ElementRef, + public renderer: Renderer2, + private zone: NgZone + ) {} /** * Selector to define the target element. Available selectors are '@next', '@prev', '@parent' and '@grandparent'. * @group Props diff --git a/src/app/components/table/table.ts b/src/app/components/table/table.ts index c45dc57a6fd..e666784d50f 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3183,7 +3183,12 @@ export class TableBody implements AfterViewInit, OnDestroy { } } - constructor(public dt: Table, public tableService: TableService, public cd: ChangeDetectorRef, public el: ElementRef) { + constructor( + public dt: Table, + public tableService: TableService, + public cd: ChangeDetectorRef, + public el: ElementRef + ) { this.subscription = this.dt.tableService.valueSource$.subscribe(() => { if (this.dt.virtualScroll) { this.cd.detectChanges(); @@ -3309,7 +3314,10 @@ export class FrozenColumn implements AfterViewInit { @Input() alignFrozen: string = 'left'; - constructor(private el: ElementRef, private zone: NgZone) {} + constructor( + private el: ElementRef, + private zone: NgZone + ) {} ngAfterViewInit() { this.zone.runOutsideAngular(() => { @@ -3468,7 +3476,10 @@ export class SortIcon implements OnInit, OnDestroy { sortOrder: number | undefined; - constructor(public dt: Table, public cd: ChangeDetectorRef) { + constructor( + public dt: Table, + public cd: ChangeDetectorRef + ) { this.subscription = this.dt.tableService.sortSource$.subscribe((sortMeta) => { this.updateSortState(); }); @@ -3549,7 +3560,11 @@ export class SelectableRow implements OnInit, OnDestroy { subscription: Subscription | undefined; - constructor(public dt: Table, public tableService: TableService, private el: ElementRef) { + constructor( + public dt: Table, + public tableService: TableService, + private el: ElementRef + ) { if (this.isEnabled()) { this.subscription = this.dt.tableService.selectionSource$.subscribe(() => { this.selected = this.dt.isSelected(this.data); @@ -3797,7 +3812,10 @@ export class SelectableRowDblClick implements OnInit, OnDestroy { subscription: Subscription | undefined; - constructor(public dt: Table, public tableService: TableService) { + constructor( + public dt: Table, + public tableService: TableService + ) { if (this.isEnabled()) { this.subscription = this.dt.tableService.selectionSource$.subscribe(() => { this.selected = this.dt.isSelected(this.data); @@ -3852,7 +3870,11 @@ export class ContextMenuRow { subscription: Subscription | undefined; - constructor(public dt: Table, public tableService: TableService, private el: ElementRef) { + constructor( + public dt: Table, + public tableService: TableService, + private el: ElementRef + ) { if (this.isEnabled()) { this.subscription = this.dt.tableService.contextMenuSource$.subscribe((data) => { this.selected = this.dt.equals(this.data, data); @@ -3934,7 +3956,14 @@ export class ResizableColumn implements AfterViewInit, OnDestroy { documentMouseUpListener: VoidListener; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public dt: Table, public el: ElementRef, public zone: NgZone) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public dt: Table, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { @@ -4043,7 +4072,13 @@ export class ReorderableColumn implements AfterViewInit, OnDestroy { mouseDownListener: VoidListener; - constructor(@Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public dt: Table, public el: ElementRef, public zone: NgZone) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public dt: Table, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (this.isEnabled()) { @@ -4150,7 +4185,11 @@ export class EditableColumn implements OnChanges, AfterViewInit, OnDestroy { overlayEventListener: any; - constructor(public dt: Table, public el: ElementRef, public zone: NgZone) {} + constructor( + public dt: Table, + public el: ElementRef, + public zone: NgZone + ) {} public ngOnChanges(changes: SimpleChanges): void { if (this.el.nativeElement && !changes.data?.firstChange) { @@ -4491,7 +4530,10 @@ export class EditableRow { } }) export class InitEditableRow { - constructor(public dt: Table, public editableRow: EditableRow) {} + constructor( + public dt: Table, + public editableRow: EditableRow + ) {} @HostListener('click', ['$event']) onClick(event: Event) { @@ -4507,7 +4549,10 @@ export class InitEditableRow { } }) export class SaveEditableRow { - constructor(public dt: Table, public editableRow: EditableRow) {} + constructor( + public dt: Table, + public editableRow: EditableRow + ) {} @HostListener('click', ['$event']) onClick(event: Event) { @@ -4523,7 +4568,10 @@ export class SaveEditableRow { } }) export class CancelEditableRow { - constructor(public dt: Table, public editableRow: EditableRow) {} + constructor( + public dt: Table, + public editableRow: EditableRow + ) {} @HostListener('click', ['$event']) onClick(event: Event) { @@ -4554,7 +4602,11 @@ export class CellEditor implements AfterContentInit { outputTemplate: Nullable>; - constructor(public dt: Table, @Optional() public editableColumn: EditableColumn, @Optional() public editableRow: EditableRow) {} + constructor( + public dt: Table, + @Optional() public editableColumn: EditableColumn, + @Optional() public editableRow: EditableRow + ) {} ngAfterContentInit() { (this.templates as QueryList).forEach((item) => { @@ -4614,7 +4666,10 @@ export class TableRadioButton { subscription: Subscription; - constructor(public dt: Table, public cd: ChangeDetectorRef) { + constructor( + public dt: Table, + public cd: ChangeDetectorRef + ) { this.subscription = this.dt.tableService.selectionSource$.subscribe(() => { this.checked = this.dt.isSelected(this.value); this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow) : undefined; @@ -4711,7 +4766,11 @@ export class TableCheckbox { subscription: Subscription; - constructor(public dt: Table, public tableService: TableService, public cd: ChangeDetectorRef) { + constructor( + public dt: Table, + public tableService: TableService, + public cd: ChangeDetectorRef + ) { this.subscription = this.dt.tableService.selectionSource$.subscribe(() => { this.checked = this.dt.isSelected(this.value) && !this.disabled; this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectRow : this.dt.config.translation.aria.unselectRow) : undefined; @@ -4791,7 +4850,11 @@ export class TableHeaderCheckbox { valueChangeSubscription: Subscription; - constructor(public dt: Table, public tableService: TableService, public cd: ChangeDetectorRef) { + constructor( + public dt: Table, + public tableService: TableService, + public cd: ChangeDetectorRef + ) { this.valueChangeSubscription = this.dt.tableService.valueSource$.subscribe(() => { this.checked = this.updateCheckedState(); this.ariaLabel = this.ariaLabel || this.dt.config.translation.aria ? (this.checked ? this.dt.config.translation.aria.selectAll : this.dt.config.translation.aria.unselectAll) : undefined; @@ -4890,7 +4953,12 @@ export class ReorderableRow implements AfterViewInit { dropListener: VoidListener; - constructor(private renderer: Renderer2, public dt: Table, public el: ElementRef, public zone: NgZone) {} + constructor( + private renderer: Renderer2, + public dt: Table, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (this.isEnabled()) { @@ -5388,7 +5456,15 @@ export class ColumnFilter implements AfterContentInit { return this.config.translation ? this.config.translation.aria.filterConstraint : undefined; } - constructor(@Inject(DOCUMENT) private document: Document, public el: ElementRef, public dt: Table, public renderer: Renderer2, public config: PrimeNGConfig, public overlayService: OverlayService, private cd: ChangeDetectorRef) { + constructor( + @Inject(DOCUMENT) private document: Document, + public el: ElementRef, + public dt: Table, + public renderer: Renderer2, + public config: PrimeNGConfig, + public overlayService: OverlayService, + private cd: ChangeDetectorRef + ) { this.window = this.document.defaultView as Window; } @@ -5896,7 +5972,10 @@ export class ColumnFilterFormElement implements OnInit { filterCallback: any; - constructor(public dt: Table, private colFilter: ColumnFilter) {} + constructor( + public dt: Table, + private colFilter: ColumnFilter + ) {} ngOnInit() { this.filterCallback = (value: any) => { diff --git a/src/app/components/tabmenu/tabmenu.ts b/src/app/components/tabmenu/tabmenu.ts index 75f9a3837f0..77aa1165c53 100644 --- a/src/app/components/tabmenu/tabmenu.ts +++ b/src/app/components/tabmenu/tabmenu.ts @@ -246,7 +246,12 @@ export class TabMenu implements AfterContentInit, AfterViewInit, AfterViewChecke return this._focusableItems; } - constructor(@Inject(PLATFORM_ID) private platformId: any, private router: Router, private route: ActivatedRoute, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private router: Router, + private route: ActivatedRoute, + private cd: ChangeDetectorRef + ) { this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event: NavigationEnd) => { this.cd.markForCheck(); }); diff --git a/src/app/components/tabview/tabview.ts b/src/app/components/tabview/tabview.ts index 4a37045971f..7c3847e56a6 100755 --- a/src/app/components/tabview/tabview.ts +++ b/src/app/components/tabview/tabview.ts @@ -225,7 +225,12 @@ export class TabPanel implements AfterContentInit, OnDestroy { tabView: TabView; - constructor(@Inject(forwardRef(() => TabView)) tabView: TabView, public el: ElementRef, public viewContainer: ViewContainerRef, public cd: ChangeDetectorRef) { + constructor( + @Inject(forwardRef(() => TabView)) tabView: TabView, + public el: ElementRef, + public viewContainer: ViewContainerRef, + public cd: ChangeDetectorRef + ) { this.tabView = tabView as TabView; this.id = UniqueComponentId(); } @@ -490,7 +495,12 @@ export class TabView implements AfterContentInit, AfterViewChecked, OnDestroy, B @ViewChild('elementToObserve') elementToObserve: ElementRef; - constructor(@Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public cd: ChangeDetectorRef, private renderer: Renderer2) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public cd: ChangeDetectorRef, + private renderer: Renderer2 + ) {} ngAfterContentInit() { this.initTabs(); diff --git a/src/app/components/terminal/terminal.ts b/src/app/components/terminal/terminal.ts index 87c63866c2e..fa714e3cc00 100755 --- a/src/app/components/terminal/terminal.ts +++ b/src/app/components/terminal/terminal.ts @@ -65,7 +65,11 @@ export class Terminal implements AfterViewInit, AfterViewChecked, OnDestroy { subscription: Subscription; - constructor(public el: ElementRef, public terminalService: TerminalService, public cd: ChangeDetectorRef) { + constructor( + public el: ElementRef, + public terminalService: TerminalService, + public cd: ChangeDetectorRef + ) { this.subscription = terminalService.responseHandler.subscribe((response) => { this.commands[this.commands.length - 1].response = response; this.commandProcessed = true; diff --git a/src/app/components/tieredmenu/tieredmenu.ts b/src/app/components/tieredmenu/tieredmenu.ts index f46d9d7801a..2836076ad26 100755 --- a/src/app/components/tieredmenu/tieredmenu.ts +++ b/src/app/components/tieredmenu/tieredmenu.ts @@ -230,7 +230,11 @@ export class TieredMenuSub { @ViewChild('sublist', { static: true }) sublistViewChild: ElementRef; - constructor(public el: ElementRef, public renderer: Renderer2, @Inject(forwardRef(() => TieredMenu)) public tieredMenu: TieredMenu) { + constructor( + public el: ElementRef, + public renderer: Renderer2, + @Inject(forwardRef(() => TieredMenu)) public tieredMenu: TieredMenu + ) { effect(() => { const path = this.activeItemPath(); if (ObjectUtils.isNotEmpty(path)) { diff --git a/src/app/components/toast/toast.ts b/src/app/components/toast/toast.ts index f05f2e86cb9..20a07b446b0 100755 --- a/src/app/components/toast/toast.ts +++ b/src/app/components/toast/toast.ts @@ -150,7 +150,10 @@ 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(); @@ -159,12 +162,15 @@ export class ToastItem implements AfterViewInit, OnDestroy { initTimeout() { if (!this.message?.sticky) { this.zone.runOutsideAngular(() => { - this.timeout = setTimeout(() => { - this.onClose.emit({ - index: this.index, - message: this.message - }); - }, this.message?.life || this.life || 3000); + this.timeout = setTimeout( + () => { + this.onClose.emit({ + index: this.index, + message: this.message + }); + }, + this.message?.life || this.life || 3000 + ); }); } } @@ -343,7 +349,13 @@ export class Toast implements OnInit, AfterContentInit, OnDestroy { _position: ToastPositionType = 'top-right'; - constructor(@Inject(DOCUMENT) private document: Document, private renderer: Renderer2, public messageService: MessageService, private cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2, + public messageService: MessageService, + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} styleElement: any; diff --git a/src/app/components/togglebutton/togglebutton.ts b/src/app/components/togglebutton/togglebutton.ts index 2e8a73a65a4..c8694269380 100755 --- a/src/app/components/togglebutton/togglebutton.ts +++ b/src/app/components/togglebutton/togglebutton.ts @@ -39,14 +39,14 @@ export const TOGGLEBUTTON_VALUE_ACCESSOR: any = { [autofocus]="autofocus" > @if (!iconTemplate) { - + } @else { - + } {{ checked ? (hasOnLabel ? onLabel : '') : hasOffLabel ? offLabel : '' }}
diff --git a/src/app/components/tooltip/tooltip.ts b/src/app/components/tooltip/tooltip.ts index 5fe32510ef5..4d6779273d9 100755 --- a/src/app/components/tooltip/tooltip.ts +++ b/src/app/components/tooltip/tooltip.ts @@ -166,7 +166,14 @@ export class Tooltip implements AfterViewInit, OnDestroy { interactionInProgress = false; - constructor(@Inject(PLATFORM_ID) private platformId: any, public el: ElementRef, public zone: NgZone, public config: PrimeNGConfig, private renderer: Renderer2, private viewContainer: ViewContainerRef) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + public el: ElementRef, + public zone: NgZone, + public config: PrimeNGConfig, + private renderer: Renderer2, + private viewContainer: ViewContainerRef + ) {} ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/components/tree/tree.ts b/src/app/components/tree/tree.ts index 79997caad47..7e6e56987dd 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1166,7 +1166,12 @@ export class Tree implements OnInit, AfterContentInit, OnChanges, OnDestroy, Blo public dragStopSubscription: Subscription | undefined | null; - constructor(public el: ElementRef, @Optional() public dragDropService: TreeDragDropService, public config: PrimeNGConfig, private cd: ChangeDetectorRef) {} + constructor( + public el: ElementRef, + @Optional() public dragDropService: TreeDragDropService, + public config: PrimeNGConfig, + private cd: ChangeDetectorRef + ) {} ngOnInit() { if (this.droppableNodes) { diff --git a/src/app/components/treeselect/treeselect.ts b/src/app/components/treeselect/treeselect.ts index fa0a2ac8283..48345609b18 100755 --- a/src/app/components/treeselect/treeselect.ts +++ b/src/app/components/treeselect/treeselect.ts @@ -561,7 +561,12 @@ export class TreeSelect implements AfterContentInit { listId: string = ''; - constructor(public config: PrimeNGConfig, public cd: ChangeDetectorRef, public el: ElementRef, public overlayService: OverlayService) {} + constructor( + public config: PrimeNGConfig, + public cd: ChangeDetectorRef, + public el: ElementRef, + public overlayService: OverlayService + ) {} ngOnInit() { this.listId = UniqueComponentId() + '_list'; diff --git a/src/app/components/treetable/treetable.ts b/src/app/components/treetable/treetable.ts index 36b758c73b1..697ced086a2 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -2263,7 +2263,11 @@ export class TTBody { subscription: Subscription; - constructor(public tt: TreeTable, public treeTableService: TreeTableService, public cd: ChangeDetectorRef) { + constructor( + public tt: TreeTable, + public treeTableService: TreeTableService, + public cd: ChangeDetectorRef + ) { this.subscription = this.tt.tableService.uiUpdateSource$.subscribe(() => { if (this.tt.virtualScroll) { this.cd.detectChanges(); @@ -2404,7 +2408,13 @@ export class TTScrollableView implements AfterViewInit, OnDestroy { } } - constructor(@Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public tt: TreeTable, public el: ElementRef, public zone: NgZone) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public tt: TreeTable, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { @@ -2657,7 +2667,10 @@ export class TTSortIcon implements OnInit, OnDestroy { sortOrder: number | undefined; - constructor(public tt: TreeTable, public cd: ChangeDetectorRef) { + constructor( + public tt: TreeTable, + public cd: ChangeDetectorRef + ) { this.subscription = this.tt.tableService.sortSource$.subscribe((sortMeta) => { this.updateSortState(); this.cd.markForCheck(); @@ -2705,7 +2718,14 @@ export class TTResizableColumn implements AfterViewInit, OnDestroy { documentMouseUpListener: VoidListener; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public tt: TreeTable, public el: ElementRef, public zone: NgZone) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public tt: TreeTable, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (isPlatformBrowser(this.platformId)) { @@ -2788,7 +2808,14 @@ export class TTReorderableColumn implements AfterViewInit, OnDestroy { mouseDownListener: VoidListener; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private renderer: Renderer2, public tt: TreeTable, public el: ElementRef, public zone: NgZone) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private renderer: Renderer2, + public tt: TreeTable, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (this.isEnabled()) { @@ -2887,7 +2914,10 @@ export class TTSelectableRow implements OnInit, OnDestroy { subscription: Subscription | undefined; - constructor(public tt: TreeTable, public tableService: TreeTableService) { + constructor( + public tt: TreeTable, + public tableService: TreeTableService + ) { if (this.isEnabled()) { this.subscription = this.tt.tableService.selectionSource$.subscribe(() => { this.selected = this.tt.isSelected(this.rowNode.node); @@ -2970,7 +3000,10 @@ export class TTSelectableRowDblClick implements OnInit, OnDestroy { subscription: Subscription | undefined; - constructor(public tt: TreeTable, public tableService: TreeTableService) { + constructor( + public tt: TreeTable, + public tableService: TreeTableService + ) { if (this.isEnabled()) { this.subscription = this.tt.tableService.selectionSource$.subscribe(() => { this.selected = this.tt.isSelected(this.rowNode.node); @@ -3022,7 +3055,11 @@ export class TTContextMenuRow { subscription: Subscription | undefined; - constructor(public tt: TreeTable, public tableService: TreeTableService, private el: ElementRef) { + constructor( + public tt: TreeTable, + public tableService: TreeTableService, + private el: ElementRef + ) { if (this.isEnabled()) { this.subscription = this.tt.tableService.contextMenuSource$.subscribe((node) => { this.selected = this.tt.equals(this.rowNode.node, node); @@ -3092,7 +3129,11 @@ export class TTCheckbox { subscription: Subscription | undefined; - constructor(public tt: TreeTable, public tableService: TreeTableService, public cd: ChangeDetectorRef) { + constructor( + public tt: TreeTable, + public tableService: TreeTableService, + public cd: ChangeDetectorRef + ) { this.subscription = this.tt.tableService.selectionSource$.subscribe(() => { if (this.tt.selectionKeys) { this.checked = this.tt.isNodeSelected(this.rowNode.node); @@ -3186,7 +3227,11 @@ export class TTHeaderCheckbox { valueChangeSubscription: Subscription; - constructor(public tt: TreeTable, public tableService: TreeTableService, private cd: ChangeDetectorRef) { + constructor( + public tt: TreeTable, + public tableService: TreeTableService, + private cd: ChangeDetectorRef + ) { this.valueChangeSubscription = this.tt.tableService.uiUpdateSource$.subscribe(() => { this.checked = this.updateCheckedState(); }); @@ -3274,7 +3319,11 @@ export class TTEditableColumn implements AfterViewInit { @Input({ transform: booleanAttribute }) ttEditableColumnDisabled: boolean | undefined; - constructor(public tt: TreeTable, public el: ElementRef, public zone: NgZone) {} + constructor( + public tt: TreeTable, + public el: ElementRef, + public zone: NgZone + ) {} ngAfterViewInit() { if (this.isEnabled()) { @@ -3449,7 +3498,10 @@ export class TreeTableCellEditor implements AfterContentInit { outputTemplate: Nullable>; - constructor(public tt: TreeTable, public editableColumn: TTEditableColumn) {} + constructor( + public tt: TreeTable, + public editableColumn: TTEditableColumn + ) {} ngAfterContentInit() { (this.templates as QueryList).forEach((item) => { @@ -3493,7 +3545,11 @@ export class TTRow { @Input('ttRow') rowNode: any; - constructor(public tt: TreeTable, public el: ElementRef, public zone: NgZone) {} + constructor( + public tt: TreeTable, + public el: ElementRef, + public zone: NgZone + ) {} @HostListener('keydown', ['$event']) onKeyDown(event: KeyboardEvent) { @@ -3692,7 +3748,10 @@ export class TTRow { export class TreeTableToggler { @Input() rowNode: any; - constructor(public tt: TreeTable, private config: PrimeNGConfig) {} + constructor( + public tt: TreeTable, + private config: PrimeNGConfig + ) {} get toggleButtonAriaLabel() { return this.config.translation ? (this.rowNode.expanded ? this.config.translation.aria.collapseRow : this.config.translation.aria.expandRow) : undefined; diff --git a/src/app/components/tristatecheckbox/tristatecheckbox.ts b/src/app/components/tristatecheckbox/tristatecheckbox.ts index 1193a1947fb..d280049b07b 100755 --- a/src/app/components/tristatecheckbox/tristatecheckbox.ts +++ b/src/app/components/tristatecheckbox/tristatecheckbox.ts @@ -79,7 +79,10 @@ export const TRISTATECHECKBOX_VALUE_ACCESSOR: any = { } }) export class TriStateCheckbox implements ControlValueAccessor { - constructor(private cd: ChangeDetectorRef, public config: PrimeNGConfig) {} + constructor( + private cd: ChangeDetectorRef, + public config: PrimeNGConfig + ) {} /** * When present, it specifies that the element should be disabled. * @group Props diff --git a/src/app/components/virtualscroller/virtualscroller.ts b/src/app/components/virtualscroller/virtualscroller.ts index 14d26993a90..c2d57d2cae3 100755 --- a/src/app/components/virtualscroller/virtualscroller.ts +++ b/src/app/components/virtualscroller/virtualscroller.ts @@ -121,7 +121,10 @@ export class VirtualScroller implements AfterContentInit, BlockableUI { virtualScrollTimeout: any; - constructor(public el: ElementRef, public cd: ChangeDetectorRef) {} + constructor( + public el: ElementRef, + public cd: ChangeDetectorRef + ) {} ngAfterContentInit() { (this.templates as QueryList).forEach((item) => { diff --git a/src/app/showcase/demo/deferreddemo.ts b/src/app/showcase/demo/deferreddemo.ts index e1e114e973c..9aeb5f77687 100755 --- a/src/app/showcase/demo/deferreddemo.ts +++ b/src/app/showcase/demo/deferreddemo.ts @@ -7,11 +7,11 @@ import { Component, ElementRef, EventEmitter, Inject, Input, OnInit, Output, PLA imports: [CommonModule], template: ` @if (!visible) { -
-
-
+
+
+
} @else { - + } `, styleUrl: './deferreddemo.scss' @@ -27,7 +27,10 @@ export class DeferredDemo implements OnInit { @Output() load: EventEmitter = new EventEmitter(); - constructor(public el: ElementRef, @Inject(PLATFORM_ID) private platformId: any) {} + constructor( + public el: ElementRef, + @Inject(PLATFORM_ID) private platformId: any + ) {} ngOnInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/showcase/doc/autocomplete/dropdowndoc.ts b/src/app/showcase/doc/autocomplete/dropdowndoc.ts index ad6c548eb60..f5b260f7ab4 100644 --- a/src/app/showcase/doc/autocomplete/dropdowndoc.ts +++ b/src/app/showcase/doc/autocomplete/dropdowndoc.ts @@ -28,7 +28,10 @@ export class DropdownDoc implements OnInit { filteredCountries: any[] | undefined; - constructor(private countryService: CountryService, private PlatformService: PlatformService) {} + constructor( + private countryService: CountryService, + private PlatformService: PlatformService + ) {} ngOnInit() { if (this.PlatformService.isBrowser()) { diff --git a/src/app/showcase/doc/carousel/basicdoc.ts b/src/app/showcase/doc/carousel/basicdoc.ts index 0529980a689..a85ce4511f6 100644 --- a/src/app/showcase/doc/carousel/basicdoc.ts +++ b/src/app/showcase/doc/carousel/basicdoc.ts @@ -39,7 +39,10 @@ export class BasicDoc implements OnInit { responsiveOptions: any[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/carousel/circulardoc.ts b/src/app/showcase/doc/carousel/circulardoc.ts index 880478e68da..2b6a18f92c3 100644 --- a/src/app/showcase/doc/carousel/circulardoc.ts +++ b/src/app/showcase/doc/carousel/circulardoc.ts @@ -39,7 +39,10 @@ export class CircularDoc implements OnInit { responsiveOptions: any[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/carousel/numscrolldoc.ts b/src/app/showcase/doc/carousel/numscrolldoc.ts index e619f1d54b4..8a068c0efd3 100644 --- a/src/app/showcase/doc/carousel/numscrolldoc.ts +++ b/src/app/showcase/doc/carousel/numscrolldoc.ts @@ -39,7 +39,10 @@ export class NumScrollDoc implements OnInit { responsiveOptions: any[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/carousel/responsivedoc.ts b/src/app/showcase/doc/carousel/responsivedoc.ts index db933c9a4e1..4d8538626f3 100644 --- a/src/app/showcase/doc/carousel/responsivedoc.ts +++ b/src/app/showcase/doc/carousel/responsivedoc.ts @@ -43,7 +43,10 @@ export class ResponsiveDoc implements OnInit { responsiveOptions: any[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/carousel/templatedoc.ts b/src/app/showcase/doc/carousel/templatedoc.ts index ba25dc07022..66c5de01967 100644 --- a/src/app/showcase/doc/carousel/templatedoc.ts +++ b/src/app/showcase/doc/carousel/templatedoc.ts @@ -45,7 +45,10 @@ export class TemplateDoc implements OnInit { responsiveOptions: any[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/carousel/verticaldoc.ts b/src/app/showcase/doc/carousel/verticaldoc.ts index 08650603f61..0e4f67409c0 100644 --- a/src/app/showcase/doc/carousel/verticaldoc.ts +++ b/src/app/showcase/doc/carousel/verticaldoc.ts @@ -37,7 +37,10 @@ import { ProductService } from '@service/productservice'; export class VerticalDoc implements OnInit { products: Product[] | undefined; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/chart/basicdoc.ts b/src/app/showcase/doc/chart/basicdoc.ts index adb10f4ed9b..597e15bc298 100644 --- a/src/app/showcase/doc/chart/basicdoc.ts +++ b/src/app/showcase/doc/chart/basicdoc.ts @@ -26,7 +26,11 @@ export class BasicDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/combodoc.ts b/src/app/showcase/doc/chart/combodoc.ts index f1d55258649..c58d299f9ce 100644 --- a/src/app/showcase/doc/chart/combodoc.ts +++ b/src/app/showcase/doc/chart/combodoc.ts @@ -22,7 +22,11 @@ export class ComboDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/doughnutdoc.ts b/src/app/showcase/doc/chart/doughnutdoc.ts index e71b56c92fa..d08956b521a 100644 --- a/src/app/showcase/doc/chart/doughnutdoc.ts +++ b/src/app/showcase/doc/chart/doughnutdoc.ts @@ -22,7 +22,11 @@ export class DoughnutDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/horizontalbardoc.ts b/src/app/showcase/doc/chart/horizontalbardoc.ts index cf7b7ba7539..c3ae8cc4452 100644 --- a/src/app/showcase/doc/chart/horizontalbardoc.ts +++ b/src/app/showcase/doc/chart/horizontalbardoc.ts @@ -22,7 +22,11 @@ export class HorizontalBarDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/linedoc.ts b/src/app/showcase/doc/chart/linedoc.ts index bb8b0e9be86..b4f37766065 100644 --- a/src/app/showcase/doc/chart/linedoc.ts +++ b/src/app/showcase/doc/chart/linedoc.ts @@ -22,7 +22,11 @@ export class LineDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/linestyledoc.ts b/src/app/showcase/doc/chart/linestyledoc.ts index 5cf3311a21b..97757c261e8 100644 --- a/src/app/showcase/doc/chart/linestyledoc.ts +++ b/src/app/showcase/doc/chart/linestyledoc.ts @@ -22,7 +22,11 @@ export class LineStyleDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/multiaxisdoc.ts b/src/app/showcase/doc/chart/multiaxisdoc.ts index 2e908be8ecd..cd453c53572 100644 --- a/src/app/showcase/doc/chart/multiaxisdoc.ts +++ b/src/app/showcase/doc/chart/multiaxisdoc.ts @@ -22,7 +22,11 @@ export class MultiAxisDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/piedoc.ts b/src/app/showcase/doc/chart/piedoc.ts index 6019b1d77d9..a47217d066b 100644 --- a/src/app/showcase/doc/chart/piedoc.ts +++ b/src/app/showcase/doc/chart/piedoc.ts @@ -23,7 +23,11 @@ export class PieDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/polarareadoc.ts b/src/app/showcase/doc/chart/polarareadoc.ts index 0e549f81f8a..436fe8e5329 100644 --- a/src/app/showcase/doc/chart/polarareadoc.ts +++ b/src/app/showcase/doc/chart/polarareadoc.ts @@ -22,7 +22,11 @@ export class PolarAreaDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/radardoc.ts b/src/app/showcase/doc/chart/radardoc.ts index 53a68b54160..2015ec97b7a 100644 --- a/src/app/showcase/doc/chart/radardoc.ts +++ b/src/app/showcase/doc/chart/radardoc.ts @@ -22,7 +22,11 @@ export class RadarDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/stackedbardoc.ts b/src/app/showcase/doc/chart/stackedbardoc.ts index 09a10a8c452..539f1870590 100644 --- a/src/app/showcase/doc/chart/stackedbardoc.ts +++ b/src/app/showcase/doc/chart/stackedbardoc.ts @@ -22,7 +22,11 @@ export class StackedBarDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/chart/verticalbardoc.ts b/src/app/showcase/doc/chart/verticalbardoc.ts index 1c54f3d52de..09781142b09 100644 --- a/src/app/showcase/doc/chart/verticalbardoc.ts +++ b/src/app/showcase/doc/chart/verticalbardoc.ts @@ -22,7 +22,11 @@ export class VerticalBarDoc implements OnInit { subscription!: Subscription; - constructor(@Inject(PLATFORM_ID) private platformId: any, private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.initChart(); this.cd.markForCheck(); diff --git a/src/app/showcase/doc/confirmdialog/basicdoc.ts b/src/app/showcase/doc/confirmdialog/basicdoc.ts index d85d8613507..11136e20ed1 100644 --- a/src/app/showcase/doc/confirmdialog/basicdoc.ts +++ b/src/app/showcase/doc/confirmdialog/basicdoc.ts @@ -19,7 +19,10 @@ import { Code } from '@domain/code'; providers: [ConfirmationService, MessageService] }) export class BasicDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirm1(event: Event) { this.confirmationService.confirm({ diff --git a/src/app/showcase/doc/confirmdialog/headlessdoc.ts b/src/app/showcase/doc/confirmdialog/headlessdoc.ts index bd6f8857e76..13ad0f111cf 100644 --- a/src/app/showcase/doc/confirmdialog/headlessdoc.ts +++ b/src/app/showcase/doc/confirmdialog/headlessdoc.ts @@ -32,7 +32,10 @@ import { Code } from '@domain/code'; providers: [ConfirmationService, MessageService] }) export class HeadlessDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirm() { this.confirmationService.confirm({ diff --git a/src/app/showcase/doc/confirmdialog/positiondoc.ts b/src/app/showcase/doc/confirmdialog/positiondoc.ts index 7bd5ca725d4..cf7bb306ffc 100644 --- a/src/app/showcase/doc/confirmdialog/positiondoc.ts +++ b/src/app/showcase/doc/confirmdialog/positiondoc.ts @@ -33,7 +33,10 @@ import { Code } from '@domain/code'; export class PositionDoc { position: string = 'center'; - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirmPosition(position: string) { this.position = position; diff --git a/src/app/showcase/doc/confirmdialog/templatedoc.ts b/src/app/showcase/doc/confirmdialog/templatedoc.ts index c23ecc4851d..7b2d6114cad 100644 --- a/src/app/showcase/doc/confirmdialog/templatedoc.ts +++ b/src/app/showcase/doc/confirmdialog/templatedoc.ts @@ -32,7 +32,10 @@ import { Code } from '@domain/code'; providers: [ConfirmationService, MessageService] }) export class TemplateDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirm() { this.confirmationService.confirm({ diff --git a/src/app/showcase/doc/confirmpopup/basicdoc.ts b/src/app/showcase/doc/confirmpopup/basicdoc.ts index 86bb64031c3..5cfd928d1e8 100644 --- a/src/app/showcase/doc/confirmpopup/basicdoc.ts +++ b/src/app/showcase/doc/confirmpopup/basicdoc.ts @@ -19,7 +19,10 @@ import { Code } from '@domain/code'; providers: [ConfirmationService, MessageService] }) export class BasicDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirm1(event: Event) { this.confirmationService.confirm({ diff --git a/src/app/showcase/doc/confirmpopup/headlessdoc.ts b/src/app/showcase/doc/confirmpopup/headlessdoc.ts index 2094bb5aad8..0e699a378ec 100644 --- a/src/app/showcase/doc/confirmpopup/headlessdoc.ts +++ b/src/app/showcase/doc/confirmpopup/headlessdoc.ts @@ -28,7 +28,10 @@ import { ConfirmPopup } from 'primeng/confirmpopup'; providers: [ConfirmationService, MessageService] }) export class HeadlessDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} @ViewChild(ConfirmPopup) confirmPopup!: ConfirmPopup; diff --git a/src/app/showcase/doc/confirmpopup/templatedoc.ts b/src/app/showcase/doc/confirmpopup/templatedoc.ts index 94967bbc49f..ea13c58805e 100644 --- a/src/app/showcase/doc/confirmpopup/templatedoc.ts +++ b/src/app/showcase/doc/confirmpopup/templatedoc.ts @@ -25,7 +25,10 @@ import { Code } from '@domain/code'; providers: [ConfirmationService, MessageService] }) export class TemplateDoc { - constructor(private confirmationService: ConfirmationService, private messageService: MessageService) {} + constructor( + private confirmationService: ConfirmationService, + private messageService: MessageService + ) {} confirm(event: Event) { this.confirmationService.confirm({ diff --git a/src/app/showcase/doc/defer/datatabledoc.ts b/src/app/showcase/doc/defer/datatabledoc.ts index 4f6a5fffd04..78be71b545d 100644 --- a/src/app/showcase/doc/defer/datatabledoc.ts +++ b/src/app/showcase/doc/defer/datatabledoc.ts @@ -44,7 +44,10 @@ import { CarService } from '@service/carservice'; export class DataTableDoc { cars: Car[] | undefined; - constructor(private carService: CarService, private messageService: MessageService) {} + constructor( + private carService: CarService, + private messageService: MessageService + ) {} initData() { this.messageService.add({ severity: 'success', summary: 'Data Initialized', detail: 'Render Completed' }); diff --git a/src/app/showcase/doc/dock/advanceddoc.ts b/src/app/showcase/doc/dock/advanceddoc.ts index ce0d1c09ad3..c6987ba0739 100644 --- a/src/app/showcase/doc/dock/advanceddoc.ts +++ b/src/app/showcase/doc/dock/advanceddoc.ts @@ -87,7 +87,12 @@ export class AdvancedDoc implements OnInit, OnDestroy { subscription: Subscription | undefined; - constructor(private galleriaService: PhotoService, private nodeService: NodeService, private messageService: MessageService, private terminalService: TerminalService) {} + constructor( + private galleriaService: PhotoService, + private nodeService: NodeService, + private messageService: MessageService, + private terminalService: TerminalService + ) {} ngOnInit() { this.dockItems = [ diff --git a/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts b/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts index 9e402b7e65c..8cc42685c3b 100644 --- a/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts +++ b/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts @@ -41,17 +41,20 @@ export class LazyVirtualScrollDoc { } //imitate delay of a backend call - this.loadLazyTimeout = setTimeout(() => { - const { first, last } = event; - const items = [...this.items]; - - for (let i = first; i < last; i++) { - items[i] = { label: `Item #${i}`, value: i }; - } - - this.items = items; - this.loading = false; - }, Math.random() * 1000 + 250); + this.loadLazyTimeout = setTimeout( + () => { + const { first, last } = event; + const items = [...this.items]; + + for (let i = first; i < last; i++) { + items[i] = { label: `Item #${i}`, value: i }; + } + + this.items = items; + this.loading = false; + }, + Math.random() * 1000 + 250 + ); } code: Code = { diff --git a/src/app/showcase/doc/dynamicdialog/closedoc.ts b/src/app/showcase/doc/dynamicdialog/closedoc.ts index 28ce08288a7..c12edc28f35 100644 --- a/src/app/showcase/doc/dynamicdialog/closedoc.ts +++ b/src/app/showcase/doc/dynamicdialog/closedoc.ts @@ -19,7 +19,10 @@ import { ProductListDemo } from './productlistdemo'; providers: [DialogService, MessageService] }) export class CloseDoc { - constructor(public dialogService: DialogService, public messageService: MessageService) {} + constructor( + public dialogService: DialogService, + public messageService: MessageService + ) {} ref: DynamicDialogRef | undefined; diff --git a/src/app/showcase/doc/dynamicdialog/exampledoc.ts b/src/app/showcase/doc/dynamicdialog/exampledoc.ts index 67e6c96745d..3d99288fa42 100644 --- a/src/app/showcase/doc/dynamicdialog/exampledoc.ts +++ b/src/app/showcase/doc/dynamicdialog/exampledoc.ts @@ -23,7 +23,10 @@ import { Footer } from './footer'; providers: [DialogService, MessageService] }) export class ExampleDoc implements OnDestroy { - constructor(public dialogService: DialogService, public messageService: MessageService) {} + constructor( + public dialogService: DialogService, + public messageService: MessageService + ) {} ref: DynamicDialogRef | undefined; diff --git a/src/app/showcase/doc/dynamicdialog/infodemo.ts b/src/app/showcase/doc/dynamicdialog/infodemo.ts index 5b5a7d1f331..c01841b293a 100644 --- a/src/app/showcase/doc/dynamicdialog/infodemo.ts +++ b/src/app/showcase/doc/dynamicdialog/infodemo.ts @@ -18,7 +18,10 @@ export class InfoDemo implements OnInit { instance: DynamicDialogComponent | undefined; - constructor(public ref: DynamicDialogRef, private dialogService: DialogService) { + constructor( + public ref: DynamicDialogRef, + private dialogService: DialogService + ) { this.instance = this.dialogService.getInstance(this.ref); } diff --git a/src/app/showcase/doc/dynamicdialog/productlistdemo.ts b/src/app/showcase/doc/dynamicdialog/productlistdemo.ts index faedc807683..501fab8aa4c 100755 --- a/src/app/showcase/doc/dynamicdialog/productlistdemo.ts +++ b/src/app/showcase/doc/dynamicdialog/productlistdemo.ts @@ -37,7 +37,11 @@ import { InfoDemo } from './infodemo'; export class ProductListDemo implements OnInit { products: Product[]; - constructor(private productService: ProductService, private dialogService: DialogService, private ref: DynamicDialogRef) {} + constructor( + private productService: ProductService, + private dialogService: DialogService, + private ref: DynamicDialogRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((products) => (this.products = products.slice(0, 5))); diff --git a/src/app/showcase/doc/fileupload/templatedoc.ts b/src/app/showcase/doc/fileupload/templatedoc.ts index e2b5bd02458..4f85f3a7559 100644 --- a/src/app/showcase/doc/fileupload/templatedoc.ts +++ b/src/app/showcase/doc/fileupload/templatedoc.ts @@ -77,7 +77,10 @@ export class TemplateDoc { totalSizePercent: number = 0; - constructor(private config: PrimeNGConfig, private messageService: MessageService) {} + constructor( + private config: PrimeNGConfig, + private messageService: MessageService + ) {} choose(event, callback) { callback(); diff --git a/src/app/showcase/doc/filterservice/tableintegrationdoc.ts b/src/app/showcase/doc/filterservice/tableintegrationdoc.ts index 3266372513e..fffcffe47a6 100644 --- a/src/app/showcase/doc/filterservice/tableintegrationdoc.ts +++ b/src/app/showcase/doc/filterservice/tableintegrationdoc.ts @@ -40,7 +40,10 @@ export class TableIntegrationDoc implements OnInit { matchModeOptions: SelectItem[]; - constructor(private carService: CarService, private filterService: FilterService) {} + constructor( + private carService: CarService, + private filterService: FilterService + ) {} ngOnInit() { const customFilterName = 'custom-equals'; diff --git a/src/app/showcase/doc/galleria/advanceddoc.ts b/src/app/showcase/doc/galleria/advanceddoc.ts index 99da6cbd4b4..2102a77a52b 100644 --- a/src/app/showcase/doc/galleria/advanceddoc.ts +++ b/src/app/showcase/doc/galleria/advanceddoc.ts @@ -62,7 +62,11 @@ export class AdvancedDoc implements OnInit, OnDestroy { @ViewChild('galleria') galleria: Galleria | undefined; - constructor(@Inject(PLATFORM_ID) private platformId: any, private photoService: PhotoService, private cd: ChangeDetectorRef) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private photoService: PhotoService, + private cd: ChangeDetectorRef + ) {} responsiveOptions: any[] = [ { diff --git a/src/app/showcase/doc/orderlist/basicdoc.ts b/src/app/showcase/doc/orderlist/basicdoc.ts index 6a1c260041f..04150f4f144 100644 --- a/src/app/showcase/doc/orderlist/basicdoc.ts +++ b/src/app/showcase/doc/orderlist/basicdoc.ts @@ -32,7 +32,10 @@ import { ProductService } from '@service/productservice'; export class BasicDoc implements OnInit { products!: Product[]; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((cars) => { diff --git a/src/app/showcase/doc/orderlist/dragdropdoc.ts b/src/app/showcase/doc/orderlist/dragdropdoc.ts index 2998e49fb55..4a8e0e36cd0 100644 --- a/src/app/showcase/doc/orderlist/dragdropdoc.ts +++ b/src/app/showcase/doc/orderlist/dragdropdoc.ts @@ -32,7 +32,10 @@ import { ProductService } from '@service/productservice'; export class DragDropDoc implements OnInit { products!: Product[]; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((cars) => { diff --git a/src/app/showcase/doc/orderlist/filterdoc.ts b/src/app/showcase/doc/orderlist/filterdoc.ts index 763b9425f7b..ee70d82217c 100644 --- a/src/app/showcase/doc/orderlist/filterdoc.ts +++ b/src/app/showcase/doc/orderlist/filterdoc.ts @@ -32,7 +32,10 @@ import { ProductService } from '@service/productservice'; export class FilterDoc implements OnInit { products!: Product[]; - constructor(private productService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.productService.getProductsSmall().then((cars) => { diff --git a/src/app/showcase/doc/overlaypanel/datatabledoc.ts b/src/app/showcase/doc/overlaypanel/datatabledoc.ts index 5bfa3e177a7..fbaca20ba0c 100644 --- a/src/app/showcase/doc/overlaypanel/datatabledoc.ts +++ b/src/app/showcase/doc/overlaypanel/datatabledoc.ts @@ -57,7 +57,11 @@ interface TableRowSelectEvent { providers: [MessageService] }) export class DataTableDoc implements OnInit { - constructor(private productService: ProductService, private messageService: MessageService, private cdr: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private cdr: ChangeDetectorRef + ) {} products: Product[] | undefined; diff --git a/src/app/showcase/doc/picklist/basicdoc.ts b/src/app/showcase/doc/picklist/basicdoc.ts index 24a8c9065b3..291b4ff4e93 100644 --- a/src/app/showcase/doc/picklist/basicdoc.ts +++ b/src/app/showcase/doc/picklist/basicdoc.ts @@ -47,7 +47,10 @@ export class BasicDoc { targetProducts!: Product[]; - constructor(private carService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private carService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.carService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/picklist/filterdoc.ts b/src/app/showcase/doc/picklist/filterdoc.ts index e16dd8fc024..be46d8afc20 100644 --- a/src/app/showcase/doc/picklist/filterdoc.ts +++ b/src/app/showcase/doc/picklist/filterdoc.ts @@ -47,7 +47,10 @@ export class FilterDoc { targetProducts!: Product[]; - constructor(private carService: ProductService, private cdr: ChangeDetectorRef) {} + constructor( + private carService: ProductService, + private cdr: ChangeDetectorRef + ) {} ngOnInit() { this.carService.getProductsSmall().then((products) => { diff --git a/src/app/showcase/doc/progressbar/dynamicdoc.ts b/src/app/showcase/doc/progressbar/dynamicdoc.ts index 7133212c918..16cbbae3975 100644 --- a/src/app/showcase/doc/progressbar/dynamicdoc.ts +++ b/src/app/showcase/doc/progressbar/dynamicdoc.ts @@ -21,7 +21,11 @@ export class DynamicDoc implements OnInit, OnDestroy { interval: any; - constructor(private messageService: MessageService, private cd: ChangeDetectorRef, private ngZone: NgZone) {} + constructor( + private messageService: MessageService, + private cd: ChangeDetectorRef, + private ngZone: NgZone + ) {} ngOnInit() { this.ngZone.runOutsideAngular(() => { diff --git a/src/app/showcase/doc/scroller/lazyloaddoc.ts b/src/app/showcase/doc/scroller/lazyloaddoc.ts index daeb31ce74e..0be7d6ca312 100644 --- a/src/app/showcase/doc/scroller/lazyloaddoc.ts +++ b/src/app/showcase/doc/scroller/lazyloaddoc.ts @@ -47,18 +47,21 @@ export class LazyLoadDoc { } //imitate delay of a backend call - this.loadLazyTimeout = setTimeout(() => { - const { first, last } = event; - const lazyItems = [...this.items]; - - for (let i = first; i < last; i++) { - lazyItems[i] = `Item #${i}`; - } - - this.items = lazyItems; - this.lazyLoading = false; - this.cd.markForCheck(); - }, Math.random() * 1000 + 250); + this.loadLazyTimeout = setTimeout( + () => { + const { first, last } = event; + const lazyItems = [...this.items]; + + for (let i = first; i < last; i++) { + lazyItems[i] = `Item #${i}`; + } + + this.items = lazyItems; + this.lazyLoading = false; + this.cd.markForCheck(); + }, + Math.random() * 1000 + 250 + ); } code: Code = { diff --git a/src/app/showcase/doc/steps/confirmationdemo.ts b/src/app/showcase/doc/steps/confirmationdemo.ts index 9faae6296f5..9ff5350a878 100644 --- a/src/app/showcase/doc/steps/confirmationdemo.ts +++ b/src/app/showcase/doc/steps/confirmationdemo.ts @@ -59,7 +59,10 @@ import { Router } from '@angular/router'; export class ConfirmationDemo implements OnInit { ticketInformation: any; - constructor(public ticketService: TicketService, private router: Router) {} + constructor( + public ticketService: TicketService, + private router: Router + ) {} ngOnInit() { this.ticketInformation = this.ticketService.ticketInformation; diff --git a/src/app/showcase/doc/steps/paymentdemo.ts b/src/app/showcase/doc/steps/paymentdemo.ts index 1dd8aae28a6..b33842b8503 100644 --- a/src/app/showcase/doc/steps/paymentdemo.ts +++ b/src/app/showcase/doc/steps/paymentdemo.ts @@ -45,7 +45,10 @@ import { Router } from '@angular/router'; export class PaymentDemo implements OnInit { paymentInformation: any; - constructor(public ticketService: TicketService, private router: Router) {} + constructor( + public ticketService: TicketService, + private router: Router + ) {} ngOnInit() { this.paymentInformation = this.ticketService.ticketInformation.paymentInformation; diff --git a/src/app/showcase/doc/steps/personaldemo.ts b/src/app/showcase/doc/steps/personaldemo.ts index acc893dfc30..2094301f6df 100644 --- a/src/app/showcase/doc/steps/personaldemo.ts +++ b/src/app/showcase/doc/steps/personaldemo.ts @@ -49,7 +49,10 @@ export class PersonalDemo implements OnInit { submitted: boolean = false; - constructor(public ticketService: TicketService, private router: Router) {} + constructor( + public ticketService: TicketService, + private router: Router + ) {} ngOnInit() { this.personalInformation = this.ticketService.getTicketInformation().personalInformation; diff --git a/src/app/showcase/doc/steps/routingdoc.ts b/src/app/showcase/doc/steps/routingdoc.ts index 9043cf4224b..7dd1a34395e 100644 --- a/src/app/showcase/doc/steps/routingdoc.ts +++ b/src/app/showcase/doc/steps/routingdoc.ts @@ -24,7 +24,10 @@ export class RoutingDoc implements OnInit { subscription: Subscription; - constructor(public messageService: MessageService, public ticketService: TicketService) {} + constructor( + public messageService: MessageService, + public ticketService: TicketService + ) {} ngOnInit() { this.items = [ diff --git a/src/app/showcase/doc/steps/seatdemo.ts b/src/app/showcase/doc/steps/seatdemo.ts index d88c01e4377..fd65bd1d8b2 100644 --- a/src/app/showcase/doc/steps/seatdemo.ts +++ b/src/app/showcase/doc/steps/seatdemo.ts @@ -35,7 +35,10 @@ import { Router } from '@angular/router'; ` }) export class SeatDemo implements OnInit { - constructor(public ticketService: TicketService, private router: Router) {} + constructor( + public ticketService: TicketService, + private router: Router + ) {} classes: any[]; diff --git a/src/app/showcase/doc/table/basicdoc.ts b/src/app/showcase/doc/table/basicdoc.ts index afc59a0279d..d1112436935 100644 --- a/src/app/showcase/doc/table/basicdoc.ts +++ b/src/app/showcase/doc/table/basicdoc.ts @@ -35,7 +35,10 @@ import { ProductService } from '@service/productservice'; export class BasicDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/celleditdoc.ts b/src/app/showcase/doc/table/celleditdoc.ts index 1f4777bbb15..49833065cf7 100644 --- a/src/app/showcase/doc/table/celleditdoc.ts +++ b/src/app/showcase/doc/table/celleditdoc.ts @@ -57,7 +57,7 @@ import { ProductService } from '@service/productservice'; - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} @@ -72,7 +72,10 @@ import { ProductService } from '@service/productservice'; export class CellEditDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/checkboxselectiondoc.ts b/src/app/showcase/doc/table/checkboxselectiondoc.ts index ca806606b3c..b4e987ded0b 100644 --- a/src/app/showcase/doc/table/checkboxselectiondoc.ts +++ b/src/app/showcase/doc/table/checkboxselectiondoc.ts @@ -44,7 +44,10 @@ export class CheckboxSelectionDoc { selectedProducts!: Product; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/columngroupdoc.ts b/src/app/showcase/doc/table/columngroupdoc.ts index ed970295ef4..f087e254a9d 100644 --- a/src/app/showcase/doc/table/columngroupdoc.ts +++ b/src/app/showcase/doc/table/columngroupdoc.ts @@ -30,15 +30,15 @@ import { Code } from '@domain/code'; {{ sale.product }} {{ sale.lastYearSale }}% {{ sale.thisYearSale }}% - {{ sale.lastYearProfit | currency : 'USD' }} - {{ sale.thisYearProfit | currency : 'USD' }} + {{ sale.lastYearProfit | currency: 'USD' }} + {{ sale.thisYearProfit | currency: 'USD' }} Totals - {{ lastYearTotal | currency : 'USD' }} - {{ thisYearTotal | currency : 'USD' }} + {{ lastYearTotal | currency: 'USD' }} + {{ thisYearTotal | currency: 'USD' }} diff --git a/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts b/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts index 3182c46de68..d2b8e348576 100644 --- a/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts +++ b/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts @@ -36,7 +36,10 @@ import { ProductService } from '@service/productservice'; export class ColumnResizeExpandModeDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/columnresizefitmodedoc.ts b/src/app/showcase/doc/table/columnresizefitmodedoc.ts index 0da94df7bdf..7e350b96d0b 100644 --- a/src/app/showcase/doc/table/columnresizefitmodedoc.ts +++ b/src/app/showcase/doc/table/columnresizefitmodedoc.ts @@ -36,7 +36,10 @@ import { ProductService } from '@service/productservice'; export class ColumnResizeFitModeDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts b/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts index cf1b113923f..971659b475a 100644 --- a/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts +++ b/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts @@ -33,7 +33,10 @@ import { CustomerService } from '@service/customerservice'; export class ColumnResizeScrollableModeDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/columnselectiondoc.ts b/src/app/showcase/doc/table/columnselectiondoc.ts index 6f28c4215eb..60cb04757e5 100644 --- a/src/app/showcase/doc/table/columnselectiondoc.ts +++ b/src/app/showcase/doc/table/columnselectiondoc.ts @@ -45,7 +45,11 @@ export class ColumnSelectionDoc { selectedProduct!: Product; - constructor(private productService: ProductService, private messageService: MessageService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/contextmenudoc.ts b/src/app/showcase/doc/table/contextmenudoc.ts index 4390336f57b..487ffdd7fc0 100644 --- a/src/app/showcase/doc/table/contextmenudoc.ts +++ b/src/app/showcase/doc/table/contextmenudoc.ts @@ -30,7 +30,7 @@ import { ProductService } from '@service/productservice'; {{ product.code }} {{ product.name }} {{ product.category }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} @@ -47,7 +47,11 @@ export class ContextMenuDoc { items!: MenuItem[]; - constructor(private productService: ProductService, private messageService: MessageService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/controlledselectiondoc.ts b/src/app/showcase/doc/table/controlledselectiondoc.ts index 8caf427c7d9..70edc602929 100644 --- a/src/app/showcase/doc/table/controlledselectiondoc.ts +++ b/src/app/showcase/doc/table/controlledselectiondoc.ts @@ -44,7 +44,10 @@ export class ControlledSelectionDoc { selectedProducts!: Product; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) { + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) { this.isRowSelectable = this.isRowSelectable.bind(this); } diff --git a/src/app/showcase/doc/table/customersdoc.ts b/src/app/showcase/doc/table/customersdoc.ts index 4d1c856deaa..c46750f4986 100644 --- a/src/app/showcase/doc/table/customersdoc.ts +++ b/src/app/showcase/doc/table/customersdoc.ts @@ -147,11 +147,11 @@ import { Table } from 'primeng/table'; Date - {{ customer.date | date : 'MM/dd/yyyy' }} + {{ customer.date | date: 'MM/dd/yyyy' }} Balance - {{ customer.balance | currency : 'USD' : 'symbol' }} + {{ customer.balance | currency: 'USD' : 'symbol' }} Status @@ -192,7 +192,10 @@ export class CustomersDoc { searchValue: string | undefined; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/customsortdoc.ts b/src/app/showcase/doc/table/customsortdoc.ts index 7c56b715a9a..dae81a6ce8d 100644 --- a/src/app/showcase/doc/table/customsortdoc.ts +++ b/src/app/showcase/doc/table/customsortdoc.ts @@ -30,7 +30,7 @@ import { ProductService } from '@service/productservice'; {{ product.name }} {{ product.category }} {{ product.quantity }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} @@ -42,7 +42,10 @@ import { ProductService } from '@service/productservice'; export class CustomSortDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/dynamicdoc.ts b/src/app/showcase/doc/table/dynamicdoc.ts index 5b3696a71aa..8abcf42e970 100644 --- a/src/app/showcase/doc/table/dynamicdoc.ts +++ b/src/app/showcase/doc/table/dynamicdoc.ts @@ -40,7 +40,10 @@ export class DynamicDoc { cols!: Column[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/expandablerowgroupdoc.ts b/src/app/showcase/doc/table/expandablerowgroupdoc.ts index e139e52a189..e16913c452c 100644 --- a/src/app/showcase/doc/table/expandablerowgroupdoc.ts +++ b/src/app/showcase/doc/table/expandablerowgroupdoc.ts @@ -64,7 +64,10 @@ import { CustomerService } from '@service/customerservice'; export class ExpandableRowGroupDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/exportdoc.ts b/src/app/showcase/doc/table/exportdoc.ts index 60f50fb4ee0..d066856a8e7 100644 --- a/src/app/showcase/doc/table/exportdoc.ts +++ b/src/app/showcase/doc/table/exportdoc.ts @@ -52,7 +52,10 @@ export class ExportDoc { selectedProducts!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} cols!: Column[]; diff --git a/src/app/showcase/doc/table/filteradvanceddoc.ts b/src/app/showcase/doc/table/filteradvanceddoc.ts index 0f33ebac7ef..d550da02d4e 100644 --- a/src/app/showcase/doc/table/filteradvanceddoc.ts +++ b/src/app/showcase/doc/table/filteradvanceddoc.ts @@ -119,10 +119,10 @@ import { CustomerService } from '../../service/customerservice'; {{ customer.representative.name }} - {{ customer.date | date : 'MM/dd/yyyy' }} + {{ customer.date | date: 'MM/dd/yyyy' }} - {{ customer.balance | currency : 'USD' : 'symbol' }} + {{ customer.balance | currency: 'USD' : 'symbol' }} @@ -159,7 +159,10 @@ export class FilterAdvancedDoc { activityValues: number[] = [0, 100]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/filterbasic.ts b/src/app/showcase/doc/table/filterbasic.ts index 76991d3cee1..07e417d3def 100644 --- a/src/app/showcase/doc/table/filterbasic.ts +++ b/src/app/showcase/doc/table/filterbasic.ts @@ -124,7 +124,10 @@ export class FilterBasicDoc { activityValues: number[] = [0, 100]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/filtersorteditdoc.ts b/src/app/showcase/doc/table/filtersorteditdoc.ts index f3aab7644a7..70793909185 100644 --- a/src/app/showcase/doc/table/filtersorteditdoc.ts +++ b/src/app/showcase/doc/table/filtersorteditdoc.ts @@ -71,7 +71,7 @@ import { ProductService } from '@service/productservice'; - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} @@ -94,7 +94,10 @@ import { ProductService } from '@service/productservice'; export class FilterSortEditDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/flexiblescrolldoc.ts b/src/app/showcase/doc/table/flexiblescrolldoc.ts index c09c24446e2..aaf8abc7181 100644 --- a/src/app/showcase/doc/table/flexiblescrolldoc.ts +++ b/src/app/showcase/doc/table/flexiblescrolldoc.ts @@ -49,7 +49,10 @@ export class FlexibleScrollDoc { dialogVisible: boolean = false; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/frozencolumnsdoc.ts b/src/app/showcase/doc/table/frozencolumnsdoc.ts index e76f1e59270..b0ff2732365 100644 --- a/src/app/showcase/doc/table/frozencolumnsdoc.ts +++ b/src/app/showcase/doc/table/frozencolumnsdoc.ts @@ -50,7 +50,10 @@ export class FrozenColumnsDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/frozenrowsdoc.ts b/src/app/showcase/doc/table/frozenrowsdoc.ts index 4f167436390..8cb188e21e1 100644 --- a/src/app/showcase/doc/table/frozenrowsdoc.ts +++ b/src/app/showcase/doc/table/frozenrowsdoc.ts @@ -53,7 +53,10 @@ export class FrozenRowsDoc { lockedCustomers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/gridlinesdoc.ts b/src/app/showcase/doc/table/gridlinesdoc.ts index df3c71e0132..44706dd7754 100644 --- a/src/app/showcase/doc/table/gridlinesdoc.ts +++ b/src/app/showcase/doc/table/gridlinesdoc.ts @@ -36,7 +36,10 @@ import { ProductService } from '@service/productservice'; export class GridlinesDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/horizontalscrolldoc.ts b/src/app/showcase/doc/table/horizontalscrolldoc.ts index eb3137edf89..c107920a531 100644 --- a/src/app/showcase/doc/table/horizontalscrolldoc.ts +++ b/src/app/showcase/doc/table/horizontalscrolldoc.ts @@ -59,7 +59,10 @@ import { CustomerService } from '@service/customerservice'; export class HorizontalScrollDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/lazyloaddoc.ts b/src/app/showcase/doc/table/lazyloaddoc.ts index e33eb616fc2..88b2ed7b622 100644 --- a/src/app/showcase/doc/table/lazyloaddoc.ts +++ b/src/app/showcase/doc/table/lazyloaddoc.ts @@ -98,7 +98,10 @@ export class LazyLoadDoc implements OnInit { selectedCustomers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} ngOnInit() { this.loading = true; diff --git a/src/app/showcase/doc/table/multiplecolumnssortdoc.ts b/src/app/showcase/doc/table/multiplecolumnssortdoc.ts index e071c983e81..d9b0bfe5e97 100644 --- a/src/app/showcase/doc/table/multiplecolumnssortdoc.ts +++ b/src/app/showcase/doc/table/multiplecolumnssortdoc.ts @@ -38,7 +38,10 @@ import { ProductService } from '@service/productservice'; export class MultipleColumnsSortDoc { products: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/multipleselectiondoc.ts b/src/app/showcase/doc/table/multipleselectiondoc.ts index 4ba9331a501..0089b72a4e5 100644 --- a/src/app/showcase/doc/table/multipleselectiondoc.ts +++ b/src/app/showcase/doc/table/multipleselectiondoc.ts @@ -47,7 +47,10 @@ export class MultipleSelectionDoc { metaKey: boolean = true; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/pageonlyselectiondoc.ts b/src/app/showcase/doc/table/pageonlyselectiondoc.ts index 9233b987d42..66a94762656 100644 --- a/src/app/showcase/doc/table/pageonlyselectiondoc.ts +++ b/src/app/showcase/doc/table/pageonlyselectiondoc.ts @@ -41,7 +41,10 @@ export class PageOnlySelectionDoc { selectedProducts!: Product; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/paginatorbasicdoc.ts b/src/app/showcase/doc/table/paginatorbasicdoc.ts index e4abc0dccb9..52f72a8e7c9 100644 --- a/src/app/showcase/doc/table/paginatorbasicdoc.ts +++ b/src/app/showcase/doc/table/paginatorbasicdoc.ts @@ -39,7 +39,10 @@ import { CustomerService } from '@service/customerservice'; export class PaginatorBasicDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/paginatorlocaledoc.ts b/src/app/showcase/doc/table/paginatorlocaledoc.ts index 2eb877e5b29..51448295df3 100644 --- a/src/app/showcase/doc/table/paginatorlocaledoc.ts +++ b/src/app/showcase/doc/table/paginatorlocaledoc.ts @@ -51,7 +51,10 @@ import { CustomerService } from '@service/customerservice'; export class PaginatorLocaleDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts b/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts index f25e9832854..0d55200c065 100644 --- a/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts +++ b/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts @@ -57,7 +57,10 @@ export class PaginatorProgrammaticDoc { rows = 10; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersLarge().then((customers) => { diff --git a/src/app/showcase/doc/table/presortdoc.ts b/src/app/showcase/doc/table/presortdoc.ts index 778a220aad7..ba3d928dd53 100644 --- a/src/app/showcase/doc/table/presortdoc.ts +++ b/src/app/showcase/doc/table/presortdoc.ts @@ -27,7 +27,7 @@ import { ProductService } from '@service/productservice'; {{ product.code }} {{ product.name }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} {{ product.category }} {{ product.quantity }} @@ -41,7 +41,10 @@ import { ProductService } from '@service/productservice'; export class PreSortDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/productsdoc.ts b/src/app/showcase/doc/table/productsdoc.ts index c168322a5a2..91cfb7043e8 100644 --- a/src/app/showcase/doc/table/productsdoc.ts +++ b/src/app/showcase/doc/table/productsdoc.ts @@ -67,7 +67,7 @@ import { ProductService } from '@service/productservice'; {{ product.name }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} {{ product.category }} @@ -169,7 +169,12 @@ export class ProductsDoc { statuses!: any[]; - constructor(private productService: ProductService, private messageService: MessageService, private confirmationService: ConfirmationService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private confirmationService: ConfirmationService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProducts().then((data) => { diff --git a/src/app/showcase/doc/table/radiobuttonselectiondoc.ts b/src/app/showcase/doc/table/radiobuttonselectiondoc.ts index 2c6d617e566..5c888388e0e 100644 --- a/src/app/showcase/doc/table/radiobuttonselectiondoc.ts +++ b/src/app/showcase/doc/table/radiobuttonselectiondoc.ts @@ -42,7 +42,10 @@ export class RadioButtonSelectionDoc { selectedProduct!: Product; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/reorderdoc.ts b/src/app/showcase/doc/table/reorderdoc.ts index 4d74ec47261..6123cbd0b46 100644 --- a/src/app/showcase/doc/table/reorderdoc.ts +++ b/src/app/showcase/doc/table/reorderdoc.ts @@ -49,7 +49,10 @@ export class ReorderDoc { cols!: Column[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/responsivescrolldoc.ts b/src/app/showcase/doc/table/responsivescrolldoc.ts index ac9ac696e04..468ddb5fdc1 100644 --- a/src/app/showcase/doc/table/responsivescrolldoc.ts +++ b/src/app/showcase/doc/table/responsivescrolldoc.ts @@ -30,7 +30,7 @@ interface Column { {{ product.name }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} {{ product.category }} {{ product.quantity }} @@ -50,7 +50,10 @@ export class ResponsiveScrollDoc { cols!: Column[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/responsivestackdoc.ts b/src/app/showcase/doc/table/responsivestackdoc.ts index b40137716a3..2e7aa4895a9 100644 --- a/src/app/showcase/doc/table/responsivestackdoc.ts +++ b/src/app/showcase/doc/table/responsivestackdoc.ts @@ -32,7 +32,7 @@ interface Column { Name{{ product.name }} - Price{{ product.price | currency : 'USD' }} + Price{{ product.price | currency: 'USD' }} Category{{ product.category }} Quantity{{ product.quantity }} @@ -50,7 +50,10 @@ export class ResponsiveStackDoc { cols!: Column[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/roweditdoc.ts b/src/app/showcase/doc/table/roweditdoc.ts index 266792b83b5..1226e3afec2 100644 --- a/src/app/showcase/doc/table/roweditdoc.ts +++ b/src/app/showcase/doc/table/roweditdoc.ts @@ -72,7 +72,7 @@ import { ProductService } from '@service/productservice'; - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} @@ -99,7 +99,11 @@ export class RowEditDoc { clonedProducts: { [s: string]: Product } = {}; - constructor(private productService: ProductService, private messageService: MessageService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/rowexpansiondoc.ts b/src/app/showcase/doc/table/rowexpansiondoc.ts index bcd8fe4311f..7c884e7cdd0 100644 --- a/src/app/showcase/doc/table/rowexpansiondoc.ts +++ b/src/app/showcase/doc/table/rowexpansiondoc.ts @@ -42,7 +42,7 @@ import { TableRowCollapseEvent, TableRowExpandEvent } from 'primeng/table'; {{ product.name }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} {{ product.category }} @@ -70,7 +70,7 @@ import { TableRowCollapseEvent, TableRowExpandEvent } from 'primeng/table'; {{ order.id }} {{ order.customer }} {{ order.date }} - {{ order.amount | currency : 'USD' }} + {{ order.amount | currency: 'USD' }} @@ -99,7 +99,11 @@ export class RowExpansionDoc { expandedRows = {}; - constructor(private productService: ProductService, private cd: ChangeDetectorRef, private messageService: MessageService) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef, + private messageService: MessageService + ) {} loadDemoData() { this.productService.getProductsWithOrdersSmall().then((data) => { diff --git a/src/app/showcase/doc/table/rowspangroupingdoc.ts b/src/app/showcase/doc/table/rowspangroupingdoc.ts index 290014783c1..3ab7e2a3966 100644 --- a/src/app/showcase/doc/table/rowspangroupingdoc.ts +++ b/src/app/showcase/doc/table/rowspangroupingdoc.ts @@ -56,7 +56,10 @@ import { CustomerService } from '@service/customerservice'; export class RowspanGroupingDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/selectioneventsdoc.ts b/src/app/showcase/doc/table/selectioneventsdoc.ts index 14017cf577f..21119f4703f 100644 --- a/src/app/showcase/doc/table/selectioneventsdoc.ts +++ b/src/app/showcase/doc/table/selectioneventsdoc.ts @@ -41,7 +41,11 @@ export class SelectionEventsDoc { selectedProduct!: Product; - constructor(private productService: ProductService, private messageService: MessageService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private messageService: MessageService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/singlecolumnsortdoc.ts b/src/app/showcase/doc/table/singlecolumnsortdoc.ts index 65e94e6e042..d2ac6400ef1 100644 --- a/src/app/showcase/doc/table/singlecolumnsortdoc.ts +++ b/src/app/showcase/doc/table/singlecolumnsortdoc.ts @@ -40,7 +40,10 @@ import { ProductService } from '@service/productservice'; export class SingleColumnSortDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/singleselectiondoc.ts b/src/app/showcase/doc/table/singleselectiondoc.ts index e9e290a077f..7dd8f37d26e 100644 --- a/src/app/showcase/doc/table/singleselectiondoc.ts +++ b/src/app/showcase/doc/table/singleselectiondoc.ts @@ -51,7 +51,10 @@ export class SingleSelectionDoc { metaKey: boolean = true; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/sizedoc.ts b/src/app/showcase/doc/table/sizedoc.ts index 33781c3446d..f6d9ad1e527 100644 --- a/src/app/showcase/doc/table/sizedoc.ts +++ b/src/app/showcase/doc/table/sizedoc.ts @@ -43,7 +43,10 @@ export class SizeDoc { selectedSize: any = ''; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/statefuldoc.ts b/src/app/showcase/doc/table/statefuldoc.ts index e1d18c9bbf5..ce5455fa919 100644 --- a/src/app/showcase/doc/table/statefuldoc.ts +++ b/src/app/showcase/doc/table/statefuldoc.ts @@ -103,7 +103,10 @@ export class StatefulDoc { selectedCustomers!: Customer; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMini().then((data) => { diff --git a/src/app/showcase/doc/table/stripeddoc.ts b/src/app/showcase/doc/table/stripeddoc.ts index acaf93ab987..d711090a6b1 100644 --- a/src/app/showcase/doc/table/stripeddoc.ts +++ b/src/app/showcase/doc/table/stripeddoc.ts @@ -36,7 +36,10 @@ import { ProductService } from '@service/productservice'; export class StripedDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/styledoc.ts b/src/app/showcase/doc/table/styledoc.ts index c44ca09e885..5a9c52c432a 100644 --- a/src/app/showcase/doc/table/styledoc.ts +++ b/src/app/showcase/doc/table/styledoc.ts @@ -63,7 +63,10 @@ import { ProductService } from '@service/productservice'; export class StyleDoc { products!: Product[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/subheadergroupingdoc.ts b/src/app/showcase/doc/table/subheadergroupingdoc.ts index 925a5db1806..3262ef855c4 100644 --- a/src/app/showcase/doc/table/subheadergroupingdoc.ts +++ b/src/app/showcase/doc/table/subheadergroupingdoc.ts @@ -65,7 +65,10 @@ import { CustomerService } from '@service/customerservice'; export class SubheaderGroupingDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/templatedoc.ts b/src/app/showcase/doc/table/templatedoc.ts index d799b51e1b1..1bcefd2777a 100644 --- a/src/app/showcase/doc/table/templatedoc.ts +++ b/src/app/showcase/doc/table/templatedoc.ts @@ -36,7 +36,7 @@ interface Column { {{ product.name }} - {{ product.price | currency : 'USD' }} + {{ product.price | currency: 'USD' }} {{ product.category }} @@ -58,7 +58,10 @@ export class TemplateDoc { cols!: Column[]; - constructor(private productService: ProductService, private cd: ChangeDetectorRef) {} + constructor( + private productService: ProductService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.productService.getProductsMini().then((data) => { diff --git a/src/app/showcase/doc/table/verticalscrolldoc.ts b/src/app/showcase/doc/table/verticalscrolldoc.ts index 543b0fa7015..fbe740123a8 100644 --- a/src/app/showcase/doc/table/verticalscrolldoc.ts +++ b/src/app/showcase/doc/table/verticalscrolldoc.ts @@ -36,7 +36,10 @@ import { CustomerService } from '@service/customerservice'; export class VerticalScrollDoc { customers!: Customer[]; - constructor(private customerService: CustomerService, private cd: ChangeDetectorRef) {} + constructor( + private customerService: CustomerService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.customerService.getCustomersMedium().then((data) => { diff --git a/src/app/showcase/doc/table/virtualscrolllazydoc.ts b/src/app/showcase/doc/table/virtualscrolllazydoc.ts index a0894a1bef7..19f75451961 100644 --- a/src/app/showcase/doc/table/virtualscrolllazydoc.ts +++ b/src/app/showcase/doc/table/virtualscrolllazydoc.ts @@ -71,16 +71,19 @@ export class VirtualScrollLazyDoc { loadCarsLazy(event: LazyLoadEvent) { //simulate remote connection with a timeout - setTimeout(() => { - //load data of required page - let loadedCars = this.cars.slice(event.first, event.first + event.rows); - - //populate page of virtual cars - Array.prototype.splice.apply(this.virtualCars, [...[event.first, event.rows], ...loadedCars]); - - //trigger change detection - event.forceUpdate(); - }, Math.random() * 1000 + 250); + setTimeout( + () => { + //load data of required page + let loadedCars = this.cars.slice(event.first, event.first + event.rows); + + //populate page of virtual cars + Array.prototype.splice.apply(this.virtualCars, [...[event.first, event.rows], ...loadedCars]); + + //trigger change detection + event.forceUpdate(); + }, + Math.random() * 1000 + 250 + ); } code: Code = { diff --git a/src/app/showcase/doc/toast/headlessdoc.ts b/src/app/showcase/doc/toast/headlessdoc.ts index c97d6fca735..a42243fafbc 100644 --- a/src/app/showcase/doc/toast/headlessdoc.ts +++ b/src/app/showcase/doc/toast/headlessdoc.ts @@ -41,7 +41,10 @@ export class HeadlessDoc { interval = null; - constructor(private messageService: MessageService, private cdr: ChangeDetectorRef) {} + constructor( + private messageService: MessageService, + private cdr: ChangeDetectorRef + ) {} showConfirm() { if (!this.visible) { diff --git a/src/app/showcase/doc/tree/contextmenudoc.ts b/src/app/showcase/doc/tree/contextmenudoc.ts index 5fbca6ef47b..3a177a7176f 100644 --- a/src/app/showcase/doc/tree/contextmenudoc.ts +++ b/src/app/showcase/doc/tree/contextmenudoc.ts @@ -25,7 +25,10 @@ export class ContextMenuDoc implements OnInit { items!: MenuItem[]; - constructor(private nodeService: NodeService, private messageService: MessageService) {} + constructor( + private nodeService: NodeService, + private messageService: MessageService + ) {} ngOnInit() { this.nodeService.getFiles().then((files) => (this.files = files)); diff --git a/src/app/showcase/doc/tree/eventdoc.ts b/src/app/showcase/doc/tree/eventdoc.ts index a7e0fc8ed2e..111e252f818 100644 --- a/src/app/showcase/doc/tree/eventdoc.ts +++ b/src/app/showcase/doc/tree/eventdoc.ts @@ -31,7 +31,10 @@ export class EventDoc implements OnInit { selectedFile!: TreeNode; - constructor(private nodeService: NodeService, private messageService: MessageService) {} + constructor( + private nodeService: NodeService, + private messageService: MessageService + ) {} ngOnInit() { this.nodeService.getFiles().then((data) => (this.files = data)); diff --git a/src/app/showcase/doc/tree/virtualscrolldoc.ts b/src/app/showcase/doc/tree/virtualscrolldoc.ts index 3ecf45a5728..ac25ad982ae 100644 --- a/src/app/showcase/doc/tree/virtualscrolldoc.ts +++ b/src/app/showcase/doc/tree/virtualscrolldoc.ts @@ -20,7 +20,10 @@ export class VirtualScrollDoc implements OnInit { files!: TreeNode[]; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} ngOnInit() { this.nodeService.getFiles().then((data) => { diff --git a/src/app/showcase/doc/tree/virtualscrolllazydoc.ts b/src/app/showcase/doc/tree/virtualscrolllazydoc.ts index 02eb6b1c334..18aad79156c 100644 --- a/src/app/showcase/doc/tree/virtualscrolllazydoc.ts +++ b/src/app/showcase/doc/tree/virtualscrolllazydoc.ts @@ -22,7 +22,10 @@ export class LazyVirtualScrollDoc implements OnInit { virtualFiles!: TreeNode[]; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} ngOnInit() { this.loading = true; diff --git a/src/app/showcase/doc/treetable/basicdoc.ts b/src/app/showcase/doc/treetable/basicdoc.ts index a746dc9f25f..1ea92733314 100644 --- a/src/app/showcase/doc/treetable/basicdoc.ts +++ b/src/app/showcase/doc/treetable/basicdoc.ts @@ -37,7 +37,10 @@ import { NodeService } from '@service/nodeservice'; export class BasicDoc { files!: TreeNode[]; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => { diff --git a/src/app/showcase/doc/treetable/contextmenudoc.ts b/src/app/showcase/doc/treetable/contextmenudoc.ts index df13a252b93..3277cf50a7a 100644 --- a/src/app/showcase/doc/treetable/contextmenudoc.ts +++ b/src/app/showcase/doc/treetable/contextmenudoc.ts @@ -51,7 +51,10 @@ export class ContextMenuDoc { items!: MenuItem[]; - constructor(private nodeService: NodeService, private messageService: MessageService) {} + constructor( + private nodeService: NodeService, + private messageService: MessageService + ) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => (this.files = files)); diff --git a/src/app/showcase/doc/treetable/controlleddoc.ts b/src/app/showcase/doc/treetable/controlleddoc.ts index 6711db051b0..97ca1cb64f8 100644 --- a/src/app/showcase/doc/treetable/controlleddoc.ts +++ b/src/app/showcase/doc/treetable/controlleddoc.ts @@ -38,7 +38,10 @@ import { NodeService } from '@service/nodeservice'; export class ControlledDoc { files!: TreeNode[]; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => { diff --git a/src/app/showcase/doc/treetable/flexiblescrolldoc.ts b/src/app/showcase/doc/treetable/flexiblescrolldoc.ts index b1af22f4d37..98d98124446 100644 --- a/src/app/showcase/doc/treetable/flexiblescrolldoc.ts +++ b/src/app/showcase/doc/treetable/flexiblescrolldoc.ts @@ -50,7 +50,10 @@ export class ScrollFlexibleDoc { dialogVisible: boolean = false; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => { diff --git a/src/app/showcase/doc/treetable/lazyloaddoc.ts b/src/app/showcase/doc/treetable/lazyloaddoc.ts index 1cd8eb0aedc..658b9e1ae20 100644 --- a/src/app/showcase/doc/treetable/lazyloaddoc.ts +++ b/src/app/showcase/doc/treetable/lazyloaddoc.ts @@ -66,7 +66,10 @@ export class LazyLoadDoc implements OnInit { loading: boolean = false; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} ngOnInit() { this.cols = [ diff --git a/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts b/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts index b5e9226574b..9455b0fab00 100644 --- a/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts +++ b/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts @@ -52,7 +52,10 @@ export class SelectionCheckboxDoc { cols!: Column[]; - constructor(private nodeService: NodeService, private cd: ChangeDetectorRef) {} + constructor( + private nodeService: NodeService, + private cd: ChangeDetectorRef + ) {} loadDemoData() { this.nodeService.getTreeTableNodes().then((files) => { diff --git a/src/app/showcase/doc/treetable/selectioneventscdoc.ts b/src/app/showcase/doc/treetable/selectioneventscdoc.ts index c5f643b439f..8b51e3b22f7 100644 --- a/src/app/showcase/doc/treetable/selectioneventscdoc.ts +++ b/src/app/showcase/doc/treetable/selectioneventscdoc.ts @@ -63,7 +63,10 @@ export class SelectionEventsDoc { cols!: Column[]; - constructor(private nodeService: NodeService, private messageService: MessageService) {} + constructor( + private nodeService: NodeService, + private messageService: MessageService + ) {} loadDemoData() { this.nodeService.getFilesystem().then((files) => (this.files = files)); diff --git a/src/app/showcase/layout/app.component.ts b/src/app/showcase/layout/app.component.ts index 00c250bf6a5..b5c438835a6 100644 --- a/src/app/showcase/layout/app.component.ts +++ b/src/app/showcase/layout/app.component.ts @@ -43,7 +43,14 @@ import { AppTopBarComponent } from './topbar/app.topbar.component'; ] }) export class AppComponent implements OnInit { - constructor(@Inject(DOCUMENT) private document: Document, private renderer: Renderer2, private primeng: PrimeNGConfig, private configService: AppConfigService, private router: Router, @Inject(PLATFORM_ID) private platformId: any) { + constructor( + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2, + private primeng: PrimeNGConfig, + private configService: AppConfigService, + private router: Router, + @Inject(PLATFORM_ID) private platformId: any + ) { afterNextRender(() => { if (process.env.NODE_ENV === 'production') { this.injectScripts(); diff --git a/src/app/showcase/layout/app.main.component.ts b/src/app/showcase/layout/app.main.component.ts index bf9bb532c63..64b2d1a7ca7 100644 --- a/src/app/showcase/layout/app.main.component.ts +++ b/src/app/showcase/layout/app.main.component.ts @@ -30,7 +30,10 @@ import { AppTopBarComponent } from './topbar/app.topbar.component'; imports: [RouterOutlet, AppFooterComponent, CommonModule, AppNewsComponent, AppMenuComponent, AppConfigComponent, AppTopBarComponent] }) export class AppMainComponent { - constructor(@Inject(DOCUMENT) private document: Document, private configService: AppConfigService) {} + constructor( + @Inject(DOCUMENT) private document: Document, + private configService: AppConfigService + ) {} get isNewsActive(): boolean { return this.configService.state.newsActive; diff --git a/src/app/showcase/layout/config/app.config.component.ts b/src/app/showcase/layout/config/app.config.component.ts index ed0dca045b8..dcec5fe6c70 100644 --- a/src/app/showcase/layout/config/app.config.component.ts +++ b/src/app/showcase/layout/config/app.config.component.ts @@ -28,7 +28,12 @@ export class AppConfigComponent { @Output() onDarkModeSwitch = new EventEmitter(); - constructor(@Inject(DOCUMENT) private document: Document, private renderer: Renderer2, private configService: AppConfigService, private config: PrimeNGConfig) {} + constructor( + @Inject(DOCUMENT) private document: Document, + private renderer: Renderer2, + private configService: AppConfigService, + private config: PrimeNGConfig + ) {} get isActive(): boolean { return this.configService.state.configActive; diff --git a/src/app/showcase/layout/doc/app.code.component.ts b/src/app/showcase/layout/doc/app.code.component.ts index be7e544415e..edc97027daa 100644 --- a/src/app/showcase/layout/doc/app.code.component.ts +++ b/src/app/showcase/layout/doc/app.code.component.ts @@ -104,7 +104,10 @@ export class AppCodeComponent { lang!: string; - constructor(@Inject(PLATFORM_ID) public platformId: any, @Inject(DOCUMENT) public document: Document) {} + constructor( + @Inject(PLATFORM_ID) public platformId: any, + @Inject(DOCUMENT) public document: Document + ) {} ngAfterViewChecked() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/showcase/layout/doc/app.doc.component.ts b/src/app/showcase/layout/doc/app.doc.component.ts index 2eb1c3ac0f3..40c33acc562 100644 --- a/src/app/showcase/layout/doc/app.doc.component.ts +++ b/src/app/showcase/layout/doc/app.doc.component.ts @@ -44,7 +44,12 @@ export class AppDoc implements OnInit, OnChanges { activeTab!: number; - constructor(private router: Router, private titleService: Title, private metaService: Meta, private cd: ChangeDetectorRef) {} + constructor( + private router: Router, + private titleService: Title, + private metaService: Meta, + private cd: ChangeDetectorRef + ) {} ngOnInit() { if (this.router.url.includes('#api')) { diff --git a/src/app/showcase/layout/doc/app.docapisection.component.ts b/src/app/showcase/layout/doc/app.docapisection.component.ts index d747452e951..bd39518d5b8 100644 --- a/src/app/showcase/layout/doc/app.docapisection.component.ts +++ b/src/app/showcase/layout/doc/app.docapisection.component.ts @@ -23,7 +23,11 @@ export class AppDocApiSection { _docs!: any[]; - constructor(private location: Location, private router: Router, private cd: ChangeDetectorRef) {} + constructor( + private location: Location, + private router: Router, + private cd: ChangeDetectorRef + ) {} ngOnInit() { if (!this.router.url.includes('#api')) { @@ -67,10 +71,10 @@ export class AppDocApiSection { module.components && module.components[docName] ? module.components[docName].props : module.props - ? module.props - : module.interfaces && ObjectUtils.isNotEmpty(module.interfaces.components) - ? module.interfaces.components[`${docName}Props`].props - : undefined; + ? module.props + : module.interfaces && ObjectUtils.isNotEmpty(module.interfaces.components) + ? module.interfaces.components[`${docName}Props`].props + : undefined; let emits = module.components && module.components[docName] ? module.components[docName].emits : module.emits ? module.emits : undefined; let templates = module.interfaces ? module.interfaces.templates : undefined; let events = module.interfaces ? module.interfaces.events : undefined; diff --git a/src/app/showcase/layout/doc/app.docapitable.component.ts b/src/app/showcase/layout/doc/app.docapitable.component.ts index 2e68fe71ab3..c84501ebbd9 100644 --- a/src/app/showcase/layout/doc/app.docapitable.component.ts +++ b/src/app/showcase/layout/doc/app.docapitable.component.ts @@ -108,7 +108,12 @@ export class AppDocApiTable { @Input({ transform: booleanAttribute }) isInterface: boolean = false; - constructor(public viewContainerRef: ViewContainerRef, public router: Router, public location: Location, private configService: AppConfigService) {} + constructor( + public viewContainerRef: ViewContainerRef, + public router: Router, + public location: Location, + private configService: AppConfigService + ) {} get isDarkMode(): boolean { return this.configService.config().darkMode; diff --git a/src/app/showcase/layout/doc/app.docsection-nav.component.ts b/src/app/showcase/layout/doc/app.docsection-nav.component.ts index 3c9bf1b2d90..cb148402fb7 100644 --- a/src/app/showcase/layout/doc/app.docsection-nav.component.ts +++ b/src/app/showcase/layout/doc/app.docsection-nav.component.ts @@ -54,7 +54,14 @@ export class AppDocSectionNavComponent implements OnInit, OnDestroy { @ViewChild('nav') nav: ElementRef; - constructor(@Inject(DOCUMENT) private document: Document, @Inject(PLATFORM_ID) private platformId: any, private location: Location, private zone: NgZone, private renderer: Renderer2, private router: Router) {} + constructor( + @Inject(DOCUMENT) private document: Document, + @Inject(PLATFORM_ID) private platformId: any, + private location: Location, + private zone: NgZone, + private renderer: Renderer2, + private router: Router + ) {} ngOnInit(): void { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/showcase/layout/doc/app.docsectiontext.component.ts b/src/app/showcase/layout/doc/app.docsectiontext.component.ts index cc33c0c81a6..4bf3ec4d269 100644 --- a/src/app/showcase/layout/doc/app.docsectiontext.component.ts +++ b/src/app/showcase/layout/doc/app.docsectiontext.component.ts @@ -31,7 +31,10 @@ export class AppDocSectionTextComponent { @Input() description: string; - constructor(public location: Location, public el: ElementRef) {} + constructor( + public location: Location, + public el: ElementRef + ) {} navigate(event) { if (typeof window !== undefined) { diff --git a/src/app/showcase/layout/menu/app.menu.component.ts b/src/app/showcase/layout/menu/app.menu.component.ts index 3b9f9995779..07099ff6e56 100644 --- a/src/app/showcase/layout/menu/app.menu.component.ts +++ b/src/app/showcase/layout/menu/app.menu.component.ts @@ -38,7 +38,11 @@ export class AppMenuComponent implements OnDestroy { private routerSubscription: Subscription; - constructor(private configService: AppConfigService, private el: ElementRef, private router: Router) { + constructor( + private configService: AppConfigService, + private el: ElementRef, + private router: Router + ) { this.menu = MenuData.data; afterNextRender(() => { diff --git a/src/app/showcase/layout/news/app.news.component.ts b/src/app/showcase/layout/news/app.news.component.ts index 3180a3f34e5..ad716d8af05 100644 --- a/src/app/showcase/layout/news/app.news.component.ts +++ b/src/app/showcase/layout/news/app.news.component.ts @@ -17,7 +17,10 @@ export class AppNewsComponent { announcement: any; - constructor(private configService: AppConfigService, private cd: ChangeDetectorRef) { + constructor( + private configService: AppConfigService, + private cd: ChangeDetectorRef + ) { afterNextRender(() => { const itemString = localStorage.getItem(this.storageKey); diff --git a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts index 5c42920b35e..3eefe30952d 100644 --- a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts +++ b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts @@ -74,7 +74,11 @@ export class TemplateFeaturesAnimation { options; - constructor(private cd: ChangeDetectorRef, public el: ElementRef, @Inject(PLATFORM_ID) private platformId: any) {} + constructor( + private cd: ChangeDetectorRef, + public el: ElementRef, + @Inject(PLATFORM_ID) private platformId: any + ) {} startInterval() { this.intervalId = setInterval(() => { diff --git a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts index 1c0d7b16e54..f89bdf24524 100644 --- a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts +++ b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts @@ -48,7 +48,11 @@ export class TemplateFeaturesAnimationInline { options; - constructor(private cd: ChangeDetectorRef, public el: ElementRef, @Inject(PLATFORM_ID) private platformId: any) {} + constructor( + private cd: ChangeDetectorRef, + public el: ElementRef, + @Inject(PLATFORM_ID) private platformId: any + ) {} ngOnInit() { if (isPlatformBrowser(this.platformId)) { diff --git a/src/app/showcase/layout/topbar/app.topbar.component.ts b/src/app/showcase/layout/topbar/app.topbar.component.ts index 24a8d0c0649..759109e4d5d 100644 --- a/src/app/showcase/layout/topbar/app.topbar.component.ts +++ b/src/app/showcase/layout/topbar/app.topbar.component.ts @@ -27,7 +27,13 @@ export class AppTopBarComponent implements OnDestroy { private window: Window; - constructor(@Inject(DOCUMENT) private document: Document, private el: ElementRef, private renderer: Renderer2, private router: Router, private configService: AppConfigService) { + constructor( + @Inject(DOCUMENT) private document: Document, + private el: ElementRef, + private renderer: Renderer2, + private router: Router, + private configService: AppConfigService + ) { this.window = this.document.defaultView as Window; afterNextRender(() => { diff --git a/src/app/showcase/pages/defer/deferdemo.ts b/src/app/showcase/pages/defer/deferdemo.ts index e0382497fe9..246c0848680 100755 --- a/src/app/showcase/pages/defer/deferdemo.ts +++ b/src/app/showcase/pages/defer/deferdemo.ts @@ -13,7 +13,10 @@ import { Car } from '../domain/car'; export class DeferDemo { cars: Car[]; - constructor(private carService: CarService, private messageService: MessageService) {} + constructor( + private carService: CarService, + private messageService: MessageService + ) {} initData() { this.messageService.add({ severity: 'success', summary: 'Data Initialized', detail: 'Render Completed' }); diff --git a/src/app/showcase/pages/landing/herosection.component.ts b/src/app/showcase/pages/landing/herosection.component.ts index 5dbb96134f2..f5e763b0f9c 100644 --- a/src/app/showcase/pages/landing/herosection.component.ts +++ b/src/app/showcase/pages/landing/herosection.component.ts @@ -175,7 +175,11 @@ export class HeroSectionComponent implements OnInit, OnDestroy { subscription!: Subscription; - constructor(private configService: AppConfigService, @Inject(PLATFORM_ID) private platformId: any, private cd: ChangeDetectorRef) { + constructor( + private configService: AppConfigService, + @Inject(PLATFORM_ID) private platformId: any, + private cd: ChangeDetectorRef + ) { this.subscription = this.configService.configUpdate$.pipe(debounceTime(25)).subscribe((config) => { this.setChartOptions(); this.cd.markForCheck(); diff --git a/src/app/showcase/pages/landing/landing.component.ts b/src/app/showcase/pages/landing/landing.component.ts index 33597afc2e0..19ed05237d6 100644 --- a/src/app/showcase/pages/landing/landing.component.ts +++ b/src/app/showcase/pages/landing/landing.component.ts @@ -26,7 +26,11 @@ export class LandingComponent implements OnInit { subscription!: Subscription; - constructor(private configService: AppConfigService, private metaService: Meta, private titleService: Title) {} + constructor( + private configService: AppConfigService, + private metaService: Meta, + private titleService: Title + ) {} get landingClass() { return { diff --git a/src/app/showcase/pages/landing/themesection.component.ts b/src/app/showcase/pages/landing/themesection.component.ts index f4e3bdc9096..2d3f9675717 100644 --- a/src/app/showcase/pages/landing/themesection.component.ts +++ b/src/app/showcase/pages/landing/themesection.component.ts @@ -128,11 +128,11 @@ import { Subscription } from 'rxjs'; Date - {{ customer.date | date : 'MM/dd/yyyy' }} + {{ customer.date | date: 'MM/dd/yyyy' }} Balance - {{ customer.balance | currency : 'USD' : 'symbol' }} + {{ customer.balance | currency: 'USD' : 'symbol' }} @@ -158,7 +158,12 @@ import { Subscription } from 'rxjs'; ` }) export class ThemeSectionComponent { - constructor(@Inject(PLATFORM_ID) private platformId: any, private customerService: CustomerService, private configService: AppConfigService, public app: AppComponent) {} + constructor( + @Inject(PLATFORM_ID) private platformId: any, + private customerService: CustomerService, + private configService: AppConfigService, + public app: AppComponent + ) {} @ViewChild('dt') table: Table; diff --git a/src/app/showcase/pages/lts/lts.component.ts b/src/app/showcase/pages/lts/lts.component.ts index 3dd917ff60b..8259eb1b3b8 100755 --- a/src/app/showcase/pages/lts/lts.component.ts +++ b/src/app/showcase/pages/lts/lts.component.ts @@ -6,7 +6,10 @@ import { Code } from '@domain/code'; templateUrl: './lts.component.html' }) export class LTSComponent { - constructor(private titleService: Title, private metaService: Meta) { + constructor( + private titleService: Title, + private metaService: Meta + ) { this.titleService.setTitle('Long Term Support - PrimeNG'); this.metaService.updateTag({ name: 'description', content: 'Long Term Support' }); } diff --git a/src/app/showcase/pages/roadmap/roadmap.component.ts b/src/app/showcase/pages/roadmap/roadmap.component.ts index 8aaf8d4ddbc..e7894286345 100644 --- a/src/app/showcase/pages/roadmap/roadmap.component.ts +++ b/src/app/showcase/pages/roadmap/roadmap.component.ts @@ -5,7 +5,10 @@ import { Meta, Title } from '@angular/platform-browser'; templateUrl: './roadmap.component.html' }) export class RoadmapComponent { - constructor(private titleService: Title, private metaService: Meta) { + constructor( + private titleService: Title, + private metaService: Meta + ) { this.titleService.setTitle('Roadmap - PrimeNG'); this.metaService.updateTag({ name: 'description', content: 'PrimeNG Roadmap' }); } diff --git a/src/app/showcase/pages/templates/learnmore/learnmore.component.ts b/src/app/showcase/pages/templates/learnmore/learnmore.component.ts index bbb18c6c70a..181d578d1b3 100644 --- a/src/app/showcase/pages/templates/learnmore/learnmore.component.ts +++ b/src/app/showcase/pages/templates/learnmore/learnmore.component.ts @@ -13,7 +13,10 @@ export class LearnMoreComponent implements OnInit { templateName: string; - constructor(private route: ActivatedRoute, private router: Router) {} + constructor( + private route: ActivatedRoute, + private router: Router + ) {} ngOnInit() { // this.id = this.route.snapshot.paramMap.get('id'); diff --git a/src/app/showcase/pages/templates/templates.component.ts b/src/app/showcase/pages/templates/templates.component.ts index 2b42dc19960..4b7d6980792 100644 --- a/src/app/showcase/pages/templates/templates.component.ts +++ b/src/app/showcase/pages/templates/templates.component.ts @@ -6,7 +6,10 @@ import { Meta, Title } from '@angular/platform-browser'; templateUrl: './templates.component.html' }) export class TemplatesComponent { - constructor(private titleService: Title, private metaService: Meta) { + constructor( + private titleService: Title, + private metaService: Meta + ) { this.titleService.setTitle('Angular Application Templates - PrimeNG'); this.metaService.updateTag({ name: 'description', content: 'PrimeNG Angular application templates.' }); } diff --git a/src/app/showcase/pages/uikit/uikit.component.ts b/src/app/showcase/pages/uikit/uikit.component.ts index 7a509abff99..34dd9078aa8 100755 --- a/src/app/showcase/pages/uikit/uikit.component.ts +++ b/src/app/showcase/pages/uikit/uikit.component.ts @@ -9,7 +9,11 @@ import { AppConfigService } from '@service/appconfigservice'; }) export class UIKitComponent { subscription: Subscription; - constructor(private configService: AppConfigService, private titleService: Title, private metaService: Meta) { + constructor( + private configService: AppConfigService, + private titleService: Title, + private metaService: Meta + ) { this.titleService.setTitle('UI Kit - PrimeNG'); this.metaService.updateTag({ name: 'description', content: 'PrimeNG Angular UI Kit' }); } diff --git a/src/app/showcase/service/platformservice.ts b/src/app/showcase/service/platformservice.ts index d3870980a34..3aa4f41413c 100644 --- a/src/app/showcase/service/platformservice.ts +++ b/src/app/showcase/service/platformservice.ts @@ -5,7 +5,10 @@ import { Inject, Injectable, PLATFORM_ID } from '@angular/core'; export class PlatformService { private window: Window; - constructor(@Inject(PLATFORM_ID) private platformId: any, @Inject(DOCUMENT) private document: Document) { + constructor( + @Inject(PLATFORM_ID) private platformId: any, + @Inject(DOCUMENT) private document: Document + ) { this.window = this.document.defaultView as Window; }