geonetwork-ui 2.6.0-dev.01d2b5fc0 → 2.6.0-dev.01f702fed

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 (387) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  7. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +18 -11
  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 +7 -3
  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/service/data.service.mjs +2 -1
  14. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +7 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  16. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  18. package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +2 -2
  19. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +2 -4
  20. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  21. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  22. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  23. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  24. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  25. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  26. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +45 -14
  27. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  28. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  29. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  30. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  31. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  32. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  33. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  34. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  35. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  36. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  37. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  38. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  39. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  40. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  41. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  42. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  43. package/esm2022/libs/ui/elements/src/index.mjs +4 -1
  44. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +27 -6
  45. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +22 -6
  46. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  47. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  48. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +163 -0
  49. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
  50. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +29 -7
  51. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  52. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  53. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  54. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  55. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +3 -2
  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 +22 -4
  58. package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
  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 +4 -3
  65. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  66. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  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/ui-layout.module.mjs +4 -12
  73. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  74. package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +14 -3
  75. package/esm2022/libs/ui/map/src/lib/components/map-legend/map-legend.component.mjs +5 -1
  76. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +79 -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/data-fetcher/src/lib/data-fetcher.mjs +6 -2
  86. package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +4 -1
  87. package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +30 -2
  88. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  89. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  90. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  91. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -24
  92. package/esm2022/translations/de.json +39 -4
  93. package/esm2022/translations/en.json +40 -5
  94. package/esm2022/translations/es.json +39 -4
  95. package/esm2022/translations/fr.json +40 -5
  96. package/esm2022/translations/it.json +39 -5
  97. package/esm2022/translations/nl.json +39 -4
  98. package/esm2022/translations/pt.json +39 -4
  99. package/fesm2022/geonetwork-ui.mjs +1771 -634
  100. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  101. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  102. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  103. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  104. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  105. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  106. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  107. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  108. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +1 -0
  109. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  110. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  111. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +23 -4
  112. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  113. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  114. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  115. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +2 -2
  116. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  117. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  118. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  119. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  120. 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
  121. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  122. package/libs/feature/record/src/index.d.ts +0 -1
  123. package/libs/feature/record/src/index.d.ts.map +1 -1
  124. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  125. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  126. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  127. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  128. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  129. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  130. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  131. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  132. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +7 -2
  133. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  134. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  135. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  136. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  137. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  138. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  139. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  140. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  141. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  142. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  143. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  144. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  145. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  146. package/libs/feature/search/src/index.d.ts +1 -1
  147. package/libs/feature/search/src/index.d.ts.map +1 -1
  148. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  149. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  150. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  151. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  152. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  153. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  154. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  155. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  156. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  157. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  158. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  159. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  160. package/libs/ui/elements/src/index.d.ts +3 -0
  161. package/libs/ui/elements/src/index.d.ts.map +1 -1
  162. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +9 -1
  163. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  164. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +8 -1
  165. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  166. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  167. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  168. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +43 -0
  169. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  170. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
  171. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  172. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +10 -2
  173. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  174. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  175. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  176. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  177. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  178. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  179. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +4 -1
  180. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  181. package/libs/ui/inputs/src/index.d.ts +1 -1
  182. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  183. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  184. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  185. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  186. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  187. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  188. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  189. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  190. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  191. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  192. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  193. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  194. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  195. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  196. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  197. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  198. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  199. package/libs/ui/map/src/index.d.ts +1 -0
  200. package/libs/ui/map/src/index.d.ts.map +1 -1
  201. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +4 -2
  202. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -1
  203. package/libs/ui/map/src/lib/components/map-legend/map-legend.component.d.ts.map +1 -1
  204. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  205. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  206. package/libs/ui/search/src/index.d.ts +1 -0
  207. package/libs/ui/search/src/index.d.ts.map +1 -1
  208. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  209. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  210. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  211. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  212. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  213. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  214. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  215. package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
  216. package/libs/util/data-fetcher/src/lib/model.d.ts +3 -2
  217. package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
  218. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +1 -0
  219. package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -1
  220. package/libs/util/shared/src/index.d.ts +1 -0
  221. package/libs/util/shared/src/index.d.ts.map +1 -1
  222. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  223. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  224. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  225. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  226. package/libs/util/shared/src/lib/links/link-utils.d.ts +30 -23
  227. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  228. package/package.json +1 -1
  229. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  230. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  231. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  232. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  233. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  234. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  235. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  236. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
  237. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  238. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  239. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  240. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +20 -12
  241. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  242. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +22 -3
  243. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  244. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  245. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  246. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +18 -2
  247. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +1 -0
  248. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
  249. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +1 -0
  250. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +10 -8
  251. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
  252. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  253. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  254. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  255. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  256. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -3
  257. package/src/libs/feature/record/src/index.ts +0 -1
  258. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
  259. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  260. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  261. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  262. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  263. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  264. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +22 -15
  265. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +41 -7
  266. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  267. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  268. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  269. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  270. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  271. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  272. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  273. package/src/libs/feature/search/src/index.ts +1 -1
  274. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  275. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  276. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  277. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  278. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  279. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  280. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  281. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  282. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  283. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  284. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  285. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  286. package/src/libs/ui/elements/src/index.ts +3 -0
  287. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +64 -38
  288. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +26 -2
  289. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +21 -18
  290. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +20 -2
  291. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +42 -10
  292. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  293. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  294. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.css +0 -0
  295. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
  296. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
  297. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  298. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
  299. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
  300. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +30 -29
  301. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +28 -2
  302. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  303. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
  304. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  305. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
  306. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  307. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +3 -2
  308. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -1
  309. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  310. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  311. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  312. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -0
  313. package/src/libs/ui/inputs/src/index.ts +1 -1
  314. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  315. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  316. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  317. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  318. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  319. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  320. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
  321. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  322. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  323. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  324. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  325. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  326. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  327. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -5
  328. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  329. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  330. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  331. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  332. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  333. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  334. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  335. package/src/libs/ui/map/src/index.ts +1 -0
  336. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +14 -0
  337. package/src/libs/ui/map/src/lib/components/map-legend/map-legend.component.ts +3 -0
  338. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  339. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  340. 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
  341. package/src/libs/ui/search/src/index.ts +1 -0
  342. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  343. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
  344. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  345. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  346. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  347. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  348. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +4 -3
  349. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  350. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  351. package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +3 -1
  352. package/src/libs/util/data-fetcher/src/lib/model.ts +11 -1
  353. package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +29 -3
  354. package/src/libs/util/shared/src/index.ts +1 -0
  355. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  356. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  357. package/src/libs/util/shared/src/lib/links/link-utils.ts +50 -30
  358. package/tailwind.base.config.js +3 -0
  359. package/tailwind.base.css +39 -13
  360. package/translations/de.json +39 -4
  361. package/translations/en.json +40 -5
  362. package/translations/es.json +39 -4
  363. package/translations/fr.json +40 -5
  364. package/translations/it.json +39 -5
  365. package/translations/nl.json +39 -4
  366. package/translations/pt.json +39 -4
  367. package/translations/sk.json +39 -4
  368. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  369. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  370. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  371. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  372. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  373. 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
  374. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  375. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  376. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  377. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  378. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  379. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  380. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  381. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  382. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  383. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  384. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  385. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  386. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  387. /package/src/libs/feature/{editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css → search/src/lib/results-hits/results-hits.container.component.css} +0 -0
