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

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 (296) 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/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
  4. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
  5. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
  6. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +19 -7
  7. package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
  8. package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
  9. package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
  10. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  11. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  12. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +116 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  26. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  27. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +9 -1
  28. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  29. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  30. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +1 -1
  31. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  32. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  33. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  34. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  35. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  36. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  37. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  38. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  39. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  40. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  41. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  42. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
  43. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  44. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  45. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  46. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  47. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  48. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  49. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  50. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  51. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +3 -3
  52. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -2
  53. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  54. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
  55. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  56. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +17 -8
  57. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  58. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +19 -3
  59. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +7 -25
  60. package/esm2022/libs/ui/layout/src/index.mjs +6 -5
  61. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  62. package/esm2022/translations/de.json +33 -0
  63. package/esm2022/translations/en.json +33 -0
  64. package/esm2022/translations/es.json +33 -0
  65. package/esm2022/translations/fr.json +33 -0
  66. package/esm2022/translations/it.json +33 -0
  67. package/esm2022/translations/nl.json +33 -0
  68. package/esm2022/translations/pt.json +33 -0
  69. package/fesm2022/geonetwork-ui.mjs +1835 -1015
  70. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  71. package/index.d.ts +1 -0
  72. package/index.d.ts.map +1 -1
  73. package/index.ts +1 -0
  74. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  75. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  76. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  77. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  78. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  79. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  80. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  81. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  82. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  83. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  84. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  85. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  86. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  87. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  88. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  89. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  90. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  91. package/libs/feature/editor/src/index.d.ts +1 -1
  92. package/libs/feature/editor/src/index.d.ts.map +1 -1
  93. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  94. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  95. 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
  96. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  97. 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
  98. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  99. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  100. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  101. 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
  102. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  103. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  104. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  105. 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
  106. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  107. 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
  108. 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
  109. 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
  110. 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
  111. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +11 -4
  112. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  113. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  114. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  115. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  116. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  117. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  118. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  119. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  120. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  121. package/libs/feature/notifications/src/index.d.ts +4 -0
  122. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  123. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  124. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  125. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  126. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  127. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  128. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  129. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  130. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  131. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  132. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  133. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  134. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  135. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  136. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  137. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  138. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  139. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  140. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  141. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  142. package/libs/ui/elements/src/index.d.ts +14 -14
  143. package/libs/ui/elements/src/index.d.ts.map +1 -1
  144. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  145. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  146. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  147. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  148. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +16 -14
  149. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  150. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  151. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  152. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
  153. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  154. package/libs/ui/inputs/src/index.d.ts +0 -1
  155. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  156. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +1 -1
  157. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  158. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  159. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  160. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +4 -1
  161. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  162. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -43
  163. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  164. package/libs/ui/layout/src/index.d.ts +5 -4
  165. package/libs/ui/layout/src/index.d.ts.map +1 -1
  166. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  167. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  168. package/package.json +1 -1
  169. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
  170. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  171. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  172. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  173. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
  174. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  175. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  176. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  177. package/src/libs/common/fixtures/src/index.ts +8 -6
  178. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +1 -1
  179. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  180. package/src/libs/feature/editor/src/index.ts +1 -1
  181. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  182. 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
  183. 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
  184. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  185. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  186. 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
  187. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  188. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  189. 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
  190. 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
  191. 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
  192. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +87 -0
  193. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +132 -0
  194. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  195. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  196. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  197. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  198. package/src/libs/feature/editor/src/lib/fields.config.ts +8 -0
  199. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  200. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  201. package/src/libs/feature/notifications/src/index.ts +3 -0
  202. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  203. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  204. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  205. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  206. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  207. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  208. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  209. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  210. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  211. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +49 -8
  212. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
  213. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  214. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  215. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  216. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  217. package/src/libs/ui/elements/src/index.ts +14 -14
  218. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  219. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  220. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  221. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  222. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  223. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  224. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  225. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +1 -1
  226. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +5 -0
  227. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  228. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  229. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  230. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
  231. package/src/libs/ui/inputs/src/index.ts +0 -1
  232. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +13 -0
  233. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  234. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  235. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +1 -1
  236. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +16 -1
  237. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +1 -20
  238. package/src/libs/ui/layout/src/index.ts +5 -4
  239. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  240. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  241. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  242. package/tailwind.base.css +36 -0
  243. package/translations/de.json +33 -0
  244. package/translations/en.json +33 -0
  245. package/translations/es.json +33 -0
  246. package/translations/fr.json +33 -0
  247. package/translations/it.json +33 -0
  248. package/translations/nl.json +33 -0
  249. package/translations/pt.json +33 -0
  250. package/translations/sk.json +33 -0
  251. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  252. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  253. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  254. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  255. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  256. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  257. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  258. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  259. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  260. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  261. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  262. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  263. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  264. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  265. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  266. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  267. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  268. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  269. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  270. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  271. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  272. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  273. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  274. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  275. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  276. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  277. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  278. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  279. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  280. /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
  281. /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
  282. /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
  283. /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
  284. /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
  285. /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
  286. /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
  287. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-rich/form-field-rich.component.css +0 -0
  288. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.css +0 -0
  289. /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
  290. /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.css +0 -0
  291. /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
  292. /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.css +0 -0
  293. /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
  294. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.css +0 -0
  295. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  296. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -1,49 +1,41 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./dropdown-selector/dropdown-selector.component";
