geonetwork-ui 2.3.0 → 2.4.0-dev.573bccd7

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 (361) 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/repository/src/lib/gn4/auth/auth.service.mjs +4 -4
  5. package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +4 -4
  6. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -4
  7. package/esm2022/libs/api/repository/src/lib/gn4/favorites/favorites.service.mjs +4 -4
  8. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +59 -11
  9. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +4 -4
  10. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +4 -4
  11. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +4 -4
  12. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +4 -4
  13. package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +4 -4
  14. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +4 -4
  15. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  16. package/esm2022/libs/data-access/gn4/src/openapi/api/atom.api.service.mjs +4 -4
  17. package/esm2022/libs/data-access/gn4/src/openapi/api/customstyle.api.service.mjs +4 -4
  18. package/esm2022/libs/data-access/gn4/src/openapi/api/formatters.api.service.mjs +4 -4
  19. package/esm2022/libs/data-access/gn4/src/openapi/api/groups.api.service.mjs +4 -4
  20. package/esm2022/libs/data-access/gn4/src/openapi/api/harvesters.api.service.mjs +4 -4
  21. package/esm2022/libs/data-access/gn4/src/openapi/api/identifiers.api.service.mjs +4 -4
  22. package/esm2022/libs/data-access/gn4/src/openapi/api/languages.api.service.mjs +4 -4
  23. package/esm2022/libs/data-access/gn4/src/openapi/api/links.api.service.mjs +4 -4
  24. package/esm2022/libs/data-access/gn4/src/openapi/api/logos.api.service.mjs +4 -4
  25. package/esm2022/libs/data-access/gn4/src/openapi/api/mapservers.api.service.mjs +4 -4
  26. package/esm2022/libs/data-access/gn4/src/openapi/api/mapservices.api.service.mjs +4 -4
  27. package/esm2022/libs/data-access/gn4/src/openapi/api/me.api.service.mjs +4 -4
  28. package/esm2022/libs/data-access/gn4/src/openapi/api/operations.api.service.mjs +4 -4
  29. package/esm2022/libs/data-access/gn4/src/openapi/api/pages.api.service.mjs +4 -4
  30. package/esm2022/libs/data-access/gn4/src/openapi/api/processes.api.service.mjs +4 -4
  31. package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +5 -5
  32. package/esm2022/libs/data-access/gn4/src/openapi/api/regions.api.service.mjs +4 -4
  33. package/esm2022/libs/data-access/gn4/src/openapi/api/registries.api.service.mjs +4 -4
  34. package/esm2022/libs/data-access/gn4/src/openapi/api/related.api.service.mjs +4 -4
  35. package/esm2022/libs/data-access/gn4/src/openapi/api/search.api.service.mjs +4 -4
  36. package/esm2022/libs/data-access/gn4/src/openapi/api/selections.api.service.mjs +4 -4
  37. package/esm2022/libs/data-access/gn4/src/openapi/api/site.api.service.mjs +4 -4
  38. package/esm2022/libs/data-access/gn4/src/openapi/api/sources.api.service.mjs +4 -4
  39. package/esm2022/libs/data-access/gn4/src/openapi/api/standards.api.service.mjs +4 -4
  40. package/esm2022/libs/data-access/gn4/src/openapi/api/status.api.service.mjs +4 -4
  41. package/esm2022/libs/data-access/gn4/src/openapi/api/tags.api.service.mjs +4 -4
  42. package/esm2022/libs/data-access/gn4/src/openapi/api/tools.api.service.mjs +4 -4
  43. package/esm2022/libs/data-access/gn4/src/openapi/api/ui.api.service.mjs +4 -4
  44. package/esm2022/libs/data-access/gn4/src/openapi/api/userfeedback.api.service.mjs +4 -4
  45. package/esm2022/libs/data-access/gn4/src/openapi/api/users.api.service.mjs +4 -4
  46. package/esm2022/libs/data-access/gn4/src/openapi/api/usersearches.api.service.mjs +4 -4
  47. package/esm2022/libs/data-access/gn4/src/openapi/api/userselections.api.service.mjs +4 -4
  48. package/esm2022/libs/data-access/gn4/src/openapi/api.module.mjs +5 -5
  49. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +5 -5
  50. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +5 -5
  51. package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -4
  52. package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -4
  53. package/esm2022/libs/feature/catalog/src/lib/records/records.service.mjs +4 -4
  54. package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +4 -4
  55. package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -4
  56. package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +4 -4
  57. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +4 -4
  58. package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +5 -5
  59. package/esm2022/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.mjs +4 -4
  60. package/esm2022/libs/feature/dataviz/src/lib/figure/figure.service.mjs +4 -4
  61. package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +4 -4
  62. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
  63. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +4 -4
  64. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +1 -1
  65. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +14 -6
  66. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +8 -6
  67. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +6 -2
  68. package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +3 -1
  69. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +4 -4
  70. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +4 -4
  71. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +4 -4
  72. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +4 -4
  73. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +4 -4
  74. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +4 -4
  75. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +4 -4
  76. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +4 -4
  77. 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
  78. 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
  79. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +105 -0
  80. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +4 -4
  81. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +10 -12
  82. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +4 -2
  83. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +4 -4
  84. package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +4 -4
  85. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +4 -4
  86. package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +4 -4
  87. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +5 -5
  88. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +8 -1
  89. package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +22 -42
  90. package/esm2022/libs/feature/editor/src/lib/services/wizard.service.mjs +4 -4
  91. package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +4 -4
  92. package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +4 -4
  93. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +4 -4
  94. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +4 -4
  95. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +4 -4
  96. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +4 -4
  97. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +4 -4
  98. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +4 -4
  99. package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +4 -4
  100. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +5 -5
  101. package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +4 -4
  102. package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +4 -4
  103. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +4 -4
  104. package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +4 -4
  105. package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +4 -4
  106. package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +4 -4
  107. package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +4 -4
  108. package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +4 -4
  109. package/esm2022/libs/feature/map/src/lib/style/map-style.service.mjs +4 -4
  110. package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -4
  111. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +5 -5
  112. package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +4 -4
  113. package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +4 -4
  114. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -4
  115. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +4 -4
  116. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +4 -4
  117. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +4 -4
  118. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +4 -4
  119. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -5
  120. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -4
  121. package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +5 -5
  122. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -4
  123. package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +4 -4
  124. package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +5 -5
  125. package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +4 -4
  126. package/esm2022/libs/feature/router/src/lib/default/services/router-search.service.mjs +4 -4
  127. package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +4 -4
  128. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +4 -4
  129. package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +4 -4
  130. package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +5 -5
  131. package/esm2022/libs/feature/search/src/lib/facets/facets.service.mjs +4 -4
  132. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
  133. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +5 -5
  134. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +4 -4
  135. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +4 -4
  136. package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +4 -4
  137. package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +4 -4
  138. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +4 -4
  139. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +4 -4
  140. package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +19 -11
  141. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +4 -4
  142. package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +4 -4
  143. package/esm2022/libs/feature/search/src/lib/state/effects.mjs +4 -4
  144. package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +4 -4
  145. package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -4
  146. package/esm2022/libs/feature/search/src/lib/utils/service/search.service.mjs +4 -4
  147. package/esm2022/libs/ui/catalog/src/lib/catalog-title/catalog-title.component.mjs +4 -4
  148. package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +4 -4
  149. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +4 -4
  150. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +4 -4
  151. package/esm2022/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.mjs +4 -4
  152. package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +5 -5
  153. package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +4 -4
  154. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +4 -4
  155. package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +4 -4
  156. package/esm2022/libs/ui/dataviz/src/lib/ui-dataviz.module.mjs +5 -5
  157. package/esm2022/libs/ui/elements/src/index.mjs +4 -3
  158. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +4 -4
  159. package/esm2022/libs/ui/elements/src/lib/avatar/avatar.component.mjs +4 -4
  160. package/esm2022/libs/ui/elements/src/lib/content-ghost/content-ghost.component.mjs +4 -4
  161. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +4 -4
  162. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +4 -4
  163. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +4 -4
  164. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +4 -4
  165. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +4 -4
  166. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -4
  167. package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +4 -4
  168. package/esm2022/libs/ui/elements/src/lib/max-lines/max-lines.component.mjs +4 -4
  169. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +4 -4
  170. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +4 -4
  171. package/esm2022/libs/ui/elements/src/lib/metadata-info/linkify.directive.mjs +4 -4
  172. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +10 -10
  173. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +4 -4
  174. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +4 -4
  175. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +4 -4
  176. package/esm2022/libs/ui/elements/src/lib/pagination/pagination.component.mjs +4 -4
  177. package/esm2022/libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.mjs +4 -4
  178. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +4 -4
  179. package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +4 -4
  180. package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +43 -0
  181. package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -4
  182. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -8
  183. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +4 -4
  184. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +4 -4
  185. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +4 -4
  186. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +4 -4
  187. package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +4 -4
  188. package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +4 -4
  189. package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +4 -4
  190. package/esm2022/libs/ui/inputs/src/lib/chips-input/chips-input.component.mjs +4 -4
  191. package/esm2022/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.mjs +4 -4
  192. package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +6 -6
  193. package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +19 -13
  194. package/esm2022/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.mjs +4 -4
  195. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +4 -4
  196. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +4 -4
  197. package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +4 -4
  198. package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +4 -4
  199. package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +4 -4
  200. package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +4 -4
  201. package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +4 -4
  202. package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +4 -4
  203. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -4
  204. package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -4
  205. package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +4 -4
  206. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +5 -5
  207. package/esm2022/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.mjs +4 -4
  208. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +4 -4
  209. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +4 -4
  210. package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +4 -4
  211. package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +4 -4
  212. package/esm2022/libs/ui/layout/src/lib/expandable-panel-button/expandable-panel-button.component.mjs +4 -4
  213. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +4 -4
  214. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +4 -4
  215. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +4 -4
  216. package/esm2022/libs/ui/layout/src/lib/sticky-header/sticky-header.component.mjs +4 -4
  217. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +5 -5
  218. package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +4 -4
  219. package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +4 -4
  220. package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +5 -5
  221. package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +7 -7
  222. package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +7 -7
  223. package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +4 -4
  224. package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +5 -5
  225. package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +4 -4
  226. package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +4 -4
  227. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +4 -4
  228. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +4 -4
  229. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +4 -4
  230. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -4
  231. package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +4 -4
  232. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +4 -4
  233. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +4 -4
  234. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +4 -4
  235. package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +4 -4
  236. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +5 -5
  237. package/esm2022/libs/ui/widgets/src/lib/badge/badge.component.mjs +6 -5
  238. package/esm2022/libs/ui/widgets/src/lib/color-scale/color-scale.component.mjs +4 -4
  239. package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +4 -4
  240. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +4 -4
  241. package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +4 -4
  242. package/esm2022/libs/ui/widgets/src/lib/spinning-loader/spinning-loader.component.mjs +4 -4
  243. package/esm2022/libs/ui/widgets/src/lib/step-bar/step-bar.component.mjs +4 -4
  244. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +5 -10
  245. package/esm2022/libs/util/i18n/src/lib/i18n.interceptor.mjs +4 -4
  246. package/esm2022/libs/util/i18n/src/lib/lang.service.mjs +4 -4
  247. package/esm2022/libs/util/i18n/src/lib/util-i18n.module.mjs +5 -5
  248. package/esm2022/libs/util/shared/src/lib/image-fallback.directive.mjs +4 -4
  249. package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +4 -4
  250. package/esm2022/libs/util/shared/src/lib/services/log.service.mjs +4 -4
  251. package/esm2022/libs/util/shared/src/lib/services/proxy.service.mjs +4 -4
  252. package/esm2022/libs/util/shared/src/lib/services/theme.service.mjs +4 -4
  253. package/esm2022/libs/util/shared/src/lib/util-shared.module.mjs +5 -5
  254. package/esm2022/translations/de.json +10 -1
  255. package/esm2022/translations/en.json +10 -1
  256. package/esm2022/translations/es.json +10 -1
  257. package/esm2022/translations/fr.json +10 -1
  258. package/esm2022/translations/it.json +10 -1
  259. package/esm2022/translations/nl.json +10 -1
  260. package/esm2022/translations/pt.json +10 -1
  261. package/fesm2022/geonetwork-ui.mjs +1221 -949
  262. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  263. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +15 -3
  264. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  265. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +24 -1
  266. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  267. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +6 -6
  268. package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
  269. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +4 -0
  270. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  271. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
  272. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  273. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +9 -8
  274. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  275. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +10 -0
  276. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  277. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +2 -0
  278. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  279. 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
  280. 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
  281. 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
  282. 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
  283. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +31 -0
  284. 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
  285. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
  286. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  287. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +3 -1
  288. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  289. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  290. package/libs/feature/editor/src/lib/services/editor.service.d.ts +6 -9
  291. package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
  292. package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
  293. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +4 -1
  294. package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  295. package/libs/ui/elements/src/index.d.ts +3 -2
  296. package/libs/ui/elements/src/index.d.ts.map +1 -1
  297. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +22 -0
  298. package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
  299. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
  300. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
  301. package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
  302. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +4 -4
  303. package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
  304. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts +2 -2
  305. package/libs/ui/widgets/src/lib/badge/badge.component.d.ts.map +1 -1
  306. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +10 -11
  307. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +1 -1
  308. package/package.json +1 -1
  309. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +145 -7
  310. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +36 -3
  311. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +203 -0
  312. package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +9 -9
  313. package/src/libs/data-access/gn4/src/spec.yaml +4 -5
  314. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +5 -1
  315. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +31 -3
  316. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +13 -3
  317. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +22 -5
  318. package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +10 -0
  319. 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
  320. 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
  321. 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
  322. 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
  323. 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
  324. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.css +0 -0
  325. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +6 -0
  326. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +130 -0
  327. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +5 -3
  328. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +9 -7
  329. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +4 -1
  330. package/src/libs/feature/editor/src/lib/fields.config.ts +7 -0
  331. package/src/libs/feature/editor/src/lib/services/editor.service.ts +17 -52
  332. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +1 -3
  333. package/src/libs/feature/search/src/lib/results-table/results-table.component.html +12 -1
  334. package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +9 -1
  335. package/src/libs/ui/elements/src/index.ts +3 -2
  336. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.css +18 -0
  337. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +36 -0
  338. package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +56 -0
  339. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +2 -1
  340. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +2 -1
  341. package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +8 -1
  342. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +7 -7
  343. package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +13 -15
  344. package/src/libs/ui/widgets/src/lib/badge/badge.component.html +1 -1
  345. package/src/libs/ui/widgets/src/lib/badge/badge.component.ts +4 -1
  346. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -3
  347. package/tailwind.base.css +26 -1
  348. package/translations/de.json +10 -1
  349. package/translations/en.json +10 -1
  350. package/translations/es.json +10 -1
  351. package/translations/fr.json +10 -1
  352. package/translations/it.json +10 -1
  353. package/translations/nl.json +10 -1
  354. package/translations/pt.json +10 -1
  355. package/translations/sk.json +10 -1
  356. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
  357. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +0 -6
  358. 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
  359. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -1
  360. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +0 -10
  361. /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extent/form-field-temporal-extent.component.css → form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css} +0 -0
