geonetwork-ui 2.4.0-dev.00c93bef → 2.4.0-dev.0925104f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -5
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +30 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.mjs +31 -0
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +23 -1
- package/esm2022/libs/api/metadata-converter/src/lib/xml-utils.mjs +10 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +31 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +11 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +11 -1
- package/esm2022/libs/common/domain/src/lib/model/record/contact.model.mjs +28 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/user/user.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/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
- package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +2 -6
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +6 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +4 -1
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +29 -0
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +78 -0
- package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +96 -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 +164 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +19 -41
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +10 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.mjs +101 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.mjs +44 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +28 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +10 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +11 -11
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +9 -8
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +111 -5
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +49 -52
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +16 -14
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +37 -43
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +5 -3
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +37 -4
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +5 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +6 -6
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +8 -5
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +6 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +8 -7
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +7 -6
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -26
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +29 -13
- package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +10 -5
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +3 -3
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +48 -8
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +6 -2
- package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +2 -1
- package/esm2022/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.mjs +27 -0
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +4 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +5 -11
- package/esm2022/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +5 -5
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +6 -10
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +11 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +19 -5
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +26 -24
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +17 -14
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +32 -0
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +6 -21
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +6 -17
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +3 -7
- package/esm2022/libs/ui/inputs/src/lib/url-input/url-input.component.mjs +43 -0
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
- package/esm2022/libs/ui/map/src/lib/ui-map.module.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +67 -0
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +31 -11
- package/esm2022/libs/ui/widgets/src/index.mjs +2 -1
- package/esm2022/libs/ui/widgets/src/lib/popover/popover.component.mjs +68 -0
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
- package/esm2022/translations/de.json +64 -19
- package/esm2022/translations/en.json +57 -12
- package/esm2022/translations/es.json +54 -9
- package/esm2022/translations/fr.json +68 -23
- package/esm2022/translations/it.json +57 -12
- package/esm2022/translations/nl.json +54 -9
- package/esm2022/translations/pt.json +54 -9
- package/fesm2022/geonetwork-ui.mjs +4665 -3305
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.d.ts +2 -6
- package/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.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/read-parts.d.ts +8 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts +5 -0
- package/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.d.ts.map +1 -0
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +3 -1
- 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 +1 -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 +7 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +1 -0
- 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 -0
- package/libs/common/domain/src/lib/model/record/contact.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +3 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
- 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 +17 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +1 -0
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts +5 -0
- package/libs/feature/editor/src/lib/+state/editor.effects.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +1 -0
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts +12 -0
- package/libs/feature/editor/src/lib/components/contact-card/contact-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts +32 -0
- package/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +27 -0
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.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 +44 -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.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts +8 -19
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +6 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.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 +22 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.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 +13 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts +4 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +4 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts +4 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +23 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +15 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts +5 -5
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +15 -19
- 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/components/record-form/record-form.component.d.ts +3 -2
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts +2 -1
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +8 -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 +1 -0
- package/libs/feature/editor/src/lib/services/editor.service.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.d.ts +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.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 +1 -1
- 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 +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 +1 -1
- 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/feature-map.module.d.ts +16 -21
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts +2 -2
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +15 -4
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -0
- package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts +18 -0
- package/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts +0 -3
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +5 -10
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +8 -6
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts +9 -1
- package/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts +5 -3
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +3 -4
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +0 -4
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts +2 -4
- package/libs/ui/inputs/src/lib/text-input/text-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +34 -35
- 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 +18 -0
- package/libs/ui/inputs/src/lib/url-input/url-input.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +20 -0
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +10 -4
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/widgets/src/index.d.ts +1 -0
- package/libs/ui/widgets/src/index.d.ts.map +1 -1
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts +19 -0
- package/libs/ui/widgets/src/lib/popover/popover.component.d.ts.map +1 -0
- package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +37 -12
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +6 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +72 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/utils/geometry.ts +39 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +70 -1
- package/src/libs/api/metadata-converter/src/lib/xml-utils.ts +13 -5
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +42 -2
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +43 -12
- package/src/libs/common/domain/src/lib/model/record/contact.model.ts +28 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +3 -1
- package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +4 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +22 -0
- package/src/libs/common/fixtures/src/index.ts +1 -1
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
- package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
- package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
- package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +84 -56
- package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +6 -6
- package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
- package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
- package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
- package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
- package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +1 -5
- package/src/libs/data-access/gn4/src/spec.yaml +0 -8
- package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
- package/src/libs/feature/editor/src/lib/+state/editor.actions.ts +2 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +15 -0
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +4 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +27 -0
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +30 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +26 -0
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts +89 -0
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +2 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +74 -31
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.css +0 -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 +76 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +249 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +7 -17
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.ts +18 -51
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +13 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.html +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-map-container/form-field-map-container.component.ts +128 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.html +6 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-open-data/form-field-open-data.component.ts +48 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +5 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +33 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +9 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +13 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.html +5 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.ts +11 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +15 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +156 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +9 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +59 -70
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.ts +17 -15
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +103 -68
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +43 -43
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +2 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +7 -2
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +40 -3
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +7 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.ts +3 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +5 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +10 -7
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +5 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +6 -1
- package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -15
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +24 -1
- package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
- package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +8 -4
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +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 +66 -3
- package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
- package/src/libs/feature/search/src/lib/state/search.facade.ts +6 -0
- package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
- package/src/libs/ui/elements/src/index.ts +1 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.css +0 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.html +12 -0
- package/src/libs/ui/elements/src/lib/confirmation-dialog/confirmation-dialog.component.ts +37 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +4 -1
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +12 -8
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +14 -20
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +0 -10
- package/src/libs/ui/elements/src/lib/metadata-quality-item/metadata-quality-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +3 -10
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts +7 -7
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +8 -2
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +15 -3
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +40 -26
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +85 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +91 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +49 -49
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +15 -13
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +2 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +2 -27
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +4 -3
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +4 -16
- 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.css +9 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.html +37 -0
- package/src/libs/ui/inputs/src/lib/url-input/url-input.component.ts +33 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +1 -1
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
- package/src/libs/ui/map/src/lib/ui-map.module.ts +1 -1
- package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.css +0 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +26 -0
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +74 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +24 -3
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +27 -16
- package/src/libs/ui/widgets/src/index.ts +1 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.css +0 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.html +3 -0
- package/src/libs/ui/widgets/src/lib/popover/popover.component.ts +85 -0
- package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
- package/tailwind.base.css +18 -5
- package/translations/de.json +64 -19
- package/translations/en.json +57 -12
- package/translations/es.json +54 -9
- package/translations/fr.json +68 -23
- package/translations/it.json +57 -12
- package/translations/nl.json +54 -9
- package/translations/pt.json +54 -9
- package/translations/sk.json +55 -10
- package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
- package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
- package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common'
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
ChangeDetectorRef,
|
|
5
|
+
Component,
|
|
6
|
+
EventEmitter,
|
|
7
|
+
Input,
|
|
8
|
+
OnInit,
|
|
9
|
+
Output,
|
|
10
|
+
} from '@angular/core'
|
|
11
|
+
import { ReactiveFormsModule } from '@angular/forms'
|
|
4
12
|
import { MarkdownEditorComponent } from '../../../../../../../../../libs/ui/elements/src'
|
|
5
13
|
import { ButtonComponent } from '../../../../../../../../../libs/ui/inputs/src'
|
|
6
14
|
import { FormFieldWrapperComponent } from '../../../../../../../../../libs/ui/layout/src'
|
|
@@ -20,11 +28,13 @@ import { FormFieldWrapperComponent } from '../../../../../../../../../libs/ui/la
|
|
|
20
28
|
],
|
|
21
29
|
})
|
|
22
30
|
export class FormFieldRichComponent {
|
|
23
|
-
@Input() control!: FormControl
|
|
24
31
|
@Input() label: string
|
|
25
32
|
@Input() hint: string
|
|
26
33
|
@Input() helperText: string
|
|
27
34
|
@Input() placeholder = 'Votre texte ici' //TODO: translate
|
|
35
|
+
@Input() value: string
|
|
36
|
+
|
|
37
|
+
@Output() valueChange: EventEmitter<string> = new EventEmitter()
|
|
28
38
|
|
|
29
39
|
preview = false
|
|
30
40
|
|
|
@@ -37,8 +47,4 @@ export class FormFieldRichComponent {
|
|
|
37
47
|
togglePreview() {
|
|
38
48
|
this.preview = !this.preview
|
|
39
49
|
}
|
|
40
|
-
|
|
41
|
-
handleTextContentChanged(textContent: string) {
|
|
42
|
-
this.control.setValue(textContent)
|
|
43
|
-
}
|
|
44
50
|
}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
*ngIf="!isSelect"
|
|
3
3
|
[type]="inputType"
|
|
4
4
|
[readonly]="readonly"
|
|
5
|
-
[formControl]="control"
|
|
6
5
|
[placeholder]="placeholder"
|
|
6
|
+
[value]="value"
|
|
7
|
+
(valueChange)="valueChange.emit($event)"
|
|
7
8
|
class="border rounded-md p-3 w-full bg-white transition-colors"
|
|
8
9
|
[ngClass]="{
|
|
9
10
|
'border-pink-500': invalid,
|
|
@@ -13,7 +14,8 @@
|
|
|
13
14
|
/>
|
|
14
15
|
<select
|
|
15
16
|
*ngIf="isSelect"
|
|
16
|
-
[
|
|
17
|
+
[value]="value"
|
|
18
|
+
(valueChange)="valueChange.emit($event)"
|
|
17
19
|
class="border rounded-md p-3 w-full bg-white transition-colors"
|
|
18
20
|
[ngClass]="{
|
|
19
21
|
'border-pink-500': invalid,
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
'text-gray-600': readonly
|
|
22
24
|
}"
|
|
23
25
|
>
|
|
24
|
-
<option *ngFor="let option of options" [
|
|
26
|
+
<option *ngFor="let option of options" [value]="option.value">
|
|
25
27
|
{{ option.label }}
|
|
26
28
|
</option>
|
|
27
29
|
</select>
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common'
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core'
|
|
4
9
|
|
|
5
10
|
@Component({
|
|
6
11
|
selector: 'gn-ui-form-field-simple',
|
|
@@ -8,15 +13,17 @@ import { FormControl, ReactiveFormsModule } from '@angular/forms'
|
|
|
8
13
|
styleUrls: ['./form-field-simple.component.css'],
|
|
9
14
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10
15
|
standalone: true,
|
|
11
|
-
imports: [CommonModule
|
|
16
|
+
imports: [CommonModule],
|
|
12
17
|
})
|
|
13
18
|
export class FormFieldSimpleComponent {
|
|
14
19
|
@Input() type: 'date' | 'url' | 'text' | 'number' | 'list' | 'toggle'
|
|
15
|
-
@Input() control!: FormControl
|
|
16
20
|
@Input() readonly = false
|
|
17
21
|
@Input() invalid = false
|
|
18
22
|
@Input() placeholder = ''
|
|
19
23
|
@Input() options?: { label: string; value: unknown }[]
|
|
24
|
+
@Input() value: unknown
|
|
25
|
+
|
|
26
|
+
@Output() valueChange: EventEmitter<unknown> = new EventEmitter()
|
|
20
27
|
|
|
21
28
|
get inputType() {
|
|
22
29
|
switch (this.type) {
|
|
@@ -1 +1,15 @@
|
|
|
1
|
-
<
|
|
1
|
+
<div class="flex flex-col gap-3">
|
|
2
|
+
<gn-ui-generic-keywords
|
|
3
|
+
[placeholder]="'Search for place keywords'"
|
|
4
|
+
[keywords]="shownKeywords$ | async"
|
|
5
|
+
[keywordTypes]="['place']"
|
|
6
|
+
(deletedKeyword)="handleKeywordDelete($event)"
|
|
7
|
+
(addedKeyword)="handleKeywordAdd($event)"
|
|
8
|
+
>
|
|
9
|
+
</gn-ui-generic-keywords>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="w-full h-96">
|
|
12
|
+
<gn-ui-form-field-map-container
|
|
13
|
+
[spatialExtents]="spatialExtents$ | async"
|
|
14
|
+
></gn-ui-form-field-map-container>
|
|
15
|
+
</div>
|
|
@@ -1,4 +1,29 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
1
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
3
|
+
import {
|
|
4
|
+
DatasetSpatialExtent,
|
|
5
|
+
Keyword,
|
|
6
|
+
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
7
|
+
import { GenericKeywordsComponent } from '../../../generic-keywords/generic-keywords.component'
|
|
8
|
+
import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
9
|
+
import { firstValueFrom, map, shareReplay } from 'rxjs'
|
|
10
|
+
import { EditorFacade } from '../../../../+state/editor.facade'
|
|
11
|
+
import { switchMap } from 'rxjs/operators'
|
|
12
|
+
import { FormFieldMapContainerComponent } from '../form-field-map-container/form-field-map-container.component'
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core'
|
|
14
|
+
|
|
15
|
+
// This intermediary type will let us keep track of which keyword is bound to
|
|
16
|
+
// which extent; these properties will not be persisted
|
|
17
|
+
type KeywordWithExtent = Keyword & {
|
|
18
|
+
_linkedExtent: DatasetSpatialExtent
|
|
19
|
+
_doNotSave: boolean
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* This form field is not like the others, as it will read directly from the state to handle both spatial extents
|
|
24
|
+
* and place keywords.
|
|
25
|
+
* Other types of keywords will not be touched by this field.
|
|
26
|
+
*/
|
|
2
27
|
|
|
3
28
|
@Component({
|
|
4
29
|
selector: 'gn-ui-form-field-spatial-extent',
|
|
@@ -6,5 +31,135 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
|
6
31
|
styleUrls: ['./form-field-spatial-extent.component.css'],
|
|
7
32
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
33
|
standalone: true,
|
|
34
|
+
imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
GenericKeywordsComponent,
|
|
37
|
+
FormFieldMapContainerComponent,
|
|
38
|
+
],
|
|
9
39
|
})
|
|
10
|
-
export class FormFieldSpatialExtentComponent {
|
|
40
|
+
export class FormFieldSpatialExtentComponent {
|
|
41
|
+
spatialExtents$ = this.editorFacade.record$.pipe(
|
|
42
|
+
map((record) => ('spatialExtents' in record ? record?.spatialExtents : []))
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
shownKeywords$ = this.editorFacade.record$.pipe(
|
|
46
|
+
map((record) => record?.keywords.filter((k) => k.type === 'place')),
|
|
47
|
+
// look for full keywords in the thesauri
|
|
48
|
+
switchMap((keywords) =>
|
|
49
|
+
Promise.all(
|
|
50
|
+
keywords.map(async (keyword) => {
|
|
51
|
+
if (!keyword.thesaurus) return keyword
|
|
52
|
+
const allKeywords = await firstValueFrom(
|
|
53
|
+
this.platformService.searchKeywordsInThesaurus(
|
|
54
|
+
keyword.label,
|
|
55
|
+
keyword.thesaurus.id
|
|
56
|
+
)
|
|
57
|
+
)
|
|
58
|
+
const found = allKeywords.find((k) => k.label === keyword.label)
|
|
59
|
+
return found ?? keyword
|
|
60
|
+
})
|
|
61
|
+
)
|
|
62
|
+
),
|
|
63
|
+
// add additional "unnamed" keywords for extents without a matching keyword
|
|
64
|
+
switchMap(async (keywords) => {
|
|
65
|
+
const spatialExtents = await firstValueFrom(this.spatialExtents$)
|
|
66
|
+
const keywordsFromExtents = await Promise.all(
|
|
67
|
+
spatialExtents.map(async (extent) => {
|
|
68
|
+
const existingKeyword =
|
|
69
|
+
extent.description &&
|
|
70
|
+
(keywords.find(
|
|
71
|
+
(k) => k.key === extent.description
|
|
72
|
+
) as KeywordWithExtent)
|
|
73
|
+
if (existingKeyword) {
|
|
74
|
+
existingKeyword._linkedExtent = extent
|
|
75
|
+
return null
|
|
76
|
+
}
|
|
77
|
+
let bbox = null
|
|
78
|
+
if ('geometry' in extent) {
|
|
79
|
+
bbox = extent.geometry // FIXME: this should be a bbox too but for now it works...
|
|
80
|
+
} else if ('bbox' in extent) {
|
|
81
|
+
bbox = extent.bbox
|
|
82
|
+
}
|
|
83
|
+
const label = await firstValueFrom(
|
|
84
|
+
this.translateService.get('editor.record.placeKeywordWithoutLabel')
|
|
85
|
+
)
|
|
86
|
+
return {
|
|
87
|
+
label,
|
|
88
|
+
type: 'place',
|
|
89
|
+
...(bbox && { bbox }),
|
|
90
|
+
_linkedExtent: extent,
|
|
91
|
+
_doNotSave: true,
|
|
92
|
+
} as KeywordWithExtent
|
|
93
|
+
})
|
|
94
|
+
).then((keywords) => keywords.filter((k) => !!k))
|
|
95
|
+
|
|
96
|
+
return [...keywords, ...keywordsFromExtents]
|
|
97
|
+
}),
|
|
98
|
+
shareReplay(1)
|
|
99
|
+
)
|
|
100
|
+
|
|
101
|
+
constructor(
|
|
102
|
+
private platformService: PlatformServiceInterface,
|
|
103
|
+
private editorFacade: EditorFacade,
|
|
104
|
+
private translateService: TranslateService
|
|
105
|
+
) {}
|
|
106
|
+
|
|
107
|
+
async handleKeywordDelete(keyword: Keyword) {
|
|
108
|
+
const spatialExtents = await firstValueFrom(this.spatialExtents$)
|
|
109
|
+
const shownKeywords = (await firstValueFrom(
|
|
110
|
+
this.shownKeywords$
|
|
111
|
+
)) as KeywordWithExtent[]
|
|
112
|
+
const newKeywords = shownKeywords.filter((k) => k !== keyword)
|
|
113
|
+
const linkedExtent =
|
|
114
|
+
'_linkedExtent' in keyword ? keyword._linkedExtent : null
|
|
115
|
+
const newExtents = linkedExtent
|
|
116
|
+
? spatialExtents.filter((extent) => linkedExtent !== extent)
|
|
117
|
+
: spatialExtents
|
|
118
|
+
return this.emitChanges(newKeywords, newExtents)
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
async handleKeywordAdd(keyword: Keyword) {
|
|
122
|
+
const spatialExtents = await firstValueFrom(this.spatialExtents$)
|
|
123
|
+
const shownKeywords = await firstValueFrom(this.shownKeywords$)
|
|
124
|
+
const newKeywords = [...shownKeywords, keyword] as KeywordWithExtent[]
|
|
125
|
+
let newExtents = spatialExtents
|
|
126
|
+
if (keyword.bbox) {
|
|
127
|
+
newExtents = [
|
|
128
|
+
...spatialExtents,
|
|
129
|
+
{
|
|
130
|
+
bbox: keyword.bbox,
|
|
131
|
+
description: keyword.key ?? undefined,
|
|
132
|
+
},
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
return this.emitChanges(newKeywords, newExtents)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
async emitChanges(
|
|
139
|
+
placeKeywords: KeywordWithExtent[],
|
|
140
|
+
spatialExtents: DatasetSpatialExtent[]
|
|
141
|
+
) {
|
|
142
|
+
// some keywords are only present to allow control over extents; they **should not** be saved!
|
|
143
|
+
const filteredPlaceKeywords = placeKeywords
|
|
144
|
+
.filter((keyword) => !keyword._doNotSave)
|
|
145
|
+
.map(
|
|
146
|
+
({ label, thesaurus, type }) =>
|
|
147
|
+
({
|
|
148
|
+
label,
|
|
149
|
+
type,
|
|
150
|
+
...(thesaurus && { thesaurus }),
|
|
151
|
+
} as Keyword)
|
|
152
|
+
)
|
|
153
|
+
const notPlaceKeywords = await firstValueFrom(
|
|
154
|
+
this.editorFacade.record$.pipe(
|
|
155
|
+
map((record) => record.keywords.filter((k) => k.type !== 'place'))
|
|
156
|
+
)
|
|
157
|
+
)
|
|
158
|
+
|
|
159
|
+
this.editorFacade.updateRecordField('keywords', [
|
|
160
|
+
...notPlaceKeywords,
|
|
161
|
+
...filteredPlaceKeywords,
|
|
162
|
+
])
|
|
163
|
+
this.editorFacade.updateRecordField('spatialExtents', spatialExtents)
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
|
+
<div class="flex gap-2 mb-2">
|
|
2
|
+
<gn-ui-button
|
|
3
|
+
*ngFor="let addOption of addOptions$ | async"
|
|
4
|
+
(buttonClick)="onAdd(addOption.eventName)"
|
|
5
|
+
>
|
|
6
|
+
<span class="material-symbols-outlined gn-ui-icon-small"> add </span>
|
|
7
|
+
{{ addOption.buttonLabel }}</gn-ui-button
|
|
8
|
+
>
|
|
9
|
+
</div>
|
|
1
10
|
<gn-ui-sortable-list
|
|
2
11
|
[elements]="elements"
|
|
3
12
|
(elementsChange)="onElementsChange($event)"
|
|
4
|
-
[addOptions]="addOptions$ | async"
|
|
5
|
-
(add)="onAdd($event)"
|
|
6
13
|
></gn-ui-sortable-list>
|
|
@@ -1,18 +1,22 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
1
2
|
import {
|
|
2
3
|
ChangeDetectionStrategy,
|
|
3
4
|
Component,
|
|
4
5
|
Input,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Type,
|
|
6
|
+
OnChanges,
|
|
7
|
+
Output,
|
|
8
8
|
} from '@angular/core'
|
|
9
9
|
import { FormArray, FormControl } from '@angular/forms'
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { DatasetTemporalExtent } from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
11
|
+
import {
|
|
12
|
+
DynamicElement,
|
|
13
|
+
SortableListComponent,
|
|
14
|
+
} from '../../../../../../../../../libs/ui/elements/src'
|
|
15
|
+
import { ButtonComponent } from '../../../../../../../../../libs/ui/inputs/src'
|
|
16
|
+
import { TranslateService } from '@ngx-translate/core'
|
|
17
|
+
import { Observable, combineLatest, map } from 'rxjs'
|
|
12
18
|
import { FormFieldTemporalExtentsDateComponent } from './form-field-temporal-extents-date/form-field-temporal-extents-date.component'
|
|
13
19
|
import { FormFieldTemporalExtentsRangeComponent } from './form-field-temporal-extents-range/form-field-temporal-extents-range.component'
|
|
14
|
-
import { TranslateService } from '@ngx-translate/core'
|
|
15
|
-
import { CommonModule } from '@angular/common'
|
|
16
20
|
|
|
17
21
|
@Component({
|
|
18
22
|
selector: 'gn-ui-form-field-temporal-extents',
|
|
@@ -20,18 +24,14 @@ import { CommonModule } from '@angular/common'
|
|
|
20
24
|
styleUrls: ['./form-field-temporal-extents.component.css'],
|
|
21
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
26
|
standalone: true,
|
|
23
|
-
imports: [CommonModule, SortableListComponent],
|
|
27
|
+
imports: [CommonModule, ButtonComponent, SortableListComponent],
|
|
24
28
|
})
|
|
25
|
-
export class FormFieldTemporalExtentsComponent implements
|
|
26
|
-
@Input()
|
|
27
|
-
|
|
28
|
-
subscription: Subscription
|
|
29
|
+
export class FormFieldTemporalExtentsComponent implements OnChanges {
|
|
30
|
+
@Input() value: Array<DatasetTemporalExtent>
|
|
31
|
+
@Output() valueChange: Observable<Array<DatasetTemporalExtent>>
|
|
29
32
|
|
|
30
33
|
array: FormArray = new FormArray([])
|
|
31
|
-
elements:
|
|
32
|
-
component: Type<any>
|
|
33
|
-
inputs: Record<string, any>
|
|
34
|
-
}>
|
|
34
|
+
elements: DynamicElement[] = []
|
|
35
35
|
|
|
36
36
|
addOptions$ = combineLatest([
|
|
37
37
|
this.translateService
|
|
@@ -42,29 +42,19 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
|
|
|
42
42
|
.pipe(map((buttonLabel) => ({ buttonLabel, eventName: 'range' }))),
|
|
43
43
|
])
|
|
44
44
|
|
|
45
|
-
constructor(private translateService: TranslateService) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
this.resetValueFromInput(this.control.value)
|
|
49
|
-
|
|
50
|
-
this.subscription = new Subscription()
|
|
51
|
-
|
|
52
|
-
this.subscription.add(
|
|
53
|
-
this.control.valueChanges.subscribe((value) => {
|
|
54
|
-
this.resetValueFromInput(value)
|
|
55
|
-
})
|
|
56
|
-
)
|
|
45
|
+
constructor(private translateService: TranslateService) {
|
|
46
|
+
this.valueChange = this.array.valueChanges
|
|
47
|
+
}
|
|
57
48
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
this.control.setValue(value)
|
|
61
|
-
})
|
|
62
|
-
)
|
|
49
|
+
ngOnChanges() {
|
|
50
|
+
this.resetValueFromInput(this.value)
|
|
63
51
|
}
|
|
64
52
|
|
|
65
|
-
onElementsChange(elements:
|
|
53
|
+
onElementsChange(elements: DynamicElement[]) {
|
|
54
|
+
this.elements = elements
|
|
66
55
|
this.array.clear({ emitEvent: false })
|
|
67
|
-
|
|
56
|
+
|
|
57
|
+
this.elements.forEach((e: DynamicElement, i: number) =>
|
|
68
58
|
this.array.push(e.inputs.control, {
|
|
69
59
|
emitEvent: i === elements.length - 1,
|
|
70
60
|
})
|
|
@@ -74,57 +64,56 @@ export class FormFieldTemporalExtentsComponent implements OnInit, OnDestroy {
|
|
|
74
64
|
onAdd(eventName: string) {
|
|
75
65
|
switch (eventName) {
|
|
76
66
|
case 'date': {
|
|
77
|
-
const
|
|
78
|
-
this.
|
|
67
|
+
const instant = { start: new Date() }
|
|
68
|
+
this.pushDate(instant, this.elements, true)
|
|
79
69
|
break
|
|
80
70
|
}
|
|
81
71
|
case 'range': {
|
|
82
|
-
const
|
|
72
|
+
const range = {
|
|
83
73
|
start: new Date(),
|
|
84
74
|
end: new Date(),
|
|
85
|
-
}
|
|
86
|
-
this.
|
|
75
|
+
}
|
|
76
|
+
this.pushRange(range, this.elements, true)
|
|
87
77
|
break
|
|
88
78
|
}
|
|
89
79
|
}
|
|
90
80
|
}
|
|
91
81
|
|
|
92
|
-
ngOnDestroy(): void {
|
|
93
|
-
this.subscription.unsubscribe()
|
|
94
|
-
}
|
|
95
|
-
|
|
96
82
|
private resetValueFromInput(value) {
|
|
97
83
|
this.array.clear({ emitEvent: false })
|
|
98
84
|
this.elements = []
|
|
99
|
-
value
|
|
85
|
+
if (!value) return
|
|
86
|
+
|
|
87
|
+
const newElements = []
|
|
88
|
+
value.forEach((v: DatasetTemporalExtent) => {
|
|
100
89
|
if ('start' in v && 'end' in v) {
|
|
101
|
-
|
|
102
|
-
start: v.start,
|
|
103
|
-
end: v.end,
|
|
104
|
-
})
|
|
105
|
-
this.array.push(rangeControl, { emitEvent: false })
|
|
106
|
-
this.elements = [
|
|
107
|
-
...this.elements,
|
|
108
|
-
{
|
|
109
|
-
component: FormFieldTemporalExtentsRangeComponent,
|
|
110
|
-
inputs: {
|
|
111
|
-
control: rangeControl,
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
]
|
|
90
|
+
this.pushRange(v, newElements, false)
|
|
115
91
|
} else {
|
|
116
|
-
|
|
117
|
-
this.array.push(dateControl, { emitEvent: false })
|
|
118
|
-
this.elements = [
|
|
119
|
-
...this.elements,
|
|
120
|
-
{
|
|
121
|
-
component: FormFieldTemporalExtentsDateComponent,
|
|
122
|
-
inputs: {
|
|
123
|
-
control: dateControl,
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
]
|
|
92
|
+
this.pushDate(v, newElements, false)
|
|
127
93
|
}
|
|
128
94
|
})
|
|
95
|
+
this.elements = newElements
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
private pushDate(instant, elements, emitEvent) {
|
|
99
|
+
const dateControl = new FormControl(instant)
|
|
100
|
+
this.array.push(dateControl, { emitEvent })
|
|
101
|
+
elements.push({
|
|
102
|
+
component: FormFieldTemporalExtentsDateComponent,
|
|
103
|
+
inputs: {
|
|
104
|
+
control: dateControl,
|
|
105
|
+
},
|
|
106
|
+
})
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
private pushRange(period, elements, emitEvent) {
|
|
110
|
+
const rangeControl = new FormControl(period)
|
|
111
|
+
this.array.push(rangeControl, { emitEvent })
|
|
112
|
+
elements.push({
|
|
113
|
+
component: FormFieldTemporalExtentsRangeComponent,
|
|
114
|
+
inputs: {
|
|
115
|
+
control: rangeControl,
|
|
116
|
+
},
|
|
117
|
+
})
|
|
129
118
|
}
|
|
130
119
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ChangeDetectionStrategy,
|
|
3
3
|
Component,
|
|
4
|
+
EventEmitter,
|
|
4
5
|
Input,
|
|
5
6
|
OnInit,
|
|
7
|
+
Output,
|
|
6
8
|
} from '@angular/core'
|
|
7
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
UpdateFrequency,
|
|
11
|
+
UpdateFrequencyCustom,
|
|
12
|
+
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
8
13
|
import {
|
|
9
14
|
CheckToggleComponent,
|
|
10
15
|
DropdownChoice,
|
|
11
16
|
DropdownSelectorComponent,
|
|
12
17
|
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
13
18
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
|
-
import {
|
|
15
|
-
UpdateFrequency,
|
|
16
|
-
UpdateFrequencyCustom,
|
|
17
|
-
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
18
19
|
import { firstValueFrom } from 'rxjs'
|
|
19
20
|
|
|
20
21
|
@Component({
|
|
@@ -26,23 +27,24 @@ import { firstValueFrom } from 'rxjs'
|
|
|
26
27
|
imports: [CheckToggleComponent, DropdownSelectorComponent, TranslateModule],
|
|
27
28
|
})
|
|
28
29
|
export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
29
|
-
@Input()
|
|
30
|
+
@Input() value: UpdateFrequency
|
|
31
|
+
@Output() valueChange: EventEmitter<UpdateFrequency> = new EventEmitter()
|
|
30
32
|
|
|
31
33
|
protected choices: DropdownChoice[] = []
|
|
32
34
|
|
|
33
35
|
get planned() {
|
|
34
|
-
return typeof this.
|
|
36
|
+
return typeof this.value !== 'string'
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
constructor(private translateService: TranslateService) {}
|
|
38
40
|
|
|
39
41
|
async ngOnInit() {
|
|
40
42
|
this.choices = await this.getInitialChoices()
|
|
41
|
-
if (typeof this.
|
|
43
|
+
if (typeof this.value === 'string') {
|
|
42
44
|
return
|
|
43
45
|
}
|
|
44
|
-
const updatedTimes = this.
|
|
45
|
-
const per = this.
|
|
46
|
+
const updatedTimes = this.value.updatedTimes
|
|
47
|
+
const per = this.value.per
|
|
46
48
|
// the update frequency is not in the list; make it appear there
|
|
47
49
|
if (updatedTimes && updatedTimes !== 1 && updatedTimes !== 2) {
|
|
48
50
|
this.choices = [
|
|
@@ -61,21 +63,21 @@ export class FormFieldUpdateFrequencyComponent implements OnInit {
|
|
|
61
63
|
|
|
62
64
|
onPlannedToggled() {
|
|
63
65
|
if (this.planned) {
|
|
64
|
-
this.
|
|
66
|
+
this.valueChange.emit('notPlanned')
|
|
65
67
|
} else {
|
|
66
|
-
this.
|
|
68
|
+
this.valueChange.emit({ updatedTimes: 1, per: 'day' })
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
get selectedFrequency(): string {
|
|
71
|
-
if (typeof this.
|
|
72
|
-
const { updatedTimes, per } = this.
|
|
73
|
+
if (typeof this.value === 'string') return null
|
|
74
|
+
const { updatedTimes, per } = this.value
|
|
73
75
|
return `${per}.${updatedTimes}`
|
|
74
76
|
}
|
|
75
77
|
|
|
76
78
|
onSelectFrequencyValue(value: unknown) {
|
|
77
79
|
const split = (value as string).split('.')
|
|
78
|
-
this.
|
|
80
|
+
this.valueChange.emit({
|
|
79
81
|
updatedTimes: Number(split[1]),
|
|
80
82
|
per: split[0] as UpdateFrequencyCustom['per'],
|
|
81
83
|
})
|