geonetwork-ui 2.6.0-dev.0716b5712 → 2.6.0-dev.0739ca76d

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 (225) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  5. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  6. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  7. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  8. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -1
  9. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +5 -1
  10. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  11. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  12. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  13. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  14. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  15. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  16. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +6 -1
  17. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  18. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  19. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  20. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  21. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  22. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  23. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  24. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  25. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -15
  26. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  27. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  28. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  29. package/esm2022/libs/ui/elements/src/index.mjs +3 -1
  30. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +163 -0
  31. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  32. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  33. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  34. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
  35. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
  36. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  37. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  38. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  39. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  40. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  41. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +79 -0
  42. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  43. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  44. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  45. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  46. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  47. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  48. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  49. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
  50. package/esm2022/translations/de.json +32 -4
  51. package/esm2022/translations/en.json +32 -4
  52. package/esm2022/translations/es.json +32 -4
  53. package/esm2022/translations/fr.json +34 -6
  54. package/esm2022/translations/it.json +32 -4
  55. package/esm2022/translations/nl.json +32 -4
  56. package/esm2022/translations/pt.json +32 -4
  57. package/fesm2022/geonetwork-ui.mjs +1160 -481
  58. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  59. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  60. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  61. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  62. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  63. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -2
  64. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  65. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  66. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +1 -1
  67. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  68. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  69. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  70. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  71. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  72. package/libs/feature/record/src/index.d.ts +0 -1
  73. package/libs/feature/record/src/index.d.ts.map +1 -1
  74. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  75. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  76. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  77. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  78. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  79. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  80. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  81. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  82. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  83. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  84. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  85. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  86. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  87. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  88. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  89. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  90. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  91. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  92. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  93. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  94. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  95. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  96. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  97. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  98. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  99. package/libs/ui/elements/src/index.d.ts +2 -0
  100. package/libs/ui/elements/src/index.d.ts.map +1 -1
  101. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +43 -0
  102. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  103. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  104. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  105. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  106. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  107. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -1
  108. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  109. package/libs/ui/inputs/src/index.d.ts +0 -1
  110. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  111. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  112. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  113. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  114. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  115. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  116. package/libs/ui/map/src/index.d.ts +1 -0
  117. package/libs/ui/map/src/index.d.ts.map +1 -1
  118. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  119. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  120. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  121. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  122. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  123. package/libs/util/shared/src/index.d.ts +1 -0
  124. package/libs/util/shared/src/index.d.ts.map +1 -1
  125. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  126. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  127. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  128. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  129. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  130. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  131. package/package.json +1 -1
  132. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  133. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  134. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  135. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  136. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  137. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
  138. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  139. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  140. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  141. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  142. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +5 -2
  143. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  144. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  145. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  146. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
  147. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
  148. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  149. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  150. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  151. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  152. package/src/libs/feature/record/src/index.ts +0 -1
  153. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  154. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  155. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -0
  156. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  157. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  158. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  159. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  160. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  161. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  162. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  163. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  164. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  165. package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -8
  166. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  167. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  168. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  169. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  170. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  171. package/src/libs/ui/elements/src/index.ts +2 -0
  172. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
  173. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
  174. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +1 -1
  175. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  176. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +13 -4
  177. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  178. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +4 -2
  179. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  180. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  181. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  182. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
  183. package/src/libs/ui/inputs/src/index.ts +0 -1
  184. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +5 -5
  185. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  186. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  187. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  188. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  189. package/src/libs/ui/map/src/index.ts +1 -0
  190. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  191. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  192. package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +7 -8
  193. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  194. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  195. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -2
  196. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  197. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  198. package/src/libs/util/shared/src/index.ts +1 -0
  199. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  200. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  201. package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
  202. package/tailwind.base.css +18 -13
  203. package/translations/de.json +32 -4
  204. package/translations/en.json +32 -4
  205. package/translations/es.json +32 -4
  206. package/translations/fr.json +34 -6
  207. package/translations/it.json +32 -4
  208. package/translations/nl.json +32 -4
  209. package/translations/pt.json +32 -4
  210. package/translations/sk.json +32 -4
  211. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  212. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  213. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  214. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  215. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
  216. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  217. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  218. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  219. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  220. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  221. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  222. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  223. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  224. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  225. /package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css → ui/elements/src/lib/internal-link-card/internal-link-card.component.css} +0 -0
