@geogirafe/lib-geoportal 1.1.0-dev.2602404359 → 1.1.0-dev.2605752849

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,7 @@ class AboutComponent extends GirafeHTMLElement {
11
11
  .panel{color:var(--text-color)}.panel>div{padding:1rem}img.logo{filter:var(--svg-filter);opacity:.8;height:4rem}.list{flex-direction:column;margin-top:1rem;display:flex}
12
12
  </style>
13
13
  <style>${this.customStyle}</style>
14
- <div class="panel"><div><img class="logo" alt="geogirafe-logo" src="images/logo/horizontal_black.svg"><div class="list"><div class="elem"><span i18n="Version">Version</span> : ${this.version}</div><div class="elem"><span i18n="Build">Build</span> : ${this.build}</div><div class="elem"><span i18n="Date">Date</span> : ${this.date}</div></div><div class="list"><div class="elem"><span i18n="Source">Source</span>: <a href="https://gitlab.com/geogirafe/gg-viewer" i18n="GitLab" rel="noopener" target="_blank">GitLab</a></div><div class="elem"><span i18n="Documentation">Documentation</span>: <a href="https://doc.geomapfish.dev" rel="noopener" target="_blank">https://doc.geomapfish.dev</a></div></div></div></div>
14
+ <div class="panel"><div><img class="logo" alt="geogirafe-logo" src="images/logo/horizontal_black.svg"><div class="list"><div class="elem"><span i18n="Version">Version</span> : ${this.version}</div><div class="elem"><span i18n="Build">Build</span> : ${this.build}</div><div class="elem"><span i18n="Date">Date</span> : ${this.date}</div></div><div class="list"><div class="elem"><span i18n="Source">Source</span>: <a href="https://gitlab.com/geogirafe/gg-viewer" i18n="GitLab" rel="noopener" target="_blank">GitLab</a></div><div class="elem"><span i18n="Documentation">Documentation</span>: <a href="https://doc.geogirafe.org" rel="noopener" target="_blank">https://doc.geogirafe.org</a></div></div></div></div>
15
15
  ${this.htmlUnsafe(this.feedbackTemplateHtml ?? '')}`;
16
16
  };
17
17
  isPanelVisible = false;
@@ -11,7 +11,7 @@ class PrototypeBannerComponent extends GirafeHTMLElement {
11
11
  a{color:#fff;text-transform:uppercase;text-decoration:none}a:visited{color:#fff}
12
12
  </style>
13
13
  <style>${this.customStyle}</style>
14
- <a href="https://doc.geomapfish.dev/" i18n="Prototype" target="_blank" rel="noopener">PROTOTYPE</a>
14
+ <a href="https://doc.geogirafe.org/" i18n="Prototype" target="_blank" rel="noopener">PROTOTYPE</a>
15
15
  ${this.htmlUnsafe(this.feedbackTemplateHtml ?? '')}`;
16
16
  };
