geonetwork-ui 2.4.0-dev.6c8dcba0 → 2.4.0-dev.6f312e64

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 (723) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/index.mjs +2 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +2 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +11 -16
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +35 -7
  11. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +1 -1
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +50 -18
  14. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  15. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +44 -7
  16. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +2 -1
  17. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -1
  18. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +22 -4
  19. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +84 -16
  20. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  21. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  22. package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
  23. package/esm2022/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.mjs +1 -1
  24. package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
  25. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  26. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  27. package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
  28. package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
  29. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  30. package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
  31. package/esm2022/libs/feature/catalog/src/index.mjs +2 -1
  32. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +1 -1
  33. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  34. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +4 -0
  35. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -6
  36. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -5
  37. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +7 -4
  38. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
  39. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +2 -2
  40. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +4 -1
  41. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +11 -4
  42. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +11 -2
  43. package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
  44. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
  45. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
  46. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  47. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  48. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
  49. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +143 -0
  50. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +37 -0
  51. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  52. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  53. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +148 -0
  54. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  55. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +103 -0
  56. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  57. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  58. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  59. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
  60. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +38 -68
  61. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +70 -54
  62. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +44 -61
  63. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
  64. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +13 -7
  65. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  66. package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
  67. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +9 -6
  68. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +184 -53
  69. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
  70. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
  71. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +19 -8
  72. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  73. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +7 -6
  74. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  75. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  76. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  77. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  78. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  79. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  80. package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
  81. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  82. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  83. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
  84. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
  85. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
  86. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
  87. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +7 -4
  88. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -4
  89. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +11 -13
  90. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +2 -1
  91. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  92. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +9 -2
  93. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +8 -1
  94. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  95. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +7 -4
  96. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +4 -4
  97. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +89 -0
  98. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +8 -3
  99. package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +4 -1
  100. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +7 -3
  101. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +5 -5
  102. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -2
  103. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -8
  104. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
  105. package/esm2022/libs/ui/elements/src/index.mjs +2 -3
  106. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  107. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  108. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
  109. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
  110. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +5 -3
  111. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
  112. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  113. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  114. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +9 -9
  115. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  116. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  117. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  118. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +24 -5
  119. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +15 -11
  120. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
  121. package/esm2022/libs/ui/inputs/src/index.mjs +6 -1
  122. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +76 -29
  123. package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +28 -0
  124. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  125. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
  126. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +19 -15
  127. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  128. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +7 -21
  129. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  130. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +12 -15
  131. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  132. package/esm2022/libs/ui/layout/src/index.mjs +4 -1
  133. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  134. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  135. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +71 -0
  136. package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
  137. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  138. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +1 -1
  139. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  140. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  141. package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
  142. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  143. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +140 -0
  144. package/esm2022/libs/ui/widgets/src/index.mjs +2 -2
  145. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  146. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +5 -3
  147. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +1 -6
  148. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
  149. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
  150. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
  151. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
  152. package/esm2022/translations/de.json +155 -38
  153. package/esm2022/translations/en.json +129 -12
  154. package/esm2022/translations/es.json +126 -9
  155. package/esm2022/translations/fr.json +141 -24
  156. package/esm2022/translations/it.json +129 -12
  157. package/esm2022/translations/nl.json +126 -9
  158. package/esm2022/translations/pt.json +126 -9
  159. package/fesm2022/geonetwork-ui.mjs +4993 -2470
  160. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  161. package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
  162. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
  163. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  164. package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts +1 -0
  165. package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts.map +1 -1
  166. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +27 -0
  167. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -0
  168. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
  169. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  170. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
  171. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  172. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
  173. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  174. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  175. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +13 -6
  176. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  177. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  178. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  179. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts +1 -1
  180. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -1
  181. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +11 -7
  182. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  183. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  184. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  185. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +8 -1
  186. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  187. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
  188. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
  189. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +3 -3
  190. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  191. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +30 -6
  192. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  193. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  194. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  195. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +13 -14
  196. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  197. package/libs/common/domain/src/lib/model/record/organization.model.d.ts +1 -0
  198. package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
  199. package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts +12 -5
  200. package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts.map +1 -1
  201. package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
  202. package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
  203. package/libs/common/domain/src/lib/platform.service.interface.d.ts +20 -3
  204. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  205. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +20 -1
  206. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  207. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
  208. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
  209. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
  210. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
  211. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  212. package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
  213. package/libs/feature/catalog/src/index.d.ts +1 -0
  214. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  215. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  216. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
  217. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +3 -0
  218. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -0
  219. package/libs/feature/catalog/src/lib/records/records.service.d.ts.map +1 -1
  220. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
  221. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  222. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +2 -1
  223. package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
  224. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
  225. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  226. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
  227. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  228. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +7 -0
  229. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  230. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +6 -1
  231. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  232. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +6 -4
  233. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  234. package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
  235. package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
  236. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
  237. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  238. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
  239. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  240. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  241. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  242. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  243. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  244. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
  245. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
  246. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +41 -0
  247. 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
  248. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +14 -0
  249. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -0
  250. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  251. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  252. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  253. 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
  254. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +35 -0
  255. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
  256. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  257. 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
  258. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +31 -0
  259. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  260. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  261. 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
  262. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  263. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  264. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  265. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  266. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
  267. 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
  268. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +10 -16
  269. 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
  270. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +9 -9
  271. 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
  272. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +19 -25
  273. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  274. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
  275. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  276. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +7 -7
  277. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  278. package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
  279. package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
  280. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  281. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  282. package/libs/feature/editor/src/lib/fields.config.d.ts +48 -2
  283. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  284. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +41 -0
  285. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
  286. package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
  287. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  288. package/libs/feature/editor/src/lib/services/editor.service.d.ts +3 -2
  289. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  290. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  291. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  292. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +6 -6
  293. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  294. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  295. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  296. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  297. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  298. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  299. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  300. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  301. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  302. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  303. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  304. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  305. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  306. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
  307. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
  308. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  309. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
  310. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  311. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
  312. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  313. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
  314. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
  315. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
  316. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  317. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
  318. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  319. package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -1
  320. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  321. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
  322. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  323. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  324. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  325. package/libs/feature/router/src/lib/default/constants.d.ts +1 -0
  326. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  327. package/libs/feature/router/src/lib/default/router.config.d.ts +1 -0
  328. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  329. package/libs/feature/router/src/lib/default/router.service.d.ts +1 -0
  330. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  331. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -0
  332. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  333. package/libs/feature/search/src/index.d.ts +1 -1
  334. package/libs/feature/search/src/index.d.ts.map +1 -1
  335. package/libs/feature/search/src/lib/feature-search.module.d.ts +2 -1
  336. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  337. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  338. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +36 -0
  339. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -0
  340. package/libs/feature/search/src/lib/state/search.facade.d.ts +2 -0
  341. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  342. package/libs/feature/search/src/lib/state/selectors.d.ts +1 -0
  343. package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
  344. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  345. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +2 -2
  346. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +2 -1
  347. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  348. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -2
  349. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
  350. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
  351. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
  352. package/libs/ui/elements/src/index.d.ts +1 -2
  353. package/libs/ui/elements/src/index.d.ts.map +1 -1
  354. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  355. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  356. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
  357. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  358. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
  359. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  360. package/libs/ui/elements/src/lib/error/error.component.d.ts +3 -1
  361. package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
  362. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
  363. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  364. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  365. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  366. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  367. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +5 -1
  368. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  369. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +18 -16
  370. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  371. package/libs/ui/inputs/src/index.d.ts +5 -0
  372. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  373. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +15 -4
  374. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  375. package/libs/ui/inputs/src/lib/badge/badge.component.d.ts +11 -0
  376. package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -0
  377. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  378. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  379. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
  380. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
  381. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +4 -5
  382. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  383. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
  384. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  385. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  386. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  387. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  388. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  389. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  390. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  391. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  392. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  393. package/libs/ui/layout/src/index.d.ts +3 -0
  394. package/libs/ui/layout/src/index.d.ts.map +1 -1
  395. package/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.d.ts +2 -2
  396. package/libs/ui/layout/src/lib/max-lines/max-lines.component.d.ts.map +1 -0
  397. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
  398. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
  399. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
  400. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  401. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  402. package/libs/ui/search/src/index.d.ts +1 -0
  403. package/libs/ui/search/src/index.d.ts.map +1 -1
  404. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
  405. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
  406. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  407. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  408. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +36 -0
  409. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
  410. package/libs/ui/widgets/src/index.d.ts +1 -1
  411. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  412. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  413. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  414. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts +1 -1
  415. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
  416. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +10 -11
  417. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  418. package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
  419. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  420. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  421. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  422. package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
  423. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  424. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
  425. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
  426. package/package.json +1 -1
  427. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +7 -2
  428. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +6 -2
  429. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +38 -13
  430. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +6 -2
  431. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
  432. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
  433. package/src/libs/api/metadata-converter/src/lib/gn4/types/index.ts +1 -0
  434. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +27 -0
  435. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
  436. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
  437. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
  438. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
  439. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +10 -14
  440. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +86 -18
  441. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  442. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.ts +1 -1
  443. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +119 -38
  444. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  445. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +63 -10
  446. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +1 -0
  447. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +3 -1
  448. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +37 -5
  449. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +165 -30
  450. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  451. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -17
  452. package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
  453. package/src/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.ts +13 -6
  454. package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
  455. package/src/libs/common/domain/src/lib/platform.service.interface.ts +37 -3
  456. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +26 -1
  457. package/src/libs/common/fixtures/src/index.ts +3 -1
  458. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
  459. package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
  460. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
  461. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
  462. package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
  463. package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
  464. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
  465. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
  466. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
  467. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
  468. package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
  469. package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
  470. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
  471. package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
  472. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +65 -3
  473. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
  474. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +17 -9
  475. package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
  476. package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
  477. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
  478. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
  479. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
  480. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
  481. package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
  482. package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
  483. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  484. package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
  485. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  486. package/src/libs/feature/catalog/src/index.ts +1 -0
  487. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -1
  488. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -1
  489. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +2 -2
  490. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +6 -0
  491. package/src/libs/feature/catalog/src/lib/records/records.service.ts +6 -8
  492. package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
  493. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
  494. package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +2 -1
  495. package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
  496. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
  497. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
  498. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +9 -0
  499. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +50 -29
  500. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +14 -1
  501. package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
  502. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
  503. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
  504. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  505. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  506. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  507. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  508. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
  509. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
  510. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +86 -0
  511. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +210 -0
  512. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +9 -0
  513. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +46 -0
  514. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  515. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  516. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  517. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.css +0 -0
  518. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +33 -0
  519. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +182 -0
  520. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  521. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  522. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  523. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  524. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -0
  525. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +122 -0
  526. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  527. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  528. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  529. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  530. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  531. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  532. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
  533. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
  534. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +30 -4
  535. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +41 -86
  536. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +101 -90
  537. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +113 -85
  538. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +50 -70
  539. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -2
  540. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +53 -11
  541. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +20 -7
  542. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  543. package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
  544. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +4 -2
  545. package/src/libs/feature/editor/src/lib/fields.config.ts +222 -54
  546. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +62 -0
  547. package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
  548. package/src/libs/feature/editor/src/lib/services/editor.service.ts +34 -9
  549. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  550. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -8
  551. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  552. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  553. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  554. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  555. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  556. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  557. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  558. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  559. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  560. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
  561. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
  562. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  563. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
  564. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
  565. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
  566. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
  567. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
  568. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
  569. package/src/libs/feature/record/src/lib/feature-record.module.ts +3 -2
  570. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
  571. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +47 -32
  572. package/src/libs/feature/router/src/lib/default/constants.ts +1 -0
  573. package/src/libs/feature/router/src/lib/default/router.config.ts +1 -0
  574. package/src/libs/feature/router/src/lib/default/router.service.ts +13 -1
  575. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +9 -1
  576. package/src/libs/feature/search/src/index.ts +1 -1
  577. package/src/libs/feature/search/src/lib/feature-search.module.ts +2 -1
  578. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  579. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +2 -2
  580. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.css +0 -0
  581. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +12 -0
  582. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +112 -0
  583. package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
  584. package/src/libs/feature/search/src/lib/state/search.facade.ts +11 -0
  585. package/src/libs/feature/search/src/lib/state/selectors.ts +7 -0
  586. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +16 -2
  587. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +8 -6
  588. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
  589. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +2 -0
  590. package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
  591. package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +11 -3
  592. package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +3 -7
  593. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
  594. package/src/libs/ui/elements/src/index.ts +1 -2
  595. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +29 -29
  596. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  597. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  598. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  599. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
  600. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
  601. package/src/libs/ui/elements/src/lib/error/error.component.html +30 -6
  602. package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -0
  603. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
  604. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  605. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
  606. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  607. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  608. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  609. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  610. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  611. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
  612. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +22 -1
  613. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +10 -6
  614. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
  615. package/src/libs/ui/inputs/src/index.ts +5 -0
  616. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -1
  617. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +23 -19
  618. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +94 -30
  619. package/src/libs/ui/inputs/src/lib/badge/badge.component.css +0 -0
  620. package/src/libs/ui/inputs/src/lib/badge/badge.component.html +18 -0
  621. package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +27 -0
  622. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  623. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  624. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  625. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +92 -0
  626. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +50 -50
  627. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +17 -14
  628. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
  629. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
  630. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
  631. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +3 -2
  632. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +3 -28
  633. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  634. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  635. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -6
  636. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  637. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  638. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  639. package/src/libs/ui/layout/src/index.ts +3 -0
  640. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  641. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  642. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.css +0 -0
  643. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.html +1 -0
  644. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.ts +9 -5
  645. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
  646. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
  647. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
  648. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
  649. package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +15 -18
  650. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -1
  651. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  652. package/src/libs/ui/search/src/index.ts +1 -0
  653. package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
  654. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  655. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  656. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  657. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +0 -0
  658. package/src/libs/{feature → ui}/search/src/lib/results-table/results-table.component.html +30 -9
  659. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +151 -0
  660. package/src/libs/ui/widgets/src/index.ts +1 -1
  661. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  662. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  663. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  664. package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +4 -0
  665. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -3
  666. package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
  667. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
  668. package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
  669. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
  670. package/tailwind.base.css +23 -5
  671. package/translations/de.json +155 -38
  672. package/translations/en.json +129 -12
  673. package/translations/es.json +126 -9
  674. package/translations/fr.json +141 -24
  675. package/translations/it.json +129 -12
  676. package/translations/nl.json +126 -9
  677. package/translations/pt.json +126 -9
  678. package/translations/sk.json +128 -11
  679. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
  680. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
  681. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
  682. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
  683. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
  684. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +0 -69
  685. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -43
  686. package/esm2022/libs/ui/widgets/src/lib/badge/badge.component.mjs +0 -18
  687. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
  688. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
  689. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
  690. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
  691. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
  692. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
  693. package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
  694. package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
  695. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +0 -36
  696. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +0 -1
  697. package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +0 -1
  698. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -22
  699. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
  700. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts +0 -7
  701. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts.map +0 -1
  702. package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
  703. package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
  704. package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
  705. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -8
  706. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -70
  707. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
  708. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
  709. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
  710. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
  711. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
  712. package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
  713. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -172
  714. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -36
  715. package/src/libs/ui/widgets/src/lib/badge/badge.component.html +0 -10
  716. package/src/libs/ui/widgets/src/lib/badge/badge.component.ts +0 -14
  717. /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → contact-card/contact-card.component.css} +0 -0
  718. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → generic-keywords/generic-keywords.component.css} +0 -0
  719. /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → online-resource-card/online-resource-card.component.css} +0 -0
  720. /package/src/libs/feature/{search/src/lib/results-table/results-table.component.css → editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css} +0 -0
  721. /package/src/libs/{ui/elements/src/lib/max-lines/max-lines.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.css} +0 -0
  722. /package/src/libs/{ui/widgets/src/lib/badge/badge.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css} +0 -0
  723. /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