@@ -26,8 +26,6 @@ import {
26
26
  SpinningLoaderComponent,
27
27
  UiWidgetsModule,
28
28
  } from '../../../../../libs/ui/widgets/src'
29
- import { RecordsRepositoryInterface } from '../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
30
- import { Gn4Repository } from '../../../../../libs/api/repository/src'
31
29
  import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.component'
32
30
 
33
31
  @NgModule({
@@ -72,11 +70,5 @@ import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.c
72
70
  SearchStateContainerDirective,
73
71
  FilterDropdownComponent,
74
72
  ],
75
- providers: [
76
- {
77
- provide: RecordsRepositoryInterface,
78
- useClass: Gn4Repository,
79
- },
80
- ],
81
73
  })
82
74
  export class FeatureSearchModule {}
@@ -1,4 +1,13 @@
1
1
  import { InjectionToken } from '@angular/core'
2
2
 
3
3
  // expects the replacement key ${uuid}
4
- export const RECORD_URL_TOKEN = new InjectionToken<string>('record-url-token')
4
+ export const RECORD_DATASET_URL_TOKEN = new InjectionToken<string>(
5
+ 'record-dataset-url-token'
6
+ )
7
+ export const RECORD_SERVICE_URL_TOKEN = new InjectionToken<string>(
8
+ 'record-service-url-token'
9
+ )
10
+
11
+ export const RECORD_REUSE_URL_TOKEN = new InjectionToken<string>(
12
+ 'record-reuse-url-token'
13
+ )
@@ -0,0 +1,6 @@
1
+ :host {
2
+ --gn-ui-button-height: 24px;
3
+ --gn-ui-button-width: 24px;
4
+ --gn-ui-button-color: var(--color-secondary);
5
+ --gn-ui-button-border-width: 0px;
6
+ }
@@ -16,6 +16,7 @@
16
16
  type="secondary"
17
17
  (buttonClick)="onShowMore()"
18
18
  extraClass="m-auto !p-[22px]"
19
+ [style.--gn-ui-button-width]="!auto"
19
20
  >
20
21
  <span class="uppercase font-medium tracking-widest" translate
21
22
  >results.showMore</span
@@ -17,7 +17,11 @@ import {
17
17
  ResultsLayoutConfigItem,
18
18
  ResultsLayoutConfigModel,
19
19
  } from '../../../../../../libs/ui/search/src'
20
- import { RECORD_URL_TOKEN } from '../record-url.token'
20
+ import {
21
+ RECORD_DATASET_URL_TOKEN,
22
+ RECORD_SERVICE_URL_TOKEN,
23
+ RECORD_REUSE_URL_TOKEN,
24
+ } from '../record-url.token'
21
25
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
22
26
 
23
27
  export type ResultsListShowMoreStrategy = 'auto' | 'button' | 'none'
@@ -49,8 +53,12 @@ export class ResultsListContainerComponent implements OnInit {
49
53
  @Inject(RESULTS_LAYOUT_CONFIG)
50
54
  private resultsLayoutConfig: ResultsLayoutConfigModel,
51
55
  @Optional()
52
- @Inject(RECORD_URL_TOKEN)
53
- private recordUrlTemplate: string
56
+ @Inject(RECORD_DATASET_URL_TOKEN)
57
+ private recordDatasetUrlTemplate: string,
58
+ @Inject(RECORD_SERVICE_URL_TOKEN)
59
+ private recordServiceUrlTemplate: string,
60
+ @Inject(RECORD_REUSE_URL_TOKEN)
61
+ private recordReuseUrlTemplate: string
54
62
  ) {}
55
63
 
