geonetwork-ui 2.3.0-dev.6e2b8bea → 2.3.0-dev.82249397

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 (450) 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 +19 -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/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
  14. package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
  15. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  16. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +36 -3
  17. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +126 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  34. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  35. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +23 -1
  36. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  37. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  38. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +73 -20
  39. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  40. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  41. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +1 -1
  42. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +29 -8
  43. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  44. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  45. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  46. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  47. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  48. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  49. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  50. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -3
  51. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  52. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  53. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  54. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
  55. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  56. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  57. package/esm2022/libs/feature/search/src/index.mjs +2 -1
  58. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
  59. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  60. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
  61. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
  62. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
  63. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  64. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
  65. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  66. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
  67. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
  68. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
  69. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
  70. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  71. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  72. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  73. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +77 -15
  74. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
  75. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +14 -10
  76. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  77. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
  78. package/esm2022/libs/ui/inputs/src/index.mjs +16 -16
  79. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
  80. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
  81. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  82. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  83. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +19 -8
  84. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
  85. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
  86. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
  87. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  88. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +21 -3
  89. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +21 -31
  90. package/esm2022/libs/ui/layout/src/index.mjs +7 -5
  91. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
  92. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
  93. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  94. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
  95. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
  96. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  97. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
  98. package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
  99. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
  100. package/esm2022/translations/de.json +41 -0
  101. package/esm2022/translations/en.json +41 -0
  102. package/esm2022/translations/es.json +41 -0
  103. package/esm2022/translations/fr.json +41 -0
  104. package/esm2022/translations/it.json +41 -0
  105. package/esm2022/translations/nl.json +41 -0
  106. package/esm2022/translations/pt.json +41 -0
  107. package/fesm2022/geonetwork-ui.mjs +3434 -1787
  108. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  109. package/index.d.ts +1 -0
  110. package/index.d.ts.map +1 -1
  111. package/index.ts +1 -0
  112. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  113. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  114. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  115. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  116. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  117. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  118. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  119. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  120. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  121. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  122. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  123. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  124. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  125. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  126. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  127. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  128. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  129. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  130. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
  131. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  132. package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
  133. package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
  134. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
  135. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  136. package/libs/feature/editor/src/index.d.ts +1 -1
  137. package/libs/feature/editor/src/index.d.ts.map +1 -1
  138. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  139. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  140. 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
  141. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  142. 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
  143. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  145. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  146. 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
  147. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  149. 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
  150. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  152. 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
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  154. 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
  155. 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
  156. 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
  157. 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
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +21 -0
  159. 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
  160. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +13 -4
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  163. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  164. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  165. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  166. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  167. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  168. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  169. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  170. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +10 -5
  171. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +1 -0
  173. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  175. package/libs/feature/notifications/src/index.d.ts +4 -0
  176. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  177. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  178. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  179. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  180. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  181. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  182. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  183. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  184. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  185. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  186. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  187. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  188. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  189. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  190. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  191. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  192. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  193. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  194. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  195. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  196. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  197. package/libs/feature/search/src/index.d.ts +1 -0
  198. package/libs/feature/search/src/index.d.ts.map +1 -1
  199. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
  200. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  201. package/libs/ui/elements/src/index.d.ts +14 -14
  202. package/libs/ui/elements/src/index.d.ts.map +1 -1
  203. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  204. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  205. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
  206. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  207. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  208. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  209. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  210. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  211. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +12 -3
  212. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  213. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
  214. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  215. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +29 -28
  216. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  217. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  218. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  219. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
  220. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  221. package/libs/ui/inputs/src/index.d.ts +15 -15
  222. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  223. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  224. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
  225. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
  226. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  227. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  228. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  229. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  230. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
  231. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  232. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
  233. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
  234. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
  235. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
  236. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
  237. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
  238. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  239. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  240. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +5 -1
  241. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  242. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -42
  243. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  244. package/libs/ui/layout/src/index.d.ts +6 -4
  245. package/libs/ui/layout/src/index.d.ts.map +1 -1
  246. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
  247. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
  248. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
  249. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
  250. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  251. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  252. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
  253. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  254. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  255. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  256. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
  257. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
  258. package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
  259. package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
  260. package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
  261. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  262. package/package.json +1 -1
  263. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
  264. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -1
  265. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +1 -4
  266. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  267. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  268. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  269. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
  270. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  271. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  272. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  273. package/src/libs/common/fixtures/src/index.ts +8 -6
  274. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
  275. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
  276. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  277. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
  278. package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
  279. package/src/libs/data-access/gn4/src/spec.yaml +1 -1
  280. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +52 -2
  281. package/src/libs/feature/editor/src/index.ts +1 -1
  282. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  283. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
  284. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
  285. 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
  286. 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
  287. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  288. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  289. 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
  290. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  291. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  292. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  293. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  294. 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
  295. 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
  296. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
  297. 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
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +97 -0
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +142 -0
  304. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  305. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  306. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  307. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  308. package/src/libs/feature/editor/src/lib/fields.config.ts +22 -0
  309. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  310. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  311. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
  312. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +32 -18
  313. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +72 -17
  314. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +1 -0
  315. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +26 -8
  316. package/src/libs/feature/notifications/src/index.ts +3 -0
  317. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  318. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  319. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  320. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  321. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  322. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  323. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  324. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -1
  325. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  326. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  327. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +48 -8
  328. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
  329. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  330. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  331. package/src/libs/feature/search/src/index.ts +1 -0
  332. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  333. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
  334. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  335. package/src/libs/ui/elements/src/index.ts +14 -14
  336. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
  337. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
  338. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  339. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
  340. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
  341. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  342. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  343. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  344. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  345. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  346. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  347. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +27 -11
  348. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +87 -8
  349. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
  350. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -3
  351. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  352. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  353. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  354. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
  355. package/src/libs/ui/inputs/src/index.ts +15 -15
  356. package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
  357. package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
  358. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  359. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  360. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  361. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  362. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
  363. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +14 -0
  364. package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
  365. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
  366. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
  367. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
  368. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
  369. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
  370. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
  371. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  372. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  373. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +2 -1
  374. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +17 -1
  375. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +6 -22
  376. package/src/libs/ui/layout/src/index.ts +6 -4
  377. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
  378. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
  379. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
  380. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +8 -4
  381. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
  382. package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
  383. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  384. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  385. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  386. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
  387. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
  388. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  389. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
  390. package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
  391. package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
  392. package/tailwind.base.css +36 -0
  393. package/translations/de.json +41 -0
  394. package/translations/en.json +41 -0
  395. package/translations/es.json +41 -0
  396. package/translations/fr.json +41 -0
  397. package/translations/it.json +41 -0
  398. package/translations/nl.json +41 -0
  399. package/translations/pt.json +41 -0
  400. package/translations/sk.json +41 -0
  401. package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
  402. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  403. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  404. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  405. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  406. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  407. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  408. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  409. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  410. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  411. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  412. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  413. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
  414. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
  415. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  416. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  417. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  418. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  419. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  420. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  421. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  422. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  423. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  424. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  425. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  426. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  427. package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
  428. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  429. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  430. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  431. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  432. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  433. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  434. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
  435. /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
  436. /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
  437. /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
  438. /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
  439. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
  440. /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-object/form-field-object.component.css} +0 -0
  441. /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
  442. /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-resource-updated/form-field-resource-updated.component.css} +0 -0
  443. /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-rich/form-field-rich.component.css} +0 -0
  444. /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-simple/form-field-simple.component.css} +0 -0
  445. /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
  446. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  447. /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
  448. /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
  449. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  450. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -1,24 +1,24 @@
