info-library 2.10.72 → 2.10.74
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/bundles/info-library.umd.js +388 -71
- package/bundles/info-library.umd.js.map +1 -1
- package/bundles/info-library.umd.min.js +1 -1
- package/bundles/info-library.umd.min.js.map +1 -1
- package/esm2015/info-library.js +13 -12
- package/esm2015/info-library.module.js +5 -1
- package/esm2015/layouts/main/main.component.js +17 -7
- package/esm2015/layouts/topbar/topbar.component.js +13 -5
- package/esm2015/model/platform.model.js +3 -3
- package/esm2015/service/authentication.service.js +75 -29
- package/esm2015/service/data.service.js +15 -11
- package/esm2015/service/theme.service.js +1 -1
- package/esm2015/utils/utilities.js +256 -0
- package/fesm2015/info-library.js +368 -52
- package/fesm2015/info-library.js.map +1 -1
- package/info-library.d.ts +12 -11
- package/info-library.metadata.json +1 -1
- package/layouts/main/main.component.d.ts +3 -1
- package/layouts/topbar/topbar.component.d.ts +3 -1
- package/package.json +1 -1
- package/service/authentication.service.d.ts +8 -3
- package/service/data.service.d.ts +3 -2
- package/utils/utilities.d.ts +24 -0
|
@@ -5,6 +5,7 @@ import { InfoPlatformModel } from "../../model/platform.model";
|
|
|
5
5
|
import { InfoSessionModel } from "../../model/session.model";
|
|
6
6
|
import { InfoThemeService } from '../../service/theme.service';
|
|
7
7
|
import { InfoTopbarComponent } from "../topbar/topbar.component";
|
|
8
|
+
import { Utilities } from "../../utils/utilities";
|
|
8
9
|
export declare class InfoMainComponent implements OnInit {
|
|
9
10
|
_platform: InfoPlatformModel;
|
|
10
11
|
private _session;
|
|
@@ -13,6 +14,7 @@ export declare class InfoMainComponent implements OnInit {
|
|
|
13
14
|
private _themeService;
|
|
14
15
|
private _renderer;
|
|
15
16
|
private _element;
|
|
17
|
+
private _utilities;
|
|
16
18
|
opened: boolean;
|
|
17
19
|
version: string;
|
|
18
20
|
messages: any[];
|
|
@@ -40,7 +42,7 @@ export declare class InfoMainComponent implements OnInit {
|
|
|
40
42
|
ongetnotification: EventEmitter<any>;
|
|
41
43
|
onverifynotification: EventEmitter<any>;
|
|
42
44
|
topbar: InfoTopbarComponent;
|
|
43
|
-
constructor(_platform: InfoPlatformModel, _session: InfoSessionModel, _router: Router, _dataAccessService: InfoDataService, _themeService: InfoThemeService, _renderer: Renderer2, _element: ElementRef);
|
|
45
|
+
constructor(_platform: InfoPlatformModel, _session: InfoSessionModel, _router: Router, _dataAccessService: InfoDataService, _themeService: InfoThemeService, _renderer: Renderer2, _element: ElementRef, _utilities: Utilities);
|
|
44
46
|
ngOnInit(): void;
|
|
45
47
|
onChangeTopBarState(): void;
|
|
46
48
|
onChangeSideBarState(): void;
|
|
@@ -9,6 +9,7 @@ import { InfoThemeService } from '../../service/theme.service';
|
|
|
9
9
|
import { InfoNotificationModel } from '../../model/notification.model';
|
|
10
10
|
import { InfoSessionModel } from '../../model/session.model';
|
|
11
11
|
import { InfoPlatformModel } from '../../model/platform.model';
|
|
12
|
+
import { Utilities } from '../../utils/utilities';
|
|
12
13
|
export declare class InfoTopbarComponent implements OnInit {
|
|
13
14
|
private _translateService;
|
|
14
15
|
_authenticationService: InfoAuthenticationService;
|
|
@@ -21,6 +22,7 @@ export declare class InfoTopbarComponent implements OnInit {
|
|
|
21
22
|
private _modal;
|
|
22
23
|
private _renderer;
|
|
23
24
|
private _element;
|
|
25
|
+
private _utilities;
|
|
24
26
|
opened: boolean;
|
|
25
27
|
languages: any;
|
|
26
28
|
themes: any;
|
|
@@ -42,7 +44,7 @@ export declare class InfoTopbarComponent implements OnInit {
|
|
|
42
44
|
prodution: boolean;
|
|
43
45
|
notifications: InfoNotificationModel;
|
|
44
46
|
topMenu: any;
|
|
45
|
-
constructor(_translateService: InfoTranslateService, _authenticationService: InfoAuthenticationService, _dataService: InfoDataService, _themeService: InfoThemeService, _router: Router, _dialog: InfoDialogModal, _session: InfoSessionModel, _platform: InfoPlatformModel, _modal: MatDialog, _renderer: Renderer2, _element: ElementRef);
|
|
47
|
+
constructor(_translateService: InfoTranslateService, _authenticationService: InfoAuthenticationService, _dataService: InfoDataService, _themeService: InfoThemeService, _router: Router, _dialog: InfoDialogModal, _session: InfoSessionModel, _platform: InfoPlatformModel, _modal: MatDialog, _renderer: Renderer2, _element: ElementRef, _utilities: Utilities);
|
|
46
48
|
ngOnInit(): void;
|
|
47
49
|
setCompany(company: any): void;
|
|
48
50
|
setLanguage(language: string): void;
|
package/package.json
CHANGED
|
@@ -5,6 +5,9 @@ import { InfoSessionModel } from '../model/session.model';
|
|
|
5
5
|
import { InfoPlatformModel } from '../model/platform.model';
|
|
6
6
|
import { InfoDataService } from '../service/data.service';
|
|
7
7
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
8
|
+
import { Title } from '@angular/platform-browser';
|
|
9
|
+
import { InfoTranslateService } from '../service/translate.service';
|
|
10
|
+
import { Utilities } from '../utils/utilities';
|
|
8
11
|
export declare class InfoAuthenticationService implements CanActivate {
|
|
9
12
|
private _router;
|
|
10
13
|
private _http;
|
|
@@ -12,11 +15,12 @@ export declare class InfoAuthenticationService implements CanActivate {
|
|
|
12
15
|
private _plataforma;
|
|
13
16
|
private _dataService;
|
|
14
17
|
private _modal;
|
|
15
|
-
private
|
|
16
|
-
private
|
|
18
|
+
private _utilities;
|
|
19
|
+
private _translate;
|
|
20
|
+
private _title;
|
|
17
21
|
private _sessionTimeInterval;
|
|
18
22
|
private _sessionActive;
|
|
19
|
-
constructor(_router: Router, _http: HttpClient, _sessao: InfoSessionModel, _plataforma: InfoPlatformModel, _dataService: InfoDataService, _modal: MatDialog);
|
|
23
|
+
constructor(_router: Router, _http: HttpClient, _sessao: InfoSessionModel, _plataforma: InfoPlatformModel, _dataService: InfoDataService, _modal: MatDialog, _utilities: Utilities, _translate: InfoTranslateService, _title: Title);
|
|
20
24
|
getSessao(): InfoSessionModel;
|
|
21
25
|
getPlatform(): InfoPlatformModel;
|
|
22
26
|
canActivate(activatedRouteSnapshot: ActivatedRouteSnapshot, routerStateSnapshot: RouterStateSnapshot): Observable<boolean> | boolean;
|
|
@@ -40,6 +44,7 @@ export declare class InfoAuthenticationService implements CanActivate {
|
|
|
40
44
|
getUrlGenerica(url: string): string;
|
|
41
45
|
private errorHandling;
|
|
42
46
|
private isGuid;
|
|
47
|
+
private toPascalCase;
|
|
43
48
|
}
|
|
44
49
|
export declare class RefreshSessionTimeModalComponent {
|
|
45
50
|
private _ref;
|
|
@@ -3,14 +3,15 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
|
3
3
|
import { InfoDataAccessModel } from '../model/data-access.model';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { InfoPlatformModel } from '../model/platform.model';
|
|
6
|
+
import { Utilities } from '../utils/utilities';
|
|
6
7
|
export declare class InfoDataService {
|
|
7
8
|
private _apiController;
|
|
8
9
|
private _http;
|
|
9
10
|
private _router;
|
|
10
11
|
private _plataforma;
|
|
11
|
-
private
|
|
12
|
+
private _utilities;
|
|
12
13
|
private token;
|
|
13
|
-
constructor(_apiController: any, _http: HttpClient, _router: Router, _plataforma: InfoPlatformModel);
|
|
14
|
+
constructor(_apiController: any, _http: HttpClient, _router: Router, _plataforma: InfoPlatformModel, _utilities: Utilities);
|
|
14
15
|
getToken(): string;
|
|
15
16
|
getHeaderToken(): HttpHeaders;
|
|
16
17
|
getAPIUrl(controller: any): string;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare class Utilities {
|
|
2
|
+
getGuid(): string;
|
|
3
|
+
getGuidEmpty(): string;
|
|
4
|
+
isGuid(value: any): boolean;
|
|
5
|
+
base64ToArrayBuffer(base64: any): any;
|
|
6
|
+
openOrDownload(title: any, blob: any): void;
|
|
7
|
+
removerAcentos(val: string): string;
|
|
8
|
+
getFormatos(): any[];
|
|
9
|
+
getFormatosExcel(): any[];
|
|
10
|
+
getStatus(): any[];
|
|
11
|
+
getStatusCompleto(): any[];
|
|
12
|
+
getStatusProcessamento(): any[];
|
|
13
|
+
getFormatoIdiomas(): any[];
|
|
14
|
+
getGeneros(): any[];
|
|
15
|
+
getTiposEvidencia(): any[];
|
|
16
|
+
getOrdens(): any[];
|
|
17
|
+
validarEmail(form: any, value: any, control: any): void;
|
|
18
|
+
setLocalStorage(key: string, value: any): void;
|
|
19
|
+
getLocalStorage(key: string): any;
|
|
20
|
+
isIE(): boolean;
|
|
21
|
+
retornaTexto(texto: any): string;
|
|
22
|
+
criptografar(texto: any): any;
|
|
23
|
+
descriptografar(texto: any): any;
|
|
24
|
+
}
|