geonetwork-ui 2.7.0-dev.9895bd35c → 2.7.0-dev.9cba4b227

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 (346) hide show
  1. package/esm2022/index.mjs +1 -2
  2. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
  3. package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +26 -3
  4. package/esm2022/libs/api/repository/src/lib/gn4/organizations/index.mjs +3 -5
  5. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.mjs +5 -0
  6. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.mjs +6 -0
  7. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +35 -21
  8. package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -1
  9. package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
  10. package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
  11. package/esm2022/libs/feature/catalog/src/index.mjs +1 -2
  12. package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +3 -1
  13. package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +5 -4
  14. package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -3
  15. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
  16. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +4 -4
  17. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +8 -2
  18. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
  19. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -6
  20. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
  21. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -36
  22. package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +51 -45
  23. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +10 -5
  24. package/esm2022/libs/feature/notifications/src/index.mjs +1 -2
  25. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -2
  26. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +14 -4
  27. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -43
  28. package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +10 -5
  29. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +15 -5
  30. package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +4 -2
  31. package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
  32. package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +3 -2
  33. package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +2 -5
  34. package/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +4 -3
  35. package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +2 -2
  36. package/esm2022/libs/feature/search/src/index.mjs +1 -2
  37. package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +12 -5
  38. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
  39. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +4 -100
  40. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +9 -5
  41. package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +6 -5
  42. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +9 -5
  43. package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +7 -6
  44. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +19 -12
  45. package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +2 -1
  46. package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +7 -6
  47. package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +3 -2
  48. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +8 -2
  49. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +8 -2
  50. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +8 -2
  51. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +8 -2
  52. package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +14 -4
  53. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +8 -2
  54. package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +8 -2
  55. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +1 -6
  56. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +15 -5
  57. package/esm2022/libs/ui/search/src/index.mjs +1 -3
  58. package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +14 -30
  59. package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +6 -27
  60. package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +7 -4
  61. package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +5 -4
  62. package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +5 -2
  63. package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +5 -4
  64. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +36 -7
  65. package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +11 -5
  66. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +5 -4
  67. package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +5 -4
  68. package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +5 -4
  69. package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +5 -4
  70. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +17 -7
  71. package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +4 -2
  72. package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +5 -4
  73. package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +5 -3
  74. package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +14 -4
  75. package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
  76. package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
  77. package/esm2022/libs/util/shared/src/lib/utils/scroll.mjs +40 -0
  78. package/esm2022/translations/de.json +38 -36
  79. package/esm2022/translations/en.json +41 -38
  80. package/esm2022/translations/es.json +26 -24
  81. package/esm2022/translations/fr.json +45 -43
  82. package/esm2022/translations/it.json +39 -37
  83. package/esm2022/translations/nl.json +26 -24
  84. package/esm2022/translations/pt.json +26 -24
  85. package/esm2022/translations/sk.json +30 -28
  86. package/fesm2022/geonetwork-ui.mjs +5650 -5789
  87. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  88. package/index.d.ts +0 -1
  89. package/index.d.ts.map +1 -1
  90. package/index.ts +0 -1
  91. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +2 -2
  92. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  93. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
  94. package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
  95. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts +2 -3
  96. package/libs/api/repository/src/lib/gn4/organizations/index.d.ts.map +1 -1
  97. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts +4 -0
  98. package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts.map +1 -0
  99. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts +9 -0
  100. package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts.map +1 -0
  101. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +11 -8
  102. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  103. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +2 -0
  104. package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
  105. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -2
  106. package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
  107. package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -0
  108. package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
  109. package/libs/feature/catalog/src/index.d.ts +0 -1
  110. package/libs/feature/catalog/src/index.d.ts.map +1 -1
  111. package/libs/feature/catalog/src/lib/organization-url.token.d.ts +1 -0
  112. package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -1
  113. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts +1 -1
  114. package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts.map +1 -1
  115. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts +1 -1
  116. package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts.map +1 -1
  117. package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -1
  118. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  119. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
  120. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  121. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
  122. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
  123. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
  124. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
  125. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  126. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
  127. package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
  128. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +3 -10
  129. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  130. package/libs/feature/editor/src/lib/fields.config.d.ts +4 -4
  131. package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
  132. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  133. package/libs/feature/notifications/src/index.d.ts +0 -1
  134. package/libs/feature/notifications/src/index.d.ts.map +1 -1
  135. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  136. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  137. package/libs/feature/record/src/lib/feature-record.module.d.ts +4 -11
  138. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  139. package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
  140. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  141. package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts.map +1 -1
  142. package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
  143. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts +1 -1
  144. package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts.map +1 -1
  145. package/libs/feature/router/src/lib/default/router.module.d.ts +4 -5
  146. package/libs/feature/router/src/lib/default/router.module.d.ts.map +1 -1
  147. package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -1
  148. package/libs/feature/search/src/index.d.ts +0 -1
  149. package/libs/feature/search/src/index.d.ts.map +1 -1
  150. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts +1 -1
  151. package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts.map +1 -1
  152. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
  153. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  154. package/libs/feature/search/src/lib/feature-search.module.d.ts +3 -26
  155. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  156. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +1 -1
  157. package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
  158. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts +1 -1
  159. package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts.map +1 -1
  160. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +1 -1
  161. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -1
  162. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts +1 -1
  163. package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts.map +1 -1
  164. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
  165. package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
  166. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +1 -1
  167. package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
  168. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts +1 -1
  169. package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
  170. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts +1 -1
  171. package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts.map +1 -1
  172. package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts.map +1 -1
  173. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  174. package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
  175. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
  176. package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +1 -1
  177. package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -1
  178. package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -1
  179. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
  180. package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -1
  181. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
  182. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  183. package/libs/ui/search/src/index.d.ts +0 -2
  184. package/libs/ui/search/src/index.d.ts.map +1 -1
  185. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts +1 -11
  186. package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts.map +1 -1
  187. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts +1 -11
  188. package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts.map +1 -1
  189. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts +1 -1
  190. package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts.map +1 -1
  191. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts +1 -1
  192. package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts.map +1 -1
  193. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts +1 -1
  194. package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts.map +1 -1
  195. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts +1 -1
  196. package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts.map +1 -1
  197. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts +1 -1
  198. package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts.map +1 -1
  199. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts +1 -1
  200. package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts.map +1 -1
  201. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts +1 -1
  202. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts.map +1 -1
  203. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts +1 -1
  204. package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts.map +1 -1
  205. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts +1 -1
  206. package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts.map +1 -1
  207. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts +1 -1
  208. package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts.map +1 -1
  209. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +1 -1
  210. package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
  211. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts +1 -1
  212. package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts.map +1 -1
  213. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts +1 -1
  214. package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
  215. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts +1 -1
  216. package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts.map +1 -1
  217. package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
  218. package/libs/util/shared/src/lib/links/link-utils.d.ts +26 -7
  219. package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
  220. package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
  221. package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
  222. package/libs/util/shared/src/lib/utils/scroll.d.ts +12 -0
  223. package/libs/util/shared/src/lib/utils/scroll.d.ts.map +1 -0
  224. package/package.json +3 -3
  225. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
  226. package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +38 -2
  227. package/src/libs/api/repository/src/lib/gn4/organizations/index.ts +2 -11
  228. package/src/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.ts +10 -0
  229. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.ts +33 -0
  230. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +36 -38
  231. package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +8 -0
  232. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -2
  233. package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -0
  234. package/src/libs/feature/catalog/src/index.ts +0 -1
  235. package/src/libs/feature/catalog/src/lib/organization-url.token.ts +5 -0
  236. package/src/libs/feature/catalog/src/lib/site-title/site-title.component.ts +4 -0
  237. package/src/libs/feature/catalog/src/lib/source-label/source-label.component.ts +3 -0
  238. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +4 -4
  239. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +3 -3
  240. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +8 -1
  241. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.html +22 -0
  242. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
  243. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
  244. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +3 -3
  245. package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
  246. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -18
  247. package/src/libs/feature/editor/src/lib/fields.config.ts +51 -45
  248. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +8 -1
  249. package/src/libs/feature/notifications/src/index.ts +0 -1
  250. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -1
  251. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +7 -2
  252. package/src/libs/feature/record/src/lib/feature-record.module.ts +1 -21
  253. package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +5 -2
  254. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +12 -3
  255. package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -0
  256. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -2
  257. package/src/libs/feature/router/src/lib/default/container/search-router.container.directive.ts +1 -0
  258. package/src/libs/feature/router/src/lib/default/router.module.ts +0 -3
  259. package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +5 -2
  260. package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
  261. package/src/libs/feature/search/src/index.ts +0 -1
  262. package/src/libs/feature/search/src/lib/facets/facets-container/facets-container.component.ts +14 -1
  263. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
  264. package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -61
  265. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +12 -1
  266. package/src/libs/feature/search/src/lib/records-metrics/records-metrics.component.ts +5 -0
  267. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +11 -0
  268. package/src/libs/feature/search/src/lib/results-layout/results-layout.component.ts +5 -0
  269. package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +21 -1
  270. package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +1 -1
  271. package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +5 -0
  272. package/src/libs/feature/search/src/lib/state/container/search-state.container.directive.ts +1 -0
  273. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +4 -1
  274. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +4 -1
  275. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -1
  276. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +4 -1
  277. package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +7 -2
  278. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +8 -1
  279. package/src/libs/ui/elements/src/lib/notification/notification.component.ts +8 -1
  280. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +0 -6
  281. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
  282. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +9 -4
  283. package/src/libs/ui/search/src/index.ts +0 -2
  284. package/src/libs/ui/search/src/lib/facets/facet-block/facet-block.component.ts +12 -11
  285. package/src/libs/ui/search/src/lib/facets/facet-item/facet-item.component.ts +5 -11
  286. package/src/libs/ui/search/src/lib/facets/facet-list/facet-list.component.ts +6 -0
  287. package/src/libs/ui/search/src/lib/record-metric/record-metric.component.ts +4 -0
  288. package/src/libs/ui/search/src/lib/record-preview/record-preview.component.ts +3 -0
  289. package/src/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.ts +4 -0
  290. package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.ts +33 -1
  291. package/src/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.ts +10 -0
  292. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.ts +4 -0
  293. package/src/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.ts +4 -0
  294. package/src/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.ts +4 -0
  295. package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.ts +4 -0
  296. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
  297. package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +16 -2
  298. package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +5 -3
  299. package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +4 -0
  300. package/src/libs/ui/search/src/lib/results-list-item/results-list-item.component.ts +3 -0
  301. package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +6 -1
  302. package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
  303. package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
  304. package/src/libs/util/shared/src/lib/utils/scroll.ts +48 -0
  305. package/translations/de.json +38 -36
  306. package/translations/en.json +41 -38
  307. package/translations/es.json +26 -24
  308. package/translations/fr.json +45 -43
  309. package/translations/it.json +39 -37
  310. package/translations/nl.json +26 -24
  311. package/translations/pt.json +26 -24
  312. package/translations/sk.json +30 -28
  313. package/esm2022/libs/feature/auth/src/index.mjs +0 -2
  314. package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +0 -17
  315. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +0 -57
  316. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.mjs +0 -79
  317. package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +0 -18
  318. package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +0 -21
  319. package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +0 -23
  320. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +0 -168
  321. package/libs/feature/auth/src/index.d.ts +0 -2
  322. package/libs/feature/auth/src/index.d.ts.map +0 -1
  323. package/libs/feature/auth/src/lib/feature-auth.module.d.ts +0 -8
  324. package/libs/feature/auth/src/lib/feature-auth.module.d.ts.map +0 -1
  325. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +0 -14
  326. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +0 -1
  327. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts +0 -28
  328. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts.map +0 -1
  329. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +0 -7
  330. package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +0 -1
  331. package/libs/feature/search/src/lib/facets/facets.module.d.ts +0 -11
  332. package/libs/feature/search/src/lib/facets/facets.module.d.ts.map +0 -1
  333. package/libs/ui/search/src/lib/facets/facets.module.d.ts +0 -13
  334. package/libs/ui/search/src/lib/facets/facets.module.d.ts.map +0 -1
  335. package/libs/ui/search/src/lib/ui-search.module.d.ts +0 -36
  336. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +0 -1
  337. package/src/libs/feature/auth/src/index.ts +0 -1
  338. package/src/libs/feature/auth/src/lib/feature-auth.module.ts +0 -12
  339. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -71
  340. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.html +0 -20
  341. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts +0 -85
  342. package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +0 -10
  343. package/src/libs/feature/search/src/lib/facets/facets.module.ts +0 -12
  344. package/src/libs/ui/search/src/lib/facets/facets.module.ts +0 -14
  345. package/src/libs/ui/search/src/lib/ui-search.module.ts +0 -108
  346. /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.css → form-field-topics/form-field-topics.component.css} +0 -0
