@fluxhub/fluxhub-lib 9.0.79 → 9.0.81

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.
@@ -7046,6 +7046,7 @@
7046
7046
  if (data != null) {
7047
7047
  if (data.result_msg == "OK") {
7048
7048
  _this.resetD(data.result_data);
7049
+ _this.fillend.emit();
7049
7050
  ok_op = true;
7050
7051
  }
7051
7052
  }
@@ -7072,6 +7073,7 @@
7072
7073
  }
7073
7074
  }
7074
7075
  _this.resetD(data.result_data);
7076
+ _this.fillend.emit();
7075
7077
  ok_op = true;
7076
7078
  }
7077
7079
  }
@@ -7085,13 +7087,11 @@
7085
7087
  FHAutoCompleteComponent.prototype.resetD = function (o) {
7086
7088
  this.myData = o;
7087
7089
  this.selval = '';
7088
- this.fillend.emit();
7089
- // console.log(this.myData);
7090
- // console.log(this.smtr.nativeElement);
7091
7090
  this.table_hidden = false;
7092
7091
  this.errorMsg = "";
7093
7092
  this.setByValue(this.valDef);
7094
7093
  this.is_loaded = true;
7094
+ console.log('resetD ', this.getValue(), this.valDef);
7095
7095
  if ((this.getValue() == null || this.getValue() == '') && this.valDef != "") {
7096
7096
  this.setByDescri(this.valDef);
7097
7097
  }
@@ -11248,6 +11248,9 @@
11248
11248
  FHGridToolBarComponent.prototype.refresh_access = function (wkfx) {
11249
11249
  this.toolbar_wkfapp = wkfx;
11250
11250
  };
11251
+ FHGridToolBarComponent.prototype.selx = function (command, o) {
11252
+ this.command.emit({ cmd: command, v: o });
11253
+ };
11251
11254
  FHGridToolBarComponent.prototype.exec_command = function (command) {
11252
11255
  this.command.emit({ cmd: command });
11253
11256
  };
@@ -11296,7 +11299,7 @@
11296
11299
  ], FHGridToolBarComponent.prototype, "command", void 0);
11297
11300
  FHGridToolBarComponent = __decorate([
11298
11301
  core.Component({
11299
- selector: 'FHGridToolBar', template: "\n <div *ngIf=\"type=='WKF_NO_EDIT'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxFlex=\"100\" fxLayoutAlign=\"end center\" style=\"background-color: #CC0000\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin || toolbar_wkfapp?.is_PowerUser\"><mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"riassegna_richiesta()\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" > &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='WKF'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;background-color: maroon\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n <button mat-flat-button (click)=\"insert_doc()\" *ngIf=\"toolbar_wkfapp?.is_Ins\" color=\"accent\"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}</button>&nbsp;&nbsp;&nbsp;\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor\">{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"riassegna_richiesta()\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=null && toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" >\n &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='INSERT_DELETE' || type=='INSERT'\" fxLayoutGap=\"3px\" fxLayout=\"row\">\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}\n </button>\n\n <button *ngIf=\"type=='INSERT_DELETE'\" mat-flat-button (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{'ELIMINA' | translate}}\n </button>\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='CUSTOM'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n\n ",
11302
+ selector: 'FHGridToolBar', template: "\n <div *ngIf=\"type=='WKF_NO_EDIT'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxFlex=\"100\" fxLayoutAlign=\"end center\" style=\"background-color: #CC0000\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin || toolbar_wkfapp?.is_PowerUser\"><mat-icon>label_important</mat-icon>&nbsp;&nbsp;&nbsp;{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"riassegna_richiesta()\" *ngIf=\"toolbar_wkfapp?.is_Supervisor || toolbar_wkfapp?.is_Admin\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item style=\"background-color: #F5F5F5\" (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" > &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='WKF'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\" style=\"width: 100%;background-color: maroon\">\n\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n\n <button mat-flat-button (click)=\"insert_doc()\" *ngIf=\"toolbar_wkfapp?.is_Ins\" color=\"accent\"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}</button>&nbsp;&nbsp;&nbsp;\n\n <button mat-flat-button color=\"warn\" mat-button fxHide fxShow.gt-sm [matMenuTriggerFor]=\"gest_menu\" *ngIf=\"toolbar_wkfapp?.is_Supervisor\">{{'Gestione' | translate}}</button>\n <mat-menu #gest_menu=\"matMenu\" >\n <button mat-menu-item (click)=\"annulla_richiesta()\"> {{'ANNULLA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"recupera_richiesta()\"> {{'RECUPERA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"riassegna_richiesta()\"> {{'RIASSEGNA DOCUMENTO' | translate}} </button>\n <button mat-menu-item (click)=\"sostituisci_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'SOSTITUISCI UTENTE' | translate}} </button>\n\n <button mat-menu-item (click)=\"test_utente()\" *ngIf=\"toolbar_wkfapp?.is_Admin\"> {{'TEST UTENTE' | translate}} </button>\n\n </mat-menu>\n <button mat-flat-button (click)=\"annulla_imp()\" *ngIf=\"toolbar_wkfapp?.imp!=null && toolbar_wkfapp?.imp!=''\"> {{toolbar_wkfapp?.imp}} </button>\n <div *ngFor=\"let app of custom_commands\" >\n &nbsp;&nbsp;<button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>&nbsp;{{app.label | translate}}</button>\n\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='INSERT_DELETE' || type=='INSERT'\" fxLayoutGap=\"3px\" fxLayout=\"row\">\n <mat-toolbar>\n <div fxLayout=\"row\" fxLayoutGap=\"3px\" fxLayoutAlign=\"end center\">\n <button mat-flat-button (click)=\"new_doc()\" color=\"primary\">\n <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{'INSERISCI' | translate}}\n </button>\n\n <button *ngIf=\"type=='INSERT_DELETE'\" mat-flat-button (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{'ELIMINA' | translate}}\n </button>\n <div *ngFor=\"let app of custom_commands\" ><button mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n </div>\n </div>\n </mat-toolbar>\n </div>\n <div *ngIf=\"type=='CUSTOM'\" fxLayoutGap=\"3px\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n\n <div *ngFor=\"let app of custom_commands\" >\n <button *ngIf=\"app.type==null || app.type=='button'\" mat-flat-button [color]=\"app.color\" (click)=\"exec_command(app.command)\"><mat-icon *ngIf=\"app.icon!=null\">{{app.icon}}</mat-icon>{{app.label | translate}}</button>\n <FHCheckBox *ngIf=\"app.type=='checkbox'\" (change)=\"selx(app.command,$event)\" [label]=\"app.label | translate\"></FHCheckBox>\n </div>\n </div>\n\n ",
11300
11303
  styles: ["\n\n "]
11301
11304
  })
11302
11305
  ], FHGridToolBarComponent);