@fluxhub/fluxhub-lib 1.0.280 → 1.0.282

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.
@@ -34,7 +34,7 @@ import { DomSanitizer } from '@angular/platform-browser';
34
34
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
35
  import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, Output, EventEmitter, forwardRef, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, ViewChild, Output, EventEmitter, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -18015,26 +18015,29 @@ var FHGuard = /** @class */ (function () {
18015
18015
  function (next, state) {
18016
18016
  var _this = this;
18017
18017
  this.routingDestination = next.url[0].path;
18018
- // //console.log(this.routingDestination);
18018
+ console.log('qui1');
18019
18019
  if (this.routingDestination == '')
18020
18020
  return true;
18021
18021
  if (this.routingDestination == 'login' || this.routingDestination == 'rp' || this.routingDestination == 'pr' || this.routingDestination == '/')
18022
18022
  return true;
18023
+ console.log('qui2');
18023
18024
  if (this.auth.checkCredentials()) {
18025
+ console.log('qui3');
18024
18026
  if (this.routingDestination == 'home')
18025
18027
  return true;
18026
18028
  //console.log('canActivate 1');
18027
18029
  if (this.app_s.user_isadmin != null)
18028
18030
  if (this.app_s.user_isadmin == "1")
18029
18031
  return true;
18032
+ console.log('qui4');
18030
18033
  return new Promise((/**
18031
18034
  * @param {?} resolve
18032
18035
  * @return {?}
18033
18036
  */
18034
18037
  function (resolve) {
18035
- //console.log('canActivate 2');
18038
+ console.log('qui5');
18036
18039
  if (_this.arr_accessi != null) {
18037
- //console.log('canActivate 3');
18040
+ console.log('qui6');
18038
18041
  for (var i = 0; i < _this.arr_accessi.length; i++) {
18039
18042
  if (_this.arr_accessi[i].type == 'M')
18040
18043
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
@@ -18048,6 +18051,7 @@ var FHGuard = /** @class */ (function () {
18048
18051
  resolve(false);
18049
18052
  return;
18050
18053
  }
18054
+ console.log('qui7');
18051
18055
  //console.log('canActivate 5');
18052
18056
  /** @type {?} */
18053
18057
  var p = new QParam();
@@ -18063,6 +18067,7 @@ var FHGuard = /** @class */ (function () {
18063
18067
  if (data != null)
18064
18068
  if (data.result_msg == "OK")
18065
18069
  if (data.result_data.length > 0) {
18070
+ console.log('qui8');
18066
18071
  //console.log('canActivate 6');
18067
18072
  _this.appService.user_roles = data.result_data[0].roles;
18068
18073
  if (_this.appService.user_roles.length > 0)
@@ -18084,7 +18089,7 @@ var FHGuard = /** @class */ (function () {
18084
18089
  * @return {?}
18085
18090
  */
18086
18091
  function (data) {
18087
- //console.log('canActivate 9');
18092
+ console.log('qui9');
18088
18093
  _this.arr_accessi = data.result_data;
18089
18094
  for (var i = 0; i < _this.arr_accessi.length; i++) {
18090
18095
  //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
@@ -18112,6 +18117,7 @@ var FHGuard = /** @class */ (function () {
18112
18117
  else {
18113
18118
  /** @type {?} */
18114
18119
  var p_2 = new QParam();
18120
+ console.log('qui10');
18115
18121
  p_2.sql = "SELECT_APPS_USER_ALL";
18116
18122
  _this.appService.getState().app_enabled = new Array();
18117
18123
  p_2.types = ['string'];
@@ -18124,7 +18130,9 @@ var FHGuard = /** @class */ (function () {
18124
18130
  function (data) {
18125
18131
  //console.log('canActivate 9');
18126
18132
  _this.arr_accessi = data.result_data;
18133
+ console.log('qui11');
18127
18134
  for (var i = 0; i < _this.arr_accessi.length; i++) {
18135
+ console.log('qui12');
18128
18136
  //console.log('[' + this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + this.routingDestination.split('/')[0] + ']');
18129
18137
  if (_this.arr_accessi[i].type == 'M') {
18130
18138
  if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {