geonetwork-ui 2.4.0-dev.00c93bef → 2.4.0-dev.0925104f

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 (404) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -5
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
  6. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  7. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
  8. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
  9. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +11 -1
  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/model/user/user.model.mjs +1 -1
  13. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  14. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  15. package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
  16. package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
  17. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  18. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  19. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -1
  20. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
  21. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  23. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +96 -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 +164 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -41
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +28 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +49 -52
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +37 -43
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +5 -3
  38. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  39. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  40. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +37 -4
  41. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -1
  42. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  43. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
  44. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  45. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  46. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  47. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  48. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  49. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  50. package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
  51. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  52. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  53. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +48 -8
  54. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  55. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
  56. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  57. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  58. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  59. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  60. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  61. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  62. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  63. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  64. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +6 -10
  65. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  66. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  67. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  68. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  69. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
  70. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  71. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
  72. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  73. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  74. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  75. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  76. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  77. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  78. package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
  79. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  80. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +31 -11
  81. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  82. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  83. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
  84. package/esm2022/translations/de.json +64 -19
  85. package/esm2022/translations/en.json +57 -12
  86. package/esm2022/translations/es.json +54 -9
  87. package/esm2022/translations/fr.json +68 -23
  88. package/esm2022/translations/it.json +57 -12
  89. package/esm2022/translations/nl.json +54 -9
  90. package/esm2022/translations/pt.json +54 -9
  91. package/fesm2022/geonetwork-ui.mjs +4665 -3305
  92. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  93. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  94. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  95. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  96. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  97. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  98. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  99. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  100. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  101. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  102. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  103. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  104. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -1
  105. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  106. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  107. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +1 -0
  108. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  109. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  110. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  111. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +3 -1
  112. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  113. package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
  114. package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
  115. package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
  116. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  117. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +17 -0
  118. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  119. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
  120. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
  121. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
  122. package/libs/data-access/gn4/src/fixtures/ui.fixtures.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 +1 -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 +1 -0
  129. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  131. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  132. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  133. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  134. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  135. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  136. 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
  137. 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
  138. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
  139. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  140. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  141. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  142. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  143. 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
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  145. 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
  146. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +13 -0
  147. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  149. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -1
  150. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  151. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  152. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  153. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  154. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
  155. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  156. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +15 -15
  157. 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
  158. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  159. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
  160. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +15 -19
  161. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  162. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +3 -2
  163. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  164. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  165. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  166. package/libs/feature/editor/src/lib/fields.config.d.ts +8 -0
  167. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  168. package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -0
  169. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  170. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  171. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
  173. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  175. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  176. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  177. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  178. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  179. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  180. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  181. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  182. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  183. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  184. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  185. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  186. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
  187. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
  188. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  189. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +15 -4
  190. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  191. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  192. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  193. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
  194. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
  195. package/libs/ui/elements/src/index.d.ts +1 -0
  196. package/libs/ui/elements/src/index.d.ts.map +1 -1
  197. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  198. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  199. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  200. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  201. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  202. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  203. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +5 -10
  204. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  205. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  206. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  207. package/libs/ui/inputs/src/index.d.ts +1 -0
  208. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  209. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  210. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  211. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  212. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  213. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
  214. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  215. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
  216. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  217. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  218. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  219. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  220. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  221. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  222. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  223. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  224. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  225. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
  226. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
  227. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  228. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  229. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
  230. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  231. package/libs/ui/widgets/src/index.d.ts +1 -0
  232. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  233. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  234. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  235. package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
  236. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  237. package/package.json +1 -1
  238. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -1
  239. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  240. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  241. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  242. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  243. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +6 -2
  244. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  245. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  246. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  247. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  248. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
  249. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
  250. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +43 -12
  251. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  252. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  253. package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
  254. package/src/libs/common/domain/src/lib/platform.service.interface.ts +4 -0
  255. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
  256. package/src/libs/common/fixtures/src/index.ts +1 -1
  257. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
  258. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
  259. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
  260. package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
  261. package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
  262. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
  263. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
  264. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
  265. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
  266. package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
  267. package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
  268. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +84 -56
  269. package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
  270. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
  271. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
  272. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +6 -6
  273. package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
  274. package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
  275. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
  276. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
  277. package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
  278. package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
  279. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  280. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  281. package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
  282. package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
  283. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
  284. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +15 -0
  285. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +4 -0
  286. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  287. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +27 -0
  288. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  289. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css +0 -0
  290. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  291. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  292. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  293. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +74 -31
  294. 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
  295. 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
  296. 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
  297. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
  298. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -51
  299. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  300. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
  301. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  302. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  303. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  304. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  305. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  306. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  307. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  308. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +33 -0
  309. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  310. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  311. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  312. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  313. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  314. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  315. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
  316. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
  317. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +9 -2
  318. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +59 -70
  319. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  320. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +103 -68
  321. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +43 -43
  322. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +2 -1
  323. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +7 -2
  324. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  325. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  326. package/src/libs/feature/editor/src/lib/fields.config.ts +40 -3
  327. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -0
  328. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  329. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  330. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  331. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  332. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  333. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  334. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  335. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  336. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  337. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  338. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  339. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
  340. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
  341. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  342. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  343. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +4 -1
  344. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +66 -3
  345. package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
  346. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  347. package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
  348. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
  349. package/src/libs/ui/elements/src/index.ts +1 -0
  350. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  351. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  352. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  353. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  354. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  355. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  356. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  357. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  358. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  359. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  360. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -10
  361. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +7 -7
  362. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  363. package/src/libs/ui/inputs/src/index.ts +1 -0
  364. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  365. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  366. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  367. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  368. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
  369. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
  370. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
  371. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  372. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
  373. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  374. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  375. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  376. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  377. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  378. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  379. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  380. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  381. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  382. package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
  383. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  384. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  385. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  386. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +24 -3
  387. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +27 -16
  388. package/src/libs/ui/widgets/src/index.ts +1 -0
  389. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  390. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  391. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  392. package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
  393. package/tailwind.base.css +18 -5
  394. package/translations/de.json +64 -19
  395. package/translations/en.json +57 -12
  396. package/translations/es.json +54 -9
  397. package/translations/fr.json +68 -23
  398. package/translations/it.json +57 -12
  399. package/translations/nl.json +54 -9
  400. package/translations/pt.json +54 -9
  401. package/translations/sk.json +55 -10
  402. package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
  403. package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
  404. package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
