geonetwork-ui 2.6.0-dev.492bf4497 → 2.6.0-dev.4a61a87f9
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/gn4.field.mapper.mjs +39 -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 +62 -11
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +7 -1
- package/esm2022/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.mjs +2 -1
- package/esm2022/libs/common/domain/src/lib/repository/records-repository.interface.mjs +1 -1
- 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/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 +3 -1
- 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/feature/search/src/lib/results-table/results-table-container.component.mjs +13 -10
- package/esm2022/libs/ui/elements/src/index.mjs +2 -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 +42 -83
- package/esm2022/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.mjs +59 -0
- package/esm2022/libs/ui/elements/src/lib/kind-badge/kind-badge.component.mjs +22 -5
- package/esm2022/libs/ui/elements/src/lib/metadata-quality/metadata-quality.component.mjs +3 -3
- 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/lib/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +3 -3
- package/esm2022/libs/ui/layout/src/lib/interactive-table/interactive-table.component.mjs +20 -10
- 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 +21 -12
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +39 -18
- 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/translations/de.json +34 -12
- package/esm2022/translations/en.json +34 -14
- package/esm2022/translations/es.json +33 -11
- package/esm2022/translations/fr.json +34 -14
- package/esm2022/translations/it.json +66 -44
- package/esm2022/translations/nl.json +33 -11
- package/esm2022/translations/pt.json +33 -11
- package/fesm2022/geonetwork-ui.mjs +1441 -727
- package/fesm2022/geonetwork-ui.mjs.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 +13 -2
- package/libs/api/repository/src/lib/gn4/gn4-repository.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +2 -0
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts +1 -0
- package/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/repository/records-repository.interface.d.ts +6 -0
- package/libs/common/domain/src/lib/repository/records-repository.interface.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/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 +2 -0
- 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/feature/search/src/lib/results-table/results-table-container.component.d.ts +6 -5
- package/libs/feature/search/src/lib/results-table/results-table-container.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +1 -0
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/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 +6 -13
- package/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.d.ts.map +1 -1
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts +14 -0
- package/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.d.ts.map +1 -0
- 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/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/layout/src/lib/interactive-table/interactive-table.component.d.ts +4 -2
- package/libs/ui/layout/src/lib/interactive-table/interactive-table.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 +4 -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 +10 -4
- 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/package.json +1 -1
- 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 +61 -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 +101 -11
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/api/repository/src/lib/gn4/settings/gn4-settings.service.ts +3 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +6 -0
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +50 -1
- 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/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 +4 -0
- 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/feature/search/src/lib/results-table/results-table-container.component.html +1 -0
- package/src/libs/feature/search/src/lib/results-table/results-table-container.component.ts +13 -3
- package/src/libs/ui/elements/src/index.ts +1 -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 +68 -141
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.ts +38 -97
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.html +69 -0
- package/src/libs/ui/elements/src/lib/internal-link-card-contact/internal-link-card-contact.component.ts +61 -0
- 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-quality/metadata-quality.component.html +1 -1
- 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 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +1 -1
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +1 -2
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.html +3 -2
- package/src/libs/ui/layout/src/lib/interactive-table/interactive-table.component.ts +13 -6
- 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 -1
- 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 +16 -6
- package/src/libs/ui/search/src/lib/results-table/action-menu/action-menu.component.ts +15 -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 +31 -27
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +33 -15
- 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/tailwind.base.css +1 -1
- package/translations/de.json +34 -12
- package/translations/en.json +34 -14
- package/translations/es.json +33 -11
- package/translations/fr.json +34 -14
- package/translations/it.json +66 -44
- package/translations/nl.json +33 -11
- package/translations/pt.json +33 -11
- package/translations/sk.json +33 -11
|
@@ -1,30 +1,9 @@
|
|
|
1
|
-
<
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
|
|
1
|
+
<gn-ui-internal-link-card
|
|
2
|
+
[linkHref]="linkHref"
|
|
3
|
+
[linkTarget]="'_blank'"
|
|
4
|
+
[record]="record"
|
|
5
|
+
[favoriteTemplate]="favoriteTemplate"
|
|
6
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
7
|
+
[size]="size"
|
|
5
8
|
>
|
|
6
|
-
|
|
7
|
-
<gn-ui-thumbnail
|
|
8
|
-
class="h-52 w-full object-cover"
|
|
9
|
-
[thumbnailUrl]="record.overviews?.[0]?.url.toString()"
|
|
10
|
-
></gn-ui-thumbnail>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="flex flex-col justify-between h-44 px-5 pt-4 pb-6">
|
|
13
|
-
<h4
|
|
14
|
-
class="max-h-24 font-title text-21 text-black text-ellipsis overflow-hidden"
|
|
15
|
-
>
|
|
16
|
-
{{ record.title }}
|
|
17
|
-
</h4>
|
|
18
|
-
<div>
|
|
19
|
-
<button
|
|
20
|
-
[matTooltip]="'tooltip.url.open' | translate"
|
|
21
|
-
matTooltipPosition="above"
|
|
22
|
-
>
|
|
23
|
-
<ng-icon
|
|
24
|
-
class="align-middle text-secondary"
|
|
25
|
-
name="matOpenInNew"
|
|
26
|
-
></ng-icon>
|
|
27
|
-
</button>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</a>
|
|
9
|
+
</gn-ui-internal-link-card>
|
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ChangeDetectionStrategy,
|
|
3
|
+
Component,
|
|
4
|
+
EventEmitter,
|
|
5
|
+
Input,
|
|
6
|
+
Output,
|
|
7
|
+
} from '@angular/core'
|
|
2
8
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
3
9
|
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
10
|
+
import { InternalLinkCardComponent } from '../internal-link-card/internal-link-card.component'
|
|
4
11
|
import { RouterLink } from '@angular/router'
|
|
5
12
|
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
6
13
|
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
7
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
8
15
|
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
16
|
+
import { TemplateRef } from '@angular/core'
|
|
9
17
|
|
|
10
18
|
@Component({
|
|
11
19
|
selector: 'gn-ui-related-record-card',
|
|
@@ -13,6 +21,7 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
|
13
21
|
styleUrls: ['./related-record-card.component.css'],
|
|
14
22
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
15
23
|
imports: [
|
|
24
|
+
InternalLinkCardComponent,
|
|
16
25
|
ThumbnailComponent,
|
|
17
26
|
RouterLink,
|
|
18
27
|
MatTooltipModule,
|
|
@@ -25,8 +34,12 @@ import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
|
25
34
|
export class RelatedRecordCardComponent {
|
|
26
35
|
private readonly baseClasses: string
|
|
27
36
|
|
|
37
|
+
@Input() linkHref: string = null
|
|
28
38
|
@Input() record: CatalogRecord
|
|
29
39
|
@Input() extraClass = ''
|
|
40
|
+
@Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
|
|
41
|
+
@Input() metadataQualityDisplay: boolean
|
|
42
|
+
@Input() size: string
|
|
30
43
|
|
|
31
44
|
constructor() {
|
|
32
45
|
this.baseClasses = [
|
package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.html
CHANGED
|
@@ -16,17 +16,31 @@
|
|
|
16
16
|
<div class="h-14 md:w-2/5 w-full mb-4 flex flex-row relative">
|
|
17
17
|
<gn-ui-text-input
|
|
18
18
|
class="w-full"
|
|
19
|
+
[(value)]="searchQuery"
|
|
19
20
|
[extraClass]="getExtraInputClass()"
|
|
20
21
|
[placeholder]="'service.metadata.search' | translate"
|
|
21
22
|
(input)="onSearchChange($event)"
|
|
22
23
|
(keydown.enter)="onSearchEnter($event)"
|
|
23
24
|
>
|
|
24
25
|
</gn-ui-text-input>
|
|
26
|
+
<div
|
|
27
|
+
class="absolute right-14 h-14 w-14 flex items-center justify-center"
|
|
28
|
+
>
|
|
29
|
+
<button
|
|
30
|
+
#inputBtn
|
|
31
|
+
*ngIf="searchQuery"
|
|
32
|
+
[aria-label]="'service.metadata.search.clear' | translate"
|
|
33
|
+
(click)="clearSearch()"
|
|
34
|
+
class="h-12 w-12 border-0 flex items-center justify-center"
|
|
35
|
+
>
|
|
36
|
+
<ng-icon name="matClose"></ng-icon>
|
|
37
|
+
</button>
|
|
38
|
+
</div>
|
|
25
39
|
<div class="border-l absolute border-gray-200 right-0 h-14 w-14">
|
|
26
40
|
<gn-ui-button
|
|
27
41
|
#inputBtn
|
|
28
42
|
type="outline"
|
|
29
|
-
extraClass="h-12 w-12 border-0 absolute right-1 top-1"
|
|
43
|
+
extraClass="h-12 w-12 border-0 absolute right-1 top-1 bg-white"
|
|
30
44
|
(buttonClick)="searchLayers()"
|
|
31
45
|
>
|
|
32
46
|
<ng-icon name="iconoirSearch"></ng-icon>
|
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
WmsLayerFull,
|
|
17
17
|
WmtsLayer,
|
|
18
18
|
} from '@camptocamp/ogc-client'
|
|
19
|
+
import { matClose } from '@ng-icons/material-icons/baseline'
|
|
19
20
|
|
|
20
21
|
marker(`service.metadata.search`)
|
|
21
22
|
marker(`service.metadata.capabilities.title`)
|
|
@@ -48,6 +49,7 @@ marker(`service.metadata.capabilities.attribution`)
|
|
|
48
49
|
provideIcons({
|
|
49
50
|
iconoirSearch,
|
|
50
51
|
matInfoOutline,
|
|
52
|
+
matClose,
|
|
51
53
|
}),
|
|
52
54
|
],
|
|
53
55
|
templateUrl: './service-capabilities.component.html',
|
|
@@ -104,6 +106,12 @@ export class ServiceCapabilitiesComponent implements OnInit {
|
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
|
|
109
|
+
clearSearch() {
|
|
110
|
+
this.searchActive = false
|
|
111
|
+
this.searchQuery = ''
|
|
112
|
+
this.filteredLayers = this.availableLayers
|
|
113
|
+
}
|
|
114
|
+
|
|
107
115
|
async loadLayers() {
|
|
108
116
|
if (
|
|
109
117
|
this.apiLinks.length > 0 &&
|
|
@@ -176,7 +184,7 @@ export class ServiceCapabilitiesComponent implements OnInit {
|
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
getExtraClass(layerItem) {
|
|
179
|
-
return layerItem
|
|
187
|
+
return layerItem === this.selectedLayer
|
|
180
188
|
? `h-8 rounded-lg bg-primary-darker text-white hover:text-primary-darker hover:bg-white`
|
|
181
189
|
: `h-8 rounded-lg`
|
|
182
190
|
}
|
|
@@ -15,6 +15,7 @@ import { provideNgIconsConfig } from '@ng-icons/core'
|
|
|
15
15
|
import { TranslateModule } from '@ngx-translate/core'
|
|
16
16
|
import { AvatarComponent } from './avatar/avatar.component'
|
|
17
17
|
import { ImageInputComponent } from './image-input/image-input.component'
|
|
18
|
+
import { GeoDataBadgeComponent } from './geo-data-badge/geo-data-badge.component'
|
|
18
19
|
import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component'
|
|
19
20
|
import { KindBadgeComponent } from './kind-badge/kind-badge.component'
|
|
20
21
|
import { ThumbnailComponent } from './thumbnail/thumbnail.component'
|
|
@@ -47,6 +48,7 @@ import { ServiceCapabilitiesComponent } from './service-capabilities/service-cap
|
|
|
47
48
|
InternalLinkCardComponent,
|
|
48
49
|
ServiceCapabilitiesComponent,
|
|
49
50
|
KindBadgeComponent,
|
|
51
|
+
GeoDataBadgeComponent,
|
|
50
52
|
],
|
|
51
53
|
providers: [
|
|
52
54
|
provideNgIconsConfig({
|
|
@@ -64,6 +66,7 @@ import { ServiceCapabilitiesComponent } from './service-capabilities/service-cap
|
|
|
64
66
|
InternalLinkCardComponent,
|
|
65
67
|
ServiceCapabilitiesComponent,
|
|
66
68
|
KindBadgeComponent,
|
|
69
|
+
GeoDataBadgeComponent,
|
|
67
70
|
],
|
|
68
71
|
})
|
|
69
72
|
export class UiElementsModule {}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
<div class="inline-block relative align-middle"
|
|
1
|
+
<div class="inline-block relative align-middle">
|
|
2
2
|
<gn-ui-button
|
|
3
3
|
[type]="'outline'"
|
|
4
4
|
[disabled]="disabled"
|
|
5
|
-
class="-m-[8px] p-[8px]"
|
|
6
5
|
(buttonClick)="toggle($event)"
|
|
7
6
|
[ngClass]="{
|
|
8
7
|
enabled: toggled,
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
*ngFor="let item of items"
|
|
32
32
|
(click)="handleRowClick(item)"
|
|
33
33
|
data-cy="table-row"
|
|
34
|
+
[attr.data-cy-title]="item.title"
|
|
34
35
|
[title]="getItemTitle(item) | translate"
|
|
35
36
|
>
|
|
36
37
|
<div
|
|
@@ -48,9 +49,9 @@
|
|
|
48
49
|
class="table-row-cell px-3 py-1.5 flex items-center bg-white transition-colors duration-75 truncate border-b border-gray-200"
|
|
49
50
|
[ngClass]="{
|
|
50
51
|
'text-purple-light cursor-default':
|
|
51
|
-
(
|
|
52
|
+
(canEditItem(item) | async) === false,
|
|
52
53
|
'group-hover:text-main group-hover:bg-gray-50':
|
|
53
|
-
(item
|
|
54
|
+
canEditItem(item) | async,
|
|
54
55
|
}"
|
|
55
56
|
>
|
|
56
57
|
<ng-container
|
|
@@ -14,9 +14,11 @@ import { iconoirNavArrowDown, iconoirNavArrowUp } from '@ng-icons/iconoir'
|
|
|
14
14
|
import { TranslateModule } from '@ngx-translate/core'
|
|
15
15
|
import { marker } from '@biesbjerg/ngx-translate-extract-marker'
|
|
16
16
|
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
+
import { Observable, of } from 'rxjs'
|
|
17
18
|
|
|
18
|
-
marker('editor.record.lock.
|
|
19
|
-
marker('editor.record.lock.
|
|
19
|
+
marker('editor.record.lock.resourceType')
|
|
20
|
+
marker('editor.record.lock.harvested')
|
|
21
|
+
marker('editor.record.lock.owner')
|
|
20
22
|
@Component({
|
|
21
23
|
selector: 'gn-ui-interactive-table',
|
|
22
24
|
templateUrl: './interactive-table.component.html',
|
|
@@ -31,6 +33,7 @@ export class InteractiveTableComponent {
|
|
|
31
33
|
columns: QueryList<InteractiveTableColumnComponent>
|
|
32
34
|
|
|
33
35
|
@Input() items: unknown[] = []
|
|
36
|
+
@Input() canEditItem: (item: unknown) => Observable<boolean> = () => of(true)
|
|
34
37
|
@Input() isDraftPage = false
|
|
35
38
|
@Output() itemClick = new EventEmitter<unknown>()
|
|
36
39
|
|
|
@@ -49,10 +52,14 @@ export class InteractiveTableComponent {
|
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
getItemTitle(item: CatalogRecord) {
|
|
52
|
-
if (!
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
if (!this.isDraftPage) {
|
|
56
|
+
if (item.kind !== 'dataset') {
|
|
57
|
+
return 'editor.record.lock.resourceType'
|
|
58
|
+
} else if (item.extras?.isHarvested) {
|
|
59
|
+
return 'editor.record.lock.harvested'
|
|
60
|
+
} else if (!item.extras?.edit) {
|
|
61
|
+
return 'editor.record.lock.owner'
|
|
62
|
+
}
|
|
56
63
|
}
|
|
57
64
|
return ''
|
|
58
65
|
}
|
|
@@ -19,3 +19,4 @@ export * from './lib/results-list-item/results-list-item.component'
|
|
|
19
19
|
export * from './lib/results-hits-search-kind/results-hits-search-kind.component'
|
|
20
20
|
export * from './lib/results-hits-number/results-hits-number.component'
|
|
21
21
|
export * from './lib/results-table/results-table.component'
|
|
22
|
+
export * from './lib/results-table/action-menu/action-menu.component'
|
|
@@ -1,82 +1,10 @@
|
|
|
1
|
-
<
|
|
2
|
-
|
|
3
|
-
[
|
|
4
|
-
[
|
|
1
|
+
<gn-ui-internal-link-card
|
|
2
|
+
[linkHref]="linkHref"
|
|
3
|
+
[linkTarget]="linkTarget"
|
|
4
|
+
[record]="record"
|
|
5
|
+
[favoriteTemplate]="favoriteTemplate"
|
|
6
|
+
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
7
|
+
(mdSelect)="mdSelect.emit($event)"
|
|
8
|
+
size="L"
|
|
5
9
|
>
|
|
6
|
-
|
|
7
|
-
<div
|
|
8
|
-
class="overflow-hidden bg-gray-100 rounded-lg w-full border border-gray-300 h-36"
|
|
9
|
-
>
|
|
10
|
-
<gn-ui-thumbnail
|
|
11
|
-
class="relative h-full w-full object-cover object-left-top"
|
|
12
|
-
[thumbnailUrl]="[
|
|
13
|
-
record.overviews?.[0]?.url?.toString(),
|
|
14
|
-
organization?.logoUrl?.toString(),
|
|
15
|
-
]"
|
|
16
|
-
[fit]="['cover', 'contain']"
|
|
17
|
-
></gn-ui-thumbnail>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div
|
|
21
|
-
class="content grid grow relative sm:pl-6 sm:pr-12"
|
|
22
|
-
style="grid-template-columns: auto 70px"
|
|
23
|
-
>
|
|
24
|
-
<div class="mb-3 mt-5 sm:mt-2">
|
|
25
|
-
<div
|
|
26
|
-
class="font-title text-21 text-title line-clamp-2 col-start-1 col-span-2 sm:line-clamp-1 group-hover:text-primary transition-colors"
|
|
27
|
-
data-cy="recordTitle"
|
|
28
|
-
>
|
|
29
|
-
{{ record.title }}
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
<div
|
|
33
|
-
class="abstract mt-4 mb-5 h-36 line-clamp-6 col-start-1 col-span-2 row-start-3 sm:mb-2 sm:h-[4.5rem] sm:line-clamp-3 sm:row-start-2 sm:mt-0"
|
|
34
|
-
data-cy="recordAbstract"
|
|
35
|
-
>
|
|
36
|
-
<gn-ui-markdown-parser
|
|
37
|
-
[textContent]="abstract"
|
|
38
|
-
whitoutStyles="true"
|
|
39
|
-
></gn-ui-markdown-parser>
|
|
40
|
-
</div>
|
|
41
|
-
<div
|
|
42
|
-
class="text-primary opacity-45 uppercase col-start-1 col-span-2 row-start-2 sm:truncate sm:row-start-3 sm:col-span-1"
|
|
43
|
-
data-cy="recordOrg"
|
|
44
|
-
[class]="metadataQualityDisplay ? 'limit-organisation-with-quality' : ''"
|
|
45
|
-
>
|
|
46
|
-
{{ organization?.name }}
|
|
47
|
-
</div>
|
|
48
|
-
<div
|
|
49
|
-
class="icons flex flex-row col-start-1 row-start-4 sm:col-start-2 sm:row-start-3 sm:absolute sm:right-[0.4em]"
|
|
50
|
-
>
|
|
51
|
-
<ng-icon
|
|
52
|
-
*ngIf="isDownloadable"
|
|
53
|
-
class="text-primary opacity-45 mx-1"
|
|
54
|
-
name="matCloudDownloadOutline"
|
|
55
|
-
></ng-icon>
|
|
56
|
-
<ng-icon
|
|
57
|
-
*ngIf="isViewable"
|
|
58
|
-
class="text-primary opacity-45 mx-1"
|
|
59
|
-
name="matMapOutline"
|
|
60
|
-
></ng-icon>
|
|
61
|
-
</div>
|
|
62
|
-
<div
|
|
63
|
-
*ngIf="metadataQualityDisplay"
|
|
64
|
-
class="col-start-2 row-start-4 sm:row-start-3 absolute right-[4em] sm:right-[5em]"
|
|
65
|
-
>
|
|
66
|
-
<gn-ui-metadata-quality
|
|
67
|
-
[smaller]="true"
|
|
68
|
-
[metadata]="record"
|
|
69
|
-
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
70
|
-
></gn-ui-metadata-quality>
|
|
71
|
-
</div>
|
|
72
|
-
<div
|
|
73
|
-
class="text-right col-start-3 row-start-4 sm:absolute sm:col-start-2 sm:row-start-1 sm:top-[-1.125em] sm:right-[0.4em]"
|
|
74
|
-
data-cy="recordFav"
|
|
75
|
-
>
|
|
76
|
-
<ng-container
|
|
77
|
-
[ngTemplateOutlet]="favoriteTemplate"
|
|
78
|
-
[ngTemplateOutletContext]="{ $implicit: record }"
|
|
79
|
-
></ng-container>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
</a>
|
|
10
|
+
</gn-ui-internal-link-card>
|
package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
>
|
|
6
6
|
<ng-template let-choice>
|
|
7
7
|
<gn-ui-kind-badge
|
|
8
|
+
[styling]="'custom'"
|
|
8
9
|
[kind]="choice.value"
|
|
9
10
|
[contentTemplate]="customTemplate"
|
|
10
11
|
class="gn-ui-btn-outline rounded-md py-2 px-2 border-gray-400 cursor-pointer focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors bg-transparent hover:text-primary-darker focus:text-primary-darker active:text-primary-black"
|
|
@@ -32,9 +32,9 @@ export const DEFAULT_RESULTS_LAYOUT_CONFIG: ResultsLayoutConfigModel = {
|
|
|
32
32
|
),
|
|
33
33
|
ROW: new ResultsLayoutConfigItem(
|
|
34
34
|
RecordPreviewRowComponent,
|
|
35
|
-
'
|
|
35
|
+
'py-2',
|
|
36
36
|
'',
|
|
37
|
-
'grid grid-cols-1 divide-y divide-gray-
|
|
37
|
+
'grid grid-cols-1 divide-y divide-gray-100'
|
|
38
38
|
),
|
|
39
39
|
FEED: new ResultsLayoutConfigItem(
|
|
40
40
|
RecordPreviewFeedComponent,
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
*ngFor="let record of records"
|
|
7
7
|
>
|
|
8
8
|
<gn-ui-results-list-item
|
|
9
|
+
[attr.data-cy]="record.uniqueIdentifier"
|
|
9
10
|
[record]="record"
|
|
10
11
|
[layoutConfig]="layoutConfig"
|
|
11
12
|
[metadataQualityDisplay]="metadataQualityDisplay"
|
|
12
13
|
(mdSelect)="mdSelect.emit($event)"
|
|
13
14
|
[favoriteTemplate]="favoriteTemplate"
|
|
14
15
|
[linkHref]="recordUrlGetter(record)"
|
|
15
|
-
[attr.data-cy]="record.uniqueIdentifier"
|
|
16
16
|
></gn-ui-results-list-item>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
@@ -6,17 +6,27 @@
|
|
|
6
6
|
>
|
|
7
7
|
<ul class="flex flex-col gap-2 w-full">
|
|
8
8
|
<gn-ui-button
|
|
9
|
-
*ngIf="
|
|
9
|
+
*ngIf="page === 'main'"
|
|
10
10
|
type="light"
|
|
11
11
|
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
12
12
|
(buttonClick)="duplicate.emit()"
|
|
13
13
|
[disabled]="!canDuplicate"
|
|
14
14
|
data-test="record-menu-duplicate-button"
|
|
15
15
|
>
|
|
16
|
-
<span *ngIf="
|
|
17
|
-
<span *ngIf="!canDuplicate" translate
|
|
16
|
+
<span *ngIf="isDuplicating; else notDuplicating" translate
|
|
18
17
|
>record.action.duplicating</span
|
|
19
|
-
|
|
18
|
+
>
|
|
19
|
+
<ng-template #notDuplicating>
|
|
20
|
+
<span translate>record.action.duplicate</span>
|
|
21
|
+
</ng-template>
|
|
22
|
+
</gn-ui-button>
|
|
23
|
+
<gn-ui-button
|
|
24
|
+
*ngIf="page === 'record'"
|
|
25
|
+
type="light"
|
|
26
|
+
extraClass="flex flex-row items-center gap-2 w-full justify-start"
|
|
27
|
+
(buttonClick)="switch.emit()"
|
|
28
|
+
data-test="record-menu-switch-button"
|
|
29
|
+
><span translate>record.action.switchLang</span></gn-ui-button
|
|
20
30
|
>
|
|
21
31
|
<gn-ui-button
|
|
22
32
|
type="light"
|
|
@@ -24,8 +34,8 @@
|
|
|
24
34
|
(buttonClick)="displayDeleteMenu()"
|
|
25
35
|
[disabled]="!canDelete"
|
|
26
36
|
data-test="record-menu-delete-button"
|
|
27
|
-
><span *ngIf="
|
|
28
|
-
<span *ngIf="
|
|
37
|
+
><span *ngIf="page !== 'draft'" translate>record.action.delete</span>
|
|
38
|
+
<span *ngIf="page === 'draft'" translate
|
|
29
39
|
>record.action.rollback</span
|
|
30
40
|
></gn-ui-button
|
|
31
41
|
>
|
|
@@ -30,13 +30,15 @@ type ActionMenuPage = 'mainMenu' | 'deleteMenu' | 'rollbackMenu'
|
|
|
30
30
|
],
|
|
31
31
|
})
|
|
32
32
|
export class ActionMenuComponent {
|
|
33
|
-
@Input() canDuplicate
|
|
34
|
-
@Input()
|
|
35
|
-
@Input()
|
|
33
|
+
@Input() canDuplicate = true
|
|
34
|
+
@Input() isDuplicating: boolean
|
|
35
|
+
@Input() canDelete = true
|
|
36
|
+
@Input() page: 'draft' | 'main' | 'record'
|
|
36
37
|
@Output() duplicate = new EventEmitter<void>()
|
|
37
38
|
@Output() delete = new EventEmitter<void>()
|
|
38
39
|
@Output() closeActionMenu = new EventEmitter<void>()
|
|
39
40
|
@Output() rollback = new EventEmitter<void>()
|
|
41
|
+
@Output() switch = new EventEmitter<void>()
|
|
40
42
|
|
|
41
43
|
@ViewChild(MatMenuTrigger) trigger: MatMenuTrigger
|
|
42
44
|
|
|
@@ -47,20 +49,22 @@ export class ActionMenuComponent {
|
|
|
47
49
|
private cdr: ChangeDetectorRef
|
|
48
50
|
) {}
|
|
49
51
|
|
|
50
|
-
openMenu() {
|
|
51
|
-
this.trigger.openMenu()
|
|
52
|
-
}
|
|
53
|
-
|
|
54
52
|
displayMainMenu() {
|
|
55
53
|
this.sectionDisplayed = 'mainMenu'
|
|
56
54
|
this.cdr.markForCheck()
|
|
57
55
|
}
|
|
58
56
|
|
|
59
57
|
displayDeleteMenu() {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
58
|
+
switch (this.page) {
|
|
59
|
+
case 'draft':
|
|
60
|
+
this.sectionDisplayed = 'rollbackMenu'
|
|
61
|
+
break
|
|
62
|
+
case 'record':
|
|
63
|
+
this.delete.emit()
|
|
64
|
+
break
|
|
65
|
+
case 'main':
|
|
66
|
+
default:
|
|
67
|
+
this.sectionDisplayed = 'deleteMenu'
|
|
64
68
|
}
|
|
65
69
|
this.cdr.markForCheck()
|
|
66
70
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<gn-ui-interactive-table
|
|
2
2
|
[items]="records"
|
|
3
|
+
[canEditItem]="canEdit"
|
|
3
4
|
[isDraftPage]="isDraftPage"
|
|
4
5
|
(itemClick)="handleRecordClick($event)"
|
|
5
6
|
>
|
|
@@ -9,15 +10,16 @@
|
|
|
9
10
|
<ng-icon
|
|
10
11
|
name="iconoirLock"
|
|
11
12
|
class="text-purple"
|
|
12
|
-
*ngIf="(
|
|
13
|
+
*ngIf="(canEdit(item) | async) === false; else selectCheckbox"
|
|
13
14
|
></ng-icon>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
<ng-template #selectCheckbox>
|
|
16
|
+
<gn-ui-checkbox
|
|
17
|
+
[checked]="isChecked(item)"
|
|
18
|
+
(changed)="handleRecordSelectedChange($event, item)"
|
|
19
|
+
class="-m-2"
|
|
20
|
+
type="default"
|
|
21
|
+
></gn-ui-checkbox>
|
|
22
|
+
</ng-template>
|
|
21
23
|
</ng-template>
|
|
22
24
|
</gn-ui-interactive-table-column>
|
|
23
25
|
|
|
@@ -143,29 +145,31 @@
|
|
|
143
145
|
<gn-ui-interactive-table-column>
|
|
144
146
|
<ng-template #header> </ng-template>
|
|
145
147
|
<ng-template #cell let-item>
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
#actionMenuButton
|
|
149
|
-
(buttonClick)="openActionMenu(item, template)"
|
|
150
|
-
type="light"
|
|
151
|
-
data-test="record-menu-button"
|
|
152
|
-
[disabled]="
|
|
153
|
-
(!item.extras?.edit && !isDraftPage) || item.kind !== 'dataset'
|
|
154
|
-
"
|
|
155
|
-
>
|
|
148
|
+
<div class="flex justify-end items-center gap-4 w-full">
|
|
149
|
+
<!-- IS MULTILINGUAL -->
|
|
156
150
|
<ng-icon
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
name="matMoreVert"
|
|
151
|
+
*ngIf="isMultilingual(item)"
|
|
152
|
+
data-cy="multilingual-indicator"
|
|
153
|
+
name="iconoirTranslate"
|
|
154
|
+
[attr.title]="getTxtHoverMultilingual(item)"
|
|
162
155
|
></ng-icon>
|
|
163
|
-
|
|
156
|
+
<!-- MORE ACTIONS MENU BUTTON -->
|
|
157
|
+
<gn-ui-button
|
|
158
|
+
cdkOverlayOrigin
|
|
159
|
+
#actionMenuButton
|
|
160
|
+
(buttonClick)="openActionMenu(item, template)"
|
|
161
|
+
type="light"
|
|
162
|
+
data-test="record-menu-button"
|
|
163
|
+
>
|
|
164
|
+
<ng-icon name="matMoreVert"></ng-icon>
|
|
165
|
+
</gn-ui-button>
|
|
166
|
+
</div>
|
|
164
167
|
<ng-template #template>
|
|
165
168
|
<gn-ui-action-menu
|
|
166
|
-
[canDuplicate]="canDuplicate(item)
|
|
167
|
-
[
|
|
168
|
-
[
|
|
169
|
+
[canDuplicate]="canDuplicate(item)"
|
|
170
|
+
[isDuplicating]="isDuplicating"
|
|
171
|
+
[canDelete]="canDelete(item) | async"
|
|
172
|
+
[page]="isDraftPage ? 'draft' : 'main'"
|
|
169
173
|
(duplicate)="handleDuplicate(item)"
|
|
170
174
|
(delete)="handleDelete(item)"
|
|
171
175
|
(closeActionMenu)="closeActionMenu()"
|