geonetwork-ui 2.4.0-dev.78565730 → 2.4.0-dev.7a893adc

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. package/esm2022/libs/api/metadata-converter/src/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
  3. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -5
  4. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
  7. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +21 -4
  9. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
  10. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +11 -1
  11. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  12. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  13. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  14. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  15. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  16. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -1
  17. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
  18. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  20. package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +96 -0
  21. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +164 -0
  22. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -41
  23. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  24. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  25. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  26. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +28 -0
  27. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  28. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  29. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  30. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
  31. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +49 -52
  32. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
  33. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +37 -43
  34. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +5 -3
  35. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  36. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  37. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +37 -4
  38. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -1
  39. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  40. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
  41. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  42. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  43. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  44. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  45. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  46. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  47. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  48. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  49. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +40 -7
  50. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
  51. package/esm2022/libs/ui/elements/src/index.mjs +2 -1
  52. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  53. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  54. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  55. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  56. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  57. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  58. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  59. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +6 -10
  60. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
  61. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  62. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  63. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  64. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
  65. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  66. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
  67. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  68. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  69. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  70. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  71. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  72. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  73. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +49 -11
  74. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +18 -6
  75. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  76. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  77. package/esm2022/translations/de.json +59 -17
  78. package/esm2022/translations/en.json +52 -10
  79. package/esm2022/translations/es.json +51 -9
  80. package/esm2022/translations/fr.json +63 -21
  81. package/esm2022/translations/it.json +52 -10
  82. package/esm2022/translations/nl.json +51 -9
  83. package/esm2022/translations/pt.json +51 -9
  84. package/fesm2022/geonetwork-ui.mjs +4578 -3282
  85. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  86. package/libs/api/metadata-converter/src/index.d.ts +0 -1
  87. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  88. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  89. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  90. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  91. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +8 -1
  92. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  93. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  94. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  95. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
  96. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  97. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  98. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  99. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +6 -1
  100. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  101. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  102. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +1 -0
  103. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  104. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  105. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  106. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +3 -1
  107. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  108. package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
  109. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  110. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +8 -0
  111. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  112. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
  113. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  114. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  115. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  116. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
  117. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  118. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  119. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  120. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  121. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  122. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
  123. package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +1 -0
  124. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +44 -0
  125. 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
  126. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
  127. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  129. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  131. 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
  132. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  133. 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
  134. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +13 -0
  135. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  136. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  137. 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
  138. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  139. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  140. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  141. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  142. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
  143. 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
  144. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +15 -15
  145. 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
  146. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  147. 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
  148. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +15 -19
  149. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  150. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +3 -2
  151. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  152. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  153. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  154. package/libs/feature/editor/src/lib/fields.config.d.ts +8 -0
  155. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  156. package/libs/feature/editor/src/lib/services/editor.service.d.ts +1 -0
  157. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  158. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  159. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  160. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +1 -1
  161. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  162. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  163. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  164. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  165. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  166. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  167. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  168. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  169. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  170. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  171. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  172. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  173. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  174. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  175. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +11 -3
  176. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  177. package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
  178. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  179. package/libs/ui/elements/src/index.d.ts +1 -0
  180. package/libs/ui/elements/src/index.d.ts.map +1 -1
  181. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  182. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  183. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  184. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  185. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  186. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  187. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +5 -10
  188. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
  189. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
  190. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  191. package/libs/ui/inputs/src/index.d.ts +1 -0
  192. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  193. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  194. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  195. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  196. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  197. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
  198. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  199. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
  200. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  201. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  202. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  203. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  204. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  205. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  206. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  207. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  208. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  209. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +10 -1
  210. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  211. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +6 -2
  212. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  213. package/libs/ui/widgets/src/index.d.ts +1 -0
  214. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  215. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  216. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  217. package/package.json +1 -1
  218. package/src/libs/api/metadata-converter/src/index.ts +0 -1
  219. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -1
  220. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
  221. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
  222. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
  223. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  224. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +6 -2
  225. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
  226. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  227. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
  228. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  229. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +24 -4
  230. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
  231. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +43 -12
  232. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  233. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
  234. package/src/libs/common/domain/src/lib/platform.service.interface.ts +4 -0
  235. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
  236. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
  237. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +15 -0
  238. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +4 -0
  239. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
  240. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  241. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  242. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css +0 -0
  243. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  244. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  245. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
  246. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +74 -31
  247. 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
  248. 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
  249. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +249 -0
  250. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
  251. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -51
  252. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  253. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
  254. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  255. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  256. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  257. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  258. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  259. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  260. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
  261. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +33 -0
  262. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  263. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  264. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  265. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  266. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  267. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  268. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
  269. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
  270. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +9 -2
  271. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +59 -70
  272. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  273. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +103 -68
  274. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +43 -43
  275. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +2 -1
  276. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +7 -2
  277. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  278. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  279. package/src/libs/feature/editor/src/lib/fields.config.ts +40 -3
  280. package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -0
  281. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  282. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  283. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  284. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  285. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  286. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  287. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  288. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  289. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  290. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  291. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  292. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  293. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  294. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +2 -1
  295. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +52 -3
  296. package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
  297. package/src/libs/ui/elements/src/index.ts +1 -0
  298. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  299. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  300. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  301. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  302. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  303. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  304. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  305. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  306. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  307. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  308. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -10
  309. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +7 -7
  310. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
  311. package/src/libs/ui/inputs/src/index.ts +1 -0
  312. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  313. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  314. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  315. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  316. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
  317. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
  318. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
  319. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  320. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
  321. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  322. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  323. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  324. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  325. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  326. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  327. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  328. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  329. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  330. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +10 -1
  331. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +55 -3
  332. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -2
  333. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +9 -9
  334. package/src/libs/ui/widgets/src/index.ts +1 -0
  335. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  336. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  337. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  338. package/tailwind.base.css +18 -5
  339. package/translations/de.json +59 -17
  340. package/translations/en.json +52 -10
  341. package/translations/es.json +51 -9
  342. package/translations/fr.json +63 -21
  343. package/translations/it.json +52 -10
  344. package/translations/nl.json +51 -9
  345. package/translations/pt.json +51 -9
  346. package/translations/sk.json +52 -10
