geonetwork-ui 2.6.0-dev.3e7617888 → 2.6.0-dev.4a61a87f9
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/lib/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +40 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
- 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 +2 -2
- 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 +3 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +66 -12
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +7 -1
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +45 -9
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +25 -6
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +273 -0
- package/esm2022/libs/feature/record/src/index.mjs +2 -3
- 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.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -13
- 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/search/src/lib/constants.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +6 -2
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
- 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/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 +42 -83
- package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +22 -5
- 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/related-record-card/related-record-card.component.mjs +17 -7
- 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 +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +3 -3
- 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 +2 -8
- package/esm2022/libs/ui/layout/src/index.mjs +2 -1
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +48 -11
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +20 -10
- 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/record-preview-row/record-preview-row.component.mjs +4 -8
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +3 -3
- 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/action-menu/action-menu.component.mjs +21 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -18
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +10 -4
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
- 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 +44 -11
- package/esm2022/translations/en.json +44 -11
- package/esm2022/translations/es.json +43 -10
- package/esm2022/translations/fr.json +45 -12
- package/esm2022/translations/it.json +70 -37
- package/esm2022/translations/nl.json +43 -10
- package/esm2022/translations/pt.json +43 -10
- package/fesm2022/geonetwork-ui.mjs +2027 -813
- package/fesm2022/geonetwork-ui.mjs.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/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/iso19115-3/read-parts.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-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 +13 -2
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.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/common/domain/src/lib/repository/records-repository.interface.d.ts +6 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +12 -8
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +5 -2
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -0
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +52 -0
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -0
- package/libs/feature/record/src/index.d.ts +1 -2
- package/libs/feature/record/src/index.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/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 +6 -0
- 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/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +6 -5
- package/libs/feature/search/src/lib/results-table/results-table-container.component.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/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 +6 -13
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +14 -0
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
- 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/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 +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 +1 -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/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.map +1 -1
- package/libs/ui/layout/src/index.d.ts +1 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +9 -2
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +4 -2
- 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/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-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +4 -3
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
- 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 +2 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
- package/libs/util/i18n/src/lib/language-codes.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/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +62 -4
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +8 -4
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +4 -1
- 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 +2 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +105 -12
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +9 -2
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -0
- 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/common/fixtures/src/lib/records.fixtures.ts +50 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.html +12 -9
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +54 -10
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +1 -0
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +27 -1
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +120 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +325 -0
- package/src/libs/feature/record/src/index.ts +1 -2
- 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.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +22 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +22 -15
- 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/search/src/lib/constants.ts +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +2 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +13 -3
- 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/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 +68 -141
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +38 -97
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +69 -0
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +61 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +7 -5
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +21 -2
- 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/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.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 +1 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +2 -2
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +3 -4
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/layout/src/index.ts +1 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +22 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +2 -2
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +43 -5
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +0 -1
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +1 -1
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -2
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -6
- 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/record-preview-row/record-preview-row.component.html +9 -81
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -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/action-menu/action-menu.component.html +16 -6
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +15 -11
- 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 +31 -27
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -15
- package/src/libs/ui/search/src/lib/ui-search.module.ts +3 -0
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
- package/src/libs/util/i18n/src/lib/language-codes.ts +23 -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 +2 -14
- package/translations/de.json +44 -11
- package/translations/en.json +44 -11
- package/translations/es.json +43 -10
- package/translations/fr.json +45 -12
- package/translations/it.json +70 -37
- package/translations/nl.json +43 -10
- package/translations/pt.json +43 -10
- package/translations/sk.json +43 -10
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChangeDetectionStrategy,
|
|
3
3
|
Component,
|
|
4
|
+
ContentChild,
|
|
4
5
|
ElementRef,
|
|
5
6
|
Input,
|
|
7
|
+
TemplateRef,
|
|
6
8
|
ViewChild,
|
|
9
|
+
OnDestroy,
|
|
10
|
+
ChangeDetectorRef,
|
|
11
|
+
AfterViewInit,
|
|
7
12
|
} from '@angular/core'
|
|
8
13
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
9
14
|
import { CommonModule } from '@angular/common'
|
|
@@ -18,20 +23,41 @@ import { matAdd, matRemove } from '@ng-icons/material-icons/baseline'
|
|
|
18
23
|
imports: [CommonModule, NgIcon],
|
|
19
24
|
viewProviders: [provideIcons({ matAdd, matRemove })],
|
|
20
25
|
})
|
|
21
|
-
export class ExpandablePanelComponent {
|
|
22
|
-
@Input() title
|
|
23
|
-
@Input()
|
|
24
|
-
@
|
|
25
|
-
|
|
26
|
+
export class ExpandablePanelComponent implements AfterViewInit, OnDestroy {
|
|
27
|
+
@Input() title?: string
|
|
28
|
+
@Input() iconColor? = ''
|
|
29
|
+
@ContentChild('titleTemplate') titleTemplate?: TemplateRef<HTMLElement>
|
|
30
|
+
@ViewChild('contentDiv') contentDiv?: ElementRef
|
|
31
|
+
|
|
32
|
+
private _collapsed = true
|
|
33
|
+
private contentObserver?: ResizeObserver
|
|
34
|
+
|
|
35
|
+
constructor(private readonly changeDetector: ChangeDetectorRef) {}
|
|
36
|
+
|
|
37
|
+
ngAfterViewInit() {
|
|
38
|
+
if (this.contentDiv) {
|
|
39
|
+
this.contentObserver = new ResizeObserver(() => {
|
|
40
|
+
this.changeDetector.detectChanges()
|
|
41
|
+
})
|
|
42
|
+
this.contentObserver.observe(this.contentDiv.nativeElement)
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@Input() set collapsed(value: boolean) {
|
|
47
|
+
this._collapsed = value
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
get collapsed(): boolean {
|
|
51
|
+
return this._collapsed
|
|
52
|
+
}
|
|
26
53
|
|
|
27
54
|
toggle(): void {
|
|
28
55
|
this.collapsed = !this.collapsed
|
|
29
|
-
this.maxHeight = this.setMaxHeight()
|
|
30
56
|
}
|
|
31
57
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.
|
|
35
|
-
}
|
|
58
|
+
ngOnDestroy() {
|
|
59
|
+
if (this.contentObserver) {
|
|
60
|
+
this.contentObserver.disconnect()
|
|
61
|
+
}
|
|
36
62
|
}
|
|
37
63
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
*ngFor="let item of items"
|
|
32
32
|
(click)="handleRowClick(item)"
|
|
33
33
|
data-cy="table-row"
|
|
34
|
+
[attr.data-cy-title]="item.title"
|
|
34
35
|
[title]="getItemTitle(item) | translate"
|
|
35
36
|
>
|
|
36
37
|
<div
|
|
@@ -48,9 +49,9 @@
|
|
|
48
49
|
class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate border-b border-gray-200"
|
|
49
50
|
[ngClass]="{
|
|
50
51
|
'text-purple-light cursor-default':
|
|
51
|
-
(
|
|
52
|
+
(canEditItem(item) | async) === false,
|
|
52
53
|
'group-hover:text-main group-hover:bg-gray-50':
|
|
53
|
-
(item
|
|
54
|
+
canEditItem(item) | async,
|
|
54
55
|
}"
|
|
55
56
|
>
|
|
56
57
|
<ng-container
|
|
@@ -14,9 +14,11 @@ import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
|
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
16
16
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
+
import { Observable, of } from 'rxjs'
|
|
17
18
|
|
|
18
|
-
marker('editor.record.lock.
|
|
19
|
-
marker('editor.record.lock.
|
|
19
|
+
marker('editor.record.lock.resourceType')
|
|
20
|
+
marker('editor.record.lock.harvested')
|
|
21
|
+
marker('editor.record.lock.owner')
|
|
20
22
|
@Component({
|
|
21
23
|
selector: 'gn-ui-interactive-table',
|
|
22
24
|
templateUrl: './interactive-table.component.html',
|
|
@@ -31,6 +33,7 @@ export class InteractiveTableComponent {
|
|
|
31
33
|
columns: QueryList<InteractiveTableColumnComponent>
|
|
32
34
|
|
|
33
35
|
@Input() items: unknown[] = []
|
|
36
|
+
@Input() canEditItem: (item: unknown) => Observable<boolean> = () => of(true)
|
|
34
37
|
@Input() isDraftPage = false
|
|
35
38
|
@Output() itemClick = new EventEmitter<unknown>()
|
|
36
39
|
|
|
@@ -49,10 +52,14 @@ export class InteractiveTableComponent {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
getItemTitle(item: CatalogRecord) {
|
|
52
|
-
if (!
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
if (!this.isDraftPage) {
|
|
56
|
+
if (item.kind !== 'dataset') {
|
|
57
|
+
return 'editor.record.lock.resourceType'
|
|
58
|
+
} else if (item.extras?.isHarvested) {
|
|
59
|
+
return 'editor.record.lock.harvested'
|
|
60
|
+
} else if (!item.extras?.edit) {
|
|
61
|
+
return 'editor.record.lock.owner'
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
return ''
|
|
58
65
|
}
|
package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html
CHANGED
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
<div class="flex flex-row gap-x-
|
|
1
|
+
<div class="flex flex-row gap-x-1 items-center">
|
|
2
2
|
<gn-ui-button
|
|
3
3
|
data-test="previousButton"
|
|
4
|
-
type="
|
|
4
|
+
type="light"
|
|
5
|
+
[extraClass]="
|
|
6
|
+
'w-10 h-8 px-2 py-1 rounded-lg ' +
|
|
7
|
+
(!listComponent.isFirstPage
|
|
8
|
+
? 'border border-gray-300'
|
|
9
|
+
: 'border border-gray-100')
|
|
10
|
+
"
|
|
5
11
|
[disabled]="listComponent.isFirstPage"
|
|
6
12
|
(buttonClick)="listComponent.goToPrevPage()"
|
|
7
13
|
>
|
|
8
|
-
<ng-icon name="
|
|
14
|
+
<ng-icon name="matArrowBackIos"></ng-icon>
|
|
9
15
|
</gn-ui-button>
|
|
10
16
|
<gn-ui-button
|
|
11
17
|
data-test="nextButton"
|
|
12
|
-
type="
|
|
18
|
+
type="light"
|
|
19
|
+
[extraClass]="
|
|
20
|
+
'w-10 h-8 px-2 py-1 rounded-lg ' +
|
|
21
|
+
(!listComponent.isLastPage
|
|
22
|
+
? 'border border-gray-300'
|
|
23
|
+
: 'border border-gray-100')
|
|
24
|
+
"
|
|
13
25
|
[disabled]="listComponent.isLastPage"
|
|
14
26
|
(buttonClick)="listComponent.goToNextPage()"
|
|
15
27
|
>
|
|
16
|
-
<ng-icon name="
|
|
28
|
+
<ng-icon name="matArrowForwardIos"></ng-icon>
|
|
17
29
|
</gn-ui-button>
|
|
18
30
|
</div>
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
provideNgIconsConfig,
|
|
6
6
|
} from '@ng-icons/core'
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
matArrowBackIos,
|
|
9
|
+
matArrowForwardIos,
|
|
10
10
|
} from '@ng-icons/material-icons/baseline'
|
|
11
11
|
import { Paginable } from '../paginable.interface'
|
|
12
12
|
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
@@ -18,7 +18,7 @@ import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
|
18
18
|
standalone: true,
|
|
19
19
|
imports: [ButtonComponent, NgIconComponent],
|
|
20
20
|
providers: [
|
|
21
|
-
provideIcons({
|
|
21
|
+
provideIcons({ matArrowBackIos, matArrowForwardIos }),
|
|
22
22
|
provideNgIconsConfig({
|
|
23
23
|
size: '0.875em',
|
|
24
24
|
}),
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="flex items-center justify-between w-full gap-2"
|
|
3
|
+
cdkOverlayOrigin
|
|
4
|
+
[class]="extraClass"
|
|
5
|
+
#trigger="cdkOverlayOrigin"
|
|
6
|
+
>
|
|
7
|
+
<span #textElement class="truncate">
|
|
8
|
+
{{ text }}
|
|
9
|
+
</span>
|
|
10
|
+
<gn-ui-button
|
|
11
|
+
*ngIf="isTextTruncated"
|
|
12
|
+
type="outline"
|
|
13
|
+
extraClass="w-10 h-8 border rounded-lg"
|
|
14
|
+
(buttonClick)="toggleOverlay()"
|
|
15
|
+
>
|
|
16
|
+
<ng-icon name="iconoirExpand" size="24"> </ng-icon>
|
|
17
|
+
</gn-ui-button>
|
|
18
|
+
|
|
19
|
+
<ng-template
|
|
20
|
+
cdkConnectedOverlay
|
|
21
|
+
[cdkConnectedOverlayOrigin]="trigger"
|
|
22
|
+
[cdkConnectedOverlayOpen]="isOpen"
|
|
23
|
+
[cdkConnectedOverlayPositions]="[overlayPosition]"
|
|
24
|
+
cdkConnectedOverlayPush
|
|
25
|
+
[cdkConnectedOverlayWidth]="'auto'"
|
|
26
|
+
[cdkConnectedOverlayFlexibleDimensions]="true"
|
|
27
|
+
[cdkConnectedOverlayGrowAfterOpen]="true"
|
|
28
|
+
(detach)="close()"
|
|
29
|
+
>
|
|
30
|
+
<div class="bg-white shadow-lg border border-gray-300 flex">
|
|
31
|
+
<div class="sm:w-64 xs:w-32">
|
|
32
|
+
<p class="m-2">{{ text }}</p>
|
|
33
|
+
</div>
|
|
34
|
+
<gn-ui-button
|
|
35
|
+
class="m-2 flex-shrink-0"
|
|
36
|
+
type="light"
|
|
37
|
+
(buttonClick)="close()"
|
|
38
|
+
extraClass="w-10 h-8 px-1 bg-white"
|
|
39
|
+
>
|
|
40
|
+
<ng-icon name="iconoirReduce" size="24"> </ng-icon>
|
|
41
|
+
</gn-ui-button>
|
|
42
|
+
</div>
|
|
43
|
+
</ng-template>
|
|
44
|
+
</div>
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
ElementRef,
|
|
6
|
+
Input,
|
|
7
|
+
OnDestroy,
|
|
8
|
+
ViewChild,
|
|
9
|
+
NgZone,
|
|
10
|
+
} from '@angular/core'
|
|
11
|
+
import { CommonModule } from '@angular/common'
|
|
12
|
+
import { provideIcons, NgIconComponent } from '@ng-icons/core'
|
|
13
|
+
import { iconoirExpand, iconoirReduce } from '@ng-icons/iconoir'
|
|
14
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
+
import { MatButtonModule } from '@angular/material/button'
|
|
16
|
+
import {
|
|
17
|
+
OverlayModule,
|
|
18
|
+
ViewportRuler,
|
|
19
|
+
ConnectedPosition,
|
|
20
|
+
} from '@angular/cdk/overlay'
|
|
21
|
+
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
22
|
+
import { Subscription } from 'rxjs'
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'gn-ui-truncated-text',
|
|
26
|
+
standalone: true,
|
|
27
|
+
imports: [
|
|
28
|
+
CommonModule,
|
|
29
|
+
TranslateModule,
|
|
30
|
+
MatButtonModule,
|
|
31
|
+
OverlayModule,
|
|
32
|
+
ButtonComponent,
|
|
33
|
+
NgIconComponent,
|
|
34
|
+
],
|
|
35
|
+
providers: [provideIcons({ iconoirExpand, iconoirReduce })],
|
|
36
|
+
templateUrl: './truncated-text.component.html',
|
|
37
|
+
styles: [],
|
|
38
|
+
})
|
|
39
|
+
export class TruncatedTextComponent implements AfterViewInit, OnDestroy {
|
|
40
|
+
@Input() text = ''
|
|
41
|
+
@Input() extraClass = ''
|
|
42
|
+
|
|
43
|
+
@ViewChild('textElement') textElement: ElementRef<HTMLElement>
|
|
44
|
+
isTextTruncated = false
|
|
45
|
+
isOpen = false
|
|
46
|
+
overlayPosition: ConnectedPosition = {
|
|
47
|
+
originX: 'end',
|
|
48
|
+
originY: 'top',
|
|
49
|
+
overlayX: 'end',
|
|
50
|
+
overlayY: 'top',
|
|
51
|
+
}
|
|
52
|
+
private readonly resizeObserver: ResizeObserver
|
|
53
|
+
private readonly mutationObserver: MutationObserver
|
|
54
|
+
private readonly viewportSubscription: Subscription
|
|
55
|
+
|
|
56
|
+
constructor(
|
|
57
|
+
private readonly cd: ChangeDetectorRef,
|
|
58
|
+
private readonly ngZone: NgZone,
|
|
59
|
+
private readonly viewportRuler: ViewportRuler
|
|
60
|
+
) {
|
|
61
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
62
|
+
this.ngZone.run(() => this.checkTextTruncation())
|
|
63
|
+
})
|
|
64
|
+
|
|
65
|
+
this.mutationObserver = new MutationObserver(() => {
|
|
66
|
+
this.ngZone.run(() => {
|
|
67
|
+
this.checkTextTruncation()
|
|
68
|
+
this.close()
|
|
69
|
+
})
|
|
70
|
+
})
|
|
71
|
+
|
|
72
|
+
this.viewportSubscription = this.viewportRuler.change().subscribe(() => {
|
|
73
|
+
if (this.isOpen) {
|
|
74
|
+
this.updateOverlayPosition()
|
|
75
|
+
}
|
|
76
|
+
})
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
ngAfterViewInit() {
|
|
80
|
+
const element = this.textElement.nativeElement
|
|
81
|
+
this.resizeObserver?.observe(element)
|
|
82
|
+
this.mutationObserver?.observe(element.parentElement, {
|
|
83
|
+
attributes: true,
|
|
84
|
+
childList: true,
|
|
85
|
+
subtree: true,
|
|
86
|
+
})
|
|
87
|
+
this.checkTextTruncation()
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
ngOnDestroy() {
|
|
91
|
+
this.resizeObserver?.disconnect()
|
|
92
|
+
this.mutationObserver?.disconnect()
|
|
93
|
+
this.viewportSubscription?.unsubscribe()
|
|
94
|
+
this.close()
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
toggleOverlay() {
|
|
98
|
+
this.isOpen = !this.isOpen
|
|
99
|
+
if (this.isOpen) {
|
|
100
|
+
this.updateOverlayPosition()
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
private updateOverlayPosition() {
|
|
105
|
+
const element = this.textElement.nativeElement
|
|
106
|
+
const rect = element.getBoundingClientRect()
|
|
107
|
+
const viewportWidth = this.viewportRuler.getViewportSize().width
|
|
108
|
+
const isMobile = viewportWidth < 640
|
|
109
|
+
const overlayWidth = isMobile ? 190 : 320
|
|
110
|
+
const isNearLeftEdge = rect.left < overlayWidth
|
|
111
|
+
|
|
112
|
+
this.overlayPosition = {
|
|
113
|
+
originX: isNearLeftEdge ? 'start' : 'end',
|
|
114
|
+
originY: 'top',
|
|
115
|
+
overlayX: isNearLeftEdge ? 'start' : 'end',
|
|
116
|
+
overlayY: 'top',
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
close() {
|
|
121
|
+
this.isOpen = false
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
private checkTextTruncation() {
|
|
125
|
+
const element = this.textElement.nativeElement
|
|
126
|
+
|
|
127
|
+
this.isTextTruncated = element.scrollWidth > element.clientWidth
|
|
128
|
+
this.cd.detectChanges()
|
|
129
|
+
}
|
|
130
|
+
}
|
|
@@ -7,11 +7,7 @@ import { NgIconComponent, provideNgIconsConfig } from '@ng-icons/core'
|
|
|
7
7
|
|
|
8
8
|
@NgModule({
|
|
9
9
|
imports: [CommonModule, TranslateModule.forChild(), NgIconComponent],
|
|
10
|
-
providers: [
|
|
11
|
-
provideNgIconsConfig({
|
|
12
|
-
size: '0.9em',
|
|
13
|
-
}),
|
|
14
|
-
],
|
|
10
|
+
providers: [],
|
|
15
11
|
declarations: [StickyHeaderComponent, AnchorLinkDirective],
|
|
16
12
|
exports: [StickyHeaderComponent, AnchorLinkDirective],
|
|
17
13
|
})
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div *ngIf="feature" class="root">
|
|
2
|
-
<div class="property" *ngFor="let
|
|
3
|
-
<div>{{
|
|
4
|
-
<div class="font-bold">{{
|
|
2
|
+
<div class="property" *ngFor="let prop of properties | keyvalue">
|
|
3
|
+
<div>{{ prop.key }}</div>
|
|
4
|
+
<div class="font-bold">{{ prop.value }}</div>
|
|
5
5
|
</div>
|
|
6
6
|
</div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
2
|
import { CommonModule } from '@angular/common'
|
|
3
3
|
import type { Feature } from 'geojson'
|
|
4
|
+
import { DatasetFeatureCatalog } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
4
5
|
|
|
5
6
|
const geometryKeys = ['geometry', 'the_geom']
|
|
6
7
|
|
|
@@ -14,11 +15,34 @@ const geometryKeys = ['geometry', 'the_geom']
|
|
|
14
15
|
})
|
|
15
16
|
export class FeatureDetailComponent {
|
|
16
17
|
@Input() feature: Feature
|
|
18
|
+
_featureAttributes = []
|
|
19
|
+
@Input() set featureCatalog(value: DatasetFeatureCatalog) {
|
|
20
|
+
if (value) this._featureAttributes = value.featureTypes[0].attributes
|
|
21
|
+
}
|
|
17
22
|
|
|
18
23
|
get properties() {
|
|
19
24
|
if (!this.feature) return []
|
|
20
|
-
return
|
|
21
|
-
|
|
22
|
-
|
|
25
|
+
return this.setProperties()
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
setProperties() {
|
|
29
|
+
const properties = Object.keys(this.feature.properties)
|
|
30
|
+
.filter((p) => !geometryKeys.includes(p))
|
|
31
|
+
.reduce((acc, p) => {
|
|
32
|
+
let key = p
|
|
33
|
+
if (this._featureAttributes.length) {
|
|
34
|
+
const matchingAttribute = this._featureAttributes.find(
|
|
35
|
+
(attr) => attr.name === p
|
|
36
|
+
)
|
|
37
|
+
|
|
38
|
+
if (matchingAttribute && matchingAttribute.code) {
|
|
39
|
+
key = matchingAttribute.code
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
acc[key] = this.feature.properties[p]
|
|
43
|
+
return acc
|
|
44
|
+
}, {})
|
|
45
|
+
|
|
46
|
+
return properties
|
|
23
47
|
}
|
|
24
48
|
}
|
|
@@ -19,3 +19,4 @@ export * from './lib/results-list-item/results-list-item.component'
|
|
|
19
19
|
export * from './lib/results-hits-search-kind/results-hits-search-kind.component'
|
|
20
20
|
export * from './lib/results-hits-number/results-hits-number.component'
|
|
21
21
|
export * from './lib/results-table/results-table.component'
|
|
22
|
+
export * from './lib/results-table/action-menu/action-menu.component'
|
|
@@ -1,82 +1,10 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
[
|
|
1
|
+
<gn-ui-internal-link-card
|
|
2
|
+
[linkHref]="linkHref"
|
|
3
|
+
[linkTarget]="linkTarget"
|
|
4
|
+
[record]="record"
|
|
5
|
+
[favoriteTemplate]="favoriteTemplate"
|
|
6
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
7
|
+
(mdSelect)="mdSelect.emit($event)"
|
|
8
|
+
size="L"
|
|
5
9
|
>
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
class="overflow-hidden bg-gray-100 rounded-lg w-full border border-gray-300 h-36"
|
|
9
|
-
>
|
|
10
|
-
<gn-ui-thumbnail
|
|
11
|
-
class="relative h-full w-full object-cover object-left-top"
|
|
12
|
-
[thumbnailUrl]="[
|
|
13
|
-
record.overviews?.[0]?.url?.toString(),
|
|
14
|
-
organization?.logoUrl?.toString(),
|
|
15
|
-
]"
|
|
16
|
-
[fit]="['cover', 'contain']"
|
|
17
|
-
></gn-ui-thumbnail>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div
|
|
21
|
-
class="content grid grow relative sm:pl-6 sm:pr-12"
|
|
22
|
-
style="grid-template-columns: auto 70px"
|
|
23
|
-
>
|
|
24
|
-
<div class="mb-3 mt-5 sm:mt-2">
|
|
25
|
-
<div
|
|
26
|
-
class="font-title text-21 text-title line-clamp-2 col-start-1 col-span-2 sm:line-clamp-1 group-hover:text-primary transition-colors"
|
|
27
|
-
data-cy="recordTitle"
|
|
28
|
-
>
|
|
29
|
-
{{ record.title }}
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div
|
|
33
|
-
class="abstract mt-4 mb-5 h-36 line-clamp-6 col-start-1 col-span-2 row-start-3 sm:mb-2 sm:h-[4.5rem] sm:line-clamp-3 sm:row-start-2 sm:mt-0"
|
|
34
|
-
data-cy="recordAbstract"
|
|
35
|
-
>
|
|
36
|
-
<gn-ui-markdown-parser
|
|
37
|
-
[textContent]="abstract"
|
|
38
|
-
whitoutStyles="true"
|
|
39
|
-
></gn-ui-markdown-parser>
|
|
40
|
-
</div>
|
|
41
|
-
<div
|
|
42
|
-
class="text-primary opacity-45 uppercase col-start-1 col-span-2 row-start-2 sm:truncate sm:row-start-3 sm:col-span-1"
|
|
43
|
-
data-cy="recordOrg"
|
|
44
|
-
[class]="metadataQualityDisplay ? 'limit-organisation-with-quality' : ''"
|
|
45
|
-
>
|
|
46
|
-
{{ organization?.name }}
|
|
47
|
-
</div>
|
|
48
|
-
<div
|
|
49
|
-
class="icons flex flex-row col-start-1 row-start-4 sm:col-start-2 sm:row-start-3 sm:absolute sm:right-[0.4em]"
|
|
50
|
-
>
|
|
51
|
-
<ng-icon
|
|
52
|
-
*ngIf="isDownloadable"
|
|
53
|
-
class="text-primary opacity-45 mx-1"
|
|
54
|
-
name="matCloudDownloadOutline"
|
|
55
|
-
></ng-icon>
|
|
56
|
-
<ng-icon
|
|
57
|
-
*ngIf="isViewable"
|
|
58
|
-
class="text-primary opacity-45 mx-1"
|
|
59
|
-
name="matMapOutline"
|
|
60
|
-
></ng-icon>
|
|
61
|
-
</div>
|
|
62
|
-
<div
|
|
63
|
-
*ngIf="metadataQualityDisplay"
|
|
64
|
-
class="col-start-2 row-start-4 sm:row-start-3 absolute right-[4em] sm:right-[5em]"
|
|
65
|
-
>
|
|
66
|
-
<gn-ui-metadata-quality
|
|
67
|
-
[smaller]="true"
|
|
68
|
-
[metadata]="record"
|
|
69
|
-
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
70
|
-
></gn-ui-metadata-quality>
|
|
71
|
-
</div>
|
|
72
|
-
<div
|
|
73
|
-
class="text-right col-start-3 row-start-4 sm:absolute sm:col-start-2 sm:row-start-1 sm:top-[-1.125em] sm:right-[0.4em]"
|
|
74
|
-
data-cy="recordFav"
|
|
75
|
-
>
|
|
76
|
-
<ng-container
|
|
77
|
-
[ngTemplateOutlet]="favoriteTemplate"
|
|
78
|
-
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
79
|
-
></ng-container>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</a>
|
|
10
|
+
</gn-ui-internal-link-card>
|
package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
>
|
|
6
6
|
<ng-template let-choice>
|
|
7
7
|
<gn-ui-kind-badge
|
|
8
|
+
[styling]="'custom'"
|
|
8
9
|
[kind]="choice.value"
|
|
9
10
|
[contentTemplate]="customTemplate"
|
|
10
11
|
class="gn-ui-btn-outline rounded-md py-2 px-2 border-gray-400 cursor-pointer focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors bg-transparent hover:text-primary-darker focus:text-primary-darker active:text-primary-black"
|
|
@@ -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,
|
|
@@ -6,17 +6,27 @@
|
|
|
6
6
|
>
|
|
7
7
|
<ul class="flex flex-col gap-2 w-full">
|
|
8
8
|
<gn-ui-button
|
|
9
|
-
*ngIf="
|
|
9
|
+
*ngIf="page === 'main'"
|
|
10
10
|
type="light"
|
|
11
11
|
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
12
12
|
(buttonClick)="duplicate.emit()"
|
|
13
13
|
[disabled]="!canDuplicate"
|
|
14
14
|
data-test="record-menu-duplicate-button"
|
|
15
15
|
>
|
|
16
|
-
<span *ngIf="
|
|
17
|
-
<span *ngIf="!canDuplicate" translate
|
|
16
|
+
<span *ngIf="isDuplicating; else notDuplicating" translate
|
|
18
17
|
>record.action.duplicating</span
|
|
19
|
-
|
|
18
|
+
>
|
|
19
|
+
<ng-template #notDuplicating>
|
|
20
|
+
<span translate>record.action.duplicate</span>
|
|
21
|
+
</ng-template>
|
|
22
|
+
</gn-ui-button>
|
|
23
|
+
<gn-ui-button
|
|
24
|
+
*ngIf="page === 'record'"
|
|
25
|
+
type="light"
|
|
26
|
+
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
27
|
+
(buttonClick)="switch.emit()"
|
|
28
|
+
data-test="record-menu-switch-button"
|
|
29
|
+
><span translate>record.action.switchLang</span></gn-ui-button
|
|
20
30
|
>
|
|
21
31
|
<gn-ui-button
|
|
22
32
|
type="light"
|
|
@@ -24,8 +34,8 @@
|
|
|
24
34
|
(buttonClick)="displayDeleteMenu()"
|
|
25
35
|
[disabled]="!canDelete"
|
|
26
36
|
data-test="record-menu-delete-button"
|
|
27
|
-
><span *ngIf="
|
|
28
|
-
<span *ngIf="
|
|
37
|
+
><span *ngIf="page !== 'draft'" translate>record.action.delete</span>
|
|
38
|
+
<span *ngIf="page === 'draft'" translate
|
|
29
39
|
>record.action.rollback</span
|
|
30
40
|
></gn-ui-button
|
|
31
41
|
>
|