geonetwork-ui 2.4.0-dev.71a43b38 → 2.4.0-dev.7a893adc

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 (395) 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/keywords.model.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -5
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
  8. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  9. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
  10. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
  11. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +11 -1
  12. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  13. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  14. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  15. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  16. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  17. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +3 -1
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +8 -3
  19. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +10 -2
  20. package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
  21. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
  22. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
  23. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  24. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +96 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +164 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -41
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +28 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +49 -52
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +37 -43
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +1 -2
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +13 -7
  41. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  42. package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
  43. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  44. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +175 -59
  45. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
  46. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
  47. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -3
  48. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  49. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
  50. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  51. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  52. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  53. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  54. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  55. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  56. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  57. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  58. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +46 -7
  59. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  60. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  61. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  62. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  63. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  64. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  65. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  66. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  67. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  68. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +6 -10
  69. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  70. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
  71. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  72. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  73. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  74. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
  75. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  76. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
  77. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  78. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  79. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  80. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  81. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  82. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  83. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  84. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +28 -8
  85. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  86. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  87. package/esm2022/translations/de.json +82 -10
  88. package/esm2022/translations/en.json +82 -10
  89. package/esm2022/translations/es.json +81 -9
  90. package/esm2022/translations/fr.json +93 -21
  91. package/esm2022/translations/it.json +82 -10
  92. package/esm2022/translations/nl.json +81 -9
  93. package/esm2022/translations/pt.json +81 -9
  94. package/fesm2022/geonetwork-ui.mjs +4986 -3331
  95. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  96. package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
  97. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  98. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  99. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
  100. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  101. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  102. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  103. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  104. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  105. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  106. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  107. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  108. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  109. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  110. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -1
  111. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  112. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  113. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +1 -0
  114. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  115. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  116. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  117. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +3 -1
  118. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  119. package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
  120. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  121. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +17 -0
  122. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  123. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  124. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +6 -0
  125. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  126. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  127. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +5 -4
  129. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
  131. package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
  132. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
  133. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  134. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
  135. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  136. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  137. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  138. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  139. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  140. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  141. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  142. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +44 -0
  143. 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
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
  145. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  146. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  147. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  149. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -0
  150. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +1 -0
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +13 -0
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  154. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  155. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -1
  156. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  157. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  160. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  162. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +15 -15
  163. 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
  164. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  165. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
  166. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +16 -20
  167. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  168. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +0 -1
  169. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  170. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +6 -7
  171. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  172. package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
  173. package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
  174. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  175. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  176. package/libs/feature/editor/src/lib/fields.config.d.ts +46 -2
  177. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  178. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
  179. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
  180. package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
  181. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  182. package/libs/feature/editor/src/lib/services/editor.service.d.ts +3 -2
  183. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  184. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  185. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  186. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
  187. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  188. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  189. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  190. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  191. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  192. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  193. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  194. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  195. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  196. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  197. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  198. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  199. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  200. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  201. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +14 -4
  202. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  203. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  204. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  205. package/libs/ui/elements/src/index.d.ts +1 -0
  206. package/libs/ui/elements/src/index.d.ts.map +1 -1
  207. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  208. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  209. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  210. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  211. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  212. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  213. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +5 -10
  214. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  215. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  216. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  217. package/libs/ui/inputs/src/index.d.ts +1 -0
  218. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  219. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  220. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  221. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  222. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  223. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
  224. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  225. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
  226. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  227. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  228. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  229. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  230. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  231. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  232. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  233. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  234. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  235. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  236. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  237. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +9 -3
  238. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  239. package/libs/ui/widgets/src/index.d.ts +1 -0
  240. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  241. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  242. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  243. package/package.json +1 -1
  244. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -1
  245. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  246. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  247. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  248. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
  249. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  250. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
  251. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +6 -2
  252. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  253. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  254. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  255. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  256. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
  257. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
  258. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +43 -12
  259. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  260. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  261. package/src/libs/common/domain/src/lib/platform.service.interface.ts +4 -0
  262. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
  263. package/src/libs/common/fixtures/src/index.ts +2 -0
  264. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
  265. package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
  266. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  267. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  268. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +7 -0
  269. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +17 -2
  270. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +13 -1
  271. package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
  272. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
  273. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
  274. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  275. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  276. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  277. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css +0 -0
  278. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  279. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  280. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  281. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +74 -31
  282. 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
  283. 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
  284. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +249 -0
  285. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
  286. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -51
  287. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  288. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
  289. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  290. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  291. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  292. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  293. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  294. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  295. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  296. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +33 -0
  297. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
  304. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
  305. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +9 -2
  306. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +59 -70
  307. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  308. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +105 -70
  309. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +44 -43
  310. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
  311. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +52 -11
  312. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +19 -7
  313. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  314. package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
  315. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  316. package/src/libs/feature/editor/src/lib/fields.config.ts +211 -60
  317. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
  318. package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
  319. package/src/libs/feature/editor/src/lib/services/editor.service.ts +15 -4
  320. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  321. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  322. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  323. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  324. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  325. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  326. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  327. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  328. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  329. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  330. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  331. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  332. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  333. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
  334. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +57 -3
  335. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  336. package/src/libs/ui/elements/src/index.ts +1 -0
  337. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  338. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  339. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  340. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  341. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  342. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  343. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  344. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  345. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  346. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  347. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -10
  348. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +7 -7
  349. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  350. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
  351. package/src/libs/ui/inputs/src/index.ts +1 -0
  352. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  353. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  354. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  355. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  356. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
  357. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
  358. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
  359. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  360. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
  361. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  362. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  363. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  364. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  365. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  366. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  367. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  368. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  369. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  370. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  371. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  372. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  373. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +15 -1
  374. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +26 -12
  375. package/src/libs/ui/widgets/src/index.ts +1 -0
  376. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  377. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  378. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  379. package/tailwind.base.css +18 -5
  380. package/translations/de.json +82 -10
  381. package/translations/en.json +82 -10
  382. package/translations/es.json +81 -9
  383. package/translations/fr.json +93 -21
  384. package/translations/it.json +82 -10
  385. package/translations/nl.json +81 -9
  386. package/translations/pt.json +81 -9
  387. package/translations/sk.json +82 -10
  388. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
  389. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
  390. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
  391. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
  392. package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
  393. package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
  394. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
  395. package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
