geonetwork-ui 2.3.0-dev.c3722986 → 2.3.0-dev.cc25794c

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 (418) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +6 -2
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +2 -2
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
  5. package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
  6. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
  7. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
  8. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +21 -7
  9. package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
  10. package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
  11. package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
  12. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  13. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  14. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +35 -2
  15. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  16. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +126 -0
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  32. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  33. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +23 -1
  34. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  35. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  36. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +73 -20
  37. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  38. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  39. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +1 -1
  40. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +58 -17
  41. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +6 -2
  42. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  43. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  44. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  45. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  46. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  47. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  48. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  49. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +7 -4
  50. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  51. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  52. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  53. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +50 -17
  54. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  55. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  56. package/esm2022/libs/feature/search/src/index.mjs +2 -1
  57. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
  58. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  59. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
  60. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
  61. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
  62. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  63. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
  64. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  65. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
  66. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
  67. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  68. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
  69. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  70. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  71. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +98 -36
  72. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -7
  73. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  74. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +60 -0
  75. package/esm2022/libs/ui/inputs/src/index.mjs +16 -16
  76. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
  77. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  78. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  79. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +19 -8
  80. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
  81. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  82. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +21 -3
  83. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +14 -30
  84. package/esm2022/libs/ui/layout/src/index.mjs +7 -5
  85. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
  86. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
  87. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  88. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
  89. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +3 -1
  90. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  91. package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
  92. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
  93. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  94. package/esm2022/translations/de.json +31 -0
  95. package/esm2022/translations/en.json +31 -0
  96. package/esm2022/translations/es.json +31 -0
  97. package/esm2022/translations/fr.json +31 -0
  98. package/esm2022/translations/it.json +31 -0
  99. package/esm2022/translations/nl.json +31 -0
  100. package/esm2022/translations/pt.json +31 -0
  101. package/fesm2022/geonetwork-ui.mjs +3099 -1806
  102. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  103. package/index.d.ts +1 -0
  104. package/index.d.ts.map +1 -1
  105. package/index.ts +1 -0
  106. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  107. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  108. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  109. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  110. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  111. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  112. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  113. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  114. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  115. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  116. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  117. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  118. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  119. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  120. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  121. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  122. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  123. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  124. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
  125. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  126. package/libs/feature/editor/src/index.d.ts +1 -1
  127. package/libs/feature/editor/src/index.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  129. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  130. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
  131. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  132. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
  133. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  134. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  135. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  136. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
  137. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  138. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  139. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
  140. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  141. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  142. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
  143. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  144. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
  145. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
  146. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
  147. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +21 -0
  149. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -0
  150. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +13 -4
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  154. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  155. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  156. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  157. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  158. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  159. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  160. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +10 -5
  161. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  162. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +7 -0
  163. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  164. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +1 -1
  165. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  166. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  167. package/libs/feature/notifications/src/index.d.ts +4 -0
  168. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  169. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  170. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  171. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  172. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  173. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  174. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  175. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  176. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  177. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  178. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  179. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  180. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  181. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  182. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  183. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  184. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  185. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  186. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  187. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  188. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  189. package/libs/feature/search/src/index.d.ts +1 -0
  190. package/libs/feature/search/src/index.d.ts.map +1 -1
  191. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
  192. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  193. package/libs/ui/elements/src/index.d.ts +14 -14
  194. package/libs/ui/elements/src/index.d.ts.map +1 -1
  195. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  196. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  197. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
  198. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  199. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  200. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  201. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  202. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  203. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +24 -4
  204. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  205. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +16 -15
  206. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  207. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  208. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  209. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +21 -0
  210. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  211. package/libs/ui/inputs/src/index.d.ts +15 -15
  212. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  213. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
  214. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
  215. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  216. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  217. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  218. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  219. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
  220. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  221. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
  222. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
  223. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  224. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  225. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +5 -1
  226. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  227. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -43
  228. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  229. package/libs/ui/layout/src/index.d.ts +6 -4
  230. package/libs/ui/layout/src/index.d.ts.map +1 -1
  231. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
  232. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
  233. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
  234. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
  235. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  236. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  237. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
  238. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  239. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  240. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  241. package/libs/util/app-config/src/lib/model.d.ts +1 -0
  242. package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
  243. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  244. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  245. package/package.json +2 -2
  246. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
  247. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -1
  248. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +1 -4
  249. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  250. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  251. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  252. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +40 -7
  253. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  254. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  255. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  256. package/src/libs/common/fixtures/src/index.ts +8 -6
  257. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
  258. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
  259. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  260. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +51 -1
  261. package/src/libs/feature/editor/src/index.ts +1 -1
  262. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  263. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
  264. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
  265. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  266. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  267. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
  268. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  269. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  270. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  271. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  272. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
  273. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
  274. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
  275. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
  276. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
  277. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
  278. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  279. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +97 -0
  280. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +142 -0
  281. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  282. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  283. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  284. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  285. package/src/libs/feature/editor/src/lib/fields.config.ts +22 -0
  286. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  287. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  288. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
  289. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +32 -18
  290. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +72 -17
  291. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +7 -0
  292. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +57 -17
  293. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +5 -1
  294. package/src/libs/feature/notifications/src/index.ts +3 -0
  295. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  296. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  297. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  298. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  299. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  300. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  301. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  302. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -5
  303. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  304. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  305. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +48 -8
  306. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +79 -24
  307. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  308. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  309. package/src/libs/feature/search/src/index.ts +1 -0
  310. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  311. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
  312. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  313. package/src/libs/ui/elements/src/index.ts +14 -14
  314. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
  315. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
  316. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  317. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
  318. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
  319. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  320. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  321. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  322. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  323. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  324. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  325. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +27 -11
  326. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +125 -30
  327. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +5 -2
  328. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  329. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  330. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  331. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +62 -0
  332. package/src/libs/ui/inputs/src/index.ts +15 -15
  333. package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
  334. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  335. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  336. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  337. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  338. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
  339. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +14 -0
  340. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
  341. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
  342. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
  343. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  344. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  345. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +2 -1
  346. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +17 -1
  347. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -22
  348. package/src/libs/ui/layout/src/index.ts +6 -4
  349. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
  350. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
  351. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
  352. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +8 -4
  353. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
  354. package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
  355. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  356. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  357. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  358. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
  359. package/src/libs/util/app-config/src/lib/app-config.ts +2 -0
  360. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  361. package/src/libs/util/app-config/src/lib/model.ts +1 -0
  362. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
  363. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  364. package/tailwind.base.css +36 -0
  365. package/translations/de.json +31 -0
  366. package/translations/en.json +31 -0
  367. package/translations/es.json +31 -0
  368. package/translations/fr.json +31 -0
  369. package/translations/it.json +31 -0
  370. package/translations/nl.json +31 -0
  371. package/translations/pt.json +31 -0
  372. package/translations/sk.json +31 -0
  373. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  374. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  375. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  376. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  377. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  378. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  379. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  380. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  381. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  382. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  383. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  384. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  385. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  386. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  387. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  388. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  389. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  390. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  391. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  392. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  393. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  394. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  395. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  396. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  397. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  398. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  399. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  400. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  401. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  402. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
  403. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
  404. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
  405. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
  406. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
  407. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.css +0 -0
  408. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
  409. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
  410. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
  411. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
  412. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
  413. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  414. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
  415. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css} +0 -0
  416. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
  417. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  418. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -25,6 +25,12 @@ import WMTS from 'ol/source/WMTS'
