geonetwork-ui 2.11.0-dev.6c8b66d60 → 2.11.0-dev.73a68fe82

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 (75) hide show
  1. package/fesm2022/geonetwork-ui.mjs +1260 -850
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +192 -75
  4. package/index.d.ts.map +1 -1
  5. package/package.json +6 -5
  6. package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +2 -0
  7. package/src/libs/api/metadata-converter/src/lib/fixtures/mel.records.dataset+featurecatalog.ts +395 -0
  8. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +35 -8
  9. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +19 -0
  10. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +17 -6
  11. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +110 -0
  12. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +131 -0
  13. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +9 -0
  14. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -1
  15. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +57 -25
  16. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +83 -35
  17. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
  18. package/src/libs/common/domain/src/lib/model/record/flags.model.ts +1 -0
  19. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  20. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -18
  21. package/src/libs/common/domain/src/lib/model/search/aggregation.model.ts +2 -0
  22. package/src/libs/common/domain/src/lib/model/search/filter.model.ts +4 -1
  23. package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
  24. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +20 -1
  25. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +42 -62
  26. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +32 -19
  27. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -5
  28. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +2 -2
  29. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.css +0 -0
  30. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.html +18 -0
  31. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.ts +86 -0
  32. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +100 -88
  33. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -4
  34. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +18 -4
  35. package/src/libs/feature/editor/src/lib/expressions.ts +67 -0
  36. package/src/libs/feature/editor/src/lib/fields.config.ts +13 -0
  37. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +10 -4
  38. package/src/libs/feature/map/src/index.ts +0 -1
  39. package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.ts +8 -3
  40. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +3 -1
  41. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +1 -1
  42. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html +7 -1
  43. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +26 -4
  44. package/src/libs/feature/search/src/lib/geocoding/geocoding.service.ts +52 -8
  45. package/src/libs/feature/search/src/lib/location-search/location-search.component.html +11 -1
  46. package/src/libs/feature/search/src/lib/location-search/location-search.component.ts +77 -3
  47. package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.ts +1 -0
  48. package/src/libs/feature/search/src/lib/state/reducer.ts +1 -4
  49. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +56 -4
  50. package/src/libs/feature/search/src/lib/utils/service/fields.ts +35 -10
  51. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +3 -3
  52. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +2 -2
  53. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -4
  54. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +2 -2
  55. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +3 -3
  56. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +2 -1
  57. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.html +7 -1
  58. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.ts +26 -3
  59. package/src/libs/util/app-config/src/index.ts +1 -0
  60. package/src/libs/util/app-config/src/lib/app-config.ts +338 -250
  61. package/src/libs/util/app-config/src/lib/fixtures.ts +37 -1
  62. package/src/libs/util/app-config/src/lib/model.ts +41 -1
  63. package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
  64. package/src/libs/util/shared/src/lib/utils/geojson.ts +21 -10
  65. package/translations/de.json +12 -2
  66. package/translations/en.json +12 -2
  67. package/translations/es.json +12 -2
  68. package/translations/fr.json +17 -7
  69. package/translations/it.json +12 -2
  70. package/translations/nl.json +12 -2
  71. package/translations/pt.json +12 -2
  72. package/translations/sk.json +12 -2
  73. package/src/libs/feature/map/src/lib/style/index.ts +0 -2
  74. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +0 -47
  75. package/src/libs/feature/map/src/lib/style/map-style.service.ts +0 -108
@@ -166,6 +166,8 @@
166
166
  "editor.record.error.back": "",
167
167
  "editor.record.error.explanation": "",
168
168
  "editor.record.error.message": "",
169
+ "editor.record.flag.saveError.body": "",
170
+ "editor.record.flag.saveError.title": "",
169
171
  "editor.record.form.bottomButtons.comeBackLater": "",
170
172
  "editor.record.form.bottomButtons.next": "",
171
173
  "editor.record.form.bottomButtons.previous": "",
@@ -198,6 +200,8 @@
198
200
  "editor.record.form.field.contacts.placeholder": "",
199
201
  "editor.record.form.field.contactsForResource.noContact": "",
200
202
  "editor.record.form.field.contactsForResource.placeholder": "",
