geonetwork-ui 2.7.0-dev.8de7be79f → 2.7.0-dev.943f3a71b
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/dcat-ap/read-parts.mjs +4 -7
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +20 -20
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
- package/esm2022/libs/api/repository/src/index.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +5 -5
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +55 -12
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +3 -3
- 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-from-groups.service.mjs +3 -3
- package/esm2022/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.mjs +3 -3
- 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 +43 -25
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/metadata-language.token.mjs +3 -0
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +11 -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/catalog/src/lib/sources/sources.service.mjs +3 -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 +8 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -36
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +83 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +10 -5
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +3 -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 +3 -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/feature/search/src/lib/state/reducer.mjs +5 -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 +10 -4
- 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/metadata-info/metadata-info.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +1 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +7 -7
- 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/app-config/src/lib/app-config.mjs +3 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -2
- package/esm2022/libs/util/app-config/src/lib/model.mjs +1 -1
- package/esm2022/libs/util/app-config/src/lib/parse-utils.mjs +5 -4
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +50 -9
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
- package/esm2022/libs/util/shared/src/lib/record/quality-score.util.mjs +9 -8
- package/esm2022/libs/util/shared/src/lib/utils/geojson.mjs +58 -1
- 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 +55 -21
- package/esm2022/translations/en.json +57 -22
- package/esm2022/translations/es.json +42 -8
- package/esm2022/translations/fr.json +61 -27
- package/esm2022/translations/it.json +55 -21
- package/esm2022/translations/nl.json +42 -8
- package/esm2022/translations/pt.json +42 -8
- package/esm2022/translations/sk.json +46 -12
- package/fesm2022/geonetwork-ui.mjs +10696 -10716
- 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/dcat-ap/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -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/index.d.ts +1 -1
- package/libs/api/repository/src/index.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -2
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.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 +12 -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/api/repository/src/lib/metadata-language.token.d.ts +5 -0
- package/libs/api/repository/src/lib/metadata-language.token.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -1
- 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/catalog/src/lib/sources/sources.service.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 -0
- 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 -0
- 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 +8 -1
- 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/map/src/lib/utils/map-utils.service.d.ts +2 -2
- package/libs/feature/map/src/lib/utils/map-utils.service.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/router/src/lib/default/state/router.facade.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/feature/search/src/lib/state/reducer.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/metadata-quality/metadata-quality.component.d.ts +0 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.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/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/model.d.ts +1 -0
- package/libs/util/app-config/src/lib/model.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/parse-utils.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +91 -31
- package/libs/util/i18n/src/lib/language-codes.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/record/quality-score.util.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/geojson.d.ts +7 -2
- package/libs/util/shared/src/lib/utils/geojson.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 +11 -10
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +3 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +47 -22
- package/src/libs/api/metadata-converter/src/lib/gn4/metadata-url.service.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +3 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +6 -6
- package/src/libs/api/repository/src/index.ts +1 -1
- package/src/libs/api/repository/src/lib/gn4/auth/auth.service.ts +4 -4
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +65 -14
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +2 -2
- 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-from-groups.service.ts +2 -2
- package/src/libs/api/repository/src/lib/gn4/organizations/organizations-from-metadata.service.ts +2 -2
- 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 +45 -45
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +8 -0
- package/src/libs/api/repository/src/lib/metadata-language.token.ts +8 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +17 -1
- 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/catalog/src/lib/sources/sources.service.ts +2 -5
- 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.css +0 -0
- 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 +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +5 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -18
- package/src/libs/feature/editor/src/lib/fields.config.ts +91 -1
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +8 -1
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -8
- 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 +2 -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/feature/search/src/lib/state/reducer.ts +4 -1
- 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.html +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/metadata-info/metadata-info.component.html +5 -1
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -4
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +6 -6
- 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/app-config/src/lib/app-config.ts +2 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -1
- package/src/libs/util/app-config/src/lib/model.ts +1 -0
- package/src/libs/util/app-config/src/lib/parse-utils.ts +4 -7
- package/src/libs/util/i18n/src/lib/language-codes.ts +62 -11
- package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
- package/src/libs/util/shared/src/lib/record/quality-score.util.ts +13 -10
- package/src/libs/util/shared/src/lib/utils/geojson.ts +72 -2
- 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 +55 -21
- package/translations/en.json +57 -22
- package/translations/es.json +42 -8
- package/translations/fr.json +61 -27
- package/translations/it.json +55 -21
- package/translations/nl.json +42 -8
- package/translations/pt.json +42 -8
- package/translations/sk.json +46 -12
- package/esm2022/libs/api/repository/src/lib/metadata-language.mjs +0 -3
- 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/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/esm2022/libs/util/app-config/src/lib/constants.mjs +0 -439
- package/libs/api/repository/src/lib/metadata-language.d.ts +0 -3
- package/libs/api/repository/src/lib/metadata-language.d.ts.map +0 -1
- 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/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/libs/util/app-config/src/lib/constants.d.ts +0 -2
- package/libs/util/app-config/src/lib/constants.d.ts.map +0 -1
- package/src/libs/api/repository/src/lib/metadata-language.ts +0 -3
- 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/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/search/src/lib/facets/facets-container/facets-container.component.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Component, OnInit } from '@angular/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
FacetListComponent,
|
|
4
|
+
FacetSelectEvent,
|
|
5
|
+
ModelBlock,
|
|
6
|
+
} from '../../../../../../../libs/ui/search/src'
|
|
3
7
|
import { combineLatest, Observable } from 'rxjs'
|
|
4
8
|
import { map, take } from 'rxjs/operators'
|
|
5
9
|
import { SearchFacade } from '../../state/search.facade'
|
|
@@ -7,6 +11,8 @@ import { FacetsService } from '../facets.service'
|
|
|
7
11
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
8
12
|
import { FieldFilters } from '../../../../../../../libs/common/domain/src/lib/model/search'
|
|
9
13
|
import { EsRequestAggTerm } from '../../../../../../../libs/api/metadata-converter/src'
|
|
14
|
+
import { CommonModule } from '@angular/common'
|
|
15
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
10
16
|
|
|
11
17
|
marker('facets.block.title.OrgForResource')
|
|
12
18
|
marker('facets.block.title.availableInServices')
|
|
@@ -24,6 +30,13 @@ marker('facets.block.title.th_regions_tree.default')
|
|
|
24
30
|
selector: 'gn-ui-facets-container',
|
|
25
31
|
templateUrl: './facets-container.component.html',
|
|
26
32
|
styleUrls: ['./facets-container.component.css'],
|
|
33
|
+
standalone: true,
|
|
34
|
+
imports: [
|
|
35
|
+
FacetListComponent,
|
|
36
|
+
CommonModule,
|
|
37
|
+
TranslateModule,
|
|
38
|
+
FacetListComponent,
|
|
39
|
+
],
|
|
27
40
|
})
|
|
28
41
|
export class FacetsContainerComponent implements OnInit {
|
|
29
42
|
selectedPaths$: Observable<string[][]>
|
|
@@ -48,6 +48,7 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
48
48
|
isFavorite$ = this.favoritesService.myFavoritesUuid$.pipe(
|
|
49
49
|
map((favorites) => favorites.indexOf(this.record.uniqueIdentifier) > -1)
|
|
50
50
|
)
|
|
51
|
+
supportsAuthentication = this.platformService.supportsAuthentication()
|
|
51
52
|
isAnonymous$ = this.platformService.isAnonymous()
|
|
52
53
|
record_: Partial<CatalogRecord>
|
|
53
54
|
favoriteCount: number | null
|
|
@@ -79,20 +80,22 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
79
80
|
) {}
|
|
80
81
|
|
|
81
82
|
ngAfterViewInit(): void {
|
|
82
|
-
this.
|
|
83
|
-
.
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
83
|
+
if (this.supportsAuthentication) {
|
|
84
|
+
this.subscription = this.isAnonymous$
|
|
85
|
+
.pipe(withLatestFrom(this.loginMessage$))
|
|
86
|
+
.subscribe(([anonymous, loginMessage]) => {
|
|
87
|
+
if (anonymous) {
|
|
88
|
+
tippy(this.starToggleRef.nativeElement, {
|
|
89
|
+
appendTo: () => document.body,
|
|
90
|
+
content: loginMessage,
|
|
91
|
+
allowHTML: true,
|
|
92
|
+
interactive: true,
|
|
93
|
+
zIndex: 60,
|
|
94
|
+
maxWidth: 250,
|
|
95
|
+
})
|
|
96
|
+
}
|
|
97
|
+
})
|
|
98
|
+
}
|
|
96
99
|
this.countSubscription = this.favoritesService.myFavoritesUuid$
|
|
97
100
|
.pipe(pairwise())
|
|
98
101
|
.subscribe(([oldFavs, newFavs]) => {
|
|
@@ -115,8 +118,12 @@ export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
|
115
118
|
}
|
|
116
119
|
|
|
117
120
|
ngOnDestroy(): void {
|
|
118
|
-
this.subscription
|
|
119
|
-
|
|
121
|
+
if (this.subscription) {
|
|
122
|
+
this.subscription.unsubscribe()
|
|
123
|
+
}
|
|
124
|
+
if (this.countSubscription) {
|
|
125
|
+
this.countSubscription.unsubscribe()
|
|
126
|
+
}
|
|
120
127
|
}
|
|
121
128
|
|
|
122
129
|
toggleFavorite(isFavorite) {
|
|
@@ -1,76 +1,15 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common'
|
|
2
|
-
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'
|
|
3
|
-
import { UiSearchModule } from '../../../../../libs/ui/search/src'
|
|
4
1
|
import { EffectsModule } from '@ngrx/effects'
|
|
5
2
|
import { StoreModule } from '@ngrx/store'
|
|
6
|
-
import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
|
|
7
|
-
import { NgIconsModule } from '@ng-icons/core'
|
|
8
|
-
import { FacetsModule } from './facets/facets.module'
|
|
9
|
-
import { RecordsMetricsComponent } from './records-metrics/records-metrics.component'
|
|
10
|
-
import { ResultsLayoutComponent } from './results-layout/results-layout.component'
|
|
11
|
-
import { ResultsListContainerComponent } from './results-list/results-list.container.component'
|
|
12
|
-
import { SortByComponent } from './sort-by/sort-by.component'
|
|
13
3
|
import { SearchEffects } from './state/effects'
|
|
14
4
|
import { initialState, reducer, SEARCH_FEATURE_KEY } from './state/reducer'
|
|
15
|
-
import { ResultsHitsContainerComponent } from './results-hits/results-hits.container.component'
|
|
16
|
-
import { SearchStateContainerDirective } from './state/container/search-state.container.directive'
|
|
17
|
-
import {
|
|
18
|
-
AutocompleteComponent,
|
|
19
|
-
ButtonComponent,
|
|
20
|
-
DateRangeDropdownComponent,
|
|
21
|
-
DropdownMultiselectComponent,
|
|
22
|
-
DropdownSelectorComponent,
|
|
23
|
-
ViewportIntersectorComponent,
|
|
24
|
-
} from '../../../../../libs/ui/inputs/src'
|
|
25
5
|
import { NgModule } from '@angular/core'
|
|
26
|
-
import { ErrorComponent, KindBadgeComponent } from '../../../../../libs/ui/elements/src'
|
|
27
|
-
import { FilterDropdownComponent } from './filter-dropdown/filter-dropdown.component'
|
|
28
|
-
import { SpinningLoaderComponent } from '../../../../../libs/ui/widgets/src'
|
|
29
|
-
import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.component'
|
|
30
6
|
|
|
31
7
|
@NgModule({
|
|
32
|
-
declarations: [
|
|
33
|
-
SortByComponent,
|
|
34
|
-
ResultsLayoutComponent,
|
|
35
|
-
RecordsMetricsComponent,
|
|
36
|
-
ResultsListContainerComponent,
|
|
37
|
-
ResultsHitsContainerComponent,
|
|
38
|
-
SearchStateContainerDirective,
|
|
39
|
-
FilterDropdownComponent,
|
|
40
|
-
],
|
|
41
8
|
imports: [
|
|
42
|
-
CommonModule,
|
|
43
|
-
TranslateDirective,
|
|
44
|
-
TranslatePipe,
|
|
45
9
|
StoreModule.forFeature(SEARCH_FEATURE_KEY, reducer, {
|
|
46
10
|
initialState,
|
|
47
11
|
}),
|
|
48
12
|
EffectsModule.forFeature([SearchEffects]),
|
|
49
|
-
HttpClientModule,
|
|
50
|
-
HttpClientXsrfModule,
|
|
51
|
-
UiSearchModule,
|
|
52
|
-
FacetsModule,
|
|
53
|
-
AutocompleteComponent,
|
|
54
|
-
SpinningLoaderComponent,
|
|
55
|
-
ErrorComponent,
|
|
56
|
-
FavoriteStarComponent,
|
|
57
|
-
DateRangeDropdownComponent,
|
|
58
|
-
NgIconsModule,
|
|
59
|
-
KindBadgeComponent,
|
|
60
|
-
DropdownSelectorComponent,
|
|
61
|
-
DropdownMultiselectComponent,
|
|
62
|
-
ViewportIntersectorComponent,
|
|
63
|
-
ButtonComponent,
|
|
64
|
-
],
|
|
65
|
-
exports: [
|
|
66
|
-
SortByComponent,
|
|
67
|
-
ResultsLayoutComponent,
|
|
68
|
-
RecordsMetricsComponent,
|
|
69
|
-
ResultsListContainerComponent,
|
|
70
|
-
ResultsHitsContainerComponent,
|
|
71
|
-
FacetsModule,
|
|
72
|
-
SearchStateContainerDirective,
|
|
73
|
-
FilterDropdownComponent,
|
|
74
13
|
],
|
|
75
14
|
})
|
|
76
15
|
export class FeatureSearchModule {}
|
|
@@ -4,7 +4,11 @@ import {
|
|
|
4
4
|
Input,
|
|
5
5
|
OnInit,
|
|
6
6
|
} from '@angular/core'
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Choice,
|
|
9
|
+
DateRangeDropdownComponent,
|
|
10
|
+
DropdownMultiselectComponent,
|
|
11
|
+
} from '../../../../../../libs/ui/inputs/src'
|
|
8
12
|
import { Observable, of, switchMap } from 'rxjs'
|
|
9
13
|
import { catchError, filter, map, startWith } from 'rxjs/operators'
|
|
10
14
|
import { SearchFacade } from '../state/search.facade'
|
|
@@ -16,12 +20,19 @@ import {
|
|
|
16
20
|
FieldValue,
|
|
17
21
|
} from '../utils/service/fields'
|
|
18
22
|
import { DateRange } from '../../../../../../libs/api/repository/src'
|
|
23
|
+
import { CommonModule } from '@angular/common'
|
|
19
24
|
|
|
20
25
|
@Component({
|
|
21
26
|
selector: 'gn-ui-filter-dropdown',
|
|
22
27
|
templateUrl: './filter-dropdown.component.html',
|
|
23
28
|
styleUrls: ['./filter-dropdown.component.css'],
|
|
24
29
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
30
|
+
standalone: true,
|
|
31
|
+
imports: [
|
|
32
|
+
CommonModule,
|
|
33
|
+
DateRangeDropdownComponent,
|
|
34
|
+
DropdownMultiselectComponent,
|
|
35
|
+
],
|
|
25
36
|
})
|
|
26
37
|
export class FilterDropdownComponent implements OnInit {
|
|
27
38
|
@Input() fieldName: string
|
|
@@ -8,11 +8,16 @@ import {
|
|
|
8
8
|
TermBucket,
|
|
9
9
|
} from '../../../../../../libs/common/domain/src/lib/model/search'
|
|
10
10
|
import { RecordMetric } from '../../../../../../libs/api/metadata-converter/src'
|
|
11
|
+
import { RecordMetricComponent } from '../../../../../../libs/ui/search/src'
|
|
12
|
+
import { CommonModule } from '@angular/common'
|
|
13
|
+
import { TranslatePipe } from '@ngx-translate/core'
|
|
11
14
|
|
|
12
15
|
@Component({
|
|
13
16
|
selector: 'gn-ui-records-metrics',
|
|
14
17
|
templateUrl: './records-metrics.component.html',
|
|
15
18
|
styleUrls: ['./records-metrics.component.css'],
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, RecordMetricComponent, TranslatePipe],
|
|
16
21
|
})
|
|
17
22
|
export class RecordsMetricsComponent implements OnInit {
|
|
18
23
|
@Input() field: string
|
|
@@ -13,6 +13,11 @@ import { SearchFacade } from '../state/search.facade'
|
|
|
13
13
|
import { FieldAvailableValue, FieldValue } from '../utils/service/fields'
|
|
14
14
|
import { SearchService } from '../utils/service/search.service'
|
|
15
15
|
import { FieldsService } from '../utils/service/fields.service'
|
|
16
|
+
import {
|
|
17
|
+
ResultsHitsNumberComponent,
|
|
18
|
+
ResultsHitsSearchKindComponent,
|
|
19
|
+
} from '../../../../../../libs/ui/search/src'
|
|
20
|
+
import { CommonModule } from '@angular/common'
|
|
16
21
|
|
|
17
22
|
marker('search.filters.recordKind.all')
|
|
18
23
|
marker('search.filters.recordKind.dataset')
|
|
@@ -23,6 +28,12 @@ marker('search.filters.recordKind.reuse')
|
|
|
23
28
|
selector: 'gn-ui-results-hits',
|
|
24
29
|
templateUrl: './results-hits.container.component.html',
|
|
25
30
|
styleUrls: ['./results-hits.container.component.css'],
|
|
31
|
+
standalone: true,
|
|
32
|
+
imports: [
|
|
33
|
+
CommonModule,
|
|
34
|
+
ResultsHitsNumberComponent,
|
|
35
|
+
ResultsHitsSearchKindComponent,
|
|
36
|
+
],
|
|
26
37
|
})
|
|
27
38
|
export class ResultsHitsContainerComponent implements OnInit {
|
|
28
39
|
@Input() displayRecordKindFilter = true
|
|
@@ -4,10 +4,15 @@ import {
|
|
|
4
4
|
ResultsLayoutConfigModel,
|
|
5
5
|
} from '../../../../../../libs/ui/search/src'
|
|
6
6
|
import { SearchFacade } from '../state/search.facade'
|
|
7
|
+
import { CommonModule } from '@angular/common'
|
|
8
|
+
import { TranslatePipe } from '@ngx-translate/core'
|
|
9
|
+
import { DropdownSelectorComponent } from '../../../../../../libs/ui/inputs/src'
|
|
7
10
|
|
|
8
11
|
@Component({
|
|
9
12
|
selector: 'gn-ui-results-layout',
|
|
10
13
|
templateUrl: './results-layout.component.html',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, TranslatePipe, DropdownSelectorComponent],
|
|
11
16
|
})
|
|
12
17
|
export class ResultsLayoutComponent {
|
|
13
18
|
choices = Object.keys(this.resultsLayoutConfig).map((v) => {
|
|
@@ -11,11 +11,12 @@ import { combineLatest, Observable, tap } from 'rxjs'
|
|
|
11
11
|
import { filter, map } from 'rxjs/operators'
|
|
12
12
|
import { SearchFacade } from '../state/search.facade'
|
|
13
13
|
import { SearchError } from '../state/reducer'
|
|
14
|
-
import { ErrorType } from '../../../../../../libs/ui/elements/src'
|
|
14
|
+
import { ErrorComponent, ErrorType } from '../../../../../../libs/ui/elements/src'
|
|
15
15
|
import {
|
|
16
16
|
RESULTS_LAYOUT_CONFIG,
|
|
17
17
|
ResultsLayoutConfigItem,
|
|
18
18
|
ResultsLayoutConfigModel,
|
|
19
|
+
ResultsListComponent,
|
|
19
20
|
} from '../../../../../../libs/ui/search/src'
|
|
20
21
|
import {
|
|
21
22
|
RECORD_DATASET_URL_TOKEN,
|
|
@@ -23,6 +24,14 @@ import {
|
|
|
23
24
|
RECORD_REUSE_URL_TOKEN,
|
|
24
25
|
} from '../record-url.token'
|
|
25
26
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
27
|
+
import {
|
|
28
|
+
ButtonComponent,
|
|
29
|
+
ViewportIntersectorComponent,
|
|
30
|
+
} from '../../../../../../libs/ui/inputs/src'
|
|
31
|
+
import { SpinningLoaderComponent } from '../../../../../../libs/ui/widgets/src'
|
|
32
|
+
import { FavoriteStarComponent } from '../favorites/favorite-star/favorite-star.component'
|
|
33
|
+
import { CommonModule } from '@angular/common'
|
|
34
|
+
import { TranslateDirective } from '@ngx-translate/core'
|
|
26
35
|
|
|
27
36
|
export type ResultsListShowMoreStrategy = 'auto' | 'button' | 'none'
|
|
28
37
|
|
|
@@ -30,6 +39,17 @@ export type ResultsListShowMoreStrategy = 'auto' | 'button' | 'none'
|
|
|
30
39
|
selector: 'gn-ui-results-list-container',
|
|
31
40
|
templateUrl: './results-list.container.component.html',
|
|
32
41
|
styleUrls: ['./results-list.container.component.css'],
|
|
42
|
+
standalone: true,
|
|
43
|
+
imports: [
|
|
44
|
+
CommonModule,
|
|
45
|
+
ResultsListComponent,
|
|
46
|
+
ButtonComponent,
|
|
47
|
+
ViewportIntersectorComponent,
|
|
48
|
+
SpinningLoaderComponent,
|
|
49
|
+
ErrorComponent,
|
|
50
|
+
FavoriteStarComponent,
|
|
51
|
+
TranslateDirective,
|
|
52
|
+
],
|
|
33
53
|
})
|
|
34
54
|
export class ResultsListContainerComponent implements OnInit {
|
|
35
55
|
@Input() metadataQualityDisplay: boolean
|
|
@@ -24,7 +24,7 @@ import { TranslateService } from '@ngx-translate/core'
|
|
|
24
24
|
imports: [CommonModule, ResultsTableComponent],
|
|
25
25
|
})
|
|
26
26
|
export class ResultsTableContainerComponent implements OnDestroy {
|
|
27
|
-
@Input() isDuplicating
|
|
27
|
+
@Input() isDuplicating = false
|
|
28
28
|
|
|
29
29
|
@Output() recordClick = new EventEmitter<CatalogRecord>()
|
|
30
30
|
@Output() duplicateRecord = new EventEmitter<CatalogRecord>()
|
|
@@ -7,6 +7,9 @@ import {
|
|
|
7
7
|
import { SearchFacade } from '../state/search.facade'
|
|
8
8
|
import { SearchService } from '../utils/service/search.service'
|
|
9
9
|
import { filter, map } from 'rxjs/operators'
|
|
10
|
+
import { DropdownSelectorComponent } from '../../../../../../libs/ui/inputs/src'
|
|
11
|
+
import { CommonModule } from '@angular/common'
|
|
12
|
+
import { TranslatePipe } from '@ngx-translate/core'
|
|
10
13
|
|
|
11
14
|
interface SortChoice {
|
|
12
15
|
label: string
|
|
@@ -16,6 +19,8 @@ interface SortChoice {
|
|
|
16
19
|
@Component({
|
|
17
20
|
selector: 'gn-ui-sort-by',
|
|
18
21
|
templateUrl: './sort-by.component.html',
|
|
22
|
+
standalone: true,
|
|
23
|
+
imports: [CommonModule, DropdownSelectorComponent, TranslatePipe],
|
|
19
24
|
})
|
|
20
25
|
export class SortByComponent implements OnInit {
|
|
21
26
|
@Input() isQualitySortable: boolean
|
|
@@ -5,6 +5,7 @@ import { SearchFacade } from '../search.facade'
|
|
|
5
5
|
@Directive({
|
|
6
6
|
selector: '[gnUiSearchStateContainer]',
|
|
7
7
|
providers: [SearchFacade, SearchService],
|
|
8
|
+
standalone: true,
|
|
8
9
|
})
|
|
9
10
|
export class SearchStateContainerDirective implements OnInit {
|
|
10
11
|
@Input('gnUiSearchStateContainer') searchId: string
|
|
@@ -8,6 +8,7 @@ import {
|
|
|
8
8
|
SortByField,
|
|
9
9
|
} from '../../../../../../libs/common/domain/src/lib/model/search'
|
|
10
10
|
import { DEFAULT_PAGE_SIZE, FIELDS_SUMMARY } from '../constants'
|
|
11
|
+
import { getOptionalSearchConfig } from '../../../../../../libs/util/app-config/src'
|
|
11
12
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
12
13
|
|
|
13
14
|
export const SEARCH_FEATURE_KEY = 'searchState'
|
|
@@ -55,7 +56,9 @@ export const initSearch = (): SearchStateSearch => {
|
|
|
55
56
|
},
|
|
56
57
|
params: {
|
|
57
58
|
filters: {},
|
|
58
|
-
pageSize:
|
|
59
|
+
pageSize: getOptionalSearchConfig()?.LIMIT
|
|
60
|
+
? getOptionalSearchConfig().LIMIT
|
|
61
|
+
: DEFAULT_PAGE_SIZE,
|
|
59
62
|
currentPage: 0,
|
|
60
63
|
favoritesOnly: false,
|
|
61
64
|
useSpatialFilter: true,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from '@angular/core'
|
|
8
8
|
import { Organization } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
9
|
import { ThumbnailComponent } from '../../../../../../libs/ui/elements/src'
|
|
10
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
10
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
11
11
|
import { tablerFolderOpen } from '@ng-icons/tabler-icons'
|
|
12
12
|
import { TranslateDirective } from '@ngx-translate/core'
|
|
13
13
|
|
|
@@ -21,6 +21,9 @@ import { TranslateDirective } from '@ngx-translate/core'
|
|
|
21
21
|
provideIcons({
|
|
22
22
|
tablerFolderOpen,
|
|
23
23
|
}),
|
|
24
|
+
provideNgIconsConfig({
|
|
25
|
+
size: '1.5em',
|
|
26
|
+
}),
|
|
24
27
|
],
|
|
25
28
|
standalone: true,
|
|
26
29
|
})
|
|
@@ -67,7 +67,10 @@
|
|
|
67
67
|
[ngClass]="{
|
|
68
68
|
'!bg-primary': currentlyActive,
|
|
69
69
|
}"
|
|
70
|
-
|
|
70
|
+
translate
|
|
71
|
+
>record.metadata.api.accessServiceProtocol.{{
|
|
72
|
+
link.accessServiceProtocol
|
|
73
|
+
}}</span
|
|
71
74
|
>
|
|
72
75
|
<span
|
|
73
76
|
*ngIf="link.accessServiceProtocol === 'GPFDL'"
|
|
@@ -13,7 +13,7 @@ import { CommonModule } from '@angular/common'
|
|
|
13
13
|
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
14
14
|
import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
16
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
16
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
17
17
|
import { iconoirSettings } from '@ng-icons/iconoir'
|
|
18
18
|
|
|
19
19
|
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
@@ -36,6 +36,9 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
36
36
|
provideIcons({
|
|
37
37
|
iconoirSettings,
|
|
38
38
|
}),
|
|
39
|
+
provideNgIconsConfig({
|
|
40
|
+
size: '1.5em',
|
|
41
|
+
}),
|
|
39
42
|
],
|
|
40
43
|
})
|
|
41
44
|
export class ApiCardComponent implements OnInit, OnChanges {
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
9
|
import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
|
|
10
10
|
import { CommonModule } from '@angular/common'
|
|
11
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
11
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
12
12
|
import { iconoirDownload } from '@ng-icons/iconoir'
|
|
13
13
|
|
|
14
14
|
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
@@ -24,6 +24,9 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
24
24
|
provideIcons({
|
|
25
25
|
iconoirDownload,
|
|
26
26
|
}),
|
|
27
|
+
provideNgIconsConfig({
|
|
28
|
+
size: '1.5em',
|
|
29
|
+
}),
|
|
27
30
|
],
|
|
28
31
|
})
|
|
29
32
|
export class DownloadItemComponent {
|
|
@@ -3,7 +3,7 @@ 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
5
|
import { TranslateDirective, TranslatePipe } from '@ngx-translate/core'
|
|
6
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
6
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
7
7
|
import {
|
|
8
8
|
getIsMobile,
|
|
9
9
|
LinkClassifierService,
|
|
@@ -21,6 +21,9 @@ import {
|
|
|
21
21
|
provideIcons({
|
|
22
22
|
matLocationSearchingOutline,
|
|
23
23
|
}),
|
|
24
|
+
provideNgIconsConfig({
|
|
25
|
+
size: '1.5em',
|
|
26
|
+
}),
|
|
24
27
|
],
|
|
25
28
|
})
|
|
26
29
|
export class GeoDataBadgeComponent {
|
package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as basicLightbox from 'basiclightbox'
|
|
|
3
3
|
import { ContentGhostComponent } from '../content-ghost/content-ghost.component'
|
|
4
4
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
5
5
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
6
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
6
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
7
7
|
import { matZoomOutMap } from '@ng-icons/material-icons/baseline'
|
|
8
8
|
import { CommonModule } from '@angular/common'
|
|
9
9
|
|
|
@@ -19,7 +19,12 @@ import { CommonModule } from '@angular/common'
|
|
|
19
19
|
ButtonComponent,
|
|
20
20
|
NgIcon,
|
|
21
21
|
],
|
|
22
|
-
viewProviders: [
|
|
22
|
+
viewProviders: [
|
|
23
|
+
provideIcons({ matZoomOutMap }),
|
|
24
|
+
provideNgIconsConfig({
|
|
25
|
+
size: '1.5em',
|
|
26
|
+
}),
|
|
27
|
+
],
|
|
23
28
|
})
|
|
24
29
|
export class ImageOverlayPreviewComponent {
|
|
25
30
|
@Input() imageUrl: string
|
|
@@ -5,7 +5,11 @@ import {
|
|
|
5
5
|
Input,
|
|
6
6
|
TemplateRef,
|
|
7
7
|
} from '@angular/core'
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
NgIconComponent,
|
|
10
|
+
provideIcons,
|
|
11
|
+
provideNgIconsConfig,
|
|
12
|
+
} from '@ng-icons/core'
|
|
9
13
|
import {
|
|
10
14
|
iconoirDatabase,
|
|
11
15
|
iconoirAppleWallet,
|
|
@@ -37,6 +41,9 @@ enum KindConfig {
|
|
|
37
41
|
iconoirCode,
|
|
38
42
|
iconoirAppWindow,
|
|
39
43
|
}),
|
|
44
|
+
provideNgIconsConfig({
|
|
45
|
+
size: '1.5em',
|
|
46
|
+
}),
|
|
40
47
|
],
|
|
41
48
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
49
|
standalone: true,
|
|
@@ -231,7 +231,11 @@
|
|
|
231
231
|
</div>
|
|
232
232
|
</gn-ui-expandable-panel>
|
|
233
233
|
<gn-ui-expandable-panel
|
|
234
|
-
*ngIf="
|
|
234
|
+
*ngIf="
|
|
235
|
+
metadata.kind !== 'dataset' &&
|
|
236
|
+
metadata.spatialExtents &&
|
|
237
|
+
metadata.spatialExtents.length
|
|
238
|
+
"
|
|
235
239
|
[title]="'service.metadata.spatialExtent' | translate"
|
|
236
240
|
data-test="spatial-extent-panel"
|
|
237
241
|
>
|
|
@@ -74,10 +74,6 @@ export class MetadataQualityComponent implements OnChanges {
|
|
|
74
74
|
)
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
hasGetCapabilities(url: string): boolean {
|
|
78
|
-
return url.toLowerCase().includes('capabilities')
|
|
79
|
-
}
|
|
80
|
-
|
|
81
77
|
initialize() {
|
|
82
78
|
if (!this.propsToValidate) {
|
|
83
79
|
this.propsToValidate = getAllKeysValidator()
|
package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts
CHANGED
|
@@ -6,16 +6,16 @@ import { matCheck, matWarningAmber } from '@ng-icons/material-icons/baseline'
|
|
|
6
6
|
|
|
7
7
|
marker('record.metadata.quality.title.success')
|
|
8
8
|
marker('record.metadata.quality.title.failed')
|
|
9
|
-
marker('record.metadata.quality.
|
|
10
|
-
marker('record.metadata.quality.
|
|
11
|
-
marker('record.metadata.quality.
|
|
12
|
-
marker('record.metadata.quality.
|
|
9
|
+
marker('record.metadata.quality.abstract.success')
|
|
10
|
+
marker('record.metadata.quality.abstract.failed')
|
|
11
|
+
marker('record.metadata.quality.topics.success')
|
|
12
|
+
marker('record.metadata.quality.topics.failed')
|
|
13
13
|
marker('record.metadata.quality.keywords.success')
|
|
14
14
|
marker('record.metadata.quality.keywords.failed')
|
|
15
15
|
marker('record.metadata.quality.legalConstraints.success')
|
|
16
16
|
marker('record.metadata.quality.legalConstraints.failed')
|
|
17
|
-
marker('record.metadata.quality.
|
|
18
|
-
marker('record.metadata.quality.
|
|
17
|
+
marker('record.metadata.quality.contacts.success')
|
|
18
|
+
marker('record.metadata.quality.contacts.failed')
|
|
19
19
|
marker('record.metadata.quality.updateFrequency.success')
|
|
20
20
|
marker('record.metadata.quality.updateFrequency.failed')
|
|
21
21
|
marker('record.metadata.quality.organisation.success')
|
|
@@ -7,7 +7,11 @@ import {
|
|
|
7
7
|
} from '@angular/core'
|
|
8
8
|
import { CommonModule } from '@angular/common'
|
|
9
9
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
10
|
-
import {
|
|
10
|
+
import {
|
|
11
|
+
NgIconComponent,
|
|
12
|
+
provideIcons,
|
|
13
|
+
provideNgIconsConfig,
|
|
14
|
+
} from '@ng-icons/core'
|
|
11
15
|
import { matCheckCircleOutline } from '@ng-icons/material-icons/baseline'
|
|
12
16
|
import {
|
|
13
17
|
matErrorOutlineOutline,
|
|
@@ -28,6 +32,9 @@ import {
|
|
|
28
32
|
matInfoOutline,
|
|
29
33
|
matCloseOutline,
|
|
30
34
|
}),
|
|
35
|
+
provideNgIconsConfig({
|
|
36
|
+
size: '1.5em',
|
|
37
|
+
}),
|
|
31
38
|
],
|
|
32
39
|
templateUrl: './notification.component.html',
|
|
33
40
|
styleUrls: ['./notification.component.css'],
|
|
@@ -136,12 +136,6 @@ export class ServiceCapabilitiesComponent implements OnInit {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
selectLayer(layer: WfsFeatureTypeFull | WmsLayerFull | WmtsLayer) {
|
|
139
|
-
if (layer === this.selectedLayer) {
|
|
140
|
-
this.selectedLayer = null
|
|
141
|
-
this.layerInformation = []
|
|
142
|
-
return
|
|
143
|
-
}
|
|
144
|
-
|
|
145
139
|
this.selectedLayer = layer
|
|
146
140
|
const filteredInfo = []
|
|
147
141
|
Object.keys(layer).map((key) => {
|
|
@@ -10,9 +10,10 @@
|
|
|
10
10
|
}"
|
|
11
11
|
>
|
|
12
12
|
<ng-icon [name]="toggled ? 'matStar' : 'matStarBorder'"></ng-icon>
|
|
13
|
-
<span *ngIf="displayLabel" class="mx-2 text-[16px] content-center"
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
<span *ngIf="displayLabel" class="mx-2 text-[16px] content-center">{{
|
|
14
|
+
(toggled ? 'favorite.starToggle.remove' : 'favorite.starToggle.add')
|
|
15
|
+
| translate
|
|
16
|
+
}}</span>
|
|
16
17
|
</gn-ui-button>
|
|
17
18
|
<svg
|
|
18
19
|
#starOverlay
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
ViewChild,
|
|
9
9
|
} from '@angular/core'
|
|
10
10
|
import { propagateToDocumentOnly } from '../../../../../../libs/util/shared/src'
|
|
11
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
11
|
+
import { NgIcon, provideIcons, provideNgIconsConfig } from '@ng-icons/core'
|
|
12
12
|
import { CommonModule } from '@angular/common'
|
|
13
13
|
import { matStar, matStarBorder } from '@ng-icons/material-icons/baseline'
|
|
14
14
|
import { ButtonComponent } from '../button/button.component'
|
|
15
|
-
import {
|
|
15
|
+
import { TranslatePipe } from '@ngx-translate/core'
|
|
16
16
|
|
|
17
17
|
@Component({
|
|
18
18
|
selector: 'gn-ui-star-toggle',
|
|
@@ -20,8 +20,13 @@ import { TranslateDirective } from '@ngx-translate/core'
|
|
|
20
20
|
styleUrls: ['./star-toggle.component.css'],
|
|
21
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
22
|
standalone: true,
|
|
23
|
-
imports: [CommonModule, NgIcon, ButtonComponent,
|
|
24
|
-
viewProviders: [
|
|
23
|
+
imports: [CommonModule, NgIcon, ButtonComponent, TranslatePipe],
|
|
24
|
+
viewProviders: [
|
|
25
|
+
provideIcons({ matStar, matStarBorder }),
|
|
26
|
+
provideNgIconsConfig({
|
|
27
|
+
size: '1.5em',
|
|
28
|
+
}),
|
|
29
|
+
],
|
|
25
30
|
})
|
|
26
31
|
export class StarToggleComponent {
|
|
27
32
|
@Input() toggled!: boolean
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
export { FacetsModule as UiFacetsModule } from './lib/facets/facets.module'
|
|
2
1
|
export * from './lib/facets/facets.model'
|
|
3
2
|
export * from './lib/facets/fixtures'
|
|
4
3
|
export * from './lib/facets/facet-block/facet-block.component'
|
|
5
4
|
export * from './lib/facets/facet-list/facet-list.component'
|
|
6
5
|
export * from './lib/facets/facet-item/facet-item.component'
|
|
7
|
-
export * from './lib/ui-search.module'
|
|
8
6
|
export * from './lib/results-list/results-layout.config'
|
|
9
7
|
export * from './lib/results-list/results-list.component'
|
|
10
8
|
export * from './lib/record-preview/record-preview.component'
|