geonetwork-ui 2.6.0-dev.10c659821 → 2.6.0-dev.14c46265d

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 (586) hide show
  1. package/README.md +2 -3
  2. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +11 -2
  3. package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +3 -3
  4. package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +14 -11
  5. package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +3 -3
  6. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +4 -8
  7. package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +3 -6
  8. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +14 -6
  9. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
  10. package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
  11. package/esm2022/libs/api/metadata-converter/src/lib/translate-utils.mjs +17 -0
  12. package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +4 -4
  13. package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +17 -15
  14. package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +3 -3
  15. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.mjs +8 -8
  16. package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +14 -11
  17. package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +17 -13
  18. package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
  19. package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +7 -31
  20. package/esm2022/libs/feature/catalog/src/lib/sources/sources.service.mjs +9 -8
  21. package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +4 -4
  22. package/esm2022/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.mjs +4 -5
  23. package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +5 -3
  24. package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +4 -4
  25. package/esm2022/libs/feature/editor/src/index.mjs +1 -4
  26. package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
  27. package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +13 -7
  28. package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
  29. package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +5 -1
  30. package/esm2022/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.mjs +5 -7
  31. package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +8 -13
  32. package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +5 -6
  33. package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +11 -9
  34. package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +4 -13
  35. package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +5 -5
  36. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.mjs +5 -8
  37. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.mjs +4 -5
  38. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +6 -10
  39. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -14
  40. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +4 -15
  41. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +4 -4
  42. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +4 -4
  43. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +4 -4
  44. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +4 -4
  45. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +4 -4
  46. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +4 -4
  47. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -17
  48. package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +4 -5
  49. package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +12 -30
  50. package/esm2022/libs/feature/editor/src/lib/models/index.mjs +1 -3
  51. package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +5 -6
  52. package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +11 -8
  53. package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +11 -8
  54. package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +11 -6
  55. package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +10 -5
  56. package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +3 -36
  57. package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +5 -11
  58. package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +6 -6
  59. package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +5 -5
  60. package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +6 -7
  61. package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +4 -5
  62. package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +6 -7
  63. package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +4 -4
  64. package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +8 -22
  65. package/esm2022/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.mjs +5 -5
  66. package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +15 -7
  67. package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +16 -8
  68. package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +9 -6
  69. package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +24 -27
  70. package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +3 -3
  71. package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +6 -6
  72. package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +8 -5
  73. package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +6 -6
  74. package/esm2022/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.mjs +5 -7
  75. package/esm2022/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.mjs +4 -4
  76. package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +5 -4
  77. package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +4 -5
  78. package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +4 -5
  79. package/esm2022/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.mjs +4 -5
  80. package/esm2022/libs/ui/dataviz/src/index.mjs +1 -2
  81. package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +4 -4
  82. package/esm2022/libs/ui/dataviz/src/lib/figure/figure.component.mjs +5 -5
  83. package/esm2022/libs/ui/elements/src/index.mjs +2 -3
  84. package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +6 -6
  85. package/esm2022/libs/ui/elements/src/lib/application-banner/application-banner.component.mjs +5 -5
  86. package/esm2022/libs/ui/elements/src/lib/avatar/avatar.component.mjs +4 -3
  87. package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +5 -3
  88. package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +4 -5
  89. package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +4 -4
  90. package/esm2022/libs/ui/elements/src/lib/error/error.component.mjs +4 -5
  91. package/esm2022/libs/ui/elements/src/lib/external-link-card/external-link-card.component.mjs +59 -0
  92. package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +5 -6
  93. package/esm2022/libs/ui/elements/src/lib/image-input/image-input.component.mjs +4 -5
  94. package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +21 -54
  95. package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +23 -21
  96. package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +3 -6
  97. package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +4 -5
  98. package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +4 -5
  99. package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +6 -7
  100. package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +6 -8
  101. package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +4 -5
  102. package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +7 -5
  103. package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +6 -7
  104. package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +5 -4
  105. package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +4 -5
  106. package/esm2022/libs/ui/elements/src/lib/user-preview/user-preview.component.mjs +5 -4
  107. package/esm2022/libs/ui/inputs/src/index.mjs +1 -2
  108. package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +10 -13
  109. package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +4 -3
  110. package/esm2022/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.mjs +7 -6
  111. package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +29 -7
  112. package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +4 -5
  113. package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +5 -7
  114. package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +4 -3
  115. package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +12 -7
  116. package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +7 -3
  117. package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +4 -5
  118. package/esm2022/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.mjs +3 -3
  119. package/esm2022/libs/ui/layout/src/index.mjs +1 -2
  120. package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +3 -2
  121. package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +18 -8
  122. package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +4 -5
  123. package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +4 -5
  124. package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +4 -5
  125. package/esm2022/libs/ui/layout/src/lib/pagination/pagination.component.mjs +4 -5
  126. package/esm2022/libs/ui/layout/src/lib/sticky-header/sticky-header.component.mjs +4 -3
  127. package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +5 -7
  128. package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +4 -5
  129. package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +6 -6
  130. package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +16 -5
  131. package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +3 -3
  132. package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +5 -7
  133. package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +15 -12
  134. package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +23 -24
  135. package/esm2022/libs/ui/widgets/src/index.mjs +1 -2
  136. package/esm2022/libs/ui/widgets/src/lib/color-scale/color-scale.component.mjs +3 -3
  137. package/esm2022/libs/util/app-config/src/lib/app-config.mjs +3 -3
  138. package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
  139. package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
  140. package/esm2022/libs/util/i18n/src/index.mjs +2 -3
  141. package/esm2022/libs/util/i18n/src/lib/embedded.translate.loader.mjs +3 -2
  142. package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +36 -69
  143. package/esm2022/libs/util/i18n/src/lib/i18n.interceptor.mjs +10 -9
  144. package/esm2022/libs/util/i18n/src/lib/i18n.providers.mjs +41 -0
  145. package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +40 -2
  146. package/esm2022/libs/util/shared/src/index.mjs +2 -2
  147. package/esm2022/libs/util/shared/src/lib/image-fallback.directive.mjs +3 -2
  148. package/esm2022/libs/util/shared/src/lib/record.util.mjs +56 -0
  149. package/esm2022/translations/de.json +1 -16
  150. package/esm2022/translations/en.json +2 -17
  151. package/esm2022/translations/es.json +1 -16
  152. package/esm2022/translations/fr.json +6 -21
  153. package/esm2022/translations/it.json +1 -16
  154. package/esm2022/translations/nl.json +1 -16
  155. package/esm2022/translations/pt.json +1 -16
  156. package/esm2022/translations/sk.json +603 -0
  157. package/fesm2022/geonetwork-ui.mjs +10494 -10698
  158. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  159. package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -1
  160. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +4 -4
  161. package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
  162. package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
  163. package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
  164. package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
  165. package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
  166. package/libs/api/metadata-converter/src/lib/translate-utils.d.ts +2 -0
  167. package/libs/api/metadata-converter/src/lib/translate-utils.d.ts.map +1 -0
  168. package/libs/api/repository/src/lib/gn4/auth/auth.service.d.ts.map +1 -1
  169. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +8 -6
  170. package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
  171. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +2 -2
  172. package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
  173. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts +1 -0
  174. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.d.ts.map +1 -1
  175. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts +4 -4
  176. package/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.d.ts.map +1 -1
  177. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +4 -3
  178. package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
  179. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -2
  180. package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
  181. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +4 -8
  182. package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
  183. package/libs/feature/catalog/src/lib/sources/sources.service.d.ts +3 -3
  184. package/libs/feature/catalog/src/lib/sources/sources.service.d.ts.map +1 -1
  185. package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
  186. package/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.d.ts.map +1 -1
  187. package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
  188. package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
  189. package/libs/feature/editor/src/index.d.ts +0 -3
  190. package/libs/feature/editor/src/index.d.ts.map +1 -1
  191. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +8 -1
  192. package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
  193. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +10 -12
  194. package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
  195. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +2 -1
  196. package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
  197. package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
  198. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +1 -1
  199. package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts.map +1 -1
  200. package/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.d.ts.map +1 -1
  201. package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
  202. package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -1
  203. package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -1
  204. package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
  205. package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
  206. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.d.ts.map +1 -1
  207. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -1
  208. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
  209. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
  210. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
  211. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -1
  212. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
  213. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
  214. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
  215. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
  216. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
  217. package/libs/feature/editor/src/lib/feature-editor.module.d.ts +10 -17
  218. package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
  219. package/libs/feature/editor/src/lib/models/index.d.ts +0 -2
  220. package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
  221. package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
  222. package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
  223. package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
  224. package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
  225. package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
  226. package/libs/feature/map/src/lib/feature-map.module.d.ts +2 -11
  227. package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
  228. package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
  229. package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
  230. package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
  231. package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
  232. package/libs/feature/record/src/lib/feature-record.module.d.ts +8 -12
  233. package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
  234. package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts.map +1 -1
  235. package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
  236. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -5
  237. package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
  238. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +2 -1
  239. package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
  240. package/libs/feature/search/src/lib/feature-search.module.d.ts +24 -24
  241. package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
  242. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +1 -1
  243. package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
  244. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +2 -1
  245. package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -1
  246. package/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.d.ts +1 -2
  247. package/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.d.ts.map +1 -1
  248. package/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.d.ts.map +1 -1
  249. package/libs/feature/search/src/lib/utils/service/fields.d.ts +1 -2
  250. package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
  251. package/libs/ui/dataviz/src/index.d.ts +0 -1
  252. package/libs/ui/dataviz/src/index.d.ts.map +1 -1
  253. package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
  254. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts +1 -1
  255. package/libs/ui/dataviz/src/lib/figure/figure.component.d.ts.map +1 -1
  256. package/libs/ui/elements/src/index.d.ts +1 -2
  257. package/libs/ui/elements/src/index.d.ts.map +1 -1
  258. package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
  259. package/libs/ui/elements/src/lib/avatar/avatar.component.d.ts +1 -1
  260. package/libs/ui/elements/src/lib/avatar/avatar.component.d.ts.map +1 -1
  261. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +2 -0
  262. package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -1
  263. package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
  264. package/libs/ui/elements/src/lib/{link-card/link-card.component.d.ts → external-link-card/external-link-card.component.d.ts} +4 -4
  265. package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts.map +1 -0
  266. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +3 -9
  267. package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
  268. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +2 -1
  269. package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
  270. package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -1
  271. package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
  272. package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
  273. package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
  274. package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -1
  275. package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
  276. package/libs/ui/elements/src/lib/user-preview/user-preview.component.d.ts +1 -1
  277. package/libs/ui/elements/src/lib/user-preview/user-preview.component.d.ts.map +1 -1
  278. package/libs/ui/inputs/src/index.d.ts +0 -1
  279. package/libs/ui/inputs/src/index.d.ts.map +1 -1
  280. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +1 -2
  281. package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
  282. package/libs/ui/inputs/src/lib/checkbox/checkbox.component.d.ts +1 -1
  283. package/libs/ui/inputs/src/lib/checkbox/checkbox.component.d.ts.map +1 -1
  284. package/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.d.ts +1 -1
  285. package/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.d.ts.map +1 -1
  286. package/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.d.ts +1 -1
  287. package/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.d.ts.map +1 -1
  288. package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -1
  289. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +1 -1
  290. package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -1
  291. package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -1
  292. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts +2 -1
  293. package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
  294. package/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.d.ts +1 -1
  295. package/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.d.ts.map +1 -1
  296. package/libs/ui/layout/src/index.d.ts +0 -1
  297. package/libs/ui/layout/src/index.d.ts.map +1 -1
  298. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +1 -1
  299. package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
  300. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +2 -1
  301. package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
  302. package/libs/ui/layout/src/lib/sticky-header/sticky-header.component.d.ts +1 -1
  303. package/libs/ui/layout/src/lib/sticky-header/sticky-header.component.d.ts.map +1 -1
  304. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +1 -1
  305. package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -1
  306. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts +2 -0
  307. package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts.map +1 -1
  308. package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
  309. package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
  310. package/libs/ui/search/src/lib/ui-search.module.d.ts +11 -11
  311. package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
  312. package/libs/ui/widgets/src/index.d.ts +0 -1
  313. package/libs/ui/widgets/src/index.d.ts.map +1 -1
  314. package/libs/ui/widgets/src/lib/color-scale/color-scale.component.d.ts +1 -1
  315. package/libs/ui/widgets/src/lib/color-scale/color-scale.component.d.ts.map +1 -1
  316. package/libs/util/app-config/src/lib/app-config.d.ts +0 -1
  317. package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
  318. package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
  319. package/libs/util/app-config/src/lib/model.d.ts +1 -0
  320. package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
  321. package/libs/util/i18n/src/index.d.ts +1 -2
  322. package/libs/util/i18n/src/index.d.ts.map +1 -1
  323. package/libs/util/i18n/src/lib/embedded.translate.loader.d.ts +1 -1
  324. package/libs/util/i18n/src/lib/embedded.translate.loader.d.ts.map +1 -1
  325. package/libs/util/i18n/src/lib/i18n.constants.d.ts +6 -16
  326. package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
  327. package/libs/util/i18n/src/lib/i18n.interceptor.d.ts +5 -5
  328. package/libs/util/i18n/src/lib/i18n.interceptor.d.ts.map +1 -1
  329. package/libs/util/i18n/src/lib/i18n.providers.d.ts +4 -0
  330. package/libs/util/i18n/src/lib/i18n.providers.d.ts.map +1 -0
  331. package/libs/util/i18n/src/lib/language-codes.d.ts +3 -29
  332. package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
  333. package/libs/util/shared/src/index.d.ts +1 -1
  334. package/libs/util/shared/src/index.d.ts.map +1 -1
  335. package/libs/util/shared/src/lib/image-fallback.directive.d.ts +1 -1
  336. package/libs/util/shared/src/lib/image-fallback.directive.d.ts.map +1 -1
  337. package/libs/util/shared/src/lib/record.util.d.ts +3 -0
  338. package/libs/util/shared/src/lib/record.util.d.ts.map +1 -0
  339. package/package.json +3 -3
  340. package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +10 -1
  341. package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +2 -2
  342. package/src/libs/api/metadata-converter/src/lib/fixtures/metadata-for-i18n.records.ts +4196 -0
  343. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +12 -6
  344. package/src/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.ts +4 -4
  345. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +3 -7
  346. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +2 -6
  347. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +14 -8
  348. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +3 -3
  349. package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +5 -7
  350. package/src/libs/api/metadata-converter/src/lib/translate-utils.ts +17 -0
  351. package/src/libs/api/repository/src/lib/gn4/auth/auth.service.ts +3 -6
  352. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +13 -5
  353. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +4 -3
  354. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-groups.service.ts +8 -7
  355. package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +13 -6
  356. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +13 -20
  357. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -2
  358. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +52 -0
  359. package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +4 -17
  360. package/src/libs/feature/catalog/src/lib/sources/sources.service.ts +7 -3
  361. package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +2 -2
  362. package/src/libs/feature/dataviz/src/lib/figure/figure-container/figure-container.component.ts +2 -2
  363. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +4 -2
  364. package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +2 -2
  365. package/src/libs/feature/editor/src/index.ts +0 -3
  366. package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +9 -1
  367. package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +23 -12
  368. package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +13 -1
  369. package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +9 -1
  370. package/src/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts +3 -4
  371. package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +5 -16
  372. package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +7 -5
  373. package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +16 -10
  374. package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +2 -10
  375. package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +3 -2
  376. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -4
  377. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints-shortcuts/form-field-constraints-shortcuts.component.ts +2 -2
  378. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +4 -11
  379. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +6 -9
  380. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +2 -17
  381. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +2 -2
  382. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +2 -2
  383. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +2 -2
  384. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +2 -2
  385. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
  386. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +2 -2
  387. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +2 -2
  388. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +2 -15
  389. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +2 -2
  390. package/src/libs/feature/editor/src/lib/feature-editor.module.ts +4 -17
  391. package/src/libs/feature/editor/src/lib/models/index.ts +0 -2
  392. package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +2 -1
  393. package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +8 -3
  394. package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -3
  395. package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +8 -2
  396. package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +8 -2
  397. package/src/libs/feature/map/src/lib/feature-map.module.ts +0 -17
  398. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +3 -8
  399. package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +3 -2
  400. package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +5 -4
  401. package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -2
  402. package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +2 -2
  403. package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +2 -2
  404. package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
  405. package/src/libs/feature/record/src/lib/feature-record.module.ts +4 -13
  406. package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.ts +4 -3
  407. package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +10 -4
  408. package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +17 -4
  409. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +1 -0
  410. package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +4 -3
  411. package/src/libs/feature/search/src/lib/feature-search.module.ts +13 -18
  412. package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +4 -0
  413. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +1 -0
  414. package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +2 -1
  415. package/src/libs/feature/search/src/lib/search-filters-summary/search-filters-summary.component.ts +10 -4
  416. package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.ts +2 -2
  417. package/src/libs/feature/search/src/lib/utils/service/fields.ts +4 -3
  418. package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +2 -2
  419. package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +2 -2
  420. package/src/libs/ui/catalog/src/lib/organisations-result/organisations-result.component.ts +2 -2
  421. package/src/libs/ui/dataviz/src/index.ts +0 -1
  422. package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +2 -2
  423. package/src/libs/ui/dataviz/src/lib/figure/figure.component.html +0 -1
  424. package/src/libs/ui/dataviz/src/lib/figure/figure.component.ts +4 -0
  425. package/src/libs/ui/elements/src/index.ts +1 -2
  426. package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +3 -2
  427. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.html +6 -6
  428. package/src/libs/ui/elements/src/lib/application-banner/application-banner.component.ts +2 -2
  429. package/src/libs/ui/elements/src/lib/avatar/avatar.component.ts +3 -0
  430. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +6 -2
  431. package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +5 -1
  432. package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
  433. package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +2 -5
  434. package/src/libs/ui/elements/src/lib/error/error.component.ts +2 -2
  435. package/src/libs/ui/elements/src/lib/{link-card/link-card.component.ts → external-link-card/external-link-card.component.ts} +6 -6
  436. package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +3 -3
  437. package/src/libs/ui/elements/src/lib/image-input/image-input.component.ts +2 -2
  438. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +66 -62
  439. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.scss +115 -0
  440. package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +29 -62
  441. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +6 -2
  442. package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +17 -15
  443. package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -4
  444. package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.ts +2 -2
  445. package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.ts +2 -2
  446. package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +4 -7
  447. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +20 -22
  448. package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +3 -4
  449. package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +2 -2
  450. package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +4 -2
  451. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +4 -4
  452. package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +7 -2
  453. package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +2 -2
  454. package/src/libs/ui/elements/src/lib/user-preview/user-preview.component.ts +4 -0
  455. package/src/libs/ui/inputs/src/index.ts +0 -1
  456. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +2 -2
  457. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +6 -9
  458. package/src/libs/ui/inputs/src/lib/checkbox/checkbox.component.ts +3 -0
  459. package/src/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.html +1 -1
  460. package/src/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.ts +4 -0
  461. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +27 -0
  462. package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +2 -2
  463. package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +3 -4
  464. package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +3 -0
  465. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +9 -3
  466. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css +0 -1
  467. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +5 -1
  468. package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +3 -1
  469. package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +2 -2
  470. package/src/libs/ui/inputs/src/lib/viewport-intersector/viewport-intersector.component.ts +1 -0
  471. package/src/libs/ui/layout/src/index.ts +0 -1
  472. package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +1 -0
  473. package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +1 -2
  474. package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +15 -5
  475. package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +2 -2
  476. package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +2 -2
  477. package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.ts +2 -2
  478. package/src/libs/ui/layout/src/lib/pagination/pagination.component.ts +2 -2
  479. package/src/libs/ui/layout/src/lib/sticky-header/sticky-header.component.ts +3 -0
  480. package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +3 -10
  481. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +2 -2
  482. package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.html +4 -1
  483. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +1 -1
  484. package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.ts +14 -1
  485. package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +3 -4
  486. package/src/libs/ui/search/src/lib/results-table/results-table.component.html +0 -2
  487. package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +21 -8
  488. package/src/libs/ui/search/src/lib/ui-search.module.ts +12 -11
  489. package/src/libs/ui/widgets/src/index.ts +0 -1
  490. package/src/libs/ui/widgets/src/lib/color-scale/color-scale.component.ts +1 -0
  491. package/src/libs/util/app-config/src/lib/app-config.ts +3 -2
  492. package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
  493. package/src/libs/util/app-config/src/lib/model.ts +1 -0
  494. package/src/libs/util/i18n/src/index.ts +1 -2
  495. package/src/libs/util/i18n/src/lib/embedded.translate.loader.ts +4 -3
  496. package/src/libs/util/i18n/src/lib/i18n.constants.ts +39 -71
  497. package/src/libs/util/i18n/src/lib/i18n.interceptor.ts +11 -9
  498. package/src/libs/util/i18n/src/lib/i18n.providers.ts +68 -0
  499. package/src/libs/util/i18n/src/lib/language-codes.ts +44 -1
  500. package/src/libs/util/shared/src/index.ts +1 -1
  501. package/src/libs/util/shared/src/lib/image-fallback.directive.ts +1 -0
  502. package/src/libs/util/shared/src/lib/record.util.ts +114 -0
  503. package/tailwind.base.css +1 -1
  504. package/translations/de.json +1 -16
  505. package/translations/en.json +2 -17
  506. package/translations/es.json +1 -16
  507. package/translations/fr.json +6 -21
  508. package/translations/it.json +1 -16
  509. package/translations/nl.json +1 -16
  510. package/translations/pt.json +1 -16
  511. package/translations/sk.json +1 -16
  512. package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +0 -44
  513. package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +0 -75
  514. package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +0 -160
  515. package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +0 -53
  516. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.model.mjs +0 -2
  517. package/esm2022/libs/feature/editor/src/lib/models/wizard-field.type.mjs +0 -8
  518. package/esm2022/libs/feature/editor/src/lib/services/wizard.service.mjs +0 -87
  519. package/esm2022/libs/ui/dataviz/src/lib/ui-dataviz.module.mjs +0 -47
  520. package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +0 -59
  521. package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +0 -60
  522. package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +0 -134
  523. package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +0 -160
  524. package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +0 -23
  525. package/esm2022/libs/ui/widgets/src/lib/ui-widgets.module.mjs +0 -46
  526. package/esm2022/libs/util/i18n/src/lib/lang.service.mjs +0 -31
  527. package/esm2022/libs/util/i18n/src/lib/util-i18n.module.mjs +0 -37
  528. package/esm2022/libs/util/shared/src/lib/util-shared.module.mjs +0 -18
  529. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +0 -14
  530. package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts.map +0 -1
  531. package/libs/feature/editor/src/lib/components/wizard/wizard.component.d.ts +0 -31
  532. package/libs/feature/editor/src/lib/components/wizard/wizard.component.d.ts.map +0 -1
  533. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts +0 -43
  534. package/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.d.ts.map +0 -1
  535. package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts +0 -17
  536. package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts.map +0 -1
  537. package/libs/feature/editor/src/lib/models/wizard-field.model.d.ts +0 -10
  538. package/libs/feature/editor/src/lib/models/wizard-field.model.d.ts.map +0 -1
  539. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts +0 -7
  540. package/libs/feature/editor/src/lib/models/wizard-field.type.d.ts.map +0 -1
  541. package/libs/feature/editor/src/lib/services/wizard.service.d.ts +0 -33
  542. package/libs/feature/editor/src/lib/services/wizard.service.d.ts.map +0 -1
  543. package/libs/ui/dataviz/src/lib/ui-dataviz.module.d.ts +0 -11
  544. package/libs/ui/dataviz/src/lib/ui-dataviz.module.d.ts.map +0 -1
  545. package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +0 -14
  546. package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +0 -1
  547. package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +0 -1
  548. package/libs/ui/elements/src/lib/ui-elements.module.d.ts +0 -32
  549. package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +0 -1
  550. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +0 -35
  551. package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +0 -1
  552. package/libs/ui/layout/src/lib/ui-layout.module.d.ts +0 -12
  553. package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +0 -1
  554. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts +0 -15
  555. package/libs/ui/widgets/src/lib/ui-widgets.module.d.ts.map +0 -1
  556. package/libs/util/i18n/src/lib/lang.service.d.ts +0 -13
  557. package/libs/util/i18n/src/lib/lang.service.d.ts.map +0 -1
  558. package/libs/util/i18n/src/lib/util-i18n.module.d.ts +0 -12
  559. package/libs/util/i18n/src/lib/util-i18n.module.d.ts.map +0 -1
  560. package/libs/util/shared/src/lib/util-shared.module.d.ts +0 -9
  561. package/libs/util/shared/src/lib/util-shared.module.d.ts.map +0 -1
  562. package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.css +0 -5
  563. package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +0 -22
  564. package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.ts +0 -93
  565. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.css +0 -31
  566. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +0 -62
  567. package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.ts +0 -206
  568. package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.css +0 -3
  569. package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.html +0 -21
  570. package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.ts +0 -58
  571. package/src/libs/feature/editor/src/lib/models/wizard-field.model.ts +0 -10
  572. package/src/libs/feature/editor/src/lib/models/wizard-field.type.ts +0 -6
  573. package/src/libs/feature/editor/src/lib/services/wizard.service.ts +0 -105
  574. package/src/libs/ui/dataviz/src/lib/ui-dataviz.module.ts +0 -27
  575. package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +0 -69
  576. package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +0 -61
  577. package/src/libs/ui/elements/src/lib/link-card/link-card.component.css +0 -0
  578. package/src/libs/ui/elements/src/lib/ui-elements.module.ts +0 -74
  579. package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -96
  580. package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -14
  581. package/src/libs/ui/widgets/src/lib/ui-widgets.module.ts +0 -25
  582. package/src/libs/util/i18n/src/lib/lang.service.ts +0 -23
  583. package/src/libs/util/i18n/src/lib/util-i18n.module.ts +0 -26
  584. package/src/libs/util/shared/src/lib/util-shared.module.ts +0 -10
  585. /package/src/libs/ui/elements/src/lib/{internal-link-card/internal-link-card.component.css → external-link-card/external-link-card.component.css} +0 -0
  586. /package/src/libs/ui/elements/src/lib/{link-card/link-card.component.html → external-link-card/external-link-card.component.html} +0 -0
