@provoly/dashboard 0.14.4 → 0.14.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 (91) hide show
  1. package/admin/admin.module.d.ts +2 -1
  2. package/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -2
  3. package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +7 -3
  4. package/admin/i18n/en.translations.d.ts +15 -0
  5. package/admin/i18n/fr.translations.d.ts +15 -0
  6. package/esm2022/admin/admin.module.mjs +8 -4
  7. package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +3 -3
  8. package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +19 -14
  9. package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +3 -5
  10. package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +23 -12
  11. package/esm2022/admin/i18n/en.translations.mjs +17 -2
  12. package/esm2022/admin/i18n/fr.translations.mjs +19 -4
  13. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +4 -3
  14. package/esm2022/import/components/import.component.mjs +12 -5
  15. package/esm2022/import/i18n/en.translations.mjs +3 -2
  16. package/esm2022/import/i18n/fr.translations.mjs +3 -2
  17. package/esm2022/import/import.module.mjs +7 -4
  18. package/esm2022/import/store/import.actions.mjs +1 -1
  19. package/esm2022/import/store/import.effects.mjs +2 -2
  20. package/esm2022/import/store/import.service.mjs +3 -2
  21. package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +9 -9
  22. package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
  23. package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
  24. package/esm2022/lib/core/model/admin-api.model.mjs +66 -14
  25. package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
  26. package/esm2022/lib/core/store/field/field.interface.mjs +10 -1
  27. package/esm2022/lib/core/symbol/symbol.service.mjs +7 -3
  28. package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +17 -1
  29. package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +2 -1
  30. package/esm2022/lib/dashboard/action-bus/service/bus.service.mjs +1 -1
  31. package/esm2022/lib/dashboard/components/dashboard.component.mjs +5 -5
  32. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +9 -3
  33. package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +25 -13
  34. package/esm2022/pipeline/pipeline.module.mjs +8 -4
  35. package/esm2022/supervision/store/supervision.reducer.mjs +2 -7
  36. package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +34 -3
  37. package/esm2022/widgets/widget-map/component/widget-map.component.mjs +72 -16
  38. package/esm2022/widgets/widget-map/i18n/en.translations.mjs +3 -2
  39. package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +3 -2
  40. package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +14 -8
  41. package/fesm2022/provoly-dashboard-admin.mjs +79 -31
  42. package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
  43. package/fesm2022/provoly-dashboard-dataset.mjs +3 -2
  44. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  45. package/fesm2022/provoly-dashboard-import.mjs +23 -10
  46. package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
  47. package/fesm2022/provoly-dashboard-pipeline.mjs +27 -11
  48. package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
  49. package/fesm2022/provoly-dashboard-supervision.mjs +1 -6
  50. package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
  51. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +540 -446
  52. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  53. package/fesm2022/provoly-dashboard.mjs +174 -85
  54. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  55. package/import/components/import.component.d.ts +1 -0
  56. package/import/i18n/en.translations.d.ts +1 -0
  57. package/import/i18n/fr.translations.d.ts +1 -0
  58. package/import/import.module.d.ts +2 -1
  59. package/import/store/import.actions.d.ts +2 -0
  60. package/import/store/import.service.d.ts +1 -1
  61. package/lib/core/components/translate-id/translate-id.pipe.d.ts +1 -1
  62. package/lib/core/i18n/en.translations.d.ts +1 -0
  63. package/lib/core/i18n/fr.translations.d.ts +1 -0
  64. package/lib/core/model/admin-api.model.d.ts +1 -0
  65. package/lib/core/model/widget-map-manifest.interface.d.ts +11 -1
  66. package/lib/core/store/field/field.interface.d.ts +1 -0
  67. package/lib/core/symbol/symbol.service.d.ts +1 -1
  68. package/lib/dashboard/components/dashboard.component.d.ts +1 -1
  69. package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
  70. package/package.json +42 -42
  71. package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -0
  72. package/pipeline/pipeline.module.d.ts +2 -1
  73. package/schematics/migration.json +5 -0
  74. package/schematics/ng-update/utils/replaceStrings.function.d.ts +7 -0
  75. package/schematics/ng-update/utils/replaceStrings.function.js +15 -0
  76. package/schematics/ng-update/utils/replaceStrings.function.js.map +1 -0
  77. package/schematics/ng-update/version-0-13/index.spec.js +11 -0
  78. package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
  79. package/schematics/ng-update/version-0-14/index.d.ts +2 -0
  80. package/schematics/ng-update/version-0-14/index.js +49 -0
  81. package/schematics/ng-update/version-0-14/index.js.map +1 -0
  82. package/schematics/ng-update/version-0-14/index.spec.d.ts +1 -0
  83. package/schematics/ng-update/version-0-14/index.spec.js +52 -0
  84. package/schematics/ng-update/version-0-14/index.spec.js.map +1 -0
  85. package/styles/components/_m-context-menu.scss +4 -0
  86. package/styles/components/_o-pry-admin-classes-customize.scss +48 -0
  87. package/widgets/widget-map/component/widget-map-layer.service.d.ts +6 -1
  88. package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
  89. package/widgets/widget-map/i18n/en.translations.d.ts +1 -0
  90. package/widgets/widget-map/i18n/fr.translations.d.ts +1 -0
  91. package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -5
@@ -1,4 +1,4 @@
1
- import { Attribute, 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, ResultSet } from '@provoly/dashboard';
2
2
  import { Map } from 'ol';
3
3
  import { Geometry } from 'ol/geom';
4
4
  import { Tile } from 'ol/layer';
