@provoly/dashboard 1.4.21 → 1.4.23

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 (25) hide show
  1. package/esm2022/dataset/components/dataset-detail/dataset-detail.component.mjs +1 -1
  2. package/esm2022/lib/core/store/search/search.effects.mjs +2 -2
  3. package/esm2022/lib/core/store/search/search.service.mjs +14 -5
  4. package/esm2022/lib/dashboard/components/dashboard.component.mjs +36 -17
  5. package/esm2022/lib/dashboard/components/widgets/data-widget.component.mjs +4 -2
  6. package/esm2022/lib/dashboard/components/widgets/header/widget-header.component.mjs +1 -1
  7. package/esm2022/lib/dashboard/filter/components/filter-group/filter-group.component.mjs +6 -4
  8. package/esm2022/lib/dashboard/resultset-utils.mjs +18 -11
  9. package/esm2022/lib/dashboard/store/dashboard.actions.mjs +2 -2
  10. package/esm2022/lib/dashboard/store/dashboard.effects.mjs +6 -4
  11. package/esm2022/lib/dashboard/store/dashboard.reducers.mjs +5 -2
  12. package/esm2022/toolbox/components/select-grid-layout/select-grid-layout.component.mjs +1 -1
  13. package/fesm2022/provoly-dashboard-dataset.mjs +1 -1
  14. package/fesm2022/provoly-dashboard-dataset.mjs.map +1 -1
  15. package/fesm2022/provoly-dashboard-toolbox.mjs +1 -1
  16. package/fesm2022/provoly-dashboard-toolbox.mjs.map +1 -1
  17. package/fesm2022/provoly-dashboard.mjs +84 -40
  18. package/fesm2022/provoly-dashboard.mjs.map +1 -1
  19. package/lib/core/store/search/search.service.d.ts +2 -2
  20. package/lib/dashboard/components/dashboard.component.d.ts +11 -5
  21. package/lib/dashboard/filter/components/filter-group/filter-group.component.d.ts +2 -1
  22. package/lib/dashboard/resultset-utils.d.ts +1 -0
  23. package/lib/dashboard/store/dashboard.actions.d.ts +11 -1
  24. package/lib/dashboard/store/dashboard.effects.d.ts +1 -0
  25. package/package.json +13 -13
