import { AppStore , getUserProfile } from '@alfresco/aca-shared/store' ; import { DocumentListPresetRef , ProfileState } from '@alfresco/adf-extensions' ; import { BreakpointObserver , Breakpoints } from '@angular/cdk/layout' ; import { Component , OnInit } from '@angular/core' ; import { Store } from '@ngrx/store' ; import { Observable } from 'rxjs' ; import { ContentManagementService } from '../../services/content-management.service' ; import { PageComponent } from '../page.component' ; import { AppExtensionService } from '@alfresco/aca-shared' ; @ Component ( { templateUrl : './trashcan.component.html' } ) export class TrashcanComponent extends PageComponent implements OnInit { isSmallScreen = false ; user$ : Observable < ProfileState > ; columns : DocumentListPresetRef [ ] = [ ] ; constructor ( content , extensions , store , private breakpointObserver ) { super ( store , extensions , content ) ; this . user$ = this . store . select ( getUserProfile ) ; } ngOnInit ( ) { super . ngOnInit ( ) ; this . subscriptions . push ( this . breakpointObserver . observe ( [ Breakpoints . HandsetPortrait , Breakpoints . HandsetLandscape ] ) . subscribe ( ( result ) => { this . isSmallScreen = result . matches ; } ) ) ; this . columns = this . extensions . documentListPresets . trashcan || [ ] ; } }