ngx-vector-components 6.15.0 → 6.16.0
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.
|
@@ -82,6 +82,7 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
82
82
|
private _lastLazyLoadEvent;
|
|
83
83
|
private _tabSelected;
|
|
84
84
|
private _filterSubscription;
|
|
85
|
+
private _openActionsMenu;
|
|
85
86
|
constructor(cd: ChangeDetectorRef);
|
|
86
87
|
ngOnInit(): void;
|
|
87
88
|
ngOnDestroy(): void;
|
|
@@ -107,6 +108,7 @@ export declare class DataTableComponent implements OnInit, OnDestroy {
|
|
|
107
108
|
isScoreCell(col: TableColumn): boolean;
|
|
108
109
|
onSelectionChange(selection: any): void;
|
|
109
110
|
onActionsMenuShow(menu: Menu): void;
|
|
111
|
+
onActionsMenuHide(menu: Menu): void;
|
|
110
112
|
changeShowBalance(itemAccount?: any): void;
|
|
111
113
|
private getStatusColor;
|
|
112
114
|
private getActiveStatusColor;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
2
|
import { MessageService } from 'primeng/api';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { AppName } from '../models';
|
|
4
5
|
import { AuthService, ErrorMessageService, LoadingService, StorageService } from '../services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class HttpInterceptorProvider implements HttpInterceptor {
|
|
@@ -10,10 +11,11 @@ export declare class HttpInterceptorProvider implements HttpInterceptor {
|
|
|
10
11
|
private authService;
|
|
11
12
|
private messageService;
|
|
12
13
|
private environment;
|
|
14
|
+
private appName;
|
|
13
15
|
private activeRequests;
|
|
14
16
|
private isRefreshing;
|
|
15
17
|
private refreshTokenSubject;
|
|
16
|
-
constructor(storageService: StorageService, errorMessageService: ErrorMessageService, loadingService: LoadingService, authService: AuthService, messageService: MessageService, environment: any);
|
|
18
|
+
constructor(storageService: StorageService, errorMessageService: ErrorMessageService, loadingService: LoadingService, authService: AuthService, messageService: MessageService, environment: any, appName?: AppName | null);
|
|
17
19
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
18
20
|
private isRefreshTokenRequest;
|
|
19
21
|
private getUrlWithoutParams;
|
|
@@ -21,11 +23,21 @@ export declare class HttpInterceptorProvider implements HttpInterceptor {
|
|
|
21
23
|
private addModifierIdIfPresent;
|
|
22
24
|
private addEncryptPasswordIfPresent;
|
|
23
25
|
private addAccountUuidIfPresent;
|
|
26
|
+
/**
|
|
27
|
+
* Marca a origem da request pro backend: `x-client-platform: web` (+ `x-client` com o nome do
|
|
28
|
+
* frontend), pro backend distinguir web de app nativo (ver helper IsFromApp() no VectioCargo.Shared).
|
|
29
|
+
*
|
|
30
|
+
* So nas chamadas do nosso backend; ignora URL externa (header `external-url`) e assets — nao
|
|
31
|
+
* vaza o header p/ APIs de terceiros. Header e spoofavel: telemetria/roteamento/log, NAO
|
|
32
|
+
* controle de seguranca.
|
|
33
|
+
*/
|
|
34
|
+
private addClientHeaders;
|
|
35
|
+
private getClientName;
|
|
24
36
|
private addContentType;
|
|
25
37
|
private fixUrl;
|
|
26
38
|
private isAuthRequest;
|
|
27
39
|
private isProfilesRequest;
|
|
28
40
|
private handle401Error;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorProvider,
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpInterceptorProvider, [null, null, null, null, null, null, { optional: true; }]>;
|
|
30
42
|
static ɵprov: i0.ɵɵInjectableDeclaration<HttpInterceptorProvider>;
|
|
31
43
|
}
|