@fluxhub/fluxhub-lib 9.0.0 → 9.0.1

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 (66) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +330 -260
  2. package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
  3. package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
  4. package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
  5. package/esm2015/lib/controls/app_manager/fhrolemanager.js +10 -8
  6. package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +10 -8
  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/fhgrid.js +8 -6
  15. package/esm2015/lib/controls/fhimagepreview.js +4 -2
  16. package/esm2015/lib/controls/fhlist.js +16 -14
  17. package/esm2015/lib/controls/fhnumeric.js +10 -8
  18. package/esm2015/lib/controls/fhrichtext.js +35 -33
  19. package/esm2015/lib/controls/fhupload.js +39 -37
  20. package/esm2015/lib/controls/fhuploadpanel.js +16 -12
  21. package/esm2015/lib/controls/fhuserfield.js +5 -3
  22. package/esm2015/lib/controls/fhuserpicker.js +33 -31
  23. package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +15 -13
  24. package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +6 -4
  25. package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  26. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +6 -4
  27. package/esm2015/lib/controls/win_time_slider.js +11 -9
  28. package/esm2015/lib/controls/win_user_info.js +18 -16
  29. package/esm2015/lib/form_builder/form_builder.js +20 -18
  30. package/esm2015/lib/wkf_engine/win_uploads.js +6 -4
  31. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +4 -2
  32. package/esm2015/public_api.js +1 -1
  33. package/esm5/lib/controls/app_manager/fhrolemanager.js +11 -8
  34. package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +11 -8
  35. package/esm5/lib/controls/app_manager/win_manage_roles.js +5 -2
  36. package/esm5/lib/controls/app_manager/win_manage_values.js +13 -10
  37. package/esm5/lib/controls/fhautocomplete.js +15 -17
  38. package/esm5/lib/controls/fhcombobox.js +16 -13
  39. package/esm5/lib/controls/fhcurrencyfield.js +10 -7
  40. package/esm5/lib/controls/fhcurrencyformatter.js +5 -2
  41. package/esm5/lib/controls/fhdatepicker.js +5 -2
  42. package/esm5/lib/controls/fhgrid.js +9 -6
  43. package/esm5/lib/controls/fhimagepreview.js +5 -2
  44. package/esm5/lib/controls/fhlist.js +17 -14
  45. package/esm5/lib/controls/fhnumeric.js +11 -8
  46. package/esm5/lib/controls/fhrichtext.js +36 -33
  47. package/esm5/lib/controls/fhupload.js +39 -37
  48. package/esm5/lib/controls/fhuploadpanel.js +16 -12
  49. package/esm5/lib/controls/fhuserfield.js +6 -3
  50. package/esm5/lib/controls/fhuserpicker.js +33 -31
  51. package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +16 -13
  52. package/esm5/lib/controls/grid_editors/numeric-editor.component.js +7 -4
  53. package/esm5/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  54. package/esm5/lib/controls/image-viewer/image-viewer.component.js +7 -4
  55. package/esm5/lib/controls/win_time_slider.js +12 -9
  56. package/esm5/lib/controls/win_user_info.js +18 -16
  57. package/esm5/lib/form_builder/form_builder.js +20 -18
  58. package/esm5/lib/wkf_engine/win_uploads.js +7 -4
  59. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -2
  60. package/esm5/public_api.js +1 -1
  61. package/fesm2015/fluxhub-fluxhub-lib.js +309 -260
  62. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  63. package/fesm5/fluxhub-fluxhub-lib.js +330 -260
  64. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  65. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  66. 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);
@@ -3159,17 +3173,21 @@
3159
3173
  };
3160
3174
  FHUploadPanelComponent.prototype.ngAfterViewInit = function () {
3161
3175
  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();
3176
+ setTimeout(function () {
3177
+ setTimeout(function () {
3178
+ _this.b_initt = true;
3179
+ }, 700);
3180
+ _this.upc.single = false;
3181
+ _this.b_mobile = _this._appservice.getState().pageFullscreen;
3182
+ console.log('this.m_p_tipo ', _this.m_p_tipo);
3183
+ _this
3184
+ .upc
3185
+ .init(_this.App, _this.K, 'Descrizione Allegato', _this.m_p_tipo, _this.m_programma_da_eseguire);
3186
+ if (_this.m_p_tipo.indexOf('SELECT_') > -1) {
3187
+ _this.multi_list = true;
3188
+ }
3189
+ _this.ref_allegato();
3190
+ });
3173
3191
  };