1
- export * from './lib/ui-elements.module'
2
- export * from './lib/metadata-info/metadata-info.component'
3
- export * from './lib/metadata-contact/metadata-contact.component'
4
- export * from './lib/metadata-catalog/metadata-catalog.component'
5
- export * from './lib/metadata-quality/metadata-quality.component'
6
- export * from './lib/metadata-quality-item/metadata-quality-item.component'
7
- export * from './lib/search-results-error/search-results-error.component'
8
- export * from './lib/thumbnail/thumbnail.component'
9
- export * from './lib/content-ghost/content-ghost.component'
10
- export * from './lib/pagination-buttons/pagination-buttons.component'
11
1
  export * from './lib/api-card/api-card.component'
12
2
  export * from './lib/avatar/avatar.component'
13
3
  export * from './lib/content-ghost/content-ghost.component'
14
4
  export * from './lib/download-item/download-item.component'
15
5
  export * from './lib/downloads-list/downloads-list.component'
6
+ export * from './lib/image-overlay-preview/image-overlay-preview.component'
16
7
  export * from './lib/link-card/link-card.component'
8
+ export * from './lib/markdown-editor/markdown-editor.component'
9
+ export * from './lib/markdown-parser/markdown-parser.component'
10
+ export * from './lib/max-lines/max-lines.component'
11
+ export * from './lib/metadata-catalog/metadata-catalog.component'
12
+ export * from './lib/metadata-contact/metadata-contact.component'
13
+ export * from './lib/metadata-info/metadata-info.component'
14
+ export * from './lib/metadata-quality-item/metadata-quality-item.component'
15
+ export * from './lib/metadata-quality/metadata-quality.component'
16
+ export * from './lib/pagination-buttons/pagination-buttons.component'
17
17
  export * from './lib/pagination/pagination.component'
