geonetwork-ui 2.6.0-dev.7be6567ef → 2.6.0-dev.857b51517

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 (367) 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/resource-types.mjs +17 -15
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  7. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  9. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  10. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -1
  11. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +5 -1
  12. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  13. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
  14. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  17. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  18. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  19. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  20. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  21. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  22. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  23. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +8 -3
  24. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  25. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  26. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  27. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  28. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  29. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  30. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  31. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  32. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  33. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  34. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  35. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  36. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  37. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  38. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  39. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  40. package/esm2022/libs/ui/elements/src/index.mjs +4 -1
  41. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  42. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  43. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  44. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  45. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +163 -0
  46. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
  47. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  48. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  49. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  50. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  51. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  52. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
  53. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +22 -4
  54. package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
  55. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  56. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  57. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  58. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  59. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  60. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  61. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  62. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  63. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  64. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  65. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  66. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  67. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  68. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  69. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +56 -0
  70. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  71. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  72. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +79 -0
  73. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  74. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  75. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  76. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  77. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
  78. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  79. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  80. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  81. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  82. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  83. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  84. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
  85. package/esm2022/translations/de.json +40 -5
  86. package/esm2022/translations/en.json +42 -5
  87. package/esm2022/translations/es.json +40 -5
  88. package/esm2022/translations/fr.json +43 -6
  89. package/esm2022/translations/it.json +40 -5
  90. package/esm2022/translations/nl.json +40 -5
  91. package/esm2022/translations/pt.json +40 -5
  92. package/fesm2022/geonetwork-ui.mjs +1658 -598
  93. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  94. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  95. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  96. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  97. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  98. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  100. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  101. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  102. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -2
  103. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  104. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  105. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +1 -1
  106. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  107. package/libs/feature/editor/src/index.d.ts +1 -0
  108. package/libs/feature/editor/src/index.d.ts.map +1 -1
  109. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
  110. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  111. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  112. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  113. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  114. 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
  115. package/libs/feature/record/src/index.d.ts +0 -1
  116. package/libs/feature/record/src/index.d.ts.map +1 -1
  117. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  118. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  119. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  120. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  121. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  122. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  123. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  124. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  125. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  126. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  127. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  128. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  129. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  130. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  131. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  132. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  133. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  134. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  135. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  136. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  137. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  138. package/libs/feature/search/src/index.d.ts +1 -1
  139. package/libs/feature/search/src/index.d.ts.map +1 -1
  140. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  141. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  142. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  143. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  144. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  145. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  146. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  147. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  148. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  149. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  150. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  151. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  152. package/libs/ui/elements/src/index.d.ts +3 -0
  153. package/libs/ui/elements/src/index.d.ts.map +1 -1
  154. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  155. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  156. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  157. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  158. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +43 -0
  159. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  160. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
  161. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  162. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  163. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  164. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  165. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  166. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  167. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  168. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +4 -1
  169. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  170. package/libs/ui/inputs/src/index.d.ts +1 -1
  171. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  172. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  173. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  174. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  175. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  176. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  177. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  178. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  179. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  180. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  181. package/libs/ui/layout/src/index.d.ts +1 -0
  182. package/libs/ui/layout/src/index.d.ts.map +1 -1
  183. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  184. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  185. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  186. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  187. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  188. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  189. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +18 -0
  190. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  191. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  192. package/libs/ui/map/src/index.d.ts +1 -0
  193. package/libs/ui/map/src/index.d.ts.map +1 -1
  194. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  195. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  196. package/libs/ui/search/src/index.d.ts +1 -0
  197. package/libs/ui/search/src/index.d.ts.map +1 -1
  198. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  199. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  200. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  201. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  202. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  203. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  204. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  205. package/libs/util/shared/src/index.d.ts +1 -0
  206. package/libs/util/shared/src/index.d.ts.map +1 -1
  207. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  208. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  209. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  210. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  211. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  212. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  213. package/package.json +1 -1
  214. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  215. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  216. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  217. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  218. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  219. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  220. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  221. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
  222. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  223. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  224. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  225. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  226. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +5 -2
  227. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  228. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  229. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  230. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
  231. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
  232. package/src/libs/feature/editor/src/index.ts +1 -0
  233. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
  234. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
  235. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  236. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  237. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  238. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  239. package/src/libs/feature/record/src/index.ts +0 -1
  240. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
  241. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  242. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  243. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  244. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  245. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  246. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +21 -15
  247. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -0
  248. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  249. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  250. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  251. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  252. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  253. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  254. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  255. package/src/libs/feature/search/src/index.ts +1 -1
  256. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  257. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  258. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  259. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  260. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  261. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  262. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  263. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  264. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  265. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  266. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  267. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  268. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  269. package/src/libs/ui/elements/src/index.ts +3 -0
  270. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  271. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  272. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  273. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  274. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  275. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  276. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.css +0 -0
  277. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
  278. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
  279. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  280. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
  281. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
  282. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  283. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  284. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  285. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
  286. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  287. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
  288. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  289. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +3 -2
  290. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  291. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  292. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  293. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -0
  294. package/src/libs/ui/inputs/src/index.ts +1 -1
  295. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  296. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  297. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  298. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  299. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  300. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  301. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +0 -0
  302. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
  303. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  304. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  305. package/src/libs/ui/layout/src/index.ts +1 -0
  306. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  307. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  308. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  309. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  310. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  311. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  312. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  313. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  314. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  315. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  316. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  317. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +46 -0
  318. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +62 -0
  319. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  320. package/src/libs/ui/map/src/index.ts +1 -0
  321. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  322. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  323. 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
  324. package/src/libs/ui/search/src/index.ts +1 -0
  325. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  326. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
  327. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  328. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  329. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  330. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  331. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +4 -3
  332. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  333. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  334. package/src/libs/util/shared/src/index.ts +1 -0
  335. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  336. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  337. package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
  338. package/tailwind.base.config.js +3 -0
  339. package/tailwind.base.css +19 -26
  340. package/translations/de.json +40 -5
  341. package/translations/en.json +42 -5
  342. package/translations/es.json +40 -5
  343. package/translations/fr.json +43 -6
  344. package/translations/it.json +40 -5
  345. package/translations/nl.json +40 -5
  346. package/translations/pt.json +40 -5
  347. package/translations/sk.json +40 -5
  348. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  349. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  350. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  351. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  352. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  353. 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
  354. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  355. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  356. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  357. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  358. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  359. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  360. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  361. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  362. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  363. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  364. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  365. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  366. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  367. /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
