geonetwork-ui 2.11.0-dev.5f9922c2e → 2.11.0-dev.62b98576f

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 (87) hide show
  1. package/fesm2022/geonetwork-ui.mjs +1468 -1022
  2. package/fesm2022/geonetwork-ui.mjs.map +1 -1
  3. package/index.d.ts +258 -114
  4. package/index.d.ts.map +1 -1
  5. package/package.json +7 -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 +118 -53
  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 +10 -1
  44. package/src/libs/feature/search/src/lib/filter-dropdown/filter-dropdown.component.ts +39 -5
  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 +2 -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 +62 -4
  51. package/src/libs/feature/search/src/lib/utils/service/fields.ts +69 -10
  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/elements/src/lib/service-capabilities/service-capabilities.component.ts +2 -1
  55. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.css +0 -4
  56. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.html +12 -3
  57. package/src/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +11 -3
  58. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.html +7 -4
  59. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.ts +12 -9
  60. package/src/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.model.ts +2 -2
  61. package/src/libs/ui/inputs/src/lib/search-feature-catalog/search-feature-catalog.component.ts +2 -1
  62. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.html +11 -11
  63. package/src/libs/ui/inputs/src/lib/spatial-extent-dropdown/spatial-extent-dropdown.component.ts +57 -4
  64. package/src/libs/ui/layout/src/lib/block-list/block-list.component.css +1 -0
  65. package/src/libs/ui/map/src/lib/components/map-container/map-container.component.ts +2 -0
  66. package/src/libs/util/app-config/src/index.ts +1 -0
  67. package/src/libs/util/app-config/src/lib/app-config.ts +338 -250
  68. package/src/libs/util/app-config/src/lib/fixtures.ts +37 -1
  69. package/src/libs/util/app-config/src/lib/model.ts +41 -1
  70. package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
  71. package/src/libs/util/shared/src/lib/links/link-utils.ts +19 -10
  72. package/src/libs/util/shared/src/lib/utils/geojson.ts +37 -10
  73. package/translations/de.json +18 -4
  74. package/translations/en.json +19 -5
  75. package/translations/es.json +18 -4
  76. package/translations/fr.json +24 -10
  77. package/translations/it.json +18 -4
  78. package/translations/nl.json +18 -4
  79. package/translations/pt.json +18 -4
  80. package/translations/sk.json +18 -4
  81. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.html +0 -41
  82. package/src/libs/feature/map/src/lib/geocoding/geocoding.component.ts +0 -112
  83. package/src/libs/feature/map/src/lib/geocoding.service.ts +0 -57
  84. package/src/libs/feature/map/src/lib/style/index.ts +0 -2
  85. package/src/libs/feature/map/src/lib/style/map-style.fixtures.ts +0 -47
  86. package/src/libs/feature/map/src/lib/style/map-style.service.ts +0 -108
  87. /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
@@ -6,7 +6,7 @@ import GeoJSON from 'ol/format/GeoJSON.js';
6
6
  import { parse as parse$1 } from 'ol/xml.js';
7
7
  import { format } from 'date-fns/format';
8
8
  import { Namespace, Literal, lit, parse as parse$2, sym, BlankNode, graph } from 'rdflib';
9
- import { lastValueFrom, fromEvent, startWith, map as map$2, shareReplay, filter, pairwise, of, switchMap, Subject, forkJoin, combineLatest, from, exhaustMap, throwError, takeLast, firstValueFrom, merge, BehaviorSubject, timer, ReplaySubject, Subscription, first, distinctUntilChanged as distinctUntilChanged$1, animationFrameScheduler, debounceTime as debounceTime$1, Observable, buffer, tap as tap$2, combineLatestWith, take as take$1, catchError as catchError$1, takeUntil, EMPTY, mergeMap as mergeMap$1, withLatestFrom as withLatestFrom$1 } from 'rxjs';
9
+ import { lastValueFrom, fromEvent, startWith, map as map$2, shareReplay, filter, pairwise, of, switchMap, Subject, forkJoin, combineLatest, from, exhaustMap, throwError, takeLast, firstValueFrom, merge, BehaviorSubject, timer, ReplaySubject, Subscription, first, distinctUntilChanged as distinctUntilChanged$1, animationFrameScheduler, debounceTime as debounceTime$1, Observable, buffer, tap as tap$2, combineLatestWith, take as take$1, catchError as catchError$1, EMPTY, mergeMap as mergeMap$1, withLatestFrom as withLatestFrom$1, takeUntil } from 'rxjs';
10
10
  import * as i0 from '@angular/core';
11
11
  import { InjectionToken, inject, Injectable, NgModule, Injector, provideAppInitializer, makeEnvironmentProviders, ElementRef, afterNextRender, booleanAttribute, Input, Directive, HostListener, Renderer2, DestroyRef, EventEmitter, Output, ViewChild, ChangeDetectionStrategy, Component, ViewEncapsulation, ChangeDetectorRef, HostBinding, ViewContainerRef, TemplateRef, ViewChildren, ContentChild, input, output, signal, viewChild, computed, ContentChildren, NgZone, ComponentFactoryResolver, viewChildren } from '@angular/core';
12
12
  import { HttpClient, HttpHeaders, HttpParams, HTTP_INTERCEPTORS, provideHttpClient, withInterceptorsFromDi, HttpEventType } from '@angular/common/http';
@@ -26,7 +26,6 @@ import { getLength } from 'ol/sphere.js';
26
26
  import { LineString } from 'ol/geom.js';
27
27
  import * as i1 from '@ngrx/store';
28
28
  import { createAction, props, createReducer, on, createFeatureSelector, createSelector, Store, select, StoreModule } from '@ngrx/store';
29
- import { queryDataGouvFr, queryGeonames, queryGeoadmin } from '@geospatial-sdk/geocoding';
30
29
  import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
31
30
  import { FeaturesClickEventType, FeaturesHoverEventType, MapClickEventType, MapExtentChangeEventType, SourceLoadErrorType, computeMapContextDiff, createViewFromLayer } from '@geospatial-sdk/core';
32
31
  import { createMapFromContext, applyContextDiffToMap, listen } from '@geospatial-sdk/openlayers';
@@ -37,11 +36,8 @@ import { createLegendFromLayer } from '@geospatial-sdk/legend';
37
36
  import { mouseOnly, noModifierKeys, primaryAction, platformModifierKeyOnly } from 'ol/events/condition.js';
38
37
  import { defaults, DragPan, MouseWheelZoom } from 'ol/interaction.js';
39
38
  import { extend } from 'ol/extent.js';
40
- import * as TOML from '@ltd/j-toml';
41
- import { Style, Stroke, Fill, Circle } from 'ol/style.js';
42
- import CircleStyle from 'ol/style/Circle.js';
43
39
  import EmblaCarousel from 'embla-carousel';
44
- import { iconoirNavArrowLeft, iconoirNavArrowRight, iconoirLongArrowDownLeft, iconoirSearch, iconoirCalendar, iconoirArrowUp, iconoirLink, iconoirFramePlusIn, iconoirCloudUpload, iconoirTrash, iconoirSquareDashed, iconoirImport, iconoirCheckCircle, iconoirReduce, iconoirNavArrowUp, iconoirNavArrowDown, iconoirExpand, iconoirSettings, iconoirDownload, iconoirPlus, iconoirBin, iconoirMediaImageXmark, iconoirMediaImage, iconoirAppWindow, iconoirCode, iconoirDatabase, iconoirAppleWallet, iconoirBank, iconoirList, iconoirTranslate, iconoirLock, iconoirUser, iconoirArrowLeft, iconoirLightBulbOn, iconoirBadgeCheck, iconoirSystemShut, iconoirCircle, iconoirAttachment, iconoirRefresh } from '@ng-icons/iconoir';
40
+ import { iconoirNavArrowLeft, iconoirNavArrowRight, iconoirLongArrowDownLeft, iconoirSearch, iconoirCalendar, iconoirArrowUp, iconoirLink, iconoirFramePlusIn, iconoirCloudUpload, iconoirUpload, iconoirTrash, iconoirSquareDashed, iconoirCheckCircle, iconoirReduce, iconoirNavArrowUp, iconoirNavArrowDown, iconoirExpand, iconoirSettings, iconoirDownload, iconoirPlus, iconoirBin, iconoirMediaImageXmark, iconoirMediaImage, iconoirAppWindow, iconoirCode, iconoirDatabase, iconoirAppleWallet, iconoirBank, iconoirList, iconoirTranslate, iconoirLock, iconoirUser, iconoirArrowLeft, iconoirLightBulbOn, iconoirImport, iconoirBadgeCheck, iconoirSystemShut, iconoirCircle, iconoirAttachment, iconoirRefresh } from '@ng-icons/iconoir';
45
41
  import { MatButtonModule } from '@angular/material/button';
46
42
  import * as i1$7 from '@angular/cdk/overlay';
