info-library 2.16.0-beta → 3.0.0-beta

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 (79) hide show
  1. package/controls/autocomplete/autocomplete.component.d.ts +2 -1
  2. package/controls/date/date.component.d.ts +2 -1
  3. package/controls/date-month/date-month.component.d.ts +2 -1
  4. package/controls/grid/grid.component.d.ts +5 -5
  5. package/controls/input/input.component.d.ts +13 -3
  6. package/controls/multi-select/multi-select.component.d.ts +3 -1
  7. package/controls/select/select.component.d.ts +2 -1
  8. package/directives/unmask.directive.d.ts +2 -1
  9. package/esm2022/controls/alert/alert.component.mjs +8 -10
  10. package/esm2022/controls/autocomplete/autocomplete.component.mjs +33 -26
  11. package/esm2022/controls/big-checkbox/big-checkbox.component.mjs +27 -25
  12. package/esm2022/controls/card/card.component.mjs +12 -6
  13. package/esm2022/controls/card-menu/card-menu.component.mjs +14 -16
  14. package/esm2022/controls/checkbox/checkbox.component.mjs +13 -13
  15. package/esm2022/controls/chips/chips.component.mjs +12 -11
  16. package/esm2022/controls/date/date.component.mjs +64 -32
  17. package/esm2022/controls/date-month/date-month.component.mjs +64 -31
  18. package/esm2022/controls/editor/editor.component.mjs +35 -31
  19. package/esm2022/controls/grid/grid.component.mjs +529 -511
  20. package/esm2022/controls/input/input.component.mjs +146 -71
  21. package/esm2022/controls/input-list/input-list.component.mjs +16 -15
  22. package/esm2022/controls/list-checkbox/list-checkbox.component.mjs +16 -12
  23. package/esm2022/controls/message/message.component.mjs +9 -11
  24. package/esm2022/controls/multi-select/multi-select.component.mjs +35 -22
  25. package/esm2022/controls/paginator/paginator.component.mjs +15 -16
  26. package/esm2022/controls/select/select.component.mjs +32 -23
  27. package/esm2022/controls/timeline/timeline.component.mjs +15 -16
  28. package/esm2022/directives/mask.directive.mjs +17 -8
  29. package/esm2022/directives/unmask.directive.mjs +14 -7
  30. package/esm2022/info-library.module.mjs +10 -5
  31. package/esm2022/layouts/dialog/dialog.component.mjs +10 -6
  32. package/esm2022/layouts/filter/filter.component.mjs +179 -0
  33. package/esm2022/layouts/loading/loading.component.mjs +7 -9
  34. package/esm2022/layouts/main/main.component.mjs +101 -54
  35. package/esm2022/layouts/modal/modal.component.mjs +37 -22
  36. package/esm2022/layouts/pagebar/pagebar.component.mjs +125 -97
  37. package/esm2022/layouts/sidebar/sidebar.component.mjs +152 -100
  38. package/esm2022/layouts/topbar/topbar.component.mjs +417 -253
  39. package/esm2022/layouts/topmenu/topmenu.component.mjs +20 -12
  40. package/esm2022/model/app-config.model.mjs +12 -12
  41. package/esm2022/model/data-access.model.mjs +10 -8
  42. package/esm2022/model/dialog-result.model.mjs +3 -2
  43. package/esm2022/model/dialog.model.mjs +13 -14
  44. package/esm2022/model/form-prop.model.mjs +8 -6
  45. package/esm2022/model/grid-button.model.mjs +12 -7
  46. package/esm2022/model/last-search.model.mjs +5 -7
  47. package/esm2022/model/login.model.mjs +4 -2
  48. package/esm2022/model/method-grid-button.model.mjs +4 -2
  49. package/esm2022/model/notification.model.mjs +9 -5
  50. package/esm2022/model/pagebar-buttons.model.mjs +6 -6
  51. package/esm2022/model/permission.model.mjs +4 -1
  52. package/esm2022/model/platform.model.mjs +13 -14
  53. package/esm2022/model/session.model.mjs +25 -6
  54. package/esm2022/pipe/mask.pipe.mjs +10 -6
  55. package/esm2022/pipe/translate.pipe.mjs +4 -3
  56. package/esm2022/public_api.mjs +2 -1
  57. package/esm2022/service/authentication.service.mjs +89 -36
  58. package/esm2022/service/configuration.service.mjs +41 -10
  59. package/esm2022/service/data.service.mjs +38 -21
  60. package/esm2022/service/theme.service.mjs +16 -6
  61. package/esm2022/service/translate.service.mjs +9 -5
  62. package/esm2022/utils/utilities.mjs +52 -5
  63. package/fesm2022/info-library.mjs +2551 -1649
  64. package/fesm2022/info-library.mjs.map +1 -1
  65. package/info-library-3.0.0-beta.tgz +0 -0
  66. package/info-library.module.d.ts +32 -31
  67. package/layouts/filter/filter.component.d.ts +24 -0
  68. package/layouts/main/main.component.d.ts +4 -0
  69. package/layouts/modal/modal.component.d.ts +1 -0
  70. package/layouts/sidebar/sidebar.component.d.ts +1 -1
  71. package/layouts/topbar/topbar.component.d.ts +4 -1
  72. package/model/app-config.model.d.ts +2 -0
  73. package/model/session.model.d.ts +5 -0
  74. package/package.json +1 -1
  75. package/public_api.d.ts +1 -0
  76. package/service/authentication.service.d.ts +4 -2
  77. package/service/configuration.service.d.ts +4 -1
  78. package/service/data.service.d.ts +2 -0
  79. package/utils/utilities.d.ts +11 -0
