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

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 (320) 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-resource-updated/form-field-resource-updated.component.mjs +15 -0
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +121 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  27. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  28. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +16 -1
  29. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  30. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  31. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +1 -1
  32. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  33. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  34. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  35. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  36. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  37. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  38. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  39. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  40. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  41. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  42. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  43. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
  44. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  45. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  46. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  47. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  48. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  49. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
  50. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  51. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  52. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +34 -7
  53. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -2
  54. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  55. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
  56. package/esm2022/libs/ui/inputs/src/index.mjs +15 -16
  57. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  58. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  59. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +17 -8
  60. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  61. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +19 -3
  62. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +11 -28
  63. package/esm2022/libs/ui/layout/src/index.mjs +6 -5
  64. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  65. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  66. package/esm2022/translations/de.json +34 -0
  67. package/esm2022/translations/en.json +34 -0
  68. package/esm2022/translations/es.json +34 -0
  69. package/esm2022/translations/fr.json +34 -0
  70. package/esm2022/translations/it.json +34 -0
  71. package/esm2022/translations/nl.json +34 -0
  72. package/esm2022/translations/pt.json +34 -0
  73. package/fesm2022/geonetwork-ui.mjs +2615 -1704
  74. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  75. package/index.d.ts +1 -0
  76. package/index.d.ts.map +1 -1
  77. package/index.ts +1 -0
  78. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  79. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  80. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  81. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  82. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  83. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  84. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  85. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  86. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  87. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  88. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  89. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  90. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  91. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  92. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  93. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  94. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  95. package/libs/feature/editor/src/index.d.ts +1 -1
  96. package/libs/feature/editor/src/index.d.ts.map +1 -1
  97. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  98. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  99. 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
  100. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  101. 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
  102. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  103. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  104. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  105. 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
  106. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  107. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  108. 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
  109. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  110. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  111. 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
  112. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  113. 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
  114. 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
  115. 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
  116. 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
  117. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +12 -4
  118. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  119. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  120. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  121. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  122. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  123. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  124. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  125. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  126. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  127. package/libs/feature/notifications/src/index.d.ts +4 -0
  128. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  129. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  130. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  131. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  132. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  133. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  134. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  135. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  136. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  137. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  138. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  139. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  140. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  141. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  142. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  143. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  144. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  145. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  146. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  147. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  148. package/libs/ui/elements/src/index.d.ts +14 -14
  149. package/libs/ui/elements/src/index.d.ts.map +1 -1
  150. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  151. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  152. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  153. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  154. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  155. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +4 -2
  156. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  157. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +16 -14
  158. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  159. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  160. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  161. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
  162. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  163. package/libs/ui/inputs/src/index.d.ts +14 -15
  164. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  165. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  166. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  167. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  168. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  169. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +1 -1
  170. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  171. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  172. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  173. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +4 -1
  174. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  175. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -43
  176. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  177. package/libs/ui/layout/src/index.d.ts +5 -4
  178. package/libs/ui/layout/src/index.d.ts.map +1 -1
  179. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  180. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  181. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  182. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  183. package/package.json +1 -1
  184. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
  185. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  186. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  187. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  188. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
  189. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  190. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  191. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  192. package/src/libs/common/fixtures/src/index.ts +8 -6
  193. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
  194. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  195. package/src/libs/feature/editor/src/index.ts +1 -1
  196. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  197. 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
  198. 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
  199. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  200. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  201. 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
  202. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  203. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  204. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  205. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  206. 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
  207. 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
  208. 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
  209. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  210. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +92 -0
  211. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +137 -0
  212. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  213. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  214. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  215. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  216. package/src/libs/feature/editor/src/lib/fields.config.ts +15 -0
  217. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  218. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  219. package/src/libs/feature/notifications/src/index.ts +3 -0
  220. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  221. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  222. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  223. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  224. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  225. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  226. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  227. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  228. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  229. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +49 -8
  230. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
  231. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  232. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  233. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  234. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  235. package/src/libs/ui/elements/src/index.ts +14 -14
  236. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  237. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  238. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  239. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  240. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  241. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  242. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  243. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  244. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +40 -4
  245. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +5 -0
  246. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  247. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  248. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  249. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
  250. package/src/libs/ui/inputs/src/index.ts +14 -15
  251. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  252. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  253. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  254. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  255. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +13 -0
  256. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  257. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  258. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +1 -1
  259. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +16 -1
  260. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +2 -21
  261. package/src/libs/ui/layout/src/index.ts +5 -4
  262. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  263. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  264. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  265. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  266. package/tailwind.base.css +36 -0
  267. package/translations/de.json +34 -0
  268. package/translations/en.json +34 -0
  269. package/translations/es.json +34 -0
  270. package/translations/fr.json +34 -0
  271. package/translations/it.json +34 -0
  272. package/translations/nl.json +34 -0
  273. package/translations/pt.json +34 -0
  274. package/translations/sk.json +34 -0
  275. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  276. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  277. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  278. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  279. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  280. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  281. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  282. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  283. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  284. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  285. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  286. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  287. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  288. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  289. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  290. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  291. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  292. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  293. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  294. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  295. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  296. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  297. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  298. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  299. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  300. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  301. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  302. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  303. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  304. /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
  305. /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
  306. /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
  307. /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
  308. /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
  309. /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
  310. /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
  311. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
  312. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
  313. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
  314. /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
  315. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  316. /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
  317. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css} +0 -0
  318. /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
  319. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  320. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -0,0 +1,9 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DatePickerComponent {
4
+ date: Date;
5
+ dateChange: EventEmitter<Date>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gn-ui-date-picker", never, { "date": { "alias": "date"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
8
+ }
9
+ //# sourceMappingURL=date-picker.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;;AAKtE,qBAOa,mBAAmB;IACrB,IAAI,EAAE,IAAI,CAAA;IACT,UAAU,qBAA2B;yCAFpC,mBAAmB;2CAAnB,mBAAmB;CAG/B"}
@@ -6,6 +6,6 @@ export declare class DateRangePickerComponent {
6
6
  startDateSelected(event: MatDatepickerInputEvent<Date>): void;
7
7
  endDateSelected(event: MatDatepickerInputEvent<Date>): void;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, {}, {}, never, never, false, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, {}, {}, never, never, true, never>;
10
10
  }
