mirror of
				https://github.com/richard-loafle/fuse-angular.git
				synced 2025-11-04 09:43:33 +00:00 
			
		
		
		
	(@fuse) Moved dependency injections out of the constructors and removed unnecessary 'constructor()' calls
This commit is contained in:
		
							parent
							
								
									53a5d9a141
								
							
						
					
					
						commit
						c842dadad9
					
				@ -1,6 +1,6 @@
 | 
			
		||||
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgIf } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostBinding, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostBinding, inject, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { MatButtonModule } from '@angular/material/button';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { fuseAnimations } from '@fuse/animations';
 | 
			
		||||
@ -28,6 +28,10 @@ export class FuseAlertComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
    static ngAcceptInputType_showIcon: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseAlertService = inject(FuseAlertService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() appearance: FuseAlertAppearance = 'soft';
 | 
			
		||||
    @Input() dismissed: boolean = false;
 | 
			
		||||
    @Input() dismissible: boolean = false;
 | 
			
		||||
@ -38,17 +42,6 @@ export class FuseAlertComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseAlertService: FuseAlertService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -7,13 +7,6 @@ export class FuseAlertService
 | 
			
		||||
    private readonly _onDismiss: ReplaySubject<string> = new ReplaySubject<string>(1);
 | 
			
		||||
    private readonly _onShow: ReplaySubject<string> = new ReplaySubject<string>(1);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -25,13 +25,6 @@ export class FuseCardComponent implements OnChanges
 | 
			
		||||
    @Input() face: FuseCardFace = 'front';
 | 
			
		||||
    @Input() flippable: boolean = false;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/animations';
 | 
			
		||||
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
			
		||||
import { Component, ElementRef, EventEmitter, HostBinding, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, Renderer2, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { Component, ElementRef, EventEmitter, HostBinding, HostListener, inject, Input, OnChanges, OnDestroy, OnInit, Output, Renderer2, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { FuseDrawerService } from '@fuse/components/drawer/drawer.service';
 | 
			
		||||
import { FuseDrawerMode, FuseDrawerPosition } from '@fuse/components/drawer/drawer.types';
 | 
			
		||||
import { FuseUtilsService } from '@fuse/services/utils/utils.service';
 | 
			
		||||
@ -21,6 +21,12 @@ export class FuseDrawerComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
    static ngAcceptInputType_transparentOverlay: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _animationBuilder = inject(AnimationBuilder);
 | 
			
		||||
    private _elementRef = inject(ElementRef);
 | 
			
		||||
    private _renderer2 = inject(Renderer2);
 | 
			
		||||
    private _fuseDrawerService = inject(FuseDrawerService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() fixed: boolean = false;
 | 
			
		||||
    @Input() mode: FuseDrawerMode = 'side';
 | 
			
		||||
    @Input() name: string = this._fuseUtilsService.randomId();
 | 
			
		||||
@ -33,28 +39,11 @@ export class FuseDrawerComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
    @Output() readonly positionChanged: EventEmitter<FuseDrawerPosition> = new EventEmitter<FuseDrawerPosition>();
 | 
			
		||||
 | 
			
		||||
    private _animationsEnabled: boolean = false;
 | 
			
		||||
    private readonly _handleOverlayClick: any;
 | 
			
		||||
    private readonly _handleOverlayClick = (): void => this.close();
 | 
			
		||||
    private _hovered: boolean = false;
 | 
			
		||||
    private _overlay: HTMLElement;
 | 
			
		||||
    private _player: AnimationPlayer;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _animationBuilder: AnimationBuilder,
 | 
			
		||||
        private _elementRef: ElementRef,
 | 
			
		||||
        private _renderer2: Renderer2,
 | 
			
		||||
        private _fuseDrawerService: FuseDrawerService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
        this._handleOverlayClick = (): void =>
 | 
			
		||||
        {
 | 
			
		||||
            this.close();
 | 
			
		||||
        };
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -6,13 +6,6 @@ export class FuseDrawerService
 | 
			
		||||
{
 | 
			
		||||
    private _componentRegistry: Map<string, FuseDrawerComponent> = new Map<string, FuseDrawerComponent>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { DOCUMENT, NgTemplateOutlet } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, Component, Inject, Input, TemplateRef, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, Component, inject, Input, TemplateRef, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { MatButtonModule } from '@angular/material/button';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
@ -15,14 +15,11 @@ import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
})
 | 
			
		||||
export class FuseFullscreenComponent
 | 
			
		||||
{
 | 
			
		||||
    private _document = inject(DOCUMENT);
 | 
			
		||||
 | 
			
		||||
    @Input() iconTpl: TemplateRef<any>;
 | 
			
		||||
    @Input() tooltip: string;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(@Inject(DOCUMENT) private _document: Document) { }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass } from '@angular/common';
 | 
			
		||||
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EmbeddedViewRef, Input, OnChanges, Renderer2, SecurityContext, SimpleChanges, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, EmbeddedViewRef, inject, Input, OnChanges, SecurityContext, SimpleChanges, TemplateRef, ViewChild, ViewContainerRef, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { DomSanitizer } from '@angular/platform-browser';
 | 
			
		||||
import { FuseHighlightService } from '@fuse/components/highlight/highlight.service';
 | 
			
		||||
 | 
			
		||||
@ -15,6 +15,11 @@ import { FuseHighlightService } from '@fuse/components/highlight/highlight.servi
 | 
			
		||||
})
 | 
			
		||||
export class FuseHighlightComponent implements OnChanges, AfterViewInit
 | 
			
		||||
{
 | 
			
		||||
    private _domSanitizer = inject(DomSanitizer);
 | 
			
		||||
    private _elementRef = inject(ElementRef);
 | 
			
		||||
    private _fuseHighlightService = inject(FuseHighlightService);
 | 
			
		||||
    private _viewContainerRef = inject(ViewContainerRef);
 | 
			
		||||
 | 
			
		||||
    @Input() code: string;
 | 
			
		||||
    @Input() lang: string;
 | 
			
		||||
    @ViewChild(TemplateRef) templateRef: TemplateRef<any>;
 | 
			
		||||
@ -22,20 +27,6 @@ export class FuseHighlightComponent implements OnChanges, AfterViewInit
 | 
			
		||||
    highlightedCode: string;
 | 
			
		||||
    private _viewRef: EmbeddedViewRef<any>;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _domSanitizer: DomSanitizer,
 | 
			
		||||
        private _elementRef: ElementRef,
 | 
			
		||||
        private _renderer2: Renderer2,
 | 
			
		||||
        private _fuseHighlightService: FuseHighlightService,
 | 
			
		||||
        private _viewContainerRef: ViewContainerRef,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -4,13 +4,6 @@ import hljs from 'highlight.js';
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FuseHighlightService
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgIf } from '@angular/common';
 | 
			
		||||
import { Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { Component, inject, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { MatProgressBarModule } from '@angular/material/progress-bar';
 | 
			
		||||
import { FuseLoadingService } from '@fuse/services/loading';
 | 
			
		||||
import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
@ -16,19 +16,14 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseLoadingBarComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _fuseLoadingService = inject(FuseLoadingService);
 | 
			
		||||
 | 
			
		||||
    @Input() autoMode: boolean = true;
 | 
			
		||||
    mode: 'determinate' | 'indeterminate';
 | 
			
		||||
    progress: number = 0;
 | 
			
		||||
    show: boolean = false;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(private _fuseLoadingService: FuseLoadingService)
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,6 @@
 | 
			
		||||
import { NgTemplateOutlet } from '@angular/common';
 | 
			
		||||
import { AfterViewInit, Component, Input, OnChanges, SimpleChanges, TemplateRef, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { fuseAnimations } from '@fuse/animations';
 | 
			
		||||
import { FuseMediaWatcherService } from '@fuse/services/media-watcher';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
    selector     : 'fuse-masonry',
 | 
			
		||||
@ -19,13 +18,6 @@ export class FuseMasonryComponent implements OnChanges, AfterViewInit
 | 
			
		||||
    @Input() items: any[] = [];
 | 
			
		||||
    distributedColumns: any[] = [];
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(private _fuseMediaWatcherService: FuseMediaWatcherService)
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatMenuModule } from '@angular/material/menu';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
@ -19,29 +19,22 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseHorizontalNavigationBasicItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    isActiveMatchOptions: IsActiveMatchOptions;
 | 
			
		||||
    // Set the equivalent of {exact: false} as default for active match options.
 | 
			
		||||
    // We are not assigning the item.isActiveMatchOptions directly to the
 | 
			
		||||
    // [routerLinkActiveOptions] because if it's "undefined" initially, the router
 | 
			
		||||
    // will throw an error and stop working.
 | 
			
		||||
    isActiveMatchOptions: IsActiveMatchOptions = this._fuseUtilsService.subsetMatchOptions;
 | 
			
		||||
 | 
			
		||||
    private _fuseHorizontalNavigationComponent: FuseHorizontalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
        // Set the equivalent of {exact: false} as default for active match options.
 | 
			
		||||
        // We are not assigning the item.isActiveMatchOptions directly to the
 | 
			
		||||
        // [routerLinkActiveOptions] because if it's "undefined" initially, the router
 | 
			
		||||
        // will throw an error and stop working.
 | 
			
		||||
        this.isActiveMatchOptions = this._fuseUtilsService.subsetMatchOptions;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { BooleanInput } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgClass, NgFor, NgIf, NgTemplateOutlet } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, inject, Input, OnDestroy, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatMenu, MatMenuModule } from '@angular/material/menu';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
@ -24,6 +24,9 @@ export class FuseHorizontalNavigationBranchItemComponent implements OnInit, OnDe
 | 
			
		||||
    static ngAcceptInputType_child: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() child: boolean = false;
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
@ -32,16 +35,6 @@ export class FuseHorizontalNavigationBranchItemComponent implements OnInit, OnDe
 | 
			
		||||
    private _fuseHorizontalNavigationComponent: FuseHorizontalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { FuseHorizontalNavigationComponent } from '@fuse/components/navigation/horizontal/horizontal.component';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
@ -14,22 +14,15 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseHorizontalNavigationDividerItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    private _fuseHorizontalNavigationComponent: FuseHorizontalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { FuseHorizontalNavigationComponent } from '@fuse/components/navigation/horizontal/horizontal.component';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
@ -14,22 +14,15 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseHorizontalNavigationSpacerItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    private _fuseHorizontalNavigationComponent: FuseHorizontalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgFor, NgIf } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnChanges, OnDestroy, OnInit, SimpleChanges, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { fuseAnimations } from '@fuse/animations';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
@ -22,23 +22,16 @@ import { FuseHorizontalNavigationSpacerItemComponent } from './components/spacer
 | 
			
		||||
})
 | 
			
		||||
