geonetwork-ui 2.4.0-dev.8f04e899 → 2.4.0-dev.9075aa64

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 (674) 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/keywords.model.mjs +1 -1
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
  5. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +11 -16
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +35 -7
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +50 -18
  12. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
  13. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +40 -3
  14. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +2 -1
  15. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -1
  16. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +12 -2
  17. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +59 -11
  18. package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
  19. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  20. package/esm2022/libs/common/domain/src/lib/model/record/organization.model.mjs +1 -1
  21. package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
  22. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  23. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  24. package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
  25. package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
  26. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
  27. package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
  28. package/esm2022/libs/feature/catalog/src/index.mjs +2 -1
  29. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +1 -1
  30. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
  31. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +4 -0
  32. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -6
  33. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
  34. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
  35. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
  36. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +3 -1
  37. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +8 -3
  38. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +10 -2
  39. package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
  40. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
  41. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
  42. package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
  43. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
  44. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
  45. 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
  46. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -39
  47. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
  48. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
  49. 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
  50. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
  51. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +103 -0
  52. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
  53. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
  54. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
  55. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +137 -5
  56. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +38 -68
  57. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
  58. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +43 -42
  59. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +1 -2
  60. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +13 -7
  61. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
  62. package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
  63. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
  64. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +199 -57
  65. package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
  66. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
  67. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -3
  68. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
  69. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +7 -6
  70. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
  71. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
  72. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
  73. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
  74. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
  75. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
  76. package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
  77. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
  78. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
  79. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
  80. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
  81. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
  82. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
  83. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
  84. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +11 -13
  85. package/esm2022/libs/feature/router/src/lib/default/constants.mjs +2 -1
  86. package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
  87. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +9 -2
  88. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +8 -1
  89. package/esm2022/libs/feature/search/src/index.mjs +2 -2
  90. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
  91. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +89 -0
  92. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +8 -3
  93. package/esm2022/libs/feature/search/src/lib/state/selectors.mjs +4 -1
  94. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +7 -3
  95. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +5 -5
  96. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -2
  97. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -8
  98. package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
  99. package/esm2022/libs/ui/elements/src/index.mjs +3 -3
  100. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
  101. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
  102. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
  103. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
  104. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +5 -3
  105. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
  106. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
  107. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
  108. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +6 -6
  109. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
  110. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
  111. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
  112. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +24 -5
  113. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +15 -11
  114. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
  115. package/esm2022/libs/ui/inputs/src/index.mjs +5 -1
  116. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
  117. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
  118. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
  119. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +19 -15
  120. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
  121. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +7 -21
  122. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
  123. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
  124. package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
  125. package/esm2022/libs/ui/layout/src/index.mjs +4 -1
  126. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
  127. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
  128. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +71 -0
  129. package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
  130. package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  131. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +1 -1
  132. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
  133. package/esm2022/libs/ui/search/src/index.mjs +2 -1
  134. package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
  135. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
  136. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +140 -0
  137. package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
  138. package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
  139. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
  140. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
  141. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
  142. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
  143. package/esm2022/translations/de.json +155 -38
  144. package/esm2022/translations/en.json +129 -12
  145. package/esm2022/translations/es.json +126 -9
  146. package/esm2022/translations/fr.json +141 -24
  147. package/esm2022/translations/it.json +129 -12
  148. package/esm2022/translations/nl.json +126 -9
  149. package/esm2022/translations/pt.json +126 -9
  150. package/fesm2022/geonetwork-ui.mjs +4338 -1900
  151. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  152. package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
  153. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
  154. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  155. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
  156. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -1
  157. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +1 -0
  158. package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
  159. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
  160. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  161. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
  162. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  163. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  164. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +12 -6
  165. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  166. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
  167. package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
  168. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +10 -7
  169. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  170. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +1 -0
  171. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  172. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +8 -1
  173. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  174. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
  175. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
  176. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  177. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +24 -3
  178. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  179. package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -0
  180. package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
  181. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -7
  182. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  183. package/libs/common/domain/src/lib/model/record/organization.model.d.ts +1 -0
  184. package/libs/common/domain/src/lib/model/record/organization.model.d.ts.map +1 -1
  185. package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
  186. package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
  187. package/libs/common/domain/src/lib/platform.service.interface.d.ts +18 -1
  188. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  189. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +19 -0
  190. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  191. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
  192. package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
  193. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
  194. package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
  195. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  196. package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
  197. package/libs/feature/catalog/src/index.d.ts +1 -0
  198. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  199. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  200. package/libs/feature/catalog/src/lib/organisations/organisations.component.d.ts.map +1 -1
  201. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +3 -0
  202. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -0
  203. package/libs/feature/catalog/src/lib/records/records.service.d.ts.map +1 -1
  204. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
  205. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  206. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
  207. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  208. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
  209. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  210. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +6 -0
  211. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  212. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  213. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  214. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +5 -4
  215. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  216. package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
  217. package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
  218. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
  219. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  220. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
  221. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  222. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
  223. package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
  224. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
  225. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
  226. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
  227. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
  228. 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
  229. 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
  230. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
  231. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  232. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
  233. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -1
  234. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +22 -0
  235. 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
  236. 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
  237. 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
  238. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
  239. 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
  240. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +31 -0
  241. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
  242. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
  243. 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
  244. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
  245. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
  246. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
  247. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
  248. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +28 -0
  249. 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
  250. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +10 -16
  251. 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
  252. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
  253. 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
  254. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +18 -20
  255. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  256. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +0 -1
  257. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  258. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +7 -7
  259. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
  260. package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
  261. package/libs/feature/editor/src/lib/expressions.d.ts.map +1 -1
  262. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
  263. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  264. package/libs/feature/editor/src/lib/fields.config.d.ts +54 -2
  265. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  266. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +41 -0
  267. package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
  268. package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
  269. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  270. package/libs/feature/editor/src/lib/services/editor.service.d.ts +3 -2
  271. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  272. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
  273. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  274. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +6 -6
  275. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  276. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts +1 -1
  277. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  278. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +1 -1
  279. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  280. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
  281. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  282. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
  283. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  284. package/libs/feature/map/src/lib/feature-map.module.d.ts +16 -21
  285. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  286. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
  287. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  288. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
  289. package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
  290. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  291. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
  292. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  293. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
  294. package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
  295. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
  296. package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
  297. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
  298. package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
  299. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
  300. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  301. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
  302. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  303. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
  304. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  305. package/libs/feature/router/src/lib/default/constants.d.ts +1 -0
  306. package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
  307. package/libs/feature/router/src/lib/default/router.config.d.ts +1 -0
  308. package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
  309. package/libs/feature/router/src/lib/default/router.service.d.ts +1 -0
  310. package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
  311. package/libs/feature/router/src/lib/default/state/router.facade.d.ts +1 -0
  312. package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
  313. package/libs/feature/search/src/index.d.ts +1 -1
  314. package/libs/feature/search/src/index.d.ts.map +1 -1
  315. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +36 -0
  316. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -0
  317. package/libs/feature/search/src/lib/state/search.facade.d.ts +2 -0
  318. package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
  319. package/libs/feature/search/src/lib/state/selectors.d.ts +1 -0
  320. package/libs/feature/search/src/lib/state/selectors.d.ts.map +1 -1
  321. package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
  322. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts +2 -2
  323. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +2 -1
  324. package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
  325. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -2
  326. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
  327. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
  328. package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
  329. package/libs/ui/elements/src/index.d.ts +2 -2
  330. package/libs/ui/elements/src/index.d.ts.map +1 -1
  331. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
  332. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
  333. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
  334. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  335. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
  336. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  337. package/libs/ui/elements/src/lib/error/error.component.d.ts +3 -1
  338. package/libs/ui/elements/src/lib/error/error.component.d.ts.map +1 -1
  339. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
  340. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
  341. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
  342. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  343. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
  344. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +5 -1
  345. package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
  346. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +17 -15
  347. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  348. package/libs/ui/inputs/src/index.d.ts +4 -0
  349. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  350. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
  351. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  352. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
  353. package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
  354. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
  355. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
  356. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +4 -5
  357. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
  358. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +16 -0
  359. package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
  360. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
  361. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  362. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
  363. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  364. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
  365. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  366. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +18 -0
  367. package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
  368. package/libs/ui/layout/src/index.d.ts +3 -0
  369. package/libs/ui/layout/src/index.d.ts.map +1 -1
  370. package/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.d.ts +2 -2
  371. package/libs/ui/layout/src/lib/max-lines/max-lines.component.d.ts.map +1 -0
  372. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
  373. package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
  374. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
  375. package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  376. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
  377. package/libs/ui/search/src/index.d.ts +1 -0
  378. package/libs/ui/search/src/index.d.ts.map +1 -1
  379. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
  380. package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
  381. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
  382. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
  383. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +36 -0
  384. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
  385. package/libs/ui/widgets/src/index.d.ts +1 -0
  386. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  387. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
  388. package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
  389. package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
  390. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  391. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
  392. package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
  393. package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
  394. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  395. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
  396. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
  397. package/package.json +1 -1
  398. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +7 -2
  399. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +6 -2
  400. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +38 -13
  401. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +6 -2
  402. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +1 -0
  403. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
  404. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
  405. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
  406. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
  407. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
  408. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
  409. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +10 -14
  410. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +85 -17
  411. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
  412. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +118 -37
  413. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
  414. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +56 -2
  415. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +1 -0
  416. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +3 -1
  417. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +13 -2
  418. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +116 -30
  419. package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
  420. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +10 -8
  421. package/src/libs/common/domain/src/lib/model/record/organization.model.ts +1 -0
  422. package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
  423. package/src/libs/common/domain/src/lib/platform.service.interface.ts +35 -1
  424. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +25 -0
  425. package/src/libs/common/fixtures/src/index.ts +3 -1
  426. package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
  427. package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
  428. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
  429. package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
  430. package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
  431. package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
  432. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
  433. package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
  434. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
  435. package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
  436. package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
  437. package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
  438. package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
  439. package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
  440. package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +65 -3
  441. package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
  442. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +17 -9
  443. package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
  444. package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
  445. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
  446. package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
  447. package/src/libs/data-access/datafeeder/src/openapi/model/datasetMetadata.api.model.ts +4 -0
  448. package/src/libs/data-access/datafeeder/src/openapi/model/datasetUploadStatus.api.model.ts +2 -0
  449. package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
  450. package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
  451. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
  452. package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
  453. package/src/libs/data-access/gn4/src/spec.yaml +0 -8
  454. package/src/libs/feature/catalog/src/index.ts +1 -0
  455. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -1
  456. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.html +1 -1
  457. package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +2 -2
  458. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +6 -0
  459. package/src/libs/feature/catalog/src/lib/records/records.service.ts +6 -8
  460. package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
  461. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
  462. package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
  463. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
  464. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
  465. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +7 -0
  466. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +17 -2
  467. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +13 -1
  468. package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
  469. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
  470. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
  471. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +25 -0
  472. package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
  473. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
  474. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
  475. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
  476. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
  477. 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
  478. 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
  479. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
  480. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -49
  481. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
  482. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
  483. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
  484. 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
  485. 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
  486. 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
  487. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
  488. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
  489. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
  490. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
  491. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -0
  492. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +122 -0
  493. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
  494. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
  495. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
  496. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
  497. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
  498. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
  499. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +20 -1
  500. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +201 -1
  501. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +30 -4
  502. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +41 -86
  503. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
  504. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +113 -70
  505. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +50 -42
  506. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
  507. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +53 -11
  508. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +20 -7
  509. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
  510. package/src/libs/feature/editor/src/lib/expressions.ts +1 -1
  511. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  512. package/src/libs/feature/editor/src/lib/fields.config.ts +238 -57
  513. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +62 -0
  514. package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
  515. package/src/libs/feature/editor/src/lib/services/editor.service.ts +15 -4
  516. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
  517. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -8
  518. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
  519. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
  520. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
  521. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
  522. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
  523. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
  524. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
  525. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
  526. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
  527. package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
  528. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
  529. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
  530. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
  531. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
  532. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
  533. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
  534. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
  535. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
  536. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
  537. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +47 -32
  538. package/src/libs/feature/router/src/lib/default/constants.ts +1 -0
  539. package/src/libs/feature/router/src/lib/default/router.config.ts +1 -0
  540. package/src/libs/feature/router/src/lib/default/router.service.ts +13 -1
  541. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +9 -1
  542. package/src/libs/feature/search/src/index.ts +1 -1
  543. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
  544. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.css +0 -0
  545. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +12 -0
  546. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +112 -0
  547. package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
  548. package/src/libs/feature/search/src/lib/state/search.facade.ts +11 -0
  549. package/src/libs/feature/search/src/lib/state/selectors.ts +7 -0
  550. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +16 -2
  551. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +8 -6
  552. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
  553. package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +2 -0
  554. package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
  555. package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +11 -3
  556. package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +3 -7
  557. package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
  558. package/src/libs/ui/elements/src/index.ts +2 -2
  559. package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +29 -29
  560. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
  561. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
  562. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
  563. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
  564. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
  565. package/src/libs/ui/elements/src/lib/error/error.component.html +30 -6
  566. package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -0
  567. package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
  568. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
  569. package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +7 -1
  570. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
  571. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
  572. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
  573. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
  574. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  575. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
  576. package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +22 -1
  577. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +10 -6
  578. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.html +1 -1
  579. package/src/libs/ui/inputs/src/index.ts +4 -0
  580. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
  581. package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
  582. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
  583. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
  584. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +92 -0
  585. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +50 -50
  586. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +17 -14
  587. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.css +31 -0
  588. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +14 -0
  589. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +37 -0
  590. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +3 -2
  591. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +3 -28
  592. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
  593. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
  594. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
  595. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.css +9 -0
  596. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
  597. package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
  598. package/src/libs/ui/layout/src/index.ts +3 -0
  599. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
  600. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
  601. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.css +0 -0
  602. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.html +1 -0
  603. package/src/libs/ui/{elements → layout}/src/lib/max-lines/max-lines.component.ts +9 -5
  604. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.css +0 -0
  605. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
  606. package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
  607. package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
  608. package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +15 -18
  609. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -1
  610. package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
  611. package/src/libs/ui/search/src/index.ts +1 -0
  612. package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
  613. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
  614. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
  615. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
  616. package/src/libs/ui/search/src/lib/results-table/results-table.component.css +0 -0
  617. package/src/libs/{feature → ui}/search/src/lib/results-table/results-table.component.html +30 -9
  618. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +151 -0
  619. package/src/libs/ui/widgets/src/index.ts +1 -0
  620. package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
  621. package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
  622. package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
  623. package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
  624. package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
  625. package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
  626. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
  627. package/tailwind.base.css +23 -5
  628. package/translations/de.json +155 -38
  629. package/translations/en.json +129 -12
  630. package/translations/es.json +126 -9
  631. package/translations/fr.json +141 -24
  632. package/translations/it.json +129 -12
  633. package/translations/nl.json +126 -9
  634. package/translations/pt.json +126 -9
  635. package/translations/sk.json +128 -11
  636. 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
  637. 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
  638. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
  639. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
  640. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +0 -136
  641. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +0 -69
  642. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -43
  643. 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
  644. 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
  645. 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
  646. 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
  647. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
  648. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
  649. package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
  650. package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
  651. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +0 -36
  652. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +0 -1
  653. package/libs/ui/elements/src/lib/max-lines/max-lines.component.d.ts.map +0 -1
  654. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -22
  655. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
  656. package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
  657. package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
  658. package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
  659. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -8
  660. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -70
  661. 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
  662. 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
  663. 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
  664. 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
  665. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
  666. package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
  667. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +0 -171
  668. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -36
  669. /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → contact-card/contact-card.component.css} +0 -0
  670. /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
  671. /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
  672. /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
  673. /package/src/libs/{ui/elements/src/lib/max-lines/max-lines.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css} +0 -0
  674. /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
