geonetwork-ui 2.2.0-dev.0eef2738 → 2.2.0-dev.1189d390
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/atomic-operations.mjs +2 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +77 -52
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +4 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/converter.mjs +16 -11
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +23 -16
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +21 -18
- package/esm2022/libs/api/repository/src/lib/gn4/index.mjs +3 -1
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.mjs +14 -5
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +33 -8
- package/esm2022/libs/api/repository/src/lib/gn4/selection/selection.service.mjs +13 -26
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/aggregation.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/field.model.mjs +2 -0
- package/esm2022/libs/common/domain/src/lib/model/search/filter.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/search/index.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/model/search/search.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -10
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +5 -4
- package/esm2022/libs/feature/editor/src/lib/record-form/record-form.component.mjs +5 -3
- package/esm2022/libs/feature/map/src/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/constant/index.mjs +2 -1
- package/esm2022/libs/feature/map/src/lib/constant/projections.mjs +2 -0
- package/esm2022/libs/feature/map/src/lib/feature-map.module.mjs +17 -3
- package/esm2022/libs/feature/map/src/lib/geocoding/geocoding.component.mjs +93 -0
- package/esm2022/libs/feature/map/src/lib/geocoding.service.mjs +40 -0
- package/esm2022/libs/feature/map/src/lib/utils/index.mjs +1 -3
- package/esm2022/libs/feature/map/src/lib/utils/map-utils.service.mjs +60 -29
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +29 -20
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +2 -2
- package/esm2022/libs/feature/search/src/index.mjs +4 -1
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/feature-search.module.mjs +2 -6
- package/esm2022/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.mjs +1 -1
- package/esm2022/libs/feature/search/src/lib/filter-geometry.token.mjs +4 -0
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +7 -3
- package/esm2022/libs/feature/search/src/lib/record-url.token.mjs +4 -0
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +2 -2
- package/esm2022/libs/feature/search/src/lib/results-table/results-table.component.mjs +128 -0
- package/esm2022/libs/feature/search/src/lib/state/effects.mjs +6 -4
- package/esm2022/libs/feature/search/src/lib/state/search.facade.mjs +3 -2
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +41 -26
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +11 -9
- package/esm2022/libs/ui/elements/src/index.mjs +2 -1
- package/esm2022/libs/ui/elements/src/lib/downloads-list/downloads-list.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +2 -2
- package/esm2022/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +35 -22
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +2 -3
- package/esm2022/libs/ui/elements/src/lib/record-api-form/record-api-form.component.mjs +9 -6
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +3 -1
- package/esm2022/libs/ui/inputs/src/index.mjs +2 -1
- package/esm2022/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/checkbox/checkbox.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +46 -0
- package/esm2022/libs/ui/inputs/src/lib/ui-inputs.module.mjs +8 -3
- package/esm2022/libs/ui/layout/src/index.mjs +3 -1
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.mjs +36 -0
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +37 -0
- package/esm2022/libs/ui/search/src/index.mjs +1 -2
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +9 -10
- package/esm2022/libs/util/i18n/src/index.mjs +1 -2
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
- package/esm2022/translations/de.json +7 -4
- package/esm2022/translations/en.json +10 -7
- package/esm2022/translations/es.json +7 -4
- package/esm2022/translations/fr.json +10 -7
- package/esm2022/translations/it.json +9 -6
- package/esm2022/translations/nl.json +7 -4
- package/esm2022/translations/pt.json +7 -4
- package/fesm2022/geonetwork-ui.mjs +827 -618
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/gn4/atomic-operations.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/converter.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts +5 -4
- 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 +3 -2
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/index.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/index.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.d.ts +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 +9 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/selection/selection.service.d.ts +4 -5
- package/libs/api/repository/src/lib/gn4/selection/selection.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +15 -15
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/aggregation.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/search/aggregation.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/field.model.d.ts +2 -0
- package/libs/common/domain/src/lib/model/search/field.model.d.ts.map +1 -0
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts +1 -1
- package/libs/common/domain/src/lib/model/search/filter.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/index.d.ts +1 -0
- package/libs/common/domain/src/lib/model/search/index.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/search/search.model.d.ts +2 -3
- package/libs/common/domain/src/lib/model/search/search.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.d.ts +1 -0
- package/libs/common/domain/src/lib/model/thesaurus/thesaurus.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/feature/catalog/src/lib/my-org/my-org.service.d.ts +0 -1
- package/libs/feature/catalog/src/lib/my-org/my-org.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +15 -2
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/record-form/record-form.component.d.ts.map +1 -1
- package/libs/feature/map/src/index.d.ts +1 -0
- package/libs/feature/map/src/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/index.d.ts +1 -0
- package/libs/feature/map/src/lib/constant/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/constant/projections.d.ts.map +1 -0
- package/libs/feature/map/src/lib/feature-map.module.d.ts +13 -12
- package/libs/feature/map/src/lib/feature-map.module.d.ts.map +1 -1
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts +25 -0
- package/libs/feature/map/src/lib/geocoding/geocoding.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts +18 -0
- package/libs/feature/map/src/lib/geocoding.service.d.ts.map +1 -0
- package/libs/feature/map/src/lib/utils/index.d.ts +0 -2
- package/libs/feature/map/src/lib/utils/index.d.ts.map +1 -1
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts +13 -11
- package/libs/feature/map/src/lib/utils/map-utils.service.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +1 -3
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/index.d.ts +3 -0
- package/libs/feature/search/src/index.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +3 -3
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/feature-search.module.d.ts +0 -4
- package/libs/feature/search/src/lib/feature-search.module.d.ts.map +1 -1
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts +3 -2
- package/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/filter-geometry.token.d.ts +4 -0
- package/libs/feature/search/src/lib/filter-geometry.token.d.ts.map +1 -0
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/record-url.token.d.ts +3 -0
- package/libs/feature/search/src/lib/record-url.token.d.ts.map +1 -0
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts +33 -0
- package/libs/feature/search/src/lib/results-table/results-table.component.d.ts.map +1 -0
- package/libs/feature/search/src/lib/state/effects.d.ts.map +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts +1 -1
- package/libs/feature/search/src/lib/state/search.facade.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +21 -8
- 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/dataviz/src/lib/chart/chart.component.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -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/metadata-info/metadata-info.component.d.ts +7 -3
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/record-api-form/record-api-form.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts.map +1 -1
- 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/editable-label/editable-label.directive.d.ts +13 -0
- package/libs/ui/inputs/src/lib/editable-label/editable-label.directive.d.ts.map +1 -0
- package/libs/ui/inputs/src/lib/ui-inputs.module.d.ts +2 -1
- package/libs/ui/inputs/src/lib/ui-inputs.module.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/interactive-table/interactive-table-column/interactive-table-column.component.d.ts +14 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts +15 -0
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.component.d.ts.map +1 -0
- package/libs/ui/search/src/index.d.ts +0 -1
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +15 -15
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/i18n/src/index.d.ts +0 -1
- package/libs/util/i18n/src/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +19 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +4 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/generic.records.ts +6 -6
- package/src/libs/api/metadata-converter/src/lib/fixtures/geo2france.records.ts +5 -3
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +22 -4
- package/src/libs/api/metadata-converter/src/lib/gn4/atomic-operations.ts +3 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +112 -65
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +3 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/converter.ts +19 -12
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +62 -43
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +91 -59
- package/src/libs/api/repository/src/lib/gn4/index.ts +2 -0
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.mapper.ts +15 -4
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +47 -8
- package/src/libs/api/repository/src/lib/gn4/selection/selection.service.ts +14 -38
- package/src/libs/common/domain/src/lib/index.ts +2 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +17 -18
- package/src/libs/common/domain/src/lib/model/search/aggregation.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/search/field.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/search/filter.model.ts +1 -1
- package/src/libs/common/domain/src/lib/model/search/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/search/search.model.ts +2 -2
- package/src/libs/common/domain/src/lib/model/thesaurus/thesaurus.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/user/index.ts +1 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -4
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +6 -2
- package/src/libs/feature/catalog/src/lib/my-org/my-org.service.ts +4 -16
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +8 -5
- package/src/libs/feature/editor/src/lib/record-form/record-form.component.ts +2 -1
- package/src/libs/feature/map/src/index.ts +1 -0
- package/src/libs/feature/map/src/lib/constant/index.ts +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +8 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.css +0 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +39 -0
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +99 -0
- package/src/libs/feature/map/src/lib/geocoding.service.ts +59 -0
- package/src/libs/feature/map/src/lib/utils/index.ts +0 -2
- package/src/libs/feature/map/src/lib/utils/map-utils.service.ts +85 -50
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +18 -3
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +1 -1
- package/src/libs/feature/search/src/index.ts +3 -0
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +1 -1
- package/src/libs/feature/search/src/lib/feature-search.module.ts +1 -10
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +4 -4
- package/src/libs/feature/search/src/lib/filter-geometry.token.ts +7 -0
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +9 -3
- package/src/libs/feature/search/src/lib/record-url.token.ts +4 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +1 -1
- package/src/libs/feature/search/src/lib/results-table/results-table.component.css +0 -0
- package/src/libs/feature/search/src/lib/results-table/results-table.component.html +112 -0
- package/src/libs/feature/search/src/lib/results-table/results-table.component.ts +164 -0
- package/src/libs/feature/search/src/lib/state/effects.ts +5 -4
- package/src/libs/feature/search/src/lib/state/search.facade.ts +2 -1
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +21 -16
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +43 -34
- package/src/libs/ui/elements/src/index.ts +1 -0
- package/src/libs/ui/elements/src/lib/downloads-list/downloads-list.component.html +4 -1
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +3 -2
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +2 -2
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +1 -1
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +45 -18
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +31 -12
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.ts +1 -2
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.html +5 -5
- package/src/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +12 -4
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +1 -0
- package/src/libs/ui/inputs/src/index.ts +1 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/button/button.component.css +1 -1
- package/src/libs/ui/inputs/src/lib/checkbox/checkbox.component.html +0 -1
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +48 -0
- package/src/libs/ui/inputs/src/lib/ui-inputs.module.ts +3 -0
- package/src/libs/ui/layout/src/index.ts +2 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.css +0 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.html +1 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table-column/interactive-table-column.component.ts +33 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.css +15 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +54 -0
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +42 -0
- package/src/libs/ui/search/src/index.ts +0 -1
- package/src/libs/ui/search/src/lib/ui-search.module.ts +2 -3
- package/src/libs/util/i18n/src/index.ts +0 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +34 -11
- package/translations/de.json +7 -4
- package/translations/en.json +10 -7
- package/translations/es.json +7 -4
- package/translations/fr.json +10 -7
- package/translations/it.json +9 -6
- package/translations/nl.json +7 -4
- package/translations/pt.json +7 -4
- package/translations/sk.json +7 -4
- package/esm2022/libs/feature/map/src/lib/utils/map-utils-wms.service.mjs +0 -55
- package/esm2022/libs/feature/map/src/lib/utils/projections.mjs +0 -2
- package/esm2022/libs/ui/search/src/lib/record-table/record-table.component.mjs +0 -145
- package/esm2022/libs/util/i18n/src/lib/testing/test.translate.loader.mjs +0 -24
- package/esm2022/libs/util/i18n/src/lib/testing/test.translate.module.mjs +0 -109
- package/esm2022/libs/util/i18n/src/lib/testing/translations.model.mjs +0 -6
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts +0 -17
- package/libs/feature/map/src/lib/utils/map-utils-wms.service.d.ts.map +0 -1
- package/libs/feature/map/src/lib/utils/projections.d.ts.map +0 -1
- package/libs/ui/search/src/lib/record-table/record-table.component.d.ts +0 -31
- package/libs/ui/search/src/lib/record-table/record-table.component.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/test.translate.loader.d.ts +0 -17
- package/libs/util/i18n/src/lib/testing/test.translate.loader.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/test.translate.module.d.ts +0 -131
- package/libs/util/i18n/src/lib/testing/test.translate.module.d.ts.map +0 -1
- package/libs/util/i18n/src/lib/testing/translations.model.d.ts +0 -21
- package/libs/util/i18n/src/lib/testing/translations.model.d.ts.map +0 -1
- package/src/libs/feature/map/src/lib/utils/map-utils-wms.service.ts +0 -58
- package/src/libs/ui/search/src/lib/record-table/record-table.component.css +0 -7
- package/src/libs/ui/search/src/lib/record-table/record-table.component.html +0 -215
- package/src/libs/ui/search/src/lib/record-table/record-table.component.ts +0 -149
- package/src/libs/util/i18n/src/lib/testing/test.translate.loader.ts +0 -26
- package/src/libs/util/i18n/src/lib/testing/test.translate.module.ts +0 -235
- package/src/libs/util/i18n/src/lib/testing/translations.model.ts +0 -28
- /package/libs/feature/map/src/lib/{utils → constant}/projections.d.ts +0 -0
- /package/src/libs/feature/map/src/lib/{utils → constant}/projections.ts +0 -0
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
<div class="flex flex-row items-center gap-2">
|
|
20
20
|
<gn-ui-text-input
|
|
21
21
|
class="mr-2 w-20"
|
|
22
|
-
(
|
|
23
|
-
[value]="
|
|
22
|
+
(valueChange)="setLimit($event)"
|
|
23
|
+
[value]="displayLimit$ | async"
|
|
24
24
|
hint=""
|
|
25
25
|
>
|
|
26
26
|
</gn-ui-text-input>
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
<input
|
|
29
29
|
class="mr-2 cursor-pointer"
|
|
30
30
|
type="checkbox"
|
|
31
|
-
[checked]="
|
|
32
|
-
(change)="setLimit('')"
|
|
31
|
+
[checked]="noLimitChecked$ | async"
|
|
32
|
+
(change)="setLimit('-1')"
|
|
33
33
|
/>
|
|
34
34
|
<span class="text-sm" translate
|
|
35
35
|
>record.metadata.api.form.limit.all</span
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
<gn-ui-text-input
|
|
43
43
|
class="w-20"
|
|
44
44
|
[value]="offset$ | async"
|
|
45
|
-
(
|
|
45
|
+
(valueChange)="setOffset($event)"
|
|
46
46
|
hint=""
|
|
47
47
|
>
|
|
48
48
|
</gn-ui-text-input>
|
|
@@ -4,7 +4,7 @@ import { BehaviorSubject, combineLatest, map } from 'rxjs'
|
|
|
4
4
|
|
|
5
5
|
const DEFAULT_PARAMS = {
|
|
6
6
|
OFFSET: '',
|
|
7
|
-
LIMIT: '',
|
|
7
|
+
LIMIT: '-1',
|
|
8
8
|
FORMAT: 'json',
|
|
9
9
|
}
|
|
10
10
|
@Component({
|
|
@@ -44,17 +44,25 @@ export class RecordApiFormComponent {
|
|
|
44
44
|
return outputUrl
|
|
45
45
|
})
|
|
46
46
|
)
|
|
47
|
+
noLimitChecked$ = this.limit$.pipe(
|
|
48
|
+
map((limit) => limit === '-1' || limit === '')
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
displayLimit$ = this.limit$.pipe(
|
|
52
|
+
map((limit) => (limit !== '-1' ? limit : ''))
|
|
53
|
+
)
|
|
47
54
|
|
|
48
55
|
setOffset(value: string) {
|
|
49
56
|
this.offset$.next(value)
|
|
50
57
|
}
|
|
51
58
|
|
|
52
59
|
setLimit(value: string) {
|
|
53
|
-
|
|
60
|
+
const newLimit = value === '' ? '-1' : value
|
|
61
|
+
this.limit$.next(newLimit)
|
|
54
62
|
}
|
|
55
63
|
|
|
56
|
-
setFormat(value: string) {
|
|
57
|
-
this.format$.next(value)
|
|
64
|
+
setFormat(value: string | unknown) {
|
|
65
|
+
this.format$.next(String(value))
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
resetUrl() {
|
|
@@ -88,6 +88,7 @@ import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-over
|
|
|
88
88
|
AvatarComponent,
|
|
89
89
|
UserPreviewComponent,
|
|
90
90
|
PaginationButtonsComponent,
|
|
91
|
+
MaxLinesComponent,
|
|
91
92
|
RecordApiFormComponent,
|
|
92
93
|
MarkdownParserComponent,
|
|
93
94
|
ImageOverlayPreviewComponent,
|
|
@@ -19,3 +19,4 @@ export * from './lib/viewport-intersector/viewport-intersector.component'
|
|
|
19
19
|
export * from './lib/checkbox/checkbox.component'
|
|
20
20
|
export * from './lib/search-input/search-input.component'
|
|
21
21
|
export * from './lib/date-range-picker/date-range-picker.component'
|
|
22
|
+
export * from './lib/editable-label/editable-label.directive'
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Directive,
|
|
3
|
+
ElementRef,
|
|
4
|
+
Renderer2,
|
|
5
|
+
AfterViewInit,
|
|
6
|
+
EventEmitter,
|
|
7
|
+
Output,
|
|
8
|
+
Input,
|
|
9
|
+
} from '@angular/core'
|
|
10
|
+
|
|
11
|
+
@Directive({
|
|
12
|
+
selector: '[gnUiEditableLabel]',
|
|
13
|
+
standalone: true,
|
|
14
|
+
})
|
|
15
|
+
export class EditableLabelDirective implements AfterViewInit {
|
|
16
|
+
@Output() editableLabelChanged = new EventEmitter<string>()
|
|
17
|
+
@Input() gnUiEditableLabel?: boolean
|
|
18
|
+
|
|
19
|
+
constructor(private el: ElementRef, private renderer: Renderer2) {}
|
|
20
|
+
|
|
21
|
+
ngAfterViewInit() {
|
|
22
|
+
if (this.gnUiEditableLabel !== false) {
|
|
23
|
+
const appendedInput = this.renderer.createElement('input')
|
|
24
|
+
|
|
25
|
+
this.renderer.setStyle(appendedInput, 'background', 'inherit')
|
|
26
|
+
this.renderer.setStyle(appendedInput, 'color', 'inherit')
|
|
27
|
+
this.renderer.setStyle(appendedInput, 'font', 'inherit')
|
|
28
|
+
this.renderer.setStyle(appendedInput, 'border', 'inherit')
|
|
29
|
+
this.renderer.setStyle(appendedInput, 'width', '100%')
|
|
30
|
+
this.renderer.setStyle(appendedInput, 'padding', 'inherit')
|
|
31
|
+
this.renderer.setStyle(appendedInput, 'margin', '0')
|
|
32
|
+
this.renderer.setStyle(appendedInput, 'height', 'inherit')
|
|
33
|
+
this.renderer.setStyle(appendedInput, 'line-height', 'inherit')
|
|
34
|
+
this.renderer.setStyle(appendedInput, 'text-decoration', 'inherit')
|
|
35
|
+
|
|
36
|
+
const hostContent = this.el.nativeElement.textContent || ''
|
|
37
|
+
const formattedContent = hostContent.replace(/\s+/g, ' ').trim()
|
|
38
|
+
this.renderer.setProperty(appendedInput, 'value', formattedContent)
|
|
39
|
+
this.renderer.setProperty(this.el.nativeElement, 'innerHTML', '')
|
|
40
|
+
|
|
41
|
+
this.renderer.listen(appendedInput, 'input', (event) => {
|
|
42
|
+
this.editableLabelChanged.emit(event.target.value)
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
this.renderer.appendChild(this.el.nativeElement, appendedInput)
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -41,6 +41,7 @@ import { MatFormFieldModule } from '@angular/material/form-field'
|
|
|
41
41
|
import { MatInputModule } from '@angular/material/input'
|
|
42
42
|
import { MatDatepickerModule } from '@angular/material/datepicker'
|
|
43
43
|
import { MatNativeDateModule } from '@angular/material/core'
|
|
44
|
+
import { EditableLabelDirective } from './editable-label/editable-label.directive'
|
|
44
45
|
|
|
45
46
|
@NgModule({
|
|
46
47
|
declarations: [
|
|
@@ -87,6 +88,7 @@ import { MatNativeDateModule } from '@angular/material/core'
|
|
|
87
88
|
MatInputModule,
|
|
88
89
|
MatDatepickerModule,
|
|
89
90
|
MatNativeDateModule,
|
|
91
|
+
EditableLabelDirective,
|
|
90
92
|
],
|
|
91
93
|
exports: [
|
|
92
94
|
DropdownSelectorComponent,
|
|
@@ -106,6 +108,7 @@ import { MatNativeDateModule } from '@angular/material/core'
|
|
|
106
108
|
CheckboxComponent,
|
|
107
109
|
SearchInputComponent,
|
|
108
110
|
DateRangePickerComponent,
|
|
111
|
+
EditableLabelDirective,
|
|
109
112
|
],
|
|
110
113
|
})
|
|
111
114
|
export class UiInputsModule {}
|
|
@@ -4,3 +4,5 @@ export * from './lib/carousel/carousel.component'
|
|
|
4
4
|
export * from './lib/expandable-panel/expandable-panel.component'
|
|
5
5
|
export * from './lib/sticky-header/sticky-header.component'
|
|
6
6
|
export * from './lib/expandable-panel-button/expandable-panel-button.component'
|
|
7
|
+
export * from './lib/interactive-table/interactive-table.component'
|
|
8
|
+
export * from './lib/interactive-table/interactive-table-column/interactive-table-column.component'
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<span>empty</span>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
ContentChild,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
TemplateRef,
|
|
9
|
+
} from '@angular/core'
|
|
10
|
+
import { CommonModule } from '@angular/common'
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
selector: 'gn-ui-interactive-table-column',
|
|
14
|
+
standalone: true,
|
|
15
|
+
imports: [CommonModule],
|
|
16
|
+
templateUrl: './interactive-table-column.component.html',
|
|
17
|
+
styleUrls: ['./interactive-table-column.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
})
|
|
20
|
+
export class InteractiveTableColumnComponent {
|
|
21
|
+
@ContentChild('header') header: TemplateRef<unknown>
|
|
22
|
+
@ContentChild('cell') cell: TemplateRef<unknown>
|
|
23
|
+
|
|
24
|
+
@Input() grow = false
|
|
25
|
+
@Input() sortable = false
|
|
26
|
+
@Input() activeSort: 'asc' | 'desc' | null = null
|
|
27
|
+
@Output() sortChange = new EventEmitter<'asc' | 'desc'>()
|
|
28
|
+
|
|
29
|
+
handleSortChange() {
|
|
30
|
+
this.activeSort = this.activeSort === 'asc' ? 'desc' : 'asc'
|
|
31
|
+
this.sortChange.emit(this.activeSort)
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.sort-button mat-icon {
|
|
2
|
+
padding: 0;
|
|
3
|
+
margin: 0;
|
|
4
|
+
height: 8px;
|
|
5
|
+
line-height: 8px;
|
|
6
|
+
font-size: 18px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.table-header-cell {
|
|
10
|
+
@apply text-gray-700 px-4 py-5 flex items-center truncate bg-white;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
button.table-header-cell {
|
|
14
|
+
@apply transition-colors duration-75 hover:text-main hover:bg-gray-50 focus:text-main focus:bg-gray-50;
|
|
15
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
<div class="grid w-full" [ngStyle]="gridStyle">
|
|
2
|
+
<div class="contents">
|
|
3
|
+
<ng-container *ngFor="let column of columns">
|
|
4
|
+
<button
|
|
5
|
+
*ngIf="column.sortable"
|
|
6
|
+
type="button"
|
|
7
|
+
class="table-header-cell"
|
|
8
|
+
(click)="column.sortable && column.handleSortChange()"
|
|
9
|
+
>
|
|
10
|
+
<ng-container *ngTemplateOutlet="column.header"></ng-container>
|
|
11
|
+
<div class="sort-button flex flex-col" *ngIf="column.sortable">
|
|
12
|
+
<mat-icon
|
|
13
|
+
class="material-symbols-outlined text-gray-600"
|
|
14
|
+
[ngClass]="{ 'text-main': column.activeSort === 'asc' }"
|
|
15
|
+
>expand_less</mat-icon
|
|
16
|
+
>
|
|
17
|
+
<mat-icon
|
|
18
|
+
class="material-symbols-outlined text-gray-600"
|
|
19
|
+
[ngClass]="{ 'text-main': column.activeSort === 'desc' }"
|
|
20
|
+
>expand_more</mat-icon
|
|
21
|
+
>
|
|
22
|
+
</div>
|
|
23
|
+
</button>
|
|
24
|
+
<div *ngIf="!column.sortable" class="table-header-cell">
|
|
25
|
+
<ng-container *ngTemplateOutlet="column.header"></ng-container>
|
|
26
|
+
</div>
|
|
27
|
+
</ng-container>
|
|
28
|
+
</div>
|
|
29
|
+
<div
|
|
30
|
+
class="contents text-gray-900 cursor-pointer group"
|
|
31
|
+
*ngFor="let item of items"
|
|
32
|
+
(click)="handleRowClick(item)"
|
|
33
|
+
>
|
|
34
|
+
<div
|
|
35
|
+
class="relative h-0"
|
|
36
|
+
[ngStyle]="{ 'grid-column': 'span ' + this.columns.length }"
|
|
37
|
+
>
|
|
38
|
+
<!-- this element is only used in keyboard navigation -->
|
|
39
|
+
<button
|
|
40
|
+
type="button"
|
|
41
|
+
class="absolute inset-x-0 h-[50px] bg-transparent pointer-events-none"
|
|
42
|
+
></button>
|
|
43
|
+
</div>
|
|
44
|
+
<ng-container *ngFor="let column of columns">
|
|
45
|
+
<div
|
|
46
|
+
class="table-row-cell px-4 py-3 flex items-center bg-white transition-colors duration-75 truncate group-hover:text-main group-hover:bg-gray-50 border-b border-gray-200"
|
|
47
|
+
>
|
|
48
|
+
<ng-container
|
|
49
|
+
*ngTemplateOutlet="column.cell; context: { $implicit: item }"
|
|
50
|
+
></ng-container>
|
|
51
|
+
</div>
|
|
52
|
+
</ng-container>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
ContentChildren,
|
|
5
|
+
EventEmitter,
|
|
6
|
+
Input,
|
|
7
|
+
Output,
|
|
8
|
+
QueryList,
|
|
9
|
+
} from '@angular/core'
|
|
10
|
+
import { InteractiveTableColumnComponent } from './interactive-table-column/interactive-table-column.component'
|
|
11
|
+
import { CommonModule } from '@angular/common'
|
|
12
|
+
import { MatIconModule } from '@angular/material/icon'
|
|
13
|
+
|
|
14
|
+
@Component({
|
|
15
|
+
selector: 'gn-ui-interactive-table',
|
|
16
|
+
templateUrl: './interactive-table.component.html',
|
|
17
|
+
styleUrls: ['./interactive-table.component.css'],
|
|
18
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19
|
+
standalone: true,
|
|
20
|
+
imports: [CommonModule, InteractiveTableColumnComponent, MatIconModule],
|
|
21
|
+
})
|
|
22
|
+
export class InteractiveTableComponent {
|
|
23
|
+
@ContentChildren(InteractiveTableColumnComponent)
|
|
24
|
+
columns: QueryList<InteractiveTableColumnComponent>
|
|
25
|
+
|
|
26
|
+
@Input() items: unknown[] = []
|
|
27
|
+
@Output() itemClick = new EventEmitter<unknown>()
|
|
28
|
+
|
|
29
|
+
get gridStyle() {
|
|
30
|
+
return {
|
|
31
|
+
'grid-template-columns': this.columns
|
|
32
|
+
.map((column) =>
|
|
33
|
+
column.grow ? `minmax(0px,1fr)` : `minmax(0px,max-content)`
|
|
34
|
+
)
|
|
35
|
+
.join(' '),
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
handleRowClick(item: unknown) {
|
|
40
|
+
this.itemClick.emit(item)
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -14,7 +14,6 @@ export * from './lib/record-preview-card/record-preview-card.component'
|
|
|
14
14
|
export * from './lib/record-preview-list/record-preview-list.component'
|
|
15
15
|
export * from './lib/record-preview-text/record-preview-text.component'
|
|
16
16
|
export * from './lib/record-preview-title/record-preview-title.component'
|
|
17
|
-
export * from './lib/record-table/record-table.component'
|
|
18
17
|
export * from './lib/record-metric/record-metric.component'
|
|
19
18
|
export * from './lib/results-list-item/results-list-item.component'
|
|
20
19
|
export * from './lib/results-hits-number/results-hits-number.component'
|
|
@@ -24,10 +24,10 @@ import { ResultsListItemComponent } from './results-list-item/results-list-item.
|
|
|
24
24
|
import { UiWidgetsModule } from '../../../../../libs/ui/widgets/src'
|
|
25
25
|
import { UiElementsModule } from '../../../../../libs/ui/elements/src'
|
|
26
26
|
import { RecordPreviewFeedComponent } from './record-preview-feed/record-preview-feed.component'
|
|
27
|
-
import { RecordTableComponent } from './record-table/record-table.component'
|
|
28
27
|
import { CommonModule } from '@angular/common'
|
|
29
28
|
import { UiInputsModule } from '../../../../../libs/ui/inputs/src'
|
|
30
29
|
import { MatCheckboxModule } from '@angular/material/checkbox'
|
|
30
|
+
import { InteractiveTableComponent } from '../../../../../libs/ui/layout/src'
|
|
31
31
|
|
|
32
32
|
@NgModule({
|
|
33
33
|
declarations: [
|
|
@@ -42,7 +42,6 @@ import { MatCheckboxModule } from '@angular/material/checkbox'
|
|
|
42
42
|
ResultsListItemComponent,
|
|
43
43
|
RecordPreviewFeedComponent,
|
|
44
44
|
RecordPreviewRowComponent,
|
|
45
|
-
RecordTableComponent,
|
|
46
45
|
],
|
|
47
46
|
imports: [
|
|
48
47
|
CommonModule,
|
|
@@ -59,6 +58,7 @@ import { MatCheckboxModule } from '@angular/material/checkbox'
|
|
|
59
58
|
MatIconModule,
|
|
60
59
|
MatCheckboxModule,
|
|
61
60
|
RouterLink,
|
|
61
|
+
InteractiveTableComponent,
|
|
62
62
|
],
|
|
63
63
|
exports: [
|
|
64
64
|
RecordPreviewListComponent,
|
|
@@ -72,7 +72,6 @@ import { MatCheckboxModule } from '@angular/material/checkbox'
|
|
|
72
72
|
ResultsHitsNumberComponent,
|
|
73
73
|
RecordPreviewFeedComponent,
|
|
74
74
|
RecordPreviewRowComponent,
|
|
75
|
-
RecordTableComponent,
|
|
76
75
|
],
|
|
77
76
|
providers: [
|
|
78
77
|
{ provide: RESULTS_LAYOUT_CONFIG, useValue: DEFAULT_RESULTS_LAYOUT_CONFIG },
|
|
@@ -3,6 +3,5 @@ export * from './lib/i18n.constants'
|
|
|
3
3
|
export * from './lib/i18n.interceptor'
|
|
4
4
|
export * from './lib/lang.service'
|
|
5
5
|
export * from './lib/file.translate.loader'
|
|
6
|
-
export * from './lib/testing/test.translate.module'
|
|
7
6
|
export * from './lib/embedded.translate.loader'
|
|
8
7
|
export * from './lib/translate.loader.utils'
|
|
@@ -43,9 +43,15 @@ export const FORMATS = {
|
|
|
43
43
|
color: '#328556',
|
|
44
44
|
mimeTypes: ['x-gis/x-shapefile'],
|
|
45
45
|
},
|
|
46
|
+
gml: {
|
|
47
|
+
extensions: ['gml'],
|
|
48
|
+
priority: 5,
|
|
49
|
+
color: '#c92bce',
|
|
50
|
+
mimeTypes: ['application/gml+xml', 'text/xml; subtype=gml'],
|
|
51
|
+
},
|
|
46
52
|
kml: {
|
|
47
53
|
extensions: ['kml', 'kmz'],
|
|
48
|
-
priority:
|
|
54
|
+
priority: 6,
|
|
49
55
|
color: '#348009',
|
|
50
56
|
mimeTypes: [
|
|
51
57
|
'application/vnd.google-earth.kml+xml',
|
|
@@ -54,34 +60,40 @@ export const FORMATS = {
|
|
|
54
60
|
},
|
|
55
61
|
gpkg: {
|
|
56
62
|
extensions: ['gpkg', 'geopackage'],
|
|
57
|
-
priority:
|
|
63
|
+
priority: 7,
|
|
58
64
|
color: '#ea79ba',
|
|
59
65
|
mimeTypes: ['application/geopackage+sqlite3'],
|
|
60
66
|
},
|
|
61
67
|
zip: {
|
|
62
68
|
extensions: ['zip', 'tar.gz'],
|
|
63
|
-
priority:
|
|
69
|
+
priority: 8,
|
|
64
70
|
color: '#f2bb3a',
|
|
65
71
|
mimeTypes: ['application/zip', 'application/x-zip'],
|
|
66
72
|
},
|
|
67
73
|
pdf: {
|
|
68
74
|
extensions: ['pdf'],
|
|
69
|
-
priority:
|
|
75
|
+
priority: 9,
|
|
70
76
|
color: '#db544a',
|
|
71
77
|
mimeTypes: ['application/pdf'],
|
|
72
78
|
},
|
|
73
79
|
jpg: {
|
|
74
80
|
extensions: ['jpg', 'jpeg', 'jfif', 'pjpeg', 'pjp'],
|
|
75
|
-
priority:
|
|
81
|
+
priority: 9,
|
|
76
82
|
color: '#673ab7',
|
|
77
83
|
mimeTypes: ['image/jpg'],
|
|
78
84
|
},
|
|
79
85
|
svg: {
|
|
80
86
|
extensions: ['svg'],
|
|
81
|
-
priority:
|
|
87
|
+
priority: 10,
|
|
82
88
|
color: '#d98294',
|
|
83
89
|
mimeTypes: ['image/svg+xml'],
|
|
84
90
|
},
|
|
91
|
+
dxf: {
|
|
92
|
+
extensions: ['dxf'],
|
|
93
|
+
priority: 11,
|
|
94
|
+
color: '#de630b',
|
|
95
|
+
mimeTypes: ['application/x-dxf', 'image/x-dxf'],
|
|
96
|
+
},
|
|
85
97
|
} as const
|
|
86
98
|
|
|
87
99
|
export type FileFormat = keyof typeof FORMATS
|
|
@@ -102,13 +114,24 @@ export function getLinkPriority(link: DatasetDistribution): number {
|
|
|
102
114
|
return getFormatPriority(getFileFormat(link))
|
|
103
115
|
}
|
|
104
116
|
|
|
105
|
-
export function
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
117
|
+
export function getFileFormatFromServiceOutput(
|
|
118
|
+
serviceOutput: string
|
|
119
|
+
): FileFormat | null {
|
|
120
|
+
function formatMatcher(format: typeof FORMATS[FileFormat]): boolean {
|
|
121
|
+
const output = serviceOutput.toLowerCase()
|
|
122
|
+
return (
|
|
123
|
+
format.extensions.some((extension: string) =>
|
|
124
|
+
output.includes(extension)
|
|
125
|
+
) ||
|
|
126
|
+
format.mimeTypes.some((mimeType: string) => output.includes(mimeType))
|
|
127
|
+
)
|
|
128
|
+
}
|
|
129
|
+
for (const formatName in FORMATS) {
|
|
130
|
+
if (formatMatcher(FORMATS[formatName])) {
|
|
131
|
+
return formatName as FileFormat
|
|
109
132
|
}
|
|
110
133
|
}
|
|
111
|
-
return
|
|
134
|
+
return null
|
|
112
135
|
}
|
|
113
136
|
|
|
114
137
|
export function getFileFormat(link: DatasetDistribution): FileFormat {
|
package/translations/de.json
CHANGED
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"chart.type.line": "Liniendiagramm",
|
|
17
17
|
"chart.type.lineSmooth": "Geglättes Liniendiagramm",
|
|
18
18
|
"chart.type.pie": "Kreisdiagramm",
|
|
19
|
+
"dashboard.createRecord": "",
|
|
19
20
|
"dashboard.labels.mySpace": "Mein Bereich",
|
|
20
21
|
"dashboard.records.all": "Katalog",
|
|
21
22
|
"dashboard.records.myDraft": "Meine Entwürfe",
|
|
22
23
|
"dashboard.records.myLibrary": "Meine Bibliothek",
|
|
23
24
|
"dashboard.records.myOrg": "Meine Organisation",
|
|
24
25
|
"dashboard.records.myRecords": "Meine Datensätze",
|
|
25
|
-
"dashboard.records.noRecord": "Kein Datensatz für diese Organisation",
|
|
26
|
-
"dashboard.records.noUser": "Keine Benutzer für diese Organisation",
|
|
27
26
|
"dashboard.records.publishedRecords": "{count, plural, =1{veröffentlichter Datensatz} other{veröffentlichte Datensätze}}",
|
|
28
27
|
"dashboard.records.search": "Suche nach \"{searchText}\"",
|
|
29
28
|
"dashboard.records.userDetail": "Name",
|
|
30
29
|
"dashboard.records.userEmail": "E-Mail",
|
|
31
30
|
"dashboard.records.username": "Benutzername",
|
|
32
31
|
"dashboard.records.users": "{count, plural, =1{Benutzer} other{Benutzer}}",
|
|
32
|
+
"dashboard.results.listMetadata": "",
|
|
33
|
+
"dashboard.results.listResources": "",
|
|
33
34
|
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "Dateiformat-Erkennung",
|
|
34
35
|
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Sammeln von Datensatzinformationen",
|
|
35
36
|
"datafeeder.analysisProgressBar.illustration.samplingData": "Datenauswahl",
|
|
@@ -177,6 +178,7 @@
|
|
|
177
178
|
"map.add.layer.wfs": "Aus WFS",
|
|
178
179
|
"map.add.layer.wms": "Aus WMS",
|
|
179
180
|
"map.addFromFile.placeholder": "Klicke hier oder ziehe eine Datei herein",
|
|
181
|
+
"map.geocoding.placeholder": "",
|
|
180
182
|
"map.help.addFromFile": "Klicke oder ziehe eine Datei herein um eine Karte hinzuzufügen (momentan wird nur das GeoJSON-Format unterstützt).",
|
|
181
183
|
"map.layer.add": "Hinzufügen",
|
|
182
184
|
"map.layers.available": "Verfügbare Layer",
|
|
@@ -220,16 +222,15 @@
|
|
|
220
222
|
"record.metadata.author": "Autor",
|
|
221
223
|
"record.metadata.catalog": "Katalog",
|
|
222
224
|
"record.metadata.contact": "Kontakt",
|
|
223
|
-
"record.metadata.createdOn": "Erstellt am",
|
|
224
225
|
"record.metadata.details": "Technische Informationen",
|
|
225
226
|
"record.metadata.download": "Downloads",
|
|
226
227
|
"record.metadata.formats": "Formate",
|
|
227
|
-
"record.metadata.isOpenData": "Open Data",
|
|
228
228
|
"record.metadata.keywords": "Stichworte",
|
|
229
229
|
"record.metadata.lastUpdate": "Zuletzt aktualisiert am",
|
|
230
230
|
"record.metadata.links": "Links",
|
|
231
231
|
"record.metadata.noUsage": "Für diesen Datensatz sind keine Nutzungsbedingungen angegeben.",
|
|
232
232
|
"record.metadata.origin": "Über die Daten",
|
|
233
|
+
"record.metadata.otherConstraints": "",
|
|
233
234
|
"record.metadata.owner": "",
|
|
234
235
|
"record.metadata.preview": "Vorschau",
|
|
235
236
|
"record.metadata.publications": "Veröffentlichungen",
|
|
@@ -253,6 +254,7 @@
|
|
|
253
254
|
"record.metadata.quality.updateFrequency.success": "Aktualisierungsfrequenz angegeben",
|
|
254
255
|
"record.metadata.related": "Ähnliche Datensätze",
|
|
255
256
|
"record.metadata.sheet": "Weitere Informationen verfügbar unter:",
|
|
257
|
+
"record.metadata.status": "",
|
|
256
258
|
"record.metadata.themes": "Kategorien",
|
|
257
259
|
"record.metadata.title": "Titel",
|
|
258
260
|
"record.metadata.type": "Geographischer Datensatz",
|
|
@@ -290,6 +292,7 @@
|
|
|
290
292
|
"search.filters.isSpatial": "Ist räumliche Daten",
|
|
291
293
|
"search.filters.isSpatial.no": "nicht räumlich",
|
|
292
294
|
"search.filters.isSpatial.yes": "räumlich",
|
|
295
|
+
"search.filters.keyword": "Schlüsselwort",
|
|
293
296
|
"search.filters.license": "Lizenz",
|
|
294
297
|
"search.filters.license.cc-by": "Creative Commons CC-BY",
|
|
295
298
|
"search.filters.license.cc-by-sa": "Creative Commons CC-BY-SA",
|
package/translations/en.json
CHANGED
|
@@ -16,20 +16,21 @@
|
|
|
16
16
|
"chart.type.line": "line chart",
|
|
17
17
|
"chart.type.lineSmooth": "smooth line chart",
|
|
18
18
|
"chart.type.pie": "pie chart",
|
|
19
|
+
"dashboard.createRecord": "New record",
|
|
19
20
|
"dashboard.labels.mySpace": "My space",
|
|
20
|
-
"dashboard.records.all": "
|
|
21
|
+
"dashboard.records.all": "Metadata records",
|
|
21
22
|
"dashboard.records.myDraft": "My drafts",
|
|
22
23
|
"dashboard.records.myLibrary": "My library",
|
|
23
24
|
"dashboard.records.myOrg": "Organization",
|
|
24
25
|
"dashboard.records.myRecords": "My Records",
|
|
25
|
-
"dashboard.records.noRecord": "No record for this organization",
|
|
26
|
-
"dashboard.records.noUser": "No users for this organization",
|
|
27
26
|
"dashboard.records.publishedRecords": "{count, plural, =1{published record} other{published records}}",
|
|
28
27
|
"dashboard.records.search": "Search for \"{searchText}\"",
|
|
29
28
|
"dashboard.records.userDetail": "Name",
|
|
30
29
|
"dashboard.records.userEmail": "Email",
|
|
31
30
|
"dashboard.records.username": "Username",
|
|
32
31
|
"dashboard.records.users": "{count, plural, =1{user} other{users}}",
|
|
32
|
+
"dashboard.results.listMetadata": "Show metadata",
|
|
33
|
+
"dashboard.results.listResources": "Show resources",
|
|
33
34
|
"datafeeder.analysisProgressBar.illustration.fileFormatDetection": "File format \n detection",
|
|
34
35
|
"datafeeder.analysisProgressBar.illustration.gatheringDatasetInformation": "Gathering dataset \n information",
|
|
35
36
|
"datafeeder.analysisProgressBar.illustration.samplingData": "Sampling \n data",
|
|
@@ -177,6 +178,7 @@
|
|
|
177
178
|
"map.add.layer.wfs": "From WFS",
|
|
178
179
|
"map.add.layer.wms": "From WMS",
|
|
179
180
|
"map.addFromFile.placeholder": "Click or drop a file here",
|
|
181
|
+
"map.geocoding.placeholder": "Search for a place",
|
|
180
182
|
"map.help.addFromFile": "Click or drag and drop a file to add to the map (currently supports GeoJSON format only).",
|
|
181
183
|
"map.layer.add": "Add",
|
|
182
184
|
"map.layers.available": "Available Layers",
|
|
@@ -220,16 +222,15 @@
|
|
|
220
222
|
"record.metadata.author": "Author",
|
|
221
223
|
"record.metadata.catalog": "Catalog",
|
|
222
224
|
"record.metadata.contact": "Contact",
|
|
223
|
-
"record.metadata.createdOn": "Created on",
|
|
224
225
|
"record.metadata.details": "Technical information",
|
|
225
226
|
"record.metadata.download": "Downloads",
|
|
226
227
|
"record.metadata.formats": "Formats",
|
|
227
|
-
"record.metadata.isOpenData": "Open Data",
|
|
228
228
|
"record.metadata.keywords": "Keywords",
|
|
229
229
|
"record.metadata.lastUpdate": "Last updated on",
|
|
230
230
|
"record.metadata.links": "Links",
|
|
231
231
|
"record.metadata.noUsage": "No usage conditions specified for this record.",
|
|
232
232
|
"record.metadata.origin": "About the data",
|
|
233
|
+
"record.metadata.otherConstraints": "Additional Conditions",
|
|
233
234
|
"record.metadata.owner": "Catalog of origin",
|
|
234
235
|
"record.metadata.preview": "Preview",
|
|
235
236
|
"record.metadata.publications": "publications",
|
|
@@ -253,14 +254,15 @@
|
|
|
253
254
|
"record.metadata.quality.updateFrequency.success": "Update frequency is specified",
|
|
254
255
|
"record.metadata.related": "Related records",
|
|
255
256
|
"record.metadata.sheet": "Original metadata",
|
|
257
|
+
"record.metadata.status": "Status",
|
|
256
258
|
"record.metadata.themes": "Categories",
|
|
257
259
|
"record.metadata.title": "Title",
|
|
258
260
|
"record.metadata.type": "Geographical dataset",
|
|
259
261
|
"record.metadata.uniqueId": "Unique Identifier",
|
|
260
262
|
"record.metadata.updateFrequency": "Data Update Frequency",
|
|
261
263
|
"record.metadata.updateStatus": "Data Update Status",
|
|
262
|
-
"record.metadata.updatedOn": "
|
|
263
|
-
"record.metadata.usage": "
|
|
264
|
+
"record.metadata.updatedOn": "Last Data Information Update",
|
|
265
|
+
"record.metadata.usage": "License and Conditions",
|
|
264
266
|
"record.more.details": "Read more",
|
|
265
267
|
"record.tab.chart": "Chart",
|
|
266
268
|
"record.tab.data": "Table",
|
|
@@ -290,6 +292,7 @@
|
|
|
290
292
|
"search.filters.isSpatial": "Is spatial data",
|
|
291
293
|
"search.filters.isSpatial.no": "non spatial",
|
|
292
294
|
"search.filters.isSpatial.yes": "spatial",
|
|
295
|
+
"search.filters.keyword": "Keyword",
|
|
293
296
|
"search.filters.license": "License",
|
|
294
297
|
"search.filters.license.cc-by": "Creative Commons CC-BY",
|
|
295
298
|
"search.filters.license.cc-by-sa": "Creative Commons CC-BY-SA",
|