geonetwork-ui 2.6.0-dev.d216c4dea → 2.6.0-dev.d8333ac5d
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/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 +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +5 -2
- 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 +45 -9
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +18 -0
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +33 -7
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +11 -13
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +12 -5
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- 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/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 +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/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 +3 -3
- 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/service-capabilities/service-capabilities.component.mjs +12 -4
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +3 -1
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.mjs +42 -0
- package/esm2022/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.mjs +2 -0
- package/esm2022/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -9
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/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/lib/components/feature-detail/feature-detail.component.mjs +29 -4
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +2 -1
- 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-list/results-list.component.mjs +3 -3
- 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/shared/src/lib/links/link-classifier.service.mjs +4 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +4 -1
- package/esm2022/translations/de.json +13 -1
- package/esm2022/translations/en.json +13 -1
- package/esm2022/translations/es.json +13 -1
- package/esm2022/translations/fr.json +14 -2
- package/esm2022/translations/it.json +43 -31
- package/esm2022/translations/nl.json +13 -1
- package/esm2022/translations/pt.json +13 -1
- package/fesm2022/geonetwork-ui.mjs +974 -229
- 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/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/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +4 -1
- 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 +12 -8
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -2
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +7 -0
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
- package/libs/feature/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/state/mdview.facade.d.ts +26 -21
- package/libs/feature/record/src/lib/state/mdview.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/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/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/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 +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/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/service-capabilities/service-capabilities.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +2 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts +14 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts +6 -0
- package/libs/ui/inputs/src/lib/inline-filter/inline-filter.model.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -24
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/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/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.map +1 -1
- 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/ui-search.module.d.ts +21 -19
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- 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.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/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/gn4/gn4.field.mapper.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +4 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +9 -2
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +14 -0
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +54 -10
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.css +0 -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/record/src/lib/data-view/data-view.component.html +16 -10
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +35 -4
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +18 -15
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -2
- 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/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- 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 +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/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 +12 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +1 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +11 -3
- 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/service-capabilities/service-capabilities.component.html +16 -2
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +9 -1
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -1
- package/src/libs/ui/inputs/src/index.ts +2 -0
- 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 +2 -2
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/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/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.ts +1 -0
- 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-list/results-list.component.html +1 -0
- 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/shared/src/lib/links/link-classifier.service.ts +3 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +3 -0
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +1 -13
- package/translations/de.json +13 -1
- package/translations/en.json +13 -1
- package/translations/es.json +13 -1
- package/translations/fr.json +14 -2
- package/translations/it.json +43 -31
- package/translations/nl.json +13 -1
- package/translations/pt.json +13 -1
- package/translations/sk.json +13 -1
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/src/libs/feature/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
|
@@ -2,12 +2,23 @@
|
|
|
2
2
|
class="flex flex-wrap justify-between items-center pb-4"
|
|
3
3
|
*ngIf="links && links.length > 0"
|
|
4
4
|
>
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
<div class="flex flex-row items-center gap-x-4">
|
|
6
|
+
<div>
|
|
7
|
+
<h3
|
|
8
|
+
class="inline-block font-title text-xl text-title font-medium mr-4"
|
|
9
|
+
translate
|
|
10
|
+
>
|
|
11
|
+
record.metadata.download
|
|
12
|
+
</h3>
|
|
13
|
+
<span class="px-3">({{ linksCount }})</span>
|
|
14
|
+
</div>
|
|
15
|
+
<gn-ui-previous-next-buttons
|
|
16
|
+
class="md:block hidden"
|
|
17
|
+
*ngIf="_list?.pagesCount > 1"
|
|
18
|
+
[listComponent]="_list"
|
|
19
|
+
></gn-ui-previous-next-buttons>
|
|
10
20
|
</div>
|
|
21
|
+
|
|
11
22
|
<div
|
|
12
23
|
class="flex flex-wrap justify-start sm:justify-end"
|
|
13
24
|
data-cy="download-format-filters"
|
|
@@ -26,9 +37,29 @@
|
|
|
26
37
|
</gn-ui-button>
|
|
27
38
|
</div>
|
|
28
39
|
</div>
|
|
29
|
-
|
|
40
|
+
|
|
41
|
+
<ng-container>
|
|
42
|
+
<gn-ui-block-list
|
|
43
|
+
class="md:block hidden"
|
|
44
|
+
#blockList
|
|
45
|
+
(listChanges)="updateList($event)"
|
|
46
|
+
containerClass="gap-4 pt-5 pb-7"
|
|
47
|
+
>
|
|
48
|
+
<gn-ui-download-item
|
|
49
|
+
#block
|
|
50
|
+
*ngFor="let link of filteredLinks"
|
|
51
|
+
[link]="link"
|
|
52
|
+
[color]="getLinkColor(link)"
|
|
53
|
+
[format]="getLinkFormat(link)"
|
|
54
|
+
[isFromApi]="isFromApi(link)"
|
|
55
|
+
[size]="blockList.subComponentSize"
|
|
56
|
+
></gn-ui-download-item>
|
|
57
|
+
</gn-ui-block-list>
|
|
58
|
+
</ng-container>
|
|
59
|
+
|
|
60
|
+
<div class="mb-5 md:hidden block" *ngFor="let link of filteredLinks">
|
|
30
61
|
<gn-ui-download-item
|
|
31
|
-
size="
|
|
62
|
+
size="M"
|
|
32
63
|
[link]="link"
|
|
33
64
|
[color]="getLinkColor(link)"
|
|
34
65
|
[format]="getLinkFormat(link)"
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
Input,
|
|
7
|
+
ViewChild,
|
|
8
|
+
} from '@angular/core'
|
|
2
9
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
3
10
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
4
11
|
import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
|
|
@@ -6,6 +13,11 @@ import { DatasetDownloadDistribution } from '../../../../../../libs/common/domai
|
|
|
6
13
|
import { CommonModule } from '@angular/common'
|
|
7
14
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
8
15
|
import { DownloadItemComponent } from '../download-item/download-item.component'
|
|
16
|
+
import {
|
|
17
|
+
BlockListComponent,
|
|
18
|
+
Paginable,
|
|
19
|
+
PreviousNextButtonsComponent,
|
|
20
|
+
} from '../../../../../../libs/ui/layout/src'
|
|
9
21
|
|
|
10
22
|
marker('datahub.search.filter.all')
|
|
11
23
|
marker('datahub.search.filter.others')
|
|
@@ -22,17 +34,32 @@ type FilterFormat = (typeof FILTER_FORMATS)[number]
|
|
|
22
34
|
imports: [
|
|
23
35
|
CommonModule,
|
|
24
36
|
ButtonComponent,
|
|
37
|
+
BlockListComponent,
|
|
25
38
|
DownloadItemComponent,
|
|
26
39
|
TranslateModule,
|
|
40
|
+
PreviousNextButtonsComponent,
|
|
27
41
|
],
|
|
28
42
|
})
|
|
29
43
|
export class DownloadsListComponent {
|
|
30
|
-
constructor(
|
|
44
|
+
constructor(
|
|
45
|
+
private translateService: TranslateService,
|
|
46
|
+
private changeDetector: ChangeDetectorRef
|
|
47
|
+
) {}
|
|
31
48
|
|
|
49
|
+
_list: BlockListComponent
|
|
32
50
|
@Input() links: DatasetDownloadDistribution[]
|
|
33
51
|
|
|
52
|
+
get linksCount(): number {
|
|
53
|
+
return this.filteredLinks?.length || 0
|
|
54
|
+
}
|
|
55
|
+
|
|
34
56
|
activeFilterFormats: FilterFormat[] = ['all']
|
|
35
57
|
|
|
58
|
+
updateList($event: BlockListComponent) {
|
|
59
|
+
this._list = $event
|
|
60
|
+
this.changeDetector.detectChanges()
|
|
61
|
+
}
|
|
62
|
+
|
|
36
63
|
private removeDuplicateFormats(
|
|
37
64
|
links: DatasetDownloadDistribution[]
|
|
38
65
|
): DatasetDownloadDistribution[] {
|
package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div
|
|
6
6
|
*ngIf="imageUrl"
|
|
7
7
|
data-cy="record-thumbnail"
|
|
8
|
-
class="shrink-0
|
|
8
|
+
class="shrink-0 rounded-lg overflow-hidden group-hover:shadow-xl group-hover:border-0 h-full w-full"
|
|
9
9
|
>
|
|
10
10
|
<gn-ui-thumbnail
|
|
11
11
|
class="relative h-full w-full"
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<ng-icon [name]="iconKind" class="mr-1"></ng-icon>
|
|
2
|
+
|
|
3
|
+
<ng-container *ngIf="contentTemplate; else defaultContent">
|
|
4
|
+
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
|
5
|
+
</ng-container>
|
|
6
|
+
|
|
7
|
+
<ng-template #defaultContent>
|
|
8
|
+
{{ kind | translate }}
|
|
9
|
+
</ng-template>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
Input,
|
|
6
|
+
TemplateRef,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { provideIcons } from '@ng-icons/core'
|
|
9
|
+
import {
|
|
10
|
+
iconoirAppleWallet,
|
|
11
|
+
iconoirAppleShortcuts,
|
|
12
|
+
iconoirCode,
|
|
13
|
+
iconoirCreditCard,
|
|
14
|
+
} from '@ng-icons/iconoir'
|
|
15
|
+
import { NgIconsModule } from '@ng-icons/core'
|
|
16
|
+
import { BadgeComponent } from '../../../../../../libs/ui/inputs/src'
|
|
17
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
18
|
+
|
|
19
|
+
enum KindConfig {
|
|
20
|
+
all = 'iconoirAppleWallet', // (this one is for filter)
|
|
21
|
+
dataset = 'iconoirAppleShortcuts',
|
|
22
|
+
service = 'iconoirCode',
|
|
23
|
+
reuse = 'iconoirCreditCard',
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@Component({
|
|
27
|
+
selector: 'gn-ui-kind-badge',
|
|
28
|
+
templateUrl: './kind-badge.component.html',
|
|
29
|
+
styleUrls: ['./kind-badge.component.css'],
|
|
30
|
+
viewProviders: [
|
|
31
|
+
provideIcons({
|
|
32
|
+
iconoirAppleWallet,
|
|
33
|
+
iconoirAppleShortcuts,
|
|
34
|
+
iconoirCode,
|
|
35
|
+
iconoirCreditCard,
|
|
36
|
+
}),
|
|
37
|
+
],
|
|
38
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
|
+
standalone: true,
|
|
40
|
+
imports: [NgIconsModule, CommonModule, BadgeComponent, TranslateModule],
|
|
41
|
+
})
|
|
42
|
+
export class KindBadgeComponent {
|
|
43
|
+
@Input() contentTemplate: TemplateRef<unknown>
|
|
44
|
+
@Input() kind: string
|
|
45
|
+
|
|
46
|
+
hasProjectedContent = false
|
|
47
|
+
|
|
48
|
+
get iconKind() {
|
|
49
|
+
return KindConfig[this.kind] || KindConfig.dataset
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
[ngClass]="cardClass"
|
|
6
6
|
[title]="title"
|
|
7
7
|
>
|
|
8
|
-
<div class="flex flex-col justify-between">
|
|
8
|
+
<div class="flex flex-col justify-between flex-1 min-w-0">
|
|
9
9
|
<div class="gn-ui-card-title">
|
|
10
10
|
{{ link.description || link.name }}
|
|
11
11
|
</div>
|
|
@@ -26,7 +26,10 @@
|
|
|
26
26
|
>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
|
-
<div
|
|
29
|
+
<div
|
|
30
|
+
class="flex min-w-[32px]"
|
|
31
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
32
|
+
>
|
|
30
33
|
<div class="gn-ui-card-icon">
|
|
31
34
|
<ng-icon
|
|
32
35
|
class="inline-block card-icon align-middle"
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
|
-
import {
|
|
3
|
-
DatasetDownloadDistribution,
|
|
4
|
-
DatasetOnlineResource,
|
|
5
|
-
DatasetServiceDistribution,
|
|
6
|
-
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
2
|
+
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
7
3
|
import { CommonModule } from '@angular/common'
|
|
8
4
|
import {
|
|
9
5
|
NgIconComponent,
|
|
@@ -30,7 +26,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
30
26
|
],
|
|
31
27
|
})
|
|
32
28
|
export class LinkCardComponent {
|
|
33
|
-
private _size:
|
|
29
|
+
private _size: CardSize
|
|
34
30
|
@Input() link: DatasetOnlineResource
|
|
35
31
|
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
36
32
|
L: 'gn-ui-card-l py-2 px-5',
|
|
@@ -43,7 +39,7 @@ export class LinkCardComponent {
|
|
|
43
39
|
this._size = value
|
|
44
40
|
this.cardClass = this.sizeClassMap[value]
|
|
45
41
|
}
|
|
46
|
-
get size():
|
|
42
|
+
get size(): CardSize {
|
|
47
43
|
return this._size
|
|
48
44
|
}
|
|
49
45
|
cardClass = ''
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<p class="text-
|
|
3
|
-
|
|
4
|
-
</p>
|
|
5
|
-
<p class="text-primary font-title text-21 mb-1">
|
|
1
|
+
<div class="text-black">
|
|
2
|
+
<p class="text-base mb-3" translate>record.metadata.catalog</p>
|
|
3
|
+
<p class="font-title text-21 mb-1">
|
|
6
4
|
{{ sourceLabel }}
|
|
7
5
|
</p>
|
|
8
6
|
</div>
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
<div
|
|
1
|
+
<div
|
|
2
|
+
class="py-5 px-5 rounded bg-gray-100 text-black"
|
|
3
|
+
data-cy="metadata-organization"
|
|
4
|
+
>
|
|
2
5
|
<div class="grid gap-3 overflow-hidden">
|
|
3
6
|
<div>
|
|
4
|
-
<p class="text-
|
|
7
|
+
<p class="text-base font-medium" translate>record.metadata.contact</p>
|
|
5
8
|
</div>
|
|
6
9
|
<div
|
|
7
10
|
*ngIf="shownOrganization?.logoUrl?.href"
|
|
@@ -13,12 +16,12 @@
|
|
|
13
16
|
fit="contain"
|
|
14
17
|
></gn-ui-thumbnail>
|
|
15
18
|
</div>
|
|
16
|
-
<div class="grid gap-1">
|
|
19
|
+
<div class="grid grid-cols-1 gap-1">
|
|
17
20
|
<div class="flex">
|
|
18
21
|
<div
|
|
19
|
-
class="
|
|
22
|
+
class="font-title text-21 mr-2 cursor-pointer hover:underline"
|
|
20
23
|
(click)="onOrganizationClick()"
|
|
21
|
-
data-cy="organization-name"
|
|
24
|
+
data-cy="organization-name-link"
|
|
22
25
|
>
|
|
23
26
|
{{ shownOrganization?.name }}
|
|
24
27
|
</div>
|
|
@@ -27,7 +30,7 @@
|
|
|
27
30
|
<a
|
|
28
31
|
[href]="shownOrganization.website"
|
|
29
32
|
target="_blank"
|
|
30
|
-
class="contact-website text-
|
|
33
|
+
class="contact-website text-sm cursor-pointer hover:underline transition-all"
|
|
31
34
|
>{{ shownOrganization.website }}
|
|
32
35
|
<ng-icon
|
|
33
36
|
class="!w-[12px] !h-[12px] opacity-75 shrink-0"
|
|
@@ -36,7 +39,7 @@
|
|
|
36
39
|
</a>
|
|
37
40
|
</div>
|
|
38
41
|
</div>
|
|
39
|
-
<div class="grid gap-5 py-3 overflow-hidden">
|
|
42
|
+
<div class="grid grid-cols-1 gap-5 py-3 overflow-hidden">
|
|
40
43
|
<div *ngIf="contacts[0]?.phone">
|
|
41
44
|
<div class="flex">
|
|
42
45
|
<ng-icon
|
|
@@ -49,7 +52,7 @@
|
|
|
49
52
|
</div>
|
|
50
53
|
</div>
|
|
51
54
|
<div *ngIf="contacts[0]?.email">
|
|
52
|
-
<div class="flex">
|
|
55
|
+
<div class="flex gap-2">
|
|
53
56
|
<ng-icon
|
|
54
57
|
class="!w-5 !h-5 !text-[20px] opacity-75 shrink-0"
|
|
55
58
|
name="matMailOutline"
|
|
@@ -57,7 +60,7 @@
|
|
|
57
60
|
<a
|
|
58
61
|
*ngIf="contacts.length"
|
|
59
62
|
[href]="'mailto:' + contacts[0].email"
|
|
60
|
-
class="text-sm hover:underline
|
|
63
|
+
class="break-all text-sm hover:underline"
|
|
61
64
|
target="_blank"
|
|
62
65
|
data-cy="contact-email"
|
|
63
66
|
>{{ contacts[0].email }}</a
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
[showContent]="fieldReady('keywords')"
|
|
26
26
|
>
|
|
27
27
|
<div *ngIf="metadata.keywords?.length">
|
|
28
|
-
<div class="sm:pb-4 flex flex-wrap gap-2">
|
|
28
|
+
<div class="metadata-info-keywords sm:pb-4 flex flex-wrap gap-2">
|
|
29
29
|
<gn-ui-badge
|
|
30
30
|
class="inline-block lowercase"
|
|
31
31
|
(click)="onKeywordClick(keyword)"
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
metadata.otherConstraints
|
|
47
47
|
"
|
|
48
48
|
[title]="'record.metadata.usage' | translate"
|
|
49
|
+
data-test="usage-panel"
|
|
49
50
|
>
|
|
50
51
|
<div class="flex flex-col gap-[10px] mr-4 py-[12px] rounded text-gray-900">
|
|
51
52
|
<ng-container *ngFor="let license of licenses">
|
|
@@ -79,9 +80,12 @@
|
|
|
79
80
|
</ng-container>
|
|
80
81
|
<ng-container *ngIf="otherConstraints.length">
|
|
81
82
|
<div gnUiLinkify *ngFor="let constraint of otherConstraints">
|
|
82
|
-
<
|
|
83
|
+
<span
|
|
84
|
+
translate
|
|
85
|
+
class="font-medium text-black text-sm mb-[2px] mt-[16px]"
|
|
86
|
+
>
|
|
83
87
|
record.metadata.otherConstraints
|
|
84
|
-
</
|
|
88
|
+
</span>
|
|
85
89
|
<div class="mb-6">
|
|
86
90
|
<gn-ui-markdown-parser [textContent]="constraint">
|
|
87
91
|
</gn-ui-markdown-parser>
|
|
@@ -102,6 +106,7 @@
|
|
|
102
106
|
(metadata.kind === 'dataset' && metadata.status)
|
|
103
107
|
"
|
|
104
108
|
[title]="'record.metadata.details' | translate"
|
|
109
|
+
data-test="details-panel"
|
|
105
110
|
>
|
|
106
111
|
<div *ngIf="metadata.lineage" class="text-gray-900 flex flex-col mt-4 gap-2">
|
|
107
112
|
<p class="whitespace-pre-line break-words text-gray-900" gnUiLinkify>
|
|
@@ -228,6 +233,7 @@
|
|
|
228
233
|
<gn-ui-expandable-panel
|
|
229
234
|
*ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
|
|
230
235
|
[title]="'service.metadata.spatialExtent' | translate"
|
|
236
|
+
data-test="spatial-extent-panel"
|
|
231
237
|
>
|
|
232
238
|
<gn-ui-spatial-extent
|
|
233
239
|
class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
|
|
@@ -237,6 +243,7 @@
|
|
|
237
243
|
<gn-ui-expandable-panel
|
|
238
244
|
*ngIf="metadata.landingPage"
|
|
239
245
|
[title]="'service.metadata.other' | translate"
|
|
246
|
+
data-test="other-panel"
|
|
240
247
|
>
|
|
241
248
|
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
242
249
|
<div *ngIf="metadata.recordUpdated">
|
|
@@ -276,6 +283,7 @@
|
|
|
276
283
|
<p class="text-sm mb-1" translate>record.metadata.topics</p>
|
|
277
284
|
<div class="sm:pb-4 sm:pr-16">
|
|
278
285
|
<gn-ui-badge
|
|
286
|
+
[clickable]="false"
|
|
279
287
|
class="inline-block mr-2 mb-2 lowercase"
|
|
280
288
|
*ngFor="let topic of metadata.topics"
|
|
281
289
|
>{{ topic }}</gn-ui-badge
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
<div *ngIf="metadataQualityDisplay" class="metadata-quality">
|
|
2
2
|
<div
|
|
3
3
|
class="flex items-center"
|
|
4
|
-
[class]="
|
|
5
|
-
|
|
6
|
-
"
|
|
4
|
+
[class]="min - w - 0"
|
|
5
|
+
[ngClass]="{ 'leading-[8px] m-h-[120px]': smaller }"
|
|
7
6
|
>
|
|
8
7
|
<gn-ui-progress-bar
|
|
9
8
|
tabindex="0"
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<div class="flex flex-col gap-2 py-5 px-5 h-[562px] overflow-y-auto">
|
|
2
|
+
<div
|
|
3
|
+
*ngFor="let featureType of filteredFeatureCatalog?.featureTypes"
|
|
4
|
+
class="rounded shadow bg-white"
|
|
5
|
+
>
|
|
6
|
+
<gn-ui-expandable-panel
|
|
7
|
+
[collapsed]="filteredFeatureCatalog?.featureTypes?.length !== 1"
|
|
8
|
+
iconColor="black"
|
|
9
|
+
>
|
|
10
|
+
<ng-template #titleTemplate>
|
|
11
|
+
<div class="px-2">
|
|
12
|
+
<div class="text-lg font-bold">{{ featureType.name }}</div>
|
|
13
|
+
<div class="text-sm" *ngIf="featureType.definition">
|
|
14
|
+
{{ featureType.definition }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</ng-template>
|
|
18
|
+
<div
|
|
19
|
+
class="grid gap-0"
|
|
20
|
+
[style.grid-template-columns]="gridTemplateColumns"
|
|
21
|
+
data-cy="feature-type-content"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="py-1 px-2 text-sm font-bold text-left border-t"
|
|
25
|
+
[class.border-l]="i > 0"
|
|
26
|
+
[class.border-gray-300]="i > 0"
|
|
27
|
+
*ngFor="let col of columns; let i = index"
|
|
28
|
+
data-test="column-label"
|
|
29
|
+
>
|
|
30
|
+
{{ col.label | translate }}
|
|
31
|
+
</div>
|
|
32
|
+
<ng-container *ngFor="let row of featureType.attributes">
|
|
33
|
+
<div
|
|
34
|
+
class="bg-white text-sm font-normal text-left border-t"
|
|
35
|
+
[class.border-l]="i > 0"
|
|
36
|
+
[class.border-gray-300]="i > 0"
|
|
37
|
+
*ngFor="let col of columns; let i = index"
|
|
38
|
+
>
|
|
39
|
+
<gn-ui-truncated-text
|
|
40
|
+
extraClass="py-3 px-2"
|
|
41
|
+
[text]="row[col.key]"
|
|
42
|
+
></gn-ui-truncated-text>
|
|
43
|
+
</div>
|
|
44
|
+
</ng-container>
|
|
45
|
+
</div>
|
|
46
|
+
</gn-ui-expandable-panel>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
4
|
+
import { DatasetFeatureCatalog } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
5
|
+
import {
|
|
6
|
+
ExpandablePanelComponent,
|
|
7
|
+
TruncatedTextComponent,
|
|
8
|
+
} from '../../../../../../../libs/ui/layout/src'
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'gn-ui-feature-catalog-list',
|
|
12
|
+
templateUrl: './feature-catalog-list.component.html',
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [
|
|
15
|
+
CommonModule,
|
|
16
|
+
TranslateModule,
|
|
17
|
+
ExpandablePanelComponent,
|
|
18
|
+
TruncatedTextComponent,
|
|
19
|
+
],
|
|
20
|
+
})
|
|
21
|
+
export class FeatureCatalogListComponent implements OnInit {
|
|
22
|
+
@Input() filteredFeatureCatalog: DatasetFeatureCatalog
|
|
23
|
+
|
|
24
|
+
columns = [
|
|
25
|
+
{
|
|
26
|
+
key: 'type',
|
|
27
|
+
label: 'feature.catalog.attribute.type',
|
|
28
|
+
width: '19%',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'name',
|
|
32
|
+
label: 'feature.catalog.attribute.name',
|
|
33
|
+
width: '32%',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'code',
|
|
37
|
+
label: 'feature.catalog.attribute.code',
|
|
38
|
+
width: '24%',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'title',
|
|
42
|
+
label: 'feature.catalog.attribute.description',
|
|
43
|
+
width: '25%',
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
gridTemplateColumns = ''
|
|
48
|
+
|
|
49
|
+
ngOnInit(): void {
|
|
50
|
+
this.gridTemplateColumns = this.columns.map((col) => col.width).join(' ')
|
|
51
|
+
}
|
|
52
|
+
}
|
package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div style="height: 652px" id="preview" *ngIf="apiLinks.length > 0">
|
|
2
|
-
<div class="bg-primary-opacity-10 overflow-visible" style="height:
|
|
2
|
+
<div class="bg-primary-opacity-10 overflow-visible" style="height: 420px">
|
|
3
3
|
<div class="container-lg px-4 lg:mx-auto">
|
|
4
4
|
<div>
|
|
5
5
|
<div class="gn-ui-section-title mb-6" translate>
|
|
@@ -16,17 +16,31 @@
|
|
|
16
16
|
<div class="h-14 md:w-2/5 w-full mb-4 flex flex-row relative">
|
|
17
17
|
<gn-ui-text-input
|
|
18
18
|
class="w-full"
|
|
19
|
+
[(value)]="searchQuery"
|
|
19
20
|
[extraClass]="getExtraInputClass()"
|
|
20
21
|
[placeholder]="'service.metadata.search' | translate"
|
|
21
22
|
(input)="onSearchChange($event)"
|
|
22
23
|
(keydown.enter)="onSearchEnter($event)"
|
|
23
24
|
>
|
|
24
25
|
</gn-ui-text-input>
|
|
26
|
+
<div
|
|
27
|
+
class="absolute right-14 h-14 w-14 flex items-center justify-center"
|
|
28
|
+
>
|
|
29
|
+
<button
|
|
30
|
+
#inputBtn
|
|
31
|
+
*ngIf="searchQuery"
|
|
32
|
+
[aria-label]="'service.metadata.search.clear' | translate"
|
|
33
|
+
(click)="clearSearch()"
|
|
34
|
+
class="h-12 w-12 border-0 flex items-center justify-center"
|
|
35
|
+
>
|
|
36
|
+
<ng-icon name="matClose"></ng-icon>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
25
39
|
<div class="border-l absolute border-gray-200 right-0 h-14 w-14">
|
|
26
40
|
<gn-ui-button
|
|
27
41
|
#inputBtn
|
|
28
42
|
type="outline"
|
|
29
|
-
extraClass="h-12 w-12 border-0 absolute right-1 top-1"
|
|
43
|
+
extraClass="h-12 w-12 border-0 absolute right-1 top-1 bg-white"
|
|
30
44
|
(buttonClick)="searchLayers()"
|
|
31
45
|
>
|
|
32
46
|
<ng-icon name="iconoirSearch"></ng-icon>
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
WmsLayerFull,
|
|
17
17
|
WmtsLayer,
|
|
18
18
|
} from '@camptocamp/ogc-client'
|
|
19
|
+
import { matClose } from '@ng-icons/material-icons/baseline'
|
|
19
20
|
|
|
20
21
|
marker(`service.metadata.search`)
|
|
21
22
|
marker(`service.metadata.capabilities.title`)
|
|
@@ -48,6 +49,7 @@ marker(`service.metadata.capabilities.attribution`)
|
|
|
48
49
|
provideIcons({
|
|
49
50
|
iconoirSearch,
|
|
50
51
|
matInfoOutline,
|
|
52
|
+
matClose,
|
|
51
53
|
}),
|
|
52
54
|
],
|
|
53
55
|
templateUrl: './service-capabilities.component.html',
|
|
@@ -104,6 +106,12 @@ export class ServiceCapabilitiesComponent implements OnInit {
|
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
|
|
109
|
+
clearSearch() {
|
|
110
|
+
this.searchActive = false
|
|
111
|
+
this.searchQuery = ''
|
|
112
|
+
this.filteredLayers = this.availableLayers
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
async loadLayers() {
|
|
108
116
|
if (
|
|
109
117
|
this.apiLinks.length > 0 &&
|
|
@@ -176,7 +184,7 @@ export class ServiceCapabilitiesComponent implements OnInit {
|
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
getExtraClass(layerItem) {
|
|
179
|
-
return layerItem
|
|
187
|
+
return layerItem === this.selectedLayer
|
|
180
188
|
? `h-8 rounded-lg bg-primary-darker text-white hover:text-primary-darker hover:bg-white`
|
|
181
189
|
: `h-8 rounded-lg`
|
|
182
190
|
}
|
|
@@ -16,13 +16,13 @@ import { TranslateModule } from '@ngx-translate/core'
|
|
|
16
16
|
import { AvatarComponent } from './avatar/avatar.component'
|
|
17
17
|
import { ImageInputComponent } from './image-input/image-input.component'
|
|
18
18
|
import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
|
|
19
|
+
import { KindBadgeComponent } from './kind-badge/kind-badge.component'
|
|
19
20
|
import { ThumbnailComponent } from './thumbnail/thumbnail.component'
|
|
20
21
|
import { TimeSincePipe } from './user-feedback-item/time-since.pipe'
|
|
21
22
|
import { UserPreviewComponent } from './user-preview/user-preview.component'
|
|
22
23
|
import { ApplicationBannerComponent } from './application-banner/application-banner.component'
|
|
23
24
|
import { InternalLinkCardComponent } from './internal-link-card/internal-link-card.component'
|
|
24
25
|
import { ServiceCapabilitiesComponent } from './service-capabilities/service-capabilities.component'
|
|
25
|
-
|
|
26
26
|
@NgModule({
|
|
27
27
|
imports: [
|
|
28
28
|
CommonModule,
|
|
@@ -46,6 +46,7 @@ import { ServiceCapabilitiesComponent } from './service-capabilities/service-cap
|
|
|
46
46
|
ApplicationBannerComponent,
|
|
47
47
|
InternalLinkCardComponent,
|
|
48
48
|
ServiceCapabilitiesComponent,
|
|
49
|
+
KindBadgeComponent,
|
|
49
50
|
],
|
|
50
51
|
providers: [
|
|
51
52
|
provideNgIconsConfig({
|
|
@@ -62,6 +63,7 @@ import { ServiceCapabilitiesComponent } from './service-capabilities/service-cap
|
|
|
62
63
|
ApplicationBannerComponent,
|
|
63
64
|
InternalLinkCardComponent,
|
|
64
65
|
ServiceCapabilitiesComponent,
|
|
66
|
+
KindBadgeComponent,
|
|
65
67
|
],
|
|
66
68
|
})
|
|
67
69
|
export class UiElementsModule {}
|
|
@@ -15,6 +15,7 @@ export * from './lib/dropdown-selector/dropdown-selector.model'
|
|
|
15
15
|
export * from './lib/editable-label/editable-label.directive'
|
|
16
16
|
export * from './lib/file-input/file-input.component'
|
|
17
17
|
export * from './lib/files-drop/files-drop.directive'
|
|
18
|
+
export * from './lib/inline-filter/inline-filter.component'
|
|
18
19
|
export * from './lib/search-input/search-input.component'
|
|
19
20
|
export * from './lib/star-toggle/star-toggle.component'
|
|
20
21
|
export * from './lib/switch-toggle/switch-toggle.component'
|
|
@@ -23,3 +24,4 @@ export * from './lib/text-input/text-input.component'
|
|
|
23
24
|
export * from './lib/ui-inputs.module'
|
|
24
25
|
export * from './lib/url-input/url-input.component'
|
|
25
26
|
export * from './lib/viewport-intersector/viewport-intersector.component'
|
|
27
|
+
export * from './lib/search-feature-catalog/search-feature-catalog.component'
|
|
@@ -56,14 +56,14 @@ export class ButtonComponent {
|
|
|
56
56
|
|
|
57
57
|
@Input() disabled = false
|
|
58
58
|
@Input() extraClass = ''
|
|
59
|
-
@Output() buttonClick = new EventEmitter<
|
|
59
|
+
@Output() buttonClick = new EventEmitter<Event>()
|
|
60
60
|
|
|
61
61
|
get classList() {
|
|
62
62
|
return `${this.btnClass} ${this.extraClass}`
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
handleClick(event: MouseEvent) {
|
|
66
|
-
this.buttonClick.emit()
|
|
66
|
+
this.buttonClick.emit(event)
|
|
67
67
|
event.preventDefault()
|
|
68
68
|
;(event.currentTarget as HTMLElement).blur()
|
|
69
69
|
propagateToDocumentOnly(event)
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
#overlayContainer
|
|
60
60
|
>
|
|
61
61
|
<div
|
|
62
|
-
class="border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary"
|
|
62
|
+
class="border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-[2px] flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary"
|
|
63
63
|
>
|
|
64
64
|
<button
|
|
65
65
|
type="button"
|