@provoly/dashboard 1.2.2 → 1.2.4
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/components/data-format/data-format.module.d.ts +7 -0
- package/components/data-format/data-format.pipe.d.ts +8 -0
- package/components/data-format/index.d.ts +5 -0
- package/components/data-format/public-api.d.ts +2 -0
- package/esm2022/components/data-format/data-format.module.mjs +16 -0
- package/esm2022/components/data-format/data-format.pipe.mjs +32 -0
- package/esm2022/components/data-format/provoly-dashboard-components-data-format.mjs +5 -0
- package/esm2022/components/data-format/public-api.mjs +3 -0
- package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +2 -2
- package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +4 -3
- package/esm2022/widgets/widget-analytic/widget-analytic.module.mjs +8 -4
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +21 -11
- package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
- package/esm2022/widgets/widget-table/expand-value/format-number.pipe.mjs +7 -12
- package/fesm2022/provoly-dashboard-components-data-format.mjs +52 -0
- package/fesm2022/provoly-dashboard-components-data-format.mjs.map +1 -0
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +10 -5
- package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +22 -12
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +13 -17
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +1 -1
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/package.json +13 -7
- package/styles/base/_utils.scss +4 -0
- package/styles/components/_o-widget.scss +1 -1
- package/styles-theme/components-theme/_o-widget.theme.scss +4 -1
- package/styles-theme/main-theme.scss +0 -1
- package/widgets/widget-analytic/component/widget-analytic.component.d.ts +1 -1
- package/widgets/widget-analytic/widget-analytic.module.d.ts +2 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
- package/widgets/widget-map/style/_m-layer-legend.scss +41 -56
- package/widgets/widget-table/expand-value/format-number.pipe.d.ts +1 -3
- package/styles-theme/components-theme/_m-layer-legend.theme.scss +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.4",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "16.x || 17.x",
|
|
@@ -150,6 +150,12 @@
|
|
|
150
150
|
"esm": "./esm2022/components/color-picker/provoly-dashboard-components-color-picker.mjs",
|
|
151
151
|
"default": "./fesm2022/provoly-dashboard-components-color-picker.mjs"
|
|
152
152
|
},
|
|
153
|
+
"./components/data-format": {
|
|
154
|
+
"types": "./components/data-format/index.d.ts",
|
|
155
|
+
"esm2022": "./esm2022/components/data-format/provoly-dashboard-components-data-format.mjs",
|
|
156
|
+
"esm": "./esm2022/components/data-format/provoly-dashboard-components-data-format.mjs",
|
|
157
|
+
"default": "./fesm2022/provoly-dashboard-components-data-format.mjs"
|
|
158
|
+
},
|
|
153
159
|
"./components/expand-panel": {
|
|
154
160
|
"types": "./components/expand-panel/index.d.ts",
|
|
155
161
|
"esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
|
|
@@ -330,17 +336,17 @@
|
|
|
330
336
|
"esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
|
|
331
337
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
|
|
332
338
|
},
|
|
333
|
-
"./widgets/widget-vega": {
|
|
334
|
-
"types": "./widgets/widget-vega/index.d.ts",
|
|
335
|
-
"esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
336
|
-
"esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
337
|
-
"default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
|
|
338
|
-
},
|
|
339
339
|
"./widgets/widget-tile": {
|
|
340
340
|
"types": "./widgets/widget-tile/index.d.ts",
|
|
341
341
|
"esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
342
342
|
"esm": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
|
|
343
343
|
"default": "./fesm2022/provoly-dashboard-widgets-widget-tile.mjs"
|
|
344
|
+
},
|
|
345
|
+
"./widgets/widget-vega": {
|
|
346
|
+
"types": "./widgets/widget-vega/index.d.ts",
|
|
347
|
+
"esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
348
|
+
"esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
|
|
349
|
+
"default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
|
|
344
350
|
}
|
|
345
351
|
},
|
|
346
352
|
"schematics": "./schematics/collection.json",
|
package/styles/base/_utils.scss
CHANGED
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
|
|
42
42
|
.m-btn-group.-selection-choice, .m-btn-group.-map-selection-choice {
|
|
43
43
|
border-color: themed($theme-map, 'color', 'primary', 400);
|
|
44
|
-
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
|
|
45
44
|
|
|
46
45
|
.a-btn {
|
|
47
46
|
color: themed($theme-map, 'color', 'primary', 600);
|
|
@@ -54,6 +53,10 @@
|
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
|
|
56
|
+
.m-btn-group.-map-selection-choice.-map-export, .m-btn-group.-map-selection-choice.-closed {
|
|
57
|
+
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.10);
|
|
58
|
+
}
|
|
59
|
+
|
|
57
60
|
.node-label {
|
|
58
61
|
display: grid;
|
|
59
62
|
place-items: center;
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
@use 'components-theme/m-minus-plus.theme' as *;
|
|
33
33
|
@use 'components-theme/m-nav-links.theme' as *;
|
|
34
34
|
@use 'components-theme/m-notifications.theme' as *;
|
|
35
|
-
@use 'components-theme/m-layer-legend.theme' as *;
|
|
36
35
|
@use 'components-theme/m-pry-search-select-attribute.theme' as *;
|
|
37
36
|
@use 'components-theme/m-snackbar.theme' as *;
|
|
38
37
|
@use 'components-theme/m-time-picker.theme' as *;
|
|
@@ -10,11 +10,12 @@ import * as i6 from "@provoly/dashboard";
|
|
|
10
10
|
import * as i7 from "@provoly/dashboard/components/checkbox";
|
|
11
11
|
import * as i8 from "@provoly/dashboard/components/color-picker";
|
|
12
12
|
import * as i9 from "@angular/cdk/drag-drop";
|
|
13
|
+
import * as i10 from "@provoly/dashboard/components/data-format";
|
|
13
14
|
export declare class WidgetAnalyticModule extends BaseWidgetModule {
|
|
14
15
|
private pryTranslateService;
|
|
15
16
|
constructor(pryTranslateService: PryI18nService);
|
|
16
17
|
getComponent(): Type<BaseWidgetComponent>;
|
|
17
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetAnalyticModule, never>;
|
|
18
|
-
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 i6.PryI18nModule, typeof i3.AsyncPipe, typeof i8.PryColorPickerModule, typeof i9.DragDropModule], [typeof i1.WidgetAnalyticComponent]>;
|
|
19
|
+
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 i6.PryI18nModule, typeof i3.AsyncPipe, typeof i8.PryColorPickerModule, typeof i9.DragDropModule, typeof i10.PryDataFormatModule], [typeof i1.WidgetAnalyticComponent]>;
|
|
19
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<WidgetAnalyticModule>;
|
|
20
21
|
}
|
|
@@ -67,11 +67,12 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
67
67
|
geoServerLayerDescriptions$: Observable<MapGeoServerLayerOptions[]>;
|
|
68
68
|
legendTabOpen: boolean;
|
|
69
69
|
layersTabOpen: boolean;
|
|
70
|
-
|
|
70
|
+
legendTabClosed: boolean[];
|
|
71
71
|
legendLayers$: Observable<(MapGeoServerLayerOptions | MapWMSLayerLayerOptions)[]>;
|
|
72
72
|
legendTop$: Observable<number>;
|
|
73
73
|
layersTop$: Observable<number>;
|
|
74
74
|
legendHeight$: Observable<number>;
|
|
75
|
+
layersHeight$: Observable<number>;
|
|
75
76
|
imageNotProvided: boolean[];
|
|
76
77
|
basicActions$: Observable<('click' | 'lasso' | 'rectangle' | 'zoom' | 'move' | 'export' | 'upload')[]>;
|
|
77
78
|
zoomAndCenter$: BehaviorSubject<{
|
|
@@ -179,8 +180,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
179
180
|
get mapLayers(): BaseLayer[];
|
|
180
181
|
get rightSlideLayers(): BaseLayer[];
|
|
181
182
|
get leftSlideLayers(): BaseLayer[];
|
|
183
|
+
hideAllLayersInGroup(group: LayerGroup): void;
|
|
182
184
|
changeVisibility(group: LayerGroup, _layer?: MapWidgetLayerOptions): void;
|
|
183
|
-
isLayerVisible(layer: MapWidgetLayerOptions, group
|
|
185
|
+
isLayerVisible(layer: MapWidgetLayerOptions, group?: LayerGroup): boolean;
|
|
184
186
|
changeAutoLayer($event: any): void;
|
|
185
187
|
get layerVisibleIdx(): number;
|
|
186
188
|
ngOnDestroy(): void;
|
|
@@ -1,34 +1,43 @@
|
|
|
1
1
|
@use '../../../styles/abstracts' as *;
|
|
2
|
+
@use '../../../styles-theme/abstracts-theme/variables.theme' as *;
|
|
2
3
|
|
|
3
|
-
.m-map-
|
|
4
|
-
display: flex;
|
|
5
|
-
gap: toRem(6);
|
|
4
|
+
.m-map-action {
|
|
6
5
|
z-index: 2;
|
|
7
6
|
right: toRem(8);
|
|
7
|
+
color: themed($theme-map, 'color', 'primary', 750);
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
border: none;
|
|
8
10
|
|
|
9
|
-
button {
|
|
11
|
+
&__button, button {
|
|
10
12
|
border-radius: 8px;
|
|
11
|
-
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
&:hover {
|
|
15
|
+
outline: none;
|
|
16
|
+
}
|
|
16
17
|
}
|
|
18
|
+
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
// map pop-ins are opened when clicking on map-action buttons
|
|
21
|
+
.m-map-pop-in {
|
|
22
|
+
z-index: 2;
|
|
23
|
+
display: block;
|
|
24
|
+
position: absolute;
|
|
25
|
+
right: toRem(58);
|
|
26
|
+
//max-width: toRem(220); // only for layer popin
|
|
27
|
+
background-color: themed($theme-map, 'color', 'primary', 'contrast', 50);
|
|
28
|
+
padding: toRem(8) toRem(10);
|
|
29
|
+
border-radius: toRem(8);
|
|
21
30
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
width: toRem(30);
|
|
25
|
-
height: toRem(30);
|
|
31
|
+
&.-hidden, .-hidden {
|
|
32
|
+
display: none;
|
|
26
33
|
}
|
|
27
34
|
|
|
28
35
|
&__title {
|
|
29
36
|
display: flex;
|
|
30
37
|
flex-direction: row;
|
|
31
|
-
align-items:
|
|
38
|
+
align-items: flex-start;
|
|
39
|
+
word-break: break-word;
|
|
40
|
+
gap: toRem(5);
|
|
32
41
|
|
|
33
42
|
&:hover {
|
|
34
43
|
cursor: pointer;
|
|
@@ -36,30 +45,10 @@
|
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
|
|
40
|
-
border-radius: toRem(8);
|
|
41
|
-
padding: toRem(8) toRem(10);
|
|
42
|
-
|
|
43
|
-
&--layers {
|
|
44
|
-
max-width: toRem(220);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.a-h4 {
|
|
48
|
-
font-size: 16px;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.a-h5 {
|
|
52
|
-
font-size: 14px;
|
|
53
|
-
margin: 0;
|
|
54
|
-
}
|
|
48
|
+
// legend popin classes
|
|
55
49
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
&:hover {
|
|
60
|
-
outline: none;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
50
|
+
&__dropdown-icon {
|
|
51
|
+
margin-top: toRem(2);
|
|
63
52
|
}
|
|
64
53
|
|
|
65
54
|
&__image {
|
|
@@ -71,21 +60,17 @@
|
|
|
71
60
|
font-style: italic;
|
|
72
61
|
color: #c74646;
|
|
73
62
|
}
|
|
74
|
-
}
|
|
75
63
|
|
|
76
|
-
.
|
|
77
|
-
|
|
78
|
-
align-items: flex-start;
|
|
79
|
-
gap: toRem(5);
|
|
64
|
+
.a-h4 {
|
|
65
|
+
font-size: 16px;
|
|
80
66
|
}
|
|
81
67
|
|
|
82
|
-
|
|
83
|
-
|
|
68
|
+
.a-h5 {
|
|
69
|
+
font-size: 14px;
|
|
70
|
+
margin: 0;
|
|
84
71
|
}
|
|
85
|
-
}
|
|
86
72
|
|
|
87
|
-
|
|
88
|
-
max-height: toRem(510);
|
|
73
|
+
// layer switcher popin classes
|
|
89
74
|
|
|
90
75
|
&__group-title {
|
|
91
76
|
font-weight: 700;
|
|
@@ -93,24 +78,24 @@
|
|
|
93
78
|
}
|
|
94
79
|
|
|
95
80
|
&__content {
|
|
96
|
-
max-height: toRem(420);
|
|
97
81
|
overflow-y: auto;
|
|
98
82
|
}
|
|
99
83
|
|
|
100
|
-
&
|
|
101
|
-
align-items: flex-start;
|
|
102
|
-
word-break: break-word;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
&--radios {
|
|
84
|
+
&__radios {
|
|
106
85
|
display: flex;
|
|
107
86
|
flex-direction: column;
|
|
108
87
|
gap: toRem(5);
|
|
109
88
|
|
|
110
89
|
input {
|
|
90
|
+
accent-color: themed($theme-map, 'color', 'primary', 600);
|
|
111
91
|
margin-top: toRem(3);
|
|
112
92
|
}
|
|
113
93
|
}
|
|
94
|
+
|
|
95
|
+
// modifiers
|
|
96
|
+
&.-max-width-220 {
|
|
97
|
+
max-width: toRem(220);
|
|
98
|
+
}
|
|
114
99
|
}
|
|
115
100
|
|
|
116
101
|
.m-map-slide-legend {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { DecimalPipe } from '@angular/common';
|
|
2
1
|
import { PipeTransform } from '@angular/core';
|
|
3
2
|
import { PryI18nService, ValueType } from '@provoly/dashboard';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class FormatNumberPipe implements PipeTransform {
|
|
6
|
-
private decimalPipe;
|
|
7
5
|
private i18nService;
|
|
8
|
-
constructor(
|
|
6
|
+
constructor(i18nService: PryI18nService);
|
|
9
7
|
transform(toDisplay?: ValueType | ValueType[] | null, ...args: any[]): any;
|
|
10
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormatNumberPipe, never>;
|
|
11
9
|
static ɵpipe: i0.ɵɵPipeDeclaration<FormatNumberPipe, "formatNumber", false>;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
@use '../../styles/abstracts' as *;
|
|
2
|
-
@use '../abstracts-theme/variables.theme' as *;
|
|
3
|
-
|
|
4
|
-
/* Theme Molecules - m-map-layer-action, m-layer-legend, m-map-slide-legend */
|
|
5
|
-
|
|
6
|
-
.m-map-layer-action {
|
|
7
|
-
color: themed($theme-map, 'color', 'primary', 750);
|
|
8
|
-
|
|
9
|
-
&__container {
|
|
10
|
-
background-color: themed($theme-map, 'color', 'primary', 'contrast', 50);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.m-layer-switcher {
|
|
15
|
-
&--radios {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: toRem(5);
|
|
19
|
-
|
|
20
|
-
input {
|
|
21
|
-
accent-color: themed($theme-map, 'color', 'primary', 600);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|