geonetwork-ui 2.2.0-dev.2446b017 → 2.2.0-dev.266c9755
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/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- 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/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +7 -4
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +1 -1
- 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/lib/button/button.component.mjs +2 -2
- package/esm2022/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.mjs +6 -3
- 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/lib/carousel/carousel.component.mjs +2 -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/record-table/record-table.component.mjs +3 -3
- package/esm2022/libs/util/i18n/src/index.mjs +2 -1
- 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 +102 -87
- package/esm2022/translations/en.json +35 -20
- package/esm2022/translations/es.json +15 -0
- package/esm2022/translations/fr.json +19 -4
- package/esm2022/translations/it.json +27 -12
- package/esm2022/translations/nl.json +15 -0
- package/esm2022/translations/pt.json +15 -0
- package/fesm2022/geonetwork-ui.mjs +910 -298
- 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/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/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/lib/favorites/favorite-star/favorite-star.component.d.ts +2 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.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/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/util/i18n/src/index.d.ts +1 -0
- 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/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/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/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 +1 -0
- 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/lib/button/button.component.css +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/lib/carousel/carousel.component.css +1 -1
- package/src/libs/ui/search/src/lib/record-table/record-table.component.html +2 -2
- package/src/libs/util/i18n/src/index.ts +1 -0
- 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 +102 -87
- package/translations/en.json +35 -20
- package/translations/es.json +15 -0
- package/translations/fr.json +19 -4
- package/translations/it.json +27 -12
- package/translations/nl.json +15 -0
- package/translations/pt.json +15 -0
- package/translations/sk.json +15 -0
- 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/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/src/libs/feature/map/src/lib/utils/map-utils-wms.service.ts +0 -58
- /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,4 +1,4 @@
|
|
|
1
|
-
<div class="py-5 px-5 rounded bg-gray-100 text-black mb-6
|
|
1
|
+
<div class="py-5 px-5 rounded bg-gray-100 text-black mb-6">
|
|
2
2
|
<div class="grid gap-3">
|
|
3
3
|
<div>
|
|
4
4
|
<p class="text-sm font-medium" translate>record.metadata.contact</p>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
(click)="onOrganizationClick()"
|
|
21
21
|
data-cy="organization-name"
|
|
22
22
|
>
|
|
23
|
-
{{ shownOrganization
|
|
23
|
+
{{ shownOrganization?.name }}
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
<div *ngIf="shownOrganization?.website">
|
|
@@ -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 {}
|
|
@@ -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 {}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
<div
|
|
40
40
|
class="contents hover:text-gray-900 text-gray-800 cursor-pointer"
|
|
41
|
-
(click)="
|
|
41
|
+
(click)="recordsSelect.emit([record])"
|
|
42
42
|
*ngFor="let record of records"
|
|
43
43
|
>
|
|
44
44
|
<div class="record-table-col text-16">
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
</div>
|
|
158
158
|
<div
|
|
159
159
|
class="contents hover:text-gray-900 text-gray-800 cursor-pointer"
|
|
160
|
-
(click)="
|
|
160
|
+
(click)="recordsSelect.emit([record])"
|
|
161
161
|
*ngFor="let record of records"
|
|
162
162
|
>
|
|
163
163
|
<div class="record-table-col">
|
|
@@ -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 {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
type FuzzyFilter = (input: string) => boolean
|
|
2
|
+
|
|
3
|
+
function normalize(input: string) {
|
|
4
|
+
return input
|
|
5
|
+
.toLowerCase()
|
|
6
|
+
.normalize('NFD') // explode composite chars (e.g. é) into multiple chars
|
|
7
|
+
.replace(/[\u0300-\u036f]/g, '') // remove accents
|
|
8
|
+
.replace(/œ/g, 'oe') // remove accents
|
|
9
|
+
.replace(/[^a-z0-9\s]/g, ' ') // replace special characters with space
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function asNormalizedParts(input: string): string[] {
|
|
13
|
+
return normalize(input)
|
|
14
|
+
.split(/\s+/)
|
|
15
|
+
.map((part) => part.trim())
|
|
16
|
+
.filter((part) => part.length > 0)
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This creates a filter function based on a pattern (typically a user-input
|
|
21
|
+
* search text).
|
|
22
|
+
* @param pattern
|
|
23
|
+
*/
|
|
24
|
+
export function createFuzzyFilter(pattern: string): FuzzyFilter {
|
|
25
|
+
const patternParts = asNormalizedParts(pattern)
|
|
26
|
+
return (input: string) => {
|
|
27
|
+
const inputParts = asNormalizedParts(input)
|
|
28
|
+
return patternParts.every((patternPart) =>
|
|
29
|
+
inputParts.some((part) => part.includes(patternPart))
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
}
|