geonetwork-ui 2.1.0 → 2.2.0-dev.2446b017

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 (65) hide show
  1. package/esm2022/libs/api/repository/src/index.mjs +2 -1
  2. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +2 -2
  3. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +2 -2
  4. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +3 -3
  5. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -2
  6. package/esm2022/libs/feature/search/src/lib/state/effects.mjs +3 -3
  7. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +2 -2
  8. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +10 -3
  9. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +17 -38
  10. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +5 -1
  11. package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
  12. package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +8 -1
  13. package/esm2022/translations/de.json +3 -0
  14. package/esm2022/translations/en.json +5 -2
  15. package/esm2022/translations/es.json +3 -0
  16. package/esm2022/translations/fr.json +7 -4
  17. package/esm2022/translations/it.json +6 -0
  18. package/esm2022/translations/nl.json +3 -0
  19. package/esm2022/translations/pt.json +3 -0
  20. package/fesm2022/geonetwork-ui.mjs +66 -46
  21. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  22. package/libs/api/repository/src/index.d.ts +1 -0
  23. package/libs/api/repository/src/index.d.ts.map +1 -1
  24. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
  25. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -1
  26. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  27. package/libs/feature/search/src/lib/state/effects.d.ts +1 -1
  28. package/libs/feature/search/src/lib/state/effects.d.ts.map +1 -1
  29. package/libs/feature/search/src/lib/utils/service/fields.d.ts +1 -1
  30. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  31. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +1 -1
  32. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  33. package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts +1 -0
  34. package/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.d.ts.map +1 -1
  35. package/libs/ui/inputs/src/lib/button/button.component.d.ts +2 -4
  36. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  37. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts +1 -1
  38. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  39. package/libs/util/app-config/src/lib/model.d.ts +2 -0
  40. package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
  41. package/libs/util/shared/src/lib/services/theme.service.d.ts +1 -0
  42. package/libs/util/shared/src/lib/services/theme.service.d.ts.map +1 -1
  43. package/package.json +8 -6
  44. package/src/libs/api/repository/src/index.ts +1 -0
  45. package/src/libs/feature/auth/src/lib/feature-auth.module.ts +1 -1
  46. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +1 -1
  47. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +1 -4
  48. package/src/libs/feature/search/src/lib/feature-search.module.ts +1 -1
  49. package/src/libs/feature/search/src/lib/state/effects.ts +1 -1
  50. package/src/libs/feature/search/src/lib/utils/service/fields.ts +1 -1
  51. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +93 -27
  52. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts +7 -0
  53. package/src/libs/ui/inputs/src/lib/button/button.component.ts +22 -42
  54. package/src/libs/util/app-config/src/lib/app-config.ts +4 -0
  55. package/src/libs/util/app-config/src/lib/model.ts +2 -0
  56. package/src/libs/util/shared/src/lib/services/theme.service.ts +9 -0
  57. package/tailwind.base.css +31 -1
  58. package/translations/de.json +3 -0
  59. package/translations/en.json +5 -2
  60. package/translations/es.json +3 -0
  61. package/translations/fr.json +7 -4
  62. package/translations/it.json +6 -0
  63. package/translations/nl.json +3 -0
  64. package/translations/pt.json +3 -0
  65. package/translations/sk.json +3 -0
@@ -140,4 +140,13 @@ export class ThemeService {
140
140
  }
141
141
  return chroma.hsl(hue % 360, saturation, lightness).css()
142
142
  }
143
+
144
+ static setFavicon(faviconPath: string): void {
145
+ const link =
146
+ document.querySelector("link[rel*='icon']") ||
147
+ document.createElement('link')
148
+ link['rel'] = 'icon'
149
+ link['href'] = faviconPath
150
+ document.getElementsByTagName('head')[0].appendChild(link)
151
+ }
143
152
  }
package/tailwind.base.css CHANGED
@@ -7,8 +7,38 @@
7
7
  @apply shadow-xl hover:shadow-xl-hover transition-shadow;
8
8
  }
9
9
 
