@provoly/dashboard 0.21.4 → 0.21.5

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 (74) hide show
  1. package/assets/svgs/layers.svg +3 -2
  2. package/assets/svgs/legend.svg +14 -3
  3. package/dataset/style/_o-pry-dataset.scss +6 -9
  4. package/esm2022/dataset/components/dataset.component.mjs +3 -3
  5. package/esm2022/dataset/style/css.component.mjs +2 -2
  6. package/esm2022/lib/core/model/manifest.interface.mjs +1 -1
  7. package/esm2022/lib/core/store/field/field.interface.mjs +2 -1
  8. package/esm2022/lib/core/store/search/search.reducer.mjs +2 -2
  9. package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +12 -3
  10. package/esm2022/lib/dashboard/dashboard.module.mjs +5 -4
  11. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  12. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -2
  13. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -3
  14. package/esm2022/notification/components/notification/content/notification-content.component.mjs +12 -8
  15. package/esm2022/notification/components/notification/notification.component.mjs +2 -1
  16. package/esm2022/notification/style/css.component.mjs +2 -2
  17. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  18. package/esm2022/presentation/components/presentation.component.mjs +11 -9
  19. package/esm2022/presentation/style/css.component.mjs +2 -2
  20. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  21. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  22. package/esm2022/restitution/style/css.component.mjs +2 -2
  23. package/esm2022/toolbox/components/save-view/save-view.component.mjs +12 -6
  24. package/esm2022/toolbox/components/share/share.component.mjs +8 -5
  25. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  26. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +57 -17
  27. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
  28. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
  29. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +3 -2
  30. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  31. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +12 -4
  32. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +3 -2
  33. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  34. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  35. package/fesm2022/provoly-dashboard-notification.mjs +14 -9
  36. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  37. package/fesm2022/provoly-dashboard-presentation.mjs +14 -12
  38. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  39. package/fesm2022/provoly-dashboard-restitution.mjs +8 -8
  40. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  41. package/fesm2022/provoly-dashboard-toolbox.mjs +17 -8
  42. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  43. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  44. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  45. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +80 -27
  46. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  47. package/fesm2022/provoly-dashboard.mjs +22 -10
  48. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  49. package/lib/core/model/manifest.interface.d.ts +3 -1
  50. package/lib/core/store/field/field.interface.d.ts +1 -0
  51. package/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.d.ts +1 -0
  52. package/lib/dashboard/store/dashboard.actions.d.ts +3 -0
  53. package/lib/dashboard/store/manifest.service.d.ts +2 -1
  54. package/notification/components/notification/content/notification-content.component.d.ts +4 -2
  55. package/notification/style/_m-notifications.scss +6 -7
  56. package/package.json +24 -24
  57. package/presentation/components/presentation.component.d.ts +3 -1
  58. package/presentation/style/_o-pry-presentation.scss +0 -16
  59. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  60. package/restitution/style/_o-restitution.scss +12 -42
  61. package/styles/components/_a-page-loader.scss +1 -1
  62. package/styles/components/_o-pry-stepper.scss +9 -10
  63. package/styles/components/_o-widget.scss +7 -3
  64. package/styles/layout/_o-manifest-layout.scss +20 -0
  65. package/styles-theme/components-theme/_o-widget.theme.scss +1 -1
  66. package/toolbox/components/save-view/save-view.component.d.ts +3 -2
  67. package/toolbox/components/share/share.component.d.ts +2 -1
  68. package/widgets/widget-chart/component/widget-chart.component.d.ts +1 -1
  69. package/widgets/widget-map/component/widget-map.component.d.ts +5 -1
  70. package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
  71. package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
  72. package/widgets/widget-map/style/_o-layer-legend.scss +43 -54
  73. package/widgets/widget-map/utils/cql-utils.class.d.ts +2 -2
  74. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -0
@@ -1,21 +1,14 @@
1
1
  @use '../../../styles/abstracts/index' as *;
2
2
 