18
+ export * from './lib/record-api-form/record-api-form.component'
18
19
  export * from './lib/related-record-card/related-record-card.component'
19
20
  export * from './lib/search-results-error/search-results-error.component'
21
+ export * from './lib/thumbnail/thumbnail.component'
22
+ export * from './lib/ui-elements.module'
20
23
  export * from './lib/user-preview/user-preview.component'
21
- export * from './lib/max-lines/max-lines.component'
22
- export * from './lib/record-api-form/record-api-form.component'
23
- export * from './lib/markdown-parser/markdown-parser.component'
24
- export * from './lib/image-overlay-preview/image-overlay-preview.component'
24
+ export * from './lib/notification/notification.component'
@@ -26,7 +26,8 @@ export class ApiCardComponent implements OnInit, OnChanges {
26
26
 
27
27
  ngOnInit() {
28
28
  this.displayApiFormButton =
29
- this.link.accessServiceProtocol === 'ogcFeatures' ? true : false
29
+ this.link.accessServiceProtocol === 'ogcFeatures' ||
30
+ this.link.accessServiceProtocol === 'wfs'
30
31
  }
31
32
 
32
33
  ngOnChanges(changes: SimpleChanges) {
@@ -95,6 +95,6 @@ export class DownloadsListComponent {
95
95
  }
96
96
 
97
97
  isFromWfs(link: DatasetDistribution) {
98
- return link.type === 'service' && link.accessServiceProtocol === 'wfs'
98
+ return link.type === 'download' && link.accessServiceProtocol === 'wfs'
99
99
  }
100
100
  }
@@ -6,7 +6,7 @@
6
6
  *ngIf="imageUrl"
7
7
  [showContent]="imageUrl !== undefined"
8
8
  data-cy="record-thumbnail"
9
- class="flex-shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 group-hover:shadow-xl group-hover:border-0 h-48 mb-3"
9
+ class="shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 group-hover:shadow-xl group-hover:border-0 h-48 mb-3"
10
10
  >
11
11
  <gn-ui-thumbnail
12
12
  class="relative h-full w-full"
@@ -1,25 +1,43 @@
1
1
  <a
2
2
  [href]="link.url"
3
3
  target="_blank"
4
- class="flex flex-col justify-between group h-40 grow py-5 px-5 bg-white rounded border-gray-300 filter card-shadow overflow-hidden lg:w-80"
4
+ class="flex flex-col justify-between group grow py-5 px-5 bg-white rounded border-gray-300 filter card-shadow overflow-hidden"
5
+ [ngClass]="{ 'h-40': !compact }"
6
+ [title]="title"
5
7
  >
6
- <div class="max-h-24 overflow-hidden text-ellipsis">
7
- <p
8
- class="font-title font-medium text-21 text-black break-words mb-1 line-clamp-2"
9
- >
10
- {{ link.name }}
11
- </p>
12
- <p class="font-medium text-sm break-words">
13
- {{ link.description }}
14
- </p>
15
- <p
16
- *ngIf="!link.name && !link.description"
17
- class="font-medium text-sm break-words truncate"
18
- >
19
- {{ link.url }}
20
- </p>
21
- </div>
22
- <div>
23
- <mat-icon class="material-symbols-outlined card-icon">open_in_new</mat-icon>
24
- </div>
8
+ <ng-container *ngIf="!compact; else compactTpl">
9
+ <div class="max-h-24 overflow-hidden text-ellipsis">
10
+ <p
11
+ class="font-title font-medium text-21 text-black break-words mb-1 line-clamp-2"
12
+ >
13
+ {{ link.name }}
14
+ </p>
15
+ <p class="font-medium text-sm break-words">
16
+ {{ link.description }}
17
+ </p>
18
+ <p
19
+ *ngIf="!link.name && !link.description"
20
+ class="font-medium text-sm break-words truncate"
21
+ >
22
+ {{ link.url }}
23
+ </p>
24
+ </div>
25
+ <div>
26
+ <mat-icon class="material-symbols-outlined card-icon"
27
+ >open_in_new</mat-icon
28
+ >
29
+ </div>
30
+ </ng-container>
31
+ <ng-template #compactTpl>
32
+ <div class="flex items-center justify-between gap-4">
33
+ <p
34
+ class="overflow-hidden font-title font-medium text-21 text-black text-ellipsis whitespace-nowrap"
35
+ >
36
+ {{ link.name || link.description }}
37
+ </p>
38
+ <mat-icon class="material-symbols-outlined card-icon flex-shrink-0"
39
+ >open_in_new</mat-icon
40
+ >
41
+ </div>
42
+ </ng-template>
25
43
  </a>
@@ -1,12 +1,24 @@
1
1
  import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
2
2
  import { DatasetDistribution } from '../../../../../../libs/common/domain/src/lib/model/record'
3
+ import { MatIconModule } from '@angular/material/icon'
4
+ import { CommonModule } from '@angular/common'
3
5
 
4
6
  @Component({
5
7
  selector: 'gn-ui-link-card',
6
8
  templateUrl: './link-card.component.html',
7
9
  styleUrls: ['./link-card.component.css'],
8
10
  changeDetection: ChangeDetectionStrategy.OnPush,
11
+ standalone: true,
12
+ imports: [CommonModule, MatIconModule],
9
13
  })
10
14
  export class LinkCardComponent {
11
15
  @Input() link: DatasetDistribution
16
+ @Input() compact = false
17
+
18
+ get title() {
19
+ if (this.link.name && this.link.description) {
20
+ return `${this.link.name} | ${this.link.description}`
21
+ }
22
+ return this.link.name || this.link.description || ''
23
+ }
12
24
  }
@@ -1,5 +0,0 @@
1
- .icon-small {
2
- font-size: 16px;
3
- height: 16px;
4
- width: 16px;
5
- }
@@ -1,25 +1,4 @@
1
1
  <div class="h-full flex flex-col">
2
- <div class="flex-none w-full flex flex-row items-center">
3
- <p class="flex-none font-bold">{{ label }}</p>
4
- <div class="flex-1 flex justify-end items-center">
5
- <gn-ui-button
6
- [extraClass]="getButtonExtraClass()"
7
- (buttonClick)="togglePreview()"
8
- >
9
- <span class="material-symbols-outlined mr-1 icon-small">{{
10
- preview ? 'visibility' : 'visibility_off'
11
- }}</span>
12
- {{ preview ? 'WYSIWYG' : 'Markdown' }}
13
- </gn-ui-button>
14
- <span
15
- class="material-symbols-outlined m-2 icon-small"
16
- [matTooltip]="tooltip"
17
- matTooltipPosition="above"
18
- >
19
- help
20
- </span>
21
- </div>
22
- </div>
23
2
  <p class="flex-none mb-2 font-medium text-sm text-gray-900">
24
3
  {{ helperText }}
25
4
  </p>
@@ -31,26 +31,13 @@ import { MatTooltipModule } from '@angular/material/tooltip'
31
31
  ],