@@ -2,12 +2,23 @@
2
2
  class="flex flex-wrap justify-between items-center pb-4"
3
3
  *ngIf="links && links.length > 0"
4
4
  >
5
- <div
6
- class="font-title text-xl text-title font-medium mr-4 text-center sm:text-left"
7
- translate
8
- >
9
- record.metadata.download
5
+ <div class="flex flex-row items-center gap-x-4">
6
+ <div>
7
+ <h3
8
+ class="inline-block font-title text-xl text-title font-medium mr-4"
9
+ translate
10
+ >
11
+ record.metadata.download
12
+ </h3>
13
+ <span class="px-3">({{ linksCount }})</span>
14
+ </div>
15
+ <gn-ui-previous-next-buttons
16
+ class="md:block hidden"
17
+ *ngIf="_list?.pagesCount > 1"
18
+ [listComponent]="_list"
19
+ ></gn-ui-previous-next-buttons>
10
20
  </div>
21
+
11
22
  <div
12
23
  class="flex flex-wrap justify-start sm:justify-end"
13
24
  data-cy="download-format-filters"
@@ -26,9 +37,29 @@
26
37
  </gn-ui-button>
27
38
  </div>
28
39
  </div>
29
- <div class="mb-2 sm:mb-3" *ngFor="let link of filteredLinks">
40
+
41
+ <ng-container>
42
+ <gn-ui-block-list
43
+ class="md:block hidden"
44
+ #blockList
45
+ (listChanges)="updateList($event)"
46
+ containerClass="gap-4 pt-5 pb-7"
47
+ >
48
+ <gn-ui-download-item
49
+ #block
50
+ *ngFor="let link of filteredLinks"
51
+ [link]="link"
52
+ [color]="getLinkColor(link)"
53
+ [format]="getLinkFormat(link)"
54
+ [isFromApi]="isFromApi(link)"
55
+ [size]="blockList.subComponentSize"
56
+ ></gn-ui-download-item>
57
+ </gn-ui-block-list>
58
+ </ng-container>
59
+
60
+ <div class="mb-5 md:hidden block" *ngFor="let link of filteredLinks">
30
61
  <gn-ui-download-item
