geonetwork-ui 2.6.0-dev.9df114cd4 → 2.6.0-dev.a6b2f3e85

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 +3 -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-repository.mjs +2 -1
  9. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  10. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  11. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +45 -9
  12. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
  13. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
  14. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  15. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
  16. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  17. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  19. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  20. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  21. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  22. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  23. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  24. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  25. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -3
  26. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  27. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  28. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  29. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  30. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  31. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  32. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  33. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  34. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
  35. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  36. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  37. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  38. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  39. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  40. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  41. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  42. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
  43. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
  44. package/esm2022/libs/ui/elements/src/index.mjs +3 -1
  45. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  46. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  47. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  48. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  49. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +3 -3
  50. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
  51. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  52. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  53. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  54. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  55. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  56. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
  57. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
  58. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  59. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  60. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  61. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  62. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  63. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  64. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
  65. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  66. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  67. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  68. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  69. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  70. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  71. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  72. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +56 -0
  73. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  74. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  75. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
  76. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
  77. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  78. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  79. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  80. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  81. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
  82. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  83. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  84. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  85. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  86. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  87. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  88. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
  89. package/esm2022/translations/de.json +32 -4
  90. package/esm2022/translations/en.json +36 -6
  91. package/esm2022/translations/es.json +32 -4
  92. package/esm2022/translations/fr.json +35 -5
  93. package/esm2022/translations/it.json +32 -4
  94. package/esm2022/translations/nl.json +32 -4
  95. package/esm2022/translations/pt.json +32 -4
  96. package/fesm2022/geonetwork-ui.mjs +1505 -604
  97. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  98. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  99. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  100. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  101. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  102. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  103. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  104. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  105. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  106. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +4 -2
  107. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  108. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
  109. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  110. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -2
  111. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  112. package/libs/feature/editor/src/index.d.ts +1 -0
  113. package/libs/feature/editor/src/index.d.ts.map +1 -1
  114. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
  115. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  116. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  117. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  118. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  119. 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
  120. package/libs/feature/record/src/index.d.ts +0 -1
  121. package/libs/feature/record/src/index.d.ts.map +1 -1
  122. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  123. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  124. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  125. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  126. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  127. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  128. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  129. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  130. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  131. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  132. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  133. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  134. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  135. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  136. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  137. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  138. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  139. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  140. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  141. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  142. package/libs/feature/search/src/index.d.ts +1 -1
  143. package/libs/feature/search/src/index.d.ts.map +1 -1
  144. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  145. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  146. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  147. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  148. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  149. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  150. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  151. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  152. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  153. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  154. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  155. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  156. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
  157. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
  158. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
  159. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
  160. package/libs/ui/elements/src/index.d.ts +2 -0
  161. package/libs/ui/elements/src/index.d.ts.map +1 -1
  162. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  163. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  164. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  165. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  166. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
  167. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  168. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  169. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  170. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  171. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  172. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  173. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  174. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -1
  175. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  176. package/libs/ui/inputs/src/index.d.ts +1 -0
  177. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  178. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  179. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  180. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  181. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  182. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  183. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  184. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  185. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  186. package/libs/ui/layout/src/index.d.ts +1 -0
  187. package/libs/ui/layout/src/index.d.ts.map +1 -1
  188. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  189. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  190. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  191. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  192. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +18 -0
  193. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  194. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  195. package/libs/ui/map/src/index.d.ts +1 -0
  196. package/libs/ui/map/src/index.d.ts.map +1 -1
  197. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
  198. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  199. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  200. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  201. package/libs/ui/search/src/index.d.ts +1 -0
  202. package/libs/ui/search/src/index.d.ts.map +1 -1
  203. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  204. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  205. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  206. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  207. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  208. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  209. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  210. package/libs/util/shared/src/index.d.ts +1 -0
  211. package/libs/util/shared/src/index.d.ts.map +1 -1
  212. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  213. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  214. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  215. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  216. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  217. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  218. package/package.json +2 -2
  219. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  220. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  221. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  222. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  223. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  224. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  225. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  226. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +2 -2
  227. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  228. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  229. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  230. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +1 -0
  231. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  232. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +4 -4
  233. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  234. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  235. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  236. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
  237. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +54 -10
  238. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
  239. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
  240. package/src/libs/feature/editor/src/index.ts +1 -0
  241. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
  242. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
  243. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  244. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  245. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  246. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  247. package/src/libs/feature/record/src/index.ts +0 -1
  248. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
  249. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  250. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  251. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  252. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  253. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  254. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
  255. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  256. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  257. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  258. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  259. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  260. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  261. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  262. package/src/libs/feature/search/src/index.ts +1 -1
  263. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -2
  264. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  265. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  266. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  267. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  268. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  269. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  270. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  271. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  272. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  273. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  274. package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
  275. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
  276. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
  277. package/src/libs/ui/elements/src/index.ts +2 -0
  278. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  279. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  280. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  281. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  282. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  283. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  284. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +2 -2
  285. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  286. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
  287. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
  288. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  289. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  290. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  291. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
  292. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  293. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
  294. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  295. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
  296. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  297. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  298. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  299. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
  300. package/src/libs/ui/inputs/src/index.ts +1 -0
  301. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  302. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  303. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  304. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  305. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  306. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  307. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +0 -0
  308. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +2 -2
  309. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  310. package/src/libs/ui/layout/src/index.ts +1 -0
  311. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  312. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  313. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  314. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  315. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  316. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  317. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  318. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  319. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  320. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  321. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +46 -0
  322. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +62 -0
  323. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  324. package/src/libs/ui/map/src/index.ts +1 -0
  325. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
  326. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
  327. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  328. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  329. 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
  330. package/src/libs/ui/search/src/index.ts +1 -0
  331. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  332. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
  333. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  334. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  335. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  336. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  337. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
  338. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  339. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  340. package/src/libs/util/shared/src/index.ts +1 -0
  341. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  342. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  343. package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
  344. package/tailwind.base.config.js +3 -0
  345. package/tailwind.base.css +4 -16
  346. package/translations/de.json +32 -4
  347. package/translations/en.json +36 -6
  348. package/translations/es.json +32 -4
  349. package/translations/fr.json +35 -5
  350. package/translations/it.json +32 -4
  351. package/translations/nl.json +32 -4
  352. package/translations/pt.json +32 -4
  353. package/translations/sk.json +32 -4
  354. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  355. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  356. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  357. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  358. 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
  359. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  360. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  361. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  362. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  363. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  364. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  365. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  366. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  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
