@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
@@ -945,9 +945,11 @@ let NumericEditorComponent = class NumericEditorComponent {
945
945
  }
946
946
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
947
947
  ngAfterViewInit() {
948
- //console.log(this.input.element.nativeElement);
949
- // this.input.first.nativeElement.focus();
950
- this.input.element.nativeElement.focus();
948
+ setTimeout(() => {
949
+ //console.log(this.input.element.nativeElement);
950
+ // this.input.first.nativeElement.focus();
951
+ this.input.element.nativeElement.focus();
952
+ });
951
953
  // this.input.element.nativeElement.setSelectionRange(0, this.input.element.nativeElement.value.length)
952
954
  /*if (this.input.nativeElement.classList.contains('ng-untouched')) {
953
955
  this.input.invokeElementMethod(this.input.nativeElement, 'focus', []);
@@ -1014,14 +1016,16 @@ let win_time_slider = class win_time_slider {
1014
1016
  this.dialogRef.close(this.res);
1015
1017
  }
1016
1018
  ngAfterViewInit() {
1017
- if (this.m_appService.getState().appo_dialog != null)
1018
- if (this.m_appService.getState().appo_dialog.val != null) {
1019
- let a = this.m_appService.getState().appo_dialog.val.split(':');
1020
- this.h = parseInt(a[0]);
1021
- this.m = parseInt(a[1]);
1022
- this.res = this.m_appService.getState().appo_dialog.val;
1023
- return;
1024
- }
1019
+ setTimeout(() => {
1020
+ if (this.m_appService.getState().appo_dialog != null)
1021
+ if (this.m_appService.getState().appo_dialog.val != null) {
1022
+ let a = this.m_appService.getState().appo_dialog.val.split(':');
1023
+ this.h = parseInt(a[0]);
1024
+ this.m = parseInt(a[1]);
1025
+ this.res = this.m_appService.getState().appo_dialog.val;
1026
+ return;
1027
+ }
1028
+ });
1025
1029
  }
1026
1030
  };
1027
1031
  win_time_slider.ctorParameters = () => [
@@ -1808,20 +1812,22 @@ let FHListComponent = class FHListComponent {
1808
1812
  this.setByDescri(this.valDef);
1809
1813
  }
1810
1814
  ngAfterViewInit() {
1811
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
1812
- if (this.init_fill == true) {
1813
- if (this.sql == '') {
1814
- //this.errorMsg="QUERY NON CONFIGURATA";
1815
- return;
1815
+ setTimeout(() => {
1816
+ // console.log("ngAfterViewInit"); console.log(this.init_fill);
1817
+ if (this.init_fill == true) {
1818
+ if (this.sql == '') {
1819
+ //this.errorMsg="QUERY NON CONFIGURATA";
1820
+ return;
1821
+ }
1822
+ this.fillCombo();
1816
1823
  }
1817
- this.fillCombo();
1818
- }
1819
- else {
1820
- this.errorMsg = "";
1821
- }
1822
- this
1823
- .initend
1824
- .emit();
1824
+ else {
1825
+ this.errorMsg = "";
1826
+ }
1827
+ this
1828
+ .initend
1829
+ .emit();
1830
+ });
1825
1831
  }
1826
1832
  sc() {
1827
1833
  this
@@ -2218,19 +2224,21 @@ let FHComboboxComponent = class FHComboboxComponent {
2218
2224
  this.setByDescri(this.valDef);
2219
2225
  }
2220
2226
  ngAfterViewInit() {
2221
- if (this.init_fill == true) {
2222
- if (this.sql == '') {
2223
- //this.errorMsg="QUERY NON CONFIGURATA";
2224
- return;
2227
+ setTimeout(() => {
2228
+ if (this.init_fill == true) {
2229
+ if (this.sql == '') {
2230
+ //this.errorMsg="QUERY NON CONFIGURATA";
2231
+ return;
2232
+ }
2233
+ this.fillCombo();
2225
2234
  }
2226
- this.fillCombo();
2227
- }
2228
- else {
2229
- this.errorMsg = "";
2230
- }
2231
- this
2232
- .initend
2233
- .emit();
2235
+ else {
2236
+ this.errorMsg = "";
2237
+ }
2238
+ this
2239
+ .initend
2240
+ .emit();
2241
+ });
2234
2242
  }
2235
2243
  sc() {
2236
2244
  this
@@ -2427,43 +2435,45 @@ let FHUploadComponent = class FHUploadComponent {
2427
2435
  this.cmb_tipo.fillCombo();
2428
2436
  }
2429
2437
  ngAfterViewInit() {
2430
- let uo = {};
2431
- uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
2432
- // console.log('ngAfterViewInit!!');
2433
- this.uploader.setOptions(uo);
2434
- this.uploader.onCompleteAll = () => {
2435
- this.loading = false;
2436
- this.upload_ended.emit();
2437
- if (this.dialogRef != null)
2438
- if (this.dialogRef.componentInstance != null) {
2439
- this.dialogRef.componentInstance.update_progess(100);
2440
- this.dialogRef = null;
2438
+ setTimeout(() => {
2439
+ let uo = {};
2440
+ uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
2441
+ // console.log('ngAfterViewInit!!');
2442
+ this.uploader.setOptions(uo);
2443
+ this.uploader.onCompleteAll = () => {
2444
+ this.loading = false;
2445
+ this.upload_ended.emit();
2446
+ if (this.dialogRef != null)
2447
+ if (this.dialogRef.componentInstance != null) {
2448
+ this.dialogRef.componentInstance.update_progess(100);
2449
+ this.dialogRef = null;
2450
+ }
2451
+ };
2452
+ this.uploader.onErrorItem = (a, b, c, d) => {
2453
+ this.toastr.error(b);
2454
+ };
2455
+ this.uploader.onAfterAddingFile = (fileItem) => {
2456
+ this.ch(fileItem);
2457
+ };
2458
+ this.uploader.onProgressItem = (fileItem, progress) => {
2459
+ // console.log(fileItem);
2460
+ // console.log(progress);
2461
+ this.loading = true;
2462
+ if (this.dialogRef != null)
2463
+ if (this.dialogRef.componentInstance != null)
2464
+ this.dialogRef.componentInstance.update_progess(progress);
2465
+ };
2466
+ this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
2467
+ switch (filter.name) {
2468
+ case 'fileSize':
2469
+ let ar = Math.round(item.size / 1024 / 1024);
2470
+ this.toastr.error(this.limit_string.split('<size>').join('' + ar));
2471
+ break;
2472
+ default:
2473
+ this.toastr.error("Errore: " + filter.name);
2441
2474
  }
2442
- };
2443
- this.uploader.onErrorItem = (a, b, c, d) => {
2444
- this.toastr.error(b);
2445
- };
2446
- this.uploader.onAfterAddingFile = (fileItem) => {
2447
- this.ch(fileItem);
2448
- };
2449
- this.uploader.onProgressItem = (fileItem, progress) => {
2450
- // console.log(fileItem);
2451
- // console.log(progress);
2452
- this.loading = true;
2453
- if (this.dialogRef != null)
2454
- if (this.dialogRef.componentInstance != null)
2455
- this.dialogRef.componentInstance.update_progess(progress);
2456
- };
2457
- this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
2458
- switch (filter.name) {
2459
- case 'fileSize':
2460
- let ar = Math.round(item.size / 1024 / 1024);
2461
- this.toastr.error(this.limit_string.split('<size>').join('' + ar));
2462
- break;
2463
- default:
2464
- this.toastr.error("Errore: " + filter.name);
2465
- }
2466
- };
2475
+ };
2476
+ });
2467
2477
  }
2468
2478
  download_all() {
2469
2479
  window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
@@ -3175,17 +3185,21 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
3175
3185
  });
3176
3186
  }
3177
3187
  ngAfterViewInit() {
3178
- setTimeout(() => { this.b_initt = true; }, 700);
3179
- this.upc.single = false;
3180
- this.b_mobile = this._appservice.getState().pageFullscreen;
3181
- console.log('this.m_p_tipo ', this.m_p_tipo);
3182
- this
3183
- .upc
3184
- .init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
3185
- if (this.m_p_tipo.indexOf('SELECT_') > -1) {
3186
- this.multi_list = true;
3187
- }
3188
- this.ref_allegato();
3188
+ setTimeout(() => {
3189
+ setTimeout(() => {
3190
+ this.b_initt = true;
3191
+ }, 700);
3192
+ this.upc.single = false;
3193
+ this.b_mobile = this._appservice.getState().pageFullscreen;
3194
+ console.log('this.m_p_tipo ', this.m_p_tipo);
3195
+ this
3196
+ .upc
3197
+ .init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
3198
+ if (this.m_p_tipo.indexOf('SELECT_') > -1) {
3199
+ this.multi_list = true;
3200
+ }
3201
+ this.ref_allegato();
3202
+ });
3189
3203
  }
3190
3204
  init(p_app, p_k, p_tipo = "", programma_da_eseguire = "") {
3191
3205
  this.App = p_app;
@@ -3935,38 +3949,40 @@ let FHUserPickerComponent = class FHUserPickerComponent {
3935
3949
  }
3936
3950
  }
3937
3951
  ngAfterViewInit() {
3938
- if (this.all_users) {
3939
- let ok_op = false;
3940
- var p = new QParam();
3941
- p.sql = "SELECT_ALL_USERS";
3942
- p.types = [];
3943
- p.values = [];
3944
- this
3945
- ._dataService
3946
- .doQuery(p)
3947
- .subscribe(data => {
3952
+ setTimeout(() => {
3953
+ if (this.all_users) {
3948
3954
  let ok_op = false;
3949
- if (data != null)
3950
- if (data.result_msg == "OK") {
3951
- this.users_list = data.result_data;
3952
- this.filtra();
3953
- ok_op = true;
3955
+ var p = new QParam();
3956
+ p.sql = "SELECT_ALL_USERS";
3957
+ p.types = [];
3958
+ p.values = [];
3959
+ this
3960
+ ._dataService
3961
+ .doQuery(p)
3962
+ .subscribe(data => {
3963
+ let ok_op = false;
3964
+ if (data != null)
3965
+ if (data.result_msg == "OK") {
3966
+ this.users_list = data.result_data;
3967
+ this.filtra();
3968
+ ok_op = true;
3969
+ }
3970
+ if (!ok_op) {
3954
3971
  }
3955
- if (!ok_op) {
3956
- }
3957
- }, err => {
3958
- this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3959
- });
3960
- }
3961
- else {
3962
- if (this.user_sel != null)
3963
- if (this.user_sel.length > 0)
3964
- return;
3965
- this.users_list_sel = new Array();
3966
- if (this.users_list != null)
3967
- for (var i = 0; i < this.users_list.length; i++)
3968
- this.users_list_sel.push(this.users_list[i]);
3969
- }
3972
+ }, err => {
3973
+ this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3974
+ });
3975
+ }
3976
+ else {
3977
+ if (this.user_sel != null)
3978
+ if (this.user_sel.length > 0)
3979
+ return;
3980
+ this.users_list_sel = new Array();
3981
+ if (this.users_list != null)
3982
+ for (var i = 0; i < this.users_list.length; i++)
3983
+ this.users_list_sel.push(this.users_list[i]);
3984
+ }
3985
+ });
3970
3986
  }
3971
3987
  close() { this.dialogRef.close(null); }
3972
3988
  do_add() {
@@ -4239,8 +4255,10 @@ let FHUserFieldComponent = class FHUserFieldComponent {
4239
4255
  };
4240
4256
  }
4241
4257
  ngAfterViewInit() {
4242
- if (this.required)
4243
- this.label = this.label + ' *';
4258
+ setTimeout(() => {
4259
+ if (this.required)
4260
+ this.label = this.label + ' *';
4261
+ });
4244
4262
  }
4245
4263
  getUsersNc() {
4246
4264
  let s_nc = '';
@@ -6153,11 +6171,13 @@ let FHGridComponent = class FHGridComponent {
6153
6171
  return "NA";
6154
6172
  }
6155
6173
  ngAfterViewInit() {
6156
- if (this.end_point == null)
6157
- this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
6158
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
6159
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
6160
- this.onResize();
6174
+ setTimeout(() => {
6175
+ if (this.end_point == null)
6176
+ this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
6177
+ if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
6178
+ this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
6179
+ this.onResize();
6180
+ });
6161
6181
  }
6162
6182
  okr(event) {
6163
6183
  //console.log(event.column.colDef.field);
@@ -7190,23 +7210,20 @@ let FHAutoCompleteComponent = FHAutoCompleteComponent_1 = class FHAutoCompleteCo
7190
7210
  }
7191
7211
  }
7192
7212
  ngAfterViewInit() {
7193
- // console.log('ngAfterViewInit INIT'); console.log(this.init_fill);
7194
- // console.log("TIPO "+typeof(this.init_fill));
7195
- if (this.init_fill) {
7196
- if (this.sql == '') {
7197
- //this.errorMsg="QUERY NON CONFIGURATA";
7198
- return;
7213
+ setTimeout(() => {
7214
+ if (this.init_fill) {
7215
+ if (this.sql == '') {
7216
+ return;
7217
+ }
7218
+ this.fillCombo();
7199
7219
  }
7200
- // console.log(' this.fillCombo()');
7201
- this.fillCombo();
7202
- }
7203
- else {
7204
- //console.log('salta');
7205
- this.errorMsg = "";
7206
- }
7207
- this
7208
- .initend
7209
- .emit();
7220
+ else {
7221
+ this.errorMsg = "";
7222
+ }
7223
+ this
7224
+ .initend
7225
+ .emit();
7226
+ });
7210
7227
  }
7211
7228
  /// override some FHValueAccessor implementation
7212
7229
  /**
@@ -7614,7 +7631,9 @@ let FHDatePickerComponent = FHDatePickerComponent_1 = class FHDatePickerComponen
7614
7631
  return this.date_sel.toDate();
7615
7632
  }
7616
7633
  ngAfterViewInit() {
7617
- this.setLimits();
7634
+ setTimeout(() => {
7635
+ this.setLimits();
7636
+ });
7618
7637
  // this.myDatePickerOptions.componentDisabled=!this.enabled;
7619
7638
  }
7620
7639
  setLimits() {
@@ -7841,7 +7860,9 @@ let FHCurrencyFormatterDirective = class FHCurrencyFormatterDirective {
7841
7860
  this.el = this.elementRef.nativeElement;
7842
7861
  }
7843
7862
  ngAfterViewInit() {
7844
- this.el.value = this.currencyPipe.transform(this.el.value);
7863
+ setTimeout(() => {
7864
+ this.el.value = this.currencyPipe.transform(this.el.value);
7865
+ });
7845
7866
  }
7846
7867
  onFocus(value) {
7847
7868
  this.el.value = this.currencyPipe.parse(value); // opossite of transform
@@ -7979,7 +8000,7 @@ let TextAreaEditor = class TextAreaEditor {
7979
8000
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
7980
8001
  ngAfterViewInit() {
7981
8002
  // console.log(this.appdt.nativeElement);
7982
- setTimeout(() => this.appdt.nativeElement.focus(), 500);
8003
+ setTimeout(() => this.appdt.nativeElement.focus());
7983
8004
  }
7984
8005
  agInit(params) {
7985
8006
  this.params = params;
@@ -8821,12 +8842,14 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
8821
8842
  this.el.nativeElement.focus();
8822
8843
  }
8823
8844
  ngAfterViewInit() {
8824
- if (this.required)
8825
- this.el.nativeElement.required = this.required;
8826
- this.el.nativeElement.disabled = !this.enabled;
8827
- if (this.value == null)
8828
- this.value = 0;
8829
- this.formattedAmount = this.transform(this.value, this.decimal);
8845
+ setTimeout(() => {
8846
+ if (this.required)
8847
+ this.el.nativeElement.required = this.required;
8848
+ this.el.nativeElement.disabled = !this.enabled;
8849
+ if (this.value == null)
8850
+ this.value = 0;
8851
+ this.formattedAmount = this.transform(this.value, this.decimal);
8852
+ });
8830
8853
  }
8831
8854
  };
8832
8855
  __decorate([
@@ -8928,38 +8951,40 @@ let FHRichText = class FHRichText {
8928
8951
  this.blur.emit(o);
8929
8952
  }
8930
8953
  ngAfterViewInit() {
8931
- this.config = { height: this.height };
8932
- if (this.enabled) {
8933
- this.config.toolbarGroups = [
8934
- { name: 'document', groups: ['mode', 'document', 'doctools'] },
8935
- { name: 'clipboard', groups: ['clipboard', 'undo'] },
8936
- { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8937
- { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8938
- { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8939
- { name: 'links' },
8940
- { name: 'insert' },
8941
- { name: 'styles' },
8942
- { name: 'colors' },
8943
- { name: 'tools' },
8944
- { name: 'others' },
8945
- { name: 'about' }
8946
- ];
8947
- }
8948
- else {
8949
- this.config.allowedContent = true;
8950
- this.config.toolbarGroups = [];
8951
- }
8952
- /*
8953
- var element = document.querySelector( '.cke_top' );
8954
- console.log("Just to do some debugging we check " + element);
8955
- var myEl = this.ced.toolbarButtons
8956
- myEl.toggle();
8957
- element = document.querySelector( '.cke_bottom' );
8958
- myEl = ced.element( element );
8959
- myEl.toggle();
8960
-
8961
- var myEl2 = angular.element( document.querySelector( '.test' ) );
8962
- myEl2.toggleClass("invisible")*/
8954
+ setTimeout(() => {
8955
+ this.config = { height: this.height };
8956
+ if (this.enabled) {
8957
+ this.config.toolbarGroups = [
8958
+ { name: 'document', groups: ['mode', 'document', 'doctools'] },
8959
+ { name: 'clipboard', groups: ['clipboard', 'undo'] },
8960
+ { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8961
+ { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8962
+ { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8963
+ { name: 'links' },
8964
+ { name: 'insert' },
8965
+ { name: 'styles' },
8966
+ { name: 'colors' },
8967
+ { name: 'tools' },
8968
+ { name: 'others' },
8969
+ { name: 'about' }
8970
+ ];
8971
+ }
8972
+ else {
8973
+ this.config.allowedContent = true;
8974
+ this.config.toolbarGroups = [];
8975
+ }
8976
+ /*
8977
+ var element = document.querySelector( '.cke_top' );
8978
+ console.log("Just to do some debugging we check " + element);
8979
+ var myEl = this.ced.toolbarButtons
8980
+ myEl.toggle();
8981
+ element = document.querySelector( '.cke_bottom' );
8982
+ myEl = ced.element( element );
8983
+ myEl.toggle();
8984
+
8985
+ var myEl2 = angular.element( document.querySelector( '.test' ) );
8986
+ myEl2.toggleClass("invisible")*/
8987
+ });
8963
8988
  }
8964
8989
  writeValue(value) {
8965
8990
  this.value = value;
@@ -9193,13 +9218,15 @@ let FHNumericFieldComponent = class FHNumericFieldComponent {
9193
9218
  this.el.nativeElement.focus();
9194
9219
  }
9195
9220
  ngAfterViewInit() {
9196
- if (this.required)
9197
- this.el.nativeElement.required = this.required;
9198
- this.el.nativeElement.disabled = !this.enabled;
9199
- if (this.value == null)
9200
- this.value = 0;
9201
- // console.log('tttttttttttt',this.decimal);
9202
- this.formattedAmount = this.transform(this.value, this.decimal);
9221
+ setTimeout(() => {
9222
+ if (this.required)
9223
+ this.el.nativeElement.required = this.required;
9224
+ this.el.nativeElement.disabled = !this.enabled;
9225
+ if (this.value == null)
9226
+ this.value = 0;
9227
+ // console.log('tttttttttttt',this.decimal);
9228
+ this.formattedAmount = this.transform(this.value, this.decimal);
9229
+ });
9203
9230
  }
9204
9231
  };
9205
9232
  FHNumericFieldComponent.ctorParameters = () => [
@@ -9749,9 +9776,11 @@ let win_uploads = class win_uploads {
9749
9776
  }
9750
9777
  close() { this.dialogRef.close(null); }
9751
9778
  ngAfterViewInit() {
9752
- this.App = this.app_s.getState().wkf_doc_info.uiid_app;
9753
- this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
9754
- this.init(this.App, this.K);
9779
+ setTimeout(() => {
9780
+ this.App = this.app_s.getState().wkf_doc_info.uiid_app;
9781
+ this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
9782
+ this.init(this.App, this.K);
9783
+ });
9755
9784
  }
9756
9785
  init(p_app, p_k) {
9757
9786
  this.App = p_app;
@@ -13278,7 +13307,9 @@ class dati_aggiuntivi {
13278
13307
  });
13279
13308
  }
13280
13309
  ngAfterViewInit() {
13281
- this.init_engine();
13310
+ setTimeout(() => {
13311
+ this.init_engine();
13312
+ });
13282
13313
  }
13283
13314
  setta_info_app(o) {
13284
13315
  this.app_info = o;
@@ -13467,24 +13498,26 @@ let FormBuilderComponent = class FormBuilderComponent {
13467
13498
  });
13468
13499
  }
13469
13500
  ngAfterViewInit() {
13470
- try {
13471
- this.dragula.createGroup('bag-items', {
13472
- revertOnSpill: true
13501
+ setTimeout(() => {
13502
+ try {
13503
+ this.dragula.createGroup('bag-items', {
13504
+ revertOnSpill: true
13505
+ });
13506
+ }
13507
+ catch (e) {
13508
+ console.log(e);
13509
+ }
13510
+ this.dragula
13511
+ .drag.call(value => {
13512
+ this.change.emit();
13513
+ this.edit_obj = null;
13514
+ });
13515
+ this.dragula
13516
+ .drop
13517
+ .call(value => {
13518
+ this.change.emit();
13519
+ this.edit_obj = null;
13473
13520
  });
13474
- }
13475
- catch (e) {
13476
- console.log(e);
13477
- }
13478
- this.dragula
13479
- .drag.call(value => {
13480
- this.change.emit();
13481
- this.edit_obj = null;
13482
- });
13483
- this.dragula
13484
- .drop
13485
- .call(value => {
13486
- this.change.emit();
13487
- this.edit_obj = null;
13488
13521
  });
13489
13522
  }
13490
13523
  };
@@ -13887,9 +13920,11 @@ let FHViewerComponent = class FHViewerComponent {
13887
13920
  this.fullScreenEvent = new EventEmitter();
13888
13921
  }
13889
13922
  ngAfterViewInit() {
13890
- const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
13891
- this.config = this.mergeConfig(merged, this.config);
13892
- this.triggerConfigBinding();
13923
+ setTimeout(() => {
13924
+ const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
13925
+ this.config = this.mergeConfig(merged, this.config);
13926
+ this.triggerConfigBinding();
13927
+ });
13893
13928
  }
13894
13929
  nextImage($event) {
13895
13930
  console.log('this.src.length ', this.src.length);
@@ -14145,7 +14180,9 @@ let fhimagepreview = class fhimagepreview {
14145
14180
  this.already_open = true;
14146
14181
  }
14147
14182
  ngAfterViewInit() {
14148
- this.init();
14183
+ setTimeout(() => {
14184
+ this.init();
14185
+ });
14149
14186
  }
14150
14187
  openFullscreen() {
14151
14188
  console.log('cc', this.photo_c.imgx);
@@ -14528,15 +14565,17 @@ let win_manage_values = class win_manage_values {
14528
14565
  ok() {
14529
14566
  }
14530
14567
  ngAfterViewInit() {
14531
- this.nValori = new Object();
14532
- //this.nValori.valore=0;
14533
- this.nValori.descrizione = '';
14534
- this.nValori.v1 = null;
14535
- this.nValori.v2 = null;
14536
- this.nValori.id_valore = -1;
14537
- this.nValori.v3 = null;
14538
- this.nValori.lingua = null;
14539
- this.ref_user_list();
14568
+ setTimeout(() => {
14569
+ this.nValori = new Object();
14570
+ //this.nValori.valore=0;
14571
+ this.nValori.descrizione = '';
14572
+ this.nValori.v1 = null;
14573
+ this.nValori.v2 = null;
14574
+ this.nValori.id_valore = -1;
14575
+ this.nValori.v3 = null;
14576
+ this.nValori.lingua = null;
14577
+ this.ref_user_list();
14578
+ });
14540
14579
  }
14541
14580
  };
14542
14581
  win_manage_values.ctorParameters = () => [
@@ -14642,13 +14681,15 @@ let FHTableManager = class FHTableManager {
14642
14681
  });
14643
14682
  }
14644
14683
  ngAfterViewInit() {
14645
- if (this.application == "")
14646
- return;
14647
- this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
14648
- this.cmb_sel.types = ['string'];
14649
- this.cmb_sel.values = [this.application];
14650
- this.cmb_sel.fillCombo();
14651
- this.b_init = true;
14684
+ setTimeout(() => {
14685
+ if (this.application == "")
14686
+ return;
14687
+ this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
14688
+ this.cmb_sel.types = ['string'];
14689
+ this.cmb_sel.values = [this.application];
14690
+ this.cmb_sel.fillCombo();
14691
+ this.b_init = true;
14692
+ });
14652
14693
  }
14653
14694
  };
14654
14695
  FHTableManager.ctorParameters = () => [
@@ -14754,7 +14795,9 @@ let win_manage_roles = class win_manage_roles {
14754
14795
  });
14755
14796
  }
14756
14797
  ngAfterViewInit() {
14757
- this.ref_user_list();
14798
+ setTimeout(() => {
14799
+ this.ref_user_list();
14800
+ });
14758
14801
  }
14759
14802
  };
14760
14803
  win_manage_roles.ctorParameters = () => [
@@ -14850,13 +14893,15 @@ let FHRoleManager = class FHRoleManager {
14850
14893
  });
14851
14894
  }
14852
14895
  ngAfterViewInit() {
14853
- if (this.application == "")
14854
- return;
14855
- this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
14856
- this.cmb_sel.types = ['string'];
14857
- this.cmb_sel.values = [this.application];
14858
- this.cmb_sel.fillCombo();
14859
- this.b_init = true;
14896
+ setTimeout(() => {
14897
+ if (this.application == "")
14898
+ return;
14899
+ this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
14900
+ this.cmb_sel.types = ['string'];
14901
+ this.cmb_sel.values = [this.application];
14902
+ this.cmb_sel.fillCombo();
14903
+ this.b_init = true;
14904
+ });
14860
14905
  }
14861
14906
  };
14862
14907
  FHRoleManager.ctorParameters = () => [
@@ -15145,19 +15190,21 @@ let FHComboboxComponentFilter = class FHComboboxComponentFilter {
15145
15190
  this.setByDescri(this.valDef);
15146
15191
  }
15147
15192
  ngAfterViewInit() {
15148
- if (this.init_fill == true) {
15149
- if (this.sql == '') {
15150
- //this.errorMsg="QUERY NON CONFIGURATA";
15151
- return;
15193
+ setTimeout(() => {
15194
+ if (this.init_fill == true) {
15195
+ if (this.sql == '') {
15196
+ //this.errorMsg="QUERY NON CONFIGURATA";
15197
+ return;
15198
+ }
15199
+ this.fillCombo();
15152
15200
  }
15153
- this.fillCombo();
15154
- }
15155
- else {
15156
- this.errorMsg = "";
15157
- }
15158
- this
15159
- .initend
15160
- .emit();
15201
+ else {
15202
+ this.errorMsg = "";
15203
+ }
15204
+ this
15205
+ .initend
15206
+ .emit();
15207
+ });
15161
15208
  }
15162
15209
  sc() {
15163
15210
  this
@@ -15411,22 +15458,24 @@ let win_user_info = class win_user_info {
15411
15458
  }
15412
15459
  close() { this.dialogRef.close(null); }
15413
15460
  ngAfterViewInit() {
15414
- if (this.isadmin == '1')
15415
- if (this.appService.dev_mode != null)
15416
- if (this.appService.dev_mode == '1')
15417
- this.dev_mode = true;
15418
- let p = new QParam();
15419
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
15420
- p.types = ['string', 'string'];
15421
- p.values = ['FOTO_UTENTI', this.appService.user];
15422
- this._dataService.doQuery(p).subscribe(data => {
15423
- if (data != null)
15424
- if (data.result_msg == "OK") {
15425
- if (data.result_data.length > 0) {
15426
- this.b_filef = true;
15427
- this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
15461
+ setTimeout(() => {
15462
+ if (this.isadmin == '1')
15463
+ if (this.appService.dev_mode != null)
15464
+ if (this.appService.dev_mode == '1')
15465
+ this.dev_mode = true;
15466
+ let p = new QParam();
15467
+ p.sql = "SELECT_ALLEGATI_DOCUMENTO";
15468
+ p.types = ['string', 'string'];
15469
+ p.values = ['FOTO_UTENTI', this.appService.user];
15470
+ this._dataService.doQuery(p).subscribe(data => {
15471
+ if (data != null)
15472
+ if (data.result_msg == "OK") {
15473
+ if (data.result_data.length > 0) {
15474
+ this.b_filef = true;
15475
+ this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
15476
+ }
15428
15477
  }
15429
- }
15478
+ });
15430
15479
  });
15431
15480
  }
15432
15481
  upd_dev(dv) {