3174
3192
  FHUploadPanelComponent.prototype.init = function (p_app, p_k, p_tipo, programma_da_eseguire) {
3175
3193
  if (p_tipo === void 0) { p_tipo = ""; }
@@ -3638,38 +3656,40 @@
3638
3656
  };
3639
3657
  FHUserPickerComponent.prototype.ngAfterViewInit = function () {
3640
3658
  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) {
3659
+ setTimeout(function () {
3660
+ if (_this.all_users) {
3651
3661
  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;
3662
+ var p = new QParam();
3663
+ p.sql = "SELECT_ALL_USERS";
3664
+ p.types = [];
3665
+ p.values = [];
3666
+ _this
3667
+ ._dataService
3668
+ .doQuery(p)
3669
+ .subscribe(function (data) {
3670
+ var ok_op = false;
3671
+ if (data != null)
3672
+ if (data.result_msg == "OK") {
3673
+ _this.users_list = data.result_data;
3674
+ _this.filtra();
3675
+ ok_op = true;
3676
+ }
3677
+ if (!ok_op) {
3657
3678
  }
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
- }
3679
+ }, function (err) {
3680
+ _this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3681
+ });
3682
+ }
3683
+ else {
3684
+ if (_this.user_sel != null)
3685
+ if (_this.user_sel.length > 0)
3686
+ return;
3687
+ _this.users_list_sel = new Array();
3688
+ if (_this.users_list != null)
3689
+ for (var i = 0; i < _this.users_list.length; i++)
3690
+ _this.users_list_sel.push(_this.users_list[i]);
3691
+ }
3692
+ });
3673
3693
  };
3674
3694
  FHUserPickerComponent.prototype.close = function () { this.dialogRef.close(null); };
3675
3695
  FHUserPickerComponent.prototype.do_add = function () {
@@ -3844,8 +3864,11 @@
3844
3864
  };
3845
3865
  }
3846
3866
  FHUserFieldComponent.prototype.ngAfterViewInit = function () {
3847
- if (this.required)
3848
- this.label = this.label + ' *';
3867
+ var _this = this;
3868
+ setTimeout(function () {
3869
+ if (_this.required)
3870
+ _this.label = _this.label + ' *';
3871
+ });
3849
3872
  };
3850
3873
  FHUserFieldComponent.prototype.getUsersNc = function () {
3851
3874
  var s_nc = '';
@@ -5737,11 +5760,14 @@
5737
5760
  return "NA";
5738
5761
  };
5739
5762
  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();
5763
+ var _this = this;
5764
+ setTimeout(function () {
5765
+ if (_this.end_point == null)
5766
+ _this.end_point = _this.m_appService.API_ENDPOINT + _this.m_appService.GRID_ENDPOINT;
5767
+ if (localStorage.getItem(_this.grid_key + '_FILTER_UP') != null)
5768
+ _this.ric_libera = localStorage.getItem(_this.grid_key + '_FILTER_UP');
5769
+ _this.onResize();
5770
+ });
5745
5771
  };
5746
5772
  FHGridComponent.prototype.okr = function (event) {
5747
5773
  //console.log(event.column.colDef.field);
@@ -6793,23 +6819,21 @@
6793
6819
  }
6794
6820
  };
6795
6821
  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;
6822
+ var _this = this;
6823
+ setTimeout(function () {
6824
+ if (_this.init_fill) {
6825
+ if (_this.sql == '') {
6826
+ return;
6827
+ }
6828
+ _this.fillCombo();
6802
6829
  }
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();
6830
+ else {
6831
+ _this.errorMsg = "";
6832
+ }
6833
+ _this
6834
+ .initend
6835
+ .emit();
6836
+ });
6813
6837
  };
6814
6838
  /// override some FHValueAccessor implementation
