geonetwork-ui 2.11.0-dev.0559cfd9d → 2.11.0-dev.05fe30eee
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/geonetwork-ui.mjs +373 -181
- package/fesm2022/geonetwork-ui.mjs.map +1 -1
- package/index.d.ts +74 -10
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/libs/api/repository/src/lib/gn4/gn4-repository.ts +78 -1
- package/src/libs/api/repository/src/lib/gn4/platform/gn4-platform.service.ts +11 -0
- package/src/libs/common/domain/src/lib/model/record/flags.model.ts +1 -0
- package/src/libs/common/domain/src/lib/model/record/index.ts +1 -0
- package/src/libs/common/domain/src/lib/platform.service.interface.ts +1 -0
- package/src/libs/common/domain/src/lib/repository/records-repository.interface.ts +19 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +3 -5
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.ts +2 -2
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.css +0 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.html +18 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field-record-flags/form-field-record-flag-component.ts +86 -0
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.html +100 -88
- package/src/libs/feature/editor/src/lib/components/record-form/form-field/form-field.component.ts +11 -4
- package/src/libs/feature/editor/src/lib/components/record-form/record-form.component.ts +18 -4
- package/src/libs/feature/editor/src/lib/expressions.ts +67 -0
- package/src/libs/feature/editor/src/lib/fields.config.ts +13 -0
- package/src/libs/feature/editor/src/lib/models/editor-config.model.ts +10 -4
- package/src/libs/util/app-config/src/index.ts +1 -0
- package/src/libs/util/app-config/src/lib/app-config.ts +338 -284
- package/src/libs/util/app-config/src/lib/model.ts +17 -0
- package/src/libs/util/app-config/src/lib/parse-utils.ts +8 -4
- package/translations/de.json +4 -0
- package/translations/en.json +4 -0
- package/translations/es.json +4 -0
- package/translations/fr.json +4 -0
- package/translations/it.json +4 -0
- package/translations/nl.json +4 -0
- package/translations/pt.json +4 -0
- package/translations/sk.json +4 -0
|
@@ -14,7 +14,7 @@ import * as i4 from '@ngx-translate/core';
|
|
|
14
14
|
import { TranslateLoader, TranslateCompiler, TranslateDefaultParser, TranslateParser, TranslateService, provideTranslateService, TranslateDirective, TranslatePipe, TranslateModule } from '@ngx-translate/core';
|
|
15
15
|
import { TranslateMessageFormatCompiler } from 'ngx-translate-messageformat-compiler';
|
|
16
16
|
import { TranslateHttpLoader, TRANSLATE_HTTP_LOADER_CONFIG } from '@ngx-translate/http-loader';
|
|
17
|
-
import { map as map$1, shareReplay as shareReplay$1, catchError, tap as tap$1, filter as filter$1, startWith as startWith$1,
|
|
17
|
+
import { map as map$1, shareReplay as shareReplay$1, catchError, tap as tap$1, withLatestFrom, filter as filter$1, startWith as startWith$1, switchMap as switchMap$1, take, mergeMap, delay, debounceTime, distinctUntilChanged, finalize, throttleTime, first as first$1, pairwise as pairwise$1, share, defaultIfEmpty, toArray } from 'rxjs/operators';
|
|
18
18
|
import { lt, valid, coerce, satisfies, ltr } from 'semver';
|
|
19
19
|
import chroma from 'chroma-js';
|
|
20
20
|
import * as i1$1 from '@angular/common';
|
|
@@ -52,7 +52,7 @@ import { matClose, matContentCopy, matExpandMore, matExpandLess, matSearch, matS
|
|
|
52
52
|
import * as i1$4 from '@angular/material/checkbox';
|
|
53
53
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
54
54
|
import * as i1$5 from '@angular/material/tooltip';
|
|
55
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
55
|
+
import { MatTooltipModule, MatTooltip } from '@angular/material/tooltip';
|
|
56
56
|
import { MAT_DATE_LOCALE, MAT_DATE_FORMATS, DateAdapter } from '@angular/material/core';
|
|
57
57
|
import { MAT_DATE_FNS_FORMATS, DateFnsAdapter } from '@angular/material-date-fns-adapter';
|
|
58
58
|
import { enUS } from 'date-fns/locale/en-US';
|
|
@@ -20564,7 +20564,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
20564
20564
|
}] } });
|
|
20565
20565
|
|
|
20566
20566
|
var name = "geonetwork-ui";
|
|
20567
|
-
var version = "2.11.0-dev.
|
|
20567
|
+
var version = "2.11.0-dev.05fe30eee";
|
|
20568
20568
|
var engines = {
|
|
20569
20569
|
node: ">=24"
|
|
20570
20570
|
};
|
|
@@ -21477,10 +21477,21 @@ class Gn4Repository {
|
|
|
21477
21477
|
this.platformService = inject(PlatformServiceInterface);
|
|
21478
21478
|
this.gn4LanguagesApi = inject(LanguagesApiService);
|
|
21479
21479
|
this.settingsService = inject(Gn4SettingsService);
|
|
21480
|
+
this.gn4TagsApi = inject(TagsApiService);
|
|
21480
21481
|
this.disableDraft = inject(DISABLE_DRAFT, { optional: true }) ?? false;
|
|
21481
21482
|
this.defaultConverter = inject(DEFAULT_RECORD_CONVERTER);
|
|
21482
21483
|
this._draftsChanged = new Subject();
|
|
21483
21484
|
this.draftsChanged$ = this._draftsChanged.asObservable();
|
|
21485
|
+
/*
|
|
21486
|
+
* FLAGS
|
|
21487
|
+
* Note: in GN4 API, categories are named "tags"
|
|
21488
|
+
*/
|
|
21489
|
+
this.categoriesIdentifierForFlags = this.gn4TagsApi.getTags().pipe(map$1((categories) => categories.reduce((acc, category) => {
|
|
21490
|
+
if (category.name.startsWith('geonetwork-ui-flag:')) {
|
|
21491
|
+
acc[category.name.replace(/^geonetwork-ui-flag:/, '')] = category.id;
|
|
21492
|
+
}
|
|
21493
|
+
return acc;
|
|
21494
|
+
}, {})), shareReplay$1(1));
|
|
21484
21495
|
}
|
|
21485
21496
|
search({ filters, fields, offset, limit, sort, filterIds, filterGeometry, }) {
|
|
21486
21497
|
return this.gn4SearchApi
|
|
@@ -21782,6 +21793,32 @@ class Gn4Repository {
|
|
|
21782
21793
|
removeRecordFromLocalStorage(recordId) {
|
|
21783
21794
|
window.localStorage.removeItem(this.getLocalStorageKeyForRecord(recordId));
|
|
21784
21795
|
}
|
|
21796
|
+
getCategoryIdForFlag(flagName) {
|
|
21797
|
+
return this.categoriesIdentifierForFlags.pipe(map$1((categories) => {
|
|
21798
|
+
const categoryId = categories[flagName];
|
|
21799
|
+
if (categoryId === undefined) {
|
|
21800
|
+
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.`);
|
|
21801
|
+
return null;
|
|
21802
|
+
}
|
|
21803
|
+
return categoryId;
|
|
21804
|
+
}));
|
|
21805
|
+
}
|
|
21806
|
+
setRecordFlag(uniqueIdentifier, flagName, value) {
|
|
21807
|
+
return this.getCategoryIdForFlag(flagName).pipe(switchMap((categoryId) => {
|
|
21808
|
+
if (categoryId === null)
|
|
21809
|
+
return of();
|
|
21810
|
+
return value
|
|
21811
|
+
? this.gn4RecordsApi.tagRecord(uniqueIdentifier, [categoryId], false)
|
|
21812
|
+
: this.gn4RecordsApi.deleteTags(uniqueIdentifier, [categoryId]);
|
|
21813
|
+
}));
|
|
21814
|
+
}
|
|
21815
|
+
getRecordFlag(uniqueIdentifier, flagName) {
|
|
21816
|
+
return this.gn4RecordsApi.getRecordTags(uniqueIdentifier).pipe(withLatestFrom(this.getCategoryIdForFlag(flagName)), map$1(([tags, categoryId]) => {
|
|
21817
|
+
if (categoryId === null)
|
|
21818
|
+
return false;
|
|
21819
|
+
return Array.from(tags).some((tag) => tag.id === categoryId);
|
|
21820
|
+
}));
|
|
21821
|
+
}
|
|
21785
21822
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: Gn4Repository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
21786
21823
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: Gn4Repository }); }
|
|
21787
21824
|
}
|
|
@@ -22397,6 +22434,9 @@ class Gn4PlatformService {
|
|
|
22397
22434
|
this.me$ = this.disableAuth
|
|
22398
22435
|
? of(null)
|
|
22399
22436
|
: of(true).pipe(switchMap(() => this.meApi.getMe()), switchMap((apiUser) => this.mapper.userFromMeApi(apiUser)), shareReplay$1({ bufferSize: 1, refCount: true }));
|
|
22437
|
+
this.isAdmin$ = this.disableAuth
|
|
22438
|
+
? of(false)
|
|
22439
|
+
: of(true).pipe(switchMap(() => this.meApi.getMe()), map$1((apiUser) => !!apiUser?.admin), shareReplay$1({ bufferSize: 1, refCount: true }));
|
|
22400
22440
|
/**
|
|
22401
22441
|
* A map of already loaded thesauri (groups of keywords); the key is a URI
|
|
22402
22442
|
* @private
|
|
@@ -22432,6 +22472,9 @@ class Gn4PlatformService {
|
|
|
22432
22472
|
isAnonymous() {
|
|
22433
22473
|
return this.isUserAnonymous$;
|
|
22434
22474
|
}
|
|
22475
|
+
isAdministrator() {
|
|
22476
|
+
return this.isAdmin$;
|
|
22477
|
+
}
|
|
22435
22478
|
getOrganizations() {
|
|
22436
22479
|
return undefined;
|
|
22437
22480
|
}
|
|
@@ -36522,6 +36565,15 @@ const DEFAULT_CONFIGURATION = {
|
|
|
36522
36565
|
labelKey: marker('editor.record.form.field.title'),
|
|
36523
36566
|
},
|
|
36524
36567
|
},
|
|
36568
|
+
{
|
|
36569
|
+
model: 'flags',
|
|
36570
|
+
modelSpecifier: 'flags:IS_REFERENCE_DATASET',
|
|
36571
|
+
formFieldConfig: {
|
|
36572
|
+
labelKey: marker('editor.record.form.field.flags.IS_REFERENCE_DATASET'),
|
|
36573
|
+
hintKey: marker('editor.record.form.field.hint.flags.IS_REFERENCE_DATASET'),
|
|
36574
|
+
},
|
|
36575
|
+
hidden: '${record.kind != "dataset" || !user.isAdmin}',
|
|
36576
|
+
},
|
|
36525
36577
|
{
|
|
36526
36578
|
model: 'abstract',
|
|
36527
36579
|
formFieldConfig: {
|
|
@@ -39406,6 +39458,56 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
39406
39458
|
type: Output
|
|
39407
39459
|
}] } });
|
|
39408
39460
|
|
|
39461
|
+
class FormFieldRecordFlagComponent {
|
|
39462
|
+
constructor() {
|
|
39463
|
+
this.flagName = input(...(ngDevMode ? [undefined, { debugName: "flagName" }] : []));
|
|
39464
|
+
this.labelKey = input(...(ngDevMode ? [undefined, { debugName: "labelKey" }] : []));
|
|
39465
|
+
this.hintKey = input(...(ngDevMode ? [undefined, { debugName: "hintKey" }] : []));
|
|
39466
|
+
this.editorFacade = inject(EditorFacade);
|
|
39467
|
+
this.repository = inject(RecordsRepositoryInterface);
|
|
39468
|
+
this.notificationsService = inject(NotificationsService);
|
|
39469
|
+
this.translateService = inject(TranslateService);
|
|
39470
|
+
this.record = toSignal(this.editorFacade.record$);
|
|
39471
|
+
this.recordKind = toSignal(this.editorFacade.record$.pipe(map$1((record) => record.kind)));
|
|
39472
|
+
this.initialValue$ = this.editorFacade.record$.pipe(filter((record) => !!record), switchMap$1((record) => this.repository.getRecordFlag(record.uniqueIdentifier, this.flagName())));
|
|
39473
|
+
}
|
|
39474
|
+
onToggle(enabled) {
|
|
39475
|
+
if (this.record() === null) {
|
|
39476
|
+
return;
|
|
39477
|
+
}
|
|
39478
|
+
this.repository
|
|
39479
|
+
.setRecordFlag(this.record().uniqueIdentifier, this.flagName(), enabled)
|
|
39480
|
+
.subscribe({
|
|
39481
|
+
next: () => {
|
|
39482
|
+
// do nothing
|
|
39483
|
+
},
|
|
39484
|
+
error: (error) => {
|
|
39485
|
+
this.notificationsService.showNotification({
|
|
39486
|
+
type: 'error',
|
|
39487
|
+
title: this.translateService.instant('editor.record.flag.saveError.title'),
|
|
39488
|
+
text: `${this.translateService.instant('editor.record.flag.saveError.body', {
|
|
39489
|
+
recordKind: this.recordKind(),
|
|
39490
|
+
})} ${error.message}`,
|
|
39491
|
+
}, undefined, error);
|
|
39492
|
+
},
|
|
39493
|
+
});
|
|
39494
|
+
}
|
|
39495
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldRecordFlagComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39496
|
+
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: [
|
|
39497
|
+
provideIcons({
|
|
39498
|
+
matHelpOutline,
|
|
39499
|
+
}),
|
|
39500
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
39501
|
+
}
|
|
39502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldRecordFlagComponent, decorators: [{
|
|
39503
|
+
type: Component,
|
|
39504
|
+
args: [{ selector: 'gn-ui-form-field-record-flag', standalone: true, imports: [AsyncPipe, CheckToggleComponent, TranslatePipe, NgIcon, MatTooltip], viewProviders: [
|
|
39505
|
+
provideIcons({
|
|
39506
|
+
matHelpOutline,
|
|
39507
|
+
}),
|
|
39508
|
+
], 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" }]
|
|
39509
|
+
}], 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 }] }] } });
|
|
39510
|
+
|
|
39409
39511
|
class FormFieldComponent {
|
|
39410
39512
|
constructor() {
|
|
39411
39513
|
this.valueChange = new EventEmitter();
|
|
@@ -39424,6 +39526,7 @@ class FormFieldComponent {
|
|
|
39424
39526
|
this.model === 'legalConstraints' ||
|
|
39425
39527
|
this.model === 'securityConstraints' ||
|
|
39426
39528
|
this.model === 'otherConstraints' ||
|
|
39529
|
+
this.model === 'flags' ||
|
|
39427
39530
|
this.componentName === 'form-field-constraints-shortcuts');
|
|
39428
39531
|
}
|
|
39429
39532
|
get valueAsString() {
|
|
@@ -39463,6 +39566,9 @@ class FormFieldComponent {
|
|
|
39463
39566
|
const identifiers = this.value;
|
|
39464
39567
|
return identifiers?.[0]?.code || '';
|
|
39465
39568
|
}
|
|
39569
|
+
get recordFlag() {
|
|
39570
|
+
return this.modelSpecifier?.replace(/^flags:/, '');
|
|
39571
|
+
}
|
|
39466
39572
|
handleResourceIdentifierChange(code) {
|
|
39467
39573
|
const identifiers = this.value;
|
|
39468
39574
|
if (!code) {
|
|
@@ -39480,7 +39586,7 @@ class FormFieldComponent {
|
|
|
39480
39586
|
}
|
|
39481
39587
|
}
|
|
39482
39588
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
39483
|
-
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 }); }
|
|
39589
|
+
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 }); }
|
|
39484
39590
|
}
|
|
39485
39591
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
39486
39592
|
type: Component,
|
|
@@ -39510,7 +39616,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
39510
39616
|
FormFieldTopicsComponent,
|
|
39511
39617
|
TextFieldModule,
|
|
39512
39618
|
NgIconComponent,
|
|
39513
|
-
|
|
39619
|
+
FormFieldRecordFlagComponent,
|
|
39620
|
+
], 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"] }]
|
|
39514
39621
|
}], propDecorators: { uniqueIdentifier: [{
|
|
39515
39622
|
type: Input
|
|
39516
39623
|
}], recordKind: [{
|
|
@@ -39541,9 +39648,13 @@ const TOKEN_OPERATOR_LOGICAL = ['==', '!='];
|
|
|
39541
39648
|
const TOKEN_STRING_LITERAL = ["'", '"'];
|
|
39542
39649
|
const TOKEN_GROUP_START = '(';
|
|
39543
39650
|
const TOKEN_GROUP_END = ')';
|
|
39651
|
+
const TOKEN_OPERATOR_BOOLEAN = ['&&', '||'];
|
|
39652
|
+
const TOKEN_OPERATOR_NOT = '!';
|
|
39544
39653
|
// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_precedence
|
|
39545
39654
|
const OPERATORS_BY_PRECEDENCE = [
|
|
39546
39655
|
[TOKEN_OPERATOR_TERNARY_FIRST, TOKEN_OPERATOR_TERNARY_SECOND],
|
|
39656
|
+
TOKEN_OPERATOR_BOOLEAN,
|
|
39657
|
+
[TOKEN_OPERATOR_NOT],
|
|
39547
39658
|
TOKEN_OPERATOR_LOGICAL,
|
|
39548
39659
|
];
|
|
39549
39660
|
const ALL_OPERATORS = OPERATORS_BY_PRECEDENCE.flat();
|
|
@@ -39653,6 +39764,16 @@ function evaluateInternal(expression, currentContext) {
|
|
|
39653
39764
|
pos++;
|
|
39654
39765
|
continue;
|
|
39655
39766
|
}
|
|
39767
|
+
// BOOLEAN LITERAL
|
|
39768
|
+
const isBooleanLiteral = readNext(expression, pos, 4) === 'true' ||
|
|
39769
|
+
readNext(expression, pos, 5) === 'false';
|
|
39770
|
+
if (isBooleanLiteral) {
|
|
39771
|
+
const literal = readNext(expression, pos, 4) === 'true' ? 'true' : 'false';
|
|
39772
|
+
pos += literal.length;
|
|
39773
|
+
const booleanLiteral = literal === 'true';
|
|
39774
|
+
currentEvaluator = () => booleanLiteral;
|
|
39775
|
+
continue;
|
|
39776
|
+
}
|
|
39656
39777
|
// SYMBOL (NAME)
|
|
39657
39778
|
const isSymbol = /[a-zA-Z]/.test(readNext(expression, pos));
|
|
39658
39779
|
if (isSymbol) {
|
|
@@ -39743,6 +39864,35 @@ function evaluateInternal(expression, currentContext) {
|
|
|
39743
39864
|
};
|
|
39744
39865
|
continue;
|
|
39745
39866
|
}
|
|
39867
|
+
// BOOLEAN OPERATORS
|
|
39868
|
+
const isBooleanOperator = TOKEN_OPERATOR_BOOLEAN.some((token) => readNext(expression, pos, token.length) === token);
|
|
39869
|
+
if (isBooleanOperator) {
|
|
39870
|
+
const matchingOperator = TOKEN_OPERATOR_BOOLEAN.find((token) => readNext(expression, pos, token.length) === token);
|
|
39871
|
+
const isAnd = matchingOperator === '&&';
|
|
39872
|
+
pos += matchingOperator.length;
|
|
39873
|
+
const leftEvaluator = currentEvaluator;
|
|
39874
|
+
const rightExpression = readUntilNextOperator(expression, pos, matchingOperator);
|
|
39875
|
+
pos += rightExpression.length;
|
|
39876
|
+
const rightEvaluator = evaluateInternal(rightExpression, currentContext).evaluator;
|
|
39877
|
+
currentEvaluator = (context) => {
|
|
39878
|
+
return isAnd
|
|
39879
|
+
? Boolean(leftEvaluator(context) && rightEvaluator(context))
|
|
39880
|
+
: Boolean(leftEvaluator(context) || rightEvaluator(context));
|
|
39881
|
+
};
|
|
39882
|
+
continue;
|
|
39883
|
+
}
|
|
39884
|
+
// PREFIX OPERATORS
|
|
39885
|
+
const isNotOperator = readNext(expression, pos) === TOKEN_OPERATOR_NOT;
|
|
39886
|
+
if (isNotOperator) {
|
|
39887
|
+
pos++;
|
|
39888
|
+
const operandExpression = readUntilNextOperator(expression, pos, TOKEN_OPERATOR_NOT);
|
|
39889
|
+
pos += operandExpression.length;
|
|
39890
|
+
const operandEvaluator = evaluateInternal(operandExpression, currentContext).evaluator;
|
|
39891
|
+
currentEvaluator = (context) => {
|
|
39892
|
+
return !operandEvaluator(context);
|
|
39893
|
+
};
|
|
39894
|
+
continue;
|
|
39895
|
+
}
|
|
39746
39896
|
// TERNARY OPERATOR
|
|
39747
39897
|
const isTernary = readNext(expression, pos) === TOKEN_OPERATOR_TERNARY_FIRST;
|
|
39748
39898
|
if (isTernary) {
|
|
@@ -39813,6 +39963,7 @@ class RecordFormComponent {
|
|
|
39813
39963
|
constructor() {
|
|
39814
39964
|
this.facade = inject(EditorFacade);
|
|
39815
39965
|
this.notifications = inject(NotificationsService);
|
|
39966
|
+
this.platform = inject(PlatformServiceInterface);
|
|
39816
39967
|
this.subscription = new Subscription();
|
|
39817
39968
|
this.recordUniqueIdentifier$ = this.facade.record$.pipe(map$2((record) => record.uniqueIdentifier));
|
|
39818
39969
|
this.recordKind$ = this.facade.record$.pipe(map$2((record) => record.kind));
|
|
@@ -39823,6 +39974,8 @@ class RecordFormComponent {
|
|
|
39823
39974
|
this.formFields = viewChildren(FormFieldComponent, ...(ngDevMode ? [{ debugName: "formFields" }] : []));
|
|
39824
39975
|
this.sectionFocusDirectives = viewChildren('sectionFocus', ...(ngDevMode ? [{ debugName: "sectionFocusDirectives" }] : []));
|
|
39825
39976
|
this.recordSignal = toSignal(this.facade.record$, { requireSync: true });
|
|
39977
|
+
this.userSignal = toSignal(this.platform.getMe());
|
|
39978
|
+
this.isAdminSignal = toSignal(this.platform.isAdministrator());
|
|
39826
39979
|
this.expressionCache = new Map();
|
|
39827
39980
|
}
|
|
39828
39981
|
focusField(model, sectionIndex) {
|
|
@@ -39847,7 +40000,7 @@ class RecordFormComponent {
|
|
|
39847
40000
|
this.subscription.unsubscribe();
|
|
39848
40001
|
}
|
|
39849
40002
|
handleFieldValueChange(model, newValue) {
|
|
39850
|
-
if (!model) {
|
|
40003
|
+
if (!model || model === 'flags') {
|
|
39851
40004
|
return;
|
|
39852
40005
|
}
|
|
39853
40006
|
this.facade.updateRecordField(model, newValue);
|
|
@@ -39890,7 +40043,15 @@ ${errors.map((err) => `> ${err}`).join('\n')}`);
|
|
|
39890
40043
|
text: 'An error happened while evaluating an expression inside the editor configuration; open the developer console for more information',
|
|
39891
40044
|
});
|
|
39892
40045
|
}
|
|
39893
|
-
this.expressionCache.set(expression, computed(() => evaluator({
|
|
40046
|
+
this.expressionCache.set(expression, computed(() => evaluator({
|
|
40047
|
+
globals: {
|
|
40048
|
+
record: this.recordSignal(),
|
|
40049
|
+
user: {
|
|
40050
|
+
...this.userSignal(),
|
|
40051
|
+
isAdmin: this.isAdminSignal(),
|
|
40052
|
+
},
|
|
40053
|
+
},
|
|
40054
|
+
})));
|
|
39894
40055
|
return this.expressionCache.get(expression);
|
|
39895
40056
|
}
|
|
39896
40057
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: RecordFormComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -40672,7 +40833,191 @@ function getCustomTranslations(langCode) {
|
|
|
40672
40833
|
return langCode in customTranslations ? customTranslations[langCode] : {};
|
|
40673
40834
|
}
|
|
40674
40835
|
let appConfigLoaded = false;
|
|
40675
|
-
function
|
|
40836
|
+
function parseGlobalSection(parsed, { warnings, errors }) {
|
|
40837
|
+
let parsedGlobalSection = parseConfigSection(parsed, 'global', ['geonetwork4_api_url'], [
|
|
40838
|
+
'datahub_url',
|
|
40839
|
+
'edit_url_template',
|
|
40840
|
+
'proxy_path',
|
|
40841
|
+
'metadata_language',
|
|
40842
|
+
'login_url',
|
|
40843
|
+
'logout_url',
|
|
40844
|
+
'settings_url',
|
|
40845
|
+
'web_component_embedder_url',
|
|
40846
|
+
'languages',
|
|
40847
|
+
'contact_email',
|
|
40848
|
+
'reuse_form_url',
|
|
40849
|
+
], warnings, errors);
|
|
40850
|
+
if (parsedGlobalSection?.metadata_language) {
|
|
40851
|
+
parsedGlobalSection = checkMetadataLanguage(parsedGlobalSection, warnings);
|
|
40852
|
+
}
|
|
40853
|
+
return parsedGlobalSection === null
|
|
40854
|
+
? null
|
|
40855
|
+
: {
|
|
40856
|
+
GN4_API_URL: parsedGlobalSection.geonetwork4_api_url,
|
|
40857
|
+
DATAHUB_URL: parsedGlobalSection.datahub_url,
|
|
40858
|
+
EDIT_URL_TEMPLATE: parsedGlobalSection.edit_url_template,
|
|
40859
|
+
PROXY_PATH: parsedGlobalSection.proxy_path,
|
|
40860
|
+
METADATA_LANGUAGE: parsedGlobalSection.metadata_language
|
|
40861
|
+
? parsedGlobalSection.metadata_language.toLowerCase()
|
|
40862
|
+
: undefined,
|
|
40863
|
+
LOGIN_URL: parsedGlobalSection.login_url,
|
|
40864
|
+
LOGOUT_URL: parsedGlobalSection.logout_url,
|
|
40865
|
+
SETTINGS_URL: parsedGlobalSection.settings_url,
|
|
40866
|
+
WEB_COMPONENT_EMBEDDER_URL: parsedGlobalSection.web_component_embedder_url,
|
|
40867
|
+
LANGUAGES: parsedGlobalSection.languages,
|
|
40868
|
+
CONTACT_EMAIL: parsedGlobalSection.contact_email,
|
|
40869
|
+
REUSE_FORM_URL: parsedGlobalSection.reuse_form_url,
|
|
40870
|
+
};
|
|
40871
|
+
}
|
|
40872
|
+
function parseMapSection(parsed, { warnings, errors }) {
|
|
40873
|
+
const parsedLayersSections = parseMultiConfigSection(parsed, 'map_layer', ['type'], ['name', 'url', 'data', 'styleUrl', 'accessToken'], warnings, errors);
|
|
40874
|
+
const parsedMapSection = parseConfigSection(parsed, 'map', [], [
|
|
40875
|
+
'max_zoom',
|
|
40876
|
+
'do_not_tile_wms',
|
|
40877
|
+
'max_extent',
|
|
40878
|
+
'max_feature_count',
|
|
40879
|
+
'baselayer',
|
|
40880
|
+
'do_not_use_default_basemap',
|
|
40881
|
+
'external_viewer_url_template',
|
|
40882
|
+
'external_viewer_open_new_tab',
|
|
40883
|
+
], warnings, errors);
|
|
40884
|
+
return parsedMapSection === null || parsedLayersSections === null
|
|
40885
|
+
? null
|
|
40886
|
+
: {
|
|
40887
|
+
MAX_ZOOM: parsedMapSection.max_zoom,
|
|
40888
|
+
DO_NOT_TILE_WMS: parsedMapSection.do_not_tile_wms,
|
|
40889
|
+
MAX_EXTENT: parsedMapSection.max_extent,
|
|
40890
|
+
MAX_FEATURE_COUNT: parsedMapSection.max_feature_count,
|
|
40891
|
+
EXTERNAL_VIEWER_URL_TEMPLATE: parsedMapSection.external_viewer_url_template,
|
|
40892
|
+
EXTERNAL_VIEWER_OPEN_NEW_TAB: parsedMapSection.external_viewer_open_new_tab,
|
|
40893
|
+
DO_NOT_USE_DEFAULT_BASEMAP: !!parsedMapSection.do_not_use_default_basemap,
|
|
40894
|
+
MAP_LAYERS: parsedLayersSections.map((map_layer) => ({
|
|
40895
|
+
TYPE: map_layer.type,
|
|
40896
|
+
URL: map_layer.url,
|
|
40897
|
+
NAME: map_layer.name,
|
|
40898
|
+
DATA: map_layer.data,
|
|
40899
|
+
STYLE_URL: map_layer.styleUrl,
|
|
40900
|
+
ACCESS_TOKEN: map_layer.accessToken,
|
|
40901
|
+
})),
|
|
40902
|
+
};
|
|
40903
|
+
}
|
|
40904
|
+
function parseThemeSection(parsed, { warnings, errors }) {
|
|
40905
|
+
const parsedThemeSection = parseConfigSection(parsed, 'theme', ['primary_color', 'secondary_color', 'main_color', 'background_color'], [
|
|
40906
|
+
'header_foreground_color',
|
|
40907
|
+
'main_font',
|
|
40908
|
+
'title_font',
|
|
40909
|
+
'fonts_stylesheet_url',
|
|
40910
|
+
'thumbnail_placeholder',
|
|
40911
|
+
'header_background',
|
|
40912
|
+
'favicon',
|
|
40913
|
+
], warnings, errors);
|
|
40914
|
+
return parsedThemeSection === null
|
|
40915
|
+
? null
|
|
40916
|
+
: {
|
|
40917
|
+
PRIMARY_COLOR: parsedThemeSection.primary_color,
|
|
40918
|
+
SECONDARY_COLOR: parsedThemeSection.secondary_color,
|
|
40919
|
+
MAIN_COLOR: parsedThemeSection.main_color,
|
|
40920
|
+
BACKGROUND_COLOR: parsedThemeSection.background_color,
|
|
40921
|
+
HEADER_FOREGROUND_COLOR: parsedThemeSection.header_foreground_color,
|
|
40922
|
+
THUMBNAIL_PLACEHOLDER: parsedThemeSection.thumbnail_placeholder,
|
|
40923
|
+
HEADER_BACKGROUND: parsedThemeSection.header_background,
|
|
40924
|
+
TITLE_FONT: parsedThemeSection.title_font,
|
|
40925
|
+
MAIN_FONT: parsedThemeSection.main_font,
|
|
40926
|
+
FONTS_STYLESHEET_URL: parsedThemeSection.fonts_stylesheet_url,
|
|
40927
|
+
FAVICON: parsedThemeSection.favicon,
|
|
40928
|
+
};
|
|
40929
|
+
}
|
|
40930
|
+
function parseSearchSection(parsed, { warnings, errors }) {
|
|
40931
|
+
const parsedSearchSection = parseConfigSection(parsed, 'search', [], [
|
|
40932
|
+
'record_kind_quick_filter',
|
|
40933
|
+
'filter_geometry_data',
|
|
40934
|
+
'filter_geometry_url',
|
|
40935
|
+
'do_not_use_default_search_preset',
|
|
40936
|
+
'search_preset',
|
|
40937
|
+
'advanced_filters',
|
|
40938
|
+
'limit',
|
|
40939
|
+
'spatial_extent_max_file_size',
|
|
40940
|
+
'geocoding_provider',
|
|
40941
|
+
'geocoding_provider_options',
|
|
40942
|
+
'geocoding_provider_labels',
|
|
40943
|
+
], warnings, errors);
|
|
40944
|
+
const parsedSearchParams = parseMultiConfigSection(parsed, 'search_preset', ['name'], ['sort', 'filters'], warnings, errors);
|
|
40945
|
+
const parsedCustomFilters = parseMultiConfigSection(parsed, 'custom_filter', ['name', 'base_filter'], ['exclude_values', 'include_values', 'label_key'], warnings, errors);
|
|
40946
|
+
const parsedGeocodingProviderLabels = parsedSearchSection?.geocoding_provider_labels;
|
|
40947
|
+
return parsedSearchSection === null
|
|
40948
|
+
? null
|
|
40949
|
+
: {
|
|
40950
|
+
RECORD_KIND_QUICK_FILTER: parsedSearchSection.record_kind_quick_filter,
|
|
40951
|
+
FILTER_GEOMETRY_DATA: parsedSearchSection.filter_geometry_data,
|
|
40952
|
+
FILTER_GEOMETRY_URL: parsedSearchSection.filter_geometry_url,
|
|
40953
|
+
DO_NOT_USE_DEFAULT_SEARCH_PRESET: !!parsedSearchSection.do_not_use_default_search_preset,
|
|
40954
|
+
SEARCH_PRESET: parsedSearchParams.map((param) => ({
|
|
40955
|
+
sort: param.sort,
|
|
40956
|
+
name: param.name,
|
|
40957
|
+
filters: param.filters,
|
|
40958
|
+
})),
|
|
40959
|
+
ADVANCED_FILTERS: parsedSearchSection.advanced_filters,
|
|
40960
|
+
CUSTOM_FILTERS: (parsedCustomFilters ?? []).map((customFilter) => ({
|
|
40961
|
+
name: customFilter.name,
|
|
40962
|
+
baseFilter: customFilter.base_filter,
|
|
40963
|
+
excludeValues: customFilter.exclude_values,
|
|
40964
|
+
includeValues: customFilter.include_values,
|
|
40965
|
+
labelKey: customFilter.label_key,
|
|
40966
|
+
})),
|
|
40967
|
+
LIMIT: parsedSearchSection.limit,
|
|
40968
|
+
SPATIAL_EXTENT_MAX_FILE_SIZE: parsedSearchSection.spatial_extent_max_file_size,
|
|
40969
|
+
GEOCODING_PROVIDER: parsedSearchSection.geocoding_provider,
|
|
40970
|
+
GEOCODING_PROVIDER_OPTIONS: parsedSearchSection.geocoding_provider_options,
|
|
40971
|
+
GEOCODING_PROVIDER_LABELS: parsedGeocodingProviderLabels
|
|
40972
|
+
? {
|
|
40973
|
+
MAIN: parsedGeocodingProviderLabels.main,
|
|
40974
|
+
SECONDARY: parsedGeocodingProviderLabels.secondary,
|
|
40975
|
+
TERTIARY: parsedGeocodingProviderLabels.tertiary,
|
|
40976
|
+
}
|
|
40977
|
+
: undefined,
|
|
40978
|
+
};
|
|
40979
|
+
}
|
|
40980
|
+
function parseMetadataQualitySection(parsed, { warnings, errors }) {
|
|
40981
|
+
const parsedMetadataQualitySection = parseConfigSection(parsed, 'metadata-quality', [], ['enabled'], warnings, errors);
|
|
40982
|
+
return parsedMetadataQualitySection === null
|
|
40983
|
+
? null
|
|
40984
|
+
: {
|
|
40985
|
+
ENABLED: parsedMetadataQualitySection.enabled,
|
|
40986
|
+
SORTABLE: parsedMetadataQualitySection.sortable,
|
|
40987
|
+
};
|
|
40988
|
+
}
|
|
40989
|
+
function parseEditingSection(parsed, { warnings, errors }) {
|
|
40990
|
+
let parsedEditingSection = parseConfigSection(parsed, 'editing', [], ['new_record_default_language', 'new_record_standard'], warnings, errors);
|
|
40991
|
+
if (parsedEditingSection !== null &&
|
|
40992
|
+
parsedEditingSection.new_record_default_language !== undefined) {
|
|
40993
|
+
parsedEditingSection = checkNewRecordDefaultLanguage(parsedEditingSection, warnings);
|
|
40994
|
+
}
|
|
40995
|
+
if (parsedEditingSection !== null &&
|
|
40996
|
+
parsedEditingSection.new_record_standard !== undefined) {
|
|
40997
|
+
parsedEditingSection = checkNewRecordStandard(parsedEditingSection, warnings);
|
|
40998
|
+
}
|
|
40999
|
+
return parsedEditingSection === null
|
|
41000
|
+
? null
|
|
41001
|
+
: {
|
|
41002
|
+
NEW_RECORD_DEFAULT_LANGUAGE: parsedEditingSection.new_record_default_language,
|
|
41003
|
+
NEW_RECORD_STANDARD: parsedEditingSection.new_record_standard,
|
|
41004
|
+
};
|
|
41005
|
+
}
|
|
41006
|
+
const SECTION_PARSERS = {
|
|
41007
|
+
global: parseGlobalSection,
|
|
41008
|
+
map: parseMapSection,
|
|
41009
|
+
theme: parseThemeSection,
|
|
41010
|
+
search: parseSearchSection,
|
|
41011
|
+
metadataQuality: parseMetadataQualitySection,
|
|
41012
|
+
editor: parseEditingSection,
|
|
41013
|
+
translations: (parsed) => parseTranslationsConfigSection(parsed, 'translations'),
|
|
41014
|
+
};
|
|
41015
|
+
/**
|
|
41016
|
+
* Loads the configuration file and stores the given sections (all by default);
|
|
41017
|
+
* omitted sections are reset (their getters will throw or return null);
|
|
41018
|
+
* resolves with the parsed configuration file, e.g. to read sections with a custom parser
|
|
41019
|
+
*/
|
|
41020
|
+
function loadAppConfig(configUrl = 'assets/configuration/default.toml', sections = Object.keys(SECTION_PARSERS)) {
|
|
40676
41021
|
console.log(`[geonetwork-ui] Loading application configuration from ${configUrl}`);
|
|
40677
41022
|
return fetch(configUrl)
|
|
40678
41023
|
.then((resp) => {
|
|
@@ -40688,182 +41033,25 @@ function loadAppConfig(configUrl = 'assets/configuration/default.toml') {
|
|
|
40688
41033
|
catch (e) {
|
|
40689
41034
|
throw new Error(`An error occurred when parsing the configuration file: ${e.message}`);
|
|
40690
41035
|
}
|
|
40691
|
-
const
|
|
40692
|
-
const
|
|
40693
|
-
|
|
40694
|
-
'datahub_url',
|
|
40695
|
-
'edit_url_template',
|
|
40696
|
-
'proxy_path',
|
|
40697
|
-
'metadata_language',
|
|
40698
|
-
'login_url',
|
|
40699
|
-
'logout_url',
|
|
40700
|
-
'settings_url',
|
|
40701
|
-
'web_component_embedder_url',
|
|
40702
|
-
'languages',
|
|
40703
|
-
'contact_email',
|
|
40704
|
-
'reuse_form_url',
|
|
40705
|
-
], warnings, errors);
|
|
40706
|
-
if (parsedGlobalSection?.metadata_language) {
|
|
40707
|
-
parsedGlobalSection = checkMetadataLanguage(parsedGlobalSection, warnings);
|
|
40708
|
-
}
|
|
40709
|
-
globalConfig =
|
|
40710
|
-
parsedGlobalSection === null
|
|
40711
|
-
? null
|
|
40712
|
-
: {
|
|
40713
|
-
GN4_API_URL: parsedGlobalSection.geonetwork4_api_url,
|
|
40714
|
-
DATAHUB_URL: parsedGlobalSection.datahub_url,
|
|
40715
|
-
EDIT_URL_TEMPLATE: parsedGlobalSection.edit_url_template,
|
|
40716
|
-
PROXY_PATH: parsedGlobalSection.proxy_path,
|
|
40717
|
-
METADATA_LANGUAGE: parsedGlobalSection.metadata_language
|
|
40718
|
-
? parsedGlobalSection.metadata_language.toLowerCase()
|
|
40719
|
-
: undefined,
|
|
40720
|
-
LOGIN_URL: parsedGlobalSection.login_url,
|
|
40721
|
-
LOGOUT_URL: parsedGlobalSection.logout_url,
|
|
40722
|
-
SETTINGS_URL: parsedGlobalSection.settings_url,
|
|
40723
|
-
WEB_COMPONENT_EMBEDDER_URL: parsedGlobalSection.web_component_embedder_url,
|
|
40724
|
-
LANGUAGES: parsedGlobalSection.languages,
|
|
40725
|
-
CONTACT_EMAIL: parsedGlobalSection.contact_email,
|
|
40726
|
-
REUSE_FORM_URL: parsedGlobalSection.reuse_form_url,
|
|
40727
|
-
};
|
|
40728
|
-
const parsedLayersSections = parseMultiConfigSection(parsed, 'map_layer', ['type'], ['name', 'url', 'data', 'styleUrl', 'accessToken'], warnings, errors);
|
|
40729
|
-
const parsedMapSection = parseConfigSection(parsed, 'map', [], [
|
|
40730
|
-
'max_zoom',
|
|
40731
|
-
'do_not_tile_wms',
|
|
40732
|
-
'max_extent',
|
|
40733
|
-
'max_feature_count',
|
|
40734
|
-
'baselayer',
|
|
40735
|
-
'do_not_use_default_basemap',
|
|
40736
|
-
'external_viewer_url_template',
|
|
40737
|
-
'external_viewer_open_new_tab',
|
|
40738
|
-
], warnings, errors);
|
|
40739
|
-
mapConfig =
|
|
40740
|
-
parsedMapSection === null || parsedLayersSections === null
|
|
40741
|
-
? null
|
|
40742
|
-
: {
|
|
40743
|
-
MAX_ZOOM: parsedMapSection.max_zoom,
|
|
40744
|
-
DO_NOT_TILE_WMS: parsedMapSection.do_not_tile_wms,
|
|
40745
|
-
MAX_EXTENT: parsedMapSection.max_extent,
|
|
40746
|
-
MAX_FEATURE_COUNT: parsedMapSection.max_feature_count,
|
|
40747
|
-
EXTERNAL_VIEWER_URL_TEMPLATE: parsedMapSection.external_viewer_url_template,
|
|
40748
|
-
EXTERNAL_VIEWER_OPEN_NEW_TAB: parsedMapSection.external_viewer_open_new_tab,
|
|
40749
|
-
DO_NOT_USE_DEFAULT_BASEMAP: !!parsedMapSection.do_not_use_default_basemap,
|
|
40750
|
-
MAP_LAYERS: parsedLayersSections.map((map_layer) => ({
|
|
40751
|
-
TYPE: map_layer.type,
|
|
40752
|
-
URL: map_layer.url,
|
|
40753
|
-
NAME: map_layer.name,
|
|
40754
|
-
DATA: map_layer.data,
|
|
40755
|
-
STYLE_URL: map_layer.styleUrl,
|
|
40756
|
-
ACCESS_TOKEN: map_layer.accessToken,
|
|
40757
|
-
})),
|
|
40758
|
-
};
|
|
40759
|
-
const parsedThemeSection = parseConfigSection(parsed, 'theme', ['primary_color', 'secondary_color', 'main_color', 'background_color'], [
|
|
40760
|
-
'header_foreground_color',
|
|
40761
|
-
'main_font',
|
|
40762
|
-
'title_font',
|
|
40763
|
-
'fonts_stylesheet_url',
|
|
40764
|
-
'thumbnail_placeholder',
|
|
40765
|
-
'header_background',
|
|
40766
|
-
'favicon',
|
|
40767
|
-
], warnings, errors);
|
|
40768
|
-
themeConfig =
|
|
40769
|
-
parsedThemeSection === null
|
|
40770
|
-
? null
|
|
40771
|
-
: {
|
|
40772
|
-
PRIMARY_COLOR: parsedThemeSection.primary_color,
|
|
40773
|
-
SECONDARY_COLOR: parsedThemeSection.secondary_color,
|
|
40774
|
-
MAIN_COLOR: parsedThemeSection.main_color,
|
|
40775
|
-
BACKGROUND_COLOR: parsedThemeSection.background_color,
|
|
40776
|
-
HEADER_FOREGROUND_COLOR: parsedThemeSection.header_foreground_color,
|
|
40777
|
-
THUMBNAIL_PLACEHOLDER: parsedThemeSection.thumbnail_placeholder,
|
|
40778
|
-
HEADER_BACKGROUND: parsedThemeSection.header_background,
|
|
40779
|
-
TITLE_FONT: parsedThemeSection.title_font,
|
|
40780
|
-
MAIN_FONT: parsedThemeSection.main_font,
|
|
40781
|
-
FONTS_STYLESHEET_URL: parsedThemeSection.fonts_stylesheet_url,
|
|
40782
|
-
FAVICON: parsedThemeSection.favicon,
|
|
40783
|
-
};
|
|
40784
|
-
const parsedSearchSection = parseConfigSection(parsed, 'search', [], [
|
|
40785
|
-
'record_kind_quick_filter',
|
|
40786
|
-
'filter_geometry_data',
|
|
40787
|
-
'filter_geometry_url',
|
|
40788
|
-
'do_not_use_default_search_preset',
|
|
40789
|
-
'search_preset',
|
|
40790
|
-
'advanced_filters',
|
|
40791
|
-
'limit',
|
|
40792
|
-
'spatial_extent_max_file_size',
|
|
40793
|
-
'geocoding_provider',
|
|
40794
|
-
'geocoding_provider_options',
|
|
40795
|
-
'geocoding_provider_labels',
|
|
40796
|
-
], warnings, errors);
|
|
40797
|
-
const parsedSearchParams = parseMultiConfigSection(parsed, 'search_preset', ['name'], ['sort', 'filters'], warnings, errors);
|
|
40798
|
-
const parsedCustomFilters = parseMultiConfigSection(parsed, 'custom_filter', ['name', 'base_filter'], ['exclude_values', 'include_values', 'label_key'], warnings, errors);
|
|
40799
|
-
const parsedGeocodingProviderLabels = parsedSearchSection?.geocoding_provider_labels;
|
|
40800
|
-
searchConfig =
|
|
40801
|
-
parsedSearchSection === null
|
|
40802
|
-
? null
|
|
40803
|
-
: {
|
|
40804
|
-
RECORD_KIND_QUICK_FILTER: parsedSearchSection.record_kind_quick_filter,
|
|
40805
|
-
FILTER_GEOMETRY_DATA: parsedSearchSection.filter_geometry_data,
|
|
40806
|
-
FILTER_GEOMETRY_URL: parsedSearchSection.filter_geometry_url,
|
|
40807
|
-
DO_NOT_USE_DEFAULT_SEARCH_PRESET: !!parsedSearchSection.do_not_use_default_search_preset,
|
|
40808
|
-
SEARCH_PRESET: parsedSearchParams.map((param) => ({
|
|
40809
|
-
sort: param.sort,
|
|
40810
|
-
name: param.name,
|
|
40811
|
-
filters: param.filters,
|
|
40812
|
-
})),
|
|
40813
|
-
ADVANCED_FILTERS: parsedSearchSection.advanced_filters,
|
|
40814
|
-
CUSTOM_FILTERS: (parsedCustomFilters ?? []).map((customFilter) => ({
|
|
40815
|
-
name: customFilter.name,
|
|
40816
|
-
baseFilter: customFilter.base_filter,
|
|
40817
|
-
excludeValues: customFilter.exclude_values,
|
|
40818
|
-
includeValues: customFilter.include_values,
|
|
40819
|
-
labelKey: customFilter.label_key,
|
|
40820
|
-
})),
|
|
40821
|
-
LIMIT: parsedSearchSection.limit,
|
|
40822
|
-
SPATIAL_EXTENT_MAX_FILE_SIZE: parsedSearchSection.spatial_extent_max_file_size,
|
|
40823
|
-
GEOCODING_PROVIDER: parsedSearchSection.geocoding_provider,
|
|
40824
|
-
GEOCODING_PROVIDER_OPTIONS: parsedSearchSection.geocoding_provider_options,
|
|
40825
|
-
GEOCODING_PROVIDER_LABELS: parsedGeocodingProviderLabels
|
|
40826
|
-
? {
|
|
40827
|
-
MAIN: parsedGeocodingProviderLabels.main,
|
|
40828
|
-
SECONDARY: parsedGeocodingProviderLabels.secondary,
|
|
40829
|
-
TERTIARY: parsedGeocodingProviderLabels.tertiary,
|
|
40830
|
-
}
|
|
40831
|
-
: undefined,
|
|
40832
|
-
};
|
|
40833
|
-
const parsedMetadataQualitySection = parseConfigSection(parsed, 'metadata-quality', [], ['enabled'], warnings, errors);
|
|
40834
|
-
metadataQualityConfig =
|
|
40835
|
-
parsedMetadataQualitySection === null
|
|
40836
|
-
? null
|
|
40837
|
-
: {
|
|
40838
|
-
ENABLED: parsedMetadataQualitySection.enabled,
|
|
40839
|
-
SORTABLE: parsedMetadataQualitySection.sortable,
|
|
40840
|
-
};
|
|
40841
|
-
let parsedEditingSection = parseConfigSection(parsed, 'editing', [], ['new_record_default_language', 'new_record_standard'], warnings, errors);
|
|
40842
|
-
if (parsedEditingSection !== null &&
|
|
40843
|
-
parsedEditingSection.new_record_default_language !== undefined) {
|
|
40844
|
-
parsedEditingSection = checkNewRecordDefaultLanguage(parsedEditingSection, warnings);
|
|
40845
|
-
}
|
|
40846
|
-
if (parsedEditingSection !== null &&
|
|
40847
|
-
parsedEditingSection.new_record_standard !== undefined) {
|
|
40848
|
-
parsedEditingSection = checkNewRecordStandard(parsedEditingSection, warnings);
|
|
40849
|
-
}
|
|
40850
|
-
editorConfig =
|
|
40851
|
-
parsedEditingSection === null
|
|
40852
|
-
? null
|
|
40853
|
-
: {
|
|
40854
|
-
NEW_RECORD_DEFAULT_LANGUAGE: parsedEditingSection.new_record_default_language,
|
|
40855
|
-
NEW_RECORD_STANDARD: parsedEditingSection.new_record_standard,
|
|
40856
|
-
};
|
|
40857
|
-
customTranslations = parseTranslationsConfigSection(parsed, 'translations');
|
|
40858
|
-
if (errors.length) {
|
|
41036
|
+
const issues = { warnings: [], errors: [] };
|
|
41037
|
+
const config = Object.fromEntries(sections.map((name) => [name, SECTION_PARSERS[name](parsed, issues)]));
|
|
41038
|
+
if (issues.errors.length) {
|
|
40859
41039
|
throw new Error(`One or more mandatory settings were missing from the configuration file.
|
|
40860
|
-
${errors.join('\n')}`);
|
|
41040
|
+
${issues.errors.join('\n')}`);
|
|
40861
41041
|
}
|
|
40862
|
-
else if (warnings.length) {
|
|
41042
|
+
else if (issues.warnings.length) {
|
|
40863
41043
|
console.warn(`One or more unexpected settings were encountered in the configuration file.
|
|
40864
|
-
${warnings.join('\n')}`);
|
|
40865
|
-
}
|
|
41044
|
+
${issues.warnings.join('\n')}`);
|
|
41045
|
+
}
|
|
41046
|
+
globalConfig = config.global ?? null;
|
|
41047
|
+
themeConfig = config.theme ?? null;
|
|
41048
|
+
mapConfig = config.map ?? null;
|
|
41049
|
+
searchConfig = config.search ?? null;
|
|
41050
|
+
metadataQualityConfig = config.metadataQuality ?? null;
|
|
41051
|
+
editorConfig = config.editor ?? null;
|
|
41052
|
+
customTranslations = config.translations ?? {};
|
|
40866
41053
|
appConfigLoaded = true;
|
|
41054
|
+
return parsed;
|
|
40867
41055
|
});
|
|
40868
41056
|
}
|
|
40869
41057
|
function isConfigLoaded() {
|
|
@@ -40872,8 +41060,12 @@ function isConfigLoaded() {
|
|
|
40872
41060
|
function _reset() {
|
|
40873
41061
|
globalConfig = null;
|
|
40874
41062
|
themeConfig = null;
|
|
41063
|
+
mapConfig = null;
|
|
41064
|
+
searchConfig = null;
|
|
41065
|
+
metadataQualityConfig = null;
|
|
40875
41066
|
editorConfig = null;
|
|
40876
41067
|
customTranslations = null;
|
|
41068
|
+
appConfigLoaded = false;
|
|
40877
41069
|
}
|
|
40878
41070
|
const TRANSLATE_WITH_OVERRIDES_CONFIG = {
|
|
40879
41071
|
compiler: {
|
|
@@ -41144,5 +41336,5 @@ const CHART_TYPE_VALUES = [
|
|
|
41144
41336
|
* Generated bundle index. Do not edit.
|
|
41145
41337
|
*/
|
|
41146
41338
|
|
|
41147
|
-
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, bboxToPolygon, blockModelFixture, bytesToMegabytes, canEditRecord, checkFileFormat, 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, 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 };
|
|
41339
|
+
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, bboxToPolygon, 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 };
|
|
41148
41340
|
//# sourceMappingURL=geonetwork-ui.mjs.map
|