@fluxhub/fluxhub-lib 1.0.442 → 1.0.444

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.
@@ -5417,7 +5417,6 @@ wkfapp = /** @class */ (function () {
5417
5417
  if (!m_service.checkCredentials()) {
5418
5418
  return;
5419
5419
  }
5420
- this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
5421
5420
  }
5422
5421
  /**
5423
5422
  * @param {?} a
@@ -5872,13 +5871,14 @@ wkfapp = /** @class */ (function () {
5872
5871
  if (result != null)
5873
5872
  if (result.result != null)
5874
5873
  if (result.result == 'ok') {
5875
- p = new QParam();
5876
- p.sql = "SELECT_USER_INFO_WKF";
5877
- p.types = ['string'];
5878
- p.values = [result.arrsel[0].username];
5874
+ /** @type {?} */
5875
+ var p_1 = new QParam();
5876
+ p_1.sql = "SELECT_USER_INFO_WKF";
5877
+ p_1.types = ['string'];
5878
+ p_1.values = [result.arrsel[0].username];
5879
5879
  _this
5880
5880
  .m_dataService
5881
- .doQuery(p)
5881
+ .doQuery(p_1)
5882
5882
  .subscribe((/**
5883
5883
  * @param {?} data
5884
5884
  * @return {?}
@@ -5900,18 +5900,12 @@ wkfapp = /** @class */ (function () {
5900
5900
  _this.user_email = data.result_data[0].email;
5901
5901
  _this.imp = 'ANN. IMP: ' + data.result_data[0].cognome + ' ' + data.result_data[0].nome;
5902
5902
  _this.get_grid().doFill('');
5903
- //browser.refresh()
5903
+ console.log(' this.user_idp ', _this.user_idp);
5904
5904
  }
5905
5905
  }));
5906
5906
  }
5907
5907
  }));
5908
5908
  }
5909
- }), (/**
5910
- * @param {?} err
5911
- * @return {?}
5912
- */
5913
- function (err) {
5914
- console.log("ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI");
5915
5909
  }));
5916
5910
  };