31
- size="L"
62
+ size="M"
32
63
  [link]="link"
33
64
  [color]="getLinkColor(link)"
34
65
  [format]="getLinkFormat(link)"
@@ -1,4 +1,11 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
1
+ import {
2
+ AfterViewInit,
3
+ ChangeDetectionStrategy,
4
+ ChangeDetectorRef,
5
+ Component,
6
+ Input,
7
+ ViewChild,
8
+ } from '@angular/core'
2
9
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
3
10
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
4
11
  import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
@@ -6,6 +13,11 @@ import { DatasetDownloadDistribution } from '../../../../../../libs/common/domai
6
13
  import { CommonModule } from '@angular/common'
7
14
  import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
8
15
  import { DownloadItemComponent } from '../download-item/download-item.component'
16
+ import {
17
+ BlockListComponent,
18
+ Paginable,
19
+ PreviousNextButtonsComponent,
20
+ } from '../../../../../../libs/ui/layout/src'
9
21
 
10
22
  marker('datahub.search.filter.all')
11
23
  marker('datahub.search.filter.others')
@@ -22,17 +34,32 @@ type FilterFormat = (typeof FILTER_FORMATS)[number]
22
34
  imports: [
23
35
  CommonModule,
24
36
  ButtonComponent,
37
+ BlockListComponent,
25
38
  DownloadItemComponent,
26
39
  TranslateModule,
40
+ PreviousNextButtonsComponent,
27
41
  ],
28
42
  })
