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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (450) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +6 -2
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +2 -2
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
  5. package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
  6. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
  7. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
  8. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +19 -7
  9. package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
  10. package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
  11. package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
  12. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  13. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
  14. package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
  15. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  16. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +36 -3
  17. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +104 -0
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +126 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  33. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  34. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  35. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +23 -1
  36. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  37. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  38. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +73 -20
  39. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  40. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  41. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +1 -1
  42. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +29 -8
  43. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  44. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  45. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  46. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  47. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  48. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  49. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  50. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -3
  51. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  52. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  53. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  54. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
  55. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  56. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  57. package/esm2022/libs/feature/search/src/index.mjs +2 -1
  58. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +1 -1
  59. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  60. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +1 -1
  61. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +1 -1
  62. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +1 -1
  63. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  64. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +1 -1
  65. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  66. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -2
  67. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
  68. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
  69. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
  70. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  71. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  72. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  73. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +77 -15
  74. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
  75. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +14 -10
  76. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  77. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
  78. package/esm2022/libs/ui/inputs/src/index.mjs +16 -16
  79. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
  80. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -3
  81. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  82. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  83. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +19 -8
  84. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
  85. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
  86. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
  87. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  88. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +21 -3
  89. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +21 -31
  90. package/esm2022/libs/ui/layout/src/index.mjs +7 -5
  91. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
  92. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
  93. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  94. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
  95. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
  96. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  97. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
  98. package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
  99. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
  100. package/esm2022/translations/de.json +41 -0
  101. package/esm2022/translations/en.json +41 -0
  102. package/esm2022/translations/es.json +41 -0
  103. package/esm2022/translations/fr.json +41 -0
  104. package/esm2022/translations/it.json +41 -0
  105. package/esm2022/translations/nl.json +41 -0
  106. package/esm2022/translations/pt.json +41 -0
  107. package/fesm2022/geonetwork-ui.mjs +3434 -1787
  108. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  109. package/index.d.ts +1 -0
  110. package/index.d.ts.map +1 -1
  111. package/index.ts +1 -0
  112. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  113. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  114. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  115. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  116. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  117. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  118. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  119. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  120. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  121. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  122. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  123. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  124. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  125. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  126. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  127. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  128. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  129. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  130. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
  131. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  132. package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
  133. package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
  134. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
  135. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  136. package/libs/feature/editor/src/index.d.ts +1 -1
  137. package/libs/feature/editor/src/index.d.ts.map +1 -1
  138. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  139. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  140. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
  141. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  142. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
  143. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  145. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  146. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
  147. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  149. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
  150. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  152. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  154. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
  155. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
  156. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
  157. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +21 -0
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -0
  160. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +13 -4
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  163. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  164. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  165. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  166. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  167. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  168. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  169. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  170. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +10 -5
  171. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +1 -0
  173. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  175. package/libs/feature/notifications/src/index.d.ts +4 -0
  176. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  177. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  178. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  179. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  180. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  181. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  182. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  183. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  184. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  185. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  186. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  187. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  188. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  189. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  190. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  191. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  192. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  193. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  194. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  195. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  196. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  197. package/libs/feature/search/src/index.d.ts +1 -0
  198. package/libs/feature/search/src/index.d.ts.map +1 -1
  199. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts +3 -3
  200. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  201. package/libs/ui/elements/src/index.d.ts +14 -14
  202. package/libs/ui/elements/src/index.d.ts.map +1 -1
  203. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  204. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  205. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
  206. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  207. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  208. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  209. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  210. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  211. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +12 -3
  212. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  213. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
  214. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  215. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +29 -28
  216. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  217. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  218. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  219. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
  220. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  221. package/libs/ui/inputs/src/index.d.ts +15 -15
  222. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  223. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  224. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts +1 -1
  225. package/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.d.ts.map +1 -1
  226. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  227. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  228. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  229. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  230. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +2 -1
  231. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  232. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
  233. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
  234. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
  235. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
  236. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
  237. package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
  238. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  239. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  240. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +5 -1
  241. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  242. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -42
  243. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  244. package/libs/ui/layout/src/index.d.ts +6 -4
  245. package/libs/ui/layout/src/index.d.ts.map +1 -1
  246. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
  247. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
  248. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
  249. package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
  250. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  251. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  252. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
  253. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  254. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  255. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  256. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
  257. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
  258. package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
  259. package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
  260. package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
  261. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  262. package/package.json +1 -1
  263. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
  264. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -1
  265. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +1 -4
  266. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  267. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  268. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  269. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
  270. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  271. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  272. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  273. package/src/libs/common/fixtures/src/index.ts +8 -6
  274. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
  275. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
  276. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  277. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
  278. package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
  279. package/src/libs/data-access/gn4/src/spec.yaml +1 -1
  280. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +52 -2
  281. package/src/libs/feature/editor/src/index.ts +1 -1
  282. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  283. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
  284. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
  285. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
  286. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
  287. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  288. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  289. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
  290. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  291. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  292. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  293. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  294. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
  295. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
  296. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
  297. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.css +0 -0
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +14 -0
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +143 -0
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +97 -0
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +142 -0
  304. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  305. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  306. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  307. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  308. package/src/libs/feature/editor/src/lib/fields.config.ts +22 -0
  309. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  310. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  311. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +7 -0
  312. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +32 -18
  313. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +72 -17
  314. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +1 -0
  315. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +26 -8
  316. package/src/libs/feature/notifications/src/index.ts +3 -0
  317. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  318. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  319. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  320. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  321. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  322. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  323. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  324. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -1
  325. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  326. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  327. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +48 -8
  328. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
  329. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  330. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  331. package/src/libs/feature/search/src/index.ts +1 -0
  332. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  333. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -2
  334. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  335. package/src/libs/ui/elements/src/index.ts +14 -14
  336. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +2 -1
  337. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
  338. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  339. package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
  340. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
  341. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  342. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  343. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  344. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  345. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  346. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  347. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +27 -11
  348. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +87 -8
  349. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
  350. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -3
  351. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  352. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  353. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  354. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
  355. package/src/libs/ui/inputs/src/index.ts +15 -15
  356. package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
  357. package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.ts +3 -0
  358. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  359. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  360. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  361. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  362. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -0
  363. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +14 -0
  364. package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
  365. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
  366. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
  367. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
  368. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
  369. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
  370. package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -0
  371. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  372. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  373. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +2 -1
  374. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +17 -1
  375. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +6 -22
  376. package/src/libs/ui/layout/src/index.ts +6 -4
  377. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
  378. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
  379. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
  380. package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +8 -4
  381. package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
  382. package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
  383. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  384. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  385. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  386. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
  387. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
  388. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  389. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
  390. package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
  391. package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
  392. package/tailwind.base.css +36 -0
  393. package/translations/de.json +41 -0
  394. package/translations/en.json +41 -0
  395. package/translations/es.json +41 -0
  396. package/translations/fr.json +41 -0
  397. package/translations/it.json +41 -0
  398. package/translations/nl.json +41 -0
  399. package/translations/pt.json +41 -0
  400. package/translations/sk.json +41 -0
  401. package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
  402. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  403. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  404. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  405. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  406. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  407. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  408. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  409. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  410. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  411. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  412. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  413. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
  414. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
  415. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  416. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  417. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  418. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  419. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  420. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  421. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  422. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  423. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  424. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  425. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  426. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  427. package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
  428. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  429. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  430. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  431. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  432. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  433. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  434. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
  435. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
  436. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
  437. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
  438. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
  439. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
  440. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.css} +0 -0
  441. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
  442. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
  443. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
  444. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
  445. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
  446. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  447. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
  448. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
  449. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  450. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -1,7 +1,13 @@
