|
1 | 1 | <mat-accordion multi> |
2 | | - <mat-expansion-panel |
3 | | - *ngIf="(breakpoint$ | async) === breakpoints.MOBILE" |
4 | | - [expanded]="defaultPanelOpenState" |
5 | | - [disabled]="panelIsDisabled" |
6 | | - (click)="selectPanel(panels.SEARCH)" |
7 | | - [class.raised-section]="isSelected(panels.SEARCH)" |
8 | | - > |
9 | | - <mat-expansion-panel-header |
10 | | - [collapsedHeight]="customCollapsedHeight" |
11 | | - [expandedHeight]="customExpandedHeight" |
| 2 | + @if ((breakpoint$ | async) === breakpoints.MOBILE) { |
| 3 | + <mat-expansion-panel |
| 4 | + [expanded]="defaultPanelOpenState" |
| 5 | + [disabled]="panelIsDisabled" |
| 6 | + (click)="selectPanel(panels.SEARCH)" |
| 7 | + [class.raised-section]="isSelected(panels.SEARCH)" |
12 | 8 | > |
13 | | - <mat-panel-title> |
14 | | - {{ 'SEARCH_OPTIONS' | translate }} |
15 | | - </mat-panel-title> |
16 | | - </mat-expansion-panel-header> |
17 | | - |
18 | | - <div style="display: flex; margin-top: 25px"> |
19 | | - <app-search-type-selector style="margin-right: 10px"> |
20 | | - </app-search-type-selector> |
21 | | - </div> |
22 | | - </mat-expansion-panel> |
23 | | - |
24 | | - <mat-expansion-panel |
25 | | - *ngIf="(breakpoint$ | async) === breakpoints.MOBILE || !areResultsLoaded" |
26 | | - [expanded]="defaultPanelOpenState" |
27 | | - [disabled]="panelIsDisabled" |
28 | | - (click)="selectPanel(panels.MASTER)" |
29 | | - [class.raised-section]="isSelected(panels.MASTER)" |
30 | | - > |
31 | | - <mat-expansion-panel-header |
32 | | - [collapsedHeight]="customCollapsedHeight" |
33 | | - [expandedHeight]="customExpandedHeight" |
34 | | - > |
35 | | - <mat-panel-title> |
36 | | - {{ 'SCENE' | translate }} |
37 | | - </mat-panel-title> |
38 | | - </mat-expansion-panel-header> |
39 | | - |
40 | | - <div class="w100" style="display: flex; margin-top: 25px"> |
41 | | - <app-baseline-frame-reference-toggle></app-baseline-frame-reference-toggle> |
42 | | - <div style="display: flex; flex-direction: column" class="w100"> |
43 | | - @if (shouldUseFramesForReference) { |
44 | | - <app-dataset-selector |
45 | | - class="w100" |
46 | | - [(selected)]="selectedDataset" |
47 | | - (selectedChange)="onDatasetChange($event)" |
48 | | - [datasets]="datasets" |
49 | | - ></app-dataset-selector> |
50 | | - } |
51 | | - <app-master-scene-selector class="w100"></app-master-scene-selector> |
52 | | - </div> |
53 | | - </div> |
54 | | - <div class="bl-example"> |
55 | | - {{ 'EXAMPLE' | translate }}: |
56 | | - S1A_IW_SLC__1SSV_20150601T010209_20150601T010236_006173_00808F_20A0 |
57 | | - <app-copy-to-clipboard |
58 | | - value="S1A_IW_SLC__1SSV_20150601T010209_20150601T010236_006173_00808F_20A0" |
59 | | - prompt="{{ 'COPY_NAME' | translate }}" |
60 | | - style="margin: 0 3px" |
61 | | - class="clipboard-icon" |
62 | | - > |
63 | | - </app-copy-to-clipboard> |
64 | | - </div> |
65 | | - <div> |
66 | | - <app-docs-modal |
67 | | - url="https://docs.asf.alaska.edu/vertex/baseline/" |
68 | | - text="{{ 'WHAT_IS_BASELINE' | translate }}?" |
| 9 | + <mat-expansion-panel-header |
| 10 | + [collapsedHeight]="customCollapsedHeight" |
| 11 | + [expandedHeight]="customExpandedHeight" |
69 | 12 | > |
70 | | - </app-docs-modal> |
71 | | - </div> |
72 | | - </mat-expansion-panel> |
| 13 | + <mat-panel-title> |
| 14 | + {{ 'SEARCH_OPTIONS' | translate }} |
| 15 | + </mat-panel-title> |
| 16 | + </mat-expansion-panel-header> |
| 17 | + <div style="display: flex; margin-top: 25px"> |
| 18 | + <app-search-type-selector style="margin-right: 10px"> |
| 19 | + </app-search-type-selector> |
| 20 | + </div> |
| 21 | + </mat-expansion-panel> |
| 22 | + } |
73 | 23 |
|
74 | | - <mat-expansion-panel |
75 | | - [expanded]="defaultPanelOpenState" |
76 | | - [disabled]="panelIsDisabled" |
77 | | - (click)="selectPanel(panels.DATE)" |
78 | | - *ngIf="areResultsLoaded" |
79 | | - [class.raised-section]="isSelected(panels.DATE)" |
80 | | - > |
81 | | - <mat-expansion-panel-header |
82 | | - [collapsedHeight]="customCollapsedHeight" |
83 | | - [expandedHeight]="customExpandedHeight" |
| 24 | + @if ((breakpoint$ | async) === breakpoints.MOBILE || !areResultsLoaded) { |
| 25 | + <mat-expansion-panel |
| 26 | + [expanded]="defaultPanelOpenState" |
| 27 | + [disabled]="panelIsDisabled" |
| 28 | + (click)="selectPanel(panels.MASTER)" |
| 29 | + [class.raised-section]="isSelected(panels.MASTER)" |
84 | 30 | > |
85 | | - <mat-panel-title style="align-items: center"> |
86 | | - {{ 'DATA_FILTERS' | translate }} |
| 31 | + <mat-expansion-panel-header |
| 32 | + [collapsedHeight]="customCollapsedHeight" |
| 33 | + [expandedHeight]="customExpandedHeight" |
| 34 | + > |
| 35 | + <mat-panel-title> |
| 36 | + {{ 'SCENE' | translate }} |
| 37 | + </mat-panel-title> |
| 38 | + </mat-expansion-panel-header> |
| 39 | + <div class="w100" style="display: flex; margin-top: 25px"> |
| 40 | + <app-baseline-frame-reference-toggle></app-baseline-frame-reference-toggle> |
| 41 | + <div style="display: flex; flex-direction: column" class="w100"> |
| 42 | + @if (shouldUseFramesForReference) { |
| 43 | + <app-dataset-selector |
| 44 | + class="w100" |
| 45 | + [(selected)]="selectedDataset" |
| 46 | + (selectedChange)="onDatasetChange($event)" |
| 47 | + [datasets]="datasets" |
| 48 | + ></app-dataset-selector> |
| 49 | + } |
| 50 | + <app-master-scene-selector class="w100"></app-master-scene-selector> |
| 51 | + </div> |
| 52 | + </div> |
| 53 | + <div class="bl-example"> |
| 54 | + {{ 'EXAMPLE' | translate }}: |
| 55 | + S1A_IW_SLC__1SSV_20150601T010209_20150601T010236_006173_00808F_20A0 |
| 56 | + <app-copy-to-clipboard |
| 57 | + value="S1A_IW_SLC__1SSV_20150601T010209_20150601T010236_006173_00808F_20A0" |
| 58 | + prompt="{{ 'COPY_NAME' | translate }}" |
| 59 | + style="margin: 0 3px" |
| 60 | + class="clipboard-icon" |
| 61 | + > |
| 62 | + </app-copy-to-clipboard> |
| 63 | + </div> |
| 64 | + <div> |
87 | 65 | <app-docs-modal |
88 | | - class="info-icon" |
89 | | - url="https://docs.asf.alaska.edu/vertex/manual/#date-filters" |
| 66 | + url="https://docs.asf.alaska.edu/vertex/baseline/" |
| 67 | + text="{{ 'WHAT_IS_BASELINE' | translate }}?" |
90 | 68 | > |
91 | 69 | </app-docs-modal> |
92 | | - </mat-panel-title> |
93 | | - </mat-expansion-panel-header> |
94 | | - |
95 | | - <div style="margin-top: 20px"> |
96 | | - <app-date-selector></app-date-selector> |
97 | | - </div> |
98 | | - <div style="margin-top: 20px"> |
99 | | - <app-season-selector></app-season-selector> |
100 | | - </div> |
101 | | - </mat-expansion-panel> |
| 70 | + </div> |
| 71 | + </mat-expansion-panel> |
| 72 | + } |
102 | 73 |
|
103 | | - <mat-expansion-panel |
104 | | - [expanded]="defaultPanelOpenState" |
105 | | - [disabled]="panelIsDisabled" |
106 | | - (click)="selectPanel(panels.BASELINE)" |
107 | | - *ngIf="areResultsLoaded" |
108 | | - [class.raised-section]="isSelected(panels.BASELINE)" |
109 | | - > |
110 | | - <mat-expansion-panel-header |
111 | | - [collapsedHeight]="customCollapsedHeight" |
112 | | - [expandedHeight]="customExpandedHeight" |
| 74 | + @if (areResultsLoaded) { |
| 75 | + <mat-expansion-panel |
| 76 | + [expanded]="defaultPanelOpenState" |
| 77 | + [disabled]="panelIsDisabled" |
| 78 | + (click)="selectPanel(panels.DATE)" |
| 79 | + [class.raised-section]="isSelected(panels.DATE)" |
113 | 80 | > |
114 | | - <mat-panel-title style="align-items: center"> |
115 | | - {{ 'BASELINE_CRITERIA' | translate }} |
116 | | - <app-docs-modal |
117 | | - class="info-icon" |
118 | | - url="https://docs.asf.alaska.edu/vertex/baseline/#baseline-criteria" |
119 | | - > |
120 | | - </app-docs-modal> |
121 | | - </mat-panel-title> |
122 | | - </mat-expansion-panel-header> |
| 81 | + <mat-expansion-panel-header |
| 82 | + [collapsedHeight]="customCollapsedHeight" |
| 83 | + [expandedHeight]="customExpandedHeight" |
| 84 | + > |
| 85 | + <mat-panel-title style="align-items: center"> |
| 86 | + {{ 'DATA_FILTERS' | translate }} |
| 87 | + <app-docs-modal |
| 88 | + class="info-icon" |
| 89 | + url="https://docs.asf.alaska.edu/vertex/manual/#date-filters" |
| 90 | + > |
| 91 | + </app-docs-modal> |
| 92 | + </mat-panel-title> |
| 93 | + </mat-expansion-panel-header> |
| 94 | + <div style="margin-top: 20px"> |
| 95 | + <app-date-selector></app-date-selector> |
| 96 | + </div> |
| 97 | + <div style="margin-top: 20px"> |
| 98 | + <app-season-selector></app-season-selector> |
| 99 | + </div> |
| 100 | + </mat-expansion-panel> |
| 101 | + } |
123 | 102 |
|
124 | | - <app-baseline-sliders></app-baseline-sliders> |
125 | | - </mat-expansion-panel> |
| 103 | + @if (areResultsLoaded) { |
| 104 | + <mat-expansion-panel |
| 105 | + [expanded]="defaultPanelOpenState" |
| 106 | + [disabled]="panelIsDisabled" |
| 107 | + (click)="selectPanel(panels.BASELINE)" |
| 108 | + [class.raised-section]="isSelected(panels.BASELINE)" |
| 109 | + > |
| 110 | + <mat-expansion-panel-header |
| 111 | + [collapsedHeight]="customCollapsedHeight" |
| 112 | + [expandedHeight]="customExpandedHeight" |
| 113 | + > |
| 114 | + <mat-panel-title style="align-items: center"> |
| 115 | + {{ 'BASELINE_CRITERIA' | translate }} |
| 116 | + <app-docs-modal |
| 117 | + class="info-icon" |
| 118 | + url="https://docs.asf.alaska.edu/vertex/baseline/#baseline-criteria" |
| 119 | + > |
| 120 | + </app-docs-modal> |
| 121 | + </mat-panel-title> |
| 122 | + </mat-expansion-panel-header> |
| 123 | + <app-baseline-sliders></app-baseline-sliders> |
| 124 | + </mat-expansion-panel> |
| 125 | + } |
126 | 126 | </mat-accordion> |
0 commit comments