geonetwork-ui 2.6.0-dev.b306f1194 → 2.6.0-dev.e61ca542f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +8 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -10
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +5 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +5 -1
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
- package/esm2022/libs/feature/record/src/index.mjs +1 -2
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +8 -3
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +8 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -6
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +26 -10
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +3 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +51 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +161 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +16 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +56 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
- package/esm2022/libs/ui/map/src/index.mjs +2 -1
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +5 -4
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +13 -6
- package/esm2022/translations/de.json +35 -5
- package/esm2022/translations/en.json +38 -6
- package/esm2022/translations/es.json +35 -5
- package/esm2022/translations/fr.json +38 -6
- package/esm2022/translations/it.json +35 -5
- package/esm2022/translations/nl.json +35 -5
- package/esm2022/translations/pt.json +35 -5
- package/fesm2022/geonetwork-ui.mjs +1474 -601
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +5 -2
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +0 -1
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +3 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +2 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +11 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +30 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +3 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +18 -0
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +1 -0
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/shared/src/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
- package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +8 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -9
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +5 -2
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +26 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +2 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +4 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -0
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
- package/src/libs/feature/record/src/index.ts +0 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +14 -10
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +21 -15
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +5 -0
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +5 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +4 -7
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +0 -6
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +24 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/elements/src/index.ts +2 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +9 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +51 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +9 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +20 -7
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +96 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +183 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -0
- package/src/libs/ui/inputs/src/index.ts +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +0 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +6 -6
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -7
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +46 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +62 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
- package/src/libs/ui/map/src/index.ts +1 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
- package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +24 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +7 -4
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +2 -1
- package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
- package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +12 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +30 -12
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +19 -26
- package/translations/de.json +35 -5
- package/translations/en.json +38 -6
- package/translations/es.json +35 -5
- package/translations/fr.json +38 -6
- package/translations/it.json +35 -5
- package/translations/nl.json +35 -5
- package/translations/pt.json +35 -5
- package/translations/sk.json +35 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
- package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
|
@@ -12,7 +12,11 @@ import { CommonModule } from '@angular/common'
|
|
|
12
12
|
import { NgIconComponent, provideIcons } from '@ng-icons/core'
|
|
13
13
|
import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
16
|
+
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
15
17
|
|
|
18
|
+
marker('editor.record.lock.reason')
|
|
19
|
+
marker('editor.record.lock.format')
|
|
16
20
|
@Component({
|
|
17
21
|
selector: 'gn-ui-interactive-table',
|
|
18
22
|
templateUrl: './interactive-table.component.html',
|
|
@@ -44,6 +48,15 @@ export class InteractiveTableComponent {
|
|
|
44
48
|
}
|
|
45
49
|
}
|
|
46
50
|
|
|
51
|
+
getItemTitle(item: CatalogRecord) {
|
|
52
|
+
if (!item.extras?.edit && !this.isDraftPage && item.kind === 'dataset') {
|
|
53
|
+
return 'editor.record.lock.reason'
|
|
54
|
+
} else if (item.kind !== 'dataset') {
|
|
55
|
+
return 'editor.record.lock.format'
|
|
56
|
+
}
|
|
57
|
+
return ''
|
|
58
|
+
}
|
|
59
|
+
|
|
47
60
|
handleRowClick(item: unknown) {
|
|
48
61
|
this.itemClick.emit(item)
|
|
49
62
|
}
|
package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
<div class="flex flex-row gap-x-
|
|
1
|
+
<div class="flex flex-row gap-x-1 items-center">
|
|
2
2
|
<gn-ui-button
|
|
3
3
|
data-test="previousButton"
|
|
4
|
-
type="
|
|
4
|
+
type="light"
|
|
5
|
+
[extraClass]="
|
|
6
|
+
'w-10 h-8 px-2 py-1 rounded-lg ' +
|
|
7
|
+
(!listComponent.isFirstPage
|
|
8
|
+
? 'border border-gray-300'
|
|
9
|
+
: 'border border-gray-100')
|
|
10
|
+
"
|
|
5
11
|
[disabled]="listComponent.isFirstPage"
|
|
6
12
|
(buttonClick)="listComponent.goToPrevPage()"
|
|
7
13
|
>
|
|
8
|
-
<ng-icon name="
|
|
14
|
+
<ng-icon name="matArrowBackIos"></ng-icon>
|
|
9
15
|
</gn-ui-button>
|
|
10
16
|
<gn-ui-button
|
|
11
17
|
data-test="nextButton"
|
|
12
|
-
type="
|
|
18
|
+
type="light"
|
|
19
|
+
[extraClass]="
|
|
20
|
+
'w-10 h-8 px-2 py-1 rounded-lg ' +
|
|
21
|
+
(!listComponent.isLastPage
|
|
22
|
+
? 'border border-gray-300'
|
|
23
|
+
: 'border border-gray-100')
|
|
24
|
+
"
|
|
13
25
|
[disabled]="listComponent.isLastPage"
|
|
14
26
|
(buttonClick)="listComponent.goToNextPage()"
|
|
15
27
|
>
|
|
16
|
-
<ng-icon name="
|
|
28
|
+
<ng-icon name="matArrowForwardIos"></ng-icon>
|
|
17
29
|
</gn-ui-button>
|
|
18
30
|
</div>
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
provideNgIconsConfig,
|
|
6
6
|
} from '@ng-icons/core'
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
matArrowBackIos,
|
|
9
|
+
matArrowForwardIos,
|
|
10
10
|
} from '@ng-icons/material-icons/baseline'
|
|
11
11
|
import { Paginable } from '../paginable.interface'
|
|
12
12
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
@@ -18,7 +18,7 @@ import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
|
18
18
|
standalone: true,
|
|
19
19
|
imports: [ButtonComponent, NgIconComponent],
|
|
20
20
|
providers: [
|
|
21
|
-
provideIcons({
|
|
21
|
+
provideIcons({ matArrowBackIos, matArrowForwardIos }),
|
|
22
22
|
provideNgIconsConfig({
|
|
23
23
|
size: '0.875em',
|
|
24
24
|
}),
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="flex items-center justify-between w-full gap-2"
|
|
3
|
+
cdkOverlayOrigin
|
|
4
|
+
#trigger="cdkOverlayOrigin"
|
|
5
|
+
>
|
|
6
|
+
<span #textElement class="truncate">
|
|
7
|
+
{{ text }}
|
|
8
|
+
</span>
|
|
9
|
+
<gn-ui-button
|
|
10
|
+
*ngIf="isTextTruncated"
|
|
11
|
+
type="outline"
|
|
12
|
+
extraClass="w-10 h-8 border rounded-lg"
|
|
13
|
+
(buttonClick)="toggleOverlay()"
|
|
14
|
+
>
|
|
15
|
+
<ng-icon name="iconoirExpand" size="24"> </ng-icon>
|
|
16
|
+
</gn-ui-button>
|
|
17
|
+
|
|
18
|
+
<ng-template
|
|
19
|
+
cdkConnectedOverlay
|
|
20
|
+
[cdkConnectedOverlayOrigin]="trigger"
|
|
21
|
+
[cdkConnectedOverlayOpen]="isOpen"
|
|
22
|
+
[cdkConnectedOverlayPositions]="[
|
|
23
|
+
{
|
|
24
|
+
originX: 'end',
|
|
25
|
+
originY: 'top',
|
|
26
|
+
overlayX: 'end',
|
|
27
|
+
overlayY: 'top',
|
|
28
|
+
},
|
|
29
|
+
]"
|
|
30
|
+
(detach)="isOpen = false"
|
|
31
|
+
>
|
|
32
|
+
<div class="bg-white shadow-lg border border-gray-300 flex">
|
|
33
|
+
<div class="w-64">
|
|
34
|
+
<p class="m-2">{{ text }}</p>
|
|
35
|
+
</div>
|
|
36
|
+
<gn-ui-button
|
|
37
|
+
class="m-2 flex-shrink-0"
|
|
38
|
+
type="light"
|
|
39
|
+
(buttonClick)="close()"
|
|
40
|
+
extraClass="w-10 h-8 px-1 bg-white"
|
|
41
|
+
>
|
|
42
|
+
<ng-icon name="iconoirReduce" size="24"> </ng-icon>
|
|
43
|
+
</gn-ui-button>
|
|
44
|
+
</div>
|
|
45
|
+
</ng-template>
|
|
46
|
+
</div>
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
ElementRef,
|
|
6
|
+
Input,
|
|
7
|
+
ViewChild,
|
|
8
|
+
} from '@angular/core'
|
|
9
|
+
import { CommonModule } from '@angular/common'
|
|
10
|
+
import { provideIcons } from '@ng-icons/core'
|
|
11
|
+
import { iconoirExpand, iconoirReduce } from '@ng-icons/iconoir'
|
|
12
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
13
|
+
import { MatButtonModule } from '@angular/material/button'
|
|
14
|
+
import { OverlayModule } from '@angular/cdk/overlay'
|
|
15
|
+
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
16
|
+
import { NgIconComponent } from '@ng-icons/core'
|
|
17
|
+
|
|
18
|
+
@Component({
|
|
19
|
+
selector: 'gn-ui-truncated-text',
|
|
20
|
+
standalone: true,
|
|
21
|
+
imports: [
|
|
22
|
+
CommonModule,
|
|
23
|
+
TranslateModule,
|
|
24
|
+
MatButtonModule,
|
|
25
|
+
OverlayModule,
|
|
26
|
+
ButtonComponent,
|
|
27
|
+
NgIconComponent,
|
|
28
|
+
],
|
|
29
|
+
providers: [provideIcons({ iconoirExpand, iconoirReduce })],
|
|
30
|
+
templateUrl: './truncated-text.component.html',
|
|
31
|
+
styles: [],
|
|
32
|
+
})
|
|
33
|
+
export class TruncatedTextComponent implements AfterViewInit {
|
|
34
|
+
@Input() text = ''
|
|
35
|
+
@ViewChild('textElement') textElement: ElementRef<HTMLElement>
|
|
36
|
+
isTextTruncated = false
|
|
37
|
+
isOpen = false
|
|
38
|
+
|
|
39
|
+
constructor(private cd: ChangeDetectorRef) {}
|
|
40
|
+
|
|
41
|
+
ngAfterViewInit() {
|
|
42
|
+
this.checkTextTruncation()
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
ngOnChange() {
|
|
46
|
+
this.checkTextTruncation()
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
toggleOverlay() {
|
|
50
|
+
this.isOpen = !this.isOpen
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
close() {
|
|
54
|
+
this.isOpen = false
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
private checkTextTruncation() {
|
|
58
|
+
const element = this.textElement.nativeElement
|
|
59
|
+
this.isTextTruncated = element.scrollWidth > element.clientWidth
|
|
60
|
+
this.cd.detectChanges()
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -7,11 +7,7 @@ import { NgIconComponent, provideNgIconsConfig } from '@ng-icons/core'
|
|
|
7
7
|
|
|
8
8
|
@NgModule({
|
|
9
9
|
imports: [CommonModule, TranslateModule.forChild(), NgIconComponent],
|
|
10
|
-
providers: [
|
|
11
|
-
provideNgIconsConfig({
|
|
12
|
-
size: '0.9em',
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
10
|
+
providers: [],
|
|
15
11
|
declarations: [StickyHeaderComponent, AnchorLinkDirective],
|
|
16
12
|
exports: [StickyHeaderComponent, AnchorLinkDirective],
|
|
17
13
|
})
|
|
@@ -3,3 +3,4 @@ export * from './lib/components/map-container/map-settings.token'
|
|
|
3
3
|
export * from './lib/components/feature-detail/feature-detail.component'
|
|
4
4
|
export * from './lib/components/map-legend/map-legend.component'
|
|
5
5
|
export * from './lib/map-utils'
|
|
6
|
+
export * from './lib/components/spatial-extent/spatial-extent.component'
|
|
File without changes
|
|
@@ -1,27 +1,26 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Component, Input } from '@angular/core'
|
|
2
2
|
import { CommonModule } from '@angular/common'
|
|
3
3
|
import { Geometry } from 'geojson'
|
|
4
4
|
import GeoJSON, { GeoJSONFeatureCollection } from 'ol/format/GeoJSON'
|
|
5
|
-
import { DatasetSpatialExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
6
5
|
import { Polygon } from 'ol/geom'
|
|
7
6
|
import {
|
|
8
7
|
createViewFromLayer,
|
|
9
8
|
MapContext,
|
|
10
9
|
MapContextLayer,
|
|
11
10
|
} from '@geospatial-sdk/core'
|
|
12
|
-
import { MapContainerComponent } from '
|
|
11
|
+
import { MapContainerComponent } from '../map-container/map-container.component'
|
|
13
12
|
import { BehaviorSubject, Observable } from 'rxjs'
|
|
14
13
|
import { switchMap } from 'rxjs/operators'
|
|
14
|
+
import { DatasetSpatialExtent } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
15
15
|
|
|
16
16
|
@Component({
|
|
17
|
-
selector: 'gn-ui-
|
|
17
|
+
selector: 'gn-ui-spatial-extent',
|
|
18
18
|
standalone: true,
|
|
19
19
|
imports: [CommonModule, MapContainerComponent],
|
|
20
|
-
templateUrl: './
|
|
21
|
-
|
|
22
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
templateUrl: './spatial-extent.component.html',
|
|
21
|
+
styleUrl: './spatial-extent.component.css',
|
|
23
22
|
})
|
|
24
|
-
export class
|
|
23
|
+
export class SpatialExtentComponent {
|
|
25
24
|
@Input() set spatialExtents(value: DatasetSpatialExtent[]) {
|
|
26
25
|
this.spatialExtents$.next(value)
|
|
27
26
|
}
|
|
@@ -58,6 +57,7 @@ export class FormFieldMapContainerComponent {
|
|
|
58
57
|
style: {
|
|
59
58
|
'stroke-color': 'black',
|
|
60
59
|
'stroke-width': 2,
|
|
60
|
+
'fill-color': 'rgba(153, 153, 153, 0.3)',
|
|
61
61
|
},
|
|
62
62
|
}
|
|
63
63
|
const view = await createViewFromLayer(layer)
|
|
@@ -16,5 +16,6 @@ export * from './lib/record-preview-text/record-preview-text.component'
|
|
|
16
16
|
export * from './lib/record-preview-title/record-preview-title.component'
|
|
17
17
|
export * from './lib/record-metric/record-metric.component'
|
|
18
18
|
export * from './lib/results-list-item/results-list-item.component'
|
|
19
|
+
export * from './lib/results-hits-search-kind/results-hits-search-kind.component'
|
|
19
20
|
export * from './lib/results-hits-number/results-hits-number.component'
|
|
20
21
|
export * from './lib/results-table/results-table.component'
|
package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<gn-ui-inline-filter
|
|
2
|
+
[choices]="availableChoices"
|
|
3
|
+
[selected]="selected"
|
|
4
|
+
(selectValues)="onSelectedValues($event)"
|
|
5
|
+
>
|
|
6
|
+
<ng-template let-choice>
|
|
7
|
+
<gn-ui-kind-badge
|
|
8
|
+
[kind]="choice.value"
|
|
9
|
+
[contentTemplate]="customTemplate"
|
|
10
|
+
class="gn-ui-btn-outline rounded-md py-2 px-2 border-gray-400 cursor-pointer focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors bg-transparent hover:text-primary-darker focus:text-primary-darker active:text-primary-black"
|
|
11
|
+
[ngClass]="{
|
|
12
|
+
'!bg-primary-lightest hover:bg-primary-lightest':
|
|
13
|
+
isSelectedChoice(choice.value) || isAllChoice(choice.value),
|
|
14
|
+
}"
|
|
15
|
+
>
|
|
16
|
+
<ng-template #customTemplate>
|
|
17
|
+
{{ 'search.filters.recordKind.' + choice.value | translate
|
|
18
|
+
}}<span class="ml-1" *ngIf="isSelectedChoice(choice.value)"
|
|
19
|
+
>({{ choice.count }})</span
|
|
20
|
+
>
|
|
21
|
+
</ng-template>
|
|
22
|
+
</gn-ui-kind-badge>
|
|
23
|
+
</ng-template>
|
|
24
|
+
</gn-ui-inline-filter>
|
package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Component,
|
|
3
|
+
EventEmitter,
|
|
4
|
+
Input,
|
|
5
|
+
OnChanges,
|
|
6
|
+
SimpleChanges,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core'
|
|
9
|
+
import { Choice } from '../../../../../../libs/ui/inputs/src'
|
|
10
|
+
|
|
11
|
+
@Component({
|
|
12
|
+
selector: 'gn-ui-results-hits-search-kind',
|
|
13
|
+
templateUrl: './results-hits-search-kind.component.html',
|
|
14
|
+
})
|
|
15
|
+
export class ResultsHitsSearchKindComponent implements OnChanges {
|
|
16
|
+
@Input() selected: string[] = []
|
|
17
|
+
@Input() choices: Choice[] = []
|
|
18
|
+
@Output() selectionChanged = new EventEmitter<string[]>()
|
|
19
|
+
|
|
20
|
+
availableChoices: Choice[] = []
|
|
21
|
+
|
|
22
|
+
ngOnChanges(changes: SimpleChanges) {
|
|
23
|
+
if (changes.choices && changes.choices.currentValue) {
|
|
24
|
+
this.availableChoices = this.buildFilterChoices(this.choices)
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
buildFilterChoices(availableValues: Choice[]) {
|
|
29
|
+
return [
|
|
30
|
+
...[
|
|
31
|
+
{
|
|
32
|
+
label: 'all',
|
|
33
|
+
value: 'all',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
...availableValues,
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
onSelectedValues(values: string[]) {
|
|
41
|
+
const selectedValues = values.includes('all') ? [] : values
|
|
42
|
+
|
|
43
|
+
this.selectionChanged.emit(selectedValues)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
isSelectedChoice(choiceValue: string) {
|
|
47
|
+
return this.selected.includes(choiceValue)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
isAllChoice(choiceValue: string) {
|
|
51
|
+
return this.selected.length === 0 && choiceValue === 'all'
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
<ng-icon
|
|
10
10
|
name="iconoirLock"
|
|
11
11
|
class="text-purple"
|
|
12
|
-
*ngIf="!item.extras?.edit && !isDraftPage"
|
|
12
|
+
*ngIf="(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'"
|
|
13
13
|
></ng-icon>
|
|
14
14
|
<gn-ui-checkbox
|
|
15
|
-
*ngIf="item.extras?.edit || isDraftPage"
|
|
15
|
+
*ngIf="(item.extras?.edit || isDraftPage) && item.kind === 'dataset'"
|
|
16
16
|
[checked]="isChecked(item)"
|
|
17
17
|
(changed)="handleRecordSelectedChange($event, item)"
|
|
18
18
|
class="-m-2"
|
|
@@ -149,11 +149,14 @@
|
|
|
149
149
|
(buttonClick)="openActionMenu(item, template)"
|
|
150
150
|
type="light"
|
|
151
151
|
data-test="record-menu-button"
|
|
152
|
-
[disabled]="
|
|
152
|
+
[disabled]="
|
|
153
|
+
(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'
|
|
154
|
+
"
|
|
153
155
|
>
|
|
154
156
|
<ng-icon
|
|
155
157
|
[ngClass]="{
|
|
156
|
-
'text-purple-light':
|
|
158
|
+
'text-purple-light':
|
|
159
|
+
(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset',
|
|
157
160
|
}"
|
|
158
161
|
name="matMoreVert"
|
|
159
162
|
></ng-icon>
|
|
@@ -174,8 +174,9 @@ export class ResultsTableComponent {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
handleRecordClick(item: CatalogRecord) {
|
|
177
|
-
if (item?.extras?.edit || this.isDraftPage)
|
|
177
|
+
if ((item?.extras?.edit || this.isDraftPage) && item.kind === 'dataset') {
|
|
178
178
|
this.recordClick.emit(item as CatalogRecord)
|
|
179
|
+
}
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
handleDuplicate(item: unknown) {
|
|
@@ -11,6 +11,7 @@ import { RecordPreviewRowComponent } from './record-preview-row/record-preview-r
|
|
|
11
11
|
import { RecordPreviewTextComponent } from './record-preview-text/record-preview-text.component'
|
|
12
12
|
import { RecordPreviewTitleComponent } from './record-preview-title/record-preview-title.component'
|
|
13
13
|
import { ResultsHitsNumberComponent } from './results-hits-number/results-hits-number.component'
|
|
14
|
+
import { ResultsHitsSearchKindComponent } from './results-hits-search-kind/results-hits-search-kind.component'
|
|
14
15
|
import {
|
|
15
16
|
DEFAULT_RESULTS_LAYOUT_CONFIG,
|
|
16
17
|
RESULTS_LAYOUT_CONFIG,
|
|
@@ -24,6 +25,7 @@ import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
|
24
25
|
import {
|
|
25
26
|
MetadataQualityComponent,
|
|
26
27
|
UiElementsModule,
|
|
28
|
+
KindBadgeComponent,
|
|
27
29
|
} from '../../../../../libs/ui/elements/src'
|
|
28
30
|
import { RecordPreviewFeedComponent } from './record-preview-feed/record-preview-feed.component'
|
|
29
31
|
import { CommonModule } from '@angular/common'
|
|
@@ -48,6 +50,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
|
|
|
48
50
|
RecordMetricComponent,
|
|
49
51
|
ResultsListComponent,
|
|
50
52
|
ResultsHitsNumberComponent,
|
|
53
|
+
ResultsHitsSearchKindComponent,
|
|
51
54
|
ResultsListItemComponent,
|
|
52
55
|
RecordPreviewFeedComponent,
|
|
53
56
|
RecordPreviewRowComponent,
|
|
@@ -74,6 +77,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
|
|
|
74
77
|
matFace,
|
|
75
78
|
matHomeWorkOutline,
|
|
76
79
|
}),
|
|
80
|
+
KindBadgeComponent,
|
|
77
81
|
MetadataQualityComponent,
|
|
78
82
|
],
|
|
79
83
|
exports: [
|
|
@@ -86,6 +90,7 @@ import { matFace } from '@ng-icons/material-icons/baseline'
|
|
|
86
90
|
FacetsModule,
|
|
87
91
|
RecordPreviewComponent,
|
|
88
92
|
ResultsHitsNumberComponent,
|
|
93
|
+
ResultsHitsSearchKindComponent,
|
|
89
94
|
RecordPreviewFeedComponent,
|
|
90
95
|
RecordPreviewRowComponent,
|
|
91
96
|
],
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
<ng-container *ngSwitchCase="'light'">
|
|
4
4
|
<div class="flex items-center relative">
|
|
5
5
|
<div
|
|
6
|
-
class="flex-shrink-0 {{ color.text }}
|
|
6
|
+
class="flex-shrink-0 {{ color.text }} font-medium mr-2
|
|
7
7
|
text-opacity-100 !text-slate-800"
|
|
8
|
+
data-cy="progressPercentage"
|
|
8
9
|
>
|
|
9
10
|
{{ progress }}%
|
|
10
11
|
</div>
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Injectable } from '@angular/core'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DatasetOnlineResource,
|
|
4
|
+
ServiceOnlineResource,
|
|
5
|
+
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
3
6
|
import { getFileFormat } from './link-utils'
|
|
4
7
|
|
|
5
8
|
export enum LinkUsage {
|
|
@@ -16,8 +19,11 @@ export enum LinkUsage {
|
|
|
16
19
|
providedIn: 'root',
|
|
17
20
|
})
|
|
18
21
|
export class LinkClassifierService {
|
|
19
|
-
getUsagesForLink(
|
|
22
|
+
getUsagesForLink(
|
|
23
|
+
link: DatasetOnlineResource | ServiceOnlineResource
|
|
24
|
+
): LinkUsage[] {
|
|
20
25
|
switch (link.type) {
|
|
26
|
+
case 'endpoint':
|
|
21
27
|
case 'service': {
|
|
22
28
|
switch (link.accessServiceProtocol) {
|
|
23
29
|
case 'esriRest':
|
|
@@ -54,7 +60,10 @@ export class LinkClassifierService {
|
|
|
54
60
|
}
|
|
55
61
|
}
|
|
56
62
|
|
|
57
|
-
hasUsage(
|
|
63
|
+
hasUsage(
|
|
64
|
+
link: DatasetOnlineResource | ServiceOnlineResource,
|
|
65
|
+
usage: LinkUsage
|
|
66
|
+
) {
|
|
58
67
|
return this.getUsagesForLink(link).indexOf(usage) > -1
|
|
59
68
|
}
|
|
60
69
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
2
2
|
import {
|
|
3
3
|
DatasetOnlineResource,
|
|
4
|
+
ServiceOnlineResource,
|
|
4
5
|
ServiceProtocol,
|
|
5
6
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
6
7
|
import {
|
|
@@ -140,7 +141,9 @@ export function getFormatPriority(linkFormat: FileFormat): number {
|
|
|
140
141
|
return 0
|
|
141
142
|
}
|
|
142
143
|
|
|
143
|
-
export function getLinkPriority(
|
|
144
|
+
export function getLinkPriority(
|
|
145
|
+
link: DatasetOnlineResource | ServiceOnlineResource
|
|
146
|
+
): number {
|
|
144
147
|
return getFormatPriority(getFileFormat(link))
|
|
145
148
|
}
|
|
146
149
|
|
|
@@ -164,7 +167,9 @@ export function getFileFormatFromServiceOutput(
|
|
|
164
167
|
return null
|
|
165
168
|
}
|
|
166
169
|
|
|
167
|
-
export function getFileFormat(
|
|
170
|
+
export function getFileFormat(
|
|
171
|
+
link: DatasetOnlineResource | ServiceOnlineResource
|
|
172
|
+
): FileFormat {
|
|
168
173
|
if ('mimeType' in link) {
|
|
169
174
|
const mimeTypeFormat = mimeTypeToFormat(link.mimeType)
|
|
170
175
|
if (mimeTypeFormat !== null) {
|
|
@@ -181,7 +186,7 @@ export function getFileFormat(link: DatasetOnlineResource): FileFormat {
|
|
|
181
186
|
}
|
|
182
187
|
|
|
183
188
|
export function isFormatInQueryParam(
|
|
184
|
-
link: DatasetOnlineResource,
|
|
189
|
+
link: DatasetOnlineResource | ServiceOnlineResource,
|
|
185
190
|
alias: string
|
|
186
191
|
): boolean {
|
|
187
192
|
const queryParams = link.url.searchParams
|
|
@@ -203,7 +208,7 @@ export function mimeTypeToFormat(mimeType: string): FileFormat {
|
|
|
203
208
|
}
|
|
204
209
|
|
|
205
210
|
export function checkFileFormat(
|
|
206
|
-
link: DatasetOnlineResource,
|
|
211
|
+
link: DatasetOnlineResource | ServiceOnlineResource,
|
|
207
212
|
format: FileFormat
|
|
208
213
|
): boolean {
|
|
209
214
|
return (
|
|
@@ -225,7 +230,9 @@ export function getBadgeColor(linkFormat: FileFormat): string {
|
|
|
225
230
|
return 'var(--color-gray-700)' // Default color ?
|
|
226
231
|
}
|
|
227
232
|
|
|
228
|
-
export function getLinkLabel(
|
|
233
|
+
export function getLinkLabel(
|
|
234
|
+
link: DatasetOnlineResource | ServiceOnlineResource
|
|
235
|
+
): string {
|
|
229
236
|
let format = ''
|
|
230
237
|
switch (link.type) {
|
|
231
238
|
case 'service':
|
|
@@ -249,7 +256,7 @@ export function getLinkLabel(link: DatasetOnlineResource): string {
|
|
|
249
256
|
default:
|
|
250
257
|
format = getFileFormat(link)
|
|
251
258
|
}
|
|
252
|
-
const label = link.description || link.name
|
|
259
|
+
const label = link.description || ('name' in link ? link.name : '')
|
|
253
260
|
return format ? `${label} (${format})` : label
|
|
254
261
|
}
|
|
255
262
|
|
|
@@ -261,14 +268,25 @@ export async function getLayers(url: string, serviceProtocol: ServiceProtocol) {
|
|
|
261
268
|
}
|
|
262
269
|
case 'wfs': {
|
|
263
270
|
const endpointWfs = await new WfsEndpoint(url).isReady()
|
|
264
|
-
|
|
271
|
+
const featureTypes = await endpointWfs.getFeatureTypes()
|
|
272
|
+
const layers = await Promise.all(
|
|
273
|
+
featureTypes.map(async (collection) => {
|
|
274
|
+
return await endpointWfs.getFeatureTypeFull(collection.name)
|
|
275
|
+
})
|
|
276
|
+
)
|
|
277
|
+
return layers
|
|
265
278
|
}
|
|
266
279
|
case 'wms': {
|
|
267
280
|
const endpointWms = await new WmsEndpoint(url).isReady()
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
281
|
+
const layers = (
|
|
282
|
+
await endpointWms
|
|
283
|
+
.getLayers()
|
|
284
|
+
.flatMap(wmsLayerFlatten)
|
|
285
|
+
.filter((l) => l.name)
|
|
286
|
+
).map((collection) => {
|
|
287
|
+
return endpointWms.getLayerByName(collection.name)
|
|
288
|
+
})
|
|
289
|
+
return layers
|
|
272
290
|
}
|
|
273
291
|
case 'wmts': {
|
|
274
292
|
const endpointWmts = await new WmtsEndpoint(url).isReady()
|
|
@@ -279,7 +297,7 @@ export async function getLayers(url: string, serviceProtocol: ServiceProtocol) {
|
|
|
279
297
|
}
|
|
280
298
|
}
|
|
281
299
|
|
|
282
|
-
function wmsLayerFlatten(layerFull) {
|
|
300
|
+
export function wmsLayerFlatten(layerFull) {
|
|
283
301
|
const layer = {
|
|
284
302
|
title: layerFull.title,
|
|
285
303
|
name: layerFull.name,
|