25
25
  import { Geometry } from 'ol/geom'
26
26
  import Feature from 'ol/Feature'
27
27
  import { WfsEndpoint, WmtsEndpoint } from '@camptocamp/ogc-client'
28
+ import OGCVectorTile from 'ol/source/OGCVectorTile.js'
29
+ import { MVT } from 'ol/format'
30
+ import VectorTileLayer from 'ol/layer/VectorTile'
31
+ import OGCMapTile from 'ol/source/OGCMapTile.js'
32
+ import ImageLayer from 'ol/layer/Image'
33
+ import ImageWMS from 'ol/source/ImageWMS'
28
34
 
29
35
  export const DEFAULT_BASELAYER_CONTEXT: MapContextLayerXyzModel = {
30
36
  type: MapContextLayerTypeEnum.XYZ,
@@ -33,6 +39,7 @@ export const DEFAULT_BASELAYER_CONTEXT: MapContextLayerXyzModel = {
33
39
  `https://b.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
34
40
  `https://c.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
35
41
  ],
42
+ attributions: `<span>© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/">Carto</a></span>`,
36
43
  }
37
44
 
38
45
  export const DEFAULT_VIEW: MapContextViewModel = {
@@ -69,38 +76,69 @@ export class MapContextService {
69
76
  }
70
77
  map.setView(this.createView(mapContext.view, map))
71
78
  map.getLayers().clear()
72
- mapContext.layers.forEach((layer) => map.addLayer(this.createLayer(layer)))
79
+ mapContext.layers.forEach((layer) =>
80
+ map.addLayer(this.createLayer(layer, mapConfig))
81
+ )
73
82
  return map
74
83
  }