3
- import * as i2 from "./autocomplete/autocomplete.component";
4
- import * as i3 from "./text-input/text-input.component";
5
- import * as i4 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
6
- import * as i5 from "./chips-input/chips-input.component";
7
- import * as i6 from "./navigation-button/navigation-button.component";
8
- import * as i7 from "./star-toggle/star-toggle.component";
9
- import * as i8 from "./dropdown-multiselect/dropdown-multiselect.component";
10
- import * as i9 from "./viewport-intersector/viewport-intersector.component";
11
- import * as i10 from "./form-field/form-field.component";
12
- import * as i11 from "./form-field/form-field-simple/form-field-simple.component";
13
- import * as i12 from "./form-field/form-field-array/form-field-array.component";
14
- import * as i13 from "./form-field/form-field-object/form-field-object.component";
15
- import * as i14 from "./form-field/form-field-rich/form-field-rich.component";
16
- import * as i15 from "./form-field/form-field-file/form-field-file.component";
17
- import * as i16 from "./form-field/form-field-spatial-extent/form-field-spatial-extent.component";
18
- import * as i17 from "./form-field/form-field-temporal-extent/form-field-temporal-extent.component";
19
- import * as i18 from "./check-toggle/check-toggle.component";
20
- import * as i19 from "./copy-text-button/copy-text-button.component";
21
- import * as i20 from "./checkbox/checkbox.component";
22
- import * as i21 from "./search-input/search-input.component";
23
- import * as i22 from "./date-range-picker/date-range-picker.component";
24
- import * as i23 from "@angular/common";
25
- import * as i24 from "@ngx-translate/core";
26
- import * as i25 from "ngx-dropzone";
27
- import * as i26 from "@angular/forms";
28
- import * as i27 from "ngx-chips";
29
- import * as i28 from "../../../../util/shared/src/lib/util-shared.module";
30
- import * as i29 from "@angular/material/autocomplete";
31
- import * as i30 from "@angular/material/icon";
32
- import * as i31 from "../../../widgets/src/lib/ui-widgets.module";
33
- import * as i32 from "@angular/cdk/overlay";
34
- import * as i33 from "@angular/material/checkbox";
35
- import * as i34 from "@angular/material/tooltip";
36
- import * as i35 from "@angular/material/form-field";
37
- import * as i36 from "@angular/material/input";
38
- import * as i37 from "@angular/material/datepicker";
39
- import * as i38 from "@angular/material/core";
40
- import * as i39 from "./editable-label/editable-label.directive";
41
- import * as i40 from "./text-area/text-area.component";
42
- import * as i41 from "./button/button.component";
43
- import * as i42 from "./image-input/image-input.component";
2
+ import * as i1 from "./autocomplete/autocomplete.component";
3
+ import * as i2 from "./text-input/text-input.component";
4
+ import * as i3 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
5
+ import * as i4 from "./chips-input/chips-input.component";
6
+ import * as i5 from "./navigation-button/navigation-button.component";
7
+ import * as i6 from "./star-toggle/star-toggle.component";
8
+ import * as i7 from "./dropdown-multiselect/dropdown-multiselect.component";
9
+ import * as i8 from "./viewport-intersector/viewport-intersector.component";
10
+ import * as i9 from "./check-toggle/check-toggle.component";
11
+ import * as i10 from "./copy-text-button/copy-text-button.component";
12
+ import * as i11 from "./checkbox/checkbox.component";
13
+ import * as i12 from "./search-input/search-input.component";
14
+ import * as i13 from "./date-range-picker/date-range-picker.component";
15
+ import * as i14 from "@angular/common";
16
+ import * as i15 from "@ngx-translate/core";
17
+ import * as i16 from "ngx-dropzone";
18
+ import * as i17 from "@angular/forms";
19
+ import * as i18 from "ngx-chips";
20
+ import * as i19 from "../../../../util/shared/src/lib/util-shared.module";
21
+ import * as i20 from "@angular/material/autocomplete";
22
+ import * as i21 from "@angular/material/icon";
23
+ import * as i22 from "../../../widgets/src/lib/ui-widgets.module";
24
+ import * as i23 from "@angular/cdk/overlay";
25
+ import * as i24 from "@angular/material/checkbox";
26
+ import * as i25 from "@angular/material/tooltip";
27
+ import * as i26 from "@angular/material/form-field";
28
+ import * as i27 from "@angular/material/input";
29
+ import * as i28 from "@angular/material/datepicker";
30
+ import * as i29 from "@angular/material/core";
31
+ import * as i30 from "./editable-label/editable-label.directive";
32
+ import * as i31 from "./text-area/text-area.component";
33
+ import * as i32 from "./button/button.component";
34
+ import * as i33 from "./image-input/image-input.component";
35
+ import * as i34 from "./dropdown-selector/dropdown-selector.component";
44
36
  export declare class UiInputsModule {
45
37
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
46
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.FormFieldComponent, typeof i11.FormFieldSimpleComponent, typeof i12.FormFieldArrayComponent, typeof i13.FormFieldObjectComponent, typeof i14.FormFieldRichComponent, typeof i15.FormFieldFileComponent, typeof i16.FormFieldSpatialExtentComponent, typeof i17.FormFieldTemporalExtentComponent, typeof i18.CheckToggleComponent, typeof i19.CopyTextButtonComponent, typeof i20.CheckboxComponent, typeof i21.SearchInputComponent, typeof i22.DateRangePickerComponent], [typeof i23.CommonModule, typeof i24.TranslateModule, typeof i25.NgxDropzoneModule, typeof i26.FormsModule, typeof i26.ReactiveFormsModule, typeof i27.TagInputModule, typeof i28.UtilSharedModule, typeof i29.MatAutocompleteModule, typeof i30.MatIconModule, typeof i31.UiWidgetsModule, typeof i32.OverlayModule, typeof i33.MatCheckboxModule, typeof i34.MatTooltipModule, typeof i35.MatFormFieldModule, typeof i36.MatInputModule, typeof i37.MatDatepickerModule, typeof i38.MatNativeDateModule, typeof i39.EditableLabelDirective, typeof i40.TextAreaComponent, typeof i41.ButtonComponent, typeof i42.ImageInputComponent], [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i41.ButtonComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i40.TextAreaComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.FormFieldComponent, typeof i18.CheckToggleComponent, typeof i19.CopyTextButtonComponent, typeof i20.CheckboxComponent, typeof i21.SearchInputComponent, typeof i22.DateRangePickerComponent, typeof i39.EditableLabelDirective, typeof i42.ImageInputComponent]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.AutocompleteComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent, typeof i13.DateRangePickerComponent], [typeof i14.CommonModule, typeof i15.TranslateModule, typeof i16.NgxDropzoneModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.TagInputModule, typeof i19.UtilSharedModule, typeof i20.MatAutocompleteModule, typeof i21.MatIconModule, typeof i22.UiWidgetsModule, typeof i23.OverlayModule, typeof i24.MatCheckboxModule, typeof i25.MatTooltipModule, typeof i26.MatFormFieldModule, typeof i27.MatInputModule, typeof i28.MatDatepickerModule, typeof i29.MatNativeDateModule, typeof i30.EditableLabelDirective, typeof i31.TextAreaComponent, typeof i32.ButtonComponent, typeof i33.ImageInputComponent, typeof i34.DropdownSelectorComponent], [typeof i34.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i32.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i31.TextAreaComponent, typeof i4.ChipsInputComponent, typeof i5.NavigationButtonComponent, typeof i6.StarToggleComponent, typeof i7.DropdownMultiselectComponent, typeof i8.ViewportIntersectorComponent, typeof i9.CheckToggleComponent, typeof i10.CopyTextButtonComponent, typeof i11.CheckboxComponent, typeof i12.SearchInputComponent, typeof i13.DateRangePickerComponent, typeof i30.EditableLabelDirective, typeof i33.ImageInputComponent]>;
47
39
  static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
