geonetwork-ui 2.4.0-dev.344a92f2 → 2.4.0-dev.3b6b95eb

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 (429) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +4 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/common/license.mjs +64 -0
  3. package/esm2022/libs/api/metadata-converter/src/lib/common/url.mjs +14 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +254 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/index.mjs +2 -0
  6. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.mjs +17 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +196 -0
  8. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.mjs +46 -0
  9. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.mjs +74 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.mjs +2 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.mjs +27 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +11 -1
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +3 -3
  14. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +8 -23
  15. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +3 -3
  16. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +27 -37
  17. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +35 -3
  18. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +78 -39
  19. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +34 -26
  20. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +1 -1
  21. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  22. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  23. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +7 -4
  24. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  25. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +10 -7
  26. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +40 -50
  27. package/esm2022/libs/feature/editor/src/index.mjs +2 -1
  28. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +5 -5
  29. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +3 -3
  30. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +95 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +72 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +109 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -8
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +38 -60
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +10 -7
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +191 -0
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +5 -4
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +2 -2
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +10 -6
  40. package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +3 -3
  41. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +17 -3
  42. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -5
  43. package/esm2022/libs/feature/map/src/index.mjs +2 -9
  44. package/esm2022/libs/feature/map/src/lib/+state/map.actions.mjs +4 -7
  45. package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +9 -15
  46. package/esm2022/libs/feature/map/src/lib/+state/map.reducer.mjs +13 -44
  47. package/esm2022/libs/feature/map/src/lib/+state/map.selectors.mjs +3 -2
  48. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +15 -15
  49. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +16 -10
  50. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +10 -8
  51. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +11 -7
  52. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +10 -6
  53. package/esm2022/libs/feature/map/src/lib/constant/index.mjs +1 -2
  54. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +4 -44
  55. package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +43 -29
  56. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +17 -8
  57. package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +27 -0
  58. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -168
  59. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +21 -17
  60. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +14 -8
  61. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +40 -52
  62. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +1 -1
  63. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +11 -6
  64. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +7 -7
  65. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +1 -6
  66. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  67. package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +3 -3
  68. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +3 -3
  69. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +3 -3
  70. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +3 -3
  71. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +2 -2
  72. package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +6 -4
  73. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +5 -3
  74. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
  75. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +20 -4
  76. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  77. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +3 -3
  78. package/esm2022/libs/ui/map/src/index.mjs +4 -3
  79. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +8 -6
  80. package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +137 -0
  81. package/esm2022/libs/ui/map/src/lib/components/map-container/map-settings.token.mjs +13 -0
  82. package/esm2022/libs/ui/map/src/lib/map-utils.mjs +37 -0
  83. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +3 -3
  84. package/esm2022/libs/util/app-config/src/index.mjs +2 -1
  85. package/esm2022/libs/util/app-config/src/lib/map-layers.mjs +27 -0
  86. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  87. package/esm2022/libs/util/shared/src/lib/utils/no-duplicate-file-name.mjs +19 -0
  88. package/esm2022/translations/de.json +19 -0
  89. package/esm2022/translations/en.json +51 -32
  90. package/esm2022/translations/es.json +19 -0
  91. package/esm2022/translations/fr.json +82 -63
  92. package/esm2022/translations/it.json +19 -0
  93. package/esm2022/translations/nl.json +19 -0
  94. package/esm2022/translations/pt.json +19 -0
  95. package/fesm2022/geonetwork-ui.mjs +6871 -6029
  96. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  97. package/libs/api/metadata-converter/src/index.d.ts +3 -0
  98. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/common/license.d.ts +3 -0
  100. package/libs/api/metadata-converter/src/lib/common/license.d.ts.map +1 -0
  101. package/libs/api/metadata-converter/src/lib/common/url.d.ts +7 -0
  102. package/libs/api/metadata-converter/src/lib/common/url.d.ts.map +1 -0
  103. package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts +13 -0
  104. package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -0
  105. package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts +2 -0
  106. package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts.map +1 -0
  107. package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts +16 -0
  108. package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts.map +1 -0
  109. package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts +20 -0
  110. package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -0
  111. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts +9 -0
  112. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts.map +1 -0
  113. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts +8 -0
  114. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts.map +1 -0
  115. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts +2 -0
  116. package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts.map +1 -0
  117. package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts +6 -0
  118. package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts.map +1 -0
  119. package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -1
  120. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
  121. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +0 -1
  122. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  123. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  124. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +4 -6
  125. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  126. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +58 -0
  127. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  128. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +12 -7
  129. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  130. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -15
  131. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  132. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -1
  133. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  134. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -3
  135. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  136. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +7 -0
  137. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  138. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +2 -1
  139. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  140. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +10 -9
  141. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
  142. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +13 -20
  143. package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
  144. package/libs/feature/editor/src/index.d.ts +1 -0
  145. package/libs/feature/editor/src/index.d.ts.map +1 -1
  146. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  147. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +34 -0
  148. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
  149. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +16 -0
  150. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -0
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts +38 -0
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -0
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -1
  154. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
  155. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +6 -13
  156. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -1
  157. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +1 -1
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +44 -0
  160. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -0
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +1 -1
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
  163. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  164. package/libs/feature/editor/src/lib/fields.config.d.ts +2 -0
  165. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  166. package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
  167. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  168. package/libs/feature/map/src/index.d.ts +1 -8
  169. package/libs/feature/map/src/index.d.ts.map +1 -1
  170. package/libs/feature/map/src/lib/+state/map.actions.d.ts +13 -39
  171. package/libs/feature/map/src/lib/+state/map.actions.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/+state/map.facade.d.ts +9 -10
  173. package/libs/feature/map/src/lib/+state/map.facade.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/+state/map.reducer.d.ts +4 -2
  175. package/libs/feature/map/src/lib/+state/map.reducer.d.ts.map +1 -1
  176. package/libs/feature/map/src/lib/+state/map.selectors.d.ts +6 -1
  177. package/libs/feature/map/src/lib/+state/map.selectors.d.ts.map +1 -1
  178. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +3 -5
  179. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  180. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  181. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +2 -2
  182. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  183. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  184. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  185. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  186. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  187. package/libs/feature/map/src/lib/constant/index.d.ts +0 -1
  188. package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
  189. package/libs/feature/map/src/lib/feature-map.module.d.ts +12 -18
  190. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  191. package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +7 -7
  192. package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
  193. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +4 -3
  194. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  195. package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts +14 -0
  196. package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts.map +1 -0
  197. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +0 -30
  198. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  199. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +8 -5
  200. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  201. package/libs/feature/record/src/lib/feature-record.module.d.ts +13 -11
  202. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  203. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +13 -19
  204. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  205. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +4 -3
  206. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  207. package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts +1 -1
  208. package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts.map +1 -1
  209. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +9 -10
  210. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  211. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  212. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  213. package/libs/ui/inputs/src/index.d.ts +1 -0
  214. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  215. package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts +1 -1
  216. package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts.map +1 -1
  217. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +1 -0
  218. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
  219. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -26
  220. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  221. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +6 -3
  222. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
  223. package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
  224. package/libs/ui/map/src/index.d.ts +3 -2
  225. package/libs/ui/map/src/index.d.ts.map +1 -1
  226. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +3 -4
  227. package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
  228. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +37 -0
  229. package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -0
  230. package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts +18 -0
  231. package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts.map +1 -0
  232. package/libs/ui/map/src/lib/map-utils.d.ts +7 -0
  233. package/libs/ui/map/src/lib/map-utils.d.ts.map +1 -0
  234. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +1 -1
  235. package/libs/util/app-config/src/index.d.ts +1 -0
  236. package/libs/util/app-config/src/index.d.ts.map +1 -1
  237. package/libs/util/app-config/src/lib/map-layers.d.ts +4 -0
  238. package/libs/util/app-config/src/lib/map-layers.d.ts.map +1 -0
  239. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  240. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  241. package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts +2 -0
  242. package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts.map +1 -0
  243. package/package.json +5 -3
  244. package/src/libs/api/metadata-converter/src/index.ts +3 -0
  245. package/src/libs/api/metadata-converter/src/lib/common/license.ts +66 -0
  246. package/src/libs/api/metadata-converter/src/lib/common/url.ts +15 -0
  247. package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +378 -0
  248. package/src/libs/api/metadata-converter/src/lib/dcat-ap/index.ts +1 -0
  249. package/src/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.ts +17 -0
  250. package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +370 -0
  251. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.ts +95 -0
  252. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/individual-name.ts +20 -0
  253. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/keyword.mapper.ts +16 -0
  254. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/role.mapper.ts +48 -0
  255. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.ts +97 -0
  256. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/status.mapper.ts +19 -0
  257. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/update-frequency.mapper.ts +67 -0
  258. package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.ts +1 -0
  259. package/src/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.ts +68 -0
  260. package/src/libs/api/metadata-converter/src/lib/find-converter.ts +13 -0
  261. package/src/libs/api/metadata-converter/src/lib/fixtures/eu.dcat-ap.records.ts +272 -0
  262. package/src/libs/api/metadata-converter/src/lib/fixtures/opendataswiss.records.ts +110 -0
  263. package/src/libs/api/metadata-converter/src/lib/fixtures/sextant.records.ts +85 -0
  264. package/src/libs/api/metadata-converter/src/lib/fixtures/vlaanderen.dcat-ap.records.ts +73 -0
  265. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +1 -2
  266. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +7 -35
  267. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +1 -2
  268. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +85 -120
  269. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +37 -2
  270. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +132 -68
  271. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +57 -30
  272. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +1 -1
  273. package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -2
  274. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
  275. package/src/libs/common/fixtures/src/index.ts +3 -0
  276. package/src/libs/common/fixtures/src/lib/individual.fixtures.ts +61 -0
  277. package/src/libs/common/fixtures/src/lib/map/index.ts +1 -0
  278. package/src/libs/common/fixtures/src/lib/map/map-context.fixtures.ts +53 -0
  279. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +13 -0
  280. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +5 -1
  281. package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +6 -2
  282. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +5 -2
  283. package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +38 -78
  284. package/src/libs/feature/editor/src/index.ts +1 -0
  285. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +11 -4
  286. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +1 -1
  287. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +47 -0
  288. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +132 -0
  289. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +31 -0
  290. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +82 -0
  291. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +40 -0
  292. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +170 -0
  293. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -1
  294. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +6 -8
  295. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +1 -4
  296. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +41 -83
  297. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +20 -11
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +9 -5
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.css +0 -0
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +71 -0
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +241 -0
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +4 -3
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +1 -1
  304. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +15 -0
  305. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +7 -3
  306. package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +2 -6
  307. package/src/libs/feature/editor/src/lib/fields.config.ts +18 -2
  308. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -3
  309. package/src/libs/feature/map/src/index.ts +1 -8
  310. package/src/libs/feature/map/src/lib/+state/map.actions.ts +10 -25
  311. package/src/libs/feature/map/src/lib/+state/map.facade.ts +11 -15
  312. package/src/libs/feature/map/src/lib/+state/map.reducer.ts +16 -53
  313. package/src/libs/feature/map/src/lib/+state/map.selectors.ts +7 -2
  314. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -15
  315. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +17 -11
  316. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +11 -12
  317. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +12 -10
  318. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +11 -9
  319. package/src/libs/feature/map/src/lib/constant/index.ts +0 -1
  320. package/src/libs/feature/map/src/lib/feature-map.module.ts +0 -26
  321. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +38 -20
  322. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +2 -2
  323. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +15 -5
  324. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.css +0 -0
  325. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.html +4 -0
  326. package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.ts +29 -0
  327. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -229
  328. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +27 -18
  329. package/src/libs/feature/record/src/lib/feature-record.module.ts +11 -3
  330. package/src/libs/feature/record/src/lib/map-view/map-view.component.html +4 -4
  331. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +44 -71
  332. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
  333. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +4 -1
  334. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +4 -2
  335. package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +8 -1
  336. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +0 -3
  337. package/src/libs/ui/inputs/src/index.ts +1 -0
  338. package/src/libs/ui/inputs/src/lib/badge/badge.component.html +1 -2
  339. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +2 -1
  340. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +2 -1
  341. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +8 -8
  342. package/src/libs/ui/inputs/src/lib/search-input/search-input.component.ts +5 -1
  343. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +1 -1
  344. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +3 -1
  345. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  346. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +5 -1
  347. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +25 -2
  348. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +1 -1
  349. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +2 -2
  350. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +1 -1
  351. package/src/libs/ui/map/src/index.ts +3 -2
  352. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +1 -1
  353. package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +8 -5
  354. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.css +0 -0
  355. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +203 -0
  356. package/src/libs/ui/map/src/lib/components/map-container/map-settings.token.ts +23 -0
  357. package/src/libs/ui/map/src/lib/map-utils.ts +54 -0
  358. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +18 -14
  359. package/src/libs/util/app-config/src/index.ts +1 -0
  360. package/src/libs/util/app-config/src/lib/map-layers.ts +31 -0
  361. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  362. package/src/libs/util/shared/src/lib/utils/no-duplicate-file-name.ts +23 -0
  363. package/tailwind.base.css +3 -2
  364. package/translations/de.json +19 -0
  365. package/translations/en.json +51 -32
  366. package/translations/es.json +19 -0
  367. package/translations/fr.json +82 -63
  368. package/translations/it.json +19 -0
  369. package/translations/nl.json +19 -0
  370. package/translations/pt.json +19 -0
  371. package/translations/sk.json +19 -0
  372. package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +0 -15
  373. package/esm2022/libs/feature/map/src/lib/+state/map.models.mjs +0 -2
  374. package/esm2022/libs/feature/map/src/lib/constant/map-options.mjs +0 -8
  375. package/esm2022/libs/feature/map/src/lib/constant/style.constant.mjs +0 -17
  376. package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +0 -38
  377. package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +0 -19
  378. package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +0 -19
  379. package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +0 -27
  380. package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +0 -46
  381. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +0 -10
  382. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +0 -289
  383. package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +0 -40
  384. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +0 -33
  385. package/libs/feature/map/src/lib/+state/map.effects.d.ts +0 -9
  386. package/libs/feature/map/src/lib/+state/map.effects.d.ts.map +0 -1
  387. package/libs/feature/map/src/lib/+state/map.models.d.ts +0 -9
  388. package/libs/feature/map/src/lib/+state/map.models.d.ts.map +0 -1
  389. package/libs/feature/map/src/lib/constant/map-options.d.ts +0 -9
  390. package/libs/feature/map/src/lib/constant/map-options.d.ts.map +0 -1
  391. package/libs/feature/map/src/lib/constant/style.constant.d.ts +0 -4
  392. package/libs/feature/map/src/lib/constant/style.constant.d.ts.map +0 -1
  393. package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts +0 -16
  394. package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts.map +0 -1
  395. package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts +0 -9
  396. package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts.map +0 -1
  397. package/libs/feature/map/src/lib/manager/map-manager.service.d.ts +0 -11
  398. package/libs/feature/map/src/lib/manager/map-manager.service.d.ts.map +0 -1
  399. package/libs/feature/map/src/lib/map-container/map-container.component.d.ts +0 -12
  400. package/libs/feature/map/src/lib/map-container/map-container.component.d.ts.map +0 -1
  401. package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts +0 -26
  402. package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts.map +0 -1
  403. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +0 -77
  404. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +0 -1
  405. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +0 -26
  406. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +0 -1
  407. package/libs/ui/map/src/lib/components/map/map.component.d.ts +0 -19
  408. package/libs/ui/map/src/lib/components/map/map.component.d.ts.map +0 -1
  409. package/libs/ui/map/src/lib/ui-map.module.d.ts +0 -13
  410. package/libs/ui/map/src/lib/ui-map.module.d.ts.map +0 -1
  411. package/src/libs/feature/map/src/lib/+state/map.effects.ts +0 -7
  412. package/src/libs/feature/map/src/lib/+state/map.models.ts +0 -9
  413. package/src/libs/feature/map/src/lib/constant/map-options.ts +0 -17
  414. package/src/libs/feature/map/src/lib/feature-info/feature-info.service.ts +0 -42
  415. package/src/libs/feature/map/src/lib/manager/map-instance.directive.ts +0 -10
  416. package/src/libs/feature/map/src/lib/manager/map-manager.service.ts +0 -13
  417. package/src/libs/feature/map/src/lib/map-container/map-container.component.html +0 -1
  418. package/src/libs/feature/map/src/lib/map-container/map-container.component.ts +0 -26
  419. package/src/libs/feature/map/src/lib/map-context/component/map-context.component.html +0 -1
  420. package/src/libs/feature/map/src/lib/map-context/component/map-context.component.ts +0 -57
  421. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +0 -55
  422. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +0 -95
  423. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +0 -318
  424. package/src/libs/ui/map/src/lib/components/map/map.component.ts +0 -57
  425. package/src/libs/ui/map/src/lib/ui-map.module.ts +0 -19
  426. /package/src/libs/feature/{map/src/lib/map-container/map-container.component.css → editor/src/lib/components/import-record/import-record.component.css} +0 -0
  427. /package/src/libs/feature/{map/src/lib/map-context/component/map-context.component.css → editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.css} +0 -0
  428. /package/src/libs/{ui/map/src/lib/components/map/map.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.css} +0 -0
  429. /package/src/libs/ui/map/src/lib/components/{map/map.component.html → map-container/map-container.component.html} +0 -0
