diff --git a/projects/hslayers/components/draw/draw.component.ts b/projects/hslayers/components/draw/draw.component.ts index 2fd9a1313f..b128356757 100644 --- a/projects/hslayers/components/draw/draw.component.ts +++ b/projects/hslayers/components/draw/draw.component.ts @@ -10,11 +10,11 @@ import { HsPanelHeaderComponent, HsPanelHelpersModule, } from 'hslayers-ng/common/panels'; -import {HsQueryModule} from 'hslayers-ng/components/query'; import {TranslateCustomPipe} from 'hslayers-ng/services/language'; import {HsDrawEditComponent} from './draw-edit/draw-edit.component'; import {HsDrawPanelComponent} from './draw-panel/draw-panel.component'; +import {HsQueryFeatureListComponent} from 'hslayers-ng/components/query'; @Component({ selector: 'hs-draw', @@ -27,7 +27,7 @@ import {HsDrawPanelComponent} from './draw-panel/draw-panel.component'; HsDrawEditComponent, HsDrawPanelComponent, HsPanelBaseComponent, - HsQueryModule, + HsQueryFeatureListComponent, HsPanelHeaderComponent, HsPanelHelpersModule, ], diff --git a/projects/hslayers/components/query/attribute-row/attribute-row.component.ts b/projects/hslayers/components/query/attribute-row/attribute-row.component.ts index d43c3e334b..a204e38c83 100644 --- a/projects/hslayers/components/query/attribute-row/attribute-row.component.ts +++ b/projects/hslayers/components/query/attribute-row/attribute-row.component.ts @@ -1,8 +1,11 @@ import {Component, Input, OnInit} from '@angular/core'; +import {FormsModule} from '@angular/forms'; @Component({ selector: 'hs-query-attribute-row', templateUrl: './attribute-row.component.html', + standalone: true, + imports: [FormsModule], }) export class HsQueryAttributeRowComponent implements OnInit { isObject = false; diff --git a/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.ts b/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.ts index 64ed75720c..24879f0307 100644 --- a/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.ts +++ b/projects/hslayers/components/query/default-info-panel-body/default-info-panel-body.component.ts @@ -1,10 +1,18 @@ import {Component, OnInit} from '@angular/core'; import {HsQueryBaseService} from 'hslayers-ng/services/query'; - +import {HsQueryFeatureListComponent} from '../feature-list/feature-list.component'; +import {NgbDropdownModule} from '@ng-bootstrap/ng-bootstrap'; +import {TranslateCustomPipe} from 'hslayers-ng/services/language'; @Component({ selector: 'hs-query-default-info-panel-body', templateUrl: './default-info-panel-body.component.html', + standalone: true, + imports: [ + HsQueryFeatureListComponent, + NgbDropdownModule, + TranslateCustomPipe, + ], }) export class HsQueryDefaultInfoPanelBodyComponent implements OnInit { featureInfoExpanded: boolean; diff --git a/projects/hslayers/components/query/feature-list/feature-list.component.ts b/projects/hslayers/components/query/feature-list/feature-list.component.ts index 4b15fe64f5..c213f74b41 100644 --- a/projects/hslayers/components/query/feature-list/feature-list.component.ts +++ b/projects/hslayers/components/query/feature-list/feature-list.component.ts @@ -3,17 +3,35 @@ import {Component} from '@angular/core'; import {Feature, getUid} from 'ol'; import {Geometry} from 'ol/geom'; +import {AsyncPipe, NgClass, NgStyle, SlicePipe} from '@angular/common'; +import {FormsModule} from '@angular/forms'; import {HsConfirmDialogComponent} from 'hslayers-ng/common/confirm'; import {HsDialogContainerService} from 'hslayers-ng/common/dialogs'; +import {HsDownloadModule} from 'hslayers-ng/common/download'; import {HsFeatureCommonService} from '../feature-common.service'; import {HsQueryBaseService} from 'hslayers-ng/services/query'; +import {HsQueryFeatureComponent} from '../feature/feature.component'; import {HsQueryVectorService} from 'hslayers-ng/services/query'; +import {NgbDropdownModule} from '@ng-bootstrap/ng-bootstrap'; +import {TranslateCustomPipe} from 'hslayers-ng/services/language'; import {exportFormats} from '../feature-common.service'; import {getTitle} from 'hslayers-ng/common/extensions'; @Component({ selector: 'hs-query-feature-list', templateUrl: './feature-list.component.html', + standalone: true, + imports: [ + TranslateCustomPipe, + AsyncPipe, + FormsModule, + NgbDropdownModule, + HsDownloadModule, + NgClass, + NgStyle, + HsQueryFeatureComponent, + SlicePipe, + ], }) export class HsQueryFeatureListComponent { exportMenuVisible; diff --git a/projects/hslayers/components/query/feature/feature.component.ts b/projects/hslayers/components/query/feature/feature.component.ts index 55a3f89512..88540ef9df 100644 --- a/projects/hslayers/components/query/feature/feature.component.ts +++ b/projects/hslayers/components/query/feature/feature.component.ts @@ -6,16 +6,32 @@ import {Feature} from 'ol'; import {Geometry} from 'ol/geom'; import {Layer} from 'ol/layer'; +import {AsyncPipe, NgClass} from '@angular/common'; +import {FormsModule} from '@angular/forms'; +import {HsDownloadModule} from 'hslayers-ng/common/download'; import {HsFeatureCommonService} from '../feature-common.service'; import {HsLayerUtilsService} from 'hslayers-ng/services/utils'; import {HsMapService} from 'hslayers-ng/services/map'; +import {HsQueryAttributeRowComponent} from '../attribute-row/attribute-row.component'; import {HsQueryVectorService} from 'hslayers-ng/services/query'; +import {NgbDropdownModule} from '@ng-bootstrap/ng-bootstrap'; +import {TranslateCustomPipe} from 'hslayers-ng/services/language'; import {exportFormats} from '../feature-common.service'; import {getTitle} from 'hslayers-ng/common/extensions'; @Component({ selector: 'hs-query-feature', templateUrl: './feature.component.html', + standalone: true, + imports: [ + TranslateCustomPipe, + AsyncPipe, + FormsModule, + NgbDropdownModule, + HsDownloadModule, + NgClass, + HsQueryAttributeRowComponent, + ], }) export class HsQueryFeatureComponent implements OnInit { @Input() feature; diff --git a/projects/hslayers/components/query/public-api.ts b/projects/hslayers/components/query/public-api.ts index bcb810df2b..9c0d584773 100644 --- a/projects/hslayers/components/query/public-api.ts +++ b/projects/hslayers/components/query/public-api.ts @@ -6,4 +6,3 @@ export * from './feature/feature.component'; export * from './query-wms.service'; export * from './query-wmts.service'; export * from './query.component'; -export * from './query.module'; diff --git a/projects/hslayers/components/query/query.component.html b/projects/hslayers/components/query/query.component.html index 32aaed7124..e4b3f0c0dd 100644 --- a/projects/hslayers/components/query/query.component.html +++ b/projects/hslayers/components/query/query.component.html @@ -1,42 +1,39 @@ @if (isVisible$ | async) { -
{{'QUERY.infoPanel.noFeaturesSelected' | translateHs }}
-{{'QUERY.infoPanel.clickOnMap' | translateHs }}
-{{'QUERY.infoPanel.noFeaturesSelected' | translateHs }}
+{{'QUERY.infoPanel.clickOnMap' | translateHs }}
+