Binary file
@@ -23,38 +23,39 @@ import * as i21 from "./controls/editor/editor.component";
23
23
  import * as i22 from "./controls/multi-select/multi-select.component";
24
24
  import * as i23 from "./controls/chips/chips.component";
25
25
  import * as i24 from "./layouts/dialog/dialog.component";
26
- import * as i25 from "./layouts/loading/loading.component";
27
- import * as i26 from "./layouts/main/main.component";
28
- import * as i27 from "./layouts/modal/modal.component";
29
- import * as i28 from "./layouts/pagebar/pagebar.component";
30
- import * as i29 from "./layouts/sidebar/sidebar.component";
31
- import * as i30 from "./layouts/topbar/topbar.component";
32
- import * as i31 from "./layouts/topmenu/topmenu.component";
33
- import * as i32 from "./service/authentication.service";
34
- import * as i33 from "@angular/common";
35
- import * as i34 from "@angular/common/http";
36
- import * as i35 from "@angular/forms";
37
- import * as i36 from "@angular/material/card";
38
- import * as i37 from "@angular/material/icon";
39
- import * as i38 from "@angular/material/input";
40
- import * as i39 from "@angular/material/form-field";
41
- import * as i40 from "@angular/material/list";
42
- import * as i41 from "@angular/material/select";
43
- import * as i42 from "@angular/material/checkbox";
44
- import * as i43 from "@angular/material/radio";
45
- import * as i44 from "@angular/material/button";
46
- import * as i45 from "@angular/material/datepicker";
47
- import * as i46 from "@angular/material-moment-adapter";
48
- import * as i47 from "@angular/material/dialog";
49
- import * as i48 from "@angular/material/progress-bar";
50
- import * as i49 from "@angular/material/autocomplete";
51
- import * as i50 from "@angular/material/tooltip";
52
- import * as i51 from "@angular/router";
53
- import * as i52 from "ng2-currency-mask";
54
- import * as i53 from "@kolkov/angular-editor";
55
- import * as i54 from "@angular/material/chips";
26
+ import * as i25 from "./layouts/filter/filter.component";
27
+ import * as i26 from "./layouts/loading/loading.component";
28
+ import * as i27 from "./layouts/main/main.component";
29
+ import * as i28 from "./layouts/modal/modal.component";
30
+ import * as i29 from "./layouts/pagebar/pagebar.component";
31
+ import * as i30 from "./layouts/sidebar/sidebar.component";
32
+ import * as i31 from "./layouts/topbar/topbar.component";
33
+ import * as i32 from "./layouts/topmenu/topmenu.component";
34
+ import * as i33 from "./service/authentication.service";
35
+ import * as i34 from "@angular/common";
36
+ import * as i35 from "@angular/common/http";
37
+ import * as i36 from "@angular/forms";
38
+ import * as i37 from "@angular/material/card";
39
+ import * as i38 from "@angular/material/icon";
40
+ import * as i39 from "@angular/material/input";
41
+ import * as i40 from "@angular/material/form-field";
42
+ import * as i41 from "@angular/material/list";
43
+ import * as i42 from "@angular/material/select";
44
+ import * as i43 from "@angular/material/checkbox";
45
+ import * as i44 from "@angular/material/radio";
46
+ import * as i45 from "@angular/material/button";
47
+ import * as i46 from "@angular/material/datepicker";
48
+ import * as i47 from "@angular/material-moment-adapter";
49
+ import * as i48 from "@angular/material/dialog";
50
+ import * as i49 from "@angular/material/progress-bar";
51
+ import * as i50 from "@angular/material/autocomplete";
52
+ import * as i51 from "@angular/material/tooltip";
53
+ import * as i52 from "@angular/router";
54
+ import * as i53 from "ng2-currency-mask";
55
+ import * as i54 from "@kolkov/angular-editor";
56
+ import * as i55 from "@angular/material/chips";
56
57
  export declare class InfoLibraryModule {
57
58
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoLibraryModule, never>;
58
- static ɵmod: i0.ɵɵNgModuleDeclaration<InfoLibraryModule, [typeof i1.InfoTranslatePipe, typeof i2.InfoMaskPipe, typeof i3.InfoMaskDirective, typeof i4.InfoUnmaskDirective, typeof i5.InfoAlertComponent, typeof i6.InfoAutoCompleteComponent, typeof i7.InfoBigCheckboxComponent, typeof i8.InfoCardComponent, typeof i9.InfoMenuCardComponent, typeof i10.InfoCheckboxComponent, typeof i11.InfoDateComponent, typeof i12.InfoDateMonthComponent, typeof i13.InfoGridComponent, typeof i13.InfoGridModalComponent, typeof i14.InfoInputComponent, typeof i15.InfoInputListComponent, typeof i16.InfoListCheckboxComponent, typeof i17.InfoMessageComponent, typeof i18.InfoPaginatorComponent, typeof i19.InfoSelectComponent, typeof i20.InfoTimelineComponent, typeof i21.InfoEditorComponent, typeof i22.InfoMultiSelectComponent, typeof i23.InfoChipsComponent, typeof i24.InfoDialogComponent, typeof i25.InfoLoadingComponent, typeof i26.InfoMainComponent, typeof i27.InfoModalComponent, typeof i28.InfoPagebarComponent, typeof i29.InfoSidebarComponent, typeof i30.InfoTopbarComponent, typeof i31.InfoTopMenuComponent, typeof i28.AtalhoModalComponent, typeof i32.RefreshSessionTimeModalComponent], [typeof i33.CommonModule, typeof i34.HttpClientModule, typeof i35.FormsModule, typeof i35.ReactiveFormsModule, typeof i36.MatCardModule, typeof i37.MatIconModule, typeof i38.MatInputModule, typeof i39.MatFormFieldModule, typeof i40.MatListModule, typeof i41.MatSelectModule, typeof i42.MatCheckboxModule, typeof i43.MatRadioModule, typeof i44.MatButtonModule, typeof i45.MatDatepickerModule, typeof i46.MatMomentDateModule, typeof i47.MatDialogModule, typeof i48.MatProgressBarModule, typeof i49.MatAutocompleteModule, typeof i50.MatTooltipModule, typeof i51.RouterModule, typeof i52.CurrencyMaskModule, typeof i53.AngularEditorModule, typeof i54.MatChipsModule], [typeof i1.InfoTranslatePipe, typeof i2.InfoMaskPipe, typeof i5.InfoAlertComponent, typeof i6.InfoAutoCompleteComponent, typeof i7.InfoBigCheckboxComponent, typeof i8.InfoCardComponent, typeof i9.InfoMenuCardComponent, typeof i10.InfoCheckboxComponent, typeof i11.InfoDateComponent, typeof i12.InfoDateMonthComponent, typeof i13.InfoGridComponent, typeof i13.InfoGridModalComponent, typeof i14.InfoInputComponent, typeof i15.InfoInputListComponent, typeof i16.InfoListCheckboxComponent, typeof i17.InfoMessageComponent, typeof i18.InfoPaginatorComponent, typeof i19.InfoSelectComponent, typeof i20.InfoTimelineComponent, typeof i21.InfoEditorComponent, typeof i22.InfoMultiSelectComponent, typeof i23.InfoChipsComponent, typeof i24.InfoDialogComponent, typeof i25.InfoLoadingComponent, typeof i26.InfoMainComponent, typeof i27.InfoModalComponent, typeof i28.InfoPagebarComponent, typeof i29.InfoSidebarComponent, typeof i30.InfoTopbarComponent, typeof i31.InfoTopMenuComponent]>;
59
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InfoLibraryModule, [typeof i1.InfoTranslatePipe, typeof i2.InfoMaskPipe, typeof i3.InfoMaskDirective, typeof i4.InfoUnmaskDirective, typeof i5.InfoAlertComponent, typeof i6.InfoAutoCompleteComponent, typeof i7.InfoBigCheckboxComponent, typeof i8.InfoCardComponent, typeof i9.InfoMenuCardComponent, typeof i10.InfoCheckboxComponent, typeof i11.InfoDateComponent, typeof i12.InfoDateMonthComponent, typeof i13.InfoGridComponent, typeof i13.InfoGridModalComponent, typeof i14.InfoInputComponent, typeof i15.InfoInputListComponent, typeof i16.InfoListCheckboxComponent, typeof i17.InfoMessageComponent, typeof i18.InfoPaginatorComponent, typeof i19.InfoSelectComponent, typeof i20.InfoTimelineComponent, typeof i21.InfoEditorComponent, typeof i22.InfoMultiSelectComponent, typeof i23.InfoChipsComponent, typeof i24.InfoDialogComponent, typeof i25.InfoFilterComponent, typeof i26.InfoLoadingComponent, typeof i27.InfoMainComponent, typeof i28.InfoModalComponent, typeof i29.InfoPagebarComponent, typeof i30.InfoSidebarComponent, typeof i31.InfoTopbarComponent, typeof i32.InfoTopMenuComponent, typeof i29.AtalhoModalComponent, typeof i33.RefreshSessionTimeModalComponent], [typeof i34.CommonModule, typeof i35.HttpClientModule, typeof i36.FormsModule, typeof i36.ReactiveFormsModule, typeof i37.MatCardModule, typeof i38.MatIconModule, typeof i39.MatInputModule, typeof i40.MatFormFieldModule, typeof i41.MatListModule, typeof i42.MatSelectModule, typeof i43.MatCheckboxModule, typeof i44.MatRadioModule, typeof i45.MatButtonModule, typeof i46.MatDatepickerModule, typeof i47.MatMomentDateModule, typeof i48.MatDialogModule, typeof i49.MatProgressBarModule, typeof i50.MatAutocompleteModule, typeof i51.MatTooltipModule, typeof i52.RouterModule, typeof i53.CurrencyMaskModule, typeof i54.AngularEditorModule, typeof i55.MatChipsModule], [typeof i1.InfoTranslatePipe, typeof i2.InfoMaskPipe, typeof i5.InfoAlertComponent, typeof i6.InfoAutoCompleteComponent, typeof i7.InfoBigCheckboxComponent, typeof i8.InfoCardComponent, typeof i9.InfoMenuCardComponent, typeof i10.InfoCheckboxComponent, typeof i11.InfoDateComponent, typeof i12.InfoDateMonthComponent, typeof i13.InfoGridComponent, typeof i13.InfoGridModalComponent, typeof i14.InfoInputComponent, typeof i15.InfoInputListComponent, typeof i16.InfoListCheckboxComponent, typeof i17.InfoMessageComponent, typeof i18.InfoPaginatorComponent, typeof i19.InfoSelectComponent, typeof i20.InfoTimelineComponent, typeof i21.InfoEditorComponent, typeof i22.InfoMultiSelectComponent, typeof i23.InfoChipsComponent, typeof i24.InfoDialogComponent, typeof i25.InfoFilterComponent, typeof i26.InfoLoadingComponent, typeof i27.InfoMainComponent, typeof i28.InfoModalComponent, typeof i29.InfoPagebarComponent, typeof i30.InfoSidebarComponent, typeof i31.InfoTopbarComponent, typeof i32.InfoTopMenuComponent]>;
59
60
  static ɵinj: i0.ɵɵInjectorDeclaration<InfoLibraryModule>;
60
61
  }