@@ -11,3 +11,5 @@ export * from './lib/records.fixtures'
11
11
  export * from './lib/repository.fixtures'
12
12
  export * from './lib/user.fixtures'
13
13
  export * from './lib/user-feedbacks.fixtures'
14
+
15
+ export * from './lib/editor'
@@ -0,0 +1,156 @@
1
+ export const EDITOR_CONFIG = () => ({
2
+ pages: [
3
+ {
4
+ labelKey: 'Resource description',
5
+ sections: [EDITOR_SECTION_ABOUT()],
6
+ },
7
+ {
8
+ labelKey: 'Resources',
9
+ sections: [EDITOR_SECTION_CLASSIFICATION()],
10
+ },
11
+ {
12
+ labelKey: 'Access and contact',
13
+ sections: [
14
+ EDITOR_SECTION_USE_AND_ACCESS_CONDITIONS(),
15
+ EDITOR_SECTION_DATA_MANAGER(),
16
+ ],
17
+ },
18
+ ],
19
+ })
20
+
21
+ export const EDITOR_SECTION_ABOUT = () => ({
22
+ labelKey: 'About the resource',
23
+ descriptionKey: 'This section describes the resource.',
24
+ hidden: false,
25
+ fields: [
26
+ EDITOR_FIELD_TITLE(),
27
+ EDITOR_FIELD_ABSTRACT(),
28
+ EDITOR_FIELD_RESOURCE_UPDATED(),
29
+ EDITOR_FIELD_RECORD_UPDATED(),
30
+ EDITOR_FIELD_UPDATE_FREQUENCY(),
31
+ EDITOR_FIELD_TEMPORAL_EXTENTS(),
32
+ ],
33
+ })
34
+
35
+ export const EDITOR_SECTION_DATA_MANAGER = () => ({
36
+ labelKey: 'Data manager',
37
+ descriptionKey: '',
38
+ hidden: false,
39
+ fields: [],
40
+ })
41
+
42
+ export const EDITOR_SECTION_USE_AND_ACCESS_CONDITIONS = () => ({
43
+ labelKey: 'Data manager',
44
+ descriptionKey: '',
45
+ hidden: false,
46
+ fields: [EDITOR_FIELD_LICENSE()],
47
+ })
48
+
49
+ export const EDITOR_SECTION_CLASSIFICATION = () => ({
50
+ labelKey: 'Classification',
51
+ descriptionKey: 'The classification has an impact on the access to the data.',
52
+ hidden: false,
53
+ fields: [EDITOR_FIELD_KEYWORDS(), EDITOR_FIELD_UNIQUE_IDENTIFIER()],
54
+ })
55
+
56
+ export const EDITOR_FIELD_TITLE = () => ({
57
+ model: 'title',
58
+ hidden: false,
59
+ value: 'Accroches vélos MEL',
60
+ formFieldConfig: {
61
+ labelKey: 'editor.record.form.field.title',
62
+ },
63
+ })
64
+
65
+ export const EDITOR_FIELD_ABSTRACT = () => ({
66
+ model: 'abstract',
67
+ hidden: false,
68
+ value: 'Abstract',
69
+ formFieldConfig: {
70
+ labelKey: 'editor.record.form.field.abstract',
71
+ },
72
+ })
73
+
74
+ export const EDITOR_FIELD_RESOURCE_UPDATED = () => ({
75
+ model: 'resourceUpdated',
76
+ hidden: false,
77
+ formFieldConfig: {
78
+ labelKey: 'editor.record.form.field.resourceUpdated',
79
+ },
80
+ })
81
+
82
+ export const EDITOR_FIELD_RECORD_UPDATED = () => ({
83
+ model: 'recordUpdated',
84
+ hidden: false,
85
+ formFieldConfig: {
86
+ labelKey: 'editor.record.form.field.recordUpdated',
87
+ locked: true,
88
+ },
89
+ value: '2024-07-16T05:18:53.000Z',
90
+ onSaveProcess: '${dateNow()}',
91
+ })
92
+
93
+ export const EDITOR_FIELD_UPDATE_FREQUENCY = () => ({
94
+ model: 'updateFrequency',
95
+ hidden: false,
96
+ formFieldConfig: {
97
+ labelKey: 'editor.record.form.field.updateFrequency',
98
+ },
99
+ value: 'unknown',
100
+ })
101
+
102
+ export const EDITOR_FIELD_TEMPORAL_EXTENTS = () => ({
103
+ model: 'temporalExtents',
104
+ hidden: false,
105
+ formFieldConfig: {
106
+ labelKey: 'editor.record.form.field.temporalExtents',
107
+ },
108
+ value: [],
109
+ })
110
+
111
+ export const EDITOR_FIELD_SPATIAL_EXTENTS = () => ({
112
+ model: 'spatialExtents',
113
+ hidden: false,
114
+ formFieldConfig: {
115
+ labelKey: 'editor.record.form.field.spatialExtents',
116
+ },
117
+ })
118
+
119
+ export const EDITOR_FIELD_KEYWORDS = () => ({
120
+ model: 'keywords',
121
+ hidden: false,
122
+ formFieldConfig: {
123
+ labelKey: 'editor.record.form.field.keywords',
124
+ },
125
+ })
126
+
127
+ export const EDITOR_FIELD_UNIQUE_IDENTIFIER = () => ({
128
+ model: 'uniqueIdentifier',
129
+ hidden: false,
130
+ formFieldConfig: {
131
+ labelKey: 'editor.record.form.field.uniqueIdentifier',
132
+ locked: true,
133
+ },
134
+ value: 'accroche_velos',
135
+ })
136
+
137
+ export const EDITOR_FIELD_LICENSE = () => ({
138
+ model: 'licenses',
139
+ hidden: false,
140
+ formFieldConfig: {
141
+ labelKey: 'editor.record.form.field.license',
142
+ locked: true,
143
+ },
144
+ })
145
+
146
+ export const EDITOR_FIELDS = () => [
147
+ EDITOR_FIELD_TITLE(),
148
+ EDITOR_FIELD_ABSTRACT(),
149
+ EDITOR_FIELD_RESOURCE_UPDATED(),
150
+ EDITOR_FIELD_RECORD_UPDATED(),
151
+ EDITOR_FIELD_UPDATE_FREQUENCY(),
152
+ EDITOR_FIELD_TEMPORAL_EXTENTS(),
153
+ EDITOR_FIELD_SPATIAL_EXTENTS(),
154
+ EDITOR_FIELD_KEYWORDS(),
155
+ EDITOR_FIELD_UNIQUE_IDENTIFIER(),
156
+ ]
@@ -0,0 +1 @@
1
+ export * from './editor.fixtures'
@@ -7201,11 +7201,7 @@ export class RecordsApiService {
7201
7201
  }