75
84
 
76
- createLayer(layerModel: MapContextLayerModel): Layer {
85
+ createLayer(layerModel: MapContextLayerModel, mapConfig?: MapConfig): Layer {
77
86
  const { type } = layerModel
78
87
  const style = this.styleService.styles.default
79
88
  switch (type) {
80
89
  case MapContextLayerTypeEnum.OGCAPI:
81
- return new VectorLayer({
82
- source: new VectorSource({
83
- format: new GeoJSON(),
84
- url: layerModel.url,
85
- }),
86
- style,
87
- })
88
-
90
+ if (layerModel.layerType === 'vectorTiles') {
91
+ return new VectorTileLayer({
92
+ source: new OGCVectorTile({
93
+ url: layerModel.url,
94
+ format: new MVT(),
95
+ attributions: layerModel.attributions,
96
+ }),
97
+ })
98
+ } else if (layerModel.layerType === 'mapTiles') {
99
+ return new TileLayer({
100
+ source: new OGCMapTile({
101
+ url: layerModel.url,
102
+ attributions: layerModel.attributions,
103
+ }),
104
+ })
105
+ } else {
106
+ return new VectorLayer({
107
+ source: new VectorSource({
108
+ format: new GeoJSON(),
109
+ url: layerModel.url,
110
+ attributions: layerModel.attributions,
111
+ }),
112
+ style,
113
+ })
114
+ }
89
115
  case MapContextLayerTypeEnum.XYZ:
90
116
  return new TileLayer({
91
117
  source: new XYZ({
92
118
  url: 'url' in layerModel ? layerModel.url : undefined,
93
119
  urls: 'urls' in layerModel ? layerModel.urls : undefined,
120
+ attributions: layerModel.attributions,
94
121
  }),
95
122
  })
96
123
  case MapContextLayerTypeEnum.WMS:
97
- return new TileLayer({
98
- source: new TileWMS({
99
- url: layerModel.url,
100
- params: { LAYERS: layerModel.name },
101
- gutter: 20,
102
- }),
103
- })
124
+ if (mapConfig?.DO_NOT_TILE_WMS) {
125
+ return new ImageLayer({
126
+ source: new ImageWMS({
127
+ url: layerModel.url,
128
+ params: { LAYERS: layerModel.name },
129
+ attributions: layerModel.attributions,
130
+ }),
131
+ })
132
+ } else {
133
+ return new TileLayer({
134
+ source: new TileWMS({
135
+ url: layerModel.url,
136
+ params: { LAYERS: layerModel.name, TILED: true },
137
+ attributions: layerModel.attributions,
138
+ }),
139
+ })
140
+ }
141
+
104
142
  case MapContextLayerTypeEnum.WMTS: {
105
143
  // TODO: isolate this in utils service
106
144
  const olLayer = new TileLayer({})
@@ -123,6 +161,7 @@ export class MapContextService {
123
161
  tileGrid,
124
162
  projection: matrixSet.crs,
125
163
  dimensions,
164
+ attributions: layerModel.attributions,
126
165
  })
127
166
  )
128
167
  })
@@ -148,6 +187,7 @@ export class MapContextService {
148
187
  })
149
188
  },
150
189
  strategy: bboxStrategy,
190
+ attributions: layerModel.attributions,
151
191
  })
152
192
  )
153
193
  })
@@ -26,6 +26,7 @@ import {
26
26
  MapContextLayerWmsModel,
27
27
  } from '../map-context/map-context.model'
28
28
  import Collection from 'ol/Collection'
29
+ import { defaults as defaultControls } from 'ol/control.js'
29
30
  import MapBrowserEvent from 'ol/MapBrowserEvent'
30
31
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
31
32
  import { ProxyService } from '../../../../../../libs/util/shared/src'