@@ -1,4 +1,11 @@
1
- <div class="flex flex-col h-full">
1
+ <ng-container *ngIf="model === 'licenses'">
2
+ <gn-ui-form-field-open-data
3
+ [value]="valueAsConstraints"
4
+ (valueChange)="valueChange.emit($event)"
5
+ (openDataChange)="isHidden = $event"
6
+ ></gn-ui-form-field-open-data>
7
+ </ng-container>
8
+ <div class="flex flex-col h-full" *ngIf="!isHidden">
2
9
  <ng-container *ngIf="withoutWrapper; else withGenericWrapper">
3
10
  <ng-container *ngTemplateOutlet="fieldContent"></ng-container>
4
11
  </ng-container>
@@ -13,72 +20,100 @@
13
20
  </div>
14
21
 
15
22
  <ng-template #fieldContent>
16
- <ng-container *ngIf="isTitle">
17
- <div class="flex justify-between items-center gap-3">
18
- <span
19
- #titleInput
20
- class="grow font-title text-3xl font-normal"
21
- [gnUiEditableLabel]="true"
22
- (editableLabelChanged)="formControl.setValue($event)"
23
- >
24
- {{ formControl.value }}
25
- </span>
26
- <span
27
- class="material-symbols-outlined gn-ui-icon-small m-2 cursor-pointer"
28
- (click)="focusTitleInput()"
29
- >edit</span
30
- >
31
- <span
32
- class="material-symbols-outlined gn-ui-icon-small m-2"
33
- [matTooltip]="config.hintKey! | translate"
34
- matTooltipPosition="above"
35
- >
36
- help
37
- </span>
38
- </div>
39
- </ng-container>
40
- <ng-container *ngIf="isAbstract">
41
- <gn-ui-form-field-rich
42
- class="h-[8rem]"
43
- [control]="formControl"
44
- [label]="config.labelKey! | translate"
45
- [hint]="config.hintKey! | translate"
46
- ></gn-ui-form-field-rich>
47
- </ng-container>
48
- <ng-container *ngIf="isLicenses">
49
- <gn-ui-form-field-license
50
- [control]="formControl"
51
- [label]="config.labelKey! | translate"
52
- ></gn-ui-form-field-license>
53
- </ng-container>
54
- <ng-container *ngIf="isResourceUpdated">
55
- <gn-ui-form-field-resource-updated
56
- [control]="formControl"
57
- ></gn-ui-form-field-resource-updated>
58
- </ng-container>
59
- <ng-container *ngIf="isUpdateFrequency">
60
- <gn-ui-form-field-update-frequency
61
- [control]="formControl"
62
- ></gn-ui-form-field-update-frequency>
63
- </ng-container>
64
- <ng-container *ngIf="isTemporalExtents">
65
- <gn-ui-form-field-temporal-extents
66
- [control]="formControl"
67
- ></gn-ui-form-field-temporal-extents>
68
- </ng-container>
69
- <ng-container *ngIf="isSimpleField">
70
- <gn-ui-form-field-simple
71
- type="text"
72
- [control]="formControl"
73
- [readonly]="isReadOnly"
74
- ></gn-ui-form-field-simple>
75
- </ng-container>
76
- <ng-container *ngIf="isSpatialExtentField">
77
- <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
78
- </ng-container>
79
- <ng-container *ngIf="isKeywords">
80
- <gn-ui-form-field-keywords
81
- [control]="formControl"
82
- ></gn-ui-form-field-keywords>
23
+ <ng-container [ngSwitch]="model">
24
+ <ng-container *ngSwitchCase="'title'">
25
+ <div class="flex justify-between items-center gap-3">
26
+ <span
27
+ #titleInput
28
+ class="grow font-title text-3xl font-normal"
29
+ [gnUiEditableLabel]="valueAsString"
30
+ (editableLabelChanged)="valueChange.emit($event)"
31
+ ></span>
32
+ <span
33
+ class="material-symbols-outlined gn-ui-icon-small m-2 cursor-pointer"
34
+ (click)="focusTitleInput()"
35
+ >edit</span
36
+ >
37
+ <span
38
+ class="material-symbols-outlined gn-ui-icon-small m-2"
39
+ [matTooltip]="config.hintKey! | translate"
40
+ matTooltipPosition="above"
41
+ >
42
+ help
43
+ </span>
44
+ </div>
45
+ </ng-container>
46
+ <ng-container *ngSwitchCase="'abstract'">
47
+ <gn-ui-form-field-rich
48
+ class="h-[8rem]"
49
+ [label]="config.labelKey! | translate"
50
+ [hint]="config.hintKey! | translate"
51
+ [value]="valueAsString"
52
+ (valueChange)="valueChange.emit($event)"
53
+ ></gn-ui-form-field-rich>
54
+ </ng-container>
55
+ <ng-container *ngSwitchCase="'overviews'">
56
+ <gn-ui-form-field-overviews
57
+ [metadataUuid]="uniqueIdentifier"
58
+ [value]="valueAsOverviews"
59
+ (valueChange)="valueChange.emit($event)"
60
+ ></gn-ui-form-field-overviews>
61
+ </ng-container>
62
+ <ng-container *ngSwitchCase="'uniqueIdentifier'">
63
+ <gn-ui-form-field-simple
64
+ type="text"
65
+ [readonly]="true"
66
+ [value]="valueAsString"
67
+ (valueChange)="valueChange.emit($event)"
68
+ ></gn-ui-form-field-simple>
69
+ </ng-container>
70
+ <ng-container *ngSwitchCase="'resourceUpdated'">
71
+ <gn-ui-form-field-resource-updated
72
+ [value]="valueAsDate"
73
+ (valueChange)="valueChange.emit($event)"
74
+ ></gn-ui-form-field-resource-updated>
75
+ </ng-container>
76
+ <ng-container *ngSwitchCase="'recordUpdated'">
77
+ <gn-ui-form-field-simple
78
+ type="date"
79
+ [readonly]="true"
80
+ [value]="valueAsDate"
81
+ (valueChange)="valueChange.emit($event)"
82
+ ></gn-ui-form-field-simple>
83
+ </ng-container>
84
+ <ng-container *ngSwitchCase="'updateFrequency'">
85
+ <gn-ui-form-field-update-frequency
86
+ [value]="valueAsUpdateFrequency"
87
+ (valueChange)="valueChange.emit($event)"
88
+ ></gn-ui-form-field-update-frequency>
89
+ </ng-container>
90
+ <ng-container *ngSwitchCase="'temporalExtents'">
91
+ <gn-ui-form-field-temporal-extents
92
+ [value]="valueAsTemporalExtents"
93
+ (valueChange)="valueChange.emit($event)"
94
+ ></gn-ui-form-field-temporal-extents>
95
+ </ng-container>
96
+ <ng-container *ngSwitchCase="'spatialExtents'">
97
+ <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
98
+ </ng-container>
99
+ <ng-container *ngSwitchCase="'keywords'">
100
+ <gn-ui-form-field-keywords
101
+ [value]="valueAsKeywords"
102
+ (valueChange)="valueChange.emit($event)"
103
+ ></gn-ui-form-field-keywords>
104
+ </ng-container>
105
+ <ng-container *ngSwitchCase="'licenses'">
106
+ <gn-ui-form-field-license
107
+ [label]="config.labelKey! | translate"
108
+ [value]="valueAsConstraints"
109
+ (valueChange)="valueChange.emit($event)"
110
+ ></gn-ui-form-field-license>
111
+ </ng-container>
112
+ <ng-container *ngSwitchCase="'contactsForResource'">
113
+ <gn-ui-form-field-contacts-for-resource
114
+ [value]="valueAsIndividuals"
115
+ (valueChange)="valueChange.emit($event)"
116
+ ></gn-ui-form-field-contacts-for-resource>
117
+ </ng-container>
83
118
  </ng-container>
