From c58254af91dadcc971186f75f37655a27511045f Mon Sep 17 00:00:00 2001 From: Lucho <33841664+LALuis@users.noreply.github.com> Date: Mon, 23 Dec 2024 14:32:57 -0300 Subject: [PATCH] PLAN-1778: New mat tabs --- src/interface/src/app/map/map.component.html | 16 +++++++++------- .../constraints-panel.component.html | 2 +- .../saved-scenarios.component.html | 4 ++-- .../saved-scenarios.component.scss | 2 +- .../scenarios-table-list.component.html | 2 +- .../project-areas-metrics.component.html | 2 +- .../direct-impacts-map-legend.component.html | 2 +- .../direct-impacts/direct-impacts.component.html | 2 +- .../map-controls/map-controls.component.html | 2 +- .../map-project-areas.component.html | 8 ++++---- .../map-rectangle/map-rectangle.component.html | 4 ++-- .../planning-area-layer.component.html | 4 ++-- .../src/styleguide/modal/modal.component.html | 2 +- 13 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/interface/src/app/map/map.component.html b/src/interface/src/app/map/map.component.html index 080f1ff44..4bdc72c29 100644 --- a/src/interface/src/app/map/map.component.html +++ b/src/interface/src/app/map/map.component.html @@ -37,7 +37,8 @@ class="draw-area-button" [ngClass]="{ selected: selectedAreaCreationAction === AreaCreationAction.DRAW, - deselected: selectedAreaCreationAction === AreaCreationAction.UPLOAD + deselected: + selectedAreaCreationAction === AreaCreationAction.UPLOAD, }" (click)="onAreaCreationActionChange(AreaCreationAction.DRAW)"> draw @@ -54,7 +55,8 @@ [ngClass]="{ selected: selectedAreaCreationAction === AreaCreationAction.UPLOAD, - deselected: selectedAreaCreationAction === AreaCreationAction.DRAW + deselected: + selectedAreaCreationAction === AreaCreationAction.DRAW, }" (click)="onAreaCreationActionChange(AreaCreationAction.UPLOAD)"> upload_file @@ -103,12 +105,12 @@
@@ -121,7 +123,7 @@
@@ -135,7 +137,7 @@
@@ -148,7 +150,7 @@
diff --git a/src/interface/src/app/plan/create-scenarios/constraints-panel/constraints-panel.component.html b/src/interface/src/app/plan/create-scenarios/constraints-panel/constraints-panel.component.html index eea60d4c2..17862d40d 100644 --- a/src/interface/src/app/plan/create-scenarios/constraints-panel/constraints-panel.component.html +++ b/src/interface/src/app/plan/create-scenarios/constraints-panel/constraints-panel.component.html @@ -60,7 +60,7 @@ *ngIf="focusedSelection === 'maxCost'" [ngClass]="{ error: - constraintsForm.hasError('notEnoughBudget') && maxCost?.touched + constraintsForm.hasError('notEnoughBudget') && maxCost?.touched, }"> Budget needs to be at least {{ calculateMinBudget() | currency: 'USD' : 'symbol' : '1.0-0' }} diff --git a/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.html b/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.html index af709de2b..9f4ad151d 100644 --- a/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.html +++ b/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.html @@ -25,7 +25,7 @@ [isLoading]="loading" [hasData]="totalScenarios > 0" [ngClass]="{ - 'margin-top': totalScenarios === 0 + 'margin-top': totalScenarios === 0, }" emptyStateTitle="No scenarios yet" [emptyStateContent]=" @@ -155,7 +155,7 @@

Scenarios

[isLoading]="loading" [hasData]="totalScenarios > 0" [ngClass]="{ - 'margin-top': totalScenarios === 0 + 'margin-top': totalScenarios === 0, }" emptyStateTitle="No scenarios yet" [emptyStateContent]=" diff --git a/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.scss b/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.scss index 9c89485c0..c45b026a2 100644 --- a/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.scss +++ b/src/interface/src/app/plan/plan-summary/saved-scenarios/saved-scenarios.component.scss @@ -178,6 +178,6 @@ app-section-loader { flex: 1; } -:host ::ng-deep .mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab { +.custom-tab-group ::ng-deep .mat-mdc-tab-header .mat-mdc-tab-label-container .mat-mdc-tab { flex-grow: 0; } diff --git a/src/interface/src/app/plan/plan-summary/scenarios-table-list/scenarios-table-list.component.html b/src/interface/src/app/plan/plan-summary/scenarios-table-list/scenarios-table-list.component.html index a657dd72c..25346a734 100644 --- a/src/interface/src/app/plan/plan-summary/scenarios-table-list/scenarios-table-list.component.html +++ b/src/interface/src/app/plan/plan-summary/scenarios-table-list/scenarios-table-list.component.html @@ -86,7 +86,7 @@ mat-row [ngClass]="{ 'scenario-row': highlightedScenarioRow?.id !== row.id, - highlight: highlightedScenarioRow?.id === row.id + highlight: highlightedScenarioRow?.id === row.id, }" *matRowDef="let row; columns: displayedColumns" (click)="highlightScenario(row)" diff --git a/src/interface/src/app/plan/project-areas-metrics/project-areas-metrics.component.html b/src/interface/src/app/plan/project-areas-metrics/project-areas-metrics.component.html index f33d7ef40..f1b4404d4 100644 --- a/src/interface/src/app/plan/project-areas-metrics/project-areas-metrics.component.html +++ b/src/interface/src/app/plan/project-areas-metrics/project-areas-metrics.component.html @@ -33,7 +33,7 @@

