geonetwork-ui 2.6.0-dev.01d2b5fc0 → 2.6.0-dev.025a2f85d

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 (278) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  5. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  6. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +18 -11
  7. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  8. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  9. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +7 -3
  10. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
  11. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +2 -1
  12. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -3
  13. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  14. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  16. package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +2 -2
  17. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +2 -4
  18. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  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-web-component/data-view-web-component.component.mjs +7 -11
  21. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +45 -14
  22. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  23. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  24. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  25. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  26. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  27. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  28. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  29. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  30. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -15
  31. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  32. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  33. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  34. package/esm2022/libs/ui/elements/src/index.mjs +3 -1
  35. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +27 -6
  36. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +22 -6
  37. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +3 -3
  38. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +163 -0
  39. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +29 -7
  40. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  41. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  42. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  43. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  44. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +3 -2
  45. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
  46. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
  47. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  48. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  49. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  50. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  51. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  52. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  53. package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +14 -3
  54. package/esm2022/libs/ui/map/src/lib/components/map-legend/map-legend.component.mjs +5 -1
  55. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +79 -0
  56. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  57. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  58. package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +6 -2
  59. package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +4 -1
  60. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +30 -2
  61. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  62. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  63. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  64. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -24
  65. package/esm2022/translations/de.json +34 -3
  66. package/esm2022/translations/en.json +35 -4
  67. package/esm2022/translations/es.json +34 -3
  68. package/esm2022/translations/fr.json +36 -5
  69. package/esm2022/translations/it.json +34 -4
  70. package/esm2022/translations/nl.json +34 -3
  71. package/esm2022/translations/pt.json +34 -3
  72. package/fesm2022/geonetwork-ui.mjs +1367 -531
  73. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  74. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  75. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  76. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  77. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
  78. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  79. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  80. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +23 -4
  81. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  82. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  83. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  84. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -2
  85. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  86. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  87. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  88. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  89. 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
  90. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  91. package/libs/feature/record/src/index.d.ts +0 -1
  92. package/libs/feature/record/src/index.d.ts.map +1 -1
  93. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  94. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  95. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  96. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  97. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  98. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  99. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +7 -2
  100. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  101. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  102. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  103. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  104. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  105. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  106. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  107. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  108. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  109. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  110. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  111. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  112. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  113. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  114. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  115. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  116. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  117. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  118. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  119. package/libs/ui/elements/src/index.d.ts +2 -0
  120. package/libs/ui/elements/src/index.d.ts.map +1 -1
  121. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +9 -1
  122. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  123. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +8 -1
  124. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  125. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +43 -0
  126. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  127. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +10 -2
  128. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  129. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  130. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  131. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  132. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  133. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  134. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -1
  135. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  136. package/libs/ui/inputs/src/index.d.ts +0 -1
  137. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  138. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  139. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  140. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  141. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  142. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  143. package/libs/ui/map/src/index.d.ts +1 -0
  144. package/libs/ui/map/src/index.d.ts.map +1 -1
  145. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +4 -2
  146. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -1
  147. package/libs/ui/map/src/lib/components/map-legend/map-legend.component.d.ts.map +1 -1
  148. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  149. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  150. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  151. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  152. package/libs/util/data-fetcher/src/lib/model.d.ts +3 -2
  153. package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
  154. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +1 -0
  155. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  156. package/libs/util/shared/src/index.d.ts +1 -0
  157. package/libs/util/shared/src/index.d.ts.map +1 -1
  158. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  159. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  160. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  161. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  162. package/libs/util/shared/src/lib/links/link-utils.d.ts +30 -23
  163. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  164. package/package.json +1 -1
  165. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  166. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  167. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  168. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  169. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  170. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
  171. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  172. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  173. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  174. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +20 -12
  175. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  176. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +22 -3
  177. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  178. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  179. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  180. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +18 -2
  181. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +1 -0
  182. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
  183. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +1 -0
  184. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +10 -8
  185. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
  186. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  187. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  188. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  189. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  190. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -3
  191. package/src/libs/feature/record/src/index.ts +0 -1
  192. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  193. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  194. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +1 -0
  195. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +41 -7
  196. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  197. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  198. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  199. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  200. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  201. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  202. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  203. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  204. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  205. package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -8
  206. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  207. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  208. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  209. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  210. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  211. package/src/libs/ui/elements/src/index.ts +2 -0
  212. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +64 -38
  213. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +26 -2
  214. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +17 -17
  215. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +20 -2
  216. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +7 -6
  217. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
  218. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
  219. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +27 -29
  220. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +33 -3
  221. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +1 -1
  222. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +1 -1
  223. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  224. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +13 -4
  225. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  226. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +4 -2
  227. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -1
  228. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  229. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  230. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  231. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
  232. package/src/libs/ui/inputs/src/index.ts +0 -1
  233. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +5 -5
  234. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  235. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  236. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -4
  237. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  238. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  239. package/src/libs/ui/map/src/index.ts +1 -0
  240. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +14 -0
  241. package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.ts +3 -0
  242. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  243. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  244. 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
  245. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  246. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  247. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -2
  248. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +3 -1
  249. package/src/libs/util/data-fetcher/src/lib/model.ts +11 -1
  250. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +29 -3
  251. package/src/libs/util/shared/src/index.ts +1 -0
  252. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  253. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  254. package/src/libs/util/shared/src/lib/links/link-utils.ts +50 -30
  255. package/tailwind.base.css +51 -13
  256. package/translations/de.json +34 -3
  257. package/translations/en.json +35 -4
  258. package/translations/es.json +34 -3
  259. package/translations/fr.json +36 -5
  260. package/translations/it.json +34 -4
  261. package/translations/nl.json +34 -3
  262. package/translations/pt.json +34 -3
  263. package/translations/sk.json +34 -3
  264. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  265. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  266. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  267. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  268. 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
  269. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  270. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  271. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  272. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  273. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  274. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  275. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  276. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  277. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  278. /package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css → ui/elements/src/lib/internal-link-card/internal-link-card.component.css} +0 -0