6815
6839
  /**
@@ -7203,7 +7227,10 @@
7203
7227
  return this.date_sel.toDate();
7204
7228
  };
7205
7229
  FHDatePickerComponent.prototype.ngAfterViewInit = function () {
7206
- this.setLimits();
7230
+ var _this = this;
7231
+ setTimeout(function () {
7232
+ _this.setLimits();
7233
+ });
7207
7234
  // this.myDatePickerOptions.componentDisabled=!this.enabled;
7208
7235
  };
7209
7236
  FHDatePickerComponent.prototype.setLimits = function () {
@@ -7372,7 +7399,10 @@
7372
7399
  this.el = this.elementRef.nativeElement;
7373
7400
  }
7374
7401
  FHCurrencyFormatterDirective.prototype.ngAfterViewInit = function () {
7375
- this.el.value = this.currencyPipe.transform(this.el.value);
7402
+ var _this = this;
7403
+ setTimeout(function () {
7404
+ _this.el.value = _this.currencyPipe.transform(_this.el.value);
7405
+ });
7376
7406
  };
7377
7407
  FHCurrencyFormatterDirective.prototype.onFocus = function (value) {
7378
7408
  this.el.value = this.currencyPipe.parse(value); // opossite of transform
@@ -7476,7 +7506,7 @@
7476
7506
  TextAreaEditor.prototype.ngAfterViewInit = function () {
7477
7507
  var _this = this;
7478
7508
  // console.log(this.appdt.nativeElement);
7479
- setTimeout(function () { return _this.appdt.nativeElement.focus(); }, 500);
7509
+ setTimeout(function () { return _this.appdt.nativeElement.focus(); });
7480
7510
  };
7481
7511
  TextAreaEditor.prototype.agInit = function (params) {
7482
7512
  this.params = params;
@@ -8139,12 +8169,15 @@
8139
8169
  this.el.nativeElement.focus();
8140
8170
  };
8141
8171
  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);
8172
+ var _this = this;
8173
+ setTimeout(function () {
8174
+ if (_this.required)
8175
+ _this.el.nativeElement.required = _this.required;
8176
+ _this.el.nativeElement.disabled = !_this.enabled;
8177
+ if (_this.value == null)
8178
+ _this.value = 0;
8179
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8180
+ });
8148
8181
  };
8149
8182
  __decorate([
8150
8183
  core.ViewChild('el'),
@@ -8232,38 +8265,41 @@
8232
8265
  this.blur.emit(o);
8233
8266
  };
8234
8267
  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")*/
8268
+ var _this = this;
8269
+ setTimeout(function () {
8270
+ _this.config = { height: _this.height };
8271
+ if (_this.enabled) {
8272
+ _this.config.toolbarGroups = [
8273
+ { name: 'document', groups: ['mode', 'document', 'doctools'] },
8274
+ { name: 'clipboard', groups: ['clipboard', 'undo'] },
8275
+ { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8276
+ { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8277
+ { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8278
+ { name: 'links' },
8279
+ { name: 'insert' },
8280
+ { name: 'styles' },
8281
+ { name: 'colors' },
8282
+ { name: 'tools' },
8283
+ { name: 'others' },
8284
+ { name: 'about' }
8285
+ ];
8286
+ }
8287
+ else {
8288
+ _this.config.allowedContent = true;
8289
+ _this.config.toolbarGroups = [];
8290
+ }
8291
+ /*
8292
+ var element = document.querySelector( '.cke_top' );
8293
+ console.log("Just to do some debugging we check " + element);
8294
+ var myEl = this.ced.toolbarButtons
8295
+ myEl.toggle();
8296
+ element = document.querySelector( '.cke_bottom' );
8297
+ myEl = ced.element( element );
8298
+ myEl.toggle();
8299
+
8300
+ var myEl2 = angular.element( document.querySelector( '.test' ) );
8301
+ myEl2.toggleClass("invisible")*/
8302
+ });
8267
8303
  };
8268
8304
  FHRichText.prototype.writeValue = function (value) {
8269
8305
  this.value = value;
@@ -8471,13 +8507,16 @@
8471
8507
  this.el.nativeElement.focus();
8472
8508
  };
8473
8509
  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);
8510
+ var _this = this;
8511
+ setTimeout(function () {
8512
+ if (_this.required)
8513
+ _this.el.nativeElement.required = _this.required;
8514
+ _this.el.nativeElement.disabled = !_this.enabled;
8515
+ if (_this.value == null)
8516
+ _this.value = 0;
8517
+ // console.log('tttttttttttt',this.decimal);
8518
+ _this.formattedAmount = _this.transform(_this.value, _this.decimal);
8519
+ });
8481
8520
  };
