@@ -23,8 +23,8 @@ import { Bucket, Aggregations, Agg, AggregationsResult } from "../strixresult.mo
2323 styleUrls : [ './leftcolumn.component.css' ]
2424} )
2525export class LeftcolumnComponent implements OnInit {
26-
27- private gotMetadata = false ;
26+
27+ public gotMetadata = false ;
2828
2929 private metadataSubscription : Subscription ;
3030 private aggregatedResultSubscription : Subscription ;
@@ -34,13 +34,13 @@ export class LeftcolumnComponent implements OnInit {
3434 //private currentFilters: any[] = []; // TODO: Make some interface
3535 private unusedFacets : string [ ] = [ ] ;
3636
37- private openDocument = false ;
37+ public openDocument = false ;
3838
3939 private searchRedux : Observable < any > ;
4040 private include_facets : string [ ] = [ ]
4141 private availableCorpora : { [ key : string ] : StrixCorpusConfig } ;
4242 private mem_guessConfFromAttributeName : Function ;
43-
43+
4444
4545 constructor ( private metadataService : MetadataService ,
4646 private queryService : QueryService ,
@@ -69,7 +69,7 @@ export class LeftcolumnComponent implements OnInit {
6969
7070 this . aggregatedResultSubscription = queryService . aggregationResult$ . pipe ( skip ( 1 ) ) . subscribe (
7171 ( result : AggregationsResult ) => {
72- this . parseAggResults ( result )
72+ this . parseAggResults ( result )
7373 } ,
7474 error => null //this.errorMessage = <any>error
7575 ) ;
@@ -92,7 +92,7 @@ export class LeftcolumnComponent implements OnInit {
9292 } else {
9393 return "list"
9494 }
95-
95+
9696 } else {
9797 return ret
9898 }
@@ -130,7 +130,7 @@ export class LeftcolumnComponent implements OnInit {
130130 }
131131 return item . to
132132 } ) . to
133-
133+
134134 agg . min = _ . minBy ( agg . buckets , "from" ) . from
135135 agg . max = max
136136 agg . value = { range : { lte : agg . max , gte : agg . min } }
@@ -176,7 +176,7 @@ export class LeftcolumnComponent implements OnInit {
176176 if ( target && target . length ) {
177177 target [ 0 ] . selected = true
178178 } else {
179- // make sure selected filters don't disappear by adding them
179+ // make sure selected filters don't disappear by adding them
180180 // to incoming aggs array
181181 newValue . push ( target )
182182 }
@@ -194,7 +194,7 @@ export class LeftcolumnComponent implements OnInit {
194194 . value ( )
195195 this . unusedFacets = _ . difference ( result . unused_facets , [ "datefrom" , "dateto" ] ) ;
196196 }
197-
197+
198198 private chooseBucket ( aggregationKey : string , bucket : Bucket ) {
199199 bucket . selected = true
200200
@@ -246,7 +246,7 @@ export class LeftcolumnComponent implements OnInit {
246246 this . store . dispatch ( { type : SEARCH , payload : null } ) ;
247247 }
248248
249- private reloadStrix ( ) {
249+ public reloadStrix ( ) {
250250 window . location . href = window . location . pathname ;
251251 }
252252
@@ -267,10 +267,10 @@ export class LeftcolumnComponent implements OnInit {
267267 this . metadataService . loadedMetadata$
268268
269269 ) . subscribe ( ( [ result , { filters} , info ] : [ AggregationsResult , any , any ] ) => {
270- //this.zone.run(() => {
270+ //this.zone.run(() => {
271271 console . log ( "Leftcolumn init" , result , filters )
272272 this . parseAggResults ( result )
273-
273+
274274 let filterData = filters || [ ] ;
275275 // Clear all filters first (could probably be optimized)
276276 for ( let agg in this . aggregations ) {
0 commit comments