@@ -2,8 +2,8 @@ import { Action, createReducer, on } from '@ngrx/store'
2
2
  import * as EditorActions from './editor.actions'
3
3
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
4
4
  import { SaveRecordError } from './editor.models'
5
- import { EditorFieldsConfig } from '../models/fields.model'
6
- import { DEFAULT_FIELDS } from '../fields.config'
5
+ import { EditorConfig } from '../models'
6
+ import { DEFAULT_CONFIGURATION } from '../fields.config'
7
7
 
8
8
  export const EDITOR_FEATURE_KEY = 'editor'
9
9
 
@@ -13,7 +13,7 @@ export const EDITOR_FEATURE_KEY = 'editor'
13
13
  * @property saving
14
14
  * @property saveError
15
15
  * @property changedSinceSave
16
- * @property fieldsConfig Configuration for the fields in the editor
16
+ * @property editorConfig Configuration for the fields in the editor
17
17
  */
18
18
  export interface EditorState {
19
19
  record: CatalogRecord | null
@@ -22,7 +22,8 @@ export interface EditorState {
22
22
  saving: boolean
23
23
  saveError: SaveRecordError | null
24
24
  changedSinceSave: boolean
25
- fieldsConfig: EditorFieldsConfig
25
+ editorConfig: EditorConfig
26
+ currentPage: number
26
27
  }
27
28
 
28
29
  export interface EditorPartialState {
@@ -36,7 +37,8 @@ export const initialEditorState: EditorState = {
36
37
  saving: false,
37
38
  saveError: null,
38
39
  changedSinceSave: false,
39
- fieldsConfig: DEFAULT_FIELDS,
40
+ editorConfig: DEFAULT_CONFIGURATION,
41
+ currentPage: 0,
40
42
  }
41
43
 
42
44
  const reducer = createReducer(
@@ -77,6 +79,10 @@ const reducer = createReducer(
77
79
  on(EditorActions.markRecordAsChanged, (state) => ({
78
80
  ...state,
79
81
  changedSinceSave: true,
82
+ })),
83
+ on(EditorActions.setCurrentPage, (state, { page }) => ({
84
+ ...state,
85
+ currentPage: page,
80
86
  }))
81
87
  )
82
88
 
@@ -1,5 +1,6 @@
1
1
  import { createFeatureSelector, createSelector } from '@ngrx/store'
2
2
  import { EDITOR_FEATURE_KEY, EditorState } from './editor.reducer'
3
+ import { EditorSectionWithValues } from './editor.models'
3
4
 
4
5
  export const selectEditorState =
5
6
  createFeatureSelector<EditorState>(EDITOR_FEATURE_KEY)
@@ -34,16 +35,29 @@ export const selectRecordAlreadySavedOnce = createSelector(
34
35
  (state: EditorState) => state.alreadySavedOnce
35
36
  )
36
37
 
37
- export const selectRecordFieldsConfig = createSelector(
38
+ export const selectEditorConfig = createSelector(
38
39
  selectEditorState,
39
- (state: EditorState) => state.fieldsConfig
40
+ (state: EditorState) => state.editorConfig
40
41
  )
41
42
 
42
- export const selectRecordFields = createSelector(
43
+ export const selectCurrentPage = createSelector(
43
44
  selectEditorState,
44
- (state: EditorState) =>
45
- state.fieldsConfig.map((fieldConfig) => ({
46
- config: fieldConfig,
47
- value: state.record?.[fieldConfig.model] ?? null,
48
- }))
45
+ (state: EditorState) => state.currentPage
46
+ )
47
+
48
+ export const selectRecordSections = createSelector(
49
+ selectEditorState,
50
+ (state: EditorState) => {
51
+ const currentPage = state.editorConfig.pages[state.currentPage]
52
+ if (!currentPage) {
53
+ return [] as EditorSectionWithValues[]
54
+ }
55
+ return currentPage.sections.map((section) => ({
56
+ ...section,
57
+ fieldsWithValues: section.fields.map((fieldConfig) => ({
58
+ config: fieldConfig,
59
+ value: state.record?.[fieldConfig.model] ?? null,
60
+ })),
61
+ })) as EditorSectionWithValues[]
62
+ }
49
63
  )
@@ -0,0 +1,25 @@
1
+ <div class="flex flex-row gap-2 items-center">
2
+ <div class="gn-ui-card">
3
+ <gn-ui-thumbnail
4
+ class="w-[56px] h-[56px] rounded-[4px] overflow-hidden shrink-0"
5
+ [thumbnailUrl]="contact.organization.logoUrl?.href"
6
+ [fit]="'contain'"
7
+ ></gn-ui-thumbnail>
8
+ <div class="flex flex-col w-full overflow-hidden leading-snug">
9
+ <div class="text-[16px] font-bold text-main" data-test="contactCardName">
10
+ {{ contact.firstName }} {{ contact.lastName }}
11
+ </div>
12
+ <div class="text-[14px] text-gray-900" data-test="contactCardEmail">
13
+ {{ contact.email }}
14
+ </div>
15
+ </div>
16
+ </div>
17
+ <gn-ui-button
18
+ *ngIf="removable"
19
+ data-test="removeContactButton"
20
+ type="light"
21
+ extraClass="w-[20px] h-[20px] flex items-center justify-center"
22
+ (buttonClick)="removeContact(contact)"
23
+ ><span class="material-symbols-outlined"> close </span>
24
+ </gn-ui-button>
25
+ </div>
@@ -0,0 +1,30 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ } from '@angular/core'
8
+ import { Individual } from '../../../../../../../libs/common/domain/src/lib/model/record'
9
+ import { MatIconModule } from '@angular/material/icon'
10
+ import { CommonModule } from '@angular/common'
11
+ import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
12
+ import { ThumbnailComponent } from '../../../../../../../libs/ui/elements/src'
13
+
14
+ @Component({
15
+ selector: 'gn-ui-contact-card',
16
+ templateUrl: './contact-card.component.html',
17
+ styleUrls: ['./contact-card.component.css'],
18
+ changeDetection: ChangeDetectionStrategy.OnPush,
19
+ standalone: true,
20
+ imports: [CommonModule, MatIconModule, ButtonComponent, ThumbnailComponent],
21
+ })
22
+ export class ContactCardComponent {
23
+ @Input() contact: Individual
24
+ @Input() removable = true
25
+ @Output() contactRemoved = new EventEmitter<Individual>()
26
+
27
+ removeContact(contact: Individual) {
28
+ this.contactRemoved.emit(contact)
29
+ }
30
+ }
@@ -0,0 +1,26 @@
1
+ <div class="flex flex-col gap-3">
2
+ <gn-ui-autocomplete
3
+ [placeholder]="placeholder"
4
+ [displayWithFn]="displayWithFn"
5
+ [action]="autoCompleteAction"
6
+ (itemSelected)="handleItemSelection($event)"
7
+ [preventCompleteOnSelection]="true"
8
+ [minCharacterCount]="0"
9
+ [allowSubmit]="false"
10
+ ></gn-ui-autocomplete>
11
+ <div class="flex gap-2 flex-wrap">
12
+ <gn-ui-badge
13
+ *ngFor="let keyword of keywords"
14
+ [removable]="true"
15
+ (badgeRemoveClicked)="removeKeyword(keyword)"
16
+ >{{ keyword.label }}
17
+
18
+ <mat-icon
19
+ *ngIf="isPlaceWithoutExtent(keyword)"
20
+ [title]="'editor.form.placeKeywordWithoutExtent' | translate"
21
+ class="material-symbols-outlined"
22
+ >warning</mat-icon
23
+ >
24
+ </gn-ui-badge>
25
+ </div>
26
+ </div>
@@ -0,0 +1,89 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ Output,
8
+ } from '@angular/core'
9
+ import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
10
+ import {
11
+ AutocompleteComponent,
12
+ DropdownSelectorComponent,
13
+ UiInputsModule,
14
+ } from '../../../../../../../libs/ui/inputs/src'
15
+ import { UiWidgetsModule } from '../../../../../../../libs/ui/widgets/src'
16
+ import { map } from 'rxjs'
17
+ import { Keyword } from '../../../../../../../libs/common/domain/src/lib/model/record'
18
+ import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
19
+ import { MatIconModule } from '@angular/material/icon'
20
+ import { TranslateModule } from '@ngx-translate/core'
21
+
22
+ type AutocompleteItem = { title: string; value: Keyword }
23
+
24
+ @Component({
25
+ selector: 'gn-ui-generic-keywords',
26
+ templateUrl: './generic-keywords.component.html',
27
+ styleUrls: ['./generic-keywords.component.css'],
28
+ changeDetection: ChangeDetectionStrategy.OnPush,
29
+ standalone: true,
30
+ imports: [
31
+ DropdownSelectorComponent,
32
+ UiInputsModule,
33
+ CommonModule,
34
+ UiWidgetsModule,
35
+ AutocompleteComponent,
36
+ MatIconModule,
37
+ TranslateModule,
38
+ ],
39
+ })
40
+ export class GenericKeywordsComponent {
41
+ @Input() keywords: Keyword[]
42
+ @Input() keywordTypes: KeywordType[]
43
+ @Input() placeholder: string
44
+ @Output() changedKeywords: EventEmitter<Keyword[]> = new EventEmitter()
45
+ @Output() addedKeyword: EventEmitter<Keyword> = new EventEmitter()
46
+ @Output() deletedKeyword: EventEmitter<Keyword> = new EventEmitter()
47
+
48
+ displayWithFn = (item: AutocompleteItem) => {
49
+ return `${item.title} (${item.value.thesaurus?.name})`
50
+ }
51
+
52
+ autoCompleteAction = (query: string) => {
53
+ return this.platformService.searchKeywords(query, this.keywordTypes).pipe(
54
+ map((keywords) =>
55
+ keywords.map((keyword) => {
56
+ return { title: keyword.label, value: keyword }
57
+ })
58
+ )
59
+ )
60
+ }
61
+
62
+ constructor(private platformService: PlatformServiceInterface) {}
63
+
64
+ handleItemSelection(item: AutocompleteItem) {
65
+ this.addKeyword(item.value)
66
+ }
67
+
68
+ addKeyword(keyword: Keyword) {
69
+ const duplicatedKeyword = this.keywords.find(
70
+ (k) => k.label === keyword.label
71
+ )
72
+ if (!duplicatedKeyword) {
73
+ this.keywords = [...this.keywords, keyword]
74
+ this.changedKeywords.emit(this.keywords)
75
+ this.addedKeyword.emit(keyword)
76
+ }
77
+ }
78
+
79
+ removeKeyword(keyword: Keyword) {
80
+ this.keywords = this.keywords.filter((k) => k.label !== keyword.label)
81
+ this.changedKeywords.emit(this.keywords)
82
+ this.deletedKeyword.emit(keyword)
83
+ }
84
+
85
+ isPlaceWithoutExtent(keyword: Keyword): boolean {
86
+ if (keyword.type !== 'place') return false
87
+ return !keyword.bbox
88
+ }
89
+ }
@@ -0,0 +1,35 @@
1
+ <div class="gn-ui-card">
2
+ <div
3
+ class="bg-gray-100 w-[56px] h-[56px] rounded-[4px] text-primary grid justify-center items-center shrink-0"
4
+ >
5
+ <mat-icon class="material-symbols-outlined">attach_file</mat-icon>
6
+ </div>
7
+ <div class="flex flex-col w-full items-start overflow-hidden leading-snug">
8
+ <div class="text-[16px] font-bold text-main" data-test="card-title">
9
+ {{ title }}
10
+ </div>
11
+ <div
12
+ class="text-[14px] text-gray-900"
13
+ *ngIf="subtitle"
14
+ data-test="card-subtitle"
15
+ >
16
+ <span>{{ subtitle }}</span>
17
+ <span *ngIf="fileSize">
18
+
19
+ {{
20
+ 'editor.record.form.field.onlineResource.fileSize'
21
+ | translate: { sizeMB: fileSize }
22
+ }}</span
23
+ >
24
+ <span *ngIf="identifierInService"> • {{ identifierInService }}</span>
25
+ </div>
26
+ <button
27
+ class="gn-ui-link text-[14px]"
28
+ translate
29
+ (click)="modifyClick.emit(onlineResource)"
30
+ data-test="card-modify"
31
+ >
32
+ editor.record.form.field.onlineResource.modify
33
+ </button>
34
+ </div>
35
+ </div>
@@ -0,0 +1,79 @@
1
+ import {
2
+ ChangeDetectionStrategy,
3
+ Component,
4
+ EventEmitter,
5
+ Input,
6
+ Output,
7
+ } from '@angular/core'
8
+ import { CommonModule } from '@angular/common'
9
+ import {
10
+ DatasetDownloadDistribution,
11
+ OnlineLinkResource,
12
+ OnlineResource,
13
+ } from '../../../../../../../libs/common/domain/src/lib/model/record'
14
+ import { ThumbnailComponent } from '../../../../../../../libs/ui/elements/src'
15
+ import { MatIconModule } from '@angular/material/icon'
16
+ import { bytesToMegabytes, getFileFormat } from '../../../../../../../libs/util/shared/src'
17
+ import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
18
+ import { TranslateModule } from '@ngx-translate/core'
19
+
20
+ @Component({
21
+ selector: 'gn-ui-online-resource-card',
22
+ standalone: true,
23
+ imports: [
24
+ CommonModule,
25
+ ThumbnailComponent,
26
+ MatIconModule,
27
+ ButtonComponent,
28
+ TranslateModule,
29
+ ],
30
+ templateUrl: './online-resource-card.component.html',
31
+ styleUrls: ['./online-resource-card.component.css'],
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ })
34
+ export class OnlineResourceCardComponent {
35
+ @Input() onlineResource: OnlineResource
36
+ @Output() modifyClick = new EventEmitter<OnlineResource>()
37
+
38
+ get title(): string {
39
+ switch (this.onlineResource.type) {
40
+ case 'link':
41
+ case 'service':
42
+ case 'download':
43
+ return (
44
+ this.onlineResource.name ??
45
+ this.onlineResource.description ??
46
+ '(unknown)'
47
+ )
48
+ case 'endpoint':
49
+ return this.onlineResource.description
50
+ }
51
+ }
52
+
53
+ get subtitle(): string {
54
+ switch (this.onlineResource.type) {
55
+ case 'service':
56
+ return `${this.onlineResource.accessServiceProtocol}`
57
+ case 'endpoint':
58
+ return `${this.onlineResource.protocol}`
59
+ case 'link':
60
+ case 'download':
61
+ return this.getFormat(this.onlineResource)
62
+ }
63
+ }
64
+
65
+ get fileSize(): string {
66
+ if (this.onlineResource.type !== 'download') return ''
67
+ if (!this.onlineResource.sizeBytes) return ''
68
+ return bytesToMegabytes(this.onlineResource.sizeBytes).toLocaleString()
69
+ }
70
+
71
+ get identifierInService(): string {
72
+ if (this.onlineResource.type !== 'service') return ''
73
+ return this.onlineResource.identifierInService ?? ''
74
+ }
75
+
76
+ getFormat(onlineResource: OnlineLinkResource | DatasetDownloadDistribution) {
77
+ return (getFileFormat(onlineResource) || '').toUpperCase()
78
+ }
79
+ }
@@ -0,0 +1,86 @@
1
+ <div class="flex flex-col gap-3">
2
+ <div class="flex flex-row flex-wrap gap-2" data-test="rolesToPick">
3
+ <ng-container *ngFor="let role of rolesToPick">
4
+ <gn-ui-button
5
+ extraClass="px-2 py-1.5"
6
+ (buttonClick)="addRoleToDisplay(role)"
7
+ >
8
+ <div class="flex flex-row gap-1 items-center">
9
+ <span class="text-primary text-[20px] leading-[0] font-bold pb-[5px]"
10
+ >&#8330;</span
11
+ >
12
+ <span class="font-bold" translate>{{ roleToLabel(role) }}</span>
13
+ </div>
14
+ </gn-ui-button>
15
+ </ng-container>
16
+ </div>
17
+ <div
18
+ class="mt-8"
19
+ *ngIf="
20
+ roleSectionsToDisplay && roleSectionsToDisplay.length > 0;
21
+ else noContact
22
+ "
23
+ data-test="displayedRoles"
24
+ >
25
+ <div
26
+ *ngFor="
27
+ let role of roleSectionsToDisplay;
28
+ let index = index;
29
+ let isLast = last
30
+ "
31
+ class="flex flex-col gap-4"
32
+ >
33
+ <div class="flex flex-row justify-between">
34
+ <span class="font-bold text-base" translate>{{
35
+ roleToLabel(role)
36
+ }}</span>
37
+ </div>
38
+
39
+ <gn-ui-autocomplete
40
+ [placeholder]="'Choose a contact'"
41
+ [action]="autoCompleteAction"
42
+ (itemSelected)="addContact($event, role)"
43
+ [displayWithFn]="displayWithFn"
44
+ [minCharacterCount]="1"
45
+ [clearOnSelection]="true"
46
+ >
47
+ </gn-ui-autocomplete>
48
+
49
+ <ng-container *ngIf="contactsForRessourceByRole.get(role) as contacts">
50
+ <ng-container *ngIf="contacts.length > 1">
51
+ <gn-ui-sortable-list
52
+ [items]="contacts"
53
+ (itemsOrderChange)="handleContactsChanged($event)"
54
+ [elementTemplate]="contactTemplate"
55
+ ></gn-ui-sortable-list>
56
+ <ng-template #contactTemplate let-contact>
57
+ <div class="flex flex-row items-center gap-2">
58
+ <gn-ui-contact-card
59
+ [contact]="contact"
60
+ [removable]="false"
61
+ ></gn-ui-contact-card>
62
+ </div>
63
+ </ng-template>
64
+ </ng-container>
65
+ <ng-container *ngIf="contacts.length === 1">
66
+ <ng-container *ngFor="let contact of contacts">
67
+ <gn-ui-contact-card
68
+ [contact]="contact"
69
+ (contactRemoved)="removeContact(index)"
70
+ ></gn-ui-contact-card>
71
+ </ng-container>
72
+ </ng-container>
73
+ </ng-container>
74
+
75
+ <hr class="border-t-[#D6D3D1] mt-4 mb-6" *ngIf="!isLast" />
76
+ </div>
77
+ </div>
78
+ <ng-template #noContact>
79
+ <div
80
+ class="p-4 border border-primary bg-primary-lightest rounded-lg"
81
+ translate
82
+ >
83
+ editor.record.form.field.contactsForResource.noContact
84
+ </div>
85
+ </ng-template>
86
+ </div>
@@ -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
+ }