geonetwork-ui 2.7.0-dev.8de7be79f → 2.7.0-dev.9cba4b227

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 (424) hide show
  1. package/esm2022/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +4 -7
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +20 -20
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +3 -3
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +3 -3
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
  9. package/esm2022/libs/api/repository/src/index.mjs +2 -2
  10. package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +5 -5
  11. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +55 -12
  12. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +3 -3
  13. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +26 -3
  14. package/esm2022/libs/api/repository/src/lib/gn4/organizations/index.mjs +3 -5
  15. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.mjs +5 -0
  16. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +3 -3
  17. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -3
  18. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.mjs +6 -0
  19. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +43 -25
  20. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -1
  21. package/esm2022/libs/api/repository/src/lib/metadata-language.token.mjs +3 -0
  22. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +11 -1
  23. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  24. package/esm2022/libs/feature/catalog/src/index.mjs +1 -2
  25. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +3 -1
  26. package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +5 -4
  27. package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -3
  28. package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +3 -3
  29. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
  30. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +4 -4
  31. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +8 -2
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +8 -3
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
  35. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -36
  36. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +83 -1
  37. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +10 -5
  38. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +3 -5
  39. package/esm2022/libs/feature/notifications/src/index.mjs +1 -2
  40. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -2
  41. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +14 -4
  42. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -43
  43. package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +10 -5
  44. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +15 -5
  45. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +4 -2
  46. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
  47. package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +3 -2
  48. package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +2 -5
  49. package/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +4 -3
  50. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +3 -2
  51. package/esm2022/libs/feature/search/src/index.mjs +1 -2
  52. package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +12 -5
  53. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
  54. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +4 -100
  55. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +9 -5
  56. package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +6 -5
  57. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +9 -5
  58. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +7 -6
  59. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +19 -12
  60. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +2 -1
  61. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +7 -6
  62. package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +3 -2
  63. package/esm2022/libs/feature/search/src/lib/state/reducer.mjs +5 -2
  64. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +8 -2
  65. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +10 -4
  66. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +8 -2
  67. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +8 -2
  68. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +14 -4
  69. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +8 -2
  70. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +1 -4
  71. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +7 -7
  72. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +8 -2
  73. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +1 -6
  74. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +15 -5
  75. package/esm2022/libs/ui/search/src/index.mjs +1 -3
  76. package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +14 -30
  77. package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +6 -27
  78. package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +7 -4
  79. package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +5 -4
  80. package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +5 -2
  81. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +5 -4
  82. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +36 -7
  83. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +11 -5
  84. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +5 -4
  85. package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +5 -4
  86. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +5 -4
  87. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +5 -4
  88. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +17 -7
  89. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +4 -2
  90. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +5 -4
  91. package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +5 -3
  92. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +14 -4
  93. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +3 -1
  94. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -2
  95. package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
  96. package/esm2022/libs/util/app-config/src/lib/parse-utils.mjs +5 -4
  97. package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +50 -9
  98. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
  99. package/esm2022/libs/util/shared/src/lib/record/quality-score.util.mjs +9 -8
  100. package/esm2022/libs/util/shared/src/lib/utils/geojson.mjs +58 -1
  101. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  102. package/esm2022/libs/util/shared/src/lib/utils/scroll.mjs +40 -0
  103. package/esm2022/translations/de.json +55 -21
  104. package/esm2022/translations/en.json +57 -22
  105. package/esm2022/translations/es.json +42 -8
  106. package/esm2022/translations/fr.json +61 -27
  107. package/esm2022/translations/it.json +55 -21
  108. package/esm2022/translations/nl.json +42 -8
  109. package/esm2022/translations/pt.json +42 -8
  110. package/esm2022/translations/sk.json +46 -12
  111. package/fesm2022/geonetwork-ui.mjs +10696 -10716
  112. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  113. package/index.d.ts +0 -1
  114. package/index.d.ts.map +1 -1
  115. package/index.ts +0 -1
  116. package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -1
  117. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +1 -1
  118. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  119. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +2 -2
  120. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  121. package/libs/api/repository/src/index.d.ts +1 -1
  122. package/libs/api/repository/src/index.d.ts.map +1 -1
  123. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -2
  124. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  125. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
  126. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  127. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts +2 -3
  128. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts.map +1 -1
  129. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts +4 -0
  130. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts.map +1 -0
  131. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts +9 -0
  132. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts.map +1 -0
  133. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +12 -8
  134. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  135. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +2 -0
  136. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
  137. package/libs/api/repository/src/lib/metadata-language.token.d.ts +5 -0
  138. package/libs/api/repository/src/lib/metadata-language.token.d.ts.map +1 -0
  139. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -1
  140. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  141. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -0
  142. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  143. package/libs/feature/catalog/src/index.d.ts +0 -1
  144. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  145. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +1 -0
  146. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -1
  147. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts +1 -1
  148. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts.map +1 -1
  149. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts +1 -1
  150. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts.map +1 -1
  151. package/libs/feature/catalog/src/lib/sources/sources.service.d.ts.map +1 -1
  152. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -1
  153. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  154. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
  155. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  156. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
  157. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -0
  160. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -0
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  163. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +3 -10
  164. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  165. package/libs/feature/editor/src/lib/fields.config.d.ts +8 -1
  166. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  167. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  168. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +2 -2
  169. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  170. package/libs/feature/notifications/src/index.d.ts +0 -1
  171. package/libs/feature/notifications/src/index.d.ts.map +1 -1
  172. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  173. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  174. package/libs/feature/record/src/lib/feature-record.module.d.ts +4 -11
  175. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  176. package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
  177. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  178. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts.map +1 -1
  179. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  180. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts +1 -1
  181. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts.map +1 -1
  182. package/libs/feature/router/src/lib/default/router.module.d.ts +4 -5
  183. package/libs/feature/router/src/lib/default/router.module.d.ts.map +1 -1
  184. package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -1
  185. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  186. package/libs/feature/search/src/index.d.ts +0 -1
  187. package/libs/feature/search/src/index.d.ts.map +1 -1
  188. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts +1 -1
  189. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts.map +1 -1
  190. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
  191. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  192. package/libs/feature/search/src/lib/feature-search.module.d.ts +3 -26
  193. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  194. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +1 -1
  195. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
  196. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts +1 -1
  197. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts.map +1 -1
  198. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +1 -1
  199. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -1
  200. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts +1 -1
  201. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts.map +1 -1
  202. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
  203. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  204. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +1 -1
  205. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  206. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts +1 -1
  207. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
  208. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts +1 -1
  209. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts.map +1 -1
  210. package/libs/feature/search/src/lib/state/reducer.d.ts.map +1 -1
  211. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts.map +1 -1
  212. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  213. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  214. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  215. package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +1 -1
  216. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -1
  217. package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -1
  218. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
  219. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -1
  220. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  221. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -1
  222. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
  223. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  224. package/libs/ui/search/src/index.d.ts +0 -2
  225. package/libs/ui/search/src/index.d.ts.map +1 -1
  226. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts +1 -11
  227. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts.map +1 -1
  228. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts +1 -11
  229. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts.map +1 -1
  230. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts +1 -1
  231. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts.map +1 -1
  232. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts +1 -1
  233. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts.map +1 -1
  234. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts +1 -1
  235. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts.map +1 -1
  236. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts +1 -1
  237. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts.map +1 -1
  238. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts +1 -1
  239. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts.map +1 -1
  240. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts +1 -1
  241. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts.map +1 -1
  242. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts +1 -1
  243. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts.map +1 -1
  244. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts +1 -1
  245. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts.map +1 -1
  246. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts +1 -1
  247. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts.map +1 -1
  248. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts +1 -1
  249. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts.map +1 -1
  250. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +1 -1
  251. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
  252. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts +1 -1
  253. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts.map +1 -1
  254. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts +1 -1
  255. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  256. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts +1 -1
  257. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts.map +1 -1
  258. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
  259. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  260. package/libs/util/app-config/src/lib/model.d.ts +1 -0
  261. package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
  262. package/libs/util/app-config/src/lib/parse-utils.d.ts.map +1 -1
  263. package/libs/util/i18n/src/lib/language-codes.d.ts +91 -31
  264. package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
  265. package/libs/util/shared/src/lib/links/link-utils.d.ts +26 -7
  266. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  267. package/libs/util/shared/src/lib/record/quality-score.util.d.ts.map +1 -1
  268. package/libs/util/shared/src/lib/utils/geojson.d.ts +7 -2
  269. package/libs/util/shared/src/lib/utils/geojson.d.ts.map +1 -1
  270. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  271. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  272. package/libs/util/shared/src/lib/utils/scroll.d.ts +12 -0
  273. package/libs/util/shared/src/lib/utils/scroll.d.ts.map +1 -0
  274. package/package.json +11 -10
  275. package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +3 -6
  276. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +47 -22
  277. package/src/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.ts +2 -2
  278. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +2 -2
  279. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +2 -2
  280. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +3 -3
  281. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +6 -6
  282. package/src/libs/api/repository/src/index.ts +1 -1
  283. package/src/libs/api/repository/src/lib/gn4/auth/auth.service.ts +4 -4
  284. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +65 -14
  285. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +2 -2
  286. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +38 -2
  287. package/src/libs/api/repository/src/lib/gn4/organizations/index.ts +2 -11
  288. package/src/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.ts +10 -0
  289. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +2 -2
  290. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +2 -2
  291. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.ts +33 -0
  292. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +45 -45
  293. package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +8 -0
  294. package/src/libs/api/repository/src/lib/metadata-language.token.ts +8 -0
  295. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +17 -1
  296. package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -0
  297. package/src/libs/feature/catalog/src/index.ts +0 -1
  298. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +5 -0
  299. package/src/libs/feature/catalog/src/lib/site-title/site-title.component.ts +4 -0
  300. package/src/libs/feature/catalog/src/lib/source-label/source-label.component.ts +3 -0
  301. package/src/libs/feature/catalog/src/lib/sources/sources.service.ts +2 -5
  302. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +4 -4
  303. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +3 -3
  304. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +8 -1
  305. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.css +0 -0
  306. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.html +22 -0
  307. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
  308. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +6 -0
  309. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +5 -0
  310. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
  311. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -18
  312. package/src/libs/feature/editor/src/lib/fields.config.ts +91 -1
  313. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +8 -1
  314. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -8
  315. package/src/libs/feature/notifications/src/index.ts +0 -1
  316. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -1
  317. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +7 -2
  318. package/src/libs/feature/record/src/lib/feature-record.module.ts +1 -21
  319. package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +5 -2
  320. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +12 -3
  321. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -0
  322. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -2
  323. package/src/libs/feature/router/src/lib/default/container/search-router.container.directive.ts +1 -0
  324. package/src/libs/feature/router/src/lib/default/router.module.ts +0 -3
  325. package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +5 -2
  326. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +2 -1
  327. package/src/libs/feature/search/src/index.ts +0 -1
  328. package/src/libs/feature/search/src/lib/facets/facets-container/facets-container.component.ts +14 -1
  329. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
  330. package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -61
  331. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +12 -1
  332. package/src/libs/feature/search/src/lib/records-metrics/records-metrics.component.ts +5 -0
  333. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +11 -0
  334. package/src/libs/feature/search/src/lib/results-layout/results-layout.component.ts +5 -0
  335. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +21 -1
  336. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +1 -1
  337. package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +5 -0
  338. package/src/libs/feature/search/src/lib/state/container/search-state.container.directive.ts +1 -0
  339. package/src/libs/feature/search/src/lib/state/reducer.ts +4 -1
  340. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +4 -1
  341. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -1
  342. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +4 -1
  343. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -1
  344. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +4 -1
  345. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +7 -2
  346. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +8 -1
  347. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -4
  348. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +6 -6
  349. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +8 -1
  350. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +0 -6
  351. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
  352. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +9 -4
  353. package/src/libs/ui/search/src/index.ts +0 -2
  354. package/src/libs/ui/search/src/lib/facets/facet-block/facet-block.component.ts +12 -11
  355. package/src/libs/ui/search/src/lib/facets/facet-item/facet-item.component.ts +5 -11
  356. package/src/libs/ui/search/src/lib/facets/facet-list/facet-list.component.ts +6 -0
  357. package/src/libs/ui/search/src/lib/record-metric/record-metric.component.ts +4 -0
  358. package/src/libs/ui/search/src/lib/record-preview/record-preview.component.ts +3 -0
  359. package/src/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.ts +4 -0
  360. package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.ts +33 -1
  361. package/src/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.ts +10 -0
  362. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.ts +4 -0
  363. package/src/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.ts +4 -0
  364. package/src/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.ts +4 -0
  365. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.ts +4 -0
  366. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
  367. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +16 -2
  368. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +5 -3
  369. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +4 -0
  370. package/src/libs/ui/search/src/lib/results-list-item/results-list-item.component.ts +3 -0
  371. package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +6 -1
  372. package/src/libs/util/app-config/src/lib/app-config.ts +2 -0
  373. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -1
  374. package/src/libs/util/app-config/src/lib/model.ts +1 -0
  375. package/src/libs/util/app-config/src/lib/parse-utils.ts +4 -7
  376. package/src/libs/util/i18n/src/lib/language-codes.ts +62 -11
  377. package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
  378. package/src/libs/util/shared/src/lib/record/quality-score.util.ts +13 -10
  379. package/src/libs/util/shared/src/lib/utils/geojson.ts +72 -2
  380. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  381. package/src/libs/util/shared/src/lib/utils/scroll.ts +48 -0
  382. package/translations/de.json +55 -21
  383. package/translations/en.json +57 -22
  384. package/translations/es.json +42 -8
  385. package/translations/fr.json +61 -27
  386. package/translations/it.json +55 -21
  387. package/translations/nl.json +42 -8
  388. package/translations/pt.json +42 -8
  389. package/translations/sk.json +46 -12
  390. package/esm2022/libs/api/repository/src/lib/metadata-language.mjs +0 -3
  391. package/esm2022/libs/feature/auth/src/index.mjs +0 -2
  392. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +0 -17
  393. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +0 -57
  394. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +0 -18
  395. package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +0 -21
  396. package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +0 -23
  397. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +0 -168
  398. package/esm2022/libs/util/app-config/src/lib/constants.mjs +0 -439
  399. package/libs/api/repository/src/lib/metadata-language.d.ts +0 -3
  400. package/libs/api/repository/src/lib/metadata-language.d.ts.map +0 -1
  401. package/libs/feature/auth/src/index.d.ts +0 -2
  402. package/libs/feature/auth/src/index.d.ts.map +0 -1
  403. package/libs/feature/auth/src/lib/feature-auth.module.d.ts +0 -8
  404. package/libs/feature/auth/src/lib/feature-auth.module.d.ts.map +0 -1
  405. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +0 -14
  406. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +0 -1
  407. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +0 -7
  408. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +0 -1
  409. package/libs/feature/search/src/lib/facets/facets.module.d.ts +0 -11
  410. package/libs/feature/search/src/lib/facets/facets.module.d.ts.map +0 -1
  411. package/libs/ui/search/src/lib/facets/facets.module.d.ts +0 -13
  412. package/libs/ui/search/src/lib/facets/facets.module.d.ts.map +0 -1
  413. package/libs/ui/search/src/lib/ui-search.module.d.ts +0 -36
  414. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +0 -1
  415. package/libs/util/app-config/src/lib/constants.d.ts +0 -2
  416. package/libs/util/app-config/src/lib/constants.d.ts.map +0 -1
  417. package/src/libs/api/repository/src/lib/metadata-language.ts +0 -3
  418. package/src/libs/feature/auth/src/index.ts +0 -1
  419. package/src/libs/feature/auth/src/lib/feature-auth.module.ts +0 -12
  420. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -71
  421. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +0 -10
  422. package/src/libs/feature/search/src/lib/facets/facets.module.ts +0 -12
  423. package/src/libs/ui/search/src/lib/facets/facets.module.ts +0 -14
  424. package/src/libs/ui/search/src/lib/ui-search.module.ts +0 -108
