Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Panels v17 #53

Merged
merged 42 commits into from
Apr 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
4849bcd
refactor(*): delete pointersummary mentions
pelord Jan 25, 2024
0ff726d
wip environnement refactor
pelord Jan 25, 2024
661c1b0
chore(*): setup code formatting (add script + suggested extensions + …
pelord Jan 25, 2024
60bff36
chore(*): apply code formatting
pelord Jan 25, 2024
5dd56ca
Merge branch 'code-formatting' into cleanup
pelord Jan 25, 2024
2799dc5
wip
pelord Jan 25, 2024
55e9d86
wip
pelord Jan 25, 2024
c212aec
Merge branch 'code-formatting' into cleanup
pelord Jan 25, 2024
2835ae4
wip
pelord Jan 25, 2024
735a195
feat(SplashScreen): add a splashscreen
pelord Jan 25, 2024
bb6c7ce
refactor(*): config handling
pelord Jan 26, 2024
4b953fd
wip
pelord Jan 26, 2024
7d698b3
chore(*): delete workspaces mentions (some remaining in portal module)
pelord Jan 26, 2024
af430eb
delete various unused var and methods
pelord Jan 26, 2024
80b7946
review comment
pelord Jan 26, 2024
b5764b4
refactor(*): now sharing the same searchstate from lib
pelord Mar 13, 2024
d3d7a85
fix(portal): set valid breakpoint
pelord Mar 13, 2024
009070f
build!: update angular 17
alecarn Mar 13, 2024
2be5016
build!: update @igo2/lib to 17
alecarn Mar 13, 2024
c213c59
refactor: Convert all components, directives and pipes to standalone
alecarn Mar 13, 2024
8160547
refactor: Remove unnecessary NgModule classes
alecarn Mar 13, 2024
dd304ed
refactor: Bootstrap the project using standalone APIs
alecarn Mar 13, 2024
659c276
fix: format all files
alecarn Mar 13, 2024
78a2286
refactor: user built-in control flow
alecarn Mar 13, 2024
163d49c
feat(panels): create a legend panel
pelord Mar 14, 2024
b2d08a1
feat(panels): create a search-result panel
pelord Mar 14, 2024
9d9d3df
feat(panels): create a panels handler for mobile/desktop
pelord Mar 14, 2024
0935d25
wip
pelord Mar 14, 2024
681bc62
wip
pelord Mar 14, 2024
907e013
refactor search-result panel
pelord Mar 14, 2024
2e4c344
add panel for map queries
pelord Mar 14, 2024
4596727
move from imput to service to handle shared data between component
pelord Mar 15, 2024
8a22f7a
refactor select and focus behavior
pelord Mar 15, 2024
26aece6
first attempt portal cleanup
pelord Mar 18, 2024
503f2d2
deuxieme essai de cleanup de portal
pelord Mar 18, 2024
42c6307
cleanup
pelord Mar 18, 2024
bafa735
Merge remote-tracking branch 'origin/next' into panels-v17
pelord Mar 18, 2024
341bf6b
cleanup remove old component replaced by new ones
pelord Mar 18, 2024
62119a7
wip
pelord Mar 18, 2024
31d483b
feat(panels): add a filter button
pelord Mar 20, 2024
1a47c1e
cleanup
pelord Mar 20, 2024
cbc824e
lint
pelord Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions src/app/pages/menu/menu-pages/map/map.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { IgoLanguageModule } from '@igo2/core/language';

import { MapComponent } from './map.component';

import { MapComponent } from './map.component';

@NgModule({
declarations: [MapComponent],
imports: [CommonModule, IgoLanguageModule],
Expand Down
13 changes: 13 additions & 0 deletions src/app/pages/portal/filter-button/filter-button.component.html
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>
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 src/app/pages/portal/filter-button/filter-button.component.ts
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();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
mat-raised-button
(click)="toggleLegend()"
[matTooltip]="legendButtonTooltip"
matTooltipPosition="left"
[matTooltipDisabled]="tooltipDisabled"
>
{{ 'legend.button' | translate }}
Expand Down
10 changes: 5 additions & 5 deletions src/app/pages/portal/map-overlay/map-overlay.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NgClass, NgStyle } from '@angular/common';
import { NgClass, NgFor, NgIf, NgStyle } from '@angular/common';
import { AfterViewInit, Component, OnDestroy } from '@angular/core';

import { Context, ContextService } from '@igo2/context';
Expand All @@ -14,7 +14,7 @@ import { MapOverlay } from './map-overlay.interface';
templateUrl: './map-overlay.component.html',
styleUrls: ['./map-overlay.component.scss'],
standalone: true,
imports: [NgClass, NgStyle]
imports: [NgFor, NgClass, NgIf, NgStyle]
})
export class MapOverlayComponent implements AfterViewInit, OnDestroy {
public mapOverlay: MapOverlay[] = [];
Expand Down Expand Up @@ -44,14 +44,14 @@ export class MapOverlayComponent implements AfterViewInit, OnDestroy {
}

private handleContextChange(context: Context) {
let mapOverlay = [];
let mapOverlay: MapOverlay[] = [];
if (context !== undefined) {
this.mapOverlay = [];

if (context['mapOverlay']) {
mapOverlay = context['mapOverlay'];
} else if (this.configService.getConfig('mapOverlay')) {
mapOverlay = this.configService.getConfig('mapOverlay');
} else {
mapOverlay = this.configService.getConfig('mapOverlay', []);
}
for (const overlay of mapOverlay) {
// If no media define use default to desktop, display only if current media is on context definition
Expand Down
11 changes: 11 additions & 0 deletions src/app/pages/portal/map-overlay/map-overlay.enum.ts
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 src/app/pages/portal/map-overlay/map-overlay.interface.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
import { Media } from '@igo2/core/media';

import { MapOverlayCssClass } from './map-overlay.enum';

export interface MapOverlay {
media: Array<string> /* Media device to display the mapOverlay
- options: mobile
tablet
desktop
- default: desktop
cssClass: string; /* Css class to define position of the element
- options: top-left
center-left
bottom-left
top-center
center-center
bottom-center
top-right
center-right
bottom-right
*/;
/**
* Media device to display the mapOverlay
* Desktop is the default value.
*/
media: Array<Media>;
/**
* Css class to define position of the element
*/
cssClass: MapOverlayCssClass;
fixed?: boolean; // Is element is fixed, won't be affect by animation, default to false
link?: string; // Link to open when element is clicked
imgSrc?: string; // source of the image to show
Expand Down
114 changes: 0 additions & 114 deletions src/app/pages/portal/panels/bottompanel/bottompanel.component.html

This file was deleted.

Loading
Loading