@fluxhub/fluxhub-lib 1.0.267 → 1.0.268

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.
Files changed (106) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +233 -55
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/docs/components/ApprovaGridComponent.html +1 -1
  6. package/docs/components/ComboBoxEditor.html +1 -1
  7. package/docs/components/CurrencyComponent.html +1 -1
  8. package/docs/components/DateComponent.html +1 -1
  9. package/docs/components/DtPick.html +1 -1
  10. package/docs/components/FHAutoCompleteComponent.html +1 -1
  11. package/docs/components/FHComboboxComponent.html +1 -1
  12. package/docs/components/FHConfirmComponent.html +1 -1
  13. package/docs/components/FHCurrencyFieldComponent.html +1 -1
  14. package/docs/components/FHDatePickerComponent.html +1 -1
  15. package/docs/components/FHFieldPickListComponent.html +1047 -0
  16. package/docs/components/FHGridComponent.html +1 -1
  17. package/docs/components/FHGridJSONComponent.html +1 -1
  18. package/docs/components/FHGridToolBarComponent.html +1 -1
  19. package/docs/components/FHListComponent.html +50 -23
  20. package/docs/components/FHListPick.html +114 -14
  21. package/docs/components/FHLogPanelComponent.html +1 -1
  22. package/docs/components/FHMdReader.html +1 -1
  23. package/docs/components/FHNumericFieldComponent.html +1 -1
  24. package/docs/components/FHPickListComponent.html +1 -1
  25. package/docs/components/FHRichText.html +1 -1
  26. package/docs/components/FHTimePickerComponent.html +1 -1
  27. package/docs/components/FHUploadComponent.html +1 -1
  28. package/docs/components/FHUploadPanelComponent.html +1 -1
  29. package/docs/components/FHUserFieldComponent.html +1 -1
  30. package/docs/components/FHUserPickerComponent.html +1 -1
  31. package/docs/components/FHViewerComponent.html +1 -1
  32. package/docs/components/FHWinComboSelect.html +1 -1
  33. package/docs/components/FSInput.html +1 -1
  34. package/docs/components/FSResult.html +1 -1
  35. package/docs/components/FormBuilderComponent.html +1 -1
  36. package/docs/components/FormExecuterComponent.html +1 -1
  37. package/docs/components/NumericEditorComponent.html +1 -1
  38. package/docs/components/QGParam.html +1 -1
  39. package/docs/components/QGResult.html +1 -1
  40. package/docs/components/QParam.html +1 -1
  41. package/docs/components/QResult.html +1 -1
  42. package/docs/components/TextAreaEditor.html +1 -1
  43. package/docs/components/WinAskButtonsComponent.html +1 -1
  44. package/docs/components/WinAskNumberComponent.html +1 -1
  45. package/docs/components/WinAskTextBigComponent.html +1 -1
  46. package/docs/components/WinAskTextComponent.html +1 -1
  47. package/docs/components/WinOutputComponent.html +1 -1
  48. package/docs/components/WinWait.html +1 -1
  49. package/docs/components/fhimagepreview.html +1 -1
  50. package/docs/components/win_assegna.html +5 -5
  51. package/docs/components/win_commenti.html +1 -1
  52. package/docs/components/win_commento_sel_notif.html +1 -1
  53. package/docs/components/win_conferma.html +5 -5
  54. package/docs/components/win_grid_help.html +1 -1
  55. package/docs/components/win_info_doc.html +1 -1
  56. package/docs/components/win_log.html +1 -1
  57. package/docs/components/win_mappa.html +1 -1
  58. package/docs/components/win_recupera_doc.html +1 -1
  59. package/docs/components/win_riassegna_select_level.html +1 -1
  60. package/docs/components/win_riassegna_select_user.html +1 -1
  61. package/docs/components/win_salva_annulla.html +1 -1
  62. package/docs/components/win_select_canale.html +1 -1
  63. package/docs/components/win_select_level.html +1 -1
  64. package/docs/components/win_show_image.html +1 -1
  65. package/docs/components/win_time_slider.html +1 -1
  66. package/docs/components/win_uploads.html +1 -1
  67. package/docs/components/wkf_header_bar.html +1 -1
  68. package/docs/coverage.html +26 -2
  69. package/docs/graph/dependencies.svg +747 -723
  70. package/docs/js/menu-wc.js +16 -12
  71. package/docs/js/search/search_index.js +2 -2
  72. package/docs/miscellaneous/variables.html +50 -13
  73. package/docs/modules/FluxhubLibModule/dependencies.svg +747 -723
  74. package/docs/modules/FluxhubLibModule.html +753 -723
  75. package/docs/overview.html +748 -724
  76. package/esm2015/fluxhub-fluxhub-lib.js +26 -25
  77. package/esm2015/lib/controls/fhfieldpicklist.js +188 -0
  78. package/esm2015/lib/controls/fhlist.js +22 -12
  79. package/esm2015/lib/controls/win_list_pick.js +23 -7
  80. package/esm2015/lib/fluxhub-lib.module.js +4 -3
  81. package/esm2015/lib/wkf_engine/win_assegna.js +5 -5
  82. package/esm2015/lib/wkf_engine/win_conferma.js +5 -5
  83. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -14
  84. package/esm2015/public_api.js +2 -1
  85. package/esm5/fluxhub-fluxhub-lib.js +26 -25
  86. package/esm5/lib/controls/fhfieldpicklist.js +206 -0
  87. package/esm5/lib/controls/fhlist.js +12 -5
  88. package/esm5/lib/controls/win_list_pick.js +21 -2
  89. package/esm5/lib/fluxhub-lib.module.js +4 -3
  90. package/esm5/lib/wkf_engine/win_assegna.js +5 -5
  91. package/esm5/lib/wkf_engine/win_conferma.js +5 -5
  92. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -14
  93. package/esm5/public_api.js +2 -1
  94. package/fesm2015/fluxhub-fluxhub-lib.js +205 -44
  95. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  96. package/fesm5/fluxhub-fluxhub-lib.js +210 -32
  97. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  98. package/fluxhub-fluxhub-lib.d.ts +25 -24
  99. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  100. package/lib/controls/fhfieldpicklist.d.ts +28 -0
  101. package/lib/controls/fhlist.d.ts +1 -0
  102. package/lib/controls/win_list_pick.d.ts +3 -0
  103. package/lib/wkf_engine/win_assegna.d.ts +1 -1
  104. package/lib/wkf_engine/win_conferma.d.ts +1 -1
  105. package/package.json +1 -1
  106. package/public_api.d.ts +1 -0
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('@angular/forms'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/material'), require('@angular/platform-browser'), require('@angular/router'), require('@angular/http'), require('ng2-slim-loading-bar'), require('ngx-toastr'), require('@angular/core')) :
3
- typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', '@angular/forms', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/material', '@angular/platform-browser', '@angular/router', '@angular/http', 'ng2-slim-loading-bar', 'ngx-toastr', '@angular/core'], factory) :
4
- (factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.ng.forms,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.i1$1,global.core$1,global.ng2Dragula,global.ng.material,global.ng.platformBrowser,global.ng.router,global.ng.http,global.ng2SlimLoadingBar,global.i3,global.ng.core));
5
- }(this, (function (exports,ngxSimpleCrypt,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,forms,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,i1$1,core$1,ng2Dragula,material,platformBrowser,i4,http,ng2SlimLoadingBar,i3,i0) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('ngx-simple-crypt'), require('clipboard'), require('prismjs'), require('prismjs/plugins/toolbar/prism-toolbar'), require('prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard'), require('prismjs/components/prism-css'), require('prismjs/components/prism-javascript'), require('prismjs/components/prism-java'), require('prismjs/components/prism-markup'), require('prismjs/components/prism-typescript'), require('prismjs/components/prism-sass'), require('prismjs/components/prism-scss'), require('prismjs/components/prism-sql'), require('@angular/common/http'), require('bpmn-js/lib/NavigatedViewer'), require('rxjs'), require('rxjs/operators'), require('@angular/flex-layout'), require('ngx-markdown'), require('ng2-ckeditor'), require('@angular/common'), require('ag-grid-angular'), require('ng2-file-upload'), require('mydatepicker'), require('@agm/core'), require('ag-grid-enterprise'), require('@angular/cdk/table'), require('ngforage'), require('@ngx-translate/core'), require('ng2-dragula'), require('@angular/platform-browser'), require('@angular/forms'), require('@angular/material'), require('@angular/router'), require('@angular/http'), require('ng2-slim-loading-bar'), require('ngx-toastr'), require('@angular/core')) :
3
+ typeof define === 'function' && define.amd ? define('@fluxhub/fluxhub-lib', ['exports', 'ngx-simple-crypt', 'clipboard', 'prismjs', 'prismjs/plugins/toolbar/prism-toolbar', 'prismjs/plugins/copy-to-clipboard/prism-copy-to-clipboard', 'prismjs/components/prism-css', 'prismjs/components/prism-javascript', 'prismjs/components/prism-java', 'prismjs/components/prism-markup', 'prismjs/components/prism-typescript', 'prismjs/components/prism-sass', 'prismjs/components/prism-scss', 'prismjs/components/prism-sql', '@angular/common/http', 'bpmn-js/lib/NavigatedViewer', 'rxjs', 'rxjs/operators', '@angular/flex-layout', 'ngx-markdown', 'ng2-ckeditor', '@angular/common', 'ag-grid-angular', 'ng2-file-upload', 'mydatepicker', '@agm/core', 'ag-grid-enterprise', '@angular/cdk/table', 'ngforage', '@ngx-translate/core', 'ng2-dragula', '@angular/platform-browser', '@angular/forms', '@angular/material', '@angular/router', '@angular/http', 'ng2-slim-loading-bar', 'ngx-toastr', '@angular/core'], factory) :
4
+ (factory((global.fluxhub = global.fluxhub || {}, global.fluxhub['fluxhub-lib'] = {}),global.ngxSimpleCrypt,null,null,null,null,null,null,null,null,null,null,null,null,global.ng.common.http,global.NavigatedViewer,global.rxjs,global.rxjs.operators,global.ng['flex-layout'],global.ngxMarkdown,global.ng2Ckeditor,global.ng.common,global.agGridAngular,global.ng2FileUpload,global.mydatepicker,global.core,null,global.ng.cdk.table,global.i1$1,global.core$1,global.ng2Dragula,global.ng.platformBrowser,global.ng.forms,global.ng.material,global.ng.router,global.ng.http,global.ng2SlimLoadingBar,global.i3,global.ng.core));
5
+ }(this, (function (exports,ngxSimpleCrypt,clipboard,prismjs,prismToolbar,prismCopyToClipboard,prismCss,prismJavascript,prismJava,prismMarkup,prismTypescript,prismSass,prismScss,prismSql,i1,NavigatedViewer,rxjs,operators,flexLayout,ngxMarkdown,ng2Ckeditor,common,agGridAngular,ng2FileUpload,mydatepicker,core,agGridEnterprise,table,i1$1,core$1,ng2Dragula,platformBrowser,forms,material,i4,http,ng2SlimLoadingBar,i3,i0) { 'use strict';
6
6
 
7
7
  NavigatedViewer = NavigatedViewer && NavigatedViewer.hasOwnProperty('default') ? NavigatedViewer['default'] : NavigatedViewer;
8
8
 
@@ -7572,6 +7572,7 @@
7572
7572
  this.values = [];
7573
7573
  this.label = "";
7574
7574
  this.enabled = true;
7575
+ this.single_sel = false;
7575
7576
  this.fillend = new i0.EventEmitter();
7576
7577
  this.selchange = new i0.EventEmitter();
7577
7578
  this.initend = new i0.EventEmitter();
@@ -7591,6 +7592,8 @@
7591
7592
  * @return {?}
7592
7593
  */
7593
7594
  function (u, b) {
7595
+ if (this.single_sel)
7596
+ u.checked = true;
7594
7597
  /*console.log(b.descrizione_valore +" "+b.checked);
7595
7598
  for(let i:number=0;i<this.myData.length;i++)
7596
7599
  if(this.myData[i].descrizione_valore==u.descrizione_valore){
@@ -7658,7 +7661,7 @@
7658
7661
  _this.resetValue();
7659
7662
  // console.log(this.smtr); console.log(this.smtr.nativeElement);
7660
7663
  _this.setByValue(_this.valDef);
7661
- if (_this.getValue() == "-1" && _this.valDef != "-1")
7664
+ if (_this.getValue() == "" && _this.valDef != "-1")
7662
7665
  _this.setByDescri(_this.valDef);
7663
7666
  _this.fillend.emit();
7664
7667
  }
@@ -7690,10 +7693,11 @@
7690
7693
  return;
7691
7694
  /** @type {?} */
7692
7695
  var arr_val = desc_val.split(',');
7693
- //console.log("arr_val "+arr_val.length);
7696
+ console.log("arr_val ", arr_val);
7694
7697
  for (var j = 0; j < this.myData.length; j++)
7695
7698
  for (var j1 = 0; j1 < arr_val.length; j1++) {
7696
7699
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
7700
+ console.log('this.myData[j].checked ', this.myData[j].checked);
7697
7701
  this.myData[j].checked = true;
7698
7702
  }
7699
7703
  }
@@ -7746,7 +7750,7 @@
7746
7750
  var arr_val = desc_val.split(',');
7747
7751
  for (var j = 0; j < this.myData.length; j++)
7748
7752
  for (var j1 = 0; j1 < arr_val.length; j1++) {
7749
- //console.log(this.myData[j].valore +' '+ desc_val);
7753
+ console.log(this.myData[j].valore + ' ' + arr_val[j1]);
7750
7754
  if (this.myData[j].valore == arr_val[j1]) {
7751
7755
  this.myData[j].checked = true;
7752
7756
  //console.log("selval: "+this.selval);
@@ -7903,7 +7907,7 @@
7903
7907
  };
7904
7908
  FHListComponent.decorators = [
7905
7909
  { type: i0.Component, args: [{
7906
- selector: 'FHList', template: "\n\n\n <div style=\"width:100%;\">\n \n <table class=\"fh_table\">\n <thead>\n <tr>\n <th></th>\n <th>\n {{label}}\n\n </th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let u of myData\" class=\"selector\">\n <td style=\"width:20px\">\n <mat-slide-toggle (change)=\"upd_f(u,$event)\" [disabled]=\"!enabled\"\n [(ngModel)]=\"u.checked\"></mat-slide-toggle>\n </td>\n <td>{{u.descrizione_valore}}</td>\n\n </tr>\n </tbody>\n </table>\n \n </div>\n\n\n ",
7910
+ selector: 'FHList', template: "\n\n\n <table class=\"fh_table\" style=\"width:100%;\">\n <thead>\n <tr>\n <th *ngIf=\"!single_sel\"></th>\n <th>\n {{label}}\n\n </th>\n <th *ngIf=\"single_sel\"></th>\n </tr>\n </thead>\n <tbody>\n\n <tr *ngFor=\"let u of myData;let odd=odd; let even=even;\" [ngClass]=\"{ odd: odd, even: even }\">\n <td style=\"width:20px\" *ngIf=\"!single_sel\">\n <mat-slide-toggle (change)=\"upd_f(u,$event)\" [disabled]=\"!enabled\"\n [(ngModel)]=\"u.checked\"></mat-slide-toggle>\n </td>\n <td>{{u.descrizione_valore}}</td>\n <td style=\"width:20px;text-align: middle\" *ngIf=\"single_sel\" >\n\n <button mat-raised-button color=\"primary\" (click)=\"upd_f(u,$event)\" [disabled]=\"!enabled\" ><mat-icon>send</mat-icon>&nbsp;&nbsp;&nbsp;{{'SEL' | translate}}</button>&nbsp;&nbsp;&nbsp;\n\n \n </td>\n </tr>\n </tbody>\n </table>\n \n \n\n ",
7907
7911
  styles: ["\n\n\n "]
7908
7912
  }] }
7909
7913
  ];
@@ -7920,6 +7924,7 @@
7920
7924
  values: [{ type: i0.Input }],
7921
7925
  label: [{ type: i0.Input }],
7922
7926
  enabled: [{ type: i0.Input }],
7927
+ single_sel: [{ type: i0.Input }],
7923
7928
  smtr: [{ type: i0.ViewChild, args: ['cmb',] }],
7924
7929
  fillend: [{ type: i0.Output }],
7925
7930
  selchange: [{ type: i0.Output }],
@@ -9542,6 +9547,8 @@
9542
9547
  this.m_appService = m_appService;
9543
9548
  this.label = "";
9544
9549
  this.sql = "";
9550
+ this.single_sel = false;
9551
+ this.sel_values = "";
9545
9552
  }
9546
9553
  /**
9547
9554
  * @return {?}
@@ -9550,6 +9557,8 @@
9550
9557
  * @return {?}
9551
9558
  */
9552
9559
  function () {
9560
+ if (!this.single_sel)
9561
+ this.cmb_sel.setByDescri(this.sel_values);
9553
9562
  this.cmb_sel.sql = this.sql;
9554
9563
  this.cmb_sel.types = this.types;
9555
9564
  this.cmb_sel.values = this.values;
@@ -9571,6 +9580,17 @@
9571
9580
  /**
9572
9581
  * @return {?}
9573
9582
  */
9583
+ FHListPick.prototype.ok_single = /**
9584
+ * @return {?}
9585
+ */
9586
+ function () {
9587
+ if (!this.single_sel)
9588
+ return;
9589
+ this.dialogRef.close(this.cmb_sel.getObjects());
9590
+ };
9591
+ /**
9592
+ * @return {?}
9593
+ */
9574
9594
  FHListPick.prototype.ngOnInit = /**
9575
9595
  * @return {?}
9576
9596
  */
@@ -9579,7 +9599,7 @@
9579
9599
  FHListPick.decorators = [
9580
9600
  { type: i0.Component, args: [{
9581
9601
  selector: 'fhwincomboselect',
9582
- template: "\n <h2 mat-dialog-title>\n {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"min-width:700px\">\n <FHList #cmb_sel [label]=\"\" style=\"width:100%;min-height:90px\" init_fill=\"false\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\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 "
9602
+ template: "\n <h2 mat-dialog-title>\n {{label | uppercase}}\n </h2>\n <mat-dialog-content style=\"min-width:700px\">\n <FHList #cmb_sel [single_sel]=\"single_sel\" [label]=\"\" style=\"width:100%;min-height:90px\" init_fill=\"false\" (selchange)=\"ok_single()\"></FHList>\n\n </mat-dialog-content>\n\n\n <mat-dialog-actions>\n<div fxLayout=\"row\" fxLayoutAlign=\"center center\" style=\"width: 100%\">\n \n <button mat-raised-button color=\"primary\" *ngIf=\"!single_sel\" (click)=\"ok()\">OK</button>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"dialogRef.close('')\">ANNULLA</button>\n</div>\n </mat-dialog-actions>\n "
9583
9603
  }] }
9584
9604
  ];
9585
9605
  /** @nocollapse */
@@ -10016,7 +10036,7 @@
10016
10036
  this.nota = "";
10017
10037
  this.nota_commento = "";
10018
10038
  this.title = "ASSEGNA DOCUMENTO";
10019
- this.comm_notrequired = true;
10039
+ this.comm_notrequired = 0;
10020
10040
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10021
10041
  this.title = this.m_appService.getState().wkf_doc_info.title;
10022
10042
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
@@ -10025,7 +10045,7 @@
10025
10045
  if (this.arrAutori[i].username == null)
10026
10046
  this.arrAutori[i].username = this.arrAutori[i].idp;
10027
10047
  }
10028
- if (this.comm_notrequired)
10048
+ if (this.comm_notrequired == 2)
10029
10049
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10030
10050
  }
10031
10051
  /**
@@ -10035,7 +10055,7 @@
10035
10055
  * @return {?}
10036
10056
  */
10037
10057
  function () {
10038
- if (!this.comm_notrequired)
10058
+ if (this.comm_notrequired == 0)
10039
10059
  if (this.nota == "") {
10040
10060
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
10041
10061
  timeOut: 1000,
@@ -10075,7 +10095,7 @@
10075
10095
  };
10076
10096
  win_assegna.decorators = [
10077
10097
  { type: i0.Component, args: [{
10078
- template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n <div mat-dialog-content style=\"min-width:700px\">\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <div *ngIf=\"!comm_notrequired\">\n <br><br><br>\n <mat-form-field>\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
10098
+ template: "\n <mat-toolbar>{{title}}\n </mat-toolbar>\n <div mat-dialog-content style=\"min-width:700px\">\n <div style=\"height:370px;\">\n <FHPickUsers #up [users_list]=\"arrAutori\" [vis_buttons]=\"false\"></FHPickUsers>\n </div>\n <div *ngIf=\"comm_notrequired!=1\">\n <br><br><br>\n <mat-form-field>\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n </div>\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
10079
10099
  }] }
10080
10100
  ];
10081
10101
  /** @nocollapse */
@@ -10108,13 +10128,13 @@
10108
10128
  this.nota = "";
10109
10129
  this.nota_commento = "";
10110
10130
  this.title = "COMMENTI";
10111
- this.comm_notrequired = true;
10131
+ this.comm_notrequired = 0;
10112
10132
  this.mobile = false;
10113
10133
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10114
10134
  this.title = this.m_appService.getState().wkf_doc_info.title;
10115
10135
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
10116
10136
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
10117
- if (this.comm_notrequired)
10137
+ if (this.comm_notrequired == 2)
10118
10138
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10119
10139
  this.mobile = this.m_appService.getState().pageFullscreen;
10120
10140
  }
@@ -10125,7 +10145,7 @@
10125
10145
  * @return {?}
10126
10146
  */
10127
10147
  function () {
10128
- if (!this.comm_notrequired)
10148
+ if (this.comm_notrequired == 0)
10129
10149
  if (this.nota == "") {
10130
10150
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
10131
10151
  timeOut: 1000,
@@ -10154,7 +10174,7 @@
10154
10174
  };
10155
10175
  win_conferma.decorators = [
10156
10176
  { type: i0.Component, args: [{
10157
- template: "\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px\">\n <div *ngIf=\"mobile\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired\">\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
10177
+ template: "\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px\">\n <div *ngIf=\"mobile\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired!=1\">\n <textarea matInput placeholder=\"Commento {{nota_commento}}\" [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-raised-button color=\"primary\" (click)=\"ok()\"> OK</button>&nbsp;&nbsp;&nbsp;&nbsp;\n <button mat-raised-button color=\"warn\" (click)=\"annulla()\">ANNULLA</button>\n </div>\n\n "
10158
10178
  }] }
10159
10179
  ];
10160
10180
  /** @nocollapse */
@@ -14945,6 +14965,172 @@
14945
14965
  return SafePipe;
14946
14966
  }());
14947
14967
 
14968
+ /**
14969
+ * @fileoverview added by tsickle
14970
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
14971
+ */
14972
+ /** @type {?} */
14973
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
14974
+ provide: forms.NG_VALUE_ACCESSOR,
14975
+ useExisting: i0.forwardRef(( /**
14976
+ * @return {?}
14977
+ */function () { return FHFieldPickListComponent; })),
14978
+ multi: true
14979
+ };
14980
+ var FHFieldPickListComponent = /** @class */ (function () {
14981
+ function FHFieldPickListComponent(m_dialog) {
14982
+ this.m_dialog = m_dialog;
14983
+ this.sql = "";
14984
+ this.types = new Array();
14985
+ this.values = new Array();
14986
+ this.hidden = false;
14987
+ this.only_in_list = true;
14988
+ this.single_sel = false;
14989
+ this.label = "";
14990
+ this.enabled = true;
14991
+ this.required = false;
14992
+ this.db_type = "1";
14993
+ this.value = "";
14994
+ this.onChange = ( /**
14995
+ * @param {?} _
14996
+ * @return {?}
14997
+ */function (_) {
14998
+ });
14999
+ this.onTouched = ( /**
15000
+ * @return {?}
15001
+ */function () {
15002
+ });
15003
+ }
15004
+ /**
15005
+ * @return {?}
15006
+ */
15007
+ FHFieldPickListComponent.prototype.resetValue = /**
15008
+ * @return {?}
15009
+ */
15010
+ function () {
15011
+ this.value = '';
15012
+ };
15013
+ /**
15014
+ * @param {?} value
15015
+ * @return {?}
15016
+ */
15017
+ FHFieldPickListComponent.prototype.writeValue = /**
15018
+ * @param {?} value
15019
+ * @return {?}
15020
+ */
15021
+ function (value) {
15022
+ this.onChange(this.value);
15023
+ };
15024
+ /**
15025
+ * @param {?} fn
15026
+ * @return {?}
15027
+ */
15028
+ FHFieldPickListComponent.prototype.registerOnChange = /**
15029
+ * @param {?} fn
15030
+ * @return {?}
15031
+ */
15032
+ function (fn) {
15033
+ this.onChange = fn;
15034
+ };
15035
+ /**
15036
+ * @param {?} fn
15037
+ * @return {?}
15038
+ */
15039
+ FHFieldPickListComponent.prototype.registerOnTouched = /**
15040
+ * @param {?} fn
15041
+ * @return {?}
15042
+ */
15043
+ function (fn) {
15044
+ this.onTouched = fn;
15045
+ };
15046
+ /**
15047
+ * @return {?}
15048
+ */
15049
+ FHFieldPickListComponent.prototype.focus = /**
15050
+ * @return {?}
15051
+ */
15052
+ function () {
15053
+ };
15054
+ /**
15055
+ * @return {?}
15056
+ */
15057
+ FHFieldPickListComponent.prototype.reset = /**
15058
+ * @return {?}
15059
+ */
15060
+ function () {
15061
+ this.value = '';
15062
+ };
15063
+ /**
15064
+ * @return {?}
15065
+ */
15066
+ FHFieldPickListComponent.prototype.open_pick_list = /**
15067
+ * @return {?}
15068
+ */
15069
+ function () {
15070
+ var _this = this;
15071
+ /** @type {?} */
15072
+ var dialogRef = this.m_dialog.open(FHListPick, {
15073
+ disableClose: true
15074
+ });
15075
+ dialogRef.componentInstance.single_sel = this.single_sel;
15076
+ dialogRef.componentInstance.sel_values = this.value;
15077
+ dialogRef.componentInstance.label = this.label;
15078
+ dialogRef.componentInstance.sql = this.sql;
15079
+ dialogRef.componentInstance.types = this.types;
15080
+ dialogRef.componentInstance.values = this.values;
15081
+ dialogRef.componentInstance.doFill();
15082
+ dialogRef.afterClosed().subscribe(( /**
15083
+ * @param {?} result
15084
+ * @return {?}
15085
+ */function (result) {
15086
+ if (result != null && result != '') {
15087
+ _this.value = '';
15088
+ for (var i = 0; i < result.length; i++) {
15089
+ if (_this.value != '')
15090
+ _this.value += ',';
15091
+ _this.value += result[i].descrizione_valore;
15092
+ }
15093
+ return;
15094
+ }
15095
+ }));
15096
+ };
15097
+ /**
15098
+ * @return {?}
15099
+ */
15100
+ FHFieldPickListComponent.prototype.ngOnInit = /**
15101
+ * @return {?}
15102
+ */
15103
+ function () {
15104
+ };
15105
+ FHFieldPickListComponent.decorators = [
15106
+ { type: i0.Component, args: [{
15107
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
15108
+ selector: 'FHFieldPickList', template: "\n<div fxLayout=\"row\" style=\"width: 100%\" fxLayoutAlign=\"start center\" [hidden]=\"hidden\">\n <mat-form-field style=\"width: 100%\">\n <input type=\"text\" #el1 matInput [disabled]=\"!enabled || only_in_list\" placeholder=\"{{label}}\" [(ngModel)]=\"value\">\n </mat-form-field>\n <button mat-raised-button color=\"primary\" (click)=\"open_pick_list()\" [disabled]=\"!enabled\">SELEZIONA </button>\n</div>\n ",
15109
+ styles: ["\n\n "]
15110
+ }] }
15111
+ ];
15112
+ /** @nocollapse */
15113
+ FHFieldPickListComponent.ctorParameters = function () {
15114
+ return [
15115
+ { type: material.MatDialog }
15116
+ ];
15117
+ };
15118
+ FHFieldPickListComponent.propDecorators = {
15119
+ sql: [{ type: i0.Input }],
15120
+ types: [{ type: i0.Input }],
15121
+ values: [{ type: i0.Input }],
15122
+ hidden: [{ type: i0.Input }],
15123
+ only_in_list: [{ type: i0.Input }],
15124
+ single_sel: [{ type: i0.Input }],
15125
+ label: [{ type: i0.Input }],
15126
+ enabled: [{ type: i0.Input }],
15127
+ required: [{ type: i0.Input }],
15128
+ db_type: [{ type: i0.Input }],
15129
+ value: [{ type: i0.Input }]
15130
+ };
15131
+ return FHFieldPickListComponent;
15132
+ }());
15133
+
14948
15134
  /**
14949
15135
  * @fileoverview added by tsickle
14950
15136
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -15015,13 +15201,13 @@
15015
15201
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
15016
15202
  }),
15017
15203
  flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
15018
- exports: [SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
15204
+ exports: [FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
15019
15205
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15020
15206
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15021
15207
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15022
15208
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
15023
15209
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
15024
- declarations: [SafePipe, FHViewerComponent,
15210
+ declarations: [FHFieldPickListComponent, SafePipe, FHViewerComponent,
15025
15211
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15026
15212
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15027
15213
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -16530,10 +16716,7 @@
16530
16716
  else
16531
16717
  this.app_s.getState().wkf_doc_info.lbl = "La richiesta verrà chiusa con stato: " + this.nlevel.descri_livello;
16532
16718
  this.app_s.getState().wkf_doc_info.utenti = sp;
16533
- if (this.clevel.commenti_opzionali == 1)
16534
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
16535
- else
16536
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
16719
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.clevel.commenti_opzionali;
16537
16720
  /** @type {?} */
