geonetwork-ui 2.11.0-dev.1cf4ab0c6 → 2.11.0-dev.22978eb28

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.
Files changed (84) hide show
  1. package/fesm2022/geonetwork-ui.mjs +1408 -1003
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +248 -106
  4. package/index.d.ts.map +1 -1
  5. package/package.json +6 -5
  6. package/src/libs/api/metadata-converter/src/lib/dcat-ap/dcat-ap.converter.ts +2 -0
  7. package/src/libs/api/metadata-converter/src/lib/fixtures/mel.records.dataset+featurecatalog.ts +395 -0
  8. package/src/libs/api/metadata-converter/src/lib/gn4/gn4.field.mapper.ts +35 -8
  9. package/src/libs/api/metadata-converter/src/lib/gn4/types/metadata.model.ts +19 -0
  10. package/src/libs/api/metadata-converter/src/lib/iso19115-3/iso19115-3.converter.ts +17 -6
  11. package/src/libs/api/metadata-converter/src/lib/iso19115-3/read-parts.ts +110 -0
  12. package/src/libs/api/metadata-converter/src/lib/iso19115-3/write-parts.ts +131 -0
  13. package/src/libs/api/metadata-converter/src/lib/iso19139/iso19139.converter.ts +9 -0
  14. package/src/libs/api/metadata-converter/src/lib/iso19139/read-parts.ts +2 -1
  15. package/src/libs/api/repository/src/lib/gn4/elasticsearch/elasticsearch.service.ts +95 -32
  16. package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +79 -35
  17. package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
  18. package/src/libs/common/domain/src/lib/model/record/flags.model.ts +1 -0
  19. package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
  20. package/src/libs/common/domain/src/lib/model/record/metadata.model.ts +14 -18
  21. package/src/libs/common/domain/src/lib/model/search/aggregation.model.ts +2 -0
  22. package/src/libs/common/domain/src/lib/model/search/filter.model.ts +12 -2
  23. package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
  24. package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +20 -1
  25. package/src/libs/common/fixtures/src/lib/records.fixtures.ts +42 -62
  26. package/src/libs/feature/dataviz/src/lib/service/data.service.ts +32 -19
  27. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -5
  28. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +2 -2
  29. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.html +18 -0
  30. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.ts +86 -0
  31. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +100 -88
  32. package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -4
  33. package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +18 -4
  34. package/src/libs/feature/editor/src/lib/expressions.ts +67 -0
  35. package/src/libs/feature/editor/src/lib/fields.config.ts +13 -0
  36. package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +10 -4
  37. package/src/libs/feature/map/src/index.ts +0 -2
  38. package/src/libs/feature/map/src/lib/feature-map.module.ts +1 -8
  39. package/src/libs/feature/notify-reuse/src/lib/notify-reuse-form/notify-reuse-form.component.ts +8 -3
  40. package/src/libs/feature/record/src/lib/state/mdview.effects.ts +3 -1
  41. package/src/libs/feature/record/src/lib/state/mdview.facade.ts +1 -1
  42. package/src/libs/feature/search/src/index.ts +2 -0
  43. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.html +7 -1
  44. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +26 -4
  45. package/src/libs/feature/search/src/lib/geocoding/geocoding.service.ts +105 -0
  46. package/src/libs/feature/search/src/lib/location-search/location-search.component.html +18 -0
  47. package/src/libs/feature/search/src/lib/location-search/location-search.component.ts +114 -0
  48. package/src/libs/feature/search/src/lib/search-filters-summary-item/search-filters-summary-item.component.ts +1 -0
  49. package/src/libs/feature/search/src/lib/state/reducer.ts +1 -4
  50. package/src/libs/feature/search/src/lib/utils/service/fields.service.ts +56 -4
  51. package/src/libs/feature/search/src/lib/utils/service/fields.ts +60 -17
  52. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.html +3 -3
  53. package/src/libs/ui/elements/src/lib/record-feature-catalog/feature-catalog-list/feature-catalog-list.component.ts +2 -2
  54. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -4
  55. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +12 -3
  56. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +11 -3
  57. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +7 -4
  58. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +12 -9
  59. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.model.ts +2 -2
  60. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +2 -1
  61. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.html +8 -2
  62. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.ts +34 -5
  63. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +1 -0
  64. package/src/libs/util/app-config/src/index.ts +1 -0
  65. package/src/libs/util/app-config/src/lib/app-config.ts +338 -250
  66. package/src/libs/util/app-config/src/lib/fixtures.ts +37 -1
  67. package/src/libs/util/app-config/src/lib/model.ts +41 -1
  68. package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
  69. package/src/libs/util/shared/src/lib/utils/geojson.ts +37 -10
  70. package/translations/de.json +12 -2
  71. package/translations/en.json +14 -4
  72. package/translations/es.json +12 -2
  73. package/translations/fr.json +20 -10
  74. package/translations/it.json +12 -2
  75. package/translations/nl.json +12 -2
  76. package/translations/pt.json +12 -2
  77. package/translations/sk.json +12 -2
  78. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +0 -41
  79. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +0 -112
  80. package/src/libs/feature/map/src/lib/geocoding.service.ts +0 -57
  81. package/src/libs/feature/map/src/lib/style/index.ts +0 -2
  82. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +0 -47
  83. package/src/libs/feature/map/src/lib/style/map-style.service.ts +0 -108
  84. /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,5 +1,5 @@
1
1
  import * as geojson from 'geojson';
