geonetwork-ui 2.7.0-dev.9895bd35c → 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 (346) hide show
  1. package/esm2022/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
  3. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +26 -3
  4. package/esm2022/libs/api/repository/src/lib/gn4/organizations/index.mjs +3 -5
  5. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.mjs +5 -0
  6. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.mjs +6 -0
  7. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +35 -21
  8. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -1
  9. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  10. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  11. package/esm2022/libs/feature/catalog/src/index.mjs +1 -2
  12. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +3 -1
  13. package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +5 -4
  14. package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -3
  15. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
  16. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +4 -4
  17. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +8 -2
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -6
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
  21. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -36
  22. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +51 -45
  23. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +10 -5
  24. package/esm2022/libs/feature/notifications/src/index.mjs +1 -2
  25. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -2
  26. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +14 -4
  27. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -43
  28. package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +10 -5
  29. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +15 -5
  30. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +4 -2
  31. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
  32. package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +3 -2
  33. package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +2 -5
  34. package/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +4 -3
  35. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +2 -2
  36. package/esm2022/libs/feature/search/src/index.mjs +1 -2
  37. package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +12 -5
  38. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
  39. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +4 -100
  40. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +9 -5
  41. package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +6 -5
  42. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +9 -5
  43. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +7 -6
  44. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +19 -12
  45. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +2 -1
  46. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +7 -6
  47. package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +3 -2
  48. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +8 -2
  49. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +8 -2
  50. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +8 -2
  51. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +8 -2
  52. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +14 -4
  53. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +8 -2
  54. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +8 -2
  55. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +1 -6
  56. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +15 -5
  57. package/esm2022/libs/ui/search/src/index.mjs +1 -3
  58. package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +14 -30
  59. package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +6 -27
  60. package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +7 -4
  61. package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +5 -4
  62. package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +5 -2
  63. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +5 -4
  64. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +36 -7
  65. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +11 -5
  66. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +5 -4
  67. package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +5 -4
  68. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +5 -4
  69. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +5 -4
  70. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +17 -7
  71. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +4 -2
  72. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +5 -4
  73. package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +5 -3
  74. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +14 -4
  75. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
  76. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  77. package/esm2022/libs/util/shared/src/lib/utils/scroll.mjs +40 -0
  78. package/esm2022/translations/de.json +38 -36
  79. package/esm2022/translations/en.json +41 -38
  80. package/esm2022/translations/es.json +26 -24
  81. package/esm2022/translations/fr.json +45 -43
  82. package/esm2022/translations/it.json +39 -37
  83. package/esm2022/translations/nl.json +26 -24
  84. package/esm2022/translations/pt.json +26 -24
  85. package/esm2022/translations/sk.json +30 -28
  86. package/fesm2022/geonetwork-ui.mjs +5650 -5789
  87. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  88. package/index.d.ts +0 -1
  89. package/index.d.ts.map +1 -1
  90. package/index.ts +0 -1
  91. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +2 -2
  92. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  93. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
  94. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  95. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts +2 -3
  96. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts.map +1 -1
  97. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts +4 -0
  98. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts.map +1 -0
  99. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts +9 -0
  100. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts.map +1 -0
  101. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +11 -8
  102. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  103. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +2 -0
  104. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
  105. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -2
  106. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  107. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -0
  108. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  109. package/libs/feature/catalog/src/index.d.ts +0 -1
  110. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  111. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +1 -0
  112. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -1
  113. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts +1 -1
  114. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts.map +1 -1
  115. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts +1 -1
  116. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts.map +1 -1
  117. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -1
  118. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  119. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
  120. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  121. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
  122. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
  123. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
  124. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
  125. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  126. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
  127. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +3 -10
  129. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/fields.config.d.ts +4 -4
  131. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  132. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  133. package/libs/feature/notifications/src/index.d.ts +0 -1
  134. package/libs/feature/notifications/src/index.d.ts.map +1 -1
  135. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  136. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  137. package/libs/feature/record/src/lib/feature-record.module.d.ts +4 -11
  138. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  139. package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
  140. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  141. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts.map +1 -1
  142. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  143. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts +1 -1
  144. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts.map +1 -1
  145. package/libs/feature/router/src/lib/default/router.module.d.ts +4 -5
  146. package/libs/feature/router/src/lib/default/router.module.d.ts.map +1 -1
  147. package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -1
  148. package/libs/feature/search/src/index.d.ts +0 -1
  149. package/libs/feature/search/src/index.d.ts.map +1 -1
  150. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts +1 -1
  151. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts.map +1 -1
  152. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
  153. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  154. package/libs/feature/search/src/lib/feature-search.module.d.ts +3 -26
  155. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  156. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +1 -1
  157. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
  158. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts +1 -1
  159. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts.map +1 -1
  160. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +1 -1
  161. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -1
  162. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts +1 -1
  163. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts.map +1 -1
  164. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
  165. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  166. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +1 -1
  167. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  168. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts +1 -1
  169. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
  170. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts +1 -1
  171. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts.map +1 -1
  172. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts.map +1 -1
  173. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  174. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  175. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  176. package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +1 -1
  177. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -1
  178. package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -1
  179. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
  180. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -1
  181. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
  182. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  183. package/libs/ui/search/src/index.d.ts +0 -2
  184. package/libs/ui/search/src/index.d.ts.map +1 -1
  185. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts +1 -11
  186. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts.map +1 -1
  187. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts +1 -11
  188. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts.map +1 -1
  189. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts +1 -1
  190. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts.map +1 -1
  191. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts +1 -1
  192. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts.map +1 -1
  193. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts +1 -1
  194. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts.map +1 -1
  195. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts +1 -1
  196. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts.map +1 -1
  197. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts +1 -1
  198. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts.map +1 -1
  199. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts +1 -1
  200. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts.map +1 -1
  201. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts +1 -1
  202. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts.map +1 -1
  203. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts +1 -1
  204. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts.map +1 -1
  205. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts +1 -1
  206. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts.map +1 -1
  207. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts +1 -1
  208. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts.map +1 -1
  209. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +1 -1
  210. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
  211. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts +1 -1
  212. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts.map +1 -1
  213. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts +1 -1
  214. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  215. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts +1 -1
  216. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts.map +1 -1
  217. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
  218. package/libs/util/shared/src/lib/links/link-utils.d.ts +26 -7
  219. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  220. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  221. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  222. package/libs/util/shared/src/lib/utils/scroll.d.ts +12 -0
  223. package/libs/util/shared/src/lib/utils/scroll.d.ts.map +1 -0
  224. package/package.json +3 -3
  225. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  226. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +38 -2
  227. package/src/libs/api/repository/src/lib/gn4/organizations/index.ts +2 -11
  228. package/src/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.ts +10 -0
  229. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.ts +33 -0
  230. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +36 -38
  231. package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +8 -0
  232. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -2
  233. package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -0
  234. package/src/libs/feature/catalog/src/index.ts +0 -1
  235. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +5 -0
  236. package/src/libs/feature/catalog/src/lib/site-title/site-title.component.ts +4 -0
  237. package/src/libs/feature/catalog/src/lib/source-label/source-label.component.ts +3 -0
  238. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +4 -4
  239. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +3 -3
  240. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +8 -1
  241. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.html +22 -0
  242. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
  243. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
  244. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +3 -3
  245. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
  246. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -18
  247. package/src/libs/feature/editor/src/lib/fields.config.ts +51 -45
  248. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +8 -1
  249. package/src/libs/feature/notifications/src/index.ts +0 -1
  250. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -1
  251. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +7 -2
  252. package/src/libs/feature/record/src/lib/feature-record.module.ts +1 -21
  253. package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +5 -2
  254. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +12 -3
  255. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -0
  256. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -2
  257. package/src/libs/feature/router/src/lib/default/container/search-router.container.directive.ts +1 -0
  258. package/src/libs/feature/router/src/lib/default/router.module.ts +0 -3
  259. package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +5 -2
  260. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
  261. package/src/libs/feature/search/src/index.ts +0 -1
  262. package/src/libs/feature/search/src/lib/facets/facets-container/facets-container.component.ts +14 -1
  263. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
  264. package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -61
  265. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +12 -1
  266. package/src/libs/feature/search/src/lib/records-metrics/records-metrics.component.ts +5 -0
  267. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +11 -0
  268. package/src/libs/feature/search/src/lib/results-layout/results-layout.component.ts +5 -0
  269. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +21 -1
  270. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +1 -1
  271. package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +5 -0
  272. package/src/libs/feature/search/src/lib/state/container/search-state.container.directive.ts +1 -0
  273. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +4 -1
  274. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +4 -1
  275. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -1
  276. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +4 -1
  277. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +7 -2
  278. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +8 -1
  279. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +8 -1
  280. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +0 -6
  281. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
  282. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +9 -4
  283. package/src/libs/ui/search/src/index.ts +0 -2
  284. package/src/libs/ui/search/src/lib/facets/facet-block/facet-block.component.ts +12 -11
  285. package/src/libs/ui/search/src/lib/facets/facet-item/facet-item.component.ts +5 -11
  286. package/src/libs/ui/search/src/lib/facets/facet-list/facet-list.component.ts +6 -0
  287. package/src/libs/ui/search/src/lib/record-metric/record-metric.component.ts +4 -0
  288. package/src/libs/ui/search/src/lib/record-preview/record-preview.component.ts +3 -0
  289. package/src/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.ts +4 -0
  290. package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.ts +33 -1
  291. package/src/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.ts +10 -0
  292. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.ts +4 -0
  293. package/src/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.ts +4 -0
  294. package/src/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.ts +4 -0
  295. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.ts +4 -0
  296. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
  297. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +16 -2
  298. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +5 -3
  299. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +4 -0
  300. package/src/libs/ui/search/src/lib/results-list-item/results-list-item.component.ts +3 -0
  301. package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +6 -1
  302. package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
  303. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  304. package/src/libs/util/shared/src/lib/utils/scroll.ts +48 -0
  305. package/translations/de.json +38 -36
  306. package/translations/en.json +41 -38
  307. package/translations/es.json +26 -24
  308. package/translations/fr.json +45 -43
  309. package/translations/it.json +39 -37
  310. package/translations/nl.json +26 -24
  311. package/translations/pt.json +26 -24
  312. package/translations/sk.json +30 -28
  313. package/esm2022/libs/feature/auth/src/index.mjs +0 -2
  314. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +0 -17
  315. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +0 -57
  316. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.mjs +0 -79
  317. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +0 -18
  318. package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +0 -21
  319. package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +0 -23
  320. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +0 -168
  321. package/libs/feature/auth/src/index.d.ts +0 -2
  322. package/libs/feature/auth/src/index.d.ts.map +0 -1
  323. package/libs/feature/auth/src/lib/feature-auth.module.d.ts +0 -8
  324. package/libs/feature/auth/src/lib/feature-auth.module.d.ts.map +0 -1
  325. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +0 -14
  326. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +0 -1
  327. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts +0 -28
  328. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts.map +0 -1
  329. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +0 -7
  330. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +0 -1
  331. package/libs/feature/search/src/lib/facets/facets.module.d.ts +0 -11
  332. package/libs/feature/search/src/lib/facets/facets.module.d.ts.map +0 -1
  333. package/libs/ui/search/src/lib/facets/facets.module.d.ts +0 -13
  334. package/libs/ui/search/src/lib/facets/facets.module.d.ts.map +0 -1
  335. package/libs/ui/search/src/lib/ui-search.module.d.ts +0 -36
  336. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +0 -1
  337. package/src/libs/feature/auth/src/index.ts +0 -1
  338. package/src/libs/feature/auth/src/lib/feature-auth.module.ts +0 -12
  339. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -71
  340. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.html +0 -20
  341. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts +0 -85
  342. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +0 -10
  343. package/src/libs/feature/search/src/lib/facets/facets.module.ts +0 -12
  344. package/src/libs/ui/search/src/lib/facets/facets.module.ts +0 -14
  345. package/src/libs/ui/search/src/lib/ui-search.module.ts +0 -108
  346. /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.css → form-field-topics/form-field-topics.component.css} +0 -0
