geonetwork-ui 2.6.0-dev.b306f1194 → 2.6.0-dev.ceb4be4c1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +44 -6
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -4
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -12
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +29 -5
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +49 -9
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +29 -6
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
- package/esm2022/libs/feature/record/src/index.mjs +2 -4
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +38 -7
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +8 -7
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
- package/esm2022/libs/ui/elements/src/index.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
- package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +27 -53
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +68 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +51 -0
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +22 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +3 -2
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +4 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.mjs +43 -3
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +15 -3
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +107 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
- package/esm2022/libs/ui/map/src/index.mjs +2 -1
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
- package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +29 -15
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +11 -3
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
- package/esm2022/translations/de.json +41 -6
- package/esm2022/translations/en.json +43 -8
- package/esm2022/translations/es.json +41 -6
- package/esm2022/translations/fr.json +42 -7
- package/esm2022/translations/it.json +44 -9
- package/esm2022/translations/nl.json +41 -6
- package/esm2022/translations/pt.json +41 -6
- package/fesm2022/geonetwork-ui.mjs +2418 -1039
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +3 -0
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +9 -3
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +2 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +6 -3
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -3
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +4 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +3 -7
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +13 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +16 -0
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +4 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +2 -1
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts +10 -3
- package/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +2 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +27 -0
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +1 -0
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +5 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +21 -19
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/shared/src/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
- package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +63 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +4 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -3
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +3 -11
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +50 -5
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -4
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +2 -0
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +36 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +58 -10
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +31 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +14 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +15 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
- package/src/libs/feature/record/src/index.ts +1 -3
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +40 -4
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/constants.ts +1 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.html +0 -6
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +16 -8
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.css +6 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
- package/src/libs/ui/elements/src/index.ts +4 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +133 -138
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +19 -47
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +48 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +52 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +9 -1
- package/src/libs/ui/inputs/src/index.ts +2 -1
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +23 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.ts +44 -0
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.ts +5 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +7 -8
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/anchor-link/anchor-link.directive.ts +46 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +4 -7
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -0
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +44 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +130 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +1 -5
- package/src/libs/ui/map/src/index.ts +1 -0
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
- package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
- package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
- package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
- package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +28 -15
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +22 -11
- package/src/libs/ui/search/src/lib/ui-search.module.ts +5 -0
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
- package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +19 -26
- package/translations/de.json +41 -6
- package/translations/en.json +43 -8
- package/translations/es.json +41 -6
- package/translations/fr.json +42 -7
- package/translations/it.json +44 -9
- package/translations/nl.json +41 -6
- package/translations/pt.json +41 -6
- package/translations/sk.json +41 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
- package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +0 -16
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts +0 -8
- package/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.css +0 -3
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +0 -9
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.ts +0 -15
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
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
|
+
}
|
|
@@ -32,9 +32,9 @@ export const DEFAULT_RESULTS_LAYOUT_CONFIG: ResultsLayoutConfigModel = {
|
|
|
32
32
|
),
|
|
33
33
|
ROW: new ResultsLayoutConfigItem(
|
|
34
34
|
RecordPreviewRowComponent,
|
|
35
|
-
'
|
|
35
|
+
'py-2',
|
|
36
36
|
'',
|
|
37
|
-
'grid grid-cols-1 divide-y divide-gray-
|
|
37
|
+
'grid grid-cols-1 divide-y divide-gray-100'
|
|
38
38
|
),
|
|
39
39
|
FEED: new ResultsLayoutConfigItem(
|
|
40
40
|
RecordPreviewFeedComponent,
|
|
@@ -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"
|
|
@@ -143,21 +143,34 @@
|
|
|
143
143
|
<gn-ui-interactive-table-column>
|
|
144
144
|
<ng-template #header> </ng-template>
|
|
145
145
|
<ng-template #cell let-item>
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
#actionMenuButton
|
|
149
|
-
(buttonClick)="openActionMenu(item, template)"
|
|
150
|
-
type="light"
|
|
151
|
-
data-test="record-menu-button"
|
|
152
|
-
[disabled]="!item.extras?.edit && !isDraftPage"
|
|
153
|
-
>
|
|
146
|
+
<div class="flex justify-end items-center gap-4 w-full">
|
|
147
|
+
<!-- IS MULTILINGUAL -->
|
|
154
148
|
<ng-icon
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
149
|
+
*ngIf="isMultilingual(item)"
|
|
150
|
+
data-cy="multilingual-indicator"
|
|
151
|
+
name="iconoirTranslate"
|
|
152
|
+
[attr.title]="getTxtHoverMultilingual(item)"
|
|
159
153
|
></ng-icon>
|
|
160
|
-
|
|
154
|
+
<!-- MORE ACTIONS MENU BUTTON -->
|
|
155
|
+
<gn-ui-button
|
|
156
|
+
cdkOverlayOrigin
|
|
157
|
+
#actionMenuButton
|
|
158
|
+
(buttonClick)="openActionMenu(item, template)"
|
|
159
|
+
type="light"
|
|
160
|
+
data-test="record-menu-button"
|
|
161
|
+
[disabled]="
|
|
162
|
+
(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'
|
|
163
|
+
"
|
|
164
|
+
>
|
|
165
|
+
<ng-icon
|
|
166
|
+
[ngClass]="{
|
|
167
|
+
'text-purple-light':
|
|
168
|
+
(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset',
|
|
169
|
+
}"
|
|
170
|
+
name="matMoreVert"
|
|
171
|
+
></ng-icon>
|
|
172
|
+
</gn-ui-button>
|
|
173
|
+
</div>
|
|
161
174
|
<ng-template #template>
|
|
162
175
|
<gn-ui-action-menu
|
|
163
176
|
[canDuplicate]="canDuplicate(item) && !isDuplicating"
|
|
@@ -28,16 +28,11 @@ import {
|
|
|
28
28
|
getFileFormat,
|
|
29
29
|
getFormatPriority,
|
|
30
30
|
} from '../../../../../../libs/util/shared/src'
|
|
31
|
-
import { TranslateModule } from '@ngx-translate/core'
|
|
31
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
32
32
|
import { ActionMenuComponent } from './action-menu/action-menu.component'
|
|
33
33
|
import { NgIconComponent, provideIcons } from '@ng-icons/core'
|
|
34
|
-
import { iconoirUser, iconoirLock } from '@ng-icons/iconoir'
|
|
35
|
-
import {
|
|
36
|
-
CdkConnectedOverlay,
|
|
37
|
-
CdkOverlayOrigin,
|
|
38
|
-
Overlay,
|
|
39
|
-
OverlayRef,
|
|
40
|
-
} from '@angular/cdk/overlay'
|
|
34
|
+
import { iconoirUser, iconoirLock, iconoirTranslate } from '@ng-icons/iconoir'
|
|
35
|
+
import { CdkOverlayOrigin, Overlay, OverlayRef } from '@angular/cdk/overlay'
|
|
41
36
|
import { TemplatePortal } from '@angular/cdk/portal'
|
|
42
37
|
import { matMoreVert } from '@ng-icons/material-icons/baseline'
|
|
43
38
|
|
|
@@ -57,7 +52,9 @@ import { matMoreVert } from '@ng-icons/material-icons/baseline'
|
|
|
57
52
|
NgIconComponent,
|
|
58
53
|
CdkOverlayOrigin,
|
|
59
54
|
],
|
|
60
|
-
providers: [
|
|
55
|
+
providers: [
|
|
56
|
+
provideIcons({ iconoirUser, iconoirLock, iconoirTranslate, matMoreVert }),
|
|
57
|
+
],
|
|
61
58
|
})
|
|
62
59
|
export class ResultsTableComponent {
|
|
63
60
|
@Input() records: CatalogRecord[] = []
|
|
@@ -89,7 +86,8 @@ export class ResultsTableComponent {
|
|
|
89
86
|
private overlay: Overlay,
|
|
90
87
|
private viewContainerRef: ViewContainerRef,
|
|
91
88
|
private cdr: ChangeDetectorRef,
|
|
92
|
-
private dateService: DateService
|
|
89
|
+
private dateService: DateService,
|
|
90
|
+
private translateService: TranslateService
|
|
93
91
|
) {}
|
|
94
92
|
|
|
95
93
|
openActionMenu(item, template) {
|
|
@@ -174,8 +172,9 @@ export class ResultsTableComponent {
|
|
|
174
172
|
}
|
|
175
173
|
|
|
176
174
|
handleRecordClick(item: CatalogRecord) {
|
|
177
|
-
if (item?.extras?.edit || this.isDraftPage)
|
|
175
|
+
if ((item?.extras?.edit || this.isDraftPage) && item.kind === 'dataset') {
|
|
178
176
|
this.recordClick.emit(item as CatalogRecord)
|
|
177
|
+
}
|
|
179
178
|
}
|
|
180
179
|
|
|
181
180
|
handleDuplicate(item: unknown) {
|
|
@@ -218,4 +217,16 @@ export class ResultsTableComponent {
|
|
|
218
217
|
handleRecordSelectedChange(selected: boolean, record: CatalogRecord) {
|
|
219
218
|
this.recordsSelectedChange.emit([[record], selected])
|
|
220
219
|
}
|
|
220
|
+
|
|
221
|
+
isMultilingual(record: CatalogRecord): boolean {
|
|
222
|
+
return record.otherLanguages.length > 0
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
getTxtHoverMultilingual(record: CatalogRecord) {
|
|
226
|
+
return this.translateService.instant('dashboard.records.isMultilingual', {
|
|
227
|
+
languages: [...[record.defaultLanguage], ...record.otherLanguages].join(
|
|
228
|
+
', '
|
|
229
|
+
),
|
|
230
|
+
})
|
|
231
|
+
}
|
|
221
232
|
}
|
|
@@ -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':
|
|
@@ -25,7 +31,10 @@ export class LinkClassifierService {
|
|
|
25
31
|
return [LinkUsage.API, LinkUsage.DOWNLOAD, LinkUsage.GEODATA]
|
|
26
32
|
case 'wms':
|
|
27
33
|
case 'wmts':
|
|
34
|
+
case 'tms':
|
|
28
35
|
return [LinkUsage.API, LinkUsage.MAP_API]
|
|
36
|
+
case 'maplibre-style':
|
|
37
|
+
return [LinkUsage.GEODATA]
|
|
29
38
|
case 'ogcFeatures':
|
|
30
39
|
return [LinkUsage.API, LinkUsage.DOWNLOAD, LinkUsage.GEODATA]
|
|
31
40
|
case 'GPFDL':
|
|
@@ -54,7 +63,10 @@ export class LinkClassifierService {
|
|
|
54
63
|
}
|
|
55
64
|
}
|
|
56
65
|
|
|
57
|
-
hasUsage(
|
|
66
|
+
hasUsage(
|
|
67
|
+
link: DatasetOnlineResource | ServiceOnlineResource,
|
|
68
|
+
usage: LinkUsage
|
|
69
|
+
) {
|
|
58
70
|
return this.getUsagesForLink(link).indexOf(usage) > -1
|
|
59
71
|
}
|
|
60
72
|
}
|
|
@@ -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':
|
|
@@ -240,6 +247,9 @@ export function getLinkLabel(link: DatasetOnlineResource): string {
|
|
|
240
247
|
case 'wmts':
|
|
241
248
|
format = 'WMTS'
|
|
242
249
|
break
|
|
250
|
+
case 'tms':
|
|
251
|
+
format = 'TMS'
|
|
252
|
+
break
|
|
243
253
|
case 'esriRest':
|
|
244
254
|
format = 'REST'
|
|
245
255
|
break
|
|
@@ -249,7 +259,7 @@ export function getLinkLabel(link: DatasetOnlineResource): string {
|
|
|
249
259
|
default:
|
|
250
260
|
format = getFileFormat(link)
|
|
251
261
|
}
|
|
252
|
-
const label = link.description || link.name
|
|
262
|
+
const label = link.description || ('name' in link ? link.name : '')
|
|
253
263
|
return format ? `${label} (${format})` : label
|
|
254
264
|
}
|
|
255
265
|
|
|
@@ -261,14 +271,25 @@ export async function getLayers(url: string, serviceProtocol: ServiceProtocol) {
|
|
|
261
271
|
}
|
|
262
272
|
case 'wfs': {
|
|
263
273
|
const endpointWfs = await new WfsEndpoint(url).isReady()
|
|
264
|
-
|
|
274
|
+
const featureTypes = await endpointWfs.getFeatureTypes()
|
|
275
|
+
const layers = await Promise.all(
|
|
276
|
+
featureTypes.map(async (collection) => {
|
|
277
|
+
return await endpointWfs.getFeatureTypeFull(collection.name)
|
|
278
|
+
})
|
|
279
|
+
)
|
|
280
|
+
return layers
|
|
265
281
|
}
|
|
266
282
|
case 'wms': {
|
|
267
283
|
const endpointWms = await new WmsEndpoint(url).isReady()
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
284
|
+
const layers = (
|
|
285
|
+
await endpointWms
|
|
286
|
+
.getLayers()
|
|
287
|
+
.flatMap(wmsLayerFlatten)
|
|
288
|
+
.filter((l) => l.name)
|
|
289
|
+
).map((collection) => {
|
|
290
|
+
return endpointWms.getLayerByName(collection.name)
|
|
291
|
+
})
|
|
292
|
+
return layers
|
|
272
293
|
}
|
|
273
294
|
case 'wmts': {
|
|
274
295
|
const endpointWmts = await new WmtsEndpoint(url).isReady()
|
|
@@ -279,7 +300,7 @@ export async function getLayers(url: string, serviceProtocol: ServiceProtocol) {
|
|
|
279
300
|
}
|
|
280
301
|
}
|
|
281
302
|
|
|
282
|
-
function wmsLayerFlatten(layerFull) {
|
|
303
|
+
export function wmsLayerFlatten(layerFull) {
|
|
283
304
|
const layer = {
|
|
284
305
|
title: layerFull.title,
|
|
285
306
|
name: layerFull.name,
|
package/tailwind.base.config.js
CHANGED
package/tailwind.base.css
CHANGED
|
@@ -66,15 +66,20 @@
|
|
|
66
66
|
/* this is a base class, do not use it directly */
|
|
67
67
|
.gn-ui-btn {
|
|
68
68
|
--rounded: var(--gn-ui-button-rounded, 0.25em);
|
|
69
|
+
--border-width: var(--gn-ui-button-border-width, 1px);
|
|
69
70
|
--padding: var(--gn-ui-button-padding, 1em);
|
|
70
71
|
--width: var(--gn-ui-button-width, auto);
|
|
71
72
|
--height: var(--gn-ui-button-height, auto);
|
|
72
|
-
--background: var(--gn-ui-button-background, --color-background);
|
|
73
|
+
--background: var(--gn-ui-button-background, var(--color-background));
|
|
74
|
+
--bg-hover: var(--gn-ui-button-bg-hover, var(--color-background));
|
|
73
75
|
--font-size: var(--gn-ui-button-font-size, 1em);
|
|
76
|
+
--color: var(--gn-ui-button-color, var(--color-main));
|
|
74
77
|
@apply flex flex-row items-center justify-center
|
|
75
78
|
text-[length:--font-size] leading-none
|
|
79
|
+
text-[color:--color]
|
|
76
80
|
p-[--padding] rounded-[--rounded] w-[--width] h-[--height] overflow-hidden
|
|
77
|
-
bg-[--background] transition-all duration-100
|
|
81
|
+
border-[length:--border-width] bg-[--background] transition-all duration-100
|
|
82
|
+
hover:bg-[--bg-hover] focus:bg-[--bg-hover] active:bg-[--background]
|
|
78
83
|
outline-none
|
|
79
84
|
relative
|
|
80
85
|
disabled:opacity-50 disabled:pointer-events-none
|
|
@@ -89,60 +94,48 @@
|
|
|
89
94
|
|
|
90
95
|
.gn-ui-btn-default {
|
|
91
96
|
@apply gn-ui-btn text-white
|
|
92
|
-
bg-gray-700 hover:bg-gray-800 active:bg-gray-900
|
|
93
|
-
border
|
|
97
|
+
bg-gray-700 hover:bg-gray-800 hover:!text-white active:bg-gray-900
|
|
98
|
+
border-gray-700 focus:ring-4 focus:ring-gray-200 focus:text-gray-900;
|
|
94
99
|
}
|
|
95
100
|
|
|
96
101
|
.gn-ui-btn-primary {
|
|
97
102
|
@apply gn-ui-btn text-white
|
|
98
103
|
bg-primary hover:bg-primary-darker focus:bg-primary-darker active:bg-primary-darkest
|
|
99
|
-
border
|
|
104
|
+
border-primary focus:ring-4 focus:ring-primary-lightest;
|
|
100
105
|
}
|
|
101
106
|
|
|
102
107
|
.gn-ui-btn-secondary {
|
|
103
108
|
@apply gn-ui-btn text-white
|
|
104
109
|
bg-secondary hover:bg-secondary-darker focus:bg-secondary-darker active:bg-secondary-darkest
|
|
105
|
-
border
|
|
110
|
+
border-secondary focus:ring-4 focus:ring-secondary-lightest;
|
|
106
111
|
}
|
|
107
112
|
|
|
108
113
|
.gn-ui-btn-gray {
|
|
109
114
|
@apply gn-ui-btn text-black
|
|
110
115
|
bg-gray-100 hover:bg-gray-200 focus:bg-gray-200 active:bg-gray-300
|
|
111
|
-
border
|
|
116
|
+
border-gray-100 focus:ring-4 focus:ring-gray-50;
|
|
112
117
|
}
|
|
113
118
|
|
|
114
119
|
.gn-ui-btn-black {
|
|
115
120
|
@apply gn-ui-btn text-white
|
|
116
121
|
bg-black hover:bg-gray-950 focus:bg-gray-950 active:bg-gray-900
|
|
117
|
-
border
|
|
122
|
+
border-black focus:ring-4 focus:ring-gray-300;
|
|
118
123
|
}
|
|
119
124
|
|
|
120
125
|
.gn-ui-btn-outline {
|
|
121
|
-
@apply gn-ui-btn
|
|
126
|
+
@apply gn-ui-btn
|
|
122
127
|
hover:text-primary-darker focus:text-primary-darker active:text-primary-black
|
|
123
|
-
border
|
|
128
|
+
border-gray-300 hover:border-primary-lighter focus:border-primary-lighter focus:ring-4 focus:ring-primary-lightest active:border-primary-darker;
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
.gn-ui-btn-light {
|
|
127
|
-
@apply gn-ui-btn
|
|
132
|
+
@apply gn-ui-btn
|
|
128
133
|
hover:bg-gray-50 focus:bg-gray-50 active:bg-gray-100
|
|
129
|
-
border
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.gn-ui-card-xs {
|
|
133
|
-
@apply min-h-[68px] md:w-[487px];
|
|
134
|
+
border-white focus:ring-4 focus:ring-gray-300;
|
|
134
135
|
}
|
|
135
136
|
|
|
136
137
|
.gn-ui-card-s {
|
|
137
|
-
@apply min-h-[
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.gn-ui-card-m {
|
|
141
|
-
@apply min-h-[68px] md:w-[487px];
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.gn-ui-card-l {
|
|
145
|
-
@apply min-h-[68px] md:w-[992px];
|
|
138
|
+
@apply min-h-[64px] w-full xs:min-w-[260px] xs:max-w-[280px] sm:min-w-[300px] sm:max-w-[500px] md:min-w-[230px];
|
|
146
139
|
}
|
|
147
140
|
|
|
148
141
|
.gn-ui-card-title {
|
|
@@ -225,7 +218,7 @@
|
|
|
225
218
|
|
|
226
219
|
/* Section title */
|
|
227
220
|
.gn-ui-section-title {
|
|
228
|
-
@apply text-title font-medium pt-9 text-[28px]
|
|
221
|
+
@apply text-title font-medium pt-9 text-[28px];
|
|
229
222
|
}
|
|
230
223
|
}
|
|
231
224
|
|