@@ -22,6 +22,7 @@ import {
22
22
  } from '../../../../../../../libs/api/repository/src'
23
23
  import { LangService } from '../../../../../../../libs/util/i18n/src'
24
24
  import { formatUserInfo } from '../../../../../../../libs/util/shared/src'
25
+ import { PossibleResourceTypes } from '../../../../../../../libs/api/metadata-converter/src'
25
26
 
26
27
  export type FieldType = 'values' | 'dateRange'
27
28
 
@@ -29,6 +30,7 @@ export type FieldValue = string | number
29
30
  export interface FieldAvailableValue {
30
31
  value: FieldValue
31
32
  label: string
33
+ count?: number
32
34
  }
33
35
 
34
36
  export abstract class AbstractSearchField {
@@ -80,6 +82,7 @@ export class SimpleSearchField implements AbstractSearchField {
80
82
  const bucketPromises = buckets.map(async (bucket) => ({
81
83
  label: `${await this.getBucketLabel(bucket)} (${bucket.count})`,
82
84
  value: bucket.term.toString(),
85
+ count: bucket.count,
83
86
  }))
84
87
  return Promise.all(bucketPromises)
85
88
  })
@@ -480,3 +483,99 @@ export class AvailableServicesField extends SimpleSearchField {
480
483
  return of(values)
481
484
  }
482
485
  }
