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
|
@@ -29,6 +29,8 @@ export const saveRecordFailure = createAction(
|
|
|
29
29
|
|
|
30
30
|
export const draftSaveSuccess = createAction('[Editor] Draft save success')
|
|
31
31
|
|
|
32
|
+
export const undoRecordDraft = createAction('[Editor] Undo record draft')
|
|
33
|
+
|
|
32
34
|
export const setCurrentPage = createAction(
|
|
33
35
|
'[Editor] Set current page',
|
|
34
36
|
props<{ page: number }>()
|
|
@@ -70,6 +70,21 @@ export class EditorEffects {
|
|
|
70
70
|
)
|
|
71
71
|
)
|
|
72
72
|
|
|
73
|
+
undoRecordDraft$ = createEffect(() =>
|
|
74
|
+
this.actions$.pipe(
|
|
75
|
+
ofType(EditorActions.undoRecordDraft),
|
|
76
|
+
withLatestFrom(this.store.select(selectRecord)),
|
|
77
|
+
switchMap(([, record]) => this.editorService.undoRecordDraft(record)),
|
|
78
|
+
map(([record, recordSource, alreadySavedOnce]) =>
|
|
79
|
+
EditorActions.openRecord({
|
|
80
|
+
record,
|
|
81
|
+
alreadySavedOnce,
|
|
82
|
+
recordSource,
|
|
83
|
+
})
|
|
84
|
+
)
|
|
85
|
+
)
|
|
86
|
+
)
|
|
87
|
+
|
|
73
88
|
checkHasChangesOnOpen$ = createEffect(() =>
|
|
74
89
|
this.actions$.pipe(
|
|
75
90
|
ofType(EditorActions.openRecord),
|
|
@@ -46,6 +46,10 @@ export class EditorFacade {
|
|
|
46
46
|
this.store.dispatch(EditorActions.saveRecord())
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
undoRecordDraft() {
|
|
50
|
+
this.store.dispatch(EditorActions.undoRecordDraft())
|
|
51
|
+
}
|
|
52
|
+
|
|
49
53
|
updateRecordField(field: string, value: unknown) {
|
|
50
54
|
this.store.dispatch(EditorActions.updateRecordField({ field, value }))
|
|
51
55
|
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<div class="flex flex-row gap-4 items-center">
|
|
2
|
+
<div class="flex flex-row border border-gray-200 rounded-xl p-4 gap-4 w-full">
|
|
3
|
+
<gn-ui-thumbnail
|
|
4
|
+
class="w-[56px] h-[56px] rounded-[4px]"
|
|
5
|
+
[thumbnailUrl]="contact.organization.logoUrl?.href"
|
|
6
|
+
[fit]="'contain'"
|
|
7
|
+
></gn-ui-thumbnail>
|
|
8
|
+
<div class="flex flex-col w-full">
|
|
9
|
+
<div class="flex flex-row justify-between">
|
|
10
|
+
<span
|
|
11
|
+
class="flex flex-wrap font-bold w-full"
|
|
12
|
+
data-test="contactCardName"
|
|
13
|
+
>{{ contact.firstName }} {{ contact.lastName }}</span
|
|
14
|
+
>
|
|
15
|
+
</div>
|
|
16
|
+
<div data-test="contactCardEmail">{{ contact.email }}</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<gn-ui-button
|
|
20
|
+
*ngIf="removable"
|
|
21
|
+
data-test="removeContactButton"
|
|
22
|
+
type="light"
|
|
23
|
+
extraClass="w-[20px] h-[20px] flex items-center justify-center"
|
|
24
|
+
(buttonClick)="removeContact(contact)"
|
|
25
|
+
><span class="material-symbols-outlined"> close </span>
|
|
26
|
+
</gn-ui-button>
|
|
27
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { Individual } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
10
|
+
import { CommonModule } from '@angular/common'
|
|
11
|
+
import { ButtonComponent } from '../../../../../../../libs/ui/inputs/src'
|
|
12
|
+
import { ThumbnailComponent } from '../../../../../../../libs/ui/elements/src'
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'gn-ui-contact-card',
|
|
16
|
+
templateUrl: './contact-card.component.html',
|
|
17
|
+
styleUrls: ['./contact-card.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, MatIconModule, ButtonComponent, ThumbnailComponent],
|
|
21
|
+
})
|
|
22
|
+
export class ContactCardComponent {
|
|
23
|
+
@Input() contact: Individual
|
|
24
|
+
@Input() removable = true
|
|
25
|
+
@Output() contactRemoved = new EventEmitter<Individual>()
|
|
26
|
+
|
|
27
|
+
removeContact(contact: Individual) {
|
|
28
|
+
this.contactRemoved.emit(contact)
|
|
29
|
+
}
|
|
30
|
+
}
|
package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.css
ADDED
|
File without changes
|
package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<div class="flex flex-col gap-3">
|
|
2
|
+
<gn-ui-autocomplete
|
|
3
|
+
[placeholder]="placeholder"
|
|
4
|
+
[displayWithFn]="displayWithFn"
|
|
5
|
+
[action]="autoCompleteAction"
|
|
6
|
+
(itemSelected)="handleItemSelection($event)"
|
|
7
|
+
[preventCompleteOnSelection]="true"
|
|
8
|
+
[minCharacterCount]="0"
|
|
9
|
+
[allowSubmit]="false"
|
|
10
|
+
></gn-ui-autocomplete>
|
|
11
|
+
<div class="flex gap-2 flex-wrap">
|
|
12
|
+
<gn-ui-badge
|
|
13
|
+
*ngFor="let keyword of keywords"
|
|
14
|
+
[removable]="true"
|
|
15
|
+
(badgeRemoveClicked)="removeKeyword(keyword)"
|
|
16
|
+
>{{ keyword.label }}
|
|
17
|
+
|
|
18
|
+
<mat-icon
|
|
19
|
+
*ngIf="isPlaceWithoutExtent(keyword)"
|
|
20
|
+
[title]="'editor.form.placeKeywordWithoutExtent' | translate"
|
|
21
|
+
class="material-symbols-outlined"
|
|
22
|
+
>warning</mat-icon
|
|
23
|
+
>
|
|
24
|
+
</gn-ui-badge>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.ts
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
} from '@angular/core'
|
|
9
|
+
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
10
|
+
import {
|
|
11
|
+
AutocompleteComponent,
|
|
12
|
+
DropdownSelectorComponent,
|
|
13
|
+
UiInputsModule,
|
|
14
|
+
} from '../../../../../../../libs/ui/inputs/src'
|
|
15
|
+
import { UiWidgetsModule } from '../../../../../../../libs/ui/widgets/src'
|
|
16
|
+
import { map } from 'rxjs'
|
|
17
|
+
import { Keyword } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
18
|
+
import { KeywordType } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus'
|
|
19
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
20
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
21
|
+
|
|
22
|
+
type AutocompleteItem = { title: string; value: Keyword }
|
|
23
|
+
|
|
24
|
+
@Component({
|
|
25
|
+
selector: 'gn-ui-generic-keywords',
|
|
26
|
+
templateUrl: './generic-keywords.component.html',
|
|
27
|
+
styleUrls: ['./generic-keywords.component.css'],
|
|
28
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
+
standalone: true,
|
|
30
|
+
imports: [
|
|
31
|
+
DropdownSelectorComponent,
|
|
32
|
+
UiInputsModule,
|
|
33
|
+
CommonModule,
|
|
34
|
+
UiWidgetsModule,
|
|
35
|
+
AutocompleteComponent,
|
|
36
|
+
MatIconModule,
|
|
37
|
+
TranslateModule,
|
|
38
|
+
],
|
|
39
|
+
})
|
|
40
|
+
export class GenericKeywordsComponent {
|
|
41
|
+
@Input() keywords: Keyword[]
|
|
42
|
+
@Input() keywordTypes: KeywordType[]
|
|
43
|
+
@Input() placeholder: string
|
|
44
|
+
@Output() changedKeywords: EventEmitter<Keyword[]> = new EventEmitter()
|
|
45
|
+
@Output() addedKeyword: EventEmitter<Keyword> = new EventEmitter()
|
|
46
|
+
@Output() deletedKeyword: EventEmitter<Keyword> = new EventEmitter()
|
|
47
|
+
|
|
48
|
+
displayWithFn = (item: AutocompleteItem) => {
|
|
49
|
+
return `${item.title} (${item.value.thesaurus?.name})`
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
autoCompleteAction = (query: string) => {
|
|
53
|
+
return this.platformService.searchKeywords(query, this.keywordTypes).pipe(
|
|
54
|
+
map((keywords) =>
|
|
55
|
+
keywords.map((keyword) => {
|
|
56
|
+
return { title: keyword.label, value: keyword }
|
|
57
|
+
})
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
constructor(private platformService: PlatformServiceInterface) {}
|
|
63
|
+
|
|
64
|
+
handleItemSelection(item: AutocompleteItem) {
|
|
65
|
+
this.addKeyword(item.value)
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
addKeyword(keyword: Keyword) {
|
|
69
|
+
const duplicatedKeyword = this.keywords.find(
|
|
70
|
+
(k) => k.label === keyword.label
|
|
71
|
+
)
|
|
72
|
+
if (!duplicatedKeyword) {
|
|
73
|
+
this.keywords = [...this.keywords, keyword]
|
|
74
|
+
this.changedKeywords.emit(this.keywords)
|
|
75
|
+
this.addedKeyword.emit(keyword)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
removeKeyword(keyword: Keyword) {
|
|
80
|
+
this.keywords = this.keywords.filter((k) => k.label !== keyword.label)
|
|
81
|
+
this.changedKeywords.emit(this.keywords)
|
|
82
|
+
this.deletedKeyword.emit(keyword)
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
isPlaceWithoutExtent(keyword: Keyword): boolean {
|
|
86
|
+
if (keyword.type !== 'place') return false
|
|
87
|
+
return !keyword.bbox
|
|
88
|
+
}
|
|
89
|
+
}
|
package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
<gn-ui-image-input
|
|
2
2
|
[maxSizeMB]="5"
|
|
3
3
|
[previewUrl]="resourceUrl"
|
|
4
|
-
[altText]="
|
|
4
|
+
[altText]="altText"
|
|
5
5
|
(fileChange)="handleFileChange($event)"
|
|
6
6
|
(urlChange)="handleUrlChange($event)"
|
|
7
|
+
(altTextChange)="handleAltTextChange($event)"
|
|
7
8
|
(delete)="handleDelete()"
|
|
8
9
|
></gn-ui-image-input>
|
package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
1
2
|
import {
|
|
2
3
|
ChangeDetectionStrategy,
|
|
3
|
-
ChangeDetectorRef,
|
|
4
4
|
Component,
|
|
5
|
+
EventEmitter,
|
|
5
6
|
Input,
|
|
6
|
-
|
|
7
|
+
Output,
|
|
7
8
|
} from '@angular/core'
|
|
8
|
-
import {
|
|
9
|
+
import { GraphicOverview } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
10
|
import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src'
|
|
11
|
+
import { NotificationsService } from '../../../../../../../libs/feature/notifications/src'
|
|
10
12
|
import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core'
|
|
11
14
|
|
|
12
15
|
@Component({
|
|
13
16
|
selector: 'gn-ui-overview-upload',
|
|
@@ -17,54 +20,94 @@ import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
|
|
|
17
20
|
styleUrls: ['./overview-upload.component.css'],
|
|
18
21
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
22
|
})
|
|
20
|
-
export class OverviewUploadComponent
|
|
23
|
+
export class OverviewUploadComponent {
|
|
21
24
|
@Input() metadataUuid: string
|
|
25
|
+
_overview: GraphicOverview | null
|
|
26
|
+
@Input()
|
|
27
|
+
set overview(value: GraphicOverview | null) {
|
|
28
|
+
this._overview = value
|
|
29
|
+
if (this._overview) {
|
|
30
|
+
this.recordsApiService.getAllResources(this.metadataUuid).subscribe({
|
|
31
|
+
next: (resources) => {
|
|
32
|
+
const resource = resources.find(
|
|
33
|
+
(r) => r.url === this._overview.url.toString()
|
|
34
|
+
)
|
|
35
|
+
if (resource) {
|
|
36
|
+
this.resourceFileName = resource.filename
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
error: this.errorHandle,
|
|
40
|
+
})
|
|
41
|
+
this.resourceUrl = this._overview.url.toString()
|
|
42
|
+
this.altText = this._overview.description
|
|
43
|
+
} else {
|
|
44
|
+
this.resourceUrl = ''
|
|
45
|
+
this.resourceFileName = ''
|
|
46
|
+
this.altText = ''
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@Output() overviewChange = new EventEmitter<GraphicOverview | null>()
|
|
22
51
|
|
|
23
|
-
resourceFileName: string
|
|
24
52
|
resourceUrl: string
|
|
53
|
+
resourceFileName: string
|
|
54
|
+
altText: string
|
|
25
55
|
|
|
26
56
|
constructor(
|
|
27
57
|
private recordsApiService: RecordsApiService,
|
|
28
|
-
private
|
|
58
|
+
private notificationsService: NotificationsService,
|
|
59
|
+
private translateService: TranslateService
|
|
29
60
|
) {}
|
|
30
61
|
|
|
31
|
-
ngOnInit(): void {
|
|
32
|
-
this.recordsApiService
|
|
33
|
-
.getAllResources(this.metadataUuid)
|
|
34
|
-
.subscribe((resources) => {
|
|
35
|
-
this.resourceFileName = resources[0]?.filename
|
|
36
|
-
this.resourceUrl = resources[0]?.url
|
|
37
|
-
this.cd.markForCheck()
|
|
38
|
-
})
|
|
39
|
-
}
|
|
40
|
-
|
|
41
62
|
handleFileChange(file: File) {
|
|
42
63
|
this.recordsApiService
|
|
43
64
|
.putResource(this.metadataUuid, file, 'public')
|
|
44
|
-
.subscribe(
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
65
|
+
.subscribe({
|
|
66
|
+
next: (resource) => {
|
|
67
|
+
this.overviewChange.emit({
|
|
68
|
+
url: new URL(resource.url),
|
|
69
|
+
description: resource.filename,
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
error: this.errorHandle,
|
|
48
73
|
})
|
|
49
74
|
}
|
|
50
75
|
|
|
51
76
|
handleUrlChange(url: string) {
|
|
52
77
|
this.recordsApiService
|
|
53
78
|
.putResourceFromURL(this.metadataUuid, url, 'public')
|
|
54
|
-
.subscribe(
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
79
|
+
.subscribe({
|
|
80
|
+
next: (resource) => {
|
|
81
|
+
this.overviewChange.emit({
|
|
82
|
+
url: new URL(resource.url),
|
|
83
|
+
description: resource.filename,
|
|
84
|
+
})
|
|
85
|
+
},
|
|
86
|
+
error: this.errorHandle,
|
|
58
87
|
})
|
|
59
88
|
}
|
|
60
89
|
|
|
90
|
+
handleAltTextChange(newAltText: string) {
|
|
91
|
+
this.overviewChange.emit({
|
|
92
|
+
url: new URL(this.resourceUrl),
|
|
93
|
+
description: newAltText,
|
|
94
|
+
})
|
|
95
|
+
}
|
|
96
|
+
|
|
61
97
|
handleDelete() {
|
|
62
|
-
this.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
98
|
+
this.overviewChange.emit(null)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
private errorHandle = (error) => {
|
|
102
|
+
this.notificationsService.showNotification({
|
|
103
|
+
type: 'error',
|
|
104
|
+
title: this.translateService.instant('editor.record.resourceError.title'),
|
|
105
|
+
text: `${this.translateService.instant(
|
|
106
|
+
'editor.record.resourceError.body'
|
|
107
|
+
)} ${error.message}`,
|
|
108
|
+
closeMessage: this.translateService.instant(
|
|
109
|
+
'editor.record.resourceError.closeMessage'
|
|
110
|
+
),
|
|
111
|
+
})
|
|
69
112
|
}
|
|
70
113
|
}
|
|
File without changes
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<div class="flex flex-col gap-3">
|
|
2
|
+
<div class="flex flex-row flex-wrap gap-2" data-test="rolesToPick">
|
|
3
|
+
<ng-container *ngFor="let role of rolesToPick">
|
|
4
|
+
<gn-ui-button
|
|
5
|
+
extraClass="px-2 py-1.5"
|
|
6
|
+
(buttonClick)="addRoleToDisplay(role)"
|
|
7
|
+
>
|
|
8
|
+
<div class="flex flex-row gap-1 items-center">
|
|
9
|
+
<span class="text-primary text-[20px] leading-[0] font-bold pb-[5px]"
|
|
10
|
+
>₊</span
|
|
11
|
+
>
|
|
12
|
+
<span class="font-bold" translate>{{ roleToLabel(role) }}</span>
|
|
13
|
+
</div>
|
|
14
|
+
</gn-ui-button>
|
|
15
|
+
</ng-container>
|
|
16
|
+
</div>
|
|
17
|
+
<div
|
|
18
|
+
class="mt-8"
|
|
19
|
+
*ngIf="
|
|
20
|
+
roleSectionsToDisplay && roleSectionsToDisplay.length > 0;
|
|
21
|
+
else noContact
|
|
22
|
+
"
|
|
23
|
+
data-test="displayedRoles"
|
|
24
|
+
>
|
|
25
|
+
<div
|
|
26
|
+
*ngFor="
|
|
27
|
+
let role of roleSectionsToDisplay;
|
|
28
|
+
let index = index;
|
|
29
|
+
let isLast = last
|
|
30
|
+
"
|
|
31
|
+
class="flex flex-col gap-4"
|
|
32
|
+
>
|
|
33
|
+
<div class="flex flex-row justify-between">
|
|
34
|
+
<span class="font-bold text-base" translate>{{
|
|
35
|
+
roleToLabel(role)
|
|
36
|
+
}}</span>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<gn-ui-autocomplete
|
|
40
|
+
[placeholder]="'Choose a contact'"
|
|
41
|
+
[action]="autoCompleteAction"
|
|
42
|
+
(itemSelected)="addContact($event, role)"
|
|
43
|
+
[displayWithFn]="displayWithFn"
|
|
44
|
+
[minCharacterCount]="1"
|
|
45
|
+
[clearOnSelection]="true"
|
|
46
|
+
>
|
|
47
|
+
</gn-ui-autocomplete>
|
|
48
|
+
|
|
49
|
+
<ng-container *ngIf="contactsForRessourceByRole.get(role) as contacts">
|
|
50
|
+
<ng-container *ngIf="contacts.length > 1">
|
|
51
|
+
<gn-ui-sortable-list
|
|
52
|
+
[elements]="contactsAsDynElemByRole.get(role)"
|
|
53
|
+
(elementsChange)="handleContactsChanged($event)"
|
|
54
|
+
></gn-ui-sortable-list>
|
|
55
|
+
</ng-container>
|
|
56
|
+
<ng-container *ngIf="contacts.length === 1">
|
|
57
|
+
<ng-container *ngFor="let contact of contacts">
|
|
58
|
+
<gn-ui-contact-card
|
|
59
|
+
[contact]="contact"
|
|
60
|
+
(contactRemoved)="removeContact(index)"
|
|
61
|
+
></gn-ui-contact-card> </ng-container
|
|
62
|
+
></ng-container>
|
|
63
|
+
</ng-container>
|
|
64
|
+
|
|
65
|
+
<hr class="border-t-[#D6D3D1] mt-4 mb-6" *ngIf="!isLast" />
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<ng-template #noContact>
|
|
69
|
+
<div
|
|
70
|
+
class="p-4 border border-primary bg-primary-lightest rounded-lg"
|
|
71
|
+
translate
|
|
72
|
+
>
|
|
73
|
+
editor.record.form.field.contactsForResource.noContact
|
|
74
|
+
</div>
|
|
75
|
+
</ng-template>
|
|
76
|
+
</div>
|