geonetwork-ui 2.6.0-dev.7be6567ef → 2.6.0-dev.9d3ad45e2

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 (437) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +9 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  8. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
  9. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  10. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +7 -4
  11. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  12. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  13. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +49 -9
  14. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
  15. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
  16. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +29 -6
  17. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  18. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  20. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  22. package/esm2022/libs/feature/record/src/index.mjs +2 -4
  23. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  24. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  25. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  26. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  27. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  28. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +38 -7
  29. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  30. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  31. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +11 -15
  32. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  33. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  34. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  35. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  36. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  37. package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
  38. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  39. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  40. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  41. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  42. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
  43. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  44. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  45. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  46. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
  47. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
  48. package/esm2022/libs/ui/elements/src/index.mjs +6 -1
  49. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  50. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  51. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  52. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
  53. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  54. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +137 -0
  55. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +68 -0
  56. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  57. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  58. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  59. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  60. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  61. package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +51 -0
  62. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
  63. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
  64. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +28 -4
  65. package/esm2022/libs/ui/inputs/src/index.mjs +3 -2
  66. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  67. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  68. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  69. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  70. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  71. package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
  72. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  73. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  74. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  75. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  76. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  77. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  78. package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
  79. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  80. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  81. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  82. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +107 -0
  83. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  84. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  85. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
  86. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
  87. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  88. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
  89. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  90. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  91. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
  92. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
  93. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  94. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
  95. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  96. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  97. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  98. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  99. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  100. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
  101. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
  102. package/esm2022/translations/de.json +45 -6
  103. package/esm2022/translations/en.json +46 -7
  104. package/esm2022/translations/es.json +45 -6
  105. package/esm2022/translations/fr.json +46 -7
  106. package/esm2022/translations/it.json +44 -5
  107. package/esm2022/translations/nl.json +45 -6
  108. package/esm2022/translations/pt.json +45 -6
  109. package/fesm2022/geonetwork-ui.mjs +2374 -900
  110. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  111. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  112. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  113. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  114. package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
  115. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  116. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  117. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  118. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  119. package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
  120. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  121. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  122. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  123. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -3
  124. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  125. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
  126. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  127. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
  128. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  129. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +6 -3
  130. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  131. package/libs/feature/editor/src/index.d.ts +1 -0
  132. package/libs/feature/editor/src/index.d.ts.map +1 -1
  133. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
  134. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  135. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  136. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  137. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  138. 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
  139. package/libs/feature/record/src/index.d.ts +1 -3
  140. package/libs/feature/record/src/index.d.ts.map +1 -1
  141. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  142. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  143. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  144. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  145. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  146. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  147. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  148. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  149. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  150. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  151. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  152. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  153. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +26 -21
  154. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  155. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  156. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  157. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  158. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  159. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  160. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  161. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  162. package/libs/feature/search/src/index.d.ts +1 -1
  163. package/libs/feature/search/src/index.d.ts.map +1 -1
  164. package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
  165. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  166. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  167. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  168. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  169. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  170. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  171. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  172. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  173. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  174. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  175. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  176. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  177. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
  178. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
  179. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
  180. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
  181. package/libs/ui/elements/src/index.d.ts +5 -0
  182. package/libs/ui/elements/src/index.d.ts.map +1 -1
  183. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  184. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  185. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  186. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  187. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
  188. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
  189. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +39 -0
  190. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  191. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +13 -0
  192. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  193. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  194. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  195. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  196. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  197. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +16 -0
  198. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
  199. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
  200. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  201. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
  202. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  203. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +5 -1
  204. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  205. package/libs/ui/inputs/src/index.d.ts +2 -1
  206. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  207. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  208. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  209. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  210. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  211. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  212. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  213. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
  214. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
  215. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  216. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  217. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  218. package/libs/ui/layout/src/index.d.ts +1 -0
  219. package/libs/ui/layout/src/index.d.ts.map +1 -1
  220. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  221. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  222. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  223. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  224. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
  225. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
  226. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  227. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  228. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +27 -0
  229. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  230. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  231. package/libs/ui/map/src/index.d.ts +1 -0
  232. package/libs/ui/map/src/index.d.ts.map +1 -1
  233. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
  234. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  235. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  236. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  237. package/libs/ui/search/src/index.d.ts +1 -0
  238. package/libs/ui/search/src/index.d.ts.map +1 -1
  239. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  240. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  241. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  242. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  243. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  244. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  245. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  246. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  247. package/libs/util/shared/src/index.d.ts +1 -0
  248. package/libs/util/shared/src/index.d.ts.map +1 -1
  249. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  250. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  251. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  252. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  253. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  254. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  255. package/package.json +2 -2
  256. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  257. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  258. package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
  259. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  260. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  261. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  262. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  263. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  264. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +9 -2
  265. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +4 -3
  266. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  267. package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
  268. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  269. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +9 -3
  270. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  271. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -4
  272. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +36 -26
  273. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
  274. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  275. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +1 -1
  276. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
  277. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +58 -10
  278. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
  279. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
  280. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +31 -1
  281. package/src/libs/feature/editor/src/index.ts +1 -0
  282. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
  283. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
  284. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  285. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  286. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  287. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  288. package/src/libs/feature/record/src/index.ts +1 -3
  289. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
  290. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  291. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  292. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  293. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  294. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  295. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
  296. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +40 -4
  297. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  298. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  299. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +17 -17
  300. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  301. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  302. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  303. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  304. package/src/libs/feature/search/src/index.ts +1 -1
  305. package/src/libs/feature/search/src/lib/constants.ts +1 -0
  306. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  307. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  308. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  309. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  310. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  311. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  312. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  313. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  314. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  315. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
  316. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  317. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  318. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  319. package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
  320. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
  321. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
  322. package/src/libs/ui/elements/src/index.ts +5 -0
  323. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  324. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  325. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  326. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  327. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  328. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
  329. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
  330. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
  331. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  332. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.css +0 -0
  333. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +151 -0
  334. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +162 -0
  335. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  336. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
  337. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
  338. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  339. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  340. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  341. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
  342. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  343. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
  344. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  345. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +3 -2
  346. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +48 -0
  347. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +52 -0
  348. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
  349. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
  350. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  351. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
  352. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
  353. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +12 -1
  354. package/src/libs/ui/inputs/src/index.ts +2 -1
  355. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  356. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  357. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  358. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  359. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  360. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  361. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
  362. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
  363. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
  364. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +7 -8
  365. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  366. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  367. package/src/libs/ui/layout/src/index.ts +1 -0
  368. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  369. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  370. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  371. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  372. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  373. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  374. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
  375. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
  376. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  377. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  378. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  379. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  380. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  381. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +44 -0
  382. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +130 -0
  383. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  384. package/src/libs/ui/map/src/index.ts +1 -0
  385. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
  386. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
  387. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  388. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  389. 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} +8 -8
  390. package/src/libs/ui/search/src/index.ts +1 -0
  391. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
  392. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  393. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
  394. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  395. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
  396. package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
  397. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
  398. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  399. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  400. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  401. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +4 -3
  402. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  403. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  404. package/src/libs/util/shared/src/index.ts +1 -0
  405. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  406. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
  407. package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
  408. package/tailwind.base.config.js +3 -0
  409. package/tailwind.base.css +19 -26
  410. package/translations/de.json +45 -6
  411. package/translations/en.json +46 -7
  412. package/translations/es.json +45 -6
  413. package/translations/fr.json +46 -7
  414. package/translations/it.json +44 -5
  415. package/translations/nl.json +45 -6
  416. package/translations/pt.json +45 -6
  417. package/translations/sk.json +45 -6
  418. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  419. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  420. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  421. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  422. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  423. 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
  424. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  425. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  426. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  427. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  428. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  429. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  430. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  431. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  432. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  433. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  434. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  435. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  436. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  437. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
