geonetwork-ui 2.3.0-dev.3d65a13b → 2.3.0-dev.3efe236f
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/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-object/form-field-object.component.mjs +11 -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 +107 -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/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/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/image-overlay-preview/image-overlay-preview.component.mjs +5 -5
- 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 +3 -3
- 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 -5
- 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 +1 -2
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -1
- 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/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 +10 -23
- package/esm2022/libs/ui/layout/src/index.mjs +6 -5
- package/esm2022/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.mjs +18 -0
- 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 +33 -0
- package/esm2022/translations/en.json +33 -0
- package/esm2022/translations/es.json +33 -0
- package/esm2022/translations/fr.json +33 -0
- package/esm2022/translations/it.json +33 -0
- package/esm2022/translations/nl.json +33 -0
- package/esm2022/translations/pt.json +33 -0
- package/fesm2022/geonetwork-ui.mjs +2168 -1119
- 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/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/{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-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 +9 -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/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/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/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/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 +10 -8
- 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 +0 -1
- 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/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/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 +26 -33
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +5 -4
- package/libs/ui/layout/src/index.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/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/records.fixtures.ts +1 -1
- 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/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/{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-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/{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/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.html +28 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +121 -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/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/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 +49 -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/image-overlay-preview/image-overlay-preview.component.html +1 -1
- 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 +1 -1
- 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 -1
- 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 +0 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.ts +1 -1
- 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/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 +3 -19
- package/src/libs/ui/layout/src/index.ts +5 -4
- 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/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 +33 -0
- package/translations/en.json +33 -0
- package/translations/es.json +33 -0
- package/translations/fr.json +33 -0
- package/translations/it.json +33 -0
- package/translations/nl.json +33 -0
- package/translations/pt.json +33 -0
- package/translations/sk.json +33 -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.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 → 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 → 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 → 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 → 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.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.html +0 -0
- /package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.css +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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-elements.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/elements/src/lib/ui-elements.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,qBAiEa,gBAAgB;yCAAhB,gBAAgB;0CAAhB,gBAAgB;0CAAhB,gBAAgB;CAAG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TimeSincePipe implements PipeTransform {
|
|
5
|
+
private translate;
|
|
6
|
+
constructor(translate: TranslateService);
|
|
7
|
+
transform(value: Date): string;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeSincePipe, never>;
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimeSincePipe, "timeSince", true>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=time-since.pipe.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-since.pipe.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAItD,qBAIa,aAAc,YAAW,aAAa;IACrC,OAAO,CAAC,SAAS;gBAAT,SAAS,EAAE,gBAAgB;IAE/C,SAAS,CAAC,KAAK,EAAE,IAAI,GAAG,MAAM;yCAHnB,aAAa;uCAAb,aAAa;CA4CzB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { UserFeedback, UserFeedbackViewModel } from '../../../../../../libs/common/domain/src/lib/model/record';
|
|
3
|
+
import { UserModel } from '../../../../../../libs/common/domain/src/lib/model/user';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class UserFeedbackItemComponent implements OnInit {
|
|
6
|
+
userFeedbackParent: UserFeedbackViewModel;
|
|
7
|
+
userFeedBacksAnswers: UserFeedbackViewModel[];
|
|
8
|
+
isActiveUserEditor: boolean;
|
|
9
|
+
activeUser: UserModel;
|
|
10
|
+
isLastComment: boolean;
|
|
11
|
+
isAddUserFeedbackLoading: boolean;
|
|
12
|
+
newUserFeedbackAnswer: EventEmitter<UserFeedback>;
|
|
13
|
+
isAnAnswer: boolean;
|
|
14
|
+
newAnswer: string;
|
|
15
|
+
isAnswerEmpty: boolean;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
onNewAnswerValueChange(): void;
|
|
18
|
+
publishNewAnswer(): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserFeedbackItemComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserFeedbackItemComponent, "gn-ui-user-feedback-item", never, { "userFeedbackParent": { "alias": "userFeedbackParent"; "required": false; }; "userFeedBacksAnswers": { "alias": "userFeedBacksAnswers"; "required": false; }; "isActiveUserEditor": { "alias": "isActiveUserEditor"; "required": false; }; "activeUser": { "alias": "activeUser"; "required": false; }; "isLastComment": { "alias": "isLastComment"; "required": false; }; "isAddUserFeedbackLoading": { "alias": "isAddUserFeedbackLoading"; "required": false; }; }, { "newUserFeedbackAnswer": "newUserFeedbackAnswer"; }, never, never, false, never>;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=user-feedback-item.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-feedback-item.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEZ,MAAM,EAEP,MAAM,eAAe,CAAA;AACtB,OAAO,EACL,YAAY,EACZ,qBAAqB,EACtB,MAAM,2DAA2D,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,yDAAyD,CAAA;;AAEnF,qBAMa,yBAA0B,YAAW,MAAM;IAC7C,kBAAkB,EAAE,qBAAqB,CAAA;IACzC,oBAAoB,EAAE,qBAAqB,EAAE,CAAA;IAC7C,kBAAkB,EAAE,OAAO,CAAA;IAC3B,UAAU,EAAE,SAAS,CAAA;IACrB,aAAa,EAAE,OAAO,CAAA;IACtB,wBAAwB,EAAE,OAAO,CAAA;IAEhC,qBAAqB,6BAAmC;IAElE,UAAU,UAAQ;IAClB,SAAS,SAAK;IACd,aAAa,UAAO;IAEpB,QAAQ,IAAI,IAAI;IAIhB,sBAAsB;IAItB,gBAAgB;yCAtBL,yBAAyB;2CAAzB,yBAAyB;CA0CrC"}
|
|
@@ -11,7 +11,6 @@ export * from './lib/button/button.component';
|
|
|
11
11
|
export * from './lib/viewport-intersector/viewport-intersector.component';
|
|
12
12
|
export * from './lib/check-toggle/check-toggle.component';
|
|
13
13
|
export * from './lib/ui-inputs.module';
|
|
14
|
-
export * from './lib/form-field';
|
|
15
14
|
export * from './lib/copy-text-button/copy-text-button.component';
|
|
16
15
|
export * from './lib/drag-and-drop-file-input/drag-and-drop-file-input.component';
|
|
17
16
|
export * from './lib/navigation-button/navigation-button.component';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,wBAAwB,CAAA;AACtC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/inputs/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qDAAqD,CAAA;AACnE,cAAc,iDAAiD,CAAA;AAC/D,cAAc,2DAA2D,CAAA;AACzE,cAAc,uDAAuD,CAAA;AACrE,cAAc,uCAAuC,CAAA;AACrD,cAAc,yCAAyC,CAAA;AACvD,cAAc,qCAAqC,CAAA;AACnD,cAAc,2CAA2C,CAAA;AACzD,cAAc,yCAAyC,CAAA;AACvD,cAAc,+BAA+B,CAAA;AAC7C,cAAc,2DAA2D,CAAA;AACzE,cAAc,2CAA2C,CAAA;AACzD,cAAc,wBAAwB,CAAA;AACtC,cAAc,mDAAmD,CAAA;AACjE,cAAc,mEAAmE,CAAA;AACjF,cAAc,qDAAqD,CAAA;AACnE,cAAc,2DAA2D,CAAA;AACzE,cAAc,mCAAmC,CAAA;AACjD,cAAc,2CAA2C,CAAA;AACzD,cAAc,qDAAqD,CAAA;AACnE,cAAc,+CAA+C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAOa,eAAe;IAC1B,OAAO,CAAC,QAAQ,
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/button/button.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;;AAGtB,qBAOa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAsB;IAEtC,IAAa,IAAI,CACf,KAAK,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,EAoBjE;IAEQ,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACd,WAAW,qBAA2B;IAEhD,IAAI,SAAS,WAEZ;IAED,WAAW,CAAC,KAAK,EAAE,KAAK;yCAlCb,eAAe;2CAAf,eAAe;CAuC3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FilesDropDirective {
|
|
4
|
+
dragFilesOver: EventEmitter<boolean>;
|
|
5
|
+
dropFiles: EventEmitter<File[]>;
|
|
6
|
+
dragEnterCounter: number;
|
|
7
|
+
_onDragEnter(event: DragEvent): void;
|
|
8
|
+
_onDragOver(event: DragEvent): void;
|
|
9
|
+
_onDragLeave(event: DragEvent): void;
|
|
10
|
+
_onDrop(event: DragEvent): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilesDropDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FilesDropDirective, "[gnUiFilesDrop]", never, {}, { "dragFilesOver": "dragFilesOver"; "dropFiles": "dropFiles"; }, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=files-drop.directive.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files-drop.directive.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/files-drop/files-drop.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmC,YAAY,EAAE,MAAM,eAAe,CAAA;;AAE7E,qBAIa,kBAAkB;IACnB,aAAa,EAAE,YAAY,CAAC,OAAO,CAAC,CAAqB;IACzD,SAAS,EAAE,YAAY,CAAC,IAAI,EAAE,CAAC,CAAqB;IAE9D,gBAAgB,SAAI;IAGpB,YAAY,CAAC,KAAK,EAAE,SAAS;IAO7B,WAAW,CAAC,KAAK,EAAE,SAAS;IAK5B,YAAY,CAAC,KAAK,EAAE,SAAS;IAS7B,OAAO,CAAC,KAAK,EAAE,SAAS;yCA5Bb,kBAAkB;2CAAlB,kBAAkB;CAsC9B"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ImageInputComponent {
|
|
5
|
+
private http;
|
|
6
|
+
private cd;
|
|
7
|
+
maxSizeMB: number;
|
|
8
|
+
previewUrl?: string;
|
|
9
|
+
altText?: string;
|
|
10
|
+
uploadProgress?: number;
|
|
11
|
+
uploadError?: boolean;
|
|
12
|
+
fileChange: EventEmitter<File>;
|
|
13
|
+
urlChange: EventEmitter<string>;
|
|
14
|
+
uploadCancel: EventEmitter<void>;
|
|
15
|
+
delete: EventEmitter<void>;
|
|
16
|
+
altTextChange: EventEmitter<string>;
|
|
17
|
+
dragFilesOver: boolean;
|
|
18
|
+
showUrlInput: boolean;
|
|
19
|
+
downloadError: boolean;
|
|
20
|
+
showAltTextInput: boolean;
|
|
21
|
+
urlInputValue?: string;
|
|
22
|
+
lastUploadType?: 'file' | 'url';
|
|
23
|
+
lastUploadContent?: string | File;
|
|
24
|
+
constructor(http: HttpClient, cd: ChangeDetectorRef);
|
|
25
|
+
getPrimaryText(): "input.image.uploadErrorLabel" | "input.image.uploadProgressLabel" | "input.image.selectFileLabel";
|
|
26
|
+
getSecondaryText(): "input.image.uploadErrorRetry" | "input.image.uploadProgressCancel" | "input.image.dropFileLabel";
|
|
27
|
+
handleDragFilesOver(dragFilesOver: boolean): void;
|
|
28
|
+
handleDropFiles(files: File[]): void;
|
|
29
|
+
handleFileInput(event: Event): void;
|
|
30
|
+
displayUrlInput(): void;
|
|
31
|
+
handleUrlChange(event: Event): void;
|
|
32
|
+
downloadUrl(): Promise<void>;
|
|
33
|
+
handleSecondaryTextClick(): void;
|
|
34
|
+
handleCancel(): void;
|
|
35
|
+
handleRetry(): void;
|
|
36
|
+
handleDelete(): void;
|
|
37
|
+
toggleAltTextInput(): void;
|
|
38
|
+
handleAltTextChange(event: Event): void;
|
|
39
|
+
private filterTypeImage;
|
|
40
|
+
private resizeAndEmit;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageInputComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ImageInputComponent, "gn-ui-image-input", never, { "maxSizeMB": { "alias": "maxSizeMB"; "required": false; }; "previewUrl": { "alias": "previewUrl"; "required": false; }; "altText": { "alias": "altText"; "required": false; }; "uploadProgress": { "alias": "uploadProgress"; "required": false; }; "uploadError": { "alias": "uploadError"; "required": false; }; }, { "fileChange": "fileChange"; "urlChange": "urlChange"; "uploadCancel": "uploadCancel"; "delete": "delete"; "altTextChange": "altTextChange"; }, never, never, true, never>;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=image-input.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/image-input/image-input.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAEL,iBAAiB,EAEjB,YAAY,EAGb,MAAM,eAAe,CAAA;;AAUtB,qBAea,mBAAmB;IAqBlB,OAAO,CAAC,IAAI;IAAc,OAAO,CAAC,EAAE;IApBvC,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,WAAW,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,EAAE,YAAY,CAAC,IAAI,CAAC,CAAqB;IACnD,SAAS,EAAE,YAAY,CAAC,MAAM,CAAC,CAAqB;IACpD,YAAY,EAAE,YAAY,CAAC,IAAI,CAAC,CAAqB;IACrD,MAAM,EAAE,YAAY,CAAC,IAAI,CAAC,CAAqB;IAC/C,aAAa,EAAE,YAAY,CAAC,MAAM,CAAC,CAAqB;IAElE,aAAa,UAAQ;IACrB,YAAY,UAAQ;IACpB,aAAa,UAAQ;IACrB,gBAAgB,UAAQ;IAExB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IAC/B,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;gBAEb,IAAI,EAAE,UAAU,EAAU,EAAE,EAAE,iBAAiB;IAEnE,cAAc;IAUd,gBAAgB;IAUhB,mBAAmB,CAAC,aAAa,EAAE,OAAO;IAO1C,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE;IAS7B,eAAe,CAAC,KAAK,EAAE,KAAK;IAQ5B,eAAe;IAKf,eAAe,CAAC,KAAK,EAAE,KAAK;IAKtB,WAAW;IAgCjB,wBAAwB;IAQxB,YAAY;IAIZ,WAAW;IAWX,YAAY;IAIZ,kBAAkB;IAIlB,mBAAmB,CAAC,KAAK,EAAE,KAAK;IAKhC,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,aAAa;yCAvJV,mBAAmB;2CAAnB,mBAAmB;CA8J/B"}
|
|
@@ -2,16 +2,22 @@ import { AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TextAreaComponent implements AfterViewInit {
|
|
5
|
+
private readonly baseClasses;
|
|
6
|
+
private readonly disabledClasses;
|
|
5
7
|
value: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
extraClass: string;
|
|
6
10
|
placeholder: string;
|
|
7
11
|
required: boolean;
|
|
8
12
|
rawChange: Subject<string>;
|
|
9
13
|
valueChange: import("rxjs").Observable<string>;
|
|
10
14
|
input: any;
|
|
15
|
+
constructor();
|
|
16
|
+
get classList(): string;
|
|
11
17
|
ngAfterViewInit(): void;
|
|
12
18
|
checkRequired(value: any): void;
|
|
13
19
|
handleChange($event: any): void;
|
|
14
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "gn-ui-text-area", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "gn-ui-text-area", never, { "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
16
22
|
}
|
|
17
23
|
//# sourceMappingURL=text-area.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-area.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-area/text-area.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAMa,iBAAkB,YAAW,aAAa;
|
|
1
|
+
{"version":3,"file":"text-area.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-area/text-area.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAG9B,qBAMa,iBAAkB,YAAW,aAAa;IACrD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAQ;IACpC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAQ;IAE/B,KAAK,SAAK;IACV,QAAQ,UAAQ;IAChB,UAAU,SAAK;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,UAAQ;IAEzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAE/C,KAAK,MAAA;;IAoBzB,IAAI,SAAS,WAIZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCAlDR,iBAAiB;2CAAjB,iBAAiB;CAuD7B"}
|
|
@@ -2,16 +2,19 @@ import { AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TextInputComponent implements AfterViewInit {
|
|
5
|
+
private readonly baseClass;
|
|
5
6
|
value: string;
|
|
7
|
+
extraClass: string;
|
|
6
8
|
hint: string;
|
|
7
9
|
required: boolean;
|
|
8
10
|
rawChange: Subject<string>;
|
|
9
11
|
valueChange: import("rxjs").Observable<string>;
|
|
10
12
|
input: any;
|
|
13
|
+
get classList(): string;
|
|
11
14
|
ngAfterViewInit(): void;
|
|
12
15
|
checkRequired(value: any): void;
|
|
13
16
|
handleChange($event: any): void;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "gn-ui-text-input", never, { "value": { "alias": "value"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
16
19
|
}
|
|
17
20
|
//# sourceMappingURL=text-input.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;
|
|
1
|
+
{"version":3,"file":"text-input.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/inputs/src/lib/text-input/text-input.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAKd,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAA;;AAE9B,qBAKa,kBAAmB,YAAW,aAAa;IACtD,OAAO,CAAC,QAAQ,CAAC,SAAS,CASf;IAEF,KAAK,SAAK;IACV,UAAU,SAAK;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,UAAQ;IACzB,SAAS,kBAAwB;IACvB,WAAW,oCAA8C;IAC/C,KAAK,MAAA;IAEzB,IAAI,SAAS,WAEZ;IAED,eAAe;IAIf,aAAa,CAAC,KAAK,KAAA;IAOnB,YAAY,CAAC,MAAM,KAAA;yCAnCR,kBAAkB;2CAAlB,kBAAkB;CAwC9B"}
|
|
@@ -8,41 +8,34 @@ import * as i6 from "./navigation-button/navigation-button.component";
|
|
|
8
8
|
import * as i7 from "./star-toggle/star-toggle.component";
|
|
9
9
|
import * as i8 from "./dropdown-multiselect/dropdown-multiselect.component";
|
|
10
10
|
import * as i9 from "./viewport-intersector/viewport-intersector.component";
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "
|
|
19
|
-
import * as i18 from "
|
|
20
|
-
import * as i19 from "
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "
|
|
24
|
-
import * as i23 from "
|
|
25
|
-
import * as i24 from "@
|
|
26
|
-
import * as i25 from "
|
|
27
|
-
import * as i26 from "@angular/
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "@angular/material/
|
|
31
|
-
import * as i30 from "@angular/material/
|
|
32
|
-
import * as i31 from "
|
|
33
|
-
import * as i32 from "
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "@angular/material/form-field";
|
|
37
|
-
import * as i36 from "@angular/material/input";
|
|
38
|
-
import * as i37 from "@angular/material/datepicker";
|
|
39
|
-
import * as i38 from "@angular/material/core";
|
|
40
|
-
import * as i39 from "./editable-label/editable-label.directive";
|
|
41
|
-
import * as i40 from "./text-area/text-area.component";
|
|
42
|
-
import * as i41 from "./button/button.component";
|
|
11
|
+
import * as i10 from "./check-toggle/check-toggle.component";
|
|
12
|
+
import * as i11 from "./copy-text-button/copy-text-button.component";
|
|
13
|
+
import * as i12 from "./checkbox/checkbox.component";
|
|
14
|
+
import * as i13 from "./search-input/search-input.component";
|
|
15
|
+
import * as i14 from "./date-range-picker/date-range-picker.component";
|
|
16
|
+
import * as i15 from "@angular/common";
|
|
17
|
+
import * as i16 from "@ngx-translate/core";
|
|
18
|
+
import * as i17 from "ngx-dropzone";
|
|
19
|
+
import * as i18 from "@angular/forms";
|
|
20
|
+
import * as i19 from "ngx-chips";
|
|
21
|
+
import * as i20 from "../../../../util/shared/src/lib/util-shared.module";
|
|
22
|
+
import * as i21 from "@angular/material/autocomplete";
|
|
23
|
+
import * as i22 from "@angular/material/icon";
|
|
24
|
+
import * as i23 from "../../../widgets/src/lib/ui-widgets.module";
|
|
25
|
+
import * as i24 from "@angular/cdk/overlay";
|
|
26
|
+
import * as i25 from "@angular/material/checkbox";
|
|
27
|
+
import * as i26 from "@angular/material/tooltip";
|
|
28
|
+
import * as i27 from "@angular/material/form-field";
|
|
29
|
+
import * as i28 from "@angular/material/input";
|
|
30
|
+
import * as i29 from "@angular/material/datepicker";
|
|
31
|
+
import * as i30 from "@angular/material/core";
|
|
32
|
+
import * as i31 from "./editable-label/editable-label.directive";
|
|
33
|
+
import * as i32 from "./text-area/text-area.component";
|
|
34
|
+
import * as i33 from "./button/button.component";
|
|
35
|
+
import * as i34 from "./image-input/image-input.component";
|
|
43
36
|
export declare class UiInputsModule {
|
|
44
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
|
|
45
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.
|
|
38
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.CheckToggleComponent, typeof i11.CopyTextButtonComponent, typeof i12.CheckboxComponent, typeof i13.SearchInputComponent, typeof i14.DateRangePickerComponent], [typeof i15.CommonModule, typeof i16.TranslateModule, typeof i17.NgxDropzoneModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.TagInputModule, typeof i20.UtilSharedModule, typeof i21.MatAutocompleteModule, typeof i22.MatIconModule, typeof i23.UiWidgetsModule, typeof i24.OverlayModule, typeof i25.MatCheckboxModule, typeof i26.MatTooltipModule, typeof i27.MatFormFieldModule, typeof i28.MatInputModule, typeof i29.MatDatepickerModule, typeof i30.MatNativeDateModule, typeof i31.EditableLabelDirective, typeof i32.TextAreaComponent, typeof i33.ButtonComponent, typeof i34.ImageInputComponent], [typeof i1.DropdownSelectorComponent, typeof i2.AutocompleteComponent, typeof i33.ButtonComponent, typeof i3.TextInputComponent, typeof i4.DragAndDropFileInputComponent, typeof i32.TextAreaComponent, typeof i5.ChipsInputComponent, typeof i6.NavigationButtonComponent, typeof i7.StarToggleComponent, typeof i8.DropdownMultiselectComponent, typeof i9.ViewportIntersectorComponent, typeof i10.CheckToggleComponent, typeof i11.CopyTextButtonComponent, typeof i12.CheckboxComponent, typeof i13.SearchInputComponent, typeof i14.DateRangePickerComponent, typeof i31.EditableLabelDirective, typeof i34.ImageInputComponent]>;
|
|
46
39
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
|
|
47
40
|
}
|
|
48
41
|
//# sourceMappingURL=ui-inputs.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ui-inputs.module.d.ts","sourceRoot":"","sources":["../../../../../src/libs/ui/inputs/src/lib/ui-inputs.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,qBA6Da,cAAc;yCAAd,cAAc;0CAAd,cAAc;0CAAd,cAAc;CAAG"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
export * from './lib/ui-layout.module';
|
|
2
1
|
export * from './lib/anchor-link/anchor-link.directive';
|
|
3
2
|
export * from './lib/carousel/carousel.component';
|
|
4
|
-
export * from './lib/expandable-panel/expandable-panel.component';
|
|
5
|
-
export * from './lib/sticky-header/sticky-header.component';
|
|
6
3
|
export * from './lib/expandable-panel-button/expandable-panel-button.component';
|
|
7
|
-
export * from './lib/
|
|
4
|
+
export * from './lib/expandable-panel/expandable-panel.component';
|
|
5
|
+
export * from './lib/form-field-wrapper/form-field-wrapper.component';
|
|
8
6
|
export * from './lib/interactive-table/interactive-table-column/interactive-table-column.component';
|
|
7
|
+
export * from './lib/interactive-table/interactive-table.component';
|
|
8
|
+
export * from './lib/sticky-header/sticky-header.component';
|
|
9
|
+
export * from './lib/ui-layout.module';
|
|
9
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/libs/ui/layout/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yCAAyC,CAAA;AACvD,cAAc,mCAAmC,CAAA;AACjD,cAAc,iEAAiE,CAAA;AAC/E,cAAc,mDAAmD,CAAA;AACjE,cAAc,uDAAuD,CAAA;AACrE,cAAc,qFAAqF,CAAA;AACnG,cAAc,qDAAqD,CAAA;AACnE,cAAc,6CAA6C,CAAA;AAC3D,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FormFieldWrapperComponent {
|
|
3
|
+
label: string;
|
|
4
|
+
hint: string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldWrapperComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldWrapperComponent, "gn-ui-form-field-wrapper", never, { "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; }, {}, never, ["[form-field-interaction]", "*"], true, never>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=form-field-wrapper.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-field-wrapper.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/layout/src/lib/form-field-wrapper/form-field-wrapper.component.ts"],"names":[],"mappings":";AAIA,qBAQa,yBAAyB;IAC3B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;yCAFV,yBAAyB;2CAAzB,yBAAyB;CAGrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bytes-convert.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/bytes-convert.ts"],"names":[],"mappings":"AAAA,wBAAgB,gBAAgB,CAAC,SAAS,KAAA,UAEzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-resize.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/image-resize.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,MAAM,EAChB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAED,wBAAgB,cAAc,CAC5B,IAAI,EAAE,IAAI,EACV,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAiCf"}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
export * from './bytes-convert';
|
|
2
|
+
export * from './event';
|
|
3
|
+
export * from './fuzzy-filter';
|
|
4
|
+
export * from './geojson';
|
|
5
|
+
export * from './image-resize';
|
|
1
6
|
export * from './parse';
|
|
2
|
-
export * from './strip-html';
|
|
3
7
|
export * from './remove-whitespace';
|
|
4
|
-
export * from './geojson';
|
|
5
8
|
export * from './sort-by';
|
|
6
|
-
export * from './
|
|
7
|
-
export * from './event';
|
|
8
|
-
export * from './fuzzy-filter';
|
|
9
|
+
export * from './strip-html';
|
|
9
10
|
export * from './temporal-extent-union';
|
|
11
|
+
export * from './url';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/util/shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,yBAAyB,CAAA;AACvC,cAAc,OAAO,CAAA"}
|
package/package.json
CHANGED
|
@@ -120,10 +120,16 @@ export class Gn4FieldMapper {
|
|
|
120
120
|
}),
|
|
121
121
|
creationDateForResource: (output, source) => ({
|
|
122
122
|
...output,
|
|
123
|
-
|
|
123
|
+
resourceCreated: toDate(
|
|
124
124
|
getFirstValue(selectField<string>(source, 'creationDateForResource'))
|
|
125
125
|
),
|
|
126
126
|
}),
|
|
127
|
+
revisionDateForResource: (output, source) => ({
|
|
128
|
+
...output,
|
|
129
|
+
resourceUpdated: toDate(
|
|
130
|
+
getFirstValue(selectField<string>(source, 'revisionDateForResource'))
|
|
131
|
+
),
|
|
132
|
+
}),
|
|
127
133
|
createDate: (output, source) => ({
|
|
128
134
|
...output,
|
|
129
135
|
recordCreated: toDate(selectField<string>(source, 'createDate')),
|
|
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core'
|
|
|
2
2
|
import { AvatarServiceInterface } from './avatar.service.interface'
|
|
3
3
|
import { Gn4SettingsService } from '../settings/gn4-settings.service'
|
|
4
4
|
import { map } from 'rxjs/operators'
|
|
5
|
-
import { Observable } from 'rxjs'
|
|
5
|
+
import { firstValueFrom, Observable } from 'rxjs'
|
|
6
6
|
|
|
7
7
|
@Injectable({
|
|
8
8
|
providedIn: 'root',
|
|
@@ -14,6 +14,7 @@ export class GravatarService implements AvatarServiceInterface {
|
|
|
14
14
|
private readonly identicon$ = this.gn4SettingsService.identicon$.pipe(
|
|
15
15
|
map((identicon) => identicon?.replace('gravatar:', ''))
|
|
16
16
|
)
|
|
17
|
+
|
|
17
18
|
constructor(private gn4SettingsService: Gn4SettingsService) {}
|
|
18
19
|
|
|
19
20
|
getPlaceholder(): Observable<string> {
|
|
@@ -26,4 +27,14 @@ export class GravatarService implements AvatarServiceInterface {
|
|
|
26
27
|
map((identicon) => `${this.GRAVATAR_URL}${hash}?d=${identicon}`)
|
|
27
28
|
)
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
async getProfileIconUrl(userId: string) {
|
|
32
|
+
let iconUrl = ''
|
|
33
|
+
try {
|
|
34
|
+
iconUrl = await firstValueFrom(this.getProfileIcon(userId))
|
|
35
|
+
} catch (error) {
|
|
36
|
+
return ''
|
|
37
|
+
}
|
|
38
|
+
return iconUrl
|
|
39
|
+
}
|
|
29
40
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MeResponseApiModel,
|
|
3
3
|
UserApiModel,
|
|
4
|
+
UserFeedbackDTOApiModel,
|
|
4
5
|
} from '../../../../../../../libs/data-access/gn4/src'
|
|
5
6
|
import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model'
|
|
6
7
|
import { Injectable } from '@angular/core'
|
|
7
|
-
import { AvatarServiceInterface } from '../auth
|
|
8
|
+
import { AvatarServiceInterface } from '../auth'
|
|
8
9
|
import { map } from 'rxjs/operators'
|
|
9
10
|
import { Observable, of } from 'rxjs'
|
|
10
11
|
import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
|
|
12
|
+
import {
|
|
13
|
+
UserFeedback,
|
|
14
|
+
UserFeedbackViewModel,
|
|
15
|
+
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
11
16
|
|
|
12
17
|
@Injectable()
|
|
13
18
|
export class Gn4PlatformMapper {
|
|
14
19
|
constructor(private avatarService: AvatarServiceInterface) {}
|
|
20
|
+
|
|
15
21
|
userFromMeApi(apiUser: MeResponseApiModel): Observable<UserModel | null> {
|
|
16
22
|
if (!apiUser) return of(null)
|
|
17
23
|
const {
|
|
@@ -28,6 +34,7 @@ export class Gn4PlatformMapper {
|
|
|
28
34
|
.getProfileIcon(hash)
|
|
29
35
|
.pipe(map((profileIcon) => ({ ...user, profileIcon } as UserModel)))
|
|
30
36
|
}
|
|
37
|
+
|
|
31
38
|
userFromApi(apiUser: UserApiModel): UserModel {
|
|
32
39
|
if (!apiUser) return null
|
|
33
40
|
const {
|
|
@@ -65,4 +72,47 @@ export class Gn4PlatformMapper {
|
|
|
65
72
|
}
|
|
66
73
|
})
|
|
67
74
|
}
|
|
75
|
+
|
|
76
|
+
userFeedbacksFromApi(userFeedback: any): UserFeedback {
|
|
77
|
+
return {
|
|
78
|
+
uuid: userFeedback.uuid,
|
|
79
|
+
metadataUUID: userFeedback.metadataUUID,
|
|
80
|
+
comment: userFeedback.comment,
|
|
81
|
+
authorUserId: userFeedback.authorUserId.toString(),
|
|
82
|
+
authorName: userFeedback.authorName,
|
|
83
|
+
authorEmail: userFeedback.authorEmail,
|
|
84
|
+
published: userFeedback.published,
|
|
85
|
+
parentUuid: userFeedback.parentUuid ?? undefined,
|
|
86
|
+
date: new Date(userFeedback.date),
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
userFeedbacksToApi(
|
|
91
|
+
userFeedback: UserFeedback
|
|
92
|
+
): Partial<UserFeedbackDTOApiModel> {
|
|
93
|
+
return {
|
|
94
|
+
uuid: userFeedback.uuid,
|
|
95
|
+
metadataUUID: userFeedback.metadataUUID,
|
|
96
|
+
comment: userFeedback.comment,
|
|
97
|
+
authorUserId: Number.parseInt(userFeedback.authorUserId),
|
|
98
|
+
authorName: userFeedback.authorName,
|
|
99
|
+
authorEmail: userFeedback.authorEmail,
|
|
100
|
+
published: userFeedback.published,
|
|
101
|
+
parentUuid: userFeedback.parentUuid,
|
|
102
|
+
date: userFeedback.date.getTime().toString(),
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
async createUserFeedbackViewModel(
|
|
107
|
+
baseUserFeedback: UserFeedback
|
|
108
|
+
): Promise<UserFeedbackViewModel> {
|
|
109
|
+
const userAvatarUrl = await this.avatarService.getProfileIconUrl(
|
|
110
|
+
baseUserFeedback.authorUserId?.toString()
|
|
111
|
+
)
|
|
112
|
+
|
|
113
|
+
return {
|
|
114
|
+
...baseUserFeedback,
|
|
115
|
+
avatarUrl: userAvatarUrl,
|
|
116
|
+
}
|
|
117
|
+
}
|
|
68
118
|
}
|
|
@@ -6,11 +6,15 @@ import {
|
|
|
6
6
|
RegistriesApiService,
|
|
7
7
|
SiteApiService,
|
|
8
8
|
ToolsApiService,
|
|
9
|
+
UserfeedbackApiService,
|
|
9
10
|
UsersApiService,
|
|
10
11
|
} from '../../../../../../../libs/data-access/gn4/src'
|
|
11
12
|
import { PlatformServiceInterface } from '../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
12
13
|
import { UserModel } from '../../../../../../../libs/common/domain/src/lib/model/user/user.model'
|
|
13
|
-
import {
|
|
14
|
+
import {
|
|
15
|
+
Organization,
|
|
16
|
+
UserFeedback,
|
|
17
|
+
} from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
14
18
|
import { Gn4PlatformMapper } from './gn4-platform.mapper'
|
|
15
19
|
import { ltr } from 'semver'
|
|
16
20
|
import { ThesaurusModel } from '../../../../../../../libs/common/domain/src/lib/model/thesaurus/thesaurus.model'
|
|
@@ -21,9 +25,9 @@ const minApiVersion = '4.2.2'
|
|
|
21
25
|
@Injectable()
|
|
22
26
|
export class Gn4PlatformService implements PlatformServiceInterface {
|
|
23
27
|
private readonly type = 'GeoNetwork'
|
|
24
|
-
private me$: Observable<UserModel>
|
|
25
|
-
private users$: Observable<UserModel[]>
|
|
26
|
-
private
|
|
28
|
+
private readonly me$: Observable<UserModel>
|
|
29
|
+
private readonly users$: Observable<UserModel[]>
|
|
30
|
+
private readonly isUserAnonymous$: Observable<boolean>
|
|
27
31
|
|
|
28
32
|
private keyTranslations$ = this.toolsApiService
|
|
29
33
|
.getTranslationsPackage1('gnui')
|
|
@@ -65,13 +69,18 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
65
69
|
private mapper: Gn4PlatformMapper,
|
|
66
70
|
private toolsApiService: ToolsApiService,
|
|
67
71
|
private registriesApiService: RegistriesApiService,
|
|
68
|
-
private langService: LangService
|
|
72
|
+
private langService: LangService,
|
|
73
|
+
private userfeedbackApiService: UserfeedbackApiService
|
|
69
74
|
) {
|
|
70
75
|
this.me$ = this.meApi.getMe().pipe(
|
|
71
76
|
switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)),
|
|
72
77
|
shareReplay({ bufferSize: 1, refCount: true })
|
|
73
78
|
)
|
|
74
|
-
|
|
79
|
+
|
|
80
|
+
this.isUserAnonymous$ = this.me$.pipe(
|
|
81
|
+
map((user) => !user || !('id' in user))
|
|
82
|
+
)
|
|
83
|
+
|
|
75
84
|
this.users$ = this.usersApi.getUsers().pipe(
|
|
76
85
|
map((users) => users.map((user) => this.mapper.userFromApi(user))),
|
|
77
86
|
shareReplay()
|
|
@@ -91,7 +100,7 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
91
100
|
}
|
|
92
101
|
|
|
93
102
|
isAnonymous(): Observable<boolean> {
|
|
94
|
-
return this.
|
|
103
|
+
return this.isUserAnonymous$
|
|
95
104
|
}
|
|
96
105
|
|
|
97
106
|
getOrganizations(): Observable<Organization[]> {
|
|
@@ -148,6 +157,24 @@ export class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
148
157
|
),
|
|
149
158
|
shareReplay(1)
|
|
150
159
|
)
|
|
160
|
+
|
|
151
161
|
return this.thesauri[uri]
|
|
152
162
|
}
|
|
163
|
+
|
|
164
|
+
getUserFeedbacks(uuid: string): Observable<UserFeedback[]> {
|
|
165
|
+
return this.userfeedbackApiService
|
|
166
|
+
.getUserComments(uuid)
|
|
167
|
+
.pipe(
|
|
168
|
+
map((userFeedbacks) =>
|
|
169
|
+
userFeedbacks.map(this.mapper.userFeedbacksFromApi)
|
|
170
|
+
)
|
|
171
|
+
)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
postUserFeedbacks(userFeedback: UserFeedback): Observable<void> {
|
|
175
|
+
const mappedUserFeedBack = this.mapper.userFeedbacksToApi(userFeedback)
|
|
176
|
+
return this.userfeedbackApiService
|
|
177
|
+
.newUserFeedback(mappedUserFeedBack)
|
|
178
|
+
.pipe(map(() => undefined))
|
|
179
|
+
}
|
|
153
180
|
}
|