diff --git a/projects/hslayers/components/layer-manager/gallery/gallery-editor-dialog.component.ts b/projects/hslayers/components/layer-manager/gallery/gallery-editor-dialog.component.ts index 4031ab8658..4014180ff3 100644 --- a/projects/hslayers/components/layer-manager/gallery/gallery-editor-dialog.component.ts +++ b/projects/hslayers/components/layer-manager/gallery/gallery-editor-dialog.component.ts @@ -1,24 +1,30 @@ +import {AsyncPipe, CommonModule} from '@angular/common'; import { ChangeDetectionStrategy, Component, Input, OnInit, + Signal, ViewContainerRef, ViewRef, inject, + signal, viewChild, } from '@angular/core'; -import {CommonModule} from '@angular/common'; import {HsDialogComponent} from 'hslayers-ng/common/dialogs'; import {HsDialogContainerService} from 'hslayers-ng/common/dialogs'; import {HsLayerDescriptor} from 'hslayers-ng/types'; import {HsLayerEditorService} from '../editor/layer-editor.service'; import {HsLayerManagerService} from 'hslayers-ng/services/layer-manager'; +import {Observable, filter, map, startWith} from 'rxjs'; import {TranslateCustomPipe} from 'hslayers-ng/services/language'; -import {filter, map} from 'rxjs'; import {getBase} from 'hslayers-ng/common/extensions'; -import {takeUntilDestroyed, toObservable} from '@angular/core/rxjs-interop'; +import { + takeUntilDestroyed, + toObservable, + toSignal, +} from '@angular/core/rxjs-interop'; @Component({ selector: 'hs-gallery-editor-dialog', @@ -33,7 +39,7 @@ import {takeUntilDestroyed, toObservable} from '@angular/core/rxjs-interop';