@@ -1,9 +1,12 @@
1
1
  import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
+ import { CommonModule } from '@angular/common'
2
3
 
3
4
  @Component({
4
5
  selector: 'gn-ui-avatar',
5
6
  templateUrl: './avatar.component.html',
6
7
  changeDetection: ChangeDetectionStrategy.OnPush,
8
+ standalone: true,
9
+ imports: [CommonModule],
7
10
  })
8
11
  export class AvatarComponent {
9
12
  @Input() avatarUrl?: string
@@ -1,10 +1,14 @@
1
1
  <h1 mat-dialog-title>{{ data.title }}</h1>
2
2
  <div mat-dialog-content>{{ data.message }}</div>
3
3
  <div mat-dialog-actions>
4
- <gn-ui-button (buttonClick)="onCancel()">{{ data.cancelText }}</gn-ui-button>
4
+ <gn-ui-button
5
+ [attr.cdkFocusInitial]="focusCancel"
6
+ (buttonClick)="onCancel()"
7
+ >{{ data.cancelText }}</gn-ui-button
8
+ >
5
9
  <gn-ui-button
6
10
  (buttonClick)="onConfirm()"
7
- cdkFocusInitial
11
+ [attr.cdkFocusInitial]="!focusCancel"
8
12
  class="ml-2"
9
13
  data-cy="confirm-button"
10
14
  >{{ data.confirmText }}</gn-ui-button
@@ -7,6 +7,7 @@ import {
7
7
  import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
8
8
 
9
9
  export interface ConfirmationDialogData {
10
+ focusCancel: string
10
11
  title: string
11
12
  message: string
12
13
  confirmText: string
@@ -22,10 +23,13 @@ export interface ConfirmationDialogData {
22
23
  imports: [MatDialogModule, ButtonComponent],
23
24
  })
24
25
  export class ConfirmationDialogComponent {
26
+ focusCancel = null
25
27
  constructor(
26
28
  public dialogRef: MatDialogRef<ConfirmationDialogComponent>,
27
29
  @Inject(MAT_DIALOG_DATA) public data: ConfirmationDialogData
28
- ) {}
30
+ ) {
31
+ this.focusCancel = data.focusCancel ? true : null
32
+ }
29
33
 
30
34
  onConfirm() {
31
35
  this.dialogRef.close(true)
@@ -6,7 +6,7 @@ import {
6
6
  Output,
7
7
  } from '@angular/core'
8
8
  import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
9
- import { TranslateModule } from '@ngx-translate/core'
9
+ import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
10
10
  import { CommonModule } from '@angular/common'
11
11
  import { NgIcon, provideIcons } from '@ng-icons/core'
12
12
  import { iconoirDownload } from '@ng-icons/iconoir'
@@ -18,7 +18,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
18
18
  templateUrl: './download-item.component.html',
19
19
  styleUrls: ['./download-item.component.css'],
20
20
  changeDetection: ChangeDetectionStrategy.OnPush,
21
- imports: [CommonModule, TranslateModule, NgIcon],
21
+ imports: [CommonModule, TranslateDirective, TranslatePipe, NgIcon],
22
22
  standalone: true,
23
23
  viewProviders: [
24
24
  provideIcons({
@@ -1,12 +1,10 @@
1
1
  import {
2
- AfterViewInit,
3
2
  ChangeDetectionStrategy,
4
3
  ChangeDetectorRef,
5
4
  Component,
6
5
  Input,
7
- ViewChild,
8
6
  } from '@angular/core'
9
- import { TranslateModule, TranslateService } from '@ngx-translate/core'
7
+ import { TranslateDirective, TranslateService } from '@ngx-translate/core'
10
8
  import { marker } from '@biesbjerg/ngx-translate-extract-marker'
11
9
  import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
12
10
  import { DatasetDownloadDistribution } from '../../../../../../libs/common/domain/src/lib/model/record'
@@ -15,7 +13,6 @@ import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
15
13
  import { DownloadItemComponent } from '../download-item/download-item.component'
16
14
  import {
17
15
  BlockListComponent,
18
- Paginable,
19
16
  PreviousNextButtonsComponent,
20
17
  } from '../../../../../../libs/ui/layout/src'
21
18
 
@@ -36,7 +33,7 @@ type FilterFormat = (typeof FILTER_FORMATS)[number]
36
33
  ButtonComponent,
37
34
  BlockListComponent,
38
35
  DownloadItemComponent,
39
- TranslateModule,
36
+ TranslateDirective,
40
37
  PreviousNextButtonsComponent,
41
38
  ],
42
39
  })
@@ -7,7 +7,7 @@ import {
7
7
  matQuestionMark,
8
8
  } from '@ng-icons/material-icons/baseline'
9
9
  import { matComputerOutline } from '@ng-icons/material-icons/outline'
10
- import { TranslateModule } from '@ngx-translate/core'
10
+ import { TranslateDirective } from '@ngx-translate/core'
11
11
 
12
12
  export enum ErrorType {
13
13
  COULD_NOT_REACH_API,
@@ -24,7 +24,7 @@ export enum ErrorType {
24
24
  styleUrls: ['./error.component.css'],
25
25
  changeDetection: ChangeDetectionStrategy.OnPush,
26
26
  standalone: true,
27
- imports: [CommonModule, NgIcon, TranslateModule],
27
+ imports: [CommonModule, NgIcon, TranslateDirective],
28
28
  viewProviders: [
29
29
  provideIcons({
30
30
  matFace,
@@ -8,16 +8,16 @@ import {
8
8
  } from '@ng-icons/core'
9
9
  import { matOpenInNew } from '@ng-icons/material-icons/baseline'
10
10
  import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
11
- import { TranslateModule } from '@ngx-translate/core'
11
+ import { TranslatePipe } from '@ngx-translate/core'
12
12
 
13
13
  type CardSize = 'L' | 'M' | 'S' | 'XS'
14
14
  @Component({
15
- selector: 'gn-ui-link-card',
16
- templateUrl: './link-card.component.html',
17
- styleUrls: ['./link-card.component.css'],
15
+ selector: 'gn-ui-external-link-card',
16
+ templateUrl: './external-link-card.component.html',
17
+ styleUrls: ['./external-link-card.component.css'],
18
18
  changeDetection: ChangeDetectionStrategy.OnPush,
19
19
  standalone: true,
20
- imports: [CommonModule, NgIconComponent, TranslateModule],
20
+ imports: [CommonModule, NgIconComponent, TranslatePipe],
21
21
  providers: [
22
22
  provideIcons({
23
23
  matOpenInNew,
@@ -25,7 +25,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
25
25
  provideNgIconsConfig({ size: '1.5em' }),
26
26
  ],
27
27
  })
28
- export class LinkCardComponent {
28
+ export class ExternalLinkCardComponent {
29
29
  private _size: CardSize
30
30
  @Input() link: DatasetOnlineResource
31
31
  private readonly sizeClassMap: Record<CardSize, string> = {
@@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
2
2
  import { matLocationSearchingOutline } from '@ng-icons/material-icons/outline'
3
3
  import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
4
4
  import { CommonModule } from '@angular/common'
5
- import { TranslateModule } from '@ngx-translate/core'
5
+ import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
6
6
  import { NgIcon, provideIcons } from '@ng-icons/core'
7
7
  import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
8
8
 
@@ -12,7 +12,7 @@ import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/sh
12
12
  styleUrls: ['./geo-data-badge.component.css'],
13
13
  changeDetection: ChangeDetectionStrategy.OnPush,
14
14
  standalone: true,
15
- imports: [CommonModule, NgIcon, TranslateModule],
15
+ imports: [CommonModule, NgIcon, TranslateDirective, TranslatePipe],
16
16
  viewProviders: [
17
17
  provideIcons({
18
18
  matLocationSearchingOutline,
@@ -38,7 +38,7 @@ export class GeoDataBadgeComponent {
38
38
 
39
39
  get badgeClasses(): string {
40
40
  const baseClasses =
41
- 'flex shrink-0 items-center badge-btn text-xs px-2 h-6 min-h-6'
41
+ 'flex shrink-0 items-center badge-btn badge-btn text-xs px-2 h-6 min-h-6'
42
42
 
43
43
  switch (this.styling) {
44
44
  case 'light':
@@ -30,7 +30,7 @@ import {
30
30
  iconoirMediaImageXmark,
31
31
  iconoirPlus,
32
32
  } from '@ng-icons/iconoir'
33
- import { TranslateModule } from '@ngx-translate/core'
33
+ import { TranslatePipe } from '@ngx-translate/core'
34
34
  import { firstValueFrom } from 'rxjs'
35
35
  import { ImageOverlayPreviewComponent } from '../image-overlay-preview/image-overlay-preview.component'
36
36
 
@@ -45,7 +45,7 @@ import { ImageOverlayPreviewComponent } from '../image-overlay-preview/image-ove
45
45
  ButtonComponent,
46
46
  FilesDropDirective,
47
47
  MatProgressSpinnerModule,
48
- TranslateModule,
48
+ TranslatePipe,
49
49
  UrlInputComponent,
50
50
  TextInputComponent,
51
51
  NgIconComponent,
@@ -1,82 +1,86 @@
1
- <a [attr.href]="linkHref" [target]="linkTarget">
2
- <div
3
- class="group rounded-md bg-white hover:cursor-pointer hover:bg-slate-50 overflow-hidden w-full"
4
- [ngClass]="cardClass"
5
- >
6
- <div
7
- class="flex flex-row md:gap-0 justify-between w-full"
8
- [ngClass]="{ 'flex-wrap md:flex-nowrap gap-3': size === 'L' }"
9
- >
10
- <div
11
- *ngIf="shouldShowThumbnail"
12
- [ngClass]="thumbnailContainerClass"
13
- class="border mr-4 flex flex-col"
1
+ <a
2
+ [attr.href]="linkHref"
3
+ [target]="linkTarget"
4
+ class="record-card"
5
+ [ngClass]="cardClass"
6
+ >
7
+ <div *ngIf="shouldShowThumbnail" class="record-card__thumbnail">
8
+ <gn-ui-thumbnail
9
+ class="w-full h-full object-cover"
10
+ [thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
11
+ [fit]="'cover'"
12
+ ></gn-ui-thumbnail>
13
+ </div>
14
+ <div class="grow pt-1" [ngClass]="shouldShowThumbnail ? 'sm:w-0' : ''">
15
+ <div class="flex flex-col gap-2 h-full">
16
+ <h4
17
+ class="record-card__title"
18
+ data-cy="recordTitle"
19
+ [title]="record.title"
14
20
  >
15
- <gn-ui-thumbnail
16
- class="w-full h-full object-cover"
17
- [thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
18
- [fit]="'cover'"
19
- ></gn-ui-thumbnail>
21
+ {{ record.title }}
22
+ </h4>
23
+ <div class="grow">
24
+ <gn-ui-markdown-parser
25
+ data-cy="recordAbstract"
26
+ [textContent]="abstract"
27
+ [whitoutStyles]="true"
28
+ class="record-card__abstract"
29
+ [title]="abstract"
30
+ ></gn-ui-markdown-parser>
20
31
  </div>
21
- <div class="grow flex flex-col gap-3 w-0">
22
- <div class="flex items-center gap-2">
23
- <div class="grow flex flex-wrap items-center gap-2">
32
+ <div class="record-card__footer">
33
+ <div
34
+ data-cy="recordOrg"
35
+ *ngIf="record.ownerOrganization?.name"
36
+ class="grow flex flex-row gap-1 items-center text-primary-lighter"
37
+ [ngClass]="displayContactIconOnly ? 'justify-center' : ''"
38
+ >
39
+ <ng-icon
40
+ name="iconoirBank"
41
+ class="text-primary -translate-y-[0.5px] shrink-0"
42
+ [title]="record.ownerOrganization.name"
43
+ ></ng-icon>
44
+ <span
45
+ *ngIf="!displayContactIconOnly"
46
+ data-cy="recordOrgName"
47
+ class="line-clamp-1"
48
+ [title]="record.ownerOrganization.name"
49
+ >{{ record.ownerOrganization.name }}</span
50
+ >
51
+ </div>
52
+ <div class="record-card__footer__other">
53
+ <div
54
+ class="xs:border-r last:border-r-0 flex grow gap-4 px-4 last:pr-0"
55
+ >
24
56
  <gn-ui-kind-badge
25
- [styling]="'default'"
57
+ [extraClass]="'text-[1.2em]'"
58
+ [styling]="'gray'"
26
59
  [kind]="record?.kind"
60
+ [contentTemplate]="customTemplate"
61
+ class="pt-1"
62
+ >
63
+ <ng-template #customTemplate></ng-template
27
64
  ></gn-ui-kind-badge>
28
- <gn-ui-geo-data-badge
29
- [showLabel]="size === 'L'"
30
- [styling]="'light'"
31
- [record]="record"
32
- ></gn-ui-geo-data-badge>
33
65
  <gn-ui-metadata-quality
34
- class="flex items-center"
66
+ *ngIf="metadataQualityDisplay"
67
+ class="flex items-center min-w-[113px]"
35
68
  [smaller]="true"
36
69
  [metadata]="record"
37
70
  [metadataQualityDisplay]="metadataQualityDisplay"
38
71
  ></gn-ui-metadata-quality>
39
72
  </div>
40
- <div *ngIf="size !== 'XS'" data-cy="recordFav">
73
+ <div
74
+ class="flex justify-center"
75
+ data-cy="recordFav"
76
+ [ngClass]="displayContactIconOnly ? 'px-1' : 'px-4'"
77
+ >
41
78
  <ng-container
42
79
  [ngTemplateOutlet]="favoriteTemplate"
43
80
  [ngTemplateOutletContext]="{ $implicit: record }"
44
81
  ></ng-container>
45
82
  </div>
46
83
  </div>
47
-
48
- <div class="grow flex flex-col gap-2">
49
- <div
50
- class="font-medium text-title group-hover:text-primary"
51
- [title]="record.title"
52
- >
53
- <h4
54
- class="mr-6 overflow-hidden"
55
- [ngClass]="getTitleClass()"
56
- data-cy="recordTitle"
57
- [title]="record.title"
58
- >
59
- {{ record.title }}
60
- </h4>
61
- </div>
62
- <div
63
- *ngIf="displayAbstract()"
64
- class="mr-6 text-xs text-gray-900 overflow-hidden"
65
- [ngClass]="getAbstractClass()"
66
- data-cy="recordAbstract"
67
- >
68
- <gn-ui-markdown-parser
69
- [textContent]="abstract"
70
- [whitoutStyles]="true"
71
- ></gn-ui-markdown-parser>
72
- </div>
73
- </div>
74
-
75
- <gn-ui-internal-link-card-contact
76
- *ngIf="size !== 'XS' && record.ownerOrganization?.name"
77
- [record]="record"
78
- [size]="size"
79
- ></gn-ui-internal-link-card-contact>
80
84
  </div>
81
85
  </div>
82
86
  </div>
@@ -0,0 +1,115 @@
1
+ .record-card {
2
+ @apply rounded-md bg-white hover:cursor-pointer hover:bg-slate-50 overflow-hidden items-stretch flex flex-row md:gap-0 justify-between py-3 pl-3 pr-5;
3
+
4
+ &.size-L {
5
+ @apply w-full md:h-[208px] gap-5;
6
+ }
7
+
8
+ &.size-M {
9
+ @apply max-w-[940px] md:h-[231px] gap-4;
10
+ }
11
+
12
+ &.size-S {
13
+ @apply max-w-[572px] md:h-[315px] gap-4;
14
+ }
15
+
16
+ &.size-XS {
17
+ @apply max-w-[280px] md:h-[315px] gap-4;
18
+ }
19
+ }
20
+
21
+ .record-card:hover {
22
+ .record-card__title {
23
+ @apply text-primary;
24
+ }
25
+ }
26
+
27
+ .record-card__thumbnail {
28
+ @apply border rounded-lg overflow-hidden shrink-0;
29
+
30
+ .size-L & {
31
+ @apply w-full w-[190px] h-[184px];
32
+ }
33
+
34
+ .size-M & {
35
+ @apply w-full w-[138px] h-[207px];
36
+ }
37
+ }
38
+
39
+ .record-card__title {
40
+ @apply text-xl font-medium text-title leading-6;
41
+
42
+ .size-L & {
43
+ @apply line-clamp-2;
44
+ }
45
+
46
+ .size-M & {
47
+ @apply line-clamp-2 ml-2;
48
+ }
49
+
50
+ .size-S & {
51
+ @apply line-clamp-3 ml-2;
52
+ }
53
+
54
+ .size-XS & {
55
+ @apply line-clamp-3 ml-2;
56
+ }
57
+ }
58
+
59
+ .record-card__abstract {
60
+ @apply text-gray-900 overflow-hidden;
61
+
62
+ .size-L & {
63
+ @apply line-clamp-3;
64
+ }
65
+
66
+ .size-M & {
67
+ @apply line-clamp-3 ml-2;
68
+ }
69
+
70
+ .size-S & {
71
+ @apply line-clamp-4 ml-2;
72
+ }
73
+
74
+ .size-XS & {
75
+ @apply line-clamp-4 ml-2;
76
+ }
77
+ }
78
+
79
+ .record-card__footer {
80
+ @apply flex sm:flex-row flex-col flex-nowrap gap-3 justify-end items-center w-full border-t pt-1 overflow-hidden;
81
+
82
+ .size-S & {
83
+ @media (max-width: 450px) {
84
+ @apply flex-col items-stretch;
85
+ }
86
+ }
87
+
88
+ .size-XS & {
89
+ @apply flex-col items-stretch gap-2;
90
+ }
91
+ }
92
+
93
+ .record-card__footer__other {
94
+ @apply flex flex-col xs:flex-row flex-nowrap gap-3 xs:border-l first:border-l-0;
95
+
96
+ & > div {
97
+ @apply py-1;
98
+ }
99
+
100
+ .size-S &,
101
+ .size-S & > div {
102
+ @media (max-width: 450px) {
103
+ @apply border-0 px-0 py-0;
104
+ }
105
+ }
106
+
107
+ .size-XS &,
108
+ .size-XS & > div {
109
+ @apply border-0;
110
+ }
111
+
112
+ .size-XS & > div {
113
+ @apply px-0 py-0;
114
+ }
115
+ }
@@ -1,26 +1,27 @@
1
1
  import {
2
2
  Component,
3
+ ElementRef,
4
+ EventEmitter,
3
5
  Input,
4
- TemplateRef,
5
6
  OnInit,
6
7
  Output,
7
- EventEmitter,
8
- ElementRef,
8
+ TemplateRef,
9
9
  } from '@angular/core'
10
- import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
11
10
  import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'
12
- import { GeoDataBadgeComponent } from '../geo-data-badge/geo-data-badge.component'
11
+ import { fromEvent, Subscription } from 'rxjs'
12
+ import { iconoirBank } from '@ng-icons/iconoir'
13
+ import {
14
+ NgIconComponent,
15
+ provideIcons,
16
+ provideNgIconsConfig,
17
+ } from '@ng-icons/core'
18
+ import { matLocationSearchingOutline } from '@ng-icons/material-icons/outline'
19
+ import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
13
20
  import { KindBadgeComponent } from '../kind-badge/kind-badge.component'
14
21
  import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
15
22
  import { MetadataQualityComponent } from '../metadata-quality/metadata-quality.component'
16
- import { InternalLinkCardContactComponent } from '../internal-link-card-contact/internal-link-card-contact.component'
17
- import { removeWhitespace, stripHtml } from '../../../../../../libs/util/shared/src'
18
- import { provideIcons, provideNgIconsConfig } from '@ng-icons/core'
19
- import { matLocationSearchingOutline } from '@ng-icons/material-icons/outline'
20
- import { iconoirInternet } from '@ng-icons/iconoir'
21
- import { TranslateModule } from '@ngx-translate/core'
22
- import { fromEvent, Subscription } from 'rxjs'
23
23
  import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
24
+ import { removeWhitespace, stripHtml } from '../../../../../../libs/util/shared/src'
24
25
 
25
26
  type CardSize = 'L' | 'M' | 'S' | 'XS'
26
27
 
@@ -30,18 +31,16 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
30
31
  imports: [
31
32
  NgClass,
32
33
  NgIf,
34
+ NgIconComponent,
33
35
  MetadataQualityComponent,
34
36
  NgTemplateOutlet,
35
- TranslateModule,
36
- GeoDataBadgeComponent,
37
37
  KindBadgeComponent,
38
38
  MarkdownParserComponent,
39
- InternalLinkCardContactComponent,
40
39
  ThumbnailComponent,
41
40
  ],
42
41
  providers: [
43
42
  provideIcons({
44
- iconoirInternet,
43
+ iconoirBank,
45
44
  matLocationSearchingOutline,
46
45
  }),
47
46
  provideNgIconsConfig({
@@ -49,7 +48,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
49
48
  }),
50
49
  ],
51
50
  templateUrl: './internal-link-card.component.html',
52
- styleUrls: ['./internal-link-card.component.css'],
51
+ styleUrls: ['./internal-link-card.component.scss'],
53
52
  })
54
53
  export class InternalLinkCardComponent implements OnInit {
55
54
  @Input() record: CatalogRecord
@@ -59,8 +58,7 @@ export class InternalLinkCardComponent implements OnInit {
59
58
  @Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
60
59
  @Input() set size(value: CardSize) {
61
60
  this._size = value
62
- this.cardClass = this.sizeClassMap[value] || ''
63
- this.thumbnailContainerClass = this.thumbnailSizeClassMap[value] || 'hidden'
61
+ this.cardClass = `size-${value}`
64
62
  }
65
63
  get size(): CardSize {
66
64
  return this._size
@@ -69,32 +67,9 @@ export class InternalLinkCardComponent implements OnInit {
69
67
  subscription = new Subscription()
70
68
 
71
69
  abstract: string
70
+ cardClass: string
72
71
 
73
- cardClass = ''
74
- thumbnailContainerClass = ''
75
-
76
- private _size: CardSize = 'M'
77
-
78
- private readonly sizeClassMap: Record<CardSize, string> = {
79
- L: 'min-h-[190px] w-full py-3 px-3 flex items-start gap-5',
80
- M: 'min-h-[140px] py-3 px-3 flex items-start gap-4',
81
- S: 'min-h-[220px] py-3 px-3 flex gap-4',
82
- XS: 'min-h-[108px] py-3 px-3 flex gap-4',
83
- }
84
-
85
- private readonly thumbnailSizeClassMap: Record<CardSize, string> = {
86
- L: 'w-full md:w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
87
- M: 'w-[110px] h-[140px] rounded-lg overflow-hidden shrink-0',
88
- S: 'hidden',
89
- XS: 'hidden',
90
- }
91
-
92
- private readonly titleClassMap: Record<CardSize, string> = {
93
- L: 'text-xl line-clamp-1',
94
- M: 'text-base line-clamp-2',
95
- S: 'text-base line-clamp-3 ml-2',
96
- XS: 'text-base line-clamp-1 ml-2',
97
- }
72
+ private _size: CardSize = 'L'
98
73
 
99
74
  constructor(protected elementRef: ElementRef) {}
100
75
 
@@ -106,26 +81,18 @@ export class InternalLinkCardComponent implements OnInit {
106
81
  )
107
82
  )
108
83
  }
109
-
110
- getTitleClass() {
111
- return this.titleClassMap[this._size]
112
- }
113
- getAbstractClass(): string {
114
- const marginClass = ['S', 'XS'].includes(this.size) ? 'ml-2' : ''
115
- const clampClass =
116
- this.size === 'L' && !this.record.ownerOrganization?.name
117
- ? 'line-clamp-6'
118
- : 'line-clamp-2'
119
- return `${clampClass} ${marginClass}`.trim()
84
+ get shouldShowThumbnail(): boolean {
85
+ return this.size === 'L' || this.size === 'M'
120
86
  }
121
- displayAbstract(): boolean {
87
+
88
+ get displayContactIconOnly() {
89
+ const cardWidth =
90
+ this.elementRef.nativeElement.getBoundingClientRect().width
122
91
  return (
123
- this.size === 'L' ||
124
- (['M', 'S'].includes(this.size) && !this.record.ownerOrganization?.name)
92
+ this.record.ownerOrganization?.name &&
93
+ this.metadataQualityDisplay &&
94
+ this.size === 'M' &&
95
+ cardWidth <= 490
125
96
  )
126
97
  }
127
-
128
- get shouldShowThumbnail(): boolean {
129
- return this.size === 'L' || this.size === 'M'
130
- }
131
98
  }
@@ -1,5 +1,9 @@
1
- <div [class]="badgeClasses" *ngIf="kind">
2
- <ng-icon [name]="iconKind" class="mr-1 text-[0.85em]"></ng-icon>
1
+ <div
2
+ [class]="badgeClasses"
3
+ *ngIf="kind"
4
+ [title]="'record.kind.' + kind | translate"
5
+ >
6
+ <ng-icon [name]="iconKind" [ngClass]="extraClass"></ng-icon>
3
7
 
4
8
  <ng-container *ngIf="contentTemplate; else defaultContent">
5
9
  <ng-container *ngTemplateOutlet="contentTemplate"></ng-container>