@@ -1,4 +1,5 @@
1
1
  import {
2
+ AfterViewChecked,
2
3
  ChangeDetectorRef,
3
4
  Directive,
4
5
  HostBinding,
@@ -11,20 +12,34 @@ import {
11
12
  @Directive({
12
13
  selector: '[gnUiAnchorLink]',
13
14
  })
14
- export class AnchorLinkDirective implements OnInit, OnDestroy {
15
+ export class AnchorLinkDirective
16
+ implements OnInit, AfterViewChecked, OnDestroy
17
+ {
15
18
  @Input('gnUiAnchorLink') targetId: string
16
19
  @Input('gnUiAnchorLinkDisabledClass') disabledClass: string
17
20
  @Input('gnUiAnchorLinkEnabledClass') enabledClass: string
21
+ @Input('gnUiAnchorLinkInViewClass') inViewClass: string
22
+ @Input('gnUiAnchorLinkOutOfViewClass') outOfViewClass: string
18
23
 
19
24
  @HostBinding('class')
20
25
  get elementClass(): string {
21
- return this.disabled ? this.disabledClass : this.enabledClass
26
+ if (this.disabled) {
27
+ return this.disabledClass
28
+ }
29
+ if (this.inView) {
30
+ return `${this.inViewClass} ${this.enabledClass}`
31
+ } else {
32
+ return `${this.outOfViewClass} ${this.enabledClass}`
33
+ }
22
34
  }
23
35
 
24
36
  disabled = false
25
37
  observer = new MutationObserver(() => {
26
38
  this.refreshDisabledState()
27
39
  })
40
+ inView = false
41
+ intersectionObserver: IntersectionObserver
42
+ initialized = false
28
43
 
29
44
  constructor(private changeDetector: ChangeDetectorRef) {}
30
45
 
@@ -36,8 +51,37 @@ export class AnchorLinkDirective implements OnInit, OnDestroy {
36
51
  this.refreshDisabledState()
37
52
  }
38
53
 
54
+ ngAfterViewChecked() {
55
+ if (!this.initialized && !this.disabled) {
56
+ const target = document.getElementById(this.targetId)
57
+ if (target) {
58
+ this.initializeIntersectionObserver(target)
59
+ this.initialized = true
60
+ }
61
+ }
62
+ }
63
+
64
+ initializeIntersectionObserver(target: HTMLElement) {
65
+ this.intersectionObserver = new IntersectionObserver(
66
+ (entries) => {
67
+ entries.forEach((entry) => {
68
+ this.inView = entry.isIntersecting
69
+ this.changeDetector.detectChanges()
70
+ })
71
+ },
72
+ {
73
+ root: null,
74
+ rootMargin: '-30% 0% -60% 0%',
75
+ }
76
+ )
77
+ this.intersectionObserver.observe(target)
78
+ }
79
+
39
80
  ngOnDestroy() {
40
81
  this.observer.disconnect()
82
+ if (this.intersectionObserver) {
83
+ this.intersectionObserver.disconnect()
84
+ }
41
85
  }
42
86
 
43
87
  refreshDisabledState() {
@@ -5,3 +5,25 @@
5
5
  :host {
6
6
  position: relative;
7
7
  }
8
+
9
+ @media screen and (min-width: 769px) {
10
+ .size-L {
11
+ grid-template-columns: repeat(1, minmax(0, 1fr));
12
+ grid-auto-rows: minmax(0, min-content);
13
+ }
14
+
15
+ .size-M {
16
+ grid-template-columns: repeat(2, minmax(0, 1fr));
17
+ grid-auto-rows: minmax(0, min-content);
18
+ }
19
+
20
+ .size-S {
21
+ grid-template-columns: repeat(3, minmax(0, 1fr));
22
+ grid-auto-rows: minmax(0, min-content);
23
+ }
24
+
25
+ .size-XS {
26
+ grid-template-columns: repeat(2, minmax(0, 1fr));
27
+ grid-auto-rows: minmax(0, min-content);
28
+ }
29
+ }
@@ -1,7 +1,7 @@
1
1
  <div
2
- class="block-list-container flex flex-col"
2
+ class="grid gap-4 w-full md:grid-cols-2"
3
3
  #blockContainer
4
- [ngClass]="containerClass"
4
+ [ngClass]="[containerClass, 'size-' + subComponentSize]"
5
5
  [ngStyle]="{ minHeight: minHeight + 'px' }"
6
6
  >
7
7
  <ng-content></ng-content>
@@ -5,7 +5,9 @@ import {
5
5
  Component,
6
6
  ContentChildren,
7
7
  ElementRef,
8
+ EventEmitter,
8
9
  Input,
10
+ Output,
9
11
  QueryList,
10
12
  ViewChild,
11
13
  } from '@angular/core'
@@ -13,6 +15,7 @@ import { CommonModule } from '@angular/common'
13
15
  import { Paginable } from '../paginable.interface'
14
16
  import { PaginationDotsComponent } from '../pagination-dots/pagination-dots.component'
15
17
 
18
+ type ComponentSize = 'L' | 'M' | 'S' | 'XS'
16
19
  @Component({
17
20
  selector: 'gn-ui-block-list',
18
21
  templateUrl: './block-list.component.html',
@@ -22,15 +25,16 @@ import { PaginationDotsComponent } from '../pagination-dots/pagination-dots.comp
22
25
  imports: [CommonModule, PaginationDotsComponent],
23
26
  })
24
27
  export class BlockListComponent implements AfterViewInit, Paginable {
25
- @Input() pageSize = 5
28
+ pageSize = 4
26
29
  @Input() containerClass = ''
27
30
  @Input() paginationContainerClass = 'w-full bottom-0 top-auto'
28
31
  @ContentChildren('block', { read: ElementRef }) blocks: QueryList<
29
32
  ElementRef<HTMLElement>
30
33
  >
31
34
  @ViewChild('blockContainer') blockContainer: ElementRef<HTMLElement>
32
-
33
35
  protected minHeight = 0
36
+ @Output() listChanges = new EventEmitter<BlockListComponent>()
37
+ subComponentSize: ComponentSize = 'M'
34
38
 
35
39
  protected currentPage_ = 0
36
40
  protected get pages() {
@@ -47,18 +51,26 @@ export class BlockListComponent implements AfterViewInit, Paginable {
47
51
  return this.blocks ? Math.ceil(this.blocks.length / this.pageSize) : 1
48
52
  }
49
53
  get currentPage() {
50
- return this.currentPage_ + 1 // this is 1-based
54
+ return this.currentPage_ + 1
51
55
  }
52
56
 
53
57
  constructor(private changeDetector: ChangeDetectorRef) {}
54
58
 
55
59
  ngAfterViewInit() {
56
- this.blocks.changes.subscribe(this.refreshBlocksVisibility)
60
+ this.blocks.changes.subscribe(() => {
61
+ this.updateSizes()
62
+ this.refreshBlocksVisibility()
63
+ this.goToPage(1)
64
+ this.changeDetector.detectChanges()
65
+ this.listChanges.emit(this)
66
+ })
67
+ this.updateSizes()
57
68
  this.refreshBlocksVisibility()
58
69
 
59
70
  // we store the first height as the min-height of the list container
60
71
  this.minHeight = this.blockContainer.nativeElement.clientHeight
61
72
  this.changeDetector.detectChanges()
73
+ this.listChanges.emit(this)
62
74
  }
63
75
 
64
76
  protected refreshBlocksVisibility = () => {
@@ -71,7 +83,33 @@ export class BlockListComponent implements AfterViewInit, Paginable {
71
83
  })
72
84
  }
73
85
 
74
- // pageIndex is 1-based
86
+ protected updateSizes() {
87
+ this.subComponentSize = this.computeSubComponentSize()
88
+ this.pageSize = this.computePageSize()
89
+ }
90
+
91
+ protected computeSubComponentSize(): ComponentSize {
92
+ if (!this.blocks) return 'M'
93
+ const subComponentsCount = this.blocks.length
94
+ if (subComponentsCount <= 3) return 'L'
95
+ if (subComponentsCount <= 12) return 'M'
96
+ if (subComponentsCount <= 18) return 'S'
97
+ return 'XS'
98
+ }
99
+
100
+ protected computePageSize(): number {
101
+ switch (this.subComponentSize) {
102
+ case 'L':
103
+ return 3
104
+ case 'S':
105
+ return 6
106
+ case 'XS':
107
+ return 8
108
+ default:
109
+ return 4
110
+ }
111
+ }
112
+
75
113
  public goToPage(pageIndex: number) {
76
114
  this.currentPage_ = Math.max(
77
115
  Math.min(pageIndex - 1, this.pagesCount - 1),
@@ -1,8 +1,3 @@
1
- :host .carousel-container ::ng-deep > * {
2
- flex-shrink: 0;
3
- }
4
-
5
1
  :host {
6
2
  position: relative;
7
- display: block;
8
3
  }
@@ -1,4 +1,4 @@
1
- <div #carouselOverflowContainer class="w-full">
1
+ <div #carouselOverflowContainer class="w-full block">
2
2
  <div class="carousel-container flex" [ngClass]="containerClass">
3
3
  <ng-content></ng-content>
4
4
  </div>
@@ -31,11 +31,7 @@
31
31
  *ngFor="let item of items"
32
32
  (click)="handleRowClick(item)"
33
33
  data-cy="table-row"
34
- [title]="
35
- !item.extras?.edit && !isDraftPage
36
- ? ('editor.record.lock.reason' | translate)
37
- : ''
38
- "
34
+ [title]="getItemTitle(item) | translate"
39
35
  >
40
36
  <div
41
37
  class="relative h-0"
@@ -52,9 +48,9 @@
52
48
  class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate border-b border-gray-200"
53
49
  [ngClass]="{
54
50
  'text-purple-light cursor-default':
55
- !item.extras?.edit && !isDraftPage,
51
+ (!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset',
56
52
  'group-hover:text-main group-hover:bg-gray-50':
57
- item.extras?.edit || isDraftPage,
53
+ (item.extras?.edit || isDraftPage) && item.kind === 'dataset',
58
54
  }"
59
55
  >
60
56
  <ng-container
@@ -12,7 +12,11 @@ import { CommonModule } from '@angular/common'
12
12
  import { NgIconComponent, provideIcons } from '@ng-icons/core'
13
13
  import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
14
14
  import { TranslateModule } from '@ngx-translate/core'
15
+ import { marker } from '@biesbjerg/ngx-translate-extract-marker'
16
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
15
17
 
18
+ marker('editor.record.lock.reason')
19
+ marker('editor.record.lock.format')
16
20
  @Component({
17
21
  selector: 'gn-ui-interactive-table',
18
22
  templateUrl: './interactive-table.component.html',
@@ -44,6 +48,15 @@ export class InteractiveTableComponent {
44
48
  }
45
49
  }
46
50
 
51
+ getItemTitle(item: CatalogRecord) {
52
+ if (!item.extras?.edit && !this.isDraftPage && item.kind === 'dataset') {
53
+ return 'editor.record.lock.reason'
54
+ } else if (item.kind !== 'dataset') {
55
+ return 'editor.record.lock.format'
56
+ }
57
+ return ''
58
+ }
59
+
47
60
  handleRowClick(item: unknown) {
48
61
  this.itemClick.emit(item)
49
62
  }
@@ -13,7 +13,7 @@
13
13
  <div
14
14
  *ngIf="showToggleButton"
15
15
  (click)="toggleDisplay()"
16
- class="text-secondary cursor-pointer pt-2.5"
16
+ class="text-primary cursor-pointer pt-2.5"
17
17
  data-cy="readMoreButton"
18
18
  >
19
19
  {{ (isExpanded ? 'ui.readLess' : 'ui.readMore') | translate }}
@@ -1,18 +1,30 @@
1
- <div class="flex flex-row gap-x-4 items-center">
1
+ <div class="flex flex-row gap-x-1 items-center">
2
2
  <gn-ui-button
3
3
  data-test="previousButton"
4
- type="outline"
4
+ type="light"
5
+ [extraClass]="
6
+ 'w-10 h-8 px-2 py-1 rounded-lg ' +
7
+ (!listComponent.isFirstPage
8
+ ? 'border border-gray-300'
9
+ : 'border border-gray-100')
10
+ "
5
11
  [disabled]="listComponent.isFirstPage"
6
12
  (buttonClick)="listComponent.goToPrevPage()"
7
13
  >
8
- <ng-icon name="matArrowBack"></ng-icon>
14
+ <ng-icon name="matArrowBackIos"></ng-icon>
9
15
  </gn-ui-button>
10
16
  <gn-ui-button
11
17
  data-test="nextButton"
12
- type="outline"
18
+ type="light"
19
+ [extraClass]="
20
+ 'w-10 h-8 px-2 py-1 rounded-lg ' +
21
+ (!listComponent.isLastPage
22
+ ? 'border border-gray-300'
23
+ : 'border border-gray-100')
24
+ "
13
25
  [disabled]="listComponent.isLastPage"
14
26
  (buttonClick)="listComponent.goToNextPage()"
15
27
  >
16
- <ng-icon name="matArrowForward"></ng-icon>
28
+ <ng-icon name="matArrowForwardIos"></ng-icon>
17
29
  </gn-ui-button>
18
30
  </div>
@@ -5,8 +5,8 @@ import {
5
5
  provideNgIconsConfig,
6
6
  } from '@ng-icons/core'
7
7
  import {
8
- matArrowBack,
9
- matArrowForward,
8
+ matArrowBackIos,
9
+ matArrowForwardIos,
10
10
  } from '@ng-icons/material-icons/baseline'
11
11
  import { Paginable } from '../paginable.interface'
12
12
  import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
@@ -18,7 +18,7 @@ import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
18
18
  standalone: true,
19
19
  imports: [ButtonComponent, NgIconComponent],
20
20
  providers: [
21
- provideIcons({ matArrowForward, matArrowBack }),
21
+ provideIcons({ matArrowBackIos, matArrowForwardIos }),
22
22
  provideNgIconsConfig({
23
23
  size: '0.875em',
24
24
  }),
@@ -7,11 +7,7 @@ import { NgIconComponent, provideNgIconsConfig } from '@ng-icons/core'
7
7
 
8
8
  @NgModule({
9
9
  imports: [CommonModule, TranslateModule.forChild(), NgIconComponent],
10
- providers: [
11
- provideNgIconsConfig({
12
- size: '0.9em',
13
- }),
14
- ],
10
+ providers: [],
15
11
  declarations: [StickyHeaderComponent, AnchorLinkDirective],
16
12
  exports: [StickyHeaderComponent, AnchorLinkDirective],
17
13
  })
@@ -3,3 +3,4 @@ export * from './lib/components/map-container/map-settings.token'
3
3
  export * from './lib/components/feature-detail/feature-detail.component'
4
4
  export * from './lib/components/map-legend/map-legend.component'
5
5
  export * from './lib/map-utils'
6
+ export * from './lib/components/spatial-extent/spatial-extent.component'
@@ -28,6 +28,8 @@ import {
28
28
  MapContextLayer,
29
29
  MapContextLayerXyz,
30
30
  MapContextView,
31
+ SourceLoadErrorEvent,
32
+ SourceLoadErrorType,
31
33
  } from '@geospatial-sdk/core'
32
34
  import {
33
35
  applyContextDiffToMap,
@@ -119,6 +121,18 @@ export class MapContainerComponent implements AfterViewInit, OnChanges {
119
121
  }
120
122
  return this._mapClick
121
123
  }
124
+ _sourceLoadError: EventEmitter<SourceLoadErrorEvent>
125
+ @Output() get sourceLoadError() {
126
+ if (!this._sourceLoadError) {
127
+ this.openlayersMap.then((olMap) => {
128
+ listen(olMap, SourceLoadErrorType, (error: SourceLoadErrorEvent) =>
129
+ this._sourceLoadError.emit(error)
130
+ )
131
+ })
132
+ this._sourceLoadError = new EventEmitter<SourceLoadErrorEvent>()
133
+ }
134
+ return this._sourceLoadError
135
+ }
122
136
 
123
137
  @ViewChild('map') container: ElementRef
124
138
  displayMessage$: Observable<boolean>
@@ -33,6 +33,9 @@ export class MapLegendComponent implements OnChanges {
33
33
  if (this.legendHTML) {
34
34
  this.legendStatusChange.emit(true)
35
35
  }
36
+ } else {
37
+ this.legendHTML = false
38
+ this.legendStatusChange.emit(false)
36
39
  }
37
40
  }
38
41
  }
@@ -0,0 +1,4 @@
1
+ <gn-ui-map-container
2
+ class="h-full w-full"
3
+ [context]="mapContext$ | async"
4
+ ></gn-ui-map-container>
@@ -1,27 +1,26 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
1
+ import { Component, Input } from '@angular/core'
2
2
  import { CommonModule } from '@angular/common'
3
3
  import { Geometry } from 'geojson'
4
4
  import GeoJSON, { GeoJSONFeatureCollection } from 'ol/format/GeoJSON'
5
- import { DatasetSpatialExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
6
5
  import { Polygon } from 'ol/geom'
7
6
  import {
8
7
  createViewFromLayer,
9
8
  MapContext,
10
9
  MapContextLayer,
11
10
  } from '@geospatial-sdk/core'
12
- import { MapContainerComponent } from '../../../../../../../../../libs/ui/map/src'
11
+ import { MapContainerComponent } from '../map-container/map-container.component'
13
12
  import { BehaviorSubject, Observable } from 'rxjs'
14
13
  import { switchMap } from 'rxjs/operators'
14
+ import { DatasetSpatialExtent } from '../../../../../../../libs/common/domain/src/lib/model/record'
15
15
 
16
16
  @Component({
17
- selector: 'gn-ui-form-field-map-container',
17
+ selector: 'gn-ui-spatial-extent',
18
18
  standalone: true,
19
19
  imports: [CommonModule, MapContainerComponent],
20
- templateUrl: './form-field-map-container.component.html',
21
- styleUrls: ['./form-field-map-container.component.css'],
22
- changeDetection: ChangeDetectionStrategy.OnPush,
20
+ templateUrl: './spatial-extent.component.html',
21
+ styleUrl: './spatial-extent.component.css',
23
22
  })
24
- export class FormFieldMapContainerComponent {
23
+ export class SpatialExtentComponent {
25
24
  @Input() set spatialExtents(value: DatasetSpatialExtent[]) {
26
25
  this.spatialExtents$.next(value)
27
26
  }
@@ -16,5 +16,6 @@ export * from './lib/record-preview-text/record-preview-text.component'
16
16
  export * from './lib/record-preview-title/record-preview-title.component'
17
17
  export * from './lib/record-metric/record-metric.component'
18
18
  export * from './lib/results-list-item/results-list-item.component'
19
+ export * from './lib/results-hits-search-kind/results-hits-search-kind.component'
19
20
  export * from './lib/results-hits-number/results-hits-number.component'
20
21
  export * from './lib/results-table/results-table.component'
@@ -1,5 +1,5 @@
1
1
  <div *ngIf="!loading" class="w-full">
2
- <span translate [translateParams]="{ hits: hits }"
2
+ <span data-cy="resultsHitsFound" translate [translateParams]="{ hits: hits }"
3
3
  >results.records.hits.found</span
4
4
  >
5
5
  <p
@@ -0,0 +1,24 @@
1
+ <gn-ui-inline-filter
2
+ [choices]="availableChoices"
3
+ [selected]="selected"
4
+ (selectValues)="onSelectedValues($event)"
5
+ >
6
+ <ng-template let-choice>
7
+ <gn-ui-kind-badge
8
+ [kind]="choice.value"
9
+ [contentTemplate]="customTemplate"
10
+ class="gn-ui-btn-outline rounded-md py-2 px-2 border-gray-400 cursor-pointer focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors bg-transparent hover:text-primary-darker focus:text-primary-darker active:text-primary-black"
11
+ [ngClass]="{
12
+ '!bg-primary-lightest hover:bg-primary-lightest':
13
+ isSelectedChoice(choice.value) || isAllChoice(choice.value),
14
+ }"
15
+ >
16
+ <ng-template #customTemplate>
17
+ {{ 'search.filters.recordKind.' + choice.value | translate
18
+ }}<span class="ml-1" *ngIf="isSelectedChoice(choice.value)"
19
+ >({{ choice.count }})</span
20
+ >
21
+ </ng-template>
22
+ </gn-ui-kind-badge>
23
+ </ng-template>
24
+ </gn-ui-inline-filter>
@@ -0,0 +1,53 @@
1
+ import {
2
+ Component,
3
+ EventEmitter,
4
+ Input,
5
+ OnChanges,
6
+ SimpleChanges,
7
+ Output,
8
+ } from '@angular/core'
9
+ import { Choice } from '../../../../../../libs/ui/inputs/src'
10
+
11
+ @Component({
12
+ selector: 'gn-ui-results-hits-search-kind',
13
+ templateUrl: './results-hits-search-kind.component.html',
14
+ })
15
+ export class ResultsHitsSearchKindComponent implements OnChanges {
16
+ @Input() selected: string[] = []
17
+ @Input() choices: Choice[] = []
18
+ @Output() selectionChanged = new EventEmitter<string[]>()
19
+
20
+ availableChoices: Choice[] = []
21
+
22
+ ngOnChanges(changes: SimpleChanges) {
23
+ if (changes.choices && changes.choices.currentValue) {
24
+ this.availableChoices = this.buildFilterChoices(this.choices)
25
+ }
26
+ }
27
+
28
+ buildFilterChoices(availableValues: Choice[]) {
29
+ return [
30
+ ...[
31
+ {
32
+ label: 'all',
33
+ value: 'all',
34
+ },
35
+ ],
36
+ ...availableValues,
37
+ ]
38
+ }
39
+
40
+ onSelectedValues(values: string[]) {
41
+ const selectedValues = values.includes('all') ? [] : values
42
+
43
+ this.selectionChanged.emit(selectedValues)
44
+ }
45
+
46
+ isSelectedChoice(choiceValue: string) {
47
+ return this.selected.includes(choiceValue)
48
+ }
49
+
50
+ isAllChoice(choiceValue: string) {
51
+ return this.selected.length === 0 && choiceValue === 'all'
52
+ }
53
+ }
@@ -9,10 +9,10 @@
9
9
  <ng-icon
10
10
  name="iconoirLock"
11
11
  class="text-purple"
12
- *ngIf="!item.extras?.edit && !isDraftPage"
12
+ *ngIf="(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'"
13
13
  ></ng-icon>
14
14
  <gn-ui-checkbox
15
- *ngIf="item.extras?.edit || isDraftPage"
15
+ *ngIf="(item.extras?.edit || isDraftPage) && item.kind === 'dataset'"
16
16
  [checked]="isChecked(item)"
17
17
  (changed)="handleRecordSelectedChange($event, item)"
18
18
  class="-m-2"
@@ -149,11 +149,14 @@
149
149
  (buttonClick)="openActionMenu(item, template)"
150
150
  type="light"
151
151
  data-test="record-menu-button"
152
- [disabled]="!item.extras?.edit && !isDraftPage"
152
+ [disabled]="
153
+ (!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'
154
+ "
153
155
  >
154
156
  <ng-icon
155
157
  [ngClass]="{
156
- 'text-purple-light': !item.extras?.edit && !isDraftPage,
158
+ 'text-purple-light':
159
+ (!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset',
157
160
  }"
158
161
  name="matMoreVert"
159
162
  ></ng-icon>
@@ -174,8 +174,9 @@ export class ResultsTableComponent {
174
174
  }
175
175
 
176
176
  handleRecordClick(item: CatalogRecord) {
177
- if (item?.extras?.edit || this.isDraftPage)
177
+ if ((item?.extras?.edit || this.isDraftPage) && item.kind === 'dataset') {
178
178
  this.recordClick.emit(item as CatalogRecord)
179
+ }
179
180
  }
180
181
 
181
182
  handleDuplicate(item: unknown) {
@@ -11,6 +11,7 @@ import { RecordPreviewRowComponent } from './record-preview-row/record-preview-r
11
11
  import { RecordPreviewTextComponent } from './record-preview-text/record-preview-text.component'
12
12
  import { RecordPreviewTitleComponent } from './record-preview-title/record-preview-title.component'
13
13
  import { ResultsHitsNumberComponent } from './results-hits-number/results-hits-number.component'
14
+ import { ResultsHitsSearchKindComponent } from './results-hits-search-kind/results-hits-search-kind.component'
14
15
  import {
15
16
  DEFAULT_RESULTS_LAYOUT_CONFIG,
16
17
  RESULTS_LAYOUT_CONFIG,
@@ -24,6 +25,7 @@ import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
24
25
  import {
25
26
  MetadataQualityComponent,
26
27
  UiElementsModule,
28
+ KindBadgeComponent,
27
29
  } from '../../../../../libs/ui/elements/src'
28
30
  import { RecordPreviewFeedComponent } from './record-preview-feed/record-preview-feed.component'
29
31
  import { CommonModule } from '@angular/common'
@@ -48,6 +50,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
48
50
  RecordMetricComponent,
49
51
  ResultsListComponent,
50
52
  ResultsHitsNumberComponent,
53
+ ResultsHitsSearchKindComponent,
51
54
  ResultsListItemComponent,
52
55
  RecordPreviewFeedComponent,
53
56
  RecordPreviewRowComponent,
@@ -74,6 +77,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
74
77
  matFace,
75
78
  matHomeWorkOutline,
76
79
  }),
80
+ KindBadgeComponent,
77
81
  MetadataQualityComponent,
78
82
  ],
79
83
  exports: [
@@ -86,6 +90,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
86
90
  FacetsModule,
87
91
  RecordPreviewComponent,
88
92
  ResultsHitsNumberComponent,
93
+ ResultsHitsSearchKindComponent,
89
94
  RecordPreviewFeedComponent,
90
95
  RecordPreviewRowComponent,
91
96
  ],
@@ -3,16 +3,17 @@
3
3
  <ng-container *ngSwitchCase="'light'">
4
4
  <div class="flex items-center relative">
5
5
  <div
6
- class="flex-shrink-0 {{ color.text }} text-xs font-medium mr-2
6
+ class="flex-shrink-0 {{ color.text }} font-medium mr-2
7
7
  text-opacity-100 !text-slate-800"
8
+ data-cy="progressPercentage"
8
9
  >
9
10
  {{ progress }}%
10
11
  </div>
11
- <div class="flex-grow h-[6px] w-full {{ color.outerBar }} rounded-full">
12
+ <div class="flex-grow h-[4px] w-[52px] {{ color.outerBar }} rounded-full">
12
13
  <div
13
14
  [style.width.%]="progress"
14
15
  class="{{ color.innerBar }} transition-width duration-500
15
- ease-in-out rounded-full shadow-sm h-full"
16
+ ease-in-out rounded-full shadow-sm w-[52px] h-[4px]"
16
17
  ></div>
17
18
  </div>
18
19
  </div>