@@ -0,0 +1,210 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ OnChanges,
8
+ OnInit,
9
+ Output,
10
+ } from '@angular/core'
11
+ import {
12
+ Individual,
13
+ Organization,
14
+ Role,
15
+ RoleLabels,
16
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
17
+ import { UserModel } from '../../../../../../../../../libs/common/domain/src/lib/model/user'
18
+ import { OrganizationsServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/organizations.service.interface'
19
+ import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
20
+ import { SortableListComponent } from '../../../../../../../../../libs/ui/layout/src'
21
+ import {
22
+ AutocompleteComponent,
23
+ DropdownSelectorComponent,
24
+ UiInputsModule,
25
+ } from '../../../../../../../../../libs/ui/inputs/src'
26
+ import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
27
+ import { createFuzzyFilter } from '../../../../../../../../../libs/util/shared/src'
28
+ import { TranslateModule } from '@ngx-translate/core'
29
+ import {
30
+ debounceTime,
31
+ distinctUntilChanged,
32
+ firstValueFrom,
33
+ switchMap,
34
+ } from 'rxjs'
35
+ import { map } from 'rxjs/operators'
36
+ import { ContactCardComponent } from '../../../contact-card/contact-card.component'
37
+
38
+ @Component({
39
+ selector: 'gn-ui-form-field-contacts-for-resource',
40
+ templateUrl: './form-field-contacts-for-resource.component.html',
41
+ styleUrls: ['./form-field-contacts-for-resource.component.css'],
42
+ changeDetection: ChangeDetectionStrategy.OnPush,
43
+ standalone: true,
44
+ imports: [
45
+ DropdownSelectorComponent,
46
+ UiInputsModule,
47
+ CommonModule,
48
+ UiWidgetsModule,
49
+ AutocompleteComponent,
50
+ TranslateModule,
51
+ ContactCardComponent,
52
+ SortableListComponent,
53
+ ],
54
+ })
55
+ export class FormFieldContactsForResourceComponent
56
+ implements OnChanges, OnInit
57
+ {
58
+ @Input() value: Individual[]
59
+ @Output() valueChange: EventEmitter<Individual[]> = new EventEmitter()
60
+
61
+ contactsForRessourceByRole: Map<Role, Individual[]> = new Map()
62
+
63
+ rolesToPick: Role[] = [
64
+ 'resource_provider',
65
+ 'custodian',
66
+ 'owner',
67
+ 'point_of_contact',
68
+ 'author',
69
+ ]
70
+
71
+ roleSectionsToDisplay: Role[] = []
72
+
73
+ allOrganizations: Map<string, Organization> = new Map()
74
+
75
+ constructor(
76
+ private platformServiceInterface: PlatformServiceInterface,
77
+ private organizationsServiceInterface: OrganizationsServiceInterface
78
+ ) {}
79
+
80
+ ngOnChanges() {
81
+ this.updateContactsForRessource()
82
+ this.manageRoleSectionsToDisplay(this.value)
83
+ this.filterRolesToPick()
84
+ }
85
+
86
+ async ngOnInit(): Promise<void> {
87
+ this.allOrganizations = new Map<string, Organization>(
88
+ (
89
+ await firstValueFrom(this.organizationsServiceInterface.organisations$)
90
+ ).map((organization) => [organization.name, organization])
91
+ )
92
+ this.updateContactsForRessource()
93
+ this.manageRoleSectionsToDisplay(this.value)
94
+ this.filterRolesToPick()
95
+ }
96
+
97
+ addRoleToDisplay(roleToAdd: string) {
98
+ this.roleSectionsToDisplay.push(roleToAdd)
99
+ this.filterRolesToPick()
100
+ }
101
+
102
+ filterRolesToPick() {
103
+ this.rolesToPick = this.rolesToPick.filter(
104
+ (role) => !this.roleSectionsToDisplay.includes(role)
105
+ )
106
+ }
107
+
108
+ updateContactsForRessource() {
109
+ this.contactsForRessourceByRole = this.value.reduce((acc, contact) => {
110
+ const completeOrganization = this.allOrganizations.get(
111
+ contact.organization.name
112
+ )
113
+
114
+ const updatedContact = {
115
+ ...contact,
116
+ organization:
117
+ completeOrganization ??
118
+ ({ name: contact.organization.name } as Organization),
119
+ }
120
+
121
+ if (!acc.has(contact.role)) {
122
+ acc.set(contact.role, [])
123
+ }
124
+
125
+ acc.get(contact.role).push(updatedContact)
126
+
127
+ return acc
128
+ }, new Map<Role, Individual[]>())
129
+ }
130
+
131
+ manageRoleSectionsToDisplay(contactsForResource: Individual[]) {
132
+ const roles = contactsForResource.map(
133
+ (contact: Individual) => contact.role
134
+ ) as Role[]
135
+
136
+ roles.forEach((role: Role) => {
137
+ if (!this.roleSectionsToDisplay.includes(role)) {
138
+ this.roleSectionsToDisplay.push(role)
139
+ }
140
+ })
141
+ }
142
+
143
+ removeContact(index: number) {
144
+ const newContactsforRessource = this.value.filter((_, i) => i !== index)
145
+ this.valueChange.emit(newContactsforRessource)
146
+ }
147
+
148
+ handleContactsChanged(items: unknown[]) {
149
+ const contacts = items as Individual[]
150
+ const role = contacts[0].role
151
+
152
+ this.contactsForRessourceByRole.set(role, contacts)
153
+
154
+ const newControlValue = Array.from(
155
+ this.contactsForRessourceByRole.values()
156
+ ).flat()
157
+
158
+ this.valueChange.emit(newControlValue)
159
+ }
160
+
161
+ protected roleToLabel(role: string): string {
162
+ return RoleLabels.get(role)
163
+ }
164
+
165
+ /**
166
+ * gn-ui-autocomplete
167
+ */
168
+ displayWithFn: (user: UserModel) => string = (user) =>
169
+ `${user.name} ${user.surname} ${
170
+ user.organisation ? `(${user.organisation})` : ''
171
+ }`
172
+
173
+ /**
174
+ * gn-ui-autocomplete
175
+ */
176
+ autoCompleteAction = (query: string) => {
177
+ const fuzzyFilter = createFuzzyFilter(query)
178
+ return this.platformServiceInterface.getUsers().pipe(
179
+ switchMap((users) => [
180
+ users.filter((user) => fuzzyFilter(user.username)),
181
+ ]),
182
+ map((results) => results.slice(0, 10)),
183
+ debounceTime(300),
184
+ distinctUntilChanged()
185
+ )
186
+ }
187
+
188
+ /**
189
+ * gn-ui-autocomplete
190
+ */
191
+ addContact(contact: unknown, role: string) {
192
+ const newContact = contact as UserModel
193
+ const newContactsForRessource = {
194
+ firstName: newContact.name ?? '',
195
+ lastName: newContact.surname ?? '',
196
+ organization:
197
+ this.allOrganizations.get(newContact.organisation) ??
198
+ ({ name: newContact.organisation } as Organization),
199
+ email: newContact.email ?? '',
200
+ role,
201
+ address: '',
202
+ phone: '',
203
+ position: '',
204
+ } as Individual
205
+
206
+ const newControlValue = [...this.value, newContactsForRessource]
207
+
208
+ this.valueChange.emit(newControlValue)
209
+ }
210
+ }
@@ -0,0 +1,9 @@
1
+ <div class="flex flex-col gap-3">
2
+ <gn-ui-generic-keywords
3
+ [keywords]="value"
4
+ [keywordTypes]="keywordTypes"
5
+ [placeholder]="placeholder | translate"
6
+ (changedKeywords)="handleKeywordsChange($event)"
7
+ >
8
+ </gn-ui-generic-keywords>
9
+ </div>
@@ -0,0 +1,46 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ Output,
8
+ } from '@angular/core'
9
+ import {
10
+ AutocompleteComponent,
11
+ DropdownSelectorComponent,
12
+ UiInputsModule,
13
+ } from '../../../../../../../../../libs/ui/inputs/src'
14
+ import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
15
+ import { Keyword } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
16
+ import { GenericKeywordsComponent } from '../../../generic-keywords/generic-keywords.component'
17
+ import { TranslateModule } from '@ngx-translate/core'
18
+ import { KeywordType } from '../../../../../../../../../libs/common/domain/src/lib/model/thesaurus'
19
+
20
+ @Component({
21
+ selector: 'gn-ui-form-field-keywords',
22
+ templateUrl: './form-field-keywords.component.html',
23
+ styleUrls: ['./form-field-keywords.component.css'],
24
+ changeDetection: ChangeDetectionStrategy.OnPush,
25
+ standalone: true,
26
+ imports: [
27
+ DropdownSelectorComponent,
28
+ UiInputsModule,
29
+ CommonModule,
30
+ UiWidgetsModule,
31
+ AutocompleteComponent,
32
+ GenericKeywordsComponent,
33
+ TranslateModule,
34
+ ],
35
+ })
36
+ export class FormFieldKeywordsComponent {
37
+ @Input() value: Keyword[]
38
+ @Output() valueChange: EventEmitter<Keyword[]> = new EventEmitter()
39
+
40
+ keywordTypes = ['temporal', 'theme', 'other'] as KeywordType[]
41
+ placeholder = 'editor.form.keywords.placeholder'
42
+
43
+ handleKeywordsChange(keywords: Keyword[]) {
44
+ this.valueChange.emit(keywords)
45
+ }
46
+ }
@@ -1,6 +1,12 @@
1
- import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
- import { FormControl } from '@angular/forms'
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ } from '@angular/core'
3
8
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
9
+ import { Constraint } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
4
10
  import { DropdownSelectorComponent } from '../../../../../../../../../libs/ui/inputs/src'