203
+ "editor.record.form.field.flags.IS_REFERENCE_DATASET": "",
204
+ "editor.record.form.field.hint.flags.IS_REFERENCE_DATASET": "",
201
205
  "editor.record.form.field.keywords": "",
202
206
  "editor.record.form.field.legalConstraints": "",
203
207
  "editor.record.form.field.license": "Licencia",
@@ -372,7 +376,7 @@
372
376
  "favorite.starToggle.add": "Pridať k obľúbeným",
373
377
  "favorite.starToggle.remove": "Odstrániť z obľúbených",
374
378
  "feature.catalog.attribute.code": "Kód",
375
- "feature.catalog.attribute.definition": "Popis",
379
+ "feature.catalog.attribute.description": "Popis",
376
380
  "feature.catalog.attribute.name": "Názov",
377
381
  "feature.catalog.attribute.type": "Typ",
378
382
  "feature.catalog.attribute.values": "Hodnoty",
@@ -658,6 +662,7 @@
658
662
  "search.filters.changeDate": "",
659
663
  "search.filters.clear": "Obnoviť",
660
664
  "search.filters.contact": "Kontakty",
665
+ "search.filters.documentStandard": "",
661
666
  "search.filters.format": "Formáty",
662
667
  "search.filters.inspireKeyword": "Kľúčové slová INSPIRE",
663
668
  "search.filters.isSpatial": "Je priestorový údaj",
@@ -691,8 +696,11 @@
691
696
  "search.filters.representationType": "Typ reprezentácie",
692
697
  "search.filters.resourceCreationRevisionDate": "",
693
698
  "search.filters.resourceType": "Typ zdroja",
699
+ "search.filters.spatialExtent": "",
694
700
  "search.filters.spatialExtent.bboxFromFile": "",
695
701
  "search.filters.spatialExtent.bboxFromFileDelete": "",
702
+ "search.filters.spatialExtent.bboxFromLocation": "",
703
+ "search.filters.spatialExtent.bboxFromLocationDelete": "",
696
704
  "search.filters.spatialExtent.bboxInitial": "",
697
705
  "search.filters.spatialExtent.bboxInitialDelete": "",
698
706
  "search.filters.spatialExtent.error.fileTooLarge": "",
@@ -700,13 +708,15 @@
700
708
  "search.filters.spatialExtent.error.noGeometry": "",
701
709
  "search.filters.spatialExtent.error.outOfBounds": "",
702
710
  "search.filters.spatialExtent.error.title": "",
703
- "search.filters.spatialExtent": "",
704
711
  "search.filters.spatialExtent.helpText": "",
705
712
  "search.filters.spatialExtent.import": "",
713
+ "search.filters.spatialExtent.searchLocation": "",
706
714
  "search.filters.standard": "Štandard",
707
715
  "search.filters.summaryLabel.changeDate": "",
708
716
  "search.filters.summaryLabel.resourceCreationRevisionDate": "",
717
+ "search.filters.summaryLabel.temporalExtent": "",
709
718
  "search.filters.summaryLabel.user": "",
719
+ "search.filters.temporalExtent": "",
710
720
  "search.filters.title": "Filtrovanie výsledkov",
711
721
  "search.filters.topic": "Témy",
712
722
  "search.filters.useSpatialFilter": "Najskôr zobraziť záznamy v oblasti záujmu",
