geonetwork-ui 2.8.0-dev.93d2d87c0 → 2.8.0-dev.b7a1670bc
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/common/distribution.mapper.mjs +5 -1
- package/esm2022/libs/api/metadata-converter/src/lib/common/resource-types.mjs +6 -1
- package/esm2022/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.mjs +3 -3
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +31 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.mjs +7 -7
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +3 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -3
- package/esm2022/libs/api/repository/src/lib/gn4/auth/auth.service.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +7 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +10 -10
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +3 -2
- package/esm2022/libs/common/domain/src/index.mjs +3 -0
- package/esm2022/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +3 -1
- package/esm2022/libs/common/domain/src/lib/model/search/sort-by.model.mjs +6 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/data-access/gn4/src/openapi/model/user.api.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/chart-view/chart-view.component.mjs +3 -1
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +2 -2
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +26 -8
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +23 -3
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +2 -2
- package/esm2022/libs/feature/map/src/lib/map-state-container/map-state-container.component.mjs +2 -2
- package/esm2022/libs/feature/record/src/index.mjs +2 -1
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.mjs +13 -4
- package/esm2022/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.mjs +23 -8
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.mjs +4 -4
- package/esm2022/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +4 -3
- package/esm2022/libs/feature/record/src/lib/stac-view/stac-view.component.mjs +230 -0
- package/esm2022/libs/feature/record/src/lib/stac-view/utils.mjs +26 -0
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +2 -2
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +14 -1
- package/esm2022/libs/feature/router/src/lib/default/router.service.mjs +5 -1
- package/esm2022/libs/feature/router/src/lib/default/state/router.effects.mjs +9 -7
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/sort-by/sort-by.component.mjs +8 -12
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +36 -22
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +2 -1
- package/esm2022/libs/ui/elements/src/index.mjs +3 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/lib/external-link-card/external-link-card.component.mjs +11 -4
- package/esm2022/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.mjs +37 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +5 -9
- package/esm2022/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.mjs +18 -0
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.mjs +5 -5
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-picker/date-picker.component.mjs +21 -7
- package/esm2022/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.mjs +35 -0
- package/esm2022/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.mjs +2 -3
- package/esm2022/libs/ui/layout/src/lib/paginable.interface.mjs +1 -1
- package/esm2022/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.mjs +13 -5
- package/esm2022/libs/ui/map/src/lib/components/map-container/map-container.component.mjs +86 -32
- package/esm2022/libs/ui/map/src/lib/components/spatial-extent/spatial-extent.component.mjs +1 -1
- package/esm2022/libs/ui/widgets/src/lib/loading-mask/loading-mask.component.mjs +3 -3
- package/esm2022/libs/util/i18n/src/lib/date-locales.mjs +33 -0
- package/esm2022/libs/util/shared/src/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/humanize-date.directive.mjs +33 -0
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +5 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +12 -1
- package/esm2022/libs/util/shared/src/lib/services/date.service.mjs +19 -2
- package/esm2022/libs/util/shared/src/lib/services/proxy.service.mjs +9 -11
- package/esm2022/libs/util/shared/src/lib/utils/sort-by.mjs +9 -6
- package/esm2022/translations/de.json +20 -3
- package/esm2022/translations/en.json +20 -4
- package/esm2022/translations/es.json +19 -2
- package/esm2022/translations/fr.json +20 -3
- package/esm2022/translations/it.json +21 -4
- package/esm2022/translations/nl.json +19 -2
- package/esm2022/translations/pt.json +19 -2
- package/esm2022/translations/sk.json +20 -3
- package/fesm2022/geonetwork-ui-date-locales-DhlIiWpT.mjs +35 -0
- package/fesm2022/geonetwork-ui-date-locales-DhlIiWpT.mjs.map +1 -0
- package/fesm2022/geonetwork-ui.mjs +946 -287
- 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/common/distribution.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts +3 -0
- package/libs/api/metadata-converter/src/lib/common/resource-types.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.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 +5 -1
- 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.map +1 -1
- package/libs/api/repository/src/lib/gn4/auth/auth.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +7 -7
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
- package/libs/common/domain/src/index.d.ts +3 -0
- package/libs/common/domain/src/index.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +7 -2
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/sort-by.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/data-access/gn4/src/openapi/model/user.api.model.d.ts +1 -1
- 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 +2 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +2 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -0
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +5 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts +3 -2
- package/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts +3 -2
- package/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts +12 -5
- package/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts +3 -1
- package/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +5 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts +53 -0
- package/libs/feature/record/src/lib/stac-view/stac-view.component.d.ts.map +1 -0
- package/libs/feature/record/src/lib/stac-view/utils.d.ts +7 -0
- package/libs/feature/record/src/lib/stac-view/utils.d.ts.map +1 -0
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -24
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/router.service.d.ts +2 -0
- package/libs/feature/router/src/lib/default/router.service.d.ts.map +1 -1
- package/libs/feature/router/src/lib/default/state/router.effects.d.ts +3 -1
- package/libs/feature/router/src/lib/default/state/router.effects.d.ts.map +1 -1
- package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts +4 -3
- package/libs/feature/search/src/lib/sort-by/sort-by.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +2 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/downloads-list/downloads-list.component.d.ts +1 -1
- package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts +3 -2
- package/libs/ui/elements/src/lib/external-link-card/external-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +0 -2
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/index.d.ts +1 -0
- package/libs/ui/inputs/src/index.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts +5 -0
- package/libs/ui/inputs/src/lib/date-picker/date-picker.component.d.ts.map +1 -1
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts +12 -0
- package/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/paginable.interface.d.ts +3 -3
- package/libs/ui/layout/src/lib/paginable.interface.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts +2 -1
- package/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.d.ts.map +1 -1
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts +24 -14
- package/libs/ui/map/src/lib/components/map-container/map-container.component.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/date-locales.d.ts +5 -0
- package/libs/util/i18n/src/lib/date-locales.d.ts.map +1 -0
- package/libs/util/shared/src/index.d.ts +1 -0
- package/libs/util/shared/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/humanize-date.directive.d.ts +15 -0
- package/libs/util/shared/src/lib/humanize-date.directive.d.ts.map +1 -0
- 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 -0
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/date.service.d.ts +4 -0
- package/libs/util/shared/src/lib/services/date.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/services/proxy.service.d.ts +5 -4
- package/libs/util/shared/src/lib/services/proxy.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/sort-by.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +2 -0
- package/src/libs/api/metadata-converter/src/lib/common/resource-types.ts +11 -0
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +2 -2
- 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.service+eaux-usees.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/georhena.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/metawal.records.ts +2 -2
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.reuse.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/wallonie.records.service+napitswallonia.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +39 -3
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +13 -6
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +6 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +4 -2
- package/src/libs/api/repository/src/lib/gn4/auth/auth.service.ts +4 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +12 -4
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +37 -36
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -2
- package/src/libs/common/domain/src/index.ts +2 -0
- package/src/libs/common/domain/src/lib/model/dataviz/dataviz-configuration.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +12 -1
- package/src/libs/common/domain/src/lib/model/search/sort-by.model.ts +5 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -1
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +5 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +19 -0
- package/src/libs/data-access/gn4/src/openapi/model/user.api.model.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/chart-view/chart-view.component.ts +1 -0
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +30 -5
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +30 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +1 -1
- package/src/libs/feature/record/src/index.ts +1 -0
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +5 -1
- package/src/libs/feature/record/src/lib/data-view-permalink/data-view-permalink.component.ts +7 -1
- package/src/libs/feature/record/src/lib/data-view-web-component/data-view-web-component.component.ts +23 -4
- package/src/libs/feature/record/src/lib/gpf-api-dl/gpf-api-dl.component.ts +10 -8
- package/src/libs/feature/record/src/lib/gpf-api-dl-list-item/gpf-api-dl-list-item.component.ts +1 -1
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +1 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +6 -2
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.css +8 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.html +87 -0
- package/src/libs/feature/record/src/lib/stac-view/stac-view.component.ts +339 -0
- package/src/libs/feature/record/src/lib/stac-view/utils.ts +57 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +1 -1
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +30 -1
- package/src/libs/feature/router/src/lib/default/router.service.ts +8 -0
- package/src/libs/feature/router/src/lib/default/state/router.effects.ts +6 -7
- package/src/libs/feature/search/src/lib/constants.ts +1 -1
- package/src/libs/feature/search/src/lib/sort-by/sort-by.component.ts +8 -12
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +37 -33
- package/src/libs/ui/elements/src/index.ts +2 -0
- package/src/libs/ui/elements/src/lib/external-link-card/external-link-card.component.html +43 -22
- package/src/libs/ui/elements/src/lib/external-link-card/external-link-card.component.ts +12 -3
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.css +0 -0
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.html +31 -0
- package/src/libs/ui/elements/src/lib/metadata-doi/metadata-doi.component.ts +30 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +69 -23
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +2 -9
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.css +0 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.html +13 -0
- package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.html +1 -1
- package/src/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +2 -2
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/check-toggle/check-toggle.component.html +3 -3
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +17 -1
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.html +15 -0
- package/src/libs/ui/inputs/src/lib/date-range-inputs/date-range-inputs.component.ts +41 -0
- package/src/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +4 -2
- package/src/libs/ui/layout/src/lib/paginable.interface.ts +3 -3
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.html +12 -6
- package/src/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +4 -1
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.html +16 -14
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +144 -65
- package/src/libs/util/i18n/src/lib/date-locales.ts +63 -0
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/humanize-date.directive.ts +35 -0
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +4 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +11 -0
- package/src/libs/util/shared/src/lib/services/date.service.ts +27 -1
- package/src/libs/util/shared/src/lib/services/proxy.service.ts +6 -2
- package/src/libs/util/shared/src/lib/utils/sort-by.ts +8 -5
- package/translations/de.json +20 -3
- package/translations/en.json +20 -4
- package/translations/es.json +19 -2
- package/translations/fr.json +20 -3
- package/translations/it.json +21 -4
- package/translations/nl.json +19 -2
- package/translations/pt.json +19 -2
- package/translations/sk.json +20 -3
- package/esm2022/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.mjs +0 -59
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts +0 -11
- package/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.d.ts.map +0 -1
- package/src/libs/common/domain/src/lib/index.ts +0 -2
- package/src/libs/ui/elements/src/lib/user-feedback-item/time-since.pipe.ts +0 -54
|
@@ -14,6 +14,7 @@ export * from './lib/markdown-editor/markdown-editor.component'
|
|
|
14
14
|
export * from './lib/markdown-parser/markdown-parser.component'
|
|
15
15
|
export * from './lib/metadata-catalog/metadata-catalog.component'
|
|
16
16
|
export * from './lib/metadata-contact/metadata-contact.component'
|
|
17
|
+
export * from './lib/metadata-doi/metadata-doi.component'
|
|
17
18
|
export * from './lib/metadata-info/metadata-info.component'
|
|
18
19
|
export * from './lib/metadata-quality-item/metadata-quality-item.component'
|
|
19
20
|
export * from './lib/metadata-quality/metadata-quality.component'
|
|
@@ -26,3 +27,4 @@ export * from './lib/application-banner/application-banner.component'
|
|
|
26
27
|
export * from './lib/internal-link-card/internal-link-card.component'
|
|
27
28
|
export * from './lib/service-capabilities/service-capabilities.component'
|
|
28
29
|
export * from './lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component'
|
|
30
|
+
export * from './lib/stac-items-result-grid/stac-items-result-grid.component'
|
|
@@ -1,15 +1,48 @@
|
|
|
1
|
-
<
|
|
2
|
-
[
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>
|
|
1
|
+
<ng-container *ngIf="isDatabase; else clickableLink">
|
|
2
|
+
<div [ngClass]="cardClass" [title]="title">
|
|
3
|
+
<ng-container *ngTemplateOutlet="cardContent"></ng-container>
|
|
4
|
+
<div
|
|
5
|
+
class="flex min-w-[32px]"
|
|
6
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
7
|
+
>
|
|
8
|
+
<div
|
|
9
|
+
class="gn-ui-card-icon"
|
|
10
|
+
[title]="'record.metadata.link.postgis.tooltip' | translate"
|
|
11
|
+
>
|
|
12
|
+
<ng-icon
|
|
13
|
+
class="inline-block card-icon align-middle"
|
|
14
|
+
name="iconoirDatabase"
|
|
15
|
+
></ng-icon>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</ng-container>
|
|
20
|
+
|
|
21
|
+
<ng-template #clickableLink>
|
|
22
|
+
<a [href]="link.url" target="_blank" [ngClass]="cardClass" [title]="title">
|
|
23
|
+
<ng-container *ngTemplateOutlet="cardContent"></ng-container>
|
|
24
|
+
<div
|
|
25
|
+
class="flex min-w-[32px]"
|
|
26
|
+
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
27
|
+
>
|
|
28
|
+
<div class="gn-ui-card-icon">
|
|
29
|
+
<ng-icon
|
|
30
|
+
class="inline-block card-icon align-middle"
|
|
31
|
+
name="matOpenInNew"
|
|
32
|
+
></ng-icon>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</a>
|
|
36
|
+
</ng-template>
|
|
37
|
+
<ng-template #cardContent>
|
|
8
38
|
<div class="flex flex-col justify-between flex-1 min-w-0">
|
|
9
39
|
<div class="gn-ui-card-title">
|
|
10
40
|
{{ link.description || link.name }}
|
|
11
41
|
</div>
|
|
12
42
|
<div class="gn-ui-card-detail">
|
|
43
|
+
<ng-container *ngIf="isDatabase">
|
|
44
|
+
{{ 'record.metadata.link.postgis.table' | translate }}
|
|
45
|
+
</ng-container>
|
|
13
46
|
{{ link.name }}
|
|
14
47
|
</div>
|
|
15
48
|
<p *ngIf="!link.name && !link.description" class="gn-ui-card-title">
|
|
@@ -20,21 +53,9 @@
|
|
|
20
53
|
class="inline-flex items-center justify-center px-2 py-1 text-13 font-medium leading-none text-white rounded transition-opacity opacity-70 group-hover:opacity-100"
|
|
21
54
|
[style.background-color]="getLinkColor(link)"
|
|
22
55
|
data-cy="download-format"
|
|
23
|
-
>{{
|
|
24
|
-
getLinkFormat(link) || ('downloads.format.unknown' | translate)
|
|
25
|
-
}}</span
|
|
26
56
|
>
|
|
57
|
+
{{ getLinkFormat(link) || ('downloads.format.unknown' | translate) }}
|
|
58
|
+
</span>
|
|
27
59
|
</div>
|
|
28
60
|
</div>
|
|
29
|
-
|
|
30
|
-
class="flex min-w-[32px]"
|
|
31
|
-
[ngClass]="size === 'S' ? 'items-end' : 'items-center'"
|
|
32
|
-
>
|
|
33
|
-
<div class="gn-ui-card-icon">
|
|
34
|
-
<ng-icon
|
|
35
|
-
class="inline-block card-icon align-middle"
|
|
36
|
-
name="matOpenInNew"
|
|
37
|
-
></ng-icon>
|
|
38
|
-
</div>
|
|
39
|
-
</div>
|
|
40
|
-
</a>
|
|
61
|
+
</ng-template>
|
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
provideNgIconsConfig,
|
|
8
8
|
} from '@ng-icons/core'
|
|
9
9
|
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
10
|
+
import { iconoirDatabase } from '@ng-icons/iconoir'
|
|
10
11
|
import { getBadgeColor, getFileFormat } from '../../../../../../libs/util/shared/src'
|
|
11
12
|
import { TranslatePipe } from '@ngx-translate/core'
|
|
12
13
|
|
|
@@ -21,6 +22,7 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
21
22
|
providers: [
|
|
22
23
|
provideIcons({
|
|
23
24
|
matOpenInNew,
|
|
25
|
+
iconoirDatabase,
|
|
24
26
|
}),
|
|
25
27
|
provideNgIconsConfig({ size: '1.5em' }),
|
|
26
28
|
],
|
|
@@ -37,7 +39,7 @@ export class ExternalLinkCardComponent {
|
|
|
37
39
|
|
|
38
40
|
@Input() set size(value: CardSize) {
|
|
39
41
|
this._size = value
|
|
40
|
-
this.cardClass = this.sizeClassMap[value]
|
|
42
|
+
this.cardClass = `group flex flex-row justify-between card-shadow rounded overflow-hidden ${this.sizeClassMap[value]}`
|
|
41
43
|
}
|
|
42
44
|
get size(): CardSize {
|
|
43
45
|
return this._size
|
|
@@ -51,11 +53,18 @@ export class ExternalLinkCardComponent {
|
|
|
51
53
|
return this.link.name || this.link.description || ''
|
|
52
54
|
}
|
|
53
55
|
|
|
54
|
-
|
|
56
|
+
get isDatabase(): boolean {
|
|
57
|
+
return (
|
|
58
|
+
this.link.type === 'service' &&
|
|
59
|
+
this.link.accessServiceProtocol === 'postgis'
|
|
60
|
+
)
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
getLinkFormat(link: DatasetOnlineResource): string {
|
|
55
64
|
return getFileFormat(link)
|
|
56
65
|
}
|
|
57
66
|
|
|
58
|
-
getLinkColor(link:
|
|
67
|
+
getLinkColor(link: DatasetOnlineResource): string {
|
|
59
68
|
return getBadgeColor(getFileFormat(link))
|
|
60
69
|
}
|
|
61
70
|
}
|
|
File without changes
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<div
|
|
2
|
+
class="border border-gray-300 rounded-lg py-4 px-5 text-black flex justify-between items-center gap-4"
|
|
3
|
+
>
|
|
4
|
+
<div class="overflow-hidden flex-1">
|
|
5
|
+
<p class="text-base font-medium mb-3">DOI</p>
|
|
6
|
+
<p
|
|
7
|
+
class="text-base font-medium overflow-hidden text-ellipsis whitespace-nowrap"
|
|
8
|
+
[title]="code"
|
|
9
|
+
>
|
|
10
|
+
{{ code }}
|
|
11
|
+
</p>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="flex gap-2 items-start">
|
|
14
|
+
<gn-ui-copy-text-button
|
|
15
|
+
[text]="code"
|
|
16
|
+
[displayText]="false"
|
|
17
|
+
[tooltipText]="'record.metadata.doi.copy' | translate"
|
|
18
|
+
class="[&>div]:flex [&>div]:items-center [&>div]:justify-center [&_button]:w-[40px] [&_button]:h-[32px] [&_button]:flex [&_button]:items-center [&_button]:justify-center [&_button]:hover:bg-gray-100 [&_button]:rounded-lg [&_button]:transition-colors [&_button]:border [&_button]:border-gray-300 [&_button]:px-2 [&_button]:py-1 [&_ng-icon]:w-5 [&_ng-icon]:h-5"
|
|
19
|
+
></gn-ui-copy-text-button>
|
|
20
|
+
<a
|
|
21
|
+
*ngIf="link"
|
|
22
|
+
[href]="link"
|
|
23
|
+
target="_blank"
|
|
24
|
+
rel="noopener noreferrer"
|
|
25
|
+
class="w-[40px] h-[32px] flex items-center justify-center hover:bg-gray-100 rounded-lg transition-colors border border-gray-300 px-2 py-1"
|
|
26
|
+
[matTooltip]="'record.metadata.doi.open' | translate"
|
|
27
|
+
>
|
|
28
|
+
<ng-icon name="matOpenInNew" size="20"></ng-icon>
|
|
29
|
+
</a>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
4
|
+
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
5
|
+
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
6
|
+
import { TranslatePipe } from '@ngx-translate/core'
|
|
7
|
+
import { CopyTextButtonComponent } from '../../../../../../libs/ui/inputs/src'
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
selector: 'gn-ui-metadata-doi',
|
|
11
|
+
standalone: true,
|
|
12
|
+
imports: [
|
|
13
|
+
CommonModule,
|
|
14
|
+
MatTooltipModule,
|
|
15
|
+
NgIcon,
|
|
16
|
+
TranslatePipe,
|
|
17
|
+
CopyTextButtonComponent,
|
|
18
|
+
],
|
|
19
|
+
templateUrl: './metadata-doi.component.html',
|
|
20
|
+
styleUrl: './metadata-doi.component.css',
|
|
21
|
+
viewProviders: [
|
|
22
|
+
provideIcons({
|
|
23
|
+
matOpenInNew,
|
|
24
|
+
}),
|
|
25
|
+
],
|
|
26
|
+
})
|
|
27
|
+
export class MetadataDoiComponent {
|
|
28
|
+
@Input() code!: string
|
|
29
|
+
@Input() link?: string
|
|
30
|
+
}
|
|
@@ -3,7 +3,11 @@
|
|
|
3
3
|
ghostClass="h-[178px]"
|
|
4
4
|
[showContent]="fieldReady('abstract')"
|
|
5
5
|
>
|
|
6
|
-
<gn-ui-max-lines
|
|
6
|
+
<gn-ui-max-lines
|
|
7
|
+
[maxLines]="6"
|
|
8
|
+
*ngIf="metadata.abstract"
|
|
9
|
+
data-test="metadata-info-abstract"
|
|
10
|
+
>
|
|
7
11
|
<div class="mb-6">
|
|
8
12
|
<gn-ui-markdown-parser
|
|
9
13
|
[textContent]="metadata.abstract"
|
|
@@ -24,7 +28,7 @@
|
|
|
24
28
|
ghostClass="h-[31px] w-3/4"
|
|
25
29
|
[showContent]="fieldReady('keywords')"
|
|
26
30
|
>
|
|
27
|
-
<
|
|
31
|
+
<gn-ui-max-lines [maxLines]="7" *ngIf="metadata.keywords?.length">
|
|
28
32
|
<div class="metadata-info-keywords sm:pb-4 flex flex-wrap gap-2">
|
|
29
33
|
<gn-ui-badge
|
|
30
34
|
class="inline-block lowercase"
|
|
@@ -34,7 +38,7 @@
|
|
|
34
38
|
>{{ keyword.label }}</gn-ui-badge
|
|
35
39
|
>
|
|
36
40
|
</div>
|
|
37
|
-
</
|
|
41
|
+
</gn-ui-max-lines>
|
|
38
42
|
</gn-ui-content-ghost>
|
|
39
43
|
</div>
|
|
40
44
|
|
|
@@ -101,19 +105,31 @@
|
|
|
101
105
|
<gn-ui-expandable-panel
|
|
102
106
|
*ngIf="
|
|
103
107
|
(metadata.kind === 'dataset' && metadata.lineage) ||
|
|
108
|
+
resourceContact ||
|
|
109
|
+
metadata.resourceCreated ||
|
|
110
|
+
metadata.resourcePublished ||
|
|
104
111
|
metadata.resourceUpdated ||
|
|
105
|
-
metadata.updateFrequency ||
|
|
106
|
-
|
|
112
|
+
(metadata.kind === 'dataset' && metadata.updateFrequency) ||
|
|
113
|
+
metadata.otherLanguages?.length ||
|
|
114
|
+
(metadata.kind === 'dataset' && temporalExtent)
|
|
107
115
|
"
|
|
108
116
|
[title]="'record.metadata.details' | translate"
|
|
109
117
|
data-test="details-panel"
|
|
110
118
|
>
|
|
111
|
-
<div
|
|
119
|
+
<div
|
|
120
|
+
*ngIf="metadata.kind === 'dataset' && metadata.lineage"
|
|
121
|
+
class="text-gray-900 flex flex-col mt-4 gap-2"
|
|
122
|
+
data-test="details-panel-lineage"
|
|
123
|
+
>
|
|
112
124
|
<p class="whitespace-pre-line break-words text-gray-900" gnUiLinkify>
|
|
113
125
|
{{ metadata.lineage }}
|
|
114
126
|
</p>
|
|
115
127
|
</div>
|
|
116
|
-
<div
|
|
128
|
+
<div
|
|
129
|
+
class="flex flex-row gap-6 mt-5 mb-8 resource-contact"
|
|
130
|
+
*ngIf="resourceContact"
|
|
131
|
+
data-test="details-panel-resource-contact"
|
|
132
|
+
>
|
|
117
133
|
<div
|
|
118
134
|
*ngIf="resourceContact.organization?.logoUrl?.href"
|
|
119
135
|
class="flex items-center justify-center border-solid border border-gray-300 rounded-md bg-white h-32 overflow-hidden"
|
|
@@ -165,19 +181,40 @@
|
|
|
165
181
|
<div
|
|
166
182
|
class="py-6 px-6 rounded bg-gray-100 grid grid-cols-2 gap-y-6 gap-x-[20px] text-gray-700"
|
|
167
183
|
>
|
|
168
|
-
<div
|
|
184
|
+
<div
|
|
185
|
+
*ngIf="metadata.resourceCreated"
|
|
186
|
+
data-test="details-panel-resource-created"
|
|
187
|
+
>
|
|
169
188
|
<p class="text-sm" translate>record.metadata.creation</p>
|
|
170
|
-
<p
|
|
171
|
-
|
|
172
|
-
|
|
189
|
+
<p
|
|
190
|
+
class="text-primary font-medium mt-1 resource-created"
|
|
191
|
+
[gnUiHumanizeDate]="metadata.resourceCreated"
|
|
192
|
+
></p>
|
|
173
193
|
</div>
|
|
174
|
-
<div
|
|
194
|
+
<div
|
|
195
|
+
*ngIf="metadata.resourcePublished"
|
|
196
|
+
data-test="details-panel-resource-published"
|
|
197
|
+
>
|
|
175
198
|
<p class="text-sm" translate>record.metadata.publication</p>
|
|
176
|
-
<p
|
|
177
|
-
|
|
178
|
-
|
|
199
|
+
<p
|
|
200
|
+
class="text-primary font-medium mt-1 resource-published"
|
|
201
|
+
[gnUiHumanizeDate]="metadata.resourcePublished"
|
|
202
|
+
></p>
|
|
179
203
|
</div>
|
|
180
|
-
<div
|
|
204
|
+
<div
|
|
205
|
+
*ngIf="metadata.resourceUpdated"
|
|
206
|
+
data-test="details-panel-resource-updated"
|
|
207
|
+
>
|
|
208
|
+
<p class="text-sm" translate>record.metadata.update</p>
|
|
209
|
+
<p
|
|
210
|
+
class="text-primary font-medium mt-1 resource-updated"
|
|
211
|
+
[gnUiHumanizeDate]="metadata.resourceUpdated"
|
|
212
|
+
></p>
|
|
213
|
+
</div>
|
|
214
|
+
<div
|
|
215
|
+
*ngIf="metadata.kind === 'dataset' && metadata.updateFrequency"
|
|
216
|
+
data-test="details-panel-update-frequency"
|
|
217
|
+
>
|
|
181
218
|
<p class="text-sm" translate>record.metadata.updateFrequency</p>
|
|
182
219
|
<p
|
|
183
220
|
class="text-primary font-medium mt-1 updateFrequency"
|
|
@@ -187,11 +224,14 @@
|
|
|
187
224
|
{{ updateFrequency }}
|
|
188
225
|
</p>
|
|
189
226
|
</div>
|
|
190
|
-
<div
|
|
227
|
+
<div
|
|
228
|
+
*ngIf="metadata.otherLanguages?.length"
|
|
229
|
+
data-test="details-panel-other-languages"
|
|
230
|
+
>
|
|
191
231
|
<p class="text-sm mb-1" translate>record.metadata.languages</p>
|
|
192
232
|
<div class="flex flex-row gap-1 flex-wrap">
|
|
193
233
|
<p
|
|
194
|
-
class="text-primary font-medium"
|
|
234
|
+
class="text-primary font-medium other-languages"
|
|
195
235
|
translate
|
|
196
236
|
*ngFor="let language of metadata.otherLanguages"
|
|
197
237
|
>
|
|
@@ -199,9 +239,14 @@
|
|
|
199
239
|
</p>
|
|
200
240
|
</div>
|
|
201
241
|
</div>
|
|
202
|
-
<div
|
|
242
|
+
<div
|
|
243
|
+
*ngIf="metadata.kind === 'dataset' && temporalExtent"
|
|
244
|
+
data-test="details-panel-temporal-extent"
|
|
245
|
+
>
|
|
203
246
|
<p class="text-sm" translate>record.metadata.temporalExtent</p>
|
|
204
|
-
<div
|
|
247
|
+
<div
|
|
248
|
+
class="flex flex-row gap-1 mb-1 text-primary font-medium temporal-extent"
|
|
249
|
+
>
|
|
205
250
|
<p
|
|
206
251
|
*ngIf="temporalExtent.start && temporalExtent.end"
|
|
207
252
|
translate
|
|
@@ -252,9 +297,10 @@
|
|
|
252
297
|
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
253
298
|
<div *ngIf="metadata.recordUpdated">
|
|
254
299
|
<p class="text-sm" translate>record.metadata.updatedOn</p>
|
|
255
|
-
<p
|
|
256
|
-
|
|
257
|
-
|
|
300
|
+
<p
|
|
301
|
+
class="text-primary font-medium"
|
|
302
|
+
[gnUiHumanizeDate]="metadata.recordUpdated"
|
|
303
|
+
></p>
|
|
258
304
|
</div>
|
|
259
305
|
<div *ngIf="metadata.landingPage">
|
|
260
306
|
<p class="text-sm" translate>record.metadata.sheet</p>
|
|
@@ -26,7 +26,7 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
|
26
26
|
import { matMailOutline } from '@ng-icons/material-icons/outline'
|
|
27
27
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
28
28
|
import { GnUiLinkifyDirective } from './linkify.directive'
|
|
29
|
-
|
|
29
|
+
import { GnUiHumanizeDateDirective } from '../../../../../../libs/util/shared/src'
|
|
30
30
|
import { CommonModule } from '@angular/common'
|
|
31
31
|
import { SpatialExtentComponent } from '../../../../../../libs/ui/map/src'
|
|
32
32
|
|
|
@@ -49,6 +49,7 @@ import { SpatialExtentComponent } from '../../../../../../libs/ui/map/src'
|
|
|
49
49
|
CopyTextButtonComponent,
|
|
50
50
|
NgIcon,
|
|
51
51
|
GnUiLinkifyDirective,
|
|
52
|
+
GnUiHumanizeDateDirective,
|
|
52
53
|
SpatialExtentComponent,
|
|
53
54
|
],
|
|
54
55
|
viewProviders: [
|
|
@@ -146,12 +147,4 @@ export class MetadataInfoComponent {
|
|
|
146
147
|
onKeywordClick(keyword: Keyword) {
|
|
147
148
|
this.keyword.emit(keyword)
|
|
148
149
|
}
|
|
149
|
-
|
|
150
|
-
formatDate(date: Date): string {
|
|
151
|
-
return this.dateService.formatDate(date)
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
formatDateTime(date: Date): string {
|
|
155
|
-
return this.dateService.formatDateTime(date)
|
|
156
|
-
}
|
|
157
150
|
}
|
package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.css
ADDED
|
File without changes
|
package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-[10px]">
|
|
2
|
+
<div *ngFor="let item of items">
|
|
3
|
+
<div
|
|
4
|
+
data-cy="stac-item-card"
|
|
5
|
+
class="h-[173px] flex flex-col justify-between gap-4 bg-white rounded-lg border border-gray-300 px-5 py-3 mx-auto"
|
|
6
|
+
>
|
|
7
|
+
<h2 class="text-xl text-black line-clamp-4 break-words">
|
|
8
|
+
{{ item.id }}
|
|
9
|
+
</h2>
|
|
10
|
+
<p class="truncate">{{ item.properties.datetime }}</p>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
package/src/libs/ui/elements/src/lib/stac-items-result-grid/stac-items-result-grid.component.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
2
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core'
|
|
3
|
+
import { StacItem } from '@camptocamp/ogc-client'
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'gn-ui-stac-items-result-grid',
|
|
7
|
+
standalone: true,
|
|
8
|
+
imports: [CommonModule],
|
|
9
|
+
templateUrl: './stac-items-result-grid.component.html',
|
|
10
|
+
styleUrl: './stac-items-result-grid.component.css',
|
|
11
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12
|
+
})
|
|
13
|
+
export class StacItemsResultGridComponent {
|
|
14
|
+
@Input() items: StacItem[] = []
|
|
15
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
</div>
|
|
14
14
|
<div class="p-4 flex flex-col">
|
|
15
15
|
<span>{{ userFeedbackParent.authorName }}</span>
|
|
16
|
-
<span
|
|
16
|
+
<span [gnUiHumanizeDate]="userFeedbackParent.date"></span>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
<div data-cy="commentText" class="mt-4 whitespace-pre-line">
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
UserFeedbackViewModel,
|
|
12
12
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
13
13
|
import { UserModel } from '../../../../../../libs/common/domain/src/lib/model/user'
|
|
14
|
-
import { TimeSincePipe } from './time-since.pipe'
|
|
15
14
|
import { CommonModule } from '@angular/common'
|
|
16
15
|
import { ButtonComponent, TextAreaComponent } from '../../../../../../libs/ui/inputs/src'
|
|
17
16
|
import { TranslatePipe } from '@ngx-translate/core'
|
|
18
17
|
import { SpinningLoaderComponent } from '../../../../../../libs/ui/widgets/src'
|
|
19
18
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
20
19
|
import { matSendOutline } from '@ng-icons/material-icons/outline'
|
|
20
|
+
import { GnUiHumanizeDateDirective } from '../../../../../../libs/util/shared/src'
|
|
21
21
|
|
|
22
22
|
@Component({
|
|
23
23
|
selector: 'gn-ui-user-feedback-item',
|
|
@@ -27,11 +27,11 @@ import { matSendOutline } from '@ng-icons/material-icons/outline'
|
|
|
27
27
|
standalone: true,
|
|
28
28
|
imports: [
|
|
29
29
|
CommonModule,
|
|
30
|
-
TimeSincePipe,
|
|
31
30
|
TextAreaComponent,
|
|
32
31
|
TranslatePipe,
|
|
33
32
|
ButtonComponent,
|
|
34
33
|
SpinningLoaderComponent,
|
|
34
|
+
GnUiHumanizeDateDirective,
|
|
35
35
|
NgIcon,
|
|
36
36
|
],
|
|
37
37
|
viewProviders: [
|
|
@@ -24,3 +24,4 @@ export * from './lib/text-input/text-input.component'
|
|
|
24
24
|
export * from './lib/url-input/url-input.component'
|
|
25
25
|
export * from './lib/viewport-intersector/viewport-intersector.component'
|
|
26
26
|
export * from './lib/search-feature-catalog/search-feature-catalog.component'
|
|
27
|
+
export * from './lib/date-range-inputs/date-range-inputs.component'
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<label
|
|
2
|
-
class="
|
|
2
|
+
class="flex relative items-center cursor-pointer w-full"
|
|
3
3
|
[title]="title || label"
|
|
4
4
|
>
|
|
5
|
-
<span class="shrink-0">
|
|
5
|
+
<span class="shrink-0 relative">
|
|
6
6
|
<input
|
|
7
7
|
type="checkbox"
|
|
8
8
|
class="sr-only peer"
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"
|
|
19
19
|
></div>
|
|
20
20
|
</span>
|
|
21
|
-
<span class="ml-3 mt-[2px] text-sm font-medium">{{ label }}</span>
|
|
21
|
+
<span class="ml-3 mt-[2px] text-sm font-medium flex-1">{{ label }}</span>
|
|
22
22
|
</label>
|
|
@@ -5,7 +5,11 @@ import {
|
|
|
5
5
|
Input,
|
|
6
6
|
Output,
|
|
7
7
|
} from '@angular/core'
|
|
8
|
-
import {
|
|
8
|
+
import {
|
|
9
|
+
DateAdapter,
|
|
10
|
+
MAT_DATE_LOCALE,
|
|
11
|
+
MatNativeDateModule,
|
|
12
|
+
} from '@angular/material/core'
|
|
9
13
|
import { MatDatepickerModule } from '@angular/material/datepicker'
|
|
10
14
|
import { ButtonComponent } from '../button/button.component'
|
|
11
15
|
import {
|
|
@@ -14,6 +18,7 @@ import {
|
|
|
14
18
|
provideNgIconsConfig,
|
|
15
19
|
} from '@ng-icons/core'
|
|
16
20
|
import { iconoirCalendar } from '@ng-icons/iconoir'
|
|
21
|
+
import { TranslateService } from '@ngx-translate/core'
|
|
17
22
|
|
|
18
23
|
@Component({
|
|
19
24
|
selector: 'gn-ui-date-picker',
|
|
@@ -32,9 +37,20 @@ import { iconoirCalendar } from '@ng-icons/iconoir'
|
|
|
32
37
|
provideNgIconsConfig({
|
|
33
38
|
size: '1.5rem',
|
|
34
39
|
}),
|
|
40
|
+
{
|
|
41
|
+
provide: MAT_DATE_LOCALE,
|
|
42
|
+
useFactory: (locale: string) => locale,
|
|
43
|
+
},
|
|
35
44
|
],
|
|
36
45
|
})
|
|
37
46
|
export class DatePickerComponent {
|
|
38
47
|
@Input() date: Date
|
|
39
48
|
@Output() dateChange = new EventEmitter<Date>()
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
private dateAdapter: DateAdapter<Date>,
|
|
52
|
+
private translate: TranslateService
|
|
53
|
+
) {
|
|
54
|
+
this.dateAdapter.setLocale(this.translate.currentLang)
|
|
55
|
+
}
|
|
40
56
|
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<div class="m-8">
|
|
2
|
+
<p class="mb-4" translate>daterange.filter.period</p>
|
|
3
|
+
<p translate>daterange.filter.from</p>
|
|
4
|
+
<gn-ui-date-picker
|
|
5
|
+
id="start-date-picker"
|
|
6
|
+
[date]="temporalExtent?.start"
|
|
7
|
+
(dateChange)="onStartDateChange($event)"
|
|
8
|
+
></gn-ui-date-picker>
|
|
9
|
+
<p class="mt-4" translate>daterange.filter.to</p>
|
|
10
|
+
<gn-ui-date-picker
|
|
11
|
+
id="end-date-picker"
|
|
12
|
+
[date]="temporalExtent?.end"
|
|
13
|
+
(dateChange)="onEndDateChange($event)"
|
|
14
|
+
></gn-ui-date-picker>
|
|
15
|
+
</div>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
8
|
+
import { DatePickerComponent } from '../date-picker/date-picker.component'
|
|
9
|
+
import { DatasetTemporalExtent } from '../../../../../../libs/common/domain/src/lib/model/record/metadata.model'
|
|
10
|
+
import { TranslateDirective } from '@ngx-translate/core'
|
|
11
|
+
import { CommonModule } from '@angular/common'
|
|
12
|
+
|
|
13
|
+
@Component({
|
|
14
|
+
selector: 'gn-ui-date-range-inputs',
|
|
15
|
+
standalone: true,
|
|
16
|
+
imports: [CommonModule, TranslateDirective, DatePickerComponent],
|
|
17
|
+
templateUrl: './date-range-inputs.component.html',
|
|
18
|
+
styleUrl: './date-range-inputs.component.css',
|
|
19
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
+
})
|
|
21
|
+
export class DateRangeInputsComponent {
|
|
22
|
+
@Input() temporalExtent: DatasetTemporalExtent | null
|
|
23
|
+
@Output() temporalExtentChange =
|
|
24
|
+
new EventEmitter<DatasetTemporalExtent | null>()
|
|
25
|
+
|
|
26
|
+
onStartDateChange(date: Date) {
|
|
27
|
+
this.temporalExtent = {
|
|
28
|
+
...this.temporalExtent,
|
|
29
|
+
start: date,
|
|
30
|
+
}
|
|
31
|
+
this.temporalExtentChange.emit(this.temporalExtent)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
onEndDateChange(date: Date) {
|
|
35
|
+
this.temporalExtent = {
|
|
36
|
+
...this.temporalExtent,
|
|
37
|
+
end: date,
|
|
38
|
+
}
|
|
39
|
+
this.temporalExtentChange.emit(this.temporalExtent)
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -90,8 +90,10 @@ export class DropdownSelectorComponent implements OnInit {
|
|
|
90
90
|
|
|
91
91
|
get selectedChoice(): DropdownChoice {
|
|
92
92
|
return (
|
|
93
|
-
this.choices.find(
|
|
94
|
-
|
|
93
|
+
this.choices.find(
|
|
94
|
+
(choice) =>
|
|
95
|
+
JSON.stringify(choice.value) === JSON.stringify(this.selected)
|
|
96
|
+
) ?? this.choices[0]
|
|
95
97
|
)
|
|
96
98
|
}
|
|
97
99
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
export interface Paginable {
|
|
7
7
|
isFirstPage: boolean
|
|
8
8
|
isLastPage: boolean
|
|
9
|
-
pagesCount
|
|
10
|
-
currentPage
|
|
11
|
-
goToPage(index: number): void
|
|
9
|
+
pagesCount?: number
|
|
10
|
+
currentPage?: number
|
|
11
|
+
goToPage?(index: number): void
|
|
12
12
|
goToNextPage(): void
|
|
13
13
|
goToPrevPage(): void
|
|
14
14
|
}
|