-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(panels): create a panels handler for mobile/desktop --------- Co-authored-by: Alexandre Caron <alexandre.caron12@msp.gouv.qc.ca>
- Loading branch information
Showing
51 changed files
with
1,351 additions
and
3,164 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
src/app/pages/portal/filter-button/filter-button.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,13 @@ | ||
<button | ||
id="filter-button" | ||
mat-raised-button | ||
(click)="toggleFilter()" | ||
[matTooltip]=" | ||
((panelsHandlerState.opened$ | async) ? 'filter.close' : 'filter.open') | ||
| translate | ||
" | ||
matTooltipPosition="left" | ||
[matTooltipDisabled]="tooltipDisabled" | ||
> | ||
{{ 'filter.button' | translate }} | ||
</button> |
7 changes: 7 additions & 0 deletions
7
src/app/pages/portal/filter-button/filter-button.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,7 @@ | ||
:host { | ||
#filter-button { | ||
border-radius: 0 !important; | ||
color: #095797 !important; | ||
border-color: #095797 !important; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/app/pages/portal/filter-button/filter-button.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,30 @@ | ||
import { AsyncPipe } from '@angular/common'; | ||
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
import { MatButton } from '@angular/material/button'; | ||
import { MatTooltip } from '@angular/material/tooltip'; | ||
|
||
import { TranslateModule } from '@ngx-translate/core'; | ||
|
||
import { PanelsHandlerState } from '../panels/panels-handler/panels-handler.state'; | ||
|
||
@Component({ | ||
selector: 'app-filter-button', | ||
templateUrl: './filter-button.component.html', | ||
styleUrls: ['./filter-button.component.scss'], | ||
standalone: true, | ||
imports: [MatButton, MatTooltip, TranslateModule, AsyncPipe] | ||
}) | ||
export class FilterButtonComponent { | ||
@Input() tooltipDisabled: boolean; | ||
@Output() filterToggled = new EventEmitter<boolean>(); | ||
|
||
public dialogRef = null; | ||
public legendButtonTooltip: unknown; | ||
|
||
constructor(public panelsHandlerState: PanelsHandlerState) {} | ||
|
||
toggleFilter(): void { | ||
this.panelsHandlerState.shownComponent$; | ||
this.filterToggled.emit(); | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
export enum MapOverlayCssClass { | ||
TopLeft = 'top-left', | ||
CenterLeft = 'center-left', | ||
BottomLeft = 'bottom-left', | ||
TopCenter = 'top-center', | ||
CenterCenter = 'center-center', | ||
BottomCenter = 'bottom-center', | ||
TopRight = 'top-right', | ||
CenterRight = 'center-right', | ||
BottoMRight = 'bottom-right' | ||
} |
29 changes: 13 additions & 16 deletions
29
src/app/pages/portal/map-overlay/map-overlay.interface.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
114 changes: 0 additions & 114 deletions
114
src/app/pages/portal/panels/bottompanel/bottompanel.component.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.