8482
8521
  FHNumericFieldComponent.ctorParameters = function () { return [
8483
8522
  { type: UtilityService }
@@ -8890,9 +8929,12 @@
8890
8929
  }
8891
8930
  win_uploads.prototype.close = function () { this.dialogRef.close(null); };
8892
8931
  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);
8932
+ var _this = this;
8933
+ setTimeout(function () {
8934
+ _this.App = _this.app_s.getState().wkf_doc_info.uiid_app;
8935
+ _this.K = _this.app_s.getState().wkf_doc_info.uiid_doc;
8936
+ _this.init(_this.App, _this.K);
8937
+ });
8896
8938
  };
8897
8939
  win_uploads.prototype.init = function (p_app, p_k) {
8898
8940
  this.App = p_app;
@@ -12118,7 +12160,10 @@
12118
12160
  });
12119
12161
  };
12120
12162
  dati_aggiuntivi.prototype.ngAfterViewInit = function () {
12121
- this.init_engine();
12163
+ var _this = this;
12164
+ setTimeout(function () {
12165
+ _this.init_engine();
12166
+ });
12122
12167
  };
12123
12168
  dati_aggiuntivi.prototype.setta_info_app = function (o) {
12124
12169
  this.app_info = o;
@@ -12291,24 +12336,26 @@
12291
12336
  };
12292
12337
  FormBuilderComponent.prototype.ngAfterViewInit = function () {
12293
12338
  var _this = this;
12294
- try {
12295
- this.dragula.createGroup('bag-items', {
12296
- revertOnSpill: true
12339
+ setTimeout(function () {
12340
+ try {
12341
+ _this.dragula.createGroup('bag-items', {
12342
+ revertOnSpill: true
12343
+ });
12344
+ }
12345
+ catch (e) {
12346
+ console.log(e);
12347
+ }
12348
+ _this.dragula
12349
+ .drag.call(function (value) {
12350
+ _this.change.emit();
12351
+ _this.edit_obj = null;
12352
+ });
12353
+ _this.dragula
12354
+ .drop
12355
+ .call(function (value) {
12356
+ _this.change.emit();
12357
+ _this.edit_obj = null;
12297
12358
  });
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
12359
  });
12313
12360
  };
12314
12361
  FormBuilderComponent.ctorParameters = function () { return [
@@ -12520,9 +12567,12 @@
12520
12567
  this.fullScreenEvent = new core.EventEmitter();
12521
12568
  }
12522
12569
  FHViewerComponent.prototype.ngAfterViewInit = function () {
12523
- var merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
12524
- this.config = this.mergeConfig(merged, this.config);
12525
- this.triggerConfigBinding();
12570
+ var _this = this;
12571
+ setTimeout(function () {
12572
+ var merged = _this.mergeConfig(DEFAULT_CONFIG, _this.moduleConfig);
12573
+ _this.config = _this.mergeConfig(merged, _this.config);
12574
+ _this.triggerConfigBinding();
12575
+ });
12526
12576
  };
12527
12577
  FHViewerComponent.prototype.nextImage = function ($event) {
12528
12578
  console.log('this.src.length ', this.src.length);
@@ -12779,7 +12829,10 @@
12779
12829
  this.already_open = true;
12780
12830
  };
12781
12831
  fhimagepreview.prototype.ngAfterViewInit = function () {
12782
- this.init();
12832
+ var _this = this;
12833
+ setTimeout(function () {
12834
+ _this.init();
12835
+ });
12783
12836
  };
12784
12837
  fhimagepreview.prototype.openFullscreen = function () {
12785
12838
  console.log('cc', this.photo_c.imgx);
@@ -13163,15 +13216,18 @@
13163
13216
  win_manage_values.prototype.ok = function () {
13164
13217
  };
13165
13218
  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();
13219
+ var _this = this;
13220
+ setTimeout(function () {
13221
+ _this.nValori = new Object();
13222
+ //this.nValori.valore=0;
13223
+ _this.nValori.descrizione = '';
13224
+ _this.nValori.v1 = null;
13225
+ _this.nValori.v2 = null;
13226
+ _this.nValori.id_valore = -1;
13227
+ _this.nValori.v3 = null;
13228
+ _this.nValori.lingua = null;
13229
+ _this.ref_user_list();
13230
+ });
13175
13231
  };
13176
13232
  win_manage_values.ctorParameters = function () { return [
13177
13233
  { type: dialog.MatDialogRef },
@@ -13208,13 +13264,16 @@
13208
13264
  });
13209
13265
  };
13210
13266
  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;
13267
+ var _this = this;
13268
+ setTimeout(function () {
13269
+ if (_this.application == "")
13270
+ return;
13271
+ _this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
13272
+ _this.cmb_sel.types = ['string'];
13273
+ _this.cmb_sel.values = [_this.application];
13274
+ _this.cmb_sel.fillCombo();
13275
+ _this.b_init = true;
13276
+ });
13218
13277
  };
13219
13278
  FHTableManager.ctorParameters = function () { return [
13220
13279
  { type: QueryService },
@@ -13308,7 +13367,10 @@
13308
13367
  });
13309
13368
  };
13310
13369
  win_manage_roles.prototype.ngAfterViewInit = function () {
13311
- this.ref_user_list();
13370
+ var _this = this;
13371
+ setTimeout(function () {
13372
+ _this.ref_user_list();
13373
+ });
13312
13374
  };
13313
13375
  win_manage_roles.ctorParameters = function () { return [
13314
13376
  { type: dialog.MatDialogRef },
@@ -13349,13 +13411,16 @@
13349
13411
  });
13350
13412
  };