@@ -1,41 +1,40 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./text-input/text-input.component";
3
- import * as i2 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
4
- import * as i3 from "./chips-input/chips-input.component";
5
- import * as i4 from "./navigation-button/navigation-button.component";
6
- import * as i5 from "./star-toggle/star-toggle.component";
7
- import * as i6 from "./dropdown-multiselect/dropdown-multiselect.component";
8
- import * as i7 from "./viewport-intersector/viewport-intersector.component";
9
- import * as i8 from "./copy-text-button/copy-text-button.component";
10
- import * as i9 from "./checkbox/checkbox.component";
11
- import * as i10 from "./search-input/search-input.component";
12
- import * as i11 from "@angular/common";
13
- import * as i12 from "@ngx-translate/core";
14
- import * as i13 from "ngx-dropzone";
15
- import * as i14 from "@angular/forms";
16
- import * as i15 from "ngx-chips";
17
- import * as i16 from "../../../../util/shared/src/lib/util-shared.module";
18
- import * as i17 from "@angular/material/autocomplete";
19
- import * as i18 from "@angular/material/icon";
20
- import * as i19 from "../../../widgets/src/lib/ui-widgets.module";
21
- import * as i20 from "@angular/cdk/overlay";
22
- import * as i21 from "@angular/material/checkbox";
23
- import * as i22 from "@angular/material/tooltip";
24
- import * as i23 from "@angular/material/form-field";
25
- import * as i24 from "@angular/material/input";
26
- import * as i25 from "@angular/material/datepicker";
27
- import * as i26 from "@angular/material/core";
28
- import * as i27 from "./editable-label/editable-label.directive";
29
- import * as i28 from "./text-area/text-area.component";
30
- import * as i29 from "./button/button.component";
31
- import * as i30 from "./image-input/image-input.component";
32
- import * as i31 from "./dropdown-selector/dropdown-selector.component";
33
- import * as i32 from "./date-range-picker/date-range-picker.component";
34
- import * as i33 from "./check-toggle/check-toggle.component";
35
- import * as i34 from "./badge/badge.component";
2
+ import * as i1 from "./drag-and-drop-file-input/drag-and-drop-file-input.component";
3
+ import * as i2 from "./chips-input/chips-input.component";
4
+ import * as i3 from "./navigation-button/navigation-button.component";
5
+ import * as i4 from "./star-toggle/star-toggle.component";
6
+ import * as i5 from "./dropdown-multiselect/dropdown-multiselect.component";
7
+ import * as i6 from "./viewport-intersector/viewport-intersector.component";
8
+ import * as i7 from "./copy-text-button/copy-text-button.component";
9
+ import * as i8 from "./checkbox/checkbox.component";
10
+ import * as i9 from "./search-input/search-input.component";
11
+ import * as i10 from "@angular/common";
12
+ import * as i11 from "@ngx-translate/core";
13
+ import * as i12 from "ngx-dropzone";
14
+ import * as i13 from "@angular/forms";
15
+ import * as i14 from "ngx-chips";
16
+ import * as i15 from "../../../../util/shared/src/lib/util-shared.module";
17
+ import * as i16 from "@angular/material/autocomplete";
18
+ import * as i17 from "@angular/material/icon";
19
+ import * as i18 from "../../../widgets/src/lib/ui-widgets.module";
20
+ import * as i19 from "@angular/cdk/overlay";
21
+ import * as i20 from "@angular/material/checkbox";
22
+ import * as i21 from "@angular/material/tooltip";
23
+ import * as i22 from "@angular/material/form-field";
24
+ import * as i23 from "@angular/material/input";
25
+ import * as i24 from "@angular/material/datepicker";
26
+ import * as i25 from "@angular/material/core";
27
+ import * as i26 from "./editable-label/editable-label.directive";
28
+ import * as i27 from "./text-area/text-area.component";
29
+ import * as i28 from "./button/button.component";
30
+ import * as i29 from "./image-input/image-input.component";
31
+ import * as i30 from "./dropdown-selector/dropdown-selector.component";
32
+ import * as i31 from "./date-range-picker/date-range-picker.component";
33
+ import * as i32 from "./check-toggle/check-toggle.component";
34
+ import * as i33 from "./badge/badge.component";
36
35
  export declare class UiInputsModule {
37
36
  static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
38
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.TextInputComponent, typeof i2.DragAndDropFileInputComponent, typeof i3.ChipsInputComponent, typeof i4.NavigationButtonComponent, typeof i5.StarToggleComponent, typeof i6.DropdownMultiselectComponent, typeof i7.ViewportIntersectorComponent, typeof i8.CopyTextButtonComponent, typeof i9.CheckboxComponent, typeof i10.SearchInputComponent], [typeof i11.CommonModule, typeof i12.TranslateModule, typeof i13.NgxDropzoneModule, typeof i14.FormsModule, typeof i14.ReactiveFormsModule, typeof i15.TagInputModule, typeof i16.UtilSharedModule, typeof i17.MatAutocompleteModule, typeof i18.MatIconModule, typeof i19.UiWidgetsModule, typeof i20.OverlayModule, typeof i21.MatCheckboxModule, typeof i22.MatTooltipModule, typeof i23.MatFormFieldModule, typeof i24.MatInputModule, typeof i25.MatDatepickerModule, typeof i26.MatNativeDateModule, typeof i27.EditableLabelDirective, typeof i28.TextAreaComponent, typeof i29.ButtonComponent, typeof i30.ImageInputComponent, typeof i31.DropdownSelectorComponent, typeof i32.DateRangePickerComponent, typeof i33.CheckToggleComponent, typeof i34.BadgeComponent], [typeof i31.DropdownSelectorComponent, typeof i29.ButtonComponent, typeof i1.TextInputComponent, typeof i2.DragAndDropFileInputComponent, typeof i28.TextAreaComponent, typeof i3.ChipsInputComponent, typeof i4.NavigationButtonComponent, typeof i5.StarToggleComponent, typeof i6.DropdownMultiselectComponent, typeof i7.ViewportIntersectorComponent, typeof i33.CheckToggleComponent, typeof i8.CopyTextButtonComponent, typeof i9.CheckboxComponent, typeof i10.SearchInputComponent, typeof i32.DateRangePickerComponent, typeof i27.EditableLabelDirective, typeof i30.ImageInputComponent, typeof i34.BadgeComponent]>;
37
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DragAndDropFileInputComponent, typeof i2.ChipsInputComponent, typeof i3.NavigationButtonComponent, typeof i4.StarToggleComponent, typeof i5.DropdownMultiselectComponent, typeof i6.ViewportIntersectorComponent, typeof i7.CopyTextButtonComponent, typeof i8.CheckboxComponent, typeof i9.SearchInputComponent], [typeof i10.CommonModule, typeof i11.TranslateModule, typeof i12.NgxDropzoneModule, typeof i13.FormsModule, typeof i13.ReactiveFormsModule, typeof i14.TagInputModule, typeof i15.UtilSharedModule, typeof i16.MatAutocompleteModule, typeof i17.MatIconModule, typeof i18.UiWidgetsModule, typeof i19.OverlayModule, typeof i20.MatCheckboxModule, typeof i21.MatTooltipModule, typeof i22.MatFormFieldModule, typeof i23.MatInputModule, typeof i24.MatDatepickerModule, typeof i25.MatNativeDateModule, typeof i26.EditableLabelDirective, typeof i27.TextAreaComponent, typeof i28.ButtonComponent, typeof i29.ImageInputComponent, typeof i30.DropdownSelectorComponent, typeof i31.DateRangePickerComponent, typeof i32.CheckToggleComponent, typeof i33.BadgeComponent], [typeof i30.DropdownSelectorComponent, typeof i28.ButtonComponent, typeof i1.DragAndDropFileInputComponent, typeof i27.TextAreaComponent, typeof i2.ChipsInputComponent, typeof i3.NavigationButtonComponent, typeof i4.StarToggleComponent, typeof i5.DropdownMultiselectComponent, typeof i6.ViewportIntersectorComponent, typeof i32.CheckToggleComponent, typeof i7.CopyTextButtonComponent, typeof i8.CheckboxComponent, typeof i9.SearchInputComponent, typeof i31.DateRangePickerComponent, typeof i26.EditableLabelDirective, typeof i29.ImageInputComponent, typeof i33.BadgeComponent]>;
39
38
  static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
