geonetwork-ui 2.6.0-dev.7be6567ef → 2.6.0-dev.86c0fa7b5

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 (521) 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/distribution.mapper.mjs +3 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +47 -6
  6. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
  11. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +5 -2
  12. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +5 -13
  13. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +79 -16
  14. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
  15. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +7 -1
  16. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +2 -1
  17. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  18. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  19. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +49 -9
  20. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
  21. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +35 -3
  22. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +29 -6
  23. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  24. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +273 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
  26. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
  28. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
  29. package/esm2022/libs/feature/record/src/index.mjs +2 -4
  30. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +17 -16
  31. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
  32. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
  33. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
  34. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
  35. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +98 -19
  36. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
  37. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
  38. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
  39. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
  40. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
  41. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
  42. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
  43. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  44. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
  45. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
  46. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  47. package/esm2022/libs/feature/search/src/lib/constants.mjs +4 -2
  48. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
  49. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
  50. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -3
  51. package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
  52. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
  53. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
  54. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
  55. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
  56. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
  57. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
  58. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
  59. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
  60. package/esm2022/libs/ui/elements/src/index.mjs +6 -2
  61. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  62. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
  63. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
  64. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
  65. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  66. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +122 -0
  67. package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +59 -0
  68. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +68 -0
  69. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
  70. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
  71. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
  72. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
  73. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +37 -12
  74. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +5 -1
  75. package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +72 -0
  76. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
  77. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +32 -4
  78. package/esm2022/libs/ui/inputs/src/index.mjs +3 -2
  79. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
  80. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
  81. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
  82. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
  83. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
  84. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
  85. package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
  86. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
  87. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
  88. package/esm2022/libs/ui/layout/src/index.mjs +3 -1
  89. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
  90. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
  91. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
  92. package/esm2022/libs/ui/layout/src/lib/cell-popin/cell-popin.component.mjs +110 -0
  93. package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
  94. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +25 -3
  95. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  96. package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
  97. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +73 -0
  98. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
  99. package/esm2022/libs/ui/map/src/index.mjs +2 -1
  100. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
  101. package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
  102. package/esm2022/libs/ui/search/src/index.mjs +3 -1
  103. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
  104. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
  105. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
  106. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
  107. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
  108. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +21 -12
  109. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -17
  110. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +19 -5
  111. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
  112. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
  113. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  114. package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
  115. package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
  116. package/esm2022/libs/util/shared/src/index.mjs +2 -1
  117. package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
  118. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
  119. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
  120. package/esm2022/translations/de.json +84 -9
  121. package/esm2022/translations/en.json +84 -9
  122. package/esm2022/translations/es.json +83 -8
  123. package/esm2022/translations/fr.json +85 -10
  124. package/esm2022/translations/it.json +83 -8
  125. package/esm2022/translations/nl.json +83 -8
  126. package/esm2022/translations/pt.json +83 -8
  127. package/fesm2022/geonetwork-ui.mjs +3788 -1429
  128. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  129. package/libs/api/metadata-converter/src/index.d.ts +1 -0
  130. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  131. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
  132. package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
  133. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
  134. package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
  135. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  136. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +0 -1
  137. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  138. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +1 -0
  139. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  140. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  141. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  142. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  143. package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
  144. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
  145. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  146. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +13 -2
  147. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  148. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  149. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -0
  150. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  151. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +1 -0
  152. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
  153. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +26 -17
  154. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  155. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +6 -0
  156. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  157. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
  158. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  159. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
  160. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  161. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +6 -3
  162. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  163. package/libs/feature/editor/src/index.d.ts +1 -0
  164. package/libs/feature/editor/src/index.d.ts.map +1 -1
  165. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +52 -0
  166. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
  167. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  168. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
  169. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  170. 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
  171. package/libs/feature/record/src/index.d.ts +1 -3
  172. package/libs/feature/record/src/index.d.ts.map +1 -1
  173. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +15 -4
  174. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  175. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
  176. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  177. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
  178. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  179. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
  180. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  181. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +13 -6
  182. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  183. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
  184. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
  185. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  186. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -1
  187. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  188. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
  189. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  190. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
  191. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  192. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
  193. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  194. package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
  195. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  196. package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
  197. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  198. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  199. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
  200. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  201. package/libs/feature/search/src/index.d.ts +1 -1
  202. package/libs/feature/search/src/index.d.ts.map +1 -1
  203. package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
  204. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  205. package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
  206. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  207. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
  208. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  209. package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
  210. package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
  211. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
  212. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
  213. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
  214. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  215. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +6 -5
  216. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  217. package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
  218. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  219. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  220. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
  221. package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
  222. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
  223. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
  224. package/libs/ui/elements/src/index.d.ts +5 -1
  225. package/libs/ui/elements/src/index.d.ts.map +1 -1
  226. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
  227. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  228. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
  229. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  230. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
  231. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
  232. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +36 -0
  233. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
  234. package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +14 -0
  235. package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +1 -0
  236. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +13 -0
  237. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
  238. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
  239. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  240. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
  241. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  242. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +3 -0
  243. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  244. package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts.map +1 -1
  245. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +27 -0
  246. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
  247. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
  248. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
  249. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +6 -1
  250. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  251. package/libs/ui/inputs/src/index.d.ts +2 -1
  252. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  253. package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
  254. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  255. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
  256. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
  257. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
  258. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
  259. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
  260. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
  261. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  262. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
  263. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  264. package/libs/ui/layout/src/index.d.ts +2 -0
  265. package/libs/ui/layout/src/index.d.ts.map +1 -1
  266. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
  267. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  268. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
  269. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  270. package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts +28 -0
  271. package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts.map +1 -0
  272. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
  273. package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
  274. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +5 -1
  275. package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
  276. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +22 -0
  277. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
  278. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  279. package/libs/ui/map/src/index.d.ts +1 -0
  280. package/libs/ui/map/src/index.d.ts.map +1 -1
  281. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
  282. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  283. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
  284. package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
  285. package/libs/ui/search/src/index.d.ts +2 -0
  286. package/libs/ui/search/src/index.d.ts.map +1 -1
  287. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
  288. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
  289. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  290. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -3
  291. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  292. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
  293. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  294. package/libs/ui/search/src/lib/ui-search.module.d.ts +22 -19
  295. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  296. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  297. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  298. package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
  299. package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
  300. package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
  301. package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
  302. package/libs/util/shared/src/index.d.ts +1 -0
  303. package/libs/util/shared/src/index.d.ts.map +1 -1
  304. package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
  305. package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
  306. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  307. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  308. package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
  309. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  310. package/package.json +2 -2
  311. package/src/libs/api/metadata-converter/src/index.ts +1 -0
  312. package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
  313. package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
  314. package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
  315. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
  316. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +3 -3
  317. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
  318. package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
  319. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +70 -6
  320. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
  321. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
  322. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
  323. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +10 -6
  324. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +7 -4
  325. package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +4 -1
  326. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +4 -12
  327. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +118 -16
  328. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
  329. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
  330. package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -0
  331. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +27 -11
  332. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -0
  333. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +36 -26
  334. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
  335. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
  336. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +62 -1
  337. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
  338. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +58 -10
  339. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +40 -1
  340. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
  341. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +31 -1
  342. package/src/libs/feature/editor/src/index.ts +1 -0
  343. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +120 -0
  344. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +325 -0
  345. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
  346. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
  347. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
  348. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  349. package/src/libs/feature/record/src/index.ts +1 -3
  350. package/src/libs/feature/record/src/lib/data-view/data-view.component.html +17 -11
  351. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +17 -15
  352. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
  353. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
  354. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
  355. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
  356. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
  357. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +38 -11
  358. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +133 -19
  359. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
  360. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
  361. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
  362. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
  363. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
  364. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
  365. package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
  366. package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
  367. package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
  368. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
  369. package/src/libs/feature/search/src/index.ts +1 -1
  370. package/src/libs/feature/search/src/lib/constants.ts +3 -1
  371. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -7
  372. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
  373. package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
  374. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  375. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
  376. package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
  377. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
  378. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
  379. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
  380. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
  381. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
  382. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
  383. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +13 -3
  384. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
  385. package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
  386. package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
  387. package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
  388. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
  389. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
  390. package/src/libs/ui/elements/src/index.ts +5 -1
  391. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
  392. package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
  393. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  394. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
  395. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
  396. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
  397. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
  398. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
  399. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  400. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.css +0 -0
  401. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +83 -0
  402. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +131 -0
  403. package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +69 -0
  404. package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +61 -0
  405. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
  406. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
  407. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
  408. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
  409. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
  410. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
  411. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
  412. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
  413. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
  414. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
  415. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +3 -2
  416. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +48 -9
  417. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +4 -0
  418. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +107 -0
  419. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +83 -0
  420. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
  421. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
  422. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
  423. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +14 -1
  424. package/src/libs/ui/inputs/src/index.ts +2 -1
  425. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
  426. package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
  427. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
  428. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
  429. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
  430. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
  431. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
  432. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
  433. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
  434. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
  435. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +7 -8
  436. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
  437. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
  438. package/src/libs/ui/layout/src/index.ts +2 -0
  439. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
  440. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
  441. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
  442. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
  443. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
  444. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
  445. package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.html +40 -0
  446. package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.ts +141 -0
  447. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
  448. package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
  449. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +4 -7
  450. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +20 -0
  451. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
  452. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
  453. package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
  454. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +27 -0
  455. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +91 -0
  456. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +2 -6
  457. package/src/libs/ui/map/src/index.ts +1 -0
  458. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
  459. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
  460. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
  461. package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
  462. 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
  463. package/src/libs/ui/search/src/index.ts +2 -0
  464. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
  465. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
  466. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
  467. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
  468. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
  469. package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
  470. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
  471. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +16 -6
  472. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +15 -11
  473. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
  474. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +31 -24
  475. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -14
  476. package/src/libs/ui/search/src/lib/ui-search.module.ts +8 -0
  477. package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +4 -3
  478. package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
  479. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  480. package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
  481. package/src/libs/util/i18n/src/lib/language-codes.ts +23 -1
  482. package/src/libs/util/shared/src/index.ts +1 -0
  483. package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
  484. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
  485. package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
  486. package/tailwind.base.config.js +3 -0
  487. package/tailwind.base.css +19 -26
  488. package/translations/de.json +84 -9
  489. package/translations/en.json +84 -9
  490. package/translations/es.json +83 -8
  491. package/translations/fr.json +85 -10
  492. package/translations/it.json +83 -8
  493. package/translations/nl.json +83 -8
  494. package/translations/pt.json +83 -8
  495. package/translations/sk.json +83 -8
  496. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
  497. package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
  498. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
  499. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +0 -46
  500. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
  501. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
  502. 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
  503. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
  504. package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
  505. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
  506. package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
  507. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +0 -12
  508. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +0 -1
  509. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
  510. package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
  511. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
  512. package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
  513. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
  514. package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
  515. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +0 -30
  516. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +0 -48
  517. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
  518. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
  519. package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
  520. /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
  521. /package/src/libs/{ui/elements/src/lib/related-record-card/related-record-card.component.css → feature/search/src/lib/results-hits/results-hits.container.component.css} +0 -0
