geonetwork-ui 2.4.2-dev.ff0aab388 → 2.5.0-dev.22c177ea1
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/iso19139/read-parts.mjs +2 -3
- package/esm2022/libs/api/metadata-converter/src/lib/iso19139/write-parts.mjs +4 -1
- package/esm2022/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.mjs +31 -16
- package/esm2022/libs/api/repository/src/lib/gn4/gn4-repository.mjs +2 -2
- package/esm2022/libs/common/domain/src/lib/model/record/metadata.model.mjs +1 -1
- package/esm2022/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.mjs +18 -16
- package/esm2022/libs/feature/dataviz/src/lib/service/data.service.mjs +6 -14
- package/esm2022/libs/feature/dataviz/src/lib/table-view/table-view.component.mjs +12 -17
- package/esm2022/libs/feature/editor/src/lib/components/contact-card/contact-card.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/import-record/import-record.component.mjs +3 -4
- package/esm2022/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.mjs +31 -40
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.mjs +8 -9
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.mjs +5 -25
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.mjs +5 -4
- package/esm2022/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.mjs +3 -3
- package/esm2022/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.mjs +11 -11
- package/esm2022/libs/feature/editor/src/lib/fields.config.mjs +10 -2
- package/esm2022/libs/feature/record/src/lib/data-view/data-view.component.mjs +6 -3
- package/esm2022/libs/feature/record/src/lib/data-view-share/data-view-share.component.mjs +3 -3
- package/esm2022/libs/feature/record/src/lib/feature-record.module.mjs +6 -7
- package/esm2022/libs/feature/record/src/lib/map-view/map-view.component.mjs +6 -3
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.mjs +46 -1
- package/esm2022/libs/feature/search/src/lib/utils/service/fields.service.mjs +3 -2
- package/esm2022/libs/ui/dataviz/src/index.mjs +3 -3
- package/esm2022/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.mjs +51 -0
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.component.mjs +133 -0
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.data.source.mjs +24 -0
- package/esm2022/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.mjs +82 -0
- package/esm2022/libs/ui/elements/src/lib/metadata-info/metadata-info.component.mjs +18 -10
- package/esm2022/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.mjs +3 -1
- package/esm2022/libs/ui/search/src/lib/results-table/results-table.component.mjs +15 -13
- package/esm2022/libs/util/data-fetcher/src/index.mjs +3 -1
- package/esm2022/libs/util/data-fetcher/src/lib/data-fetcher.mjs +5 -1
- package/esm2022/libs/util/data-fetcher/src/lib/headers.mjs +3 -2
- package/esm2022/libs/util/data-fetcher/src/lib/model.mjs +8 -3
- package/esm2022/libs/util/data-fetcher/src/lib/readers/wfs.mjs +97 -0
- package/esm2022/libs/util/data-fetcher/src/lib/utils.mjs +3 -3
- package/esm2022/libs/util/shared/src/lib/services/date.service.mjs +41 -0
- package/esm2022/libs/util/shared/src/lib/services/index.mjs +2 -1
- package/esm2022/libs/util/shared/src/lib/utils/temporal-extent-union.mjs +4 -4
- package/esm2022/translations/de.json +20 -5
- package/esm2022/translations/en.json +29 -14
- package/esm2022/translations/es.json +20 -5
- package/esm2022/translations/fr.json +30 -15
- package/esm2022/translations/it.json +39 -26
- package/esm2022/translations/nl.json +20 -5
- package/esm2022/translations/pt.json +20 -5
- package/fesm2022/geonetwork-ui.mjs +1004 -545
- package/fesm2022/geonetwork-ui.mjs.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/elasticsearch.service.d.ts +2 -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.map +1 -1
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts +7 -9
- package/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/service/data.service.d.ts.map +1 -1
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts +3 -6
- package/libs/feature/dataviz/src/lib/table-view/table-view.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts +0 -1
- package/libs/feature/editor/src/lib/components/import-record/import-record.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts +7 -14
- package/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts +2 -2
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts +1 -6
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts +3 -3
- package/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.d.ts.map +1 -1
- package/libs/feature/editor/src/lib/fields.config.d.ts.map +1 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts +2 -1
- package/libs/feature/record/src/lib/data-view/data-view.component.d.ts.map +1 -1
- package/libs/feature/record/src/lib/feature-record.module.d.ts +2 -2
- package/libs/feature/record/src/lib/feature-record.module.d.ts.map +1 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts +2 -1
- package/libs/feature/record/src/lib/map-view/map-view.component.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.d.ts +10 -0
- package/libs/feature/search/src/lib/utils/service/fields.d.ts.map +1 -1
- package/libs/feature/search/src/lib/utils/service/fields.service.d.ts.map +1 -1
- package/libs/ui/dataviz/src/index.d.ts +2 -2
- package/libs/ui/dataviz/src/index.d.ts.map +1 -1
- package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts +14 -0
- package/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.d.ts.map +1 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts +45 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.component.d.ts.map +1 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts +12 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.data.source.d.ts.map +1 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts +10 -0
- package/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.d.ts.map +1 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts +5 -0
- package/libs/ui/elements/src/lib/metadata-info/metadata-info.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.d.ts.map +1 -1
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts +3 -2
- package/libs/ui/search/src/lib/results-table/results-table.component.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/index.d.ts +3 -1
- package/libs/util/data-fetcher/src/index.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts +3 -2
- package/libs/util/data-fetcher/src/lib/data-fetcher.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/headers.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/model.d.ts +2 -2
- package/libs/util/data-fetcher/src/lib/model.d.ts.map +1 -1
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts +21 -0
- package/libs/util/data-fetcher/src/lib/readers/wfs.d.ts.map +1 -0
- package/libs/util/shared/src/lib/services/date.service.d.ts +13 -0
- package/libs/util/shared/src/lib/services/date.service.d.ts.map +1 -0
- package/libs/util/shared/src/lib/services/index.d.ts +1 -0
- package/libs/util/shared/src/lib/services/index.d.ts.map +1 -1
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts +2 -1
- package/libs/util/shared/src/lib/utils/temporal-extent-union.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/metadata-converter/src/lib/fixtures/geocat-ch.records.ts +1 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +1 -2
- package/src/libs/api/metadata-converter/src/lib/iso19139/write-parts.ts +3 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +33 -16
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +1 -5
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +1 -1
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.html +3 -3
- package/src/libs/feature/dataviz/src/lib/geo-table-view/geo-table-view.component.ts +17 -15
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +6 -14
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.html +4 -3
- package/src/libs/feature/dataviz/src/lib/table-view/table-view.component.ts +9 -18
- package/src/libs/feature/editor/src/lib/components/contact-card/contact-card.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html +4 -1
- package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +0 -4
- package/src/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +8 -8
- package/src/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +32 -45
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts-for-resource/form-field-contacts-for-resource.component.html +3 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-keywords/form-field-keywords.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +0 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +6 -6
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +24 -17
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +2 -27
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-spatial-extent/form-field-spatial-extent.component.ts +2 -1
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-update-frequency/form-field-update-frequency.component.html +1 -1
- package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.ts +3 -4
- package/src/libs/feature/editor/src/lib/fields.config.ts +9 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.html +2 -1
- package/src/libs/feature/record/src/lib/data-view/data-view.component.ts +1 -0
- package/src/libs/feature/record/src/lib/data-view-share/data-view-share.component.html +1 -1
- package/src/libs/feature/record/src/lib/feature-record.module.ts +6 -4
- package/src/libs/feature/record/src/lib/map-view/map-view.component.html +1 -0
- package/src/libs/feature/record/src/lib/map-view/map-view.component.ts +1 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +2 -0
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +55 -0
- package/src/libs/ui/dataviz/src/index.ts +2 -2
- package/src/libs/ui/dataviz/src/lib/data-table/custom.mat.paginator.intl.ts +52 -0
- package/src/libs/ui/dataviz/src/lib/{table/table.component.css → data-table/data-table.component.css} +4 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.html +67 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.component.ts +173 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.data.source.ts +33 -0
- package/src/libs/ui/dataviz/src/lib/data-table/data-table.fixtures.ts +84 -0
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.html +3 -3
- package/src/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +12 -2
- package/src/libs/ui/search/src/lib/record-preview-feed/record-preview-feed.component.ts +3 -0
- package/src/libs/ui/search/src/lib/results-table/results-table.component.html +1 -1
- package/src/libs/ui/search/src/lib/results-table/results-table.component.ts +4 -2
- package/src/libs/util/data-fetcher/src/index.ts +3 -0
- package/src/libs/util/data-fetcher/src/lib/data-fetcher.ts +9 -1
- package/src/libs/util/data-fetcher/src/lib/headers.ts +4 -3
- package/src/libs/util/data-fetcher/src/lib/model.ts +7 -2
- package/src/libs/util/data-fetcher/src/lib/readers/wfs.ts +134 -0
- package/src/libs/util/data-fetcher/src/lib/utils.ts +2 -2
- package/src/libs/util/shared/src/lib/services/date.service.ts +45 -0
- package/src/libs/util/shared/src/lib/services/index.ts +1 -0
- package/src/libs/util/shared/src/lib/utils/temporal-extent-union.ts +6 -3
- package/translations/de.json +20 -5
- package/translations/en.json +29 -14
- package/translations/es.json +20 -5
- package/translations/fr.json +30 -15
- package/translations/it.json +39 -26
- package/translations/nl.json +20 -5
- package/translations/pt.json +20 -5
- package/translations/sk.json +21 -6
- package/esm2022/libs/ui/dataviz/src/lib/table/table.component.mjs +0 -61
- package/esm2022/libs/ui/dataviz/src/lib/table/table.fixtures.mjs +0 -40
- package/libs/ui/dataviz/src/lib/table/table.component.d.ts +0 -29
- package/libs/ui/dataviz/src/lib/table/table.component.d.ts.map +0 -1
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts +0 -11
- package/libs/ui/dataviz/src/lib/table/table.fixtures.d.ts.map +0 -1
- package/src/libs/ui/dataviz/src/lib/table/table.component.html +0 -40
- package/src/libs/ui/dataviz/src/lib/table/table.component.ts +0 -80
- package/src/libs/ui/dataviz/src/lib/table/table.fixtures.ts +0 -40
|
@@ -3,14 +3,13 @@ import { BehaviorSubject, Observable, of } from 'rxjs'
|
|
|
3
3
|
import {
|
|
4
4
|
catchError,
|
|
5
5
|
finalize,
|
|
6
|
-
map,
|
|
7
6
|
shareReplay,
|
|
8
7
|
startWith,
|
|
9
8
|
switchMap,
|
|
10
9
|
} from 'rxjs/operators'
|
|
11
|
-
import {
|
|
10
|
+
import { BaseReader, FetchError } from '../../../../../../libs/util/data-fetcher/src'
|
|
12
11
|
import { DataService } from '../service/data.service'
|
|
13
|
-
import {
|
|
12
|
+
import { DataTableComponent } from '../../../../../../libs/ui/dataviz/src'
|
|
14
13
|
import { DatasetOnlineResource } from '../../../../../../libs/common/domain/src/lib/model/record'
|
|
15
14
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
16
15
|
import {
|
|
@@ -26,7 +25,7 @@ import { CommonModule } from '@angular/common'
|
|
|
26
25
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
27
26
|
imports: [
|
|
28
27
|
CommonModule,
|
|
29
|
-
|
|
28
|
+
DataTableComponent,
|
|
30
29
|
LoadingMaskComponent,
|
|
31
30
|
PopupAlertComponent,
|
|
32
31
|
TranslateModule,
|
|
@@ -45,25 +44,19 @@ export class TableViewComponent {
|
|
|
45
44
|
tableData$ = this.currentLink$.pipe(
|
|
46
45
|
switchMap((link) => {
|
|
47
46
|
this.error = null
|
|
48
|
-
if (!link) return of(
|
|
47
|
+
if (!link) return of(undefined)
|
|
49
48
|
this.loading = true
|
|
50
|
-
return this.
|
|
51
|
-
map((items) =>
|
|
52
|
-
items.map((item) => ({
|
|
53
|
-
id: item.id,
|
|
54
|
-
...item.properties,
|
|
55
|
-
}))
|
|
56
|
-
),
|
|
49
|
+
return this.getDatasetReader(link).pipe(
|
|
57
50
|
catchError((error) => {
|
|
58
51
|
this.handleError(error)
|
|
59
|
-
return of(
|
|
52
|
+
return of(undefined)
|
|
60
53
|
}),
|
|
61
54
|
finalize(() => {
|
|
62
55
|
this.loading = false
|
|
63
56
|
})
|
|
64
57
|
)
|
|
65
58
|
}),
|
|
66
|
-
startWith(
|
|
59
|
+
startWith(undefined),
|
|
67
60
|
shareReplay(1)
|
|
68
61
|
)
|
|
69
62
|
|
|
@@ -72,10 +65,8 @@ export class TableViewComponent {
|
|
|
72
65
|
private translateService: TranslateService
|
|
73
66
|
) {}
|
|
74
67
|
|
|
75
|
-
|
|
76
|
-
return this.dataService
|
|
77
|
-
.getDataset(link)
|
|
78
|
-
.pipe(switchMap((dataset) => dataset.read()))
|
|
68
|
+
getDatasetReader(link: DatasetOnlineResource): Observable<BaseReader> {
|
|
69
|
+
return this.dataService.getDataset(link)
|
|
79
70
|
}
|
|
80
71
|
|
|
81
72
|
onTableSelect(event) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[thumbnailUrl]="contact.organization?.logoUrl?.href"
|
|
5
5
|
[fit]="'contain'"
|
|
6
6
|
></gn-ui-thumbnail>
|
|
7
|
-
<div class="flex flex-col w-full overflow-hidden leading-snug">
|
|
7
|
+
<div class="flex flex-col w-full overflow-hidden leading-snug justify-center">
|
|
8
8
|
<div class="text-[16px] font-bold text-main" data-test="contactCardName">
|
|
9
9
|
{{ contact.firstName }} {{ contact.lastName }}
|
|
10
10
|
</div>
|
package/src/libs/feature/editor/src/lib/components/generic-keywords/generic-keywords.component.html
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
<ng-icon
|
|
20
20
|
*ngIf="isPlaceWithoutExtent(keyword)"
|
|
21
|
-
[title]="'editor.form.
|
|
21
|
+
[title]="'editor.record.form.keywords.place.withoutExtent' | translate"
|
|
22
22
|
class="badge-warning"
|
|
23
23
|
name="matWarningAmberOutline"
|
|
24
24
|
></ng-icon>
|
package/src/libs/feature/editor/src/lib/components/import-record/import-record.component.html
CHANGED
|
@@ -35,7 +35,10 @@
|
|
|
35
35
|
>
|
|
36
36
|
<ng-icon name="iconoirArrowLeft"></ng-icon>
|
|
37
37
|
</gn-ui-button>
|
|
38
|
-
<span class="font-bold"
|
|
38
|
+
<span class="font-bold" translate
|
|
39
|
+
>dashboard.importRecord.importExternal.title</span
|
|
40
|
+
>
|
|
41
|
+
<span translate>dashboard.importRecord.importExternal.subtitle</span>
|
|
39
42
|
</div>
|
|
40
43
|
<gn-ui-url-input
|
|
41
44
|
(uploadClick)="importRecord($event)"
|
|
@@ -84,10 +84,6 @@ export class ImportRecordComponent {
|
|
|
84
84
|
|
|
85
85
|
sectionDisplayed: ImportMenuPage = 'mainMenu'
|
|
86
86
|
|
|
87
|
-
externalImportBackLabel = this.translateService.instant(
|
|
88
|
-
'dashboard.importRecord.importExternalLabel'
|
|
89
|
-
)
|
|
90
|
-
|
|
91
87
|
constructor(
|
|
92
88
|
private router: Router,
|
|
93
89
|
private translateService: TranslateService,
|
|
@@ -54,8 +54,8 @@ export class OnlineResourceCardComponent {
|
|
|
54
54
|
case 'service':
|
|
55
55
|
case 'download':
|
|
56
56
|
return (
|
|
57
|
-
this.onlineResource.
|
|
58
|
-
this.onlineResource.
|
|
57
|
+
this.onlineResource.description ||
|
|
58
|
+
this.onlineResource.name ||
|
|
59
59
|
'(unknown)'
|
|
60
60
|
)
|
|
61
61
|
case 'endpoint':
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<mat-radio-group
|
|
16
16
|
aria-labelledby="example-radio-group-label"
|
|
17
17
|
class="flex flex-row gap-[8px]"
|
|
18
|
-
[(ngModel)]="
|
|
18
|
+
[(ngModel)]="_service.accessServiceProtocol"
|
|
19
19
|
[disabled]="disabled"
|
|
20
20
|
(change)="resetAllFormFields()"
|
|
21
21
|
>
|
|
@@ -34,11 +34,11 @@
|
|
|
34
34
|
(uploadClick)="handleUploadClick($event)"
|
|
35
35
|
(valueChange)="handleUrlValueChange($event)"
|
|
36
36
|
[disabled]="disabled"
|
|
37
|
-
[value]="url"
|
|
37
|
+
[value]="_service.url?.toString()"
|
|
38
38
|
[showValidateButton]="activeLayerSuggestion"
|
|
39
39
|
>
|
|
40
40
|
<ng-content *ngIf="activeLayerSuggestion">
|
|
41
|
-
<ng-icon name="
|
|
41
|
+
<ng-icon name="iconoirRefresh"></ng-icon>
|
|
42
42
|
</ng-content>
|
|
43
43
|
</gn-ui-url-input>
|
|
44
44
|
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
|
|
49
49
|
<gn-ui-text-input
|
|
50
50
|
class="grow border-b border-gray-300 pb-4"
|
|
51
|
-
[(value)]="
|
|
51
|
+
[(value)]="_service.identifierInService"
|
|
52
52
|
[placeholder]="getIdentifierPlaceholder() | translate"
|
|
53
53
|
data-cy="identifier-in-service"
|
|
54
54
|
[disabled]="disabled"
|
|
55
55
|
*ngIf="
|
|
56
56
|
!activeLayerSuggestion ||
|
|
57
|
-
(url && errorMessage) ||
|
|
57
|
+
(_service.url && errorMessage) ||
|
|
58
58
|
(modifyMode && (layers$ | async).length === 0)
|
|
59
59
|
"
|
|
60
60
|
></gn-ui-text-input>
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
>
|
|
74
74
|
</gn-ui-autocomplete>
|
|
75
75
|
<gn-ui-button
|
|
76
|
-
(buttonClick)="
|
|
77
|
-
[disabled]="disabled || !
|
|
76
|
+
(buttonClick)="submit()"
|
|
77
|
+
[disabled]="disabled || !_service.identifierInService"
|
|
78
78
|
type="primary"
|
|
79
79
|
*ngIf="
|
|
80
80
|
!modifyMode &&
|
|
81
81
|
((activeLayerSuggestion && (layers$ | async)) ||
|
|
82
82
|
!activeLayerSuggestion ||
|
|
83
|
-
(url && errorMessage))
|
|
83
|
+
(_service.url && errorMessage))
|
|
84
84
|
"
|
|
85
85
|
>
|
|
86
86
|
<span class="text-white font-bold" translate>
|
|
@@ -5,8 +5,6 @@ import {
|
|
|
5
5
|
Component,
|
|
6
6
|
EventEmitter,
|
|
7
7
|
Input,
|
|
8
|
-
OnChanges,
|
|
9
|
-
OnInit,
|
|
10
8
|
Output,
|
|
11
9
|
} from '@angular/core'
|
|
12
10
|
import { FormsModule } from '@angular/forms'
|
|
@@ -23,23 +21,27 @@ import {
|
|
|
23
21
|
TextInputComponent,
|
|
24
22
|
UrlInputComponent,
|
|
25
23
|
} from '../../../../../../../libs/ui/inputs/src'
|
|
26
|
-
import {
|
|
24
|
+
import { createFuzzyFilter, getLayers } from '../../../../../../../libs/util/shared/src'
|
|
27
25
|
import {
|
|
28
26
|
NgIconComponent,
|
|
29
27
|
provideIcons,
|
|
30
28
|
provideNgIconsConfig,
|
|
31
29
|
} from '@ng-icons/core'
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
30
|
+
import { iconoirRefresh } from '@ng-icons/iconoir'
|
|
31
|
+
import { TranslateModule } from '@ngx-translate/core'
|
|
34
32
|
import {
|
|
35
33
|
BehaviorSubject,
|
|
36
34
|
debounceTime,
|
|
37
35
|
distinctUntilChanged,
|
|
38
|
-
map,
|
|
39
36
|
Observable,
|
|
40
37
|
switchMap,
|
|
41
38
|
} from 'rxjs'
|
|
42
39
|
|
|
40
|
+
marker('editor.record.form.field.onlineResource.edit.identifier.placeholder')
|
|
41
|
+
marker(
|
|
42
|
+
'editor.record.form.field.onlineResource.edit.identifier.placeholder.wps'
|
|
43
|
+
)
|
|
44
|
+
|
|
43
45
|
@Component({
|
|
44
46
|
selector: 'gn-ui-online-service-resource-input',
|
|
45
47
|
templateUrl: './online-service-resource-input.component.html',
|
|
@@ -59,26 +61,25 @@ import {
|
|
|
59
61
|
UrlInputComponent,
|
|
60
62
|
],
|
|
61
63
|
providers: [
|
|
62
|
-
provideIcons({
|
|
64
|
+
provideIcons({ iconoirRefresh }),
|
|
63
65
|
provideNgIconsConfig({
|
|
64
66
|
size: '1.5em',
|
|
65
67
|
}),
|
|
66
68
|
],
|
|
67
69
|
})
|
|
68
|
-
export class OnlineServiceResourceInputComponent
|
|
69
|
-
|
|
70
|
+
export class OnlineServiceResourceInputComponent {
|
|
71
|
+
_service: DatasetServiceDistribution
|
|
72
|
+
@Input() set service(service: DatasetServiceDistribution) {
|
|
73
|
+
this._service = { ...service }
|
|
74
|
+
}
|
|
70
75
|
@Input() protocolHint?: string
|
|
71
76
|
@Input() disabled? = false
|
|
72
77
|
@Input() modifyMode? = false
|
|
73
|
-
@Output()
|
|
74
|
-
|
|
75
|
-
url: string
|
|
76
|
-
identifier: string
|
|
77
|
-
}> = new EventEmitter()
|
|
78
|
+
@Output() serviceChange: EventEmitter<DatasetServiceDistribution> =
|
|
79
|
+
new EventEmitter()
|
|
78
80
|
|
|
79
81
|
errorMessage = false
|
|
80
|
-
|
|
81
|
-
url = ''
|
|
82
|
+
|
|
82
83
|
layersSubject = new BehaviorSubject<{ name: string; title: string }[]>([])
|
|
83
84
|
layers$: Observable<{ name: string; title: string }[]> =
|
|
84
85
|
this.layersSubject.asObservable()
|
|
@@ -121,35 +122,18 @@ export class OnlineServiceResourceInputComponent implements OnChanges, OnInit {
|
|
|
121
122
|
|
|
122
123
|
get activeLayerSuggestion() {
|
|
123
124
|
return !['wps', 'GPFDL', 'esriRest', 'other'].includes(
|
|
124
|
-
this.
|
|
125
|
+
this._service.accessServiceProtocol
|
|
125
126
|
)
|
|
126
127
|
}
|
|
127
128
|
|
|
128
|
-
ngOnChanges() {
|
|
129
|
-
this.selectedProtocol =
|
|
130
|
-
this.protocolOptions.find(
|
|
131
|
-
(option) => option.value === this.service.accessServiceProtocol
|
|
132
|
-
)?.value ?? 'other'
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
ngOnInit() {
|
|
136
|
-
if (this.service.url) {
|
|
137
|
-
this.url = this.service.url.toString()
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
129
|
handleUrlValueChange(url: string) {
|
|
142
|
-
this.url = url
|
|
143
|
-
this.service.url = url ? new URL(url) : undefined
|
|
130
|
+
this._service.url = url ? new URL(url) : undefined
|
|
144
131
|
this.resetLayersSuggestion()
|
|
145
|
-
this.urlChange.emit(this.url)
|
|
146
132
|
}
|
|
147
133
|
|
|
148
134
|
async handleUploadClick(url: string) {
|
|
149
|
-
this.url = url
|
|
150
|
-
|
|
151
135
|
try {
|
|
152
|
-
const layers = await getLayers(url, this.
|
|
136
|
+
const layers = await getLayers(url, this._service.accessServiceProtocol)
|
|
153
137
|
|
|
154
138
|
if (layers.length === 0) {
|
|
155
139
|
throw new Error('No layers found')
|
|
@@ -165,27 +149,29 @@ export class OnlineServiceResourceInputComponent implements OnChanges, OnInit {
|
|
|
165
149
|
}
|
|
166
150
|
|
|
167
151
|
resetAllFormFields() {
|
|
168
|
-
this.url =
|
|
169
|
-
this.service.url = null
|
|
152
|
+
this._service.url = null
|
|
170
153
|
this.resetLayersSuggestion()
|
|
171
154
|
}
|
|
172
155
|
|
|
173
156
|
resetLayersSuggestion() {
|
|
174
157
|
this.errorMessage = false
|
|
175
158
|
this.layersSubject.next([])
|
|
176
|
-
this.
|
|
159
|
+
this._service.identifierInService = null
|
|
177
160
|
}
|
|
178
161
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
162
|
+
submit() {
|
|
163
|
+
this.serviceChange.emit({
|
|
164
|
+
...this._service,
|
|
165
|
+
name: this._service.identifierInService, // should we keep the identifierInService? read-write duplicate with name
|
|
166
|
+
})
|
|
167
|
+
this._service.accessServiceProtocol = 'ogcFeatures'
|
|
168
|
+
this.resetAllFormFields()
|
|
183
169
|
}
|
|
184
170
|
|
|
185
171
|
getIdentifierPlaceholder(): string {
|
|
186
172
|
const baseKey =
|
|
187
173
|
'editor.record.form.field.onlineResource.edit.identifier.placeholder'
|
|
188
|
-
return this.
|
|
174
|
+
return this._service.accessServiceProtocol === 'wps'
|
|
189
175
|
? `${baseKey}.wps`
|
|
190
176
|
: baseKey
|
|
191
177
|
}
|
|
@@ -217,6 +203,7 @@ export class OnlineServiceResourceInputComponent implements OnChanges, OnInit {
|
|
|
217
203
|
* gn-ui-autocomplete
|
|
218
204
|
*/
|
|
219
205
|
handleSelectValue(val: { name: string; title: string }) {
|
|
220
|
-
this.
|
|
206
|
+
this._service.identifierInService = val.name // should we keep the identifierInService? read-write duplicate with name
|
|
207
|
+
this._service.description = val.title
|
|
221
208
|
}
|
|
222
209
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="flex flex-col gap-3">
|
|
2
2
|
<gn-ui-autocomplete
|
|
3
|
-
[placeholder]="'
|
|
3
|
+
[placeholder]="'editor.record.form.field.contacts.placeholder' | translate"
|
|
4
4
|
[action]="autoCompleteAction"
|
|
5
5
|
(itemSelected)="addContact($event)"
|
|
6
6
|
[displayWithFn]="displayWithFn"
|
|
@@ -31,7 +31,9 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
33
|
<gn-ui-autocomplete
|
|
34
|
-
[placeholder]="
|
|
34
|
+
[placeholder]="
|
|
35
|
+
'editor.record.form.field.contactsForResource.placeholder' | translate
|
|
36
|
+
"
|
|
35
37
|
[action]="autoCompleteAction"
|
|
36
38
|
(itemSelected)="addContact($event, role)"
|
|
37
39
|
[displayWithFn]="displayWithFn"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<gn-ui-generic-keywords
|
|
3
3
|
[keywords]="filteredKeywords"
|
|
4
4
|
[keywordTypes]="keywordTypes"
|
|
5
|
-
[placeholder]="'editor.form.keywords.placeholder' | translate"
|
|
5
|
+
[placeholder]="'editor.record.form.keywords.placeholder' | translate"
|
|
6
6
|
(changedKeywords)="handleKeywordsChange($event)"
|
|
7
7
|
[allowSubmit]="false"
|
|
8
8
|
>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CommonModule } from '@angular/common'
|
|
1
2
|
import {
|
|
2
3
|
ChangeDetectionStrategy,
|
|
3
4
|
ChangeDetectorRef,
|
|
@@ -8,28 +9,27 @@ import {
|
|
|
8
9
|
TemplateRef,
|
|
9
10
|
ViewChild,
|
|
10
11
|
} from '@angular/core'
|
|
12
|
+
import { MatDialog } from '@angular/material/dialog'
|
|
11
13
|
import {
|
|
12
14
|
OnlineLinkResource,
|
|
13
15
|
OnlineResource,
|
|
14
16
|
} from '../../../../../../../../../libs/common/domain/src/lib/model/record'
|
|
17
|
+
import { PlatformServiceInterface } from '../../../../../../../../../libs/common/domain/src/lib/platform.service.interface'
|
|
18
|
+
import { NotificationsService } from '../../../../../../../../../libs/feature/notifications/src'
|
|
15
19
|
import {
|
|
16
20
|
FileInputComponent,
|
|
17
21
|
TextAreaComponent,
|
|
18
22
|
TextInputComponent,
|
|
19
23
|
UrlInputComponent,
|
|
20
24
|
} from '../../../../../../../../../libs/ui/inputs/src'
|
|
21
|
-
import { CommonModule } from '@angular/common'
|
|
22
|
-
import { OnlineResourceCardComponent } from '../../../online-resource-card/online-resource-card.component'
|
|
23
25
|
import {
|
|
24
26
|
ModalDialogComponent,
|
|
25
27
|
SortableListComponent,
|
|
26
28
|
} from '../../../../../../../../../libs/ui/layout/src'
|
|
27
|
-
import { NotificationsService } from '../../../../../../../../../libs/feature/notifications/src'
|
|
28
29
|
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
29
|
-
import {
|
|
30
|
-
import { map, Subscription } from 'rxjs'
|
|
31
|
-
import { MatDialog } from '@angular/material/dialog'
|
|
30
|
+
import { Subscription } from 'rxjs'
|
|
32
31
|
import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config'
|
|
32
|
+
import { OnlineResourceCardComponent } from '../../../online-resource-card/online-resource-card.component'
|
|
33
33
|
|
|
34
34
|
@Component({
|
|
35
35
|
selector: 'gn-ui-form-field-online-link-resources',
|
|
@@ -20,8 +20,7 @@
|
|
|
20
20
|
>
|
|
21
21
|
<gn-ui-online-service-resource-input
|
|
22
22
|
[service]="newService"
|
|
23
|
-
|
|
24
|
-
(identifierSubmit)="handleIdentifierSubmit($event)"
|
|
23
|
+
(serviceChange)="handleServiceChange($event)"
|
|
25
24
|
></gn-ui-online-service-resource-input>
|
|
26
25
|
</div>
|
|
27
26
|
<div class="h-[8px]"></div>
|
|
@@ -40,28 +39,36 @@
|
|
|
40
39
|
|
|
41
40
|
<ng-template #dialogTemplate let-onlineResource>
|
|
42
41
|
<div class="flex flex-col gap-[16px]">
|
|
43
|
-
<div>
|
|
44
|
-
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
45
|
-
editor.record.form.field.onlineResource.edit.title
|
|
46
|
-
</h3>
|
|
47
|
-
<gn-ui-text-input [(value)]="onlineResource.name"></gn-ui-text-input>
|
|
48
|
-
</div>
|
|
49
|
-
<div>
|
|
50
|
-
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
51
|
-
editor.record.form.field.onlineResource.edit.description
|
|
52
|
-
</h3>
|
|
53
|
-
<gn-ui-text-area
|
|
54
|
-
[(value)]="onlineResource.description"
|
|
55
|
-
></gn-ui-text-area>
|
|
56
|
-
</div>
|
|
57
42
|
<ng-container *ngIf="onlineResource.type === 'service'; else urlInput">
|
|
58
|
-
<span class="w-full border-b border-gray-300"></span>
|
|
59
43
|
<gn-ui-online-service-resource-input
|
|
60
44
|
[service]="onlineResource"
|
|
61
45
|
[modifyMode]="true"
|
|
46
|
+
[disabled]="true"
|
|
62
47
|
></gn-ui-online-service-resource-input>
|
|
48
|
+
<div>
|
|
49
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
50
|
+
editor.record.form.field.onlineResource.edit.description
|
|
51
|
+
</h3>
|
|
52
|
+
<gn-ui-text-area
|
|
53
|
+
[(value)]="onlineResource.description"
|
|
54
|
+
></gn-ui-text-area>
|
|
55
|
+
</div>
|
|
63
56
|
</ng-container>
|
|
64
57
|
<ng-template #urlInput>
|
|
58
|
+
<div>
|
|
59
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
60
|
+
editor.record.form.field.onlineResource.edit.title
|
|
61
|
+
</h3>
|
|
62
|
+
<gn-ui-text-input [(value)]="onlineResource.name"></gn-ui-text-input>
|
|
63
|
+
</div>
|
|
64
|
+
<div>
|
|
65
|
+
<h3 class="text-[16px] font-bold text-main mb-[12px]" translate>
|
|
66
|
+
editor.record.form.field.onlineResource.edit.description
|
|
67
|
+
</h3>
|
|
68
|
+
<gn-ui-text-area
|
|
69
|
+
[(value)]="onlineResource.description"
|
|
70
|
+
></gn-ui-text-area>
|
|
71
|
+
</div>
|
|
65
72
|
<span class="w-full border-b border-gray-300"></span>
|
|
66
73
|
<gn-ui-url-input
|
|
67
74
|
class="w-full"
|
|
@@ -159,33 +159,8 @@ export class FormFieldOnlineResourcesComponent {
|
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
|
|
163
|
-
this.valueChange.emit([
|
|
164
|
-
...this.allResources,
|
|
165
|
-
{
|
|
166
|
-
...this.newService,
|
|
167
|
-
url: new URL(url),
|
|
168
|
-
},
|
|
169
|
-
])
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
handleIdentifierSubmit(payload: { url: string; identifier: string }) {
|
|
173
|
-
this.valueChange.emit([
|
|
174
|
-
...this.allResources,
|
|
175
|
-
{
|
|
176
|
-
...this.newService,
|
|
177
|
-
url: new URL(payload.url),
|
|
178
|
-
},
|
|
179
|
-
])
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
handleServiceModify(
|
|
183
|
-
oldService: DatasetServiceDistribution,
|
|
184
|
-
newService: DatasetServiceDistribution
|
|
185
|
-
) {
|
|
186
|
-
oldService.accessServiceProtocol = newService.accessServiceProtocol
|
|
187
|
-
oldService.identifierInService = newService.identifierInService
|
|
188
|
-
oldService.url = newService.url
|
|
162
|
+
handleServiceChange(service: DatasetServiceDistribution) {
|
|
163
|
+
this.valueChange.emit([...this.allResources, service])
|
|
189
164
|
}
|
|
190
165
|
|
|
191
166
|
handleResourcesChange(items: unknown[]) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<div class="flex flex-col gap-3">
|
|
2
2
|
<gn-ui-generic-keywords
|
|
3
|
-
[placeholder]="'
|
|
3
|
+
[placeholder]="'editor.record.form.keywords.place.placeholder' | translate"
|
|
4
4
|
[keywords]="shownKeywords$ | async"
|
|
5
5
|
[keywordTypes]="['place']"
|
|
6
6
|
(deletedKeyword)="handleKeywordDelete($event)"
|
|
@@ -10,7 +10,7 @@ import { firstValueFrom, map, shareReplay } from 'rxjs'
|
|
|
10
10
|
import { EditorFacade } from '../../../../+state/editor.facade'
|
|
11
11
|
import { switchMap } from 'rxjs/operators'
|
|
12
12
|
import { FormFieldMapContainerComponent } from '../form-field-map-container/form-field-map-container.component'
|
|
13
|
-
import { TranslateService } from '@ngx-translate/core'
|
|
13
|
+
import { TranslateModule, TranslateService } from '@ngx-translate/core'
|
|
14
14
|
import { SPATIAL_SCOPES } from '../../../../fields.config'
|
|
15
15
|
|
|
16
16
|
// This intermediary type will let us keep track of which keyword is bound to
|
|
@@ -36,6 +36,7 @@ type KeywordWithExtent = Keyword & {
|
|
|
36
36
|
CommonModule,
|
|
37
37
|
GenericKeywordsComponent,
|
|
38
38
|
FormFieldMapContainerComponent,
|
|
39
|
+
TranslateModule,
|
|
39
40
|
],
|
|
40
41
|
})
|
|
41
42
|
export class FormFieldSpatialExtentComponent {
|
package/src/libs/feature/editor/src/lib/components/wizard-summarize/wizard-summarize.component.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Component } from '@angular/core'
|
|
2
2
|
import { WizardService } from '../../services/wizard.service'
|
|
3
|
-
import {
|
|
3
|
+
import { DateService } from '../../../../../../../libs/util/shared/src'
|
|
4
4
|
|
|
5
5
|
@Component({
|
|
6
6
|
selector: 'gn-ui-wizard-summarize',
|
|
@@ -28,9 +28,8 @@ export class WizardSummarizeComponent {
|
|
|
28
28
|
|
|
29
29
|
get createdDate() {
|
|
30
30
|
const time = this.wizardService.getWizardFieldData('datepicker')
|
|
31
|
-
const locale = this.translateService.currentLang
|
|
32
31
|
|
|
33
|
-
return new Date(Number(time))
|
|
32
|
+
return this.dateService.formatDate(new Date(Number(time)), {
|
|
34
33
|
year: 'numeric',
|
|
35
34
|
month: 'long',
|
|
36
35
|
day: 'numeric',
|
|
@@ -54,6 +53,6 @@ export class WizardSummarizeComponent {
|
|
|
54
53
|
|
|
55
54
|
constructor(
|
|
56
55
|
private wizardService: WizardService,
|
|
57
|
-
private
|
|
56
|
+
private dateService: DateService
|
|
58
57
|
) {}
|
|
59
58
|
}
|
|
@@ -63,6 +63,8 @@ export const RECORD_KEYWORDS_FIELD: EditorField = {
|
|
|
63
63
|
model: 'keywords',
|
|
64
64
|
formFieldConfig: {},
|
|
65
65
|
}
|
|
66
|
+
// keeping track of the label to not lose existing translation
|
|
67
|
+
marker('editor.record.form.field.keywords')
|
|
66
68
|
|
|
67
69
|
export const RECORD_RESOURCE_CREATED_FIELD: EditorField = {
|
|
68
70
|
model: 'resourceCreated',
|
|
@@ -156,18 +158,24 @@ export const RECORD_SPATIAL_EXTENTS_FIELD: EditorField = {
|
|
|
156
158
|
model: 'spatialExtents',
|
|
157
159
|
formFieldConfig: {},
|
|
158
160
|
}
|
|
161
|
+
// keeping track of the label to not lose existing translation
|
|
162
|
+
marker('editor.record.form.field.spatialExtents')
|
|
159
163
|
|
|
160
164
|
export const RECORD_ONLINE_RESOURCES: EditorField = {
|
|
161
165
|
model: 'onlineResources',
|
|
162
166
|
modelSpecifier: 'onlineResourceType:!link',
|
|
163
167
|
formFieldConfig: {},
|
|
164
168
|
}
|
|
169
|
+
// keeping track of the label to not lose existing translation
|
|
170
|
+
marker('editor.record.form.field.onlineResources')
|
|
165
171
|
|
|
166
172
|
export const RECORD_ONLINE_LINK_RESOURCES: EditorField = {
|
|
167
173
|
model: 'onlineResources',
|
|
168
174
|
modelSpecifier: 'onlineResourceType:link',
|
|
169
175
|
formFieldConfig: {},
|
|
170
176
|
}
|
|
177
|
+
// keeping track of the label to not lose existing translation
|
|
178
|
+
marker('editor.record.form.field.onlineLinkResources')
|
|
171
179
|
|
|
172
180
|
/************************************************************
|
|
173
181
|
*************** SECTIONS *****************
|
|
@@ -273,7 +281,7 @@ export const DEFAULT_CONFIGURATION: EditorConfig = {
|
|
|
273
281
|
],
|
|
274
282
|
},
|
|
275
283
|
{
|
|
276
|
-
labelKey: marker('editor.record.form.page.
|
|
284
|
+
labelKey: marker('editor.record.form.page.resources'),
|
|
277
285
|
sections: [ASSOCIATED_RESOURCES_SECTION, ANNEXES_SECTION],
|
|
278
286
|
},
|
|
279
287
|
{
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
<div class="w-full h-full flex flex-col p-1">
|
|
2
2
|
<gn-ui-dropdown-selector
|
|
3
3
|
*ngIf="dropdownChoices$ | async as choices"
|
|
4
|
+
[ngClass]="{ hidden: !displaySource }"
|
|
4
5
|
[title]="'table.select.data' | translate"
|
|
5
6
|
class="truncate p-1 -mx-1 self-end mb-1"
|
|
6
7
|
extraBtnClass="!text-primary font-sans font-medium"
|
|
7
8
|
[choices]="choices"
|
|
8
9
|
(selectValue)="selectLink($event)"
|
|
9
10
|
></gn-ui-dropdown-selector>
|
|
10
|
-
<div class="relative h-[
|
|
11
|
+
<div class="relative h-[460px]">
|
|
11
12
|
<gn-ui-table-view
|
|
12
13
|
*ngIf="mode === 'table'"
|
|
13
14
|
[link]="selectedLink$ | async"
|
|
@@ -34,6 +34,7 @@ import { TranslateModule } from '@ngx-translate/core'
|
|
|
34
34
|
})
|
|
35
35
|
export class DataViewComponent {
|
|
36
36
|
@Input() mode: 'table' | 'chart'
|
|
37
|
+
@Input() displaySource = true
|
|
37
38
|
@Output() chartConfig$ = new BehaviorSubject<DatavizConfigurationModel>(null)
|
|
38
39
|
compatibleDataLinks$ = combineLatest([
|
|
39
40
|
this.mdViewFacade.dataLinks$,
|