40
39
  }
41
40
  //# sourceMappingURL=ui-inputs.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,qBA6Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
1
+ {"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBA2Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -0,0 +1,18 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class UrlInputComponent {
5
+ private cd;
6
+ value: string;
7
+ extraClass: string;
8
+ placeholder: string;
9
+ disabled: boolean;
10
+ rawChange: Subject<string>;
11
+ valueChange: import("rxjs").Observable<string>;
12
+ constructor(cd: ChangeDetectorRef);
13
+ handleInput(): void;
14
+ handleChange(element: HTMLInputElement): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<UrlInputComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<UrlInputComponent, "gn-ui-url-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
17
+ }
18
+ //# sourceMappingURL=url-input.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"url-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/url-input/url-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA4B,MAAM,eAAe,CAAA;AAK3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAOa,iBAAiB;IAQhB,OAAO,CAAC,EAAE;IAPb,KAAK,SAAK;IACV,UAAU,SAAK;IACf,WAAW,SAAa;IACxB,QAAQ,EAAE,OAAO,CAAA;IAC1B,SAAS,kBAAwB;IACvB,WAAW,oCAA0C;gBAE3C,EAAE,EAAE,iBAAiB;IAEzC,WAAW;IAIX,YAAY,CAAC,OAAO,EAAE,gBAAgB;yCAd3B,iBAAiB;2CAAjB,iBAAiB;CAkB7B"}
@@ -1,11 +1,20 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { MatDialog } from '@angular/material/dialog';
2
3
  import { MatMenuTrigger } from '@angular/material/menu';
