@provoly/dashboard 0.15.2 → 0.15.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.
Files changed (144) hide show
  1. package/components/card/card.module.d.ts +1 -1
  2. package/dataset/style/_o-pry-dataset-detail.scss +4 -0
  3. package/esm2022/components/card/card.component.mjs +3 -3
  4. package/esm2022/components/card/card.module.mjs +5 -5
  5. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +3 -3
  6. package/esm2022/dataset/style/css.component.mjs +2 -2
  7. package/esm2022/lib/core/auth/geoAuth.service.mjs +26 -0
  8. package/esm2022/lib/core/components/overlay/overlay.module.mjs +4 -5
  9. package/esm2022/lib/core/components/toggle/toggle.component.mjs +4 -5
  10. package/esm2022/lib/core/core.module.mjs +8 -2
  11. package/esm2022/lib/core/errors/http-error-interceptor.service.mjs +2 -5
  12. package/esm2022/lib/core/public-api.mjs +2 -2
  13. package/esm2022/lib/core/store/aggregation/backend-aggregation.service.mjs +21 -10
  14. package/esm2022/lib/core/store/search/search.effects.mjs +3 -3
  15. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +10 -4
  16. package/esm2022/lib/dashboard/components/widgets/data-widget.component.mjs +7 -4
  17. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +24 -12
  18. package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +4 -5
  19. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +4 -7
  20. package/esm2022/notification/components/notification/notification.component.mjs +3 -3
  21. package/esm2022/notification/i18n/en.translations.mjs +2 -1
  22. package/esm2022/notification/i18n/fr.translations.mjs +2 -1
  23. package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +5 -3
  24. package/esm2022/presentation/components/presentation.component.mjs +5 -4
  25. package/esm2022/presentation/style/css.component.mjs +2 -2
  26. package/esm2022/restitution/components/restitution/restitution.component.mjs +5 -2
  27. package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
  28. package/esm2022/restitution/components/restitution-list-item/restitution-list-item.component.mjs +3 -3
  29. package/esm2022/restitution/style/css.component.mjs +2 -2
  30. package/esm2022/search/i18n/en.translations.mjs +9 -3
  31. package/esm2022/search/i18n/fr.translations.mjs +9 -3
  32. package/esm2022/search/search-fulltext/search-fulltext/search-fulltext.component.mjs +3 -3
  33. package/esm2022/search/search-home/search-home.component.mjs +3 -3
  34. package/esm2022/search/search-multi-class/components/multi-class-condition/multi-class-condition.component.mjs +6 -3
  35. package/esm2022/search/search-multi-class/components/search-multi-class/search-multi-class.component.mjs +3 -3
  36. package/esm2022/search/search-tools/search-tools.component.mjs +3 -3
  37. package/esm2022/toolbox/components/automate-refresh/automate-refresh.component.mjs +3 -3
  38. package/esm2022/toolbox/components/clear-view/clear-view.component.mjs +3 -3
  39. package/esm2022/toolbox/components/drag-widgets/drag-widgets.component.mjs +3 -3
  40. package/esm2022/toolbox/components/filter-settings/filter-settings.component.mjs +3 -3
  41. package/esm2022/toolbox/components/launch-tab/launch-tab.component.mjs +3 -3
  42. package/esm2022/toolbox/components/named-query/named-query.component.mjs +3 -3
  43. package/esm2022/toolbox/components/refresh-datasets/refresh-datasets.component.mjs +3 -3
  44. package/esm2022/toolbox/components/save-view/save-view.component.mjs +3 -3
  45. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +3 -3
  46. package/esm2022/toolbox/style/css.component.mjs +2 -2
  47. package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +22 -7
  48. package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +19 -9
  49. package/esm2022/widgets/widget-aggregated-chart/i18n/en.translations.mjs +2 -1
  50. package/esm2022/widgets/widget-aggregated-chart/i18n/fr.translations.mjs +2 -1
  51. package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +1 -1
  52. package/esm2022/widgets/widget-detail/component/widget-detail.component.mjs +1 -1
  53. package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +3 -3
  54. package/esm2022/widgets/widget-graph/style/css.component.mjs +2 -2
  55. package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +1 -1
  56. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +5 -1
  57. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +34 -32
  58. package/esm2022/widgets/widget-map/interaction/interaction-manager.class.mjs +8 -12
  59. package/esm2022/widgets/widget-map/style/css.component.mjs +2 -2
  60. package/esm2022/widgets/widget-table/component/widget-table.component.mjs +1 -1
  61. package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +1 -1
  62. package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +1 -1
  63. package/fesm2022/provoly-dashboard-components-card.mjs +6 -6
  64. package/fesm2022/provoly-dashboard-components-card.mjs.map +1 -1
  65. package/fesm2022/provoly-dashboard-dataset.mjs +4 -4
  66. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  67. package/fesm2022/provoly-dashboard-notification.mjs +4 -2
  68. package/fesm2022/provoly-dashboard-notification.mjs.map +1 -1
  69. package/fesm2022/provoly-dashboard-presentation.mjs +10 -7
  70. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  71. package/fesm2022/provoly-dashboard-restitution.mjs +10 -7
  72. package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
  73. package/fesm2022/provoly-dashboard-search.mjs +29 -14
  74. package/fesm2022/provoly-dashboard-search.mjs.map +1 -1
  75. package/fesm2022/provoly-dashboard-toolbox.mjs +20 -20
  76. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  77. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +21 -6
  78. package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
  79. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +20 -8
  80. package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
  81. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
  82. package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
  83. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs +1 -1
  84. package/fesm2022/provoly-dashboard-widgets-widget-detail.mjs.map +1 -1
  85. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +4 -4
  86. package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
  87. package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +1 -1
  88. package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
  89. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +43 -40
  90. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  91. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +1 -1
  92. package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
  93. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -1
  94. package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
  95. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
  96. package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
  97. package/fesm2022/provoly-dashboard.mjs +114 -175
  98. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  99. package/lib/core/auth/geoAuth.service.d.ts +12 -0
  100. package/lib/core/components/overlay/overlay.module.d.ts +8 -9
  101. package/lib/core/core.module.d.ts +1 -0
  102. package/lib/core/public-api.d.ts +1 -1
  103. package/lib/core/store/aggregation/backend-aggregation.service.d.ts +2 -0
  104. package/lib/core/store/search/search.effects.d.ts +3 -0
  105. package/lib/core/toolbox/toolbox-menu.service.d.ts +2 -0
  106. package/lib/dashboard/components/widgets/data-widget.component.d.ts +3 -2
  107. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +8 -5
  108. package/notification/i18n/en.translations.d.ts +1 -0
  109. package/notification/i18n/fr.translations.d.ts +1 -0
  110. package/package.json +41 -42
  111. package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +2 -2
  112. package/presentation/style/_o-pry-presentation.scss +17 -13
  113. package/restitution/components/restitution/restitution.component.d.ts +7 -0
  114. package/schematics/migration.json +5 -0
  115. package/schematics/ng-add/index.js +0 -1
  116. package/schematics/ng-add/index.js.map +1 -1
  117. package/schematics/ng-update/version-0-15/index.d.ts +2 -0
  118. package/schematics/ng-update/version-0-15/index.js +19 -0
  119. package/schematics/ng-update/version-0-15/index.js.map +1 -0
  120. package/schematics/ng-update/version-0-15/index.spec.d.ts +1 -0
  121. package/schematics/ng-update/version-0-15/index.spec.js +51 -0
  122. package/schematics/ng-update/version-0-15/index.spec.js.map +1 -0
  123. package/search/i18n/en.translations.d.ts +6 -0
  124. package/search/i18n/fr.translations.d.ts +6 -0
  125. package/search/search-multi-class/components/multi-class-condition/multi-class-condition.component.d.ts +1 -0
  126. package/styles/components/_a-tooltip.scss +76 -0
  127. package/styles/components/_o-dashboard.scss +1 -1
  128. package/styles/components/_o-pry-card.scss +14 -0
  129. package/styles/components/_o-widget.scss +1 -0
  130. package/styles/layout/_o-workspace.scss +0 -1
  131. package/styles/main.scss +2 -0
  132. package/styles-theme/components-theme/_a-tooltip.theme.scss +12 -0
  133. package/styles-theme/main-theme.scss +1 -0
  134. package/toolbox/style/_o-toolbox.scss +6 -0
  135. package/tooltips/attribute/attribute-tooltip.component.d.ts +2 -1
  136. package/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.d.ts +2 -0
  137. package/widgets/widget-aggregated-chart/i18n/en.translations.d.ts +1 -0
  138. package/widgets/widget-aggregated-chart/i18n/fr.translations.d.ts +1 -0
  139. package/widgets/widget-graph/style/_o-widget-graph.scss +15 -1
  140. package/widgets/widget-map/component/widget-map-layer.service.d.ts +3 -1
  141. package/widgets/widget-map/component/widget-map.component.d.ts +4 -7
  142. package/widgets/widget-map/style/_o-widget-map.scss +14 -0
  143. package/esm2022/lib/core/components/overlay/tooltip.directive.mjs +0 -121
  144. package/lib/core/components/overlay/tooltip.directive.d.ts +0 -28
