geonetwork-ui 2.4.0-dev.aa5f997e → 2.4.0-dev.aa689838

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 (492) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +11 -16
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +35 -7
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +50 -18
  11. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  12. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +21 -4
  13. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
  14. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +51 -7
  15. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  16. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  17. package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
  18. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  19. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  20. package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
  21. package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
  22. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  23. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
  24. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
  25. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  26. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -1
  27. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
  28. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  29. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  30. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +143 -0
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -41
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  35. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +146 -0
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +101 -0
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  41. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
  42. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +38 -68
  43. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
  44. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +43 -42
  45. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +5 -3
  46. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  47. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  48. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +45 -5
  49. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +1 -1
  50. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -1
  51. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  52. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +7 -6
  53. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  54. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  55. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  56. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  57. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  58. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  59. package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
  60. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  61. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  62. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
  63. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
  64. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
  65. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  66. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +42 -8
  67. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  68. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
  69. package/esm2022/libs/ui/elements/src/index.mjs +2 -2
  70. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  71. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
  72. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
  73. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
  74. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  75. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  76. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  77. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  78. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +7 -4
  79. package/esm2022/libs/ui/inputs/src/index.mjs +5 -1
  80. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  81. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  82. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
  83. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +19 -15
  84. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  85. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +7 -21
  86. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  87. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  88. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  89. package/esm2022/libs/ui/layout/src/index.mjs +3 -1
  90. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  91. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  92. package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
  93. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  94. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  95. package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
  96. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +49 -11
  97. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +23 -11
  98. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
  99. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
  100. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
  101. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
  102. package/esm2022/translations/de.json +73 -18
  103. package/esm2022/translations/en.json +66 -11
  104. package/esm2022/translations/es.json +64 -9
  105. package/esm2022/translations/fr.json +77 -22
  106. package/esm2022/translations/it.json +66 -11
  107. package/esm2022/translations/nl.json +64 -9
  108. package/esm2022/translations/pt.json +64 -9
  109. package/fesm2022/geonetwork-ui.mjs +3123 -1521
  110. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  111. package/libs/api/metadata-converter/src/index.d.ts +0 -1
  112. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  113. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
  114. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  115. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  116. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  117. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
  118. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  119. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
  120. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  121. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  122. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +12 -6
  123. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  124. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  125. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  126. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +10 -7
  127. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  128. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  129. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  130. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +6 -1
  131. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  132. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  133. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +22 -2
  134. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  135. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  136. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  137. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -7
  138. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  139. package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
  140. package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
  141. package/libs/common/domain/src/lib/platform.service.interface.d.ts +16 -0
  142. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  143. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +8 -0
  144. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  145. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
  146. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
  147. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
  148. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
  149. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
  150. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  151. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
  152. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  153. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
  154. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  155. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
  156. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  157. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  158. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  159. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
  160. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  161. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  162. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  163. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  164. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  165. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
  166. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
  167. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +41 -0
  168. 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
  169. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
  170. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  171. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  172. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  173. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  174. 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
  175. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +34 -0
  176. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
  177. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  178. 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
  179. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +30 -0
  180. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  181. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  182. 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
  183. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  184. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  185. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  186. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  187. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
  188. 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
  189. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +10 -16
  190. 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
  191. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  192. 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
  193. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +18 -20
  194. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  195. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +5 -3
  196. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  197. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  198. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  199. package/libs/feature/editor/src/lib/fields.config.d.ts +9 -0
  200. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  201. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +5 -0
  202. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -1
  203. package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -0
  204. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  205. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  206. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  207. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +6 -6
  208. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  209. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  210. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  211. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  212. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  213. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  214. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  215. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  216. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  217. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  218. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  219. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  220. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  221. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
  222. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
  223. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  224. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
  225. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  226. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
  227. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  228. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
  229. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  230. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  231. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  232. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +12 -3
  233. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  234. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  235. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  236. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
  237. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
  238. package/libs/ui/elements/src/index.d.ts +1 -1
  239. package/libs/ui/elements/src/index.d.ts.map +1 -1
  240. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  241. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  242. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
  243. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  244. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
  245. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  246. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
  247. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  248. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  249. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  250. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  251. package/libs/ui/inputs/src/index.d.ts +4 -0
  252. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  253. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  254. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  255. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  256. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  257. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
  258. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
  259. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +4 -5
  260. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  261. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
  262. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  263. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  264. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  265. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  266. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  267. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  268. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  269. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  270. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  271. package/libs/ui/layout/src/index.d.ts +2 -0
  272. package/libs/ui/layout/src/index.d.ts.map +1 -1
  273. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
  274. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
  275. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
  276. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  277. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
  278. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
  279. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +10 -1
  280. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  281. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +7 -3
  282. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  283. package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
  284. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  285. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  286. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  287. package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
  288. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  289. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
  290. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
  291. package/package.json +1 -1
  292. package/src/libs/api/metadata-converter/src/index.ts +0 -1
  293. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +7 -2
  294. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +6 -2
  295. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +38 -13
  296. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +6 -2
  297. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
  298. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  299. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
  300. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
  301. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
  302. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +10 -14
  303. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +85 -17
  304. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  305. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +118 -37
  306. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  307. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +24 -4
  308. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
  309. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +90 -15
  310. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  311. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +10 -8
  312. package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
  313. package/src/libs/common/domain/src/lib/platform.service.interface.ts +30 -0
  314. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
  315. package/src/libs/common/fixtures/src/index.ts +1 -1
  316. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
  317. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
  318. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
  319. package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
  320. package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
  321. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
  322. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
  323. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
  324. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
  325. package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
  326. package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
  327. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
  328. package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
  329. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
  330. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
  331. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +9 -9
  332. package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
  333. package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
  334. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
  335. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
  336. package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
  337. package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
  338. package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
  339. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
  340. package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
  341. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
  342. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
  343. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
  344. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +15 -0
  345. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +4 -0
  346. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  347. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  348. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  349. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  350. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
  351. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
  352. 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
  353. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +86 -0
  354. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +210 -0
  355. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
  356. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -51
  357. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  358. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
  359. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  360. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  361. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.css +0 -0
  362. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +33 -0
  363. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +179 -0
  364. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  365. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  366. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  367. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  368. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -0
  369. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +119 -0
  370. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  371. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  372. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  373. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  374. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  375. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  376. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
  377. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
  378. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +30 -4
  379. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +41 -86
  380. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  381. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +111 -68
  382. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +49 -42
  383. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +3 -1
  384. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +9 -3
  385. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  386. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  387. package/src/libs/feature/editor/src/lib/fields.config.ts +49 -4
  388. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +9 -0
  389. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -0
  390. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  391. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -8
  392. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  393. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  394. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  395. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  396. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  397. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  398. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  399. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  400. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  401. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
  402. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
  403. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  404. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
  405. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
  406. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
  407. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +5 -1
  408. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  409. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +3 -1
  410. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +61 -3
  411. package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
  412. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  413. package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
  414. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
  415. package/src/libs/ui/elements/src/index.ts +1 -1
  416. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  417. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  418. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  419. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
  420. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
  421. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
  422. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  423. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  424. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  425. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  426. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -1
  427. package/src/libs/ui/inputs/src/index.ts +4 -0
  428. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  429. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  430. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  431. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  432. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +92 -0
  433. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +50 -50
  434. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +17 -14
  435. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +3 -2
  436. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +3 -28
  437. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  438. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  439. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  440. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  441. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  442. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  443. package/src/libs/ui/layout/src/index.ts +2 -0
  444. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  445. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  446. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
  447. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
  448. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
  449. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
  450. package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +15 -18
  451. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  452. package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
  453. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +10 -1
  454. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +55 -3
  455. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +16 -4
  456. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +14 -15
  457. package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
  458. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
  459. package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
  460. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
  461. package/tailwind.base.css +21 -4
  462. package/translations/de.json +73 -18
  463. package/translations/en.json +66 -11
  464. package/translations/es.json +64 -9
  465. package/translations/fr.json +77 -22
  466. package/translations/it.json +66 -11
  467. package/translations/nl.json +64 -9
  468. package/translations/pt.json +64 -9
  469. package/translations/sk.json +64 -9
  470. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
  471. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
  472. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -43
  473. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
  474. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
  475. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
  476. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
  477. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -22
  478. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
  479. package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
  480. package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
  481. package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
  482. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -8
  483. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -70
  484. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
  485. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
  486. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
  487. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
  488. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -36
  489. /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → contact-card/contact-card.component.css} +0 -0
  490. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → generic-keywords/generic-keywords.component.css} +0 -0
  491. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → online-resource-card/online-resource-card.component.css} +0 -0
  492. /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