17
17
  constructor() {
package/package.json CHANGED
@@ -3,9 +3,9 @@
3
3
  "description": "GeoGirafe is a flexible application to build online geoportals.",
4
4
  "author": {
5
5
  "name": "GeoGirafe PSC",
6
- "url": "https://doc.geomapfish.dev"
6
+ "url": "https://doc.geogirafe.org"
7
7
  },
8
- "version": "1.1.0-dev.2602404359",
8
+ "version": "1.1.0-dev.2605752849",
9
9
  "type": "module",
10
10
  "engines": {
11
11
  "node": ">=20.19.0"
@@ -31,7 +31,7 @@
31
31
  "websig"
32
32
  ],
33
33
  "license": "Apache-2.0",
34
- "homepage": "https://doc.geomapfish.dev",
34
+ "homepage": "https://doc.geogirafe.org",
35
35
  "dependencies": {
36
36
  "buffer": "6.0.3",
37
37
  "d3": "7.9.0",
@@ -152,7 +152,7 @@
152
152
  <span i18n="Information without public faith">Information without public faith</span>
153
153
  <span>
154
154
  ©
155
- <a href="https://doc.geomapfish.dev" target="_blank">GeoGirafe</a>,
155
+ <a href="https://doc.geogirafe.org" target="_blank">GeoGirafe</a>,
156
156
  <a href="https://www.swisstopo.admin.ch/en/legal-basis" target="_blank">swisstopo</a>,
157
157
  <a href="http://www.openstreetmap.org/copyright" target="_blank">OSM</a>
158
158
  </span>
@@ -1 +1 @@
1
- {"version":"1.1.0-dev.2602404359", "build":"2602404359", "date":"15/06/2026"}
1
+ {"version":"1.1.0-dev.2605752849", "build":"2605752849", "date":"16/06/2026"}
@@ -49,7 +49,7 @@ class GirafeConfig {
49
49
  * @param config the configuration
50
50
  */
51
51
  constructor(config) {
52
- // Default values are documented here : https://doc.geomapfish.dev/docs/configuration
52
+ // Default values are documented here : https://doc.geogirafe.org/docs/configuration
53
53
  // NOTE: Please adapt the documentation if necessary when doing changes here.
54
54
  this.general = this.initConfigGeneral(config);
55
55
  this.languages = this.initConfigLanguages(config);
@@ -127,7 +127,7 @@ class GirafeConfig {
127
127
  }
128
128
  initConfigProjections(config) {
129
129
  if (!config.projections) {
130
- throw new Error(`Configuration for projections is required. See https://doc.geomapfish.dev/docs/configuration`);
130
+ throw new Error(`Configuration for projections is required. See https://doc.geogirafe.org/docs/configuration`);
131
131
  }
132
132
  return config.projections;
133
133
  }
@@ -137,16 +137,16 @@ class GirafeConfig {
137
137
  initConfigMap(config) {
138
138
  // Map
139
139
  if (!config.map?.srid) {
140
- throw new Error(`Configuration for projections is required. See https://doc.geomapfish.dev/docs/configuration`);
140
+ throw new Error(`Configuration for projections is required. See https://doc.geogirafe.org/docs/configuration`);
141
141
  }
142
142
  if (!config.map?.scales) {
143
- throw new Error(`Configuration for projections is required. See https://doc.geomapfish.dev/docs/configuration`);
143
+ throw new Error(`Configuration for projections is required. See https://doc.geogirafe.org/docs/configuration`);
144
144
  }
145
145
  if (!config.map?.startPosition) {
146
- throw new Error(`Configuration for projections is required. See https://doc.geomapfish.dev/docs/configuration`);
146
+ throw new Error(`Configuration for projections is required. See https://doc.geogirafe.org/docs/configuration`);
147
147
  }
148
148
  if (!config.map?.startZoom) {
149
- throw new Error(`Configuration for projections is required. See https://doc.geomapfish.dev/docs/configuration`);
149
+ throw new Error(`Configuration for projections is required. See https://doc.geogirafe.org/docs/configuration`);
150
150
  }
151
151
  return {
152
152
  srid: config.map.srid,
@@ -179,10 +179,10 @@ class GirafeConfig {
179
179
  }
180
180
  initConfigShare(config) {
181
181
  if (!config.share?.createUrl) {
182
- throw new Error(`Configuration for share.createUrl is required. See https://doc.geomapfish.dev/docs/configuration`);
182
+ throw new Error(`Configuration for share.createUrl is required. See https://doc.geogirafe.org/docs/configuration`);
183
183
  }
184
184
  if (config.share?.service === 'geogirafe' && !config.share?.getUrl) {
185
- throw new Error(`Configuration for share.getUrl is required if service type is 'geogirafe'. See https://doc.geomapfish.dev/docs/configuration`);
185
+ throw new Error(`Configuration for share.getUrl is required if service type is 'geogirafe'. See https://doc.geogirafe.org/docs/configuration`);
186
186
  }
187
187
  return {
188
188
  service: config.share?.service ?? 'gmf',
@@ -204,7 +204,7 @@ class GirafeConfig {
204
204
  }
205
205
  initConfigPrint(config) {
206
206
  if (!config.print?.url) {
207
- throw new Error(`Configuration for print.url is required. See https://doc.geomapfish.dev/docs/configuration`);
207
+ throw new Error(`Configuration for print.url is required. See https://doc.geogirafe.org/docs/configuration`);
208
208
  }
209
209
  config.print.attributeNames ??= ['title', 'comments', 'legend'];
210
210
  config.print.formats ??= ['pdf', 'png'];
@@ -212,10 +212,10 @@ class GirafeConfig {
212
212
  }
213
213
  initConfigSearch(config) {
214
214
  if (!config.search?.url) {
215
- throw new Error(`Configuration for search.url is required. See https://doc.geomapfish.dev/docs/configuration`);
215
+ throw new Error(`Configuration for search.url is required. See https://doc.geogirafe.org/docs/configuration`);
216
216
  }
217
217
  if (!config.search.url.includes('###SEARCHTERM###')) {
218
- throw new Error(`search.url is missing the expected pattern. See https://doc.geomapfish.dev/docs/configuration`);
218
+ throw new Error(`search.url is missing the expected pattern. See https://doc.geogirafe.org/docs/configuration`);
219
219
  }
220
220
  return {
221
221
  url: config.search.url,
@@ -301,7 +301,7 @@ class GirafeConfig {
301
301
  }
302
302
  initConfigThemes(config) {
303
303
  if (!config.themes?.url) {
304
- throw new Error(`Configuration for themes.url is required. See https://doc.geomapfish.dev/docs/configuration.`);
304
+ throw new Error(`Configuration for themes.url is required. See https://doc.geogirafe.org/docs/configuration.`);
305
305
  }
306
306
  return {
307
307
  url: config.themes.url,
@@ -313,7 +313,7 @@ class GirafeConfig {
313
313
  }
314
314
  initConfigLanguages(config) {
315
315
  if (!config.languages) {
316
- throw new Error(`Configuration for languages is required. See https://doc.geomapfish.dev/docs/configuration.`);
316
+ throw new Error(`Configuration for languages is required. See https://doc.geogirafe.org/docs/configuration.`);
317
317
  }
318
318
  return config.languages;
319
319
  }
@@ -343,14 +343,14 @@ class GirafeConfig {
343
343
  return undefined;
344
344
  }
345
345
  if (!config.gmfauth.url) {
346
- throw new Error(`Configuration for gmfauth.url is required. See https://doc.geomapfish.dev/docs/configuration.`);
346
+ throw new Error(`Configuration for gmfauth.url is required. See https://doc.geogirafe.org/docs/configuration.`);
347
347
  }
348
348
  let gmfauthUrl = config.gmfauth.url;
349
349
  if (!config.gmfauth.url.endsWith('/')) {
350
350
  gmfauthUrl = `${config.gmfauth.url}/`;
351
351
  }
352
352
  if (!config.gmfauth.audience) {
353
- throw new Error(`Configuration for gmfauth.audience is required. See https://doc.geomapfish.dev/docs/configuration.`);
353
+ throw new Error(`Configuration for gmfauth.audience is required. See https://doc.geogirafe.org/docs/configuration.`);
354
354
  }
355
355
  return {
356
356
  url: gmfauthUrl,
@@ -368,16 +368,16 @@ class GirafeConfig {
368
368
  return undefined;
369
369
  }
370
370
  if (!config.oauth.issuer.url) {
371
- throw new Error(`Configuration for oauth.issuer.url is required. See https://doc.geomapfish.dev/docs/configuration.`);
371
+ throw new Error(`Configuration for oauth.issuer.url is required. See https://doc.geogirafe.org/docs/configuration.`);
372
372
  }
373
373
  if (!config.oauth.issuer.clientId) {
374
- throw new Error(`Configuration for oauth.issuer.clientId is required. See https://doc.geomapfish.dev/docs/configuration.`);
374
+ throw new Error(`Configuration for oauth.issuer.clientId is required. See https://doc.geogirafe.org/docs/configuration.`);
375
375
  }
376
376
  if (!config.oauth.issuer.audience) {
377
- throw new Error(`Configuration for oauth.issuer.audience is required. See https://doc.geomapfish.dev/docs/configuration.`);
377
+ throw new Error(`Configuration for oauth.issuer.audience is required. See https://doc.geogirafe.org/docs/configuration.`);
378
378
  }
379
379
  if (!config.oauth.geomapfish.userInfoUrl) {
380
- throw new Error(`Configuration for oauth.geomapfish.userInfoUrl is required. See https://doc.geomapfish.dev/docs/configuration.`);
380
+ throw new Error(`Configuration for oauth.geomapfish.userInfoUrl is required. See https://doc.geogirafe.org/docs/configuration.`);
381
381
  }
382
382
  const issuerConfig = {
383
383
  url: config.oauth.issuer.url,
@@ -445,7 +445,7 @@ class GirafeConfig {
445
445
  if (config.filtering?.gmfLayerMetadataUrl &&
446
446
  !(config.filtering.gmfLayerMetadataUrl.includes('###LAYERNAME###') &&
447
447
  config.filtering.gmfLayerMetadataUrl.includes('###ATTRIBUTENAME###'))) {
448
- throw new Error(`Configuration for filtering.gmfLayerMetadataUrl is missing the expected pattern. See https://doc.geomapfish.dev/docs/configuration`);
448
+ throw new Error(`Configuration for filtering.gmfLayerMetadataUrl is missing the expected pattern. See https://doc.geogirafe.org/docs/configuration`);
449
449
  }
450
450
  return config.filtering ?? undefined;
451
451
  }