@provoly/dashboard 0.11.1 → 0.11.2

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.
@@ -1,4 +1,4 @@
1
- import { HttpClient } from '@angular/common/http';
1
+ import { HttpClient, HttpParams } from '@angular/common/http';
2
2
  import { Store } from '@ngrx/store';
3
3
  import { Observable } from 'rxjs';
4
4
  import { FilterContext } from '../../model/filter.interface';
@@ -25,10 +25,8 @@ export declare class SearchService {
25
25
  */
26
26
  getItems(id: string, quickOrder?: ResultOrder): Observable<ResultSet>;
27
27
  getItemsSerializedParams(id: string, quickOrder: any): string;
28
- getItemsFilter(id: string): string;
29
- getItemsParams(quickOrder: ResultOrder | undefined): {
30
- [key: string]: string;
31
- };
28
+ getItemsFilter(id: string, cumulative?: HttpParams): HttpParams;
29
+ getOrder(quickOrder: ResultOrder | undefined, cumulative?: HttpParams): HttpParams;
32
30
  /**
33
31
  * Launch a search request (and saves it as current search)
34
32
  * @param condition
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@provoly/dashboard",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "type": "module",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "15.x || 16.x",
@@ -1,6 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { Store } from '@ngrx/store';
3
- import { Attribute, ChartAggregatedWidgetOptions, Item, PryI18nService, PrySnackbarService } from '@provoly/dashboard';
3
+ import { ChartAggregatedWidgetOptions, PryI18nService, PrySnackbarService, SearchService } from '@provoly/dashboard';
4
4
  import { Observable } from 'rxjs';
5
5
  import { AggregationResult, PryAggregationService } from './base-aggregation.service';
6
6
  import * as i0 from "@angular/core";
@@ -9,13 +9,13 @@ export declare class PryBackendAggregationService extends PryAggregationService
9
9
  private snackBar;
10
10
  private translateService;
11
11
  private httpClient;
12
+ private searchService;
12
13
  private rs;
13
14
  private classes;
14
15
  private fields;
15
16
  private filters;
16
- constructor(store: Store, snackBar: PrySnackbarService, translateService: PryI18nService, httpClient: HttpClient);
17
+ constructor(store: Store, snackBar: PrySnackbarService, translateService: PryI18nService, httpClient: HttpClient, searchService: SearchService);
17
18
  aggregate(datasources: string[], options: ChartAggregatedWidgetOptions): Observable<AggregationResult>;
18
- getValueFromAttribute(item: Item, attribute: Attribute): import("@provoly/dashboard").AttributeSimpleValue;
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<PryBackendAggregationService, never>;
20
20
  static ɵprov: i0.ɵɵInjectableDeclaration<PryBackendAggregationService>;
21
21
  }