48
40
  }
49
41
  //# sourceMappingURL=ui-inputs.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,qBAsEa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,qBA6Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -1,9 +1,10 @@
1
- export * from './lib/ui-layout.module';
2
1
  export * from './lib/anchor-link/anchor-link.directive';
3
2
  export * from './lib/carousel/carousel.component';
4
- export * from './lib/expandable-panel/expandable-panel.component';
5
- export * from './lib/sticky-header/sticky-header.component';
6
3
  export * from './lib/expandable-panel-button/expandable-panel-button.component';
7
- export * from './lib/interactive-table/interactive-table.component';
4
+ export * from './lib/expandable-panel/expandable-panel.component';
5
+ export * from './lib/form-field-wrapper/form-field-wrapper.component';
8
6
  export * from './lib/interactive-table/interactive-table-column/interactive-table-column.component';
7
+ export * from './lib/interactive-table/interactive-table.component';
8
+ export * from './lib/sticky-header/sticky-header.component';
9
+ export * from './lib/ui-layout.module';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,yCAAyC,CAAA;AACvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,iEAAiE,CAAA;AAC/E,cAAc,qDAAqD,CAAA;AACnE,cAAc,qFAAqF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,iEAAiE,CAAA;AAC/E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qFAAqF,CAAA;AACnG,cAAc,qDAAqD,CAAA;AACnE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,wBAAwB,CAAA"}
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class FormFieldWrapperComponent {
3
+ label: string;
4
+ hint: string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldWrapperComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldWrapperComponent, "gn-ui-form-field-wrapper", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, ["[form-field-interaction]", "*"], true, never>;
7
+ }
8
+ //# sourceMappingURL=form-field-wrapper.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-wrapper.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts"],"names":[],"mappings":";AAIA,qBAQa,yBAAyB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;yCAFV,yBAAyB;2CAAzB,yBAAyB;CAGrC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.3.0-dev.c3722986",
3
+ "version": "2.3.0-dev.e07c5606",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -120,10 +120,16 @@ export class Gn4FieldMapper {
120
120
  }),
