geonetwork-ui 2.4.0-dev.27089d81 → 2.4.0-dev.2cc6f5b1

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 (284) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +5 -5
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
  7. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +6 -1
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
  9. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +9 -5
  10. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  11. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  12. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  13. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  14. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  15. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -6
  16. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  17. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +3 -3
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +7 -2
  19. package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
  20. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
  21. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
  22. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +131 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +170 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +6 -4
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +21 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +7 -6
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +24 -9
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +1 -2
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +11 -7
  31. package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
  32. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +159 -60
  33. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
  34. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
  35. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +4 -3
  36. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  37. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
  38. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
  39. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
  40. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +6 -3
  41. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  42. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +46 -7
  43. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  44. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +7 -3
  45. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  46. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  47. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  48. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  49. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  50. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +6 -5
  51. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  52. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  53. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +7 -3
  54. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  55. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
  56. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  57. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  58. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  59. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
  60. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  61. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +28 -8
  62. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  63. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  64. package/esm2022/translations/de.json +111 -40
  65. package/esm2022/translations/en.json +86 -15
  66. package/esm2022/translations/es.json +84 -13
  67. package/esm2022/translations/fr.json +95 -24
  68. package/esm2022/translations/it.json +85 -14
  69. package/esm2022/translations/nl.json +84 -13
  70. package/esm2022/translations/pt.json +84 -13
  71. package/fesm2022/geonetwork-ui.mjs +1926 -509
  72. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  73. package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
  74. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
  75. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  76. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  77. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  78. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  79. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  80. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  81. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  82. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  83. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  84. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  85. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -1
  86. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  87. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -1
  88. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  89. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  90. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  91. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -1
  92. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  93. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -1
  94. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  95. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +17 -0
  96. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  97. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  98. package/libs/feature/catalog/src/lib/records/records.service.d.ts.map +1 -1
  99. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +5 -0
  100. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  101. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +4 -4
  102. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  103. package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
  104. package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
  105. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
  106. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  107. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
  108. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  109. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  110. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  111. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  112. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  113. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +47 -0
  114. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -0
  115. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  116. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +11 -0
  117. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  118. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +3 -1
  119. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
  120. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +7 -2
  121. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  122. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +0 -1
  123. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  124. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -7
  125. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  126. package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
  127. package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/fields.config.d.ts +40 -2
  129. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
  131. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
  132. package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
  133. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  134. package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
  135. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  136. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  137. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
  138. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  139. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
  140. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
  141. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
  142. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  143. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  144. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +14 -4
  145. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  146. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  147. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  148. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  149. package/libs/ui/elements/src/index.d.ts +1 -0
  150. package/libs/ui/elements/src/index.d.ts.map +1 -1
  151. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  152. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  153. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  154. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  155. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  156. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  157. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +4 -4
  158. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  159. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +7 -5
  160. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  161. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  162. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  163. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  164. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  165. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +9 -3
  166. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  167. package/libs/ui/widgets/src/index.d.ts +1 -0
  168. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  169. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  170. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  171. package/package.json +1 -1
  172. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  173. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  174. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  175. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
  176. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
  177. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -2
  178. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  179. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  180. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  181. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +8 -0
  182. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
  183. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +26 -15
  184. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  185. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -1
  186. package/src/libs/common/domain/src/lib/platform.service.interface.ts +5 -1
  187. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
  188. package/src/libs/common/fixtures/src/index.ts +2 -0
  189. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
  190. package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
  191. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
  192. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
  193. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  194. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  195. package/src/libs/feature/catalog/src/lib/records/records.service.ts +6 -8
  196. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +5 -0
  197. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +2 -2
  198. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +9 -1
  199. package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
  200. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
  201. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
  202. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  203. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  204. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  205. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  206. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +110 -19
  207. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +0 -0
  208. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +76 -0
  209. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +271 -0
  210. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +1 -1
  211. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +8 -6
  212. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  213. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  214. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +22 -0
  215. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +8 -7
  216. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +20 -9
  217. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +20 -2
  218. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
  219. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +51 -11
  220. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +15 -8
  221. package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
  222. package/src/libs/feature/editor/src/lib/fields.config.ts +193 -61
  223. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
  224. package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
  225. package/src/libs/feature/editor/src/lib/services/editor.service.ts +8 -4
  226. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  227. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
  228. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
  229. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
  230. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
  231. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +6 -2
  232. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  233. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
  234. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +57 -3
  235. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  236. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +16 -2
  237. package/src/libs/ui/elements/src/index.ts +1 -0
  238. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +29 -29
  239. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  240. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  241. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  242. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  243. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  244. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  245. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  246. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  247. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  248. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -1
  249. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +8 -4
  250. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +4 -2
  251. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
  252. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  253. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
  254. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
  255. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
  256. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  257. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  258. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -0
  259. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  260. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  261. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  262. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +15 -1
  263. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
  264. package/src/libs/ui/widgets/src/index.ts +1 -0
  265. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  266. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  267. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  268. package/tailwind.base.css +2 -1
  269. package/translations/de.json +111 -40
  270. package/translations/en.json +86 -15
  271. package/translations/es.json +84 -13
  272. package/translations/fr.json +95 -24
  273. package/translations/it.json +85 -14
  274. package/translations/nl.json +84 -13
  275. package/translations/pt.json +84 -13
  276. package/translations/sk.json +85 -14
  277. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
  278. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
  279. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
  280. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
  281. package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
  282. package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
  283. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
  284. package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