@@ -3,8 +3,18 @@ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/mode
3
3
  import { SaveRecordError } from './editor.models';
4
4
  import { EditorFieldsConfig } from '../models/fields.model';
5
5
  export declare const EDITOR_FEATURE_KEY = "editor";
6
+ /**
7
+ * @property record The record being edited
8
+ * @property recordSource Original representation of the record as text, used as a reference; null means the record hasn't be serialized yet
9
+ * @property saving
10
+ * @property saveError
11
+ * @property changedSinceSave
12
+ * @property fieldsConfig Configuration for the fields in the editor
13
+ */
6
14
  export interface EditorState {
7
15
  record: CatalogRecord | null;
16
+ recordSource: string | null;
17
+ alreadySavedOnce: boolean;
8
18
  saving: boolean;
9
19
  saveError: SaveRecordError | null;
10
20
  changedSinceSave: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"editor.reducer.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG3D,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAE1C,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,eAAe,GAAG,IAAI,CAAA;IACjC,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,kBAAkB,CAAA;CACjC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAA;CAC3C;AAED,eAAO,MAAM,kBAAkB,EAAE,WAMhC,CAAA;AAsCD,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,eAE3E"}
1
+ {"version":3,"file":"editor.reducer.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.reducer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAqB,MAAM,aAAa,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG3D,eAAO,MAAM,kBAAkB,WAAW,CAAA;AAE1C;;;;;;;GAOG;AACH,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,aAAa,GAAG,IAAI,CAAA;IAC5B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;IACzB,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,eAAe,GAAG,IAAI,CAAA;IACjC,gBAAgB,EAAE,OAAO,CAAA;IACzB,YAAY,EAAE,kBAAkB,CAAA;CACjC;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,CAAC,kBAAkB,CAAC,EAAE,WAAW,CAAA;CAC3C;AAED,eAAO,MAAM,kBAAkB,EAAE,WAQhC,CAAA;AA2CD,wBAAgB,aAAa,CAAC,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,eAE3E"}
@@ -1,9 +1,11 @@
1
1
  import { EditorState } from './editor.reducer';
