@@ -124,7 +124,6 @@ import { TableWidgetModel } from './table-widget.model';
124124export class TableWidgetRendererComponent
125125 extends WidgetRenderer < TableWidgetBaseModel , TableDataSource < TableRow > | undefined >
126126 implements OnInit {
127-
128127 private static readonly DEFAULT_TAB_INDEX : number = 0 ;
129128
130129 public viewItems : ToggleItem < string > [ ] = [ ] ;
@@ -143,7 +142,9 @@ export class TableWidgetRendererComponent
143142 private readonly searchFilterSubject : Subject < TableFilter [ ] > = new BehaviorSubject < TableFilter [ ] > ( [ ] ) ;
144143 private readonly selectFilterSubject : BehaviorSubject < TableFilter [ ] > = new BehaviorSubject < TableFilter [ ] > ( [ ] ) ;
145144
146- private readonly queryPropertiesSubject : BehaviorSubject < Dictionary < unknown > > = new BehaviorSubject < Dictionary < unknown > > ( { } ) ;
145+ private readonly queryPropertiesSubject : BehaviorSubject < Dictionary < unknown > > = new BehaviorSubject <
146+ Dictionary < unknown >
147+ > ( { } ) ;
147148 public queryProperties$ : Observable < Dictionary < unknown > > = this . queryPropertiesSubject . asObservable ( ) ;
148149
149150 public constructor (
@@ -241,9 +242,9 @@ export class TableWidgetRendererComponent
241242 map ( ( [ options , filters ] ) => {
242243 const foundPreferences = preferences . selections
243244 ? preferences . selections . find (
244- preferencesSelectionControl =>
245- selectControlModel . placeholder === preferencesSelectionControl . placeholder
246- )
245+ preferencesSelectionControl =>
246+ selectControlModel . placeholder === preferencesSelectionControl . placeholder
247+ )
247248 : undefined ;
248249
249250 return (
@@ -361,11 +362,10 @@ export class TableWidgetRendererComponent
361362 private updateSelectionPreferences ( tableSelectControls : TableSelectControl [ ] ) : void {
362363 if ( isNonEmptyString ( this . model . getId ( ) ) ) {
363364 this . getSessionPreferences ( ) . subscribe ( preferences =>
364- this . setSessionPreferences (
365- {
366- ...preferences ,
367- selections : tableSelectControls
368- } )
365+ this . setSessionPreferences ( {
366+ ...preferences ,
367+ selections : tableSelectControls
368+ } )
369369 ) ;
370370 }
371371 }
@@ -397,11 +397,10 @@ export class TableWidgetRendererComponent
397397 private updateCheckboxPreferences ( tableCheckboxControls : TableCheckboxControl [ ] ) : void {
398398 if ( isNonEmptyString ( this . model . getId ( ) ) ) {
399399 this . getSessionPreferences ( ) . subscribe ( preferences =>
400- this . setSessionPreferences (
401- {
402- ...preferences ,
403- checkboxes : tableCheckboxControls
404- } )
400+ this . setSessionPreferences ( {
401+ ...preferences ,
402+ checkboxes : tableCheckboxControls
403+ } )
405404 ) ;
406405 }
407406 }
@@ -433,8 +432,8 @@ export class TableWidgetRendererComponent
433432
434433 const found = preferences . checkboxes
435434 ? preferences . checkboxes . find ( preferencesCheckboxControl =>
436- options . some ( option => option . label === preferencesCheckboxControl . label )
437- )
435+ options . some ( option => option . label === preferencesCheckboxControl . label )
436+ )
438437 : undefined ;
439438
440439 return (
@@ -481,11 +480,10 @@ export class TableWidgetRendererComponent
481480 public onColumnsChange ( columns : TableColumnConfig [ ] ) : void {
482481 if ( isNonEmptyString ( this . model . getId ( ) ) ) {
483482 this . getLocalPreferences ( ) . subscribe ( preferences =>
484- this . setLocalPreferences (
485- {
486- ...preferences ,
487- columns : columns . map ( column => this . dehydratePersistedColumnConfig ( column ) )
488- } )
483+ this . setLocalPreferences ( {
484+ ...preferences ,
485+ columns : columns . map ( column => this . dehydratePersistedColumnConfig ( column ) )
486+ } )
489487 ) ;
490488 }
491489 }
@@ -553,9 +551,7 @@ export class TableWidgetRendererComponent
553551 : of ( { } ) ;
554552 }
555553
556- private setViewPreferences (
557- preferences : TableWidgetViewPreferences
558- ) : void {
554+ private setViewPreferences ( preferences : TableWidgetViewPreferences ) : void {
559555 if ( isNonEmptyString ( this . model . viewId ) ) {
560556 this . preferenceService . set ( this . model . viewId , preferences , StorageType . Local ) ;
561557 }
@@ -564,14 +560,12 @@ export class TableWidgetRendererComponent
564560 private getLocalPreferences ( ) : Observable < TableWidgetLocalPreferences > {
565561 return isNonEmptyString ( this . model . getId ( ) )
566562 ? this . preferenceService
567- . get < TableWidgetLocalPreferences > ( this . model . getId ( ) ! , { } , StorageType . Local )
568- . pipe ( first ( ) )
563+ . get < TableWidgetLocalPreferences > ( this . model . getId ( ) ! , { } , StorageType . Local )
564+ . pipe ( first ( ) )
569565 : of ( { } ) ;
570566 }
571567
572- private setLocalPreferences (
573- preferences : TableWidgetLocalPreferences
574- ) : void {
568+ private setLocalPreferences ( preferences : TableWidgetLocalPreferences ) : void {
575569 if ( isNonEmptyString ( this . model . getId ( ) ) ) {
576570 this . preferenceService . set ( this . model . getId ( ) ! , preferences , StorageType . Local ) ;
577571 }
@@ -580,14 +574,12 @@ export class TableWidgetRendererComponent
580574 private getSessionPreferences ( ) : Observable < TableWidgetSessionPreferences > {
581575 return isNonEmptyString ( this . model . getId ( ) )
582576 ? this . preferenceService
583- . get < TableWidgetSessionPreferences > ( this . model . getId ( ) ! , { } , StorageType . Session )
584- . pipe ( first ( ) )
577+ . get < TableWidgetSessionPreferences > ( this . model . getId ( ) ! , { } , StorageType . Session )
578+ . pipe ( first ( ) )
585579 : of ( { } ) ;
586580 }
587581
588- private setSessionPreferences (
589- preferences : TableWidgetSessionPreferences
590- ) : void {
582+ private setSessionPreferences ( preferences : TableWidgetSessionPreferences ) : void {
591583 if ( isNonEmptyString ( this . model . getId ( ) ) ) {
592584 this . preferenceService . set ( this . model . getId ( ) ! , preferences , StorageType . Session ) ;
593585 }
0 commit comments