@@ -0,0 +1,76 @@
1
+ @use '../abstracts' as *;
2
+
3
+ /* Theme atom - tooltip */
4
+
5
+ .a-tooltip {
6
+ &[data-tooltip] {
7
+ position: relative;
8
+ cursor: pointer;
9
+
10
+ &:after {
11
+ line-height: 1;
12
+ pointer-events: none;
13
+ position: absolute;
14
+ box-sizing: border-box;
15
+ display: none;
16
+ opacity: 0;
17
+ }
18
+
19
+ &:after {
20
+ content: attr(data-tooltip);
21
+ text-align: center;
22
+ min-width: 3em;
23
+ max-width: 21em;
24
+ white-space: nowrap;
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ padding: toRem(5) toRem(7);
28
+ box-shadow: 2px 3px 10px 2px rgba(0, 0, 0, 0.2);
29
+ border-radius: toRem(5);
30
+ z-index: 1000;
31
+ }
32
+
33
+ &:hover:after {
34
+ display: block;
35
+ opacity: 1;
36
+ }
37
+
38
+ &:not([data-tooltip-position])::after,
39
+ &[data-tooltip-position="top"]::after {
40
+ bottom: calc(100% + 5px);
41
+ }
42
+
43
+ &:not([data-tooltip-position])::after,
44
+ &[data-tooltip-position="top"]::after {
45
+ left: 50%;
46
+ -webkit-transform: translate(-50%, -4px);
47
+ transform: translate(-50%, -4px);
48
+ }
49
+
50
+ &[data-tooltip-position="bottom"]::after {
51
+ top: calc(100%);
52
+ left: 50%;
53
+ -webkit-transform: translate(-50%, 8px);
54
+ transform: translate(-50%, 8px);
55
+ }
56
+
57
+ &[data-tooltip-position="left"]::after {
58
+ top: 50%;
59
+ right: calc(100% + 5px);
60
+ -webkit-transform: translate(-8px, -50%);
61
+ transform: translate(-8px, -50%);
62
+ }
63
+
64
+ &[data-tooltip-position="right"]::after {
65
+ top: 50%;
66
+ left: calc(100% + 5px);
67
+ -webkit-transform: translate(8px, -50%);
68
+ transform: translate(8px, -50%);
69
+ }
70
+ }
71
+
72
+ [data-tooltip=""]::after {
73
+ display: none;
74
+ }
75
+ }
76
+
@@ -11,7 +11,7 @@
11
11
  .o-dashboard-widget {
12
12
  position: relative;
13
13
  z-index: 1;
14
- overflow: hidden; // usefull for tile widget not having a double scroll
14
+ overflow: hidden; // useful for tile widget not having a double scroll
15
15
 
16
16
  &.-edited {
17
17
  overflow: hidden;
@@ -55,6 +55,20 @@
55
55
  white-space: nowrap;
56
56
  text-overflow: ellipsis;
57
57
  }
58
+
59
+ .m-tooltip {
60
+ position: absolute;
61
+ visibility: hidden;
62
+ opacity: 0;
63
+ transition: opacity 0.5s ease;
64
+ z-index: 2;
65
+ }
66
+
67
+ &:hover + m-tooltip {
68
+ visibility: visible;
69
+ transition: opacity 0.2s ease;
70
+ opacity: 1;
71
+ }
58
72
  }
