@provoly/dashboard 0.13.5 → 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.
Files changed (30) hide show
  1. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
  2. package/esm2022/lib/core/model/display-options.interface.mjs +55 -0
  3. package/esm2022/lib/core/model/public-api.mjs +2 -1
  4. package/esm2022/lib/dashboard/components/dashboard.component.mjs +9 -2
  5. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +3 -2
  6. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +7 -1
  7. package/esm2022/lib/dashboard/store/dashboard.selectors.mjs +4 -2
  8. package/esm2022/presentation/components/presentation.component.mjs +5 -2
  9. package/esm2022/toolbox/components/toolbox.component.mjs +4 -3
  10. package/esm2022/widgets/widget-map/pipe/widget-map-legend-url.pipe.mjs +7 -2
  11. package/esm2022/widgets/widget-map/public-api.mjs +2 -1
  12. package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
  13. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  14. package/fesm2022/provoly-dashboard-presentation.mjs +4 -1
  15. package/fesm2022/provoly-dashboard-presentation.mjs.map +1 -1
  16. package/fesm2022/provoly-dashboard-toolbox.mjs +3 -2
  17. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  18. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs +7 -2
  19. package/fesm2022/provoly-dashboard-widgets-widget-map.mjs.map +1 -1
  20. package/fesm2022/provoly-dashboard.mjs +73 -4
  21. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  22. package/lib/core/model/display-options.interface.d.ts +24 -0
  23. package/lib/core/model/public-api.d.ts +1 -0
  24. package/lib/dashboard/components/dashboard.component.d.ts +6 -3
  25. package/lib/dashboard/store/dashboard.actions.d.ts +8 -0
  26. package/lib/dashboard/store/dashboard.reducers.d.ts +2 -0
  27. package/lib/dashboard/store/dashboard.selectors.d.ts +1 -0
  28. package/package.json +7 -7
  29. package/toolbox/components/toolbox.component.d.ts +1 -0
  30. 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;
@@ -22,3 +22,4 @@ export * from './result-order.interface';
22
22
  export * from './dataset.interface';
23
23
  export * from './filter.interface';
24
24
  export * from './admin-api.model';
25
+ export * from './display-options.interface';
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.13.5",
3
+ "version": "0.13.6",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -85,18 +85,18 @@
85
85
  "esm": "./esm2022/search/provoly-dashboard-search.mjs",
86
86
  "default": "./fesm2022/provoly-dashboard-search.mjs"
87
87
  },
88
- "./toolbox": {
89
- "types": "./toolbox/index.d.ts",
90
- "esm2022": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
91
- "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
92
- "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
93
- },
94
88
  "./supervision": {
95
89
  "types": "./supervision/index.d.ts",
96
90
  "esm2022": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
97
91
  "esm": "./esm2022/supervision/provoly-dashboard-supervision.mjs",
98
92
  "default": "./fesm2022/provoly-dashboard-supervision.mjs"
99
93
  },
94
+ "./toolbox": {
95
+ "types": "./toolbox/index.d.ts",
96
+ "esm2022": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
97
+ "esm": "./esm2022/toolbox/provoly-dashboard-toolbox.mjs",
98
+ "default": "./fesm2022/provoly-dashboard-toolbox.mjs"
99
+ },
100
100
  "./filters/date": {
101
101
  "types": "./filters/date/index.d.ts",
102
102
  "esm2022": "./esm2022/filters/date/provoly-dashboard-filters-date.mjs",
@@ -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;
@@ -6,3 +6,4 @@ export * from './pipe/widget-map-legend-url.pipe';
6
6
  export * from './interaction/interaction-manager.class';
7
7
  export * from './interaction/selection-interaction.class';
8
8
  export * from './utils/widget-map.utils';
9
+ export * from './style/css.component';