@provoly/dashboard 1.2.2 → 1.2.3

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.
Files changed (33) hide show
  1. package/components/data-format/data-format.module.d.ts +7 -0
  2. package/components/data-format/data-format.pipe.d.ts +8 -0
  3. package/components/data-format/index.d.ts +5 -0
  4. package/components/data-format/public-api.d.ts +2 -0
  5. package/esm2022/components/data-format/data-format.module.mjs +16 -0
  6. package/esm2022/components/data-format/data-format.pipe.mjs +32 -0
  7. package/esm2022/components/data-format/provoly-dashboard-components-data-format.mjs +5 -0
  8. package/esm2022/components/data-format/public-api.mjs +3 -0
  9. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +2 -2
  10. package/esm2022/widgets/widget-analytic/component/widget-analytic.component.mjs +4 -3
  11. package/esm2022/widgets/widget-analytic/widget-analytic.module.mjs +8 -4
  12. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +21 -11
  13. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  14. package/esm2022/widgets/widget-table/expand-value/format-number.pipe.mjs +7 -12
  15. package/fesm2022/provoly-dashboard-components-data-format.mjs +52 -0
  16. package/fesm2022/provoly-dashboard-components-data-format.mjs.map +1 -0
  17. package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs +10 -5
  18. package/fesm2022/provoly-dashboard-widgets-widget-analytic.mjs.map +1 -1
  19. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +22 -12
  20. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  21. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +13 -17
  22. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  23. package/fesm2022/provoly-dashboard.mjs +1 -1
  24. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  25. package/package.json +43 -37
  26. package/styles/base/_utils.scss +4 -0
  27. package/styles-theme/main-theme.scss +0 -1
  28. package/widgets/widget-analytic/component/widget-analytic.component.d.ts +1 -1
  29. package/widgets/widget-analytic/widget-analytic.module.d.ts +2 -1
  30. package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
  31. package/widgets/widget-map/style/_m-layer-legend.scss +41 -56
  32. package/widgets/widget-table/expand-value/format-number.pipe.d.ts +1 -3
  33. 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.2",
3
+ "version": "1.2.3",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "16.x || 17.x",
@@ -132,6 +132,36 @@
132
132
  "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
133
133
  "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
134
134
  },
135
+ "./filters/autocomplete": {
136
+ "types": "./filters/autocomplete/index.d.ts",
137
+ "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
138
+ "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
139
+ "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
140
+ },
141
+ "./filters/date": {
142
+ "types": "./filters/date/index.d.ts",
143
+ "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
144
+ "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
145
+ "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
146
+ },
147
+ "./filters/list": {
148
+ "types": "./filters/list/index.d.ts",
149
+ "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
150
+ "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
151
+ "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
152
+ },
153
+ "./filters/number": {
154
+ "types": "./filters/number/index.d.ts",
155
+ "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
156
+ "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
157
+ "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
158
+ },
159
+ "./filters/text": {
160
+ "types": "./filters/text/index.d.ts",
161
+ "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
162
+ "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
163
+ "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
164
+ },
135
165
  "./components/card": {
136
166
  "types": "./components/card/index.d.ts",
137
167
  "esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
@@ -150,6 +180,12 @@
150
180
  "esm": "./esm2022/components/color-picker/provoly-dashboard-components-color-picker.mjs",
151
181
  "default": "./fesm2022/provoly-dashboard-components-color-picker.mjs"
152
182
  },
183
+ "./components/data-format": {
184
+ "types": "./components/data-format/index.d.ts",
185
+ "esm2022": "./esm2022/components/data-format/provoly-dashboard-components-data-format.mjs",
186
+ "esm": "./esm2022/components/data-format/provoly-dashboard-components-data-format.mjs",
187
+ "default": "./fesm2022/provoly-dashboard-components-data-format.mjs"
188
+ },
153
189
  "./components/expand-panel": {
154
190
  "types": "./components/expand-panel/index.d.ts",
155
191
  "esm2022": "./esm2022/components/expand-panel/provoly-dashboard-components-expand-panel.mjs",
@@ -198,36 +234,6 @@
198
234
  "esm": "./esm2022/components/text-editor/provoly-dashboard-components-text-editor.mjs",
199
235
  "default": "./fesm2022/provoly-dashboard-components-text-editor.mjs"
200
236
  },
201
- "./filters/autocomplete": {
202
- "types": "./filters/autocomplete/index.d.ts",
203
- "esm2022": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
204
- "esm": "./esm2022/filters/autocomplete/provoly-dashboard-filters-autocomplete.mjs",
205
- "default": "./fesm2022/provoly-dashboard-filters-autocomplete.mjs"
206
- },
207
- "./filters/date": {
208
- "types": "./filters/date/index.d.ts",
209
- "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
210
- "esm": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
211
- "default": "./fesm2022/provoly-dashboard-filters-date.mjs"
212
- },
213
- "./filters/list": {
214
- "types": "./filters/list/index.d.ts",
215
- "esm2022": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
216
- "esm": "./esm2022/filters/list/provoly-dashboard-filters-list.mjs",
217
- "default": "./fesm2022/provoly-dashboard-filters-list.mjs"
218
- },
219
- "./filters/number": {
220
- "types": "./filters/number/index.d.ts",
221
- "esm2022": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
222
- "esm": "./esm2022/filters/number/provoly-dashboard-filters-number.mjs",
223
- "default": "./fesm2022/provoly-dashboard-filters-number.mjs"
224
- },
225
- "./filters/text": {
226
- "types": "./filters/text/index.d.ts",
227
- "esm2022": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
228
- "esm": "./esm2022/filters/text/provoly-dashboard-filters-text.mjs",
229
- "default": "./fesm2022/provoly-dashboard-filters-text.mjs"
230
- },
231
237
  "./pipeline-components/filter": {
232
238
  "types": "./pipeline-components/filter/index.d.ts",
233
239
  "esm2022": "./esm2022/pipeline-components/filter/provoly-dashboard-pipeline-components-filter.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",
@@ -49,6 +49,10 @@
49
49
  align-items: center;
50
50
  }
51
51
 
52
+ &.-align-start{
53
+ align-items: flex-start;
54
+ }
55
+
52
56
  &.-justify-center {
53
57
  justify-content: center;
54
58
  }
@@ -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 *;
@@ -17,7 +17,7 @@ export declare class WidgetAnalyticComponent extends DataWidgetComponent {
17
17
  value: {
18
18
  [key: string]: {
19
19
  [key: string]: any;
20
- };
20
+ } | string;
21
21
  };
22
22
  }[]>;
23
23
  totals$: Observable<{
@@ -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
- legendTab: number;
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: LayerGroup): boolean;
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-layer-action {
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
- &.ol-control {
14
- border: none;
15
- background-color: transparent;
14
+ &:hover {
15
+ outline: none;
16
+ }
16
17
  }
18
+ }
17
19
 
18
- .-hidden {
19
- display: none;
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
- &__toggle {
23
- order: 2;
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: center;
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
- &__container {
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
- button.m-map-layer-action__toggle {
57
- border-radius: 50%;
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
- .m-layer-legend {
77
- &__title {
78
- align-items: flex-start;
79
- gap: toRem(5);
64
+ .a-h4 {
65
+ font-size: 16px;
80
66
  }
81
67
 
82
- &__dropdown-icon {
83
- margin-top: toRem(2);
68
+ .a-h5 {
69
+ font-size: 14px;
70
+ margin: 0;
84
71
  }
85
- }
86
72
 
87
- .m-layer-switcher {
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
- &__title {
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(decimalPipe: DecimalPipe, i18nService: PryI18nService);
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
- }