@provoly/dashboard 0.21.4 → 0.21.6

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 (90) 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/model/search-mono-class.model.mjs +1 -1
  8. package/esm2022/lib/core/model/search-multi-class.model.mjs +1 -1
  9. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +2 -2
  10. package/esm2022/lib/core/store/config/config.actions.mjs +4 -2
  11. package/esm2022/lib/core/store/config/config.reducer.mjs +6 -2
  12. package/esm2022/lib/core/store/config/config.selectors.mjs +5 -2
  13. package/esm2022/lib/core/store/field/field.interface.mjs +2 -1
  14. package/esm2022/lib/core/store/image/image.service.mjs +3 -3
  15. package/esm2022/lib/core/store/search/search.reducer.mjs +2 -2
  16. package/esm2022/lib/core/store/search/search.service.mjs +14 -4
  17. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -10
  18. package/esm2022/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.mjs +12 -3
  19. package/esm2022/lib/dashboard/dashboard.module.mjs +5 -4
  20. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
  21. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +3 -2
  22. package/esm2022/lib/dashboard/store/manifest.service.mjs +4 -3
  23. package/esm2022/notification/components/notification/content/notification-content.component.mjs +12 -8
  24. package/esm2022/notification/components/notification/notification.component.mjs +2 -1
  25. package/esm2022/notification/style/css.component.mjs +2 -2
  26. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +3 -3
  27. package/esm2022/presentation/components/presentation.component.mjs +14 -12
  28. package/esm2022/presentation/style/css.component.mjs +2 -2
  29. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -5
  30. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +5 -6
  31. package/esm2022/restitution/style/css.component.mjs +2 -2
  32. package/esm2022/toolbox/components/save-view/save-view.component.mjs +12 -6
  33. package/esm2022/toolbox/components/share/share.component.mjs +8 -5
  34. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +2 -2
  35. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +57 -17
  36. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +5 -2
  37. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +5 -2
  38. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +3 -2
  39. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  40. package/esm2022/widgets/widget-map/utils/cql-utils.class.mjs +12 -4
  41. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +3 -2
  42. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  43. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  44. package/fesm2022/provoly-dashboard-notification.mjs +14 -9
  45. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  46. package/fesm2022/provoly-dashboard-presentation.mjs +17 -15
  47. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  48. package/fesm2022/provoly-dashboard-restitution.mjs +10 -11
  49. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  50. package/fesm2022/provoly-dashboard-toolbox.mjs +17 -8
  51. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  52. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  53. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  54. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +80 -27
  55. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  56. package/fesm2022/provoly-dashboard.mjs +55 -28
  57. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  58. package/lib/core/model/manifest.interface.d.ts +3 -1
  59. package/lib/core/model/search-mono-class.model.d.ts +1 -0
  60. package/lib/core/model/search-multi-class.model.d.ts +2 -0
  61. package/lib/core/store/config/config.actions.d.ts +10 -0
  62. package/lib/core/store/config/config.reducer.d.ts +3 -0
  63. package/lib/core/store/config/config.selectors.d.ts +5 -0
  64. package/lib/core/store/field/field.interface.d.ts +1 -0
  65. package/lib/core/store/image/image.service.d.ts +1 -1
  66. package/lib/core/store/search/search.service.d.ts +4 -1
  67. package/lib/dashboard/components/widgets/widget-instanciator/widget-instanciator.component.d.ts +1 -0
  68. package/lib/dashboard/store/dashboard.actions.d.ts +3 -0
  69. package/lib/dashboard/store/manifest.service.d.ts +2 -1
  70. package/notification/components/notification/content/notification-content.component.d.ts +4 -2
  71. package/notification/style/_m-notifications.scss +6 -7
  72. package/package.json +19 -19
  73. package/presentation/components/presentation.component.d.ts +3 -1
  74. package/presentation/style/_o-pry-presentation.scss +0 -16
  75. package/restitution/components/restitution/restitution.component.d.ts +1 -1
  76. package/restitution/style/_o-restitution.scss +12 -42
  77. package/styles/components/_a-page-loader.scss +1 -1
  78. package/styles/components/_o-pry-stepper.scss +9 -10
  79. package/styles/components/_o-widget.scss +7 -3
  80. package/styles/layout/_o-manifest-layout.scss +20 -0
  81. package/styles-theme/components-theme/_o-widget.theme.scss +1 -1
  82. package/toolbox/components/save-view/save-view.component.d.ts +3 -2
  83. package/toolbox/components/share/share.component.d.ts +2 -1
  84. package/widgets/widget-chart/component/widget-chart.component.d.ts +1 -1
  85. package/widgets/widget-map/component/widget-map.component.d.ts +5 -1
  86. package/widgets/widget-map/i18n/en.translations.d.ts +3 -0
  87. package/widgets/widget-map/i18n/fr.translations.d.ts +3 -0
  88. package/widgets/widget-map/style/_o-layer-legend.scss +43 -54
  89. package/widgets/widget-map/utils/cql-utils.class.d.ts +2 -2
  90. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -0
@@ -72,7 +72,9 @@ export declare const enTranslations: {
72
72
  export: string;
73
73
  legend: string;
74
74
  legendNotProvided: string;
75
+ layersTitle: string;
75
76
  selectLayers: string;
77
+ legendsTitle: string;
76
78
  legends: string;
77
79
  singleLayer: string;
78
80
  autoLayer: string;
@@ -87,6 +89,7 @@ export declare const enTranslations: {
87
89
  zoomIn: string;
88
90
  zoomOut: string;
89
91
  slideTitle: string;
92
+ layerLoadError: string;
90
93
  };
91
94
  };
92
95
  };
@@ -70,8 +70,10 @@ export declare const frTranslations: {
70
70
  click: string;
71
71
  zoom: string;
72
72
  export: string;
73
+ legendsTitle: string;
73
74
  legend: string;
74
75
  legendNotProvided: string;
76
+ layersTitle: string;
75
77
  selectLayers: string;
76
78
  legends: string;
77
79
  singleLayer: string;
@@ -87,6 +89,7 @@ export declare const frTranslations: {
87
89
  zoomIn: string;
88
90
  zoomOut: string;
89
91
  slideTitle: string;
92
+ layerLoadError: string;
90
93
  };
91
94
  };
92
95
  };
@@ -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>;