4
+ import { TranslateService } from '@ngx-translate/core';
3
5
  import * as i0 from "@angular/core";
4
6
  export declare class ActionMenuComponent {
7
+ dialog: MatDialog;
8
+ private translateService;
9
+ canDuplicate: boolean;
10
+ canDelete: boolean;
5
11
  duplicate: EventEmitter<void>;
12
+ delete: EventEmitter<void>;
6
13
  trigger: MatMenuTrigger;
14
+ constructor(dialog: MatDialog, translateService: TranslateService);
7
15
  openMenu(): void;
16
+ openDeleteConfirmationDialog(): void;
8
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionMenuComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "gn-ui-action-menu", never, {}, { "duplicate": "duplicate"; }, never, never, true, never>;
18
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "gn-ui-action-menu", never, { "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; }, { "duplicate": "duplicate"; "delete": "delete"; }, never, never, true, never>;
10
19
  }
11
20
  //# sourceMappingURL=action-menu.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"action-menu.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAqB,MAAM,eAAe,CAAA;AAE1E,OAAO,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAA;;AAItE,qBAOa,mBAAmB;IACpB,SAAS,qBAA2B;IAEnB,OAAO,EAAE,cAAc,CAAA;IAElD,QAAQ;yCALG,mBAAmB;2CAAnB,mBAAmB;CAQ/B"}
1
+ {"version":3,"file":"action-menu.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAIb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAmB,MAAM,0BAA0B,CAAA;AAErE,OAAO,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAGtE,OAAO,EAAmB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEvE,qBAca,mBAAmB;IASrB,MAAM,EAAE,SAAS;IACxB,OAAO,CAAC,gBAAgB;IATjB,YAAY,EAAE,OAAO,CAAA;IACrB,SAAS,EAAE,OAAO,CAAA;IACjB,SAAS,qBAA2B;IACpC,MAAM,qBAA2B;IAEhB,OAAO,EAAE,cAAc,CAAA;gBAGzC,MAAM,EAAE,SAAS,EAChB,gBAAgB,EAAE,gBAAgB;IAG5C,QAAQ;IAIR,4BAA4B;yCAjBjB,mBAAmB;2CAAnB,mBAAmB;CA6C/B"}
@@ -7,10 +7,13 @@ export declare class ResultsTableComponent {
7
7
  records: CatalogRecord[];
8
8
  selectedRecordsIdentifiers: string[];
9
9
  sortOrder: SortByField;
10
- recordHasDraft: (record: CatalogRecord) => boolean;
10
+ hasDraft: (record: CatalogRecord) => boolean;
11
+ canDuplicate: (record: CatalogRecord) => boolean;
12
+ canDelete: (record: CatalogRecord) => boolean;
11
13
  sortByChange: EventEmitter<[string, "asc" | "desc"]>;
12
14
  recordClick: EventEmitter<CatalogRecord>;
13
15
  duplicateRecord: EventEmitter<CatalogRecord>;
16
+ deleteRecord: EventEmitter<CatalogRecord>;
14
17
  recordsSelectedChange: EventEmitter<[CatalogRecord[], boolean]>;
15
18
  dateToString(date: Date): string;
16
19
  getStatus(isPublishedToAll: boolean | unknown): "published" | "not published";
@@ -19,6 +22,7 @@ export declare class ResultsTableComponent {
19
22
  getBadgeColor(format: FileFormat): string;
20
23
  handleRecordClick(item: unknown): void;
21
24
  handleDuplicate(item: unknown): void;
25
+ handleDelete(item: unknown): void;
22
26
  setSortBy(col: string, order: 'asc' | 'desc'): void;
23
27
  isSortedBy(col: string): 'desc' | 'asc' | null;
24
28
  isChecked(record: CatalogRecord): boolean;
@@ -27,6 +31,6 @@ export declare class ResultsTableComponent {
27
31
  isAllSelected(): boolean;
28
32
  isSomeSelected(): boolean;
29
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "recordHasDraft": { "alias": "recordHasDraft"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, { "records": { "alias": "records"; "required": false; }; "selectedRecordsIdentifiers": { "alias": "selectedRecordsIdentifiers"; "required": false; }; "sortOrder": { "alias": "sortOrder"; "required": false; }; "hasDraft": { "alias": "hasDraft"; "required": false; }; "canDuplicate": { "alias": "canDuplicate"; "required": false; }; "canDelete": { "alias": "canDelete"; "required": false; }; }, { "sortByChange": "sortByChange"; "recordClick": "recordClick"; "duplicateRecord": "duplicateRecord"; "deleteRecord": "deleteRecord"; "recordsSelectedChange": "recordsSelectedChange"; }, never, never, true, never>;
31
35
  }
32
36
  //# sourceMappingURL=results-table.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAIb,MAAM,eAAe,CAAA;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;;AAI/C,qBAgBa,qBAAqB;IACvB,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,cAAc,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAG/D,YAAY,yCAA+C;IAC3D,WAAW,8BAAoC;IAC/C,eAAe,8BAAoC;IACnD,qBAAqB,2CAE5B;IAEH,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,eAAe,CAAC,IAAI,EAAE,OAAO;IAI7B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAI7D,eAAe;IAIrB,aAAa,IAAI,OAAO;IAMxB,cAAc,IAAI,OAAO;yCAjGd,qBAAqB;2CAArB,qBAAqB;CA0GjC"}
1
+ {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAEL,WAAW,EACZ,MAAM,2DAA2D,CAAA;AAMlE,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;;AAI/C,qBAgBa,qBAAqB;IACvB,OAAO,EAAE,aAAa,EAAE,CAAK;IAC7B,0BAA0B,EAAE,MAAM,EAAE,CAAK;IACzC,SAAS,EAAE,WAAW,CAAO;IAC7B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAc;IAC1D,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAC7D,SAAS,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAa;IAGzD,YAAY,yCAA+C;IAC3D,WAAW,8BAAoC;IAC/C,eAAe,8BAAoC;IACnD,YAAY,8BAAoC;IAChD,qBAAqB,2CAE5B;IAEH,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,eAAe,CAAC,IAAI,EAAE,OAAO;IAI7B,YAAY,CAAC,IAAI,EAAE,OAAO;IAI1B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI;IAe9C,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;IAIzC,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAI7D,eAAe;IAIrB,aAAa,IAAI,OAAO;IAMxB,cAAc,IAAI,OAAO;yCAxGd,qBAAqB;2CAArB,qBAAqB;CAiHjC"}
@@ -1,5 +1,6 @@
1
1
  export * from './lib/ui-widgets.module';
2
2
  export * from './lib/progress-bar/progress-bar.component';
3
+ export * from './lib/popover/popover.component';
3
4
  export * from './lib/loading-mask/loading-mask.component';
4
5
  export * from './lib/color-scale/color-scale.component';
5
6
  export * from './lib/popup-alert/popup-alert.component';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mCAAmC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/widgets/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,2CAA2C,CAAA;AACzD,cAAc,iCAAiC,CAAA;AAC/C,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,yCAAyC,CAAA;AACvD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,mCAAmC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy, OnChanges, SimpleChanges, TemplateRef, Renderer2, ViewContainerRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class PopoverComponent implements AfterViewInit, OnChanges, OnDestroy {
4
+ private viewContainerRef;
5
+ private renderer;
6
+ popoverContent: ElementRef;
7
+ content: string | TemplateRef<any>;
8
+ theme: 'light' | 'light-border' | 'translucent' | 'material' | '';
9
+ private tippyInstance;
10
+ private view;
11
+ constructor(viewContainerRef: ViewContainerRef, renderer: Renderer2);
12
+ private getContent;
13
+ ngAfterViewInit(): void;
14
+ ngOnChanges(changes: SimpleChanges): void;
15
+ ngOnDestroy(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PopoverComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<PopoverComponent, "gn-ui-popover", never, { "content": { "alias": "content"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, {}, never, ["*"], true, never>;
18
+ }
19
+ //# sourceMappingURL=popover.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/widgets/src/lib/popover/popover.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,EACb,UAAU,EAGV,SAAS,EACT,SAAS,EACT,aAAa,EACb,WAAW,EACX,SAAS,EACT,gBAAgB,EAEjB,MAAM,eAAe,CAAA;;AAGtB,qBAOa,gBAAiB,YAAW,aAAa,EAAE,SAAS,EAAE,SAAS;IASxE,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,QAAQ;IAT8B,cAAc,EAAE,UAAU,CAAA;IACjE,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,CAAC,CAAA;IAClC,KAAK,EAAE,OAAO,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,EAAE,CAAA;IAE1E,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,IAAI,CAAsB;gBAGxB,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,SAAS;IAG7B,OAAO,CAAC,UAAU;IAgBlB,eAAe,IAAI,IAAI;IAQvB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAezC,WAAW,IAAI,IAAI;yCApDR,gBAAgB;2CAAhB,gBAAgB;CA4D5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.4.0-dev.78565730",
3
+ "version": "2.4.0-dev.7a893adc",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -1,4 +1,3 @@
1
- export * from './lib/base.converter'
2
1
  export * from './lib/iso19139'
3
2
  export * from './lib/iso19115-3'
4
3
  export * from './lib/find-converter'
@@ -194,7 +194,12 @@ As such, **it is not very interesting at all.**`,
194
194
  text: 'Contains sensitive information related to national defense',
195
195
  },
196
196
  ],
197
- spatialExtents: [],
197
+ spatialExtents: [
198
+ {
199
+ bbox: [-11.5, 35.3, 43.2, 81.4],
200
+ description: 'http://www.naturalearthdata.com/ne_admin#Continent/Europe',
201
+ },
202
+ ],
198
203
  temporalExtents: [
199
204
  {
200
205
  start: new Date('2024-05-24'),
@@ -122,7 +122,11 @@ Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur
122
122
  securityConstraints: [],
123
123
  otherConstraints: [],
124
124
  // data quality?
125
- spatialExtents: [],
125
+ spatialExtents: [
126
+ {
127
+ bbox: [2.5587, 49.3677, 2.5934, 49.4051],
128
+ },
129
+ ],
126
130
  temporalExtents: [],
127
131
  status: 'completed',
128
132
  updateFrequency: 'unknown',
@@ -94,7 +94,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
94
94
  id: 'geonetwork.thesaurus.external.theme.gemet',
95
95
  name: 'GEMET',
96
96
  url: new URL(
97
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
97
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
98
98
  ),
99
99
  },
100
100
  type: 'theme',
@@ -105,7 +105,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
105
105
  id: 'geonetwork.thesaurus.external.theme.gemet',
106
106
  name: 'GEMET',
107
107
  url: new URL(
108
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
108
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
109
109
  ),
110
110
  },
111
111
  type: 'theme',
@@ -116,7 +116,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
116
116
  id: 'geonetwork.thesaurus.external.theme.gemet',
117
117
  name: 'GEMET',
118
118
  url: new URL(
119
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
119
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
120
120
  ),
121
121
  },
122
122
  type: 'theme',
@@ -127,7 +127,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
127
127
  id: 'geonetwork.thesaurus.external.theme.gemet',
128
128
  name: 'GEMET',
129
129
  url: new URL(
130
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
130
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
131
131
  ),
132
132
  },
133
133
  type: 'theme',
@@ -138,7 +138,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
138
138
  id: 'geonetwork.thesaurus.external.theme.gemet',
139
139
  name: 'GEMET',
140
140
  url: new URL(
141
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
141
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
142
142
  ),
143
143
  },
144
144
  type: 'theme',
@@ -149,7 +149,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
149
149
  id: 'geonetwork.thesaurus.external.theme.gemet',
150
150
  name: 'GEMET',
151
151
  url: new URL(
152
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
152
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
153
153
  ),
154
154
  },
155
155
  type: 'theme',
@@ -160,7 +160,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
160
160
  id: 'geonetwork.thesaurus.external.theme.gemet',
161
161
  name: 'GEMET',
162
162
  url: new URL(
163
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
163
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
164
164
  ),
165
165
  },
166
166
  type: 'theme',
@@ -171,7 +171,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
171
171
  id: 'geonetwork.thesaurus.external.theme.gemet',
172
172
  name: 'GEMET',
173
173
  url: new URL(
174
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
174
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
175
175
  ),
176
176
  },
177
177
  type: 'theme',
@@ -182,7 +182,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
182
182
  id: 'geonetwork.thesaurus.external.theme.gemet',
183
183
  name: 'GEMET',
184
184
  url: new URL(
185
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
185
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.gemet'
186
186
  ),
187
187
  },
188
188
  type: 'theme',
@@ -193,7 +193,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
193
193
  id: 'geonetwork.thesaurus.external.theme.inspire-theme',
194
194
  name: 'GEMET - INSPIRE themes, version 1.0',
195
195
  url: new URL(
196
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
196
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.inspire-theme'
197
197
  ),
198
198
  },
199
199
  type: 'theme',
@@ -204,7 +204,7 @@ export const GEOCAT_CH_DATASET_RECORD: DatasetRecord = {
204
204
  id: 'geonetwork.thesaurus.external.theme.inspire-theme',
205
205
  name: 'GEMET - INSPIRE themes, version 1.0',
206
206
  url: new URL(
207
- 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/local.theme.geocat.ch'
207
+ 'https://geocat-dev.dev.bgdi.ch/geonetwork/srv/api/registries/vocabularies/external.theme.inspire-theme'
208
208
  ),
209
209
  },
210
210
  type: 'theme',
@@ -332,7 +332,32 @@ Die Quelle ist zu bezeichnen: „Quelle: Stadt Zürich“.`,
332
332
  securityConstraints: [],
333
333
  otherConstraints: [],
334
334
  // data quality?
335
- spatialExtents: [],
335
+ spatialExtents: [
336
+ {
337
+ description: 'AK',
338
+ },
339
+ {
340
+ bbox: [
341
+ 6.75599105586694, 45.7887442565203, 10.5418236945627, 47.5175655551557,
342
+ ],
343
+ },
344
+ {
345
+ geometry: {
346
+ type: 'MultiPolygon',
347
+ coordinates: [
348
+ [
349
+ [
350
+ [6.777075, 45.827119, 0],
351
+ [6.755991, 47.517566, 0],
352
+ [10.541824, 47.477984, 0],
353
+ [10.446252, 45.788744, 0],
354
+ [6.777075, 45.827119, 0],
355
+ ],
356
+ ],
357
+ ],
358
+ },
359
+ },
360
+ ],
336
361
  temporalExtents: [],
337
362
  status: 'completed',
338
363
  updateFrequency: 'asNeeded',
@@ -388,7 +388,11 @@ Depuis, ce sont les Districts routiers qui assurent la tenue à jour de ces info
388
388
  name: 'Direction Asset Management (SPW - Mobilité et Infrastructures - Direction Asset Management)',
389
389
  },
390
390
  securityConstraints: [],
391
- spatialExtents: [],
391
+ spatialExtents: [
392
+ {
393
+ bbox: [2.75, 49.45, 6.5, 50.85],
394
+ },
395
+ ],
392
396
  spatialRepresentation: 'vector',
393
397
  status: 'ongoing',
394
398
  temporalExtents: [],
@@ -1,10 +1,6 @@
1
1
  export interface KeywordApiResponse {
2
- values?: {
3
- eng: string
4
- }
5
- definitions?: {
6
- eng: string
7
- }
2
+ values?: Record<string, string>
3
+ definitions?: Record<string, string>
8
4
  coordEast?: string
9
5
  coordWest?: string
10
6
  coordSouth?: string
@@ -34,6 +34,7 @@ import {
34
34
  readResourcePublished,
35
35
  readResourceUpdated,
36
36
  readSecurityConstraints,
37
+ readSpatialExtents,
37
38
  readSpatialRepresentation,
38
39
  readStatus,
39
40
  readTemporalExtents,
@@ -60,6 +61,7 @@ import {
60
61
  writeResourcePublished,
61
62
  writeResourceUpdated,
62
63
  writeSecurityConstraints,
64
+ writeSpatialExtents,
63
65
  writeSpatialRepresentation,
64
66
  writeStatus,
65
67
  writeTemporalExtents,
@@ -101,8 +103,8 @@ export class Iso19139Converter extends BaseConverter<string> {
101
103
  distributions: readDistributions,
102
104
  onlineResources: readOnlineResources,
103
105
  temporalExtents: readTemporalExtents,
106
+ spatialExtents: readSpatialExtents,
104
107
  // TODO
105
- spatialExtents: () => [],
106
108
  extras: () => undefined,
107
109
  landingPage: () => undefined,
108
110
  languages: () => [],
@@ -139,8 +141,8 @@ export class Iso19139Converter extends BaseConverter<string> {
139
141
  distributions: writeDistributions,
140
142
  onlineResources: writeOnlineResources,
141
143
  temporalExtents: writeTemporalExtents,
144
+ spatialExtents: writeSpatialExtents,
142
145
  // TODO
143
- spatialExtents: () => undefined,
144
146
  extras: () => undefined,
145
147
  landingPage: () => undefined,
146
148
  languages: () => undefined,
@@ -315,6 +317,8 @@ export class Iso19139Converter extends BaseConverter<string> {
315
317
  fieldChanged('overviews') && this.writers['overviews'](record, rootEl)
316
318
  fieldChanged('temporalExtents') &&
317
319
  this.writers['temporalExtents'](record, rootEl)
320
+ fieldChanged('spatialExtents') &&
321
+ this.writers['spatialExtents'](record, rootEl)
318
322
  fieldChanged('distributions') &&
319
323
  this.writers['distributions'](record, rootEl)
320
324
  fieldChanged('lineage') && this.writers['lineage'](record, rootEl)
@@ -13,6 +13,8 @@ import {
13
13
  UpdateFrequency,
14
14
  UpdateFrequencyCustom,
15
15
  } from '../../../../../../libs/common/domain/src/lib/model/record'
16
+ import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
17
+ import { Geometry } from 'geojson'
16
18
  import { matchMimeType, matchProtocol } from '../common/distribution.mapper'
17
19
  import {
18
20
  ChainableFunction,
@@ -26,21 +28,22 @@ import {
26
28
  pipe,
27
29
  } from '../function-utils'
28
30
  import {
29
- XmlElement,
30
31
  findChildElement,
31
32
  findChildrenElement,
32
33
  findNestedElement,
33
34
  findNestedElements,
34
35
  findParent,
36
+ firstChildElement,
35
37
  readAttribute,
36
38
  readText,
39
+ XmlElement,
37
40
  } from '../xml-utils'
41
+ import { readGeometry } from './utils/geometry'
38
42
  import { fullNameToParts } from './utils/individual-name'
39
43
  import { getKeywordTypeFromKeywordTypeCode } from './utils/keyword.mapper'
40
44
  import { getRoleFromRoleCode } from './utils/role.mapper'
41
45
  import { getStatusFromStatusCode } from './utils/status.mapper'
42
46
  import { getUpdateFrequencyFromFrequencyCode } from './utils/update-frequency.mapper'
43
- import { ThesaurusModel } from '../../../../../../libs/common/domain/src/lib/model/thesaurus'
44
47
 
45
48
  export function extractCharacterString(): ChainableFunction<
46
49
  XmlElement,
@@ -66,6 +69,14 @@ export function extractDateTime(): ChainableFunction<XmlElement, Date> {
66
69
  )
67
70
  }
68
71
 
72
+ export function extractDecimal(): ChainableFunction<XmlElement, number> {
73
+ return pipe(
74
+ findChildElement('gco:Decimal', false),
75
+ readText(),
76
+ map((numberStr) => (numberStr ? Number(numberStr) : null))
77
+ )
78
+ }
79
+
69
80
  export function extractUrl(): ChainableFunction<XmlElement, URL> {
70
81
  const getUrl = pipe(findChildElement('gmd:URL', false), readText())
71
82
  const getCharacterString = pipe(
@@ -895,3 +906,62 @@ export function readTemporalExtents(rootEl: XmlElement) {
895
906
  })
896
907
  )(rootEl)
897
908
  }
909
+
910
+ export function readSpatialExtents(rootEl: XmlElement) {
911
+ const extractGeometry = (rootEl: XmlElement): Geometry => {
912
+ if (!rootEl) return null
913
+ return pipe(
914
+ findChildElement('gmd:polygon', false),
915
+ firstChildElement,
916
+ map((el) => readGeometry(el))
917
+ )(rootEl)
918
+ }
919
+
920
+ const extractBBox = (
921
+ rootEl: XmlElement
922
+ ): [number, number, number, number] => {
923
+ if (!rootEl) return null
924
+ return pipe(
925
+ combine(
926
+ pipe(findChildElement('gmd:westBoundLongitude'), extractDecimal()),
927
+ pipe(findChildElement('gmd:southBoundLatitude'), extractDecimal()),
928
+ pipe(findChildElement('gmd:eastBoundLongitude'), extractDecimal()),
929
+ pipe(findChildElement('gmd:northBoundLatitude'), extractDecimal())
930
+ )
931
+ )(rootEl)
932
+ }
933
+
934
+ const extractDescription = (rootEl: XmlElement): string => {
935
+ if (!rootEl) return null
936
+ return pipe(
937
+ findNestedElement(
938
+ 'gmd:geographicIdentifier',
939
+ 'gmd:MD_Identifier',
940
+ 'gmd:code'
941
+ ),
942
+ extractCharacterString()
943
+ )(rootEl)
944
+ }
945
+
946
+ return pipe(
947
+ findIdentification(),
948
+ findNestedElements('gmd:extent', 'gmd:EX_Extent', 'gmd:geographicElement'),
949
+ mapArray(
950
+ combine(
951
+ pipe(findChildElement('gmd:EX_BoundingPolygon'), extractGeometry),
952
+ pipe(findChildElement('gmd:EX_GeographicBoundingBox'), extractBBox),
953
+ pipe(
954
+ findChildElement('gmd:EX_GeographicDescription'),
955
+ extractDescription
956
+ )
957
+ )
958
+ ),
959
+ mapArray(([geometry, bbox, description]) => {
960
+ return {
961
+ ...(geometry && { geometry }),
962
+ ...(bbox && { bbox }),
963
+ ...(description && { description }),
964
+ }
965
+ })
966
+ )(rootEl)
967
+ }
@@ -0,0 +1,39 @@
1
+ import { XmlElement } from '@rgrove/parse-xml'
2
+ import { Geometry } from 'geojson'
3
+ import GML32 from 'ol/format/GML32'
4
+ import GeoJSON from 'ol/format/GeoJSON'
5
+ import { parse } from 'ol/xml'
6
+ import {
7
+ createDocument,
8
+ getRootElement,
9
+ parseXmlString,
10
+ xmlToString,
11
+ } from '../../xml-utils'
12
+
13
+ export function readGeometry(el: XmlElement): Geometry {
14
+ const xmlDoc = createDocument(el)
15
+ xmlDoc.root.attributes['xmlns'] = 'http://www.opengis.net/gml/3.2'
16
+ const gmlString = xmlToString(xmlDoc)
17
+ const doc = parse(gmlString)
18
+ // we need an intermediate node to be able to parse the GML
19
+ const node = document.createElement('pre')
20
+ node.appendChild(doc.documentElement)
21
+ const gml32Format = new GML32()
22
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23
+ // @ts-ignore
24
+ const geometry = gml32Format.readGeometryFromNode(node)
25
+ const geojsonFormat = new GeoJSON()
26
+ return geojsonFormat.writeGeometryObject(geometry)
27
+ }
28
+
29
+ export function writeGeometry(geometryObject: Geometry): XmlElement {
30
+ const geojsonFormat = new GeoJSON()
31
+ const geometry = geojsonFormat.readGeometry(geometryObject)
32
+ const gml32Format = new GML32()
33
+ const node = gml32Format.writeGeometryNode(geometry)
34
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
35
+ // @ts-ignore
36
+ const element = node.firstElementChild as HTMLElement
37
+ const gmlString = new XMLSerializer().serializeToString(element)
38
+ return getRootElement(parseXmlString(gmlString))
39
+ }