@@ -1,4 +1,4 @@
1
- import { Injectable } from '@angular/core'
1
+ import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'
2
2
  import {
3
3
  catchError,
4
4
  filter,
@@ -11,7 +11,6 @@ import {
11
11
  MeApiService,
12
12
  RecordsApiService,
13
13
  RegistriesApiService,
14
- SiteApiService,
15
14
  ToolsApiService,
16
15
  UserfeedbackApiService,
17
16
  UsersApiService,
@@ -46,9 +45,14 @@ import {
46
45
  } from 'rxjs'
47
46
  import { TranslateService } from '@ngx-translate/core'
48
47
  import { toLang3 } from '../../../../../../../libs/util/i18n/src'
48
+ import { Gn4SettingsService } from '../settings/gn4-settings.service'
49
49
 
50
50
  const minApiVersion = '4.2.2'
51
51
 
52
+ export const DISABLE_AUTH = new InjectionToken<boolean>('gnDisableAuth', {
53
+ factory: () => false,
54
+ })
55
+
52
56
  @Injectable()
53
57
  export class Gn4PlatformService implements PlatformServiceInterface {
54
58
  private readonly type = 'GeoNetwork'
@@ -66,31 +70,6 @@ export class Gn4PlatformService implements PlatformServiceInterface {
66
70
  }),
67
71
  shareReplay(1)
68
72
  )
69
-
70
- private settings$ = of(true).pipe(
71
- switchMap(() => this.siteApiService.getSiteOrPortalDescription()),
72
- shareReplay(1)
73
- )
74
-
75
- private readonly apiVersion$ = this.settings$.pipe(
76
- map((info) => info['system/platform/version'] as string),
77
- tap((version) => {
78
- if (ltr(version, minApiVersion)) {
79
- throw new Error(
80
- `Gn4 API version is not compatible.\nMinimum: ${minApiVersion}\nYour version: ${version}`
81
- )
82
- }
83
- }),
84
- shareReplay(1)
85
- )
86
-
87
- private readonly allowEditHarvestedMd$ = this.settings$.pipe(
88
- map((info) => {
89
- return info['system/harvester/enableEditing'] as boolean
90
- }),
91
- shareReplay(1)
92
- )
93
-
94
73
  /**
95
74
  * A map of already loaded thesauri (groups of keywords); the key is a URI
96
75
  * @private
@@ -102,7 +81,6 @@ export class Gn4PlatformService implements PlatformServiceInterface {
102
81
  }
103
82
 
104
83
  constructor(
105
- private siteApiService: SiteApiService,
106
84
  private meApi: MeApiService,
107
85
  private usersApi: UsersApiService,
108
86
  private mapper: Gn4PlatformMapper,
@@ -111,12 +89,16 @@ export class Gn4PlatformService implements PlatformServiceInterface {
111
89
  private translateService: TranslateService,
112
90
  private userfeedbackApiService: UserfeedbackApiService,
113
91
  private httpClient: HttpClient,
114
- private recordsApiService: RecordsApiService
92
+ private recordsApiService: RecordsApiService,
93
+ private settingsService: Gn4SettingsService,
94
+ @Inject(DISABLE_AUTH) @Optional() private disableAuth: boolean
115
95
  ) {
116
- this.me$ = this.meApi.getMe().pipe(
117
- switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
118
- shareReplay({ bufferSize: 1, refCount: true })
119
- )
96
+ this.me$ = this.disableAuth
97
+ ? of(null)
98
+ : this.meApi.getMe().pipe(
99
+ switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
100
+ shareReplay({ bufferSize: 1, refCount: true })
101
+ )
120
102
 
121
103
  this.isUserAnonymous$ = this.me$.pipe(
122
104
  map((user) => !user || !('id' in user))
@@ -128,16 +110,28 @@ export class Gn4PlatformService implements PlatformServiceInterface {
128
110
  )
129
111
  }
130
112
 
113
+ getFeedbacksAllowed(): Observable<boolean> {
114
+ return this.settingsService.allowFeedbacks$
115
+ }
116
+
117
+ getAllowEditHarvestedMd(): Observable<boolean> {
118
+ return this.settingsService.allowEditHarvested$
119
+ }
120
+
131
121
  getType(): string {
132
122
  return this.type
133
123
  }
134
124
 
135
125
  getApiVersion(): Observable<string> {
136
- return this.apiVersion$
137
- }
138
-
139
- getAllowEditHarvestedMd(): Observable<boolean> {
140
- return this.allowEditHarvestedMd$
126
+ return this.settingsService.apiVersion$.pipe(
127
+ tap((version) => {
128
+ if (ltr(version, minApiVersion)) {
129
+ throw new Error(
130
+ `Gn4 API version is not compatible.\nMinimum: ${minApiVersion}\nYour version: ${version}`
131
+ )
132
+ }
133
+ })
134
+ )
141
135
  }
142
136
 
143
137
  getMe(): Observable<UserModel> {
@@ -444,4 +438,8 @@ export class Gn4PlatformService implements PlatformServiceInterface {
444
438
  })
445
439
  )
446
440
  }
441
+
442
+ supportsAuthentication() {
443
+ return !this.disableAuth
444
+ }
447
445
  }
@@ -14,6 +14,14 @@ export class Gn4SettingsService {
14
14
  public allowEditHarvested$: Observable<boolean> =
15
15
  this.getSettingsSetValueByKey('system/harvester/enableEditing')
16
16
 
17
+ public allowFeedbacks$: Observable<boolean> = this.getSettingsSetValueByKey(
18
+ 'system/userFeedback/enable'
19
+ )
20
+
21
+ public apiVersion$: Observable<string> = this.getSettingsSetValueByKey(
22
+ 'system/platform/version'
23
+ )
24
+
17
25
  constructor(private siteApiService: SiteApiService) {}
18
26
 
19
27
  private getSettingsSetValueByKey(key: string) {
@@ -108,7 +108,7 @@ export interface Keyword {
108
108
  translations?: KeywordTranslations
109
109
  }
110
110
 
111
- export interface INSPIRE_theme {
111
+ export interface INSPIRE_topic {
112
112
  value: string
113
113
  label: string
114
114
  }
@@ -274,7 +274,7 @@ export interface ServiceRecord extends BaseRecord {
274
274
  export interface ReuseRecord extends BaseRecord {
275
275
  kind: 'reuse'
276
276
  lineage: string // Explanation of the origin of this record (e.g: how, why)"
277
- onlineResources: Array<OnlineLinkResource>
277
+ onlineResources: Array<DatasetOnlineResource>
278
278
  reuseType: ReuseType
279
279
  spatialExtents: Array<DatasetSpatialExtent>
280
280
  temporalExtents: Array<DatasetTemporalExtent>
@@ -24,6 +24,7 @@ export abstract class PlatformServiceInterface {
24
24
  abstract getType(): string
25
25
  abstract getApiVersion(): Observable<string>
26
26
 
27
+ abstract supportsAuthentication(): boolean
27
28
  abstract getMe(): Observable<UserModel>
28
29
  abstract isAnonymous(): Observable<boolean>
29
30
  abstract getUsers(): Observable<UserModel[]>
@@ -57,4 +58,5 @@ export abstract class PlatformServiceInterface {
57
58
  removeDuplicate?: boolean
58
59
  ): Observable<UploadEvent>
59
60
  abstract getFileContent(url: URL): Observable<any>
61
+ abstract getFeedbacksAllowed(): Observable<boolean>
60
62
  }
@@ -1,4 +1,3 @@
1
- export * from './lib/feature-catalog.module'
2
1
  export * from './lib/organization-url.token'
3
2
  export * from './lib/sources/sources.service'
4
3
  export * from './lib/sources/sources.model'
@@ -4,3 +4,8 @@ import { InjectionToken } from '@angular/core'
4
4
  export const ORGANIZATION_PAGE_URL_TOKEN = new InjectionToken<string>(
5
5
  'organization-page-url-token'
6
6
  )
7
+
8
+ // expects the replacement key ${name}
9
+ export const ORGANIZATION_URL_TOKEN = new InjectionToken<string>(
10
+ 'organization-url-token'
11
+ )
@@ -1,8 +1,10 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import { ChangeDetectionStrategy, Component } from '@angular/core'
2
3
  import {
3
4
  SettingsListResponseApiModel,
4
5
  SiteApiService,
5
6
  } from '../../../../../../libs/data-access/gn4/src'
7
+ import { CatalogTitleComponent } from '../../../../../../libs/ui/catalog/src'
6
8
  import { Observable } from 'rxjs'
7
9
  import { shareReplay } from 'rxjs/operators'
8
10
 
@@ -11,6 +13,8 @@ import { shareReplay } from 'rxjs/operators'
11
13
  templateUrl: './site-title.component.html',
12
14
  styleUrls: ['./site-title.component.css'],
13
15
  changeDetection: ChangeDetectionStrategy.OnPush,
16
+ standalone: true,
17
+ imports: [CommonModule, CatalogTitleComponent],
14
18
  })
15
19
  export class SiteTitleComponent {
16
20
  info$: Observable<SettingsListResponseApiModel>
@@ -1,12 +1,15 @@
1
1
  import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
2
2
  import { Observable } from 'rxjs'
3
3
  import { SourcesService } from '../sources/sources.service'
4
+ import { CommonModule } from '@angular/common'
4
5
 
5
6
  @Component({
6
7
  selector: 'gn-ui-source-label',
7
8
  templateUrl: './source-label.component.html',
8
9
  styleUrls: ['./source-label.component.css'],
9
10
  changeDetection: ChangeDetectionStrategy.OnPush,
11
+ standalone: true,
12
+ imports: [CommonModule],
10
13
  })
11
14
  export class SourceLabelComponent {
12
15
  sourceLabel$: Observable<string>
@@ -211,21 +211,21 @@ export class DataService {
211
211
 
212
212
  async getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo> {
213
213
  const endpoint = new OgcApiEndpoint(url)
214
- return await endpoint.allCollections
214
+ return await endpoint.featureCollections
215
215
  .then((collections) => {
216
- return endpoint.getCollectionInfo(collections[0].name)
216
+ return endpoint.getCollectionInfo(collections[0])
217
217
  })
218
218
  .catch((error) => {
219
219
  throw new Error(`ogc.unreachable.unknown`)
220
220
  })
221
221
  }
222
222
 
223
- async getItemsFromOgcApi(url: string): Promise<OgcApiRecord> {
223
+ async getItemsFromOgcApi(url: string): Promise<OgcApiRecord[]> {
224
224
  const endpoint = new OgcApiEndpoint(url)
225
225
  return await endpoint.featureCollections
226
226
  .then((collections) => {
227
227
  return collections.length
228
- ? endpoint.getCollectionItem(collections[0], '1')
228
+ ? endpoint.getCollectionItems(collections[0])
229
229
  : null
230
230
  })
231
231
  .catch(() => {
@@ -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
+ }
@@ -110,10 +110,10 @@
110
110
  ></gn-ui-form-field-keywords>
111
111
  </ng-container>
112
112
  <ng-container *ngSwitchCase="'topics'">
113
- <gn-ui-form-field-inspire-theme
114
- [value]="valueAsInspireTheme"
113
+ <gn-ui-form-field-topics
114
+ [value]="valueAsTopics"
115
115
  (valueChange)="valueChange.emit($event)"
116
- ></gn-ui-form-field-inspire-theme>
116
+ ></gn-ui-form-field-topics>
117
117
  </ng-container>
118
118
  <ng-container *ngSwitchCase="'licenses'">
119
119
  <gn-ui-form-field-license
@@ -45,7 +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 { FormFieldInspireThemeComponent } from './form-field-inspire-field/form-field-inspire-theme.component'
48
+ import { FormFieldTopicsComponent } from './form-field-topics/form-field-topics.component'
49
49
 
50
50
  @Component({
51
51
  selector: 'gn-ui-form-field',
@@ -74,7 +74,7 @@ import { FormFieldInspireThemeComponent } from './form-field-inspire-field/form-
74
74
  FormFieldConstraintsComponent,
75
75
  FormFieldConstraintsShortcutsComponent,
76
76
  FormFieldSpatialToggleComponent,
77
- FormFieldInspireThemeComponent,
77
+ FormFieldTopicsComponent,
78
78
  TextFieldModule,
79
79
  ],
80
80
  })
@@ -130,7 +130,7 @@ export class FormFieldComponent {
130
130
  get valueAsKeywords() {
131
131
  return this.value as Array<Keyword>
132
132
  }
133
- get valueAsInspireTheme() {
133
+ get valueAsTopics() {
134
134
  return this.value as Array<string>
135
135
  }
136
136
  get valueAsConstraints() {
@@ -10,4 +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-inspire-field/form-field-inspire-theme.component'
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 {}
@@ -5,7 +5,7 @@ import {
5
5
  EditorSection,
6
6
  } from './models/editor-config.model'
7
7
  import {
8
- INSPIRE_theme,
8
+ INSPIRE_topic,
9
9
  Keyword,
10
10
  } from '../../../../../libs/common/domain/src/lib/model/record'
11
11
 
@@ -243,9 +243,9 @@ export const CLASSIFICATION_SECTION: EditorSection = {
243
243
  fields: [RECORD_KEYWORDS_FIELD],
244
244
  }
245
245
 
246
- export const INSPIRE_SECTION: EditorSection = {
247
- labelKey: marker('editor.record.form.section.inspire.label'),
248
- descriptionKey: marker('editor.record.form.section.inspire.description'),
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
249
  hidden: false,
250
250
  fields: [RECORD_TOPICS_FIELD],
251
251
  }
@@ -289,7 +289,7 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
289
289
  sections: [
290
290
  TITLE_SECTION,
291
291
  CLASSIFICATION_SECTION,
292
- INSPIRE_SECTION,
292
+ TOPICS_SECTION,
293
293
  ABOUT_SECTION,
294
294
  GEOGRAPHICAL_COVERAGE_SECTION,
295
295
  ],
@@ -359,69 +359,75 @@ export const SPATIAL_SCOPES: Keyword[] = [
359
359
  ]
360
360
 
361
361
  /************************************************************
362
- *************** INSPIRE THEMES **************
362
+ *************** INSPIRE TOPICS **************
363
363
  ************************************************************
364
364
  */
365
365
 
366
- export const INSPIRE_THEMES: INSPIRE_theme[] = [
367
- { value: 'biota', label: 'editor.record.form.inspire.biota' },
368
- { value: 'boundaries', label: 'editor.record.form.inspire.boundaries' },
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
+ },
369
372
  {
370
373
  value: 'climatologyMeteorologyAtmosphere',
371
- label: 'editor.record.form.inspire.climatology',
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',
372
381
  },
373
- { value: 'economy', label: 'editor.record.form.inspire.economy' },
374
- { value: 'elevation', label: 'editor.record.form.inspire.elevation' },
375
- { value: 'environment', label: 'editor.record.form.inspire.environnement' },
376
- { value: 'farming', label: 'editor.record.form.inspire.farming' },
382
+ { value: 'farming', label: 'editor.record.form.topics.inspire.farming' },
377
383
  {
378
384
  value: 'geoscientific information',
379
- label: 'editor.record.form.inspire.geoscientific',
385
+ label: 'editor.record.form.topics.inspire.geoscientific',
380
386
  },
381
- { value: 'health', label: 'editor.record.form.inspire.health' },
387
+ { value: 'health', label: 'editor.record.form.topics.inspire.health' },
382
388
  {
383
389
  value: 'imageryBaseMapsEarthCover',
384
- label: 'editor.record.form.inspire.imagery',
390
+ label: 'editor.record.form.topics.inspire.imagery',
385
391
  },
392
+ { value: 'inlandWaters', label: 'editor.record.form.topics.inspire.waters' },
386
393
  {
387
394
  value: 'intelligenceMilitary',
388
- label: 'editor.record.form.inspire.intelligence',
395
+ label: 'editor.record.form.topics.inspire.intelligence',
389
396
  },
390
- { value: 'Location', label: 'editor.record.form.inspire.location' },
391
- { value: 'Oceans', label: 'editor.record.form.inspire.oceans' },
397
+ { value: 'Location', label: 'editor.record.form.topics.inspire.location' },
398
+ { value: 'Oceans', label: 'editor.record.form.topics.inspire.oceans' },
392
399
  {
393
400
  value: 'planningCadastre',
394
- label: 'editor.record.form.inspire.planning',
401
+ label: 'editor.record.form.topics.inspire.planning',
395
402
  },
396
- { value: 'Society', label: 'editor.record.form.inspire.society' },
397
- { value: 'Structure', label: 'editor.record.form.inspire.structure' },
403
+ { value: 'Society', label: 'editor.record.form.topics.inspire.society' },
404
+ { value: 'Structure', label: 'editor.record.form.topics.inspire.structure' },
398
405
  {
399
406
  value: 'Transportation',
400
- label: 'editor.record.form.inspire.transportation',
407
+ label: 'editor.record.form.topics.inspire.transportation',
401
408
  },
402
409
  {
403
410
  value: 'utilitiesCommunication',
404
- label: 'editor.record.form.inspire.utilities',
411
+ label: 'editor.record.form.topics.inspire.utilities',
405
412
  },
406
- { value: 'inlandWaters', label: 'editor.record.form.inspire.waters' },
407
413
  ]
408
414
 
409
- marker('editor.record.form.inspire.biota')
410
- marker('editor.record.form.inspire.boundaries')
411
- marker('editor.record.form.inspire.climatology')
412
- marker('editor.record.form.inspire.economy')
413
- marker('editor.record.form.inspire.elevation')
414
- marker('editor.record.form.inspire.environnement')
415
- marker('editor.record.form.inspire.farming')
416
- marker('editor.record.form.inspire.geoscientific')
417
- marker('editor.record.form.inspire.health')
418
- marker('editor.record.form.inspire.imagery')
419
- marker('editor.record.form.inspire.intelligence')
420
- marker('editor.record.form.inspire.location')
421
- marker('editor.record.form.inspire.oceans')
422
- marker('editor.record.form.inspire.planning')
423
- marker('editor.record.form.inspire.society')
424
- marker('editor.record.form.inspire.structure')
425
- marker('editor.record.form.inspire.transportation')
426
- marker('editor.record.form.inspire.utilities')
427
- marker('editor.record.form.inspire.waters')
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,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'