From 147041b3a39407c1fa9894c38780d1ffa37f65ee Mon Sep 17 00:00:00 2001 From: Diego Franchina Date: Wed, 10 Jul 2024 08:31:57 +0200 Subject: [PATCH 1/2] fix order of actions CSP --- src/app/components/dynamicdialog/dynamicdialog.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/components/dynamicdialog/dynamicdialog.ts b/src/app/components/dynamicdialog/dynamicdialog.ts index 70e02992bfc..44186b18702 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.ts @@ -284,7 +284,7 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { public zone: NgZone, public primeNGConfig: PrimeNGConfig, @SkipSelf() @Optional() private parentDialog: DynamicDialogComponent - ) {} + ) { } ngOnInit() { if (this.breakpoints) { @@ -296,6 +296,7 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { if (!this.styleElement) { this.styleElement = this.renderer.createElement('style'); this.styleElement.type = 'text/css'; + DomHandler.setAttribute(this.styleElement, 'nonce', this.primeNGConfig?.csp()?.nonce); this.renderer.appendChild(this.document.head, this.styleElement); let innerHTML = ''; for (let breakpoint in this.breakpoints) { @@ -309,7 +310,6 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { } this.renderer.setProperty(this.styleElement, 'innerHTML', innerHTML); - DomHandler.setAttribute(this.styleElement, 'nonce', this.primeNGConfig?.csp()?.nonce); } } } @@ -715,4 +715,4 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { declarations: [DynamicDialogComponent, DynamicDialogContent], exports: [SharedModule] }) -export class DynamicDialogModule {} +export class DynamicDialogModule { } From 1c98d0c186544ab7ac9560def6ec9d9eb696235e Mon Sep 17 00:00:00 2001 From: Diego Franchina Date: Wed, 10 Jul 2024 08:34:03 +0200 Subject: [PATCH 2/2] format code --- 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 +- .../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 +- src/app/components/contextmenu/contextmenu.ts | 9 +- src/app/components/dataview/dataview.ts | 9 +- src/app/components/defer/defer.ts | 9 +- 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 +- .../components/dynamicdialog/dynamicdialog.ts | 4 +- 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 +- .../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 +- 203 files changed, 316 insertions(+), 1253 deletions(-) diff --git a/src/app/components/accordion/accordion.ts b/src/app/components/accordion/accordion.ts index 058a35e7f16..7b46b274d8e 100755 --- a/src/app/components/accordion/accordion.ts +++ b/src/app/components/accordion/accordion.ts @@ -230,11 +230,7 @@ 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(); } @@ -441,10 +437,7 @@ 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 40569336691..4f57fc758e7 100644 --- a/src/app/components/animate/animate.ts +++ b/src/app/components/animate/animate.ts @@ -27,11 +27,7 @@ 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 4ee3936f962..f664bc353c2 100644 --- a/src/app/components/animateonscroll/animateonscroll.ts +++ b/src/app/components/animateonscroll/animateonscroll.ts @@ -60,13 +60,7 @@ 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 b7a79ec97f7..da00d7b009a 100755 --- a/src/app/components/autocomplete/autocomplete.ts +++ b/src/app/components/autocomplete/autocomplete.ts @@ -873,15 +873,7 @@ 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 33e9b04f528..bc36926dd44 100755 --- a/src/app/components/badge/badge.ts +++ b/src/app/components/badge/badge.ts @@ -58,11 +58,7 @@ 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 44369e45b25..974ec41da4c 100755 --- a/src/app/components/blockui/blockui.ts +++ b/src/app/components/blockui/blockui.ts @@ -96,14 +96,7 @@ 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 a6b9d9a5c1c..04d452d71c1 100755 --- a/src/app/components/button/button.ts +++ b/src/app/components/button/button.ts @@ -155,10 +155,7 @@ 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/cascadeselect/cascadeselect.ts b/src/app/components/cascadeselect/cascadeselect.ts index 3786a2ce95d..929d9575ad3 100755 --- a/src/app/components/cascadeselect/cascadeselect.ts +++ b/src/app/components/cascadeselect/cascadeselect.ts @@ -142,10 +142,7 @@ 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) { @@ -1306,12 +1303,7 @@ 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 25a0e7a8b11..3d34a8ab0d1 100755 --- a/src/app/components/chart/chart.ts +++ b/src/app/components/chart/chart.ts @@ -92,11 +92,7 @@ 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 d99d54d50c3..7a750467adf 100755 --- a/src/app/components/checkbox/checkbox.ts +++ b/src/app/components/checkbox/checkbox.ts @@ -247,11 +247,7 @@ 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 c8b1ad19631..516f3e73ad2 100755 --- a/src/app/components/chips/chips.ts +++ b/src/app/components/chips/chips.ts @@ -310,12 +310,7 @@ 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/contextmenu/contextmenu.ts b/src/app/components/contextmenu/contextmenu.ts index 9af8d5ca483..963b9f9182f 100755 --- a/src/app/components/contextmenu/contextmenu.ts +++ b/src/app/components/contextmenu/contextmenu.ts @@ -237,14 +237,7 @@ 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 f08117e05fb..038a4fcbd81 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,12 +358,7 @@ 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 061ebb1001f..174f3995ca0 100755 --- a/src/app/components/defer/defer.ts +++ b/src/app/components/defer/defer.ts @@ -27,14 +27,7 @@ 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/dock/dock.ts b/src/app/components/dock/dock.ts index 8ab391905d7..6b402fe889e 100755 --- a/src/app/components/dock/dock.ts +++ b/src/app/components/dock/dock.ts @@ -166,10 +166,7 @@ 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 f7580d86e61..6453519f3eb 100755 --- a/src/app/components/dragdrop/dragdrop.ts +++ b/src/app/components/dragdrop/dragdrop.ts @@ -53,11 +53,7 @@ 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; @@ -199,11 +195,7 @@ 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 904f34a9ef5..235e27a01cc 100755 --- a/src/app/components/dropdown/dropdown.ts +++ b/src/app/components/dropdown/dropdown.ts @@ -1012,14 +1012,7 @@ 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 19587caa4a8..2f891919b69 100755 --- a/src/app/components/dynamicdialog/dialogservice.ts +++ b/src/app/components/dynamicdialog/dialogservice.ts @@ -14,11 +14,7 @@ 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 b146d2bcfab..7a707d9e86d 100755 --- a/src/app/components/dynamicdialog/dynamicdialog-injector.ts +++ b/src/app/components/dynamicdialog/dynamicdialog-injector.ts @@ -1,10 +1,7 @@ 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 e113f47afd7..8fff5dd5143 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.spec.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.spec.ts @@ -12,10 +12,7 @@ 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/dynamicdialog/dynamicdialog.ts b/src/app/components/dynamicdialog/dynamicdialog.ts index 44186b18702..a3da1c2ab57 100755 --- a/src/app/components/dynamicdialog/dynamicdialog.ts +++ b/src/app/components/dynamicdialog/dynamicdialog.ts @@ -284,7 +284,7 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { public zone: NgZone, public primeNGConfig: PrimeNGConfig, @SkipSelf() @Optional() private parentDialog: DynamicDialogComponent - ) { } + ) {} ngOnInit() { if (this.breakpoints) { @@ -715,4 +715,4 @@ export class DynamicDialogComponent implements AfterViewInit, OnDestroy { declarations: [DynamicDialogComponent, DynamicDialogContent], exports: [SharedModule] }) -export class DynamicDialogModule { } +export class DynamicDialogModule {} diff --git a/src/app/components/editor/editor.ts b/src/app/components/editor/editor.ts index fc9ff806d84..2f8a19742e0 100755 --- a/src/app/components/editor/editor.ts +++ b/src/app/components/editor/editor.ts @@ -194,10 +194,7 @@ 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 a78b8ccc40f..5d805c1ed09 100755 --- a/src/app/components/galleria/galleria.ts +++ b/src/app/components/galleria/galleria.ts @@ -286,13 +286,7 @@ 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) => { @@ -509,13 +503,7 @@ 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(); } @@ -1029,13 +1017,7 @@ 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 dc5a532d792..edf5024770d 100755 --- a/src/app/components/image/image.ts +++ b/src/app/components/image/image.ts @@ -253,12 +253,7 @@ 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 6d2bc5956c2..ebb19273650 100755 --- a/src/app/components/inputmask/inputmask.ts +++ b/src/app/components/inputmask/inputmask.ts @@ -355,13 +355,7 @@ 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 574b1389005..d54d09b82fb 100644 --- a/src/app/components/inputnumber/inputnumber.ts +++ b/src/app/components/inputnumber/inputnumber.ts @@ -516,12 +516,7 @@ 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 565883b6983..2974a9f50c7 100755 --- a/src/app/components/inputtext/inputtext.ts +++ b/src/app/components/inputtext/inputtext.ts @@ -25,12 +25,7 @@ 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 c6b6be1365d..9b2921040f8 100755 --- a/src/app/components/inputtextarea/inputtextarea.ts +++ b/src/app/components/inputtextarea/inputtextarea.ts @@ -42,13 +42,7 @@ 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 16a0e67eb98..3870746e09e 100755 --- a/src/app/components/keyfilter/keyfilter.ts +++ b/src/app/components/keyfilter/keyfilter.ts @@ -113,11 +113,7 @@ 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 a743ed524fb..7e06d50c33c 100755 --- a/src/app/components/knob/knob.ts +++ b/src/app/components/knob/knob.ts @@ -171,12 +171,7 @@ 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 4f20dd18c9d..545cf4d73f9 100755 --- a/src/app/components/listbox/listbox.ts +++ b/src/app/components/listbox/listbox.ts @@ -667,13 +667,7 @@ 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 9ee537ddcd8..fe320732195 100755 --- a/src/app/components/megamenu/megamenu.ts +++ b/src/app/components/megamenu/megamenu.ts @@ -238,10 +238,7 @@ 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 }); @@ -532,14 +529,7 @@ 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 085d9d54850..9b6505f7ef1 100755 --- a/src/app/components/menu/menu.ts +++ b/src/app/components/menu/menu.ts @@ -41,10 +41,7 @@ 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 732dd73f6db..a169503ff41 100755 --- a/src/app/components/menubar/menubar.ts +++ b/src/app/components/menubar/menubar.ts @@ -251,12 +251,7 @@ 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 fa2edd2244b..7241efdeee8 100644 --- a/src/app/components/messages/messages.ts +++ b/src/app/components/messages/messages.ts @@ -167,12 +167,7 @@ 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 64b2584e8dd..3fbcc13ae7e 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 e6f2e9aa7f6..a6cf3d381a4 100755 --- a/src/app/components/multiselect/multiselect.ts +++ b/src/app/components/multiselect/multiselect.ts @@ -1189,15 +1189,7 @@ 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 933c0bed653..1b1b1a2374f 100755 --- a/src/app/components/organizationchart/organizationchart.ts +++ b/src/app/components/organizationchart/organizationchart.ts @@ -104,10 +104,7 @@ 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(); @@ -250,10 +247,7 @@ 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 97a7550fccd..eab7a9066e4 100755 --- a/src/app/components/paginator/paginator.ts +++ b/src/app/components/paginator/paginator.ts @@ -319,10 +319,7 @@ 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 b926499adb0..91308de1d4e 100644 --- a/src/app/components/panelmenu/panelmenu.ts +++ b/src/app/components/panelmenu/panelmenu.ts @@ -201,10 +201,7 @@ 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 6582e19af40..55bb18555b5 100644 --- a/src/app/components/password/password.ts +++ b/src/app/components/password/password.ts @@ -109,14 +109,7 @@ 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(); @@ -344,7 +337,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 14cd436f516..2d3f2514abb 100755 --- a/src/app/components/radiobutton/radiobutton.ts +++ b/src/app/components/radiobutton/radiobutton.ts @@ -208,12 +208,7 @@ 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 2ffe5bafbdd..08f40a81142 100755 --- a/src/app/components/rating/rating.ts +++ b/src/app/components/rating/rating.ts @@ -195,10 +195,7 @@ 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 ebac88a382e..8f429913cad 100644 --- a/src/app/components/ripple/ripple.ts +++ b/src/app/components/ripple/ripple.ts @@ -15,14 +15,7 @@ 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 b559691785d..76fb6d97ba4 100644 --- a/src/app/components/scroller/scroller.ts +++ b/src/app/components/scroller/scroller.ts @@ -504,13 +504,7 @@ 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 12515b86846..ad287fa7bc0 100755 --- a/src/app/components/scrollpanel/scrollpanel.ts +++ b/src/app/components/scrollpanel/scrollpanel.ts @@ -146,14 +146,7 @@ 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 babd7f0a96f..17670b5516e 100755 --- a/src/app/components/scrolltop/scrolltop.ts +++ b/src/app/components/scrolltop/scrolltop.ts @@ -117,14 +117,7 @@ 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 b6db9f60b4c..4e1f616ae71 100755 --- a/src/app/components/sidebar/sidebar.ts +++ b/src/app/components/sidebar/sidebar.ts @@ -260,13 +260,7 @@ 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 8be190c87a0..acc68f54c66 100755 --- a/src/app/components/slidemenu/slidemenu.ts +++ b/src/app/components/slidemenu/slidemenu.ts @@ -242,13 +242,7 @@ 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 08ae3fd657f..36687376549 100755 --- a/src/app/components/slider/slider.ts +++ b/src/app/components/slider/slider.ts @@ -264,14 +264,7 @@ 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 d31a9fd411f..4db568de217 100644 --- a/src/app/components/speeddial/speeddial.ts +++ b/src/app/components/speeddial/speeddial.ts @@ -318,13 +318,7 @@ 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 e23c886bc88..6cae652a2ce 100755 --- a/src/app/components/spinner/spinner.ts +++ b/src/app/components/spinner/spinner.ts @@ -160,10 +160,7 @@ 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 9a8eb9ac3c2..f26786c85c1 100755 --- a/src/app/components/splitter/splitter.ts +++ b/src/app/components/splitter/splitter.ts @@ -178,13 +178,7 @@ 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 b056a4b15f6..300360721d5 100755 --- a/src/app/components/steps/steps.ts +++ b/src/app/components/steps/steps.ts @@ -123,11 +123,7 @@ 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 e5a042e52b3..dee1ef70fb0 100644 --- a/src/app/components/styleclass/styleclass.ts +++ b/src/app/components/styleclass/styleclass.ts @@ -13,11 +13,7 @@ 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 0a282032d2a..5945d7bb5cd 100644 --- a/src/app/components/table/table.ts +++ b/src/app/components/table/table.ts @@ -3183,12 +3183,7 @@ 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(); @@ -3314,10 +3309,7 @@ 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(() => { @@ -3476,10 +3468,7 @@ 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(); }); @@ -3560,11 +3549,7 @@ 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); @@ -3812,10 +3797,7 @@ 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); @@ -3870,11 +3852,7 @@ 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); @@ -3956,14 +3934,7 @@ 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)) { @@ -4072,13 +4043,7 @@ 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()) { @@ -4185,11 +4150,7 @@ 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) { @@ -4530,10 +4491,7 @@ 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) { @@ -4549,10 +4507,7 @@ 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) { @@ -4568,10 +4523,7 @@ 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) { @@ -4602,11 +4554,7 @@ 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) => { @@ -4666,10 +4614,7 @@ 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; @@ -4766,11 +4711,7 @@ 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; @@ -4850,11 +4791,7 @@ 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; @@ -4953,12 +4890,7 @@ 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()) { @@ -5456,15 +5388,7 @@ 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; } @@ -5972,10 +5896,7 @@ 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 77aa1165c53..75f9a3837f0 100644 --- a/src/app/components/tabmenu/tabmenu.ts +++ b/src/app/components/tabmenu/tabmenu.ts @@ -246,12 +246,7 @@ 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 7c3847e56a6..4a37045971f 100755 --- a/src/app/components/tabview/tabview.ts +++ b/src/app/components/tabview/tabview.ts @@ -225,12 +225,7 @@ 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(); } @@ -495,12 +490,7 @@ 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 fa714e3cc00..87c63866c2e 100755 --- a/src/app/components/terminal/terminal.ts +++ b/src/app/components/terminal/terminal.ts @@ -65,11 +65,7 @@ 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 2836076ad26..f46d9d7801a 100755 --- a/src/app/components/tieredmenu/tieredmenu.ts +++ b/src/app/components/tieredmenu/tieredmenu.ts @@ -230,11 +230,7 @@ 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/togglebutton/togglebutton.ts b/src/app/components/togglebutton/togglebutton.ts index c8694269380..2e8a73a65a4 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 4d6779273d9..5fe32510ef5 100755 --- a/src/app/components/tooltip/tooltip.ts +++ b/src/app/components/tooltip/tooltip.ts @@ -166,14 +166,7 @@ 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 7e6e56987dd..79997caad47 100755 --- a/src/app/components/tree/tree.ts +++ b/src/app/components/tree/tree.ts @@ -1166,12 +1166,7 @@ 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 48345609b18..fa0a2ac8283 100755 --- a/src/app/components/treeselect/treeselect.ts +++ b/src/app/components/treeselect/treeselect.ts @@ -561,12 +561,7 @@ 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 697ced086a2..36b758c73b1 100755 --- a/src/app/components/treetable/treetable.ts +++ b/src/app/components/treetable/treetable.ts @@ -2263,11 +2263,7 @@ 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(); @@ -2408,13 +2404,7 @@ 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)) { @@ -2667,10 +2657,7 @@ 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(); @@ -2718,14 +2705,7 @@ 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)) { @@ -2808,14 +2788,7 @@ 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()) { @@ -2914,10 +2887,7 @@ 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); @@ -3000,10 +2970,7 @@ 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); @@ -3055,11 +3022,7 @@ 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); @@ -3129,11 +3092,7 @@ 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); @@ -3227,11 +3186,7 @@ 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(); }); @@ -3319,11 +3274,7 @@ 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()) { @@ -3498,10 +3449,7 @@ 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) => { @@ -3545,11 +3493,7 @@ 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) { @@ -3748,10 +3692,7 @@ 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 d280049b07b..1193a1947fb 100755 --- a/src/app/components/tristatecheckbox/tristatecheckbox.ts +++ b/src/app/components/tristatecheckbox/tristatecheckbox.ts @@ -79,10 +79,7 @@ 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 c2d57d2cae3..14d26993a90 100755 --- a/src/app/components/virtualscroller/virtualscroller.ts +++ b/src/app/components/virtualscroller/virtualscroller.ts @@ -121,10 +121,7 @@ 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 9aeb5f77687..e1e114e973c 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,10 +27,7 @@ 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 f5b260f7ab4..ad6c548eb60 100644 --- a/src/app/showcase/doc/autocomplete/dropdowndoc.ts +++ b/src/app/showcase/doc/autocomplete/dropdowndoc.ts @@ -28,10 +28,7 @@ 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 a85ce4511f6..0529980a689 100644 --- a/src/app/showcase/doc/carousel/basicdoc.ts +++ b/src/app/showcase/doc/carousel/basicdoc.ts @@ -39,10 +39,7 @@ 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 2b6a18f92c3..880478e68da 100644 --- a/src/app/showcase/doc/carousel/circulardoc.ts +++ b/src/app/showcase/doc/carousel/circulardoc.ts @@ -39,10 +39,7 @@ 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 8a068c0efd3..e619f1d54b4 100644 --- a/src/app/showcase/doc/carousel/numscrolldoc.ts +++ b/src/app/showcase/doc/carousel/numscrolldoc.ts @@ -39,10 +39,7 @@ 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 4d8538626f3..db933c9a4e1 100644 --- a/src/app/showcase/doc/carousel/responsivedoc.ts +++ b/src/app/showcase/doc/carousel/responsivedoc.ts @@ -43,10 +43,7 @@ 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 66c5de01967..ba25dc07022 100644 --- a/src/app/showcase/doc/carousel/templatedoc.ts +++ b/src/app/showcase/doc/carousel/templatedoc.ts @@ -45,10 +45,7 @@ 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 0e4f67409c0..08650603f61 100644 --- a/src/app/showcase/doc/carousel/verticaldoc.ts +++ b/src/app/showcase/doc/carousel/verticaldoc.ts @@ -37,10 +37,7 @@ 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 597e15bc298..adb10f4ed9b 100644 --- a/src/app/showcase/doc/chart/basicdoc.ts +++ b/src/app/showcase/doc/chart/basicdoc.ts @@ -26,11 +26,7 @@ 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 c58d299f9ce..f1d55258649 100644 --- a/src/app/showcase/doc/chart/combodoc.ts +++ b/src/app/showcase/doc/chart/combodoc.ts @@ -22,11 +22,7 @@ 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 d08956b521a..e71b56c92fa 100644 --- a/src/app/showcase/doc/chart/doughnutdoc.ts +++ b/src/app/showcase/doc/chart/doughnutdoc.ts @@ -22,11 +22,7 @@ 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 c3ae8cc4452..cf7b7ba7539 100644 --- a/src/app/showcase/doc/chart/horizontalbardoc.ts +++ b/src/app/showcase/doc/chart/horizontalbardoc.ts @@ -22,11 +22,7 @@ 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 b4f37766065..bb8b0e9be86 100644 --- a/src/app/showcase/doc/chart/linedoc.ts +++ b/src/app/showcase/doc/chart/linedoc.ts @@ -22,11 +22,7 @@ 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 97757c261e8..5cf3311a21b 100644 --- a/src/app/showcase/doc/chart/linestyledoc.ts +++ b/src/app/showcase/doc/chart/linestyledoc.ts @@ -22,11 +22,7 @@ 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 cd453c53572..2e908be8ecd 100644 --- a/src/app/showcase/doc/chart/multiaxisdoc.ts +++ b/src/app/showcase/doc/chart/multiaxisdoc.ts @@ -22,11 +22,7 @@ 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 a47217d066b..6019b1d77d9 100644 --- a/src/app/showcase/doc/chart/piedoc.ts +++ b/src/app/showcase/doc/chart/piedoc.ts @@ -23,11 +23,7 @@ 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 436fe8e5329..0e549f81f8a 100644 --- a/src/app/showcase/doc/chart/polarareadoc.ts +++ b/src/app/showcase/doc/chart/polarareadoc.ts @@ -22,11 +22,7 @@ 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 2015ec97b7a..53a68b54160 100644 --- a/src/app/showcase/doc/chart/radardoc.ts +++ b/src/app/showcase/doc/chart/radardoc.ts @@ -22,11 +22,7 @@ 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 539f1870590..09a10a8c452 100644 --- a/src/app/showcase/doc/chart/stackedbardoc.ts +++ b/src/app/showcase/doc/chart/stackedbardoc.ts @@ -22,11 +22,7 @@ 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 09781142b09..1c54f3d52de 100644 --- a/src/app/showcase/doc/chart/verticalbardoc.ts +++ b/src/app/showcase/doc/chart/verticalbardoc.ts @@ -22,11 +22,7 @@ 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 11136e20ed1..d85d8613507 100644 --- a/src/app/showcase/doc/confirmdialog/basicdoc.ts +++ b/src/app/showcase/doc/confirmdialog/basicdoc.ts @@ -19,10 +19,7 @@ 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 13ad0f111cf..bd6f8857e76 100644 --- a/src/app/showcase/doc/confirmdialog/headlessdoc.ts +++ b/src/app/showcase/doc/confirmdialog/headlessdoc.ts @@ -32,10 +32,7 @@ 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 cf7bb306ffc..7bd5ca725d4 100644 --- a/src/app/showcase/doc/confirmdialog/positiondoc.ts +++ b/src/app/showcase/doc/confirmdialog/positiondoc.ts @@ -33,10 +33,7 @@ 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 7b2d6114cad..c23ecc4851d 100644 --- a/src/app/showcase/doc/confirmdialog/templatedoc.ts +++ b/src/app/showcase/doc/confirmdialog/templatedoc.ts @@ -32,10 +32,7 @@ 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 5cfd928d1e8..86bb64031c3 100644 --- a/src/app/showcase/doc/confirmpopup/basicdoc.ts +++ b/src/app/showcase/doc/confirmpopup/basicdoc.ts @@ -19,10 +19,7 @@ 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 0e699a378ec..2094bb5aad8 100644 --- a/src/app/showcase/doc/confirmpopup/headlessdoc.ts +++ b/src/app/showcase/doc/confirmpopup/headlessdoc.ts @@ -28,10 +28,7 @@ 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 ea13c58805e..94967bbc49f 100644 --- a/src/app/showcase/doc/confirmpopup/templatedoc.ts +++ b/src/app/showcase/doc/confirmpopup/templatedoc.ts @@ -25,10 +25,7 @@ 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 78be71b545d..4f6a5fffd04 100644 --- a/src/app/showcase/doc/defer/datatabledoc.ts +++ b/src/app/showcase/doc/defer/datatabledoc.ts @@ -44,10 +44,7 @@ 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 c6987ba0739..ce0d1c09ad3 100644 --- a/src/app/showcase/doc/dock/advanceddoc.ts +++ b/src/app/showcase/doc/dock/advanceddoc.ts @@ -87,12 +87,7 @@ 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 8cc42685c3b..9e402b7e65c 100644 --- a/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts +++ b/src/app/showcase/doc/dropdown/lazyvirtualscrolldoc.ts @@ -41,20 +41,17 @@ 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 c12edc28f35..28ce08288a7 100644 --- a/src/app/showcase/doc/dynamicdialog/closedoc.ts +++ b/src/app/showcase/doc/dynamicdialog/closedoc.ts @@ -19,10 +19,7 @@ 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 3d99288fa42..67e6c96745d 100644 --- a/src/app/showcase/doc/dynamicdialog/exampledoc.ts +++ b/src/app/showcase/doc/dynamicdialog/exampledoc.ts @@ -23,10 +23,7 @@ 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 c01841b293a..5b5a7d1f331 100644 --- a/src/app/showcase/doc/dynamicdialog/infodemo.ts +++ b/src/app/showcase/doc/dynamicdialog/infodemo.ts @@ -18,10 +18,7 @@ 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 501fab8aa4c..faedc807683 100755 --- a/src/app/showcase/doc/dynamicdialog/productlistdemo.ts +++ b/src/app/showcase/doc/dynamicdialog/productlistdemo.ts @@ -37,11 +37,7 @@ 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 4f85f3a7559..e2b5bd02458 100644 --- a/src/app/showcase/doc/fileupload/templatedoc.ts +++ b/src/app/showcase/doc/fileupload/templatedoc.ts @@ -77,10 +77,7 @@ 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 fffcffe47a6..3266372513e 100644 --- a/src/app/showcase/doc/filterservice/tableintegrationdoc.ts +++ b/src/app/showcase/doc/filterservice/tableintegrationdoc.ts @@ -40,10 +40,7 @@ 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 2102a77a52b..99da6cbd4b4 100644 --- a/src/app/showcase/doc/galleria/advanceddoc.ts +++ b/src/app/showcase/doc/galleria/advanceddoc.ts @@ -62,11 +62,7 @@ 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 04150f4f144..6a1c260041f 100644 --- a/src/app/showcase/doc/orderlist/basicdoc.ts +++ b/src/app/showcase/doc/orderlist/basicdoc.ts @@ -32,10 +32,7 @@ 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 4a8e0e36cd0..2998e49fb55 100644 --- a/src/app/showcase/doc/orderlist/dragdropdoc.ts +++ b/src/app/showcase/doc/orderlist/dragdropdoc.ts @@ -32,10 +32,7 @@ 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 ee70d82217c..763b9425f7b 100644 --- a/src/app/showcase/doc/orderlist/filterdoc.ts +++ b/src/app/showcase/doc/orderlist/filterdoc.ts @@ -32,10 +32,7 @@ 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 fbaca20ba0c..5bfa3e177a7 100644 --- a/src/app/showcase/doc/overlaypanel/datatabledoc.ts +++ b/src/app/showcase/doc/overlaypanel/datatabledoc.ts @@ -57,11 +57,7 @@ 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 291b4ff4e93..24a8c9065b3 100644 --- a/src/app/showcase/doc/picklist/basicdoc.ts +++ b/src/app/showcase/doc/picklist/basicdoc.ts @@ -47,10 +47,7 @@ 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 be46d8afc20..e16dd8fc024 100644 --- a/src/app/showcase/doc/picklist/filterdoc.ts +++ b/src/app/showcase/doc/picklist/filterdoc.ts @@ -47,10 +47,7 @@ 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 16cbbae3975..7133212c918 100644 --- a/src/app/showcase/doc/progressbar/dynamicdoc.ts +++ b/src/app/showcase/doc/progressbar/dynamicdoc.ts @@ -21,11 +21,7 @@ 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 0be7d6ca312..daeb31ce74e 100644 --- a/src/app/showcase/doc/scroller/lazyloaddoc.ts +++ b/src/app/showcase/doc/scroller/lazyloaddoc.ts @@ -47,21 +47,18 @@ 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 9ff5350a878..9faae6296f5 100644 --- a/src/app/showcase/doc/steps/confirmationdemo.ts +++ b/src/app/showcase/doc/steps/confirmationdemo.ts @@ -59,10 +59,7 @@ 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 b33842b8503..1dd8aae28a6 100644 --- a/src/app/showcase/doc/steps/paymentdemo.ts +++ b/src/app/showcase/doc/steps/paymentdemo.ts @@ -45,10 +45,7 @@ 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 2094301f6df..acc893dfc30 100644 --- a/src/app/showcase/doc/steps/personaldemo.ts +++ b/src/app/showcase/doc/steps/personaldemo.ts @@ -49,10 +49,7 @@ 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 7dd1a34395e..9043cf4224b 100644 --- a/src/app/showcase/doc/steps/routingdoc.ts +++ b/src/app/showcase/doc/steps/routingdoc.ts @@ -24,10 +24,7 @@ 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 fd65bd1d8b2..d88c01e4377 100644 --- a/src/app/showcase/doc/steps/seatdemo.ts +++ b/src/app/showcase/doc/steps/seatdemo.ts @@ -35,10 +35,7 @@ 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 d1112436935..afc59a0279d 100644 --- a/src/app/showcase/doc/table/basicdoc.ts +++ b/src/app/showcase/doc/table/basicdoc.ts @@ -35,10 +35,7 @@ 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 49833065cf7..1f4777bbb15 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,10 +72,7 @@ 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 b4e987ded0b..ca806606b3c 100644 --- a/src/app/showcase/doc/table/checkboxselectiondoc.ts +++ b/src/app/showcase/doc/table/checkboxselectiondoc.ts @@ -44,10 +44,7 @@ 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 f087e254a9d..ed970295ef4 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 d2b8e348576..3182c46de68 100644 --- a/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts +++ b/src/app/showcase/doc/table/columnresizeexpandmodedoc.ts @@ -36,10 +36,7 @@ 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 7e350b96d0b..0da94df7bdf 100644 --- a/src/app/showcase/doc/table/columnresizefitmodedoc.ts +++ b/src/app/showcase/doc/table/columnresizefitmodedoc.ts @@ -36,10 +36,7 @@ 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 971659b475a..cf1b113923f 100644 --- a/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts +++ b/src/app/showcase/doc/table/columnresizescrollablemodedoc.ts @@ -33,10 +33,7 @@ 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 60cb04757e5..6f28c4215eb 100644 --- a/src/app/showcase/doc/table/columnselectiondoc.ts +++ b/src/app/showcase/doc/table/columnselectiondoc.ts @@ -45,11 +45,7 @@ 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 487ffdd7fc0..4390336f57b 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,11 +47,7 @@ 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 70edc602929..8caf427c7d9 100644 --- a/src/app/showcase/doc/table/controlledselectiondoc.ts +++ b/src/app/showcase/doc/table/controlledselectiondoc.ts @@ -44,10 +44,7 @@ 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 c46750f4986..4d1c856deaa 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,10 +192,7 @@ 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 dae81a6ce8d..7c56b715a9a 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,10 +42,7 @@ 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 8abcf42e970..5b3696a71aa 100644 --- a/src/app/showcase/doc/table/dynamicdoc.ts +++ b/src/app/showcase/doc/table/dynamicdoc.ts @@ -40,10 +40,7 @@ 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 e16913c452c..e139e52a189 100644 --- a/src/app/showcase/doc/table/expandablerowgroupdoc.ts +++ b/src/app/showcase/doc/table/expandablerowgroupdoc.ts @@ -64,10 +64,7 @@ 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 d066856a8e7..60f50fb4ee0 100644 --- a/src/app/showcase/doc/table/exportdoc.ts +++ b/src/app/showcase/doc/table/exportdoc.ts @@ -52,10 +52,7 @@ 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 d550da02d4e..0f33ebac7ef 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,10 +159,7 @@ 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 07e417d3def..76991d3cee1 100644 --- a/src/app/showcase/doc/table/filterbasic.ts +++ b/src/app/showcase/doc/table/filterbasic.ts @@ -124,10 +124,7 @@ 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 70793909185..f3aab7644a7 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,10 +94,7 @@ 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 aaf8abc7181..c09c24446e2 100644 --- a/src/app/showcase/doc/table/flexiblescrolldoc.ts +++ b/src/app/showcase/doc/table/flexiblescrolldoc.ts @@ -49,10 +49,7 @@ 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 b0ff2732365..e76f1e59270 100644 --- a/src/app/showcase/doc/table/frozencolumnsdoc.ts +++ b/src/app/showcase/doc/table/frozencolumnsdoc.ts @@ -50,10 +50,7 @@ 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 8cb188e21e1..4f167436390 100644 --- a/src/app/showcase/doc/table/frozenrowsdoc.ts +++ b/src/app/showcase/doc/table/frozenrowsdoc.ts @@ -53,10 +53,7 @@ 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 44706dd7754..df3c71e0132 100644 --- a/src/app/showcase/doc/table/gridlinesdoc.ts +++ b/src/app/showcase/doc/table/gridlinesdoc.ts @@ -36,10 +36,7 @@ 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 c107920a531..eb3137edf89 100644 --- a/src/app/showcase/doc/table/horizontalscrolldoc.ts +++ b/src/app/showcase/doc/table/horizontalscrolldoc.ts @@ -59,10 +59,7 @@ 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 88b2ed7b622..e33eb616fc2 100644 --- a/src/app/showcase/doc/table/lazyloaddoc.ts +++ b/src/app/showcase/doc/table/lazyloaddoc.ts @@ -98,10 +98,7 @@ 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 d9b0bfe5e97..e071c983e81 100644 --- a/src/app/showcase/doc/table/multiplecolumnssortdoc.ts +++ b/src/app/showcase/doc/table/multiplecolumnssortdoc.ts @@ -38,10 +38,7 @@ 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 0089b72a4e5..4ba9331a501 100644 --- a/src/app/showcase/doc/table/multipleselectiondoc.ts +++ b/src/app/showcase/doc/table/multipleselectiondoc.ts @@ -47,10 +47,7 @@ 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 66a94762656..9233b987d42 100644 --- a/src/app/showcase/doc/table/pageonlyselectiondoc.ts +++ b/src/app/showcase/doc/table/pageonlyselectiondoc.ts @@ -41,10 +41,7 @@ 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 52f72a8e7c9..e4abc0dccb9 100644 --- a/src/app/showcase/doc/table/paginatorbasicdoc.ts +++ b/src/app/showcase/doc/table/paginatorbasicdoc.ts @@ -39,10 +39,7 @@ 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 51448295df3..2eb877e5b29 100644 --- a/src/app/showcase/doc/table/paginatorlocaledoc.ts +++ b/src/app/showcase/doc/table/paginatorlocaledoc.ts @@ -51,10 +51,7 @@ 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 0d55200c065..f25e9832854 100644 --- a/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts +++ b/src/app/showcase/doc/table/paginatorprogrammaticdoc.ts @@ -57,10 +57,7 @@ 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 ba3d928dd53..778a220aad7 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,10 +41,7 @@ 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 91cfb7043e8..c168322a5a2 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,12 +169,7 @@ 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 5c888388e0e..2c6d617e566 100644 --- a/src/app/showcase/doc/table/radiobuttonselectiondoc.ts +++ b/src/app/showcase/doc/table/radiobuttonselectiondoc.ts @@ -42,10 +42,7 @@ 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 6123cbd0b46..4d74ec47261 100644 --- a/src/app/showcase/doc/table/reorderdoc.ts +++ b/src/app/showcase/doc/table/reorderdoc.ts @@ -49,10 +49,7 @@ 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 468ddb5fdc1..ac9ac696e04 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,10 +50,7 @@ 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 2e7aa4895a9..b40137716a3 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,10 +50,7 @@ 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 1226e3afec2..266792b83b5 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,11 +99,7 @@ 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 7c884e7cdd0..bcd8fe4311f 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,11 +99,7 @@ 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 3ab7e2a3966..290014783c1 100644 --- a/src/app/showcase/doc/table/rowspangroupingdoc.ts +++ b/src/app/showcase/doc/table/rowspangroupingdoc.ts @@ -56,10 +56,7 @@ 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 21119f4703f..14017cf577f 100644 --- a/src/app/showcase/doc/table/selectioneventsdoc.ts +++ b/src/app/showcase/doc/table/selectioneventsdoc.ts @@ -41,11 +41,7 @@ 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 d2ac6400ef1..65e94e6e042 100644 --- a/src/app/showcase/doc/table/singlecolumnsortdoc.ts +++ b/src/app/showcase/doc/table/singlecolumnsortdoc.ts @@ -40,10 +40,7 @@ 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 7dd8f37d26e..e9e290a077f 100644 --- a/src/app/showcase/doc/table/singleselectiondoc.ts +++ b/src/app/showcase/doc/table/singleselectiondoc.ts @@ -51,10 +51,7 @@ 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 f6d9ad1e527..33781c3446d 100644 --- a/src/app/showcase/doc/table/sizedoc.ts +++ b/src/app/showcase/doc/table/sizedoc.ts @@ -43,10 +43,7 @@ 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 ce5455fa919..e1d18c9bbf5 100644 --- a/src/app/showcase/doc/table/statefuldoc.ts +++ b/src/app/showcase/doc/table/statefuldoc.ts @@ -103,10 +103,7 @@ 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 d711090a6b1..acaf93ab987 100644 --- a/src/app/showcase/doc/table/stripeddoc.ts +++ b/src/app/showcase/doc/table/stripeddoc.ts @@ -36,10 +36,7 @@ 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 5a9c52c432a..c44ca09e885 100644 --- a/src/app/showcase/doc/table/styledoc.ts +++ b/src/app/showcase/doc/table/styledoc.ts @@ -63,10 +63,7 @@ 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 3262ef855c4..925a5db1806 100644 --- a/src/app/showcase/doc/table/subheadergroupingdoc.ts +++ b/src/app/showcase/doc/table/subheadergroupingdoc.ts @@ -65,10 +65,7 @@ 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 1bcefd2777a..d799b51e1b1 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,10 +58,7 @@ 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 fbe740123a8..543b0fa7015 100644 --- a/src/app/showcase/doc/table/verticalscrolldoc.ts +++ b/src/app/showcase/doc/table/verticalscrolldoc.ts @@ -36,10 +36,7 @@ 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 19f75451961..a0894a1bef7 100644 --- a/src/app/showcase/doc/table/virtualscrolllazydoc.ts +++ b/src/app/showcase/doc/table/virtualscrolllazydoc.ts @@ -71,19 +71,16 @@ 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 a42243fafbc..c97d6fca735 100644 --- a/src/app/showcase/doc/toast/headlessdoc.ts +++ b/src/app/showcase/doc/toast/headlessdoc.ts @@ -41,10 +41,7 @@ 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 3a177a7176f..5fbca6ef47b 100644 --- a/src/app/showcase/doc/tree/contextmenudoc.ts +++ b/src/app/showcase/doc/tree/contextmenudoc.ts @@ -25,10 +25,7 @@ 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 111e252f818..a7e0fc8ed2e 100644 --- a/src/app/showcase/doc/tree/eventdoc.ts +++ b/src/app/showcase/doc/tree/eventdoc.ts @@ -31,10 +31,7 @@ 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 ac25ad982ae..3ecf45a5728 100644 --- a/src/app/showcase/doc/tree/virtualscrolldoc.ts +++ b/src/app/showcase/doc/tree/virtualscrolldoc.ts @@ -20,10 +20,7 @@ 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 18aad79156c..02eb6b1c334 100644 --- a/src/app/showcase/doc/tree/virtualscrolllazydoc.ts +++ b/src/app/showcase/doc/tree/virtualscrolllazydoc.ts @@ -22,10 +22,7 @@ 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 1ea92733314..a746dc9f25f 100644 --- a/src/app/showcase/doc/treetable/basicdoc.ts +++ b/src/app/showcase/doc/treetable/basicdoc.ts @@ -37,10 +37,7 @@ 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 3277cf50a7a..df13a252b93 100644 --- a/src/app/showcase/doc/treetable/contextmenudoc.ts +++ b/src/app/showcase/doc/treetable/contextmenudoc.ts @@ -51,10 +51,7 @@ 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 97ca1cb64f8..6711db051b0 100644 --- a/src/app/showcase/doc/treetable/controlleddoc.ts +++ b/src/app/showcase/doc/treetable/controlleddoc.ts @@ -38,10 +38,7 @@ 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 98d98124446..b1af22f4d37 100644 --- a/src/app/showcase/doc/treetable/flexiblescrolldoc.ts +++ b/src/app/showcase/doc/treetable/flexiblescrolldoc.ts @@ -50,10 +50,7 @@ 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 658b9e1ae20..1cd8eb0aedc 100644 --- a/src/app/showcase/doc/treetable/lazyloaddoc.ts +++ b/src/app/showcase/doc/treetable/lazyloaddoc.ts @@ -66,10 +66,7 @@ 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 9455b0fab00..b5e9226574b 100644 --- a/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts +++ b/src/app/showcase/doc/treetable/selectioncheckboxdoc.ts @@ -52,10 +52,7 @@ 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 8b51e3b22f7..c5f643b439f 100644 --- a/src/app/showcase/doc/treetable/selectioneventscdoc.ts +++ b/src/app/showcase/doc/treetable/selectioneventscdoc.ts @@ -63,10 +63,7 @@ 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 b5c438835a6..00c250bf6a5 100644 --- a/src/app/showcase/layout/app.component.ts +++ b/src/app/showcase/layout/app.component.ts @@ -43,14 +43,7 @@ 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 64b2d1a7ca7..bf9bb532c63 100644 --- a/src/app/showcase/layout/app.main.component.ts +++ b/src/app/showcase/layout/app.main.component.ts @@ -30,10 +30,7 @@ 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 dcec5fe6c70..ed0dca045b8 100644 --- a/src/app/showcase/layout/config/app.config.component.ts +++ b/src/app/showcase/layout/config/app.config.component.ts @@ -28,12 +28,7 @@ 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 edc97027daa..be7e544415e 100644 --- a/src/app/showcase/layout/doc/app.code.component.ts +++ b/src/app/showcase/layout/doc/app.code.component.ts @@ -104,10 +104,7 @@ 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 40c33acc562..2eb1c3ac0f3 100644 --- a/src/app/showcase/layout/doc/app.doc.component.ts +++ b/src/app/showcase/layout/doc/app.doc.component.ts @@ -44,12 +44,7 @@ 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 bd39518d5b8..d747452e951 100644 --- a/src/app/showcase/layout/doc/app.docapisection.component.ts +++ b/src/app/showcase/layout/doc/app.docapisection.component.ts @@ -23,11 +23,7 @@ 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')) { @@ -71,10 +67,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 c84501ebbd9..2e68fe71ab3 100644 --- a/src/app/showcase/layout/doc/app.docapitable.component.ts +++ b/src/app/showcase/layout/doc/app.docapitable.component.ts @@ -108,12 +108,7 @@ 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 cb148402fb7..3c9bf1b2d90 100644 --- a/src/app/showcase/layout/doc/app.docsection-nav.component.ts +++ b/src/app/showcase/layout/doc/app.docsection-nav.component.ts @@ -54,14 +54,7 @@ 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 4bf3ec4d269..cc33c0c81a6 100644 --- a/src/app/showcase/layout/doc/app.docsectiontext.component.ts +++ b/src/app/showcase/layout/doc/app.docsectiontext.component.ts @@ -31,10 +31,7 @@ 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 07099ff6e56..3b9f9995779 100644 --- a/src/app/showcase/layout/menu/app.menu.component.ts +++ b/src/app/showcase/layout/menu/app.menu.component.ts @@ -38,11 +38,7 @@ 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 ad716d8af05..3180a3f34e5 100644 --- a/src/app/showcase/layout/news/app.news.component.ts +++ b/src/app/showcase/layout/news/app.news.component.ts @@ -17,10 +17,7 @@ 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 3eefe30952d..5c42920b35e 100644 --- a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts +++ b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimation.ts @@ -74,11 +74,7 @@ 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 f89bdf24524..1c0d7b16e54 100644 --- a/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts +++ b/src/app/showcase/layout/templates/templatefeaturesanimation/templatefeaturesanimationinline.ts @@ -48,11 +48,7 @@ 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 759109e4d5d..24a8d0c0649 100644 --- a/src/app/showcase/layout/topbar/app.topbar.component.ts +++ b/src/app/showcase/layout/topbar/app.topbar.component.ts @@ -27,13 +27,7 @@ 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 246c0848680..e0382497fe9 100755 --- a/src/app/showcase/pages/defer/deferdemo.ts +++ b/src/app/showcase/pages/defer/deferdemo.ts @@ -13,10 +13,7 @@ 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 f5e763b0f9c..5dbb96134f2 100644 --- a/src/app/showcase/pages/landing/herosection.component.ts +++ b/src/app/showcase/pages/landing/herosection.component.ts @@ -175,11 +175,7 @@ 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 19ed05237d6..33597afc2e0 100644 --- a/src/app/showcase/pages/landing/landing.component.ts +++ b/src/app/showcase/pages/landing/landing.component.ts @@ -26,11 +26,7 @@ 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 2d3f9675717..f4e3bdc9096 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,12 +158,7 @@ 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 8259eb1b3b8..3dd917ff60b 100755 --- a/src/app/showcase/pages/lts/lts.component.ts +++ b/src/app/showcase/pages/lts/lts.component.ts @@ -6,10 +6,7 @@ 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 e7894286345..8aaf8d4ddbc 100644 --- a/src/app/showcase/pages/roadmap/roadmap.component.ts +++ b/src/app/showcase/pages/roadmap/roadmap.component.ts @@ -5,10 +5,7 @@ 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 181d578d1b3..bbb18c6c70a 100644 --- a/src/app/showcase/pages/templates/learnmore/learnmore.component.ts +++ b/src/app/showcase/pages/templates/learnmore/learnmore.component.ts @@ -13,10 +13,7 @@ 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 4b7d6980792..2b42dc19960 100644 --- a/src/app/showcase/pages/templates/templates.component.ts +++ b/src/app/showcase/pages/templates/templates.component.ts @@ -6,10 +6,7 @@ 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 34dd9078aa8..7a509abff99 100755 --- a/src/app/showcase/pages/uikit/uikit.component.ts +++ b/src/app/showcase/pages/uikit/uikit.component.ts @@ -9,11 +9,7 @@ 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 3aa4f41413c..d3870980a34 100644 --- a/src/app/showcase/service/platformservice.ts +++ b/src/app/showcase/service/platformservice.ts @@ -5,10 +5,7 @@ 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; }