@fluxhub/fluxhub-lib 1.0.453 → 1.0.455

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.
@@ -13887,7 +13887,7 @@
13887
13887
  };
13888
13888
  win_log.decorators = [
13889
13889
  { type: core.Component, args: [{
13890
- 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=\"90\" >\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-190)+'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 <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\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('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'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 \n ",
13890
+ 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=\"90\" >\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-190)+'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 <mat-toolbar color=\"primary\" style=\"width:90%;\"><div fxFlex=\"20\"> {{title}}</div>\n <div fxLayout=\"row\" fxLayoutAlign=\"center end\" fxFlex=\"90\" >\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('')\">\n <mat-icon>close</mat-icon>\n CHIUDI\n </button>\n </div>\n </mat-toolbar>\n <br>\n <div [style.height]=\"(m_appService.getState().body_h-190)+'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\" style=\"width:90%\">\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 \n ",
13891
13891
  styles: ["\n\n\n "]
13892
13892
  }] }
13893
13893
  ];
@@ -19914,6 +19914,98 @@
19914
19914
  return win_insert_commento;
19915
19915
  }());
19916
19916
 
19917
+ /**
19918
+ * @fileoverview added by tsickle
19919
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
19920
+ */
19921
+ var win_user_info = /** @class */ (function () {
19922
+ function win_user_info(dialogRef, appService, _dataService) {
19923
+ this.dialogRef = dialogRef;
19924
+ this.appService = appService;
19925
+ this._dataService = _dataService;
19926
+ this.user = '';
19927
+ this.user_name = '';
19928
+ this.user_surname = '';
19929
+ this.user_email = '';
19930
+ this.user_roles = '';
19931
+ this.user_lang = '';
19932
+ this.isadmin = '';
19933
+ this.foto_ut = '';
19934
+ this.dev_mode = false;
19935
+ this.b_filef = false;
19936
+ this.user = this.appService.user;
19937
+ this.user_name = this.appService.user_name;
19938
+ this.user_surname = this.appService.user_surname;
19939
+ this.user_email = this.appService.user_email;
19940
+ if (this.appService.user_roles != null)
19941
+ this.user_roles = this.appService.user_roles.split(',').join(' ');
19942
+ this.user_lang = this.appService.user_lang;
19943
+ this.isadmin = this.appService.user_isadmin;
19944
+ console.log('this.isadmin ', this.isadmin);
19945
+ }
19946
+ /**
19947
+ * @return {?}
19948
+ */
19949
+ win_user_info.prototype.ngOnInit = /**
19950
+ * @return {?}
19951
+ */
19952
+ function () {
19953
+ var _this = this;
19954
+ if (this.isadmin == '1')
19955
+ if (this.appService.dev_mode != null)
19956
+ if (this.appService.dev_mode == '1')
19957
+ this.dev_mode = true;
19958
+ /** @type {?} */
19959
+ var p = new QParam();
19960
+ p.sql = "SELECT_ALLEGATI_DOCUMENTO";
19961
+ p.types = ['string', 'string'];
19962
+ p.values = ['FOTO_UTENTI', this.appService.user];
19963
+ this._dataService.doQuery(p).subscribe((/**
19964
+ * @param {?} data
19965
+ * @return {?}
19966
+ */
19967
+ function (data) {
19968
+ if (data != null)
19969
+ if (data.result_msg == "OK") {
19970
+ if (data.result_data.length > 0) {
19971
+ _this.b_filef = true;
19972
+ _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
19973
+ }
19974
+ }
19975
+ }));
19976
+ };
19977
+ /**
19978
+ * @param {?} dv
19979
+ * @return {?}
19980
+ */
19981
+ win_user_info.prototype.upd_dev = /**
19982
+ * @param {?} dv
19983
+ * @return {?}
19984
+ */
19985
+ function (dv) {
19986
+ if (dv) {
19987
+ this.appService.dev_mode = '1';
19988
+ localStorage.setItem(this.appService.COMPANY_KEY + "dev_mode", this.appService.dev_mode);
19989
+ }
19990
+ else {
19991
+ this.appService.dev_mode = '0';
19992
+ localStorage.removeItem(this.appService.COMPANY_KEY + "dev_mode");
19993
+ }
19994
+ };
19995
+ win_user_info.decorators = [
19996
+ { type: core.Component, args: [{
19997
+ template: " <h2 mat-dialog-title style=\"min-width:300px\">Info Utente</h2>\n <mat-dialog-content style=\"font-size:12px\">\n \n <table class=\"fh_table\">\n\n <tbody>\n <tr class=\"odd\">\n\n <td>Nome</td>\n <td><b>{{user_name}}</b></td>\n </tr>\n <tr class=\"even\">\n\n <td>Cognome</td>\n <td><b>{{user_surname}}</b></td>\n\n </tr>\n <tr class=\"odd\">\n\n <td>Username</td>\n <td><b>{{user}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Email</td>\n <td><b>{{user_email}}</b></td>\n\n </tr>\n <tr class=\"odd\">\n\n <td>Ruoli</td>\n <td><b>{{user_roles}}</b></td>\n\n </tr>\n <tr class=\"even\">\n\n <td>Lingua</td>\n <td><b>{{user_lang}}</b></td>\n\n </tr>\n <tr *ngIf=\"isadmin == '1'\" class=\"odd\">\n\n <td>DEV MODE</td>\n <td><b><mat-checkbox [(ngModel)]=\"dev_mode\" (ngModelChange)=\"upd_dev(dev_mode)\"></mat-checkbox></b></td>\n\n </tr>\n </tbody>\n </table>\n <img style=\"vertical-align:middle;max-height:300px\" *ngIf=\"b_filef\" aria-hidden src=\"{{foto_ut}}\" />\n \n \n <div fxLayoutAlign=\"center center\" fxLayout=\"row\">\n <button mat-flat-button color=\"primary\" (click)=\"dialogRef.close()\">CHIUDI</button>\n </div>\n </mat-dialog-content>\n "
19998
+ }] }
19999
+ ];
20000
+ /** @nocollapse */
20001
+ win_user_info.ctorParameters = function () { return [
20002
+ { type: material.MatDialogRef },
20003
+ { type: AppService },
20004
+ { type: QueryService }
20005
+ ]; };
20006
+ return win_user_info;
20007
+ }());
20008
+
19917
20009
  /**
19918
20010
  * @fileoverview added by tsickle
19919
20011
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -19983,13 +20075,13 @@
19983
20075
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
19984
20076
  }),
19985
20077
  flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
19986
- exports: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
20078
+ exports: [win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
19987
20079
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19988
20080
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
19989
20081
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
19990
20082
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
19991
20083
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent, FHTableManager],
19992
- declarations: [win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
20084
+ declarations: [win_user_info, win_insert_commento, FHRoleManager, FHFieldPickListComponent, SafePipe, FHViewerComponent,
19993
20085
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
19994
20086
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
19995
20087
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -20002,7 +20094,7 @@
20002
20094
  ],
20003
20095
  entryComponents: [
20004
20096
  // Customize dialog must be import here.
20005
- win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
20097
+ win_user_info, win_insert_commento, win_manage_roles, win_manage_values, win_show_image, WinAskButtonsComponent, win_salva_annulla, win_assegna, win_conferma, win_select_canale, win_select_level, win_uploads, win_commenti, win_info_doc, win_log, win_recupera_doc, win_riassegna_select_level, win_riassegna_select_user, win_commento_sel_notif,
20006
20098
  FHPickListComponent,
20007
20099
  FHConfirmComponent,
20008
20100
  win_time_slider,
@@ -20283,6 +20375,7 @@
20283
20375
  exports.win_salva_annulla = win_salva_annulla;
20284
20376
  exports.win_show_image = win_show_image;
20285
20377
  exports.win_time_slider = win_time_slider;
20378
+ exports.win_user_info = win_user_info;
20286
20379
  exports.wkf_header_bar = wkf_header_bar;
20287
20380
  exports.wkfapp = wkfapp;
20288
20381
  exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;