@@ -152,6 +152,8 @@ export type ServiceProtocol =
152
152
  | 'esriRest'
153
153
  | 'ogcFeatures'
154
154
  | 'GPFDL'
155
+ | 'tms'
156
+ | 'maplibre-style'
155
157
  | 'other'
156
158
 
157
159
  export type OnlineResourceType = 'service' | 'download' | 'link' | 'endpoint'
@@ -164,6 +166,7 @@ export interface DatasetServiceDistribution {
164
166
  name?: string
165
167
  description?: string
166
168
  translations?: OnlineResourceTranslations
169
+ accessRestricted?: boolean
167
170
  }
168
171
 
169
172
  export interface DatasetDownloadDistribution {
@@ -178,6 +181,7 @@ export interface DatasetDownloadDistribution {
178
181
  description?: string
179
182
  accessServiceProtocol?: ServiceProtocol
180
183
  translations?: OnlineResourceTranslations
184
+ accessRestricted?: boolean
181
185
  }
182
186
 
183
187
  export interface OnlineLinkResource {
@@ -187,6 +191,7 @@ export interface OnlineLinkResource {
187
191
  description?: string
188
192
  translations?: OnlineResourceTranslations
189
193
  mimeType?: string
194
+ accessRestricted?: boolean
190
195
  }
191
196
 
192
197
  export type DatasetOnlineResource = (
@@ -228,17 +233,9 @@ export interface DatasetRecord extends BaseRecord {
228
233
  spatialRepresentation?: SpatialRepresentationType
229
234
  }
230
235
 
231
- export type DatasetFeatureCatalog = {
232
- featureTypes: Array<{
233
- name: string
234
- definition: string
235
- attributes: Array<{ name: string; title: string }>
236
- }>
237
- }
238
-
239
236
  export interface ServiceEndpoint {
240
- endpointUrl: URL
241
- protocol: string
237
+ url: URL
238
+ accessServiceProtocol: ServiceProtocol
242
239
  type: 'endpoint'
243
240
  description?: string
244
241
  translations?: OnlineResourceTranslations
@@ -263,13 +260,32 @@ export interface ReuseRecord extends BaseRecord {
263
260
  temporalExtents: Array<DatasetTemporalExtent>
264
261
  }
265
262
 
263
+ export type DatasetFeatureCatalog = {
264
+ featureTypes: Array<{
265
+ name: string
266
+ definition: string
267
+ attributes: DatasetFeatureAttribute[]
268
+ }>
269
+ }
270
+ export interface DatasetFeatureAttributeValue {
271
+ code?: string
272
+ definition?: string
273
+ label?: string
274
+ }
275
+ export interface DatasetFeatureAttribute {
276
+ name: string
277
+ definition: string
278
+ type: string
279
+ code: string
280
+ values?: Array<DatasetFeatureAttributeValue>
281
+ }
266
282
  export interface DatasetFeatureType {
267
283
  aliases: string
268
284
  code: string
269
285
  isAbstract: string
270
286
  typeName: string
271
287
  definition: string
272
- attributeTable: Array<{ name: string; definition: string }>
288
+ attributeTable: Array<DatasetFeatureAttribute>
273
289
  }
274
290
 
275
291
  export type ReuseType = 'application' | 'map' | 'other'
@@ -19,8 +19,13 @@ export abstract class RecordsRepositoryInterface {
19
19
  abstract getSimilarRecords(
20
20
  similarTo: CatalogRecord
21
21
  ): Observable<CatalogRecord[]>
22
+ abstract getSources(record: CatalogRecord): Observable<CatalogRecord[]>
23
+ abstract getSourceOf(record: CatalogRecord): Observable<CatalogRecord[]>
22
24
  abstract fuzzySearch(query: string): Observable<SearchResults>
25
+ abstract canDuplicate(record: CatalogRecord): boolean
26
+ abstract canDelete(record: CatalogRecord): Observable<boolean>
23
27
  abstract canEditRecord(uniqueIdentifier: string): Observable<boolean>
28
+ abstract canEditIndexedRecord(record: CatalogRecord): Observable<boolean>
24
29
  /**
25
30
  * This emits once:
26
31
  * - record object; if a draft exists, this will return it
@@ -95,4 +100,5 @@ export abstract class RecordsRepositoryInterface {
95
100
  localRecord: CatalogRecord
96
101
  ): Observable<{ user: string; date: Date }>
97
102
  abstract getRecordPublicationStatus(uuid: string): Observable<boolean>
103
+ abstract getApplicationLanguages(): Observable<string[]>
98
104
  }
@@ -1,147 +1,157 @@
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
  },
147
+ maplayerTms: {
148
+ accessServiceProtocol: 'TMS',
149
+ name: 'mytmslayer',
150
+ url: 'https://my.tms.server/MapServer',
151
+ },
152
+ maplayerTms2: {
153
+ accessServiceProtocol: 'OSGeo:TMS',
154
+ name: 'myothertmslayer',
155
+ url: 'https://my.tms.server/MapServer',
156
+ },
147
157
  })
@@ -185,6 +185,20 @@ export const aSetOfLinksFixture = () => ({
185
185
  url: new URL('https://my.ogc.server/wms'),
186
186
  accessServiceProtocol: 'wms',
187
187
  }) as DatasetServiceDistribution,
188
+ geodataTms: () =>
189
+ ({
190
+ name: 'mytmslayer',
191
+ type: 'service',
192
+ url: new URL('https://my.ogc.server/tms'),
193
+ accessServiceProtocol: 'tms',
194
+ }) as DatasetServiceDistribution,
195
+ geodataAsMaplibreStyle: () =>
196
+ ({
197
+ name: 'mytmslayerAsMaplibreJson',
198
+ type: 'service',
199
+ url: new URL('https://my.ogc.server/tms/layer/style.json'),
200
+ accessServiceProtocol: 'maplibre-style',
201
+ }) as DatasetServiceDistribution,
188
202
  geodataWfs2: () =>
189
203
  ({
190
204
  name: 'myotherlayer',
@@ -239,10 +253,10 @@ export const aSetOfLinksFixture = () => ({
239
253
  ({
240
254
  description:
241
255
  'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS',
242
- endpointUrl: new URL(
256
+ url: new URL(
243
257
  'https://services.geo.sg.ch/wss/service/SG00170_WMS/guest?request=GetCapabilities&service=WMS'
244
258
  ),
245
- protocol: 'wms',
259
+ accessServiceProtocol: 'wms',
246
260
  type: 'endpoint',
247
261
  }) as ServiceEndpoint,
248
262
  })
@@ -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
  })
@@ -3,6 +3,7 @@ import {
3
3
  DatasetRecord,
4
4
  DatasetSpatialExtent,
5
5
  Keyword,
6
+ ServiceRecord,
6
7
  } from '../../../../../libs/common/domain/src/lib/model/record'
7
8
 
8
9
  export const datasetRecordsFixture: () => CatalogRecord[] = () => [
@@ -176,6 +177,20 @@ As such, **it is not very interesting at all.**`,
176
177
  link: '',
177
178
  definition: 'Nom de la rue',
178
179
  type: 'String (48)',
180
+ values: [
181
+ {
182
+ code: 'Pomme',
183
+ label: 'Les Pommiers',
184
+ description: 'Sous les pommiers',
185
+ },
186
+ {
187
+ code: 'Cotton',
188
+ label: 'Rue Cotton',
189
+ description: 'Rue Cotton',
190
+ },
191
+ { code: "Passage de l'échiquier" },
192
+ { description: 'Rue du Charlieu' },
193
+ ],
179
194
  },
180
195
  {
181
196
  code: 'RUE',
@@ -231,7 +246,7 @@ As such, **it is not very interesting at all.**`,
231
246
  recordUpdated: new Date('2022-04-15T14:18:19'),
232
247
  resourceUpdated: new Date('2022-03-29'),
233
248
  title:
234
- "Plan local d'urbanisme (PLU) dématérialisé - commune d'Avrigny - approbation du 29/03/2022",
249
+ "Plan local d'urbanisme (PLU) dématérialisé - commune d'Avrigny - approbation du 29/03/2022 (Ce lot informe du droit à bâtir sur la commune d'Avrigny)",
235
250
  abstract: `Plan local d'urbanisme (PLU) dématérialisé - commune d'Avrigny - approbation du 29/03/2022.
236
251
 
237
252
  Ce lot informe du droit à bâtir sur la commune d'Avrigny.
@@ -811,6 +826,52 @@ export const importDatasetRecordAsXmlFixture = (): string => `
811
826
  </gmd:identificationInfo>
812
827
  </gmd:MD_Metadata>`
813
828
 
829
+ export const simpleServiceRecordFixture = (): ServiceRecord => ({
830
+ abstract: `Ce service de visualisation WMS permet de consulter la série de couches de données "Sites de gestion des déchets miniers - Série".`,
831
+ kind: 'service',
832
+ recordUpdated: new Date('2023-03-17T07:38:08.875Z'),
833
+ recordPublished: null,
834
+ ownerOrganization: null,
835
+ licenses: [],
836
+ legalConstraints: [],
837
+ securityConstraints: [],
838
+ otherConstraints: [],
839
+ contacts: [],
840
+ contactsForResource: [],
841
+ keywords: [],
842
+ topics: [],
843
+ spatialExtents: [],
844
+ overviews: [],
845
+ defaultLanguage: null,
846
+ otherLanguages: [],
847
+ title: 'Sites de gestion des déchets miniers - Service de visualisation WMS',
848
+ onlineResources: [
849
+ {
850
+ name: 'Rapport de disponibilité du service WMS',
851
+ description:
852
+ 'Ce service de visualisation WMS permet de consulter la série de couches de données "Sites de gestion des déchets miniers - Série".',
853
+ mimeType: 'text/html',
854
+ type: 'link',
855
+ url: new URL(
856
+ 'https://geoservices.wallonie.be/rapportDisponibilite/wms/sites_de_gestion_des_dechets_miniers_srie.html'
857
+ ),
858
+ accessRestricted: false,
859
+ },
860
+ ],
861
+ uniqueIdentifier: '00b22798-ec8e-4500-89e8-90eeeda45919',
862
+ landingPage: new URL(
863
+ 'http://localhost:4200/geonetwork/srv/fre/catalog.search#/metadata/00b22798-ec8e-4500-89e8-90eeeda45919'
864
+ ),
865
+ extras: {
866
+ isPublishedToAll: true,
867
+ id: '723',
868
+ isHarvested: true,
869
+ ownerInfo: 'admin|admin|admin|Administrator',
870
+ edit: true,
871
+ },
872
+ recordCreated: new Date('2023-03-17T07:38:08.875Z'),
873
+ })
874
+
814
875
  export const NATIONAL_KEYWORD = {
815
876
  key: 'http://inspire.ec.europa.eu/metadata-codelist/SpatialScope/national',
816
877
  label: 'National',
@@ -18,15 +18,17 @@
18
18
  [selected]="xProperty$.value"
19
19
  [title]="'chart.dropdown.xProperty' | translate"
20
20
  ></gn-ui-dropdown-selector>
21
- <gn-ui-dropdown-selector
22
- class="basis-1/4"
23
- *ngIf="!isCountAggregation"
24
- [choices]="yChoices$ | async"
25
- (selectValue)="yProperty$.next($event)"
26
- [selected]="yProperty$.value"
27
- [title]="'chart.dropdown.yProperty' | translate"
28
- class="select-y-prop"
29
- ></gn-ui-dropdown-selector>
21
+ <ng-container *ngIf="yChoices$ | async as yChoices">
22
+ <gn-ui-dropdown-selector
23
+ class="basis-1/4"
24
+ *ngIf="!isCountAggregation"
25
+ [choices]="yChoices"
26
+ (selectValue)="yProperty$.next($event)"
27
+ [selected]="yProperty$.value"
28
+ [title]="'chart.dropdown.yProperty' | translate"
29
+ class="select-y-prop"
30
+ ></gn-ui-dropdown-selector>
31
+ </ng-container>
30
32
  <gn-ui-dropdown-selector
31
33
  class="basis-1/4"
32
34
  [choices]="aggregationChoices"
@@ -43,6 +45,7 @@
43
45
  *ngIf="!error"
44
46
  [data]="chartData$ | async"
45
47
  [type]="chartType$.value"
48
+ [prettyLabel]="prettyLabel$ | async"
46
49
  [labelProperty]="labelProperty"
47
50
  [valueProperty]="valueProperty"
48
51
  ></gn-ui-chart>
@@ -2,9 +2,7 @@ import {
2
2
  ChangeDetectionStrategy,
3
3
  ChangeDetectorRef,
4
4
  Component,
5
- Inject,
6
5
  Input,
7
- Optional,
8
6
  Output,
9
7
  } from '@angular/core'
10
8
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
@@ -13,6 +11,7 @@ import {
13
11
  FetchError,
14
12
  FieldAggregation,
15
13
  getJsonDataItemsProxy,
14
+ PropertyInfo,
16
15
  } from '../../../../../../libs/util/data-fetcher/src'
17
16
  import {
18
17
  DropdownChoice,
@@ -30,7 +29,10 @@ import {
30
29
  } from 'rxjs/operators'
31
30
  import { DataService } from '../service/data.service'
32
31
  import { InputChartType } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
33
- import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
32
+ import {
33
+ DatasetFeatureCatalog,
34
+ DatasetOnlineResource,
35
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
34
36
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
35
37
  import { CommonModule } from '@angular/common'
36
38
  import { ChartComponent } from '../../../../../../libs/ui/dataviz/src'
@@ -67,9 +69,18 @@ marker('chart.aggregation.count')
67
69
  standalone: true,
68
70
  })
69
71
  export class ChartViewComponent {
72
+ public featureCatalog$ = new BehaviorSubject<DatasetFeatureCatalog | null>(
73
+ null
74
+ )
75
+ @Input() set featureCatalog(value: DatasetFeatureCatalog) {
76
+ this.featureCatalog$.next(value)
77
+ }
70
78
  @Input() cacheActive = true
71
79
  @Input() set link(value: DatasetOnlineResource) {
72
80
  this.currentLink$.next(value)
81
+ if (value) {
82
+ this.aggregation$.next('sum')
83
+ }
73
84
  }
74
85
  private currentLink$ = new BehaviorSubject<DatasetOnlineResource>(null)
75
86
 
@@ -137,6 +148,10 @@ export class ChartViewComponent {
137
148
  switchMap((link) => {
138
149
  this.error = null
139
150
  this.loading = true
151
+ if (link.accessRestricted) {
152
+ this.handleError('dataset.error.restrictedAccess')
153
+ return EMPTY
154
+ }
140
155
  return this.dataService.getDataset(link, this.cacheActive).pipe(
141
156
  catchError((error) => {
142
157
  this.handleError(error)
@@ -146,13 +161,8 @@ export class ChartViewComponent {
146
161
  }),
147
162
  shareReplay(1)
148
163
  )
149
- properties$ = this.dataset$.pipe(
150
- switchMap((dataset) =>
151
- dataset.properties.catch((error) => {
152
- this.handleError(error)
153
- return []
154
- })
155
- ),
164
+ properties$ = combineLatest([this.dataset$, this.featureCatalog$]).pipe(
165
+ switchMap(([dataset, catalog]) => this.setProperties(dataset, catalog)),
156
166
  shareReplay(1)
157
167
  )
158
168
  yChoices$ = this.properties$.pipe(
@@ -193,6 +203,7 @@ export class ChartViewComponent {
193
203
  this.yProperty$.pipe(filter((value) => value !== undefined)),
194
204
  this.aggregation$,
195
205
  ]).pipe(
206
+ filter(([_, x, y]) => !!x || !!y),
196
207
  switchMap(([dataset, xProp, yProp, aggregation]) => {
197
208
  const fieldAgg: FieldAggregation =
198
209
  aggregation === 'count' ? ['count'] : [aggregation, yProp]
@@ -213,6 +224,18 @@ export class ChartViewComponent {
213
224
  shareReplay(1)
214
225
  )
215
226
 
227
+ prettyLabel$ = combineLatest([
228
+ this.aggregation$,
229
+ this.properties$,
230
+ this.yProperty$,
231
+ ]).pipe(
232
+ map(([aggregation, properties, yProperty]) => {
233
+ if (aggregation === 'count') return 'count()'
234
+ const prop = properties.find((p) => p.name === yProperty)
235
+ return prop ? `${aggregation}(${prop.label})` : ''
236
+ })
237
+ )
238
+
216
239
  get labelProperty() {
217
240
  if (!this.xProperty$.value) return ''
218
241
  return `distinct(${this.xProperty$.value})`
@@ -231,6 +254,31 @@ export class ChartViewComponent {
231
254
  private translateService: TranslateService
232
255
  ) {}
233
256
 
257
+ setProperties(
258
+ dataset: BaseReader,
259
+ catalog: DatasetFeatureCatalog
260
+ ): Promise<PropertyInfo[]> {
261
+ return dataset.properties
262
+ .then((properties) => {
263
+ return properties.map((p) => {
264
+ if (catalog) {
265
+ const featureAttributes = catalog?.featureTypes[0]?.attributes ?? []
266
+ const matchingAttribute = featureAttributes.find(
267
+ (attr) => attr.name === p.label
268
+ )
269
+ if (matchingAttribute?.code) {
270
+ return { ...p, label: matchingAttribute.code }
271
+ }
272
+ return p
273
+ }
274
+ return p
275
+ })
276
+ })
277
+ .catch((error) => {
278
+ this.handleError(error)
279
+ return []
280
+ })
281
+ }
234
282
  handleError(error: FetchError | Error | string) {
235
283
  if (error instanceof FetchError) {
236
284
  this.error = this.translateService.instant(
@@ -6,6 +6,7 @@ import {
6
6
  OgcApiRecord,
7
7
  WfsEndpoint,
8
8
  WfsVersion,
9
+ TmsEndpoint,
9
10
  } from '@camptocamp/ogc-client'
10
11
  import {
11
12
  BaseReader,
@@ -226,11 +227,49 @@ export class DataService {
226
227
  ? endpoint.getCollectionItem(collections[0], '1')
227
228
  : null
228
229
  })
229
- .catch((error) => {
230
+ .catch(() => {
230
231
  throw new Error(`ogc.unreachable.unknown`)
231
232
  })
232
233
  }
233
234
 
235
+ async getGeodataLinksFromTms(
236
+ tmsLink: DatasetServiceDistribution,
237
+ keepOriginalLink = false
238
+ ): Promise<DatasetServiceDistribution[]> {
239
+ const endpoint = new TmsEndpoint(tmsLink.url.toString())
240
+ const tileMaps = await endpoint.allTileMaps.catch(() => {
241
+ throw new Error(`ogc.unreachable.unknown`)
242
+ })
243
+ if (!tileMaps?.length) return null
244
+
245
+ // TODO: at some point use the identifierInService field if more that one layers in the TMS service
246
+ const tileMapInfo = await endpoint.getTileMapInfo(tileMaps[0].href)
247
+
248
+ // case 1: no styles; return a plain TMS link
249
+ if (!tileMapInfo?.metadata?.length) return [tmsLink]
250
+
251
+ // case 2: styles present; return each as a separate link
252
+ const styleLinks = tileMapInfo.metadata
253
+ .filter((meta) => meta.href)
254
+ .map((meta) => {
255
+ const fileName = meta.href.split('/').pop() || ''
256
+ const linkName =
257
+ tmsLink.description || ('name' in tmsLink ? tmsLink.name : '')
258
+ const styleName = fileName.split('.')[0]
259
+ const name = `${linkName} - ${styleName}`
260
+ return {
261
+ type: 'service',
262
+ url: new URL(meta.href),
263
+ name,
264
+ accessServiceProtocol: 'maplibre-style',
265
+ } as DatasetServiceDistribution
266
+ })
267
+ if (keepOriginalLink) {
268
+ styleLinks.unshift(tmsLink)
269
+ }
270
+ return styleLinks
271
+ }
272
+
234
273
  getDownloadLinksFromEsriRest(
235
274
  esriRestLink: DatasetServiceDistribution
236
275
  ): DatasetOnlineResource[] {