@@ -25,8 +25,12 @@ export class EditorFacade {
25
25
  changedSinceSave$ = this.store.pipe(
26
26
  select(EditorSelectors.selectRecordChangedSinceSave)
27
27
  )
28
- recordFields$ = this.store.pipe(select(EditorSelectors.selectRecordFields))
28
+ currentSections$ = this.store.pipe(
29
+ select(EditorSelectors.selectRecordSections)
30
+ )
29
31
  draftSaveSuccess$ = this.actions$.pipe(ofType(EditorActions.draftSaveSuccess))
32
+ currentPage$ = this.store.pipe(select(EditorSelectors.selectCurrentPage))
33
+ editorConfig$ = this.store.pipe(select(EditorSelectors.selectEditorConfig))
30
34
 
31
35
  openRecord(
32
36
  record: CatalogRecord,
@@ -45,4 +49,8 @@ export class EditorFacade {
45
49
  updateRecordField(field: string, value: unknown) {
46
50
  this.store.dispatch(EditorActions.updateRecordField({ field, value }))
47
51
  }
52
+
53
+ setCurrentPage(page: number) {
54
+ this.store.dispatch(EditorActions.setCurrentPage({ page }))
55
+ }
48
56
  }
@@ -1 +1,12 @@
1
+ import { EditorField, EditorFieldValue, EditorSection } from '../models'
2
+
1
3
  export type SaveRecordError = string
4
+
5
+ export interface EditorFieldWithValue {
6
+ config: EditorField
7
+ value: EditorFieldValue
8
+ }
9
+
10
+ export type EditorSectionWithValues = EditorSection & {
11
+ fieldsWithValues: EditorFieldWithValue[]
12
+ }
@@ -2,8 +2,8 @@ import { Action, createReducer, on } from '@ngrx/store'
2
2
  import * as EditorActions from './editor.actions'
3
3
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
4
4
  import { SaveRecordError } from './editor.models'
5
- import { EditorFieldsConfig } from '../models/fields.model'
6
- import { DEFAULT_FIELDS } from '../fields.config'
5
+ import { EditorConfig } from '../models'
6
+ import { DEFAULT_CONFIGURATION } from '../fields.config'
7
7
 
8
8
  export const EDITOR_FEATURE_KEY = 'editor'
9
9
 
@@ -13,7 +13,7 @@ export const EDITOR_FEATURE_KEY = 'editor'
13
13
  * @property saving
14
14
  * @property saveError
15
15
  * @property changedSinceSave
16
- * @property fieldsConfig Configuration for the fields in the editor
16
+ * @property editorConfig Configuration for the fields in the editor
17
17
  */
18
18
  export interface EditorState {
19
19
  record: CatalogRecord | null
@@ -22,7 +22,8 @@ export interface EditorState {
22
22
  saving: boolean
23
23
  saveError: SaveRecordError | null
24
24
  changedSinceSave: boolean
25
- fieldsConfig: EditorFieldsConfig
25
+ editorConfig: EditorConfig
26
+ currentPage: number
26
27
  }
27
28
 
28
29
  export interface EditorPartialState {
@@ -36,7 +37,8 @@ export const initialEditorState: EditorState = {
36
37
  saving: false,
37
38
  saveError: null,
38
39
  changedSinceSave: false,
39
- fieldsConfig: DEFAULT_FIELDS,
40
+ editorConfig: DEFAULT_CONFIGURATION,
41
+ currentPage: 0,
40
42
  }
41
43
 
42
44
  const reducer = createReducer(
@@ -77,6 +79,10 @@ const reducer = createReducer(
77
79
  on(EditorActions.markRecordAsChanged, (state) => ({
78
80
  ...state,
79
81
  changedSinceSave: true,
82
+ })),
83
+ on(EditorActions.setCurrentPage, (state, { page }) => ({
84
+ ...state,
85
+ currentPage: page,
80
86
  }))
81
87
  )
82
88
 
@@ -1,5 +1,6 @@
1
1
  import { createFeatureSelector, createSelector } from '@ngrx/store'
2
2
  import { EDITOR_FEATURE_KEY, EditorState } from './editor.reducer'
3
+ import { EditorSectionWithValues } from './editor.models'
3
4
 
4
5
  export const selectEditorState =
5
6
  createFeatureSelector<EditorState>(EDITOR_FEATURE_KEY)
@@ -34,16 +35,29 @@ export const selectRecordAlreadySavedOnce = createSelector(
34
35
  (state: EditorState) => state.alreadySavedOnce
35
36
  )
36
37
 
37
- export const selectRecordFieldsConfig = createSelector(
38
+ export const selectEditorConfig = createSelector(
38
39
  selectEditorState,
39
- (state: EditorState) => state.fieldsConfig
40
+ (state: EditorState) => state.editorConfig
40
41
  )
41
42
 
42
- export const selectRecordFields = createSelector(
43
+ export const selectCurrentPage = createSelector(
43
44
  selectEditorState,
44
- (state: EditorState) =>
45
- state.fieldsConfig.map((fieldConfig) => ({
46
- config: fieldConfig,
47
- value: state.record?.[fieldConfig.model] ?? null,
48
- }))
45
+ (state: EditorState) => state.currentPage
46
+ )
47
+
48
+ export const selectRecordSections = createSelector(
49
+ selectEditorState,
50
+ (state: EditorState) => {
51
+ const currentPage = state.editorConfig.pages[state.currentPage]
52
+ if (!currentPage) {
53
+ return [] as EditorSectionWithValues[]
54
+ }
55
+ return currentPage.sections.map((section) => ({
56
+ ...section,
57
+ fieldsWithValues: section.fields.map((fieldConfig) => ({
58
+ config: fieldConfig,
59
+ value: state.record?.[fieldConfig.model] ?? null,
60
+ })),
61
+ })) as EditorSectionWithValues[]
62
+ }
49
63
  )
@@ -0,0 +1,25 @@
1
+ <div class="flex flex-row gap-4 items-center">
2
+ <div class="flex flex-row border border-gray-200 rounded-xl p-4 gap-4 w-full">
3
+ <gn-ui-thumbnail
4
+ class="w-[56px] h-[56px] rounded-[4px]"
5
+ [thumbnailUrl]="contact.organization.logoUrl?.href"
6
+ [fit]="'contain'"
7
+ ></gn-ui-thumbnail>
8
+ <div class="flex flex-col w-full">
9
+ <div class="flex flex-row justify-between">
10
+ <span class="flex flex-wrap font-bold w-full"
11
+ >{{ contact.firstName }} {{ contact.lastName }}</span
12
+ >
13
+ </div>
14
+ <div>{{ contact.email }}</div>
15
+ </div>
16
+ </div>
17
+ <gn-ui-button
18
+ *ngIf="removable"
19
+ data-test="removeContactButton"
20
+ type="light"
21
+ extraClass="w-[20px] h-[20px] flex items-center justify-center"
22
+ (buttonClick)="removeContact(contact)"
23
+ ><span class="material-symbols-outlined"> close </span>
24
+ </gn-ui-button>
25
+ </div>
@@ -0,0 +1,30 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ } from '@angular/core'
8
+ import { Individual } from '../../../../../../../libs/common/domain/src/lib/model/record'
9
+ import { MatIconModule } from '@angular/material/icon'
10
+ import { CommonModule } from '@angular/common'
11
+ import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
12
+ import { ThumbnailComponent } from '../../../../../../../libs/ui/elements/src'
13
+
14
+ @Component({
15
+ selector: 'gn-ui-contact-card',
16
+ templateUrl: './contact-card.component.html',
17
+ styleUrls: ['./contact-card.component.css'],
18
+ changeDetection: ChangeDetectionStrategy.OnPush,
19
+ standalone: true,
20
+ imports: [CommonModule, MatIconModule, ButtonComponent, ThumbnailComponent],
21
+ })
22
+ export class ContactCardComponent {
23
+ @Input() contact: Individual
24
+ @Input() removable = true
25
+ @Output() contactRemoved = new EventEmitter<Individual>()
26
+
27
+ removeContact(contact: Individual) {
28
+ this.contactRemoved.emit(contact)
29
+ }
30
+ }
@@ -1,8 +1,9 @@
1
1
  <gn-ui-image-input
2
2
  [maxSizeMB]="5"
3
3
  [previewUrl]="resourceUrl"
4
- [altText]="resourceFileName"
4
+ [altText]="resourceAltText"
5
5
  (fileChange)="handleFileChange($event)"
6
6
  (urlChange)="handleUrlChange($event)"
7
+ (altTextChange)="handleAltTextChange($event)"
7
8
  (delete)="handleDelete()"
8
9
  ></gn-ui-image-input>
@@ -2,12 +2,18 @@ import {
2
2
  ChangeDetectionStrategy,
3
3
  ChangeDetectorRef,
4
4
  Component,
5
+ EventEmitter,
5
6
  Input,
7
+ OnChanges,
6
8
  OnInit,
9
+ Output,
10
+ SimpleChanges,
7
11
  } from '@angular/core'
8
12
  import { CommonModule } from '@angular/common'
9
13
  import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src'
10
14
  import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
15
+ import { FormControl } from '@angular/forms'
16
+ import { GraphicOverview } from '../../../../../../../libs/common/domain/src/lib/model/record'
11
17
 
12
18
  @Component({
13
19
  selector: 'gn-ui-overview-upload',
@@ -17,9 +23,13 @@ import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
17
23
  styleUrls: ['./overview-upload.component.css'],
18
24
  changeDetection: ChangeDetectionStrategy.OnPush,
19
25
  })
20
- export class OverviewUploadComponent implements OnInit {
26
+ export class OverviewUploadComponent implements OnInit, OnChanges {
21
27
  @Input() metadataUuid: string
28
+ @Input() formControl!: FormControl
29
+ @Output() overviewChange = new EventEmitter<GraphicOverview | null>()
30
+ @Output() altTextChange: EventEmitter<string> = new EventEmitter()
22
31
 
32
+ resourceAltText: string
23
33
  resourceFileName: string
24
34
  resourceUrl: string
25
35
 
@@ -29,42 +39,123 @@ export class OverviewUploadComponent implements OnInit {
29
39
  ) {}
30
40
 
31
41
  ngOnInit(): void {
32
- this.recordsApiService
33
- .getAllResources(this.metadataUuid)
34
- .subscribe((resources) => {
35
- this.resourceFileName = resources[0]?.filename
36
- this.resourceUrl = resources[0]?.url
42
+ this.recordsApiService.getAllResources(this.metadataUuid).subscribe({
43
+ next: (resources) => {
44
+ if (resources && resources.length > 0) {
45
+ this.resourceUrl = resources[0].url
46
+ this.resourceFileName = resources[0].filename
47
+ if (!this.resourceAltText) {
48
+ this.resourceAltText = this.resourceFileName
49
+ }
50
+ } else {
51
+ this.resourceUrl = ''
52
+ this.resourceAltText = ''
53
+ this.resourceFileName = ''
54
+ }
55
+
37
56
  this.cd.markForCheck()
38
- })
57
+ },
58
+ error: this.errorHandle,
59
+ })
39
60
  }
40
61
 
41
62
  handleFileChange(file: File) {
42
63
  this.recordsApiService
43
64
  .putResource(this.metadataUuid, file, 'public')
44
- .subscribe((resource) => {
45
- this.resourceFileName = resource.filename
46
- this.resourceUrl = resource.url
47
- this.cd.markForCheck()
65
+ .subscribe({
66
+ next: (resource) => {
67
+ this.resourceUrl = resource.url
68
+ this.resourceAltText = resource.filename
69
+
70
+ this.overviewChange.emit({
71
+ url: new URL(resource.url),
72
+ description: resource.filename,
73
+ })
74
+
75
+ this.cd.markForCheck()
76
+ },
77
+ error: this.errorHandle,
48
78
  })
49
79
  }
50
80
 
51
81
  handleUrlChange(url: string) {
52
82
  this.recordsApiService
53
83
  .putResourceFromURL(this.metadataUuid, url, 'public')
54
- .subscribe((resource) => {
55
- this.resourceFileName = resource.filename
56
- this.resourceUrl = resource.url
57
- this.cd.markForCheck()
84
+ .subscribe({
85
+ next: (resource) => {
86
+ this.resourceUrl = resource.url
87
+ this.resourceAltText = resource.filename
88
+
89
+ this.overviewChange.emit({
90
+ url: new URL(resource.url),
91
+ description: resource.filename,
92
+ })
93
+
94
+ this.cd.markForCheck()
95
+ },
96
+ error: this.errorHandle,
58
97
  })
59
98
  }
60
99
 
100
+ handleAltTextChange(newAltText: string) {
101
+ this.resourceAltText = newAltText
102
+
103
+ this.overviewChange.emit({
104
+ url: new URL(this.resourceUrl),
105
+ description: this.resourceAltText,
106
+ })
107
+
108
+ this.cd.markForCheck()
109
+ }
110
+
61
111
  handleDelete() {
112
+ //this.formControl.markAsDirty()
62
113
  this.recordsApiService
63
114
  .delResource(this.metadataUuid, this.resourceFileName)
64
- .subscribe(() => {
65
- this.resourceFileName = null
66
- this.resourceUrl = null
67
- this.cd.markForCheck()
115
+ .subscribe({
116
+ next: () => {
117
+ this.resourceAltText = ''
118
+ this.resourceUrl = ''
119
+
120
+ this.overviewChange.emit(null)
121
+
122
+ this.cd.markForCheck()
123
+ },
124
+ error: this.errorHandle,
68
125
  })
69
126
  }
127
+
128
+ private errorHandle = (error: never) => {
129
+ console.error(error)
130
+
131
+ this.resourceUrl = ''
132
+ this.resourceAltText = ''
133
+ this.resourceFileName = ''
134
+
135
+ this.overviewChange.emit(null)
136
+
137
+ this.cd.markForCheck()
138
+ }
139
+
140
+ ngOnChanges(changes: SimpleChanges): void {
141
+ const overviewChanges = changes['formControl']
142
+ if (
143
+ overviewChanges &&
144
+ overviewChanges.currentValue !== overviewChanges.previousValue
145
+ ) {
146
+ let overview: GraphicOverview
147
+ if (
148
+ overviewChanges.currentValue.value &&
149
+ overviewChanges.currentValue.value.length > 0
150
+ ) {
151
+ overview = overviewChanges.currentValue.value[0] as GraphicOverview
152
+ } else {
153
+ return
154
+ }
155
+ if (overview.description) {
156
+ this.resourceAltText = overview.description
157
+ this.cd.markForCheck()
158
+ }
159
+ }
160
+ }
70
161
  }
@@ -0,0 +1,76 @@
1
+ <div class="flex flex-col gap-3">
2
+ <div class="flex flex-row flex-wrap gap-2" data-test="rolesToPick">
3
+ <ng-container *ngFor="let role of rolesToPick">
4
+ <gn-ui-button
5
+ extraClass="px-2 py-1.5"
6
+ (buttonClick)="addRoleToDisplay(role)"
7
+ >
8
+ <div class="flex flex-row gap-1 items-center">
9
+ <span class="text-primary text-[20px] leading-[0] font-bold pb-[5px]"
10
+ >&#8330;</span
11
+ >
12
+ <span class="font-bold" translate>{{ roleToLabel(role) }}</span>
13
+ </div>
14
+ </gn-ui-button>
15
+ </ng-container>
16
+ </div>
17
+ <div
18
+ class="mt-8"
19
+ *ngIf="
20
+ roleSectionsToDisplay && roleSectionsToDisplay.length > 0;
21
+ else noContact
22
+ "
23
+ data-test="displayedRoles"
24
+ >
25
+ <div
26
+ *ngFor="
27
+ let role of roleSectionsToDisplay;
28
+ let index = index;
29
+ let isLast = last
30
+ "
31
+ class="flex flex-col gap-4"
32
+ >
33
+ <div class="flex flex-row justify-between">
34
+ <span class="font-bold text-base" translate>{{
35
+ roleToLabel(role)
36
+ }}</span>
37
+ </div>
38
+
39
+ <gn-ui-autocomplete
40
+ [placeholder]="'Choose a contact'"
41
+ [action]="autoCompleteAction"
42
+ (itemSelected)="addContact($event, role)"
43
+ [displayWithFn]="displayWithFn"
44
+ [minCharacterCount]="1"
45
+ [clearOnSelection]="true"
46
+ >
47
+ </gn-ui-autocomplete>
48
+
49
+ <ng-container *ngIf="contactsForRessourceByRole.get(role) as contacts">
50
+ <ng-container *ngIf="contacts.length > 1">
51
+ <gn-ui-sortable-list
52
+ [elements]="contactsAsDynElemByRole.get(role)"
53
+ (elementsChange)="handleContactsChanged($event)"
54
+ ></gn-ui-sortable-list>
55
+ </ng-container>
56
+ <ng-container *ngIf="contacts.length === 1">
57
+ <ng-container *ngFor="let contact of contacts">
58
+ <gn-ui-contact-card
59
+ [contact]="contact"
60
+ (contactRemoved)="removeContact(index)"
61
+ ></gn-ui-contact-card> </ng-container
62
+ ></ng-container>
63
+ </ng-container>
64
+
65
+ <hr class="border-t-[#D6D3D1] mt-4 mb-6" *ngIf="!isLast" />
66
+ </div>
67
+ </div>
68
+ <ng-template #noContact>
69
+ <div
70
+ class="p-4 border border-primary bg-primary-lightest rounded-lg"
71
+ translate
72
+ >
73
+ editor.record.form.field.contactsForResource.noContact
74
+ </div>
75
+ </ng-template>
76
+ </div>