geonetwork-ui 2.6.0-dev.b306f1194 → 2.6.0-dev.ceb4be4c1
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 +44 -6
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- 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 +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -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 +29 -5
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -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 +49 -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 +29 -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 +18 -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/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 +38 -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 +2 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- 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/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 +27 -53
- 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 +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +51 -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 +22 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +3 -2
- 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 +4 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
- 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/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -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 +107 -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 +2 -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/results-table.component.mjs +29 -15
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
- 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/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 +41 -6
- package/esm2022/translations/en.json +43 -8
- package/esm2022/translations/es.json +41 -6
- package/esm2022/translations/fr.json +42 -7
- package/esm2022/translations/it.json +44 -9
- package/esm2022/translations/nl.json +41 -6
- package/esm2022/translations/pt.json +41 -6
- package/fesm2022/geonetwork-ui.mjs +2418 -1039
- 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/iso19139/read-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 +3 -0
- 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/common/domain/src/lib/model/record/metadata.model.d.ts +9 -3
- 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 +2 -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 +6 -3
- 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 +7 -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/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/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 +3 -7
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- 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/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +16 -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 +4 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +2 -1
- 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/star-toggle/star-toggle.component.d.ts.map +1 -1
- 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 +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.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/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 +2 -0
- 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 +27 -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 +1 -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/results-table.component.d.ts +5 -1
- 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 +21 -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/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 +2 -2
- 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 +63 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +4 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -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 +50 -5
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -4
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +2 -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 +1 -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 +58 -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 +31 -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 +14 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -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 +40 -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 +1 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +0 -6
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- 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.css +6 -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/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 +133 -138
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +19 -47
- 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/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +48 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +52 -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 +9 -1
- package/src/libs/ui/inputs/src/index.ts +2 -1
- 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 +7 -8
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
- 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/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 +13 -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 +44 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +130 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
- 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 +1 -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/results-table.component.css +4 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +28 -15
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +22 -11
- package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -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/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 +19 -26
- package/translations/de.json +41 -6
- package/translations/en.json +43 -8
- package/translations/es.json +41 -6
- package/translations/fr.json +42 -7
- package/translations/it.json +44 -9
- package/translations/nl.json +41 -6
- package/translations/pt.json +41 -6
- package/translations/sk.json +41 -6
- 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/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
- 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/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.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/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
- /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
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</gn-ui-content-ghost>
|
|
14
14
|
|
|
15
15
|
<p
|
|
16
|
-
class="mt-6 mb-3 font-medium text-
|
|
16
|
+
class="mt-6 mb-3 font-medium text-black text-sm"
|
|
17
17
|
translate
|
|
18
18
|
*ngIf="!fieldReady('keywords') || metadata.keywords?.length"
|
|
19
19
|
>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
[showContent]="fieldReady('keywords')"
|
|
26
26
|
>
|
|
27
27
|
<div *ngIf="metadata.keywords?.length">
|
|
28
|
-
<div class="sm:pb-4 flex flex-wrap gap-2">
|
|
28
|
+
<div class="metadata-info-keywords sm:pb-4 flex flex-wrap gap-2">
|
|
29
29
|
<gn-ui-badge
|
|
30
30
|
class="inline-block lowercase"
|
|
31
31
|
(click)="onKeywordClick(keyword)"
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
metadata.otherConstraints
|
|
47
47
|
"
|
|
48
48
|
[title]="'record.metadata.usage' | translate"
|
|
49
|
+
data-test="usage-panel"
|
|
49
50
|
>
|
|
50
51
|
<div class="flex flex-col gap-[10px] mr-4 py-[12px] rounded text-gray-900">
|
|
51
52
|
<ng-container *ngFor="let license of licenses">
|
|
@@ -79,9 +80,12 @@
|
|
|
79
80
|
</ng-container>
|
|
80
81
|
<ng-container *ngIf="otherConstraints.length">
|
|
81
82
|
<div gnUiLinkify *ngFor="let constraint of otherConstraints">
|
|
82
|
-
<
|
|
83
|
+
<span
|
|
84
|
+
translate
|
|
85
|
+
class="font-medium text-black text-sm mb-[2px] mt-[16px]"
|
|
86
|
+
>
|
|
83
87
|
record.metadata.otherConstraints
|
|
84
|
-
</
|
|
88
|
+
</span>
|
|
85
89
|
<div class="mb-6">
|
|
86
90
|
<gn-ui-markdown-parser [textContent]="constraint">
|
|
87
91
|
</gn-ui-markdown-parser>
|
|
@@ -96,12 +100,13 @@
|
|
|
96
100
|
</gn-ui-expandable-panel>
|
|
97
101
|
<gn-ui-expandable-panel
|
|
98
102
|
*ngIf="
|
|
99
|
-
metadata.lineage ||
|
|
103
|
+
(metadata.kind === 'dataset' && metadata.lineage) ||
|
|
100
104
|
metadata.resourceUpdated ||
|
|
101
105
|
metadata.updateFrequency ||
|
|
102
|
-
metadata.status
|
|
106
|
+
(metadata.kind === 'dataset' && metadata.status)
|
|
103
107
|
"
|
|
104
108
|
[title]="'record.metadata.details' | translate"
|
|
109
|
+
data-test="details-panel"
|
|
105
110
|
>
|
|
106
111
|
<div *ngIf="metadata.lineage" class="text-gray-900 flex flex-col mt-4 gap-2">
|
|
107
112
|
<p class="whitespace-pre-line break-words text-gray-900" gnUiLinkify>
|
|
@@ -225,9 +230,20 @@
|
|
|
225
230
|
</div>
|
|
226
231
|
</div>
|
|
227
232
|
</gn-ui-expandable-panel>
|
|
233
|
+
<gn-ui-expandable-panel
|
|
234
|
+
*ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
|
|
235
|
+
[title]="'service.metadata.spatialExtent' | translate"
|
|
236
|
+
data-test="spatial-extent-panel"
|
|
237
|
+
>
|
|
238
|
+
<gn-ui-spatial-extent
|
|
239
|
+
class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
|
|
240
|
+
[spatialExtents]="metadata.spatialExtents"
|
|
241
|
+
></gn-ui-spatial-extent>
|
|
242
|
+
</gn-ui-expandable-panel>
|
|
228
243
|
<gn-ui-expandable-panel
|
|
229
244
|
*ngIf="metadata.landingPage"
|
|
230
|
-
[title]="'
|
|
245
|
+
[title]="'service.metadata.other' | translate"
|
|
246
|
+
data-test="other-panel"
|
|
231
247
|
>
|
|
232
248
|
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
233
249
|
<div *ngIf="metadata.recordUpdated">
|
|
@@ -267,6 +283,7 @@
|
|
|
267
283
|
<p class="text-sm mb-1" translate>record.metadata.topics</p>
|
|
268
284
|
<div class="sm:pb-4 sm:pr-16">
|
|
269
285
|
<gn-ui-badge
|
|
286
|
+
[clickable]="false"
|
|
270
287
|
class="inline-block mr-2 mb-2 lowercase"
|
|
271
288
|
*ngFor="let topic of metadata.topics"
|
|
272
289
|
>{{ topic }}</gn-ui-badge
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
Output,
|
|
7
7
|
} from '@angular/core'
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
CatalogRecord,
|
|
10
10
|
Keyword,
|
|
11
11
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
12
12
|
import { DateService, getTemporalRangeUnion } from '../../../../../../libs/util/shared/src'
|
|
@@ -22,12 +22,17 @@ import {
|
|
|
22
22
|
} from '../../../../../../libs/ui/inputs/src'
|
|
23
23
|
import { ContentGhostComponent } from '../content-ghost/content-ghost.component'
|
|
24
24
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
25
|
-
import { CommonModule } from '@angular/common'
|
|
26
25
|
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
27
26
|
import { matMailOutline } from '@ng-icons/material-icons/outline'
|
|
28
27
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
29
28
|
import { GnUiLinkifyDirective } from './linkify.directive'
|
|
30
29
|
|
|
30
|
+
import { CommonModule } from '@angular/common'
|
|
31
|
+
import {
|
|
32
|
+
MapContainerComponent,
|
|
33
|
+
SpatialExtentComponent,
|
|
34
|
+
} from '../../../../../../libs/ui/map/src'
|
|
35
|
+
|
|
31
36
|
@Component({
|
|
32
37
|
selector: 'gn-ui-metadata-info',
|
|
33
38
|
templateUrl: './metadata-info.component.html',
|
|
@@ -46,6 +51,8 @@ import { GnUiLinkifyDirective } from './linkify.directive'
|
|
|
46
51
|
CopyTextButtonComponent,
|
|
47
52
|
NgIcon,
|
|
48
53
|
GnUiLinkifyDirective,
|
|
54
|
+
MapContainerComponent,
|
|
55
|
+
SpatialExtentComponent,
|
|
49
56
|
],
|
|
50
57
|
viewProviders: [
|
|
51
58
|
provideIcons({
|
|
@@ -55,7 +62,7 @@ import { GnUiLinkifyDirective } from './linkify.directive'
|
|
|
55
62
|
],
|
|
56
63
|
})
|
|
57
64
|
export class MetadataInfoComponent {
|
|
58
|
-
@Input() metadata: Partial<
|
|
65
|
+
@Input() metadata: Partial<CatalogRecord>
|
|
59
66
|
@Input() incomplete: boolean
|
|
60
67
|
@Output() keyword = new EventEmitter<Keyword>()
|
|
61
68
|
updatedTimes: number
|
|
@@ -122,7 +129,8 @@ export class MetadataInfoComponent {
|
|
|
122
129
|
}
|
|
123
130
|
|
|
124
131
|
get temporalExtent(): { start: string; end: string } {
|
|
125
|
-
const temporalExtents =
|
|
132
|
+
const temporalExtents =
|
|
133
|
+
this.metadata.kind === 'dataset' ? this.metadata.temporalExtents : []
|
|
126
134
|
return getTemporalRangeUnion(temporalExtents, this.dateService)
|
|
127
135
|
}
|
|
128
136
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<div *ngIf="metadataQualityDisplay" class="metadata-quality">
|
|
2
2
|
<div
|
|
3
3
|
class="flex items-center"
|
|
4
|
-
[class]="
|
|
5
|
-
|
|
6
|
-
"
|
|
4
|
+
[class]="min - w - 0"
|
|
5
|
+
[ngClass]="{ 'text-xs leading-[8px] m-h-[120px]': smaller }"
|
|
7
6
|
>
|
|
8
7
|
<gn-ui-progress-bar
|
|
9
8
|
tabindex="0"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<div class="flex flex-col gap-2 py-5 px-5 h-[562px] overflow-y-auto">
|
|
2
|
+
<div
|
|
3
|
+
*ngFor="let featureType of filteredFeatureCatalog?.featureTypes"
|
|
4
|
+
class="rounded shadow bg-white"
|
|
5
|
+
>
|
|
6
|
+
<gn-ui-expandable-panel
|
|
7
|
+
[collapsed]="filteredFeatureCatalog?.featureTypes?.length !== 1"
|
|
8
|
+
iconColor="black"
|
|
9
|
+
>
|
|
10
|
+
<ng-template #titleTemplate>
|
|
11
|
+
<div class="px-2">
|
|
12
|
+
<div class="text-lg font-bold">{{ featureType.name }}</div>
|
|
13
|
+
<div class="text-sm" *ngIf="featureType.definition">
|
|
14
|
+
{{ featureType.definition }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</ng-template>
|
|
18
|
+
<div
|
|
19
|
+
class="grid gap-0"
|
|
20
|
+
[style.grid-template-columns]="gridTemplateColumns"
|
|
21
|
+
data-cy="feature-type-content"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="py-1 px-2 text-sm font-bold text-left border-t"
|
|
25
|
+
[class.border-l]="i > 0"
|
|
26
|
+
[class.border-gray-300]="i > 0"
|
|
27
|
+
*ngFor="let col of columns; let i = index"
|
|
28
|
+
data-test="column-label"
|
|
29
|
+
>
|
|
30
|
+
{{ col.label | translate }}
|
|
31
|
+
</div>
|
|
32
|
+
<ng-container *ngFor="let row of featureType.attributes">
|
|
33
|
+
<div
|
|
34
|
+
class="bg-white text-sm font-normal text-left border-t"
|
|
35
|
+
[class.border-l]="i > 0"
|
|
36
|
+
[class.border-gray-300]="i > 0"
|
|
37
|
+
*ngFor="let col of columns; let i = index"
|
|
38
|
+
>
|
|
39
|
+
<gn-ui-truncated-text
|
|
40
|
+
extraClass="py-3 px-2"
|
|
41
|
+
[text]="row[col.key]"
|
|
42
|
+
></gn-ui-truncated-text>
|
|
43
|
+
</div>
|
|
44
|
+
</ng-container>
|
|
45
|
+
</div>
|
|
46
|
+
</gn-ui-expandable-panel>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
4
|
+
import { DatasetFeatureCatalog } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
5
|
+
import {
|
|
6
|
+
ExpandablePanelComponent,
|
|
7
|
+
TruncatedTextComponent,
|
|
8
|
+
} from '../../../../../../../libs/ui/layout/src'
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'gn-ui-feature-catalog-list',
|
|
12
|
+
templateUrl: './feature-catalog-list.component.html',
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [
|
|
15
|
+
CommonModule,
|
|
16
|
+
TranslateModule,
|
|
17
|
+
ExpandablePanelComponent,
|
|
18
|
+
TruncatedTextComponent,
|
|
19
|
+
],
|
|
20
|
+
})
|
|
21
|
+
export class FeatureCatalogListComponent implements OnInit {
|
|
22
|
+
@Input() filteredFeatureCatalog: DatasetFeatureCatalog
|
|
23
|
+
|
|
24
|
+
columns = [
|
|
25
|
+
{
|
|
26
|
+
key: 'type',
|
|
27
|
+
label: 'feature.catalog.attribute.type',
|
|
28
|
+
width: '19%',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'name',
|
|
32
|
+
label: 'feature.catalog.attribute.name',
|
|
33
|
+
width: '32%',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'code',
|
|
37
|
+
label: 'feature.catalog.attribute.code',
|
|
38
|
+
width: '24%',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'title',
|
|
42
|
+
label: 'feature.catalog.attribute.description',
|
|
43
|
+
width: '25%',
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
gridTemplateColumns = ''
|
|
48
|
+
|
|
49
|
+
ngOnInit(): void {
|
|
50
|
+
this.gridTemplateColumns = this.columns.map((col) => col.width).join(' ')
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
<
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
|
|
1
|
+
<gn-ui-internal-link-card
|
|
2
|
+
[linkHref]="linkHref"
|
|
3
|
+
[linkTarget]="'_blank'"
|
|
4
|
+
[record]="record"
|
|
5
|
+
[favoriteTemplate]="favoriteTemplate"
|
|
6
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
7
|
+
[size]="size"
|
|
5
8
|
>
|
|
6
|
-
|
|
7
|
-
<gn-ui-thumbnail
|
|
8
|
-
class="h-52 w-full object-cover"
|
|
9
|
-
[thumbnailUrl]="record.overviews?.[0]?.url.toString()"
|
|
10
|
-
></gn-ui-thumbnail>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="flex flex-col justify-between h-44 px-5 pt-4 pb-6">
|
|
13
|
-
<h4
|
|
14
|
-
class="max-h-24 font-title text-21 text-black text-ellipsis overflow-hidden"
|
|
15
|
-
>
|
|
16
|
-
{{ record.title }}
|
|
17
|
-
</h4>
|
|
18
|
-
<div>
|
|
19
|
-
<button
|
|
20
|
-
[matTooltip]="'tooltip.url.open' | translate"
|
|
21
|
-
matTooltipPosition="above"
|
|
22
|
-
>
|
|
23
|
-
<ng-icon
|
|
24
|
-
class="align-middle text-secondary"
|
|
25
|
-
name="matOpenInNew"
|
|
26
|
-
></ng-icon>
|
|
27
|
-
</button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</a>
|
|
9
|
+
</gn-ui-internal-link-card>
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
2
8
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
3
9
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
10
|
+
import { InternalLinkCardComponent } from '../internal-link-card/internal-link-card.component'
|
|
4
11
|
import { RouterLink } from '@angular/router'
|
|
5
12
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
6
13
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
7
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
8
15
|
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
16
|
+
import { TemplateRef } from '@angular/core'
|
|
9
17
|
|
|
10
18
|
@Component({
|
|
11
19
|
selector: 'gn-ui-related-record-card',
|
|
@@ -13,6 +21,7 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
|
13
21
|
styleUrls: ['./related-record-card.component.css'],
|
|
14
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
23
|
imports: [
|
|
24
|
+
InternalLinkCardComponent,
|
|
16
25
|
ThumbnailComponent,
|
|
17
26
|
RouterLink,
|
|
18
27
|
MatTooltipModule,
|
|
@@ -25,8 +34,12 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
|
25
34
|
export class RelatedRecordCardComponent {
|
|
26
35
|
private readonly baseClasses: string
|
|
27
36
|
|
|
37
|
+
@Input() linkHref: string = null
|
|
28
38
|
@Input() record: CatalogRecord
|
|
29
39
|
@Input() extraClass = ''
|
|
40
|
+
@Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
|
|
41
|
+
@Input() metadataQualityDisplay: boolean
|
|
42
|
+
@Input() size: string
|
|
30
43
|
|
|
31
44
|
constructor() {
|
|
32
45
|
this.baseClasses = [
|
|
File without changes
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<div style="height: 652px" id="preview" *ngIf="apiLinks.length > 0">
|
|
2
|
+
<div class="bg-primary-opacity-10 overflow-visible" style="height: 420px">
|
|
3
|
+
<div class="container-lg px-4 lg:mx-auto">
|
|
4
|
+
<div>
|
|
5
|
+
<div class="gn-ui-section-title mb-6" translate>
|
|
6
|
+
service.metadata.capabilities
|
|
7
|
+
</div>
|
|
8
|
+
<div
|
|
9
|
+
*ngIf="loading"
|
|
10
|
+
class="flex justify-center w-full h-[200px] items-center"
|
|
11
|
+
>
|
|
12
|
+
<gn-ui-spinning-loader></gn-ui-spinning-loader>
|
|
13
|
+
</div>
|
|
14
|
+
<div *ngIf="!loading">
|
|
15
|
+
<div class="flex flex-row gap-5">
|
|
16
|
+
<div class="h-14 md:w-2/5 w-full mb-4 flex flex-row relative">
|
|
17
|
+
<gn-ui-text-input
|
|
18
|
+
class="w-full"
|
|
19
|
+
[(value)]="searchQuery"
|
|
20
|
+
[extraClass]="getExtraInputClass()"
|
|
21
|
+
[placeholder]="'service.metadata.search' | translate"
|
|
22
|
+
(input)="onSearchChange($event)"
|
|
23
|
+
(keydown.enter)="onSearchEnter($event)"
|
|
24
|
+
>
|
|
25
|
+
</gn-ui-text-input>
|
|
26
|
+
<div
|
|
27
|
+
class="absolute right-14 h-14 w-14 flex items-center justify-center"
|
|
28
|
+
>
|
|
29
|
+
<button
|
|
30
|
+
#inputBtn
|
|
31
|
+
*ngIf="searchQuery"
|
|
32
|
+
[aria-label]="'service.metadata.search.clear' | translate"
|
|
33
|
+
(click)="clearSearch()"
|
|
34
|
+
class="h-12 w-12 border-0 flex items-center justify-center"
|
|
35
|
+
>
|
|
36
|
+
<ng-icon name="matClose"></ng-icon>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="border-l absolute border-gray-200 right-0 h-14 w-14">
|
|
40
|
+
<gn-ui-button
|
|
41
|
+
#inputBtn
|
|
42
|
+
type="outline"
|
|
43
|
+
extraClass="h-12 w-12 border-0 absolute right-1 top-1 bg-white"
|
|
44
|
+
(buttonClick)="searchLayers()"
|
|
45
|
+
>
|
|
46
|
+
<ng-icon name="iconoirSearch"></ng-icon>
|
|
47
|
+
</gn-ui-button>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<gn-ui-popover
|
|
51
|
+
[content]="popoverItems"
|
|
52
|
+
theme="light"
|
|
53
|
+
class="w-14 h-14 border border-gray-300 rounded-lg flex justify-center items-center"
|
|
54
|
+
>
|
|
55
|
+
<ng-icon name="matInfoOutline" class="w-6 h-6 pt-0.5"></ng-icon>
|
|
56
|
+
</gn-ui-popover>
|
|
57
|
+
</div>
|
|
58
|
+
<div
|
|
59
|
+
style="height: 500px"
|
|
60
|
+
class="bg-white shadow-xl rounded p-0 flex md:flex-row flex-col"
|
|
61
|
+
>
|
|
62
|
+
<div
|
|
63
|
+
class="flex flex-col gap-2 bg-gray-100 md:w-1/2 md:h-full w-full h-1/2 rounded-l overflow-y-auto py-5 pr-1 pl-3"
|
|
64
|
+
data-test="layer-list"
|
|
65
|
+
>
|
|
66
|
+
<gn-ui-button
|
|
67
|
+
*ngFor="let layerItem of filteredLayers"
|
|
68
|
+
type="outline"
|
|
69
|
+
[extraClass]="getExtraClass(layerItem)"
|
|
70
|
+
(buttonClick)="selectLayer(layerItem)"
|
|
71
|
+
>
|
|
72
|
+
{{ layerItem.title || layerItem.name }}
|
|
73
|
+
</gn-ui-button>
|
|
74
|
+
<span *ngIf="filteredLayers.length === 0" class="text-gray-800">
|
|
75
|
+
{{ 'service.metadata.filter.noLayers' | translate }}
|
|
76
|
+
</span>
|
|
77
|
+
</div>
|
|
78
|
+
<div
|
|
79
|
+
data-test="layer-information"
|
|
80
|
+
class="flex flex-col gap-4 md:h-full md:w-1/2 w-full h-1/2 py-5 px-10 overflow-y-auto"
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
*ngFor="let item of layerInformation"
|
|
84
|
+
class="flex flex-row gap-4 border-b border-gray-200"
|
|
85
|
+
>
|
|
86
|
+
<span class="font-semibold w-24">{{ item.displayName }}</span>
|
|
87
|
+
<div *ngIf="isList(item.value)">
|
|
88
|
+
<div
|
|
89
|
+
*ngFor="let subItem of item.value"
|
|
90
|
+
class="flex flex-row break-words max-w-72"
|
|
91
|
+
>
|
|
92
|
+
{{ subItem }}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div class="break-words max-w-72" *ngIf="!isList(item.value)">
|
|
96
|
+
{{ item.value }}
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
<ng-template #popoverItems>
|
|
107
|
+
<div class="p-2 py-4">
|
|
108
|
+
<div translate>service.metadata.filter</div>
|
|
109
|
+
</div>
|
|
110
|
+
</ng-template>
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { ChangeDetectorRef, Component, Input, OnInit } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
4
|
+
import { getLayers } from '../../../../../../libs/util/shared/src'
|
|
5
|
+
import { ButtonComponent, TextInputComponent } from '../../../../../../libs/ui/inputs/src'
|
|
6
|
+
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
7
|
+
import { iconoirSearch } from '@ng-icons/iconoir'
|
|
8
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
9
|
+
import { matInfoOutline } from '@ng-icons/material-icons/outline'
|
|
10
|
+
import {
|
|
11
|
+
PopoverComponent,
|
|
12
|
+
SpinningLoaderComponent,
|
|
13
|
+
} from '../../../../../../libs/ui/widgets/src'
|
|
14
|
+
import {
|
|
15
|
+
WfsFeatureTypeFull,
|
|
16
|
+
WmsLayerFull,
|
|
17
|
+
WmtsLayer,
|
|
18
|
+
} from '@camptocamp/ogc-client'
|
|
19
|
+
import { matClose } from '@ng-icons/material-icons/baseline'
|
|
20
|
+
|
|
21
|
+
marker(`service.metadata.search`)
|
|
22
|
+
marker(`service.metadata.capabilities.title`)
|
|
23
|
+
marker(`service.metadata.capabilities.abstract`)
|
|
24
|
+
marker(`service.metadata.capabilities.name`)
|
|
25
|
+
marker(`service.metadata.capabilities.defaultCrs`)
|
|
26
|
+
marker(`service.metadata.capabilities.availableCrs`)
|
|
27
|
+
marker(`service.metadata.capabilities.otherCrs`)
|
|
28
|
+
marker(`service.metadata.capabilities.objectCount`)
|
|
29
|
+
marker(`service.metadata.capabilities.geometryName`)
|
|
30
|
+
marker(`service.metadata.capabilities.geometryType`)
|
|
31
|
+
marker(`service.metadata.capabilities.keywords`)
|
|
32
|
+
marker(`service.metadata.capabilities.outputFormats`)
|
|
33
|
+
marker(`service.metadata.capabilities.resourceLinks`)
|
|
34
|
+
marker(`service.metadata.capabilities.attribution`)
|
|
35
|
+
|
|
36
|
+
@Component({
|
|
37
|
+
selector: 'gn-ui-service-capabilities',
|
|
38
|
+
standalone: true,
|
|
39
|
+
imports: [
|
|
40
|
+
CommonModule,
|
|
41
|
+
TranslateModule,
|
|
42
|
+
ButtonComponent,
|
|
43
|
+
TextInputComponent,
|
|
44
|
+
NgIcon,
|
|
45
|
+
PopoverComponent,
|
|
46
|
+
SpinningLoaderComponent,
|
|
47
|
+
],
|
|
48
|
+
viewProviders: [
|
|
49
|
+
provideIcons({
|
|
50
|
+
iconoirSearch,
|
|
51
|
+
matInfoOutline,
|
|
52
|
+
matClose,
|
|
53
|
+
}),
|
|
54
|
+
],
|
|
55
|
+
templateUrl: './service-capabilities.component.html',
|
|
56
|
+
styleUrl: './service-capabilities.component.css',
|
|
57
|
+
})
|
|
58
|
+
export class ServiceCapabilitiesComponent implements OnInit {
|
|
59
|
+
@Input() apiLinks = []
|
|
60
|
+
availableLayers = []
|
|
61
|
+
filteredLayers = []
|
|
62
|
+
selectedLayer = null
|
|
63
|
+
layerInformation = []
|
|
64
|
+
searchQuery = ''
|
|
65
|
+
loading = false
|
|
66
|
+
searchActive
|
|
67
|
+
|
|
68
|
+
capabilitiesKeys = [
|
|
69
|
+
'title',
|
|
70
|
+
'abstract',
|
|
71
|
+
'name',
|
|
72
|
+
'defaultCrs',
|
|
73
|
+
'availableCrs',
|
|
74
|
+
'otherCrs',
|
|
75
|
+
'objectCount',
|
|
76
|
+
'geometryName',
|
|
77
|
+
'geometryType',
|
|
78
|
+
'keywords',
|
|
79
|
+
'outputFormats',
|
|
80
|
+
'resourceLinks',
|
|
81
|
+
'attribution',
|
|
82
|
+
]
|
|
83
|
+
|
|
84
|
+
constructor(
|
|
85
|
+
private cdr: ChangeDetectorRef,
|
|
86
|
+
private translateService: TranslateService
|
|
87
|
+
) {}
|
|
88
|
+
|
|
89
|
+
ngOnInit() {
|
|
90
|
+
this.loadLayers()
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
onSearchChange(event: Event) {
|
|
94
|
+
const input = event.target as HTMLInputElement
|
|
95
|
+
this.searchQuery = input.value
|
|
96
|
+
if (!input.value) {
|
|
97
|
+
this.searchActive = false
|
|
98
|
+
this.filteredLayers = this.availableLayers
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
onSearchEnter(event: KeyboardEvent) {
|
|
103
|
+
if (event.key === 'Enter') {
|
|
104
|
+
this.searchActive = true
|
|
105
|
+
this.searchLayers()
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
clearSearch() {
|
|
110
|
+
this.searchActive = false
|
|
111
|
+
this.searchQuery = ''
|
|
112
|
+
this.filteredLayers = this.availableLayers
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
async loadLayers() {
|
|
116
|
+
if (
|
|
117
|
+
this.apiLinks.length > 0 &&
|
|
118
|
+
this.apiLinks[0].accessServiceProtocol !== 'ogcFeatures'
|
|
119
|
+
) {
|
|
120
|
+
this.loading = true
|
|
121
|
+
this.availableLayers = await getLayers(
|
|
122
|
+
this.apiLinks[0].url.href,
|
|
123
|
+
this.apiLinks[0].accessServiceProtocol
|
|
124
|
+
)
|
|
125
|
+
this.loading = false
|
|
126
|
+
this.cdr.detectChanges()
|
|
127
|
+
this.filteredLayers = this.availableLayers
|
|
128
|
+
} else {
|
|
129
|
+
this.availableLayers = []
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
selectLayer(layer: WfsFeatureTypeFull | WmsLayerFull | WmtsLayer) {
|
|
134
|
+
if (layer === this.selectedLayer) {
|
|
135
|
+
this.selectedLayer = null
|
|
136
|
+
this.layerInformation = []
|
|
137
|
+
return
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
this.selectedLayer = layer
|
|
141
|
+
const filteredInfo = []
|
|
142
|
+
Object.keys(layer).map((key) => {
|
|
143
|
+
if (this.capabilitiesKeys.includes(key)) {
|
|
144
|
+
const displayName = this.translateService.instant(
|
|
145
|
+
`service.metadata.capabilities.${key}`
|
|
146
|
+
)
|
|
147
|
+
if (key in layer && layer[key]?.length) {
|
|
148
|
+
filteredInfo.push({ displayName, value: layer[key] })
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
})
|
|
152
|
+
|
|
153
|
+
this.layerInformation = filteredInfo
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
isList(value: string | string[]) {
|
|
157
|
+
return Array.isArray(value)
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
getExtraInputClass() {
|
|
161
|
+
if (this.searchActive) {
|
|
162
|
+
return 'h-14 border rounded-lg border-primary text-primary focus:border-primary hover:border-primary'
|
|
163
|
+
}
|
|
164
|
+
return 'h-14 border rounded-lg'
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
searchLayers() {
|
|
168
|
+
this.searchActive = true
|
|
169
|
+
this.filteredLayers = this.availableLayers.filter((layer) => {
|
|
170
|
+
const query = this.searchQuery.toLowerCase()
|
|
171
|
+
if (layer.title) {
|
|
172
|
+
return (
|
|
173
|
+
layer.title.toLowerCase().includes(query) ||
|
|
174
|
+
layer.abstract?.toLowerCase().includes(query)
|
|
175
|
+
)
|
|
176
|
+
} else {
|
|
177
|
+
return layer.name.toLowerCase().includes(query)
|
|
178
|
+
}
|
|
179
|
+
})
|
|
180
|
+
if (!this.filteredLayers.includes(this.selectedLayer)) {
|
|
181
|
+
this.selectedLayer = null
|
|
182
|
+
this.layerInformation = []
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
getExtraClass(layerItem) {
|
|
187
|
+
return layerItem === this.selectedLayer
|
|
188
|
+
? `h-8 rounded-lg bg-primary-darker text-white hover:text-primary-darker hover:bg-white`
|
|
189
|
+
: `h-8 rounded-lg`
|
|
190
|
+
}
|
|
191
|
+
}
|
|
@@ -15,13 +15,15 @@ import { provideNgIconsConfig } from '@ng-icons/core'
|
|
|
15
15
|
import { TranslateModule } from '@ngx-translate/core'
|
|
16
16
|
import { AvatarComponent } from './avatar/avatar.component'
|
|
17
17
|
import { ImageInputComponent } from './image-input/image-input.component'
|
|
18
|
+
import { GeoDataBadgeComponent } from './geo-data-badge/geo-data-badge.component'
|
|
18
19
|
import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
|
|
20
|
+
import { KindBadgeComponent } from './kind-badge/kind-badge.component'
|
|
19
21
|
import { ThumbnailComponent } from './thumbnail/thumbnail.component'
|
|
20
22
|
import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
21
23
|
import { UserPreviewComponent } from './user-preview/user-preview.component'
|
|
22
24
|
import { ApplicationBannerComponent } from './application-banner/application-banner.component'
|
|
23
25
|
import { InternalLinkCardComponent } from './internal-link-card/internal-link-card.component'
|
|
24
|
-
|
|
26
|
+
import { ServiceCapabilitiesComponent } from './service-capabilities/service-capabilities.component'
|
|
25
27
|
@NgModule({
|
|
26
28
|
imports: [
|
|
27
29
|
CommonModule,
|
|
@@ -44,6 +46,9 @@ import { InternalLinkCardComponent } from './internal-link-card/internal-link-ca
|
|
|
44
46
|
ImageInputComponent,
|
|
45
47
|
ApplicationBannerComponent,
|
|
46
48
|
InternalLinkCardComponent,
|
|
49
|
+
ServiceCapabilitiesComponent,
|
|
50
|
+
KindBadgeComponent,
|
|
51
|
+
GeoDataBadgeComponent,
|
|
47
52
|
],
|
|
48
53
|
providers: [
|
|
49
54
|
provideNgIconsConfig({
|
|
@@ -59,6 +64,9 @@ import { InternalLinkCardComponent } from './internal-link-card/internal-link-ca
|
|
|
59
64
|
ImageInputComponent,
|
|
60
65
|
ApplicationBannerComponent,
|
|
61
66
|
InternalLinkCardComponent,
|
|
67
|
+
ServiceCapabilitiesComponent,
|
|
68
|
+
KindBadgeComponent,
|
|
69
|
+
GeoDataBadgeComponent,
|
|
62
70
|
],
|
|
63
71
|
})
|
|
64
72
|
export class UiElementsModule {}
|