@provoly/dashboard 0.15.6 → 0.15.8
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/i18n/en.translations.d.ts +1 -0
- package/admin/i18n/fr.translations.d.ts +1 -0
- package/assets/svgs/arrow-left-s-fill.svg +1 -0
- package/assets/svgs/arrow-right-s-fill.svg +1 -0
- package/assets/svgs/skip-left-fill.svg +1 -0
- package/assets/svgs/skip-right-fill.svg +1 -0
- package/esm2022/admin/components/admin-fields/admin-fields-form/admin-fields-form.component.mjs +8 -5
- package/esm2022/admin/components/admin-metadata/admin-select-metadata/admin-select-metadata.component.mjs +15 -13
- package/esm2022/admin/i18n/en.translations.mjs +3 -2
- package/esm2022/admin/i18n/fr.translations.mjs +3 -2
- package/esm2022/components/metadata-editor/metadata-editor.component.mjs +4 -4
- package/esm2022/dataset/components/dataset.component.mjs +3 -2
- package/esm2022/lib/core/auth/geoAuth.service.mjs +11 -7
- package/esm2022/lib/core/model/admin-api.model.mjs +1 -1
- package/esm2022/lib/dashboard/components/widgets/settings/settings.component.mjs +7 -4
- package/esm2022/lib/dashboard/resultset-utils.mjs +17 -2
- 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 +8 -4
- package/esm2022/presentation/i18n/en.translations.mjs +3 -2
- package/esm2022/presentation/i18n/fr.translations.mjs +3 -2
- package/esm2022/restitution/components/restitution-catalog/restitution-catalog.component.mjs +3 -3
- 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 -11
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +43 -5
- package/esm2022/widgets/widget-table/i18n/en.translations.mjs +3 -2
- package/esm2022/widgets/widget-table/i18n/fr.translations.mjs +3 -2
- 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 +25 -18
- package/fesm2022/provoly-dashboard-admin.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs +3 -3
- package/fesm2022/provoly-dashboard-components-metadata-editor.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +2 -1
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +12 -6
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-restitution.mjs +2 -2
- package/fesm2022/provoly-dashboard-restitution.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 +18 -10
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +46 -6
- 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 +32 -10
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/admin-api.model.d.ts +2 -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 +13 -13
- package/presentation/components/presentation.component.d.ts +3 -2
- package/presentation/i18n/en.translations.d.ts +1 -0
- package/presentation/i18n/fr.translations.d.ts +1 -0
- package/styles/components/_a-table.scss +33 -2
- package/widgets/widget-map/component/widget-map.component.d.ts +4 -2
- package/widgets/widget-table/component/widget-table.component.d.ts +14 -1
- package/widgets/widget-table/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-table/i18n/fr.translations.d.ts +1 -0
|
@@ -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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provoly/dashboard",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.8",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/cdk": "14.x || 15.x || 16.x",
|
|
@@ -85,18 +85,18 @@
|
|
|
85
85
|
"esm": "./esm2022/admin/provoly-dashboard-admin.mjs",
|
|
86
86
|
"default": "./fesm2022/provoly-dashboard-admin.mjs"
|
|
87
87
|
},
|
|
88
|
-
"./import": {
|
|
89
|
-
"types": "./import/index.d.ts",
|
|
90
|
-
"esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
91
|
-
"esm": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
92
|
-
"default": "./fesm2022/provoly-dashboard-import.mjs"
|
|
93
|
-
},
|
|
94
88
|
"./dataset": {
|
|
95
89
|
"types": "./dataset/index.d.ts",
|
|
96
90
|
"esm2022": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
97
91
|
"esm": "./esm2022/dataset/provoly-dashboard-dataset.mjs",
|
|
98
92
|
"default": "./fesm2022/provoly-dashboard-dataset.mjs"
|
|
99
93
|
},
|
|
94
|
+
"./import": {
|
|
95
|
+
"types": "./import/index.d.ts",
|
|
96
|
+
"esm2022": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
97
|
+
"esm": "./esm2022/import/provoly-dashboard-import.mjs",
|
|
98
|
+
"default": "./fesm2022/provoly-dashboard-import.mjs"
|
|
99
|
+
},
|
|
100
100
|
"./notification": {
|
|
101
101
|
"types": "./notification/index.d.ts",
|
|
102
102
|
"esm2022": "./esm2022/notification/provoly-dashboard-notification.mjs",
|
|
@@ -127,18 +127,18 @@
|
|
|
127
127
|
"esm": "./esm2022/search/provoly-dashboard-search.mjs",
|
|
128
128
|
"default": "./fesm2022/provoly-dashboard-search.mjs"
|
|
129
129
|
},
|
|
130
|
-
"./supervision": {
|
|
131
|
-
"types": "./supervision/index.d.ts",
|
|
132
|
-
"esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
|
|
133
|
-
"esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
|
|
134
|
-
"default": "./fesm2022/provoly-dashboard-supervision.mjs"
|
|
135
|
-
},
|
|
136
130
|
"./toolbox": {
|
|
137
131
|
"types": "./toolbox/index.d.ts",
|
|
138
132
|
"esm2022": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
139
133
|
"esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
|
|
140
134
|
"default": "./fesm2022/provoly-dashboard-toolbox.mjs"
|
|
141
135
|
},
|
|
136
|
+
"./supervision": {
|
|
137
|
+
"types": "./supervision/index.d.ts",
|
|
138
|
+
"esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
|
|
139
|
+
"esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
|
|
140
|
+
"default": "./fesm2022/provoly-dashboard-supervision.mjs"
|
|
141
|
+
},
|
|
142
142
|
"./components/card": {
|
|
143
143
|
"types": "./components/card/index.d.ts",
|
|
144
144
|
"esm2022": "./esm2022/components/card/provoly-dashboard-components-card.mjs",
|
|
@@ -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;
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
.a-table-wrapper {
|
|
5
5
|
flex: 1;
|
|
6
6
|
height: 100%;
|
|
7
|
-
overflow: auto;
|
|
8
|
-
|
|
7
|
+
overflow-x: auto;
|
|
8
|
+
overflow-y: hidden;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
.a-table {
|
|
@@ -81,6 +81,18 @@
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
|
|
85
|
+
&.checkbox-wrapper {
|
|
86
|
+
height: toRem(45);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.filler {
|
|
91
|
+
border-bottom-color: white;
|
|
92
|
+
|
|
93
|
+
td > * {
|
|
94
|
+
display: none;
|
|
95
|
+
}
|
|
84
96
|
}
|
|
85
97
|
}
|
|
86
98
|
|
|
@@ -98,6 +110,25 @@
|
|
|
98
110
|
a[href].a-btn {
|
|
99
111
|
color: inherit;
|
|
100
112
|
}
|
|
113
|
+
|
|
114
|
+
&-pagination {
|
|
115
|
+
height: toRem(35);
|
|
116
|
+
display: flex;
|
|
117
|
+
flex-direction: column;
|
|
118
|
+
align-items: center;
|
|
119
|
+
position: fixed;
|
|
120
|
+
|
|
121
|
+
&__spacing {
|
|
122
|
+
display: flex;
|
|
123
|
+
flex-direction: row;
|
|
124
|
+
height: toRem(35);
|
|
125
|
+
|
|
126
|
+
&__label {
|
|
127
|
+
margin-top: toRem(5);
|
|
128
|
+
height: toRem(35);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
101
132
|
}
|
|
102
133
|
|
|
103
134
|
.a-table-loading {
|
|
@@ -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, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, SymbolService, TooltipFactoryService } from '@provoly/dashboard';
|
|
3
|
+
import { BaseTooltipComponent, BaseWidgetMapLayerOptions, Class, DataWidgetComponent, Field, FilterContext, GetCapabilitiesResponse, MapAutoLayerOptions, MapFeatureLayerOptions, MapGeoServerLayerOptions, MapRasterTileLayerOptions, MapVectorTileLayerOptions, MapWidgetBubbleLayerOptions, MapWidgetHeatMapLayerOptions, MapWidgetLayerOptions, MapWidgetMarkerLayerOptions, MapWidgetOptions, MapWMSLayerLayerOptions, MapWMTSLayerLayerOptions, PryAggregationService, PryGeoAuthService, PryI18nService, PrySnackbarService, 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';
|
|
@@ -110,7 +110,9 @@ export declare class WidgetMapComponent extends DataWidgetComponent implements A
|
|
|
110
110
|
}, selectedIds?: string[], extents?: {
|
|
111
111
|
datasource: string;
|
|
112
112
|
extent: Coordinate[];
|
|
113
|
-
}[]
|
|
113
|
+
}[], filters?: {
|
|
114
|
+
[p: string]: FilterContext[];
|
|
115
|
+
}): void;
|
|
114
116
|
private getAttributesForDrawing;
|
|
115
117
|
private getIntensityAttribute;
|
|
116
118
|
private getLocationAttribute;
|
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
2
|
import { Store } from '@ngrx/store';
|
|
3
3
|
import { ColumnDefinition, DataWidgetComponent, Field, Item, ResultOrder, TableWidgetOptions } from '@provoly/dashboard';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
4
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
export interface Pagination {
|
|
7
|
+
totalPages: number;
|
|
8
|
+
page: number;
|
|
9
|
+
rows: number;
|
|
10
|
+
items: Item[];
|
|
11
|
+
loaded: number;
|
|
12
|
+
loadedPages: number;
|
|
13
|
+
noFillersItems: number;
|
|
14
|
+
}
|
|
6
15
|
export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
7
16
|
private cdr;
|
|
8
17
|
options$: Observable<TableWidgetOptions>;
|
|
@@ -27,6 +36,9 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
27
36
|
isContextMenuOpened$: Observable<boolean>;
|
|
28
37
|
quickOrder$: Observable<ResultOrder | undefined>;
|
|
29
38
|
private _refresh$;
|
|
39
|
+
actualPage$: BehaviorSubject<number>;
|
|
40
|
+
pagination$: Observable<Pagination>;
|
|
41
|
+
isOpen: boolean;
|
|
30
42
|
constructor(store: Store<any>, el: ElementRef, cdr: ChangeDetectorRef);
|
|
31
43
|
refresh(): void;
|
|
32
44
|
emitManifest(): void;
|
|
@@ -41,6 +53,7 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
41
53
|
setOrder(column: ColumnDefinition): void;
|
|
42
54
|
private nextOrder;
|
|
43
55
|
trackObjects(index: number, item: Item): string;
|
|
56
|
+
goToPage(number: number): void;
|
|
44
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTableComponent, never>;
|
|
45
58
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetTableComponent, "pry-widget-table", never, {}, {}, never, never, false, never>;
|
|
46
59
|
}
|