ngx-wapp-components 1.3.6 → 1.3.8
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/esm2020/lib/misc/w-filter-panel/w-filter-panel.component.mjs +55 -36
- package/esm2020/lib/shared/models/filter-panel/last-query.model.mjs +2 -0
- package/esm2020/lib/shared/services/local-storage.service.mjs +8 -1
- package/fesm2015/ngx-wapp-components.mjs +58 -33
- package/fesm2015/ngx-wapp-components.mjs.map +1 -1
- package/fesm2020/ngx-wapp-components.mjs +57 -33
- package/fesm2020/ngx-wapp-components.mjs.map +1 -1
- package/lib/misc/w-filter-panel/w-filter-panel.component.d.ts +10 -5
- package/lib/shared/models/filter-panel/last-query.model.d.ts +5 -0
- package/lib/shared/services/local-storage.service.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { FormBuilder, FormControl } from '@angular/forms';
|
|
3
3
|
import { QBDataTypeEnum } from '../../shared/models/enums.model';
|
|
4
4
|
import { QbPanelFilter } from '../../shared/models/filter-panel/qb-panel-filter.model';
|
|
@@ -9,8 +9,11 @@ import { QbFilterEntity } from '../../shared/models/filter-panel/qb-filter-entit
|
|
|
9
9
|
import { ApiService } from '../../shared/service/api/api.service';
|
|
10
10
|
import { LocalStorageService } from '../../shared/services/local-storage.service';
|
|
11
11
|
import { StoredFilterPanelQuery } from '../../shared/models/stored-filter-panel-query.model';
|
|
12
|
+
import { Router } from '@angular/router';
|
|
13
|
+
import { LastQuery } from '../../shared/models/filter-panel/last-query.model';
|
|
12
14
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class WFilterPanelComponent {
|
|
15
|
+
export declare class WFilterPanelComponent implements OnInit {
|
|
16
|
+
private router;
|
|
14
17
|
private formBuilder;
|
|
15
18
|
private apiService;
|
|
16
19
|
private localStorage;
|
|
@@ -33,6 +36,7 @@ export declare class WFilterPanelComponent {
|
|
|
33
36
|
defaultValues: any[];
|
|
34
37
|
defaultOperators: any[];
|
|
35
38
|
storedQuery: StoredFilterPanelQuery;
|
|
39
|
+
hasPreviousFilters: boolean;
|
|
36
40
|
authorizationApiUrl: string;
|
|
37
41
|
commonDataApiUrl: string;
|
|
38
42
|
token: string;
|
|
@@ -42,10 +46,11 @@ export declare class WFilterPanelComponent {
|
|
|
42
46
|
translationsObject: FilterPanelTranslations;
|
|
43
47
|
searchClicked: EventEmitter<QueryResults>;
|
|
44
48
|
clearClicked: EventEmitter<boolean>;
|
|
45
|
-
|
|
49
|
+
lastQuery: EventEmitter<LastQuery>;
|
|
46
50
|
stateOptions: any[];
|
|
47
|
-
constructor(formBuilder: FormBuilder, apiService: ApiService, localStorage: LocalStorageService);
|
|
51
|
+
constructor(router: Router, formBuilder: FormBuilder, apiService: ApiService, localStorage: LocalStorageService);
|
|
48
52
|
ngOnInit(): void;
|
|
53
|
+
previousRouteDetection(): void;
|
|
49
54
|
initQueryBuilderControls(): void;
|
|
50
55
|
updateSearchType(): void;
|
|
51
56
|
onSearchClicked(): void;
|
|
@@ -66,5 +71,5 @@ export declare class WFilterPanelComponent {
|
|
|
66
71
|
getQueryFieldName(fieldName: string, fields: FieldMap): string;
|
|
67
72
|
fieldIsBoolean(fieldName: string, fields: FieldMap): boolean;
|
|
68
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<WFilterPanelComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WFilterPanelComponent, "w-filter-panel", never, { "authorizationApiUrl": "apiUrl"; "commonDataApiUrl": "commonDataApiUrl"; "token": "token"; "commonDataToken": "commonDataToken"; "filterId": "filterId"; "dataIsLoadingSearchButton": "dataIsLoadingSearchButton"; "translationsObject": "translationsObject"; }, { "searchClicked": "searchClicked"; "clearClicked": "clearClicked"; "
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WFilterPanelComponent, "w-filter-panel", never, { "authorizationApiUrl": "apiUrl"; "commonDataApiUrl": "commonDataApiUrl"; "token": "token"; "commonDataToken": "commonDataToken"; "filterId": "filterId"; "dataIsLoadingSearchButton": "dataIsLoadingSearchButton"; "translationsObject": "translationsObject"; }, { "searchClicked": "searchClicked"; "clearClicked": "clearClicked"; "lastQuery": "lastQuery"; }, never, never, false, never>;
|
|
70
75
|
}
|
|
@@ -2,7 +2,10 @@ import { StoredFilterPanelQuery } from '../models/stored-filter-panel-query.mode
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class LocalStorageService {
|
|
4
4
|
private lastQuery;
|
|
5
|
+
private previousUrl;
|
|
5
6
|
constructor();
|
|
7
|
+
setPreviousRoute(previousRoute: string): void;
|
|
8
|
+
getPreviousRoute(): string | null;
|
|
6
9
|
setLastFilterPanelQuery(storedQuery: StoredFilterPanelQuery): void;
|
|
7
10
|
getLastFilterPanelQuery(): StoredFilterPanelQuery;
|
|
8
11
|
removeLastFilterPanelQuery(): void;
|