@@ -0,0 +1,54 @@
1
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
+ import { matLocationSearchingOutline } from '@ng-icons/material-icons/outline'
3
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
4
+ import { CommonModule } from '@angular/common'
5
+ import { TranslateModule } from '@ngx-translate/core'
6
+ import { NgIcon, provideIcons } from '@ng-icons/core'
7
+ import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
8
+
9
+ @Component({
10
+ selector: 'gn-ui-geo-data-badge',
11
+ templateUrl: './geo-data-badge.component.html',
12
+ styleUrls: ['./geo-data-badge.component.css'],
13
+ changeDetection: ChangeDetectionStrategy.OnPush,
14
+ standalone: true,
15
+ imports: [CommonModule, NgIcon, TranslateModule],
16
+ viewProviders: [
17
+ provideIcons({
18
+ matLocationSearchingOutline,
19
+ }),
20
+ ],
21
+ })
22
+ export class GeoDataBadgeComponent {
23
+ @Input() showLabel = true
24
+ @Input() styling = 'default'
25
+ @Input() record: CatalogRecord
26
+
27
+ isGeodata() {
28
+ const links =
29
+ 'onlineResources' in this.record ? this.record.onlineResources : []
30
+ const hasMapApi = links.some((link) =>
31
+ this.linkClassifier.hasUsage(link, LinkUsage.MAP_API)
32
+ )
33
+ const hasGeoData = links.some((link) =>
34
+ this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)
35
+ )
36
+ return hasMapApi || hasGeoData
37
+ }
38
+
39
+ get badgeClasses(): string {
40
+ const baseClasses =
41
+ 'flex shrink-0 items-center badge-btn text-xs px-2 h-6 min-h-6'
42
+
43
+ switch (this.styling) {
44
+ case 'light':
45
+ return `${baseClasses} bg-primary-white text-primary-darkest`
46
+ case 'default':
47
+ return `${baseClasses} bg-primary-darker text-white`
48
+ default:
49
+ return 'flex shrink-0 items-center'
50
+ }
51
+ }
52
+
53
+ constructor(public linkClassifier: LinkClassifierService) {}
54
+ }
@@ -5,7 +5,7 @@
5
5
  <div