10
+ .btn {
11
+ @apply flex flex-row items-center text-[1em] leading-none p-[1em] rounded-[0.25em] transition-all duration-100 focus:outline-none disabled:opacity-50;
12
+ }
13
+
10
14
  .btn-default {
11
- @apply bg-blue-600 text-white flex gap-3 items-center px-9 py-3 rounded-[50px] hover:scale-[1.02] transition-transform;
15
+ @apply btn text-white
16
+ bg-gray-700 hover:bg-gray-800 active:bg-gray-900
17
+ border border-gray-700 focus:ring-4 focus:ring-gray-200;
18
+ }
19
+
20
+ .btn-primary {
21
+ @apply btn text-white
22
+ bg-primary hover:bg-primary-darker focus:bg-primary-darker active:bg-primary-darkest
23
+ border border-primary focus:ring-4 focus:ring-primary-lightest;
24
+ }
25
+
26
+ .btn-secondary {
27
+ @apply btn text-white
28
+ bg-secondary hover:bg-secondary-darker focus:bg-secondary-darker active:bg-secondary-darkest
29
+ border border-secondary focus:ring-4 focus:ring-secondary-lightest;
30
+ }
31
+
32
+ .btn-outline {
33
+ @apply btn text-main
34
+ bg-white hover:text-primary-darker focus:text-primary-darker active:text-primary-black
35
+ border border-gray-300 hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker;
36
+ }
37
+
38
+ .btn-light {
39
+ @apply btn text-main
40
+ bg-white hover:bg-gray-50 focus:bg-gray-50 active:bg-gray-100
41
+ border border-white focus:ring-4 focus:ring-gray-300;
12
42
  }
13
43
 