7202
7202
 
7203
7203
  // to determine the Content-Type header
7204
- const consumes: string[] = [
7205
- 'application/xml',
7206
- 'application/json',
7207
- 'application/x-www-form-urlencoded',
7208
- ]
7204
+ const consumes: string[] = ['application/xml']
7209
7205
  const httpContentTypeSelected: string | undefined =
7210
7206
  this.configuration.selectHeaderContentType(consumes)
7211
7207
  if (httpContentTypeSelected !== undefined) {
@@ -1832,14 +1832,6 @@ paths:
1832
1832
  schema:
1833
1833
  type: string
1834
1834
  description: XML fragment.
1835
- application/json:
1836
- schema:
1837
- type: string
1838
- description: XML fragment.
1839
- application/x-www-form-urlencoded:
1840
- schema:
1841
- type: string
1842
- description: XML fragment.
1843
1835
  responses:
1844
1836
  default:
1845
1837
  description: default response
@@ -28,3 +28,10 @@ export const saveRecordFailure = createAction(
28
28
  )
29
29
 
30
30
  export const draftSaveSuccess = createAction('[Editor] Draft save success')
31
+
32
+ export const undoRecordDraft = createAction('[Editor] Undo record draft')
33
+
34
+ export const setCurrentPage = createAction(
35
+ '[Editor] Set current page',
36
+ props<{ page: number }>()
37
+ )
@@ -6,9 +6,9 @@ import * as EditorActions from './editor.actions'
6
6
  import { EditorService } from '../services/editor.service'
7
7
  import { Store } from '@ngrx/store'
8
8
  import {
9
+ selectEditorConfig,
9
10
  selectRecord,
10
11
  selectRecordAlreadySavedOnce,
11
- selectRecordFieldsConfig,
12
12
  } from './editor.selectors'
13
13
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
14
14
 
@@ -24,7 +24,7 @@ export class EditorEffects {
24
24
  ofType(EditorActions.saveRecord),
25
25
  withLatestFrom(
26
26
  this.store.select(selectRecord),
27
- this.store.select(selectRecordFieldsConfig),
27
+ this.store.select(selectEditorConfig),
28
28
  this.store.select(selectRecordAlreadySavedOnce)
29
29
  ),
30
30
  switchMap(([, record, fieldsConfig, alreadySavedOnce]) =>
@@ -70,6 +70,21 @@ export class EditorEffects {
70
70
  )
71
71
  )
72
72
 
73
+ undoRecordDraft$ = createEffect(() =>
74
+ this.actions$.pipe(
75
+ ofType(EditorActions.undoRecordDraft),
76
+ withLatestFrom(this.store.select(selectRecord)),
77
+ switchMap(([, record]) => this.editorService.undoRecordDraft(record)),
78
+ map(([record, recordSource, alreadySavedOnce]) =>
79
+ EditorActions.openRecord({
80
+ record,
81
+ alreadySavedOnce,
82
+ recordSource,
83
+ })
84
+ )
85
+ )
86
+ )
87
+
73
88
  checkHasChangesOnOpen$ = createEffect(() =>
74
89
  this.actions$.pipe(
75
90
  ofType(EditorActions.openRecord),
@@ -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,
@@ -42,7 +46,15 @@ export class EditorFacade {
42
46
  this.store.dispatch(EditorActions.saveRecord())
43
47
  }
44
48
 
49
+ undoRecordDraft() {
50
+ this.store.dispatch(EditorActions.undoRecordDraft())
51
+ }
52
+
45
53
  updateRecordField(field: string, value: unknown) {
46
54
  this.store.dispatch(EditorActions.updateRecordField({ field, value }))
47
55
  }
56
+
57
+ setCurrentPage(page: number) {
58
+ this.store.dispatch(EditorActions.setCurrentPage({ page }))
59
+ }
48
60
  }
@@ -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
+ }
@@ -0,0 +1,26 @@
1
+ <div class="flex flex-col gap-3">
2
+ <gn-ui-autocomplete
3
+ [placeholder]="placeholder"
4
+ [displayWithFn]="displayWithFn"
5
+ [action]="autoCompleteAction"
6
+ (itemSelected)="handleItemSelection($event)"
7
+ [preventCompleteOnSelection]="true"
8
+ [minCharacterCount]="0"
9
+ [allowSubmit]="false"
10
+ ></gn-ui-autocomplete>
11
+ <div class="flex gap-2 flex-wrap">
12
+ <gn-ui-badge
13
+ *ngFor="let keyword of keywords"
14
+ [removable]="true"
15
+ (badgeRemoveClicked)="removeKeyword(keyword)"
16
+ >{{ keyword.label }}
17
+
18
+ <mat-icon
19
+ *ngIf="isPlaceWithoutExtent(keyword)"
20
+ [title]="'editor.form.placeKeywordWithoutExtent' | translate"
21
+ class="material-symbols-outlined"
22
+ >warning</mat-icon
23
+ >
24
+ </gn-ui-badge>
25
+ </div>
26
+ </div>
@@ -0,0 +1,89 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ Output,
8
+ } from '@angular/core'
9
+ import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
10
+ import {
11
+ AutocompleteComponent,
12
+ DropdownSelectorComponent,
13
+ UiInputsModule,
14
+ } from '../../../../../../../libs/ui/inputs/src'
15
+ import { UiWidgetsModule } from '../../../../../../../libs/ui/widgets/src'
16
+ import { map } from 'rxjs'
17
+ import { Keyword } from '../../../../../../../libs/common/domain/src/lib/model/record'
18
+ import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
19
+ import { MatIconModule } from '@angular/material/icon'
20
+ import { TranslateModule } from '@ngx-translate/core'
21
+
22
+ type AutocompleteItem = { title: string; value: Keyword }
23
+
24
+ @Component({
25
+ selector: 'gn-ui-generic-keywords',
26
+ templateUrl: './generic-keywords.component.html',
27
+ styleUrls: ['./generic-keywords.component.css'],
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ standalone: true,
30
+ imports: [
31
+ DropdownSelectorComponent,
32
+ UiInputsModule,
33
+ CommonModule,
34
+ UiWidgetsModule,
35
+ AutocompleteComponent,
36
+ MatIconModule,
37
+ TranslateModule,
38
+ ],
39
+ })
40
+ export class GenericKeywordsComponent {
41
+ @Input() keywords: Keyword[]
42
+ @Input() keywordTypes: KeywordType[]
43
+ @Input() placeholder: string
44
+ @Output() changedKeywords: EventEmitter<Keyword[]> = new EventEmitter()
45
+ @Output() addedKeyword: EventEmitter<Keyword> = new EventEmitter()
46
+ @Output() deletedKeyword: EventEmitter<Keyword> = new EventEmitter()
47
+
48
+ displayWithFn = (item: AutocompleteItem) => {
49
+ return `${item.title} (${item.value.thesaurus?.name})`
50
+ }
51
+
52
+ autoCompleteAction = (query: string) => {
53
+ return this.platformService.searchKeywords(query, this.keywordTypes).pipe(
54
+ map((keywords) =>
55
+ keywords.map((keyword) => {
56
+ return { title: keyword.label, value: keyword }
57
+ })
58
+ )
59
+ )
60
+ }
61
+
62
+ constructor(private platformService: PlatformServiceInterface) {}
63
+
64
+ handleItemSelection(item: AutocompleteItem) {
65
+ this.addKeyword(item.value)
66
+ }
67
+
68
+ addKeyword(keyword: Keyword) {
69
+ const duplicatedKeyword = this.keywords.find(
70
+ (k) => k.label === keyword.label
71
+ )
72
+ if (!duplicatedKeyword) {
73
+ this.keywords = [...this.keywords, keyword]
74
+ this.changedKeywords.emit(this.keywords)
75
+ this.addedKeyword.emit(keyword)
76
+ }
77
+ }
78
+
79
+ removeKeyword(keyword: Keyword) {
80
+ this.keywords = this.keywords.filter((k) => k.label !== keyword.label)
81
+ this.changedKeywords.emit(this.keywords)
82
+ this.deletedKeyword.emit(keyword)
83
+ }
84
+
85
+ isPlaceWithoutExtent(keyword: Keyword): boolean {
86
+ if (keyword.type !== 'place') return false
87
+ return !keyword.bbox
88
+ }
89
+ }
@@ -1,8 +1,9 @@
1
1
  <gn-ui-image-input
2
2
  [maxSizeMB]="5"
3
3
  [previewUrl]="resourceUrl"
4
- [altText]="resourceFileName"
4
+ [altText]="altText"
5
5
  (fileChange)="handleFileChange($event)"
6
6
  (urlChange)="handleUrlChange($event)"
7
+ (altTextChange)="handleAltTextChange($event)"
7
8
  (delete)="handleDelete()"
8
9
  ></gn-ui-image-input>