geonetwork-ui 2.4.0-dev.344a92f2 → 2.4.0-dev.3b6b95eb
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 +4 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/license.mjs +64 -0
- package/esm2022/libs/api/metadata-converter/src/lib/common/url.mjs +14 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +254 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/index.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.mjs +17 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.mjs +196 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.mjs +46 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.mjs +74 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.mjs +2 -0
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.mjs +27 -0
- package/esm2022/libs/api/metadata-converter/src/lib/find-converter.mjs +11 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +8 -23
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +27 -37
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +35 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +78 -39
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +34 -26
- package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/lib/feature-catalog.module.mjs +7 -4
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +6 -6
- package/esm2022/libs/feature/dataviz/src/lib/feature-dataviz.module.mjs +10 -7
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +40 -50
- package/esm2022/libs/feature/editor/src/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +5 -5
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +95 -0
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +72 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +109 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +9 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +38 -60
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +10 -7
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +191 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +5 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +10 -6
- package/esm2022/libs/feature/editor/src/lib/components/wizard/wizard.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +17 -3
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -5
- package/esm2022/libs/feature/map/src/index.mjs +2 -9
- package/esm2022/libs/feature/map/src/lib/+state/map.actions.mjs +4 -7
- package/esm2022/libs/feature/map/src/lib/+state/map.facade.mjs +9 -15
- package/esm2022/libs/feature/map/src/lib/+state/map.reducer.mjs +13 -44
- package/esm2022/libs/feature/map/src/lib/+state/map.selectors.mjs +3 -2
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +15 -15
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +16 -10
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +10 -8
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +11 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +10 -6
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +1 -2
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +4 -44
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +43 -29
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +17 -8
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +27 -0
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +4 -168
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +21 -17
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +14 -8
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +40 -52
- package/esm2022/libs/feature/router/src/lib/default/state/router.facade.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +11 -6
- package/esm2022/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.mjs +7 -7
- package/esm2022/libs/ui/catalog/src/lib/ui-catalog.module.mjs +1 -6
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/badge/badge.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/search-input/search-input.component.mjs +6 -4
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +5 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +2 -7
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +20 -4
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +3 -3
- package/esm2022/libs/ui/map/src/index.mjs +4 -3
- package/esm2022/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.mjs +8 -6
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +137 -0
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-settings.token.mjs +13 -0
- package/esm2022/libs/ui/map/src/lib/map-utils.mjs +37 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +3 -3
- package/esm2022/libs/util/app-config/src/index.mjs +2 -1
- package/esm2022/libs/util/app-config/src/lib/map-layers.mjs +27 -0
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/no-duplicate-file-name.mjs +19 -0
- package/esm2022/translations/de.json +19 -0
- package/esm2022/translations/en.json +51 -32
- package/esm2022/translations/es.json +19 -0
- package/esm2022/translations/fr.json +82 -63
- package/esm2022/translations/it.json +19 -0
- package/esm2022/translations/nl.json +19 -0
- package/esm2022/translations/pt.json +19 -0
- package/fesm2022/geonetwork-ui.mjs +6871 -6029
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/index.d.ts +3 -0
- package/libs/api/metadata-converter/src/index.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/license.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/common/license.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts +7 -0
- package/libs/api/metadata-converter/src/lib/common/url.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts +13 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/index.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts +16 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts +20 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts +9 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts +8 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts +2 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts +6 -0
- package/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/find-converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +0 -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/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +4 -6
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts +58 -0
- package/libs/api/metadata-converter/src/lib/xml-utils.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +12 -7
- 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 -15
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +2 -3
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +7 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts +2 -1
- package/libs/feature/catalog/src/lib/feature-catalog.module.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts +10 -9
- package/libs/feature/dataviz/src/lib/feature-dataviz.module.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +13 -20
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-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/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +34 -0
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +16 -0
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts +38 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts +6 -13
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +44 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +2 -0
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +2 -2
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -8
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.actions.d.ts +13 -39
- package/libs/feature/map/src/lib/+state/map.actions.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.facade.d.ts +9 -10
- package/libs/feature/map/src/lib/+state/map.facade.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts +4 -2
- package/libs/feature/map/src/lib/+state/map.reducer.d.ts.map +1 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts +6 -1
- package/libs/feature/map/src/lib/+state/map.selectors.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +3 -5
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +2 -2
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/index.d.ts +0 -1
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/feature-map.module.d.ts +12 -18
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +7 -7
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +4 -3
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts +14 -0
- package/libs/feature/map/src/lib/map-state-container/map-state-container.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +0 -30
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +8 -5
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +13 -11
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +13 -19
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +4 -3
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts +1 -1
- package/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.d.ts.map +1 -1
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts +9 -10
- package/libs/ui/catalog/src/lib/ui-catalog.module.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +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/search-input/search-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/search-input/search-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +1 -0
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +25 -26
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts +6 -3
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +1 -1
- package/libs/ui/map/src/index.d.ts +3 -2
- 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 +3 -4
- package/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +37 -0
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts +18 -0
- package/libs/ui/map/src/lib/components/map-container/map-settings.token.d.ts.map +1 -0
- package/libs/ui/map/src/lib/map-utils.d.ts +7 -0
- package/libs/ui/map/src/lib/map-utils.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +1 -1
- package/libs/util/app-config/src/index.d.ts +1 -0
- package/libs/util/app-config/src/index.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/map-layers.d.ts +4 -0
- package/libs/util/app-config/src/lib/map-layers.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts +2 -0
- package/libs/util/shared/src/lib/utils/no-duplicate-file-name.d.ts.map +1 -0
- package/package.json +5 -3
- package/src/libs/api/metadata-converter/src/index.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/common/license.ts +66 -0
- package/src/libs/api/metadata-converter/src/lib/common/url.ts +15 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +378 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/index.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/namespaces.ts +17 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/read-parts.ts +370 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/graph-utils.ts +95 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/individual-name.ts +20 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/keyword.mapper.ts +16 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/role.mapper.ts +48 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/serialize-to-xml.ts +97 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/status.mapper.ts +19 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/update-frequency.mapper.ts +67 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/utils/uri.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/write-parts.ts +68 -0
- package/src/libs/api/metadata-converter/src/lib/find-converter.ts +13 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/eu.dcat-ap.records.ts +272 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/opendataswiss.records.ts +110 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/sextant.records.ts +85 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/vlaanderen.dcat-ap.records.ts +73 -0
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +1 -2
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +7 -35
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +1 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +85 -120
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +37 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +132 -68
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +57 -30
- package/src/libs/common/domain/src/lib/model/record/contact.model.ts +1 -1
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +2 -2
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +10 -0
- package/src/libs/common/fixtures/src/index.ts +3 -0
- package/src/libs/common/fixtures/src/lib/individual.fixtures.ts +61 -0
- package/src/libs/common/fixtures/src/lib/map/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/map/map-context.fixtures.ts +53 -0
- package/src/libs/common/fixtures/src/lib/user.fixtures.ts +13 -0
- package/src/libs/feature/catalog/src/lib/feature-catalog.module.ts +5 -1
- package/src/libs/feature/dataviz/src/lib/feature-dataviz.module.ts +6 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +5 -2
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +38 -78
- package/src/libs/feature/editor/src/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +11 -4
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +47 -0
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +132 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +31 -0
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +82 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +40 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +170 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +6 -8
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +1 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +41 -83
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +20 -11
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +9 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +71 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +241 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +4 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +15 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +7 -3
- package/src/libs/feature/editor/src/lib/components/wizard/wizard.component.html +2 -6
- package/src/libs/feature/editor/src/lib/fields.config.ts +18 -2
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -3
- package/src/libs/feature/map/src/index.ts +1 -8
- package/src/libs/feature/map/src/lib/+state/map.actions.ts +10 -25
- package/src/libs/feature/map/src/lib/+state/map.facade.ts +11 -15
- package/src/libs/feature/map/src/lib/+state/map.reducer.ts +16 -53
- package/src/libs/feature/map/src/lib/+state/map.selectors.ts +7 -2
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +12 -15
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +17 -11
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +11 -12
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +12 -10
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +11 -9
- package/src/libs/feature/map/src/lib/constant/index.ts +0 -1
- package/src/libs/feature/map/src/lib/feature-map.module.ts +0 -26
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +38 -20
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +2 -2
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +15 -5
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.css +0 -0
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.html +4 -0
- package/src/libs/feature/map/src/lib/map-state-container/map-state-container.component.ts +29 -0
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +1 -229
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +27 -18
- package/src/libs/feature/record/src/lib/feature-record.module.ts +11 -3
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +4 -4
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +44 -71
- package/src/libs/feature/router/src/lib/default/state/router.facade.ts +1 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +4 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +4 -2
- package/src/libs/ui/catalog/src/lib/organisations-filter/organisations-filter.component.ts +8 -1
- package/src/libs/ui/catalog/src/lib/ui-catalog.module.ts +0 -3
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/badge/badge.component.html +1 -2
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +8 -8
- package/src/libs/ui/inputs/src/lib/search-input/search-input.component.ts +5 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +3 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +0 -3
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +5 -1
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +25 -2
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +2 -2
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +1 -1
- package/src/libs/ui/map/src/index.ts +3 -2
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.html +1 -1
- package/src/libs/ui/map/src/lib/components/feature-detail/feature-detail.component.ts +8 -5
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.css +0 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +203 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-settings.token.ts +23 -0
- package/src/libs/ui/map/src/lib/map-utils.ts +54 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +18 -14
- package/src/libs/util/app-config/src/index.ts +1 -0
- package/src/libs/util/app-config/src/lib/map-layers.ts +31 -0
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/no-duplicate-file-name.ts +23 -0
- package/tailwind.base.css +3 -2
- package/translations/de.json +19 -0
- package/translations/en.json +51 -32
- package/translations/es.json +19 -0
- package/translations/fr.json +82 -63
- package/translations/it.json +19 -0
- package/translations/nl.json +19 -0
- package/translations/pt.json +19 -0
- package/translations/sk.json +19 -0
- package/esm2022/libs/feature/map/src/lib/+state/map.effects.mjs +0 -15
- package/esm2022/libs/feature/map/src/lib/+state/map.models.mjs +0 -2
- package/esm2022/libs/feature/map/src/lib/constant/map-options.mjs +0 -8
- package/esm2022/libs/feature/map/src/lib/constant/style.constant.mjs +0 -17
- package/esm2022/libs/feature/map/src/lib/feature-info/feature-info.service.mjs +0 -38
- package/esm2022/libs/feature/map/src/lib/manager/map-instance.directive.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/manager/map-manager.service.mjs +0 -19
- package/esm2022/libs/feature/map/src/lib/map-container/map-container.component.mjs +0 -27
- package/esm2022/libs/feature/map/src/lib/map-context/component/map-context.component.mjs +0 -46
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +0 -10
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +0 -289
- package/esm2022/libs/ui/map/src/lib/components/map/map.component.mjs +0 -40
- package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +0 -33
- package/libs/feature/map/src/lib/+state/map.effects.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.effects.d.ts.map +0 -1
- package/libs/feature/map/src/lib/+state/map.models.d.ts +0 -9
- package/libs/feature/map/src/lib/+state/map.models.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/map-options.d.ts +0 -9
- package/libs/feature/map/src/lib/constant/map-options.d.ts.map +0 -1
- package/libs/feature/map/src/lib/constant/style.constant.d.ts +0 -4
- package/libs/feature/map/src/lib/constant/style.constant.d.ts.map +0 -1
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts +0 -16
- package/libs/feature/map/src/lib/feature-info/feature-info.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts +0 -9
- package/libs/feature/map/src/lib/manager/map-instance.directive.d.ts.map +0 -1
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts +0 -11
- package/libs/feature/map/src/lib/manager/map-manager.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts +0 -12
- package/libs/feature/map/src/lib/map-container/map-container.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/component/map-context.component.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +0 -77
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +0 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts +0 -26
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +0 -1
- package/libs/ui/map/src/lib/components/map/map.component.d.ts +0 -19
- package/libs/ui/map/src/lib/components/map/map.component.d.ts.map +0 -1
- package/libs/ui/map/src/lib/ui-map.module.d.ts +0 -13
- package/libs/ui/map/src/lib/ui-map.module.d.ts.map +0 -1
- package/src/libs/feature/map/src/lib/+state/map.effects.ts +0 -7
- package/src/libs/feature/map/src/lib/+state/map.models.ts +0 -9
- package/src/libs/feature/map/src/lib/constant/map-options.ts +0 -17
- package/src/libs/feature/map/src/lib/feature-info/feature-info.service.ts +0 -42
- package/src/libs/feature/map/src/lib/manager/map-instance.directive.ts +0 -10
- package/src/libs/feature/map/src/lib/manager/map-manager.service.ts +0 -13
- package/src/libs/feature/map/src/lib/map-container/map-container.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-container/map-container.component.ts +0 -26
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.html +0 -1
- package/src/libs/feature/map/src/lib/map-context/component/map-context.component.ts +0 -57
- package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +0 -55
- package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +0 -95
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +0 -318
- package/src/libs/ui/map/src/lib/components/map/map.component.ts +0 -57
- package/src/libs/ui/map/src/lib/ui-map.module.ts +0 -19
- /package/src/libs/feature/{map/src/lib/map-container/map-container.component.css → editor/src/lib/components/import-record/import-record.component.css} +0 -0
- /package/src/libs/feature/{map/src/lib/map-context/component/map-context.component.css → editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.css} +0 -0
- /package/src/libs/{ui/map/src/lib/components/map/map.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.css} +0 -0
- /package/src/libs/ui/map/src/lib/components/{map/map.component.html → map-container/map-container.component.html} +0 -0
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
EventEmitter,
|
|
7
|
+
Input,
|
|
8
|
+
OnChanges,
|
|
9
|
+
OnDestroy,
|
|
10
|
+
Output,
|
|
11
|
+
SimpleChanges,
|
|
12
|
+
} from '@angular/core'
|
|
13
|
+
import {
|
|
14
|
+
AutocompleteComponent,
|
|
15
|
+
DropdownSelectorComponent,
|
|
16
|
+
UiInputsModule,
|
|
17
|
+
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
18
|
+
import { UiWidgetsModule } from '../../../../../../../../../libs/ui/widgets/src'
|
|
19
|
+
import {
|
|
20
|
+
Individual,
|
|
21
|
+
Organization,
|
|
22
|
+
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
23
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
24
|
+
import {
|
|
25
|
+
debounceTime,
|
|
26
|
+
distinctUntilChanged,
|
|
27
|
+
firstValueFrom,
|
|
28
|
+
Observable,
|
|
29
|
+
Subscription,
|
|
30
|
+
switchMap,
|
|
31
|
+
} from 'rxjs'
|
|
32
|
+
import { UserModel } from '../../../../../../../../../libs/common/domain/src/lib/model/user'
|
|
33
|
+
import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
34
|
+
import { OrganizationsServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/organizations.service.interface'
|
|
35
|
+
import { ContactCardComponent } from '../../../contact-card/contact-card.component'
|
|
36
|
+
import { createFuzzyFilter } from '../../../../../../../../../libs/util/shared/src'
|
|
37
|
+
import { map } from 'rxjs/operators'
|
|
38
|
+
import { SortableListComponent } from '../../../../../../../../../libs/ui/layout/src'
|
|
39
|
+
|
|
40
|
+
@Component({
|
|
41
|
+
selector: 'gn-ui-form-field-contacts',
|
|
42
|
+
templateUrl: './form-field-contacts.component.html',
|
|
43
|
+
styleUrls: ['./form-field-contacts.component.css'],
|
|
44
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
45
|
+
standalone: true,
|
|
46
|
+
imports: [
|
|
47
|
+
DropdownSelectorComponent,
|
|
48
|
+
UiInputsModule,
|
|
49
|
+
CommonModule,
|
|
50
|
+
UiWidgetsModule,
|
|
51
|
+
AutocompleteComponent,
|
|
52
|
+
TranslateModule,
|
|
53
|
+
ContactCardComponent,
|
|
54
|
+
SortableListComponent,
|
|
55
|
+
],
|
|
56
|
+
})
|
|
57
|
+
export class FormFieldContactsComponent implements OnDestroy, OnChanges {
|
|
58
|
+
@Input() value: Individual[]
|
|
59
|
+
@Output() valueChange: EventEmitter<Individual[]> = new EventEmitter()
|
|
60
|
+
|
|
61
|
+
contacts: Individual[] = []
|
|
62
|
+
|
|
63
|
+
subscription: Subscription = new Subscription()
|
|
64
|
+
|
|
65
|
+
allUsers$: Observable<UserModel[]>
|
|
66
|
+
|
|
67
|
+
allOrganizations: Map<string, Organization> = new Map()
|
|
68
|
+
|
|
69
|
+
constructor(
|
|
70
|
+
private platformServiceInterface: PlatformServiceInterface,
|
|
71
|
+
private organizationsServiceInterface: OrganizationsServiceInterface,
|
|
72
|
+
private changeDetectorRef: ChangeDetectorRef
|
|
73
|
+
) {
|
|
74
|
+
this.allUsers$ = this.platformServiceInterface.getUsers()
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async ngOnChanges(changes: SimpleChanges): Promise<void> {
|
|
78
|
+
const contactsChanges = changes['value']
|
|
79
|
+
|
|
80
|
+
if (contactsChanges.firstChange) {
|
|
81
|
+
this.allOrganizations = new Map<string, Organization>(
|
|
82
|
+
(
|
|
83
|
+
await firstValueFrom(
|
|
84
|
+
this.organizationsServiceInterface.organisations$
|
|
85
|
+
)
|
|
86
|
+
).map((organization) => [organization.name, organization])
|
|
87
|
+
)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (contactsChanges.currentValue !== contactsChanges.previousValue) {
|
|
91
|
+
this.updateContacts()
|
|
92
|
+
|
|
93
|
+
this.changeDetectorRef.markForCheck()
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
updateContacts() {
|
|
98
|
+
this.contacts = this.value.reduce((acc, contact) => {
|
|
99
|
+
const completeOrganization = this.allOrganizations.get(
|
|
100
|
+
contact.organization.name
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
const updatedContact = {
|
|
104
|
+
...contact,
|
|
105
|
+
organization:
|
|
106
|
+
completeOrganization ??
|
|
107
|
+
({ name: contact.organization.name } as Organization),
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
acc.push(updatedContact)
|
|
111
|
+
|
|
112
|
+
return acc
|
|
113
|
+
}, [] as Individual[])
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
handleContactsChanged(items: unknown[]) {
|
|
117
|
+
const contacts = items as Individual[]
|
|
118
|
+
|
|
119
|
+
this.contacts = contacts
|
|
120
|
+
|
|
121
|
+
this.valueChange.emit(contacts)
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* gn-ui-autocomplete
|
|
126
|
+
*/
|
|
127
|
+
displayWithFn: (user: UserModel) => string = (user) =>
|
|
128
|
+
`${user.name} ${user.surname} ${
|
|
129
|
+
user.organisation ? `(${user.organisation})` : ''
|
|
130
|
+
}`
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* gn-ui-autocomplete
|
|
134
|
+
*/
|
|
135
|
+
autoCompleteAction = (query: string) => {
|
|
136
|
+
const fuzzyFilter = createFuzzyFilter(query)
|
|
137
|
+
return this.allUsers$.pipe(
|
|
138
|
+
switchMap((users) => [
|
|
139
|
+
users.filter((user) => fuzzyFilter(user.username)),
|
|
140
|
+
]),
|
|
141
|
+
map((results) => results.slice(0, 10)),
|
|
142
|
+
debounceTime(300),
|
|
143
|
+
distinctUntilChanged()
|
|
144
|
+
)
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* gn-ui-autocomplete
|
|
149
|
+
*/
|
|
150
|
+
addContact(contact: UserModel) {
|
|
151
|
+
const newContact = {
|
|
152
|
+
firstName: contact.name ?? '',
|
|
153
|
+
lastName: contact.surname ?? '',
|
|
154
|
+
organization:
|
|
155
|
+
this.allOrganizations.get(contact.organisation) ??
|
|
156
|
+
({ name: contact.organisation } as Organization),
|
|
157
|
+
email: contact.email ?? '',
|
|
158
|
+
role: 'point_of_contact',
|
|
159
|
+
address: '',
|
|
160
|
+
phone: '',
|
|
161
|
+
position: '',
|
|
162
|
+
} as Individual
|
|
163
|
+
|
|
164
|
+
this.valueChange.emit([...this.value, newContact])
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
ngOnDestroy(): void {
|
|
168
|
+
this.subscription.unsubscribe()
|
|
169
|
+
}
|
|
170
|
+
}
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<ng-container *ngIf="contactsForRessourceByRole.get(role) as contacts">
|
|
45
45
|
<gn-ui-sortable-list
|
|
46
46
|
[items]="contacts"
|
|
47
|
-
(itemsOrderChange)="handleContactsChanged($event)"
|
|
47
|
+
(itemsOrderChange)="handleContactsChanged($event, role)"
|
|
48
48
|
[elementTemplate]="contactTemplate"
|
|
49
49
|
></gn-ui-sortable-list>
|
|
50
50
|
<ng-template #contactTemplate let-contact>
|
|
@@ -109,15 +109,14 @@ export class FormFieldContactsForResourceComponent
|
|
|
109
109
|
|
|
110
110
|
updateContactsForRessource() {
|
|
111
111
|
this.contactsForRessourceByRole = this.value.reduce((acc, contact) => {
|
|
112
|
-
const completeOrganization =
|
|
113
|
-
contact.organization.name
|
|
114
|
-
|
|
112
|
+
const completeOrganization = contact.organization
|
|
113
|
+
? this.allOrganizations.get(contact.organization.name)
|
|
114
|
+
: null
|
|
115
|
+
const organization = completeOrganization ?? contact.organization
|
|
115
116
|
|
|
116
117
|
const updatedContact = {
|
|
117
118
|
...contact,
|
|
118
|
-
organization
|
|
119
|
-
completeOrganization ??
|
|
120
|
-
({ name: contact.organization.name } as Organization),
|
|
119
|
+
...(organization && { organization }),
|
|
121
120
|
}
|
|
122
121
|
|
|
123
122
|
if (!acc.has(contact.role)) {
|
|
@@ -147,9 +146,8 @@ export class FormFieldContactsForResourceComponent
|
|
|
147
146
|
this.valueChange.emit(newContactsforRessource)
|
|
148
147
|
}
|
|
149
148
|
|
|
150
|
-
handleContactsChanged(items: unknown[]) {
|
|
149
|
+
handleContactsChanged(items: unknown[], role: Role) {
|
|
151
150
|
const contacts = items as Individual[]
|
|
152
|
-
const role = contacts[0].role
|
|
153
151
|
|
|
154
152
|
this.contactsForRessourceByRole.set(role, contacts)
|
|
155
153
|
|
|
@@ -1,95 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
Input,
|
|
5
|
-
OnChanges,
|
|
6
|
-
} from '@angular/core'
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
7
2
|
import { CommonModule } from '@angular/common'
|
|
8
|
-
import { catchError, from, map, Observable, of, switchMap } from 'rxjs'
|
|
9
|
-
import {
|
|
10
|
-
DEFAULT_BASELAYER_CONTEXT,
|
|
11
|
-
FeatureMapModule,
|
|
12
|
-
MapContextLayerTypeEnum,
|
|
13
|
-
MapContextModel,
|
|
14
|
-
MapFacade,
|
|
15
|
-
MapStyleService,
|
|
16
|
-
MapUtilsService,
|
|
17
|
-
} from '../../../../../../../../../libs/feature/map/src'
|
|
18
|
-
import { Fill, Stroke, Style } from 'ol/style'
|
|
19
|
-
import { getOptionalMapConfig, MapConfig } from '../../../../../../../../../libs/util/app-config/src'
|
|
20
3
|
import { Geometry } from 'geojson'
|
|
21
|
-
import { GeoJSONFeatureCollection } from 'ol/format/GeoJSON'
|
|
4
|
+
import GeoJSON, { GeoJSONFeatureCollection } from 'ol/format/GeoJSON'
|
|
22
5
|
import { DatasetSpatialExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
23
6
|
import { Polygon } from 'ol/geom'
|
|
24
|
-
import
|
|
7
|
+
import {
|
|
8
|
+
createViewFromLayer,
|
|
9
|
+
MapContext,
|
|
10
|
+
MapContextLayer,
|
|
11
|
+
} from '@geospatial-sdk/core'
|
|
12
|
+
import { MapContainerComponent } from '../../../../../../../../../libs/ui/map/src'
|
|
13
|
+
import { BehaviorSubject, Observable } from 'rxjs'
|
|
14
|
+
import { switchMap } from 'rxjs/operators'
|
|
25
15
|
|
|
26
16
|
@Component({
|
|
27
17
|
selector: 'gn-ui-form-field-map-container',
|
|
28
18
|
standalone: true,
|
|
29
|
-
imports: [CommonModule,
|
|
19
|
+
imports: [CommonModule, MapContainerComponent],
|
|
30
20
|
templateUrl: './form-field-map-container.component.html',
|
|
31
21
|
styleUrls: ['./form-field-map-container.component.css'],
|
|
32
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
23
|
})
|
|
34
|
-
export class FormFieldMapContainerComponent
|
|
35
|
-
@Input() spatialExtents: DatasetSpatialExtent[]
|
|
36
|
-
|
|
37
|
-
error = ''
|
|
38
|
-
mapContext$: Observable<MapContextModel> = this.mapFacade.layers$.pipe(
|
|
39
|
-
switchMap((layers) =>
|
|
40
|
-
from(this.mapUtils.getLayerExtent(layers[0])).pipe(
|
|
41
|
-
catchError(() => {
|
|
42
|
-
this.error = 'The layer has no extent'
|
|
43
|
-
return of(undefined)
|
|
44
|
-
}),
|
|
45
|
-
map((extent) => {
|
|
46
|
-
return {
|
|
47
|
-
layers: [DEFAULT_BASELAYER_CONTEXT, ...layers],
|
|
48
|
-
view: {
|
|
49
|
-
extent: extent,
|
|
50
|
-
},
|
|
51
|
-
} as MapContextModel
|
|
52
|
-
})
|
|
53
|
-
)
|
|
54
|
-
)
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
mapConfig: MapConfig = getOptionalMapConfig()
|
|
58
|
-
|
|
59
|
-
constructor(
|
|
60
|
-
private mapFacade: MapFacade,
|
|
61
|
-
private mapUtils: MapUtilsService,
|
|
62
|
-
private styleService: MapStyleService
|
|
63
|
-
) {
|
|
64
|
-
const fill = new Fill({
|
|
65
|
-
color: 'transparent',
|
|
66
|
-
})
|
|
67
|
-
const stroke = new Stroke({
|
|
68
|
-
color: 'black',
|
|
69
|
-
width: 2,
|
|
70
|
-
})
|
|
71
|
-
const styles = [
|
|
72
|
-
new Style({
|
|
73
|
-
fill: fill,
|
|
74
|
-
stroke: stroke,
|
|
75
|
-
}),
|
|
76
|
-
]
|
|
77
|
-
this.styleService.styles.default = this.styleService.createStyleFunction({
|
|
78
|
-
...this.styleService.createGeometryStyles({ color: 'black' }),
|
|
79
|
-
polygon: styles,
|
|
80
|
-
})
|
|
24
|
+
export class FormFieldMapContainerComponent {
|
|
25
|
+
@Input() set spatialExtents(value: DatasetSpatialExtent[]) {
|
|
26
|
+
this.spatialExtents$.next(value)
|
|
81
27
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
28
|
+
spatialExtents$ = new BehaviorSubject<DatasetSpatialExtent[]>([])
|
|
29
|
+
mapContext$: Observable<MapContext> = this.spatialExtents$.pipe(
|
|
30
|
+
switchMap(async (extents) => {
|
|
31
|
+
if (extents.length === 0) {
|
|
32
|
+
return null // null extent means default view
|
|
33
|
+
}
|
|
87
34
|
const featureCollection: GeoJSONFeatureCollection = {
|
|
88
35
|
type: 'FeatureCollection',
|
|
89
36
|
features: [],
|
|
90
37
|
}
|
|
91
|
-
|
|
92
|
-
this.spatialExtents.forEach((extent) => {
|
|
38
|
+
extents.forEach((extent) => {
|
|
93
39
|
if (extent.geometry) {
|
|
94
40
|
featureCollection.features.push({
|
|
95
41
|
type: 'Feature',
|
|
@@ -104,13 +50,26 @@ export class FormFieldMapContainerComponent implements OnChanges {
|
|
|
104
50
|
})
|
|
105
51
|
}
|
|
106
52
|
})
|
|
107
|
-
|
|
108
|
-
|
|
53
|
+
|
|
54
|
+
const layer: MapContextLayer = {
|
|
55
|
+
type: 'geojson',
|
|
109
56
|
data: featureCollection,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
57
|
+
label: 'Spatial extents',
|
|
58
|
+
style: {
|
|
59
|
+
'stroke-color': 'black',
|
|
60
|
+
'stroke-width': 2,
|
|
61
|
+
},
|
|
62
|
+
}
|
|
63
|
+
const view = await createViewFromLayer(layer)
|
|
64
|
+
return {
|
|
65
|
+
view,
|
|
66
|
+
layers: [layer],
|
|
67
|
+
}
|
|
68
|
+
})
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
error = ''
|
|
72
|
+
|
|
114
73
|
bboxCoordsToGeometry(bbox: [number, number, number, number]): Geometry {
|
|
115
74
|
const geometry = new Polygon([
|
|
116
75
|
[
|
|
@@ -122,7 +81,6 @@ export class FormFieldMapContainerComponent implements OnChanges {
|
|
|
122
81
|
],
|
|
123
82
|
])
|
|
124
83
|
|
|
125
|
-
|
|
126
|
-
return geoJSONGeom
|
|
84
|
+
return new GeoJSON().writeGeometryObject(geometry)
|
|
127
85
|
}
|
|
128
86
|
}
|
|
@@ -20,15 +20,24 @@
|
|
|
20
20
|
</ng-template>
|
|
21
21
|
|
|
22
22
|
<ng-template #dialogTemplate let-onlineResource>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
23
|
+
<div class="flex flex-col gap-[16px]">
|
|
24
|
+
<div>
|
|
25
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
26
|
+
editor.record.form.field.onlineResource.edit.title
|
|
27
|
+
</h3>
|
|
28
|
+
<gn-ui-text-input [(value)]="onlineResource.name"></gn-ui-text-input>
|
|
29
|
+
</div>
|
|
30
|
+
<div>
|
|
31
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
32
|
+
editor.record.form.field.onlineResource.edit.description
|
|
33
|
+
</h3>
|
|
34
|
+
<gn-ui-text-area [(value)]="onlineResource.description"></gn-ui-text-area>
|
|
35
|
+
</div>
|
|
36
|
+
<span class="w-full border-b border-gray-300"></span>
|
|
37
|
+
<gn-ui-url-input
|
|
38
|
+
class="w-full"
|
|
39
|
+
[disabled]="true"
|
|
40
|
+
[value]="onlineResource.url"
|
|
41
|
+
></gn-ui-url-input>
|
|
42
|
+
</div>
|
|
34
43
|
</ng-template>
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
FileInputComponent,
|
|
17
17
|
TextAreaComponent,
|
|
18
18
|
TextInputComponent,
|
|
19
|
+
UrlInputComponent,
|
|
19
20
|
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
20
21
|
import { CommonModule } from '@angular/common'
|
|
21
22
|
import { OnlineResourceCardComponent } from '../../../online-resource-card/online-resource-card.component'
|
|
@@ -43,6 +44,7 @@ import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config'
|
|
|
43
44
|
OnlineResourceCardComponent,
|
|
44
45
|
TextInputComponent,
|
|
45
46
|
TextAreaComponent,
|
|
47
|
+
UrlInputComponent,
|
|
46
48
|
TranslateModule,
|
|
47
49
|
],
|
|
48
50
|
})
|
|
@@ -61,7 +63,7 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
61
63
|
|
|
62
64
|
private allResources: OnlineResource[] = []
|
|
63
65
|
linkResources: OnlineLinkResource[] = []
|
|
64
|
-
uploadProgress = undefined
|
|
66
|
+
uploadProgress?: number = undefined
|
|
65
67
|
uploadSubscription: Subscription = null
|
|
66
68
|
|
|
67
69
|
protected MAX_UPLOAD_SIZE_MB = MAX_UPLOAD_SIZE_MB
|
|
@@ -94,7 +96,7 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
94
96
|
this.valueChange.emit([...this.allResources, newResource])
|
|
95
97
|
}
|
|
96
98
|
},
|
|
97
|
-
error: (error: Error) => this.handleError(error
|
|
99
|
+
error: (error: Error) => this.handleError(error),
|
|
98
100
|
})
|
|
99
101
|
}
|
|
100
102
|
|
|
@@ -115,7 +117,7 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
115
117
|
}
|
|
116
118
|
this.valueChange.emit([...this.allResources, newLink])
|
|
117
119
|
} catch (e) {
|
|
118
|
-
this.handleError(
|
|
120
|
+
this.handleError(e as Error)
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
|
|
@@ -132,8 +134,9 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
132
134
|
this.openEditDialog(resource, index)
|
|
133
135
|
}
|
|
134
136
|
|
|
135
|
-
private handleError(error:
|
|
137
|
+
private handleError(error: Error) {
|
|
136
138
|
this.uploadProgress = undefined
|
|
139
|
+
this.cd.detectChanges()
|
|
137
140
|
this.notificationsService.showNotification({
|
|
138
141
|
type: 'error',
|
|
139
142
|
title: this.translateService.instant(
|
|
@@ -141,7 +144,7 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
141
144
|
),
|
|
142
145
|
text: `${this.translateService.instant(
|
|
143
146
|
'editor.record.onlineResourceError.body'
|
|
144
|
-
)} ${error}`,
|
|
147
|
+
)} ${error.message}`,
|
|
145
148
|
closeMessage: this.translateService.instant(
|
|
146
149
|
'editor.record.onlineResourceError.closeMessage'
|
|
147
150
|
),
|
|
@@ -154,6 +157,7 @@ export class FormFieldOnlineLinkResourcesComponent {
|
|
|
154
157
|
}
|
|
155
158
|
this.dialog
|
|
156
159
|
.open(ModalDialogComponent, {
|
|
160
|
+
width: '800px',
|
|
157
161
|
data: {
|
|
158
162
|
title: this.translateService.instant(
|
|
159
163
|
'editor.record.form.field.onlineResource.dialogTitle'
|
|
File without changes
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<gn-ui-switch-toggle
|
|
2
|
+
[options]="typeOptions"
|
|
3
|
+
(selectedValue)="onSelectedTypeChange($event.value)"
|
|
4
|
+
extraClasses="grow"
|
|
5
|
+
data-cy="online-resources-type"
|
|
6
|
+
></gn-ui-switch-toggle>
|
|
7
|
+
<div class="h-[8px]"></div>
|
|
8
|
+
<gn-ui-file-input
|
|
9
|
+
*ngIf="selectedType === 'download'"
|
|
10
|
+
[maxSizeMB]="MAX_UPLOAD_SIZE_MB"
|
|
11
|
+
(fileChange)="handleFileChange($event)"
|
|
12
|
+
(uploadCancel)="handleUploadCancel()"
|
|
13
|
+
[uploadProgress]="uploadProgress"
|
|
14
|
+
(urlChange)="handleDownloadUrlChange($event)"
|
|
15
|
+
></gn-ui-file-input>
|
|
16
|
+
<div
|
|
17
|
+
*ngIf="selectedType === 'service'"
|
|
18
|
+
class="w-full border-2 border-dashed rounded-lg p-6 flex flex-col gap-[16px]"
|
|
19
|
+
>
|
|
20
|
+
<gn-ui-online-service-resource-input
|
|
21
|
+
[service]="newService"
|
|
22
|
+
></gn-ui-online-service-resource-input>
|
|
23
|
+
<span class="w-full border-b border-gray-300"></span>
|
|
24
|
+
<gn-ui-url-input
|
|
25
|
+
class="w-full"
|
|
26
|
+
[urlCanParse]="true"
|
|
27
|
+
(valueChange)="handleServiceUrlChange($event)"
|
|
28
|
+
></gn-ui-url-input>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="h-[8px]"></div>
|
|
31
|
+
<gn-ui-sortable-list
|
|
32
|
+
[items]="notLinkResources"
|
|
33
|
+
(itemsOrderChange)="handleResourcesChange($event)"
|
|
34
|
+
[elementTemplate]="template"
|
|
35
|
+
>
|
|
36
|
+
</gn-ui-sortable-list>
|
|
37
|
+
<ng-template #template let-onlineResource let-index="index">
|
|
38
|
+
<gn-ui-online-resource-card
|
|
39
|
+
[onlineResource]="onlineResource"
|
|
40
|
+
(modifyClick)="handleResourceModify(onlineResource, index)"
|
|
41
|
+
></gn-ui-online-resource-card>
|
|
42
|
+
</ng-template>
|
|
43
|
+
|
|
44
|
+
<ng-template #dialogTemplate let-onlineResource>
|
|
45
|
+
<div class="flex flex-col gap-[16px]">
|
|
46
|
+
<div>
|
|
47
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
48
|
+
editor.record.form.field.onlineResource.edit.title
|
|
49
|
+
</h3>
|
|
50
|
+
<gn-ui-text-input [(value)]="onlineResource.name"></gn-ui-text-input>
|
|
51
|
+
</div>
|
|
52
|
+
<div>
|
|
53
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
54
|
+
editor.record.form.field.onlineResource.edit.description
|
|
55
|
+
</h3>
|
|
56
|
+
<gn-ui-text-area [(value)]="onlineResource.description"></gn-ui-text-area>
|
|
57
|
+
</div>
|
|
58
|
+
<ng-container *ngIf="onlineResource.type === 'service'">
|
|
59
|
+
<span class="w-full border-b border-gray-300"></span>
|
|
60
|
+
<gn-ui-online-service-resource-input
|
|
61
|
+
[service]="onlineResource"
|
|
62
|
+
></gn-ui-online-service-resource-input>
|
|
63
|
+
</ng-container>
|
|
64
|
+
<span class="w-full border-b border-gray-300"></span>
|
|
65
|
+
<gn-ui-url-input
|
|
66
|
+
class="w-full"
|
|
67
|
+
[disabled]="true"
|
|
68
|
+
[value]="onlineResource.url"
|
|
69
|
+
></gn-ui-url-input>
|
|
70
|
+
</div>
|
|
71
|
+
</ng-template>
|