@@ -47,7 +48,10 @@ export class MapUtilsService {
47
48
 
48
49
  createEmptyMap(): Map {
49
50
  return new Map({
50
- controls: [],
51
+ controls: defaultControls({
52
+ attribution: true,
53
+ attributionOptions: { collapsible: false },
54
+ }),
51
55
  pixelRatio: 1,
52
56
  })
53
57
  }
@@ -0,0 +1,3 @@
1
+ export * from './lib/feature-notifications.module'
2
+ export * from './lib/notifications.service'
3
+ export * from './lib/notifications-container/notifications-container.component'
@@ -0,0 +1,10 @@
1
+ import { NotificationsService } from './notifications.service'
2
+ import { NgModule } from '@angular/core'
3
+
4
+ @NgModule({
5
+ declarations: [],
6
+ exports: [],
7
+ imports: [],
8
+ providers: [NotificationsService],
9
+ })
10
+ export class FeatureNotificationsModule {}
@@ -0,0 +1,6 @@
1
+ export interface NotificationContent {
2
+ type: 'info' | 'warning' | 'error' | 'success'
3
+ title: string
4
+ text: string
5
+ closeMessage?: string
6
+ }
@@ -0,0 +1,17 @@
1
+ <div class="flex flex-col gap-6 p-6 items-start pointer-events-none">
2
+ <gn-ui-notification
3
+ *ngFor="
4
+ let notification of notificationsService.notifications$ | async;
5
+ trackBy: trackById
6
+ "
7
+ class="max-w-full pointer-events-auto"
8
+ [text]="notification.text"
9
+ [type]="notification.type"
10
+ [title]="notification.title"
11
+ [closeMessage]="notification.closeMessage"
12
+ (notificationClose)="
13
+ notificationsService.removeNotificationById(notification.id)
14
+ "
15
+ [@enterExit]
16
+ ></gn-ui-notification>
17
+ </div>
@@ -0,0 +1,44 @@
1
+ import { ChangeDetectionStrategy, Component } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
3
+ import { NotificationsService } from '../notifications.service'
4
+ import { NotificationComponent } from '../../../../../../libs/ui/elements/src'
5
+ import {
6
+ animate,
7
+ keyframes,
8
+ style,
9
+ transition,
10
+ trigger,
11
+ } from '@angular/animations'
12
+
13
+ @Component({
14
+ selector: 'gn-ui-notifications-container',
15
+ standalone: true,
16
+ imports: [CommonModule, NotificationComponent],
17
+ templateUrl: './notifications-container.component.html',
18
+ styleUrls: ['./notifications-container.component.css'],
19
+ changeDetection: ChangeDetectionStrategy.OnPush,
20
+ animations: [
21
+ trigger('enterExit', [
22
+ transition(':enter', [
23
+ animate(
24
+ '150ms',
25
+ keyframes([
26
+ style({ transform: 'scale(1)', opacity: 0 }),
27
+ style({ transform: 'scale(1.03)', opacity: 0.5 }),
28
+ style({ transform: 'scale(1)', opacity: 1 }),
29
+ ])
30
+ ),
31
+ ]),
32
+ transition(':leave', [
33
+ animate('200ms', style({ transform: 'translateX(50px)', opacity: 0 })),
34
+ ]),
35
+ ]),
36
+ ],
37
+ })
38
+ export class NotificationsContainerComponent {
39
+ constructor(protected notificationsService: NotificationsService) {}
40
+
41
+ trackById(index: number, notification: { id: number }) {
42
+ return notification.id
43
+ }
44
+ }
@@ -0,0 +1,27 @@
1
+ import { Injectable } from '@angular/core'
2
+ import { NotificationContent } from './notification.model'
3
+ import { BehaviorSubject } from 'rxjs'
4
+
5
+ type NotificationWithIdentity = NotificationContent & { id: number }
6
+
7
+ @Injectable({
8
+ providedIn: 'root',
9
+ })
10
+ export class NotificationsService {
11
+ notifications$ = new BehaviorSubject<NotificationWithIdentity[]>([])
12
+
13
+ showNotification(content: NotificationContent, timeoutMs?: number) {
14
+ const id = Math.floor(Math.random() * 1000000)
15
+ this.notifications$.next([...this.notifications$.value, { ...content, id }])
16
+ if (typeof timeoutMs === 'undefined') return
17
+ setTimeout(() => {
18
+ this.removeNotificationById(id)
19
+ }, timeoutMs)
20
+ }
21
+
22
+ removeNotificationById(id: number) {
23
+ this.notifications$.next(
24
+ this.notifications$.value.filter((n) => n.id !== id)
25
+ )
26
+ }
27
+ }
@@ -11,7 +11,10 @@ import { MdViewFacade } from './state'
11
11
  import { MdViewEffects } from './state/mdview.effects'
12
12
  import { MapViewComponent } from './map-view/map-view.component'
13
13
  import { DataViewComponent } from './data-view/data-view.component'
14
- import { MD_VIEW_FEATURE_STATE_KEY, reducer } from './state/mdview.reducer'
14
+ import {
15
+ METADATA_VIEW_FEATURE_STATE_KEY,
16
+ reducer,
17
+ } from './state/mdview.reducer'
15
18
  import { MatTabsModule } from '@angular/material/tabs'
16
19
  import { MatIconModule } from '@angular/material/icon'
17
20
  import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
@@ -35,7 +38,7 @@ import { DataViewShareComponent } from './data-view-share/data-view-share.compon
35
38
  ],
