geonetwork-ui 2.4.0-dev.a2f3bb9f → 2.4.0-dev.f6f2f023

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 (427) hide show
  1. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.converter.mjs +4 -4
  2. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +4 -4
  3. package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +4 -4
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/index.mjs +2 -1
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +2 -0
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +1 -1
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.mjs +1 -1
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +1 -1
  9. package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +4 -4
  10. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +4 -4
  11. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -4
  12. package/esm2022/libs/api/repository/src/lib/gn4/favorites/favorites.service.mjs +4 -4
  13. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +59 -11
  14. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +4 -4
  15. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +4 -4
  16. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +14 -6
  17. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +36 -16
  18. package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +4 -4
  19. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +4 -4
  20. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  21. package/esm2022/libs/common/domain/src/lib/model/thesaurus/thesaurus.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/openapi/api/atom.api.service.mjs +4 -4
  25. package/esm2022/libs/data-access/gn4/src/openapi/api/customstyle.api.service.mjs +4 -4
  26. package/esm2022/libs/data-access/gn4/src/openapi/api/formatters.api.service.mjs +4 -4
  27. package/esm2022/libs/data-access/gn4/src/openapi/api/groups.api.service.mjs +4 -4
  28. package/esm2022/libs/data-access/gn4/src/openapi/api/harvesters.api.service.mjs +4 -4
  29. package/esm2022/libs/data-access/gn4/src/openapi/api/identifiers.api.service.mjs +4 -4
  30. package/esm2022/libs/data-access/gn4/src/openapi/api/languages.api.service.mjs +4 -4
  31. package/esm2022/libs/data-access/gn4/src/openapi/api/links.api.service.mjs +4 -4
  32. package/esm2022/libs/data-access/gn4/src/openapi/api/logos.api.service.mjs +4 -4
  33. package/esm2022/libs/data-access/gn4/src/openapi/api/mapservers.api.service.mjs +4 -4
  34. package/esm2022/libs/data-access/gn4/src/openapi/api/mapservices.api.service.mjs +4 -4
  35. package/esm2022/libs/data-access/gn4/src/openapi/api/me.api.service.mjs +4 -4
  36. package/esm2022/libs/data-access/gn4/src/openapi/api/operations.api.service.mjs +4 -4
  37. package/esm2022/libs/data-access/gn4/src/openapi/api/pages.api.service.mjs +4 -4
  38. package/esm2022/libs/data-access/gn4/src/openapi/api/processes.api.service.mjs +4 -4
  39. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +5 -5
  40. package/esm2022/libs/data-access/gn4/src/openapi/api/regions.api.service.mjs +4 -4
  41. package/esm2022/libs/data-access/gn4/src/openapi/api/registries.api.service.mjs +4 -4
  42. package/esm2022/libs/data-access/gn4/src/openapi/api/related.api.service.mjs +4 -4
  43. package/esm2022/libs/data-access/gn4/src/openapi/api/search.api.service.mjs +4 -4
  44. package/esm2022/libs/data-access/gn4/src/openapi/api/selections.api.service.mjs +4 -4
  45. package/esm2022/libs/data-access/gn4/src/openapi/api/site.api.service.mjs +4 -4
  46. package/esm2022/libs/data-access/gn4/src/openapi/api/sources.api.service.mjs +4 -4
  47. package/esm2022/libs/data-access/gn4/src/openapi/api/standards.api.service.mjs +4 -4
  48. package/esm2022/libs/data-access/gn4/src/openapi/api/status.api.service.mjs +4 -4
  49. package/esm2022/libs/data-access/gn4/src/openapi/api/tags.api.service.mjs +4 -4
  50. package/esm2022/libs/data-access/gn4/src/openapi/api/tools.api.service.mjs +4 -4
  51. package/esm2022/libs/data-access/gn4/src/openapi/api/ui.api.service.mjs +4 -4
  52. package/esm2022/libs/data-access/gn4/src/openapi/api/userfeedback.api.service.mjs +4 -4
  53. package/esm2022/libs/data-access/gn4/src/openapi/api/users.api.service.mjs +4 -4
  54. package/esm2022/libs/data-access/gn4/src/openapi/api/usersearches.api.service.mjs +4 -4
  55. package/esm2022/libs/data-access/gn4/src/openapi/api/userselections.api.service.mjs +4 -4
  56. package/esm2022/libs/data-access/gn4/src/openapi/api.module.mjs +5 -5
  57. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +5 -5
  58. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +5 -5
  59. package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -4
  60. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -4
  61. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -4
  62. package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +4 -4
  63. package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -4
  64. package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +4 -4
  65. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +4 -4
  66. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +5 -5
  67. package/esm2022/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.mjs +4 -4
  68. package/esm2022/libs/feature/dataviz/src/lib/figure/figure.service.mjs +4 -4
  69. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +4 -4
  70. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
  71. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +4 -4
  72. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  73. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +17 -7
  74. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +9 -6
  75. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +6 -2
  76. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +4 -2
  77. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +4 -4
  78. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +4 -4
  79. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +87 -0
  80. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +4 -4
  81. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +4 -4
  82. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +4 -4
  83. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +4 -4
  84. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +4 -4
  85. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +4 -4
  86. 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 +17 -0
  87. 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 +17 -0
  88. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +105 -0
  89. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +67 -53
  90. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +24 -44
  91. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +5 -2
  92. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +4 -4
  93. package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +4 -4
  94. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +4 -4
  95. package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +4 -4
  96. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +7 -6
  97. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +15 -1
  98. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +29 -43
  99. package/esm2022/libs/feature/editor/src/lib/services/wizard.service.mjs +4 -4
  100. package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +4 -4
  101. package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +4 -4
  102. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +4 -4
  103. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +4 -4
  104. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +4 -4
  105. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +4 -4
  106. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +4 -4
  107. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +4 -4
  108. package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +4 -4
  109. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +5 -5
  110. package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +4 -4
  111. package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +4 -4
  112. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +4 -4
  113. package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +4 -4
  114. package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +4 -4
  115. package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +4 -4
  116. package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +4 -4
  117. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +4 -4
  118. package/esm2022/libs/feature/map/src/lib/style/map-style.service.mjs +4 -4
  119. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -4
  120. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +5 -5
  121. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +4 -4
  122. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +4 -4
  123. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -4
  124. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +4 -4
  125. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +4 -4
  126. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +4 -4
  127. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +4 -4
  128. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -5
  129. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -4
  130. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +5 -5
  131. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -4
  132. package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +4 -4
  133. package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +5 -5
  134. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +4 -4
  135. package/esm2022/libs/feature/router/src/lib/default/services/router-search.service.mjs +4 -4
  136. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +4 -4
  137. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +4 -4
  138. package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +4 -4
  139. package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +5 -5
  140. package/esm2022/libs/feature/search/src/lib/facets/facets.service.mjs +4 -4
  141. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
  142. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +5 -5
  143. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +4 -4
  144. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +4 -4
  145. package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +4 -4
  146. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +4 -4
  147. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +4 -4
  148. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
  149. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +20 -12
  150. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +4 -4
  151. package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +4 -4
  152. package/esm2022/libs/feature/search/src/lib/state/effects.mjs +4 -4
  153. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +4 -4
  154. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -4
  155. package/esm2022/libs/feature/search/src/lib/utils/service/search.service.mjs +4 -4
  156. package/esm2022/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.mjs +4 -4
  157. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +4 -4
  158. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +4 -4
  159. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +4 -4
  160. package/esm2022/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.mjs +4 -4
  161. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -5
  162. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +4 -4
  163. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +4 -4
  164. package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +4 -4
  165. package/esm2022/libs/ui/dataviz/src/lib/ui-dataviz.module.mjs +5 -5
  166. package/esm2022/libs/ui/elements/src/index.mjs +4 -3
  167. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +4 -4
  168. package/esm2022/libs/ui/elements/src/lib/avatar/avatar.component.mjs +4 -4
  169. package/esm2022/libs/ui/elements/src/lib/content-ghost/content-ghost.component.mjs +4 -4
  170. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +4 -4
  171. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +4 -4
  172. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +4 -4
  173. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +4 -4
  174. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +4 -4
  175. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -4
  176. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +4 -4
  177. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +4 -4
  178. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +4 -4
  179. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +4 -4
  180. package/esm2022/libs/ui/elements/src/lib/metadata-info/linkify.directive.mjs +4 -4
  181. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -8
  182. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +4 -4
  183. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +4 -4
  184. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +4 -4
  185. package/esm2022/libs/ui/elements/src/lib/pagination/pagination.component.mjs +4 -4
  186. package/esm2022/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.mjs +4 -4
  187. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +4 -4
  188. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +4 -4
  189. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  190. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -4
  191. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -8
  192. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +4 -4
  193. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +4 -4
  194. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +4 -4
  195. package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
  196. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +4 -4
  197. package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +28 -0
  198. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +4 -4
  199. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -4
  200. package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +4 -4
  201. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +4 -4
  202. package/esm2022/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.mjs +4 -4
  203. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +6 -6
  204. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +19 -13
  205. package/esm2022/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.mjs +4 -4
  206. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +4 -4
  207. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +4 -4
  208. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +4 -4
  209. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +4 -4
  210. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +4 -4
  211. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +4 -4
  212. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +4 -4
  213. package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +4 -4
  214. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -4
  215. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -4
  216. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +4 -4
  217. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +14 -8
  218. package/esm2022/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.mjs +4 -4
  219. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +4 -4
  220. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +4 -4
  221. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +4 -4
  222. package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +4 -4
  223. package/esm2022/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.mjs +4 -4
  224. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +4 -4
  225. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +4 -4
  226. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +4 -4
  227. package/esm2022/libs/ui/layout/src/lib/sticky-header/sticky-header.component.mjs +4 -4
  228. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +5 -5
  229. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +4 -4
  230. package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +4 -4
  231. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +5 -5
  232. package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +7 -7
  233. package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +7 -7
  234. package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +4 -4
  235. package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +5 -5
  236. package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +4 -4
  237. package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +4 -4
  238. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +4 -4
  239. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +4 -4
  240. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +4 -4
  241. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -4
  242. package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +4 -4
  243. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +4 -4
  244. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +4 -4
  245. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +4 -4
  246. package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +4 -4
  247. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +5 -5
  248. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  249. package/esm2022/libs/ui/widgets/src/lib/color-scale/color-scale.component.mjs +4 -4
  250. package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +4 -4
  251. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +4 -4
  252. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +4 -4
  253. package/esm2022/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.mjs +4 -4
  254. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +4 -4
  255. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -10
  256. package/esm2022/libs/util/i18n/src/lib/i18n.interceptor.mjs +4 -4
  257. package/esm2022/libs/util/i18n/src/lib/lang.service.mjs +4 -4
  258. package/esm2022/libs/util/i18n/src/lib/util-i18n.module.mjs +5 -5
  259. package/esm2022/libs/util/shared/src/lib/image-fallback.directive.mjs +4 -4
  260. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +4 -4
  261. package/esm2022/libs/util/shared/src/lib/services/log.service.mjs +4 -4
  262. package/esm2022/libs/util/shared/src/lib/services/proxy.service.mjs +4 -4
  263. package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +4 -4
  264. package/esm2022/libs/util/shared/src/lib/util-shared.module.mjs +5 -5
  265. package/esm2022/translations/de.json +10 -1
  266. package/esm2022/translations/en.json +10 -1
  267. package/esm2022/translations/es.json +10 -1
  268. package/esm2022/translations/fr.json +10 -1
  269. package/esm2022/translations/it.json +10 -1
  270. package/esm2022/translations/nl.json +10 -1
  271. package/esm2022/translations/pt.json +10 -1
  272. package/fesm2022/geonetwork-ui.mjs +1446 -1049
  273. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  274. package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts +1 -0
  275. package/libs/api/metadata-converter/src/lib/gn4/types/index.d.ts.map +1 -1
  276. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +31 -0
  277. package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts.map +1 -0
  278. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +3 -2
  279. package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
  280. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts +1 -1
  281. package/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.d.ts.map +1 -1
  282. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -2
  283. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  284. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +15 -3
  285. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  286. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +3 -3
  287. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
  288. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +8 -5
  289. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  290. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +4 -7
  291. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  292. package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts +12 -5
  293. package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts.map +1 -1
  294. package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -3
  295. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  296. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +24 -1
  297. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  298. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +6 -6
  299. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  300. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +5 -0
  301. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  302. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  303. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  304. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +10 -8
  305. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  306. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +10 -0
  307. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  308. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +2 -0
  309. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  310. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +35 -0
  311. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -0
  312. 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 +8 -0
  313. 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 +1 -0
  314. 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 +8 -0
  315. 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 +1 -0
  316. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +31 -0
  317. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -0
  318. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +6 -6
  319. 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
  320. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +7 -11
  321. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  322. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +4 -1
  323. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  324. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  325. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  326. package/libs/feature/editor/src/lib/services/editor.service.d.ts +6 -9
  327. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  328. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  329. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +4 -1
  330. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  331. package/libs/ui/elements/src/index.d.ts +3 -2
  332. package/libs/ui/elements/src/index.d.ts.map +1 -1
  333. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +22 -0
  334. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  335. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  336. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  337. package/libs/ui/inputs/src/index.d.ts +1 -0
  338. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  339. package/libs/ui/inputs/src/lib/badge/badge.component.d.ts +11 -0
  340. package/libs/ui/inputs/src/lib/badge/badge.component.d.ts.map +1 -0
  341. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
  342. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +4 -4
  343. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  344. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +2 -1
  345. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
  346. package/libs/ui/widgets/src/index.d.ts +0 -1
  347. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  348. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +10 -11
  349. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  350. package/package.json +1 -1
  351. package/src/libs/api/metadata-converter/src/lib/gn4/types/index.ts +1 -0
  352. package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +31 -0
  353. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
  354. package/src/libs/api/metadata-converter/src/lib/iso19139/utils/keyword.mapper.ts +1 -1
  355. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +2 -2
  356. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +144 -7
  357. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +24 -3
  358. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +70 -21
  359. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +4 -9
  360. package/src/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.ts +13 -6
  361. package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -3
  362. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +36 -3
  363. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +203 -0
  364. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +9 -9
  365. package/src/libs/data-access/gn4/src/spec.yaml +4 -5
  366. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +7 -1
  367. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +51 -17
  368. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +14 -3
  369. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +22 -5
  370. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +11 -1
  371. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +20 -0
  372. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +119 -0
  373. 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 +7 -0
  374. 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 +16 -0
  375. 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 +0 -0
  376. 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 +13 -0
  377. 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 +16 -0
  378. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +0 -0
  379. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +6 -0
  380. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +130 -0
  381. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +95 -86
  382. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +11 -24
  383. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +25 -51
  384. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +4 -1
  385. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
  386. package/src/libs/feature/editor/src/lib/fields.config.ts +14 -0
  387. package/src/libs/feature/editor/src/lib/services/editor.service.ts +30 -51
  388. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +1 -3
  389. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +12 -1
  390. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +9 -2
  391. package/src/libs/ui/elements/src/index.ts +3 -2
  392. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.css +18 -0
  393. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +36 -0
  394. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +56 -0
  395. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -1
  396. package/src/libs/ui/inputs/src/index.ts +1 -0
  397. package/src/libs/ui/inputs/src/lib/badge/badge.component.css +0 -0
  398. package/src/libs/ui/inputs/src/lib/badge/badge.component.html +18 -0
  399. package/src/libs/ui/inputs/src/lib/badge/badge.component.ts +27 -0
  400. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +2 -1
  401. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +8 -1
  402. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +7 -7
  403. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +13 -15
  404. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -0
  405. package/src/libs/ui/widgets/src/index.ts +0 -1
  406. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -3
  407. package/tailwind.base.css +26 -1
  408. package/translations/de.json +10 -1
  409. package/translations/en.json +10 -1
  410. package/translations/es.json +10 -1
  411. package/translations/fr.json +10 -1
  412. package/translations/it.json +10 -1
  413. package/translations/nl.json +10 -1
  414. package/translations/pt.json +10 -1
  415. package/translations/sk.json +10 -1
  416. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  417. package/esm2022/libs/ui/widgets/src/lib/badge/badge.component.mjs +0 -17
  418. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +0 -6
  419. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
  420. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts +0 -7
  421. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts.map +0 -1
  422. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -1
  423. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +0 -10
  424. package/src/libs/ui/widgets/src/lib/badge/badge.component.html +0 -10
  425. package/src/libs/ui/widgets/src/lib/badge/badge.component.ts +0 -11
  426. /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extent/form-field-temporal-extent.component.css → form-field-keywords/form-field-keywords.component.css} +0 -0
  427. /package/src/libs/{ui/widgets/src/lib/badge/badge.component.css → 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} +0 -0