@@ -30,6 +30,10 @@ export declare class WidgetMapLayerService {
30
30
  dontNeedLocation: string[];
31
31
  dontNeedIntensity: string[];
32
32
  layersImplementation: {
33
+ auto: (layer: MapAutoLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
34
+ min: number;
35
+ max: number;
36
+ }, itemStyles: ItemStyles, map: Map) => BaseLayer;
33
37
  heatmap: (layer: MapWidgetHeatMapLayerOptions, attributesForClass: AttributesForClass, layerClassesId: string[], resultSet: ResultSet, range: {
34
38
  min: number;
35
39
  max: number;
@@ -93,6 +97,7 @@ export declare class WidgetMapLayerService {
93
97
  };
94
98
  private layerFromGeoJsonGeometry;
95
99
  private makeClustered;
100
+ static translateFieldTypeToLayerType(subType: string): "marker" | "line" | "polygon" | "multi-line" | "multi-polygon";
96
101
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapLayerService, never>;
97
102
  static ɵprov: i0.ɵɵInjectableDeclaration<WidgetMapLayerService>;
98
103
  }
@@ -1,7 +1,7 @@
1
1
  import { Overlay as cdkOverlay } from '@angular/cdk/overlay';
2
2
  import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
- import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
4
+ import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
5
5
  import { Map } from 'ol';
6
6
  import { Geometry } from 'ol/geom';
7
7
  import BaseLayer from 'ol/layer/Base';
@@ -86,6 +86,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
86
86
  STYLE_FROM_URL: string;
87
87
  NO_STYLE: string;
88
88
  wmsCapabilities$: Observable<(GetCapabilitiesResponse | null)[]>;
89
+ autoDatasetLayers$: Observable<MapAutoLayerOptions[]>;
89
90
  constructor(store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, overlay: cdkOverlay, viewContainerRef: ViewContainerRef, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, el: ElementRef, wmsService: WmsService);
90
91
  initInteractionManager(): InteractionManager;
91
92
  ngAfterViewInit(): void;
@@ -112,7 +113,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
112
113
  layerHasIntensity(layer: MapWidgetLayerOptions): MapWidgetHeatMapLayerOptions | MapWidgetBubbleLayerOptions;
113
114
  changeIntensityAttributes($event: any, layer: MapWidgetLayerOptions): void;
114
115
  changeClasses($event: string[], layer: MapWidgetLayerOptions): void;
115
- deleteLayer(i: number): void;
116
+ deleteLayer(i: number, layer: MapWidgetLayerOptions): void;
116
117
  invertLayers(idx: number, idxWith: number): void;
117
118
  changeUrl($event: Event, layer: MapWMSLayerLayerOptions | MapFeatureLayerOptions | MapVectorTileLayerOptions | MapRasterTileLayerOptions | MapWMTSLayerLayerOptions | MapGeoServerLayerOptions): void;
118
119
  changeAttribution($event: Event, layer: BaseWidgetMapLayerOptions): void;
@@ -140,6 +141,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
140
141
  get mapLayers(): BaseLayer[];
141
142
  changeVisibility(layer: BaseLayer): void;
142
143
  changeSingleLayer($event: any): void;
144
+ changeAutoLayer($event: any): void;
143
145
  get layerVisibleIdx(): number;
144
146
  ngOnDestroy(): void;
145
147
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, never>;
@@ -74,6 +74,7 @@ export declare const enTranslations: {
74
74
  selectLayers: string;
75
75
  legends: string;
76
76
  singleLayer: string;
77
+ autoLayer: string;
77
78
  };
78
79
  };
79
80
  };
@@ -74,6 +74,7 @@ export declare const frTranslations: {
74
74
  selectLayers: string;
75
75
  legends: string;
76
76
  singleLayer: string;
77
+ autoLayer: string;
77
78
  };
78
79
  };
79
80
  };
@@ -1,4 +1,4 @@
1
- import { Attribute, Class, Field, FieldType, Item, MapWidgetLayerOptions, Relation, ResultSet } from '@provoly/dashboard';
1
+ import { Attribute, Class, Field, Item, MapWidgetLayerOptions, Relation, ResultSet } from '@provoly/dashboard';
2
2
  import { Feature, Map } from 'ol';
3
3
  import { Circle, LineString, Point } from 'ol/geom';
4
4
  import { Style } from 'ol/style';
@@ -15,13 +15,10 @@ export declare const getCircleFeatureFromItem: (item: Item, locationAttribute: A
15
15
  export declare const getLinkFeature: (relation: Relation, featureSource: Feature<Point>, featureDestination: Feature<Point>) => Feature<LineString>;
16
16
  export declare const getMapAsPng: (map: Map) => Promise<string>;
17
17
  export declare const exportMapAsImage: (map: Map, filename: string) => void;
18
- export declare const geometryForLayer: (layer: MapWidgetLayerOptions) => FieldType.POINT | FieldType.LINE | FieldType.MULTILINE | FieldType.POLYGON | FieldType.MULTIPOLYGON;
18
+ export declare const geometryForLayer: (layer: MapWidgetLayerOptions) => string;
19
19
  export declare const DEFAULT_HEATMAP_RADIUS = 25;
20
20
  export declare const DEFAULT_RADIUS_INTENSITY_FACTOR = 10000;
21
21
  export declare const DEFAULT_ZOOM_MIN = 3;
22
22
  export declare const DEFAULT_ZOOM_START = 10;
23
23
  export declare const DEFAULT_ZOOM_MAX = 18;
24
24
  export declare const DEFAULT_MAP_CENTER: number[];
25
- export declare const EMPTY_MAP_STYLE: {
26
- layers: never[];
27
- };