geonetwork-ui 2.8.1-dev.8a76e5fef → 2.9.0-dev.079fe7365
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 +29 -36
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +4 -4
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -5
- package/src/libs/common/domain/src/index.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +3 -9
- 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/src/libs/util/shared/src/lib/gn-ui-version.ts +1 -1
- package/translations/de.json +1 -1
- package/translations/en.json +4 -4
- package/translations/fr.json +4 -4
- package/translations/it.json +4 -4
|
@@ -29,16 +29,19 @@
|
|
|
29
29
|
</div>
|
|
30
30
|
@if (shownOrganization?.website) {
|
|
31
31
|
<div>
|
|
32
|
-
<
|
|
33
|
-
[href]="shownOrganization.website"
|
|
34
|
-
target="_blank"
|
|
35
|
-
class="contact-website text-sm cursor-pointer hover:underline transition-all"
|
|
36
|
-
>{{ shownOrganization.website }}
|
|
32
|
+
<div class="flex items-center mt-1">
|
|
37
33
|
<ng-icon
|
|
38
|
-
class="!w-
|
|
34
|
+
class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
39
35
|
name="matOpenInNew"
|
|
40
36
|
></ng-icon>
|
|
41
|
-
|
|
37
|
+
<a
|
|
38
|
+
[href]="shownOrganization.website"
|
|
39
|
+
target="_blank"
|
|
40
|
+
class="contact-website text-sm cursor-pointer hover:underline transition-all ml-2"
|
|
41
|
+
>
|
|
42
|
+
{{ shownOrganization.website }}
|
|
43
|
+
</a>
|
|
44
|
+
</div>
|
|
42
45
|
</div>
|
|
43
46
|
}
|
|
44
47
|
</div>
|
|
@@ -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
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"record.metadata.download": "Herunterladen",
|
|
473
473
|
"record.metadata.feature.catalog": "Attributkatalog",
|
|
474
474
|
"record.metadata.formats": "Formate",
|
|
475
|
-
"record.metadata.isGeographical": "
|
|
475
|
+
"record.metadata.isGeographical": "geographischer Datensatz",
|
|
476
476
|
"record.metadata.keywords": "Stichworte",
|
|
477
477
|
"record.metadata.languages": "Sprachen",
|
|
478
478
|
"record.metadata.link.postgis.table": "Tabelle:",
|
package/translations/en.json
CHANGED
|
@@ -414,9 +414,9 @@
|
|
|
414
414
|
"record.feature.catalog.number.total.attribute": "Total amount of objects",
|
|
415
415
|
"record.feature.catalog.number.total.object": "Total amount of attributes",
|
|
416
416
|
"record.feature.limit": "Preview disabled due to too many elements",
|
|
417
|
-
"record.kind.dataset": "
|
|
418
|
-
"record.kind.reuse": "
|
|
419
|
-
"record.kind.service": "
|
|
417
|
+
"record.kind.dataset": "dataset",
|
|
418
|
+
"record.kind.reuse": "reuse",
|
|
419
|
+
"record.kind.service": "service",
|
|
420
420
|
"record.metadata.about": "Description",
|
|
421
421
|
"record.metadata.api": "API",
|
|
422
422
|
"record.metadata.api.accessServiceProtocol.GPFDL": "GPFDL",
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"record.metadata.download": "Downloads",
|
|
473
473
|
"record.metadata.feature.catalog": "Feature catalog",
|
|
474
474
|
"record.metadata.formats": "Formats",
|
|
475
|
-
"record.metadata.isGeographical": "
|
|
475
|
+
"record.metadata.isGeographical": "geographic dataset",
|
|
476
476
|
"record.metadata.keywords": "Keywords",
|
|
477
477
|
"record.metadata.languages": "Languages",
|
|
478
478
|
"record.metadata.link.postgis.table": "table :",
|
package/translations/fr.json
CHANGED
|
@@ -414,9 +414,9 @@
|
|
|
414
414
|
"record.feature.catalog.number.total.attribute": "Nombre total d'attributs",
|
|
415
415
|
"record.feature.catalog.number.total.object": "Nombre total d'objets",
|
|
416
416
|
"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": "
|
|
417
|
+
"record.kind.dataset": "donnée",
|
|
418
|
+
"record.kind.reuse": "réutilisation",
|
|
419
|
+
"record.kind.service": "service",
|
|
420
420
|
"record.metadata.about": "A propos",
|
|
421
421
|
"record.metadata.api": "API",
|
|
422
422
|
"record.metadata.api.accessServiceProtocol.GPFDL": "",
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"record.metadata.download": "Téléchargements",
|
|
473
473
|
"record.metadata.feature.catalog": "Catalogue d'attributs",
|
|
474
474
|
"record.metadata.formats": "Formats",
|
|
475
|
-
"record.metadata.isGeographical": "
|
|
475
|
+
"record.metadata.isGeographical": "donnée géographique",
|
|
476
476
|
"record.metadata.keywords": "Mots-clés",
|
|
477
477
|
"record.metadata.languages": "Langues",
|
|
478
478
|
"record.metadata.link.postgis.table": "table :",
|
package/translations/it.json
CHANGED
|
@@ -414,9 +414,9 @@
|
|
|
414
414
|
"record.feature.catalog.number.total.attribute": "Quantità totale di oggetti",
|
|
415
415
|
"record.feature.catalog.number.total.object": "Quantità totale di attributi",
|
|
416
416
|
"record.feature.limit": "La visualizzazione è stata disabilitata a causa di troppi elementi ",
|
|
417
|
-
"record.kind.dataset": "
|
|
418
|
-
"record.kind.reuse": "
|
|
419
|
-
"record.kind.service": "
|
|
417
|
+
"record.kind.dataset": "dataset",
|
|
418
|
+
"record.kind.reuse": "riutilizzato",
|
|
419
|
+
"record.kind.service": "servizio",
|
|
420
420
|
"record.metadata.about": "Descrizione",
|
|
421
421
|
"record.metadata.api": "API",
|
|
422
422
|
"record.metadata.api.accessServiceProtocol.GPFDL": "",
|
|
@@ -472,7 +472,7 @@
|
|
|
472
472
|
"record.metadata.download": "Download",
|
|
473
473
|
"record.metadata.feature.catalog": "Catalogo dei oggetti",
|
|
474
474
|
"record.metadata.formats": "Formati",
|
|
475
|
-
"record.metadata.isGeographical": "
|
|
475
|
+
"record.metadata.isGeographical": "dati geografici",
|
|
476
476
|
"record.metadata.keywords": "Parole chiave",
|
|
477
477
|
"record.metadata.languages": "Lingue",
|
|
478
478
|
"record.metadata.link.postgis.table": "",
|