geonetwork-ui 2.9.0-dev.2757b04b7 → 2.9.0-dev.53585ee9e

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.
@@ -29,6 +29,7 @@ import {
29
29
  filter,
30
30
  finalize,
31
31
  map,
32
+ shareReplay,
32
33
  switchMap,
33
34
  take,
34
35
  tap,
@@ -139,9 +140,8 @@ export class AutocompleteComponent
139
140
  ngOnChanges(changes: SimpleChanges): void {
140
141
  const { value } = changes
141
142
  if (value) {
142
- const previousTextValue = this.displayWithFnInternal(value.previousValue)
143
143
  const currentTextValue = this.displayWithFnInternal(value.currentValue)
144
- if (previousTextValue !== currentTextValue) {
144
+ if (currentTextValue !== this.control.value) {
145
145
  if (currentTextValue) {
146
146
  this.searchActive = true
147
147
  this.isSearchActive.emit(true)
@@ -160,8 +160,8 @@ export class AutocompleteComponent
160
160
  this.inputCleared.pipe(map(() => '')),
161
161
  this.control.valueChanges.pipe(
162
162
  filter((value) => typeof value === 'string'),
163
- distinctUntilChanged(),
164
- debounceTime(400)
163
+ debounceTime(400),
164
+ distinctUntilChanged()
165
165
  )
166
166
  )
167
167
 
@@ -181,7 +181,8 @@ export class AutocompleteComponent
181
181
  this.searching = true
182
182
  this.error = null
183
183
  }),
184
- switchMap((value) => this.action(value)),
184
+ switchMap((value) => this.action(value)), // this can trigger http requests
185
+ shareReplay(1), // share the loaded suggestions to avoid multiple requests
185
186
  tap((suggestions) => {
186
187
  // forcing the panel to open if there are suggestions
187
188
  if (suggestions.length > 0 && !this.searchActive) {
@@ -288,6 +289,7 @@ export class AutocompleteComponent
288
289
 
289
290
  clear(): void {
290
291
  this.inputRef.nativeElement.value = ''
292
+ this.control.setValue('')
291
293
  this.searchActive = false
292
294
  this.isSearchActive.emit(false)
293
295
  this.inputCleared.emit()
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "Suche",
388
388
  "nav.back": "Zurück",
389
389
  "navbar.mobile.menuTitle": "Schnellzugriff",
390
+ "ogc.geojson.notsupported": "Dieser OGC API-Dienst unterstützt das GeoJSON-Format nicht.",
390
391
  "ogc.unreachable.unknown": "Der Dienst konnte nicht erreicht werden",
391
392
  "organisation.filter.placeholder": "Ergebnisse filtern",
392
393
  "organisation.sort.sortBy": "Sortieren nach:",
@@ -472,7 +473,7 @@
472
473
  "record.metadata.download": "Herunterladen",
473
474
  "record.metadata.feature.catalog": "Attributkatalog",
474
475
  "record.metadata.formats": "Formate",
475
- "record.metadata.isGeographical": "Geographischer Datensatz",
476
+ "record.metadata.isGeographical": "geographischer Datensatz",
476
477
  "record.metadata.keywords": "Stichworte",
477
478
  "record.metadata.languages": "Sprachen",
478
479
  "record.metadata.link.postgis.table": "Tabelle:",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "Search",
388
388
  "nav.back": "Back",
389
389
  "navbar.mobile.menuTitle": "Quick access",
390
+ "ogc.geojson.notsupported": "This OGC API does not support the GeoJSON format",
390
391
  "ogc.unreachable.unknown": "The service could not be reached",
391
392
  "organisation.filter.placeholder": "Filter results",
392
393
  "organisation.sort.sortBy": "Sort by:",
@@ -414,9 +415,9 @@
414
415
  "record.feature.catalog.number.total.attribute": "Total amount of objects",
415
416
  "record.feature.catalog.number.total.object": "Total amount of attributes",
416
417
  "record.feature.limit": "Preview disabled due to too many elements",
417
- "record.kind.dataset": "Dataset",
418
- "record.kind.reuse": "Reuse",
419
- "record.kind.service": "Service",
418
+ "record.kind.dataset": "dataset",
419
+ "record.kind.reuse": "reuse",
420
+ "record.kind.service": "service",
420
421
  "record.metadata.about": "Description",
421
422
  "record.metadata.api": "API",
422
423
  "record.metadata.api.accessServiceProtocol.GPFDL": "GPFDL",
@@ -472,7 +473,7 @@
472
473
  "record.metadata.download": "Downloads",
473
474
  "record.metadata.feature.catalog": "Feature catalog",
474
475
  "record.metadata.formats": "Formats",
475
- "record.metadata.isGeographical": "Geographical dataset",
476
+ "record.metadata.isGeographical": "geographic dataset",
476
477
  "record.metadata.keywords": "Keywords",
477
478
  "record.metadata.languages": "Languages",
478
479
  "record.metadata.link.postgis.table": "table :",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "",
388
388
  "nav.back": "",
389
389
  "navbar.mobile.menuTitle": "Acceso rápido",
390
+ "ogc.geojson.notsupported": "",
390
391
  "ogc.unreachable.unknown": "",
391
392
  "organisation.filter.placeholder": "",
392
393
  "organisation.sort.sortBy": "",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "Rechercher",
388
388
  "nav.back": "Retour",
389
389
  "navbar.mobile.menuTitle": "Navigation rapide",
390
+ "ogc.geojson.notsupported": "Le service OGC API ne supporte pas le format GeoJSON",
390
391
  "ogc.unreachable.unknown": "Le service n'est pas accessible",
391
392
  "organisation.filter.placeholder": "Filtrer les résultats",
392
393
  "organisation.sort.sortBy": "Trier par :",
@@ -414,9 +415,9 @@
414
415
  "record.feature.catalog.number.total.attribute": "Nombre total d'attributs",
415
416
  "record.feature.catalog.number.total.object": "Nombre total d'objets",
416
417
  "record.feature.limit": "L’aperçu a été désactivé en raison d’un trop grand nombre d'éléments",
417
- "record.kind.dataset": "Donnée",
418
- "record.kind.reuse": "Réutilisation",
419
- "record.kind.service": "Service",
418
+ "record.kind.dataset": "donnée",
419
+ "record.kind.reuse": "réutilisation",
420
+ "record.kind.service": "service",
420
421
  "record.metadata.about": "A propos",
421
422
  "record.metadata.api": "API",
422
423
  "record.metadata.api.accessServiceProtocol.GPFDL": "",
@@ -472,7 +473,7 @@
472
473
  "record.metadata.download": "Téléchargements",
473
474
  "record.metadata.feature.catalog": "Catalogue d'attributs",
474
475
  "record.metadata.formats": "Formats",
475
- "record.metadata.isGeographical": "Donnée géographique",
476
+ "record.metadata.isGeographical": "donnée géographique",
476
477
  "record.metadata.keywords": "Mots-clés",
477
478
  "record.metadata.languages": "Langues",
478
479
  "record.metadata.link.postgis.table": "table :",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "Cerca",
388
388
  "nav.back": "Indietro",
389
389
  "navbar.mobile.menuTitle": "Accesso rapido",
390
+ "ogc.geojson.notsupported": "Il servizio OGC API non supporta il formato GeoJSON.",
390
391
  "ogc.unreachable.unknown": "Il servizio non è accessibile",
391
392
  "organisation.filter.placeholder": "Filtra i risultati",
392
393
  "organisation.sort.sortBy": "Ordina per:",
@@ -414,9 +415,9 @@
414
415
  "record.feature.catalog.number.total.attribute": "Quantità totale di oggetti",
415
416
  "record.feature.catalog.number.total.object": "Quantità totale di attributi",
416
417
  "record.feature.limit": "La visualizzazione è stata disabilitata a causa di troppi elementi ",
417
- "record.kind.dataset": "Dataset",
418
- "record.kind.reuse": "Riutilizzato",
419
- "record.kind.service": "Servizio",
418
+ "record.kind.dataset": "dataset",
419
+ "record.kind.reuse": "riutilizzato",
420
+ "record.kind.service": "servizio",
420
421
  "record.metadata.about": "Descrizione",
421
422
  "record.metadata.api": "API",
422
423
  "record.metadata.api.accessServiceProtocol.GPFDL": "",
@@ -472,7 +473,7 @@
472
473
  "record.metadata.download": "Download",
473
474
  "record.metadata.feature.catalog": "Catalogo dei oggetti",
474
475
  "record.metadata.formats": "Formati",
475
- "record.metadata.isGeographical": "Dati geografici",
476
+ "record.metadata.isGeographical": "dati geografici",
476
477
  "record.metadata.keywords": "Parole chiave",
477
478
  "record.metadata.languages": "Lingue",
478
479
  "record.metadata.link.postgis.table": "",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "",
388
388
  "nav.back": "",
389
389
  "navbar.mobile.menuTitle": "",
390
+ "ogc.geojson.notsupported": "",
390
391
  "ogc.unreachable.unknown": "",
391
392
  "organisation.filter.placeholder": "",
392
393
  "organisation.sort.sortBy": "",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "",
388
388
  "nav.back": "",
389
389
  "navbar.mobile.menuTitle": "",
390
+ "ogc.geojson.notsupported": "",
390
391
  "ogc.unreachable.unknown": "",
391
392
  "organisation.filter.placeholder": "",
392
393
  "organisation.sort.sortBy": "",
@@ -387,6 +387,7 @@
387
387
  "multiselect.filter.placeholder": "Hľadať",
388
388
  "nav.back": "Späť",
389
389
  "navbar.mobile.menuTitle": "",
390
+ "ogc.geojson.notsupported": "",
390
391
  "ogc.unreachable.unknown": "So službou sa nedalo spojiť",
391
392
  "organisation.filter.placeholder": "Filtrovať výsledky",
392
393
  "organisation.sort.sortBy": "Zoradiť podľa:",