@fluxhub/fluxhub-lib 9.0.0 → 9.0.2

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 (80) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +476 -347
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/app_manager/fhrolemanager.js +13 -9
  6. package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +13 -9
  7. package/esm2015/lib/controls/app_manager/win_manage_roles.js +4 -2
  8. package/esm2015/lib/controls/app_manager/win_manage_values.js +12 -10
  9. package/esm2015/lib/controls/fhautocomplete.js +14 -17
  10. package/esm2015/lib/controls/fhcombobox.js +15 -13
  11. package/esm2015/lib/controls/fhcurrencyfield.js +9 -7
  12. package/esm2015/lib/controls/fhcurrencyformatter.js +4 -2
  13. package/esm2015/lib/controls/fhdatepicker.js +4 -2
  14. package/esm2015/lib/controls/fhfieldpicklist.js +11 -9
  15. package/esm2015/lib/controls/fhgrid.js +18 -10
  16. package/esm2015/lib/controls/fhgrid_json.js +5 -3
  17. package/esm2015/lib/controls/fhimagepreview.js +4 -2
  18. package/esm2015/lib/controls/fhlist.js +16 -14
  19. package/esm2015/lib/controls/fhnumeric.js +10 -8
  20. package/esm2015/lib/controls/fhrichtext.js +35 -33
  21. package/esm2015/lib/controls/fhupload.js +42 -38
  22. package/esm2015/lib/controls/fhuploadpanel.js +24 -16
  23. package/esm2015/lib/controls/fhuserfield.js +11 -7
  24. package/esm2015/lib/controls/fhuserpicker.js +33 -31
  25. package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +15 -13
  26. package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +6 -4
  27. package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  28. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +6 -4
  29. package/esm2015/lib/controls/win_time_slider.js +11 -9
  30. package/esm2015/lib/controls/win_user_info.js +18 -16
  31. package/esm2015/lib/form_builder/form_builder.js +24 -20
  32. package/esm2015/lib/services/office_automator.service.js +4 -2
  33. package/esm2015/lib/wkf_engine/win_commenti.js +11 -7
  34. package/esm2015/lib/wkf_engine/win_insert_commento.js +4 -2
  35. package/esm2015/lib/wkf_engine/win_log.js +11 -7
  36. package/esm2015/lib/wkf_engine/win_uploads.js +6 -4
  37. package/esm2015/lib/wkf_engine/wkfapp.js +21 -11
  38. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +38 -26
  39. package/esm2015/public_api.js +1 -1
  40. package/esm5/lib/controls/app_manager/fhrolemanager.js +15 -9
  41. package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +15 -9
  42. package/esm5/lib/controls/app_manager/win_manage_roles.js +5 -2
  43. package/esm5/lib/controls/app_manager/win_manage_values.js +13 -10
  44. package/esm5/lib/controls/fhautocomplete.js +15 -17
  45. package/esm5/lib/controls/fhcombobox.js +16 -13
  46. package/esm5/lib/controls/fhcurrencyfield.js +10 -7
  47. package/esm5/lib/controls/fhcurrencyformatter.js +5 -2
  48. package/esm5/lib/controls/fhdatepicker.js +5 -2
  49. package/esm5/lib/controls/fhfieldpicklist.js +11 -9
  50. package/esm5/lib/controls/fhgrid.js +19 -10
  51. package/esm5/lib/controls/fhgrid_json.js +5 -3
  52. package/esm5/lib/controls/fhimagepreview.js +5 -2
  53. package/esm5/lib/controls/fhlist.js +17 -14
  54. package/esm5/lib/controls/fhnumeric.js +11 -8
  55. package/esm5/lib/controls/fhrichtext.js +36 -33
  56. package/esm5/lib/controls/fhupload.js +42 -38
  57. package/esm5/lib/controls/fhuploadpanel.js +26 -18
  58. package/esm5/lib/controls/fhuserfield.js +12 -7
  59. package/esm5/lib/controls/fhuserpicker.js +33 -31
  60. package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +16 -13
  61. package/esm5/lib/controls/grid_editors/numeric-editor.component.js +7 -4
  62. package/esm5/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  63. package/esm5/lib/controls/image-viewer/image-viewer.component.js +7 -4
  64. package/esm5/lib/controls/win_time_slider.js +12 -9
  65. package/esm5/lib/controls/win_user_info.js +18 -16
  66. package/esm5/lib/form_builder/form_builder.js +24 -20
  67. package/esm5/lib/services/office_automator.service.js +4 -2
  68. package/esm5/lib/wkf_engine/win_commenti.js +11 -7
  69. package/esm5/lib/wkf_engine/win_insert_commento.js +4 -2
  70. package/esm5/lib/wkf_engine/win_log.js +11 -7
  71. package/esm5/lib/wkf_engine/win_uploads.js +7 -4
  72. package/esm5/lib/wkf_engine/wkfapp.js +29 -19
  73. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +42 -28
  74. package/esm5/public_api.js +1 -1
  75. package/fesm2015/fluxhub-fluxhub-lib.js +440 -335
  76. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  77. package/fesm5/fluxhub-fluxhub-lib.js +476 -347
  78. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  79. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  80. package/package.json +1 -1
