geonetwork-ui 2.4.0-dev.e6ae55aa → 2.4.0-dev.e7ff1d25

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 (254) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +5 -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 +21 -4
  8. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  9. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  10. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  11. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  12. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +131 -0
  13. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +170 -0
  14. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +3 -3
  15. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +47 -0
  16. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +21 -0
  17. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +7 -6
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +33 -9
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
  20. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  21. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  22. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +30 -3
  23. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  24. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
  25. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  26. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  27. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  28. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  29. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  30. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  31. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  32. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  33. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +40 -7
  34. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  35. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  36. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  37. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  38. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  39. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  40. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  41. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  42. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  43. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +7 -3
  44. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  45. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  46. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
  47. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
  48. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  49. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  50. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  51. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  52. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  53. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +49 -11
  54. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +18 -6
  55. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  56. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  57. package/esm2022/translations/de.json +47 -17
  58. package/esm2022/translations/en.json +40 -10
  59. package/esm2022/translations/es.json +39 -9
  60. package/esm2022/translations/fr.json +52 -22
  61. package/esm2022/translations/it.json +40 -10
  62. package/esm2022/translations/nl.json +39 -9
  63. package/esm2022/translations/pt.json +39 -9
  64. package/fesm2022/geonetwork-ui.mjs +4151 -3180
  65. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  66. package/libs/api/metadata-converter/src/index.d.ts +0 -1
  67. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  68. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  69. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  70. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  71. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  72. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  73. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  74. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  75. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  76. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  77. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +6 -1
  78. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  79. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  80. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  81. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -1
  82. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  83. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +8 -0
  84. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  85. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  86. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  87. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  88. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  89. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +47 -0
  90. 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
  91. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +17 -0
  92. 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
  93. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +11 -0
  94. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  95. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +3 -1
  96. 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
  97. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +9 -1
  98. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  99. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  100. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  101. package/libs/feature/editor/src/lib/fields.config.d.ts +7 -0
  102. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  103. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  104. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  105. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
  106. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  107. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  108. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  109. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  110. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  111. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  112. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  113. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  114. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  115. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  116. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  117. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  118. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  119. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  120. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +11 -3
  121. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  122. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  123. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  124. package/libs/ui/elements/src/index.d.ts +1 -0
  125. package/libs/ui/elements/src/index.d.ts.map +1 -1
  126. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  127. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  128. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  129. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  130. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  131. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  132. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +4 -4
  133. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  134. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  135. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  136. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  137. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  138. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
  139. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  140. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  141. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  142. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  143. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  144. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  145. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  146. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  147. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  148. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +10 -1
  149. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  150. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +6 -2
  151. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  152. package/libs/ui/widgets/src/index.d.ts +1 -0
  153. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  154. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  155. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  156. package/package.json +1 -1
  157. package/src/libs/api/metadata-converter/src/index.ts +0 -1
  158. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  159. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  160. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  161. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -2
  162. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  163. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  164. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  165. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  166. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +24 -4
  167. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  168. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -1
  169. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
  170. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  171. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  172. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  173. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  174. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +110 -19
  175. 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
  176. 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
  177. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +271 -0
  178. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +1 -1
  179. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  180. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  181. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +59 -0
  182. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  183. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  184. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +22 -0
  185. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +8 -7
  186. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +18 -1
  187. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +30 -1
  188. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +1 -1
  189. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  190. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  191. package/src/libs/feature/editor/src/lib/fields.config.ts +32 -2
  192. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  193. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  194. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  195. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  196. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  197. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  198. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  199. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  200. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  201. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  202. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  203. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  204. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  205. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +2 -1
  206. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +52 -3
  207. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  208. package/src/libs/ui/elements/src/index.ts +1 -0
  209. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  210. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  211. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  212. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  213. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  214. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  215. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  216. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  217. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  218. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  219. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -1
  220. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +8 -4
  221. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  222. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  223. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  224. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  225. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
  226. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
  227. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
  228. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  229. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
  230. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  231. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  232. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  233. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  234. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  235. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  236. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  237. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  238. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +10 -1
  239. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +55 -3
  240. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -2
  241. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +9 -9
  242. package/src/libs/ui/widgets/src/index.ts +1 -0
  243. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  244. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  245. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  246. package/tailwind.base.css +18 -5
  247. package/translations/de.json +47 -17
  248. package/translations/en.json +40 -10
  249. package/translations/es.json +39 -9
  250. package/translations/fr.json +52 -22
  251. package/translations/it.json +40 -10
  252. package/translations/nl.json +39 -9
  253. package/translations/pt.json +39 -9
  254. package/translations/sk.json +40 -10