@@ -252,3 +252,206 @@ Ce lot de données produit en 2019, a été numérisé à partir du PCI Vecteur
252
252
  languages: ['fr', 'de'],
253
253
  },
254
254
  ])
255
+
256
+ export const DATASET_RECORD_SIMPLE: DatasetRecord = {
257
+ uniqueIdentifier: 'my-dataset-001',
258
+ kind: 'dataset',
259
+ languages: [],
260
+ recordUpdated: new Date('2022-02-01T14:12:00.000Z'),
261
+ resourceCreated: new Date('2022-09-01T12:18:19.000Z'),
262
+ resourceUpdated: new Date('2022-12-04T14:12:00.000Z'),
263
+ status: 'ongoing',
264
+ title: 'A very interesting dataset (un jeu de données très intéressant)',
265
+ abstract: `This dataset has been established for testing purposes.`,
266
+ ownerOrganization: { name: 'MyOrganization' },
267
+ contacts: [
268
+ {
269
+ email: 'bob@org.net',
270
+ position: 'developer',
271
+ organization: { name: 'MyOrganization' },
272
+ role: 'point_of_contact',
273
+ firstName: 'Bob',
274
+ lastName: 'TheGreat',
275
+ },
276
+ ],
277
+ contactsForResource: [],
278
+ keywords: [],
279
+ topics: ['testData'],
280
+ licenses: [],
281
+ legalConstraints: [],
282
+ securityConstraints: [],
283
+ otherConstraints: [],
284
+ lineage: 'This record was edited manually to test the conversion processes',
285
+ spatialRepresentation: 'grid',
286
+ overviews: [],
287
+ spatialExtents: [],
288
+ temporalExtents: [],
289
+ distributions: [
290
+ {
291
+ type: 'download',
292
+ url: new URL('http://my-org.net/download/1.zip'),
293
+ name: 'Direct download',
294
+ description: 'Dataset downloaded as a shapefile',
295
+ mimeType: 'x-gis/x-shapefile',
296
+ },
297
+ ],
298
+ updateFrequency: { per: 'month', updatedTimes: 3 },
299
+ }
300
+
301
+ export const DATASET_RECORD_SIMPLE_AS_XML = `<?xml version="1.0" encoding="UTF-8"?>
302
+ <mdb:MD_Metadata xmlns:mdb="http://standards.iso.org/iso/19115/-3/mdb/2.0" xmlns:mcc="http://standards.iso.org/iso/19115/-3/mcc/1.0" xmlns:gco="http://standards.iso.org/iso/19115/-3/gco/1.0" xmlns:cit="http://standards.iso.org/iso/19115/-3/cit/2.0" xmlns:mri="http://standards.iso.org/iso/19115/-3/mri/1.0" xmlns:mco="http://standards.iso.org/iso/19115/-3/mco/1.0" xmlns:gcx="http://standards.iso.org/iso/19115/-3/gcx/1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mmi="http://standards.iso.org/iso/19115/-3/mmi/1.0" xmlns:mrd="http://standards.iso.org/iso/19115/-3/mrd/1.0" xmlns:mrl="http://standards.iso.org/iso/19115/-3/mrl/2.0">
303
+ <mdb:metadataIdentifier>
304
+ <mcc:MD_Identifier>
305
+ <mcc:code>
306
+ <gco:CharacterString>my-dataset-001</gco:CharacterString>
307
+ </mcc:code>
308
+ </mcc:MD_Identifier>
309
+ </mdb:metadataIdentifier>
310
+ <mdb:metadataScope>
311
+ <mdb:MD_MetadataScope>
312
+ <mdb:resourceScope>
313
+ <mcc:MD_ScopeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ScopeCode" codeListValue="dataset">dataset</mcc:MD_ScopeCode>
314
+ </mdb:resourceScope>
315
+ </mdb:MD_MetadataScope>
316
+ </mdb:metadataScope>
317
+ <mdb:contact>
318
+ <cit:CI_Responsibility>
319
+ <cit:role>
320
+ <cit:CI_RoleCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_RoleCode" codeListValue="pointOfContact">pointOfContact</cit:CI_RoleCode>
321
+ </cit:role>
322
+ <cit:party>
323
+ <cit:CI_Organisation>
324
+ <cit:name>
325
+ <gco:CharacterString>MyOrganization</gco:CharacterString>
326
+ </cit:name>
327
+ <cit:contactInfo>
328
+ <cit:CI_Contact>
329
+ <cit:address>
330
+ <cit:CI_Address>
331
+ <cit:electronicMailAddress>
332
+ <gco:CharacterString>bob@org.net</gco:CharacterString>
333
+ </cit:electronicMailAddress>
334
+ </cit:CI_Address>
335
+ </cit:address>
336
+ </cit:CI_Contact>
337
+ </cit:contactInfo>
338
+ <cit:individual>
339
+ <cit:CI_Individual>
340
+ <cit:name>
341
+ <gco:CharacterString>Bob TheGreat</gco:CharacterString>
342
+ </cit:name>
343
+ <cit:positionName>
344
+ <gco:CharacterString>developer</gco:CharacterString>
345
+ </cit:positionName>
346
+ </cit:CI_Individual>
347
+ </cit:individual>
348
+ </cit:CI_Organisation>
349
+ </cit:party>
350
+ </cit:CI_Responsibility>
351
+ </mdb:contact>
352
+ <mdb:dateInfo>
353
+ <cit:CI_Date>
354
+ <cit:date>
355
+ <gco:DateTime>2022-02-01T15:12:00</gco:DateTime>
356
+ </cit:date>
357
+ <cit:dateType>
358
+ <cit:CI_DateTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="revision">revision</cit:CI_DateTypeCode>
359
+ </cit:dateType>
360
+ </cit:CI_Date>
361
+ </mdb:dateInfo>
362
+ <mdb:identificationInfo>
363
+ <mri:MD_DataIdentification>
364
+ <mri:citation>
365
+ <cit:CI_Citation>
366
+ <cit:title>
367
+ <gco:CharacterString>A very interesting dataset (un jeu de données très intéressant)</gco:CharacterString>
368
+ </cit:title>
369
+ <cit:date>
370
+ <cit:CI_Date>
371
+ <cit:date>
372
+ <gco:DateTime>2022-09-01T14:18:19</gco:DateTime>
373
+ </cit:date>
374
+ <cit:dateType>
375
+ <cit:CI_DateTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="creation">creation</cit:CI_DateTypeCode>
376
+ </cit:dateType>
377
+ </cit:CI_Date>
378
+ </cit:date>
379
+ <cit:date>
380
+ <cit:CI_Date>
381
+ <cit:date>
382
+ <gco:DateTime>2022-12-04T15:12:00</gco:DateTime>
383
+ </cit:date>
384
+ <cit:dateType>
385
+ <cit:CI_DateTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#CI_DateTypeCode" codeListValue="revision">revision</cit:CI_DateTypeCode>
386
+ </cit:dateType>
387
+ </cit:CI_Date>
388
+ </cit:date>
389
+ </cit:CI_Citation>
390
+ </mri:citation>
391
+ <mri:abstract>
392
+ <gco:CharacterString>This dataset has been established for testing purposes.</gco:CharacterString>
393
+ </mri:abstract>
394
+ <mri:topicCategory>
395
+ <mri:MD_TopicCategoryCode>testData</mri:MD_TopicCategoryCode>
396
+ </mri:topicCategory>
397
+ <mri:status>
398
+ <mcc:MD_ProgressCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_ProgressCode" codeListValue="onGoing">onGoing</mcc:MD_ProgressCode>
399
+ </mri:status>
400
+ <mri:resourceMaintenance>
401
+ <mmi:MD_MaintenanceInformation>
402
+ <mmi:userDefinedMaintenanceFrequency>
403
+ <gco:TM_PeriodDuration>P0Y0M10D</gco:TM_PeriodDuration>
404
+ </mmi:userDefinedMaintenanceFrequency>
405
+ </mmi:MD_MaintenanceInformation>
406
+ </mri:resourceMaintenance>
407
+ <mri:spatialRepresentationType>
408
+ <mcc:MD_SpatialRepresentationTypeCode codeList="https://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#MD_SpatialRepresentationTypeCode" codeListValue="grid">grid</mcc:MD_SpatialRepresentationTypeCode>
409
+ </mri:spatialRepresentationType>
410
+ </mri:MD_DataIdentification>
411
+ </mdb:identificationInfo>
412
+ <mdb:distributionInfo>
413
+ <mrd:MD_Distribution>
414
+ <mrd:distributionFormat>
415
+ <mrd:MD_Format>
416
+ <mrd:formatSpecificationCitation>
417
+ <cit:CI_Citation>
418
+ <cit:title>
419
+ <gco:CharacterString>x-gis/x-shapefile</gco:CharacterString>
420
+ </cit:title>
421
+ </cit:CI_Citation>
422
+ </mrd:formatSpecificationCitation>
423
+ </mrd:MD_Format>
424
+ </mrd:distributionFormat>
425
+ <mrd:transferOptions>
426
+ <mrd:MD_DigitalTransferOptions>
427
+ <mrd:onLine>
428
+ <cit:CI_OnlineResource>
429
+ <cit:linkage>
430
+ <gco:CharacterString>http://my-org.net/download/1.zip</gco:CharacterString>
431
+ </cit:linkage>
432
+ <cit:description>
433
+ <gco:CharacterString>Dataset downloaded as a shapefile</gco:CharacterString>
434
+ </cit:description>
435
+ <cit:name>
436
+ <gco:CharacterString>Direct download</gco:CharacterString>
437
+ </cit:name>
438
+ <cit:protocol>
439
+ <gco:CharacterString>WWW:DOWNLOAD</gco:CharacterString>
440
+ </cit:protocol>
441
+ <cit:function>
442
+ <cit:CI_OnLineFunctionCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#CI_OnLineFunctionCode" codeListValue="download"/>
443
+ </cit:function>
444
+ </cit:CI_OnlineResource>
445
+ </mrd:onLine>
446
+ </mrd:MD_DigitalTransferOptions>
447
+ </mrd:transferOptions>
448
+ </mrd:MD_Distribution>
449
+ </mdb:distributionInfo>
450
+ <mdb:resourceLineage>
451
+ <mrl:LI_Lineage>
452
+ <mrl:statement>
453
+ <gco:CharacterString>This record was edited manually to test the conversion processes</gco:CharacterString>
454
+ </mrl:statement>
455
+ </mrl:LI_Lineage>
456
+ </mdb:resourceLineage>
457
+ </mdb:MD_Metadata>`
@@ -4586,8 +4586,8 @@ export class RecordsApiService {
4586
4586
  accept?: string,
4587
4587
  observe?: 'body',
4588
4588
  reportProgress?: boolean,
4589
- options?: { httpHeaderAccept?: 'application/json' | 'application/xml' }
4590
- ): Observable<object>
4589
+ options?: { httpHeaderAccept?: 'application/xml' | 'application/json' }
4590
+ ): Observable<string>
4591
4591
  public getRecordAs(
4592
4592
  metadataUuid: string,
4593
4593
  addSchemaLocation?: boolean,
@@ -4598,8 +4598,8 @@ export class RecordsApiService {
4598
4598
  accept?: string,
4599
4599
  observe?: 'response',
4600
4600
  reportProgress?: boolean,
4601
- options?: { httpHeaderAccept?: 'application/json' | 'application/xml' }
4602
- ): Observable<HttpResponse<object>>
4601
+ options?: { httpHeaderAccept?: 'application/xml' | 'application/json' }
4602
+ ): Observable<HttpResponse<string>>
4603
4603
  public getRecordAs(
4604
4604
  metadataUuid: string,
4605
4605
  addSchemaLocation?: boolean,
@@ -4610,8 +4610,8 @@ export class RecordsApiService {
4610
4610
  accept?: string,
4611
4611
  observe?: 'events',
4612
4612
  reportProgress?: boolean,
4613
- options?: { httpHeaderAccept?: 'application/json' | 'application/xml' }
4614
- ): Observable<HttpEvent<object>>
4613
+ options?: { httpHeaderAccept?: 'application/xml' | 'application/json' }
4614
+ ): Observable<HttpEvent<string>>
4615
4615
  public getRecordAs(
4616
4616
  metadataUuid: string,
4617
4617
  addSchemaLocation?: boolean,
@@ -4622,7 +4622,7 @@ export class RecordsApiService {
4622
4622
  accept?: string,
4623
4623
  observe: any = 'body',
4624
4624
  reportProgress: boolean = false,
4625
- options?: { httpHeaderAccept?: 'application/json' | 'application/xml' }
4625
+ options?: { httpHeaderAccept?: 'application/xml' | 'application/json' }
4626
4626
  ): Observable<any> {
4627
4627
  if (metadataUuid === null || metadataUuid === undefined) {
4628
4628
  throw new Error(
@@ -4677,8 +4677,8 @@ export class RecordsApiService {
4677
4677
  if (httpHeaderAcceptSelected === undefined) {
4678
4678
  // to determine the Accept header
4679
4679
  const httpHeaderAccepts: string[] = [
4680
- 'application/json',
4681
4680
  'application/xml',
4681
+ 'application/json',
4682
4682
  ]
4683
4683
  httpHeaderAcceptSelected =
4684
4684
  this.configuration.selectHeaderAccept(httpHeaderAccepts)
@@ -4695,7 +4695,7 @@ export class RecordsApiService {
4695
4695
  responseType_ = 'text'
4696
4696
  }
4697
4697
 
4698
- return this.httpClient.get<object>(
4698
+ return this.httpClient.get<string>(
4699
4699
  `${this.configuration.basePath}/records/${encodeURIComponent(
4700
4700
  String(metadataUuid)
4701
4701
  )}/formatters/xml`,
@@ -11114,16 +11114,15 @@ paths:
11114
11114
  default:
11115
11115
  description: default response
11116
11116
  content:
11117
- application/json: {}
11117
+ application/xml:
11118
+ schema:
11119
+ type: string
11118
11120
  "200":
11119
11121
  description: Return the record.
11120
11122
  content:
11121
11123
  application/xml:
11122
11124
  schema:
11123
- type: object
11124
- application/json:
11125
- schema:
11126
- type: object
11125
+ type: string
11127
11126
  "403":
11128
11127
  description: Operation not allowed. User needs to be able to view the resource.
11129
11128
  content:
@@ -4,7 +4,11 @@ import { SaveRecordError } from './editor.models'
4
4
 
5
5
  export const openRecord = createAction(
6
6
  '[Editor] Open record',
7
- props<{ record: CatalogRecord }>()
7
+ props<{
8
+ record: CatalogRecord
9
+ alreadySavedOnce: boolean
10
+ recordSource?: string | null
11
+ }>()
8
12
  )
9
13
 
10
14
  export const updateRecordField = createAction(
@@ -22,3 +26,5 @@ export const saveRecordFailure = createAction(
22
26
  '[Editor] Save record failure',
23
27
  props<{ error: SaveRecordError }>()
24
28
  )
29
+
30
+ export const draftSaveSuccess = createAction('[Editor] Draft save success')
@@ -1,16 +1,22 @@
1
1
  import { inject, Injectable } from '@angular/core'
2
2
  import { Actions, createEffect, ofType } from '@ngrx/effects'
3
- import { of, withLatestFrom } from 'rxjs'
3
+ import { debounceTime, filter, of, withLatestFrom } from 'rxjs'
4
4
  import { catchError, map, switchMap } from 'rxjs/operators'
5
5
  import * as EditorActions from './editor.actions'
6
6
  import { EditorService } from '../services/editor.service'
7
7
  import { Store } from '@ngrx/store'
8
- import { selectRecord, selectRecordFieldsConfig } from './editor.selectors'
8
+ import {
9
+ selectRecord,
10
+ selectRecordAlreadySavedOnce,
11
+ selectRecordFieldsConfig,
12
+ } from './editor.selectors'
13
+ import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
9
14
 
10
15
  @Injectable()
11
16
  export class EditorEffects {
12
17
  private actions$ = inject(Actions)
13
18
  private editorService = inject(EditorService)
19
+ private recordsRepository = inject(RecordsRepositoryInterface)
14
20
  private store = inject(Store)
15
21
 
16
22
  saveRecord$ = createEffect(() =>
@@ -18,24 +24,31 @@ export class EditorEffects {
18
24
  ofType(EditorActions.saveRecord),
19
25
  withLatestFrom(
20
26
  this.store.select(selectRecord),
21
- this.store.select(selectRecordFieldsConfig)
27
+ this.store.select(selectRecordFieldsConfig),
28
+ this.store.select(selectRecordAlreadySavedOnce)
22
29
  ),
23
- switchMap(([, record, fieldsConfig]) =>
24
- this.editorService.saveRecord(record, fieldsConfig).pipe(
25
- switchMap((newRecord) =>
26
- of(
27
- EditorActions.saveRecordSuccess(),
28
- EditorActions.openRecord({ record: newRecord })
29
- )
30
- ),
31
- catchError((error) =>
32
- of(
33
- EditorActions.saveRecordFailure({
34
- error: error.message,
35
- })
30
+ switchMap(([, record, fieldsConfig, alreadySavedOnce]) =>
31
+ this.editorService
32
+ .saveRecord(record, fieldsConfig, !alreadySavedOnce)
33
+ .pipe(
34
+ switchMap(([record, recordSource]) =>
35
+ of(
36
+ EditorActions.saveRecordSuccess(),
37
+ EditorActions.openRecord({
38
+ record,
39
+ alreadySavedOnce: true,
40
+ recordSource,
41
+ })
42
+ )
43
+ ),
44
+ catchError((error) =>
45
+ of(
46
+ EditorActions.saveRecordFailure({
47
+ error: error.message,
48
+ })
49
+ )
36
50
  )
37
51
  )
38
- )
39
52
  )
40
53
  )
41
54
  )
@@ -46,4 +59,25 @@ export class EditorEffects {
46
59
  map(() => EditorActions.markRecordAsChanged())
47
60
  )
48
61
  )
62
+
63
+ saveRecordDraft$ = createEffect(() =>
64
+ this.actions$.pipe(
65
+ ofType(EditorActions.updateRecordField),
66
+ debounceTime(1000),
67
+ withLatestFrom(this.store.select(selectRecord)),
68
+ switchMap(([, record]) => this.editorService.saveRecordAsDraft(record)),
69
+ map(() => EditorActions.draftSaveSuccess())
70
+ )
71
+ )
72
+
73
+ checkHasChangesOnOpen$ = createEffect(() =>
74
+ this.actions$.pipe(
75
+ ofType(EditorActions.openRecord),
76
+ map(({ record }) =>
77
+ this.recordsRepository.recordHasDraft(record.uniqueIdentifier)
78
+ ),
79
+ filter((hasDraft) => hasDraft),
80
+ map(() => EditorActions.markRecordAsChanged())
81
+ )
82
+ )
49
83
  }
@@ -3,7 +3,7 @@ import { select, Store } from '@ngrx/store'
3
3
  import * as EditorActions from './editor.actions'
4
4
  import * as EditorSelectors from './editor.selectors'
5
5
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
6
- import { filter, Observable } from 'rxjs'
6
+ import { filter } from 'rxjs'
7
7
  import { Actions, ofType } from '@ngrx/effects'
8
8
 
9
9
  @Injectable()
@@ -12,6 +12,10 @@ export class EditorFacade {
12
12
  private actions$ = inject(Actions)
13
13
 
14
14
  record$ = this.store.pipe(select(EditorSelectors.selectRecord))
15
+ recordSource$ = this.store.pipe(select(EditorSelectors.selectRecordSource))
16
+ alreadySavedOnce$ = this.store.pipe(
17
+ select(EditorSelectors.selectRecordAlreadySavedOnce)
18
+ )
15
19
  saving$ = this.store.pipe(select(EditorSelectors.selectRecordSaving))
16
20
  saveError$ = this.store.pipe(
17
21
  select(EditorSelectors.selectRecordSaveError),
@@ -22,9 +26,16 @@ export class EditorFacade {
22
26
  select(EditorSelectors.selectRecordChangedSinceSave)
23
27
  )
24
28
  recordFields$ = this.store.pipe(select(EditorSelectors.selectRecordFields))
29
+ draftSaveSuccess$ = this.actions$.pipe(ofType(EditorActions.draftSaveSuccess))
25
30
 
26
- openRecord(record: CatalogRecord) {
27
- this.store.dispatch(EditorActions.openRecord({ record }))
31
+ openRecord(
32
+ record: CatalogRecord,
33
+ recordSource: string,
34
+ alreadySavedOnce: boolean
35
+ ) {
36
+ this.store.dispatch(
37
+ EditorActions.openRecord({ record, recordSource, alreadySavedOnce })
38
+ )
28
39
  }
29
40
 
30
41
  saveRecord() {
@@ -7,8 +7,18 @@ import { DEFAULT_FIELDS } from '../fields.config'
7
7
 
8
8
  export const EDITOR_FEATURE_KEY = 'editor'
9
9
 
10
+ /**
11
+ * @property record The record being edited
12
+ * @property recordSource Original representation of the record as text, used as a reference; null means the record hasn't be serialized yet
13
+ * @property saving
14
+ * @property saveError
15
+ * @property changedSinceSave
16
+ * @property fieldsConfig Configuration for the fields in the editor
17
+ */
10
18
  export interface EditorState {
11
19
  record: CatalogRecord | null
20
+ recordSource: string | null
21
+ alreadySavedOnce: boolean
12
22
  saving: boolean
13
23
  saveError: SaveRecordError | null
14
24
  changedSinceSave: boolean
@@ -21,6 +31,8 @@ export interface EditorPartialState {
21
31
 
22
32
  export const initialEditorState: EditorState = {
23
33
  record: null,
34
+ recordSource: null,
35
+ alreadySavedOnce: false,
24
36
  saving: false,
25
37
  saveError: null,
26
38
  changedSinceSave: false,
@@ -29,11 +41,16 @@ export const initialEditorState: EditorState = {
29
41
 
30
42
  const reducer = createReducer(
31
43
  initialEditorState,
32
- on(EditorActions.openRecord, (state, { record }) => ({
33
- ...state,
34
- changedSinceSave: false,
35
- record,
36
- })),
44
+ on(
45
+ EditorActions.openRecord,
46
+ (state, { record, recordSource, alreadySavedOnce }) => ({
47
+ ...state,
48
+ changedSinceSave: false,
49
+ recordSource: recordSource ?? null,
50
+ alreadySavedOnce,
51
+ record,
52
+ })
53
+ ),
37
54
  on(EditorActions.saveRecord, (state) => ({
38
55
  ...state,
39
56
  saving: true,
@@ -9,6 +9,11 @@ export const selectRecord = createSelector(
9
9
  (state: EditorState) => state.record
10
10
  )
11
11
 
12
+ export const selectRecordSource = createSelector(
13
+ selectEditorState,
14
+ (state: EditorState) => state.recordSource
15
+ )
16
+
12
17
  export const selectRecordSaving = createSelector(
13
18
  selectEditorState,
14
19
  (state: EditorState) => state.saving
@@ -24,6 +29,11 @@ export const selectRecordChangedSinceSave = createSelector(
24
29
  (state: EditorState) => state.changedSinceSave
25
30
  )
26
31
 
32
+ export const selectRecordAlreadySavedOnce = createSelector(
33
+ selectEditorState,
34
+ (state: EditorState) => state.alreadySavedOnce
35
+ )
36
+
27
37
  export const selectRecordFieldsConfig = createSelector(
28
38
  selectEditorState,
29
39
  (state: EditorState) => state.fieldsConfig
@@ -34,6 +44,6 @@ export const selectRecordFields = createSelector(
34
44
  (state: EditorState) =>
35
45
  state.fieldsConfig.map((fieldConfig) => ({
36
46
  config: fieldConfig,
37
- value: state.record?.[fieldConfig.model] || null,
47
+ value: state.record?.[fieldConfig.model] ?? null,
38
48
  }))
39
49
  )
@@ -0,0 +1,20 @@
1
+ <div class="flex flex-col gap-3">
2
+ <gn-ui-autocomplete
3
+ [placeholder]="'Search for keywords in all thesaurus'"
4
+ [displayWithFn]="displayWithFn"
5
+ [action]="autoCompleteAction"
6
+ (itemSelected)="handleItemSelection($event)"
7
+ (inputSubmitted)="handleInputSubmission($event)"
8
+ (inputCleared)="handleInputCleared()"
9
+ [value]="searchInputValue$ | async"
10
+ [clearOnSelection]="true"
11
+ ></gn-ui-autocomplete>
12
+ <div class="flex gap-2 flex-wrap">
13
+ <gn-ui-badge
14
+ *ngFor="let keyword of control.value; let index = index"
15
+ [removable]="true"
16
+ (badgeRemoveClicked)="removeKeyword(index)"
17
+ >{{ keyword.label }}</gn-ui-badge
18
+ >
19
+ </div>
20
+ </div>
@@ -0,0 +1,119 @@
1
+ import { CommonModule } from '@angular/common'
2
+ import {
3
+ ChangeDetectionStrategy,
4
+ Component,
5
+ EventEmitter,
6
+ Input,
7
+ OnInit,
8
+ Output,
9
+ } from '@angular/core'
10
+ import { FormControl } from '@angular/forms'
11
+ import {
12
+ KeywordType,
13
+ ThesaurusModel,
14
+ } from '../../../../../../../../../libs/common/domain/src/lib/model/thesaurus'
15
+ import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
16
+ import {
17
+ DropdownSelectorComponent,
18
+ UiInputsModule,
19
+ } from '../../../../../../../../../libs/ui/inputs/src'
20
+ import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
21
+ import { Observable, map } from 'rxjs'
22
+
23
+ @Component({
24
+ selector: 'gn-ui-form-field-keywords',
25
+ templateUrl: './form-field-keywords.component.html',
26
+ styleUrls: ['./form-field-keywords.component.css'],
27
+ changeDetection: ChangeDetectionStrategy.OnPush,
28
+ standalone: true,
29
+ imports: [
30
+ DropdownSelectorComponent,
31
+ UiInputsModule,
32
+ CommonModule,
33
+ UiWidgetsModule,
34
+ ],
35
+ })
36
+ export class FormFieldKeywordsComponent implements OnInit {
37
+ @Input() control: FormControl<any>
38
+ @Output() itemSelected = new EventEmitter<string>()
39
+ @Output() inputSubmitted = new EventEmitter<string>()
40
+ searchInputValue$: Observable<void | { title: string }>
41
+ allThesaurus$: Observable<any[]>
42
+
43
+ displayWithFn = (item) => {
44
+ if (item) {
45
+ return `${item?.title} (${item?.value?.name})`
46
+ }
47
+ return null
48
+ }
49
+
50
+ autoCompleteAction = (query: string) => {
51
+ const keywords$ = this.platformService.searchKeywords(query).pipe(
52
+ map((thesaurus) =>
53
+ thesaurus.map((thes) => {
54
+ return { title: thes.label, value: thes.thesaurus }
55
+ })
56
+ )
57
+ )
58
+
59
+ return keywords$
60
+ }
61
+
62
+ constructor(private platformService: PlatformServiceInterface) {}
63
+
64
+ ngOnInit(): void {
65
+ this.searchInputValue$ = this.autoCompleteAction('')[0]
66
+ }
67
+
68
+ // type: { title: string; value: ThesaurusModel }
69
+ handleItemSelection(item) {
70
+ this.addKeyword({
71
+ label: item.title,
72
+ thesaurus: item.value,
73
+ type: item.value.type,
74
+ })
75
+ }
76
+
77
+ handleInputSubmission(any: string) {
78
+ // Should there be an input submission?
79
+
80
+ if (this.inputSubmitted.observers.length > 0) {
81
+ this.inputSubmitted.emit(any)
82
+ } else {
83
+ // this.searchService.updateFilters({ any })
84
+ }
85
+ }
86
+
87
+ async handleInputCleared() {
88
+ this.autoCompleteAction('')
89
+ }
90
+
91
+ addKeyword(item: {
92
+ label: string
93
+ thesaurus: ThesaurusModel
94
+ type: KeywordType
95
+ }) {
96
+ const addedKeywords = [...this.control.value, item]
97
+
98
+ // remove duplicates from keyword
99
+ const filteredKeywords = addedKeywords.filter((value, index, self) => {
100
+ return (
101
+ index ===
102
+ self.findIndex(
103
+ (t) =>
104
+ t?.label === value?.label &&
105
+ t?.thesaurus?.id === value?.thesaurus?.id &&
106
+ t?.type === value?.type
107
+ )
108
+ )
109
+ })
110
+
111
+ this.control.setValue(filteredKeywords)
112
+ }
113
+
114
+ removeKeyword(index: number) {
115
+ const removeKeywords = this.control.value.filter((_, i) => i !== index)
116
+
117
+ this.control.setValue(removeKeywords)
118
+ }
119
+ }
@@ -0,0 +1,7 @@
1
+ <div class="border rounded-lg px-4 pb-4">
2
+ <p class="my-2" translate>editor.record.form.temporalExtents.date</p>
3
+ <gn-ui-date-picker
4
+ [date]="control.value?.start"
5
+ (dateChange)="control.setValue({ start: $event })"
6
+ ></gn-ui-date-picker>
7
+ </div>