import { Component , Input } from '@angular/core' ; import { RouterLinkActive } from '@angular/router' ; import { ObNavTreeItemModel } from '../nav-tree-item.model' ; @ Component ( { selector : 'ob-nav-tree' , exportAs : 'obNavTree' , host : { class : 'ob-nav-tree' } , template : '' } ) export class ObMockNavTreeComponent { static DEFAULTS = { VARIANT : 'ob-nav-bordered ob-nav-hover' , HIGHLIGHT : 'ob-pattern-highlight' , LABEL_FORMATTER : { } } ; @ Input ( ) items : ObNavTreeItemModel [ ] = [ ] ; @ Input ( ) prefix = 'nav-tree' ; @ Input ( ) filterPattern : string ; @ Input ( ) labelFormatter : any ; @ Input ( ) variant = ObMockNavTreeComponent . DEFAULTS . VARIANT ; @ Input ( ) activateAncestors = true ; @ Input ( ) patternMatcher ( item , pattern = '' ) { return true ; } visible ( item ) { return true ; } itemKey ( item ) { return `${ this . prefix }-${ item . id }` ; } isLinkActive ( rla , item ) { return true ; } changeCollapsed ( items , collapsed , all = false ) { } collapseAll ( ) { } expandAll ( ) { } }