Metrics per Project area

mat-button (click)="toggleMapLayer(i)" [ngClass]="{ - ' selected': chart.metric_layer === (mapConditionLayer$ | async) + ' selected': chart.metric_layer === (mapConditionLayer$ | async), }"> map diff --git a/src/interface/src/app/treatments/direct-impacts-map-legend/direct-impacts-map-legend.component.html b/src/interface/src/app/treatments/direct-impacts-map-legend/direct-impacts-map-legend.component.html index 626c4e419..d10d201c9 100644 --- a/src/interface/src/app/treatments/direct-impacts-map-legend/direct-impacts-map-legend.component.html +++ b/src/interface/src/app/treatments/direct-impacts-map-legend/direct-impacts-map-legend.component.html @@ -3,7 +3,7 @@
{{ step }}
diff --git a/src/interface/src/app/treatments/direct-impacts/direct-impacts.component.html b/src/interface/src/app/treatments/direct-impacts/direct-impacts.component.html index d0d68465c..10627d18a 100644 --- a/src/interface/src/app/treatments/direct-impacts/direct-impacts.component.html +++ b/src/interface/src/app/treatments/direct-impacts/direct-impacts.component.html @@ -63,7 +63,7 @@

Direct Treatment Impacts

[paddedContent]="false" [buttons]="[ { icon: 'layers', actionName: 'layers' }, - { icon: 'open_in_full', actionName: 'expand' } + { icon: 'open_in_full', actionName: 'expand' }, ]" (clickedButton)="expandMaps()">
{{ mapPanelTitle$ | async }}
diff --git a/src/interface/src/app/treatments/map-controls/map-controls.component.html b/src/interface/src/app/treatments/map-controls/map-controls.component.html index 784e64ce0..005c1a23e 100644 --- a/src/interface/src/app/treatments/map-controls/map-controls.component.html +++ b/src/interface/src/app/treatments/map-controls/map-controls.component.html @@ -18,7 +18,7 @@ type="button" *ngIf="userCanEditStands" [ngClass]="{ - active: (standSelectionEnabled$ | async) + active: (standSelectionEnabled$ | async), }" (click)="toggleRxSelection()" matTooltip="RX Selection Tool" diff --git a/src/interface/src/app/treatments/map-project-areas/map-project-areas.component.html b/src/interface/src/app/treatments/map-project-areas/map-project-areas.component.html index 3eeed978e..046f3b638 100644 --- a/src/interface/src/app/treatments/map-project-areas/map-project-areas.component.html +++ b/src/interface/src/app/treatments/map-project-areas/map-project-areas.component.html @@ -20,9 +20,9 @@ 'case', ['==', ['get', 'id'], hoveredProjectAreaFromFeatures?.properties?.['id']], hoveredFillColor, - fillColor + fillColor, ], - 'fill-opacity': visible && withFill ? 0.5 : 0 + 'fill-opacity': visible && withFill ? 0.5 : 0, }"> diff --git a/src/interface/src/app/treatments/map-rectangle/map-rectangle.component.html b/src/interface/src/app/treatments/map-rectangle/map-rectangle.component.html index 483e8f3be..3bae3836b 100644 --- a/src/interface/src/app/treatments/map-rectangle/map-rectangle.component.html +++ b/src/interface/src/app/treatments/map-rectangle/map-rectangle.component.html @@ -7,7 +7,7 @@ [source]="sourceName" [paint]="{ 'line-color': '#007dff', - 'line-width': 1 + 'line-width': 1, }"> diff --git a/src/interface/src/app/treatments/planning-area-layer/planning-area-layer.component.html b/src/interface/src/app/treatments/planning-area-layer/planning-area-layer.component.html index b4a0e487d..3d0dcadde 100644 --- a/src/interface/src/app/treatments/planning-area-layer/planning-area-layer.component.html +++ b/src/interface/src/app/treatments/planning-area-layer/planning-area-layer.component.html @@ -7,7 +7,7 @@ [source]="sourceName" [paint]="{ 'line-color': 'black', - 'line-width': 2 + 'line-width': 2, }"> diff --git a/src/interface/src/styleguide/modal/modal.component.html b/src/interface/src/styleguide/modal/modal.component.html index f01cd49d3..1e985fe2a 100644 --- a/src/interface/src/styleguide/modal/modal.component.html +++ b/src/interface/src/styleguide/modal/modal.component.html @@ -31,7 +31,7 @@ class="modal-body" [ngClass]="{ scrollable: scrollableContent, - padded: padBody + padded: padBody, }">