6
6
  *ngIf="imageUrl"
7
7
  data-cy="record-thumbnail"
8
- class="shrink-0 bg-gray-100 rounded-lg overflow-hidden border border-gray-300 group-hover:shadow-xl group-hover:border-0 h-full w-full"
8
+ class="shrink-0 rounded-lg overflow-hidden group-hover:shadow-xl group-hover:border-0 h-full w-full"
9
9
  >
10
10
  <gn-ui-thumbnail
11
11
  class="relative h-full w-full"
@@ -0,0 +1,151 @@
1
+ <a [attr.href]="linkHref" [target]="linkTarget">
2
+ <div
3
+ class="group rounded-md bg-white hover:cursor-pointer hover:bg-slate-50 overflow-hidden w-full"
4
+ [ngClass]="cardClass"
5
+ >
6
+ <div
7
+ class="flex flex-row md:gap-0 justify-between w-full"
8
+ [ngClass]="{ 'flex-wrap md:flex-nowrap gap-3': size === 'L' }"
9
+ >
10
+ <div
11
+ *ngIf="shouldShowThumbnail"
12
+ [ngClass]="thumbnailContainerClass"
13
+ class="border mr-4 flex flex-col"
14
+ >
15
+ <gn-ui-thumbnail
16
+ class="w-full h-full object-cover"
17
+ [thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
18
+ [fit]="'cover'"
19
+ ></gn-ui-thumbnail>
20
+ </div>
21
+ <div class="grow flex flex-col gap-3">
22
+ <div class="flex items-center gap-2">
23
+ <div class="grow flex flex-wrap items-center gap-2">
24
+ <gn-ui-kind-badge
25
+ [styling]="'default'"
26
+ [kind]="record?.kind"
27
+ ></gn-ui-kind-badge>
28
+ <gn-ui-geo-data-badge
29
+ [showLabel]="size === 'L'"
30
+ [styling]="'light'"
31
+ [record]="record"
32
+ ></gn-ui-geo-data-badge>
33
+ <gn-ui-metadata-quality
34
+ class="flex items-center"
35
+ [smaller]="true"
36
+ [metadata]="record"
37
+ [metadataQualityDisplay]="metadataQualityDisplay"
38
+ ></gn-ui-metadata-quality>
39
+ </div>
40
+ <div *ngIf="size !== 'XS'" data-cy="recordFav">
41
+ <ng-container
42
+ [ngTemplateOutlet]="favoriteTemplate"
43
+ [ngTemplateOutletContext]="{ $implicit: record }"
44
+ ></ng-container>
45
+ </div>
46
+ </div>
47
+
48
+ <div class="grow flex flex-col gap-2">
49
+ <div
50
+ class="font-medium text-title group-hover:text-primary"
51
+ [title]="record.title"
52
+ >
53
+ <h4
54
+ class="mr-6 overflow-hidden"
55
+ [ngClass]="getTitleClass()"
56
+ data-cy="recordTitle"
57
+ [title]="record.title"
58
+ >
59
+ {{ record.title }}
60
+ </h4>
61
+ </div>
62
+ <div
63
+ *ngIf="size === 'L'"
64
+ class="mr-6 text-xs text-gray-900 line-clamp-2 overflow-hidden"
65
+ data-cy="recordAbstract"
66
+ >
67
+ <gn-ui-markdown-parser
68
+ [textContent]="abstract"
69
+ [whitoutStyles]="true"
70
+ ></gn-ui-markdown-parser>
71
+ </div>
72
+ </div>
73
+
74
+ <div
75
+ data-cy="recordOrg"
76
+ *ngIf="size !== 'XS' && record.ownerOrganization?.name"
77
+ class="flex items-center justify-evenly bg-gray-50 rounded-lg h-[53px] px-2"
78
+ >
79
+ <div class="flex items-center flex-1 min-w-0">
80
+ <div
81
+ class="w-[45px] h-[45px] rounded-lg overflow-hidden shrink-0 mr-3"
82
+ >
83
+ <gn-ui-thumbnail
84
+ [thumbnailUrl]="
85
+ record.ownerOrganization?.logoUrl?.toString() || ''
86
+ "
87
+ [fit]="'contain'"
88
+ class="w-full h-full rounded-lg"
89
+ ></gn-ui-thumbnail>
90
+ </div>
91
+ <div *ngIf="organization?.name" class="flex-1 w-0 overflow-hidden">
92
+ <div
93
+ class="text-xs text-black font-normal leading-tight truncate"
94
+ translate
95
+ >
96
+ record.card.metadata.contact
97
+ </div>
98
+ <div
99
+ data-cy="recordOrgName"
100
+ class="text-xl text-primary-black font-medium truncate"
101
+ >
102
+ {{ organization.name }}
103
+ </div>
104
+ </div>
105
+ </div>
106
+ <div *ngIf="size === 'L'" class="ml-2 flex space-x-2">
107
+ <div *ngIf="organization?.website" class="flex">
108
+ <button
109
+ [title]="organization.website"
110
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
111
+ (click)="openExternalUrl($event, organization.website)"
112
+ >
113
+ <ng-icon name="iconoirInternet"></ng-icon>
114
+ </button>
115
+ </div>
116
+ <div *ngIf="contacts[0]?.email" class="flex">
117
+ <button
118
+ [title]="contacts[0].email"
119
+ class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
120
+ data-cy="contact-email"
121
+ (click)="openMailto($event, contacts[0].email)"
122
+ >
123
+ <ng-icon name="matEmailOutline"></ng-icon>
124
+ </button>
125
+ </div>
126
+ <div *ngIf="contacts[0]?.phone" class="flex">
127
+ <button
128
+ [title]="'Copy to clipboard'"
129
+ 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"
130
+ data-cy="contact-phone"
131
+ (click)="copyToClipboard($event, contacts[0].phone)"
132
+ >
133
+ <ng-icon name="matPhoneOutline"></ng-icon>
134
+ </button>
135
+ </div>
136
+ <div *ngIf="contacts[0]?.address" class="flex">
137
+ <button
138
+ [title]="'Copy to clipboard'"
139
+ 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"
140
+ data-cy="contact-phone"
141
+ (click)="copyToClipboard($event, contacts[0].address)"
142
+ >
143
+ <ng-icon name="matLocationOnOutline"></ng-icon>
144
+ </button>
145
+ </div>
146
+ </div>
147
+ </div>
148
+ </div>
149
+ </div>
150
+ </div>
151
+ </a>
@@ -0,0 +1,162 @@
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 { GeoDataBadgeComponent } from '../geo-data-badge/geo-data-badge.component'
16
+ import { KindBadgeComponent } from '../kind-badge/kind-badge.component'
17
+ import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
18
+ import { MetadataQualityComponent } from '../metadata-quality/metadata-quality.component'
19
+ import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
20
+ import {
21
+ propagateToDocumentOnly,
22
+ removeWhitespace,
23
+ stripHtml,
24
+ } from '../../../../../../libs/util/shared/src'
25
+ import {
26
+ NgIconComponent,
27
+ provideIcons,
28
+ provideNgIconsConfig,
29
+ } from '@ng-icons/core'
30
+ import {
31
+ matLocationSearchingOutline,
32
+ matEmailOutline,
33
+ matPhoneOutline,
34
+ matLocationOnOutline,
35
+ } from '@ng-icons/material-icons/outline'
36
+ import { iconoirInternet } from '@ng-icons/iconoir'
37
+ import { TranslateModule } from '@ngx-translate/core'
38
+ import { fromEvent, Subscription } from 'rxjs'
39
+
40
+ type CardSize = 'L' | 'M' | 'S' | 'XS'
41
+
42
+ @Component({
43
+ selector: 'gn-ui-internal-link-card',
44
+ standalone: true,
45
+ imports: [
46
+ NgClass,
47
+ NgIf,
48
+ ThumbnailComponent,
49
+ MetadataQualityComponent,
50
+ NgTemplateOutlet,
51
+ NgIconComponent,
52
+ TranslateModule,
53
+ GeoDataBadgeComponent,
54
+ KindBadgeComponent,
55
+ MarkdownParserComponent,
56
+ ],
57
+ providers: [
58
+ provideIcons({
59
+ iconoirInternet,
60
+ matLocationSearchingOutline,
61
+ matEmailOutline,
62
+ matPhoneOutline,
63
+ matLocationOnOutline,
64
+ }),
65
+ provideNgIconsConfig({
66
+ size: '1.2em',
67
+ }),
68
+ ],
69
+ templateUrl: './internal-link-card.component.html',
70
+ styleUrls: ['./internal-link-card.component.css'],
71
+ })
72
+ export class InternalLinkCardComponent implements OnInit {
73
+ @Input() record: CatalogRecord
74
+ @Input() linkTarget = '_blank'
75
+ @Input() linkHref: string = null
76
+ @Input() metadataQualityDisplay: boolean
77
+ @Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
78
+ @Input() set size(value: CardSize) {
79
+ this._size = value
80
+ this.cardClass = this.sizeClassMap[value] || ''
81
+ this.thumbnailContainerClass = this.thumbnailSizeClassMap[value] || 'hidden'
82
+ }
83
+ get size(): CardSize {
84
+ return this._size
85
+ }
86
+ @Output() mdSelect = new EventEmitter<CatalogRecord>()
87
+ subscription = new Subscription()
88
+
89
+ abstract: string
90
+
91
+ cardClass = ''
92
+ thumbnailContainerClass = ''
93
+
94
+ private _size: CardSize = 'M'
95
+
96
+ private readonly sizeClassMap: Record<CardSize, string> = {
97
+ L: 'min-h-[190px] w-full py-3 px-3 flex items-start gap-5',
98
+ M: 'min-h-[140px] py-3 px-3 flex items-start gap-4',
99
+ S: 'min-h-[220px] py-3 px-3 flex gap-4',
100
+ XS: 'min-h-[108px] py-3 px-3 flex gap-4',
101
+ }
102
+
103
+ private readonly thumbnailSizeClassMap: Record<CardSize, string> = {
104
+ L: 'w-full md:w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
105
+ M: 'w-[110px] h-[140px] rounded-lg overflow-hidden shrink-0',
106
+ S: 'hidden',
107
+ XS: 'hidden',
108
+ }
109
+
110
+ private readonly titleClassMap: Record<CardSize, string> = {
111
+ L: 'text-xl line-clamp-1',
112
+ M: 'text-base line-clamp-2',
113
+ S: 'text-base line-clamp-3 ml-2',
114
+ XS: 'text-base line-clamp-1 ml-2',
115
+ }
116
+
117
+ constructor(protected elementRef: ElementRef) {}
118
+
119
+ ngOnInit(): void {
120
+ this.abstract = removeWhitespace(stripHtml(this.record?.abstract))
121
+ this.subscription.add(
122
+ fromEvent(this.elementRef.nativeElement, 'click').subscribe(() =>
123
+ this.mdSelect.emit(this.record)
124
+ )
125
+ )
126
+ }
127
+
128
+ get organization(): Organization {
129
+ return this.record.ownerOrganization
130
+ }
131
+
132
+ get contacts() {
133
+ return (
134
+ (this.record.kind === 'dataset'
135
+ ? this.record.contactsForResource
136
+ : this.record.contacts) || []
137
+ )
138
+ }
139
+
140
+ getTitleClass() {
141
+ return this.titleClassMap[this._size]
142
+ }
143
+
144
+ openExternalUrl(event: Event, url: URL): void {
145
+ event.stopPropagation()
146
+ window.open(url, '_blank')
147
+ }
148
+
149
+ openMailto(event: Event, email: string): void {
150
+ event.stopPropagation()
151
+ window.open(`mailto:${email}`, '_blank')
152
+ }
153
+
154
+ copyToClipboard(event: Event, text: string): void {
155
+ event.stopPropagation()
156
+ navigator.clipboard.writeText(text)
157
+ }
158
+
159
+ get shouldShowThumbnail(): boolean {
160
+ return this.size === 'L' || this.size === 'M'
161
+ }
162
+ }
@@ -0,0 +1,6 @@
1
+ :host gn-ui-badge ng-icon {
2
+ font-size: 1.2rem;
3
+ width: 1.2rem;
4
+ height: 1.2rem;
5
+ transform: translateY(-2px);
6
+ }
@@ -0,0 +1,11 @@
1
+ <div [class]="badgeClasses" *ngIf="kind">
2
+ <ng-icon [name]="iconKind" class="mr-1 text-[0.85em]"></ng-icon>
3
+
4
+ <ng-container *ngIf="contentTemplate; else defaultContent">
5
+ <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
6
+ </ng-container>
7
+ </div>
8
+
9
+ <ng-template #defaultContent>
10
+ {{ 'record.kind.' + kind | translate }}
11
+ </ng-template>
@@ -0,0 +1,70 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ Input,
6
+ TemplateRef,
7
+ } from '@angular/core'
8
+ import { provideIcons } from '@ng-icons/core'
9
+ import {
10
+ iconoirAppleWallet,
11
+ iconoirAppleShortcuts,
12
+ iconoirCode,
13
+ iconoirCreditCard,
14
+ } from '@ng-icons/iconoir'
15
+ import { NgIconsModule } from '@ng-icons/core'
16
+ import { TranslateModule } from '@ngx-translate/core'
17
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
18
+
19
+ marker('record.kind.dataset')
20
+ marker('record.kind.reuse')
21
+ marker('record.kind.service')
22
+
23
+ enum KindConfig {
24
+ all = 'iconoirAppleWallet', // (this one is for filter)
25
+ dataset = 'iconoirAppleShortcuts',
26
+ service = 'iconoirCode',
27
+ reuse = 'iconoirCreditCard',
28
+ }
29
+
30
+ @Component({
31
+ selector: 'gn-ui-kind-badge',
32
+ templateUrl: './kind-badge.component.html',
33
+ styleUrls: ['./kind-badge.component.css'],
34
+ viewProviders: [
35
+ provideIcons({
36
+ iconoirAppleWallet,
37
+ iconoirAppleShortcuts,
38
+ iconoirCode,
39
+ iconoirCreditCard,
40
+ }),
41
+ ],
42
+ changeDetection: ChangeDetectionStrategy.OnPush,
43
+ standalone: true,
44
+ imports: [NgIconsModule, CommonModule, TranslateModule],
45
+ })
46
+ export class KindBadgeComponent {
47
+ @Input() styling = 'default'
48
+ @Input() contentTemplate: TemplateRef<unknown>
49
+ @Input() kind: string
50
+
51
+ hasProjectedContent = false
52
+
53
+ get iconKind() {
54
+ return KindConfig[this.kind] || KindConfig.dataset
55
+ }
56
+
57
+ get badgeClasses(): string {
58
+ const baseClasses =
59
+ 'badge-btn text-white text-xs px-2 font-bold shrink-0 flex items-center h-6 min-h-6'
60
+
61
+ switch (this.styling) {
62
+ case 'outline':
63
+ return `${baseClasses} bg-transparent border border-white py-1.5`
64
+ case 'default':
65
+ return `${baseClasses} bg-primary py-0.5`
66
+ default:
67
+ return 'flex items-center'
68
+ }
69
+ }
70
+ }
@@ -5,7 +5,7 @@
5
5
  [ngClass]="cardClass"
