geonetwork-ui 2.3.0-dev.28c8df17 → 2.3.0-dev.2b8cc035

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 (508) hide show
  1. package/esm2022/index.mjs +2 -1
  2. package/esm2022/libs/api/metadata-converter/src/index.mjs +5 -5
  3. package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +14 -0
  4. package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +15 -0
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/atomic-operations.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.converter.mjs +52 -0
  7. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -4
  8. package/esm2022/libs/api/metadata-converter/src/lib/gn4/index.mjs +4 -0
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/index.mjs +2 -0
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +123 -0
  11. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +116 -0
  12. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +138 -0
  13. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/index.mjs +2 -0
  14. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +242 -0
  15. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +58 -62
  16. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.mjs +18 -0
  17. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +14 -0
  18. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.mjs +48 -0
  19. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.mjs +18 -0
  20. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.mjs +64 -0
  21. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +75 -58
  22. package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +76 -14
  23. package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
  24. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
  25. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +4 -4
  26. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
  27. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +19 -7
  28. package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
  29. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  30. package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
  31. package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
  32. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  33. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
  34. package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
  35. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +2 -2
  36. package/esm2022/libs/feature/editor/src/index.mjs +2 -2
  37. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
  41. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
  42. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
  43. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
  44. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
  45. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
  46. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
  47. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +121 -0
  48. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
  49. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
  50. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
  51. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
  52. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
  53. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +16 -1
  54. package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
  55. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -8
  56. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -2
  57. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
  58. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +72 -0
  59. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
  60. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
  61. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -3
  62. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +12 -7
  63. package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +2 -1
  64. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +52 -25
  65. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +12 -49
  66. package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
  67. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
  68. package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
  69. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
  70. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
  71. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
  72. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +6 -2
  73. package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
  74. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
  75. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
  76. package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
  77. package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
  78. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
  79. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
  80. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
  81. package/esm2022/libs/ui/elements/src/index.mjs +15 -15
  82. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
  83. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
  84. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
  85. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
  86. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +34 -7
  87. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
  88. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +14 -5
  89. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
  90. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
  91. package/esm2022/libs/ui/inputs/src/index.mjs +15 -16
  92. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
  93. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
  94. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
  95. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +17 -8
  96. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
  97. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
  98. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
  99. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +19 -3
  100. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +18 -29
  101. package/esm2022/libs/ui/layout/src/index.mjs +6 -5
  102. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
  103. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
  104. package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
  105. package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
  106. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
  107. package/esm2022/translations/de.json +46 -0
  108. package/esm2022/translations/en.json +46 -0
  109. package/esm2022/translations/es.json +46 -0
  110. package/esm2022/translations/fr.json +46 -0
  111. package/esm2022/translations/it.json +46 -0
  112. package/esm2022/translations/nl.json +46 -0
  113. package/esm2022/translations/pt.json +46 -0
  114. package/fesm2022/geonetwork-ui.mjs +5228 -3277
  115. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  116. package/index.d.ts +1 -0
  117. package/index.d.ts.map +1 -1
  118. package/index.ts +1 -0
  119. package/libs/api/metadata-converter/src/index.d.ts +4 -4
  120. package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
  121. package/libs/api/metadata-converter/src/lib/{metadata-base.mapper.d.ts → base.converter.d.ts} +3 -3
  122. package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -0
  123. package/libs/api/metadata-converter/src/lib/find-converter.d.ts +3 -0
  124. package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -0
  125. package/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.d.ts → gn4.converter.d.ts} +5 -5
  126. package/libs/api/metadata-converter/src/lib/gn4/gn4.converter.d.ts.map +1 -0
  127. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  128. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts +4 -0
  129. package/libs/api/metadata-converter/src/lib/gn4/index.d.ts.map +1 -0
  130. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts +2 -0
  131. package/libs/api/metadata-converter/src/lib/iso19115-3/index.d.ts.map +1 -0
  132. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts +9 -0
  133. package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -0
  134. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +20 -0
  135. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -0
  136. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +21 -0
  137. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -0
  138. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts +2 -0
  139. package/libs/api/metadata-converter/src/lib/iso19139/index.d.ts.map +1 -0
  140. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts +11 -0
  141. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -0
  142. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +34 -6
  143. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  144. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts +8 -0
  145. package/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.d.ts.map +1 -0
  146. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -0
  147. package/libs/api/metadata-converter/src/lib/iso19139/utils/role.mapper.d.ts.map +1 -0
  148. package/libs/api/metadata-converter/src/lib/iso19139/utils/status.mapper.d.ts.map +1 -0
  149. package/libs/api/metadata-converter/src/lib/iso19139/utils/update-frequency.mapper.d.ts.map +1 -0
  150. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +39 -3
  151. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  152. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +14 -1
  153. package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
  154. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
  155. package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
  156. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
  157. package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
  158. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -2
  159. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  160. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
  161. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  162. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +9 -6
  163. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  164. package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
  165. package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
  166. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -4
  167. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  168. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
  169. package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
  170. package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
  171. package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
  172. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
  173. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  174. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
  175. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  176. package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
  177. package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
  178. package/libs/feature/editor/src/index.d.ts +1 -1
  179. package/libs/feature/editor/src/index.d.ts.map +1 -1
  180. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
  181. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  182. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
  183. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
  184. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
  185. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
  186. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
  187. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
  188. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
  189. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.d.ts.map +1 -0
  190. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +8 -0
  191. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
  192. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
  193. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
  194. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
  195. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
  196. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
  197. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
  198. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
  199. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
  200. package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +12 -4
  201. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
  202. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
  203. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
  204. package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
  205. package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
  206. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -1
  207. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  208. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  209. package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
  210. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  211. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
  212. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +23 -0
  213. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -0
  214. package/libs/feature/map/src/lib/feature-map.module.d.ts +2 -1
  215. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  216. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +2 -0
  217. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  218. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +10 -5
  219. package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
  220. package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
  221. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +2 -3
  222. package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
  223. package/libs/feature/notifications/src/index.d.ts +4 -0
  224. package/libs/feature/notifications/src/index.d.ts.map +1 -0
  225. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
  226. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
  227. package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
  228. package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
  229. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
  230. package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
  231. package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
  232. package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
  233. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  234. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  235. package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
  236. package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
  237. package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
  238. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  239. package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
  240. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  241. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
  242. package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
  243. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
  244. package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
  245. package/libs/ui/elements/src/index.d.ts +14 -14
  246. package/libs/ui/elements/src/index.d.ts.map +1 -1
  247. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  248. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
  249. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
  250. package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
  251. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
  252. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +4 -2
  253. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  254. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
  255. package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
  256. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +10 -8
  257. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  258. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
  259. package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
  260. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
  261. package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
  262. package/libs/ui/inputs/src/index.d.ts +14 -15
  263. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  264. package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
  265. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
  266. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
  267. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
  268. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  269. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +1 -1
  270. package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
  271. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
  272. package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
  273. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
  274. package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
  275. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
  276. package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
  277. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +4 -1
  278. package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
  279. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +35 -42
  280. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  281. package/libs/ui/layout/src/index.d.ts +5 -4
  282. package/libs/ui/layout/src/index.d.ts.map +1 -1
  283. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
  284. package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
  285. package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
  286. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  287. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
  288. package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
  289. package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
  290. package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
  291. package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
  292. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  293. package/package.json +2 -2
  294. package/src/libs/api/metadata-converter/src/index.ts +4 -4
  295. package/src/libs/api/metadata-converter/src/lib/{metadata-base.mapper.ts → base.converter.ts} +2 -2
  296. package/src/libs/api/metadata-converter/src/lib/find-converter.ts +16 -0
  297. package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +32 -5
  298. package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +11 -4
  299. package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +33 -7
  300. package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +580 -0
  301. package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +2 -2
  302. package/src/libs/api/metadata-converter/src/lib/gn4/{gn4.metadata.mapper.ts → gn4.converter.ts} +2 -2
  303. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +9 -3
  304. package/src/libs/api/metadata-converter/src/lib/gn4/index.ts +3 -0
  305. package/src/libs/api/metadata-converter/src/lib/iso19115-3/index.ts +1 -0
  306. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +176 -0
  307. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +329 -0
  308. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +513 -0
  309. package/src/libs/api/metadata-converter/src/lib/iso19139/index.ts +1 -0
  310. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +327 -0
  311. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +121 -82
  312. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/individual-name.ts +20 -0
  313. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +175 -95
  314. package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +84 -16
  315. package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
  316. package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
  317. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +2 -2
  318. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
  319. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
  320. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  321. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +9 -4
  322. package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
  323. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
  324. package/src/libs/common/fixtures/src/index.ts +8 -6
  325. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
  326. package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
  327. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
  328. package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
  329. package/src/libs/data-access/gn4/src/spec.yaml +1 -1
  330. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +1 -1
  331. package/src/libs/feature/editor/src/index.ts +1 -1
  332. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
  333. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
  334. package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
  335. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
  336. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
  337. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
  338. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
  339. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
  340. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
  341. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
  342. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
  343. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
  344. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
  345. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
  346. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
  347. package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
  348. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
  349. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +92 -0
  350. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +137 -0
  351. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
  352. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
  353. package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
  354. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
  355. package/src/libs/feature/editor/src/lib/fields.config.ts +15 -0
  356. package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
  357. package/src/libs/feature/editor/src/lib/services/editor.service.ts +27 -16
  358. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
  359. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
  360. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +0 -0
  361. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +36 -0
  362. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +80 -0
  363. package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -0
  364. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +8 -0
  365. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +5 -0
  366. package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +10 -3
  367. package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +60 -32
  368. package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +17 -61
  369. package/src/libs/feature/notifications/src/index.ts +3 -0
  370. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
  371. package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
  372. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
  373. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
  374. package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
  375. package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
  376. package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
  377. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -1
  378. package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
  379. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
  380. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +49 -8
  381. package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
  382. package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
  383. package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
  384. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
  385. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
  386. package/src/libs/ui/elements/src/index.ts +14 -14
  387. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
  388. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
  389. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
  390. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
  391. package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
  392. package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
  393. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
  394. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
  395. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +40 -4
  396. package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
  397. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -1
  398. package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
  399. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
  400. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
  401. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
  402. package/src/libs/ui/inputs/src/index.ts +14 -15
  403. package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
  404. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
  405. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
  406. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
  407. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
  408. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +13 -0
  409. package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
  410. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
  411. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
  412. package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
  413. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
  414. package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +29 -0
  415. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +1 -1
  416. package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +16 -1
  417. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +5 -21
  418. package/src/libs/ui/layout/src/index.ts +5 -4
  419. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
  420. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
  421. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
  422. package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
  423. package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
  424. package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
  425. package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
  426. package/tailwind.base.css +36 -0
  427. package/translations/de.json +46 -0
  428. package/translations/en.json +46 -0
  429. package/translations/es.json +46 -0
  430. package/translations/fr.json +46 -0
  431. package/translations/it.json +46 -0
  432. package/translations/nl.json +46 -0
  433. package/translations/pt.json +46 -0
  434. package/translations/sk.json +46 -0
  435. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +0 -52
  436. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.mjs +0 -14
  437. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.mjs +0 -48
  438. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.mjs +0 -18
  439. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.mjs +0 -64
  440. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +0 -130
  441. package/esm2022/libs/api/metadata-converter/src/lib/metadata-base.mapper.mjs +0 -14
  442. package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
  443. package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
  444. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
  445. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
  446. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
  447. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
  448. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
  449. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
  450. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  451. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
  452. package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
  453. package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
  454. package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +0 -1
  455. package/libs/api/metadata-converter/src/lib/iso19139/codelists/keyword.mapper.d.ts.map +0 -1
  456. package/libs/api/metadata-converter/src/lib/iso19139/codelists/role.mapper.d.ts.map +0 -1
  457. package/libs/api/metadata-converter/src/lib/iso19139/codelists/status.mapper.d.ts.map +0 -1
  458. package/libs/api/metadata-converter/src/lib/iso19139/codelists/update-frequency.mapper.d.ts.map +0 -1
  459. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts +0 -4
  460. package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts.map +0 -1
  461. package/libs/api/metadata-converter/src/lib/metadata-base.mapper.d.ts.map +0 -1
  462. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
  463. package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
  464. package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
  465. package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
  466. package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
  467. package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
  468. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
  469. package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
  470. package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
  471. package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
  472. package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  473. package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
  474. package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
  475. package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
  476. package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +0 -196
  477. package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
  478. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
  479. package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
  480. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
  481. package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
  482. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.d.ts +0 -0
  483. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.d.ts +0 -0
  484. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.d.ts +0 -0
  485. /package/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.d.ts +0 -0
  486. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
  487. /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
  488. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/keyword.mapper.ts +0 -0
  489. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/role.mapper.ts +0 -0
  490. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/status.mapper.ts +0 -0
  491. /package/src/libs/api/metadata-converter/src/lib/iso19139/{codelists → utils}/update-frequency.mapper.ts +0 -0
  492. /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
  493. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
  494. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
  495. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
  496. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
  497. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
  498. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.css} +0 -0
  499. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
  500. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
  501. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
  502. /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
  503. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
  504. /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
  505. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
  506. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
  507. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
  508. /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