export class FuseHorizontalNavigationComponent implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() name: string = this._fuseUtilsService.randomId();
 | 
			
		||||
    @Input() navigation: FuseNavigationItem[];
 | 
			
		||||
 | 
			
		||||
    onRefreshed: ReplaySubject<boolean> = new ReplaySubject<boolean>(1);
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -7,13 +7,6 @@ export class FuseNavigationService
 | 
			
		||||
    private _componentRegistry: Map<string, any> = new Map<string, any>();
 | 
			
		||||
    private _navigationStore: Map<string, FuseNavigationItem[]> = new Map<string, any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { BooleanInput } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgClass, NgFor, NgIf } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
import { NavigationEnd, Router } from '@angular/router';
 | 
			
		||||
@ -28,6 +28,10 @@ export class FuseVerticalNavigationAsideItemComponent implements OnChanges, OnIn
 | 
			
		||||
    static ngAcceptInputType_skipChildren: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _router = inject(Router);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() activeItemId: string;
 | 
			
		||||
    @Input() autoCollapse: boolean;
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
@ -38,17 +42,6 @@ export class FuseVerticalNavigationAsideItemComponent implements OnChanges, OnIn
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
import { IsActiveMatchOptions, RouterLink, RouterLinkActive } from '@angular/router';
 | 
			
		||||