84
119
  </ng-template>
@@ -3,32 +3,42 @@ import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
5
5
  ElementRef,
6
+ EventEmitter,
6
7
  Input,
7
8
  Output,
8
9
  ViewChild,
9
10
  } from '@angular/core'
10
- import { FormControl, ReactiveFormsModule } from '@angular/forms'
11
11
  import { MatIconModule } from '@angular/material/icon'
12
12
  import { MatTooltipModule } from '@angular/material/tooltip'
13
+ import {
14
+ CatalogRecordKeys,
15
+ Constraint,
16
+ DatasetTemporalExtent,
17
+ GraphicOverview,
18
+ Individual,
19
+ Keyword,
20
+ UpdateFrequency,
21
+ } from '../../../../../../../../libs/common/domain/src/lib/model/record'
13
22
  import { EditableLabelDirective } from '../../../../../../../../libs/ui/inputs/src'
14
23
  import { FormFieldWrapperComponent } from '../../../../../../../../libs/ui/layout/src'
15
24
  import { TranslateModule } from '@ngx-translate/core'
16
- import { Observable } from 'rxjs'
17
25
  import {
18
26
  FormFieldLicenseComponent,
19
27
  FormFieldResourceUpdatedComponent,
20
28
  FormFieldTemporalExtentsComponent,
21
29
  } from '.'
