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.
- package/fesm2022/geonetwork-ui.mjs +52 -30
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +5 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +13 -6
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +9 -3
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +5 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +10 -7
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +7 -5
- package/translations/de.json +2 -1
- package/translations/en.json +5 -4
- package/translations/es.json +1 -0
- package/translations/fr.json +5 -4
- package/translations/it.json +5 -4
- package/translations/nl.json +1 -0
- package/translations/pt.json +1 -0
- package/translations/sk.json +1 -0
|
@@ -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 (
|
|
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
|
-
|
|
164
|
-
|
|
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()
|
package/translations/de.json
CHANGED
|
@@ -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": "
|
|
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:",
|
package/translations/en.json
CHANGED
|
@@ -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": "
|
|
418
|
-
"record.kind.reuse": "
|
|
419
|
-
"record.kind.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": "
|
|
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 :",
|
package/translations/es.json
CHANGED
|
@@ -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": "",
|
package/translations/fr.json
CHANGED
|
@@ -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": "
|
|
418
|
-
"record.kind.reuse": "
|
|
419
|
-
"record.kind.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": "
|
|
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 :",
|
package/translations/it.json
CHANGED
|
@@ -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": "
|
|
418
|
-
"record.kind.reuse": "
|
|
419
|
-
"record.kind.service": "
|
|
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": "
|
|
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": "",
|
package/translations/nl.json
CHANGED
package/translations/pt.json
CHANGED
package/translations/sk.json
CHANGED
|
@@ -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:",
|