geonetwork-ui 2.4.0-dev.e4dc8777 → 2.4.0-dev.e689547d
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/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.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/openapi/api/records.api.service.mjs +2 -6
- package/esm2022/libs/feature/editor/src/lib/+state/editor.actions.mjs +3 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.effects.mjs +8 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +10 -2
- package/esm2022/libs/feature/editor/src/lib/+state/editor.models.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/+state/editor.reducer.mjs +7 -3
- package/esm2022/libs/feature/editor/src/lib/+state/editor.selectors.mjs +16 -6
- 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/form-field/index.mjs +1 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +13 -7
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +8 -8
- package/esm2022/libs/feature/editor/src/lib/expressions.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +6 -4
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +175 -59
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.model.mjs +2 -0
- package/esm2022/libs/feature/editor/src/lib/models/index.mjs +2 -1
- package/esm2022/libs/feature/editor/src/lib/services/editor.service.mjs +8 -3
- 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/utils/map-utils.service.mjs +10 -5
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +42 -23
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +13 -5
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +49 -15
- 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/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/elements/src/lib/user-preview/user-preview.component.mjs +3 -3
- 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/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/translations/de.json +112 -34
- package/esm2022/translations/en.json +88 -10
- package/esm2022/translations/es.json +83 -5
- package/esm2022/translations/fr.json +99 -21
- package/esm2022/translations/it.json +86 -8
- package/esm2022/translations/nl.json +83 -5
- package/esm2022/translations/pt.json +83 -5
- package/fesm2022/geonetwork-ui.mjs +5155 -3396
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.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/gn4/types/metadata.model.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.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/openapi/api/records.api.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.actions.d.ts +6 -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 +5 -4
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts +8 -0
- package/libs/feature/editor/src/lib/+state/editor.models.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts +4 -3
- package/libs/feature/editor/src/lib/+state/editor.reducer.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.selectors.d.ts +4 -8
- package/libs/feature/editor/src/lib/+state/editor.selectors.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 +16 -20
- 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/form-field/index.d.ts +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +6 -7
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/expressions.d.ts +1 -1
- package/libs/feature/editor/src/lib/expressions.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 +46 -2
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +36 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts +1 -0
- package/libs/feature/editor/src/lib/models/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/services/editor.service.d.ts +3 -2
- 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/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-share/data-view-share.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +4 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.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/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/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/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/atomic-operations.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/types/keywords.model.ts +2 -6
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +1 -0
- 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 +2 -0
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +156 -0
- package/src/libs/common/fixtures/src/lib/editor/index.ts +1 -0
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +10 -0
- 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/editor/src/lib/+state/editor.actions.ts +7 -0
- package/src/libs/feature/editor/src/lib/+state/editor.effects.ts +17 -2
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +13 -1
- package/src/libs/feature/editor/src/lib/+state/editor.models.ts +11 -0
- package/src/libs/feature/editor/src/lib/+state/editor.reducer.ts +11 -5
- package/src/libs/feature/editor/src/lib/+state/editor.selectors.ts +22 -8
- 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 +105 -70
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +44 -43
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +52 -11
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +19 -7
- package/src/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.html +1 -1
- package/src/libs/feature/editor/src/lib/expressions.ts +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 +211 -60
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +53 -0
- package/src/libs/feature/editor/src/lib/models/index.ts +1 -0
- package/src/libs/feature/editor/src/lib/services/editor.service.ts +15 -4
- 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/utils/map-utils.service.ts +8 -4
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +36 -19
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +6 -2
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.ts +11 -0
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +59 -12
- 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/search.facade.ts +6 -0
- 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/elements/src/lib/user-preview/user-preview.component.html +1 -1
- 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/switch-toggle/switch-toggle.component.css +31 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +38 -0
- 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/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/tailwind.base.css +18 -5
- package/translations/de.json +112 -34
- package/translations/en.json +88 -10
- package/translations/es.json +83 -5
- package/translations/fr.json +99 -21
- package/translations/it.json +86 -8
- package/translations/nl.json +83 -5
- package/translations/pt.json +83 -5
- package/translations/sk.json +84 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +0 -2
- package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +0 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts +0 -26
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/models/fields.model.d.ts +0 -15
- package/libs/feature/editor/src/lib/models/fields.model.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.ts +0 -43
- package/src/libs/feature/editor/src/lib/models/fields.model.ts +0 -29
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
CHANGED
|
@@ -3,32 +3,42 @@ import {
|
|
|
3
3
|
ChangeDetectionStrategy,
|
|
4
4
|
Component,
|
|
5
5
|
ElementRef,
|
|
6
|
+
EventEmitter,
|
|
6
7
|
Input,
|
|
7
8
|
Output,
|
|
8
9
|
ViewChild,
|
|
9
10
|
} from '@angular/core'
|
|
10
|
-
import { FormControl, ReactiveFormsModule } from '@angular/forms'
|
|
11
11
|
import { MatIconModule } from '@angular/material/icon'
|
|
12
12
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
13
|
+
import {
|
|
14
|
+
CatalogRecordKeys,
|
|
15
|
+
Constraint,
|
|
16
|
+
DatasetTemporalExtent,
|
|
17
|
+
GraphicOverview,
|
|
18
|
+
Individual,
|
|
19
|
+
Keyword,
|
|
20
|
+
UpdateFrequency,
|
|
21
|
+
} from '../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
13
22
|
import { EditableLabelDirective } from '../../../../../../../../libs/ui/inputs/src'
|
|
14
23
|
import { FormFieldWrapperComponent } from '../../../../../../../../libs/ui/layout/src'
|
|
15
24
|
import { TranslateModule } from '@ngx-translate/core'
|
|
16
|
-
import { Observable } from 'rxjs'
|
|
17
25
|
import {
|
|
18
26
|
FormFieldLicenseComponent,
|
|
19
27
|
FormFieldResourceUpdatedComponent,
|
|
20
28
|
FormFieldTemporalExtentsComponent,
|
|
21
29
|
} from '.'
|
|
30
|
+
import { FormFieldConfig } from '../../../models'
|
|
22
31
|
import { FormFieldArrayComponent } from './form-field-array/form-field-array.component'
|
|
32
|
+
import { FormFieldContactsForResourceComponent } from './form-field-contacts-for-resource/form-field-contacts-for-resource.component'
|
|
23
33
|
import { FormFieldFileComponent } from './form-field-file/form-field-file.component'
|
|
34
|
+
import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
|
|
24
35
|
import { FormFieldObjectComponent } from './form-field-object/form-field-object.component'
|
|
36
|
+
import { FormFieldOverviewsComponent } from './form-field-overviews/form-field-overviews.component'
|
|
25
37
|
import { FormFieldRichComponent } from './form-field-rich/form-field-rich.component'
|
|
26
38
|
import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.component'
|
|
27
39
|
import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
28
|
-
import { FormFieldConfig } from './form-field.model'
|
|
29
40
|
import { FormFieldUpdateFrequencyComponent } from './form-field-update-frequency/form-field-update-frequency.component'
|
|
30
|
-
import {
|
|
31
|
-
import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-keywords.component'
|
|
41
|
+
import { FormFieldOpenDataComponent } from './form-field-open-data/form-field-open-data.component'
|
|
32
42
|
|
|
33
43
|
@Component({
|
|
34
44
|
selector: 'gn-ui-form-field',
|
|
@@ -38,7 +48,7 @@ import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-key
|
|
|
38
48
|
standalone: true,
|
|
39
49
|
imports: [
|
|
40
50
|
CommonModule,
|
|
41
|
-
|
|
51
|
+
TranslateModule,
|
|
42
52
|
EditableLabelDirective,
|
|
43
53
|
MatIconModule,
|
|
44
54
|
MatTooltipModule,
|
|
@@ -54,63 +64,54 @@ import { FormFieldKeywordsComponent } from './form-field-keywords/form-field-key
|
|
|
54
64
|
FormFieldFileComponent,
|
|
55
65
|
FormFieldArrayComponent,
|
|
56
66
|
FormFieldKeywordsComponent,
|
|
57
|
-
|
|
67
|
+
FormFieldOverviewsComponent,
|
|
68
|
+
FormFieldContactsForResourceComponent,
|
|
69
|
+
FormFieldOpenDataComponent,
|
|
58
70
|
],
|
|
59
71
|
})
|
|
60
72
|
export class FormFieldComponent {
|
|
73
|
+
@Input() uniqueIdentifier: string
|
|
61
74
|
@Input() model: CatalogRecordKeys
|
|
62
75
|
@Input() config: FormFieldConfig
|
|
63
|
-
@Input()
|
|
64
|
-
this.formControl.setValue(v, {
|
|
65
|
-
emitEvent: false,
|
|
66
|
-
})
|
|
67
|
-
}
|
|
68
|
-
@Output() valueChange: Observable<unknown>
|
|
76
|
+
@Input() value: unknown
|
|
69
77
|
|
|
70
|
-
@
|
|
78
|
+
@Output() valueChange: EventEmitter<unknown> = new EventEmitter()
|
|
71
79
|
|
|
72
|
-
|
|
80
|
+
@ViewChild('titleInput') titleInput: ElementRef
|
|
73
81
|
|
|
74
|
-
|
|
75
|
-
this.valueChange = this.formControl.valueChanges
|
|
76
|
-
}
|
|
82
|
+
isHidden = false
|
|
77
83
|
|
|
78
84
|
focusTitleInput() {
|
|
79
85
|
this.titleInput.nativeElement.children[0].focus()
|
|
80
86
|
}
|
|
81
87
|
|
|
82
|
-
get
|
|
83
|
-
return this.model === 'title'
|
|
84
|
-
}
|
|
85
|
-
get isAbstract() {
|
|
86
|
-
return this.model === 'abstract'
|
|
87
|
-
}
|
|
88
|
-
get isLicenses() {
|
|
89
|
-
return this.model === 'licenses'
|
|
88
|
+
get withoutWrapper() {
|
|
89
|
+
return this.model === 'title' || this.model === 'abstract'
|
|
90
90
|
}
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
|
|
92
|
+
get valueAsString() {
|
|
93
|
+
return this.value as string
|
|
93
94
|
}
|
|
94
|
-
get
|
|
95
|
-
return this.
|
|
95
|
+
get valueAsDate() {
|
|
96
|
+
return this.value as Date
|
|
96
97
|
}
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
|
|
99
|
+
get valueAsOverviews() {
|
|
100
|
+
return this.value as Array<GraphicOverview>
|
|
99
101
|
}
|
|
100
|
-
get
|
|
101
|
-
return this.
|
|
102
|
+
get valueAsUpdateFrequency() {
|
|
103
|
+
return this.value as UpdateFrequency
|
|
102
104
|
}
|
|
103
|
-
get
|
|
104
|
-
return this.
|
|
105
|
+
get valueAsTemporalExtents() {
|
|
106
|
+
return this.value as Array<DatasetTemporalExtent>
|
|
105
107
|
}
|
|
106
|
-
get
|
|
107
|
-
return this.
|
|
108
|
+
get valueAsKeywords() {
|
|
109
|
+
return this.value as Array<Keyword>
|
|
108
110
|
}
|
|
109
|
-
get
|
|
110
|
-
return this.
|
|
111
|
+
get valueAsConstraints() {
|
|
112
|
+
return this.value as Array<Constraint>
|
|
111
113
|
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
return this.model === 'title' || this.model === 'abstract'
|
|
114
|
+
get valueAsIndividuals() {
|
|
115
|
+
return this.value as Array<Individual>
|
|
115
116
|
}
|
|
116
117
|
}
|
|
@@ -9,4 +9,3 @@ export * from './form-field-object/form-field-object.component'
|
|
|
9
9
|
export * from './form-field-array/form-field-array.component'
|
|
10
10
|
export * from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
11
11
|
export * from './form-field.component'
|
|
12
|
-
export * from './form-field.model'
|
|
@@ -1,11 +1,52 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
<
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
<ng-container>
|
|
2
|
+
<div class="flex flex-col gap-6 p-8">
|
|
3
|
+
<ng-container
|
|
4
|
+
*ngFor="
|
|
5
|
+
let section of facade.currentSections$ | async;
|
|
6
|
+
trackBy: sectionTracker
|
|
7
|
+
"
|
|
8
|
+
>
|
|
9
|
+
<ng-container *ngIf="!section.hidden">
|
|
10
|
+
<div class="flex flex-col gap-8 border p-8 rounded-[8px] shadow">
|
|
11
|
+
<div
|
|
12
|
+
class="flex flex-col gap-2"
|
|
13
|
+
[ngClass]="section.labelKey ? 'mb-4' : 'hidden'"
|
|
14
|
+
>
|
|
15
|
+
<div
|
|
16
|
+
*ngIf="section.labelKey"
|
|
17
|
+
class="text-2xl font-title text-secondary"
|
|
18
|
+
translate
|
|
19
|
+
>
|
|
20
|
+
{{ section.labelKey }}
|
|
21
|
+
</div>
|
|
22
|
+
<div
|
|
23
|
+
*ngIf="section.descriptionKey"
|
|
24
|
+
class="text-secondary-lightest"
|
|
25
|
+
translate
|
|
26
|
+
>
|
|
27
|
+
{{ section.descriptionKey }}
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
<ng-container
|
|
31
|
+
*ngFor="
|
|
32
|
+
let field of section.fieldsWithValues;
|
|
33
|
+
trackBy: fieldTracker
|
|
34
|
+
"
|
|
35
|
+
>
|
|
36
|
+
<ng-container *ngIf="!field.config.hidden">
|
|
37
|
+
<gn-ui-form-field
|
|
38
|
+
[uniqueIdentifier]="recordUniqueIdentifier$ | async"
|
|
39
|
+
[model]="field.config.model!"
|
|
40
|
+
[config]="field.config.formFieldConfig"
|
|
41
|
+
[value]="field.value"
|
|
42
|
+
(valueChange)="
|
|
43
|
+
handleFieldValueChange(field.config.model!, $event)
|
|
44
|
+
"
|
|
45
|
+
></gn-ui-form-field>
|
|
46
|
+
</ng-container>
|
|
47
|
+
</ng-container>
|
|
48
|
+
</div>
|
|
49
|
+
</ng-container>
|
|
50
|
+
</ng-container>
|
|
51
|
+
</div>
|
|
52
|
+
</ng-container>
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common'
|
|
2
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
3
3
|
import { EditorFacade } from '../../+state/editor.facade'
|
|
4
|
-
import {
|
|
4
|
+
import { EditorFieldValue } from '../../models'
|
|
5
5
|
import { FormFieldComponent } from './form-field'
|
|
6
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
7
|
+
import {
|
|
8
|
+
EditorFieldWithValue,
|
|
9
|
+
EditorSectionWithValues,
|
|
10
|
+
} from '../../+state/editor.models'
|
|
11
|
+
import { map } from 'rxjs'
|
|
6
12
|
|
|
7
13
|
@Component({
|
|
8
14
|
selector: 'gn-ui-record-form',
|
|
@@ -10,21 +16,27 @@ import { FormFieldComponent } from './form-field'
|
|
|
10
16
|
styleUrls: ['./record-form.component.css'],
|
|
11
17
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
18
|
standalone: true,
|
|
13
|
-
imports: [CommonModule, FormFieldComponent],
|
|
19
|
+
imports: [CommonModule, FormFieldComponent, TranslateModule],
|
|
14
20
|
})
|
|
15
21
|
export class RecordFormComponent {
|
|
16
|
-
|
|
22
|
+
recordUniqueIdentifier$ = this.facade.record$.pipe(
|
|
23
|
+
map((record) => record.uniqueIdentifier)
|
|
24
|
+
)
|
|
17
25
|
|
|
18
26
|
constructor(public facade: EditorFacade) {}
|
|
19
27
|
|
|
20
|
-
handleFieldValueChange(
|
|
21
|
-
if (!
|
|
28
|
+
handleFieldValueChange(model: string, newValue: EditorFieldValue) {
|
|
29
|
+
if (!model) {
|
|
22
30
|
return
|
|
23
31
|
}
|
|
24
|
-
this.facade.updateRecordField(
|
|
32
|
+
this.facade.updateRecordField(model, newValue)
|
|
25
33
|
}
|
|
26
34
|
|
|
27
|
-
fieldTracker(index: number, field:
|
|
35
|
+
fieldTracker(index: number, field: EditorFieldWithValue) {
|
|
28
36
|
return field.config.model
|
|
29
37
|
}
|
|
38
|
+
|
|
39
|
+
sectionTracker(index: number, section: EditorSectionWithValues) {
|
|
40
|
+
return section.labelKey
|
|
41
|
+
}
|
|
30
42
|
}
|
|
@@ -4,7 +4,7 @@ import { NgModule } from '@angular/core'
|
|
|
4
4
|
import { MatNativeDateModule } from '@angular/material/core'
|
|
5
5
|
import { MatDatepickerModule } from '@angular/material/datepicker'
|
|
6
6
|
import { MatFormFieldModule } from '@angular/material/form-field'
|
|
7
|
-
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
7
|
+
import { TextInputComponent, UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
8
8
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
9
9
|
import { EffectsModule } from '@ngrx/effects'
|
|
10
10
|
import { StoreModule } from '@ngrx/store'
|
|
@@ -38,6 +38,7 @@ import { Gn4PlatformService } from '../../../../../libs/api/repository/src'
|
|
|
38
38
|
fromEditor.editorReducer
|
|
39
39
|
),
|
|
40
40
|
EffectsModule.forFeature([EditorEffects]),
|
|
41
|
+
TextInputComponent,
|
|
41
42
|
],
|
|
42
43
|
exports: [WizardComponent, WizardSummarizeComponent],
|
|
43
44
|
providers: [EditorFacade, Gn4PlatformService],
|
|
@@ -1,71 +1,222 @@
|
|
|
1
1
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import {
|
|
3
|
+
EditorConfig,
|
|
4
|
+
EditorField,
|
|
5
|
+
EditorSection,
|
|
6
|
+
} from './models/editor-config.model'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* This file contains the configuration of the fields that will be displayed in the editor.
|
|
10
|
+
* To add a new field, you need to create a new EditorField object in the fields part of this file.
|
|
11
|
+
* Then add it to the corresponding section in the sections part of this file.
|
|
12
|
+
* Finally, add the section to the corresponding page in the pages part of this file.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/************************************************************
|
|
16
|
+
*************** FIELDS *****************
|
|
17
|
+
************************************************************
|
|
18
|
+
*/
|
|
19
|
+
|
|
20
|
+
export const RECORD_LICENSE_FIELD: EditorField = {
|
|
21
|
+
model: 'licenses',
|
|
22
|
+
formFieldConfig: {
|
|
23
|
+
labelKey: marker('editor.record.form.field.license'),
|
|
11
24
|
},
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export const RECORD_KEYWORDS_FIELD: EditorField = {
|
|
28
|
+
model: 'keywords',
|
|
29
|
+
formFieldConfig: {
|
|
30
|
+
labelKey: marker('editor.record.form.field.keywords'),
|
|
18
31
|
},
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export const RECORD_UNIQUE_IDENTIFIER_FIELD: EditorField = {
|
|
35
|
+
model: 'uniqueIdentifier',
|
|
36
|
+
formFieldConfig: {
|
|
37
|
+
labelKey: marker('editor.record.form.field.uniqueIdentifier'),
|
|
38
|
+
locked: true,
|
|
26
39
|
},
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
onSaveProcess: '${dateNow()}',
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export const RECORD_RESOURCE_UPDATED_FIELD: EditorField = {
|
|
43
|
+
model: 'resourceUpdated',
|
|
44
|
+
formFieldConfig: {
|
|
45
|
+
labelKey: marker('editor.record.form.field.resourceUpdated'),
|
|
35
46
|
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export const RECORD_UPDATED_FIELD: EditorField = {
|
|
50
|
+
model: 'recordUpdated',
|
|
51
|
+
formFieldConfig: {
|
|
52
|
+
labelKey: marker('editor.record.form.field.recordUpdated'),
|
|
53
|
+
locked: true,
|
|
42
54
|
},
|
|
43
|
-
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
55
|
+
onSaveProcess: '${dateNow()}',
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const RECORD_UPDATE_FREQUENCY_FIELD: EditorField = {
|
|
59
|
+
model: 'updateFrequency',
|
|
60
|
+
formFieldConfig: {
|
|
61
|
+
labelKey: marker('editor.record.form.field.updateFrequency'),
|
|
49
62
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export const RECORD_TEMPORAL_EXTENTS_FIELD: EditorField = {
|
|
66
|
+
model: 'temporalExtents',
|
|
67
|
+
formFieldConfig: {
|
|
68
|
+
labelKey: marker('editor.record.form.field.temporalExtents'),
|
|
56
69
|
},
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export const RECORD_TITLE_FIELD: EditorField = {
|
|
73
|
+
model: 'title',
|
|
74
|
+
formFieldConfig: {
|
|
75
|
+
labelKey: marker('editor.record.form.field.title'),
|
|
63
76
|
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export const RECORD_ABSTRACT_FIELD: EditorField = {
|
|
80
|
+
model: 'abstract',
|
|
81
|
+
formFieldConfig: {
|
|
82
|
+
labelKey: marker('editor.record.form.field.abstract'),
|
|
70
83
|
},
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export const CONTACTS_FOR_RESOURCE_FIELD: EditorField = {
|
|
87
|
+
model: 'contactsForResource',
|
|
88
|
+
formFieldConfig: {
|
|
89
|
+
labelKey: '',
|
|
90
|
+
},
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const RECORD_GRAPHICAL_OVERVIEW_FIELD: EditorField = {
|
|
94
|
+
model: 'overviews',
|
|
95
|
+
formFieldConfig: {
|
|
96
|
+
labelKey: marker('editor.record.form.field.overviews'),
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export const RECORD_SPATIAL_EXTENTS_FIELD: EditorField = {
|
|
101
|
+
model: 'spatialExtents',
|
|
102
|
+
formFieldConfig: {
|
|
103
|
+
labelKey: marker('editor.record.form.field.spatialExtents'),
|
|
104
|
+
},
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/************************************************************
|
|
108
|
+
*************** SECTIONS *****************
|
|
109
|
+
************************************************************
|
|
110
|
+
*/
|
|
111
|
+
|
|
112
|
+
export const TITLE_SECTION: EditorSection = {
|
|
113
|
+
hidden: false,
|
|
114
|
+
fields: [
|
|
115
|
+
RECORD_TITLE_FIELD,
|
|
116
|
+
RECORD_ABSTRACT_FIELD,
|
|
117
|
+
RECORD_GRAPHICAL_OVERVIEW_FIELD,
|
|
118
|
+
],
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export const ABOUT_SECTION: EditorSection = {
|
|
122
|
+
labelKey: marker('editor.record.form.section.about.label'),
|
|
123
|
+
descriptionKey: marker('editor.record.form.section.about.description'),
|
|
124
|
+
hidden: false,
|
|
125
|
+
fields: [
|
|
126
|
+
RECORD_UNIQUE_IDENTIFIER_FIELD,
|
|
127
|
+
RECORD_RESOURCE_UPDATED_FIELD,
|
|
128
|
+
RECORD_UPDATED_FIELD,
|
|
129
|
+
RECORD_UPDATE_FREQUENCY_FIELD,
|
|
130
|
+
RECORD_TEMPORAL_EXTENTS_FIELD,
|
|
131
|
+
],
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export const GEOGRAPHICAL_COVERAGE_SECTION: EditorSection = {
|
|
135
|
+
labelKey: marker('editor.record.form.section.geographicalCoverage.label'),
|
|
136
|
+
hidden: false,
|
|
137
|
+
fields: [RECORD_SPATIAL_EXTENTS_FIELD],
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export const ASSOCIATED_RESOURCES_SECTION: EditorSection = {
|
|
141
|
+
labelKey: marker('editor.record.form.section.associatedResources.label'),
|
|
142
|
+
descriptionKey: marker(
|
|
143
|
+
'editor.record.form.section.associatedResources.description'
|
|
144
|
+
),
|
|
145
|
+
hidden: false,
|
|
146
|
+
fields: [],
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export const ANNEXES_SECTION: EditorSection = {
|
|
150
|
+
labelKey: marker('editor.record.form.section.annexes.label'),
|
|
151
|
+
hidden: false,
|
|
152
|
+
fields: [],
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export const CLASSIFICATION_SECTION: EditorSection = {
|
|
156
|
+
labelKey: marker('editor.record.form.section.classification.label'),
|
|
157
|
+
descriptionKey: marker(
|
|
158
|
+
'editor.record.form.section.classification.description'
|
|
159
|
+
),
|
|
160
|
+
hidden: false,
|
|
161
|
+
fields: [RECORD_KEYWORDS_FIELD],
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export const USE_AND_ACCESS_CONDITIONS_SECTION: EditorSection = {
|
|
165
|
+
labelKey: marker('editor.record.form.section.useAndAccessConditions.label'),
|
|
166
|
+
hidden: false,
|
|
167
|
+
fields: [RECORD_LICENSE_FIELD],
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export const DATA_MANAGERS_SECTION: EditorSection = {
|
|
171
|
+
labelKey: marker('editor.record.form.section.dataManagers.label'),
|
|
172
|
+
descriptionKey: marker('editor.record.form.section.dataManagers.description'),
|
|
173
|
+
hidden: false,
|
|
174
|
+
fields: [CONTACTS_FOR_RESOURCE_FIELD],
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export const DATA_POINT_OF_CONTACT_SECTION: EditorSection = {
|
|
178
|
+
labelKey: marker('editor.record.form.section.dataPointOfContact.label'),
|
|
179
|
+
descriptionKey: marker(
|
|
180
|
+
'editor.record.form.section.dataPointOfContact.description'
|
|
181
|
+
),
|
|
182
|
+
hidden: false,
|
|
183
|
+
fields: [],
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/************************************************************
|
|
187
|
+
*************** PAGES *****************
|
|
188
|
+
************************************************************
|
|
189
|
+
*/
|
|
190
|
+
export const DEFAULT_CONFIGURATION: EditorConfig = {
|
|
191
|
+
pages: [
|
|
192
|
+
{
|
|
193
|
+
labelKey: marker('editor.record.form.page.description'),
|
|
194
|
+
sections: [TITLE_SECTION, ABOUT_SECTION, GEOGRAPHICAL_COVERAGE_SECTION],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
labelKey: marker('editor.record.form.page.ressources'),
|
|
198
|
+
sections: [ASSOCIATED_RESOURCES_SECTION, ANNEXES_SECTION],
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
labelKey: marker('editor.record.form.page.accessAndContact'),
|
|
202
|
+
sections: [
|
|
203
|
+
CLASSIFICATION_SECTION,
|
|
204
|
+
USE_AND_ACCESS_CONDITIONS_SECTION,
|
|
205
|
+
DATA_MANAGERS_SECTION,
|
|
206
|
+
DATA_POINT_OF_CONTACT_SECTION,
|
|
207
|
+
],
|
|
208
|
+
},
|
|
209
|
+
],
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/************************************************************
|
|
213
|
+
*************** LICENSES *****************
|
|
214
|
+
************************************************************
|
|
215
|
+
*/
|
|
216
|
+
export const OPEN_DATA_LICENSES: string[] = [
|
|
217
|
+
'etalab',
|
|
218
|
+
'etalab-v2',
|
|
219
|
+
'odbl',
|
|
220
|
+
'odc-by',
|
|
221
|
+
'pddl',
|
|
71
222
|
]
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CatalogRecordKeys } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
2
|
+
|
|
3
|
+
// Expressions should be enclosed in `${}` to be recognized as such
|
|
4
|
+
// eg. ${dateNow()}
|
|
5
|
+
export type EditorFieldExpression = `$\{${string}}`
|
|
6
|
+
|
|
7
|
+
export type EditorFieldValue = string | number | boolean | unknown
|
|
8
|
+
|
|
9
|
+
export interface FormFieldConfig {
|
|
10
|
+
labelKey?: string
|
|
11
|
+
hintKey?: string
|
|
12
|
+
tooltipKey?: string
|
|
13
|
+
required?: boolean
|
|
14
|
+
locked?: boolean
|
|
15
|
+
invalid?: boolean
|
|
16
|
+
invalidHintKey?: string
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface EditorField {
|
|
20
|
+
// configuration of the form field used as presentation
|
|
21
|
+
formFieldConfig: FormFieldConfig
|
|
22
|
+
|
|
23
|
+
// name of the target field in the record; will not change the record directly if not defined
|
|
24
|
+
model?: CatalogRecordKeys
|
|
25
|
+
|
|
26
|
+
// a hidden field won't show but can still be used to modify the record
|
|
27
|
+
// FIXME: currently this is redundant with an absence of formFieldConfig but necessary for clarity
|
|
28
|
+
hidden?: boolean
|
|
29
|
+
|
|
30
|
+
// the result of this expression will replace the field value on save
|
|
31
|
+
onSaveProcess?: EditorFieldExpression
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface EditorSection {
|
|
35
|
+
labelKey?: string
|
|
36
|
+
descriptionKey?: string
|
|
37
|
+
hidden: boolean
|
|
38
|
+
fields: EditorField[]
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface EditorFieldPage {
|
|
42
|
+
labelKey?: string
|
|
43
|
+
sections: EditorSection[]
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface EditorConfig {
|
|
47
|
+
pages: EditorFieldPage[]
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface EditorFieldState {
|
|
51
|
+
model: string
|
|
52
|
+
value: EditorFieldValue
|
|
53
|
+
}
|