@ -18,29 +18,22 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseVerticalNavigationBasicItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    isActiveMatchOptions: IsActiveMatchOptions;
 | 
			
		||||
    // Set the equivalent of {exact: false} as default for active match options.
 | 
			
		||||
    // We are not assigning the item.isActiveMatchOptions directly to the
 | 
			
		||||
    // [routerLinkActiveOptions] because if it's "undefined" initially, the router
 | 
			
		||||
    // will throw an error and stop working.
 | 
			
		||||
    isActiveMatchOptions: IsActiveMatchOptions = this._fuseUtilsService.subsetMatchOptions;
 | 
			
		||||
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
        // Set the equivalent of {exact: false} as default for active match options.
 | 
			
		||||
        // We are not assigning the item.isActiveMatchOptions directly to the
 | 
			
		||||
        // [routerLinkActiveOptions] because if it's "undefined" initially, the router
 | 
			
		||||
        // will throw an error and stop working.
 | 
			
		||||
        this.isActiveMatchOptions = this._fuseUtilsService.subsetMatchOptions;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { BooleanInput } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgClass, NgFor, NgIf } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, HostBinding, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, HostBinding, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { MatTooltipModule } from '@angular/material/tooltip';
 | 
			
		||||
import { NavigationEnd, Router } from '@angular/router';
 | 
			
		||||
