@fluxhub/fluxhub-lib 1.0.301 → 1.0.303

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.
@@ -1,4 +1,5 @@
1
1
  import { SimpleCrypt } from 'ngx-simple-crypt';
2
+ import { AES, enc } from 'crypto-js';
2
3
  import 'clipboard';
3
4
  import 'prismjs';
4
5
  import 'prismjs/plugins/toolbar/prism-toolbar';
@@ -33,7 +34,7 @@ import { DomSanitizer } from '@angular/platform-browser';
33
34
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
34
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';
35
36
  import { ActivatedRoute, Router } from '@angular/router';
36
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, forwardRef, Output, EventEmitter, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, Output, EventEmitter, forwardRef, ViewChild, ElementRef, Optional, HostListener, ViewContainerRef, defineInjectable, inject, NgModule } from '@angular/core';
37
38
  import { Http } from '@angular/http';
38
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
39
40
  import { ToastrService } from 'ngx-toastr';
@@ -1084,16 +1085,30 @@ class UtilityService {
1084
1085
  /** @type {?} */
1085
1086
  var k = 1;
1086
1087
  /** @type {?} */
1087
- var enc = "";
1088
+ var enc$$1 = "";
1088
1089
  for (var i = 0; i < s.length; i++) {
1089
1090
  /** @type {?} */
1090
1091
  var a = s.charCodeAt(i);
1091
1092
  /** @type {?} */
1092
1093
  var b = a ^ k;
1093
1094
  // console.log(b + ' ' + String.fromCharCode(b));
1094
- enc = enc + String.fromCharCode(b);
1095
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1095
1096
  }
1096
- return enc;
1097
+ return enc$$1;
1098
+ }
1099
+ /**
1100
+ * @param {?} s
1101
+ * @return {?}
1102
+ */
1103
+ encrypt_v3(s) {
1104
+ return AES.encrypt(s, "}?fhg7SP&^N4").toString();
1105
+ }
1106
+ /**
1107
+ * @param {?} s
1108
+ * @return {?}
1109
+ */
1110
+ decrypt_v3(s) {
1111
+ return AES.decrypt(s, "}?fhg7SP&^N4").toString(enc.Utf8);
1097
1112
  }
1098
1113
  /**
1099
1114
  * @param {?} s
@@ -1103,15 +1118,15 @@ class UtilityService {
1103
1118
  /** @type {?} */
1104
1119
  var k = 1;
1105
1120
  /** @type {?} */
1106
- var enc = "";
1121
+ var enc$$1 = "";
1107
1122
  for (var i = 0; i < s.length; i++) {
1108
1123
  /** @type {?} */
1109
1124
  var a = s.charCodeAt(i);
1110
1125
  /** @type {?} */
1111
1126
  var b = a ^ k;
1112
- enc = enc + String.fromCharCode(b);
1127
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1113
1128
  }
1114
- return enc;
1129
+ return enc$$1;
1115
1130
  }
1116
1131
  /**
1117
1132
  * @param {?} s
@@ -8552,13 +8567,17 @@ class FHWinComboSelect {
8552
8567
  this.m_appService = m_appService;
8553
8568
  this.label = "";
8554
8569
  this.width = "";
8570
+ this.nota = false;
8571
+ this.nota_val = "";
8555
8572
  }
8556
8573
  /**
8557
8574
  * @param {?} lab
8558
8575
  * @param {?} myD
8576
+ * @param {?=} nota
8559
8577
  * @return {?}
8560
8578
  */
8561
- set_selection(lab, myD) {
8579
+ set_selection(lab, myD, nota = false) {
8580
+ this.nota = nota;
8562
8581
  this.label = lab;
8563
8582
  for (let i = 0; i < myD.length; i++)
8564
8583
  this.cmb_sel.add_option(myD[i]);
@@ -8571,6 +8590,7 @@ class FHWinComboSelect {
8571
8590
  this.toastr.error('Selezionare un valore');
8572
8591
  return;
8573
8592
  }
8593
+ this.cmb_sel.getObj().nota = this.nota_val;
8574
8594
  this.dialogRef.close(this.cmb_sel.getObj());
8575
8595
  }
8576
8596
  /**
@@ -8590,6 +8610,10 @@ FHWinComboSelect.decorators = [
8590
8610
  <div [style.width]="width">
8591
8611
  <FHComboBox #cmb_sel [init_fill]="false"></FHComboBox>
8592
8612
  </div>
8613
+ <mat-form-field *ngIf="nota" >
8614
+ <textarea matInput placeholder="Nota"[(ngModel)]="nota_val" rows="12"></textarea>
8615
+ </mat-form-field>
8616
+
8593
8617
  </mat-dialog-content>
8594
8618
 
8595
8619