@@ -971,9 +971,12 @@ var NumericEditorComponent = /** @class */ (function () {
971
971
  };
972
972
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
973
973
  NumericEditorComponent.prototype.ngAfterViewInit = function () {
974
- //console.log(this.input.element.nativeElement);
975
- // this.input.first.nativeElement.focus();
976
- this.input.element.nativeElement.focus();
974
+ var _this = this;
975
+ setTimeout(function () {
976
+ //console.log(this.input.element.nativeElement);
977
+ // this.input.first.nativeElement.focus();
978
+ _this.input.element.nativeElement.focus();
979
+ });
977
980
  // this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
978
981
  /*if (this.input.nativeElement.classList.contains('ng-untouched')) {
979
982
  this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
@@ -1041,14 +1044,17 @@ var win_time_slider = /** @class */ (function () {
1041
1044
  this.dialogRef.close(this.res);
1042
1045
  };
1043
1046
  win_time_slider.prototype.ngAfterViewInit = function () {
1044
- if (this.m_appService.getState().appo_dialog != null)
1045
- if (this.m_appService.getState().appo_dialog.val != null) {
1046
- var a = this.m_appService.getState().appo_dialog.val.split(':');
1047
- this.h = parseInt(a[0]);
1048
- this.m = parseInt(a[1]);
1049
- this.res = this.m_appService.getState().appo_dialog.val;
1050
- return;
1051
- }
1047
+ var _this = this;
1048
+ setTimeout(function () {
1049
+ if (_this.m_appService.getState().appo_dialog != null)
1050
+ if (_this.m_appService.getState().appo_dialog.val != null) {
1051
+ var a = _this.m_appService.getState().appo_dialog.val.split(':');
1052
+ _this.h = parseInt(a[0]);
1053
+ _this.m = parseInt(a[1]);
1054
+ _this.res = _this.m_appService.getState().appo_dialog.val;
1055
+ return;
1056
+ }
1057
+ });
1052
1058
  };
1053
1059
  win_time_slider.ctorParameters = function () { return [
1054
1060
  { type: MatDialogRef },
@@ -1760,20 +1766,23 @@ var FHListComponent = /** @class */ (function () {
1760
1766
  this.setByDescri(this.valDef);
1761
1767
  };
1762
1768
  FHListComponent.prototype.ngAfterViewInit = function () {
1763
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
1764
- if (this.init_fill == true) {
1765
- if (this.sql == '') {
1766
- //this.errorMsg="QUERY NON CONFIGURATA";
1767
- return;
1769
+ var _this = this;
1770
+ setTimeout(function () {
1771
+ // console.log("ngAfterViewInit"); console.log(this.init_fill);
1772
+ if (_this.init_fill == true) {
1773
+ if (_this.sql == '') {
1774
+ //this.errorMsg="QUERY NON CONFIGURATA";
1775
+ return;
1776
+ }
1777
+ _this.fillCombo();
1768
1778
  }
1769
- this.fillCombo();
1770
- }
1771
- else {
1772
- this.errorMsg = "";
1773
- }
1774
- this
1775
- .initend
1776
- .emit();
1779
+ else {
1780
+ _this.errorMsg = "";
1781
+ }
1782
+ _this
1783
+ .initend
1784
+ .emit();
1785
+ });
1777
1786
  };
1778
1787
  FHListComponent.prototype.sc = function () {
1779
1788
  this
@@ -2127,19 +2136,22 @@ var FHComboboxComponent = /** @class */ (function () {
2127
2136
  this.setByDescri(this.valDef);
2128
2137
  };
2129
2138
  FHComboboxComponent.prototype.ngAfterViewInit = function () {
2130
- if (this.init_fill == true) {
2131
- if (this.sql == '') {
2132
- //this.errorMsg="QUERY NON CONFIGURATA";
2133
- return;
2139
+ var _this = this;
2140
+ setTimeout(function () {
2141
+ if (_this.init_fill == true) {
2142
+ if (_this.sql == '') {
2143
+ //this.errorMsg="QUERY NON CONFIGURATA";
2144
+ return;
2145
+ }
2146
+ _this.fillCombo();
2134
2147
  }
2135
- this.fillCombo();
2136
- }
2137
- else {
2138
- this.errorMsg = "";
2139
- }
2140
- this
2141
- .initend
2142
- .emit();
2148
+ else {
2149
+ _this.errorMsg = "";
2150
+ }
2151
+ _this
2152
+ .initend
2153
+ .emit();
2154
+ });
2143
2155
  };
2144
2156
  FHComboboxComponent.prototype.sc = function () {
2145
2157
  this
@@ -2328,43 +2340,45 @@ var FHUploadComponent = /** @class */ (function () {
2328
2340
  };
2329
2341
  FHUploadComponent.prototype.ngAfterViewInit = function () {
2330
2342
  var _this = this;
2331
- var uo = {};
2332
- uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
2333
- // console.log('ngAfterViewInit!!');
2334
- this.uploader.setOptions(uo);
2335
- this.uploader.onCompleteAll = function () {
2336
- _this.loading = false;
2337
- _this.upload_ended.emit();
2338
- if (_this.dialogRef != null)
2339
- if (_this.dialogRef.componentInstance != null) {
2340
- _this.dialogRef.componentInstance.update_progess(100);
2341
- _this.dialogRef = null;
2343
+ setTimeout(function () {
2344
+ var uo = {};
2345
+ uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(_this.app_s.COMPANY_KEY + "token") }];
2346
+ // console.log('ngAfterViewInit!!');
2347
+ _this.uploader.setOptions(uo);
2348
+ _this.uploader.onCompleteAll = function () {
2349
+ _this.loading = false;
2350
+ _this.upload_ended.emit();
2351
+ if (_this.dialogRef != null)
2352
+ if (_this.dialogRef.componentInstance != null) {
2353
+ _this.dialogRef.componentInstance.update_progess(100);
2354
+ _this.dialogRef = null;
2355
+ }
2356
+ };
2357
+ _this.uploader.onErrorItem = function (a, b, c, d) {
2358
+ _this.toastr.error(b);
2359
+ };
2360
+ _this.uploader.onAfterAddingFile = function (fileItem) {
2361
+ _this.ch(fileItem);
2362
+ };
2363
+ _this.uploader.onProgressItem = function (fileItem, progress) {
2364
+ // console.log(fileItem);
2365
+ // console.log(progress);
2366
+ _this.loading = true;
2367
+ if (_this.dialogRef != null)
2368
+ if (_this.dialogRef.componentInstance != null)
2369
+ _this.dialogRef.componentInstance.update_progess(progress);
2370
+ };
2371
+ _this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
2372
+ switch (filter.name) {
2373
+ case 'fileSize':
2374
+ var ar = Math.round(item.size / 1024 / 1024);
2375
+ _this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
2376
+ break;
2377
+ default:
2378
+ _this.toastr.error("Errore: " + filter.name);
2342
2379
  }
2343
- };
2344
- this.uploader.onErrorItem = function (a, b, c, d) {
2345
- _this.toastr.error(b);
2346
- };
2347
- this.uploader.onAfterAddingFile = function (fileItem) {
2348
- _this.ch(fileItem);
2349
- };
2350
- this.uploader.onProgressItem = function (fileItem, progress) {
2351
- // console.log(fileItem);
2352
- // console.log(progress);
2353
- _this.loading = true;
2354
- if (_this.dialogRef != null)
2355
- if (_this.dialogRef.componentInstance != null)
2356
- _this.dialogRef.componentInstance.update_progess(progress);
2357
- };
2358
- this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
2359
- switch (filter.name) {
2360
- case 'fileSize':
2361
- var ar = Math.round(item.size / 1024 / 1024);
2362
- _this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
2363
- break;
2364
- default:
2365
- _this.toastr.error("Errore: " + filter.name);
2366
- }
2367
- };
2380
+ };
2381
+ });
2368
2382
  };
2369
2383
  FHUploadComponent.prototype.download_all = function () {
2370
2384
  window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
@@ -2397,7 +2411,9 @@ var FHUploadComponent = /** @class */ (function () {
2397
2411
  };
2398
2412
  if (this.dialogRef == null) {
2399
2413
  this.dialogRef = this.dialog.open(WinWait, { 'disableClose': true });
2400
- this.dialogRef.componentInstance.label = this.label_attendere;
2414
+ setTimeout(function () {
2415
+ _this.dialogRef.componentInstance.label = _this.label_attendere;
2416
+ });
2401
2417
  this.dialogRef.afterClosed().subscribe(function (result) {
2402
2418
  if (result != "") {
2403
2419
  }
@@ -2929,11 +2945,13 @@ var FHUploadPanelComponent = /** @class */ (function () {
2929
2945
  .subscribe(function (data) {
2930
2946
  if (data != null)
2931
2947
  if (data.result_msg == "OK") {
2932
- var dialogRef = _this
2948
+ var dialogRef_1 = _this
2933
2949
  .dialog
2934
2950
  .open(FHWinComboSelect);
2935
- dialogRef.componentInstance.set_selection("Tipologia Allegato", data.result_data);
2936
- dialogRef
2951
+ setTimeout(function () {
2952
+ dialogRef_1.componentInstance.set_selection("Tipologia Allegato", data.result_data);
2953
+ });
2954
+ dialogRef_1
2937
2955
  .afterClosed()
2938
2956
  .subscribe(function (result) {
2939
2957
  if (result != null) {
@@ -2960,9 +2978,11 @@ var FHUploadPanelComponent = /** @class */ (function () {
2960
2978
  var dialogRef = this
2961
2979
  .dialog
2962
2980
  .open(WinAskTextBigComponent);
2963
- dialogRef.componentInstance.label = "Descrizione Allegato";
2964
- dialogRef.componentInstance.valore = ax.descrizione;
2965
- dialogRef.componentInstance.min_chars = 0;
2981
+ setTimeout(function () {
2982
+ dialogRef.componentInstance.label = "Descrizione Allegato";
2983
+ dialogRef.componentInstance.valore = ax.descrizione;
2984
+ dialogRef.componentInstance.min_chars = 0;
2985
+ });
2966
2986
  dialogRef
2967
2987
  .afterClosed()
2968
2988
  .subscribe(function (result) {
@@ -3025,17 +3045,21 @@ var FHUploadPanelComponent = /** @class */ (function () {
3025
3045
  };
3026
3046
  FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
3027
3047
  var _this = this;
3028
- setTimeout(function () { _this.b_initt = true; }, 700);
3029
- this.upc.single = false;
3030
- this.b_mobile = this._appservice.getState().pageFullscreen;
3031
- console.log('this.m_p_tipo ', this.m_p_tipo);
3032
- this
3033
- .upc
3034
- .init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
3035
- if (this.m_p_tipo.indexOf('SELECT_') > -1) {
3036
- this.multi_list = true;
3037
- }
3038
- this.ref_allegato();
3048
+ setTimeout(function () {
3049
+ setTimeout(function () {
3050
+ _this.b_initt = true;
3051
+ }, 700);
3052
+ _this.upc.single = false;
3053
+ _this.b_mobile = _this._appservice.getState().pageFullscreen;
3054
+ console.log('this.m_p_tipo ', _this.m_p_tipo);
3055
+ _this
3056
+ .upc
3057
+ .init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
3058
+ if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
3059
+ _this.multi_list = true;
3060
+ }
3061
+ _this.ref_allegato();
3062
+ });
3039
3063
  };
3040
3064
  FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
3041
3065
  if (p_tipo === void 0) { p_tipo = ""; }
@@ -3504,38 +3528,40 @@ var FHUserPickerComponent = /** @class */ (function () {
3504
3528
  };
3505
3529
  FHUserPickerComponent.prototype.ngAfterViewInit = function () {
3506
3530
  var _this = this;
3507
- if (this.all_users) {
3508
- var ok_op = false;
3509
- var p = new QParam();
3510
- p.sql = "SELECT_ALL_USERS";
3511
- p.types = [];
3512
- p.values = [];
3513
- this
3514
- ._dataService
3515
- .doQuery(p)
3516
- .subscribe(function (data) {
3531
+ setTimeout(function () {
3532
+ if (_this.all_users) {
3517
3533
  var ok_op = false;
3518
- if (data != null)
3519
- if (data.result_msg == "OK") {
3520
- _this.users_list = data.result_data;
3521
- _this.filtra();
3522
- ok_op = true;
3534
+ var p = new QParam();
3535
+ p.sql = "SELECT_ALL_USERS";
3536
+ p.types = [];
3537
+ p.values = [];
3538
+ _this
3539
+ ._dataService
3540
+ .doQuery(p)
3541
+ .subscribe(function (data) {
3542
+ var ok_op = false;
3543
+ if (data != null)
3544
+ if (data.result_msg == "OK") {
3545
+ _this.users_list = data.result_data;
3546
+ _this.filtra();
3547
+ ok_op = true;
3548
+ }
3549
+ if (!ok_op) {
3523
3550
  }
3524
- if (!ok_op) {
3525
- }
3526
- }, function (err) {
3527
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3528
- });
3529
- }
3530
- else {
3531
- if (this.user_sel != null)
3532
- if (this.user_sel.length > 0)
3533
- return;
3534
- this.users_list_sel = new Array();
3535
- if (this.users_list != null)
3536
- for (var i = 0; i < this.users_list.length; i++)
3537
- this.users_list_sel.push(this.users_list[i]);
3538
- }
3551
+ }, function (err) {
3552
+ _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3553
+ });
3554
+ }
3555
+ else {
3556
+ if (_this.user_sel != null)
3557
+ if (_this.user_sel.length > 0)
3558
+ return;
3559
+ _this.users_list_sel = new Array();
3560
+ if (_this.users_list != null)
3561
+ for (var i = 0; i < _this.users_list.length; i++)
3562
+ _this.users_list_sel.push(_this.users_list[i]);
3563
+ }
3564
+ });
3539
3565
  };
3540
3566
  FHUserPickerComponent.prototype.close = function () { this.dialogRef.close(null); };
3541
3567
  FHUserPickerComponent.prototype.do_add = function () {
@@ -3710,8 +3736,11 @@ var FHUserFieldComponent = /** @class */ (function () {
3710
3736
  };
3711
3737
  }
3712
3738
  FHUserFieldComponent.prototype.ngAfterViewInit = function () {
3713
- if (this.required)
3714
- this.label = this.label + ' *';
3739
+ var _this = this;
3740
+ setTimeout(function () {
3741
+ if (_this.required)
3742
+ _this.label = _this.label + ' *';
3743
+ });
3715
3744
  };
3716
3745
  FHUserFieldComponent.prototype.getUsersNc = function () {
3717
3746
  var s_nc = '';
@@ -3863,10 +3892,12 @@ var FHUserFieldComponent = /** @class */ (function () {
3863
3892
  var dialogRef = this.dialog.open(FHUserPickerComponent, {
3864
3893
  disableClose: true, width: "700px", height: "550px"
3865
3894
  });
3866
- dialogRef.componentInstance.user_sel = this.selectedUser;
3867
- dialogRef.componentInstance.users_list = Object.assign([], this.all_user);
3868
- dialogRef.componentInstance.single_sel = !this.multi;
3869
- dialogRef.componentInstance.filtra();
3895
+ setTimeout(function () {
3896
+ dialogRef.componentInstance.user_sel = _this.selectedUser;
3897
+ dialogRef.componentInstance.users_list = Object.assign([], _this.all_user);
3898
+ dialogRef.componentInstance.single_sel = !_this.multi;
3899
+ dialogRef.componentInstance.filtra();
3900
+ });
3870
3901
  dialogRef.afterClosed().subscribe(function (result) {
3871
3902
  if (result == null)
3872
3903
  return;
@@ -4100,7 +4131,9 @@ var wkfapp = /** @class */ (function () {
4100
4131
  wkfapp.prototype.recupera_richiesta = function () {
4101
4132
  var _this = this;
4102
4133
  var dialogRef = this.dialog.open(win_recupera_doc, { 'disableClose': true });
4103
- dialogRef.componentInstance.init_w(this.id_applicativo);
4134
+ setTimeout(function () {
4135
+ dialogRef.componentInstance.init_w(_this.id_applicativo);
4136
+ });
4104
4137
  dialogRef.afterClosed().subscribe(function (result) {
4105
4138
  if (result == 'ok')
4106
4139
  _this.get_grid().doFill('');
@@ -4123,10 +4156,12 @@ var wkfapp = /** @class */ (function () {
4123
4156
  .subscribe(function (data) {
4124
4157
  if (data != null)
4125
4158
  if (data.result_msg == "OK") {
4126
- var dialogRef = _this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
4127
- dialogRef.componentInstance.up.all_user = data.result_data;
4128
- dialogRef.componentInstance.title = "Sostituzione utente: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4129
- dialogRef.afterClosed().subscribe(function (result) {
4159
+ var dialogRef_1 = _this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
4160
+ setTimeout(function () {
4161
+ dialogRef_1.componentInstance.up.all_user = data.result_data;
4162
+ dialogRef_1.componentInstance.title = "Sostituzione utente: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4163
+ });
4164
+ dialogRef_1.afterClosed().subscribe(function (result) {
4130
4165
  if (result != null)
4131
4166
  if (result.result != null)
4132
4167
  if (result.result == 'ok') {
@@ -4166,17 +4201,19 @@ var wkfapp = /** @class */ (function () {
4166
4201
  if (data != null)
4167
4202
  if (data.result_msg == "OK") {
4168
4203
  _this.livs_adm = data.result_data;
4169
- var s_i = new Array();
4204
+ var s_i_1 = new Array();
4170
4205
  var ap_lvl = "";
4171
4206
  for (var i = 0; i < _this.livs_adm.length; i++)
4172
4207
  if (ap_lvl.indexOf(String(_this.livs_adm[i].livello)) == -1) {
4173
4208
  ap_lvl = ap_lvl + String(_this.livs_adm[i].livello) + "|";
4174
- s_i.push(_this.livs_adm[i]);
4209
+ s_i_1.push(_this.livs_adm[i]);
4175
4210
  }
4176
- var dialogRef = _this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
4177
- dialogRef.componentInstance.setStepCombo(s_i);
4178
- dialogRef.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4179
- dialogRef.afterClosed().subscribe(function (result) {
4211
+ var dialogRef_2 = _this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
4212
+ setTimeout(function () {
4213
+ dialogRef_2.componentInstance.setStepCombo(s_i_1);
4214
+ dialogRef_2.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4215
+ });
4216
+ dialogRef_2.afterClosed().subscribe(function (result) {
4180
4217
  if (result != null)
4181
4218
  if (result.result != null)
4182
4219
  if (result.result == 'ok') {
@@ -4200,8 +4237,10 @@ var wkfapp = /** @class */ (function () {
4200
4237
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
4201
4238
  arrAutori[i].username = arrAutori[i].idp;
4202
4239
  }
4203
- dialogRef.componentInstance.arrAutori = arrAutori;
4204
- dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
4240
+ setTimeout(function () {
4241
+ dialogRef.componentInstance.arrAutori = arrAutori;
4242
+ dialogRef.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4243
+ });
4205
4244
  dialogRef.afterClosed().subscribe(function (result) {
4206
4245
  if (result != null)
4207
4246
  if (result.result != null)
@@ -4368,11 +4407,13 @@ var wkfapp = /** @class */ (function () {
4368
4407
  .subscribe(function (data) {
4369
4408
  if (data != null)
4370
4409
  if (data.result_msg == "OK") {
4371
- var dialogRef = _this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
4372
- dialogRef.componentInstance.arrAutori = data.result_data;
4373
- dialogRef.componentInstance.title = "Impersona Utente";
4374
- dialogRef.componentInstance.commento_hidden = true;
4375
- dialogRef.afterClosed().subscribe(function (result) {
4410
+ var dialogRef_3 = _this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
4411
+ setTimeout(function () {
4412
+ dialogRef_3.componentInstance.arrAutori = data.result_data;
4413
+ dialogRef_3.componentInstance.title = "Impersona Utente";
4414
+ dialogRef_3.componentInstance.commento_hidden = true;
4415
+ });
4416
+ dialogRef_3.afterClosed().subscribe(function (result) {
4376
4417
  if (result != null)
4377
4418
  if (result.result != null)
4378
4419
  if (result.result == 'ok') {
@@ -4821,7 +4862,9 @@ var OfficeAutomatorService = /** @class */ (function () {
4821
4862
  this.eprog += 10;
4822
4863
  if (this.eprog >= 100)
4823
4864
  this.eprog = 95;
4824
- dialogRef_W.componentInstance.update_progess(this.eprog);
4865
+ setTimeout(function () {
4866
+ dialogRef_W.componentInstance.update_progess(_this.eprog);
4867
+ });
4825
4868
  setTimeout(function () {
4826
4869
  _this.progress_update(dialogRef_W);
4827
4870
  }, 2000);
@@ -5412,8 +5455,10 @@ var FHGridComponent = /** @class */ (function () {
5412
5455
  FHGridComponent.prototype.insert_config = function () {
5413
5456
  var _this = this;
5414
5457
  this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
5415
- this.win_opt.componentInstance.title = 'Salva Configurazione';
5416
- this.win_opt.componentInstance.label = 'Nome';
5458
+ setTimeout(function () {
5459
+ _this.win_opt.componentInstance.title = 'Salva Configurazione';
5460
+ _this.win_opt.componentInstance.label = 'Nome';
5461
+ });
5417
5462
  this.win_opt.afterClosed().subscribe(function (result) {
5418
5463
  if (result)
5419
5464
  if (result != null) {
@@ -5603,11 +5648,14 @@ var FHGridComponent = /** @class */ (function () {
5603
5648
  return "NA";
5604
5649
  };
5605
5650
  FHGridComponent.prototype.ngAfterViewInit = function () {
5606
- if (this.end_point == null)
5607
- this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
5608
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
5609
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
5610
- this.onResize();
5651
+ var _this = this;
5652
+ setTimeout(function () {
5653
+ if (_this.end_point == null)
5654
+ _this.end_point = _this.m_appService.API_ENDPOINT + _this.m_appService.GRID_ENDPOINT;
5655
+ if (localStorage.getItem(_this.grid_key + '_FILTER_UP') != null)
5656
+ _this.ric_libera = localStorage.getItem(_this.grid_key + '_FILTER_UP');
5657
+ _this.onResize();
5658
+ });
5611
5659
  };
5612
5660
  FHGridComponent.prototype.okr = function (event) {
5613
5661
  //console.log(event.column.colDef.field);
@@ -5731,7 +5779,9 @@ var FHGridComponent = /** @class */ (function () {
5731
5779
  this.dialogRef_W = this.m_dialog.open(WinWait, {
5732
5780
  disableClose: true
5733
5781
  });
5734
- this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
5782
+ setTimeout(function () {
5783
+ _this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
5784
+ });
5735
5785
  var cmds = [];
5736
5786
  var str_fields = "";
5737
5787
  var p_col = this.gridOptions.columnApi.getColumnState();
@@ -5756,7 +5806,9 @@ var FHGridComponent = /** @class */ (function () {
5756
5806
  cmds.push(this.officeService.operation("GB_CREA_TABELLA_FROM_DB", "select " + str_fields + " from " + this.tbl_name + " " + this.str_curr_q_p, "3", this.xxopx++));
5757
5807
  cmds.push(this.officeService.operation("GB_XLS_SAVE", this.m_appService.LOCAL_PATH + "grid_reports\\" + this.uiid_stampa + "_" + this.m_appService.user + format, "", this.xxopx++));
5758
5808
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe(function (data) {
5759
- _this.dialogRef_W.componentInstance.update_progess(100);
5809
+ setTimeout(function () {
5810
+ _this.dialogRef_W.componentInstance.update_progess(100);
5811
+ });
5760
5812
  var p = new FSInput();
5761
5813
  p.p1 =
5762
5814
  _this.m_appService.LOCAL_PATH + "grid_reports\\" + _this.uiid_stampa + "_" + _this.m_appService.user +
@@ -6659,23 +6711,21 @@ var FHAutoCompleteComponent = /** @class */ (function (_super) {
6659
6711
  }
6660
6712
  };
6661
6713
  FHAutoCompleteComponent.prototype.ngAfterViewInit = function () {
6662
- // console.log('ngAfterViewInit INIT'); console.log(this.init_fill);
6663
- // console.log("TIPO "+typeof(this.init_fill));
6664
- if (this.init_fill) {
6665
- if (this.sql == '') {
6666
- //this.errorMsg="QUERY NON CONFIGURATA";
6667
- return;
6714
+ var _this = this;
6715
+ setTimeout(function () {
6716
+ if (_this.init_fill) {
6717
+ if (_this.sql == '') {
6718
+ return;
6719
+ }
6720
+ _this.fillCombo();
6668
6721
  }
6669
- // console.log(' this.fillCombo()');
6670
- this.fillCombo();
6671
- }
6672
- else {
6673
- //console.log('salta');
6674
- this.errorMsg = "";
6675
- }
6676
- this
6677
- .initend
6678
- .emit();
6722
+ else {
6723
+ _this.errorMsg = "";
6724
+ }
6725
+ _this
6726
+ .initend
6727
+ .emit();
6728
+ });
6679
6729
  };
6680
6730
  /// override some FHValueAccessor implementation
6681
6731
  /**
@@ -7069,7 +7119,10 @@ var FHDatePickerComponent = /** @class */ (function (_super) {
7069
7119
  return this.date_sel.toDate();
7070
7120
  };
7071
7121
  FHDatePickerComponent.prototype.ngAfterViewInit = function () {
7072
- this.setLimits();
7122
+ var _this = this;
7123
+ setTimeout(function () {
7124
+ _this.setLimits();
7125
+ });
7073
7126
  // this.myDatePickerOptions.componentDisabled=!this.enabled;
7074
7127
  };
7075
7128
  FHDatePickerComponent.prototype.setLimits = function () {
@@ -7238,7 +7291,10 @@ var FHCurrencyFormatterDirective = /** @class */ (function () {
7238
7291
  this.el = this.elementRef.nativeElement;
7239
7292
  }
7240
7293
  FHCurrencyFormatterDirective.prototype.ngAfterViewInit = function () {
7241
- this.el.value = this.currencyPipe.transform(this.el.value);
7294
+ var _this = this;
7295
+ setTimeout(function () {
7296
+ _this.el.value = _this.currencyPipe.transform(_this.el.value);
7297
+ });
7242
7298
  };
7243
7299
  FHCurrencyFormatterDirective.prototype.onFocus = function (value) {
7244
7300
  this.el.value = this.currencyPipe.parse(value); // opossite of transform
@@ -7342,7 +7398,7 @@ var TextAreaEditor = /** @class */ (function () {
7342
7398
  TextAreaEditor.prototype.ngAfterViewInit = function () {
7343
7399
  var _this = this;
7344
7400
  // console.log(this.appdt.nativeElement);
7345
- setTimeout(function () { return _this.appdt.nativeElement.focus(); }, 500);
7401
+ setTimeout(function () { return _this.appdt.nativeElement.focus(); });
7346
7402
  };
7347
7403
  TextAreaEditor.prototype.agInit = function (params) {
7348
7404
  this.params = params;
@@ -8005,12 +8061,15 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
8005
8061
  this.el.nativeElement.focus();
8006
8062
  };
8007
8063
  FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
8008
- if (this.required)
8009
- this.el.nativeElement.required = this.required;
8010
- this.el.nativeElement.disabled = !this.enabled;
8011
- if (this.value == null)
8012
- this.value = 0;
8013
- this.formattedAmount = this.transform(this.value, this.decimal);
8064
+ var _this = this;
8065
+ setTimeout(function () {
8066
+ if (_this.required)
8067
+ _this.el.nativeElement.required = _this.required;
8068
+ _this.el.nativeElement.disabled = !_this.enabled;
8069
+ if (_this.value == null)
8070
+ _this.value = 0;
8071
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8072
+ });
8014
8073
  };
8015
8074
  __decorate([
8016
8075
  ViewChild('el'),
@@ -8098,38 +8157,41 @@ var FHRichText = /** @class */ (function () {
8098
8157
  this.blur.emit(o);
8099
8158
  };
8100
8159
  FHRichText.prototype.ngAfterViewInit = function () {
8101
- this.config = { height: this.height };
8102
- if (this.enabled) {
8103
- this.config.toolbarGroups = [
8104
- { name: 'document', groups: ['mode', 'document', 'doctools'] },
8105
- { name: 'clipboard', groups: ['clipboard', 'undo'] },
8106
- { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8107
- { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8108
- { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8109
- { name: 'links' },
8110
- { name: 'insert' },
8111
- { name: 'styles' },
8112
- { name: 'colors' },
8113
- { name: 'tools' },
8114
- { name: 'others' },
8115
- { name: 'about' }
8116
- ];
8117
- }
8118
- else {
8119
- this.config.allowedContent = true;
8120
- this.config.toolbarGroups = [];
8121
- }
8122
- /*
8123
- var element = document.querySelector( '.cke_top' );
8124
- console.log("Just to do some debugging we check " + element);
8125
- var myEl = this.ced.toolbarButtons
8126
- myEl.toggle();
8127
- element = document.querySelector( '.cke_bottom' );
8128
- myEl = ced.element( element );
8129
- myEl.toggle();
8130
-
8131
- var myEl2 = angular.element( document.querySelector( '.test' ) );
8132
- myEl2.toggleClass("invisible")*/
8160
+ var _this = this;
8161
+ setTimeout(function () {
8162
+ _this.config = { height: _this.height };
8163
+ if (_this.enabled) {
8164
+ _this.config.toolbarGroups = [
8165
+ { name: 'document', groups: ['mode', 'document', 'doctools'] },
8166
+ { name: 'clipboard', groups: ['clipboard', 'undo'] },
8167
+ { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8168
+ { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8169
+ { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8170
+ { name: 'links' },
8171
+ { name: 'insert' },
8172
+ { name: 'styles' },
8173
+ { name: 'colors' },
8174
+ { name: 'tools' },
8175
+ { name: 'others' },
8176
+ { name: 'about' }
8177
+ ];
8178
+ }
8179
+ else {
8180
+ _this.config.allowedContent = true;
8181
+ _this.config.toolbarGroups = [];
8182
+ }
8183
+ /*
8184
+ var element = document.querySelector( '.cke_top' );
8185
+ console.log("Just to do some debugging we check " + element);
8186
+ var myEl = this.ced.toolbarButtons
8187
+ myEl.toggle();
8188
+ element = document.querySelector( '.cke_bottom' );
8189
+ myEl = ced.element( element );
8190
+ myEl.toggle();
8191
+
8192
+ var myEl2 = angular.element( document.querySelector( '.test' ) );
8193
+ myEl2.toggleClass("invisible")*/
8194
+ });
8133
8195
  };
8134
8196
  FHRichText.prototype.writeValue = function (value) {
8135
8197
  this.value = value;
@@ -8337,13 +8399,16 @@ var FHNumericFieldComponent = /** @class */ (function () {
8337
8399
  this.el.nativeElement.focus();
8338
8400
  };
8339
8401
  FHNumericFieldComponent.prototype.ngAfterViewInit = function () {
8340
- if (this.required)
8341
- this.el.nativeElement.required = this.required;
8342
- this.el.nativeElement.disabled = !this.enabled;
8343
- if (this.value == null)
8344
- this.value = 0;
8345
- // console.log('tttttttttttt',this.decimal);
8346
- this.formattedAmount = this.transform(this.value, this.decimal);
8402
+ var _this = this;
8403
+ setTimeout(function () {
8404
+ if (_this.required)
8405
+ _this.el.nativeElement.required = _this.required;
8406
+ _this.el.nativeElement.disabled = !_this.enabled;
8407
+ if (_this.value == null)
8408
+ _this.value = 0;
8409
+ // console.log('tttttttttttt',this.decimal);
8410
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8411
+ });
8347
8412
  };
8348
8413
  FHNumericFieldComponent.ctorParameters = function () { return [
8349
8414
  { type: UtilityService }
@@ -8756,9 +8821,12 @@ var win_uploads = /** @class */ (function () {
8756
8821
  }
8757
8822
  win_uploads.prototype.close = function () { this.dialogRef.close(null); };
8758
8823
  win_uploads.prototype.ngAfterViewInit = function () {
8759
- this.App = this.app_s.getState().wkf_doc_info.uiid_app;
8760
- this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
8761
- this.init(this.App, this.K);
8824
+ var _this = this;
8825
+ setTimeout(function () {
8826
+ _this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
8827
+ _this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
8828
+ _this.init(_this.App, _this.K);
8829
+ });
8762
8830
  };
8763
8831
  win_uploads.prototype.init = function (p_app, p_k) {
8764
8832
  this.App = p_app;
@@ -8996,11 +9064,13 @@ var win_commenti = /** @class */ (function () {
8996
9064
  win_commenti.prototype.select_destinatari_grp = function () {
8997
9065
  var _this = this;
8998
9066
  var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
8999
- dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9000
- dialo.componentInstance.types = ['string'];
9001
- dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
9002
- dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9003
- dialo.componentInstance.doFill();
9067
+ setTimeout(function () {
9068
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9069
+ dialo.componentInstance.types = ['string'];
9070
+ dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
9071
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9072
+ dialo.componentInstance.doFill();
9073
+ });
9004
9074
  dialo.afterClosed().subscribe(function (result) {
9005
9075
  if (result != null) {
9006
9076
  if (result == '')
@@ -9036,7 +9106,9 @@ var win_commenti = /** @class */ (function () {
9036
9106
  var ok_op = false;
9037
9107
  this._dataService.doQuery(p).subscribe(function (data) {
9038
9108
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
9039
- dialo.componentInstance.init_arr(data.result_data);
9109
+ setTimeout(function () {
9110
+ dialo.componentInstance.init_arr(data.result_data);
9111
+ });
9040
9112
  dialo.afterClosed().subscribe(function (result) {
9041
9113
  // this.selectedOption = result;
9042
9114
  if (result != null) {
@@ -9378,7 +9450,9 @@ var win_log = /** @class */ (function () {
9378
9450
  var ok_op = false;
9379
9451
  this._dataService.doQuery(p).subscribe(function (data) {
9380
9452
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
9381
- dialo.componentInstance.init_arr(data.result_data);
9453
+ setTimeout(function () {
9454
+ dialo.componentInstance.init_arr(data.result_data);
9455
+ });
9382
9456
  dialo.afterClosed().subscribe(function (result) {
9383
9457
  if (result != null) {
9384
9458
  var s_users = "";
@@ -9395,11 +9469,13 @@ var win_log = /** @class */ (function () {
9395
9469
  win_log.prototype.select_destinatari_grp = function () {
9396
9470
  var _this = this;
9397
9471
  var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
9398
- dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9399
- dialo.componentInstance.types = ['string'];
9400
- dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
9401
- dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9402
- dialo.componentInstance.doFill();
9472
+ setTimeout(function () {
9473
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9474
+ dialo.componentInstance.types = ['string'];
9475
+ dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
9476
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9477
+ dialo.componentInstance.doFill();
9478
+ });
9403
9479
  dialo.afterClosed().subscribe(function (result) {
9404
9480
  if (result != null) {
9405
9481
  if (result == '')
@@ -9879,8 +9955,10 @@ var FHGridJSONComponent = /** @class */ (function () {
9879
9955
  FHGridJSONComponent.prototype.insert_config = function () {
9880
9956
  var _this = this;
9881
9957
  this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
9882
- this.win_opt.componentInstance.title = 'Salva Configurazione';
9883
- this.win_opt.componentInstance.label = 'Nome';
9958
+ setTimeout(function () {
9959
+ _this.win_opt.componentInstance.title = 'Salva Configurazione';
9960
+ _this.win_opt.componentInstance.label = 'Nome';
9961
+ });
9884
9962
  this.win_opt.afterClosed().subscribe(function (result) {
9885
9963
  if (result)
9886
9964
  if (result != null) {
@@ -11029,11 +11107,13 @@ var dati_aggiuntivi = /** @class */ (function () {
11029
11107
  return 0;
11030
11108
  });
11031
11109
  ;
11032
- var dialogRef = this.m_dialog.open(win_assegna, {
11110
+ var dialogRef_1 = this.m_dialog.open(win_assegna, {
11033
11111
  disableClose: true
11034
11112
  });
11035
- dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
11036
- dialogRef.afterClosed().subscribe(function (result) {
11113
+ setTimeout(function () {
11114
+ dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
11115
+ });
11116
+ dialogRef_1.afterClosed().subscribe(function (result) {
11037
11117
  if (result == "") {
11038
11118
  _this.edit_b(true);
11039
11119
  if (_this.respingi_enabled)
@@ -11399,17 +11479,19 @@ var dati_aggiuntivi = /** @class */ (function () {
11399
11479
  if (inser_c === void 0) { inser_c = false; }
11400
11480
  var s_h = (this.app_s.getState().body_h - 40) + 'px';
11401
11481
  var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: s_h });
11402
- dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
11403
- if (this.m_obj.lettori != null)
11404
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
11405
- else
11406
- dialogRef.componentInstance.lettori = '';
11407
- dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
11408
- dialogRef.componentInstance.codice_doc = this.m_obj.codice;
11409
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
11410
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
11411
- dialogRef.componentInstance.commenti_insert = inser_c;
11412
- dialogRef.componentInstance.init_v();
11482
+ setTimeout(function () {
11483
+ dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
11484
+ if (_this.m_obj.lettori != null)
11485
+ dialogRef.componentInstance.lettori = _this.m_obj.lettori;
11486
+ else
11487
+ dialogRef.componentInstance.lettori = '';
11488
+ dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
11489
+ dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
11490
+ dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
11491
+ dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
11492
+ dialogRef.componentInstance.commenti_insert = inser_c;
11493
+ dialogRef.componentInstance.init_v();
11494
+ });
11413
11495
  dialogRef.afterClosed().subscribe(function (result) {
11414
11496
  _this.r_count();
11415
11497
  });
@@ -11417,16 +11499,18 @@ var dati_aggiuntivi = /** @class */ (function () {
11417
11499
  dati_aggiuntivi.prototype.open_commenti = function () {
11418
11500
  var _this = this;
11419
11501
  var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
11420
- dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
11421
- if (this.m_obj.lettori != null)
11422
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
11423
- else
11424
- dialogRef.componentInstance.lettori = '';
11425
- dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
11426
- dialogRef.componentInstance.codice_doc = this.m_obj.codice;
11427
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
11428
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
11429
- dialogRef.componentInstance.init_v();
11502
+ setTimeout(function () {
11503
+ dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
11504
+ if (_this.m_obj.lettori != null)
11505
+ dialogRef.componentInstance.lettori = _this.m_obj.lettori;
11506
+ else
11507
+ dialogRef.componentInstance.lettori = '';
11508
+ dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
11509
+ dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
11510
+ dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
11511
+ dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
11512
+ dialogRef.componentInstance.init_v();
11513
+ });
11430
11514
  dialogRef.afterClosed().subscribe(function (result) {
11431
11515
  _this.r_count();
11432
11516
  });
@@ -11435,7 +11519,9 @@ var dati_aggiuntivi = /** @class */ (function () {
11435
11519
  var _this = this;
11436
11520
  if (sovra_path === void 0) { sovra_path = ''; }
11437
11521
  var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
11438
- dialogRef.componentInstance.sovrascrivi_path = sovra_path;
11522
+ setTimeout(function () {
11523
+ dialogRef.componentInstance.sovrascrivi_path = sovra_path;
11524
+ });
11439
11525
  dialogRef.afterClosed().subscribe(function (result) {
11440
11526
  _this.r_count();
11441
11527
  });
@@ -11672,10 +11758,13 @@ var dati_aggiuntivi = /** @class */ (function () {
11672
11758
  }
11673
11759
  };
11674
11760
  dati_aggiuntivi.prototype.open_info = function () {
11761
+ var _this = this;
11675
11762
  var dialogRef = this.m_dialog.open(win_info_doc, {
11676
11763
  disableClose: true
11677
11764
  });
11678
- dialogRef.componentInstance.hide_richiedente = this.hide_richiedente;
11765
+ setTimeout(function () {
11766
+ dialogRef.componentInstance.hide_richiedente = _this.hide_richiedente;
11767
+ });
11679
11768
  dialogRef.afterClosed().subscribe(function (result) {
11680
11769
  // this.selectedOption = result;
11681
11770
  });
@@ -11984,7 +12073,10 @@ var dati_aggiuntivi = /** @class */ (function () {
11984
12073
  });
11985
12074
  };
11986
12075
  dati_aggiuntivi.prototype.ngAfterViewInit = function () {
11987
- this.init_engine();
12076
+ var _this = this;
12077
+ setTimeout(function () {
12078
+ _this.init_engine();
12079
+ });
11988
12080
  };
11989
12081
  dati_aggiuntivi.prototype.setta_info_app = function (o) {
11990
12082
  this.app_info = o;
@@ -12142,8 +12234,10 @@ var FormBuilderComponent = /** @class */ (function () {
12142
12234
  FormBuilderComponent.prototype.del_item = function (uiid_obj) {
12143
12235
  var _this = this;
12144
12236
  var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
12145
- dialogRef.componentInstance.title = 'Confirm';
12146
- dialogRef.componentInstance.msg = "Remove Element?";
12237
+ setTimeout(function () {
12238
+ dialogRef.componentInstance.title = 'Confirm';
12239
+ dialogRef.componentInstance.msg = "Remove Element?";
12240
+ });
12147
12241
  dialogRef.afterClosed().subscribe(function (result) {
12148
12242
  if (result) {
12149
12243
  for (var i = 0; i < _this.items.length; i++)
@@ -12157,24 +12251,26 @@ var FormBuilderComponent = /** @class */ (function () {
12157
12251
  };
12158
12252
  FormBuilderComponent.prototype.ngAfterViewInit = function () {
12159
12253
  var _this = this;
12160
- try {
12161
- this.dragula.createGroup('bag-items', {
12162
- revertOnSpill: true
12254
+ setTimeout(function () {
12255
+ try {
12256
+ _this.dragula.createGroup('bag-items', {
12257
+ revertOnSpill: true
12258
+ });
12259
+ }
12260
+ catch (e) {
12261
+ console.log(e);
12262
+ }
12263
+ _this.dragula
12264
+ .drag.call(function (value) {
12265
+ _this.change.emit();
12266
+ _this.edit_obj = null;
12267
+ });
12268
+ _this.dragula
12269
+ .drop
12270
+ .call(function (value) {
12271
+ _this.change.emit();
12272
+ _this.edit_obj = null;
12163
12273
  });
12164
- }
12165
- catch (e) {
12166
- console.log(e);
12167
- }
12168
- this.dragula
12169
- .drag.call(function (value) {
12170
- _this.change.emit();
12171
- _this.edit_obj = null;
12172
- });
12173
- this.dragula
12174
- .drop
12175
- .call(function (value) {
12176
- _this.change.emit();
12177
- _this.edit_obj = null;
12178
12274
  });
12179
12275
  };
12180
12276
  FormBuilderComponent.ctorParameters = function () { return [
@@ -12386,9 +12482,12 @@ var FHViewerComponent = /** @class */ (function () {
12386
12482
  this.fullScreenEvent = new EventEmitter();
12387
12483
  }
12388
12484
  FHViewerComponent.prototype.ngAfterViewInit = function () {
12389
- var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
12390
- this.config = this.mergeConfig(merged, this.config);
12391
- this.triggerConfigBinding();
12485
+ var _this = this;
12486
+ setTimeout(function () {
12487
+ var merged = _this.mergeConfig(DEFAULT_CONFIG, _this.moduleConfig);
12488
+ _this.config = _this.mergeConfig(merged, _this.config);
12489
+ _this.triggerConfigBinding();
12490
+ });
12392
12491
  };
12393
12492
  FHViewerComponent.prototype.nextImage = function ($event) {
12394
12493
  console.log('this.src.length ', this.src.length);
@@ -12645,7 +12744,10 @@ var fhimagepreview = /** @class */ (function () {
12645
12744
  this.already_open = true;
12646
12745
  };
12647
12746
  fhimagepreview.prototype.ngAfterViewInit = function () {
12648
- this.init();
12747
+ var _this = this;
12748
+ setTimeout(function () {
12749
+ _this.init();
12750
+ });
12649
12751
  };
12650
12752
  fhimagepreview.prototype.openFullscreen = function () {
12651
12753
  console.log('cc', this.photo_c.imgx);
@@ -12870,14 +12972,16 @@ var FHFieldPickListComponent = /** @class */ (function () {
12870
12972
  var dialogRef = this.m_dialog.open(FHListPick, {
12871
12973
  disableClose: true
12872
12974
  });
12873
- dialogRef.componentInstance.single_sel = this.single_sel;
12874
- dialogRef.componentInstance.sel_values = this.value;
12875
- dialogRef.componentInstance.separator = this.separator;
12876
- dialogRef.componentInstance.label = this.label;
12877
- dialogRef.componentInstance.sql = this.sql;
12878
- dialogRef.componentInstance.types = this.types;
12879
- dialogRef.componentInstance.values = this.values;
12880
- dialogRef.componentInstance.doFill();
12975
+ setTimeout(function () {
12976
+ dialogRef.componentInstance.single_sel = _this.single_sel;
12977
+ dialogRef.componentInstance.sel_values = _this.value;
12978
+ dialogRef.componentInstance.separator = _this.separator;
12979
+ dialogRef.componentInstance.label = _this.label;
12980
+ dialogRef.componentInstance.sql = _this.sql;
12981
+ dialogRef.componentInstance.types = _this.types;
12982
+ dialogRef.componentInstance.values = _this.values;
12983
+ dialogRef.componentInstance.doFill();
12984
+ });
12881
12985
  dialogRef.afterClosed().subscribe(function (result) {
12882
12986
  if (result != null && result != '') {
12883
12987
  _this.value = '';
@@ -13029,15 +13133,18 @@ var win_manage_values = /** @class */ (function () {
13029
13133
  win_manage_values.prototype.ok = function () {
13030
13134
  };
13031
13135
  win_manage_values.prototype.ngAfterViewInit = function () {
13032
- this.nValori = new Object();
13033
- //this.nValori.valore=0;
13034
- this.nValori.descrizione = '';
13035
- this.nValori.v1 = null;
13036
- this.nValori.v2 = null;
13037
- this.nValori.id_valore = -1;
13038
- this.nValori.v3 = null;
13039
- this.nValori.lingua = null;
13040
- this.ref_user_list();
13136
+ var _this = this;
13137
+ setTimeout(function () {
13138
+ _this.nValori = new Object();
13139
+ //this.nValori.valore=0;
13140
+ _this.nValori.descrizione = '';
13141
+ _this.nValori.v1 = null;
13142
+ _this.nValori.v2 = null;
13143
+ _this.nValori.id_valore = -1;
13144
+ _this.nValori.v3 = null;
13145
+ _this.nValori.lingua = null;
13146
+ _this.ref_user_list();
13147
+ });
13041
13148
  };
13042
13149
  win_manage_values.ctorParameters = function () { return [
13043
13150
  { type: MatDialogRef },
@@ -13064,23 +13171,29 @@ var FHTableManager = /** @class */ (function () {
13064
13171
  this.b_init = false;
13065
13172
  }
13066
13173
  FHTableManager.prototype.edit_values = function () {
13174
+ var _this = this;
13067
13175
  if (this.cmb_sel.getValue() == "-1")
13068
13176
  return;
13069
13177
  var dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
13070
- dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());
13178
+ setTimeout(function () {
13179
+ dialogRef.componentInstance.id_tipo = Number(_this.cmb_sel.getValue());
13180
+ });
13071
13181
  dialogRef.afterClosed().subscribe(function (result) {
13072
13182
  if (result) {
13073
13183
  }
13074
13184
  });
13075
13185
  };
13076
13186
  FHTableManager.prototype.ngAfterViewInit = function () {
13077
- if (this.application == "")
13078
- return;
13079
- this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
13080
- this.cmb_sel.types = ['string'];
13081
- this.cmb_sel.values = [this.application];
13082
- this.cmb_sel.fillCombo();
13083
- this.b_init = true;
13187
+ var _this = this;
13188
+ setTimeout(function () {
13189
+ if (_this.application == "")
13190
+ return;
13191
+ _this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
13192
+ _this.cmb_sel.types = ['string'];
13193
+ _this.cmb_sel.values = [_this.application];
13194
+ _this.cmb_sel.fillCombo();
13195
+ _this.b_init = true;
13196
+ });
13084
13197
  };
13085
13198
  FHTableManager.ctorParameters = function () { return [
13086
13199
  { type: QueryService },
@@ -13174,7 +13287,10 @@ var win_manage_roles = /** @class */ (function () {
13174
13287
  });
13175
13288
  };
13176
13289
  win_manage_roles.prototype.ngAfterViewInit = function () {
13177
- this.ref_user_list();
13290
+ var _this = this;
13291
+ setTimeout(function () {
13292
+ _this.ref_user_list();
13293
+ });
13178
13294
  };
13179
13295
  win_manage_roles.ctorParameters = function () { return [
13180
13296
  { type: MatDialogRef },
@@ -13205,23 +13321,29 @@ var FHRoleManager = /** @class */ (function () {
13205
13321
  this.b_init = false;
13206
13322
  }
13207
13323
  FHRoleManager.prototype.edit_values = function () {
13324
+ var _this = this;
13208
13325
  if (this.cmb_sel.getValue() == "-1")
13209
13326
  return;
13210
13327
  var dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
13211
- dialogRef.componentInstance.role_id = Number(this.cmb_sel.getValue());
13328
+ setTimeout(function () {
13329
+ dialogRef.componentInstance.role_id = Number(_this.cmb_sel.getValue());
13330
+ });
13212
13331
  dialogRef.afterClosed().subscribe(function (result) {
13213
13332
  if (result) {
13214
13333
  }
13215
13334
  });
13216
13335
  };
13217
13336
  FHRoleManager.prototype.ngAfterViewInit = function () {
13218
- if (this.application == "")
13219
- return;
13220
- this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
13221
- this.cmb_sel.types = ['string'];
13222
- this.cmb_sel.values = [this.application];
13223
- this.cmb_sel.fillCombo();
13224
- this.b_init = true;
13337
+ var _this = this;
13338
+ setTimeout(function () {
13339
+ if (_this.application == "")
13340
+ return;
13341
+ _this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
13342
+ _this.cmb_sel.types = ['string'];
13343
+ _this.cmb_sel.values = [_this.application];
13344
+ _this.cmb_sel.fillCombo();
13345
+ _this.b_init = true;
13346
+ });
13225
13347
  };
13226
13348
  FHRoleManager.ctorParameters = function () { return [
13227
13349
  { type: QueryService },
@@ -13497,19 +13619,22 @@ var FHComboboxComponentFilter = /** @class */ (function () {
13497
13619
  this.setByDescri(this.valDef);
13498
13620
  };
13499
13621
  FHComboboxComponentFilter.prototype.ngAfterViewInit = function () {
13500
- if (this.init_fill == true) {
13501
- if (this.sql == '') {
13502
- //this.errorMsg="QUERY NON CONFIGURATA";
13503
- return;
13622
+ var _this = this;
13623
+ setTimeout(function () {
13624
+ if (_this.init_fill == true) {
13625
+ if (_this.sql == '') {
13626
+ //this.errorMsg="QUERY NON CONFIGURATA";
13627
+ return;
13628
+ }
13629
+ _this.fillCombo();
13504
13630
  }
13505
- this.fillCombo();
13506
- }
13507
- else {
13508
- this.errorMsg = "";
13509
- }
13510
- this
13511
- .initend
13512
- .emit();
13631
+ else {
13632
+ _this.errorMsg = "";
13633
+ }
13634
+ _this
13635
+ .initend
13636
+ .emit();
13637
+ });
13513
13638
  };
13514
13639
  FHComboboxComponentFilter.prototype.sc = function () {
13515
13640
  this
@@ -13630,7 +13755,9 @@ var win_insert_commento = /** @class */ (function () {
13630
13755
  var ok_op = false;
13631
13756
  this._dataService.doQuery(p).subscribe(function (data) {
13632
13757
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
13633
- dialo.componentInstance.init_arr(data.result_data);
13758
+ setTimeout(function () {
13759
+ dialo.componentInstance.init_arr(data.result_data);
13760
+ });
13634
13761
  dialo.afterClosed().subscribe(function (result) {
13635
13762
  // this.selectedOption = result;
13636
13763
  if (result != null) {
@@ -13734,22 +13861,24 @@ var win_user_info = /** @class */ (function () {
13734
13861
  win_user_info.prototype.close = function () { this.dialogRef.close(null); };
13735
13862
  win_user_info.prototype.ngAfterViewInit = function () {
13736
13863
  var _this = this;
13737
- if (this.isadmin == '1')
13738
- if (this.appService.dev_mode != null)
13739
- if (this.appService.dev_mode == '1')
13740
- this.dev_mode = true;
13741
- var p = new QParam();
13742
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
13743
- p.types = ['string', 'string'];
13744
- p.values = ['FOTO_UTENTI', this.appService.user];
13745
- this._dataService.doQuery(p).subscribe(function (data) {
13746
- if (data != null)
13747
- if (data.result_msg == "OK") {
13748
- if (data.result_data.length > 0) {
13749
- _this.b_filef = true;
13750
- _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
13864
+ setTimeout(function () {
13865
+ if (_this.isadmin == '1')
13866
+ if (_this.appService.dev_mode != null)
13867
+ if (_this.appService.dev_mode == '1')
13868
+ _this.dev_mode = true;
13869
+ var p = new QParam();
13870
+ p.sql = "SELECT_ALLEGATI_DOCUMENTO";
13871
+ p.types = ['string', 'string'];
13872
+ p.values = ['FOTO_UTENTI', _this.appService.user];
13873
+ _this._dataService.doQuery(p).subscribe(function (data) {
13874
+ if (data != null)
13875
+ if (data.result_msg == "OK") {
13876
+ if (data.result_data.length > 0) {
13877
+ _this.b_filef = true;
13878
+ _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
13879
+ }
13751
13880
  }
13752
- }
13881
+ });
13753
13882
  });
13754
13883
  };
13755
13884
  win_user_info.prototype.upd_dev = function (dv) {