47
43
  import { ScrollStrategyOptions, OverlayModule, CdkConnectedOverlay, ScrollDispatcher, Overlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
@@ -56,7 +52,7 @@ import { matClose, matContentCopy, matExpandMore, matExpandLess, matSearch, matS
56
52
  import * as i1$4 from '@angular/material/checkbox';
57
53
  import { MatCheckboxModule } from '@angular/material/checkbox';
58
54
  import * as i1$5 from '@angular/material/tooltip';
59
- import { MatTooltipModule } from '@angular/material/tooltip';
55
+ import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
60
56
  import { MAT_DATE_LOCALE, MAT_DATE_FORMATS, DateAdapter } from '@angular/material/core';
61
57
  import { MAT_DATE_FNS_FORMATS, DateFnsAdapter } from '@angular/material-date-fns-adapter';
62
58
  import { enUS } from 'date-fns/locale/en-US';
@@ -74,6 +70,8 @@ import { MatTabsModule } from '@angular/material/tabs';
74
70
  import * as i2$2 from '@ngrx/effects';
75
71
  import { Actions, createEffect, ofType, EffectsModule } from '@ngrx/effects';
76
72
  import { valid as valid$1 } from 'geojson-validation';
73
+ import { queryGeoplateforme, queryGeonames, queryGeoadmin } from '@geospatial-sdk/geocoding';
74
+ import pointer from 'jsonpointer';
77
75
  import { TemplatePortal } from '@angular/cdk/portal';
78
76
  import { parse as parse$3 } from 'marked';
79
77
  import * as i2$3 from '@angular/cdk/scrolling';
@@ -101,6 +99,7 @@ import { TextFieldModule } from '@angular/cdk/text-field';
101
99
  import * as i2$5 from '@ngrx/router-store';
102
100
  import { getRouterSelectors, routerReducer, StoreRouterConnectingModule, FullRouterStateSerializer } from '@ngrx/router-store';
103
101
  import { navigation } from '@ngrx/router-store/data-persistence';
102
+ import * as TOML from '@ltd/j-toml';
104
103
 
105
104
  class MetadataMapperContext {
106
105
  }
@@ -1139,7 +1138,7 @@ function kindToCodeListValue(record) {
1139
1138
  }
1140
1139
 
1141
1140
  function extractCharacterString() {
1142
- return pipe(fallback(findChildElement('gco:CharacterString', false), findChildElement('gmx:Anchor', false), findChildElement('gmx:MimeFileType', false)), readText());
1141
+ return pipe(fallback(findChildElement('gco:CharacterString', false), findChildElement('gmx:Anchor', false), findChildElement('gmx:MimeFileType', false), findChildElement('gco:LocalName', false)), readText());
1143
1142
  }
1144
1143
  /**
1145
1144
  * Translated values will also be collected in the translations object
@@ -2202,6 +2201,7 @@ class Iso19139Converter extends BaseConverter {
2202
2201
  lineage: readLineage$1,
2203
2202
  sourceRecords: readSourceRecords$1,
2204
2203
  associatedRecords: readAssociatedRecords$1,
2204
+ featureTypeDescriptions: () => undefined,
2205
2205
  onlineResources: readOnlineResources$2,
2206
2206
  temporalExtents: readTemporalExtents,
2207
2207
  spatialExtents: readSpatialExtents$1,
@@ -2241,6 +2241,7 @@ class Iso19139Converter extends BaseConverter {
2241
2241
  lineage: writeLineage$1,
2242
2242
  sourceRecords: writeSourceRecords$1,
2243
2243
  associatedRecords: writeAssociatedRecords$1,
2244
+ featureTypeDescriptions: () => undefined,
2244
2245
  onlineResources: writeOnlineResources$1,
2245
2246
  temporalExtents: writeTemporalExtents,
2246
2247
  spatialExtents: writeSpatialExtents,
@@ -2367,6 +2368,7 @@ class Iso19139Converter extends BaseConverter {
2367
2368
  const sourceRecords = this.readers['sourceRecords'](rootEl, tr);
2368
2369
  const associatedRecords = this.readers['associatedRecords'](rootEl, tr);
2369
2370
  const updateFrequency = this.readers['updateFrequency'](rootEl, tr);
2371
+ const featureTypeDescriptions = this.readers['featureTypeDescriptions'](rootEl, tr);
2370
2372
  return this.afterRecordRead({
2371
2373
  ...this.readBaseRecord(rootEl, tr),
2372
2374
  kind,
@@ -2377,6 +2379,7 @@ class Iso19139Converter extends BaseConverter {
2377
2379
  ...(spatialRepresentation && { spatialRepresentation }),
2378
2380
  temporalExtents,
2379
2381
  updateFrequency,
2382
+ ...(featureTypeDescriptions?.length && { featureTypeDescriptions }),
2380
2383
  translations: tr,
2381
2384
  });
2382
2385
  }
@@ -2466,6 +2469,8 @@ class Iso19139Converter extends BaseConverter {
2466
2469
  this.writers['resourceIdentifiers'](record, rootEl);
2467
2470
  if (record.kind === 'dataset') {
2468
2471
  fieldChanged('status') && this.writers['status'](record, rootEl);
2472
+ fieldChanged('featureTypeDescriptions') &&
2473
+ this.writers['featureTypeDescriptions'](record, rootEl);
2469
2474
  }
2470
2475
  if (record.kind === 'dataset' || record.kind === 'reuse') {
2471
2476
  fieldChanged('updateFrequency') &&
@@ -2633,6 +2638,34 @@ function readDefaultLanguage$1(rootEl) {
2633
2638
  function readOtherLanguages(rootEl) {
2634
2639
  return pipe(findChildrenElement('mdb:otherLocale', false), mapArray(readLocaleElement()), map((languages) => languages.filter((lang) => lang !== null)))(rootEl);
2635
2640
  }
2641
+ function extractCharacterStringOrText() {
2642
+ return fallback(extractCharacterString(), readText());
2643
+ }
2644
+ function extractListedValue() {
2645
+ return pipe(combine(pipe(findChildElement('gfc:code', false), extractCharacterString()), pipe(findChildElement('gfc:label', false), extractCharacterString()), pipe(findChildElement('gfc:definition', false), extractCharacterString())), map(([code, label, description]) => ({
2646
+ value: code ?? '',
2647
+ ...(label && { label }),
2648
+ ...(description && { description }),
2649
+ })));
2650
+ }
2651
+ function extractFeatureAttribute() {
2652
+ return pipe(combine(pipe(findChildElement('gfc:memberName', false), extractCharacterStringOrText()), pipe(findChildElement('gfc:designation', false), extractCharacterString()), pipe(findChildElement('gfc:definition', false), extractCharacterString()), pipe(findChildElement('gfc:code', false), extractCharacterString()), pipe(findNestedElement('gfc:valueType', 'gco:TypeName', 'gco:aName'), extractCharacterString()), pipe(findNestedElements('gfc:listedValue', 'gfc:FC_ListedValue'), mapArray(extractListedValue()), filterArray((value) => !!(value.value || value.label)))), map(([name, label, description, code, type, values]) => ({
2653
+ name: name ?? '',
2654
+ ...(label && { label }),
2655
+ ...(description && { description }),
2656
+ ...(code && { code }),
2657
+ ...(type && { type }),
2658
+ ...(values.length > 0 && { values }),
2659
+ })));
2660
+ }
2661
+ function readFeatureTypeDescriptions(rootEl) {
2662
+ return pipe(findNestedElements('mdb:contentInfo', 'mrc:MD_FeatureCatalogue', 'mrc:featureCatalogue', 'gfc:FC_FeatureCatalogue', 'gfc:featureType', 'gfc:FC_FeatureType'), mapArray(pipe(combine(pipe(findChildElement('gfc:typeName', false), extractCharacterStringOrText()), pipe(findChildElement('gfc:designation', false), extractCharacterString()), pipe(findChildElement('gfc:definition', false), extractCharacterString()), pipe(findNestedElements('gfc:carrierOfCharacteristics', 'gfc:FC_FeatureAttribute'), mapArray(extractFeatureAttribute()))), map(([name, label, description, attributes]) => ({
2663
+ name: name ?? '',
2664
+ ...(label && { label }),
2665
+ ...(description && { description }),
2666
+ attributes,
2667
+ })))))(rootEl);
2668
+ }
2636
2669
 
2637
2670
  function writeUniqueIdentifier$1(record, rootEl) {
2638
2671
  pipe(findNestedChildOrCreate('mdb:metadataIdentifier', 'mcc:MD_Identifier', 'mcc:code'), writeCharacterString(record.uniqueIdentifier))(rootEl);
@@ -2787,6 +2820,52 @@ function writeAssociatedRecords(record, rootEl) {
2787
2820
  .filter((assoc) => assoc.uniqueIdentifier && assoc.associationType)
2788
2821
  .map((assoc) => pipe(createNestedElement('mri:associatedResource', 'mri:MD_AssociatedResource'), appendChildren(pipe(createNestedElement('mri:associationType', 'mri:DS_AssociationTypeCode'), writeAttribute('codeList', 'http://standards.iso.org/iso/19115/resources/Codelists/cat/codelists.xml#DS_AssociationTypeCode'), writeAttribute('codeListValue', assoc.associationType)), pipe(createElement('mri:metadataReference'), writeAttribute('uuidref', assoc.uniqueIdentifier)))))))(rootEl);
2789
2822
  }
2823
+ function createNilElement(name, nilReason) {
2824
+ return pipe(createElement(name), writeAttribute('gco:nilReason', nilReason));
2825
+ }
2826
+ function createFeatureCatalogueShell() {
2827
+ return pipe(createNestedElement('mdb:contentInfo', 'mrc:MD_FeatureCatalogue', 'mrc:featureCatalogue', 'gfc:FC_FeatureCatalogue'),
2828
+ // create mandatory elements which are not part of the model yet
2829
+ appendChildren(createNilElement('cat:name', 'missing'), createNilElement('cat:scope', 'missing'), createNilElement('cat:versionNumber', 'missing'), createNilElement('cat:versionDate', 'missing'), createNilElement('gfc:producer', 'missing')));
2830
+ }
2831
+ function createListedValue(value) {
2832
+ return pipe(createNestedElement('gfc:listedValue', 'gfc:FC_ListedValue'), appendChildren(value.label
2833
+ ? pipe(createElement('gfc:label'), writeCharacterString(value.label))
2834
+ : createNilElement('gfc:label', 'missing'), value.value
2835
+ ? pipe(createElement('gfc:code'), writeCharacterString(value.value))
2836
+ : null, value.description
2837
+ ? pipe(createElement('gfc:definition'), writeCharacterString(value.description))
2838
+ : null));
2839
+ }
2840
+ function createFeatureAttribute(attribute) {
2841
+ return pipe(createNestedElement('gfc:carrierOfCharacteristics', 'gfc:FC_FeatureAttribute'), appendChildren(pipe(createElement('gfc:memberName'), setTextContent(attribute.name)), attribute.description
2842
+ ? pipe(createElement('gfc:definition'), writeCharacterString(attribute.description))
2843
+ : null, createNilElement('gfc:cardinality', 'missing'), attribute.label
2844
+ ? pipe(createElement('gfc:designation'), writeCharacterString(attribute.label))
2845
+ : null, attribute.code
2846
+ ? pipe(createElement('gfc:code'), writeCharacterString(attribute.code))
2847
+ : null, attribute.type
2848
+ ? pipe(createNestedElement('gfc:valueType', 'gco:TypeName', 'gco:aName'), writeCharacterString(attribute.type))
2849
+ : null, ...(attribute.values ?? [])
2850
+ .filter((value) => value.value || value.label)
2851
+ .map(createListedValue)));
2852
+ }
2853
+ function createFeatureType(featureType) {
2854
+ return pipe(createNestedElement('gfc:featureType', 'gfc:FC_FeatureType'), appendChildren(pipe(createElement('gfc:typeName'), setTextContent(featureType.name)), featureType.description
2855
+ ? pipe(createElement('gfc:definition'), writeCharacterString(featureType.description))
2856
+ : null, pipe(createNestedElement('gfc:isAbstract', 'gco:Boolean'), setTextContent('false')), featureType.label
2857
+ ? pipe(createElement('gfc:designation'), writeCharacterString(featureType.label))
2858
+ : null, ...featureType.attributes.map(createFeatureAttribute), createNilElement('gfc:featureCatalogue', 'missing')));
2859
+ }
2860
+ function writeFeatureTypeDescriptions(record, rootEl) {
2861
+ const featureTypes = record.featureTypeDescriptions ?? [];
2862
+ const catalogues = findNestedElements('mdb:contentInfo', 'mrc:MD_FeatureCatalogue', 'mrc:featureCatalogue', 'gfc:FC_FeatureCatalogue')(rootEl);
2863
+ catalogues.forEach((catalogue) => removeChildrenByName('gfc:featureType')(catalogue));
2864
+ if (!featureTypes.length)
2865
+ return;
2866
+ const catalogue = catalogues[0] ?? appendChildTree(createFeatureCatalogueShell())(rootEl);
2867
+ appendChildren(...featureTypes.map(createFeatureType))(catalogue);
2868
+ }
2790
2869
 
2791
2870
  class Iso191153Converter extends Iso19139Converter {
2792
2871
  constructor() {
@@ -2803,6 +2882,7 @@ class Iso191153Converter extends Iso19139Converter {
2803
2882
  this.readers['lineage'] = readLineage;
2804
2883
  this.readers['sourceRecords'] = readSourceRecords;
2805
2884
  this.readers['associatedRecords'] = readAssociatedRecords;
2885
+ this.readers['featureTypeDescriptions'] = readFeatureTypeDescriptions;
2806
2886
  this.readers['onlineResources'] = readOnlineResources$1;
2807
2887
  this.readers['defaultLanguage'] = readDefaultLanguage$1;
2808
2888
  this.readers['otherLanguages'] = readOtherLanguages;
@@ -2823,6 +2903,7 @@ class Iso191153Converter extends Iso19139Converter {
2823
2903
  this.writers['lineage'] = writeLineage;
2824
2904
  this.writers['sourceRecords'] = writeSourceRecords;
2825
2905
  this.writers['associatedRecords'] = writeAssociatedRecords;
2906
+ this.writers['featureTypeDescriptions'] = writeFeatureTypeDescriptions;
2826
2907
  this.writers['onlineResources'] = writeOnlineResources;
2827
2908
  this.writers['status'] = writeStatus;
2828
2909
  this.writers['spatialRepresentation'] = writeSpatialRepresentation;
@@ -2912,10 +2993,12 @@ class Iso191153Converter extends Iso19139Converter {
2912
2993
  });
2913
2994
  }
2914
2995
  async writeRecord(record, reference) {
2915
- let result = await super.writeRecord(record, reference);
2916
- // fix gco namespace definition (changes between iso19139 and iso19115-3
2917
- result = result.replace('"http://www.isotc211.org/2005/gco"', '"http://standards.iso.org/iso/19115/-3/gco/1.0"');
2918
- return result;
2996
+ const result = await super.writeRecord(record, reference);
2997
+ // fix the gco and gfc namespace definitions (they change between iso19139 and iso19115-3);
2998
+ // only on the root element, where they are declared, so that nested declarations stay untouched
2999
+ return result.replace(/<mdb:MD_Metadata[^>]*>/, (rootTag) => rootTag
3000
+ .replace('"http://www.isotc211.org/2005/gco"', '"http://standards.iso.org/iso/19115/-3/gco/1.0"')
3001
+ .replace('"http://www.isotc211.org/2005/gfc"', '"http://standards.iso.org/iso/19110/gfc/1.1"'));
2919
3002
  }
2920
3003
  }
2921
3004
 
@@ -3459,6 +3542,7 @@ class DcatApConverter extends BaseConverter {
3459
3542
  lineage: () => '',
3460
3543
  sourceRecords: () => [],
3461
3544
  associatedRecords: () => [],
3545
+ featureTypeDescriptions: () => undefined,
3462
3546
  temporalExtents: () => [],
3463
3547
  spatialRepresentation: () => undefined,
3464
3548
  extras: () => undefined,
@@ -3494,6 +3578,7 @@ class DcatApConverter extends BaseConverter {
3494
3578
  lineage: () => undefined,
3495
3579
  sourceRecords: () => [],
3496
3580
  associatedRecords: () => [],
3581
+ featureTypeDescriptions: () => undefined,
3497
3582
  onlineResources: () => undefined,
3498
3583
  temporalExtents: () => undefined,
3499
3584
  spatialExtents: () => undefined,
@@ -18904,9 +18989,15 @@ class Gn4FieldMapper {
18904
18989
  isOpenData: (output, source) => this.addExtra({
18905
18990
  isOpenData: selectField(source, 'isOpenData') !== 'false',
18906
18991
  }, output),
18907
- featureTypes: (output, source) => this.addExtra({
18908
- featureTypes: selectField(source, 'featureTypes'),
18909
- }, output),
18992
+ featureTypes: (output, source) => {
18993
+ const featureTypes = getAsArray(selectField(source, 'featureTypes'));
18994
+ if (!featureTypes.length)
18995
+ return output;
18996
+ return {
18997
+ ...output,
18998
+ featureTypeDescriptions: this.featureTypesField(featureTypes),
18999
+ };
19000
+ },
18910
19001
  related: (output, source) => {
18911
19002
  const related = selectField(source, 'related');
18912
19003
  const fcatSource = selectField(getFirstValue(selectField(related, 'fcats')) ?? {}, '_source');
@@ -19042,6 +19133,27 @@ class Gn4FieldMapper {
19042
19133
  },
19043
19134
  };
19044
19135
  this.genericField = (output) => output;
19136
+ this.featureTypesField = (featureTypes) => featureTypes.map((featureType) => ({
19137
+ name: featureType.typeName ?? '',
19138
+ ...(featureType.definition && {
19139
+ description: featureType.definition,
19140
+ }),
19141
+ attributes: getAsArray(featureType.attributeTable ?? []).map((attr) => {
19142
+ const values = (attr.values ?? [])
19143
+ .filter((value) => value.code || value.label)
19144
+ .map((value) => ({
19145
+ value: value.code || '',
19146
+ ...(value.label && { label: value.label }),
19147
+ }));
19148
+ return {
19149
+ name: attr.name ?? '',
19150
+ ...(attr.definition && { description: attr.definition }),
19151
+ ...(attr.code && { code: attr.code }),
19152
+ ...(attr.type && { type: attr.type }),
19153
+ ...(values.length > 0 && { values }),
19154
+ };
19155
+ }),
19156
+ }));
19045
19157
  this.constraintField = (type, output, constraintArray) => {
19046
19158
  let outputField;
19047
19159
  switch (type) {
@@ -19596,6 +19708,19 @@ function isBoundingBox(value) {
19596
19708
  value.length === 4 &&
19597
19709
  value.every((item) => typeof item === 'number'));
19598
19710
  }
19711
+ /**
19712
+ * Checks that a bounding box's coordinates stay within the valid
19713
+ * longitude (-180/180) and latitude (-90/90) ranges.
19714
+ */
19715
+ function isBoundingBoxWithinWorldExtent(bbox) {
19716
+ const [minX, minY, maxX, maxY] = bbox;
19717
+ return (minX >= -180 &&
19718
+ maxX <= 180 &&
19719
+ minY >= -90 &&
19720
+ maxY <= 90 &&
19721
+ minX <= maxX &&
19722
+ minY <= maxY);
19723
+ }
19599
19724
  function getGeometryBoundingBox(geometry) {
19600
19725
  // use the bounding box if specified in the GeoJSON object
19601
19726
  if (geometry.bbox) {
@@ -19651,10 +19776,25 @@ function getGeometryBoundingBox(geometry) {
19651
19776
  }
19652
19777
  }
19653
19778
  /**
19654
- * Builds the closed GeoJSON Polygon matching the given bounding box.
19779
+ * Builds the GeoJSON Geometry matching the given bounding box.
19655
19780
  */
19656
- function bboxToPolygon(bbox) {
19781
+ function bboxToGeometry(bbox) {
19657
19782
  const [minX, minY, maxX, maxY] = bbox;
19783
+ if (minX === maxX && minY === maxY) {
19784
+ return {
19785
+ type: 'Point',
19786
+ coordinates: [minX, minY],
19787
+ };
19788
+ }
19789
+ if (minX === maxX || minY === maxY) {
19790
+ return {
19791
+ type: 'LineString',
19792
+ coordinates: [
19793
+ [minX, minY],
19794
+ [maxX, maxY],
19795
+ ],
19796
+ };
19797
+ }
19658
19798
  return {
19659
19799
  type: 'Polygon',
19660
19800
  coordinates: [
@@ -19676,7 +19816,7 @@ function spatialExtentToGeometry(extent) {
19676
19816
  if (extent.geometry)
19677
19817
  return extent.geometry;
19678
19818
  if (extent.bbox)
19679
- return bboxToPolygon(extent.bbox);
19819
+ return bboxToGeometry(extent.bbox);
19680
19820
  return null;
19681
19821
  }
19682
19822
  /**
@@ -20264,7 +20404,7 @@ function getLinkLabel(link) {
20264
20404
  const label = link.description || ('name' in link ? link.name : '');
20265
20405
  return format ? `${label} (${format})` : label;
20266
20406
  }
20267
- async function getLayers(url, serviceProtocol) {
20407
+ async function getLayers(url, serviceProtocol, deep = false) {
20268
20408
  switch (serviceProtocol) {
20269
20409
  case 'ogcFeatures': {
20270
20410
  const layers = await new OgcApiEndpoint(url).allCollections;
@@ -20272,7 +20412,10 @@ async function getLayers(url, serviceProtocol) {
20272
20412
  }
20273
20413
  case 'wfs': {
20274
20414
  const endpointWfs = await new WfsEndpoint(url).isReady();
20275
- const featureTypes = await endpointWfs.getFeatureTypes();
20415
+ const featureTypes = endpointWfs.getFeatureTypes();
20416
+ if (!deep) {
20417
+ return featureTypes;
20418
+ }
20276
20419
  const layers = (await Promise.allSettled(featureTypes.map((collection) => {
20277
20420
  return endpointWfs.getFeatureTypeFull(collection.name);
20278
20421
  })))
@@ -20282,12 +20425,14 @@ async function getLayers(url, serviceProtocol) {
20282
20425
  }
20283
20426
  case 'wms': {
20284
20427
  const endpointWms = await new WmsEndpoint(url).isReady();
20285
- const layers = (await endpointWms
20428
+ const layersSummary = endpointWms
20286
20429
  .getLayers()
20287
20430
  .flatMap(wmsLayerFlatten)
20288
- .filter((l) => l.name)).map((collection) => {
20289
- return endpointWms.getLayerByName(collection.name);
20290
- });
20431
+ .filter((l) => l.name);
20432
+ if (!deep) {
20433
+ return layersSummary;
20434
+ }
20435
+ const layers = layersSummary.map((collection) => endpointWms.getLayerByName(collection.name));
20291
20436
  return layers;
20292
20437
  }
20293
20438
  case 'wmts': {
@@ -20434,7 +20579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
20434
20579
  }] } });
20435
20580
 
20436
20581
  var name = "geonetwork-ui";
20437
- var version = "2.11.0-dev.5f9922c2e";
20582
+ var version = "2.11.0-dev.62b98576f";
20438
20583
  var engines = {
20439
20584
  node: ">=24"
20440
20585
  };
@@ -20455,6 +20600,7 @@ var peerDependencies = {
20455
20600
  "@angular/core": "19.x || 20.x || 21.x",
20456
20601
  "@angular/forms": "19.x || 20.x || 21.x",
20457
20602
  "@angular/material": "19.x || 20.x || 21.x",
20603
+ "@angular/material-date-fns-adapter": "19.x || 20.x",
20458
20604
  "@angular/platform-browser": "19.x || 20.x || 21.x",
20459
20605
  "@angular/platform-browser-dynamic": "19.x || 20.x || 21.x",
20460
20606
  "@angular/router": "19.x || 20.x || 21.x",
@@ -20475,10 +20621,10 @@ var dependencies = {
20475
20621
  "@biesbjerg/ngx-translate-extract-marker": "~1.0.0",
20476
20622
  "@camptocamp/ogc-client": "1.3.1-dev.200c02a",
20477
20623
  "@duckdb/duckdb-wasm": "~1.32.0",
20478
- "@geospatial-sdk/core": "0.0.5-dev.78",
20479
- "@geospatial-sdk/geocoding": "0.0.5-dev.78",
20480
- "@geospatial-sdk/legend": "0.0.5-dev.78",
20481
- "@geospatial-sdk/openlayers": "0.0.5-dev.78",
20624
+ "@geospatial-sdk/core": "0.0.5-dev.86.sha-124eae3",
20625
+ "@geospatial-sdk/geocoding": "0.0.5-dev.86.sha-124eae3",
20626
+ "@geospatial-sdk/legend": "0.0.5-dev.86.sha-124eae3",
20627
+ "@geospatial-sdk/openlayers": "0.0.5-dev.86.sha-124eae3",
20482
20628
  "@ltd/j-toml": "~1.38.0",
20483
20629
  "@messageformat/core": "~3.4.0",
20484
20630
  "@ng-icons/core": "~32.5.0",
@@ -20495,6 +20641,7 @@ var dependencies = {
20495
20641
  "embla-carousel": "~8.6.0",
20496
20642
  "flag-icons": "~7.5.0",
20497
20643
  "geojson-validation": "~1.0.2",
20644
+ jsonpointer: "^5.0.1",
20498
20645
  marked: "~17.0.4",
20499
20646
  "ngx-dropzone": "~3.1.0",
20500
20647
  "ngx-translate-messageformat-compiler": "~7.2.0",
@@ -20671,6 +20818,7 @@ class ElasticsearchService {
20671
20818
  // runtime fields are computed using a Painless script
20672
20819
  // see: https://www.elastic.co/guide/en/elasticsearch/reference/current/runtime-mapping-fields.html
20673
20820
  this.runtimeFields = {};
20821
+ this.fieldAliases = {};
20674
20822
  }
20675
20823
  // we're using getters in case the defined languages change over time
20676
20824
  get metadataLang() {
@@ -20696,8 +20844,8 @@ class ElasticsearchService {
20696
20844
  if (!payload.runtime_mappings)
20697
20845
  payload.runtime_mappings = {};
20698
20846
  payload.runtime_mappings[fieldName] = {
20699
- type: 'keyword',
20700
- script: this.runtimeFields[fieldName],
20847
+ type: this.runtimeFields[fieldName].type,
20848
+ script: this.runtimeFields[fieldName].script,
20701
20849
  };
20702
20850
  };
20703
20851
  const lookForField = (node) => {
@@ -20717,6 +20865,12 @@ class ElasticsearchService {
20717
20865
  (node[runtimeField] === 'asc' || node[runtimeField] === 'desc')) {
20718
20866
  addMapping(runtimeField);
20719
20867
  }
20868
+ if (runtimeField in node &&
20869
+ typeof node[runtimeField] === 'object' &&
20870
+ node[runtimeField] !== null &&
20871
+ ('gte' in node[runtimeField] || 'lte' in node[runtimeField])) {
20872
+ addMapping(runtimeField);
20873
+ }
20720
20874
  if ('query' in node &&
20721
20875
  typeof node.query === 'string' &&
20722
20876
  node.query.indexOf(runtimeField + ':') > -1) {
@@ -20733,8 +20887,11 @@ class ElasticsearchService {
20733
20887
  lookForField(payload.query);
20734
20888
  return payload;
20735
20889
  }
20736
- registerRuntimeField(fieldName, expression) {
20737
- this.runtimeFields[fieldName] = expression;
20890
+ registerRuntimeField(fieldName, expression, type = 'keyword') {
20891
+ this.runtimeFields[fieldName] = { script: expression, type };
20892
+ }
20893
+ registerFieldAlias(fieldIdentifier, esFieldName) {
20894
+ this.fieldAliases[fieldIdentifier] = esFieldName;
20738
20895
  }
20739
20896
  getMetadataByIdsPayload(uuids) {
20740
20897
  return {
@@ -20857,6 +21014,55 @@ class ElasticsearchService {
20857
21014
  }
20858
21015
  return Object.values(filters).find(isBoundingBox);
20859
21016
  }
21017
+ // builds a query matching records whose dates intersect the filter range
21018
+ buildDateRangeQuery(searchField, dateRange) {
21019
+ // fields ending with 'DateRange' maps as ES range type
21020
+ if (searchField.endsWith('DateRange')) {
21021
+ return {
21022
+ range: {
21023
+ [searchField]: {
21024
+ ...(dateRange.start && { gte: formatDate(dateRange.start) }),
21025
+ ...(dateRange.end && { lte: formatDate(dateRange.end) }),
21026
+ format: 'yyyy-MM-dd',
21027
+ relation: 'intersects',
21028
+ },
21029
+ },
21030
+ };
21031
+ }
21032
+ const minField = `${searchField}Min`;
21033
+ const maxField = `${searchField}Max`;
21034
+ if (minField in this.runtimeFields && maxField in this.runtimeFields) {
21035
+ // min/max runtime fields form an interval per record; match if it intersects the filter range
21036
+ const filter = [
21037
+ dateRange.start && {
21038
+ range: {
21039
+ [maxField]: {
21040
+ gte: formatDate(dateRange.start),
21041
+ format: 'yyyy-MM-dd',
21042
+ },
21043
+ },
21044
+ },
21045
+ dateRange.end && {
21046
+ range: {
21047
+ [minField]: {
21048
+ lte: formatDate(dateRange.end),
21049
+ format: 'yyyy-MM-dd',
21050
+ },
21051
+ },
21052
+ },
21053
+ ].filter(Boolean);
21054
+ return { bool: { filter } };
21055
+ }
21056
+ return {
21057
+ range: {
21058
+ [searchField]: {
21059
+ ...(dateRange.start && { gte: formatDate(dateRange.start) }),
21060
+ ...(dateRange.end && { lte: formatDate(dateRange.end) }),
21061
+ format: 'yyyy-MM-dd',
21062
+ },
21063
+ },
21064
+ };
21065
+ }
20860
21066
  filtersToQuery(filters, spatialFilterExtent = this.findSpatialFilterExtent(filters)) {
20861
21067
  const addQuote = (key) => (/^\/.+\/$/.test(key) ? key : `"${key}"`);
20862
21068
  const makeQuery = (filter) => {
@@ -20881,39 +21087,19 @@ class ElasticsearchService {
20881
21087
  .filter((fieldname) => !Array.isArray(filters[fieldname]))
20882
21088
  .filter((fieldname) => filters[fieldname] &&
20883
21089
  JSON.stringify(filters[fieldname]) !== '{}')
20884
- .map((fieldname) => `${fieldname}:(${makeQuery(filters[fieldname])})`)
21090
+ .map((fieldname) => `${this.fieldAliases[fieldname] ?? fieldname}:(${makeQuery(filters[fieldname])})`)
20885
21091
  .join(' AND ');
20886
21092
  if (filters['gn-ui-crossFieldFilter']) {
20887
21093
  queryString = `${queryString} AND (${filters['gn-ui-crossFieldFilter']})`;
20888
21094
  }
20889
- const queryRange = Object.entries(filters)
20890
- .filter(([, value]) => isDateRange(value))
20891
- .map(([searchField, dateRange]) => {
20892
- return {
20893
- searchField,
20894
- dateRange,
20895
- };
20896
- })[0];
21095
+ const queryRanges = Object.entries(filters).filter(([, value]) => isDateRange(value));
20897
21096
  const queryParts = [
20898
21097
  queryString && {
20899
21098
  query_string: {
20900
21099
  query: queryString,
20901
21100
  },
20902
21101
  },
20903
- queryRange &&
20904
- queryRange.dateRange && {
20905
- range: {
20906
- [queryRange.searchField]: {
20907
- ...(queryRange.dateRange.start && {
20908
- gte: formatDate(queryRange.dateRange.start),
20909
- }),
20910
- ...(queryRange.dateRange.end && {
20911
- lte: formatDate(queryRange.dateRange.end),
20912
- }),
20913
- format: 'yyyy-MM-dd',
20914
- },
20915
- },
20916
- },
21102
+ ...queryRanges.map(([searchField, dateRange]) => this.buildDateRangeQuery(searchField, dateRange)),
20917
21103
  spatialFilterExtent && {
20918
21104
  geo_shape: {
20919
21105
  geom: {
@@ -20969,7 +21155,7 @@ class ElasticsearchService {
20969
21155
  });
20970
21156
  }
20971
21157
  const boostGeometry = spatialFilterExtent
20972
- ? bboxToPolygon(spatialFilterExtent)
21158
+ ? bboxToGeometry(spatialFilterExtent)
20973
21159
  : geometry;
20974
21160
  if (boostGeometry) {
20975
21161
  // boosts applied using the filter geometry:
@@ -20977,15 +21163,19 @@ class ElasticsearchService {
20977
21163
  // * records intersecting the geometry receive a boost of 2
20978
21164
  // * records close to the geometry center receive a boost of 5 (based on the `location` field)
20979
21165
  // * records on the outskirt of the geometry receive a boost of 2.5
20980
- should.push({
20981
- geo_shape: {
20982
- geom: {
20983
- shape: boostGeometry,
20984
- relation: 'within',
21166
+ if (boostGeometry.type === 'Polygon' ||
21167
+ boostGeometry.type === 'MultiPolygon') {
21168
+ should.push({
21169
+ geo_shape: {
21170
+ geom: {
21171
+ shape: boostGeometry,
21172
+ relation: 'within',
21173
+ },
21174
+ boost: 5.0,
20985
21175
  },
20986
- boost: 5.0,
20987
- },
20988
- }, {
21176
+ });
21177
+ }
21178
+ should.push({
20989
21179
  geo_shape: {
20990
21180
  geom: {
20991
21181
  shape: boostGeometry,
@@ -21022,14 +21212,17 @@ class ElasticsearchService {
21022
21212
  getLength(westToCenter) +
21023
21213
  getLength(eastToCenter)) /
21024
21214
  4;
21025
- should.push({
21026
- distance_feature: {
21027
- field: 'location',
21028
- pivot: `${Math.round(cutoffDistance).toFixed(0)}m`,
21029
- origin: center,
21030
- boost: 5.0,
21031
- },
21032
- });
21215
+ const pivot = Math.round(cutoffDistance);
21216
+ if (pivot > 0) {
21217
+ should.push({
21218
+ distance_feature: {
21219
+ field: 'location',
21220
+ pivot: `${pivot.toFixed(0)}m`,
21221
+ origin: center,
21222
+ boost: 5.0,
21223
+ },
21224
+ });
21225
+ }
21033
21226
  }
21034
21227
  return {
21035
21228
  bool: {
@@ -21199,6 +21392,12 @@ class ElasticsearchService {
21199
21392
  order: {
21200
21393
  [`_${aggregation.sort[1]}`]: aggregation.sort[0],
21201
21394
  },
21395
+ ...(aggregation.includeValues && {
21396
+ include: aggregation.includeValues,
21397
+ }),
21398
+ ...(aggregation.excludeValues && {
21399
+ exclude: aggregation.excludeValues,
21400
+ }),
21202
21401
  },
21203
21402
  };
21204
21403
  case 'histogram':
@@ -21300,10 +21499,21 @@ class Gn4Repository {
21300
21499
  this.platformService = inject(PlatformServiceInterface);
21301
21500
  this.gn4LanguagesApi = inject(LanguagesApiService);
21302
21501
  this.settingsService = inject(Gn4SettingsService);
21502
+ this.gn4TagsApi = inject(TagsApiService);
21303
21503
  this.disableDraft = inject(DISABLE_DRAFT, { optional: true }) ?? false;
21304
21504
  this.defaultConverter = inject(DEFAULT_RECORD_CONVERTER);
21305
21505
  this._draftsChanged = new Subject();
21306
21506
  this.draftsChanged$ = this._draftsChanged.asObservable();
21507
+ /*
21508
+ * FLAGS
21509
+ * Note: in GN4 API, categories are named "tags"
21510
+ */
21511
+ this.categoriesIdentifierForFlags = this.gn4TagsApi.getTags().pipe(map$1((categories) => categories.reduce((acc, category) => {
21512
+ if (category.name.startsWith('geonetwork-ui-flag:')) {
21513
+ acc[category.name.replace(/^geonetwork-ui-flag:/, '')] = category.id;
21514
+ }
21515
+ return acc;
21516
+ }, {})), shareReplay$1(1));
21307
21517
  }
21308
21518
  search({ filters, fields, offset, limit, sort, filterIds, filterGeometry, }) {
21309
21519
  return this.gn4SearchApi
@@ -21333,42 +21543,16 @@ class Gn4Repository {
21333
21543
  ? this.gn4Mapper.readRecords(records)
21334
21544
  : of(null)));
21335
21545
  }
21336
- mapEmbeddedFeatureCatalog(featureTypes) {
21337
- return {
21338
- featureTypes: featureTypes.map((featureType) => ({
21339
- name: featureType.typeName || '',
21340
- definition: featureType.definition || '',
21341
- attributes: Array.isArray(featureType.attributeTable)
21342
- ? featureType.attributeTable.map((attr) => {
21343
- const values = attr.values
21344
- ?.filter((v) => v.code || v.label)
21345
- .map((v) => ({
21346
- code: v.code,
21347
- label: v.label,
21348
- }));
21349
- return {
21350
- name: attr.name,
21351
- code: attr.code,
21352
- definition: attr.definition,
21353
- type: attr.type,
21354
- ...(values?.length > 0 ? { values } : {}),
21355
- };
21356
- })
21357
- : [],
21358
- })),
21359
- };
21360
- }
21361
- getFeatureCatalog(record, visited = new Set() // prevent looping
21546
+ queryLinkedFeatureCatalog(record, visited = new Set() // prevent looping
21362
21547
  ) {
21363
- if (record.extras?.['featureTypes'] &&
21364
- Array.isArray(record.extras['featureTypes']) &&
21365
- record.extras['featureTypes'].length > 0) {
21366
- return of(this.mapEmbeddedFeatureCatalog(record.extras['featureTypes']));
21548
+ if ('featureTypeDescriptions' in record &&
21549
+ record.featureTypeDescriptions?.length > 0) {
21550
+ return of({ featureTypes: record.featureTypeDescriptions });
21367
21551
  }
21368
21552
  const featureCatalogIdentifier = record.extras['featureCatalogIdentifier'];
21369
21553
  if (featureCatalogIdentifier && !visited.has(featureCatalogIdentifier)) {
21370
21554
  visited.add(featureCatalogIdentifier);
21371
- return this.getRecord(featureCatalogIdentifier).pipe(switchMap((record) => record ? this.getFeatureCatalog(record, visited) : of(null)));
21555
+ return this.getRecord(featureCatalogIdentifier).pipe(switchMap((record) => record ? this.queryLinkedFeatureCatalog(record, visited) : of(null)));
21372
21556
  }
21373
21557
  return of(null);
21374
21558
  }
@@ -21631,6 +21815,35 @@ class Gn4Repository {
21631
21815
  removeRecordFromLocalStorage(recordId) {
21632
21816
  window.localStorage.removeItem(this.getLocalStorageKeyForRecord(recordId));
21633
21817
  }
21818
+ getCategoryIdForFlag(flagName) {
21819
+ return this.categoriesIdentifierForFlags.pipe(map$1((categories) => {
21820
+ const categoryId = categories[flagName];
21821
+ if (categoryId === undefined) {
21822
+ console.warn(`The record flag ${flagName} is not created on GeoNetwork backend; please create a category with the name geonetwork-ui-flag:${flagName} for this to work.`);
21823
+ return null;
21824
+ }
21825
+ return categoryId;
21826
+ }));
21827
+ }
21828
+ setRecordFlag(uniqueIdentifier, flagName, value) {
21829
+ return this.getCategoryIdForFlag(flagName).pipe(switchMap((categoryId) => {
21830
+ if (categoryId === null)
21831
+ return of();
21832
+ return value
21833
+ ? this.gn4RecordsApi.tagRecord(uniqueIdentifier, [categoryId], false)
21834
+ : this.gn4RecordsApi.deleteTags(uniqueIdentifier, [categoryId]);
21835
+ }));
21836
+ }
21837
+ getRecordFlag(uniqueIdentifier, flagName) {
21838
+ return combineLatest([
21839
+ this.getCategoryIdForFlag(flagName),
21840
+ this.gn4RecordsApi.getRecordTags(uniqueIdentifier),
21841
+ ]).pipe(map$1(([categoryId, tags]) => {
21842
+ if (categoryId === null)
21843
+ return false;
21844
+ return Array.from(tags).some((tag) => tag.id === categoryId);
21845
+ }));
21846
+ }
21634
21847
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: Gn4Repository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
21635
21848
  static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: Gn4Repository }); }
21636
21849
  }
@@ -22246,6 +22459,9 @@ class Gn4PlatformService {
22246
22459
  this.me$ = this.disableAuth
22247
22460
  ? of(null)
22248
22461
  : of(true).pipe(switchMap(() => this.meApi.getMe()), switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)), shareReplay$1({ bufferSize: 1, refCount: true }));
22462
+ this.isAdmin$ = this.disableAuth
22463
+ ? of(false)
22464
+ : of(true).pipe(switchMap(() => this.meApi.getMe()), map$1((apiUser) => !!apiUser?.admin), shareReplay$1({ bufferSize: 1, refCount: true }));
22249
22465
  /**
22250
22466
  * A map of already loaded thesauri (groups of keywords); the key is a URI
22251
22467
  * @private
@@ -22281,6 +22497,9 @@ class Gn4PlatformService {
22281
22497
  isAnonymous() {
22282
22498
  return this.isUserAnonymous$;
22283
22499
  }
22500
+ isAdministrator() {
22501
+ return this.isAdmin$;
22502
+ }
22284
22503
  getOrganizations() {
22285
22504
  return undefined;
22286
22505
  }
@@ -22587,48 +22806,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
22587
22806
  type: Injectable
22588
22807
  }] });
22589
22808
 
22590
- const GEOCODING_PROVIDER = new InjectionToken('geocoding-provider');
22591
- class GeocodingService {
22592
- constructor() {
22593
- this.provider = inject(GEOCODING_PROVIDER);
22594
- }
22595
- query(text) {
22596
- let queryObservable;
22597
- switch (this.provider[0]) {
22598
- case 'geoadmin':
22599
- queryObservable = from(queryGeoadmin(text, this.provider[1]));
22600
- break;
22601
- case 'geonames':
22602
- queryObservable = from(queryGeonames(text, this.provider[1]));
22603
- break;
22604
- case 'data-gouv-fr':
22605
- queryObservable = from(queryDataGouvFr(text, this.provider[1]));
22606
- break;
22607
- default:
22608
- return throwError(() => new Error(`Unsupported geocoding provider: ${this.provider[0]}`));
22609
- }
22610
- return queryObservable.pipe(catchError((error) => throwError(error)));
22611
- }
22612
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
22613
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, providedIn: 'root' }); }
22614
- }
22615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, decorators: [{
22616
- type: Injectable,
22617
- args: [{
22618
- providedIn: 'root',
22619
- }]
22620
- }] });
22621
-
22622
22809
  class FeatureMapModule {
22623
22810
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureMapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
22624
22811
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: FeatureMapModule, imports: [i1.StoreFeatureModule] }); }
22625
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureMapModule, providers: [
22626
- MapFacade,
22627
- {
22628
- provide: GEOCODING_PROVIDER,
22629
- useValue: ['geonames', { maxRows: 5 }],
22630
- },
22631
- ], imports: [StoreModule.forFeature(MAP_FEATURE_KEY, mapReducer)] }); }
22812
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureMapModule, providers: [MapFacade], imports: [StoreModule.forFeature(MAP_FEATURE_KEY, mapReducer)] }); }
22632
22813
  }
22633
22814
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureMapModule, decorators: [{
22634
22815
  type: NgModule,
@@ -22636,13 +22817,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
22636
22817
  imports: [
22637
22818
  StoreModule.forFeature(MAP_FEATURE_KEY, mapReducer),
22638
22819
  ],
22639
- providers: [
22640
- MapFacade,
22641
- {
22642
- provide: GEOCODING_PROVIDER,
22643
- useValue: ['geonames', { maxRows: 5 }],
22644
- },
22645
- ],
22820
+ providers: [MapFacade],
22646
22821
  }]
22647
22822
  }] });
22648
22823
 
@@ -22661,6 +22836,8 @@ const VECTOR_STYLE_DEFAULT = new InjectionToken('vectorStyleDefault', {
22661
22836
  const DEFAULT_BASEMAP_LAYER = {
22662
22837
  type: 'maplibre-style',
22663
22838
  styleUrl: `https://basemaps.cartocdn.com/gl/positron-gl-style/style.json`,
22839
+ clickable: false,
22840
+ hoverable: false,
22664
22841
  };
22665
22842
  const DEFAULT_VIEW = {
22666
22843
  center: [0, 15],
@@ -23083,714 +23260,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
23083
23260
  }]
23084
23261
  }] });
23085
23262
 
23086
- const flatten = (base, obj, keepLevel = false) => Object.keys(obj).reduce((prev, curr) => {
23087
- const path = base ? `${base}.${curr}` : curr;
23088
- const val = obj[curr];
23089
- if (keepLevel) {
23090
- return { ...prev, [path]: flatten('', val) };
23091
- }
23092
- else if (typeof val === 'object' && !Array.isArray(val)) {
23093
- return {
23094
- ...prev,
23095
- ...flatten(path, val),
23096
- };
23097
- }
23098
- else {
23099
- return { ...prev, [path]: val };
23100
- }
23101
- }, {});
23102
- const checkKeys = (input, mandatory, optional) => {
23103
- const keys = Object.keys(input);
23104
- const missing = mandatory.filter((key) => keys.indexOf(key) === -1);
23105
- const unrecognized = keys.filter((key) => mandatory.indexOf(key) === -1 && optional.indexOf(key) === -1);
23106
- return {
23107
- missing,
23108
- unrecognized,
23109
- };
23110
- };
23111
- /**
23112
- * Only keeps recognized keys, flatten nested values (to allow having "." in keys),
23113
- * pushes warnings and errors to the given arrays; returns null in case of error
23114
- */
23115
- function parseConfigSection(fullConfigObj, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors) {
23116
- if (typeof fullConfigObj[sectionName] !== 'object') {
23117
- if (mandatoryKeys.length === 0)
23118
- return null;
23119
- outErrors.push(`The [${sectionName}] mandatory section is missing.`);
23120
- return null;
23121
- }
23122
- const sectionConf = fullConfigObj[sectionName];
23123
- const keysCheck = checkKeys(sectionConf, mandatoryKeys, optionalKeys);
23124
- if (keysCheck.missing.length) {
23125
- // note: this is not thrown to allow merging several Errors down the line
23126
- outErrors.push(`In the [${sectionName}] section: ${keysCheck.missing.join(', ')}`);
23127
- return null;
23128
- }
23129
- else if (keysCheck.unrecognized.length) {
23130
- outWarnings.push(`In the [${sectionName}] section: ${keysCheck.unrecognized.join(', ')}`);
23131
- keysCheck.unrecognized.forEach((key) => delete sectionConf[key]);
23132
- }
23133
- return sectionConf;
23134
- }
23135
- /**
23136
- * Same as parseConfigSection but keeps all keys, recognized or not
23137
- * Also the first level is the language code (e.g. 'en')
23138
- * This is optional
23139
- */
23140
- function parseTranslationsConfigSection(fullConfigObj, sectionName) {
23141
- if (typeof fullConfigObj[sectionName] !== 'object') {
23142
- return {};
23143
- }
23144
- return flatten('', fullConfigObj[sectionName], true);
23145
- }
23146
- /**
23147
- * Same as parseConfigSection but handles an array of configs; this is
23148
- * considered optional; returns null in case of error in at least one of
23149
- * the sections
23150
- */
23151
- function parseMultiConfigSection(fullConfigObj, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors) {
23152
- const sections = fullConfigObj[sectionName];
23153
- if (!sections) {
23154
- return [];
23155
- }
23156
- if (!Array.isArray(sections)) {
23157
- outErrors.push(`Expected [[${sectionName}]] to be an array of sections.`);
23158
- return null;
23159
- }
23160
- const result = sections.map((section) => parseConfigSection({ [sectionName]: section }, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors));
23161
- if (result.some((r) => r === null)) {
23162
- return null;
23163
- }
23164
- return result;
23165
- }
23166
- function checkMetadataLanguage(parsedConfigSection, outWarnings) {
23167
- const lang2 = toLang2(parsedConfigSection.metadata_language.toLowerCase());
23168
- if (lang2?.length !== 2) {
23169
- outWarnings.push(`In the [global] section: metadata_language = "${parsedConfigSection.metadata_language}" is not a recognized ISO 639 language code`);
23170
- }
23171
- return parsedConfigSection;
23172
- }
23173
- function checkNewRecordDefaultLanguage(parsedConfigSection, outWarnings) {
23174
- const lang2 = toLang2(parsedConfigSection.new_record_default_language.toLowerCase());
23175
- if (!(lang2 in LANG_2_TO_3_MAPPER)) {
23176
- outWarnings.push(`In the [editing] section: new_record_default_language = "${parsedConfigSection.new_record_default_language}" is not a recognized ISO 639 language code`);
23177
- return {
23178
- ...parsedConfigSection,
23179
- new_record_default_language: undefined,
23180
- };
23181
- }
23182
- return {
23183
- ...parsedConfigSection,
23184
- new_record_default_language: lang2,
23185
- };
23186
- }
23187
- function checkNewRecordStandard(parsedConfigSection, outWarnings) {
23188
- const standard = parsedConfigSection.new_record_standard;
23189
- const normalizedStandard = typeof standard === 'string' ? standard.trim().toLowerCase() : null;
23190
- if (normalizedStandard === 'iso19139' ||
23191
- normalizedStandard === 'iso19115-3') {
23192
- return {
23193
- ...parsedConfigSection,
23194
- new_record_standard: normalizedStandard,
23195
- };
23196
- }
23197
- outWarnings.push(`In the [editing] section: new_record_standard = "${standard}" is not a supported metadata standard`);
23198
- return {
23199
- ...parsedConfigSection,
23200
- new_record_standard: undefined,
23201
- };
23202
- }
23203
-
23204
- /**
23205
- * This loader extends the default one based on JSON files but also loads custom translations
23206
- * defined in the app configuration
23207
- * Implements a fallback on default lang if translated labels are empty
23208
- */
23209
- class FileWithOverridesTranslateLoader extends FileTranslateLoader {
23210
- getTranslation(lang) {
23211
- const baseLang = lang.substring(0, 2); // removing the right part of e.g. en_EN
23212
- return super.getTranslation(baseLang).pipe(map$1((translations) => ({
23213
- ...translations,
23214
- ...getCustomTranslations(baseLang),
23215
- })));
23216
- }
23217
- }
23218
-
23219
- const MISSING_CONFIG_ERROR = `Application configuration was not initialized correctly.
23220
- This error might show up in case of an invalid/malformed configuration file.
23221
-
23222
- Note: make sure that you have called \`loadAppConfig\` from '../../../../../libs/util/app-config/src' before starting the Angular application.`;
23223
- let globalConfig = null;
23224
- function getGlobalConfig() {
23225
- if (globalConfig === null)
23226
- throw new Error(MISSING_CONFIG_ERROR);
23227
- return globalConfig;
23228
- }
23229
- let themeConfig = null;
23230
- function getThemeConfig() {
23231
- if (themeConfig === null)
23232
- throw new Error(MISSING_CONFIG_ERROR);
23233
- return themeConfig;
23234
- }
23235
- let mapConfig = null;
23236
- function getOptionalMapConfig() {
23237
- return mapConfig;
23238
- }
23239
- let searchConfig = null;
23240
- function getOptionalSearchConfig() {
23241
- return searchConfig;
23242
- }
23243
- let editorConfig = null;
23244
- function getOptionalEditorConfig() {
23245
- return editorConfig;
23246
- }
23247
- let metadataQualityConfig = null;
23248
- function getMetadataQualityConfig() {
23249
- return (metadataQualityConfig ||
23250
- {
23251
- ENABLED: false,
23252
- });
23253
- }
23254
- let customTranslations = null;
23255
- function getCustomTranslations(langCode) {
23256
- if (customTranslations === null)
23257
- throw new Error(MISSING_CONFIG_ERROR);
23258
- return langCode in customTranslations ? customTranslations[langCode] : {};
23259
- }
23260
- let appConfigLoaded = false;
23261
- function loadAppConfig(configUrl = 'assets/configuration/default.toml') {
23262
- console.log(`[geonetwork-ui] Loading application configuration from ${configUrl}`);
23263
- return fetch(configUrl)
23264
- .then((resp) => {
23265
- if (!resp.ok)
23266
- throw new Error('Configuration file could not be loaded');
23267
- return resp.text();
23268
- })
23269
- .then((conf) => {
23270
- let parsed;
23271
- try {
23272
- parsed = TOML.parse(conf, { joiner: '\n', bigint: false });
23273
- }
23274
- catch (e) {
23275
- throw new Error(`An error occurred when parsing the configuration file: ${e.message}`);
23276
- }
23277
- const errors = [];
23278
- const warnings = [];
23279
- let parsedGlobalSection = parseConfigSection(parsed, 'global', ['geonetwork4_api_url'], [
23280
- 'datahub_url',
23281
- 'edit_url_template',
23282
- 'proxy_path',
23283
- 'metadata_language',
23284
- 'login_url',
23285
- 'logout_url',
23286
- 'settings_url',
23287
- 'web_component_embedder_url',
23288
- 'languages',
23289
- 'contact_email',
23290
- 'reuse_form_url',
23291
- ], warnings, errors);
23292
- if (parsedGlobalSection?.metadata_language) {
23293
- parsedGlobalSection = checkMetadataLanguage(parsedGlobalSection, warnings);
23294
- }
23295
- globalConfig =
23296
- parsedGlobalSection === null
23297
- ? null
23298
- : {
23299
- GN4_API_URL: parsedGlobalSection.geonetwork4_api_url,
23300
- DATAHUB_URL: parsedGlobalSection.datahub_url,
23301
- EDIT_URL_TEMPLATE: parsedGlobalSection.edit_url_template,
23302
- PROXY_PATH: parsedGlobalSection.proxy_path,
23303
- METADATA_LANGUAGE: parsedGlobalSection.metadata_language
23304
- ? parsedGlobalSection.metadata_language.toLowerCase()
23305
- : undefined,
23306
- LOGIN_URL: parsedGlobalSection.login_url,
23307
- LOGOUT_URL: parsedGlobalSection.logout_url,
23308
- SETTINGS_URL: parsedGlobalSection.settings_url,
23309
- WEB_COMPONENT_EMBEDDER_URL: parsedGlobalSection.web_component_embedder_url,
23310
- LANGUAGES: parsedGlobalSection.languages,
23311
- CONTACT_EMAIL: parsedGlobalSection.contact_email,
23312
- REUSE_FORM_URL: parsedGlobalSection.reuse_form_url,
23313
- };
23314
- const parsedLayersSections = parseMultiConfigSection(parsed, 'map_layer', ['type'], ['name', 'url', 'data', 'styleUrl', 'accessToken'], warnings, errors);
23315
- const parsedMapSection = parseConfigSection(parsed, 'map', [], [
23316
- 'max_zoom',
23317
- 'do_not_tile_wms',
23318
- 'max_extent',
23319
- 'max_feature_count',
23320
- 'baselayer',
23321
- 'do_not_use_default_basemap',
23322
- 'external_viewer_url_template',
23323
- 'external_viewer_open_new_tab',
23324
- ], warnings, errors);
23325
- mapConfig =
23326
- parsedMapSection === null || parsedLayersSections === null
23327
- ? null
23328
- : {
23329
- MAX_ZOOM: parsedMapSection.max_zoom,
23330
- DO_NOT_TILE_WMS: parsedMapSection.do_not_tile_wms,
23331
- MAX_EXTENT: parsedMapSection.max_extent,
23332
- MAX_FEATURE_COUNT: parsedMapSection.max_feature_count,
23333
- EXTERNAL_VIEWER_URL_TEMPLATE: parsedMapSection.external_viewer_url_template,
23334
- EXTERNAL_VIEWER_OPEN_NEW_TAB: parsedMapSection.external_viewer_open_new_tab,
23335
- DO_NOT_USE_DEFAULT_BASEMAP: !!parsedMapSection.do_not_use_default_basemap,
23336
- MAP_LAYERS: parsedLayersSections.map((map_layer) => ({
23337
- TYPE: map_layer.type,
23338
- URL: map_layer.url,
23339
- NAME: map_layer.name,
23340
- DATA: map_layer.data,
23341
- STYLE_URL: map_layer.styleUrl,
23342
- ACCESS_TOKEN: map_layer.accessToken,
23343
- })),
23344
- };
23345
- const parsedThemeSection = parseConfigSection(parsed, 'theme', ['primary_color', 'secondary_color', 'main_color', 'background_color'], [
23346
- 'header_foreground_color',
23347
- 'main_font',
23348
- 'title_font',
23349
- 'fonts_stylesheet_url',
23350
- 'thumbnail_placeholder',
23351
- 'header_background',
23352
- 'favicon',
23353
- ], warnings, errors);
23354
- themeConfig =
23355
- parsedThemeSection === null
23356
- ? null
23357
- : {
23358
- PRIMARY_COLOR: parsedThemeSection.primary_color,
23359
- SECONDARY_COLOR: parsedThemeSection.secondary_color,
23360
- MAIN_COLOR: parsedThemeSection.main_color,
23361
- BACKGROUND_COLOR: parsedThemeSection.background_color,
23362
- HEADER_FOREGROUND_COLOR: parsedThemeSection.header_foreground_color,
23363
- THUMBNAIL_PLACEHOLDER: parsedThemeSection.thumbnail_placeholder,
23364
- HEADER_BACKGROUND: parsedThemeSection.header_background,
23365
- TITLE_FONT: parsedThemeSection.title_font,
23366
- MAIN_FONT: parsedThemeSection.main_font,
23367
- FONTS_STYLESHEET_URL: parsedThemeSection.fonts_stylesheet_url,
23368
- FAVICON: parsedThemeSection.favicon,
23369
- };
23370
- const parsedSearchSection = parseConfigSection(parsed, 'search', [], [
23371
- 'record_kind_quick_filter',
23372
- 'filter_geometry_data',
23373
- 'filter_geometry_url',
23374
- 'do_not_use_default_search_preset',
23375
- 'search_preset',
23376
- 'advanced_filters',
23377
- 'limit',
23378
- 'spatial_extent_max_file_size',
23379
- ], warnings, errors);
23380
- const parsedSearchParams = parseMultiConfigSection(parsed, 'search_preset', ['name'], ['sort', 'filters'], warnings, errors);
23381
- searchConfig =
23382
- parsedSearchSection === null
23383
- ? null
23384
- : {
23385
- RECORD_KIND_QUICK_FILTER: parsedSearchSection.record_kind_quick_filter,
23386
- FILTER_GEOMETRY_DATA: parsedSearchSection.filter_geometry_data,
23387
- FILTER_GEOMETRY_URL: parsedSearchSection.filter_geometry_url,
23388
- DO_NOT_USE_DEFAULT_SEARCH_PRESET: !!parsedSearchSection.do_not_use_default_search_preset,
23389
- SEARCH_PRESET: parsedSearchParams.map((param) => ({
23390
- sort: param.sort,
23391
- name: param.name,
23392
- filters: param.filters,
23393
- })),
23394
- ADVANCED_FILTERS: parsedSearchSection.advanced_filters,
23395
- LIMIT: parsedSearchSection.limit,
23396
- SPATIAL_EXTENT_MAX_FILE_SIZE: parsedSearchSection.spatial_extent_max_file_size,
23397
- };
23398
- const parsedMetadataQualitySection = parseConfigSection(parsed, 'metadata-quality', [], ['enabled'], warnings, errors);
23399
- metadataQualityConfig =
23400
- parsedMetadataQualitySection === null
23401
- ? null
23402
- : {
23403
- ENABLED: parsedMetadataQualitySection.enabled,
23404
- SORTABLE: parsedMetadataQualitySection.sortable,
23405
- };
23406
- let parsedEditingSection = parseConfigSection(parsed, 'editing', [], ['new_record_default_language', 'new_record_standard'], warnings, errors);
23407
- if (parsedEditingSection !== null &&
23408
- parsedEditingSection.new_record_default_language !== undefined) {
23409
- parsedEditingSection = checkNewRecordDefaultLanguage(parsedEditingSection, warnings);
23410
- }
23411
- if (parsedEditingSection !== null &&
23412
- parsedEditingSection.new_record_standard !== undefined) {
23413
- parsedEditingSection = checkNewRecordStandard(parsedEditingSection, warnings);
23414
- }
23415
- editorConfig =
23416
- parsedEditingSection === null
23417
- ? null
23418
- : {
23419
- NEW_RECORD_DEFAULT_LANGUAGE: parsedEditingSection.new_record_default_language,
23420
- NEW_RECORD_STANDARD: parsedEditingSection.new_record_standard,
23421
- };
23422
- customTranslations = parseTranslationsConfigSection(parsed, 'translations');
23423
- if (errors.length) {
23424
- throw new Error(`One or more mandatory settings were missing from the configuration file.
23425
- ${errors.join('\n')}`);
23426
- }
23427
- else if (warnings.length) {
23428
- console.warn(`One or more unexpected settings were encountered in the configuration file.
23429
- ${warnings.join('\n')}`);
23430
- }
23431
- appConfigLoaded = true;
23432
- });
23433
- }
23434
- function isConfigLoaded() {
23435
- return appConfigLoaded;
23436
- }
23437
- function _reset() {
23438
- globalConfig = null;
23439
- themeConfig = null;
23440
- editorConfig = null;
23441
- customTranslations = null;
23442
- }
23443
- const TRANSLATE_WITH_OVERRIDES_CONFIG = {
23444
- compiler: {
23445
- provide: TranslateCompiler,
23446
- useClass: TranslateMessageFormatCompiler,
23447
- },
23448
- loader: [
23449
- {
23450
- provide: TRANSLATE_HTTP_LOADER_CONFIG,
23451
- useValue: {
23452
- prefix: './assets/i18n/',
23453
- suffix: '.json',
23454
- },
23455
- },
23456
- {
23457
- provide: TranslateLoader,
23458
- useClass: FileWithOverridesTranslateLoader,
23459
- deps: [HttpClient, TRANSLATE_HTTP_LOADER_CONFIG],
23460
- },
23461
- ],
23462
- };
23463
-
23464
- const okAppConfigFixture = () => `
23465
- [global]
23466
- geonetwork4_api_url = "/geonetwork/srv/api"
23467
- proxy_path = "/proxy/?url="
23468
- metadata_language = "fre"
23469
- login_url = "/cas/login?service="
23470
- logout_url = "/geonetwork/signout"
23471
- settings_url = "/geonetwork/settings"
23472
- web_component_embedder_url = "/datahub/wc-embedder.html"
23473
-
23474
- [map]
23475
- max_zoom = 10
23476
- max_extent = [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855]
23477
- do_not_use_default_basemap = false
23478
- external_viewer_url_template = 'https://example.com/myviewer?'
23479
- external_viewer_open_new_tab = true
23480
- [[map_layer]]
23481
- type = "wms"
23482
- url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
23483
- name = "masque_hdf_ign_carto_latin1"
23484
- [[map_layer]]
23485
- type = "wfs"
23486
- url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
23487
- name = "masque_hdf_ign_carto_latin1"
23488
-
23489
- [theme]
23490
- primary_color = "#093564"
23491
- secondary_color = "#c2e9dc"
23492
- main_color = "#212029" # All-purpose text color
23493
- background_color = "#fdfbff"
23494
- thumbnail_placeholder = 'assets/img/placeholder.svg'
23495
- header_background = 'teal'
23496
- header_foreground_color = "#872e2e"
23497
- main_font = 'sans-serif'
23498
- title_font = 'serif'
23499
- fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Open+Sans"
23500
-
23501
- [search]
23502
- record_kind_quick_filter = false
23503
- filter_geometry_url = 'https://my.domain.org/geom.json'
23504
- do_not_use_default_search_preset = false
23505
- advanced_filters = ['publicationYear', 'documentStandard', 'inspireKeyword', 'topic', 'license']
23506
-
23507
- [[search_preset]]
23508
- sort = "-createDate"
23509
- name = 'filterByOrgs'
23510
- filters.q = 'Carto'
23511
- filters.organisation = ['Org1', 'Org2']
23512
- filters.format = ['ESRI Shapefile']
23513
- filters.topic = ['boundaries']
23514
- filters.publicationYear = ['2023', '2022']
23515
- filters.spatial = ['yes']
23516
-
23517
- [translations.en]
23518
- "my.first.key" = 'First label.'
23519
- "my.second.key" = """
23520
- Second label,
23521
- on two lines."""
23522
-
23523
- [translations.de]
23524
- my.first.key = 'Erste Etikett.'
23525
-
23526
- [translations.fr]
23527
- my.sample.text = "Un bon exemple de texte."
23528
- "my.quoted.text" = 'du texte entre guillements.'
23529
- `;
23530
- const appConfigWithTranslationFixture = () => okAppConfigFixture();
23531
- const minimalAppConfigFixture = () => `
23532
- [global]
23533
- geonetwork4_api_url = "/geonetwork/srv/api"
23534
- proxy_path = "/proxy/?url="
23535
-
23536
- [theme]
23537
- primary_color = "#093564"
23538
- secondary_color = "#c2e9dc"
23539
- main_color = "#212029" # All-purpose text color
23540
- background_color = "#fdfbff"
23541
- `;
23542
- const mapConfigFixture = () => ({
23543
- MAX_ZOOM: 10,
23544
- MAX_EXTENT: [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855],
23545
- DO_NOT_USE_DEFAULT_BASEMAP: false,
23546
- DO_NOT_TILE_WMS: false,
23547
- EXTERNAL_VIEWER_URL_TEMPLATE: 'https://example.com/myviewer/#/?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["${layer_name}"],"sources":[{"url":"${service_url}","type":"${service_type}"}]}]',
23548
- EXTERNAL_VIEWER_OPEN_NEW_TAB: true,
23549
- MAP_LAYERS: [
23550
- {
23551
- TYPE: 'xyz',
23552
- URL: 'https://some-basemap-server',
23553
- },
23554
- {
23555
- TYPE: 'wms',
23556
- URL: 'https://some-wms-server',
23557
- NAME: 'some_layername',
23558
- },
23559
- {
23560
- TYPE: 'wfs',
23561
- URL: 'https://some-wfs-server',
23562
- NAME: 'some_layername',
23563
- },
23564
- ],
23565
- });
23566
- const malformedConfigFixture = () => `
23567
- {
23568
- "I thought": "we were still doing json"
23569
- }
23570
- `;
23571
- const missingMandatoryConfigFixture = () => `
23572
- [theme]
23573
- primary_color = "#093564"
23574
- secondary_color = "#c2e9dc"
23575
- background_color = "#fdfbff"
23576
- main_font = 'sans-serif'
23577
- `;
23578
- const wrongLanguageCodeConfigFixture = () => `
23579
- [global]
23580
- geonetwork4_api_url = "/geonetwork/srv/api"
23581
- proxy_path = "/proxy/?url="
23582
- metadata_language = "abc"
23583
-
23584
- [map]
23585
-
23586
- [theme]
23587
- primary_color = "#093564"
23588
- secondary_color = "#c2e9dc"
23589
- main_color = "#212029" # All-purpose text color
23590
- background_color = "#fdfbff"
23591
- `;
23592
- const unrecognizedKeysConfigFixture = () => `
23593
- [global]
23594
- geonetwork4_api_url = "/geonetwork/srv/api"
23595
- proxy_path = "/proxy/?url="
23596
- metadata_language = "fre"
23597
- another_path = '/whatever'
23598
-
23599
- [map]
23600
- max_zoom = 10
23601
- max_extent = [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855]
23602
- do_not_use_default_basemap = false
23603
- external_viewer_url_template = 'https://example.com/myviewer?'
23604
- external_viewer_open_new_tab = true
23605
- another_zoom = 15
23606
- [[map_layer]]
23607
- type = "wms"
23608
- url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
23609
- name = "masque_hdf_ign_carto_latin1"
23610
- [[map_layer]]
23611
- type = "wfs"
23612
- url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
23613
- name = "masque_hdf_ign_carto_latin1"
23614
- another_layer = "wrong layer definition"
23615
-
23616
- [theme]
23617
- primary_color = "#093564"
23618
- secondary_color = "#c2e9dc"
23619
- main_color = "#212029" # All-purpose text color
23620
- background_color = "#fdfbff"
23621
- thumbnail_placeholder = 'assets/img/placeholder.svg'
23622
- header_background = 'teal'
23623
- header_foreground_color = "#872e2e"
23624
- main_font = 'sans-serif'
23625
- title_font = 'serif'
23626
- another_color = 'red'
23627
- `;
23628
-
23629
- function getMapContextLayerFromConfig(config) {
23630
- switch (config.TYPE) {
23631
- case 'wms':
23632
- return {
23633
- type: 'wms',
23634
- url: config.URL,
23635
- name: config.NAME,
23636
- };
23637
- case 'wfs':
23638
- return {
23639
- type: 'wfs',
23640
- url: config.URL,
23641
- featureType: config.NAME,
23642
- };
23643
- case 'xyz':
23644
- return {
23645
- type: config.TYPE,
23646
- url: config.URL,
23647
- };
23648
- case 'geojson':
23649
- return {
23650
- type: config.TYPE,
23651
- ...(config.DATA ? { data: config.DATA } : { url: config.URL }),
23652
- };
23653
- case 'maplibre-style':
23654
- return {
23655
- type: config.TYPE,
23656
- styleUrl: config.STYLE_URL,
23657
- accessToken: config.ACCESS_TOKEN,
23658
- };
23659
- }
23660
- }
23661
-
23662
- class MapStyleService {
23663
- constructor() {
23664
- this.styles = {
23665
- default: this.createStyleFunction(this.createGeometryStyles({
23666
- color: isConfigLoaded() ? getThemeConfig().PRIMARY_COLOR : 'blue',
23667
- })),
23668
- defaultHL: this.createStyleFunction(this.createGeometryStyles({
23669
- color: isConfigLoaded() ? getThemeConfig().SECONDARY_COLOR : 'red',
23670
- isFocused: true,
23671
- })),
23672
- };
23673
- }
23674
- createGeometryStyles(options) {
23675
- const { color, isFocused } = options;
23676
- const zIndex = isFocused ? 10 : undefined;
23677
- return {
23678
- polygon: new Style({
23679
- fill: new Fill({
23680
- color: this.computeTransparentFillColor(color),
23681
- }),
23682
- stroke: new Stroke({
23683
- color: 'white',
23684
- width: 2,
23685
- }),
23686
- zIndex,
23687
- }),
23688
- point: new Style({
23689
- image: new CircleStyle({
23690
- fill: new Fill({
23691
- color,
23692
- }),
23693
- stroke: new Stroke({
23694
- color: 'white',
23695
- width: isFocused ? 3 : 2,
23696
- }),
23697
- radius: isFocused ? 8 : 7,
23698
- }),
23699
- zIndex,
23700
- }),
23701
- line: [
23702
- new Style({
23703
- stroke: new Stroke({
23704
- color: 'white',
23705
- width: isFocused ? 8 : 6,
23706
- }),
23707
- zIndex,
23708
- }),
23709
- new Style({
23710
- stroke: new Stroke({
23711
- color,
23712
- width: isFocused ? 3 : 2,
23713
- }),
23714
- zIndex,
23715
- }),
23716
- ],
23717
- };
23718
- }
23719
- createStyleFunction(styleByGeometryType) {
23720
- return (feature) => {
23721
- const geometryType = feature?.getGeometry()?.getType();
23722
- switch (geometryType) {
23723
- case 'LinearRing':
23724
- case 'LineString':
23725
- case 'MultiLineString':
23726
- return styleByGeometryType.line;
23727
- case 'Point':
23728
- case 'MultiPoint':
23729
- return styleByGeometryType.point;
23730
- case 'Circle':
23731
- case 'Polygon':
23732
- case 'MultiPolygon':
23733
- return styleByGeometryType.polygon;
23734
- default:
23735
- return styleByGeometryType.point;
23736
- }
23737
- };
23738
- }
23739
- computeTransparentFillColor(color, alpha = 0.25) {
23740
- return chroma(color).alpha(alpha).css();
23741
- }
23742
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MapStyleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
23743
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MapStyleService, providedIn: 'root' }); }
23744
- }
23745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: MapStyleService, decorators: [{
23746
- type: Injectable,
23747
- args: [{
23748
- providedIn: 'root',
23749
- }]
23750
- }] });
23751
-
23752
- const colorPrimary = 'blue';
23753
- const colorSecondary = 'red';
23754
- const colorStroke = 'white';
23755
- const defaultMapStyleFixture = () => new Style({
23756
- image: new Circle({
23757
- fill: new Fill({
23758
- color: colorPrimary,
23759
- }),
23760
- stroke: new Stroke({
23761
- color: colorStroke,
23762
- width: 2,
23763
- }),
23764
- radius: 5,
23765
- }),
23766
- fill: new Fill({
23767
- color: 'rgba(0,0,255,0.25)',
23768
- }),
23769
- stroke: new Stroke({
23770
- color: colorStroke,
23771
- width: 2,
23772
- }),
23773
- });
23774
- const defaultMapStyleHlFixture = () => new Style({
23775
- image: new Circle({
23776
- fill: new Fill({
23777
- color: colorSecondary,
23778
- }),
23779
- stroke: new Stroke({
23780
- color: colorStroke,
23781
- width: 3,
23782
- }),
23783
- radius: 6,
23784
- }),
23785
- fill: new Fill({
23786
- color: 'rgba(255,0,0,0.25)',
23787
- }),
23788
- stroke: new Stroke({
23789
- color: colorSecondary,
23790
- width: 3,
23791
- }),
23792
- });
23793
-
23794
23263
  class AnchorLinkDirective {
23795
23264
  constructor() {
23796
23265
  this.changeDetector = inject(ChangeDetectorRef);
@@ -24307,15 +23776,15 @@ class AutocompleteComponent {
24307
23776
  getExtraClass() {
24308
23777
  if (this.allowSubmit) {
24309
23778
  if (this.enterButton) {
24310
- return 'border rounded-lg absolute w-8 h-8 right-[calc(var(--icon-width)+var(--icon-padding))] inset-y-[--icon-padding]';
23779
+ return 'border rounded-lg absolute w-8 h-8 right-[calc(var(--icon-width)+var(--icon-padding))] top-1/2 -translate-y-1/2';
24311
23780
  }
24312
23781
  else {
24313
- return 'border rounded-lg absolute w-8 h-8 right-[calc(var(--icon-width)+0.25*var(--icon-width))] inset-y-[calc(0.25*var(--icon-width))]';
23782
+ return 'border rounded-lg absolute w-8 h-8 right-[calc(var(--icon-width)+0.25*var(--icon-width))] top-1/2 -translate-y-1/2';
24314
23783
  }
24315
23784
  }
24316
23785
  else {
24317
23786
  if (!this.enterButton) {
24318
- return 'border rounded-lg absolute w-8 h-8 right-2 inset-y-2';
23787
+ return 'border rounded-lg absolute w-8 h-8 right-2 top-1/2 -translate-y-1/2';
24319
23788
  }
24320
23789
  }
24321
23790
  return 'border rounded-lg absolute w-8 h-8';
@@ -24451,7 +23920,7 @@ class AutocompleteComponent {
24451
23920
  this.enterBtnPosition = event.target['value'].length * 8 + 80;
24452
23921
  }
24453
23922
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: AutocompleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
24454
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: AutocompleteComponent, isStandalone: true, selector: "gn-ui-autocomplete", inputs: { placeholder: "placeholder", enterButton: "enterButton", action: "action", value: "value", clearOnSelection: "clearOnSelection", preventCompleteOnSelection: "preventCompleteOnSelection", autoFocus: "autoFocus", minCharacterCount: "minCharacterCount", allowSubmit: "allowSubmit", forceTrackPosition: "forceTrackPosition", displayWithFn: "displayWithFn" }, outputs: { itemSelected: "itemSelected", inputSubmitted: "inputSubmitted", inputCleared: "inputCleared", isSearchActive: "isSearchActive" }, providers: [
23923
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: AutocompleteComponent, isStandalone: true, selector: "gn-ui-autocomplete", inputs: { placeholder: "placeholder", enterButton: "enterButton", action: "action", value: "value", clearOnSelection: "clearOnSelection", preventCompleteOnSelection: "preventCompleteOnSelection", autoFocus: "autoFocus", minCharacterCount: "minCharacterCount", allowSubmit: "allowSubmit", forceTrackPosition: "forceTrackPosition", displayWithTemplate: "displayWithTemplate", displayWithFn: "displayWithFn" }, outputs: { itemSelected: "itemSelected", inputSubmitted: "inputSubmitted", inputCleared: "inputCleared", isSearchActive: "isSearchActive" }, providers: [
24455
23924
  provideIcons({
24456
23925
  iconoirSearch,
24457
23926
  matClose,
@@ -24460,7 +23929,7 @@ class AutocompleteComponent {
24460
23929
  provideNgIconsConfig({
24461
23930
  size: '1.75rem',
24462
23931
  }),
24463
- ], viewQueries: [{ propertyName: "triggerRef", first: true, predicate: MatAutocompleteTrigger, descendants: true }, { propertyName: "autocomplete", first: true, predicate: MatAutocomplete, descendants: true }, { propertyName: "inputRef", first: true, predicate: ["searchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<span class=\"w-full inline-block relative\">\n @if (!allowSubmit) {\n <div\n class=\"absolute inset-y-[--icon-padding] left-[--icon-padding] w-[--icon-width] pointer-events-none\"\n >\n <ng-icon name=\"iconoirSearch\" class=\"text-primary search\"></ng-icon>\n </div>\n }\n <div class=\"flex flex-row\">\n <input\n #searchInput\n type=\"text\"\n class=\"gn-ui-text-input\"\n (input)=\"handleInput($event)\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [matAutocomplete]=\"auto\"\n (keyup.enter)=\"handleSearch()\"\n [ngClass]=\"{\n 'text-primary': searchActive && enterButton,\n 'text-gray-900': !searchActive,\n 'px-[--icon-width]': !allowSubmit,\n }\"\n />\n @if (searchInput.value && displayEnterBtn) {\n <gn-ui-button\n type=\"gray\"\n extraClass=\"w-32 h-8 !opacity-100\"\n [ngStyle]=\"{ left: enterBtnPosition + 'px' }\"\n class=\"absolute\"\n disabled=\"true\"\n >\n <ng-icon\n name=\"iconoirLongArrowDownLeft\"\n class=\"!w-4 text-gray-900 font-bold\"\n ></ng-icon>\n <span translate class=\"text-bold text-gray-900 font-bold\">\n Enter to search\n </span>\n </gn-ui-button>\n }\n </div>\n @if (searchInput.value) {\n <gn-ui-button\n type=\"primary\"\n [extraClass]=\"getExtraClass()\"\n data-test=\"clear-btn\"\n aria-label=\"Clear\"\n (buttonClick)=\"clear()\"\n >\n <ng-icon class=\"text-white\" name=\"matClose\"></ng-icon>\n </gn-ui-button>\n }\n @if (allowSubmit) {\n <gn-ui-button\n type=\"light\"\n extraClass=\"border-0 border-l-[1px] border-gray-300 hover:border-gray-500 text-primary hover:text-primary-darkest focus:text-primary-darkest absolute inset-y-[--icon-padding] right-[--icon-padding]\"\n aria-label=\"Trigger search\"\n data-test=\"autocomplete-submit-btn\"\n (buttonClick)=\"handleSearch()\"\n >\n <ng-icon name=\"iconoirSearch\"></ng-icon>\n </gn-ui-button>\n }\n\n @if (error) {\n <gn-ui-popup-alert\n class=\"absolute mt-2 w-full top-[100%] left-0\"\n icon=\"matErrorOutlineOutline\"\n position=\"top\"\n type=\"warning\"\n >\n <span translate>search.autocomplete.error</span>\n {{ error }}\n </gn-ui-popup-alert>\n }\n</span>\n\n<mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"handleSelection($event)\"\n [displayWith]=\"displayWithFnInternal\"\n>\n @for (suggestion of suggestions$ | async; track suggestion) {\n <mat-option [value]=\"suggestion\" class=\"p-2 suggestion text-start\">\n {{ displayWithFnInternal(suggestion) }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: ["span{--icon-padding: var(--gn-ui-text-input-border-size, 2px);--icon-width: calc(var(--gn-ui-text-input-padding, .6em) * 2 + 1.25em)}span>*:not(gn-ui-popup-alert){font-size:var(--gn-ui-text-input-font-size, 1em)}input:placeholder-shown{text-overflow:ellipsis}gn-ui-button{--gn-ui-button-rounded: 0;--gn-ui-button-width: var(--icon-width);--gn-ui-button-padding: 0;font-size:1em}ng-icon.search{margin-top:.6rem;margin-left:.6rem}gn-ui-button:last-of-type{--gn-ui-button-rounded: 0 var(--gn-ui-text-input-rounded, .25em) var(--gn-ui-text-input-rounded, .25em) 0}.mat-mdc-option.suggestion.mat-mdc-option-active{background-color:var(--color-primary-lightest)}\n"], dependencies: [{ kind: "component", type: PopupAlertComponent, selector: "gn-ui-popup-alert", inputs: ["icon", "type", "position"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i1$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i1$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i1$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
23932
+ ], viewQueries: [{ propertyName: "triggerRef", first: true, predicate: MatAutocompleteTrigger, descendants: true }, { propertyName: "autocomplete", first: true, predicate: MatAutocomplete, descendants: true }, { propertyName: "inputRef", first: true, predicate: ["searchInput"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<span class=\"w-full inline-block relative\">\n @if (!allowSubmit) {\n <div\n class=\"absolute inset-y-[--icon-padding] left-[--icon-padding] w-[--icon-width] pointer-events-none flex items-center justify-center\"\n >\n <ng-icon name=\"iconoirSearch\" class=\"text-primary\"></ng-icon>\n </div>\n }\n <div class=\"flex flex-row\">\n <input\n #searchInput\n type=\"text\"\n class=\"gn-ui-text-input\"\n (input)=\"handleInput($event)\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [matAutocomplete]=\"auto\"\n (keyup.enter)=\"handleSearch()\"\n [ngClass]=\"{\n 'text-primary': searchActive && enterButton,\n 'text-gray-900': !searchActive,\n 'px-[--icon-width]': !allowSubmit,\n }\"\n />\n @if (searchInput.value && displayEnterBtn) {\n <gn-ui-button\n type=\"gray\"\n extraClass=\"w-32 h-8 !opacity-100\"\n [ngStyle]=\"{ left: enterBtnPosition + 'px' }\"\n class=\"absolute\"\n disabled=\"true\"\n >\n <ng-icon\n name=\"iconoirLongArrowDownLeft\"\n class=\"!w-4 text-gray-900 font-bold\"\n ></ng-icon>\n <span translate class=\"text-bold text-gray-900 font-bold\">\n Enter to search\n </span>\n </gn-ui-button>\n }\n </div>\n @if (searchInput.value) {\n <gn-ui-button\n type=\"primary\"\n [extraClass]=\"getExtraClass()\"\n data-test=\"clear-btn\"\n aria-label=\"Clear\"\n (buttonClick)=\"clear()\"\n >\n <ng-icon class=\"text-white\" name=\"matClose\"></ng-icon>\n </gn-ui-button>\n }\n @if (allowSubmit) {\n <gn-ui-button\n type=\"light\"\n extraClass=\"border-0 border-l-[1px] border-gray-300 hover:border-gray-500 text-primary hover:text-primary-darkest focus:text-primary-darkest absolute inset-y-[--icon-padding] right-[--icon-padding]\"\n aria-label=\"Trigger search\"\n data-test=\"autocomplete-submit-btn\"\n (buttonClick)=\"handleSearch()\"\n >\n <ng-icon name=\"iconoirSearch\"></ng-icon>\n </gn-ui-button>\n }\n\n @if (error) {\n <gn-ui-popup-alert\n class=\"absolute mt-2 w-full top-[100%] left-0\"\n icon=\"matErrorOutlineOutline\"\n position=\"top\"\n type=\"warning\"\n >\n <span translate>search.autocomplete.error</span>\n {{ error }}\n </gn-ui-popup-alert>\n }\n</span>\n\n<mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"handleSelection($event)\"\n [displayWith]=\"displayWithFnInternal\"\n>\n @for (suggestion of suggestions$ | async; track suggestion) {\n <mat-option [value]=\"suggestion\" class=\"p-2 suggestion text-start\">\n @if (displayWithTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n displayWithTemplate;\n context: { $implicit: suggestion }\n \"\n ></ng-container>\n } @else {\n {{ displayWithFnInternal(suggestion) }}\n }\n </mat-option>\n }\n</mat-autocomplete>\n", styles: ["span{--icon-padding: var(--gn-ui-text-input-border-size, 2px);--icon-width: calc(var(--gn-ui-text-input-padding, .6em) * 2 + 1.25em)}span>*:not(gn-ui-popup-alert){font-size:var(--gn-ui-text-input-font-size, 1em)}input:placeholder-shown{text-overflow:ellipsis}gn-ui-button{--gn-ui-button-rounded: 0;--gn-ui-button-width: var(--icon-width);--gn-ui-button-padding: 0;font-size:1em}gn-ui-button:last-of-type{--gn-ui-button-rounded: 0 var(--gn-ui-text-input-rounded, .25em) var(--gn-ui-text-input-rounded, .25em) 0}.mat-mdc-option.suggestion.mat-mdc-option-active{background-color:var(--color-primary-lightest)}\n"], dependencies: [{ kind: "component", type: PopupAlertComponent, selector: "gn-ui-popup-alert", inputs: ["icon", "type", "position"] }, { kind: "ngmodule", type: MatAutocompleteModule }, { kind: "component", type: i1$2.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "component", type: i1$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i1$2.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24464
23933
  }
24465
23934
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: AutocompleteComponent, decorators: [{
24466
23935
  type: Component,
@@ -24481,7 +23950,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
24481
23950
  provideNgIconsConfig({
24482
23951
  size: '1.75rem',
24483
23952
  }),
24484
- ], template: "<span class=\"w-full inline-block relative\">\n @if (!allowSubmit) {\n <div\n class=\"absolute inset-y-[--icon-padding] left-[--icon-padding] w-[--icon-width] pointer-events-none\"\n >\n <ng-icon name=\"iconoirSearch\" class=\"text-primary search\"></ng-icon>\n </div>\n }\n <div class=\"flex flex-row\">\n <input\n #searchInput\n type=\"text\"\n class=\"gn-ui-text-input\"\n (input)=\"handleInput($event)\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [matAutocomplete]=\"auto\"\n (keyup.enter)=\"handleSearch()\"\n [ngClass]=\"{\n 'text-primary': searchActive && enterButton,\n 'text-gray-900': !searchActive,\n 'px-[--icon-width]': !allowSubmit,\n }\"\n />\n @if (searchInput.value && displayEnterBtn) {\n <gn-ui-button\n type=\"gray\"\n extraClass=\"w-32 h-8 !opacity-100\"\n [ngStyle]=\"{ left: enterBtnPosition + 'px' }\"\n class=\"absolute\"\n disabled=\"true\"\n >\n <ng-icon\n name=\"iconoirLongArrowDownLeft\"\n class=\"!w-4 text-gray-900 font-bold\"\n ></ng-icon>\n <span translate class=\"text-bold text-gray-900 font-bold\">\n Enter to search\n </span>\n </gn-ui-button>\n }\n </div>\n @if (searchInput.value) {\n <gn-ui-button\n type=\"primary\"\n [extraClass]=\"getExtraClass()\"\n data-test=\"clear-btn\"\n aria-label=\"Clear\"\n (buttonClick)=\"clear()\"\n >\n <ng-icon class=\"text-white\" name=\"matClose\"></ng-icon>\n </gn-ui-button>\n }\n @if (allowSubmit) {\n <gn-ui-button\n type=\"light\"\n extraClass=\"border-0 border-l-[1px] border-gray-300 hover:border-gray-500 text-primary hover:text-primary-darkest focus:text-primary-darkest absolute inset-y-[--icon-padding] right-[--icon-padding]\"\n aria-label=\"Trigger search\"\n data-test=\"autocomplete-submit-btn\"\n (buttonClick)=\"handleSearch()\"\n >\n <ng-icon name=\"iconoirSearch\"></ng-icon>\n </gn-ui-button>\n }\n\n @if (error) {\n <gn-ui-popup-alert\n class=\"absolute mt-2 w-full top-[100%] left-0\"\n icon=\"matErrorOutlineOutline\"\n position=\"top\"\n type=\"warning\"\n >\n <span translate>search.autocomplete.error</span>\n {{ error }}\n </gn-ui-popup-alert>\n }\n</span>\n\n<mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"handleSelection($event)\"\n [displayWith]=\"displayWithFnInternal\"\n>\n @for (suggestion of suggestions$ | async; track suggestion) {\n <mat-option [value]=\"suggestion\" class=\"p-2 suggestion text-start\">\n {{ displayWithFnInternal(suggestion) }}\n </mat-option>\n }\n</mat-autocomplete>\n", styles: ["span{--icon-padding: var(--gn-ui-text-input-border-size, 2px);--icon-width: calc(var(--gn-ui-text-input-padding, .6em) * 2 + 1.25em)}span>*:not(gn-ui-popup-alert){font-size:var(--gn-ui-text-input-font-size, 1em)}input:placeholder-shown{text-overflow:ellipsis}gn-ui-button{--gn-ui-button-rounded: 0;--gn-ui-button-width: var(--icon-width);--gn-ui-button-padding: 0;font-size:1em}ng-icon.search{margin-top:.6rem;margin-left:.6rem}gn-ui-button:last-of-type{--gn-ui-button-rounded: 0 var(--gn-ui-text-input-rounded, .25em) var(--gn-ui-text-input-rounded, .25em) 0}.mat-mdc-option.suggestion.mat-mdc-option-active{background-color:var(--color-primary-lightest)}\n"] }]
23953
+ ], template: "<span class=\"w-full inline-block relative\">\n @if (!allowSubmit) {\n <div\n class=\"absolute inset-y-[--icon-padding] left-[--icon-padding] w-[--icon-width] pointer-events-none flex items-center justify-center\"\n >\n <ng-icon name=\"iconoirSearch\" class=\"text-primary\"></ng-icon>\n </div>\n }\n <div class=\"flex flex-row\">\n <input\n #searchInput\n type=\"text\"\n class=\"gn-ui-text-input\"\n (input)=\"handleInput($event)\"\n [placeholder]=\"placeholder\"\n [formControl]=\"control\"\n [matAutocomplete]=\"auto\"\n (keyup.enter)=\"handleSearch()\"\n [ngClass]=\"{\n 'text-primary': searchActive && enterButton,\n 'text-gray-900': !searchActive,\n 'px-[--icon-width]': !allowSubmit,\n }\"\n />\n @if (searchInput.value && displayEnterBtn) {\n <gn-ui-button\n type=\"gray\"\n extraClass=\"w-32 h-8 !opacity-100\"\n [ngStyle]=\"{ left: enterBtnPosition + 'px' }\"\n class=\"absolute\"\n disabled=\"true\"\n >\n <ng-icon\n name=\"iconoirLongArrowDownLeft\"\n class=\"!w-4 text-gray-900 font-bold\"\n ></ng-icon>\n <span translate class=\"text-bold text-gray-900 font-bold\">\n Enter to search\n </span>\n </gn-ui-button>\n }\n </div>\n @if (searchInput.value) {\n <gn-ui-button\n type=\"primary\"\n [extraClass]=\"getExtraClass()\"\n data-test=\"clear-btn\"\n aria-label=\"Clear\"\n (buttonClick)=\"clear()\"\n >\n <ng-icon class=\"text-white\" name=\"matClose\"></ng-icon>\n </gn-ui-button>\n }\n @if (allowSubmit) {\n <gn-ui-button\n type=\"light\"\n extraClass=\"border-0 border-l-[1px] border-gray-300 hover:border-gray-500 text-primary hover:text-primary-darkest focus:text-primary-darkest absolute inset-y-[--icon-padding] right-[--icon-padding]\"\n aria-label=\"Trigger search\"\n data-test=\"autocomplete-submit-btn\"\n (buttonClick)=\"handleSearch()\"\n >\n <ng-icon name=\"iconoirSearch\"></ng-icon>\n </gn-ui-button>\n }\n\n @if (error) {\n <gn-ui-popup-alert\n class=\"absolute mt-2 w-full top-[100%] left-0\"\n icon=\"matErrorOutlineOutline\"\n position=\"top\"\n type=\"warning\"\n >\n <span translate>search.autocomplete.error</span>\n {{ error }}\n </gn-ui-popup-alert>\n }\n</span>\n\n<mat-autocomplete\n #auto=\"matAutocomplete\"\n (optionSelected)=\"handleSelection($event)\"\n [displayWith]=\"displayWithFnInternal\"\n>\n @for (suggestion of suggestions$ | async; track suggestion) {\n <mat-option [value]=\"suggestion\" class=\"p-2 suggestion text-start\">\n @if (displayWithTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n displayWithTemplate;\n context: { $implicit: suggestion }\n \"\n ></ng-container>\n } @else {\n {{ displayWithFnInternal(suggestion) }}\n }\n </mat-option>\n }\n</mat-autocomplete>\n", styles: ["span{--icon-padding: var(--gn-ui-text-input-border-size, 2px);--icon-width: calc(var(--gn-ui-text-input-padding, .6em) * 2 + 1.25em)}span>*:not(gn-ui-popup-alert){font-size:var(--gn-ui-text-input-font-size, 1em)}input:placeholder-shown{text-overflow:ellipsis}gn-ui-button{--gn-ui-button-rounded: 0;--gn-ui-button-width: var(--icon-width);--gn-ui-button-padding: 0;font-size:1em}gn-ui-button:last-of-type{--gn-ui-button-rounded: 0 var(--gn-ui-text-input-rounded, .25em) var(--gn-ui-text-input-rounded, .25em) 0}.mat-mdc-option.suggestion.mat-mdc-option-active{background-color:var(--color-primary-lightest)}\n"] }]
24485
23954
  }], propDecorators: { placeholder: [{
24486
23955
  type: Input
24487
23956
  }], enterButton: [{
@@ -24519,6 +23988,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
24519
23988
  }], inputRef: [{
24520
23989
  type: ViewChild,
24521
23990
  args: ['searchInput']
23991
+ }], displayWithTemplate: [{
23992
+ type: Input
24522
23993
  }], displayWithFn: [{
24523
23994
  type: Input
24524
23995
  }] } });
@@ -25003,7 +24474,7 @@ class DropdownMultiselectComponent {
25003
24474
  }
25004
24475
  setFocus() {
25005
24476
  setTimeout(() => {
25006
- this.searchFieldInput.nativeElement.focus();
24477
+ this.searchFieldInput?.nativeElement.focus();
25007
24478
  }, 0);
25008
24479
  }
25009
24480
  openOverlay() {
@@ -25109,7 +24580,10 @@ class DropdownMultiselectComponent {
25109
24580
  matExpandMore,
25110
24581
  matExpandLess,
25111
24582
  }),
25112
- ], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: ["overlayOrigin"], descendants: true }, { propertyName: "overlay", first: true, predicate: CdkConnectedOverlay, descendants: true }, { propertyName: "overlayContainer", first: true, predicate: ["overlayContainer"], descendants: true, read: ElementRef }, { propertyName: "searchFieldInput", first: true, predicate: ["searchFieldInput"], descendants: true }, { propertyName: "checkboxes", predicate: ["checkBox"], descendants: true, read: ElementRef }], ngImport: i0, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n [attr.aria-owns]=\"id\"\n (buttonClick)=\"openOverlay()\"\n (keydown)=\"handleTriggerKeydown($event)\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelectedChoices) {\n <div\n class=\"gn-ui-multiselect-counter shrink-0 rounded-full font-bold text-[12px] w-5 h-5 flex items-center justify-center mr-1 selected-count\"\n >\n {{ selected.length }}\n </div>\n }\n </div>\n <button class=\"h-6 w-6\" data-test=\"dropdown-clear\">\n @if (hasSelectedChoices && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"clearSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-300 rounded shadow-lg py-2 w-full overflow-x-hidden overflow-y-auto overlay-container\"\n [style.max-height]=\"overlayMaxHeight\"\n [style.min-width]=\"overlayMinWidth\"\n role=\"listbox\"\n tabindex=\"-1\"\n [attr.id]=\"id\"\n [attr.aria-multiselectable]=\"true\"\n [attr.aria-label]=\"title\"\n (keydown)=\"handleOverlayKeydown($event)\"\n #overlayContainer\n >\n <div\n class=\"border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-[2px] flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary\"\n >\n @for (selected of selectedChoices; track selected) {\n <button\n type=\"button\"\n [title]=\"selected.label\"\n class=\"max-w-full bg-main text-white rounded pr-[7px] flex gap-1 items-center opacity-70 hover:opacity-100 focus:opacity-100 transition-opacity mb-1\"\n (click)=\"select(selected, false)\"\n >\n <div class=\"text-sm truncate leading-[26px] px-2\">\n {{ selected.label }}\n </div>\n <div\n class=\"flex items-center justify-center rounded-full bg-white text-main h-[13px] w-[13px] pt-px -mt-px shrink-0\"\n >\n <ng-icon\n name=\"matClose\"\n class=\"!h-[12px] !w-[11px] text-[12px]\"\n ></ng-icon>\n </div>\n </button>\n }\n\n @if (allowSearch) {\n <div class=\"w-[50%] relative grow shrink\">\n <input\n #searchFieldInput\n class=\"w-full px-2 truncate text-[14px] h-full overlaySearchInput focus:outline-none\"\n [(ngModel)]=\"searchInputValue\"\n [placeholder]=\"'multiselect.filter.placeholder' | translate\"\n />\n @if (!!searchInputValue) {\n <button\n class=\"absolute top-1/2 -translate-y-1/2 right-0 px-[7px] leading-tight clear-search-input mr-2\"\n (click)=\"clearSearchInputValue($event)\"\n >\n <ng-icon class=\"!h-[10px] !w-[12px] text-[12px]\" name=\"matClose\">\n </ng-icon>\n </button>\n }\n </div>\n }\n </div>\n\n @for (choice of filteredChoicesByText; track choice) {\n <label\n [title]=\"choice.label\"\n class=\"flex px-5 py-1 w-full text-gray-900 cursor-pointer hover:text-primary-darkest hover:bg-gray-50 focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors\"\n >\n <input\n class=\"w-[18px] h-[18px] align-text-top shrink-0\"\n type=\"checkbox\"\n #checkBox\n [checked]=\"isSelected(choice)\"\n (change)=\"select(choice, checkBox.checked)\"\n />\n <span class=\"ml-[8px] text-[14px] truncate\">\n {{ choice.label }}\n </span>\n </label>\n }\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$7.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$7.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
24583
+ provideNgIconsConfig({
24584
+ size: '1.5rem',
24585
+ }),
24586
+ ], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: ["overlayOrigin"], descendants: true }, { propertyName: "overlay", first: true, predicate: CdkConnectedOverlay, descendants: true }, { propertyName: "overlayContainer", first: true, predicate: ["overlayContainer"], descendants: true, read: ElementRef }, { propertyName: "searchFieldInput", first: true, predicate: ["searchFieldInput"], descendants: true }, { propertyName: "checkboxes", predicate: ["checkBox"], descendants: true, read: ElementRef }], ngImport: i0, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n [attr.aria-owns]=\"id\"\n (buttonClick)=\"openOverlay()\"\n (keydown)=\"handleTriggerKeydown($event)\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelectedChoices) {\n <div\n class=\"gn-ui-multiselect-counter shrink-0 rounded-full font-bold text-[12px] w-5 h-5 flex items-center justify-center mr-1 selected-count\"\n >\n {{ selected.length }}\n </div>\n }\n </div>\n <button\n class=\"h-6 w-6 flex items-center justify-center\"\n data-test=\"dropdown-clear\"\n >\n @if (hasSelectedChoices && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"clearSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-300 rounded shadow-lg py-2 w-full overflow-x-hidden overflow-y-auto overlay-container\"\n [style.max-height]=\"overlayMaxHeight\"\n [style.min-width]=\"overlayMinWidth\"\n role=\"listbox\"\n tabindex=\"-1\"\n [attr.id]=\"id\"\n [attr.aria-multiselectable]=\"true\"\n [attr.aria-label]=\"title\"\n (keydown)=\"handleOverlayKeydown($event)\"\n #overlayContainer\n >\n <div\n class=\"border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-1 flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary\"\n >\n @for (selected of selectedChoices; track selected) {\n <button\n type=\"button\"\n [title]=\"selected.label\"\n class=\"max-w-full bg-main text-white rounded pr-[7px] flex gap-1 items-center opacity-70 hover:opacity-100 focus:opacity-100 transition-opacity\"\n (click)=\"select(selected, false)\"\n >\n <div class=\"text-sm truncate leading-[26px] px-2\">\n {{ selected.label }}\n </div>\n <div\n class=\"flex items-center justify-center rounded-full bg-white text-main h-[13px] w-[13px] pt-px -mt-px shrink-0\"\n >\n <ng-icon\n name=\"matClose\"\n class=\"!h-[12px] !w-[11px] text-[12px]\"\n ></ng-icon>\n </div>\n </button>\n }\n\n @if (allowSearch) {\n <div class=\"w-[50%] relative grow shrink\">\n <input\n #searchFieldInput\n class=\"w-full px-2 truncate text-[14px] h-full overlaySearchInput focus:outline-none\"\n [(ngModel)]=\"searchInputValue\"\n [placeholder]=\"'multiselect.filter.placeholder' | translate\"\n />\n @if (!!searchInputValue) {\n <button\n class=\"absolute top-1/2 -translate-y-1/2 right-0 px-[7px] leading-tight clear-search-input mr-2\"\n (click)=\"clearSearchInputValue($event)\"\n >\n <ng-icon class=\"!h-[10px] !w-[12px] text-[12px]\" name=\"matClose\">\n </ng-icon>\n </button>\n }\n </div>\n }\n </div>\n\n @for (choice of filteredChoicesByText; track choice) {\n <label\n [title]=\"choice.label\"\n class=\"flex px-5 py-1 w-full text-gray-900 cursor-pointer hover:text-primary-darkest hover:bg-gray-50 focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors\"\n >\n <input\n class=\"w-[18px] h-[18px] align-text-top shrink-0\"\n type=\"checkbox\"\n #checkBox\n [checked]=\"isSelected(choice)\"\n (change)=\"select(choice, checkBox.checked)\"\n />\n <span class=\"ml-[8px] text-[14px] truncate\">\n {{ choice.label }}\n </span>\n </label>\n }\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$7.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$7.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25113
24587
  }