14
44
  .badge-btn {
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "Organisationen",
111
111
  "datahub.header.popularRecords": "Die beliebtesten",
112
112
  "datahub.header.title.html": "<div class=\"text-white\">Entdecken Sie offene<br> Daten von meiner Organisation</div>",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "Nachrichtenfeed",
114
117
  "datahub.news.figures": "Indikatoren",
115
118
  "datahub.search.back": "Zurück zu den Ergebnissen",
@@ -24,12 +24,12 @@
24
24
  "dashboard.records.myRecords": "My Records",
25
25
  "dashboard.records.noRecord": "No record for this organization",
26
26
  "dashboard.records.noUser": "No users for this organization",
27
- "dashboard.records.publishedRecords": "published records",
27
+ "dashboard.records.publishedRecords": "{count, plural, =1{published record} other{published records}}",
28
28
  "dashboard.records.search": "Search for \"{searchText}\"",
29
29
  "dashboard.records.userDetail": "Name",
30
30
  "dashboard.records.userEmail": "Email",
31
31
  "dashboard.records.username": "Username",
32
- "dashboard.records.users": "users",
32
+ "dashboard.records.users": "{count, plural, =1{user} other{users}}",
33
33
  "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "File format \n detection",
34
34
  "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Gathering dataset \n information",
35
35
  "datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n data",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "Organisations",
111
111
  "datahub.header.popularRecords": "The most popular",
112
112
  "datahub.header.title.html": "<div class=\"text-white\">Discover open<br> data from my Organization</div>",
113
+ "datahub.news.contact.contactus": "Contact us",
114
+ "datahub.news.contact.html": "<p>Do you need data that is not currently present on the platform?</p><p>Our teams are here to answer you.</p>",
115
+ "datahub.news.contact.title": "A specific need?",
113
116
  "datahub.news.feed": "News feed",
114
117
  "datahub.news.figures": "Indicators",
115
118
  "datahub.search.back": "Back to results",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "",
111
111
  "datahub.header.popularRecords": "",
112
112
  "datahub.header.title.html": "",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "",
114
117
  "datahub.news.figures": "",
115
118
  "datahub.search.back": "",
@@ -24,12 +24,12 @@
24
24
  "dashboard.records.myRecords": "Mes fiches publiées",
25
25
  "dashboard.records.noRecord": "Aucun jeu de données pour cette organisation",
26
26
  "dashboard.records.noUser": "Aucun utilisateur pour cette organisation",
27
- "dashboard.records.publishedRecords": "données publiées",
27
+ "dashboard.records.publishedRecords": "{count, plural, =1{donnée publiée} other{données publiées}}",
28
28
  "dashboard.records.search": "Résultats pour \"{searchText}\"",
29
29
  "dashboard.records.userDetail": "Nom",
30
30
  "dashboard.records.userEmail": "Email",
31
31
  "dashboard.records.username": "Nom d'utilisateur",
32
- "dashboard.records.users": "utilisateurs",
32
+ "dashboard.records.users": "{count, plural, =1{utilisateur} other{utilisateurs}}",
33
33
  "datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Détection du \n format de fichier",
34
34
  "datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Récupération des informations \n sur le jeu de données",
35
35
  "datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n des données",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "Organisations",
111
111
  "datahub.header.popularRecords": "Les plus appréciées",
112
112
  "datahub.header.title.html": "<div class=\"text-white\">Toutes les données<br>publiques de mon organisation</div>",
113
+ "datahub.news.contact.contactus": "Contactez-nous",
114
+ "datahub.news.contact.html": "<p>Vous avez besoin de données qui ne sont pas présentes sur la plateforme actuellement ? </p><p> Nos équipes sont la pour vous répondre.</p>",
115
+ "datahub.news.contact.title": "Un besoin spécifique ?",
113
116
  "datahub.news.feed": "Fil d'activité",
114
117
  "datahub.news.figures": "Quelques chiffres",
115
118
  "datahub.search.back": "Retour aux résultats",
@@ -252,10 +255,10 @@
252
255
  "record.was.created.time": "a créé ce jeu de données {time}",
253
256
  "records": "enregistrements",
254
257
  "results.layout.selectOne": "Affichage des résultats",
255
- "results.records.hits.displayedOn": "",
258
+ "results.records.hits.displayedOn": "{displayed, plural, =0{Aucun enregistrement} one{1 enregistrement affiché} other{{displayed} enregistrements affichés}} {hits, plural, other{sur {hits} au total.}}",
256
259
  "results.records.hits.empty.help.html": "Suggestions : <ul class='list-disc list-inside'><li>Essayez d'autres mots clés</li><li>Cherchez moins de mots</li></ul>",
257
260
  "results.records.hits.found": "{hits, plural, =0{Aucune correspondance.} one{1 enregistrement trouvé.} other{{hits} résultats.}}",
258
- "results.records.hits.selected": "",
261
+ "results.records.hits.selected": "{amount, plural, one{1 selectionnée} other{{ amount } sélectionnées}}",
259
262
  "results.showMore": "Plus de résultats...",
260
263
  "results.sortBy.dateStamp": "Plus récent",
261
264
  "results.sortBy.popularity": "Popularité",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "Organizzazioni",
111
111
  "datahub.header.popularRecords": "Più popolari",
112
112
  "datahub.header.title.html": "<div class=\"text-white\">Tutti i dati<br>pubblici della mia organizzazione</div>",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "Feed di attività",
114
117
  "datahub.news.figures": "Alcune figure",
115
118
  "datahub.search.back": "Torna ai risultati",
@@ -139,6 +142,7 @@
139
142
  "downloads.format.unknown": "sconosciuto",
140
143
  "downloads.wfs.featuretype.not.found": "Il layer non è stato trovato",
141
144
  "dropFile": "Trascina il suo file",
145
+ "externalviewer.dataset.unnamed": "",
142
146
  "facets.block.title.OrgForResource": "Organizzazione",
143
147
  "facets.block.title.availableInServices": "Disponibile per",
144
148
  "facets.block.title.cl_hierarchyLevel.key": "Tipo di risorsa",
@@ -305,6 +309,8 @@
305
309
  "tooltip.html.copy": "Copiare il HTML",
306
310
  "tooltip.url.copy": "Copiare l'URL",
307
311
  "tooltip.url.open": "Aprire l'URL",
312
+ "ui.readLess": "",
313
+ "ui.readMore": "",
308
314
  "wfs.featuretype.notfound": "La classe di oggetto non è stata trovata nel servizio",
309
315
  "wfs.geojsongml.notsupported": "Il servizio non supporta il formato GeoJSON o GML",
310
316
  "wfs.unreachable.cors": "Il servizio non è accessibile a causa di limitazioni CORS",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "",
111
111
  "datahub.header.popularRecords": "",
112
112
  "datahub.header.title.html": "",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "",
114
117
  "datahub.news.figures": "",
115
118
  "datahub.search.back": "",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "",
111
111
  "datahub.header.popularRecords": "",
112
112
  "datahub.header.title.html": "",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "",
114
117
  "datahub.news.figures": "",
115
118
  "datahub.search.back": "",
@@ -110,6 +110,9 @@
110
110
  "datahub.header.organisations": "Organizácie",
111
111
  "datahub.header.popularRecords": "Najpopulárnejšie",
112
112
  "datahub.header.title.html": "<div class=\"text-white\">Objavte otvorené<br>dáta z mojej organizácie</div>",
113
+ "datahub.news.contact.contactus": "",
114
+ "datahub.news.contact.html": "",
115
+ "datahub.news.contact.title": "",
113
116
  "datahub.news.feed": "Spravodajský kanál",
114
117
  "datahub.news.figures": "Ukazovatele",
115
118
  "datahub.search.back": "Späť na výsledky",