@fluxhub/fluxhub-lib 1.0.266 → 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 (108) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +241 -56
  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/fhuserfield.js +9 -2
  80. package/esm2015/lib/controls/win_list_pick.js +23 -7
  81. package/esm2015/lib/fluxhub-lib.module.js +4 -3
  82. package/esm2015/lib/wkf_engine/win_assegna.js +5 -5
  83. package/esm2015/lib/wkf_engine/win_conferma.js +5 -5
  84. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -14
  85. package/esm2015/public_api.js +2 -1
  86. package/esm5/fluxhub-fluxhub-lib.js +26 -25
  87. package/esm5/lib/controls/fhfieldpicklist.js +206 -0
  88. package/esm5/lib/controls/fhlist.js +12 -5
  89. package/esm5/lib/controls/fhuserfield.js +9 -2
  90. package/esm5/lib/controls/win_list_pick.js +21 -2
  91. package/esm5/lib/fluxhub-lib.module.js +4 -3
  92. package/esm5/lib/wkf_engine/win_assegna.js +5 -5
  93. package/esm5/lib/wkf_engine/win_conferma.js +5 -5
  94. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -14
  95. package/esm5/public_api.js +2 -1
  96. package/fesm2015/fluxhub-fluxhub-lib.js +213 -45
  97. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  98. package/fesm5/fluxhub-fluxhub-lib.js +218 -33
  99. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  100. package/fluxhub-fluxhub-lib.d.ts +25 -24
  101. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  102. package/lib/controls/fhfieldpicklist.d.ts +28 -0
  103. package/lib/controls/fhlist.d.ts +1 -0
  104. package/lib/controls/win_list_pick.d.ts +3 -0
  105. package/lib/wkf_engine/win_assegna.d.ts +1 -1
  106. package/lib/wkf_engine/win_conferma.d.ts +1 -1
  107. package/package.json +1 -1
  108. 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 */
@@ -9732,7 +9752,10 @@
9732
9752
  */
9733
9753
  function (emails) {
9734
9754
  var _this = this;
9735
- if (!emails)
9755
+ console.log('emails ', emails);
9756
+ if (emails == null)
9757
+ return;
9758
+ if (emails == '')
9736
9759
  return;
9737
9760
  /** @type {?} */
9738
9761
  var a = emails.split(',');
@@ -9743,6 +9766,9 @@
9743
9766
  s_nc = s_nc + ',';
9744
9767
  s_nc = s_nc + '\'' + a[i] + '\'';
9745
9768
  }
9769
+ console.log('s_nc ', s_nc);
9770
+ if (s_nc == "")
9771
+ return;
9746
9772
  /** @type {?} */
9747
9773
  var param = {
9748
9774
  sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
@@ -9750,6 +9776,7 @@
9750
9776
  values: [s_nc],
9751
9777
  names: [],
9752
9778
  };
9779
+ console.log(param);
9753
9780
  this.dataservice.doQuery(param)