@@ -0,0 +1,190 @@
1
+ import {
2
+ Component,
3
+ Input,
4
+ TemplateRef,
5
+ OnInit,
6
+ Output,
7
+ EventEmitter,
8
+ ElementRef,
9
+ } from '@angular/core'
10
+ import {
11
+ CatalogRecord,
12
+ Organization,
13
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
14
+ import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'
15
+ import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
16
+ import { MetadataQualityComponent } from '../metadata-quality/metadata-quality.component'
17
+ import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
18
+ import {
19
+ propagateToDocumentOnly,
20
+ removeWhitespace,
21
+ stripHtml,
22
+ } from '../../../../../../libs/util/shared/src'
23
+ import {
24
+ NgIconComponent,
25
+ provideIcons,
26
+ provideNgIconsConfig,
27
+ } from '@ng-icons/core'
28
+ import {
29
+ matLocationSearchingOutline,
30
+ matEmailOutline,
31
+ matPhoneOutline,
32
+ matLocationOnOutline,
33
+ } from '@ng-icons/material-icons/outline'
34
+ import { matCode } from '@ng-icons/material-icons/baseline'
35
+ import { iconoirDatabase, iconoirMap, iconoirInternet } from '@ng-icons/iconoir'
36
+ import { TranslateModule } from '@ngx-translate/core'
37
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
38
+ import { fromEvent, Subscription } from 'rxjs'
39
+
40
+ marker('record.kind.data')
41
+ marker('record.kind.reuse')
42
+ marker('record.kind.service')
43
+
44
+ type CardSize = 'L' | 'M' | 'S' | 'XS'
45
+
46
+ @Component({
47
+ selector: 'gn-ui-internal-link-card',
48
+ standalone: true,
49
+ imports: [
50
+ NgClass,
51
+ NgIf,
52
+ ThumbnailComponent,
53
+ MetadataQualityComponent,
54
+ NgTemplateOutlet,
55
+ NgIconComponent,
56
+ TranslateModule,
57
+ MarkdownParserComponent,
58
+ ],
59
+ providers: [
60
+ provideIcons({
61
+ matLocationSearchingOutline,
62
+ matCode,
63
+ iconoirDatabase,
64
+ iconoirMap,
65
+ iconoirInternet,
66
+ matEmailOutline,
67
+ matPhoneOutline,
68
+ matLocationOnOutline,
69
+ }),
70
+ provideNgIconsConfig({
71
+ size: '1.2em',
72
+ }),
73
+ ],
74
+ templateUrl: './internal-link-card.component.html',
75
+ styleUrls: ['./internal-link-card.component.css'],
76
+ })
77
+ export class InternalLinkCardComponent implements OnInit {
78
+ @Input() record: CatalogRecord
79
+ @Input() metadataQualityDisplay: boolean
80
+ @Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
81
+ @Input() linkHref: string = null
82
+ @Input() isGeodata: boolean
83
+ @Input() set size(value: CardSize) {
84
+ this._size = value
85
+ this.cardClass = this.sizeClassMap[value] || ''
86
+ this.thumbnailContainerClass = this.thumbnailSizeClassMap[value] || 'hidden'
87
+ }
88
+ get size(): CardSize {
89
+ return this._size
90
+ }
91
+ @Output() mdSelect = new EventEmitter<CatalogRecord>()
92
+ subscription = new Subscription()
93
+
94
+ abstract: string
95
+
96
+ cardClass = ''
97
+ thumbnailContainerClass = ''
98
+
99
+ private _size: CardSize = 'M'
100
+
101
+ private readonly sizeClassMap: Record<CardSize, string> = {
102
+ L: 'min-h-[190px] md:w-[992px] py-3 px-3 flex items-start gap-5',
103
+ M: 'min-h-[140px] md:w-[570px] py-3 px-3 flex items-start gap-4',
104
+ S: 'min-h-[220px] md:w-[370px] py-3 px-3 flex gap-4',
105
+ XS: 'min-h-[108px] md:w-[570px] py-3 px-3 flex gap-4',
106
+ }
107
+
108
+ private readonly thumbnailSizeClassMap: Record<CardSize, string> = {
109
+ L: 'w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
110
+ M: 'w-[110px] h-[140px] rounded-lg overflow-hidden shrink-0',
111
+ S: 'hidden',
112
+ XS: 'hidden',
113
+ }
114
+
115
+ private readonly titleClassMap: Record<CardSize, string> = {
116
+ L: 'text-xl line-clamp-2',
117
+ M: 'text-base line-clamp-2',
118
+ S: 'text-base line-clamp-3',
119
+ XS: 'text-base mt-3 line-clamp-2',
120
+ }
121
+
122
+ constructor(protected elementRef: ElementRef) {}
123
+
124
+ ngOnInit(): void {
125
+ this.abstract = removeWhitespace(stripHtml(this.record?.abstract))
126
+ this.subscription.add(
127
+ fromEvent(this.elementRef.nativeElement, 'click').subscribe(
128
+ (event: Event) => {
129
+ event.preventDefault()
130
+ propagateToDocumentOnly(event)
131
+ this.mdSelect.emit(this.record)
132
+ }
133
+ )
134
+ )
135
+ }
136
+
137
+ get organization(): Organization {
138
+ return this.record.ownerOrganization
139
+ }
140
+
141
+ get contacts() {
142
+ return (
143
+ (this.record.kind === 'dataset'
144
+ ? this.record.contactsForResource
145
+ : this.record.contacts) || []
146
+ )
147
+ }
148
+
149
+ getTitleClass() {
150
+ return (
151
+ this.titleClassMap[this._size] +
152
+ ' ' +
153
+ (this.record.ownerOrganization?.name ? '' : 'mt-3') || ''
154
+ )
155
+ }
156
+
157
+ openExternalUrl(event: Event, url: URL): void {
158
+ event.stopPropagation()
159
+ window.open(url, '_blank')
160
+ }
161
+
162
+ openMailto(event: Event, email: string): void {
163
+ event.stopPropagation()
164
+ window.open(`mailto:${email}`, '_blank')
165
+ }
166
+
167
+ copyToClipboard(event: Event, text: string): void {
168
+ event.stopPropagation()
169
+ navigator.clipboard.writeText(text)
170
+ }
171
+
172
+ get shouldShowThumbnail(): boolean {
173
+ return this.size === 'L' || this.size === 'M'
174
+ }
175
+
176
+ getKindInfo(): { text: string; icon: string } {
177
+ if (!this.record?.kind) return { text: '', icon: '' }
178
+
179
+ switch (this.record.kind.toLowerCase()) {
180
+ case 'dataset':
181
+ return { text: 'record.kind.data', icon: 'iconoirDatabase' }
182
+ case 'reuse':
183
+ return { text: 'record.kind.reuse', icon: 'iconoirMap' }
184
+ case 'service':
185
+ return { text: 'record.kind.service', icon: 'matCode' }
186
+ default:
187
+ return { text: '', icon: '' }
188
+ }
189
+ }
190
+ }
@@ -1,39 +1,37 @@
1
1
  <a
2
2
  [href]="link.url"
3
3
  target="_blank"
4
- class="flex flex-col justify-between group grow py-5 px-5 bg-white rounded border-gray-300 filter card-shadow overflow-hidden"
5
- [ngClass]="{ 'h-40': !compact }"
4
+ class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden"
5
+ [ngClass]="cardClass"
6
6
  [title]="title"
7
7
  >
8
- <ng-container *ngIf="!compact; else compactTpl">
9
- <div class="max-h-24 overflow-hidden text-ellipsis">
10
- <p
11
- class="font-title font-medium text-21 text-black break-words mb-1 line-clamp-2"
12
- >
13
- {{ link.name }}
14
- </p>
15
- <p class="font-medium text-sm break-words">
16
- {{ link.description }}
17
- </p>
18
- <p
19
- *ngIf="!link.name && !link.description"
20
- class="font-medium text-sm break-words truncate"
21
- >
22
- {{ link.url }}
23
- </p>
8
+ <div class="flex flex-col justify-between">
9
+ <div class="gn-ui-card-title">
10
+ {{ link.description || link.name }}
24
11
  </div>
25
- <div>
26
- <ng-icon class="card-icon" name="matOpenInNew"></ng-icon>
12
+ <div class="gn-ui-card-detail">
13
+ {{ link.name }}
27
14
  </div>
28
- </ng-container>
29
- <ng-template #compactTpl>
30
- <div class="flex items-center justify-between gap-4">
31
- <p
32
- class="overflow-hidden font-title font-medium text-21 text-black text-ellipsis whitespace-nowrap"
15
+ <p *ngIf="!link.name && !link.description" class="gn-ui-card-title">
16
+ {{ link.url }}
17
+ </p>
18
+ <div class="pt-1">
19
+ <span
20
+ 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"
21
+ [style.background-color]="getLinkColor(link)"
22
+ data-cy="download-format"
23
+ >{{
24
+ getLinkFormat(link) || ('downloads.format.unknown' | translate)
25
+ }}</span
33
26
  >
34
- {{ link.name || link.description }}
35
- </p>
36
- <ng-icon class="card-icon flex-shrink-0" name="matOpenInNew"></ng-icon>
37
27
  </div>
38
- </ng-template>
28
+ </div>
29
+ <div class="flex" [ngClass]="size === 'S' ? 'items-end' : 'items-center'">
30
+ <div class="gn-ui-card-icon">
31
+ <ng-icon
32
+ class="inline-block card-icon align-middle"
33
+ name="matOpenInNew"
34
+ ></ng-icon>
35
+ </div>
36
+ </div>
39
37
  </a>
@@ -1,5 +1,9 @@
1
1
  import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
2
+ import {
3
+ DatasetDownloadDistribution,
4
+ DatasetOnlineResource,
5
+ DatasetServiceDistribution,
6
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
3
7
  import { CommonModule } from '@angular/common'
4
8
  import {
5
9
  NgIconComponent,
@@ -7,14 +11,17 @@ import {
7
11
  provideNgIconsConfig,
8
12
  } from '@ng-icons/core'
9
13
  import { matOpenInNew } from '@ng-icons/material-icons/baseline'
14
+ import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
15
+ import { TranslateModule } from '@ngx-translate/core'
10
16
 
17
+ type CardSize = 'L' | 'M' | 'S' | 'XS'
11
18
  @Component({
12
19
  selector: 'gn-ui-link-card',
13
20
  templateUrl: './link-card.component.html',
14
21
  styleUrls: ['./link-card.component.css'],
15
22
  changeDetection: ChangeDetectionStrategy.OnPush,
16
23
  standalone: true,
17
- imports: [CommonModule, NgIconComponent],
24
+ imports: [CommonModule, NgIconComponent, TranslateModule],
18
25
  providers: [
19
26
  provideIcons({
20
27
  matOpenInNew,
@@ -23,8 +30,23 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
23
30
  ],
24
31
  })
25
32
  export class LinkCardComponent {
33
+ private _size: 'L' | 'M' | 'S' | 'XS'
26
34
  @Input() link: DatasetOnlineResource
27
- @Input() compact = false
35
+ private readonly sizeClassMap: Record<CardSize, string> = {
36
+ L: 'gn-ui-card-l py-2 px-5',
37
+ M: 'gn-ui-card-m py-2 px-5',
38
+ S: 'gn-ui-card-s p-4',
39
+ XS: 'gn-ui-card-xs py-2 px-5',
40
+ }
41
+
42
+ @Input() set size(value: CardSize) {
43
+ this._size = value
44
+ this.cardClass = this.sizeClassMap[value]
45
+ }
46
+ get size(): 'L' | 'M' | 'S' | 'XS' {
47
+ return this._size
48
+ }
49
+ cardClass = ''
28
50
 
29
51
  get title() {
30
52
  if (this.link.name && this.link.description) {
@@ -32,4 +54,12 @@ export class LinkCardComponent {
32
54
  }
33
55
  return this.link.name || this.link.description || ''
34
56
  }
57
+
58
+ getLinkFormat(link: any) {
59
+ return getFileFormat(link)
60
+ }
61
+
62
+ getLinkColor(link: any) {
63
+ return getBadgeColor(getFileFormat(link))
64
+ }
35
65
  }
@@ -1,5 +1,5 @@
1
1
  <div>
2
- <p class="text-gray-700 text-xs mb-3 uppercase" translate>
2
+ <p class="text-gray-900 text-xs mb-3 uppercase" translate>
3
3
  record.metadata.catalog
4
4
  </p>
5
5
  <p class="text-primary font-title text-21 mb-1">
@@ -1,4 +1,4 @@
1
- <div class="py-5 px-5 rounded bg-gray-100 text-black mb-6">
1
+ <div class="py-5 px-5 rounded bg-gray-100 text-black">
2
2
  <div class="grid gap-3 overflow-hidden">
3
3
  <div>
4
4
  <p class="text-sm font-medium" translate>record.metadata.contact</p>
@@ -11,3 +11,12 @@
11
11
  :host ::ng-deep gn-ui-copy-text-button button ng-icon {
12
12
  transform: scale(0.8);
13
13
  }
14
+
15
+ :host {
16
+ --gn-ui-badge-background-color: var(--color-primary-white);
17
+ --gn-ui-badge-text-color: var(--color-primary-darkest);
18
+ }
19
+
20
+ :host ::ng-deep gn-ui-badge:hover {
21
+ --gn-ui-badge-text-color: white;
22
+ }
@@ -13,7 +13,7 @@
13
13
  </gn-ui-content-ghost>
14
14
 
15
15
  <p
16
- class="mt-6 mb-3 font-medium text-primary text-sm"
16
+ class="mt-6 mb-3 font-medium text-black text-sm"
17
17
  translate
18
18
  *ngIf="!fieldReady('keywords') || metadata.keywords?.length"
19
19
  >
@@ -96,10 +96,10 @@
96
96
  </gn-ui-expandable-panel>
97
97
  <gn-ui-expandable-panel
98
98
  *ngIf="
99
- metadata.lineage ||
99
+ (metadata.kind === 'dataset' && metadata.lineage) ||
100
100
  metadata.resourceUpdated ||
101
101
  metadata.updateFrequency ||
102
- metadata.status
102
+ (metadata.kind === 'dataset' && metadata.status)
103
103
  "
104
104
  [title]="'record.metadata.details' | translate"
105
105
  >
@@ -225,9 +225,18 @@
225
225
  </div>
226
226
  </div>
227
227
  </gn-ui-expandable-panel>
228
+ <gn-ui-expandable-panel
229
+ *ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
230
+ [title]="'service.metadata.spatialExtent' | translate"
231
+ >
232
+ <gn-ui-spatial-extent
233
+ class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
234
+ [spatialExtents]="metadata.spatialExtents"
235
+ ></gn-ui-spatial-extent>
236
+ </gn-ui-expandable-panel>
228
237
  <gn-ui-expandable-panel
229
238
  *ngIf="metadata.landingPage"
230
- [title]="'record.metadata.technical' | translate"
239
+ [title]="'service.metadata.other' | translate"
231
240
  >
232
241
  <div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
233
242
  <div *ngIf="metadata.recordUpdated">
@@ -6,7 +6,7 @@ import {
6
6
  Output,
7
7
  } from '@angular/core'
8
8
  import {
9
- DatasetRecord,
9
+ CatalogRecord,
10
10
  Keyword,
11
11
  } from '../../../../../../libs/common/domain/src/lib/model/record'
12
12
  import { DateService, getTemporalRangeUnion } from '../../../../../../libs/util/shared/src'
@@ -22,12 +22,17 @@ import {
22
22
  } from '../../../../../../libs/ui/inputs/src'
23
23
  import { ContentGhostComponent } from '../content-ghost/content-ghost.component'
24
24
  import { NgIcon, provideIcons } from '@ng-icons/core'
25
- import { CommonModule } from '@angular/common'
26
25
  import { matOpenInNew } from '@ng-icons/material-icons/baseline'
27
26
  import { matMailOutline } from '@ng-icons/material-icons/outline'
28
27
  import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
29
28
  import { GnUiLinkifyDirective } from './linkify.directive'
30
29
 
30
+ import { CommonModule } from '@angular/common'
31
+ import {
32
+ MapContainerComponent,
33
+ SpatialExtentComponent,
34
+ } from '../../../../../../libs/ui/map/src'
35
+
31
36
  @Component({
32
37
  selector: 'gn-ui-metadata-info',
33
38
  templateUrl: './metadata-info.component.html',
@@ -46,6 +51,8 @@ import { GnUiLinkifyDirective } from './linkify.directive'
46
51
  CopyTextButtonComponent,
47
52
  NgIcon,
48
53
  GnUiLinkifyDirective,
54
+ MapContainerComponent,
55
+ SpatialExtentComponent,
49
56
  ],
50
57
  viewProviders: [
51
58
  provideIcons({
@@ -55,7 +62,7 @@ import { GnUiLinkifyDirective } from './linkify.directive'
55
62
  ],
56
63
  })
57
64
  export class MetadataInfoComponent {
58
- @Input() metadata: Partial<DatasetRecord>
65
+ @Input() metadata: Partial<CatalogRecord>
59
66
  @Input() incomplete: boolean
60
67
  @Output() keyword = new EventEmitter<Keyword>()
61
68
  updatedTimes: number
@@ -122,7 +129,8 @@ export class MetadataInfoComponent {
122
129
  }
123
130
 
124
131
  get temporalExtent(): { start: string; end: string } {
125
- const temporalExtents = this.metadata.temporalExtents
132
+ const temporalExtents =
133
+ this.metadata.kind === 'dataset' ? this.metadata.temporalExtents : []
126
134
  return getTemporalRangeUnion(temporalExtents, this.dateService)
127
135
  }
128
136
 
@@ -1,7 +1,9 @@
1
- <div *ngIf="metadataQualityDisplay" class="mb-6 metadata-quality">
1
+ <div *ngIf="metadataQualityDisplay" class="metadata-quality">
2
2
  <div
3
3
  class="flex items-center"
4
- [class]="smaller ? 'leading-[8px] min-w-[120px]' : 'min-w-[200px]'"
4
+ [class]="
5
+ smaller ? 'leading-[8px] min-w-[120px] m-h-[120px]' : 'min-w-[200px]'
6
+ "
5
7
  >
6
8
  <gn-ui-progress-bar
7
9
  tabindex="0"
@@ -162,7 +162,7 @@ export class RecordApiFormComponent {
162
162
  limit: limit !== '-1' ? Number(limit) : -1,
163
163
  offset: offset !== '' ? Number(offset) : undefined,
164
164
  outputCrs:
165
- format === ('application/json' || 'geojson') ? 'EPSG:4326' : undefined,
165
+ format.toLowerCase().indexOf('json') > -1 ? 'EPSG:4326' : undefined,
166
166
  }
167
167
 
168
168
  if (this.endpoint instanceof WfsEndpoint) {
@@ -170,6 +170,7 @@ export class RecordApiFormComponent {
170
170
  options.maxFeatures = limit !== '-1' ? Number(limit) : undefined
171
171
  return this.endpoint.getFeatureUrl(this.apiFeatureType, options)
172
172
  } else {
173
+ delete options.outputCrs
173
174
  return await this.endpoint.getCollectionItemsUrl(
174
175
  this.apiFeatureType,
175
176
  options
@@ -0,0 +1,96 @@
1
+ <div style="height: 652px" id="preview" *ngIf="apiLinks.length > 0">
2
+ <div class="bg-primary-opacity-10 overflow-visible" style="height: 512px">
3
+ <div class="container-lg px-4 lg:mx-auto">
4
+ <div>
5
+ <div class="gn-ui-section-title mb-6" translate>
6
+ service.metadata.capabilities
7
+ </div>
8
+ <div
9
+ *ngIf="loading"
10
+ class="flex justify-center w-full h-[200px] items-center"
11
+ >
12
+ <gn-ui-spinning-loader></gn-ui-spinning-loader>
13
+ </div>
14
+ <div *ngIf="!loading">
15
+ <div class="flex flex-row gap-5">
16
+ <div class="h-14 md:w-2/5 w-full mb-4 flex flex-row relative">
17
+ <gn-ui-text-input
18
+ class="w-full"
19
+ [extraClass]="getExtraInputClass()"
20
+ [placeholder]="'service.metadata.search' | translate"
21
+ (input)="onSearchChange($event)"
22
+ (keydown.enter)="onSearchEnter($event)"
23
+ >
24
+ </gn-ui-text-input>
25
+ <div class="border-l absolute border-gray-200 right-0 h-14 w-14">
26
+ <gn-ui-button
27
+ #inputBtn
28
+ type="outline"
29
+ extraClass="h-12 w-12 border-0 absolute right-1 top-1"
30
+ (buttonClick)="searchLayers()"
31
+ >
32
+ <ng-icon name="iconoirSearch"></ng-icon>
33
+ </gn-ui-button>
34
+ </div>
35
+ </div>
36
+ <gn-ui-popover
37
+ [content]="popoverItems"
38
+ theme="light"
39
+ class="w-14 h-14 border border-gray-300 rounded-lg flex justify-center items-center"
40
+ >
41
+ <ng-icon name="matInfoOutline" class="w-6 h-6 pt-0.5"></ng-icon>
42
+ </gn-ui-popover>
43
+ </div>
44
+ <div
45
+ style="height: 500px"
46
+ class="bg-white shadow-xl rounded p-0 flex md:flex-row flex-col"
47
+ >
48
+ <div
49
+ class="flex flex-col gap-2 bg-gray-100 md:w-1/2 md:h-full w-full h-1/2 rounded-l overflow-y-auto py-5 pr-1 pl-3"
50
+ data-test="layer-list"
51
+ >
52
+ <gn-ui-button
53
+ *ngFor="let layerItem of filteredLayers"
54
+ type="outline"
55
+ [extraClass]="getExtraClass(layerItem)"
56
+ (buttonClick)="selectLayer(layerItem)"
57
+ >
58
+ {{ layerItem.title || layerItem.name }}
59
+ </gn-ui-button>
60
+ <span *ngIf="filteredLayers.length === 0" class="text-gray-800">
61
+ {{ 'service.metadata.filter.noLayers' | translate }}
62
+ </span>
63
+ </div>
64
+ <div
65
+ data-test="layer-information"
66
+ class="flex flex-col gap-4 md:h-full md:w-1/2 w-full h-1/2 py-5 px-10 overflow-y-auto"
67
+ >
68
+ <div
69
+ *ngFor="let item of layerInformation"
70
+ class="flex flex-row gap-4 border-b border-gray-200"
71
+ >
72
+ <span class="font-semibold w-24">{{ item.displayName }}</span>
73
+ <div *ngIf="isList(item.value)">
74
+ <div
75
+ *ngFor="let subItem of item.value"
76
+ class="flex flex-row break-words max-w-72"
77
+ >
78
+ {{ subItem }}
79
+ </div>
80
+ </div>
81
+ <div class="break-words max-w-72" *ngIf="!isList(item.value)">
82
+ {{ item.value }}
83
+ </div>
84
+ </div>
85
+ </div>
86
+ </div>
87
+ </div>
88
+ </div>
89
+ </div>
90
+ </div>
91
+ </div>
92
+ <ng-template #popoverItems>
93
+ <div class="p-2 py-4">
94
+ <div translate>service.metadata.filter</div>
95
+ </div>
96
+ </ng-template>