36
39
  imports: [
37
40
  CommonModule,
38
- StoreModule.forFeature(MD_VIEW_FEATURE_STATE_KEY, reducer),
41
+ StoreModule.forFeature(METADATA_VIEW_FEATURE_STATE_KEY, reducer),
39
42
  EffectsModule.forFeature([MdViewEffects]),
40
43
  UiLayoutModule,
41
44
  FeatureMapModule,
@@ -15,7 +15,7 @@ import {
15
15
  MapUtilsService,
16
16
  } from '../../../../../../libs/feature/map/src'
17
17
  import { getOptionalMapConfig, MapConfig } from '../../../../../../libs/util/app-config/src'
18
- import { getLinkLabel, ProxyService } from '../../../../../../libs/util/shared/src'
18
+ import { getLinkLabel } from '../../../../../../libs/util/shared/src'
19
19
  import Feature from 'ol/Feature'
20
20
  import { Geometry } from 'ol/geom'
21
21
  import { StyleLike } from 'ol/style/Style'
@@ -23,10 +23,8 @@ import {
23
23
  BehaviorSubject,
24
24
  combineLatest,
25
25
  from,
26
- lastValueFrom,
27
26
  Observable,
28
27
  of,
29
- startWith,
30
28
  Subscription,
31
29
  throwError,
32
30
  withLatestFrom,
@@ -117,7 +115,9 @@ export class MapViewComponent implements OnInit, OnDestroy {
117
115
  },
118
116
  } as MapContextModel)
119
117
  ),
120
- tap(() => this.resetSelection())
118
+ tap((res) => {
119
+ this.resetSelection()
120
+ })
121
121
  )
122
122
  ),
123
123
  withLatestFrom(this.mdViewFacade.metadata$),
@@ -196,7 +196,8 @@ export class MapViewComponent implements OnInit, OnDestroy {
196
196
  } else if (
197
197
  (link.type === 'service' &&
198
198
  (link.accessServiceProtocol === 'wfs' ||
199
- link.accessServiceProtocol === 'esriRest')) ||
199
+ link.accessServiceProtocol === 'esriRest' ||
200
+ link.accessServiceProtocol === 'ogcFeatures')) ||
200
201
  link.type === 'download'
