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.
- package/esm2022/index.mjs +1 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +26 -3
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/index.mjs +3 -5
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.mjs +5 -0
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.mjs +6 -0
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +35 -21
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/index.mjs +1 -2
- package/esm2022/libs/feature/catalog/src/lib/organization-url.token.mjs +3 -1
- package/esm2022/libs/feature/catalog/src/lib/site-title/site-title.component.mjs +5 -4
- package/esm2022/libs/feature/catalog/src/lib/source-label/source-label.component.mjs +4 -3
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +4 -4
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +8 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -36
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +51 -45
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +10 -5
- package/esm2022/libs/feature/notifications/src/index.mjs +1 -2
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +4 -2
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +14 -4
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +5 -43
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +10 -5
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +15 -5
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +4 -2
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
- package/esm2022/libs/feature/router/src/lib/default/container/search-router.container.directive.mjs +3 -2
- package/esm2022/libs/feature/router/src/lib/default/router.module.mjs +2 -5
- package/esm2022/libs/feature/router/src/lib/default/state/query-params.utils.mjs +4 -3
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +2 -2
- package/esm2022/libs/feature/search/src/index.mjs +1 -2
- package/esm2022/libs/feature/search/src/lib/facets/facets-container/facets-container.component.mjs +12 -5
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +4 -100
- package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +9 -5
- package/esm2022/libs/feature/search/src/lib/records-metrics/records-metrics.component.mjs +6 -5
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +9 -5
- package/esm2022/libs/feature/search/src/lib/results-layout/results-layout.component.mjs +7 -6
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +19 -12
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +7 -6
- package/esm2022/libs/feature/search/src/lib/state/container/search-state.container.directive.mjs +3 -2
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +14 -4
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +8 -2
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +1 -6
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +15 -5
- package/esm2022/libs/ui/search/src/index.mjs +1 -3
- package/esm2022/libs/ui/search/src/lib/facets/facet-block/facet-block.component.mjs +14 -30
- package/esm2022/libs/ui/search/src/lib/facets/facet-item/facet-item.component.mjs +6 -27
- package/esm2022/libs/ui/search/src/lib/facets/facet-list/facet-list.component.mjs +7 -4
- package/esm2022/libs/ui/search/src/lib/record-metric/record-metric.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/record-preview/record-preview.component.mjs +5 -2
- package/esm2022/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +36 -7
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +11 -5
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +17 -7
- package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +4 -2
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/results-list-item/results-list-item.component.mjs +5 -3
- package/esm2022/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.mjs +14 -4
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/scroll.mjs +40 -0
- package/esm2022/translations/de.json +38 -36
- package/esm2022/translations/en.json +41 -38
- package/esm2022/translations/es.json +26 -24
- package/esm2022/translations/fr.json +45 -43
- package/esm2022/translations/it.json +39 -37
- package/esm2022/translations/nl.json +26 -24
- package/esm2022/translations/pt.json +26 -24
- package/esm2022/translations/sk.json +30 -28
- package/fesm2022/geonetwork-ui.mjs +5650 -5789
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +0 -1
- package/index.d.ts.map +1 -1
- package/index.ts +0 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +2 -2
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/organizations/index.d.ts +2 -3
- package/libs/api/repository/src/lib/gn4/organizations/index.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts +4 -0
- package/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.d.ts.map +1 -0
- package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts +9 -0
- package/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.d.ts.map +1 -0
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +11 -8
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -2
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/feature/catalog/src/index.d.ts +0 -1
- package/libs/feature/catalog/src/index.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/organization-url.token.d.ts +1 -0
- package/libs/feature/catalog/src/lib/organization-url.token.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts +1 -1
- package/libs/feature/catalog/src/lib/site-title/site-title.component.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts +1 -1
- package/libs/feature/catalog/src/lib/source-label/source-label.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts +3 -10
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +4 -4
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts.map +1 -1
- package/libs/feature/notifications/src/index.d.ts +0 -1
- package/libs/feature/notifications/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +4 -11
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts +1 -1
- package/libs/feature/router/src/lib/default/container/search-router.container.directive.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.module.d.ts +4 -5
- package/libs/feature/router/src/lib/default/router.module.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/query-params.utils.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +0 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/facets/facets-container/facets-container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +3 -26
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +1 -1
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts +1 -1
- package/libs/feature/search/src/lib/records-metrics/records-metrics.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-layout/results-layout.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts +1 -1
- package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts +1 -1
- package/libs/feature/search/src/lib/state/container/search-state.container.directive.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/search/src/index.d.ts +0 -2
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts +1 -11
- package/libs/ui/search/src/lib/facets/facet-block/facet-block.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts +1 -11
- package/libs/ui/search/src/lib/facets/facet-item/facet-item.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts +1 -1
- package/libs/ui/search/src/lib/facets/facet-list/facet-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-metric/record-metric.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview/record-preview.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts +1 -1
- package/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts +1 -1
- package/libs/ui/search/src/lib/results-list/results-layout.config.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-list-item/results-list-item.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +26 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/scroll.d.ts +12 -0
- package/libs/util/shared/src/lib/utils/scroll.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +38 -2
- package/src/libs/api/repository/src/lib/gn4/organizations/index.ts +2 -11
- package/src/libs/api/repository/src/lib/gn4/organizations/organization-strategy.token.ts +10 -0
- package/src/libs/api/repository/src/lib/gn4/organizations/organizations-service.factory.ts +33 -0
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +36 -38
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +8 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +2 -2
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -0
- package/src/libs/feature/catalog/src/index.ts +0 -1
- package/src/libs/feature/catalog/src/lib/organization-url.token.ts +5 -0
- package/src/libs/feature/catalog/src/lib/site-title/site-title.component.ts +4 -0
- package/src/libs/feature/catalog/src/lib/source-label/source-label.component.ts +3 -0
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +4 -4
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +8 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.html +22 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -18
- package/src/libs/feature/editor/src/lib/fields.config.ts +51 -45
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +8 -1
- package/src/libs/feature/notifications/src/index.ts +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -1
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +7 -2
- package/src/libs/feature/record/src/lib/feature-record.module.ts +1 -21
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +5 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +12 -3
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -2
- package/src/libs/feature/router/src/lib/default/container/search-router.container.directive.ts +1 -0
- package/src/libs/feature/router/src/lib/default/router.module.ts +0 -3
- package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +5 -2
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
- package/src/libs/feature/search/src/index.ts +0 -1
- package/src/libs/feature/search/src/lib/facets/facets-container/facets-container.component.ts +14 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
- package/src/libs/feature/search/src/lib/feature-search.module.ts +0 -61
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +12 -1
- package/src/libs/feature/search/src/lib/records-metrics/records-metrics.component.ts +5 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +11 -0
- package/src/libs/feature/search/src/lib/results-layout/results-layout.component.ts +5 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +21 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +1 -1
- package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +5 -0
- package/src/libs/feature/search/src/lib/state/container/search-state.container.directive.ts +1 -0
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.ts +4 -1
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +4 -1
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -1
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +4 -1
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +7 -2
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +8 -1
- package/src/libs/ui/elements/src/lib/notification/notification.component.ts +8 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +0 -6
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +9 -4
- package/src/libs/ui/search/src/index.ts +0 -2
- package/src/libs/ui/search/src/lib/facets/facet-block/facet-block.component.ts +12 -11
- package/src/libs/ui/search/src/lib/facets/facet-item/facet-item.component.ts +5 -11
- package/src/libs/ui/search/src/lib/facets/facet-list/facet-list.component.ts +6 -0
- package/src/libs/ui/search/src/lib/record-metric/record-metric.component.ts +4 -0
- package/src/libs/ui/search/src/lib/record-preview/record-preview.component.ts +3 -0
- package/src/libs/ui/search/src/lib/record-preview-card/record-preview-card.component.ts +4 -0
- package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.ts +33 -1
- package/src/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.ts +10 -0
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.ts +4 -0
- package/src/libs/ui/search/src/lib/record-preview-text/record-preview-text.component.ts +4 -0
- package/src/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.ts +4 -0
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.ts +4 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +16 -2
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +5 -3
- package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +4 -0
- package/src/libs/ui/search/src/lib/results-list-item/results-list-item.component.ts +3 -0
- package/src/libs/ui/widgets/src/lib/popup-alert/popup-alert.component.ts +6 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/scroll.ts +48 -0
- package/translations/de.json +38 -36
- package/translations/en.json +41 -38
- package/translations/es.json +26 -24
- package/translations/fr.json +45 -43
- package/translations/it.json +39 -37
- package/translations/nl.json +26 -24
- package/translations/pt.json +26 -24
- package/translations/sk.json +30 -28
- package/esm2022/libs/feature/auth/src/index.mjs +0 -2
- package/esm2022/libs/feature/auth/src/lib/feature-auth.module.mjs +0 -17
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +0 -57
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.mjs +0 -79
- package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +0 -18
- package/esm2022/libs/feature/search/src/lib/facets/facets.module.mjs +0 -21
- package/esm2022/libs/ui/search/src/lib/facets/facets.module.mjs +0 -23
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +0 -168
- package/libs/feature/auth/src/index.d.ts +0 -2
- package/libs/feature/auth/src/index.d.ts.map +0 -1
- package/libs/feature/auth/src/lib/feature-auth.module.d.ts +0 -8
- package/libs/feature/auth/src/lib/feature-auth.module.d.ts.map +0 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +0 -14
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts +0 -28
- 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
- package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +0 -7
- package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +0 -1
- package/libs/feature/search/src/lib/facets/facets.module.d.ts +0 -11
- package/libs/feature/search/src/lib/facets/facets.module.d.ts.map +0 -1
- package/libs/ui/search/src/lib/facets/facets.module.d.ts +0 -13
- package/libs/ui/search/src/lib/facets/facets.module.d.ts.map +0 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +0 -36
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +0 -1
- package/src/libs/feature/auth/src/index.ts +0 -1
- package/src/libs/feature/auth/src/lib/feature-auth.module.ts +0 -12
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +0 -71
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.html +0 -20
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts +0 -85
- package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +0 -10
- package/src/libs/feature/search/src/lib/facets/facets.module.ts +0 -12
- package/src/libs/ui/search/src/lib/facets/facets.module.ts +0 -14
- package/src/libs/ui/search/src/lib/ui-search.module.ts +0 -108
- /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,4 +1,4 @@
|
|
|
1
|
-
import { Injectable } from '@angular/core'
|
|
1
|
+
import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'
|
|
2
2
|
import {
|
|
3
3
|
catchError,
|
|
4
4
|
filter,
|
|
@@ -11,7 +11,6 @@ import {
|
|
|
11
11
|
MeApiService,
|
|
12
12
|
RecordsApiService,
|
|
13
13
|
RegistriesApiService,
|
|
14
|
-
SiteApiService,
|
|
15
14
|
ToolsApiService,
|
|
16
15
|
UserfeedbackApiService,
|
|
17
16
|
UsersApiService,
|
|
@@ -46,9 +45,14 @@ import {
|
|
|
46
45
|
} from 'rxjs'
|
|
47
46
|
import { TranslateService } from '@ngx-translate/core'
|
|
48
47
|
import { toLang3 } from '../../../../../../../libs/util/i18n/src'
|
|
48
|
+
import { Gn4SettingsService } from '../settings/gn4-settings.service'
|
|
49
49
|
|
|
50
50
|
const minApiVersion = '4.2.2'
|
|
51
51
|
|
|
52
|
+
export const DISABLE_AUTH = new InjectionToken<boolean>('gnDisableAuth', {
|
|
53
|
+
factory: () => false,
|
|
54
|
+
})
|
|
55
|
+
|
|
52
56
|
@Injectable()
|
|
53
57
|
export class Gn4PlatformService implements PlatformServiceInterface {
|
|
54
58
|
private readonly type = 'GeoNetwork'
|
|
@@ -66,31 +70,6 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
66
70
|
}),
|
|
67
71
|
shareReplay(1)
|
|
68
72
|
)
|
|
69
|
-
|
|
70
|
-
private settings$ = of(true).pipe(
|
|
71
|
-
switchMap(() => this.siteApiService.getSiteOrPortalDescription()),
|
|
72
|
-
shareReplay(1)
|
|
73
|
-
)
|
|
74
|
-
|
|
75
|
-
private readonly apiVersion$ = this.settings$.pipe(
|
|
76
|
-
map((info) => info['system/platform/version'] as string),
|
|
77
|
-
tap((version) => {
|
|
78
|
-
if (ltr(version, minApiVersion)) {
|
|
79
|
-
throw new Error(
|
|
80
|
-
`Gn4 API version is not compatible.\nMinimum: ${minApiVersion}\nYour version: ${version}`
|
|
81
|
-
)
|
|
82
|
-
}
|
|
83
|
-
}),
|
|
84
|
-
shareReplay(1)
|
|
85
|
-
)
|
|
86
|
-
|
|
87
|
-
private readonly allowEditHarvestedMd$ = this.settings$.pipe(
|
|
88
|
-
map((info) => {
|
|
89
|
-
return info['system/harvester/enableEditing'] as boolean
|
|
90
|
-
}),
|
|
91
|
-
shareReplay(1)
|
|
92
|
-
)
|
|
93
|
-
|
|
94
73
|
/**
|
|
95
74
|
* A map of already loaded thesauri (groups of keywords); the key is a URI
|
|
96
75
|
* @private
|
|
@@ -102,7 +81,6 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
102
81
|
}
|
|
103
82
|
|
|
104
83
|
constructor(
|
|
105
|
-
private siteApiService: SiteApiService,
|
|
106
84
|
private meApi: MeApiService,
|
|
107
85
|
private usersApi: UsersApiService,
|
|
108
86
|
private mapper: Gn4PlatformMapper,
|
|
@@ -111,12 +89,16 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
111
89
|
private translateService: TranslateService,
|
|
112
90
|
private userfeedbackApiService: UserfeedbackApiService,
|
|
113
91
|
private httpClient: HttpClient,
|
|
114
|
-
private recordsApiService: RecordsApiService
|
|
92
|
+
private recordsApiService: RecordsApiService,
|
|
93
|
+
private settingsService: Gn4SettingsService,
|
|
94
|
+
@Inject(DISABLE_AUTH) @Optional() private disableAuth: boolean
|
|
115
95
|
) {
|
|
116
|
-
this.me$ = this.
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
96
|
+
this.me$ = this.disableAuth
|
|
97
|
+
? of(null)
|
|
98
|
+
: this.meApi.getMe().pipe(
|
|
99
|
+
switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
|
|
100
|
+
shareReplay({ bufferSize: 1, refCount: true })
|
|
101
|
+
)
|
|
120
102
|
|
|
121
103
|
this.isUserAnonymous$ = this.me$.pipe(
|
|
122
104
|
map((user) => !user || !('id' in user))
|
|
@@ -128,16 +110,28 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
128
110
|
)
|
|
129
111
|
}
|
|
130
112
|
|
|
113
|
+
getFeedbacksAllowed(): Observable<boolean> {
|
|
114
|
+
return this.settingsService.allowFeedbacks$
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
getAllowEditHarvestedMd(): Observable<boolean> {
|
|
118
|
+
return this.settingsService.allowEditHarvested$
|
|
119
|
+
}
|
|
120
|
+
|
|
131
121
|
getType(): string {
|
|
132
122
|
return this.type
|
|
133
123
|
}
|
|
134
124
|
|
|
135
125
|
getApiVersion(): Observable<string> {
|
|
136
|
-
return this.apiVersion
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
126
|
+
return this.settingsService.apiVersion$.pipe(
|
|
127
|
+
tap((version) => {
|
|
128
|
+
if (ltr(version, minApiVersion)) {
|
|
129
|
+
throw new Error(
|
|
130
|
+
`Gn4 API version is not compatible.\nMinimum: ${minApiVersion}\nYour version: ${version}`
|
|
131
|
+
)
|
|
132
|
+
}
|
|
133
|
+
})
|
|
134
|
+
)
|
|
141
135
|
}
|
|
142
136
|
|
|
143
137
|
getMe(): Observable<UserModel> {
|
|
@@ -444,4 +438,8 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
444
438
|
})
|
|
445
439
|
)
|
|
446
440
|
}
|
|
441
|
+
|
|
442
|
+
supportsAuthentication() {
|
|
443
|
+
return !this.disableAuth
|
|
444
|
+
}
|
|
447
445
|
}
|
|
@@ -14,6 +14,14 @@ export class Gn4SettingsService {
|
|
|
14
14
|
public allowEditHarvested$: Observable<boolean> =
|
|
15
15
|
this.getSettingsSetValueByKey('system/harvester/enableEditing')
|
|
16
16
|
|
|
17
|
+
public allowFeedbacks$: Observable<boolean> = this.getSettingsSetValueByKey(
|
|
18
|
+
'system/userFeedback/enable'
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
public apiVersion$: Observable<string> = this.getSettingsSetValueByKey(
|
|
22
|
+
'system/platform/version'
|
|
23
|
+
)
|
|
24
|
+
|
|
17
25
|
constructor(private siteApiService: SiteApiService) {}
|
|
18
26
|
|
|
19
27
|
private getSettingsSetValueByKey(key: string) {
|
|
@@ -108,7 +108,7 @@ export interface Keyword {
|
|
|
108
108
|
translations?: KeywordTranslations
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
export interface
|
|
111
|
+
export interface INSPIRE_topic {
|
|
112
112
|
value: string
|
|
113
113
|
label: string
|
|
114
114
|
}
|
|
@@ -274,7 +274,7 @@ export interface ServiceRecord extends BaseRecord {
|
|
|
274
274
|
export interface ReuseRecord extends BaseRecord {
|
|
275
275
|
kind: 'reuse'
|
|
276
276
|
lineage: string // Explanation of the origin of this record (e.g: how, why)"
|
|
277
|
-
onlineResources: Array<
|
|
277
|
+
onlineResources: Array<DatasetOnlineResource>
|
|
278
278
|
reuseType: ReuseType
|
|
279
279
|
spatialExtents: Array<DatasetSpatialExtent>
|
|
280
280
|
temporalExtents: Array<DatasetTemporalExtent>
|
|
@@ -24,6 +24,7 @@ export abstract class PlatformServiceInterface {
|
|
|
24
24
|
abstract getType(): string
|
|
25
25
|
abstract getApiVersion(): Observable<string>
|
|
26
26
|
|
|
27
|
+
abstract supportsAuthentication(): boolean
|
|
27
28
|
abstract getMe(): Observable<UserModel>
|
|
28
29
|
abstract isAnonymous(): Observable<boolean>
|
|
29
30
|
abstract getUsers(): Observable<UserModel[]>
|
|
@@ -57,4 +58,5 @@ export abstract class PlatformServiceInterface {
|
|
|
57
58
|
removeDuplicate?: boolean
|
|
58
59
|
): Observable<UploadEvent>
|
|
59
60
|
abstract getFileContent(url: URL): Observable<any>
|
|
61
|
+
abstract getFeedbacksAllowed(): Observable<boolean>
|
|
60
62
|
}
|
|
@@ -4,3 +4,8 @@ import { InjectionToken } from '@angular/core'
|
|
|
4
4
|
export const ORGANIZATION_PAGE_URL_TOKEN = new InjectionToken<string>(
|
|
5
5
|
'organization-page-url-token'
|
|
6
6
|
)
|
|
7
|
+
|
|
8
|
+
// expects the replacement key ${name}
|
|
9
|
+
export const ORGANIZATION_URL_TOKEN = new InjectionToken<string>(
|
|
10
|
+
'organization-url-token'
|
|
11
|
+
)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
1
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
2
3
|
import {
|
|
3
4
|
SettingsListResponseApiModel,
|
|
4
5
|
SiteApiService,
|
|
5
6
|
} from '../../../../../../libs/data-access/gn4/src'
|
|
7
|
+
import { CatalogTitleComponent } from '../../../../../../libs/ui/catalog/src'
|
|
6
8
|
import { Observable } from 'rxjs'
|
|
7
9
|
import { shareReplay } from 'rxjs/operators'
|
|
8
10
|
|
|
@@ -11,6 +13,8 @@ import { shareReplay } from 'rxjs/operators'
|
|
|
11
13
|
templateUrl: './site-title.component.html',
|
|
12
14
|
styleUrls: ['./site-title.component.css'],
|
|
13
15
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
16
|
+
standalone: true,
|
|
17
|
+
imports: [CommonModule, CatalogTitleComponent],
|
|
14
18
|
})
|
|
15
19
|
export class SiteTitleComponent {
|
|
16
20
|
info$: Observable<SettingsListResponseApiModel>
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy, Input } from '@angular/core'
|
|
2
2
|
import { Observable } from 'rxjs'
|
|
3
3
|
import { SourcesService } from '../sources/sources.service'
|
|
4
|
+
import { CommonModule } from '@angular/common'
|
|
4
5
|
|
|
5
6
|
@Component({
|
|
6
7
|
selector: 'gn-ui-source-label',
|
|
7
8
|
templateUrl: './source-label.component.html',
|
|
8
9
|
styleUrls: ['./source-label.component.css'],
|
|
9
10
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [CommonModule],
|
|
10
13
|
})
|
|
11
14
|
export class SourceLabelComponent {
|
|
12
15
|
sourceLabel$: Observable<string>
|
|
@@ -211,21 +211,21 @@ export class DataService {
|
|
|
211
211
|
|
|
212
212
|
async getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo> {
|
|
213
213
|
const endpoint = new OgcApiEndpoint(url)
|
|
214
|
-
return await endpoint.
|
|
214
|
+
return await endpoint.featureCollections
|
|
215
215
|
.then((collections) => {
|
|
216
|
-
return endpoint.getCollectionInfo(collections[0]
|
|
216
|
+
return endpoint.getCollectionInfo(collections[0])
|
|
217
217
|
})
|
|
218
218
|
.catch((error) => {
|
|
219
219
|
throw new Error(`ogc.unreachable.unknown`)
|
|
220
220
|
})
|
|
221
221
|
}
|
|
222
222
|
|
|
223
|
-
async getItemsFromOgcApi(url: string): Promise<OgcApiRecord> {
|
|
223
|
+
async getItemsFromOgcApi(url: string): Promise<OgcApiRecord[]> {
|
|
224
224
|
const endpoint = new OgcApiEndpoint(url)
|
|
225
225
|
return await endpoint.featureCollections
|
|
226
226
|
.then((collections) => {
|
|
227
227
|
return collections.length
|
|
228
|
-
? endpoint.
|
|
228
|
+
? endpoint.getCollectionItems(collections[0])
|
|
229
229
|
: null
|
|
230
230
|
})
|
|
231
231
|
.catch(() => {
|
|
@@ -11,14 +11,14 @@ import {
|
|
|
11
11
|
selectRecordSource,
|
|
12
12
|
} from './editor.selectors'
|
|
13
13
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
14
|
-
import {
|
|
14
|
+
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
15
15
|
|
|
16
16
|
@Injectable()
|
|
17
17
|
export class EditorEffects {
|
|
18
18
|
private actions$ = inject(Actions)
|
|
19
19
|
private editorService = inject(EditorService)
|
|
20
20
|
private recordsRepository = inject(RecordsRepositoryInterface)
|
|
21
|
-
private
|
|
21
|
+
private plateformService = inject(PlatformServiceInterface)
|
|
22
22
|
private store = inject(Store)
|
|
23
23
|
|
|
24
24
|
saveRecord$ = createEffect(() =>
|
|
@@ -64,7 +64,7 @@ export class EditorEffects {
|
|
|
64
64
|
withLatestFrom(this.store.select(selectRecord)),
|
|
65
65
|
switchMap(([_, record]) => {
|
|
66
66
|
if (record.uniqueIdentifier !== null) {
|
|
67
|
-
this.
|
|
67
|
+
this.plateformService.cleanRecordAttachments(record).subscribe({
|
|
68
68
|
next: (_) => undefined,
|
|
69
69
|
error: (err) => {
|
|
70
70
|
console.error(err)
|
package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts
CHANGED
|
@@ -12,7 +12,11 @@ import { map } from 'rxjs'
|
|
|
12
12
|
import { Keyword } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
13
13
|
import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
14
14
|
import { TranslatePipe } from '@ngx-translate/core'
|
|
15
|
-
import {
|
|
15
|
+
import {
|
|
16
|
+
NgIconComponent,
|
|
17
|
+
provideIcons,
|
|
18
|
+
provideNgIconsConfig,
|
|
19
|
+
} from '@ng-icons/core'
|
|
16
20
|
import { matWarningAmberOutline } from '@ng-icons/material-icons/outline'
|
|
17
21
|
|
|
18
22
|
type AutocompleteItem = { title: string; value: Keyword }
|
|
@@ -34,6 +38,9 @@ type AutocompleteItem = { title: string; value: Keyword }
|
|
|
34
38
|
provideIcons({
|
|
35
39
|
matWarningAmberOutline,
|
|
36
40
|
}),
|
|
41
|
+
provideNgIconsConfig({
|
|
42
|
+
size: '1.5em',
|
|
43
|
+
}),
|
|
37
44
|
],
|
|
38
45
|
})
|
|
39
46
|
export class GenericKeywordsComponent {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<div class="flex flex-col gap-3">
|
|
2
|
+
<div class="flex flex-col gap-4">
|
|
3
|
+
<gn-ui-dropdown-multiselect
|
|
4
|
+
class="w-full"
|
|
5
|
+
[title]="'editor.record.form.topics.placeholder' | translate"
|
|
6
|
+
[maxRows]="6"
|
|
7
|
+
[selected]="topics"
|
|
8
|
+
[choices]="availableTopics || []"
|
|
9
|
+
[allowSearch]="true"
|
|
10
|
+
(selectValues)="handleItemSelection($event)"
|
|
11
|
+
>
|
|
12
|
+
</gn-ui-dropdown-multiselect>
|
|
13
|
+
<div class="flex gap-2 flex-wrap">
|
|
14
|
+
<gn-ui-badge
|
|
15
|
+
*ngFor="let topic of topics"
|
|
16
|
+
[removable]="true"
|
|
17
|
+
(badgeRemoveClicked)="removeTopic(topic)"
|
|
18
|
+
>{{ getTranslatedTopic(topic) }}
|
|
19
|
+
</gn-ui-badge>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Component, EventEmitter, Input, Output } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import {
|
|
4
|
+
AutocompleteComponent,
|
|
5
|
+
BadgeComponent,
|
|
6
|
+
DropdownMultiselectComponent,
|
|
7
|
+
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
8
|
+
import { NgIconComponent } from '@ng-icons/core'
|
|
9
|
+
import { INSPIRE_TOPICS } from '../../../../fields.config'
|
|
10
|
+
import { TranslatePipe, TranslateService } from '@ngx-translate/core'
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'gn-ui-form-field-topics',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [
|
|
16
|
+
CommonModule,
|
|
17
|
+
AutocompleteComponent,
|
|
18
|
+
NgIconComponent,
|
|
19
|
+
BadgeComponent,
|
|
20
|
+
TranslatePipe,
|
|
21
|
+
DropdownMultiselectComponent,
|
|
22
|
+
],
|
|
23
|
+
templateUrl: './form-field-topics.component.html',
|
|
24
|
+
styleUrl: './form-field-topics.component.css',
|
|
25
|
+
})
|
|
26
|
+
export class FormFieldTopicsComponent {
|
|
27
|
+
topics = []
|
|
28
|
+
@Input() set value(topics: string[]) {
|
|
29
|
+
this.topics = topics
|
|
30
|
+
}
|
|
31
|
+
@Output() valueChange: EventEmitter<string[]> = new EventEmitter()
|
|
32
|
+
availableTopics = INSPIRE_TOPICS.map((topic) => {
|
|
33
|
+
return {
|
|
34
|
+
label: this.translateService.instant(topic.label),
|
|
35
|
+
value: topic.value,
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
constructor(private translateService: TranslateService) {}
|
|
40
|
+
|
|
41
|
+
handleItemSelection(selectedItems: string[]) {
|
|
42
|
+
this.topics = selectedItems
|
|
43
|
+
this.valueChange.emit(this.topics)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
removeTopic(topic: string) {
|
|
47
|
+
this.topics = this.topics.filter((t) => t !== topic)
|
|
48
|
+
this.valueChange.emit(this.topics)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
getTranslatedTopic(topic: string) {
|
|
52
|
+
const topicKey = this.availableTopics.find(
|
|
53
|
+
(avail) => avail.value === topic
|
|
54
|
+
)?.label
|
|
55
|
+
return topicKey ? this.translateService.instant(topicKey) : ''
|
|
56
|
+
}
|
|
57
|
+
}
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
CHANGED
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
></gn-ui-form-field-keywords>
|
|
111
111
|
</ng-container>
|
|
112
112
|
<ng-container *ngSwitchCase="'topics'">
|
|
113
|
-
<gn-ui-form-field-
|
|
114
|
-
[value]="
|
|
113
|
+
<gn-ui-form-field-topics
|
|
114
|
+
[value]="valueAsTopics"
|
|
115
115
|
(valueChange)="valueChange.emit($event)"
|
|
116
|
-
></gn-ui-form-field-
|
|
116
|
+
></gn-ui-form-field-topics>
|
|
117
117
|
</ng-container>
|
|
118
118
|
<ng-container *ngSwitchCase="'licenses'">
|
|
119
119
|
<gn-ui-form-field-license
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { FormFieldConstraintsShortcutsComponent } from './form-field-constraints
|
|
|
45
45
|
import { FormFieldConstraintsComponent } from './form-field-constraints/form-field-constraints.component'
|
|
46
46
|
import { TextFieldModule } from '@angular/cdk/text-field'
|
|
47
47
|
import { FormFieldSpatialToggleComponent } from './form-field-spatial-toggle/form-field-spatial-toggle.component'
|
|
48
|
-
import {
|
|
48
|
+
import { FormFieldTopicsComponent } from './form-field-topics/form-field-topics.component'
|
|
49
49
|
|
|
50
50
|
@Component({
|
|
51
51
|
selector: 'gn-ui-form-field',
|
|
@@ -74,7 +74,7 @@ import { FormFieldInspireThemeComponent } from './form-field-inspire-field/form-
|
|
|
74
74
|
FormFieldConstraintsComponent,
|
|
75
75
|
FormFieldConstraintsShortcutsComponent,
|
|
76
76
|
FormFieldSpatialToggleComponent,
|
|
77
|
-
|
|
77
|
+
FormFieldTopicsComponent,
|
|
78
78
|
TextFieldModule,
|
|
79
79
|
],
|
|
80
80
|
})
|
|
@@ -130,7 +130,7 @@ export class FormFieldComponent {
|
|
|
130
130
|
get valueAsKeywords() {
|
|
131
131
|
return this.value as Array<Keyword>
|
|
132
132
|
}
|
|
133
|
-
get
|
|
133
|
+
get valueAsTopics() {
|
|
134
134
|
return this.value as Array<string>
|
|
135
135
|
}
|
|
136
136
|
get valueAsConstraints() {
|
|
@@ -10,4 +10,4 @@ export * from './form-field-array/form-field-array.component'
|
|
|
10
10
|
export * from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
11
11
|
export * from './form-field.component'
|
|
12
12
|
export * from './form-field-constraints-shortcuts/constraints.utils'
|
|
13
|
-
export * from './form-field-
|
|
13
|
+
export * from './form-field-topics/form-field-topics.component'
|
|
@@ -1,35 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'
|
|
1
|
+
import { provideHttpClient } from '@angular/common/http'
|
|
3
2
|
import { NgModule } from '@angular/core'
|
|
4
|
-
import { MatNativeDateModule } from '@angular/material/core'
|
|
5
|
-
import { MatDatepickerModule } from '@angular/material/datepicker'
|
|
6
|
-
import { MatFormFieldModule } from '@angular/material/form-field'
|
|
7
|
-
import { TextInputComponent } from '../../../../../libs/ui/inputs/src'
|
|
8
3
|
import { EffectsModule } from '@ngrx/effects'
|
|
9
4
|
import { StoreModule } from '@ngrx/store'
|
|
10
|
-
import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
|
|
11
5
|
import { EditorEffects } from './+state/editor.effects'
|
|
12
6
|
import { EditorFacade } from './+state/editor.facade'
|
|
13
7
|
import * as fromEditor from './+state/editor.reducer'
|
|
14
|
-
import { Gn4PlatformService } from '../../../../../libs/api/repository/src'
|
|
15
8
|
|
|
16
9
|
@NgModule({
|
|
17
10
|
imports: [
|
|
18
|
-
CommonModule,
|
|
19
|
-
TranslateDirective,
|
|
20
|
-
TranslatePipe,
|
|
21
|
-
MatDatepickerModule,
|
|
22
|
-
MatNativeDateModule,
|
|
23
|
-
MatFormFieldModule,
|
|
24
|
-
HttpClientModule,
|
|
25
|
-
HttpClientXsrfModule,
|
|
26
11
|
StoreModule.forFeature(
|
|
27
12
|
fromEditor.EDITOR_FEATURE_KEY,
|
|
28
13
|
fromEditor.editorReducer
|
|
29
14
|
),
|
|
30
15
|
EffectsModule.forFeature([EditorEffects]),
|
|
31
|
-
TextInputComponent,
|
|
32
16
|
],
|
|
33
|
-
providers: [EditorFacade,
|
|
17
|
+
providers: [EditorFacade, provideHttpClient()],
|
|
34
18
|
})
|
|
35
19
|
export class FeatureEditorModule {}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
EditorSection,
|
|
6
6
|
} from './models/editor-config.model'
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
INSPIRE_topic,
|
|
9
9
|
Keyword,
|
|
10
10
|
} from '../../../../../libs/common/domain/src/lib/model/record'
|
|
11
11
|
|
|
@@ -243,9 +243,9 @@ export const CLASSIFICATION_SECTION: EditorSection = {
|
|
|
243
243
|
fields: [RECORD_KEYWORDS_FIELD],
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
export const
|
|
247
|
-
labelKey: marker('editor.record.form.section.
|
|
248
|
-
descriptionKey: marker('editor.record.form.section.
|
|
246
|
+
export const TOPICS_SECTION: EditorSection = {
|
|
247
|
+
labelKey: marker('editor.record.form.section.topics.label'),
|
|
248
|
+
descriptionKey: marker('editor.record.form.section.topics.description'),
|
|
249
249
|
hidden: false,
|
|
250
250
|
fields: [RECORD_TOPICS_FIELD],
|
|
251
251
|
}
|
|
@@ -289,7 +289,7 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
|
|
|
289
289
|
sections: [
|
|
290
290
|
TITLE_SECTION,
|
|
291
291
|
CLASSIFICATION_SECTION,
|
|
292
|
-
|
|
292
|
+
TOPICS_SECTION,
|
|
293
293
|
ABOUT_SECTION,
|
|
294
294
|
GEOGRAPHICAL_COVERAGE_SECTION,
|
|
295
295
|
],
|
|
@@ -359,69 +359,75 @@ export const SPATIAL_SCOPES: Keyword[] = [
|
|
|
359
359
|
]
|
|
360
360
|
|
|
361
361
|
/************************************************************
|
|
362
|
-
*************** INSPIRE
|
|
362
|
+
*************** INSPIRE TOPICS **************
|
|
363
363
|
************************************************************
|
|
364
364
|
*/
|
|
365
365
|
|
|
366
|
-
export const
|
|
367
|
-
{ value: 'biota', label: 'editor.record.form.inspire.biota' },
|
|
368
|
-
{
|
|
366
|
+
export const INSPIRE_TOPICS: INSPIRE_topic[] = [
|
|
367
|
+
{ value: 'biota', label: 'editor.record.form.topics.inspire.biota' },
|
|
368
|
+
{
|
|
369
|
+
value: 'boundaries',
|
|
370
|
+
label: 'editor.record.form.topics.inspire.boundaries',
|
|
371
|
+
},
|
|
369
372
|
{
|
|
370
373
|
value: 'climatologyMeteorologyAtmosphere',
|
|
371
|
-
label: 'editor.record.form.inspire.climatology',
|
|
374
|
+
label: 'editor.record.form.topics.inspire.climatology',
|
|
375
|
+
},
|
|
376
|
+
{ value: 'economy', label: 'editor.record.form.topics.inspire.economy' },
|
|
377
|
+
{ value: 'elevation', label: 'editor.record.form.topics.inspire.elevation' },
|
|
378
|
+
{
|
|
379
|
+
value: 'environment',
|
|
380
|
+
label: 'editor.record.form.topics.inspire.environnement',
|
|
372
381
|
},
|
|
373
|
-
{ value: '
|
|
374
|
-
{ value: 'elevation', label: 'editor.record.form.inspire.elevation' },
|
|
375
|
-
{ value: 'environment', label: 'editor.record.form.inspire.environnement' },
|
|
376
|
-
{ value: 'farming', label: 'editor.record.form.inspire.farming' },
|
|
382
|
+
{ value: 'farming', label: 'editor.record.form.topics.inspire.farming' },
|
|
377
383
|
{
|
|
378
384
|
value: 'geoscientific information',
|
|
379
|
-
label: 'editor.record.form.inspire.geoscientific',
|
|
385
|
+
label: 'editor.record.form.topics.inspire.geoscientific',
|
|
380
386
|
},
|
|
381
|
-
{ value: 'health', label: 'editor.record.form.inspire.health' },
|
|
387
|
+
{ value: 'health', label: 'editor.record.form.topics.inspire.health' },
|
|
382
388
|
{
|
|
383
389
|
value: 'imageryBaseMapsEarthCover',
|
|
384
|
-
label: 'editor.record.form.inspire.imagery',
|
|
390
|
+
label: 'editor.record.form.topics.inspire.imagery',
|
|
385
391
|
},
|
|
392
|
+
{ value: 'inlandWaters', label: 'editor.record.form.topics.inspire.waters' },
|
|
386
393
|
{
|
|
387
394
|
value: 'intelligenceMilitary',
|
|
388
|
-
label: 'editor.record.form.inspire.intelligence',
|
|
395
|
+
label: 'editor.record.form.topics.inspire.intelligence',
|
|
389
396
|
},
|
|
390
|
-
{ value: 'Location', label: 'editor.record.form.inspire.location' },
|
|
391
|
-
{ value: 'Oceans', label: 'editor.record.form.inspire.oceans' },
|
|
397
|
+
{ value: 'Location', label: 'editor.record.form.topics.inspire.location' },
|
|
398
|
+
{ value: 'Oceans', label: 'editor.record.form.topics.inspire.oceans' },
|
|
392
399
|
{
|
|
393
400
|
value: 'planningCadastre',
|
|
394
|
-
label: 'editor.record.form.inspire.planning',
|
|
401
|
+
label: 'editor.record.form.topics.inspire.planning',
|
|
395
402
|
},
|
|
396
|
-
{ value: 'Society', label: 'editor.record.form.inspire.society' },
|
|
397
|
-
{ value: 'Structure', label: 'editor.record.form.inspire.structure' },
|
|
403
|
+
{ value: 'Society', label: 'editor.record.form.topics.inspire.society' },
|
|
404
|
+
{ value: 'Structure', label: 'editor.record.form.topics.inspire.structure' },
|
|
398
405
|
{
|
|
399
406
|
value: 'Transportation',
|
|
400
|
-
label: 'editor.record.form.inspire.transportation',
|
|
407
|
+
label: 'editor.record.form.topics.inspire.transportation',
|
|
401
408
|
},
|
|
402
409
|
{
|
|
403
410
|
value: 'utilitiesCommunication',
|
|
404
|
-
label: 'editor.record.form.inspire.utilities',
|
|
411
|
+
label: 'editor.record.form.topics.inspire.utilities',
|
|
405
412
|
},
|
|
406
|
-
{ value: 'inlandWaters', label: 'editor.record.form.inspire.waters' },
|
|
407
413
|
]
|
|
408
414
|
|
|
409
|
-
marker('editor.record.form.inspire.biota')
|
|
410
|
-
marker('editor.record.form.inspire.boundaries')
|
|
411
|
-
marker('editor.record.form.inspire.climatology')
|
|
412
|
-
marker('editor.record.form.inspire.economy')
|
|
413
|
-
marker('editor.record.form.inspire.elevation')
|
|
414
|
-
marker('editor.record.form.inspire.environnement')
|
|
415
|
-
marker('editor.record.form.inspire.farming')
|
|
416
|
-
marker('editor.record.form.inspire.geoscientific')
|
|
417
|
-
marker('editor.record.form.inspire.health')
|
|
418
|
-
marker('editor.record.form.inspire.imagery')
|
|
419
|
-
marker('editor.record.form.inspire.intelligence')
|
|
420
|
-
marker('editor.record.form.inspire.location')
|
|
421
|
-
marker('editor.record.form.inspire.oceans')
|
|
422
|
-
marker('editor.record.form.inspire.planning')
|
|
423
|
-
marker('editor.record.form.inspire.society')
|
|
424
|
-
marker('editor.record.form.inspire.structure')
|
|
425
|
-
marker('editor.record.form.inspire.transportation')
|
|
426
|
-
marker('editor.record.form.inspire.utilities')
|
|
427
|
-
marker('editor.record.form.inspire.waters')
|
|
415
|
+
marker('editor.record.form.topics.inspire.biota')
|
|
416
|
+
marker('editor.record.form.topics.inspire.boundaries')
|
|
417
|
+
marker('editor.record.form.topics.inspire.climatology')
|
|
418
|
+
marker('editor.record.form.topics.inspire.economy')
|
|
419
|
+
marker('editor.record.form.topics.inspire.elevation')
|
|
420
|
+
marker('editor.record.form.topics.inspire.environnement')
|
|
421
|
+
marker('editor.record.form.topics.inspire.farming')
|
|
422
|
+
marker('editor.record.form.topics.inspire.geoscientific')
|
|
423
|
+
marker('editor.record.form.topics.inspire.health')
|
|
424
|
+
marker('editor.record.form.topics.inspire.imagery')
|
|
425
|
+
marker('editor.record.form.topics.inspire.intelligence')
|
|
426
|
+
marker('editor.record.form.topics.inspire.location')
|
|
427
|
+
marker('editor.record.form.topics.inspire.oceans')
|
|
428
|
+
marker('editor.record.form.topics.inspire.planning')
|
|
429
|
+
marker('editor.record.form.topics.inspire.society')
|
|
430
|
+
marker('editor.record.form.topics.inspire.structure')
|
|
431
|
+
marker('editor.record.form.topics.inspire.transportation')
|
|
432
|
+
marker('editor.record.form.topics.inspire.utilities')
|
|
433
|
+
marker('editor.record.form.topics.inspire.waters')
|
package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
FeatureSearchModule,
|
|
4
4
|
FIELDS_BRIEF,
|
|
5
5
|
FuzzySearchComponent,
|
|
6
|
+
ResultsListContainerComponent,
|
|
6
7
|
SearchFacade,
|
|
7
8
|
SearchService,
|
|
8
9
|
} from '../../../../../../libs/feature/search/src'
|
|
@@ -11,6 +12,7 @@ import {
|
|
|
11
12
|
ResultsLayoutConfigItem,
|
|
12
13
|
} from '../../../../../../libs/ui/search/src'
|
|
13
14
|
import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-layer-record-preview.component'
|
|
15
|
+
import { CommonModule } from '@angular/common'
|
|
14
16
|
|
|
15
17
|
@Component({
|
|
16
18
|
selector: 'gn-ui-add-layer-from-catalog',
|
|
@@ -33,7 +35,12 @@ import { AddLayerRecordPreviewComponent } from './add-layer-record-preview/add-l
|
|
|
33
35
|
},
|
|
34
36
|
},
|
|
35
37
|
],
|
|
36
|
-
imports: [
|
|
38
|
+
imports: [
|
|
39
|
+
CommonModule,
|
|
40
|
+
FeatureSearchModule,
|
|
41
|
+
FuzzySearchComponent,
|
|
42
|
+
ResultsListContainerComponent,
|
|
43
|
+
],
|
|
37
44
|
})
|
|
38
45
|
export class AddLayerFromCatalogComponent implements OnInit {
|
|
39
46
|
constructor(private searchFacade: SearchFacade) {}
|