2
- import { Geometry, Feature, Polygon, FeatureCollection } from 'geojson';
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';
@@ -14,14 +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';
18
+ import { GeoadminOptions, GeonamesOptions, GeoplateformeOptions, GeocodingResult } from '@geospatial-sdk/geocoding';
19
+ import { UntypedFormControl, FormControl } from '@angular/forms';
20
+ import { MatAutocompleteTrigger, MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
20
21
  import * as geonetwork_ui from 'geonetwork-ui';
21
22
  import * as _angular_cdk_overlay from '@angular/cdk/overlay';
22
23
  import { CdkOverlayOrigin, ConnectedPosition, CdkConnectedOverlay, CdkScrollable } from '@angular/cdk/overlay';
23
- import { UntypedFormControl, FormControl } from '@angular/forms';
24
- import { MatAutocompleteTrigger, MatAutocomplete, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
25
24
  import { OgcApiEndpoint, WfsEndpoint, MimeType, WfsFeatureTypeFull, WmsLayerFull, WmtsLayer, StacItem, WfsVersion, OgcApiCollectionInfo, OgcApiRecord, GetCollectionItemsOptions, StacItemsDocument } from '@camptocamp/ogc-client';
26
25
  import OlMap from 'ol/Map.js';
27
26
  import { Extent as Extent$1, MapContext as MapContext$1 } from '@geospatial-sdk/core/dist/model';
@@ -261,6 +260,7 @@ interface DatasetRecord extends BaseRecord {
261
260
  spatialExtents: Array<DatasetSpatialExtent>;
262
261
  temporalExtents: Array<DatasetTemporalExtent>;
263
262
  spatialRepresentation?: SpatialRepresentationType;
263
+ featureTypeDescriptions?: Array<DatasetFeatureType>;
264
264
  }
265
265
  interface ServiceEndpoint {
266
266
  url: URL;
@@ -287,33 +287,28 @@ interface ReuseRecord extends BaseRecord {
287
287
  spatialExtents: Array<DatasetSpatialExtent>;
288
288
  temporalExtents: Array<DatasetTemporalExtent>;
289
289
  }
290
+ interface DatasetFeatureType {
291
+ name: string;
292
+ label?: string;
293
+ description?: string;
294
+ attributes: DatasetFeatureAttribute[];
295
+ }
290
296
  type DatasetFeatureCatalog = {
291
- featureTypes: Array<{
292
- name: string;
293
- definition: string;
294
- attributes: DatasetFeatureAttribute[];
295
- }>;
297
+ featureTypes: Array<DatasetFeatureType>;
296
298
  };
297
299
  interface DatasetFeatureAttributeValue {
298
- code?: string;
299
- definition?: string;
300
+ value: string;
300
301
  label?: string;
302
+ description?: string;
301
303
  }
302
304
  interface DatasetFeatureAttribute {
303
305
  name: string;
304
- definition: string;
305
- type: string;
306
- code: string;
306
+ label?: string;
307
+ description?: string;
308
+ type?: string;
309
+ code?: string;
307
310
  values?: Array<DatasetFeatureAttributeValue>;
308
311
  }
309
- interface DatasetFeatureType {
310
- aliases: string;
311
- code: string;
312
- isAbstract: string;
313
- typeName: string;
314
- definition: string;
315
- attributeTable: Array<DatasetFeatureAttribute>;
316
- }
317
312
  type ReuseType = 'application' | 'map' | 'other';
318
313
  type OnlineResource = DatasetOnlineResource | ServiceOnlineResource;
319
314
  type CatalogRecord = DatasetRecord | ReuseRecord | ServiceRecord;
@@ -334,6 +329,8 @@ interface UserFeedbackViewModel extends UserFeedback {
334
329
  avatarUrl: string;
335
330
  }
336
331
 
332
+ type RecordFlag = 'IS_REFERENCE_DATASET';
333
+
337
334
  declare class MetadataMapperContext {
338
335
  readonly location?: any;
339
336
  }
@@ -480,6 +477,26 @@ interface Link {
480
477
  applicationProfile?: string;
481
478
  group?: number;
482
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
+ }
483
500
  type MetadataObject = Partial<{
484
501
  MD_ConstraintsUseLimitationObject: MultilingualField[];
485
502
  MD_LegalConstraintsOtherConstraintsObject: MultilingualField[];
@@ -510,6 +527,7 @@ type MetadataObject = Partial<{
510
527
  extentDescriptionObject: MultilingualField[];
511
528
  extra: string;
512
529
  featureOfRecord: string;
530
+ featureTypes: FeatureType[];
513
531
  feedbackCount: string;
514
532
  geom: Geometry | Geometry[];
515
533
  groupOwner: string;
@@ -746,6 +764,7 @@ declare class Gn4FieldMapper {
746
764
  private get getLocalizedIndexKey();
747
765
  protected fields: Record<string, EsFieldMapperFn>;
748
766
  private genericField;
767
+ private featureTypesField;
749
768
  private constraintField;
750
769
  getMappingFn(fieldName: string): EsFieldMapperFn | ((output: any) => any);
751
770
  getLinkType(url: string, protocol?: string): OnlineResourceType;
@@ -772,8 +791,9 @@ type QueryString = {
772
791
  type QueryRange = {
773
792
  range: Record<string, {
774
793
  format: string;
775
- gte: string;
776
- lte: string;
794
+ gte?: string;
795
+ lte?: string;
796
+ relation?: string;
777
797
  }>;
778
798
  };
779
799
  type QueryGeoShape = {
@@ -787,7 +807,12 @@ type QueryGeoShape = {
787
807
  };
788
808
  };
789
809
  };
790
- type FilterQuery = Array<QueryString | QueryRange | QueryGeoShape>;
810
+ type QueryBool = {
811
+ bool: {
812
+ filter: QueryRange[];
813
+ };
814
+ };
815
+ type FilterQuery = Array<QueryString | QueryRange | QueryGeoShape | QueryBool>;
791
816
 
792
817
  interface TermsAggregationParams {
793
818
  type: 'terms';
@@ -795,6 +820,8 @@ interface TermsAggregationParams {
795
820
  limit: number;
796
821
  sort: AggregationSort;
797
822
  filter?: string;
823
+ includeValues?: string[];
824
+ excludeValues?: string[];
798
825
  }
799
826
  interface HistogramAggregationParams {
800
827
  type: 'histogram';
@@ -1069,7 +1096,7 @@ declare abstract class RecordsRepositoryInterface {
1069
1096
  abstract search(params: SearchParams): Observable<SearchResults>;
1070
1097
  abstract getMatchesCount(filters: FieldFilters): Observable<number>;
1071
1098
  abstract getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null>;
1072
- abstract getFeatureCatalog(record: CatalogRecord): Observable<DatasetFeatureCatalog | null>;
1099
+ abstract queryLinkedFeatureCatalog(record: CatalogRecord): Observable<DatasetFeatureCatalog | null>;
1073
1100
  abstract aggregate(params: AggregationsParams): Observable<Aggregations>;
1074
1101
  abstract getSimilarRecords(similarTo: CatalogRecord): Observable<CatalogRecord[]>;
1075
1102
  abstract getLinkedRecords(record: CatalogRecord): Observable<LinkedRecord[]>;
@@ -1133,6 +1160,15 @@ declare abstract class RecordsRepositoryInterface {
1133
1160
  }>;
1134
1161
  abstract getRecordPublicationStatus(uuid: string): Observable<boolean>;
1135
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>;
1136
1172
  }
1137
1173
 
1138
1174
  type RecordAsXml = string;
@@ -1147,6 +1183,7 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
1147
1183
  private platformService;
1148
1184
  private gn4LanguagesApi;
1149
1185
  private settingsService;
1186
+ private gn4TagsApi;
1150
1187
  private disableDraft;
1151
1188
  private defaultConverter;
1152
1189
  _draftsChanged: Subject<void>;
@@ -1155,8 +1192,7 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
1155
1192
  getMatchesCount(filters: FieldFilters): Observable<number>;
1156
1193
  getRecord(uniqueIdentifier: string): Observable<CatalogRecord | null>;
1157
1194
  getMultipleRecords(uniqueIdentifiers: string[]): Observable<CatalogRecord[] | null>;
1158
- private mapEmbeddedFeatureCatalog;
1159
- getFeatureCatalog(record: CatalogRecord, visited?: Set<string>): Observable<DatasetFeatureCatalog | null>;
1195
+ queryLinkedFeatureCatalog(record: CatalogRecord, visited?: Set<string>): Observable<DatasetFeatureCatalog | null>;
1160
1196
  getSimilarRecords(similarTo: CatalogRecord): Observable<CatalogRecord[]>;
1161
1197
  getLinkedRecords(record: CatalogRecord): Observable<LinkedRecord[]>;
1162
1198
  aggregate(params: AggregationsParams): Observable<Aggregations>;
@@ -1190,6 +1226,10 @@ declare class Gn4Repository implements RecordsRepositoryInterface {
1190
1226
  private saveRecordToLocalStorage;
1191
1227
  private getRecordFromLocalStorage;
1192
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>;
1193
1233
  static ɵfac: i0.ɵɵFactoryDeclaration<Gn4Repository, never>;
1194
1234
  static ɵprov: i0.ɵɵInjectableDeclaration<Gn4Repository>;
1195
1235
  }
@@ -1724,10 +1764,12 @@ declare class ElasticsearchService {
1724
1764
  private translateService;
1725
1765
  private injector;
1726
1766
  private runtimeFields;
1767
+ private fieldAliases;
1727
1768
  private get metadataLang();
1728
1769
  getSearchRequestBody(aggregations?: any, size?: number, from?: number, sortBy?: SortByField, requestFields?: RequestFields, searchFilters?: SearchFilters, configFilters?: SearchFilters, uuids?: string[], geometry?: Geometry): EsSearchParams;
1729
1770
  private processRuntimeFields;
1730
1771
  registerRuntimeField(fieldName: string, expression: string, type?: 'keyword' | 'date'): void;
1772
+ registerFieldAlias(fieldIdentifier: string, esFieldName: string): void;
1731
1773
  getMetadataByIdsPayload(uuids: string[]): EsSearchParams;
1732
1774
  getRelatedRecordPayload(record: CatalogRecord, size?: number, _source?: string[]): EsSearchParams;
1733
1775
  private buildPayloadSort;
@@ -1735,6 +1777,7 @@ declare class ElasticsearchService {
1735
1777
  private getQueryLang;
1736
1778
  private isCurrentSearchLang;
1737
1779
  private findSpatialFilterExtent;
1780
+ private buildDateRangeQuery;
1738
1781
  private filtersToQuery;
1739
1782
  private mustNotFilters;
1740
1783
  private buildPayloadQuery;
@@ -1835,6 +1878,7 @@ declare abstract class PlatformServiceInterface {
1835
1878
  abstract supportsAuthentication(): boolean;
1836
1879
  abstract getMe(): Observable<UserModel>;
1837
1880
  abstract isAnonymous(): Observable<boolean>;
1881
+ abstract isAdministrator(): Observable<boolean>;
1838
1882
  abstract getUsers(): Observable<UserModel[]>;
1839
1883
  abstract getUserPermissionsByGroup(): Observable<GroupModel[]>;
1840
1884
  abstract getUsersByOrganization(organisation: Organization): Observable<UserModel[]>;
@@ -2011,6 +2055,7 @@ declare class Gn4PlatformService implements PlatformServiceInterface {
2011
2055
  private readonly gnParseVersion;
2012
2056
  private keyTranslations$;
2013
2057
  private me$;
2058
+ private isAdmin$;
2014
2059
  /**
2015
2060
  * A map of already loaded thesauri (groups of keywords); the key is a URI
2016
2061
  * @private
@@ -2024,6 +2069,7 @@ declare class Gn4PlatformService implements PlatformServiceInterface {
2024
2069
  getApiVersion(): Observable<string>;
2025
2070
  getMe(): Observable<UserModel>;
2026
2071
  isAnonymous(): Observable<boolean>;
2072
+ isAdministrator(): Observable<boolean>;
2027
2073
  getOrganizations(): Observable<Organization[]>;
2028
2074
  getUsersByOrganization(organisation: Organization): Observable<UserModel[]>;
2029
2075
  getUsers(): Observable<UserModel[]>;
@@ -2195,11 +2241,16 @@ declare function createFuzzyFilter(pattern: string): FuzzyFilter;
2195
2241
  declare function getGeometryFromGeoJSON(data: FeatureCollection | Feature | Geometry): Geometry | null;
2196
2242
  type BoundingBox = [number, number, number, number];
2197
2243
  declare function isBoundingBox(value: unknown): value is BoundingBox;
2244
+ /**
2245
+ * Checks that a bounding box's coordinates stay within the valid
2246
+ * longitude (-180/180) and latitude (-90/90) ranges.
2247
+ */
2248
+ declare function isBoundingBoxWithinWorldExtent(bbox: BoundingBox): boolean;
2198
2249
  declare function getGeometryBoundingBox(geometry: Geometry): BoundingBox;
2199
2250
  /**
2200
- * Builds the closed GeoJSON Polygon matching the given bounding box.
2251
+ * Builds the GeoJSON Geometry matching the given bounding box.
2201
2252
  */
2202
- declare function bboxToPolygon(bbox: BoundingBox): Polygon;
2253
+ declare function bboxToGeometry(bbox: BoundingBox): Geometry;
2203
2254
  /**
2204
2255
  * Returns the geometry carried by a spatial extent, falling back to the polygon
2205
2256
  * derived from its bounding box. Returns null when the extent has neither.
@@ -2484,30 +2535,6 @@ declare class MapUtilsService {
2484
2535
  static ɵprov: i0.ɵɵInjectableDeclaration<MapUtilsService>;
2485
2536
  }
2486
2537
 
2487
- interface CreateStyleOptions {
2488
- color: string;
2489
- isFocused?: boolean;
2490
- }
2491
- type StyleByGeometryType = {
2492
- line: Style | Style[];
2493
- polygon: Style | Style[];
2494
- point: Style | Style[];
2495
- };
2496
- declare class MapStyleService {
2497
- styles: {
2498
- default: StyleLike;
2499
- defaultHL: StyleLike;
2500
- };
2501
- createGeometryStyles(options: CreateStyleOptions): StyleByGeometryType;
2502
- createStyleFunction(styleByGeometryType: StyleByGeometryType): StyleLike;
2503
- private computeTransparentFillColor;
2504
- static ɵfac: i0.ɵɵFactoryDeclaration<MapStyleService, never>;
2505
- static ɵprov: i0.ɵɵInjectableDeclaration<MapStyleService>;
2506
- }
2507
-
2508
- declare const defaultMapStyleFixture: () => Style;
2509
- declare const defaultMapStyleHlFixture: () => Style;
2510
-
2511
2538
  declare class LayersPanelComponent {
2512
2539
  private mapFacade;
2513
2540
  layers$: rxjs.Observable<MapContextLayer[]>;
@@ -2753,6 +2780,13 @@ declare class AutocompleteComponent implements OnInit, AfterViewInit, OnDestroy,
2753
2780
  triggerRef: MatAutocompleteTrigger;
2754
2781
  autocomplete: MatAutocomplete;
2755
2782
  inputRef: ElementRef<HTMLInputElement>;
2783
+ /**
2784
+ * Custom template to render each suggestion. Takes precedence over
2785
+ * `displayWithFn` when set.
2786
+ */
2787
+ displayWithTemplate?: TemplateRef<{
2788
+ $implicit: AutocompleteItem;
2789
+ }>;
2756
2790
  searching: boolean;
2757
2791
  control: UntypedFormControl;
2758
2792
  cancelEnter: boolean;
@@ -2798,7 +2832,7 @@ declare class AutocompleteComponent implements OnInit, AfterViewInit, OnDestroy,
2798
2832
  handleSelection(event: MatAutocompleteSelectedEvent): void;
2799
2833
  handleInput(event: InputEvent): void;
2800
2834
  static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
2801
- 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>;
2835
+ 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>;
2802
2836
  }
2803
2837
 
2804
2838
  declare class BadgeComponent {
@@ -2932,20 +2966,20 @@ declare class DragAndDropFileInputComponent {
2932
2966
  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>;
2933
2967
  }
2934
2968
 
2935
- interface Choice$1 {
2936
- value: unknown;
2969
+ interface Choice$1<T = unknown> {
2970
+ value: T;
2937
2971
  label: string;
2938
2972
  }
2939
2973
 
2940
- declare class DropdownMultiselectComponent {
2974
+ declare class DropdownMultiselectComponent<T = unknown> {
2941
2975
  private scrollStrategies;
2942
2976
  title: string;
2943
- choices: Choice$1[];
2944
- selected: unknown[];
2977
+ choices: Choice$1<T>[];
2978
+ selected: T[];
2945
2979
  allowSearch: boolean;
2946
2980
  maxRows: number;
2947
2981
  searchInputValue: string;
2948
- selectValues: EventEmitter<unknown[]>;
2982
+ selectValues: EventEmitter<T[]>;
2949
2983
  overlayOrigin: CdkOverlayOrigin;
2950
2984
  overlay: CdkConnectedOverlay;
2951
2985
  overlayContainer: ElementRef;
@@ -2958,8 +2992,8 @@ declare class DropdownMultiselectComponent {
2958
2992
  overlayMaxHeight: string;
2959
2993
  id: string;
2960
2994
  get hasSelectedChoices(): boolean;
2961
- get selectedChoices(): Choice$1[];
2962
- get filteredChoicesByText(): Choice$1[];
2995
+ get selectedChoices(): Choice$1<T>[];
2996
+ get filteredChoicesByText(): Choice$1<T>[];
2963
2997
  get focusedIndex(): number | -1;
2964
2998
  private setFocus;
2965
2999
  openOverlay(): Promise<[void, any]>;
@@ -2969,13 +3003,13 @@ declare class DropdownMultiselectComponent {
2969
3003
  focusFirstItem(): void;
2970
3004
  focusLastItem(): void;
2971
3005
  shiftItemFocus(shift: number): void;
2972
- isSelected(choice: Choice$1): boolean;
2973
- select(choice: Choice$1, selected: boolean): void;
2974
- toggle(choice: Choice$1): void;
3006
+ isSelected(choice: Choice$1<T>): boolean;
3007
+ select(choice: Choice$1<T>, selected: boolean): void;
3008
+ toggle(choice: Choice$1<T>): void;
2975
3009
  clearSelection(event: Event): void;
2976
3010
  clearSearchInputValue(event: Event): void;
2977
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMultiselectComponent, never>;
2978
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownMultiselectComponent, "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>;
3011
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownMultiselectComponent<any>, never>;
3012
+ 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>;
2979
3013
  }
2980
3014
 
2981
3015
  interface DropdownChoice {
@@ -3228,6 +3262,7 @@ declare class SpatialExtentDropdownComponent {
3228
3262
  errorChange: EventEmitter<SpatialExtentDropdownError>;
3229
3263
  bbox: BoundingBox | null;
3230
3264
  fileName: string;
3265
+ locationName: string;
3231
3266
  overlayOrigin: CdkOverlayOrigin;
3232
3267
  overlay: CdkConnectedOverlay;
3233
3268
  fileInput: DragAndDropFileInputComponent;
@@ -3237,20 +3272,22 @@ declare class SpatialExtentDropdownComponent {
3237
3272
  overlayMinWidth: string;
3238
3273
  errorKey: string | null;
3239
3274
  get hasSelection(): boolean;
3240
- get selectionLabelKey(): "search.filters.spatialExtent.bboxFromFile" | "search.filters.spatialExtent.bboxInitial";
3241
- get selectionDeleteLabelKey(): "search.filters.spatialExtent.bboxFromFileDelete" | "search.filters.spatialExtent.bboxInitialDelete";
3275
+ get selectionLabelKey(): "search.filters.spatialExtent.bboxFromFile" | "search.filters.spatialExtent.bboxFromLocation" | "search.filters.spatialExtent.bboxInitial";
3276
+ get selectionDeleteLabelKey(): "search.filters.spatialExtent.bboxFromFileDelete" | "search.filters.spatialExtent.bboxFromLocationDelete" | "search.filters.spatialExtent.bboxInitialDelete";
3242
3277
  get selectionLabelParams(): {
3243
3278
  fileName: string;
3279
+ locationName: string;
3244
3280
  };
3245
3281
  openOverlay(): void;
3246
3282
  closeOverlay(): void;
3247
3283
  toggleOverlay(): void;
3248
3284
  handleFileSelected(file: File): Promise<void>;
3285
+ setLocationBbox(bbox: BoundingBox, name: string): void;
3249
3286
  handleFileError(error: DragAndDropFileInputError): void;
3250
3287
  private setError;
3251
3288
  removeSelection(event: Event): void;
3252
3289
  static ɵfac: i0.ɵɵFactoryDeclaration<SpatialExtentDropdownComponent, never>;
3253
- 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, never, true, never>;
3290
+ 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>;
3254
3291
  }
3255
3292
 
3256
3293
  declare class ResultsHitsSearchKindComponent implements OnChanges {
@@ -3259,7 +3296,7 @@ declare class ResultsHitsSearchKindComponent implements OnChanges {
3259
3296
  selectionChanged: EventEmitter<string[]>;
3260
3297
  availableChoices: Choice$1[];
3261
3298
  ngOnChanges(changes: SimpleChanges): void;
3262
- buildFilterChoices(availableValues: Choice$1[]): Choice$1[];
3299
+ buildFilterChoices(availableValues: Choice$1[]): Choice$1<unknown>[];
3263
3300
  onSelectedValues(values: string[]): void;
3264
3301
  isSelectedChoice(choiceValue: string): boolean;
3265
3302
  isAllChoice(choiceValue: string): boolean;
@@ -3369,26 +3406,6 @@ declare class AddLayerRecordPreviewComponent extends RecordPreviewComponent {
3369
3406
  static ɵcmp: i0.ɵɵComponentDeclaration<AddLayerRecordPreviewComponent, "gn-ui-add-layer-record-preview", never, {}, {}, never, never, true, never>;
3370
3407
  }
3371
3408
 
3372
- declare class GeocodingComponent implements OnDestroy {
3373
- private mapFacade;
3374
- private geocodingService;
3375
- searchText: string;
3376
- results: any[];
3377
- searchTextChanged: Subject<string>;
3378
- destroy$: Subject<void>;
3379
- errorMessage: string | null;
3380
- constructor();
3381
- ngOnDestroy(): void;
3382
- onSearchChange(searchText: string): void;
3383
- clearSearch(): void;
3384
- zoomToLocation(result: any): Promise<void>;
3385
- zoomToPoint(pointCoords: [number, number]): Promise<void>;
3386
- zoomToPolygon(polygonCoords: [[number, number][]]): Promise<void>;
3387
- onEnterPress(): void;
3388
- static ɵfac: i0.ɵɵFactoryDeclaration<GeocodingComponent, never>;
3389
- static ɵcmp: i0.ɵɵComponentDeclaration<GeocodingComponent, "gn-ui-geocoding", never, {}, {}, never, never, true, never>;
3390
- }
3391
-
3392
3409
  interface NotificationContent {
3393
3410
  type: 'info' | 'warning' | 'error' | 'success';
3394
3411
  title: string;
@@ -3422,6 +3439,48 @@ declare class FeatureSearchModule {
3422
3439
  static ɵinj: i0.ɵɵInjectorDeclaration<FeatureSearchModule>;
3423
3440
  }
3424
3441
 
3442
+ type GeoadminGeocodingProvider = ['geoadmin', GeoadminOptions];
3443
+ type GeonamesGeocodingProvider = ['geonames', GeonamesOptions];
3444
+ type GeoplateformeGeocodingProvider = ['geoplateforme', GeoplateformeOptions];
3445
+ type GeocodingProvider = GeoadminGeocodingProvider | GeonamesGeocodingProvider | GeoplateformeGeocodingProvider;
3446
+ declare const DEFAULT_GEOCODING_PROVIDER: GeocodingProvider;
3447
+ declare const GEOCODING_PROVIDER: InjectionToken<GeocodingProvider>;
3448
+ declare class GeocodingService {
3449
+ private provider;
3450
+ query(text: string): Observable<GeocodingResult[]>;
3451
+ static ɵfac: i0.ɵɵFactoryDeclaration<GeocodingService, never>;
3452
+ static ɵprov: i0.ɵɵInjectableDeclaration<GeocodingService>;
3453
+ }
3454
+
3455
+ interface GeocodingProviderLabels {
3456
+ main?: string;
3457
+ secondary?: string;
3458
+ tertiary?: string;
3459
+ }
3460
+ interface LocationBbox {
3461
+ bbox: BoundingBox;
3462
+ label: string;
3463
+ }
3464
+ declare const GEOCODING_PROVIDER_LABELS: InjectionToken<GeocodingProviderLabels>;
3465
+ declare class LocationSearchComponent {
3466
+ private geocodingService;
3467
+ private labels;
3468
+ placeholder: string;
3469
+ resultSelected: EventEmitter<GeocodingResult>;
3470
+ bboxSelected: EventEmitter<LocationBbox>;
3471
+ displayWithFn: (item: AutocompleteItem) => string;
3472
+ searchAction: (text: string) => Observable<AutocompleteItem[]>;
3473
+ getSecondaryLabel(result: GeocodingResult): string | undefined;
3474
+ getMainLabel(result: GeocodingResult): string;
3475
+ getTertiaryLabel(result: GeocodingResult): string | undefined;
3476
+ getDisplayLabel(result: GeocodingResult): string;
3477
+ private resolveLabel;
3478
+ private getGeometry;
3479
+ handleItemSelected(item: AutocompleteItem): void;
3480
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocationSearchComponent, never>;
3481
+ static ɵcmp: i0.ɵɵComponentDeclaration<LocationSearchComponent, "gn-ui-location-search", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, { "resultSelected": "resultSelected"; "bboxSelected": "bboxSelected"; }, never, never, true, never>;
3482
+ }
3483
+
3425
3484
  declare const FILTER_GEOMETRY: InjectionToken<Promise<Geometry>>;
3426
3485
 
3427
3486
  declare const RECORD_DATASET_URL_TOKEN: InjectionToken<string>;
@@ -3747,13 +3806,19 @@ declare class SimpleSearchField implements AbstractSearchField {
3747
3806
  protected orderType: 'key' | 'count';
3748
3807
  protected repository: RecordsRepositoryInterface;
3749
3808
  protected esService: ElasticsearchService;
3809
+ private customIdentifier?;
3810
+ protected get fieldIdentifier(): string;
3811
+ includeValues: string[];
3812
+ excludeValues: string[];
3750
3813
  constructor(esFieldName: string, injector: Injector, order?: 'asc' | 'desc', orderType?: 'key' | 'count');
3814
+ setFieldIdentifier(fieldIdentifier: string): void;
3751
3815
  protected getAggregations(): AggregationsParams;
3752
3816
  protected getBucketLabel(bucket: TermBucket): Promise<string>;
3753
3817
  getAvailableValues(): Observable<FieldAvailableValue[]>;
3754
3818
  getFiltersForValues(values: FieldValue[] | DateRange[]): Observable<FieldFilters | string>;
3755
3819
  getValuesForFilter(filters: FieldFilters): Observable<FieldValue[] | FieldValue | DateRange>;
3756
3820
  getType(): FieldType;
3821
+ clone(): typeof this;
3757
3822
  }
3758
3823
  declare class TranslatedSearchField extends SimpleSearchField {
3759
3824
  protected esFieldName: string;
@@ -3866,9 +3931,19 @@ declare class RecordKindField extends SimpleSearchField {
3866
3931
  }
3867
3932
 
3868
3933
  type FieldValues = Record<string, FieldValue[] | FieldValue | DateRange>;
3934
+ interface CustomSearchField {
3935
+ name: string;
3936
+ baseFilter: string;
3937
+ excludeValues?: string[];
3938
+ includeValues?: string[];
3939
+ }
3940
+ declare const CUSTOM_FIELDS: InjectionToken<CustomSearchField[]>;
3869
3941
  declare class FieldsService {
3870
3942
  protected injector: Injector;
3943
+ private customFields;
3944
+ private baseFields;
3871
3945
  protected fields: Record<string, AbstractSearchField>;
3946
+ constructor();
3872
3947
  get supportedFields(): string[];
3873
3948
  getAvailableValues(fieldName: string): Observable<FieldAvailableValue[] | DateRange[]>;
3874
3949
  private getFiltersForValues;
@@ -4735,6 +4810,7 @@ declare class ResultsListContainerComponent implements OnInit {
4735
4810
  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>;
4736
4811
  }
4737
4812
 
4813
+ declare const SPATIAL_EXTENT_MAX_FILE_SIZE: InjectionToken<number>;
4738
4814
  declare class FilterDropdownComponent implements OnInit {
4739
4815
  private searchFacade;
4740
4816
  private searchService;
@@ -4743,6 +4819,7 @@ declare class FilterDropdownComponent implements OnInit {
4743
4819
  private translateService;
4744
4820
  fieldName: string;
4745
4821
  title: string;
4822
+ spatialExtentDropdown: SpatialExtentDropdownComponent;
4746
4823
  spatialExtentMaxFileSize: number;
4747
4824
  fieldType: FieldType;
4748
4825
  choices$: Observable<Choice$1[]>;
@@ -4752,6 +4829,7 @@ declare class FilterDropdownComponent implements OnInit {
4752
4829
  onSelectedValues(values: unknown[]): void;
4753
4830
  private spatialExtentErrorNotificationId;
4754
4831
  onBboxChange(bbox: BoundingBox | null): void;
4832
+ onLocationSelected({ bbox, label }: LocationBbox): void;
4755
4833
  onSpatialExtentError(error: SpatialExtentDropdownError): void;
4756
4834
  private clearSpatialExtentErrorNotification;
4757
4835
  ngOnInit(): void;
@@ -5148,8 +5226,9 @@ declare class DataService {
5148
5226
  getDownloadUrlFromEsriRest(apiUrl: string, format: string): string;
5149
5227
  getDownloadLinksFromWfs(wfsLink: DatasetServiceDistribution): Observable<DatasetOnlineResource[]>;
5150
5228
  getDownloadLinksFromOgcApiFeatures(ogcApiLink: DatasetServiceDistribution): Promise<DatasetOnlineResource[]>;
5151
- getDownloadUrlsFromOgcApi(url: string): Promise<OgcApiCollectionInfo>;
5152
- getItemsFromOgcApi(url: string, limit?: number): Promise<OgcApiRecord[]>;
5229
+ private getTargetCollectionId;
5230
+ getDownloadUrlsFromOgcApi(url: string, collectionId?: string): Promise<OgcApiCollectionInfo>;
5231
+ getItemsFromOgcApi(url: string, collectionId?: string, limit?: number): Promise<OgcApiRecord[]>;
5153
5232
  getItemsFromStacApi(url: string, options: GetCollectionItemsOptions): Promise<StacItemsDocument>;
5154
5233
  getGeodataLinksFromTms(tmsLink: DatasetServiceDistribution, keepOriginalLink?: boolean): Promise<DatasetServiceDistribution[]>;
5155
5234
  getDownloadLinksFromEsriRest(esriRestLink: DatasetServiceDistribution): DatasetOnlineResource[];
@@ -6017,15 +6096,16 @@ interface FormFieldConfig {
6017
6096
  invalid?: boolean;
6018
6097
  invalidHintKey?: string;
6019
6098
  }
6099
+ type FormFieldModel = CatalogRecordKeys | 'flags';
6020
6100
  type OnlineLinkResourceSpecifier = `onlineResourceType:link`;
6021
6101
  type DatasetDistributionsSpecifier = `onlineResourceType:!link`;
6022
6102
  type OnlineSingleLinkResourceSpecifier = `onlineResourceType:singleLink`;
6023
6103
  type EditableContactDetailsSpecifier = `contact:editableDetails`;
6024
- type FieldModelSpecifier = OnlineLinkResourceSpecifier | DatasetDistributionsSpecifier | OnlineSingleLinkResourceSpecifier | EditableContactDetailsSpecifier;
6104
+ type FormFieldModelSpecifier = OnlineLinkResourceSpecifier | DatasetDistributionsSpecifier | OnlineSingleLinkResourceSpecifier | EditableContactDetailsSpecifier | `flags:${RecordFlag}`;
6025
6105
  type FormFieldComponentName = 'form-field-constraints-shortcuts' | 'form-field-spatial-toggle';
6026
6106
  interface EditorFieldIdentification {
6027
- model?: CatalogRecordKeys;
6028
- modelSpecifier?: FieldModelSpecifier;
6107
+ model?: FormFieldModel;
6108
+ modelSpecifier?: FormFieldModelSpecifier;
6029
6109
  componentName?: FormFieldComponentName;
6030
6110
  }
6031
6111
  interface EditorField extends EditorFieldIdentification {
@@ -6449,8 +6529,8 @@ declare class FormFieldSpatialExtentComponent {
6449
6529
  declare class FormFieldComponent {
6450
6530
  uniqueIdentifier: string;
6451
6531
  recordKind: RecordKind;
6452
- model: CatalogRecordKeys;
6453
- modelSpecifier: FieldModelSpecifier;
6532
+ model: FormFieldModel;
6533
+ modelSpecifier: FormFieldModelSpecifier;
6454
6534
  componentName: FormFieldComponentName;
6455
6535
  config: FormFieldConfig;
6456
6536
  value: unknown;
@@ -6473,6 +6553,7 @@ declare class FormFieldComponent {
6473
6553
  get valueAsIndividuals(): Array<Individual>;
6474
6554
  get valueAsOnlineResources(): Array<OnlineResource>;
6475
6555
  get valueAsResourceIdentifierCode(): string;
6556
+ get recordFlag(): RecordFlag;
6476
6557
  handleResourceIdentifierChange(code: string): void;
6477
6558
  static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
6478
6559
  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: {}; }]>;
@@ -6502,6 +6583,7 @@ declare class FormFieldTopicsComponent {
6502
6583
  declare class RecordFormComponent implements OnInit, OnDestroy {
6503
6584
  facade: EditorFacade;
6504
6585
  notifications: NotificationsService;
6586
+ platform: PlatformServiceInterface;
6505
6587
  subscription: Subscription;
6506
6588
  recordUniqueIdentifier$: rxjs.Observable<string>;
6507
6589
  recordKind$: rxjs.Observable<"dataset" | "service" | "reuse">;
@@ -6511,14 +6593,16 @@ declare class RecordFormComponent implements OnInit, OnDestroy {
6511
6593
  focusField(model: CatalogRecordKeys, sectionIndex: number): void;
6512
6594
  ngOnInit(): void;
6513
6595
  ngOnDestroy(): void;
6514
- handleFieldValueChange(model: CatalogRecordKeys, newValue: EditorFieldValue): void;
6515
- fieldTracker(index: number, field: EditorFieldWithValue): CatalogRecordKeys;
6596
+ handleFieldValueChange(model: FormFieldModel, newValue: EditorFieldValue): void;
6597
+ fieldTracker(index: number, field: EditorFieldWithValue): FormFieldModel;
6516
6598
  sectionTracker(index: number, section: EditorSectionWithValues): string;
6517
6599
  getFieldLocation(model: CatalogRecordKeys): Promise<{
6518
6600
  page: number;
6519
6601
  section: number;
6520
6602
  } | null>;
6521
6603
  private recordSignal;
6604
+ private userSignal;
6605
+ private isAdminSignal;
6522
6606
  private expressionCache;
6523
6607
  evaluateExpression(expressionOrValue: string | EditorFieldValue): Signal<EditorFieldValue>;
6524
6608
  static ɵfac: i0.ɵɵFactoryDeclaration<RecordFormComponent, never>;
@@ -7025,6 +7109,19 @@ interface SearchPreset {
7025
7109
  name: string;
7026
7110
  filters: Record<string, string[] | string>;
7027
7111
  }
7112
+ type GeocodingProviderName = 'geoadmin' | 'geonames' | 'geoplateforme';
7113
+ interface CustomSearchFieldConfig {
7114
+ name: string;
7115
+ baseFilter: string;
7116
+ excludeValues?: string[];
7117
+ includeValues?: string[];
7118
+ labelKey?: string;
7119
+ }
7120
+ interface GeocodingProviderLabelsConfig {
7121
+ MAIN?: string;
7122
+ SECONDARY?: string;
7123
+ TERTIARY?: string;
7124
+ }
7028
7125
  interface MetadataQualityConfig {
7029
7126
  ENABLED: boolean;
7030
7127
  }
@@ -7039,15 +7136,33 @@ type CustomTranslations = {
7039
7136
  type CustomTranslationsAllLanguages = {
7040
7137
  [lang: string]: CustomTranslations;
7041
7138
  };
7139
+ interface ConfigIssues {
7140
+ warnings: string[];
7141
+ errors: string[];
7142
+ }
7143
+ interface AppConfig {
7144
+ global: GlobalConfig | null;
7145
+ theme: ThemeConfig | null;
7146
+ map: MapConfig | null;
7147
+ search: SearchConfig | null;
7148
+ metadataQuality: MetadataQualityConfig | null;
7149
+ editor: EditorConfig | null;
7150
+ translations: CustomTranslationsAllLanguages;
7151
+ }
7152
+ type ConfigSectionName = keyof AppConfig;
7042
7153
  interface SearchConfig {
7043
7154
  RECORD_KIND_QUICK_FILTER?: boolean;
7044
7155
  FILTER_GEOMETRY_URL?: string;
7045
7156
  FILTER_GEOMETRY_DATA?: string;
7046
7157
  DO_NOT_USE_DEFAULT_SEARCH_PRESET?: boolean;
7047
7158
  SEARCH_PRESET?: SearchPreset[];
7048
- ADVANCED_FILTERS?: [];
7159
+ ADVANCED_FILTERS?: string[];
7160
+ CUSTOM_FILTERS?: CustomSearchFieldConfig[];
7049
7161
  LIMIT?: number;
7050
7162
  SPATIAL_EXTENT_MAX_FILE_SIZE?: number;
7163
+ GEOCODING_PROVIDER?: GeocodingProviderName;
7164
+ GEOCODING_PROVIDER_OPTIONS?: Record<string, string | number | boolean | string[]>;
7165
+ GEOCODING_PROVIDER_LABELS?: GeocodingProviderLabelsConfig;
7051
7166
  }
7052
7167
  interface SearchConfig {
7053
7168
  FILTER_GEOMETRY?: Geometry;
@@ -7060,7 +7175,12 @@ declare function getOptionalSearchConfig(): SearchConfig | null;
7060
7175
  declare function getOptionalEditorConfig(): EditorConfig | null;
7061
7176
  declare function getMetadataQualityConfig(): MetadataQualityConfig;
7062
7177
  declare function getCustomTranslations(langCode: string): CustomTranslations;
7063
- declare function loadAppConfig(configUrl?: string): Promise<void>;
7178
+ /**
7179
+ * Loads the configuration file and stores the given sections (all by default);
7180
+ * omitted sections are reset (their getters will throw or return null);
7181
+ * resolves with the parsed configuration file, e.g. to read sections with a custom parser
7182
+ */
7183
+ declare function loadAppConfig(configUrl?: string, sections?: ConfigSectionName[]): Promise<Record<string, unknown>>;
7064
7184
  declare function isConfigLoaded(): boolean;
7065
7185
  declare function _reset(): void;
7066
7186
  declare const TRANSLATE_WITH_OVERRIDES_CONFIG: TranslateModuleConfig;
@@ -7068,6 +7188,7 @@ declare const TRANSLATE_WITH_OVERRIDES_CONFIG: TranslateModuleConfig;
7068
7188
  declare const okAppConfigFixture: () => string;
7069
7189
  declare const appConfigWithTranslationFixture: () => string;
7070
7190
  declare const minimalAppConfigFixture: () => string;
7191
+ declare const customFilterMissingMandatoryConfigFixture: () => string;
7071
7192
  declare const mapConfigFixture: () => MapConfig;
7072
7193
  declare const malformedConfigFixture: () => string;
7073
7194
  declare const missingMandatoryConfigFixture: () => string;
@@ -7076,6 +7197,27 @@ declare const unrecognizedKeysConfigFixture: () => string;
7076
7197
 
7077
7198
  declare function getMapContextLayerFromConfig(config: LayerConfig): MapContextLayer;
7078
7199
 
7079
- 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, 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, 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_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, 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, isBoundingBox, 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, 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 };
7080
- export type { Aggregation, AggregationBuckets, AggregationCounts, AggregationParams, AggregationResult, AggregationSort, AggregationTypes, Aggregations, AggregationsParams, AggregationsResults, AggregationsTypes, AssociatedRecord, AssociationType, AutocompleteItem, BaseRecord, BoundingBox, Bucket, CatalogRecord, CatalogRecordKeys, CatalogSource, Choice$1 as Choice, ConfirmationDialogData, Constraint, ConstraintTranslations, CreateStyleOptions, 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, 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, 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, MapConfig, MapPartialState, MapState, MetadataContact, MetadataObject, MetadataQualityConfig, MetadataQualityItem, ModalDialogData, ModelBlock, ModelItem, ModelTranslations, NestedAggregationResult, NewRecordStandard, OnlineLinkResource, OnlineResource, OnlineResourceTranslations, OnlineResourceType, Organization, OrganizationTranslations, OrganizationsStrategy, Paginable, PropertyInfo, QueryGeoShape, QueryRange, QueryString, RecordAsXml, RecordAttachment, 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, StyleByGeometryType, SupportedType, SwitchToggleOption, TableItemId, TableItemModel, TermBucket, TermsAggregationParams, TermsAggregationResult, ThemeConfig, Thesaurus, ThesaurusApiResponse, UpdateFrequency, UpdateFrequencyCode, UpdateFrequencyCustom, UploadEvent, UserFeedback, UserFeedbackViewModel, ValidatorMapperKeys };
7200
+ /**
7201
+ * Only keeps recognized keys, flatten nested values (to allow having "." in keys),
7202
+ * pushes warnings and errors to the given arrays; returns null in case of error
7203
+ */
7204
+ declare function parseConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string, mandatoryKeys: string[], optionalKeys: string[], outWarnings: string[], outErrors: string[]): Record<string, unknown> | null;
7205
+ /**
7206
+ * Same as parseConfigSection but keeps all keys, recognized or not
7207
+ * Also the first level is the language code (e.g. 'en')
7208
+ * This is optional
7209
+ */
7210
+ declare function parseTranslationsConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string): Record<string, unknown>;
7211
+ /**
7212
+ * Same as parseConfigSection but handles an array of configs; this is
7213
+ * considered optional; returns null in case of error in at least one of
7214
+ * the sections
7215
+ */
7216
+ declare function parseMultiConfigSection(fullConfigObj: Record<string, unknown>, sectionName: string, mandatoryKeys: string[], optionalKeys: string[], outWarnings: string[], outErrors: string[]): Record<string, unknown>[] | null;
7217
+ declare function checkMetadataLanguage(parsedConfigSection: any, outWarnings: string[]): any;
7218
+ declare function checkNewRecordDefaultLanguage(parsedConfigSection: any, outWarnings: string[]): any;
7219
+ declare function checkNewRecordStandard(parsedConfigSection: any, outWarnings: string[]): any;
7220
+
7221
+ 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_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, 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 };
7222
+ 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 };
7081
7223
  //# sourceMappingURL=index.d.ts.map