-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into change-over-time-chart
- Loading branch information
Showing
33 changed files
with
547 additions
and
280 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,8 @@ | |
"shpjs", | ||
"geojson-rbush", | ||
"polylabel", | ||
"file-saver" | ||
"file-saver", | ||
"canvg" | ||
] | ||
}, | ||
"configurations": { | ||
|
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 |
---|---|---|
|
@@ -138,6 +138,7 @@ export class MapManager { | |
weight: 5, | ||
}, | ||
templineStyle: { | ||
radius: 0, | ||
color: '#000', | ||
weight: 5, | ||
}, | ||
|
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
21 changes: 21 additions & 0 deletions
21
...e/src/app/treatments/expanded-direct-impact-map/expanded-direct-impact-map.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 @@ | ||
<sg-modal | ||
[title]="(mapPanelTitle$ | async) || ''" | ||
primaryButtonText="Create" | ||
[scrollableContent]="false" | ||
[showBorders]="true" | ||
[hasFooter]="false" | ||
(clickedClose)="close()" | ||
width="full" | ||
class="expanded-maps-modal"> | ||
<div modalBodyContent class="expanded-maps"> | ||
<app-direct-impacts-synced-maps | ||
*ngIf=" | ||
(showTreatmentPrescription$ | async) === false | ||
"></app-direct-impacts-synced-maps> | ||
<app-treatment-map | ||
[showProjectAreaTooltips]="false" | ||
*ngIf="showTreatmentPrescription$ | async"></app-treatment-map> | ||
<app-treatment-legend | ||
*ngIf="showTreatmentPrescription$ | async"></app-treatment-legend> | ||
</div> | ||
</sg-modal> |
21 changes: 21 additions & 0 deletions
21
...e/src/app/treatments/expanded-direct-impact-map/expanded-direct-impact-map.component.scss
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 @@ | ||
@import "mixins"; | ||
|
||
.expanded-maps { | ||
height: 90vh; | ||
position: relative; | ||
} | ||
|
||
::ng-deep { | ||
sg-modal.expanded-maps-modal { | ||
|
||
&.full { | ||
width: 80vw; | ||
} | ||
|
||
.header { | ||
@include h5(); | ||
height: 39px; | ||
} | ||
} | ||
} | ||
|
32 changes: 32 additions & 0 deletions
32
...rc/app/treatments/expanded-direct-impact-map/expanded-direct-impact-map.component.spec.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,32 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ExpandedDirectImpactMapComponent } from './expanded-direct-impact-map.component'; | ||
import { MockProvider } from 'ng-mocks'; | ||
import { DirectImpactsStateService } from '../direct-impacts.state.service'; | ||
import { BehaviorSubject } from 'rxjs'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
|
||
describe('ExpandedDirectImpactMapComponent', () => { | ||
let component: ExpandedDirectImpactMapComponent; | ||
let fixture: ComponentFixture<ExpandedDirectImpactMapComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ExpandedDirectImpactMapComponent], | ||
providers: [ | ||
MockProvider(DirectImpactsStateService, { | ||
activeStand$: new BehaviorSubject(null), | ||
}), | ||
{ provide: MatDialogRef, useValue: {} }, | ||
], | ||
}).compileComponents(); | ||
|
||
fixture = TestBed.createComponent(ExpandedDirectImpactMapComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
40 changes: 40 additions & 0 deletions
40
...ace/src/app/treatments/expanded-direct-impact-map/expanded-direct-impact-map.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,40 @@ | ||
import { Component } from '@angular/core'; | ||
import { AsyncPipe, NgIf } from '@angular/common'; | ||
import { ModalComponent } from '@styleguide'; | ||
import { StandDataChartComponent } from '../stand-data-chart/stand-data-chart.component'; | ||
import { DirectImpactsStateService } from '../direct-impacts.state.service'; | ||
import { MatDialogRef } from '@angular/material/dialog'; | ||
import { DirectImpactsSyncedMapsComponent } from '../direct-impacts-synced-maps/direct-impacts-synced-maps.component'; | ||
import { TreatmentMapComponent } from '../treatment-map/treatment-map.component'; | ||
import { TreatmentLegendComponent } from '../treatment-legend/treatment-legend.component'; | ||
|
||
@Component({ | ||
selector: 'app-expanded-direct-impact-map', | ||
standalone: true, | ||
imports: [ | ||
AsyncPipe, | ||
ModalComponent, | ||
StandDataChartComponent, | ||
DirectImpactsSyncedMapsComponent, | ||
TreatmentMapComponent, | ||
TreatmentLegendComponent, | ||
NgIf, | ||
], | ||
templateUrl: './expanded-direct-impact-map.component.html', | ||
styleUrl: './expanded-direct-impact-map.component.scss', | ||
}) | ||
export class ExpandedDirectImpactMapComponent { | ||
constructor( | ||
private directImpactsStateService: DirectImpactsStateService, | ||
public dialogRef: MatDialogRef<ExpandedDirectImpactMapComponent> | ||
) {} | ||
|
||
showTreatmentPrescription$ = | ||
this.directImpactsStateService.showTreatmentPrescription$; | ||
|
||
mapPanelTitle$ = this.directImpactsStateService.mapPanelTitle$; | ||
|
||
close() { | ||
this.dialogRef.close(); | ||
} | ||
} |
Oops, something went wrong.