@ -28,6 +28,10 @@ export class FuseVerticalNavigationCollapsableItemComponent implements OnInit, O
 | 
			
		||||
    static ngAcceptInputType_autoCollapse: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _router = inject(Router);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() autoCollapse: boolean;
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
@ -37,17 +41,6 @@ export class FuseVerticalNavigationCollapsableItemComponent implements OnInit, O
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
import { FuseVerticalNavigationComponent } from '@fuse/components/navigation/vertical/vertical.component';
 | 
			
		||||
@ -14,22 +14,15 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseVerticalNavigationDividerItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,6 +1,6 @@
 | 
			
		||||
import { BooleanInput } from '@angular/cdk/coercion';
 | 
			
		||||
import { NgClass, NgFor, NgIf } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, forwardRef, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
@ -24,6 +24,9 @@ export class FuseVerticalNavigationGroupItemComponent implements OnInit, OnDestr
 | 
			
		||||
    static ngAcceptInputType_autoCollapse: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() autoCollapse: boolean;
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
@ -31,16 +34,6 @@ export class FuseVerticalNavigationGroupItemComponent implements OnInit, OnDestr
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass } from '@angular/common';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, inject, Input, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
import { FuseNavigationItem } from '@fuse/components/navigation/navigation.types';
 | 
			
		||||
import { FuseVerticalNavigationComponent } from '@fuse/components/navigation/vertical/vertical.component';
 | 
			
		||||
