@provoly/dashboard 0.14.5 → 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.
- package/admin/admin.module.d.ts +2 -1
- package/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.d.ts +5 -2
- package/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.d.ts +7 -3
- package/admin/i18n/en.translations.d.ts +15 -0
- package/admin/i18n/fr.translations.d.ts +15 -0
- package/esm2022/admin/admin.module.mjs +8 -4
- package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +19 -14
- package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +3 -5
- package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +23 -12
- package/esm2022/admin/i18n/en.translations.mjs +17 -2
- package/esm2022/admin/i18n/fr.translations.mjs +19 -4
- package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +4 -3
- package/esm2022/import/components/import.component.mjs +12 -5
- package/esm2022/import/i18n/en.translations.mjs +3 -2
- package/esm2022/import/i18n/fr.translations.mjs +3 -2
- package/esm2022/import/import.module.mjs +7 -4
- package/esm2022/import/store/import.actions.mjs +1 -1
- package/esm2022/import/store/import.effects.mjs +2 -2
- package/esm2022/import/store/import.service.mjs +3 -2
- package/esm2022/lib/core/components/translate-id/translate-id.pipe.mjs +9 -9
- package/esm2022/lib/core/i18n/en.translations.mjs +2 -1
- package/esm2022/lib/core/i18n/fr.translations.mjs +2 -1
- package/esm2022/lib/core/model/admin-api.model.mjs +66 -14
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/core/store/field/field.interface.mjs +10 -1
- package/esm2022/lib/core/symbol/symbol.service.mjs +7 -3
- package/esm2022/lib/core/toolbox/toolbox-manifest.service.mjs +17 -1
- package/esm2022/lib/core/toolbox/toolbox-menu.service.mjs +2 -1
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +5 -5
- package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +9 -3
- package/esm2022/pipeline/components/pipeline-list/pipeline-list.component.mjs +25 -13
- package/esm2022/pipeline/pipeline.module.mjs +8 -4
- package/esm2022/supervision/store/supervision.reducer.mjs +2 -7
- package/esm2022/widgets/widget-map/component/widget-map-layer.service.mjs +34 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +68 -10
- package/esm2022/widgets/widget-map/i18n/en.translations.mjs +3 -2
- package/esm2022/widgets/widget-map/i18n/fr.translations.mjs +3 -2
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +14 -8
- package/fesm2022/provoly-dashboard-admin.mjs +79 -31
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +3 -2
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-import.mjs +23 -10
- package/fesm2022/provoly-dashboard-import.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-pipeline.mjs +27 -11
- package/fesm2022/provoly-dashboard-pipeline.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-supervision.mjs +1 -6
- package/fesm2022/provoly-dashboard-supervision.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +536 -440
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +174 -85
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/import/components/import.component.d.ts +1 -0
- package/import/i18n/en.translations.d.ts +1 -0
- package/import/i18n/fr.translations.d.ts +1 -0
- package/import/import.module.d.ts +2 -1
- package/import/store/import.actions.d.ts +2 -0
- package/import/store/import.service.d.ts +1 -1
- package/lib/core/components/translate-id/translate-id.pipe.d.ts +1 -1
- package/lib/core/i18n/en.translations.d.ts +1 -0
- package/lib/core/i18n/fr.translations.d.ts +1 -0
- package/lib/core/model/admin-api.model.d.ts +1 -0
- package/lib/core/model/widget-map-manifest.interface.d.ts +11 -1
- package/lib/core/store/field/field.interface.d.ts +1 -0
- package/lib/core/symbol/symbol.service.d.ts +1 -1
- package/lib/dashboard/components/dashboard.component.d.ts +1 -1
- package/lib/dashboard/components/widgets/header/widget-header.component.d.ts +3 -1
- package/package.json +36 -36
- package/pipeline/components/pipeline-list/pipeline-list.component.d.ts +1 -0
- package/pipeline/pipeline.module.d.ts +2 -1
- package/schematics/migration.json +5 -0
- package/schematics/ng-update/utils/replaceStrings.function.d.ts +7 -0
- package/schematics/ng-update/utils/replaceStrings.function.js +15 -0
- package/schematics/ng-update/utils/replaceStrings.function.js.map +1 -0
- package/schematics/ng-update/version-0-13/index.spec.js +11 -0
- package/schematics/ng-update/version-0-13/index.spec.js.map +1 -1
- package/schematics/ng-update/version-0-14/index.d.ts +2 -0
- package/schematics/ng-update/version-0-14/index.js +49 -0
- package/schematics/ng-update/version-0-14/index.js.map +1 -0
- package/schematics/ng-update/version-0-14/index.spec.d.ts +1 -0
- package/schematics/ng-update/version-0-14/index.spec.js +52 -0
- package/schematics/ng-update/version-0-14/index.spec.js.map +1 -0
- package/styles/components/_m-context-menu.scss +4 -0
- package/styles/components/_o-pry-admin-classes-customize.scss +48 -0
- package/widgets/widget-map/component/widget-map-layer.service.d.ts +6 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
- package/widgets/widget-map/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-map/i18n/fr.translations.d.ts +1 -0
- package/widgets/widget-map/utils/widget-map.utils.d.ts +2 -5
|
@@ -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>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Attribute, Class, Field,
|
|
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) =>
|
|
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
|
-
};
|