2
2
  export declare const selectEditorState: import("@ngrx/store").MemoizedSelector<object, EditorState, import("@ngrx/store").DefaultProjectorFn<EditorState>>;
3
3
  export declare const selectRecord: import("@ngrx/store").MemoizedSelector<object, import("../../../../../common/domain/src/lib/model/record").CatalogRecord, (s1: EditorState) => import("../../../../../common/domain/src/lib/model/record").CatalogRecord>;
4
+ export declare const selectRecordSource: import("@ngrx/store").MemoizedSelector<object, string, (s1: EditorState) => string>;
4
5
  export declare const selectRecordSaving: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
5
6
  export declare const selectRecordSaveError: import("@ngrx/store").MemoizedSelector<object, string, (s1: EditorState) => string>;
6
7
  export declare const selectRecordChangedSinceSave: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
8
+ export declare const selectRecordAlreadySavedOnce: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: EditorState) => boolean>;
7
9
  export declare const selectRecordFieldsConfig: import("@ngrx/store").MemoizedSelector<object, import("../models/fields.model").EditorFieldsConfig, (s1: EditorState) => import("../models/fields.model").EditorFieldsConfig>;
8
10
  export declare const selectRecordFields: import("@ngrx/store").MemoizedSelector<object, {
9
11
  config: import("../models/fields.model").EditorFieldConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"editor.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAElE,eAAO,MAAM,iBAAiB,oHAC0B,CAAA;AAExD,eAAO,MAAM,YAAY,2NAGxB,CAAA;AAED,eAAO,MAAM,kBAAkB,uFAG9B,CAAA;AAED,eAAO,MAAM,qBAAqB,qFAGjC,CAAA;AAED,eAAO,MAAM,4BAA4B,uFAGxC,CAAA;AAED,eAAO,MAAM,wBAAwB,+KAGpC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;IAO9B,CAAA"}