@@ -1,42 +1,8 @@
1
- import { HttpClient } from '@angular/common/http'
2
1
  import { Injectable } from '@angular/core'
3
- import type { FeatureCollection } from 'geojson'
4
- import { extend, Extent, isEmpty } from 'ol/extent'
5
- import Feature from 'ol/Feature'
2
+ import { extend, Extent } from 'ol/extent'
6
3
  import GeoJSON from 'ol/format/GeoJSON'
7
- import { Geometry } from 'ol/geom'
8
- import Layer from 'ol/layer/Layer'
9
- import Map from 'ol/Map'
10
4
  import { transformExtent } from 'ol/proj'
11
- import Source from 'ol/source/Source'
12
- import ImageWMS from 'ol/source/ImageWMS'
13
- import TileWMS from 'ol/source/TileWMS'
14
- import VectorSource from 'ol/source/Vector'
15
- import { defaults, DragPan, Interaction, MouseWheelZoom } from 'ol/interaction'
16
- import {
17
- mouseOnly,
18
- noModifierKeys,
19
- platformModifierKeyOnly,
20
- primaryAction,
21
- } from 'ol/events/condition'
22
- import { Observable } from 'rxjs'
23
- import { map } from 'rxjs/operators'
24
- import {
25
- MapContextLayerModel,
26
- MapContextLayerWmsModel,
27
- } from '../map-context/map-context.model'
28
- import Collection from 'ol/Collection'
29
- import MapBrowserEvent from 'ol/MapBrowserEvent'
30
5
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
31
- import { ProxyService } from '../../../../../../libs/util/shared/src'
32
- import { WmsEndpoint, WmtsEndpoint } from '@camptocamp/ogc-client'
33
- import { LONLAT_CRS_CODES } from '../constant/projections'
34
- import { fromEPSGCode, register } from 'ol/proj/proj4'
35
- import proj4 from 'proj4'
36
- import { defaults as defaultControls } from 'ol/control/defaults'
37
-
38
- const FEATURE_PROJECTION = 'EPSG:3857'
39
- const DATA_PROJECTION = 'EPSG:4326'
40
6
 
