geonetwork-ui 2.10.0-dev.a9cc01fc7 → 2.10.0-dev.d0cd0940b

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.
Files changed (22) hide show
  1. package/fesm2022/geonetwork-ui.mjs +15 -9
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +1 -0
  4. package/index.d.ts.map +1 -1
  5. package/package.json +1 -1
  6. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-single-link-resource/form-field-online-single-link-resource.component.css +0 -0
  7. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-single-link-resource/form-field-online-single-link-resource.component.html +5 -0
  8. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-single-link-resource/form-field-online-single-link-resource.component.ts +89 -0
  9. package/src/libs/feature/notify-reuse/src/index.ts +1 -0
  10. package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.css +0 -0
  11. package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.html +1 -0
  12. package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.ts +21 -0
  13. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +2 -1
  14. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts +11 -10
  15. package/translations/de.json +1 -0
  16. package/translations/en.json +1 -0
  17. package/translations/es.json +1 -0
  18. package/translations/fr.json +1 -0
  19. package/translations/it.json +1 -0
  20. package/translations/nl.json +1 -0
  21. package/translations/pt.json +1 -0
  22. package/translations/sk.json +1 -0
@@ -1,4 +1,4 @@
1
- import { Component, Input } from '@angular/core'
1
+ import { ChangeDetectorRef, Component, inject, Input } from '@angular/core'
2
2
  import { CommonModule } from '@angular/common'
3
3
  import { Geometry } from 'geojson'
4
4
  import { GeoJSONFeatureCollection } from 'ol/format/GeoJSON.js'
@@ -10,8 +10,8 @@ import {
10
10
  MapContextLayer,
11
11
  } from '@geospatial-sdk/core'
12
12
  import { MapContainerComponent } from '../map-container/map-container.component'
13
- import { BehaviorSubject, Observable } from 'rxjs'
14
- import { switchMap } from 'rxjs/operators'
13
+ import { BehaviorSubject, from, Observable, of } from 'rxjs'
14
+ import { map, switchMap, tap } from 'rxjs/operators'
15
15
  import { DatasetSpatialExtent } from '../../../../../../../libs/common/domain/src/lib/model/record'
16
16
 
17
17
  @Component({
@@ -22,14 +22,16 @@ import { DatasetSpatialExtent } from '../../../../../../../libs/common/domain/sr
22
22
  styleUrl: './spatial-extent.component.css',
23
23
  })
24
24
  export class SpatialExtentComponent {
25
+ private _cdr = inject(ChangeDetectorRef)
26
+
25
27
  @Input() set spatialExtents(value: DatasetSpatialExtent[]) {
26
28
  this.spatialExtents$.next(value)
27
29
  }
28
30
  spatialExtents$ = new BehaviorSubject<DatasetSpatialExtent[]>([])
29
31
  mapContext$: Observable<MapContext> = this.spatialExtents$.pipe(
30
- switchMap(async (extents) => {
32
+ switchMap((extents) => {
31
33
  if (extents.length === 0) {
32
- return null // null extent means default view
34
+ return of(null)
33
35
  }
34
36
  const featureCollection: GeoJSONFeatureCollection = {
35
37
  type: 'FeatureCollection',
@@ -61,11 +63,10 @@ export class SpatialExtentComponent {
61
63
  'fill-color': 'rgba(153, 153, 153, 0.3)',
62
64
  },
63
65
  }
64
- const view = await createViewFromLayer(layer)
65
- return {
66
- view,
67
- layers: [layer],
68
- }
66
+ return from(createViewFromLayer(layer)).pipe(
67
+ map((view) => ({ view, layers: [layer] }) as MapContext),
68
+ tap(() => this._cdr.markForCheck())
69
+ )
69
70
  })
70
71
  )
71
72
 
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "Rechtliche Einschränkung",
160
160
  "editor.record.form.field.license": "Lizenz",
161
161
  "editor.record.form.field.onlineLinkResources": "Beigefügte Ressourcen",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "Link",
162
163
  "editor.record.form.field.onlineResource.cancel": "Abbrechen",
163
164
  "editor.record.form.field.onlineResource.confirm": "Bestätigen",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "Vorschau des Datensatzes bearbeiten",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "Legal constraint",
160
160
  "editor.record.form.field.license": "License",
161
161
  "editor.record.form.field.onlineLinkResources": "Attached resources",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "Link",
162
163
  "editor.record.form.field.onlineResource.cancel": "Cancel",
163
164
  "editor.record.form.field.onlineResource.confirm": "Confirm",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "Modify the dataset preview",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "",
160
160
  "editor.record.form.field.license": "",
161
161
  "editor.record.form.field.onlineLinkResources": "",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "",
162
163
  "editor.record.form.field.onlineResource.cancel": "",
163
164
  "editor.record.form.field.onlineResource.confirm": "",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "Contrainte légale",
160
160
  "editor.record.form.field.license": "Licence",
161
161
  "editor.record.form.field.onlineLinkResources": "Ressources attachées",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "Lien",
162
163
  "editor.record.form.field.onlineResource.cancel": "Annuler",
163
164
  "editor.record.form.field.onlineResource.confirm": "Valider",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "Modifier l'aperçu du jeu de données",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "Vincolo legale",
160
160
  "editor.record.form.field.license": "Licenza",
161
161
  "editor.record.form.field.onlineLinkResources": "Risorse allegate",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "Link",
162
163
  "editor.record.form.field.onlineResource.cancel": "Annulla",
163
164
  "editor.record.form.field.onlineResource.confirm": "Convalida",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "Modifica anteprima dataset",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "",
160
160
  "editor.record.form.field.license": "",
161
161
  "editor.record.form.field.onlineLinkResources": "",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "",
162
163
  "editor.record.form.field.onlineResource.cancel": "",
163
164
  "editor.record.form.field.onlineResource.confirm": "",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "",
160
160
  "editor.record.form.field.license": "",
161
161
  "editor.record.form.field.onlineLinkResources": "",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "",
162
163
  "editor.record.form.field.onlineResource.cancel": "",
163
164
  "editor.record.form.field.onlineResource.confirm": "",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "",
@@ -159,6 +159,7 @@
159
159
  "editor.record.form.field.legalConstraints": "",
160
160
  "editor.record.form.field.license": "Licencia",
161
161
  "editor.record.form.field.onlineLinkResources": "",
162
+ "editor.record.form.field.onlineLinkageResource.defaultName": "",
162
163
  "editor.record.form.field.onlineResource.cancel": "",
163
164
  "editor.record.form.field.onlineResource.confirm": "",
164
165
  "editor.record.form.field.onlineResource.dialogTitle": "",