32
32
  })
33
33
  export class MarkdownEditorComponent {
34
- @Input() label: string
35
- @Input() tooltip?: string
34
+ @Input() preview = false
36
35
  @Input() helperText?: string
37
36
  @Input() placeholder: string
38
37
  @Input() textContent: string
39
38
  @Output() textContentChanged: EventEmitter<string> =
40
39
  new EventEmitter<string>()
41
40
 
42
- preview = false
43
-
44
- getButtonExtraClass() {
45
- return `${
46
- this.preview ? 'text-gray-200 bg-gray-900' : 'text-gray-900 bg-gray-200'
47
- } rounded-[1.25rem] p-[0.375rem] text-xs font-medium w-24`
48
- }
49
-
50
- togglePreview() {
51
- this.preview = !this.preview
52
- }
53
-
54
41
  textContentChangedHandler(textContent: string) {
55
42
  this.textContent = textContent
56
43
  this.textContentChanged.emit(this.textContent)
@@ -0,0 +1,52 @@
1
+ <div
2
+ class="p-[16px] flex flex-row gap-[16px] items-start border border-gray-200 shadow-md rounded bg-background"
3
+ >
4
+ <div
5
+ role="alert"
6
+ class="rounded-full text-white p-[6px] w-[32px] h-[32px] flex shrink-0"
7
+ [ngClass]="{
8
+ 'bg-red-500': type === 'error',
9
+ 'bg-yellow-500': type === 'warning',
10
+ 'bg-green-500': type === 'success',
11
+ 'bg-blue-500': type === 'info'
12
+ }"
13
+ [ngSwitch]="type"
14
+ >
15
+ <mat-icon class="material-symbols-outlined !w-[18px] !h-[18px] text-[20px]">
16
+ <ng-container *ngSwitchCase="'success'">check_circle</ng-container>
17
+ <ng-container *ngSwitchCase="'info'">info</ng-container>
18
+ <ng-container *ngSwitchCase="'warning'">warning</ng-container>
19
+ <ng-container *ngSwitchCase="'error'">error</ng-container>
20
+ </mat-icon>
21
+ </div>
22
+ <div
23
+ class="flex flex-col items-start gap-[4px] pt-[3px] grow shrink overflow-hidden"
24
+ >
25
+ <div class="font-bold text-[16px] text-gray-900">
26
+ {{ title }}
27
+ </div>
28
+ <div class="text-[14px] text-gray-800">
29
+ {{ text }}
30
+ </div>
31
+ <a
32
+ href
33
+ *ngIf="closeMessage"
34
+ class="text-[14px] gn-ui-link"
35
+ (click)="handleClose($event)"
36
+ >
37
+ {{ closeMessage }}
38
+ </a>
39
+ </div>
40
+ <gn-ui-button
41
+ type="light"
42
+ class="shrink-0"
43
+ (buttonClick)="handleClose()"
44
+ [style.--gn-ui-button-padding]="0"
45
+ [style.--gn-ui-button-width]="'21px'"
46
+ [style.--gn-ui-button-height]="'21px'"
47
+ >
48
+ <mat-icon class="material-symbols-outlined text-[22px] !w-[21px] !h-[21px]"
49
+ >close</mat-icon
50
+ >
51
+ </gn-ui-button>
52
+ </div>
@@ -0,0 +1,31 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ } from '@angular/core'
8
+ import { CommonModule } from '@angular/common'
9
+ import { MatIconModule } from '@angular/material/icon'
10
+ import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
11
+
12
+ @Component({
13
+ selector: 'gn-ui-notification',
14
+ standalone: true,
15
+ imports: [CommonModule, MatIconModule, ButtonComponent],
16
+ templateUrl: './notification.component.html',
17
+ styleUrls: ['./notification.component.css'],
18
+ changeDetection: ChangeDetectionStrategy.OnPush,
19
+ })
20
+ export class NotificationComponent {
21
+ @Input() type: 'info' | 'warning' | 'error' | 'success' = 'info'
22
+ @Input() title: string
23
+ @Input() text: string
24
+ @Input() closeMessage?: string
25
+ @Output() notificationClose = new EventEmitter<void>()
26
+
27
+ handleClose(event?: Event) {
28
+ event?.preventDefault()
29
+ this.notificationClose.emit()
30
+ }
31
+ }
@@ -13,7 +13,7 @@
13
13
  </p>
