geonetwork-ui 2.6.0-dev.502fa026d → 2.6.0-dev.5b83cdcc5
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 +4 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +27 -6
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +22 -6
- 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 +163 -0
- 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 +29 -7
- 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-api-form/record-api-form.component.mjs +3 -2
- 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 +22 -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 +79 -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 +33 -24
- package/esm2022/translations/de.json +41 -4
- package/esm2022/translations/en.json +44 -5
- package/esm2022/translations/es.json +41 -4
- package/esm2022/translations/fr.json +44 -5
- package/esm2022/translations/it.json +41 -5
- package/esm2022/translations/nl.json +41 -4
- package/esm2022/translations/pt.json +41 -4
- package/fesm2022/geonetwork-ui.mjs +1752 -620
- 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 +6 -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 +3 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts +9 -1
- package/libs/ui/elements/src/lib/api-card/api-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +8 -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/internal-link-card/internal-link-card.component.d.ts +43 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -0
- 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 +10 -2
- 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-api-form/record-api-form.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 +4 -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 +30 -23
- 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 +6 -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 +1 -7
- 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 +3 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +64 -38
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.ts +26 -2
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +21 -18
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +20 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +42 -10
- 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.css +0 -0
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +156 -0
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +190 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +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 +30 -29
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +28 -2
- 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 +3 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +2 -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 +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 +9 -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 -5
- 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} +7 -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 +4 -3
- 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 +50 -30
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +39 -13
- package/translations/de.json +41 -4
- package/translations/en.json +44 -5
- package/translations/es.json +41 -4
- package/translations/fr.json +44 -5
- package/translations/it.json +41 -5
- package/translations/nl.json +41 -4
- package/translations/pt.json +41 -4
- package/translations/sk.json +41 -4
- 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
|
@@ -10,8 +10,10 @@ import {
|
|
|
10
10
|
MultilingualSearchField,
|
|
11
11
|
OrganizationSearchField,
|
|
12
12
|
OwnerSearchField,
|
|
13
|
+
ResourceTypeLegacyField,
|
|
13
14
|
SimpleSearchField,
|
|
14
15
|
TranslatedSearchField,
|
|
16
|
+
RecordKindField,
|
|
15
17
|
UserSearchField,
|
|
16
18
|
} from './fields'
|
|
17
19
|
import { forkJoin, Observable, of } from 'rxjs'
|
|
@@ -47,11 +49,8 @@ export class FieldsService {
|
|
|
47
49
|
protected fields = {
|
|
48
50
|
organization: new OrganizationSearchField(this.injector),
|
|
49
51
|
format: new SimpleSearchField('format', this.injector, 'asc'),
|
|
50
|
-
resourceType: new
|
|
51
|
-
|
|
52
|
-
this.injector,
|
|
53
|
-
'asc'
|
|
54
|
-
),
|
|
52
|
+
resourceType: new ResourceTypeLegacyField(this.injector), // Deprecated, use `recordKind` instead
|
|
53
|
+
recordKind: new RecordKindField(this.injector),
|
|
55
54
|
representationType: new TranslatedSearchField(
|
|
56
55
|
'cl_spatialRepresentationType.key',
|
|
57
56
|
this.injector,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
} from '../../../../../../../libs/api/repository/src'
|
|
23
23
|
import { LangService } from '../../../../../../../libs/util/i18n/src'
|
|
24
24
|
import { formatUserInfo } from '../../../../../../../libs/util/shared/src'
|
|
25
|
+
import { PossibleResourceTypes } from '../../../../../../../libs/api/metadata-converter/src'
|
|
25
26
|
|
|
26
27
|
export type FieldType = 'values' | 'dateRange'
|
|
27
28
|
|
|
@@ -29,6 +30,7 @@ export type FieldValue = string | number
|
|
|
29
30
|
export interface FieldAvailableValue {
|
|
30
31
|
value: FieldValue
|
|
31
32
|
label: string
|
|
33
|
+
count?: number
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export abstract class AbstractSearchField {
|
|
@@ -80,6 +82,7 @@ export class SimpleSearchField implements AbstractSearchField {
|
|
|
80
82
|
const bucketPromises = buckets.map(async (bucket) => ({
|
|
81
83
|
label: `${await this.getBucketLabel(bucket)} (${bucket.count})`,
|
|
82
84
|
value: bucket.term.toString(),
|
|
85
|
+
count: bucket.count,
|
|
83
86
|
}))
|
|
84
87
|
return Promise.all(bucketPromises)
|
|
85
88
|
})
|
|
@@ -480,3 +483,99 @@ export class AvailableServicesField extends SimpleSearchField {
|
|
|
480
483
|
return of(values)
|
|
481
484
|
}
|
|
482
485
|
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* This class is meant to be used with the legacy filter on `resourceType` (now deprecated, the use of `recordKind` field is recommended).
|
|
489
|
+
* Since creating filters on the same ES field is not possible, in order to make the resource type filter still working,
|
|
490
|
+
* we create an ES on the fly: `resourceTypeLegacy` that references the `resourceType` under the hood.
|
|
491
|
+
* @deprecated Use `recordKind` field instead.
|
|
492
|
+
*/
|
|
493
|
+
export class ResourceTypeLegacyField extends TranslatedSearchField {
|
|
494
|
+
constructor(injector: Injector) {
|
|
495
|
+
super('resourceTypeLegacy', injector, 'asc')
|
|
496
|
+
|
|
497
|
+
// Ask ES to create a field on the fly: 'resourceTypeLegacy' that is in fact, 'resourceType'
|
|
498
|
+
this.esService.registerRuntimeField(
|
|
499
|
+
'resourceTypeLegacy',
|
|
500
|
+
`for (resourceType in doc.resourceType) { emit(resourceType) }`
|
|
501
|
+
)
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
export class RecordKindField extends SimpleSearchField {
|
|
506
|
+
TYPE_MAPPING = {
|
|
507
|
+
dataset: ['dataset', 'series', 'featureCatalog'],
|
|
508
|
+
service: ['service'],
|
|
509
|
+
reuse: Object.entries(PossibleResourceTypes)
|
|
510
|
+
.filter(([_, v]) => v === 'reuse')
|
|
511
|
+
.map(([k]) => k), // = ['application', 'map', 'staticMap', 'interactiveMap', ...]
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
constructor(injector: Injector) {
|
|
515
|
+
super('resourceType', injector, 'asc')
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
getAvailableValues(): Observable<FieldAvailableValue[]> {
|
|
519
|
+
return this.repository.aggregate(this.getAggregations()).pipe(
|
|
520
|
+
map(
|
|
521
|
+
(response) =>
|
|
522
|
+
(response[this.esFieldName] as AggregationBuckets).buckets || []
|
|
523
|
+
),
|
|
524
|
+
map((buckets: TermBucket[]) => {
|
|
525
|
+
const counts = buckets.reduce(
|
|
526
|
+
(acc, { term, count }) => {
|
|
527
|
+
const value = term.toString()
|
|
528
|
+
const key = this.TYPE_MAPPING.reuse.includes(value)
|
|
529
|
+
? 'reuse'
|
|
530
|
+
: this.TYPE_MAPPING.dataset.includes(value)
|
|
531
|
+
? 'dataset'
|
|
532
|
+
: value
|
|
533
|
+
|
|
534
|
+
acc[key] = (acc[key] || 0) + count
|
|
535
|
+
return acc
|
|
536
|
+
},
|
|
537
|
+
{} as Record<string, number>
|
|
538
|
+
)
|
|
539
|
+
|
|
540
|
+
return Object.keys(this.TYPE_MAPPING).map((type) => ({
|
|
541
|
+
label: type,
|
|
542
|
+
value: type,
|
|
543
|
+
count: counts[type] ?? 0,
|
|
544
|
+
}))
|
|
545
|
+
})
|
|
546
|
+
)
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
getFiltersForValues(values: FieldValue[]): Observable<FieldFilters> {
|
|
550
|
+
const filters = {
|
|
551
|
+
[this.esFieldName]: values.reduce((acc, value) => {
|
|
552
|
+
if (value === '') return { ...acc, [value]: true }
|
|
553
|
+
|
|
554
|
+
const keysToAdd = this.TYPE_MAPPING[value] || [value]
|
|
555
|
+
keysToAdd.forEach((key: string) => (acc[key] = true))
|
|
556
|
+
|
|
557
|
+
return acc
|
|
558
|
+
}, {}),
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
return of(filters)
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
getValuesForFilter(filters: FieldFilters): Observable<FieldValue[]> {
|
|
565
|
+
const filter = filters[this.esFieldName]
|
|
566
|
+
if (!filter) return of([])
|
|
567
|
+
|
|
568
|
+
const activeValues = Object.keys(filter).filter((v) => filter[v])
|
|
569
|
+
const activeTypes = Object.keys(this.TYPE_MAPPING).filter((type) =>
|
|
570
|
+
this.TYPE_MAPPING[type].every((t: string) => activeValues.includes(t))
|
|
571
|
+
)
|
|
572
|
+
|
|
573
|
+
// Allow unknown values eg. 'type=somethingnotexist' (for UI to select none)
|
|
574
|
+
const allTypes = [].concat(...Object.values(this.TYPE_MAPPING))
|
|
575
|
+
const unknownValues = activeValues.filter(
|
|
576
|
+
(value) => !allTypes.includes(value)
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
return of([...activeTypes, ...unknownValues])
|
|
580
|
+
}
|
|
581
|
+
}
|
|
@@ -7,6 +7,7 @@ export * from './lib/downloads-list/downloads-list.component'
|
|
|
7
7
|
export * from './lib/error/error.component'
|
|
8
8
|
export * from './lib/image-input/image-input.component'
|
|
9
9
|
export * from './lib/image-overlay-preview/image-overlay-preview.component'
|
|
10
|
+
export * from './lib/kind-badge/kind-badge.component'
|
|
10
11
|
export * from './lib/link-card/link-card.component'
|
|
11
12
|
export * from './lib/markdown-editor/markdown-editor.component'
|
|
12
13
|
export * from './lib/markdown-parser/markdown-parser.component'
|
|
@@ -23,3 +24,5 @@ export * from './lib/ui-elements.module'
|
|
|
23
24
|
export * from './lib/user-feedback-item/user-feedback-item.component'
|
|
24
25
|
export * from './lib/user-preview/user-preview.component'
|
|
25
26
|
export * from './lib/application-banner/application-banner.component'
|
|
27
|
+
export * from './lib/internal-link-card/internal-link-card.component'
|
|
28
|
+
export * from './lib/service-capabilities/service-capabilities.component'
|
|
@@ -1,13 +1,66 @@
|
|
|
1
1
|
<div
|
|
2
|
-
class="group flex
|
|
2
|
+
class="group flex justify-between rounded filter overflow-hidden card-shadow"
|
|
3
|
+
[ngClass]="cardClass"
|
|
3
4
|
>
|
|
4
|
-
<
|
|
5
|
-
class="
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
<ng-container *ngIf="size !== 'S'">
|
|
6
|
+
<div class="flex-1 min-w-0">
|
|
7
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="flex items-center min-w-[32px]">
|
|
10
|
+
<ng-container *ngTemplateOutlet="buttons"></ng-container>
|
|
11
|
+
</div>
|
|
12
|
+
</ng-container>
|
|
13
|
+
<ng-container *ngIf="size === 'S'">
|
|
14
|
+
<ng-container *ngTemplateOutlet="content"></ng-container>
|
|
15
|
+
</ng-container>
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
<ng-template #buttons>
|
|
19
|
+
<div class="flex flex-row gap-2">
|
|
20
|
+
<gn-ui-copy-text-button
|
|
21
|
+
[text]="link.url"
|
|
22
|
+
[tooltipText]="'tooltip.url.copy' | translate"
|
|
23
|
+
[displayText]="false"
|
|
24
|
+
class="border border-gray-300 rounded-lg pt-1 px-2 h-[34px]"
|
|
25
|
+
></gn-ui-copy-text-button>
|
|
26
|
+
<button
|
|
27
|
+
*ngIf="displayApiFormButton"
|
|
28
|
+
type="button"
|
|
29
|
+
class="gn-ui-card-icon"
|
|
30
|
+
[ngClass]="{
|
|
31
|
+
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
|
|
32
|
+
displayText,
|
|
33
|
+
}"
|
|
34
|
+
[matTooltip]="
|
|
35
|
+
!currentlyActive
|
|
36
|
+
? ('record.metadata.api.form.openForm' | translate)
|
|
37
|
+
: ('record.metadata.api.form.closeForm' | translate)
|
|
38
|
+
"
|
|
39
|
+
matTooltipPosition="above"
|
|
40
|
+
(click)="openRecordApiFormPanel()"
|
|
41
|
+
>
|
|
42
|
+
<ng-icon
|
|
43
|
+
class="pointer-events-none align-middle card-icon"
|
|
44
|
+
name="iconoirSettings"
|
|
45
|
+
[ngClass]="{
|
|
46
|
+
'text-secondary opacity-100': currentlyActive,
|
|
47
|
+
}"
|
|
48
|
+
></ng-icon>
|
|
49
|
+
</button>
|
|
8
50
|
</div>
|
|
9
|
-
|
|
10
|
-
|
|
51
|
+
</ng-template>
|
|
52
|
+
|
|
53
|
+
<ng-template #content>
|
|
54
|
+
<div class="flex-1 min-w-0">
|
|
55
|
+
<div class="gn-ui-card-title">
|
|
56
|
+
{{ link.description || link.name }}
|
|
57
|
+
</div>
|
|
58
|
+
<div class="gn-ui-card-detail">
|
|
59
|
+
{{ link.name }}
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
<div class="flex flex-row justify-between">
|
|
63
|
+
<div class="flex flex-row gap-2.5 items-center pt-1">
|
|
11
64
|
<span
|
|
12
65
|
*ngIf="link.accessServiceProtocol !== 'GPFDL'"
|
|
13
66
|
class="bg-primary-opacity-50 uppercase inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded text-primary-lightest group-hover:bg-primary transition-colors"
|
|
@@ -26,36 +79,9 @@
|
|
|
26
79
|
>
|
|
27
80
|
record.metadata.api.gpfdl</span
|
|
28
81
|
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[tooltipText]="'tooltip.url.copy' | translate"
|
|
33
|
-
[displayText]="false"
|
|
34
|
-
></gn-ui-copy-text-button>
|
|
35
|
-
<button
|
|
36
|
-
*ngIf="displayApiFormButton"
|
|
37
|
-
type="button"
|
|
38
|
-
[ngClass]="{
|
|
39
|
-
'py-2 px-4 rounded-r-md bg-gray-400 hover:bg-gray-600 focus:bg-gray-800 text-white':
|
|
40
|
-
displayText,
|
|
41
|
-
}"
|
|
42
|
-
[matTooltip]="
|
|
43
|
-
!currentlyActive
|
|
44
|
-
? ('record.metadata.api.form.openForm' | translate)
|
|
45
|
-
: ('record.metadata.api.form.closeForm' | translate)
|
|
46
|
-
"
|
|
47
|
-
matTooltipPosition="above"
|
|
48
|
-
(click)="openRecordApiFormPanel()"
|
|
49
|
-
>
|
|
50
|
-
<ng-icon
|
|
51
|
-
class="pointer-events-none align-middle card-icon"
|
|
52
|
-
name="matMoreHoriz"
|
|
53
|
-
[ngClass]="{
|
|
54
|
-
'text-secondary opacity-100': currentlyActive,
|
|
55
|
-
}"
|
|
56
|
-
></ng-icon>
|
|
57
|
-
</button>
|
|
58
|
-
</div>
|
|
82
|
+
</div>
|
|
83
|
+
<div *ngIf="size === 'S'">
|
|
84
|
+
<ng-container *ngTemplateOutlet="buttons"></ng-container>
|
|
59
85
|
</div>
|
|
60
86
|
</div>
|
|
61
|
-
</
|
|
87
|
+
</ng-template>
|
|
@@ -14,7 +14,9 @@ import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
16
16
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
17
|
-
import {
|
|
17
|
+
import { iconoirSettings } from '@ng-icons/iconoir'
|
|
18
|
+
|
|
19
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
18
20
|
|
|
19
21
|
@Component({
|
|
20
22
|
selector: 'gn-ui-api-card',
|
|
@@ -31,18 +33,40 @@ import { matMoreHoriz } from '@ng-icons/material-icons/baseline'
|
|
|
31
33
|
],
|
|
32
34
|
viewProviders: [
|
|
33
35
|
provideIcons({
|
|
34
|
-
|
|
36
|
+
iconoirSettings,
|
|
35
37
|
}),
|
|
36
38
|
],
|
|
37
39
|
})
|
|
38
40
|
export class ApiCardComponent implements OnInit, OnChanges {
|
|
41
|
+
private _size: 'L' | 'M' | 'S' | 'XS'
|
|
39
42
|
@Input() link: DatasetServiceDistribution
|
|
40
43
|
@Input() currentLink: DatasetServiceDistribution
|
|
44
|
+
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
45
|
+
L: 'gn-ui-card-l py-2 px-5 flex-row',
|
|
46
|
+
M: 'gn-ui-card-m py-2 px-5 flex-row',
|
|
47
|
+
S: 'gn-ui-card-s p-4 flex-col',
|
|
48
|
+
XS: 'gn-ui-card-xs py-2 px-5 flex-row',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@Input() set size(value: CardSize) {
|
|
52
|
+
this._size = value
|
|
53
|
+
this.cardClass = this.sizeClassMap[value]
|
|
54
|
+
}
|
|
55
|
+
get size(): 'L' | 'M' | 'S' | 'XS' {
|
|
56
|
+
return this._size
|
|
57
|
+
}
|
|
58
|
+
cardClass = ''
|
|
41
59
|
displayApiFormButton: boolean
|
|
42
60
|
currentlyActive = false
|
|
43
61
|
@Output() openRecordApiForm: EventEmitter<DatasetServiceDistribution> =
|
|
44
62
|
new EventEmitter<DatasetServiceDistribution>()
|
|
45
63
|
|
|
64
|
+
get generatedText() {
|
|
65
|
+
return this.link.accessServiceProtocol === 'wfs'
|
|
66
|
+
? 'datahub.search.filter.generatedByWfs'
|
|
67
|
+
: 'datahub.search.filter.generatedByAPI'
|
|
68
|
+
}
|
|
69
|
+
|
|
46
70
|
ngOnInit() {
|
|
47
71
|
this.displayApiFormButton =
|
|
48
72
|
this.link.accessServiceProtocol === 'ogcFeatures' ||
|
|
@@ -1,36 +1,39 @@
|
|
|
1
1
|
<a
|
|
2
2
|
href="{{ link.url }}"
|
|
3
3
|
target="_blank"
|
|
4
|
-
class="group flex justify-between card-shadow
|
|
4
|
+
class="group flex flex-row justify-between card-shadow cursor-pointer rounded overflow-hidden w-full"
|
|
5
5
|
rel="noopener"
|
|
6
|
+
[ngClass]="cardClass"
|
|
6
7
|
>
|
|
7
|
-
<div class="
|
|
8
|
-
<div
|
|
9
|
-
class="text-21 text-black truncate font-title w-11/12"
|
|
10
|
-
[title]="link.description || link.name"
|
|
11
|
-
>
|
|
8
|
+
<div class="flex flex-col flex-1 justify-between min-w-0">
|
|
9
|
+
<div class="gn-ui-card-title" [title]="link.description || link.name">
|
|
12
10
|
{{ link.description || link.name }}
|
|
13
11
|
</div>
|
|
14
|
-
<div class="
|
|
12
|
+
<div class="gn-ui-card-detail">
|
|
13
|
+
{{ link.name }}
|
|
14
|
+
</div>
|
|
15
|
+
<div class="flex flex-row gap-2 items-center pt-1 min-w-0">
|
|
15
16
|
<span
|
|
16
|
-
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"
|
|
17
18
|
[style.background-color]="color"
|
|
18
19
|
data-cy="download-format"
|
|
19
20
|
>{{ format || ('downloads.format.unknown' | translate) }}</span
|
|
20
21
|
>
|
|
21
|
-
<span
|
|
22
|
-
class="pl-2 inline-flex items-center text-gray-800 text-sm"
|
|
23
|
-
*ngIf="isFromApi"
|
|
24
|
-
translate=""
|
|
22
|
+
<span class="text-gray-800 text-xs" *ngIf="isFromApi" translate=""
|
|
25
23
|
>datahub.search.filter.generatedByAPI</span
|
|
26
24
|
>
|
|
27
25
|
</div>
|
|
28
26
|
</div>
|
|
29
|
-
<div
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
>
|
|
34
|
-
|
|
27
|
+
<div
|
|
28
|
+
class="flex min-w-[32px] flex-shrink-0"
|
|
29
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
30
|
+
>
|
|
31
|
+
<div class="gn-ui-card-icon">
|
|
32
|
+
<ng-icon
|
|
33
|
+
class="inline-block card-icon align-middle"
|
|
34
|
+
name="iconoirDownload"
|
|
35
|
+
>
|
|
36
|
+
</ng-icon>
|
|
37
|
+
</div>
|
|
35
38
|
</div>
|
|
36
39
|
</a>
|
|
@@ -9,7 +9,9 @@ import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/
|
|
|
9
9
|
import { TranslateModule } from '@ngx-translate/core'
|
|
10
10
|
import { CommonModule } from '@angular/common'
|
|
11
11
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
12
|
-
import {
|
|
12
|
+
import { iconoirDownload } from '@ng-icons/iconoir'
|
|
13
|
+
|
|
14
|
+
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
13
15
|
|
|
14
16
|
@Component({
|
|
15
17
|
selector: 'gn-ui-download-item',
|
|
@@ -20,15 +22,31 @@ import { matCloudDownloadOutline } from '@ng-icons/material-icons/outline'
|
|
|
20
22
|
standalone: true,
|
|
21
23
|
viewProviders: [
|
|
22
24
|
provideIcons({
|
|
23
|
-
|
|
25
|
+
iconoirDownload,
|
|
24
26
|
}),
|
|
25
27
|
],
|
|
26
28
|
})
|
|
27
29
|
export class DownloadItemComponent {
|
|
30
|
+
private _size: CardSize
|
|
28
31
|
@Input() link: DatasetOnlineResource
|
|
29
32
|
@Input() color: string
|
|
30
33
|
@Input() format: string
|
|
31
34
|
@Input() isFromApi: boolean
|
|
35
|
+
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
36
|
+
L: 'gn-ui-card-l py-2 px-5',
|
|
37
|
+
M: 'gn-ui-card-m py-2 px-5',
|
|
38
|
+
S: 'gn-ui-card-s p-4',
|
|
39
|
+
XS: 'gn-ui-card-xs py-2 px-5',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@Input() set size(value: CardSize) {
|
|
43
|
+
this._size = value
|
|
44
|
+
this.cardClass = this.sizeClassMap[value]
|
|
45
|
+
}
|
|
46
|
+
get size(): CardSize {
|
|
47
|
+
return this._size
|
|
48
|
+
}
|
|
49
|
+
cardClass = ''
|
|
32
50
|
@Output() exportUrl = new EventEmitter<string>()
|
|
33
51
|
|
|
34
52
|
openUrl() {
|
|
@@ -1,22 +1,33 @@
|
|
|
1
1
|
<div
|
|
2
|
-
class="flex flex-wrap justify-between
|
|
2
|
+
class="flex flex-wrap justify-between items-center pb-4"
|
|
3
3
|
*ngIf="links && links.length > 0"
|
|
4
4
|
>
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
11
22
|
<div
|
|
12
|
-
class="flex flex-wrap justify-start sm:justify-end
|
|
23
|
+
class="flex flex-wrap justify-start sm:justify-end"
|
|
13
24
|
data-cy="download-format-filters"
|
|
14
25
|
>
|
|
15
26
|
<gn-ui-button
|
|
16
27
|
class="m-1 format-filter"
|
|
17
28
|
[extraClass]="
|
|
18
29
|
'!px-[12px] !py-[8px] !text-[15px]' +
|
|
19
|
-
(isFilterActive(format) ? ' opacity-100' : ' opacity-
|
|
30
|
+
(isFilterActive(format) ? ' opacity-100' : ' opacity-60')
|
|
20
31
|
"
|
|
21
32
|
(buttonClick)="toggleFilterFormat(format)"
|
|
22
33
|
[attr.data-format]="format"
|
|
@@ -26,8 +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
|
|
62
|
+
size="M"
|
|
31
63
|
[link]="link"
|
|
32
64
|
[color]="getLinkColor(link)"
|
|
33
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"
|
|
File without changes
|