486
+
487
+ /**
488
+ * This class is meant to be used with the legacy filter on `resourceType` (now deprecated, the use of `recordKind` field is recommended).
489
+ * Since creating filters on the same ES field is not possible, in order to make the resource type filter still working,
490
+ * we create an ES on the fly: `resourceTypeLegacy` that references the `resourceType` under the hood.
491
+ * @deprecated Use `recordKind` field instead.
492
+ */
493
+ export class ResourceTypeLegacyField extends TranslatedSearchField {
494
+ constructor(injector: Injector) {
495
+ super('resourceTypeLegacy', injector, 'asc')
496
+
497
+ // Ask ES to create a field on the fly: 'resourceTypeLegacy' that is in fact, 'resourceType'
498
+ this.esService.registerRuntimeField(
499
+ 'resourceTypeLegacy',
500
+ `for (resourceType in doc.resourceType) { emit(resourceType) }`
501
+ )
502
+ }
503
+ }
504
+
505
+ export class RecordKindField extends SimpleSearchField {
506
+ TYPE_MAPPING = {
507
+ dataset: ['dataset', 'series', 'featureCatalog'],
508
+ service: ['service'],
509
+ reuse: Object.entries(PossibleResourceTypes)
510
+ .filter(([_, v]) => v === 'reuse')
511
+ .map(([k]) => k), // = ['application', 'map', 'staticMap', 'interactiveMap', ...]
512
+ }
513
+
514
+ constructor(injector: Injector) {
515
+ super('resourceType', injector, 'asc')
516
+ }
517
+
518
+ getAvailableValues(): Observable<FieldAvailableValue[]> {
519
+ return this.repository.aggregate(this.getAggregations()).pipe(
520
+ map(
521
+ (response) =>
522
+ (response[this.esFieldName] as AggregationBuckets).buckets || []
523
+ ),
524
+ map((buckets: TermBucket[]) => {
525
+ const counts = buckets.reduce(
526
+ (acc, { term, count }) => {
527
+ const value = term.toString()
528
+ const key = this.TYPE_MAPPING.reuse.includes(value)
529
+ ? 'reuse'
530
+ : this.TYPE_MAPPING.dataset.includes(value)
531
+ ? 'dataset'
532
+ : value
533
+
534
+ acc[key] = (acc[key] || 0) + count
535
+ return acc
536
+ },
537
+ {} as Record<string, number>
538
+ )
539
+
540
+ return Object.keys(this.TYPE_MAPPING).map((type) => ({
541
+ label: type,
542
+ value: type,
543
+ count: counts[type] ?? 0,
544
+ }))
545
+ })
546
+ )
547
+ }
548
+
549
+ getFiltersForValues(values: FieldValue[]): Observable<FieldFilters> {
550
+ const filters = {
551
+ [this.esFieldName]: values.reduce((acc, value) => {
552
+ if (value === '') return { ...acc, [value]: true }
553
+
554
+ const keysToAdd = this.TYPE_MAPPING[value] || [value]
555
+ keysToAdd.forEach((key: string) => (acc[key] = true))
556
+
557
+ return acc
558
+ }, {}),
559
+ }
560
+
561
+ return of(filters)
562
+ }
563
+
564
+ getValuesForFilter(filters: FieldFilters): Observable<FieldValue[]> {
565
+ const filter = filters[this.esFieldName]
566
+ if (!filter) return of([])
567
+
568
+ const activeValues = Object.keys(filter).filter((v) => filter[v])
569
+ const activeTypes = Object.keys(this.TYPE_MAPPING).filter((type) =>
570
+ this.TYPE_MAPPING[type].every((t: string) => activeValues.includes(t))
571
+ )
572
+
573
+ // Allow unknown values eg. 'type=somethingnotexist' (for UI to select none)
574
+ const allTypes = [].concat(...Object.values(this.TYPE_MAPPING))
575
+ const unknownValues = activeValues.filter(
576
+ (value) => !allTypes.includes(value)
577
+ )
578
+
579
+ return of([...activeTypes, ...unknownValues])
580
+ }
581
+ }
@@ -5,6 +5,6 @@
5
5
  [selected]="currentLang"
6
6
  ariaName="languages"
7
7
  [showTitle]="false"
