@fluxhub/fluxhub-lib 1.0.115 → 1.0.117

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.
@@ -109,19 +109,26 @@
109
109
 
110
110
  </mat-menu>
111
111
  <button mat-raised-button (click)="annulla_imp()" *ngIf="imp!=''"> {{imp}} </button>
112
- </div>
112
+ <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button>
113
+ </div>
114
+ </div>
113
115
  </mat-toolbar>
114
116
  </div>
115
117
  <div *ngIf="type=='INSERT_DELETE'" fxLayoutGap="3px" fxLayout="row">
116
-
117
- <div><button mat-raised-button (click)="new_doc()" color="primary">
118
- <mat-icon>note_add</mat-icon>   {{'INSERT' | translate}}
119
- </button></div>
120
-
121
- <div><button mat-raised-button (click)="del_doc()" color="warn">
122
- <mat-icon>delete</mat-icon>   {{'DELETE' | translate}}
123
- </button></div>
124
-
118
+ <mat-toolbar>
119
+ <div fxLayout="row" fxLayoutGap="3px">
120
+
121
+ <button mat-raised-button (click)="new_doc()" color="primary">
122
+ <mat-icon>note_add</mat-icon>   {{'INSERISCI' | translate}}
123
+ </button>
124
+
125
+ <button mat-raised-button (click)="del_doc()" color="warn">
126
+ <mat-icon>delete</mat-icon>   {{'ELIMINA' | translate}}
127
+ </button>
128
+ <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button>
129
+ </div>
130
+ </div>
131
+ </mat-toolbar>
125
132
  </div>
126
133
  <div *ngIf="type=='CUSTOM'" fxLayoutGap="3px" fxLayout="row">
127
134
 
@@ -728,7 +735,7 @@
728
735
  <script src="../js/libs/htmlparser.js"></script>
729
736
  <script src="../js/libs/deep-iterator.js"></script>
730
737
  <script>