41
7
  const GEOJSON = new GeoJSON()
42
8
 
@@ -44,178 +10,6 @@ const GEOJSON = new GeoJSON()
44
10
  providedIn: 'root',
45
11
  })
46
12
  export class MapUtilsService {
47
- constructor(private http: HttpClient, private proxy: ProxyService) {}
48
-
49
- createEmptyMap(): Map {
50
- return new Map({
51
- controls: defaultControls({
52
- attribution: true,
53
- attributionOptions: { collapsible: false },
54
- }),
55
- pixelRatio: 1,
56
- })
57
- }
58
-
59
- readFeatureCollection = (
60
- featureCollection: FeatureCollection,
61
- featureProjection = FEATURE_PROJECTION,
62
- dataProjection = DATA_PROJECTION
63
- ): Feature<Geometry>[] => {
64
- return GEOJSON.readFeatures(featureCollection, {
65
- featureProjection,
66
- dataProjection,
67
- }) as Feature<Geometry>[]
68
- }
69
-
70
- isWMSLayer(layer: Layer<Source>): boolean {
71
- return (
72
- layer.getSource() instanceof TileWMS ||
73
- layer.getSource() instanceof ImageWMS
74
- )
75
- }
76
-
77
- getGFIUrl(layer, map, coordinate): string {
78
- const view = map.getView()
79
- const projection = view.getProjection()
80
- const resolution = view.getResolution()
81
- const source = layer.getSource()
82
- const params = {
83
- ...source.getParams(),
84
- INFO_FORMAT: 'application/json',
85
- }
86
- return source.getFeatureInfoUrl(coordinate, resolution, projection, params)
87
- }
88
-
89
- getVectorFeaturesFromClick(olMap, event): Feature<Geometry>[] {
90
- const features = []
91
- const hit = olMap.forEachFeatureAtPixel(
92
- event.pixel,
93
- (feature: Feature<Geometry>) => {
94
- return feature
95
- },
96
- { layerFilter: (layer) => layer.getSource() instanceof VectorSource }
97
- )
98
- if (hit) {
99
- features.push(hit)
100
- }
101
- return features
102
- }
103
-
104
- getGFIFeaturesObservablesFromClick(
105
- olMap: Map,
106
- event: MapBrowserEvent<PointerEvent>
107
- ): Observable<Feature<Geometry>[]>[] {
108
- const wmsLayers = olMap.getLayers().getArray().filter(this.isWMSLayer)
109
-
110
- if (wmsLayers.length > 0) {
111
- const { coordinate } = event
112
- const gfiUrls = wmsLayers.reduce(
113
- (urls, layer) => [...urls, this.getGFIUrl(layer, olMap, coordinate)],
114
-
115
- []
116
- )
117
- return gfiUrls.map((url) =>
118
- this.http
119
- .get<FeatureCollection>(url)
120
- .pipe(map((collection) => this.readFeatureCollection(collection)))
121
- )
122
- } else {
123
- return []
124
- }
125
- }
126
-
127
- /**
128
- * Will emit `null` if no extent could be computed
129
- */
130
- async getLayerExtent(layer: MapContextLayerModel): Promise<Extent | null> {
131
- let latLonExtent: Extent
132
- if (
133
- layer &&
134
- layer.type === 'geojson' &&
135
- 'data' in layer &&
136
- typeof layer.data === 'object' &&
137
- layer.data.features[0] &&
138
- layer.data.features[0].geometry
139
- ) {
140
- latLonExtent = new GeoJSON()
141
- .readFeatures(layer.data)
142
- .map((feature) => feature.getGeometry())
143
- .filter((geom) => !!geom)
144
- .reduce(
145
- (prev, curr) =>
146
- prev ? extend(prev, curr.getExtent()) : curr.getExtent(),
147
- null as Extent
148
- )
149
- } else if (layer && layer.type === 'wms') {
150
- latLonExtent = await this.getWmsLayerExtent(layer)
151
- } else if (layer && layer.type === 'wmts') {
152
- // TODO: isolate this in utils service
153
- latLonExtent = await new WmtsEndpoint(layer.url)
154
- .isReady()
155
- .then((endpoint) => {
156
- const layerName = endpoint.getSingleLayerName() ?? layer.name
157
- const wmtsLayer = endpoint.getLayerByName(layerName)
158
- return wmtsLayer.latLonBoundingBox
159
- })
160
- } else {
161
- return null
162
- }
163
- if (!latLonExtent || isEmpty(latLonExtent)) {
164
- return null
165
- }
166
- return transformExtent(latLonExtent, 'EPSG:4326', 'EPSG:3857')
167
- }
168
-
169
- async getWmsLayerExtent(
170
- layer: MapContextLayerWmsModel
171
- ): Promise<Extent | null> {
172
- const endpoint = await new WmsEndpoint(
173
- this.proxy.getProxiedUrl(layer.url)
174
- ).isReady()
175
- const { boundingBoxes } = endpoint.getLayerByName(layer.name)
176
- if (!Object.keys(boundingBoxes).length) {
177
- return null
178
- }
179
- const lonLatCRS = Object.keys(boundingBoxes)?.find((crs) =>
180
- LONLAT_CRS_CODES.includes(crs)
181
- )
182
- if (lonLatCRS) {
183
- return boundingBoxes[lonLatCRS]
184
- } else {
185
- const availableEPSGCode = Object.keys(boundingBoxes)[0]
186
- register(proj4)
187
- const proj = await fromEPSGCode(availableEPSGCode)
188
- return transformExtent(
189
- boundingBoxes[availableEPSGCode],
190
- proj,
191
- 'EPSG:4326'
192
- )
193
- }
194
- }
195
-
196
- prioritizePageScroll(interactions: Collection<Interaction>) {
197
- interactions.clear()
198
- interactions.extend(
199
- defaults({
200
- // remove rotate interactions
201
- altShiftDragRotate: false,
202
- pinchRotate: false,
203
- // replace drag and zoom interactions
204
- dragPan: false,
205
- mouseWheelZoom: false,
206
- })
207
- .extend([
208
- new DragPan({
209
- condition: dragPanCondition,
210
- }),
211
- new MouseWheelZoom({
212
- condition: mouseWheelZoomCondition,
213
- }),
214
- ])
215
- .getArray()
216
- )
217
- }
218
-
219
13
  getRecordExtent(record: Partial<CatalogRecord>): Extent {
220
14
  if (!('spatialExtents' in record) || record.spatialExtents.length === 0) {
221
15
  return null
@@ -235,25 +29,3 @@ export class MapUtilsService {
235
29
  return transformExtent(totalExtent, 'EPSG:4326', 'EPSG:3857')
236
30
  }
237
31
  }
238
-
239
- export function dragPanCondition(
240
- this: DragPan,
241
- event: MapBrowserEvent<PointerEvent>
242
- ) {
243
- const dragPanCondition = this.getPointerCount() === 2 || mouseOnly(event)
244
- if (!dragPanCondition) {
245
- this.getMap().dispatchEvent('mapmuted')
246
- }
247
- // combine the condition with the default DragPan conditions
248
- return dragPanCondition && noModifierKeys(event) && primaryAction(event)
249
- }
250
-
251
- export function mouseWheelZoomCondition(
252
- this: MouseWheelZoom,
253
- event: MapBrowserEvent<UIEvent>
254
- ) {
255
- if (!platformModifierKeyOnly(event) && event.type === 'wheel') {
256
- this.getMap().dispatchEvent('mapmuted')
257
- }
258
- return platformModifierKeyOnly(event)
259
- }
@@ -1,5 +1,11 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { MapConfig } from '../../../../../../libs/util/app-config/src'
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ Inject,
5
+ InjectionToken,
6
+ Input,
7
+ Optional,
8
+ } from '@angular/core'
3
9
  import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
4
10
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
5
11
  import { TranslateService } from '@ngx-translate/core'
@@ -7,6 +13,14 @@ import { getFileFormat } from '../../../../../../libs/util/shared/src'
7
13
 
8
14
  marker('externalviewer.dataset.unnamed')
9
15
 
16
+ export const EXTERNAL_VIEWER_URL_TEMPLATE = new InjectionToken<string>(
17
+ 'externalViewerUrlTemplate'
18
+ )
19
+ export const EXTERNAL_VIEWER_OPEN_NEW_TAB = new InjectionToken<boolean>(
20
+ 'externalViewerOpenNewTab',
21
+ { factory: () => false }
22
+ )
23
+
10
24
  @Component({
11
25
  selector: 'gn-ui-external-viewer-button',
12
26
  templateUrl: './external-viewer-button.component.html',
@@ -15,16 +29,9 @@ marker('externalviewer.dataset.unnamed')
15
29
  })
16
30
  export class ExternalViewerButtonComponent {
17
31
  @Input() link: DatasetOnlineResource
18
- @Input() mapConfig: MapConfig
19
32
 
20
33
  get externalViewer() {
21
- if (this.link && this.mapConfig) {
22
- return (
23
- !!this.mapConfig.EXTERNAL_VIEWER_URL_TEMPLATE &&
24
- !!this.supportedLinkLayerType
25
- )
26
- }
27
- return false
34
+ return !!this.urlTemplate && !!this.supportedLinkLayerType
28
35
  }
29
36
 
30
37
  get supportedLinkLayerType() {
@@ -45,10 +52,17 @@ export class ExternalViewerButtonComponent {
45
52
  return null
46
53
  }
47
54
 
48
- constructor(private translateService: TranslateService) {}
55
+ constructor(
56
+ private translateService: TranslateService,
57
+ @Inject(EXTERNAL_VIEWER_URL_TEMPLATE)
58
+ @Optional()
59
+ private urlTemplate: string,
60
+ @Inject(EXTERNAL_VIEWER_OPEN_NEW_TAB)
61
+ private openinNewTab: boolean
62
+ ) {}
49
63
 
50
64
  openInExternalViewer() {
51
- const templateUrl = this.mapConfig.EXTERNAL_VIEWER_URL_TEMPLATE
65
+ const templateUrl = this.urlTemplate
52
66
  const layerName = this.link.name
53
67
  ? this.link.name
54
68
  : this.translateService.instant('externalviewer.dataset.unnamed')
@@ -59,11 +73,6 @@ export class ExternalViewerButtonComponent {
59
73
  `${encodeURIComponent(this.link.url.toString())}`
60
74
  )
61
75
  .replace('${service_type}', `${this.supportedLinkLayerType}`)
62
- window
63
- .open(
64
- url,
65
- this.mapConfig.EXTERNAL_VIEWER_OPEN_NEW_TAB ? '_blank' : '_self'
66
- )
67
- .focus()
76
+ window.open(url, this.openinNewTab ? '_blank' : '_self').focus()
68
77
  }
69
78
  }
@@ -1,10 +1,16 @@
1
1
  import { NgModule } from '@angular/core'
2
2
  import { CommonModule } from '@angular/common'
3
- import { UiMapModule } from '../../../../../libs/ui/map/src'
3
+ import {
4
+ FeatureDetailComponent,
5
+ MapContainerComponent,
6
+ } from '../../../../../libs/ui/map/src'
4
7
  import { StoreModule } from '@ngrx/store'
5
8
  import { EffectsModule } from '@ngrx/effects'
6
9
  import { UiLayoutModule } from '../../../../../libs/ui/layout/src'
7
- import { FeatureMapModule } from '../../../../../libs/feature/map/src'
10
+ import {
11
+ FeatureMapModule,
12
+ MapStateContainerComponent,
13
+ } from '../../../../../libs/feature/map/src'
8
14
  import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
9
15
  import { UiElementsModule } from '../../../../../libs/ui/elements/src'
10
16
  import { MdViewFacade } from './state'
@@ -43,7 +49,6 @@ import { DataViewShareComponent } from './data-view-share/data-view-share.compon
43
49
  UiLayoutModule,
44
50
  FeatureMapModule,
45
51
  FeatureCatalogModule,
46
- UiMapModule,
47
52
  UiInputsModule,
48
53
  UiElementsModule,
49
54
  MatTabsModule,
@@ -53,6 +58,9 @@ import { DataViewShareComponent } from './data-view-share/data-view-share.compon
53
58
  TableComponent,
54
59
  FeatureDatavizModule,
55
60
  PopupAlertComponent,
61
+ FeatureDetailComponent,
62
+ MapStateContainerComponent,
63
+ MapContainerComponent,
56
64
  ],
57
65
  providers: [MdViewFacade],
58
66
  exports: [
@@ -10,17 +10,17 @@
10
10
  <gn-ui-external-viewer-button
11
11
  class="shrink-0 py-1 place-self-end"
12
12
  [link]="selectedLink$ | async"
13
- [mapConfig]="mapConfig"
14
13
  >
15
14
  </gn-ui-external-viewer-button>
16
15
  </div>
17
16
  <div
18
17
  class="relative w-full h-full bg-white border border-gray-300 rounded-lg overflow-hidden"
19
18
  >
20
- <gn-ui-map-context
19
+ <gn-ui-map-container
20
+ #mapContainer
21
21
  [context]="mapContext$ | async"
22
- [mapConfig]="mapConfig"
23
- ></gn-ui-map-context>
22
+ (featuresClick)="onMapFeatureSelect($event)"
23
+ ></gn-ui-map-container>
24
24
  <div
25
25
  class="top-[1em] right-[1em] p-3 bg-white absolute overflow-y-auto overflow-x-hidden max-h-72 w-56"
26
26
  [class.hidden]="!selection"
@@ -1,31 +1,19 @@
1
1
  import {
2
+ AfterViewInit,
2
3
  ChangeDetectionStrategy,
3
4
  ChangeDetectorRef,
4
5
  Component,
5
- OnDestroy,
6
- OnInit,
6
+ ViewChild,
7
7
  } from '@angular/core'
8
- import {
9
- FeatureInfoService,
10
- MapContextLayerModel,
11
- MapContextLayerTypeEnum,
12
- MapContextModel,
13
- MapManagerService,
14
- MapStyleService,
15
- MapUtilsService,
16
- } from '../../../../../../libs/feature/map/src'
17
- import { getOptionalMapConfig, MapConfig } from '../../../../../../libs/util/app-config/src'
8
+ import { MapUtilsService } from '../../../../../../libs/feature/map/src'
18
9
  import { getLinkLabel } from '../../../../../../libs/util/shared/src'
19
- import Feature from 'ol/Feature'
20
- import { Geometry } from 'ol/geom'
21
- import { StyleLike } from 'ol/style/Style'
22
10
  import {
23
11
  BehaviorSubject,
24
12
  combineLatest,
25
13
  from,
26
14
  Observable,
27
15
  of,
28
- Subscription,
16
+ startWith,
29
17
  throwError,
30
18
  withLatestFrom,
31
19
  } from 'rxjs'
@@ -34,13 +22,22 @@ import {
34
22
  distinctUntilChanged,
35
23
  finalize,
36
24
  map,
37
- startWith,
38
25
  switchMap,
39
26
  tap,
40
27
  } from 'rxjs/operators'
41
28
  import { MdViewFacade } from '../state/mdview.facade'
42
29
  import { DataService } from '../../../../../../libs/feature/dataviz/src'
43
30
  import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
31
+ import {
32
+ createViewFromLayer,
33
+ MapContext,
34
+ MapContextLayer,
35
+ } from '@geospatial-sdk/core'
36
+ import {
37
+ MapContainerComponent,
38
+ prioritizePageScroll,
39
+ } from '../../../../../../libs/ui/map/src'
40
+ import { Feature } from 'geojson'
44
41
 
45
42
  @Component({
46
43
  selector: 'gn-ui-map-view',
@@ -48,11 +45,10 @@ import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/
48
45
  styleUrls: ['./map-view.component.css'],
49
46
  changeDetection: ChangeDetectionStrategy.OnPush,
50
47
  })
51
- export class MapViewComponent implements OnInit, OnDestroy {
52
- mapConfig: MapConfig = getOptionalMapConfig()
53
- selection: Feature<Geometry>
54
- private subscription = new Subscription()
55
- private selectionStyle: StyleLike
48
+ export class MapViewComponent implements AfterViewInit {
49
+ @ViewChild('mapContainer') mapContainer: MapContainerComponent
50
+
51
+ selection: Feature
56
52
 
57
53
  compatibleMapLinks$ = combineLatest([
58
54
  this.mdViewFacade.mapApiLinks$,
@@ -102,93 +98,70 @@ export class MapViewComponent implements OnInit, OnDestroy {
102
98
  })
103
99
  )
104
100
 
105
- mapContext$ = this.currentLayers$.pipe(
101
+ mapContext$: Observable<MapContext> = this.currentLayers$.pipe(
106
102
  switchMap((layers) =>
107
- from(this.mapUtils.getLayerExtent(layers[0])).pipe(
108
- catchError(() => {
109
- this.error = 'The layer has no extent'
110
- return of(undefined)
111
- }),
112
- map(
113
- (extent) =>
114
- ({
115
- layers,
116
- view: {
117
- extent,
118
- },
119
- } as MapContextModel)
120
- ),
121
- tap((res) => {
103
+ from(createViewFromLayer(layers[0])).pipe(
104
+ catchError(() => of(null)), // could not zoom on the layer: use the record extent
105
+ map((view) => ({
106
+ layers,
107
+ view,
108
+ })),
109
+ tap(() => {
122
110
  this.resetSelection()
123
111
  })
124
112
  )
125
113
  ),
126
114
  startWith({
127
115
  layers: [],
128
- view: {},
129
- } as MapContextModel),
116
+ view: null,
117
+ }),
130
118
  withLatestFrom(this.mdViewFacade.metadata$),
131
119
  map(([context, metadata]) => {
132
- if (context.view.extent) return context
120
+ if (context.view) return context
133
121
  const extent = this.mapUtils.getRecordExtent(metadata)
122
+ const view = extent ? { extent } : null
134
123
  return {
135
124
  ...context,
136
- view: {
137
- ...context.view,
138
- extent,
139
- },
125
+ view,
140
126
  }
141
127
  })
142
128
  )
143
129
 
144
130
  constructor(
145
131
  private mdViewFacade: MdViewFacade,
146
- private mapManager: MapManagerService,
147
132
  private mapUtils: MapUtilsService,
148
133
  private dataService: DataService,
149
- private featureInfo: FeatureInfoService,
150
- private changeRef: ChangeDetectorRef,
151
- private styleService: MapStyleService
134
+ private changeRef: ChangeDetectorRef
152
135
  ) {}
153
136
 
154
- ngOnDestroy(): void {
155
- this.subscription.unsubscribe()
156
- }
157
-
158
- ngOnInit(): void {
159
- this.mapUtils.prioritizePageScroll(this.mapManager.map.getInteractions())
160
- this.selectionStyle = this.styleService.styles.defaultHL
161
- this.featureInfo.handleFeatureInfo()
162
- this.subscription.add(
163
- this.featureInfo.features$.subscribe((features) => {
164
- this.onMapFeatureSelect(features)
165
- })
166
- )
137
+ async ngAfterViewInit() {
138
+ const map = await this.mapContainer.openlayersMap
139
+ prioritizePageScroll(map.getInteractions())
167
140
  }
168
141
 
169
- onMapFeatureSelect(features: Feature<Geometry>[]): void {
142
+ onMapFeatureSelect(features: Feature[]): void {
170
143
  this.resetSelection()
171
144
  this.selection = features?.length > 0 && features[0]
172
145
  if (this.selection) {
173
- this.selection.setStyle(this.selectionStyle)
146
+ // FIXME: restore styling of selected feature
147
+ // this.selection.setStyle(this.selectionStyle)
174
148
  }
175
149
  this.changeRef.detectChanges()
176
150
  }
177
151
 
178
152
  resetSelection(): void {
179
153
  if (this.selection) {
180
- this.selection.setStyle(null)
154
+ // FIXME: restore styling of selected feature
155
+ // this.selection.setStyle(null)
181
156
  }
182
157
  this.selection = null
183
158
  }
184
159
 
185
- getLayerFromLink(
186
- link: DatasetOnlineResource
187
- ): Observable<MapContextLayerModel> {
160
+ getLayerFromLink(link: DatasetOnlineResource): Observable<MapContextLayer> {
188
161
  if (link.type === 'service' && link.accessServiceProtocol === 'wms') {
189
162
  return of({
190
163
  url: link.url.toString(),
191
- type: MapContextLayerTypeEnum.WMS,
164
+ type: 'wms',
192
165
  name: link.name,
193
166
  })
194
167
  } else if (
@@ -197,7 +170,7 @@ export class MapViewComponent implements OnInit, OnDestroy {
197
170
  ) {
198
171
  return of({
199
172
  url: link.url.toString(),
200
- type: MapContextLayerTypeEnum.WMTS,
173
+ type: 'wmts',
201
174
  name: link.name,
202
175
  })
203
176
  } else if (
@@ -209,7 +182,7 @@ export class MapViewComponent implements OnInit, OnDestroy {
209
182
  ) {
210
183
  return this.dataService.readAsGeoJson(link).pipe(
211
184
  map((data) => ({
212
- type: MapContextLayerTypeEnum.GEOJSON,
185
+ type: 'geojson',
213
186
  data,
214
187
  }))
215
188
  )
@@ -3,7 +3,7 @@ import { MdViewActions } from '../../../../../../../libs/feature/record/src'
3
3
  import { RouterService } from '../router.service'
4
4
  import { RouterReducerState } from '@ngrx/router-store'
5
5
  import { select, Store } from '@ngrx/store'
6
- import { distinctUntilChanged, filter, map, take, tap } from 'rxjs/operators'
6
+ import { distinctUntilChanged, filter, map, take } from 'rxjs/operators'
7
7
  import {
8
8
  ROUTER_ROUTE_DATASET,
9
9
  ROUTER_ROUTE_SEARCH,
@@ -1,9 +1,12 @@
1
1
  <gn-ui-results-table
2
- [records]="records$ | async"
2
+ *ngIf="searchFacade.results$ | async as records"
3
+ [records]="records"
3
4
  [hasDraft]="hasDraft"
4
5
  [selectedRecordsIdentifiers]="selectedRecords$ | async"
5
6
  [sortOrder]="sortBy$ | async"
6
7
  [isUnsavedDraft]="isUnsavedDraft"
8
+ [canDelete]="canDelete"
9
+ [canDuplicate]="canDuplicate"
7
10
  (recordClick)="handleRecordClick($event)"
8
11
  (duplicateRecord)="handleDuplicateRecord($event)"
9
12
  (deleteRecord)="handleDeleteRecord($event)"
@@ -24,12 +24,14 @@ import { TranslateService } from '@ngx-translate/core'
24
24
  imports: [CommonModule, ResultsTableComponent],
25
25
  })
26
26
  export class ResultsTableContainerComponent implements OnDestroy {
27
+ @Input() canDuplicate: (record: CatalogRecord) => boolean = () => true
28
+ @Input() canDelete: (record: CatalogRecord) => boolean = () => true
29
+
27
30
  @Output() recordClick = new EventEmitter<CatalogRecord>()
28
31
  @Output() duplicateRecord = new EventEmitter<CatalogRecord>()
29
32
 
30
33
  subscription = new Subscription()
31
34
 
32
- records$ = this.searchFacade.results$
33
35
  selectedRecords$ = this.selectionService.selectedRecordsIdentifiers$
34
36
  sortBy$ = this.searchFacade.sortBy$
35
37
 
@@ -40,7 +42,7 @@ export class ResultsTableContainerComponent implements OnDestroy {
40
42
  this.recordsRepository.isRecordNotYetSaved(record.uniqueIdentifier)
41
43
 
42
44
  constructor(
43
- private searchFacade: SearchFacade,
45
+ protected searchFacade: SearchFacade,
44
46
  private searchService: SearchService,
45
47
  private selectionService: SelectionService,
46
48
  private recordsRepository: RecordsRepositoryInterface,
@@ -6,12 +6,19 @@ import {
6
6
  } from '@angular/core'
7
7
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
8
8
  import { SortByField } from '../../../../../../libs/common/domain/src/lib/model/search'
9
- import { Subject, debounceTime } from 'rxjs'
9
+ import { debounceTime, Subject } from 'rxjs'
10
+ import {
11
+ DropdownSelectorComponent,
12
+ SearchInputComponent,
13
+ } from '../../../../../../libs/ui/inputs/src'
14
+ import { TranslateModule } from '@ngx-translate/core'
10
15
 
11
16
  @Component({
12
17
  selector: 'gn-ui-organisations-filter',
13
18
  templateUrl: './organisations-filter.component.html',
14
19
  changeDetection: ChangeDetectionStrategy.OnPush,
20
+ standalone: true,
21
+ imports: [SearchInputComponent, DropdownSelectorComponent, TranslateModule],
15
22
  })
16
23
  export class OrganisationsFilterComponent {
17
24
  choices: { value: string; label: string }[] = [