@@ -1,8 +1,6 @@
1
1
  import {
2
2
  Constraint,
3
3
  DatasetDistribution,
4
- DatasetSpatialExtent,
5
- DatasetTemporalExtent,
6
4
  GraphicOverview,
7
5
  Individual,
8
6
  Keyword,
@@ -16,8 +14,8 @@ import {
16
14
  UpdateFrequency,
17
15
  UpdateFrequencyCustom,
18
16
  } from '../../../../../../libs/common/domain/src/lib/model/record'
19
- import { getStatusFromStatusCode } from './codelists/status.mapper'
20
- import { getUpdateFrequencyFromFrequencyCode } from './codelists/update-frequency.mapper'
17
+ import { getStatusFromStatusCode } from './utils/status.mapper'
18
+ import { getUpdateFrequencyFromFrequencyCode } from './utils/update-frequency.mapper'
21
19
  import {
22
20
  findChildElement,
23
21
  findChildrenElement,
@@ -39,11 +37,15 @@ import {
39
37
  mapArray,
40
38
  pipe,
41
39
  } from '../function-utils'
42
- import { getRoleFromRoleCode } from './codelists/role.mapper'
40
+ import { getRoleFromRoleCode } from './utils/role.mapper'
43
41
  import { matchMimeType, matchProtocol } from '../common/distribution.mapper'
44
- import { getKeywordTypeFromKeywordTypeCode } from './codelists/keyword.mapper'
42
+ import { getKeywordTypeFromKeywordTypeCode } from './utils/keyword.mapper'
43
+ import { fullNameToParts } from './utils/individual-name'
45
44
 
46
- function extractCharacterString(): ChainableFunction<XmlElement, string> {
45
+ export function extractCharacterString(): ChainableFunction<
46
+ XmlElement,
47
+ string
48
+ > {
47
49
  return pipe(
48
50
  fallback(
49
51
  findChildElement('gco:CharacterString', false),
@@ -53,7 +55,7 @@ function extractCharacterString(): ChainableFunction<XmlElement, string> {
53
55
  )
54
56
  }
55
57
 
56
- function extractDateTime(): ChainableFunction<XmlElement, Date> {
58
+ export function extractDateTime(): ChainableFunction<XmlElement, Date> {
57
59
  return pipe(
58
60
  fallback(
59
61
  findChildElement('gco:DateTime', false),
@@ -64,7 +66,7 @@ function extractDateTime(): ChainableFunction<XmlElement, Date> {
64
66
  )
65
67
  }
66
68
 
67
- function extractUrl(): ChainableFunction<XmlElement, URL> {
69
+ export function extractUrl(): ChainableFunction<XmlElement, URL> {
68
70
  const getUrl = pipe(findChildElement('gmd:URL', false), readText())
69
71
  const getCharacterString = pipe(
70
72
  findChildElement('gco:CharacterString', false),
@@ -86,12 +88,12 @@ function extractUrl(): ChainableFunction<XmlElement, URL> {
86
88
  )
87
89
  }
88
90
 
89
- function extractMandatoryUrl() {
91
+ export function extractMandatoryUrl() {
90
92
  return fallback(extractUrl(), () => new URL('http://missing'))
91
93
  }
92
94
 
93
95
  // from gmd:role
94
- function extractRole(): ChainableFunction<XmlElement, Role> {
96
+ export function extractRole(): ChainableFunction<XmlElement, Role> {
95
97
  return pipe(
96
98
  findChildElement('gmd:CI_RoleCode'),
97
99
  readAttribute('codeListValue'),
@@ -100,7 +102,10 @@ function extractRole(): ChainableFunction<XmlElement, Role> {
100
102
  }
101
103
 
102
104
  // from gmd:CI_ResponsibleParty
103
- function extractOrganization(): ChainableFunction<XmlElement, Organization> {
105
+ export function extractOrganization(): ChainableFunction<
106
+ XmlElement,
107
+ Organization
108
+ > {
104
109
  const getUrl = pipe(
105
110
  findNestedElements(
106
111
  'gmd:contactInfo',
@@ -128,10 +133,7 @@ function extractOrganization(): ChainableFunction<XmlElement, Organization> {
128
133
  }
129
134
 
130
135
  // from gmd:CI_ResponsibleParty
131
- function extractIndividuals(): ChainableFunction<
132
- XmlElement,
133
- Array<Individual>
134
- > {
136
+ export function extractIndividual(): ChainableFunction<XmlElement, Individual> {
135
137
  const getRole = pipe(findChildElement('gmd:role'), extractRole())
136
138
  const getPosition = pipe(
137
139
  findChildElement('gmd:positionName'),
@@ -142,40 +144,70 @@ function extractIndividuals(): ChainableFunction<
142
144
  extractCharacterString(),
143
145
  map((fullName) => {
144
146
  if (!fullName) return []
145
- const parts = fullName.split(/\s+/)
146
- if (!parts.length) return [fullName, null]
147
- const first = parts.shift()
148
- return [first, parts.join(' ')]
147
+ return fullNameToParts(fullName)
149
148
  })
150
149
  )
151
150
  const getOrganization = extractOrganization()
151
+ const getContactRoot = findNestedElement('gmd:contactInfo', 'gmd:CI_Contact')
152
152
  const getEmail = pipe(
153
+ getContactRoot,
153
154
  findChildElement('gmd:electronicMailAddress'),
154
155
  extractCharacterString(),
155
156
  map((email) => (email === null ? 'missing@missing.com' : email))
156
157
  )
158
+ const getAddress = pipe(
159
+ getContactRoot,
160
+ findNestedElement('gmd:address', 'gmd:CI_Address'),
161
+ combine(
162
+ pipe(
163
+ findChildElement('gmd:deliveryPoint', false),
164
+ extractCharacterString()
165
+ ),
166
+ pipe(findChildElement('gmd:city', false), extractCharacterString()),
167
+ pipe(findChildElement('gmd:postalCode', false), extractCharacterString()),
168
+ pipe(findChildElement('gmd:country', false), extractCharacterString())
169
+ ),
170
+ map((parts) => parts.filter((p) => !!p).join(', '))
171
+ )
172
+ const getPhone = pipe(
173
+ getContactRoot,
174
+ findNestedElement('gmd:phone', 'gmd:CI_Telephone', 'gmd:voice'),
175
+ extractCharacterString()
176
+ )
157
177
  return pipe(
158
178
  combine(
159
179
  getRole,
160
180
  getPosition,
161
181
  getNameParts,
162
182
  getOrganization,
163
- pipe(findChildrenElement('gmd:contactInfo'), mapArray(getEmail))
183
+ getEmail,
184
+ getAddress,
185
+ getPhone
164
186
  ),
165
- map(([role, position, [firstName, lastName], organization, emails]) =>
166
- emails.map((email) => ({
187
+ map(
188
+ ([
189
+ role,
190
+ position,
191
+ [firstName, lastName],
192
+ organization,
193
+ email,
194
+ address,
195
+ phone,
196
+ ]) => ({
167
197
  email,
168
198
  role,
169
199
  organization,
170
200
  ...(position && { position }),
171
201
  ...(firstName && { firstName }),
172
202
  ...(lastName && { lastName }),
173
- }))
203
+ ...(address && { address }),
204
+ ...(phone && { phone }),
205
+ })
174
206
  )
175
207
  )
176
208
  }
177
209
 
178
- function extractStatus(): ChainableFunction<XmlElement, RecordStatus> {
210
+ export function extractStatus(): ChainableFunction<XmlElement, RecordStatus> {
179
211
  return pipe(
180
212
  findChildElement('gmd:MD_ProgressCode'),
181
213
  readAttribute('codeListValue'),
@@ -184,7 +216,7 @@ function extractStatus(): ChainableFunction<XmlElement, RecordStatus> {
184
216
  }
185
217
 
186
218
  // from gmd:resourceConstraints
187
- function extractLegalConstraints(): ChainableFunction<
219
+ export function extractLegalConstraints(): ChainableFunction<
188
220
  XmlElement,
189
221
  Array<Constraint>
190
222
  > {
@@ -214,7 +246,7 @@ function extractLegalConstraints(): ChainableFunction<
214
246
  }
215
247
 
216
248
  // from gmd:resourceConstraints
217
- function extractSecurityConstraints(): ChainableFunction<
249
+ export function extractSecurityConstraints(): ChainableFunction<
218
250
  XmlElement,
219
251
  Array<Constraint>
220
252
  > {
@@ -230,7 +262,7 @@ function extractSecurityConstraints(): ChainableFunction<
230
262
  }
231
263
 
232
264
  // from gmd:resourceConstraints
233
- function extractOtherConstraints(): ChainableFunction<
265
+ export function extractOtherConstraints(): ChainableFunction<
234
266
  XmlElement,
235
267
  Array<Constraint>
236
268
  > {
@@ -246,7 +278,10 @@ function extractOtherConstraints(): ChainableFunction<
246
278
  }
247
279
 
248
280
  // from gmd:resourceConstraints
249
- function extractLicenses(): ChainableFunction<XmlElement, Array<Constraint>> {
281
+ export function extractLicenses(): ChainableFunction<
282
+ XmlElement,
283
+ Array<Constraint>
284
+ > {
250
285
  return pipe(
251
286
  findChildrenElement('gmd:MD_LegalConstraints', false),
252
287
  filterArray(
@@ -272,18 +307,20 @@ function extractLicenses(): ChainableFunction<XmlElement, Array<Constraint>> {
272
307
  )
273
308
  }
274
309
 
275
- // from gmd:MD_Distribution
276
- function extractDatasetDistributions(): ChainableFunction<
277
- XmlElement,
278
- DatasetDistribution[]
279
- > {
280
- const getFormat = pipe(
281
- findParent('gmd:MD_Distribution'),
282
- findNestedElement('gmd:distributionFormat', 'gmd:MD_Format', 'gmd:name'),
283
- extractCharacterString(),
284
- map(matchMimeType)
285
- )
310
+ const getMimeType = pipe(
311
+ findParent('gmd:MD_Distribution'),
312
+ findNestedElement('gmd:distributionFormat', 'gmd:MD_Format', 'gmd:name'),
313
+ extractCharacterString(),
314
+ map(matchMimeType)
315
+ )
286
316
 
317
+ /**
318
+ * Extract distributions from a MD_Distribution element
319
+ * @param getMimeTypeFn This function starts from a gmd:transferOptions element
320
+ */
321
+ export function extractDatasetDistributions(
322
+ getMimeTypeFn: ChainableFunction<XmlElement, string>
323
+ ): ChainableFunction<XmlElement, DatasetDistribution[]> {
287
324
  const getUrl = pipe(findChildElement('gmd:linkage'), extractMandatoryUrl())
288
325
  const getProtocolStr = pipe(
289
326
  findChildElement('gmd:protocol'),
@@ -326,11 +363,11 @@ function extractDatasetDistributions(): ChainableFunction<
326
363
  getUrl,
327
364
  getName,
328
365
  getDescription,
329
- getFormat
366
+ getMimeTypeFn
330
367
  )
331
368
  ),
332
369
  mapArray(
333
- ([isService, isDownload, protocol, url, name, description, format]) => {
370
+ ([isService, isDownload, protocol, url, name, description, mimeType]) => {
334
371
  if (isService) {
335
372
  const hasIdentifier = protocol === 'wms' || protocol === 'wfs'
336
373
  return {
@@ -342,7 +379,6 @@ function extractDatasetDistributions(): ChainableFunction<
342
379
  ...(description && { description }),
343
380
  }
344
381
  } else if (isDownload) {
345
- const mimeType = format
346
382
  return {
347
383
  type: 'download',
348
384
  url: url,
@@ -363,7 +399,7 @@ function extractDatasetDistributions(): ChainableFunction<
363
399
  )
364
400
  }
365
401
 
366
- function getUpdateFrequencyFromCustomPeriod(
402
+ export function getUpdateFrequencyFromCustomPeriod(
367
403
  isoPeriod: string
368
404
  ): UpdateFrequencyCustom {
369
405
  if (!isoPeriod) return null
@@ -415,7 +451,7 @@ function getUpdateFrequencyFromCustomPeriod(
415
451
  }
416
452
 
417
453
  // from gmd:MD_MaintenanceInformation
418
- function extractUpdateFrequency(): ChainableFunction<
454
+ export function extractUpdateFrequency(): ChainableFunction<
419
455
  XmlElement,
420
456
  UpdateFrequency
421
457
  > {
@@ -439,18 +475,24 @@ function extractUpdateFrequency(): ChainableFunction<
439
475
 
440
476
  /**
441
477
  * Looks for srv:SV_ServiceIdentification or gmd:MD_DataIdentification element
442
- * depending on record type
478
+ * Will find the first one that exists, not reading the type of the record
479
+ * (this allows using this function in other similar schemas)
443
480
  */
444
- function findIdentification() {
445
- return (rootEl: XmlElement) => {
446
- const kind = readKind(rootEl)
447
- let eltName = 'gmd:MD_DataIdentification'
448
- if (kind === 'service') eltName = 'srv:SV_ServiceIdentification'
449
- return findNestedElement('gmd:identificationInfo', eltName)(rootEl)
450
- }
481
+ export function findIdentification() {
482
+ return pipe(
483
+ findChildElement('gmd:identificationInfo', false),
484
+ combine(
485
+ findChildElement('gmd:MD_DataIdentification', false),
486
+ findChildElement('srv:SV_ServiceIdentification', false)
487
+ ),
488
+ filterArray((el) => el !== null),
489
+ getAtIndex(0)
490
+ )
451
491
  }
452
492
 
453
- function extractCitationDate(type: 'creation' | 'revision' | 'publication') {
493
+ export function extractIdentificationDate(
494
+ type: 'creation' | 'revision' | 'publication'
495
+ ) {
454
496
  return pipe(
455
497
  findIdentification(),
456
498
  findNestedElements('gmd:citation', 'gmd:CI_Citation', 'gmd:date'),
@@ -473,7 +515,7 @@ function extractCitationDate(type: 'creation' | 'revision' | 'publication') {
473
515
  )
474
516
  }
475
517
 
476
- function getSpatialRepresentationFromCode(
518
+ export function getSpatialRepresentationFromCode(
477
519
  spatialRepresentationCode: string
478
520
  ): SpatialRepresentationType | null {
479
521
  switch (spatialRepresentationCode) {
@@ -513,11 +555,19 @@ export function readOwnerOrganization(rootEl: XmlElement): Organization {
513
555
  )(rootEl)
514
556
  }
515
557
 
516
- export function readRecordUpdated(rootEl: XmlElement): Date {
517
- return pipe(findChildElement('gmd:dateStamp'), extractDateTime())(rootEl)
558
+ export function readResourceUpdated(rootEl: XmlElement): Date {
559
+ return extractIdentificationDate('revision')(rootEl)
560
+ }
561
+
562
+ export function readResourceCreated(rootEl: XmlElement): Date {
563
+ return extractIdentificationDate('creation')(rootEl)
518
564
  }
519
565
 
520
- export function readRecordPublished(rootEl: XmlElement): Date {
566
+ export function readResourcePublished(rootEl: XmlElement): Date {
567
+ return extractIdentificationDate('publication')(rootEl)
568
+ }
569
+
570
+ export function readRecordUpdated(rootEl: XmlElement): Date {
521
571
  return pipe(findChildElement('gmd:dateStamp'), extractDateTime())(rootEl)
522
572
  }
523
573
 
@@ -537,30 +587,29 @@ export function readAbstract(rootEl: XmlElement): string {
537
587
  )(rootEl)
538
588
  }
539
589
 
540
- export function readDatasetCreated(rootEl: XmlElement): Date {
541
- return extractCitationDate('creation')(rootEl)
542
- }
543
-
544
- export function readDatasetUpdated(rootEl: XmlElement): Date {
545
- return extractCitationDate('revision')(rootEl)
590
+ export function readContacts(rootEl: XmlElement): Individual[] {
591
+ return pipe(
592
+ findChildrenElement('gmd:contact', false),
593
+ mapArray(findChildElement('gmd:CI_ResponsibleParty', false)),
594
+ mapArray(extractIndividual())
595
+ )(rootEl)
546
596
  }
547
597
 
548
- export function readContacts(rootEl: XmlElement): Individual[] {
598
+ export function readContactsForResource(rootEl: XmlElement): Individual[] {
549
599
  return pipe(
550
600
  findIdentification(),
551
601
  combine(
552
- findChildrenElement('gmd:contact'),
553
- findChildrenElement('gmd:pointOfContact')
602
+ findChildrenElement('gmd:contact', false),
603
+ findChildrenElement('gmd:pointOfContact', false)
554
604
  ),
555
605
  flattenArray(),
556
606
  mapArray(findChildElement('gmd:CI_ResponsibleParty', false)),
557
- mapArray(extractIndividuals()),
558
- flattenArray()
607
+ mapArray(extractIndividual())
559
608
  )(rootEl)
560
609
  }
561
610
 
562
611
  // from gmd:thesaurusName
563
- function readThesaurus(rootEl: XmlElement): KeywordThesaurus {
612
+ export function readThesaurus(rootEl: XmlElement): KeywordThesaurus {
564
613
  if (!rootEl) return null
565
614
 
566
615
  const findIdentifier = findNestedElement(
@@ -583,7 +632,7 @@ function readThesaurus(rootEl: XmlElement): KeywordThesaurus {
583
632
  }
584
633
 
585
634
  // from gmd:MD_Keywords
586
- function readKeywordGroup(rootEl: XmlElement): Keyword[] {
635
+ export function readKeywordGroup(rootEl: XmlElement): Keyword[] {
587
636
  const type = pipe(
588
637
  findChildrenElement('gmd:MD_KeywordTypeCode'),
589
638
  mapArray(readAttribute('codeListValue')),
@@ -701,16 +750,6 @@ export function readOverviews(rootEl: XmlElement): GraphicOverview[] {
701
750
  )(rootEl)
702
751
  }
703
752
 
704
- export function readSpatialExtents(rootEl: XmlElement): DatasetSpatialExtent[] {
705
- return [] // TODO
706
- }
707
-
708
- export function readTemporalExtents(
709
- rootEl: XmlElement
710
- ): DatasetTemporalExtent[] {
711
- return [] // TODO
712
- }
713
-
714
753
  export function readLineage(rootEl: XmlElement): string {
715
754
  return pipe(
716
755
  findNestedElement(
@@ -727,7 +766,7 @@ export function readLineage(rootEl: XmlElement): string {
727
766
  export function readDistributions(rootEl: XmlElement): DatasetDistribution[] {
728
767
  return pipe(
729
768
  findNestedElements('gmd:distributionInfo', 'gmd:MD_Distribution'),
730
- mapArray(extractDatasetDistributions()),
769
+ mapArray(extractDatasetDistributions(getMimeType)),
731
770
  flattenArray()
732
771
  )(rootEl)
733
772
  }
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Parts are [firstName, lastName]
3
+ * Second part will be null if no separation could be done
4
+ * @param fullName
5
+ */
6
+ export function fullNameToParts(fullName: string): [string, string | null] {
7
+ const parts = fullName.trim().split(/\s+/)
8
+ const first = parts.shift()
9
+ return [first, parts.join(' ').trim() || null]
10
+ }
11
+
12
+ export function namePartsToFull(
13
+ firstName: string | null,
14
+ lastName: string | null
15
+ ): string | null {
16
+ const first = firstName?.trim()
17
+ const last = lastName?.trim()
18
+ if (!first && !last) return null
19
+ return last && first ? `${first} ${last}` : last || first
20
+ }