geonetwork-ui 2.6.0-dev.2883b2a32 → 2.6.0-dev.320c95c81
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/repository/src/lib/gn4/elasticsearch/constant.mjs +4 -3
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +2 -2
- package/esm2022/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-from-catalog.component.mjs +1 -1
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +49 -23
- package/esm2022/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.mjs +5 -3
- package/esm2022/libs/ui/elements/src/index.mjs +1 -2
- package/esm2022/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.mjs +3 -3
- package/esm2022/translations/de.json +1 -0
- package/esm2022/translations/en.json +1 -0
- package/esm2022/translations/es.json +1 -0
- package/esm2022/translations/fr.json +1 -0
- package/esm2022/translations/it.json +4 -3
- package/esm2022/translations/nl.json +1 -0
- package/esm2022/translations/pt.json +1 -0
- package/fesm2022/geonetwork-ui.mjs +72 -82
- package/fesm2022/geonetwork-ui.mjs.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.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +13 -5
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts +2 -1
- package/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.d.ts.map +1 -1
- package/libs/ui/elements/src/index.d.ts +0 -1
- package/libs/ui/elements/src/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +3 -2
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +1 -1
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +27 -9
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +84 -27
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.html +1 -1
- package/src/libs/feature/search/src/lib/fuzzy-search/fuzzy-search.component.ts +1 -0
- package/src/libs/ui/elements/src/index.ts +0 -1
- package/src/libs/ui/elements/src/lib/internal-link-card/internal-link-card.component.html +1 -1
- package/translations/de.json +1 -0
- package/translations/en.json +1 -0
- package/translations/es.json +1 -0
- package/translations/fr.json +1 -0
- package/translations/it.json +4 -3
- package/translations/nl.json +1 -0
- package/translations/pt.json +1 -0
- package/translations/sk.json +1 -0
- package/esm2022/libs/ui/elements/src/lib/related-record-card/related-record-card.component.mjs +0 -56
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts +0 -19
- package/libs/ui/elements/src/lib/related-record-card/related-record-card.component.d.ts.map +0 -1
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.css +0 -0
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.html +0 -9
- package/src/libs/ui/elements/src/lib/related-record-card/related-record-card.component.ts +0 -61
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
EventEmitter,
|
|
5
|
-
Input,
|
|
6
|
-
Output,
|
|
7
|
-
} from '@angular/core'
|
|
8
|
-
import { CatalogRecord } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
9
|
-
import { ThumbnailComponent } from '../thumbnail/thumbnail.component'
|
|
10
|
-
import { InternalLinkCardComponent } from '../internal-link-card/internal-link-card.component'
|
|
11
|
-
import { RouterLink } from '@angular/router'
|
|
12
|
-
import { MatTooltipModule } from '@angular/material/tooltip'
|
|
13
|
-
import { NgIcon, provideIcons } from '@ng-icons/core'
|
|
14
|
-
import { TranslateModule } from '@ngx-translate/core'
|
|
15
|
-
import { matOpenInNew } from '@ng-icons/material-icons/baseline'
|
|
16
|
-
import { TemplateRef } from '@angular/core'
|
|
17
|
-
|
|
18
|
-
@Component({
|
|
19
|
-
selector: 'gn-ui-related-record-card',
|
|
20
|
-
templateUrl: './related-record-card.component.html',
|
|
21
|
-
styleUrls: ['./related-record-card.component.css'],
|
|
22
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
-
imports: [
|
|
24
|
-
InternalLinkCardComponent,
|
|
25
|
-
ThumbnailComponent,
|
|
26
|
-
RouterLink,
|
|
27
|
-
MatTooltipModule,
|
|
28
|
-
NgIcon,
|
|
29
|
-
TranslateModule,
|
|
30
|
-
],
|
|
31
|
-
standalone: true,
|
|
32
|
-
viewProviders: [provideIcons({ matOpenInNew })],
|
|
33
|
-
})
|
|
34
|
-
export class RelatedRecordCardComponent {
|
|
35
|
-
private readonly baseClasses: string
|
|
36
|
-
|
|
37
|
-
@Input() linkHref: string = null
|
|
38
|
-
@Input() record: CatalogRecord
|
|
39
|
-
@Input() extraClass = ''
|
|
40
|
-
@Input() favoriteTemplate: TemplateRef<{ $implicit: CatalogRecord }>
|
|
41
|
-
@Input() metadataQualityDisplay: boolean
|
|
42
|
-
@Input() size: string
|
|
43
|
-
|
|
44
|
-
constructor() {
|
|
45
|
-
this.baseClasses = [
|
|
46
|
-
'w-72',
|
|
47
|
-
'h-96',
|
|
48
|
-
'overflow-hidden',
|
|
49
|
-
'rounded-lg',
|
|
50
|
-
'bg-white',
|
|
51
|
-
'cursor-pointer',
|
|
52
|
-
'block',
|
|
53
|
-
'hover:-translate-y-2 ',
|
|
54
|
-
'duration-[180ms]',
|
|
55
|
-
].join(' ')
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
get classList() {
|
|
59
|
-
return `${this.baseClasses} ${this.extraClass}`
|
|
60
|
-
}
|
|
61
|
-
}
|