@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
@@ -20,7 +20,6 @@ import { FlexLayoutModule } from '@angular/flex-layout';
20
20
  import { MarkdownModule } from 'ngx-markdown';
21
21
  import { CKEditorModule } from 'ng2-ckeditor';
22
22
  import { isPlatformBrowser, CommonModule } from '@angular/common';
23
- import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
24
23
  import { AgGridModule } from 'ag-grid-angular';
25
24
  import { FileUploader, FileUploadModule } from 'ng2-file-upload';
26
25
  import { MyDatePickerModule } from 'mydatepicker';
@@ -30,11 +29,12 @@ import { CdkTableModule } from '@angular/cdk/table';
30
29
  import { Driver, NgForageCache, NgForage } from 'ngforage';
31
30
  import { TranslateModule } from '@ngx-translate/core';
32
31
  import { DragulaService, DragulaModule } from 'ng2-dragula';
33
- import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
34
32
  import { __read, __assign, __extends } from 'tslib';
35
33
  import { DomSanitizer } from '@angular/platform-browser';
34
+ import { NgControl, NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
35
+ import { MatDialogRef, MatDialog, DateAdapter, MAT_DATE_LOCALE, MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatPaginatorModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSortModule, MatSlideToggleModule, MatSnackBarModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, MatFormFieldModule, MatExpansionModule, MatStepperModule, MatDialogModule, MatNativeDateModule } from '@angular/material';
36
36
  import { ActivatedRoute, Router } from '@angular/router';
37
- import { Injectable, Component, Directive, Inject, PLATFORM_ID, Pipe, Input, Output, EventEmitter, ViewChild, forwardRef, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
37
+ import { Injectable, Component, Pipe, Directive, Inject, PLATFORM_ID, Input, forwardRef, Output, EventEmitter, ViewChild, ViewContainerRef, ElementRef, Optional, HostListener, defineInjectable, inject, NgModule } from '@angular/core';
38
38
  import { Http } from '@angular/http';
39
39
  import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
40
40
  import { ToastrService } from 'ngx-toastr';
@@ -2605,6 +2605,7 @@ var FHListComponent = /** @class */ (function () {
2605
2605
  this.values = [];
2606
2606
  this.label = "";
2607
2607
  this.enabled = true;
2608
+ this.single_sel = false;
2608
2609
  this.fillend = new EventEmitter();
2609
2610
  this.selchange = new EventEmitter();
2610
2611
  this.initend = new EventEmitter();
@@ -2624,6 +2625,8 @@ var FHListComponent = /** @class */ (function () {
2624
2625
  * @return {?}
2625
2626
  */
2626
2627
  function (u, b) {
2628
+ if (this.single_sel)
2629
+ u.checked = true;
2627
2630
  /*console.log(b.descrizione_valore +" "+b.checked);
2628
2631
  for(let i:number=0;i<this.myData.length;i++)
2629
2632
  if(this.myData[i].descrizione_valore==u.descrizione_valore){
@@ -2692,7 +2695,7 @@ var FHListComponent = /** @class */ (function () {
2692
2695
  _this.resetValue();
2693
2696
  // console.log(this.smtr); console.log(this.smtr.nativeElement);
2694
2697
  _this.setByValue(_this.valDef);
2695
- if (_this.getValue() == "-1" && _this.valDef != "-1")
2698
+ if (_this.getValue() == "" && _this.valDef != "-1")
2696
2699
  _this.setByDescri(_this.valDef);
2697
2700
  _this.fillend.emit();
2698
2701
  }
@@ -2725,10 +2728,11 @@ var FHListComponent = /** @class */ (function () {
2725
2728
  return;
2726
2729
  /** @type {?} */
2727
2730
  var arr_val = desc_val.split(',');
2728
- //console.log("arr_val "+arr_val.length);
2731
+ console.log("arr_val ", arr_val);
2729
2732
  for (var j = 0; j < this.myData.length; j++)
2730
2733
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2731
2734
  if (this.myData[j].descrizione_valore == arr_val[j1]) {
2735
+ console.log('this.myData[j].checked ', this.myData[j].checked);
2732
2736
  this.myData[j].checked = true;
2733
2737
  }
2734
2738
  }
@@ -2781,7 +2785,7 @@ var FHListComponent = /** @class */ (function () {
2781
2785
  var arr_val = desc_val.split(',');
2782
2786
  for (var j = 0; j < this.myData.length; j++)
2783
2787
  for (var j1 = 0; j1 < arr_val.length; j1++) {
2784
- //console.log(this.myData[j].valore +' '+ desc_val);
2788
+ console.log(this.myData[j].valore + ' ' + arr_val[j1]);
2785
2789
  if (this.myData[j].valore == arr_val[j1]) {
2786
2790
  this.myData[j].checked = true;
2787
2791
  //console.log("selval: "+this.selval);
@@ -2938,7 +2942,7 @@ var FHListComponent = /** @class */ (function () {
2938
2942
  };
2939
2943
  FHListComponent.decorators = [
2940
2944
  { type: Component, args: [{
2941
- 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 ",
2945
+ 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 ",
2942
2946
  styles: ["\n\n\n "]
2943
2947
  }] }
2944
2948
  ];
@@ -2953,6 +2957,7 @@ var FHListComponent = /** @class */ (function () {
2953
2957
  values: [{ type: Input }],
2954
2958
  label: [{ type: Input }],
2955
2959
  enabled: [{ type: Input }],
2960
+ single_sel: [{ type: Input }],
2956
2961
  smtr: [{ type: ViewChild, args: ['cmb',] }],
2957
2962
  fillend: [{ type: Output }],
2958
2963
  selchange: [{ type: Output }],
@@ -10712,6 +10717,8 @@ var FHListPick = /** @class */ (function () {
10712
10717
  this.m_appService = m_appService;
10713
10718
  this.label = "";
10714
10719
  this.sql = "";
10720
+ this.single_sel = false;
10721
+ this.sel_values = "";
10715
10722
  }
10716
10723
  /**
10717
10724
  * @return {?}
@@ -10720,6 +10727,8 @@ var FHListPick = /** @class */ (function () {
10720
10727
  * @return {?}
10721
10728
  */
10722
10729
  function () {
10730
+ if (!this.single_sel)
10731
+ this.cmb_sel.setByDescri(this.sel_values);
10723
10732
  this.cmb_sel.sql = this.sql;
10724
10733
  this.cmb_sel.types = this.types;
10725
10734
  this.cmb_sel.values = this.values;
@@ -10738,6 +10747,17 @@ var FHListPick = /** @class */ (function () {
10738
10747
  }
10739
10748
  this.dialogRef.close(this.cmb_sel.getObjects());
10740
10749
  };
10750
+ /**
10751
+ * @return {?}
10752
+ */
10753
+ FHListPick.prototype.ok_single = /**
10754
+ * @return {?}
10755
+ */
10756
+ function () {
10757
+ if (!this.single_sel)
10758
+ return;
10759
+ this.dialogRef.close(this.cmb_sel.getObjects());
10760
+ };
10741
10761
  /**
10742
10762
  * @return {?}
10743
10763
  */
@@ -10749,7 +10769,7 @@ var FHListPick = /** @class */ (function () {
10749
10769
  FHListPick.decorators = [
10750
10770
  { type: Component, args: [{
10751
10771
  selector: 'fhwincomboselect',
10752
- 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 "
10772
+ 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 "
10753
10773
  }] }
10754
10774
  ];
10755
10775
  /** @nocollapse */
@@ -10903,7 +10923,10 @@ var FHUserFieldComponent = /** @class */ (function () {
10903
10923
  */
10904
10924
  function (emails) {
10905
10925
  var _this = this;
10906
- if (!emails)
10926
+ console.log('emails ', emails);
10927
+ if (emails == null)
10928
+ return;
10929
+ if (emails == '')
10907
10930
  return;
10908
10931
  /** @type {?} */
10909
10932
  var a = emails.split(',');
@@ -10914,6 +10937,9 @@ var FHUserFieldComponent = /** @class */ (function () {
10914
10937
  s_nc = s_nc + ',';
10915
10938
  s_nc = s_nc + '\'' + a[i] + '\'';
10916
10939
  }
10940
+ console.log('s_nc ', s_nc);
10941
+ if (s_nc == "")
10942
+ return;
10917
10943
  /** @type {?} */
10918
10944
  var param = {
10919
10945
  sql: 'SELECT_USERS_INFOS_BY_EMAIL_NOREP',
@@ -10921,6 +10947,7 @@ var FHUserFieldComponent = /** @class */ (function () {
10921
10947
  values: [s_nc],
10922
10948
  names: [],
10923
10949
  };
10950
+ console.log(param);
10924
10951
  this.dataservice.doQuery(param)
10925
10952
  .subscribe((/**
10926
10953
  * @param {?} data
@@ -11180,7 +11207,7 @@ var win_assegna = /** @class */ (function () {
11180
11207
  this.nota = "";
11181
11208
  this.nota_commento = "";
11182
11209
  this.title = "ASSEGNA DOCUMENTO";
11183
- this.comm_notrequired = true;
11210
+ this.comm_notrequired = 0;
11184
11211
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
11185
11212
  this.title = this.m_appService.getState().wkf_doc_info.title;
11186
11213
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
@@ -11189,7 +11216,7 @@ var win_assegna = /** @class */ (function () {
11189
11216
  if (this.arrAutori[i].username == null)
11190
11217
  this.arrAutori[i].username = this.arrAutori[i].idp;
11191
11218
  }
11192
- if (this.comm_notrequired)
11219
+ if (this.comm_notrequired == 2)
11193
11220
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
11194
11221
  }
11195
11222
  /**
@@ -11199,7 +11226,7 @@ var win_assegna = /** @class */ (function () {
11199
11226
  * @return {?}
11200
11227
  */
11201
11228
  function () {
11202
- if (!this.comm_notrequired)
11229
+ if (this.comm_notrequired == 0)
11203
11230
  if (this.nota == "") {
11204
11231
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
11205
11232
  timeOut: 1000,
@@ -11239,7 +11266,7 @@ var win_assegna = /** @class */ (function () {
11239
11266
  };
11240
11267
  win_assegna.decorators = [
11241
11268
  { type: Component, args: [{
11242
- 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 "
11269
+ 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 "
11243
11270
  }] }
11244
11271
  ];
11245
11272
  /** @nocollapse */
@@ -11270,13 +11297,13 @@ var win_conferma = /** @class */ (function () {
11270
11297
  this.nota = "";
11271
11298
  this.nota_commento = "";
11272
11299
  this.title = "COMMENTI";
11273
- this.comm_notrequired = true;
11300
+ this.comm_notrequired = 0;
11274
11301
  this.mobile = false;
11275
11302
  this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
11276
11303
  this.title = this.m_appService.getState().wkf_doc_info.title;
11277
11304
  this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
11278
11305
  this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
11279
- if (this.comm_notrequired)
11306
+ if (this.comm_notrequired == 2)
11280
11307
  this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
11281
11308
  this.mobile = this.m_appService.getState().pageFullscreen;
11282
11309
  }
@@ -11287,7 +11314,7 @@ var win_conferma = /** @class */ (function () {
11287
11314
  * @return {?}
11288
11315
  */
11289
11316
  function () {
11290
- if (!this.comm_notrequired)
11317
+ if (this.comm_notrequired == 0)
11291
11318
  if (this.nota == "") {
11292
11319
  this.toastr.error("ERRORE", 'INSERIRE IL COMMENTO', {
11293
11320
  timeOut: 1000,
@@ -11316,7 +11343,7 @@ var win_conferma = /** @class */ (function () {
11316
11343
  };
11317
11344
  win_conferma.decorators = [
11318
11345
  { type: Component, args: [{
11319
- 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 "
11346
+ 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 "
11320
11347
  }] }
11321
11348
  ];
11322
11349
  /** @nocollapse */
@@ -15061,10 +15088,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15061
15088
  else
15062
15089
  this.app_s.getState().wkf_doc_info.lbl = "La richiesta verrà chiusa con stato: " + this.nlevel.descri_livello;
15063
15090
  this.app_s.getState().wkf_doc_info.utenti = sp;
15064
- if (this.clevel.commenti_opzionali == 1)
15065
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
15066
- else
15067
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
15091
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.clevel.commenti_opzionali;
15068
15092
  /** @type {?} */
15069
15093
  var dialogRef = this.m_dialog.open(win_conferma, {
15070
15094
  disableClose: true
@@ -15087,10 +15111,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15087
15111
  }
15088
15112
  else {
15089
15113
  this.app_s.getState().wkf_doc_info.title = 'Assegnazione';
15090
- if (this.nlevel.commenti_opzionali == 1)
15091
- this.app_s.getState().wkf_doc_info.comm_notrequired = true;
15092
- else
15093
- this.app_s.getState().wkf_doc_info.comm_notrequired = false;
15114
+ this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
15094
15115
  this.app_s.getState().wkf_doc_info.arrAutori = arrAutori.sort((/**
15095
15116
  * @param {?} n1
15096
15117
  * @param {?} n2
@@ -15109,11 +15130,7 @@ var dati_aggiuntivi = /** @class */ (function () {
15109
15130
  var dialogRef = this.m_dialog.open(win_assegna, {
15110
15131
  disableClose: true
15111
15132
  });
15112
- if (this.nlevel.commenti_opzionali == 1)
15113
- dialogRef.componentInstance.comm_notrequired = true;
15114
- else
15115
- dialogRef.componentInstance.comm_notrequired = false;
15116
- console.log('dialogRef.componentInstance.comm_notrequired ', dialogRef.componentInstance.comm_notrequired);
15133
+ dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
15117
15134
  dialogRef.afterClosed().subscribe((/**
15118
15135
  * @param {?} result
15119
15136
  * @return {?}
@@ -17708,6 +17725,174 @@ var SafePipe = /** @class */ (function () {
17708
17725
  return SafePipe;
17709
17726
  }());
17710
17727
 
17728
+ /**
17729
+ * @fileoverview added by tsickle
17730
+ * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
17731
+ */
17732
+ /** @type {?} */
17733
+ var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 = {
17734
+ provide: NG_VALUE_ACCESSOR,
17735
+ useExisting: forwardRef((/**
17736
+ * @return {?}
17737
+ */
17738
+ function () { return FHFieldPickListComponent; })),
17739
+ multi: true
17740
+ };
17741
+ var FHFieldPickListComponent = /** @class */ (function () {
17742
+ function FHFieldPickListComponent(m_dialog) {
17743
+ this.m_dialog = m_dialog;
17744
+ this.sql = "";
17745
+ this.types = new Array();
17746
+ this.values = new Array();
17747
+ this.hidden = false;
17748
+ this.only_in_list = true;
17749
+ this.single_sel = false;
17750
+ this.label = "";
17751
+ this.enabled = true;
17752
+ this.required = false;
17753
+ this.db_type = "1";
17754
+ this.value = "";
17755
+ this.onChange = (/**
17756
+ * @param {?} _
17757
+ * @return {?}
17758
+ */
17759
+ function (_) {
17760
+ });
17761
+ this.onTouched = (/**
17762
+ * @return {?}
17763
+ */
17764
+ function () {
17765
+ });
17766
+ }
17767
+ /**
17768
+ * @return {?}
17769
+ */
17770
+ FHFieldPickListComponent.prototype.resetValue = /**
17771
+ * @return {?}
17772
+ */
17773
+ function () {
17774
+ this.value = '';
17775
+ };
17776
+ /**
17777
+ * @param {?} value
17778
+ * @return {?}
17779
+ */
17780
+ FHFieldPickListComponent.prototype.writeValue = /**
17781
+ * @param {?} value
17782
+ * @return {?}
17783
+ */
17784
+ function (value) {
17785
+ this.onChange(this.value);
17786
+ };
17787
+ /**
17788
+ * @param {?} fn
17789
+ * @return {?}
17790
+ */
17791
+ FHFieldPickListComponent.prototype.registerOnChange = /**
17792
+ * @param {?} fn
17793
+ * @return {?}
17794
+ */
17795
+ function (fn) {
17796
+ this.onChange = fn;
17797
+ };
17798
+ /**
17799
+ * @param {?} fn
17800
+ * @return {?}
17801
+ */
17802
+ FHFieldPickListComponent.prototype.registerOnTouched = /**
17803
+ * @param {?} fn
17804
+ * @return {?}
17805
+ */
17806
+ function (fn) {
17807
+ this.onTouched = fn;
17808
+ };
17809
+ /**
17810
+ * @return {?}
17811
+ */
17812
+ FHFieldPickListComponent.prototype.focus = /**
17813
+ * @return {?}
17814
+ */
17815
+ function () {
17816
+ };
17817
+ /**
17818
+ * @return {?}
17819
+ */
17820
+ FHFieldPickListComponent.prototype.reset = /**
17821
+ * @return {?}
17822
+ */
17823
+ function () {
17824
+ this.value = '';
17825
+ };
17826
+ /**
17827
+ * @return {?}
17828
+ */
17829
+ FHFieldPickListComponent.prototype.open_pick_list = /**
17830
+ * @return {?}
17831
+ */
17832
+ function () {
17833
+ var _this = this;
17834
+ /** @type {?} */
17835
+ var dialogRef = this.m_dialog.open(FHListPick, {
17836
+ disableClose: true
17837
+ });
17838
+ dialogRef.componentInstance.single_sel = this.single_sel;
17839
+ dialogRef.componentInstance.sel_values = this.value;
17840
+ dialogRef.componentInstance.label = this.label;
17841
+ dialogRef.componentInstance.sql = this.sql;
17842
+ dialogRef.componentInstance.types = this.types;
17843
+ dialogRef.componentInstance.values = this.values;
17844
+ dialogRef.componentInstance.doFill();
17845
+ dialogRef.afterClosed().subscribe((/**
17846
+ * @param {?} result
17847
+ * @return {?}
17848
+ */
17849
+ function (result) {
17850
+ if (result != null && result != '') {
17851
+ _this.value = '';
17852
+ for (var i = 0; i < result.length; i++) {
17853
+ if (_this.value != '')
17854
+ _this.value += ',';
17855
+ _this.value += result[i].descrizione_valore;
17856
+ }
17857
+ return;
17858
+ }
17859
+ }));
17860
+ };
17861
+ /**
17862
+ * @return {?}
17863
+ */
17864
+ FHFieldPickListComponent.prototype.ngOnInit = /**
17865
+ * @return {?}
17866
+ */
17867
+ function () {
17868
+ };
17869
+ FHFieldPickListComponent.decorators = [
17870
+ { type: Component, args: [{
17871
+ providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2],
17872
+ 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 ",
17873
+ styles: ["\n\n "]
17874
+ }] }
17875
+ ];
17876
+ /** @nocollapse */
17877
+ FHFieldPickListComponent.ctorParameters = function () { return [
17878
+ { type: MatDialog }
17879
+ ]; };
17880
+ FHFieldPickListComponent.propDecorators = {
17881
+ sql: [{ type: Input }],
17882
+ types: [{ type: Input }],
17883
+ values: [{ type: Input }],
17884
+ hidden: [{ type: Input }],
17885
+ only_in_list: [{ type: Input }],
17886
+ single_sel: [{ type: Input }],
17887
+ label: [{ type: Input }],
17888
+ enabled: [{ type: Input }],
17889
+ required: [{ type: Input }],
17890
+ db_type: [{ type: Input }],
17891
+ value: [{ type: Input }]
17892
+ };
17893
+ return FHFieldPickListComponent;
17894
+ }());
17895
+
17711
17896
  /**
17712
17897
  * @fileoverview added by tsickle
17713
17898
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
@@ -17778,13 +17963,13 @@ var FluxhubLibModule = /** @class */ (function () {
17778
17963
  apiKey: 'AIzaSyD3-g3b_QqxUruxBY4PGJKaH2fubIVXvN4'
17779
17964
  }),
17780
17965
  FlexLayoutModule, MarkdownModule, CKEditorModule],
17781
- exports: [SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
17966
+ exports: [FHFieldPickListComponent, SafePipe, fhimagepreview, win_show_image, WinAskButtonsComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent,
17782
17967
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
17783
17968
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
17784
17969
  ComboBoxEditor, FHListComponent, FHWinComboSelect, ReplaceLineBreaks, DtPick, WinAskTextComponent, FHPickListComponent, WinAskNumberComponent,
17785
17970
  FHMdReader, FHLogPanelComponent, WinAskTextBigComponent, FHCurrencyFieldComponent, FHRichText, WinOutputComponent, FHNumericFieldComponent, wkf_header_bar,
17786
17971
  FHListPick, WinWait, FHUserFieldComponent, FSInput, FSResult, QGParam, QGResult, QParam, QResult, FHGridJSONComponent, win_salva_annulla, FormBuilderComponent, FormExecuterComponent],
17787
- declarations: [SafePipe, FHViewerComponent,
17972
+ declarations: [FHFieldPickListComponent, SafePipe, FHViewerComponent,
17788
17973
  fhimagepreview, win_show_image, WinAskButtonsComponent, FHGridToolBarComponent, win_time_slider, DecimalMask, FHTimePickerComponent, CurrencyComponent, FHUploadPanelComponent, FHUploadComponent, wkf_header_bar,
17789
17974
  FHGridComponent, FHComboboxComponent, FHConfirmComponent, FHAutoCompleteComponent, FHDatePickerComponent, DateComponent, NumericEditorComponent,
17790
17975
  FHUserPickerComponent, ApprovaGridComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, win_mappa, win_grid_help, TextAreaEditor,
@@ -18012,6 +18197,6 @@ var dt = /** @class */ (function () {
18012
18197
  * @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
18013
18198
  */
18014
18199
 
18015
- export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, win_show_image, fhimagepreview, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵa, FHGridToolBarComponent as ɵl, win_grid_help as ɵh, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵd, FHViewerComponent as ɵj, SafePipe as ɵe, DecimalMask as ɵf, FHValueAccessor as ɵg, HighlightService as ɵi, win_assegna as ɵm, win_commenti as ɵr, win_commento_sel_notif as ɵx, win_conferma as ɵn, win_info_doc as ɵs, win_log as ɵt, win_recupera_doc as ɵu, win_riassegna_select_level as ɵv, win_riassegna_select_user as ɵw, win_select_canale as ɵo, win_select_level as ɵp, win_uploads as ɵq };
18200
+ export { FluxhubLibModule, AppService, AppMakerService, FileService, OdbcService, QueryService, WkfService, GridService, AuthenticationService, UtilityService, OfficeAutomatorService, LocalDBService, FHGuard, FHGridJSONComponent, FHGridComponent, ApprovaGridComponent, CurrencyComponent, DateComponent, DtPick, dt, NumericEditorComponent, ComboBoxEditor, TextAreaEditor, FHFieldPickListComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHListComponent, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, ReplaceLineBreaks, FHRichText, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHPickListComponent, WinAskNumberComponent, WinAskTextComponent, WinAskTextBigComponent, WinAskButtonsComponent, FHWinComboSelect, win_show_image, fhimagepreview, FHListPick, win_mappa, WinOutputComponent, win_time_slider, WinWait, win_salva_annulla, QGParam, QGResult, QParam, QResult, FSInput, FSResult, FormBuilderComponent, FormExecuterComponent, wkf_header_bar, wkfapp, dati_aggiuntivi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵb, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, FHGridToolBarComponent as ɵm, win_grid_help as ɵi, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵe, FHViewerComponent as ɵk, SafePipe as ɵf, DecimalMask as ɵg, FHValueAccessor as ɵh, HighlightService as ɵj, win_assegna as ɵn, win_commenti as ɵs, win_commento_sel_notif as ɵy, win_conferma as ɵo, win_info_doc as ɵt, win_log as ɵu, win_recupera_doc as ɵv, win_riassegna_select_level as ɵw, win_riassegna_select_user as ɵx, win_select_canale as ɵp, win_select_level as ɵq, win_uploads as ɵr };
18016
18201
 
18017
18202
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map