@provoly/dashboard 0.13.4 → 0.13.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/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
- package/esm2022/lib/core/model/display-options.interface.mjs +55 -0
- package/esm2022/lib/core/model/public-api.mjs +2 -1
- package/esm2022/lib/dashboard/components/dashboard.component.mjs +9 -2
- package/esm2022/lib/dashboard/store/dashboard.actions.mjs +3 -2
- package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +7 -1
- package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +4 -2
- package/esm2022/presentation/components/presentation.component.mjs +5 -2
- package/esm2022/toolbox/components/toolbox.component.mjs +4 -3
- package/esm2022/widgets/widget-map/component/widget-map.component.mjs +3 -3
- package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +61 -5
- package/esm2022/widgets/widget-map/pipe/xml-utils.class.mjs +32 -0
- package/esm2022/widgets/widget-map/public-api.mjs +2 -1
- package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
- package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-presentation.mjs +4 -1
- package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-toolbox.mjs +3 -2
- package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +94 -8
- package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
- package/fesm2022/provoly-dashboard.mjs +73 -4
- package/fesm2022/provoly-dashboard.mjs.map +1 -1
- package/lib/core/model/display-options.interface.d.ts +24 -0
- package/lib/core/model/public-api.d.ts +1 -0
- package/lib/dashboard/components/dashboard.component.d.ts +6 -3
- package/lib/dashboard/store/dashboard.actions.d.ts +8 -0
- package/lib/dashboard/store/dashboard.reducers.d.ts +2 -0
- package/lib/dashboard/store/dashboard.selectors.d.ts +1 -0
- package/package.json +1 -1
- package/toolbox/components/toolbox.component.d.ts +1 -0
- package/widgets/widget-map/pipe/widget-map-legend-url.pipe.d.ts +6 -1
- package/widgets/widget-map/pipe/xml-utils.class.d.ts +5 -0
- package/widgets/widget-map/public-api.d.ts +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface DisplayOptions {
|
|
2
|
+
search: boolean;
|
|
3
|
+
catalog: boolean;
|
|
4
|
+
useFilters: boolean;
|
|
5
|
+
toolbox: ToolboxDisplayOptions;
|
|
6
|
+
}
|
|
7
|
+
export interface ToolboxDisplayOptions {
|
|
8
|
+
save_view: boolean;
|
|
9
|
+
save_view_as: boolean;
|
|
10
|
+
filter_settings: boolean;
|
|
11
|
+
new_tab: boolean;
|
|
12
|
+
clear_view: boolean;
|
|
13
|
+
default_size: boolean;
|
|
14
|
+
refresh_datasets: boolean;
|
|
15
|
+
automate_refresh: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare enum DisplayMode {
|
|
18
|
+
CONSULT = "CONSULT",
|
|
19
|
+
CREATE = "CREATE",
|
|
20
|
+
EDIT = "EDIT",
|
|
21
|
+
SEARCH = "SEARCH",
|
|
22
|
+
CUSTOM = "CUSTOM"
|
|
23
|
+
}
|
|
24
|
+
export declare function getDisplayOptions(mode: DisplayMode): DisplayOptions;
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Overlay } from '@angular/cdk/overlay';
|
|
2
|
-
import { AfterViewInit, ElementRef, EventEmitter, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
3
|
import { Store } from '@ngrx/store';
|
|
4
4
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
5
|
import { DashboardGridLayout, DashboardManifest, WidgetLayout, WidgetManifest } from '../../core/model/manifest.interface';
|
|
6
6
|
import { DashboardCellParams } from '../store/dashboard.actions';
|
|
7
7
|
import { SubscriptionnerDirective } from './subscriptionner.directive';
|
|
8
8
|
import { BaseWidgetComponent } from './widgets/base-widget.component';
|
|
9
|
+
import { DisplayOptions } from '../../core/model/display-options.interface';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
11
|
export declare const MIME_TYPE_WIDGET_MANIFEST = "application/widget-manifest";
|
|
11
12
|
export declare const MIME_TYPE_WIDGET_TYPE = "application/widget-type-";
|
|
12
13
|
export declare const MIME_TYPE_WIDGET_SIZE = "application/widget-size-";
|
|
13
|
-
export declare class DashboardComponent extends SubscriptionnerDirective implements AfterViewInit {
|
|
14
|
+
export declare class DashboardComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit {
|
|
14
15
|
private store;
|
|
15
16
|
private overlay;
|
|
16
17
|
private viewContainerRef;
|
|
@@ -29,6 +30,7 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
29
30
|
loading$: Observable<boolean>;
|
|
30
31
|
set staticDashboard(window: DashboardManifest);
|
|
31
32
|
CloseOnDragOut: boolean;
|
|
33
|
+
displayOptions?: DisplayOptions;
|
|
32
34
|
gridRef: ElementRef;
|
|
33
35
|
private canCalculateView;
|
|
34
36
|
targetIndexes$: Observable<number[]>;
|
|
@@ -52,6 +54,7 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
52
54
|
private confirmRemoveRef?;
|
|
53
55
|
Array: any;
|
|
54
56
|
constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef);
|
|
57
|
+
ngOnInit(): void;
|
|
55
58
|
ngAfterViewInit(): void;
|
|
56
59
|
/***
|
|
57
60
|
* Manage display
|
|
@@ -96,5 +99,5 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
|
|
|
96
99
|
trackWidgets(index: number, widgetManifest: WidgetManifest): string;
|
|
97
100
|
updateInstance(widgetIndex: number, $event: BaseWidgetComponent): void;
|
|
98
101
|
static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
|
|
99
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
|
|
102
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; "displayOptions": { "alias": "displayOptions"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
|
|
100
103
|
}
|
|
@@ -6,6 +6,7 @@ import { DashboardGridLayout, DashboardManifest, GlobalManifest, ManifestDescrip
|
|
|
6
6
|
import { Relation } from '../../core/model/relation.interface';
|
|
7
7
|
import { OrderValue } from '../../core/model/result-order.interface';
|
|
8
8
|
import { ResultSet, ResultSets } from '../../core/model/result-set.interface';
|
|
9
|
+
import { DisplayMode, DisplayOptions } from '../../core/model/display-options.interface';
|
|
9
10
|
export type DashboardCellParams = {
|
|
10
11
|
gridWidth: number;
|
|
11
12
|
gridHeight: number;
|
|
@@ -453,4 +454,11 @@ export declare const DashboardActions: {
|
|
|
453
454
|
}) => {
|
|
454
455
|
features: any;
|
|
455
456
|
} & import("@ngrx/store/src/models").TypedAction<"[Widget map] Set Wms layer features">>;
|
|
457
|
+
updateDisplayOptions: import("@ngrx/store").ActionCreator<"[Dashboard/Display] Update displayed dashboard management features", (props: {
|
|
458
|
+
mode: DisplayMode;
|
|
459
|
+
customDisplay?: DisplayOptions | undefined;
|
|
460
|
+
}) => {
|
|
461
|
+
mode: DisplayMode;
|
|
462
|
+
customDisplay?: DisplayOptions | undefined;
|
|
463
|
+
} & import("@ngrx/store/src/models").TypedAction<"[Dashboard/Display] Update displayed dashboard management features">>;
|
|
456
464
|
};
|
|
@@ -4,6 +4,7 @@ import { GlobalManifest, ManifestDescription } from '../../core/model/manifest.i
|
|
|
4
4
|
import { ResultOrder } from '../../core/model/result-order.interface';
|
|
5
5
|
import { ResultSets } from '../../core/model/result-set.interface';
|
|
6
6
|
import { DashboardCellParams, ViewMode } from './dashboard.actions';
|
|
7
|
+
import { DisplayOptions } from '../../core/model/display-options.interface';
|
|
7
8
|
export declare const dashboardFeatureKey = "@pry/dashboard";
|
|
8
9
|
export interface DashboardState {
|
|
9
10
|
manifests: {
|
|
@@ -44,6 +45,7 @@ export interface DashboardState {
|
|
|
44
45
|
editionMode: boolean;
|
|
45
46
|
};
|
|
46
47
|
wmsFeatures: any[];
|
|
48
|
+
display?: DisplayOptions;
|
|
47
49
|
}
|
|
48
50
|
export declare const dashboardInitialState: DashboardState;
|
|
49
51
|
export declare function dashboardReducer(state: DashboardState, action: Action): DashboardState;
|
|
@@ -395,4 +395,5 @@ export declare const DashboardSelectors: {
|
|
|
395
395
|
[datasourceId: string]: FilterContext[];
|
|
396
396
|
}>;
|
|
397
397
|
wmsFeatures: MemoizedSelector<object, any[], (s1: DashboardState) => any[]>;
|
|
398
|
+
displayOptions: MemoizedSelector<object, import("@provoly/dashboard").DisplayOptions | undefined, (s1: DashboardState) => import("@provoly/dashboard").DisplayOptions | undefined>;
|
|
398
399
|
};
|
package/package.json
CHANGED
|
@@ -15,6 +15,7 @@ export declare class ToolboxComponent implements OnInit {
|
|
|
15
15
|
allActions$: Observable<ToolboxAction[]>;
|
|
16
16
|
mainActions$: Observable<ToolboxAction[]>;
|
|
17
17
|
dropdownActions$: Observable<ToolboxAction[]>;
|
|
18
|
+
showDropdownButton$: Observable<boolean>;
|
|
18
19
|
isDropdownOpen: boolean;
|
|
19
20
|
constructor(store: Store);
|
|
20
21
|
ngOnInit(): void;
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
1
2
|
import { PipeTransform } from '@angular/core';
|
|
2
3
|
import { MapGeoServerLayerOptions, MapWMSLayerLayerOptions } from '@provoly/dashboard';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class WidgetMapLegendUrlPipe implements PipeTransform {
|
|
5
|
-
|
|
7
|
+
private httpClient;
|
|
8
|
+
constructor(httpClient: HttpClient);
|
|
9
|
+
parser: DOMParser;
|
|
10
|
+
transform(geoLayer: MapGeoServerLayerOptions | MapWMSLayerLayerOptions): Observable<string>;
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<WidgetMapLegendUrlPipe, never>;
|
|
7
12
|
static ɵpipe: i0.ɵɵPipeDeclaration<WidgetMapLegendUrlPipe, "legendUrl", false>;
|
|
8
13
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare class XMLUtils {
|
|
2
|
+
static find(childs: NodeListOf<ChildNode>, name: string): ChildNode | null;
|
|
3
|
+
static findAll(childs: NodeListOf<ChildNode>, name: string): ChildNode[];
|
|
4
|
+
static findWith(childs: NodeListOf<ChildNode>, attribute: string, value: string): ChildNode | null;
|
|
5
|
+
}
|