13351
13413
  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;
13414
+ var _this = this;
13415
+ setTimeout(function () {
13416
+ if (_this.application == "")
13417
+ return;
13418
+ _this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
13419
+ _this.cmb_sel.types = ['string'];
13420
+ _this.cmb_sel.values = [_this.application];
13421
+ _this.cmb_sel.fillCombo();
13422
+ _this.b_init = true;
13423
+ });
13359
13424
  };
13360
13425
  FHRoleManager.ctorParameters = function () { return [
13361
13426
  { type: QueryService },
@@ -13631,19 +13696,22 @@
13631
13696
  this.setByDescri(this.valDef);
13632
13697
  };
13633
13698
  FHComboboxComponentFilter.prototype.ngAfterViewInit = function () {
13634
- if (this.init_fill == true) {
13635
- if (this.sql == '') {
13636
- //this.errorMsg="QUERY NON CONFIGURATA";
13637
- return;
13699
+ var _this = this;
13700
+ setTimeout(function () {
13701
+ if (_this.init_fill == true) {
13702
+ if (_this.sql == '') {
13703
+ //this.errorMsg="QUERY NON CONFIGURATA";
13704
+ return;
13705
+ }
13706
+ _this.fillCombo();
13638
13707
  }
13639
- this.fillCombo();
13640
- }
13641
- else {
13642
- this.errorMsg = "";
13643
- }
13644
- this
13645
- .initend
13646
- .emit();
13708
+ else {
13709
+ _this.errorMsg = "";
13710
+ }
13711
+ _this
13712
+ .initend
13713
+ .emit();
13714
+ });
13647
13715
  };
13648
13716
  FHComboboxComponentFilter.prototype.sc = function () {
13649
13717
  this
@@ -13868,22 +13936,24 @@
13868
13936
  win_user_info.prototype.close = function () { this.dialogRef.close(null); };
13869
13937
  win_user_info.prototype.ngAfterViewInit = function () {
13870
13938
  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;
13939
+ setTimeout(function () {
13940
+ if (_this.isadmin == '1')
13941
+ if (_this.appService.dev_mode != null)
13942
+ if (_this.appService.dev_mode == '1')
13943
+ _this.dev_mode = true;
13944
+ var p = new QParam();
13945
+ p.sql = "SELECT_ALLEGATI_DOCUMENTO";
13946
+ p.types = ['string', 'string'];
13947
+ p.values = ['FOTO_UTENTI', _this.appService.user];
13948
+ _this._dataService.doQuery(p).subscribe(function (data) {
13949
+ if (data != null)
13950
+ if (data.result_msg == "OK") {
13951
+ if (data.result_data.length > 0) {
13952
+ _this.b_filef = true;
13953
+ _this.foto_ut = _this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
13954
+ }
13885
13955
  }
13886
- }
13956
+ });
13887
13957
  });
13888
13958
  };
13889
13959
  win_user_info.prototype.upd_dev = function (dv) {