geonetwork-ui 2.7.0-dev.d500b08cc → 2.7.0-dev.fa54bd3a5
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/map/src/lib/components/map-legend/map-legend.component.mjs +2 -2
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +3 -1
- package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
- package/esm2022/translations/de.json +2 -1
- package/esm2022/translations/en.json +2 -1
- package/esm2022/translations/es.json +2 -1
- package/esm2022/translations/fr.json +2 -1
- package/esm2022/translations/it.json +2 -1
- package/esm2022/translations/nl.json +2 -1
- package/esm2022/translations/pt.json +2 -1
- package/esm2022/translations/sk.json +2 -1
- package/fesm2022/geonetwork-ui.mjs +25 -13
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/model.d.ts +1 -0
- package/libs/util/app-config/src/lib/model.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/map/src/lib/components/map-legend/map-legend.component.ts +1 -1
- package/src/libs/util/app-config/src/lib/app-config.ts +2 -0
- package/src/libs/util/app-config/src/lib/model.ts +1 -0
- package/translations/de.json +2 -1
- package/translations/en.json +2 -1
- package/translations/es.json +2 -1
- package/translations/fr.json +2 -1
- package/translations/it.json +2 -1
- package/translations/nl.json +2 -1
- package/translations/pt.json +2 -1
- package/translations/sk.json +2 -1
|
@@ -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",
|
|
@@ -373,7 +374,6 @@
|
|
|
373
374
|
"record.action.rollback": "Annulla",
|
|
374
375
|
"record.action.switchLang": "",
|
|
375
376
|
"record.action.view": "Visualizza",
|
|
376
|
-
"record.card.metadata.contact": "Contatto del metadata",
|
|
377
377
|
"record.externalViewer.open": "Aprire nel visualizzatore esterno",
|
|
378
378
|
"record.feature.catalog.number.total.attribute": "Quantità totale di oggetti",
|
|
379
379
|
"record.feature.catalog.number.total.object": "Quantità totale di attributi",
|
|
@@ -579,6 +579,7 @@
|
|
|
579
579
|
"service.metadata.filter.noLayers": "Nessun layer abbina la ricerca",
|
|
580
580
|
"service.metadata.other": "Altri informazioni",
|
|
581
581
|
"service.metadata.question": "Fare una domanda",
|
|
582
|
+
"service.metadata.reuse": "",
|
|
582
583
|
"service.metadata.search": "Cerca nella lista del layers",
|
|
583
584
|
"service.metadata.search.clear": "Cancella la ricerca del layers",
|
|
584
585
|
"service.metadata.spatialExtent": "Estensione spaziale",
|
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "",
|
|
341
341
|
"map.layers.available": "",
|
|
342
342
|
"map.layers.list": "",
|
|
343
|
+
"map.legend.title": "",
|
|
343
344
|
"map.loading.data": "",
|
|
344
345
|
"map.loading.service": "",
|
|
345
346
|
"map.navigation.message": "",
|
|
@@ -373,7 +374,6 @@
|
|
|
373
374
|
"record.action.rollback": "",
|
|
374
375
|
"record.action.switchLang": "",
|
|
375
376
|
"record.action.view": "",
|
|
376
|
-
"record.card.metadata.contact": "",
|
|
377
377
|
"record.externalViewer.open": "",
|
|
378
378
|
"record.feature.catalog.number.total.attribute": "",
|
|
379
379
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -579,6 +579,7 @@
|
|
|
579
579
|
"service.metadata.filter.noLayers": "",
|
|
580
580
|
"service.metadata.other": "",
|
|
581
581
|
"service.metadata.question": "",
|
|
582
|
+
"service.metadata.reuse": "",
|
|
582
583
|
"service.metadata.search": "",
|
|
583
584
|
"service.metadata.search.clear": "",
|
|
584
585
|
"service.metadata.spatialExtent": "",
|
|
@@ -340,6 +340,7 @@
|
|
|
340
340
|
"map.layer.add": "",
|
|
341
341
|
"map.layers.available": "",
|
|
342
342
|
"map.layers.list": "",
|
|
343
|
+
"map.legend.title": "",
|
|
343
344
|
"map.loading.data": "",
|
|
344
345
|
"map.loading.service": "",
|
|
345
346
|
"map.navigation.message": "",
|
|
@@ -373,7 +374,6 @@
|
|
|
373
374
|
"record.action.rollback": "",
|
|
374
375
|
"record.action.switchLang": "",
|
|
375
376
|
"record.action.view": "",
|
|
376
|
-
"record.card.metadata.contact": "",
|
|
377
377
|
"record.externalViewer.open": "",
|
|
378
378
|
"record.feature.catalog.number.total.attribute": "",
|
|
379
379
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -579,6 +579,7 @@
|
|
|
579
579
|
"service.metadata.filter.noLayers": "",
|
|
580
580
|
"service.metadata.other": "",
|
|
581
581
|
"service.metadata.question": "",
|
|
582
|
+
"service.metadata.reuse": "",
|
|
582
583
|
"service.metadata.search": "",
|
|
583
584
|
"service.metadata.search.clear": "",
|
|
584
585
|
"service.metadata.spatialExtent": "",
|
|
@@ -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",
|
|
@@ -373,7 +374,6 @@
|
|
|
373
374
|
"record.action.rollback": "",
|
|
374
375
|
"record.action.switchLang": "",
|
|
375
376
|
"record.action.view": "Zobraziť",
|
|
376
|
-
"record.card.metadata.contact": "",
|
|
377
377
|
"record.externalViewer.open": "Otvoriť v externom mapovom prehliadači",
|
|
378
378
|
"record.feature.catalog.number.total.attribute": "",
|
|
379
379
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -579,6 +579,7 @@
|
|
|
579
579
|
"service.metadata.filter.noLayers": "",
|
|
580
580
|
"service.metadata.other": "",
|
|
581
581
|
"service.metadata.question": "",
|
|
582
|
+
"service.metadata.reuse": "",
|
|
582
583
|
"service.metadata.search": "",
|
|
583
584
|
"service.metadata.search.clear": "",
|
|
584
585
|
"service.metadata.spatialExtent": "",
|
|
@@ -19024,6 +19024,7 @@ var de = {
|
|
|
19024
19024
|
"map.layer.add": "Hinzufügen",
|
|
19025
19025
|
"map.layers.available": "Verfügbare Layer",
|
|
19026
19026
|
"map.layers.list": "Ebenen",
|
|
19027
|
+
"map.legend.title": "Legende",
|
|
19027
19028
|
"map.loading.data": "Kartendaten werden geladen...",
|
|
19028
19029
|
"map.loading.service": "Dienst wird geladen...",
|
|
19029
19030
|
"map.navigation.message": "Bitte verwenden Sie STRG + Maus (oder zwei Finger auf einem Mobilgerät), um die Karte zu navigieren",
|
|
@@ -19057,7 +19058,6 @@ var de = {
|
|
|
19057
19058
|
"record.action.rollback": "",
|
|
19058
19059
|
"record.action.switchLang": "",
|
|
19059
19060
|
"record.action.view": "Anzeigen",
|
|
19060
|
-
"record.card.metadata.contact": "",
|
|
19061
19061
|
"record.externalViewer.open": "In externem Kartenviewer öffnen",
|
|
19062
19062
|
"record.feature.catalog.number.total.attribute": "",
|
|
19063
19063
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -19263,6 +19263,7 @@ var de = {
|
|
|
19263
19263
|
"service.metadata.filter.noLayers": "",
|
|
19264
19264
|
"service.metadata.other": "",
|
|
19265
19265
|
"service.metadata.question": "",
|
|
19266
|
+
"service.metadata.reuse": "",
|
|
19266
19267
|
"service.metadata.search": "",
|
|
19267
19268
|
"service.metadata.search.clear": "",
|
|
19268
19269
|
"service.metadata.spatialExtent": "",
|
|
@@ -19634,6 +19635,7 @@ var en = {
|
|
|
19634
19635
|
"map.layer.add": "Add",
|
|
19635
19636
|
"map.layers.available": "Available Layers",
|
|
19636
19637
|
"map.layers.list": "Layers",
|
|
19638
|
+
"map.legend.title": "Legend",
|
|
19637
19639
|
"map.loading.data": "Loading map data...",
|
|
19638
19640
|
"map.loading.service": "Loading service...",
|
|
19639
19641
|
"map.navigation.message": "Please use CTRL + mouse (or two fingers on mobile) to navigate the map",
|
|
@@ -19667,7 +19669,6 @@ var en = {
|
|
|
19667
19669
|
"record.action.rollback": "Rollback",
|
|
19668
19670
|
"record.action.switchLang": "Switch to default",
|
|
19669
19671
|
"record.action.view": "View",
|
|
19670
|
-
"record.card.metadata.contact": "Metadata Contact",
|
|
19671
19672
|
"record.externalViewer.open": "Open in the external map viewer",
|
|
19672
19673
|
"record.feature.catalog.number.total.attribute": "Total amount of objects",
|
|
19673
19674
|
"record.feature.catalog.number.total.object": "Total amount of attributes",
|
|
@@ -19873,6 +19874,7 @@ var en = {
|
|
|
19873
19874
|
"service.metadata.filter.noLayers": "No layer matches your search",
|
|
19874
19875
|
"service.metadata.other": "Other information",
|
|
19875
19876
|
"service.metadata.question": "Ask a question",
|
|
19877
|
+
"service.metadata.reuse": "Declare a reuse",
|
|
19876
19878
|
"service.metadata.search": "Search through the layer list",
|
|
19877
19879
|
"service.metadata.search.clear": "Clear the layer search",
|
|
19878
19880
|
"service.metadata.spatialExtent": "Spatial extent",
|
|
@@ -20244,6 +20246,7 @@ var es = {
|
|
|
20244
20246
|
"map.layer.add": "",
|
|
20245
20247
|
"map.layers.available": "",
|
|
20246
20248
|
"map.layers.list": "",
|
|
20249
|
+
"map.legend.title": "",
|
|
20247
20250
|
"map.loading.data": "",
|
|
20248
20251
|
"map.loading.service": "",
|
|
20249
20252
|
"map.navigation.message": "",
|
|
@@ -20277,7 +20280,6 @@ var es = {
|
|
|
20277
20280
|
"record.action.rollback": "",
|
|
20278
20281
|
"record.action.switchLang": "",
|
|
20279
20282
|
"record.action.view": "",
|
|
20280
|
-
"record.card.metadata.contact": "",
|
|
20281
20283
|
"record.externalViewer.open": "",
|
|
20282
20284
|
"record.feature.catalog.number.total.attribute": "",
|
|
20283
20285
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -20483,6 +20485,7 @@ var es = {
|
|
|
20483
20485
|
"service.metadata.filter.noLayers": "",
|
|
20484
20486
|
"service.metadata.other": "",
|
|
20485
20487
|
"service.metadata.question": "",
|
|
20488
|
+
"service.metadata.reuse": "",
|
|
20486
20489
|
"service.metadata.search": "",
|
|
20487
20490
|
"service.metadata.search.clear": "",
|
|
20488
20491
|
"service.metadata.spatialExtent": "",
|
|
@@ -20854,6 +20857,7 @@ var fr = {
|
|
|
20854
20857
|
"map.layer.add": "Ajouter",
|
|
20855
20858
|
"map.layers.available": "Couches disponibles",
|
|
20856
20859
|
"map.layers.list": "Couches",
|
|
20860
|
+
"map.legend.title": "Légende",
|
|
20857
20861
|
"map.loading.data": "Chargement des données...",
|
|
20858
20862
|
"map.loading.service": "Chargement du service...",
|
|
20859
20863
|
"map.navigation.message": "Veuillez utiliser CTRL + souris (ou deux doigts sur mobile) pour naviguer sur la carte",
|
|
@@ -20887,7 +20891,6 @@ var fr = {
|
|
|
20887
20891
|
"record.action.rollback": "Restaurer",
|
|
20888
20892
|
"record.action.switchLang": "Marquer par défaut",
|
|
20889
20893
|
"record.action.view": "Voir",
|
|
20890
|
-
"record.card.metadata.contact": "Contact de la métadonnée ",
|
|
20891
20894
|
"record.externalViewer.open": "Ouvrir dans le visualiseur externe",
|
|
20892
20895
|
"record.feature.catalog.number.total.attribute": "Nombre total d'attributs",
|
|
20893
20896
|
"record.feature.catalog.number.total.object": "Nombre total d'objets",
|
|
@@ -21093,6 +21096,7 @@ var fr = {
|
|
|
21093
21096
|
"service.metadata.filter.noLayers": "Aucune couche ne correspond à votre recherche",
|
|
21094
21097
|
"service.metadata.other": "Autres informations",
|
|
21095
21098
|
"service.metadata.question": "Poser une question",
|
|
21099
|
+
"service.metadata.reuse": "Déclarer une réutilisation",
|
|
21096
21100
|
"service.metadata.search": "Rechercher dans la liste des couches",
|
|
21097
21101
|
"service.metadata.search.clear": "Effacer la recherche des couches",
|
|
21098
21102
|
"service.metadata.spatialExtent": "Etendue spatiale",
|
|
@@ -21464,6 +21468,7 @@ var it = {
|
|
|
21464
21468
|
"map.layer.add": "Aggiungi",
|
|
21465
21469
|
"map.layers.available": "Layer disponibili",
|
|
21466
21470
|
"map.layers.list": "Layers",
|
|
21471
|
+
"map.legend.title": "",
|
|
21467
21472
|
"map.loading.data": "Caricamento dati...",
|
|
21468
21473
|
"map.loading.service": "Caricamento del servizio...",
|
|
21469
21474
|
"map.navigation.message": "Si prega di utilizzare CTRL + mouse (o due dita su mobile) per navigare sulla mappa",
|
|
@@ -21497,7 +21502,6 @@ var it = {
|
|
|
21497
21502
|
"record.action.rollback": "Annulla",
|
|
21498
21503
|
"record.action.switchLang": "",
|
|
21499
21504
|
"record.action.view": "Visualizza",
|
|
21500
|
-
"record.card.metadata.contact": "Contatto del metadata",
|
|
21501
21505
|
"record.externalViewer.open": "Aprire nel visualizzatore esterno",
|
|
21502
21506
|
"record.feature.catalog.number.total.attribute": "Quantità totale di oggetti",
|
|
21503
21507
|
"record.feature.catalog.number.total.object": "Quantità totale di attributi",
|
|
@@ -21703,6 +21707,7 @@ var it = {
|
|
|
21703
21707
|
"service.metadata.filter.noLayers": "Nessun layer abbina la ricerca",
|
|
21704
21708
|
"service.metadata.other": "Altri informazioni",
|
|
21705
21709
|
"service.metadata.question": "Fare una domanda",
|
|
21710
|
+
"service.metadata.reuse": "",
|
|
21706
21711
|
"service.metadata.search": "Cerca nella lista del layers",
|
|
21707
21712
|
"service.metadata.search.clear": "Cancella la ricerca del layers",
|
|
21708
21713
|
"service.metadata.spatialExtent": "Estensione spaziale",
|
|
@@ -22074,6 +22079,7 @@ var nl = {
|
|
|
22074
22079
|
"map.layer.add": "",
|
|
22075
22080
|
"map.layers.available": "",
|
|
22076
22081
|
"map.layers.list": "",
|
|
22082
|
+
"map.legend.title": "",
|
|
22077
22083
|
"map.loading.data": "",
|
|
22078
22084
|
"map.loading.service": "",
|
|
22079
22085
|
"map.navigation.message": "",
|
|
@@ -22107,7 +22113,6 @@ var nl = {
|
|
|
22107
22113
|
"record.action.rollback": "",
|
|
22108
22114
|
"record.action.switchLang": "",
|
|
22109
22115
|
"record.action.view": "",
|
|
22110
|
-
"record.card.metadata.contact": "",
|
|
22111
22116
|
"record.externalViewer.open": "",
|
|
22112
22117
|
"record.feature.catalog.number.total.attribute": "",
|
|
22113
22118
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -22313,6 +22318,7 @@ var nl = {
|
|
|
22313
22318
|
"service.metadata.filter.noLayers": "",
|
|
22314
22319
|
"service.metadata.other": "",
|
|
22315
22320
|
"service.metadata.question": "",
|
|
22321
|
+
"service.metadata.reuse": "",
|
|
22316
22322
|
"service.metadata.search": "",
|
|
22317
22323
|
"service.metadata.search.clear": "",
|
|
22318
22324
|
"service.metadata.spatialExtent": "",
|
|
@@ -22684,6 +22690,7 @@ var pt = {
|
|
|
22684
22690
|
"map.layer.add": "",
|
|
22685
22691
|
"map.layers.available": "",
|
|
22686
22692
|
"map.layers.list": "",
|
|
22693
|
+
"map.legend.title": "",
|
|
22687
22694
|
"map.loading.data": "",
|
|
22688
22695
|
"map.loading.service": "",
|
|
22689
22696
|
"map.navigation.message": "",
|
|
@@ -22717,7 +22724,6 @@ var pt = {
|
|
|
22717
22724
|
"record.action.rollback": "",
|
|
22718
22725
|
"record.action.switchLang": "",
|
|
22719
22726
|
"record.action.view": "",
|
|
22720
|
-
"record.card.metadata.contact": "",
|
|
22721
22727
|
"record.externalViewer.open": "",
|
|
22722
22728
|
"record.feature.catalog.number.total.attribute": "",
|
|
22723
22729
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -22923,6 +22929,7 @@ var pt = {
|
|
|
22923
22929
|
"service.metadata.filter.noLayers": "",
|
|
22924
22930
|
"service.metadata.other": "",
|
|
22925
22931
|
"service.metadata.question": "",
|
|
22932
|
+
"service.metadata.reuse": "",
|
|
22926
22933
|
"service.metadata.search": "",
|
|
22927
22934
|
"service.metadata.search.clear": "",
|
|
22928
22935
|
"service.metadata.spatialExtent": "",
|
|
@@ -23294,6 +23301,7 @@ var sk = {
|
|
|
23294
23301
|
"map.layer.add": "Pridať",
|
|
23295
23302
|
"map.layers.available": "Dostupné vrsty",
|
|
23296
23303
|
"map.layers.list": "Vrstvy",
|
|
23304
|
+
"map.legend.title": "",
|
|
23297
23305
|
"map.loading.data": "Načítavanie dát mapy...",
|
|
23298
23306
|
"map.loading.service": "Načítavanie služieb...",
|
|
23299
23307
|
"map.navigation.message": "Použite prosím CTRL + myš (alebo dva prsty na mobilnom zariadení) na navigáciu po mape",
|
|
@@ -23327,7 +23335,6 @@ var sk = {
|
|
|
23327
23335
|
"record.action.rollback": "",
|
|
23328
23336
|
"record.action.switchLang": "",
|
|
23329
23337
|
"record.action.view": "Zobraziť",
|
|
23330
|
-
"record.card.metadata.contact": "",
|
|
23331
23338
|
"record.externalViewer.open": "Otvoriť v externom mapovom prehliadači",
|
|
23332
23339
|
"record.feature.catalog.number.total.attribute": "",
|
|
23333
23340
|
"record.feature.catalog.number.total.object": "",
|
|
@@ -23533,6 +23540,7 @@ var sk = {
|
|
|
23533
23540
|
"service.metadata.filter.noLayers": "",
|
|
23534
23541
|
"service.metadata.other": "",
|
|
23535
23542
|
"service.metadata.question": "",
|
|
23543
|
+
"service.metadata.reuse": "",
|
|
23536
23544
|
"service.metadata.search": "",
|
|
23537
23545
|
"service.metadata.search.clear": "",
|
|
23538
23546
|
"service.metadata.spatialExtent": "",
|
|
@@ -26326,7 +26334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
26326
26334
|
}] } });
|
|
26327
26335
|
|
|
26328
26336
|
var name = "geonetwork-ui";
|
|
26329
|
-
var version = "2.7.0-dev.
|
|
26337
|
+
var version = "2.7.0-dev.fa54bd3a5";
|
|
26330
26338
|
var engines = {
|
|
26331
26339
|
node: ">=20"
|
|
26332
26340
|
};
|
|
@@ -27048,7 +27056,7 @@ class MapLegendComponent {
|
|
|
27048
27056
|
async ngOnChanges(changes) {
|
|
27049
27057
|
if ('context' in changes) {
|
|
27050
27058
|
const mapContext = changes['context'].currentValue;
|
|
27051
|
-
if (mapContext
|
|
27059
|
+
if (mapContext?.layers && mapContext.layers.length > 0) {
|
|
27052
27060
|
const mapContextLayer = mapContext.layers[0];
|
|
27053
27061
|
this.legendHTML = await createLegendFromLayer(mapContextLayer);
|
|
27054
27062
|
if (this.legendHTML) {
|
|
@@ -27833,6 +27841,7 @@ function loadAppConfig() {
|
|
|
27833
27841
|
'web_component_embedder_url',
|
|
27834
27842
|
'languages',
|
|
27835
27843
|
'contact_email',
|
|
27844
|
+
'reuse_form_url',
|
|
27836
27845
|
], warnings, errors);
|
|
27837
27846
|
if (parsedGlobalSection?.metadata_language) {
|
|
27838
27847
|
parsedGlobalSection = checkMetadataLanguage(parsedGlobalSection, warnings);
|
|
@@ -27853,6 +27862,7 @@ function loadAppConfig() {
|
|
|
27853
27862
|
WEB_COMPONENT_EMBEDDER_URL: parsedGlobalSection.web_component_embedder_url,
|
|
27854
27863
|
LANGUAGES: parsedGlobalSection.languages,
|
|
27855
27864
|
CONTACT_EMAIL: parsedGlobalSection.contact_email,
|
|
27865
|
+
REUSE_FORM_URL: parsedGlobalSection.reuse_form_url,
|
|
27856
27866
|
};
|
|
27857
27867
|
const parsedLayersSections = parseMultiConfigSection(parsed, 'map_layer', ['type'], ['name', 'url', 'data', 'styleUrl', 'accessToken'], warnings, errors);
|
|
27858
27868
|
const parsedMapSection = parseConfigSection(parsed, 'map', [], [
|
|
@@ -39349,7 +39359,9 @@ class MdViewEffects {
|
|
|
39349
39359
|
Metadata effects
|
|
39350
39360
|
*/
|
|
39351
39361
|
this.loadFullMetadata$ = createEffect(() => this.actions$.pipe(ofType(loadFullMetadata), switchMap$1(({ uuid }) => this.recordsRepository.getRecord(uuid)), map$1((record) => {
|
|
39352
|
-
if (record === null ||
|
|
39362
|
+
if (record === null ||
|
|
39363
|
+
(this.router.url !== '/' && // FIXME: special case for WC, find a better way
|
|
39364
|
+
!this.router.url.includes(record.kind))) {
|
|
39353
39365
|
return loadFullMetadataFailure({ notFound: true });
|
|
39354
39366
|
}
|
|
39355
39367
|
return loadFullMetadataSuccess({ full: record });
|
|
@@ -40585,7 +40597,7 @@ class MapViewComponent {
|
|
|
40585
40597
|
this.changeRef.detectChanges();
|
|
40586
40598
|
}
|
|
40587
40599
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MapViewComponent, deps: [{ token: MdViewFacade }, { token: MapUtilsService }, { token: DataService }, { token: i0.ChangeDetectorRef }, { token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40588
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MapViewComponent, isStandalone: true, selector: "gn-ui-map-view", inputs: { exceedsLimit: "exceedsLimit", selectedView: "selectedView", displaySource: "displaySource" }, outputs: { linkSelected: "linkSelected" }, viewQueries: [{ propertyName: "mapContainer", first: true, predicate: ["mapContainer"], descendants: true }], ngImport: i0, template: "<div class=\"w-full h-full flex flex-col gap-[13px]\">\n <div\n class=\"flex flex-col md:flex-row gap-4 py-4 px-5 bg-white border border-color-border rounded-lg mt-6\"\n >\n <gn-ui-dropdown-selector\n *ngIf=\"displaySource\"\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.layer' | translate\"\n [choices]=\"dropdownChoices$ | async\"\n (selectValue)=\"selectLinkToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n\n <ng-container *ngIf=\"(styleLinks$ | async)?.length > 0; else styleDisabled\">\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n (selectValue)=\"selectStyleToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n </ng-container>\n <ng-template #styleDisabled>\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0 text-gray-400\"\n extraBtnClass=\"font-sans font-bold text-gray-400\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n [disabled]=\"true\"\n ></gn-ui-dropdown-selector>\n </ng-template>\n\n <div class=\"self-end md:ml-2\">\n <gn-ui-external-viewer-button\n extraClass=\"w-[44px] h-[44px]\"\n [link]=\"selectedLink$ | async\"\n >\n </gn-ui-external-viewer-button>\n </div>\n </div>\n <ng-container *ngIf=\"hidePreview; else mapView\">\n <gn-ui-popup-alert\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"block h-12 p-1\"\n >\n <span translate>record.feature.limit</span>\n </gn-ui-popup-alert>\n </ng-container>\n <ng-template #mapView>\n <div\n class=\"relative w-full h-full bg-white border border-gray-300 rounded-lg overflow-hidden\"\n >\n <gn-ui-map-container\n #mapContainer\n [context]=\"mapContext$ | async\"\n (featuresClick)=\"onMapFeatureSelect($event)\"\n (sourceLoadError)=\"onSourceLoadError($event)\"\n ></gn-ui-map-container>\n <div\n class=\"top-[1em] right-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [class.hidden]=\"!selection\"\n >\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"resetSelection()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"absolute right-[0.5em] ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n <gn-ui-feature-detail\n [featureCatalog]=\"mdViewFacade.featureCatalog$ | async\"\n [feature]=\"selection\"\n ></gn-ui-feature-detail>\n </div>\n\n <div\n class=\"top-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [ngClass]=\"{ 'right-[1em]': !selection, 'right-[16em]': selection }\"\n [hidden]=\"!showLegend || !legendExists\"\n >\n <div class=\"flex justify-between items-center mb-2\">\n <div class=\"text-primary font-bold\">
|
|
40600
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: MapViewComponent, isStandalone: true, selector: "gn-ui-map-view", inputs: { exceedsLimit: "exceedsLimit", selectedView: "selectedView", displaySource: "displaySource" }, outputs: { linkSelected: "linkSelected" }, viewQueries: [{ propertyName: "mapContainer", first: true, predicate: ["mapContainer"], descendants: true }], ngImport: i0, template: "<div class=\"w-full h-full flex flex-col gap-[13px]\">\n <div\n class=\"flex flex-col md:flex-row gap-4 py-4 px-5 bg-white border border-color-border rounded-lg mt-6\"\n >\n <gn-ui-dropdown-selector\n *ngIf=\"displaySource\"\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.layer' | translate\"\n [choices]=\"dropdownChoices$ | async\"\n (selectValue)=\"selectLinkToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n\n <ng-container *ngIf=\"(styleLinks$ | async)?.length > 0; else styleDisabled\">\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n (selectValue)=\"selectStyleToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n </ng-container>\n <ng-template #styleDisabled>\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0 text-gray-400\"\n extraBtnClass=\"font-sans font-bold text-gray-400\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n [disabled]=\"true\"\n ></gn-ui-dropdown-selector>\n </ng-template>\n\n <div class=\"self-end md:ml-2\">\n <gn-ui-external-viewer-button\n extraClass=\"w-[44px] h-[44px]\"\n [link]=\"selectedLink$ | async\"\n >\n </gn-ui-external-viewer-button>\n </div>\n </div>\n <ng-container *ngIf=\"hidePreview; else mapView\">\n <gn-ui-popup-alert\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"block h-12 p-1\"\n >\n <span translate>record.feature.limit</span>\n </gn-ui-popup-alert>\n </ng-container>\n <ng-template #mapView>\n <div\n class=\"relative w-full h-full bg-white border border-gray-300 rounded-lg overflow-hidden\"\n >\n <gn-ui-map-container\n #mapContainer\n [context]=\"mapContext$ | async\"\n (featuresClick)=\"onMapFeatureSelect($event)\"\n (sourceLoadError)=\"onSourceLoadError($event)\"\n ></gn-ui-map-container>\n <div\n class=\"top-[1em] right-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [class.hidden]=\"!selection\"\n >\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"resetSelection()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"absolute right-[0.5em] ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n <gn-ui-feature-detail\n [featureCatalog]=\"mdViewFacade.featureCatalog$ | async\"\n [feature]=\"selection\"\n ></gn-ui-feature-detail>\n </div>\n\n <div\n class=\"top-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [ngClass]=\"{ 'right-[1em]': !selection, 'right-[16em]': selection }\"\n [hidden]=\"!showLegend || !legendExists\"\n >\n <div class=\"flex justify-between items-center mb-2\">\n <div class=\"text-primary font-bold\" translate>map.legend.title</div>\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"toggleLegend()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n </div>\n <gn-ui-map-legend\n [context]=\"mapContext$ | async\"\n (legendStatusChange)=\"onLegendStatusChange($event)\"\n ></gn-ui-map-legend>\n </div>\n\n <gn-ui-button\n *ngIf=\"!showLegend && legendExists && !selection\"\n type=\"outline\"\n (buttonClick)=\"toggleLegend()\"\n extraClass=\"absolute top-[1em] right-[1em] rounded p-1 text-xs bg-white\"\n translate\n >\n map.legend.title\n </gn-ui-button>\n\n <gn-ui-loading-mask\n *ngIf=\"loading\"\n class=\"absolute inset-0\"\n [message]=\"'map.loading.data' | translate\"\n ></gn-ui-loading-mask>\n <gn-ui-popup-alert\n *ngIf=\"error\"\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"absolute m-2 inset-0\"\n >\n <span translate>{{ error }}</span>\n </gn-ui-popup-alert>\n </div>\n </ng-template>\n</div>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "component", type: DropdownSelectorComponent, selector: "gn-ui-dropdown-selector", inputs: ["title", "showTitle", "ariaName", "choices", "selected", "maxRows", "extraBtnClass", "minWidth", "disabled"], outputs: ["selectValue"] }, { kind: "component", type: MapContainerComponent, selector: "gn-ui-map-container", inputs: ["context"], outputs: ["featuresClick", "featuresHover", "mapClick", "sourceLoadError"] }, { kind: "component", type: FeatureDetailComponent, selector: "gn-ui-feature-detail", inputs: ["feature", "featureCatalog"] }, { kind: "component", type: PopupAlertComponent, selector: "gn-ui-popup-alert", inputs: ["icon", "type", "position"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: LoadingMaskComponent, selector: "gn-ui-loading-mask", inputs: ["message"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: ExternalViewerButtonComponent, selector: "gn-ui-external-viewer-button", inputs: ["link", "extraClass"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: MapLegendComponent, selector: "gn-ui-map-legend", inputs: ["context"], outputs: ["legendStatusChange"] }], viewProviders: [provideIcons({ matClose })], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
40589
40601
|
}
|
|
40590
40602
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MapViewComponent, decorators: [{
|
|
40591
40603
|
type: Component,
|
|
@@ -40602,7 +40614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
40602
40614
|
ExternalViewerButtonComponent,
|
|
40603
40615
|
ButtonComponent,
|
|
40604
40616
|
MapLegendComponent,
|
|
40605
|
-
], viewProviders: [provideIcons({ matClose })], template: "<div class=\"w-full h-full flex flex-col gap-[13px]\">\n <div\n class=\"flex flex-col md:flex-row gap-4 py-4 px-5 bg-white border border-color-border rounded-lg mt-6\"\n >\n <gn-ui-dropdown-selector\n *ngIf=\"displaySource\"\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.layer' | translate\"\n [choices]=\"dropdownChoices$ | async\"\n (selectValue)=\"selectLinkToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n\n <ng-container *ngIf=\"(styleLinks$ | async)?.length > 0; else styleDisabled\">\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n (selectValue)=\"selectStyleToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n </ng-container>\n <ng-template #styleDisabled>\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0 text-gray-400\"\n extraBtnClass=\"font-sans font-bold text-gray-400\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n [disabled]=\"true\"\n ></gn-ui-dropdown-selector>\n </ng-template>\n\n <div class=\"self-end md:ml-2\">\n <gn-ui-external-viewer-button\n extraClass=\"w-[44px] h-[44px]\"\n [link]=\"selectedLink$ | async\"\n >\n </gn-ui-external-viewer-button>\n </div>\n </div>\n <ng-container *ngIf=\"hidePreview; else mapView\">\n <gn-ui-popup-alert\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"block h-12 p-1\"\n >\n <span translate>record.feature.limit</span>\n </gn-ui-popup-alert>\n </ng-container>\n <ng-template #mapView>\n <div\n class=\"relative w-full h-full bg-white border border-gray-300 rounded-lg overflow-hidden\"\n >\n <gn-ui-map-container\n #mapContainer\n [context]=\"mapContext$ | async\"\n (featuresClick)=\"onMapFeatureSelect($event)\"\n (sourceLoadError)=\"onSourceLoadError($event)\"\n ></gn-ui-map-container>\n <div\n class=\"top-[1em] right-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [class.hidden]=\"!selection\"\n >\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"resetSelection()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"absolute right-[0.5em] ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n <gn-ui-feature-detail\n [featureCatalog]=\"mdViewFacade.featureCatalog$ | async\"\n [feature]=\"selection\"\n ></gn-ui-feature-detail>\n </div>\n\n <div\n class=\"top-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [ngClass]=\"{ 'right-[1em]': !selection, 'right-[16em]': selection }\"\n [hidden]=\"!showLegend || !legendExists\"\n >\n <div class=\"flex justify-between items-center mb-2\">\n <div class=\"text-primary font-bold\">
|
|
40617
|
+
], viewProviders: [provideIcons({ matClose })], template: "<div class=\"w-full h-full flex flex-col gap-[13px]\">\n <div\n class=\"flex flex-col md:flex-row gap-4 py-4 px-5 bg-white border border-color-border rounded-lg mt-6\"\n >\n <gn-ui-dropdown-selector\n *ngIf=\"displaySource\"\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.layer' | translate\"\n [choices]=\"dropdownChoices$ | async\"\n (selectValue)=\"selectLinkToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n\n <ng-container *ngIf=\"(styleLinks$ | async)?.length > 0; else styleDisabled\">\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0\"\n extraBtnClass=\"font-sans font-bold\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n (selectValue)=\"selectStyleToDisplay($event)\"\n ></gn-ui-dropdown-selector>\n </ng-container>\n <ng-template #styleDisabled>\n <gn-ui-dropdown-selector\n class=\"w-full md:flex-1 md:min-w-0 text-gray-400\"\n extraBtnClass=\"font-sans font-bold text-gray-400\"\n [title]=\"'map.select.style' | translate\"\n [choices]=\"styleDropdownChoices$ | async\"\n [disabled]=\"true\"\n ></gn-ui-dropdown-selector>\n </ng-template>\n\n <div class=\"self-end md:ml-2\">\n <gn-ui-external-viewer-button\n extraClass=\"w-[44px] h-[44px]\"\n [link]=\"selectedLink$ | async\"\n >\n </gn-ui-external-viewer-button>\n </div>\n </div>\n <ng-container *ngIf=\"hidePreview; else mapView\">\n <gn-ui-popup-alert\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"block h-12 p-1\"\n >\n <span translate>record.feature.limit</span>\n </gn-ui-popup-alert>\n </ng-container>\n <ng-template #mapView>\n <div\n class=\"relative w-full h-full bg-white border border-gray-300 rounded-lg overflow-hidden\"\n >\n <gn-ui-map-container\n #mapContainer\n [context]=\"mapContext$ | async\"\n (featuresClick)=\"onMapFeatureSelect($event)\"\n (sourceLoadError)=\"onSourceLoadError($event)\"\n ></gn-ui-map-container>\n <div\n class=\"top-[1em] right-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [class.hidden]=\"!selection\"\n >\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"resetSelection()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"absolute right-[0.5em] ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n <gn-ui-feature-detail\n [featureCatalog]=\"mdViewFacade.featureCatalog$ | async\"\n [feature]=\"selection\"\n ></gn-ui-feature-detail>\n </div>\n\n <div\n class=\"top-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56\"\n [ngClass]=\"{ 'right-[1em]': !selection, 'right-[16em]': selection }\"\n [hidden]=\"!showLegend || !legendExists\"\n >\n <div class=\"flex justify-between items-center mb-2\">\n <div class=\"text-primary font-bold\" translate>map.legend.title</div>\n <gn-ui-button\n type=\"light\"\n (buttonClick)=\"toggleLegend()\"\n style=\"\n --gn-ui-button-padding: 0px;\n --gn-ui-button-width: 24px;\n --gn-ui-button-height: 24px;\n \"\n extraClass=\"ml-[8px] mr-[10px]\"\n >\n <ng-icon name=\"matClose\" class=\"align-middle text-sm\"></ng-icon>\n </gn-ui-button>\n </div>\n <gn-ui-map-legend\n [context]=\"mapContext$ | async\"\n (legendStatusChange)=\"onLegendStatusChange($event)\"\n ></gn-ui-map-legend>\n </div>\n\n <gn-ui-button\n *ngIf=\"!showLegend && legendExists && !selection\"\n type=\"outline\"\n (buttonClick)=\"toggleLegend()\"\n extraClass=\"absolute top-[1em] right-[1em] rounded p-1 text-xs bg-white\"\n translate\n >\n map.legend.title\n </gn-ui-button>\n\n <gn-ui-loading-mask\n *ngIf=\"loading\"\n class=\"absolute inset-0\"\n [message]=\"'map.loading.data' | translate\"\n ></gn-ui-loading-mask>\n <gn-ui-popup-alert\n *ngIf=\"error\"\n type=\"warning\"\n icon=\"matErrorOutlineOutline\"\n class=\"absolute m-2 inset-0\"\n >\n <span translate>{{ error }}</span>\n </gn-ui-popup-alert>\n </div>\n </ng-template>\n</div>\n" }]
|
|
40606
40618
|
}], ctorParameters: () => [{ type: MdViewFacade }, { type: MapUtilsService }, { type: DataService }, { type: i0.ChangeDetectorRef }, { type: i1$1.TranslateService }], propDecorators: { exceedsLimit: [{
|
|
40607
40619
|
type: Input
|
|
40608
40620
|
}], selectedView: [{
|