14
14
  </button>
15
15
  </div>
16
- <div class="flex flex-row flex-wrap justify-between flex-grow gap-5">
16
+ <div class="flex flex-row flex-wrap justify-between grow gap-5">
17
17
  <div class="flex flex-col gap-3">
18
18
  <p class="text-[14px]" translate>record.metadata.api.form.limit</p>
19
19
  <div class="flex flex-row items-center gap-2">
@@ -37,15 +37,31 @@
37
37
  </div>
38
38
  </div>
39
39
  </div>
40
- <div class="flex flex-col gap-3">
41
- <p class="text-sm" translate>record.metadata.api.form.offset</p>
42
- <gn-ui-text-input
43
- class="w-20"
44
- [value]="offset$ | async"
45
- (valueChange)="setOffset($event)"
46
- hint=""
47
- >
48
- </gn-ui-text-input>
40
+ <div class="flex flex-col gap-3 relative">
41
+ <p class="text-sm" [class.text-gray-600]="!supportOffset" translate>
42
+ record.metadata.api.form.offset
43
+ </p>
44
+ <div class="flex items-center">
45
+ <gn-ui-text-input
46
+ class="w-20"
47
+ [value]="offset$ | async"
48
+ [disabled]="!supportOffset"
49
+ (valueChange)="supportOffset ? setOffset($event) : null"
50
+ hint=""
51
+ >
52
+ </gn-ui-text-input>
53
+ <div
54
+ *ngIf="!supportOffset"
55
+ class="flex items-center gap-2 text-orange-500 z-10 ml-3"
56
+ >
57
+ <span
58
+ class="material-symbols-outlined"
59
+ matTooltip="Not supported on this service"
60
+ >
61
+ warning
62
+ </span>
63
+ </div>
64
+ </div>
49
65
  </div>
50
66
  <div class="flex flex-col gap-3">
51
67
  <p class="text-sm" translate>record.metadata.api.form.type</p>
@@ -55,7 +71,7 @@
55
71
  extraBtnClass="secondary min-w-full !w-40 !text-black"
56
72
  [showTitle]="false"