5917
5911
  /**
@@ -5924,7 +5918,7 @@ wkfapp = /** @class */ (function () {
5924
5918
  this
5925
5919
  .app_s
5926
5920
  .getState()
5927
- .wkf_obj = new Object();
5921
+ .wkf_obj = {};
5928
5922
  this
5929
5923
  .app_s
5930
5924
  .getState()
@@ -6181,6 +6175,7 @@ wkfapp = /** @class */ (function () {
6181
6175
  function () { _this.do_init(); }), 500);
6182
6176
  return;
6183
6177
  }
6178
+ this.sort_field = "case when CHARINDEX('" + this.user_idp + "',autori)>0 then 1 else 0 end desc,codice desc";
6184
6179
  /** @type {?} */
6185
6180
  var p = new QParam();
6186
6181
  p.sql = "SELECT_WKF_APP_INFO";
@@ -6212,15 +6207,15 @@ wkfapp = /** @class */ (function () {
6212
6207
  _this.user_email = _this.app_s.user_email;
6213
6208
  _this.app_s.getState().topnavTitle = _this.att_panelcat;
6214
6209
  /** @type {?} */
6215
- var p_1 = new QParam();
6216
- p_1.sql = "SELECT_UTENTE_WKF_ADMIN";
6217
- p_1.types = ['string', 'string'];
6218
- p_1.values = [
6210
+ var p_2 = new QParam();
6211
+ p_2.sql = "SELECT_UTENTE_WKF_ADMIN";
6212
+ p_2.types = ['string', 'string'];
6213
+ p_2.values = [
6219
6214
  _this.id_applicativo, _this.app_s.user
6220
6215
  ];
6221
6216
  _this
6222
6217
  .m_dataService
6223
- .doQuery(p_1)
6218
+ .doQuery(p_2)
6224
6219
  .subscribe((/**
6225
6220
  * @param {?} data
6226
6221
  * @return {?}
@@ -6244,13 +6239,13 @@ wkfapp = /** @class */ (function () {
6244
6239
  _this.is_PowerUser = true;
6245
6240
  }
6246
6241
  /** @type {?} */
6247
- var p_2 = new QParam();
6248
- p_2.sql = "SELECT_WLIVELLIV2";
6249
- p_2.types = ['string', 'string'];
6250
- p_2.values = [_this.id_applicativo, ''];
6242
+ var p_3 = new QParam();
6243
+ p_3.sql = "SELECT_WLIVELLIV2";
6244
+ p_3.types = ['string', 'string'];
6245
+ p_3.values = [_this.id_applicativo, ''];
6251
6246
  _this
6252
6247
  .m_dataService
6253
- .doQuery(p_2)
6248
+ .doQuery(p_3)
6254
6249
  .subscribe((/**
6255
6250
  * @param {?} data
6256
6251
  * @return {?}
@@ -6261,13 +6256,13 @@ wkfapp = /** @class */ (function () {
6261
6256
  _this.run_grid();
6262
6257
  _this.ok_conf_s(data.result_data);
6263
6258
  /** @type {?} */
6264
- var p_3 = new QParam();
6265
- p_3.sql = "SELECT_ROLES_VISORI";
6266
- p_3.types = ['string'];
6267
- p_3.values = [_this.id_applicativo];
6259
+ var p_4 = new QParam();
6260
+ p_4.sql = "SELECT_ROLES_VISORI";
6261
+ p_4.types = ['string'];
6262
+ p_4.values = [_this.id_applicativo];
6268
6263
  _this
6269
6264
  .m_dataService
6270
- .doQuery(p_3)
6265
+ .doQuery(p_4)
6271
6266
  .subscribe((/**
6272
6267
  * @param {?} data
6273
6268
  * @return {?}
@@ -8458,8 +8453,8 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
8458
8453
  //automatic load data from database default is true
8459
8454
  _this.sql = "";
8460
8455
  _this.label = "";
8461
- _this.types = new Array();
8462
- _this.values = new Array();
8456
+ _this.types = [];
8457
+ _this.values = [];
8463
8458
  _this.hidden = false;
8464
8459
  _this.db_type = "1";
8465
8460
  _this.enabled = true;
@@ -8473,7 +8468,7 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
8473
8468
  _this.focusout = new EventEmitter();
8474
8469
  _this.descri_val = "";
8475
8470
  _this.sItem = "";
8476
- _this.searchItemsFiltered = new Array();
8471
+ _this.searchItemsFiltered = [];
8477
8472
  _this.is_loaded = false;
8478
8473
  _this.selval = null;
8479
8474
  _this.errorMsg = "";
@@ -8516,10 +8511,10 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
8516
8511
  */
8517
8512
  function (e) {
8518
8513
  // console.log('onChange()');
8519
- this.searchItemsFiltered = new Array();
8514
+ this.searchItemsFiltered = [];
8520
8515
  if (this.sItem != null) {
8521
8516
  if (this.sItem != '') {
8522
- this.searchItemsFiltered = new Array();
8517
+ this.searchItemsFiltered = [];
8523
8518
  /** @type {?} */
8524
8519
  var ps = this.sItem.toLowerCase();
8525
8520
  for (var i = 0; i < this.myData.length; i++) {
@@ -8553,7 +8548,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
8553
8548
  * @return {?}
8554
8549
  */
8555
8550
  function (event) {
8556
- console.log('selectedSearchItem ', event);
8557
8551
  this.setByDescri(event.option.value);
8558
8552
  this.sItem = event.option.value;
8559
8553
  this.ch(event);
@@ -8567,7 +8561,6 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
8567
8561
  * @return {?}
8568
8562
  */
8569
8563
  function ($event) {
8570
- console.log('ch ', $event);
8571
8564
  /** @type {?} */
8572
8565
  var value = this.getValue();
8573
8566
  this
@@ -12685,6 +12678,7 @@ var win_uploads = /** @class */ (function () {
12685
12678
  this.b_edit_loaded = false;
12686
12679
  this.title = "ALLEGATI";
12687
12680
  this.b_ini = false;
12681
+ this.sovrascrivi_path = '';
12688
12682
  this.single = true;
12689
12683
  this.descrizione = '';
12690
12684
  this.label = 'Descrizione Allegato';
@@ -12733,9 +12727,10 @@ var win_uploads = /** @class */ (function () {
12733
12727
  */
12734
12728
  function (ax) {
12735
12729
  if (ax.App != null)
12736
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12737
- if (ax.APP != null)
12738
- window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.APP + '/' + ax.K + '/' + ax.Filename);
12730
+ if (this.sovrascrivi_path == '')
12731
+ window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12732
+ else
12733
+ window.open(this.sovrascrivi_path + '/uploads/' + ax.App + '/' + ax.K + '/' + ax.Filename);
12739
12734
  };
12740
12735
  /**
12741
12736
  * @param {?} ax
@@ -13869,7 +13864,7 @@ var win_log = /** @class */ (function () {
13869
13864
  };
13870
13865
  win_log.decorators = [
13871
13866
  { type: Component, args: [{
13872
- template: "\n <div mat-dialog-content style=\"width:100%;font-size: 12px;height: 90vh\">\n <mat-tab-group #zz style=\"width:100%;height: 100%\"\n [style.height]=\"m_appService.getState().body_height\">\n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n \n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n <mat-toolbar color=\"primary\">{{title}}\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" style=\"width:100%;\">\n\n \n \n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div mat-dialog-content>\n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\">\n\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n <br>\n </mat-tab>\n </mat-tab-group>\n </div>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit && !commenti_insert\">\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" >\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n ",
13867
+ template: "\n\n <mat-card-content>\n \n <mat-tab-group #zz style=\"width:100%\"> \n \n <mat-tab label=\"DIAGRAMMA\" style=\"width:100%;height:100%\" *ngIf=\"b_flussook\">\n <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\">WORKFLOW</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"80\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <div [style.height]=\"(m_appService.getState().body_h-90)+'px'\" style=\"overflow:auto;\" >\n <div style=\"width:100%;height:100%\" id=\"canvas\"></div>\n </div>\n\n </mat-tab>\n\n <mat-tab label=\"LOGS\">\n\n <mat-toolbar color=\"primary\">\n <div fxLayout=\"row\" >\n {{title}}\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" >\n \n <button mat-flat-button color=\"accent\" (click)=\"ins()\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>note_add</mat-icon>\n INSERISCI\n </button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" *ngIf=\"!b_edit && commenti_insert\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div></div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-90)+'px'\" style=\"overflow:auto;width:90%\">\n \n <section class=\"bs\" *ngIf=\"b_edit\">\n <br>\n <mat-form-field *ngIf=\"b_edit\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"12\"></textarea>\n </mat-form-field>\n\n <div *ngIf=\"b_edit\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"annulla()\">ANNULLA</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <mat-checkbox [(ngModel)]=\"not_int\" [hidden]=\"lettori===''\">\n Notifica Interessati\n </mat-checkbox>\n </div>\n <br><br>\n </section>\n <table *ngIf=\"!b_edit\" class=\"fh_table\">\n <thead>\n <tr>\n <th width=\"15%\">Data</th>\n <th width=\"15%\">Utente</th>\n <th>Operazione</th>\n\n <td></td>\n </tr>\n </thead>\n <tbody>\n <tr *ngFor=\"let app of logs;let odd=odd; let even=even;index as i\" [ngClass]=\"{ odd: odd, even: even }\">\n\n <td>{{app.data_creazione | date: 'dd/MM/yyyy HH:mm:ss'}}</td>\n <td>{{app.nc}}</td>\n <td>{{app.operazione}}</td>\n\n <td>\n <mat-icon *ngIf=\"i==0 && app.creatore==m_appService.getState().wkf_doc_info.curr_user\"\n (click)=\"edit_comm(app)\">edit\n </mat-icon>\n </td>\n </tr>\n </tbody>\n </table>\n \n <br>\n </div>\n \n </mat-tab>\n \n </mat-tab-group>\n </mat-card-content>\n <div style=\"width:100%;text-align:center;\" *ngIf=\"!b_edit && !commenti_insert\">\n \n <button mat-flat-button color=\"accent\" (click)=\"dialogRef.close('')\" >\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n ",
13873
13868
  styles: ["\n\n\n "]
13874
13869
  }] }
13875
13870
  ];
@@ -16544,7 +16539,7 @@ var dati_aggiuntivi = /** @class */ (function () {
16544
16539
  var _this = this;
16545
16540
  if (inser_c === void 0) { inser_c = false; }
16546
16541
  /** @type {?} */
16547
- var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: "95%" });
16542
+ var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%" });
16548
16543
  dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
16549
16544
  dialogRef.componentInstance.lettori = this.m_obj.lettori;
16550
16545
  dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
@@ -16583,15 +16578,19 @@ var dati_aggiuntivi = /** @class */ (function () {
16583
16578
  }));
16584
16579
  };
16585
16580
  /**
16581
+ * @param {?=} sovra_path
16586
16582
  * @return {?}
16587
16583
  */
16588
16584
  dati_aggiuntivi.prototype.open_upload = /**
16585
+ * @param {?=} sovra_path
16589
16586
  * @return {?}
16590
16587
  */
16591
- function () {
16588
+ function (sovra_path) {
16592
16589
  var _this = this;
16590
+ if (sovra_path === void 0) { sovra_path = ''; }
16593
16591
  /** @type {?} */
16594
16592
  var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%", height: (this.app_s.getState().body_h - 300) + 'px' });
16593
+ dialogRef.componentInstance.sovrascrivi_path = sovra_path;
16595
16594
  dialogRef.afterClosed().subscribe((/**
16596
16595
  * @param {?} result
16597
16596
  * @return {?}
@@ -17286,9 +17285,6 @@ var dati_aggiuntivi = /** @class */ (function () {
17286
17285
  * @return {?}
17287
17286
  */
17288
17287
  function () {
17289
- console.log('return_edit');
17290
- console.log('rthis.m_obj.autori ', this.m_obj.autori);
17291
- console.log('this.user_idp ', this.user_idp);
17292
17288
  for (var i = 0; i < this.livs.length; i++)
17293
17289
  if (this.livs[i].livello == this.m_obj.stato) {
17294
17290
  if (this.livs[i].abilita_indietro == 1)