@@ -1,4 +1,29 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import { ChangeDetectionStrategy, Component } from '@angular/core'
3
+ import {
4
+ DatasetSpatialExtent,
5
+ Keyword,
6
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
7
+ import { GenericKeywordsComponent } from '../../../generic-keywords/generic-keywords.component'
8
+ import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
9
+ import { firstValueFrom, map, shareReplay } from 'rxjs'
10
+ import { EditorFacade } from '../../../../+state/editor.facade'
11
+ import { switchMap } from 'rxjs/operators'
12
+ import { FormFieldMapContainerComponent } from '../form-field-map-container/form-field-map-container.component'
13
+ import { TranslateService } from '@ngx-translate/core'
14
+
15
+ // This intermediary type will let us keep track of which keyword is bound to
16
+ // which extent; these properties will not be persisted
17
+ type KeywordWithExtent = Keyword & {
18
+ _linkedExtent: DatasetSpatialExtent
19
+ _doNotSave: boolean
20
+ }
21
+
22
+ /**
23
+ * This form field is not like the others, as it will read directly from the state to handle both spatial extents
24
+ * and place keywords.
25
+ * Other types of keywords will not be touched by this field.
26
+ */
2
27
 
3
28
  @Component({
4
29
  selector: 'gn-ui-form-field-spatial-extent',
@@ -6,5 +31,135 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
6
31
  styleUrls: ['./form-field-spatial-extent.component.css'],
7
32
  changeDetection: ChangeDetectionStrategy.OnPush,
8
33
  standalone: true,
34
+ imports: [
35
+ CommonModule,
36
+ GenericKeywordsComponent,
37
+ FormFieldMapContainerComponent,
38
+ ],
9
39
  })
10
- export class FormFieldSpatialExtentComponent {}
40
+ export class FormFieldSpatialExtentComponent {
41
+ spatialExtents$ = this.editorFacade.record$.pipe(
42
+ map((record) => ('spatialExtents' in record ? record?.spatialExtents : []))
43
+ )
44
+
45
+ shownKeywords$ = this.editorFacade.record$.pipe(
46
+ map((record) => record?.keywords.filter((k) => k.type === 'place')),
47
+ // look for full keywords in the thesauri
48
+ switchMap((keywords) =>
49
+ Promise.all(
50
+ keywords.map(async (keyword) => {
51
+ if (!keyword.thesaurus) return keyword
52
+ const allKeywords = await firstValueFrom(
53
+ this.platformService.searchKeywordsInThesaurus(
54
+ keyword.label,
55
+ keyword.thesaurus.id
56
+ )
57
+ )
58
+ const found = allKeywords.find((k) => k.label === keyword.label)
59
+ return found ?? keyword
60
+ })
61
+ )
62
+ ),
63
+ // add additional "unnamed" keywords for extents without a matching keyword
64
+ switchMap(async (keywords) => {
65
+ const spatialExtents = await firstValueFrom(this.spatialExtents$)
66
+ const keywordsFromExtents = await Promise.all(
67
+ spatialExtents.map(async (extent) => {
68
+ const existingKeyword =
69
+ extent.description &&
70
+ (keywords.find(
71
+ (k) => k.key === extent.description
72
+ ) as KeywordWithExtent)
73
+ if (existingKeyword) {
74
+ existingKeyword._linkedExtent = extent
75
+ return null
76
+ }
77
+ let bbox = null
78
+ if ('geometry' in extent) {
79
+ bbox = extent.geometry // FIXME: this should be a bbox too but for now it works...
80
+ } else if ('bbox' in extent) {
81
+ bbox = extent.bbox
82
+ }
83
+ const label = await firstValueFrom(
84
+ this.translateService.get('editor.record.placeKeywordWithoutLabel')
85
+ )
86
+ return {
87
+ label,
88
+ type: 'place',
89
+ ...(bbox && { bbox }),
90
+ _linkedExtent: extent,
91
+ _doNotSave: true,
92
+ } as KeywordWithExtent
93
+ })
94
+ ).then((keywords) => keywords.filter((k) => !!k))
95
+
96
+ return [...keywords, ...keywordsFromExtents]
97
+ }),
98
+ shareReplay(1)
99
+ )
100
+
101
+ constructor(
102
+ private platformService: PlatformServiceInterface,
103
+ private editorFacade: EditorFacade,
104
+ private translateService: TranslateService
105
+ ) {}
106
+
107
+ async handleKeywordDelete(keyword: Keyword) {
108
+ const spatialExtents = await firstValueFrom(this.spatialExtents$)
109
+ const shownKeywords = (await firstValueFrom(
110
+ this.shownKeywords$
111
+ )) as KeywordWithExtent[]
112
+ const newKeywords = shownKeywords.filter((k) => k !== keyword)
113
+ const linkedExtent =
114
+ '_linkedExtent' in keyword ? keyword._linkedExtent : null
115
+ const newExtents = linkedExtent
116
+ ? spatialExtents.filter((extent) => linkedExtent !== extent)
117
+ : spatialExtents
118
+ return this.emitChanges(newKeywords, newExtents)
119
+ }
120
+
121
+ async handleKeywordAdd(keyword: Keyword) {
122
+ const spatialExtents = await firstValueFrom(this.spatialExtents$)
123
+ const shownKeywords = await firstValueFrom(this.shownKeywords$)
124
+ const newKeywords = [...shownKeywords, keyword] as KeywordWithExtent[]
125
+ let newExtents = spatialExtents
126
+ if (keyword.bbox) {
127
+ newExtents = [
128
+ ...spatialExtents,
129
+ {
130
+ bbox: keyword.bbox,
131
+ description: keyword.key ?? undefined,
132
+ },
133
+ ]
134
+ }
135
+ return this.emitChanges(newKeywords, newExtents)
136
+ }
137
+
138
+ async emitChanges(
139
+ placeKeywords: KeywordWithExtent[],
140
+ spatialExtents: DatasetSpatialExtent[]
141
+ ) {
142
+ // some keywords are only present to allow control over extents; they **should not** be saved!
143
+ const filteredPlaceKeywords = placeKeywords
144
+ .filter((keyword) => !keyword._doNotSave)
145
+ .map(
146
+ ({ label, thesaurus, type }) =>
147
+ ({
148
+ label,
149
+ type,
150
+ ...(thesaurus && { thesaurus }),
151
+ } as Keyword)
152
+ )
153
+ const notPlaceKeywords = await firstValueFrom(
154
+ this.editorFacade.record$.pipe(
155
+ map((record) => record.keywords.filter((k) => k.type !== 'place'))
156
+ )
157
+ )
158
+
159
+ this.editorFacade.updateRecordField('keywords', [
160
+ ...notPlaceKeywords,
161
+ ...filteredPlaceKeywords,
162
+ ])
163
+ this.editorFacade.updateRecordField('spatialExtents', spatialExtents)
164
+ }
165
+ }
@@ -1,6 +1,32 @@
1
+ <div class="flex gap-2 mb-2">
2
+ <gn-ui-button
3
+ *ngFor="let addOption of addOptions$ | async"
4
+ (buttonClick)="onAdd(addOption.eventName)"
5
+ >
6
+ <span class="material-symbols-outlined gn-ui-icon-small"> add </span>
7
+ &nbsp;{{ addOption.buttonLabel }}</gn-ui-button
8
+ >
9
+ </div>
1
10
  <gn-ui-sortable-list
2
- [elements]="elements"
3
- (elementsChange)="onElementsChange($event)"
4
- [addOptions]="addOptions$ | async"
5
- (add)="onAdd($event)"
11
+ [items]="extents"
12
+ (itemsOrderChange)="onItemsOrderChange($event)"
13
+ [elementTemplate]="template"
6
14
  ></gn-ui-sortable-list>
15
+ <ng-template #template let-extent let-index="index">
16
+ <div class="border rounded-lg px-4 pb-4" *ngIf="extent.end === undefined">
17
+ <p class="my-2" translate>editor.record.form.temporalExtents.date</p>
18
+ <gn-ui-date-picker
19
+ [date]="extent.start"
20
+ (dateChange)="onExtentChange({ start: $event }, index)"
21
+ ></gn-ui-date-picker>
22
+ </div>
23
+ <div class="border rounded-lg px-4 pb-4" *ngIf="extent.end !== undefined">
24
+ <p class="my-2" translate>editor.record.form.temporalExtents.range</p>
25
+ <gn-ui-date-range-picker
26
+ [startDate]="extent.start"
27
+ [endDate]="extent.end"
28
+ (startDateChange)="onExtentChange({ start: $event }, index)"
29
+ (endDateChange)="onExtentChange({ end: $event }, index)"
30
+ ></gn-ui-date-range-picker>
31
+ </div>
32
+ </ng-template>
@@ -1,18 +1,20 @@
1
+ import { CommonModule } from '@angular/common'
1
2
  import {
2
3
  ChangeDetectionStrategy,
3
4
  Component,
5
+ EventEmitter,
4
6
  Input,
5
- OnDestroy,
6
- OnInit,
7
- Type,
7
+ Output,
8
8
  } from '@angular/core'
9
- import { FormArray, FormControl } from '@angular/forms'
10
- import { SortableListComponent } from '../../../../../../../../../libs/ui/elements/src'
11
- import { Subscription, combineLatest, map } from 'rxjs'
12
- import { FormFieldTemporalExtentsDateComponent } from './form-field-temporal-extents-date/form-field-temporal-extents-date.component'
13
- import { FormFieldTemporalExtentsRangeComponent } from './form-field-temporal-extents-range/form-field-temporal-extents-range.component'
14
- import { TranslateService } from '@ngx-translate/core'
15
- import { CommonModule } from '@angular/common'
9
+ import { DatasetTemporalExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
10
+ import { SortableListComponent } from '../../../../../../../../../libs/ui/layout/src'
11
+ import {
12
+ ButtonComponent,
13
+ DatePickerComponent,
14
+ DateRangePickerComponent,
15
+ } from '../../../../../../../../../libs/ui/inputs/src'
16
+ import { TranslateModule, TranslateService } from '@ngx-translate/core'
17
+ import { combineLatest, map } from 'rxjs'
16
18
 
17
19
  @Component({
18
20
  selector: 'gn-ui-form-field-temporal-extents',
@@ -20,18 +22,21 @@ import { CommonModule } from '@angular/common'
20
22
  styleUrls: ['./form-field-temporal-extents.component.css'],
21
23
  changeDetection: ChangeDetectionStrategy.OnPush,
22
24
  standalone: true,
23
- imports: [CommonModule, SortableListComponent],
25
+ imports: [
26
+ CommonModule,
27
+ ButtonComponent,
28
+ SortableListComponent,
29
+ DatePickerComponent,
30
+ DateRangePickerComponent,
31
+ TranslateModule,
32
+ ],
24
33
  })
25
- export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
26
- @Input() control!: FormControl
27
-
28
- subscription: Subscription
29
-
30
- array: FormArray = new FormArray([])
31
- elements: Array<{
32
- component: Type<any>
33
- inputs: Record<string, any>
34
- }>
34
+ export class FormFieldTemporalExtentsComponent {
35
+ extents: DatasetTemporalExtent[] = []
36
+ @Input() set value(v: Array<DatasetTemporalExtent>) {
37
+ this.extents = v
38
+ }
39
+ @Output() valueChange = new EventEmitter<Array<DatasetTemporalExtent>>()
35
40
 
36
41
  addOptions$ = combineLatest([
37
42
  this.translateService
@@ -44,87 +49,37 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
44
49
 
45
50
  constructor(private translateService: TranslateService) {}
46
51
 
47
- ngOnInit() {
48
- this.resetValueFromInput(this.control.value)
49
-
50
- this.subscription = new Subscription()
51
-
52
- this.subscription.add(
53
- this.control.valueChanges.subscribe((value) => {
54
- this.resetValueFromInput(value)
55
- })
56
- )
57
-
58
- this.subscription.add(
59
- this.array.valueChanges.subscribe((value) => {
60
- this.control.setValue(value)
61
- })
62
- )
63
- }
64
-
65
- onElementsChange(elements: any) {
66
- this.array.clear({ emitEvent: false })
67
- elements.forEach((e: any, i: number) =>
68
- this.array.push(e.inputs.control, {
69
- emitEvent: i === elements.length - 1,
70
- })
71
- )
52
+ onItemsOrderChange(extents: unknown[]) {
53
+ this.extents = extents as DatasetTemporalExtent[]
54
+ this.emitValue()
72
55
  }
73
56
 
74
57
  onAdd(eventName: string) {
75
58
  switch (eventName) {
76
59
  case 'date': {
77
- const dateControl = new FormControl({ start: new Date() })
78
- this.array.push(dateControl)
60
+ const instant = { start: new Date() }
61
+ this.extents = [...this.extents, instant]
79
62
  break
80
63
  }
81
64
  case 'range': {
82
- const rangeControl = new FormControl({
65
+ const range = {
83
66
  start: new Date(),
84
67
  end: new Date(),
85
- })
86
- this.array.push(rangeControl)
68
+ }
69
+ this.extents = [...this.extents, range]
87
70
  break
88
71
  }
89
72
  }
73
+ this.emitValue()
90
74
  }
91
75
 
92
- ngOnDestroy(): void {
93
- this.subscription.unsubscribe()
76
+ onExtentChange(extent: Partial<DatasetTemporalExtent>, index: number) {
77
+ this.extents = [...this.extents]
78
+ this.extents[index] = { ...this.extents[index], ...extent }
79
+ this.emitValue()
94
80
  }
95
81
 
96
- private resetValueFromInput(value) {
97
- this.array.clear({ emitEvent: false })
98
- this.elements = []
99
- value.forEach((v: any) => {
100
- if ('start' in v && 'end' in v) {
101
- const rangeControl = new FormControl({
102
- start: v.start,
103
- end: v.end,
104
- })
105
- this.array.push(rangeControl, { emitEvent: false })
106
- this.elements = [
107
- ...this.elements,
108
- {
109
- component: FormFieldTemporalExtentsRangeComponent,
110
- inputs: {
111
- control: rangeControl,
112
- },
113
- },
114
- ]
115
- } else {
116
- const dateControl = new FormControl({ start: v.start })
117
- this.array.push(dateControl, { emitEvent: false })
118
- this.elements = [
119
- ...this.elements,
120
- {
121
- component: FormFieldTemporalExtentsDateComponent,
122
- inputs: {
123
- control: dateControl,
124
- },
125
- },
126
- ]
127
- }
128
- })
82
+ emitValue() {
83
+ this.valueChange.emit(this.extents)
129
84
  }
130
85
  }
@@ -1,20 +1,21 @@
1
1
  import {
2
2
  ChangeDetectionStrategy,
3
3
  Component,
4
+ EventEmitter,
4
5
  Input,
5
6
  OnInit,
7
+ Output,
6
8
  } from '@angular/core'
7
- import { FormControl } from '@angular/forms'
9
+ import {
10
+ UpdateFrequency,
11
+ UpdateFrequencyCustom,
12
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
8
13
  import {
9
14
  CheckToggleComponent,
10
15
  DropdownChoice,
11
16
  DropdownSelectorComponent,
12
17
  } from '../../../../../../../../../libs/ui/inputs/src'
13
18
  import { TranslateModule, TranslateService } from '@ngx-translate/core'
14
- import {
15
- UpdateFrequency,
16
- UpdateFrequencyCustom,
17
- } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
18
19
  import { firstValueFrom } from 'rxjs'
19
20
 
20
21
  @Component({
@@ -26,23 +27,24 @@ import { firstValueFrom } from 'rxjs'
26
27
  imports: [CheckToggleComponent, DropdownSelectorComponent, TranslateModule],
27
28
  })
28
29
  export class FormFieldUpdateFrequencyComponent implements OnInit {
29
- @Input() control: FormControl<UpdateFrequency>
30
+ @Input() value: UpdateFrequency
31
+ @Output() valueChange: EventEmitter<UpdateFrequency> = new EventEmitter()
30
32
 
31
33
  protected choices: DropdownChoice[] = []
32
34
 
33
35
  get planned() {
34
- return typeof this.control.value !== 'string'
36
+ return typeof this.value !== 'string'
35
37
  }
36
38
 
37
39
  constructor(private translateService: TranslateService) {}
38
40
 
39
41
  async ngOnInit() {
40
42
  this.choices = await this.getInitialChoices()
41
- if (typeof this.control.value === 'string') {
43
+ if (typeof this.value === 'string') {
42
44
  return
43
45
  }
44
- const updatedTimes = this.control.value.updatedTimes
45
- const per = this.control.value.per
46
+ const updatedTimes = this.value.updatedTimes
47
+ const per = this.value.per
46
48
  // the update frequency is not in the list; make it appear there
47
49
  if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
48
50
  this.choices = [
@@ -61,21 +63,21 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
61
63
 
62
64
  onPlannedToggled() {
63
65
  if (this.planned) {
64
- this.control.setValue('notPlanned')
66
+ this.valueChange.emit('notPlanned')
65
67
  } else {
66
- this.control.setValue({ updatedTimes: 1, per: 'day' })
68
+ this.valueChange.emit({ updatedTimes: 1, per: 'day' })
67
69
  }
68
70
  }
69
71
 
70
72
  get selectedFrequency(): string {
71
- if (typeof this.control.value === 'string') return null
72
- const { updatedTimes, per } = this.control.value
73
+ if (typeof this.value === 'string') return null
74
+ const { updatedTimes, per } = this.value
73
75
  return `${per}.${updatedTimes}`
74
76
  }
75
77
 
76
78
  onSelectFrequencyValue(value: unknown) {
77
79
  const split = (value as string).split('.')
78
- this.control.setValue({
80
+ this.valueChange.emit({
79
81
  updatedTimes: Number(split[1]),
80
82
  per: split[0] as UpdateFrequencyCustom['per'],
81
83
  })
@@ -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,108 @@
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>
118
+ <ng-container *ngSwitchCase="'onlineResources'">
119
+ <gn-ui-form-field-online-link-resources
120
+ *ngIf="modelSpecifier === 'onlineResourceType:link'"
121
+ [metadataUuid]="uniqueIdentifier"
122
+ [value]="valueAsOnlineResources"
123
+ (valueChange)="valueChange.emit($event)"
124
+ ></gn-ui-form-field-online-link-resources>
125
+ </ng-container>
83
126
  </ng-container>
84
127
  </ng-template>