geonetwork-ui 2.6.0-dev.b306f1194 → 2.6.0-dev.e61ca542f

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 (363) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
  7. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  9. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  10. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -1
  11. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +5 -1
  12. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  13. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
  14. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  17. package/esm2022/libs/feature/record/src/index.mjs +1 -2
  18. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
  19. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  20. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  21. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  22. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  23. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +8 -3
  24. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  25. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
  26. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
  27. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  28. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  29. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  30. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  31. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  32. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  33. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  34. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  35. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  36. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
  37. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  38. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  39. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  40. package/esm2022/libs/ui/elements/src/index.mjs +3 -1
  41. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  42. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  43. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  44. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  45. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +3 -3
  46. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
  47. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  48. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  49. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  50. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  51. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
  52. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
  53. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
  54. package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
  55. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  56. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  57. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  58. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  59. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  60. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  61. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  62. package/esm2022/libs/ui/layout/src/index.mjs +2 -1
  63. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  64. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  65. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  66. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
  67. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  68. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  69. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +56 -0
  70. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  71. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  72. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
  73. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  74. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  75. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  76. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
  77. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
  78. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  79. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  80. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  81. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  82. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  83. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
  84. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
  85. package/esm2022/translations/de.json +35 -5
  86. package/esm2022/translations/en.json +38 -6
  87. package/esm2022/translations/es.json +35 -5
  88. package/esm2022/translations/fr.json +38 -6
  89. package/esm2022/translations/it.json +35 -5
  90. package/esm2022/translations/nl.json +35 -5
  91. package/esm2022/translations/pt.json +35 -5
  92. package/fesm2022/geonetwork-ui.mjs +1474 -601
  93. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  94. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  95. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  96. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  97. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  98. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  100. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  101. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  102. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -2
  103. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  104. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  105. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +1 -1
  106. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  107. package/libs/feature/editor/src/index.d.ts +1 -0
  108. package/libs/feature/editor/src/index.d.ts.map +1 -1
  109. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
  110. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  111. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  112. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  113. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  114. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  115. package/libs/feature/record/src/index.d.ts +0 -1
  116. package/libs/feature/record/src/index.d.ts.map +1 -1
  117. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
  118. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  119. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  120. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  121. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  122. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  123. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  124. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  125. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  126. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  127. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
  128. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  129. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  130. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  131. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  132. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  133. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  134. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  135. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  136. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  137. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  138. package/libs/feature/search/src/index.d.ts +1 -1
  139. package/libs/feature/search/src/index.d.ts.map +1 -1
  140. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  141. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  142. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  143. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  144. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  145. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  146. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  147. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  148. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  149. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  150. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  151. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  152. package/libs/ui/elements/src/index.d.ts +2 -0
  153. package/libs/ui/elements/src/index.d.ts.map +1 -1
  154. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  155. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  156. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  157. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  158. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
  159. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  160. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  161. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  162. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  163. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  164. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
  165. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  166. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -1
  167. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  168. package/libs/ui/inputs/src/index.d.ts +1 -1
  169. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  170. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  171. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  172. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  173. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  174. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  175. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  176. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  177. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  178. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  179. package/libs/ui/layout/src/index.d.ts +1 -0
  180. package/libs/ui/layout/src/index.d.ts.map +1 -1
  181. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  182. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  183. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  184. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  185. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
  186. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  187. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +18 -0
  188. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  189. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  190. package/libs/ui/map/src/index.d.ts +1 -0
  191. package/libs/ui/map/src/index.d.ts.map +1 -1
  192. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  193. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  194. package/libs/ui/search/src/index.d.ts +1 -0
  195. package/libs/ui/search/src/index.d.ts.map +1 -1
  196. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  197. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  198. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  199. package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
  200. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  201. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  202. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  203. package/libs/util/shared/src/index.d.ts +1 -0
  204. package/libs/util/shared/src/index.d.ts.map +1 -1
  205. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  206. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  207. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  208. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  209. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  210. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  211. package/package.json +1 -1
  212. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  213. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  214. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  215. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  216. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
  217. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  218. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  219. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
  220. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  221. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  222. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
  223. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  224. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +5 -2
  225. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
  226. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
  227. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  228. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
  229. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
  230. package/src/libs/feature/editor/src/index.ts +1 -0
  231. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
  232. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
  233. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  234. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  235. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  236. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  237. package/src/libs/feature/record/src/index.ts +0 -1
  238. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
  239. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  240. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  241. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  242. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  243. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  244. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +21 -15
  245. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -0
  246. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  247. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
  248. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
  249. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  250. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  251. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  252. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  253. package/src/libs/feature/search/src/index.ts +1 -1
  254. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +0 -6
  255. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  256. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  257. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  258. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
  259. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  260. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  261. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  262. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  263. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
  264. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  265. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  266. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  267. package/src/libs/ui/elements/src/index.ts +2 -0
  268. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  269. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  270. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  271. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  272. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  273. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  274. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +2 -2
  275. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  276. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
  277. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
  278. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  279. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  280. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  281. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
  282. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  283. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
  284. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  285. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
  286. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  287. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
  288. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
  289. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
  290. package/src/libs/ui/inputs/src/index.ts +1 -1
  291. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  292. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  293. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  294. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  295. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  296. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  297. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +0 -0
  298. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
  299. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  300. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  301. package/src/libs/ui/layout/src/index.ts +1 -0
  302. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  303. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  304. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  305. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  306. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  307. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  308. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
  309. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
  310. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  311. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  312. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  313. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +46 -0
  314. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +62 -0
  315. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
  316. package/src/libs/ui/map/src/index.ts +1 -0
  317. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  318. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  319. package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
  320. package/src/libs/ui/search/src/index.ts +1 -0
  321. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  322. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
  323. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  324. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
  325. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
  326. package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
  327. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
  328. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  329. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  330. package/src/libs/util/shared/src/index.ts +1 -0
  331. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  332. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
  333. package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
  334. package/tailwind.base.config.js +3 -0
  335. package/tailwind.base.css +19 -26
  336. package/translations/de.json +35 -5
  337. package/translations/en.json +38 -6
  338. package/translations/es.json +35 -5
  339. package/translations/fr.json +38 -6
  340. package/translations/it.json +35 -5
  341. package/translations/nl.json +35 -5
  342. package/translations/pt.json +35 -5
  343. package/translations/sk.json +35 -5
  344. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  345. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  346. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  347. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  348. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  349. 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
  350. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  351. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  352. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  353. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  354. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  355. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  356. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  357. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  358. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  359. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  360. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  361. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  362. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  363. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