30
+ import { FormFieldConfig } from '../../../models'
22
31
  import { FormFieldArrayComponent } from './form-field-array/form-field-array.component'
32
+ import { FormFieldContactsForResourceComponent } from './form-field-contacts-for-resource/form-field-contacts-for-resource.component'
23
33
  import { FormFieldFileComponent } from './form-field-file/form-field-file.component'
34
+ import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
24
35
  import { FormFieldObjectComponent } from './form-field-object/form-field-object.component'
36
+ import { FormFieldOverviewsComponent } from './form-field-overviews/form-field-overviews.component'
25
37
  import { FormFieldRichComponent } from './form-field-rich/form-field-rich.component'
26
38
  import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.component'
27
39
  import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
28
40
  import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
29
- import { CatalogRecordKeys } from '../../../../../../../../libs/common/domain/src/lib/model/record'
30
- import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
31
- import { FormFieldConfig } from '../../../models'
41
+ import { FormFieldOpenDataComponent } from './form-field-open-data/form-field-open-data.component'
32
42
 
33
43
  @Component({
34
44
  selector: 'gn-ui-form-field',
@@ -38,7 +48,7 @@ import { FormFieldConfig } from '../../../models'
38
48
  standalone: true,
39
49
  imports: [
40
50
  CommonModule,
41
- ReactiveFormsModule,
51
+ TranslateModule,
42
52
  EditableLabelDirective,
43
53
  MatIconModule,
44
54
  MatTooltipModule,
@@ -54,64 +64,54 @@ import { FormFieldConfig } from '../../../models'
54
64
  FormFieldFileComponent,
55
65
  FormFieldArrayComponent,
56
66
  FormFieldKeywordsComponent,
57
- TranslateModule,
67
+ FormFieldOverviewsComponent,
68
+ FormFieldContactsForResourceComponent,
69
+ FormFieldOpenDataComponent,
58
70
  ],
59
71
  })