3
- .m-layer-legend {
3
+ .m-map-layer-action {
4
+ display: flex;
5
+ gap: toRem(6);
4
6
  z-index: 2;
5
7
  right: toRem(8);
6
8
 
7
9
  &.ol-control {
8
- display: flex;
9
- flex-direction: column;
10
- align-items: flex-start;
11
-
12
10
  border: none;
13
- background: white;
14
- }
15
-
16
- button {
17
- background-color: #fafafa !important;
18
- color: black;
11
+ background-color: transparent;
19
12
  }
20
13
 
21
14
  .-hidden {
@@ -23,17 +16,45 @@
23
16
  }
24
17
 
25
18
  &__toggle {
26
- align-self: flex-end;
19
+ order: 2;
27
20
  width: toRem(30);
28
21
  height: toRem(30);
29
22
  }
30
23
 
24
+ button {
25
+ background-color: #fafafa !important;
26
+ color: #113b6e;
27
+ }
28
+
31
29
  &__title {
32
30
  display: flex;
33
31
  flex-direction: row;
34
32
  align-items: center;
33
+ font-size: 12px;
34
+
35
+ &:hover {
36
+ cursor: pointer;
37
+ background-color: #fafafa !important;
38
+ }
39
+ }
40
+
41
+ &__container {
42
+ color: #113b6e;
35
43
  background-color: white;
36
- justify-content: space-between;
44
+ border-radius: toRem(2);
45
+ padding: toRem(5) toRem(8);
46
+
47
+ .a-h4 {
48
+ font-size: 12px;
49
+ }
50
+
51
+ button.m-map-layer-action__toggle {
52
+ border-radius: 50%;
53
+
54
+ &:hover {
55
+ outline: none;
56
+ }
57
+ }
37
58
  }
38
59
 
39
60
  &__image {
@@ -47,53 +68,21 @@
47
68
  }
48
69
  }
49
70
 
50
- .m-layer-switcher {
51
- z-index: 2;
52
- right: toRem(8);
53
- display: flex;
54
- flex-direction: column;
55
- align-items: normal;
56
-
57
- &.ol-control {
58
- border: none;
59
- background: white;
60
- align-self: flex-end;
61
- }
62
-
63
- button {
64
- background-color: #fafafa !important;
65
- color: black;
66
- }
67
-
68
- .-hidden {
69
- display: none;
70
- }
71
-
72
- &__toggle {
73
- width: toRem(30);
74
- height: toRem(30);
75
- align-self: flex-end;
76
- }
77
-
71
+ .m-layer-legend {
78
72
  &__title {
79
- display: flex;
80
- flex-direction: row;
81
- background-color: white;
82
- justify-content: space-between;
83
- gap: toRem(10);
84
- padding: 5px;
73
+ align-items: flex-start;
74
+ gap: toRem(5);
85
75
  }
86
76
 
87
- &__image {
88
- background: white;
89
- overflow: scroll;
77
+ &__dropdown-icon {
78
+ margin-top: toRem(2);
90
79
  }
80
+ }
91
81
 
92
- &__error {
93
- font-style: italic;
94
- color: #c74646;
82
+ .m-layer-switcher {
83
+ &__title {
84
+ align-items: flex-start;
95
85
  }
96
-
97
86
  }
98
87
 
99
88
  .m-map-slide-legend {
@@ -1,6 +1,6 @@
1
- import { Class, FilterContext } from '@provoly/dashboard';
1
+ import { Class, Field, FilterContext } from '@provoly/dashboard';
2
2
  export declare class CqlUtils {
3
3
  static getCQLParamsFor(datasourceId: string, filters: {
4
4
  [p: string]: FilterContext[];
5
- }, classes: Class[]): string | null;
5
+ }, classes: Class[], fields: Field[]): string | null;
6
6
  }
@@ -4,7 +4,9 @@ import { Circle, LineString, Point } from 'ol/geom';
4
4
  import { Style } from 'ol/style';
5
5
  import { ProjectionLike } from 'ol/proj';
6
6
  import Geometry from 'ol/geom/Geometry';
7
+ import { GeoJSON } from 'ol/format';
7
8
  export declare class WidgetMapUtils {
9
+ static geoJSON: GeoJSON;
8
10
  static populateLocationAttribute(layer: MapWidgetLayerOptions, resultSet: ResultSet, classesNotFiltered: Class[], fields: Field[]): void;
9
11
  static populateIntensityAttribute(layer: MapWidgetLayerOptions, resultSet: ResultSet, classesNotFiltered: Class[], fields: Field[]): void;
10
12
  static getFeatureFromItem(projection: ProjectionLike, item: Item, type: string, locationAttribute: Attribute, iconStyle?: Style, selectedIconStyle?: Style): Feature<Geometry>;