@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';
@@ -34,7 +35,7 @@ import { DomSanitizer } from '@angular/platform-browser';
34
35
  import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
36
  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
37
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Directive, Component, Pipe, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
+ import { Injectable, Component, Pipe, Inject, PLATFORM_ID, Directive, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
39
  import { Http } from '@angular/http';
39
40
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
41
  import { ToastrService } from 'ngx-toastr';
@@ -1265,16 +1266,38 @@ var UtilityService = /** @class */ (function () {
1265
1266
  /** @type {?} */
1266
1267
  var k = 1;
1267
1268
  /** @type {?} */
1268
- var enc = "";
1269
+ var enc$$1 = "";
1269
1270
  for (var i = 0; i < s.length; i++) {
1270
1271
  /** @type {?} */
1271
1272
  var a = s.charCodeAt(i);
1272
1273
  /** @type {?} */
1273
1274
  var b = a ^ k;
1274
1275
  // console.log(b + ' ' + String.fromCharCode(b));
1275
- enc = enc + String.fromCharCode(b);
1276
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1276
1277
  }
1277
- return enc;
1278
+ return enc$$1;
1279
+ };
1280
+ /**
1281
+ * @param {?} s
1282
+ * @return {?}
1283
+ */
1284
+ UtilityService.prototype.encrypt_v3 = /**
1285
+ * @param {?} s
1286
+ * @return {?}
1287
+ */
1288
+ function (s) {
1289
+ return AES.encrypt(s, "}?fhg7SP&^N4").toString();
1290
+ };
1291
+ /**
1292
+ * @param {?} s
1293
+ * @return {?}
1294
+ */
1295
+ UtilityService.prototype.decrypt_v3 = /**
1296
+ * @param {?} s
1297
+ * @return {?}
1298
+ */
1299
+ function (s) {
1300
+ return AES.decrypt(s, "}?fhg7SP&^N4").toString(enc.Utf8);
1278
1301
  };
1279
1302
  /**
1280
1303
  * @param {?} s
@@ -1288,15 +1311,15 @@ var UtilityService = /** @class */ (function () {
1288
1311
  /** @type {?} */
1289
1312
  var k = 1;
1290
1313
  /** @type {?} */
1291
- var enc = "";
1314
+ var enc$$1 = "";
1292
1315
  for (var i = 0; i < s.length; i++) {
1293
1316
  /** @type {?} */
1294
1317
  var a = s.charCodeAt(i);
1295
1318
  /** @type {?} */
1296
1319
  var b = a ^ k;
1297
- enc = enc + String.fromCharCode(b);
1320
+ enc$$1 = enc$$1 + String.fromCharCode(b);
1298
1321
  }
1299
- return enc;
1322
+ return enc$$1;
1300
1323
  };
1301
1324
  /**
1302
1325
  * @param {?} s
@@ -9141,18 +9164,24 @@ var FHWinComboSelect = /** @class */ (function () {
9141
9164
  this.m_appService = m_appService;
9142
9165
  this.label = "";
9143
9166
  this.width = "";
9167
+ this.nota = false;
9168
+ this.nota_val = "";
9144
9169
  }
9145
9170
  /**
9146
9171
  * @param {?} lab
9147
9172
  * @param {?} myD
9173
+ * @param {?=} nota
9148
9174
  * @return {?}
9149
9175
  */
9150
9176
  FHWinComboSelect.prototype.set_selection = /**
9151
9177
  * @param {?} lab
9152
9178
  * @param {?} myD
9179
+ * @param {?=} nota
9153
9180
  * @return {?}
9154
9181
  */
9155
- function (lab, myD) {
9182
+ function (lab, myD, nota) {
9183
+ if (nota === void 0) { nota = false; }
9184
+ this.nota = nota;
9156
9185
  this.label = lab;
9157
9186
  for (var i = 0; i < myD.length; i++)
9158
9187
  this.cmb_sel.add_option(myD[i]);
@@ -9168,6 +9197,7 @@ var FHWinComboSelect = /** @class */ (function () {
9168
9197
  this.toastr.error('Selezionare un valore');
9169
9198
  return;
9170
9199
  }
9200
+ this.cmb_sel.getObj().nota = this.nota_val;
9171
9201
  this.dialogRef.close(this.cmb_sel.getObj());
9172
9202
  };
9173
9203
  /**
@@ -9181,7 +9211,7 @@ var FHWinComboSelect = /** @class */ (function () {
9181
9211
  FHWinComboSelect.decorators = [
9182
9212
  { type: Component, args: [{
9183
9213
  selector: 'fhwincomboselect',
9184
- template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
9214
+ template: "\n <h2 mat-dialog-title [style.width]=\"width\">\n SELEZIONA {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"width:100%\">\n <div [style.width]=\"width\">\n <FHComboBox #cmb_sel [init_fill]=\"false\"></FHComboBox>\n </div>\n <mat-form-field *ngIf=\"nota\" >\n <textarea matInput placeholder=\"Nota\"[(ngModel)]=\"nota_val\" rows=\"12\"></textarea>\n </mat-form-field>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions [style.width]=\"width\" style=\"text-align:center\">\n\n\n <button mat-raised-button color=\"primary\" (click)=\"ok()\">OK</button>\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">CHIUDI</button>\n\n </mat-dialog-actions>\n "
9185
9215
  }] }
9186
9216
  ];
9187
9217
  /** @nocollapse */