59
73
 
60
74
  &__pin {
@@ -101,6 +101,7 @@
101
101
  }
102
102
 
103
103
  &__text {
104
+ margin-bottom: toRem(20);
104
105
  max-width: toRem(294);
105
106
  line-height: toRem(20);
106
107
  text-align: center;
@@ -29,7 +29,6 @@
29
29
  grid-area: tools;
30
30
  display: flex;
31
31
  align-items: center;
32
- overflow-y: hidden;
33
32
  padding: toRem(20);
34
33
  }
35
34
 
package/styles/main.scss CHANGED
@@ -16,6 +16,8 @@
16
16
  @use 'components/a-range-slider' as *;
17
17
  @use 'components/a-table' as *;
18
18
  @use 'components/a-toggle' as *;
19
+ @use 'components/a-tooltip' as *;
20
+
19
21
 
20
22
  /* Atoms lib */
21
23
  @use 'components/a-pry-select' as *;
@@ -0,0 +1,12 @@
1
+ @use '../../styles/abstracts' as *;
2
+ @use '../abstracts-theme/variables.theme' as *;
3
+
4
+ /* Theme atom - tooltip */
5
+
6
+ .a-tooltip {
7
+ &[data-tooltip]:after {
8
+ @include typography-level(themed($theme-map, 'typography', 'body'));
9
+ background-color: themed($theme-map, 'color', 'primary', 50);
10
+ color: themed($theme-map, 'color', 'primary', 800);
11
+ }
12
+ }
@@ -12,6 +12,7 @@
12
12
  @use 'components-theme/a-range-slider.theme' as *;
