@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
@@ -1105,9 +1105,12 @@
1105
1105
  };
1106
1106
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
1107
1107
  NumericEditorComponent.prototype.ngAfterViewInit = function () {
1108
- //console.log(this.input.element.nativeElement);
1109
- // this.input.first.nativeElement.focus();
1110
- this.input.element.nativeElement.focus();
1108
+ var _this = this;
1109
+ setTimeout(function () {
1110
+ //console.log(this.input.element.nativeElement);
1111
+ // this.input.first.nativeElement.focus();
1112
+ _this.input.element.nativeElement.focus();
1113
+ });
1111
1114
  // this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
1112
1115
  /*if (this.input.nativeElement.classList.contains('ng-untouched')) {
1113
1116
  this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
@@ -1175,14 +1178,17 @@
1175
1178
  this.dialogRef.close(this.res);
1176
1179
  };
1177
1180
  win_time_slider.prototype.ngAfterViewInit = function () {
1178
- if (this.m_appService.getState().appo_dialog != null)
1179
- if (this.m_appService.getState().appo_dialog.val != null) {
1180
- var a = this.m_appService.getState().appo_dialog.val.split(':');
1181
- this.h = parseInt(a[0]);
1182
- this.m = parseInt(a[1]);
1183
- this.res = this.m_appService.getState().appo_dialog.val;
1184
- return;
1185
- }
1181
+ var _this = this;
1182
+ setTimeout(function () {
1183
+ if (_this.m_appService.getState().appo_dialog != null)
1184
+ if (_this.m_appService.getState().appo_dialog.val != null) {
1185
+ var a = _this.m_appService.getState().appo_dialog.val.split(':');
1186
+ _this.h = parseInt(a[0]);
1187
+ _this.m = parseInt(a[1]);
1188
+ _this.res = _this.m_appService.getState().appo_dialog.val;
1189
+ return;
1190
+ }
1191
+ });
1186
1192
  };
1187
1193
  win_time_slider.ctorParameters = function () { return [
1188
1194
  { type: dialog.MatDialogRef },
@@ -1894,20 +1900,23 @@
1894
1900
  this.setByDescri(this.valDef);
1895
1901
  };
1896
1902
  FHListComponent.prototype.ngAfterViewInit = function () {
1897
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
1898
- if (this.init_fill == true) {
1899
- if (this.sql == '') {
1900
- //this.errorMsg="QUERY NON CONFIGURATA";
1901
- return;
1903
+ var _this = this;
1904
+ setTimeout(function () {
1905
+ // console.log("ngAfterViewInit"); console.log(this.init_fill);
1906
+ if (_this.init_fill == true) {
1907
+ if (_this.sql == '') {
1908
+ //this.errorMsg="QUERY NON CONFIGURATA";
1909
+ return;
1910
+ }
1911
+ _this.fillCombo();
1902
1912
  }
1903
- this.fillCombo();
1904
- }
1905
- else {
1906
- this.errorMsg = "";
1907
- }
1908
- this
1909
- .initend
1910
- .emit();
1913
+ else {
1914
+ _this.errorMsg = "";
1915
+ }
1916
+ _this
1917
+ .initend
1918
+ .emit();
1919
+ });
1911
1920
  };
1912
1921
  FHListComponent.prototype.sc = function () {
1913
1922
  this
@@ -2261,19 +2270,22 @@
2261
2270
  this.setByDescri(this.valDef);
2262
2271
  };
2263
2272
  FHComboboxComponent.prototype.ngAfterViewInit = function () {
2264
- if (this.init_fill == true) {
2265
- if (this.sql == '') {
2266
- //this.errorMsg="QUERY NON CONFIGURATA";
2267
- return;
2273
+ var _this = this;
2274
+ setTimeout(function () {
2275
+ if (_this.init_fill == true) {
2276
+ if (_this.sql == '') {
2277
+ //this.errorMsg="QUERY NON CONFIGURATA";
2278
+ return;
2279
+ }
2280
+ _this.fillCombo();
2268
2281
  }
2269
- this.fillCombo();
2270
- }
2271
- else {
2272
- this.errorMsg = "";
2273
- }
2274
- this
2275
- .initend
2276
- .emit();
2282
+ else {
2283
+ _this.errorMsg = "";
2284
+ }
2285
+ _this
2286
+ .initend
2287
+ .emit();
2288
+ });
2277
2289
  };
2278
2290
  FHComboboxComponent.prototype.sc = function () {
2279
2291
  this
@@ -2462,43 +2474,45 @@
2462
2474
  };
2463
2475
  FHUploadComponent.prototype.ngAfterViewInit = function () {
2464
2476
  var _this = this;
2465
- var uo = {};
2466
- uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
2467
- // console.log('ngAfterViewInit!!');
2468
- this.uploader.setOptions(uo);
2469
- this.uploader.onCompleteAll = function () {
2470
- _this.loading = false;
2471
- _this.upload_ended.emit();
2472
- if (_this.dialogRef != null)
2473
- if (_this.dialogRef.componentInstance != null) {
2474
- _this.dialogRef.componentInstance.update_progess(100);
2475
- _this.dialogRef = null;
2477
+ setTimeout(function () {
2478
+ var uo = {};
2479
+ uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(_this.app_s.COMPANY_KEY + "token") }];
2480
+ // console.log('ngAfterViewInit!!');
2481
+ _this.uploader.setOptions(uo);
2482
+ _this.uploader.onCompleteAll = function () {
2483
+ _this.loading = false;
2484
+ _this.upload_ended.emit();
2485
+ if (_this.dialogRef != null)
2486
+ if (_this.dialogRef.componentInstance != null) {
2487
+ _this.dialogRef.componentInstance.update_progess(100);
2488
+ _this.dialogRef = null;
2489
+ }
2490
+ };
2491
+ _this.uploader.onErrorItem = function (a, b, c, d) {
2492
+ _this.toastr.error(b);
2493
+ };
2494
+ _this.uploader.onAfterAddingFile = function (fileItem) {
2495
+ _this.ch(fileItem);
2496
+ };
2497
+ _this.uploader.onProgressItem = function (fileItem, progress) {
2498
+ // console.log(fileItem);
2499
+ // console.log(progress);
2500
+ _this.loading = true;
2501
+ if (_this.dialogRef != null)
2502
+ if (_this.dialogRef.componentInstance != null)
2503
+ _this.dialogRef.componentInstance.update_progess(progress);
2504
+ };
2505
+ _this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
2506
+ switch (filter.name) {
2507
+ case 'fileSize':
2508
+ var ar = Math.round(item.size / 1024 / 1024);
2509
+ _this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
2510
+ break;
2511
+ default:
2512
+ _this.toastr.error("Errore: " + filter.name);
2476
2513
  }
2477
- };
2478
- this.uploader.onErrorItem = function (a, b, c, d) {
2479
- _this.toastr.error(b);
2480
- };
2481
- this.uploader.onAfterAddingFile = function (fileItem) {
2482
- _this.ch(fileItem);
2483
- };
2484
- this.uploader.onProgressItem = function (fileItem, progress) {
2485
- // console.log(fileItem);
2486
- // console.log(progress);
2487
- _this.loading = true;
2488
- if (_this.dialogRef != null)
2489
- if (_this.dialogRef.componentInstance != null)
2490
- _this.dialogRef.componentInstance.update_progess(progress);
2491
- };
2492
- this.uploader.onWhenAddingFileFailed = function (item, filter, options) {
2493
- switch (filter.name) {
2494
- case 'fileSize':
2495
- var ar = Math.round(item.size / 1024 / 1024);
2496
- _this.toastr.error(_this.limit_string.split('<size>').join('' + ar));
2497
- break;
2498
- default:
2499
- _this.toastr.error("Errore: " + filter.name);
2500
- }
2501
- };
2514
+ };
2515
+ });
2502
2516
  };
2503
2517
  FHUploadComponent.prototype.download_all = function () {
2504
2518
  window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
@@ -2531,7 +2545,9 @@
2531
2545
  };
2532
2546
  if (this.dialogRef == null) {
2533
2547
  this.dialogRef = this.dialog.open(WinWait, { 'disableClose': true });
2534
- this.dialogRef.componentInstance.label = this.label_attendere;
2548
+ setTimeout(function () {
2549
+ _this.dialogRef.componentInstance.label = _this.label_attendere;
2550
+ });
2535
2551
  this.dialogRef.afterClosed().subscribe(function (result) {
2536
2552
  if (result != "") {
2537
2553
  }
@@ -3063,11 +3079,13 @@
3063
3079
  .subscribe(function (data) {
3064
3080
  if (data != null)
3065
3081
  if (data.result_msg == "OK") {
3066
- var dialogRef = _this
3082
+ var dialogRef_1 = _this
3067
3083
  .dialog
3068
3084
  .open(FHWinComboSelect);
3069
- dialogRef.componentInstance.set_selection("Tipologia Allegato", data.result_data);
3070
- dialogRef
3085
+ setTimeout(function () {
3086
+ dialogRef_1.componentInstance.set_selection("Tipologia Allegato", data.result_data);
3087
+ });
3088
+ dialogRef_1
3071
3089
  .afterClosed()
3072
3090
  .subscribe(function (result) {
3073
3091
  if (result != null) {
@@ -3094,9 +3112,11 @@
3094
3112
  var dialogRef = this
3095
3113
  .dialog
3096
3114
  .open(WinAskTextBigComponent);
3097
- dialogRef.componentInstance.label = "Descrizione Allegato";
3098
- dialogRef.componentInstance.valore = ax.descrizione;
3099
- dialogRef.componentInstance.min_chars = 0;
3115
+ setTimeout(function () {
3116
+ dialogRef.componentInstance.label = "Descrizione Allegato";
3117
+ dialogRef.componentInstance.valore = ax.descrizione;
3118
+ dialogRef.componentInstance.min_chars = 0;
3119
+ });
3100
3120
  dialogRef
3101
3121
  .afterClosed()
3102
3122
  .subscribe(function (result) {
@@ -3159,17 +3179,21 @@
3159
3179
  };
3160
3180
  FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
3161
3181
  var _this = this;
3162
- setTimeout(function () { _this.b_initt = true; }, 700);
3163
- this.upc.single = false;
3164
- this.b_mobile = this._appservice.getState().pageFullscreen;
3165
- console.log('this.m_p_tipo ', this.m_p_tipo);
3166
- this
3167
- .upc
3168
- .init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
3169
- if (this.m_p_tipo.indexOf('SELECT_') > -1) {
3170
- this.multi_list = true;
3171
- }
3172
- this.ref_allegato();
3182
+ setTimeout(function () {
3183
+ setTimeout(function () {
3184
+ _this.b_initt = true;
3185
+ }, 700);
3186
+ _this.upc.single = false;
3187
+ _this.b_mobile = _this._appservice.getState().pageFullscreen;
3188
+ console.log('this.m_p_tipo ', _this.m_p_tipo);
3189
+ _this
3190
+ .upc
3191
+ .init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
3192
+ if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
3193
+ _this.multi_list = true;
3194
+ }
3195
+ _this.ref_allegato();
3196
+ });
3173
3197
  };
3174
3198
  FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
3175
3199
  if (p_tipo === void 0) { p_tipo = ""; }
@@ -3638,38 +3662,40 @@
3638
3662
  };
3639
3663
  FHUserPickerComponent.prototype.ngAfterViewInit = function () {
3640
3664
  var _this = this;
3641
- if (this.all_users) {
3642
- var ok_op = false;
3643
- var p = new QParam();
3644
- p.sql = "SELECT_ALL_USERS";
3645
- p.types = [];
3646
- p.values = [];
3647
- this
3648
- ._dataService
3649
- .doQuery(p)
3650
- .subscribe(function (data) {
3665
+ setTimeout(function () {
3666
+ if (_this.all_users) {
3651
3667
  var ok_op = false;
3652
- if (data != null)
3653
- if (data.result_msg == "OK") {
3654
- _this.users_list = data.result_data;
3655
- _this.filtra();
3656
- ok_op = true;
3668
+ var p = new QParam();
3669
+ p.sql = "SELECT_ALL_USERS";
3670
+ p.types = [];
3671
+ p.values = [];
3672
+ _this
3673
+ ._dataService
3674
+ .doQuery(p)
3675
+ .subscribe(function (data) {
3676
+ var ok_op = false;
3677
+ if (data != null)
3678
+ if (data.result_msg == "OK") {
3679
+ _this.users_list = data.result_data;
3680
+ _this.filtra();
3681
+ ok_op = true;
3682
+ }
3683
+ if (!ok_op) {
3657
3684
  }
3658
- if (!ok_op) {
3659
- }
3660
- }, function (err) {
3661
- _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3662
- });
3663
- }
3664
- else {
3665
- if (this.user_sel != null)
3666
- if (this.user_sel.length > 0)
3667
- return;
3668
- this.users_list_sel = new Array();
3669
- if (this.users_list != null)
3670
- for (var i = 0; i < this.users_list.length; i++)
3671
- this.users_list_sel.push(this.users_list[i]);
3672
- }
3685
+ }, function (err) {
3686
+ _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3687
+ });
3688
+ }
3689
+ else {
3690
+ if (_this.user_sel != null)
3691
+ if (_this.user_sel.length > 0)
3692
+ return;
3693
+ _this.users_list_sel = new Array();
3694
+ if (_this.users_list != null)
3695
+ for (var i = 0; i < _this.users_list.length; i++)
3696
+ _this.users_list_sel.push(_this.users_list[i]);
3697
+ }
3698
+ });
3673
3699
  };
3674
3700
  FHUserPickerComponent.prototype.close = function () { this.dialogRef.close(null); };
3675
3701
  FHUserPickerComponent.prototype.do_add = function () {
@@ -3844,8 +3870,11 @@
3844
3870
  };
3845
3871
  }
3846
3872
  FHUserFieldComponent.prototype.ngAfterViewInit = function () {
3847
- if (this.required)
3848
- this.label = this.label + ' *';
3873
+ var _this = this;
3874
+ setTimeout(function () {
3875
+ if (_this.required)
3876
+ _this.label = _this.label + ' *';
3877
+ });
3849
3878
  };
3850
3879
  FHUserFieldComponent.prototype.getUsersNc = function () {
3851
3880
  var s_nc = '';
@@ -3997,10 +4026,12 @@
3997
4026
  var dialogRef = this.dialog.open(FHUserPickerComponent, {
3998
4027
  disableClose: true, width: "700px", height: "550px"
3999
4028
  });
4000
- dialogRef.componentInstance.user_sel = this.selectedUser;
4001
- dialogRef.componentInstance.users_list = Object.assign([], this.all_user);
4002
- dialogRef.componentInstance.single_sel = !this.multi;
4003
- dialogRef.componentInstance.filtra();
4029
+ setTimeout(function () {
4030
+ dialogRef.componentInstance.user_sel = _this.selectedUser;
4031
+ dialogRef.componentInstance.users_list = Object.assign([], _this.all_user);
4032
+ dialogRef.componentInstance.single_sel = !_this.multi;
4033
+ dialogRef.componentInstance.filtra();
4034
+ });
4004
4035
  dialogRef.afterClosed().subscribe(function (result) {
4005
4036
  if (result == null)
4006
4037
  return;
@@ -4234,7 +4265,9 @@
4234
4265
  wkfapp.prototype.recupera_richiesta = function () {
4235
4266
  var _this = this;
4236
4267
  var dialogRef = this.dialog.open(win_recupera_doc, { 'disableClose': true });
4237
- dialogRef.componentInstance.init_w(this.id_applicativo);
4268
+ setTimeout(function () {
4269
+ dialogRef.componentInstance.init_w(_this.id_applicativo);
4270
+ });
4238
4271
  dialogRef.afterClosed().subscribe(function (result) {
4239
4272
  if (result == 'ok')
4240
4273
  _this.get_grid().doFill('');
@@ -4257,10 +4290,12 @@
4257
4290
  .subscribe(function (data) {
4258
4291
  if (data != null)
4259
4292
  if (data.result_msg == "OK") {
4260
- var dialogRef = _this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
4261
- dialogRef.componentInstance.up.all_user = data.result_data;
4262
- dialogRef.componentInstance.title = "Sostituzione utente: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4263
- dialogRef.afterClosed().subscribe(function (result) {
4293
+ var dialogRef_1 = _this.dialog.open(win_sostituisci_utente, { 'disableClose': true, 'width': '450px' });
4294
+ setTimeout(function () {
4295
+ dialogRef_1.componentInstance.up.all_user = data.result_data;
4296
+ dialogRef_1.componentInstance.title = "Sostituzione utente: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4297
+ });
4298
+ dialogRef_1.afterClosed().subscribe(function (result) {
4264
4299
  if (result != null)
4265
4300
  if (result.result != null)
4266
4301
  if (result.result == 'ok') {
@@ -4300,17 +4335,19 @@
4300
4335
  if (data != null)
4301
4336
  if (data.result_msg == "OK") {
4302
4337
  _this.livs_adm = data.result_data;
4303
- var s_i = new Array();
4338
+ var s_i_1 = new Array();
4304
4339
  var ap_lvl = "";
4305
4340
  for (var i = 0; i < _this.livs_adm.length; i++)
4306
4341
  if (ap_lvl.indexOf(String(_this.livs_adm[i].livello)) == -1) {
4307
4342
  ap_lvl = ap_lvl + String(_this.livs_adm[i].livello) + "|";
4308
- s_i.push(_this.livs_adm[i]);
4343
+ s_i_1.push(_this.livs_adm[i]);
4309
4344
  }
4310
- var dialogRef = _this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
4311
- dialogRef.componentInstance.setStepCombo(s_i);
4312
- dialogRef.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4313
- dialogRef.afterClosed().subscribe(function (result) {
4345
+ var dialogRef_2 = _this.dialog.open(win_riassegna_select_level, { 'disableClose': true });
4346
+ setTimeout(function () {
4347
+ dialogRef_2.componentInstance.setStepCombo(s_i_1);
4348
+ dialogRef_2.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4349
+ });
4350
+ dialogRef_2.afterClosed().subscribe(function (result) {
4314
4351
  if (result != null)
4315
4352
  if (result.result != null)
4316
4353
  if (result.result == 'ok') {
@@ -4334,8 +4371,10 @@
4334
4371
  if (arrAutori[i].idp != null && arrAutori[i].username == null)
4335
4372
  arrAutori[i].username = arrAutori[i].idp;
4336
4373
  }
4337
- dialogRef.componentInstance.arrAutori = arrAutori;
4338
- dialogRef.componentInstance.title = "Riassegnazione documento: " + this.get_grid().sRow.codice + " - " + this.get_grid().sRow.oggetto;
4374
+ setTimeout(function () {
4375
+ dialogRef.componentInstance.arrAutori = arrAutori;
4376
+ dialogRef.componentInstance.title = "Riassegnazione documento: " + _this.get_grid().sRow.codice + " - " + _this.get_grid().sRow.oggetto;
4377
+ });
4339
4378
  dialogRef.afterClosed().subscribe(function (result) {
4340
4379
  if (result != null)
4341
4380
  if (result.result != null)
@@ -4502,11 +4541,13 @@
4502
4541
  .subscribe(function (data) {
4503
4542
  if (data != null)
4504
4543
  if (data.result_msg == "OK") {
4505
- var dialogRef = _this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
4506
- dialogRef.componentInstance.arrAutori = data.result_data;
4507
- dialogRef.componentInstance.title = "Impersona Utente";
4508
- dialogRef.componentInstance.commento_hidden = true;
4509
- dialogRef.afterClosed().subscribe(function (result) {
4544
+ var dialogRef_3 = _this.dialog.open(win_riassegna_select_user, { 'disableClose': true, width: '850px' });
4545
+ setTimeout(function () {
4546
+ dialogRef_3.componentInstance.arrAutori = data.result_data;
4547
+ dialogRef_3.componentInstance.title = "Impersona Utente";
4548
+ dialogRef_3.componentInstance.commento_hidden = true;
4549
+ });
4550
+ dialogRef_3.afterClosed().subscribe(function (result) {
4510
4551
  if (result != null)
4511
4552
  if (result.result != null)
4512
4553
  if (result.result == 'ok') {
@@ -4955,7 +4996,9 @@
4955
4996
  this.eprog += 10;
4956
4997
  if (this.eprog >= 100)
4957
4998
  this.eprog = 95;
4958
- dialogRef_W.componentInstance.update_progess(this.eprog);
4999
+ setTimeout(function () {
5000
+ dialogRef_W.componentInstance.update_progess(_this.eprog);
5001
+ });
4959
5002
  setTimeout(function () {
4960
5003
  _this.progress_update(dialogRef_W);
4961
5004
  }, 2000);
@@ -5546,8 +5589,10 @@
5546
5589
  FHGridComponent.prototype.insert_config = function () {
5547
5590
  var _this = this;
5548
5591
  this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
5549
- this.win_opt.componentInstance.title = 'Salva Configurazione';
5550
- this.win_opt.componentInstance.label = 'Nome';
5592
+ setTimeout(function () {
5593
+ _this.win_opt.componentInstance.title = 'Salva Configurazione';
5594
+ _this.win_opt.componentInstance.label = 'Nome';
5595
+ });
5551
5596
  this.win_opt.afterClosed().subscribe(function (result) {
5552
5597
  if (result)
5553
5598
  if (result != null) {
@@ -5737,11 +5782,14 @@
5737
5782
  return "NA";
5738
5783
  };
5739
5784
  FHGridComponent.prototype.ngAfterViewInit = function () {
5740
- if (this.end_point == null)
5741
- this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
5742
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
5743
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
5744
- this.onResize();
5785
+ var _this = this;
5786
+ setTimeout(function () {
5787
+ if (_this.end_point == null)
5788
+ _this.end_point = _this.m_appService.API_ENDPOINT + _this.m_appService.GRID_ENDPOINT;
5789
+ if (localStorage.getItem(_this.grid_key + '_FILTER_UP') != null)
5790
+ _this.ric_libera = localStorage.getItem(_this.grid_key + '_FILTER_UP');
5791
+ _this.onResize();
5792
+ });
5745
5793
  };
5746
5794
  FHGridComponent.prototype.okr = function (event) {
5747
5795
  //console.log(event.column.colDef.field);
@@ -5865,7 +5913,9 @@
5865
5913
  this.dialogRef_W = this.m_dialog.open(WinWait, {
5866
5914
  disableClose: true
5867
5915
  });
5868
- this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
5916
+ setTimeout(function () {
5917
+ _this.dialogRef_W.componentInstance.label = "EXPORT IN CORSO";
5918
+ });
5869
5919
  var cmds = [];
5870
5920
  var str_fields = "";
5871
5921
  var p_col = this.gridOptions.columnApi.getColumnState();
@@ -5890,7 +5940,9 @@
5890
5940
  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++));
5891
5941
  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++));
5892
5942
  this.officeService.runCommands(this.uiid_stampa, cmds, this.dialogRef_W).subscribe(function (data) {
5893
- _this.dialogRef_W.componentInstance.update_progess(100);
5943
+ setTimeout(function () {
5944
+ _this.dialogRef_W.componentInstance.update_progess(100);
5945
+ });
5894
5946
  var p = new FSInput();
5895
5947
  p.p1 =
5896
5948
  _this.m_appService.LOCAL_PATH + "grid_reports\\" + _this.uiid_stampa + "_" + _this.m_appService.user +
@@ -6793,23 +6845,21 @@
6793
6845
  }
6794
6846
  };
6795
6847
  FHAutoCompleteComponent.prototype.ngAfterViewInit = function () {
6796
- // console.log('ngAfterViewInit INIT'); console.log(this.init_fill);
6797
- // console.log("TIPO "+typeof(this.init_fill));
6798
- if (this.init_fill) {
6799
- if (this.sql == '') {
6800
- //this.errorMsg="QUERY NON CONFIGURATA";
6801
- return;
6848
+ var _this = this;
6849
+ setTimeout(function () {
6850
+ if (_this.init_fill) {
6851
+ if (_this.sql == '') {
6852
+ return;
6853
+ }
6854
+ _this.fillCombo();
6802
6855
  }
6803
- // console.log(' this.fillCombo()');
6804
- this.fillCombo();
6805
- }
6806
- else {
6807
- //console.log('salta');
6808
- this.errorMsg = "";
6809
- }
6810
- this
6811
- .initend
6812
- .emit();
6856
+ else {
6857
+ _this.errorMsg = "";
6858
+ }
6859
+ _this
6860
+ .initend
6861
+ .emit();
6862
+ });
6813
6863
  };
6814
6864
  /// override some FHValueAccessor implementation
6815
6865
  /**
@@ -7203,7 +7253,10 @@
7203
7253
  return this.date_sel.toDate();
7204
7254
  };
7205
7255
  FHDatePickerComponent.prototype.ngAfterViewInit = function () {
7206
- this.setLimits();
7256
+ var _this = this;
7257
+ setTimeout(function () {
7258
+ _this.setLimits();
7259
+ });
7207
7260
  // this.myDatePickerOptions.componentDisabled=!this.enabled;
7208
7261
  };
7209
7262
  FHDatePickerComponent.prototype.setLimits = function () {
@@ -7372,7 +7425,10 @@
7372
7425
  this.el = this.elementRef.nativeElement;
7373
7426
  }
7374
7427
  FHCurrencyFormatterDirective.prototype.ngAfterViewInit = function () {
7375
- this.el.value = this.currencyPipe.transform(this.el.value);
7428
+ var _this = this;
7429
+ setTimeout(function () {
7430
+ _this.el.value = _this.currencyPipe.transform(_this.el.value);
7431
+ });
7376
7432
  };
7377
7433
  FHCurrencyFormatterDirective.prototype.onFocus = function (value) {
7378
7434
  this.el.value = this.currencyPipe.parse(value); // opossite of transform
@@ -7476,7 +7532,7 @@
7476
7532
  TextAreaEditor.prototype.ngAfterViewInit = function () {
7477
7533
  var _this = this;
7478
7534
  // console.log(this.appdt.nativeElement);
7479
- setTimeout(function () { return _this.appdt.nativeElement.focus(); }, 500);
7535
+ setTimeout(function () { return _this.appdt.nativeElement.focus(); });
7480
7536
  };
7481
7537
  TextAreaEditor.prototype.agInit = function (params) {
7482
7538
  this.params = params;
@@ -8139,12 +8195,15 @@
8139
8195
  this.el.nativeElement.focus();
8140
8196
  };
8141
8197
  FHCurrencyFieldComponent.prototype.ngAfterViewInit = function () {
8142
- if (this.required)
8143
- this.el.nativeElement.required = this.required;
8144
- this.el.nativeElement.disabled = !this.enabled;
8145
- if (this.value == null)
8146
- this.value = 0;
8147
- this.formattedAmount = this.transform(this.value, this.decimal);
8198
+ var _this = this;
8199
+ setTimeout(function () {
8200
+ if (_this.required)
8201
+ _this.el.nativeElement.required = _this.required;
8202
+ _this.el.nativeElement.disabled = !_this.enabled;
8203
+ if (_this.value == null)
8204
+ _this.value = 0;
8205
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8206
+ });
8148
8207
  };
8149
8208
  __decorate([
8150
8209
  core.ViewChild('el'),
@@ -8232,38 +8291,41 @@
8232
8291
  this.blur.emit(o);
8233
8292
  };
8234
8293
  FHRichText.prototype.ngAfterViewInit = function () {
8235
- this.config = { height: this.height };
8236
- if (this.enabled) {
8237
- this.config.toolbarGroups = [
8238
- { name: 'document', groups: ['mode', 'document', 'doctools'] },
8239
- { name: 'clipboard', groups: ['clipboard', 'undo'] },
8240
- { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8241
- { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8242
- { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8243
- { name: 'links' },
8244
- { name: 'insert' },
8245
- { name: 'styles' },
8246
- { name: 'colors' },
8247
- { name: 'tools' },
8248
- { name: 'others' },
8249
- { name: 'about' }
8250
- ];
8251
- }
8252
- else {
8253
- this.config.allowedContent = true;
8254
- this.config.toolbarGroups = [];
8255
- }
8256
- /*
8257
- var element = document.querySelector( '.cke_top' );
8258
- console.log("Just to do some debugging we check " + element);
8259
- var myEl = this.ced.toolbarButtons
8260
- myEl.toggle();
8261
- element = document.querySelector( '.cke_bottom' );
8262
- myEl = ced.element( element );
8263
- myEl.toggle();
8264
-
8265
- var myEl2 = angular.element( document.querySelector( '.test' ) );
8266
- myEl2.toggleClass("invisible")*/
8294
+ var _this = this;
8295
+ setTimeout(function () {
8296
+ _this.config = { height: _this.height };
8297
+ if (_this.enabled) {
8298
+ _this.config.toolbarGroups = [
8299
+ { name: 'document', groups: ['mode', 'document', 'doctools'] },
8300
+ { name: 'clipboard', groups: ['clipboard', 'undo'] },
8301
+ { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8302
+ { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8303
+ { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8304
+ { name: 'links' },
8305
+ { name: 'insert' },
8306
+ { name: 'styles' },
8307
+ { name: 'colors' },
8308
+ { name: 'tools' },
8309
+ { name: 'others' },
8310
+ { name: 'about' }
8311
+ ];
8312
+ }
8313
+ else {
8314
+ _this.config.allowedContent = true;
8315
+ _this.config.toolbarGroups = [];
8316
+ }
8317
+ /*
8318
+ var element = document.querySelector( '.cke_top' );
8319
+ console.log("Just to do some debugging we check " + element);
8320
+ var myEl = this.ced.toolbarButtons
8321
+ myEl.toggle();
8322
+ element = document.querySelector( '.cke_bottom' );
8323
+ myEl = ced.element( element );
8324
+ myEl.toggle();
8325
+
8326
+ var myEl2 = angular.element( document.querySelector( '.test' ) );
8327
+ myEl2.toggleClass("invisible")*/
8328
+ });
8267
8329
  };
8268
8330
  FHRichText.prototype.writeValue = function (value) {
8269
8331
  this.value = value;
@@ -8471,13 +8533,16 @@
8471
8533
  this.el.nativeElement.focus();
8472
8534
  };
8473
8535
  FHNumericFieldComponent.prototype.ngAfterViewInit = function () {
8474
- if (this.required)
8475
- this.el.nativeElement.required = this.required;
8476
- this.el.nativeElement.disabled = !this.enabled;
8477
- if (this.value == null)
8478
- this.value = 0;
8479
- // console.log('tttttttttttt',this.decimal);
8480
- this.formattedAmount = this.transform(this.value, this.decimal);
8536
+ var _this = this;
8537
+ setTimeout(function () {
8538
+ if (_this.required)
8539
+ _this.el.nativeElement.required = _this.required;
8540
+ _this.el.nativeElement.disabled = !_this.enabled;
8541
+ if (_this.value == null)
8542
+ _this.value = 0;
8543
+ // console.log('tttttttttttt',this.decimal);
8544
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8545
+ });
8481
8546
  };
8482
8547
  FHNumericFieldComponent.ctorParameters = function () { return [
8483
8548
  { type: UtilityService }
@@ -8890,9 +8955,12 @@
8890
8955
  }
8891
8956
  win_uploads.prototype.close = function () { this.dialogRef.close(null); };
8892
8957
  win_uploads.prototype.ngAfterViewInit = function () {
8893
- this.App = this.app_s.getState().wkf_doc_info.uiid_app;
8894
- this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
8895
- this.init(this.App, this.K);
8958
+ var _this = this;
8959
+ setTimeout(function () {
8960
+ _this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
8961
+ _this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
8962
+ _this.init(_this.App, _this.K);
8963
+ });
8896
8964
  };
8897
8965
  win_uploads.prototype.init = function (p_app, p_k) {
8898
8966
  this.App = p_app;
@@ -9130,11 +9198,13 @@
9130
9198
  win_commenti.prototype.select_destinatari_grp = function () {
9131
9199
  var _this = this;
9132
9200
  var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
9133
- dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9134
- dialo.componentInstance.types = ['string'];
9135
- dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
9136
- dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9137
- dialo.componentInstance.doFill();
9201
+ setTimeout(function () {
9202
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9203
+ dialo.componentInstance.types = ['string'];
9204
+ dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
9205
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9206
+ dialo.componentInstance.doFill();
9207
+ });
9138
9208
  dialo.afterClosed().subscribe(function (result) {
9139
9209
  if (result != null) {
9140
9210
  if (result == '')
@@ -9170,7 +9240,9 @@
9170
9240
  var ok_op = false;
9171
9241
  this._dataService.doQuery(p).subscribe(function (data) {
9172
9242
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
9173
- dialo.componentInstance.init_arr(data.result_data);
9243
+ setTimeout(function () {
9244
+ dialo.componentInstance.init_arr(data.result_data);
9245
+ });
9174
9246
  dialo.afterClosed().subscribe(function (result) {
9175
9247
  // this.selectedOption = result;
9176
9248
  if (result != null) {
@@ -9512,7 +9584,9 @@
9512
9584
  var ok_op = false;
9513
9585
  this._dataService.doQuery(p).subscribe(function (data) {
9514
9586
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
9515
- dialo.componentInstance.init_arr(data.result_data);
9587
+ setTimeout(function () {
9588
+ dialo.componentInstance.init_arr(data.result_data);
9589
+ });
9516
9590
  dialo.afterClosed().subscribe(function (result) {
9517
9591
  if (result != null) {
9518
9592
  var s_users = "";
@@ -9529,11 +9603,13 @@
9529
9603
  win_log.prototype.select_destinatari_grp = function () {
9530
9604
  var _this = this;
9531
9605
  var dialo = this.m_dialogRef.open(FHListPick, { 'disableClose': true });
9532
- dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9533
- dialo.componentInstance.types = ['string'];
9534
- dialo.componentInstance.values = [this.m_appService.getState().wkf_doc_info.uiid_app];
9535
- dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9536
- dialo.componentInstance.doFill();
9606
+ setTimeout(function () {
9607
+ dialo.componentInstance.title = 'Selezione almeno un gruppo da notificare';
9608
+ dialo.componentInstance.types = ['string'];
9609
+ dialo.componentInstance.values = [_this.m_appService.getState().wkf_doc_info.uiid_app];
9610
+ dialo.componentInstance.sql = "SELECT_GRP_APP_USERS";
9611
+ dialo.componentInstance.doFill();
9612
+ });
9537
9613
  dialo.afterClosed().subscribe(function (result) {
9538
9614
  if (result != null) {
9539
9615
  if (result == '')
@@ -10013,8 +10089,10 @@
10013
10089
  FHGridJSONComponent.prototype.insert_config = function () {
10014
10090
  var _this = this;
10015
10091
  this.win_opt = this.m_dialog.open(WinAskTextComponent, { 'disableClose': true });
10016
- this.win_opt.componentInstance.title = 'Salva Configurazione';
10017
- this.win_opt.componentInstance.label = 'Nome';
10092
+ setTimeout(function () {
10093
+ _this.win_opt.componentInstance.title = 'Salva Configurazione';
10094
+ _this.win_opt.componentInstance.label = 'Nome';
10095
+ });
10018
10096
  this.win_opt.afterClosed().subscribe(function (result) {
10019
10097
  if (result)
10020
10098
  if (result != null) {
@@ -11163,11 +11241,13 @@
11163
11241
  return 0;
11164
11242
  });
11165
11243
  ;
11166
- var dialogRef = this.m_dialog.open(win_assegna, {
11244
+ var dialogRef_1 = this.m_dialog.open(win_assegna, {
11167
11245
  disableClose: true
11168
11246
  });
11169
- dialogRef.componentInstance.comm_notrequired = this.nlevel.commenti_opzionali;
11170
- dialogRef.afterClosed().subscribe(function (result) {
11247
+ setTimeout(function () {
11248
+ dialogRef_1.componentInstance.comm_notrequired = _this.nlevel.commenti_opzionali;
11249
+ });
11250
+ dialogRef_1.afterClosed().subscribe(function (result) {
11171
11251
  if (result == "") {
11172
11252
  _this.edit_b(true);
11173
11253
  if (_this.respingi_enabled)
@@ -11533,17 +11613,19 @@
11533
11613
  if (inser_c === void 0) { inser_c = false; }
11534
11614
  var s_h = (this.app_s.getState().body_h - 40) + 'px';
11535
11615
  var dialogRef = this.m_dialog.open(win_log, { 'disableClose': true, width: "95%", height: s_h });
11536
- dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
11537
- if (this.m_obj.lettori != null)
11538
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
11539
- else
11540
- dialogRef.componentInstance.lettori = '';
11541
- dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
11542
- dialogRef.componentInstance.codice_doc = this.m_obj.codice;
11543
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
11544
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
11545
- dialogRef.componentInstance.commenti_insert = inser_c;
11546
- dialogRef.componentInstance.init_v();
11616
+ setTimeout(function () {
11617
+ dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
11618
+ if (_this.m_obj.lettori != null)
11619
+ dialogRef.componentInstance.lettori = _this.m_obj.lettori;
11620
+ else
11621
+ dialogRef.componentInstance.lettori = '';
11622
+ dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
11623
+ dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
11624
+ dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
11625
+ dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
11626
+ dialogRef.componentInstance.commenti_insert = inser_c;
11627
+ dialogRef.componentInstance.init_v();
11628
+ });
11547
11629
  dialogRef.afterClosed().subscribe(function (result) {
11548
11630
  _this.r_count();
11549
11631
  });
@@ -11551,16 +11633,18 @@
11551
11633
  dati_aggiuntivi.prototype.open_commenti = function () {
11552
11634
  var _this = this;
11553
11635
  var dialogRef = this.m_dialog.open(win_commenti, { 'disableClose': true, width: "90%" });
11554
- dialogRef.componentInstance.subject = this.app_info.descrizione_breve + ", <OP>: " + this.m_obj.codice + " " + this.getTitle();
11555
- if (this.m_obj.lettori != null)
11556
- dialogRef.componentInstance.lettori = this.m_obj.lettori;
11557
- else
11558
- dialogRef.componentInstance.lettori = '';
11559
- dialogRef.componentInstance.link = this.app_s.COMPANY_SITE_ROOT + '#/' + this.app_info.modulo_swf + '/' + this.id_applicativo + "/" + this.id_documento + "/edit";
11560
- dialogRef.componentInstance.codice_doc = this.m_obj.codice;
11561
- dialogRef.componentInstance.notifica_commenti = this.app_info.notifica_commenti;
11562
- dialogRef.componentInstance.notifica_commenti_obbl = this.app_info.notifica_commenti_obbl;
11563
- dialogRef.componentInstance.init_v();
11636
+ setTimeout(function () {
11637
+ dialogRef.componentInstance.subject = _this.app_info.descrizione_breve + ", <OP>: " + _this.m_obj.codice + " " + _this.getTitle();
11638
+ if (_this.m_obj.lettori != null)
11639
+ dialogRef.componentInstance.lettori = _this.m_obj.lettori;
11640
+ else
11641
+ dialogRef.componentInstance.lettori = '';
11642
+ dialogRef.componentInstance.link = _this.app_s.COMPANY_SITE_ROOT + '#/' + _this.app_info.modulo_swf + '/' + _this.id_applicativo + "/" + _this.id_documento + "/edit";
11643
+ dialogRef.componentInstance.codice_doc = _this.m_obj.codice;
11644
+ dialogRef.componentInstance.notifica_commenti = _this.app_info.notifica_commenti;
11645
+ dialogRef.componentInstance.notifica_commenti_obbl = _this.app_info.notifica_commenti_obbl;
11646
+ dialogRef.componentInstance.init_v();
11647
+ });
11564
11648
  dialogRef.afterClosed().subscribe(function (result) {
11565
11649
  _this.r_count();
11566
11650
  });
@@ -11569,7 +11653,9 @@
11569
11653
  var _this = this;
11570
11654
  if (sovra_path === void 0) { sovra_path = ''; }
11571
11655
  var dialogRef = this.m_dialog.open(win_uploads, { 'disableClose': true, width: "90%" });
11572
- dialogRef.componentInstance.sovrascrivi_path = sovra_path;
11656
+ setTimeout(function () {
11657
+ dialogRef.componentInstance.sovrascrivi_path = sovra_path;
11658
+ });
11573
11659
  dialogRef.afterClosed().subscribe(function (result) {
11574
11660
  _this.r_count();
11575
11661
  });
@@ -11806,10 +11892,13 @@
11806
11892
  }
11807
11893
  };
11808
11894
  dati_aggiuntivi.prototype.open_info = function () {
11895
+ var _this = this;
11809
11896
  var dialogRef = this.m_dialog.open(win_info_doc, {
11810
11897
  disableClose: true
11811
11898
  });
11812
- dialogRef.componentInstance.hide_richiedente = this.hide_richiedente;
11899
+ setTimeout(function () {
11900
+ dialogRef.componentInstance.hide_richiedente = _this.hide_richiedente;
11901
+ });
11813
11902
  dialogRef.afterClosed().subscribe(function (result) {
11814
11903
  // this.selectedOption = result;
11815
11904
  });
@@ -12118,7 +12207,10 @@
12118
12207
  });
12119
12208
  };
12120
12209
  dati_aggiuntivi.prototype.ngAfterViewInit = function () {
12121
- this.init_engine();
12210
+ var _this = this;
12211
+ setTimeout(function () {
12212
+ _this.init_engine();
12213
+ });
12122
12214
  };
12123
12215
  dati_aggiuntivi.prototype.setta_info_app = function (o) {
12124
12216
  this.app_info = o;
@@ -12276,8 +12368,10 @@
12276
12368
  FormBuilderComponent.prototype.del_item = function (uiid_obj) {
12277
12369
  var _this = this;
12278
12370
  var dialogRef = this._dialog.open(FHConfirmComponent, { 'disableClose': true });
12279
- dialogRef.componentInstance.title = 'Confirm';
12280
- dialogRef.componentInstance.msg = "Remove Element?";
12371
+ setTimeout(function () {
12372
+ dialogRef.componentInstance.title = 'Confirm';
12373
+ dialogRef.componentInstance.msg = "Remove Element?";
12374
+ });
12281
12375
  dialogRef.afterClosed().subscribe(function (result) {
12282
12376
  if (result) {
12283
12377
  for (var i = 0; i < _this.items.length; i++)
@@ -12291,24 +12385,26 @@
12291
12385
  };
12292
12386
  FormBuilderComponent.prototype.ngAfterViewInit = function () {
12293
12387
  var _this = this;
12294
- try {
12295
- this.dragula.createGroup('bag-items', {
12296
- revertOnSpill: true
12388
+ setTimeout(function () {
12389
+ try {
12390
+ _this.dragula.createGroup('bag-items', {
12391
+ revertOnSpill: true
12392
+ });
12393
+ }
12394
+ catch (e) {
12395
+ console.log(e);
12396
+ }
12397
+ _this.dragula
12398
+ .drag.call(function (value) {
12399
+ _this.change.emit();
12400
+ _this.edit_obj = null;
12401
+ });
12402
+ _this.dragula
12403
+ .drop
12404
+ .call(function (value) {
12405
+ _this.change.emit();
12406
+ _this.edit_obj = null;
12297
12407
  });
12298
- }
12299
- catch (e) {
12300
- console.log(e);
12301
- }
12302
- this.dragula
12303
- .drag.call(function (value) {
12304
- _this.change.emit();
12305
- _this.edit_obj = null;
12306
- });
12307
- this.dragula
12308
- .drop
12309
- .call(function (value) {
12310
- _this.change.emit();
12311
- _this.edit_obj = null;
12312
12408
  });
12313
12409
  };
12314
12410
  FormBuilderComponent.ctorParameters = function () { return [
@@ -12520,9 +12616,12 @@
12520
12616
  this.fullScreenEvent = new core.EventEmitter();
12521
12617
  }
12522
12618
  FHViewerComponent.prototype.ngAfterViewInit = function () {
12523
- var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
12524
- this.config = this.mergeConfig(merged, this.config);
12525
- this.triggerConfigBinding();
12619
+ var _this = this;
12620
+ setTimeout(function () {
12621
+ var merged = _this.mergeConfig(DEFAULT_CONFIG, _this.moduleConfig);
12622
+ _this.config = _this.mergeConfig(merged, _this.config);
12623
+ _this.triggerConfigBinding();
12624
+ });
12526
12625
  };
12527
12626
  FHViewerComponent.prototype.nextImage = function ($event) {
12528
12627
  console.log('this.src.length ', this.src.length);
@@ -12779,7 +12878,10 @@
12779
12878
  this.already_open = true;
12780
12879
  };
12781
12880
  fhimagepreview.prototype.ngAfterViewInit = function () {
12782
- this.init();
12881
+ var _this = this;
12882
+ setTimeout(function () {
12883
+ _this.init();
12884
+ });
12783
12885
  };
12784
12886
  fhimagepreview.prototype.openFullscreen = function () {
12785
12887
  console.log('cc', this.photo_c.imgx);
@@ -13004,14 +13106,16 @@
13004
13106
  var dialogRef = this.m_dialog.open(FHListPick, {
13005
13107
  disableClose: true
13006
13108
  });
13007
- dialogRef.componentInstance.single_sel = this.single_sel;
13008
- dialogRef.componentInstance.sel_values = this.value;
13009
- dialogRef.componentInstance.separator = this.separator;
13010
- dialogRef.componentInstance.label = this.label;
13011
- dialogRef.componentInstance.sql = this.sql;
13012
- dialogRef.componentInstance.types = this.types;
13013
- dialogRef.componentInstance.values = this.values;
13014
- dialogRef.componentInstance.doFill();
13109
+ setTimeout(function () {
13110
+ dialogRef.componentInstance.single_sel = _this.single_sel;
13111
+ dialogRef.componentInstance.sel_values = _this.value;
13112
+ dialogRef.componentInstance.separator = _this.separator;
13113
+ dialogRef.componentInstance.label = _this.label;
13114
+ dialogRef.componentInstance.sql = _this.sql;
13115
+ dialogRef.componentInstance.types = _this.types;
13116
+ dialogRef.componentInstance.values = _this.values;
13117
+ dialogRef.componentInstance.doFill();
13118
+ });
13015
13119
  dialogRef.afterClosed().subscribe(function (result) {
13016
13120
  if (result != null && result != '') {
13017
13121
  _this.value = '';
@@ -13163,15 +13267,18 @@
13163
13267
  win_manage_values.prototype.ok = function () {
13164
13268
  };
13165
13269
  win_manage_values.prototype.ngAfterViewInit = function () {
13166
- this.nValori = new Object();
13167
- //this.nValori.valore=0;
13168
- this.nValori.descrizione = '';
13169
- this.nValori.v1 = null;
13170
- this.nValori.v2 = null;
13171
- this.nValori.id_valore = -1;
13172
- this.nValori.v3 = null;
13173
- this.nValori.lingua = null;
13174
- this.ref_user_list();
13270
+ var _this = this;
13271
+ setTimeout(function () {
13272
+ _this.nValori = new Object();
13273
+ //this.nValori.valore=0;
13274
+ _this.nValori.descrizione = '';
13275
+ _this.nValori.v1 = null;
13276
+ _this.nValori.v2 = null;
13277
+ _this.nValori.id_valore = -1;
13278
+ _this.nValori.v3 = null;
13279
+ _this.nValori.lingua = null;
13280
+ _this.ref_user_list();
13281
+ });
13175
13282
  };
13176
13283
  win_manage_values.ctorParameters = function () { return [
13177
13284
  { type: dialog.MatDialogRef },
@@ -13198,23 +13305,29 @@
13198
13305
  this.b_init = false;
13199
13306
  }
13200
13307
  FHTableManager.prototype.edit_values = function () {
13308
+ var _this = this;
13201
13309
  if (this.cmb_sel.getValue() == "-1")
13202
13310
  return;
13203
13311
  var dialogRef = this._dialog.open(win_manage_values, { width: '90%', height: '550px' });
13204
- dialogRef.componentInstance.id_tipo = Number(this.cmb_sel.getValue());
13312
+ setTimeout(function () {
13313
+ dialogRef.componentInstance.id_tipo = Number(_this.cmb_sel.getValue());
13314
+ });
13205
13315
  dialogRef.afterClosed().subscribe(function (result) {
13206
13316
  if (result) {
13207
13317
  }
13208
13318
  });
13209
13319
  };
13210
13320
  FHTableManager.prototype.ngAfterViewInit = function () {
13211
- if (this.application == "")
13212
- return;
13213
- this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
13214
- this.cmb_sel.types = ['string'];
13215
- this.cmb_sel.values = [this.application];
13216
- this.cmb_sel.fillCombo();
13217
- this.b_init = true;
13321
+ var _this = this;
13322
+ setTimeout(function () {
13323
+ if (_this.application == "")
13324
+ return;
13325
+ _this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
13326
+ _this.cmb_sel.types = ['string'];
13327
+ _this.cmb_sel.values = [_this.application];
13328
+ _this.cmb_sel.fillCombo();
13329
+ _this.b_init = true;
13330
+ });
13218
13331
  };
13219
13332
  FHTableManager.ctorParameters = function () { return [
13220
13333
  { type: QueryService },
@@ -13308,7 +13421,10 @@
13308
13421
  });
13309
13422
  };
13310
13423
  win_manage_roles.prototype.ngAfterViewInit = function () {
13311
- this.ref_user_list();
13424
+ var _this = this;
13425
+ setTimeout(function () {
13426
+ _this.ref_user_list();
13427
+ });
13312
13428
  };
13313
13429
  win_manage_roles.ctorParameters = function () { return [
13314
13430
  { type: dialog.MatDialogRef },
@@ -13339,23 +13455,29 @@
13339
13455
  this.b_init = false;
13340
13456
  }
13341
13457
  FHRoleManager.prototype.edit_values = function () {
13458
+ var _this = this;
13342
13459
  if (this.cmb_sel.getValue() == "-1")
13343
13460
  return;
13344
13461
  var dialogRef = this._dialog.open(win_manage_roles, { width: '90%', height: '550px' });
13345
- dialogRef.componentInstance.role_id = Number(this.cmb_sel.getValue());
13462
+ setTimeout(function () {
13463
+ dialogRef.componentInstance.role_id = Number(_this.cmb_sel.getValue());
13464
+ });
13346
13465
  dialogRef.afterClosed().subscribe(function (result) {
13347
13466
  if (result) {
13348
13467
  }
13349
13468
  });
13350
13469
  };
13351
13470
  FHRoleManager.prototype.ngAfterViewInit = function () {
13352
- if (this.application == "")
13353
- return;
13354
- this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
13355
- this.cmb_sel.types = ['string'];
13356
- this.cmb_sel.values = [this.application];
13357
- this.cmb_sel.fillCombo();
13358
- this.b_init = true;
13471
+ var _this = this;
13472
+ setTimeout(function () {
13473
+ if (_this.application == "")
13474
+ return;
13475
+ _this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
13476
+ _this.cmb_sel.types = ['string'];
13477
+ _this.cmb_sel.values = [_this.application];
13478
+ _this.cmb_sel.fillCombo();
13479
+ _this.b_init = true;
13480
+ });
13359
13481
  };
13360
13482
  FHRoleManager.ctorParameters = function () { return [
13361
13483
  { type: QueryService },
@@ -13631,19 +13753,22 @@
13631
13753
  this.setByDescri(this.valDef);
13632
13754
  };
13633
13755
  FHComboboxComponentFilter.prototype.ngAfterViewInit = function () {
13634
- if (this.init_fill == true) {
13635
- if (this.sql == '') {
13636
- //this.errorMsg="QUERY NON CONFIGURATA";
13637
- return;
13756
+ var _this = this;
13757
+ setTimeout(function () {
13758
+ if (_this.init_fill == true) {
13759
+ if (_this.sql == '') {
13760
+ //this.errorMsg="QUERY NON CONFIGURATA";
13761
+ return;
13762
+ }
13763
+ _this.fillCombo();
13638
13764
  }
13639
- this.fillCombo();
13640
- }
13641
- else {
13642
- this.errorMsg = "";
13643
- }
13644
- this
13645
- .initend
13646
- .emit();
13765
+ else {
13766
+ _this.errorMsg = "";
13767
+ }
13768
+ _this
13769
+ .initend
13770
+ .emit();
13771
+ });
13647
13772
  };
13648
13773
  FHComboboxComponentFilter.prototype.sc = function () {
13649
13774
  this
@@ -13764,7 +13889,9 @@
13764
13889
  var ok_op = false;
13765
13890
  this._dataService.doQuery(p).subscribe(function (data) {
13766
13891
  var dialo = _this.m_dialogRef.open(win_commento_sel_notif, { 'disableClose': true });
13767
- dialo.componentInstance.init_arr(data.result_data);
13892
+ setTimeout(function () {
13893
+ dialo.componentInstance.init_arr(data.result_data);
13894
+ });
13768
13895
  dialo.afterClosed().subscribe(function (result) {
13769
13896
  // this.selectedOption = result;
13770
13897
  if (result != null) {
@@ -13868,22 +13995,24 @@
13868
13995
  win_user_info.prototype.close = function () { this.dialogRef.close(null); };
13869
13996
  win_user_info.prototype.ngAfterViewInit = function () {
13870
13997
  var _this = this;
13871
- if (this.isadmin == '1')
13872
- if (this.appService.dev_mode != null)
13873
- if (this.appService.dev_mode == '1')
13874
- this.dev_mode = true;
13875
- var p = new QParam();
13876
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
13877
- p.types = ['string', 'string'];
13878
- p.values = ['FOTO_UTENTI', this.appService.user];
13879
- this._dataService.doQuery(p).subscribe(function (data) {
13880
- if (data != null)
13881
- if (data.result_msg == "OK") {
13882
- if (data.result_data.length > 0) {
13883
- _this.b_filef = true;
13884
- _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
13998
+ setTimeout(function () {
13999
+ if (_this.isadmin == '1')
14000
+ if (_this.appService.dev_mode != null)
14001
+ if (_this.appService.dev_mode == '1')
14002
+ _this.dev_mode = true;
14003
+ var p = new QParam();
14004
+ p.sql = "SELECT_ALLEGATI_DOCUMENTO";
14005
+ p.types = ['string', 'string'];
14006
+ p.values = ['FOTO_UTENTI', _this.appService.user];
14007
+ _this._dataService.doQuery(p).subscribe(function (data) {
14008
+ if (data != null)
14009
+ if (data.result_msg == "OK") {
14010
+ if (data.result_data.length > 0) {
14011
+ _this.b_filef = true;
14012
+ _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
14013
+ }
13885
14014
  }
13886
- }
14015
+ });
13887
14016
  });
13888
14017
  };
13889
14018
  win_user_info.prototype.upd_dev = function (dv) {