geonetwork-ui 2.3.0-dev.376e0e90 → 2.3.0-dev.6083baae
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 +5 -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 +2 -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 +93 -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 +39 -0
- 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-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +6 -2
- 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 +72 -0
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +7 -3
- package/esm2022/libs/feature/map/src/lib/layers-panel/layers-panel.component.mjs +12 -7
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.model.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +52 -25
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +12 -49
- 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/map-view/map-view.component.mjs +6 -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 +6 -5
- 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/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 +20 -0
- package/esm2022/translations/en.json +20 -0
- package/esm2022/translations/es.json +20 -0
- package/esm2022/translations/fr.json +20 -0
- package/esm2022/translations/it.json +20 -0
- package/esm2022/translations/nl.json +20 -0
- package/esm2022/translations/pt.json +20 -0
- package/fesm2022/geonetwork-ui.mjs +3505 -2799
- 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/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 +4 -3
- 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/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts +23 -0
- package/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/feature-map.module.d.ts +2 -1
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts +2 -0
- package/libs/feature/map/src/lib/layers-panel/layers-panel.component.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts +10 -5
- package/libs/feature/map/src/lib/map-context/map-context.model.d.ts.map +1 -1
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +2 -3
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +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/map-view/map-view.component.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 +20 -20
- 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/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 +2 -2
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +6 -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 +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.css +5 -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 +4 -4
- package/src/libs/{ui/inputs/src/lib → feature/editor/src/lib/components/record-form}/form-field/form-field.component.ts +31 -5
- 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 +23 -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-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +5 -1
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -1
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.html +36 -0
- package/src/libs/feature/map/src/lib/add-layer-from-ogc-api/add-layer-from-ogc-api.component.ts +80 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +2 -0
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.html +8 -0
- package/src/libs/feature/map/src/lib/layers-panel/layers-panel.component.ts +5 -0
- package/src/libs/feature/map/src/lib/map-context/map-context.model.ts +10 -3
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +60 -32
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +17 -61
- 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/map-view/map-view.component.ts +5 -1
- 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 +1 -1
- 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/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 +5 -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 +29 -0
- package/translations/de.json +20 -0
- package/translations/en.json +20 -0
- package/translations/es.json +20 -0
- package/translations/fr.json +20 -0
- package/translations/it.json +20 -0
- package/translations/nl.json +20 -0
- package/translations/pt.json +20 -0
- package/translations/sk.json +20 -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/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-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
- /package/src/libs/{ui/inputs/src/lib/form-field/form-field-rich/form-field-rich.component.css → feature/editor/src/lib/components/record-form/record-form.component.css} +0 -0
|
@@ -12,28 +12,28 @@ import * as i10 from "./metadata-quality/metadata-quality.component";
|
|
|
12
12
|
import * as i11 from "./metadata-quality-item/metadata-quality-item.component";
|
|
13
13
|
import * as i12 from "./search-results-error/search-results-error.component";
|
|
14
14
|
import * as i13 from "./pagination/pagination.component";
|
|
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 "@angular/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "
|
|
26
|
-
import * as i25 from "../../../
|
|
27
|
-
import * as i26 from "
|
|
28
|
-
import * as i27 from "
|
|
29
|
-
import * as i28 from "
|
|
30
|
-
import * as i29 from "
|
|
31
|
-
import * as i30 from "
|
|
32
|
-
import * as i31 from "
|
|
33
|
-
import * as i32 from "./
|
|
15
|
+
import * as i14 from "./avatar/avatar.component";
|
|
16
|
+
import * as i15 from "./user-preview/user-preview.component";
|
|
17
|
+
import * as i16 from "./metadata-info/linkify.directive";
|
|
18
|
+
import * as i17 from "./pagination-buttons/pagination-buttons.component";
|
|
19
|
+
import * as i18 from "./max-lines/max-lines.component";
|
|
20
|
+
import * as i19 from "./record-api-form/record-api-form.component";
|
|
21
|
+
import * as i20 from "./image-overlay-preview/image-overlay-preview.component";
|
|
22
|
+
import * as i21 from "@angular/common";
|
|
23
|
+
import * as i22 from "@angular/material/icon";
|
|
24
|
+
import * as i23 from "@angular/material/tooltip";
|
|
25
|
+
import * as i24 from "../../../widgets/src/lib/ui-widgets.module";
|
|
26
|
+
import * as i25 from "../../../layout/src/lib/ui-layout.module";
|
|
27
|
+
import * as i26 from "@ngx-translate/core";
|
|
28
|
+
import * as i27 from "../../../../util/shared/src/lib/util-shared.module";
|
|
29
|
+
import * as i28 from "@angular/router";
|
|
30
|
+
import * as i29 from "../../../inputs/src/lib/ui-inputs.module";
|
|
31
|
+
import * as i30 from "@angular/forms";
|
|
32
|
+
import * as i31 from "./markdown-parser/markdown-parser.component";
|
|
33
|
+
import * as i32 from "./thumbnail/thumbnail.component";
|
|
34
34
|
export declare class UiElementsModule {
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<UiElementsModule, never>;
|
|
36
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.
|
|
36
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiElementsModule, [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i14.AvatarComponent, typeof i15.UserPreviewComponent, typeof i16.GnUiLinkifyDirective, typeof i17.PaginationButtonsComponent, typeof i18.MaxLinesComponent, typeof i19.RecordApiFormComponent, typeof i20.ImageOverlayPreviewComponent], [typeof i21.CommonModule, typeof i22.MatIconModule, typeof i23.MatTooltipModule, typeof i24.UiWidgetsModule, typeof i25.UiLayoutModule, typeof i26.TranslateModule, typeof i27.UtilSharedModule, typeof i28.RouterModule, typeof i29.UiInputsModule, typeof i30.FormsModule, typeof i21.NgOptimizedImage, typeof i31.MarkdownParserComponent, typeof i32.ThumbnailComponent], [typeof i1.MetadataInfoComponent, typeof i2.ContentGhostComponent, typeof i3.DownloadItemComponent, typeof i4.DownloadsListComponent, typeof i5.ApiCardComponent, typeof i6.LinkCardComponent, typeof i7.RelatedRecordCardComponent, typeof i8.MetadataContactComponent, typeof i9.MetadataCatalogComponent, typeof i10.MetadataQualityComponent, typeof i11.MetadataQualityItemComponent, typeof i12.SearchResultsErrorComponent, typeof i13.PaginationComponent, typeof i32.ThumbnailComponent, typeof i14.AvatarComponent, typeof i15.UserPreviewComponent, typeof i17.PaginationButtonsComponent, typeof i18.MaxLinesComponent, typeof i19.RecordApiFormComponent, typeof i31.MarkdownParserComponent, typeof i20.ImageOverlayPreviewComponent]>;
|
|
37
37
|
static ɵinj: i0.ɵɵInjectorDeclaration<UiElementsModule>;
|
|
38
38
|
}
|
|
39
39
|
//# sourceMappingURL=ui-elements.module.d.ts.map
|
|
@@ -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"}
|
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "geonetwork-ui",
|
|
3
|
-
"version": "2.3.0-dev.
|
|
3
|
+
"version": "2.3.0-dev.6083baae",
|
|
4
4
|
"engines": {
|
|
5
5
|
"node": ">=14.17.0"
|
|
6
6
|
},
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@biesbjerg/ngx-translate-extract-marker": "^1.0.0",
|
|
50
|
-
"@camptocamp/ogc-client": "^
|
|
50
|
+
"@camptocamp/ogc-client": "^1.1.0-RC.3",
|
|
51
51
|
"@geospatial-sdk/geocoding": "^0.0.5-alpha.2",
|
|
52
52
|
"@ltd/j-toml": "~1.35.2",
|
|
53
53
|
"@messageformat/core": "^3.0.1",
|
|
@@ -124,6 +124,12 @@ export class Gn4FieldMapper {
|
|
|
124
124
|
getFirstValue(selectField<string>(source, 'creationDateForResource'))
|
|
125
125
|
),
|
|
126
126
|
}),
|
|
127
|
+
revisionDateForResource: (output, source) => ({
|
|
128
|
+
...output,
|
|
129
|
+
datasetUpdated: 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')),
|
|
@@ -30,7 +30,6 @@ import {
|
|
|
30
30
|
import { ExtentDtoApiModel } from '../model/models'
|
|
31
31
|
import { FeatureResponseApiModel } from '../model/models'
|
|
32
32
|
import { IProcessingReportApiModel } from '../model/models'
|
|
33
|
-
import { InlineObject3ApiModel } from '../model/models'
|
|
34
33
|
import { MetadataBatchApproveParameterApiModel } from '../model/models'
|
|
35
34
|
import { MetadataBatchSubmitParameterApiModel } from '../model/models'
|
|
36
35
|
import { MetadataCategoryApiModel } from '../model/models'
|
|
@@ -75,6 +74,20 @@ export class RecordsApiService {
|
|
|
75
74
|
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec()
|
|
76
75
|
}
|
|
77
76
|
|
|
77
|
+
/**
|
|
78
|
+
* @param consumes string[] mime-types
|
|
79
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
80
|
+
*/
|
|
81
|
+
private canConsumeForm(consumes: string[]): boolean {
|
|
82
|
+
const form = 'multipart/form-data'
|
|
83
|
+
for (const consume of consumes) {
|
|
84
|
+
if (form === consume) {
|
|
85
|
+
return true
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return false
|
|
89
|
+
}
|
|
90
|
+
|
|
78
91
|
private addToHttpParams(
|
|
79
92
|
httpParams: HttpParams,
|
|
80
93
|
value: any,
|
|
@@ -8290,44 +8303,44 @@ export class RecordsApiService {
|
|
|
8290
8303
|
/**
|
|
8291
8304
|
* Create a new resource for a given metadata
|
|
8292
8305
|
* @param metadataUuid The metadata UUID
|
|
8306
|
+
* @param file The file to upload
|
|
8293
8307
|
* @param visibility The sharing policy
|
|
8294
8308
|
* @param approved Use approved version or not
|
|
8295
|
-
* @param inlineObject3ApiModel
|
|
8296
8309
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
8297
8310
|
* @param reportProgress flag to report request and response progress.
|
|
8298
8311
|
*/
|
|
8299
8312
|
public putResource(
|
|
8300
8313
|
metadataUuid: string,
|
|
8314
|
+
file: Blob,
|
|
8301
8315
|
visibility?: 'public' | 'private',
|
|
8302
8316
|
approved?: boolean,
|
|
8303
|
-
inlineObject3ApiModel?: InlineObject3ApiModel,
|
|
8304
8317
|
observe?: 'body',
|
|
8305
8318
|
reportProgress?: boolean,
|
|
8306
8319
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
8307
8320
|
): Observable<MetadataResourceApiModel>
|
|
8308
8321
|
public putResource(
|
|
8309
8322
|
metadataUuid: string,
|
|
8323
|
+
file: Blob,
|
|
8310
8324
|
visibility?: 'public' | 'private',
|
|
8311
8325
|
approved?: boolean,
|
|
8312
|
-
inlineObject3ApiModel?: InlineObject3ApiModel,
|
|
8313
8326
|
observe?: 'response',
|
|
8314
8327
|
reportProgress?: boolean,
|
|
8315
8328
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
8316
8329
|
): Observable<HttpResponse<MetadataResourceApiModel>>
|
|
8317
8330
|
public putResource(
|
|
8318
8331
|
metadataUuid: string,
|
|
8332
|
+
file: Blob,
|
|
8319
8333
|
visibility?: 'public' | 'private',
|
|
8320
8334
|
approved?: boolean,
|
|
8321
|
-
inlineObject3ApiModel?: InlineObject3ApiModel,
|
|
8322
8335
|
observe?: 'events',
|
|
8323
8336
|
reportProgress?: boolean,
|
|
8324
8337
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
8325
8338
|
): Observable<HttpEvent<MetadataResourceApiModel>>
|
|
8326
8339
|
public putResource(
|
|
8327
8340
|
metadataUuid: string,
|
|
8341
|
+
file: Blob,
|
|
8328
8342
|
visibility?: 'public' | 'private',
|
|
8329
8343
|
approved?: boolean,
|
|
8330
|
-
inlineObject3ApiModel?: InlineObject3ApiModel,
|
|
8331
8344
|
observe: any = 'body',
|
|
8332
8345
|
reportProgress: boolean = false,
|
|
8333
8346
|
options?: { httpHeaderAccept?: 'application/json' }
|
|
@@ -8337,6 +8350,11 @@ export class RecordsApiService {
|
|
|
8337
8350
|
'Required parameter metadataUuid was null or undefined when calling putResource.'
|
|
8338
8351
|
)
|
|
8339
8352
|
}
|
|
8353
|
+
if (file === null || file === undefined) {
|
|
8354
|
+
throw new Error(
|
|
8355
|
+
'Required parameter file was null or undefined when calling putResource.'
|
|
8356
|
+
)
|
|
8357
|
+
}
|
|
8340
8358
|
|
|
8341
8359
|
let queryParameters = new HttpParams({ encoder: this.encoder })
|
|
8342
8360
|
if (visibility !== undefined && visibility !== null) {
|
|
@@ -8369,11 +8387,24 @@ export class RecordsApiService {
|
|
|
8369
8387
|
}
|
|
8370
8388
|
|
|
8371
8389
|
// to determine the Content-Type header
|
|
8372
|
-
const consumes: string[] = ['
|
|
8373
|
-
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8390
|
+
const consumes: string[] = ['multipart/form-data']
|
|
8391
|
+
|
|
8392
|
+
const canConsumeForm = this.canConsumeForm(consumes)
|
|
8393
|
+
|
|
8394
|
+
let formParams: { append(param: string, value: any): any }
|
|
8395
|
+
let useForm = false
|
|
8396
|
+
let convertFormParamsToString = false
|
|
8397
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
8398
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
8399
|
+
useForm = canConsumeForm
|
|
8400
|
+
if (useForm) {
|
|
8401
|
+
formParams = new FormData()
|
|
8402
|
+
} else {
|
|
8403
|
+
formParams = new HttpParams({ encoder: this.encoder })
|
|
8404
|
+
}
|
|
8405
|
+
|
|
8406
|
+
if (file !== undefined) {
|
|
8407
|
+
formParams = (formParams.append('file', <any>file) as any) || formParams
|
|
8377
8408
|
}
|
|
8378
8409
|
|
|
8379
8410
|
let responseType_: 'text' | 'json' = 'json'
|
|
@@ -8388,7 +8419,7 @@ export class RecordsApiService {
|
|
|
8388
8419
|
`${this.configuration.basePath}/records/${encodeURIComponent(
|
|
8389
8420
|
String(metadataUuid)
|
|
8390
8421
|
)}/attachments`,
|
|
8391
|
-
|
|
8422
|
+
convertFormParamsToString ? formParams.toString() : formParams,
|
|
8392
8423
|
{
|
|
8393
8424
|
params: queryParameters,
|
|
8394
8425
|
responseType: <any>responseType_,
|
|
@@ -33,7 +33,6 @@ export * from './iProcessingReport.api.model'
|
|
|
33
33
|
export * from './iSODate.api.model'
|
|
34
34
|
export * from './infoReport.api.model'
|
|
35
35
|
export * from './inlineObject1.api.model'
|
|
36
|
-
export * from './inlineObject3.api.model'
|
|
37
36
|
export * from './inlineObject4.api.model'
|
|
38
37
|
export * from './isoLanguage.api.model'
|
|
39
38
|
export * from './jSONObject.api.model'
|
|
@@ -5,7 +5,7 @@ export * from './lib/+state/editor.reducer'
|
|
|
5
5
|
export * from './lib/+state/editor.actions'
|
|
6
6
|
export * from './lib/feature-editor.module'
|
|
7
7
|
export * from './lib/services/editor.service'
|
|
8
|
-
export * from './lib/record-form/record-form.component'
|
|
8
|
+
export * from './lib/components/record-form/record-form.component'
|
|
9
9
|
export * from './lib/components/wizard/wizard.component'
|
|
10
10
|
export * from './lib/components/wizard-field/wizard-field.component'
|
|
11
11
|
export * from './lib/components/wizard-summarize/wizard-summarize.component'
|
|
@@ -3,14 +3,21 @@ import { select, Store } from '@ngrx/store'
|
|
|
3
3
|
import * as EditorActions from './editor.actions'
|
|
4
4
|
import * as EditorSelectors from './editor.selectors'
|
|
5
5
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
6
|
+
import { filter, Observable } from 'rxjs'
|
|
7
|
+
import { Actions, ofType } from '@ngrx/effects'
|
|
6
8
|
|
|
7
9
|
@Injectable()
|
|
8
10
|
export class EditorFacade {
|
|
9
11
|
private readonly store = inject(Store)
|
|
12
|
+
private actions$ = inject(Actions)
|
|
10
13
|
|
|
11
14
|
record$ = this.store.pipe(select(EditorSelectors.selectRecord))
|
|
12
15
|
saving$ = this.store.pipe(select(EditorSelectors.selectRecordSaving))
|
|
13
|
-
saveError$ = this.store.pipe(
|
|
16
|
+
saveError$ = this.store.pipe(
|
|
17
|
+
select(EditorSelectors.selectRecordSaveError),
|
|
18
|
+
filter((error) => !!error)
|
|
19
|
+
)
|
|
20
|
+
saveSuccess$ = this.actions$.pipe(ofType(EditorActions.saveRecordSuccess))
|
|
14
21
|
changedSinceSave$ = this.store.pipe(
|
|
15
22
|
select(EditorSelectors.selectRecordChangedSinceSave)
|
|
16
23
|
)
|
package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
ChangeDetectorRef,
|
|
4
|
+
Component,
|
|
5
|
+
Input,
|
|
6
|
+
OnInit,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { CommonModule } from '@angular/common'
|
|
9
|
+
import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src'
|
|
10
|
+
import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'gn-ui-overview-upload',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, UiInputsModule],
|
|
16
|
+
templateUrl: './overview-upload.component.html',
|
|
17
|
+
styleUrls: ['./overview-upload.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
})
|
|
20
|
+
export class OverviewUploadComponent implements OnInit {
|
|
21
|
+
@Input() metadataUuid: string
|
|
22
|
+
|
|
23
|
+
resourceFileName: string
|
|
24
|
+
resourceUrl: string
|
|
25
|
+
|
|
26
|
+
constructor(
|
|
27
|
+
private recordsApiService: RecordsApiService,
|
|
28
|
+
private cd: ChangeDetectorRef
|
|
29
|
+
) {}
|
|
30
|
+
|
|
31
|
+
ngOnInit(): void {
|
|
32
|
+
this.recordsApiService
|
|
33
|
+
.getAllResources(this.metadataUuid)
|
|
34
|
+
.subscribe((resources) => {
|
|
35
|
+
this.resourceFileName = resources[0]?.filename
|
|
36
|
+
this.resourceUrl = resources[0]?.url
|
|
37
|
+
this.cd.markForCheck()
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
handleFileChange(file: File) {
|
|
42
|
+
this.recordsApiService
|
|
43
|
+
.putResource(this.metadataUuid, file, 'public')
|
|
44
|
+
.subscribe((resource) => {
|
|
45
|
+
this.resourceFileName = resource.filename
|
|
46
|
+
this.resourceUrl = resource.url
|
|
47
|
+
this.cd.markForCheck()
|
|
48
|
+
})
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
handleUrlChange(url: string) {
|
|
52
|
+
this.recordsApiService
|
|
53
|
+
.putResourceFromURL(this.metadataUuid, url, 'public')
|
|
54
|
+
.subscribe((resource) => {
|
|
55
|
+
this.resourceFileName = resource.filename
|
|
56
|
+
this.resourceUrl = resource.url
|
|
57
|
+
this.cd.markForCheck()
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
handleDelete() {
|
|
62
|
+
this.recordsApiService
|
|
63
|
+
.delResource(this.metadataUuid, this.resourceFileName)
|
|
64
|
+
.subscribe(() => {
|
|
65
|
+
this.resourceFileName = null
|
|
66
|
+
this.resourceUrl = null
|
|
67
|
+
this.cd.markForCheck()
|
|
68
|
+
})
|
|
69
|
+
}
|
|
70
|
+
}
|