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
|
@@ -5,7 +5,6 @@ import { OrganisationPreviewComponent } from './organisation-preview/organisatio
|
|
|
5
5
|
import { TranslateModule } from '@ngx-translate/core'
|
|
6
6
|
import { MatIconModule } from '@angular/material/icon'
|
|
7
7
|
import { UiElementsModule } from '../../../../../libs/ui/elements/src'
|
|
8
|
-
import { OrganisationsFilterComponent } from './organisations-filter/organisations-filter.component'
|
|
9
8
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
10
9
|
import { LanguageSwitcherComponent } from './language-switcher/language-switcher.component'
|
|
11
10
|
import { OrganisationsResultComponent } from './organisations-result/organisations-result.component'
|
|
@@ -15,7 +14,6 @@ import { RouterLink } from '@angular/router'
|
|
|
15
14
|
declarations: [
|
|
16
15
|
CatalogTitleComponent,
|
|
17
16
|
OrganisationPreviewComponent,
|
|
18
|
-
OrganisationsFilterComponent,
|
|
19
17
|
LanguageSwitcherComponent,
|
|
20
18
|
OrganisationsResultComponent,
|
|
21
19
|
],
|
|
@@ -30,7 +28,6 @@ import { RouterLink } from '@angular/router'
|
|
|
30
28
|
exports: [
|
|
31
29
|
CatalogTitleComponent,
|
|
32
30
|
OrganisationPreviewComponent,
|
|
33
|
-
OrganisationsFilterComponent,
|
|
34
31
|
LanguageSwitcherComponent,
|
|
35
32
|
OrganisationsResultComponent,
|
|
36
33
|
],
|
|
@@ -19,6 +19,7 @@ export * from './lib/star-toggle/star-toggle.component'
|
|
|
19
19
|
export * from './lib/text-area/text-area.component'
|
|
20
20
|
export * from './lib/text-input/text-input.component'
|
|
21
21
|
export * from './lib/ui-inputs.module'
|
|
22
|
+
export * from './lib/url-input/url-input.component'
|
|
22
23
|
export * from './lib/viewport-intersector/viewport-intersector.component'
|
|
23
24
|
export * from './lib/previous-next-buttons/previous-next-buttons.component'
|
|
24
25
|
export * from './lib/switch-toggle/switch-toggle.component'
|
|
@@ -7,9 +7,10 @@
|
|
|
7
7
|
/>
|
|
8
8
|
<gn-ui-button
|
|
9
9
|
type="light"
|
|
10
|
+
class="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)] z-10"
|
|
10
11
|
(buttonClick)="picker.open()"
|
|
11
|
-
extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
|
|
12
12
|
data-cy="date-picker-button"
|
|
13
|
+
extraClass="h-full"
|
|
13
14
|
>
|
|
14
15
|
<mat-icon class="material-symbols-outlined text-primary"
|
|
15
16
|
>calendar_today</mat-icon
|
|
@@ -16,8 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
<gn-ui-button
|
|
18
18
|
type="light"
|
|
19
|
+
class="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)] z-10"
|
|
19
20
|
(buttonClick)="picker.open()"
|
|
20
|
-
extraClass="
|
|
21
|
+
extraClass="h-full"
|
|
21
22
|
data-cy="date-picker-button"
|
|
22
23
|
>
|
|
23
24
|
<mat-icon class="material-symbols-outlined text-primary"
|
|
@@ -12,6 +12,14 @@
|
|
|
12
12
|
(dropFiles)="handleDropFiles($event)"
|
|
13
13
|
(keydown.enter)="fileInput.click()"
|
|
14
14
|
>
|
|
15
|
+
<input
|
|
16
|
+
#fileInput
|
|
17
|
+
type="file"
|
|
18
|
+
class="hidden"
|
|
19
|
+
(change)="handleFileInput($event)"
|
|
20
|
+
[disabled]="isUploadInProgress"
|
|
21
|
+
/>
|
|
22
|
+
|
|
15
23
|
<div
|
|
16
24
|
class="w-14 h-14 rounded-md bg-gray-50 grid"
|
|
17
25
|
*ngIf="!isUploadInProgress"
|
|
@@ -72,14 +80,6 @@
|
|
|
72
80
|
>
|
|
73
81
|
<span class="border-b border-gray-300 grow"></span>
|
|
74
82
|
</p>
|
|
75
|
-
<input
|
|
76
|
-
#fileInput
|
|
77
|
-
type="file"
|
|
78
|
-
class="hidden"
|
|
79
|
-
(change)="handleFileInput($event)"
|
|
80
|
-
[disabled]="isUploadInProgress"
|
|
81
|
-
/>
|
|
82
|
-
|
|
83
83
|
<gn-ui-url-input
|
|
84
84
|
class="w-full"
|
|
85
85
|
[disabled]="isUploadInProgress"
|
|
@@ -4,12 +4,16 @@ import {
|
|
|
4
4
|
Input,
|
|
5
5
|
Output,
|
|
6
6
|
} from '@angular/core'
|
|
7
|
-
import {
|
|
7
|
+
import { distinctUntilChanged, Subject } from 'rxjs'
|
|
8
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
9
|
+
import { CommonModule } from '@angular/common'
|
|
8
10
|
|
|
9
11
|
@Component({
|
|
10
12
|
selector: 'gn-ui-search-input',
|
|
11
13
|
templateUrl: './search-input.component.html',
|
|
12
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [CommonModule, MatIconModule],
|
|
13
17
|
})
|
|
14
18
|
export class SearchInputComponent {
|
|
15
19
|
@Input() value = ''
|
|
@@ -7,9 +7,11 @@ import {
|
|
|
7
7
|
Output,
|
|
8
8
|
} from '@angular/core'
|
|
9
9
|
import { MatButtonToggleModule } from '@angular/material/button-toggle'
|
|
10
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
10
11
|
|
|
11
12
|
export type SwitchToggleOption = {
|
|
12
13
|
label: string
|
|
14
|
+
value?: unknown
|
|
13
15
|
checked: boolean
|
|
14
16
|
}
|
|
15
17
|
|
|
@@ -19,7 +21,7 @@ export type SwitchToggleOption = {
|
|
|
19
21
|
styleUrls: ['./switch-toggle.component.css'],
|
|
20
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
21
23
|
standalone: true,
|
|
22
|
-
imports: [MatButtonToggleModule, CommonModule],
|
|
24
|
+
imports: [MatButtonToggleModule, CommonModule, TranslateModule],
|
|
23
25
|
})
|
|
24
26
|
export class SwitchToggleComponent {
|
|
25
27
|
@Input() options: SwitchToggleOption[]
|
|
@@ -24,7 +24,6 @@ import { CopyTextButtonComponent } from './copy-text-button/copy-text-button.com
|
|
|
24
24
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
25
25
|
import { CommonModule } from '@angular/common'
|
|
26
26
|
import { CheckboxComponent } from './checkbox/checkbox.component'
|
|
27
|
-
import { SearchInputComponent } from './search-input/search-input.component'
|
|
28
27
|
import { DateRangePickerComponent } from './date-range-picker/date-range-picker.component'
|
|
29
28
|
import { MatFormFieldModule } from '@angular/material/form-field'
|
|
30
29
|
import { MatInputModule } from '@angular/material/input'
|
|
@@ -43,7 +42,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
43
42
|
ViewportIntersectorComponent,
|
|
44
43
|
CopyTextButtonComponent,
|
|
45
44
|
CheckboxComponent,
|
|
46
|
-
SearchInputComponent,
|
|
47
45
|
],
|
|
48
46
|
imports: [
|
|
49
47
|
CommonModule,
|
|
@@ -85,7 +83,6 @@ import { ImageInputComponent } from './image-input/image-input.component'
|
|
|
85
83
|
CheckToggleComponent,
|
|
86
84
|
CopyTextButtonComponent,
|
|
87
85
|
CheckboxComponent,
|
|
88
|
-
SearchInputComponent,
|
|
89
86
|
DateRangePickerComponent,
|
|
90
87
|
EditableLabelDirective,
|
|
91
88
|
ImageInputComponent,
|
|
@@ -27,7 +27,11 @@
|
|
|
27
27
|
<gn-ui-button
|
|
28
28
|
extraClass="absolute inset-y-[var(--side-padding)] right-[var(--side-padding)]"
|
|
29
29
|
type="primary"
|
|
30
|
-
[disabled]="
|
|
30
|
+
[disabled]="
|
|
31
|
+
disabled ||
|
|
32
|
+
input.value === '' ||
|
|
33
|
+
(urlCanParse && !URLcanParse(input.value))
|
|
34
|
+
"
|
|
31
35
|
(buttonClick)="handleChange(input)"
|
|
32
36
|
>
|
|
33
37
|
<mat-icon class="material-symbols-outlined text-[20px] leading-[24px]">
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectorRef,
|
|
3
|
+
Component,
|
|
4
|
+
Input,
|
|
5
|
+
OnChanges,
|
|
6
|
+
Output,
|
|
7
|
+
SimpleChanges,
|
|
8
|
+
} from '@angular/core'
|
|
2
9
|
import { CommonModule } from '@angular/common'
|
|
3
10
|
import { ButtonComponent } from '../button/button.component'
|
|
4
11
|
import { MatIconModule } from '@angular/material/icon'
|
|
@@ -12,16 +19,23 @@ import { Subject } from 'rxjs'
|
|
|
12
19
|
standalone: true,
|
|
13
20
|
imports: [CommonModule, ButtonComponent, MatIconModule],
|
|
14
21
|
})
|
|
15
|
-
export class UrlInputComponent {
|
|
22
|
+
export class UrlInputComponent implements OnChanges {
|
|
16
23
|
@Input() value = ''
|
|
17
24
|
@Input() extraClass = ''
|
|
18
25
|
@Input() placeholder = 'https://'
|
|
19
26
|
@Input() disabled: boolean
|
|
27
|
+
@Input() urlCanParse?: boolean
|
|
20
28
|
rawChange = new Subject<string>()
|
|
21
29
|
@Output() valueChange = this.rawChange.pipe(filter((v) => !!v))
|
|
22
30
|
|
|
23
31
|
constructor(private cd: ChangeDetectorRef) {}
|
|
24
32
|
|
|
33
|
+
ngOnChanges(changes: SimpleChanges): void {
|
|
34
|
+
if (changes.value) {
|
|
35
|
+
console.log('changes.value', changes.value)
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
25
39
|
handleInput() {
|
|
26
40
|
this.cd.markForCheck()
|
|
27
41
|
}
|
|
@@ -30,4 +44,13 @@ export class UrlInputComponent {
|
|
|
30
44
|
const value = element.value
|
|
31
45
|
this.rawChange.next(value)
|
|
32
46
|
}
|
|
47
|
+
|
|
48
|
+
URLcanParse(url: string): boolean {
|
|
49
|
+
try {
|
|
50
|
+
new URL(url)
|
|
51
|
+
return true
|
|
52
|
+
} catch (e) {
|
|
53
|
+
return false
|
|
54
|
+
}
|
|
55
|
+
}
|
|
33
56
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div class="grid w-full" [ngStyle]="gridStyle">
|
|
2
|
-
<div class="contents">
|
|
2
|
+
<div class="contents w-full">
|
|
3
3
|
<ng-container *ngFor="let column of columns">
|
|
4
4
|
<button
|
|
5
5
|
*ngIf="column.sortable"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
</div>
|
|
45
45
|
<ng-container *ngFor="let column of columns">
|
|
46
46
|
<div
|
|
47
|
-
class="table-row-cell px-
|
|
47
|
+
class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate group-hover:text-main group-hover:bg-gray-50 border-b border-gray-200"
|
|
48
48
|
>
|
|
49
49
|
<ng-container
|
|
50
50
|
*ngTemplateOutlet="column.cell; context: { $implicit: item }"
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export * from './lib/
|
|
2
|
-
export * from './lib/components/map/map.
|
|
1
|
+
export * from './lib/components/map-container/map-container.component'
|
|
2
|
+
export * from './lib/components/map-container/map-settings.token'
|
|
3
3
|
export * from './lib/components/feature-detail/feature-detail.component'
|
|
4
|
+
export * from './lib/map-utils'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import type { Feature } from 'geojson'
|
|
4
4
|
|
|
5
5
|
const geometryKeys = ['geometry', 'the_geom']
|
|
6
6
|
|
|
@@ -9,12 +9,15 @@ const geometryKeys = ['geometry', 'the_geom']
|
|
|
9
9
|
templateUrl: './feature-detail.component.html',
|
|
10
10
|
styleUrls: ['./feature-detail.component.css'],
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
standalone: true,
|
|
13
|
+
imports: [CommonModule],
|
|
12
14
|
})
|
|
13
15
|
export class FeatureDetailComponent {
|
|
14
|
-
@Input() feature: Feature
|
|
16
|
+
@Input() feature: Feature
|
|
15
17
|
|
|
16
18
|
get properties() {
|
|
17
|
-
|
|
19
|
+
if (!this.feature) return []
|
|
20
|
+
return Object.keys(this.feature.properties).filter(
|
|
18
21
|
(prop) => !geometryKeys.includes(prop)
|
|
19
22
|
)
|
|
20
23
|
}
|
|
File without changes
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AfterViewInit,
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
ElementRef,
|
|
6
|
+
EventEmitter,
|
|
7
|
+
Inject,
|
|
8
|
+
Input,
|
|
9
|
+
OnChanges,
|
|
10
|
+
Output,
|
|
11
|
+
SimpleChanges,
|
|
12
|
+
ViewChild,
|
|
13
|
+
} from '@angular/core'
|
|
14
|
+
import { fromEvent, merge, Observable, of, timer } from 'rxjs'
|
|
15
|
+
import { delay, map, startWith, switchMap } from 'rxjs/operators'
|
|
16
|
+
import { CommonModule } from '@angular/common'
|
|
17
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
18
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
19
|
+
import {
|
|
20
|
+
computeMapContextDiff,
|
|
21
|
+
Extent,
|
|
22
|
+
FeaturesClickEvent,
|
|
23
|
+
FeaturesClickEventType,
|
|
24
|
+
FeaturesHoverEvent,
|
|
25
|
+
FeaturesHoverEventType,
|
|
26
|
+
MapClickEvent,
|
|
27
|
+
MapClickEventType,
|
|
28
|
+
MapContext,
|
|
29
|
+
MapContextLayer,
|
|
30
|
+
MapContextLayerXyz,
|
|
31
|
+
MapContextView,
|
|
32
|
+
} from '@geospatial-sdk/core'
|
|
33
|
+
import {
|
|
34
|
+
applyContextDiffToMap,
|
|
35
|
+
createMapFromContext,
|
|
36
|
+
listen,
|
|
37
|
+
} from '@geospatial-sdk/openlayers'
|
|
38
|
+
import type OlMap from 'ol/Map'
|
|
39
|
+
import type { Feature } from 'geojson'
|
|
40
|
+
import {
|
|
41
|
+
BASEMAP_LAYERS,
|
|
42
|
+
DO_NOT_USE_DEFAULT_BASEMAP,
|
|
43
|
+
MAP_VIEW_CONSTRAINTS,
|
|
44
|
+
} from './map-settings.token'
|
|
45
|
+
|
|
46
|
+
const DEFAULT_BASEMAP_LAYER: MapContextLayerXyz = {
|
|
47
|
+
type: 'xyz',
|
|
48
|
+
url: `https://{a-c}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}.png`,
|
|
49
|
+
attributions: `<span>© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, © <a href="https://carto.com/">Carto</a></span>`,
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const DEFAULT_VIEW: MapContextView = {
|
|
53
|
+
center: [0, 15],
|
|
54
|
+
zoom: 2,
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@Component({
|
|
58
|
+
selector: 'gn-ui-map-container',
|
|
59
|
+
templateUrl: './map-container.component.html',
|
|
60
|
+
styleUrls: ['./map-container.component.css'],
|
|
61
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
62
|
+
standalone: true,
|
|
63
|
+
imports: [CommonModule, MatIconModule, TranslateModule],
|
|
64
|
+
})
|
|
65
|
+
export class MapContainerComponent implements AfterViewInit, OnChanges {
|
|
66
|
+
@Input() context: MapContext | null
|
|
67
|
+
|
|
68
|
+
// these events only get registered on the map if they are used
|
|
69
|
+
_featuresClick: EventEmitter<Feature[]>
|
|
70
|
+
@Output() get featuresClick() {
|
|
71
|
+
if (!this._featuresClick) {
|
|
72
|
+
this.openlayersMap.then((olMap) => {
|
|
73
|
+
listen(
|
|
74
|
+
olMap,
|
|
75
|
+
FeaturesClickEventType,
|
|
76
|
+
({ features }: FeaturesClickEvent) =>
|
|
77
|
+
this._featuresClick.emit(features)
|
|
78
|
+
)
|
|
79
|
+
})
|
|
80
|
+
this._featuresClick = new EventEmitter<Feature[]>()
|
|
81
|
+
}
|
|
82
|
+
return this._featuresClick
|
|
83
|
+
}
|
|
84
|
+
_featuresHover: EventEmitter<Feature[]>
|
|
85
|
+
@Output() get featuresHover() {
|
|
86
|
+
if (!this._featuresHover) {
|
|
87
|
+
this.openlayersMap.then((olMap) => {
|
|
88
|
+
listen(
|
|
89
|
+
olMap,
|
|
90
|
+
FeaturesHoverEventType,
|
|
91
|
+
({ features }: FeaturesHoverEvent) =>
|
|
92
|
+
this._featuresHover.emit(features)
|
|
93
|
+
)
|
|
94
|
+
})
|
|
95
|
+
this._featuresHover = new EventEmitter<Feature[]>()
|
|
96
|
+
}
|
|
97
|
+
return this._featuresHover
|
|
98
|
+
}
|
|
99
|
+
_mapClick: EventEmitter<[number, number]>
|
|
100
|
+
@Output() get mapClick() {
|
|
101
|
+
if (!this._mapClick) {
|
|
102
|
+
this.openlayersMap.then((olMap) => {
|
|
103
|
+
listen(olMap, MapClickEventType, ({ coordinate }: MapClickEvent) =>
|
|
104
|
+
this._mapClick.emit(coordinate)
|
|
105
|
+
)
|
|
106
|
+
})
|
|
107
|
+
this._mapClick = new EventEmitter<[number, number]>()
|
|
108
|
+
}
|
|
109
|
+
return this._mapClick
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
@ViewChild('map') container: ElementRef
|
|
113
|
+
displayMessage$: Observable<boolean>
|
|
114
|
+
olMap: OlMap
|
|
115
|
+
|
|
116
|
+
constructor(
|
|
117
|
+
@Inject(DO_NOT_USE_DEFAULT_BASEMAP) private doNotUseDefaultBasemap: boolean,
|
|
118
|
+
@Inject(BASEMAP_LAYERS) private basemapLayers: MapContextLayer[],
|
|
119
|
+
@Inject(MAP_VIEW_CONSTRAINTS)
|
|
120
|
+
private mapViewConstraints: {
|
|
121
|
+
maxZoom?: number
|
|
122
|
+
maxExtent?: Extent
|
|
123
|
+
}
|
|
124
|
+
) {}
|
|
125
|
+
|
|
126
|
+
private olMapResolver
|
|
127
|
+
openlayersMap = new Promise<OlMap>((resolve) => {
|
|
128
|
+
this.olMapResolver = resolve
|
|
129
|
+
})
|
|
130
|
+
|
|
131
|
+
async ngAfterViewInit() {
|
|
132
|
+
this.olMap = await createMapFromContext(
|
|
133
|
+
this.processContext(this.context),
|
|
134
|
+
this.container.nativeElement
|
|
135
|
+
)
|
|
136
|
+
this.displayMessage$ = merge(
|
|
137
|
+
fromEvent(this.olMap, 'mapmuted').pipe(map(() => true)),
|
|
138
|
+
fromEvent(this.olMap, 'movestart').pipe(map(() => false)),
|
|
139
|
+
fromEvent(this.olMap, 'singleclick').pipe(map(() => false))
|
|
140
|
+
).pipe(
|
|
141
|
+
switchMap((muted) =>
|
|
142
|
+
muted
|
|
143
|
+
? timer(2000).pipe(
|
|
144
|
+
map(() => false),
|
|
145
|
+
startWith(true),
|
|
146
|
+
delay(400)
|
|
147
|
+
)
|
|
148
|
+
: of(false)
|
|
149
|
+
)
|
|
150
|
+
)
|
|
151
|
+
this.olMapResolver(this.olMap)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
async ngOnChanges(changes: SimpleChanges) {
|
|
155
|
+
if ('context' in changes && !changes['context'].isFirstChange()) {
|
|
156
|
+
const diff = computeMapContextDiff(
|
|
157
|
+
this.processContext(changes['context'].currentValue),
|
|
158
|
+
this.processContext(changes['context'].previousValue)
|
|
159
|
+
)
|
|
160
|
+
await applyContextDiffToMap(this.olMap, diff)
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
// This will apply basemap layers & view constraints
|
|
165
|
+
processContext(context: MapContext): MapContext {
|
|
166
|
+
const processed = context
|
|
167
|
+
? { ...context, view: context.view ?? DEFAULT_VIEW }
|
|
168
|
+
: { layers: [], view: DEFAULT_VIEW }
|
|
169
|
+
if (this.basemapLayers.length) {
|
|
170
|
+
processed.layers = [...this.basemapLayers, ...processed.layers]
|
|
171
|
+
}
|
|
172
|
+
if (!this.doNotUseDefaultBasemap) {
|
|
173
|
+
processed.layers = [DEFAULT_BASEMAP_LAYER, ...processed.layers]
|
|
174
|
+
}
|
|
175
|
+
if (this.mapViewConstraints.maxZoom) {
|
|
176
|
+
processed.view = {
|
|
177
|
+
maxZoom: this.mapViewConstraints.maxZoom,
|
|
178
|
+
...processed.view,
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (this.mapViewConstraints.maxExtent) {
|
|
182
|
+
processed.view = {
|
|
183
|
+
maxExtent: this.mapViewConstraints.maxExtent,
|
|
184
|
+
...processed.view,
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
if (
|
|
188
|
+
processed.view &&
|
|
189
|
+
!('zoom' in processed.view) &&
|
|
190
|
+
!('center' in processed.view)
|
|
191
|
+
) {
|
|
192
|
+
if (this.mapViewConstraints.maxExtent) {
|
|
193
|
+
processed.view = {
|
|
194
|
+
extent: this.mapViewConstraints.maxExtent,
|
|
195
|
+
...processed.view,
|
|
196
|
+
}
|
|
197
|
+
} else {
|
|
198
|
+
processed.view = { ...DEFAULT_VIEW, ...processed.view }
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return processed
|
|
202
|
+
}
|
|
203
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core'
|
|
2
|
+
import { Extent, MapContextLayer } from '@geospatial-sdk/core'
|
|
3
|
+
|
|
4
|
+
export const DO_NOT_USE_DEFAULT_BASEMAP = new InjectionToken(
|
|
5
|
+
'doNotUseDefaultBasemap',
|
|
6
|
+
{ factory: () => false }
|
|
7
|
+
)
|
|
8
|
+
export const BASEMAP_LAYERS = new InjectionToken<MapContextLayer[]>(
|
|
9
|
+
'basemapLayers',
|
|
10
|
+
{ factory: () => [] }
|
|
11
|
+
)
|
|
12
|
+
export const MAP_VIEW_CONSTRAINTS = new InjectionToken<{
|
|
13
|
+
maxZoom?: number
|
|
14
|
+
maxExtent?: Extent
|
|
15
|
+
}>('mapViewConstraints', {
|
|
16
|
+
factory: () => ({}),
|
|
17
|
+
})
|
|
18
|
+
export const VECTOR_STYLE_DEFAULT = new InjectionToken('vectorStyleDefault', {
|
|
19
|
+
factory: () => ({
|
|
20
|
+
fill: { color: 'rgba(255, 255, 255, 0.2)' },
|
|
21
|
+
stroke: { color: '#ffcc33', width: 2 },
|
|
22
|
+
}),
|
|
23
|
+
})
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import Collection from 'ol/Collection'
|
|
2
|
+
import { defaults, DragPan, Interaction, MouseWheelZoom } from 'ol/interaction'
|
|
3
|
+
import MapBrowserEvent from 'ol/MapBrowserEvent'
|
|
4
|
+
import {
|
|
5
|
+
mouseOnly,
|
|
6
|
+
noModifierKeys,
|
|
7
|
+
platformModifierKeyOnly,
|
|
8
|
+
primaryAction,
|
|
9
|
+
} from 'ol/events/condition'
|
|
10
|
+
|
|
11
|
+
export function prioritizePageScroll(interactions: Collection<Interaction>) {
|
|
12
|
+
interactions.clear()
|
|
13
|
+
interactions.extend(
|
|
14
|
+
defaults({
|
|
15
|
+
// remove rotate interactions
|
|
16
|
+
altShiftDragRotate: false,
|
|
17
|
+
pinchRotate: false,
|
|
18
|
+
// replace drag and zoom interactions
|
|
19
|
+
dragPan: false,
|
|
20
|
+
mouseWheelZoom: false,
|
|
21
|
+
})
|
|
22
|
+
.extend([
|
|
23
|
+
new DragPan({
|
|
24
|
+
condition: dragPanCondition,
|
|
25
|
+
}),
|
|
26
|
+
new MouseWheelZoom({
|
|
27
|
+
condition: mouseWheelZoomCondition,
|
|
28
|
+
}),
|
|
29
|
+
])
|
|
30
|
+
.getArray()
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function dragPanCondition(
|
|
35
|
+
this: DragPan,
|
|
36
|
+
event: MapBrowserEvent<PointerEvent>
|
|
37
|
+
) {
|
|
38
|
+
const dragPanCondition = this.getPointerCount() === 2 || mouseOnly(event)
|
|
39
|
+
if (!dragPanCondition) {
|
|
40
|
+
this.getMap().dispatchEvent('mapmuted')
|
|
41
|
+
}
|
|
42
|
+
// combine the condition with the default DragPan conditions
|
|
43
|
+
return dragPanCondition && noModifierKeys(event) && primaryAction(event)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function mouseWheelZoomCondition(
|
|
47
|
+
this: MouseWheelZoom,
|
|
48
|
+
event: MapBrowserEvent<UIEvent>
|
|
49
|
+
) {
|
|
50
|
+
if (!platformModifierKeyOnly(event) && event.type === 'wheel') {
|
|
51
|
+
this.getMap().dispatchEvent('mapmuted')
|
|
52
|
+
}
|
|
53
|
+
return platformModifierKeyOnly(event)
|
|
54
|
+
}
|