11
11
  //# sourceMappingURL=date-range-picker.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;;AAEtE,qBAKa,wBAAwB;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IAEb,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAItD,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;yCARzC,wBAAwB;2CAAxB,wBAAwB;CAWpC"}
1
+ {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAA;;AAGrC,qBAOa,wBAAwB;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IAEb,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAItD,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;yCARzC,wBAAwB;2CAAxB,wBAAwB;CAWpC"}
@@ -35,6 +35,6 @@ export declare class DropdownSelectorComponent implements OnInit {
35
35
  get focusedIndex(): number | -1;
36
36
  selectIfEnter(event: KeyboardEvent, choice: DropdownChoice): void;
37
37
  static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectorComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, false, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectorComponent, "gn-ui-dropdown-selector", never, { "title": { "alias": "title"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "ariaName": { "alias": "ariaName"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "extraBtnClass": { "alias": "extraBtnClass"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; }, { "selectValue": "selectValue"; }, never, never, true, never>;
39
39
  }
40
40
  //# sourceMappingURL=dropdown-selector.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAI1D,qBAMa,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;IACZ,WAAW,wBAA8C;IACvC,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAC5D,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IAED,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAEnC,IAAI,cAAc,IAAI,cAAc,CAKnC;IAED,IAAI,EAAE,WAEL;IAED,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,IAAI;IAOhB,UAAU,CAAC,MAAM,EAAE,cAAc;IAIjC,aAAa,CAAC,MAAM,EAAE,cAAc;IAMpC,WAAW;IAcX,YAAY;IAIZ,cAAc;IAId,aAAa;IAIP,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAuB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAczC,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;IAED,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc;yCAlJ/C,yBAAyB;2CAAzB,yBAAyB;CAwJrC"}
1
+ {"version":3,"file":"dropdown-selector.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EAElB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAGL,UAAU,EACV,YAAY,EAEZ,MAAM,EAEN,SAAS,EAGV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;;AAQ1D,qBAca,yBAA0B,YAAW,MAAM;IAC7C,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,UAAO;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,QAAQ,EAAE,cAAc,CAAC,OAAO,CAAC,CAAA;IACjC,OAAO,EAAE,MAAM,CAAA;IACf,aAAa,SAAK;IAClB,QAAQ,SAAK;IACZ,WAAW,wBAA8C;IACvC,aAAa,EAAE,gBAAgB,CAAA;IAC3B,OAAO,EAAE,mBAAmB,CAAA;IAC5D,WAAW,UAAQ;IACnB,YAAY,SAAS;IACrB,gBAAgB,SAAS;IACzB,gBAAgB,EAAE,iBAAiB,EAAE,CAepC;IAED,YAAY,EAAE,SAAS,CAAC,UAAU,CAAC,CAAA;IAEnC,IAAI,cAAc,IAAI,cAAc,CAKnC;IAED,IAAI,EAAE,WAEL;IAED,cAAc,IAAI,MAAM;IAIxB,QAAQ,IAAI,IAAI;IAOhB,UAAU,CAAC,MAAM,EAAE,cAAc;IAIjC,aAAa,CAAC,MAAM,EAAE,cAAc;IAMpC,WAAW;IAcX,YAAY;IAIZ,cAAc;IAId,aAAa;IAIP,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAuB/C,oBAAoB,CAAC,KAAK,EAAE,aAAa;IAczC,cAAc,CAAC,KAAK,EAAE,MAAM;IAS5B,IAAI,YAAY,IAAI,MAAM,GAAG,CAAC,CAAC,CAM9B;IAED,aAAa,CAAC,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc;yCAlJ/C,yBAAyB;2CAAzB,yBAAyB;CAwJrC"}
@@ -2,16 +2,22 @@ import { AfterViewInit } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TextAreaComponent implements AfterViewInit {
5
+ private readonly baseClasses;
6
+ private readonly disabledClasses;
5
7
  value: string;
8
+ disabled: boolean;
9
+ extraClass: string;
6
10
  placeholder: string;
7
11
  required: boolean;
8
12
  rawChange: Subject<string>;
9
13
  valueChange: import("rxjs").Observable<string>;
10
14
  input: any;
15
+ constructor();
16
+ get classList(): string;
11
17
  ngAfterViewInit(): void;
12
18
  checkRequired(value: any): void;
13
19
  handleChange($event: any): void;
14
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "gn-ui-text-area", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "gn-ui-text-area", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
16
22
  }
17
23
  //# sourceMappingURL=text-area.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-area.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-area/text-area.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAMa,iBAAkB,YAAW,aAAa;IAC5C,KAAK,SAAK;IACV,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,UAAQ;IAEzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAE/C,KAAK,MAAA;IAEzB,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCArBR,iBAAiB;2CAAjB,iBAAiB;CA0B7B"}
1
+ {"version":3,"file":"text-area.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-area/text-area.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAMa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IAE/B,KAAK,SAAK;IACV,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,UAAQ;IAEzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAE/C,KAAK,MAAA;;IAoBzB,IAAI,SAAS,WAIZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCAlDR,iBAAiB;2CAAjB,iBAAiB;CAuD7B"}
@@ -2,16 +2,19 @@ import { AfterViewInit } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class TextInputComponent implements AfterViewInit {
5
+ private readonly baseClass;
5
6
  value: string;
7
+ extraClass: string;
6
8
  hint: string;
7
9
  required: boolean;
8
10
  rawChange: Subject<string>;
9
11
  valueChange: import("rxjs").Observable<string>;
10
12
  input: any;
13
+ get classList(): string;
11
14
  ngAfterViewInit(): void;
12
15
  checkRequired(value: any): void;
13
16
  handleChange($event: any): void;
14
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
16
19
  }
17
20
  //# sourceMappingURL=text-input.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;IAC7C,KAAK,SAAK;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,UAAQ;IACzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAE/C,KAAK,MAAA;IAEzB,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCApBR,kBAAkB;2CAAlB,kBAAkB;CAyB9B"}
1
+ {"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CASf;IAEF,KAAK,SAAK;IACV,UAAU,SAAK;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,UAAQ;IACzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAC/C,KAAK,MAAA;IAEzB,IAAI,SAAS,WAEZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCAnCR,kBAAkB;2CAAlB,kBAAkB;CAwC9B"}
@@ -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 "@angular/common";
15
+ import * as i14 from "@ngx-translate/core";
16
+ import * as i15 from "ngx-dropzone";
17
+ import * as i16 from "@angular/forms";
18
+ import * as i17 from "ngx-chips";
19
+ import * as i18 from "../../../../util/shared/src/lib/util-shared.module";
20
+ import * as i19 from "@angular/material/autocomplete";
21
+ import * as i20 from "@angular/material/icon";
22
+ import * as i21 from "../../../widgets/src/lib/ui-widgets.module";
23
+ import * as i22 from "@angular/cdk/overlay";
24
+ import * as i23 from "@angular/material/checkbox";
25
+ import * as i24 from "@angular/material/tooltip";
26
+ import * as i25 from "@angular/material/form-field";
27
+ import * as i26 from "@angular/material/input";
28
+ import * as i27 from "@angular/material/datepicker";
29
+ import * as i28 from "@angular/material/core";
30
+ import * as i29 from "./editable-label/editable-label.directive";
31
+ import * as i30 from "./text-area/text-area.component";
32
+ import * as i31 from "./button/button.component";
33
+ import * as i32 from "./image-input/image-input.component";
34
+ import * as i33 from "./dropdown-selector/dropdown-selector.component";
35
+ import * as i34 from "./date-range-picker/date-range-picker.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.CommonModule, typeof i14.TranslateModule, typeof i15.NgxDropzoneModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.TagInputModule, typeof i18.UtilSharedModule, typeof i19.MatAutocompleteModule, typeof i20.MatIconModule, typeof i21.UiWidgetsModule, typeof i22.OverlayModule, typeof i23.MatCheckboxModule, typeof i24.MatTooltipModule, typeof i25.MatFormFieldModule, typeof i26.MatInputModule, typeof i27.MatDatepickerModule, typeof i28.MatNativeDateModule, typeof i29.EditableLabelDirective, typeof i30.TextAreaComponent, typeof i31.ButtonComponent, typeof i32.ImageInputComponent, typeof i33.DropdownSelectorComponent, typeof i34.DateRangePickerComponent], [typeof i33.DropdownSelectorComponent, typeof i1.AutocompleteComponent, typeof i31.ButtonComponent, typeof i2.TextInputComponent, typeof i3.DragAndDropFileInputComponent, typeof i30.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 i34.DateRangePickerComponent, typeof i29.EditableLabelDirective, typeof i32.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"}
@@ -78,6 +78,24 @@ export declare const FORMATS: {
78
78
  readonly color: "#de630b";
79
79
  readonly mimeTypes: readonly ["application/x-dxf", "image/x-dxf"];
80
80
  };
81
+ readonly html: {
82
+ readonly extensions: readonly ["html", "htm"];
83
+ readonly priority: 12;
84
+ readonly color: "#f2bb3a";
85
+ readonly mimeTypes: readonly ["text/html"];
86
+ };
87
+ readonly fgb: {
88
+ readonly extensions: readonly ["fgb", "flatgeobuf"];
89
+ readonly priority: 13;
90
+ readonly color: "#f2bb3a";
91
+ readonly mimeTypes: readonly ["application/flatgeobuf"];
92
+ };
93
+ readonly jsonfg: {
94
+ readonly extensions: readonly ["jsonfg", "jsonfgc"];
95
+ readonly priority: 14;
96
+ readonly color: "#f2bb3a";
97
+ readonly mimeTypes: readonly ["application/vnd.ogc.fg+json", "application/vnd.ogc.fg+json;compatibility=geojson"];
98
+ };
81
99
  };
82
100
  export type FileFormat = keyof typeof FORMATS;
83
101
  export declare function getFormatPriority(linkFormat: FileFormat): number;
@@ -1 +1 @@
1
- {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2FV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
1
+ {"version":3,"file":"link-utils.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/links/link-utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2DAA2D,CAAA;AAI/F,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgHV,CAAA;AAEV,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAA;AAE7C,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAUhE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CAEjE;AAED,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,MAAM,GACpB,UAAU,GAAG,IAAI,CAgBnB;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,mBAAmB,GAAG,UAAU,CAcnE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,mBAAmB,EACzB,KAAK,EAAE,MAAM,GACZ,OAAO,CAQT;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,CAO7D;AAED,wBAAgB,eAAe,CAC7B,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,UAAU,GACjB,OAAO,CAMT;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAQ5D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,CA0B9D;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAEtE"}
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.e03215d1",
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
  {
@@ -49,8 +49,8 @@ export const DATASET_RECORDS: DatasetRecord[] = deepFreeze([
49
49
  status: 'ongoing',
50
50
  recordCreated: new Date('2022-02-01T15:12:00'),
51
51
  recordUpdated: new Date('2022-02-01T15:12:00'),
52
- datasetCreated: new Date('2022-09-01T14:18:19'),
53
- datasetUpdated: new Date('2022-12-04T15:12:00'),
52
+ resourceCreated: new Date('2022-09-01T14:18:19'),
53
+ resourceUpdated: new Date('2022-12-04T15:12:00'),
54
54
  title: 'A very interesting dataset (un jeu de données très intéressant)',
55
55
  abstract: `# Introduction
56
56
  This dataset has been established for testing purposes.