@fluxhub/fluxhub-lib 1.1.1 → 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 (204) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +388 -345
  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 +11 -9
  6. package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +11 -9
  7. package/esm2015/lib/controls/app_manager/win_manage_roles.js +5 -3
  8. package/esm2015/lib/controls/app_manager/win_manage_values.js +13 -11
  9. package/esm2015/lib/controls/fhautocomplete.js +15 -18
  10. package/esm2015/lib/controls/fhcombobox.js +15 -16
  11. package/esm2015/lib/controls/fhconfirm.js +2 -2
  12. package/esm2015/lib/controls/fhcurrencyfield.js +10 -8
  13. package/esm2015/lib/controls/fhcurrencyformatter.js +6 -4
  14. package/esm2015/lib/controls/fhdatepicker.js +5 -3
  15. package/esm2015/lib/controls/fhfieldpicklist.js +2 -2
  16. package/esm2015/lib/controls/fhgrid.js +9 -7
  17. package/esm2015/lib/controls/fhgrid_json.js +2 -2
  18. package/esm2015/lib/controls/fhgrid_win_help.js +2 -2
  19. package/esm2015/lib/controls/fhhelpbutton.js +2 -2
  20. package/esm2015/lib/controls/fhimagepreview.js +7 -5
  21. package/esm2015/lib/controls/fhlist.js +16 -16
  22. package/esm2015/lib/controls/fhlogpanel.js +2 -2
  23. package/esm2015/lib/controls/fhmdreader.js +2 -2
  24. package/esm2015/lib/controls/fhnumeric.js +11 -9
  25. package/esm2015/lib/controls/fhrichtext.js +36 -34
  26. package/esm2015/lib/controls/fhtimepicker.js +2 -2
  27. package/esm2015/lib/controls/fhupload.js +40 -38
  28. package/esm2015/lib/controls/fhuploadpanel.js +18 -14
  29. package/esm2015/lib/controls/fhuserfield.js +6 -4
  30. package/esm2015/lib/controls/fhuserpicker.js +34 -32
  31. package/esm2015/lib/controls/fhwinpicklist.js +2 -2
  32. package/esm2015/lib/controls/grid_editors/approvabuttons.js +1 -5
  33. package/esm2015/lib/controls/grid_editors/fhcombobox_filter.js +15 -16
  34. package/esm2015/lib/controls/grid_editors/numeric-editor.component.js +6 -4
  35. package/esm2015/lib/controls/grid_editors/select-editor.component.js +1 -6
  36. package/esm2015/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  37. package/esm2015/lib/controls/image-viewer/image-viewer.component.js +7 -5
  38. package/esm2015/lib/controls/win_ask_buttons.js +2 -2
  39. package/esm2015/lib/controls/win_ask_number.js +2 -2
  40. package/esm2015/lib/controls/win_ask_text.js +2 -2
  41. package/esm2015/lib/controls/win_ask_textbig.js +2 -2
  42. package/esm2015/lib/controls/win_combo_select.js +2 -2
  43. package/esm2015/lib/controls/win_list_pick.js +2 -2
  44. package/esm2015/lib/controls/win_mappa.js +2 -2
  45. package/esm2015/lib/controls/win_output.js +2 -2
  46. package/esm2015/lib/controls/win_show_image.js +2 -2
  47. package/esm2015/lib/controls/win_time_slider.js +12 -10
  48. package/esm2015/lib/controls/win_user_info.js +19 -17
  49. package/esm2015/lib/controls/win_wait.js +2 -2
  50. package/esm2015/lib/fluxhub-lib.module.js +1 -1
  51. package/esm2015/lib/form_builder/form_builder.js +21 -19
  52. package/esm2015/lib/form_builder/form_executer.js +2 -2
  53. package/esm2015/lib/wkf_engine/win_assegna.js +2 -2
  54. package/esm2015/lib/wkf_engine/win_commenti.js +2 -2
  55. package/esm2015/lib/wkf_engine/win_commento_sel_notif.js +2 -2
  56. package/esm2015/lib/wkf_engine/win_conferma.js +2 -2
  57. package/esm2015/lib/wkf_engine/win_info_doc.js +2 -2
  58. package/esm2015/lib/wkf_engine/win_insert_commento.js +2 -2
  59. package/esm2015/lib/wkf_engine/win_log.js +2 -2
  60. package/esm2015/lib/wkf_engine/win_riassegna_select_level.js +2 -2
  61. package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +2 -2
  62. package/esm2015/lib/wkf_engine/win_salva_annulla.js +2 -2
  63. package/esm2015/lib/wkf_engine/win_select_canale.js +2 -2
  64. package/esm2015/lib/wkf_engine/win_select_level.js +2 -2
  65. package/esm2015/lib/wkf_engine/win_sostituisci_utente.js +2 -2
  66. package/esm2015/lib/wkf_engine/win_uploads.js +7 -5
  67. package/esm2015/lib/wkf_engine/wkf_header_bar.js +2 -2
  68. package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -3
  69. package/esm2015/public_api.js +1 -2
  70. package/esm5/lib/controls/app_manager/fhrolemanager.js +12 -9
  71. package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +12 -9
  72. package/esm5/lib/controls/app_manager/win_manage_roles.js +6 -3
  73. package/esm5/lib/controls/app_manager/win_manage_values.js +14 -11
  74. package/esm5/lib/controls/fhautocomplete.js +16 -18
  75. package/esm5/lib/controls/fhcombobox.js +16 -16
  76. package/esm5/lib/controls/fhconfirm.js +2 -2
  77. package/esm5/lib/controls/fhcurrencyfield.js +11 -8
  78. package/esm5/lib/controls/fhcurrencyformatter.js +7 -4
  79. package/esm5/lib/controls/fhdatepicker.js +6 -3
  80. package/esm5/lib/controls/fhfieldpicklist.js +2 -2
  81. package/esm5/lib/controls/fhgrid.js +10 -7
  82. package/esm5/lib/controls/fhgrid_json.js +2 -2
  83. package/esm5/lib/controls/fhgrid_win_help.js +2 -2
  84. package/esm5/lib/controls/fhhelpbutton.js +2 -2
  85. package/esm5/lib/controls/fhimagepreview.js +7 -4
  86. package/esm5/lib/controls/fhlist.js +17 -16
  87. package/esm5/lib/controls/fhlogpanel.js +2 -2
  88. package/esm5/lib/controls/fhmdreader.js +2 -2
  89. package/esm5/lib/controls/fhnumeric.js +12 -9
  90. package/esm5/lib/controls/fhrichtext.js +37 -34
  91. package/esm5/lib/controls/fhtimepicker.js +2 -2
  92. package/esm5/lib/controls/fhupload.js +40 -38
  93. package/esm5/lib/controls/fhuploadpanel.js +18 -14
  94. package/esm5/lib/controls/fhuserfield.js +7 -4
  95. package/esm5/lib/controls/fhuserpicker.js +34 -32
  96. package/esm5/lib/controls/fhwinpicklist.js +2 -2
  97. package/esm5/lib/controls/grid_editors/approvabuttons.js +1 -5
  98. package/esm5/lib/controls/grid_editors/fhcombobox_filter.js +16 -16
  99. package/esm5/lib/controls/grid_editors/numeric-editor.component.js +7 -4
  100. package/esm5/lib/controls/grid_editors/select-editor.component.js +1 -6
  101. package/esm5/lib/controls/grid_editors/textarea-editor.component.js +2 -2
  102. package/esm5/lib/controls/image-viewer/image-viewer.component.js +8 -5
  103. package/esm5/lib/controls/win_ask_buttons.js +2 -2
  104. package/esm5/lib/controls/win_ask_number.js +2 -2
  105. package/esm5/lib/controls/win_ask_text.js +2 -2
  106. package/esm5/lib/controls/win_ask_textbig.js +2 -2
  107. package/esm5/lib/controls/win_combo_select.js +2 -2
  108. package/esm5/lib/controls/win_list_pick.js +2 -2
  109. package/esm5/lib/controls/win_mappa.js +2 -2
  110. package/esm5/lib/controls/win_output.js +2 -2
  111. package/esm5/lib/controls/win_show_image.js +2 -2
  112. package/esm5/lib/controls/win_time_slider.js +13 -10
  113. package/esm5/lib/controls/win_user_info.js +19 -17
  114. package/esm5/lib/controls/win_wait.js +2 -2
  115. package/esm5/lib/fluxhub-lib.module.js +1 -1
  116. package/esm5/lib/form_builder/form_builder.js +21 -19
  117. package/esm5/lib/form_builder/form_executer.js +2 -2
  118. package/esm5/lib/wkf_engine/win_assegna.js +2 -2
  119. package/esm5/lib/wkf_engine/win_commenti.js +2 -2
  120. package/esm5/lib/wkf_engine/win_commento_sel_notif.js +2 -2
  121. package/esm5/lib/wkf_engine/win_conferma.js +2 -2
  122. package/esm5/lib/wkf_engine/win_info_doc.js +2 -2
  123. package/esm5/lib/wkf_engine/win_insert_commento.js +2 -2
  124. package/esm5/lib/wkf_engine/win_log.js +2 -2
  125. package/esm5/lib/wkf_engine/win_riassegna_select_level.js +2 -2
  126. package/esm5/lib/wkf_engine/win_riassegna_select_user.js +2 -2
  127. package/esm5/lib/wkf_engine/win_salva_annulla.js +2 -2
  128. package/esm5/lib/wkf_engine/win_select_canale.js +2 -2
  129. package/esm5/lib/wkf_engine/win_select_level.js +2 -2
  130. package/esm5/lib/wkf_engine/win_sostituisci_utente.js +2 -2
  131. package/esm5/lib/wkf_engine/win_uploads.js +8 -5
  132. package/esm5/lib/wkf_engine/wkf_header_bar.js +2 -2
  133. package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -3
  134. package/esm5/public_api.js +1 -2
  135. package/fesm2015/fluxhub-fluxhub-lib.js +369 -345
  136. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  137. package/fesm5/fluxhub-fluxhub-lib.js +389 -345
  138. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  139. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  140. package/lib/controls/app_manager/fhrolemanager.d.ts +3 -3
  141. package/lib/controls/app_manager/fhtablevaluesmanager.d.ts +3 -3
  142. package/lib/controls/app_manager/win_manage_roles.d.ts +3 -3
  143. package/lib/controls/app_manager/win_manage_values.d.ts +3 -3
  144. package/lib/controls/fhautocomplete.d.ts +3 -3
  145. package/lib/controls/fhcombobox.d.ts +2 -3
  146. package/lib/controls/fhconfirm.d.ts +3 -3
  147. package/lib/controls/fhcurrencyfield.d.ts +3 -3
  148. package/lib/controls/fhcurrencyformatter.d.ts +3 -3
  149. package/lib/controls/fhdatepicker.d.ts +3 -3
  150. package/lib/controls/fhfieldpicklist.d.ts +3 -3
  151. package/lib/controls/fhgrid.d.ts +3 -3
  152. package/lib/controls/fhgrid_json.d.ts +1 -1
  153. package/lib/controls/fhgrid_win_help.d.ts +3 -3
  154. package/lib/controls/fhimagepreview.d.ts +3 -3
  155. package/lib/controls/fhlist.d.ts +2 -3
  156. package/lib/controls/fhlogpanel.d.ts +3 -3
  157. package/lib/controls/fhmdreader.d.ts +3 -3
  158. package/lib/controls/fhnumeric.d.ts +3 -3
  159. package/lib/controls/fhrichtext.d.ts +3 -3
  160. package/lib/controls/fhtimepicker.d.ts +3 -3
  161. package/lib/controls/fhupload.d.ts +3 -3
  162. package/lib/controls/fhuploadpanel.d.ts +3 -3
  163. package/lib/controls/fhuserfield.d.ts +3 -3
  164. package/lib/controls/fhuserpicker.d.ts +3 -3
  165. package/lib/controls/fhwinpicklist.d.ts +3 -3
  166. package/lib/controls/grid_editors/approvabuttons.d.ts +1 -3
  167. package/lib/controls/grid_editors/fhcombobox_filter.d.ts +2 -3
  168. package/lib/controls/grid_editors/select-editor.component.d.ts +1 -3
  169. package/lib/controls/image-viewer/image-viewer.component.d.ts +3 -3
  170. package/lib/controls/win_ask_buttons.d.ts +3 -3
  171. package/lib/controls/win_ask_number.d.ts +3 -3
  172. package/lib/controls/win_ask_text.d.ts +3 -3
  173. package/lib/controls/win_ask_textbig.d.ts +3 -3
  174. package/lib/controls/win_combo_select.d.ts +3 -3
  175. package/lib/controls/win_list_pick.d.ts +3 -3
  176. package/lib/controls/win_mappa.d.ts +3 -3
  177. package/lib/controls/win_output.d.ts +3 -3
  178. package/lib/controls/win_show_image.d.ts +3 -3
  179. package/lib/controls/win_time_slider.d.ts +3 -3
  180. package/lib/controls/win_user_info.d.ts +3 -3
  181. package/lib/controls/win_wait.d.ts +3 -3
  182. package/lib/form_builder/form_builder.d.ts +3 -3
  183. package/lib/form_builder/form_executer.d.ts +3 -3
  184. package/lib/wkf_engine/win_assegna.d.ts +3 -3
  185. package/lib/wkf_engine/win_commenti.d.ts +3 -3
  186. package/lib/wkf_engine/win_commento_sel_notif.d.ts +3 -3
  187. package/lib/wkf_engine/win_conferma.d.ts +3 -3
  188. package/lib/wkf_engine/win_info_doc.d.ts +3 -3
  189. package/lib/wkf_engine/win_insert_commento.d.ts +3 -3
  190. package/lib/wkf_engine/win_log.d.ts +3 -3
  191. package/lib/wkf_engine/win_riassegna_select_level.d.ts +3 -3
  192. package/lib/wkf_engine/win_riassegna_select_user.d.ts +3 -3
  193. package/lib/wkf_engine/win_salva_annulla.d.ts +3 -3
  194. package/lib/wkf_engine/win_select_canale.d.ts +3 -3
  195. package/lib/wkf_engine/win_select_level.d.ts +3 -3
  196. package/lib/wkf_engine/win_sostituisci_utente.d.ts +3 -3
  197. package/lib/wkf_engine/win_uploads.d.ts +3 -3
  198. package/lib/wkf_engine/wkf_header_bar.d.ts +3 -3
  199. package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -1
  200. package/package.json +1 -1
  201. package/public_api.d.ts +0 -1
  202. package/esm2015/lib/controls/grid_editors/dt.js +0 -8
  203. package/esm5/lib/controls/grid_editors/dt.js +0 -10
  204. package/lib/controls/grid_editors/dt.d.ts +0 -7
