geonetwork-ui 2.6.0-dev.9df114cd4 → 2.6.0-dev.a0bd52a21
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/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +42 -6
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -12
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +79 -16
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +7 -1
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +45 -9
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +273 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/index.mjs +2 -4
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +33 -7
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/constants.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -3
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
- package/esm2022/libs/ui/elements/src/index.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
- package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +42 -83
- package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +68 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +37 -12
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +72 -0
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +26 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +3 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/cell-popin/cell-popin.component.mjs +110 -0
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +25 -3
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +73 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
- package/esm2022/libs/ui/map/src/index.mjs +2 -1
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
- package/esm2022/libs/ui/search/src/index.mjs +3 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
- package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +21 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -17
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +19 -5
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
- package/esm2022/translations/de.json +75 -8
- package/esm2022/translations/en.json +77 -10
- package/esm2022/translations/es.json +74 -7
- package/esm2022/translations/fr.json +76 -9
- package/esm2022/translations/it.json +81 -14
- package/esm2022/translations/nl.json +74 -7
- package/esm2022/translations/pt.json +74 -7
- package/fesm2022/geonetwork-ui.mjs +3585 -1487
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +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/gn4/types/metadata.model.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +13 -2
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -0
- 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 +1 -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 +23 -17
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +6 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -2
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +52 -0
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -3
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -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/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- 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 +4 -2
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
- 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 +6 -5
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +4 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +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 +7 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +6 -13
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +14 -0
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +13 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +3 -0
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +27 -0
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +5 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +2 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +2 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts +28 -0
- package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +5 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +22 -0
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +1 -0
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +2 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -3
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +22 -19
- package/libs/ui/search/src/lib/ui-search.module.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/fixtures.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
- package/libs/util/shared/src/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
- package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +3 -3
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +64 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +10 -6
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +7 -4
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +2 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +3 -11
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +118 -16
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +24 -11
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -0
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +36 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +64 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +54 -10
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +120 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +325 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
- package/src/libs/feature/record/src/index.ts +1 -3
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +35 -4
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/constants.ts +3 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -2
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +13 -3
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
- package/src/libs/ui/elements/src/index.ts +4 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +68 -141
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +38 -97
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +69 -0
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +61 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +48 -9
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +107 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +83 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +11 -1
- package/src/libs/ui/inputs/src/index.ts +2 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +3 -4
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.html +40 -0
- package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.ts +141 -0
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +4 -7
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +20 -0
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +27 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +91 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +2 -6
- package/src/libs/ui/map/src/index.ts +1 -0
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
- package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
- package/src/libs/ui/search/src/index.ts +2 -0
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
- package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
- package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +16 -6
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +15 -11
- package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +31 -24
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -14
- package/src/libs/ui/search/src/lib/ui-search.module.ts +8 -0
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
- package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
- package/src/libs/util/i18n/src/lib/language-codes.ts +23 -1
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +5 -17
- package/translations/de.json +75 -8
- package/translations/en.json +77 -10
- package/translations/es.json +74 -7
- package/translations/fr.json +76 -9
- package/translations/it.json +81 -14
- package/translations/nl.json +74 -7
- package/translations/pt.json +74 -7
- package/translations/sk.json +74 -7
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
- package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
|
@@ -1,18 +1,24 @@
|
|
|
1
|
-
<div class="w-full h-full flex flex-col
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
>
|
|
15
|
-
|
|
1
|
+
<div class="w-full h-full flex flex-col gap-[13px]">
|
|
2
|
+
<div
|
|
3
|
+
class="flex py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
|
|
4
|
+
>
|
|
5
|
+
<div class="grow min-w-0">
|
|
6
|
+
<gn-ui-dropdown-selector
|
|
7
|
+
[ngClass]="{ hidden: !displaySource }"
|
|
8
|
+
class="w-full"
|
|
9
|
+
extraBtnClass="font-sans font-bold"
|
|
10
|
+
[title]="'map.select.layer' | translate"
|
|
11
|
+
[choices]="dropdownChoices$ | async"
|
|
12
|
+
(selectValue)="selectLinkToDisplay($event)"
|
|
13
|
+
></gn-ui-dropdown-selector>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="self-end">
|
|
16
|
+
<gn-ui-external-viewer-button
|
|
17
|
+
extraClass="w-[44px] h-[44px]"
|
|
18
|
+
[link]="selectedLink$ | async"
|
|
19
|
+
>
|
|
20
|
+
</gn-ui-external-viewer-button>
|
|
21
|
+
</div>
|
|
16
22
|
</div>
|
|
17
23
|
<ng-container *ngIf="hidePreview; else mapView">
|
|
18
24
|
<gn-ui-popup-alert
|
|
@@ -49,7 +55,10 @@
|
|
|
49
55
|
>
|
|
50
56
|
<ng-icon name="matClose" class="align-middle text-sm"></ng-icon>
|
|
51
57
|
</gn-ui-button>
|
|
52
|
-
<gn-ui-feature-detail
|
|
58
|
+
<gn-ui-feature-detail
|
|
59
|
+
[featureCatalog]="mdViewFacade.featureCatalog$ | async"
|
|
60
|
+
[feature]="selection"
|
|
61
|
+
></gn-ui-feature-detail>
|
|
53
62
|
</div>
|
|
54
63
|
|
|
55
64
|
<div
|
|
@@ -39,8 +39,8 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
FeatureDetailComponent,
|
|
41
41
|
MapContainerComponent,
|
|
42
|
-
prioritizePageScroll,
|
|
43
42
|
MapLegendComponent,
|
|
43
|
+
prioritizePageScroll,
|
|
44
44
|
} from '../../../../../../libs/ui/map/src'
|
|
45
45
|
import { Feature } from 'geojson'
|
|
46
46
|
import { NgIconComponent, provideIcons } from '@ng-icons/core'
|
|
@@ -109,9 +109,20 @@ export class MapViewComponent implements AfterViewInit {
|
|
|
109
109
|
this.mdViewFacade.mapApiLinks$,
|
|
110
110
|
this.mdViewFacade.geoDataLinksWithGeometry$,
|
|
111
111
|
]).pipe(
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
switchMap(async ([mapApiLinks, geoDataLinksWithGeometry]) => {
|
|
113
|
+
// looking for TMS links to process
|
|
114
|
+
let processedMapApiLinks = await Promise.all(
|
|
115
|
+
mapApiLinks.map((link) => {
|
|
116
|
+
if (link.type === 'service' && link.accessServiceProtocol === 'tms') {
|
|
117
|
+
return this.dataService.getGeodataLinksFromTms(link)
|
|
118
|
+
}
|
|
119
|
+
return link
|
|
120
|
+
})
|
|
121
|
+
)
|
|
122
|
+
processedMapApiLinks = processedMapApiLinks.flat()
|
|
123
|
+
return [...processedMapApiLinks, ...geoDataLinksWithGeometry]
|
|
124
|
+
}),
|
|
125
|
+
shareReplay(1)
|
|
115
126
|
)
|
|
116
127
|
|
|
117
128
|
dropdownChoices$ = this.compatibleMapLinks$.pipe(
|
|
@@ -239,6 +250,26 @@ export class MapViewComponent implements AfterViewInit {
|
|
|
239
250
|
type: 'wms',
|
|
240
251
|
name: link.name,
|
|
241
252
|
})
|
|
253
|
+
} else if (
|
|
254
|
+
link.type === 'service' &&
|
|
255
|
+
link.accessServiceProtocol === 'tms'
|
|
256
|
+
) {
|
|
257
|
+
// FIXME: here we're assuming that the TMS serves vector tiles only; should be checked with ogc-client first
|
|
258
|
+
return of({
|
|
259
|
+
url: link.url.toString().replace(/\/?$/, '/{z}/{x}/{y}.pbf'),
|
|
260
|
+
type: 'xyz',
|
|
261
|
+
tileFormat: 'application/vnd.mapbox-vector-tile',
|
|
262
|
+
name: link.name,
|
|
263
|
+
})
|
|
264
|
+
} else if (
|
|
265
|
+
link.type === 'service' &&
|
|
266
|
+
link.accessServiceProtocol === 'maplibre-style'
|
|
267
|
+
) {
|
|
268
|
+
return of({
|
|
269
|
+
type: 'maplibre-style',
|
|
270
|
+
name: link.name,
|
|
271
|
+
styleUrl: link.url.toString(),
|
|
272
|
+
})
|
|
242
273
|
} else if (
|
|
243
274
|
link.type === 'service' &&
|
|
244
275
|
link.accessServiceProtocol === 'wmts'
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
OnDestroy,
|
|
7
7
|
} from '@angular/core'
|
|
8
8
|
import { Meta } from '@angular/platform-browser'
|
|
9
|
-
import {
|
|
9
|
+
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
10
10
|
|
|
11
11
|
@Component({
|
|
12
12
|
selector: 'gn-ui-record-meta',
|
|
@@ -15,7 +15,7 @@ import { DatasetRecord } from '../../../../../../libs/common/domain/src/lib/mode
|
|
|
15
15
|
standalone: true,
|
|
16
16
|
})
|
|
17
17
|
export class RecordMetaComponent implements OnDestroy, OnChanges {
|
|
18
|
-
@Input() metadata:
|
|
18
|
+
@Input() metadata: CatalogRecord
|
|
19
19
|
|
|
20
20
|
constructor(private meta: Meta) {}
|
|
21
21
|
|
|
@@ -54,6 +54,16 @@ export const setRelated = createAction(
|
|
|
54
54
|
props<{ related: CatalogRecord[] }>()
|
|
55
55
|
)
|
|
56
56
|
|
|
57
|
+
export const setSources = createAction(
|
|
58
|
+
'[Metadata view] Set sources',
|
|
59
|
+
props<{ sources: CatalogRecord[] }>()
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
export const setSourceOf = createAction(
|
|
63
|
+
'[Metadata view] Set has sources',
|
|
64
|
+
props<{ sourceOf: CatalogRecord[] }>()
|
|
65
|
+
)
|
|
66
|
+
|
|
57
67
|
/*
|
|
58
68
|
ChartConfig actions
|
|
59
69
|
*/
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
2
|
import { Actions, createEffect, ofType } from '@ngrx/effects'
|
|
3
3
|
import { exhaustMap, mergeMap, of } from 'rxjs'
|
|
4
|
-
import { catchError, filter, map, switchMap
|
|
4
|
+
import { catchError, filter, map, switchMap } from 'rxjs/operators'
|
|
5
5
|
import * as MdViewActions from './mdview.actions'
|
|
6
6
|
import { RecordsRepositoryInterface } from '../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
7
7
|
import { PlatformServiceInterface } from '../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
8
|
+
import { Router } from '@angular/router'
|
|
8
9
|
@Injectable()
|
|
9
10
|
export class MdViewEffects {
|
|
10
11
|
constructor(
|
|
11
12
|
private actions$: Actions,
|
|
12
13
|
private recordsRepository: RecordsRepositoryInterface,
|
|
13
|
-
private platformServiceInterface: PlatformServiceInterface
|
|
14
|
+
private platformServiceInterface: PlatformServiceInterface,
|
|
15
|
+
private router: Router
|
|
14
16
|
) {}
|
|
15
17
|
|
|
16
18
|
/*
|
|
@@ -21,7 +23,7 @@ export class MdViewEffects {
|
|
|
21
23
|
ofType(MdViewActions.loadFullMetadata),
|
|
22
24
|
switchMap(({ uuid }) => this.recordsRepository.getRecord(uuid)),
|
|
23
25
|
map((record) => {
|
|
24
|
-
if (record === null) {
|
|
26
|
+
if (record === null || !this.router.url.includes(record.kind)) {
|
|
25
27
|
return MdViewActions.loadFullMetadataFailure({ notFound: true })
|
|
26
28
|
}
|
|
27
29
|
return MdViewActions.loadFullMetadataSuccess({ full: record })
|
|
@@ -66,6 +68,28 @@ export class MdViewEffects {
|
|
|
66
68
|
)
|
|
67
69
|
)
|
|
68
70
|
|
|
71
|
+
loadSources$ = createEffect(() =>
|
|
72
|
+
this.actions$.pipe(
|
|
73
|
+
ofType(MdViewActions.loadFullMetadataSuccess),
|
|
74
|
+
switchMap(({ full }) => this.recordsRepository.getSources(full)),
|
|
75
|
+
map((sources) => {
|
|
76
|
+
return MdViewActions.setSources({ sources })
|
|
77
|
+
}),
|
|
78
|
+
catchError(() => of(MdViewActions.setSources({ sources: null })))
|
|
79
|
+
)
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
loadSourceOf$ = createEffect(() =>
|
|
83
|
+
this.actions$.pipe(
|
|
84
|
+
ofType(MdViewActions.loadFullMetadataSuccess),
|
|
85
|
+
switchMap(({ full }) => this.recordsRepository.getSourceOf(full)),
|
|
86
|
+
map((sourceOf) => {
|
|
87
|
+
return MdViewActions.setSourceOf({ sourceOf })
|
|
88
|
+
}),
|
|
89
|
+
catchError(() => of(MdViewActions.setSourceOf({ sourceOf: null })))
|
|
90
|
+
)
|
|
91
|
+
)
|
|
92
|
+
|
|
69
93
|
/*
|
|
70
94
|
UserFeedback effects
|
|
71
95
|
*/
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
filter,
|
|
7
7
|
map,
|
|
8
8
|
mergeMap,
|
|
9
|
+
shareReplay,
|
|
9
10
|
switchMap,
|
|
10
11
|
toArray,
|
|
11
12
|
} from 'rxjs/operators'
|
|
@@ -15,12 +16,11 @@ import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/sh
|
|
|
15
16
|
import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
|
|
16
17
|
import {
|
|
17
18
|
CatalogRecord,
|
|
18
|
-
DatasetServiceDistribution,
|
|
19
19
|
UserFeedback,
|
|
20
20
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
21
21
|
import { AvatarServiceInterface } from '../../../../../../libs/api/repository/src'
|
|
22
22
|
import { OgcApiRecord } from '@camptocamp/ogc-client'
|
|
23
|
-
import { from, of } from 'rxjs'
|
|
23
|
+
import { from, of, Observable } from 'rxjs'
|
|
24
24
|
import { DataService } from '../../../../../../libs/feature/dataviz/src'
|
|
25
25
|
|
|
26
26
|
@Injectable()
|
|
@@ -76,28 +76,24 @@ export class MdViewFacade {
|
|
|
76
76
|
|
|
77
77
|
related$ = this.store.pipe(select(MdViewSelectors.getRelated))
|
|
78
78
|
|
|
79
|
+
sources$ = this.store.pipe(select(MdViewSelectors.getSources))
|
|
80
|
+
|
|
81
|
+
sourceOf$ = this.store.pipe(select(MdViewSelectors.getSourceOf))
|
|
82
|
+
|
|
79
83
|
chartConfig$ = this.store.pipe(select(MdViewSelectors.getChartConfig))
|
|
80
84
|
|
|
81
85
|
allLinks$ = this.metadata$.pipe(
|
|
82
86
|
map((record) =>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
)
|
|
87
|
+
'onlineResources' in record ? record.onlineResources : []
|
|
88
|
+
),
|
|
89
|
+
shareReplay(1)
|
|
87
90
|
)
|
|
88
91
|
|
|
89
92
|
apiLinks$ = this.allLinks$.pipe(
|
|
90
93
|
map((links) =>
|
|
91
|
-
links
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
.sort((dd1, dd2) => {
|
|
95
|
-
return (dd2 as DatasetServiceDistribution).accessServiceProtocol ===
|
|
96
|
-
'GPFDL'
|
|
97
|
-
? 1
|
|
98
|
-
: undefined // do not change the sorting otherwise
|
|
99
|
-
})
|
|
100
|
-
)
|
|
94
|
+
links.filter((link) => this.linkClassifier.hasUsage(link, LinkUsage.API))
|
|
95
|
+
),
|
|
96
|
+
shareReplay(1)
|
|
101
97
|
)
|
|
102
98
|
|
|
103
99
|
mapApiLinks$ = this.allLinks$.pipe(
|
|
@@ -105,7 +101,8 @@ export class MdViewFacade {
|
|
|
105
101
|
links.filter((link) =>
|
|
106
102
|
this.linkClassifier.hasUsage(link, LinkUsage.MAP_API)
|
|
107
103
|
)
|
|
108
|
-
)
|
|
104
|
+
),
|
|
105
|
+
shareReplay(1)
|
|
109
106
|
)
|
|
110
107
|
|
|
111
108
|
downloadLinks$ = this.allLinks$.pipe(
|
|
@@ -219,4 +216,11 @@ export class MdViewFacade {
|
|
|
219
216
|
loadUserFeedbacks(datasetUuid: string) {
|
|
220
217
|
this.store.dispatch(MdViewActions.loadUserFeedbacks({ datasetUuid }))
|
|
221
218
|
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* loadFeatureCatalog
|
|
222
|
+
*/
|
|
223
|
+
loadFeatureCatalog(metadata: CatalogRecord) {
|
|
224
|
+
this.store.dispatch(MdViewActions.loadFeatureCatalog({ metadata }))
|
|
225
|
+
}
|
|
222
226
|
}
|
|
@@ -14,6 +14,8 @@ export interface MetadataViewState {
|
|
|
14
14
|
error: { notFound?: boolean; otherError?: string } | null
|
|
15
15
|
metadata?: Partial<CatalogRecord>
|
|
16
16
|
related?: CatalogRecord[]
|
|
17
|
+
sources?: CatalogRecord[]
|
|
18
|
+
sourceOf?: CatalogRecord[]
|
|
17
19
|
userFeedbacks?: UserFeedback[]
|
|
18
20
|
allUserFeedbacksLoading: boolean
|
|
19
21
|
addUserFeedbackLoading: boolean
|
|
@@ -75,6 +77,16 @@ const metadataViewReducer = createReducer(
|
|
|
75
77
|
related,
|
|
76
78
|
})),
|
|
77
79
|
|
|
80
|
+
on(MetadataViewActions.setSources, (state, { sources }) => ({
|
|
81
|
+
...state,
|
|
82
|
+
sources,
|
|
83
|
+
})),
|
|
84
|
+
|
|
85
|
+
on(MetadataViewActions.setSourceOf, (state, { sourceOf }) => ({
|
|
86
|
+
...state,
|
|
87
|
+
sourceOf,
|
|
88
|
+
})),
|
|
89
|
+
|
|
78
90
|
/*
|
|
79
91
|
ChartConfig reducers
|
|
80
92
|
*/
|
|
@@ -41,6 +41,15 @@ export const getRelated = createSelector(
|
|
|
41
41
|
(state: MetadataViewState) => state.related
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
+
export const getSources = createSelector(
|
|
45
|
+
getMdViewState,
|
|
46
|
+
(state: MetadataViewState) => state.sources
|
|
47
|
+
)
|
|
48
|
+
|
|
49
|
+
export const getSourceOf = createSelector(
|
|
50
|
+
getMdViewState,
|
|
51
|
+
(state: MetadataViewState) => state.sourceOf
|
|
52
|
+
)
|
|
44
53
|
/*
|
|
45
54
|
Metadata selectors
|
|
46
55
|
*/
|
|
@@ -4,6 +4,8 @@ export const ROUTER_STATE_KEY = 'router'
|
|
|
4
4
|
|
|
5
5
|
export const ROUTER_ROUTE_SEARCH = 'search'
|
|
6
6
|
export const ROUTER_ROUTE_DATASET = 'dataset'
|
|
7
|
+
export const ROUTER_ROUTE_SERVICE = 'service'
|
|
8
|
+
export const ROUTER_ROUTE_REUSE = 'reuse'
|
|
7
9
|
export const ROUTER_ROUTE_ORGANIZATION = 'organization'
|
|
8
10
|
|
|
9
11
|
export enum ROUTE_PARAMS {
|
|
@@ -3,6 +3,8 @@ import {
|
|
|
3
3
|
ROUTER_ROUTE_DATASET,
|
|
4
4
|
ROUTER_ROUTE_ORGANIZATION,
|
|
5
5
|
ROUTER_ROUTE_SEARCH,
|
|
6
|
+
ROUTER_ROUTE_SERVICE,
|
|
7
|
+
ROUTER_ROUTE_REUSE,
|
|
6
8
|
} from '.'
|
|
7
9
|
import { Router, Routes } from '@angular/router'
|
|
8
10
|
import { ROUTER_CONFIG, RouterConfigModel } from './router.config'
|
|
@@ -34,6 +36,14 @@ export class RouterService {
|
|
|
34
36
|
path: `${ROUTER_ROUTE_DATASET}/:metadataUuid`,
|
|
35
37
|
component: this.routerConfig.recordRouteComponent,
|
|
36
38
|
},
|
|
39
|
+
{
|
|
40
|
+
path: `${ROUTER_ROUTE_SERVICE}/:metadataUuid`,
|
|
41
|
+
component: this.routerConfig.recordRouteComponent,
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
path: `${ROUTER_ROUTE_REUSE}/:metadataUuid`,
|
|
45
|
+
component: this.routerConfig.recordRouteComponent,
|
|
46
|
+
},
|
|
37
47
|
{
|
|
38
48
|
path: `${ROUTER_ROUTE_ORGANIZATION}/:name`,
|
|
39
49
|
component: this.routerConfig.organizationRouteComponent,
|
|
@@ -7,6 +7,8 @@ import { distinctUntilChanged, filter, map, take } from 'rxjs/operators'
|
|
|
7
7
|
import {
|
|
8
8
|
ROUTER_ROUTE_DATASET,
|
|
9
9
|
ROUTER_ROUTE_SEARCH,
|
|
10
|
+
ROUTER_ROUTE_SERVICE,
|
|
11
|
+
ROUTER_ROUTE_REUSE,
|
|
10
12
|
SearchRouteParams,
|
|
11
13
|
} from '../constants'
|
|
12
14
|
import {
|
|
@@ -32,12 +34,19 @@ export class RouterFacade {
|
|
|
32
34
|
map(expandQueryParams)
|
|
33
35
|
)
|
|
34
36
|
|
|
37
|
+
routeMap = {
|
|
38
|
+
dataset: ROUTER_ROUTE_DATASET,
|
|
39
|
+
service: ROUTER_ROUTE_SERVICE,
|
|
40
|
+
reuse: ROUTER_ROUTE_REUSE,
|
|
41
|
+
}
|
|
42
|
+
|
|
35
43
|
constructor(
|
|
36
44
|
private store: Store<RouterReducerState>,
|
|
37
45
|
private routerService: RouterService
|
|
38
46
|
) {}
|
|
39
47
|
|
|
40
48
|
goToMetadata(metadata: CatalogRecord) {
|
|
49
|
+
const selectedRoute = this.routeMap[metadata.kind] || ROUTER_ROUTE_DATASET
|
|
41
50
|
this.pathParams$
|
|
42
51
|
.pipe(
|
|
43
52
|
take(1),
|
|
@@ -45,7 +54,7 @@ export class RouterFacade {
|
|
|
45
54
|
)
|
|
46
55
|
.subscribe(() => {
|
|
47
56
|
this.go({
|
|
48
|
-
path: `${
|
|
57
|
+
path: `${selectedRoute}/${metadata.uniqueIdentifier}`,
|
|
49
58
|
})
|
|
50
59
|
this.store.dispatch(
|
|
51
60
|
MdViewActions.setIncompleteMetadata({ incomplete: metadata })
|
|
@@ -17,7 +17,7 @@ export * from './lib/facets/facets.module'
|
|
|
17
17
|
export * from './lib/facets/facets-container/facets-container.component'
|
|
18
18
|
export * from './lib/records-metrics/records-metrics.component'
|
|
19
19
|
export * from './lib/favorites/favorite-star/favorite-star.component'
|
|
20
|
-
export * from './lib/results-hits
|
|
20
|
+
export * from './lib/results-hits/results-hits.container.component'
|
|
21
21
|
export * from './lib/results-layout/results-layout.component'
|
|
22
22
|
export * from './lib/sort-by/sort-by.component'
|
|
23
23
|
export * from './lib/state/container/search-state.container.directive'
|
|
@@ -12,6 +12,7 @@ export const FIELDS_SUMMARY: FieldName[] = [
|
|
|
12
12
|
'overview',
|
|
13
13
|
'logo',
|
|
14
14
|
'codelist_status_text',
|
|
15
|
+
'link',
|
|
15
16
|
'linkProtocol',
|
|
16
17
|
'contactForResource*.organisation*',
|
|
17
18
|
'contact*.organisation*',
|
|
@@ -19,9 +20,10 @@ export const FIELDS_SUMMARY: FieldName[] = [
|
|
|
19
20
|
'userSavedCount',
|
|
20
21
|
'cl_topic',
|
|
21
22
|
'cl_maintenanceAndUpdateFrequency',
|
|
22
|
-
'
|
|
23
|
+
'MD_LegalConstraints*Object',
|
|
23
24
|
'qualityScore',
|
|
24
25
|
'allKeywords',
|
|
26
|
+
'recordLink',
|
|
25
27
|
]
|
|
26
28
|
|
|
27
29
|
export const FIELDS_BRIEF: FieldName[] = [
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
withLatestFrom,
|
|
17
17
|
} from 'rxjs/operators'
|
|
18
18
|
import tippy from 'tippy.js'
|
|
19
|
-
import { TranslateService } from '@ngx-translate/core'
|
|
19
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
20
20
|
import { StarToggleComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
21
21
|
import { Observable, Subscription } from 'rxjs'
|
|
22
22
|
import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
@@ -30,7 +30,7 @@ import { CommonModule } from '@angular/common'
|
|
|
30
30
|
styleUrls: ['./favorite-star.component.css'],
|
|
31
31
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
32
32
|
standalone: true,
|
|
33
|
-
imports: [CommonModule, StarToggleComponent],
|
|
33
|
+
imports: [CommonModule, StarToggleComponent, TranslateModule],
|
|
34
34
|
})
|
|
35
35
|
export class FavoriteStarComponent implements AfterViewInit, OnDestroy {
|
|
36
36
|
@Input() displayCount? = true
|
|
@@ -4,6 +4,7 @@ import { UiSearchModule } from '../../../../../libs/ui/search/src'
|
|
|
4
4
|
import { EffectsModule } from '@ngrx/effects'
|
|
5
5
|
import { StoreModule } from '@ngrx/store'
|
|
6
6
|
import { TranslateModule } from '@ngx-translate/core'
|
|
7
|
+
import { NgIconsModule } from '@ng-icons/core'
|
|
7
8
|
import { FacetsModule } from './facets/facets.module'
|
|
8
9
|
import { FuzzySearchComponent } from './fuzzy-search/fuzzy-search.component'
|
|
9
10
|
import { RecordsMetricsComponent } from './records-metrics/records-metrics.component'
|
|
@@ -12,7 +13,7 @@ import { ResultsListContainerComponent } from './results-list/results-list.conta
|
|
|
12
13
|
import { SortByComponent } from './sort-by/sort-by.component'
|
|
13
14
|
import { SearchEffects } from './state/effects'
|
|
14
15
|
import { initialState, reducer, SEARCH_FEATURE_KEY } from './state/reducer'
|
|
15
|
-
import { ResultsHitsContainerComponent } from './results-hits
|
|
16
|
+
import { ResultsHitsContainerComponent } from './results-hits/results-hits.container.component'
|
|
16
17
|
import { SearchStateContainerDirective } from './state/container/search-state.container.directive'
|
|
17
18
|
import {
|
|
18
19
|
AutocompleteComponent,
|
|
@@ -20,14 +21,16 @@ import {
|
|
|
20
21
|
UiInputsModule,
|
|
21
22
|
} from '../../../../../libs/ui/inputs/src'
|
|
22
23
|
import { NgModule } from '@angular/core'
|
|
23
|
-
import {
|
|
24
|
+
import {
|
|
25
|
+
ErrorComponent,
|
|
26
|
+
KindBadgeComponent,
|
|
27
|
+
UiElementsModule,
|
|
28
|
+
} from '../../../../../libs/ui/elements/src'
|
|
24
29
|
import { FilterDropdownComponent } from './filter-dropdown/filter-dropdown.component'
|
|
25
30
|
import {
|
|
26
31
|
SpinningLoaderComponent,
|
|
27
32
|
UiWidgetsModule,
|
|
28
33
|
} from '../../../../../libs/ui/widgets/src'
|
|
29
|
-
import { RecordsRepositoryInterface } from '../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
30
|
-
import { Gn4Repository } from '../../../../../libs/api/repository/src'
|
|
31
34
|
import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.component'
|
|
32
35
|
|
|
33
36
|
@NgModule({
|
|
@@ -60,6 +63,8 @@ import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.c
|
|
|
60
63
|
ErrorComponent,
|
|
61
64
|
FavoriteStarComponent,
|
|
62
65
|
DateRangeDropdownComponent,
|
|
66
|
+
NgIconsModule,
|
|
67
|
+
KindBadgeComponent,
|
|
63
68
|
],
|
|
64
69
|
exports: [
|
|
65
70
|
SortByComponent,
|
|
@@ -72,11 +77,5 @@ import { FavoriteStarComponent } from './favorites/favorite-star/favorite-star.c
|
|
|
72
77
|
SearchStateContainerDirective,
|
|
73
78
|
FilterDropdownComponent,
|
|
74
79
|
],
|
|
75
|
-
providers: [
|
|
76
|
-
{
|
|
77
|
-
provide: RecordsRepositoryInterface,
|
|
78
|
-
useClass: Gn4Repository,
|
|
79
|
-
},
|
|
80
|
-
],
|
|
81
80
|
})
|
|
82
81
|
export class FeatureSearchModule {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<gn-ui-autocomplete
|
|
2
|
-
[placeholder]="'search.field.any.placeholder' | translate"
|
|
2
|
+
[placeholder]="placeholder ?? ('search.field.any.placeholder' | translate)"
|
|
3
3
|
[displayWithFn]="displayWithFn"
|
|
4
4
|
[action]="autoCompleteAction"
|
|
5
5
|
(itemSelected)="handleItemSelection($event)"
|
|
@@ -30,6 +30,7 @@ export class FuzzySearchComponent implements OnInit {
|
|
|
30
30
|
@Input() autoFocus = false
|
|
31
31
|
@Input() forceTrackPosition = false
|
|
32
32
|
@Input() enterButton = false
|
|
33
|
+
@Input() placeholder?: string
|
|
33
34
|
@Output() itemSelected = new EventEmitter<CatalogRecord>()
|
|
34
35
|
@Output() inputSubmitted = new EventEmitter<string>()
|
|
35
36
|
@Output() isSearchActive = new EventEmitter<boolean>()
|
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core'
|
|
2
2
|
|
|
3
3
|
// expects the replacement key ${uuid}
|
|
4
|
-
export const
|
|
4
|
+
export const RECORD_DATASET_URL_TOKEN = new InjectionToken<string>(
|
|
5
|
+
'record-dataset-url-token'
|
|
6
|
+
)
|
|
7
|
+
export const RECORD_SERVICE_URL_TOKEN = new InjectionToken<string>(
|
|
8
|
+
'record-service-url-token'
|
|
9
|
+
)
|
|
10
|
+
|
|
11
|
+
export const RECORD_REUSE_URL_TOKEN = new InjectionToken<string>(
|
|
12
|
+
'record-reuse-url-token'
|
|
13
|
+
)
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="flex flex-col gap-3 sm:flex-row justify-between"
|
|
3
|
+
[ngClass]="{
|
|
4
|
+
'sm:items-center': (searchFacade.resultsHits$ | async) !== 0,
|
|
5
|
+
}"
|
|
6
|
+
>
|
|
7
|
+
<gn-ui-results-hits-number
|
|
8
|
+
[loading]="searchFacade.isLoading$ | async"
|
|
9
|
+
[hits]="searchFacade.resultsHits$ | async"
|
|
10
|
+
></gn-ui-results-hits-number>
|
|
11
|
+
<gn-ui-results-hits-search-kind
|
|
12
|
+
(selectionChanged)="onSelectionChanged($event)"
|
|
13
|
+
[choices]="filterChoices$ | async"
|
|
14
|
+
[selected]="selected$ | async"
|
|
15
|
+
></gn-ui-results-hits-search-kind>
|
|
16
|
+
</div>
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catchError,
|
|
3
|
+
filter,
|
|
4
|
+
map,
|
|
5
|
+
Observable,
|
|
6
|
+
of,
|
|
7
|
+
startWith,
|
|
8
|
+
switchMap,
|
|
9
|
+
} from 'rxjs'
|
|
10
|
+
import { Component, OnInit } from '@angular/core'
|
|
11
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
12
|
+
import { SearchFacade } from '../state/search.facade'
|
|
13
|
+
import { FieldAvailableValue, FieldValue } from '../utils/service/fields'
|
|
14
|
+
import { SearchService } from '../utils/service/search.service'
|
|
15
|
+
import { FieldsService } from '../utils/service/fields.service'
|
|
16
|
+
|
|
17
|
+
marker('search.filters.recordKind.all')
|
|
18
|
+
marker('search.filters.recordKind.dataset')
|
|
19
|
+
marker('search.filters.recordKind.service')
|
|
20
|
+
marker('search.filters.recordKind.reuse')
|
|
21
|
+
|
|
22
|
+
@Component({
|
|
23
|
+
selector: 'gn-ui-results-hits',
|
|
24
|
+
templateUrl: './results-hits.container.component.html',
|
|
25
|
+
styleUrls: ['./results-hits.container.component.css'],
|
|
26
|
+
})
|
|
27
|
+
export class ResultsHitsContainerComponent implements OnInit {
|
|
28
|
+
fieldName = 'recordKind'
|
|
29
|
+
filterChoices$: Observable<FieldAvailableValue[]>
|
|
30
|
+
selected$: Observable<FieldValue[]>
|
|
31
|
+
|
|
32
|
+
constructor(
|
|
33
|
+
protected searchFacade: SearchFacade,
|
|
34
|
+
private searchService: SearchService,
|
|
35
|
+
private fieldsService: FieldsService
|
|
36
|
+
) {}
|
|
37
|
+
|
|
38
|
+
ngOnInit() {
|
|
39
|
+
this.selected$ = this.searchFacade.searchFilters$.pipe(
|
|
40
|
+
switchMap((filters) =>
|
|
41
|
+
this.fieldsService.readFieldValuesFromFilters(filters)
|
|
42
|
+
),
|
|
43
|
+
map((fieldValues) => fieldValues[this.fieldName]),
|
|
44
|
+
filter((selected) => !!selected),
|
|
45
|
+
startWith([]),
|
|
46
|
+
catchError(() => of([]))
|
|
47
|
+
) as Observable<FieldValue[]>
|
|
48
|
+
|
|
49
|
+
this.filterChoices$ = <Observable<FieldAvailableValue[]>>(
|
|
50
|
+
this.fieldsService.getAvailableValues(this.fieldName)
|
|
51
|
+
)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
onSelectionChanged(values: string[]) {
|
|
55
|
+
this.fieldsService
|
|
56
|
+
.buildFiltersFromFieldValues({ [this.fieldName]: values })
|
|
57
|
+
.subscribe((filters) => this.searchService.updateFilters(filters))
|
|
58
|
+
}
|
|
59
|
+
}
|