@ -14,22 +14,15 @@ import { Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseVerticalNavigationSpacerItemComponent implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
 | 
			
		||||
    @Input() item: FuseNavigationItem;
 | 
			
		||||
    @Input() name: string;
 | 
			
		||||
 | 
			
		||||
    private _fuseVerticalNavigationComponent: FuseVerticalNavigationComponent;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@ import { animate, AnimationBuilder, AnimationPlayer, style } from '@angular/anim
 | 
			
		||||
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
			
		||||
import { ScrollStrategy, ScrollStrategyOptions } from '@angular/cdk/overlay';
 | 
			
		||||
import { DOCUMENT, NgFor, NgIf } from '@angular/common';
 | 
			
		||||
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, HostListener, Inject, Input, OnChanges, OnDestroy, OnInit, Output, QueryList, Renderer2, SimpleChanges, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, EventEmitter, HostBinding, HostListener, inject, Input, OnChanges, OnDestroy, OnInit, Output, QueryList, Renderer2, SimpleChanges, ViewChild, ViewChildren, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { NavigationEnd, Router } from '@angular/router';
 | 
			
		||||
import { fuseAnimations } from '@fuse/animations';
 | 
			
		||||
import { FuseNavigationService } from '@fuse/components/navigation/navigation.service';
 | 
			
		||||
@ -36,6 +36,16 @@ export class FuseVerticalNavigationComponent implements OnChanges, OnInit, After
 | 
			
		||||
    static ngAcceptInputType_transparentOverlay: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _animationBuilder = inject(AnimationBuilder);
 | 
			
		||||
    private _changeDetectorRef = inject(ChangeDetectorRef);
 | 
			
		||||
    private _document = inject(DOCUMENT);
 | 
			
		||||
    private _elementRef = inject(ElementRef);
 | 
			
		||||
    private _renderer2 = inject(Renderer2);
 | 
			
		||||
    private _router = inject(Router);
 | 
			
		||||
    private _scrollStrategyOptions = inject(ScrollStrategyOptions);
 | 
			
		||||
    private _fuseNavigationService = inject(FuseNavigationService);
 | 
			
		||||
    private _fuseUtilsService = inject(FuseUtilsService);
 | 
			
		||||
 | 
			
		||||
    @Input() appearance: FuseVerticalNavigationAppearance = 'default';
 | 
			
		||||
    @Input() autoCollapse: boolean = true;
 | 
			
		||||
    @Input() inner: boolean = false;
 | 
			
		||||
@ -71,17 +81,7 @@ export class FuseVerticalNavigationComponent implements OnChanges, OnInit, After
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _animationBuilder: AnimationBuilder,
 | 
			
		||||
        private _changeDetectorRef: ChangeDetectorRef,
 | 
			
		||||
        @Inject(DOCUMENT) private _document: Document,
 | 
			
		||||
        private _elementRef: ElementRef,
 | 
			
		||||
        private _renderer2: Renderer2,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
        private _scrollStrategyOptions: ScrollStrategyOptions,
 | 
			
		||||
        private _fuseNavigationService: FuseNavigationService,
 | 
			
		||||
        private _fuseUtilsService: FuseUtilsService,
 | 
			
		||||
    )
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
        this._handleAsideOverlayClick = (): void =>
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
import { Directive, ElementRef, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { Directive, ElementRef, inject, OnDestroy, OnInit } from '@angular/core';
 | 
			
		||||
import { NavigationEnd, Router } from '@angular/router';
 | 
			
		||||
import { filter, Subject, takeUntil } from 'rxjs';
 | 
			
		||||
 | 
			
		||||
@ -9,17 +9,10 @@ import { filter, Subject, takeUntil } from 'rxjs';
 | 
			
		||||
})
 | 
			
		||||