@@ -0,0 +1,24 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InfoFilterComponent {
4
+ disabled: boolean;
5
+ opened: boolean;
6
+ loading: boolean;
7
+ title: string;
8
+ enabledAction: boolean;
9
+ enabledButtons: boolean;
10
+ buttonAction: string;
11
+ buttonActionIcon: string;
12
+ buttonCancel: string;
13
+ buttonFilter: string;
14
+ oncancel: EventEmitter<any>;
15
+ onclose: EventEmitter<any>;
16
+ onsearch: EventEmitter<any>;
17
+ constructor();
18
+ search(): void;
19
+ cancel(): void;
20
+ open(): void;
21
+ close(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<InfoFilterComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<InfoFilterComponent, "info-filter", never, { "disabled": { "alias": "disabled"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "enabledAction": { "alias": "enabledAction"; "required": false; }; "enabledButtons": { "alias": "enabledButtons"; "required": false; }; "buttonAction": { "alias": "buttonAction"; "required": false; }; "buttonActionIcon": { "alias": "buttonActionIcon"; "required": false; }; "buttonCancel": { "alias": "buttonCancel"; "required": false; }; "buttonFilter": { "alias": "buttonFilter"; "required": false; }; }, { "oncancel": "oncancel"; "onclose": "onclose"; "onsearch": "onsearch"; }, never, ["[actions]", "[actions-aux]", "[fields]"], false, never>;
24
+ }
@@ -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 { InfoSidebarComponent } from "../sidebar/sidebar.component";
8
9
  import { Utilities } from "../../utils/utilities";
9
10
  import * as i0 from "@angular/core";
10
11
  export declare class InfoMainComponent implements OnInit {
@@ -21,6 +22,7 @@ export declare class InfoMainComponent implements OnInit {
21
22
  messages: any[];
22
23
  enabledia: boolean;
23
24
  private _themes;
25
+ protected ready: boolean;
24
26
  get themes(): any;
25
27
  set themes(value: any);
26
28
  languages: any;
@@ -44,10 +46,12 @@ export declare class InfoMainComponent implements OnInit {
44
46
  ongetnotification: EventEmitter<any>;
45
47
  onverifynotification: EventEmitter<any>;
46
48
  topbar: InfoTopbarComponent;
49
+ sidebar: InfoSidebarComponent;
47
50
  constructor(_platform: InfoPlatformModel, _session: InfoSessionModel, _router: Router, _dataAccessService: InfoDataService, _themeService: InfoThemeService, _renderer: Renderer2, _element: ElementRef, _utilities: Utilities);
48
51
  ngOnInit(): void;
49
52
  onChangeTopBarState(): void;
50
53
  onChangeSideBarState(): void;
54
+ onClick(targetElement: any): void;
51
55
  getLoggedUser(): void;
52
56
  onGetNotificationsTopBar(event: any): void;
53
57
  onVerifyNotificationsTopBar(event: any): void;
@@ -27,6 +27,7 @@ export declare class InfoModalComponent implements ControlValueAccessor {
27
27
  onChange: any;
28
28
  onTouched: any;
29
29
  constructor(_dataAccessService: InfoDataService, prop: InfoFormPropModel, _ref: MatDialogRef<any>);
30
+ get formInvalid(): any;
30
31
  ngOnInit(): void;
31
32
  submit(): void;
32
33
  close(): void;
@@ -16,7 +16,7 @@ export declare class InfoSidebarComponent implements OnInit {
16
16
  private _lastSearch;
17
17
  private _router;
18
18
  private _renderer;
19
- private _element;
19
+ _element: ElementRef;
20
20
  api: any;
21
21
  method: string;
22
22
  activemenubyurl: boolean;
@@ -22,7 +22,7 @@ export declare class InfoTopbarComponent implements OnInit {
22
22
  _platform: InfoPlatformModel;
23
23
  private _modal;
24
24
  private _renderer;
25
- private _element;
25
+ _element: ElementRef;
26
26
  private _utilities;
27
27
  opened: boolean;
28
28
  languages: any;
@@ -49,6 +49,9 @@ export declare class InfoTopbarComponent implements OnInit {
49
49
  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);
50
50
  ngOnInit(): void;
51
51
  setCompany(company: any): void;
52
+ setUnity(unity: any): void;
53
+ setCompanyUnity(company: any, unity: any): void;
54
+ setClient(client: any): void;
52
55
  setLanguage(language: string): void;
53
56
  setTheme(theme: any): void;
54
57
  toggleMode(): void;
@@ -8,4 +8,6 @@ export declare class InfoAppConfigModel {
8
8
  style: string;
9
9
  topMenu: boolean;
10
10
  enabledPrime: boolean;
11
+ title: string;
12
+ headers: any;
11
13
  }
@@ -6,8 +6,11 @@ export declare class InfoSessionModel {
6
6
  Email: string;
7
7
  Perfil: string;
8
8
  EmpresaId: number;
9
+ UnidadeId: number;
9
10
  TemaId: number;
11
+ TemaCorBase: string;
10
12
  Empresa: string;
13
+ Unidade: string;
11
14
  UltimoAcesso: Date;
12
15
  Master: boolean;
13
16
  Versao: string;
@@ -16,6 +19,8 @@ export declare class InfoSessionModel {
16
19
  OcultarNomeCliente: boolean;
17
20
  Permissoes: InfoPermissionModel[];
18
21
  Empresas: any[];
22
+ Unidades: any[];
23
+ Clientes: any[];
19
24
  Parametros: any[];
20
25
  MFA: boolean;
21
26
  TempoInatividade: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "info-library",
3
- "version": "2.16.0-beta",
3
+ "version": "3.0.0-beta",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^7.0.0",
6
6
  "@angular/core": "^7.0.0",
package/public_api.d.ts CHANGED
@@ -27,6 +27,7 @@ export { InfoSidebarComponent } from './layouts/sidebar/sidebar.component';
27
27
  export { InfoTopbarComponent } from './layouts/topbar/topbar.component';
28
28
  export { InfoTopMenuComponent } from './layouts/topmenu/topmenu.component';
29
29
  export { InfoDialogComponent, InfoDialogModal } from './layouts/dialog/dialog.component';
30
+ export { InfoFilterComponent } from './layouts/filter/filter.component';
30
31
  export { InfoLoadingComponent } from './layouts/loading/loading.component';
31
32
  export { InfoModalComponent } from './layouts/modal/modal.component';
32
33
  export { InfoPagebarComponent } from './layouts/pagebar/pagebar.component';
@@ -1,4 +1,4 @@
1
- import { RouterStateSnapshot, ActivatedRouteSnapshot, Router } from '@angular/router';
1
+ import { CanActivate, RouterStateSnapshot, ActivatedRouteSnapshot, Router } from '@angular/router';
2
2
  import { HttpClient } from '@angular/common/http';
3
3
  import { Observable } from 'rxjs';
4
4
  import { InfoSessionModel } from '../model/session.model';
@@ -9,7 +9,7 @@ import { Title } from '@angular/platform-browser';
9
9
  import { InfoTranslateService } from '../service/translate.service';
10
10
  import { Utilities } from '../utils/utilities';
11
11
  import * as i0 from "@angular/core";
12
- export declare class InfoAuthenticationService {
12
+ export declare class InfoAuthenticationService implements CanActivate {
13
13
  private _router;
14
14
  private _http;
15
15
  private _sessao;
@@ -30,6 +30,8 @@ export declare class InfoAuthenticationService {
30
30
  showMessage(): void;
31
31
  login(usuario: string, senha: string, reCaptchaToken?: string, codigo2FA?: string): Observable<any>;
32
32
  trocarEmpresa(usuario: string, empresaId: number): Observable<any>;
33
+ trocarUnidade(usuario: string, empresaId: number, unidadeId: number): Observable<any>;
34
+ trocarCliente(usuario: string, clienteId: number): Observable<any>;
33
35
  clonar(usuario: string): Observable<any>;
34
36
  logout(): void;
35
37
  getPermissions(url: string, logAtividade?: boolean): Observable<any>;
@@ -2,13 +2,16 @@ import { HttpClient } from "@angular/common/http";
2
2
  import { InfoPlatformModel } from "../model/platform.model";
3
3
  import { InfoAppConfigModel } from "../model/app-config.model";
4
4
  import { InfoThemeService } from "./theme.service";
5
+ import { Utilities } from "../utils/utilities";
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class InfoConfigurationService {
7
8
  private _http;
8
9
  private _plataforma;
9
10
  private _themeService;
10
- constructor(_http: HttpClient, _plataforma: InfoPlatformModel, _themeService: InfoThemeService);
11
+ private _utilities;
12
+ constructor(_http: HttpClient, _plataforma: InfoPlatformModel, _themeService: InfoThemeService, _utilities: Utilities);
11
13
  initialize(): Promise<InfoAppConfigModel>;
14
+ loadCSSAPI(): void;
12
15
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoConfigurationService, never>;
13
16
  static ɵprov: i0.ɵɵInjectableDeclaration<InfoConfigurationService>;
14
17
  }
@@ -14,6 +14,7 @@ export declare class InfoDataService {
14
14
  private token;
15
15
  constructor(_apiController: any, _http: HttpClient, _router: Router, _plataforma: InfoPlatformModel, _utilities: Utilities);
16
16
  getToken(): string;
17
+ getHeaderDefault(): HttpHeaders;
17
18
  getHeaderToken(): HttpHeaders;
18
19
  getAPIUrl(controller: any): string;
19
20
  getNoToken(controller: any): Observable<InfoDataAccessModel>;
@@ -34,6 +35,7 @@ export declare class InfoDataService {
34
35
  request(controller: any, model: any[], method?: string): Observable<InfoDataAccessModel>;
35
36
  request(controller: any, model: any[], method?: string, param?: string): Observable<InfoDataAccessModel>;
36
37
  private errorHandling;
38
+ private getMethod;
37
39
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoDataService, never>;
38
40
  static ɵprov: i0.ɵɵInjectableDeclaration<InfoDataService>;
39
41
  }
@@ -4,6 +4,8 @@ export declare class Utilities {
4
4
  getGuidEmpty(): string;
5
5
  isGuid(value: any): boolean;
6
6
  base64ToArrayBuffer(base64: any): any;
7
+ jsonToEncrypt(object: any): any;
8
+ decryptToJson(value: any): any;
7
9
  openOrDownload(title: any, blob: any): void;
8
10
  removerAcentos(val: string): string;
9
11
  getFormatos(): any[];
@@ -20,8 +22,17 @@ export declare class Utilities {
20
22
  getLocalStorage(key: string): any;
21
23
  isIE(): boolean;
22
24
  retornaTexto(texto: any): string;
25
+ private key;
26
+ private iv;
23
27
  criptografar(texto: any): any;
24
28
  descriptografar(texto: any): any;
25
29
  static ɵfac: i0.ɵɵFactoryDeclaration<Utilities, never>;
26
30
  static ɵprov: i0.ɵɵInjectableDeclaration<Utilities>;
27
31
  }
32
+ export declare abstract class StaticUtils {
33
+ static validarCnpj(cnpj: string): boolean;
34
+ static validarCpf(cpf: string): boolean;
35
+ private static getDigito;
36
+ private static getSomaCnpj;
37
+ private static getSomaCpf;
38
+ }