@provoly/dashboard 0.15.7 → 0.15.9
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/esm2022/admin/components/admin-classes/admin-classes-customize/tooltip/admin-classes-customize-tooltip.component.mjs +7 -6
- package/esm2022/admin/components/admin-classes/admin-classes-form/admin-classes-form.component.mjs +5 -4
- package/esm2022/admin/components/admin-classes/admin-classes-view/admin-attributes-form/admin-attributes-form.component.mjs +3 -3
- package/esm2022/admin/components/admin-dataset/shared/admin-form-dataset/admin-form-dataset.component.mjs +2 -2
- package/esm2022/admin/i18n/fr.translations.mjs +2 -2
- package/esm2022/dataset/i18n/fr.translations.mjs +2 -2
- package/esm2022/lib/core/auth/geoAuth.service.mjs +8 -15
- package/esm2022/lib/core/model/widget-map-manifest.interface.mjs +1 -1
- package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +7 -4
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
- package/esm2022/lib/dashboard/store/manifest.service.mjs +1 -1
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +2 -2
- package/esm2022/presentation/components/presentation.component.mjs +10 -6
- package/esm2022/presentation/i18n/en.translations.mjs +5 -3
- package/esm2022/presentation/i18n/fr.translations.mjs +8 -6
- package/esm2022/presentation/style/css.component.mjs +2 -2
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
- package/esm2022/restitution/i18n/fr.translations.mjs +2 -2
- package/esm2022/restitution/style/css.component.mjs +2 -2
- package/esm2022/tooltips/attribute/attribute-tooltip.component.mjs +19 -10
- package/esm2022/widgets/widget-aggregated-chart/component/widget-aggregated-chart.component.mjs +1 -1
- package/esm2022/widgets/widget-chart/component/widget-chart.component.mjs +1 -1
- package/esm2022/widgets/widget-graph/component/widget-graph.component.mjs +1 -1
- package/esm2022/widgets/widget-iframe/component/widget-iframe.component.mjs +1 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +19 -12
- package/esm2022/widgets/widget-map/utils/widget-map.utils.mjs +36 -1
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +8 -6
- package/esm2022/widgets/widget-tile/component/widget-tile.component.mjs +1 -1
- package/esm2022/widgets/widget-vega/component/widget-vega.component.mjs +1 -1
- package/fesm2022/provoly-dashboard-admin.mjs +14 -12
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +23 -15
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +5 -5
- package/fesm2022/provoly-dashboard-restitution.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs +18 -9
- package/fesm2022/provoly-dashboard-tooltips-attribute.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-aggregated-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-chart.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-graph.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-iframe.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +53 -11
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +7 -5
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-tile.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-vega.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +13 -18
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/auth/geoAuth.service.d.ts +3 -1
- package/lib/core/model/widget-map-manifest.interface.d.ts +1 -0
- package/lib/dashboard/components/widgets/settings/settings.component.d.ts +2 -1
- package/lib/dashboard/store/dashboard.actions.d.ts +2 -2
- package/lib/dashboard/store/manifest.service.d.ts +1 -1
- package/package.json +1 -1
- package/presentation/components/presentation.component.d.ts +3 -2
- package/presentation/i18n/en.translations.d.ts +2 -0
- package/presentation/i18n/fr.translations.d.ts +2 -0
- package/presentation/style/_o-pry-presentation.scss +7 -2
- package/tooltips/attribute/attribute-tooltip.component.d.ts +5 -1
- package/widgets/widget-map/component/widget-map.component.d.ts +3 -4
- package/widgets/widget-map/utils/widget-map.utils.d.ts +1 -0
- package/widgets/widget-table/component/widget-table.component.d.ts +1 -0
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare abstract class PryGeoAuthService {
|
|
4
5
|
abstract customLoader(tile: any, src: string): void;
|
|
5
6
|
}
|
|
6
7
|
export declare const PRY_GEOAUTH_TOKEN: InjectionToken<PryGeoAuthService>;
|
|
7
8
|
export declare class PryDefaultGeoAuthService extends PryGeoAuthService {
|
|
8
|
-
|
|
9
|
+
private httpClient;
|
|
10
|
+
constructor(httpClient: HttpClient);
|
|
9
11
|
customLoader(tile: any, src: string): void;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<PryDefaultGeoAuthService, never>;
|
|
11
13
|
static ɵprov: i0.ɵɵInjectableDeclaration<PryDefaultGeoAuthService>;
|
|
@@ -14,6 +14,7 @@ export declare class SettingsComponent extends SubscriptionnerDirective implemen
|
|
|
14
14
|
manifest$?: Observable<WidgetManifest>;
|
|
15
15
|
manifest?: WidgetManifest;
|
|
16
16
|
private openSub?;
|
|
17
|
+
triggerClick: EventEmitter<void>;
|
|
17
18
|
set widgetIndex(widgetIndex: number);
|
|
18
19
|
isDisable?: boolean;
|
|
19
20
|
headerPresent: boolean | null | {
|
|
@@ -39,5 +40,5 @@ export declare class SettingsComponent extends SubscriptionnerDirective implemen
|
|
|
39
40
|
emitTitle($event: Event): void;
|
|
40
41
|
ngOnDestroy(): void;
|
|
41
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pry-settings", never, { "widgetIndex": { "alias": "widgetIndex"; "required": false; }; "isDisable": { "alias": "isDisable"; "required": false; }; "headerPresent": { "alias": "headerPresent"; "required": false; }; "open$": { "alias": "open$"; "required": false; }; "header": { "alias": "header"; "required": false; }; }, { "saveTriggered": "saveTriggered"; "changeTitle": "changeTitle"; }, never, ["*"], false, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingsComponent, "pry-settings", never, { "widgetIndex": { "alias": "widgetIndex"; "required": false; }; "isDisable": { "alias": "isDisable"; "required": false; }; "headerPresent": { "alias": "headerPresent"; "required": false; }; "open$": { "alias": "open$"; "required": false; }; "header": { "alias": "header"; "required": false; }; }, { "triggerClick": "triggerClick"; "saveTriggered": "saveTriggered"; "changeTitle": "changeTitle"; }, never, ["*"], false, never>;
|
|
43
44
|
}
|
|
@@ -259,7 +259,7 @@ export declare const DashboardActions: {
|
|
|
259
259
|
visibility?: PryVisibility | undefined;
|
|
260
260
|
cover?: boolean | undefined;
|
|
261
261
|
metadata?: {
|
|
262
|
-
|
|
262
|
+
metadataDefId: string;
|
|
263
263
|
value: string;
|
|
264
264
|
}[] | undefined;
|
|
265
265
|
}) => {
|
|
@@ -271,7 +271,7 @@ export declare const DashboardActions: {
|
|
|
271
271
|
visibility?: PryVisibility | undefined;
|
|
272
272
|
cover?: boolean | undefined;
|
|
273
273
|
metadata?: {
|
|
274
|
-
|
|
274
|
+
metadataDefId: string;
|
|
275
275
|
value: string;
|
|
276
276
|
}[] | undefined;
|
|
277
277
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
|
|
@@ -15,7 +15,7 @@ export declare class ManifestService {
|
|
|
15
15
|
list(): Observable<ManifestDescription[]>;
|
|
16
16
|
get(id: string): Observable<GlobalManifest>;
|
|
17
17
|
save(name: string, manifest: GlobalManifest, visibility: PryVisibility, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
|
|
18
|
-
|
|
18
|
+
metadataDefId: string;
|
|
19
19
|
value: string;
|
|
20
20
|
}[]): Observable<{
|
|
21
21
|
id: string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { Overlay, OverlayRef } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
4
|
import { Store } from '@ngrx/store';
|
|
5
|
-
import { DashboardManifest, ManifestDescription, PryVisibility, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
|
|
5
|
+
import { DashboardManifest, ManifestDescription, PryTitleService, PryVisibility, PryVisibilityType, SubscriptionnerDirective, ViewMode } from '@provoly/dashboard';
|
|
6
6
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
@@ -11,6 +11,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
|
11
11
|
protected viewContainerRef: ViewContainerRef;
|
|
12
12
|
protected router: Router;
|
|
13
13
|
protected ngZone: NgZone;
|
|
14
|
+
protected titleService: PryTitleService;
|
|
14
15
|
manifests$: Observable<ManifestDescription[]>;
|
|
15
16
|
selectedPresentation$: BehaviorSubject<ManifestDescription | null>;
|
|
16
17
|
presentation?: ManifestDescription;
|
|
@@ -34,7 +35,7 @@ export declare class PryPresentationComponent extends SubscriptionnerDirective {
|
|
|
34
35
|
ViewMode: typeof ViewMode;
|
|
35
36
|
search$: BehaviorSubject<string>;
|
|
36
37
|
filteredPresentations$: Observable<ManifestDescription[]>;
|
|
37
|
-
constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, ngZone: NgZone);
|
|
38
|
+
constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, router: Router, ngZone: NgZone, titleService: PryTitleService);
|
|
38
39
|
closeRestitution(): void;
|
|
39
40
|
fetch(presentation: ManifestDescription): void;
|
|
40
41
|
creation(): void;
|
|
@@ -19,6 +19,7 @@ export declare const enTranslations: {
|
|
|
19
19
|
categoryInput: string;
|
|
20
20
|
grid: string;
|
|
21
21
|
cover: string;
|
|
22
|
+
theme: string;
|
|
22
23
|
};
|
|
23
24
|
share: string;
|
|
24
25
|
view: string;
|
|
@@ -34,6 +35,7 @@ export declare const enTranslations: {
|
|
|
34
35
|
delete: string;
|
|
35
36
|
backToCatalog: string;
|
|
36
37
|
search: string;
|
|
38
|
+
title: string;
|
|
37
39
|
};
|
|
38
40
|
};
|
|
39
41
|
};
|
|
@@ -20,6 +20,7 @@ export declare const frTranslations: {
|
|
|
20
20
|
categoryInput: string;
|
|
21
21
|
grid: string;
|
|
22
22
|
cover: string;
|
|
23
|
+
theme: string;
|
|
23
24
|
};
|
|
24
25
|
share: string;
|
|
25
26
|
view: string;
|
|
@@ -35,6 +36,7 @@ export declare const frTranslations: {
|
|
|
35
36
|
delete: string;
|
|
36
37
|
backToCatalog: string;
|
|
37
38
|
search: string;
|
|
39
|
+
title: string;
|
|
38
40
|
};
|
|
39
41
|
};
|
|
40
42
|
};
|
|
@@ -48,14 +48,18 @@
|
|
|
48
48
|
align-items: stretch;
|
|
49
49
|
|
|
50
50
|
.a-tooltip {
|
|
51
|
+
align-items: center;
|
|
52
|
+
width: 100%;
|
|
51
53
|
height: 100%;
|
|
52
54
|
}
|
|
53
|
-
|
|
54
55
|
&__image {
|
|
55
56
|
width: auto;
|
|
56
|
-
height: 90%;
|
|
57
57
|
cursor: pointer;
|
|
58
58
|
overflow: hidden;
|
|
59
|
+
height: toRem(110);
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
59
63
|
|
|
60
64
|
.is-full-width {
|
|
61
65
|
width: 100%;
|
|
@@ -64,6 +68,7 @@
|
|
|
64
68
|
}
|
|
65
69
|
}
|
|
66
70
|
|
|
71
|
+
|
|
67
72
|
&__header {
|
|
68
73
|
position: relative;
|
|
69
74
|
display: flex;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { BaseTooltipComponent, TranslateIdPipe } from '@provoly/dashboard';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
+
import { Store } from '@ngrx/store';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class AttributeTooltipComponent extends BaseTooltipComponent {
|
|
5
6
|
private translateIdPipe;
|
|
6
|
-
|
|
7
|
+
private store;
|
|
8
|
+
private classes$;
|
|
9
|
+
constructor(translateIdPipe: TranslateIdPipe, store: Store<any>);
|
|
10
|
+
getAttributeName(attribute: string): Observable<string>;
|
|
7
11
|
getValue(attribute: string, limit?: number): Observable<string>;
|
|
8
12
|
_getValue(attribute: string): Observable<string | undefined | number>;
|
|
9
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AttributeTooltipComponent, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ComponentRef, ElementRef, Injector, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
|
-
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService,
|
|
3
|
+
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
|
|
4
4
|
import { Map } from 'ol';
|
|
5
5
|
import { Coordinate } from 'ol/coordinate';
|
|
6
6
|
import { Geometry } from 'ol/geom';
|
|
@@ -17,7 +17,6 @@ import { WidgetMapLayerService } from './widget-map-layer.service';
|
|
|
17
17
|
import * as i0 from "@angular/core";
|
|
18
18
|
export declare const TOOLTIP_PADDING = 15;
|
|
19
19
|
export declare class WidgetMapComponent extends DataWidgetComponent implements AfterViewInit, OnDestroy {
|
|
20
|
-
private snackBar;
|
|
21
20
|
translateService: PryI18nService;
|
|
22
21
|
private tooltipFactoryService;
|
|
23
22
|
private symbolService;
|
|
@@ -93,7 +92,7 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
93
92
|
}[]>;
|
|
94
93
|
datasourceFilters$: Observable<any>;
|
|
95
94
|
usedClasses$: Observable<any>;
|
|
96
|
-
constructor(store: Store<any>,
|
|
95
|
+
constructor(store: Store<any>, translateService: PryI18nService, tooltipFactoryService: TooltipFactoryService, symbolService: SymbolService, injector: Injector, widgetMapLayerService: WidgetMapLayerService, pryAggregationService: PryAggregationService, el: ElementRef, geoAuthService: PryGeoAuthService);
|
|
97
96
|
initInteractionManager(): InteractionManager;
|
|
98
97
|
ngAfterViewInit(): void;
|
|
99
98
|
initResultSet$(): Observable<import("@provoly/dashboard").ResultSet>;
|
|
@@ -159,6 +158,6 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
159
158
|
changeAutoLayer($event: any): void;
|
|
160
159
|
get layerVisibleIdx(): number;
|
|
161
160
|
ngOnDestroy(): void;
|
|
162
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null,
|
|
161
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapComponent, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
163
162
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetMapComponent, "pry-widget-map", never, {}, {}, never, never, false, never>;
|
|
164
163
|
}
|
|
@@ -16,6 +16,7 @@ export declare const getLinkFeature: (relation: Relation, featureSource: Feature
|
|
|
16
16
|
export declare const getMapAsPng: (map: Map) => Promise<string>;
|
|
17
17
|
export declare const exportMapAsImage: (map: Map, filename: string) => void;
|
|
18
18
|
export declare const geometryForLayer: (layer: MapWidgetLayerOptions) => string;
|
|
19
|
+
export declare const getLayerOrder: (layer: MapWidgetLayerOptions, index: number, array: MapWidgetLayerOptions[]) => number;
|
|
19
20
|
export declare const DEFAULT_HEATMAP_RADIUS = 25;
|
|
20
21
|
export declare const DEFAULT_RADIUS_INTENSITY_FACTOR = 10000;
|
|
21
22
|
export declare const DEFAULT_ZOOM_MIN = 3;
|
|
@@ -38,6 +38,7 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
38
38
|
private _refresh$;
|
|
39
39
|
actualPage$: BehaviorSubject<number>;
|
|
40
40
|
pagination$: Observable<Pagination>;
|
|
41
|
+
isOpen: boolean;
|
|
41
42
|
constructor(store: Store<any>, el: ElementRef, cdr: ChangeDetectorRef);
|
|
42
43
|
refresh(): void;
|
|
43
44
|
emitManifest(): void;
|