56
64
  ngOnInit(): void {
@@ -103,7 +111,18 @@ export class ResultsListContainerComponent implements OnInit {
103
111
  }
104
112
 
105
113
  getRecordUrl(metadata: CatalogRecord) {
106
- if (!this.recordUrlTemplate) return null
107
- return this.recordUrlTemplate.replace('${uuid}', metadata.uniqueIdentifier)
114
+ const tokenMap = {
115
+ dataset: this.recordDatasetUrlTemplate,
116
+ service: this.recordServiceUrlTemplate,
117
+ reuse: this.recordReuseUrlTemplate,
118
+ }
119
+ if (
120
+ !this.recordDatasetUrlTemplate &&
121
+ !this.recordServiceUrlTemplate &&
122
+ !this.recordReuseUrlTemplate
123
+ )
124
+ return null
125
+ const urlKind = tokenMap[metadata.kind]
126
+ return urlKind.replace('${uuid}', metadata.uniqueIdentifier)
108
127
  }
109
128
  }
@@ -5,6 +5,6 @@
5
5
  [selected]="currentLang"
6
6
  ariaName="languages"
7
7
  [showTitle]="false"
8
- extraBtnClass="bg-transparent flex justify-items-center !pl-2 !py-1"
8
+ extraBtnClass="bg-transparent flex justify-items-center !pl-2 !py-1 rounded-lg"
9
9
  >
10
10
  </gn-ui-dropdown-selector>
@@ -23,3 +23,5 @@ export * from './lib/ui-elements.module'
23
23
  export * from './lib/user-feedback-item/user-feedback-item.component'
24
24
  export * from './lib/user-preview/user-preview.component'
25
25
  export * from './lib/application-banner/application-banner.component'