1
+ {"version":3,"file":"editor.selectors.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/+state/editor.selectors.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAElE,eAAO,MAAM,iBAAiB,oHAC0B,CAAA;AAExD,eAAO,MAAM,YAAY,2NAGxB,CAAA;AAED,eAAO,MAAM,kBAAkB,qFAG9B,CAAA;AAED,eAAO,MAAM,kBAAkB,uFAG9B,CAAA;AAED,eAAO,MAAM,qBAAqB,qFAGjC,CAAA;AAED,eAAO,MAAM,4BAA4B,uFAGxC,CAAA;AAED,eAAO,MAAM,4BAA4B,uFAGxC,CAAA;AAED,eAAO,MAAM,wBAAwB,+KAGpC,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;;;IAO9B,CAAA"}
@@ -0,0 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormFieldTemporalExtentsDateComponent {
4
+ control: FormControl;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTemporalExtentsDateComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTemporalExtentsDateComponent, "gn-ui-form-field-temporal-extents-date", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
8
+ //# sourceMappingURL=form-field-temporal-extents-date.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-temporal-extents-date.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../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"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAI5C,qBAQa,qCAAqC;IACvC,OAAO,EAAG,WAAW,CAAA;yCADnB,qCAAqC;2CAArC,qCAAqC;CAEjD"}
@@ -0,0 +1,8 @@
1
+ import { FormControl } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormFieldTemporalExtentsRangeComponent {
4
+ control: FormControl;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTemporalExtentsRangeComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTemporalExtentsRangeComponent, "gn-ui-form-field-temporal-extents-range", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
7
+ }
8
+ //# sourceMappingURL=form-field-temporal-extents-range.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-temporal-extents-range.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../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"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAI5C,qBAQa,sCAAsC;IACxC,OAAO,EAAG,WAAW,CAAA;yCADnB,sCAAsC;2CAAtC,sCAAsC;CAElD"}
@@ -0,0 +1,31 @@
1
+ import { OnDestroy, OnInit, Type } from '@angular/core';
2
+ import { FormArray, FormControl } from '@angular/forms';
3
+ import { Subscription } from 'rxjs';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import * as i0 from "@angular/core";
6
+ export declare class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
7
+ private translateService;
8
+ control: FormControl;
9
+ subscription: Subscription;
10
+ array: FormArray;
11
+ elements: Array<{
12
+ component: Type<any>;
13
+ inputs: Record<string, any>;
14
+ }>;
15
+ addOptions$: import("rxjs").Observable<[{
16
+ buttonLabel: any;
17
+ eventName: string;
18
+ }, {
19
+ buttonLabel: any;
20
+ eventName: string;
21
+ }]>;
22
+ constructor(translateService: TranslateService);
23
+ ngOnInit(): void;
24
+ onElementsChange(elements: any): void;
25
+ onAdd(eventName: string): void;
26
+ ngOnDestroy(): void;
27
+ private resetValueFromInput;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTemporalExtentsComponent, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTemporalExtentsComponent, "gn-ui-form-field-temporal-extents", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
30
+ }
31
+ //# sourceMappingURL=form-field-temporal-extents.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"form-field-temporal-extents.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EACT,MAAM,EACN,IAAI,EACL,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEvD,OAAO,EAAE,YAAY,EAAsB,MAAM,MAAM,CAAA;AAGvD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAGtD,qBAQa,iCAAkC,YAAW,MAAM,EAAE,SAAS;IAoB7D,OAAO,CAAC,gBAAgB;IAnB3B,OAAO,EAAG,WAAW,CAAA;IAE9B,YAAY,EAAE,YAAY,CAAA;IAE1B,KAAK,EAAE,SAAS,CAAoB;IACpC,QAAQ,EAAE,KAAK,CAAC;QACd,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;QACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;KAC5B,CAAC,CAAA;IAEF,WAAW;;;;;;QAOT;gBAEkB,gBAAgB,EAAE,gBAAgB;IAEtD,QAAQ;IAkBR,gBAAgB,CAAC,QAAQ,EAAE,GAAG;IAS9B,KAAK,CAAC,SAAS,EAAE,MAAM;IAkBvB,WAAW,IAAI,IAAI;IAInB,OAAO,CAAC,mBAAmB;yCAvEhB,iCAAiC;2CAAjC,iCAAiC;CAyG7C"}
@@ -16,7 +16,6 @@ export declare class FormFieldComponent {
16
16
  get isSimpleField(): boolean;
17
17
  get isFileField(): boolean;
18
18
  get isSpatialExtentField(): boolean;
19
- get isTemporalExtentField(): boolean;
20
19
  get isArrayField(): boolean;
21
20
  get isObjectField(): boolean;
22
21
  get isFieldOk(): boolean;
@@ -27,6 +26,7 @@ export declare class FormFieldComponent {
27
26
  get isLicenses(): boolean;
28
27
  get isResourceUpdated(): boolean;
29
28
  get isUpdateFrequency(): boolean;
29
+ get isTemporalExtents(): boolean;
30
30
  get withoutWrapper(): boolean;
31
31
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
32
32
  static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "gn-ui-form-field", never, { "model": { "alias": "model"; "required": false; }; "config": { "alias": "config"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAUjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;AAGpD,qBA0Ba,kBAAkB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,eAAe,CAAA;IAChC,IAAa,KAAK,CAAC,CAAC,EAAE,OAAO,EAI5B;IACS,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjB,UAAU,EAAE,UAAU,CAAA;IAE/C,WAAW,mBAAoB;;IAM/B,eAAe;IAIf,IAAI,UAAU,2DAQb;IAED,IAAI,aAAa,YAShB;IACD,IAAI,WAAW,YAEd;IACD,IAAI,oBAAoB,YAEvB;IACD,IAAI,qBAAqB,YAExB;IACD,IAAI,YAAY,YAEf;IACD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,aAAa,YAEhB;IACD,IAAI,cAAc,YAEjB;IAED,IAAI,OAAO,YAEV;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,YAEb;IACD,IAAI,iBAAiB,YAEpB;IACD,IAAI,iBAAiB,YAEpB;IAED,IAAI,cAAc,YAEjB;yCAtFU,kBAAkB;2CAAlB,kBAAkB;CAuF9B"}
1
+ {"version":3,"file":"form-field.component.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,UAAU,EAIX,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,WAAW,EAAuB,MAAM,gBAAgB,CAAA;AAMjE,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAYjC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;;AAGpD,qBA0Ba,kBAAkB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,eAAe,CAAA;IAChC,IAAa,KAAK,CAAC,CAAC,EAAE,OAAO,EAI5B;IACS,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAA;IAEjB,UAAU,EAAE,UAAU,CAAA;IAE/C,WAAW,mBAAoB;;IAM/B,eAAe;IAIf,IAAI,UAAU,2DAQb;IAED,IAAI,aAAa,YAShB;IACD,IAAI,WAAW,YAEd;IACD,IAAI,oBAAoB,YAEvB;IACD,IAAI,YAAY,YAEf;IACD,IAAI,aAAa,YAEhB;IAED,IAAI,SAAS,YAEZ;IACD,IAAI,aAAa,YAEhB;IACD,IAAI,cAAc,YAEjB;IAED,IAAI,OAAO,YAEV;IACD,IAAI,UAAU,YAEb;IACD,IAAI,UAAU,YAEb;IACD,IAAI,iBAAiB,YAEpB;IACD,IAAI,iBAAiB,YAEpB;IACD,IAAI,iBAAiB,YAEpB;IAED,IAAI,cAAc,YAEjB;yCAtFU,kBAAkB;2CAAlB,kBAAkB;CAuF9B"}
@@ -1,10 +1,12 @@
1
+ export * from './form-field-license/form-field-license.component';
2
+ export * from './form-field-resource-updated/form-field-resource-updated.component';
3
+ export * from './form-field-temporal-extents/form-field-temporal-extents.component';
1
4
  export * from './form-field-simple/form-field-simple.component';
2
5
  export * from './form-field-file/form-field-file.component';
3
6
  export * from './form-field-rich/form-field-rich.component';
4
7
  export * from './form-field-object/form-field-object.component';
5
8
  export * from './form-field-array/form-field-array.component';
6
9
  export * from './form-field-spatial-extent/form-field-spatial-extent.component';
7
- export * from './form-field-temporal-extent/form-field-temporal-extent.component';
8
10
  export * from './form-field.component';
9
11
  export * from './form-field.model';
10
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,iDAAiD,CAAA;AAC/D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iEAAiE,CAAA;AAC/E,cAAc,mEAAmE,CAAA;AACjF,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,mDAAmD,CAAA;AACjE,cAAc,qEAAqE,CAAA;AACnF,cAAc,qEAAqE,CAAA;AAEnF,cAAc,iDAAiD,CAAA;AAC/D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,iEAAiE,CAAA;AAC/E,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,kBAqD5B,CAAA"}
1
+ {"version":3,"file":"fields.config.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/editor/src/lib/fields.config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAE1D,eAAO,MAAM,cAAc,EAAE,kBA4D5B,CAAA"}
@@ -1,17 +1,14 @@
1
- import { Configuration } from '../../../../../../libs/data-access/gn4/src';
2
1
  import { Observable } from 'rxjs';
3
- import { HttpClient } from '@angular/common/http';
4
2
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record';
5
3
  import { EditorFieldsConfig } from '../models/fields.model';
4
+ import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class EditorService {
8
- private http;
9
- private apiConfiguration;
10
- private apiUrl;
11
- constructor(http: HttpClient, apiConfiguration: Configuration);
12
- loadRecordByUuid(uuid: string): Observable<CatalogRecord>;
13
- saveRecord(record: CatalogRecord, fieldsConfig: EditorFieldsConfig): Observable<CatalogRecord>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, [null, { optional: true; }]>;
7
+ private recordsRepository;
8
+ constructor(recordsRepository: RecordsRepositoryInterface);
9
+ saveRecord(record: CatalogRecord, fieldsConfig: EditorFieldsConfig): Observable<[CatalogRecord, string]>;
10
+ saveRecordAsDraft(record: CatalogRecord): Observable<void>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<EditorService, never>;
15
12
  static ɵprov: i0.ɵɵInjectableDeclaration<EditorService>;
16
13
  }
17
14
  //# sourceMappingURL=editor.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/services/editor.service.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAA;AAC1E,OAAO,EAAQ,UAAU,EAAE,MAAM,MAAM,CAAA;AAEvC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;;AAG3D,qBAGa,aAAa;IAItB,OAAO,CAAC,IAAI;IAGZ,OAAO,CAAC,gBAAgB;IAN1B,OAAO,CAAC,MAAM,CAAgE;gBAGpE,IAAI,EAAE,UAAU,EAGhB,gBAAgB,EAAE,aAAa;IAIzC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,aAAa,CAAC;IAgBzD,UAAU,CACR,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,kBAAkB,GAC/B,UAAU,CAAC,aAAa,CAAC;yCA9BjB,aAAa;6CAAb,aAAa;CA8DzB"}
1
+ {"version":3,"file":"editor.service.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/editor/src/lib/services/editor.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;;AAEjI,qBAGa,aAAa;IACZ,OAAO,CAAC,iBAAiB;gBAAjB,iBAAiB,EAAE,0BAA0B;IAGjE,UAAU,CACR,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,kBAAkB,GAC/B,UAAU,CAAC,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;IAoBtC,iBAAiB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC,IAAI,CAAC;yCA3B/C,aAAa;6CAAb,aAAa;CAgCzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"mdview.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/record/src/lib/state/mdview.effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAI7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;;AAElH,qBACa,aAAa;IAEtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,wBAAwB;gBAFxB,QAAQ,EAAE,OAAO,EACjB,iBAAiB,EAAE,0BAA0B,EAC7C,wBAAwB,EAAE,wBAAwB;IAM5D,iBAAiB;;;;;oJAgBhB;IAKD,mBAAmB;;4IASlB;IAKD,kBAAkB;;;;;oJAkBjB;IAED,oBAAoB;;;;;oJAkBnB;IAED,gBAAgB;;;;;kJAsBf;yCA3GU,aAAa;6CAAb,aAAa;CA4GzB"}
1
+ {"version":3,"file":"mdview.effects.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/record/src/lib/state/mdview.effects.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAwB,MAAM,eAAe,CAAA;AAI7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;AACjI,OAAO,EAAE,wBAAwB,EAAE,MAAM,yEAAyE,CAAA;;AAElH,qBACa,aAAa;IAEtB,OAAO,CAAC,QAAQ;IAChB,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,wBAAwB;gBAFxB,QAAQ,EAAE,OAAO,EACjB,iBAAiB,EAAE,0BAA0B,EAC7C,wBAAwB,EAAE,wBAAwB;IAM5D,iBAAiB;;;;;oJAchB;IAKD,mBAAmB;;4IASlB;IAKD,kBAAkB;;;;;oJAkBjB;IAED,oBAAoB;;;;;oJAkBnB;IAED,gBAAgB;;;;;kJAsBf;yCAzGU,aAAa;6CAAb,aAAa;CA0GzB"}
@@ -5,15 +5,17 @@ import { SearchFacade } from '../state/search.facade';
5
5
  import { SelectionService } from '../../../../../../libs/api/repository/src';
6
6
  import { Observable } from 'rxjs';
7
7
  import { SearchService } from '../utils/service/search.service';
8
+ import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class ResultsTableComponent {
10
11
  private searchFacade;
11
12
  private searchService;
12
13
  private selectionService;
14
+ private recordsRepository;
13
15
  recordClick: EventEmitter<CatalogRecord>;
14
16
  records$: Observable<CatalogRecord[]>;
15
17
  selectedRecords$: import("rxjs").BehaviorSubject<string[]>;
16
- constructor(searchFacade: SearchFacade, searchService: SearchService, selectionService: SelectionService);
18
+ constructor(searchFacade: SearchFacade, searchService: SearchService, selectionService: SelectionService, recordsRepository: RecordsRepositoryInterface);
17
19
  dateToString(date: Date): string;
18
20
  getStatus(isPublishedToAll: boolean | unknown): "published" | "not published";
19
21
  getRecordFormats(record: CatalogRecord): FileFormat[];
@@ -27,6 +29,7 @@ export declare class ResultsTableComponent {
27
29
  toggleSelectAll(): Promise<void>;
28
30
  isAllSelected(): Observable<boolean>;
29
31
  isSomeSelected(): Observable<boolean>;
32
+ hasDraft(record: CatalogRecord): boolean;
30
33
  static ɵfac: i0.ɵɵFactoryDeclaration<ResultsTableComponent, never>;
31
34
  static ɵcmp: i0.ɵɵComponentDeclaration<ResultsTableComponent, "gn-ui-results-table", never, {}, { "recordClick": "recordClick"; }, never, never, true, never>;
32
35
  }
@@ -1 +1 @@
1
- {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAU,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;AAQ/C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAiC,UAAU,EAAE,MAAM,MAAM,CAAA;AAIhE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;;AAE/D,qBAca,qBAAqB;IAO9B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,gBAAgB;IARhB,WAAW,8BAAoC;IAEzD,QAAQ,8BAA6B;IACrC,gBAAgB,2CAAoD;gBAG1D,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB;IAG5C,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAiB1D,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC;IASrD,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAQ7D,eAAe;IASrB,aAAa,IAAI,UAAU,CAAC,OAAO,CAAC;IAWpC,cAAc,IAAI,UAAU,CAAC,OAAO,CAAC;yCAhH1B,qBAAqB;2CAArB,qBAAqB;CA8HjC"}
1
+ {"version":3,"file":"results-table.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/results-table/results-table.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAU,MAAM,eAAe,CAAA;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,2DAA2D,CAAA;AACzF,OAAO,EACL,UAAU,EAIX,MAAM,wCAAwC,CAAA;AAQ/C,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAA;AAC5E,OAAO,EAAiC,UAAU,EAAE,MAAM,MAAM,CAAA;AAIhE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAA;AAE/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,sFAAsF,CAAA;;AAEjI,qBAea,qBAAqB;IAO9B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,aAAa;IACrB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,iBAAiB;IATjB,WAAW,8BAAoC;IAEzD,QAAQ,8BAA6B;IACrC,gBAAgB,2CAAoD;gBAG1D,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,0BAA0B;IAGvD,YAAY,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM;IAShC,SAAS,CAAC,gBAAgB,EAAE,OAAO,GAAG,OAAO;IAI7C,gBAAgB,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,EAAE;IAarD,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM;IAQlD,aAAa,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM;IAIzC,iBAAiB,CAAC,IAAI,EAAE,OAAO;IAI/B,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,MAAM;IAI5C,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,UAAU,CAAC,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAiB1D,SAAS,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAAC,OAAO,CAAC;IASrD,0BAA0B,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa;IAQ7D,eAAe;IASrB,aAAa,IAAI,UAAU,CAAC,OAAO,CAAC;IAWpC,cAAc,IAAI,UAAU,CAAC,OAAO,CAAC;IAerC,QAAQ,CAAC,MAAM,EAAE,aAAa,GAAG,OAAO;yCAhI7B,qBAAqB;2CAArB,qBAAqB;CAmIjC"}
@@ -3,6 +3,7 @@ export * from './lib/avatar/avatar.component';
3
3
  export * from './lib/content-ghost/content-ghost.component';
4
4
  export * from './lib/download-item/download-item.component';
5
5
  export * from './lib/downloads-list/downloads-list.component';
6
+ export * from './lib/error/error.component';
6
7
  export * from './lib/image-overlay-preview/image-overlay-preview.component';
7
8
  export * from './lib/link-card/link-card.component';
8
9
  export * from './lib/markdown-editor/markdown-editor.component';
@@ -13,13 +14,13 @@ export * from './lib/metadata-contact/metadata-contact.component';
13
14
  export * from './lib/metadata-info/metadata-info.component';
14
15
  export * from './lib/metadata-quality-item/metadata-quality-item.component';
15
16
  export * from './lib/metadata-quality/metadata-quality.component';
17
+ export * from './lib/notification/notification.component';
16
18
  export * from './lib/pagination-buttons/pagination-buttons.component';
17
19
  export * from './lib/pagination/pagination.component';
18
20
  export * from './lib/record-api-form/record-api-form.component';
19
21
  export * from './lib/related-record-card/related-record-card.component';
20
- export * from './lib/error/error.component';
22
+ export * from './lib/sortable-list/sortable-list.component';
21
23
  export * from './lib/thumbnail/thumbnail.component';
22
24
  export * from './lib/ui-elements.module';
23
25
  export * from './lib/user-preview/user-preview.component';
24
- export * from './lib/notification/notification.component';
25
26
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,qCAAqC,CAAA;AACnD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,yDAAyD,CAAA;AACvE,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,0BAA0B,CAAA;AACxC,cAAc,2CAA2C,CAAA;AACzD,cAAc,2CAA2C,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/elements/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAA;AACjD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6CAA6C,CAAA;AAC3D,cAAc,+CAA+C,CAAA;AAC7D,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6DAA6D,CAAA;AAC3E,cAAc,qCAAqC,CAAA;AACnD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,iDAAiD,CAAA;AAC/D,cAAc,qCAAqC,CAAA;AACnD,cAAc,mDAAmD,CAAA;AACjE,cAAc,mDAAmD,CAAA;AACjE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,6DAA6D,CAAA;AAC3E,cAAc,mDAAmD,CAAA;AACjE,cAAc,2CAA2C,CAAA;AACzD,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,iDAAiD,CAAA;AAC/D,cAAc,yDAAyD,CAAA;AACvE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,qCAAqC,CAAA;AACnD,cAAc,0BAA0B,CAAA;AACxC,cAAc,2CAA2C,CAAA"}
@@ -0,0 +1,22 @@
1
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { EventEmitter, Type } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ type DynamicElement = {
5
+ component: Type<any>;
6
+ inputs: Record<string, any>;
7
+ };
8
+ export declare class SortableListComponent {
9
+ elements: Array<DynamicElement>;
10
+ addOptions: Array<{
11
+ buttonLabel: string;
12
+ eventName: string;
13
+ }>;
14
+ elementsChange: EventEmitter<DynamicElement[]>;
15
+ add: EventEmitter<string>;
16
+ drop(event: CdkDragDrop<string[]>): void;
17
+ removeElement(index: number): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<SortableListComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<SortableListComponent, "gn-ui-sortable-list", never, { "elements": { "alias": "elements"; "required": false; }; "addOptions": { "alias": "addOptions"; "required": false; }; }, { "elementsChange": "elementsChange"; "add": "add"; }, never, never, true, never>;
20
+ }
21
+ export {};
22
+ //# sourceMappingURL=sortable-list.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sortable-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAIZ,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAGL,YAAY,EAGZ,IAAI,EACL,MAAM,eAAe,CAAA;;AAItB,KAAK,cAAc,GAAG;IACpB,SAAS,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;IACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B,CAAA;AAED,qBAgBa,qBAAqB;IACvB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC/B,UAAU,EAAE,KAAK,CAAC;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IAC5D,cAAc,iCAA4C;IAC1D,GAAG,uBAA6B;IAE1C,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;IAKjC,aAAa,CAAC,KAAK,EAAE,MAAM;yCAXhB,qBAAqB;2CAArB,qBAAqB;CAejC"}
@@ -32,9 +32,10 @@ import * as i30 from "@angular/forms";
32
32
  import * as i31 from "./markdown-parser/markdown-parser.component";
33
33
  import * as i32 from "./thumbnail/thumbnail.component";
34
34
  import * as i33 from "./user-feedback-item/time-since.pipe";
35
+ import * as i34 from "../../../widgets/src/lib/badge/badge.component";
35
36
  export declare class UiElementsModule {
36
37
  static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
37
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i15.GnUiLinkifyDirective, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent], [typeof i21.CommonModule, typeof i22.MatIconModule, typeof i23.MatTooltipModule, typeof i24.UiWidgetsModule, typeof i25.UiLayoutModule, typeof i26.TranslateModule, typeof i27.UtilSharedModule, typeof i28.RouterModule, typeof i29.UiInputsModule, typeof i30.FormsModule, typeof i21.NgOptimizedImage, typeof i31.MarkdownParserComponent, typeof i32.ThumbnailComponent, typeof i33.TimeSincePipe], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i32.ThumbnailComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i31.MarkdownParserComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent]>;
38
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i15.GnUiLinkifyDirective, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent], [typeof i21.CommonModule, typeof i22.MatIconModule, typeof i23.MatTooltipModule, typeof i24.UiWidgetsModule, typeof i25.UiLayoutModule, typeof i26.TranslateModule, typeof i27.UtilSharedModule, typeof i28.RouterModule, typeof i29.UiInputsModule, typeof i30.FormsModule, typeof i21.NgOptimizedImage, typeof i31.MarkdownParserComponent, typeof i32.ThumbnailComponent, typeof i33.TimeSincePipe, typeof i34.BadgeComponent], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.RelatedRecordCardComponent, typeof i7.MetadataContactComponent, typeof i8.MetadataCatalogComponent, typeof i9.MetadataQualityComponent, typeof i10.MetadataQualityItemComponent, typeof i11.ErrorComponent, typeof i12.PaginationComponent, typeof i32.ThumbnailComponent, typeof i13.AvatarComponent, typeof i14.UserPreviewComponent, typeof i16.PaginationButtonsComponent, typeof i17.MaxLinesComponent, typeof i18.RecordApiFormComponent, typeof i31.MarkdownParserComponent, typeof i19.UserFeedbackItemComponent, typeof i20.ImageOverlayPreviewComponent]>;
38
39
  static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
39
40
  }
40
41
  //# sourceMappingURL=ui-elements.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBA+Da,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
1
+ {"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmCA,qBAgEa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"date-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;;AAKtE,qBAOa,mBAAmB;IACrB,IAAI,EAAE,IAAI,CAAA;IACT,UAAU,qBAA2B;yCAFpC,mBAAmB;2CAAnB,mBAAmB;CAG/B"}
1
+ {"version":3,"file":"date-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAKtB,qBAQa,mBAAmB;IACrB,IAAI,EAAE,IAAI,CAAA;IACT,UAAU,qBAA2B;yCAFpC,mBAAmB;2CAAnB,mBAAmB;CAG/B"}
@@ -1,11 +1,11 @@
1
- import { MatDatepickerInputEvent } from '@angular/material/datepicker';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class DateRangePickerComponent {
4
4
  startDate: Date;
5
5
  endDate: Date;
6
- startDateSelected(event: MatDatepickerInputEvent<Date>): void;
7
- endDateSelected(event: MatDatepickerInputEvent<Date>): void;
6
+ startDateChange: EventEmitter<Date>;
7
+ endDateChange: EventEmitter<Date>;
8
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
9
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, {}, {}, never, never, true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "gn-ui-date-range-picker", never, { "startDate": { "alias": "startDate"; "required": false; }; "endDate": { "alias": "endDate"; "required": false; }; }, { "startDateChange": "startDateChange"; "endDateChange": "endDateChange"; }, never, never, true, never>;
10
10
  }
11
11
  //# sourceMappingURL=date-range-picker.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EAExB,MAAM,8BAA8B,CAAA;;AAGrC,qBAOa,wBAAwB;IACnC,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IAEb,iBAAiB,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;IAItD,eAAe,CAAC,KAAK,EAAE,uBAAuB,CAAC,IAAI,CAAC;yCARzC,wBAAwB;2CAAxB,wBAAwB;CAWpC"}
1
+ {"version":3,"file":"date-range-picker.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAKtB,qBAQa,wBAAwB;IAC1B,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,EAAE,IAAI,CAAA;IACZ,eAAe,qBAA2B;IAC1C,aAAa,qBAA2B;yCAJvC,wBAAwB;2CAAxB,wBAAwB;CAKpC"}
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BadgeComponent {
3
- clickable?: boolean;
3
+ clickable: boolean;
4
4
  static ɵfac: i0.ɵɵFactoryDeclaration<BadgeComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "gn-ui-badge", never, { "clickable": { "alias": "clickable"; "required": false; }; }, {}, never, ["*"], false, never>;
5
+ static ɵcmp: i0.ɵɵComponentDeclaration<BadgeComponent, "gn-ui-badge", never, { "clickable": { "alias": "clickable"; "required": false; }; }, {}, never, ["*"], true, never>;
6
6
  }
7
7
  //# sourceMappingURL=badge.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/widgets/src/lib/badge/badge.component.ts"],"names":[],"mappings":";AAEA,qBAMa,cAAc;IAChB,SAAS,CAAC,UAAQ;yCADhB,cAAc;2CAAd,cAAc;CAE1B"}
1
+ {"version":3,"file":"badge.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/widgets/src/lib/badge/badge.component.ts"],"names":[],"mappings":";AAGA,qBAQa,cAAc;IAChB,SAAS,UAAQ;yCADf,cAAc;2CAAd,cAAc;CAE1B"}
@@ -4,19 +4,18 @@ import * as i2 from "./progress-bar/progress-bar.component";
4
4
  import * as i3 from "./step-bar/step-bar.component";
5
5
  import * as i4 from "./loading-mask/loading-mask.component";
6
6
  import * as i5 from "./popup-alert/popup-alert.component";
7
- import * as i6 from "./badge/badge.component";
8
- import * as i7 from "./spinning-loader/spinning-loader.component";
9
- import * as i8 from "@angular/common";
10
- import * as i9 from "@ngx-translate/core";
11
- import * as i10 from "ngx-dropzone";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "ngx-chips";
14
- import * as i13 from "../../../../util/shared/src/lib/util-shared.module";
15
- import * as i14 from "@angular/material/progress-spinner";
16
- import * as i15 from "@angular/material/icon";
7
+ import * as i6 from "./spinning-loader/spinning-loader.component";
8
+ import * as i7 from "@angular/common";
9
+ import * as i8 from "@ngx-translate/core";
10
+ import * as i9 from "ngx-dropzone";
11
+ import * as i10 from "@angular/forms";
12
+ import * as i11 from "ngx-chips";
13
+ import * as i12 from "../../../../util/shared/src/lib/util-shared.module";
14
+ import * as i13 from "@angular/material/progress-spinner";
15
+ import * as i14 from "@angular/material/icon";
17
16
  export declare class UiWidgetsModule {
18
17
  static ɵfac: i0.ɵɵFactoryDeclaration<UiWidgetsModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent, typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.PopupAlertComponent, typeof i6.BadgeComponent, typeof i7.SpinningLoaderComponent], [typeof i8.CommonModule, typeof i9.TranslateModule, typeof i10.NgxDropzoneModule, typeof i11.FormsModule, typeof i11.ReactiveFormsModule, typeof i12.TagInputModule, typeof i13.UtilSharedModule, typeof i14.MatProgressSpinnerModule, typeof i15.MatIconModule], [typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.PopupAlertComponent, typeof i6.BadgeComponent, typeof i7.SpinningLoaderComponent]>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiWidgetsModule, [typeof i1.ColorScaleComponent, typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.PopupAlertComponent, typeof i6.SpinningLoaderComponent], [typeof i7.CommonModule, typeof i8.TranslateModule, typeof i9.NgxDropzoneModule, typeof i10.FormsModule, typeof i10.ReactiveFormsModule, typeof i11.TagInputModule, typeof i12.UtilSharedModule, typeof i13.MatProgressSpinnerModule, typeof i14.MatIconModule], [typeof i2.ProgressBarComponent, typeof i3.StepBarComponent, typeof i4.LoadingMaskComponent, typeof i5.PopupAlertComponent, typeof i6.SpinningLoaderComponent]>;
20
19
  static ɵinj: i0.ɵɵInjectorDeclaration<UiWidgetsModule>;
21
20
  }
22
21
  //# sourceMappingURL=ui-widgets.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAiBA,qBA8Ba,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
1
+ {"version":3,"file":"ui-widgets.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/widgets/src/lib/ui-widgets.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAgBA,qBA4Ba,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geonetwork-ui",
3
- "version": "2.3.0",
3
+ "version": "2.4.0-dev.573bccd7",
4
4
  "engines": {
5
5
  "node": ">=14.17.0"
6
6
  },
@@ -1,7 +1,17 @@
1
1
  import { Injectable } from '@angular/core'
2
- import { SearchApiService } from '../../../../../../libs/data-access/gn4/src'
2
+ import {
3
+ RecordsApiService,
4
+ SearchApiService,
5
+ } from '../../../../../../libs/data-access/gn4/src'
3
6
  import { ElasticsearchService } from './elasticsearch'
4
- import { Observable, of, switchMap } from 'rxjs'
7
+ import {
8
+ combineLatest,
9
+ from,
10
+ Observable,
11
+ of,
12
+ switchMap,
13
+ throwError,
14
+ } from 'rxjs'
5
15
  import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
6
16
  import {
7
17
  SearchParams,
@@ -12,19 +22,23 @@ import {
12
22
  AggregationsParams,
13
23
  FieldFilters,
14
24
  } from '../../../../../../libs/common/domain/src/lib/model/search'
15
- import { map } from 'rxjs/operators'
25
+ import { catchError, map, tap } from 'rxjs/operators'
16
26
  import {
27
+ findConverterForDocument,
17
28
  Gn4Converter,
18
29
  Gn4SearchResults,
30
+ Iso19139Converter,
19
31
  } from '../../../../../../libs/api/metadata-converter/src'
20
32
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
33
+ import { HttpErrorResponse } from '@angular/common/http'
21
34
 
22
35
  @Injectable()
23
36
  export class Gn4Repository implements RecordsRepositoryInterface {
24
37
  constructor(
25
38
  private gn4SearchApi: SearchApiService,
26
39
  private gn4SearchHelper: ElasticsearchService,
27
- private gn4Mapper: Gn4Converter
40
+ private gn4Mapper: Gn4Converter,
41
+ private gn4RecordsApi: RecordsApiService
28
42
  ) {}
29
43
 
30
44
  search({
@@ -84,9 +98,7 @@ export class Gn4Repository implements RecordsRepositoryInterface {
84
98
  .pipe(map((results: Gn4SearchResults) => results.hits.total?.value || 0))
85
99
  }
86
100
 
87
- getByUniqueIdentifier(
88
- uniqueIdentifier: string
89
- ): Observable<CatalogRecord | null> {
101
+ getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null> {
90
102
  return this.gn4SearchApi
91
103
  .search(
92
104
  'bucket',
@@ -165,4 +177,130 @@ export class Gn4Repository implements RecordsRepositoryInterface {
165
177
  )
166
178
  )
167
179
  }
180
+
181
+ /**
182
+ * Returns null if the record is not found
183
+ */
184
+ private loadRecordAsXml(uniqueIdentifier: string): Observable<string | null> {
185
+ return this.gn4RecordsApi
186
+ .getRecordAs(
187
+ uniqueIdentifier,
188
+ undefined,
189
+ false,
190
+ undefined,
191
+ undefined,
192
+ undefined,
193
+ 'application/xml',
194
+ 'response',
195
+ undefined,
196
+ { httpHeaderAccept: 'text/xml,application/xml' as 'application/xml' } // this is to make sure that the response is parsed as text
197
+ )
198
+ .pipe(
199
+ map((response) => response.body),
200
+ catchError((error: HttpErrorResponse) =>
201
+ error.status === 404 ? of(null) : throwError(() => error)
202
+ )
203
+ )
204
+ }
205
+
206
+ private getLocalStorageKeyForRecord(uniqueIdentifier: string) {
207
+ return `geonetwork-ui-draft-${uniqueIdentifier}`
208
+ }
209
+
210
+ openRecordForEdition(
211
+ uniqueIdentifier: string
212
+ ): Observable<[CatalogRecord, string, boolean] | null> {
213
+ const draft$ = of(
214
+ window.localStorage.getItem(
215
+ this.getLocalStorageKeyForRecord(uniqueIdentifier)
216
+ )
217
+ )
218
+ const recordAsXml$ = this.loadRecordAsXml(uniqueIdentifier)
219
+ return combineLatest([draft$, recordAsXml$]).pipe(
220
+ switchMap(([draft, recordAsXml]) => {
221
+ const xml = draft ?? recordAsXml
222
+ const isSavedAlready = recordAsXml !== null
223
+ return findConverterForDocument(xml)
224
+ .readRecord(xml)
225
+ .then(
226
+ (record) =>
227
+ [record, xml, isSavedAlready] as [CatalogRecord, string, boolean]
228
+ )
229
+ })
230
+ )
231
+ }
232
+
233
+ private serializeRecordToXml(
234
+ record: CatalogRecord,
235
+ referenceRecordSource?: string
236
+ ): Observable<string> {
237
+ // if there's a reference record, use that standard; otherwise, use iso19139
238
+ const converter = referenceRecordSource
239
+ ? findConverterForDocument(referenceRecordSource)
240
+ : new Iso19139Converter()
241
+ return from(converter.writeRecord(record, referenceRecordSource))
242
+ }
243
+
244
+ saveRecord(
245
+ record: CatalogRecord,
246
+ referenceRecordSource?: string
247
+ ): Observable<string> {
248
+ return this.serializeRecordToXml(record, referenceRecordSource).pipe(
249
+ switchMap((recordXml) =>
250
+ this.gn4RecordsApi
251
+ .insert(
252
+ 'METADATA',
253
+ undefined,
254
+ undefined,
255
+ undefined,
256
+ true,
257
+ undefined,
258
+ 'OVERWRITE',
259
+ undefined,
260
+ undefined,
261
+ undefined,
262
+ '_none_',
263
+ undefined,
264
+ undefined,
265
+ undefined,
266
+ recordXml
267
+ )
268
+ .pipe(map(() => recordXml))
269
+ ),
270
+ tap(() => {
271
+ // if saving was successful, the associated draft can be discarded
272
+ window.localStorage.removeItem(
273
+ this.getLocalStorageKeyForRecord(record.uniqueIdentifier)
274
+ )
275
+ })
276
+ )
277
+ }
278
+
279
+ saveRecordAsDraft(
280
+ record: CatalogRecord,
281
+ referenceRecordSource?: string
282
+ ): Observable<string> {
283
+ return this.serializeRecordToXml(record, referenceRecordSource).pipe(
284
+ tap((recordXml) =>
285
+ window.localStorage.setItem(
286
+ this.getLocalStorageKeyForRecord(record.uniqueIdentifier),
287
+ recordXml
288
+ )
289
+ )
290
+ )
291
+ }
292
+
293
+ clearRecordDraft(uniqueIdentifier: string): void {
294
+ window.localStorage.removeItem(
295
+ this.getLocalStorageKeyForRecord(uniqueIdentifier)
296
+ )
297
+ }
298
+
299
+ recordHasDraft(uniqueIdentifier: string): boolean {
300
+ return (
301
+ window.localStorage.getItem(
302
+ this.getLocalStorageKeyForRecord(uniqueIdentifier)
303
+ ) !== null
304
+ )
305
+ }
168
306
  }