geonetwork-ui 2.3.0-dev.6e2b8bea → 2.3.0-dev.89188551
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/index.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +6 -2
- package/esm2022/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.mjs +1 -1
- package/esm2022/libs/api/repository/src/lib/gn4/auth/gravatar.service.mjs +12 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +36 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +19 -7
- package/esm2022/libs/common/domain/src/lib/model/record/index.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/record/user-feedbacks.model.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/model/user/index.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/openapi/api/records.api.service.mjs +35 -7
- package/esm2022/libs/data-access/gn4/src/openapi/model/models.mjs +1 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +36 -3
- package/esm2022/libs/feature/editor/src/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/+state/editor.facade.mjs +6 -2
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.mjs +11 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.mjs +28 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.mjs +64 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.mjs +11 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.mjs +15 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.mjs +45 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.mjs +50 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +11 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +11 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +121 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.mjs +2 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +10 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +29 -0
- package/esm2022/libs/feature/editor/src/lib/components/wizard-field/wizard-field.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/feature-editor.module.mjs +10 -10
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +16 -1
- package/esm2022/libs/feature/editor/src/lib/models/fields.model.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +3 -3
- package/esm2022/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +1 -1
- package/esm2022/libs/feature/notifications/src/index.mjs +4 -0
- package/esm2022/libs/feature/notifications/src/lib/feature-notifications.module.mjs +18 -0
- package/esm2022/libs/feature/notifications/src/lib/notification.model.mjs +2 -0
- package/esm2022/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.mjs +49 -0
- package/esm2022/libs/feature/notifications/src/lib/notifications.service.mjs +29 -0
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +3 -2
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +22 -4
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +37 -10
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +22 -7
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +52 -17
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +18 -3
- package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +3 -3
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +15 -15
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +16 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.mjs +45 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/notification/notification.component.mjs +34 -0
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +37 -8
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +4 -3
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +14 -10
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +62 -0
- package/esm2022/libs/ui/inputs/src/index.mjs +16 -16
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +22 -0
- package/esm2022/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.mjs +7 -5
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +17 -8
- package/esm2022/libs/ui/inputs/src/lib/files-drop/files-drop.directive.mjs +59 -0
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +183 -0
- package/esm2022/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +29 -0
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +27 -4
- package/esm2022/libs/ui/inputs/src/lib/text-input/text-input.component.mjs +19 -3
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +18 -29
- package/esm2022/libs/ui/layout/src/index.mjs +7 -5
- package/esm2022/libs/ui/layout/src/lib/block-list/block-list.component.mjs +76 -0
- package/esm2022/libs/ui/layout/src/lib/carousel/carousel.component.mjs +42 -18
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
- package/esm2022/libs/ui/layout/src/lib/ui-layout.module.mjs +3 -8
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +2 -2
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +22 -1
- package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -0
- package/esm2022/libs/util/shared/src/lib/utils/image-resize.mjs +60 -0
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +8 -6
- package/esm2022/translations/de.json +39 -0
- package/esm2022/translations/en.json +39 -0
- package/esm2022/translations/es.json +39 -0
- package/esm2022/translations/fr.json +39 -0
- package/esm2022/translations/it.json +39 -0
- package/esm2022/translations/nl.json +39 -0
- package/esm2022/translations/pt.json +39 -0
- package/fesm2022/geonetwork-ui.mjs +3173 -1759
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/auth/gravatar.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +6 -2
- 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 +9 -6
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/index.d.ts +1 -0
- package/libs/common/domain/src/lib/model/record/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts +15 -0
- package/libs/common/domain/src/lib/model/record/user-feedbacks.model.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/user/index.d.ts +2 -0
- package/libs/common/domain/src/lib/model/user/index.d.ts.map +1 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +3 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts +9 -5
- package/libs/data-access/gn4/src/openapi/api/records.api.service.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/models.d.ts +0 -1
- package/libs/data-access/gn4/src/openapi/model/models.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +3 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/index.d.ts +1 -1
- package/libs/feature/editor/src/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts +8 -5
- package/libs/feature/editor/src/lib/+state/editor.facade.d.ts.map +1 -1
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-array/form-field-array.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-file/form-field-file.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts +39 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.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 +8 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts +16 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.d.ts +2 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +1 -0
- package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.d.ts +12 -4
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.model.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.d.ts +3 -3
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/feature-editor.module.d.ts +1 -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.map +1 -1
- package/libs/feature/editor/src/lib/models/fields.model.d.ts +1 -1
- package/libs/feature/notifications/src/index.d.ts +4 -0
- package/libs/feature/notifications/src/index.d.ts.map +1 -0
- package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts +7 -0
- package/libs/feature/notifications/src/lib/feature-notifications.module.d.ts.map +1 -0
- package/libs/feature/notifications/src/lib/notification.model.d.ts +7 -0
- package/libs/feature/notifications/src/lib/notification.model.d.ts.map +1 -0
- package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts +12 -0
- package/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.d.ts.map +1 -0
- package/libs/feature/notifications/src/lib/notifications.service.d.ts +15 -0
- package/libs/feature/notifications/src/lib/notifications.service.d.ts.map +1 -0
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +40 -6
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +24 -4
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +14 -4
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +8 -5
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +12 -9
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +14 -14
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts +13 -0
- package/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/notification/notification.component.d.ts +13 -0
- package/libs/ui/elements/src/lib/notification/notification.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +4 -2
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +29 -28
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +11 -0
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts +22 -0
- package/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/index.d.ts +15 -15
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/button/button.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +9 -0
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts +14 -0
- package/libs/ui/inputs/src/lib/files-drop/files-drop.directive.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +44 -0
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +12 -0
- package/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts +7 -1
- 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 +4 -1
- 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 +35 -42
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +6 -4
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts +25 -0
- package/libs/ui/layout/src/lib/block-list/block-list.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts +13 -6
- package/libs/ui/layout/src/lib/carousel/carousel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts +8 -0
- package/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts +4 -5
- package/libs/ui/layout/src/lib/ui-layout.module.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +18 -0
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -0
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/image-resize.d.ts +3 -0
- package/libs/util/shared/src/lib/utils/image-resize.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts +7 -5
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +7 -1
- package/src/libs/api/repository/src/lib/gn4/auth/avatar.service.interface.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/auth/gravatar.service.ts +12 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +51 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +34 -7
- package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/user-feedbacks.model.ts +15 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +3 -0
- package/src/libs/common/fixtures/src/index.ts +8 -6
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +8 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +3 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +83 -0
- package/src/libs/data-access/gn4/src/openapi/api/records.api.service.ts +43 -12
- package/src/libs/data-access/gn4/src/openapi/model/models.ts +0 -1
- package/src/libs/data-access/gn4/src/spec.yaml +1 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +52 -2
- package/src/libs/feature/editor/src/index.ts +1 -1
- package/src/libs/feature/editor/src/lib/+state/editor.facade.ts +8 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +8 -0
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +70 -0
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.ts +1 -0
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.ts +4 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.html +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.ts +64 -0
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.html +4 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.ts +15 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.html +20 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +44 -0
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.ts +4 -1
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css +0 -0
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +92 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +137 -0
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.css +0 -0
- package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.html +1 -0
- package/src/libs/feature/editor/src/lib/{record-form → components/record-form}/record-form.component.ts +4 -4
- package/src/libs/feature/editor/src/lib/feature-editor.module.ts +9 -9
- package/src/libs/feature/editor/src/lib/fields.config.ts +15 -0
- package/src/libs/feature/editor/src/lib/models/fields.model.ts +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
- package/src/libs/feature/notifications/src/index.ts +3 -0
- package/src/libs/feature/notifications/src/lib/feature-notifications.module.ts +10 -0
- package/src/libs/feature/notifications/src/lib/notification.model.ts +6 -0
- package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.css +0 -0
- package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.html +17 -0
- package/src/libs/feature/notifications/src/lib/notifications-container/notifications-container.component.ts +44 -0
- package/src/libs/feature/notifications/src/lib/notifications.service.ts +27 -0
- package/src/libs/feature/record/src/lib/feature-record.module.ts +5 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -1
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +51 -6
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +82 -7
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +48 -8
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +81 -24
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +40 -10
- package/src/libs/feature/router/src/lib/default/state/router.effects.ts +2 -2
- package/src/libs/feature/search/src/lib/results-table/results-table.component.html +3 -3
- package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html +5 -5
- package/src/libs/ui/elements/src/index.ts +14 -14
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +1 -1
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +1 -1
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.html +38 -20
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +12 -0
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.css +0 -5
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.html +0 -21
- package/src/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +1 -14
- package/src/libs/ui/elements/src/lib/notification/notification.component.css +0 -0
- package/src/libs/ui/elements/src/lib/notification/notification.component.html +52 -0
- package/src/libs/ui/elements/src/lib/notification/notification.component.ts +31 -0
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +2 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +43 -5
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +5 -3
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +6 -3
- package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +54 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.css +0 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +75 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +63 -0
- package/src/libs/ui/inputs/src/index.ts +15 -15
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.css +3 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.html +11 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +16 -0
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +8 -1
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +13 -0
- package/src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts +45 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +146 -0
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +193 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.css +6 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.html +26 -0
- package/src/libs/ui/inputs/src/lib/previous-next-buttons/previous-next-buttons.component.ts +32 -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 +29 -0
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/text-input/text-input.component.ts +16 -1
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +5 -21
- package/src/libs/ui/layout/src/index.ts +6 -4
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +23 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.html +20 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.ts +84 -0
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.css +7 -4
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.html +4 -4
- package/src/libs/ui/layout/src/lib/carousel/carousel.component.ts +45 -15
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.css +0 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.html +18 -0
- package/src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts +16 -0
- package/src/libs/ui/layout/src/lib/ui-layout.module.ts +0 -2
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +1 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +21 -0
- package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +3 -0
- package/src/libs/util/shared/src/lib/utils/image-resize.ts +72 -0
- package/src/libs/util/shared/src/lib/utils/index.ts +7 -5
- package/tailwind.base.css +36 -0
- package/translations/de.json +39 -0
- package/translations/en.json +39 -0
- package/translations/es.json +39 -0
- package/translations/fr.json +39 -0
- package/translations/it.json +39 -0
- package/translations/nl.json +39 -0
- package/translations/pt.json +39 -0
- package/translations/sk.json +39 -0
- package/esm2022/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.mjs +0 -13
- package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +0 -30
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.mjs +0 -11
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.mjs +0 -27
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.mjs +0 -11
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.mjs +0 -27
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.mjs +0 -49
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +0 -11
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.mjs +0 -11
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.component.mjs +0 -76
- package/esm2022/libs/ui/inputs/src/lib/form-field/form-field.model.mjs +0 -2
- package/esm2022/libs/ui/inputs/src/lib/form-field/index.mjs +0 -10
- package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts +0 -18
- package/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-array/form-field-array.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-file/form-field-file.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts +0 -11
- package/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field.component.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/form-field.model.d.ts.map +0 -1
- package/libs/ui/inputs/src/lib/form-field/index.d.ts.map +0 -1
- package/src/libs/data-access/gn4/src/openapi/model/inlineObject3.api.model.ts +0 -18
- package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.html +0 -11
- package/src/libs/ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.ts +0 -15
- package/src/libs/ui/inputs/src/lib/form-field/form-field.component.html +0 -68
- package/src/libs/ui/inputs/src/lib/form-field/form-field.component.ts +0 -80
- /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.d.ts +0 -0
- /package/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.d.ts +0 -0
- /package/src/libs/feature/editor/src/lib/{record-form/record-form.component.css → components/overview-upload/overview-upload.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.css +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-array/form-field-array.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.css +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-file/form-field-file.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-object/form-field-object.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-license/form-field-license.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-object/form-field-object.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-object/form-field-object.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-simple/form-field-simple.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-resource-updated/form-field-resource-updated.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-temporal-extent/form-field-temporal-extent.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-simple/form-field-simple.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-simple/form-field-simple.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field.component.css → feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.css} +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field-temporal-extent/form-field-temporal-extent.component.html +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.model.ts +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/index.ts +0 -0
|
File without changes
|
|
@@ -5,5 +5,6 @@ import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
|
5
5
|
templateUrl: './form-field-temporal-extent.component.html',
|
|
6
6
|
styleUrls: ['./form-field-temporal-extent.component.css'],
|
|
7
7
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
8
|
+
standalone: true,
|
|
8
9
|
})
|
|
9
10
|
export class FormFieldTemporalExtentComponent {}
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.css
ADDED
|
File without changes
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
<div class="flex flex-col h-full">
|
|
2
|
+
<ng-container *ngIf="withoutWrapper; else withGenericWrapper">
|
|
3
|
+
<ng-container *ngTemplateOutlet="fieldContent"></ng-container>
|
|
4
|
+
</ng-container>
|
|
5
|
+
<ng-template #withGenericWrapper>
|
|
6
|
+
<gn-ui-form-field-wrapper
|
|
7
|
+
[label]="config.labelKey | translate"
|
|
8
|
+
[hint]="config.hintKey | translate"
|
|
9
|
+
>
|
|
10
|
+
<ng-container *ngTemplateOutlet="fieldContent"></ng-container>
|
|
11
|
+
</gn-ui-form-field-wrapper>
|
|
12
|
+
</ng-template>
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
<ng-template #fieldContent>
|
|
16
|
+
<ng-container *ngIf="isTitle">
|
|
17
|
+
<div class="flex justify-between items-center gap-3">
|
|
18
|
+
<h2
|
|
19
|
+
#titleInput
|
|
20
|
+
class="grow text-3xl font-normal"
|
|
21
|
+
[gnUiEditableLabel]="true"
|
|
22
|
+
(editableLabelChanged)="formControl.setValue($event)"
|
|
23
|
+
>
|
|
24
|
+
{{ formControl.value }}
|
|
25
|
+
</h2>
|
|
26
|
+
<span
|
|
27
|
+
class="material-symbols-outlined gn-ui-icon-small m-2 cursor-pointer"
|
|
28
|
+
(click)="focusTitleInput()"
|
|
29
|
+
>edit</span
|
|
30
|
+
>
|
|
31
|
+
<span
|
|
32
|
+
class="material-symbols-outlined gn-ui-icon-small m-2"
|
|
33
|
+
[matTooltip]="config.hintKey | translate"
|
|
34
|
+
matTooltipPosition="above"
|
|
35
|
+
>
|
|
36
|
+
help
|
|
37
|
+
</span>
|
|
38
|
+
</div>
|
|
39
|
+
</ng-container>
|
|
40
|
+
<ng-container *ngIf="isAbstract">
|
|
41
|
+
<gn-ui-form-field-rich
|
|
42
|
+
class="h-[8rem]"
|
|
43
|
+
[control]="formControl"
|
|
44
|
+
[label]="config.labelKey | translate"
|
|
45
|
+
[hint]="config.hintKey | translate"
|
|
46
|
+
></gn-ui-form-field-rich>
|
|
47
|
+
</ng-container>
|
|
48
|
+
<ng-container *ngIf="isLicenses">
|
|
49
|
+
<gn-ui-form-field-license
|
|
50
|
+
[control]="formControl"
|
|
51
|
+
[label]="config.labelKey | translate"
|
|
52
|
+
></gn-ui-form-field-license>
|
|
53
|
+
</ng-container>
|
|
54
|
+
<ng-container *ngIf="isResourceUpdated">
|
|
55
|
+
<gn-ui-form-field-resource-updated
|
|
56
|
+
[control]="formControl"
|
|
57
|
+
></gn-ui-form-field-resource-updated>
|
|
58
|
+
</ng-container>
|
|
59
|
+
<ng-container *ngIf="isSimpleField">
|
|
60
|
+
<gn-ui-form-field-simple
|
|
61
|
+
[type]="simpleType"
|
|
62
|
+
[control]="formControl"
|
|
63
|
+
[readonly]="isFieldLocked"
|
|
64
|
+
[invalid]="isFieldInvalid"
|
|
65
|
+
></gn-ui-form-field-simple>
|
|
66
|
+
</ng-container>
|
|
67
|
+
<ng-container *ngIf="isFileField">
|
|
68
|
+
<gn-ui-form-field-file
|
|
69
|
+
[control]="formControl"
|
|
70
|
+
[readonly]="isFieldLocked"
|
|
71
|
+
[invalid]="isFieldInvalid"
|
|
72
|
+
></gn-ui-form-field-file>
|
|
73
|
+
</ng-container>
|
|
74
|
+
<ng-container *ngIf="isArrayField">
|
|
75
|
+
<gn-ui-form-field-array></gn-ui-form-field-array>
|
|
76
|
+
</ng-container>
|
|
77
|
+
<ng-container *ngIf="isObjectField">
|
|
78
|
+
<gn-ui-form-field-object></gn-ui-form-field-object>
|
|
79
|
+
</ng-container>
|
|
80
|
+
<ng-container *ngIf="isSpatialExtentField">
|
|
81
|
+
<gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
|
|
82
|
+
</ng-container>
|
|
83
|
+
<ng-container *ngIf="isTemporalExtentField">
|
|
84
|
+
<gn-ui-form-field-temporal-extent></gn-ui-form-field-temporal-extent>
|
|
85
|
+
</ng-container>
|
|
86
|
+
<div
|
|
87
|
+
*ngIf="isFieldInvalid && config.invalidHintKey"
|
|
88
|
+
class="mt-2 text-pink-500 text-sm field-invalid-hint"
|
|
89
|
+
>
|
|
90
|
+
{{ config.invalidHintKey | translate }}
|
|
91
|
+
</div>
|
|
92
|
+
</ng-template>
|
package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import {
|
|
3
|
+
ChangeDetectionStrategy,
|
|
4
|
+
Component,
|
|
5
|
+
ElementRef,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
ViewChild,
|
|
9
|
+
} from '@angular/core'
|
|
10
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms'
|
|
11
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
12
|
+
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
13
|
+
import { EditableLabelDirective } from '../../../../../../../../libs/ui/inputs/src'
|
|
14
|
+
import { FormFieldWrapperComponent } from '../../../../../../../../libs/ui/layout/src'
|
|
15
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
16
|
+
import { Observable } from 'rxjs'
|
|
17
|
+
import { FormFieldArrayComponent } from './form-field-array/form-field-array.component'
|
|
18
|
+
import { FormFieldFileComponent } from './form-field-file/form-field-file.component'
|
|
19
|
+
import { FormFieldLicenseComponent } from './form-field-license/form-field-license.component'
|
|
20
|
+
import { FormFieldObjectComponent } from './form-field-object/form-field-object.component'
|
|
21
|
+
import { FormFieldResourceUpdatedComponent } from './form-field-resource-updated/form-field-resource-updated.component'
|
|
22
|
+
import { FormFieldRichComponent } from './form-field-rich/form-field-rich.component'
|
|
23
|
+
import { FormFieldSimpleComponent } from './form-field-simple/form-field-simple.component'
|
|
24
|
+
import { FormFieldSpatialExtentComponent } from './form-field-spatial-extent/form-field-spatial-extent.component'
|
|
25
|
+
import { FormFieldTemporalExtentComponent } from './form-field-temporal-extent/form-field-temporal-extent.component'
|
|
26
|
+
import { FormFieldConfig } from './form-field.model'
|
|
27
|
+
|
|
28
|
+
@Component({
|
|
29
|
+
selector: 'gn-ui-form-field',
|
|
30
|
+
templateUrl: './form-field.component.html',
|
|
31
|
+
styleUrls: ['./form-field.component.css'],
|
|
32
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
33
|
+
standalone: true,
|
|
34
|
+
imports: [
|
|
35
|
+
CommonModule,
|
|
36
|
+
ReactiveFormsModule,
|
|
37
|
+
EditableLabelDirective,
|
|
38
|
+
MatIconModule,
|
|
39
|
+
MatTooltipModule,
|
|
40
|
+
FormFieldWrapperComponent,
|
|
41
|
+
FormFieldLicenseComponent,
|
|
42
|
+
FormFieldResourceUpdatedComponent,
|
|
43
|
+
FormFieldSimpleComponent,
|
|
44
|
+
FormFieldRichComponent,
|
|
45
|
+
FormFieldObjectComponent,
|
|
46
|
+
FormFieldSpatialExtentComponent,
|
|
47
|
+
FormFieldTemporalExtentComponent,
|
|
48
|
+
FormFieldFileComponent,
|
|
49
|
+
FormFieldArrayComponent,
|
|
50
|
+
TranslateModule,
|
|
51
|
+
],
|
|
52
|
+
})
|
|
53
|
+
export class FormFieldComponent {
|
|
54
|
+
@Input() model: string
|
|
55
|
+
@Input() config: FormFieldConfig
|
|
56
|
+
@Input() set value(v: unknown) {
|
|
57
|
+
this.formControl.setValue(v, {
|
|
58
|
+
emitEvent: false,
|
|
59
|
+
})
|
|
60
|
+
}
|
|
61
|
+
@Output() valueChange: Observable<unknown>
|
|
62
|
+
|
|
63
|
+
@ViewChild('titleInput') titleInput: ElementRef
|
|
64
|
+
|
|
65
|
+
formControl = new FormControl()
|
|
66
|
+
|
|
67
|
+
constructor() {
|
|
68
|
+
this.valueChange = this.formControl.valueChanges
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
focusTitleInput() {
|
|
72
|
+
this.titleInput.nativeElement.children[0].focus()
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
get simpleType() {
|
|
76
|
+
return this.config.type as
|
|
77
|
+
| 'date'
|
|
78
|
+
| 'url'
|
|
79
|
+
| 'text'
|
|
80
|
+
| 'number'
|
|
81
|
+
| 'list'
|
|
82
|
+
| 'toggle'
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
get isSimpleField() {
|
|
86
|
+
return (
|
|
87
|
+
this.config.type === 'text' ||
|
|
88
|
+
this.config.type === 'number' ||
|
|
89
|
+
this.config.type === 'date' ||
|
|
90
|
+
this.config.type === 'list' ||
|
|
91
|
+
this.config.type === 'url' ||
|
|
92
|
+
this.config.type === 'toggle'
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
get isFileField() {
|
|
96
|
+
return this.config.type === 'file'
|
|
97
|
+
}
|
|
98
|
+
get isSpatialExtentField() {
|
|
99
|
+
return this.config.type === 'spatial_extent'
|
|
100
|
+
}
|
|
101
|
+
get isTemporalExtentField() {
|
|
102
|
+
return this.config.type === 'temporal_extent'
|
|
103
|
+
}
|
|
104
|
+
get isArrayField() {
|
|
105
|
+
return this.config.type === 'array'
|
|
106
|
+
}
|
|
107
|
+
get isObjectField() {
|
|
108
|
+
return this.config.type === 'object'
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get isFieldOk() {
|
|
112
|
+
return !this.config.locked && !this.config.invalid
|
|
113
|
+
}
|
|
114
|
+
get isFieldLocked() {
|
|
115
|
+
return this.config.locked
|
|
116
|
+
}
|
|
117
|
+
get isFieldInvalid() {
|
|
118
|
+
return !this.config.locked && this.config.invalid
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
get isTitle() {
|
|
122
|
+
return this.model === 'title'
|
|
123
|
+
}
|
|
124
|
+
get isAbstract() {
|
|
125
|
+
return this.model === 'abstract'
|
|
126
|
+
}
|
|
127
|
+
get isLicenses() {
|
|
128
|
+
return this.model === 'licenses'
|
|
129
|
+
}
|
|
130
|
+
get isResourceUpdated() {
|
|
131
|
+
return this.model === 'resourceUpdated'
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
get withoutWrapper() {
|
|
135
|
+
return this.model === 'title' || this.model === 'abstract'
|
|
136
|
+
}
|
|
137
|
+
}
|
|
File without changes
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<ng-container *ngFor="let field of fields$ | async; trackBy: fieldTracker">
|
|
3
3
|
<gn-ui-form-field
|
|
4
4
|
*ngIf="field.config.formFieldConfig && !field.config.hidden"
|
|
5
|
+
[model]="field.config.model"
|
|
5
6
|
[config]="field.config.formFieldConfig"
|
|
6
7
|
[value]="field.value"
|
|
7
8
|
(valueChange)="handleFieldValueChange(field, $event)"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CommonModule } from '@angular/common'
|
|
2
2
|
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { EditorFacade } from '../../+state/editor.facade'
|
|
4
|
+
import { EditorFieldState, EditorFieldValue } from '../../models/fields.model'
|
|
5
|
+
import { FormFieldComponent } from './form-field'
|
|
6
6
|
|
|
7
7
|
@Component({
|
|
8
8
|
selector: 'gn-ui-record-form',
|
|
@@ -10,7 +10,7 @@ import { EditorFieldState, EditorFieldValue } from '../models/fields.model'
|
|
|
10
10
|
styleUrls: ['./record-form.component.css'],
|
|
11
11
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
12
|
standalone: true,
|
|
13
|
-
imports: [CommonModule,
|
|
13
|
+
imports: [CommonModule, FormFieldComponent],
|
|
14
14
|
})
|
|
15
15
|
export class RecordFormComponent {
|
|
16
16
|
fields$ = this.facade.recordFields$
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'
|
|
1
3
|
import { NgModule } from '@angular/core'
|
|
2
4
|
import { MatNativeDateModule } from '@angular/material/core'
|
|
3
5
|
import { MatDatepickerModule } from '@angular/material/datepicker'
|
|
4
6
|
import { MatFormFieldModule } from '@angular/material/form-field'
|
|
5
|
-
import { WizardComponent } from './components/wizard/wizard.component'
|
|
6
|
-
import { WizardFieldComponent } from './components/wizard-field/wizard-field.component'
|
|
7
7
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
8
8
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
9
|
-
import { TranslateModule } from '@ngx-translate/core'
|
|
10
|
-
import { WizardSummarizeComponent } from './components/wizard-summarize/wizard-summarize.component'
|
|
11
|
-
import { CommonModule } from '@angular/common'
|
|
12
|
-
import { HttpClientModule, HttpClientXsrfModule } from '@angular/common/http'
|
|
13
|
-
import { StoreModule } from '@ngrx/store'
|
|
14
9
|
import { EffectsModule } from '@ngrx/effects'
|
|
15
|
-
import
|
|
10
|
+
import { StoreModule } from '@ngrx/store'
|
|
11
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
16
12
|
import { EditorEffects } from './+state/editor.effects'
|
|
17
13
|
import { EditorFacade } from './+state/editor.facade'
|
|
14
|
+
import * as fromEditor from './+state/editor.reducer'
|
|
15
|
+
import { WizardFieldComponent } from './components/wizard-field/wizard-field.component'
|
|
16
|
+
import { WizardSummarizeComponent } from './components/wizard-summarize/wizard-summarize.component'
|
|
17
|
+
import { WizardComponent } from './components/wizard/wizard.component'
|
|
18
18
|
|
|
19
19
|
@NgModule({
|
|
20
20
|
declarations: [
|
|
@@ -42,5 +42,5 @@ import { EditorFacade } from './+state/editor.facade'
|
|
|
42
42
|
providers: [EditorFacade],
|
|
43
43
|
})
|
|
44
44
|
export class FeatureEditorModule {}
|
|
45
|
-
export * from './services/wizard.service'
|
|
46
45
|
export * from './models/index'
|
|
46
|
+
export * from './services/wizard.service'
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
1
2
|
import { EditorFieldsConfig } from './models/fields.model'
|
|
2
3
|
|
|
3
4
|
export const DEFAULT_FIELDS: EditorFieldsConfig = [
|
|
@@ -32,4 +33,18 @@ export const DEFAULT_FIELDS: EditorFieldsConfig = [
|
|
|
32
33
|
},
|
|
33
34
|
onSaveProcess: '${dateNow()}',
|
|
34
35
|
},
|
|
36
|
+
{
|
|
37
|
+
model: 'licenses',
|
|
38
|
+
formFieldConfig: {
|
|
39
|
+
labelKey: marker('editor.record.form.license'),
|
|
40
|
+
type: 'list',
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
model: 'resourceUpdated',
|
|
45
|
+
formFieldConfig: {
|
|
46
|
+
labelKey: marker('editor.record.form.resourceUpdated'),
|
|
47
|
+
type: 'date',
|
|
48
|
+
},
|
|
49
|
+
},
|
|
35
50
|
]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="flex flex-col gap-2 my-2">
|
|
2
2
|
<div class="flex items-center gap-4">
|
|
3
|
-
<div class="
|
|
3
|
+
<div class="grow rounded-md border-2 border-gray-200">
|
|
4
4
|
<gn-ui-drag-and-drop-file-input
|
|
5
5
|
(fileChange)="handleFileChange($event)"
|
|
6
6
|
[accept]="acceptedMimeType.join(',')"
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="flex flex-col gap-6 p-6 items-start pointer-events-none">
|
|
2
|
+
<gn-ui-notification
|
|
3
|
+
*ngFor="
|
|
4
|
+
let notification of notificationsService.notifications$ | async;
|
|
5
|
+
trackBy: trackById
|
|
6
|
+
"
|
|
7
|
+
class="max-w-full pointer-events-auto"
|
|
8
|
+
[text]="notification.text"
|
|
9
|
+
[type]="notification.type"
|
|
10
|
+
[title]="notification.title"
|
|
11
|
+
[closeMessage]="notification.closeMessage"
|
|
12
|
+
(notificationClose)="
|
|
13
|
+
notificationsService.removeNotificationById(notification.id)
|
|
14
|
+
"
|
|
15
|
+
[@enterExit]
|
|
16
|
+
></gn-ui-notification>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { NotificationsService } from '../notifications.service'
|
|
4
|
+
import { NotificationComponent } from '../../../../../../libs/ui/elements/src'
|
|
5
|
+
import {
|
|
6
|
+
animate,
|
|
7
|
+
keyframes,
|
|
8
|
+
style,
|
|
9
|
+
transition,
|
|
10
|
+
trigger,
|
|
11
|
+
} from '@angular/animations'
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'gn-ui-notifications-container',
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [CommonModule, NotificationComponent],
|
|
17
|
+
templateUrl: './notifications-container.component.html',
|
|
18
|
+
styleUrls: ['./notifications-container.component.css'],
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
animations: [
|
|
21
|
+
trigger('enterExit', [
|
|
22
|
+
transition(':enter', [
|
|
23
|
+
animate(
|
|
24
|
+
'150ms',
|
|
25
|
+
keyframes([
|
|
26
|
+
style({ transform: 'scale(1)', opacity: 0 }),
|
|
27
|
+
style({ transform: 'scale(1.03)', opacity: 0.5 }),
|
|
28
|
+
style({ transform: 'scale(1)', opacity: 1 }),
|
|
29
|
+
])
|
|
30
|
+
),
|
|
31
|
+
]),
|
|
32
|
+
transition(':leave', [
|
|
33
|
+
animate('200ms', style({ transform: 'translateX(50px)', opacity: 0 })),
|
|
34
|
+
]),
|
|
35
|
+
]),
|
|
36
|
+
],
|
|
37
|
+
})
|
|
38
|
+
export class NotificationsContainerComponent {
|
|
39
|
+
constructor(protected notificationsService: NotificationsService) {}
|
|
40
|
+
|
|
41
|
+
trackById(index: number, notification: { id: number }) {
|
|
42
|
+
return notification.id
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core'
|
|
2
|
+
import { NotificationContent } from './notification.model'
|
|
3
|
+
import { BehaviorSubject } from 'rxjs'
|
|
4
|
+
|
|
5
|
+
type NotificationWithIdentity = NotificationContent & { id: number }
|
|
6
|
+
|
|
7
|
+
@Injectable({
|
|
8
|
+
providedIn: 'root',
|
|
9
|
+
})
|
|
10
|
+
export class NotificationsService {
|
|
11
|
+
notifications$ = new BehaviorSubject<NotificationWithIdentity[]>([])
|
|
12
|
+
|
|
13
|
+
showNotification(content: NotificationContent, timeoutMs?: number) {
|
|
14
|
+
const id = Math.floor(Math.random() * 1000000)
|
|
15
|
+
this.notifications$.next([...this.notifications$.value, { ...content, id }])
|
|
16
|
+
if (typeof timeoutMs === 'undefined') return
|
|
17
|
+
setTimeout(() => {
|
|
18
|
+
this.removeNotificationById(id)
|
|
19
|
+
}, timeoutMs)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
removeNotificationById(id: number) {
|
|
23
|
+
this.notifications$.next(
|
|
24
|
+
this.notifications$.value.filter((n) => n.id !== id)
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -11,7 +11,10 @@ import { MdViewFacade } from './state'
|
|
|
11
11
|
import { MdViewEffects } from './state/mdview.effects'
|
|
12
12
|
import { MapViewComponent } from './map-view/map-view.component'
|
|
13
13
|
import { DataViewComponent } from './data-view/data-view.component'
|
|
14
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
METADATA_VIEW_FEATURE_STATE_KEY,
|
|
16
|
+
reducer,
|
|
17
|
+
} from './state/mdview.reducer'
|
|
15
18
|
import { MatTabsModule } from '@angular/material/tabs'
|
|
16
19
|
import { MatIconModule } from '@angular/material/icon'
|
|
17
20
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
@@ -35,7 +38,7 @@ import { DataViewShareComponent } from './data-view-share/data-view-share.compon
|
|
|
35
38
|
],
|
|
36
39
|
imports: [
|
|
37
40
|
CommonModule,
|
|
38
|
-
StoreModule.forFeature(
|
|
41
|
+
StoreModule.forFeature(METADATA_VIEW_FEATURE_STATE_KEY, reducer),
|
|
39
42
|
EffectsModule.forFeature([MdViewEffects]),
|
|
40
43
|
UiLayoutModule,
|
|
41
44
|
FeatureMapModule,
|
|
@@ -196,7 +196,8 @@ export class MapViewComponent implements OnInit, OnDestroy {
|
|
|
196
196
|
} else if (
|
|
197
197
|
(link.type === 'service' &&
|
|
198
198
|
(link.accessServiceProtocol === 'wfs' ||
|
|
199
|
-
link.accessServiceProtocol === 'esriRest'
|
|
199
|
+
link.accessServiceProtocol === 'esriRest' ||
|
|
200
|
+
link.accessServiceProtocol === 'ogcFeatures')) ||
|
|
200
201
|
link.type === 'download'
|
|
201
202
|
) {
|
|
202
203
|
return this.dataService.readAsGeoJson(link).pipe(
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { DatavizConfigurationModel } from '../../../../../../libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model'
|
|
2
2
|
import { createAction, props } from '@ngrx/store'
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
CatalogRecord,
|
|
5
|
+
UserFeedback,
|
|
6
|
+
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
4
7
|
|
|
8
|
+
/*
|
|
9
|
+
Metadata actions
|
|
10
|
+
*/
|
|
5
11
|
export const loadFullMetadata = createAction(
|
|
6
12
|
'[Metadata view] Load full metadata',
|
|
7
13
|
props<{ uuid: string }>()
|
|
@@ -12,24 +18,63 @@ export const setIncompleteMetadata = createAction(
|
|
|
12
18
|
props<{ incomplete: Partial<CatalogRecord> }>()
|
|
13
19
|
)
|
|
14
20
|
|
|
15
|
-
export const
|
|
16
|
-
'[Metadata view] Load full success',
|
|
21
|
+
export const loadFullMetadataSuccess = createAction(
|
|
22
|
+
'[Metadata view] Load full metadata success',
|
|
17
23
|
props<{ full: CatalogRecord }>()
|
|
18
24
|
)
|
|
19
25
|
|
|
20
|
-
export const
|
|
21
|
-
'[Metadata view] Load full failure',
|
|
26
|
+
export const loadFullMetadataFailure = createAction(
|
|
27
|
+
'[Metadata view] Load full metadata failure',
|
|
22
28
|
props<{ otherError?: string; notFound?: boolean }>()
|
|
23
29
|
)
|
|
24
30
|
|
|
31
|
+
export const closeMetadata = createAction('[Metadata view] close')
|
|
32
|
+
|
|
33
|
+
/*
|
|
34
|
+
Related actions
|
|
35
|
+
*/
|
|
25
36
|
export const setRelated = createAction(
|
|
26
37
|
'[Metadata view] Set related records',
|
|
27
38
|
props<{ related: CatalogRecord[] }>()
|
|
28
39
|
)
|
|
29
40
|
|
|
41
|
+
/*
|
|
42
|
+
ChartConfig actions
|
|
43
|
+
*/
|
|
30
44
|
export const setChartConfig = createAction(
|
|
31
45
|
'[Metadata view] Set chart config',
|
|
32
46
|
props<{ chartConfig: DatavizConfigurationModel }>()
|
|
33
47
|
)
|
|
34
48
|
|
|
35
|
-
|
|
49
|
+
/*
|
|
50
|
+
User Feedbacks actions
|
|
51
|
+
*/
|
|
52
|
+
export const addUserFeedback = createAction(
|
|
53
|
+
'[Metadata view] Add UserFeedback',
|
|
54
|
+
props<{ userFeedback: UserFeedback }>()
|
|
55
|
+
)
|
|
56
|
+
|
|
57
|
+
export const addUserFeedbackSuccess = createAction(
|
|
58
|
+
'[Metadata view] Add UserFeedback Success',
|
|
59
|
+
props<{ datasetUuid: string }>()
|
|
60
|
+
)
|
|
61
|
+
|
|
62
|
+
export const addUserFeedbackFailure = createAction(
|
|
63
|
+
'[Metadata view] Add UserFeedback Failure',
|
|
64
|
+
props<{ otherError?: string; notFound?: boolean }>()
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
export const loadUserFeedbacks = createAction(
|
|
68
|
+
'[Metadata view] Load UserFeedbacks',
|
|
69
|
+
props<{ datasetUuid: string }>()
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
export const loadUserFeedbacksSuccess = createAction(
|
|
73
|
+
'[Metadata view] Load UserFeedbacks Success',
|
|
74
|
+
props<{ userFeedbacks: UserFeedback[] }>()
|
|
75
|
+
)
|
|
76
|
+
|
|
77
|
+
export const loadUserFeedbacksFailure = createAction(
|
|
78
|
+
'[Metadata view] Load UserFeedbacks Failure',
|
|
79
|
+
props<{ otherError?: string; notFound?: boolean }>()
|
|
80
|
+
)
|