13
13
  @use 'components-theme/a-table.theme' as *;
14
14
  @use 'components-theme/a-toggle.theme' as *;
15
+ @use 'components-theme/a-tooltip.theme' as *;
15
16
  @use 'components-theme/a-expandable-value.theme' as *;
16
17
 
17
18
 
@@ -25,6 +25,12 @@
25
25
  font-size: toRem(20);
26
26
  padding-bottom: toRem(10);
27
27
  }
28
+
29
+ pry-toolbox-action-instanciator {
30
+ .a-tooltip[data-tooltip][data-tooltip-position=bottom]::after {
31
+ top: calc(100% - 10px);
32
+ }
33
+ }
28
34
  }
29
35
  }
30
36
  }
@@ -4,7 +4,8 @@ import * as i0 from "@angular/core";
4
4
  export declare class AttributeTooltipComponent extends BaseTooltipComponent {
5
5
  private translateIdPipe;
6
6
  constructor(translateIdPipe: TranslateIdPipe);
7
- getValue(attribute: string): Observable<string>;
7
+ getValue(attribute: string, limit?: number): Observable<string>;
8
+ _getValue(attribute: string): Observable<string | undefined | number>;
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AttributeTooltipComponent, never>;
9
10
  static ɵcmp: i0.ɵɵComponentDeclaration<AttributeTooltipComponent, "pry-attribute-tooltip", never, {}, {}, never, never, false, never>;
10
11
  }
@@ -62,6 +62,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
62
62
  noData$: Observable<boolean>;
63
63
  sortActive?: string | undefined;
64
64
  sortDirection?: string | undefined;
65
+ noAggregationData$: Observable<boolean>;
65
66
  constructor(store: Store<any>, translateService: PryI18nService, el: ElementRef, aggregationService: PryAggregationService);
66
67
  ngAfterViewInit(): void;
67
68
  translateToVegaType(type?: FieldType, name?: string): VegaType;
@@ -70,6 +71,7 @@ export declare class WidgetAggregatedChartComponent extends DataWidgetComponent
70
71
  } | {};
71
72
  emitManifest(): void;
72
73
  openSettings(): void;
74
+ openData(): void;
73
75
  private getTitle;
74
76
  changeChartTitle($event: string): void;
75
77
  changeType($event: GraphType): void;
