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

fix(portal/toast/interactive): fix release 1.5 #521

Merged
merged 3 commits into from
Oct 7, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions src/app/pages/portal/portal.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@
<igo-entity-table-paginator
[store]="workspace.entityStore"
[entitySortChange$]="workspaceEntitySortChange$"
[paginatorOptions]="paginatorOptions"
(paginatorChange)="paginatorChange($event)">
</igo-entity-table-paginator>
</ng-container>
Expand Down
7 changes: 5 additions & 2 deletions src/app/pages/portal/portal.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ igo-map-browser.sidenav-offset ::ng-deep .ol-overlaycontainer-stopevent {
left: 400px;
width: calc(100% - 380px);

.ol-scale-line {
left: 40%;
}

@include mobile {
display: none;
}
Expand Down Expand Up @@ -165,7 +169,6 @@ igo-workspace-selector {
}

igo-entity-table-paginator {
z-index: -1;
@include mobile {
margin-left: -30px;
}
Expand Down Expand Up @@ -207,7 +210,7 @@ app-toast-panel {
}

app-toast-panel.app-full-toast-panel-collapsed {
width: 55%;
width: 45%;
}

app-toast-panel.expansion-panel-expanded,
Expand Down
9 changes: 7 additions & 2 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import {
Toolbox,
Tool,
EntityTableScrollBehavior,
Widget
Widget,
EntityTablePaginatorOptions
} from '@igo2/common';
import { AuthService } from '@igo2/auth';
import { DetailedContext } from '@igo2/context';
Expand Down Expand Up @@ -115,8 +116,12 @@ export class PortalComponent implements OnInit, OnDestroy {
public workspaceEntitySortChange$: BehaviorSubject<
boolean
> = new BehaviorSubject(false);
public paginatorOptions: EntityTablePaginatorOptions = {
pageSize: 50, // Number of items to display on a page.
pageSizeOptions: [1, 5, 10, 20, 50, 100, 500], // The set of provided page size options to display to the user.
};

public fullExtent;
public fullExtent = this.storageService.get('fullExtent') as boolean;
public sidenavOpened = false;
public searchBarTerm = '';
public onSettingsChange$ = new BehaviorSubject<boolean>(undefined);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
:host.app-full-toast-panel-opened {
height: auto;
max-height: 650px;
width: 55%;
width: 45%;

@include tablet {
width: 500px;
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Component } from '@angular/core';
import { MatDialog } from '@angular/material/dialog';
import { ConfigService, LanguageService } from '@igo2/core';
import { WelcomeWindowService } from './welcome-window.service';
import { map } from 'rxjs/operators';

@Component({
selector: 'app-welcome-window',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ describe('WelcomeWindowService', () => {
beforeEach(() => TestBed.configureTestingModule({}));

it('should be created', () => {
const service: WelcomeWindowService = TestBed.get(WelcomeWindowService);
const service: WelcomeWindowService = TestBed.inject(WelcomeWindowService);
expect(service).toBeTruthy();
});
});
2 changes: 1 addition & 1 deletion src/config/interactiveTour.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
},
{
"element": "igo-actionbar-item:nth-child(3) mat-list-item button",
"title": "interactiveTour.global.context-title",
"title": "interactiveTour.global.tool-choose-title",
"text": "interactiveTour.global.tool-choose",
"disableInteraction": true,
"beforeShow": {
Expand Down
41 changes: 16 additions & 25 deletions src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,50 +41,41 @@
"global": {
"title": "Interactive tour",
"menu-button-title": "MENU",
"menu-button": "Click on the menu button to open the general menu",
"menu-button": "Click on the menu button to open the general menu.",
"search-bar-title": "SEARCH BAR",
"search-bar": "Find an address, a GPS point, a layer, etc.",
"search-settings-title": "SEARCH SETTINGS",
"search-settings": "Allows you to configure: the type of result, the number of desired results, etc.",
"toolbox-title": "TOOLBOX",
"toolbox": "On selection of the tool, the application switches inside and displays its content",
"toolbox": "On selection of the tool, the application switches inside and displays its content.",
"search-tool-title": "SEARCH RESULTS TOOL",
"search-tool": "Search results tool allow to display the results that come from the search bar input",
"search-tool": "Search results tool allow to display the results that come from the search bar input.",
"context-title": "CONTEXTS",
"context": "A context is a predefined map made up of several layers grouped together according to a theme",
"context": "A context is a predefined map made up of several layers grouped together according to a theme.",
"map-tool-title": "MAP",
"map-tool": "All layers are display in this tool. Some manipulations can also be done on these",
"map-tool": "All layers are display in this tool. Some manipulations can also be done on these.",
"spatial-filter-title": "SPATIAL FILTER",
"spatial-filter": "Spatial filter allow to extract entities by predefined or drawn zone",
"spatial-filter": "Spatial filter allow to extract entities by predefined or drawn zone.",
"measurer-tool-title": "MEASURER TOOL",
"measurer-tool": "For distance, perimeter and ground area calculation",
"measurer-tool": "For distance, perimeter and ground area calculation.",
"directions-tool-title": "DIRECTIONS",
"directions-tool": "Allow route creation based on departure, arrival and intermediate stop",
"directions-tool": "Allow route creation based on departure, arrival and intermediate stop.",
"catalog-tool-title": "DATA CATALOG",
"catalog-tool": "Catalogs contain all the available layers in IGO. These are classified by general topic (catalog) and sub-categories",
"catalog-tool": "Catalogs contain all the available layers in IGO. These are classified by general topic (catalog) and sub-categories.",
"import-export-title": "IMPORT-EXPORT",
"import-export": "Import-export tool allow layers importation and exportation",
"import-export": "Import-export tool allow layers importation and exportation.",
"print-tool-title": "PRINT",
"print-tool": "Print the active map according to certain format",
"print-tool": "Print the active map according to certain format.",
"share-map-title": "SHARE-MAP TOOL",
"share-map": "Share a map by his URL link",
"about-title": "À PROPOS",
"about": "About IGO and his features!",
"tool-choose": "When we select a tool and get inside his container",
"context-list": "Inside CONTEXTS, the tool displays the list of predefined thematic maps",
"context-item": "This is a context which represents a theme and contains certain layers",
"context-item2": "This is another context which we will select to see what it represents",
"layers-title": "MAP",
"layers": "The application switches inside and displays the layers that make up THE MAP of this context",
"layer-name": "Layer displayed on the map",
"legend": "By clicking on the title the legend opens and closes",
"layer-eye": "Click on the eye to allow and disallow layer's to be display on the map",
"layer-tool-btn": "Activate or deactivate tools panel on this layer",
"layer-tool": "Tools panel available for this layer",
"home-button": "This button can be used to get back to main menu",
"menu-button-close": "Click to close menu",
"tool-choose-title": "SELECTED TOOL",
"tool-choose": "When we select a tool and get inside his container.",
"home-button": "This button can be used to get back to main menu.",
"menu-button-close": "Click to close menu.",
"geolocate-title": "GEOLOCATE",
"geolocate": "To zoom the map to your location",
"geolocate": "To zoom the map to your location.",
"baselayers-title": "BASELAYERS",
"baselayers": "To change the basemap",
"end-title": "END",
Expand Down
53 changes: 22 additions & 31 deletions src/locale/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,54 +40,45 @@
"global": {
"title": "Tour interatif",
"menu-button-title": "MENU",
"menu-button": "Cliquer sur le bouton menu pour ouvrir le menu général",
"menu-button": "Cliquez sur ce bouton pour ouvrir le menu général.",
"search-bar-title": "BARRE DE RECHERCHE",
"search-bar": "Rechercher une adresse, un point GPS, une couche, etc.",
"search-bar": "Vous permet de rechercher une adresse, un point GPS, une couche, etc.",
"search-settings-title": "OPTIONS DE RECHERCHE",
"search-settings": "Permet de configurer: le type de résultat, le nombre de résultats souhaités, etc.",
"toolbox-title": "LES OUTILS",
"toolbox": "Sur sélection de l'outil, l'application bascule à l'intérieur et affiche son contenu",
"search-tool-title": "OUTIL DE RECHERCHE",
"search-tool": "L'outil de recherche permet d'afficher les résultats provenant de l'entrée de la barre de recherche",
"toolbox": "Sur sélection de l'outil, l'application bascule à l'intérieur et affiche son contenu.",
"search-tool-title": "RÉSULTATS DE RECHERCHE",
"search-tool": "On accède ici aux résultats (adresses, lieux, couches) correspondant au texte entré dans la barre de recherche, selon les paramètres et options sélectionnés.",
"context-title": "LES CONTEXTES",
"context": "Un contexte est une carte prédéfinie constituée de plusieurs couches regroupées selon une thématique",
"context": "Un contexte est une carte prédéfinie constituée de plusieurs couches regroupées selon une thématique.",
"map-tool-title": "CARTE",
"map-tool": "L'ensemble des couches présentes sur la carte seront affichés dans cet outil. Plusieurs manipulations peuvent également être réalisées sur celles-ci",
"map-tool": "L'ensemble des couches présentes sur la carte seront affichée dans cet outil. Plusieurs manipulations peuvent également être réalisées sur celles-ci.",
"spatial-filter-title": "FILTRE SPATIAL",
"spatial-filter": "Le filtre spatial permet l'extraction d'entités par des zones prédéfinies ou dessinées à la main",
"spatial-filter": "Le filtre spatial permet l'extraction d'entités par des zones prédéfinies ou dessinées par l'usager.",
"measurer-tool-title": "OUTIL DE MESURE",
"measurer-tool": "Pour le calcul de distances, de périmètre et de superficie terrain",
"measurer-tool": "Permet de calculer des distances, des périmètres et des superficies terrain.",
"directions-tool-title": "ITINÉRAIRE",
"directions-tool": "Permet la création d'itinéraire à partir d'un départ, d'une arrivée et de points intermédiaires",
"directions-tool": "Permet la création d'itinéraire à partir d'un départ, d'une arrivée et de points intermédiaires.",
"catalog-tool-title": "CATALOGUE DE DONNÉES",
"catalog-tool": "Les catalogues contiennent l'ensemble des couches disponibles dans IGO. Celles-ci sont classifiés par thème (catalogue), puis par sous-thème",
"import-export-title": "IMPORT-EXPORT",
"import-export": "L'outil d'import-export permet l'importation et l'exportation de couches de données selon des formats préçis",
"catalog-tool": "Les catalogues contiennent l'ensemble des couches disponibles dans IGO. Celles-ci sont classifiées par thème (catalogue), puis par sous-thème.",
"import-export-title": "IMPORTER ET EXPORTER",
"import-export": "L'outil permet d'importer et exporter de couches de données selon des formats préçis. Il permet aussi de sauvegarder des contextes localement.",
"print-tool-title": "OUTIL D'IMPRESSION",
"print-tool": "Permet d'imprimer la carte active en format image ou PDF",
"print-tool": "Permet d'imprimer la carte active en format image ou PDF.",
"share-map-title": "PARTAGE DE CARTE",
"share-map": "Partager une carte à partir d'un URL",
"share-map": "Cet outil vous permet de partager une carte à partir d'un URL.",
"about-title": "À PROPOS",
"about": "À propos de IGO et de ses fonctionnalités!",
"tool-choose": "Lorsque nous sélectionnons un outil et entrons dans son contenu",
"context-list": "À l'intérieur des CONTEXTES, l'outil affiche la liste des cartes thématiques prédéfinies",
"context-item": "Ce contexte représente une thématique et contient certaines couches",
"context-item2": "Sélectionnons celui-ci afin d'y voir le contenu",
"layers-title": "LA CARTE",
"layers": "L'application bascule à l'intérieur et affiche les couches qui constituent LA CARTE de ce contexte",
"layer-name": "Couche présente sur la carte",
"legend": "En cliquant sur le titre la légende s'ouvre et se referme",
"layer-eye": "Un clique sur oeil, il est possible d'activer ou de désactiver l'affichage de la couche",
"layer-tool-btn": "Activer les outils disponibles sur CETTE couche",
"layer-tool": "Panneau des outils disponibles pour cette couche",
"home-button": "Ce bouton permet le retour au menu principal",
"menu-button-close": "Cliquer pour ouvrir et fermer le menu",
"tool-choose-title": "OUTIL SÉLECTIONNÉ",
"tool-choose": "Lorsque nous sélectionnons un outil et entrons dans son contenu...",
"home-button": "...ce bouton nous permet le retour au menu principal",
"menu-button-close": "Cliquez pour ouvrir et fermer le menu.",
"geolocate-title": "GEOLOCALISATION",
"geolocate": "Pour zoomer la carte sur votre position",
"geolocate": "Pour zoomer la carte sur votre position.",
"baselayers-title": "FONDS DE CARTE",
"baselayers": "Changer le fond de carte",
"baselayers": "Changez le fond de carte à partir de ce menu.",
"end-title": "FIN",
"end": "Fin du tour interatif"
"end": "Fin du tour interactif"
},
"timeFilter": {
"title": "FILTRE TEMPOREL",
Expand Down