8
- extraBtnClass="bg-transparent flex justify-items-center !pl-2 !py-1"
8
+ extraBtnClass="bg-transparent flex justify-items-center !pl-2 !py-1 rounded-lg"
9
9
  >
10
10
  </gn-ui-dropdown-selector>
@@ -57,6 +57,7 @@ export class ChartComponent implements OnChanges, AfterViewInit {
57
57
  this.dataRaw = value
58
58
  }
59
59
  @Input() labelProperty: string
60
+ @Input() prettyLabel: string
60
61
  @Input() valueProperty: string
61
62
  @Input() secondaryValueProperty: string
62
63
  @Input() type: InputChartType = 'bar'
@@ -95,7 +96,7 @@ export class ChartComponent implements OnChanges, AfterViewInit {
95
96
  labels: this.getDataProxy(this.labelProperty) as string[],
96
97
  datasets: [
97
98
  {
98
- label: this.valueProperty,
99
+ label: this.prettyLabel,
99
100
  data,
100
101
  },
101
102
  ],
@@ -8,21 +8,24 @@
8
8
  [matSortDisableClear]="true"
9
9
  *ngrxLet="properties$ as properties"
10
10
  >
11
- <ng-container *ngFor="let prop of properties" [matColumnDef]="prop">
11
+ <ng-container
12
+ *ngFor="let attr of _featureAttributes"
13
+ [matColumnDef]="attr.value"
14
+ >
12
15
  <th
13
16
  mat-header-cell
14
17
  *matHeaderCellDef
15
18
  mat-sort-header
16
19
  class="text-sm text-black bg-white"
17
20
  >
18
- {{ prop }}
21
+ {{ attr.label }}
19
22
  </th>
20
23
  <td
21
24
  mat-cell
22
25
  *matCellDef="let element"
23
26
  class="whitespace-nowrap pr-1 truncate"
24
27
  >
25
- {{ element[prop] }}
28
+ {{ element[attr.value] }}
26
29
  </td>
27
30
  </ng-container>
28
31
 
@@ -61,13 +61,14 @@ export interface TableItemModel {
61
61
  changeDetection: ChangeDetectionStrategy.OnPush,
62
62
  })