9754
9781
  .subscribe(( /**
9755
9782
  * @param {?} data
@@ -10009,7 +10036,7 @@
10009
10036
  this.nota = "";
10010
10037
  this.nota_commento = "";
10011
10038
  this.title = "ASSEGNA DOCUMENTO";
10012
- this.comm_notrequired = true;
10039
+ this.comm_notrequired = 0;
10013
10040
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10014
10041
  this.title = this.m_appService.getState().wkf_doc_info.title;
10015
10042
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
@@ -10018,7 +10045,7 @@
10018
10045
  if (this.arrAutori[i].username == null)
10019
10046
  this.arrAutori[i].username = this.arrAutori[i].idp;
10020
10047
  }
10021
- if (this.comm_notrequired)
10048
+ if (this.comm_notrequired == 2)
10022
10049
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10023
10050
  }
10024
10051
  /**
@@ -10028,7 +10055,7 @@
10028
10055
  * @return {?}
10029
10056
  */
10030
10057
  function () {
10031
- if (!this.comm_notrequired)
10058
+ if (this.comm_notrequired == 0)
10032
10059
  if (this.nota == "") {
10033
10060
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
10034
10061
  timeOut: 1000,
@@ -10068,7 +10095,7 @@
10068
10095
  };
10069
10096
  win_assegna.decorators = [
10070
10097
  { type: i0.Component, args: [{
10071
- 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 "
10072
10099
  }] }
10073
10100
  ];
10074
10101
  /** @nocollapse */
@@ -10101,13 +10128,13 @@
10101
10128
  this.nota = "";
10102
10129
  this.nota_commento = "";
10103
10130
  this.title = "COMMENTI";
10104
- this.comm_notrequired = true;
10131
+ this.comm_notrequired = 0;
10105
10132
  this.mobile = false;
10106
10133
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
10107
10134
  this.title = this.m_appService.getState().wkf_doc_info.title;
10108
10135
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
10109
10136
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
10110
- if (this.comm_notrequired)
10137
+ if (this.comm_notrequired == 2)
10111
10138
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
10112
10139
  this.mobile = this.m_appService.getState().pageFullscreen;
10113
10140
  }
@@ -10118,7 +10145,7 @@
10118
10145
  * @return {?}
10119
10146
  */
10120
10147
  function () {
10121
- if (!this.comm_notrequired)
10148
+ if (this.comm_notrequired == 0)
10122
10149
  if (this.nota == "") {
10123
10150
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
10124
10151
  timeOut: 1000,
@@ -10147,7 +10174,7 @@
10147
10174
  };
10148
10175
  win_conferma.decorators = [
10149
10176
  { type: i0.Component, args: [{
10150
- 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 "
10151
10178
  }] }
10152
10179
  ];
10153
10180
  /** @nocollapse */
@@ -14938,6 +14965,172 @@
14938
14965
  return SafePipe;
14939
14966
  }());
14940
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
+
14941
15134
  /**
14942
15135
  * @fileoverview added by tsickle
14943
15136
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -15008,13 +15201,13 @@
15008
15201
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
15009
15202
  }),
15010
15203
  flexLayout.FlexLayoutModule, ngxMarkdown.MarkdownModule, ng2Ckeditor.CKEditorModule],
15011
- 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,
15012
15205
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15013
15206
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
15014
15207
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
15015
15208
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
15016
15209
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
15017
- declarations: [SafePipe, FHViewerComponent,
15210
+ declarations: [FHFieldPickListComponent, SafePipe, FHViewerComponent,
15018
15211
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
15019
15212
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
15020
15213
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -16523,10 +16716,7 @@
16523
16716
  else
16524
16717
  this.app_s.getState().wkf_doc_info.lbl = "La richiesta verrà chiusa con stato: " + this.nlevel.descri_livello;
16525
16718
  this.app_s.getState().wkf_doc_info.utenti = sp;
16526
- if (this.clevel.commenti_opzionali == 1)
16527
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
16528
- else
16529
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
16719
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.clevel.commenti_opzionali;
16530
16720
  /** @type {?} */
16531
16721
  var dialogRef = this.m_dialog.open(win_conferma, {
16532
16722
  disableClose: true
@@ -16548,10 +16738,7 @@
16548
16738
  }
16549
16739
  else {
16550
16740
  this.app_s.getState().wkf_doc_info.title = 'Assegnazione';
16551
- if (this.nlevel.commenti_opzionali == 1)
16552
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
16553
- else
16554
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
16741
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
16555
16742
  this.app_s.getState().wkf_doc_info.arrAutori = arrAutori.sort(( /**
16556
16743
  * @param {?} n1
16557
16744
  * @param {?} n2
@@ -16569,11 +16756,7 @@
16569
16756
  var dialogRef = this.m_dialog.open(win_assegna, {
16570
16757
  disableClose: true
16571
16758
  });
16572
- if (this.nlevel.commenti_opzionali == 1)
16573
- dialogRef.componentInstance.comm_notrequired = true;
16574
- else
16575
- dialogRef.componentInstance.comm_notrequired = false;
16576
- console.log('dialogRef.componentInstance.comm_notrequired ', dialogRef.componentInstance.comm_notrequired);
16759
+ dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
16577
16760
  dialogRef.afterClosed().subscribe(( /**
16578
16761
  * @param {?} result
16579
16762
  * @return {?}
@@ -18038,6 +18221,7 @@
18038
18221
  exports.NumericEditorComponent = NumericEditorComponent;
18039
18222
  exports.ComboBoxEditor = ComboBoxEditor;
18040
18223
  exports.TextAreaEditor = TextAreaEditor;
18224
+ exports.FHFieldPickListComponent = FHFieldPickListComponent;
18041
18225
  exports.FHAutoCompleteComponent = FHAutoCompleteComponent;
18042
18226
  exports.FHComboboxComponent = FHComboboxComponent;
18043
18227
  exports.FHConfirmComponent = FHConfirmComponent;
@@ -18081,29 +18265,30 @@
18081
18265
  exports.wkf_header_bar = wkf_header_bar;
18082
18266
  exports.wkfapp = wkfapp;
18083
18267
  exports.dati_aggiuntivi = dati_aggiuntivi;
18084
- exports.ɵa = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR;
18085
- exports.ɵl = FHGridToolBarComponent;
18086
- exports.ɵh = win_grid_help;
18087
- exports.ɵb = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC;
18088
- exports.ɵc = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT;
18089
- exports.ɵd = CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1;
18090
- exports.ɵj = FHViewerComponent;
18091
- exports.ɵe = SafePipe;
18092
- exports.ɵf = DecimalMask;
18093
- exports.ɵg = FHValueAccessor;
18094
- exports.ɵi = HighlightService;
18095
- exports.ɵm = win_assegna;
18096
- exports.ɵr = win_commenti;
18097
- exports.ɵx = win_commento_sel_notif;
18098
- exports.ɵn = win_conferma;
18099
- exports.ɵs = win_info_doc;
18100
- exports.ɵt = win_log;
18101
- exports.ɵu = win_recupera_doc;
18102
- exports.ɵv = win_riassegna_select_level;
18103
- exports.ɵw = win_riassegna_select_user;
18104
- exports.ɵo = win_select_canale;
18105
- exports.ɵp = win_select_level;
18106
- 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;
18107
18292
 
18108
18293
  Object.defineProperty(exports, '__esModule', { value: true });
18109
18294