@provoly/dashboard 0.15.5 → 0.15.7
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/admin/store/admin.service.mjs +2 -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/resultset-utils.mjs +17 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +1 -1
- package/esm2022/lib/dashboard/store/dashboard.effects.mjs +2 -2
- package/esm2022/lib/dashboard/store/manifest.service.mjs +3 -2
- package/esm2022/presentation/components/add-edit-presentation/add-edit-presentation.component.mjs +5 -1
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +18 -10
- package/esm2022/widgets/widget-table/component/widget-table.component.mjs +40 -4
- package/esm2022/widgets/widget-table/i18n/en.translations.mjs +3 -2
- package/esm2022/widgets/widget-table/i18n/fr.translations.mjs +3 -2
- package/fesm2022/provoly-dashboard-admin.mjs +26 -19
- 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 +4 -0
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +17 -9
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs +43 -5
- package/fesm2022/provoly-dashboard-widgets-widget-table.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +29 -9
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/admin-api.model.d.ts +2 -0
- package/lib/dashboard/store/dashboard.actions.d.ts +8 -0
- package/lib/dashboard/store/manifest.service.d.ts +4 -1
- package/package.json +1 -1
- package/presentation/components/add-edit-presentation/add-edit-presentation.component.d.ts +1 -1
- 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 +13 -1
- package/widgets/widget-table/i18n/en.translations.d.ts +1 -0
- package/widgets/widget-table/i18n/fr.translations.d.ts +1 -0
|
@@ -258,6 +258,10 @@ export declare const DashboardActions: {
|
|
|
258
258
|
image?: string | undefined;
|
|
259
259
|
visibility?: PryVisibility | undefined;
|
|
260
260
|
cover?: boolean | undefined;
|
|
261
|
+
metadata?: {
|
|
262
|
+
id: string;
|
|
263
|
+
value: string;
|
|
264
|
+
}[] | undefined;
|
|
261
265
|
}) => {
|
|
262
266
|
name: string;
|
|
263
267
|
manifest?: GlobalManifest | undefined;
|
|
@@ -266,6 +270,10 @@ export declare const DashboardActions: {
|
|
|
266
270
|
image?: string | undefined;
|
|
267
271
|
visibility?: PryVisibility | undefined;
|
|
268
272
|
cover?: boolean | undefined;
|
|
273
|
+
metadata?: {
|
|
274
|
+
id: string;
|
|
275
|
+
value: string;
|
|
276
|
+
}[] | undefined;
|
|
269
277
|
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard] save manifest">>;
|
|
270
278
|
solveCollisions: import("@ngrx/store").ActionCreator<"[Dashboard] solving collisions", () => import("@ngrx/store/src/models").TypedAction<"[Dashboard] solving collisions">>;
|
|
271
279
|
defaultManifest: import("@ngrx/store").ActionCreator<"[Dashboard] set default manifest", (props: {
|
|
@@ -14,7 +14,10 @@ export declare class ManifestService {
|
|
|
14
14
|
constructor(httpClient: HttpClient, store: Store<any>, snackBar: PrySnackbarService, translateService: PryI18nService);
|
|
15
15
|
list(): Observable<ManifestDescription[]>;
|
|
16
16
|
get(id: string): Observable<GlobalManifest>;
|
|
17
|
-
save(name: string, manifest: GlobalManifest, visibility: PryVisibility, id: string, description?: string, image?: string, cover?: boolean
|
|
17
|
+
save(name: string, manifest: GlobalManifest, visibility: PryVisibility, id: string, description?: string, image?: string, cover?: boolean, metadata?: {
|
|
18
|
+
id: string;
|
|
19
|
+
value: string;
|
|
20
|
+
}[]): Observable<{
|
|
18
21
|
id: string;
|
|
19
22
|
name: string;
|
|
20
23
|
manifest: GlobalManifest;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ import { BehaviorSubject, Observable } from 'rxjs';
|
|
|
7
7
|
import { MetaEventType } from '@provoly/dashboard/components/metadata-editor';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class PryAddEditPresentationComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit {
|
|
10
|
-
|
|
10
|
+
protected store: Store;
|
|
11
11
|
protected router: Router;
|
|
12
12
|
staticManifest$: Observable<GlobalManifest>;
|
|
13
13
|
selectedPresentation$: BehaviorSubject<ManifestDescription | null>;
|
|
@@ -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,8 @@ 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>;
|
|
30
41
|
constructor(store: Store<any>, el: ElementRef, cdr: ChangeDetectorRef);
|
|
31
42
|
refresh(): void;
|
|
32
43
|
emitManifest(): void;
|
|
@@ -41,6 +52,7 @@ export declare class WidgetTableComponent extends DataWidgetComponent {
|
|
|
41
52
|
setOrder(column: ColumnDefinition): void;
|
|
42
53
|
private nextOrder;
|
|
43
54
|
trackObjects(index: number, item: Item): string;
|
|
55
|
+
goToPage(number: number): void;
|
|
44
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetTableComponent, never>;
|
|
45
57
|
static ɵcmp: i0.ɵɵComponentDeclaration<WidgetTableComponent, "pry-widget-table", never, {}, {}, never, never, false, never>;
|
|
46
58
|
}
|