@@ -0,0 +1,271 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ ChangeDetectorRef,
5
+ Component,
6
+ Input,
7
+ OnDestroy,
8
+ OnInit,
9
+ } from '@angular/core'
10
+ import { FormControl } from '@angular/forms'
11
+ import {
12
+ AutocompleteComponent,
13
+ DropdownSelectorComponent,
14
+ UiInputsModule,
15
+ } from '../../../../../../../../../libs/ui/inputs/src'
16
+ import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
17
+ import {
18
+ Individual,
19
+ Organization,
20
+ Role,
21
+ RoleLabels,
22
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
23
+ import { TranslateModule } from '@ngx-translate/core'
24
+ import {
25
+ debounceTime,
26
+ distinctUntilChanged,
27
+ firstValueFrom,
28
+ Observable,
29
+ Subscription,
30
+ switchMap,
31
+ } from 'rxjs'
32
+ import { UserModel } from '../../../../../../../../../libs/common/domain/src/lib/model/user'
33
+ import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
34
+ import { OrganizationsServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/organizations.service.interface'
35
+ import { ContactCardComponent } from '../../../contact-card/contact-card.component'
36
+ import {
37
+ DynamicElement,
38
+ SortableListComponent,
39
+ } from '../../../../../../../../../libs/ui/elements/src'
40
+ import { createFuzzyFilter } from '../../../../../../../../../libs/util/shared/src'
41
+ import { map } from 'rxjs/operators'
42
+
43
+ @Component({
44
+ selector: 'gn-ui-form-field-contacts-for-resource',
45
+ templateUrl: './form-field-contacts-for-resource.component.html',
46
+ styleUrls: ['./form-field-contacts-for-resource.component.css'],
47
+ changeDetection: ChangeDetectionStrategy.OnPush,
48
+ standalone: true,
49
+ imports: [
50
+ DropdownSelectorComponent,
51
+ UiInputsModule,
52
+ CommonModule,
53
+ UiWidgetsModule,
54
+ AutocompleteComponent,
55
+ TranslateModule,
56
+ ContactCardComponent,
57
+ SortableListComponent,
58
+ ],
59
+ })
60
+ export class FormFieldContactsForResourceComponent
61
+ implements OnInit, OnDestroy
62
+ {
63
+ @Input() control: FormControl<Individual[]>
64
+
65
+ subscription: Subscription = new Subscription()
66
+
67
+ allUsers$: Observable<UserModel[]>
68
+
69
+ contactsForRessourceByRole: Map<Role, Individual[]> = new Map()
70
+
71
+ contactsAsDynElemByRole: Map<Role, DynamicElement[]> = new Map()
72
+
73
+ rolesToPick: Role[] = [
74
+ 'resource_provider',
75
+ 'custodian',
76
+ 'owner',
77
+ 'point_of_contact',
78
+ 'author',
79
+ ]
80
+
81
+ roleSectionsToDisplay: Role[] = []
82
+
83
+ allOrganizations: Map<string, Organization> = new Map()
84
+
85
+ constructor(
86
+ private platformServiceInterface: PlatformServiceInterface,
87
+ private organizationsServiceInterface: OrganizationsServiceInterface,
88
+ private changeDetectorRef: ChangeDetectorRef
89
+ ) {
90
+ this.allUsers$ = this.platformServiceInterface.getUsers()
91
+ }
92
+
93
+ async ngOnInit(): Promise<void> {
94
+ this.allOrganizations = new Map<string, Organization>(
95
+ (
96
+ await firstValueFrom(this.organizationsServiceInterface.organisations$)
97
+ ).map((organization) => [organization.name, organization])
98
+ )
99
+ this.updateContactsForRessource()
100
+ this.manageRoleSectionsToDisplay(this.control.value)
101
+ this.filterRolesToPick()
102
+
103
+ this.changeDetectorRef.markForCheck()
104
+
105
+ this.subscription.add(
106
+ this.control.valueChanges.subscribe((contactsForResource) => {
107
+ this.updateContactsForRessource()
108
+ this.manageRoleSectionsToDisplay(contactsForResource)
109
+ this.filterRolesToPick()
110
+
111
+ this.changeDetectorRef.markForCheck()
112
+ })
113
+ )
114
+ }
115
+
116
+ addRoleToDisplay(roleToAdd: string) {
117
+ this.roleSectionsToDisplay.push(roleToAdd)
118
+ this.filterRolesToPick()
119
+ }
120
+
121
+ filterRolesToPick() {
122
+ this.rolesToPick = this.rolesToPick.filter(
123
+ (role) => !this.roleSectionsToDisplay.includes(role)
124
+ )
125
+ }
126
+
127
+ updateContactsForRessource() {
128
+ this.contactsForRessourceByRole = this.control.value.reduce(
129
+ (acc, contact) => {
130
+ const completeOrganization = this.allOrganizations.get(
131
+ contact.organization.name
132
+ )
133
+
134
+ const updatedContact = {
135
+ ...contact,
136
+ organization:
137
+ completeOrganization ??
138
+ ({ name: contact.organization.name } as Organization),
139
+ }
140
+
141
+ if (!acc.has(contact.role)) {
142
+ acc.set(contact.role, [])
143
+ }
144
+
145
+ acc.get(contact.role).push(updatedContact)
146
+
147
+ return acc
148
+ },
149
+ new Map<Role, Individual[]>()
150
+ )
151
+
152
+ this.contactsAsDynElemByRole = this.control.value.reduce((acc, contact) => {
153
+ const completeOrganization = this.allOrganizations.get(
154
+ contact.organization.name
155
+ )
156
+
157
+ const updatedContact = {
158
+ ...contact,
159
+ organization:
160
+ completeOrganization ??
161
+ ({ name: contact.organization.name } as Organization),
162
+ }
163
+
164
+ const contactAsDynElem = {
165
+ component: ContactCardComponent,
166
+ inputs: {
167
+ contact: updatedContact,
168
+ removable: false,
169
+ },
170
+ } as DynamicElement
171
+
172
+ if (!acc.has(contact.role)) {
173
+ acc.set(contact.role, [])
174
+ }
175
+
176
+ acc.get(contact.role).push(contactAsDynElem)
177
+
178
+ return acc
179
+ }, new Map<Role, DynamicElement[]>())
180
+
181
+ this.changeDetectorRef.markForCheck()
182
+ }
183
+
184
+ manageRoleSectionsToDisplay(contactsForResource: Individual[]) {
185
+ const roles = contactsForResource.map(
186
+ (contact: Individual) => contact.role
187
+ ) as Role[]
188
+
189
+ roles.forEach((role: Role) => {
190
+ if (!this.roleSectionsToDisplay.includes(role)) {
191
+ this.roleSectionsToDisplay.push(role)
192
+ }
193
+ })
194
+ }
195
+
196
+ removeContact(index: number) {
197
+ const newContactsforRessource = this.control.value.filter(
198
+ (_, i) => i !== index
199
+ )
200
+ this.control.setValue(newContactsforRessource)
201
+ }
202
+
203
+ handleContactsChanged(event: DynamicElement[]) {
204
+ const newContactsOrdered = event.map(
205
+ (contactAsDynElem) => contactAsDynElem.inputs['contact']
206
+ ) as Individual[]
207
+
208
+ const role = newContactsOrdered[0].role
209
+
210
+ this.contactsForRessourceByRole.set(role, newContactsOrdered)
211
+
212
+ const newControlValue = Array.from(
213
+ this.contactsForRessourceByRole.values()
214
+ ).flat()
215
+
216
+ this.control.setValue(newControlValue)
217
+ }
218
+
219
+ protected roleToLabel(role: string): string {
220
+ return RoleLabels.get(role)
221
+ }
222
+
223
+ /**
224
+ * gn-ui-autocomplete
225
+ */
226
+ displayWithFn: (user: UserModel) => string = (user) =>
227
+ `${user.name} ${user.surname} ${
228
+ user.organisation ? `(${user.organisation})` : ''
229
+ }`
230
+
231
+ /**
232
+ * gn-ui-autocomplete
233
+ */
234
+ autoCompleteAction = (query: string) => {
235
+ const fuzzyFilter = createFuzzyFilter(query)
236
+ return this.allUsers$.pipe(
237
+ switchMap((users) => [
238
+ users.filter((user) => fuzzyFilter(user.username)),
239
+ ]),
240
+ map((results) => results.slice(0, 10)),
241
+ debounceTime(300),
242
+ distinctUntilChanged()
243
+ )
244
+ }
245
+
246
+ /**
247
+ * gn-ui-autocomplete
248
+ */
249
+ addContact(contact: UserModel, role: string) {
250
+ const newContactsForRessource = {
251
+ firstName: contact.name ?? '',
252
+ lastName: contact.surname ?? '',
253
+ organization:
254
+ this.allOrganizations.get(contact.organisation) ??
255
+ ({ name: contact.organisation } as Organization),
256
+ email: contact.email ?? '',
257
+ role,
258
+ address: '',
259
+ phone: '',
260
+ position: '',
261
+ } as Individual
262
+
263
+ const newControlValue = [...this.control.value, newContactsForRessource]
264
+
265
+ this.control.setValue(newControlValue)
266
+ }
267
+
268
+ ngOnDestroy(): void {
269
+ this.subscription.unsubscribe()
270
+ }
271
+ }
@@ -4,7 +4,7 @@
4
4
  [displayWithFn]="displayWithFn"
5
5
  [action]="autoCompleteAction"
6
6
  (itemSelected)="handleItemSelection($event)"
7
- [clearOnSelection]="true"
7
+ [preventCompleteOnSelection]="true"
8
8
  [minCharacterCount]="0"
9
9
  [allowSubmit]="false"
10
10
  ></gn-ui-autocomplete>
@@ -0,0 +1,6 @@
1
+ <gn-ui-check-toggle
2
+ [label]="'editor.record.form.classification.opendata' | translate"
3
+ [value]="value"
4
+ (toggled)="onOpenDataToggled($event)"
5
+ data-cy="openDataToggle"
6
+ ></gn-ui-check-toggle>
@@ -0,0 +1,59 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ OnChanges,
7
+ OnInit,
8
+ Output,
9
+ SimpleChanges,
10
+ } from '@angular/core'
11
+ import { FormControl } from '@angular/forms'
12
+ import { CheckToggleComponent } from '../../../../../../../../../libs/ui/inputs/src'
13
+ import { TranslateModule } from '@ngx-translate/core'
14
+ import { OPEN_DATA_LICENSES } from './../../../../fields.config'
15
+ import { Subscription } from 'rxjs'
16
+
17
+ @Component({
18
+ selector: 'gn-ui-form-field-open-data',
19
+ templateUrl: './form-field-open-data.component.html',
20
+ styleUrls: ['./form-field-open-data.component.css'],
21
+ standalone: true,
22
+ imports: [CheckToggleComponent, TranslateModule],
23
+ changeDetection: ChangeDetectionStrategy.OnPush,
24
+ })
25
+ export class FormFieldOpenDataComponent implements OnInit {
26
+ @Input() control: FormControl
27
+ value = false
28
+ @Output() visibilityChange = new EventEmitter<boolean>()
29
+ subscription: Subscription
30
+
31
+ get config() {
32
+ return OPEN_DATA_LICENSES
33
+ }
34
+
35
+ ngOnInit() {
36
+ this.initToggle()
37
+ this.subscription = new Subscription()
38
+
39
+ this.subscription.add(
40
+ this.control.valueChanges.subscribe((value) => {
41
+ this.value = this.config.includes(value[0].text)
42
+ this.visibilityChange.emit(this.value)
43
+ })
44
+ )
45
+ }
46
+
47
+ initToggle() {
48
+ this.value = this.config.includes(this.control.value[0].text)
49
+ this.visibilityChange.emit(this.value)
50
+ }
51
+
52
+ onOpenDataToggled(boolean) {
53
+ if (boolean) {
54
+ this.control.setValue([{ text: this.config[0] }])
55
+ }
56
+ this.value = !this.value
57
+ this.visibilityChange.emit(boolean)
58
+ }
59
+ }
@@ -0,0 +1,5 @@
1
+ <gn-ui-overview-upload
2
+ [metadataUuid]="metadataUuid"
3
+ [formControl]="control"
4
+ (overviewChange)="handleOverviewChange($event)"
5
+ ></gn-ui-overview-upload>
@@ -0,0 +1,22 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
3
+ import { OverviewUploadComponent } from '../../../overview-upload/overview-upload.component'
4
+ import { FormControl } from '@angular/forms'
5
+ import { GraphicOverview } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
6
+
7
+ @Component({
8
+ selector: 'gn-ui-form-field-overviews',
9
+ templateUrl: './form-field-overviews.component.html',
10
+ styleUrls: ['./form-field-overviews.component.css'],
11
+ changeDetection: ChangeDetectionStrategy.OnPush,
12
+ standalone: true,
13
+ imports: [CommonModule, OverviewUploadComponent],
14
+ })
15
+ export class FormFieldOverviewsComponent {
16
+ @Input() metadataUuid: string
17
+ @Input() control!: FormControl
18
+
19
+ handleOverviewChange(overView: GraphicOverview | null) {
20
+ this.control.setValue(overView ? [overView] : [])
21
+ }
22
+ }
@@ -62,9 +62,9 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
62
62
  )