@@ -1,2 +0,0 @@
1
- export * from './map-style.service'
2
- export * from './map-style.fixtures'
@@ -1,47 +0,0 @@
1
- import { Circle, Fill, Stroke, Style } from 'ol/style.js'
2
-
3
- const colorPrimary = 'blue'
4
- const colorSecondary = 'red'
5
- const colorStroke = 'white'
6
-
7
- export const defaultMapStyleFixture = (): Style =>
8
- new Style({
9
- image: new Circle({
10
- fill: new Fill({
11
- color: colorPrimary,
12
- }),
13
- stroke: new Stroke({
14
- color: colorStroke,
15
- width: 2,
16
- }),
17
- radius: 5,
18
- }),
19
- fill: new Fill({
20
- color: 'rgba(0,0,255,0.25)',
21
- }),
22
- stroke: new Stroke({
23
- color: colorStroke,
24
- width: 2,
25
- }),
26
- })
27
-
28
- export const defaultMapStyleHlFixture = (): Style =>
29
- new Style({
30
- image: new Circle({
31
- fill: new Fill({
32
- color: colorSecondary,
33
- }),
34
- stroke: new Stroke({
35
- color: colorStroke,
36
- width: 3,
37
- }),
38
- radius: 6,
39
- }),
40
- fill: new Fill({
41
- color: 'rgba(255,0,0,0.25)',
42
- }),
43
- stroke: new Stroke({
44
- color: colorSecondary,
45
- width: 3,
46
- }),
47
- })
@@ -1,108 +0,0 @@
1
- import { Injectable } from '@angular/core'
2
- import { getThemeConfig, isConfigLoaded } from '../../../../../../libs/util/app-config/src'
3
- import chroma from 'chroma-js'
4
- import Feature from 'ol/Feature.js'
5
- import { Fill, Stroke, Style } from 'ol/style.js'
6
- import CircleStyle from 'ol/style/Circle.js'
7
- import { StyleLike } from 'ol/style/Style.js'
8
-
9
- export interface CreateStyleOptions {
10
- color: string
11
- isFocused?: boolean
12
- }
13
-
14
- export type StyleByGeometryType = {
15
- line: Style | Style[]
16
- polygon: Style | Style[]
17
- point: Style | Style[]
18
- }
19
-
20
- @Injectable({
21
- providedIn: 'root',
22
- })
23
- export class MapStyleService {
24
- styles = {
25
- default: this.createStyleFunction(
26
- this.createGeometryStyles({
27
- color: isConfigLoaded() ? getThemeConfig().PRIMARY_COLOR : 'blue',
28
- })
29
- ),
30
- defaultHL: this.createStyleFunction(
31
- this.createGeometryStyles({
32
- color: isConfigLoaded() ? getThemeConfig().SECONDARY_COLOR : 'red',
33
- isFocused: true,
34
- })
35
- ),
36
- }
37
-
38
- createGeometryStyles(options: CreateStyleOptions): StyleByGeometryType {
39
- const { color, isFocused } = options
40
- const zIndex = isFocused ? 10 : undefined
41
- return {
42
- polygon: new Style({
43
- fill: new Fill({
44
- color: this.computeTransparentFillColor(color),
45
- }),
46
- stroke: new Stroke({
47
- color: 'white',
48
- width: 2,
49
- }),
50
- zIndex,
51
- }),
52
- point: new Style({
53
- image: new CircleStyle({
54
- fill: new Fill({
55
- color,
56
- }),
57
- stroke: new Stroke({
58
- color: 'white',
59
- width: isFocused ? 3 : 2,
60
- }),
61
- radius: isFocused ? 8 : 7,
62
- }),
63
- zIndex,
64
- }),
65
- line: [
66
- new Style({
67
- stroke: new Stroke({
68
- color: 'white',
69
- width: isFocused ? 8 : 6,
70
- }),
71
- zIndex,
72
- }),
73
- new Style({
74
- stroke: new Stroke({
75
- color,
76
- width: isFocused ? 3 : 2,
77
- }),
78
- zIndex,
79
- }),
80
- ],
81
- }
82
- }
83
-
84
- createStyleFunction(styleByGeometryType: StyleByGeometryType): StyleLike {
85
- return (feature: Feature): Style | Style[] => {
86
- const geometryType = feature?.getGeometry()?.getType()
87
- switch (geometryType) {
88
- case 'LinearRing':
89
- case 'LineString':
90
- case 'MultiLineString':
91
- return styleByGeometryType.line
92
- case 'Point':
93
- case 'MultiPoint':
94
- return styleByGeometryType.point
95
- case 'Circle':
96
- case 'Polygon':
97
- case 'MultiPolygon':
98
- return styleByGeometryType.polygon
99
- default:
100
- return styleByGeometryType.point
101
- }
102
- }
103
- }
104
-
105
- private computeTransparentFillColor(color: string, alpha = 0.25): string {
106
- return chroma(color).alpha(alpha).css()
107
- }
108
- }