geonetwork-ui 2.7.0-dev.8b8fd1011 → 2.7.0-dev.943f3a71b
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/gn4.provider.mjs +7 -3
- package/esm2022/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.mjs +20 -6
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/common/domain/src/lib/platform.service.interface.mjs +1 -1
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.mjs +55 -0
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.mjs +6 -6
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/index.mjs +2 -2
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +51 -45
- package/esm2022/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.mjs +24 -17
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +3 -3
- package/esm2022/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.mjs +5 -5
- package/esm2022/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.mjs +8 -4
- package/esm2022/libs/util/shared/src/lib/links/link-utils.mjs +33 -8
- package/esm2022/libs/util/shared/src/lib/utils/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/scroll.mjs +40 -0
- package/esm2022/translations/de.json +25 -23
- package/esm2022/translations/en.json +26 -23
- package/esm2022/translations/es.json +25 -23
- package/esm2022/translations/fr.json +25 -23
- package/esm2022/translations/it.json +25 -23
- package/esm2022/translations/nl.json +25 -23
- package/esm2022/translations/pt.json +25 -23
- package/esm2022/translations/sk.json +25 -23
- package/fesm2022/geonetwork-ui.mjs +442 -327
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts +5 -1
- package/libs/api/repository/src/lib/gn4/gn4.provider.d.ts.map +1 -1
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts +6 -2
- package/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.d.ts.map +1 -1
- package/libs/common/domain/src/lib/model/record/metadata.model.d.ts +1 -1
- package/libs/common/domain/src/lib/platform.service.interface.d.ts +1 -0
- package/libs/common/domain/src/lib/platform.service.interface.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts +20 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.d.ts.map +1 -0
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/index.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts +4 -4
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.d.ts +1 -0
- package/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.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/external-link-card/external-link-card.component.d.ts +1 -1
- package/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.d.ts.map +1 -1
- package/libs/util/shared/src/lib/links/link-utils.d.ts +25 -7
- package/libs/util/shared/src/lib/links/link-utils.d.ts.map +1 -1
- 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/libs/util/shared/src/lib/utils/scroll.d.ts +12 -0
- package/libs/util/shared/src/lib/utils/scroll.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/gn4.provider.ts +13 -2
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +17 -6
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +1 -1
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.html → form-field-topics/form-field-topics.component.html} +6 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-topics/form-field-topics.component.ts +57 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +3 -3
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/index.ts +1 -1
- package/src/libs/feature/editor/src/lib/fields.config.ts +51 -45
- package/src/libs/feature/search/src/lib/favorites/favorite-star/favorite-star.component.ts +23 -16
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +5 -1
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.html +4 -3
- package/src/libs/ui/inputs/src/lib/star-toggle/star-toggle.component.ts +2 -2
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.html +1 -4
- package/src/libs/ui/search/src/lib/results-hits-search-kind/results-hits-search-kind.component.ts +5 -1
- package/src/libs/util/shared/src/lib/links/link-utils.ts +32 -7
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/scroll.ts +48 -0
- package/translations/de.json +25 -23
- package/translations/en.json +26 -23
- package/translations/es.json +25 -23
- package/translations/fr.json +25 -23
- package/translations/it.json +25 -23
- package/translations/nl.json +25 -23
- package/translations/pt.json +25 -23
- package/translations/sk.json +25 -23
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.mjs +0 -55
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts +0 -20
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.d.ts.map +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-inspire-field/form-field-inspire-theme.component.ts +0 -57
- /package/src/libs/feature/editor/src/lib/components/record-form/form-field/{form-field-inspire-field/form-field-inspire-theme.component.css → form-field-topics/form-field-topics.component.css} +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core'
|
|
2
|
-
import { CommonModule } from '@angular/common'
|
|
3
|
-
import {
|
|
4
|
-
AutocompleteComponent,
|
|
5
|
-
BadgeComponent,
|
|
6
|
-
DropdownMultiselectComponent,
|
|
7
|
-
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
8
|
-
import { NgIconComponent } from '@ng-icons/core'
|
|
9
|
-
import { INSPIRE_THEMES } from '../../../../fields.config'
|
|
10
|
-
import { TranslatePipe, TranslateService } from '@ngx-translate/core'
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: 'gn-ui-form-field-inspire-theme',
|
|
14
|
-
standalone: true,
|
|
15
|
-
imports: [
|
|
16
|
-
CommonModule,
|
|
17
|
-
AutocompleteComponent,
|
|
18
|
-
NgIconComponent,
|
|
19
|
-
BadgeComponent,
|
|
20
|
-
TranslatePipe,
|
|
21
|
-
DropdownMultiselectComponent,
|
|
22
|
-
],
|
|
23
|
-
templateUrl: './form-field-inspire-theme.component.html',
|
|
24
|
-
styleUrl: './form-field-inspire-theme.component.css',
|
|
25
|
-
})
|
|
26
|
-
export class FormFieldInspireThemeComponent {
|
|
27
|
-
themes = []
|
|
28
|
-
@Input() set value(themes: string[]) {
|
|
29
|
-
this.themes = themes
|
|
30
|
-
}
|
|
31
|
-
@Output() valueChange: EventEmitter<string[]> = new EventEmitter()
|
|
32
|
-
availableThemes = INSPIRE_THEMES.map((theme) => {
|
|
33
|
-
return {
|
|
34
|
-
label: this.translateService.instant(theme.label),
|
|
35
|
-
value: theme.value,
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
constructor(private translateService: TranslateService) {}
|
|
40
|
-
|
|
41
|
-
handleItemSelection(selectedItems: string[]) {
|
|
42
|
-
this.themes = selectedItems
|
|
43
|
-
this.valueChange.emit(this.themes)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
removeTheme(theme: string) {
|
|
47
|
-
this.themes = this.themes.filter((t) => t !== theme)
|
|
48
|
-
this.valueChange.emit(this.themes)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
getTranslatedTheme(theme: string) {
|
|
52
|
-
const themeKey = this.availableThemes.find(
|
|
53
|
-
(avail) => avail.value === theme
|
|
54
|
-
)?.label
|
|
55
|
-
return themeKey ? this.translateService.instant(themeKey) : ''
|
|
56
|
-
}
|
|
57
|
-
}
|