121
121
  creationDateForResource: (output, source) => ({
122
122
  ...output,
123
- datasetCreated: toDate(
123
+ resourceCreated: toDate(
124
124
  getFirstValue(selectField<string>(source, 'creationDateForResource'))
125
125
  ),
126
126
  }),
127
+ revisionDateForResource: (output, source) => ({
128
+ ...output,
129
+ resourceUpdated: toDate(
130
+ getFirstValue(selectField<string>(source, 'revisionDateForResource'))
131
+ ),
132
+ }),
127
133
  createDate: (output, source) => ({
128
134
  ...output,
129
135
  recordCreated: toDate(selectField<string>(source, 'createDate')),
@@ -3,4 +3,5 @@ import { Observable } from 'rxjs'
3
3
  export abstract class AvatarServiceInterface {
4
4
  public abstract getPlaceholder(): Observable<string>
5
5
  public abstract getProfileIcon(...args): Observable<string>
6
+ public abstract getProfileIconUrl(userId: string): Promise<string>
6
7
  }
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'
2
2
  import { AvatarServiceInterface } from './avatar.service.interface'
3
3
  import { Gn4SettingsService } from '../settings/gn4-settings.service'
4
4
  import { map } from 'rxjs/operators'
5
- import { Observable } from 'rxjs'
5
+ import { firstValueFrom, Observable } from 'rxjs'
6
6
 
7
7
  @Injectable({
8
8
  providedIn: 'root',
@@ -14,6 +14,7 @@ export class GravatarService implements AvatarServiceInterface {
14
14
  private readonly identicon$ = this.gn4SettingsService.identicon$.pipe(
15
15
  map((identicon) => identicon?.replace('gravatar:', ''))
16
16
  )
17
+
17
18
  constructor(private gn4SettingsService: Gn4SettingsService) {}
18
19
 
19
20
  getPlaceholder(): Observable<string> {
@@ -26,4 +27,14 @@ export class GravatarService implements AvatarServiceInterface {
26
27
  map((identicon) => `${this.GRAVATAR_URL}${hash}?d=${identicon}`)
27
28
  )
28
29
  }
30
+
31
+ async getProfileIconUrl(userId: string) {
32
+ let iconUrl = ''
33
+ try {
34
+ iconUrl = await firstValueFrom(this.getProfileIcon(userId))
35
+ } catch (error) {
36
+ return ''
37
+ }
38
+ return iconUrl
39
+ }
29
40
  }
@@ -1,17 +1,23 @@
1
1
  import {
2
2
  MeResponseApiModel,
3
3
  UserApiModel,
4
+ UserFeedbackDTOApiModel,
4
5
  } from '../../../../../../../libs/data-access/gn4/src'
5
6
  import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model'
6
7
  import { Injectable } from '@angular/core'
7
- import { AvatarServiceInterface } from '../auth/avatar.service.interface'
8
+ import { AvatarServiceInterface } from '../auth'
8
9
  import { map } from 'rxjs/operators'
9
10
  import { Observable, of } from 'rxjs'
10
11
  import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
12
+ import {
13
+ UserFeedback,
14
+ UserFeedbackViewModel,
15
+ } from '../../../../../../../libs/common/domain/src/lib/model/record'
11
16
 
12
17
  @Injectable()
13
18
  export class Gn4PlatformMapper {
14
19
  constructor(private avatarService: AvatarServiceInterface) {}
20
+
15
21
  userFromMeApi(apiUser: MeResponseApiModel): Observable<UserModel | null> {
16
22
  if (!apiUser) return of(null)
17
23
  const {
@@ -28,6 +34,7 @@ export class Gn4PlatformMapper {
28
34
  .getProfileIcon(hash)
29
35
  .pipe(map((profileIcon) => ({ ...user, profileIcon } as UserModel)))
30
36
  }
37
+
31
38
  userFromApi(apiUser: UserApiModel): UserModel {
32
39
  if (!apiUser) return null
33
40
  const {
@@ -65,4 +72,47 @@ export class Gn4PlatformMapper {
65
72
  }
66
73
  })
67
74
  }
75
+
76
+ userFeedbacksFromApi(userFeedback: any): UserFeedback {
77
+ return {
78
+ uuid: userFeedback.uuid,
79
+ metadataUUID: userFeedback.metadataUUID,
80
+ comment: userFeedback.comment,
81
+ authorUserId: userFeedback.authorUserId.toString(),
82
+ authorName: userFeedback.authorName,
83
+ authorEmail: userFeedback.authorEmail,
84
+ published: userFeedback.published,
85
+ parentUuid: userFeedback.parentUuid ?? undefined,
86
+ date: new Date(userFeedback.date),
87
+ }
88
+ }
89
+
90
+ userFeedbacksToApi(
91
+ userFeedback: UserFeedback
92
+ ): Partial<UserFeedbackDTOApiModel> {
93
+ return {
94
+ uuid: userFeedback.uuid,
95
+ metadataUUID: userFeedback.metadataUUID,
96
+ comment: userFeedback.comment,
97
+ authorUserId: Number.parseInt(userFeedback.authorUserId),
98
+ authorName: userFeedback.authorName,
99
+ authorEmail: userFeedback.authorEmail,
100
+ published: userFeedback.published,
101
+ parentUuid: userFeedback.parentUuid,
102
+ date: userFeedback.date.getTime().toString(),
103
+ }
104
+ }
105
+
106
+ async createUserFeedbackViewModel(
107
+ baseUserFeedback: UserFeedback
108
+ ): Promise<UserFeedbackViewModel> {
109
+ const userAvatarUrl = await this.avatarService.getProfileIconUrl(
110
+ baseUserFeedback.authorUserId?.toString()
111
+ )
112
+
113
+ return {
114
+ ...baseUserFeedback,
115
+ avatarUrl: userAvatarUrl,
116
+ }
117
+ }
68
118
  }
@@ -6,11 +6,15 @@ import {
6
6
  RegistriesApiService,
7
7
  SiteApiService,
8
8
  ToolsApiService,
9
+ UserfeedbackApiService,
9
10
  UsersApiService,
10
11
  } from '../../../../../../../libs/data-access/gn4/src'
11
12
  import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
12
13
  import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model'
13
- import { Organization } from '../../../../../../../libs/common/domain/src/lib/model/record'
14
+ import {
15
+ Organization,
16
+ UserFeedback,
17
+ } from '../../../../../../../libs/common/domain/src/lib/model/record'
14
18
  import { Gn4PlatformMapper } from './gn4-platform.mapper'
15
19
  import { ltr } from 'semver'
16
20
  import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
@@ -21,9 +25,9 @@ const minApiVersion = '4.2.2'
21
25
  @Injectable()
22
26
  export class Gn4PlatformService implements PlatformServiceInterface {
23
27
  private readonly type = 'GeoNetwork'
24
- private me$: Observable<UserModel>
25
- private users$: Observable<UserModel[]>
26
- private isAnonymous$: Observable<boolean>
28
+ private readonly me$: Observable<UserModel>
29
+ private readonly users$: Observable<UserModel[]>
30
+ private readonly isUserAnonymous$: Observable<boolean>
27
31
 
28
32
  private keyTranslations$ = this.toolsApiService
29
33
  .getTranslationsPackage1('gnui')
@@ -65,13 +69,18 @@ export class Gn4PlatformService implements PlatformServiceInterface {
65
69
  private mapper: Gn4PlatformMapper,
66
70
  private toolsApiService: ToolsApiService,
67
71
  private registriesApiService: RegistriesApiService,
68
- private langService: LangService
72
+ private langService: LangService,
73
+ private userfeedbackApiService: UserfeedbackApiService
69
74
  ) {
70
75
  this.me$ = this.meApi.getMe().pipe(
71
76
  switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
72
77
  shareReplay({ bufferSize: 1, refCount: true })
73
78
  )
74
- this.isAnonymous$ = this.me$.pipe(map((user) => !user || !('id' in user)))
79
+
80
+ this.isUserAnonymous$ = this.me$.pipe(
81
+ map((user) => !user || !('id' in user))
82
+ )
83
+
75
84
  this.users$ = this.usersApi.getUsers().pipe(
76
85
  map((users) => users.map((user) => this.mapper.userFromApi(user))),
77
86
  shareReplay()
@@ -91,7 +100,7 @@ export class Gn4PlatformService implements PlatformServiceInterface {
91
100
  }
92
101
 
93
102
  isAnonymous(): Observable<boolean> {
94
- return this.isAnonymous$
103
+ return this.isUserAnonymous$
95
104
  }
96
105
 
97
106
  getOrganizations(): Observable<Organization[]> {
@@ -148,6 +157,24 @@ export class Gn4PlatformService implements PlatformServiceInterface {
148
157
  ),
149
158
  shareReplay(1)
150
159
  )
160
+
151
161
  return this.thesauri[uri]
152
162
  }
163
+
164
+ getUserFeedbacks(uuid: string): Observable<UserFeedback[]> {
165
+ return this.userfeedbackApiService
166
+ .getUserComments(uuid)
167
+ .pipe(
168
+ map((userFeedbacks) =>
169
+ userFeedbacks.map(this.mapper.userFeedbacksFromApi)
170
+ )
171
+ )
172
+ }
173
+
174
+ postUserFeedbacks(userFeedback: UserFeedback): Observable<void> {
175
+ const mappedUserFeedBack = this.mapper.userFeedbacksToApi(userFeedback)
176
+ return this.userfeedbackApiService
177
+ .newUserFeedback(mappedUserFeedBack)
178
+ .pipe(map(() => undefined))
179
+ }
153
180
  }
@@ -1,3 +1,4 @@
1
1
  export * from './contact.model'
2
2
  export * from './organization.model'
3
3
  export * from './metadata.model'
4
+ export * from './user-feedbacks.model'
@@ -0,0 +1,15 @@
1
+ export interface UserFeedback {
2
+ uuid: string
3
+ comment: string
4
+ metadataUUID: string
5
+ authorUserId: string
6
+ authorName: string
7
+ authorEmail: string
8
+ published: boolean
9
+ parentUuid?: string
10
+ date: Date
11
+ }
12
+
13
+ export interface UserFeedbackViewModel extends UserFeedback {
14
+ avatarUrl: string
15
+ }
@@ -2,6 +2,7 @@ import type { Observable } from 'rxjs'
2
2
  import type { UserModel } from './model/user/user.model'
3
3
  import type { Organization } from './model/record/organization.model'
4
4
  import type { ThesaurusModel } from './model/thesaurus/'
5
+ import { UserFeedback } from './model/record'
5
6
 
6
7
  export abstract class PlatformServiceInterface {
7
8
  abstract getType(): string
@@ -16,4 +17,6 @@ export abstract class PlatformServiceInterface {
16
17
  abstract getOrganizations(): Observable<Organization[]>
17
18
  abstract translateKey(key: string): Observable<string>
18
19
  abstract getThesaurusByUri(uri: string): Observable<ThesaurusModel>
20
+ abstract getUserFeedbacks(recordUuid: string): Observable<UserFeedback[]>
21
+ abstract postUserFeedbacks(recordUuid: UserFeedback): Observable<void>
19
22
  }
@@ -1,11 +1,13 @@
1
+ export * from './lib/elasticsearch'
2
+ export * from './lib/gn4'
3
+ export * from './lib/search'
4
+
1
5
  export * from './lib/geojson.fixtures'
6
+ export * from './lib/link.fixtures'
2
7
  export * from './lib/ol-feature.fixture'
8
+ export * from './lib/organisations.fixture'
3
9
  export * from './lib/record-link.fixtures'
4
- export * from './lib/link.fixtures'
5
10
  export * from './lib/records.fixtures'
6
- export * from './lib/organisations.fixture'
7
- export * from './lib/elasticsearch'
8
- export * from './lib/search'
9
- export * from './lib/user.fixtures'
10
11
  export * from './lib/repository.fixtures'
11
- export * from './lib/gn4'
12
+ export * from './lib/user.fixtures'
13
+ export * from './lib/user-feedbacks.fixtures'
@@ -1,5 +1,5 @@
1
1
  import { DatasetRecord } from '../../../../../libs/common/domain/src/lib/model/record'
2
- import { deepFreeze } from './utils/freeze'
2
+ import { deepFreeze } from './utils'
3
3
 
4
4
  export const DATASET_RECORDS: DatasetRecord[] = deepFreeze([
5
5
  {
@@ -0,0 +1,83 @@
1
+ import { UserFeedback } from '../../../../../libs/common/domain/src/lib/model/record'
2
+ import { deepFreeze } from './utils'
3
+
4
+ export const SOME_USER_FEEDBACKS: UserFeedback[] = deepFreeze([
5
+ {
6
+ uuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
7
+ comment: 'A nice comment.',
8
+ metadataUUID: 'my-dataset-001',
9
+ authorUserId: '46798',
10
+ authorName: 'Arnaud De Maison',
11
+ authorEmail: 'a.demaison@geo2france.fr',
12
+ published: true,
13
+ parentUuid: undefined,
14
+ date: new Date('2023-01-01T08:00:00Z'),
15
+ },
16
+ {
17
+ uuid: '52cbd0f1-9cb9-4409-8e85-bc608f049af4',
18
+ comment: 'A very nice comment that is a reply.',
19
+ metadataUUID: 'my-dataset-001',
20
+ authorUserId: '46798',
21
+ authorName: 'Arnaud De Maison',
22
+ authorEmail: 'a.demaison@geo2france.fr',
23
+ published: true,
24
+ parentUuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
25
+ date: new Date('2023-01-01T09:00:00Z'),
26
+ },
27
+ {
28
+ uuid: 'b48f62ec-b5e6-4d27-a396-2c2b44f6dcb5',
29
+ comment: 'Another nice comment.',
30
+ metadataUUID: 'my-dataset-001',
31
+ authorUserId: '46798',
32
+ authorName: 'Arnaud De Maison',
33
+ authorEmail: 'a.demaison@geo2france.fr',
34
+ published: true,
35
+ parentUuid: undefined,
36
+ date: new Date('2023-01-01T10:00:00Z'),
37
+ },
38
+ {
39
+ uuid: '1f12a3be-fc8a-4e83-968f-9b88ffbcab02',
40
+ comment: 'Another very nice reply.',
41
+ metadataUUID: 'my-dataset-001',
42
+ authorUserId: '46798',
43
+ authorName: 'Arnaud De Maison',
44
+ authorEmail: 'a.demaison@geo2france.fr',
45
+ published: true,
46
+ parentUuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
47
+ date: new Date('2023-01-01T11:00:00Z'),
48
+ },
49
+ {
50
+ uuid: 'f8dd778d-e93c-4b3c-ba9b-9574be070f46',
51
+ comment: 'Another nice comment.',
52
+ metadataUUID: 'my-dataset-001',
53
+ authorUserId: '46798',
54
+ authorName: 'Arnaud De Maison',
55
+ authorEmail: 'a.demaison@geo2france.fr',
56
+ published: true,
57
+ parentUuid: undefined,
58
+ date: new Date('2023-01-01T10:00:00Z'),
59
+ },
60
+ {
61
+ uuid: 'df3b8872-61d1-4ae9-8822-bb070b94d7d1',
62
+ comment: 'Another nice comment.',
63
+ metadataUUID: 'my-dataset-001',
64
+ authorUserId: '46798',
65
+ authorName: 'Arnaud De Maison',
66
+ authorEmail: 'a.demaison@geo2france.fr',
67
+ published: true,
68
+ parentUuid: undefined,
69
+ date: new Date('2023-01-01T11:00:00Z'),
70
+ },
71
+ ])
72
+
73
+ export const A_USER_FEEDBACK: UserFeedback = deepFreeze({
74
+ uuid: '4ad03fb7-1728-424c-bdaa-aedd531b07a8',
75
+ comment: 'A nice comment.',
76
+ metadataUUID: 'my-dataset-001',
77
+ authorUserId: '46798',
78
+ authorName: 'Arnaud De Maison',
79
+ authorEmail: 'a.demaison@geo2france.fr',
80
+ published: true,
81
+ parentUuid: undefined,
82
+ date: new Date('2023-01-01T08:00:00Z'),
83
+ })
@@ -5,7 +5,7 @@ export * from './lib/+state/editor.reducer'
5
5
  export * from './lib/+state/editor.actions'
6
6
  export * from './lib/feature-editor.module'
7
7
  export * from './lib/services/editor.service'
8
- export * from './lib/record-form/record-form.component'
8
+ export * from './lib/components/record-form/record-form.component'
9
9
  export * from './lib/components/wizard/wizard.component'
10
10
  export * from './lib/components/wizard-field/wizard-field.component'
11
11
  export * from './lib/components/wizard-summarize/wizard-summarize.component'
@@ -3,14 +3,21 @@ import { select, Store } from '@ngrx/store'
3
3
  import * as EditorActions from './editor.actions'
4
4
  import * as EditorSelectors from './editor.selectors'
5
5
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
6
+ import { filter, Observable } from 'rxjs'
7
+ import { Actions, ofType } from '@ngrx/effects'
6
8
 
7
9
  @Injectable()
8
10
  export class EditorFacade {
9
11
  private readonly store = inject(Store)
12
+ private actions$ = inject(Actions)
10
13
 
11
14
  record$ = this.store.pipe(select(EditorSelectors.selectRecord))
12
15
  saving$ = this.store.pipe(select(EditorSelectors.selectRecordSaving))
13
- saveError$ = this.store.pipe(select(EditorSelectors.selectRecordSaveError))
16
+ saveError$ = this.store.pipe(
17
+ select(EditorSelectors.selectRecordSaveError),
18
+ filter((error) => !!error)
19
+ )
20
+ saveSuccess$ = this.actions$.pipe(ofType(EditorActions.saveRecordSuccess))
14
21
  changedSinceSave$ = this.store.pipe(
15
22
  select(EditorSelectors.selectRecordChangedSinceSave)
16
23
  )
@@ -5,5 +5,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
5
5
  templateUrl: './form-field-array.component.html',
6
6
  styleUrls: ['./form-field-array.component.css'],
7
7
  changeDetection: ChangeDetectionStrategy.OnPush,
8
+ standalone: true,
8
9
  })
9
10
  export class FormFieldArrayComponent {}
@@ -1,11 +1,14 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { FormControl } from '@angular/forms'
3
+ import { FormControl, ReactiveFormsModule } from '@angular/forms'
3
4
 
4
5
  @Component({
5
6
  selector: 'gn-ui-form-field-file',
6
7
  templateUrl: './form-field-file.component.html',
7
8
  styleUrls: ['./form-field-file.component.css'],
8
9
  changeDetection: ChangeDetectionStrategy.OnPush,
10
+ standalone: true,
11
+ imports: [CommonModule, ReactiveFormsModule],
9
12
  })
10
13
  export class FormFieldFileComponent {
11
14
  @Input() control!: FormControl
@@ -0,0 +1,8 @@
1
+ <gn-ui-dropdown-selector
2
+ [title]="label"
3
+ [showTitle]="false"
4
+ [choices]="choices"
5
+ [selected]="selected"
6
+ (selectValue)="onSelectValue($event)"
7
+ >
8
+ </gn-ui-dropdown-selector>