1
1
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
2
2
  import { createAction, props } from '@ngrx/store'
3
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
3
+ import {
4
+ CatalogRecord,
5
+ UserFeedback,
6
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
4
7
 
8
+ /*
9
+ Metadata actions
10
+ */
5
11
  export const loadFullMetadata = createAction(
6
12
  '[Metadata view] Load full metadata',
7
13
  props<{ uuid: string }>()
@@ -12,24 +18,63 @@ export const setIncompleteMetadata = createAction(
12
18
  props<{ incomplete: Partial<CatalogRecord> }>()
13
19
  )
14
20
 
15
- export const loadFullSuccess = createAction(
16
- '[Metadata view] Load full success',
21
+ export const loadFullMetadataSuccess = createAction(
22
+ '[Metadata view] Load full metadata success',
17
23
  props<{ full: CatalogRecord }>()
18
24
  )
19
25
 
20
- export const loadFullFailure = createAction(
21
- '[Metadata view] Load full failure',
26
+ export const loadFullMetadataFailure = createAction(
27
+ '[Metadata view] Load full metadata failure',
22
28
  props<{ otherError?: string; notFound?: boolean }>()
23
29
  )
24
30
 
31
+ export const closeMetadata = createAction('[Metadata view] close')
32
+
33
+ /*
34
+ Related actions
35
+ */
25
36
  export const setRelated = createAction(
26
37
  '[Metadata view] Set related records',
27
38
  props<{ related: CatalogRecord[] }>()
28
39
  )
29
40
 
41
+ /*
42
+ ChartConfig actions
43
+ */
30
44
  export const setChartConfig = createAction(
31
45
  '[Metadata view] Set chart config',
32
46
  props<{ chartConfig: DatavizConfigurationModel }>()
33
47
  )
34
48
 
35
- export const close = createAction('[Metadata view] close')
49
+ /*
50
+ User Feedbacks actions
51
+ */
52
+ export const addUserFeedback = createAction(
53
+ '[Metadata view] Add UserFeedback',
54
+ props<{ userFeedback: UserFeedback }>()
55
+ )
56
+
57
+ export const addUserFeedbackSuccess = createAction(
58
+ '[Metadata view] Add UserFeedback Success',
59
+ props<{ datasetUuid: string }>()
60
+ )
61
+
62
+ export const addUserFeedbackFailure = createAction(
63
+ '[Metadata view] Add UserFeedback Failure',
64
+ props<{ otherError?: string; notFound?: boolean }>()
65
+ )
66
+
67
+ export const loadUserFeedbacks = createAction(
68
+ '[Metadata view] Load UserFeedbacks',
69
+ props<{ datasetUuid: string }>()
70
+ )
71
+
72
+ export const loadUserFeedbacksSuccess = createAction(
73
+ '[Metadata view] Load UserFeedbacks Success',
74
+ props<{ userFeedbacks: UserFeedback[] }>()
75
+ )
76
+
77
+ export const loadUserFeedbacksFailure = createAction(
78
+ '[Metadata view] Load UserFeedbacks Failure',
79
+ props<{ otherError?: string; notFound?: boolean }>()
80
+ )
@@ -1,18 +1,23 @@
1
1
  import { Injectable } from '@angular/core'
2
2
  import { Actions, createEffect, ofType } from '@ngrx/effects'
3
- import { of } from 'rxjs'
3
+ import { exhaustMap, mergeMap, of } from 'rxjs'
4
4
  import { catchError, map, switchMap } from 'rxjs/operators'
5
5
  import * as MdViewActions from './mdview.actions'
6
6
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
7
+ import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
7
8
 
8
9
  @Injectable()
9
10
  export class MdViewEffects {
10
11
  constructor(
11
12
  private actions$: Actions,
12
- private recordsRepository: RecordsRepositoryInterface
13
+ private recordsRepository: RecordsRepositoryInterface,
14
+ private platformServiceInterface: PlatformServiceInterface
13
15
  ) {}
14
16
 
15
- loadFull$ = createEffect(() =>
17
+ /*
18
+ Metadata effects
19
+ */
20
+ loadFullMetadata$ = createEffect(() =>
16
21
  this.actions$.pipe(
17
22
  ofType(MdViewActions.loadFullMetadata),
18
23
  switchMap(({ uuid }) =>
@@ -20,19 +25,22 @@ export class MdViewEffects {
20
25
  ),
21
26
  map((record) => {
22
27
  if (record === null) {
23
- return MdViewActions.loadFullFailure({ notFound: true })
28
+ return MdViewActions.loadFullMetadataFailure({ notFound: true })
24
29
  }
25
- return MdViewActions.loadFullSuccess({ full: record })
30
+ return MdViewActions.loadFullMetadataSuccess({ full: record })
26
31
  }),
27
32
  catchError((error) =>
28
- of(MdViewActions.loadFullFailure({ otherError: error.message }))
33
+ of(MdViewActions.loadFullMetadataFailure({ otherError: error.message }))
29
34
  )
30
35
  )
31
36
  )
32
37
 
38
+ /*
39
+ Related effects
40
+ */
33
41
  loadRelatedRecords$ = createEffect(() =>
34
42
  this.actions$.pipe(
35
- ofType(MdViewActions.loadFullSuccess),
43
+ ofType(MdViewActions.loadFullMetadataSuccess),
36
44
  switchMap(({ full }) => this.recordsRepository.getSimilarRecords(full)),
37
45
  map((related) => {
38
46
  return MdViewActions.setRelated({ related })
@@ -40,4 +48,71 @@ export class MdViewEffects {
40
48
  catchError((error) => of(MdViewActions.setRelated({ related: null })))
41
49
  )
42
50
  )
51
+
52
+ /*
53
+ UserFeedback effects
54
+ */
55
+ loadUserFeedbacks$ = createEffect(() =>
56
+ this.actions$.pipe(
57
+ ofType(MdViewActions.loadUserFeedbacks),
58
+ exhaustMap(({ datasetUuid }) =>
59
+ this.platformServiceInterface.getUserFeedbacks(datasetUuid).pipe(
60
+ map((userFeedbacks) =>
61
+ MdViewActions.loadUserFeedbacksSuccess({ userFeedbacks })
62
+ ),
63
+ catchError((error) =>
64
+ of(
65
+ MdViewActions.loadUserFeedbacksFailure({
66
+ otherError: error.message,
67
+ })
68
+ )
69
+ )
70
+ )
71
+ )
72
+ )
73
+ )
74
+
75
+ reloadUserFeedbacks$ = createEffect(() =>
76
+ this.actions$.pipe(
77
+ ofType(MdViewActions.addUserFeedbackSuccess),
78
+ exhaustMap(({ datasetUuid }) =>
79
+ this.platformServiceInterface.getUserFeedbacks(datasetUuid).pipe(
80
+ map((userFeedbacks) =>
81
+ MdViewActions.loadUserFeedbacksSuccess({ userFeedbacks })
82
+ ),
83
+ catchError((error) =>
84
+ of(
85
+ MdViewActions.loadUserFeedbacksFailure({
86
+ otherError: error.message,
87
+ })
88
+ )
89
+ )
90
+ )
91
+ )
92
+ )
93
+ )
94
+
95
+ addUserFeedback$ = createEffect(() =>
96
+ this.actions$.pipe(
97
+ ofType(MdViewActions.addUserFeedback),
98
+ mergeMap((action) =>
99
+ this.platformServiceInterface
100
+ .postUserFeedbacks(action.userFeedback)
101
+ .pipe(
102
+ map(() =>
103
+ MdViewActions.addUserFeedbackSuccess({
104
+ datasetUuid: action.userFeedback.metadataUUID,
105
+ })
106
+ ),
107
+ catchError((error) => {
108
+ return of(
109
+ MdViewActions.addUserFeedbackFailure({
110
+ otherError: error.message,
111
+ })
112
+ )
113
+ })
114
+ )
115
+ )
116
+ )
117
+ )
43
118
  }
@@ -5,7 +5,11 @@ import * as MdViewActions from './mdview.actions'
5
5
  import * as MdViewSelectors from './mdview.selectors'
6
6
  import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
7
7
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
8
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
8
+ import {
9
+ CatalogRecord,
10
+ UserFeedback,
11
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
12
+ import { AvatarServiceInterface } from '../../../../../../libs/api/repository/src'
9
13
 
10
14
  @Injectable()
11
15
  /**
@@ -15,19 +19,31 @@ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/mode
15
19
  * To clear the current record use the `close()` method.
16
20
  */
17
21
  export class MdViewFacade {
22
+ constructor(
23
+ private store: Store,
24
+ private linkClassifier: LinkClassifierService,
25
+ private avatarService: AvatarServiceInterface
26
+ ) {}
27
+
18
28
  isPresent$ = this.store.pipe(
19
29
  select(MdViewSelectors.getMetadataUuid),
20
30
  map((uuid) => !!uuid)
21
31
  )
22
- isLoading$ = this.store.pipe(select(MdViewSelectors.getMetadataIsLoading))
32
+
33
+ isMetadataLoading$ = this.store.pipe(
34
+ select(MdViewSelectors.getMetadataIsLoading)
35
+ )
36
+
23
37
  metadata$ = this.store.pipe(
24
38
  select(MdViewSelectors.getMetadata),
25
39
  filter((md) => !!md)
26
40
  )
41
+
27
42
  isIncomplete$ = this.store.pipe(
28
43
  select(MdViewSelectors.getMetadataIsIncomplete),
29
44
  filter((incomplete) => incomplete !== null)
30
45
  )
46
+
31
47
  error$ = this.store.pipe(select(MdViewSelectors.getMetadataError))
32
48
 
33
49
  related$ = this.store.pipe(select(MdViewSelectors.getRelated))
@@ -37,11 +53,13 @@ export class MdViewFacade {
37
53
  allLinks$ = this.metadata$.pipe(
38
54
  map((record) => ('distributions' in record ? record.distributions : []))
39
55
  )
56
+
40
57
  apiLinks$ = this.allLinks$.pipe(
41
58
  map((links) =>
42
59
  links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API))
43
60
  )
44
61
  )
62
+
45
63
  mapApiLinks$ = this.allLinks$.pipe(
46
64
  map((links) =>
47
65
  links.filter((link) =>
@@ -49,6 +67,7 @@ export class MdViewFacade {
49
67
  )
50
68
  )
51
69
  )
70
+
52
71
  downloadLinks$ = this.allLinks$.pipe(
53
72
  map((links) =>
54
73
  links.filter((link) =>
@@ -56,11 +75,13 @@ export class MdViewFacade {
56
75
  )
57
76
  )
58
77
  )
78
+
59
79
  dataLinks$ = this.allLinks$.pipe(
60
80
  map((links) =>
61
81
  links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.DATA))
62
82
  )
63
83
  )
84
+
64
85
  geoDataLinks$ = this.allLinks$.pipe(
65
86
  map((links) =>
66
87
  links.filter((link) =>
@@ -68,9 +89,11 @@ export class MdViewFacade {
68
89
  )
69
90
  )
70
91
  )
92
+
71
93
  landingPageLinks$ = this.metadata$.pipe(
72
94
  map((record) => ('landingPage' in record ? [record.landingPage] : []))
73
95
  )
96
+
74
97
  otherLinks$ = this.allLinks$.pipe(
75
98
  map((links) =>
76
99
  links.filter((link) =>
@@ -79,10 +102,13 @@ export class MdViewFacade {
79
102
  )
80
103
  )
81
104
 
82
- constructor(
83
- private store: Store,
84
- private linkClassifier: LinkClassifierService
85
- ) {}
105
+ userFeedbacks$ = this.store.pipe(select(MdViewSelectors.getUserFeedbacks))
106
+ isAllUserFeedbackLoading$ = this.store.pipe(
107
+ select(MdViewSelectors.getAllUserFeedbacksLoading)
108
+ )
109
+ isAddUserFeedbackLoading$ = this.store.pipe(
110
+ select(MdViewSelectors.getAddUserFeedbacksLoading)
111
+ )
86
112
 
87
113
  /**
88
114
  * This will show an incomplete record (e.g. from a search result) as a preview
@@ -91,16 +117,30 @@ export class MdViewFacade {
91
117
  setIncompleteMetadata(incomplete: CatalogRecord) {
92
118
  this.store.dispatch(MdViewActions.setIncompleteMetadata({ incomplete }))
93
119
  }
120
+
94
121
  /**
95
122
  * This will trigger the load of a full metadata record
96
123
  */
97
124
  loadFull(uuid: string) {
98
125
  this.store.dispatch(MdViewActions.loadFullMetadata({ uuid }))
99
126
  }
100
- close() {
101
- this.store.dispatch(MdViewActions.close())
127
+
128
+ closeMetadata() {
129
+ this.store.dispatch(MdViewActions.closeMetadata())
102
130
  }
131
+
103
132
  setChartConfig(chartConfig: DatavizConfigurationModel) {
104
133
  this.store.dispatch(MdViewActions.setChartConfig({ chartConfig }))
105
134
  }
135
+
136
+ /**
137
+ * UserFeedbacks
138
+ */
139
+ addUserFeedback(userFeedback: UserFeedback) {
140
+ this.store.dispatch(MdViewActions.addUserFeedback({ userFeedback }))
141
+ }
142
+
143
+ loadUserFeedbacks(datasetUuid: string) {
144
+ this.store.dispatch(MdViewActions.loadUserFeedbacks({ datasetUuid }))
145
+ }
106
146
  }
@@ -1,61 +1,118 @@
1
1
  import { Action, createReducer, on } from '@ngrx/store'
2
- import * as MdViewActions from './mdview.actions'
2
+ import * as MetadataViewActions from './mdview.actions'
3
3
  import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
4
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
4
+ import {
5
+ CatalogRecord,
6
+ UserFeedback,
7
+ } from '../../../../../../libs/common/domain/src/lib/model/record'
5
8
 
6
- export const MD_VIEW_FEATURE_STATE_KEY = 'mdView'
9
+ export const METADATA_VIEW_FEATURE_STATE_KEY = 'metadataView'
7
10
 
8
- export interface MdViewState {
11
+ export interface MetadataViewState {
9
12
  loadingFull: boolean
10
13
  error: { notFound?: boolean; otherError?: string } | null
11
14
  metadata?: Partial<CatalogRecord>
12
15
  related?: CatalogRecord[]
16
+ userFeedbacks?: UserFeedback[]
17
+ allUserFeedbacksLoading: boolean
18
+ addUserFeedbackLoading: boolean
13
19
  chartConfig?: DatavizConfigurationModel
14
20
  }
15
21
 
16
- export const initialMdviewState: MdViewState = {
22
+ export const initialMetadataViewState: MetadataViewState = {
17
23
  error: null,
18
24
  loadingFull: false,
25
+ allUserFeedbacksLoading: false,
26
+ addUserFeedbackLoading: false,
19
27
  }
20
28
 
21
- const mdViewReducer = createReducer(
22
- initialMdviewState,
23
- on(MdViewActions.loadFullMetadata, (state) => ({
29
+ const metadataViewReducer = createReducer(
30
+ initialMetadataViewState,
31
+
32
+ /*
33
+ Metadata reducers
34
+ */
35
+ on(MetadataViewActions.loadFullMetadata, (state) => ({
24
36
  ...state,
25
37
  error: null,
26
38
  loadingFull: true,
27
39
  })),
28
- on(MdViewActions.setIncompleteMetadata, (state, { incomplete }) => ({
40
+ on(MetadataViewActions.setIncompleteMetadata, (state, { incomplete }) => ({
29
41
  ...state,
30
42
  error: null,
31
43
  metadata: incomplete,
32
44
  })),
33
- on(MdViewActions.loadFullSuccess, (state, { full }) => ({
45
+ on(MetadataViewActions.loadFullMetadataSuccess, (state, { full }) => ({
34
46
  ...state,
35
47
  error: null,
36
48
  metadata: full,
37
49
  loadingFull: false,
38
50
  })),
39
- on(MdViewActions.loadFullFailure, (state, { otherError, notFound }) => ({
40
- ...state,
41
- error: { otherError, notFound },
42
- loadingFull: false,
43
- })),
44
- on(MdViewActions.setRelated, (state, { related }) => ({
51
+ on(
52
+ MetadataViewActions.loadFullMetadataFailure,
53
+ (state, { otherError, notFound }) => ({
54
+ ...state,
55
+ error: { otherError, notFound },
56
+ loadingFull: false,
57
+ })
58
+ ),
59
+ on(MetadataViewActions.closeMetadata, (state) => {
60
+ const { metadata, related, userFeedbacks, ...stateWithoutMetadata } = state
61
+ return stateWithoutMetadata
62
+ }),
63
+
64
+ /*
65
+ Related reducers
66
+ */
67
+ on(MetadataViewActions.setRelated, (state, { related }) => ({
45
68
  ...state,
46
69
  related,
47
70
  })),
48
- on(MdViewActions.setChartConfig, (state, { chartConfig }) => ({
71
+
72
+ /*
73
+ ChartConfig reducers
74
+ */
75
+ on(MetadataViewActions.setChartConfig, (state, { chartConfig }) => ({
49
76
  ...state,
50
77
  chartConfig,
51
78
  })),
52
- on(MdViewActions.close, (state) => {
53
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
54
- const { metadata, related, ...stateWithoutMd } = state
55
- return stateWithoutMd
56
- })
79
+
80
+ /*
81
+ UserFeedbacks reducers
82
+ */
83
+ on(MetadataViewActions.loadUserFeedbacks, (state) => ({
84
+ ...state,
85
+ error: null,
86
+ allUserFeedbacksLoading: true,
87
+ })),
88
+ on(MetadataViewActions.addUserFeedback, (state) => ({
89
+ ...state,
90
+ addUserFeedbackLoading: true,
91
+ })),
92
+ on(
93
+ MetadataViewActions.loadUserFeedbacksSuccess,
94
+ (state, { userFeedbacks }) => ({
95
+ ...state,
96
+ error: null,
97
+ userFeedbacks: userFeedbacks,
98
+ addUserFeedbackLoading: false,
99
+ allUserFeedbacksLoading: false,
100
+ })
101
+ ),
102
+ on(
103
+ MetadataViewActions.loadUserFeedbacksFailure,
104
+ (state, { otherError, notFound }) => ({
105
+ ...state,
106
+ error: { otherError, notFound },
107
+ addUserFeedbackLoading: false,
108
+ allUserFeedbacksLoading: false,
109
+ })
110
+ )
57
111
  )
58
112
 
59
- export function reducer(state: MdViewState | undefined, action: Action) {
60
- return mdViewReducer(state, action)
113
+ export function reducer(
114
+ metadataViewState: MetadataViewState | undefined,
115
+ action: Action
116
+ ) {
117
+ return metadataViewReducer(metadataViewState, action)
61
118
  }
@@ -1,36 +1,66 @@
1
1
  import { createFeatureSelector, createSelector } from '@ngrx/store'
2
- import { MD_VIEW_FEATURE_STATE_KEY, MdViewState } from './mdview.reducer'
2
+ import {
3
+ METADATA_VIEW_FEATURE_STATE_KEY,
4
+ MetadataViewState,
5
+ } from './mdview.reducer'
3
6
 
4
- export const getMdViewState = createFeatureSelector<MdViewState>(
5
- MD_VIEW_FEATURE_STATE_KEY
7
+ export const getMdViewState = createFeatureSelector<MetadataViewState>(
8
+ METADATA_VIEW_FEATURE_STATE_KEY
6
9
  )
7
10
 
11
+ /*
12
+ Metadata selectors
13
+ */
8
14
  export const getMetadataUuid = createSelector(
9
15
  getMdViewState,
10
- (state: MdViewState) =>
16
+ (state: MetadataViewState) =>
11
17
  state.metadata ? state.metadata.uniqueIdentifier : null
12
18
  )
13
19
  export const getMetadata = createSelector(
14
20
  getMdViewState,
15
- (state: MdViewState) => state.metadata
21
+ (state: MetadataViewState) => state.metadata
16
22
  )
17
23
  export const getMetadataIsIncomplete = createSelector(
18
24
  getMdViewState,
19
- (state: MdViewState) => (state.metadata ? state.loadingFull : null)
25
+ (state: MetadataViewState) => (state.metadata ? state.loadingFull : null)
20
26
  )
21
27
  export const getMetadataIsLoading = createSelector(
22
28
  getMdViewState,
23
- (state: MdViewState) => state.loadingFull
29
+ (state: MetadataViewState) => state.loadingFull
24
30
  )
25
31
  export const getMetadataError = createSelector(
26
32
  getMdViewState,
27
- (state: MdViewState) => state.error
33
+ (state: MetadataViewState) => state.error
28
34
  )
35
+
36
+ /*
37
+ Related selectors
38
+ */
29
39
  export const getRelated = createSelector(
30
40
  getMdViewState,
31
- (state: MdViewState) => state.related
41
+ (state: MetadataViewState) => state.related
32
42
  )
43
+
44
+ /*
45
+ Metadata selectors
46
+ */
33
47
  export const getChartConfig = createSelector(
34
48
  getMdViewState,
35
- (state: MdViewState) => state.chartConfig
49
+ (state: MetadataViewState) => state.chartConfig
50
+ )
51
+
52
+ /*
53
+ UserFeedback selectors
54
+ */
55
+ export const getUserFeedbacks = createSelector(
56
+ getMdViewState,
57
+ (state: MetadataViewState) => state.userFeedbacks
58
+ )
59
+ export const getAllUserFeedbacksLoading = createSelector(
60
+ getMdViewState,
61
+ (state: MetadataViewState) => state.allUserFeedbacksLoading
62
+ )
63
+ export const getAddUserFeedbacksLoading = createSelector(
64
+ getMdViewState,
65
+ (state: MetadataViewState) => state.addUserFeedbackLoading
36
66
  )
@@ -15,7 +15,7 @@ import {
15
15
  } from '../../../../../../../libs/common/domain/src/lib/model/search'
16
16
  import { Actions, createEffect, ofType } from '@ngrx/effects'
17
17
  import { navigation } from '@ngrx/router-store/data-persistence'
18
- import { of, pairwise, startWith, withLatestFrom } from 'rxjs'
18
+ import { of, pairwise, startWith } from 'rxjs'
19
19
  import { map, mergeMap, tap } from 'rxjs/operators'
20
20
  import * as RouterActions from './router.actions'
21
21
  import { RouterFacade } from './router.facade'
@@ -141,7 +141,7 @@ export class RouterEffects {
141
141
  navigateToSearch$ = createEffect(() =>
142
142
  this._actions$.pipe(
143
143
  navigation(this.routerConfig.searchRouteComponent, {
144
- run: () => MdViewActions.close(),
144
+ run: () => MdViewActions.closeMetadata(),
145
145
  })
146
146
  )
147
147
  )
@@ -8,6 +8,7 @@ export * from './lib/state/effects'
8
8
  export * from './lib/state/reducer'
9
9
  export * from './lib/utils/service/search.service'
10
10
  export * from './lib/utils/service/fields.service'
11
+ export * from './lib/utils/service/fields'
11
12
  export * from './lib/results-list/results-list.container.component'
12
13
  export * from './lib/filter-dropdown/filter-dropdown.component'
13
14
  export * from './lib/constants'
@@ -50,20 +50,20 @@
50
50
  [title]="formats.join(', ')"
51
51
  >
52
52
  <span
53
- class="badge-btn min-w-[45px] text-sm text-white px-2 flex-shrink-0"
53
+ class="badge-btn min-w-[45px] text-sm text-white px-2 shrink-0"
54
54
  [style.background-color]="getBadgeColor(formats[0])"
55
55
  *ngIf="formats[0]"
56
56
  >
57
57
  {{ formats[0] }}
58
58
  </span>
59
59
  <span
60
- class="badge-btn min-w-[45px] text-sm text-white px-2 flex-shrink-0"
60
+ class="badge-btn min-w-[45px] text-sm text-white px-2 shrink-0"
61
61
  [style.background-color]="getBadgeColor(formats[1])"
62
62
  *ngIf="formats[1]"
63
63
  >
64
64
  {{ formats[1] }}
65
65
  </span>
66
- <div class="flex-shrink-0" *ngIf="formats.slice(2).length > 0">
66
+ <div class="shrink-0" *ngIf="formats.slice(2).length > 0">
67
67
  <span>+{{ formats.slice(2).length }}</span>
68
68
  </div>
69
69
  </div>
@@ -36,7 +36,7 @@ marker('search.filters.contact')
36
36
  providedIn: 'root',
37
37
  })
38
38
  export class FieldsService {
39
- private fields = {
39
+ protected fields = {
40
40
  publisher: new OrganizationSearchField(this.injector),
41
41
  format: new SimpleSearchField('format', this.injector, 'asc'),
42
42
  resourceType: new TranslatedSearchField(
@@ -76,7 +76,7 @@ export class FieldsService {
76
76
  return Object.keys(this.fields)
77
77
  }
78
78
 
79
- constructor(private injector: Injector) {}
79
+ constructor(protected injector: Injector) {}
80
80
 
81
81
  getAvailableValues(fieldName: string) {
82
82
  if (this.supportedFields.indexOf(fieldName) === -1)
@@ -4,7 +4,7 @@
4
4
  [title]="organisation.name"
5
5
  >
6
6
  <div
7
- class="flex-shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 h-36"
7
+ class="shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 h-36"
8
8
  >
9
9
  <gn-ui-thumbnail
10
10
  class="relative h-full w-full"
@@ -13,20 +13,20 @@
13
13
  >
14
14
  </gn-ui-thumbnail>
15
15
  </div>
16
- <div class="px-3 pb-2 capitalize flex flex-col flex-grow overflow-hidden">
16
+ <div class="px-3 pb-2 capitalize flex flex-col grow overflow-hidden">
17
17
  <span
18
- class="flex-shrink-0 mb-3 mt-5 font-title text-21 text-title group-hover:text-primary line-clamp-2 sm:mt-2 transition-colors"
18
+ class="shrink-0 mb-3 mt-5 font-title text-21 text-title group-hover:text-primary line-clamp-2 sm:mt-2 transition-colors"
19
19
  data-cy="organizationName"
20
20
  >
21
21
  {{ organisation.name }}</span
22
22
  >
23
23
  <p
24
- class="abstract mt-4 mb-5 sm:mb-2 sm:mt-0 flex-grow flex-shrink-1 overflow-hidden"
24
+ class="abstract mt-4 mb-5 sm:mb-2 sm:mt-0 grow shrink-1 overflow-hidden"
25
25
  data-cy="organizationDesc"
26
26
  >
27
27
  {{ organisation.description }}
28
28
  </p>
29
- <div class="flex-shrink-0 text-primary opacity-50 flex leading-6">
29
+ <div class="shrink-0 text-primary opacity-50 flex leading-6">
30
30
  <mat-icon class="material-symbols-outlined text-primary opacity-50 mr-1"
31
31
  >folder_open
32
32
  </mat-icon>