29
43
  export class DownloadsListComponent {
30
- constructor(private translateService: TranslateService) {}
44
+ constructor(
45
+ private translateService: TranslateService,
46
+ private changeDetector: ChangeDetectorRef
47
+ ) {}
31
48
 
49
+ _list: BlockListComponent
32
50
  @Input() links: DatasetDownloadDistribution[]
33
51
 
52
+ get linksCount(): number {
53
+ return this.filteredLinks?.length || 0
54
+ }
55
+
34
56
  activeFilterFormats: FilterFormat[] = ['all']
35
57
 
58
+ updateList($event: BlockListComponent) {
59
+ this._list = $event
60
+ this.changeDetector.detectChanges()
61
+ }
62
+
36
63
  private removeDuplicateFormats(
37
64
  links: DatasetDownloadDistribution[]
38
65
  ): DatasetDownloadDistribution[] {
@@ -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,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
+ }
@@ -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,9 @@
1
+ <ng-icon [name]="iconKind" class="mr-1"></ng-icon>
2
+
3
+ <ng-container *ngIf="contentTemplate; else defaultContent">
4
+ <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
5
+ </ng-container>
6
+
7
+ <ng-template #defaultContent>
8
+ {{ kind | translate }}
9
+ </ng-template>
@@ -0,0 +1,51 @@
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 { BadgeComponent } from '../../../../../../libs/ui/inputs/src'
17
+ import { TranslateModule } from '@ngx-translate/core'
18
+
19
+ enum KindConfig {
20
+ all = 'iconoirAppleWallet', // (this one is for filter)
21
+ dataset = 'iconoirAppleShortcuts',
22
+ service = 'iconoirCode',
23
+ reuse = 'iconoirCreditCard',
24
+ }
25
+
26
+ @Component({
27
+ selector: 'gn-ui-kind-badge',
28
+ templateUrl: './kind-badge.component.html',
29
+ styleUrls: ['./kind-badge.component.css'],
30
+ viewProviders: [
31
+ provideIcons({
32
+ iconoirAppleWallet,
33
+ iconoirAppleShortcuts,
34
+ iconoirCode,
35
+ iconoirCreditCard,
36
+ }),
37
+ ],
38
+ changeDetection: ChangeDetectionStrategy.OnPush,
39
+ standalone: true,
40
+ imports: [NgIconsModule, CommonModule, BadgeComponent, TranslateModule],
41
+ })
42
+ export class KindBadgeComponent {
43
+ @Input() contentTemplate: TemplateRef<unknown>
44
+ @Input() kind: string
45
+
46
+ hasProjectedContent = false
47
+
48
+ get iconKind() {
49
+ return KindConfig[this.kind] || KindConfig.dataset
50
+ }
51
+ }
@@ -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,7 @@
1
- <div class="py-5 px-5 rounded bg-gray-100 text-black mb-6">
2
- <div class="grid gap-3 overflow-hidden">
1
+ <div class="py-5 px-5 rounded-lg bg-gray-100 text-black">
2
+ <div class="grid grid-cols-1 gap-3 overflow-hidden">
3
3
  <div>
4
- <p class="text-sm font-medium" translate>record.metadata.contact</p>
4
+ <p class="text-base font-medium" translate>record.metadata.contact</p>
5
5
  </div>
6
6
  <div
7
7
  *ngIf="shownOrganization?.logoUrl?.href"
@@ -13,10 +13,10 @@
13
13
  fit="contain"
14
14
  ></gn-ui-thumbnail>
15
15
  </div>
16
- <div class="grid gap-1">
16
+ <div class="grid grid-cols-1 gap-1">
17
17
  <div class="flex">
18
18
  <div
19
- class="text-primary font-title text-21 mr-2 cursor-pointer hover:underline"
19
+ class="font-title text-21 mr-2 cursor-pointer hover:underline"
20
20
  (click)="onOrganizationClick()"
21
21
  data-cy="organization-name"
22
22
  >
@@ -27,7 +27,7 @@
27
27
  <a
28
28
  [href]="shownOrganization.website"
29
29
  target="_blank"
30
- class="contact-website text-primary text-sm cursor-pointer hover:underline transition-all"
30
+ class="contact-website text-sm cursor-pointer hover:underline transition-all"
31
31
  >{{ shownOrganization.website }}
32
32
  <ng-icon
33
33
  class="!w-[12px] !h-[12px] opacity-75 shrink-0"
@@ -36,7 +36,7 @@
36
36
  </a>
37
37
  </div>
38
38
  </div>
39
- <div class="grid gap-5 py-3 overflow-hidden">
39
+ <div class="grid grid-cols-1 gap-5 py-3 overflow-hidden">
40
40
  <div *ngIf="contacts[0]?.phone">
41
41
  <div class="flex">
42
42
  <ng-icon
@@ -49,7 +49,7 @@
49
49
  </div>
50
50
  </div>
51
51
  <div *ngIf="contacts[0]?.email">
52
- <div class="flex">
52
+ <div class="flex gap-2">
53
53
  <ng-icon
54
54
  class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
55
55
  name="matMailOutline"
@@ -57,7 +57,7 @@
57
57
  <a
58
58
  *ngIf="contacts.length"
59
59
  [href]="'mailto:' + contacts[0].email"
60
- class="text-sm hover:underline ml-2"
60
+ class="break-all text-sm hover:underline"
61
61
  target="_blank"
62
62
  data-cy="contact-email"
63
63
  >{{ 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
+ }