@provoly/dashboard 1.1.0 → 1.1.2
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/assets/svgs/analytic.svg +1 -0
- package/esm2022/admin/components/admin-dataset/admin-select-dataset/admin-select-dataset.component.mjs +5 -4
- package/esm2022/import/components/import.component.mjs +22 -10
- package/esm2022/import/i18n/en.translations.mjs +3 -1
- package/esm2022/import/i18n/fr.translations.mjs +3 -1
- package/esm2022/lib/core/access/access.service.mjs +4 -1
- package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
- package/esm2022/lib/core/model/public-api.mjs +2 -1
- package/esm2022/lib/core/model/widget-aggregated-chart-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/model/widget-analytic-manifest.interface.mjs +2 -0
- package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +8 -12
- package/esm2022/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.mjs +5 -11
- package/esm2022/lib/core/store/aggregation/frontend-aggregation/frontend-aggregation.service.mjs +6 -6
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +5 -2
- package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +12 -1
- package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +4 -3
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +4 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +6 -4
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +17 -9
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +8 -2
- package/esm2022/presentation/components/presentation.component.mjs +18 -9
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +42 -87
- package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +2 -1
- package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +3 -5
- package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +108 -0
- package/esm2022/widgets/widget-analytic/i18n/en.translations.mjs +13 -0
- package/esm2022/widgets/widget-analytic/i18n/fr.translations.mjs +13 -0
- package/esm2022/widgets/widget-analytic/provoly-dashboard-widgets-widget-analytic.mjs +5 -0
- package/esm2022/widgets/widget-analytic/public-api.mjs +3 -0
- package/esm2022/widgets/widget-analytic/style/css.component.mjs +11 -0
- package/esm2022/widgets/widget-analytic/widget-analytic.module.mjs +70 -0
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +2 -2
- package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +2 -2
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +18 -141
- package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +2 -34
- package/esm2022/widgets/widget-map/interaction/tooltip-manager.class.mjs +191 -0
- package/esm2022/widgets/widget-map/public-api.mjs +2 -1
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +2 -2
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +24 -5
- package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +2 -2
- package/fesm2022/provoly-dashboard-admin.mjs +3 -2
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +25 -9
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +17 -8
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +45 -91
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +211 -0
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -0
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +207 -175
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +23 -4
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +71 -43
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/components/import.component.d.ts +4 -2
- package/import/i18n/en.translations.d.ts +2 -0
- package/import/i18n/fr.translations.d.ts +2 -0
- package/lib/core/access/access.service.d.ts +3 -0
- package/lib/core/i18n/en.translations.d.ts +1 -0
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/core/model/public-api.d.ts +1 -0
- package/lib/core/model/widget-aggregated-chart-manifest.interface.d.ts +3 -12
- package/lib/core/model/widget-analytic-manifest.interface.d.ts +6 -0
- package/lib/core/store/aggregation/frontend-aggregation/aggregation-utils.class.d.ts +4 -4
- package/lib/core/store/aggregation/frontend-aggregation/frontend-aggregation.service.d.ts +2 -2
- package/lib/core/store/data-source/data-source.effects.d.ts +4 -2
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +11 -1
- package/lib/dashboard/store/dashboard.effects.d.ts +2 -0
- package/lib/dashboard/store/dashboard.reducers.d.ts +3 -1
- package/lib/dashboard/store/dashboard.selectors.d.ts +1 -1
- package/package.json +37 -31
- package/presentation/components/presentation.component.d.ts +5 -3
- package/styles/components/_o-pry-admin-classes-customize.scss +1 -0
- package/styles-theme/components-theme/_o-widget.theme.scss +0 -14
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +9 -7
- package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +2 -4
- package/widgets/widget-analytic/component/widget-analytic.component.d.ts +47 -0
- package/widgets/widget-analytic/i18n/en.translations.d.ts +12 -0
- package/widgets/widget-analytic/i18n/fr.translations.d.ts +12 -0
- package/widgets/widget-analytic/index.d.ts +5 -0
- package/widgets/widget-analytic/public-api.d.ts +2 -0
- package/widgets/widget-analytic/style/_o-widget-analytic.scss +43 -0
- package/widgets/widget-analytic/style/css.component.d.ts +5 -0
- package/widgets/widget-analytic/widget-analytic.module.d.ts +19 -0
- package/widgets/widget-iframe/component/widget-iframe.component.d.ts +3 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +12 -23
- package/widgets/widget-map/interaction/interaction-manager.class.d.ts +0 -5
- package/widgets/widget-map/interaction/tooltip-manager.class.d.ts +43 -0
- package/widgets/widget-map/public-api.d.ts +1 -0
- package/widgets/widget-map/style/_m-layer-legend.scss +1 -4
- package/widgets/widget-table/component/widget-table.component.d.ts +3 -1
- package/widgets/widget-tile/component/widget-tile.component.d.ts +7 -2
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@use '../../../styles/abstracts' as *;
|
|
2
|
+
|
|
3
|
+
.o-widget__analytic {
|
|
4
|
+
&__table {
|
|
5
|
+
width: 100%;
|
|
6
|
+
|
|
7
|
+
table {
|
|
8
|
+
width: 100%;
|
|
9
|
+
|
|
10
|
+
th, td {
|
|
11
|
+
text-align: center;
|
|
12
|
+
|
|
13
|
+
&:first-child {
|
|
14
|
+
text-align: left;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.primary-header {
|
|
19
|
+
th:not(:first-child) {
|
|
20
|
+
background-color: #d7e7f7;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.secondary-header {
|
|
25
|
+
th:not(:first-child) {
|
|
26
|
+
background-color: #f3f8fc;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.partial-total {
|
|
31
|
+
th, td {
|
|
32
|
+
background-color: #F0F0F0;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.grand-total {
|
|
37
|
+
th, td {
|
|
38
|
+
background-color: #BDB9DA;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class PryWidgetAnalyticCssComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PryWidgetAnalyticCssComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryWidgetAnalyticCssComponent, "pry-widget-analytic-css", never, {}, {}, never, never, false, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { BaseWidgetComponent, BaseWidgetModule, PryI18nService } from '@provoly/dashboard';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./component/widget-analytic.component";
|
|
5
|
+
import * as i2 from "./style/css.component";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/forms";
|
|
8
|
+
import * as i5 from "@angular/cdk/overlay";
|
|
9
|
+
import * as i6 from "@provoly/dashboard";
|
|
10
|
+
import * as i7 from "@provoly/dashboard/components/checkbox";
|
|
11
|
+
import * as i8 from "@provoly/dashboard/widgets/widget-map";
|
|
12
|
+
export declare class WidgetAnalyticModule extends BaseWidgetModule {
|
|
13
|
+
private pryTranslateService;
|
|
14
|
+
constructor(pryTranslateService: PryI18nService);
|
|
15
|
+
getComponent(): Type<BaseWidgetComponent>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAnalyticModule, never>;
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetAnalyticModule, [typeof i1.WidgetAnalyticComponent, typeof i2.PryWidgetAnalyticCssComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.OverlayModule, typeof i6.PryCoreModule, typeof i6.PryDashboardModule, typeof i6.PrySelectModule, typeof i6.PryIconModule, typeof i7.PryCheckboxModule, typeof i6.PryToggleModule, typeof i8.WidgetMapModule, typeof i6.PryI18nModule, typeof i3.AsyncPipe], [typeof i1.WidgetAnalyticComponent]>;
|
|
18
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<WidgetAnalyticModule>;
|
|
19
|
+
}
|
|
@@ -12,7 +12,9 @@ export declare class WidgetIframeComponent extends BaseWidgetComponent {
|
|
|
12
12
|
src$: Observable<SafeResourceUrl | undefined>;
|
|
13
13
|
height$: Observable<number>;
|
|
14
14
|
optionsCopy: IframeWidgetOptions;
|
|
15
|
-
WIDGET_HEADER_HEIGHT:
|
|
15
|
+
WIDGET_HEADER_HEIGHT: {
|
|
16
|
+
value: number;
|
|
17
|
+
};
|
|
16
18
|
iframe?: ElementRef;
|
|
17
19
|
constructor(store: Store<any>, domSanitizer: DomSanitizer, iframeMessagingService: IframeMessagingService, el: ElementRef);
|
|
18
20
|
changeSrc($event: Event): void;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import {
|
|
4
|
-
import { Map
|
|
3
|
+
import { BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, LayerGroup, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
|
|
4
|
+
import { Map } from 'ol';
|
|
5
5
|
import { Coordinate } from 'ol/coordinate';
|
|
6
6
|
import { Geometry } from 'ol/geom';
|
|
7
7
|
import { Layer } from 'ol/layer';
|
|
8
8
|
import BaseLayer from 'ol/layer/Base';
|
|
9
9
|
import VectorLayer from 'ol/layer/Vector';
|
|
10
|
-
import { Pixel } from 'ol/pixel';
|
|
11
10
|
import VectorSource from 'ol/source/Vector';
|
|
12
11
|
import { Style } from 'ol/style';
|
|
13
|
-
import { BehaviorSubject, Observable
|
|
12
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
14
13
|
import { InteractionManager } from '../interaction/interaction-manager.class';
|
|
15
14
|
import { WidgetMapLayerService } from './widget-map-layer.service';
|
|
16
15
|
import { LayerSlider } from '../interaction/layer-slider.class';
|
|
@@ -18,6 +17,7 @@ import TileLayer from 'ol/layer/Tile';
|
|
|
18
17
|
import { Attribution } from 'ol/control';
|
|
19
18
|
import VectorTileLayer from 'ol/layer/VectorTile';
|
|
20
19
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
20
|
+
import { TooltipManager } from '../interaction/tooltip-manager.class';
|
|
21
21
|
import * as i0 from "@angular/core";
|
|
22
22
|
export declare const TOOLTIP_PADDING = 15;
|
|
23
23
|
export declare const NON_MANDATORY_FIT_LAYER_TYPES: string[];
|
|
@@ -30,6 +30,8 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
30
30
|
private widgetMapLayerService;
|
|
31
31
|
private pryAggregationService;
|
|
32
32
|
private geoAuthService;
|
|
33
|
+
static idCounter: number;
|
|
34
|
+
id: string;
|
|
33
35
|
mapUrl$: Observable<string>;
|
|
34
36
|
mapRef: ElementRef;
|
|
35
37
|
popup: ElementRef;
|
|
@@ -50,7 +52,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
50
52
|
identifier: string;
|
|
51
53
|
label: string;
|
|
52
54
|
}[]>;
|
|
53
|
-
WIDGET_HEADER_HEIGHT:
|
|
55
|
+
WIDGET_HEADER_HEIGHT: {
|
|
56
|
+
value: number;
|
|
57
|
+
};
|
|
54
58
|
i: number;
|
|
55
59
|
itemStyles$: Observable<{
|
|
56
60
|
[id: string]: {
|
|
@@ -60,8 +64,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
60
64
|
}>;
|
|
61
65
|
height$: Observable<number>;
|
|
62
66
|
actions$: BehaviorSubject<("click" | "lasso" | "rectangle" | "zoom" | "move" | "export" | "upload")[]>;
|
|
63
|
-
private wmsFeatures$;
|
|
64
|
-
classicFeatures$: BehaviorSubject<any>;
|
|
65
67
|
geoServerLayerDescriptions$: Observable<MapGeoServerLayerOptions[]>;
|
|
66
68
|
legendTabOpen: boolean;
|
|
67
69
|
layersTabOpen: boolean;
|
|
@@ -82,9 +84,8 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
82
84
|
}>;
|
|
83
85
|
mapStyleUrl$: Observable<string | null>;
|
|
84
86
|
interactionManager: InteractionManager;
|
|
87
|
+
tooltipManager: TooltipManager;
|
|
85
88
|
mapStyleLayer$: Observable<(VectorTileLayer | TileLayer<any>)[]>;
|
|
86
|
-
tooltipIndex: number;
|
|
87
|
-
tooltipNumber: number;
|
|
88
89
|
STYLE_FROM_URL: string;
|
|
89
90
|
NO_STYLE: string;
|
|
90
91
|
wmsCapabilities$: Observable<{
|
|
@@ -123,9 +124,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
123
124
|
attributions$: Observable<boolean>;
|
|
124
125
|
olZoomElement$: BehaviorSubject<HTMLDivElement | null>;
|
|
125
126
|
previousLayers: BaseLayer[];
|
|
126
|
-
previousTooltip?: ComponentRef<BaseTooltipComponent>;
|
|
127
|
-
previousTooltipSub?: Subscription;
|
|
128
|
-
popupOverlay?: Overlay;
|
|
129
127
|
layerGroups$: Observable<LayerGroup[]>;
|
|
130
128
|
layerGroups: LayerGroup[];
|
|
131
129
|
layerSettingsExpandedState: {
|
|
@@ -133,15 +131,10 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
133
131
|
};
|
|
134
132
|
constructor(store: Store<any>, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
|
|
135
133
|
initInteractionManager(): InteractionManager;
|
|
134
|
+
initTooltipManager(): TooltipManager;
|
|
136
135
|
ngAfterViewInit(): void;
|
|
137
|
-
clearTooltip(): void;
|
|
138
136
|
private addEmptyWebGlLayerBelowSlideHeatmaps;
|
|
139
137
|
initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
|
|
140
|
-
generateTooltip(value: {
|
|
141
|
-
oClass: string;
|
|
142
|
-
coordinates: Pixel;
|
|
143
|
-
values: any;
|
|
144
|
-
}): Promise<ComponentRef<BaseTooltipComponent> | null>;
|
|
145
138
|
setDefaultLayerTitle(layer: MapWidgetLayerOptions, index: number, capabilities: {
|
|
146
139
|
[p: string]: GetCapabilitiesResponse | null;
|
|
147
140
|
} | undefined): void;
|
|
@@ -179,14 +172,10 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
179
172
|
changeOpacity(layer: MapWidgetLayerOptions, $event: string): void;
|
|
180
173
|
getWMSLayers(): Layer<any>[];
|
|
181
174
|
isLayerRendered(layer: any): boolean;
|
|
182
|
-
getFeatureFromServer(wmsLayers: Layer<any>[], pixel: Pixel): void;
|
|
183
175
|
changeWmsClass($event: any, layer: MapWMSLayerLayerOptions): void;
|
|
184
176
|
toggleLegend(index: number): void;
|
|
185
177
|
toggleLegendWindow(): void;
|
|
186
178
|
toggleLayersWindow(): void;
|
|
187
|
-
tooltipMove(number: number): void;
|
|
188
|
-
tooltipCanMove(number: number): boolean;
|
|
189
|
-
private setStyleAsync;
|
|
190
179
|
get mapLayers(): BaseLayer[];
|
|
191
180
|
get rightSlideLayers(): BaseLayer[];
|
|
192
181
|
get leftSlideLayers(): BaseLayer[];
|
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
import { MapBrowserEvent, Overlay } from 'ol';
|
|
2
1
|
import { ScaleLine } from 'ol/control';
|
|
3
2
|
import type { WidgetMapComponent } from '../component/widget-map.component';
|
|
4
3
|
import { SelectionInteraction } from './selection-interaction.class';
|
|
5
4
|
export declare class InteractionManager {
|
|
6
|
-
interactionPopupOverlay?: Overlay;
|
|
7
5
|
scaleControl?: ScaleLine;
|
|
8
6
|
selectionInteraction: SelectionInteraction;
|
|
9
|
-
tooltipEvent?: MapBrowserEvent<MouseEvent>;
|
|
10
7
|
private component;
|
|
11
8
|
init(component: WidgetMapComponent): this;
|
|
12
9
|
listeners: {
|
|
13
10
|
contextMenu: (e: MouseEvent) => void;
|
|
14
|
-
popup: (event: MapBrowserEvent<MouseEvent>) => void;
|
|
15
11
|
};
|
|
16
12
|
private addContextMenuInteraction;
|
|
17
|
-
private addOverlayOnInteraction;
|
|
18
13
|
private addScaleControl;
|
|
19
14
|
private addUpdateZoomAndCenter;
|
|
20
15
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Pixel } from 'ol/pixel';
|
|
2
|
+
import { ComponentRef, ElementRef, Injector, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { BaseTooltipComponent, Size, TooltipFactoryService } from '@provoly/dashboard';
|
|
4
|
+
import { BehaviorSubject, Observable, Subscription } from 'rxjs';
|
|
5
|
+
import { Map, MapBrowserEvent, Overlay } from 'ol';
|
|
6
|
+
import { Store } from '@ngrx/store';
|
|
7
|
+
import { WidgetMapComponent } from '../component/widget-map.component';
|
|
8
|
+
import { InteractionManager } from './interaction-manager.class';
|
|
9
|
+
import { Layer } from 'ol/layer';
|
|
10
|
+
export declare class TooltipManager {
|
|
11
|
+
private tooltipFactoryService;
|
|
12
|
+
private injector;
|
|
13
|
+
private store;
|
|
14
|
+
wmsFeatures$: Observable<any[]>;
|
|
15
|
+
classicFeatures$: BehaviorSubject<any>;
|
|
16
|
+
tooltipIndex: number;
|
|
17
|
+
popupOverlay?: Overlay;
|
|
18
|
+
map: Map;
|
|
19
|
+
popup: ElementRef;
|
|
20
|
+
popupContent: ViewContainerRef;
|
|
21
|
+
tooltipNumber: number;
|
|
22
|
+
interactionManager: InteractionManager;
|
|
23
|
+
previousTooltip?: ComponentRef<BaseTooltipComponent>;
|
|
24
|
+
previousTooltipSub?: Subscription;
|
|
25
|
+
tooltipEvent?: MapBrowserEvent<MouseEvent>;
|
|
26
|
+
parent: WidgetMapComponent;
|
|
27
|
+
interactionPopupOverlay: Overlay;
|
|
28
|
+
init(tooltipFactoryService: TooltipFactoryService, injector: Injector, store: Store, subscriptions: Subscription, widgetSize$: Observable<Size>, displayHeader$: Observable<boolean | {
|
|
29
|
+
[p: string]: boolean;
|
|
30
|
+
}>, map: Map, popup: ElementRef, popupContent: ViewContainerRef, interactionManager: InteractionManager, parent: WidgetMapComponent): this;
|
|
31
|
+
private addOverlayOnInteraction;
|
|
32
|
+
generateTooltip(value: {
|
|
33
|
+
oClass: string;
|
|
34
|
+
coordinates: Pixel;
|
|
35
|
+
values: any;
|
|
36
|
+
}): Promise<ComponentRef<BaseTooltipComponent> | null>;
|
|
37
|
+
clearTooltip(empty?: boolean): void;
|
|
38
|
+
tooltipMove(number: number): void;
|
|
39
|
+
private setStyleAsync;
|
|
40
|
+
tooltipCanMove(number: number): boolean;
|
|
41
|
+
getFeatureFromServer(wmsLayers: Layer<any>[], pixel: Pixel): void;
|
|
42
|
+
destroy(): void;
|
|
43
|
+
}
|
|
@@ -6,6 +6,7 @@ export * from './pipe/widget-map-legend-url.pipe';
|
|
|
6
6
|
export * from './interaction/interaction-manager.class';
|
|
7
7
|
export * from './interaction/selection-interaction.class';
|
|
8
8
|
export * from './interaction/layer-slider.class';
|
|
9
|
+
export * from './interaction/tooltip-manager.class';
|
|
9
10
|
export * from './utils/widget-map.utils';
|
|
10
11
|
export * from './utils/xml-utils.class';
|
|
11
12
|
export * from './utils/cql-utils.class';
|
|
@@ -22,7 +22,9 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
22
22
|
Array: ArrayConstructor;
|
|
23
23
|
currentClasses: string[];
|
|
24
24
|
selectedIds: string[];
|
|
25
|
-
WIDGET_HEADER_HEIGHT:
|
|
25
|
+
WIDGET_HEADER_HEIGHT: {
|
|
26
|
+
value: number;
|
|
27
|
+
};
|
|
26
28
|
private classes$;
|
|
27
29
|
properties$: Observable<{
|
|
28
30
|
label: string;
|
|
@@ -26,9 +26,14 @@ export declare class WidgetTileComponent extends DataWidgetComponent {
|
|
|
26
26
|
};
|
|
27
27
|
classes$: Observable<Class[]>;
|
|
28
28
|
optionsCopy: TileWidgetOptions;
|
|
29
|
-
WIDGET_HEADER_HEIGHT:
|
|
29
|
+
WIDGET_HEADER_HEIGHT: {
|
|
30
|
+
value: number;
|
|
31
|
+
};
|
|
30
32
|
propertiesToDisplay$: Observable<{
|
|
31
|
-
[p: string]:
|
|
33
|
+
[p: string]: {
|
|
34
|
+
label: string;
|
|
35
|
+
prop: string;
|
|
36
|
+
}[];
|
|
32
37
|
} | undefined>;
|
|
33
38
|
fields: Field[];
|
|
34
39
|
classes: Class[];
|