60
72
  export class FormFieldComponent {
73
+ @Input() uniqueIdentifier: string
61
74
  @Input() model: CatalogRecordKeys
62
75
  @Input() config: FormFieldConfig
63
- @Input() set value(v: unknown) {
64
- this.formControl.setValue(v, {
65
- emitEvent: false,
66
- })
67
- }
76
+ @Input() value: unknown
68
77
 
69
- @Output() valueChange: Observable<unknown>
78
+ @Output() valueChange: EventEmitter<unknown> = new EventEmitter()
70
79
 
71
80
  @ViewChild('titleInput') titleInput: ElementRef
72
81
 
73
- formControl = new FormControl()
74
-
75
- constructor() {
76
- this.valueChange = this.formControl.valueChanges
77
- }
82
+ isHidden = false
78
83
 
79
84
  focusTitleInput() {
80
85
  this.titleInput.nativeElement.children[0].focus()
81
86
  }
82
87
 
83
- get isTitle() {
84
- return this.model === 'title'
85
- }
86
- get isAbstract() {
87
- return this.model === 'abstract'
88
- }
89
- get isLicenses() {
90
- return this.model === 'licenses'
88
+ get withoutWrapper() {
89
+ return this.model === 'title' || this.model === 'abstract'
91
90
  }
92
- get isResourceUpdated() {
93
- return this.model === 'resourceUpdated'
91
+
92
+ get valueAsString() {
93
+ return this.value as string
94
94
  }
95
- get isUpdateFrequency() {
96
- return this.model === 'updateFrequency'
95
+ get valueAsDate() {
96
+ return this.value as Date
97
97
  }
98
- get isTemporalExtents() {
99
- return this.model === 'temporalExtents'
98
+
99
+ get valueAsOverviews() {
100
+ return this.value as Array<GraphicOverview>
100
101
  }
101
- get isSpatialExtentField() {
102
- return this.model === 'spatialExtents'
102
+ get valueAsUpdateFrequency() {
103
+ return this.value as UpdateFrequency
103
104
  }
104
- get isSimpleField() {
105
- return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
105
+ get valueAsTemporalExtents() {
106
+ return this.value as Array<DatasetTemporalExtent>
106
107
  }
107
- get isReadOnly() {
108
- return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
108
+ get valueAsKeywords() {
109
+ return this.value as Array<Keyword>
109
110
  }
110
- get isKeywords() {
111
- return this.model === 'keywords'
111
+ get valueAsConstraints() {
112
+ return this.value as Array<Constraint>
112
113
  }
113
-
114
- get withoutWrapper() {
115
- return this.model === 'title' || this.model === 'abstract'
114
+ get valueAsIndividuals() {
115
+ return this.value as Array<Individual>
116
116
  }
117
117
  }
@@ -14,7 +14,7 @@
14
14
  >
15
15
  <div
16
16
  *ngIf="section.labelKey"
17
- class="text-2xl font-petrona text-secondary"
17
+ class="text-2xl font-title text-secondary"
18
18
  translate
19
19
  >
20
20
  {{ section.labelKey }}
@@ -35,6 +35,7 @@
35
35
  >
36
36
  <ng-container *ngIf="!field.config.hidden">
37
37
  <gn-ui-form-field
38
+ [uniqueIdentifier]="recordUniqueIdentifier$ | async"
38
39
  [model]="field.config.model!"
39
40
  [config]="field.config.formFieldConfig"
40
41
  [value]="field.value"
@@ -8,6 +8,7 @@ import {
8
8
  EditorFieldWithValue,
9
9
  EditorSectionWithValues,
10
10
  } from '../../+state/editor.models'
11
+ import { map } from 'rxjs'
11
12
 
12
13
  @Component({
13
14
  selector: 'gn-ui-record-form',
@@ -18,6 +19,10 @@ import {
18
19
  imports: [CommonModule, FormFieldComponent, TranslateModule],
19
20
  })
20
21
  export class RecordFormComponent {
22
+ recordUniqueIdentifier$ = this.facade.record$.pipe(
23
+ map((record) => record.uniqueIdentifier)
24
+ )
25
+
21
26
  constructor(public facade: EditorFacade) {}
22
27
 
23
28
  handleFieldValueChange(model: string, newValue: EditorFieldValue) {
@@ -27,11 +32,11 @@ export class RecordFormComponent {
27
32
  this.facade.updateRecordField(model, newValue)
28
33
  }
29
34
 
30
- fieldTracker(index: number, field: EditorFieldWithValue): any {
35
+ fieldTracker(index: number, field: EditorFieldWithValue) {
31
36
  return field.config.model
32
37
  }
33
38
 
34
- sectionTracker(index: number, section: EditorSectionWithValues): any {
39
+ sectionTracker(index: number, section: EditorSectionWithValues) {
35
40
  return section.labelKey
36
41
  }
37
42
  }
@@ -13,7 +13,7 @@
13
13
  [id]="wizardFieldConfig.id"
14
14
  [value]="wizardFieldData"
15
15
  [required]="wizardFieldConfig.required || false"
16
- hint=""
16
+ placeholder=""
17
17
  ></gn-ui-text-input>
18
18
  </div>
19
19
  <div
@@ -4,7 +4,7 @@ import { NgModule } from '@angular/core'
4
4
  import { MatNativeDateModule } from '@angular/material/core'
5
5
  import { MatDatepickerModule } from '@angular/material/datepicker'
6
6
  import { MatFormFieldModule } from '@angular/material/form-field'
7
- import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
7
+ import { TextInputComponent, UiInputsModule } from '../../../../../libs/ui/inputs/src'
8
8
  import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
9
9
  import { EffectsModule } from '@ngrx/effects'
10
10
  import { StoreModule } from '@ngrx/store'
@@ -38,6 +38,7 @@ import { Gn4PlatformService } from '../../../../../libs/api/repository/src'
38
38
  fromEditor.editorReducer
39
39
  ),
40
40
  EffectsModule.forFeature([EditorEffects]),
41
+ TextInputComponent,
41
42
  ],
42
43
  exports: [WizardComponent, WizardSummarizeComponent],
43
44
  providers: [EditorFacade, Gn4PlatformService],
@@ -83,6 +83,27 @@ export const RECORD_ABSTRACT_FIELD: EditorField = {
83
83
  },
84
84
  }
85
85
 
86
+ export const CONTACTS_FOR_RESOURCE_FIELD: EditorField = {
87
+ model: 'contactsForResource',
88
+ formFieldConfig: {
89
+ labelKey: '',
90
+ },
91
+ }
92
+
93
+ export const RECORD_GRAPHICAL_OVERVIEW_FIELD: EditorField = {
94
+ model: 'overviews',
95
+ formFieldConfig: {
96
+ labelKey: marker('editor.record.form.field.overviews'),
97
+ },
98
+ }
99
+
100
+ export const RECORD_SPATIAL_EXTENTS_FIELD: EditorField = {
101
+ model: 'spatialExtents',
102
+ formFieldConfig: {
103
+ labelKey: marker('editor.record.form.field.spatialExtents'),
104
+ },
105
+ }
106
+
86
107
  /************************************************************
87
108
  *************** SECTIONS *****************
88
109
  ************************************************************
@@ -90,7 +111,11 @@ export const RECORD_ABSTRACT_FIELD: EditorField = {
90
111
 
91
112
  export const TITLE_SECTION: EditorSection = {
92
113
  hidden: false,
93
- fields: [RECORD_TITLE_FIELD, RECORD_ABSTRACT_FIELD],
114
+ fields: [
115
+ RECORD_TITLE_FIELD,
116
+ RECORD_ABSTRACT_FIELD,
117
+ RECORD_GRAPHICAL_OVERVIEW_FIELD,
118
+ ],
94
119
  }
95
120
 
96
121
  export const ABOUT_SECTION: EditorSection = {
@@ -109,7 +134,7 @@ export const ABOUT_SECTION: EditorSection = {
109
134
  export const GEOGRAPHICAL_COVERAGE_SECTION: EditorSection = {
110
135
  labelKey: marker('editor.record.form.section.geographicalCoverage.label'),
111
136
  hidden: false,
112
- fields: [],
137
+ fields: [RECORD_SPATIAL_EXTENTS_FIELD],
113
138
  }
114
139
 
115
140
  export const ASSOCIATED_RESOURCES_SECTION: EditorSection = {
@@ -146,7 +171,7 @@ export const DATA_MANAGERS_SECTION: EditorSection = {
146
171
  labelKey: marker('editor.record.form.section.dataManagers.label'),
147
172
  descriptionKey: marker('editor.record.form.section.dataManagers.description'),
148
173
  hidden: false,
149
- fields: [],
174
+ fields: [CONTACTS_FOR_RESOURCE_FIELD],
150
175
  }
151
176
 
152
177
  export const DATA_POINT_OF_CONTACT_SECTION: EditorSection = {
@@ -183,3 +208,15 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
183
208
  },
184
209
  ],
185
210
  }
211
+
212
+ /************************************************************
213
+ *************** LICENSES *****************
214
+ ************************************************************
215
+ */
216
+ export const OPEN_DATA_LICENSES: string[] = [
217
+ 'etalab',
218
+ 'etalab-v2',
219
+ 'odbl',
220
+ 'odc-by',
221
+ 'pddl',
222
+ ]
@@ -59,4 +59,11 @@ export class EditorService {
59
59
  .saveRecordAsDraft(record)
60
60
  .pipe(map(() => undefined))
61
61
  }
62
+
63
+ undoRecordDraft(
64
+ record: CatalogRecord
65
+ ): Observable<[CatalogRecord, string, boolean]> {
66
+ this.recordsRepository.clearRecordDraft(record.uniqueIdentifier)
67
+ return this.recordsRepository.openRecordForEdition(record.uniqueIdentifier)
68
+ }
62
69
  }
@@ -1,5 +1,6 @@
1
1
  import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core'
2
2
  import {
3
+ FeatureSearchModule,
3
4
  FIELDS_BRIEF,
4
5
  SearchFacade,
5
6
  SearchService,
@@ -15,6 +16,7 @@ import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-l
15
16
  templateUrl: './add-layer-from-catalog.component.html',
16
17
  styleUrls: ['./add-layer-from-catalog.component.css'],
17
18
  changeDetection: ChangeDetectionStrategy.OnPush,
19
+ standalone: true,
18
20
  providers: [
19
21
  SearchFacade,
20
22
  SearchService,
@@ -30,6 +32,7 @@ import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-l
30
32
  },
31
33
  },
32
34
  ],
35
+ imports: [FeatureSearchModule],
33
36
  })
34
37
  export class AddLayerFromCatalogComponent implements OnInit {
35
38
  constructor(private searchFacade: SearchFacade) {}
@@ -6,7 +6,6 @@ import {
6
6
  LinkUsage,
7
7
  } from '../../../../../../../libs/util/shared/src'
8
8
  import { Observable, of, throwError } from 'rxjs'
9
- import { map } from 'rxjs/operators'
10
9
  import { MapUtilsService } from '../../utils'
11
10
  import { MapFacade } from '../../+state/map.facade'
12
11
  import {
@@ -17,12 +16,17 @@ import {
17
16
  DatasetDistribution,
18
17
  DatasetRecord,
19
18
  } from '../../../../../../../libs/common/domain/src/lib/model/record'
19
+ import { ThumbnailComponent } from '../../../../../../../libs/ui/elements/src'
20
+ import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
21
+ import { CommonModule } from '@angular/common'
20
22
 
21
23
  @Component({
22
24
  selector: 'gn-ui-add-layer-record-preview',
23
25
  templateUrl: './add-layer-record-preview.component.html',
24
26
  styleUrls: ['./add-layer-record-preview.component.css'],
25
27
  changeDetection: ChangeDetectionStrategy.OnPush,
28
+ standalone: true,
29
+ imports: [ThumbnailComponent, ButtonComponent, CommonModule],
26
30
  })
27
31
  export class AddLayerRecordPreviewComponent extends RecordPreviewComponent {
28
32
  get mapLinks(): DatasetDistribution[] {
@@ -1,6 +1,9 @@
1
1
  import { ChangeDetectorRef, Component } from '@angular/core'
2
2
  import { MapContextLayerModel } from '../map-context/map-context.model'
3
3
  import { MapFacade } from '../+state/map.facade'
4
+ import { UiInputsModule } from '../../../../../../libs/ui/inputs/src'
5
+ import { TranslateModule } from '@ngx-translate/core'
6
+ import { CommonModule } from '@angular/common'
4
7
 
5
8
  const INVALID_FILE_FORMAT_ERROR_MESSAGE = 'Invalid file format'
6
9
 
@@ -8,6 +11,8 @@ const INVALID_FILE_FORMAT_ERROR_MESSAGE = 'Invalid file format'
8
11
  selector: 'gn-ui-add-layer-from-file',
9
12
  templateUrl: './add-layer-from-file.component.html',
10
13
  styleUrls: ['./add-layer-from-file.component.css'],
14
+ standalone: true,
15
+ imports: [UiInputsModule, TranslateModule, CommonModule],
11
16
  })
12
17
  export class AddLayerFromFileComponent {
13
18
  errorMessage: string | null = null
@@ -2,7 +2,7 @@
2
2
  <gn-ui-text-input
3
3
  [(value)]="ogcUrl"
4
4
  (valueChange)="urlChange.next($event)"
5
- [hint]="'map.ogc.urlInput.hint' | translate"
5
+ [placeholder]="'map.ogc.urlInput.hint' | translate"
6
6
  class="w-96"
7
7
  ></gn-ui-text-input>
8
8
  </div>
@@ -1,20 +1,23 @@
1
1
  import {
2
+ ChangeDetectorRef,
2
3
  Component,
3
- OnInit,
4
- Output,
5
4
  EventEmitter,
6
- ChangeDetectionStrategy,
7
5
  Input,
8
- ChangeDetectorRef,
6
+ OnInit,
7
+ Output,
9
8
  } from '@angular/core'
10
9
  import { OgcApiEndpoint } from '@camptocamp/ogc-client'
11
- import { Subject, debounceTime } from 'rxjs'
10
+ import { debounceTime, Subject } from 'rxjs'
12
11
  import {
13
12
  MapContextLayerModel,
14
13
  MapContextLayerTypeEnum,
15
14
  } from '../map-context/map-context.model'
16
15
  import { TranslateModule } from '@ngx-translate/core'
17
- import { DropdownChoice, UiInputsModule } from '../../../../../../libs/ui/inputs/src'
16
+ import {
17
+ DropdownChoice,
18
+ TextInputComponent,
19
+ UiInputsModule,
20
+ } from '../../../../../../libs/ui/inputs/src'
18
21
  import { CommonModule } from '@angular/common'
19
22
  import { MapLayer } from '../+state/map.models'
20
23
 
@@ -23,7 +26,7 @@ import { MapLayer } from '../+state/map.models'
23
26
  templateUrl: './add-layer-from-ogc-api.component.html',
24
27
  styleUrls: ['./add-layer-from-ogc-api.component.css'],
25
28
  standalone: true,
26
- imports: [CommonModule, TranslateModule, UiInputsModule],
29
+ imports: [CommonModule, TranslateModule, UiInputsModule, TextInputComponent],
27
30
  })
28
31
  export class AddLayerFromOgcApiComponent implements OnInit {
29
32
  @Input() ogcUrl: string
@@ -2,7 +2,7 @@
2
2
  <gn-ui-text-input
3
3
  [(value)]="wfsUrl"
4
4
  (valueChange)="urlChange.next($event)"
5
- [hint]="'map.wfs.urlInput.hint' | translate"
5
+ [placeholder]="'map.wfs.urlInput.hint' | translate"
6
6
  class="w-96"
7
7
  >
8
8
  </gn-ui-text-input>
@@ -7,11 +7,16 @@ import {
7
7
  } from '../map-context/map-context.model'
8
8
  import { MapFacade } from '../+state/map.facade'
9
9
  import { debounceTime } from 'rxjs/operators'
10
+ import { ButtonComponent, TextInputComponent } from '../../../../../../libs/ui/inputs/src'
11
+ import { TranslateModule } from '@ngx-translate/core'
12
+ import { CommonModule } from '@angular/common'
10
13
 
11
14
  @Component({
12
15
  selector: 'gn-ui-add-layer-from-wfs',
13
16
  templateUrl: './add-layer-from-wfs.component.html',
14
17
  styleUrls: ['./add-layer-from-wfs.component.css'],
18
+ standalone: true,
19
+ imports: [TextInputComponent, ButtonComponent, TranslateModule, CommonModule],
15
20
  })
16
21
  export class AddLayerFromWfsComponent implements OnInit {
17
22
  wfsUrl = ''
@@ -2,7 +2,7 @@
2
2
  <gn-ui-text-input
3
3
  [(value)]="wmsUrl"
4
4
  (valueChange)="urlChange.next($event)"
5
- [hint]="'map.wms.urlInput.hint' | translate"
5
+ [placeholder]="'map.wms.urlInput.hint' | translate"
6
6
  class="w-96"
7
7
  >
8
8
  </gn-ui-text-input>