geonetwork-ui 2.4.0-dev.7a893adc → 2.4.0-dev.80a79eca
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +10 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.mjs +5 -5
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +7 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +10 -7
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -14
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +6 -6
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +28 -18
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +41 -7
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/user/user.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/fixtures/site.fixtures.mjs +5 -5
- package/esm2022/libs/data-access/gn4/src/fixtures/ui.fixtures.mjs +3 -3
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +71 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +8 -29
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +148 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.mjs +86 -11
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +29 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.mjs +32 -59
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +10 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/record-form.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +29 -3
- package/esm2022/libs/feature/editor/src/lib/models/editor-config.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 +2 -2
- package/esm2022/libs/feature/map/src/lib/style/map-style.fixtures.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +4 -2
- package/esm2022/libs/feature/search/src/lib/results-table/results-table-container.component.mjs +5 -4
- package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +3 -3
- package/esm2022/libs/ui/elements/src/index.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/download-item/download-item.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/link-card/link-card.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/index.mjs +4 -1
- package/esm2022/libs/ui/inputs/src/lib/file-input/file-input.component.mjs +87 -0
- package/esm2022/libs/ui/inputs/src/lib/image-input/image-input.component.mjs +5 -4
- package/esm2022/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.mjs +4 -4
- package/esm2022/libs/ui/inputs/src/lib/text-area/text-area.component.mjs +4 -3
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.mjs +29 -0
- package/esm2022/libs/ui/layout/src/lib/sortable-list/sortable-list.component.mjs +43 -0
- package/esm2022/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.mjs +7 -7
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +8 -8
- package/esm2022/libs/util/app-config/src/lib/fixtures.mjs +10 -10
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +1 -1
- package/esm2022/libs/util/shared/src/lib/utils/bytes-convert.mjs +4 -1
- package/esm2022/translations/de.json +15 -2
- package/esm2022/translations/en.json +15 -2
- package/esm2022/translations/es.json +13 -0
- package/esm2022/translations/fr.json +16 -3
- package/esm2022/translations/it.json +15 -2
- package/esm2022/translations/nl.json +13 -0
- package/esm2022/translations/pt.json +13 -0
- package/fesm2022/geonetwork-ui.mjs +2888 -2477
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +3 -3
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +2 -2
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +4 -5
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts +7 -6
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +21 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +6 -6
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/user/user.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +15 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts +2 -2
- package/libs/data-access/gn4/src/fixtures/site.fixtures.d.ts.map +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts +1 -1
- package/libs/data-access/gn4/src/fixtures/ui.fixtures.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts +2 -2
- package/libs/feature/dataviz/src/lib/chart-view/chart-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +6 -6
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -3
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts +15 -0
- package/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts +2 -5
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +35 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts +20 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts +7 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts +9 -15
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +5 -3
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts +3 -2
- package/libs/feature/editor/src/lib/components/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +9 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts +5 -0
- package/libs/feature/editor/src/lib/models/editor-config.model.d.ts.map +1 -1
- package/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.d.ts +5 -5
- 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/style/map-style.fixtures.d.ts +2 -2
- package/libs/feature/map/src/lib/style/map-style.fixtures.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +3 -3
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts +2 -2
- package/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -2
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +7 -7
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts +1 -0
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +2 -2
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/download-item/download-item.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +7 -7
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts +2 -2
- package/libs/ui/elements/src/lib/link-card/link-card.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/index.d.ts +3 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts +24 -0
- package/libs/ui/inputs/src/lib/file-input/file-input.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts +1 -1
- package/libs/ui/inputs/src/lib/image-input/image-input.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts +0 -1
- package/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/text-area/text-area.component.d.ts.map +1 -1
- package/libs/ui/layout/src/index.d.ts +2 -0
- package/libs/ui/layout/src/index.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts +20 -0
- package/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/sortable-list/sortable-list.component.d.ts.map +1 -0
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts +3 -3
- package/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +2 -2
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/util/app-config/src/lib/fixtures.d.ts +8 -8
- package/libs/util/app-config/src/lib/fixtures.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts +3 -3
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +6 -6
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts +2 -1
- package/libs/util/shared/src/lib/utils/bytes-convert.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +18 -16
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +4 -4
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +12 -4
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +14 -8
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +4 -12
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +13 -15
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +48 -36
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +47 -3
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +7 -7
- package/src/libs/common/domain/src/lib/model/user/user.model.ts +1 -1
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +26 -0
- package/src/libs/common/fixtures/src/index.ts +1 -1
- package/src/libs/common/fixtures/src/lib/editor/editor.fixtures.ts +37 -37
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-request.ts → aggregations-request.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{aggregations-response.ts → aggregations-response.fixtures.ts} +6 -8
- package/src/libs/common/fixtures/src/lib/elasticsearch/{full-response.ts → full-response.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/index.ts +5 -5
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata.fixtures.ts +1739 -1742
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-requests.ts → search-requests.fixtures.ts} +1 -3
- package/src/libs/common/fixtures/src/lib/elasticsearch/{search-responses.ts → search-responses.fixtures.ts} +4 -6
- package/src/libs/common/fixtures/src/lib/geojson.fixtures.ts +57178 -57195
- package/src/libs/common/fixtures/src/lib/gn4/groups.fixtures.ts +2 -4
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +233 -164
- package/src/libs/common/fixtures/src/lib/ol-feature.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/organisations.fixture.ts +37 -3
- package/src/libs/common/fixtures/src/lib/record-link.fixtures.ts +9 -7
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +9 -9
- package/src/libs/common/fixtures/src/lib/repository.fixtures.ts +4 -4
- package/src/libs/common/fixtures/src/lib/search/aggregations.ts +2 -3
- package/src/libs/common/fixtures/src/lib/user-feedbacks.fixtures.ts +14 -15
- package/src/libs/common/fixtures/src/lib/user.fixtures.ts +32 -15
- package/src/libs/data-access/gn4/src/fixtures/site.fixtures.ts +4 -4
- package/src/libs/data-access/gn4/src/fixtures/ui.fixtures.ts +2 -2
- package/src/libs/feature/catalog/src/lib/sources/sources.fixture.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +3 -3
- package/src/libs/feature/dataviz/src/lib/figure/figure.fixtures.ts +2 -2
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -6
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +4 -4
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +9 -9
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.html +35 -0
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +79 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +14 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.ts +5 -44
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +33 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +182 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +11 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +93 -4
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +6 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +46 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.html +21 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +35 -69
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +8 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +8 -1
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +32 -2
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +9 -0
- package/src/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +7 -7
- package/src/libs/feature/map/src/lib/map-context/map-context.fixtures.ts +26 -22
- package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +29 -27
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +3 -3
- package/src/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +2 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +2 -2
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +5 -1
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +10 -1
- package/src/libs/feature/search/src/lib/state/fixtures/search-state.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/chart/chart.fixtures.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +2 -2
- package/src/libs/ui/elements/src/index.ts +1 -1
- package/src/libs/ui/elements/src/lib/download-item/download-item.component.ts +4 -4
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +7 -7
- package/src/libs/ui/elements/src/lib/link-card/link-card.component.ts +3 -3
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +5 -0
- package/src/libs/ui/inputs/src/index.ts +3 -0
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/file-input/file-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/image-input/image-input.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.ts +1 -2
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/text-area/text-area.component.ts +1 -1
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.html +15 -0
- package/src/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +44 -0
- package/src/libs/ui/layout/src/lib/sortable-list/sortable-list.component.html +37 -0
- package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.ts +13 -16
- package/src/libs/ui/search/src/lib/facets/fixtures/aggregations-model-response.ts +7 -6
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +9 -2
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +5 -6
- package/src/libs/util/app-config/src/lib/fixtures.ts +9 -9
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -3
- package/src/libs/util/shared/src/lib/links/link-utils.ts +6 -6
- package/src/libs/util/shared/src/lib/utils/bytes-convert.ts +4 -1
- package/tailwind.base.css +5 -0
- package/translations/de.json +15 -2
- package/translations/en.json +15 -2
- package/translations/es.json +13 -0
- package/translations/fr.json +16 -3
- package/translations/it.json +15 -2
- package/translations/nl.json +13 -0
- package/translations/pt.json +13 -0
- package/translations/sk.json +13 -0
- package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs +0 -96
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.mjs +0 -17
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.mjs +0 -17
- package/esm2022/libs/ui/elements/src/lib/sortable-list/sortable-list.component.mjs +0 -39
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts +0 -27
- package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.d.ts.map +0 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts +0 -8
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.d.ts.map +0 -1
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts +0 -17
- package/libs/ui/elements/src/lib/sortable-list/sortable-list.component.d.ts.map +0 -1
- package/src/libs/common/fixtures/src/lib/ol-feature.fixture.ts +0 -7
- package/src/libs/common/fixtures/src/lib/utils/freeze.ts +0 -10
- package/src/libs/common/fixtures/src/lib/utils/index.ts +0 -1
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html +0 -9
- package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts +0 -113
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.html +0 -7
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts +0 -16
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.html +0 -13
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts +0 -16
- package/src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.html +0 -29
- /package/src/libs/feature/editor/src/lib/components/{overview-upload/overview-upload.component.css → online-resource-card/online-resource-card.component.css} +0 -0
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.css → form-field-online-link-resources/form-field-online-link-resources.component.css} +0 -0
- /package/src/libs/{feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.css → ui/layout/src/lib/modal-dialog/modal-dialog.component.css} +0 -0
- /package/src/libs/ui/{elements → layout}/src/lib/sortable-list/sortable-list.component.css +0 -0
package/translations/it.json
CHANGED
|
@@ -204,6 +204,14 @@
|
|
|
204
204
|
"editor.record.form.field.contactsForResource.noContact": "",
|
|
205
205
|
"editor.record.form.field.keywords": "",
|
|
206
206
|
"editor.record.form.field.license": "Licenza",
|
|
207
|
+
"editor.record.form.field.onlineLinkResources": "",
|
|
208
|
+
"editor.record.form.field.onlineResource.cancel": "",
|
|
209
|
+
"editor.record.form.field.onlineResource.confirm": "",
|
|
210
|
+
"editor.record.form.field.onlineResource.dialogTitle": "",
|
|
211
|
+
"editor.record.form.field.onlineResource.edit.description": "",
|
|
212
|
+
"editor.record.form.field.onlineResource.edit.title": "",
|
|
213
|
+
"editor.record.form.field.onlineResource.fileSize": "",
|
|
214
|
+
"editor.record.form.field.onlineResource.modify": "",
|
|
207
215
|
"editor.record.form.field.overviews": "",
|
|
208
216
|
"editor.record.form.field.recordUpdated": "",
|
|
209
217
|
"editor.record.form.field.resourceUpdated": "",
|
|
@@ -245,6 +253,9 @@
|
|
|
245
253
|
"editor.record.loadError.body": "",
|
|
246
254
|
"editor.record.loadError.closeMessage": "",
|
|
247
255
|
"editor.record.loadError.title": "",
|
|
256
|
+
"editor.record.onlineResourceError.body": "",
|
|
257
|
+
"editor.record.onlineResourceError.closeMessage": "",
|
|
258
|
+
"editor.record.onlineResourceError.title": "",
|
|
248
259
|
"editor.record.placeKeywordWithoutLabel": "",
|
|
249
260
|
"editor.record.publish": "",
|
|
250
261
|
"editor.record.publishError.body": "",
|
|
@@ -365,7 +376,7 @@
|
|
|
365
376
|
"record.metadata.api.form.reset": "Reset",
|
|
366
377
|
"record.metadata.api.form.title": "Genera un URL personalizzata",
|
|
367
378
|
"record.metadata.api.form.type": "Formato in uscita",
|
|
368
|
-
"record.metadata.author": "
|
|
379
|
+
"record.metadata.author": "Modificato da",
|
|
369
380
|
"record.metadata.catalog": "Catalogo",
|
|
370
381
|
"record.metadata.contact": "Contatto",
|
|
371
382
|
"record.metadata.creation": "Data di creazione",
|
|
@@ -404,6 +415,8 @@
|
|
|
404
415
|
"record.metadata.related": "Vedi anche",
|
|
405
416
|
"record.metadata.sheet": "Origine del metadata",
|
|
406
417
|
"record.metadata.status": "Stato",
|
|
418
|
+
"record.metadata.status.notPublished": "",
|
|
419
|
+
"record.metadata.status.published": "",
|
|
407
420
|
"record.metadata.technical": "Informazioni tecniche",
|
|
408
421
|
"record.metadata.temporalExtent": "Periodo di tempo",
|
|
409
422
|
"record.metadata.temporalExtent.fromDateToDate": "Da {start} a {end}",
|
|
@@ -414,7 +427,7 @@
|
|
|
414
427
|
"record.metadata.type": "Dati geografici",
|
|
415
428
|
"record.metadata.uniqueId": "Identificatore unico di risorsa",
|
|
416
429
|
"record.metadata.updateFrequency": "Frequenza di aggiornamento dei dati",
|
|
417
|
-
"record.metadata.updatedOn": "
|
|
430
|
+
"record.metadata.updatedOn": "Modificato il",
|
|
418
431
|
"record.metadata.usage": "Licenze e limiti di utilizzo",
|
|
419
432
|
"record.metadata.userFeedbacks": "",
|
|
420
433
|
"record.metadata.userFeedbacks.anonymousUser": "",
|
package/translations/nl.json
CHANGED
|
@@ -204,6 +204,14 @@
|
|
|
204
204
|
"editor.record.form.field.contactsForResource.noContact": "",
|
|
205
205
|
"editor.record.form.field.keywords": "",
|
|
206
206
|
"editor.record.form.field.license": "",
|
|
207
|
+
"editor.record.form.field.onlineLinkResources": "",
|
|
208
|
+
"editor.record.form.field.onlineResource.cancel": "",
|
|
209
|
+
"editor.record.form.field.onlineResource.confirm": "",
|
|
210
|
+
"editor.record.form.field.onlineResource.dialogTitle": "",
|
|
211
|
+
"editor.record.form.field.onlineResource.edit.description": "",
|
|
212
|
+
"editor.record.form.field.onlineResource.edit.title": "",
|
|
213
|
+
"editor.record.form.field.onlineResource.fileSize": "",
|
|
214
|
+
"editor.record.form.field.onlineResource.modify": "",
|
|
207
215
|
"editor.record.form.field.overviews": "",
|
|
208
216
|
"editor.record.form.field.recordUpdated": "",
|
|
209
217
|
"editor.record.form.field.resourceUpdated": "",
|
|
@@ -245,6 +253,9 @@
|
|
|
245
253
|
"editor.record.loadError.body": "",
|
|
246
254
|
"editor.record.loadError.closeMessage": "",
|
|
247
255
|
"editor.record.loadError.title": "",
|
|
256
|
+
"editor.record.onlineResourceError.body": "",
|
|
257
|
+
"editor.record.onlineResourceError.closeMessage": "",
|
|
258
|
+
"editor.record.onlineResourceError.title": "",
|
|
248
259
|
"editor.record.placeKeywordWithoutLabel": "",
|
|
249
260
|
"editor.record.publish": "",
|
|
250
261
|
"editor.record.publishError.body": "",
|
|
@@ -404,6 +415,8 @@
|
|
|
404
415
|
"record.metadata.related": "",
|
|
405
416
|
"record.metadata.sheet": "",
|
|
406
417
|
"record.metadata.status": "",
|
|
418
|
+
"record.metadata.status.notPublished": "",
|
|
419
|
+
"record.metadata.status.published": "",
|
|
407
420
|
"record.metadata.technical": "",
|
|
408
421
|
"record.metadata.temporalExtent": "",
|
|
409
422
|
"record.metadata.temporalExtent.fromDateToDate": "",
|
package/translations/pt.json
CHANGED
|
@@ -204,6 +204,14 @@
|
|
|
204
204
|
"editor.record.form.field.contactsForResource.noContact": "",
|
|
205
205
|
"editor.record.form.field.keywords": "",
|
|
206
206
|
"editor.record.form.field.license": "",
|
|
207
|
+
"editor.record.form.field.onlineLinkResources": "",
|
|
208
|
+
"editor.record.form.field.onlineResource.cancel": "",
|
|
209
|
+
"editor.record.form.field.onlineResource.confirm": "",
|
|
210
|
+
"editor.record.form.field.onlineResource.dialogTitle": "",
|
|
211
|
+
"editor.record.form.field.onlineResource.edit.description": "",
|
|
212
|
+
"editor.record.form.field.onlineResource.edit.title": "",
|
|
213
|
+
"editor.record.form.field.onlineResource.fileSize": "",
|
|
214
|
+
"editor.record.form.field.onlineResource.modify": "",
|
|
207
215
|
"editor.record.form.field.overviews": "",
|
|
208
216
|
"editor.record.form.field.recordUpdated": "",
|
|
209
217
|
"editor.record.form.field.resourceUpdated": "",
|
|
@@ -245,6 +253,9 @@
|
|
|
245
253
|
"editor.record.loadError.body": "",
|
|
246
254
|
"editor.record.loadError.closeMessage": "",
|
|
247
255
|
"editor.record.loadError.title": "",
|
|
256
|
+
"editor.record.onlineResourceError.body": "",
|
|
257
|
+
"editor.record.onlineResourceError.closeMessage": "",
|
|
258
|
+
"editor.record.onlineResourceError.title": "",
|
|
248
259
|
"editor.record.placeKeywordWithoutLabel": "",
|
|
249
260
|
"editor.record.publish": "",
|
|
250
261
|
"editor.record.publishError.body": "",
|
|
@@ -404,6 +415,8 @@
|
|
|
404
415
|
"record.metadata.related": "",
|
|
405
416
|
"record.metadata.sheet": "",
|
|
406
417
|
"record.metadata.status": "",
|
|
418
|
+
"record.metadata.status.notPublished": "",
|
|
419
|
+
"record.metadata.status.published": "",
|
|
407
420
|
"record.metadata.technical": "",
|
|
408
421
|
"record.metadata.temporalExtent": "",
|
|
409
422
|
"record.metadata.temporalExtent.fromDateToDate": "",
|
package/translations/sk.json
CHANGED
|
@@ -204,6 +204,14 @@
|
|
|
204
204
|
"editor.record.form.field.contactsForResource.noContact": "",
|
|
205
205
|
"editor.record.form.field.keywords": "",
|
|
206
206
|
"editor.record.form.field.license": "Licencia",
|
|
207
|
+
"editor.record.form.field.onlineLinkResources": "",
|
|
208
|
+
"editor.record.form.field.onlineResource.cancel": "",
|
|
209
|
+
"editor.record.form.field.onlineResource.confirm": "",
|
|
210
|
+
"editor.record.form.field.onlineResource.dialogTitle": "",
|
|
211
|
+
"editor.record.form.field.onlineResource.edit.description": "",
|
|
212
|
+
"editor.record.form.field.onlineResource.edit.title": "",
|
|
213
|
+
"editor.record.form.field.onlineResource.fileSize": "",
|
|
214
|
+
"editor.record.form.field.onlineResource.modify": "",
|
|
207
215
|
"editor.record.form.field.overviews": "",
|
|
208
216
|
"editor.record.form.field.recordUpdated": "",
|
|
209
217
|
"editor.record.form.field.resourceUpdated": "",
|
|
@@ -245,6 +253,9 @@
|
|
|
245
253
|
"editor.record.loadError.body": "",
|
|
246
254
|
"editor.record.loadError.closeMessage": "",
|
|
247
255
|
"editor.record.loadError.title": "",
|
|
256
|
+
"editor.record.onlineResourceError.body": "",
|
|
257
|
+
"editor.record.onlineResourceError.closeMessage": "",
|
|
258
|
+
"editor.record.onlineResourceError.title": "",
|
|
248
259
|
"editor.record.placeKeywordWithoutLabel": "",
|
|
249
260
|
"editor.record.publish": "",
|
|
250
261
|
"editor.record.publishError.body": "",
|
|
@@ -404,6 +415,8 @@
|
|
|
404
415
|
"record.metadata.related": "Súvisiace záznamy",
|
|
405
416
|
"record.metadata.sheet": "Ďalšie metadáta sú k dispozícii na:",
|
|
406
417
|
"record.metadata.status": "Stav",
|
|
418
|
+
"record.metadata.status.notPublished": "",
|
|
419
|
+
"record.metadata.status.published": "",
|
|
407
420
|
"record.metadata.technical": "",
|
|
408
421
|
"record.metadata.temporalExtent": "",
|
|
409
422
|
"record.metadata.temporalExtent.fromDateToDate": "",
|
package/esm2022/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.mjs
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
|
|
3
|
-
import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src';
|
|
4
|
-
import { NotificationsService } from '../../../../../../../libs/feature/notifications/src';
|
|
5
|
-
import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src';
|
|
6
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../../../../../libs/data-access/gn4/src";
|
|
9
|
-
import * as i2 from "../../../../../../../libs/feature/notifications/src";
|
|
10
|
-
import * as i3 from "@ngx-translate/core";
|
|
11
|
-
import * as i4 from "../../../../../../ui/inputs/src/lib/image-input/image-input.component";
|
|
12
|
-
export class OverviewUploadComponent {
|
|
13
|
-
set overview(value) {
|
|
14
|
-
this._overview = value;
|
|
15
|
-
if (this._overview) {
|
|
16
|
-
this.recordsApiService.getAllResources(this.metadataUuid).subscribe({
|
|
17
|
-
next: (resources) => {
|
|
18
|
-
const resource = resources.find((r) => r.url === this._overview.url.toString());
|
|
19
|
-
if (resource) {
|
|
20
|
-
this.resourceFileName = resource.filename;
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
error: this.errorHandle,
|
|
24
|
-
});
|
|
25
|
-
this.resourceUrl = this._overview.url.toString();
|
|
26
|
-
this.altText = this._overview.description;
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
this.resourceUrl = '';
|
|
30
|
-
this.resourceFileName = '';
|
|
31
|
-
this.altText = '';
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
constructor(recordsApiService, notificationsService, translateService) {
|
|
35
|
-
this.recordsApiService = recordsApiService;
|
|
36
|
-
this.notificationsService = notificationsService;
|
|
37
|
-
this.translateService = translateService;
|
|
38
|
-
this.overviewChange = new EventEmitter();
|
|
39
|
-
this.errorHandle = (error) => {
|
|
40
|
-
this.notificationsService.showNotification({
|
|
41
|
-
type: 'error',
|
|
42
|
-
title: this.translateService.instant('editor.record.resourceError.title'),
|
|
43
|
-
text: `${this.translateService.instant('editor.record.resourceError.body')} ${error.message}`,
|
|
44
|
-
closeMessage: this.translateService.instant('editor.record.resourceError.closeMessage'),
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
handleFileChange(file) {
|
|
49
|
-
this.recordsApiService
|
|
50
|
-
.putResource(this.metadataUuid, file, 'public')
|
|
51
|
-
.subscribe({
|
|
52
|
-
next: (resource) => {
|
|
53
|
-
this.overviewChange.emit({
|
|
54
|
-
url: new URL(resource.url),
|
|
55
|
-
description: resource.filename,
|
|
56
|
-
});
|
|
57
|
-
},
|
|
58
|
-
error: this.errorHandle,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
handleUrlChange(url) {
|
|
62
|
-
this.recordsApiService
|
|
63
|
-
.putResourceFromURL(this.metadataUuid, url, 'public')
|
|
64
|
-
.subscribe({
|
|
65
|
-
next: (resource) => {
|
|
66
|
-
this.overviewChange.emit({
|
|
67
|
-
url: new URL(resource.url),
|
|
68
|
-
description: resource.filename,
|
|
69
|
-
});
|
|
70
|
-
},
|
|
71
|
-
error: this.errorHandle,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
handleAltTextChange(newAltText) {
|
|
75
|
-
this.overviewChange.emit({
|
|
76
|
-
url: new URL(this.resourceUrl),
|
|
77
|
-
description: newAltText,
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
handleDelete() {
|
|
81
|
-
this.overviewChange.emit(null);
|
|
82
|
-
}
|
|
83
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OverviewUploadComponent, deps: [{ token: i1.RecordsApiService }, { token: i2.NotificationsService }, { token: i3.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
84
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OverviewUploadComponent, isStandalone: true, selector: "gn-ui-overview-upload", inputs: { metadataUuid: "metadataUuid", overview: "overview" }, outputs: { overviewChange: "overviewChange" }, ngImport: i0, template: "<gn-ui-image-input\n [maxSizeMB]=\"5\"\n [previewUrl]=\"resourceUrl\"\n [altText]=\"altText\"\n (fileChange)=\"handleFileChange($event)\"\n (urlChange)=\"handleUrlChange($event)\"\n (altTextChange)=\"handleAltTextChange($event)\"\n (delete)=\"handleDelete()\"\n></gn-ui-image-input>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: UiInputsModule }, { kind: "component", type: i4.ImageInputComponent, selector: "gn-ui-image-input", inputs: ["maxSizeMB", "previewUrl", "altText", "uploadProgress", "uploadError"], outputs: ["fileChange", "urlChange", "uploadCancel", "delete", "altTextChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
85
|
-
}
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OverviewUploadComponent, decorators: [{
|
|
87
|
-
type: Component,
|
|
88
|
-
args: [{ selector: 'gn-ui-overview-upload', standalone: true, imports: [CommonModule, UiInputsModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<gn-ui-image-input\n [maxSizeMB]=\"5\"\n [previewUrl]=\"resourceUrl\"\n [altText]=\"altText\"\n (fileChange)=\"handleFileChange($event)\"\n (urlChange)=\"handleUrlChange($event)\"\n (altTextChange)=\"handleAltTextChange($event)\"\n (delete)=\"handleDelete()\"\n></gn-ui-image-input>\n" }]
|
|
89
|
-
}], ctorParameters: function () { return [{ type: i1.RecordsApiService }, { type: i2.NotificationsService }, { type: i3.TranslateService }]; }, propDecorators: { metadataUuid: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], overview: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], overviewChange: [{
|
|
94
|
-
type: Output
|
|
95
|
-
}] } });
|
|
96
|
-
//# sourceMappingURL=data:application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JHtlcnJvci5tZXNzYWdlfWAsXG4gICAgICBjbG9zZU1lc3NhZ2U6IHRoaXMudHJhbnNsYXRlU2VydmljZS5pbnN0YW50KFxuICAgICAgICAnZWRpdG9yLnJlY29yZC5yZXNvdXJjZUVycm9yLmNsb3NlTWVzc2FnZSdcbiAgICAgICksXG4gICAgfSlcbiAgfVxufVxuIiwiPGduLXVpLWltYWdlLWlucHV0XG4gIFttYXhTaXplTUJdPVwiNVwiXG4gIFtwcmV2aWV3VXJsXT1cInJlc291cmNlVXJsXCJcbiAgW2FsdFRleHRdPVwiYWx0VGV4dFwiXG4gIChmaWxlQ2hhbmdlKT1cImhhbmRsZUZpbGVDaGFuZ2UoJGV2ZW50KVwiXG4gICh1cmxDaGFuZ2UpPVwiaGFuZGxlVXJsQ2hhbmdlKCRldmVudClcIlxuICAoYWx0VGV4dENoYW5nZSk9XCJoYW5kbGVBbHRUZXh0Q2hhbmdlKCRldmVudClcIlxuICAoZGVsZXRlKT1cImhhbmRsZURlbGV0ZSgpXCJcbj48L2duLXVpLWltYWdlLWlucHV0PlxuIl19
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { DatePickerComponent } from '../../../../../../../../../../libs/ui/inputs/src';
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngx-translate/core";
|
|
7
|
-
export class FormFieldTemporalExtentsDateComponent {
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldTemporalExtentsDateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormFieldTemporalExtentsDateComponent, isStandalone: true, selector: "gn-ui-form-field-temporal-extents-date", inputs: { control: "control" }, ngImport: i0, template: "<div class=\"border rounded-lg px-4 pb-4\">\n <p class=\"my-2\" translate>editor.record.form.temporalExtents.date</p>\n <gn-ui-date-picker\n [date]=\"control.value?.start\"\n (dateChange)=\"control.setValue({ start: $event })\"\n ></gn-ui-date-picker>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: DatePickerComponent, selector: "gn-ui-date-picker", inputs: ["date"], outputs: ["dateChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: i1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldTemporalExtentsDateComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'gn-ui-form-field-temporal-extents-date', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [DatePickerComponent, TranslateModule], template: "<div class=\"border rounded-lg px-4 pb-4\">\n <p class=\"my-2\" translate>editor.record.form.temporalExtents.date</p>\n <gn-ui-date-picker\n [date]=\"control.value?.start\"\n (dateChange)=\"control.setValue({ start: $event })\"\n ></gn-ui-date-picker>\n</div>\n" }]
|
|
14
|
-
}], propDecorators: { control: [{
|
|
15
|
-
type: Input
|
|
16
|
-
}] } });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZW1wb3JhbC1leHRlbnRzLWRhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9mZWF0dXJlL2VkaXRvci9zcmMvbGliL2NvbXBvbmVudHMvcmVjb3JkLWZvcm0vZm9ybS1maWVsZ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ZTwvcD5cbiAgPGduLXVpLWRhdGUtcGlja2VyXG4gICAgW2RhdGVdPVwiY29udHJvbC52YWx1ZT8uc3RhcnRcIlxuICAgIChkYXRlQ2hhbmdlKT1cImNvbnRyb2wuc2V0VmFsdWUoeyBzdGFydDogJGV2ZW50IH0pXCJcbiAgPjwvZ24tdWktZGF0ZS1waWNrZXI+XG48L2Rpdj5cbiJdfQ==
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { DateRangePickerComponent } from '../../../../../../../../../../libs/ui/inputs/src';
|
|
4
|
-
import { TranslateModule } from '@ngx-translate/core';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@ngx-translate/core";
|
|
7
|
-
export class FormFieldTemporalExtentsRangeComponent {
|
|
8
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldTemporalExtentsRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormFieldTemporalExtentsRangeComponent, isStandalone: true, selector: "gn-ui-form-field-temporal-extents-range", inputs: { control: "control" }, ngImport: i0, template: "<div class=\"border rounded-lg px-4 pb-4\">\n <p class=\"my-2\" translate>editor.record.form.temporalExtents.range</p>\n <gn-ui-date-range-picker\n [startDate]=\"control.value?.start\"\n [endDate]=\"control.value?.end\"\n (startDateChange)=\"\n control.setValue({ start: $event, end: control.value?.end })\n \"\n (endDateChange)=\"\n control.setValue({ start: control.value?.start, end: $event })\n \"\n ></gn-ui-date-range-picker>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: DateRangePickerComponent, selector: "gn-ui-date-range-picker", inputs: ["startDate", "endDate"], outputs: ["startDateChange", "endDateChange"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "directive", type: i1.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10
|
-
}
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormFieldTemporalExtentsRangeComponent, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: 'gn-ui-form-field-temporal-extents-range', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [DateRangePickerComponent, TranslateModule], template: "<div class=\"border rounded-lg px-4 pb-4\">\n <p class=\"my-2\" translate>editor.record.form.temporalExtents.range</p>\n <gn-ui-date-range-picker\n [startDate]=\"control.value?.start\"\n [endDate]=\"control.value?.end\"\n (startDateChange)=\"\n control.setValue({ start: $event, end: control.value?.end })\n \"\n (endDateChange)=\"\n control.setValue({ start: control.value?.start, end: $event })\n \"\n ></gn-ui-date-range-picker>\n</div>\n" }]
|
|
14
|
-
}], propDecorators: { control: [{
|
|
15
|
-
type: Input
|
|
16
|
-
}] } });
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1maWVsZC10ZW1wb3JhbC1leHRlbnRzLXJhbmdlLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvZmVhdHVyZS9lZGl0b3Ivc3JjL2xpYi9jb21wb25lbnRzL3JlY29yZC1mb3JtL2Zvcm0tZmllbGQvZm9ybS1maWVsZC10ZW1wb3JhbC1leHRlbnRzL2Zvcm0tZmllbGQtdGVtcG9yYWwtZXh0ZW50cy1yYW5nZS9mb3JtLWZpZWxkLXRlbXBvcmFsLWV4dGVudHMtcmFuZ2UuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vL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RcIlxuICAgIChzdGFydERhdGVDaGFuZ2UpPVwiXG4gICAgICBjb250cm9sLnNldFZhbHVlKHsgc3RhcnQ6ICRldmVudCwgZW5kOiBjb250cm9sLnZhbHVlPy5lbmQgfSlcbiAgICBcIlxuICAgIChlbmREYXRlQ2hhbmdlKT1cIlxuICAgICAgY29udHJvbC5zZXRWYWx1ZSh7IHN0YXJ0OiBjb250cm9sLnZhbHVlPy5zdGFydCwgZW5kOiAkZXZlbnQgfSlcbiAgICBcIlxuICA+PC9nbi11aS1kYXRlLXJhbmdlLXBpY2tlcj5cbjwvZGl2PlxuIl19
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { CdkDrag, CdkDragHandle, CdkDropList, moveItemInArray, } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { NgComponentOutlet, NgFor } from '@angular/common';
|
|
3
|
-
import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output, } from '@angular/core';
|
|
4
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export class SortableListComponent {
|
|
7
|
-
constructor() {
|
|
8
|
-
this.elementsChange = new EventEmitter();
|
|
9
|
-
}
|
|
10
|
-
drop(event) {
|
|
11
|
-
moveItemInArray(this.elements, event.previousIndex, event.currentIndex);
|
|
12
|
-
this.elementsChange.emit(this.elements);
|
|
13
|
-
}
|
|
14
|
-
removeElement(index) {
|
|
15
|
-
this.elements = this.elements.filter((_, i) => i !== index);
|
|
16
|
-
this.elementsChange.emit(this.elements);
|
|
17
|
-
}
|
|
18
|
-
trackByFn(index) {
|
|
19
|
-
return index;
|
|
20
|
-
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortableListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SortableListComponent, isStandalone: true, selector: "gn-ui-sortable-list", inputs: { elements: "elements" }, outputs: { elementsChange: "elementsChange" }, ngImport: i0, template: "<div\n cdkDropList\n class=\"sortable-list flex flex-col gap-3 p-2\"\n (cdkDropListDropped)=\"drop($event)\"\n>\n <ng-container\n *ngFor=\"let element of elements; index as index; trackBy: trackByFn\"\n >\n <div class=\"sortable-box bg-white flex items-center\" cdkDrag>\n <span\n cdkDragHandle\n class=\"material-symbols-outlined mx-[10px] cursor-grab gn-ui-icon-medium flex-none\"\n >\n drag_handle\n </span>\n <div class=\"flex-1\">\n <ng-container\n *ngComponentOutlet=\"element.component; inputs: element.inputs\"\n ></ng-container>\n </div>\n <span\n (click)=\"removeElement(index)\"\n class=\"material-symbols-outlined mx-[10px] cursor-pointer gn-ui-icon-medium flex-none\"\n >\n close\n </span>\n </div>\n </ng-container>\n</div>\n", styles: [".cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.sortable-list.cdk-drop-list-dragging .sortable-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: NgFor, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "ngmodule", type: MatIconModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortableListComponent, decorators: [{
|
|
25
|
-
type: Component,
|
|
26
|
-
args: [{ selector: 'gn-ui-sortable-list', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
|
|
27
|
-
NgFor,
|
|
28
|
-
NgComponentOutlet,
|
|
29
|
-
CdkDropList,
|
|
30
|
-
CdkDrag,
|
|
31
|
-
CdkDragHandle,
|
|
32
|
-
MatIconModule,
|
|
33
|
-
], template: "<div\n cdkDropList\n class=\"sortable-list flex flex-col gap-3 p-2\"\n (cdkDropListDropped)=\"drop($event)\"\n>\n <ng-container\n *ngFor=\"let element of elements; index as index; trackBy: trackByFn\"\n >\n <div class=\"sortable-box bg-white flex items-center\" cdkDrag>\n <span\n cdkDragHandle\n class=\"material-symbols-outlined mx-[10px] cursor-grab gn-ui-icon-medium flex-none\"\n >\n drag_handle\n </span>\n <div class=\"flex-1\">\n <ng-container\n *ngComponentOutlet=\"element.component; inputs: element.inputs\"\n ></ng-container>\n </div>\n <span\n (click)=\"removeElement(index)\"\n class=\"material-symbols-outlined mx-[10px] cursor-pointer gn-ui-icon-medium flex-none\"\n >\n close\n </span>\n </div>\n </ng-container>\n</div>\n", styles: [".cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.sortable-list.cdk-drop-list-dragging .sortable-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
|
|
34
|
-
}], propDecorators: { elements: [{
|
|
35
|
-
type: Input
|
|
36
|
-
}], elementsChange: [{
|
|
37
|
-
type: Output
|
|
38
|
-
}] } });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydGFibGUtbGlzdC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL3VpL2VsZW1lbnRzL3NyYy9saWIvc29ydGFibGUtbGlzdC9zb3J0YWJsZS1saXN0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvdWkvZWxlbWVudHMvc3JjL2xpYi9zb3J0YWJsZS1saXN0L3NvcnRhYmxlLWxpc3QuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLE9BQU8sRUFFUCxhQUFhLEVBQ2IsV0FBVyxFQUNYLGVBQWUsR0FDaEIsTUFBTSx3QkFBd0IsQ0FBQTtBQUMvQixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsS0FBSyxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFDMUQsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLEtBQUssRUFDTCxN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uICAgICpuZ0Zvcj1cImxldCBlbGVtZW50IG9mIGVsZW1lbnRzOyBpbmRleCBhcyBpbmRleDsgdHJhY2tCeTogdHJhY2tCeUZuXCJcbiAgPlxuICAgIDxkaXYgY2xhc3M9XCJzb3J0YWJsZS1ib3ggYmctd2hpdGUgZmxleCBpdGVtcy1jZW50ZXJcIiBjZGtEcmFnPlxuICAgICAgPHNwYW5cbiAgICAgICAgY2RrRHJhZ0hhbmRsZVxuICAgICAgICBjbGFzcz1cIm1hdGVyaWFsLXN5bWJvbHMtb3V0bGluZWQgbXgtWzEwcHhdIGN1cnNvci1ncmFiIGduLXVpLWljb24tbWVkaXVtIGZsZXgtbm9uZVwiXG4gICAgICA+XG4gICAgICAgIGRyYWdfaGFuZGxlXG4gICAgICA8L3NwYW4+XG4gICAgICA8ZGl2IGNsYXNzPVwiZmxleC0xXCI+XG4gICAgICAgIDxuZy1jb250YWluZXJcbiAgICAgICAgICAqbmdDb21wb25lbnRPdXRsZXQ9XCJlbGVtZW50LmNvbXBvbmVudDsgaW5wdXRzOiBlbGVtZW50LmlucHV0c1wiXG4gICAgICAgID48L25nLWNvbnRhaW5lcj5cbiAgICAgIDwvZGl2PlxuICAgICAgPHNwYW5cbiAgICAgICAgKGNsaWNrKT1cInJlbW92ZUVsZW1lbnQoaW5kZXgpXCJcbiAgICAgICAgY2xhc3M9XCJtYXRlcmlhbC1zeW1ib2xzLW91dGxpbmVkIG14LVsxMHB4XSBjdXJzb3ItcG9pbnRlciBnbi11aS1pY29uLW1lZGl1bSBmbGV4LW5vbmVcIlxuICAgICAgPlxuICAgICAgICBjbG9zZVxuICAgICAgPC9zcGFuPlxuICAgIDwvZGl2PlxuICA8L25nLWNvbnRhaW5lcj5cbjwvZGl2PlxuIl19
|
package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { GraphicOverview } from '../../../../../../../libs/common/domain/src/lib/model/record';
|
|
3
|
-
import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src';
|
|
4
|
-
import { NotificationsService } from '../../../../../../../libs/feature/notifications/src';
|
|
5
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class OverviewUploadComponent {
|
|
8
|
-
private recordsApiService;
|
|
9
|
-
private notificationsService;
|
|
10
|
-
private translateService;
|
|
11
|
-
metadataUuid: string;
|
|
12
|
-
_overview: GraphicOverview | null;
|
|
13
|
-
set overview(value: GraphicOverview | null);
|
|
14
|
-
overviewChange: EventEmitter<GraphicOverview>;
|
|
15
|
-
resourceUrl: string;
|
|
16
|
-
resourceFileName: string;
|
|
17
|
-
altText: string;
|
|
18
|
-
constructor(recordsApiService: RecordsApiService, notificationsService: NotificationsService, translateService: TranslateService);
|
|
19
|
-
handleFileChange(file: File): void;
|
|
20
|
-
handleUrlChange(url: string): void;
|
|
21
|
-
handleAltTextChange(newAltText: string): void;
|
|
22
|
-
handleDelete(): void;
|
|
23
|
-
private errorHandle;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OverviewUploadComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OverviewUploadComponent, "gn-ui-overview-upload", never, { "metadataUuid": { "alias": "metadataUuid"; "required": false; }; "overview": { "alias": "overview"; "required": false; }; }, { "overviewChange": "overviewChange"; }, never, never, true, never>;
|
|
26
|
-
}
|
|
27
|
-
//# sourceMappingURL=overview-upload.component.d.ts.map
|
package/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"overview-upload.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,YAAY,EAGb,MAAM,eAAe,CAAA;AACtB,OAAO,EAAE,eAAe,EAAE,MAAM,8DAA8D,CAAA;AAC9F,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAA;AACjF,OAAO,EAAE,oBAAoB,EAAE,MAAM,qDAAqD,CAAA;AAE1F,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;;AAEtD,qBAQa,uBAAuB;IAkChC,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,oBAAoB;IAC5B,OAAO,CAAC,gBAAgB;IAnCjB,YAAY,EAAE,MAAM,CAAA;IAC7B,SAAS,EAAE,eAAe,GAAG,IAAI,CAAA;IACjC,IACI,QAAQ,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,EAqBzC;IAES,cAAc,gCAA6C;IAErE,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;gBAGL,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,EAC1C,gBAAgB,EAAE,gBAAgB;IAG5C,gBAAgB,CAAC,IAAI,EAAE,IAAI;IAc3B,eAAe,CAAC,GAAG,EAAE,MAAM;IAc3B,mBAAmB,CAAC,UAAU,EAAE,MAAM;IAOtC,YAAY;IAIZ,OAAO,CAAC,WAAW,CAWlB;yCAzFU,uBAAuB;2CAAvB,uBAAuB;CA0FnC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormFieldTemporalExtentsDateComponent {
|
|
4
|
-
control: FormControl;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTemporalExtentsDateComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTemporalExtentsDateComponent, "gn-ui-form-field-temporal-extents-date", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=form-field-temporal-extents-date.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-temporal-extents-date.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-date/form-field-temporal-extents-date.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAI5C,qBAQa,qCAAqC;IACvC,OAAO,EAAG,WAAW,CAAA;yCADnB,qCAAqC;2CAArC,qCAAqC;CAEjD"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FormFieldTemporalExtentsRangeComponent {
|
|
4
|
-
control: FormControl;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldTemporalExtentsRangeComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldTemporalExtentsRangeComponent, "gn-ui-form-field-temporal-extents-range", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=form-field-temporal-extents-range.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field-temporal-extents-range.component.d.ts","sourceRoot":"","sources":["../../../../../../../../../../src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents-range/form-field-temporal-extents-range.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;;AAI5C,qBAQa,sCAAsC;IACxC,OAAO,EAAG,WAAW,CAAA;yCADnB,sCAAsC;2CAAtC,sCAAsC;CAElD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
2
|
-
import { EventEmitter, Type } from '@angular/core';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type DynamicElement = {
|
|
5
|
-
component: Type<unknown>;
|
|
6
|
-
inputs: Record<string, unknown>;
|
|
7
|
-
};
|
|
8
|
-
export declare class SortableListComponent {
|
|
9
|
-
elements: Array<DynamicElement>;
|
|
10
|
-
elementsChange: EventEmitter<DynamicElement[]>;
|
|
11
|
-
drop(event: CdkDragDrop<string[]>): void;
|
|
12
|
-
removeElement(index: number): void;
|
|
13
|
-
trackByFn(index: number): number;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SortableListComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SortableListComponent, "gn-ui-sortable-list", never, { "elements": { "alias": "elements"; "required": false; }; }, { "elementsChange": "elementsChange"; }, never, never, true, never>;
|
|
16
|
-
}
|
|
17
|
-
//# sourceMappingURL=sortable-list.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sortable-list.component.d.ts","sourceRoot":"","sources":["../../../../../../src/libs/ui/elements/src/lib/sortable-list/sortable-list.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,WAAW,EAIZ,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EAGL,YAAY,EAGZ,IAAI,EACL,MAAM,eAAe,CAAA;;AAGtB,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,CAAA;IACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAChC,CAAA;AAED,qBAea,qBAAqB;IACvB,QAAQ,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC9B,cAAc,iCAA4C;IAEpE,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,EAAE,CAAC;IAKjC,aAAa,CAAC,KAAK,EAAE,MAAM;IAK3B,SAAS,CAAC,KAAK,EAAE,MAAM;yCAdZ,qBAAqB;2CAArB,qBAAqB;CAiBjC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './freeze'
|
package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.html
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
<gn-ui-image-input
|
|
2
|
-
[maxSizeMB]="5"
|
|
3
|
-
[previewUrl]="resourceUrl"
|
|
4
|
-
[altText]="altText"
|
|
5
|
-
(fileChange)="handleFileChange($event)"
|
|
6
|
-
(urlChange)="handleUrlChange($event)"
|
|
7
|
-
(altTextChange)="handleAltTextChange($event)"
|
|
8
|
-
(delete)="handleDelete()"
|
|
9
|
-
></gn-ui-image-input>
|
package/src/libs/feature/editor/src/lib/components/overview-upload/overview-upload.component.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { CommonModule } from '@angular/common'
|
|
2
|
-
import {
|
|
3
|
-
ChangeDetectionStrategy,
|
|
4
|
-
Component,
|
|
5
|
-
EventEmitter,
|
|
6
|
-
Input,
|
|
7
|
-
Output,
|
|
8
|
-
} from '@angular/core'
|
|
9
|
-
import { GraphicOverview } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
10
|
-
import { RecordsApiService } from '../../../../../../../libs/data-access/gn4/src'
|
|
11
|
-
import { NotificationsService } from '../../../../../../../libs/feature/notifications/src'
|
|
12
|
-
import { UiInputsModule } from '../../../../../../../libs/ui/inputs/src'
|
|
13
|
-
import { TranslateService } from '@ngx-translate/core'
|
|
14
|
-
|
|
15
|
-
@Component({
|
|
16
|
-
selector: 'gn-ui-overview-upload',
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [CommonModule, UiInputsModule],
|
|
19
|
-
templateUrl: './overview-upload.component.html',
|
|
20
|
-
styleUrls: ['./overview-upload.component.css'],
|
|
21
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
22
|
-
})
|
|
23
|
-
export class OverviewUploadComponent {
|
|
24
|
-
@Input() metadataUuid: string
|
|
25
|
-
_overview: GraphicOverview | null
|
|
26
|
-
@Input()
|
|
27
|
-
set overview(value: GraphicOverview | null) {
|
|
28
|
-
this._overview = value
|
|
29
|
-
if (this._overview) {
|
|
30
|
-
this.recordsApiService.getAllResources(this.metadataUuid).subscribe({
|
|
31
|
-
next: (resources) => {
|
|
32
|
-
const resource = resources.find(
|
|
33
|
-
(r) => r.url === this._overview.url.toString()
|
|
34
|
-
)
|
|
35
|
-
if (resource) {
|
|
36
|
-
this.resourceFileName = resource.filename
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
error: this.errorHandle,
|
|
40
|
-
})
|
|
41
|
-
this.resourceUrl = this._overview.url.toString()
|
|
42
|
-
this.altText = this._overview.description
|
|
43
|
-
} else {
|
|
44
|
-
this.resourceUrl = ''
|
|
45
|
-
this.resourceFileName = ''
|
|
46
|
-
this.altText = ''
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@Output() overviewChange = new EventEmitter<GraphicOverview | null>()
|
|
51
|
-
|
|
52
|
-
resourceUrl: string
|
|
53
|
-
resourceFileName: string
|
|
54
|
-
altText: string
|
|
55
|
-
|
|
56
|
-
constructor(
|
|
57
|
-
private recordsApiService: RecordsApiService,
|
|
58
|
-
private notificationsService: NotificationsService,
|
|
59
|
-
private translateService: TranslateService
|
|
60
|
-
) {}
|
|
61
|
-
|
|
62
|
-
handleFileChange(file: File) {
|
|
63
|
-
this.recordsApiService
|
|
64
|
-
.putResource(this.metadataUuid, file, 'public')
|
|
65
|
-
.subscribe({
|
|
66
|
-
next: (resource) => {
|
|
67
|
-
this.overviewChange.emit({
|
|
68
|
-
url: new URL(resource.url),
|
|
69
|
-
description: resource.filename,
|
|
70
|
-
})
|
|
71
|
-
},
|
|
72
|
-
error: this.errorHandle,
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
handleUrlChange(url: string) {
|
|
77
|
-
this.recordsApiService
|
|
78
|
-
.putResourceFromURL(this.metadataUuid, url, 'public')
|
|
79
|
-
.subscribe({
|
|
80
|
-
next: (resource) => {
|
|
81
|
-
this.overviewChange.emit({
|
|
82
|
-
url: new URL(resource.url),
|
|
83
|
-
description: resource.filename,
|
|
84
|
-
})
|
|
85
|
-
},
|
|
86
|
-
error: this.errorHandle,
|
|
87
|
-
})
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
handleAltTextChange(newAltText: string) {
|
|
91
|
-
this.overviewChange.emit({
|
|
92
|
-
url: new URL(this.resourceUrl),
|
|
93
|
-
description: newAltText,
|
|
94
|
-
})
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
handleDelete() {
|
|
98
|
-
this.overviewChange.emit(null)
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
private errorHandle = (error) => {
|
|
102
|
-
this.notificationsService.showNotification({
|
|
103
|
-
type: 'error',
|
|
104
|
-
title: this.translateService.instant('editor.record.resourceError.title'),
|
|
105
|
-
text: `${this.translateService.instant(
|
|
106
|
-
'editor.record.resourceError.body'
|
|
107
|
-
)} ${error.message}`,
|
|
108
|
-
closeMessage: this.translateService.instant(
|
|
109
|
-
'editor.record.resourceError.closeMessage'
|
|
110
|
-
),
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
}
|