57
73
  class="text-black"
58
- [choices]="formatsList"
74
+ [choices]="outputFormats"
59
75
  (selectValue)="setFormat($event)"
60
76
  [selected]="format$ | async"
61
77
  ></gn-ui-dropdown-selector>
@@ -1,6 +1,11 @@
1
1
  import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { DatasetServiceDistribution } from '../../../../../../libs/common/domain/src/lib/model/record'
3
- import { BehaviorSubject, combineLatest, map } from 'rxjs'
2
+ import { OgcApiEndpoint, WfsEndpoint } from '@camptocamp/ogc-client'
3
+ import {
4
+ DatasetServiceDistribution,
5
+ ServiceProtocol,
6
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
7
+ import { mimeTypeToFormat } from '../../../../../../libs/util/shared/src'
8
+ import { BehaviorSubject, combineLatest, map, switchMap } from 'rxjs'
4
9
 
5
10
  const DEFAULT_PARAMS = {
6
11
  OFFSET: '',
@@ -15,19 +20,27 @@ const DEFAULT_PARAMS = {
15
20
  })
16
21
  export class RecordApiFormComponent {
17
22
  @Input() set apiLink(value: DatasetServiceDistribution) {
18
- this.apiBaseUrl = value ? value.url.href : undefined
23
+ this.outputFormats = [{ value: 'json', label: 'JSON' }]
24
+ this.accessServiceProtocol = value ? value.accessServiceProtocol : undefined
25
+ this.apiFeatureType = value ? value.name : undefined
26
+ if (value) {
27
+ this.apiBaseUrl = value.url.href
28
+ this.parseOutputFormats()
29
+ }
19
30
  this.resetUrl()
20
31
  }
32
+
21
33
  offset$ = new BehaviorSubject('')
22
34
  limit$ = new BehaviorSubject('')
23
35
  format$ = new BehaviorSubject('')
24
36
  apiBaseUrl: string
25
- formatsList = [
26
- { label: 'JSON', value: 'json' },
27
- { label: 'CSV', value: 'csv' },
28
- ]
37
+ apiFeatureType: string
38
+ supportOffset = true
39
+ accessServiceProtocol: ServiceProtocol | undefined
40
+ outputFormats = [{ value: 'json', label: 'JSON' }]
41
+
29
42
  apiQueryUrl$ = combineLatest([this.offset$, this.limit$, this.format$]).pipe(
30
- map(([offset, limit, format]) => {
43
+ switchMap(async ([offset, limit, format]) => {
31
44
  let outputUrl
32
45
  if (this.apiBaseUrl) {
33
46
  const url = new URL(this.apiBaseUrl)
@@ -41,6 +54,20 @@ export class RecordApiFormComponent {
41
54
  }
42
55
  outputUrl = url.toString()
43
56
  }
57
+
58
+ if (this.accessServiceProtocol === 'wfs') {
59
+ const wfsEndpoint = new WfsEndpoint(this.apiBaseUrl)
60
+ if (await wfsEndpoint.isReady()) {
61
+ const options = {
62
+ outputFormat: format,
63
+ startIndex: Number(offset),
64
+ }
65
+ if (limit !== '-1') {
66
+ options['maxFeatures'] = Number(limit)
67
+ }
68
+ outputUrl = wfsEndpoint.getFeatureUrl(this.apiFeatureType, options)
69
+ }
70
+ }
44
71
  return outputUrl
45
72
  })
46
73
  )
@@ -70,4 +97,56 @@ export class RecordApiFormComponent {
70
97
  this.limit$.next(DEFAULT_PARAMS.LIMIT)
71
98
  this.format$.next(DEFAULT_PARAMS.FORMAT)
72
99
  }
100
+
101
+ parseOutputFormats() {
102
+ const apiUrl =
103
+ this.apiBaseUrl.slice(-1) === '?'
104
+ ? this.apiBaseUrl.slice(0, -1)
105
+ : this.apiBaseUrl
106
+
107
+ this.getOutputFormats(apiUrl, this.accessServiceProtocol).then(
108
+ (outputFormats) => {
109
+ let formatsList = []
110
+ if ('itemFormats' in outputFormats) {
111
+ formatsList = this.mapFormats(outputFormats.itemFormats)
112
+ } else if ('outputFormats' in outputFormats) {
113
+ formatsList = this.mapFormats(outputFormats.outputFormats)
114
+ }
115
+ this.outputFormats = this.outputFormats.concat(
116
+ formatsList.filter(Boolean)
117
+ )
118
+ this.outputFormats = this.outputFormats
119
+ .filter(
120
+ (format, index, self) =>
121
+ index === self.findIndex((t) => t.value === format.value)
122
+ )
123
+ .sort((a, b) => a.label.localeCompare(b.label))
124
+ }
125
+ )
126
+ }
127
+
128
+ mapFormats(formats: any[]) {
129
+ return formats.map((format) => {
130
+ const normalizedFormat = mimeTypeToFormat(format)
131
+ if (normalizedFormat) {
132
+ return {
133
+ label: normalizedFormat.toUpperCase(),
134
+ value: normalizedFormat,
135
+ }
136
+ }
137
+ return null
138
+ })
139
+ }
140
+
141
+ async getOutputFormats(url: string, accessServiceProtocol: string) {
142
+ if (accessServiceProtocol === 'wfs') {
143
+ const endpoint = await new WfsEndpoint(url).isReady()
144
+ this.supportOffset = endpoint.supportsStartIndex()
145
+ return endpoint.getServiceInfo()
146
+ } else {
147
+ const endpoint = await new OgcApiEndpoint(url)
148
+ const firstCollection = (await endpoint.featureCollections)[0]
149
+ return endpoint.getCollectionInfo(firstCollection)
150
+ }
151
+ }
73
152
  }
@@ -1,3 +1,4 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import {
2
3
  ChangeDetectionStrategy,
3
4
  Component,
@@ -18,20 +19,21 @@ export const THUMBNAIL_PLACEHOLDER = new InjectionToken<string>(
18
19
  'thumbnail-placeholder'
19
20
  )
20
21
 
22
+ type FitOptions = 'cover' | 'contain' | 'scale-down'
21
23
  type ThumbnailImageObject = {
22
24
  url: string
23
- fit?: 'cover' | 'contain' | 'scale-down'
25
+ fit?: FitOptions
24
26
  }
25
27
 
26
28
  const DEFAULT_PLACEHOLDER =
27
29
  'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH5gkNDCUFYjA1nwAAA1pJREFUeNrtnW2TmjAURh8CLlTdrmun///3tZ22+zLuYlehH7jsMGogwRiiec4MM44K6D3x3hAwAIQQQgghhJDYSM5cPwNQAMgBpACUg22GTg2gArAD8A9AKY+9CsgALAF8YRsGALwDeAWw9yGgALCKoKWP+WU8iwxjUsudLBj83sZciIiPSwhoWz7pJ5dUZFQXlEXOZ/DNeTBt3JnhBpc9aacGsOn0BuoIUk3b+5trGnEC4B7Ak4sUlInRU+wB/JbgVxG18KrTBc01EmYmcTFJQUVPy/9zTh/4BthLDOqeenB2DdBtZBN58LsSNpcUoEtTJWM/GIvMhQDde9j6h2OhXAjo6/2Q/lgkLgSQC0IBFEABZEKyiaQv5AAv7fSlS+lPVxRwOXTnEtoTPAs04yfRHGMoz8F/HOiaJfKeggLc78dmOHsVS33y9SUXsDuLlsg6FOAw/fhYhwI0pJ7WoQASpoC9p3UoQEPpaR0K0LCB3fB1e6KfAhxRweAKgQ5PsQxJ+CzCJYC/A7+EWt4TzVCE77GgEsBPHA/G7QBswcE4b+noVRZ2QxkCCqAAQgEUQCiAAggFUAChAAogFEABhAJcfT9FAdOxQuB/ML9lAfdo/qWYy2MK8EiO5mrrliUCvdIudAEzWWzQzWuxwjRnAK9WwAzAWhZTCe3l7cryNQrQBL/txZhKGGrlwc36ogIPfvdzfhuQsDDM80EVZXUFwe+mEJ2EOwBfLfYTTFFWVxL8Qwl3nedSye1jjhEyCjAPflfCWiScU1iDKMrqyoJ/KOFxRDf1sCg/xCxgTPC7EnIHn6GYsiirKw2+ayYryorBn7YoKwb/qCgntywg1OBPdqSsGPyTRXnp07gvPgD8AAl6KIICCAVQAAlLwOg5MSNi9NyqJgKqAHpQoZNZxs5KgG7SDN7AZzgWOxcCtprn5/wVfLb+uWXsrASUPXlvHbmETGKQjBVgMitVJTuaaQS2t/GoEMeE3onEor2jlK4RvwN4G1u9T4n6zp6PMTWAXzCYdCq12OCOhdeYZzT3mIErAW1Fr+HmNOAt82KSesYIAJoRzR2aIVumo+Ms8WwT/HOOZlM0Y+Zzxv2zp/gCTzfzPOyGtdfgp7LEcDvbvSxbWXg/HUIIIYQQQogx/wHLoX7NoCMFPwAAAABJRU5ErkJggg=='
28
30
 
29
- type FitOptions = 'cover' | 'contain' | 'scale-down'
30
-
31
31
  @Component({
32
32
  selector: 'gn-ui-thumbnail',
33
33
  templateUrl: './thumbnail.component.html',
34
34
  changeDetection: ChangeDetectionStrategy.OnPush,
35
+ standalone: true,
36
+ imports: [CommonModule],
35
37
  })
36
38
  export class ThumbnailComponent implements OnInit, OnChanges {
37
39
  @Input() thumbnailUrl: string | string[]
@@ -31,6 +31,8 @@ import { MaxLinesComponent } from './max-lines/max-lines.component'
31
31
  import { RecordApiFormComponent } from './record-api-form/record-api-form.component'
32
32
  import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
33
33
  import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-overlay-preview.component'
34
+ import { UserFeedbackItemComponent } from './user-feedback-item/user-feedback-item.component'
35
+ import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
34
36
 
35
37
  @NgModule({
36
38
  imports: [
@@ -46,6 +48,8 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
46
48
  FormsModule,
47
49
  NgOptimizedImage,
48
50
  MarkdownParserComponent,
51
+ ThumbnailComponent,
52
+ TimeSincePipe,
49
53
  ],
50
54
  declarations: [
51
55
  MetadataInfoComponent,
@@ -53,7 +57,6 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
53
57
  DownloadItemComponent,
54
58
  DownloadsListComponent,
55
59
  ApiCardComponent,
56
- LinkCardComponent,
57
60
  RelatedRecordCardComponent,
58
61
  MetadataContactComponent,
59
62
  MetadataCatalogComponent,
@@ -61,13 +64,13 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
61
64
  MetadataQualityItemComponent,
62
65
  SearchResultsErrorComponent,
63
66
  PaginationComponent,
64
- ThumbnailComponent,
65
67
  AvatarComponent,
66
68
  UserPreviewComponent,
67
69
  GnUiLinkifyDirective,
68
70
  PaginationButtonsComponent,
69
71
  MaxLinesComponent,
70
72
  RecordApiFormComponent,
73
+ UserFeedbackItemComponent,
71
74
  ImageOverlayPreviewComponent,
72
75
  ],
73
76
  exports: [
@@ -76,7 +79,6 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
76
79
  DownloadItemComponent,
77
80
  DownloadsListComponent,
78
81
  ApiCardComponent,
79
- LinkCardComponent,
80
82
  RelatedRecordCardComponent,
81
83
  MetadataContactComponent,
82
84
  MetadataCatalogComponent,
@@ -91,6 +93,7 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
91
93
  MaxLinesComponent,
92
94
  RecordApiFormComponent,
93
95
  MarkdownParserComponent,
96
+ UserFeedbackItemComponent,
94
97
  ImageOverlayPreviewComponent,
95
98
  ],
96
99
  })
@@ -0,0 +1,54 @@
1
+ import { Pipe, PipeTransform } from '@angular/core'
2
+ import { TranslateService } from '@ngx-translate/core'
3
+ import { formatDistance } from 'date-fns'
4
+ import { de, enUS, es, fr, it, nl, pt, sk } from 'date-fns/locale'
5
+
6
+ @Pipe({
7
+ name: 'timeSince',
8
+ standalone: true,
9
+ })
10
+ export class TimeSincePipe implements PipeTransform {
11
+ constructor(private translate: TranslateService) {}
12
+
13
+ transform(value: Date): string {
14
+ if (isNaN(value.getTime())) {
15
+ throw new Error('Invalid Date')
16
+ }
17
+
18
+ const maintenant = new Date()
19
+ let locale: Locale
20
+
21
+ switch (this.translate.currentLang) {
22
+ case 'fr':
23
+ locale = fr
24
+ break
25
+ case 'de':
26
+ locale = de
27
+ break
28
+ case 'es':
29
+ locale = es
30
+ break
31
+ case 'it':
32
+ locale = it
33
+ break
34
+ case 'nl':
35
+ locale = nl
36
+ break
37
+ case 'pt':
38
+ locale = pt
39
+ break
40
+ case 'sk':
41
+ locale = sk
42
+ break
43
+ case 'en':
44
+ default:
45
+ locale = enUS
46
+ break
47
+ }
48
+
49
+ return formatDistance(value, maintenant, {
50
+ addSuffix: true,
51
+ locale: locale,
52
+ })
53
+ }
54
+ }