@@ -1,28 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import * as i0 from "@angular/core";
4
- type AutocompleteItem = {
5
- title: string;
6
- value: string;
7
- };
8
- export declare class FormFieldInspireThemeComponent {
9
- private translateService;
10
- themes: any[];
11
- set value(themes: string[]);
12
- valueChange: EventEmitter<string[]>;
13
- availableThemes: import("../../../../../../../../common/domain/src/lib/model/record").INSPIRE_theme[];
14
- displayWithFn: (item: AutocompleteItem) => string;
15
- autoCompleteAction: (query: string) => import("rxjs").Observable<{
16
- title: any;
17
- value: string;
18
- }[]>;
19
- constructor(translateService: TranslateService);
20
- handleItemSelection(item: AutocompleteItem): void;
21
- addTheme(theme: string): void;
22
- removeTheme(theme: string): void;
23
- getTranslatedTheme(theme: string): any;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldInspireThemeComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldInspireThemeComponent, "gn-ui-form-field-inspire-theme", never, { "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
26
- }
27
- export {};
28
- //# sourceMappingURL=form-field-inspire-theme.component.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"form-field-inspire-theme.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAAiB,MAAM,eAAe,CAAA;AAKtE,OAAO,EAAiB,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAGrE,KAAK,gBAAgB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAExD,qBAaa,8BAA8B;IAmC7B,OAAO,CAAC,gBAAgB;IAlCpC,MAAM,QAAK;IACX,IAAa,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,EAElC;IACS,WAAW,EAAE,YAAY,CAAC,MAAM,EAAE,CAAC,CAAqB;IAClE,eAAe,uFAAiB;IAEhC,aAAa,SAAU,gBAAgB,YAEtC;IAED,kBAAkB,UAAW,MAAM;;;SAqBlC;gBAEmB,gBAAgB,EAAE,gBAAgB;IAEtD,mBAAmB,CAAC,IAAI,EAAE,gBAAgB;IAI1C,QAAQ,CAAC,KAAK,EAAE,MAAM;IAQtB,WAAW,CAAC,KAAK,EAAE,MAAM;IAMzB,kBAAkB,CAAC,KAAK,EAAE,MAAM;yCAvDrB,8BAA8B;2CAA9B,8BAA8B;CA6D1C"}
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class FeatureNotificationsModule {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<FeatureNotificationsModule, never>;
4
- static ɵmod: i0.ɵɵNgModuleDeclaration<FeatureNotificationsModule, never, never, never>;
5
- static ɵinj: i0.ɵɵInjectorDeclaration<FeatureNotificationsModule>;
6
- }
7
- //# sourceMappingURL=feature-notifications.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"feature-notifications.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/feature/notifications/src/lib/feature-notifications.module.ts"],"names":[],"mappings":";AAGA,qBAMa,0BAA0B;yCAA1B,0BAA0B;0CAA1B,0BAA0B;0CAA1B,0BAA0B;CAAG"}
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./facets-container/facets-container.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@ngx-translate/core";
5
- import * as i4 from "../../../../../ui/search/src/lib/facets/facets.module";
6
- export declare class FacetsModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FacetsModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<FacetsModule, [typeof i1.FacetsContainerComponent], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.FacetsModule], [typeof i1.FacetsContainerComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<FacetsModule>;
10
- }
11
- //# sourceMappingURL=facets.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"facets.module.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/feature/search/src/lib/facets/facets.module.ts"],"names":[],"mappings":";;;;;AAMA,qBAKa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./facet-item/facet-item.component";
3
- import * as i2 from "./facet-block/facet-block.component";
4
- import * as i3 from "./facet-list/facet-list.component";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "@ngx-translate/core";
8
- export declare class FacetsModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FacetsModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FacetsModule, [typeof i1.FacetItemComponent, typeof i2.FacetBlockComponent, typeof i3.FacetListComponent], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i6.TranslateModule], [typeof i3.FacetListComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FacetsModule>;
12
- }
13
- //# sourceMappingURL=facets.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"facets.module.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/search/src/lib/facets/facets.module.ts"],"names":[],"mappings":";;;;;;;AAQA,qBAKa,YAAY;yCAAZ,YAAY;0CAAZ,YAAY;0CAAZ,YAAY;CAAG"}
@@ -1,36 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./record-preview/record-preview.component";
3
- import * as i2 from "./record-preview-list/record-preview-list.component";
4
- import * as i3 from "./record-preview-card/record-preview-card.component";
5
- import * as i4 from "./record-preview-text/record-preview-text.component";
6
- import * as i5 from "./record-preview-title/record-preview-title.component";
7
- import * as i6 from "./record-metric/record-metric.component";
8
- import * as i7 from "./results-list/results-list.component";
9
- import * as i8 from "./results-hits-number/results-hits-number.component";
10
- import * as i9 from "./results-hits-search-kind/results-hits-search-kind.component";
11
- import * as i10 from "./results-list-item/results-list-item.component";
12
- import * as i11 from "./record-preview-feed/record-preview-feed.component";
13
- import * as i12 from "./record-preview-row/record-preview-row.component";
14
- import * as i13 from "@angular/common";
15
- import * as i14 from "@ngx-translate/core";
16
- import * as i15 from "ngx-dropzone";
17
- import * as i16 from "./facets/facets.module";
18
- import * as i17 from "@angular/forms";
19
- import * as i18 from "ngx-chips";
20
- import * as i19 from "@angular/material/checkbox";
21
- import * as i20 from "@angular/router";
22
- import * as i21 from "../../../layout/src/lib/interactive-table/interactive-table.component";
23
- import * as i22 from "@ng-icons/core";
24
- import * as i23 from "../../../elements/src/lib/kind-badge/kind-badge.component";
25
- import * as i24 from "../../../elements/src/lib/metadata-quality/metadata-quality.component";
26
- import * as i25 from "../../../inputs/src/lib/inline-filter/inline-filter.component";
27
- import * as i26 from "../../../elements/src/lib/thumbnail/thumbnail.component";
28
- import * as i27 from "../../../elements/src/lib/markdown-parser/markdown-parser.component";
29
- import * as i28 from "../../../elements/src/lib/internal-link-card/internal-link-card.component";
30
- import * as i29 from "./results-table/action-menu/action-menu.component";
31
- export declare class UiSearchModule {
32
- static ɵfac: i0.ɵɵFactoryDeclaration<UiSearchModule, never>;
33
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiSearchModule, [typeof i1.RecordPreviewComponent, typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i8.ResultsHitsNumberComponent, typeof i9.ResultsHitsSearchKindComponent, typeof i10.ResultsListItemComponent, typeof i11.RecordPreviewFeedComponent, typeof i12.RecordPreviewRowComponent], [typeof i13.CommonModule, typeof i14.TranslateDirective, typeof i14.TranslatePipe, typeof i15.NgxDropzoneModule, typeof i16.FacetsModule, typeof i17.FormsModule, typeof i17.ReactiveFormsModule, typeof i18.TagInputModule, typeof i19.MatCheckboxModule, typeof i20.RouterLink, typeof i21.InteractiveTableComponent, typeof i22.NgIconsModule, typeof i23.KindBadgeComponent, typeof i24.MetadataQualityComponent, typeof i25.InlineFilterComponent, typeof i26.ThumbnailComponent, typeof i27.MarkdownParserComponent, typeof i28.InternalLinkCardComponent, typeof i29.ActionMenuComponent], [typeof i2.RecordPreviewListComponent, typeof i3.RecordPreviewCardComponent, typeof i4.RecordPreviewTextComponent, typeof i5.RecordPreviewTitleComponent, typeof i6.RecordMetricComponent, typeof i7.ResultsListComponent, typeof i16.FacetsModule, typeof i1.RecordPreviewComponent, typeof i8.ResultsHitsNumberComponent, typeof i9.ResultsHitsSearchKindComponent, typeof i11.RecordPreviewFeedComponent, typeof i12.RecordPreviewRowComponent, typeof i29.ActionMenuComponent]>;
34
- static ɵinj: i0.ɵɵInjectorDeclaration<UiSearchModule>;
35
- }
36
- //# sourceMappingURL=ui-search.module.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ui-search.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/search/src/lib/ui-search.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2CA,qBAgEa,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
@@ -1 +0,0 @@
1
- export * from './lib/feature-auth.module'
@@ -1,12 +0,0 @@
1
- import { NgModule } from '@angular/core'
2
- import { CommonModule } from '@angular/common'
3
- import {
4
- AvatarServiceInterface,
5
- GravatarService,
6
- } from '../../../../../libs/api/repository/src'
7
-
8
- @NgModule({
9
- imports: [CommonModule],
10
- providers: [{ provide: AvatarServiceInterface, useClass: GravatarService }],
11
- })
12
- export class FeatureAuthModule {}
@@ -1,71 +0,0 @@
1
- import { InjectionToken, NgModule } from '@angular/core'
2
- import { SiteTitleComponent } from './site-title/site-title.component'
3
- import {
4
- CatalogTitleComponent,
5
- OrganisationsFilterComponent,
6
- } from '../../../../../libs/ui/catalog/src'
7
- import {
8
- GroupsApiService,
9
- SearchApiService,
10
- } from '../../../../../libs/data-access/gn4/src'
11
- import { CommonModule } from '@angular/common'
12
- import { SourceLabelComponent } from './source-label/source-label.component'
13
- import { TranslateService } from '@ngx-translate/core'
14
- import { OrganizationsServiceInterface } from '../../../../../libs/common/domain/src/lib/organizations.service.interface'
15
- import {
16
- ElasticsearchService,
17
- ORGANIZATIONS_STRATEGY,
18
- OrganizationsFromGroupsService,
19
- OrganizationsFromMetadataService,
20
- OrganizationsStrategy,
21
- } from '../../../../../libs/api/repository/src'
22
- import { PlatformServiceInterface } from '../../../../../libs/common/domain/src/lib/platform.service.interface'
23
-
24
- // expects the replacement key ${name}
25
- export const ORGANIZATION_URL_TOKEN = new InjectionToken<string>(
26
- 'organization-url-token'
27
- )
28
-
29
- const organizationsServiceFactory = (
30
- strategy: OrganizationsStrategy,
31
- esService: ElasticsearchService,
32
- searchApiService: SearchApiService,
33
- groupsApiService: GroupsApiService,
34
- translateService: TranslateService,
35
- platformService: PlatformServiceInterface
36
- ) =>
37
- strategy === 'groups'
38
- ? new OrganizationsFromGroupsService(
39
- esService,
40
- searchApiService,
41
- groupsApiService,
42
- translateService
43
- )
44
- : new OrganizationsFromMetadataService(
45
- esService,
46
- searchApiService,
47
- groupsApiService,
48
- platformService,
49
- translateService
50
- )
51
-
52
- @NgModule({
53
- declarations: [SiteTitleComponent, SourceLabelComponent],
54
- imports: [CommonModule, OrganisationsFilterComponent, CatalogTitleComponent],
55
- exports: [SiteTitleComponent, SourceLabelComponent],
56
- providers: [
57
- {
58
- provide: OrganizationsServiceInterface,
59
- useFactory: organizationsServiceFactory,
60
- deps: [
61
- ORGANIZATIONS_STRATEGY,
62
- ElasticsearchService,
63
- SearchApiService,
64
- GroupsApiService,
65
- TranslateService,
66
- PlatformServiceInterface,
67
- ],
68
- },
69
- ],
70
- })
71
- export class FeatureCatalogModule {}
@@ -1,20 +0,0 @@
1
- <div class="flex flex-col gap-3">
2
- <div class="flex flex-col gap-4">
3
- <gn-ui-autocomplete
4
- [placeholder]="'editor.record.form.inspire.placeholder' | translate"
5
- [displayWithFn]="displayWithFn"
6
- [action]="autoCompleteAction"
7
- (itemSelected)="handleItemSelection($event)"
8
- [minCharacterCount]="1"
9
- [clearOnSelection]="true"
10
- ></gn-ui-autocomplete>
11
- <div class="flex gap-2 flex-wrap">
12
- <gn-ui-badge
13
- *ngFor="let theme of themes"
14
- [removable]="true"
15
- (badgeRemoveClicked)="removeTheme(theme)"
16
- >{{ getTranslatedTheme(theme) }}
17
- </gn-ui-badge>
18
- </div>
19
- </div>
20
- </div>
@@ -1,85 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core'
2
- import { CommonModule } from '@angular/common'
3
- import { AutocompleteComponent, BadgeComponent } from '../../../../../../../../../libs/ui/inputs/src'
4
- import { NgIconComponent } from '@ng-icons/core'
5
- import { INSPIRE_THEMES } from '../../../../fields.config'
6
- import { TranslatePipe, TranslateService } from '@ngx-translate/core'
7
- import { of } from 'rxjs'
8
-
9
- type AutocompleteItem = { title: string; value: string }
10
-
11
- @Component({
12
- selector: 'gn-ui-form-field-inspire-theme',
13
- standalone: true,
14
- imports: [
15
- CommonModule,
16
- AutocompleteComponent,
17
- NgIconComponent,
18
- BadgeComponent,
19
- TranslatePipe,
20
- ],
21
- templateUrl: './form-field-inspire-theme.component.html',
22
- styleUrl: './form-field-inspire-theme.component.css',
23
- })
24
- export class FormFieldInspireThemeComponent {
25
- themes = []
26
- @Input() set value(themes: string[]) {
27
- this.themes = themes
28
- }
29
- @Output() valueChange: EventEmitter<string[]> = new EventEmitter()
30
- availableThemes = INSPIRE_THEMES
31
-
32
- displayWithFn = (item: AutocompleteItem) => {
33
- return item?.title ? `${item.title}` : ''
34
- }
35
-
36
- autoCompleteAction = (query: string) => {
37
- return of(
38
- this.availableThemes
39
- .filter((theme) =>
40
- theme.value.toLowerCase().includes(query.toLowerCase())
41
- )
42
- .sort((a, b) => {
43
- const aStarts = a.value.startsWith(query)
44
- const bStarts = b.value.startsWith(query)
45
-
46
- if (aStarts && !bStarts) return -1
47
- if (!aStarts && bStarts) return 1
48
- return 0
49
- })
50
- .map((theme) => {
51
- return {
52
- title: this.translateService.instant(theme.label),
53
- value: theme.value,
54
- }
55
- })
56
- )
57
- }
58
-
59
- constructor(private translateService: TranslateService) {}
60
-
61
- handleItemSelection(item: AutocompleteItem) {
62
- this.addTheme(item.value)
63
- }
64
-
65
- addTheme(theme: string) {
66
- const duplicatedTheme = this.themes.find((t) => t === theme)
67
- if (!duplicatedTheme) {
68
- this.themes = [...this.themes, theme]
69
- this.valueChange.emit(this.themes)
70
- }
71
- }
72
-
73
- removeTheme(theme: string) {
74
- console.log(this.themes)
75
- this.themes = this.themes.filter((t) => t !== theme)
76
- this.valueChange.emit(this.themes)
77
- }
78
-
79
- getTranslatedTheme(theme: string) {
80
- const themeKey = this.availableThemes.find(
81
- (avail) => avail.value === theme
82
- )?.label
83
- return themeKey ? this.translateService.instant(themeKey) : ''
84
- }
85
- }
@@ -1,10 +0,0 @@
1
- import { NotificationsService } from './notifications.service'
2
- import { NgModule } from '@angular/core'
3
-
4
- @NgModule({
5
- declarations: [],
6
- exports: [],
7
- imports: [],
8
- providers: [NotificationsService],
9
- })
10
- export class FeatureNotificationsModule {}
@@ -1,12 +0,0 @@
1
- import { CommonModule } from '@angular/common'
2
- import { NgModule } from '@angular/core'
3
- import { UiFacetsModule } from '../../../../../../libs/ui/search/src'
4
- import { TranslateModule } from '@ngx-translate/core'
5
- import { FacetsContainerComponent } from './facets-container/facets-container.component'
6
-
7
- @NgModule({
8
- declarations: [FacetsContainerComponent],
9
- imports: [CommonModule, TranslateModule.forChild(), UiFacetsModule],
10
- exports: [FacetsContainerComponent],
11
- })
12
- export class FacetsModule {}
@@ -1,14 +0,0 @@
1
- import { CommonModule } from '@angular/common'
2
- import { NgModule } from '@angular/core'
3
- import { FormsModule } from '@angular/forms'
4
- import { TranslateModule } from '@ngx-translate/core'
5
- import { FacetBlockComponent } from './facet-block/facet-block.component'
6
- import { FacetItemComponent } from './facet-item/facet-item.component'
7
- import { FacetListComponent } from './facet-list/facet-list.component'
8
-
9
- @NgModule({
10
- declarations: [FacetItemComponent, FacetBlockComponent, FacetListComponent],
11
- imports: [CommonModule, FormsModule, TranslateModule.forChild()],
12
- exports: [FacetListComponent],
13
- })
14
- export class FacetsModule {}
@@ -1,108 +0,0 @@
1
- import { NgModule } from '@angular/core'
2
- import { RouterLink } from '@angular/router'
3
- import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
4
- import { NgxDropzoneModule } from 'ngx-dropzone'
5
- import { FacetsModule } from './facets/facets.module'
6
- import { RecordMetricComponent } from './record-metric/record-metric.component'
7
- import { RecordPreviewCardComponent } from './record-preview-card/record-preview-card.component'
8
- import { RecordPreviewListComponent } from './record-preview-list/record-preview-list.component'
9
- import { RecordPreviewRowComponent } from './record-preview-row/record-preview-row.component'
10
- import { RecordPreviewTextComponent } from './record-preview-text/record-preview-text.component'
11
- import { RecordPreviewTitleComponent } from './record-preview-title/record-preview-title.component'
12
- import { ResultsHitsNumberComponent } from './results-hits-number/results-hits-number.component'
13
- import { ResultsHitsSearchKindComponent } from './results-hits-search-kind/results-hits-search-kind.component'
14
- import {
15
- DEFAULT_RESULTS_LAYOUT_CONFIG,
16
- RESULTS_LAYOUT_CONFIG,
17
- } from './results-list/results-layout.config'
18
- import { ResultsListComponent } from './results-list/results-list.component'
19
- import { RecordPreviewComponent } from './record-preview/record-preview.component'
20
- import { TagInputModule } from 'ngx-chips'
21
- import { FormsModule, ReactiveFormsModule } from '@angular/forms'
22
- import { ResultsListItemComponent } from './results-list-item/results-list-item.component'
23
- import {
24
- InternalLinkCardComponent,
25
- KindBadgeComponent,
26
- MarkdownParserComponent,
27
- MetadataQualityComponent,
28
- ThumbnailComponent,
29
- } from '../../../../../libs/ui/elements/src'
30
- import { RecordPreviewFeedComponent } from './record-preview-feed/record-preview-feed.component'
31
- import { CommonModule } from '@angular/common'
32
- import { MatCheckboxModule } from '@angular/material/checkbox'
33
- import { InteractiveTableComponent } from '../../../../../libs/ui/layout/src'
34
- import { NgIconsModule, provideNgIconsConfig } from '@ng-icons/core'
35
- import {
36
- matCloudDownloadOutline,
37
- matHomeWorkOutline,
38
- matMapOutline,
39
- } from '@ng-icons/material-icons/outline'
40
- import { matFace } from '@ng-icons/material-icons/baseline'
41
- import { InlineFilterComponent } from '../../../../../libs/ui/inputs/src'
42
- import { ActionMenuComponent } from './results-table/action-menu/action-menu.component'
43
-
44
- @NgModule({
45
- declarations: [
46
- RecordPreviewComponent,
47
- RecordPreviewListComponent,
48
- RecordPreviewCardComponent,
49
- RecordPreviewTextComponent,
50
- RecordPreviewTitleComponent,
51
- RecordMetricComponent,
52
- ResultsListComponent,
53
- ResultsHitsNumberComponent,
54
- ResultsHitsSearchKindComponent,
55
- ResultsListItemComponent,
56
- RecordPreviewFeedComponent,
57
- RecordPreviewRowComponent,
58
- ],
59
- imports: [
60
- CommonModule,
61
- TranslateDirective,
62
- TranslatePipe,
63
- NgxDropzoneModule,
64
- FacetsModule,
65
- FormsModule,
66
- ReactiveFormsModule,
67
- TagInputModule,
68
- MatCheckboxModule,
69
- RouterLink,
70
- InteractiveTableComponent,
71
- // FIXME: these imports are required by non-standalone components and should be removed once all components have been made standalone
72
- NgIconsModule.withIcons({
73
- matMapOutline,
74
- matCloudDownloadOutline,
75
- matFace,
76
- matHomeWorkOutline,
77
- }),
78
- KindBadgeComponent,
79
- MetadataQualityComponent,
80
- InlineFilterComponent,
81
- ThumbnailComponent,
82
- MarkdownParserComponent,
83
- InternalLinkCardComponent,
84
- ActionMenuComponent,
85
- ],
86
- exports: [
87
- RecordPreviewListComponent,
88
- RecordPreviewCardComponent,
89
- RecordPreviewTextComponent,
90
- RecordPreviewTitleComponent,
91
- RecordMetricComponent,
92
- ResultsListComponent,
93
- FacetsModule,
94
- RecordPreviewComponent,
95
- ResultsHitsNumberComponent,
96
- ResultsHitsSearchKindComponent,
97
- RecordPreviewFeedComponent,
98
- RecordPreviewRowComponent,
99
- ActionMenuComponent,
100
- ],
101
- providers: [
102
- provideNgIconsConfig({
103
- size: '1.5em',
104
- }),
105
- { provide: RESULTS_LAYOUT_CONFIG, useValue: DEFAULT_RESULTS_LAYOUT_CONFIG },
106
- ],
107
- })
108
- export class UiSearchModule {}