16538
16721
  var dialogRef = this.m_dialog.open(win_conferma, {
16539
16722
  disableClose: true
@@ -16555,10 +16738,7 @@
16555
16738
  }
16556
16739
  else {
16557
16740
  this.app_s.getState().wkf_doc_info.title = 'Assegnazione';
16558
- if (this.nlevel.commenti_opzionali == 1)
16559
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
16560
- else
16561
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
16741
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
16562
16742
  this.app_s.getState().wkf_doc_info.arrAutori = arrAutori.sort(( /**
16563
16743
  * @param {?} n1
16564
16744
  * @param {?} n2
@@ -16576,11 +16756,7 @@
16576
16756
  var dialogRef = this.m_dialog.open(win_assegna, {
16577
16757
  disableClose: true
16578
16758
  });
16579
- if (this.nlevel.commenti_opzionali == 1)
16580
- dialogRef.componentInstance.comm_notrequired = true;
16581
- else
16582
- dialogRef.componentInstance.comm_notrequired = false;
16583
- console.log('dialogRef.componentInstance.comm_notrequired ', dialogRef.componentInstance.comm_notrequired);
16759
+ dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
16584
16760
  dialogRef.afterClosed().subscribe(( /**
16585
16761
  * @param {?} result
16586
16762
  * @return {?}
@@ -18045,6 +18221,7 @@
18045
18221
  exports.NumericEditorComponent = NumericEditorComponent;
18046
18222
  exports.ComboBoxEditor = ComboBoxEditor;
18047
18223
  exports.TextAreaEditor = TextAreaEditor;
18224
+ exports.FHFieldPickListComponent = FHFieldPickListComponent;
18048
18225
  exports.FHAutoCompleteComponent = FHAutoCompleteComponent;
18049
18226
  exports.FHComboboxComponent = FHComboboxComponent;
18050
18227
  exports.FHConfirmComponent = FHConfirmComponent;
@@ -18088,29 +18265,30 @@
18088
18265
  exports.wkf_header_bar = wkf_header_bar;
18089
18266
  exports.wkfapp = wkfapp;
18090
18267
  exports.dati_aggiuntivi = dati_aggiuntivi;
18091
- exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
18092
- exports.ɵl = FHGridToolBarComponent;
18093
- exports.ɵh = win_grid_help;
18094
- exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
18095
- exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
18096
- exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
18097
- exports.ɵj = FHViewerComponent;
18098
- exports.ɵe = SafePipe;
18099
- exports.ɵf = DecimalMask;
18100
- exports.ɵg = FHValueAccessor;
18101
- exports.ɵi = HighlightService;
18102
- exports.ɵm = win_assegna;
18103
- exports.ɵr = win_commenti;
18104
- exports.ɵx = win_commento_sel_notif;
18105
- exports.ɵn = win_conferma;
18106
- exports.ɵs = win_info_doc;
18107
- exports.ɵt = win_log;
18108
- exports.ɵu = win_recupera_doc;
18109
- exports.ɵv = win_riassegna_select_level;
18110
- exports.ɵw = win_riassegna_select_user;
18111
- exports.ɵo = win_select_canale;
18112
- exports.ɵp = win_select_level;
18113
- exports.ɵq = win_uploads;
18268
+ exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
18269
+ exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2;
18270
+ exports.ɵm = FHGridToolBarComponent;
18271
+ exports.ɵi = win_grid_help;
18272
+ exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
18273
+ exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
18274
+ exports.ɵe = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
18275
+ exports.ɵk = FHViewerComponent;
18276
+ exports.ɵf = SafePipe;
18277
+ exports.ɵg = DecimalMask;
18278
+ exports.ɵh = FHValueAccessor;
18279
+ exports.ɵj = HighlightService;
18280
+ exports.ɵn = win_assegna;
18281
+ exports.ɵs = win_commenti;
18282
+ exports.ɵy = win_commento_sel_notif;
18283
+ exports.ɵo = win_conferma;
18284
+ exports.ɵt = win_info_doc;
18285
+ exports.ɵu = win_log;
18286
+ exports.ɵv = win_recupera_doc;
18287
+ exports.ɵw = win_riassegna_select_level;
18288
+ exports.ɵx = win_riassegna_select_user;
18289
+ exports.ɵp = win_select_canale;
18290
+ exports.ɵq = win_select_level;
18291
+ exports.ɵr = win_uploads;
18114
18292
 
18115
18293
  Object.defineProperty(exports, '__esModule', { value: true });
18116
18294