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.
@@ -29,16 +29,19 @@
29
29
  </div>
30
30
  @if (shownOrganization?.website) {
31
31
  <div>
32
- <a
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-[12px] !h-[12px] opacity-75 shrink-0"
34
+ class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
39
35
  name="matOpenInNew"
40
36
  ></ng-icon>
41
- </a>
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 (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()
@@ -4,5 +4,5 @@ export const GEONETWORK_UI_VERSION = packageJson.version
4
4
 
5
5
  export const GEONETWORK_UI_TAG_NAME =
6
6
  GEONETWORK_UI_VERSION.split('-')[1] === 'dev'
7
- ? '2.8.x'
7
+ ? 'main'
8
8
  : `v${packageJson.version}`
@@ -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": "Geographischer Datensatz",
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:",
@@ -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": "Dataset",
418
- "record.kind.reuse": "Reuse",
419
- "record.kind.service": "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": "Geographical dataset",
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 :",
@@ -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": "Donnée",
418
- "record.kind.reuse": "Réutilisation",
419
- "record.kind.service": "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": "Donnée géographique",
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 :",
@@ -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": "Dataset",
418
- "record.kind.reuse": "Riutilizzato",
419
- "record.kind.service": "Servizio",
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": "Dati geografici",
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": "",