@@ -66,6 +66,7 @@ export declare const enTranslations: {
66
66
  tooltip: string;
67
67
  stacked: string;
68
68
  noData: string;
69
+ aggNoResult: string;
69
70
  scheme: {
70
71
  accent: string;
71
72
  set2: string;
@@ -65,6 +65,7 @@ export declare const frTranslations: {
65
65
  tooltip: string;
66
66
  stacked: string;
67
67
  noData: string;
68
+ aggNoResult: string;
68
69
  scheme: {
69
70
  accent: string;
70
71
  set2: string;
@@ -1,4 +1,18 @@
1
1
  @use '../../../styles/abstracts/index' as *;
2
2
 
3
- /* Organism - widget map */
3
+ /* Organism - widget graph */
4
4
  /* Extends o-widget */
5
+
6
+ .a-tooltip {
7
+ &--move {
8
+ &[data-tooltip]:not([data-tooltip-position])::after {
9
+ left: calc(50% + 30px);
10
+ }
11
+ }
12
+
13
+ &--rectangle {
14
+ &[data-tooltip]:not([data-tooltip-position])::after {
15
+ left: calc(50% + 50px);
16
+ }
17
+ }
18
+ }
@@ -1,4 +1,4 @@
1
- import { Attribute, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetRelationLayerOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, ResultSet } from '@provoly/dashboard';
1
+ import { Attribute, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetRelationLayerOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryGeoAuthService, ResultSet } from '@provoly/dashboard';
2
2
  import { Map } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
4
  import { Tile } from 'ol/layer';
@@ -26,6 +26,8 @@ export declare class WidgetMapLayerService {
26
26
  selectedCircleStyle: Style;
27
27
  pointStyle: Style;
28
28
  selectedPointStyle: Style;
29
+ geoAuthService?: PryGeoAuthService;
30
+ withGeoAuth(geoAuthService: PryGeoAuthService): void;
29
31
  get implementationList(): string[];
30
32
  dontNeedLocation: string[];
31
33
  dontNeedIntensity: string[];
@@ -1,7 +1,6 @@
1
- import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
2
1
  import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
3
2
  import { Store } from '@ngrx/store';
4
- import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
3
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
5
4
  import { Map } from 'ol';
6
5
  import { Coordinate } from 'ol/coordinate';
7
6
  import { Geometry } from 'ol/geom';
@@ -21,12 +20,11 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
21
20
  private snackBar;
22
21
  translateService: PryI18nService;
23
22
  private tooltipFactoryService;
24
- private overlay;
25
- private viewContainerRef;
26
23
  private symbolService;
27
24
  private injector;
28
25
  private widgetMapLayerService;
29
26
  private pryAggregationService;
27
+ private geoAuthService;
30
28
  mapUrl$: Observable<string>;
31
29
  mapRef: ElementRef;
32
30
  popup: ElementRef;
@@ -43,7 +41,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
43
41
  layers$: Observable<BaseLayer[]>;
44
42
  map: Map;
45
43
  additionalLayers$: BehaviorSubject<VectorLayer<VectorSource<Geometry>>[]>;
46
- private overlayRef?;
47
44
  styles$: Observable<{
48
45
  identifier: string;
49
46
  label: string;
@@ -96,7 +93,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
96
93
  }[]>;
97
94
  datasourceFilters$: Observable<any>;
98
95
  usedClasses$: Observable<any>;
99
- constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef);
96
+ constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
100
97
  initInteractionManager(): InteractionManager;
101
98
  ngAfterViewInit(): void;
102
99
  initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
@@ -160,6 +157,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
160
157
  changeAutoLayer($event: any): void;
161
158
  get layerVisibleIdx(): number;
162
159
  ngOnDestroy(): void;
163
- static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, never>;
160
+ static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
164
161
  static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
165
162
  }
@@ -66,3 +66,17 @@
66
66
  }
67
67
  }
68
68
  }