@@ -11,14 +11,14 @@ import {
11
11
  selectRecordSource,
12
12
  } from './editor.selectors'
13
13
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
14
- import { Gn4PlatformService } from '../../../../../../libs/api/repository/src'
14
+ import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
15
15
 
16
16
  @Injectable()
17
17
  export class EditorEffects {
18
18
  private actions$ = inject(Actions)
19
19
  private editorService = inject(EditorService)
20
20
  private recordsRepository = inject(RecordsRepositoryInterface)
21
- private gn4PlateformService = inject(Gn4PlatformService)
21
+ private plateformService = inject(PlatformServiceInterface)
22
22
  private store = inject(Store)
23
23
 
24
24
  saveRecord$ = createEffect(() =>
@@ -64,7 +64,7 @@ export class EditorEffects {
64
64
  withLatestFrom(this.store.select(selectRecord)),
65
65
  switchMap(([_, record]) => {
66
66
  if (record.uniqueIdentifier !== null) {
67
- this.gn4PlateformService.cleanRecordAttachments(record).subscribe({
67
+ this.plateformService.cleanRecordAttachments(record).subscribe({
68
68
  next: (_) => undefined,
69
69
  error: (err) => {
70
70
  console.error(err)
@@ -12,7 +12,11 @@ import { map } from 'rxjs'
12
12
  import { Keyword } from '../../../../../../../libs/common/domain/src/lib/model/record'
13
13
  import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
14
14
  import { TranslatePipe } from '@ngx-translate/core'
15
- import { NgIconComponent, provideIcons } from '@ng-icons/core'
15
+ import {
16
+ NgIconComponent,
17
+ provideIcons,
18
+ provideNgIconsConfig,
19
+ } from '@ng-icons/core'
16
20
  import { matWarningAmberOutline } from '@ng-icons/material-icons/outline'
17
21
 
18
22
  type AutocompleteItem = { title: string; value: Keyword }
@@ -34,6 +38,9 @@ type AutocompleteItem = { title: string; value: Keyword }
34
38
  provideIcons({
35
39
  matWarningAmberOutline,
36
40
  }),
41
+ provideNgIconsConfig({
42
+ size: '1.5em',
43
+ }),
37
44
  ],
38
45
  })
39
46
  export class GenericKeywordsComponent {
@@ -0,0 +1,22 @@
1
+ <div class="flex flex-col gap-3">
2
+ <div class="flex flex-col gap-4">
3
+ <gn-ui-dropdown-multiselect
4
+ class="w-full"
5
+ [title]="'editor.record.form.topics.placeholder' | translate"
6
+ [maxRows]="6"
7
+ [selected]="topics"
8
+ [choices]="availableTopics || []"
9
+ [allowSearch]="true"
10
+ (selectValues)="handleItemSelection($event)"
11
+ >
12
+ </gn-ui-dropdown-multiselect>
13
+ <div class="flex gap-2 flex-wrap">
14
+ <gn-ui-badge
15
+ *ngFor="let topic of topics"
16
+ [removable]="true"
17
+ (badgeRemoveClicked)="removeTopic(topic)"
18
+ >{{ getTranslatedTopic(topic) }}
19
+ </gn-ui-badge>
20
+ </div>
21
+ </div>
22
+ </div>
@@ -0,0 +1,57 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import {
4
+ AutocompleteComponent,
5
+ BadgeComponent,
6
+ DropdownMultiselectComponent,
7
+ } from '../../../../../../../../../libs/ui/inputs/src'
8
+ import { NgIconComponent } from '@ng-icons/core'
9
+ import { INSPIRE_TOPICS } from '../../../../fields.config'
10
+ import { TranslatePipe, TranslateService } from '@ngx-translate/core'
11
+
12
+ @Component({
13
+ selector: 'gn-ui-form-field-topics',
14
+ standalone: true,
15
+ imports: [
16
+ CommonModule,
17
+ AutocompleteComponent,
18
+ NgIconComponent,
19
+ BadgeComponent,
20
+ TranslatePipe,
21
+ DropdownMultiselectComponent,
22
+ ],
23
+ templateUrl: './form-field-topics.component.html',
24
+ styleUrl: './form-field-topics.component.css',
25
+ })
26
+ export class FormFieldTopicsComponent {
27
+ topics = []
28
+ @Input() set value(topics: string[]) {
29
+ this.topics = topics
30
+ }
31
+ @Output() valueChange: EventEmitter<string[]> = new EventEmitter()
32
+ availableTopics = INSPIRE_TOPICS.map((topic) => {
33
+ return {
34
+ label: this.translateService.instant(topic.label),
35
+ value: topic.value,
36
+ }
37
+ })
38
+
39
+ constructor(private translateService: TranslateService) {}
40
+
41
+ handleItemSelection(selectedItems: string[]) {
42
+ this.topics = selectedItems
43
+ this.valueChange.emit(this.topics)
44
+ }
45
+
46
+ removeTopic(topic: string) {
47
+ this.topics = this.topics.filter((t) => t !== topic)
48
+ this.valueChange.emit(this.topics)
49
+ }
50
+
51
+ getTranslatedTopic(topic: string) {
52
+ const topicKey = this.availableTopics.find(
53
+ (avail) => avail.value === topic
54
+ )?.label
55
+ return topicKey ? this.translateService.instant(topicKey) : ''
56
+ }
57
+ }
@@ -109,6 +109,12 @@
109
109
  (valueChange)="valueChange.emit($event)"
110
110
  ></gn-ui-form-field-keywords>
111
111
  </ng-container>
112
+ <ng-container *ngSwitchCase="'topics'">
113
+ <gn-ui-form-field-topics
114
+ [value]="valueAsTopics"
115
+ (valueChange)="valueChange.emit($event)"
116
+ ></gn-ui-form-field-topics>
117
+ </ng-container>
112
118
  <ng-container *ngSwitchCase="'licenses'">
113
119
  <gn-ui-form-field-license
114
120
  [label]="config.labelKey! | translate"
@@ -45,6 +45,7 @@ import { FormFieldConstraintsShortcutsComponent } from './form-field-constraints
45
45
  import { FormFieldConstraintsComponent } from './form-field-constraints/form-field-constraints.component'
46
46
  import { TextFieldModule } from '@angular/cdk/text-field'
47
47
  import { FormFieldSpatialToggleComponent } from './form-field-spatial-toggle/form-field-spatial-toggle.component'
48
+ import { FormFieldTopicsComponent } from './form-field-topics/form-field-topics.component'
48
49
 
49
50
  @Component({
50
51
  selector: 'gn-ui-form-field',
@@ -73,6 +74,7 @@ import { FormFieldSpatialToggleComponent } from './form-field-spatial-toggle/for
73
74
  FormFieldConstraintsComponent,
74
75
  FormFieldConstraintsShortcutsComponent,
75
76
  FormFieldSpatialToggleComponent,
77
+ FormFieldTopicsComponent,
76
78
  TextFieldModule,
77
79
  ],
78
80
  })
@@ -128,6 +130,9 @@ export class FormFieldComponent {
128
130
  get valueAsKeywords() {
129
131
  return this.value as Array<Keyword>
130
132
  }
133
+ get valueAsTopics() {
134
+ return this.value as Array<string>
135
+ }
131
136
  get valueAsConstraints() {
132
137
  return this.value as Array<Constraint>
133
138
  }
@@ -10,3 +10,4 @@ export * from './form-field-array/form-field-array.component'
10
10
  export * from './form-field-spatial-extent/form-field-spatial-extent.component'
11
11
  export * from './form-field.component'
12
12
  export * from './form-field-constraints-shortcuts/constraints.utils'
13
+ export * from './form-field-topics/form-field-topics.component'
@@ -1,35 +1,19 @@
1
- import { CommonModule } from '@angular/common'
2
- import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'
1
+ import { provideHttpClient } from '@angular/common/http'
3
2
  import { NgModule } from '@angular/core'
4
- import { MatNativeDateModule } from '@angular/material/core'
5
- import { MatDatepickerModule } from '@angular/material/datepicker'
6
- import { MatFormFieldModule } from '@angular/material/form-field'
7
- import { TextInputComponent } from '../../../../../libs/ui/inputs/src'
8
3
  import { EffectsModule } from '@ngrx/effects'
9
4
  import { StoreModule } from '@ngrx/store'
10
- import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
11
5
  import { EditorEffects } from './+state/editor.effects'
12
6
  import { EditorFacade } from './+state/editor.facade'
13
7
  import * as fromEditor from './+state/editor.reducer'
14
- import { Gn4PlatformService } from '../../../../../libs/api/repository/src'
15
8
 
16
9
  @NgModule({
17
10
  imports: [
18
- CommonModule,
19
- TranslateDirective,
20
- TranslatePipe,
21
- MatDatepickerModule,
22
- MatNativeDateModule,
23
- MatFormFieldModule,
24
- HttpClientModule,
25
- HttpClientXsrfModule,
26
11
  StoreModule.forFeature(
27
12
  fromEditor.EDITOR_FEATURE_KEY,
28
13
  fromEditor.editorReducer
29
14
  ),
30
15
  EffectsModule.forFeature([EditorEffects]),
31
- TextInputComponent,
32
16
  ],
33
- providers: [EditorFacade, Gn4PlatformService],
17
+ providers: [EditorFacade, provideHttpClient()],
34
18
  })
35
19
  export class FeatureEditorModule {}
@@ -4,7 +4,10 @@ import {
4
4
  EditorField,
5
5
  EditorSection,
6
6
  } from './models/editor-config.model'
7
- import { Keyword } from '../../../../../libs/common/domain/src/lib/model/record'
7
+ import {
8
+ INSPIRE_topic,
9
+ Keyword,
10
+ } from '../../../../../libs/common/domain/src/lib/model/record'
8
11
 
9
12
  /**
10
13
  * This file contains the configuration of the fields that will be displayed in the editor.
@@ -64,6 +67,11 @@ export const RECORD_KEYWORDS_FIELD: EditorField = {
64
67
  formFieldConfig: {},
65
68
  }
66
69
 
70
+ export const RECORD_TOPICS_FIELD: EditorField = {
71
+ model: 'topics',
72
+ formFieldConfig: {},
73
+ }
74
+
67
75
  export const RECORD_RESOURCE_CREATED_FIELD: EditorField = {
68
76
  model: 'resourceCreated',
69
77
  formFieldConfig: {
@@ -235,6 +243,13 @@ export const CLASSIFICATION_SECTION: EditorSection = {
235
243
  fields: [RECORD_KEYWORDS_FIELD],
236
244
  }
237
245
 
246
+ export const TOPICS_SECTION: EditorSection = {
247
+ labelKey: marker('editor.record.form.section.topics.label'),
248
+ descriptionKey: marker('editor.record.form.section.topics.description'),
249
+ hidden: false,
250
+ fields: [RECORD_TOPICS_FIELD],
251
+ }
252
+
238
253
  export const USE_AND_ACCESS_CONDITIONS_SECTION: EditorSection = {
239
254
  labelKey: marker('editor.record.form.section.useAndAccessConditions.label'),
240
255
  hidden: false,
@@ -274,6 +289,7 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
274
289
  sections: [
275
290
  TITLE_SECTION,
276
291
  CLASSIFICATION_SECTION,
292
+ TOPICS_SECTION,
277
293
  ABOUT_SECTION,
278
294
  GEOGRAPHICAL_COVERAGE_SECTION,
279
295
  ],
@@ -341,3 +357,77 @@ export const SPATIAL_SCOPES: Keyword[] = [
341
357
  type: 'theme',
342
358
  },
343
359
  ]
360
+
361
+ /************************************************************
362
+ *************** INSPIRE TOPICS **************
363
+ ************************************************************
364
+ */
365
+
366
+ export const INSPIRE_TOPICS: INSPIRE_topic[] = [
367
+ { value: 'biota', label: 'editor.record.form.topics.inspire.biota' },
368
+ {
369
+ value: 'boundaries',
370
+ label: 'editor.record.form.topics.inspire.boundaries',
371
+ },
372
+ {
373
+ value: 'climatologyMeteorologyAtmosphere',
374
+ label: 'editor.record.form.topics.inspire.climatology',
375
+ },
376
+ { value: 'economy', label: 'editor.record.form.topics.inspire.economy' },
377
+ { value: 'elevation', label: 'editor.record.form.topics.inspire.elevation' },
378
+ {
379
+ value: 'environment',
380
+ label: 'editor.record.form.topics.inspire.environnement',
381
+ },
382
+ { value: 'farming', label: 'editor.record.form.topics.inspire.farming' },
383
+ {
384
+ value: 'geoscientific information',
385
+ label: 'editor.record.form.topics.inspire.geoscientific',
386
+ },
387
+ { value: 'health', label: 'editor.record.form.topics.inspire.health' },
388
+ {
389
+ value: 'imageryBaseMapsEarthCover',
390
+ label: 'editor.record.form.topics.inspire.imagery',
391
+ },
392
+ { value: 'inlandWaters', label: 'editor.record.form.topics.inspire.waters' },
393
+ {
394
+ value: 'intelligenceMilitary',
395
+ label: 'editor.record.form.topics.inspire.intelligence',
396
+ },
397
+ { value: 'Location', label: 'editor.record.form.topics.inspire.location' },
398
+ { value: 'Oceans', label: 'editor.record.form.topics.inspire.oceans' },
399
+ {
400
+ value: 'planningCadastre',
401
+ label: 'editor.record.form.topics.inspire.planning',
402
+ },
403
+ { value: 'Society', label: 'editor.record.form.topics.inspire.society' },
404
+ { value: 'Structure', label: 'editor.record.form.topics.inspire.structure' },
405
+ {
406
+ value: 'Transportation',
407
+ label: 'editor.record.form.topics.inspire.transportation',
408
+ },
409
+ {
410
+ value: 'utilitiesCommunication',
411
+ label: 'editor.record.form.topics.inspire.utilities',
412
+ },
413
+ ]
414
+
415
+ marker('editor.record.form.topics.inspire.biota')
416
+ marker('editor.record.form.topics.inspire.boundaries')
417
+ marker('editor.record.form.topics.inspire.climatology')
418
+ marker('editor.record.form.topics.inspire.economy')
419
+ marker('editor.record.form.topics.inspire.elevation')
420
+ marker('editor.record.form.topics.inspire.environnement')
421
+ marker('editor.record.form.topics.inspire.farming')
422
+ marker('editor.record.form.topics.inspire.geoscientific')
423
+ marker('editor.record.form.topics.inspire.health')
424
+ marker('editor.record.form.topics.inspire.imagery')
425
+ marker('editor.record.form.topics.inspire.intelligence')
426
+ marker('editor.record.form.topics.inspire.location')
427
+ marker('editor.record.form.topics.inspire.oceans')
428
+ marker('editor.record.form.topics.inspire.planning')
429
+ marker('editor.record.form.topics.inspire.society')
430
+ marker('editor.record.form.topics.inspire.structure')
431
+ marker('editor.record.form.topics.inspire.transportation')
432
+ marker('editor.record.form.topics.inspire.utilities')
433
+ marker('editor.record.form.topics.inspire.waters')
@@ -3,6 +3,7 @@ import {
3
3
  FeatureSearchModule,
4
4
  FIELDS_BRIEF,
5
5
  FuzzySearchComponent,
6
+ ResultsListContainerComponent,
6
7
  SearchFacade,
7
8
  SearchService,
8
9
  } from '../../../../../../libs/feature/search/src'
@@ -11,6 +12,7 @@ import {
11
12
  ResultsLayoutConfigItem,
12
13
  } from '../../../../../../libs/ui/search/src'
13
14
  import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-layer-record-preview.component'
15
+ import { CommonModule } from '@angular/common'
14
16
 
15
17
  @Component({
16
18
  selector: 'gn-ui-add-layer-from-catalog',
@@ -33,7 +35,12 @@ import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-l
33
35
  },
34
36
  },
35
37
  ],
36
- imports: [FeatureSearchModule, FuzzySearchComponent],
38
+ imports: [
39
+ CommonModule,
40
+ FeatureSearchModule,
41
+ FuzzySearchComponent,
42
+ ResultsListContainerComponent,
43
+ ],
37
44
  })
38
45
  export class AddLayerFromCatalogComponent implements OnInit {
39
46
  constructor(private searchFacade: SearchFacade) {}
@@ -1,25 +1,25 @@
1
1
  import { Injectable } from '@angular/core'
2
- import { extend, Extent } from 'ol/extent'
3
- import GeoJSON from 'ol/format/GeoJSON'
2
+ import { extend } from 'ol/extent'
4
3
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
5
-
6
- const GEOJSON = new GeoJSON()
4
+ import { BoundingBox, getGeometryBoundingBox } from '../../../../../../libs/util/shared/src'
7
5
 
8
6
  @Injectable({
9
7
  providedIn: 'root',
10
8
  })
11
9
  export class MapUtilsService {
12
- getRecordExtent(record: Partial<CatalogRecord>): Extent {
10
+ getRecordExtent(record: Partial<CatalogRecord>): BoundingBox {
13
11
  if (!('spatialExtents' in record) || record.spatialExtents.length === 0) {
14
12
  return null
15
13
  }
16
14
  // extend all the spatial extents into an including bbox
17
15
  return record.spatialExtents.reduce(
18
16
  (prev, curr) => {
19
- if ('bbox' in curr) return extend(prev, curr.bbox)
17
+ if ('bbox' in curr) return extend(prev, curr.bbox) as BoundingBox
20
18
  else if ('geometry' in curr) {
21
- const geom = GEOJSON.readGeometry(curr.geometry)
22
- return extend(prev, geom.getExtent())
19
+ return extend(
20
+ prev,
21
+ getGeometryBoundingBox(curr.geometry)
22
+ ) as BoundingBox
23
23
  }
24
24
  return prev
25
25
  },
@@ -1,3 +1,2 @@
1
- export * from './lib/feature-notifications.module'
2
1
  export * from './lib/notifications.service'
3
2
  export * from './lib/notifications-container/notifications-container.component'
@@ -57,7 +57,9 @@ export class DataViewComponent {
57
57
  }
58
58
  }
59
59
  @Input() set datavizConfig(value: any) {
60
- this._selectedView = value.view
60
+ if ((value && value.view === 'table') || value.view === 'chart') {
61
+ this._selectedView = value.view
62
+ }
61
63
  if (this.mode === value.view) {
62
64
  if (!value.source) {
63
65
  this.linkSelected.emit(this.selectedLink$.value)
@@ -11,7 +11,7 @@ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
11
11
  import { TranslatePipe, TranslateService } from '@ngx-translate/core'
12
12
  import { getFileFormat } from '../../../../../../libs/util/shared/src'
13
13
  import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
14
- import { NgIcon, provideIcons } from '@ng-icons/core'
14
+ import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
15
15
  import { CommonModule } from '@angular/common'
16
16
  import { matOpenInNew } from '@ng-icons/material-icons/baseline'
17
17
 
@@ -32,7 +32,12 @@ export const EXTERNAL_VIEWER_OPEN_NEW_TAB = new InjectionToken<boolean>(
32
32
  changeDetection: ChangeDetectionStrategy.OnPush,
33
33
  standalone: true,
34
34
  imports: [CommonModule, ButtonComponent, NgIcon, TranslatePipe],
35
- viewProviders: [provideIcons({ matOpenInNew })],
35
+ viewProviders: [
36
+ provideIcons({ matOpenInNew }),
37
+ provideNgIconsConfig({
38
+ size: '1.5em',
39
+ }),
40
+ ],
36
41
  })
37
42
  export class ExternalViewerButtonComponent {
38
43
  @Input() link: DatasetOnlineResource
@@ -1,40 +1,20 @@
1
1
  import { NgModule } from '@angular/core'
2
- import { CommonModule } from '@angular/common'
3
2
  import { StoreModule } from '@ngrx/store'
4
3
  import { EffectsModule } from '@ngrx/effects'
5
4
  import { FeatureMapModule } from '../../../../../libs/feature/map/src'
6
- import { DropdownSelectorComponent } from '../../../../../libs/ui/inputs/src'
7
5
  import { MdViewFacade } from './state'
8
6
  import { MdViewEffects } from './state/mdview.effects'
9
7
  import {
10
8
  METADATA_VIEW_FEATURE_STATE_KEY,
11
9
  reducer,
12
10
  } from './state/mdview.reducer'
13
- import { MatTabsModule } from '@angular/material/tabs'
14
- import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
15
- import { FeatureCatalogModule } from '../../../../../libs/feature/catalog/src'
16
- import { DataTableComponent } from '../../../../../libs/ui/dataviz/src'
17
- import { NgIconsModule, provideNgIconsConfig } from '@ng-icons/core'
18
11
 
19
12
  @NgModule({
20
13
  imports: [
21
- CommonModule,
22
14
  StoreModule.forFeature(METADATA_VIEW_FEATURE_STATE_KEY, reducer),
23
15
  EffectsModule.forFeature([MdViewEffects]),
24
16
  FeatureMapModule,
25
- FeatureCatalogModule,
26
- MatTabsModule,
27
- TranslateDirective,
28
- TranslatePipe,
29
- DataTableComponent,
30
- NgIconsModule,
31
- DropdownSelectorComponent,
32
- ],
33
- providers: [
34
- MdViewFacade,
35
- provideNgIconsConfig({
36
- size: '1.5em',
37
- }),
38
17
  ],
18
+ providers: [MdViewFacade],
39
19
  })
40
20
  export class FeatureRecordModule {}
@@ -1,7 +1,7 @@
1
1
  import { CommonModule } from '@angular/common'
2
2
  import { HttpClient } from '@angular/common/http'
3
3
  import { Component, Input, OnInit } from '@angular/core'
4
- import { NgIconsModule, provideIcons } from '@ng-icons/core'
4
+ import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
5
5
  import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
6
6
  import { map, mergeMap, Observable } from 'rxjs'
7
7
  import { matCloudDownloadOutline } from '@ng-icons/material-icons/outline'
@@ -11,11 +11,14 @@ import { matCloudDownloadOutline } from '@ng-icons/material-icons/outline'
11
11
  templateUrl: './gpf-api-dl-list-item.component.html',
12
12
  styleUrls: ['./gpf-api-dl-list-item.component.css'],
13
13
  standalone: true,
14
- imports: [CommonModule, TranslateDirective, TranslatePipe, NgIconsModule],
14
+ imports: [CommonModule, TranslateDirective, TranslatePipe, NgIcon],
15
15
  providers: [
16
16
  provideIcons({
17
17
  matCloudDownloadOutline,
18
18
  }),
19
+ provideNgIconsConfig({
20
+ size: '1.5em',
21
+ }),
19
22
  ],
20
23
  })
21
24
  export class GpfApiDlListItemComponent implements OnInit {
@@ -49,7 +49,11 @@ import {
49
49
  prioritizePageScroll,
50
50
  } from '../../../../../../libs/ui/map/src'
51
51
  import { Feature } from 'geojson'
52
- import { NgIconComponent, provideIcons } from '@ng-icons/core'
52
+ import {
53
+ NgIconComponent,
54
+ provideIcons,
55
+ provideNgIconsConfig,
56
+ } from '@ng-icons/core'
53
57
  import { matClose } from '@ng-icons/material-icons/baseline'
54
58
  import { CommonModule } from '@angular/common'
55
59
  import {
@@ -94,7 +98,12 @@ marker('map.select.style')
94
98
  ButtonComponent,
95
99
  MapLegendComponent,
96
100
  ],
97
- viewProviders: [provideIcons({ matClose })],
101
+ viewProviders: [
102
+ provideIcons({ matClose }),
103
+ provideNgIconsConfig({
104
+ size: '1.5em',
105
+ }),
106
+ ],
98
107
  })
99
108
  export class MapViewComponent implements AfterViewInit {
100
109
  @Input() set exceedsLimit(value: boolean) {
@@ -109,7 +118,7 @@ export class MapViewComponent implements AfterViewInit {
109
118
  this.selectedView$.next(value)
110
119
  }
111
120
  @Input() set datavizConfig(value: any) {
112
- if (value.view === 'map') {
121
+ if (value && value.view === 'map') {
113
122
  this.selectedView$.next(value.view)
114
123
  if (value.styleTMSIndex) {
115
124
  this._styleFromConfig = value.styleTMSIndex
@@ -1,3 +1,4 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import {
2
3
  ChangeDetectionStrategy,
3
4
  Component,
@@ -13,6 +14,7 @@ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/mode
13
14
  template: '',
14
15
  changeDetection: ChangeDetectionStrategy.OnPush,
15
16
  standalone: true,
17
+ imports: [CommonModule],
16
18
  })
17
19
  export class RecordMetaComponent implements OnDestroy, OnChanges {
18
20
  @Input() metadata: CatalogRecord
@@ -139,8 +139,10 @@ export class MdViewFacade {
139
139
  return from(
140
140
  this.dataService.getItemsFromOgcApi(link.url.href)
141
141
  ).pipe(
142
- map((collectionRecords: OgcApiRecord) => {
143
- return collectionRecords && collectionRecords.geometry
142
+ map((collectionRecords: OgcApiRecord[]) => {
143
+ return collectionRecords &&
144
+ collectionRecords[0] &&
145
+ collectionRecords[0].geometry
144
146
  ? link
145
147
  : null
146
148
  }),
@@ -11,6 +11,7 @@ import { RouterSearchService } from '../services/router-search.service'
11
11
  useClass: RouterSearchService,
12
12
  },
13
13
  ],
14
+ standalone: true,
14
15
  })
15
16
  export class SearchRouterContainerDirective implements OnInit {
16
17
  @Input('gnUiSearchRouterContainer') searchId: string
@@ -8,7 +8,6 @@ import {
8
8
  } from '@ngrx/router-store'
9
9
  import { StoreModule } from '@ngrx/store'
10
10
  import { ROUTER_STATE_KEY } from './constants'
11
- import { SearchRouterContainerDirective } from './container/search-router.container.directive'
12
11
  import { RouterService } from './router.service'
13
12
  import { SearchRouteReuseStrategy } from './SearchRouteReuseStrategy'
14
13
  import { RouterFacade } from './state/router.facade'
@@ -16,8 +15,6 @@ import { RouterEffects } from './state/router.effects'
16
15
  import { ROUTER_CONFIG, RouterConfigModel } from './router.config'
17
16
 
18
17
  @NgModule({
19
- declarations: [SearchRouterContainerDirective],
20
- exports: [SearchRouterContainerDirective],
21
18
  imports: [
22
19
  StoreModule.forFeature(ROUTER_STATE_KEY, routerReducer),
23
20
  StoreRouterConnectingModule.forRoot({
@@ -14,7 +14,10 @@ export function flattenQueryParams(
14
14
  Array.isArray(flattened[key]) &&
15
15
  (flattened[key] as string[]).length > 0
16
16
  ) {
17
- flattened[key] = [(flattened[key] as string[]).join(',')]
17
+ const encoded = (flattened[key] as string[]).map((value) =>
18
+ typeof value === 'string' ? value.replace(/,/g, '%2C') : value
19
+ )
20
+ flattened[key] = [encoded.join(',')]
18
21
  } else if (isDateRange(flattened[key] as DateRange)) {
19
22
  const start = (flattened[key] as DateRange).start
20
23
  const end = (flattened[key] as DateRange).end
@@ -48,7 +51,7 @@ export function expandQueryParams(
48
51
  ...(end && { end: new Date(`${end}T00:00:00`) }),
49
52
  }
50
53
  } else {
51
- expanded[key] = value.split(',')
54
+ expanded[key] = value.split(',').map((v) => v.replace(/%2C/g, ','))
52
55
  }
53
56
  }
54
57
  }
@@ -63,7 +63,8 @@ export class RouterFacade {
63
63
  }
64
64
 
65
65
  goToOrganization(organizationName: string) {
66
- const path = `${this.routerService.getOrganizationPageRoute()}/${organizationName}`
66
+ const safeOrgName = organizationName.replace(/\//g, '')
67
+ const path = `${this.routerService.getOrganizationPageRoute()}/${safeOrgName}`
67
68
  this.go({
68
69
  path,
69
70
  queryParamsHandling: '',
@@ -13,7 +13,6 @@ export * from './lib/results-list/results-list.container.component'
13
13
  export * from './lib/filter-dropdown/filter-dropdown.component'
14
14
  export * from './lib/constants'
15
15
  export * from './lib/fuzzy-search/fuzzy-search.component'
16
- export * from './lib/facets/facets.module'
17
16
  export * from './lib/facets/facets-container/facets-container.component'
18
17
  export * from './lib/records-metrics/records-metrics.component'
19
18
  export * from './lib/favorites/favorite-star/favorite-star.component'