-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'ASF-Disco-Repo/tyler/displacement' into…
… andy/displacement
- Loading branch information
Showing
30 changed files
with
384 additions
and
269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/app/components/filters-dropdown/timeseries-filters/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from './timeseries-filters.module'; | ||
export * from './timeseries-filters.component'; |
21 changes: 21 additions & 0 deletions
21
src/app/components/filters-dropdown/timeseries-filters/timeseries-filters.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<mat-accordion multi> | ||
<mat-expansion-panel | ||
*ngIf="(breakpoint$ | async) === breakpoints.MOBILE" | ||
[expanded]="defaultPanelOpenState" [disabled]="panelIsDisabled" | ||
(click)="selectPanel(panels.SEARCH)" | ||
[class.raised-section]="isSelected(panels.SEARCH)"> | ||
|
||
<mat-expansion-panel-header [collapsedHeight]="customCollapsedHeight" [expandedHeight]="customExpandedHeight"> | ||
<mat-panel-title> | ||
{{ 'SEARCH_OPTIONS' | translate }} | ||
</mat-panel-title> | ||
</mat-expansion-panel-header> | ||
|
||
<div style="display: flex; margin-top: 25px;"> | ||
<app-search-type-selector style="margin-right: 10px;"> | ||
</app-search-type-selector> | ||
</div> | ||
</mat-expansion-panel> | ||
|
||
</mat-accordion> | ||
|
Empty file.
67 changes: 67 additions & 0 deletions
67
src/app/components/filters-dropdown/timeseries-filters/timeseries-filters.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
import {Component, OnDestroy, OnInit} from '@angular/core'; | ||
|
||
import { AppState } from '@store'; | ||
import { Store } from '@ngrx/store'; | ||
import * as scenesStore from '@store/scenes'; | ||
|
||
import { SubSink } from 'subsink'; | ||
import * as models from '@models'; | ||
import { ScreenSizeService } from '@services'; | ||
|
||
enum FilterPanel { | ||
SEARCH = 'Search Options', | ||
MASTER = 'Scene', | ||
FILTER1 = 'Spatial Filter', | ||
FILTER2 = 'Temporal Filter', | ||
DATE = 'Date', | ||
SEASON = 'Season', | ||
OVERLAP = 'Overlap' | ||
} | ||
@Component({ | ||
selector: 'app-timeseries-filters', | ||
templateUrl: './timeseries-filters.component.html', | ||
styleUrl: './timeseries-filters.component.scss' | ||
}) | ||
export class TimeseriesFiltersComponent implements OnDestroy, OnInit { | ||
public breakpoint$ = this.screenSize.breakpoint$; | ||
public breakpoints = models.Breakpoints; | ||
public areResultsLoaded: boolean; | ||
|
||
selectedPanel: FilterPanel | null = null; | ||
panels = FilterPanel; | ||
defaultPanelOpenState = true; | ||
panelIsDisabled = true; | ||
customCollapsedHeight = '30px'; | ||
customExpandedHeight = '30px'; | ||
|
||
private subs = new SubSink(); | ||
|
||
constructor( | ||
private store$: Store<AppState>, | ||
private screenSize: ScreenSizeService, | ||
) { } | ||
|
||
ngOnInit(): void { | ||
this.subs.add( | ||
this.store$.select(scenesStore.getAreResultsLoaded).subscribe( | ||
areLoaded => this.areResultsLoaded = areLoaded | ||
) | ||
); | ||
} | ||
|
||
public isSelected(panel: FilterPanel): boolean { | ||
return this.selectedPanel === panel; | ||
} | ||
|
||
public selectPanel(panel: FilterPanel): void { | ||
this.selectedPanel = panel; | ||
} | ||
|
||
public onOpenHelp(url: string): void { | ||
window.open(url); | ||
} | ||
|
||
ngOnDestroy() { | ||
this.subs.unsubscribe(); | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
src/app/components/filters-dropdown/timeseries-filters/timeseries-filters.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { MatExpansionModule } from '@angular/material/expansion'; | ||
|
||
import { MatSharedModule } from '@shared'; | ||
import { SeasonSelectorModule } from '@components/shared/selectors/season-selector'; | ||
import { SbasOverlapSelectorModule } from '@components/shared/selectors/sbas-overlap-selector'; | ||
import { DateSelectorModule } from '@components/shared/selectors/date-selector'; | ||
import { MasterSceneSelectorModule } from '@components/shared/selectors/master-scene-selector'; | ||
import { SearchTypeSelectorModule } from '@components/shared/selectors/search-type-selector'; | ||
import { ResultsMenuModule } from '@components/results-menu'; | ||
import { CopyToClipboardModule } from '@components/shared/copy-to-clipboard'; | ||
import { DocsModalModule } from '@components/shared/docs-modal'; | ||
import { SharedModule } from "@shared"; | ||
import { TimeseriesFiltersComponent } from './timeseries-filters.component'; | ||
|
||
|
||
@NgModule({ | ||
declarations: [TimeseriesFiltersComponent], | ||
imports: [ | ||
CommonModule, | ||
MatExpansionModule, | ||
MatSharedModule, | ||
SeasonSelectorModule, | ||
SbasOverlapSelectorModule, | ||
DateSelectorModule, | ||
MasterSceneSelectorModule, | ||
SearchTypeSelectorModule, | ||
ResultsMenuModule, | ||
CopyToClipboardModule, | ||
DocsModalModule, | ||
SharedModule | ||
], | ||
exports: [ | ||
TimeseriesFiltersComponent | ||
] | ||
}) | ||
export class TimeseriesFiltersModule { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.