geonetwork-ui 2.6.0-dev.a6b2f3e85 → 2.6.0-dev.a8e63e487
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/common/distribution.mapper.mjs +3 -1
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.mjs +37 -4
- package/esm2022/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.mjs +1 -1
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.mjs +8 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.mjs +5 -2
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/read-parts.mjs +4 -4
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +2 -2
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/constant.mjs +2 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +3 -3
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +41 -9
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +32 -2
- package/esm2022/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.mjs +266 -11
- package/esm2022/libs/feature/record/src/index.mjs +2 -3
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +31 -5
- package/esm2022/libs/feature/record/src/lib/state/mdview.actions.mjs +3 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.effects.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.facade.mjs +13 -13
- package/esm2022/libs/feature/record/src/lib/state/mdview.reducer.mjs +7 -1
- package/esm2022/libs/feature/record/src/lib/state/mdview.selectors.mjs +3 -1
- package/esm2022/libs/feature/search/src/lib/constants.mjs +2 -1
- package/esm2022/libs/feature/search/src/lib/results-list/results-list.container.component.mjs +6 -2
- package/esm2022/libs/ui/elements/src/index.mjs +3 -1
- package/esm2022/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.mjs +55 -0
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +27 -53
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +22 -5
- 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 +3 -3
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
- package/esm2022/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.mjs +51 -0
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +17 -7
- package/esm2022/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.mjs +12 -4
- package/esm2022/libs/ui/elements/src/lib/ui-elements.module.mjs +10 -4
- 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/search-feature-catalog/search-feature-catalog.component.mjs +68 -0
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.mjs +34 -13
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/truncated-text/truncated-text.component.mjs +65 -14
- package/esm2022/libs/ui/search/src/index.mjs +2 -1
- package/esm2022/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.mjs +4 -8
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-list/results-layout.config.mjs +2 -2
- package/esm2022/libs/ui/search/src/lib/results-list/results-list.component.mjs +3 -3
- package/esm2022/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.mjs +19 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +27 -14
- package/esm2022/libs/ui/search/src/lib/ui-search.module.mjs +10 -4
- package/esm2022/libs/util/i18n/src/lib/i18n.constants.mjs +42 -1
- package/esm2022/libs/util/i18n/src/lib/language-codes.mjs +24 -2
- package/esm2022/libs/util/shared/src/lib/links/link-classifier.service.mjs +4 -1
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +4 -1
- package/esm2022/translations/de.json +34 -5
- package/esm2022/translations/en.json +34 -7
- package/esm2022/translations/es.json +33 -4
- package/esm2022/translations/fr.json +34 -7
- package/esm2022/translations/it.json +64 -35
- package/esm2022/translations/nl.json +33 -4
- package/esm2022/translations/pt.json +33 -4
- package/fesm2022/geonetwork-ui.mjs +1580 -665
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/metadata-converter/src/lib/common/distribution.mapper.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/types/metadata.model.d.ts +0 -1
- package/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts +1 -0
- package/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/read-parts.d.ts.map +1 -1
- package/libs/api/metadata-converter/src/lib/iso19139/write-parts.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/constant.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts +1 -1
- package/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts +7 -2
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +2 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +3 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts +1 -0
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts +48 -3
- package/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.d.ts.map +1 -1
- package/libs/feature/record/src/index.d.ts +1 -2
- package/libs/feature/record/src/index.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts +10 -0
- package/libs/feature/record/src/lib/state/mdview.actions.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts +6 -0
- package/libs/feature/record/src/lib/state/mdview.effects.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts +28 -21
- package/libs/feature/record/src/lib/state/mdview.facade.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.reducer.d.ts.map +1 -1
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts +2 -0
- package/libs/feature/record/src/lib/state/mdview.selectors.d.ts.map +1 -1
- package/libs/feature/search/src/lib/constants.d.ts.map +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts +1 -1
- package/libs/feature/search/src/lib/results-list/results-list.container.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +2 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts +15 -0
- package/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts +3 -7
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts +3 -1
- package/libs/ui/elements/src/lib/kind-badge/kind-badge.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts +16 -0
- package/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +8 -1
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts +1 -0
- package/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/ui-elements.module.d.ts +2 -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/search-feature-catalog/search-feature-catalog.component.d.ts +17 -0
- package/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.d.ts.map +1 -0
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts +15 -8
- package/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.d.ts.map +1 -1
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts +15 -6
- package/libs/ui/layout/src/lib/truncated-text/truncated-text.component.d.ts.map +1 -1
- package/libs/ui/search/src/index.d.ts +1 -0
- package/libs/ui/search/src/index.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-list/results-list.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts +3 -3
- package/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +5 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts +2 -1
- package/libs/ui/search/src/lib/ui-search.module.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/i18n.constants.d.ts +1 -0
- package/libs/util/i18n/src/lib/i18n.constants.d.ts.map +1 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts +23 -1
- package/libs/util/i18n/src/lib/language-codes.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-classifier.service.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/common/distribution.mapper.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -1
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +55 -4
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +0 -1
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +13 -3
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +5 -1
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +8 -4
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +4 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +1 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +2 -2
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +65 -7
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +8 -1
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +3 -0
- package/src/libs/common/fixtures/src/lib/elasticsearch/metadata-links.fixtures.ts +10 -0
- package/src/libs/common/fixtures/src/lib/link.fixtures.ts +14 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +37 -0
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.html +117 -11
- package/src/libs/feature/editor/src/lib/components/multilingual-panel/multilingual-panel.component.ts +316 -6
- package/src/libs/feature/record/src/index.ts +1 -2
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +35 -4
- package/src/libs/feature/record/src/lib/state/mdview.actions.ts +10 -0
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +22 -0
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +22 -15
- package/src/libs/feature/record/src/lib/state/mdview.reducer.ts +12 -0
- package/src/libs/feature/record/src/lib/state/mdview.selectors.ts +9 -0
- package/src/libs/feature/search/src/lib/constants.ts +1 -0
- package/src/libs/feature/search/src/lib/results-list/results-list.container.component.ts +2 -0
- package/src/libs/ui/elements/src/index.ts +2 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.css +4 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.html +13 -0
- package/src/libs/ui/elements/src/lib/geo-data-badge/geo-data-badge.component.ts +54 -0
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +133 -138
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +19 -47
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +7 -5
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.ts +21 -2
- package/src/libs/ui/elements/src/lib/metadata-contact/metadata-contact.component.html +6 -3
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +4 -0
- package/src/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.html +1 -1
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +48 -0
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +52 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +8 -29
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +14 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html +15 -1
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +9 -1
- package/src/libs/ui/elements/src/lib/ui-elements.module.ts +3 -1
- 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/search-feature-catalog/search-feature-catalog.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.html +43 -0
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +77 -0
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +1 -2
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.html +24 -8
- package/src/libs/ui/layout/src/lib/expandable-panel/expandable-panel.component.ts +36 -10
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +1 -0
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.html +8 -10
- package/src/libs/ui/layout/src/lib/truncated-text/truncated-text.component.ts +75 -7
- package/src/libs/ui/search/src/index.ts +1 -0
- package/src/libs/ui/search/src/lib/record-preview-row/record-preview-row.component.html +9 -81
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -0
- package/src/libs/ui/search/src/lib/results-list/results-layout.config.ts +2 -2
- package/src/libs/ui/search/src/lib/results-list/results-list.component.html +1 -0
- package/src/libs/ui/search/src/lib/results-list/results-list.component.ts +0 -1
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.html +11 -3
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +14 -11
- package/src/libs/ui/search/src/lib/results-table/results-table.component.css +4 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +27 -17
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +20 -10
- package/src/libs/ui/search/src/lib/ui-search.module.ts +3 -0
- package/src/libs/util/i18n/src/lib/i18n.constants.ts +42 -0
- package/src/libs/util/i18n/src/lib/language-codes.ts +23 -1
- package/src/libs/util/shared/src/lib/links/link-classifier.service.ts +3 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +3 -0
- package/tailwind.base.css +1 -1
- package/translations/de.json +34 -5
- package/translations/en.json +34 -7
- package/translations/es.json +33 -4
- package/translations/fr.json +34 -7
- package/translations/it.json +64 -35
- package/translations/nl.json +33 -4
- package/translations/pt.json +33 -4
- package/translations/sk.json +33 -4
|
@@ -1,156 +1,151 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
<a [attr.href]="linkHref" [target]="linkTarget">
|
|
2
|
+
<div
|
|
3
|
+
class="group rounded-md bg-white hover:cursor-pointer hover:bg-slate-50 overflow-hidden w-full"
|
|
4
|
+
[ngClass]="cardClass"
|
|
5
|
+
>
|
|
6
6
|
<div
|
|
7
|
-
|
|
8
|
-
[ngClass]="
|
|
9
|
-
class="mr-4 flex flex-col"
|
|
7
|
+
class="flex flex-row md:gap-0 justify-between w-full"
|
|
8
|
+
[ngClass]="{ 'flex-wrap md:flex-nowrap gap-3': size === 'L' }"
|
|
10
9
|
>
|
|
11
|
-
<gn-ui-thumbnail
|
|
12
|
-
class="w-full h-full object-cover"
|
|
13
|
-
[thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
|
|
14
|
-
[fit]="'cover'"
|
|
15
|
-
></gn-ui-thumbnail>
|
|
16
|
-
</div>
|
|
17
|
-
<div
|
|
18
|
-
class="flex flex-col flex-1 relative"
|
|
19
|
-
[ngClass]="{
|
|
20
|
-
'justify-between': record.ownerOrganization?.name && size !== 'XS',
|
|
21
|
-
}"
|
|
22
|
-
>
|
|
23
|
-
<div class="flex items-center space-x-2">
|
|
24
|
-
<span
|
|
25
|
-
*ngIf="getKindInfo().text"
|
|
26
|
-
class="badge-btn text-white text-xs px-2 py-0.5 font-bold shrink-0 bg-primary leading-tight flex items-center justify-evenly h-6 min-h-6"
|
|
27
|
-
>
|
|
28
|
-
<ng-icon
|
|
29
|
-
class="text-[0.9em] text-white mr-1"
|
|
30
|
-
[name]="getKindInfo().icon"
|
|
31
|
-
></ng-icon>
|
|
32
|
-
<span class="font-medium text-white text-xs" translate>
|
|
33
|
-
{{ getKindInfo().text }}
|
|
34
|
-
</span>
|
|
35
|
-
</span>
|
|
36
|
-
<span
|
|
37
|
-
*ngIf="isGeodata"
|
|
38
|
-
class="badge-btn text-black text-xs px-2 py-0.5 font-bold shrink-0 bg-primary-white leading-tight flex items-center justify-evenly h-6 min-h-6"
|
|
39
|
-
[ngClass]="size === 'L' ? 'w-[164px]' : 'w-8'"
|
|
40
|
-
>
|
|
41
|
-
<ng-icon
|
|
42
|
-
class="text-[0.9em] text-primary-darkest"
|
|
43
|
-
name="matLocationSearchingOutline"
|
|
44
|
-
></ng-icon>
|
|
45
|
-
<ng-container *ngIf="size === 'L'">
|
|
46
|
-
<span
|
|
47
|
-
class="font-medium text-primary-darkest text-xs ml-1"
|
|
48
|
-
translate
|
|
49
|
-
>
|
|
50
|
-
record.metadata.type
|
|
51
|
-
</span>
|
|
52
|
-
</ng-container>
|
|
53
|
-
</span>
|
|
54
|
-
<div class="flex items-center">
|
|
55
|
-
<gn-ui-metadata-quality
|
|
56
|
-
[smaller]="true"
|
|
57
|
-
[metadata]="record"
|
|
58
|
-
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
59
|
-
></gn-ui-metadata-quality>
|
|
60
|
-
</div>
|
|
61
|
-
<div class="absolute top-0 right-0 items-center">
|
|
62
|
-
<ng-container
|
|
63
|
-
*ngIf="size !== 'XS'"
|
|
64
|
-
[ngTemplateOutlet]="favoriteTemplate"
|
|
65
|
-
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
66
|
-
></ng-container>
|
|
67
|
-
</div>
|
|
68
|
-
</div>
|
|
69
10
|
<div
|
|
70
|
-
|
|
71
|
-
[ngClass]="
|
|
11
|
+
*ngIf="shouldShowThumbnail"
|
|
12
|
+
[ngClass]="thumbnailContainerClass"
|
|
13
|
+
class="border mr-4 flex flex-col"
|
|
72
14
|
>
|
|
73
|
-
|
|
15
|
+
<gn-ui-thumbnail
|
|
16
|
+
class="w-full h-full object-cover"
|
|
17
|
+
[thumbnailUrl]="record.overviews?.[0]?.url?.toString() || ''"
|
|
18
|
+
[fit]="'cover'"
|
|
19
|
+
></gn-ui-thumbnail>
|
|
74
20
|
</div>
|
|
75
|
-
<div
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
[thumbnailUrl]="
|
|
94
|
-
record.ownerOrganization?.logoUrl?.toString() || ''
|
|
95
|
-
"
|
|
96
|
-
[fit]="'contain'"
|
|
97
|
-
class="w-full h-full rounded-lg"
|
|
98
|
-
></gn-ui-thumbnail>
|
|
21
|
+
<div class="grow flex flex-col gap-3">
|
|
22
|
+
<div class="flex items-center gap-2">
|
|
23
|
+
<div class="grow flex flex-wrap items-center gap-2">
|
|
24
|
+
<gn-ui-kind-badge
|
|
25
|
+
[styling]="'default'"
|
|
26
|
+
[kind]="record?.kind"
|
|
27
|
+
></gn-ui-kind-badge>
|
|
28
|
+
<gn-ui-geo-data-badge
|
|
29
|
+
[showLabel]="size === 'L'"
|
|
30
|
+
[styling]="'light'"
|
|
31
|
+
[record]="record"
|
|
32
|
+
></gn-ui-geo-data-badge>
|
|
33
|
+
<gn-ui-metadata-quality
|
|
34
|
+
class="flex items-center"
|
|
35
|
+
[smaller]="true"
|
|
36
|
+
[metadata]="record"
|
|
37
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
38
|
+
></gn-ui-metadata-quality>
|
|
99
39
|
</div>
|
|
100
|
-
<div *ngIf="
|
|
101
|
-
<
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
>
|
|
105
|
-
record.card.metadata.contact
|
|
106
|
-
</div>
|
|
107
|
-
<div class="text-xl text-primary-black font-medium truncate">
|
|
108
|
-
{{ organization.name }}
|
|
109
|
-
</div>
|
|
40
|
+
<div *ngIf="size !== 'XS'" data-cy="recordFav">
|
|
41
|
+
<ng-container
|
|
42
|
+
[ngTemplateOutlet]="favoriteTemplate"
|
|
43
|
+
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
44
|
+
></ng-container>
|
|
110
45
|
</div>
|
|
111
46
|
</div>
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
47
|
+
|
|
48
|
+
<div class="grow flex flex-col gap-2">
|
|
49
|
+
<div
|
|
50
|
+
class="font-medium text-title group-hover:text-primary"
|
|
51
|
+
[title]="record.title"
|
|
52
|
+
>
|
|
53
|
+
<h4
|
|
54
|
+
class="mr-6 overflow-hidden"
|
|
55
|
+
[ngClass]="getTitleClass()"
|
|
56
|
+
data-cy="recordTitle"
|
|
57
|
+
[title]="record.title"
|
|
118
58
|
>
|
|
119
|
-
|
|
120
|
-
</
|
|
59
|
+
{{ record.title }}
|
|
60
|
+
</h4>
|
|
121
61
|
</div>
|
|
122
|
-
<div
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
62
|
+
<div
|
|
63
|
+
*ngIf="size === 'L'"
|
|
64
|
+
class="mr-6 text-xs text-gray-900 line-clamp-2 overflow-hidden"
|
|
65
|
+
data-cy="recordAbstract"
|
|
66
|
+
>
|
|
67
|
+
<gn-ui-markdown-parser
|
|
68
|
+
[textContent]="abstract"
|
|
69
|
+
[whitoutStyles]="true"
|
|
70
|
+
></gn-ui-markdown-parser>
|
|
131
71
|
</div>
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div
|
|
75
|
+
data-cy="recordOrg"
|
|
76
|
+
*ngIf="size !== 'XS' && record.ownerOrganization?.name"
|
|
77
|
+
class="flex items-center justify-evenly bg-gray-50 rounded-lg h-[53px] px-2"
|
|
78
|
+
>
|
|
79
|
+
<div class="flex items-center flex-1 min-w-0">
|
|
80
|
+
<div
|
|
81
|
+
class="w-[45px] h-[45px] rounded-lg overflow-hidden shrink-0 mr-3"
|
|
138
82
|
>
|
|
139
|
-
<
|
|
140
|
-
|
|
83
|
+
<gn-ui-thumbnail
|
|
84
|
+
[thumbnailUrl]="
|
|
85
|
+
record.ownerOrganization?.logoUrl?.toString() || ''
|
|
86
|
+
"
|
|
87
|
+
[fit]="'contain'"
|
|
88
|
+
class="w-full h-full rounded-lg"
|
|
89
|
+
></gn-ui-thumbnail>
|
|
90
|
+
</div>
|
|
91
|
+
<div *ngIf="organization?.name" class="flex-1 w-0 overflow-hidden">
|
|
92
|
+
<div
|
|
93
|
+
class="text-xs text-black font-normal leading-tight truncate"
|
|
94
|
+
translate
|
|
95
|
+
>
|
|
96
|
+
record.card.metadata.contact
|
|
97
|
+
</div>
|
|
98
|
+
<div
|
|
99
|
+
data-cy="recordOrgName"
|
|
100
|
+
class="text-xl text-primary-black font-medium truncate"
|
|
101
|
+
>
|
|
102
|
+
{{ organization.name }}
|
|
103
|
+
</div>
|
|
104
|
+
</div>
|
|
141
105
|
</div>
|
|
142
|
-
<div *ngIf="
|
|
143
|
-
<
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
106
|
+
<div *ngIf="size === 'L'" class="ml-2 flex space-x-2">
|
|
107
|
+
<div *ngIf="organization?.website" class="flex">
|
|
108
|
+
<button
|
|
109
|
+
[title]="organization.website"
|
|
110
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
|
|
111
|
+
(click)="openExternalUrl($event, organization.website)"
|
|
112
|
+
>
|
|
113
|
+
<ng-icon name="iconoirInternet"></ng-icon>
|
|
114
|
+
</button>
|
|
115
|
+
</div>
|
|
116
|
+
<div *ngIf="contacts[0]?.email" class="flex">
|
|
117
|
+
<button
|
|
118
|
+
[title]="contacts[0].email"
|
|
119
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest"
|
|
120
|
+
data-cy="contact-email"
|
|
121
|
+
(click)="openMailto($event, contacts[0].email)"
|
|
122
|
+
>
|
|
123
|
+
<ng-icon name="matEmailOutline"></ng-icon>
|
|
124
|
+
</button>
|
|
125
|
+
</div>
|
|
126
|
+
<div *ngIf="contacts[0]?.phone" class="flex">
|
|
127
|
+
<button
|
|
128
|
+
[title]="'Copy to clipboard'"
|
|
129
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
|
|
130
|
+
data-cy="contact-phone"
|
|
131
|
+
(click)="copyToClipboard($event, contacts[0].phone)"
|
|
132
|
+
>
|
|
133
|
+
<ng-icon name="matPhoneOutline"></ng-icon>
|
|
134
|
+
</button>
|
|
135
|
+
</div>
|
|
136
|
+
<div *ngIf="contacts[0]?.address" class="flex">
|
|
137
|
+
<button
|
|
138
|
+
[title]="'Copy to clipboard'"
|
|
139
|
+
class="w-[40px] h-[32px] flex items-center justify-center rounded-lg border border-[#D4D3D7] px-[8px] py-[4px] hover:bg-primary-lightest relative group"
|
|
140
|
+
data-cy="contact-phone"
|
|
141
|
+
(click)="copyToClipboard($event, contacts[0].address)"
|
|
142
|
+
>
|
|
143
|
+
<ng-icon name="matLocationOnOutline"></ng-icon>
|
|
144
|
+
</button>
|
|
145
|
+
</div>
|
|
151
146
|
</div>
|
|
152
147
|
</div>
|
|
153
148
|
</div>
|
|
154
149
|
</div>
|
|
155
150
|
</div>
|
|
156
|
-
</
|
|
151
|
+
</a>
|
|
@@ -12,6 +12,8 @@ import {
|
|
|
12
12
|
Organization,
|
|
13
13
|
} from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
14
14
|
import { NgClass, NgIf, NgTemplateOutlet } from '@angular/common'
|
|
15
|
+
import { GeoDataBadgeComponent } from '../geo-data-badge/geo-data-badge.component'
|
|
16
|
+
import { KindBadgeComponent } from '../kind-badge/kind-badge.component'
|
|
15
17
|
import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component'
|
|
16
18
|
import { MetadataQualityComponent } from '../metadata-quality/metadata-quality.component'
|
|
17
19
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
@@ -31,16 +33,10 @@ import {
|
|
|
31
33
|
matPhoneOutline,
|
|
32
34
|
matLocationOnOutline,
|
|
33
35
|
} from '@ng-icons/material-icons/outline'
|
|
34
|
-
import {
|
|
35
|
-
import { iconoirDatabase, iconoirMap, iconoirInternet } from '@ng-icons/iconoir'
|
|
36
|
+
import { iconoirInternet } from '@ng-icons/iconoir'
|
|
36
37
|
import { TranslateModule } from '@ngx-translate/core'
|
|
37
|
-
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
38
38
|
import { fromEvent, Subscription } from 'rxjs'
|
|
39
39
|
|
|
40
|
-
marker('record.kind.data')
|
|
41
|
-
marker('record.kind.reuse')
|
|
42
|
-
marker('record.kind.service')
|
|
43
|
-
|
|
44
40
|
type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
45
41
|
|
|
46
42
|
@Component({
|
|
@@ -54,15 +50,14 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
54
50
|
NgTemplateOutlet,
|
|
55
51
|
NgIconComponent,
|
|
56
52
|
TranslateModule,
|
|
53
|
+
GeoDataBadgeComponent,
|
|
54
|
+
KindBadgeComponent,
|
|
57
55
|
MarkdownParserComponent,
|
|
58
56
|
],
|
|
59
57
|
providers: [
|
|
60
58
|
provideIcons({
|
|
61
|
-
matLocationSearchingOutline,
|
|
62
|
-
matCode,
|
|
63
|
-
iconoirDatabase,
|
|
64
|
-
iconoirMap,
|
|
65
59
|
iconoirInternet,
|
|
60
|
+
matLocationSearchingOutline,
|
|
66
61
|
matEmailOutline,
|
|
67
62
|
matPhoneOutline,
|
|
68
63
|
matLocationOnOutline,
|
|
@@ -76,10 +71,10 @@ type CardSize = 'L' | 'M' | 'S' | 'XS'
|
|
|
76
71
|
})
|
|
77
72
|
export class InternalLinkCardComponent implements OnInit {
|
|
78
73
|
@Input() record: CatalogRecord
|
|
74
|
+
@Input() linkTarget = '_blank'
|
|
75
|
+
@Input() linkHref: string = null
|
|
79
76
|
@Input() metadataQualityDisplay: boolean
|
|
80
77
|
@Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
|
|
81
|
-
@Input() linkHref: string = null
|
|
82
|
-
@Input() isGeodata: boolean
|
|
83
78
|
@Input() set size(value: CardSize) {
|
|
84
79
|
this._size = value
|
|
85
80
|
this.cardClass = this.sizeClassMap[value] || ''
|
|
@@ -99,24 +94,24 @@ export class InternalLinkCardComponent implements OnInit {
|
|
|
99
94
|
private _size: CardSize = 'M'
|
|
100
95
|
|
|
101
96
|
private readonly sizeClassMap: Record<CardSize, string> = {
|
|
102
|
-
L: 'min-h-[190px]
|
|
103
|
-
M: 'min-h-[140px]
|
|
104
|
-
S: 'min-h-[220px]
|
|
105
|
-
XS: 'min-h-[108px]
|
|
97
|
+
L: 'min-h-[190px] w-full py-3 px-3 flex items-start gap-5',
|
|
98
|
+
M: 'min-h-[140px] py-3 px-3 flex items-start gap-4',
|
|
99
|
+
S: 'min-h-[220px] py-3 px-3 flex gap-4',
|
|
100
|
+
XS: 'min-h-[108px] py-3 px-3 flex gap-4',
|
|
106
101
|
}
|
|
107
102
|
|
|
108
103
|
private readonly thumbnailSizeClassMap: Record<CardSize, string> = {
|
|
109
|
-
L: 'w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
|
|
104
|
+
L: 'w-full md:w-[190px] h-[180px] rounded-lg overflow-hidden shrink-0',
|
|
110
105
|
M: 'w-[110px] h-[140px] rounded-lg overflow-hidden shrink-0',
|
|
111
106
|
S: 'hidden',
|
|
112
107
|
XS: 'hidden',
|
|
113
108
|
}
|
|
114
109
|
|
|
115
110
|
private readonly titleClassMap: Record<CardSize, string> = {
|
|
116
|
-
L: 'text-xl line-clamp-
|
|
111
|
+
L: 'text-xl line-clamp-1',
|
|
117
112
|
M: 'text-base line-clamp-2',
|
|
118
|
-
S: 'text-base line-clamp-3',
|
|
119
|
-
XS: 'text-base
|
|
113
|
+
S: 'text-base line-clamp-3 ml-2',
|
|
114
|
+
XS: 'text-base line-clamp-1 ml-2',
|
|
120
115
|
}
|
|
121
116
|
|
|
122
117
|
constructor(protected elementRef: ElementRef) {}
|
|
@@ -124,12 +119,8 @@ export class InternalLinkCardComponent implements OnInit {
|
|
|
124
119
|
ngOnInit(): void {
|
|
125
120
|
this.abstract = removeWhitespace(stripHtml(this.record?.abstract))
|
|
126
121
|
this.subscription.add(
|
|
127
|
-
fromEvent(this.elementRef.nativeElement, 'click').subscribe(
|
|
128
|
-
(
|
|
129
|
-
event.preventDefault()
|
|
130
|
-
propagateToDocumentOnly(event)
|
|
131
|
-
this.mdSelect.emit(this.record)
|
|
132
|
-
}
|
|
122
|
+
fromEvent(this.elementRef.nativeElement, 'click').subscribe(() =>
|
|
123
|
+
this.mdSelect.emit(this.record)
|
|
133
124
|
)
|
|
134
125
|
)
|
|
135
126
|
}
|
|
@@ -147,11 +138,7 @@ export class InternalLinkCardComponent implements OnInit {
|
|
|
147
138
|
}
|
|
148
139
|
|
|
149
140
|
getTitleClass() {
|
|
150
|
-
return
|
|
151
|
-
this.titleClassMap[this._size] +
|
|
152
|
-
' ' +
|
|
153
|
-
(this.record.ownerOrganization?.name ? '' : 'mt-3') || ''
|
|
154
|
-
)
|
|
141
|
+
return this.titleClassMap[this._size]
|
|
155
142
|
}
|
|
156
143
|
|
|
157
144
|
openExternalUrl(event: Event, url: URL): void {
|
|
@@ -172,19 +159,4 @@ export class InternalLinkCardComponent implements OnInit {
|
|
|
172
159
|
get shouldShowThumbnail(): boolean {
|
|
173
160
|
return this.size === 'L' || this.size === 'M'
|
|
174
161
|
}
|
|
175
|
-
|
|
176
|
-
getKindInfo(): { text: string; icon: string } {
|
|
177
|
-
if (!this.record?.kind) return { text: '', icon: '' }
|
|
178
|
-
|
|
179
|
-
switch (this.record.kind.toLowerCase()) {
|
|
180
|
-
case 'dataset':
|
|
181
|
-
return { text: 'record.kind.data', icon: 'iconoirDatabase' }
|
|
182
|
-
case 'reuse':
|
|
183
|
-
return { text: 'record.kind.reuse', icon: 'iconoirMap' }
|
|
184
|
-
case 'service':
|
|
185
|
-
return { text: 'record.kind.service', icon: 'matCode' }
|
|
186
|
-
default:
|
|
187
|
-
return { text: '', icon: '' }
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
162
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
<
|
|
1
|
+
<div [class]="badgeClasses" *ngIf="kind">
|
|
2
|
+
<ng-icon [name]="iconKind" class="mr-1 text-[0.85em]"></ng-icon>
|
|
2
3
|
|
|
3
|
-
<ng-container *ngIf="contentTemplate; else defaultContent">
|
|
4
|
-
|
|
5
|
-
</ng-container>
|
|
4
|
+
<ng-container *ngIf="contentTemplate; else defaultContent">
|
|
5
|
+
<ng-container *ngTemplateOutlet="contentTemplate"></ng-container>
|
|
6
|
+
</ng-container>
|
|
7
|
+
</div>
|
|
6
8
|
|
|
7
9
|
<ng-template #defaultContent>
|
|
8
|
-
{{ kind | translate }}
|
|
10
|
+
{{ 'record.kind.' + kind | translate }}
|
|
9
11
|
</ng-template>
|
|
@@ -13,8 +13,12 @@ import {
|
|
|
13
13
|
iconoirCreditCard,
|
|
14
14
|
} from '@ng-icons/iconoir'
|
|
15
15
|
import { NgIconsModule } from '@ng-icons/core'
|
|
16
|
-
import { BadgeComponent } from '../../../../../../libs/ui/inputs/src'
|
|
17
16
|
import { TranslateModule } from '@ngx-translate/core'
|
|
17
|
+
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
18
|
+
|
|
19
|
+
marker('record.kind.dataset')
|
|
20
|
+
marker('record.kind.reuse')
|
|
21
|
+
marker('record.kind.service')
|
|
18
22
|
|
|
19
23
|
enum KindConfig {
|
|
20
24
|
all = 'iconoirAppleWallet', // (this one is for filter)
|
|
@@ -37,9 +41,10 @@ enum KindConfig {
|
|
|
37
41
|
],
|
|
38
42
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
43
|
standalone: true,
|
|
40
|
-
imports: [NgIconsModule, CommonModule,
|
|
44
|
+
imports: [NgIconsModule, CommonModule, TranslateModule],
|
|
41
45
|
})
|
|
42
46
|
export class KindBadgeComponent {
|
|
47
|
+
@Input() styling = 'default'
|
|
43
48
|
@Input() contentTemplate: TemplateRef<unknown>
|
|
44
49
|
@Input() kind: string
|
|
45
50
|
|
|
@@ -48,4 +53,18 @@ export class KindBadgeComponent {
|
|
|
48
53
|
get iconKind() {
|
|
49
54
|
return KindConfig[this.kind] || KindConfig.dataset
|
|
50
55
|
}
|
|
56
|
+
|
|
57
|
+
get badgeClasses(): string {
|
|
58
|
+
const baseClasses =
|
|
59
|
+
'badge-btn text-white text-xs px-2 font-bold shrink-0 flex items-center h-6 min-h-6'
|
|
60
|
+
|
|
61
|
+
switch (this.styling) {
|
|
62
|
+
case 'outline':
|
|
63
|
+
return `${baseClasses} bg-transparent border border-white py-1.5`
|
|
64
|
+
case 'default':
|
|
65
|
+
return `${baseClasses} bg-primary py-0.5`
|
|
66
|
+
default:
|
|
67
|
+
return 'flex items-center'
|
|
68
|
+
}
|
|
69
|
+
}
|
|
51
70
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
<div
|
|
2
|
-
|
|
1
|
+
<div
|
|
2
|
+
class="py-5 px-5 rounded bg-gray-100 text-black"
|
|
3
|
+
data-cy="metadata-organization"
|
|
4
|
+
>
|
|
5
|
+
<div class="grid gap-3 overflow-hidden">
|
|
3
6
|
<div>
|
|
4
7
|
<p class="text-base font-medium" translate>record.metadata.contact</p>
|
|
5
8
|
</div>
|
|
@@ -18,7 +21,7 @@
|
|
|
18
21
|
<div
|
|
19
22
|
class="font-title text-21 mr-2 cursor-pointer hover:underline"
|
|
20
23
|
(click)="onOrganizationClick()"
|
|
21
|
-
data-cy="organization-name"
|
|
24
|
+
data-cy="organization-name-link"
|
|
22
25
|
>
|
|
23
26
|
{{ shownOrganization?.name }}
|
|
24
27
|
</div>
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
metadata.otherConstraints
|
|
47
47
|
"
|
|
48
48
|
[title]="'record.metadata.usage' | translate"
|
|
49
|
+
data-test="usage-panel"
|
|
49
50
|
>
|
|
50
51
|
<div class="flex flex-col gap-[10px] mr-4 py-[12px] rounded text-gray-900">
|
|
51
52
|
<ng-container *ngFor="let license of licenses">
|
|
@@ -105,6 +106,7 @@
|
|
|
105
106
|
(metadata.kind === 'dataset' && metadata.status)
|
|
106
107
|
"
|
|
107
108
|
[title]="'record.metadata.details' | translate"
|
|
109
|
+
data-test="details-panel"
|
|
108
110
|
>
|
|
109
111
|
<div *ngIf="metadata.lineage" class="text-gray-900 flex flex-col mt-4 gap-2">
|
|
110
112
|
<p class="whitespace-pre-line break-words text-gray-900" gnUiLinkify>
|
|
@@ -231,6 +233,7 @@
|
|
|
231
233
|
<gn-ui-expandable-panel
|
|
232
234
|
*ngIf="metadata.kind !== 'dataset' && metadata.spatialExtents"
|
|
233
235
|
[title]="'service.metadata.spatialExtent' | translate"
|
|
236
|
+
data-test="spatial-extent-panel"
|
|
234
237
|
>
|
|
235
238
|
<gn-ui-spatial-extent
|
|
236
239
|
class="flex h-[271px] w-full rounded-lg border border-gray-100 mt-3 mb-6"
|
|
@@ -240,6 +243,7 @@
|
|
|
240
243
|
<gn-ui-expandable-panel
|
|
241
244
|
*ngIf="metadata.landingPage"
|
|
242
245
|
[title]="'service.metadata.other' | translate"
|
|
246
|
+
data-test="other-panel"
|
|
243
247
|
>
|
|
244
248
|
<div class="flex flex-col gap-4 mr-4 py-5 rounded text-gray-700">
|
|
245
249
|
<div *ngIf="metadata.recordUpdated">
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<div class="flex flex-col gap-2 py-5 px-5 h-[562px] overflow-y-auto">
|
|
2
|
+
<div
|
|
3
|
+
*ngFor="let featureType of filteredFeatureCatalog?.featureTypes"
|
|
4
|
+
class="rounded shadow bg-white"
|
|
5
|
+
>
|
|
6
|
+
<gn-ui-expandable-panel
|
|
7
|
+
[collapsed]="filteredFeatureCatalog?.featureTypes?.length !== 1"
|
|
8
|
+
iconColor="black"
|
|
9
|
+
>
|
|
10
|
+
<ng-template #titleTemplate>
|
|
11
|
+
<div class="px-2">
|
|
12
|
+
<div class="text-lg font-bold">{{ featureType.name }}</div>
|
|
13
|
+
<div class="text-sm" *ngIf="featureType.definition">
|
|
14
|
+
{{ featureType.definition }}
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
</ng-template>
|
|
18
|
+
<div
|
|
19
|
+
class="grid gap-0"
|
|
20
|
+
[style.grid-template-columns]="gridTemplateColumns"
|
|
21
|
+
data-cy="feature-type-content"
|
|
22
|
+
>
|
|
23
|
+
<div
|
|
24
|
+
class="py-1 px-2 text-sm font-bold text-left border-t"
|
|
25
|
+
[class.border-l]="i > 0"
|
|
26
|
+
[class.border-gray-300]="i > 0"
|
|
27
|
+
*ngFor="let col of columns; let i = index"
|
|
28
|
+
data-test="column-label"
|
|
29
|
+
>
|
|
30
|
+
{{ col.label | translate }}
|
|
31
|
+
</div>
|
|
32
|
+
<ng-container *ngFor="let row of featureType.attributes">
|
|
33
|
+
<div
|
|
34
|
+
class="bg-white text-sm font-normal text-left border-t"
|
|
35
|
+
[class.border-l]="i > 0"
|
|
36
|
+
[class.border-gray-300]="i > 0"
|
|
37
|
+
*ngFor="let col of columns; let i = index"
|
|
38
|
+
>
|
|
39
|
+
<gn-ui-truncated-text
|
|
40
|
+
extraClass="py-3 px-2"
|
|
41
|
+
[text]="row[col.key]"
|
|
42
|
+
></gn-ui-truncated-text>
|
|
43
|
+
</div>
|
|
44
|
+
</ng-container>
|
|
45
|
+
</div>
|
|
46
|
+
</gn-ui-expandable-panel>
|
|
47
|
+
</div>
|
|
48
|
+
</div>
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Component, Input, OnInit } from '@angular/core'
|
|
2
|
+
import { CommonModule } from '@angular/common'
|
|
3
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
4
|
+
import { DatasetFeatureCatalog } from '../../../../../../../libs/common/domain/src/lib/model/record'
|
|
5
|
+
import {
|
|
6
|
+
ExpandablePanelComponent,
|
|
7
|
+
TruncatedTextComponent,
|
|
8
|
+
} from '../../../../../../../libs/ui/layout/src'
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
selector: 'gn-ui-feature-catalog-list',
|
|
12
|
+
templateUrl: './feature-catalog-list.component.html',
|
|
13
|
+
standalone: true,
|
|
14
|
+
imports: [
|
|
15
|
+
CommonModule,
|
|
16
|
+
TranslateModule,
|
|
17
|
+
ExpandablePanelComponent,
|
|
18
|
+
TruncatedTextComponent,
|
|
19
|
+
],
|
|
20
|
+
})
|
|
21
|
+
export class FeatureCatalogListComponent implements OnInit {
|
|
22
|
+
@Input() filteredFeatureCatalog: DatasetFeatureCatalog
|
|
23
|
+
|
|
24
|
+
columns = [
|
|
25
|
+
{
|
|
26
|
+
key: 'type',
|
|
27
|
+
label: 'feature.catalog.attribute.type',
|
|
28
|
+
width: '19%',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: 'name',
|
|
32
|
+
label: 'feature.catalog.attribute.name',
|
|
33
|
+
width: '32%',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
key: 'code',
|
|
37
|
+
label: 'feature.catalog.attribute.code',
|
|
38
|
+
width: '24%',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: 'title',
|
|
42
|
+
label: 'feature.catalog.attribute.description',
|
|
43
|
+
width: '25%',
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
|
|
47
|
+
gridTemplateColumns = ''
|
|
48
|
+
|
|
49
|
+
ngOnInit(): void {
|
|
50
|
+
this.gridTemplateColumns = this.columns.map((col) => col.width).join(' ')
|
|
51
|
+
}
|
|
52
|
+
}
|