201
202
  ) {
202
203
  return this.dataService.readAsGeoJson(link).pipe(
@@ -1,7 +1,13 @@
1
1
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
2
2
  import { createAction, props } from '@ngrx/store'
3
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
3
+ import {
4
+ CatalogRecord,
5
+ UserFeedback,
6
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
4
7
 
8
+ /*
9
+ Metadata actions
10
+ */
5
11
  export const loadFullMetadata = createAction(
6
12
  '[Metadata view] Load full metadata',
7
13
  props<{ uuid: string }>()
@@ -12,24 +18,63 @@ export const setIncompleteMetadata = createAction(
12
18
  props<{ incomplete: Partial<CatalogRecord> }>()
13
19
  )
14
20
 
15
- export const loadFullSuccess = createAction(
16
- '[Metadata view] Load full success',
21
+ export const loadFullMetadataSuccess = createAction(
22
+ '[Metadata view] Load full metadata success',
17
23
  props<{ full: CatalogRecord }>()
18
24
  )
19
25
 
20
- export const loadFullFailure = createAction(
21
- '[Metadata view] Load full failure',
26
+ export const loadFullMetadataFailure = createAction(
27
+ '[Metadata view] Load full metadata failure',
22
28
  props<{ otherError?: string; notFound?: boolean }>()
23
29
  )
24
30
 
31
+ export const closeMetadata = createAction('[Metadata view] close')
32
+
33
+ /*
34
+ Related actions
35
+ */
25
36
  export const setRelated = createAction(
26
37
  '[Metadata view] Set related records',
27
38
  props<{ related: CatalogRecord[] }>()
28
39
  )
29
40
 
41
+ /*
42
+ ChartConfig actions
43
+ */
30
44
  export const setChartConfig = createAction(
31
45
  '[Metadata view] Set chart config',
32
46
  props<{ chartConfig: DatavizConfigurationModel }>()
33
47
  )
34
48
 
35
- export const close = createAction('[Metadata view] close')
49
+ /*
50
+ User Feedbacks actions
51
+ */
52
+ export const addUserFeedback = createAction(
53
+ '[Metadata view] Add UserFeedback',
54
+ props<{ userFeedback: UserFeedback }>()
55
+ )
56
+
57
+ export const addUserFeedbackSuccess = createAction(
58
+ '[Metadata view] Add UserFeedback Success',
59
+ props<{ datasetUuid: string }>()
60
+ )
61
+
62
+ export const addUserFeedbackFailure = createAction(
63
+ '[Metadata view] Add UserFeedback Failure',
64
+ props<{ otherError?: string; notFound?: boolean }>()
65
+ )
66
+
67
+ export const loadUserFeedbacks = createAction(
68
+ '[Metadata view] Load UserFeedbacks',
69
+ props<{ datasetUuid: string }>()
70
+ )
71
+
72
+ export const loadUserFeedbacksSuccess = createAction(
73
+ '[Metadata view] Load UserFeedbacks Success',
74
+ props<{ userFeedbacks: UserFeedback[] }>()
75
+ )
76
+
77
+ export const loadUserFeedbacksFailure = createAction(
78
+ '[Metadata view] Load UserFeedbacks Failure',
79
+ props<{ otherError?: string; notFound?: boolean }>()
80
+ )
@@ -1,18 +1,23 @@
1
1
  import { Injectable } from '@angular/core'
2
2
  import { Actions, createEffect, ofType } from '@ngrx/effects'
3
- import { of } from 'rxjs'
3
+ import { exhaustMap, mergeMap, of } from 'rxjs'
4
4
  import { catchError, map, switchMap } from 'rxjs/operators'
5
5
  import * as MdViewActions from './mdview.actions'
6
6
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
7
+ import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
7
8
 
8
9
  @Injectable()
9
10
  export class MdViewEffects {
10
11
  constructor(
11
12
  private actions$: Actions,
12
- private recordsRepository: RecordsRepositoryInterface
13
+ private recordsRepository: RecordsRepositoryInterface,
14
+ private platformServiceInterface: PlatformServiceInterface
13
15
  ) {}
14
16
 
15
- loadFull$ = createEffect(() =>
17
+ /*
18
+ Metadata effects
19
+ */
20
+ loadFullMetadata$ = createEffect(() =>
16
21
  this.actions$.pipe(
17
22
  ofType(MdViewActions.loadFullMetadata),
18
23
  switchMap(({ uuid }) =>
@@ -20,19 +25,22 @@ export class MdViewEffects {
20
25
  ),
21
26
  map((record) => {
22
27
  if (record === null) {
23
- return MdViewActions.loadFullFailure({ notFound: true })
28
+ return MdViewActions.loadFullMetadataFailure({ notFound: true })
24
29
  }
25
- return MdViewActions.loadFullSuccess({ full: record })
30
+ return MdViewActions.loadFullMetadataSuccess({ full: record })
26
31
  }),
27
32
  catchError((error) =>
28
- of(MdViewActions.loadFullFailure({ otherError: error.message }))
33
+ of(MdViewActions.loadFullMetadataFailure({ otherError: error.message }))
29
34
  )
30
35
  )
31
36
  )
32
37
 
38
+ /*
39
+ Related effects
40
+ */
33
41
  loadRelatedRecords$ = createEffect(() =>
34
42
  this.actions$.pipe(
35
- ofType(MdViewActions.loadFullSuccess),
43
+ ofType(MdViewActions.loadFullMetadataSuccess),
36
44
  switchMap(({ full }) => this.recordsRepository.getSimilarRecords(full)),
37
45
  map((related) => {
38
46
  return MdViewActions.setRelated({ related })
@@ -40,4 +48,71 @@ export class MdViewEffects {
40
48
  catchError((error) => of(MdViewActions.setRelated({ related: null })))
41
49
  )
42
50
  )
51
+
52
+ /*
53
+ UserFeedback effects
54
+ */
55
+ loadUserFeedbacks$ = createEffect(() =>
56
+ this.actions$.pipe(
57
+ ofType(MdViewActions.loadUserFeedbacks),
58
+ exhaustMap(({ datasetUuid }) =>
59
+ this.platformServiceInterface.getUserFeedbacks(datasetUuid).pipe(
60
+ map((userFeedbacks) =>
61
+ MdViewActions.loadUserFeedbacksSuccess({ userFeedbacks })
62
+ ),
63
+ catchError((error) =>
64
+ of(
65
+ MdViewActions.loadUserFeedbacksFailure({
66
+ otherError: error.message,
67
+ })
68
+ )
69
+ )
70
+ )
71
+ )
72
+ )
73
+ )
74
+
75
+ reloadUserFeedbacks$ = createEffect(() =>
76
+ this.actions$.pipe(
77
+ ofType(MdViewActions.addUserFeedbackSuccess),
78
+ exhaustMap(({ datasetUuid }) =>
79
+ this.platformServiceInterface.getUserFeedbacks(datasetUuid).pipe(
80
+ map((userFeedbacks) =>
81
+ MdViewActions.loadUserFeedbacksSuccess({ userFeedbacks })
82
+ ),
83
+ catchError((error) =>
84
+ of(
85
+ MdViewActions.loadUserFeedbacksFailure({
86
+ otherError: error.message,
87
+ })
88
+ )
89
+ )
90
+ )
91
+ )
92
+ )
93
+ )
94
+
95
+ addUserFeedback$ = createEffect(() =>
96
+ this.actions$.pipe(
97
+ ofType(MdViewActions.addUserFeedback),
98
+ mergeMap((action) =>
99
+ this.platformServiceInterface
100
+ .postUserFeedbacks(action.userFeedback)
101
+ .pipe(
102
+ map(() =>
103
+ MdViewActions.addUserFeedbackSuccess({
104
+ datasetUuid: action.userFeedback.metadataUUID,
105
+ })
106
+ ),
107
+ catchError((error) => {
108
+ return of(
109
+ MdViewActions.addUserFeedbackFailure({
110
+ otherError: error.message,
111
+ })
112
+ )
113
+ })
114
+ )
115
+ )
116
+ )
117
+ )
43
118
  }
@@ -5,7 +5,11 @@ import * as MdViewActions from './mdview.actions'
5
5
  import * as MdViewSelectors from './mdview.selectors'
6
6
  import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
7
7
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
8
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
8
+ import {
9
+ CatalogRecord,
10
+ UserFeedback,
11
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
12
+ import { AvatarServiceInterface } from '../../../../../../libs/api/repository/src'
9
13
 
10
14
  @Injectable()
11
15
  /**
@@ -15,19 +19,31 @@ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/mode
15
19
  * To clear the current record use the `close()` method.
16
20
  */
17
21
  export class MdViewFacade {
22
+ constructor(
23
+ private store: Store,
24
+ private linkClassifier: LinkClassifierService,
25
+ private avatarService: AvatarServiceInterface
26
+ ) {}
27
+
18
28
  isPresent$ = this.store.pipe(
19
29
  select(MdViewSelectors.getMetadataUuid),
20
30
  map((uuid) => !!uuid)
21
31
  )
22
- isLoading$ = this.store.pipe(select(MdViewSelectors.getMetadataIsLoading))
32
+
33
+ isMetadataLoading$ = this.store.pipe(
34
+ select(MdViewSelectors.getMetadataIsLoading)
35
+ )
36
+
23
37
  metadata$ = this.store.pipe(
24
38
  select(MdViewSelectors.getMetadata),
25
39
  filter((md) => !!md)
26
40
  )
41
+
27
42
  isIncomplete$ = this.store.pipe(
28
43
  select(MdViewSelectors.getMetadataIsIncomplete),
29
44
  filter((incomplete) => incomplete !== null)
30
45
  )
46
+
31
47
  error$ = this.store.pipe(select(MdViewSelectors.getMetadataError))
32
48
 
33
49
  related$ = this.store.pipe(select(MdViewSelectors.getRelated))
@@ -37,11 +53,13 @@ export class MdViewFacade {
37
53
  allLinks$ = this.metadata$.pipe(
38
54
  map((record) => ('distributions' in record ? record.distributions : []))
39
55
  )
56
+
40
57
  apiLinks$ = this.allLinks$.pipe(
41
58
  map((links) =>
42
59
  links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API))
43
60
  )
44
61
  )
62
+
45
63
  mapApiLinks$ = this.allLinks$.pipe(
46
64
  map((links) =>
47
65
  links.filter((link) =>
@@ -49,6 +67,7 @@ export class MdViewFacade {
49
67
  )
50
68
  )
51
69
  )
70
+
52
71
  downloadLinks$ = this.allLinks$.pipe(
53
72
  map((links) =>
54
73
  links.filter((link) =>
@@ -56,11 +75,13 @@ export class MdViewFacade {
56
75
  )
57
76
  )
58
77
  )
78
+
59
79
  dataLinks$ = this.allLinks$.pipe(
60
80
  map((links) =>
61
81
  links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.DATA))
62
82
  )
63
83
  )
84
+
64
85
  geoDataLinks$ = this.allLinks$.pipe(
65
86
  map((links) =>
66
87
  links.filter((link) =>
@@ -68,9 +89,11 @@ export class MdViewFacade {
68
89
  )
69
90
  )
70
91
  )
92
+
71
93
  landingPageLinks$ = this.metadata$.pipe(
72
94
  map((record) => ('landingPage' in record ? [record.landingPage] : []))
73
95
  )
96
+
74
97
  otherLinks$ = this.allLinks$.pipe(
75
98
  map((links) =>
76
99
  links.filter((link) =>
@@ -79,10 +102,13 @@ export class MdViewFacade {
79
102
  )
80
103
  )
81
104
 
82
- constructor(
83
- private store: Store,
84
- private linkClassifier: LinkClassifierService
85
- ) {}
105
+ userFeedbacks$ = this.store.pipe(select(MdViewSelectors.getUserFeedbacks))
106
+ isAllUserFeedbackLoading$ = this.store.pipe(
107
+ select(MdViewSelectors.getAllUserFeedbacksLoading)
108
+ )
109
+ isAddUserFeedbackLoading$ = this.store.pipe(
110
+ select(MdViewSelectors.getAddUserFeedbacksLoading)
111
+ )
86
112
 
87
113
  /**
88
114
  * This will show an incomplete record (e.g. from a search result) as a preview
@@ -91,16 +117,30 @@ export class MdViewFacade {
91
117
  setIncompleteMetadata(incomplete: CatalogRecord) {
92
118
  this.store.dispatch(MdViewActions.setIncompleteMetadata({ incomplete }))
93
119
  }
120
+
94
121
  /**
95
122
  * This will trigger the load of a full metadata record
96
123
  */
97
124
  loadFull(uuid: string) {
98
125
  this.store.dispatch(MdViewActions.loadFullMetadata({ uuid }))
99
126
  }
100
- close() {
101
- this.store.dispatch(MdViewActions.close())
127
+
128
+ closeMetadata() {
129
+ this.store.dispatch(MdViewActions.closeMetadata())
102
130
  }
131
+
103
132
  setChartConfig(chartConfig: DatavizConfigurationModel) {
104
133
  this.store.dispatch(MdViewActions.setChartConfig({ chartConfig }))
105
134
  }
135
+
136
+ /**
137
+ * UserFeedbacks
138
+ */
139
+ addUserFeedback(userFeedback: UserFeedback) {
140
+ this.store.dispatch(MdViewActions.addUserFeedback({ userFeedback }))
141
+ }
142
+
143
+ loadUserFeedbacks(datasetUuid: string) {
144
+ this.store.dispatch(MdViewActions.loadUserFeedbacks({ datasetUuid }))
145
+ }
106
146
  }