25114
24588
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: DropdownMultiselectComponent, decorators: [{
25115
24589
  type: Component,
@@ -25119,7 +24593,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
25119
24593
  matExpandMore,
25120
24594
  matExpandLess,
25121
24595
  }),
25122
- ], standalone: true, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n [attr.aria-owns]=\"id\"\n (buttonClick)=\"openOverlay()\"\n (keydown)=\"handleTriggerKeydown($event)\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelectedChoices) {\n <div\n class=\"gn-ui-multiselect-counter shrink-0 rounded-full font-bold text-[12px] w-5 h-5 flex items-center justify-center mr-1 selected-count\"\n >\n {{ selected.length }}\n </div>\n }\n </div>\n <button class=\"h-6 w-6\" data-test=\"dropdown-clear\">\n @if (hasSelectedChoices && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"clearSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-300 rounded shadow-lg py-2 w-full overflow-x-hidden overflow-y-auto overlay-container\"\n [style.max-height]=\"overlayMaxHeight\"\n [style.min-width]=\"overlayMinWidth\"\n role=\"listbox\"\n tabindex=\"-1\"\n [attr.id]=\"id\"\n [attr.aria-multiselectable]=\"true\"\n [attr.aria-label]=\"title\"\n (keydown)=\"handleOverlayKeydown($event)\"\n #overlayContainer\n >\n <div\n class=\"border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-[2px] flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary\"\n >\n @for (selected of selectedChoices; track selected) {\n <button\n type=\"button\"\n [title]=\"selected.label\"\n class=\"max-w-full bg-main text-white rounded pr-[7px] flex gap-1 items-center opacity-70 hover:opacity-100 focus:opacity-100 transition-opacity mb-1\"\n (click)=\"select(selected, false)\"\n >\n <div class=\"text-sm truncate leading-[26px] px-2\">\n {{ selected.label }}\n </div>\n <div\n class=\"flex items-center justify-center rounded-full bg-white text-main h-[13px] w-[13px] pt-px -mt-px shrink-0\"\n >\n <ng-icon\n name=\"matClose\"\n class=\"!h-[12px] !w-[11px] text-[12px]\"\n ></ng-icon>\n </div>\n </button>\n }\n\n @if (allowSearch) {\n <div class=\"w-[50%] relative grow shrink\">\n <input\n #searchFieldInput\n class=\"w-full px-2 truncate text-[14px] h-full overlaySearchInput focus:outline-none\"\n [(ngModel)]=\"searchInputValue\"\n [placeholder]=\"'multiselect.filter.placeholder' | translate\"\n />\n @if (!!searchInputValue) {\n <button\n class=\"absolute top-1/2 -translate-y-1/2 right-0 px-[7px] leading-tight clear-search-input mr-2\"\n (click)=\"clearSearchInputValue($event)\"\n >\n <ng-icon class=\"!h-[10px] !w-[12px] text-[12px]\" name=\"matClose\">\n </ng-icon>\n </button>\n }\n </div>\n }\n </div>\n\n @for (choice of filteredChoicesByText; track choice) {\n <label\n [title]=\"choice.label\"\n class=\"flex px-5 py-1 w-full text-gray-900 cursor-pointer hover:text-primary-darkest hover:bg-gray-50 focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors\"\n >\n <input\n class=\"w-[18px] h-[18px] align-text-top shrink-0\"\n type=\"checkbox\"\n #checkBox\n [checked]=\"isSelected(choice)\"\n (change)=\"select(choice, checkBox.checked)\"\n />\n <span class=\"ml-[8px] text-[14px] truncate\">\n {{ choice.label }}\n </span>\n </label>\n }\n </div>\n</ng-template>\n" }]
24596
+ provideNgIconsConfig({
24597
+ size: '1.5rem',
24598
+ }),
24599
+ ], standalone: true, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n [attr.aria-owns]=\"id\"\n (buttonClick)=\"openOverlay()\"\n (keydown)=\"handleTriggerKeydown($event)\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelectedChoices) {\n <div\n class=\"gn-ui-multiselect-counter shrink-0 rounded-full font-bold text-[12px] w-5 h-5 flex items-center justify-center mr-1 selected-count\"\n >\n {{ selected.length }}\n </div>\n }\n </div>\n <button\n class=\"h-6 w-6 flex items-center justify-center\"\n data-test=\"dropdown-clear\"\n >\n @if (hasSelectedChoices && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"clearSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-300 rounded shadow-lg py-2 w-full overflow-x-hidden overflow-y-auto overlay-container\"\n [style.max-height]=\"overlayMaxHeight\"\n [style.min-width]=\"overlayMinWidth\"\n role=\"listbox\"\n tabindex=\"-1\"\n [attr.id]=\"id\"\n [attr.aria-multiselectable]=\"true\"\n [attr.aria-label]=\"title\"\n (keydown)=\"handleOverlayKeydown($event)\"\n #overlayContainer\n >\n <div\n class=\"border border-gray-300 rounded mb-2 mx-2 min-h-[44px] flex flex-row gap-1 flex-wrap p-2 focus-within:rounded focus-within:border-2 focus-within:border-primary\"\n >\n @for (selected of selectedChoices; track selected) {\n <button\n type=\"button\"\n [title]=\"selected.label\"\n class=\"max-w-full bg-main text-white rounded pr-[7px] flex gap-1 items-center opacity-70 hover:opacity-100 focus:opacity-100 transition-opacity\"\n (click)=\"select(selected, false)\"\n >\n <div class=\"text-sm truncate leading-[26px] px-2\">\n {{ selected.label }}\n </div>\n <div\n class=\"flex items-center justify-center rounded-full bg-white text-main h-[13px] w-[13px] pt-px -mt-px shrink-0\"\n >\n <ng-icon\n name=\"matClose\"\n class=\"!h-[12px] !w-[11px] text-[12px]\"\n ></ng-icon>\n </div>\n </button>\n }\n\n @if (allowSearch) {\n <div class=\"w-[50%] relative grow shrink\">\n <input\n #searchFieldInput\n class=\"w-full px-2 truncate text-[14px] h-full overlaySearchInput focus:outline-none\"\n [(ngModel)]=\"searchInputValue\"\n [placeholder]=\"'multiselect.filter.placeholder' | translate\"\n />\n @if (!!searchInputValue) {\n <button\n class=\"absolute top-1/2 -translate-y-1/2 right-0 px-[7px] leading-tight clear-search-input mr-2\"\n (click)=\"clearSearchInputValue($event)\"\n >\n <ng-icon class=\"!h-[10px] !w-[12px] text-[12px]\" name=\"matClose\">\n </ng-icon>\n </button>\n }\n </div>\n }\n </div>\n\n @for (choice of filteredChoicesByText; track choice) {\n <label\n [title]=\"choice.label\"\n class=\"flex px-5 py-1 w-full text-gray-900 cursor-pointer hover:text-primary-darkest hover:bg-gray-50 focus-within:text-primary-darkest focus-within:bg-gray-50 transition-colors\"\n >\n <input\n class=\"w-[18px] h-[18px] align-text-top shrink-0\"\n type=\"checkbox\"\n #checkBox\n [checked]=\"isSelected(choice)\"\n (change)=\"select(choice, checkBox.checked)\"\n />\n <span class=\"ml-[8px] text-[14px] truncate\">\n {{ choice.label }}\n </span>\n </label>\n }\n </div>\n</ng-template>\n" }]
25123
24600
  }], propDecorators: { title: [{
25124
24601
  type: Input
25125
24602
  }], choices: [{
@@ -25949,7 +25426,8 @@ class SearchFeatureCatalogComponent {
25949
25426
  const filtered = (this.featureCatalog?.featureTypes || []).filter((featureType) => {
25950
25427
  const fuzzyFilter = createFuzzyFilter(searchTerm);
25951
25428
  return (fuzzyFilter(featureType.name) ||
25952
- (featureType.definition && fuzzyFilter(featureType.definition)));
25429
+ (featureType.description &&
25430
+ fuzzyFilter(featureType.description)));
25953
25431
  });
25954
25432
  this.filteredFeatureCatalog = {
25955
25433
  ...this.featureCatalog,
@@ -26034,8 +25512,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
26034
25512
  marker('search.filters.spatialExtent.import');
26035
25513
  marker('search.filters.spatialExtent.helpText');
26036
25514
  marker('search.filters.spatialExtent.error.title');
26037
- marker('search.filters.spatialExtent.bboxPrefix');
26038
- marker('search.filters.spatialExtent.bboxDelete');
25515
+ marker('search.filters.spatialExtent.error.outOfBounds');
25516
+ const LABEL_FROM_FILE = marker('search.filters.spatialExtent.bboxFromFile');
25517
+ const LABEL_FROM_FILE_DELETE = marker('search.filters.spatialExtent.bboxFromFileDelete');
25518
+ const LABEL_FROM_LOCATION = marker('search.filters.spatialExtent.bboxFromLocation');
25519
+ const LABEL_FROM_LOCATION_DELETE = marker('search.filters.spatialExtent.bboxFromLocationDelete');
25520
+ const LABEL_INITIAL = marker('search.filters.spatialExtent.bboxInitial');
25521
+ const LABEL_INITIAL_DELETE = marker('search.filters.spatialExtent.bboxInitialDelete');
26039
25522
  class SpatialExtentDropdownComponent {
26040
25523
  constructor() {
26041
25524
  this.cd = inject(ChangeDetectorRef);
@@ -26045,6 +25528,7 @@ class SpatialExtentDropdownComponent {
26045
25528
  this.errorChange = new EventEmitter();
26046
25529
  this.bbox = null;
26047
25530
  this.fileName = '';
25531
+ this.locationName = '';
26048
25532
  this.overlayPositions = [
26049
25533
  {
26050
25534
  originX: 'start',
@@ -26066,9 +25550,31 @@ class SpatialExtentDropdownComponent {
26066
25550
  this.overlayMinWidth = 'none';
26067
25551
  this.errorKey = null;
26068
25552
  }
25553
+ set initialBbox(value) {
25554
+ if (!this.bbox && value) {
25555
+ this.bbox = value;
25556
+ }
25557
+ }
26069
25558
  get hasSelection() {
26070
25559
  return !!this.bbox;
26071
25560
  }
25561
+ get selectionLabelKey() {
25562
+ if (this.fileName)
25563
+ return LABEL_FROM_FILE;
25564
+ if (this.locationName)
25565
+ return LABEL_FROM_LOCATION;
25566
+ return LABEL_INITIAL;
25567
+ }
25568
+ get selectionDeleteLabelKey() {
25569
+ if (this.fileName)
25570
+ return LABEL_FROM_FILE_DELETE;
25571
+ if (this.locationName)
25572
+ return LABEL_FROM_LOCATION_DELETE;
25573
+ return LABEL_INITIAL_DELETE;
25574
+ }
25575
+ get selectionLabelParams() {
25576
+ return { fileName: this.fileName, locationName: this.locationName };
25577
+ }
26072
25578
  openOverlay() {
26073
25579
  this.overlayMinWidth =
26074
25580
  this.overlayOrigin.elementRef.nativeElement.getBoundingClientRect()
@@ -26098,8 +25604,13 @@ class SpatialExtentDropdownComponent {
26098
25604
  return;
26099
25605
  }
26100
25606
  const bbox = getGeometryBoundingBox(geometry);
25607
+ if (!isBoundingBoxWithinWorldExtent(bbox)) {
25608
+ this.setError(marker('search.filters.spatialExtent.error.outOfBounds'));
25609
+ return;
25610
+ }
26101
25611
  this.bbox = bbox;
26102
25612
  this.fileName = file.name;
25613
+ this.locationName = '';
26103
25614
  this.bboxChange.emit(bbox);
26104
25615
  this.cd.markForCheck();
26105
25616
  }
@@ -26108,6 +25619,15 @@ class SpatialExtentDropdownComponent {
26108
25619
  return;
26109
25620
  }
26110
25621
  }
25622
+ setLocationBbox(bbox, name) {
25623
+ this.errorKey = null;
25624
+ this.bbox = bbox;
25625
+ this.locationName = name;
25626
+ this.fileName = '';
25627
+ this.fileInput?.clear();
25628
+ this.bboxChange.emit(bbox);
25629
+ this.cd.markForCheck();
25630
+ }
26111
25631
  handleFileError(error) {
26112
25632
  if (error === 'file-too-large') {
26113
25633
  this.setError(marker('search.filters.spatialExtent.error.fileTooLarge'), {
@@ -26126,23 +25646,24 @@ class SpatialExtentDropdownComponent {
26126
25646
  removeSelection(event) {
26127
25647
  this.bbox = null;
26128
25648
  this.fileName = '';
25649
+ this.locationName = '';
26129
25650
  this.errorKey = null;
26130
25651
  this.fileInput?.clear();
26131
25652
  this.bboxChange.emit(null);
26132
25653
  propagateToDocumentOnly(event);
26133
25654
  }
26134
25655
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: SpatialExtentDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26135
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: SpatialExtentDropdownComponent, isStandalone: true, selector: "gn-ui-spatial-extent-dropdown", inputs: { title: "title", maxFileSizeMb: "maxFileSizeMb" }, outputs: { bboxChange: "bboxChange", errorChange: "errorChange" }, providers: [
25656
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: SpatialExtentDropdownComponent, isStandalone: true, selector: "gn-ui-spatial-extent-dropdown", inputs: { title: "title", maxFileSizeMb: "maxFileSizeMb", initialBbox: "initialBbox" }, outputs: { bboxChange: "bboxChange", errorChange: "errorChange" }, providers: [
26136
25657
  provideIcons({
26137
25658
  iconoirCheckCircle,
26138
- iconoirImport,
26139
25659
  iconoirSquareDashed,
26140
25660
  iconoirTrash,
25661
+ iconoirUpload,
26141
25662
  matClose,
26142
25663
  matExpandLess,
26143
25664
  matExpandMore,
26144
25665
  }),
26145
- ], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: ["overlayOrigin"], descendants: true }, { propertyName: "overlay", first: true, predicate: CdkConnectedOverlay, descendants: true }, { propertyName: "fileInput", first: true, predicate: DragAndDropFileInputComponent, descendants: true }], ngImport: i0, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n (buttonClick)=\"toggleOverlay()\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelection) {\n <div\n class=\"bg-primary-lighter text-white shrink-0 rounded-full font-bold text-[12px] w-[22px] h-[22px] flex items-center justify-center\"\n >\n 1\n </div>\n }\n </div>\n <button class=\"h-6 w-6 flex items-center\" data-cy=\"clearSelection\">\n @if (hasSelection && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"removeSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-400 rounded shadow-lg pt-[12px] px-[16px] overlay-container w-[280px] flex flex-col gap-2\"\n [style.min-width]=\"overlayMinWidth\"\n >\n <div class=\"text-xs text-black\">\n {{ 'search.filters.spatialExtent.helpText' | translate }}\n </div>\n\n <div\n [class]=\"\n (hasSelection\n ? 'border-b-[1px] border-gray-400 pb-[20px]'\n : 'pb-[8px]') + ' text-black'\n \"\n >\n <gn-ui-drag-and-drop-file-input\n accept=\".json,.geojson\"\n [placeholder]=\"'search.filters.spatialExtent.import' | translate\"\n [maxFileSizeMb]=\"maxFileSizeMb\"\n [showFileName]=\"false\"\n textClass=\"text-black truncate\"\n dropzoneBackgroundColor=\"transparent\"\n icon=\"iconoirImport\"\n extraClass=\"gn-ui-gray-outline-input w-full !h-[32px] px-[8px] py-[4px] justify-between\"\n (fileChange)=\"handleFileSelected($event)\"\n (errorChange)=\"handleFileError($event)\"\n data-cy=\"importGeojson\"\n ></gn-ui-drag-and-drop-file-input>\n </div>\n\n @if (hasSelection) {\n <gn-ui-button\n [type]=\"'primary-light'\"\n [title]=\"\n ('search.filters.spatialExtent.bboxDelete' | translate) +\n ' ' +\n fileName\n \"\n (buttonClick)=\"removeSelection($event)\"\n extraClass=\"group gap-x-2 w-full h-[28px] px-[8px] py-[4px] mb-[12px] bg-primary-lighter text-white\"\n data-test=\"spatial-extent-selected-item\"\n >\n <ng-icon\n name=\"iconoirSquareDashed\"\n class=\"shrink-0\"\n size=\"15px\"\n ></ng-icon>\n <span class=\"group-hover:hidden truncate text-sm m-auto\">\n {{ 'search.filters.spatialExtent.bboxPrefix' | translate }}\n {{ fileName }}\n </span>\n <span class=\"hidden group-hover:block truncate text-sm m-auto\">\n {{ 'search.filters.spatialExtent.bboxDelete' | translate }}\n {{ fileName }}\n </span>\n <ng-icon\n name=\"iconoirCheckCircle\"\n class=\"group-hover:hidden shrink-0\"\n size=\"14px\"\n ></ng-icon>\n <ng-icon\n name=\"iconoirTrash\"\n class=\"!hidden group-hover:!block shrink-0\"\n size=\"15px\"\n ></ng-icon>\n </gn-ui-button>\n }\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$7.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$7.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: DragAndDropFileInputComponent, selector: "gn-ui-drag-and-drop-file-input", inputs: ["placeholder", "accept", "maxFileSizeMb", "icon", "dropzoneBackgroundColor", "textClass", "extraClass", "showFileName"], outputs: ["fileChange", "errorChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25666
+ ], viewQueries: [{ propertyName: "overlayOrigin", first: true, predicate: ["overlayOrigin"], descendants: true }, { propertyName: "overlay", first: true, predicate: CdkConnectedOverlay, descendants: true }, { propertyName: "fileInput", first: true, predicate: DragAndDropFileInputComponent, descendants: true }], ngImport: i0, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n (buttonClick)=\"toggleOverlay()\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelection) {\n <div\n class=\"bg-primary-lighter text-white shrink-0 rounded-full font-bold text-[12px] w-[22px] h-[22px] flex items-center justify-center\"\n >\n 1\n </div>\n }\n </div>\n <button class=\"h-6 w-6 flex items-center\" data-cy=\"clearSelection\">\n @if (hasSelection && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"removeSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-400 rounded shadow-lg pt-[12px] px-[16px] overlay-container w-[280px] flex flex-col gap-2\"\n [style.min-width]=\"overlayMinWidth\"\n >\n <div class=\"text-xs text-black\">\n {{ 'search.filters.spatialExtent.helpText' | translate }}\n </div>\n\n <div\n [class]=\"\n (hasSelection\n ? 'border-b-[1px] border-gray-400 pb-[20px]'\n : 'pb-[12px]') + ' text-black flex flex-col gap-[8px]'\n \"\n style=\"\n --gn-ui-text-input-rounded: 8px;\n --gn-ui-text-input-border-size: 1px;\n --gn-ui-text-input-padding: 6px;\n \"\n >\n <gn-ui-drag-and-drop-file-input\n accept=\".json,.geojson\"\n [placeholder]=\"'search.filters.spatialExtent.import' | translate\"\n [maxFileSizeMb]=\"maxFileSizeMb\"\n [showFileName]=\"false\"\n textClass=\"text-black truncate\"\n dropzoneBackgroundColor=\"transparent\"\n icon=\"iconoirUpload\"\n extraClass=\"gn-ui-gray-outline-input w-full !h-[32px] px-[8px] py-[4px] justify-between\"\n (fileChange)=\"handleFileSelected($event)\"\n (errorChange)=\"handleFileError($event)\"\n data-cy=\"importGeojson\"\n ></gn-ui-drag-and-drop-file-input>\n <ng-content></ng-content>\n </div>\n\n @if (hasSelection) {\n <gn-ui-button\n [type]=\"'primary-light'\"\n [title]=\"selectionDeleteLabelKey | translate: selectionLabelParams\"\n (buttonClick)=\"removeSelection($event)\"\n extraClass=\"group gap-x-2 w-full h-[28px] px-[8px] py-[4px] mb-[12px] bg-primary-lighter text-white\"\n data-test=\"spatial-extent-selected-item\"\n >\n <ng-icon\n name=\"iconoirSquareDashed\"\n class=\"shrink-0\"\n size=\"15px\"\n ></ng-icon>\n <span class=\"group-hover:hidden truncate text-sm m-auto\">\n {{ selectionLabelKey | translate: selectionLabelParams }}\n </span>\n <span class=\"hidden group-hover:block truncate text-sm m-auto\">\n {{ selectionDeleteLabelKey | translate: selectionLabelParams }}\n </span>\n <ng-icon\n name=\"iconoirCheckCircle\"\n class=\"group-hover:hidden shrink-0\"\n size=\"14px\"\n ></ng-icon>\n <ng-icon\n name=\"iconoirTrash\"\n class=\"!hidden group-hover:!block shrink-0\"\n size=\"15px\"\n ></ng-icon>\n </gn-ui-button>\n }\n </div>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: OverlayModule }, { kind: "directive", type: i1$7.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush", "cdkConnectedOverlayDisposeOnNavigation"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { kind: "directive", type: i1$7.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { kind: "component", type: DragAndDropFileInputComponent, selector: "gn-ui-drag-and-drop-file-input", inputs: ["placeholder", "accept", "maxFileSizeMb", "icon", "dropzoneBackgroundColor", "textClass", "extraClass", "showFileName"], outputs: ["fileChange", "errorChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26146
25667
  }
26147
25668
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: SpatialExtentDropdownComponent, decorators: [{
26148
25669
  type: Component,
@@ -26155,18 +25676,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
26155
25676
  ], providers: [
26156
25677
  provideIcons({
26157
25678
  iconoirCheckCircle,
26158
- iconoirImport,
26159
25679
  iconoirSquareDashed,
26160
25680
  iconoirTrash,
25681
+ iconoirUpload,
26161
25682
  matClose,
26162
25683
  matExpandLess,
26163
25684
  matExpandMore,
26164
25685
  }),
26165
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n (buttonClick)=\"toggleOverlay()\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelection) {\n <div\n class=\"bg-primary-lighter text-white shrink-0 rounded-full font-bold text-[12px] w-[22px] h-[22px] flex items-center justify-center\"\n >\n 1\n </div>\n }\n </div>\n <button class=\"h-6 w-6 flex items-center\" data-cy=\"clearSelection\">\n @if (hasSelection && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"removeSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-400 rounded shadow-lg pt-[12px] px-[16px] overlay-container w-[280px] flex flex-col gap-2\"\n [style.min-width]=\"overlayMinWidth\"\n >\n <div class=\"text-xs text-black\">\n {{ 'search.filters.spatialExtent.helpText' | translate }}\n </div>\n\n <div\n [class]=\"\n (hasSelection\n ? 'border-b-[1px] border-gray-400 pb-[20px]'\n : 'pb-[8px]') + ' text-black'\n \"\n >\n <gn-ui-drag-and-drop-file-input\n accept=\".json,.geojson\"\n [placeholder]=\"'search.filters.spatialExtent.import' | translate\"\n [maxFileSizeMb]=\"maxFileSizeMb\"\n [showFileName]=\"false\"\n textClass=\"text-black truncate\"\n dropzoneBackgroundColor=\"transparent\"\n icon=\"iconoirImport\"\n extraClass=\"gn-ui-gray-outline-input w-full !h-[32px] px-[8px] py-[4px] justify-between\"\n (fileChange)=\"handleFileSelected($event)\"\n (errorChange)=\"handleFileError($event)\"\n data-cy=\"importGeojson\"\n ></gn-ui-drag-and-drop-file-input>\n </div>\n\n @if (hasSelection) {\n <gn-ui-button\n [type]=\"'primary-light'\"\n [title]=\"\n ('search.filters.spatialExtent.bboxDelete' | translate) +\n ' ' +\n fileName\n \"\n (buttonClick)=\"removeSelection($event)\"\n extraClass=\"group gap-x-2 w-full h-[28px] px-[8px] py-[4px] mb-[12px] bg-primary-lighter text-white\"\n data-test=\"spatial-extent-selected-item\"\n >\n <ng-icon\n name=\"iconoirSquareDashed\"\n class=\"shrink-0\"\n size=\"15px\"\n ></ng-icon>\n <span class=\"group-hover:hidden truncate text-sm m-auto\">\n {{ 'search.filters.spatialExtent.bboxPrefix' | translate }}\n {{ fileName }}\n </span>\n <span class=\"hidden group-hover:block truncate text-sm m-auto\">\n {{ 'search.filters.spatialExtent.bboxDelete' | translate }}\n {{ fileName }}\n </span>\n <ng-icon\n name=\"iconoirCheckCircle\"\n class=\"group-hover:hidden shrink-0\"\n size=\"14px\"\n ></ng-icon>\n <ng-icon\n name=\"iconoirTrash\"\n class=\"!hidden group-hover:!block shrink-0\"\n size=\"15px\"\n ></ng-icon>\n </gn-ui-button>\n }\n </div>\n</ng-template>\n" }]
25686
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<gn-ui-button\n type=\"outline\"\n extraClass=\"bg-background w-full !p-[8px] !pl-[16px]\"\n [title]=\"title\"\n (buttonClick)=\"toggleOverlay()\"\n cdkOverlayOrigin\n #overlayOrigin=\"cdkOverlayOrigin\"\n>\n <div class=\"grow flex items-center mr-2 gap-2 overflow-hidden\">\n <div class=\"text-left font-medium truncate py-1\">\n {{ title }}\n </div>\n @if (hasSelection) {\n <div\n class=\"bg-primary-lighter text-white shrink-0 rounded-full font-bold text-[12px] w-[22px] h-[22px] flex items-center justify-center\"\n >\n 1\n </div>\n }\n </div>\n <button class=\"h-6 w-6 flex items-center\" data-cy=\"clearSelection\">\n @if (hasSelection && !overlayOpen) {\n <ng-icon\n class=\"shrink-0 opacity-40 mr-1.5 hover:opacity-80 transition-colors clear-btn\"\n (click)=\"removeSelection($event)\"\n name=\"matClose\"\n ></ng-icon>\n }\n </button>\n <ng-icon\n [name]=\"overlayOpen ? 'matExpandLess' : 'matExpandMore'\"\n class=\"shrink-0 opacity-40\"\n >\n </ng-icon>\n</gn-ui-button>\n\n<ng-template\n cdkConnectedOverlay\n cdkConnectedOverlayHasBackdrop\n cdkConnectedOverlayBackdropClass=\"cdk-overlay-transparent-backdrop\"\n [cdkConnectedOverlayOrigin]=\"overlayOrigin\"\n [cdkConnectedOverlayOpen]=\"overlayOpen\"\n [cdkConnectedOverlayPositions]=\"overlayPositions\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayFlexibleDimensions]=\"true\"\n (overlayOutsideClick)=\"closeOverlay()\"\n (detach)=\"closeOverlay()\"\n>\n <div\n class=\"bg-white border border-gray-400 rounded shadow-lg pt-[12px] px-[16px] overlay-container w-[280px] flex flex-col gap-2\"\n [style.min-width]=\"overlayMinWidth\"\n >\n <div class=\"text-xs text-black\">\n {{ 'search.filters.spatialExtent.helpText' | translate }}\n </div>\n\n <div\n [class]=\"\n (hasSelection\n ? 'border-b-[1px] border-gray-400 pb-[20px]'\n : 'pb-[12px]') + ' text-black flex flex-col gap-[8px]'\n \"\n style=\"\n --gn-ui-text-input-rounded: 8px;\n --gn-ui-text-input-border-size: 1px;\n --gn-ui-text-input-padding: 6px;\n \"\n >\n <gn-ui-drag-and-drop-file-input\n accept=\".json,.geojson\"\n [placeholder]=\"'search.filters.spatialExtent.import' | translate\"\n [maxFileSizeMb]=\"maxFileSizeMb\"\n [showFileName]=\"false\"\n textClass=\"text-black truncate\"\n dropzoneBackgroundColor=\"transparent\"\n icon=\"iconoirUpload\"\n extraClass=\"gn-ui-gray-outline-input w-full !h-[32px] px-[8px] py-[4px] justify-between\"\n (fileChange)=\"handleFileSelected($event)\"\n (errorChange)=\"handleFileError($event)\"\n data-cy=\"importGeojson\"\n ></gn-ui-drag-and-drop-file-input>\n <ng-content></ng-content>\n </div>\n\n @if (hasSelection) {\n <gn-ui-button\n [type]=\"'primary-light'\"\n [title]=\"selectionDeleteLabelKey | translate: selectionLabelParams\"\n (buttonClick)=\"removeSelection($event)\"\n extraClass=\"group gap-x-2 w-full h-[28px] px-[8px] py-[4px] mb-[12px] bg-primary-lighter text-white\"\n data-test=\"spatial-extent-selected-item\"\n >\n <ng-icon\n name=\"iconoirSquareDashed\"\n class=\"shrink-0\"\n size=\"15px\"\n ></ng-icon>\n <span class=\"group-hover:hidden truncate text-sm m-auto\">\n {{ selectionLabelKey | translate: selectionLabelParams }}\n </span>\n <span class=\"hidden group-hover:block truncate text-sm m-auto\">\n {{ selectionDeleteLabelKey | translate: selectionLabelParams }}\n </span>\n <ng-icon\n name=\"iconoirCheckCircle\"\n class=\"group-hover:hidden shrink-0\"\n size=\"14px\"\n ></ng-icon>\n <ng-icon\n name=\"iconoirTrash\"\n class=\"!hidden group-hover:!block shrink-0\"\n size=\"15px\"\n ></ng-icon>\n </gn-ui-button>\n }\n </div>\n</ng-template>\n" }]
26166
25687
  }], propDecorators: { title: [{
26167
25688
  type: Input
26168
25689
  }], maxFileSizeMb: [{
26169
25690
  type: Input
25691
+ }], initialBbox: [{
25692
+ type: Input
26170
25693
  }], bboxChange: [{
26171
25694
  type: Output
26172
25695
  }], errorChange: [{
@@ -26686,11 +26209,11 @@ class BlockListComponent {
26686
26209
  this.goToPage(this.currentPage + 1);
26687
26210
  }
26688
26211
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: BlockListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
26689
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: BlockListComponent, isStandalone: true, selector: "gn-ui-block-list", inputs: { containerClass: "containerClass", paginationContainerClass: "paginationContainerClass" }, outputs: { listChanges: "listChanges" }, host: { listeners: { "window:resize": "onResize()" } }, queries: [{ propertyName: "blocks", predicate: ["block"], read: ElementRef }], viewQueries: [{ propertyName: "blockContainer", first: true, predicate: ["blockContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"grid gap-4 w-full sm:grid-cols-2\"\n #blockContainer\n [ngClass]=\"[containerClass, 'size-' + subComponentSize]\"\n>\n <ng-content></ng-content>\n</div>\n<gn-ui-pagination-dots\n [containerClass]=\"'absolute ' + paginationContainerClass\"\n [listComponent]=\"this\"\n></gn-ui-pagination-dots>\n", styles: [":host .block-list-container ::ng-deep>*{flex-shrink:0}:host{position:relative}@media screen and (min-width: 769px){.size-L{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-M{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-S{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-XS{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PaginationDotsComponent, selector: "gn-ui-pagination-dots", inputs: ["listComponent", "containerClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26212
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: BlockListComponent, isStandalone: true, selector: "gn-ui-block-list", inputs: { containerClass: "containerClass", paginationContainerClass: "paginationContainerClass" }, outputs: { listChanges: "listChanges" }, host: { listeners: { "window:resize": "onResize()" } }, queries: [{ propertyName: "blocks", predicate: ["block"], read: ElementRef }], viewQueries: [{ propertyName: "blockContainer", first: true, predicate: ["blockContainer"], descendants: true }], ngImport: i0, template: "<div\n class=\"grid gap-4 w-full sm:grid-cols-2\"\n #blockContainer\n [ngClass]=\"[containerClass, 'size-' + subComponentSize]\"\n>\n <ng-content></ng-content>\n</div>\n<gn-ui-pagination-dots\n [containerClass]=\"'absolute ' + paginationContainerClass\"\n [listComponent]=\"this\"\n></gn-ui-pagination-dots>\n", styles: [":host .block-list-container ::ng-deep>*{flex-shrink:0}:host{display:block;position:relative}@media screen and (min-width: 769px){.size-L{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-M{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-S{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-XS{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: PaginationDotsComponent, selector: "gn-ui-pagination-dots", inputs: ["listComponent", "containerClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26690
26213
  }
26691
26214
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: BlockListComponent, decorators: [{
26692
26215
  type: Component,
26693
- args: [{ selector: 'gn-ui-block-list', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, PaginationDotsComponent], template: "<div\n class=\"grid gap-4 w-full sm:grid-cols-2\"\n #blockContainer\n [ngClass]=\"[containerClass, 'size-' + subComponentSize]\"\n>\n <ng-content></ng-content>\n</div>\n<gn-ui-pagination-dots\n [containerClass]=\"'absolute ' + paginationContainerClass\"\n [listComponent]=\"this\"\n></gn-ui-pagination-dots>\n", styles: [":host .block-list-container ::ng-deep>*{flex-shrink:0}:host{position:relative}@media screen and (min-width: 769px){.size-L{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-M{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-S{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-XS{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}}\n"] }]
26216
+ args: [{ selector: 'gn-ui-block-list', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [CommonModule, PaginationDotsComponent], template: "<div\n class=\"grid gap-4 w-full sm:grid-cols-2\"\n #blockContainer\n [ngClass]=\"[containerClass, 'size-' + subComponentSize]\"\n>\n <ng-content></ng-content>\n</div>\n<gn-ui-pagination-dots\n [containerClass]=\"'absolute ' + paginationContainerClass\"\n [listComponent]=\"this\"\n></gn-ui-pagination-dots>\n", styles: [":host .block-list-container ::ng-deep>*{flex-shrink:0}:host{display:block;position:relative}@media screen and (min-width: 769px){.size-L{grid-template-columns:repeat(1,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-M{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-S{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}.size-XS{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,min-content)}}\n"] }]
26694
26217
  }], propDecorators: { containerClass: [{
26695
26218
  type: Input
26696
26219
  }], paginationContainerClass: [{
@@ -27429,9 +26952,7 @@ const initSearch = () => {
27429
26952
  },
27430
26953
  params: {
27431
26954
  filters: {},
27432
- pageSize: getOptionalSearchConfig()?.LIMIT
27433
- ? getOptionalSearchConfig().LIMIT
27434
- : DEFAULT_PAGE_SIZE,
26955
+ pageSize: DEFAULT_PAGE_SIZE,
27435
26956
  currentPage: 0,
27436
26957
  favoritesOnly: false,
27437
26958
  useSpatialFilter: true,
@@ -27880,6 +27401,146 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
27880
27401
  }]
27881
27402
  }] });
27882
27403
 
27404
+ const DEFAULT_GEOCODING_PROVIDER = [
27405
+ 'geonames',
27406
+ { maxRows: 5 },
27407
+ ];
27408
+ const GEOCODING_PROVIDER = new InjectionToken('geocoding-provider', {
27409
+ providedIn: 'root',
27410
+ factory: () => DEFAULT_GEOCODING_PROVIDER,
27411
+ });
27412
+ // these options are arrays in the providers, but they can be configured
27413
+ // with a single value for simplicity
27414
+ const GEOCODING_PROVIDER_ARRAY_OPTIONS = {
27415
+ geoadmin: ['origins', 'features'],
27416
+ geoplateforme: [
27417
+ 'index',
27418
+ 'category',
27419
+ 'type',
27420
+ 'postCode',
27421
+ 'cityCode',
27422
+ 'depCode',
27423
+ ],
27424
+ };
27425
+ function wrapArrayOptions(options, keys) {
27426
+ const wrapped = { ...options };
27427
+ for (const key of keys) {
27428
+ if (typeof wrapped[key] === 'string') {
27429
+ wrapped[key] = [wrapped[key]];
27430
+ }
27431
+ }
27432
+ return wrapped;
27433
+ }
27434
+ class GeocodingService {
27435
+ constructor() {
27436
+ this.provider = inject(GEOCODING_PROVIDER);
27437
+ }
27438
+ query(text) {
27439
+ let queryObservable;
27440
+ switch (this.provider[0]) {
27441
+ case 'geoadmin':
27442
+ queryObservable = from(queryGeoadmin(text, wrapArrayOptions(this.provider[1], GEOCODING_PROVIDER_ARRAY_OPTIONS.geoadmin)));
27443
+ break;
27444
+ case 'geonames':
27445
+ queryObservable = from(queryGeonames(text, this.provider[1]));
27446
+ break;
27447
+ case 'geoplateforme':
27448
+ queryObservable = from(queryGeoplateforme(text, {
27449
+ ...wrapArrayOptions(this.provider[1], GEOCODING_PROVIDER_ARRAY_OPTIONS.geoplateforme),
27450
+ returnTrueGeometry: true,
27451
+ }));
27452
+ break;
27453
+ default:
27454
+ return throwError(() => new Error(`Unsupported geocoding provider: ${this.provider[0]}`));
27455
+ }
27456
+ return queryObservable.pipe(catchError((error) => throwError(error)));
27457
+ }
27458
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
27459
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, providedIn: 'root' }); }
27460
+ }
27461
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingService, decorators: [{
27462
+ type: Injectable,
27463
+ args: [{
27464
+ providedIn: 'root',
27465
+ }]
27466
+ }] });
27467
+
27468
+ const GEOCODING_PROVIDER_LABELS = new InjectionToken('geocodingProviderLabels', {
27469
+ factory: () => ({}),
27470
+ });
27471
+ class LocationSearchComponent {
27472
+ constructor() {
27473
+ this.geocodingService = inject(GeocodingService);
27474
+ this.labels = inject(GEOCODING_PROVIDER_LABELS);
27475
+ this.placeholder = '';
27476
+ this.resultSelected = new EventEmitter();
27477
+ this.bboxSelected = new EventEmitter();
27478
+ this.displayWithFn = (item) => item.label;
27479
+ this.searchAction = (text) => this.geocodingService.query(text);
27480
+ }
27481
+ getSecondaryLabel(result) {
27482
+ return this.resolveLabel(result, this.labels.secondary);
27483
+ }
27484
+ getMainLabel(result) {
27485
+ return this.resolveLabel(result, this.labels.main) ?? result.label;
27486
+ }
27487
+ getTertiaryLabel(result) {
27488
+ return this.resolveLabel(result, this.labels.tertiary);
27489
+ }
27490
+ getDisplayLabel(result) {
27491
+ const tertiary = this.getTertiaryLabel(result);
27492
+ return this.getMainLabel(result) + (tertiary ? ', ' + tertiary : '');
27493
+ }
27494
+ resolveLabel(result, path) {
27495
+ if (!path)
27496
+ return undefined;
27497
+ let value;
27498
+ try {
27499
+ value = pointer.get(result, path);
27500
+ }
27501
+ catch {
27502
+ return undefined;
27503
+ }
27504
+ const values = Array.isArray(value) ? value : [value];
27505
+ const label = values
27506
+ .filter((v) => typeof v === 'string' || typeof v === 'number')
27507
+ .join(', ');
27508
+ return label || undefined;
27509
+ }
27510
+ // geoplateforme keeps a simplified geometry in geom and puts the real one,
27511
+ // as a JSON string, in properties.truegeometry when returnTrueGeometry is set
27512
+ getGeometry(result) {
27513
+ const trueGeometry = result.properties?.['truegeometry'];
27514
+ if (typeof trueGeometry === 'string') {
27515
+ return JSON.parse(trueGeometry);
27516
+ }
27517
+ return trueGeometry ?? result.geom;
27518
+ }
27519
+ handleItemSelected(item) {
27520
+ const result = item;
27521
+ this.resultSelected.emit(result);
27522
+ const geometry = this.getGeometry(result);
27523
+ if (geometry) {
27524
+ this.bboxSelected.emit({
27525
+ bbox: getGeometryBoundingBox(geometry),
27526
+ label: this.getDisplayLabel(result),
27527
+ });
27528
+ }
27529
+ }
27530
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: LocationSearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
27531
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: LocationSearchComponent, isStandalone: true, selector: "gn-ui-location-search", inputs: { placeholder: "placeholder" }, outputs: { resultSelected: "resultSelected", bboxSelected: "bboxSelected" }, ngImport: i0, template: "<gn-ui-autocomplete\n [action]=\"searchAction\"\n [displayWithFn]=\"displayWithFn\"\n [placeholder]=\"placeholder\"\n [displayWithTemplate]=\"defaultItemTpl\"\n [clearOnSelection]=\"true\"\n (itemSelected)=\"handleItemSelected($event)\"\n>\n</gn-ui-autocomplete>\n\n<ng-template #defaultItemTpl let-result>\n <div class=\"py-2\">\n @if (getSecondaryLabel(result)) {\n <div class=\"gn-ui-card-detail\">{{ getSecondaryLabel(result) }}</div>\n }\n <div class=\"gn-ui-card-title\">{{ getDisplayLabel(result) }}</div>\n </div>\n</ng-template>\n", dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27532
+ }
27533
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: LocationSearchComponent, decorators: [{
27534
+ type: Component,
27535
+ args: [{ selector: 'gn-ui-location-search', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [AutocompleteComponent], template: "<gn-ui-autocomplete\n [action]=\"searchAction\"\n [displayWithFn]=\"displayWithFn\"\n [placeholder]=\"placeholder\"\n [displayWithTemplate]=\"defaultItemTpl\"\n [clearOnSelection]=\"true\"\n (itemSelected)=\"handleItemSelected($event)\"\n>\n</gn-ui-autocomplete>\n\n<ng-template #defaultItemTpl let-result>\n <div class=\"py-2\">\n @if (getSecondaryLabel(result)) {\n <div class=\"gn-ui-card-detail\">{{ getSecondaryLabel(result) }}</div>\n }\n <div class=\"gn-ui-card-title\">{{ getDisplayLabel(result) }}</div>\n </div>\n</ng-template>\n" }]
27536
+ }], propDecorators: { placeholder: [{
27537
+ type: Input
27538
+ }], resultSelected: [{
27539
+ type: Output
27540
+ }], bboxSelected: [{
27541
+ type: Output
27542
+ }] } });
27543
+
27883
27544
  // expects the replacement key ${uuid}
27884
27545
  const RECORD_DATASET_URL_TOKEN = new InjectionToken('record-dataset-url-token');
27885
27546
  const RECORD_SERVICE_URL_TOKEN = new InjectionToken('record-service-url-token');
@@ -28038,6 +27699,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
28038
27699
  class AbstractSearchField {
28039
27700
  }
28040
27701
  class SimpleSearchField {
27702
+ get fieldIdentifier() {
27703
+ return this.customIdentifier ?? this.esFieldName;
27704
+ }
28041
27705
  constructor(esFieldName, injector, order = 'asc', orderType = 'key') {
28042
27706
  this.esFieldName = esFieldName;
28043
27707
  this.injector = injector;
@@ -28046,14 +27710,26 @@ class SimpleSearchField {
28046
27710
  this.repository = this.injector.get(RecordsRepositoryInterface);
28047
27711
  // FIXME: this is required to register runtime fields; abstract this as well
28048
27712
  this.esService = this.injector.get(ElasticsearchService);
27713
+ this.includeValues = [];
27714
+ this.excludeValues = [];
27715
+ }
27716
+ setFieldIdentifier(fieldIdentifier) {
27717
+ this.customIdentifier = fieldIdentifier;
27718
+ this.esService.registerFieldAlias(fieldIdentifier, this.esFieldName);
28049
27719
  }
28050
27720
  getAggregations() {
28051
27721
  return {
28052
- [this.esFieldName]: {
27722
+ [this.fieldIdentifier]: {
28053
27723
  type: 'terms',
28054
27724
  field: this.esFieldName,
28055
27725
  limit: 1000,
28056
27726
  sort: [this.order, this.orderType],
27727
+ ...(this.includeValues?.length && {
27728
+ includeValues: this.includeValues,
27729
+ }),
27730
+ ...(this.excludeValues?.length && {
27731
+ excludeValues: this.excludeValues,
27732
+ }),
28057
27733
  },
28058
27734
  };
28059
27735
  }
@@ -28061,7 +27737,7 @@ class SimpleSearchField {
28061
27737
  return bucket.term.toString();
28062
27738
  }
28063
27739
  getAvailableValues() {
28064
- return this.repository.aggregate(this.getAggregations()).pipe(map$1((response) => response[this.esFieldName].buckets || []), switchMap((buckets) => {
27740
+ return this.repository.aggregate(this.getAggregations()).pipe(map$1((response) => response[this.fieldIdentifier].buckets || []), switchMap((buckets) => {
28065
27741
  const bucketPromises = buckets.map(async (bucket) => ({
28066
27742
  label: `${await this.getBucketLabel(bucket)} (${bucket.count})`,
28067
27743
  value: bucket.term.toString(),
@@ -28074,7 +27750,7 @@ class SimpleSearchField {
28074
27750
  // FieldValue[]
28075
27751
  if (this.getType() === 'values') {
28076
27752
  return of({
28077
- [this.esFieldName]: values.reduce((acc, val) => {
27753
+ [this.fieldIdentifier]: values.reduce((acc, val) => {
28078
27754
  const value = val.toString();
28079
27755
  if (value !== '') {
28080
27756
  return { ...acc, [value]: true };
@@ -28085,11 +27761,11 @@ class SimpleSearchField {
28085
27761
  }
28086
27762
  // DateRange
28087
27763
  return of({
28088
- [this.esFieldName]: values[0] !== '' ? values[0] : {},
27764
+ [this.fieldIdentifier]: values[0] !== '' ? values[0] : {},
28089
27765
  });
28090
27766
  }
28091
27767
  getValuesForFilter(filters) {
28092
- const filter = filters[this.esFieldName];
27768
+ const filter = filters[this.fieldIdentifier];
28093
27769
  if (!filter)
28094
27770
  return of([]);
28095
27771
  // filter by expression
@@ -28107,6 +27783,9 @@ class SimpleSearchField {
28107
27783
  getType() {
28108
27784
  return 'values';
28109
27785
  }
27786
+ clone() {
27787
+ return Object.create(this);
27788
+ }
28110
27789
  }
28111
27790
  class TranslatedSearchField extends SimpleSearchField {
28112
27791
  constructor(esFieldName, injector, order = 'asc', orderType = 'key') {
@@ -28140,7 +27819,8 @@ class TranslatedSearchField extends SimpleSearchField {
28140
27819
  class MultilingualSearchField extends SimpleSearchField {
28141
27820
  // we're using a getter in case the token value changes over time
28142
27821
  get searchLanguage() {
28143
- return this.injector.get(METADATA_LANGUAGE, null);
27822
+ const language = this.injector.get(METADATA_LANGUAGE, null);
27823
+ return typeof language === 'function' ? language() : language;
28144
27824
  }
28145
27825
  constructor(esFieldName, injector, order = 'asc', orderType = 'key') {
28146
27826
  super(esFieldName, injector, order, orderType);
@@ -28348,17 +28028,39 @@ class DateRangeSearchField extends SimpleSearchField {
28348
28028
  return 'dateRange';
28349
28029
  }
28350
28030
  }
28031
+ // treats a resource's creation/revision dates as an interval (its min and max), so a record matches
28032
+ // when that interval intersects the filter range, not just when a single date falls inside it
28033
+ class ResourceCreationRevisionDateSearchField extends DateRangeSearchField {
28034
+ constructor(injector, order = 'desc') {
28035
+ super('resourceCreationRevisionDate', injector, order);
28036
+ const dateSourceFields = [
28037
+ 'creationDateForResource',
28038
+ 'revisionDateForResource',
28039
+ ];
28040
+ const collectSortedDates = dateSourceFields
28041
+ .map((field) => `if (doc.containsKey('${field}')) {
28042
+ for (def date : doc['${field}']) { dates.add(date.millis); }
28043
+ }`)
28044
+ .join('\n');
28045
+ this.esService.registerRuntimeField('resourceCreationRevisionDateMin', `def dates = [];
28046
+ ${collectSortedDates}
28047
+ if (dates.length > 0) { dates.sort(null); emit(dates[0]); }`, 'date');
28048
+ this.esService.registerRuntimeField('resourceCreationRevisionDateMax', `def dates = [];
28049
+ ${collectSortedDates}
28050
+ if (dates.length > 0) { dates.sort(null); emit(dates[dates.length - 1]); }`, 'date');
28051
+ }
28052
+ }
28351
28053
  class BoundingBoxSearchField extends SimpleSearchField {
28352
28054
  getAvailableValues() {
28353
28055
  return of([]);
28354
28056
  }
28355
28057
  getFiltersForValues(values) {
28356
28058
  return of({
28357
- [this.esFieldName]: values.map(Number),
28059
+ [this.fieldIdentifier]: values.map(Number),
28358
28060
  });
28359
28061
  }
28360
28062
  getValuesForFilter(filters) {
28361
- const filter = filters[this.esFieldName];
28063
+ const filter = filters[this.fieldIdentifier];
28362
28064
  return of(isBoundingBox(filter) ? filter : []);
28363
28065
  }
28364
28066
  getType() {
@@ -28457,7 +28159,7 @@ class RecordKindField extends SimpleSearchField {
28457
28159
  }
28458
28160
  getFiltersForValues(values) {
28459
28161
  const filters = {
28460
- [this.esFieldName]: values.reduce((acc, value) => {
28162
+ [this.fieldIdentifier]: values.reduce((acc, value) => {
28461
28163
  if (value === '')
28462
28164
  return { ...acc, [value]: true };
28463
28165
  const keysToAdd = this.TYPE_MAPPING[value] || [value];
@@ -28480,7 +28182,7 @@ class RecordKindField extends SimpleSearchField {
28480
28182
  return of(filters);
28481
28183
  }
28482
28184
  getValuesForFilter(filters) {
28483
- const filter = filters[this.esFieldName];
28185
+ const filter = filters[this.fieldIdentifier];
28484
28186
  if (!filter)
28485
28187
  return of([]);
28486
28188
  const activeValues = Object.keys(filter).filter((v) => filter[v]);
@@ -28509,11 +28211,16 @@ marker('search.filters.producerOrg');
28509
28211
  marker('search.filters.publisherOrg');
28510
28212
  marker('search.filters.user');
28511
28213
  marker('search.filters.changeDate');
28214
+ marker('search.filters.resourceCreationRevisionDate');
28215
+ marker('search.filters.temporalExtent');
28512
28216
  marker('search.filters.spatialExtent');
28217
+ marker('search.filters.documentStandard');
28218
+ const CUSTOM_FIELDS = new InjectionToken('custom-fields');
28513
28219
  class FieldsService {
28514
28220
  constructor() {
28515
28221
  this.injector = inject(Injector);
28516
- this.fields = {
28222
+ this.customFields = inject(CUSTOM_FIELDS, { optional: true }) ?? [];
28223
+ this.baseFields = {
28517
28224
  organization: new OrganizationSearchField(this.injector),
28518
28225
  format: new SimpleSearchField('format', this.injector, 'asc'),
28519
28226
  resourceType: new ResourceTypeLegacyField(this.injector), // Deprecated, use `recordKind` instead
@@ -28532,9 +28239,32 @@ class FieldsService {
28532
28239
  publisherOrg: new MultilingualSearchField('distributorOrgForResourceObject', this.injector, 'asc', 'key'),
28533
28240
  user: new UserSearchField(this.injector),
28534
28241
  changeDate: new DateRangeSearchField('changeDate', this.injector, 'desc'),
28242
+ resourceCreationRevisionDate: new ResourceCreationRevisionDateSearchField(this.injector, 'desc'),
28243
+ temporalExtent: new DateRangeSearchField('resourceTemporalExtentDateRange', this.injector, 'desc'),
28535
28244
  availableServices: new AvailableServicesField(this.injector),
28536
28245
  spatialExtent: new BoundingBoxSearchField('spatialExtent', this.injector),
28537
28246
  };
28247
+ this.fields = { ...this.baseFields };
28248
+ for (const customField of this.customFields) {
28249
+ const baseField = this.baseFields[customField.baseFilter];
28250
+ if (!(baseField instanceof SimpleSearchField)) {
28251
+ console.warn(`The custom field '${customField.name}' relies on a base field '${customField.baseFilter}' that is not supported. This field will be ignored.`);
28252
+ continue;
28253
+ }
28254
+ if (!customField.name.includes(':')) {
28255
+ console.warn(`The custom field '${customField.name}' is not scoped with a prefix. Custom fields must have their names prefixed, for instance "myOrg:myKeywords". This field will be ignored.`);
28256
+ continue;
28257
+ }
28258
+ const newField = baseField.clone();
28259
+ newField.setFieldIdentifier(customField.name);
28260
+ if (customField.includeValues) {
28261
+ newField.includeValues = customField.includeValues;
28262
+ }
28263
+ if (customField.excludeValues) {
28264
+ newField.excludeValues = customField.excludeValues;
28265
+ }
28266
+ this.fields[customField.name] = newField;
28267
+ }
28538
28268
  }
28539
28269
  get supportedFields() {
28540
28270
  return Object.keys(this.fields);
@@ -28582,7 +28312,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
28582
28312
  args: [{
28583
28313
  providedIn: 'root',
28584
28314
  }]
28585
- }] });
28315
+ }], ctorParameters: () => [] });
28586
28316
 
28587
28317
  class ApiCardComponent {
28588
28318
  constructor() {
@@ -30522,7 +30252,7 @@ class ServiceCapabilitiesComponent {
30522
30252
  if (this.apiLinks.length > 0 &&
30523
30253
  this.apiLinks[0].accessServiceProtocol !== 'ogcFeatures') {
30524
30254
  this.loading = true;
30525
- this.availableLayers = await getLayers(this.apiLinks[0].url.href, this.apiLinks[0].accessServiceProtocol);
30255
+ this.availableLayers = await getLayers(this.apiLinks[0].url.href, this.apiLinks[0].accessServiceProtocol, true);
30526
30256
  this.loading = false;
30527
30257
  this.cdr.detectChanges();
30528
30258
  this.filteredLayers = this.availableLayers;
@@ -30608,14 +30338,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
30608
30338
  marker('feature.catalog.attribute.type');
30609
30339
  marker('feature.catalog.attribute.name');
30610
30340
  marker('feature.catalog.attribute.code');
30611
- marker('feature.catalog.attribute.definition');
30341
+ marker('feature.catalog.attribute.description');
30612
30342
  marker('feature.catalog.attribute.values');
30613
30343
  class FeatureCatalogListComponent {
30614
30344
  constructor() {
30615
30345
  this.COLUMNS_DEFAULT = [
30616
30346
  { key: 'type', width: '25%' },
30617
30347
  { key: 'name', width: '40%' },
30618
- { key: 'definition', width: 'minmax(0px, 1fr)' },
30348
+ { key: 'description', width: 'minmax(0px, 1fr)' },
30619
30349
  ];
30620
30350
  this.COLUMN_VALUES = {
30621
30351
  key: 'values',
@@ -30636,7 +30366,7 @@ class FeatureCatalogListComponent {
30636
30366
  return col.key;
30637
30367
  }
30638
30368
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureCatalogListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
30639
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FeatureCatalogListComponent, isStandalone: true, selector: "gn-ui-feature-catalog-list", inputs: { filteredFeatureCatalog: "filteredFeatureCatalog" }, providers: [provideIcons({ iconoirList })], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "scrollable", first: true, predicate: CdkScrollable, descendants: true, static: true }, { propertyName: "panelComponent", first: true, predicate: ["expanel"], descendants: true, read: ExpandablePanelComponent, static: true }], ngImport: i0, template: "<div\n cdkScrollable\n class=\"h-[562px] relative overflow-y-auto overflow-hidden\"\n data-cy=\"feat-catalog-scrollable\"\n>\n <div #scrollContainer class=\"flex flex-col gap-2 py-5 px-5\">\n @for (\n featureType of filteredFeatureCatalog?.featureTypes;\n track featureType\n ) {\n <div class=\"rounded shadow bg-white\">\n <gn-ui-expandable-panel\n #expanel\n [collapsed]=\"filteredFeatureCatalog?.featureTypes?.length !== 1\"\n iconColor=\"black\"\n >\n <ng-template #titleTemplate>\n <div class=\"px-2\">\n <div class=\"text-lg font-bold\">{{ featureType.name }}</div>\n @if (featureType.definition) {\n <div class=\"text-sm\">\n {{ featureType.definition }}\n </div>\n }\n </div>\n </ng-template>\n @if (expanel && !expanel.collapsed) {\n <div\n class=\"grid gap-0\"\n [style.grid-template-columns]=\"\n getGridTemplateColumns(featureType.attributes)\n \"\n data-cy=\"feature-type-content\"\n >\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"py-1 px-2 text-sm font-bold text-left border-t break-all\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n [ngClass]=\"col.class || ''\"\n data-test=\"column-label\"\n >\n {{ 'feature.catalog.attribute.' + col.key | translate }}\n </div>\n }\n @if (expanel && !expanel.collapsed) {\n @for (row of featureType.attributes; track row) {\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"bg-white text-sm font-normal text-left border-t\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n data-test=\"cell-content\"\n >\n @if (col.key === 'values') {\n @if (row.values?.length > 0) {\n <gn-ui-cell-popin\n #popinRef\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n >\n <div\n cellContent\n data-cy=\"values-cell-popin-trigger\"\n >\n <gn-ui-button\n type=\"light\"\n extraClass=\"bg-transparent border-none\"\n (buttonClick)=\"popinRef.openOverlay()\"\n >\n <ng-icon name=\"iconoirList\" size=\"24\"></ng-icon>\n </gn-ui-button>\n </div>\n <div\n popinContent\n class=\"max-h-60 overflow-y-auto min-w-64 py-4 px-6\"\n style=\"scrollbar-width: thin\"\n >\n <ul class=\"list-disc list-inside mr-4\">\n @for (v of row.values; track v) {\n <li>\n {{ v.label || v.code }}\n </li>\n }\n </ul>\n </div>\n </gn-ui-cell-popin>\n }\n } @else {\n <gn-ui-truncated-text\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n [text]=\"row[col.key]\"\n ></gn-ui-truncated-text>\n }\n </div>\n }\n }\n }\n </div>\n }\n </gn-ui-expandable-panel>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: CellPopinComponent, selector: "gn-ui-cell-popin", inputs: ["extraClass", "cdkScrollContainer", "scrollContainer", "activePopin"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ExpandablePanelComponent, selector: "gn-ui-expandable-panel", inputs: ["title", "iconColor", "collapsed"] }, { kind: "component", type: TruncatedTextComponent, selector: "gn-ui-truncated-text", inputs: ["text", "extraClass", "scrollContainer", "cdkScrollContainer"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$3.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
30369
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FeatureCatalogListComponent, isStandalone: true, selector: "gn-ui-feature-catalog-list", inputs: { filteredFeatureCatalog: "filteredFeatureCatalog" }, providers: [provideIcons({ iconoirList })], viewQueries: [{ propertyName: "scrollContainer", first: true, predicate: ["scrollContainer"], descendants: true }, { propertyName: "scrollable", first: true, predicate: CdkScrollable, descendants: true, static: true }, { propertyName: "panelComponent", first: true, predicate: ["expanel"], descendants: true, read: ExpandablePanelComponent, static: true }], ngImport: i0, template: "<div\n cdkScrollable\n class=\"h-[562px] relative overflow-y-auto overflow-hidden\"\n data-cy=\"feat-catalog-scrollable\"\n>\n <div #scrollContainer class=\"flex flex-col gap-2 py-5 px-5\">\n @for (\n featureType of filteredFeatureCatalog?.featureTypes;\n track featureType\n ) {\n <div class=\"rounded shadow bg-white\">\n <gn-ui-expandable-panel\n #expanel\n [collapsed]=\"filteredFeatureCatalog?.featureTypes?.length !== 1\"\n iconColor=\"black\"\n >\n <ng-template #titleTemplate>\n <div class=\"px-2\">\n <div class=\"text-lg font-bold\">{{ featureType.name }}</div>\n @if (featureType.description) {\n <div class=\"text-sm\">\n {{ featureType.description }}\n </div>\n }\n </div>\n </ng-template>\n @if (expanel && !expanel.collapsed) {\n <div\n class=\"grid gap-0\"\n [style.grid-template-columns]=\"\n getGridTemplateColumns(featureType.attributes)\n \"\n data-cy=\"feature-type-content\"\n >\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"py-1 px-2 text-sm font-bold text-left border-t break-all\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n [ngClass]=\"col.class || ''\"\n data-test=\"column-label\"\n >\n {{ 'feature.catalog.attribute.' + col.key | translate }}\n </div>\n }\n @if (expanel && !expanel.collapsed) {\n @for (row of featureType.attributes; track row) {\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"bg-white text-sm font-normal text-left border-t\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n data-test=\"cell-content\"\n >\n @if (col.key === 'values') {\n @if (row.values?.length > 0) {\n <gn-ui-cell-popin\n #popinRef\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n >\n <div\n cellContent\n data-cy=\"values-cell-popin-trigger\"\n >\n <gn-ui-button\n type=\"light\"\n extraClass=\"bg-transparent border-none\"\n (buttonClick)=\"popinRef.openOverlay()\"\n >\n <ng-icon name=\"iconoirList\" size=\"24\"></ng-icon>\n </gn-ui-button>\n </div>\n <div\n popinContent\n class=\"max-h-60 overflow-y-auto min-w-64 py-4 px-6\"\n style=\"scrollbar-width: thin\"\n >\n <ul class=\"list-disc list-inside mr-4\">\n @for (v of row.values; track v) {\n <li>\n {{ v.label || v.value }}\n </li>\n }\n </ul>\n </div>\n </gn-ui-cell-popin>\n }\n } @else {\n <gn-ui-truncated-text\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n [text]=\"row[col.key]\"\n ></gn-ui-truncated-text>\n }\n </div>\n }\n }\n }\n </div>\n }\n </gn-ui-expandable-panel>\n </div>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "component", type: CellPopinComponent, selector: "gn-ui-cell-popin", inputs: ["extraClass", "cdkScrollContainer", "scrollContainer", "activePopin"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: ExpandablePanelComponent, selector: "gn-ui-expandable-panel", inputs: ["title", "iconColor", "collapsed"] }, { kind: "component", type: TruncatedTextComponent, selector: "gn-ui-truncated-text", inputs: ["text", "extraClass", "scrollContainer", "cdkScrollContainer"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i2$3.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
30640
30370
  }
30641
30371
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FeatureCatalogListComponent, decorators: [{
30642
30372
  type: Component,
@@ -30649,7 +30379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
30649
30379
  TruncatedTextComponent,
30650
30380
  NgIconComponent,
30651
30381
  ScrollingModule,
30652
- ], providers: [provideIcons({ iconoirList })], template: "<div\n cdkScrollable\n class=\"h-[562px] relative overflow-y-auto overflow-hidden\"\n data-cy=\"feat-catalog-scrollable\"\n>\n <div #scrollContainer class=\"flex flex-col gap-2 py-5 px-5\">\n @for (\n featureType of filteredFeatureCatalog?.featureTypes;\n track featureType\n ) {\n <div class=\"rounded shadow bg-white\">\n <gn-ui-expandable-panel\n #expanel\n [collapsed]=\"filteredFeatureCatalog?.featureTypes?.length !== 1\"\n iconColor=\"black\"\n >\n <ng-template #titleTemplate>\n <div class=\"px-2\">\n <div class=\"text-lg font-bold\">{{ featureType.name }}</div>\n @if (featureType.definition) {\n <div class=\"text-sm\">\n {{ featureType.definition }}\n </div>\n }\n </div>\n </ng-template>\n @if (expanel && !expanel.collapsed) {\n <div\n class=\"grid gap-0\"\n [style.grid-template-columns]=\"\n getGridTemplateColumns(featureType.attributes)\n \"\n data-cy=\"feature-type-content\"\n >\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"py-1 px-2 text-sm font-bold text-left border-t break-all\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n [ngClass]=\"col.class || ''\"\n data-test=\"column-label\"\n >\n {{ 'feature.catalog.attribute.' + col.key | translate }}\n </div>\n }\n @if (expanel && !expanel.collapsed) {\n @for (row of featureType.attributes; track row) {\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"bg-white text-sm font-normal text-left border-t\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n data-test=\"cell-content\"\n >\n @if (col.key === 'values') {\n @if (row.values?.length > 0) {\n <gn-ui-cell-popin\n #popinRef\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n >\n <div\n cellContent\n data-cy=\"values-cell-popin-trigger\"\n >\n <gn-ui-button\n type=\"light\"\n extraClass=\"bg-transparent border-none\"\n (buttonClick)=\"popinRef.openOverlay()\"\n >\n <ng-icon name=\"iconoirList\" size=\"24\"></ng-icon>\n </gn-ui-button>\n </div>\n <div\n popinContent\n class=\"max-h-60 overflow-y-auto min-w-64 py-4 px-6\"\n style=\"scrollbar-width: thin\"\n >\n <ul class=\"list-disc list-inside mr-4\">\n @for (v of row.values; track v) {\n <li>\n {{ v.label || v.code }}\n </li>\n }\n </ul>\n </div>\n </gn-ui-cell-popin>\n }\n } @else {\n <gn-ui-truncated-text\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n [text]=\"row[col.key]\"\n ></gn-ui-truncated-text>\n }\n </div>\n }\n }\n }\n </div>\n }\n </gn-ui-expandable-panel>\n </div>\n }\n </div>\n</div>\n" }]
30382
+ ], providers: [provideIcons({ iconoirList })], template: "<div\n cdkScrollable\n class=\"h-[562px] relative overflow-y-auto overflow-hidden\"\n data-cy=\"feat-catalog-scrollable\"\n>\n <div #scrollContainer class=\"flex flex-col gap-2 py-5 px-5\">\n @for (\n featureType of filteredFeatureCatalog?.featureTypes;\n track featureType\n ) {\n <div class=\"rounded shadow bg-white\">\n <gn-ui-expandable-panel\n #expanel\n [collapsed]=\"filteredFeatureCatalog?.featureTypes?.length !== 1\"\n iconColor=\"black\"\n >\n <ng-template #titleTemplate>\n <div class=\"px-2\">\n <div class=\"text-lg font-bold\">{{ featureType.name }}</div>\n @if (featureType.description) {\n <div class=\"text-sm\">\n {{ featureType.description }}\n </div>\n }\n </div>\n </ng-template>\n @if (expanel && !expanel.collapsed) {\n <div\n class=\"grid gap-0\"\n [style.grid-template-columns]=\"\n getGridTemplateColumns(featureType.attributes)\n \"\n data-cy=\"feature-type-content\"\n >\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"py-1 px-2 text-sm font-bold text-left border-t break-all\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n [ngClass]=\"col.class || ''\"\n data-test=\"column-label\"\n >\n {{ 'feature.catalog.attribute.' + col.key | translate }}\n </div>\n }\n @if (expanel && !expanel.collapsed) {\n @for (row of featureType.attributes; track row) {\n @for (\n col of getColumnsDefinition(featureType.attributes);\n track trackByColumn(i, col);\n let i = $index\n ) {\n <div\n class=\"bg-white text-sm font-normal text-left border-t\"\n [class.border-l]=\"i > 0\"\n [class.border-gray-300]=\"i > 0\"\n data-test=\"cell-content\"\n >\n @if (col.key === 'values') {\n @if (row.values?.length > 0) {\n <gn-ui-cell-popin\n #popinRef\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n >\n <div\n cellContent\n data-cy=\"values-cell-popin-trigger\"\n >\n <gn-ui-button\n type=\"light\"\n extraClass=\"bg-transparent border-none\"\n (buttonClick)=\"popinRef.openOverlay()\"\n >\n <ng-icon name=\"iconoirList\" size=\"24\"></ng-icon>\n </gn-ui-button>\n </div>\n <div\n popinContent\n class=\"max-h-60 overflow-y-auto min-w-64 py-4 px-6\"\n style=\"scrollbar-width: thin\"\n >\n <ul class=\"list-disc list-inside mr-4\">\n @for (v of row.values; track v) {\n <li>\n {{ v.label || v.value }}\n </li>\n }\n </ul>\n </div>\n </gn-ui-cell-popin>\n }\n } @else {\n <gn-ui-truncated-text\n [scrollContainer]=\"scrollContainer\"\n [cdkScrollContainer]=\"scrollable\"\n [text]=\"row[col.key]\"\n ></gn-ui-truncated-text>\n }\n </div>\n }\n }\n }\n </div>\n }\n </gn-ui-expandable-panel>\n </div>\n }\n </div>\n</div>\n" }]
30653
30383
  }], propDecorators: { filteredFeatureCatalog: [{
30654
30384
  type: Input
30655
30385
  }], scrollContainer: [{
@@ -31787,6 +31517,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
31787
31517
  ], template: "<div class=\"flex flex-col gap-6 p-6 items-start pointer-events-none\">\n @for (\n notification of notificationsService.notifications$ | async;\n track trackById($index, notification)\n ) {\n <gn-ui-notification\n class=\"max-w-full pointer-events-auto\"\n [text]=\"notification.text\"\n [type]=\"notification.type\"\n [title]=\"notification.title\"\n [closeMessage]=\"notification.closeMessage\"\n (notificationClose)=\"\n notificationsService.removeNotificationById(notification.id)\n \"\n [@enterExit]\n ></gn-ui-notification>\n }\n</div>\n" }]
31788
31518
  }] });
31789
31519
 
31520
+ marker('search.filters.spatialExtent.searchLocation');
31521
+ // in MB, null means no limit
31522
+ const SPATIAL_EXTENT_MAX_FILE_SIZE = new InjectionToken('spatialExtentMaxFileSize', { factory: () => null });
31790
31523
  class FilterDropdownComponent {
31791
31524
  constructor() {
31792
31525
  this.searchFacade = inject(SearchFacade);
@@ -31794,9 +31527,12 @@ class FilterDropdownComponent {
31794
31527
  this.fieldsService = inject(FieldsService);
31795
31528
  this.notificationsService = inject(NotificationsService);
31796
31529
  this.translateService = inject(TranslateService);
31797
- this.spatialExtentMaxFileSize = getOptionalSearchConfig()?.SPATIAL_EXTENT_MAX_FILE_SIZE;
31530
+ this.spatialExtentMaxFileSize = inject(SPATIAL_EXTENT_MAX_FILE_SIZE);
31798
31531
  this.selected$ = this.searchFacade.searchFilters$.pipe(switchMap((filters) => this.fieldsService.readFieldValuesFromFilters(filters)), map$1((fieldValues) => fieldValues[this.fieldName]), filter$1((selected) => !!selected), startWith$1([]), catchError(() => of([])));
31799
31532
  this.selectedDateRange$ = this.selected$.pipe(map$1((selected) => (Array.isArray(selected) ? {} : selected)));
31533
+ this.selectedBoundingBox$ = this.selected$.pipe(map$1((selected) => Array.isArray(selected) && selected.length > 0
31534
+ ? selected
31535
+ : null));
31800
31536
  this.spatialExtentErrorNotificationId = null;
31801
31537
  }
31802
31538
  onSelectedValues(values) {
@@ -31805,9 +31541,16 @@ class FilterDropdownComponent {
31805
31541
  .subscribe((filters) => this.searchService.updateFilters(filters));
31806
31542
  }
31807
31543
  onBboxChange(bbox) {
31808
- console.log(bbox);
31544
+ this.fieldsService
31545
+ .buildFiltersFromFieldValues({
31546
+ [this.fieldName]: bbox,
31547
+ })
31548
+ .subscribe((filters) => this.searchService.updateFilters(filters));
31809
31549
  this.clearSpatialExtentErrorNotification();
31810
31550
  }
31551
+ onLocationSelected({ bbox, label }) {
31552
+ this.spatialExtentDropdown.setLocationBbox(bbox, label);
31553
+ }
31811
31554
  onSpatialExtentError(error) {
31812
31555
  this.clearSpatialExtentErrorNotification();
31813
31556
  this.spatialExtentErrorNotificationId =
@@ -31838,7 +31581,7 @@ class FilterDropdownComponent {
31838
31581
  .subscribe((filters) => this.searchService.updateFilters(filters));
31839
31582
  }
31840
31583
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FilterDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31841
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FilterDropdownComponent, isStandalone: true, selector: "gn-ui-filter-dropdown", inputs: { fieldName: "fieldName", title: "title" }, ngImport: i0, template: "@if (fieldType === 'dateRange') {\n <gn-ui-date-range-dropdown\n [title]=\"title\"\n [dateRange]=\"(selectedDateRange$ | async) ?? {}\"\n (dateRangeChange)=\"onDateRangeChange($event)\"\n ></gn-ui-date-range-dropdown>\n} @else if (fieldType === 'spatialExtent') {\n <gn-ui-spatial-extent-dropdown\n [title]=\"title\"\n [maxFileSizeMb]=\"spatialExtentMaxFileSize\"\n (bboxChange)=\"onBboxChange($event)\"\n (errorChange)=\"onSpatialExtentError($event)\"\n ></gn-ui-spatial-extent-dropdown>\n} @else {\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"title\"\n [maxRows]=\"6\"\n [choices]=\"(choices$ | async) || []\"\n [selected]=\"selected$ | async\"\n [allowSearch]=\"true\"\n (selectValues)=\"onSelectedValues($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n </gn-ui-dropdown-multiselect>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DateRangeDropdownComponent, selector: "gn-ui-date-range-dropdown", inputs: ["title", "dateRange"], outputs: ["dateRangeChange"] }, { kind: "component", type: DropdownMultiselectComponent, selector: "gn-ui-dropdown-multiselect", inputs: ["title", "choices", "selected", "allowSearch", "maxRows", "searchInputValue"], outputs: ["selectValues"] }, { kind: "component", type: SpatialExtentDropdownComponent, selector: "gn-ui-spatial-extent-dropdown", inputs: ["title", "maxFileSizeMb"], outputs: ["bboxChange", "errorChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31584
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FilterDropdownComponent, isStandalone: true, selector: "gn-ui-filter-dropdown", inputs: { fieldName: "fieldName", title: "title" }, viewQueries: [{ propertyName: "spatialExtentDropdown", first: true, predicate: SpatialExtentDropdownComponent, descendants: true }], ngImport: i0, template: "@if (fieldType === 'dateRange') {\n <gn-ui-date-range-dropdown\n [title]=\"title\"\n [dateRange]=\"(selectedDateRange$ | async) ?? {}\"\n (dateRangeChange)=\"onDateRangeChange($event)\"\n [attr.data-cy-field]=\"fieldName\"\n ></gn-ui-date-range-dropdown>\n} @else if (fieldType === 'spatialExtent') {\n <gn-ui-spatial-extent-dropdown\n [title]=\"title\"\n [initialBbox]=\"(selectedBoundingBox$ | async) ?? null\"\n [maxFileSizeMb]=\"spatialExtentMaxFileSize\"\n (bboxChange)=\"onBboxChange($event)\"\n (errorChange)=\"onSpatialExtentError($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n <gn-ui-location-search\n [placeholder]=\"'search.filters.spatialExtent.searchLocation' | translate\"\n (bboxSelected)=\"onLocationSelected($event)\"\n data-cy=\"locationSearch\"\n ></gn-ui-location-search>\n </gn-ui-spatial-extent-dropdown>\n} @else {\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"title\"\n [maxRows]=\"6\"\n [choices]=\"(choices$ | async) || []\"\n [selected]=\"selected$ | async\"\n [allowSearch]=\"true\"\n (selectValues)=\"onSelectedValues($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n </gn-ui-dropdown-multiselect>\n}\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: DateRangeDropdownComponent, selector: "gn-ui-date-range-dropdown", inputs: ["title", "dateRange"], outputs: ["dateRangeChange"] }, { kind: "component", type: DropdownMultiselectComponent, selector: "gn-ui-dropdown-multiselect", inputs: ["title", "choices", "selected", "allowSearch", "maxRows", "searchInputValue"], outputs: ["selectValues"] }, { kind: "component", type: SpatialExtentDropdownComponent, selector: "gn-ui-spatial-extent-dropdown", inputs: ["title", "maxFileSizeMb", "initialBbox"], outputs: ["bboxChange", "errorChange"] }, { kind: "component", type: LocationSearchComponent, selector: "gn-ui-location-search", inputs: ["placeholder"], outputs: ["resultSelected", "bboxSelected"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31842
31585
  }
31843
31586
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FilterDropdownComponent, decorators: [{
31844
31587
  type: Component,
@@ -31847,11 +31590,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
31847
31590
  DateRangeDropdownComponent,
31848
31591
  DropdownMultiselectComponent,
31849
31592
  SpatialExtentDropdownComponent,
31850
- ], template: "@if (fieldType === 'dateRange') {\n <gn-ui-date-range-dropdown\n [title]=\"title\"\n [dateRange]=\"(selectedDateRange$ | async) ?? {}\"\n (dateRangeChange)=\"onDateRangeChange($event)\"\n ></gn-ui-date-range-dropdown>\n} @else if (fieldType === 'spatialExtent') {\n <gn-ui-spatial-extent-dropdown\n [title]=\"title\"\n [maxFileSizeMb]=\"spatialExtentMaxFileSize\"\n (bboxChange)=\"onBboxChange($event)\"\n (errorChange)=\"onSpatialExtentError($event)\"\n ></gn-ui-spatial-extent-dropdown>\n} @else {\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"title\"\n [maxRows]=\"6\"\n [choices]=\"(choices$ | async) || []\"\n [selected]=\"selected$ | async\"\n [allowSearch]=\"true\"\n (selectValues)=\"onSelectedValues($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n </gn-ui-dropdown-multiselect>\n}\n" }]
31593
+ LocationSearchComponent,
31594
+ TranslatePipe,
31595
+ ], template: "@if (fieldType === 'dateRange') {\n <gn-ui-date-range-dropdown\n [title]=\"title\"\n [dateRange]=\"(selectedDateRange$ | async) ?? {}\"\n (dateRangeChange)=\"onDateRangeChange($event)\"\n [attr.data-cy-field]=\"fieldName\"\n ></gn-ui-date-range-dropdown>\n} @else if (fieldType === 'spatialExtent') {\n <gn-ui-spatial-extent-dropdown\n [title]=\"title\"\n [initialBbox]=\"(selectedBoundingBox$ | async) ?? null\"\n [maxFileSizeMb]=\"spatialExtentMaxFileSize\"\n (bboxChange)=\"onBboxChange($event)\"\n (errorChange)=\"onSpatialExtentError($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n <gn-ui-location-search\n [placeholder]=\"'search.filters.spatialExtent.searchLocation' | translate\"\n (bboxSelected)=\"onLocationSelected($event)\"\n data-cy=\"locationSearch\"\n ></gn-ui-location-search>\n </gn-ui-spatial-extent-dropdown>\n} @else {\n <gn-ui-dropdown-multiselect\n class=\"w-full\"\n [title]=\"title\"\n [maxRows]=\"6\"\n [choices]=\"(choices$ | async) || []\"\n [selected]=\"selected$ | async\"\n [allowSearch]=\"true\"\n (selectValues)=\"onSelectedValues($event)\"\n [attr.data-cy-field]=\"fieldName\"\n >\n </gn-ui-dropdown-multiselect>\n}\n" }]
31851
31596
  }], propDecorators: { fieldName: [{
31852
31597
  type: Input
31853
31598
  }], title: [{
31854
31599
  type: Input
31600
+ }], spatialExtentDropdown: [{
31601
+ type: ViewChild,
31602
+ args: [SpatialExtentDropdownComponent]
31855
31603
  }] } });
31856
31604
 
31857
31605
  class FuzzySearchComponent {
@@ -31908,7 +31656,7 @@ class FuzzySearchComponent {
31908
31656
  this.isSearchActive.emit(event);
31909
31657
  }
31910
31658
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FuzzySearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
31911
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: FuzzySearchComponent, isStandalone: true, selector: "gn-ui-fuzzy-search", inputs: { autoFocus: "autoFocus", forceTrackPosition: "forceTrackPosition", enterButton: "enterButton", placeholder: "placeholder" }, outputs: { itemSelected: "itemSelected", inputSubmitted: "inputSubmitted", isSearchActive: "isSearchActive" }, viewQueries: [{ propertyName: "autocomplete", first: true, predicate: AutocompleteComponent, descendants: true }], ngImport: i0, template: "<gn-ui-autocomplete\n [placeholder]=\"placeholder ?? ('search.field.any.placeholder' | translate)\"\n [displayWithFn]=\"displayWithFn\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleItemSelection($event)\"\n (inputSubmitted)=\"handleInputSubmission($event)\"\n (inputCleared)=\"handleInputCleared()\"\n (isSearchActive)=\"handleSearchActive($event)\"\n [value]=\"searchInputValue$ | async\"\n [preventCompleteOnSelection]=\"true\"\n [autoFocus]=\"autoFocus\"\n [allowSubmit]=\"true\"\n [forceTrackPosition]=\"forceTrackPosition\"\n [enterButton]=\"enterButton\"\n></gn-ui-autocomplete>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31659
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: FuzzySearchComponent, isStandalone: true, selector: "gn-ui-fuzzy-search", inputs: { autoFocus: "autoFocus", forceTrackPosition: "forceTrackPosition", enterButton: "enterButton", placeholder: "placeholder" }, outputs: { itemSelected: "itemSelected", inputSubmitted: "inputSubmitted", isSearchActive: "isSearchActive" }, viewQueries: [{ propertyName: "autocomplete", first: true, predicate: AutocompleteComponent, descendants: true }], ngImport: i0, template: "<gn-ui-autocomplete\n [placeholder]=\"placeholder ?? ('search.field.any.placeholder' | translate)\"\n [displayWithFn]=\"displayWithFn\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleItemSelection($event)\"\n (inputSubmitted)=\"handleInputSubmission($event)\"\n (inputCleared)=\"handleInputCleared()\"\n (isSearchActive)=\"handleSearchActive($event)\"\n [value]=\"searchInputValue$ | async\"\n [preventCompleteOnSelection]=\"true\"\n [autoFocus]=\"autoFocus\"\n [allowSubmit]=\"true\"\n [forceTrackPosition]=\"forceTrackPosition\"\n [enterButton]=\"enterButton\"\n></gn-ui-autocomplete>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31912
31660
  }
31913
31661
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FuzzySearchComponent, decorators: [{
31914
31662
  type: Component,
@@ -32467,6 +32215,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
32467
32215
 
32468
32216
  marker('search.filters.summaryLabel.user');
32469
32217
  marker('search.filters.summaryLabel.changeDate');
32218
+ marker('search.filters.summaryLabel.resourceCreationRevisionDate');
32219
+ marker('search.filters.summaryLabel.temporalExtent');
32470
32220
  const OPEN_BOUND = '…';
32471
32221
  class SearchFiltersSummaryItemComponent {
32472
32222
  constructor() {
@@ -32848,95 +32598,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
32848
32598
  ], template: "<div\n class=\"bg-white rounded shadow shadow-lg relative h-full w-[400px] overflow-hidden\"\n>\n <div class=\"p-3 border-b border-gray-300 flex items-center\">\n <ng-icon class=\"mr-2\" name=\"matLayersOutline\"></ng-icon>\n <span translate>map.layers.list</span>\n </div>\n <div class=\"flex flex-col px-4 divide-y divide-y-gray-50\">\n @for (layer of layers$ | async; track layer; let index = $index) {\n <div class=\"flex flex-row py-3\">\n <ng-icon class=\"-ml-2 mr-2 shrink-0\" name=\"matChevronRight\"></ng-icon>\n <span class=\"mr-2 grow\">{{ layer.label }}</span>\n <a\n href\n class=\"underline text-sm text-red-700 hover:text-red-900\"\n (click)=\"deleteLayer(index); $event.preventDefault()\"\n >\n delete\n </a>\n </div>\n }\n </div>\n <gn-ui-expandable-panel-button [titleTemplate]=\"addLayerTitle\">\n <mat-tab-group animationDuration=\"200ms\" class=\"h-full\">\n <mat-tab [label]=\"'map.add.layer.catalog' | translate\">\n <div class=\"p-3\">\n <gn-ui-add-layer-from-catalog></gn-ui-add-layer-from-catalog>\n </div>\n </mat-tab>\n <mat-tab [label]=\"'map.add.layer.wms' | translate\" bodyClass=\"h-full\">\n <div class=\"p-3\">\n <gn-ui-add-layer-from-wms></gn-ui-add-layer-from-wms>\n </div>\n </mat-tab>\n <mat-tab [label]=\"'map.add.layer.wfs' | translate\" bodyClass=\"h-full\">\n <div class=\"p-3\">\n <gn-ui-add-layer-from-wfs></gn-ui-add-layer-from-wfs>\n </div>\n </mat-tab>\n <mat-tab [label]=\"'map.add.layer.ogc.api' | translate\" bodyClass=\"h-full\">\n <div class=\"p-3\">\n <gn-ui-add-layer-from-ogc-api\n [ogcUrl]=\"ogcUrl\"\n (layerAdded)=\"addLayer($event)\"\n ></gn-ui-add-layer-from-ogc-api>\n </div>\n </mat-tab>\n <mat-tab [label]=\"'map.add.layer.file' | translate\" bodyClass=\"h-full\">\n <div class=\"p-3\">\n <gn-ui-add-layer-from-file></gn-ui-add-layer-from-file>\n </div>\n </mat-tab>\n </mat-tab-group>\n </gn-ui-expandable-panel-button>\n</div>\n\n<ng-template #addLayerTitle>\n <ng-icon class=\"mr-4\" name=\"matAddCircleOutlineOutline\"> </ng-icon>\n <span translate>map.add.layer</span>\n</ng-template>\n" }]
32849
32599
  }] });
32850
32600
 
32851
- class GeocodingComponent {
32852
- constructor() {
32853
- this.mapFacade = inject(MapFacade);
32854
- this.geocodingService = inject(GeocodingService);
32855
- this.searchText = '';
32856
- this.results = [];
32857
- this.searchTextChanged = new Subject();
32858
- this.destroy$ = new Subject();
32859
- this.errorMessage = null;
32860
- this.searchTextChanged
32861
- .pipe(debounceTime(300), switchMap$1((searchText) => {
32862
- return from(this.geocodingService.query(searchText)).pipe(catchError$1((error) => {
32863
- this.errorMessage =
32864
- 'An error occurred while searching. Please try again.';
32865
- console.error(error);
32866
- return [];
32867
- }));
32868
- }), takeUntil(this.destroy$))
32869
- .subscribe((results) => {
32870
- this.results = results;
32871
- });
32872
- }
32873
- ngOnDestroy() {
32874
- this.destroy$.next();
32875
- this.destroy$.complete();
32876
- }
32877
- onSearchChange(searchText) {
32878
- if (!searchText) {
32879
- this.clearSearch();
32880
- return;
32881
- }
32882
- else {
32883
- this.searchTextChanged.next(searchText);
32884
- }
32885
- }
32886
- clearSearch() {
32887
- this.searchText = '';
32888
- this.results = [];
32889
- this.errorMessage = null;
32890
- }
32891
- async zoomToLocation(result) {
32892
- const geometry = result.geom;
32893
- if (geometry.type === 'Point') {
32894
- await this.zoomToPoint(geometry.coordinates);
32895
- }
32896
- else if (geometry.type === 'Polygon') {
32897
- await this.zoomToPolygon(geometry.coordinates);
32898
- }
32899
- else {
32900
- console.error(`Unsupported geometry type: ${geometry.type}`);
32901
- }
32902
- }
32903
- async zoomToPoint(pointCoords) {
32904
- const context = await firstValueFrom(this.mapFacade.context$);
32905
- const view = {
32906
- center: pointCoords,
32907
- zoom: 10,
32908
- };
32909
- this.mapFacade.applyContext({
32910
- ...context,
32911
- view,
32912
- });
32913
- }
32914
- async zoomToPolygon(polygonCoords) {
32915
- const context = await firstValueFrom(this.mapFacade.context$);
32916
- const view = {
32917
- geometry: {
32918
- type: 'Polygon',
32919
- coordinates: polygonCoords,
32920
- },
32921
- };
32922
- this.mapFacade.applyContext({
32923
- ...context,
32924
- view,
32925
- });
32926
- }
32927
- onEnterPress() {
32928
- if (this.results && this.results.length > 0) {
32929
- this.zoomToLocation(this.results[0]);
32930
- }
32931
- }
32932
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
32933
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: GeocodingComponent, isStandalone: true, selector: "gn-ui-geocoding", ngImport: i0, template: "<gn-ui-search-input\n [(value)]=\"searchText\"\n (valueChange)=\"onSearchChange($event)\"\n (keyup.enter)=\"onEnterPress()\"\n [placeholder]=\"'map.geocoding.placeholder' | translate\"\n>\n</gn-ui-search-input>\n@if (results && results.length) {\n <ul\n class=\"bg-gray-50 border border-gray-200 w-full mt-2 shadow-sm rounded-lg\"\n >\n @for (result of results; track result) {\n <li\n (click)=\"zoomToLocation(result)\"\n class=\"flex items-center pl-8 pr-4 py-2 border-b border-gray-200 relative cursor-pointer hover:bg-blue-100 hover:text-gray-800 transition duration-300 ease-in-out\"\n >\n <svg\n class=\"stroke-current text-blue-500 absolute w-5 h-5 left-3 top-3\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z\"\n />\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 11a3 3 0 11-6 0 3 3 0 016 0z\"\n />\n </svg>\n <span class=\"font-sans font-semibold ml-4\">{{ result.label }}</span>\n </li>\n }\n </ul>\n}\n", styles: [""], dependencies: [{ kind: "component", type: SearchInputComponent, selector: "gn-ui-search-input", inputs: ["value", "placeholder"], outputs: ["valueChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
32934
- }
32935
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GeocodingComponent, decorators: [{
32936
- type: Component,
32937
- args: [{ selector: 'gn-ui-geocoding', standalone: true, imports: [SearchInputComponent, TranslatePipe], template: "<gn-ui-search-input\n [(value)]=\"searchText\"\n (valueChange)=\"onSearchChange($event)\"\n (keyup.enter)=\"onEnterPress()\"\n [placeholder]=\"'map.geocoding.placeholder' | translate\"\n>\n</gn-ui-search-input>\n@if (results && results.length) {\n <ul\n class=\"bg-gray-50 border border-gray-200 w-full mt-2 shadow-sm rounded-lg\"\n >\n @for (result of results; track result) {\n <li\n (click)=\"zoomToLocation(result)\"\n class=\"flex items-center pl-8 pr-4 py-2 border-b border-gray-200 relative cursor-pointer hover:bg-blue-100 hover:text-gray-800 transition duration-300 ease-in-out\"\n >\n <svg\n class=\"stroke-current text-blue-500 absolute w-5 h-5 left-3 top-3\"\n xmlns=\"http://www.w3.org/2000/svg\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n >\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z\"\n />\n <path\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n stroke-width=\"2\"\n d=\"M15 11a3 3 0 11-6 0 3 3 0 016 0z\"\n />\n </svg>\n <span class=\"font-sans font-semibold ml-4\">{{ result.label }}</span>\n </li>\n }\n </ul>\n}\n" }]
32938
- }], ctorParameters: () => [] });
32939
-
32940
32601
  /*
32941
32602
  Metadata actions
32942
32603
  */
@@ -34119,7 +33780,7 @@ class DataService {
34119
33780
  }));
34120
33781
  }
34121
33782
  async getDownloadLinksFromOgcApiFeatures(ogcApiLink) {
34122
- const collectionInfo = await this.getDownloadUrlsFromOgcApi(ogcApiLink.url.href);
33783
+ const collectionInfo = await this.getDownloadUrlsFromOgcApi(ogcApiLink.url.href, ogcApiLink.name);
34123
33784
  return Object.keys(collectionInfo.bulkDownloadLinks).map((mimeType) => {
34124
33785
  const urlWithoutLimit = new URL(collectionInfo.bulkDownloadLinks[mimeType]);
34125
33786
  urlWithoutLimit.searchParams.delete('limit');
@@ -34132,27 +33793,31 @@ class DataService {
34132
33793
  };
34133
33794
  });
34134
33795
  }
34135
- async getDownloadUrlsFromOgcApi(url) {
33796
+ async getTargetCollectionId(endpoint, collectionId) {
33797
+ const collections = await endpoint.featureCollections;
33798
+ return collections.length === 1 && !collectionId
33799
+ ? collections[0]
33800
+ : collectionId;
33801
+ }
33802
+ async getDownloadUrlsFromOgcApi(url, collectionId) {
34136
33803
  const endpoint = new OgcApiEndpoint(url);
34137
- return await endpoint.featureCollections
34138
- .then((collections) => {
34139
- return endpoint.getCollectionInfo(collections[0]);
34140
- })
34141
- .catch((error) => {
34142
- throw new Error(`ogc.unreachable.unknown`);
34143
- });
33804
+ try {
33805
+ const id = await this.getTargetCollectionId(endpoint, collectionId);
33806
+ return await endpoint.getCollectionInfo(id);
33807
+ }
33808
+ catch {
33809
+ throw new Error('ogc.unreachable.unknown');
33810
+ }
34144
33811
  }
34145
- async getItemsFromOgcApi(url, limit) {
33812
+ async getItemsFromOgcApi(url, collectionId, limit) {
34146
33813
  const endpoint = new OgcApiEndpoint(url);
34147
- return await endpoint.featureCollections
34148
- .then((collections) => {
34149
- return collections.length
34150
- ? endpoint.getCollectionItems(collections[0], limit)
34151
- : null;
34152
- })
34153
- .catch(() => {
34154
- throw new Error(`ogc.unreachable.unknown`);
34155
- });
33814
+ try {
33815
+ const id = await this.getTargetCollectionId(endpoint, collectionId);
33816
+ return await endpoint.getCollectionItems(id, limit);
33817
+ }
33818
+ catch {
33819
+ throw new Error('ogc.unreachable.unknown');
33820
+ }
34156
33821
  }
34157
33822
  async getItemsFromStacApi(url, options) {
34158
33823
  return await StacEndpoint.getItemsFromUrl(url, options)
@@ -34240,7 +33905,7 @@ class DataService {
34240
33905
  }
34241
33906
  else if (link.type === 'service' &&
34242
33907
  link.accessServiceProtocol === 'ogcFeatures') {
34243
- return from(this.getDownloadUrlsFromOgcApi(link.url.href)).pipe(switchMap$1((collectionInfo) => {
33908
+ return from(this.getDownloadUrlsFromOgcApi(link.url.href, link.name)).pipe(switchMap$1((collectionInfo) => {
34244
33909
  const isMimeTypeJson = (mimeType) => {
34245
33910
  return mimeType.toLowerCase().indexOf('json') > -1;
34246
33911
  };
@@ -35184,7 +34849,7 @@ class MdViewFacade {
35184
34849
  if (this.linkClassifier.hasUsage(link, LinkUsage.GEODATA)) {
35185
34850
  if (link.type === 'service' &&
35186
34851
  link.accessServiceProtocol === 'ogcFeatures') {
35187
- return from(this.dataService.getItemsFromOgcApi(link.url.href, 1)).pipe(map$1((collectionRecords) => {
34852
+ return from(this.dataService.getItemsFromOgcApi(link.url.href, link.name, 1)).pipe(map$1((collectionRecords) => {
35188
34853
  return collectionRecords &&
35189
34854
  collectionRecords[0] &&
35190
34855
  collectionRecords[0].geometry
@@ -35267,7 +34932,7 @@ class MdViewEffects {
35267
34932
  }
35268
34933
  return loadFullMetadataSuccess({ full: record });
35269
34934
  }), catchError((error) => of(loadFullMetadataFailure({ otherError: error.message })))));
35270
- this.loadFeatureCatalog$ = createEffect(() => this.actions$.pipe(ofType(loadFullMetadataSuccess), filter$1(({ full }) => full !== undefined), switchMap$1(({ full }) => this.recordsRepository.getFeatureCatalog(full)), map$1((featureCatalog) => loadFeatureCatalogSuccess({
34935
+ this.loadFeatureCatalog$ = createEffect(() => this.actions$.pipe(ofType(loadFullMetadataSuccess), filter$1(({ full }) => full !== undefined), switchMap$1(({ full }) => this.recordsRepository.queryLinkedFeatureCatalog(full)), map$1((featureCatalog) => loadFeatureCatalogSuccess({
35271
34936
  datasetCatalog: featureCatalog,
35272
34937
  })), catchError((error) => of(loadFeatureCatalogFailure({
35273
34938
  error: error.message,
@@ -36926,6 +36591,15 @@ const DEFAULT_CONFIGURATION = {
36926
36591
  labelKey: marker('editor.record.form.field.title'),
36927
36592
  },
36928
36593
  },
36594
+ {
36595
+ model: 'flags',
36596
+ modelSpecifier: 'flags:IS_REFERENCE_DATASET',
36597
+ formFieldConfig: {
36598
+ labelKey: marker('editor.record.form.field.flags.IS_REFERENCE_DATASET'),
36599
+ hintKey: marker('editor.record.form.field.hint.flags.IS_REFERENCE_DATASET'),
36600
+ },
36601
+ hidden: '${record.kind != "dataset" || !user.isAdmin}',
36602
+ },
36929
36603
  {
36930
36604
  model: 'abstract',
36931
36605
  formFieldConfig: {
@@ -37981,7 +37655,7 @@ class GenericKeywordsComponent {
37981
37655
  this.deletedKeyword.emit(keyword);
37982
37656
  }
37983
37657
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GenericKeywordsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
37984
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: GenericKeywordsComponent, isStandalone: true, selector: "gn-ui-generic-keywords", inputs: { keywords: "keywords", keywordTypes: "keywordTypes", placeholder: "placeholder", allowSubmit: "allowSubmit" }, outputs: { changedKeywords: "changedKeywords", addedKeyword: "addedKeyword", deletedKeyword: "deletedKeyword" }, ngImport: i0, template: "<div class=\"flex flex-col gap-4\">\n <gn-ui-autocomplete\n [placeholder]=\"placeholder\"\n [displayWithFn]=\"displayWithFn\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleItemSelection($event)\"\n [preventCompleteOnSelection]=\"false\"\n [minCharacterCount]=\"1\"\n [allowSubmit]=\"false\"\n [clearOnSelection]=\"true\"\n ></gn-ui-autocomplete>\n <div class=\"flex gap-2 flex-wrap\">\n @for (keyword of keywords; track keyword) {\n <gn-ui-keyword-badge\n [keyword]=\"keyword\"\n [editable]=\"true\"\n (keywordRemove)=\"removeKeyword($event)\"\n ></gn-ui-keyword-badge>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: KeywordBadgeComponent, selector: "gn-ui-keyword-badge", inputs: ["keyword", "editable"], outputs: ["keywordClick", "keywordRemove"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37658
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: GenericKeywordsComponent, isStandalone: true, selector: "gn-ui-generic-keywords", inputs: { keywords: "keywords", keywordTypes: "keywordTypes", placeholder: "placeholder", allowSubmit: "allowSubmit" }, outputs: { changedKeywords: "changedKeywords", addedKeyword: "addedKeyword", deletedKeyword: "deletedKeyword" }, ngImport: i0, template: "<div class=\"flex flex-col gap-4\">\n <gn-ui-autocomplete\n [placeholder]=\"placeholder\"\n [displayWithFn]=\"displayWithFn\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleItemSelection($event)\"\n [preventCompleteOnSelection]=\"false\"\n [minCharacterCount]=\"1\"\n [allowSubmit]=\"false\"\n [clearOnSelection]=\"true\"\n ></gn-ui-autocomplete>\n <div class=\"flex gap-2 flex-wrap\">\n @for (keyword of keywords; track keyword) {\n <gn-ui-keyword-badge\n [keyword]=\"keyword\"\n [editable]=\"true\"\n (keywordRemove)=\"removeKeyword($event)\"\n ></gn-ui-keyword-badge>\n }\n </div>\n</div>\n", dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: KeywordBadgeComponent, selector: "gn-ui-keyword-badge", inputs: ["keyword", "editable"], outputs: ["keywordClick", "keywordRemove"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
37985
37659
  }
37986
37660
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: GenericKeywordsComponent, decorators: [{
37987
37661
  type: Component,
@@ -38573,7 +38247,7 @@ class FormFieldContactsForResourceComponent {
38573
38247
  provideNgIconsConfig({
38574
38248
  size: '1.5rem',
38575
38249
  }),
38576
- ], usesOnChanges: true, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n <div class=\"flex flex-row flex-wrap gap-2\" data-test=\"rolesToPick\">\n @for (role of rolesToPick; track role) {\n <gn-ui-button type=\"gray\" (buttonClick)=\"addRoleToDisplay(role)\">\n <ng-icon name=\"iconoirPlus\" class=\"text-primary\"></ng-icon>\n &nbsp;\n <span translate>{{ roleToLabel(role) }}</span>\n </gn-ui-button>\n }\n </div>\n @if (value.length === 0) {\n <div\n class=\"p-4 border border-primary bg-primary-lightest rounded-lg\"\n translate\n >\n editor.record.form.field.contactsForResource.noContact\n </div>\n }\n @if (roleSectionsToDisplay && roleSectionsToDisplay.length > 0) {\n <div class=\"mt-8\" data-test=\"displayedRoles\">\n @for (\n role of roleSectionsToDisplay;\n track role;\n let index = $index;\n let isLast = $last\n ) {\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex flex-row justify-between\">\n <span class=\"font-bold text-base\" translate>{{\n roleToLabel(role)\n }}</span>\n </div>\n @if (role !== 'unspecified' && role !== 'other') {\n <gn-ui-autocomplete\n [placeholder]=\"\n 'editor.record.form.field.contactsForResource.placeholder'\n | translate\n \"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"addContact($event, role)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"1\"\n [clearOnSelection]=\"true\"\n [allowSubmit]=\"false\"\n >\n </gn-ui-autocomplete>\n }\n @if (contactsForRessourceByRole.get(role); as contacts) {\n <gn-ui-sortable-list\n [items]=\"contacts\"\n (itemsOrderChange)=\"handleContactsChanged($event, role)\"\n [elementTemplate]=\"contactTemplate\"\n ></gn-ui-sortable-list>\n <ng-template #contactTemplate let-contact>\n <gn-ui-contact-card [contact]=\"contact\"></gn-ui-contact-card>\n </ng-template>\n }\n @if (!isLast) {\n <hr class=\"border-t-[#D6D3D1] mt-4 mb-6\" />\n }\n </div>\n }\n </div>\n }\n</div>\n", styles: [":host{--gn-ui-button-padding: 8px 8px;--gn-ui-button-rounded: 8px}\n"], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: ContactCardComponent, selector: "gn-ui-contact-card", inputs: ["contact"] }, { kind: "component", type: SortableListComponent, selector: "gn-ui-sortable-list", inputs: ["elementTemplate", "items"], outputs: ["itemsOrderChange"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38250
+ ], usesOnChanges: true, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n <div class=\"flex flex-row flex-wrap gap-2\" data-test=\"rolesToPick\">\n @for (role of rolesToPick; track role) {\n <gn-ui-button type=\"gray\" (buttonClick)=\"addRoleToDisplay(role)\">\n <ng-icon name=\"iconoirPlus\" class=\"text-primary\"></ng-icon>\n &nbsp;\n <span translate>{{ roleToLabel(role) }}</span>\n </gn-ui-button>\n }\n </div>\n @if (value.length === 0) {\n <div\n class=\"p-4 border border-primary bg-primary-lightest rounded-lg\"\n translate\n >\n editor.record.form.field.contactsForResource.noContact\n </div>\n }\n @if (roleSectionsToDisplay && roleSectionsToDisplay.length > 0) {\n <div class=\"mt-8\" data-test=\"displayedRoles\">\n @for (\n role of roleSectionsToDisplay;\n track role;\n let index = $index;\n let isLast = $last\n ) {\n <div class=\"flex flex-col gap-4\">\n <div class=\"flex flex-row justify-between\">\n <span class=\"font-bold text-base\" translate>{{\n roleToLabel(role)\n }}</span>\n </div>\n @if (role !== 'unspecified' && role !== 'other') {\n <gn-ui-autocomplete\n [placeholder]=\"\n 'editor.record.form.field.contactsForResource.placeholder'\n | translate\n \"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"addContact($event, role)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"1\"\n [clearOnSelection]=\"true\"\n [allowSubmit]=\"false\"\n >\n </gn-ui-autocomplete>\n }\n @if (contactsForRessourceByRole.get(role); as contacts) {\n <gn-ui-sortable-list\n [items]=\"contacts\"\n (itemsOrderChange)=\"handleContactsChanged($event, role)\"\n [elementTemplate]=\"contactTemplate\"\n ></gn-ui-sortable-list>\n <ng-template #contactTemplate let-contact>\n <gn-ui-contact-card [contact]=\"contact\"></gn-ui-contact-card>\n </ng-template>\n }\n @if (!isLast) {\n <hr class=\"border-t-[#D6D3D1] mt-4 mb-6\" />\n }\n </div>\n }\n </div>\n }\n</div>\n", styles: [":host{--gn-ui-button-padding: 8px 8px;--gn-ui-button-rounded: 8px}\n"], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: ContactCardComponent, selector: "gn-ui-contact-card", inputs: ["contact"] }, { kind: "component", type: SortableListComponent, selector: "gn-ui-sortable-list", inputs: ["elementTemplate", "items"], outputs: ["itemsOrderChange"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38577
38251
  }
38578
38252
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldContactsForResourceComponent, decorators: [{
38579
38253
  type: Component,
@@ -38673,7 +38347,7 @@ class FormFieldContactsComponent {
38673
38347
  this.subscription.unsubscribe();
38674
38348
  }
38675
38349
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldContactsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
38676
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FormFieldContactsComponent, isStandalone: true, selector: "gn-ui-form-field-contacts", inputs: { value: "value", modelSpecifier: "modelSpecifier" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n <gn-ui-autocomplete\n [placeholder]=\"'editor.record.form.field.contacts.placeholder' | translate\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"addContact($event)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"1\"\n [clearOnSelection]=\"true\"\n >\n </gn-ui-autocomplete>\n\n @if (contacts.length > 0) {\n <gn-ui-sortable-list\n [items]=\"contacts\"\n (itemsOrderChange)=\"handleContactsChanged($event)\"\n [elementTemplate]=\"contactTemplate\"\n ></gn-ui-sortable-list>\n <ng-template #contactTemplate let-contact let-index=\"index\">\n @if (modelSpecifier === 'contact:editableDetails') {\n <gn-ui-contact-details-form\n [contact]=\"contact\"\n (contactChange)=\"handleContactChanged($event, index)\"\n ></gn-ui-contact-details-form>\n } @else {\n <gn-ui-contact-card [contact]=\"contact\"></gn-ui-contact-card>\n }\n </ng-template>\n } @else {\n <div\n class=\"p-4 text-sm border border-primary bg-primary-lightest rounded-lg\"\n translate\n >\n editor.record.form.field.contacts.noContact\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: ContactCardComponent, selector: "gn-ui-contact-card", inputs: ["contact"] }, { kind: "component", type: ContactDetailsFormComponent, selector: "gn-ui-contact-details-form", inputs: ["contact"], outputs: ["contactChange"] }, { kind: "component", type: SortableListComponent, selector: "gn-ui-sortable-list", inputs: ["elementTemplate", "items"], outputs: ["itemsOrderChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38350
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FormFieldContactsComponent, isStandalone: true, selector: "gn-ui-form-field-contacts", inputs: { value: "value", modelSpecifier: "modelSpecifier" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"flex flex-col gap-3\">\n <gn-ui-autocomplete\n [placeholder]=\"'editor.record.form.field.contacts.placeholder' | translate\"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"addContact($event)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"1\"\n [clearOnSelection]=\"true\"\n >\n </gn-ui-autocomplete>\n\n @if (contacts.length > 0) {\n <gn-ui-sortable-list\n [items]=\"contacts\"\n (itemsOrderChange)=\"handleContactsChanged($event)\"\n [elementTemplate]=\"contactTemplate\"\n ></gn-ui-sortable-list>\n <ng-template #contactTemplate let-contact let-index=\"index\">\n @if (modelSpecifier === 'contact:editableDetails') {\n <gn-ui-contact-details-form\n [contact]=\"contact\"\n (contactChange)=\"handleContactChanged($event, index)\"\n ></gn-ui-contact-details-form>\n } @else {\n <gn-ui-contact-card [contact]=\"contact\"></gn-ui-contact-card>\n }\n </ng-template>\n } @else {\n <div\n class=\"p-4 text-sm border border-primary bg-primary-lightest rounded-lg\"\n translate\n >\n editor.record.form.field.contacts.noContact\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: ContactCardComponent, selector: "gn-ui-contact-card", inputs: ["contact"] }, { kind: "component", type: ContactDetailsFormComponent, selector: "gn-ui-contact-details-form", inputs: ["contact"], outputs: ["contactChange"] }, { kind: "component", type: SortableListComponent, selector: "gn-ui-sortable-list", inputs: ["elementTemplate", "items"], outputs: ["itemsOrderChange"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38677
38351
  }
38678
38352
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldContactsComponent, decorators: [{
38679
38353
  type: Component,
@@ -39026,7 +38700,7 @@ class OnlineServiceResourceInputComponent {
39026
38700
  provideNgIconsConfig({
39027
38701
  size: '1.5em',
39028
38702
  }),
39029
- ], ngImport: i0, template: "<div class=\"flex flex-row justify-between\">\n <h3 class=\"text-[16px] font-bold text-main mb-[12px]\" translate>\n editor.record.form.field.onlineResource.edit.protocol\n </h3>\n @if (protocolHint) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"protocolHint\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n</div>\n<div class=\"flex flex-row items-center gap-4 h-[48px]\">\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"flex flex-row gap-[8px]\"\n [(ngModel)]=\"_service.accessServiceProtocol\"\n [disabled]=\"disabled\"\n (change)=\"resetAllFormFields()\"\n >\n @for (protocolOption of availableProtocolOptions; track protocolOption) {\n <mat-radio-button [value]=\"protocolOption.value\">\n {{ protocolOption.label | translate }}\n </mat-radio-button>\n }\n </mat-radio-group>\n</div>\n\n<div class=\"flex flex-col gap-4\">\n <gn-ui-url-input\n class=\"w-full\"\n (uploadClick)=\"handleUploadClick($event)\"\n (valueChange)=\"handleUrlValueChange($event)\"\n [disabled]=\"disabled\"\n [value]=\"_service.url?.toString()\"\n [showValidateButton]=\"activeLayerSuggestion\"\n [resetUrlOnChange]=\"resetUrlOnChange\"\n >\n @if (activeLayerSuggestion) {\n <ng-content>\n <ng-icon name=\"iconoirRefresh\"></ng-icon>\n </ng-content>\n }\n </gn-ui-url-input>\n\n @if (loading) {\n <div class=\"flex justify-center w-full py-4\">\n <gn-ui-spinning-loader></gn-ui-spinning-loader>\n </div>\n }\n @if (errorMessage) {\n <p class=\"text-sm text-red-500 pl-4\" translate>\n editor.record.form.field.onlineResource.edit.identifier.error\n </p>\n }\n\n @if (\n !activeLayerSuggestion ||\n (_service.url && errorMessage) ||\n (modifyMode && (layers$ | async).length === 0)\n ) {\n <gn-ui-text-input\n class=\"grow border-b border-gray-300 pb-4\"\n [(value)]=\"_service.identifierInService\"\n [placeholder]=\"getIdentifierPlaceholder() | translate\"\n data-cy=\"identifier-in-service\"\n [disabled]=\"disabled\"\n ></gn-ui-text-input>\n }\n @if (activeLayerSuggestion && (layers$ | async)?.length > 0) {\n <gn-ui-autocomplete\n class=\"border-b border-gray-300 pb-4\"\n [placeholder]=\"\n 'editor.record.form.field.onlineResource.edit.identifier.select.label'\n | translate\n \"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleSelectValue($event)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"0\"\n [clearOnSelection]=\"false\"\n >\n </gn-ui-autocomplete>\n }\n @if (\n !modifyMode &&\n ((activeLayerSuggestion && (layers$ | async)) ||\n !activeLayerSuggestion ||\n (_service.url && errorMessage))\n ) {\n <gn-ui-button\n (buttonClick)=\"submit()\"\n [disabled]=\"disabled || !_service.identifierInService\"\n type=\"primary\"\n >\n <span class=\"text-white font-bold\" translate>\n editor.record.form.field.onlineResource.edit.identifier.submit</span\n >\n </gn-ui-button>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: i3$1.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$1.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: SpinningLoaderComponent, selector: "gn-ui-spinning-loader" }, { kind: "component", type: TextInputComponent, selector: "gn-ui-text-input", inputs: ["value", "extraClass", "placeholder", "required", "disabled", "type"], outputs: ["valueChange"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: UrlInputComponent, selector: "gn-ui-url-input", inputs: ["value", "extraClass", "placeholder", "disabled", "showValidateButton", "resetUrlOnChange"], outputs: ["valueChange", "uploadClick"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
38703
+ ], ngImport: i0, template: "<div class=\"flex flex-row justify-between\">\n <h3 class=\"text-[16px] font-bold text-main mb-[12px]\" translate>\n editor.record.form.field.onlineResource.edit.protocol\n </h3>\n @if (protocolHint) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"protocolHint\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n</div>\n<div class=\"flex flex-row items-center gap-4 h-[48px]\">\n <mat-radio-group\n aria-labelledby=\"example-radio-group-label\"\n class=\"flex flex-row gap-[8px]\"\n [(ngModel)]=\"_service.accessServiceProtocol\"\n [disabled]=\"disabled\"\n (change)=\"resetAllFormFields()\"\n >\n @for (protocolOption of availableProtocolOptions; track protocolOption) {\n <mat-radio-button [value]=\"protocolOption.value\">\n {{ protocolOption.label | translate }}\n </mat-radio-button>\n }\n </mat-radio-group>\n</div>\n\n<div class=\"flex flex-col gap-4\">\n <gn-ui-url-input\n class=\"w-full\"\n (uploadClick)=\"handleUploadClick($event)\"\n (valueChange)=\"handleUrlValueChange($event)\"\n [disabled]=\"disabled\"\n [value]=\"_service.url?.toString()\"\n [showValidateButton]=\"activeLayerSuggestion\"\n [resetUrlOnChange]=\"resetUrlOnChange\"\n >\n @if (activeLayerSuggestion) {\n <ng-content>\n <ng-icon name=\"iconoirRefresh\"></ng-icon>\n </ng-content>\n }\n </gn-ui-url-input>\n\n @if (loading) {\n <div class=\"flex justify-center w-full py-4\">\n <gn-ui-spinning-loader></gn-ui-spinning-loader>\n </div>\n }\n @if (errorMessage) {\n <p class=\"text-sm text-red-500 pl-4\" translate>\n editor.record.form.field.onlineResource.edit.identifier.error\n </p>\n }\n\n @if (\n !activeLayerSuggestion ||\n (_service.url && errorMessage) ||\n (modifyMode && (layers$ | async).length === 0)\n ) {\n <gn-ui-text-input\n class=\"grow border-b border-gray-300 pb-4\"\n [(value)]=\"_service.identifierInService\"\n [placeholder]=\"getIdentifierPlaceholder() | translate\"\n data-cy=\"identifier-in-service\"\n [disabled]=\"disabled\"\n ></gn-ui-text-input>\n }\n @if (activeLayerSuggestion && (layers$ | async)?.length > 0) {\n <gn-ui-autocomplete\n class=\"border-b border-gray-300 pb-4\"\n [placeholder]=\"\n 'editor.record.form.field.onlineResource.edit.identifier.select.label'\n | translate\n \"\n [action]=\"autoCompleteAction\"\n (itemSelected)=\"handleSelectValue($event)\"\n [displayWithFn]=\"displayWithFn\"\n [minCharacterCount]=\"0\"\n [clearOnSelection]=\"false\"\n >\n </gn-ui-autocomplete>\n }\n @if (\n !modifyMode &&\n ((activeLayerSuggestion && (layers$ | async)) ||\n !activeLayerSuggestion ||\n (_service.url && errorMessage))\n ) {\n <gn-ui-button\n (buttonClick)=\"submit()\"\n [disabled]=\"disabled || !_service.identifierInService\"\n type=\"primary\"\n >\n <span class=\"text-white font-bold\" translate>\n editor.record.form.field.onlineResource.edit.identifier.submit</span\n >\n </gn-ui-button>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: AutocompleteComponent, selector: "gn-ui-autocomplete", inputs: ["placeholder", "enterButton", "action", "value", "clearOnSelection", "preventCompleteOnSelection", "autoFocus", "minCharacterCount", "allowSubmit", "forceTrackPosition", "displayWithTemplate", "displayWithFn"], outputs: ["itemSelected", "inputSubmitted", "inputCleared", "isSearchActive"] }, { kind: "component", type: ButtonComponent, selector: "gn-ui-button", inputs: ["type", "disabled", "extraClass"], outputs: ["buttonClick"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatRadioModule }, { kind: "directive", type: i3$1.MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "component", type: i3$1.MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: SpinningLoaderComponent, selector: "gn-ui-spinning-loader" }, { kind: "component", type: TextInputComponent, selector: "gn-ui-text-input", inputs: ["value", "extraClass", "placeholder", "required", "disabled", "type"], outputs: ["valueChange"] }, { kind: "directive", type: TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: UrlInputComponent, selector: "gn-ui-url-input", inputs: ["value", "extraClass", "placeholder", "disabled", "showValidateButton", "resetUrlOnChange"], outputs: ["valueChange", "uploadClick"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39030
38704
  }
39031
38705
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: OnlineServiceResourceInputComponent, decorators: [{
39032
38706
  type: Component,
@@ -39810,6 +39484,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
39810
39484
  type: Output
39811
39485
  }] } });
39812
39486
 
39487
+ class FormFieldRecordFlagComponent {
39488
+ constructor() {
39489
+ this.flagName = input(...(ngDevMode ? [undefined, { debugName: "flagName" }] : []));
39490
+ this.labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : []));
39491
+ this.hintKey = input(...(ngDevMode ? [undefined, { debugName: "hintKey" }] : []));
39492
+ this.editorFacade = inject(EditorFacade);
39493
+ this.repository = inject(RecordsRepositoryInterface);
39494
+ this.notificationsService = inject(NotificationsService);
39495
+ this.translateService = inject(TranslateService);
39496
+ this.record = toSignal(this.editorFacade.record$);
39497
+ this.recordKind = toSignal(this.editorFacade.record$.pipe(map$1((record) => record.kind)));
39498
+ this.initialValue$ = this.editorFacade.record$.pipe(filter((record) => !!record), switchMap$1((record) => this.repository.getRecordFlag(record.uniqueIdentifier, this.flagName())));
39499
+ }
39500
+ onToggle(enabled) {
39501
+ if (this.record() === null) {
39502
+ return;
39503
+ }
39504
+ this.repository
39505
+ .setRecordFlag(this.record().uniqueIdentifier, this.flagName(), enabled)
39506
+ .subscribe({
39507
+ next: () => {
39508
+ // do nothing
39509
+ },
39510
+ error: (error) => {
39511
+ this.notificationsService.showNotification({
39512
+ type: 'error',
39513
+ title: this.translateService.instant('editor.record.flag.saveError.title'),
39514
+ text: `${this.translateService.instant('editor.record.flag.saveError.body', {
39515
+ recordKind: this.recordKind(),
39516
+ })} ${error.message}`,
39517
+ }, undefined, error);
39518
+ },
39519
+ });
39520
+ }
39521
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldRecordFlagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39522
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FormFieldRecordFlagComponent, isStandalone: true, selector: "gn-ui-form-field-record-flag", inputs: { flagName: { classPropertyName: "flagName", publicName: "flagName", isSignal: true, isRequired: false, transformFunction: null }, labelKey: { classPropertyName: "labelKey", publicName: "labelKey", isSignal: true, isRequired: false, transformFunction: null }, hintKey: { classPropertyName: "hintKey", publicName: "hintKey", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"flex-1 flex justify-between items-center\">\n <gn-ui-check-toggle\n [label]=\"labelKey() | translate\"\n [value]=\"initialValue$ | async\"\n (toggled)=\"onToggle($event)\"\n [attr.data-cy]=\"'record-flag-toggle-' + flagName()\"\n ></gn-ui-check-toggle>\n\n @if (hintKey()) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"hintKey() | translate\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: CheckToggleComponent, selector: "gn-ui-check-toggle", inputs: ["title", "label", "value", "color"], outputs: ["toggled"] }, { kind: "component", type: NgIcon, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: TranslatePipe, name: "translate" }], viewProviders: [
39523
+ provideIcons({
39524
+ matHelpOutline,
39525
+ }),
39526
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39527
+ }
39528
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldRecordFlagComponent, decorators: [{
39529
+ type: Component,
39530
+ args: [{ selector: 'gn-ui-form-field-record-flag', standalone: true, imports: [AsyncPipe, CheckToggleComponent, TranslatePipe, NgIcon, MatTooltip], viewProviders: [
39531
+ provideIcons({
39532
+ matHelpOutline,
39533
+ }),
39534
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-1 flex justify-between items-center\">\n <gn-ui-check-toggle\n [label]=\"labelKey() | translate\"\n [value]=\"initialValue$ | async\"\n (toggled)=\"onToggle($event)\"\n [attr.data-cy]=\"'record-flag-toggle-' + flagName()\"\n ></gn-ui-check-toggle>\n\n @if (hintKey()) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"hintKey() | translate\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n</div>\n" }]
39535
+ }], propDecorators: { flagName: [{ type: i0.Input, args: [{ isSignal: true, alias: "flagName", required: false }] }], labelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelKey", required: false }] }], hintKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "hintKey", required: false }] }] } });
39536
+
39813
39537
  class FormFieldComponent {
39814
39538
  constructor() {
39815
39539
  this.valueChange = new EventEmitter();
@@ -39828,6 +39552,7 @@ class FormFieldComponent {
39828
39552
  this.model === 'legalConstraints' ||
39829
39553
  this.model === 'securityConstraints' ||
39830
39554
  this.model === 'otherConstraints' ||
39555
+ this.model === 'flags' ||
39831
39556
  this.componentName === 'form-field-constraints-shortcuts');
39832
39557
  }
39833
39558
  get valueAsString() {
@@ -39867,6 +39592,9 @@ class FormFieldComponent {
39867
39592
  const identifiers = this.value;
39868
39593
  return identifiers?.[0]?.code || '';
39869
39594
  }
39595
+ get recordFlag() {
39596
+ return this.modelSpecifier?.replace(/^flags:/, '');
39597
+ }
39870
39598
  handleResourceIdentifierChange(code) {
39871
39599
  const identifiers = this.value;
39872
39600
  if (!code) {
@@ -39884,7 +39612,7 @@ class FormFieldComponent {
39884
39612
  }
39885
39613
  }
39886
39614
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
39887
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.19", type: FormFieldComponent, isStandalone: true, selector: "gn-ui-form-field", inputs: { uniqueIdentifier: "uniqueIdentifier", recordKind: "recordKind", model: "model", modelSpecifier: "modelSpecifier", componentName: "componentName", config: "config", value: "value" }, outputs: { valueChange: "valueChange" }, providers: [provideIcons({ matEditOutline, matHelpOutline })], viewQueries: [{ propertyName: "titleInput", first: true, predicate: ["titleInput"], descendants: true }], hostDirectives: [{ directive: FieldFocusDirective }], ngImport: i0, template: "<!-- TEMPORARY - disabling the open data switch -->\n<!-- <ng-container *ngIf=\"model === 'licenses'\">\n <gn-ui-form-field-open-data\n [value]=\"valueAsConstraints\"\n (valueChange)=\"valueChange.emit($event)\"\n (openDataChange)=\"toggleIsOpenData($event)\"\n ></gn-ui-form-field-open-data>\n</ng-container> -->\n<div class=\"flex flex-col h-full\">\n <ng-container *ngIf=\"withoutWrapper; else withGenericWrapper\">\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </ng-container>\n <ng-template #withGenericWrapper>\n <gn-ui-form-field-wrapper\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n >\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </gn-ui-form-field-wrapper>\n </ng-template>\n</div>\n\n<ng-template #fieldContent>\n <ng-container [ngSwitch]=\"model\">\n <ng-container *ngSwitchCase=\"'title'\">\n <div class=\"flex flex-row flex-start items-center gap-3 mb-[12px]\">\n <textarea\n #titleInput\n cdkTextareaAutosize\n #autosize=\"cdkTextareaAutosize\"\n cdkAutosizeMinRows=\"1\"\n data-test=\"recordTitleInput\"\n class=\"grow font-title text-3xl font-normal overflow-hidden text-black/80\"\n [value]=\"valueAsString\"\n (change)=\"valueChange.emit($event.target.value)\"\n [placeholder]=\"\n 'editor.record.form.field.title.placeholder'\n | translate: { recordKind }\n \"\n ></textarea>\n <div class=\"flex flex-row justify-between self-start mt-0.5\">\n <ng-icon\n name=\"matEditOutline\"\n size=\"16\"\n class=\"m-2 cursor-pointer\"\n (click)=\"focusTitleInput()\"\n ></ng-icon>\n <ng-icon\n *ngIf=\"config.hintKey\"\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"config.hintKey! | translate: { recordKind }\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'abstract'\">\n <gn-ui-form-field-rich\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n [value]=\"valueAsString\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-rich>\n </ng-container>\n <ng-container *ngSwitchCase=\"'overviews'\">\n <gn-ui-form-field-overviews\n [metadataUuid]=\"uniqueIdentifier\"\n [recordKind]=\"recordKind\"\n [value]=\"valueAsOverviews\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-overviews>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceIdentifiers'\">\n <gn-ui-form-field-simple\n [type]=\"'text'\"\n [value]=\"valueAsResourceIdentifierCode\"\n (valueChange)=\"handleResourceIdentifierChange($event)\"\n ></gn-ui-form-field-simple>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceCreated'\">\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceUpdated'\">\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n </ng-container>\n <ng-container *ngSwitchCase=\"'updateFrequency'\">\n <gn-ui-form-field-update-frequency\n [value]=\"valueAsUpdateFrequency\"\n (valueChange)=\"valueChange.emit($event)\"\n [recordKind]=\"recordKind\"\n ></gn-ui-form-field-update-frequency>\n </ng-container>\n <ng-container *ngSwitchCase=\"'associatedRecords'\">\n <gn-ui-form-field-associated-records\n [value]=\"valueAsAssociatedRecords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-associated-records>\n </ng-container>\n <ng-container *ngSwitchCase=\"'temporalExtents'\">\n <gn-ui-form-field-temporal-extents\n [value]=\"valueAsTemporalExtents\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-temporal-extents>\n </ng-container>\n <ng-container *ngSwitchCase=\"'spatialExtents'\">\n <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>\n </ng-container>\n <ng-container *ngSwitchCase=\"'keywords'\">\n <gn-ui-form-field-keywords\n [value]=\"valueAsKeywords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-keywords>\n </ng-container>\n <ng-container *ngSwitchCase=\"'topics'\">\n <gn-ui-form-field-topics\n [value]=\"valueAsTopics\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-topics>\n </ng-container>\n <ng-container *ngSwitchCase=\"'licenses'\">\n <gn-ui-form-field-license\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [recordLicences]=\"valueAsConstraints\"\n (recordLicencesChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-license>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'legalConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'securityConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'otherConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container\n ></ng-container>\n <ng-template #formFieldConstraints>\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints\n ></ng-template>\n\n <ng-container *ngSwitchCase=\"'contactsForResource'\">\n <gn-ui-form-field-contacts-for-resource\n [value]=\"valueAsIndividuals\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts-for-resource>\n </ng-container>\n <ng-container *ngSwitchCase=\"'contacts'\">\n <gn-ui-form-field-contacts\n [value]=\"valueAsIndividuals\"\n [modelSpecifier]=\"modelSpecifier\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-resources\n *ngIf=\"modelSpecifier === 'onlineResourceType:!link'\"\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-resources>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-link-resources\n *ngIf=\"modelSpecifier === 'onlineResourceType:link'\"\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-link-resources>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-single-link-resource\n *ngIf=\"modelSpecifier === 'onlineResourceType:singleLink'\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-single-link-resource>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!model\">\n <ng-container [ngSwitch]=\"componentName\">\n <ng-container *ngSwitchCase=\"'form-field-constraints-shortcuts'\">\n <gn-ui-form-field-constraints-shortcuts></gn-ui-form-field-constraints-shortcuts>\n </ng-container>\n <ng-container *ngSwitchCase=\"'form-field-spatial-toggle'\">\n <gn-ui-form-field-spatial-toggle></gn-ui-form-field-spatial-toggle>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n", styles: [":host{scroll-margin-top:90px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: FormFieldWrapperComponent, selector: "gn-ui-form-field-wrapper", inputs: ["label", "hint"] }, { kind: "component", type: FormFieldLicenseComponent, selector: "gn-ui-form-field-license", inputs: ["label", "recordLicences"], outputs: ["recordLicencesChange"] }, { kind: "component", type: FormFieldDateComponent, selector: "gn-ui-form-field-date", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldUpdateFrequencyComponent, selector: "gn-ui-form-field-update-frequency", inputs: ["value", "recordKind"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldAssociatedRecordsComponent, selector: "gn-ui-form-field-associated-records", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldTemporalExtentsComponent, selector: "gn-ui-form-field-temporal-extents", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldSimpleComponent, selector: "gn-ui-form-field-simple", inputs: ["type", "readonly", "invalid", "placeholder", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldRichComponent, selector: "gn-ui-form-field-rich", inputs: ["label", "hint", "placeholder", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldSpatialExtentComponent, selector: "gn-ui-form-field-spatial-extent" }, { kind: "component", type: FormFieldKeywordsComponent, selector: "gn-ui-form-field-keywords", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOverviewsComponent, selector: "gn-ui-form-field-overviews", inputs: ["metadataUuid", "recordKind", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldContactsForResourceComponent, selector: "gn-ui-form-field-contacts-for-resource", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineResourcesComponent, selector: "gn-ui-form-field-online-resources", inputs: ["metadataUuid", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineLinkResourcesComponent, selector: "gn-ui-form-field-online-link-resources", inputs: ["metadataUuid", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineSingleLinkResourceComponent, selector: "gn-ui-form-field-online-single-link-resource", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldContactsComponent, selector: "gn-ui-form-field-contacts", inputs: ["value", "modelSpecifier"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldConstraintsComponent, selector: "gn-ui-form-field-constraints", inputs: ["label", "value", "constraintType"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldConstraintsShortcutsComponent, selector: "gn-ui-form-field-constraints-shortcuts" }, { kind: "component", type: FormFieldSpatialToggleComponent, selector: "gn-ui-form-field-spatial-toggle" }, { kind: "component", type: FormFieldTopicsComponent, selector: "gn-ui-form-field-topics", inputs: ["value"], outputs: ["valueChange"] }, { kind: "ngmodule", type: TextFieldModule }, { kind: "directive", type: i4$1.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39615
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: FormFieldComponent, isStandalone: true, selector: "gn-ui-form-field", inputs: { uniqueIdentifier: "uniqueIdentifier", recordKind: "recordKind", model: "model", modelSpecifier: "modelSpecifier", componentName: "componentName", config: "config", value: "value" }, outputs: { valueChange: "valueChange" }, providers: [provideIcons({ matEditOutline, matHelpOutline })], viewQueries: [{ propertyName: "titleInput", first: true, predicate: ["titleInput"], descendants: true }], hostDirectives: [{ directive: FieldFocusDirective }], ngImport: i0, template: "<!-- TEMPORARY - disabling the open data switch -->\n<!-- <ng-container *ngIf=\"model === 'licenses'\">\n <gn-ui-form-field-open-data\n [value]=\"valueAsConstraints\"\n (valueChange)=\"valueChange.emit($event)\"\n (openDataChange)=\"toggleIsOpenData($event)\"\n ></gn-ui-form-field-open-data>\n</ng-container> -->\n<div class=\"flex flex-col h-full\">\n @if (withoutWrapper) {\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n } @else {\n <gn-ui-form-field-wrapper\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n >\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </gn-ui-form-field-wrapper>\n }\n</div>\n\n<ng-template #fieldContent>\n @switch (model) {\n @case ('title') {\n <div class=\"flex flex-row flex-start items-center gap-3\">\n <textarea\n #titleInput\n cdkTextareaAutosize\n #autosize=\"cdkTextareaAutosize\"\n cdkAutosizeMinRows=\"1\"\n data-test=\"recordTitleInput\"\n class=\"grow font-title text-3xl font-normal overflow-hidden text-black/80\"\n [value]=\"valueAsString\"\n (change)=\"valueChange.emit($event.target.value)\"\n [placeholder]=\"\n 'editor.record.form.field.title.placeholder'\n | translate: { recordKind }\n \"\n ></textarea>\n <div class=\"flex flex-row justify-between self-start mt-0.5\">\n <ng-icon\n name=\"matEditOutline\"\n size=\"16\"\n class=\"m-2 cursor-pointer\"\n (click)=\"focusTitleInput()\"\n ></ng-icon>\n @if (config.hintKey) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"config.hintKey! | translate: { recordKind }\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n </div>\n </div>\n }\n @case ('abstract') {\n <gn-ui-form-field-rich\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n [value]=\"valueAsString\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-rich>\n }\n @case ('overviews') {\n <gn-ui-form-field-overviews\n [metadataUuid]=\"uniqueIdentifier\"\n [recordKind]=\"recordKind\"\n [value]=\"valueAsOverviews\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-overviews>\n }\n @case ('resourceIdentifiers') {\n <gn-ui-form-field-simple\n [type]=\"'text'\"\n [value]=\"valueAsResourceIdentifierCode\"\n (valueChange)=\"handleResourceIdentifierChange($event)\"\n ></gn-ui-form-field-simple>\n }\n @case ('resourceCreated') {\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n }\n @case ('resourceUpdated') {\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n }\n @case ('updateFrequency') {\n <gn-ui-form-field-update-frequency\n [value]=\"valueAsUpdateFrequency\"\n (valueChange)=\"valueChange.emit($event)\"\n [recordKind]=\"recordKind\"\n ></gn-ui-form-field-update-frequency>\n }\n @case ('associatedRecords') {\n <gn-ui-form-field-associated-records\n [value]=\"valueAsAssociatedRecords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-associated-records>\n }\n @case ('temporalExtents') {\n <gn-ui-form-field-temporal-extents\n [value]=\"valueAsTemporalExtents\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-temporal-extents>\n }\n @case ('spatialExtents') {\n <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>\n }\n @case ('keywords') {\n <gn-ui-form-field-keywords\n [value]=\"valueAsKeywords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-keywords>\n }\n @case ('topics') {\n <gn-ui-form-field-topics\n [value]=\"valueAsTopics\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-topics>\n }\n @case ('licenses') {\n <gn-ui-form-field-license\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [recordLicences]=\"valueAsConstraints\"\n (recordLicencesChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-license>\n }\n\n <!-- TODO: merge these cases together when migrated to angular 21 -->\n @case ('legalConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n @case ('securityConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n @case ('otherConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n\n @case ('contactsForResource') {\n <gn-ui-form-field-contacts-for-resource\n [value]=\"valueAsIndividuals\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts-for-resource>\n }\n @case ('contacts') {\n <gn-ui-form-field-contacts\n [value]=\"valueAsIndividuals\"\n [modelSpecifier]=\"modelSpecifier\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts>\n }\n @case ('onlineResources') {\n @if (modelSpecifier === 'onlineResourceType:!link') {\n <gn-ui-form-field-online-resources\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-resources>\n } @else if (modelSpecifier === 'onlineResourceType:link') {\n <gn-ui-form-field-online-link-resources\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-link-resources>\n } @else if (modelSpecifier === 'onlineResourceType:singleLink') {\n <gn-ui-form-field-online-single-link-resource\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-single-link-resource>\n }\n }\n @case ('flags') {\n <gn-ui-form-field-record-flag\n [flagName]=\"recordFlag\"\n [labelKey]=\"config.labelKey\"\n [hintKey]=\"config.hintKey\"\n ></gn-ui-form-field-record-flag>\n }\n }\n\n @if (!model) {\n @switch (componentName) {\n @case ('form-field-constraints-shortcuts') {\n <gn-ui-form-field-constraints-shortcuts></gn-ui-form-field-constraints-shortcuts>\n }\n @case ('form-field-spatial-toggle') {\n <gn-ui-form-field-spatial-toggle></gn-ui-form-field-spatial-toggle>\n }\n }\n }\n</ng-template>\n", styles: [":host{scroll-margin-top:90px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i1$5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: FormFieldWrapperComponent, selector: "gn-ui-form-field-wrapper", inputs: ["label", "hint"] }, { kind: "component", type: FormFieldLicenseComponent, selector: "gn-ui-form-field-license", inputs: ["label", "recordLicences"], outputs: ["recordLicencesChange"] }, { kind: "component", type: FormFieldDateComponent, selector: "gn-ui-form-field-date", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldUpdateFrequencyComponent, selector: "gn-ui-form-field-update-frequency", inputs: ["value", "recordKind"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldAssociatedRecordsComponent, selector: "gn-ui-form-field-associated-records", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldTemporalExtentsComponent, selector: "gn-ui-form-field-temporal-extents", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldSimpleComponent, selector: "gn-ui-form-field-simple", inputs: ["type", "readonly", "invalid", "placeholder", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldRichComponent, selector: "gn-ui-form-field-rich", inputs: ["label", "hint", "placeholder", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldSpatialExtentComponent, selector: "gn-ui-form-field-spatial-extent" }, { kind: "component", type: FormFieldKeywordsComponent, selector: "gn-ui-form-field-keywords", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOverviewsComponent, selector: "gn-ui-form-field-overviews", inputs: ["metadataUuid", "recordKind", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldContactsForResourceComponent, selector: "gn-ui-form-field-contacts-for-resource", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineResourcesComponent, selector: "gn-ui-form-field-online-resources", inputs: ["metadataUuid", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineLinkResourcesComponent, selector: "gn-ui-form-field-online-link-resources", inputs: ["metadataUuid", "value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldOnlineSingleLinkResourceComponent, selector: "gn-ui-form-field-online-single-link-resource", inputs: ["value"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldContactsComponent, selector: "gn-ui-form-field-contacts", inputs: ["value", "modelSpecifier"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldConstraintsComponent, selector: "gn-ui-form-field-constraints", inputs: ["label", "value", "constraintType"], outputs: ["valueChange"] }, { kind: "component", type: FormFieldConstraintsShortcutsComponent, selector: "gn-ui-form-field-constraints-shortcuts" }, { kind: "component", type: FormFieldSpatialToggleComponent, selector: "gn-ui-form-field-spatial-toggle" }, { kind: "component", type: FormFieldTopicsComponent, selector: "gn-ui-form-field-topics", inputs: ["value"], outputs: ["valueChange"] }, { kind: "ngmodule", type: TextFieldModule }, { kind: "directive", type: i4$1.CdkTextareaAutosize, selector: "textarea[cdkTextareaAutosize]", inputs: ["cdkAutosizeMinRows", "cdkAutosizeMaxRows", "cdkTextareaAutosize", "placeholder"], exportAs: ["cdkTextareaAutosize"] }, { kind: "component", type: NgIconComponent, selector: "ng-icon", inputs: ["name", "svg", "size", "strokeWidth", "color"] }, { kind: "component", type: FormFieldRecordFlagComponent, selector: "gn-ui-form-field-record-flag", inputs: ["flagName", "labelKey", "hintKey"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
39888
39616
  }
39889
39617
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldComponent, decorators: [{
39890
39618
  type: Component,
@@ -39914,7 +39642,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
39914
39642
  FormFieldTopicsComponent,
39915
39643
  TextFieldModule,
39916
39644
  NgIconComponent,
39917
- ], providers: [provideIcons({ matEditOutline, matHelpOutline })], hostDirectives: [FieldFocusDirective], template: "<!-- TEMPORARY - disabling the open data switch -->\n<!-- <ng-container *ngIf=\"model === 'licenses'\">\n <gn-ui-form-field-open-data\n [value]=\"valueAsConstraints\"\n (valueChange)=\"valueChange.emit($event)\"\n (openDataChange)=\"toggleIsOpenData($event)\"\n ></gn-ui-form-field-open-data>\n</ng-container> -->\n<div class=\"flex flex-col h-full\">\n <ng-container *ngIf=\"withoutWrapper; else withGenericWrapper\">\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </ng-container>\n <ng-template #withGenericWrapper>\n <gn-ui-form-field-wrapper\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n >\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </gn-ui-form-field-wrapper>\n </ng-template>\n</div>\n\n<ng-template #fieldContent>\n <ng-container [ngSwitch]=\"model\">\n <ng-container *ngSwitchCase=\"'title'\">\n <div class=\"flex flex-row flex-start items-center gap-3 mb-[12px]\">\n <textarea\n #titleInput\n cdkTextareaAutosize\n #autosize=\"cdkTextareaAutosize\"\n cdkAutosizeMinRows=\"1\"\n data-test=\"recordTitleInput\"\n class=\"grow font-title text-3xl font-normal overflow-hidden text-black/80\"\n [value]=\"valueAsString\"\n (change)=\"valueChange.emit($event.target.value)\"\n [placeholder]=\"\n 'editor.record.form.field.title.placeholder'\n | translate: { recordKind }\n \"\n ></textarea>\n <div class=\"flex flex-row justify-between self-start mt-0.5\">\n <ng-icon\n name=\"matEditOutline\"\n size=\"16\"\n class=\"m-2 cursor-pointer\"\n (click)=\"focusTitleInput()\"\n ></ng-icon>\n <ng-icon\n *ngIf=\"config.hintKey\"\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"config.hintKey! | translate: { recordKind }\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n </div>\n </div>\n </ng-container>\n <ng-container *ngSwitchCase=\"'abstract'\">\n <gn-ui-form-field-rich\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n [value]=\"valueAsString\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-rich>\n </ng-container>\n <ng-container *ngSwitchCase=\"'overviews'\">\n <gn-ui-form-field-overviews\n [metadataUuid]=\"uniqueIdentifier\"\n [recordKind]=\"recordKind\"\n [value]=\"valueAsOverviews\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-overviews>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceIdentifiers'\">\n <gn-ui-form-field-simple\n [type]=\"'text'\"\n [value]=\"valueAsResourceIdentifierCode\"\n (valueChange)=\"handleResourceIdentifierChange($event)\"\n ></gn-ui-form-field-simple>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceCreated'\">\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n </ng-container>\n <ng-container *ngSwitchCase=\"'resourceUpdated'\">\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n </ng-container>\n <ng-container *ngSwitchCase=\"'updateFrequency'\">\n <gn-ui-form-field-update-frequency\n [value]=\"valueAsUpdateFrequency\"\n (valueChange)=\"valueChange.emit($event)\"\n [recordKind]=\"recordKind\"\n ></gn-ui-form-field-update-frequency>\n </ng-container>\n <ng-container *ngSwitchCase=\"'associatedRecords'\">\n <gn-ui-form-field-associated-records\n [value]=\"valueAsAssociatedRecords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-associated-records>\n </ng-container>\n <ng-container *ngSwitchCase=\"'temporalExtents'\">\n <gn-ui-form-field-temporal-extents\n [value]=\"valueAsTemporalExtents\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-temporal-extents>\n </ng-container>\n <ng-container *ngSwitchCase=\"'spatialExtents'\">\n <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>\n </ng-container>\n <ng-container *ngSwitchCase=\"'keywords'\">\n <gn-ui-form-field-keywords\n [value]=\"valueAsKeywords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-keywords>\n </ng-container>\n <ng-container *ngSwitchCase=\"'topics'\">\n <gn-ui-form-field-topics\n [value]=\"valueAsTopics\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-topics>\n </ng-container>\n <ng-container *ngSwitchCase=\"'licenses'\">\n <gn-ui-form-field-license\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [recordLicences]=\"valueAsConstraints\"\n (recordLicencesChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-license>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"'legalConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'securityConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'otherConstraints'\">\n <ng-container *ngTemplateOutlet=\"formFieldConstraints\"></ng-container\n ></ng-container>\n <ng-template #formFieldConstraints>\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints\n ></ng-template>\n\n <ng-container *ngSwitchCase=\"'contactsForResource'\">\n <gn-ui-form-field-contacts-for-resource\n [value]=\"valueAsIndividuals\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts-for-resource>\n </ng-container>\n <ng-container *ngSwitchCase=\"'contacts'\">\n <gn-ui-form-field-contacts\n [value]=\"valueAsIndividuals\"\n [modelSpecifier]=\"modelSpecifier\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-resources\n *ngIf=\"modelSpecifier === 'onlineResourceType:!link'\"\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-resources>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-link-resources\n *ngIf=\"modelSpecifier === 'onlineResourceType:link'\"\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-link-resources>\n </ng-container>\n <ng-container *ngSwitchCase=\"'onlineResources'\">\n <gn-ui-form-field-online-single-link-resource\n *ngIf=\"modelSpecifier === 'onlineResourceType:singleLink'\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-single-link-resource>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"!model\">\n <ng-container [ngSwitch]=\"componentName\">\n <ng-container *ngSwitchCase=\"'form-field-constraints-shortcuts'\">\n <gn-ui-form-field-constraints-shortcuts></gn-ui-form-field-constraints-shortcuts>\n </ng-container>\n <ng-container *ngSwitchCase=\"'form-field-spatial-toggle'\">\n <gn-ui-form-field-spatial-toggle></gn-ui-form-field-spatial-toggle>\n </ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n", styles: [":host{scroll-margin-top:90px}\n"] }]
39645
+ FormFieldRecordFlagComponent,
39646
+ ], providers: [provideIcons({ matEditOutline, matHelpOutline })], hostDirectives: [FieldFocusDirective], template: "<!-- TEMPORARY - disabling the open data switch -->\n<!-- <ng-container *ngIf=\"model === 'licenses'\">\n <gn-ui-form-field-open-data\n [value]=\"valueAsConstraints\"\n (valueChange)=\"valueChange.emit($event)\"\n (openDataChange)=\"toggleIsOpenData($event)\"\n ></gn-ui-form-field-open-data>\n</ng-container> -->\n<div class=\"flex flex-col h-full\">\n @if (withoutWrapper) {\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n } @else {\n <gn-ui-form-field-wrapper\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n >\n <ng-container *ngTemplateOutlet=\"fieldContent\"></ng-container>\n </gn-ui-form-field-wrapper>\n }\n</div>\n\n<ng-template #fieldContent>\n @switch (model) {\n @case ('title') {\n <div class=\"flex flex-row flex-start items-center gap-3\">\n <textarea\n #titleInput\n cdkTextareaAutosize\n #autosize=\"cdkTextareaAutosize\"\n cdkAutosizeMinRows=\"1\"\n data-test=\"recordTitleInput\"\n class=\"grow font-title text-3xl font-normal overflow-hidden text-black/80\"\n [value]=\"valueAsString\"\n (change)=\"valueChange.emit($event.target.value)\"\n [placeholder]=\"\n 'editor.record.form.field.title.placeholder'\n | translate: { recordKind }\n \"\n ></textarea>\n <div class=\"flex flex-row justify-between self-start mt-0.5\">\n <ng-icon\n name=\"matEditOutline\"\n size=\"16\"\n class=\"m-2 cursor-pointer\"\n (click)=\"focusTitleInput()\"\n ></ng-icon>\n @if (config.hintKey) {\n <ng-icon\n name=\"matHelpOutline\"\n size=\"16\"\n class=\"m-2\"\n [matTooltip]=\"config.hintKey! | translate: { recordKind }\"\n matTooltipPosition=\"above\"\n ></ng-icon>\n }\n </div>\n </div>\n }\n @case ('abstract') {\n <gn-ui-form-field-rich\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [hint]=\"config.hintKey! | translate: { recordKind }\"\n [value]=\"valueAsString\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-rich>\n }\n @case ('overviews') {\n <gn-ui-form-field-overviews\n [metadataUuid]=\"uniqueIdentifier\"\n [recordKind]=\"recordKind\"\n [value]=\"valueAsOverviews\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-overviews>\n }\n @case ('resourceIdentifiers') {\n <gn-ui-form-field-simple\n [type]=\"'text'\"\n [value]=\"valueAsResourceIdentifierCode\"\n (valueChange)=\"handleResourceIdentifierChange($event)\"\n ></gn-ui-form-field-simple>\n }\n @case ('resourceCreated') {\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n }\n @case ('resourceUpdated') {\n <gn-ui-form-field-date\n [value]=\"valueAsDate\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-date>\n }\n @case ('updateFrequency') {\n <gn-ui-form-field-update-frequency\n [value]=\"valueAsUpdateFrequency\"\n (valueChange)=\"valueChange.emit($event)\"\n [recordKind]=\"recordKind\"\n ></gn-ui-form-field-update-frequency>\n }\n @case ('associatedRecords') {\n <gn-ui-form-field-associated-records\n [value]=\"valueAsAssociatedRecords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-associated-records>\n }\n @case ('temporalExtents') {\n <gn-ui-form-field-temporal-extents\n [value]=\"valueAsTemporalExtents\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-temporal-extents>\n }\n @case ('spatialExtents') {\n <gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>\n }\n @case ('keywords') {\n <gn-ui-form-field-keywords\n [value]=\"valueAsKeywords\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-keywords>\n }\n @case ('topics') {\n <gn-ui-form-field-topics\n [value]=\"valueAsTopics\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-topics>\n }\n @case ('licenses') {\n <gn-ui-form-field-license\n [label]=\"config.labelKey! | translate: { recordKind }\"\n [recordLicences]=\"valueAsConstraints\"\n (recordLicencesChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-license>\n }\n\n <!-- TODO: merge these cases together when migrated to angular 21 -->\n @case ('legalConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n @case ('securityConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n @case ('otherConstraints') {\n <gn-ui-form-field-constraints\n [label]=\"config.labelKey\"\n [value]=\"valueAsConstraints\"\n [constraintType]=\"model\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-constraints>\n }\n\n @case ('contactsForResource') {\n <gn-ui-form-field-contacts-for-resource\n [value]=\"valueAsIndividuals\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts-for-resource>\n }\n @case ('contacts') {\n <gn-ui-form-field-contacts\n [value]=\"valueAsIndividuals\"\n [modelSpecifier]=\"modelSpecifier\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-contacts>\n }\n @case ('onlineResources') {\n @if (modelSpecifier === 'onlineResourceType:!link') {\n <gn-ui-form-field-online-resources\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-resources>\n } @else if (modelSpecifier === 'onlineResourceType:link') {\n <gn-ui-form-field-online-link-resources\n [metadataUuid]=\"uniqueIdentifier\"\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-link-resources>\n } @else if (modelSpecifier === 'onlineResourceType:singleLink') {\n <gn-ui-form-field-online-single-link-resource\n [value]=\"valueAsOnlineResources\"\n (valueChange)=\"valueChange.emit($event)\"\n ></gn-ui-form-field-online-single-link-resource>\n }\n }\n @case ('flags') {\n <gn-ui-form-field-record-flag\n [flagName]=\"recordFlag\"\n [labelKey]=\"config.labelKey\"\n [hintKey]=\"config.hintKey\"\n ></gn-ui-form-field-record-flag>\n }\n }\n\n @if (!model) {\n @switch (componentName) {\n @case ('form-field-constraints-shortcuts') {\n <gn-ui-form-field-constraints-shortcuts></gn-ui-form-field-constraints-shortcuts>\n }\n @case ('form-field-spatial-toggle') {\n <gn-ui-form-field-spatial-toggle></gn-ui-form-field-spatial-toggle>\n }\n }\n }\n</ng-template>\n", styles: [":host{scroll-margin-top:90px}\n"] }]
39918
39647
  }], propDecorators: { uniqueIdentifier: [{
39919
39648
  type: Input
39920
39649
  }], recordKind: [{
@@ -39945,9 +39674,13 @@ const TOKEN_OPERATOR_LOGICAL = ['==', '!='];
39945
39674
  const TOKEN_STRING_LITERAL = ["'", '"'];
39946
39675
  const TOKEN_GROUP_START = '(';
39947
39676
  const TOKEN_GROUP_END = ')';
39677
+ const TOKEN_OPERATOR_BOOLEAN = ['&&', '||'];
39678
+ const TOKEN_OPERATOR_NOT = '!';
39948
39679
  // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence
39949
39680
  const OPERATORS_BY_PRECEDENCE = [
39950
39681
  [TOKEN_OPERATOR_TERNARY_FIRST, TOKEN_OPERATOR_TERNARY_SECOND],
39682
+ TOKEN_OPERATOR_BOOLEAN,
39683
+ [TOKEN_OPERATOR_NOT],
39951
39684
  TOKEN_OPERATOR_LOGICAL,
39952
39685
  ];
39953
39686
  const ALL_OPERATORS = OPERATORS_BY_PRECEDENCE.flat();
@@ -40057,6 +39790,16 @@ function evaluateInternal(expression, currentContext) {
40057
39790
  pos++;
40058
39791
  continue;
40059
39792
  }
39793
+ // BOOLEAN LITERAL
39794
+ const isBooleanLiteral = readNext(expression, pos, 4) === 'true' ||
39795
+ readNext(expression, pos, 5) === 'false';
39796
+ if (isBooleanLiteral) {
39797
+ const literal = readNext(expression, pos, 4) === 'true' ? 'true' : 'false';
39798
+ pos += literal.length;
39799
+ const booleanLiteral = literal === 'true';
39800
+ currentEvaluator = () => booleanLiteral;
39801
+ continue;
39802
+ }
40060
39803
  // SYMBOL (NAME)
40061
39804
  const isSymbol = /[a-zA-Z]/.test(readNext(expression, pos));
40062
39805
  if (isSymbol) {
@@ -40147,6 +39890,35 @@ function evaluateInternal(expression, currentContext) {
40147
39890
  };
40148
39891
  continue;
40149
39892
  }
39893
+ // BOOLEAN OPERATORS
39894
+ const isBooleanOperator = TOKEN_OPERATOR_BOOLEAN.some((token) => readNext(expression, pos, token.length) === token);
39895
+ if (isBooleanOperator) {
39896
+ const matchingOperator = TOKEN_OPERATOR_BOOLEAN.find((token) => readNext(expression, pos, token.length) === token);
39897
+ const isAnd = matchingOperator === '&&';
39898
+ pos += matchingOperator.length;
39899
+ const leftEvaluator = currentEvaluator;
39900
+ const rightExpression = readUntilNextOperator(expression, pos, matchingOperator);
39901
+ pos += rightExpression.length;
39902
+ const rightEvaluator = evaluateInternal(rightExpression, currentContext).evaluator;
39903
+ currentEvaluator = (context) => {
39904
+ return isAnd
39905
+ ? Boolean(leftEvaluator(context) && rightEvaluator(context))
39906
+ : Boolean(leftEvaluator(context) || rightEvaluator(context));
39907
+ };
39908
+ continue;
39909
+ }
39910
+ // PREFIX OPERATORS
39911
+ const isNotOperator = readNext(expression, pos) === TOKEN_OPERATOR_NOT;
39912
+ if (isNotOperator) {
39913
+ pos++;
39914
+ const operandExpression = readUntilNextOperator(expression, pos, TOKEN_OPERATOR_NOT);
39915
+ pos += operandExpression.length;
39916
+ const operandEvaluator = evaluateInternal(operandExpression, currentContext).evaluator;
39917
+ currentEvaluator = (context) => {
39918
+ return !operandEvaluator(context);
39919
+ };
39920
+ continue;
39921
+ }
40150
39922
  // TERNARY OPERATOR
40151
39923
  const isTernary = readNext(expression, pos) === TOKEN_OPERATOR_TERNARY_FIRST;
40152
39924
  if (isTernary) {
@@ -40217,6 +39989,7 @@ class RecordFormComponent {
40217
39989
  constructor() {
40218
39990
  this.facade = inject(EditorFacade);
40219
39991
  this.notifications = inject(NotificationsService);
39992
+ this.platform = inject(PlatformServiceInterface);
40220
39993
  this.subscription = new Subscription();
40221
39994
  this.recordUniqueIdentifier$ = this.facade.record$.pipe(map$2((record) => record.uniqueIdentifier));
40222
39995
  this.recordKind$ = this.facade.record$.pipe(map$2((record) => record.kind));
@@ -40227,6 +40000,8 @@ class RecordFormComponent {
40227
40000
  this.formFields = viewChildren(FormFieldComponent, ...(ngDevMode ? [{ debugName: "formFields" }] : []));
40228
40001
  this.sectionFocusDirectives = viewChildren('sectionFocus', ...(ngDevMode ? [{ debugName: "sectionFocusDirectives" }] : []));
40229
40002
  this.recordSignal = toSignal(this.facade.record$, { requireSync: true });
40003
+ this.userSignal = toSignal(this.platform.getMe());
40004
+ this.isAdminSignal = toSignal(this.platform.isAdministrator());
40230
40005
  this.expressionCache = new Map();
40231
40006
  }
40232
40007
  focusField(model, sectionIndex) {
@@ -40251,7 +40026,7 @@ class RecordFormComponent {
40251
40026
  this.subscription.unsubscribe();
40252
40027
  }
40253
40028
  handleFieldValueChange(model, newValue) {
40254
- if (!model) {
40029
+ if (!model || model === 'flags') {
40255
40030
  return;
40256
40031
  }
40257
40032
  this.facade.updateRecordField(model, newValue);
@@ -40294,7 +40069,15 @@ ${errors.map((err) => `> ${err}`).join('\n')}`);
40294
40069
  text: 'An error happened while evaluating an expression inside the editor configuration; open the developer console for more information',
40295
40070
  });
40296
40071
  }
40297
- this.expressionCache.set(expression, computed(() => evaluator({ globals: { record: this.recordSignal() } })));
40072
+ this.expressionCache.set(expression, computed(() => evaluator({
40073
+ globals: {
40074
+ record: this.recordSignal(),
40075
+ user: {
40076
+ ...this.userSignal(),
40077
+ isAdmin: this.isAdminSignal(),
40078
+ },
40079
+ },
40080
+ })));
40298
40081
  return this.expressionCache.get(expression);
40299
40082
  }
40300
40083
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: RecordFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
@@ -40901,6 +40684,669 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
40901
40684
  args: ['gnUiSearchRouterContainer']
40902
40685
  }] } });
40903
40686
 
40687
+ const flatten = (base, obj, keepLevel = false) => Object.keys(obj).reduce((prev, curr) => {
40688
+ const path = base ? `${base}.${curr}` : curr;
40689
+ const val = obj[curr];
40690
+ if (keepLevel) {
40691
+ return { ...prev, [path]: flatten('', val) };
40692
+ }
40693
+ else if (typeof val === 'object' && !Array.isArray(val)) {
40694
+ return {
40695
+ ...prev,
40696
+ ...flatten(path, val),
40697
+ };
40698
+ }
40699
+ else {
40700
+ return { ...prev, [path]: val };
40701
+ }
40702
+ }, {});
40703
+ const checkKeys = (input, mandatory, optional) => {
40704
+ const keys = Object.keys(input);
40705
+ const missing = mandatory.filter((key) => keys.indexOf(key) === -1);
40706
+ const unrecognized = keys.filter((key) => mandatory.indexOf(key) === -1 && optional.indexOf(key) === -1);
40707
+ return {
40708
+ missing,
40709
+ unrecognized,
40710
+ };
40711
+ };
40712
+ /**
40713
+ * Only keeps recognized keys, flatten nested values (to allow having "." in keys),
40714
+ * pushes warnings and errors to the given arrays; returns null in case of error
40715
+ */
40716
+ function parseConfigSection(fullConfigObj, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors) {
40717
+ if (typeof fullConfigObj[sectionName] !== 'object') {
40718
+ if (mandatoryKeys.length === 0)
40719
+ return null;
40720
+ outErrors.push(`The [${sectionName}] mandatory section is missing.`);
40721
+ return null;
40722
+ }
40723
+ const sectionConf = fullConfigObj[sectionName];
40724
+ const keysCheck = checkKeys(sectionConf, mandatoryKeys, optionalKeys);
40725
+ if (keysCheck.missing.length) {
40726
+ // note: this is not thrown to allow merging several Errors down the line
40727
+ outErrors.push(`In the [${sectionName}] section: ${keysCheck.missing.join(', ')}`);
40728
+ return null;
40729
+ }
40730
+ else if (keysCheck.unrecognized.length) {
40731
+ outWarnings.push(`In the [${sectionName}] section: ${keysCheck.unrecognized.join(', ')}`);
40732
+ keysCheck.unrecognized.forEach((key) => delete sectionConf[key]);
40733
+ }
40734
+ return sectionConf;
40735
+ }
40736
+ /**
40737
+ * Same as parseConfigSection but keeps all keys, recognized or not
40738
+ * Also the first level is the language code (e.g. 'en')
40739
+ * This is optional
40740
+ */
40741
+ function parseTranslationsConfigSection(fullConfigObj, sectionName) {
40742
+ if (typeof fullConfigObj[sectionName] !== 'object') {
40743
+ return {};
40744
+ }
40745
+ return flatten('', fullConfigObj[sectionName], true);
40746
+ }
40747
+ /**
40748
+ * Same as parseConfigSection but handles an array of configs; this is
40749
+ * considered optional; returns null in case of error in at least one of
40750
+ * the sections
40751
+ */
40752
+ function parseMultiConfigSection(fullConfigObj, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors) {
40753
+ const sections = fullConfigObj[sectionName];
40754
+ if (!sections) {
40755
+ return [];
40756
+ }
40757
+ if (!Array.isArray(sections)) {
40758
+ outErrors.push(`Expected [[${sectionName}]] to be an array of sections.`);
40759
+ return null;
40760
+ }
40761
+ const result = sections.map((section) => parseConfigSection({ [sectionName]: section }, sectionName, mandatoryKeys, optionalKeys, outWarnings, outErrors));
40762
+ if (result.some((r) => r === null)) {
40763
+ return null;
40764
+ }
40765
+ return result;
40766
+ }
40767
+ function checkMetadataLanguage(parsedConfigSection, outWarnings) {
40768
+ const lang2 = toLang2(parsedConfigSection.metadata_language.toLowerCase());
40769
+ if (lang2?.length !== 2) {
40770
+ outWarnings.push(`In the [global] section: metadata_language = "${parsedConfigSection.metadata_language}" is not a recognized ISO 639 language code`);
40771
+ }
40772
+ return parsedConfigSection;
40773
+ }
40774
+ function checkNewRecordDefaultLanguage(parsedConfigSection, outWarnings) {
40775
+ const lang2 = toLang2(parsedConfigSection.new_record_default_language.toLowerCase());
40776
+ if (!(lang2 in LANG_2_TO_3_MAPPER)) {
40777
+ outWarnings.push(`In the [editing] section: new_record_default_language = "${parsedConfigSection.new_record_default_language}" is not a recognized ISO 639 language code`);
40778
+ return {
40779
+ ...parsedConfigSection,
40780
+ new_record_default_language: undefined,
40781
+ };
40782
+ }
40783
+ return {
40784
+ ...parsedConfigSection,
40785
+ new_record_default_language: lang2,
40786
+ };
40787
+ }
40788
+ function checkNewRecordStandard(parsedConfigSection, outWarnings) {
40789
+ const standard = parsedConfigSection.new_record_standard;
40790
+ const normalizedStandard = typeof standard === 'string' ? standard.trim().toLowerCase() : null;
40791
+ if (normalizedStandard === 'iso19139' ||
40792
+ normalizedStandard === 'iso19115-3') {
40793
+ return {
40794
+ ...parsedConfigSection,
40795
+ new_record_standard: normalizedStandard,
40796
+ };
40797
+ }
40798
+ outWarnings.push(`In the [editing] section: new_record_standard = "${standard}" is not a supported metadata standard`);
40799
+ return {
40800
+ ...parsedConfigSection,
40801
+ new_record_standard: undefined,
40802
+ };
40803
+ }
40804
+
40805
+ /**
40806
+ * This loader extends the default one based on JSON files but also loads custom translations
40807
+ * defined in the app configuration
40808
+ * Implements a fallback on default lang if translated labels are empty
40809
+ */
40810
+ class FileWithOverridesTranslateLoader extends FileTranslateLoader {
40811
+ getTranslation(lang) {
40812
+ const baseLang = lang.substring(0, 2); // removing the right part of e.g. en_EN
40813
+ return super.getTranslation(baseLang).pipe(map$1((translations) => ({
40814
+ ...translations,
40815
+ ...getCustomTranslations(baseLang),
40816
+ })));
40817
+ }
40818
+ }
40819
+
40820
+ const MISSING_CONFIG_ERROR = `Application configuration was not initialized correctly.
40821
+ This error might show up in case of an invalid/malformed configuration file.
40822
+
40823
+ Note: make sure that you have called \`loadAppConfig\` from '../../../../../libs/util/app-config/src' before starting the Angular application.`;
40824
+ let globalConfig = null;
40825
+ function getGlobalConfig() {
40826
+ if (globalConfig === null)
40827
+ throw new Error(MISSING_CONFIG_ERROR);
40828
+ return globalConfig;
40829
+ }
40830
+ let themeConfig = null;
40831
+ function getThemeConfig() {
40832
+ if (themeConfig === null)
40833
+ throw new Error(MISSING_CONFIG_ERROR);
40834
+ return themeConfig;
40835
+ }
40836
+ let mapConfig = null;
40837
+ function getOptionalMapConfig() {
40838
+ return mapConfig;
40839
+ }
40840
+ let searchConfig = null;
40841
+ function getOptionalSearchConfig() {
40842
+ return searchConfig;
40843
+ }
40844
+ let editorConfig = null;
40845
+ function getOptionalEditorConfig() {
40846
+ return editorConfig;
40847
+ }
40848
+ let metadataQualityConfig = null;
40849
+ function getMetadataQualityConfig() {
40850
+ return (metadataQualityConfig ||
40851
+ {
40852
+ ENABLED: false,
40853
+ });
40854
+ }
40855
+ let customTranslations = null;
40856
+ function getCustomTranslations(langCode) {
40857
+ if (customTranslations === null)
40858
+ throw new Error(MISSING_CONFIG_ERROR);
40859
+ return langCode in customTranslations ? customTranslations[langCode] : {};
40860
+ }
40861
+ let appConfigLoaded = false;
40862
+ function parseGlobalSection(parsed, { warnings, errors }) {
40863
+ let parsedGlobalSection = parseConfigSection(parsed, 'global', ['geonetwork4_api_url'], [
40864
+ 'datahub_url',
40865
+ 'edit_url_template',
40866
+ 'proxy_path',
40867
+ 'metadata_language',
40868
+ 'login_url',
40869
+ 'logout_url',
40870
+ 'settings_url',
40871
+ 'web_component_embedder_url',
40872
+ 'languages',
40873
+ 'contact_email',
40874
+ 'reuse_form_url',
40875
+ ], warnings, errors);
40876
+ if (parsedGlobalSection?.metadata_language) {
40877
+ parsedGlobalSection = checkMetadataLanguage(parsedGlobalSection, warnings);
40878
+ }
40879
+ return parsedGlobalSection === null
40880
+ ? null
40881
+ : {
40882
+ GN4_API_URL: parsedGlobalSection.geonetwork4_api_url,
40883
+ DATAHUB_URL: parsedGlobalSection.datahub_url,
40884
+ EDIT_URL_TEMPLATE: parsedGlobalSection.edit_url_template,
40885
+ PROXY_PATH: parsedGlobalSection.proxy_path,
40886
+ METADATA_LANGUAGE: parsedGlobalSection.metadata_language
40887
+ ? parsedGlobalSection.metadata_language.toLowerCase()
40888
+ : undefined,
40889
+ LOGIN_URL: parsedGlobalSection.login_url,
40890
+ LOGOUT_URL: parsedGlobalSection.logout_url,
40891
+ SETTINGS_URL: parsedGlobalSection.settings_url,
40892
+ WEB_COMPONENT_EMBEDDER_URL: parsedGlobalSection.web_component_embedder_url,
40893
+ LANGUAGES: parsedGlobalSection.languages,
40894
+ CONTACT_EMAIL: parsedGlobalSection.contact_email,
40895
+ REUSE_FORM_URL: parsedGlobalSection.reuse_form_url,
40896
+ };
40897
+ }
40898
+ function parseMapSection(parsed, { warnings, errors }) {
40899
+ const parsedLayersSections = parseMultiConfigSection(parsed, 'map_layer', ['type'], ['name', 'url', 'data', 'styleUrl', 'accessToken'], warnings, errors);
40900
+ const parsedMapSection = parseConfigSection(parsed, 'map', [], [
40901
+ 'max_zoom',
40902
+ 'do_not_tile_wms',
40903
+ 'max_extent',
40904
+ 'max_feature_count',
40905
+ 'baselayer',
40906
+ 'do_not_use_default_basemap',
40907
+ 'external_viewer_url_template',
40908
+ 'external_viewer_open_new_tab',
40909
+ ], warnings, errors);
40910
+ return parsedMapSection === null || parsedLayersSections === null
40911
+ ? null
40912
+ : {
40913
+ MAX_ZOOM: parsedMapSection.max_zoom,
40914
+ DO_NOT_TILE_WMS: parsedMapSection.do_not_tile_wms,
40915
+ MAX_EXTENT: parsedMapSection.max_extent,
40916
+ MAX_FEATURE_COUNT: parsedMapSection.max_feature_count,
40917
+ EXTERNAL_VIEWER_URL_TEMPLATE: parsedMapSection.external_viewer_url_template,
40918
+ EXTERNAL_VIEWER_OPEN_NEW_TAB: parsedMapSection.external_viewer_open_new_tab,
40919
+ DO_NOT_USE_DEFAULT_BASEMAP: !!parsedMapSection.do_not_use_default_basemap,
40920
+ MAP_LAYERS: parsedLayersSections.map((map_layer) => ({
40921
+ TYPE: map_layer.type,
40922
+ URL: map_layer.url,
40923
+ NAME: map_layer.name,
40924
+ DATA: map_layer.data,
40925
+ STYLE_URL: map_layer.styleUrl,
40926
+ ACCESS_TOKEN: map_layer.accessToken,
40927
+ })),
40928
+ };
40929
+ }
40930
+ function parseThemeSection(parsed, { warnings, errors }) {
40931
+ const parsedThemeSection = parseConfigSection(parsed, 'theme', ['primary_color', 'secondary_color', 'main_color', 'background_color'], [
40932
+ 'header_foreground_color',
40933
+ 'main_font',
40934
+ 'title_font',
40935
+ 'fonts_stylesheet_url',
40936
+ 'thumbnail_placeholder',
40937
+ 'header_background',
40938
+ 'favicon',
40939
+ ], warnings, errors);
40940
+ return parsedThemeSection === null
40941
+ ? null
40942
+ : {
40943
+ PRIMARY_COLOR: parsedThemeSection.primary_color,
40944
+ SECONDARY_COLOR: parsedThemeSection.secondary_color,
40945
+ MAIN_COLOR: parsedThemeSection.main_color,
40946
+ BACKGROUND_COLOR: parsedThemeSection.background_color,
40947
+ HEADER_FOREGROUND_COLOR: parsedThemeSection.header_foreground_color,
40948
+ THUMBNAIL_PLACEHOLDER: parsedThemeSection.thumbnail_placeholder,
40949
+ HEADER_BACKGROUND: parsedThemeSection.header_background,
40950
+ TITLE_FONT: parsedThemeSection.title_font,
40951
+ MAIN_FONT: parsedThemeSection.main_font,
40952
+ FONTS_STYLESHEET_URL: parsedThemeSection.fonts_stylesheet_url,
40953
+ FAVICON: parsedThemeSection.favicon,
40954
+ };
40955
+ }
40956
+ function parseSearchSection(parsed, { warnings, errors }) {
40957
+ const parsedSearchSection = parseConfigSection(parsed, 'search', [], [
40958
+ 'record_kind_quick_filter',
40959
+ 'filter_geometry_data',
40960
+ 'filter_geometry_url',
40961
+ 'do_not_use_default_search_preset',
40962
+ 'search_preset',
40963
+ 'advanced_filters',
40964
+ 'limit',
40965
+ 'spatial_extent_max_file_size',
40966
+ 'geocoding_provider',
40967
+ 'geocoding_provider_options',
40968
+ 'geocoding_provider_labels',
40969
+ ], warnings, errors);
40970
+ const parsedSearchParams = parseMultiConfigSection(parsed, 'search_preset', ['name'], ['sort', 'filters'], warnings, errors);
40971
+ const parsedCustomFilters = parseMultiConfigSection(parsed, 'custom_filter', ['name', 'base_filter'], ['exclude_values', 'include_values', 'label_key'], warnings, errors);
40972
+ const parsedGeocodingProviderLabels = parsedSearchSection?.geocoding_provider_labels;
40973
+ return parsedSearchSection === null
40974
+ ? null
40975
+ : {
40976
+ RECORD_KIND_QUICK_FILTER: parsedSearchSection.record_kind_quick_filter,
40977
+ FILTER_GEOMETRY_DATA: parsedSearchSection.filter_geometry_data,
40978
+ FILTER_GEOMETRY_URL: parsedSearchSection.filter_geometry_url,
40979
+ DO_NOT_USE_DEFAULT_SEARCH_PRESET: !!parsedSearchSection.do_not_use_default_search_preset,
40980
+ SEARCH_PRESET: parsedSearchParams.map((param) => ({
40981
+ sort: param.sort,
40982
+ name: param.name,
40983
+ filters: param.filters,
40984
+ })),
40985
+ ADVANCED_FILTERS: parsedSearchSection.advanced_filters,
40986
+ CUSTOM_FILTERS: (parsedCustomFilters ?? []).map((customFilter) => ({
40987
+ name: customFilter.name,
40988
+ baseFilter: customFilter.base_filter,
40989
+ excludeValues: customFilter.exclude_values,
40990
+ includeValues: customFilter.include_values,
40991
+ labelKey: customFilter.label_key,
40992
+ })),
40993
+ LIMIT: parsedSearchSection.limit,
40994
+ SPATIAL_EXTENT_MAX_FILE_SIZE: parsedSearchSection.spatial_extent_max_file_size,
40995
+ GEOCODING_PROVIDER: parsedSearchSection.geocoding_provider,
40996
+ GEOCODING_PROVIDER_OPTIONS: parsedSearchSection.geocoding_provider_options,
40997
+ GEOCODING_PROVIDER_LABELS: parsedGeocodingProviderLabels
40998
+ ? {
40999
+ MAIN: parsedGeocodingProviderLabels.main,
41000
+ SECONDARY: parsedGeocodingProviderLabels.secondary,
41001
+ TERTIARY: parsedGeocodingProviderLabels.tertiary,
41002
+ }
41003
+ : undefined,
41004
+ };
41005
+ }
41006
+ function parseMetadataQualitySection(parsed, { warnings, errors }) {
41007
+ const parsedMetadataQualitySection = parseConfigSection(parsed, 'metadata-quality', [], ['enabled'], warnings, errors);
41008
+ return parsedMetadataQualitySection === null
41009
+ ? null
41010
+ : {
41011
+ ENABLED: parsedMetadataQualitySection.enabled,
41012
+ SORTABLE: parsedMetadataQualitySection.sortable,
41013
+ };
41014
+ }
41015
+ function parseEditingSection(parsed, { warnings, errors }) {
41016
+ let parsedEditingSection = parseConfigSection(parsed, 'editing', [], ['new_record_default_language', 'new_record_standard'], warnings, errors);
41017
+ if (parsedEditingSection !== null &&
41018
+ parsedEditingSection.new_record_default_language !== undefined) {
41019
+ parsedEditingSection = checkNewRecordDefaultLanguage(parsedEditingSection, warnings);
41020
+ }
41021
+ if (parsedEditingSection !== null &&
41022
+ parsedEditingSection.new_record_standard !== undefined) {
41023
+ parsedEditingSection = checkNewRecordStandard(parsedEditingSection, warnings);
41024
+ }
41025
+ return parsedEditingSection === null
41026
+ ? null
41027
+ : {
41028
+ NEW_RECORD_DEFAULT_LANGUAGE: parsedEditingSection.new_record_default_language,
41029
+ NEW_RECORD_STANDARD: parsedEditingSection.new_record_standard,
41030
+ };
41031
+ }
41032
+ const SECTION_PARSERS = {
41033
+ global: parseGlobalSection,
41034
+ map: parseMapSection,
41035
+ theme: parseThemeSection,
41036
+ search: parseSearchSection,
41037
+ metadataQuality: parseMetadataQualitySection,
41038
+ editor: parseEditingSection,
41039
+ translations: (parsed) => parseTranslationsConfigSection(parsed, 'translations'),
41040
+ };
41041
+ /**
41042
+ * Loads the configuration file and stores the given sections (all by default);
41043
+ * omitted sections are reset (their getters will throw or return null);
41044
+ * resolves with the parsed configuration file, e.g. to read sections with a custom parser
41045
+ */
41046
+ function loadAppConfig(configUrl = 'assets/configuration/default.toml', sections = Object.keys(SECTION_PARSERS)) {
41047
+ console.log(`[geonetwork-ui] Loading application configuration from ${configUrl}`);
41048
+ return fetch(configUrl)
41049
+ .then((resp) => {
41050
+ if (!resp.ok)
41051
+ throw new Error('Configuration file could not be loaded');
41052
+ return resp.text();
41053
+ })
41054
+ .then((conf) => {
41055
+ let parsed;
41056
+ try {
41057
+ parsed = TOML.parse(conf, { joiner: '\n', bigint: false });
41058
+ }
41059
+ catch (e) {
41060
+ throw new Error(`An error occurred when parsing the configuration file: ${e.message}`);
41061
+ }
41062
+ const issues = { warnings: [], errors: [] };
41063
+ const config = Object.fromEntries(sections.map((name) => [name, SECTION_PARSERS[name](parsed, issues)]));
41064
+ if (issues.errors.length) {
41065
+ throw new Error(`One or more mandatory settings were missing from the configuration file.
41066
+ ${issues.errors.join('\n')}`);
41067
+ }
41068
+ else if (issues.warnings.length) {
41069
+ console.warn(`One or more unexpected settings were encountered in the configuration file.
41070
+ ${issues.warnings.join('\n')}`);
41071
+ }
41072
+ globalConfig = config.global ?? null;
41073
+ themeConfig = config.theme ?? null;
41074
+ mapConfig = config.map ?? null;
41075
+ searchConfig = config.search ?? null;
41076
+ metadataQualityConfig = config.metadataQuality ?? null;
41077
+ editorConfig = config.editor ?? null;
41078
+ customTranslations = config.translations ?? {};
41079
+ appConfigLoaded = true;
41080
+ return parsed;
41081
+ });
41082
+ }
41083
+ function isConfigLoaded() {
41084
+ return appConfigLoaded;
41085
+ }
41086
+ function _reset() {
41087
+ globalConfig = null;
41088
+ themeConfig = null;
41089
+ mapConfig = null;
41090
+ searchConfig = null;
41091
+ metadataQualityConfig = null;
41092
+ editorConfig = null;
41093
+ customTranslations = null;
41094
+ appConfigLoaded = false;
41095
+ }
41096
+ const TRANSLATE_WITH_OVERRIDES_CONFIG = {
41097
+ compiler: {
41098
+ provide: TranslateCompiler,
41099
+ useClass: TranslateMessageFormatCompiler,
41100
+ },
41101
+ loader: [
41102
+ {
41103
+ provide: TRANSLATE_HTTP_LOADER_CONFIG,
41104
+ useValue: {
41105
+ prefix: './assets/i18n/',
41106
+ suffix: '.json',
41107
+ },
41108
+ },
41109
+ {
41110
+ provide: TranslateLoader,
41111
+ useClass: FileWithOverridesTranslateLoader,
41112
+ deps: [HttpClient, TRANSLATE_HTTP_LOADER_CONFIG],
41113
+ },
41114
+ ],
41115
+ };
41116
+
41117
+ const okAppConfigFixture = () => `
41118
+ [global]
41119
+ geonetwork4_api_url = "/geonetwork/srv/api"
41120
+ proxy_path = "/proxy/?url="
41121
+ metadata_language = "fre"
41122
+ login_url = "/cas/login?service="
41123
+ logout_url = "/geonetwork/signout"
41124
+ settings_url = "/geonetwork/settings"
41125
+ web_component_embedder_url = "/datahub/wc-embedder.html"
41126
+
41127
+ [map]
41128
+ max_zoom = 10
41129
+ max_extent = [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855]
41130
+ do_not_use_default_basemap = false
41131
+ external_viewer_url_template = 'https://example.com/myviewer?'
41132
+ external_viewer_open_new_tab = true
41133
+ [[map_layer]]
41134
+ type = "wms"
41135
+ url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
41136
+ name = "masque_hdf_ign_carto_latin1"
41137
+ [[map_layer]]
41138
+ type = "wfs"
41139
+ url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
41140
+ name = "masque_hdf_ign_carto_latin1"
41141
+
41142
+ [theme]
41143
+ primary_color = "#093564"
41144
+ secondary_color = "#c2e9dc"
41145
+ main_color = "#212029" # All-purpose text color
41146
+ background_color = "#fdfbff"
41147
+ thumbnail_placeholder = 'assets/img/placeholder.svg'
41148
+ header_background = 'teal'
41149
+ header_foreground_color = "#872e2e"
41150
+ main_font = 'sans-serif'
41151
+ title_font = 'serif'
41152
+ fonts_stylesheet_url = "https://fonts.googleapis.com/css2?family=Open+Sans"
41153
+
41154
+ [search]
41155
+ record_kind_quick_filter = false
41156
+ filter_geometry_url = 'https://my.domain.org/geom.json'
41157
+ do_not_use_default_search_preset = false
41158
+ geocoding_provider = "geoplateforme"
41159
+ geocoding_provider_options.index = "poi"
41160
+ geocoding_provider_options.category = "administratif"
41161
+ geocoding_provider_options.limit = 5
41162
+ geocoding_provider_labels.main = '/properties/name/0'
41163
+ geocoding_provider_labels.secondary = '/properties/citycode/0'
41164
+ geocoding_provider_labels.tertiary = '/properties/category/1'
41165
+ advanced_filters = ['publicationYear', 'documentStandard', 'inspireKeyword', 'topic', 'license', 'myOrg:firstCustomFilter', 'myOrg:secondCustomFilter']
41166
+
41167
+ [[custom_filter]]
41168
+ name = 'myOrg:firstCustomFilter'
41169
+ base_filter = 'keyword'
41170
+ exclude_values = ['my keyword 1', 'my keyword 2']
41171
+ label_key = 'myOrg.firstCustomFilter'
41172
+
41173
+ [[custom_filter]]
41174
+ name = 'myOrg:secondCustomFilter'
41175
+ base_filter = 'keyword'
41176
+ include_values = ['my keyword 3', 'my keyword 4']
41177
+ label_key = 'myOrg.secondCustomFilter'
41178
+
41179
+ [[search_preset]]
41180
+ sort = "-createDate"
41181
+ name = 'filterByOrgs'
41182
+ filters.q = 'Carto'
41183
+ filters.organisation = ['Org1', 'Org2']
41184
+ filters.format = ['ESRI Shapefile']
41185
+ filters.topic = ['boundaries']
41186
+ filters.publicationYear = ['2023', '2022']
41187
+ filters.spatial = ['yes']
41188
+
41189
+ [translations.en]
41190
+ "my.first.key" = 'First label.'
41191
+ "my.second.key" = """
41192
+ Second label,
41193
+ on two lines."""
41194
+
41195
+ [translations.de]
41196
+ my.first.key = 'Erste Etikett.'
41197
+
41198
+ [translations.fr]
41199
+ my.sample.text = "Un bon exemple de texte."
41200
+ "my.quoted.text" = 'du texte entre guillements.'
41201
+ `;
41202
+ const appConfigWithTranslationFixture = () => okAppConfigFixture();
41203
+ const minimalAppConfigFixture = () => `
41204
+ [global]
41205
+ geonetwork4_api_url = "/geonetwork/srv/api"
41206
+ proxy_path = "/proxy/?url="
41207
+
41208
+ [theme]
41209
+ primary_color = "#093564"
41210
+ secondary_color = "#c2e9dc"
41211
+ main_color = "#212029" # All-purpose text color
41212
+ background_color = "#fdfbff"
41213
+ `;
41214
+ const customFilterMissingMandatoryConfigFixture = () => `
41215
+ [global]
41216
+ geonetwork4_api_url = "/geonetwork/srv/api"
41217
+
41218
+ [theme]
41219
+ primary_color = "#093564"
41220
+ secondary_color = "#c2e9dc"
41221
+ main_color = "#212029" # All-purpose text color
41222
+ background_color = "#fdfbff"
41223
+
41224
+ [search]
41225
+ advanced_filters = ['myOrg:firstCustomFilter']
41226
+
41227
+ [[custom_filter]]
41228
+ name = 'myOrg:firstCustomFilter'
41229
+ `;
41230
+ const mapConfigFixture = () => ({
41231
+ MAX_ZOOM: 10,
41232
+ MAX_EXTENT: [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855],
41233
+ DO_NOT_USE_DEFAULT_BASEMAP: false,
41234
+ DO_NOT_TILE_WMS: false,
41235
+ EXTERNAL_VIEWER_URL_TEMPLATE: 'https://example.com/myviewer/#/?actions=[{"type":"CATALOG:ADD_LAYERS_FROM_CATALOGS","layers":["${layer_name}"],"sources":[{"url":"${service_url}","type":"${service_type}"}]}]',
41236
+ EXTERNAL_VIEWER_OPEN_NEW_TAB: true,
41237
+ MAP_LAYERS: [
41238
+ {
41239
+ TYPE: 'xyz',
41240
+ URL: 'https://some-basemap-server',
41241
+ },
41242
+ {
41243
+ TYPE: 'wms',
41244
+ URL: 'https://some-wms-server',
41245
+ NAME: 'some_layername',
41246
+ },
41247
+ {
41248
+ TYPE: 'wfs',
41249
+ URL: 'https://some-wfs-server',
41250
+ NAME: 'some_layername',
41251
+ },
41252
+ ],
41253
+ });
41254
+ const malformedConfigFixture = () => `
41255
+ {
41256
+ "I thought": "we were still doing json"
41257
+ }
41258
+ `;
41259
+ const missingMandatoryConfigFixture = () => `
41260
+ [theme]
41261
+ primary_color = "#093564"
41262
+ secondary_color = "#c2e9dc"
41263
+ background_color = "#fdfbff"
41264
+ main_font = 'sans-serif'
41265
+ `;
41266
+ const wrongLanguageCodeConfigFixture = () => `
41267
+ [global]
41268
+ geonetwork4_api_url = "/geonetwork/srv/api"
41269
+ proxy_path = "/proxy/?url="
41270
+ metadata_language = "abc"
41271
+
41272
+ [map]
41273
+
41274
+ [theme]
41275
+ primary_color = "#093564"
41276
+ secondary_color = "#c2e9dc"
41277
+ main_color = "#212029" # All-purpose text color
41278
+ background_color = "#fdfbff"
41279
+ `;
41280
+ const unrecognizedKeysConfigFixture = () => `
41281
+ [global]
41282
+ geonetwork4_api_url = "/geonetwork/srv/api"
41283
+ proxy_path = "/proxy/?url="
41284
+ metadata_language = "fre"
41285
+ another_path = '/whatever'
41286
+
41287
+ [map]
41288
+ max_zoom = 10
41289
+ max_extent = [-418263.418776, 5251529.591305, 961272.067714, 6706890.609855]
41290
+ do_not_use_default_basemap = false
41291
+ external_viewer_url_template = 'https://example.com/myviewer?'
41292
+ external_viewer_open_new_tab = true
41293
+ another_zoom = 15
41294
+ [[map_layer]]
41295
+ type = "wms"
41296
+ url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
41297
+ name = "masque_hdf_ign_carto_latin1"
41298
+ [[map_layer]]
41299
+ type = "wfs"
41300
+ url = "https://www.geo2france.fr/geoserver/cr_hdf/ows"
41301
+ name = "masque_hdf_ign_carto_latin1"
41302
+ another_layer = "wrong layer definition"
41303
+
41304
+ [theme]
41305
+ primary_color = "#093564"
41306
+ secondary_color = "#c2e9dc"
41307
+ main_color = "#212029" # All-purpose text color
41308
+ background_color = "#fdfbff"
41309
+ thumbnail_placeholder = 'assets/img/placeholder.svg'
41310
+ header_background = 'teal'
41311
+ header_foreground_color = "#872e2e"
41312
+ main_font = 'sans-serif'
41313
+ title_font = 'serif'
41314
+ another_color = 'red'
41315
+ `;
41316
+
41317
+ function getMapContextLayerFromConfig(config) {
41318
+ switch (config.TYPE) {
41319
+ case 'wms':
41320
+ return {
41321
+ type: 'wms',
41322
+ url: config.URL,
41323
+ name: config.NAME,
41324
+ };
41325
+ case 'wfs':
41326
+ return {
41327
+ type: 'wfs',
41328
+ url: config.URL,
41329
+ featureType: config.NAME,
41330
+ };
41331
+ case 'xyz':
41332
+ return {
41333
+ type: config.TYPE,
41334
+ url: config.URL,
41335
+ };
41336
+ case 'geojson':
41337
+ return {
41338
+ type: config.TYPE,
41339
+ ...(config.DATA ? { data: config.DATA } : { url: config.URL }),
41340
+ };
41341
+ case 'maplibre-style':
41342
+ return {
41343
+ type: config.TYPE,
41344
+ styleUrl: config.STYLE_URL,
41345
+ accessToken: config.ACCESS_TOKEN,
41346
+ };
41347
+ }
41348
+ }
41349
+
40904
41350
  const CHART_TYPE_VALUES = [
40905
41351
  'bar',
40906
41352
  'bar-horizontal',
@@ -40916,5 +41362,5 @@ const CHART_TYPE_VALUES = [
40916
41362
  * Generated bundle index. Do not edit.
40917
41363
  */
40918
41364
 
40919
- 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 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, 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$2 as 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 };
41365
+ 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 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$2 as 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 };
40920
41366
  //# sourceMappingURL=geonetwork-ui.mjs.map