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
|
@@ -22,9 +22,9 @@ import { LayerConfig, MapConfig } from '../../../../../../libs/util/app-config/s
|
|
|
22
22
|
import { FeatureCollection } from 'geojson'
|
|
23
23
|
import { fromLonLat } from 'ol/proj'
|
|
24
24
|
import WMTS from 'ol/source/WMTS'
|
|
25
|
-
import { removeSearchParams } from '../../../../../../libs/util/shared/src'
|
|
26
25
|
import { Geometry } from 'ol/geom'
|
|
27
26
|
import Feature from 'ol/Feature'
|
|
27
|
+
import { WfsEndpoint, WmtsEndpoint } from '@camptocamp/ogc-client'
|
|
28
28
|
|
|
29
29
|
export const DEFAULT_BASELAYER_CONTEXT: MapContextLayerXyzModel = {
|
|
30
30
|
type: MapContextLayerTypeEnum.XYZ,
|
|
@@ -77,6 +77,15 @@ export class MapContextService {
|
|
|
77
77
|
const { type } = layerModel
|
|
78
78
|
const style = this.styleService.styles.default
|
|
79
79
|
switch (type) {
|
|
80
|
+
case MapContextLayerTypeEnum.OGCAPI:
|
|
81
|
+
return new VectorLayer({
|
|
82
|
+
source: new VectorSource({
|
|
83
|
+
format: new GeoJSON(),
|
|
84
|
+
url: layerModel.url,
|
|
85
|
+
}),
|
|
86
|
+
style,
|
|
87
|
+
})
|
|
88
|
+
|
|
80
89
|
case MapContextLayerTypeEnum.XYZ:
|
|
81
90
|
return new TileLayer({
|
|
82
91
|
source: new XYZ({
|
|
@@ -87,44 +96,63 @@ export class MapContextService {
|
|
|
87
96
|
case MapContextLayerTypeEnum.WMS:
|
|
88
97
|
return new TileLayer({
|
|
89
98
|
source: new TileWMS({
|
|
90
|
-
url:
|
|
99
|
+
url: layerModel.url,
|
|
91
100
|
params: { LAYERS: layerModel.name },
|
|
92
101
|
gutter: 20,
|
|
93
102
|
}),
|
|
94
103
|
})
|
|
95
|
-
case MapContextLayerTypeEnum.WMTS:
|
|
96
|
-
|
|
97
|
-
|
|
104
|
+
case MapContextLayerTypeEnum.WMTS: {
|
|
105
|
+
// TODO: isolate this in utils service
|
|
106
|
+
const olLayer = new TileLayer({})
|
|
107
|
+
const endpoint = new WmtsEndpoint(layerModel.url)
|
|
108
|
+
endpoint.isReady().then(async (endpoint) => {
|
|
109
|
+
const layerName = endpoint.getSingleLayerName() ?? layerModel.name
|
|
110
|
+
const layer = endpoint.getLayerByName(layerName)
|
|
111
|
+
const matrixSet = layer.matrixSets[0]
|
|
112
|
+
const tileGrid = await endpoint.getOpenLayersTileGrid(layer.name)
|
|
113
|
+
const resourceUrl = layer.resourceLinks[0]
|
|
114
|
+
const dimensions = endpoint.getDefaultDimensions(layer.name)
|
|
115
|
+
olLayer.setSource(
|
|
116
|
+
new WMTS({
|
|
117
|
+
layer: layer.name,
|
|
118
|
+
style: layer.defaultStyle,
|
|
119
|
+
matrixSet: matrixSet.identifier,
|
|
120
|
+
format: resourceUrl.format,
|
|
121
|
+
url: resourceUrl.url,
|
|
122
|
+
requestEncoding: resourceUrl.encoding,
|
|
123
|
+
tileGrid,
|
|
124
|
+
projection: matrixSet.crs,
|
|
125
|
+
dimensions,
|
|
126
|
+
})
|
|
127
|
+
)
|
|
98
128
|
})
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
url: function (extent) {
|
|
104
|
-
const urlObj = new URL(
|
|
105
|
-
removeSearchParams(layerModel.url, [
|
|
106
|
-
'service',
|
|
107
|
-
'version',
|
|
108
|
-
'request',
|
|
109
|
-
])
|
|
110
|
-
)
|
|
111
|
-
urlObj.searchParams.set('service', 'WFS')
|
|
112
|
-
urlObj.searchParams.set('version', '1.1.0')
|
|
113
|
-
urlObj.searchParams.set('request', 'GetFeature')
|
|
114
|
-
urlObj.searchParams.set('outputFormat', 'application/json')
|
|
115
|
-
urlObj.searchParams.set('typename', layerModel.name)
|
|
116
|
-
urlObj.searchParams.set('srsname', 'EPSG:3857')
|
|
117
|
-
urlObj.searchParams.set('bbox', `${extent.join(',')},EPSG:3857`)
|
|
118
|
-
urlObj.searchParams.set(
|
|
119
|
-
'maxFeatures',
|
|
120
|
-
WFS_MAX_FEATURES.toString()
|
|
121
|
-
)
|
|
122
|
-
return urlObj.toString()
|
|
123
|
-
},
|
|
124
|
-
strategy: bboxStrategy,
|
|
125
|
-
}),
|
|
129
|
+
return olLayer
|
|
130
|
+
}
|
|
131
|
+
case MapContextLayerTypeEnum.WFS: {
|
|
132
|
+
const olLayer = new VectorLayer({
|
|
126
133
|
style,
|
|
127
134
|
})
|
|
135
|
+
new WfsEndpoint(layerModel.url).isReady().then((endpoint) => {
|
|
136
|
+
const featureType =
|
|
137
|
+
endpoint.getSingleFeatureTypeName() ?? layerModel.name
|
|
138
|
+
olLayer.setSource(
|
|
139
|
+
new VectorSource({
|
|
140
|
+
format: new GeoJSON(),
|
|
141
|
+
url: function (extent: [number, number, number, number]) {
|
|
142
|
+
return endpoint.getFeatureUrl(featureType, {
|
|
143
|
+
maxFeatures: WFS_MAX_FEATURES,
|
|
144
|
+
asJson: true,
|
|
145
|
+
outputCrs: 'EPSG:3857',
|
|
146
|
+
extent,
|
|
147
|
+
extentCrs: 'EPSG:3857',
|
|
148
|
+
})
|
|
149
|
+
},
|
|
150
|
+
strategy: bboxStrategy,
|
|
151
|
+
})
|
|
152
|
+
)
|
|
153
|
+
})
|
|
154
|
+
return olLayer
|
|
155
|
+
}
|
|
128
156
|
case MapContextLayerTypeEnum.GEOJSON: {
|
|
129
157
|
if ('url' in layerModel) {
|
|
130
158
|
return new VectorLayer({
|
|
@@ -12,7 +12,6 @@ import Source from 'ol/source/Source'
|
|
|
12
12
|
import ImageWMS from 'ol/source/ImageWMS'
|
|
13
13
|
import TileWMS from 'ol/source/TileWMS'
|
|
14
14
|
import VectorSource from 'ol/source/Vector'
|
|
15
|
-
import { optionsFromCapabilities } from 'ol/source/WMTS'
|
|
16
15
|
import { defaults, DragPan, Interaction, MouseWheelZoom } from 'ol/interaction'
|
|
17
16
|
import {
|
|
18
17
|
mouseOnly,
|
|
@@ -20,23 +19,17 @@ import {
|
|
|
20
19
|
platformModifierKeyOnly,
|
|
21
20
|
primaryAction,
|
|
22
21
|
} from 'ol/events/condition'
|
|
23
|
-
import
|
|
24
|
-
import { from, Observable } from 'rxjs'
|
|
22
|
+
import { Observable } from 'rxjs'
|
|
25
23
|
import { map } from 'rxjs/operators'
|
|
26
24
|
import {
|
|
27
25
|
MapContextLayerModel,
|
|
28
|
-
MapContextLayerTypeEnum,
|
|
29
26
|
MapContextLayerWmsModel,
|
|
30
|
-
MapContextLayerWmtsModel,
|
|
31
27
|
} from '../map-context/map-context.model'
|
|
32
28
|
import Collection from 'ol/Collection'
|
|
33
29
|
import MapBrowserEvent from 'ol/MapBrowserEvent'
|
|
34
|
-
import {
|
|
35
|
-
CatalogRecord,
|
|
36
|
-
DatasetDistribution,
|
|
37
|
-
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
30
|
+
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
38
31
|
import { ProxyService } from '../../../../../../libs/util/shared/src'
|
|
39
|
-
import { WmsEndpoint } from '@camptocamp/ogc-client'
|
|
32
|
+
import { WmsEndpoint, WmtsEndpoint } from '@camptocamp/ogc-client'
|
|
40
33
|
import { LONLAT_CRS_CODES } from '../constant/projections'
|
|
41
34
|
import { fromEPSGCode, register } from 'ol/proj/proj4'
|
|
42
35
|
import proj4 from 'proj4/dist/proj4'
|
|
@@ -152,11 +145,14 @@ export class MapUtilsService {
|
|
|
152
145
|
} else if (layer && layer.type === 'wms') {
|
|
153
146
|
latLonExtent = await this.getWmsLayerExtent(layer)
|
|
154
147
|
} else if (layer && layer.type === 'wmts') {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
148
|
+
// TODO: isolate this in utils service
|
|
149
|
+
latLonExtent = await new WmtsEndpoint(layer.url)
|
|
150
|
+
.isReady()
|
|
151
|
+
.then((endpoint) => {
|
|
152
|
+
const layerName = endpoint.getSingleLayerName() ?? layer.name
|
|
153
|
+
const wmtsLayer = endpoint.getLayerByName(layerName)
|
|
154
|
+
return wmtsLayer.latLonBoundingBox
|
|
155
|
+
})
|
|
160
156
|
} else {
|
|
161
157
|
return null
|
|
162
158
|
}
|
|
@@ -180,59 +176,19 @@ export class MapUtilsService {
|
|
|
180
176
|
LONLAT_CRS_CODES.includes(crs)
|
|
181
177
|
)
|
|
182
178
|
if (lonLatCRS) {
|
|
183
|
-
return boundingBoxes[lonLatCRS]
|
|
179
|
+
return boundingBoxes[lonLatCRS]
|
|
184
180
|
} else {
|
|
185
181
|
const availableEPSGCode = Object.keys(boundingBoxes)[0]
|
|
186
182
|
register(proj4)
|
|
187
183
|
const proj = await fromEPSGCode(availableEPSGCode)
|
|
188
|
-
|
|
189
|
-
boundingBoxes[availableEPSGCode]
|
|
190
|
-
|
|
184
|
+
return transformExtent(
|
|
185
|
+
boundingBoxes[availableEPSGCode],
|
|
186
|
+
proj,
|
|
187
|
+
'EPSG:4326'
|
|
188
|
+
)
|
|
191
189
|
}
|
|
192
190
|
}
|
|
193
191
|
|
|
194
|
-
getWmtsLayerFromCapabilities(
|
|
195
|
-
link: DatasetDistribution
|
|
196
|
-
): Observable<MapContextLayerWmtsModel> {
|
|
197
|
-
const getCapabilitiesUrl = new URL(link.url, window.location.toString())
|
|
198
|
-
getCapabilitiesUrl.searchParams.set('SERVICE', 'WMTS')
|
|
199
|
-
getCapabilitiesUrl.searchParams.set('REQUEST', 'GetCapabilities')
|
|
200
|
-
return from(
|
|
201
|
-
fetch(getCapabilitiesUrl.toString())
|
|
202
|
-
.then(async function (response) {
|
|
203
|
-
if (!response.ok) {
|
|
204
|
-
throw new Error(`WMTS GetCapabilities HTTP request failed with code ${
|
|
205
|
-
response.status
|
|
206
|
-
} and body:
|
|
207
|
-
${await response.text()}`)
|
|
208
|
-
}
|
|
209
|
-
return response.text()
|
|
210
|
-
})
|
|
211
|
-
.then(function (text) {
|
|
212
|
-
try {
|
|
213
|
-
const result = new WMTSCapabilities().read(text)
|
|
214
|
-
const options = optionsFromCapabilities(result, {
|
|
215
|
-
layer: link.name,
|
|
216
|
-
matrixSet: 'EPSG:3857',
|
|
217
|
-
})
|
|
218
|
-
const layerCap = result?.Contents?.Layer.find(
|
|
219
|
-
(layer) => layer.Identifier === link.name
|
|
220
|
-
)
|
|
221
|
-
return {
|
|
222
|
-
options,
|
|
223
|
-
type: MapContextLayerTypeEnum.WMTS as 'wmts',
|
|
224
|
-
...(layerCap?.WGS84BoundingBox
|
|
225
|
-
? { extent: layerCap.WGS84BoundingBox }
|
|
226
|
-
: {}),
|
|
227
|
-
}
|
|
228
|
-
} catch (e: any) {
|
|
229
|
-
throw new Error(`WMTS GetCapabilities parsing failed:
|
|
230
|
-
${e.stack || e.message || e}`)
|
|
231
|
-
}
|
|
232
|
-
})
|
|
233
|
-
)
|
|
234
|
-
}
|
|
235
|
-
|
|
236
192
|
prioritizePageScroll(interactions: Collection<Interaction>) {
|
|
237
193
|
interactions.clear()
|
|
238
194
|
interactions.extend(
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<div class="flex flex-col gap-6 p-6 items-start pointer-events-none">
|
|
2
|
+
<gn-ui-notification
|
|
3
|
+
*ngFor="
|
|
4
|
+
let notification of notificationsService.notifications$ | async;
|
|
5
|
+
trackBy: trackById
|
|
6
|
+
"
|
|
7
|
+
class="max-w-full pointer-events-auto"
|
|
8
|
+
[text]="notification.text"
|
|
9
|
+
[type]="notification.type"
|
|
10
|
+
[title]="notification.title"
|
|
11
|
+
[closeMessage]="notification.closeMessage"
|
|
12
|
+
(notificationClose)="
|
|
13
|
+
notificationsService.removeNotificationById(notification.id)
|
|
14
|
+
"
|
|
15
|
+
[@enterExit]
|
|
16
|
+
></gn-ui-notification>
|
|
17
|
+
</div>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { NotificationsService } from '../notifications.service'
|
|
4
|
+
import { NotificationComponent } from '../../../../../../libs/ui/elements/src'
|
|
5
|
+
import {
|
|
6
|
+
animate,
|
|
7
|
+
keyframes,
|
|
8
|
+
style,
|
|
9
|
+
transition,
|
|
10
|
+
trigger,
|
|
11
|
+
} from '@angular/animations'
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'gn-ui-notifications-container',
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [CommonModule, NotificationComponent],
|
|
17
|
+
templateUrl: './notifications-container.component.html',
|
|
18
|
+
styleUrls: ['./notifications-container.component.css'],
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
animations: [
|
|
21
|
+
trigger('enterExit', [
|
|
22
|
+
transition(':enter', [
|
|
23
|
+
animate(
|
|
24
|
+
'150ms',
|
|
25
|
+
keyframes([
|
|
26
|
+
style({ transform: 'scale(1)', opacity: 0 }),
|
|
27
|
+
style({ transform: 'scale(1.03)', opacity: 0.5 }),
|
|
28
|
+
style({ transform: 'scale(1)', opacity: 1 }),
|
|
29
|
+
])
|
|
30
|
+
),
|
|
31
|
+
]),
|
|
32
|
+
transition(':leave', [
|
|
33
|
+
animate('200ms', style({ transform: 'translateX(50px)', opacity: 0 })),
|
|
34
|
+
]),
|
|
35
|
+
]),
|
|
36
|
+
],
|
|
37
|
+
})
|
|
38
|
+
export class NotificationsContainerComponent {
|
|
39
|
+
constructor(protected notificationsService: NotificationsService) {}
|
|
40
|
+
|
|
41
|
+
trackById(index: number, notification: { id: number }) {
|
|
42
|
+
return notification.id
|
|
43
|
+
}
|
|
44
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core'
|
|
2
|
+
import { NotificationContent } from './notification.model'
|
|
3
|
+
import { BehaviorSubject } from 'rxjs'
|
|
4
|
+
|
|
5
|
+
type NotificationWithIdentity = NotificationContent & { id: number }
|
|
6
|
+
|
|
7
|
+
@Injectable({
|
|
8
|
+
providedIn: 'root',
|
|
9
|
+
})
|
|
10
|
+
export class NotificationsService {
|
|
11
|
+
notifications$ = new BehaviorSubject<NotificationWithIdentity[]>([])
|
|
12
|
+
|
|
13
|
+
showNotification(content: NotificationContent, timeoutMs?: number) {
|
|
14
|
+
const id = Math.floor(Math.random() * 1000000)
|
|
15
|
+
this.notifications$.next([...this.notifications$.value, { ...content, id }])
|
|
16
|
+
if (typeof timeoutMs === 'undefined') return
|
|
17
|
+
setTimeout(() => {
|
|
18
|
+
this.removeNotificationById(id)
|
|
19
|
+
}, timeoutMs)
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
removeNotificationById(id: number) {
|
|
23
|
+
this.notifications$.next(
|
|
24
|
+
this.notifications$.value.filter((n) => n.id !== id)
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -188,7 +188,11 @@ export class MapViewComponent implements OnInit, OnDestroy {
|
|
|
188
188
|
link.type === 'service' &&
|
|
189
189
|
link.accessServiceProtocol === 'wmts'
|
|
190
190
|
) {
|
|
191
|
-
return
|
|
191
|
+
return of({
|
|
192
|
+
url: link.url.toString(),
|
|
193
|
+
type: MapContextLayerTypeEnum.WMTS,
|
|
194
|
+
name: link.name,
|
|
195
|
+
})
|
|
192
196
|
} else if (
|
|
193
197
|
(link.type === 'service' &&
|
|
194
198
|
(link.accessServiceProtocol === 'wfs' ||
|
|
@@ -50,20 +50,20 @@
|
|
|
50
50
|
[title]="formats.join(', ')"
|
|
51
51
|
>
|
|
52
52
|
<span
|
|
53
|
-
class="badge-btn min-w-[45px] text-sm text-white px-2
|
|
53
|
+
class="badge-btn min-w-[45px] text-sm text-white px-2 shrink-0"
|
|
54
54
|
[style.background-color]="getBadgeColor(formats[0])"
|
|
55
55
|
*ngIf="formats[0]"
|
|
56
56
|
>
|
|
57
57
|
{{ formats[0] }}
|
|
58
58
|
</span>
|
|
59
59
|
<span
|
|
60
|
-
class="badge-btn min-w-[45px] text-sm text-white px-2
|
|
60
|
+
class="badge-btn min-w-[45px] text-sm text-white px-2 shrink-0"
|
|
61
61
|
[style.background-color]="getBadgeColor(formats[1])"
|
|
62
62
|
*ngIf="formats[1]"
|
|
63
63
|
>
|
|
64
64
|
{{ formats[1] }}
|
|
65
65
|
</span>
|
|
66
|
-
<div class="
|
|
66
|
+
<div class="shrink-0" *ngIf="formats.slice(2).length > 0">
|
|
67
67
|
<span>+{{ formats.slice(2).length }}</span>
|
|
68
68
|
</div>
|
|
69
69
|
</div>
|
package/src/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[title]="organisation.name"
|
|
5
5
|
>
|
|
6
6
|
<div
|
|
7
|
-
class="
|
|
7
|
+
class="shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 h-36"
|
|
8
8
|
>
|
|
9
9
|
<gn-ui-thumbnail
|
|
10
10
|
class="relative h-full w-full"
|
|
@@ -13,20 +13,20 @@
|
|
|
13
13
|
>
|
|
14
14
|
</gn-ui-thumbnail>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="px-3 pb-2 capitalize flex flex-col
|
|
16
|
+
<div class="px-3 pb-2 capitalize flex flex-col grow overflow-hidden">
|
|
17
17
|
<span
|
|
18
|
-
class="
|
|
18
|
+
class="shrink-0 mb-3 mt-5 font-title text-21 text-title group-hover:text-primary line-clamp-2 sm:mt-2 transition-colors"
|
|
19
19
|
data-cy="organizationName"
|
|
20
20
|
>
|
|
21
21
|
{{ organisation.name }}</span
|
|
22
22
|
>
|
|
23
23
|
<p
|
|
24
|
-
class="abstract mt-4 mb-5 sm:mb-2 sm:mt-0
|
|
24
|
+
class="abstract mt-4 mb-5 sm:mb-2 sm:mt-0 grow shrink-1 overflow-hidden"
|
|
25
25
|
data-cy="organizationDesc"
|
|
26
26
|
>
|
|
27
27
|
{{ organisation.description }}
|
|
28
28
|
</p>
|
|
29
|
-
<div class="
|
|
29
|
+
<div class="shrink-0 text-primary opacity-50 flex leading-6">
|
|
30
30
|
<mat-icon class="material-symbols-outlined text-primary opacity-50 mr-1"
|
|
31
31
|
>folder_open
|
|
32
32
|
</mat-icon>
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
export * from './lib/ui-elements.module'
|
|
2
|
-
export * from './lib/metadata-info/metadata-info.component'
|
|
3
|
-
export * from './lib/metadata-contact/metadata-contact.component'
|
|
4
|
-
export * from './lib/metadata-catalog/metadata-catalog.component'
|
|
5
|
-
export * from './lib/metadata-quality/metadata-quality.component'
|
|
6
|
-
export * from './lib/metadata-quality-item/metadata-quality-item.component'
|
|
7
|
-
export * from './lib/search-results-error/search-results-error.component'
|
|
8
|
-
export * from './lib/thumbnail/thumbnail.component'
|
|
9
|
-
export * from './lib/content-ghost/content-ghost.component'
|
|
10
|
-
export * from './lib/pagination-buttons/pagination-buttons.component'
|
|
11
1
|
export * from './lib/api-card/api-card.component'
|
|
12
2
|
export * from './lib/avatar/avatar.component'
|
|
13
3
|
export * from './lib/content-ghost/content-ghost.component'
|
|
14
4
|
export * from './lib/download-item/download-item.component'
|
|
15
5
|
export * from './lib/downloads-list/downloads-list.component'
|
|
6
|
+
export * from './lib/image-overlay-preview/image-overlay-preview.component'
|
|
16
7
|
export * from './lib/link-card/link-card.component'
|
|
8
|
+
export * from './lib/markdown-editor/markdown-editor.component'
|
|
9
|
+
export * from './lib/markdown-parser/markdown-parser.component'
|
|
10
|
+
export * from './lib/max-lines/max-lines.component'
|
|
11
|
+
export * from './lib/metadata-catalog/metadata-catalog.component'
|
|
12
|
+
export * from './lib/metadata-contact/metadata-contact.component'
|
|
13
|
+
export * from './lib/metadata-info/metadata-info.component'
|
|
14
|
+
export * from './lib/metadata-quality-item/metadata-quality-item.component'
|
|
15
|
+
export * from './lib/metadata-quality/metadata-quality.component'
|
|
16
|
+
export * from './lib/pagination-buttons/pagination-buttons.component'
|
|
17
17
|
export * from './lib/pagination/pagination.component'
|
|
18
|
+
export * from './lib/record-api-form/record-api-form.component'
|
|
18
19
|
export * from './lib/related-record-card/related-record-card.component'
|
|
19
20
|
export * from './lib/search-results-error/search-results-error.component'
|
|
21
|
+
export * from './lib/thumbnail/thumbnail.component'
|
|
22
|
+
export * from './lib/ui-elements.module'
|
|
20
23
|
export * from './lib/user-preview/user-preview.component'
|
|
21
|
-
export * from './lib/
|
|
22
|
-
export * from './lib/record-api-form/record-api-form.component'
|
|
23
|
-
export * from './lib/markdown-parser/markdown-parser.component'
|
|
24
|
-
export * from './lib/image-overlay-preview/image-overlay-preview.component'
|
|
24
|
+
export * from './lib/notification/notification.component'
|
package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*ngIf="imageUrl"
|
|
7
7
|
[showContent]="imageUrl !== undefined"
|
|
8
8
|
data-cy="record-thumbnail"
|
|
9
|
-
class="
|
|
9
|
+
class="shrink-0 bg-gray-100 rounded-lg overflow-hidden w-full border border-gray-300 group-hover:shadow-xl group-hover:border-0 h-48 mb-3"
|
|
10
10
|
>
|
|
11
11
|
<gn-ui-thumbnail
|
|
12
12
|
class="relative h-full w-full"
|
|
@@ -1,25 +1,4 @@
|
|
|
1
1
|
<div class="h-full flex flex-col">
|
|
2
|
-
<div class="flex-none w-full flex flex-row items-center">
|
|
3
|
-
<p class="flex-none font-bold">{{ label }}</p>
|
|
4
|
-
<div class="flex-1 flex justify-end items-center">
|
|
5
|
-
<gn-ui-button
|
|
6
|
-
[extraClass]="getButtonExtraClass()"
|
|
7
|
-
(buttonClick)="togglePreview()"
|
|
8
|
-
>
|
|
9
|
-
<span class="material-symbols-outlined mr-1 icon-small">{{
|
|
10
|
-
preview ? 'visibility' : 'visibility_off'
|
|
11
|
-
}}</span>
|
|
12
|
-
{{ preview ? 'WYSIWYG' : 'Markdown' }}
|
|
13
|
-
</gn-ui-button>
|
|
14
|
-
<span
|
|
15
|
-
class="material-symbols-outlined m-2 icon-small"
|
|
16
|
-
[matTooltip]="tooltip"
|
|
17
|
-
matTooltipPosition="above"
|
|
18
|
-
>
|
|
19
|
-
help
|
|
20
|
-
</span>
|
|
21
|
-
</div>
|
|
22
|
-
</div>
|
|
23
2
|
<p class="flex-none mb-2 font-medium text-sm text-gray-900">
|
|
24
3
|
{{ helperText }}
|
|
25
4
|
</p>
|
|
@@ -31,26 +31,13 @@ import { MatTooltipModule } from '@angular/material/tooltip'
|
|
|
31
31
|
],
|
|
32
32
|
})
|
|
33
33
|
export class MarkdownEditorComponent {
|
|
34
|
-
@Input()
|
|
35
|
-
@Input() tooltip?: string
|
|
34
|
+
@Input() preview = false
|
|
36
35
|
@Input() helperText?: string
|
|
37
36
|
@Input() placeholder: string
|
|
38
37
|
@Input() textContent: string
|
|
39
38
|
@Output() textContentChanged: EventEmitter<string> =
|
|
40
39
|
new EventEmitter<string>()
|
|
41
40
|
|
|
42
|
-
preview = false
|
|
43
|
-
|
|
44
|
-
getButtonExtraClass() {
|
|
45
|
-
return `${
|
|
46
|
-
this.preview ? 'text-gray-200 bg-gray-900' : 'text-gray-900 bg-gray-200'
|
|
47
|
-
} rounded-[1.25rem] p-[0.375rem] text-xs font-medium w-24`
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
togglePreview() {
|
|
51
|
-
this.preview = !this.preview
|
|
52
|
-
}
|
|
53
|
-
|
|
54
41
|
textContentChangedHandler(textContent: string) {
|
|
55
42
|
this.textContent = textContent
|
|
56
43
|
this.textContentChanged.emit(this.textContent)
|
|
File without changes
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="p-[16px] flex flex-row gap-[16px] items-start border border-gray-200 shadow-md rounded bg-background"
|
|
3
|
+
>
|
|
4
|
+
<div
|
|
5
|
+
role="alert"
|
|
6
|
+
class="rounded-full text-white p-[6px] w-[32px] h-[32px] flex shrink-0"
|
|
7
|
+
[ngClass]="{
|
|
8
|
+
'bg-red-500': type === 'error',
|
|
9
|
+
'bg-yellow-500': type === 'warning',
|
|
10
|
+
'bg-green-500': type === 'success',
|
|
11
|
+
'bg-blue-500': type === 'info'
|
|
12
|
+
}"
|
|
13
|
+
[ngSwitch]="type"
|
|
14
|
+
>
|
|
15
|
+
<mat-icon class="material-symbols-outlined !w-[18px] !h-[18px] text-[20px]">
|
|
16
|
+
<ng-container *ngSwitchCase="'success'">check_circle</ng-container>
|
|
17
|
+
<ng-container *ngSwitchCase="'info'">info</ng-container>
|
|
18
|
+
<ng-container *ngSwitchCase="'warning'">warning</ng-container>
|
|
19
|
+
<ng-container *ngSwitchCase="'error'">error</ng-container>
|
|
20
|
+
</mat-icon>
|
|
21
|
+
</div>
|
|
22
|
+
<div
|
|
23
|
+
class="flex flex-col items-start gap-[4px] pt-[3px] grow shrink overflow-hidden"
|
|
24
|
+
>
|
|
25
|
+
<div class="font-bold text-[16px] text-gray-900">
|
|
26
|
+
{{ title }}
|
|
27
|
+
</div>
|
|
28
|
+
<div class="text-[14px] text-gray-800">
|
|
29
|
+
{{ text }}
|
|
30
|
+
</div>
|
|
31
|
+
<a
|
|
32
|
+
href
|
|
33
|
+
*ngIf="closeMessage"
|
|
34
|
+
class="text-[14px] gn-ui-link"
|
|
35
|
+
(click)="handleClose($event)"
|
|
36
|
+
>
|
|
37
|
+
{{ closeMessage }}
|
|
38
|
+
</a>
|
|
39
|
+
</div>
|
|
40
|
+
<gn-ui-button
|
|
41
|
+
type="light"
|
|
42
|
+
class="shrink-0"
|
|
43
|
+
(buttonClick)="handleClose()"
|
|
44
|
+
[style.--gn-ui-button-padding]="0"
|
|
45
|
+
[style.--gn-ui-button-width]="'21px'"
|
|
46
|
+
[style.--gn-ui-button-height]="'21px'"
|
|
47
|
+
>
|
|
48
|
+
<mat-icon class="material-symbols-outlined text-[22px] !w-[21px] !h-[21px]"
|
|
49
|
+
>close</mat-icon
|
|
50
|
+
>
|
|
51
|
+
</gn-ui-button>
|
|
52
|
+
</div>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { CommonModule } from '@angular/common'
|
|
9
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
10
|
+
import { ButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'gn-ui-notification',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule, MatIconModule, ButtonComponent],
|
|
16
|
+
templateUrl: './notification.component.html',
|
|
17
|
+
styleUrls: ['./notification.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
})
|
|
20
|
+
export class NotificationComponent {
|
|
21
|
+
@Input() type: 'info' | 'warning' | 'error' | 'success' = 'info'
|
|
22
|
+
@Input() title: string
|
|
23
|
+
@Input() text: string
|
|
24
|
+
@Input() closeMessage?: string
|
|
25
|
+
@Output() notificationClose = new EventEmitter<void>()
|
|
26
|
+
|
|
27
|
+
handleClose(event?: Event) {
|
|
28
|
+
event?.preventDefault()
|
|
29
|
+
this.notificationClose.emit()
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</p>
|
|
14
14
|
</button>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="flex flex-row flex-wrap justify-between
|
|
16
|
+
<div class="flex flex-row flex-wrap justify-between grow gap-5">
|
|
17
17
|
<div class="flex flex-col gap-3">
|
|
18
18
|
<p class="text-[14px]" translate>record.metadata.api.form.limit</p>
|
|
19
19
|
<div class="flex flex-row items-center gap-2">
|