geonetwork-ui 2.11.0-dev.ca7fb6b05 → 2.11.0-dev.d02d7f3f8
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/fesm2022/geonetwork-ui.mjs +2058 -1186
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +386 -139
- package/index.d.ts.map +1 -1
- package/package.json +7 -5
- package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +2 -0
- package/src/libs/api/metadata-converter/src/lib/fixtures/mel.records.dataset+featurecatalog.ts +395 -0
- package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +35 -8
- package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +19 -0
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +17 -6
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +110 -0
- package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +131 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +9 -0
- package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -1
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/constant.ts +4 -0
- package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +174 -55
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +82 -35
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/common/domain/src/lib/model/record/flags.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -18
- package/src/libs/common/domain/src/lib/model/search/aggregation.model.ts +2 -0
- package/src/libs/common/domain/src/lib/model/search/filter.model.ts +24 -2
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +20 -1
- package/src/libs/common/fixtures/src/lib/records.fixtures.ts +42 -62
- package/src/libs/feature/dataviz/src/lib/service/data.service.ts +32 -19
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.html +18 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.ts +86 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +100 -88
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -4
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +18 -4
- package/src/libs/feature/editor/src/lib/expressions.ts +67 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +13 -0
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +10 -4
- package/src/libs/feature/map/src/index.ts +0 -2
- package/src/libs/feature/map/src/lib/add-layer-from-file/add-layer-from-file.component.html +1 -0
- package/src/libs/feature/map/src/lib/feature-map.module.ts +1 -8
- package/src/libs/feature/notifications/src/lib/notifications.service.ts +6 -4
- package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.ts +8 -3
- package/src/libs/feature/record/src/lib/state/mdview.effects.ts +3 -1
- package/src/libs/feature/record/src/lib/state/mdview.facade.ts +1 -1
- package/src/libs/feature/router/src/lib/default/state/query-params.utils.ts +1 -1
- package/src/libs/feature/search/src/index.ts +2 -0
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html +18 -4
- package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +80 -19
- package/src/libs/feature/search/src/lib/geocoding/geocoding.service.ts +105 -0
- package/src/libs/feature/search/src/lib/location-search/location-search.component.html +18 -0
- package/src/libs/feature/search/src/lib/location-search/location-search.component.ts +114 -0
- package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.ts +19 -8
- package/src/libs/feature/search/src/lib/state/reducer.ts +1 -4
- package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +64 -4
- package/src/libs/feature/search/src/lib/utils/service/fields.ts +94 -10
- package/src/libs/ui/elements/src/lib/kind-badge/kind-badge.component.html +5 -1
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +3 -3
- package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +2 -2
- package/src/libs/ui/elements/src/lib/service-capabilities/service-capabilities.component.ts +2 -1
- package/src/libs/ui/elements/src/lib/thumbnail/thumbnail.component.html +1 -1
- package/src/libs/ui/inputs/src/index.ts +2 -0
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -4
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +12 -3
- package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +11 -3
- package/src/libs/ui/inputs/src/lib/date-adapter.providers.ts +30 -0
- package/src/libs/ui/inputs/src/lib/date-picker/date-picker.component.ts +3 -24
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.css +37 -3
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.html +135 -16
- package/src/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts +166 -29
- package/src/libs/ui/inputs/src/lib/date-range-picker/date-range-picker.component.ts +3 -7
- package/src/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.css +1 -0
- package/src/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.html +20 -7
- package/src/libs/ui/inputs/src/lib/drag-and-drop-file-input/drag-and-drop-file-input.component.ts +46 -5
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +7 -4
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +12 -9
- package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.model.ts +2 -2
- package/src/libs/ui/inputs/src/lib/inline-filter/inline-filter.component.html +6 -11
- package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +2 -1
- package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.css +0 -0
- package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.html +117 -0
- package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.ts +244 -0
- package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +1 -0
- package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +2 -0
- package/src/libs/ui/search/src/lib/results-hits-number/results-hits-number.component.html +1 -0
- package/src/libs/util/app-config/src/index.ts +1 -0
- package/src/libs/util/app-config/src/lib/app-config.ts +338 -247
- package/src/libs/util/app-config/src/lib/fixtures.ts +37 -1
- package/src/libs/util/app-config/src/lib/model.ts +42 -1
- package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
- package/src/libs/util/shared/src/index.ts +1 -0
- package/src/libs/util/shared/src/lib/autofocus.directive.ts +26 -0
- package/src/libs/util/shared/src/lib/links/link-utils.ts +19 -10
- package/src/libs/util/shared/src/lib/services/date.service.ts +3 -3
- package/src/libs/util/shared/src/lib/utils/file.ts +15 -0
- package/src/libs/util/shared/src/lib/utils/geojson.ts +45 -10
- package/src/libs/util/shared/src/lib/utils/index.ts +1 -0
- package/tailwind.base.css +5 -0
- package/translations/de.json +28 -4
- package/translations/en.json +27 -3
- package/translations/es.json +26 -2
- package/translations/fr.json +32 -8
- package/translations/it.json +26 -2
- package/translations/nl.json +26 -2
- package/translations/pt.json +26 -2
- package/translations/sk.json +26 -2
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +0 -41
- package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +0 -112
- package/src/libs/feature/map/src/lib/geocoding.service.ts +0 -57
- package/src/libs/feature/map/src/lib/style/index.ts +0 -2
- package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +0 -47
- package/src/libs/feature/map/src/lib/style/map-style.service.ts +0 -108
- /package/src/libs/feature/{map/src/lib/geocoding/geocoding.component.css → editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.css} +0 -0
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as geojson from 'geojson';
|
|
2
|
-
import { Geometry, Feature,
|
|
2
|
+
import { Geometry, Feature, FeatureCollection } from 'geojson';
|
|
3
3
|
import { XmlElement, XmlDocument, XmlComment, XmlProcessingInstruction, XmlDeclaration, XmlDocumentType, XmlCdata, XmlText } from '@rgrove/parse-xml';
|
|
4
4
|
export { XmlDocument, XmlElement } from '@rgrove/parse-xml';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { InjectionToken, Provider, OnInit, AfterViewInit, OnDestroy, OnChanges, ElementRef, EventEmitter, SimpleChanges, TemplateRef, Type, ViewContainerRef,
|
|
6
|
+
import { InjectionToken, Provider, OnInit, AfterViewInit, OnDestroy, OnChanges, ElementRef, EventEmitter, SimpleChanges, TemplateRef, Type, ViewContainerRef, QueryList, Injector, AfterViewChecked, Signal, ModuleWithProviders, EnvironmentProviders } from '@angular/core';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
8
8
|
import { Observable, Subject, BehaviorSubject, Subscription, ReplaySubject } from 'rxjs';
|
|
9
9
|
import { Store, NamedNode } from 'rdflib';
|
|
@@ -14,13 +14,13 @@ import * as _geospatial_sdk_core from '@geospatial-sdk/core';
|
|
|
14
14
|
import { MapContext, MapContextLayer, MapContextLayerMapLibreStyle, Extent, SourceLoadErrorEvent, MapContextLayerGeojson } from '@geospatial-sdk/core';
|
|
15
15
|
import * as _ngrx_store from '@ngrx/store';
|
|
16
16
|
import { Action } from '@ngrx/store';
|
|
17
|
-
import { Style } from 'ol/style.js';
|
|
18
|
-
import { StyleLike } from 'ol/style/Style.js';
|
|
19
17
|
import * as _ngrx_effects from '@ngrx/effects';
|
|
20
|
-
import
|
|
18
|
+
import { GeoadminOptions, GeonamesOptions, GeoplateformeOptions, GeocodingResult } from '@geospatial-sdk/geocoding';
|
|
21
19
|
import { UntypedFormControl, FormControl } from '@angular/forms';
|
|
22
20
|
import { MatAutocompleteTrigger, MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
23
|
-
import * as
|
|
21
|
+
import * as geonetwork_ui from 'geonetwork-ui';
|
|
22
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
23
|
+
import { CdkOverlayOrigin, ConnectedPosition, CdkConnectedOverlay, CdkScrollable } from '@angular/cdk/overlay';
|
|
24
24
|
import { OgcApiEndpoint, WfsEndpoint, MimeType, WfsFeatureTypeFull, WmsLayerFull, WmtsLayer, StacItem, WfsVersion, OgcApiCollectionInfo, OgcApiRecord, GetCollectionItemsOptions, StacItemsDocument } from '@camptocamp/ogc-client';
|
|
25
25
|
import OlMap from 'ol/Map.js';
|
|
26
26
|
import { Extent as Extent$1, MapContext as MapContext$1 } from '@geospatial-sdk/core/dist/model';
|
|
@@ -38,8 +38,6 @@ import * as chart_js from 'chart.js';
|
|
|
38
38
|
import { Chart, ChartType, ChartData, ChartOptions } from 'chart.js';
|
|
39
39
|
import Duration from 'duration-relativetimeformat';
|
|
40
40
|
import { MatMenuTrigger } from '@angular/material/menu';
|
|
41
|
-
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
42
|
-
import { CdkOverlayOrigin, CdkConnectedOverlay, ConnectedPosition, CdkScrollable } from '@angular/cdk/overlay';
|
|
43
41
|
import { CdkScrollable as CdkScrollable$1 } from '@angular/cdk/scrolling';
|
|
44
42
|
import { EmblaCarouselType } from 'embla-carousel';
|
|
45
43
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
@@ -262,6 +260,7 @@ interface DatasetRecord extends BaseRecord {
|
|
|
262
260
|
spatialExtents: Array<DatasetSpatialExtent>;
|
|
263
261
|
temporalExtents: Array<DatasetTemporalExtent>;
|
|
264
262
|
spatialRepresentation?: SpatialRepresentationType;
|
|
263
|
+
featureTypeDescriptions?: Array<DatasetFeatureType>;
|
|
265
264
|
}
|
|
266
265
|
interface ServiceEndpoint {
|
|
267
266
|
url: URL;
|
|
@@ -288,33 +287,28 @@ interface ReuseRecord extends BaseRecord {
|
|
|
288
287
|
spatialExtents: Array<DatasetSpatialExtent>;
|
|
289
288
|
temporalExtents: Array<DatasetTemporalExtent>;
|
|
290
289
|
}
|
|
290
|
+
interface DatasetFeatureType {
|
|
291
|
+
name: string;
|
|
292
|
+
label?: string;
|
|
293
|
+
description?: string;
|
|
294
|
+
attributes: DatasetFeatureAttribute[];
|
|
295
|
+
}
|
|
291
296
|
type DatasetFeatureCatalog = {
|
|
292
|
-
featureTypes: Array<
|
|
293
|
-
name: string;
|
|
294
|
-
definition: string;
|
|
295
|
-
attributes: DatasetFeatureAttribute[];
|
|
296
|
-
}>;
|
|
297
|
+
featureTypes: Array<DatasetFeatureType>;
|
|
297
298
|
};
|
|
298
299
|
interface DatasetFeatureAttributeValue {
|
|
299
|
-
|
|
300
|
-
definition?: string;
|
|
300
|
+
value: string;
|
|
301
301
|
label?: string;
|
|
302
|
+
description?: string;
|
|
302
303
|
}
|
|
303
304
|
interface DatasetFeatureAttribute {
|
|
304
305
|
name: string;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
306
|
+
label?: string;
|
|
307
|
+
description?: string;
|
|
308
|
+
type?: string;
|
|
309
|
+
code?: string;
|
|
308
310
|
values?: Array<DatasetFeatureAttributeValue>;
|
|
309
311
|
}
|
|
310
|
-
interface DatasetFeatureType {
|
|
311
|
-
aliases: string;
|
|
312
|
-
code: string;
|
|
313
|
-
isAbstract: string;
|
|
314
|
-
typeName: string;
|
|
315
|
-
definition: string;
|
|
316
|
-
attributeTable: Array<DatasetFeatureAttribute>;
|
|
317
|
-
}
|
|
318
312
|
type ReuseType = 'application' | 'map' | 'other';
|
|
319
313
|
type OnlineResource = DatasetOnlineResource | ServiceOnlineResource;
|
|
320
314
|
type CatalogRecord = DatasetRecord | ReuseRecord | ServiceRecord;
|
|
@@ -335,6 +329,8 @@ interface UserFeedbackViewModel extends UserFeedback {
|
|
|
335
329
|
avatarUrl: string;
|
|
336
330
|
}
|
|
337
331
|
|
|
332
|
+
type RecordFlag = 'IS_REFERENCE_DATASET';
|
|
333
|
+
|
|
338
334
|
declare class MetadataMapperContext {
|
|
339
335
|
readonly location?: any;
|
|
340
336
|
}
|
|
@@ -481,6 +477,26 @@ interface Link {
|
|
|
481
477
|
applicationProfile?: string;
|
|
482
478
|
group?: number;
|
|
483
479
|
}
|
|
480
|
+
interface FeatureTypeAttribute {
|
|
481
|
+
name: string;
|
|
482
|
+
code: string;
|
|
483
|
+
link: string;
|
|
484
|
+
definition: string;
|
|
485
|
+
type: string;
|
|
486
|
+
values?: Array<{
|
|
487
|
+
code?: string;
|
|
488
|
+
label?: string;
|
|
489
|
+
description?: string;
|
|
490
|
+
}>;
|
|
491
|
+
}
|
|
492
|
+
interface FeatureType {
|
|
493
|
+
typeName: string;
|
|
494
|
+
definition: string;
|
|
495
|
+
code: string;
|
|
496
|
+
aliases: string;
|
|
497
|
+
isAbstract: string;
|
|
498
|
+
attributeTable: FeatureTypeAttribute[];
|
|
499
|
+
}
|
|
484
500
|
type MetadataObject = Partial<{
|
|
485
501
|
MD_ConstraintsUseLimitationObject: MultilingualField[];
|
|
486
502
|
MD_LegalConstraintsOtherConstraintsObject: MultilingualField[];
|
|
@@ -511,6 +527,7 @@ type MetadataObject = Partial<{
|
|
|
511
527
|
extentDescriptionObject: MultilingualField[];
|
|
512
528
|
extra: string;
|
|
513
529
|
featureOfRecord: string;
|
|
530
|
+
featureTypes: FeatureType[];
|
|
514
531
|
feedbackCount: string;
|
|
515
532
|
geom: Geometry | Geometry[];
|
|
516
533
|
groupOwner: string;
|
|
@@ -747,6 +764,7 @@ declare class Gn4FieldMapper {
|
|
|
747
764
|
private get getLocalizedIndexKey();
|
|
748
765
|
protected fields: Record<string, EsFieldMapperFn>;
|
|
749
766
|
private genericField;
|
|
767
|
+
private featureTypesField;
|
|
750
768
|
private constraintField;
|
|
751
769
|
getMappingFn(fieldName: string): EsFieldMapperFn | ((output: any) => any);
|
|
752
770
|
getLinkType(url: string, protocol?: string): OnlineResourceType;
|
|
@@ -764,7 +782,8 @@ type FieldFilterByRange = {
|
|
|
764
782
|
start?: Date;
|
|
765
783
|
end?: Date;
|
|
766
784
|
};
|
|
767
|
-
type
|
|
785
|
+
type FieldFilterByBoundingBox = [number, number, number, number];
|
|
786
|
+
type FieldFilter$1 = FieldFilterByExpression | FieldFilterByValues | FieldFilterByRange | FieldFilterByBoundingBox;
|
|
768
787
|
type FieldFilters = Record<FieldName$1, FieldFilter$1>;
|
|
769
788
|
type QueryString = {
|
|
770
789
|
query_string: string;
|
|
@@ -772,11 +791,28 @@ type QueryString = {
|
|
|
772
791
|
type QueryRange = {
|
|
773
792
|
range: Record<string, {
|
|
774
793
|
format: string;
|
|
775
|
-
gte
|
|
776
|
-
lte
|
|
794
|
+
gte?: string;
|
|
795
|
+
lte?: string;
|
|
796
|
+
relation?: string;
|
|
777
797
|
}>;
|
|
778
798
|
};
|
|
779
|
-
type
|
|
799
|
+
type QueryGeoShape = {
|
|
800
|
+
geo_shape: {
|
|
801
|
+
geom: {
|
|
802
|
+
shape: {
|
|
803
|
+
type: string;
|
|
804
|
+
coordinates: number[][];
|
|
805
|
+
};
|
|
806
|
+
relation: string;
|
|
807
|
+
};
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
type QueryBool = {
|
|
811
|
+
bool: {
|
|
812
|
+
filter: QueryRange[];
|
|
813
|
+
};
|
|
814
|
+
};
|
|
815
|
+
type FilterQuery = Array<QueryString | QueryRange | QueryGeoShape | QueryBool>;
|
|
780
816
|
|
|
781
817
|
interface TermsAggregationParams {
|
|
782
818
|
type: 'terms';
|
|
@@ -784,6 +820,8 @@ interface TermsAggregationParams {
|
|
|
784
820
|
limit: number;
|
|
785
821
|
sort: AggregationSort;
|
|
786
822
|
filter?: string;
|
|
823
|
+
includeValues?: string[];
|
|
824
|
+
excludeValues?: string[];
|
|
787
825
|
}
|
|
788
826
|
interface HistogramAggregationParams {
|
|
789
827
|
type: 'histogram';
|
|
@@ -1058,7 +1096,7 @@ declare abstract class RecordsRepositoryInterface {
|
|
|
1058
1096
|
abstract search(params: SearchParams): Observable<SearchResults>;
|
|
1059
1097
|
abstract getMatchesCount(filters: FieldFilters): Observable<number>;
|
|
1060
1098
|
abstract getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null>;
|
|
1061
|
-
abstract
|
|
1099
|
+
abstract queryLinkedFeatureCatalog(record: CatalogRecord): Observable<DatasetFeatureCatalog | null>;
|
|
1062
1100
|
abstract aggregate(params: AggregationsParams): Observable<Aggregations>;
|
|
1063
1101
|
abstract getSimilarRecords(similarTo: CatalogRecord): Observable<CatalogRecord[]>;
|
|
1064
1102
|
abstract getLinkedRecords(record: CatalogRecord): Observable<LinkedRecord[]>;
|
|
@@ -1122,6 +1160,15 @@ declare abstract class RecordsRepositoryInterface {
|
|
|
1122
1160
|
}>;
|
|
1123
1161
|
abstract getRecordPublicationStatus(uuid: string): Observable<boolean>;
|
|
1124
1162
|
abstract getApplicationLanguages(): Observable<LanguageCode[]>;
|
|
1163
|
+
/**
|
|
1164
|
+
* Sets a given flag on a record. Flags are not part of the metadata document, which is why they are
|
|
1165
|
+
* not part of the Record model.
|
|
1166
|
+
*/
|
|
1167
|
+
abstract setRecordFlag(uniqueIdentifier: string, flagName: RecordFlag, value: boolean): Observable<void>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Checks whether a given flag is enabled for a record.
|
|
1170
|
+
*/
|
|
1171
|
+
abstract getRecordFlag(uniqueIdentifier: string, flagName: RecordFlag): Observable<boolean>;
|
|
1125
1172
|
}
|
|
1126
1173
|
|
|
1127
1174
|
type RecordAsXml = string;
|
|
@@ -1136,6 +1183,7 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
1136
1183
|
private platformService;
|
|
1137
1184
|
private gn4LanguagesApi;
|
|
1138
1185
|
private settingsService;
|
|
1186
|
+
private gn4TagsApi;
|
|
1139
1187
|
private disableDraft;
|
|
1140
1188
|
private defaultConverter;
|
|
1141
1189
|
_draftsChanged: Subject<void>;
|
|
@@ -1144,8 +1192,7 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
1144
1192
|
getMatchesCount(filters: FieldFilters): Observable<number>;
|
|
1145
1193
|
getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null>;
|
|
1146
1194
|
getMultipleRecords(uniqueIdentifiers: string[]): Observable<CatalogRecord[] | null>;
|
|
1147
|
-
|
|
1148
|
-
getFeatureCatalog(record: CatalogRecord, visited?: Set<string>): Observable<DatasetFeatureCatalog | null>;
|
|
1195
|
+
queryLinkedFeatureCatalog(record: CatalogRecord, visited?: Set<string>): Observable<DatasetFeatureCatalog | null>;
|
|
1149
1196
|
getSimilarRecords(similarTo: CatalogRecord): Observable<CatalogRecord[]>;
|
|
1150
1197
|
getLinkedRecords(record: CatalogRecord): Observable<LinkedRecord[]>;
|
|
1151
1198
|
aggregate(params: AggregationsParams): Observable<Aggregations>;
|
|
@@ -1179,6 +1226,10 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
|
|
|
1179
1226
|
private saveRecordToLocalStorage;
|
|
1180
1227
|
private getRecordFromLocalStorage;
|
|
1181
1228
|
private removeRecordFromLocalStorage;
|
|
1229
|
+
categoriesIdentifierForFlags: Observable<Record<RecordFlag, number>>;
|
|
1230
|
+
private getCategoryIdForFlag;
|
|
1231
|
+
setRecordFlag(uniqueIdentifier: string, flagName: RecordFlag, value: boolean): Observable<void>;
|
|
1232
|
+
getRecordFlag(uniqueIdentifier: string, flagName: RecordFlag): Observable<boolean>;
|
|
1182
1233
|
static ɵfac: i0.ɵɵFactoryDeclaration<Gn4Repository, never>;
|
|
1183
1234
|
static ɵprov: i0.ɵɵInjectableDeclaration<Gn4Repository>;
|
|
1184
1235
|
}
|
|
@@ -1709,20 +1760,25 @@ type DateRange = {
|
|
|
1709
1760
|
start?: Date;
|
|
1710
1761
|
end?: Date;
|
|
1711
1762
|
};
|
|
1763
|
+
declare const REFERENCE_DATASET_BOOST = 5;
|
|
1712
1764
|
declare class ElasticsearchService {
|
|
1713
1765
|
private translateService;
|
|
1714
1766
|
private injector;
|
|
1715
1767
|
private runtimeFields;
|
|
1768
|
+
private fieldAliases;
|
|
1716
1769
|
private get metadataLang();
|
|
1717
1770
|
getSearchRequestBody(aggregations?: any, size?: number, from?: number, sortBy?: SortByField, requestFields?: RequestFields, searchFilters?: SearchFilters, configFilters?: SearchFilters, uuids?: string[], geometry?: Geometry): EsSearchParams;
|
|
1718
1771
|
private processRuntimeFields;
|
|
1719
|
-
registerRuntimeField(fieldName: string, expression: string): void;
|
|
1772
|
+
registerRuntimeField(fieldName: string, expression: string, type?: 'keyword' | 'date'): void;
|
|
1773
|
+
registerFieldAlias(fieldIdentifier: string, esFieldName: string): void;
|
|
1720
1774
|
getMetadataByIdsPayload(uuids: string[]): EsSearchParams;
|
|
1721
1775
|
getRelatedRecordPayload(record: CatalogRecord, size?: number, _source?: string[]): EsSearchParams;
|
|
1722
1776
|
private buildPayloadSort;
|
|
1723
1777
|
private injectLangInQueryStringFields;
|
|
1724
1778
|
private getQueryLang;
|
|
1725
1779
|
private isCurrentSearchLang;
|
|
1780
|
+
private findSpatialFilterExtent;
|
|
1781
|
+
private buildDateRangeQuery;
|
|
1726
1782
|
private filtersToQuery;
|
|
1727
1783
|
private mustNotFilters;
|
|
1728
1784
|
private buildPayloadQuery;
|
|
@@ -1781,6 +1837,7 @@ declare const ES_QUERY_FIELDS_PRIORITY: {
|
|
|
1781
1837
|
'any.${searchLang}': number;
|
|
1782
1838
|
uuid: number;
|
|
1783
1839
|
};
|
|
1840
|
+
declare const RECORD_FLAG_CATEGORY_PREFIX = "geonetwork-ui-flag:";
|
|
1784
1841
|
|
|
1785
1842
|
declare function isDateRange(filter: FieldFilter$1): boolean;
|
|
1786
1843
|
declare function formatDate(date: Date): string;
|
|
@@ -1823,6 +1880,7 @@ declare abstract class PlatformServiceInterface {
|
|
|
1823
1880
|
abstract supportsAuthentication(): boolean;
|
|
1824
1881
|
abstract getMe(): Observable<UserModel>;
|
|
1825
1882
|
abstract isAnonymous(): Observable<boolean>;
|
|
1883
|
+
abstract isAdministrator(): Observable<boolean>;
|
|
1826
1884
|
abstract getUsers(): Observable<UserModel[]>;
|
|
1827
1885
|
abstract getUserPermissionsByGroup(): Observable<GroupModel[]>;
|
|
1828
1886
|
abstract getUsersByOrganization(organisation: Organization): Observable<UserModel[]>;
|
|
@@ -1999,6 +2057,7 @@ declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
1999
2057
|
private readonly gnParseVersion;
|
|
2000
2058
|
private keyTranslations$;
|
|
2001
2059
|
private me$;
|
|
2060
|
+
private isAdmin$;
|
|
2002
2061
|
/**
|
|
2003
2062
|
* A map of already loaded thesauri (groups of keywords); the key is a URI
|
|
2004
2063
|
* @private
|
|
@@ -2012,6 +2071,7 @@ declare class Gn4PlatformService implements PlatformServiceInterface {
|
|
|
2012
2071
|
getApiVersion(): Observable<string>;
|
|
2013
2072
|
getMe(): Observable<UserModel>;
|
|
2014
2073
|
isAnonymous(): Observable<boolean>;
|
|
2074
|
+
isAdministrator(): Observable<boolean>;
|
|
2015
2075
|
getOrganizations(): Observable<Organization[]>;
|
|
2016
2076
|
getUsersByOrganization(organisation: Organization): Observable<UserModel[]>;
|
|
2017
2077
|
getUsers(): Observable<UserModel[]>;
|
|
@@ -2146,7 +2206,7 @@ declare class DateService {
|
|
|
2146
2206
|
dateLocales: Promise<Record<geonetwork_ui.LanguageCode2, Locale>>;
|
|
2147
2207
|
private getDateObject;
|
|
2148
2208
|
private getLocaleAndDate;
|
|
2149
|
-
|
|
2209
|
+
getDateFnsLocale(): Promise<Locale>;
|
|
2150
2210
|
formatDate(date: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
2151
2211
|
formatDateTime(date: Date | string, options?: Intl.DateTimeFormatOptions): string;
|
|
2152
2212
|
formatRelativeDateTime(date: Date | string): Promise<string>;
|
|
@@ -2164,6 +2224,9 @@ declare function bytesToMegabytes(bytes: number): number;
|
|
|
2164
2224
|
*/
|
|
2165
2225
|
declare function propagateToDocumentOnly(event: Event): void;
|
|
2166
2226
|
|
|
2227
|
+
declare function isFileExtensionValid(fileName: string, acceptedExtensions: string[]): boolean;
|
|
2228
|
+
declare function readFileAsText(file: File): Promise<string>;
|
|
2229
|
+
|
|
2167
2230
|
declare function formatUserInfo(userInfo: string | unknown, displayCount?: boolean): string;
|
|
2168
2231
|
|
|
2169
2232
|
type FuzzyFilter = (input: string) => boolean;
|
|
@@ -2179,11 +2242,17 @@ declare function createFuzzyFilter(pattern: string): FuzzyFilter;
|
|
|
2179
2242
|
*/
|
|
2180
2243
|
declare function getGeometryFromGeoJSON(data: FeatureCollection | Feature | Geometry): Geometry | null;
|
|
2181
2244
|
type BoundingBox = [number, number, number, number];
|
|
2245
|
+
declare function isBoundingBox(value: unknown): value is BoundingBox;
|
|
2246
|
+
/**
|
|
2247
|
+
* Checks that a bounding box's coordinates stay within the valid
|
|
2248
|
+
* longitude (-180/180) and latitude (-90/90) ranges.
|
|
2249
|
+
*/
|
|
2250
|
+
declare function isBoundingBoxWithinWorldExtent(bbox: BoundingBox): boolean;
|
|
2182
2251
|
declare function getGeometryBoundingBox(geometry: Geometry): BoundingBox;
|
|
2183
2252
|
/**
|
|
2184
|
-
* Builds the
|
|
2253
|
+
* Builds the GeoJSON Geometry matching the given bounding box.
|
|
2185
2254
|
*/
|
|
2186
|
-
declare function
|
|
2255
|
+
declare function bboxToGeometry(bbox: BoundingBox): Geometry;
|
|
2187
2256
|
/**
|
|
2188
2257
|
* Returns the geometry carried by a spatial extent, falling back to the polygon
|
|
2189
2258
|
* derived from its bounding box. Returns null when the extent has neither.
|
|
@@ -2384,14 +2453,7 @@ declare function checkFileFormat(link: DatasetOnlineResource | ServiceOnlineReso
|
|
|
2384
2453
|
declare function getBadgeColor(linkFormat: FileFormat): string;
|
|
2385
2454
|
declare function getLinkId(link: DatasetOnlineResource): string;
|
|
2386
2455
|
declare function getLinkLabel(link: DatasetOnlineResource | ServiceOnlineResource): string;
|
|
2387
|
-
declare function getLayers(url: string, serviceProtocol: ServiceProtocol): Promise<
|
|
2388
|
-
name: string;
|
|
2389
|
-
hasRecords?: boolean;
|
|
2390
|
-
hasFeatures?: boolean;
|
|
2391
|
-
hasVectorTiles?: boolean;
|
|
2392
|
-
hasMapTiles?: boolean;
|
|
2393
|
-
hasDataQueries?: boolean;
|
|
2394
|
-
}[] | _camptocamp_ogc_client.WfsFeatureTypeFull[] | _camptocamp_ogc_client.WmsLayerFull[] | _camptocamp_ogc_client.WmtsLayer[]>;
|
|
2456
|
+
declare function getLayers(url: string, serviceProtocol: ServiceProtocol, deep?: boolean): Promise<any[]>;
|
|
2395
2457
|
declare function wmsLayerFlatten(layerFull: any): any[];
|
|
2396
2458
|
declare function getMimeTypeForFormat(format: FileFormat): string | null;
|
|
2397
2459
|
|
|
@@ -2411,6 +2473,15 @@ declare class LinkClassifierService {
|
|
|
2411
2473
|
static ɵprov: i0.ɵɵInjectableDeclaration<LinkClassifierService>;
|
|
2412
2474
|
}
|
|
2413
2475
|
|
|
2476
|
+
declare class AutofocusDirective {
|
|
2477
|
+
private el;
|
|
2478
|
+
private injector;
|
|
2479
|
+
set autofocus(active: boolean);
|
|
2480
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
|
|
2481
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[gnUiAutofocus]", never, { "autofocus": { "alias": "gnUiAutofocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
2482
|
+
static ngAcceptInputType_autofocus: unknown;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2414
2485
|
declare class ImageFallbackDirective {
|
|
2415
2486
|
private el;
|
|
2416
2487
|
fallbackUrl: string;
|
|
@@ -2466,30 +2537,6 @@ declare class MapUtilsService {
|
|
|
2466
2537
|
static ɵprov: i0.ɵɵInjectableDeclaration<MapUtilsService>;
|
|
2467
2538
|
}
|
|
2468
2539
|
|
|
2469
|
-
interface CreateStyleOptions {
|
|
2470
|
-
color: string;
|
|
2471
|
-
isFocused?: boolean;
|
|
2472
|
-
}
|
|
2473
|
-
type StyleByGeometryType = {
|
|
2474
|
-
line: Style | Style[];
|
|
2475
|
-
polygon: Style | Style[];
|
|
2476
|
-
point: Style | Style[];
|
|
2477
|
-
};
|
|
2478
|
-
declare class MapStyleService {
|
|
2479
|
-
styles: {
|
|
2480
|
-
default: StyleLike;
|
|
2481
|
-
defaultHL: StyleLike;
|
|
2482
|
-
};
|
|
2483
|
-
createGeometryStyles(options: CreateStyleOptions): StyleByGeometryType;
|
|
2484
|
-
createStyleFunction(styleByGeometryType: StyleByGeometryType): StyleLike;
|
|
2485
|
-
private computeTransparentFillColor;
|
|
2486
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MapStyleService, never>;
|
|
2487
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MapStyleService>;
|
|
2488
|
-
}
|
|
2489
|
-
|
|
2490
|
-
declare const defaultMapStyleFixture: () => Style;
|
|
2491
|
-
declare const defaultMapStyleHlFixture: () => Style;
|
|
2492
|
-
|
|
2493
2540
|
declare class LayersPanelComponent {
|
|
2494
2541
|
private mapFacade;
|
|
2495
2542
|
layers$: rxjs.Observable<MapContextLayer[]>;
|
|
@@ -2735,6 +2782,13 @@ declare class AutocompleteComponent implements OnInit, AfterViewInit, OnDestroy,
|
|
|
2735
2782
|
triggerRef: MatAutocompleteTrigger;
|
|
2736
2783
|
autocomplete: MatAutocomplete;
|
|
2737
2784
|
inputRef: ElementRef<HTMLInputElement>;
|
|
2785
|
+
/**
|
|
2786
|
+
* Custom template to render each suggestion. Takes precedence over
|
|
2787
|
+
* `displayWithFn` when set.
|
|
2788
|
+
*/
|
|
2789
|
+
displayWithTemplate?: TemplateRef<{
|
|
2790
|
+
$implicit: AutocompleteItem;
|
|
2791
|
+
}>;
|
|
2738
2792
|
searching: boolean;
|
|
2739
2793
|
control: UntypedFormControl;
|
|
2740
2794
|
cancelEnter: boolean;
|
|
@@ -2780,7 +2834,7 @@ declare class AutocompleteComponent implements OnInit, AfterViewInit, OnDestroy,
|
|
|
2780
2834
|
handleSelection(event: MatAutocompleteSelectedEvent): void;
|
|
2781
2835
|
handleInput(event: InputEvent): void;
|
|
2782
2836
|
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
|
|
2783
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "gn-ui-autocomplete", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "enterButton": { "alias": "enterButton"; "required": false; }; "action": { "alias": "action"; "required": false; }; "value": { "alias": "value"; "required": false; }; "clearOnSelection": { "alias": "clearOnSelection"; "required": false; }; "preventCompleteOnSelection": { "alias": "preventCompleteOnSelection"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "minCharacterCount": { "alias": "minCharacterCount"; "required": false; }; "allowSubmit": { "alias": "allowSubmit"; "required": false; }; "forceTrackPosition": { "alias": "forceTrackPosition"; "required": false; }; "displayWithFn": { "alias": "displayWithFn"; "required": false; }; }, { "itemSelected": "itemSelected"; "inputSubmitted": "inputSubmitted"; "inputCleared": "inputCleared"; "isSearchActive": "isSearchActive"; }, never, never, true, never>;
|
|
2837
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "gn-ui-autocomplete", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "enterButton": { "alias": "enterButton"; "required": false; }; "action": { "alias": "action"; "required": false; }; "value": { "alias": "value"; "required": false; }; "clearOnSelection": { "alias": "clearOnSelection"; "required": false; }; "preventCompleteOnSelection": { "alias": "preventCompleteOnSelection"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "minCharacterCount": { "alias": "minCharacterCount"; "required": false; }; "allowSubmit": { "alias": "allowSubmit"; "required": false; }; "forceTrackPosition": { "alias": "forceTrackPosition"; "required": false; }; "displayWithTemplate": { "alias": "displayWithTemplate"; "required": false; }; "displayWithFn": { "alias": "displayWithFn"; "required": false; }; }, { "itemSelected": "itemSelected"; "inputSubmitted": "inputSubmitted"; "inputCleared": "inputCleared"; "isSearchActive": "isSearchActive"; }, never, never, true, never>;
|
|
2784
2838
|
}
|
|
2785
2839
|
|
|
2786
2840
|
declare class BadgeComponent {
|
|
@@ -2838,30 +2892,47 @@ declare class CopyTextButtonComponent {
|
|
|
2838
2892
|
static ɵcmp: i0.ɵɵComponentDeclaration<CopyTextButtonComponent, "gn-ui-copy-text-button", never, { "text": { "alias": "text"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "displayText": { "alias": "displayText"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, never, true, never>;
|
|
2839
2893
|
}
|
|
2840
2894
|
|
|
2895
|
+
declare function provideLocalizedDateAdapter(): Provider[];
|
|
2896
|
+
|
|
2841
2897
|
declare class DatePickerComponent {
|
|
2842
|
-
private dateAdapter;
|
|
2843
|
-
private translate;
|
|
2844
2898
|
date: Date;
|
|
2845
2899
|
dateChange: EventEmitter<Date>;
|
|
2846
|
-
constructor();
|
|
2847
2900
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
|
2848
2901
|
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "gn-ui-date-picker", never, { "date": { "alias": "date"; "required": false; }; }, { "dateChange": "dateChange"; }, never, never, true, never>;
|
|
2849
2902
|
}
|
|
2850
2903
|
|
|
2851
|
-
|
|
2852
|
-
|
|
2904
|
+
type DateRangeBound = 'start' | 'end';
|
|
2905
|
+
declare class DateRangeDropdownComponent {
|
|
2906
|
+
private scrollStrategies;
|
|
2907
|
+
private dateAdapter;
|
|
2908
|
+
private dateFormats;
|
|
2853
2909
|
private cdr;
|
|
2854
2910
|
title: string;
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2911
|
+
dateRange: FieldFilterByRange;
|
|
2912
|
+
dateRangeChange: EventEmitter<FieldFilterByRange>;
|
|
2913
|
+
overlayOrigin: CdkOverlayOrigin;
|
|
2914
|
+
overlayPositions: ConnectedPosition[];
|
|
2915
|
+
scrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
2916
|
+
overlayOpen: boolean;
|
|
2917
|
+
expandedBound: DateRangeBound | null;
|
|
2918
|
+
invalidBounds: Record<DateRangeBound, boolean>;
|
|
2919
|
+
constructor();
|
|
2920
|
+
get startDate(): Date;
|
|
2921
|
+
get endDate(): Date;
|
|
2922
|
+
get selectedDatesCount(): number;
|
|
2923
|
+
openOverlay(): void;
|
|
2924
|
+
closeOverlay(): void;
|
|
2925
|
+
toggleBound(bound: DateRangeBound): void;
|
|
2926
|
+
formatDate(date: Date): string;
|
|
2927
|
+
onDateInput(bound: DateRangeBound, event: Event): void;
|
|
2928
|
+
normalizeDateInput(bound: DateRangeBound, event: Event): void;
|
|
2929
|
+
private isAcceptable;
|
|
2930
|
+
setStartDate(date: Date): void;
|
|
2931
|
+
setEndDate(date: Date): void;
|
|
2932
|
+
clearDates(event: Event): void;
|
|
2933
|
+
private applyDateRange;
|
|
2863
2934
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeDropdownComponent, never>;
|
|
2864
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeDropdownComponent, "gn-ui-date-range-dropdown", never, { "title": { "alias": "title"; "required": false; }; "
|
|
2935
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeDropdownComponent, "gn-ui-date-range-dropdown", never, { "title": { "alias": "title"; "required": false; }; "dateRange": { "alias": "dateRange"; "required": false; }; }, { "dateRangeChange": "dateRangeChange"; }, never, never, true, never>;
|
|
2865
2936
|
}
|
|
2866
2937
|
|
|
2867
2938
|
declare class DateRangePickerComponent {
|
|
@@ -2874,31 +2945,43 @@ declare class DateRangePickerComponent {
|
|
|
2874
2945
|
}
|
|
2875
2946
|
|
|
2876
2947
|
declare const placeholder = "dropFile";
|
|
2948
|
+
type DragAndDropFileInputError = 'invalid-extension' | 'file-too-large';
|
|
2877
2949
|
declare class DragAndDropFileInputComponent {
|
|
2878
2950
|
placeholder: string;
|
|
2879
2951
|
accept: string;
|
|
2880
|
-
|
|
2952
|
+
maxFileSizeMb: number | null;
|
|
2953
|
+
icon: string | null;
|
|
2954
|
+
dropzoneBackgroundColor: string | null;
|
|
2955
|
+
textClass: string;
|
|
2956
|
+
extraClass: string;
|
|
2957
|
+
showFileName: boolean;
|
|
2958
|
+
fileChange: EventEmitter<File>;
|
|
2959
|
+
errorChange: EventEmitter<DragAndDropFileInputError>;
|
|
2881
2960
|
selectedFile: File;
|
|
2961
|
+
private dropzone;
|
|
2882
2962
|
get fileName(): string | null;
|
|
2963
|
+
get maxFileSizeBytes(): number | null;
|
|
2883
2964
|
selectFile(event: any): void;
|
|
2965
|
+
openFileSelector(): void;
|
|
2966
|
+
clear(): void;
|
|
2884
2967
|
static ɵfac: i0.ɵɵFactoryDeclaration<DragAndDropFileInputComponent, never>;
|
|
2885
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DragAndDropFileInputComponent, "gn-ui-drag-and-drop-file-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; }, { "fileChange": "fileChange"; }, never, never, true, never>;
|
|
2968
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DragAndDropFileInputComponent, "gn-ui-drag-and-drop-file-input", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "maxFileSizeMb": { "alias": "maxFileSizeMb"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "dropzoneBackgroundColor": { "alias": "dropzoneBackgroundColor"; "required": false; }; "textClass": { "alias": "textClass"; "required": false; }; "extraClass": { "alias": "extraClass"; "required": false; }; "showFileName": { "alias": "showFileName"; "required": false; }; }, { "fileChange": "fileChange"; "errorChange": "errorChange"; }, never, never, true, never>;
|
|
2886
2969
|
}
|
|
2887
2970
|
|
|
2888
|
-
interface Choice$1 {
|
|
2889
|
-
value:
|
|
2971
|
+
interface Choice$1<T = unknown> {
|
|
2972
|
+
value: T;
|
|
2890
2973
|
label: string;
|
|
2891
2974
|
}
|
|
2892
2975
|
|
|
2893
|
-
declare class DropdownMultiselectComponent {
|
|
2976
|
+
declare class DropdownMultiselectComponent<T = unknown> {
|
|
2894
2977
|
private scrollStrategies;
|
|
2895
2978
|
title: string;
|
|
2896
|
-
choices: Choice$1[];
|
|
2897
|
-
selected:
|
|
2979
|
+
choices: Choice$1<T>[];
|
|
2980
|
+
selected: T[];
|
|
2898
2981
|
allowSearch: boolean;
|
|
2899
2982
|
maxRows: number;
|
|
2900
2983
|
searchInputValue: string;
|
|
2901
|
-
selectValues: EventEmitter<
|
|
2984
|
+
selectValues: EventEmitter<T[]>;
|
|
2902
2985
|
overlayOrigin: CdkOverlayOrigin;
|
|
2903
2986
|
overlay: CdkConnectedOverlay;
|
|
2904
2987
|
overlayContainer: ElementRef;
|
|
@@ -2911,8 +2994,8 @@ declare class DropdownMultiselectComponent {
|
|
|
2911
2994
|
overlayMaxHeight: string;
|
|
2912
2995
|
id: string;
|
|
2913
2996
|
get hasSelectedChoices(): boolean;
|
|
2914
|
-
get selectedChoices(): Choice$1[];
|
|
2915
|
-
get filteredChoicesByText(): Choice$1[];
|
|
2997
|
+
get selectedChoices(): Choice$1<T>[];
|
|
2998
|
+
get filteredChoicesByText(): Choice$1<T>[];
|
|
2916
2999
|
get focusedIndex(): number | -1;
|
|
2917
3000
|
private setFocus;
|
|
2918
3001
|
openOverlay(): Promise<[void, any]>;
|
|
@@ -2922,13 +3005,13 @@ declare class DropdownMultiselectComponent {
|
|
|
2922
3005
|
focusFirstItem(): void;
|
|
2923
3006
|
focusLastItem(): void;
|
|
2924
3007
|
shiftItemFocus(shift: number): void;
|
|
2925
|
-
isSelected(choice: Choice$1): boolean;
|
|
2926
|
-
select(choice: Choice$1
|
|
2927
|
-
toggle(choice: Choice$1): void;
|
|
3008
|
+
isSelected(choice: Choice$1<T>): boolean;
|
|
3009
|
+
select(choice: Choice$1<T>, selected: boolean): void;
|
|
3010
|
+
toggle(choice: Choice$1<T>): void;
|
|
2928
3011
|
clearSelection(event: Event): void;
|
|
2929
3012
|
clearSearchInputValue(event: Event): void;
|
|
2930
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMultiselectComponent
|
|
2931
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMultiselectComponent
|
|
3013
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMultiselectComponent<any>, never>;
|
|
3014
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMultiselectComponent<any>, "gn-ui-dropdown-multiselect", never, { "title": { "alias": "title"; "required": false; }; "choices": { "alias": "choices"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "searchInputValue": { "alias": "searchInputValue"; "required": false; }; }, { "selectValues": "selectValues"; }, never, never, true, never>;
|
|
2932
3015
|
}
|
|
2933
3016
|
|
|
2934
3017
|
interface DropdownChoice {
|
|
@@ -3167,13 +3250,55 @@ declare class DateRangeInputsComponent {
|
|
|
3167
3250
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeInputsComponent, "gn-ui-date-range-inputs", never, { "temporalExtent": { "alias": "temporalExtent"; "required": false; }; }, { "temporalExtentChange": "temporalExtentChange"; }, never, never, true, never>;
|
|
3168
3251
|
}
|
|
3169
3252
|
|
|
3253
|
+
interface SpatialExtentDropdownError {
|
|
3254
|
+
key: string;
|
|
3255
|
+
params?: Record<string, string | number>;
|
|
3256
|
+
}
|
|
3257
|
+
declare class SpatialExtentDropdownComponent {
|
|
3258
|
+
private cd;
|
|
3259
|
+
private scrollStrategies;
|
|
3260
|
+
title: string;
|
|
3261
|
+
maxFileSizeMb: number | null;
|
|
3262
|
+
set initialBbox(value: BoundingBox | null);
|
|
3263
|
+
bboxChange: EventEmitter<BoundingBox>;
|
|
3264
|
+
errorChange: EventEmitter<SpatialExtentDropdownError>;
|
|
3265
|
+
bbox: BoundingBox | null;
|
|
3266
|
+
fileName: string;
|
|
3267
|
+
locationName: string;
|
|
3268
|
+
overlayOrigin: CdkOverlayOrigin;
|
|
3269
|
+
overlay: CdkConnectedOverlay;
|
|
3270
|
+
fileInput: DragAndDropFileInputComponent;
|
|
3271
|
+
overlayPositions: ConnectedPosition[];
|
|
3272
|
+
scrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
3273
|
+
overlayOpen: boolean;
|
|
3274
|
+
overlayMinWidth: string;
|
|
3275
|
+
errorKey: string | null;
|
|
3276
|
+
get hasSelection(): boolean;
|
|
3277
|
+
get selectionLabelKey(): "search.filters.spatialExtent.bboxFromFile" | "search.filters.spatialExtent.bboxFromLocation" | "search.filters.spatialExtent.bboxInitial";
|
|
3278
|
+
get selectionDeleteLabelKey(): "search.filters.spatialExtent.bboxFromFileDelete" | "search.filters.spatialExtent.bboxFromLocationDelete" | "search.filters.spatialExtent.bboxInitialDelete";
|
|
3279
|
+
get selectionLabelParams(): {
|
|
3280
|
+
fileName: string;
|
|
3281
|
+
locationName: string;
|
|
3282
|
+
};
|
|
3283
|
+
openOverlay(): void;
|
|
3284
|
+
closeOverlay(): void;
|
|
3285
|
+
toggleOverlay(): void;
|
|
3286
|
+
handleFileSelected(file: File): Promise<void>;
|
|
3287
|
+
setLocationBbox(bbox: BoundingBox, name: string): void;
|
|
3288
|
+
handleFileError(error: DragAndDropFileInputError): void;
|
|
3289
|
+
private setError;
|
|
3290
|
+
removeSelection(event: Event): void;
|
|
3291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpatialExtentDropdownComponent, never>;
|
|
3292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpatialExtentDropdownComponent, "gn-ui-spatial-extent-dropdown", never, { "title": { "alias": "title"; "required": false; }; "maxFileSizeMb": { "alias": "maxFileSizeMb"; "required": false; }; "initialBbox": { "alias": "initialBbox"; "required": false; }; }, { "bboxChange": "bboxChange"; "errorChange": "errorChange"; }, never, ["*"], true, never>;
|
|
3293
|
+
}
|
|
3294
|
+
|
|
3170
3295
|
declare class ResultsHitsSearchKindComponent implements OnChanges {
|
|
3171
3296
|
selected: string[];
|
|
3172
3297
|
choices: Choice$1[];
|
|
3173
3298
|
selectionChanged: EventEmitter<string[]>;
|
|
3174
3299
|
availableChoices: Choice$1[];
|
|
3175
3300
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3176
|
-
buildFilterChoices(availableValues: Choice$1[]): Choice$1[];
|
|
3301
|
+
buildFilterChoices(availableValues: Choice$1[]): Choice$1<unknown>[];
|
|
3177
3302
|
onSelectedValues(values: string[]): void;
|
|
3178
3303
|
isSelectedChoice(choiceValue: string): boolean;
|
|
3179
3304
|
isAllChoice(choiceValue: string): boolean;
|
|
@@ -3283,26 +3408,6 @@ declare class AddLayerRecordPreviewComponent extends RecordPreviewComponent {
|
|
|
3283
3408
|
static ɵcmp: i0.ɵɵComponentDeclaration<AddLayerRecordPreviewComponent, "gn-ui-add-layer-record-preview", never, {}, {}, never, never, true, never>;
|
|
3284
3409
|
}
|
|
3285
3410
|
|
|
3286
|
-
declare class GeocodingComponent implements OnDestroy {
|
|
3287
|
-
private mapFacade;
|
|
3288
|
-
private geocodingService;
|
|
3289
|
-
searchText: string;
|
|
3290
|
-
results: any[];
|
|
3291
|
-
searchTextChanged: Subject<string>;
|
|
3292
|
-
destroy$: Subject<void>;
|
|
3293
|
-
errorMessage: string | null;
|
|
3294
|
-
constructor();
|
|
3295
|
-
ngOnDestroy(): void;
|
|
3296
|
-
onSearchChange(searchText: string): void;
|
|
3297
|
-
clearSearch(): void;
|
|
3298
|
-
zoomToLocation(result: any): Promise<void>;
|
|
3299
|
-
zoomToPoint(pointCoords: [number, number]): Promise<void>;
|
|
3300
|
-
zoomToPolygon(polygonCoords: [[number, number][]]): Promise<void>;
|
|
3301
|
-
onEnterPress(): void;
|
|
3302
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<GeocodingComponent, never>;
|
|
3303
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<GeocodingComponent, "gn-ui-geocoding", never, {}, {}, never, never, true, never>;
|
|
3304
|
-
}
|
|
3305
|
-
|
|
3306
3411
|
interface NotificationContent {
|
|
3307
3412
|
type: 'info' | 'warning' | 'error' | 'success';
|
|
3308
3413
|
title: string;
|
|
@@ -3315,7 +3420,7 @@ type NotificationWithIdentity = NotificationContent & {
|
|
|
3315
3420
|
};
|
|
3316
3421
|
declare class NotificationsService {
|
|
3317
3422
|
notifications$: BehaviorSubject<NotificationWithIdentity[]>;
|
|
3318
|
-
showNotification(content: NotificationContent, timeoutMs?: number, error?: Error):
|
|
3423
|
+
showNotification(content: NotificationContent, timeoutMs?: number, error?: Error): number;
|
|
3319
3424
|
removeNotificationById(id: number): void;
|
|
3320
3425
|
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
|
|
3321
3426
|
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
|
|
@@ -3336,6 +3441,48 @@ declare class FeatureSearchModule {
|
|
|
3336
3441
|
static ɵinj: i0.ɵɵInjectorDeclaration<FeatureSearchModule>;
|
|
3337
3442
|
}
|
|
3338
3443
|
|
|
3444
|
+
type GeoadminGeocodingProvider = ['geoadmin', GeoadminOptions];
|
|
3445
|
+
type GeonamesGeocodingProvider = ['geonames', GeonamesOptions];
|
|
3446
|
+
type GeoplateformeGeocodingProvider = ['geoplateforme', GeoplateformeOptions];
|
|
3447
|
+
type GeocodingProvider = GeoadminGeocodingProvider | GeonamesGeocodingProvider | GeoplateformeGeocodingProvider;
|
|
3448
|
+
declare const DEFAULT_GEOCODING_PROVIDER: GeocodingProvider;
|
|
3449
|
+
declare const GEOCODING_PROVIDER: InjectionToken<GeocodingProvider>;
|
|
3450
|
+
declare class GeocodingService {
|
|
3451
|
+
private provider;
|
|
3452
|
+
query(text: string): Observable<GeocodingResult[]>;
|
|
3453
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeocodingService, never>;
|
|
3454
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GeocodingService>;
|
|
3455
|
+
}
|
|
3456
|
+
|
|
3457
|
+
interface GeocodingProviderLabels {
|
|
3458
|
+
main?: string;
|
|
3459
|
+
secondary?: string;
|
|
3460
|
+
tertiary?: string;
|
|
3461
|
+
}
|
|
3462
|
+
interface LocationBbox {
|
|
3463
|
+
bbox: BoundingBox;
|
|
3464
|
+
label: string;
|
|
3465
|
+
}
|
|
3466
|
+
declare const GEOCODING_PROVIDER_LABELS: InjectionToken<GeocodingProviderLabels>;
|
|
3467
|
+
declare class LocationSearchComponent {
|
|
3468
|
+
private geocodingService;
|
|
3469
|
+
private labels;
|
|
3470
|
+
placeholder: string;
|
|
3471
|
+
resultSelected: EventEmitter<GeocodingResult>;
|
|
3472
|
+
bboxSelected: EventEmitter<LocationBbox>;
|
|
3473
|
+
displayWithFn: (item: AutocompleteItem) => string;
|
|
3474
|
+
searchAction: (text: string) => Observable<AutocompleteItem[]>;
|
|
3475
|
+
getSecondaryLabel(result: GeocodingResult): string | undefined;
|
|
3476
|
+
getMainLabel(result: GeocodingResult): string;
|
|
3477
|
+
getTertiaryLabel(result: GeocodingResult): string | undefined;
|
|
3478
|
+
getDisplayLabel(result: GeocodingResult): string;
|
|
3479
|
+
private resolveLabel;
|
|
3480
|
+
private getGeometry;
|
|
3481
|
+
handleItemSelected(item: AutocompleteItem): void;
|
|
3482
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocationSearchComponent, never>;
|
|
3483
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocationSearchComponent, "gn-ui-location-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, { "resultSelected": "resultSelected"; "bboxSelected": "bboxSelected"; }, never, never, true, never>;
|
|
3484
|
+
}
|
|
3485
|
+
|
|
3339
3486
|
declare const FILTER_GEOMETRY: InjectionToken<Promise<Geometry>>;
|
|
3340
3487
|
|
|
3341
3488
|
declare const RECORD_DATASET_URL_TOKEN: InjectionToken<string>;
|
|
@@ -3641,7 +3788,7 @@ declare class SearchService implements SearchServiceI {
|
|
|
3641
3788
|
static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
|
|
3642
3789
|
}
|
|
3643
3790
|
|
|
3644
|
-
type FieldType = 'values' | 'dateRange';
|
|
3791
|
+
type FieldType = 'values' | 'dateRange' | 'spatialExtent';
|
|
3645
3792
|
type FieldValue = string | number;
|
|
3646
3793
|
interface FieldAvailableValue {
|
|
3647
3794
|
value: FieldValue;
|
|
@@ -3661,13 +3808,19 @@ declare class SimpleSearchField implements AbstractSearchField {
|
|
|
3661
3808
|
protected orderType: 'key' | 'count';
|
|
3662
3809
|
protected repository: RecordsRepositoryInterface;
|
|
3663
3810
|
protected esService: ElasticsearchService;
|
|
3811
|
+
private customIdentifier?;
|
|
3812
|
+
protected get fieldIdentifier(): string;
|
|
3813
|
+
includeValues: string[];
|
|
3814
|
+
excludeValues: string[];
|
|
3664
3815
|
constructor(esFieldName: string, injector: Injector, order?: 'asc' | 'desc', orderType?: 'key' | 'count');
|
|
3816
|
+
setFieldIdentifier(fieldIdentifier: string): void;
|
|
3665
3817
|
protected getAggregations(): AggregationsParams;
|
|
3666
3818
|
protected getBucketLabel(bucket: TermBucket): Promise<string>;
|
|
3667
3819
|
getAvailableValues(): Observable<FieldAvailableValue[]>;
|
|
3668
3820
|
getFiltersForValues(values: FieldValue[] | DateRange[]): Observable<FieldFilters | string>;
|
|
3669
3821
|
getValuesForFilter(filters: FieldFilters): Observable<FieldValue[] | FieldValue | DateRange>;
|
|
3670
3822
|
getType(): FieldType;
|
|
3823
|
+
clone(): typeof this;
|
|
3671
3824
|
}
|
|
3672
3825
|
declare class TranslatedSearchField extends SimpleSearchField {
|
|
3673
3826
|
protected esFieldName: string;
|
|
@@ -3739,6 +3892,15 @@ declare class DateRangeSearchField extends SimpleSearchField {
|
|
|
3739
3892
|
getAvailableValues(): Observable<FieldAvailableValue[]>;
|
|
3740
3893
|
getType(): FieldType;
|
|
3741
3894
|
}
|
|
3895
|
+
declare class ResourceCreationRevisionDateSearchField extends DateRangeSearchField {
|
|
3896
|
+
constructor(injector: Injector, order?: 'asc' | 'desc');
|
|
3897
|
+
}
|
|
3898
|
+
declare class BoundingBoxSearchField extends SimpleSearchField {
|
|
3899
|
+
getAvailableValues(): Observable<FieldAvailableValue[]>;
|
|
3900
|
+
getFiltersForValues(values: FieldValue[]): Observable<FieldFilters>;
|
|
3901
|
+
getValuesForFilter(filters: FieldFilters): Observable<FieldValue[]>;
|
|
3902
|
+
getType(): FieldType;
|
|
3903
|
+
}
|
|
3742
3904
|
declare class AvailableServicesField extends SimpleSearchField {
|
|
3743
3905
|
private translateService;
|
|
3744
3906
|
constructor(injector: Injector);
|
|
@@ -3771,9 +3933,19 @@ declare class RecordKindField extends SimpleSearchField {
|
|
|
3771
3933
|
}
|
|
3772
3934
|
|
|
3773
3935
|
type FieldValues = Record<string, FieldValue[] | FieldValue | DateRange>;
|
|
3936
|
+
interface CustomSearchField {
|
|
3937
|
+
name: string;
|
|
3938
|
+
baseFilter: string;
|
|
3939
|
+
excludeValues?: string[];
|
|
3940
|
+
includeValues?: string[];
|
|
3941
|
+
}
|
|
3942
|
+
declare const CUSTOM_FIELDS: InjectionToken<CustomSearchField[]>;
|
|
3774
3943
|
declare class FieldsService {
|
|
3775
3944
|
protected injector: Injector;
|
|
3945
|
+
private customFields;
|
|
3946
|
+
private baseFields;
|
|
3776
3947
|
protected fields: Record<string, AbstractSearchField>;
|
|
3948
|
+
constructor();
|
|
3777
3949
|
get supportedFields(): string[];
|
|
3778
3950
|
getAvailableValues(fieldName: string): Observable<FieldAvailableValue[] | DateRange[]>;
|
|
3779
3951
|
private getFiltersForValues;
|
|
@@ -4640,21 +4812,30 @@ declare class ResultsListContainerComponent implements OnInit {
|
|
|
4640
4812
|
static ɵcmp: i0.ɵɵComponentDeclaration<ResultsListContainerComponent, "gn-ui-results-list-container", never, { "metadataQualityDisplay": { "alias": "metadataQualityDisplay"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "showMore": { "alias": "showMore"; "required": false; }; }, { "mdSelect": "mdSelect"; }, never, never, true, never>;
|
|
4641
4813
|
}
|
|
4642
4814
|
|
|
4815
|
+
declare const SPATIAL_EXTENT_MAX_FILE_SIZE: InjectionToken<number>;
|
|
4643
4816
|
declare class FilterDropdownComponent implements OnInit {
|
|
4644
4817
|
private searchFacade;
|
|
4645
4818
|
private searchService;
|
|
4646
4819
|
private fieldsService;
|
|
4820
|
+
private notificationsService;
|
|
4821
|
+
private translateService;
|
|
4647
4822
|
fieldName: string;
|
|
4648
4823
|
title: string;
|
|
4824
|
+
spatialExtentDropdown: SpatialExtentDropdownComponent;
|
|
4825
|
+
spatialExtentMaxFileSize: number;
|
|
4649
4826
|
fieldType: FieldType;
|
|
4650
|
-
dateRange: DateRange;
|
|
4651
4827
|
choices$: Observable<Choice$1[]>;
|
|
4652
4828
|
selected$: Observable<FieldValue[]>;
|
|
4653
4829
|
selectedDateRange$: Observable<DateRange>;
|
|
4830
|
+
selectedBoundingBox$: Observable<BoundingBox | null>;
|
|
4654
4831
|
onSelectedValues(values: unknown[]): void;
|
|
4832
|
+
private spatialExtentErrorNotificationId;
|
|
4833
|
+
onBboxChange(bbox: BoundingBox | null): void;
|
|
4834
|
+
onLocationSelected({ bbox, label }: LocationBbox): void;
|
|
4835
|
+
onSpatialExtentError(error: SpatialExtentDropdownError): void;
|
|
4836
|
+
private clearSpatialExtentErrorNotification;
|
|
4655
4837
|
ngOnInit(): void;
|
|
4656
|
-
|
|
4657
|
-
onEndDateChange(end: Date): void;
|
|
4838
|
+
onDateRangeChange(dateRange: DateRange): void;
|
|
4658
4839
|
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDropdownComponent, never>;
|
|
4659
4840
|
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDropdownComponent, "gn-ui-filter-dropdown", never, { "fieldName": { "alias": "fieldName"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
4660
4841
|
}
|
|
@@ -4851,7 +5032,7 @@ declare class SearchFiltersSummaryItemComponent implements OnInit {
|
|
|
4851
5032
|
private searchFacade;
|
|
4852
5033
|
private searchService;
|
|
4853
5034
|
private fieldsService;
|
|
4854
|
-
private
|
|
5035
|
+
private dateService;
|
|
4855
5036
|
private translate;
|
|
4856
5037
|
fieldName: string;
|
|
4857
5038
|
fieldType: FieldType;
|
|
@@ -4860,6 +5041,7 @@ declare class SearchFiltersSummaryItemComponent implements OnInit {
|
|
|
4860
5041
|
ngOnInit(): void;
|
|
4861
5042
|
translateLabel(): void;
|
|
4862
5043
|
getReadableValues(fieldValues: FieldValue[] | DateRange[]): DisplayedValue[];
|
|
5044
|
+
private formatBound;
|
|
4863
5045
|
removeFilterValue(fieldValue: FieldValue | DateRange): Promise<void>;
|
|
4864
5046
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFiltersSummaryItemComponent, never>;
|
|
4865
5047
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchFiltersSummaryItemComponent, "gn-ui-search-filters-summary-item", never, { "fieldName": { "alias": "fieldName"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -5046,8 +5228,9 @@ declare class DataService {
|
|
|
5046
5228
|
getDownloadUrlFromEsriRest(apiUrl: string, format: string): string;
|
|
5047
5229
|
getDownloadLinksFromWfs(wfsLink: DatasetServiceDistribution): Observable<DatasetOnlineResource[]>;
|
|
5048
5230
|
getDownloadLinksFromOgcApiFeatures(ogcApiLink: DatasetServiceDistribution): Promise<DatasetOnlineResource[]>;
|
|
5049
|
-
|
|
5050
|
-
|
|
5231
|
+
private getTargetCollectionId;
|
|
5232
|
+
getDownloadUrlsFromOgcApi(url: string, collectionId?: string): Promise<OgcApiCollectionInfo>;
|
|
5233
|
+
getItemsFromOgcApi(url: string, collectionId?: string, limit?: number): Promise<OgcApiRecord[]>;
|
|
5051
5234
|
getItemsFromStacApi(url: string, options: GetCollectionItemsOptions): Promise<StacItemsDocument>;
|
|
5052
5235
|
getGeodataLinksFromTms(tmsLink: DatasetServiceDistribution, keepOriginalLink?: boolean): Promise<DatasetServiceDistribution[]>;
|
|
5053
5236
|
getDownloadLinksFromEsriRest(esriRestLink: DatasetServiceDistribution): DatasetOnlineResource[];
|
|
@@ -5915,15 +6098,16 @@ interface FormFieldConfig {
|
|
|
5915
6098
|
invalid?: boolean;
|
|
5916
6099
|
invalidHintKey?: string;
|
|
5917
6100
|
}
|
|
6101
|
+
type FormFieldModel = CatalogRecordKeys | 'flags';
|
|
5918
6102
|
type OnlineLinkResourceSpecifier = `onlineResourceType:link`;
|
|
5919
6103
|
type DatasetDistributionsSpecifier = `onlineResourceType:!link`;
|
|
5920
6104
|
type OnlineSingleLinkResourceSpecifier = `onlineResourceType:singleLink`;
|
|
5921
6105
|
type EditableContactDetailsSpecifier = `contact:editableDetails`;
|
|
5922
|
-
type
|
|
6106
|
+
type FormFieldModelSpecifier = OnlineLinkResourceSpecifier | DatasetDistributionsSpecifier | OnlineSingleLinkResourceSpecifier | EditableContactDetailsSpecifier | `flags:${RecordFlag}`;
|
|
5923
6107
|
type FormFieldComponentName = 'form-field-constraints-shortcuts' | 'form-field-spatial-toggle';
|
|
5924
6108
|
interface EditorFieldIdentification {
|
|
5925
|
-
model?:
|
|
5926
|
-
modelSpecifier?:
|
|
6109
|
+
model?: FormFieldModel;
|
|
6110
|
+
modelSpecifier?: FormFieldModelSpecifier;
|
|
5927
6111
|
componentName?: FormFieldComponentName;
|
|
5928
6112
|
}
|
|
5929
6113
|
interface EditorField extends EditorFieldIdentification {
|
|
@@ -6347,8 +6531,8 @@ declare class FormFieldSpatialExtentComponent {
|
|
|
6347
6531
|
declare class FormFieldComponent {
|
|
6348
6532
|
uniqueIdentifier: string;
|
|
6349
6533
|
recordKind: RecordKind;
|
|
6350
|
-
model:
|
|
6351
|
-
modelSpecifier:
|
|
6534
|
+
model: FormFieldModel;
|
|
6535
|
+
modelSpecifier: FormFieldModelSpecifier;
|
|
6352
6536
|
componentName: FormFieldComponentName;
|
|
6353
6537
|
config: FormFieldConfig;
|
|
6354
6538
|
value: unknown;
|
|
@@ -6371,6 +6555,7 @@ declare class FormFieldComponent {
|
|
|
6371
6555
|
get valueAsIndividuals(): Array<Individual>;
|
|
6372
6556
|
get valueAsOnlineResources(): Array<OnlineResource>;
|
|
6373
6557
|
get valueAsResourceIdentifierCode(): string;
|
|
6558
|
+
get recordFlag(): RecordFlag;
|
|
6374
6559
|
handleResourceIdentifierChange(code: string): void;
|
|
6375
6560
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
6376
6561
|
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "gn-ui-form-field", never, { "uniqueIdentifier": { "alias": "uniqueIdentifier"; "required": false; }; "recordKind": { "alias": "recordKind"; "required": false; }; "model": { "alias": "model"; "required": false; }; "modelSpecifier": { "alias": "modelSpecifier"; "required": false; }; "componentName": { "alias": "componentName"; "required": false; }; "config": { "alias": "config"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, [{ directive: typeof FieldFocusDirective; inputs: {}; outputs: {}; }]>;
|
|
@@ -6400,6 +6585,7 @@ declare class FormFieldTopicsComponent {
|
|
|
6400
6585
|
declare class RecordFormComponent implements OnInit, OnDestroy {
|
|
6401
6586
|
facade: EditorFacade;
|
|
6402
6587
|
notifications: NotificationsService;
|
|
6588
|
+
platform: PlatformServiceInterface;
|
|
6403
6589
|
subscription: Subscription;
|
|
6404
6590
|
recordUniqueIdentifier$: rxjs.Observable<string>;
|
|
6405
6591
|
recordKind$: rxjs.Observable<"dataset" | "service" | "reuse">;
|
|
@@ -6409,14 +6595,16 @@ declare class RecordFormComponent implements OnInit, OnDestroy {
|
|
|
6409
6595
|
focusField(model: CatalogRecordKeys, sectionIndex: number): void;
|
|
6410
6596
|
ngOnInit(): void;
|
|
6411
6597
|
ngOnDestroy(): void;
|
|
6412
|
-
handleFieldValueChange(model:
|
|
6413
|
-
fieldTracker(index: number, field: EditorFieldWithValue):
|
|
6598
|
+
handleFieldValueChange(model: FormFieldModel, newValue: EditorFieldValue): void;
|
|
6599
|
+
fieldTracker(index: number, field: EditorFieldWithValue): FormFieldModel;
|
|
6414
6600
|
sectionTracker(index: number, section: EditorSectionWithValues): string;
|
|
6415
6601
|
getFieldLocation(model: CatalogRecordKeys): Promise<{
|
|
6416
6602
|
page: number;
|
|
6417
6603
|
section: number;
|
|
6418
6604
|
} | null>;
|
|
6419
6605
|
private recordSignal;
|
|
6606
|
+
private userSignal;
|
|
6607
|
+
private isAdminSignal;
|
|
6420
6608
|
private expressionCache;
|
|
6421
6609
|
evaluateExpression(expressionOrValue: string | EditorFieldValue): Signal<EditorFieldValue>;
|
|
6422
6610
|
static ɵfac: i0.ɵɵFactoryDeclaration<RecordFormComponent, never>;
|
|
@@ -6923,6 +7111,19 @@ interface SearchPreset {
|
|
|
6923
7111
|
name: string;
|
|
6924
7112
|
filters: Record<string, string[] | string>;
|
|
6925
7113
|
}
|
|
7114
|
+
type GeocodingProviderName = 'geoadmin' | 'geonames' | 'geoplateforme';
|
|
7115
|
+
interface CustomSearchFieldConfig {
|
|
7116
|
+
name: string;
|
|
7117
|
+
baseFilter: string;
|
|
7118
|
+
excludeValues?: string[];
|
|
7119
|
+
includeValues?: string[];
|
|
7120
|
+
labelKey?: string;
|
|
7121
|
+
}
|
|
7122
|
+
interface GeocodingProviderLabelsConfig {
|
|
7123
|
+
MAIN?: string;
|
|
7124
|
+
SECONDARY?: string;
|
|
7125
|
+
TERTIARY?: string;
|
|
7126
|
+
}
|
|
6926
7127
|
interface MetadataQualityConfig {
|
|
6927
7128
|
ENABLED: boolean;
|
|
6928
7129
|
}
|
|
@@ -6937,14 +7138,33 @@ type CustomTranslations = {
|
|
|
6937
7138
|
type CustomTranslationsAllLanguages = {
|
|
6938
7139
|
[lang: string]: CustomTranslations;
|
|
6939
7140
|
};
|
|
7141
|
+
interface ConfigIssues {
|
|
7142
|
+
warnings: string[];
|
|
7143
|
+
errors: string[];
|
|
7144
|
+
}
|
|
7145
|
+
interface AppConfig {
|
|
7146
|
+
global: GlobalConfig | null;
|
|
7147
|
+
theme: ThemeConfig | null;
|
|
7148
|
+
map: MapConfig | null;
|
|
7149
|
+
search: SearchConfig | null;
|
|
7150
|
+
metadataQuality: MetadataQualityConfig | null;
|
|
7151
|
+
editor: EditorConfig | null;
|
|
7152
|
+
translations: CustomTranslationsAllLanguages;
|
|
7153
|
+
}
|
|
7154
|
+
type ConfigSectionName = keyof AppConfig;
|
|
6940
7155
|
interface SearchConfig {
|
|
6941
7156
|
RECORD_KIND_QUICK_FILTER?: boolean;
|
|
6942
7157
|
FILTER_GEOMETRY_URL?: string;
|
|
6943
7158
|
FILTER_GEOMETRY_DATA?: string;
|
|
6944
7159
|
DO_NOT_USE_DEFAULT_SEARCH_PRESET?: boolean;
|
|
6945
7160
|
SEARCH_PRESET?: SearchPreset[];
|
|
6946
|
-
ADVANCED_FILTERS?: [];
|
|
7161
|
+
ADVANCED_FILTERS?: string[];
|
|
7162
|
+
CUSTOM_FILTERS?: CustomSearchFieldConfig[];
|
|
6947
7163
|
LIMIT?: number;
|
|
7164
|
+
SPATIAL_EXTENT_MAX_FILE_SIZE?: number;
|
|
7165
|
+
GEOCODING_PROVIDER?: GeocodingProviderName;
|
|
7166
|
+
GEOCODING_PROVIDER_OPTIONS?: Record<string, string | number | boolean | string[]>;
|
|
7167
|
+
GEOCODING_PROVIDER_LABELS?: GeocodingProviderLabelsConfig;
|
|
6948
7168
|
}
|
|
6949
7169
|
interface SearchConfig {
|
|
6950
7170
|
FILTER_GEOMETRY?: Geometry;
|
|
@@ -6957,7 +7177,12 @@ declare function getOptionalSearchConfig(): SearchConfig | null;
|
|
|
6957
7177
|
declare function getOptionalEditorConfig(): EditorConfig | null;
|
|
6958
7178
|
declare function getMetadataQualityConfig(): MetadataQualityConfig;
|
|
6959
7179
|
declare function getCustomTranslations(langCode: string): CustomTranslations;
|
|
6960
|
-
|
|
7180
|
+
/**
|
|
7181
|
+
* Loads the configuration file and stores the given sections (all by default);
|
|
7182
|
+
* omitted sections are reset (their getters will throw or return null);
|
|
7183
|
+
* resolves with the parsed configuration file, e.g. to read sections with a custom parser
|
|
7184
|
+
*/
|
|
7185
|
+
declare function loadAppConfig(configUrl?: string, sections?: ConfigSectionName[]): Promise<Record<string, unknown>>;
|
|
6961
7186
|
declare function isConfigLoaded(): boolean;
|
|
6962
7187
|
declare function _reset(): void;
|
|
6963
7188
|
declare const TRANSLATE_WITH_OVERRIDES_CONFIG: TranslateModuleConfig;
|
|
@@ -6965,6 +7190,7 @@ declare const TRANSLATE_WITH_OVERRIDES_CONFIG: TranslateModuleConfig;
|
|
|
6965
7190
|
declare const okAppConfigFixture: () => string;
|
|
6966
7191
|
declare const appConfigWithTranslationFixture: () => string;
|
|
6967
7192
|
declare const minimalAppConfigFixture: () => string;
|
|
7193
|
+
declare const customFilterMissingMandatoryConfigFixture: () => string;
|
|
6968
7194
|
declare const mapConfigFixture: () => MapConfig;
|
|
6969
7195
|
declare const malformedConfigFixture: () => string;
|
|
6970
7196
|
declare const missingMandatoryConfigFixture: () => string;
|
|
@@ -6973,6 +7199,27 @@ declare const unrecognizedKeysConfigFixture: () => string;
|
|
|
6973
7199
|
|
|
6974
7200
|
declare function getMapContextLayerFromConfig(config: LayerConfig): MapContextLayer;
|
|
6975
7201
|
|
|
6976
|
-
export { ADD_RESULTS, ADD_SEARCH, AVAILABLE_LICENSES, AbstractAction, AbstractSearchField, ActionMenuComponent, AddLayerFromCatalogComponent, AddLayerRecordPreviewComponent, AddResults, AddSearch, AnchorLinkDirective, ApiCardComponent, ApplicationBannerComponent, AuthService, AutocompleteComponent, AvailableServicesField, AvatarComponent, AvatarServiceInterface, BASEMAP_LAYERS, BadgeComponent, BaseConverter, BaseFileReader, BaseReader, BlockListComponent, ButtonComponent, CHART_TYPE_VALUES, CLEAR_ERROR, CLEAR_RESULTS, CarouselComponent, CatalogTitleComponent, CellPopinComponent, ChartComponent, ChartViewComponent, CheckToggleComponent, CheckboxComponent, ClearError, ClearResults, ColorScaleComponent, ConfirmationDialogComponent, ContactDetailsComponent, ContactDetailsFormComponent, ContactPillComponent, ContentGhostComponent, CopyTextButtonComponent, DEFAULT_BASEMAP_LAYER, DEFAULT_CONFIGURATION, DEFAULT_GN4_LOGIN_URL, DEFAULT_GN4_LOGOUT_URL, DEFAULT_GN4_SETTINGS_URL, DEFAULT_LANG, DEFAULT_PAGE_SIZE, DEFAULT_RECORD_CONVERTER, DEFAULT_RESULTS_LAYOUT_CONFIG, DEFAULT_SEARCH_KEY, DEFAULT_SPATIAL_EXTENT_STYLE, DISABLE_AUTH, DISABLE_DRAFT, DO_NOT_USE_DEFAULT_BASEMAP, DataService, DataTableComponent, DataViewComponent, DataViewPermalinkComponent, DataViewShareComponent, DataViewWebComponentComponent, DatePickerComponent, DateRangeDropdownComponent, DateRangeInputsComponent, DateRangePickerComponent, DateRangeSearchField, DateService, DcatApConverter, DefaultRouterModule, DownloadItemComponent, DownloadsListComponent, DragAndDropFileInputComponent, DropdownMultiselectComponent, DropdownSelectorComponent, EDITOR_FEATURE_KEY, ES_QUERY_FIELDS_PRIORITY, ES_RESOURCES_VALUES, ES_SOURCE_SUMMARY, EXTERNAL_VIEWER_OPEN_NEW_TAB, EXTERNAL_VIEWER_URL_TEMPLATE, EditableLabelDirective, EditorFacade, EditorService, ElasticsearchService, ErrorComponent, ErrorType, ExpandablePanelButtonComponent, ExpandablePanelComponent, ExternalLinkCardComponent, ExternalViewerButtonComponent, FIELDS_BRIEF, FIELDS_SUMMARY, FILTER_GEOMETRY, FILTER_SUMMARY_IGNORE_LIST, FORMATS, FacetBlockComponent, FacetItemComponent, FacetListComponent, FacetsContainerComponent, FavoriteStarComponent, FavoritesService, FeatureCatalogListComponent, FeatureDetailComponent, FeatureEditorModule, FeatureMapModule, FeatureRecordModule, FeatureSearchModule, FetchError, FieldFocusDirective, FieldsService, FigureComponent, FigureContainerComponent, FileInputComponent, FileTranslateLoader, FilesDropDirective, FilterDropdownComponent, FormFieldArrayComponent, FormFieldComponent, FormFieldDateComponent, FormFieldFileComponent, FormFieldKeywordsComponent, FormFieldLicenseComponent, FormFieldObjectComponent, FormFieldRichComponent, FormFieldSimpleComponent, FormFieldSpatialExtentComponent, FormFieldTemporalExtentsComponent, FormFieldTopicsComponent, FormFieldWrapperComponent, FullTextSearchField, FuzzySearchComponent, GEONETWORK_UI_TAG_NAME, GEONETWORK_UI_VERSION, GeoDataBadgeComponent, GeoTableViewComponent, GeocodingComponent, GeojsonReader, Gn4Converter, Gn4PlatformMapper, Gn4PlatformService, Gn4Repository, Gn4SettingsService, GnUiHumanizeDateDirective, GpfApiDlComponent, GravatarService, I18nInterceptor, ISO_TOPICS, ImageFallbackDirective, ImageInputComponent, ImageOverlayPreviewComponent, ImportRecordComponent, InlineFilterComponent, InteractiveTableColumnComponent, InteractiveTableComponent, InternalLinkCardComponent, IsSpatialSearchField, Iso191153Converter, Iso19139Converter, KeywordBadgeComponent, KindBadgeComponent, LANGUAGES_LIST, LANGUAGE_NAMES, LANGUAGE_STORAGE_KEY, LANG_2_TO_3_MAPPER, LOGIN_URL, LOGOUT_URL, LONLAT_CRS_CODES, LanguageSwitcherComponent, LayersPanelComponent, LicenseSearchField, LinkClassifierService, LinkUsage, LoadingMaskComponent, LogService, MAP_FEATURE_KEY, MAP_VIEW_CONSTRAINTS, MAX_UPLOAD_SIZE_MB, METADATA_LANGUAGE, MapContainerComponent, MapFacade, MapLegendComponent, MapStateContainerComponent, MapStyleService, MapUtilsService, MapViewComponent, MarkdownEditorComponent, MarkdownParserComponent, MaxLinesComponent, mdview_actions_d as MdViewActions, MdViewFacade, MetadataCatalogComponent, MetadataContactComponent, MetadataDoiComponent, MetadataInfoComponent, MetadataLinkType, MetadataMapperContext, MetadataQualityComponent, MetadataQualityItemComponent, MetadataQualityPanelComponent, ModalDialogComponent, MultilingualPanelComponent, MultilingualSearchField, MyOrgService, NAMESPACES, NOT_APPLICABLE_CONSTRAINT, NOT_KNOWN_CONSTRAINT, NotificationComponent, NotificationsContainerComponent, NotificationsService, OPEN_DATA_LICENSE, ORGANIZATIONS_STRATEGY, ORGANIZATION_PAGE_URL_TOKEN, ORGANIZATION_URL_TOKEN, OnlineResourceCardComponent, OnlineServiceResourceInputComponent, OrganisationPreviewComponent, OrganisationsComponent, OrganisationsFilterComponent, OrganisationsResultComponent, OrganizationSearchField, OrganizationsFromGroupsService, OrganizationsFromMetadataService, OrganizationsServiceInterface, OwnerSearchField, PAGINATE, PARSE_DELIMITER, PATCH_RESULTS_AGGREGATIONS, PROXY_PATH, Paginate, PaginationButtonsComponent, PaginationComponent, PaginationDotsComponent, PatchResultsAggregations, PlatformServiceInterface, PopoverComponent, PopupAlertComponent, PossibleResourceTypes, PossibleResourceTypesDefinition, PreviousNextButtonsComponent, ProgressBarComponent, ProxyService, QUERY_FIELDS, RECORD_DATASET_URL_TOKEN, RECORD_REUSE_URL_TOKEN, RECORD_SERVICE_URL_TOKEN, REQUEST_MORE_ON_AGGREGATION, REQUEST_MORE_RESULTS, REQUEST_NEW_RESULTS, RESULTS_LAYOUT_CONFIG, REUSE_LIGHT_CONFIGURATION, ROUTER_CONFIG, ROUTER_ROUTE_DATASET, ROUTER_ROUTE_ORGANIZATION, ROUTER_ROUTE_REUSE, ROUTER_ROUTE_SEARCH, ROUTER_ROUTE_SERVICE, ROUTER_STATE_KEY, ROUTE_PARAMS, RecordApiFormComponent, RecordFormComponent, RecordKindField, RecordMetaComponent, RecordMetricComponent, RecordPreviewCardComponent, RecordPreviewComponent, RecordPreviewFeedComponent, RecordPreviewListComponent, RecordPreviewRowComponent, RecordPreviewTextComponent, RecordPreviewTitleComponent, RecordStatusValues, RecordsMetricsComponent, RecordsRepositoryInterface, RecordsService, RequestMoreOnAggregation, RequestMoreResults, RequestNewResults, ResourceTypeLegacyField, ResultsHitsContainerComponent, ResultsHitsNumberComponent, ResultsHitsSearchKindComponent, ResultsLayoutComponent, ResultsLayoutConfigItem, ResultsListComponent, ResultsListContainerComponent, ResultsListItemComponent, ResultsTableComponent, ResultsTableContainerComponent, ReusePresentationForms, RoleLabels, RoleValues, RouterEffects, RouterFacade, RouterService, SEARCH_FEATURE_KEY, SETTINGS_URL, SET_CONFIG_AGGREGATIONS, SET_CONFIG_FILTERS, SET_CONFIG_REQUEST_FIELDS, SET_ERROR, SET_FAVORITES_ONLY, SET_FILTERS, SET_INCLUDE_ON_AGGREGATION, SET_PAGE_SIZE, SET_RESULTS_AGGREGATIONS, SET_RESULTS_HITS, SET_RESULTS_LAYOUT, SET_SEARCH, SET_SORT_BY, SET_SPATIAL_FILTER_ENABLED, SPATIAL_SCOPES, SearchEffects, SearchFacade, SearchFeatureCatalogComponent, SearchFiltersSummaryComponent, SearchFiltersSummaryItemComponent, SearchInputComponent, SearchRouterContainerDirective, SearchService, SearchStateContainerDirective, SelectionService, ServiceCapabilitiesComponent, SetConfigAggregations, SetConfigFilters, SetConfigRequestFields, SetError, SetFavoritesOnly, SetFilters, SetIncludeOnAggregation, SetPageSize, SetResultsAggregations, SetResultsHits, SetResultsLayout, SetSearch, SetSortBy, SetSpatialFilterEnabled, SimpleSearchField, SiteTitleComponent, SortByComponent, SortByEnum, SortableListComponent, SourceLabelComponent, SourcesService, SpatialExtentComponent, SpinningLoaderComponent, StacItemsResultGridComponent, StacViewComponent, StarToggleComponent, StickyHeaderComponent, SupportedTypes, SwitchToggleComponent, THUMBNAIL_PLACEHOLDER, TRANSLATE_DEBUG_CONFIG, TRANSLATE_DEFAULT_CONFIG, TRANSLATE_WITH_OVERRIDES_CONFIG, TableViewComponent, TextAreaComponent, TextInputComponent, ThemeService, ThumbnailComponent, TranslatedSearchField, TruncatedTextComponent, UPDATE_CONFIG_AGGREGATIONS, UPDATE_FILTERS, UPDATE_REQUEST_AGGREGATION_TERM, UpdateConfigAggregations, UpdateFilters, UrlInputComponent, UserFeedbackItemComponent, UserPreviewComponent, UserSearchField, VECTOR_STYLE_DEFAULT, ViewportIntersectorComponent, WEB_COMPONENT_EMBEDDER_URL, XmlParseError, _reset, allChildrenElement, appConfigWithTranslationFixture, appendChildTree, appendChildren, assertValidXml, associationTypeValues, bboxToPolygon, blockModelFixture, bytesToMegabytes, canEditRecord, checkFileFormat, clearSelectedFeatures, createChild, createDocument, createElement, createFuzzyFilter, createNestedChild, createNestedElement, createSpatialExtentLayer, currentPage, defaultMapStyleFixture, defaultMapStyleHlFixture, downgradeImage, downsizeImage, draftSaveSuccess, dragPanCondition, dropEmptyTranslations, editorReducer, emptyBlockModelFixture, findChildElement, findChildOrCreate, findChildrenElement, findConverterForDocument, findNestedChildOrCreate, findNestedElement, findNestedElements, findParent, firstChildElement, formatDate, formatUserInfo, getAddressLines, getAllKeysValidator, getArrayItem, getAsArray, getAsUrl, getBadgeColor, getCustomTranslations, getError, getFavoritesOnly, getFileFormat, getFileFormatFromServiceOutput, getFirstValue, getFormatPriority, getGeometryBoundingBox, getGeometryFromGeoJSON, getGlobalConfig, getIndividualDisplayName, getIsMobile, getJsonDataItemsProxy, getKeywordHierarchyPath, getLayers, getLinkId, getLinkLabel, getLinkPriority, getMapContext, getMapContextLayerFromConfig, getMapState, getMetadataQualityConfig, getMimeTypeForFormat, getNamespace, getOptionalEditorConfig, getOptionalMapConfig, getOptionalSearchConfig, getPageSize, getQualityValidators, getResourceType, getReusePresentationForm, getReuseType, getRootElement, getSearchConfigAggregations, getSearchFilters, getSearchResults, getSearchResultsAggregations, getSearchResultsHits, getSearchResultsLayout, getSearchResultsLoading, getSearchSortBy, getSearchState, getSearchStateSearch, getSelectedFeatures, getSpatialFilterEnabled, getTemporalRangeUnion, getThemeConfig, handleScrollOnNavigation, hasRecordChangedSinceDraft, hasRecordChangedSinceDraftSuccess, initSearch, initialEditorState, initialMapState, initialState, isConfigLoaded, isDateRange, isFormatInQueryParam, isPublished, itemModelFixture, kindToCodeListValue, loadAppConfig, malformedConfigFixture, mapConfigFixture, mapContact, mapKeywords, mapLogo, mapOrganization, mapReducer, markRecordAsChanged, matchesNoApplicableConstraint, matchesNoKnownConstraint, megabytesToBytes, mimeTypeToFormat, minimalAppConfigFixture, missingMandatoryConfigFixture, mouseWheelZoomCondition, noDuplicateFileName, okAppConfigFixture, openDataset, openRecord, organizationsServiceFactory, parse, parseXmlString, placeholder, prioritizePageScroll, propagateToDocumentOnly, provideGn4, provideI18n, provideRepositoryUrl, readAttribute, readDataset, readDatasetHeaders, readText, reducer, reducerSearch, removeAllChildren, removeChildren, removeChildrenByName, removeSearchParams, removeWhitespace, renameElements, saveRecord, saveRecordFailure, saveRecordSuccess, selectCanEditRecord, selectCurrentPage, selectEditorConfig, selectEditorState, selectFallback, selectFallbackFields, selectField, selectHasRecordChanged, selectIsPublished, selectRecord, selectRecordChangedSinceSave, selectRecordSaveError, selectRecordSaving, selectRecordSections, selectRecordSource, selectTranslatedField, selectTranslatedValue, setContext, setCurrentPage, setEditorConfiguration, setFieldVisibility, setFocusedField, setSelectedFeatures, setTextContent, sortByFromString, sortByToString, sortByToStrings, spatialExtentToGeometry, spatialExtentsToFeatureCollection, stripHtml, stripNamespace, toDate, toIndividual, toLang2, toLang3, totalPages, undoRecordDraft, unrecognizedKeysConfigFixture, updateFrequencyCodeValues, updateLanguages, updateRecordField, updateRecordLanguages, wmsLayerFlatten, writeAttribute, wrongLanguageCodeConfigFixture, xmlToString };
|
|
6977
|
-
|
|
7202
|
+
/**
|
|
7203
|
+
* Only keeps recognized keys, flatten nested values (to allow having "." in keys),
|
|
7204
|
+
* pushes warnings and errors to the given arrays; returns null in case of error
|
|
7205
|
+
*/
|
|
7206
|
+
declare function parseConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string, mandatoryKeys: string[], optionalKeys: string[], outWarnings: string[], outErrors: string[]): Record<string, unknown> | null;
|
|
7207
|
+
/**
|
|
7208
|
+
* Same as parseConfigSection but keeps all keys, recognized or not
|
|
7209
|
+
* Also the first level is the language code (e.g. 'en')
|
|
7210
|
+
* This is optional
|
|
7211
|
+
*/
|
|
7212
|
+
declare function parseTranslationsConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string): Record<string, unknown>;
|
|
7213
|
+
/**
|
|
7214
|
+
* Same as parseConfigSection but handles an array of configs; this is
|
|
7215
|
+
* considered optional; returns null in case of error in at least one of
|
|
7216
|
+
* the sections
|
|
7217
|
+
*/
|
|
7218
|
+
declare function parseMultiConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string, mandatoryKeys: string[], optionalKeys: string[], outWarnings: string[], outErrors: string[]): Record<string, unknown>[] | null;
|
|
7219
|
+
declare function checkMetadataLanguage(parsedConfigSection: any, outWarnings: string[]): any;
|
|
7220
|
+
declare function checkNewRecordDefaultLanguage(parsedConfigSection: any, outWarnings: string[]): any;
|
|
7221
|
+
declare function checkNewRecordStandard(parsedConfigSection: any, outWarnings: string[]): any;
|
|
7222
|
+
|
|
7223
|
+
export { ADD_RESULTS, ADD_SEARCH, AVAILABLE_LICENSES, AbstractAction, AbstractSearchField, ActionMenuComponent, AddLayerFromCatalogComponent, AddLayerRecordPreviewComponent, AddResults, AddSearch, AnchorLinkDirective, ApiCardComponent, ApplicationBannerComponent, AuthService, AutocompleteComponent, AutofocusDirective, AvailableServicesField, AvatarComponent, AvatarServiceInterface, BASEMAP_LAYERS, BadgeComponent, BaseConverter, BaseFileReader, BaseReader, BlockListComponent, BoundingBoxSearchField, ButtonComponent, CHART_TYPE_VALUES, CLEAR_ERROR, CLEAR_RESULTS, CUSTOM_FIELDS, CarouselComponent, CatalogTitleComponent, CellPopinComponent, ChartComponent, ChartViewComponent, CheckToggleComponent, CheckboxComponent, ClearError, ClearResults, ColorScaleComponent, ConfirmationDialogComponent, ContactDetailsComponent, ContactDetailsFormComponent, ContactPillComponent, ContentGhostComponent, CopyTextButtonComponent, DEFAULT_BASEMAP_LAYER, DEFAULT_CONFIGURATION, DEFAULT_GEOCODING_PROVIDER, DEFAULT_GN4_LOGIN_URL, DEFAULT_GN4_LOGOUT_URL, DEFAULT_GN4_SETTINGS_URL, DEFAULT_LANG, DEFAULT_PAGE_SIZE, DEFAULT_RECORD_CONVERTER, DEFAULT_RESULTS_LAYOUT_CONFIG, DEFAULT_SEARCH_KEY, DEFAULT_SPATIAL_EXTENT_STYLE, DISABLE_AUTH, DISABLE_DRAFT, DO_NOT_USE_DEFAULT_BASEMAP, DataService, DataTableComponent, DataViewComponent, DataViewPermalinkComponent, DataViewShareComponent, DataViewWebComponentComponent, DatePickerComponent, DateRangeDropdownComponent, DateRangeInputsComponent, DateRangePickerComponent, DateRangeSearchField, DateService, DcatApConverter, DefaultRouterModule, DownloadItemComponent, DownloadsListComponent, DragAndDropFileInputComponent, DropdownMultiselectComponent, DropdownSelectorComponent, EDITOR_FEATURE_KEY, ES_QUERY_FIELDS_PRIORITY, ES_RESOURCES_VALUES, ES_SOURCE_SUMMARY, EXTERNAL_VIEWER_OPEN_NEW_TAB, EXTERNAL_VIEWER_URL_TEMPLATE, EditableLabelDirective, EditorFacade, EditorService, ElasticsearchService, ErrorComponent, ErrorType, ExpandablePanelButtonComponent, ExpandablePanelComponent, ExternalLinkCardComponent, ExternalViewerButtonComponent, FIELDS_BRIEF, FIELDS_SUMMARY, FILTER_GEOMETRY, FILTER_SUMMARY_IGNORE_LIST, FORMATS, FacetBlockComponent, FacetItemComponent, FacetListComponent, FacetsContainerComponent, FavoriteStarComponent, FavoritesService, FeatureCatalogListComponent, FeatureDetailComponent, FeatureEditorModule, FeatureMapModule, FeatureRecordModule, FeatureSearchModule, FetchError, FieldFocusDirective, FieldsService, FigureComponent, FigureContainerComponent, FileInputComponent, FileTranslateLoader, FilesDropDirective, FilterDropdownComponent, FormFieldArrayComponent, FormFieldComponent, FormFieldDateComponent, FormFieldFileComponent, FormFieldKeywordsComponent, FormFieldLicenseComponent, FormFieldObjectComponent, FormFieldRichComponent, FormFieldSimpleComponent, FormFieldSpatialExtentComponent, FormFieldTemporalExtentsComponent, FormFieldTopicsComponent, FormFieldWrapperComponent, FullTextSearchField, FuzzySearchComponent, GEOCODING_PROVIDER, GEOCODING_PROVIDER_LABELS, GEONETWORK_UI_TAG_NAME, GEONETWORK_UI_VERSION, GeoDataBadgeComponent, GeoTableViewComponent, GeocodingService, GeojsonReader, Gn4Converter, Gn4PlatformMapper, Gn4PlatformService, Gn4Repository, Gn4SettingsService, GnUiHumanizeDateDirective, GpfApiDlComponent, GravatarService, I18nInterceptor, ISO_TOPICS, ImageFallbackDirective, ImageInputComponent, ImageOverlayPreviewComponent, ImportRecordComponent, InlineFilterComponent, InteractiveTableColumnComponent, InteractiveTableComponent, InternalLinkCardComponent, IsSpatialSearchField, Iso191153Converter, Iso19139Converter, KeywordBadgeComponent, KindBadgeComponent, LANGUAGES_LIST, LANGUAGE_NAMES, LANGUAGE_STORAGE_KEY, LANG_2_TO_3_MAPPER, LOGIN_URL, LOGOUT_URL, LONLAT_CRS_CODES, LanguageSwitcherComponent, LayersPanelComponent, LicenseSearchField, LinkClassifierService, LinkUsage, LoadingMaskComponent, LocationSearchComponent, LogService, MAP_FEATURE_KEY, MAP_VIEW_CONSTRAINTS, MAX_UPLOAD_SIZE_MB, METADATA_LANGUAGE, MapContainerComponent, MapFacade, MapLegendComponent, MapStateContainerComponent, MapUtilsService, MapViewComponent, MarkdownEditorComponent, MarkdownParserComponent, MaxLinesComponent, mdview_actions_d as MdViewActions, MdViewFacade, MetadataCatalogComponent, MetadataContactComponent, MetadataDoiComponent, MetadataInfoComponent, MetadataLinkType, MetadataMapperContext, MetadataQualityComponent, MetadataQualityItemComponent, MetadataQualityPanelComponent, ModalDialogComponent, MultilingualPanelComponent, MultilingualSearchField, MyOrgService, NAMESPACES, NOT_APPLICABLE_CONSTRAINT, NOT_KNOWN_CONSTRAINT, NotificationComponent, NotificationsContainerComponent, NotificationsService, OPEN_DATA_LICENSE, ORGANIZATIONS_STRATEGY, ORGANIZATION_PAGE_URL_TOKEN, ORGANIZATION_URL_TOKEN, OnlineResourceCardComponent, OnlineServiceResourceInputComponent, OrganisationPreviewComponent, OrganisationsComponent, OrganisationsFilterComponent, OrganisationsResultComponent, OrganizationSearchField, OrganizationsFromGroupsService, OrganizationsFromMetadataService, OrganizationsServiceInterface, OwnerSearchField, PAGINATE, PARSE_DELIMITER, PATCH_RESULTS_AGGREGATIONS, PROXY_PATH, Paginate, PaginationButtonsComponent, PaginationComponent, PaginationDotsComponent, PatchResultsAggregations, PlatformServiceInterface, PopoverComponent, PopupAlertComponent, PossibleResourceTypes, PossibleResourceTypesDefinition, PreviousNextButtonsComponent, ProgressBarComponent, ProxyService, QUERY_FIELDS, RECORD_DATASET_URL_TOKEN, RECORD_FLAG_CATEGORY_PREFIX, RECORD_REUSE_URL_TOKEN, RECORD_SERVICE_URL_TOKEN, REFERENCE_DATASET_BOOST, REQUEST_MORE_ON_AGGREGATION, REQUEST_MORE_RESULTS, REQUEST_NEW_RESULTS, RESULTS_LAYOUT_CONFIG, REUSE_LIGHT_CONFIGURATION, ROUTER_CONFIG, ROUTER_ROUTE_DATASET, ROUTER_ROUTE_ORGANIZATION, ROUTER_ROUTE_REUSE, ROUTER_ROUTE_SEARCH, ROUTER_ROUTE_SERVICE, ROUTER_STATE_KEY, ROUTE_PARAMS, RecordApiFormComponent, RecordFormComponent, RecordKindField, RecordMetaComponent, RecordMetricComponent, RecordPreviewCardComponent, RecordPreviewComponent, RecordPreviewFeedComponent, RecordPreviewListComponent, RecordPreviewRowComponent, RecordPreviewTextComponent, RecordPreviewTitleComponent, RecordStatusValues, RecordsMetricsComponent, RecordsRepositoryInterface, RecordsService, RequestMoreOnAggregation, RequestMoreResults, RequestNewResults, ResourceCreationRevisionDateSearchField, ResourceTypeLegacyField, ResultsHitsContainerComponent, ResultsHitsNumberComponent, ResultsHitsSearchKindComponent, ResultsLayoutComponent, ResultsLayoutConfigItem, ResultsListComponent, ResultsListContainerComponent, ResultsListItemComponent, ResultsTableComponent, ResultsTableContainerComponent, ReusePresentationForms, RoleLabels, RoleValues, RouterEffects, RouterFacade, RouterService, SEARCH_FEATURE_KEY, SETTINGS_URL, SET_CONFIG_AGGREGATIONS, SET_CONFIG_FILTERS, SET_CONFIG_REQUEST_FIELDS, SET_ERROR, SET_FAVORITES_ONLY, SET_FILTERS, SET_INCLUDE_ON_AGGREGATION, SET_PAGE_SIZE, SET_RESULTS_AGGREGATIONS, SET_RESULTS_HITS, SET_RESULTS_LAYOUT, SET_SEARCH, SET_SORT_BY, SET_SPATIAL_FILTER_ENABLED, SPATIAL_EXTENT_MAX_FILE_SIZE, SPATIAL_SCOPES, SearchEffects, SearchFacade, SearchFeatureCatalogComponent, SearchFiltersSummaryComponent, SearchFiltersSummaryItemComponent, SearchInputComponent, SearchRouterContainerDirective, SearchService, SearchStateContainerDirective, SelectionService, ServiceCapabilitiesComponent, SetConfigAggregations, SetConfigFilters, SetConfigRequestFields, SetError, SetFavoritesOnly, SetFilters, SetIncludeOnAggregation, SetPageSize, SetResultsAggregations, SetResultsHits, SetResultsLayout, SetSearch, SetSortBy, SetSpatialFilterEnabled, SimpleSearchField, SiteTitleComponent, SortByComponent, SortByEnum, SortableListComponent, SourceLabelComponent, SourcesService, SpatialExtentComponent, SpatialExtentDropdownComponent, SpinningLoaderComponent, StacItemsResultGridComponent, StacViewComponent, StarToggleComponent, StickyHeaderComponent, SupportedTypes, SwitchToggleComponent, THUMBNAIL_PLACEHOLDER, TRANSLATE_DEBUG_CONFIG, TRANSLATE_DEFAULT_CONFIG, TRANSLATE_WITH_OVERRIDES_CONFIG, TableViewComponent, TextAreaComponent, TextInputComponent, ThemeService, ThumbnailComponent, TranslatedSearchField, TruncatedTextComponent, UPDATE_CONFIG_AGGREGATIONS, UPDATE_FILTERS, UPDATE_REQUEST_AGGREGATION_TERM, UpdateConfigAggregations, UpdateFilters, UrlInputComponent, UserFeedbackItemComponent, UserPreviewComponent, UserSearchField, VECTOR_STYLE_DEFAULT, ViewportIntersectorComponent, WEB_COMPONENT_EMBEDDER_URL, XmlParseError, _reset, allChildrenElement, appConfigWithTranslationFixture, appendChildTree, appendChildren, assertValidXml, associationTypeValues, bboxToGeometry, blockModelFixture, bytesToMegabytes, canEditRecord, checkFileFormat, checkMetadataLanguage, checkNewRecordDefaultLanguage, checkNewRecordStandard, clearSelectedFeatures, createChild, createDocument, createElement, createFuzzyFilter, createNestedChild, createNestedElement, createSpatialExtentLayer, currentPage, customFilterMissingMandatoryConfigFixture, downgradeImage, downsizeImage, draftSaveSuccess, dragPanCondition, dropEmptyTranslations, editorReducer, emptyBlockModelFixture, findChildElement, findChildOrCreate, findChildrenElement, findConverterForDocument, findNestedChildOrCreate, findNestedElement, findNestedElements, findParent, firstChildElement, formatDate, formatUserInfo, getAddressLines, getAllKeysValidator, getArrayItem, getAsArray, getAsUrl, getBadgeColor, getCustomTranslations, getError, getFavoritesOnly, getFileFormat, getFileFormatFromServiceOutput, getFirstValue, getFormatPriority, getGeometryBoundingBox, getGeometryFromGeoJSON, getGlobalConfig, getIndividualDisplayName, getIsMobile, getJsonDataItemsProxy, getKeywordHierarchyPath, getLayers, getLinkId, getLinkLabel, getLinkPriority, getMapContext, getMapContextLayerFromConfig, getMapState, getMetadataQualityConfig, getMimeTypeForFormat, getNamespace, getOptionalEditorConfig, getOptionalMapConfig, getOptionalSearchConfig, getPageSize, getQualityValidators, getResourceType, getReusePresentationForm, getReuseType, getRootElement, getSearchConfigAggregations, getSearchFilters, getSearchResults, getSearchResultsAggregations, getSearchResultsHits, getSearchResultsLayout, getSearchResultsLoading, getSearchSortBy, getSearchState, getSearchStateSearch, getSelectedFeatures, getSpatialFilterEnabled, getTemporalRangeUnion, getThemeConfig, handleScrollOnNavigation, hasRecordChangedSinceDraft, hasRecordChangedSinceDraftSuccess, initSearch, initialEditorState, initialMapState, initialState, isBoundingBox, isBoundingBoxWithinWorldExtent, isConfigLoaded, isDateRange, isFileExtensionValid, isFormatInQueryParam, isPublished, itemModelFixture, kindToCodeListValue, loadAppConfig, malformedConfigFixture, mapConfigFixture, mapContact, mapKeywords, mapLogo, mapOrganization, mapReducer, markRecordAsChanged, matchesNoApplicableConstraint, matchesNoKnownConstraint, megabytesToBytes, mimeTypeToFormat, minimalAppConfigFixture, missingMandatoryConfigFixture, mouseWheelZoomCondition, noDuplicateFileName, okAppConfigFixture, openDataset, openRecord, organizationsServiceFactory, parse, parseConfigSection, parseMultiConfigSection, parseTranslationsConfigSection, parseXmlString, placeholder, prioritizePageScroll, propagateToDocumentOnly, provideGn4, provideI18n, provideLocalizedDateAdapter, provideRepositoryUrl, readAttribute, readDataset, readDatasetHeaders, readFileAsText, readText, reducer, reducerSearch, removeAllChildren, removeChildren, removeChildrenByName, removeSearchParams, removeWhitespace, renameElements, saveRecord, saveRecordFailure, saveRecordSuccess, selectCanEditRecord, selectCurrentPage, selectEditorConfig, selectEditorState, selectFallback, selectFallbackFields, selectField, selectHasRecordChanged, selectIsPublished, selectRecord, selectRecordChangedSinceSave, selectRecordSaveError, selectRecordSaving, selectRecordSections, selectRecordSource, selectTranslatedField, selectTranslatedValue, setContext, setCurrentPage, setEditorConfiguration, setFieldVisibility, setFocusedField, setSelectedFeatures, setTextContent, sortByFromString, sortByToString, sortByToStrings, spatialExtentToGeometry, spatialExtentsToFeatureCollection, stripHtml, stripNamespace, toDate, toIndividual, toLang2, toLang3, totalPages, undoRecordDraft, unrecognizedKeysConfigFixture, updateFrequencyCodeValues, updateLanguages, updateRecordField, updateRecordLanguages, wmsLayerFlatten, writeAttribute, wrongLanguageCodeConfigFixture, xmlToString };
|
|
7224
|
+
export type { Aggregation, AggregationBuckets, AggregationCounts, AggregationParams, AggregationResult, AggregationSort, AggregationTypes, Aggregations, AggregationsParams, AggregationsResults, AggregationsTypes, AppConfig, AssociatedRecord, AssociationType, AutocompleteItem, BaseRecord, BoundingBox, Bucket, CatalogRecord, CatalogRecordKeys, CatalogSource, Choice$1 as Choice, ConfigIssues, ConfigSectionName, ConfirmationDialogData, Constraint, ConstraintTranslations, CustomSearchField, CustomSearchFieldConfig, CustomTranslations, CustomTranslationsAllLanguages, DataItem, DatasetDownloadDistribution, DatasetFeatureAttribute, DatasetFeatureAttributeValue, DatasetFeatureCatalog, DatasetFeatureType, DatasetOnlineResource, DatasetRecord, DatasetServiceDistribution, DatasetSpatialExtent, DatasetTemporalExtent, DatavizChartConfigModel, DatavizConfigModel, DateRange, DateRangeBound, DragAndDropFileInputError, DropdownChoice, EditorConfig, EditorFieldWithValue, EditorPartialState, EditorSectionWithValues, EditorState, EsQueryFieldsPriorityType, EsRequestAggTerm, EsRequestAggTermPatch, EsRequestSource, EsResourceType, EsResourceTypeValues, EsSearchParams, EsSearchResponse, EsTemplateType, EsTemplateValues, FacetPath, FacetSelectEvent, FeatureType, Field, FieldAggregation, FieldAvailableValue, FieldFilter$1 as FieldFilter, FieldFilterByBoundingBox, FieldFilterByExpression, FieldFilterByRange, FieldFilterByValues, FieldFilters, FieldName$1 as FieldName, FieldSort$1 as FieldSort, FieldTranslation, FieldType, FieldValue, FieldValues, FileFormat, FilterAggregationParams, FilterQuery, FiltersAggregationParams, FiltersAggregationResult, FiltersBucket, FormatProduit, FormatSortieProduit, GeocodingProvider, GeocodingProviderLabels, GeocodingProviderLabelsConfig, GeocodingProviderName, GlobalConfig, Gn4Record, Gn4RecordRelated, Gn4SearchResults, GpfApiDlTermBucket, GraphicOverview, HasPath, HistogramAggregationParams, HistogramAggregationResult, HistogramBucket, ISOTopic, Individual, InputChartType, Iso3Langs, Keyword, KeywordApiResponse, KeywordTranslations, KeywordTree, Label, LanguageCode, LanguageCode2, LanguageCode3, LanguageCodeFactory, LanguageCodeLike, LayerConfig, Link, LinkedRecord, ListChoice, ListUrl, LocationBbox, MapConfig, MapPartialState, MapState, MetadataContact, MetadataObject, MetadataQualityConfig, MetadataQualityItem, ModalDialogData, ModelBlock, ModelItem, ModelTranslations, NestedAggregationResult, NewRecordStandard, OnlineLinkResource, OnlineResource, OnlineResourceTranslations, OnlineResourceType, Organization, OrganizationTranslations, OrganizationsStrategy, Paginable, PropertyInfo, QueryBool, QueryGeoShape, QueryRange, QueryString, RecordAsXml, RecordAttachment, RecordFlag, RecordKind, RecordMetric, RecordRelation, RecordStatus, RecordTranslations, RequestFields, ResourceIdentifier$1 as ResourceIdentifier, ResultsLayoutConfigModel, ResultsListShowMoreStrategy, ReuseRecord, ReuseType, Role, RouterConfigModel, SaveRecordError, SearchActions, SearchConfig, SearchError, SearchFilters, SearchParams, SearchPreset, SearchResults, SearchRouteParams, SearchServiceI, SearchState, SearchStateParams, SearchStateSearch, ServiceEndpoint, ServiceOnlineResource, ServiceProtocol, ServiceRecord, SortByField, SortOrder, SortParams, SourceRecord, SourceWithUnknownProps, SpatialExtentDropdownError, SpatialExtentLayerStyle, SpatialExtentTranslations, SpatialRepresentationType, StacFilterState, SupportedType, SwitchToggleOption, TableItemId, TableItemModel, TermBucket, TermsAggregationParams, TermsAggregationResult, ThemeConfig, Thesaurus, ThesaurusApiResponse, UpdateFrequency, UpdateFrequencyCode, UpdateFrequencyCustom, UploadEvent, UserFeedback, UserFeedbackViewModel, ValidatorMapperKeys };
|
|
6978
7225
|
//# sourceMappingURL=index.d.ts.map
|