@@ -1,146 +1,146 @@
1
1
  export const elasticLinkFixture = (): Record<string, unknown> => ({
2
2
  readmeLink: {
3
- protocol: 'WWW:LINK',
3
+ accessServiceProtocol: 'WWW:LINK',
4
4
  description: 'Readme page',
5
5
  url: 'http://envlit.ifremer.fr/resultats/quadrige',
6
6
  },
7
7
  doiLink: {
8
- protocol: 'WWW:DOI',
8
+ accessServiceProtocol: 'WWW:DOI',
9
9
  description: 'DOI for the resource',
10
10
  url: 'http://doi.org/123-456-678',
11
11
  },
12
12
  dataCsv: {
13
- protocol: 'WWW:DOWNLOAD',
13
+ accessServiceProtocol: 'WWW:DOWNLOAD',
14
14
  description: 'Data in CSV format',
15
15
  name: 'abc.csv',
16
16
  url: 'http://my.server/files/abc.csv',
17
17
  },
18
18
  dataPdf: {
19
- protocol: 'WWW:DOWNLOAD',
19
+ accessServiceProtocol: 'WWW:DOWNLOAD',
20
20
  description: 'Data in PDF format',
21
21
  name: 'abc.pdf',
22
22
  url: 'https://my.server/files/abc.pdf',
23
23
  },
24
24
  dataJpg: {
25
- protocol: 'WWW:DOWNLOAD',
25
+ accessServiceProtocol: 'WWW:DOWNLOAD',
26
26
  description: 'Data in JPG format',
27
27
  name: 'abc.jpg',
28
28
  url: 'https://my.server/files/abc.jpg',
29
29
  },
30
30
  dataZip: {
31
- protocol: 'WWW:DOWNLOAD',
31
+ accessServiceProtocol: 'WWW:DOWNLOAD',
32
32
  description: 'Data in ZIP format',
33
33
  name: 'abc.zip',
34
34
  url: 'https://my.server/files/abc.zip',
35
35
  },
36
36
  dataXls: {
37
- protocol: 'WWW:DOWNLOAD',
37
+ accessServiceProtocol: 'WWW:DOWNLOAD',
38
38
  description: 'Data in XLS format',
39
39
  name: 'abc.xls',
40
40
  url: 'https://my.server/files/abc.xls',
41
41
  },
42
42
  dataXlsx: {
43
- protocol: 'WWW:DOWNLOAD',
43
+ accessServiceProtocol: 'WWW:DOWNLOAD',
44
44
  description: 'Data in XLSX format',
45
45
  name: 'abc.XLSX',
46
46
  url: 'https://my.server/files/abc.XLSX',
47
47
  },
48
48
  dataJson: {
49
- protocol: 'WWW:DOWNLOAD',
49
+ accessServiceProtocol: 'WWW:DOWNLOAD',
50
50
  description: 'Data in JSON format',
51
51
  name: 'abc.json',
52
52
  url: 'https://my.server/files/abc.json',
53
53
  },
54
54
  geodataJson: {
55
- protocol: 'WWW:DOWNLOAD',
55
+ accessServiceProtocol: 'WWW:DOWNLOAD',
56
56
  description: 'Geographic data in GeoJSON format',
57
57
  name: 'dataset.geojson',
58
58
  url: 'http://my.server/files/geographic/dataset.geojson',
59
59
  },
60
60
  geodataJsonWithMimeType: {
61
- protocol: 'WWW:DOWNLOAD:application/vnd.geo+json',
61
+ accessServiceProtocol: 'WWW:DOWNLOAD:application/vnd.geo+json',
62
62
  description: 'Geographic data in GeoJSON format',
63
63
  name: 'dataset.geojson',
64
64
  url: 'http://my.server/files/geographic/dataset',
65
65
  mimeType: 'application/vnd.geo+json',
66
66
  },
67
67
  geodataKml: {
68
- protocol: 'WWW:DOWNLOAD',
68
+ accessServiceProtocol: 'WWW:DOWNLOAD',
69
69
  description: 'Geographic data in KML format',
70
70
  name: 'dataset.kml',
71
71
  url: 'http://my.server/files/geographic/dataset.kml',
72
72
  },
73
73
  geodataGpkg: {
74
- protocol: 'WWW:DOWNLOAD',
74
+ accessServiceProtocol: 'WWW:DOWNLOAD',
75
75
  description: 'Geographic data in geopackage format',
76
76
  name: 'dataset.gpkg',
77
77
  url: 'http://my.server/files/geographic/dataset.gpkg',
78
78
  },
79
79
  geodataShp: {
80
- protocol: 'WWW:DOWNLOAD',
80
+ accessServiceProtocol: 'WWW:DOWNLOAD',
81
81
  description: 'Geographic data in shapefile format',
82
82
  name: 'dataset.shp',
83
83
  url: 'http://my.server/files/geographic/dataset.zip',
84
84
  },
85
85
  geodataShpWithMimeType: {
86
- protocol: 'WWW:DOWNLOAD:x-gis/x-shapefile',
86
+ accessServiceProtocol: 'WWW:DOWNLOAD:x-gis/x-shapefile',
87
87
  description: 'Geographic data in shapefile format',
88
88
  name: 'dataset',
89
89
  url: 'http://my.server/files/geographic/dataset.zip',
90
90
  mimeType: 'x-gis/x-shapefile',
91
91
  },
92
92
  geodataWms: {
93
- protocol: 'OGC:WMS',
93
+ accessServiceProtocol: 'OGC:WMS',
94
94
  name: 'mylayer',
95
95
  url: 'https://my.ogc.server/wms',
96
96
  },
97
97
  geodataWmts: {
98
- protocol: 'OGC:WMTS',
98
+ accessServiceProtocol: 'OGC:WMTS',
99
99
  name: 'mylayer',
100
100
  url: 'https://my.ogc.server/wmts',
101
101
  },
102
102
  geodataWfs: {
103
- protocol: 'OGC:WFS',
103
+ accessServiceProtocol: 'OGC:WFS',
104
104
  name: 'mylayer',
105
105
  url: 'https://my.ogc.server/wfs',
106
106
  },
107
107
  geodataWms2: {
108
- protocol: 'OGC:WMS',
108
+ accessServiceProtocol: 'OGC:WMS',
109
109
  name: 'myotherlayer',
110
110
  url: 'https://my.ogc.server/wms',
111
111
  },
112
112
  geodataWfs2: {
113
- protocol: 'OGC:WFS',
113
+ accessServiceProtocol: 'OGC:WFS',
114
114
  name: 'myotherlayer',
115
115
  url: 'https://my.ogc.server/wfs',
116
116
  },
117
117
  geodataRest: {
118
- protocol: 'ESRI:REST',
118
+ accessServiceProtocol: 'ESRI:REST',
119
119
  name: 'myrestlayer',
120
120
  url: 'https://my.esri.server/FeatureServer',
121
121
  },
122
122
  geodataRestWfs: {
123
- protocol: 'OGC:WFS',
123
+ accessServiceProtocol: 'OGC:WFS',
124
124
  name: 'mywfsrestlayer',
125
125
  url: 'https://my.esri.server/WFSServer',
126
126
  },
127
127
  maplayerRest: {
128
- protocol: 'ESRI:REST',
128
+ accessServiceProtocol: 'ESRI:REST',
129
129
  name: 'myotherrestlayer',
130
130
  url: 'https://my.esri.server/MapServer',
131
131
  },
132
132
  landingPage: {
133
- protocol: 'WWW:LINK:LANDING_PAGE',
133
+ accessServiceProtocol: 'WWW:LINK:LANDING_PAGE',
134
134
  name: 'landingpage link',
135
135
  url: 'https://landing.page',
136
136
  },
137
137
  unknownFormat: {
138
- protocol: 'WWW:DOWNLOAD-1.0-http--download',
138
+ accessServiceProtocol: 'WWW:DOWNLOAD-1.0-http--download',
139
139
  name: 'Vue HTML des métadonnées sur internet',
140
140
  url: 'http://catalogue.geo-ide.developpement-durable.gouv.fr/catalogue/srv/fre/catalog.search#/metadata/fr-120066022-jdd-199fd14c-2abb-4c14-b0f8-6c8d92e7b480',
141
141
  },
142
142
  geodataogcfeatures: {
143
- protocol: 'OGC API - Features',
143
+ accessServiceProtocol: 'OGC API - Features',
144
144
  name: 'ogcapi features layer',
145
145
  url: 'https://mel.integration.apps.gs-fr-prod.camptocamp.com/data/ogcapi/collections/comptages_velo/items?',
146
146
  },
@@ -239,10 +239,10 @@ export const aSetOfLinksFixture = () => ({
239
239
  ({
240
240
  description:
241
241
  'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS',
242
- endpointUrl: new URL(
242
+ url: new URL(
243
243
  'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS'
244
244
  ),
245
- protocol: 'wms',
245
+ accessServiceProtocol: 'wms',
246
246
  type: 'endpoint',
247
247
  }) as ServiceEndpoint,
248
248
  })
@@ -1,26 +1,26 @@
1
1
  export const wmsRecordLinkFixture = () => ({
2
2
  description: 'Lieu de surveillance (point)',
3
3
  name: 'surval_parametre_point',
4
- protocol: 'OGC:WMS',
4
+ accessServiceProtocol: 'OGC:WMS',
5
5
  url: 'https://www.ifremer.fr/services/wms/surveillance_littorale',
6
6
  })
7
7
 
8
8
  export const wpsRecordLinkFixture = () => ({
9
9
  description: "Extraction des données d'observation",
10
10
  name: 'r:survalextraction',
11
- protocol: 'OGC:WPS',
11
+ accessServiceProtocol: 'OGC:WPS',
12
12
  url: 'https://www.ifremer.fr/services/wps/surval',
13
13
  })
14
14
 
15
15
  export const wwwRecordLinkFixture = () => ({
16
16
  description: '',
17
17
  name: 'La base de données Quadrige',
18
- protocol: 'WWW:LINK',
18
+ praccessServiceProtocolotocol: 'WWW:LINK',
19
19
  url: 'http://envlit.ifremer.fr/resultats/quadrige',
20
20
  })
21
21
 
22
22
  export const doiRecordLinkFixture = () => ({
23
- protocol: 'WWW:DOI',
23
+ accessServiceProtocol: 'WWW:DOI',
24
24
  description: 'DOI for the resource',
25
25
  url: 'http://doi.org/123-456-678',
26
26
  })
@@ -28,6 +28,6 @@ export const doiRecordLinkFixture = () => ({
28
28
  export const wfsRecordLinkFixture = () => ({
29
29
  description: 'Lieu de surveillance (point)',
30
30
  name: 'surval_parametre_point',
31
- protocol: 'OGC:WFS',
31
+ accessServiceProtocol: 'OGC:WFS',
32
32
  url: 'https://www.ifremer.fr/services/wfs/surveillance_littorale',
33
33
  })
@@ -137,6 +137,10 @@ export class ChartViewComponent {
137
137
  switchMap((link) => {
138
138
  this.error = null
139
139
  this.loading = true
140
+ if (link.accessRestricted) {
141
+ this.handleError('dataset.error.restrictedAccess')
142
+ return EMPTY
143
+ }
140
144
  return this.dataService.getDataset(link, this.cacheActive).pipe(
141
145
  catchError((error) => {
142
146
  this.handleError(error)
@@ -46,6 +46,10 @@ export class TableViewComponent {
46
46
  switchMap((link) => {
47
47
  this.error = null
48
48
  if (!link) return of(undefined)
49
+ if (link.accessRestricted) {
50
+ this.handleError('dataset.error.restrictedAccess')
51
+ return of([])
52
+ }
49
53
  this.loading = true
50
54
  return this.getDatasetReader(link).pipe(
51
55
  catchError((error) => {
@@ -11,3 +11,4 @@ export * from './lib/components/wizard/wizard.component'
11
11
  export * from './lib/components/wizard-field/wizard-field.component'
12
12
  export * from './lib/components/wizard-summarize/wizard-summarize.component'
13
13
  export * from './lib/components/record-form/form-field'
14
+ export * from './lib/components/multilingual-panel/multilingual-panel.component'
@@ -0,0 +1,14 @@
1
+ <div
2
+ class="flex flex-col h-full w-[302px] bg-neutral-100 border-l border-gray-300 py-9 px-3 gap-8"
3
+ >
4
+ <span class="text-3xl font-title text-black/80 px-2" translate
5
+ >editor.record.form.multilingual.title</span
6
+ >
7
+ <gn-ui-check-toggle
8
+ class="p-2"
9
+ [label]="'editor.record.form.multilingual.enable' | translate"
10
+ [color]="'primary'"
11
+ [value]="translationsEnabled"
12
+ (toggled)="translationsEnabled = $event"
13
+ ></gn-ui-check-toggle>
14
+ </div>
@@ -0,0 +1,15 @@
1
+ import { Component } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import { CheckToggleComponent } from '../../../../../../../libs/ui/inputs/src'
4
+ import { TranslateModule } from '@ngx-translate/core'
5
+
6
+ @Component({
7
+ selector: 'gn-ui-multilingual-panel',
8
+ standalone: true,
9
+ imports: [CommonModule, CheckToggleComponent, TranslateModule],
10
+ templateUrl: './multilingual-panel.component.html',
11
+ styleUrl: './multilingual-panel.component.css',
12
+ })
13
+ export class MultilingualPanelComponent {
14
+ translationsEnabled = false
15
+ }
@@ -66,9 +66,8 @@ export class OnlineResourceCardComponent {
66
66
  get subtitle(): string {
67
67
  switch (this.onlineResource.type) {
68
68
  case 'service':
69
- return `${this.onlineResource.accessServiceProtocol}`
70
69
  case 'endpoint':
71
- return `${this.onlineResource.protocol}`
70
+ return `${this.onlineResource.accessServiceProtocol}`
72
71
  case 'link':
73
72
  case 'download':
74
73
  return this.getFormat(this.onlineResource)
@@ -81,8 +81,8 @@ export class OnlineServiceResourceInputComponent {
81
81
  errorMessage = false
82
82
  resetUrlOnChange = Math.random()
83
83
 
84
- layersSubject = new BehaviorSubject<{ name: string; title: string }[]>([])
85
- layers$: Observable<{ name: string; title: string }[]> =
84
+ layersSubject = new BehaviorSubject<{ name?: string; title?: string }[]>([])
85
+ layers$: Observable<{ name?: string; title?: string }[]> =
86
86
  this.layersSubject.asObservable()
87
87
 
88
88
  protocolOptions: {
@@ -8,8 +8,8 @@
8
8
  >
9
9
  </gn-ui-generic-keywords>
10
10
  <div class="w-full h-96 mt-2">
11
- <gn-ui-form-field-map-container
11
+ <gn-ui-spatial-extent
12
12
  [spatialExtents]="spatialExtents$ | async"
13
- ></gn-ui-form-field-map-container>
13
+ ></gn-ui-spatial-extent>
14
14
  </div>
15
15
  </div>
@@ -9,9 +9,9 @@ import { PlatformServiceInterface } from '../../../../../../../../../libs/common
9
9
  import { firstValueFrom, map, shareReplay } from 'rxjs'
10
10
  import { EditorFacade } from '../../../../+state/editor.facade'
11
11
  import { switchMap } from 'rxjs/operators'
12
- import { FormFieldMapContainerComponent } from '../form-field-map-container/form-field-map-container.component'
13
12
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
14
13
  import { SPATIAL_SCOPES } from '../../../../fields.config'
14
+ import { SpatialExtentComponent } from '../../../../../../../../../libs/ui/map/src'
15
15
 
16
16
  // This intermediary type will let us keep track of which keyword is bound to
17
17
  // which extent; these properties will not be persisted
@@ -35,8 +35,8 @@ type KeywordWithExtent = Keyword & {
35
35
  imports: [
36
36
  CommonModule,
37
37
  GenericKeywordsComponent,
38
- FormFieldMapContainerComponent,
39
38
  TranslateModule,
39
+ SpatialExtentComponent,
40
40
  ],
41
41
  })
42
42
  export class FormFieldSpatialExtentComponent {
@@ -1,5 +1,4 @@
1
1
  export * from './lib/feature-record.module'
2
- export * from './lib/gn-ui-version.token'
3
2
  export * from './lib/state'
4
3
  export * from './lib/data-view-permalink/data-view-permalink.component'
5
4
  export * from './lib/data-view/data-view.component'
@@ -1,13 +1,17 @@
1
- <div class="w-full h-full flex flex-col p-1">
2
- <gn-ui-dropdown-selector
3
- *ngIf="dropdownChoices$ | async as choices"
4
- [ngClass]="{ hidden: !displaySource }"
5
- [title]="'table.select.data' | translate"
6
- class="truncate p-1 -mx-1 self-end mb-1"
7
- extraBtnClass="!text-primary font-sans font-medium"
8
- [choices]="choices"
9
- (selectValue)="selectLink($event)"
10
- ></gn-ui-dropdown-selector>
1
+ <div class="w-full h-full flex flex-col gap-[13px]">
2
+ <div
3
+ class="w-full py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
4
+ >
5
+ <gn-ui-dropdown-selector
6
+ *ngIf="dropdownChoices$ | async as choices"
7
+ [ngClass]="{ hidden: !displaySource }"
8
+ [title]="'table.select.data' | translate"
9
+ class="h-[44px] w-full"
10
+ extraBtnClass="font-sans font-bold"
11
+ [choices]="choices"
12
+ (selectValue)="selectLink($event)"
13
+ ></gn-ui-dropdown-selector>
14
+ </div>
11
15
  <ng-container *ngIf="hidePreview; else dataView">
12
16
  <gn-ui-popup-alert
13
17
  type="warning"
@@ -9,10 +9,10 @@ import {
9
9
  import { Configuration } from '../../../../../../libs/data-access/gn4/src'
10
10
  import { BehaviorSubject, combineLatest, map } from 'rxjs'
11
11
  import { MdViewFacade } from '../state'
12
- import { GN_UI_VERSION } from '../gn-ui-version.token'
13
12
  import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
14
13
  import { CommonModule } from '@angular/common'
15
14
  import { TranslateModule } from '@ngx-translate/core'
15
+ import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
16
16
 
17
17
  export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
18
18
  'webComponentEmbedderUrl'
@@ -40,7 +40,7 @@ export class DataViewPermalinkComponent {
40
40
  ]).pipe(
41
41
  map(([viewType, config, metadata]) => {
42
42
  const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin)
43
- url.searchParams.set('v', `${this.version}`)
43
+ url.searchParams.set('v', `${GEONETWORK_UI_TAG_NAME}`)
44
44
  if (viewType === 'chart') {
45
45
  if (config) {
46
46
  const { aggregation, xProperty, yProperty, chartType } = config
@@ -74,7 +74,6 @@ export class DataViewPermalinkComponent {
74
74
  @Optional()
75
75
  @Inject(WEB_COMPONENT_EMBEDDER_URL)
76
76
  protected wcEmbedderBaseUrl: string,
77
- @Inject(GN_UI_VERSION) private version: string,
78
77
  private facade: MdViewFacade
79
78
  ) {}
80
79
  }
@@ -1,4 +1,4 @@
1
- <div class="px-5 my-1">
1
+ <div>
2
2
  <mat-tab-group
3
3
  [selectedIndex]="0"
4
4
  animationDuration="0ms"
@@ -7,10 +7,10 @@ import {
7
7
  import { Configuration } from '../../../../../../libs/data-access/gn4/src'
8
8
  import { MdViewFacade } from '../state'
9
9
  import { BehaviorSubject, combineLatest, map } from 'rxjs'
10
- import { GN_UI_VERSION } from '../gn-ui-version.token'
11
10
  import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
12
11
  import { CommonModule } from '@angular/common'
13
12
  import { TranslateModule } from '@ngx-translate/core'
13
+ import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
14
14
 
15
15
  @Component({
16
16
  selector: 'gn-ui-data-view-web-component',
@@ -36,7 +36,7 @@ export class DataViewWebComponentComponent {
36
36
  if (config) {
37
37
  const { aggregation, xProperty, yProperty, chartType } = config
38
38
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
39
- this.version
39
+ GEONETWORK_UI_TAG_NAME
40
40
  }/gn-wc.js"></script>
41
41
  <gn-dataset-view-chart
42
42
  api-url="${new URL(
@@ -59,7 +59,7 @@ export class DataViewWebComponentComponent {
59
59
  return ''
60
60
  } else if (viewType === 'table') {
61
61
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
62
- this.version
62
+ GEONETWORK_UI_TAG_NAME
63
63
  }/gn-wc.js"></script>
64
64
  <gn-dataset-view-table
65
65
  api-url="${new URL(
@@ -76,7 +76,7 @@ export class DataViewWebComponentComponent {
76
76
  ></gn-dataset-view-table>`
77
77
  } else {
78
78
  return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
79
- this.version
79
+ GEONETWORK_UI_TAG_NAME
80
80
  }/gn-wc.js"></script>
81
81
  <gn-dataset-view-map
82
82
  api-url="${new URL(
@@ -97,7 +97,6 @@ export class DataViewWebComponentComponent {
97
97
 
98
98
  constructor(
99
99
  @Inject(Configuration) private config: Configuration,
100
- @Inject(GN_UI_VERSION) private version: string,
101
100
  private facade: MdViewFacade
102
101
  ) {}
103
102
  }
@@ -1,9 +1,9 @@
1
1
  <gn-ui-button
2
2
  *ngIf="externalViewer"
3
3
  (buttonClick)="openInExternalViewer()"
4
- type="secondary"
4
+ type="primary"
5
5
  [title]="'record.externalViewer.open' | translate"
6
- extraClass="ms-2 !rounded-lg"
6
+ [extraClass]="extraClass + 'bg-primary ms-2 !rounded-lg'"
7
7
  >
8
8
  <ng-icon name="matOpenInNew"></ng-icon>
9
9
  </gn-ui-button>
@@ -36,6 +36,7 @@ export const EXTERNAL_VIEWER_OPEN_NEW_TAB = new InjectionToken<boolean>(
36
36
  })
37
37
  export class ExternalViewerButtonComponent {
38
38
  @Input() link: DatasetOnlineResource
39
+ @Input() extraClass = ''
39
40
 
40
41
  get externalViewer() {
41
42
  return !!this.urlTemplate && !!this.supportedLinkLayerType
@@ -1,18 +1,24 @@
1
- <div class="w-full h-full flex flex-col p-1">
2
- <div class="w-full flex justify-end">
3
- <gn-ui-dropdown-selector
4
- [ngClass]="{ hidden: !displaySource }"
5
- class="truncate p-1 -mx-1 mb-1"
6
- extraBtnClass="!text-primary font-sans font-medium"
7
- [title]="'map.select.layer' | translate"
8
- [choices]="dropdownChoices$ | async"
9
- (selectValue)="selectLinkToDisplay($event)"
10
- ></gn-ui-dropdown-selector>
11
- <gn-ui-external-viewer-button
12
- class="shrink-0 py-1 place-self-end"
13
- [link]="selectedLink$ | async"
14
- >
15
- </gn-ui-external-viewer-button>
1
+ <div class="w-full h-full flex flex-col gap-[13px]">
2
+ <div
3
+ class="flex py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
4
+ >
5
+ <div class="grow min-w-0">
6
+ <gn-ui-dropdown-selector
7
+ [ngClass]="{ hidden: !displaySource }"
8
+ class="w-full"
9
+ extraBtnClass="font-sans font-bold"
10
+ [title]="'map.select.layer' | translate"
11
+ [choices]="dropdownChoices$ | async"
12
+ (selectValue)="selectLinkToDisplay($event)"
13
+ ></gn-ui-dropdown-selector>
14
+ </div>
15
+ <div class="self-end">
16
+ <gn-ui-external-viewer-button
17
+ extraClass="w-[44px] h-[44px]"
18
+ [link]="selectedLink$ | async"
19
+ >
20
+ </gn-ui-external-viewer-button>
21
+ </div>
16
22
  </div>
17
23
  <ng-container *ngIf="hidePreview; else mapView">
18
24
  <gn-ui-popup-alert
@@ -61,6 +61,7 @@ import { FetchError } from '../../../../../../libs/util/data-fetcher/src'
61
61
 
62
62
  marker('map.dropdown.placeholder')
63
63
  marker('wfs.feature.limit')
64
+ marker('dataset.error.restrictedAccess')
64
65
 
65
66
  @Component({
66
67
  selector: 'gn-ui-map-view',
@@ -145,6 +146,10 @@ export class MapViewComponent implements AfterViewInit {
145
146
  this.hidePreview = false
146
147
  this.loading = true
147
148
  this.error = null
149
+ if (link.accessRestricted) {
150
+ this.handleError('dataset.error.restrictedAccess')
151
+ return of([])
152
+ }
148
153
  return this.getLayerFromLink(link).pipe(
149
154
  map((layer) => [layer]),
150
155
  catchError((e) => {
@@ -6,7 +6,7 @@ import {
6
6
  OnDestroy,
7
7
  } from '@angular/core'
8
8
  import { Meta } from '@angular/platform-browser'
9
- import { DatasetRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
9
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
10
10
 
11
11
  @Component({
12
12
  selector: 'gn-ui-record-meta',
@@ -15,7 +15,7 @@ import { DatasetRecord } from '../../../../../../libs/common/domain/src/lib/mode
15
15
  standalone: true,
16
16
  })
17
17
  export class RecordMetaComponent implements OnDestroy, OnChanges {
18
- @Input() metadata: DatasetRecord
18
+ @Input() metadata: CatalogRecord
19
19
 
20
20
  constructor(private meta: Meta) {}
21
21
 
@@ -1,16 +1,18 @@
1
1
  import { Injectable } from '@angular/core'
2
2
  import { Actions, createEffect, ofType } from '@ngrx/effects'
3
3
  import { exhaustMap, mergeMap, of } from 'rxjs'
4
- import { catchError, filter, map, switchMap, take } from 'rxjs/operators'
4
+ import { catchError, filter, map, switchMap } from 'rxjs/operators'
5
5
  import * as MdViewActions from './mdview.actions'
6
6
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
7
7
  import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
8
+ import { Router } from '@angular/router'
8
9
  @Injectable()
9
10
  export class MdViewEffects {
10
11
  constructor(
11
12
  private actions$: Actions,
12
13
  private recordsRepository: RecordsRepositoryInterface,
13
- private platformServiceInterface: PlatformServiceInterface
14
+ private platformServiceInterface: PlatformServiceInterface,
15
+ private router: Router
14
16
  ) {}
15
17
 
16
18
  /*
@@ -21,7 +23,7 @@ export class MdViewEffects {
21
23
  ofType(MdViewActions.loadFullMetadata),
22
24
  switchMap(({ uuid }) => this.recordsRepository.getRecord(uuid)),
23
25
  map((record) => {
24
- if (record === null) {
26
+ if (record === null || !this.router.url.includes(record.kind)) {
25
27
  return MdViewActions.loadFullMetadataFailure({ notFound: true })
26
28
  }
27
29
  return MdViewActions.loadFullMetadataSuccess({ full: record })
@@ -16,6 +16,7 @@ import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/
16
16
  import {
17
17
  CatalogRecord,
18
18
  DatasetServiceDistribution,
19
+ ServiceEndpoint,
19
20
  UserFeedback,
20
21
  } from '../../../../../../libs/common/domain/src/lib/model/record'
21
22
  import { AvatarServiceInterface } from '../../../../../../libs/api/repository/src'
@@ -79,11 +80,7 @@ export class MdViewFacade {
79
80
  chartConfig$ = this.store.pipe(select(MdViewSelectors.getChartConfig))
80
81
 
81
82
  allLinks$ = this.metadata$.pipe(
82
- map((record) =>
83
- record.kind === 'dataset' && 'onlineResources' in record
84
- ? record.onlineResources
85
- : []
86
- )
83
+ map((record) => ('onlineResources' in record ? record.onlineResources : []))
87
84
  )
88
85
 
89
86
  apiLinks$ = this.allLinks$.pipe(
@@ -92,8 +89,8 @@ export class MdViewFacade {
92
89
  .filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API))
93
90
  // Put links to IGN Géoplateforme first
94
91
  .sort((dd1, dd2) => {
95
- return (dd2 as DatasetServiceDistribution).accessServiceProtocol ===
96
- 'GPFDL'
92
+ return (dd2 as DatasetServiceDistribution | ServiceEndpoint)
93
+ .accessServiceProtocol === 'GPFDL'
97
94
  ? 1
98
95
  : undefined // do not change the sorting otherwise
99
96
  })
@@ -4,6 +4,8 @@ export const ROUTER_STATE_KEY = 'router'
4
4
 
5
5
  export const ROUTER_ROUTE_SEARCH = 'search'
6
6
  export const ROUTER_ROUTE_DATASET = 'dataset'
7
+ export const ROUTER_ROUTE_SERVICE = 'service'
8
+ export const ROUTER_ROUTE_REUSE = 'reuse'
7
9
  export const ROUTER_ROUTE_ORGANIZATION = 'organization'
8
10
 
9
11
  export enum ROUTE_PARAMS {