5
11
 
6
12
  @Component({
@@ -12,15 +18,17 @@ import { DropdownSelectorComponent } from '../../../../../../../../../libs/ui/in
12
18
  imports: [DropdownSelectorComponent],
13
19
  })
14
20
  export class FormFieldLicenseComponent {
15
- @Input() control!: FormControl
16
21
  @Input() label: string
22
+ @Input() value: Array<Constraint>
23
+
24
+ @Output() valueChange: EventEmitter<Array<Constraint>> = new EventEmitter()
17
25
 
18
26
  get selected() {
19
- return this.control.value[0]?.text
27
+ return this.value[0]?.text
20
28
  }
21
29
 
22
30
  onSelectValue(value: unknown) {
23
- this.control.setValue([{ text: value }])
31
+ this.valueChange.emit([{ text: value as string }])
24
32
  }
25
33
 
26
34
  choices = [
@@ -0,0 +1,4 @@
1
+ <gn-ui-map-context
2
+ [context]="mapContext$ | async"
3
+ [mapConfig]="mapConfig"
4
+ ></gn-ui-map-context>
@@ -0,0 +1,128 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ Input,
5
+ OnChanges,
6
+ } from '@angular/core'
7
+ import { CommonModule } from '@angular/common'
8
+ import { catchError, from, map, Observable, of, switchMap } from 'rxjs'
9
+ import {
10
+ DEFAULT_BASELAYER_CONTEXT,
11
+ FeatureMapModule,
12
+ MapContextLayerTypeEnum,
13
+ MapContextModel,
14
+ MapFacade,
15
+ MapStyleService,
16
+ MapUtilsService,
17
+ } from '../../../../../../../../../libs/feature/map/src'
18
+ import { Fill, Stroke, Style } from 'ol/style'
19
+ import { getOptionalMapConfig, MapConfig } from '../../../../../../../../../libs/util/app-config/src'
20
+ import { Geometry } from 'geojson'
21
+ import { GeoJSONFeatureCollection } from 'ol/format/GeoJSON'
22
+ import { DatasetSpatialExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
23
+ import { Polygon } from 'ol/geom'
24
+ import GeoJSON from 'ol/format/GeoJSON'
25
+
26
+ @Component({
27
+ selector: 'gn-ui-form-field-map-container',
28
+ standalone: true,
29
+ imports: [CommonModule, FeatureMapModule],
30
+ templateUrl: './form-field-map-container.component.html',
31
+ styleUrls: ['./form-field-map-container.component.css'],
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ })
34
+ export class FormFieldMapContainerComponent implements OnChanges {
35
+ @Input() spatialExtents: DatasetSpatialExtent[]
36
+
37
+ error = ''
38
+ mapContext$: Observable<MapContextModel> = this.mapFacade.layers$.pipe(
39
+ switchMap((layers) =>
40
+ from(this.mapUtils.getLayerExtent(layers[0])).pipe(
41
+ catchError(() => {
42
+ this.error = 'The layer has no extent'
43
+ return of(undefined)
44
+ }),
45
+ map((extent) => {
46
+ return {
47
+ layers: [DEFAULT_BASELAYER_CONTEXT, ...layers],
48
+ view: {
49
+ extent: extent,
50
+ },
51
+ } as MapContextModel
52
+ })
53
+ )
54
+ )
55
+ )
56
+
57
+ mapConfig: MapConfig = getOptionalMapConfig()
58
+
59
+ constructor(
60
+ private mapFacade: MapFacade,
61
+ private mapUtils: MapUtilsService,
62
+ private styleService: MapStyleService
63
+ ) {
64
+ const fill = new Fill({
65
+ color: 'transparent',
66
+ })
67
+ const stroke = new Stroke({
68
+ color: 'black',
69
+ width: 2,
70
+ })
71
+ const styles = [
72
+ new Style({
73
+ fill: fill,
74
+ stroke: stroke,
75
+ }),
76
+ ]
77
+ this.styleService.styles.default = this.styleService.createStyleFunction({
78
+ ...this.styleService.createGeometryStyles({ color: 'black' }),
79
+ polygon: styles,
80
+ })
81
+ }
82
+
83
+ ngOnChanges(): void {
84
+ this.mapFacade.removeLayer(0)
85
+
86
+ if (this.spatialExtents) {
87
+ const featureCollection: GeoJSONFeatureCollection = {
88
+ type: 'FeatureCollection',
89
+ features: [],
90
+ }
91
+
92
+ this.spatialExtents.forEach((extent) => {
93
+ if (extent.geometry) {
94
+ featureCollection.features.push({
95
+ type: 'Feature',
96
+ properties: {},
97
+ geometry: extent.geometry,
98
+ })
99
+ } else if (extent.bbox?.length >= 0) {
100
+ featureCollection.features.push({
101
+ type: 'Feature',
102
+ properties: {},
103
+ geometry: this.bboxCoordsToGeometry(extent.bbox),
104
+ })
105
+ }
106
+ })
107
+ this.mapFacade.addLayer({
108
+ type: MapContextLayerTypeEnum.GEOJSON,
109
+ data: featureCollection,
110
+ title: 'Spatial extents',
111
+ })
112
+ }
113
+ }
114
+ bboxCoordsToGeometry(bbox: [number, number, number, number]): Geometry {
115
+ const geometry = new Polygon([
116
+ [
117
+ [bbox[0], bbox[1]],
118
+ [bbox[0], bbox[3]],
119
+ [bbox[2], bbox[3]],
120
+ [bbox[2], bbox[1]],
121
+ [bbox[0], bbox[1]],
122
+ ],
123
+ ])
124
+
125
+ const geoJSONGeom = new GeoJSON().writeGeometryObject(geometry)
126
+ return geoJSONGeom
127
+ }
128
+ }
@@ -0,0 +1,33 @@
1
+ <gn-ui-file-input
2
+ [maxSizeMB]="MAX_UPLOAD_SIZE_MB"
3
+ (fileChange)="handleFileChange($event)"
4
+ (uploadCancel)="handleUploadCancel()"
5
+ [uploadProgress]="uploadProgress"
6
+ (urlChange)="handleUrlChange($event)"
7
+ ></gn-ui-file-input>
8
+ <gn-ui-sortable-list
9
+ [items]="linkResources"
10
+ (itemsOrderChange)="handleResourcesChange($event)"
11
+ [elementTemplate]="template"
12
+ >
13
+ </gn-ui-sortable-list>
14
+ <ng-template #template let-onlineResource let-index="index">
15
+ <gn-ui-online-resource-card
16
+ [onlineResource]="onlineResource"
17
+ (modifyClick)="handleResourceModify(onlineResource, index)"
18
+ ></gn-ui-online-resource-card>
19
+ </ng-template>
20
+
21
+ <ng-template #dialogTemplate let-onlineResource>
22
+ <h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
23
+ editor.record.form.field.onlineResource.edit.title
24
+ </h3>
25
+ <gn-ui-text-input
26
+ extraClass="mb-[16px]"
27
+ [(value)]="onlineResource.name"
28
+ ></gn-ui-text-input>
29
+ <h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
30
+ editor.record.form.field.onlineResource.edit.description
31
+ </h3>
32
+ <gn-ui-text-area [(value)]="onlineResource.description"></gn-ui-text-area>
33
+ </ng-template>
@@ -0,0 +1,182 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ ChangeDetectorRef,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ Output,
8
+ TemplateRef,
9
+ ViewChild,
10
+ } from '@angular/core'
11
+ import {
12
+ OnlineLinkResource,
13
+ OnlineResource,
14
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
15
+ import {
16
+ FileInputComponent,
17
+ TextAreaComponent,
18
+ TextInputComponent,
19
+ } from '../../../../../../../../../libs/ui/inputs/src'
20
+ import { CommonModule } from '@angular/common'
21
+ import { OnlineResourceCardComponent } from '../../../online-resource-card/online-resource-card.component'
22
+ import {
23
+ ModalDialogComponent,
24
+ SortableListComponent,
25
+ } from '../../../../../../../../../libs/ui/layout/src'
26
+ import { NotificationsService } from '../../../../../../../../../libs/feature/notifications/src'
27
+ import { TranslateModule, TranslateService } from '@ngx-translate/core'
28
+ import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
29
+ import { Subscription } from 'rxjs'
30
+ import { MatDialog } from '@angular/material/dialog'
31
+ import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config'
32
+
33
+ @Component({
34
+ selector: 'gn-ui-form-field-online-link-resources',
35
+ templateUrl: './form-field-online-link-resources.component.html',
36
+ styleUrls: ['./form-field-online-link-resources.component.css'],
37
+ changeDetection: ChangeDetectionStrategy.OnPush,
38
+ standalone: true,
39
+ imports: [
40
+ FileInputComponent,
41
+ CommonModule,
42
+ SortableListComponent,
43
+ OnlineResourceCardComponent,
44
+ TextInputComponent,
45
+ TextAreaComponent,
46
+ TranslateModule,
47
+ ],
48
+ })
49
+ export class FormFieldOnlineLinkResourcesComponent {
50
+ @Input() metadataUuid: string
51
+ @Input() set value(onlineResources: Array<OnlineResource>) {
52
+ this.allResources = onlineResources
53
+ this.linkResources = onlineResources.filter(
54
+ (res): res is OnlineLinkResource => res.type === 'link'
55
+ )
56
+ }
57
+ @Output() valueChange: EventEmitter<Array<OnlineResource>> =
58
+ new EventEmitter()
59
+
60
+ @ViewChild('dialogTemplate') dialogTemplate: TemplateRef<OnlineResource>
61
+
62
+ private allResources: OnlineResource[] = []
63
+ linkResources: OnlineLinkResource[] = []
64
+ uploadProgress = undefined
65
+ uploadSubscription: Subscription = null
66
+
67
+ protected MAX_UPLOAD_SIZE_MB = MAX_UPLOAD_SIZE_MB
68
+
69
+ constructor(
70
+ private notificationsService: NotificationsService,
71
+ private translateService: TranslateService,
72
+ private platformService: PlatformServiceInterface,
73
+ private cd: ChangeDetectorRef,
74
+ private dialog: MatDialog
75
+ ) {}
76
+
77
+ handleFileChange(file: File) {
78
+ this.uploadProgress = 0
79
+ this.uploadSubscription = this.platformService
80
+ .attachFileToRecord(this.metadataUuid, file)
81
+ .subscribe({
82
+ next: (event) => {
83
+ if (event.type === 'progress') {
84
+ this.uploadProgress = event.progress
85
+ this.cd.detectChanges()
86
+ } else if (event.type === 'success') {
87
+ this.uploadProgress = undefined
88
+ this.cd.detectChanges()
89
+ const newResource: OnlineLinkResource = {
90
+ type: 'link',
91
+ url: new URL(event.attachment.url),
92
+ name: event.attachment.fileName,
93
+ }
94
+ this.valueChange.emit([...this.allResources, newResource])
95
+ }
96
+ },
97
+ error: (error: Error) => this.handleError(error.message),
98
+ })
99
+ }
100
+
101
+ handleUploadCancel() {
102
+ if (this.uploadSubscription) {
103
+ this.uploadProgress = undefined
104
+ this.uploadSubscription.unsubscribe()
105
+ }
106
+ }
107
+
108
+ handleUrlChange(url: string) {
109
+ try {
110
+ const name = url.split('/').pop()
111
+ const newLink: OnlineLinkResource = {
112
+ type: 'link',
113
+ url: new URL(url),
114
+ name,
115
+ }
116
+ this.valueChange.emit([...this.allResources, newLink])
117
+ } catch (e) {
118
+ this.handleError((e as Error).message)
119
+ }
120
+ }
121
+
122
+ handleResourcesChange(items: unknown[]) {
123
+ const links = items as OnlineResource[]
124
+ const newResources = [
125
+ ...this.allResources.filter((r) => r.type !== 'link'),
126
+ ...links,
127
+ ]
128
+ this.valueChange.emit(newResources)
129
+ }
130
+
131
+ handleResourceModify(resource: OnlineLinkResource, index: number) {
132
+ this.openEditDialog(resource, index)
133
+ }
134
+
135
+ private handleError(error: string) {
136
+ this.uploadProgress = undefined
137
+ this.notificationsService.showNotification({
138
+ type: 'error',
139
+ title: this.translateService.instant(
140
+ 'editor.record.onlineResourceError.title'
141
+ ),
142
+ text: `${this.translateService.instant(
143
+ 'editor.record.onlineResourceError.body'
144
+ )} ${error}`,
145
+ closeMessage: this.translateService.instant(
146
+ 'editor.record.onlineResourceError.closeMessage'
147
+ ),
148
+ })
149
+ }
150
+
151
+ private openEditDialog(resource: OnlineLinkResource, index: number) {
152
+ const resourceCopy = {
153
+ ...resource,
154
+ }
155
+ this.dialog
156
+ .open(ModalDialogComponent, {
157
+ data: {
158
+ title: this.translateService.instant(
159
+ 'editor.record.form.field.onlineResource.dialogTitle'
160
+ ),
161
+ body: this.dialogTemplate,
162
+ bodyContext: resourceCopy,
163
+ confirmText: this.translateService.instant(
164
+ 'editor.record.form.field.onlineResource.confirm'
165
+ ),
166
+ cancelText: this.translateService.instant(
167
+ 'editor.record.form.field.onlineResource.cancel'
168
+ ),
169
+ },
170
+ })
171
+ .afterClosed()
172
+ .subscribe((confirmed: boolean) => {
173
+ if (!confirmed) return
174
+ const newLinks = [...this.linkResources]
175
+ newLinks.splice(index, 1, resourceCopy)
176
+ this.valueChange.emit([
177
+ ...this.allResources.filter((r) => r.type !== 'link'),
178
+ ...newLinks,
179
+ ])
180
+ })
181
+ }
182
+ }
@@ -0,0 +1,6 @@
1
+ <gn-ui-check-toggle
2
+ [label]="'editor.record.form.classification.opendata' | translate"
3
+ [value]="openData"
4
+ (toggled)="onOpenDataToggled($event)"
5
+ data-cy="openDataToggle"
6
+ ></gn-ui-check-toggle>