import { Component } from '@angular/core' ; import { HsConfig } from './../../config.service' ; import { HsCoreService } from '../core/core.service' ; import { HsLayoutService } from '../layout/layout.service' ; import { HsSidebarService } from './sidebar.service' ; @ Component ( { selector : 'hs-mini-sidebar' , templateUrl : './partials/sidebar.html' , } ) export class HsMiniSidebarComponent { constructor ( public HsCoreService , public HsSidebarService , public HsLayoutService , public HsConfig ) { } /**
     * Seat weather to show all sidebar buttons or just a
     * subset of important ones
     */ toggleUnimportant ( ) { this . HsSidebarService . showUnimportant = ! this . HsSidebarService . showUnimportant ; } /**
     * Toggle sidebar mode between expanded and narrow
     */ toggleSidebar ( ) { this . HsLayoutService . sidebarExpanded = ! this . HsLayoutService . sidebarExpanded ; setTimeout ( ( ) => { this . HsCoreService . updateMapSize ( ) ; } , 110 ) ; } }