export class FuseScrollResetDirective implements OnInit, OnDestroy
 | 
			
		||||
{
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
    private _elementRef = inject(ElementRef);
 | 
			
		||||
    private _router = inject(Router);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _elementRef: ElementRef,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Lifecycle hooks
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,6 @@
 | 
			
		||||
import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';
 | 
			
		||||
import { Platform } from '@angular/cdk/platform';
 | 
			
		||||
import { Directive, ElementRef, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
 | 
			
		||||
import { Router } from '@angular/router';
 | 
			
		||||
import { Directive, ElementRef, inject, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
 | 
			
		||||
import { ScrollbarGeometry, ScrollbarPosition } from '@fuse/directives/scrollbar/scrollbar.types';
 | 
			
		||||
import { merge } from 'lodash-es';
 | 
			
		||||
import PerfectScrollbar from 'perfect-scrollbar';
 | 
			
		||||
@ -21,6 +20,9 @@ export class FuseScrollbarDirective implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
    static ngAcceptInputType_fuseScrollbar: BooleanInput;
 | 
			
		||||
    /* eslint-enable @typescript-eslint/naming-convention */
 | 
			
		||||
 | 
			
		||||
    private _elementRef = inject(ElementRef);
 | 
			
		||||
    private _platform = inject(Platform);
 | 
			
		||||
 | 
			
		||||
    @Input() fuseScrollbar: boolean = true;
 | 
			
		||||
    @Input() fuseScrollbarOptions: PerfectScrollbar.Options;
 | 
			
		||||
 | 
			
		||||
@ -29,17 +31,6 @@ export class FuseScrollbarDirective implements OnChanges, OnInit, OnDestroy
 | 
			
		||||
    private _ps: PerfectScrollbar;
 | 
			
		||||
    private _unsubscribeAll: Subject<any> = new Subject<any>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _elementRef: ElementRef,
 | 
			
		||||
        private _platform: Platform,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
    )
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -17,13 +17,6 @@ export class FuseMockApiService
 | 
			
		||||
        'options': new Map<string, FuseMockApiHandler>(),
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,12 +1,5 @@
 | 
			
		||||
export class FuseMockApiUtils
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -10,13 +10,6 @@ import { Pipe, PipeTransform } from '@angular/core';
 | 
			
		||||
})
 | 
			
		||||
export class FuseFindByKeyPipe implements PipeTransform
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Transform
 | 
			
		||||
     *
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
import { Inject, Injectable } from '@angular/core';
 | 
			
		||||
import { inject, Injectable } from '@angular/core';
 | 
			
		||||
import { FUSE_CONFIG } from '@fuse/services/config/config.constants';
 | 
			
		||||
import { merge } from 'lodash-es';
 | 
			
		||||
import { BehaviorSubject, Observable } from 'rxjs';
 | 
			
		||||
@ -6,16 +6,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FuseConfigService
 | 
			
		||||
{
 | 
			
		||||
    private _config: BehaviorSubject<any>;
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(@Inject(FUSE_CONFIG) config: any)
 | 
			
		||||
    {
 | 
			
		||||
        // Private
 | 
			
		||||
        this._config = new BehaviorSubject(config);
 | 
			
		||||
    }
 | 
			
		||||
    private _config = new BehaviorSubject(inject(FUSE_CONFIG));
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
 | 
			
		||||
@ -30,13 +30,6 @@ export class FuseConfirmationService
 | 
			
		||||
        dismissible: false,
 | 
			
		||||
    };
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Public methods
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { NgClass, NgIf } from '@angular/common';
 | 
			
		||||
import { Component, Inject, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { Component, inject, ViewEncapsulation } from '@angular/core';
 | 
			
		||||
import { MatButtonModule } from '@angular/material/button';
 | 
			
		||||
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
 | 
			
		||||
import { MatIconModule } from '@angular/material/icon';
 | 
			
		||||
@ -31,11 +31,5 @@ import { FuseConfirmationConfig } from '@fuse/services/confirmation/confirmation
 | 
			
		||||
})
 | 
			
		||||
export class FuseConfirmationDialogComponent
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(@Inject(MAT_DIALOG_DATA) public data: FuseConfirmationConfig)
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    data: FuseConfirmationConfig = inject(MAT_DIALOG_DATA);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,3 @@
 | 
			
		||||
import { HttpClient } from '@angular/common/http';
 | 
			
		||||
import { Injectable } from '@angular/core';
 | 
			
		||||
