@provoly/dashboard 0.20.0 → 0.20.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/esm2022/lib/core/components/about/about.component.mjs +8 -5
- package/esm2022/lib/core/store/search/search.actions.mjs +2 -2
- package/esm2022/lib/core/store/search/search.service.mjs +2 -2
- package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +2 -2
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +4 -1
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +2 -5
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
- package/esm2022/lib/dashboard/store/proxy.utils.mjs +4 -24
- package/esm2022/presentation/components/presentation.component.mjs +4 -5
- package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
- package/esm2022/restitution/i18n/en.translations.mjs +2 -2
- package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +10 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +40 -28
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +8 -25
- package/fesm2022/provoly-dashboard-presentation.mjs +3 -4
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +8 -8
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +9 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +46 -51
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +17 -34
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/components/about/about.component.d.ts +2 -1
- package/lib/core/store/search/search.actions.d.ts +2 -2
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -2
- package/lib/dashboard/store/dashboard.effects.d.ts +3 -3
- package/lib/dashboard/store/proxy.utils.d.ts +1 -1
- package/package.json +12 -12
- package/styles/components/_o-about.scss +44 -6
- package/styles/components/_o-widget.scss +1 -0
- package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +1 -0
- package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
- package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -2
|
@@ -6,10 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export declare class PryAboutComponent {
|
|
7
7
|
private store;
|
|
8
8
|
private i18nService;
|
|
9
|
+
tooltipPosition: 'top' | 'bottom' | 'left' | 'right' | 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
9
10
|
version$: Observable<Versions | null>;
|
|
10
11
|
constructor(store: Store, i18nService: PryI18nService);
|
|
11
12
|
displayVersion(value: BackendVersion | FrontendVersion): string;
|
|
12
13
|
hasVersion(value: BackendVersion | FrontendVersion): boolean;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryAboutComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PryAboutComponent, "pry-about", never, {}, {}, never, never, false, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PryAboutComponent, "pry-about", never, { "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
16
|
}
|
|
@@ -9,7 +9,7 @@ export declare const SearchActions: {
|
|
|
9
9
|
payload: MonoClassSearchPayload | MultiClassSearchPayload | FullTextSearchPayload;
|
|
10
10
|
id?: string | undefined;
|
|
11
11
|
} & import("@ngrx/store/src/models").TypedAction<"[Search] search">>;
|
|
12
|
-
getDatasourceItems: import("@ngrx/store").ActionCreator<"[Search] (bus)
|
|
12
|
+
getDatasourceItems: import("@ngrx/store").ActionCreator<"[Search] (bus) get datasource items", (props: {
|
|
13
13
|
id: string;
|
|
14
14
|
excludeGeo: boolean;
|
|
15
15
|
from: string;
|
|
@@ -17,7 +17,7 @@ export declare const SearchActions: {
|
|
|
17
17
|
id: string;
|
|
18
18
|
excludeGeo: boolean;
|
|
19
19
|
from: string;
|
|
20
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus)
|
|
20
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus) get datasource items">>;
|
|
21
21
|
searchSuccess: import("@ngrx/store").ActionCreator<"[Search Api] (bus) Search Success", (props: {
|
|
22
22
|
resultSet: ResultSet;
|
|
23
23
|
id?: string | undefined;
|
|
@@ -277,11 +277,11 @@ export declare const DashboardActions: {
|
|
|
277
277
|
}) => {
|
|
278
278
|
widgetIndex: number;
|
|
279
279
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] maximize widget">>;
|
|
280
|
-
assertResultSets: import("@ngrx/store").ActionCreator<"[Dashboard]
|
|
280
|
+
assertResultSets: import("@ngrx/store").ActionCreator<"[Dashboard] assert resultSet", (props: {
|
|
281
281
|
id?: string | undefined;
|
|
282
282
|
}) => {
|
|
283
283
|
id?: string | undefined;
|
|
284
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard]
|
|
284
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] assert resultSet">>;
|
|
285
285
|
updateResultSet: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) received named resultSet", (props: {
|
|
286
286
|
id: string;
|
|
287
287
|
resultSet: ResultSet;
|
|
@@ -98,13 +98,13 @@ export declare class DashboardEffects {
|
|
|
98
98
|
id: string;
|
|
99
99
|
excludeGeo: boolean;
|
|
100
100
|
from: string;
|
|
101
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus)
|
|
101
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus) get datasource items">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
102
102
|
sendAggregatesEvent$: import("rxjs").Observable<{
|
|
103
103
|
id: string;
|
|
104
104
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] (bus) Triggering aggregates for datasource">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
105
105
|
startMissingViewAfterViewUpdate$: import("rxjs").Observable<import("@ngrx/store/src/models").TypedAction<"[Dashboard] solving collisions"> | import("@ngrx/store/src/models").TypedAction<"[Dashboard] opening missing views for manifest"> | ({
|
|
106
106
|
id?: string | undefined;
|
|
107
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard]
|
|
107
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] assert resultSet">)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
108
108
|
updateTitle$: import("rxjs").Observable<[({
|
|
109
109
|
tenants?: string[] | undefined;
|
|
110
110
|
manifest: GlobalManifest;
|
|
@@ -204,7 +204,7 @@ export declare class DashboardEffects {
|
|
|
204
204
|
id: string;
|
|
205
205
|
excludeGeo: boolean;
|
|
206
206
|
from: string;
|
|
207
|
-
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus)
|
|
207
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Search] (bus) get datasource items">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
208
208
|
propagateGridLayout$: import("rxjs").Observable<{
|
|
209
209
|
manifest: import("../../core/model/manifest.interface").DashboardManifest;
|
|
210
210
|
rank: number;
|
|
@@ -7,7 +7,7 @@ export declare class ProxyUtils {
|
|
|
7
7
|
[rsId: string]: boolean;
|
|
8
8
|
};
|
|
9
9
|
static init(store: Store): void;
|
|
10
|
-
static ResultSets(rss: ResultSets):
|
|
10
|
+
static ResultSets(rss: ResultSets): {};
|
|
11
11
|
static ResultSet(rs: ResultSet, rsId: string): {
|
|
12
12
|
relations: import("@provoly/dashboard").Relation[];
|
|
13
13
|
autoRefreshInterval: number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "14.x || 15.x || 16.x",
|
|
@@ -301,12 +301,6 @@
|
|
|
301
301
|
"esm": "./esm2022/widgets/widget-image/provoly-dashboard-widgets-widget-image.mjs",
|
|
302
302
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-image.mjs"
|
|
303
303
|
},
|
|
304
|
-
"./widgets/widget-map": {
|
|
305
|
-
"types": "./widgets/widget-map/index.d.ts",
|
|
306
|
-
"esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
|
|
307
|
-
"esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
|
|
308
|
-
"default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
|
|
309
|
-
},
|
|
310
304
|
"./widgets/widget-table": {
|
|
311
305
|
"types": "./widgets/widget-table/index.d.ts",
|
|
312
306
|
"esm2022": "./esm2022/widgets/widget-table/provoly-dashboard-widgets-widget-table.mjs",
|
|
@@ -319,17 +313,23 @@
|
|
|
319
313
|
"esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
|
|
320
314
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
|
|
321
315
|
},
|
|
322
|
-
"./widgets/widget-
|
|
323
|
-
"types": "./widgets/widget-
|
|
324
|
-
"esm2022": "./esm2022/widgets/widget-
|
|
325
|
-
"esm": "./esm2022/widgets/widget-
|
|
326
|
-
"default": "./fesm2022/provoly-dashboard-widgets-widget-
|
|
316
|
+
"./widgets/widget-map": {
|
|
317
|
+
"types": "./widgets/widget-map/index.d.ts",
|
|
318
|
+
"esm2022": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
|
|
319
|
+
"esm": "./esm2022/widgets/widget-map/provoly-dashboard-widgets-widget-map.mjs",
|
|
320
|
+
"default": "./fesm2022/provoly-dashboard-widgets-widget-map.mjs"
|
|
327
321
|
},
|
|
328
322
|
"./widgets/widget-tile": {
|
|
329
323
|
"types": "./widgets/widget-tile/index.d.ts",
|
|
330
324
|
"esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
331
325
|
"esm": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
332
326
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
|
|
327
|
+
},
|
|
328
|
+
"./widgets/widget-vega": {
|
|
329
|
+
"types": "./widgets/widget-vega/index.d.ts",
|
|
330
|
+
"esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
331
|
+
"esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
332
|
+
"default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
|
|
333
333
|
}
|
|
334
334
|
},
|
|
335
335
|
"schematics": "./schematics/collection.json",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../abstracts' as *;
|
|
2
2
|
|
|
3
3
|
.o-about {
|
|
4
|
+
position: relative;
|
|
4
5
|
|
|
5
6
|
.description:hover:after {
|
|
6
7
|
cursor: pointer;
|
|
@@ -8,16 +9,57 @@
|
|
|
8
9
|
|
|
9
10
|
.description-tooltip {
|
|
10
11
|
position: absolute;
|
|
11
|
-
transform: translateY(5rem);
|
|
12
12
|
max-width: 50vw;
|
|
13
13
|
visibility: hidden;
|
|
14
14
|
background-color: #fff;
|
|
15
15
|
padding: 20px;
|
|
16
|
-
-webkit-box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.3);
|
|
17
16
|
opacity: 0;
|
|
18
17
|
transition: opacity 0.5s ease;
|
|
19
18
|
z-index: 2;
|
|
20
19
|
pointer-events: none;
|
|
20
|
+
|
|
21
|
+
&.-position- {
|
|
22
|
+
&top {
|
|
23
|
+
bottom: 2rem;
|
|
24
|
+
left: -3rem;
|
|
25
|
+
-webkit-box-shadow: 0 -20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
26
|
+
}
|
|
27
|
+
&bottom {
|
|
28
|
+
top: 2rem;
|
|
29
|
+
left: -3rem;
|
|
30
|
+
-webkit-box-shadow: 0 20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
31
|
+
}
|
|
32
|
+
&left {
|
|
33
|
+
top: -15rem;
|
|
34
|
+
right: 5rem;
|
|
35
|
+
-webkit-box-shadow: -20px 0 50px 0 rgba(0, 0, 0, 0.1);
|
|
36
|
+
}
|
|
37
|
+
&right {
|
|
38
|
+
top: -15rem;
|
|
39
|
+
left: 5rem;
|
|
40
|
+
-webkit-box-shadow: 20px 0 50px 0 rgba(0, 0, 0, 0.1);
|
|
41
|
+
}
|
|
42
|
+
&top-left {
|
|
43
|
+
bottom: 0;
|
|
44
|
+
right: 5rem;
|
|
45
|
+
-webkit-box-shadow: -20px -20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
46
|
+
}
|
|
47
|
+
&top-right {
|
|
48
|
+
bottom: 0;
|
|
49
|
+
left: 5rem;
|
|
50
|
+
-webkit-box-shadow: 20px -20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
51
|
+
}
|
|
52
|
+
&bottom-left {
|
|
53
|
+
top: 0;
|
|
54
|
+
right: 5rem;
|
|
55
|
+
-webkit-box-shadow: -20px 20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
56
|
+
}
|
|
57
|
+
&bottom-right {
|
|
58
|
+
top: 0;
|
|
59
|
+
left: 5rem;
|
|
60
|
+
-webkit-box-shadow: 20px 20px 50px 0 rgba(0, 0, 0, 0.1);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
21
63
|
}
|
|
22
64
|
|
|
23
65
|
.description:hover + .description-tooltip {
|
|
@@ -26,10 +68,6 @@
|
|
|
26
68
|
opacity: 1;
|
|
27
69
|
}
|
|
28
70
|
|
|
29
|
-
.title-tooltip {
|
|
30
|
-
transform: translateY(4rem);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
71
|
.title-container {
|
|
34
72
|
display: flex;
|
|
35
73
|
}
|
|
@@ -138,6 +138,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
|
|
|
138
138
|
} | {
|
|
139
139
|
labelAngle?: undefined;
|
|
140
140
|
};
|
|
141
|
+
getAbscissaType(abscissaVegaType: VegaType, hasSort: boolean): VegaType;
|
|
141
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAggregatedChartComponent, never>;
|
|
142
143
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetAggregatedChartComponent, "pry-widget-aggregated-chart", never, {}, {}, never, never, false, never>;
|
|
143
144
|
}
|
|
@@ -7,7 +7,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 VectorTileLayer from 'ol/layer/VectorTile';
|
|
11
10
|
import { Pixel } from 'ol/pixel';
|
|
12
11
|
import VectorSource from 'ol/source/Vector';
|
|
13
12
|
import { Style } from 'ol/style';
|
|
@@ -15,7 +14,9 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
15
14
|
import { InteractionManager } from '../interaction/interaction-manager.class';
|
|
16
15
|
import { WidgetMapLayerService } from './widget-map-layer.service';
|
|
17
16
|
import { LayerSlider } from '../interaction/layer-slider.class';
|
|
17
|
+
import TileLayer from 'ol/layer/Tile';
|
|
18
18
|
import { Attribution } from 'ol/control';
|
|
19
|
+
import VectorTileLayer from 'ol/layer/VectorTile';
|
|
19
20
|
import * as i0 from "@angular/core";
|
|
20
21
|
export declare const TOOLTIP_PADDING = 15;
|
|
21
22
|
export declare const NON_MANDATORY_FIT_LAYER_TYPES: string[];
|
|
@@ -79,7 +80,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
79
80
|
}>;
|
|
80
81
|
mapStyleUrl$: Observable<string | null>;
|
|
81
82
|
interactionManager: InteractionManager;
|
|
82
|
-
mapStyleLayer$: Observable<VectorTileLayer[]>;
|
|
83
|
+
mapStyleLayer$: Observable<(VectorTileLayer | TileLayer<any>)[]>;
|
|
83
84
|
tooltipIndex: number;
|
|
84
85
|
tooltipNumber: number;
|
|
85
86
|
STYLE_FROM_URL: string;
|
|
@@ -91,6 +92,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
91
92
|
fitExtents$: Observable<{
|
|
92
93
|
datasource: string;
|
|
93
94
|
extent: Coordinate[];
|
|
95
|
+
error: boolean;
|
|
94
96
|
}[]>;
|
|
95
97
|
datasourceFilters$: Observable<any>;
|
|
96
98
|
usedClasses$: Observable<any>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AggregationResult, Attribute,
|
|
1
|
+
import { AggregationResult, Attribute, Class, Field, GetCapabilitiesResponse, Item, MapGeoServerLayerOptions, MapWidgetLayerOptions, Relation, ResultSet } from '@provoly/dashboard';
|
|
2
2
|
import { Feature, Map } from 'ol';
|
|
3
3
|
import { Circle, LineString, Point } from 'ol/geom';
|
|
4
4
|
import { Style } from 'ol/style';
|
|
@@ -15,11 +15,11 @@ export declare class WidgetMapUtils {
|
|
|
15
15
|
static geometryForLayer(layer: MapWidgetLayerOptions): string;
|
|
16
16
|
static assignLayersOrder(_layers: MapWidgetLayerOptions[]): MapWidgetLayerOptions[];
|
|
17
17
|
static readGeometry<T extends 'point' | 'line' | 'multi-line' | 'polygon' | 'multi-polygon'>(projection: ProjectionLike, item: Item, type: T, attribute: Attribute | undefined): Geometry | null | undefined;
|
|
18
|
-
static extractGeometries(value: AttributeSimpleValue, points: any[], type: 'point' | 'line' | 'polygon'): void;
|
|
19
18
|
static projectExtentAggregationResponse(field: Field, extentResponse: AggregationResult, layer: MapGeoServerLayerOptions, wmsCapabilities: {
|
|
20
19
|
[p: string]: GetCapabilitiesResponse | null;
|
|
21
20
|
} | undefined, map: Map): {
|
|
22
21
|
datasource: string;
|
|
22
|
+
error: boolean;
|
|
23
23
|
extent: import("ol/coordinate").Coordinate[];
|
|
24
24
|
};
|
|
25
25
|
static DEFAULT_HEATMAP_RADIUS: number;
|