geonetwork-ui 2.6.0-dev.9df114cd4 → 2.6.0-dev.b1563a5e0
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 +30 -5
- 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 +45 -9
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +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 +33 -7
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/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 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/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 +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 +5 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
- package/esm2022/translations/de.json +37 -5
- package/esm2022/translations/en.json +40 -8
- package/esm2022/translations/es.json +37 -5
- package/esm2022/translations/fr.json +38 -6
- package/esm2022/translations/it.json +43 -11
- package/esm2022/translations/nl.json +37 -5
- package/esm2022/translations/pt.json +37 -5
- package/fesm2022/geonetwork-ui.mjs +2314 -1023
- 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/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 +6 -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 +5 -2
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +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 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/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.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 +46 -5
- 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 +11 -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 +54 -10
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +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 +35 -4
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/constants.ts +1 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -2
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
- package/src/libs/feature/search/src/lib/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 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +3 -4
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/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 +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 +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.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 +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 +4 -16
- package/translations/de.json +37 -5
- package/translations/en.json +40 -8
- package/translations/es.json +37 -5
- package/translations/fr.json +38 -6
- package/translations/it.json +43 -11
- package/translations/nl.json +37 -5
- package/translations/pt.json +37 -5
- package/translations/sk.json +37 -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/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
|
@@ -61,13 +61,14 @@ export interface TableItemModel {
|
|
|
61
61
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
62
62
|
})
|
|
63
63
|
export class DataTableComponent implements OnInit, AfterViewInit, OnChanges {
|
|
64
|
+
_featureAttributes = []
|
|
65
|
+
@Input() set featureAttributes(value: { value: string; label: string }[]) {
|
|
66
|
+
this._featureAttributes = value
|
|
67
|
+
this.properties$.next(value.map((attr) => attr.value))
|
|
68
|
+
}
|
|
64
69
|
@Input() set dataset(value: BaseReader) {
|
|
65
|
-
this.properties$.next(null)
|
|
66
70
|
this.dataset_ = value
|
|
67
71
|
this.dataset_.load()
|
|
68
|
-
this.dataset_.properties.then((properties) =>
|
|
69
|
-
this.properties$.next(properties.map((p) => p.name))
|
|
70
|
-
)
|
|
71
72
|
this.dataset_.info.then((info) => (this.count = info.itemsCount))
|
|
72
73
|
}
|
|
73
74
|
@Input() activeId: TableItemId
|
|
@@ -5,8 +5,10 @@ export * from './lib/content-ghost/content-ghost.component'
|
|
|
5
5
|
export * from './lib/download-item/download-item.component'
|
|
6
6
|
export * from './lib/downloads-list/downloads-list.component'
|
|
7
7
|
export * from './lib/error/error.component'
|
|
8
|
+
export * from './lib/geo-data-badge/geo-data-badge.component'
|
|
8
9
|
export * from './lib/image-input/image-input.component'
|
|
9
10
|
export * from './lib/image-overlay-preview/image-overlay-preview.component'
|
|
11
|
+
export * from './lib/kind-badge/kind-badge.component'
|
|
10
12
|
export * from './lib/link-card/link-card.component'
|
|
11
13
|
export * from './lib/markdown-editor/markdown-editor.component'
|
|
12
14
|
export * from './lib/markdown-parser/markdown-parser.component'
|
|
@@ -24,3 +26,5 @@ export * from './lib/user-feedback-item/user-feedback-item.component'
|
|
|
24
26
|
export * from './lib/user-preview/user-preview.component'
|
|
25
27
|
export * from './lib/application-banner/application-banner.component'
|
|
26
28
|
export * from './lib/internal-link-card/internal-link-card.component'
|
|
29
|
+
export * from './lib/service-capabilities/service-capabilities.component'
|
|
30
|
+
export * from './lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component'
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<div
|
|
2
|
-
class="group flex justify-between rounded filter overflow-hidden"
|
|
2
|
+
class="group flex justify-between rounded filter overflow-hidden card-shadow"
|
|
3
3
|
[ngClass]="cardClass"
|
|
4
4
|
>
|
|
5
5
|
<ng-container *ngIf="size !== 'S'">
|
|
6
|
-
<div>
|
|
6
|
+
<div class="flex-1 min-w-0">
|
|
7
7
|
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="flex items-center">
|
|
9
|
+
<div class="flex items-center min-w-[32px]">
|
|
10
10
|
<ng-container *ngTemplateOutlet="buttons"></ng-container>
|
|
11
11
|
</div>
|
|
12
12
|
</ng-container>
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
</ng-template>
|
|
52
52
|
|
|
53
53
|
<ng-template #content>
|
|
54
|
-
<div>
|
|
54
|
+
<div class="flex-1 min-w-0">
|
|
55
55
|
<div class="gn-ui-card-title">
|
|
56
56
|
{{ link.description || link.name }}
|
|
57
57
|
</div>
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<a
|
|
2
2
|
href="{{ link.url }}"
|
|
3
3
|
target="_blank"
|
|
4
|
-
class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden"
|
|
4
|
+
class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden w-full"
|
|
5
5
|
rel="noopener"
|
|
6
6
|
[ngClass]="cardClass"
|
|
7
7
|
>
|
|
8
|
-
<div class="flex flex-col justify-between">
|
|
8
|
+
<div class="flex flex-col flex-1 justify-between min-w-0">
|
|
9
9
|
<div class="gn-ui-card-title" [title]="link.description || link.name">
|
|
10
10
|
{{ link.description || link.name }}
|
|
11
11
|
</div>
|
|
12
12
|
<div class="gn-ui-card-detail">
|
|
13
13
|
{{ link.name }}
|
|
14
14
|
</div>
|
|
15
|
-
<div class="flex flex-row gap-2 items-center pt-1">
|
|
15
|
+
<div class="flex flex-row gap-2 items-center pt-1 min-w-0">
|
|
16
16
|
<span
|
|
17
|
-
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100"
|
|
17
|
+
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100 whitespace-nowrap"
|
|
18
18
|
[style.background-color]="color"
|
|
19
19
|
data-cy="download-format"
|
|
20
20
|
>{{ format || ('downloads.format.unknown' | translate) }}</span
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
>
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
-
<div
|
|
27
|
+
<div
|
|
28
|
+
class="flex min-w-[32px] flex-shrink-0"
|
|
29
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
30
|
+
>
|
|
28
31
|
<div class="gn-ui-card-icon">
|
|
29
32
|
<ng-icon
|
|
30
33
|
class="inline-block card-icon align-middle"
|
|
@@ -27,7 +27,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
27
27
|
],
|
|
28
28
|
})
|
|
29
29
|
export class DownloadItemComponent {
|
|
30
|
-
private _size:
|
|
30
|
+
private _size: CardSize
|
|
31
31
|
@Input() link: DatasetOnlineResource
|
|
32
32
|
@Input() color: string
|
|
33
33
|
@Input() format: string
|
|
@@ -43,7 +43,7 @@ export class DownloadItemComponent {
|
|
|
43
43
|
this._size = value
|
|
44
44
|
this.cardClass = this.sizeClassMap[value]
|
|
45
45
|
}
|
|
46
|
-
get size():
|
|
46
|
+
get size(): CardSize {
|
|
47
47
|
return this._size
|
|
48
48
|
}
|
|
49
49
|
cardClass = ''
|
|
@@ -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[] {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div
|
|
2
|
+
[class]="badgeClasses"
|
|
3
|
+
[title]="'record.metadata.isGeographical' | translate"
|
|
4
|
+
*ngIf="isGeodata()"
|
|
5
|
+
>
|
|
6
|
+
<ng-icon
|
|
7
|
+
class="shrink-0 text-[0.75em]"
|
|
8
|
+
name="matLocationSearchingOutline"
|
|
9
|
+
></ng-icon>
|
|
10
|
+
<span class="ml-1 hidden sm:inline-block shrink-0" *ngIf="showLabel" translate
|
|
11
|
+
>record.metadata.isGeographical</span
|
|
12
|
+
>
|
|
13
|
+
</div>
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
|
+
import { matLocationSearchingOutline } from '@ng-icons/material-icons/outline'
|
|
3
|
+
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
4
|
+
import { CommonModule } from '@angular/common'
|
|
5
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
6
|
+
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
7
|
+
import { LinkClassifierService, LinkUsage } from '../../../../../../libs/util/shared/src'
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'gn-ui-geo-data-badge',
|
|
11
|
+
templateUrl: './geo-data-badge.component.html',
|
|
12
|
+
styleUrls: ['./geo-data-badge.component.css'],
|
|
13
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, NgIcon, TranslateModule],
|
|
16
|
+
viewProviders: [
|
|
17
|
+
provideIcons({
|
|
18
|
+
matLocationSearchingOutline,
|
|
19
|
+
}),
|
|
20
|
+
],
|
|
21
|
+
})
|
|
22
|
+
export class GeoDataBadgeComponent {
|
|
23
|
+
@Input() showLabel = true
|
|
24
|
+
@Input() styling = 'default'
|
|
25
|
+
@Input() record: CatalogRecord
|
|
26
|
+
|
|
27
|
+
isGeodata() {
|
|
28
|
+
const links =
|
|
29
|
+
'onlineResources' in this.record ? this.record.onlineResources : []
|
|
30
|
+
const hasMapApi = links.some((link) =>
|
|
31
|
+
this.linkClassifier.hasUsage(link, LinkUsage.MAP_API)
|
|
32
|
+
)
|
|
33
|
+
const hasGeoData = links.some((link) =>
|
|
34
|
+
this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)
|
|
35
|
+
)
|
|
36
|
+
return hasMapApi || hasGeoData
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
get badgeClasses(): string {
|
|
40
|
+
const baseClasses =
|
|
41
|
+
'flex shrink-0 items-center badge-btn text-xs px-2 h-6 min-h-6'
|
|
42
|
+
|
|
43
|
+
switch (this.styling) {
|
|
44
|
+
case 'light':
|
|
45
|
+
return `${baseClasses} bg-primary-white text-primary-darkest`
|
|
46
|
+
case 'default':
|
|
47
|
+
return `${baseClasses} bg-primary-darker text-white`
|
|
48
|
+
default:
|
|
49
|
+
return 'flex shrink-0 items-center'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
constructor(public linkClassifier: LinkClassifierService) {}
|
|
54
|
+
}
|
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"
|
|
@@ -1,156 +1,151 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<a [attr.href]="linkHref" [target]="linkTarget">
|
|
2
|
+
<div
|
|
3
|
+
class="group rounded-md bg-white hover:cursor-pointer hover:bg-slate-50 overflow-hidden w-full"
|
|
4
|
+
[ngClass]="cardClass"
|
|
5
|
+
>
|
|
6
6
|
<div
|
|
7
|
-
|
|
8
|
-
[ngClass]="
|
|
9
|
-
class="mr-4 flex flex-col"
|
|
7
|
+
class="flex flex-row md:gap-0 justify-between w-full"
|
|
8
|
+
[ngClass]="{ 'flex-wrap md:flex-nowrap gap-3': size === 'L' }"
|
|
10
9
|
>
|
|
11
|
-
<gn-ui-thumbnail
|
|
12
|
-
class="w-full h-full object-cover"
|
|
13
|
-
[thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
|
|
14
|
-
[fit]="'cover'"
|
|
15
|
-
></gn-ui-thumbnail>
|
|
16
|
-
</div>
|
|
17
|
-
<div
|
|
18
|
-
class="flex flex-col flex-1 relative"
|
|
19
|
-
[ngClass]="{
|
|
20
|
-
'justify-between': record.ownerOrganization?.name && size !== 'XS',
|
|
21
|
-
}"
|
|
22
|
-
>
|
|
23
|
-
<div class="flex items-center space-x-2">
|
|
24
|
-
<span
|
|
25
|
-
*ngIf="getKindInfo().text"
|
|
26
|
-
class="badge-btn text-white text-xs px-2 py-0.5 font-bold shrink-0 bg-primary leading-tight flex items-center justify-evenly h-6 min-h-6"
|
|
27
|
-
>
|
|
28
|
-
<ng-icon
|
|
29
|
-
class="text-[0.9em] text-white mr-1"
|
|
30
|
-
[name]="getKindInfo().icon"
|
|
31
|
-
></ng-icon>
|
|
32
|
-
<span class="font-medium text-white text-xs" translate>
|
|
33
|
-
{{ getKindInfo().text }}
|
|
34
|
-
</span>
|
|
35
|
-
</span>
|
|
36
|
-
<span
|
|
37
|
-
*ngIf="isGeodata"
|
|
38
|
-
class="badge-btn text-black text-xs px-2 py-0.5 font-bold shrink-0 bg-primary-white leading-tight flex items-center justify-evenly h-6 min-h-6"
|
|
39
|
-
[ngClass]="size === 'L' ? 'w-[164px]' : 'w-8'"
|
|
40
|
-
>
|
|
41
|
-
<ng-icon
|
|
42
|
-
class="text-[0.9em] text-primary-darkest"
|
|
43
|
-
name="matLocationSearchingOutline"
|
|
44
|
-
></ng-icon>
|
|
45
|
-
<ng-container *ngIf="size === 'L'">
|
|
46
|
-
<span
|
|
47
|
-
class="font-medium text-primary-darkest text-xs ml-1"
|
|
48
|
-
translate
|
|
49
|
-
>
|
|
50
|
-
record.metadata.type
|
|
51
|
-
</span>
|
|
52
|
-
</ng-container>
|
|
53
|
-
</span>
|
|
54
|
-
<div class="flex items-center">
|
|
55
|
-
<gn-ui-metadata-quality
|
|
56
|
-
[smaller]="true"
|
|
57
|
-
[metadata]="record"
|
|
58
|
-
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
59
|
-
></gn-ui-metadata-quality>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="absolute top-0 right-0 items-center">
|
|
62
|
-
<ng-container
|
|
63
|
-
*ngIf="size !== 'XS'"
|
|
64
|
-
[ngTemplateOutlet]="favoriteTemplate"
|
|
65
|
-
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
66
|
-
></ng-container>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
10
|
<div
|
|
70
|
-
|
|
71
|
-
[ngClass]="
|
|
11
|
+
*ngIf="shouldShowThumbnail"
|
|
12
|
+
[ngClass]="thumbnailContainerClass"
|
|
13
|
+
class="border mr-4 flex flex-col"
|
|
72
14
|
>
|
|
73
|
-
|
|
15
|
+
<gn-ui-thumbnail
|
|
16
|
+
class="w-full h-full object-cover"
|
|
17
|
+
[thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
|
|
18
|
+
[fit]="'cover'"
|
|
19
|
+
></gn-ui-thumbnail>
|
|
74
20
|
</div>
|
|
75
|
-
<div
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
[thumbnailUrl]="
|
|
94
|
-
record.ownerOrganization?.logoUrl?.toString() || ''
|
|
95
|
-
"
|
|
96
|
-
[fit]="'contain'"
|
|
97
|
-
class="w-full h-full rounded-lg"
|
|
98
|
-
></gn-ui-thumbnail>
|
|
21
|
+
<div class="grow flex flex-col gap-3">
|
|
22
|
+
<div class="flex items-center gap-2">
|
|
23
|
+
<div class="grow flex flex-wrap items-center gap-2">
|
|
24
|
+
<gn-ui-kind-badge
|
|
25
|
+
[styling]="'default'"
|
|
26
|
+
[kind]="record?.kind"
|
|
27
|
+
></gn-ui-kind-badge>
|
|
28
|
+
<gn-ui-geo-data-badge
|
|
29
|
+
[showLabel]="size === 'L'"
|
|
30
|
+
[styling]="'light'"
|
|
31
|
+
[record]="record"
|
|
32
|
+
></gn-ui-geo-data-badge>
|
|
33
|
+
<gn-ui-metadata-quality
|
|
34
|
+
class="flex items-center"
|
|
35
|
+
[smaller]="true"
|
|
36
|
+
[metadata]="record"
|
|
37
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
38
|
+
></gn-ui-metadata-quality>
|
|
99
39
|
</div>
|
|
100
|
-
<div *ngIf="
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
>
|
|
105
|
-
record.card.metadata.contact
|
|
106
|
-
</div>
|
|
107
|
-
<div class="text-xl text-primary-black font-medium truncate">
|
|
108
|
-
{{ organization.name }}
|
|
109
|
-
</div>
|
|
40
|
+
<div *ngIf="size !== 'XS'" data-cy="recordFav">
|
|
41
|
+
<ng-container
|
|
42
|
+
[ngTemplateOutlet]="favoriteTemplate"
|
|
43
|
+
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
44
|
+
></ng-container>
|
|
110
45
|
</div>
|
|
111
46
|
</div>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
47
|
+
|
|
48
|
+
<div class="grow flex flex-col gap-2">
|
|
49
|
+
<div
|
|
50
|
+
class="font-medium text-title group-hover:text-primary"
|
|
51
|
+
[title]="record.title"
|
|
52
|
+
>
|
|
53
|
+
<h4
|
|
54
|
+
class="mr-6 overflow-hidden"
|
|
55
|
+
[ngClass]="getTitleClass()"
|
|
56
|
+
data-cy="recordTitle"
|
|
57
|
+
[title]="record.title"
|
|
118
58
|
>
|
|
119
|
-
|
|
120
|
-
</
|
|
59
|
+
{{ record.title }}
|
|
60
|
+
</h4>
|
|
121
61
|
</div>
|
|
122
|
-
<div
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
62
|
+
<div
|
|
63
|
+
*ngIf="size === 'L'"
|
|
64
|
+
class="mr-6 text-xs text-gray-900 line-clamp-2 overflow-hidden"
|
|
65
|
+
data-cy="recordAbstract"
|
|
66
|
+
>
|
|
67
|
+
<gn-ui-markdown-parser
|
|
68
|
+
[textContent]="abstract"
|
|
69
|
+
[whitoutStyles]="true"
|
|
70
|
+
></gn-ui-markdown-parser>
|
|
131
71
|
</div>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div
|
|
75
|
+
data-cy="recordOrg"
|
|
76
|
+
*ngIf="size !== 'XS' && record.ownerOrganization?.name"
|
|
77
|
+
class="flex items-center justify-evenly bg-gray-50 rounded-lg h-[53px] px-2"
|
|
78
|
+
>
|
|
79
|
+
<div class="flex items-center flex-1 min-w-0">
|
|
80
|
+
<div
|
|
81
|
+
class="w-[45px] h-[45px] rounded-lg overflow-hidden shrink-0 mr-3"
|
|
138
82
|
>
|
|
139
|
-
<
|
|
140
|
-
|
|
83
|
+
<gn-ui-thumbnail
|
|
84
|
+
[thumbnailUrl]="
|
|
85
|
+
record.ownerOrganization?.logoUrl?.toString() || ''
|
|
86
|
+
"
|
|
87
|
+
[fit]="'contain'"
|
|
88
|
+
class="w-full h-full rounded-lg"
|
|
89
|
+
></gn-ui-thumbnail>
|
|
90
|
+
</div>
|
|
91
|
+
<div *ngIf="organization?.name" class="flex-1 w-0 overflow-hidden">
|
|
92
|
+
<div
|
|
93
|
+
class="text-xs text-black font-normal leading-tight truncate"
|
|
94
|
+
translate
|
|
95
|
+
>
|
|
96
|
+
record.card.metadata.contact
|
|
97
|
+
</div>
|
|
98
|
+
<div
|
|
99
|
+
data-cy="recordOrgName"
|
|
100
|
+
class="text-xl text-primary-black font-medium truncate"
|
|
101
|
+
>
|
|
102
|
+
{{ organization.name }}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
141
105
|
</div>
|
|
142
|
-
<div *ngIf="
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
106
|
+
<div *ngIf="size === 'L'" class="ml-2 flex space-x-2">
|
|
107
|
+
<div *ngIf="organization?.website" class="flex">
|
|
108
|
+
<button
|
|
109
|
+
[title]="organization.website"
|
|
110
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
|
|
111
|
+
(click)="openExternalUrl($event, organization.website)"
|
|
112
|
+
>
|
|
113
|
+
<ng-icon name="iconoirInternet"></ng-icon>
|
|
114
|
+
</button>
|
|
115
|
+
</div>
|
|
116
|
+
<div *ngIf="contacts[0]?.email" class="flex">
|
|
117
|
+
<button
|
|
118
|
+
[title]="contacts[0].email"
|
|
119
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
|
|
120
|
+
data-cy="contact-email"
|
|
121
|
+
(click)="openMailto($event, contacts[0].email)"
|
|
122
|
+
>
|
|
123
|
+
<ng-icon name="matEmailOutline"></ng-icon>
|
|
124
|
+
</button>
|
|
125
|
+
</div>
|
|
126
|
+
<div *ngIf="contacts[0]?.phone" class="flex">
|
|
127
|
+
<button
|
|
128
|
+
[title]="'Copy to clipboard'"
|
|
129
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
|
|
130
|
+
data-cy="contact-phone"
|
|
131
|
+
(click)="copyToClipboard($event, contacts[0].phone)"
|
|
132
|
+
>
|
|
133
|
+
<ng-icon name="matPhoneOutline"></ng-icon>
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
<div *ngIf="contacts[0]?.address" class="flex">
|
|
137
|
+
<button
|
|
138
|
+
[title]="'Copy to clipboard'"
|
|
139
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
|
|
140
|
+
data-cy="contact-phone"
|
|
141
|
+
(click)="copyToClipboard($event, contacts[0].address)"
|
|
142
|
+
>
|
|
143
|
+
<ng-icon name="matLocationOnOutline"></ng-icon>
|
|
144
|
+
</button>
|
|
145
|
+
</div>
|
|
151
146
|
</div>
|
|
152
147
|
</div>
|
|
153
148
|
</div>
|
|
154
149
|
</div>
|
|
155
150
|
</div>
|
|
156
|
-
</
|
|
151
|
+
</a>
|