geonetwork-ui 2.7.0-dev.32f2d4483 → 2.7.0-dev.dbe423d28
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/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +4 -2
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +3 -4
- package/esm2022/libs/ui/map/src/lib/components/map-legend/map-legend.component.mjs +2 -2
- package/esm2022/translations/de.json +1 -0
- package/esm2022/translations/en.json +1 -0
- package/esm2022/translations/es.json +1 -0
- package/esm2022/translations/fr.json +1 -0
- package/esm2022/translations/it.json +1 -0
- package/esm2022/translations/nl.json +1 -0
- package/esm2022/translations/pt.json +1 -0
- package/esm2022/translations/sk.json +1 -0
- package/fesm2022/geonetwork-ui.mjs +17 -8
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +3 -2
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -1
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +2 -3
- package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.ts +1 -1
- package/translations/de.json +1 -0
- package/translations/en.json +1 -0
- package/translations/es.json +1 -0
- package/translations/fr.json +1 -0
- package/translations/it.json +1 -0
- package/translations/nl.json +1 -0
- package/translations/pt.json +1 -0
- package/translations/sk.json +1 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mdview.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/record/src/lib/state/mdview.effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAI7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;AAClH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;;AACxC,qBACa,aAAa;IAEtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,wBAAwB;IAChC,OAAO,CAAC,MAAM;gBAHN,QAAQ,EAAE,OAAO,EACjB,iBAAiB,EAAE,0BAA0B,EAC7C,wBAAwB,EAAE,wBAAwB,EAClD,MAAM,EAAE,MAAM;IAMxB,iBAAiB;;;;;
|
|
1
|
+
{"version":3,"file":"mdview.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/record/src/lib/state/mdview.effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAI7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;AAClH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;;AACxC,qBACa,aAAa;IAEtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,wBAAwB;IAChC,OAAO,CAAC,MAAM;gBAHN,QAAQ,EAAE,OAAO,EACjB,iBAAiB,EAAE,0BAA0B,EAC7C,wBAAwB,EAAE,wBAAwB,EAClD,MAAM,EAAE,MAAM;IAMxB,iBAAiB;;;;;oIAkBhB;IAED,mBAAmB;;;;+IAkBlB;IAKD,mBAAmB;;4HASlB;IAED,YAAY;;oHASX;IAED,aAAa;;wHASZ;IAKD,kBAAkB;;;;;oIAkBjB;IAED,oBAAoB;;;;;oIAkBnB;IAED,gBAAgB;;;;;kIAsBf;yCAxJU,aAAa;6CAAb,aAAa;CAyJzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-catalog-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAoB,MAAM,eAAe,CAAA;AAGvE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,EAEL,wBAAwB,EAEzB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAA;;AAUvE,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,qBAiBa,2BAA2B;IAC7B,sBAAsB,EAAG,qBAAqB,CAAA;IAEzB,eAAe,EAAG,UAAU,CAAA;IACd,UAAU,EAAG,aAAa,CAAA;IAEtE,cAAc,EAAE,wBAAwB,CAAA;IAExC,QAAQ,CAAC,eAAe,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"file":"feature-catalog-list.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAoB,MAAM,eAAe,CAAA;AAGvE,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,8DAA8D,CAAA;AAGrE,OAAO,EAEL,wBAAwB,EAEzB,MAAM,yCAAyC,CAAA;AAChD,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAA;;AAUvE,UAAU,gBAAgB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,qBAiBa,2BAA2B;IAC7B,sBAAsB,EAAG,qBAAqB,CAAA;IAEzB,eAAe,EAAG,UAAU,CAAA;IACd,UAAU,EAAG,aAAa,CAAA;IAEtE,cAAc,EAAE,wBAAwB,CAAA;IAExC,QAAQ,CAAC,eAAe,EAAE,gBAAgB,EAAE,CAI3C;IAED,QAAQ,CAAC,aAAa,EAAE,gBAAgB,CAIvC;IAED,oBAAoB,CAAC,KAAK,EAAE,uBAAuB,EAAE,GAAG,gBAAgB,EAAE;IAK1E,sBAAsB,CAAC,UAAU,EAAE,uBAAuB,EAAE;IAM5D,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE;yCA/BnC,2BAA2B;2CAA3B,2BAA2B;CAkCvC"}
|
package/package.json
CHANGED
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
[hidden]="!showLegend || !legendExists"
|
|
86
86
|
>
|
|
87
87
|
<div class="flex justify-between items-center mb-2">
|
|
88
|
-
<div class="text-primary font-bold">
|
|
88
|
+
<div class="text-primary font-bold" translate>map.legend.title</div>
|
|
89
89
|
<gn-ui-button
|
|
90
90
|
type="light"
|
|
91
91
|
(buttonClick)="toggleLegend()"
|
|
@@ -110,8 +110,9 @@
|
|
|
110
110
|
type="outline"
|
|
111
111
|
(buttonClick)="toggleLegend()"
|
|
112
112
|
extraClass="absolute top-[1em] right-[1em] rounded p-1 text-xs bg-white"
|
|
113
|
+
translate
|
|
113
114
|
>
|
|
114
|
-
|
|
115
|
+
map.legend.title
|
|
115
116
|
</gn-ui-button>
|
|
116
117
|
|
|
117
118
|
<gn-ui-loading-mask
|
|
@@ -23,7 +23,11 @@ export class MdViewEffects {
|
|
|
23
23
|
ofType(MdViewActions.loadFullMetadata),
|
|
24
24
|
switchMap(({ uuid }) => this.recordsRepository.getRecord(uuid)),
|
|
25
25
|
map((record) => {
|
|
26
|
-
if (
|
|
26
|
+
if (
|
|
27
|
+
record === null ||
|
|
28
|
+
(this.router.url !== '/' && // FIXME: special case for WC, find a better way
|
|
29
|
+
!this.router.url.includes(record.kind))
|
|
30
|
+
) {
|
|
27
31
|
return MdViewActions.loadFullMetadataFailure({ notFound: true })
|
|
28
32
|
}
|
|
29
33
|
return MdViewActions.loadFullMetadataSuccess({ full: record })
|
|
@@ -54,9 +54,8 @@ export class FeatureCatalogListComponent {
|
|
|
54
54
|
panelComponent: ExpandablePanelComponent
|
|
55
55
|
|
|
56
56
|
readonly COLUMNS_DEFAULT: ColumnDefinition[] = [
|
|
57
|
-
{ key: 'type', width: '
|
|
58
|
-
{ key: 'name', width: '
|
|
59
|
-
{ key: 'code', width: '17%' },
|
|
57
|
+
{ key: 'type', width: '25%' },
|
|
58
|
+
{ key: 'name', width: '40%' },
|
|
60
59
|
{ key: 'definition', width: 'minmax(0px, 1fr)' },
|
|
61
60
|
]
|
|
62
61
|
|
|
@@ -27,7 +27,7 @@ export class MapLegendComponent implements OnChanges {
|
|
|
27
27
|
async ngOnChanges(changes: SimpleChanges) {
|
|
28
28
|
if ('context' in changes) {
|
|
29
29
|
const mapContext = changes['context'].currentValue
|
|
30
|
-
if (mapContext
|
|
30
|
+
if (mapContext?.layers && mapContext.layers.length > 0) {
|
|
31
31
|
const mapContextLayer = mapContext.layers[0]
|
|
32
32
|
this.legendHTML = await createLegendFromLayer(mapContextLayer)
|
|
33
33
|
if (this.legendHTML) {
|
package/translations/de.json
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "Hinzufügen",
|
|
341
341
|
"map.layers.available": "Verfügbare Layer",
|
|
342
342
|
"map.layers.list": "Ebenen",
|
|
343
|
+
"map.legend.title": "Legende",
|
|
343
344
|
"map.loading.data": "Kartendaten werden geladen...",
|
|
344
345
|
"map.loading.service": "Dienst wird geladen...",
|
|
345
346
|
"map.navigation.message": "Bitte verwenden Sie STRG + Maus (oder zwei Finger auf einem Mobilgerät), um die Karte zu navigieren",
|
package/translations/en.json
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "Add",
|
|
341
341
|
"map.layers.available": "Available Layers",
|
|
342
342
|
"map.layers.list": "Layers",
|
|
343
|
+
"map.legend.title": "Legend",
|
|
343
344
|
"map.loading.data": "Loading map data...",
|
|
344
345
|
"map.loading.service": "Loading service...",
|
|
345
346
|
"map.navigation.message": "Please use CTRL + mouse (or two fingers on mobile) to navigate the map",
|
package/translations/es.json
CHANGED
package/translations/fr.json
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "Ajouter",
|
|
341
341
|
"map.layers.available": "Couches disponibles",
|
|
342
342
|
"map.layers.list": "Couches",
|
|
343
|
+
"map.legend.title": "Légende",
|
|
343
344
|
"map.loading.data": "Chargement des données...",
|
|
344
345
|
"map.loading.service": "Chargement du service...",
|
|
345
346
|
"map.navigation.message": "Veuillez utiliser CTRL + souris (ou deux doigts sur mobile) pour naviguer sur la carte",
|
package/translations/it.json
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "Aggiungi",
|
|
341
341
|
"map.layers.available": "Layer disponibili",
|
|
342
342
|
"map.layers.list": "Layers",
|
|
343
|
+
"map.legend.title": "",
|
|
343
344
|
"map.loading.data": "Caricamento dati...",
|
|
344
345
|
"map.loading.service": "Caricamento del servizio...",
|
|
345
346
|
"map.navigation.message": "Si prega di utilizzare CTRL + mouse (o due dita su mobile) per navigare sulla mappa",
|
package/translations/nl.json
CHANGED
package/translations/pt.json
CHANGED
package/translations/sk.json
CHANGED
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "Pridať",
|
|
341
341
|
"map.layers.available": "Dostupné vrsty",
|
|
342
342
|
"map.layers.list": "Vrstvy",
|
|
343
|
+
"map.legend.title": "",
|
|
343
344
|
"map.loading.data": "Načítavanie dát mapy...",
|
|
344
345
|
"map.loading.service": "Načítavanie služieb...",
|
|
345
346
|
"map.navigation.message": "Použite prosím CTRL + myš (alebo dva prsty na mobilnom zariadení) na navigáciu po mape",
|