63
63
  }
64
64
 
65
- onElementsChange(elements: any) {
65
+ onElementsChange(elements: { inputs: Record<string, unknown> }[]) {
66
66
  this.array.clear({ emitEvent: false })
67
- elements.forEach((e: any, i: number) =>
67
+ elements.forEach((e, i) =>
68
68
  this.array.push(e.inputs.control, {
69
69
  emitEvent: i === elements.length - 1,
70
70
  })
@@ -95,7 +95,7 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
95
95
 
96
96
  private resetValueFromInput(value) {
97
97
  this.array.clear({ emitEvent: false })
98
- this.elements = []
98
+ let newElements = []
99
99
  value.forEach((v: any) => {
100
100
  if ('start' in v && 'end' in v) {
101
101
  const rangeControl = new FormControl({
@@ -103,8 +103,8 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
103
103
  end: v.end,
104
104
  })
105
105
  this.array.push(rangeControl, { emitEvent: false })
106
- this.elements = [
107
- ...this.elements,
106
+ newElements = [
107
+ ...newElements,
108
108
  {
109
109
  component: FormFieldTemporalExtentsRangeComponent,
110
110
  inputs: {
@@ -115,8 +115,8 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
115
115
  } else {
116
116
  const dateControl = new FormControl({ start: v.start })
117
117
  this.array.push(dateControl, { emitEvent: false })
118
- this.elements = [
119
- ...this.elements,
118
+ newElements = [
119
+ ...newElements,
120
120
  {
121
121
  component: FormFieldTemporalExtentsDateComponent,
122
122
  inputs: {
@@ -126,5 +126,6 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
126
126
  ]
127
127
  }
128
128
  })
129
+ this.elements = newElements
129
130
  }
130
131
  }
@@ -1,4 +1,10 @@
1
- <div class="flex flex-col h-full">
1
+ <ng-container *ngIf="isOpenData">
2
+ <gn-ui-form-field-open-data
3
+ [control]="formControl"
4
+ (visibilityChange)="onVisibilityChange($event)"
5
+ ></gn-ui-form-field-open-data>
6
+ </ng-container>
7
+ <div class="flex flex-col h-full" *ngIf="!isHidden">
2
8
  <ng-container *ngIf="withoutWrapper; else withGenericWrapper">
3
9
  <ng-container *ngTemplateOutlet="fieldContent"></ng-container>
4
10
  </ng-container>
@@ -76,9 +82,20 @@
76
82
  <ng-container *ngIf="isSpatialExtentField">
77
83
  <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
78
84
  </ng-container>
85
+ <ng-container *ngIf="isGraphicOverview">
86
+ <gn-ui-form-field-overviews
87
+ [control]="formControl"
88
+ [metadataUuid]="metadataUuid$ | async"
89
+ ></gn-ui-form-field-overviews>
90
+ </ng-container>
79
91
  <ng-container *ngIf="isKeywords">
80
92
  <gn-ui-form-field-keywords
81
93
  [control]="formControl"
82
94
  ></gn-ui-form-field-keywords>
83
95
  </ng-container>
96
+ <ng-container *ngIf="isContactsForResource">
97
+ <gn-ui-form-field-contacts-for-resource
98
+ [control]="formControl"
99
+ ></gn-ui-form-field-contacts-for-resource>
100
+ </ng-container>
84
101
  </ng-template>
@@ -3,6 +3,7 @@ import {
3
3
  ChangeDetectionStrategy,
4
4
  Component,
5
5
  ElementRef,
6
+ EventEmitter,
6
7
  Input,
7
8
  Output,
8
9
  ViewChild,
@@ -28,7 +29,12 @@ import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/for
28
29
  import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
29
30
  import { CatalogRecordKeys } from '../../../../../../../../libs/common/domain/src/lib/model/record'
30
31
  import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
32
+ import { FormFieldOverviewsComponent } from './form-field-overviews/form-field-overviews.component'
33
+ import { map, take } from 'rxjs/operators'
34
+ import { EditorFacade } from '../../../+state/editor.facade'
31
35
  import { FormFieldConfig } from '../../../models'
36
+ import { FormFieldContactsForResourceComponent } from './form-field-contacts-for-resource/form-field-contacts-for-resource.component'
37
+ import { FormFieldOpenDataComponent } from './form-field-open-data/form-field-open-data.component'
32
38
 
33
39
  @Component({
34
40
  selector: 'gn-ui-form-field',
@@ -55,6 +61,9 @@ import { FormFieldConfig } from '../../../models'
55
61
  FormFieldArrayComponent,
56
62
  FormFieldKeywordsComponent,
57
63
  TranslateModule,
64
+ FormFieldOverviewsComponent,
65
+ FormFieldContactsForResourceComponent,
66
+ FormFieldOpenDataComponent,
58
67
  ],
59
68
  })
60
69
  export class FormFieldComponent {
@@ -67,12 +76,18 @@ export class FormFieldComponent {
67
76
  }
68
77
 
69
78
  @Output() valueChange: Observable<unknown>
79
+ isHidden = false
70
80
 
71
81
  @ViewChild('titleInput') titleInput: ElementRef
72
82
 
83
+ metadataUuid$ = this.facade.record$.pipe(
84
+ take(1),
85
+ map((record) => record.uniqueIdentifier)
86
+ )
87
+
73
88
  formControl = new FormControl()
74
89
 
75
- constructor() {
90
+ constructor(private facade: EditorFacade) {
76
91
  this.valueChange = this.formControl.valueChanges
77
92
  }
78
93
 
@@ -80,6 +95,10 @@ export class FormFieldComponent {
80
95
  this.titleInput.nativeElement.children[0].focus()
81
96
  }
82
97
 
98
+ onVisibilityChange(visibility: boolean) {
99
+ this.isHidden = visibility
100
+ }
101
+
83
102
  get isTitle() {
84
103
  return this.model === 'title'
85
104
  }
@@ -101,6 +120,9 @@ export class FormFieldComponent {
101
120
  get isSpatialExtentField() {
102
121
  return this.model === 'spatialExtents'
103
122
  }
123
+ get isGraphicOverview() {
124
+ return this.model === 'overviews'
125
+ }
104
126
  get isSimpleField() {
105
127
  return this.model === 'uniqueIdentifier' || this.model === 'recordUpdated'
106
128
  }
@@ -110,8 +132,15 @@ export class FormFieldComponent {
110
132
  get isKeywords() {
111
133
  return this.model === 'keywords'
112
134
  }
135
+ get isContactsForResource() {
136
+ return this.model === 'contactsForResource'
137
+ }
113
138
 
114
139
  get withoutWrapper() {
115
140
  return this.model === 'title' || this.model === 'abstract'
116
141
  }
142
+
143
+ get isOpenData() {
144
+ return this.model === 'licenses'
145
+ }
117
146
  }
@@ -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 }}
@@ -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,20 @@ 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
+
86
100
  /************************************************************
87
101
  *************** SECTIONS *****************
88
102
  ************************************************************
@@ -90,7 +104,11 @@ export const RECORD_ABSTRACT_FIELD: EditorField = {
90
104
 
91
105
  export const TITLE_SECTION: EditorSection = {
92
106
  hidden: false,
93
- fields: [RECORD_TITLE_FIELD, RECORD_ABSTRACT_FIELD],
107
+ fields: [
108
+ RECORD_TITLE_FIELD,
109
+ RECORD_ABSTRACT_FIELD,
110
+ RECORD_GRAPHICAL_OVERVIEW_FIELD,
111
+ ],
94
112
  }
95
113
 
96
114
  export const ABOUT_SECTION: EditorSection = {
@@ -146,7 +164,7 @@ export const DATA_MANAGERS_SECTION: EditorSection = {
146
164
  labelKey: marker('editor.record.form.section.dataManagers.label'),
147
165
  descriptionKey: marker('editor.record.form.section.dataManagers.description'),
148
166
  hidden: false,
149
- fields: [],
167
+ fields: [CONTACTS_FOR_RESOURCE_FIELD],
150
168
  }
151
169
 
152
170
  export const DATA_POINT_OF_CONTACT_SECTION: EditorSection = {
@@ -183,3 +201,15 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
183
201
  },
184
202
  ],
185
203
  }
204
+
205
+ /************************************************************
206
+ *************** LICENSES *****************
207
+ ************************************************************
208
+ */
209
+ export const OPEN_DATA_LICENSES: string[] = [
210
+ 'etalab',
211
+ 'etalab-v2',
212
+ 'odbl',
213
+ 'odc-by',
214
+ 'pddl',
215
+ ]
@@ -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) {}