@@ -24,9 +24,9 @@ export declare class SearchService {
24
24
  datasources: DataSource[];
25
25
  constructor(httpClient: HttpClient, store: Store<ConfigState | SearchState>);
26
26
  getItems(id: string, quickOrder?: ResultOrder, excludeGeo?: boolean, searchAfter?: string, linkedItems?: ('destination' | 'source')[]): Observable<ResultSet>;
27
- getItemsSerializedParams(id: string, quickOrder?: {
27
+ getItemsSerializedParams(id: string, quickOrder: {
28
28
  [id: string]: ResultOrder | undefined;
29
- }): string;
29
+ } | undefined, excludeGeo: boolean, linkedItems?: ('destination' | 'source')[]): string;
30
30
  getItemsFilter(id: string, cumulative?: HttpParams): HttpParams;
31
31
  getOrder(quickOrder: ResultOrder | undefined): HttpParams;
32
32
  /**
@@ -1,5 +1,5 @@
1
1
  import { Overlay } from '@angular/cdk/overlay';
2
- import { AfterViewInit, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
2
+ import { AfterViewChecked, AfterViewInit, ElementRef, EventEmitter, OnInit, QueryList, TemplateRef, ViewContainerRef } from '@angular/core';
3
3
  import { Store } from '@ngrx/store';
4
4
  import { BehaviorSubject, Observable } from 'rxjs';
5
5
  import { DisplayOptions } from '../../core/model/display-options.interface';
@@ -11,7 +11,7 @@ import * as i0 from "@angular/core";
11
11
  export declare const MIME_TYPE_WIDGET_MANIFEST = "application/widget-manifest";
12
12
  export declare const MIME_TYPE_WIDGET_TYPE = "application/widget-type-";
13
13
  export declare const MIME_TYPE_WIDGET_SIZE = "application/widget-size-";
14
- export declare class DashboardComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit {
14
+ export declare class DashboardComponent extends SubscriptionnerDirective implements OnInit, AfterViewInit, AfterViewChecked {
15
15
  private store;
16
16
  private overlay;
17
17
  private viewContainerRef;
@@ -32,8 +32,11 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
32
32
  dataFetching$: Observable<string[]>;
33
33
  params: DashboardCellParams;
34
34
  forceModeEdition$: BehaviorSubject<boolean | undefined>;
35
- width: import("@angular/core").WritableSignal<number>;
36
- height: import("@angular/core").WritableSignal<number>;
35
+ private _dashboardSize$;
36
+ dashboardSize$: Observable<{
37
+ width: number;
38
+ height: number;
39
+ }>;
37
40
  get widgetsInstances(): any[];
38
41
  set staticDashboard(window: DashboardManifest);
39
42
  set forceModeEdition(mode: boolean);
@@ -62,7 +65,10 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
62
65
  backgroundArea$: Observable<string>;
63
66
  private confirmRemoveRef?;
64
67
  Array: any;
68
+ set linkedItems(linkedItems: ('destination' | 'source')[]);
69
+ linkedItems$: BehaviorSubject<('destination' | 'source')[] | undefined>;
65
70
  constructor(store: Store<any>, overlay: Overlay, viewContainerRef: ViewContainerRef, el: ElementRef);
71
+ ngAfterViewChecked(): void;
66
72
  ngOnInit(): void;
67
73
  ngAfterViewInit(): void;
68
74
  updateSelfSize(): void;
@@ -109,5 +115,5 @@ export declare class DashboardComponent extends SubscriptionnerDirective impleme
109
115
  trackWidgets(index: number, widgetManifest: WidgetManifest): string;
110
116
  changeSize(direction: string, offset: number): void;
111
117
  static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
112
- static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "forceModeEdition": { "alias": "forceModeEdition"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; "displayOptions": { "alias": "displayOptions"; "required": false; }; "noBackground": { "alias": "noBackground"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
118
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "pry-dashboard", never, { "staticDashboard": { "alias": "staticDashboard"; "required": false; }; "forceModeEdition": { "alias": "forceModeEdition"; "required": false; }; "CloseOnDragOut": { "alias": "CloseOnDragOut"; "required": false; }; "displayOptions": { "alias": "displayOptions"; "required": false; }; "noBackground": { "alias": "noBackground"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "linkedItems": { "alias": "linkedItems"; "required": false; }; }, { "rowHeight": "rowHeight"; "rows": "rows"; }, never, never, false, never>;
113
119
  }
@@ -10,6 +10,7 @@ export declare class FilterGroupComponent {
10
10
  isSelectOpen: boolean;
11
11
  enterTriggerFilter: boolean;
12
12
  clearTriggerFilter: boolean;
13
+ linkedItems?: ('destination' | 'source')[];
13
14
  constructor(store: Store, document: Document);
14
15
  filter(): void;
15
16
  clearFilters(): void;
@@ -17,5 +18,5 @@ export declare class FilterGroupComponent {
17
18
  enterPressed(): void;
18
19
  cleared(): void;
19
20
  static ɵfac: i0.ɵɵFactoryDeclaration<FilterGroupComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FilterGroupComponent, "pry-filter-group", never, { "enterTriggerFilter": { "alias": "enterTriggerFilter"; "required": false; }; "clearTriggerFilter": { "alias": "clearTriggerFilter"; "required": false; }; }, {}, never, never, false, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FilterGroupComponent, "pry-filter-group", never, { "enterTriggerFilter": { "alias": "enterTriggerFilter"; "required": false; }; "clearTriggerFilter": { "alias": "clearTriggerFilter"; "required": false; }; "linkedItems": { "alias": "linkedItems"; "required": false; }; }, {}, never, never, false, never>;
21
22
  }
@@ -1,4 +1,5 @@
1
1
  import { ResultSet } from '../core/model/result-set.interface';
2
2
  export declare class ResultsetUtils {
3
3
  static mergeResultSets(rs1: ResultSet, rs2: ResultSet): ResultSet;
4
+ private static mergeItems;
4
5
  }
@@ -290,8 +290,10 @@ export declare const DashboardActions: {
290
290
  } & import("@ngrx/store").Action<"[Dashboard] maximize widget">>;
291
291
  assertResultSets: import("@ngrx/store").ActionCreator<"[Dashboard] assert resultSet", (props: {
292
292
  staticManifest?: DashboardManifest;
293
+ linkedItems?: ("destination" | "source")[];
293
294
  }) => {
294
295
  staticManifest?: DashboardManifest;
296
+ linkedItems?: ("destination" | "source")[];
295
297
  } & import("@ngrx/store").Action<"[Dashboard] assert resultSet">>;
296
298
  updateResultSet: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) received named resultSet (not-active-action)", (props: {
297
299
  id: string;
@@ -395,10 +397,12 @@ export declare const DashboardActions: {
395
397
  datasourceId: string;
396
398
  attribute: string;
397
399
  asc: OrderValue;
400
+ linkedItems?: ("destination" | "source")[];
398
401
  }) => {
399
402
  datasourceId: string;
400
403
  attribute: string;
401
404
  asc: OrderValue;
405
+ linkedItems?: ("destination" | "source")[];
402
406
  } & import("@ngrx/store").Action<"[Dashboard] (bus) quick order">>;
403
407
  setGridLayout: import("@ngrx/store").ActionCreator<"[Dashboard] set grid layout", (props: {
404
408
  layout: string;
@@ -439,11 +443,17 @@ export declare const DashboardActions: {
439
443
  value: any;
440
444
  datasourceId: string;
441
445
  } & import("@ngrx/store").Action<"[Dashboard] (bus) update filter value">>;
442
- clearAllFilterValues: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) clear all filter values", () => import("@ngrx/store").Action<"[Dashboard] (bus) clear all filter values">>;
446
+ clearAllFilterValues: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) clear all filter values", (props: {
447
+ linkedItems?: ("destination" | "source")[];
448
+ }) => {
449
+ linkedItems?: ("destination" | "source")[];
450
+ } & import("@ngrx/store").Action<"[Dashboard] (bus) clear all filter values">>;
443
451
  dispatchFilters: import("@ngrx/store").ActionCreator<"[Dashboard] (bus) apply filters to presentation datasources", (props: {
444
452
  staticManifest?: DashboardManifest;
453
+ linkedItems?: ("destination" | "source")[];
445
454
  }) => {
446
455
  staticManifest?: DashboardManifest;
456
+ linkedItems?: ("destination" | "source")[];
447
457
  } & import("@ngrx/store").Action<"[Dashboard] (bus) apply filters to presentation datasources">>;
448
458
  resetWmsFeatures: import("@ngrx/store").ActionCreator<"[Widget map] Reset Wms layer features", (props: {
449
459
  componentId: string;
@@ -109,6 +109,7 @@ export declare class DashboardEffects {
109
109
  } & import("@ngrx/store").Action<"[Dashboard] (bus) Triggering aggregates for datasource">> & import("@ngrx/effects").CreateEffectMetadata;
110
110
  startMissingViewAfterViewUpdate$: import("rxjs").Observable<import("@ngrx/store").Action<"[Dashboard] solving collisions"> | import("@ngrx/store").Action<"[Dashboard] opening missing views for manifest"> | ({
111
111
  staticManifest?: import("../../core/model/manifest.interface").DashboardManifest;
112
+ linkedItems?: ("destination" | "source")[];
112
113
  } & import("@ngrx/store").Action<"[Dashboard] assert resultSet">)> & import("@ngrx/effects").CreateEffectMetadata;
113
114
  updateTitle$: import("rxjs").Observable<[({
114
115
  tenants: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "1.4.21",
3
+ "version": "1.4.23",
4
4
  "type": "commonjs",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "17.x || 18.x",
@@ -252,12 +252,6 @@
252
252
  "esm": "./esm2022/pipeline-components/input-datasource/provoly-dashboard-pipeline-components-input-datasource.mjs",
253
253
  "default": "./fesm2022/provoly-dashboard-pipeline-components-input-datasource.mjs"
254
254
  },
255
- "./pipeline-components/noop": {
256
- "types": "./pipeline-components/noop/index.d.ts",
257
- "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
258
- "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
259
- "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
260
- },
261
255
  "./pipeline-components/output-dataset": {
262
256
  "types": "./pipeline-components/output-dataset/index.d.ts",
263
257
  "esm2022": "./esm2022/pipeline-components/output-dataset/provoly-dashboard-pipeline-components-output-dataset.mjs",
@@ -270,6 +264,12 @@
270
264
  "esm": "./esm2022/pipeline-components/subgraph/provoly-dashboard-pipeline-components-subgraph.mjs",
271
265
  "default": "./fesm2022/provoly-dashboard-pipeline-components-subgraph.mjs"
272
266
  },
267
+ "./pipeline-components/noop": {
268
+ "types": "./pipeline-components/noop/index.d.ts",
269
+ "esm2022": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
270
+ "esm": "./esm2022/pipeline-components/noop/provoly-dashboard-pipeline-components-noop.mjs",
271
+ "default": "./fesm2022/provoly-dashboard-pipeline-components-noop.mjs"
272
+ },
273
273
  "./tooltips/attribute": {
274
274
  "types": "./tooltips/attribute/index.d.ts",
275
275
  "esm2022": "./esm2022/tooltips/attribute/provoly-dashboard-tooltips-attribute.mjs",
@@ -336,12 +336,6 @@
336
336
  "esm": "./esm2022/widgets/widget-table/provoly-dashboard-widgets-widget-table.mjs",
337
337
  "default": "./fesm2022/provoly-dashboard-widgets-widget-table.mjs"
338
338
  },
339
- "./widgets/widget-template": {
340
- "types": "./widgets/widget-template/index.d.ts",
341
- "esm2022": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
342
- "esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
343
- "default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
344
- },
345
339
  "./widgets/widget-tile": {
346
340
  "types": "./widgets/widget-tile/index.d.ts",
347
341
  "esm2022": "./esm2022/widgets/widget-tile/provoly-dashboard-widgets-widget-tile.mjs",
@@ -353,6 +347,12 @@
353
347
  "esm2022": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
354
348
  "esm": "./esm2022/widgets/widget-vega/provoly-dashboard-widgets-widget-vega.mjs",
355
349
  "default": "./fesm2022/provoly-dashboard-widgets-widget-vega.mjs"
350
+ },
351
+ "./widgets/widget-template": {
352
+ "types": "./widgets/widget-template/index.d.ts",
353
+ "esm2022": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
354
+ "esm": "./esm2022/widgets/widget-template/provoly-dashboard-widgets-widget-template.mjs",
355
+ "default": "./fesm2022/provoly-dashboard-widgets-widget-template.mjs"
356
356
  }
357
357
  },
358
358
  "schematics": "./schematics/collection.json",