geonetwork-ui 2.6.0-dev.b306f1194 → 2.6.0-dev.e61ca542f
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/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
- 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/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +5 -1
- 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 +1 -2
- 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 +8 -3
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
- 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/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 +26 -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/elements/src/index.mjs +3 -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/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 +3 -3
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -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/service-capabilities/service-capabilities.component.mjs +161 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
- 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/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/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 +56 -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/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/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-table/results-table.component.mjs +5 -4
- 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 +2 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
- package/esm2022/translations/de.json +35 -5
- package/esm2022/translations/en.json +38 -6
- package/esm2022/translations/es.json +35 -5
- package/esm2022/translations/fr.json +38 -6
- package/esm2022/translations/it.json +35 -5
- package/esm2022/translations/nl.json +35 -5
- package/esm2022/translations/pt.json +35 -5
- package/fesm2022/geonetwork-ui.mjs +1474 -601
- 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/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/repository/src/lib/gn4/elasticsearch/elasticsearch.service.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 +5 -2
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +1 -1
- 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 +0 -1
- 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.effects.d.ts +3 -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 +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.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/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/elements/src/index.d.ts +2 -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/kind-badge/kind-badge.component.d.ts +11 -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/service-capabilities/service-capabilities.component.d.ts +30 -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 +3 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -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/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/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 +18 -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/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-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 +1 -1
- 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/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 +8 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
- 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 +5 -2
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
- 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 +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -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 +21 -15
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -0
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
- 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/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 +24 -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/elements/src/index.ts +2 -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/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +2 -2
- 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 +9 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -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 +9 -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 +20 -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/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
- package/src/libs/ui/inputs/src/index.ts +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.ts +0 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
- 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/interactive-table/interactive-table.component.html +3 -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 +46 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +62 -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/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/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 +24 -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-table/results-table.component.html +7 -4
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
- 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 +12 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +19 -26
- package/translations/de.json +35 -5
- package/translations/en.json +38 -6
- package/translations/es.json +35 -5
- package/translations/fr.json +38 -6
- package/translations/it.json +35 -5
- package/translations/nl.json +35 -5
- package/translations/pt.json +35 -5
- package/translations/sk.json +35 -5
- 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
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
class="flex flex-wrap justify-between items-center pb-4"
|
|
3
3
|
*ngIf="links && links.length > 0"
|
|
4
4
|
>
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
<div class="flex flex-row items-center gap-x-4">
|
|
6
|
+
<div>
|
|
7
|
+
<h3
|
|
8
|
+
class="inline-block font-title text-xl text-title font-medium mr-4"
|
|
9
|
+
translate
|
|
10
|
+
>
|
|
11
|
+
record.metadata.download
|
|
12
|
+
</h3>
|
|
13
|
+
<span class="px-3">({{ linksCount }})</span>
|
|
14
|
+
</div>
|
|
15
|
+
<gn-ui-previous-next-buttons
|
|
16
|
+
class="md:block hidden"
|
|
17
|
+
*ngIf="_list?.pagesCount > 1"
|
|
18
|
+
[listComponent]="_list"
|
|
19
|
+
></gn-ui-previous-next-buttons>
|
|
10
20
|
</div>
|
|
21
|
+
|
|
11
22
|
<div
|
|
12
23
|
class="flex flex-wrap justify-start sm:justify-end"
|
|
13
24
|
data-cy="download-format-filters"
|
|
@@ -26,9 +37,29 @@
|
|
|
26
37
|
</gn-ui-button>
|
|
27
38
|
</div>
|
|
28
39
|
</div>
|
|
29
|
-
|
|
40
|
+
|
|
41
|
+
<ng-container>
|
|
42
|
+
<gn-ui-block-list
|
|
43
|
+
class="md:block hidden"
|
|
44
|
+
#blockList
|
|
45
|
+
(listChanges)="updateList($event)"
|
|
46
|
+
containerClass="gap-4 pt-5 pb-7"
|
|
47
|
+
>
|
|
48
|
+
<gn-ui-download-item
|
|
49
|
+
#block
|
|
50
|
+
*ngFor="let link of filteredLinks"
|
|
51
|
+
[link]="link"
|
|
52
|
+
[color]="getLinkColor(link)"
|
|
53
|
+
[format]="getLinkFormat(link)"
|
|
54
|
+
[isFromApi]="isFromApi(link)"
|
|
55
|
+
[size]="blockList.subComponentSize"
|
|
56
|
+
></gn-ui-download-item>
|
|
57
|
+
</gn-ui-block-list>
|
|
58
|
+
</ng-container>
|
|
59
|
+
|
|
60
|
+
<div class="mb-5 md:hidden block" *ngFor="let link of filteredLinks">
|
|
30
61
|
<gn-ui-download-item
|
|
31
|
-
size="
|
|
62
|
+
size="M"
|
|
32
63
|
[link]="link"
|
|
33
64
|
[color]="getLinkColor(link)"
|
|
34
65
|
[format]="getLinkFormat(link)"
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
Input,
|
|
7
|
+
ViewChild,
|
|
8
|
+
} from '@angular/core'
|
|
2
9
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
3
10
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
4
11
|
import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
|
|
@@ -6,6 +13,11 @@ import { DatasetDownloadDistribution } from '../../../../../../libs/common/domai
|
|
|
6
13
|
import { CommonModule } from '@angular/common'
|
|
7
14
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
8
15
|
import { DownloadItemComponent } from '../download-item/download-item.component'
|
|
16
|
+
import {
|
|
17
|
+
BlockListComponent,
|
|
18
|
+
Paginable,
|
|
19
|
+
PreviousNextButtonsComponent,
|
|
20
|
+
} from '../../../../../../libs/ui/layout/src'
|
|
9
21
|
|
|
10
22
|
marker('datahub.search.filter.all')
|
|
11
23
|
marker('datahub.search.filter.others')
|
|
@@ -22,17 +34,32 @@ type FilterFormat = (typeof FILTER_FORMATS)[number]
|
|
|
22
34
|
imports: [
|
|
23
35
|
CommonModule,
|
|
24
36
|
ButtonComponent,
|
|
37
|
+
BlockListComponent,
|
|
25
38
|
DownloadItemComponent,
|
|
26
39
|
TranslateModule,
|
|
40
|
+
PreviousNextButtonsComponent,
|
|
27
41
|
],
|
|
28
42
|
})
|
|
29
43
|
export class DownloadsListComponent {
|
|
30
|
-
constructor(
|
|
44
|
+
constructor(
|
|
45
|
+
private translateService: TranslateService,
|
|
46
|
+
private changeDetector: ChangeDetectorRef
|
|
47
|
+
) {}
|
|
31
48
|
|
|
49
|
+
_list: BlockListComponent
|
|
32
50
|
@Input() links: DatasetDownloadDistribution[]
|
|
33
51
|
|
|
52
|
+
get linksCount(): number {
|
|
53
|
+
return this.filteredLinks?.length || 0
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
activeFilterFormats: FilterFormat[] = ['all']
|
|
35
57
|
|
|
58
|
+
updateList($event: BlockListComponent) {
|
|
59
|
+
this._list = $event
|
|
60
|
+
this.changeDetector.detectChanges()
|
|
61
|
+
}
|
|
62
|
+
|
|
36
63
|
private removeDuplicateFormats(
|
|
37
64
|
links: DatasetDownloadDistribution[]
|
|
38
65
|
): DatasetDownloadDistribution[] {
|
package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div
|
|
6
6
|
*ngIf="imageUrl"
|
|
7
7
|
data-cy="record-thumbnail"
|
|
8
|
-
class="shrink-0
|
|
8
|
+
class="shrink-0 rounded-lg overflow-hidden group-hover:shadow-xl group-hover:border-0 h-full w-full"
|
|
9
9
|
>
|
|
10
10
|
<gn-ui-thumbnail
|
|
11
11
|
class="relative h-full w-full"
|
|
@@ -37,7 +37,7 @@ import { TranslateModule } from '@ngx-translate/core'
|
|
|
37
37
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
38
38
|
import { fromEvent, Subscription } from 'rxjs'
|
|
39
39
|
|
|
40
|
-
marker('record.kind.
|
|
40
|
+
marker('record.kind.data')
|
|
41
41
|
marker('record.kind.reuse')
|
|
42
42
|
marker('record.kind.service')
|
|
43
43
|
|
|
@@ -178,7 +178,7 @@ export class InternalLinkCardComponent implements OnInit {
|
|
|
178
178
|
|
|
179
179
|
switch (this.record.kind.toLowerCase()) {
|
|
180
180
|
case 'dataset':
|
|
181
|
-
return { text: 'record.kind.
|
|
181
|
+
return { text: 'record.kind.data', icon: 'iconoirDatabase' }
|
|
182
182
|
case 'reuse':
|
|
183
183
|
return { text: 'record.kind.reuse', icon: 'iconoirMap' }
|
|
184
184
|
case 'service':
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<ng-icon [name]="iconKind" class="mr-1"></ng-icon>
|
|
2
|
+
|
|
3
|
+
<ng-container *ngIf="contentTemplate; else defaultContent">
|
|
4
|
+
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
|
5
|
+
</ng-container>
|
|
6
|
+
|
|
7
|
+
<ng-template #defaultContent>
|
|
8
|
+
{{ kind | translate }}
|
|
9
|
+
</ng-template>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
Input,
|
|
6
|
+
TemplateRef,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { provideIcons } from '@ng-icons/core'
|
|
9
|
+
import {
|
|
10
|
+
iconoirAppleWallet,
|
|
11
|
+
iconoirAppleShortcuts,
|
|
12
|
+
iconoirCode,
|
|
13
|
+
iconoirCreditCard,
|
|
14
|
+
} from '@ng-icons/iconoir'
|
|
15
|
+
import { NgIconsModule } from '@ng-icons/core'
|
|
16
|
+
import { BadgeComponent } from '../../../../../../libs/ui/inputs/src'
|
|
17
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
18
|
+
|
|
19
|
+
enum KindConfig {
|
|
20
|
+
all = 'iconoirAppleWallet', // (this one is for filter)
|
|
21
|
+
dataset = 'iconoirAppleShortcuts',
|
|
22
|
+
service = 'iconoirCode',
|
|
23
|
+
reuse = 'iconoirCreditCard',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'gn-ui-kind-badge',
|
|
28
|
+
templateUrl: './kind-badge.component.html',
|
|
29
|
+
styleUrls: ['./kind-badge.component.css'],
|
|
30
|
+
viewProviders: [
|
|
31
|
+
provideIcons({
|
|
32
|
+
iconoirAppleWallet,
|
|
33
|
+
iconoirAppleShortcuts,
|
|
34
|
+
iconoirCode,
|
|
35
|
+
iconoirCreditCard,
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
|
+
standalone: true,
|
|
40
|
+
imports: [NgIconsModule, CommonModule, BadgeComponent, TranslateModule],
|
|
41
|
+
})
|
|
42
|
+
export class KindBadgeComponent {
|
|
43
|
+
@Input() contentTemplate: TemplateRef<unknown>
|
|
44
|
+
@Input() kind: string
|
|
45
|
+
|
|
46
|
+
hasProjectedContent = false
|
|
47
|
+
|
|
48
|
+
get iconKind() {
|
|
49
|
+
return KindConfig[this.kind] || KindConfig.dataset
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[ngClass]="cardClass"
|
|
6
6
|
[title]="title"
|
|
7
7
|
>
|
|
8
|
-
<div class="flex flex-col justify-between">
|
|
8
|
+
<div class="flex flex-col justify-between flex-1 min-w-0">
|
|
9
9
|
<div class="gn-ui-card-title">
|
|
10
10
|
{{ link.description || link.name }}
|
|
11
11
|
</div>
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
-
<div
|
|
29
|
+
<div
|
|
30
|
+
class="flex min-w-[32px]"
|
|
31
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
32
|
+
>
|
|
30
33
|
<div class="gn-ui-card-icon">
|
|
31
34
|
<ng-icon
|
|
32
35
|
class="inline-block card-icon align-middle"
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
|
-
import {
|
|
3
|
-
DatasetDownloadDistribution,
|
|
4
|
-
DatasetOnlineResource,
|
|
5
|
-
DatasetServiceDistribution,
|
|
6
|
-
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
2
|
+
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
7
3
|
import { CommonModule } from '@angular/common'
|
|
8
4
|
import {
|
|
9
5
|
NgIconComponent,
|
|
@@ -30,7 +26,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
30
26
|
],
|
|
31
27
|
})
|
|
32
28
|
export class LinkCardComponent {
|
|
33
|
-
private _size:
|
|
29
|
+
private _size: CardSize
|
|
34
30
|
@Input() link: DatasetOnlineResource
|
|
35
31
|
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
36
32
|
L: 'gn-ui-card-l py-2 px-5',
|
|
@@ -43,7 +39,7 @@ export class LinkCardComponent {
|
|
|
43
39
|
this._size = value
|
|
44
40
|
this.cardClass = this.sizeClassMap[value]
|
|
45
41
|
}
|
|
46
|
-
get size():
|
|
42
|
+
get size(): CardSize {
|
|
47
43
|
return this._size
|
|
48
44
|
}
|
|
49
45
|
cardClass = ''
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<p class="text-
|
|
3
|
-
|
|
4
|
-
</p>
|
|
5
|
-
<p class="text-primary font-title text-21 mb-1">
|
|
1
|
+
<div class="text-black">
|
|
2
|
+
<p class="text-base mb-3" translate>record.metadata.catalog</p>
|
|
3
|
+
<p class="font-title text-21 mb-1">
|
|
6
4
|
{{ sourceLabel }}
|
|
7
5
|
</p>
|
|
8
6
|
</div>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
<div class="py-5 px-5 rounded bg-gray-100 text-black
|
|
2
|
-
<div class="grid gap-3 overflow-hidden">
|
|
1
|
+
<div class="py-5 px-5 rounded-lg bg-gray-100 text-black">
|
|
2
|
+
<div class="grid grid-cols-1 gap-3 overflow-hidden">
|
|
3
3
|
<div>
|
|
4
|
-
<p class="text-
|
|
4
|
+
<p class="text-base font-medium" translate>record.metadata.contact</p>
|
|
5
5
|
</div>
|
|
6
6
|
<div
|
|
7
7
|
*ngIf="shownOrganization?.logoUrl?.href"
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
fit="contain"
|
|
14
14
|
></gn-ui-thumbnail>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="grid gap-1">
|
|
16
|
+
<div class="grid grid-cols-1 gap-1">
|
|
17
17
|
<div class="flex">
|
|
18
18
|
<div
|
|
19
|
-
class="
|
|
19
|
+
class="font-title text-21 mr-2 cursor-pointer hover:underline"
|
|
20
20
|
(click)="onOrganizationClick()"
|
|
21
21
|
data-cy="organization-name"
|
|
22
22
|
>
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<a
|
|
28
28
|
[href]="shownOrganization.website"
|
|
29
29
|
target="_blank"
|
|
30
|
-
class="contact-website text-
|
|
30
|
+
class="contact-website text-sm cursor-pointer hover:underline transition-all"
|
|
31
31
|
>{{ shownOrganization.website }}
|
|
32
32
|
<ng-icon
|
|
33
33
|
class="!w-[12px] !h-[12px] opacity-75 shrink-0"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
</a>
|
|
37
37
|
</div>
|
|
38
38
|
</div>
|
|
39
|
-
<div class="grid gap-5 py-3 overflow-hidden">
|
|
39
|
+
<div class="grid grid-cols-1 gap-5 py-3 overflow-hidden">
|
|
40
40
|
<div *ngIf="contacts[0]?.phone">
|
|
41
41
|
<div class="flex">
|
|
42
42
|
<ng-icon
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</div>
|
|
50
50
|
</div>
|
|
51
51
|
<div *ngIf="contacts[0]?.email">
|
|
52
|
-
<div class="flex">
|
|
52
|
+
<div class="flex gap-2">
|
|
53
53
|
<ng-icon
|
|
54
54
|
class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
55
55
|
name="matMailOutline"
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<a
|
|
58
58
|
*ngIf="contacts.length"
|
|
59
59
|
[href]="'mailto:' + contacts[0].email"
|
|
60
|
-
class="text-sm hover:underline
|
|
60
|
+
class="break-all text-sm hover:underline"
|
|
61
61
|
target="_blank"
|
|
62
62
|
data-cy="contact-email"
|
|
63
63
|
>{{ contacts[0].email }}</a
|
|
@@ -11,3 +11,12 @@
|
|
|
11
11
|
:host ::ng-deep gn-ui-copy-text-button button ng-icon {
|
|
12
12
|
transform: scale(0.8);
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
:host {
|
|
16
|
+
--gn-ui-badge-background-color: var(--color-primary-white);
|
|
17
|
+
--gn-ui-badge-text-color: var(--color-primary-darkest);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:host .metadata-info-keywords ::ng-deep gn-ui-badge:hover {
|
|
21
|
+
--gn-ui-badge-text-color: white;
|
|
22
|
+
}
|
|
@@ -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)"
|
|
@@ -79,9 +79,12 @@
|
|
|
79
79
|
</ng-container>
|
|
80
80
|
<ng-container *ngIf="otherConstraints.length">
|
|
81
81
|
<div gnUiLinkify *ngFor="let constraint of otherConstraints">
|
|
82
|
-
<
|
|
82
|
+
<span
|
|
83
|
+
translate
|
|
84
|
+
class="font-medium text-black text-sm mb-[2px] mt-[16px]"
|
|
85
|
+
>
|
|
83
86
|
record.metadata.otherConstraints
|
|
84
|
-
</
|
|
87
|
+
</span>
|
|
85
88
|
<div class="mb-6">
|
|
86
89
|
<gn-ui-markdown-parser [textContent]="constraint">
|
|
87
90
|
</gn-ui-markdown-parser>
|
|
@@ -96,10 +99,10 @@
|
|
|
96
99
|
</gn-ui-expandable-panel>
|
|
97
100
|
<gn-ui-expandable-panel
|
|
98
101
|
*ngIf="
|
|
99
|
-
metadata.lineage ||
|
|
102
|
+
(metadata.kind === 'dataset' && metadata.lineage) ||
|
|
100
103
|
metadata.resourceUpdated ||
|
|
101
104
|
metadata.updateFrequency ||
|
|
102
|
-
metadata.status
|
|
105
|
+
(metadata.kind === 'dataset' && metadata.status)
|
|
103
106
|
"
|
|
104
107
|
[title]="'record.metadata.details' | translate"
|
|
105
108
|
>
|
|
@@ -225,9 +228,18 @@
|
|
|
225
228
|
</div>
|
|
226
229
|
</div>
|
|
227
230
|
</gn-ui-expandable-panel>
|
|
231
|
+
<gn-ui-expandable-panel
|
|
232
|
+
*ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
|
|
233
|
+
[title]="'service.metadata.spatialExtent' | translate"
|
|
234
|
+
>
|
|
235
|
+
<gn-ui-spatial-extent
|
|
236
|
+
class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
|
|
237
|
+
[spatialExtents]="metadata.spatialExtents"
|
|
238
|
+
></gn-ui-spatial-extent>
|
|
239
|
+
</gn-ui-expandable-panel>
|
|
228
240
|
<gn-ui-expandable-panel
|
|
229
241
|
*ngIf="metadata.landingPage"
|
|
230
|
-
[title]="'
|
|
242
|
+
[title]="'service.metadata.other' | translate"
|
|
231
243
|
>
|
|
232
244
|
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
233
245
|
<div *ngIf="metadata.recordUpdated">
|
|
@@ -267,6 +279,7 @@
|
|
|
267
279
|
<p class="text-sm mb-1" translate>record.metadata.topics</p>
|
|
268
280
|
<div class="sm:pb-4 sm:pr-16">
|
|
269
281
|
<gn-ui-badge
|
|
282
|
+
[clickable]="false"
|
|
270
283
|
class="inline-block mr-2 mb-2 lowercase"
|
|
271
284
|
*ngFor="let topic of metadata.topics"
|
|
272
285
|
>{{ 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]="{ 'leading-[8px] m-h-[120px]': smaller }"
|
|
7
6
|
>
|
|
8
7
|
<gn-ui-progress-bar
|
|
9
8
|
tabindex="0"
|
|
File without changes
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
[extraClass]="getExtraInputClass()"
|
|
20
|
+
[placeholder]="'service.metadata.search' | translate"
|
|
21
|
+
(input)="onSearchChange($event)"
|
|
22
|
+
(keydown.enter)="onSearchEnter($event)"
|
|
23
|
+
>
|
|
24
|
+
</gn-ui-text-input>
|
|
25
|
+
<div class="border-l absolute border-gray-200 right-0 h-14 w-14">
|
|
26
|
+
<gn-ui-button
|
|
27
|
+
#inputBtn
|
|
28
|
+
type="outline"
|
|
29
|
+
extraClass="h-12 w-12 border-0 absolute right-1 top-1"
|
|
30
|
+
(buttonClick)="searchLayers()"
|
|
31
|
+
>
|
|
32
|
+
<ng-icon name="iconoirSearch"></ng-icon>
|
|
33
|
+
</gn-ui-button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<gn-ui-popover
|
|
37
|
+
[content]="popoverItems"
|
|
38
|
+
theme="light"
|
|
39
|
+
class="w-14 h-14 border border-gray-300 rounded-lg flex justify-center items-center"
|
|
40
|
+
>
|
|
41
|
+
<ng-icon name="matInfoOutline" class="w-6 h-6 pt-0.5"></ng-icon>
|
|
42
|
+
</gn-ui-popover>
|
|
43
|
+
</div>
|
|
44
|
+
<div
|
|
45
|
+
style="height: 500px"
|
|
46
|
+
class="bg-white shadow-xl rounded p-0 flex md:flex-row flex-col"
|
|
47
|
+
>
|
|
48
|
+
<div
|
|
49
|
+
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"
|
|
50
|
+
data-test="layer-list"
|
|
51
|
+
>
|
|
52
|
+
<gn-ui-button
|
|
53
|
+
*ngFor="let layerItem of filteredLayers"
|
|
54
|
+
type="outline"
|
|
55
|
+
[extraClass]="getExtraClass(layerItem)"
|
|
56
|
+
(buttonClick)="selectLayer(layerItem)"
|
|
57
|
+
>
|
|
58
|
+
{{ layerItem.title || layerItem.name }}
|
|
59
|
+
</gn-ui-button>
|
|
60
|
+
<span *ngIf="filteredLayers.length === 0" class="text-gray-800">
|
|
61
|
+
{{ 'service.metadata.filter.noLayers' | translate }}
|
|
62
|
+
</span>
|
|
63
|
+
</div>
|
|
64
|
+
<div
|
|
65
|
+
data-test="layer-information"
|
|
66
|
+
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"
|
|
67
|
+
>
|
|
68
|
+
<div
|
|
69
|
+
*ngFor="let item of layerInformation"
|
|
70
|
+
class="flex flex-row gap-4 border-b border-gray-200"
|
|
71
|
+
>
|
|
72
|
+
<span class="font-semibold w-24">{{ item.displayName }}</span>
|
|
73
|
+
<div *ngIf="isList(item.value)">
|
|
74
|
+
<div
|
|
75
|
+
*ngFor="let subItem of item.value"
|
|
76
|
+
class="flex flex-row break-words max-w-72"
|
|
77
|
+
>
|
|
78
|
+
{{ subItem }}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
<div class="break-words max-w-72" *ngIf="!isList(item.value)">
|
|
82
|
+
{{ item.value }}
|
|
83
|
+
</div>
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
</div>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<ng-template #popoverItems>
|
|
93
|
+
<div class="p-2 py-4">
|
|
94
|
+
<div translate>service.metadata.filter</div>
|
|
95
|
+
</div>
|
|
96
|
+
</ng-template>
|