63
63
  export class DataTableComponent implements OnInit, AfterViewInit, OnChanges {
64
+ _featureAttributes = []
65
+ @Input() set featureAttributes(value: { value: string; label: string }[]) {
66
+ this._featureAttributes = value
67
+ this.properties$.next(value.map((attr) => attr.value))
68
+ }
64
69
  @Input() set dataset(value: BaseReader) {
65
- this.properties$.next(null)
66
70
  this.dataset_ = value
67
71
  this.dataset_.load()
68
- this.dataset_.properties.then((properties) =>
69
- this.properties$.next(properties.map((p) => p.name))
70
- )
71
72
  this.dataset_.info.then((info) => (this.count = info.itemsCount))
72
73
  }
73
74
  @Input() activeId: TableItemId
@@ -7,6 +7,7 @@ export * from './lib/downloads-list/downloads-list.component'
7
7
  export * from './lib/error/error.component'
8
8
  export * from './lib/image-input/image-input.component'
9
9
  export * from './lib/image-overlay-preview/image-overlay-preview.component'
10
+ export * from './lib/kind-badge/kind-badge.component'
10
11
  export * from './lib/link-card/link-card.component'
11
12
  export * from './lib/markdown-editor/markdown-editor.component'
12
13
  export * from './lib/markdown-parser/markdown-parser.component'
@@ -24,3 +25,4 @@ export * from './lib/user-feedback-item/user-feedback-item.component'
24
25
  export * from './lib/user-preview/user-preview.component'
25
26
  export * from './lib/application-banner/application-banner.component'
26
27
  export * from './lib/internal-link-card/internal-link-card.component'
28
+ export * from './lib/service-capabilities/service-capabilities.component'
@@ -1,12 +1,12 @@
1
1
  <div
2
- class="group flex justify-between rounded filter overflow-hidden"
2
+ class="group flex justify-between rounded filter overflow-hidden card-shadow"
3
3
  [ngClass]="cardClass"
4
4
  >
5
5
  <ng-container *ngIf="size !== 'S'">
6
- <div>
6
+ <div class="flex-1 min-w-0">
7
7
  <ng-container *ngTemplateOutlet="content"></ng-container>
8
8
  </div>
9
- <div class="flex items-center">
9
+ <div class="flex items-center min-w-[32px]">
10
10
  <ng-container *ngTemplateOutlet="buttons"></ng-container>
11
11
  </div>
12
12
  </ng-container>
@@ -51,7 +51,7 @@
51
51
  </ng-template>
52
52
 
53
53
  <ng-template #content>
54
- <div>
54
+ <div class="flex-1 min-w-0">
55
55
  <div class="gn-ui-card-title">
56
56
  {{ link.description || link.name }}
57
57
  </div>
@@ -1,20 +1,20 @@
1
1
  <a
2
2
  href="{{ link.url }}"
3
3
  target="_blank"
4
- class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden"
4
+ class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden w-full"
5
5
  rel="noopener"
6
6
  [ngClass]="cardClass"
7
7
  >
8
- <div class="flex flex-col justify-between">
8
+ <div class="flex flex-col flex-1 justify-between min-w-0">
9
9
  <div class="gn-ui-card-title" [title]="link.description || link.name">
10
10
  {{ link.description || link.name }}
11
11
  </div>
12
12
  <div class="gn-ui-card-detail">
13
13
  {{ link.name }}
14
14
  </div>
15
- <div class="flex flex-row gap-2 items-center pt-1">
15
+ <div class="flex flex-row gap-2 items-center pt-1 min-w-0">
16
16
  <span
17
- class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100"
17
+ class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100 whitespace-nowrap"
18
18
  [style.background-color]="color"
19
19
  data-cy="download-format"
20
20
  >{{ format || ('downloads.format.unknown' | translate) }}</span
@@ -24,7 +24,10 @@
24
24
  >
25
25
  </div>
26
26
  </div>
27
- <div class="flex" [ngClass]="size === 'S' ? 'items-end' : 'items-center'">
27
+ <div
28
+ class="flex min-w-[32px] flex-shrink-0"
29
+ [ngClass]="size === 'S' ? 'items-end' : 'items-center'"
30
+ >
28
31
  <div class="gn-ui-card-icon">
29
32
  <ng-icon
30
33
  class="inline-block card-icon align-middle"
@@ -27,7 +27,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
27
27
  ],
28
28
  })
29
29
  export class DownloadItemComponent {
30
- private _size: 'L' | 'M' | 'S' | 'XS'
30
+ private _size: CardSize
31
31
  @Input() link: DatasetOnlineResource
32
32
  @Input() color: string
33
33
  @Input() format: string
@@ -43,7 +43,7 @@ export class DownloadItemComponent {
43
43
  this._size = value
44
44
  this.cardClass = this.sizeClassMap[value]
45
45
  }
46
- get size(): 'L' | 'M' | 'S' | 'XS' {
46
+ get size(): CardSize {
47
47
  return this._size
48
48
  }
49
49
  cardClass = ''
@@ -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"
@@ -37,7 +37,7 @@ import { TranslateModule } from '@ngx-translate/core'
37
37
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
38
38
  import { fromEvent, Subscription } from 'rxjs'
39
39
 
40
- marker('record.kind.dataset')
40
+ marker('record.kind.data')
41
41
  marker('record.kind.reuse')
42
42
  marker('record.kind.service')
43
43
 
@@ -178,7 +178,7 @@ export class InternalLinkCardComponent implements OnInit {
178
178
 
179
179
  switch (this.record.kind.toLowerCase()) {
180
180
  case 'dataset':
181
- return { text: 'record.kind.dataset', icon: 'iconoirDatabase' }
181
+ return { text: 'record.kind.data', icon: 'iconoirDatabase' }
182
182
  case 'reuse':
183
183
  return { text: 'record.kind.reuse', icon: 'iconoirMap' }
184
184
  case 'service':
@@ -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
+ }