@@ -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', []);
@@ -1013,15 +1015,17 @@ let win_time_slider = class win_time_slider {
1013
1015
  }
1014
1016
  this.dialogRef.close(this.res);
1015
1017
  }
1016
- ngOnInit() {
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
- }
1018
+ ngAfterViewInit() {
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 = () => [
@@ -1437,7 +1441,7 @@ let FHTimePickerComponent = FHTimePickerComponent_1 = class FHTimePickerComponen
1437
1441
  getMinutes() {
1438
1442
  return this.m;
1439
1443
  }
1440
- ngOnInit() {
1444
+ ngAfterViewInit() {
1441
1445
  }
1442
1446
  sc() {
1443
1447
  const value = this.getValue();
@@ -1589,7 +1593,7 @@ let FHConfirmComponent = class FHConfirmComponent {
1589
1593
  setMsg(texto) {
1590
1594
  this.msg = texto;
1591
1595
  }
1592
- ngOnInit() {
1596
+ ngAfterViewInit() {
1593
1597
  }
1594
1598
  };
1595
1599
  FHConfirmComponent.ctorParameters = () => [
@@ -1808,22 +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();
1825
- }
1826
- ngOnInit() {
1824
+ else {
1825
+ this.errorMsg = "";
1826
+ }
1827
+ this
1828
+ .initend
1829
+ .emit();
1830
+ });
1827
1831
  }
1828
1832
  sc() {
1829
1833
  this
@@ -1941,7 +1945,7 @@ let WinWait = class WinWait {
1941
1945
  if (p == 100)
1942
1946
  this.dialogRef.close();
1943
1947
  }
1944
- ngOnInit() {
1948
+ ngAfterViewInit() {
1945
1949
  }
1946
1950
  };
1947
1951
  WinWait.ctorParameters = () => [
@@ -2220,22 +2224,21 @@ let FHComboboxComponent = class FHComboboxComponent {
2220
2224
  this.setByDescri(this.valDef);
2221
2225
  }
2222
2226
  ngAfterViewInit() {
2223
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
2224
- }
2225
- ngOnInit() {
2226
- if (this.init_fill == true) {
2227
- if (this.sql == '') {
2228
- //this.errorMsg="QUERY NON CONFIGURATA";
2229
- 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();
2230
2234
  }
2231
- this.fillCombo();
2232
- }
2233
- else {
2234
- this.errorMsg = "";
2235
- }
2236
- this
2237
- .initend
2238
- .emit();
2235
+ else {
2236
+ this.errorMsg = "";
2237
+ }
2238
+ this
2239
+ .initend
2240
+ .emit();
2241
+ });
2239
2242
  }
2240
2243
  sc() {
2241
2244
  this
@@ -2431,44 +2434,46 @@ let FHUploadComponent = class FHUploadComponent {
2431
2434
  this.cmb_tipo.sql = this.tipo;
2432
2435
  this.cmb_tipo.fillCombo();
2433
2436
  }
2434
- ngOnInit() {
2435
- let uo = {};
2436
- uo.headers = [{ name: 'Authorization', value: 'Bearer ' + localStorage.getItem(this.app_s.COMPANY_KEY + "token") }];
2437
- // console.log('ngOnInit!!');
2438
- this.uploader.setOptions(uo);
2439
- this.uploader.onCompleteAll = () => {
2440
- this.loading = false;
2441
- this.upload_ended.emit();
2442
- if (this.dialogRef != null)
2443
- if (this.dialogRef.componentInstance != null) {
2444
- this.dialogRef.componentInstance.update_progess(100);
2445
- this.dialogRef = null;
2437
+ ngAfterViewInit() {
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);
2446
2474
  }
2447
- };
2448
- this.uploader.onErrorItem = (a, b, c, d) => {
2449
- this.toastr.error(b);
2450
- };
2451
- this.uploader.onAfterAddingFile = (fileItem) => {
2452
- this.ch(fileItem);
2453
- };
2454
- this.uploader.onProgressItem = (fileItem, progress) => {
2455
- // console.log(fileItem);
2456
- // console.log(progress);
2457
- this.loading = true;
2458
- if (this.dialogRef != null)
2459
- if (this.dialogRef.componentInstance != null)
2460
- this.dialogRef.componentInstance.update_progess(progress);
2461
- };
2462
- this.uploader.onWhenAddingFileFailed = (item, filter, options) => {
2463
- switch (filter.name) {
2464
- case 'fileSize':
2465
- let ar = Math.round(item.size / 1024 / 1024);
2466
- this.toastr.error(this.limit_string.split('<size>').join('' + ar));
2467
- break;
2468
- default:
2469
- this.toastr.error("Errore: " + filter.name);
2470
- }
2471
- };
2475
+ };
2476
+ });
2472
2477
  }
2473
2478
  download_all() {
2474
2479
  window.open(this.app_s.COMPANY_SITE_ROOT + '/uploads/' + this.App + '/' + this.K + '/' + this.file_name);
@@ -2899,7 +2904,7 @@ let WinAskTextBigComponent = class WinAskTextBigComponent {
2899
2904
  this.show_ok = true;
2900
2905
  this.min_chars = 3;
2901
2906
  }
2902
- ngOnInit() {
2907
+ ngAfterViewInit() {
2903
2908
  }
2904
2909
  close() { this.dialogRef.close(null); }
2905
2910
  show() {
@@ -2996,7 +3001,7 @@ let FHWinComboSelect = class FHWinComboSelect {
2996
3001
  this.cmb_sel.getObj().nota = this.nota_val;
2997
3002
  this.dialogRef.close(this.cmb_sel.getObj());
2998
3003
  }
2999
- ngOnInit() {
3004
+ ngAfterViewInit() {
3000
3005
  }
3001
3006
  };
3002
3007
  FHWinComboSelect.ctorParameters = () => [
@@ -3179,18 +3184,22 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
3179
3184
  }
3180
3185
  });
3181
3186
  }
3182
- ngOnInit() {
3183
- setTimeout(() => { this.b_initt = true; }, 700);
3184
- this.upc.single = false;
3185
- this.b_mobile = this._appservice.getState().pageFullscreen;
3186
- console.log('this.m_p_tipo ', this.m_p_tipo);
3187
- this
3188
- .upc
3189
- .init(this.App, this.K, 'Descrizione Allegato', this.m_p_tipo, this.m_programma_da_eseguire);
3190
- if (this.m_p_tipo.indexOf('SELECT_') > -1) {
3191
- this.multi_list = true;
3192
- }
3193
- this.ref_allegato();
3187
+ ngAfterViewInit() {
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
+ });
3194
3203
  }