69
+
70
+ .a-tooltip {
71
+ &--move {
72
+ &[data-tooltip]:not([data-tooltip-position])::after {
73
+ left: calc(50% + 20px);
74
+ }
75
+ }
76
+
77
+ &--click {
78
+ &[data-tooltip]:not([data-tooltip-position])::after {
79
+ left: calc(50% + 10px);
80
+ }
81
+ }
82
+ }
@@ -1,121 +0,0 @@
1
- import { TemplatePortal } from '@angular/cdk/portal';
2
- import { Directive, HostListener, Input } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/cdk/overlay";
5
- const POSITIONS = {
6
- before: {
7
- originX: 'start',
8
- originY: 'center',
9
- overlayX: 'end',
10
- overlayY: 'center'
11
- },
12
- after: {
13
- originX: 'end',
14
- originY: 'center',
15
- overlayX: 'start',
16
- overlayY: 'center'
17
- },
18
- top: {
19
- originX: 'center',
20
- originY: 'top',
21
- overlayX: 'center',
22
- overlayY: 'bottom'
23
- },
24
- bottom: {
25
- originX: 'center',
26
- originY: 'bottom',
27
- overlayX: 'center',
28
- overlayY: 'top'
29
- }
30
- };
31
- export class PryTooltipDirective {
32
- set pryTooltipContext(context) {
33
- Object.keys(context).forEach((key) => {
34
- this._context[key] = context[key];
35
- });
36
- }
37
- set pryTooltipPosition(val) {
38
- this._position = val;
39
- this.assignConnectedPositions();
40
- }
41
- constructor(overlay, viewContainerRef, elementRef) {
42
- this.overlay = overlay;
43
- this.viewContainerRef = viewContainerRef;
44
- this.elementRef = elementRef;
45
- this.styleReversed = false;
46
- this._context = {};
47
- this._position = 'top';
48
- this._connectedPositions = [POSITIONS['top'], POSITIONS['bottom'], POSITIONS['after'], POSITIONS['before']];
49
- this.pryTooltipShowDelay = 300;
50
- }
51
- ngOnInit() {
52
- const positionStrategy = this.overlay
53
- .position()
54
- .flexibleConnectedTo(this.elementRef)
55
- .withViewportMargin(5)
56
- .withPositions(this._connectedPositions);
57
- const panelClass = this.styleReversed
58
- ? ['pry-tooltip-container', 'pry-tooltip-reversed']
59
- : ['pry-tooltip-container'];
60
- this.overlayRef = this.overlay.create({
61
- positionStrategy,
62
- panelClass
63
- });
64
- }
65
- show() {
66
- this._timeout = setTimeout(() => {
67
- this.portalRef = new TemplatePortal(this.pryTooltip, this.viewContainerRef, this._context);
68
- this.overlayRef?.attach(this.portalRef);
69
- }, this.pryTooltipShowDelay);
70
- }
71
- hide() {
72
- clearTimeout(this._timeout);
73
- this.overlayRef?.detach();
74
- }
75
- hideOnClick() {
76
- this.hide();
77
- }
78
- assignConnectedPositions() {
79
- switch (this._position) {
80
- case 'before':
81
- this._connectedPositions = [POSITIONS['before'], POSITIONS['after'], POSITIONS['top'], POSITIONS['bottom']];
82
- break;
83
- case 'after':
84
- this._connectedPositions = [POSITIONS['after'], POSITIONS['before'], POSITIONS['top'], POSITIONS['bottom']];
85
- break;
86
- case 'bottom':
87
- this._connectedPositions = [POSITIONS['bottom'], POSITIONS['top'], POSITIONS['after'], POSITIONS['before']];
88
- break;
89
- case 'top':
90
- default:
91
- this._connectedPositions = [POSITIONS['top'], POSITIONS['bottom'], POSITIONS['after'], POSITIONS['before']];
92
- break;
93
- }
94
- }
95
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTooltipDirective, deps: [{ token: i1.Overlay }, { token: i0.ViewContainerRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
96
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.6", type: PryTooltipDirective, selector: "[pryTooltip]", inputs: { pryTooltip: "pryTooltip", styleReversed: "styleReversed", pryTooltipContext: "pryTooltipContext", pryTooltipPosition: "pryTooltipPosition", pryTooltipShowDelay: "pryTooltipShowDelay" }, host: { listeners: { "mouseenter": "show()", "mouseout": "hide()", "click": "hideOnClick()" } }, ngImport: i0 }); }
97
- }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.6", ngImport: i0, type: PryTooltipDirective, decorators: [{
99
- type: Directive,
100
- args: [{ selector: '[pryTooltip]' }]
101
- }], ctorParameters: function () { return [{ type: i1.Overlay }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }]; }, propDecorators: { pryTooltip: [{
102
- type: Input
103
- }], styleReversed: [{
104
- type: Input
105
- }], pryTooltipContext: [{
106
- type: Input
107
- }], pryTooltipPosition: [{
108
- type: Input
109
- }], pryTooltipShowDelay: [{
110
- type: Input
111
- }], show: [{
112
- type: HostListener,
113
- args: ['mouseenter']
114
- }], hide: [{
115
- type: HostListener,
116
- args: ['mouseout']
117
- }], hideOnClick: [{
118
- type: HostListener,
119
- args: ['click']
120
- }] } });
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9vbHRpcC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcm92b2x5L2Rhc2hib2FyZC9saWIvY29yZS9jb21wb25lbnRzL292ZXJsYXkvdG9vbHRpcC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3JELE9BQU8sRUFBRSxTQUFTLEVBQWMsWUFBWSxFQUFFLEtBQUssRUFBeUMsTUFBTSxlQUFlLENBQUM7OztBQUVsSCxNQUFNLFNBQVMsR0FBeUM7SUFDdEQsTUFBTSxFQUFFO1FBQ04sT0FBTyxFQUFFLE9BQU87UUFDaEIsT0FBTyxFQUFFLFFBQVE7UUFDakIsUUFBUSxFQUFFLEtBQUs7UUFDZixRQUFRLEVBQUUsUUFBUTtLQUNuQjtJQUNELEtBQUssRUFBRTtRQUNMLE9BQU8sRUFBRSxLQUFLO1FBQ2QsT0FBTyxFQUFFLFFBQVE7UUFDakIsUUFBUSxFQUFFLE9BQU87UUFDakIsUUFBUSxFQUFFLFFBQVE7S0FDbkI7SUFDRCxHQUFHL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ZWZvcmUnXSwgUE9TSVRJT05TWydhZnRlciddLCBQT1NJVElPTlNbJ3RvcCddLCBQT1NJVElPTlNbJ2JvdHRvbSddXTtcbiAgICAgICAgYnJlYWs7XG4gICAgICBjYXNlICdhZnRlcic6XG4gICAgICAgIHRoaXMuX2Nvbm5lY3RlZFBvc2l0aW9ucyA9IFtQT1NJVElPTlNbJ2FmdGVyJ10sIFBPU0lUSU9OU1snYmVmb3JlJ10sIFBPU0lUSU9OU1sndG9wJ10sIFBPU0lUSU9OU1snYm90dG9tJ11dO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ2JvdHRvbSc6XG4gICAgICAgIHRoaXMuX2Nvbm5lY3RlZFBvc2l0aW9ucyA9IFtQT1NJVElPTlNbJ2JvdHRvbSddLCBQT1NJVElPTlNbJ3RvcCddLCBQT1NJVElPTlNbJ2FmdGVyJ10sIFBPU0lUSU9OU1snYmVmb3JlJ11dO1xuICAgICAgICBicmVhaztcbiAgICAgIGNhc2UgJ3RvcCc6XG4gICAgICBkZWZhdWx0OlxuICAgICAgICB0aGlzLl9jb25uZWN0ZWRQb3NpdGlvbnMgPSBbUE9TSVRJT05TWyd0b3AnXSwgUE9TSVRJT05TWydib3R0b20nXSwgUE9TSVRJT05TWydhZnRlciddLCBQT1NJVElPTlNbJ2JlZm9yZSddXTtcbiAgICAgICAgYnJlYWs7XG4gICAgfVxuICB9XG59XG4iXX0=
@@ -1,28 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { TemplatePortal } from '@angular/cdk/portal';
3
- import { ElementRef, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
4
- import * as i0 from "@angular/core";
5
- export declare class PryTooltipDirective implements OnInit {
6
- private overlay;
7
- private viewContainerRef;
8
- private elementRef;
9
- pryTooltip: TemplateRef<any>;
10
- private overlayRef?;
11
- styleReversed: boolean;
12
- private _context;
13
- set pryTooltipContext(context: any);
14
- portalRef?: TemplatePortal<any>;
15
- set pryTooltipPosition(val: 'before' | 'after' | 'top' | 'bottom');
16
- private _position;
17
- private _connectedPositions;
18
- pryTooltipShowDelay: number;
19
- _timeout?: any;
20
- constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elementRef: ElementRef);
21
- ngOnInit(): void;
22
- show(): void;
23
- hide(): void;
24
- hideOnClick(): void;
25
- private assignConnectedPositions;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<PryTooltipDirective, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<PryTooltipDirective, "[pryTooltip]", never, { "pryTooltip": { "alias": "pryTooltip"; "required": false; }; "styleReversed": { "alias": "styleReversed"; "required": false; }; "pryTooltipContext": { "alias": "pryTooltipContext"; "required": false; }; "pryTooltipPosition": { "alias": "pryTooltipPosition"; "required": false; }; "pryTooltipShowDelay": { "alias": "pryTooltipShowDelay"; "required": false; }; }, {}, never, never, false, never>;
28
- }