geonetwork-ui 2.2.0-dev.2446b017 → 2.2.0-dev.27955959
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 +36 -2
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/index.mjs +3 -1
- 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/feature/catalog/src/lib/my-org/my-org.service.mjs +4 -10
- package/esm2022/libs/feature/catalog/src/lib/organisations/organisations.component.mjs +4 -15
- 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/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.mjs +1 -1
- package/esm2022/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.mjs +106 -0
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.mjs +64 -0
- package/esm2022/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.mjs +63 -0
- 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 +26 -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/layers-panel/layers-panel.component.mjs +6 -3
- package/esm2022/libs/feature/map/src/lib/map-context/map-context.service.mjs +3 -1
- 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 +7 -4
- 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 +3 -3
- 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/ui/catalog/src/lib/language-switcher/language-switcher.component.mjs +4 -4
- package/esm2022/libs/ui/catalog/src/lib/organisation-preview/organisation-preview.component.mjs +1 -1
- package/esm2022/libs/ui/elements/src/index.mjs +4 -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 +27 -0
- package/esm2022/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.mjs +17 -0
- 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 +12 -6
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/thumbnail/thumbnail.component.mjs +7 -3
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +15 -3
- 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 +8 -5
- package/esm2022/libs/ui/inputs/src/lib/editable-label/editable-label.directive.mjs +46 -0
- package/esm2022/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +2 -2
- 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/carousel/carousel.component.mjs +2 -2
- 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/record-preview-card/record-preview-card.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-list/record-preview-list.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-title/record-preview-title.component.mjs +1 -1
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +9 -10
- package/esm2022/libs/util/i18n/src/index.mjs +2 -2
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +29 -13
- package/esm2022/libs/util/shared/src/lib/utils/fuzzy-filter.mjs +27 -0
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/translations/de.json +104 -88
- package/esm2022/translations/en.json +40 -24
- package/esm2022/translations/es.json +19 -3
- package/esm2022/translations/fr.json +24 -8
- package/esm2022/translations/it.json +31 -15
- package/esm2022/translations/nl.json +19 -3
- package/esm2022/translations/pt.json +19 -3
- package/fesm2022/geonetwork-ui.mjs +1157 -644
- 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.map +1 -1
- package/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.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/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 +10 -5
- 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/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/catalog/src/lib/organisations/organisations.component.d.ts +0 -1
- package/libs/feature/catalog/src/lib/organisations/organisations.component.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/add-layer-from-file/add-layer-from-file.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.d.ts.map +1 -0
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts +22 -0
- package/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.d.ts.map +1 -0
- 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 +16 -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/map-context/map-context.service.d.ts +1 -0
- package/libs/feature/map/src/lib/map-context/map-context.service.d.ts.map +1 -1
- 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 +5 -4
- 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/ui/dataviz/src/lib/chart/chart.component.d.ts +1 -1
- package/libs/ui/elements/src/index.d.ts +3 -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/image-overlay-preview/image-overlay-preview.component.d.ts +10 -0
- package/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts +8 -0
- package/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts +3 -2
- package/libs/ui/elements/src/lib/thumbnail/thumbnail.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +13 -11
- 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/dropdown-multiselect/dropdown-multiselect.component.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 +1 -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/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts +9 -0
- package/libs/util/shared/src/lib/utils/fuzzy-filter.d.ts.map +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts +1 -0
- package/libs/util/shared/src/lib/utils/index.d.ts.map +1 -1
- package/package.json +4 -1
- 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 +43 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.metadata.mapper.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/index.ts +2 -0
- 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 +12 -7
- 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/user/index.ts +1 -0
- package/src/libs/feature/catalog/src/lib/my-org/my-org.service.ts +4 -16
- package/src/libs/feature/catalog/src/lib/organisations/organisations.component.ts +3 -17
- 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/add-layer-from-file/add-layer-from-file.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +21 -0
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.ts +107 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.html +37 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +64 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.css +0 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.html +55 -0
- package/src/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +63 -0
- package/src/libs/feature/map/src/lib/constant/index.ts +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +14 -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/layers-panel/layers-panel.component.html +9 -3
- package/src/libs/feature/map/src/lib/map-context/map-context.service.ts +6 -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.html +12 -4
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +2 -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/ui/catalog/src/lib/language-switcher/language-switcher.component.html +1 -0
- package/src/libs/ui/catalog/src/lib/language-switcher/language-switcher.component.ts +1 -1
- package/src/libs/ui/elements/src/index.ts +3 -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.css +0 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.html +30 -0
- package/src/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +15 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.css +264 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.html +1 -0
- package/src/libs/ui/elements/src/lib/markdown-parser/markdown-parser.component.ts +16 -0
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +2 -2
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.css +4 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +59 -32
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +5 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +1 -1
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.ts +4 -0
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +7 -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/dropdown-multiselect/dropdown-multiselect.component.ts +7 -4
- package/src/libs/ui/inputs/src/lib/editable-label/editable-label.directive.ts +48 -0
- package/src/libs/ui/inputs/src/lib/navigation-button/navigation-button.component.html +8 -3
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.css +1 -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/carousel/carousel.component.css +1 -1
- 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 +1 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +34 -11
- package/src/libs/util/shared/src/lib/utils/fuzzy-filter.ts +32 -0
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/translations/de.json +104 -88
- package/translations/en.json +40 -24
- package/translations/es.json +19 -3
- package/translations/fr.json +24 -8
- package/translations/it.json +31 -15
- package/translations/nl.json +19 -3
- package/translations/pt.json +19 -3
- package/translations/sk.json +19 -3
- 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
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
<p
|
|
2
|
-
class="text-[28px] text-title text-center mb-6 font-title sm:text-left"
|
|
3
|
-
translate
|
|
4
|
-
>
|
|
5
|
-
record.metadata.about
|
|
6
|
-
</p>
|
|
7
1
|
<div class="mb-6 md-description sm:mb-4 sm:pr-16">
|
|
8
2
|
<gn-ui-content-ghost ghostClass="h-32" [showContent]="fieldReady('abstract')">
|
|
9
3
|
<gn-ui-max-lines [maxLines]="6" *ngIf="metadata.abstract">
|
|
10
4
|
<div>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
gnUiLinkify
|
|
15
|
-
></p>
|
|
16
|
-
<ng-container *ngIf="metadata.keywords?.length">
|
|
17
|
-
<p class="mb-3 font-medium text-primary text-sm" translate>
|
|
18
|
-
record.metadata.keywords
|
|
19
|
-
</p>
|
|
20
|
-
<div class="sm:pb-4 sm:pr-16">
|
|
21
|
-
<gn-ui-badge
|
|
22
|
-
class="inline-block mr-2 mb-2 lowercase"
|
|
23
|
-
(click)="onKeywordClick(keyword)"
|
|
24
|
-
[clickable]="true"
|
|
25
|
-
*ngFor="let keyword of metadata.keywords"
|
|
26
|
-
>{{ keyword }}</gn-ui-badge
|
|
27
|
-
>
|
|
28
|
-
</div>
|
|
29
|
-
</ng-container>
|
|
5
|
+
<gn-ui-markdown-parser
|
|
6
|
+
[textContent]="metadata.abstract"
|
|
7
|
+
></gn-ui-markdown-parser>
|
|
30
8
|
</div>
|
|
31
9
|
</gn-ui-max-lines>
|
|
32
10
|
</gn-ui-content-ghost>
|
|
@@ -97,12 +75,61 @@
|
|
|
97
75
|
*ngIf="metadata.landingPage"
|
|
98
76
|
[title]="'record.metadata.details' | translate"
|
|
99
77
|
>
|
|
100
|
-
<div class="
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
</
|
|
106
|
-
</
|
|
78
|
+
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
79
|
+
<div *ngIf="metadata.recordUpdated">
|
|
80
|
+
<p class="text-sm" translate>record.metadata.updatedOn</p>
|
|
81
|
+
<p class="text-primary font-medium">
|
|
82
|
+
{{ metadata.recordUpdated && metadata.recordUpdated.toLocaleString() }}
|
|
83
|
+
</p>
|
|
84
|
+
</div>
|
|
85
|
+
<div *ngIf="metadata.landingPage">
|
|
86
|
+
<p class="text-sm" translate>record.metadata.sheet</p>
|
|
87
|
+
<p class="text-primary font-medium" translate>
|
|
88
|
+
<a [href]="metadata.landingPage" target="_blank">
|
|
89
|
+
<span class="break-all" gnUiLinkify>{{ metadata.landingPage }}</span>
|
|
90
|
+
</a>
|
|
91
|
+
</p>
|
|
92
|
+
</div>
|
|
93
|
+
<div *ngIf="metadata.ownerOrganization">
|
|
94
|
+
<p class="text-sm" translate>record.metadata.owner</p>
|
|
95
|
+
<p class="text-primary font-medium">
|
|
96
|
+
{{ metadata.ownerOrganization.name }}
|
|
97
|
+
</p>
|
|
98
|
+
</div>
|
|
99
|
+
<div *ngIf="metadata.uniqueIdentifier">
|
|
100
|
+
<p class="text-sm" translate>record.metadata.uniqueId</p>
|
|
101
|
+
<div class="flex flex-row content-align items-end gap-1">
|
|
102
|
+
<gn-ui-copy-text-button
|
|
103
|
+
[text]="metadata.uniqueIdentifier"
|
|
104
|
+
[tooltipText]="'tooltip.id.copy' | translate"
|
|
105
|
+
[displayText]="false"
|
|
106
|
+
></gn-ui-copy-text-button>
|
|
107
|
+
<p class="text-primary font-medium">
|
|
108
|
+
{{ metadata.uniqueIdentifier }}
|
|
109
|
+
</p>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div *ngIf="metadata.themes?.length">
|
|
113
|
+
<p class="text-sm mb-1" translate>record.metadata.themes</p>
|
|
114
|
+
<div class="sm:pb-4 sm:pr-16">
|
|
115
|
+
<gn-ui-badge
|
|
116
|
+
class="inline-block mr-2 lowercase"
|
|
117
|
+
*ngFor="let theme of metadata.themes"
|
|
118
|
+
>{{ theme }}</gn-ui-badge
|
|
119
|
+
>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div *ngIf="metadata.keywords?.length">
|
|
123
|
+
<p class="text-sm mb-1" translate>record.metadata.keywords</p>
|
|
124
|
+
<div class="sm:pb-4 sm:pr-16">
|
|
125
|
+
<gn-ui-badge
|
|
126
|
+
class="inline-block mr-2 mb-2 lowercase"
|
|
127
|
+
(click)="onKeywordClick(keyword)"
|
|
128
|
+
[clickable]="true"
|
|
129
|
+
*ngFor="let keyword of metadata.keywords"
|
|
130
|
+
>{{ keyword }}</gn-ui-badge
|
|
131
|
+
>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
107
134
|
</div>
|
|
108
135
|
</gn-ui-expandable-panel>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div class="h-52 bg-gray-100">
|
|
7
7
|
<gn-ui-thumbnail
|
|
8
8
|
class="h-52 w-full object-cover"
|
|
9
|
-
[thumbnailUrl]="record.overviews?.[0]
|
|
9
|
+
[thumbnailUrl]="record.overviews?.[0]?.url.toString()"
|
|
10
10
|
></gn-ui-thumbnail>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="flex flex-col justify-between h-44 px-5 pt-4 pb-6">
|
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
Optional,
|
|
11
11
|
SimpleChanges,
|
|
12
12
|
ViewChild,
|
|
13
|
+
Output,
|
|
14
|
+
EventEmitter,
|
|
13
15
|
} from '@angular/core'
|
|
14
16
|
|
|
15
17
|
export const THUMBNAIL_PLACEHOLDER = new InjectionToken<string>(
|
|
@@ -36,6 +38,7 @@ export class ThumbnailComponent implements OnInit, OnChanges {
|
|
|
36
38
|
@Input() fit: FitOptions | FitOptions[] = 'cover'
|
|
37
39
|
@ViewChild('imageElement') imgElement: ElementRef<HTMLImageElement>
|
|
38
40
|
@ViewChild('containerElement') containerElement: ElementRef<HTMLDivElement>
|
|
41
|
+
@Output() placeholderShown = new EventEmitter<boolean>()
|
|
39
42
|
imgUrl: string
|
|
40
43
|
imgFit: FitOptions
|
|
41
44
|
placeholderUrl = this.optionalPlaceholderUrl || DEFAULT_PLACEHOLDER
|
|
@@ -85,6 +88,7 @@ export class ThumbnailComponent implements OnInit, OnChanges {
|
|
|
85
88
|
private setNewSrcImage(image: ThumbnailImageObject) {
|
|
86
89
|
this.imgFit = image.fit
|
|
87
90
|
this.imgUrl = image.url
|
|
91
|
+
this.placeholderShown.emit(this.isPlaceholder)
|
|
88
92
|
}
|
|
89
93
|
|
|
90
94
|
private setPlaceholder(): void {
|
|
@@ -29,6 +29,8 @@ import { GnUiLinkifyDirective } from './metadata-info/linkify.directive'
|
|
|
29
29
|
import { PaginationButtonsComponent } from './pagination-buttons/pagination-buttons.component'
|
|
30
30
|
import { MaxLinesComponent } from './max-lines/max-lines.component'
|
|
31
31
|
import { RecordApiFormComponent } from './record-api-form/record-api-form.component'
|
|
32
|
+
import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
|
|
33
|
+
import { ImageOverlayPreviewComponent } from './image-overlay-preview/image-overlay-preview.component'
|
|
32
34
|
|
|
33
35
|
@NgModule({
|
|
34
36
|
imports: [
|
|
@@ -65,6 +67,8 @@ import { RecordApiFormComponent } from './record-api-form/record-api-form.compon
|
|
|
65
67
|
PaginationButtonsComponent,
|
|
66
68
|
MaxLinesComponent,
|
|
67
69
|
RecordApiFormComponent,
|
|
70
|
+
MarkdownParserComponent,
|
|
71
|
+
ImageOverlayPreviewComponent,
|
|
68
72
|
],
|
|
69
73
|
exports: [
|
|
70
74
|
MetadataInfoComponent,
|
|
@@ -84,7 +88,10 @@ import { RecordApiFormComponent } from './record-api-form/record-api-form.compon
|
|
|
84
88
|
AvatarComponent,
|
|
85
89
|
UserPreviewComponent,
|
|
86
90
|
PaginationButtonsComponent,
|
|
91
|
+
MaxLinesComponent,
|
|
87
92
|
RecordApiFormComponent,
|
|
93
|
+
MarkdownParserComponent,
|
|
94
|
+
ImageOverlayPreviewComponent,
|
|
88
95
|
],
|
|
89
96
|
})
|
|
90
97
|
export class UiElementsModule {}
|
|
@@ -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'
|
|
@@ -17,7 +17,10 @@ import {
|
|
|
17
17
|
} from '@angular/cdk/overlay'
|
|
18
18
|
import { take } from 'rxjs/operators'
|
|
19
19
|
import { Choice } from './dropdown-multiselect.model'
|
|
20
|
-
import {
|
|
20
|
+
import {
|
|
21
|
+
createFuzzyFilter,
|
|
22
|
+
propagateToDocumentOnly,
|
|
23
|
+
} from '../../../../../../libs/util/shared/src'
|
|
21
24
|
|
|
22
25
|
@Component({
|
|
23
26
|
selector: 'gn-ui-dropdown-multiselect',
|
|
@@ -74,9 +77,9 @@ export class DropdownMultiselectComponent {
|
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
get filteredChoicesByText() {
|
|
77
|
-
return this.choices
|
|
78
|
-
|
|
79
|
-
)
|
|
80
|
+
if (!this.searchInputValue) return this.choices
|
|
81
|
+
const filter = createFuzzyFilter(this.searchInputValue)
|
|
82
|
+
return this.choices.filter((choice) => filter(choice.label))
|
|
80
83
|
}
|
|
81
84
|
|
|
82
85
|
get focusedIndex(): number | -1 {
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
<button
|
|
2
|
-
class="group flex items-center justify-center backdrop-blur p-1 bg-primary-opacity-
|
|
2
|
+
class="group flex items-center justify-center gap-1 backdrop-blur p-1 bg-primary-opacity-30 text-white rounded content-center"
|
|
3
3
|
>
|
|
4
|
-
<mat-icon class="material-symbols-outlined align-middle">{{
|
|
5
|
-
|
|
4
|
+
<mat-icon class="material-symbols-outlined align-middle w-[18px]">{{
|
|
5
|
+
icon
|
|
6
|
+
}}</mat-icon>
|
|
7
|
+
<span
|
|
8
|
+
class="mx-2 mt-0.5 text-[16px] tracking-widest content-center opacity-75"
|
|
9
|
+
>{{ label.toUpperCase() }}</span
|
|
10
|
+
>
|
|
6
11
|
</button>
|
|
@@ -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,5 +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'
|
|
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 {
|