731
- var COMPONENT_TEMPLATE = '<div><div *ngIf="type==\'WKF\'" fxLayoutGap="3px" fxLayout="row" fxFlex="100" fxLayoutAlign="end center" style="background-color: #CC0000"> <mat-toolbar> <div fxLayout="row" fxLayoutGap="3px"> <button mat-raised-button (click)="insert_doc()" *ngIf="is_Ins" color="primary"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\'INSERISCI\' | translate}}</button>&nbsp;&nbsp;&nbsp; <button mat-raised-button color="warn" mat-button [matMenuTriggerFor]="gest_menu" *ngIf="is_Supervisor">{{\'Gestione\' | translate}}</button> <mat-menu #gest_menu="matMenu" > <button mat-menu-item (click)="annulla_richiesta()"> {{\'ANNULLA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="recupera_richiesta()"> {{\'RECUPERA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="riassegna_richiesta()"> {{\'RIASSEGNA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="test_utente()" *ngIf="is_Admin"> {{\'TEST UTENTE\' | translate}} </button> </mat-menu> <button mat-raised-button (click)="annulla_imp()" *ngIf="imp!=\'\'"> {{imp}} </button> </div> </mat-toolbar></div><div *ngIf="type==\'INSERT_DELETE\'" fxLayoutGap="3px" fxLayout="row"> <div><button mat-raised-button (click)="new_doc()" color="primary"> <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\'INSERT\' | translate}} </button></div> <div><button mat-raised-button (click)="del_doc()" color="warn"> <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{\'DELETE\' | translate}} </button></div></div><div *ngIf="type==\'CUSTOM\'" fxLayoutGap="3px" fxLayout="row"> <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button> </div></div></div>'
738
+ var COMPONENT_TEMPLATE = '<div><div *ngIf="type==\'WKF\'" fxLayoutGap="3px" fxLayout="row" fxFlex="100" fxLayoutAlign="end center" style="background-color: #CC0000"> <mat-toolbar> <div fxLayout="row" fxLayoutGap="3px"> <button mat-raised-button (click)="insert_doc()" *ngIf="is_Ins" color="primary"><mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\'INSERISCI\' | translate}}</button>&nbsp;&nbsp;&nbsp; <button mat-raised-button color="warn" mat-button [matMenuTriggerFor]="gest_menu" *ngIf="is_Supervisor">{{\'Gestione\' | translate}}</button> <mat-menu #gest_menu="matMenu" > <button mat-menu-item (click)="annulla_richiesta()"> {{\'ANNULLA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="recupera_richiesta()"> {{\'RECUPERA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="riassegna_richiesta()"> {{\'RIASSEGNA DOCUMENTO\' | translate}} </button> <button mat-menu-item (click)="test_utente()" *ngIf="is_Admin"> {{\'TEST UTENTE\' | translate}} </button> </mat-menu> <button mat-raised-button (click)="annulla_imp()" *ngIf="imp!=\'\'"> {{imp}} </button> <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button> </div> </div> </mat-toolbar></div><div *ngIf="type==\'INSERT_DELETE\'" fxLayoutGap="3px" fxLayout="row"> <mat-toolbar> <div fxLayout="row" fxLayoutGap="3px"> <button mat-raised-button (click)="new_doc()" color="primary"> <mat-icon>note_add</mat-icon>&nbsp;&nbsp;&nbsp;{{\'INSERISCI\' | translate}} </button> <button mat-raised-button (click)="del_doc()" color="warn"> <mat-icon>delete</mat-icon>&nbsp;&nbsp;&nbsp;{{\'ELIMINA\' | translate}} </button> <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button> </div> </div> </mat-toolbar></div><div *ngIf="type==\'CUSTOM\'" fxLayoutGap="3px" fxLayout="row"> <div *ngFor="let app of custom_commands" ><button mat-raised-button [color]="app.color" (click)="exec_command(app.command)">{{app.label | translate}}</button> </div></div></div>'
732
739
  var COMPONENTS = [{'name': 'ApprovaGridComponent', 'selector': 'approva-cell'},{'name': 'ComboBoxEditor', 'selector': 'editor-cell'},{'name': 'CurrencyComponent', 'selector': 'currency-cell'},{'name': 'DateComponent', 'selector': 'editor-cell'},{'name': 'DtPick', 'selector': 'DtPicker'},{'name': 'FHAutoCompleteComponent', 'selector': 'FHAutoComplete'},{'name': 'FHComboboxComponent', 'selector': 'FHComboBox'},{'name': 'FHConfirmComponent', 'selector': ''},{'name': 'FHCurrencyFieldComponent', 'selector': 'FHCurrencyField'},{'name': 'FHDatePickerComponent', 'selector': 'FHDatePicker'},{'name': 'FHGridComponent', 'selector': 'FHGrid'},{'name': 'FHGridJSONComponent', 'selector': 'FHGridJSON'},{'name': 'FHGridToolBarComponent', 'selector': 'FHGridToolBar'},{'name': 'FHListComponent', 'selector': 'FHList'},{'name': 'FHListPick', 'selector': 'fhwincomboselect'},{'name': 'FHLogPanelComponent', 'selector': 'FHLogPanel'},{'name': 'FHMdReader', 'selector': 'FHMdReader'},{'name': 'FHNumericFieldComponent', 'selector': 'FHNumericField'},{'name': 'FHPickListComponent', 'selector': 'FHPickList'},{'name': 'FHRichText', 'selector': 'FHRichText'},{'name': 'FHTimePickerComponent', 'selector': 'FHTimePicker'},{'name': 'FHUploadComponent', 'selector': 'FHUpload'},{'name': 'FHUploadPanelComponent', 'selector': 'FHUploadPanel'},{'name': 'FHUserFieldComponent', 'selector': 'FHUserField'},{'name': 'FHUserPickerComponent', 'selector': 'FHPickUsers'},{'name': 'FHWinComboSelect', 'selector': 'fhwincomboselect'},{'name': 'FSInput', 'selector': ''},{'name': 'FSResult', 'selector': ''},{'name': 'NumericEditorComponent', 'selector': 'numeric-cell'},{'name': 'QGParam', 'selector': ''},{'name': 'QGResult', 'selector': ''},{'name': 'QParam', 'selector': ''},{'name': 'QResult', 'selector': ''},{'name': 'TextAreaEditor', 'selector': 'editor-cell'},{'name': 'WinAskNumberComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextBigComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextComponent', 'selector': 'app-win_ask_text'},{'name': 'WinOutputComponent', 'selector': 'app-win_output'},{'name': 'WinWait', 'selector': 'fhwincomboselect'},{'name': 'win_assegna', 'selector': ''},{'name': 'win_commenti', 'selector': ''},{'name': 'win_commento_sel_notif', 'selector': ''},{'name': 'win_conferma', 'selector': ''},{'name': 'win_grid_help', 'selector': ''},{'name': 'win_info_doc', 'selector': ''},{'name': 'win_log', 'selector': ''},{'name': 'win_mappa', 'selector': ''},{'name': 'win_recupera_doc', 'selector': ''},{'name': 'win_riassegna_select_level', 'selector': ''},{'name': 'win_riassegna_select_user', 'selector': ''},{'name': 'win_salva_annulla', 'selector': ''},{'name': 'win_select_canale', 'selector': ''},{'name': 'win_select_level', 'selector': ''},{'name': 'win_time_slider', 'selector': 'fhtimeslider'},{'name': 'win_uploads', 'selector': 'wkf_win_upload'}];
733
740
  var DIRECTIVES = [{'name': 'DecimalMask', 'selector': '[ngModel][decimal]'},{'name': 'FHCurrencyFormatterDirective', 'selector': '[FHCurrencyFormatter]'}];
734
741
  var ACTUAL_COMPONENT = {'name': 'FHGridToolBarComponent'};