Skip to content

Commit

Permalink
Merge remote-tracking branch origin/master into MSPnext
Browse files Browse the repository at this point in the history
  • Loading branch information
LAMM26 committed May 4, 2023
2 parents b1381d9 + d5c3f66 commit b98e775
Show file tree
Hide file tree
Showing 35 changed files with 33,638 additions and 3,087 deletions.
4 changes: 2 additions & 2 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# This file is currently used by autoprefixer to adjust CSS to support the below specified browsers
# For additional information regarding the format and rule options, please see:
# https://github.com/browserslist/browserslist#queries
# For IE 9-11 support, please uncomment the last line of the file and adjust as needed
# adjust as needed
> 0.5%
last 2 versions
Firefox ESR
not dead
not IE 9-10
IE 11
not IE 11
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Install [email protected]
if: startsWith(github.ref, 'refs/tags/')
run: npm install [email protected]
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/onPush.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
node-version: [16.x, 18.x]

steps:
- name: The branch or tag ref that triggered the workflow run.
run: echo ${GITHUB_REF#refs/*/}
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm install @angular/cli
Expand Down
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
# [1.15.0](https://github.com/infra-geo-ouverte/igo2/compare/1.14.2...1.15.0) (2023-05-03)


### Bug Fixes

* **portal:** changes due to .../igo2-lib/pull/1196 ([15d5f4f](https://github.com/infra-geo-ouverte/igo2/commit/15d5f4f797a8bb58d77e4bf6a2bbcc121985f2ad))
* **pwa-service:** prevent update next app inside current app (angular recommendation) ([f015384](https://github.com/infra-geo-ouverte/igo2/commit/f015384ed996426e57c6e7d619b6ac43e46d0c8a))
* **pwa:** prevent multiple confirm dialog to reload app ([#917](https://github.com/infra-geo-ouverte/igo2/issues/917)) ([c191bbe](https://github.com/infra-geo-ouverte/igo2/commit/c191bbe2a9afed34f75362262ecbc52d9584e2d2))


### Features

* **app:** add pdf to service worker cache ([b7722d4](https://github.com/infra-geo-ouverte/igo2/commit/b7722d41eef8db6c6c53818cdbf24b45bd8012b4))
* **app:** App installation is now configurable ([#929](https://github.com/infra-geo-ouverte/igo2/issues/929)) ([13b76fe](https://github.com/infra-geo-ouverte/igo2/commit/13b76fe405d84b145738b03b831870595aca11d6))
* **app:** searchable workspaces ([#910](https://github.com/infra-geo-ouverte/igo2/issues/910)) ([5924e90](https://github.com/infra-geo-ouverte/igo2/commit/5924e909eaaf892d45d5b60df67294b9cbc0518b))
* **app:** upgrade igo2-lib ([fff5660](https://github.com/infra-geo-ouverte/igo2/commit/fff56607e8cc84bfccbddec314eebecf56db02f1))
* **geo:** add tabsMode for search-results in toast panel ([#891](https://github.com/infra-geo-ouverte/igo2/issues/891)) ([991137c](https://github.com/infra-geo-ouverte/igo2/commit/991137c008227342908d189c12d78da9e7bb0143))
* **integration:** Add save search result option on config file ([#916](https://github.com/infra-geo-ouverte/igo2/issues/916)) ([c665d8a](https://github.com/infra-geo-ouverte/igo2/commit/c665d8a65b92925b50fe57511a14a38c5139e79d))
* **vector:** preload data despite visibiliy or resolution range ([#933](https://github.com/infra-geo-ouverte/igo2/issues/933)) ([a838e2e](https://github.com/infra-geo-ouverte/igo2/commit/a838e2e0246d93192ec151ef90f122a2e4e81fc9))



## [1.14.2](https://github.com/infra-geo-ouverte/igo2/compare/1.14.1...1.14.2) (2023-03-15)


Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ IGO2 is having multiple features, such as Web GIS viewer adapted to Desktop and
---

## Téléchargement

- [Version 1.15.0](https://github.com/infra-geo-ouverte/igo2/releases/download/1.15.0/igo2.zip)
- [Version 1.14.2](https://github.com/infra-geo-ouverte/igo2/releases/download/1.14.2/igo2.zip)
- [Version 1.13.4](https://github.com/infra-geo-ouverte/igo2/releases/download/1.13.4/igo2.zip)
- [Version 1.12.1](https://github.com/infra-geo-ouverte/igo2/releases/download/1.12.1/igo2.zip)
Expand Down Expand Up @@ -83,7 +83,8 @@ Requis:

| IGO2 version | Node version |
| ------------ | ------------ |
| > 1.5.x | >= 12, <= 14 |
| > 1.15.x | >= 16.19.0 |
| > 1.5.x | >= 12, <= 16 |
| < 1.5.x | >= 8, <= 11 |
| 0.x.x | >= 6, <= 10 |

Expand Down Expand Up @@ -140,6 +141,7 @@ Nous sommes bien heureux que vous pensiez contribuer à IGO! Avant de le faire,

## Download

- [Version 1.15.0](https://github.com/infra-geo-ouverte/igo2/releases/download/1.15.0/igo2.zip)
- [Version 1.14.2](https://github.com/infra-geo-ouverte/igo2/releases/download/1.14.2/igo2.zip)
- [Version 1.13.4](https://github.com/infra-geo-ouverte/igo2/releases/download/1.13.4/igo2.zip)
- [Version 1.12.1](https://github.com/infra-geo-ouverte/igo2/releases/download/1.12.1/igo2.zip)
Expand Down
1 change: 1 addition & 0 deletions docs/_tables/fr/config/import-export.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ gpxAggregateInComment ,Boolean,"| Lorsque l'option est activée l'exportatio
forceNaming ,Boolean,Ajoute une boite texte au formulaire d'exportation qui permet de nommer le fichier exporter. ,,false
formats ,String[] ,La liste des formats qu'il est possible d'exporter. ,"'GeoJSON', 'GML', 'GPX', 'KML', 'Shapefile', 'CSV' ","['GeoJSON', 'GML', 'GPX', 'KML', 'Shapefile', 'CSV'] "
configFileToGeoDBService ,String ,Fichiers de configuration à utiliser afin d'intégrer des données dans la base de données Indexed-db de l'application.,"un url, relatif ou absolu",
allowToStoreLayer ,Boolean ,Indique si les données importées doivent être stockées dans la l'Indexed-DB, true/false, false
15 changes: 13 additions & 2 deletions docs/_tables/fr/properties/sourceFields.csv
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,16 @@ allowedOperatorsType ,String,Indique les opérateurs permis pour cet attri
| All
| Time
| Référez vous à `ogc-filter.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/geo/src/lib/filter/shared/ogc-filter.ts#L291>`__ pour les opérateurs correspondants.",BasicAndSpatial
validation ,Object ,Indique les validations lors de la sauvegarde d'une entité ,"| Référez vous à `entity.interface.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/common/src/lib/entity/shared/entity.interfaces.ts>`__ ."
relation ,String ,Indique les relations à lier pour la saisie des champs de type list ,"| Référez vous à `datasource.interface.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/geo/src/lib/datasource/shared/datasources/datasource.interface.ts>`__ ."
validation ,Object ,Indique les validations lors de la sauvegarde d'une entité ,| Référez vous à `entity.interface.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/common/src/lib/entity/shared/entity.interfaces.ts>`__ .,
relation ,String ,Indique les relations à lier pour la saisie des champs de type list ,| Référez vous à `datasource.interface.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/geo/src/lib/datasource/shared/datasources/datasource.interface.ts>`__ .,
searchIndex,Object ,Indique si et comment le champs doit etre indexé pour etre recherchable (vector source seulement),"| enabled?: boolean;
| preset?: Preset;
| tokenize?: Tokenizer;
| cache?: boolean | number;
| resolution?: number;
| context?: boolean;
| optimize?: boolean;
| language?: string;
| encode?: Encoders;
| Si aucun champ n’est renseigné, la valeur par défaut s’appliquera. Seuls les champs dont l’occurrence des valeurs est supérieure a 2% sera indexé OU si le contenu n’est pas du float.
| Voir https://github.com/nextapps-de/flexsearch/ pour les propriétés associées.","tokenize: ""full"""
3 changes: 3 additions & 0 deletions docs/_tables/fr/properties/workspaceOptions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,6 @@ pageSizeOptions ,Number[],"| Indique les possibilités de changement du nombre
| d'entités pouvant être affichés sur une seule page (pageSize)."
| ,0 à Infinity ou absent
| (par défaut = 1, 5, 10, 20, 50, 100, 500),
searchIndexEnabled ,boolean,"| Indique si oui ou non, la couche devrait etre indexée (cherchable)
| ,true/false
| false
72 changes: 71 additions & 1 deletion docs/config_json.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,45 @@ Résumé

Important : Les propriétés en caractère gras suivies d'un * sont obligatoires.

***************
App
***************

.. line-block::

Permet d'activer des options pour l'application.

Exemples

.. code:: json
"app": {
"forceCoordsNA": false,
"install": {
enabled: true,
promote: false,
manifestPath: '../config/github.webmanifest'
},
"pwa": {
enable: true
}
}
Propriétés

.. line-block::

forceCoordsNA: true/false = force les coordonnées en Amérique du Nord
install: Object permettant de dire comment l'application sera installée.
install.enabled: true/false = Application installable ou non.
install.manifestPath: Identifie un chemin d'accès pour le manifest (info sur l'app).
Par défaut: 'manifest.webmanifest'
install.promote: true/false = Permet (Windows/Android) de faire afficher un message
incitant les utilisateurs a installer l'application
pwa: Object permettant de dire comment l'application sera mis en mémoire cache.
pwa.enabled: true/false = Identifie si l'application sera mis en mémoire cache.


***************
Analytics
***************
Expand Down Expand Up @@ -531,7 +570,8 @@ Exemples
gpxAggregateInComment: false,
forceNaming: false,
formats: ['GeoJSON', 'GML', 'GPX', 'KML', 'Shapefile', 'CSV'],
configFileToGeoDBService: './data/geoDataToIDB.json'
configFileToGeoDBService: './data/geoDataToIDB.json',
allowToStoreLayer: true
}
Propriétés
Expand Down Expand Up @@ -767,6 +807,22 @@ Liens
- `igo2-lib/blob/master/demo/src/environments/environment.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/demo/src/environments/environment.ts>`_


********************************
QueryTabs
********************************

.. line-block::

Permet de définir le type d'affichage de la résultat de Query,
affichage par liste ou onglet.

Exemples

.. code:: json
"queryTabs": true
.. _igoroutingsource:

***************
Expand Down Expand Up @@ -952,6 +1008,20 @@ Liens
- `igo2-lib/auth/src/lib/shared/storage.interface.ts <https://github.com/infra-geo-ouverte/igo2-lib/blob/master/packages/auth/src/lib/shared/storage.interface.ts>`_
- `API de contexte <https://github.com/infra-geo-ouverte/igo2-api>`_

********************************
saveSearchResultInLayer
********************************

.. line-block::

Permet d'activer ou désactiver l'enregistrement d'un résultat de recherche dans une couche.

Exemples

.. code:: json
"saveSearchResultInLayer": true
***************
Theme
***************
Expand Down
4 changes: 2 additions & 2 deletions docs/interactiveTour_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Lorsqu'une certaine configuration est détectée par l'application, le bouton re
configuré un tour pour un outil X, le bouton de présentation apparaitra dans l'entête de l'outil.

Une configuration pour ne pas avoir de tour interactif en mode mobile est aussi disponible dans le fichier config.json:
"interactiveTourInMobile": true
"tourInMobile": true
par défaut les tours interactifs seront présents en mode mobile.


Expand Down Expand Up @@ -265,7 +265,7 @@ Je ne vois pas le bouton de mon tour apparaitre.
- Vérifier que le fichier interactiveTour.json est bien présent dans le dossier config de votre application.
- Vérifier que le nom de l'outil est bien exact
- Vérifier que la syntaxe du tour est bien présentée de cette façon: global: {...} ou nomGénériqueDeOutil:{...}
- Si vous êtes en mode mobile vérifier la configuration dans le fichier config.json: "introInteractiveTourInMobile": true
- Si vous êtes en mode mobile vérifier la configuration dans le fichier config.json: "tourInMobile": true
L'élément de mon tour n'est pas mis en surbrillance.
Solution:
Expand Down
6 changes: 6 additions & 0 deletions docs/properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ Exemples
"enabled": true,
"minResolution": 0,
"maxResolution": 400,
"searchIndexEnabled": false,
"queryOptions": {
"mapQueryOnOpenTab": false,
"tabQuery": false
Expand Down Expand Up @@ -649,6 +650,11 @@ Exemples
"title": "Donnée geojson sur DQ (pas de service)",
"id": "vector1",
"sourceOptions": {
"preload": {
"comment": "Charger la donnée dans la source même si le layer est non visible ou hors échelle d'affichage."
"bypassVisible": true
"bypassResolution": true
},
"type": "vector",
"url": "https://www.donneesquebec.ca/recherche/dataset/f647f5ed-a8f3-4a47-8ceb-977cbf090675/resource/68e0e20a-415d-44f5-af82-a90311784616/download/bornes-incendies.geojson"
"queryable": true,
Expand Down
8 changes: 0 additions & 8 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
/*jshint esversion: 6 */
const gulp = require('gulp');
const bump = require('gulp-bump');
const package = require('./package.json')

gulp.task('copyLocaleFromLib', done => {
gulp
Expand All @@ -15,9 +13,3 @@ gulp.task('watch:locale', function () {
gulp.watch('./node_modules/@igo2/core/locale/*.json', gulp.series('copyLocaleFromLib'));
});

gulp.task('bumpPwaVersionDev', done => {
gulp.src(['./ngsw-config.json'])
.pipe(bump({ type: 'prerelease' }))
.pipe(gulp.dest('./'));
done();
});
4 changes: 2 additions & 2 deletions ngsw-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"index": "/index.html",
"appData": {
"changelog": "Version update",
"version": "1.13.5"
"version": "1.15.0"
},
"assetGroups": [
{
Expand Down Expand Up @@ -48,7 +48,7 @@
"resources": {
"files": [
"/assets/**",
"/*.(eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
"/*.(pdf|eot|svg|cur|jpg|png|webp|gif|otf|ttf|woff|woff2|ani)"
]
}
}
Expand Down
Loading

0 comments on commit b98e775

Please sign in to comment.