@provoly/dashboard 0.12.5 → 0.12.7
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/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
- package/esm2022/lib/core/store/data-source/data-source.effects.mjs +4 -3
- package/esm2022/lib/core/store/data-source/data-source.reducer.mjs +24 -2
- package/esm2022/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.mjs +97 -0
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +29 -62
- package/esm2022/lib/dashboard/components/widgets/public-api.mjs +2 -1
- package/esm2022/lib/dashboard/dashboard.module.mjs +8 -4
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +4 -1
- package/esm2022/restitution/components/restitution/restitution.component.mjs +7 -24
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +3 -3
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +3 -3
- package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +1 -1
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -12
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +3 -3
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +3 -3
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +3 -0
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +8 -25
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +18 -11
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +2 -2
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +150 -72
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/store/data-source/data-source.effects.d.ts +1 -0
- package/lib/dashboard/components/widgets/datasource-selector/datasource-selector.component.d.ts +34 -0
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +5 -16
- package/lib/dashboard/components/widgets/public-api.d.ts +1 -0
- package/lib/dashboard/dashboard.module.d.ts +15 -14
- package/package.json +37 -37
- package/restitution/components/restitution/restitution.component.d.ts +3 -9
- package/restitution/style/_o-restitution.scss +0 -4
- package/schematics/ng-add/index.js +58 -19
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/index.spec.js +0 -2
- package/schematics/ng-add/index.spec.js.map +1 -1
- package/styles/components/_o-datasources.scss +17 -56
- package/styles/components/_o-widget.scss +40 -32
- package/styles-theme/components-theme/_o-datasources.theme.scss +8 -5
- package/widgets/widget-map/component/widget-map.component.d.ts +5 -2
|
@@ -118,41 +118,12 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
// Resultset displayed in popup/panel
|
|
121
|
-
&__choose-resultset {
|
|
121
|
+
&__choose-resultset, .active-step {
|
|
122
122
|
@extend %overlay-panel-fixed-right;
|
|
123
123
|
width: toRem(560);
|
|
124
124
|
padding: 0 0 toRem(10) 0;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
overflow: auto;
|
|
128
|
-
overflow-x: hidden;
|
|
129
|
-
height: auto;
|
|
130
|
-
padding: toRem(30) toRem(20) 0 toRem(20);
|
|
131
|
-
|
|
132
|
-
.o-widget__search {
|
|
133
|
-
margin-bottom: toRem(20);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.m-namedqueries {
|
|
137
|
-
@extend %list-unstyled;
|
|
138
|
-
|
|
139
|
-
&__item {
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: row;
|
|
142
|
-
justify-content: space-between;
|
|
143
|
-
align-items: center;
|
|
144
|
-
margin-bottom: toRem(15);
|
|
145
|
-
|
|
146
|
-
.a-checkbox {
|
|
147
|
-
margin-bottom: 0;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.a-checkbox__text {
|
|
151
|
-
padding-right: toRem(10);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
}
|
|
125
|
+
top: toRem(12);
|
|
126
|
+
height: calc(100% - 24px);
|
|
156
127
|
|
|
157
128
|
.m-btn-group {
|
|
158
129
|
min-height: 65px;
|
|
@@ -206,3 +177,40 @@
|
|
|
206
177
|
margin-top: toRem(12);
|
|
207
178
|
}
|
|
208
179
|
}
|
|
180
|
+
|
|
181
|
+
.m-namedqueries-wrapper {
|
|
182
|
+
overflow: auto;
|
|
183
|
+
overflow-x: hidden;
|
|
184
|
+
padding: toRem(30) toRem(20) 0 toRem(20);
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: column;
|
|
187
|
+
height: 100%;
|
|
188
|
+
|
|
189
|
+
.o-widget__search {
|
|
190
|
+
margin-bottom: toRem(20);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.m-namedqueries {
|
|
194
|
+
@extend %list-unstyled;
|
|
195
|
+
|
|
196
|
+
&__item {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: row;
|
|
199
|
+
justify-content: space-between;
|
|
200
|
+
align-items: center;
|
|
201
|
+
margin-bottom: toRem(15);
|
|
202
|
+
|
|
203
|
+
.a-checkbox {
|
|
204
|
+
margin-bottom: 0;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.a-checkbox__text {
|
|
208
|
+
padding-right: toRem(10);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
pry-datasource-selector {
|
|
215
|
+
height: 100%;
|
|
216
|
+
}
|
|
@@ -28,11 +28,14 @@
|
|
|
28
28
|
.o-pry-card {
|
|
29
29
|
@extend %card-with-hover;
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
color: themed($theme-map, 'color', '
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
&.-selected {
|
|
32
|
+
color: themed($theme-map, 'color', 'accent', 'contrast', 600);
|
|
33
|
+
background-color: themed($theme-map, 'color', 'accent', 600);
|
|
34
|
+
|
|
35
|
+
.a-btn.a-btn--primary {
|
|
36
|
+
color: themed($theme-map, 'color', 'accent', 600);
|
|
37
|
+
background-color: themed($theme-map, 'color', 'accent', 'contrast', 600);
|
|
38
|
+
}
|
|
36
39
|
}
|
|
37
40
|
}
|
|
38
41
|
}
|
|
@@ -2,7 +2,7 @@ import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { AfterViewInit, ComponentRef, ElementRef, Injector, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GeocodingService, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
|
|
5
|
-
import { Map } from 'ol';
|
|
5
|
+
import { Map, MapBrowserEvent, Overlay } from 'ol';
|
|
6
6
|
import LayerSwitcher from 'ol-layerswitcher';
|
|
7
7
|
import { Geometry } from 'ol/geom';
|
|
8
8
|
import BaseLayer from 'ol/layer/Base';
|
|
@@ -78,6 +78,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
78
78
|
} | undefined;
|
|
79
79
|
center?: number[] | undefined;
|
|
80
80
|
}>;
|
|
81
|
+
interactionPopupOverlay?: Overlay;
|
|
82
|
+
interactionPopupListener?: (event: MapBrowserEvent<MouseEvent>) => void;
|
|
83
|
+
interactionPopupMode?: 'singleclick' | 'pointermove';
|
|
81
84
|
constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, geocodingService: GeocodingService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef);
|
|
82
85
|
ngAfterViewInit(): void;
|
|
83
86
|
initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
|
|
@@ -88,7 +91,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
88
91
|
}): Promise<ComponentRef<BaseTooltipComponent> | null>;
|
|
89
92
|
setDefaultLayerTitle(layer: MapWidgetLayerOptions, idx: number): void;
|
|
90
93
|
fitMapForObjects(options: MapWidgetOptions, selectedIds?: string[]): void;
|
|
91
|
-
private
|
|
94
|
+
private addOverlayOnInteraction;
|
|
92
95
|
private addContextMenuInteraction;
|
|
93
96
|
private getAttributesForDrawing;
|
|
94
97
|
private getIntensityAttribute;
|