26
+ export * from './lib/internal-link-card/internal-link-card.component'
27
+ export * from './lib/service-capabilities/service-capabilities.component'
@@ -0,0 +1,156 @@
1
+ <div
2
+ class="rounded-lg group card-shadow cursor-pointer overflow-hidden hover:bg-gray-50"
3
+ [ngClass]="cardClass"
4
+ >
5
+ <div class="flex flex-row justify-between w-full">
6
+ <div
7
+ *ngIf="shouldShowThumbnail"
8
+ [ngClass]="thumbnailContainerClass"
9
+ class="mr-4 flex flex-col"
10
+ >
11
+ <gn-ui-thumbnail
12
+ class="w-full h-full object-cover"
13
+ [thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
14
+ [fit]="'cover'"
15
+ ></gn-ui-thumbnail>
16
+ </div>
17
+ <div
18
+ class="flex flex-col flex-1 relative"
19
+ [ngClass]="{
20
+ 'justify-between': record.ownerOrganization?.name && size !== 'XS',
21
+ }"
22
+ >
23
+ <div class="flex items-center space-x-2">
24
+ <span
25
+ *ngIf="getKindInfo().text"
26
+ class="badge-btn text-white text-xs px-2 py-0.5 font-bold shrink-0 bg-primary leading-tight flex items-center justify-evenly h-6 min-h-6"
27
+ >
28
+ <ng-icon
29
+ class="text-[0.9em] text-white mr-1"
30
+ [name]="getKindInfo().icon"
31
+ ></ng-icon>
32
+ <span class="font-medium text-white text-xs" translate>
33
+ {{ getKindInfo().text }}
34
+ </span>
35
+ </span>
36
+ <span
37
+ *ngIf="isGeodata"
38
+ class="badge-btn text-black text-xs px-2 py-0.5 font-bold shrink-0 bg-primary-white leading-tight flex items-center justify-evenly h-6 min-h-6"
39
+ [ngClass]="size === 'L' ? 'w-[164px]' : 'w-8'"
40
+ >
41
+ <ng-icon
42
+ class="text-[0.9em] text-primary-darkest"
43
+ name="matLocationSearchingOutline"
44
+ ></ng-icon>
45
+ <ng-container *ngIf="size === 'L'">
46
+ <span
47
+ class="font-medium text-primary-darkest text-xs ml-1"
48
+ translate
49
+ >
50
+ record.metadata.type
51
+ </span>
52
+ </ng-container>
53
+ </span>
54
+ <div class="flex items-center">
55
+ <gn-ui-metadata-quality
56
+ [smaller]="true"
57
+ [metadata]="record"
58
+ [metadataQualityDisplay]="metadataQualityDisplay"
59
+ ></gn-ui-metadata-quality>
60
+ </div>
61
+ <div class="absolute top-0 right-0 items-center">
62
+ <ng-container
63
+ *ngIf="size !== 'XS'"
64
+ [ngTemplateOutlet]="favoriteTemplate"
65
+ [ngTemplateOutletContext]="{ $implicit: record }"
66
+ ></ng-container>
67
+ </div>
68
+ </div>
69
+ <div
70
+ class="font-medium text-title group-hover:text-primary overflow-hidden break-words"
71
+ [ngClass]="getTitleClass()"
72
+ >
73
+ {{ record.title }}
74
+ </div>
75
+ <div
76
+ *ngIf="size === 'L'"
77
+ class="mt-1 mb-2 font-normal text-xs text-gray-900 line-clamp-2 overflow-hidden"
78
+ >
79
+ <gn-ui-markdown-parser
80
+ [textContent]="abstract"
81
+ [whitoutStyles]="true"
82
+ ></gn-ui-markdown-parser>
83
+ </div>
84
+ <div
85
+ *ngIf="size !== 'XS' && record.ownerOrganization?.name"
86
+ class="flex items-center justify-evenly bg-gray-50 rounded-lg h-[53px] px-2"
87
+ >
88
+ <div class="flex items-center flex-1 min-w-0">
89
+ <div
90
+ class="w-[45px] h-[45px] rounded-lg overflow-hidden shrink-0 mr-3"
91
+ >
92
+ <gn-ui-thumbnail
93
+ [thumbnailUrl]="
94
+ record.ownerOrganization?.logoUrl?.toString() || ''
95
+ "
96
+ [fit]="'contain'"
97
+ class="w-full h-full rounded-lg"
98
+ ></gn-ui-thumbnail>
99
+ </div>
100
+ <div *ngIf="organization?.name" class="flex-1 w-0 overflow-hidden">
101
+ <div
102
+ class="text-xs text-black font-normal leading-tight truncate"
103
+ translate
104
+ >
105
+ record.card.metadata.contact
106
+ </div>
107
+ <div class="text-xl text-primary-black font-medium truncate">
108
+ {{ organization.name }}
109
+ </div>
110
+ </div>
111
+ </div>
112
+ <div *ngIf="size === 'L'" class="ml-2 flex space-x-2">
113
+ <div *ngIf="organization?.website" class="flex">
114
+ <button
115
+ [title]="organization.website"
116
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
117
+ (click)="openExternalUrl($event, organization.website)"
118
+ >
119
+ <ng-icon name="iconoirInternet"></ng-icon>
120
+ </button>
121
+ </div>
122
+ <div *ngIf="contacts[0]?.email" class="flex">
123
+ <button
124
+ [title]="contacts[0].email"
125
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
126
+ data-cy="contact-email"
127
+ (click)="openMailto($event, contacts[0].email)"
128
+ >
129
+ <ng-icon name="matEmailOutline"></ng-icon>
130
+ </button>
131
+ </div>
132
+ <div *ngIf="contacts[0]?.phone" class="flex">
133
+ <button
134
+ [title]="'Copy to clipboard'"
135
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
136
+ data-cy="contact-phone"
137
+ (click)="copyToClipboard($event, contacts[0].phone)"
138
+ >
139
+ <ng-icon name="matPhoneOutline"></ng-icon>
140
+ </button>
141
+ </div>
142
+ <div *ngIf="contacts[0]?.address" class="flex">
143
+ <button
144
+ [title]="'Copy to clipboard'"
145
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
146
+ data-cy="contact-phone"
147
+ (click)="copyToClipboard($event, contacts[0].address)"
148
+ >
149
+ <ng-icon name="matLocationOnOutline"></ng-icon>
150
+ </button>
151
+ </div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ </div>
@@ -0,0 +1,190 @@
1
+ import {
2
+ Component,
3
+ Input,
4
+ TemplateRef,
5
+ OnInit,
6
+ Output,
7
+ EventEmitter,
8
+ ElementRef,
9
+ } from '@angular/core'
10
+ import {
11
+ CatalogRecord,
12
+ Organization,
13
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
14
+ import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'
15
+ import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
16
+ import { MetadataQualityComponent } from '../metadata-quality/metadata-quality.component'
17
+ import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
18
+ import {
19
+ propagateToDocumentOnly,
20
+ removeWhitespace,
21
+ stripHtml,
22
+ } from '../../../../../../libs/util/shared/src'
23
+ import {
24
+ NgIconComponent,
25
+ provideIcons,
26
+ provideNgIconsConfig,
27
+ } from '@ng-icons/core'
28
+ import {
29
+ matLocationSearchingOutline,
30
+ matEmailOutline,
31
+ matPhoneOutline,
32
+ matLocationOnOutline,
33
+ } from '@ng-icons/material-icons/outline'
34
+ import { matCode } from '@ng-icons/material-icons/baseline'
35
+ import { iconoirDatabase, iconoirMap, iconoirInternet } from '@ng-icons/iconoir'
36
+ import { TranslateModule } from '@ngx-translate/core'
37
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
38
+ import { fromEvent, Subscription } from 'rxjs'
39
+
40
+ marker('record.kind.data')
41
+ marker('record.kind.reuse')
42
+ marker('record.kind.service')
43
+
44
+ type CardSize = 'L' | 'M' | 'S' | 'XS'
45
+
46
+ @Component({
47
+ selector: 'gn-ui-internal-link-card',
48
+ standalone: true,
49
+ imports: [
50
+ NgClass,
51
+ NgIf,
52
+ ThumbnailComponent,
53
+ MetadataQualityComponent,
54
+ NgTemplateOutlet,
55
+ NgIconComponent,
56
+ TranslateModule,
57
+ MarkdownParserComponent,
58
+ ],
59
+ providers: [
60
+ provideIcons({
61
+ matLocationSearchingOutline,
62
+ matCode,
63
+ iconoirDatabase,
64
+ iconoirMap,
65
+ iconoirInternet,
66
+ matEmailOutline,
67
+ matPhoneOutline,
68
+ matLocationOnOutline,
69
+ }),
70
+ provideNgIconsConfig({
71
+ size: '1.2em',
72
+ }),
73
+ ],
74
+ templateUrl: './internal-link-card.component.html',
75
+ styleUrls: ['./internal-link-card.component.css'],
76
+ })
77
+ export class InternalLinkCardComponent implements OnInit {
78
+ @Input() record: CatalogRecord
79
+ @Input() metadataQualityDisplay: boolean
80
+ @Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
81
+ @Input() linkHref: string = null
82
+ @Input() isGeodata: boolean
83
+ @Input() set size(value: CardSize) {
84
+ this._size = value
85
+ this.cardClass = this.sizeClassMap[value] || ''
86
+ this.thumbnailContainerClass = this.thumbnailSizeClassMap[value] || 'hidden'
87
+ }
88
+ get size(): CardSize {
89
+ return this._size
90
+ }
91
+ @Output() mdSelect = new EventEmitter<CatalogRecord>()
92
+ subscription = new Subscription()
93
+
94
+ abstract: string
95
+
96
+ cardClass = ''
97
+ thumbnailContainerClass = ''
98
+
99
+ private _size: CardSize = 'M'
100
+
101
+ private readonly sizeClassMap: Record<CardSize, string> = {
102
+ L: 'min-h-[190px] md:w-[992px] py-3 px-3 flex items-start gap-5',
103
+ M: 'min-h-[140px] md:w-[570px] py-3 px-3 flex items-start gap-4',
104
+ S: 'min-h-[220px] md:w-[370px] py-3 px-3 flex gap-4',
105
+ XS: 'min-h-[108px] md:w-[570px] py-3 px-3 flex gap-4',
106
+ }
107
+
108
+ private readonly thumbnailSizeClassMap: Record<CardSize, string> = {
109
+ L: 'w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
110
+ M: 'w-[110px] h-[140px] rounded-lg overflow-hidden shrink-0',
111
+ S: 'hidden',
112
+ XS: 'hidden',
113
+ }
114
+
115
+ private readonly titleClassMap: Record<CardSize, string> = {
116
+ L: 'text-xl line-clamp-2',
117
+ M: 'text-base line-clamp-2',
118
+ S: 'text-base line-clamp-3',
119
+ XS: 'text-base mt-3 line-clamp-2',
120
+ }
121
+
122
+ constructor(protected elementRef: ElementRef) {}
123
+
124
+ ngOnInit(): void {
125
+ this.abstract = removeWhitespace(stripHtml(this.record?.abstract))
126
+ this.subscription.add(
127
+ fromEvent(this.elementRef.nativeElement, 'click').subscribe(
128
+ (event: Event) => {
129
+ event.preventDefault()
130
+ propagateToDocumentOnly(event)
131
+ this.mdSelect.emit(this.record)
132
+ }
133
+ )
134
+ )
135
+ }
136
+
137
+ get organization(): Organization {
138
+ return this.record.ownerOrganization
139
+ }
140
+
141
+ get contacts() {
142
+ return (
143
+ (this.record.kind === 'dataset'
144
+ ? this.record.contactsForResource
145
+ : this.record.contacts) || []
146
+ )
147
+ }
148
+
149
+ getTitleClass() {
150
+ return (
151
+ this.titleClassMap[this._size] +
152
+ ' ' +
153
+ (this.record.ownerOrganization?.name ? '' : 'mt-3') || ''
154
+ )
155
+ }
156
+
157
+ openExternalUrl(event: Event, url: URL): void {
158
+ event.stopPropagation()
159
+ window.open(url, '_blank')
160
+ }
161
+
162
+ openMailto(event: Event, email: string): void {
163
+ event.stopPropagation()
164
+ window.open(`mailto:${email}`, '_blank')
165
+ }
166
+
167
+ copyToClipboard(event: Event, text: string): void {
168
+ event.stopPropagation()
169
+ navigator.clipboard.writeText(text)
170
+ }
171
+
172
+ get shouldShowThumbnail(): boolean {
173
+ return this.size === 'L' || this.size === 'M'
174
+ }
175
+
176
+ getKindInfo(): { text: string; icon: string } {
177
+ if (!this.record?.kind) return { text: '', icon: '' }
178
+
179
+ switch (this.record.kind.toLowerCase()) {
180
+ case 'dataset':
181
+ return { text: 'record.kind.data', icon: 'iconoirDatabase' }
182
+ case 'reuse':
183
+ return { text: 'record.kind.reuse', icon: 'iconoirMap' }
184
+ case 'service':
185
+ return { text: 'record.kind.service', icon: 'matCode' }
186
+ default:
187
+ return { text: '', icon: '' }
188
+ }
189
+ }
190
+ }
@@ -1,4 +1,4 @@
1
- <div class="py-5 px-5 rounded bg-gray-100 text-black mb-6">
1
+ <div class="py-5 px-5 rounded bg-gray-100 text-black">
2
2
  <div class="grid gap-3 overflow-hidden">
3
3
  <div>
4
4
  <p class="text-sm font-medium" translate>record.metadata.contact</p>
@@ -11,3 +11,12 @@
11
11
  :host ::ng-deep gn-ui-copy-text-button button ng-icon {
12
12
  transform: scale(0.8);
13
13
  }
14
+
15
+ :host {
16
+ --gn-ui-badge-background-color: var(--color-primary-white);
17
+ --gn-ui-badge-text-color: var(--color-primary-darkest);
18
+ }
19
+
20
+ :host ::ng-deep gn-ui-badge:hover {
21
+ --gn-ui-badge-text-color: white;
22
+ }
@@ -13,7 +13,7 @@
13
13
  </gn-ui-content-ghost>
14
14
 
15
15
  <p
16
- class="mt-6 mb-3 font-medium text-primary text-sm"
16
+ class="mt-6 mb-3 font-medium text-black text-sm"
17
17
  translate
18
18
  *ngIf="!fieldReady('keywords') || metadata.keywords?.length"
19
19
  >
@@ -96,10 +96,10 @@
96
96
  </gn-ui-expandable-panel>
97
97
  <gn-ui-expandable-panel
98
98
  *ngIf="
99
- metadata.lineage ||
99
+ (metadata.kind === 'dataset' && metadata.lineage) ||
100
100
  metadata.resourceUpdated ||
101
101
  metadata.updateFrequency ||
102
- metadata.status
102
+ (metadata.kind === 'dataset' && metadata.status)
103
103
  "
104
104
  [title]="'record.metadata.details' | translate"
105
105
  >
@@ -225,9 +225,18 @@
225
225
  </div>
226
226
  </div>
227
227
  </gn-ui-expandable-panel>
228
+ <gn-ui-expandable-panel
229
+ *ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
230
+ [title]="'service.metadata.spatialExtent' | translate"
231
+ >
232
+ <gn-ui-spatial-extent
233
+ class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
234
+ [spatialExtents]="metadata.spatialExtents"
235
+ ></gn-ui-spatial-extent>
236
+ </gn-ui-expandable-panel>
228
237
  <gn-ui-expandable-panel
229
238
  *ngIf="metadata.landingPage"
230
- [title]="'record.metadata.technical' | translate"
239
+ [title]="'service.metadata.other' | translate"
231
240
  >
232
241
  <div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
233
242
  <div *ngIf="metadata.recordUpdated">
@@ -6,7 +6,7 @@ import {
6
6
  Output,
7
7
  } from '@angular/core'
8
8
  import {
9
- DatasetRecord,
9
+ CatalogRecord,
10
10
  Keyword,
11
11
  } from '../../../../../../libs/common/domain/src/lib/model/record'
12
12
  import { DateService, getTemporalRangeUnion } from '../../../../../../libs/util/shared/src'
@@ -22,12 +22,17 @@ import {
22
22
  } from '../../../../../../libs/ui/inputs/src'
23
23
  import { ContentGhostComponent } from '../content-ghost/content-ghost.component'
24
24
  import { NgIcon, provideIcons } from '@ng-icons/core'
25
- import { CommonModule } from '@angular/common'
26
25
  import { matOpenInNew } from '@ng-icons/material-icons/baseline'
27
26
  import { matMailOutline } from '@ng-icons/material-icons/outline'
28
27
  import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
29
28
  import { GnUiLinkifyDirective } from './linkify.directive'
30
29
 
30
+ import { CommonModule } from '@angular/common'
31
+ import {
32
+ MapContainerComponent,
33
+ SpatialExtentComponent,
34
+ } from '../../../../../../libs/ui/map/src'
35
+
31
36
  @Component({
32
37
  selector: 'gn-ui-metadata-info',
33
38
  templateUrl: './metadata-info.component.html',
@@ -46,6 +51,8 @@ import { GnUiLinkifyDirective } from './linkify.directive'
46
51
  CopyTextButtonComponent,
47
52
  NgIcon,
48
53
  GnUiLinkifyDirective,
54
+ MapContainerComponent,
55
+ SpatialExtentComponent,
49
56
  ],
50
57
  viewProviders: [
51
58
  provideIcons({
@@ -55,7 +62,7 @@ import { GnUiLinkifyDirective } from './linkify.directive'
55
62
  ],
56
63
  })
57
64
  export class MetadataInfoComponent {
58
- @Input() metadata: Partial<DatasetRecord>
65
+ @Input() metadata: Partial<CatalogRecord>
59
66
  @Input() incomplete: boolean
60
67
  @Output() keyword = new EventEmitter<Keyword>()
61
68
  updatedTimes: number
@@ -122,7 +129,8 @@ export class MetadataInfoComponent {
122
129
  }
123
130
 
124
131
  get temporalExtent(): { start: string; end: string } {
125
- const temporalExtents = this.metadata.temporalExtents
132
+ const temporalExtents =
133
+ this.metadata.kind === 'dataset' ? this.metadata.temporalExtents : []
126
134
  return getTemporalRangeUnion(temporalExtents, this.dateService)
127
135
  }
128
136
 
@@ -1,7 +1,9 @@
1
- <div *ngIf="metadataQualityDisplay" class="mb-6 metadata-quality">
1
+ <div *ngIf="metadataQualityDisplay" class="metadata-quality">
2
2
  <div
3
3
  class="flex items-center"
4
- [class]="smaller ? 'leading-[8px] min-w-[120px]' : 'min-w-[200px]'"
4
+ [class]="
5
+ smaller ? 'leading-[8px] min-w-[120px] m-h-[120px]' : 'min-w-[200px]'
6
+ "
5
7
  >
6
8
  <gn-ui-progress-bar
7
9
  tabindex="0"