import { BehaviorSubject, Observable } from 'rxjs';
 | 
			
		||||
 | 
			
		||||
@ -11,13 +10,6 @@ export class FuseLoadingService
 | 
			
		||||
    private _show$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
 | 
			
		||||
    private _urlMap: Map<string, boolean> = new Map<string, boolean>();
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(private _httpClient: HttpClient)
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
@ -1,5 +1,5 @@
 | 
			
		||||
import { BreakpointObserver, BreakpointState } from '@angular/cdk/layout';
 | 
			
		||||
import { Injectable } from '@angular/core';
 | 
			
		||||
import { inject, Injectable } from '@angular/core';
 | 
			
		||||
import { FuseConfigService } from '@fuse/services/config';
 | 
			
		||||
import { fromPairs } from 'lodash-es';
 | 
			
		||||
import { map, Observable, ReplaySubject, switchMap } from 'rxjs';
 | 
			
		||||
@ -7,15 +7,15 @@ import { map, Observable, ReplaySubject, switchMap } from 'rxjs';
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FuseMediaWatcherService
 | 
			
		||||
{
 | 
			
		||||
    private _breakpointObserver = inject(BreakpointObserver);
 | 
			
		||||
    private _fuseConfigService = inject(FuseConfigService);
 | 
			
		||||
 | 
			
		||||
    private _onMediaChange: ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }> = new ReplaySubject<{ matchingAliases: string[]; matchingQueries: any }>(1);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        private _breakpointObserver: BreakpointObserver,
 | 
			
		||||
        private _fuseConfigService: FuseConfigService,
 | 
			
		||||
    )
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
        this._fuseConfigService.config$.pipe(
 | 
			
		||||
            map(config => fromPairs(Object.entries(config.screens).map(([alias, screen]) => ([alias, `(min-width: ${screen})`])))),
 | 
			
		||||
 | 
			
		||||
@ -1,15 +1,17 @@
 | 
			
		||||
import { Platform } from '@angular/cdk/platform';
 | 
			
		||||
import { Injectable } from '@angular/core';
 | 
			
		||||
import { inject, Injectable } from '@angular/core';
 | 
			
		||||
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FusePlatformService
 | 
			
		||||
{
 | 
			
		||||
    private _platform = inject(Platform);
 | 
			
		||||
 | 
			
		||||
    osName = 'os-unknown';
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(private _platform: Platform)
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
        // If the platform is not a browser, return immediately
 | 
			
		||||
        if ( !this._platform.isBrowser )
 | 
			
		||||
 | 
			
		||||
@ -1,18 +1,18 @@
 | 
			
		||||
import { DOCUMENT } from '@angular/common';
 | 
			
		||||
import { Inject, Injectable } from '@angular/core';
 | 
			
		||||
import { inject, Injectable } from '@angular/core';
 | 
			
		||||
import { NavigationEnd, Router } from '@angular/router';
 | 
			
		||||
import { filter, take } from 'rxjs';
 | 
			
		||||
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FuseSplashScreenService
 | 
			
		||||
{
 | 
			
		||||
    private _document = inject(DOCUMENT);
 | 
			
		||||
    private _router = inject(Router);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor(
 | 
			
		||||
        @Inject(DOCUMENT) private _document: any,
 | 
			
		||||
        private _router: Router,
 | 
			
		||||
    )
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
        // Hide it on the first NavigationEnd event
 | 
			
		||||
        this._router.events
 | 
			
		||||
 | 
			
		||||
@ -4,13 +4,6 @@ import { IsActiveMatchOptions } from '@angular/router';
 | 
			
		||||
@Injectable({providedIn: 'root'})
 | 
			
		||||
export class FuseUtilsService
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * Constructor
 | 
			
		||||
     */
 | 
			
		||||
    constructor()
 | 
			
		||||
    {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
    // @ Accessors
 | 
			
		||||
    // -----------------------------------------------------------------------------------------------------
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user