@fluxhub/fluxhub-lib 1.0.289 → 1.0.291

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.
@@ -33,7 +33,7 @@ import { DomSanitizer } from '@angular/platform-browser';
33
33
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
34
34
  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';
35
35
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, forwardRef, ViewChild, Output, EventEmitter, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
36
+ import { Injectable, Component, Directive, Pipe, Inject, PLATFORM_ID, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
37
  import { Http } from '@angular/http';
38
38
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
39
  import { ToastrService } from 'ngx-toastr';
@@ -5656,7 +5656,7 @@ class wkfapp {
5656
5656
  if (this.livs[i].idp != null)
5657
5657
  if (this.user_idp != null)
5658
5658
  if ((this.livs[i].idp.toUpperCase() == this.user_idp.toUpperCase() || this.livs[i].gruppo_parallelo == "*ALLUSERS"))
5659
- if (this.livs[i].livello == 10 && this.livs[i].notifica == 0) {
5659
+ if (this.livs[i].livello <= 10 && this.livs[i].notifica == 0) {
5660
5660
  this.is_Ins = true;
5661
5661
  if (this.livs[i].gruppo_parallelo == "*ALLUSERS") {
5662
5662
  this.livs[i].gruppo_parallelo = "";
@@ -14306,10 +14306,8 @@ class dati_aggiuntivi {
14306
14306
  }
14307
14307
  if (this.clevel == null)
14308
14308
  for (let i = 0; i < this.livs.length; i++) {
14309
- console.log(this.livs[i]);
14310
14309
  if (this.livs[i].livello == liv) {
14311
14310
  if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
14312
- console.log(this.c_canale + " " + this.livs[i].gruppo_parallelo);
14313
14311
  if (this.livs[i].notifica == 0 && (this.c_canale == "" || this.livs[i].gruppo_parallelo == "" || this.c_canale == this.livs[i].gruppo_parallelo || this.livs[i].gruppo_parallelo == '*ALLUSERS')) {
14314
14312
  this.clevel = this.livs[i];
14315
14313
  break;
@@ -14432,15 +14430,16 @@ class dati_aggiuntivi {
14432
14430
  */
14433
14431
  calcolanextandjump() {
14434
14432
  /** @type {?} */
14435
- var liv = 0;
14433
+ let liv = 0;
14436
14434
  /** @type {?} */
14437
- var cliv = 100000;
14435
+ let cliv = 100000;
14438
14436
  liv = this.clevel.livello;
14439
14437
  console.log('liv: ' + liv);
14440
- for (var i = 0; i < this.livs.length; i++)
14438
+ for (let i = 0; i < this.livs.length; i++)
14441
14439
  if (liv == 0 || (liv < this.livs[i].livello && cliv > this.livs[i].livello)) {
14442
14440
  this.nlevel = this.livs[i];
14443
14441
  cliv = this.livs[i].livello;
14442
+ console.log('calcolo next ', this.nlevel);
14444
14443
  }
14445
14444
  liv = this.wkf_rule(cliv);
14446
14445
  /** @type {?} */
@@ -14488,15 +14487,18 @@ class dati_aggiuntivi {
14488
14487
  return;
14489
14488
  }
14490
14489
  /** @type {?} */
14491
- var arrAutori = new Array();
14490
+ let arrAutori = new Array();
14492
14491
  if (this.clevel.gruppo_parallelo == "") {
14492
+ console.log('senza gp ', this.clevel.gruppo_parallelo + " " + this.nlevel.livello);
14493
14493
  for (var i = 0; i < this.livs.length; i++)
14494
14494
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].notifica == 0)
14495
14495
  arrAutori.push(this.livs[i]);
14496
+ console.log('arrAutori ', arrAutori);
14496
14497
  }
14497
14498
  else {
14498
14499
  /** @type {?} */
14499
14500
  var b_canale = false;
14501
+ console.log('con gp ', this.clevel.gruppo_parallelo);
14500
14502
  for (var i = 0; i < this.livs.length; i++)
14501
14503
  if (this.livs[i].livello == this.nlevel.livello && this.livs[i].gruppo_parallelo != "")
14502
14504
  b_canale = true;