3195
3204
  init(p_app, p_k, p_tipo = "", programma_da_eseguire = "") {
3196
3205
  this.App = p_app;
@@ -3199,7 +3208,7 @@ let FHUploadPanelComponent = class FHUploadPanelComponent {
3199
3208
  this.b_edit_loaded = false;
3200
3209
  this.m_p_tipo = p_tipo;
3201
3210
  this.m_programma_da_eseguire = programma_da_eseguire;
3202
- this.ngOnInit();
3211
+ this.ngAfterViewInit();
3203
3212
  }
3204
3213
  ref_allegato() {
3205
3214
  if (this.App == null)
@@ -3564,7 +3573,7 @@ let win_grid_help = class win_grid_help {
3564
3573
  this.title = "";
3565
3574
  }
3566
3575
  close() { this.dialogRef.close(null); }
3567
- ngOnInit() {
3576
+ ngAfterViewInit() {
3568
3577
  }
3569
3578
  };
3570
3579
  win_grid_help.ctorParameters = () => [
@@ -3621,7 +3630,7 @@ let WinAskTextComponent = class WinAskTextComponent {
3621
3630
  this.min_chars = 3;
3622
3631
  this.max_chars = 50;
3623
3632
  }
3624
- ngOnInit() {
3633
+ ngAfterViewInit() {
3625
3634
  }
3626
3635
  close() { this.dialogRef.close(null); }
3627
3636
  show() {
@@ -3851,7 +3860,7 @@ let win_riassegna_select_level = class win_riassegna_select_level {
3851
3860
  }
3852
3861
  this.dialogRef.close({ lvl_sel: lvl, result: 'ok' });
3853
3862
  }
3854
- ngOnInit() {
3863
+ ngAfterViewInit() {
3855
3864
  }
3856
3865
  };
3857
3866
  win_riassegna_select_level.ctorParameters = () => [
@@ -3939,39 +3948,41 @@ let FHUserPickerComponent = class FHUserPickerComponent {
3939
3948
  }
3940
3949
  }
3941
3950
  }
3942
- ngOnInit() {
3943
- if (this.all_users) {
3944
- let ok_op = false;
3945
- var p = new QParam();
3946
- p.sql = "SELECT_ALL_USERS";
3947
- p.types = [];
3948
- p.values = [];
3949
- this
3950
- ._dataService
3951
- .doQuery(p)
3952
- .subscribe(data => {
3951
+ ngAfterViewInit() {
3952
+ setTimeout(() => {
3953
+ if (this.all_users) {
3953
3954
  let ok_op = false;
3954
- if (data != null)
3955
- if (data.result_msg == "OK") {
3956
- this.users_list = data.result_data;
3957
- this.filtra();
3958
- 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) {
3959
3971
  }
3960
- if (!ok_op) {
3961
- }
3962
- }, err => {
3963
- this.errorMsg = "ERRORE DI CONNESSIONE CON IL SERVER.RITENTARE PIU' TARDI";
3964
- });
3965
- }
3966
- else {
3967
- if (this.user_sel != null)
3968
- if (this.user_sel.length > 0)
3969
- return;
3970
- this.users_list_sel = new Array();
3971
- if (this.users_list != null)
3972
- for (var i = 0; i < this.users_list.length; i++)
3973
- this.users_list_sel.push(this.users_list[i]);
3974
- }
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
+ });
3975
3986
  }
3976
3987
  close() { this.dialogRef.close(null); }
3977
3988
  do_add() {
@@ -4177,7 +4188,7 @@ let win_riassegna_select_user = class win_riassegna_select_user {
4177
4188
  o.result = "ok";
4178
4189
  this.dialogRef.close(o);
4179
4190
  }
4180
- ngOnInit() {
4191
+ ngAfterViewInit() {
4181
4192
  }
4182
4193
  };
4183
4194
  win_riassegna_select_user.ctorParameters = () => [
@@ -4243,9 +4254,11 @@ let FHUserFieldComponent = class FHUserFieldComponent {
4243
4254
  this.onTouched = () => {
4244
4255
  };
4245
4256
  }
4246
- ngOnInit() {
4247
- if (this.required)
4248
- this.label = this.label + ' *';
4257
+ ngAfterViewInit() {
4258
+ setTimeout(() => {
4259
+ if (this.required)
4260
+ this.label = this.label + ' *';
4261
+ });
4249
4262
  }
4250
4263
  getUsersNc() {
4251
4264
  let s_nc = '';
@@ -4547,7 +4560,7 @@ let win_sostituisci_utente = class win_sostituisci_utente {
4547
4560
  o.result = "ok";
4548
4561
  this.dialogRef.close(o);
4549
4562
  }
4550
- ngOnInit() {
4563
+ ngAfterViewInit() {
4551
4564
  }
4552
4565
  };
4553
4566
  win_sostituisci_utente.ctorParameters = () => [
@@ -6157,12 +6170,14 @@ let FHGridComponent = class FHGridComponent {
6157
6170
  return item.data.codice;
6158
6171
  return "NA";
6159
6172
  }
6160
- ngOnInit() {
6161
- if (this.end_point == null)
6162
- this.end_point = this.m_appService.API_ENDPOINT + this.m_appService.GRID_ENDPOINT;
6163
- if (localStorage.getItem(this.grid_key + '_FILTER_UP') != null)
6164
- this.ric_libera = localStorage.getItem(this.grid_key + '_FILTER_UP');
6165
- this.onResize();
6173
+ ngAfterViewInit() {
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
+ });
6166
6181
  }
6167
6182
  okr(event) {
6168
6183
  //console.log(event.column.colDef.field);
@@ -7194,24 +7209,21 @@ let FHAutoCompleteComponent = FHAutoCompleteComponent_1 = class FHAutoCompleteCo
7194
7209
  this.setByDescri(this.valDef);
7195
7210
  }
7196
7211
  }
7197
- ngOnInit() {
7198
- // console.log('ngOnInit INIT'); console.log(this.init_fill);
7199
- // console.log("TIPO "+typeof(this.init_fill));
7200
- if (this.init_fill) {
7201
- if (this.sql == '') {
7202
- //this.errorMsg="QUERY NON CONFIGURATA";
7203
- return;
7212
+ ngAfterViewInit() {
7213
+ setTimeout(() => {
7214
+ if (this.init_fill) {
7215
+ if (this.sql == '') {
7216
+ return;
7217
+ }
7218
+ this.fillCombo();
7204
7219
  }
7205
- // console.log(' this.fillCombo()');
7206
- this.fillCombo();
7207
- }
7208
- else {
7209
- //console.log('salta');
7210
- this.errorMsg = "";
7211
- }
7212
- this
7213
- .initend
7214
- .emit();
7220
+ else {
7221
+ this.errorMsg = "";
7222
+ }
7223
+ this
7224
+ .initend
7225
+ .emit();
7226
+ });
7215
7227
  }
7216
7228
  /// override some FHValueAccessor implementation
7217
7229
  /**
@@ -7618,8 +7630,10 @@ let FHDatePickerComponent = FHDatePickerComponent_1 = class FHDatePickerComponen
7618
7630
  return null;
7619
7631
  return this.date_sel.toDate();
7620
7632
  }
7621
- ngOnInit() {
7622
- this.setLimits();
7633
+ ngAfterViewInit() {
7634
+ setTimeout(() => {
7635
+ this.setLimits();
7636
+ });
7623
7637
  // this.myDatePickerOptions.componentDisabled=!this.enabled;
7624
7638
  }
7625
7639
  setLimits() {
@@ -7750,10 +7764,6 @@ let ApprovaGridComponent = class ApprovaGridComponent {
7750
7764
  this.val_app = -1;
7751
7765
  this.params.api.stopEditing();
7752
7766
  }
7753
- // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
7754
- ngAfterViewInit() {
7755
- // this.container.element.nativeElement.focus();
7756
- }
7757
7767
  agInit(params) {
7758
7768
  this.params = params;
7759
7769
  }
@@ -7849,8 +7859,10 @@ let FHCurrencyFormatterDirective = class FHCurrencyFormatterDirective {
7849
7859
  this.currencyPipe = currencyPipe;
7850
7860
  this.el = this.elementRef.nativeElement;
7851
7861
  }
7852
- ngOnInit() {
7853
- this.el.value = this.currencyPipe.transform(this.el.value);
7862
+ ngAfterViewInit() {
7863
+ setTimeout(() => {
7864
+ this.el.value = this.currencyPipe.transform(this.el.value);
7865
+ });
7854
7866
  }
7855
7867
  onFocus(value) {
7856
7868
  this.el.value = this.currencyPipe.parse(value); // opossite of transform
@@ -7920,7 +7932,7 @@ let win_mappa = class win_mappa {
7920
7932
  this.infoWindowOpened.close();
7921
7933
  this.infoWindowOpened = infoWindow;
7922
7934
  }
7923
- ngOnInit() {
7935
+ ngAfterViewInit() {
7924
7936
  }
7925
7937
  };
7926
7938
  win_mappa.ctorParameters = () => [
@@ -7988,7 +8000,7 @@ let TextAreaEditor = class TextAreaEditor {
7988
8000
  // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
7989
8001
  ngAfterViewInit() {
7990
8002
  // console.log(this.appdt.nativeElement);
7991
- setTimeout(() => this.appdt.nativeElement.focus(), 500);
8003
+ setTimeout(() => this.appdt.nativeElement.focus());
7992
8004
  }
7993
8005
  agInit(params) {
7994
8006
  this.params = params;
@@ -8098,11 +8110,6 @@ let ComboBoxEditor = class ComboBoxEditor {
8098
8110
  // console.log(this.date_zz.getFullYear().toString()+"-"+this.uti_s.format2cifre(this.date_zz.getMonth()+1)+"-"+this.uti_s.format2cifre(this.date_zz.getDate())+"T00:00:00");
8099
8111
  this.date_zz = this.selval;
8100
8112
  }
8101
- // dont use afterGuiAttached for post gui events - hook into ngAfterViewInit instead for this
8102
- ngAfterViewInit() {
8103
- // console.log(this.appdt.nativeElement);
8104
- // setTimeout(()=>this.appdt.nativeElement.click(),500);
8105
- }
8106
8113
  agInit(params) {
8107
8114
  this.params = params;
8108
8115
  var p = new QParam();
@@ -8248,7 +8255,7 @@ let FHPickListComponent = class FHPickListComponent {
8248
8255
  this.values = [];
8249
8256
  this.value_sel = new Array();
8250
8257
  }
8251
- ngOnInit() {
8258
+ ngAfterViewInit() {
8252
8259
  }
8253
8260
  filtra() {
8254
8261
  this.value_list_sel = new Array();
@@ -8539,7 +8546,7 @@ let WinAskNumberComponent = class WinAskNumberComponent {
8539
8546
  this.valore_min = 1;
8540
8547
  this.valore_max = 1000000;
8541
8548
  }
8542
- ngOnInit() {
8549
+ ngAfterViewInit() {
8543
8550
  }
8544
8551
  show() {
8545
8552
  }
@@ -8618,7 +8625,7 @@ let FHMdReader = class FHMdReader {
8618
8625
  this.highlighted = true;
8619
8626
  }
8620
8627
  }
8621
- ngOnInit() {
8628
+ ngAfterViewInit() {
8622
8629
  }
8623
8630
  };
8624
8631
  FHMdReader.ctorParameters = () => [
@@ -8688,7 +8695,7 @@ let FHLogPanelComponent = class FHLogPanelComponent {
8688
8695
  reload() {
8689
8696
  this.datagrid.doFill("[applicativo]='" + this.m_app + "' and [iddocumento]='" + this.m_k + "'");
8690
8697
  }
8691
- ngOnInit() {
8698
+ ngAfterViewInit() {
8692
8699
  }
8693
8700
  };
8694
8701
  FHLogPanelComponent.ctorParameters = () => [
@@ -8834,13 +8841,15 @@ let FHCurrencyFieldComponent = class FHCurrencyFieldComponent {
8834
8841
  setFocus() {
8835
8842
  this.el.nativeElement.focus();
8836
8843
  }
8837
- ngOnInit() {
8838
- if (this.required)
8839
- this.el.nativeElement.required = this.required;
8840
- this.el.nativeElement.disabled = !this.enabled;
8841
- if (this.value == null)
8842
- this.value = 0;
8843
- this.formattedAmount = this.transform(this.value, this.decimal);
8844
+ ngAfterViewInit() {
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
+ });
8844
8853
  }
8845
8854
  };
8846
8855
  __decorate([
@@ -8941,39 +8950,41 @@ let FHRichText = class FHRichText {
8941
8950
  onBlur(o) {
8942
8951
  this.blur.emit(o);
8943
8952
  }
8944
- ngOnInit() {
8945
- this.config = { height: this.height };
8946
- if (this.enabled) {
8947
- this.config.toolbarGroups = [
8948
- { name: 'document', groups: ['mode', 'document', 'doctools'] },
8949
- { name: 'clipboard', groups: ['clipboard', 'undo'] },
8950
- { name: 'editing', groups: ['find', 'selection', 'spellchecker'] },
8951
- { name: 'basicstyles', groups: ['basicstyles', 'cleanup'] },
8952
- { name: 'paragraph', groups: ['list', 'indent', 'blocks', 'align', 'bidi'] },
8953
- { name: 'links' },
8954
- { name: 'insert' },
8955
- { name: 'styles' },
8956
- { name: 'colors' },
8957
- { name: 'tools' },
8958
- { name: 'others' },
8959
- { name: 'about' }
8960
- ];
8961
- }
8962
- else {
8963
- this.config.allowedContent = true;
8964
- this.config.toolbarGroups = [];
8965
- }
8966
- /*
8967
- var element = document.querySelector( '.cke_top' );
8968
- console.log("Just to do some debugging we check " + element);
8969
- var myEl = this.ced.toolbarButtons
8970
- myEl.toggle();
8971
- element = document.querySelector( '.cke_bottom' );
8972
- myEl = ced.element( element );
8973
- myEl.toggle();
8974
-
8975
- var myEl2 = angular.element( document.querySelector( '.test' ) );
8976
- myEl2.toggleClass("invisible")*/
8953
+ ngAfterViewInit() {
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
+ });
8977
8988
  }
8978
8989
  writeValue(value) {
8979
8990
  this.value = value;
@@ -9046,7 +9057,7 @@ let WinOutputComponent = class WinOutputComponent {
9046
9057
  this.min_chars = 3;
9047
9058
  this.max_chars = 50;
9048
9059
  }
9049
- ngOnInit() {
9060
+ ngAfterViewInit() {
9050
9061
  }
9051
9062
  close() { this.dialogRef.close(null); }
9052
9063
  show() {
@@ -9206,14 +9217,16 @@ let FHNumericFieldComponent = class FHNumericFieldComponent {
9206
9217
  setFocus() {
9207
9218
  this.el.nativeElement.focus();
9208
9219
  }
9209
- ngOnInit() {
9210
- if (this.required)
9211
- this.el.nativeElement.required = this.required;
9212
- this.el.nativeElement.disabled = !this.enabled;
9213
- if (this.value == null)
9214
- this.value = 0;
9215
- // console.log('tttttttttttt',this.decimal);
9216
- this.formattedAmount = this.transform(this.value, this.decimal);
9220
+ ngAfterViewInit() {
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
+ });
9217
9230
  }
9218
9231
  };
9219
9232
  FHNumericFieldComponent.ctorParameters = () => [
@@ -9309,7 +9322,7 @@ let FHListPick = class FHListPick {
9309
9322
  return;
9310
9323
  this.dialogRef.close(this.cmb_sel.getObjects());
9311
9324
  }
9312
- ngOnInit() {
9325
+ ngAfterViewInit() {
9313
9326
  }
9314
9327
  };
9315
9328
  FHListPick.ctorParameters = () => [
@@ -9360,7 +9373,7 @@ let win_salva_annulla = class win_salva_annulla {
9360
9373
  esci_senza_salv() {
9361
9374
  this.dialogRef.close("esci_senza_salv");
9362
9375
  }
9363
- ngOnInit() {
9376
+ ngAfterViewInit() {
9364
9377
  }
9365
9378
  };
9366
9379
  win_salva_annulla.ctorParameters = () => [
@@ -9432,7 +9445,7 @@ let win_assegna = class win_assegna {
9432
9445
  o.arrsel = this.up.getSelArr();
9433
9446
  this.dialogRef.close(o);
9434
9447
  }
9435
- ngOnInit() {
9448
+ ngAfterViewInit() {
9436
9449
  }
9437
9450
  };
9438
9451
  win_assegna.ctorParameters = () => [
@@ -9512,7 +9525,7 @@ let win_conferma = class win_conferma {
9512
9525
  close() {
9513
9526
  this.dialogRef.close("abort");
9514
9527
  }
9515
- ngOnInit() {
9528
+ ngAfterViewInit() {
9516
9529
  }
9517
9530
  };
9518
9531
  win_conferma.ctorParameters = () => [
@@ -9577,7 +9590,7 @@ let win_select_canale = class win_select_canale {
9577
9590
  }
9578
9591
  this.dialogRef.close(this.selval);
9579
9592
  }
9580
- ngOnInit() {
9593
+ ngAfterViewInit() {
9581
9594
  }
9582
9595
  };
9583
9596
  win_select_canale.ctorParameters = () => [
@@ -9703,7 +9716,7 @@ let win_select_level = class win_select_level {
9703
9716
  }
9704
9717
  this.dialogRef.close(this.selval);
9705
9718
  }
9706
- ngOnInit() {
9719
+ ngAfterViewInit() {
9707
9720
  }
9708
9721
  };
9709
9722
  win_select_level.ctorParameters = () => [
@@ -9762,10 +9775,12 @@ let win_uploads = class win_uploads {
9762
9775
  this.sovrascrivi_path = '';
9763
9776
  }
9764
9777
  close() { this.dialogRef.close(null); }
9765
- ngOnInit() {
9766
- this.App = this.app_s.getState().wkf_doc_info.uiid_app;
9767
- this.K = this.app_s.getState().wkf_doc_info.uiid_doc;
9768
- this.init(this.App, this.K);
9778
+ ngAfterViewInit() {
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
+ });
9769
9784
  }
9770
9785
  init(p_app, p_k) {
9771
9786
  this.App = p_app;
@@ -9848,7 +9863,7 @@ let win_commento_sel_notif = class win_commento_sel_notif {
9848
9863
  o.arrsel = this.up.getSelArr();
9849
9864
  this.dialogRef.close(o);
9850
9865
  }
9851
- ngOnInit() {
9866
+ ngAfterViewInit() {
9852
9867
  }
9853
9868
  };
9854
9869
  win_commento_sel_notif.ctorParameters = () => [
@@ -10180,7 +10195,7 @@ let win_commenti = class win_commenti {
10180
10195
  }
10181
10196
  });
10182
10197
  }
10183
- ngOnInit() {
10198
+ ngAfterViewInit() {
10184
10199
  }
10185
10200
  ins() {
10186
10201
  this.nota = '';
@@ -10303,7 +10318,7 @@ let win_info_doc = class win_info_doc {
10303
10318
  this.uiid_doc = this.m_appService.getState().wkf_doc_info.uiid_doc;
10304
10319
  this.canale = this.m_appService.getState().wkf_doc_info.canale;
10305
10320
  }
10306
- ngOnInit() {
10321
+ ngAfterViewInit() {
10307
10322
  }
10308
10323
  };
10309
10324
  win_info_doc.ctorParameters = () => [
@@ -10486,7 +10501,7 @@ let win_log = class win_log {
10486
10501
  this.b_ins = true;
10487
10502
  this.title = 'INSERISCI COMMENTO';
10488
10503
  }
10489
- ngOnInit() {
10504
+ ngAfterViewInit() {
10490
10505
  setTimeout(() => {
10491
10506
  this.ric_all();
10492
10507
  }, 200);
@@ -11215,7 +11230,7 @@ let FHGridJSONComponent = class FHGridJSONComponent {
11215
11230
  return item.data.codice;
11216
11231
  return "NA";
11217
11232
  }
11218
- ngOnInit() {
11233
+ ngAfterViewInit() {
11219
11234
  // this.onResize();
11220
11235
  }
11221
11236
  okr(event) {
@@ -13291,8 +13306,10 @@ class dati_aggiuntivi {
13291
13306
  });
13292
13307
  });
13293
13308
  }
13294
- ngOnInit() {
13295
- this.init_engine();
13309
+ ngAfterViewInit() {
13310
+ setTimeout(() => {
13311
+ this.init_engine();
13312
+ });
13296
13313
  }
13297
13314
  setta_info_app(o) {
13298
13315
  this.app_info = o;
@@ -13366,7 +13383,7 @@ let wkf_header_bar = class wkf_header_bar {
13366
13383
  this.dt_agg.open_upload(); }
13367
13384
  open_wkf() { if (this.dt_agg != null)
13368
13385
  this.dt_agg.open_wkf(); }
13369
- ngOnInit() {
13386
+ ngAfterViewInit() {
13370
13387
  }
13371
13388
  };
13372
13389
  wkf_header_bar.ctorParameters = () => [
@@ -13480,25 +13497,27 @@ let FormBuilderComponent = class FormBuilderComponent {
13480
13497
  }
13481
13498
  });
13482
13499
  }
13483
- ngOnInit() {
13484
- try {
13485
- this.dragula.createGroup('bag-items', {
13486
- revertOnSpill: true
13500
+ ngAfterViewInit() {
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;
13487
13520
  });
13488
- }
13489
- catch (e) {
13490
- console.log(e);
13491
- }
13492
- this.dragula
13493
- .drag.call(value => {
13494
- this.change.emit();
13495
- this.edit_obj = null;
13496
- });
13497
- this.dragula
13498
- .drop
13499
- .call(value => {
13500
- this.change.emit();
13501
- this.edit_obj = null;
13502
13521
  });
13503
13522
  }
13504
13523
  };
@@ -13665,7 +13684,7 @@ let FormExecuterComponent = class FormExecuterComponent {
13665
13684
  setStyles(o) {
13666
13685
  return { width: '90%', padding: '15px', margin: '15px', border: '1px solid #3db3cd', 'background-color': "#ECF0F1" };
13667
13686
  }
13668
- ngOnInit() {
13687
+ ngAfterViewInit() {
13669
13688
  }
13670
13689
  };
13671
13690
  FormExecuterComponent.ctorParameters = () => [
@@ -13753,7 +13772,7 @@ let WinAskButtonsComponent = class WinAskButtonsComponent {
13753
13772
  this.title = "";
13754
13773
  this.button_config = [];
13755
13774
  }
13756
- ngOnInit() {
13775
+ ngAfterViewInit() {
13757
13776
  }
13758
13777
  open(o) {
13759
13778
  this.dialogRef.close(o);
@@ -13824,7 +13843,7 @@ let win_show_image = class win_show_image {
13824
13843
  this.imageIndex = 0;
13825
13844
  this.images = [];
13826
13845
  }
13827
- ngOnInit() {
13846
+ ngAfterViewInit() {
13828
13847
  }
13829
13848
  };
13830
13849
  win_show_image.ctorParameters = () => [
@@ -13900,10 +13919,12 @@ let FHViewerComponent = class FHViewerComponent {
13900
13919
  this.notfullScreenEvent = new EventEmitter();
13901
13920
  this.fullScreenEvent = new EventEmitter();
13902
13921
  }
13903
- ngOnInit() {
13904
- const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
13905
- this.config = this.mergeConfig(merged, this.config);
13906
- this.triggerConfigBinding();
13922
+ ngAfterViewInit() {
13923
+ setTimeout(() => {
13924
+ const merged = this.mergeConfig(DEFAULT_CONFIG, this.moduleConfig);
13925
+ this.config = this.mergeConfig(merged, this.config);
13926
+ this.triggerConfigBinding();
13927
+ });
13907
13928
  }
13908
13929
  nextImage($event) {
13909
13930
  console.log('this.src.length ', this.src.length);
@@ -14158,8 +14179,10 @@ let fhimagepreview = class fhimagepreview {
14158
14179
  //this.photo_c.toggleFullscreen()
14159
14180
  this.already_open = true;
14160
14181
  }
14161
- ngOnInit() {
14162
- this.init();
14182
+ ngAfterViewInit() {
14183
+ setTimeout(() => {
14184
+ this.init();
14185
+ });
14163
14186
  }
14164
14187
  openFullscreen() {
14165
14188
  console.log('cc', this.photo_c.imgx);
@@ -14299,9 +14322,9 @@ fhimagepreview = __decorate([
14299
14322
  Component({
14300
14323
  selector: 'fh-image-viewer',
14301
14324
  template: `
14302
-
14325
+
14303
14326
  <image-viewer [hidden]="!m_init" (init)="init()" [preview]="m_preview" (notfullScreenEvent)="closeFullscreen()" (fullScreenEvent)="raise_fullScreenEvent()" [config]="config_photo_big" #photo_c [src]="_u?.image_thumbnail" index="0"></image-viewer>
14304
-
14327
+
14305
14328
  `,
14306
14329
  styles: [`
14307
14330
 
@@ -14400,7 +14423,7 @@ let FHFieldPickListComponent = class FHFieldPickListComponent {
14400
14423
  }
14401
14424
  });
14402
14425
  }
14403
- ngOnInit() {
14426
+ ngAfterViewInit() {
14404
14427
  }
14405
14428
  };
14406
14429
  FHFieldPickListComponent.ctorParameters = () => [
@@ -14541,16 +14564,18 @@ let win_manage_values = class win_manage_values {
14541
14564
  }
14542
14565
  ok() {
14543
14566
  }
14544
- ngOnInit() {
14545
- this.nValori = new Object();
14546
- //this.nValori.valore=0;
14547
- this.nValori.descrizione = '';
14548
- this.nValori.v1 = null;
14549
- this.nValori.v2 = null;
14550
- this.nValori.id_valore = -1;
14551
- this.nValori.v3 = null;
14552
- this.nValori.lingua = null;
14553
- this.ref_user_list();
14567
+ ngAfterViewInit() {
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
+ });
14554
14579
  }
14555
14580
  };
14556
14581
  win_manage_values.ctorParameters = () => [
@@ -14655,14 +14680,16 @@ let FHTableManager = class FHTableManager {
14655
14680
  }
14656
14681
  });
14657
14682
  }
14658
- ngOnInit() {
14659
- if (this.application == "")
14660
- return;
14661
- this.cmb_sel.sql = "SELECT_TABLE_MANAGEMENT";
14662
- this.cmb_sel.types = ['string'];
14663
- this.cmb_sel.values = [this.application];
14664
- this.cmb_sel.fillCombo();
14665
- this.b_init = true;
14683
+ ngAfterViewInit() {
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
+ });
14666
14693
  }
14667
14694
  };
14668
14695
  FHTableManager.ctorParameters = () => [
@@ -14767,8 +14794,10 @@ let win_manage_roles = class win_manage_roles {
14767
14794
  }
14768
14795
  });
14769
14796
  }
14770
- ngOnInit() {
14771
- this.ref_user_list();
14797
+ ngAfterViewInit() {
14798
+ setTimeout(() => {
14799
+ this.ref_user_list();
14800
+ });
14772
14801
  }
14773
14802
  };
14774
14803
  win_manage_roles.ctorParameters = () => [
@@ -14863,14 +14892,16 @@ let FHRoleManager = class FHRoleManager {
14863
14892
  }
14864
14893
  });
14865
14894
  }
14866
- ngOnInit() {
14867
- if (this.application == "")
14868
- return;
14869
- this.cmb_sel.sql = "SELECT_APP_USER_MANAGEMENT";
14870
- this.cmb_sel.types = ['string'];
14871
- this.cmb_sel.values = [this.application];
14872
- this.cmb_sel.fillCombo();
14873
- this.b_init = true;
14895
+ ngAfterViewInit() {
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
+ });
14874
14905
  }
14875
14906
  };
14876
14907
  FHRoleManager.ctorParameters = () => [
@@ -15159,22 +15190,21 @@ let FHComboboxComponentFilter = class FHComboboxComponentFilter {
15159
15190
  this.setByDescri(this.valDef);
15160
15191
  }
15161
15192
  ngAfterViewInit() {
15162
- // console.log("ngAfterViewInit"); console.log(this.init_fill);
15163
- }
15164
- ngOnInit() {
15165
- if (this.init_fill == true) {
15166
- if (this.sql == '') {
15167
- //this.errorMsg="QUERY NON CONFIGURATA";
15168
- 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();
15169
15200
  }
15170
- this.fillCombo();
15171
- }
15172
- else {
15173
- this.errorMsg = "";
15174
- }
15175
- this
15176
- .initend
15177
- .emit();
15201
+ else {
15202
+ this.errorMsg = "";
15203
+ }
15204
+ this
15205
+ .initend
15206
+ .emit();
15207
+ });
15178
15208
  }
15179
15209
  sc() {
15180
15210
  this
@@ -15353,7 +15383,7 @@ let win_insert_commento = class win_insert_commento {
15353
15383
  this.b_edit = false;
15354
15384
  this.title = 'COMMENTI';
15355
15385
  }
15356
- ngOnInit() {
15386
+ ngAfterViewInit() {
15357
15387
  }
15358
15388
  ins() {
15359
15389
  this.nota = '';
@@ -15427,23 +15457,25 @@ let win_user_info = class win_user_info {
15427
15457
  this.isadmin = this.appService.user_isadmin;
15428
15458
  }
15429
15459
  close() { this.dialogRef.close(null); }
15430
- ngOnInit() {
15431
- if (this.isadmin == '1')
15432
- if (this.appService.dev_mode != null)
15433
- if (this.appService.dev_mode == '1')
15434
- this.dev_mode = true;
15435
- let p = new QParam();
15436
- p.sql = "SELECT_ALLEGATI_DOCUMENTO";
15437
- p.types = ['string', 'string'];
15438
- p.values = ['FOTO_UTENTI', this.appService.user];
15439
- this._dataService.doQuery(p).subscribe(data => {
15440
- if (data != null)
15441
- if (data.result_msg == "OK") {
15442
- if (data.result_data.length > 0) {
15443
- this.b_filef = true;
15444
- this.foto_ut = this.appService.COMPANY_SITE_ROOT + '/uploads/' + data.result_data[0].App + '/' + data.result_data[0].K + '/' + data.result_data[0].Filename;
15460
+ ngAfterViewInit() {
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
+ }
15445
15477
  }
15446
- }
15478
+ });
15447
15479
  });
15448
15480
  }
15449
15481
  upd_dev(dv) {
@@ -15608,7 +15640,7 @@ FHHelpButton = __decorate([
15608
15640
  selector: 'FHHelpButton', template: `
15609
15641
 
15610
15642
 
15611
-
15643
+
15612
15644
  <div style="cursor:pointer" ><mat-icon [style.color]="color" [style.background-color]="bk_color" [hidden]="hidden" (click)="open_help()">info</mat-icon></div>
15613
15645
 
15614
15646
 
@@ -15859,14 +15891,6 @@ FHGuard = __decorate([
15859
15891
  __metadata("design:paramtypes", [HttpClient, AuthenticationService, Router, ToastrService, QueryService, SlimLoadingBarService, AppService])
15860
15892
  ], FHGuard);
15861
15893
 
15862
- class dt {
15863
- constructor(y, m, d) {
15864
- this.year = y;
15865
- this.month = m;
15866
- this.day = d;
15867
- }
15868
- }
15869
-
15870
15894
  /*
15871
15895
  * Public API Surface of fluxhub-lib
15872
15896
  */
@@ -15875,5 +15899,5 @@ class dt {
15875
15899
  * Generated bundle index. Do not edit.
15876
15900
  */
15877
15901
 
15878
- export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, dt, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_riassegna_select_user as ɵba, win_sostituisci_utente as ɵbb, win_commento_sel_notif as ɵbc, win_manage_values as ɵbd, win_manage_roles as ɵbe, FHComboboxComponentFilter as ɵbf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
15902
+ export { AppMakerService, AppService, ApprovaGridComponent, AuthenticationService, ComboBoxEditor, CurrencyComponent, FHAutoCompleteComponent, FHComboboxComponent, FHConfirmComponent, FHCurrencyFieldComponent, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHFieldPickListComponent, FHGridComponent, FHGridJSONComponent, FHGuard, FHListComponent, FHListPick, FHLogPanelComponent, FHMdReader, FHNumericFieldComponent, FHPickListComponent, FHRichText, FHRoleManager, FHTableManager, FHTimePickerComponent, FHUploadComponent, FHUploadPanelComponent, FHUserFieldComponent, FHUserPickerComponent, FHWinComboSelect, FSInput, FSResult, FileService, FluxhubLibModule, FormBuilderComponent, FormExecuterComponent, GridService, LocalDBService, NumericEditorComponent, OdbcService, OfficeAutomatorService, QGParam, QGResult, QParam, QResult, QueryService, ReplaceLineBreaks, TextAreaEditor, UtilityService, WinAskButtonsComponent, WinAskNumberComponent, WinAskTextBigComponent, WinAskTextComponent, WinOutputComponent, WinWait, WkfService, dati_aggiuntivi, fhimagepreview, win_insert_commento, win_mappa, win_salva_annulla, win_show_image, win_time_slider, win_user_info, wkf_header_bar, wkfapp, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$2 as ɵa, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$1 as ɵb, win_riassegna_select_user as ɵba, win_sostituisci_utente as ɵbb, win_commento_sel_notif as ɵbc, win_manage_values as ɵbd, win_manage_roles as ɵbe, FHComboboxComponentFilter as ɵbf, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_NUMERIC as ɵc, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR_RT as ɵd, CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR as ɵe, FHHelpButton as ɵf, SafePipe as ɵg, DecimalMask as ɵh, FHValueAccessor as ɵi, MOMENT_DATE_FORMATS as ɵj, MomentDateAdapter as ɵk, win_grid_help as ɵl, HighlightService as ɵm, FHViewerComponent as ɵn, FHGridToolBarComponent as ɵp, win_assegna as ɵq, win_conferma as ɵr, win_select_canale as ɵs, win_select_level as ɵt, win_uploads as ɵu, win_commenti as ɵv, win_info_doc as ɵw, win_log as ɵx, win_recupera_doc as ɵy, win_riassegna_select_level as ɵz };
15879
15903
  //# sourceMappingURL=fluxhub-fluxhub-lib.js.map