6
6
  [title]="title"
7
7
  >
8
- <div class="flex flex-col justify-between">
8
+ <div class="flex flex-col justify-between flex-1 min-w-0">
9
9
  <div class="gn-ui-card-title">
10
10
  {{ link.description || link.name }}
11
11
  </div>
@@ -26,7 +26,10 @@
26
26
  >
27
27
  </div>
28
28
  </div>
29
- <div class="flex" [ngClass]="size === 'S' ? 'items-end' : 'items-center'">
29
+ <div
30
+ class="flex min-w-[32px]"
31
+ [ngClass]="size === 'S' ? 'items-end' : 'items-center'"
32
+ >
30
33
  <div class="gn-ui-card-icon">
31
34
  <ng-icon
32
35
  class="inline-block card-icon align-middle"
@@ -1,9 +1,5 @@
1
1
  import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import {
3
- DatasetDownloadDistribution,
4
- DatasetOnlineResource,
5
- DatasetServiceDistribution,
6
- } from '../../../../../../libs/common/domain/src/lib/model/record'
2
+ import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
7
3
  import { CommonModule } from '@angular/common'
8
4
  import {
9
5
  NgIconComponent,
@@ -30,7 +26,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
30
26
  ],
31
27
  })
32
28
  export class LinkCardComponent {
33
- private _size: 'L' | 'M' | 'S' | 'XS'
29
+ private _size: CardSize
34
30
  @Input() link: DatasetOnlineResource
35
31
  private readonly sizeClassMap: Record<CardSize, string> = {
36
32
  L: 'gn-ui-card-l py-2 px-5',
@@ -43,7 +39,7 @@ export class LinkCardComponent {
43
39
  this._size = value
44
40
  this.cardClass = this.sizeClassMap[value]
45
41
  }
46
- get size(): 'L' | 'M' | 'S' | 'XS' {
42
+ get size(): CardSize {
47
43
  return this._size
48
44
  }
49
45
  cardClass = ''
@@ -1,8 +1,6 @@
1
- <div>
2
- <p class="text-gray-900 text-xs mb-3 uppercase" translate>
3
- record.metadata.catalog
4
- </p>
5
- <p class="text-primary font-title text-21 mb-1">
1
+ <div class="text-black">
2
+ <p class="text-base mb-3" translate>record.metadata.catalog</p>
3
+ <p class="font-title text-21 mb-1">
6
4
  {{ sourceLabel }}
7
5
  </p>
8
6
  </div>
@@ -1,7 +1,10 @@
1
- <div class="py-5 px-5 rounded bg-gray-100 text-black mb-6">
1
+ <div
2
+ class="py-5 px-5 rounded bg-gray-100 text-black"
3
+ data-cy="metadata-organization"
4
+ >
2
5
  <div class="grid gap-3 overflow-hidden">
3
6
  <div>
4
- <p class="text-sm font-medium" translate>record.metadata.contact</p>
7
+ <p class="text-base font-medium" translate>record.metadata.contact</p>
5
8
  </div>
6
9
  <div
7
10
  *ngIf="shownOrganization?.logoUrl?.href"
@@ -13,12 +16,12 @@
13
16
  fit="contain"
14
17
  ></gn-ui-thumbnail>
15
18
  </div>
16
- <div class="grid gap-1">
19
+ <div class="grid grid-cols-1 gap-1">
17
20
  <div class="flex">
18
21
  <div
19
- class="text-primary font-title text-21 mr-2 cursor-pointer hover:underline"
22
+ class="font-title text-21 mr-2 cursor-pointer hover:underline"
20
23
  (click)="onOrganizationClick()"
21
- data-cy="organization-name"
24
+ data-cy="organization-name-link"
22
25
  >
23
26
  {{ shownOrganization?.name }}
24
27
  </div>
@@ -27,7 +30,7 @@
27
30
  <a
28
31
  [href]="shownOrganization.website"
29
32
  target="_blank"
30
- class="contact-website text-primary text-sm cursor-pointer hover:underline transition-all"
33
+ class="contact-website text-sm cursor-pointer hover:underline transition-all"
31
34
  >{{ shownOrganization.website }}
32
35
  <ng-icon
33
36
  class="!w-[12px] !h-[12px] opacity-75 shrink-0"
@@ -36,7 +39,7 @@
36
39
  </a>
37
40
  </div>
38
41
  </div>
39
- <div class="grid gap-5 py-3 overflow-hidden">
42
+ <div class="grid grid-cols-1 gap-5 py-3 overflow-hidden">
40
43
  <div *ngIf="contacts[0]?.phone">
41
44
  <div class="flex">
42
45
  <ng-icon
@@ -49,7 +52,7 @@
49
52
  </div>
50
53
  </div>
51
54
  <div *ngIf="contacts[0]?.email">
52
- <div class="flex">
55
+ <div class="flex gap-2">
53
56
  <ng-icon
54
57
  class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
55
58
  name="matMailOutline"
@@ -57,7 +60,7 @@
57
60
  <a
58
61
  *ngIf="contacts.length"
59
62
  [href]="'mailto:' + contacts[0].email"
60
- class="text-sm hover:underline ml-2"
63
+ class="break-all text-sm hover:underline"
61
64
  target="_blank"
62
65
  data-cy="contact-email"
63
66
  >{{ contacts[0].email }}</a
@@ -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 .metadata-info-keywords ::ng-deep gn-ui-badge:hover {
21
+ --gn-ui-badge-text-color: white;
22
+ }