geonetwork-ui 2.6.0-dev.9df114cd4 → 2.6.0-dev.a0bd52a21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/base.converter.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +17 -15
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +42 -6
- 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 +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +5 -5
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +4 -12
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +79 -16
- package/esm2022/libs/api/repository/src/lib/gn4/gn4.provider.mjs +7 -1
- 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/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +2 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/index.mjs +2 -4
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +5 -9
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +7 -11
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +33 -7
- package/esm2022/libs/feature/record/src/lib/record-meta/record-meta.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +14 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -15
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/constants.mjs +3 -1
- package/esm2022/libs/feature/router/src/lib/default/router.config.mjs +1 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +10 -2
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +9 -3
- package/esm2022/libs/feature/search/src/index.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/constants.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +4 -4
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +13 -19
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -3
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-hits/results-hits.container.component.mjs +41 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +30 -10
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +70 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +4 -3
- package/esm2022/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +3 -3
- package/esm2022/libs/ui/dataviz/src/lib/chart/chart.component.mjs +5 -3
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +11 -6
- package/esm2022/libs/ui/elements/src/index.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/api-card/api-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +18 -7
- package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +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 +68 -0
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +8 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +37 -12
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +5 -1
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +72 -0
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +169 -0
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +26 -4
- package/esm2022/libs/ui/inputs/src/index.mjs +3 -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-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 +3 -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/cell-popin/cell-popin.component.mjs +110 -0
- 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 +25 -3
- package/esm2022/libs/ui/layout/src/lib/max-lines/max-lines.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +6 -6
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +73 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +4 -12
- package/esm2022/libs/ui/map/src/index.mjs +2 -1
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +29 -4
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +80 -0
- package/esm2022/libs/ui/search/src/index.mjs +3 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
- package/esm2022/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +53 -0
- package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +21 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -17
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +19 -5
- package/esm2022/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/lib/app-config.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +2 -1
- package/esm2022/libs/util/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/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/gn-ui-version.mjs +6 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +16 -6
- package/esm2022/translations/de.json +75 -8
- package/esm2022/translations/en.json +77 -10
- package/esm2022/translations/es.json +74 -7
- package/esm2022/translations/fr.json +76 -9
- package/esm2022/translations/it.json +81 -14
- package/esm2022/translations/nl.json +74 -7
- package/esm2022/translations/pt.json +74 -7
- package/fesm2022/geonetwork-ui.mjs +3585 -1487
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +1 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/base.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/distribution.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +21 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/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/gn4.provider.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 +23 -17
- 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/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +6 -6
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -3
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +9 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +2 -3
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +1 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/record-meta/record-meta.component.d.ts +2 -2
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +9 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/constants.d.ts +2 -0
- package/libs/feature/router/src/lib/default/constants.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.config.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.config.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts +5 -0
- package/libs/feature/router/src/lib/default/state/router.facade.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +1 -1
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +4 -2
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts +21 -0
- package/libs/feature/search/src/lib/results-hits/results-hits.container.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +5 -3
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/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/feature/search/src/lib/utils/service/fields.d.ts +21 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts +2 -1
- package/libs/ui/dataviz/src/lib/chart/chart.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +6 -1
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +4 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +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 +13 -0
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +3 -0
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +27 -0
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +31 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +5 -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 +2 -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/cell-popin/cell-popin.component.d.ts +28 -0
- package/libs/ui/layout/src/lib/cell-popin/cell-popin.component.d.ts.map +1 -0
- 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 +5 -1
- 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 +22 -0
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/ui/map/src/index.d.ts +1 -0
- package/libs/ui/map/src/index.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts +6 -2
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts +15 -0
- package/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +2 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts +17 -0
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/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 +22 -19
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/app-config.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/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/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/gn-ui-version.d.ts +3 -0
- package/libs/util/shared/src/lib/gn-ui-version.d.ts.map +1 -0
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +14 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/libs/api/metadata-converter/src/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/base.converter.ts +1 -4
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +29 -15
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.service+eaux-usees.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +3 -3
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +64 -6
- 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 +10 -6
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +7 -4
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +2 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +3 -11
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +118 -16
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +6 -0
- 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 +24 -11
- 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 +36 -26
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +16 -2
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +5 -5
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +64 -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.html +120 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +325 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +1 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -2
- package/src/libs/feature/record/src/index.ts +1 -3
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +16 -10
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +2 -3
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +4 -5
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html +2 -2
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +25 -16
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +35 -4
- package/src/libs/feature/record/src/lib/record-meta/record-meta.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +27 -3
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +21 -17
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/router/src/lib/default/constants.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.config.ts +2 -0
- package/src/libs/feature/router/src/lib/default/router.service.ts +10 -0
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +10 -1
- package/src/libs/feature/search/src/index.ts +1 -1
- package/src/libs/feature/search/src/lib/constants.ts +3 -1
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -2
- package/src/libs/feature/search/src/lib/feature-search.module.ts +9 -10
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/feature/search/src/lib/record-url.token.ts +10 -1
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.html +16 -0
- package/src/libs/feature/search/src/lib/results-hits/results-hits.container.component.ts +59 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +26 -5
- package/src/libs/feature/search/src/lib/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/feature/search/src/lib/utils/service/fields.service.ts +4 -5
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +99 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -1
- package/src/libs/ui/dataviz/src/lib/chart/chart.component.ts +2 -1
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +6 -3
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +5 -4
- package/src/libs/ui/elements/src/index.ts +4 -0
- package/src/libs/ui/elements/src/lib/api-card/api-card.component.html +4 -4
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.html +8 -5
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +38 -7
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +29 -2
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +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.css +6 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +11 -0
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +70 -0
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +5 -2
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -7
- package/src/libs/ui/elements/src/lib/metadata-catalog/metadata-catalog.component.html +3 -5
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +12 -9
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +9 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +24 -7
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +2 -3
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +48 -9
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +107 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +83 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.css +0 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +110 -0
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +191 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +11 -1
- package/src/libs/ui/inputs/src/index.ts +2 -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-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 +3 -4
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -3
- package/src/libs/ui/layout/src/index.ts +2 -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/cell-popin/cell-popin.component.html +40 -0
- package/src/libs/ui/layout/src/lib/cell-popin/cell-popin.component.ts +141 -0
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +4 -7
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +20 -0
- package/src/libs/ui/layout/src/lib/max-lines/max-lines.component.html +1 -1
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +17 -5
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +3 -3
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +27 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +91 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +2 -6
- package/src/libs/ui/map/src/index.ts +1 -0
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +3 -3
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +27 -3
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.html +4 -0
- package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts → ui/map/src/lib/components/spatial-extent/spatial-extent.component.ts} +8 -8
- package/src/libs/ui/search/src/index.ts +2 -0
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +25 -0
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +53 -0
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
- package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
- package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
- package/src/libs/ui/search/src/lib/results-table/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 -24
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -14
- package/src/libs/ui/search/src/lib/ui-search.module.ts +8 -0
- package/src/libs/ui/widgets/src/lib/progress-bar/progress-bar.component.html +2 -1
- package/src/libs/util/app-config/src/lib/app-config.ts +1 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +1 -0
- package/src/libs/util/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/index.ts +1 -0
- package/src/libs/util/shared/src/lib/gn-ui-version.ts +8 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +15 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +33 -12
- package/tailwind.base.config.js +3 -0
- package/tailwind.base.css +5 -17
- package/translations/de.json +75 -8
- package/translations/en.json +77 -10
- package/translations/es.json +74 -7
- package/translations/fr.json +76 -9
- package/translations/it.json +81 -14
- package/translations/nl.json +74 -7
- package/translations/pt.json +74 -7
- package/translations/sk.json +74 -7
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +0 -79
- package/esm2022/libs/feature/record/src/lib/gn-ui-version.token.mjs +0 -3
- package/esm2022/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.mjs +0 -18
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +0 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +0 -1
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts +0 -3
- package/libs/feature/record/src/lib/gn-ui-version.token.d.ts.map +0 -1
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts +0 -9
- package/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +0 -1
- package/src/libs/feature/record/src/lib/gn-ui-version.token.ts +0 -3
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.html +0 -4
- package/src/libs/feature/search/src/lib/results-hits-number/results-hits.container.component.ts +0 -10
- /package/src/libs/feature/editor/src/lib/components/{record-form/form-field/form-field-map-container/form-field-map-container.component.css → multilingual-panel/multilingual-panel.component.css} +0 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="flex flex-col h-full w-[302px] bg-neutral-100 border-l border-gray-300 py-8 px-3 gap-6 overflow-auto"
|
|
3
|
+
>
|
|
4
|
+
<div class="flex flex-row px-2 justify-between">
|
|
5
|
+
<span class="text-3xl font-title text-black/80" translate
|
|
6
|
+
>editor.record.form.multilingual.title</span
|
|
7
|
+
>
|
|
8
|
+
<button
|
|
9
|
+
[title]="'editor.record.form.multilingual.open' | translate"
|
|
10
|
+
(click)="toggleLanguageSelection()"
|
|
11
|
+
*ngIf="isMultilingual"
|
|
12
|
+
data-test="activateSelection"
|
|
13
|
+
>
|
|
14
|
+
<ng-icon class="mt-1" name="iconoirSettings"></ng-icon>
|
|
15
|
+
</button>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="flex flex-col gap-2" *ngIf="editTranslations || !isMultilingual">
|
|
18
|
+
<gn-ui-check-toggle
|
|
19
|
+
class="p-2"
|
|
20
|
+
[label]="'editor.record.form.multilingual.enable' | translate"
|
|
21
|
+
[color]="'primary'"
|
|
22
|
+
[(value)]="isMultilingual"
|
|
23
|
+
(toggled)="switchMultilingual($event)"
|
|
24
|
+
></gn-ui-check-toggle>
|
|
25
|
+
<div *ngIf="isMultilingual" class="flex flex-col gap-2">
|
|
26
|
+
<div class="flex flex-row justify-between border-t border-gray-300 p-3">
|
|
27
|
+
<span class="mt-2 text-sm text-gray-600" translate
|
|
28
|
+
>editor.record.form.multilingual.activate</span
|
|
29
|
+
>
|
|
30
|
+
<gn-ui-button
|
|
31
|
+
extraClass="w-16 h-8 font-bold"
|
|
32
|
+
type="gray"
|
|
33
|
+
(buttonClick)="validateTranslations()"
|
|
34
|
+
data-test="validateSelection"
|
|
35
|
+
>{{ 'editor.record.form.multilingual.validate' | translate }}
|
|
36
|
+
</gn-ui-button>
|
|
37
|
+
</div>
|
|
38
|
+
<ng-container *ngIf="supportedLanguages$ | async as languages">
|
|
39
|
+
<div
|
|
40
|
+
class="flex flex-col gap-2 w-full px-2"
|
|
41
|
+
data-test="langAvailable"
|
|
42
|
+
*ngFor="let lang of languages"
|
|
43
|
+
>
|
|
44
|
+
<gn-ui-button
|
|
45
|
+
[extraClass]="getExtraClass(lang)"
|
|
46
|
+
type="gray"
|
|
47
|
+
(buttonClick)="toggleLanguage(lang)"
|
|
48
|
+
[disabled]="lang === _record.defaultLanguage"
|
|
49
|
+
[title]="getToggleTitle(lang)"
|
|
50
|
+
>
|
|
51
|
+
<span [class]="getIconClass(lang)"></span>
|
|
52
|
+
<span class="ml-2">{{ 'language.' + lang | translate }}</span>
|
|
53
|
+
</gn-ui-button>
|
|
54
|
+
</div>
|
|
55
|
+
</ng-container>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div *ngIf="!editTranslations && isMultilingual" class="flex flex-col gap-2">
|
|
59
|
+
<gn-ui-button
|
|
60
|
+
*ngFor="let recordLang of sortLanguages(recordLanguages); let i = index"
|
|
61
|
+
extraClass="flex flex-row justify-between bg-white border border-white rounded mb-1 h-[34px] w-full"
|
|
62
|
+
[ngClass]="{
|
|
63
|
+
'mt-8': isFirstUnsupported(i),
|
|
64
|
+
'': true,
|
|
65
|
+
}"
|
|
66
|
+
(buttonClick)="switchFormLang(recordLang)"
|
|
67
|
+
type="outline"
|
|
68
|
+
data-test="langSwitch"
|
|
69
|
+
>
|
|
70
|
+
<div class="flex flex-row gap-2 items-center">
|
|
71
|
+
<ng-icon
|
|
72
|
+
*ngIf="recordLang === formLanguage"
|
|
73
|
+
class="text-primary mt-1"
|
|
74
|
+
name="iconoirCheckCircle"
|
|
75
|
+
></ng-icon>
|
|
76
|
+
<ng-icon
|
|
77
|
+
*ngIf="recordLang !== formLanguage"
|
|
78
|
+
class="text-gray-800 mt-1"
|
|
79
|
+
name="iconoirCircle"
|
|
80
|
+
></ng-icon>
|
|
81
|
+
<span
|
|
82
|
+
*ngIf="recordLang.length === 2"
|
|
83
|
+
[class]="getIconClass(recordLang) + 'mt-1'"
|
|
84
|
+
></span>
|
|
85
|
+
<span [ngClass]="recordLang === formLanguage ? 'text-black' : ''">{{
|
|
86
|
+
isLangSupported(recordLang)
|
|
87
|
+
? ('language.' + recordLang | translate)
|
|
88
|
+
: recordLang.toUpperCase()
|
|
89
|
+
}}</span>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="flex flex-row gap-2 items-center">
|
|
92
|
+
<span
|
|
93
|
+
*ngIf="recordLang === formLanguage"
|
|
94
|
+
class="text-xs text-base"
|
|
95
|
+
translate
|
|
96
|
+
>editor.record.form.multilingual.default</span
|
|
97
|
+
>
|
|
98
|
+
<button
|
|
99
|
+
(click)="
|
|
100
|
+
openActionMenu(recordLang, template); $event.stopPropagation()
|
|
101
|
+
"
|
|
102
|
+
cdkOverlayOrigin
|
|
103
|
+
#actionMenuButton
|
|
104
|
+
>
|
|
105
|
+
<ng-icon class="pb-5" name="matMoreHorizOutline"></ng-icon>
|
|
106
|
+
</button>
|
|
107
|
+
<ng-template #template>
|
|
108
|
+
<gn-ui-action-menu
|
|
109
|
+
[canDelete]="recordLang !== _record.defaultLanguage"
|
|
110
|
+
page="record"
|
|
111
|
+
(delete)="confirmDeleteAction(recordLang)"
|
|
112
|
+
(closeActionMenu)="closeActionMenu()"
|
|
113
|
+
(switch)="switchDefaultLang(recordLang)"
|
|
114
|
+
>
|
|
115
|
+
</gn-ui-action-menu>
|
|
116
|
+
</ng-template>
|
|
117
|
+
</div>
|
|
118
|
+
</gn-ui-button>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
ElementRef,
|
|
5
|
+
Input,
|
|
6
|
+
OnDestroy,
|
|
7
|
+
QueryList,
|
|
8
|
+
ViewChildren,
|
|
9
|
+
ViewContainerRef,
|
|
10
|
+
} from '@angular/core'
|
|
11
|
+
import { CommonModule } from '@angular/common'
|
|
12
|
+
import { ButtonComponent, CheckToggleComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
13
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
|
+
import { CatalogRecord } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
15
|
+
import {
|
|
16
|
+
NgIconComponent,
|
|
17
|
+
provideIcons,
|
|
18
|
+
provideNgIconsConfig,
|
|
19
|
+
} from '@ng-icons/core'
|
|
20
|
+
import {
|
|
21
|
+
iconoirCheckCircle,
|
|
22
|
+
iconoirCircle,
|
|
23
|
+
iconoirSettings,
|
|
24
|
+
} from '@ng-icons/iconoir'
|
|
25
|
+
import { matMoreHorizOutline } from '@ng-icons/material-icons/outline'
|
|
26
|
+
import { EditorFacade } from '../../+state/editor.facade'
|
|
27
|
+
import { ConfirmationDialogComponent } from '../../../../../../../libs/ui/elements/src'
|
|
28
|
+
import { MatDialog } from '@angular/material/dialog'
|
|
29
|
+
import { RecordsRepositoryInterface } from '../../../../../../../libs/common/domain/src/lib/repository/records-repository.interface'
|
|
30
|
+
import { map, Subscription } from 'rxjs'
|
|
31
|
+
import { Overlay, OverlayRef } from '@angular/cdk/overlay'
|
|
32
|
+
import { TemplatePortal } from '@angular/cdk/portal'
|
|
33
|
+
import { ActionMenuComponent } from '../../../../../../../libs/ui/search/src'
|
|
34
|
+
|
|
35
|
+
const extraFlagMap: { [key: string]: string } = {
|
|
36
|
+
ar: 'arab',
|
|
37
|
+
en: 'gb',
|
|
38
|
+
ko: 'kr',
|
|
39
|
+
cs: 'cz',
|
|
40
|
+
zh: 'cn',
|
|
41
|
+
ca: 'es-ct',
|
|
42
|
+
rm: 'ch',
|
|
43
|
+
da: 'dk',
|
|
44
|
+
sv: 'se',
|
|
45
|
+
cy: 'gb-wls',
|
|
46
|
+
hy: 'am',
|
|
47
|
+
ka: 'ge',
|
|
48
|
+
uk: 'ua',
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@Component({
|
|
52
|
+
selector: 'gn-ui-multilingual-panel',
|
|
53
|
+
standalone: true,
|
|
54
|
+
imports: [
|
|
55
|
+
CommonModule,
|
|
56
|
+
CheckToggleComponent,
|
|
57
|
+
TranslateModule,
|
|
58
|
+
ButtonComponent,
|
|
59
|
+
NgIconComponent,
|
|
60
|
+
ActionMenuComponent,
|
|
61
|
+
],
|
|
62
|
+
providers: [
|
|
63
|
+
provideIcons({
|
|
64
|
+
iconoirSettings,
|
|
65
|
+
matMoreHorizOutline,
|
|
66
|
+
iconoirCheckCircle,
|
|
67
|
+
iconoirCircle,
|
|
68
|
+
}),
|
|
69
|
+
provideNgIconsConfig({
|
|
70
|
+
size: '1.25em',
|
|
71
|
+
}),
|
|
72
|
+
],
|
|
73
|
+
templateUrl: './multilingual-panel.component.html',
|
|
74
|
+
styleUrl: './multilingual-panel.component.css',
|
|
75
|
+
})
|
|
76
|
+
export class MultilingualPanelComponent implements OnDestroy {
|
|
77
|
+
isMultilingual: boolean
|
|
78
|
+
_record: CatalogRecord
|
|
79
|
+
editTranslations: boolean
|
|
80
|
+
selectedLanguages = []
|
|
81
|
+
recordLanguages = []
|
|
82
|
+
formLanguage = ''
|
|
83
|
+
@Input() set record(value: CatalogRecord) {
|
|
84
|
+
this._record = value
|
|
85
|
+
this.isMultilingual = value.otherLanguages.length > 0
|
|
86
|
+
this.editTranslations = false
|
|
87
|
+
this.recordLanguages = [...value.otherLanguages, value.defaultLanguage]
|
|
88
|
+
this.selectedLanguages = this.recordLanguages
|
|
89
|
+
this.formLanguage = value.defaultLanguage
|
|
90
|
+
}
|
|
91
|
+
@ViewChildren('actionMenuButton', { read: ElementRef })
|
|
92
|
+
actionMenuButtons!: QueryList<ElementRef>
|
|
93
|
+
private overlayRef!: OverlayRef
|
|
94
|
+
|
|
95
|
+
isActionMenuOpen = false
|
|
96
|
+
subscription = new Subscription()
|
|
97
|
+
|
|
98
|
+
supportedLanguages$ = this.recordsRepository
|
|
99
|
+
.getApplicationLanguages()
|
|
100
|
+
.pipe(map((languages) => this.sortLanguages(languages)))
|
|
101
|
+
|
|
102
|
+
constructor(
|
|
103
|
+
public facade: EditorFacade,
|
|
104
|
+
public dialog: MatDialog,
|
|
105
|
+
private translateService: TranslateService,
|
|
106
|
+
private recordsRepository: RecordsRepositoryInterface,
|
|
107
|
+
private overlay: Overlay,
|
|
108
|
+
private viewContainerRef: ViewContainerRef,
|
|
109
|
+
private cdr: ChangeDetectorRef
|
|
110
|
+
) {}
|
|
111
|
+
|
|
112
|
+
ngOnDestroy() {
|
|
113
|
+
this.subscription.unsubscribe()
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
sortLanguages(languages: string[]) {
|
|
117
|
+
return languages
|
|
118
|
+
.map((lang) => {
|
|
119
|
+
const label = this.translateService.instant('language.' + lang)
|
|
120
|
+
const isTranslated = label !== 'language.' + lang
|
|
121
|
+
|
|
122
|
+
return {
|
|
123
|
+
lang,
|
|
124
|
+
label,
|
|
125
|
+
isTranslated,
|
|
126
|
+
}
|
|
127
|
+
})
|
|
128
|
+
.sort((a, b) => {
|
|
129
|
+
if (a.isTranslated && !b.isTranslated) return -1
|
|
130
|
+
if (!a.isTranslated && b.isTranslated) return 1
|
|
131
|
+
|
|
132
|
+
return a.label.localeCompare(b.label)
|
|
133
|
+
})
|
|
134
|
+
.map((item) => item.lang)
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
toggleLanguageSelection() {
|
|
138
|
+
this.editTranslations = !this.editTranslations
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
getIconClass(lang: string) {
|
|
142
|
+
return extraFlagMap[lang]
|
|
143
|
+
? `fi fi-${extraFlagMap[lang]} w-4 h-3`
|
|
144
|
+
: `fi fi-${lang} w-4 h-3`
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
switchMultilingual() {
|
|
148
|
+
if (this.isMultilingual && this.selectedLanguages.length > 1) {
|
|
149
|
+
this.confirmDeleteAction()
|
|
150
|
+
} else {
|
|
151
|
+
this.isMultilingual = true
|
|
152
|
+
this.editTranslations = true
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
getExtraClass(lang: string) {
|
|
157
|
+
const baseClass = 'h-[34px] w-full font-bold justify-start hover:bg-white'
|
|
158
|
+
if (this.selectedLanguages.includes(lang)) {
|
|
159
|
+
return `${baseClass} bg-white border border-black`
|
|
160
|
+
}
|
|
161
|
+
return baseClass
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
toggleLanguage(lang: string) {
|
|
165
|
+
if (this.selectedLanguages.includes(lang)) {
|
|
166
|
+
this.removeSelectedLanguage(lang)
|
|
167
|
+
} else {
|
|
168
|
+
this.selectedLanguages.push(lang)
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
removeSelectedLanguage(lang: string) {
|
|
173
|
+
this.selectedLanguages = this.selectedLanguages.filter(
|
|
174
|
+
(language) => language !== lang
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
validateTranslations() {
|
|
179
|
+
const equalLength =
|
|
180
|
+
this.selectedLanguages.length === this.recordLanguages.length
|
|
181
|
+
if (
|
|
182
|
+
this.selectedLanguages.length < this.recordLanguages.length ||
|
|
183
|
+
(equalLength && this.selectedLanguages !== this.recordLanguages)
|
|
184
|
+
) {
|
|
185
|
+
this.confirmDeleteAction(this.selectedLanguages)
|
|
186
|
+
} else {
|
|
187
|
+
this.updateTranslations()
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
updateTranslations() {
|
|
192
|
+
this.facade.updateRecordField(
|
|
193
|
+
'otherLanguages',
|
|
194
|
+
this.selectedLanguages.filter((lang) => lang !== this.formLanguage)
|
|
195
|
+
)
|
|
196
|
+
this.recordLanguages = this.selectedLanguages
|
|
197
|
+
this.editTranslations = false
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
switchFormLang(lang) {
|
|
201
|
+
// TO IMPLEMENT FURTHER
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
switchDefaultLang(lang: string) {
|
|
205
|
+
this.formLanguage = lang
|
|
206
|
+
this.facade.updateRecordField('defaultLanguage', lang)
|
|
207
|
+
this.facade.updateRecordField(
|
|
208
|
+
'otherLanguages',
|
|
209
|
+
this.selectedLanguages.filter((lang) => lang !== this.formLanguage)
|
|
210
|
+
)
|
|
211
|
+
this.closeActionMenu()
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
confirmDeleteAction(lang?: string[] | string) {
|
|
215
|
+
const dialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
|
216
|
+
data: {
|
|
217
|
+
title: this.translateService.instant(
|
|
218
|
+
'editor.record.multilingual.confirmation.title'
|
|
219
|
+
),
|
|
220
|
+
message: this.translateService.instant(
|
|
221
|
+
'editor.record.multilingual.confirmation.message'
|
|
222
|
+
),
|
|
223
|
+
confirmText: this.translateService.instant(
|
|
224
|
+
'editor.record.multilingual.confirmation.confirmText'
|
|
225
|
+
),
|
|
226
|
+
cancelText: this.translateService.instant(
|
|
227
|
+
'editor.record.multilingual.confirmation.cancelText'
|
|
228
|
+
),
|
|
229
|
+
},
|
|
230
|
+
restoreFocus: true,
|
|
231
|
+
})
|
|
232
|
+
this.subscription.add(
|
|
233
|
+
dialogRef.afterClosed().subscribe((confirmed) => {
|
|
234
|
+
if (confirmed) {
|
|
235
|
+
if (lang) {
|
|
236
|
+
if (!Array.isArray(lang)) {
|
|
237
|
+
this.removeSelectedLanguage(lang)
|
|
238
|
+
this.closeActionMenu()
|
|
239
|
+
}
|
|
240
|
+
this.updateTranslations()
|
|
241
|
+
} else {
|
|
242
|
+
this.facade.updateRecordField('otherLanguages', [])
|
|
243
|
+
this.isMultilingual = false
|
|
244
|
+
this.selectedLanguages = []
|
|
245
|
+
}
|
|
246
|
+
} else {
|
|
247
|
+
this.isMultilingual = true
|
|
248
|
+
this.selectedLanguages = this.recordLanguages
|
|
249
|
+
}
|
|
250
|
+
this.editTranslations = false
|
|
251
|
+
})
|
|
252
|
+
)
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
isFirstUnsupported(index: number): boolean {
|
|
256
|
+
const langs = this.sortLanguages(this.recordLanguages)
|
|
257
|
+
return (
|
|
258
|
+
langs[index].length === 3 &&
|
|
259
|
+
langs.slice(0, index).every((lang) => lang.length !== 3)
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
isLangSupported(lang: string) {
|
|
264
|
+
return lang.length === 2
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
getToggleTitle(lang: string) {
|
|
268
|
+
if (lang === this._record.defaultLanguage) {
|
|
269
|
+
return this.translateService.instant(
|
|
270
|
+
'editor.record.form.multilingual.forbidden'
|
|
271
|
+
)
|
|
272
|
+
}
|
|
273
|
+
return ''
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
openActionMenu(item: string, template) {
|
|
277
|
+
this.isActionMenuOpen = true
|
|
278
|
+
const index = this.sortLanguages(this.selectedLanguages).indexOf(item)
|
|
279
|
+
const buttonElement = this.actionMenuButtons.toArray()[index]
|
|
280
|
+
|
|
281
|
+
const positionStrategy = this.overlay
|
|
282
|
+
.position()
|
|
283
|
+
.flexibleConnectedTo(buttonElement)
|
|
284
|
+
.withFlexibleDimensions(true)
|
|
285
|
+
.withPush(true)
|
|
286
|
+
.withPositions([
|
|
287
|
+
{
|
|
288
|
+
originX: 'end',
|
|
289
|
+
originY: 'bottom',
|
|
290
|
+
overlayX: 'end',
|
|
291
|
+
overlayY: 'top',
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
originX: 'end',
|
|
295
|
+
originY: 'top',
|
|
296
|
+
overlayX: 'end',
|
|
297
|
+
overlayY: 'bottom',
|
|
298
|
+
},
|
|
299
|
+
])
|
|
300
|
+
|
|
301
|
+
this.overlayRef = this.overlay.create({
|
|
302
|
+
hasBackdrop: true,
|
|
303
|
+
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
304
|
+
positionStrategy: positionStrategy,
|
|
305
|
+
scrollStrategy: this.overlay.scrollStrategies.reposition(),
|
|
306
|
+
})
|
|
307
|
+
|
|
308
|
+
const portal = new TemplatePortal(template, this.viewContainerRef)
|
|
309
|
+
|
|
310
|
+
this.overlayRef.attach(portal)
|
|
311
|
+
this.subscription.add(
|
|
312
|
+
this.overlayRef.backdropClick().subscribe(() => {
|
|
313
|
+
this.closeActionMenu()
|
|
314
|
+
})
|
|
315
|
+
)
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
closeActionMenu() {
|
|
319
|
+
if (this.overlayRef) {
|
|
320
|
+
this.isActionMenuOpen = false
|
|
321
|
+
this.overlayRef.dispose()
|
|
322
|
+
this.cdr.markForCheck()
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
}
|
|
@@ -66,9 +66,8 @@ export class OnlineResourceCardComponent {
|
|
|
66
66
|
get subtitle(): string {
|
|
67
67
|
switch (this.onlineResource.type) {
|
|
68
68
|
case 'service':
|
|
69
|
-
return `${this.onlineResource.accessServiceProtocol}`
|
|
70
69
|
case 'endpoint':
|
|
71
|
-
return `${this.onlineResource.
|
|
70
|
+
return `${this.onlineResource.accessServiceProtocol}`
|
|
72
71
|
case 'link':
|
|
73
72
|
case 'download':
|
|
74
73
|
return this.getFormat(this.onlineResource)
|
|
@@ -81,8 +81,8 @@ export class OnlineServiceResourceInputComponent {
|
|
|
81
81
|
errorMessage = false
|
|
82
82
|
resetUrlOnChange = Math.random()
|
|
83
83
|
|
|
84
|
-
layersSubject = new BehaviorSubject<{ name
|
|
85
|
-
layers$: Observable<{ name
|
|
84
|
+
layersSubject = new BehaviorSubject<{ name?: string; title?: string }[]>([])
|
|
85
|
+
layers$: Observable<{ name?: string; title?: string }[]> =
|
|
86
86
|
this.layersSubject.asObservable()
|
|
87
87
|
|
|
88
88
|
protocolOptions: {
|
|
@@ -9,9 +9,9 @@ import { PlatformServiceInterface } from '../../../../../../../../../libs/common
|
|
|
9
9
|
import { firstValueFrom, map, shareReplay } from 'rxjs'
|
|
10
10
|
import { EditorFacade } from '../../../../+state/editor.facade'
|
|
11
11
|
import { switchMap } from 'rxjs/operators'
|
|
12
|
-
import { FormFieldMapContainerComponent } from '../form-field-map-container/form-field-map-container.component'
|
|
13
12
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
13
|
import { SPATIAL_SCOPES } from '../../../../fields.config'
|
|
14
|
+
import { SpatialExtentComponent } from '../../../../../../../../../libs/ui/map/src'
|
|
15
15
|
|
|
16
16
|
// This intermediary type will let us keep track of which keyword is bound to
|
|
17
17
|
// which extent; these properties will not be persisted
|
|
@@ -35,8 +35,8 @@ type KeywordWithExtent = Keyword & {
|
|
|
35
35
|
imports: [
|
|
36
36
|
CommonModule,
|
|
37
37
|
GenericKeywordsComponent,
|
|
38
|
-
FormFieldMapContainerComponent,
|
|
39
38
|
TranslateModule,
|
|
39
|
+
SpatialExtentComponent,
|
|
40
40
|
],
|
|
41
41
|
})
|
|
42
42
|
export class FormFieldSpatialExtentComponent {
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
export * from './lib/feature-record.module'
|
|
2
|
-
export * from './lib/gn-ui-version.token'
|
|
3
2
|
export * from './lib/state'
|
|
4
3
|
export * from './lib/data-view-permalink/data-view-permalink.component'
|
|
5
4
|
export * from './lib/data-view/data-view.component'
|
|
6
5
|
export * from './lib/data-view-share/data-view-share.component'
|
|
7
6
|
export * from './lib/data-view-web-component/data-view-web-component.component'
|
|
8
7
|
export * from './lib/external-viewer-button/external-viewer-button.component'
|
|
9
|
-
export * from './lib/map-view/map-view.component'
|
|
10
8
|
export * from './lib/gpf-api-dl/gpf-api-dl.component'
|
|
9
|
+
export * from './lib/map-view/map-view.component'
|
|
11
10
|
export * from './lib/record-meta/record-meta.component'
|
|
12
|
-
export * from './lib/external-viewer-button/external-viewer-button.component'
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
<div class="w-full h-full flex flex-col
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
<div class="w-full h-full flex flex-col gap-[13px]">
|
|
2
|
+
<div
|
|
3
|
+
class="w-full py-4 px-5 bg-white border border-color-border rounded-lg mt-6"
|
|
4
|
+
>
|
|
5
|
+
<gn-ui-dropdown-selector
|
|
6
|
+
*ngIf="dropdownChoices$ | async as choices"
|
|
7
|
+
[ngClass]="{ hidden: !displaySource }"
|
|
8
|
+
[title]="'table.select.data' | translate"
|
|
9
|
+
class="h-[44px] w-full"
|
|
10
|
+
extraBtnClass="font-sans font-bold"
|
|
11
|
+
[choices]="choices"
|
|
12
|
+
(selectValue)="selectLink($event)"
|
|
13
|
+
></gn-ui-dropdown-selector>
|
|
14
|
+
</div>
|
|
11
15
|
<ng-container *ngIf="hidePreview; else dataView">
|
|
12
16
|
<gn-ui-popup-alert
|
|
13
17
|
type="warning"
|
|
@@ -23,12 +27,14 @@
|
|
|
23
27
|
*ngIf="mode === 'table'"
|
|
24
28
|
[cacheActive]="cacheActive$ | async"
|
|
25
29
|
[link]="selectedLink$ | async"
|
|
30
|
+
[featureCatalog]="mdViewFacade.featureCatalog$ | async"
|
|
26
31
|
></gn-ui-table-view>
|
|
27
32
|
<gn-ui-chart-view
|
|
28
33
|
*ngIf="mode === 'chart'"
|
|
29
34
|
(chartConfig$)="setChartConfig($event)"
|
|
30
35
|
[cacheActive]="cacheActive$ | async"
|
|
31
36
|
[link]="selectedLink$ | async"
|
|
37
|
+
[featureCatalog]="mdViewFacade.featureCatalog$ | async"
|
|
32
38
|
></gn-ui-chart-view>
|
|
33
39
|
</div>
|
|
34
40
|
</ng-template>
|
package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
import { Configuration } from '../../../../../../libs/data-access/gn4/src'
|
|
10
10
|
import { BehaviorSubject, combineLatest, map } from 'rxjs'
|
|
11
11
|
import { MdViewFacade } from '../state'
|
|
12
|
-
import { GN_UI_VERSION } from '../gn-ui-version.token'
|
|
13
12
|
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
14
13
|
import { CommonModule } from '@angular/common'
|
|
15
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
+
import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
|
|
16
16
|
|
|
17
17
|
export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
|
|
18
18
|
'webComponentEmbedderUrl'
|
|
@@ -40,7 +40,7 @@ export class DataViewPermalinkComponent {
|
|
|
40
40
|
]).pipe(
|
|
41
41
|
map(([viewType, config, metadata]) => {
|
|
42
42
|
const url = new URL(`${this.wcEmbedderBaseUrl}`, window.location.origin)
|
|
43
|
-
url.searchParams.set('v', `${
|
|
43
|
+
url.searchParams.set('v', `${GEONETWORK_UI_TAG_NAME}`)
|
|
44
44
|
if (viewType === 'chart') {
|
|
45
45
|
if (config) {
|
|
46
46
|
const { aggregation, xProperty, yProperty, chartType } = config
|
|
@@ -74,7 +74,6 @@ export class DataViewPermalinkComponent {
|
|
|
74
74
|
@Optional()
|
|
75
75
|
@Inject(WEB_COMPONENT_EMBEDDER_URL)
|
|
76
76
|
protected wcEmbedderBaseUrl: string,
|
|
77
|
-
@Inject(GN_UI_VERSION) private version: string,
|
|
78
77
|
private facade: MdViewFacade
|
|
79
78
|
) {}
|
|
80
79
|
}
|
package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts
CHANGED
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import { Configuration } from '../../../../../../libs/data-access/gn4/src'
|
|
8
8
|
import { MdViewFacade } from '../state'
|
|
9
9
|
import { BehaviorSubject, combineLatest, map } from 'rxjs'
|
|
10
|
-
import { GN_UI_VERSION } from '../gn-ui-version.token'
|
|
11
10
|
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
12
11
|
import { CommonModule } from '@angular/common'
|
|
13
12
|
import { TranslateModule } from '@ngx-translate/core'
|
|
13
|
+
import { GEONETWORK_UI_TAG_NAME } from '../../../../../../libs/util/shared/src'
|
|
14
14
|
|
|
15
15
|
@Component({
|
|
16
16
|
selector: 'gn-ui-data-view-web-component',
|
|
@@ -36,7 +36,7 @@ export class DataViewWebComponentComponent {
|
|
|
36
36
|
if (config) {
|
|
37
37
|
const { aggregation, xProperty, yProperty, chartType } = config
|
|
38
38
|
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
|
|
39
|
-
|
|
39
|
+
GEONETWORK_UI_TAG_NAME
|
|
40
40
|
}/gn-wc.js"></script>
|
|
41
41
|
<gn-dataset-view-chart
|
|
42
42
|
api-url="${new URL(
|
|
@@ -59,7 +59,7 @@ export class DataViewWebComponentComponent {
|
|
|
59
59
|
return ''
|
|
60
60
|
} else if (viewType === 'table') {
|
|
61
61
|
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
|
|
62
|
-
|
|
62
|
+
GEONETWORK_UI_TAG_NAME
|
|
63
63
|
}/gn-wc.js"></script>
|
|
64
64
|
<gn-dataset-view-table
|
|
65
65
|
api-url="${new URL(
|
|
@@ -76,7 +76,7 @@ export class DataViewWebComponentComponent {
|
|
|
76
76
|
></gn-dataset-view-table>`
|
|
77
77
|
} else {
|
|
78
78
|
return `<script src="https://cdn.jsdelivr.net/gh/geonetwork/geonetwork-ui@wc-dist-${
|
|
79
|
-
|
|
79
|
+
GEONETWORK_UI_TAG_NAME
|
|
80
80
|
}/gn-wc.js"></script>
|
|
81
81
|
<gn-dataset-view-map
|
|
82
82
|
api-url="${new URL(
|
|
@@ -97,7 +97,6 @@ export class DataViewWebComponentComponent {
|
|
|
97
97
|
|
|
98
98
|
constructor(
|
|
99
99
|
@Inject(Configuration) private config: Configuration,
|
|
100
|
-
@Inject(GN_UI_VERSION) private version: string,
|
|
101
100
|
private facade: MdViewFacade
|
|
102
101
|
) {}
|
|
103
102
|
}
|
package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.html
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<gn-ui-button
|
|
2
2
|
*ngIf="externalViewer"
|
|
3
3
|
(buttonClick)="openInExternalViewer()"
|
|
4
|
-
type="
|
|
4
|
+
type="primary"
|
|
5
5
|
[title]="'record.externalViewer.open' | translate"
|
|
6
|
-
extraClass="ms-2 !rounded-lg"
|
|
6
|
+
[extraClass]="extraClass + 'bg-primary ms-2 !rounded-lg'"
|
|
7
7
|
>
|
|
8
8
|
<ng-icon name="matOpenInNew"></ng-icon>
|
|
9
9
|
</gn-ui-button>
|
package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts
CHANGED
|
@@ -36,6 +36,7 @@ export const EXTERNAL_VIEWER_OPEN_NEW_TAB = new InjectionToken<boolean>(
|
|
|
36
36
|
})
|
|
37
37
|
export class ExternalViewerButtonComponent {
|
|
38
38
|
@Input() link: DatasetOnlineResource
|
|
39
|
+
@Input() extraClass = ''
|
|
39
40
|
|
|
40
41
|
get externalViewer() {
|
|
41
42
|
return !!this.urlTemplate && !!this.supportedLinkLayerType
|