@fluxhub/fluxhub-lib 1.0.113 → 1.0.115

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 (87) hide show
  1. package/bundles/fluxhub-fluxhub-lib.umd.js +204 -37
  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/docs/classes/wkfapp.html +66 -0
  6. package/docs/components/ApprovaGridComponent.html +1 -1
  7. package/docs/components/ComboBoxEditor.html +1 -1
  8. package/docs/components/CurrencyComponent.html +1 -1
  9. package/docs/components/DateComponent.html +1 -1
  10. package/docs/components/DtPick.html +1 -1
  11. package/docs/components/FHAutoCompleteComponent.html +1 -1
  12. package/docs/components/FHComboboxComponent.html +1 -1
  13. package/docs/components/FHConfirmComponent.html +1 -1
  14. package/docs/components/FHCurrencyFieldComponent.html +1 -1
  15. package/docs/components/FHDatePickerComponent.html +1 -1
  16. package/docs/components/FHGridComponent.html +507 -296
  17. package/docs/components/FHGridJSONComponent.html +1 -1
  18. package/docs/components/FHGridToolBarComponent.html +797 -0
  19. package/docs/components/FHListComponent.html +1 -1
  20. package/docs/components/FHListPick.html +1 -1
  21. package/docs/components/FHLogPanelComponent.html +1 -1
  22. package/docs/components/FHMdReader.html +1 -1
  23. package/docs/components/FHNumericFieldComponent.html +1 -1
  24. package/docs/components/FHPickListComponent.html +1 -1
  25. package/docs/components/FHRichText.html +1 -1
  26. package/docs/components/FHTimePickerComponent.html +1 -1
  27. package/docs/components/FHUploadComponent.html +1 -1
  28. package/docs/components/FHUploadPanelComponent.html +1 -1
  29. package/docs/components/FHUserFieldComponent.html +1 -1
  30. package/docs/components/FHUserPickerComponent.html +1 -1
  31. package/docs/components/FHWinComboSelect.html +1 -1
  32. package/docs/components/FSInput.html +1 -1
  33. package/docs/components/FSResult.html +1 -1
  34. package/docs/components/NumericEditorComponent.html +1 -1
  35. package/docs/components/QGParam.html +1 -1
  36. package/docs/components/QGResult.html +1 -1
  37. package/docs/components/QParam.html +1 -1
  38. package/docs/components/QResult.html +1 -1
  39. package/docs/components/TextAreaEditor.html +1 -1
  40. package/docs/components/WinAskNumberComponent.html +1 -1
  41. package/docs/components/WinAskTextBigComponent.html +1 -1
  42. package/docs/components/WinAskTextComponent.html +1 -1
  43. package/docs/components/WinOutputComponent.html +1 -1
  44. package/docs/components/WinWait.html +1 -1
  45. package/docs/components/win_assegna.html +1 -1
  46. package/docs/components/win_commenti.html +1 -1
  47. package/docs/components/win_commento_sel_notif.html +1 -1
  48. package/docs/components/win_conferma.html +1 -1
  49. package/docs/components/win_grid_help.html +1 -1
  50. package/docs/components/win_info_doc.html +1 -1
  51. package/docs/components/win_log.html +1 -1
  52. package/docs/components/win_mappa.html +1 -1
  53. package/docs/components/win_recupera_doc.html +1 -1
  54. package/docs/components/win_riassegna_select_level.html +1 -1
  55. package/docs/components/win_riassegna_select_user.html +1 -1
  56. package/docs/components/win_salva_annulla.html +1 -1
  57. package/docs/components/win_select_canale.html +1 -1
  58. package/docs/components/win_select_level.html +1 -1
  59. package/docs/components/win_time_slider.html +1 -1
  60. package/docs/components/win_uploads.html +1 -1
  61. package/docs/coverage.html +18 -2
  62. package/docs/graph/dependencies.svg +546 -534
  63. package/docs/js/menu-wc.js +11 -8
  64. package/docs/js/search/search_index.js +2 -2
  65. package/docs/modules/FluxhubLibModule/dependencies.svg +546 -534
  66. package/docs/modules/FluxhubLibModule.html +549 -534
  67. package/docs/overview.html +547 -535
  68. package/esm2015/fluxhub-fluxhub-lib.js +14 -13
  69. package/esm2015/lib/controls/fhgrid.js +58 -19
  70. package/esm2015/lib/controls/fhgrid_toolbar.js +143 -0
  71. package/esm2015/lib/fluxhub-lib.module.js +5 -3
  72. package/esm2015/lib/wkf_engine/wkfapp.js +19 -1
  73. package/esm5/fluxhub-fluxhub-lib.js +14 -13
  74. package/esm5/lib/controls/fhgrid.js +62 -19
  75. package/esm5/lib/controls/fhgrid_toolbar.js +134 -0
  76. package/esm5/lib/fluxhub-lib.module.js +5 -3
  77. package/esm5/lib/wkf_engine/wkfapp.js +23 -1
  78. package/fesm2015/fluxhub-fluxhub-lib.js +192 -23
  79. package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
  80. package/fesm5/fluxhub-fluxhub-lib.js +190 -23
  81. package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
  82. package/fluxhub-fluxhub-lib.d.ts +13 -12
  83. package/fluxhub-fluxhub-lib.metadata.json +1 -1
  84. package/lib/controls/fhgrid.d.ts +8 -0
  85. package/lib/controls/fhgrid_toolbar.d.ts +19 -0
  86. package/lib/wkf_engine/wkfapp.d.ts +1 -0
  87. package/package.json +1 -1
@@ -94,7 +94,7 @@
94
94
  <td class="col-md-3">styles</td>
95
95
  <td class="col-md-9"><code>
96
96
 
97
- </code></td>
97
+ </code></td>
98
98
  </tr>
99
99
 
100
100
 
@@ -221,6 +221,9 @@
221
221
  <span class="modifier">Public</span>
222
222
  <a href="#deselectAllFiltered">deselectAllFiltered</a>
223
223
  </li>
224
+ <li>
225
+ <a href="#docmd">docmd</a>
226
+ </li>
224
227
  <li>
225
228
  <span class="modifier">Public</span>
226
229
  <a href="#doFill">doFill</a>
@@ -430,6 +433,24 @@
430
433
  <li>
431
434
  <a href="#tbl_name">tbl_name</a>
432
435
  </li>
436
+ <li>
437
+ <a href="#toolbar_custom_commands">toolbar_custom_commands</a>
438
+ </li>
439
+ <li>
440
+ <a href="#toolbar_imp">toolbar_imp</a>
441
+ </li>
442
+ <li>
443
+ <a href="#toolbar_is_Admin">toolbar_is_Admin</a>
444
+ </li>
445
+ <li>
446
+ <a href="#toolbar_is_Ins">toolbar_is_Ins</a>
447
+ </li>
448
+ <li>
449
+ <a href="#toolbar_is_Supervisor">toolbar_is_Supervisor</a>
450
+ </li>
451
+ <li>
452
+ <a href="#toolbar_type">toolbar_type</a>
453
+ </li>
433
454
  <li>
434
455
  <a href="#trova_label">trova_label</a>
435
456
  </li>
@@ -457,6 +478,9 @@
457
478
  <li>
458
479
  <a href="#columndclicked">columndclicked</a>
459
480
  </li>
481
+ <li>
482
+ <a href="#command">command</a>
483
+ </li>
460
484
  <li>
461
485
  <a href="#dclicked">dclicked</a>
462
486
  </li>
@@ -1004,6 +1028,116 @@
1004
1028
  </tr>
1005
1029
  </tbody>
1006
1030
  </table>
1031
+ <table class="table table-sm table-bordered">
1032
+ <tbody>
1033
+ <tr>
1034
+ <td class="col-md-2">
1035
+ <a name="toolbar_custom_commands"></a>
1036
+ <code>toolbar_custom_commands</code>
1037
+ </td>
1038
+ <td class="col-md-10">
1039
+ <p>
1040
+ <em>Default value : </em><code>[]</code>
1041
+ </p>
1042
+ </td>
1043
+ </tr>
1044
+ </tbody>
1045
+ </table>
1046
+ <table class="table table-sm table-bordered">
1047
+ <tbody>
1048
+ <tr>
1049
+ <td class="col-md-2">
1050
+ <a name="toolbar_imp"></a>
1051
+ <code>toolbar_imp</code>
1052
+ </td>
1053
+ <td class="col-md-10">
1054
+ <p>
1055
+ <em>Type :</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
1056
+
1057
+ </p>
1058
+ <p>
1059
+ <em>Default value : </em><code>&#x27;&#x27;</code>
1060
+ </p>
1061
+ </td>
1062
+ </tr>
1063
+ </tbody>
1064
+ </table>
1065
+ <table class="table table-sm table-bordered">
1066
+ <tbody>
1067
+ <tr>
1068
+ <td class="col-md-2">
1069
+ <a name="toolbar_is_Admin"></a>
1070
+ <code>toolbar_is_Admin</code>
1071
+ </td>
1072
+ <td class="col-md-10">
1073
+ <p>
1074
+ <em>Type :</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1075
+
1076
+ </p>
1077
+ <p>
1078
+ <em>Default value : </em><code>false</code>
1079
+ </p>
1080
+ </td>
1081
+ </tr>
1082
+ </tbody>
1083
+ </table>
1084
+ <table class="table table-sm table-bordered">
1085
+ <tbody>
1086
+ <tr>
1087
+ <td class="col-md-2">
1088
+ <a name="toolbar_is_Ins"></a>
1089
+ <code>toolbar_is_Ins</code>
1090
+ </td>
1091
+ <td class="col-md-10">
1092
+ <p>
1093
+ <em>Type :</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1094
+
1095
+ </p>
1096
+ <p>
1097
+ <em>Default value : </em><code>false</code>
1098
+ </p>
1099
+ </td>
1100
+ </tr>
1101
+ </tbody>
1102
+ </table>
1103
+ <table class="table table-sm table-bordered">
1104
+ <tbody>
1105
+ <tr>
1106
+ <td class="col-md-2">
1107
+ <a name="toolbar_is_Supervisor"></a>
1108
+ <code>toolbar_is_Supervisor</code>
1109
+ </td>
1110
+ <td class="col-md-10">
1111
+ <p>
1112
+ <em>Type :</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
1113
+
1114
+ </p>
1115
+ <p>
1116
+ <em>Default value : </em><code>false</code>
1117
+ </p>
1118
+ </td>
1119
+ </tr>
1120
+ </tbody>
1121
+ </table>
1122
+ <table class="table table-sm table-bordered">
1123
+ <tbody>
1124
+ <tr>
1125
+ <td class="col-md-2">
1126
+ <a name="toolbar_type"></a>
1127
+ <code>toolbar_type</code>
1128
+ </td>
1129
+ <td class="col-md-10">
1130
+ <p>
1131
+ <em>Type :</em> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
1132
+
1133
+ </p>
1134
+ <p>
1135
+ <em>Default value : </em><code>&#x27;NONE&#x27;</code>
1136
+ </p>
1137
+ </td>
1138
+ </tr>
1139
+ </tbody>
1140
+ </table>
1007
1141
  <table class="table table-sm table-bordered">
1008
1142
  <tbody>
1009
1143
  <tr>
@@ -1082,6 +1216,20 @@
1082
1216
  </tr>
1083
1217
  </tbody>
1084
1218
  </table>
1219
+ <table class="table table-sm table-bordered">
1220
+ <tbody>
1221
+ <tr>
1222
+ <td class="col-md-2">
1223
+ <a name="command"></a>
1224
+ <code>command</code>
1225
+ </td>
1226
+ <td class="col-md-10">
1227
+ <em><code>$event</code> Type:</em> <code>EventEmitter&lt;any&gt;</code>
1228
+
1229
+ </td>
1230
+ </tr>
1231
+ </tbody>
1232
+ </table>
1085
1233
  <table class="table table-sm table-bordered">
1086
1234
  <tbody>
1087
1235
  <tr>
@@ -1297,6 +1445,66 @@
1297
1445
  </tr>
1298
1446
  </tbody>
1299
1447
  </table>
1448
+ <table class="table table-sm table-bordered">
1449
+ <tbody>
1450
+ <tr>
1451
+ <td class="col-md-4">
1452
+ <a name="docmd"></a>
1453
+ <span class="name">
1454
+ <b>
1455
+ docmd
1456
+ </b>
1457
+ <a href="#docmd"><span class="icon ion-ios-link"></span></a>
1458
+ </span>
1459
+ </td>
1460
+ </tr>
1461
+ <tr>
1462
+ <td class="col-md-4">
1463
+ <code>docmd(o: )</code>
1464
+ </td>
1465
+ </tr>
1466
+
1467
+
1468
+
1469
+
1470
+ <tr>
1471
+ <td class="col-md-4">
1472
+
1473
+ <div class="io-description">
1474
+ <b>Parameters :</b>
1475
+ <table class="params">
1476
+ <thead>
1477
+ <tr>
1478
+ <td>Name</td>
1479
+ <td>Optional</td>
1480
+ </tr>
1481
+ </thead>
1482
+ <tbody>
1483
+ <tr>
1484
+ <td>o</td>
1485
+
1486
+ <td>
1487
+ No
1488
+ </td>
1489
+
1490
+
1491
+ </tr>
1492
+ </tbody>
1493
+ </table>
1494
+ </div>
1495
+ <div>
1496
+ </div>
1497
+ <div class="io-description">
1498
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1499
+
1500
+ </div>
1501
+ <div class="io-description">
1502
+
1503
+ </div>
1504
+ </td>
1505
+ </tr>
1506
+ </tbody>
1507
+ </table>
1300
1508
  <table class="table table-sm table-bordered">
1301
1509
  <tbody>
1302
1510
  <tr>
@@ -3318,235 +3526,238 @@
3318
3526
  <tr>
3319
3527
  <td class="col-md-4">
3320
3528
  <i>Default value : </i><code>{
3321
- //rowCount: ???, - not setting the row count, infinite paging will be used
3322
- getRows: (params: any) &#x3D;&gt; {
3323
-
3324
- // this code should contact the server for rows. however for the purposes of the demo,
3325
- // the data is generated locally, a timer is used to give the experience of
3326
- // an asynchronous call
3327
- // console.log(&#x27;asking for &#x27; + params.startRow + &#x27; to &#x27; + params.endRow);
3328
- //console.log( params.filterModel);// + &#x27; params.filterModel &#x27; +params.filterModel);
3529
+ //rowCount: ???, - not setting the row count, infinite paging will be used
3530
+ getRows: (params: any) &#x3D;&gt; {
3329
3531
 
3330
- this.slimLoadingBarService.start(() &#x3D;&gt; {
3331
- });
3532
+ // this code should contact the server for rows. however for the purposes of the demo,
3533
+ // the data is generated locally, a timer is used to give the experience of
3534
+ // an asynchronous call
3535
+ // console.log(&#x27;asking for &#x27; + params.startRow + &#x27; to &#x27; + params.endRow);
3536
+ //console.log( params.filterModel);// + &#x27; params.filterModel &#x27; +params.filterModel);
3332
3537
 
3333
- var p: QGParam &#x3D; new QGParam();
3334
- p.table &#x3D; this.tbl_name;
3335
- p.table_count &#x3D; this.tbl_name;
3336
- if (this.count_tbl_name !&#x3D; &#x27;&#x27;)
3337
- p.table_count &#x3D; this.count_tbl_name;
3338
- // console.log(params);
3339
- p.num_per_pag &#x3D; params.endRow - params.startRow;
3340
- // this.gridOptions.paginationPageSize &#x3D; this.num_per_pag;
3341
- // this.gridOptions.cacheBlockSize &#x3D; this.num_per_pag;
3342
- // console.log(this.gridOptions.cacheBlockSize );
3343
- // console.log(this.gridOptions.paginationPageSize );
3344
- p.curr_page &#x3D; Math.round(params.startRow / p.num_per_pag);
3345
- if (p.curr_page &#x3D;&#x3D; null) p.curr_page &#x3D; 0;
3346
- if (p.num_per_pag &#x3D;&#x3D; null) p.num_per_pag &#x3D; 100;
3347
- p.sort_field &#x3D; this.sort_field;
3538
+ this.slimLoadingBarService.start(() &#x3D;&gt; {
3539
+ });
3348
3540
 
3349
- if (params.sortModel !&#x3D; null)
3350
- if (params.sortModel.length &gt; 0) {
3351
- p.sort_field &#x3D; &#x27;&#x27;;
3352
- for (var i: number &#x3D; 0; i &lt; params.sortModel.length; i++) {
3353
- if (p.sort_field !&#x3D; &quot;&quot;) p.sort_field &#x3D; p.sort_field + &#x27;,&#x27;;
3354
- if (params.sortModel[i].colId &#x3D;&#x3D; &#x27;autori&#x27;)
3355
- p.sort_field &#x3D; p.sort_field + &quot;case when CHARINDEX(&#x27;&quot; + localStorage.getItem(this.m_appService.COMPANY_KEY + &quot;user&quot;) + &quot;&#x27;,autori)&gt;0 then 1 else 0 end&quot; + &#x27; &#x27; + params.sortModel[i].sort;
3356
- else
3357
- p.sort_field &#x3D; p.sort_field + params.sortModel[i].colId + &#x27; &#x27; + params.sortModel[i].sort;
3541
+ var p: QGParam &#x3D; new QGParam();
3542
+ p.table &#x3D; this.tbl_name;
3543
+ p.table_count &#x3D; this.tbl_name;
3544
+ if (this.count_tbl_name !&#x3D; &#x27;&#x27;)
3545
+ p.table_count &#x3D; this.count_tbl_name;
3546
+ // console.log(params);
3547
+ p.num_per_pag &#x3D; params.endRow - params.startRow;
3548
+ // this.gridOptions.paginationPageSize &#x3D; this.num_per_pag;
3549
+ // this.gridOptions.cacheBlockSize &#x3D; this.num_per_pag;
3550
+ // console.log(this.gridOptions.cacheBlockSize );
3551
+ // console.log(this.gridOptions.paginationPageSize );
3552
+ p.curr_page &#x3D; Math.round(params.startRow / p.num_per_pag);
3553
+ if (p.curr_page &#x3D;&#x3D; null) p.curr_page &#x3D; 0;
3554
+ if (p.num_per_pag &#x3D;&#x3D; null) p.num_per_pag &#x3D; 100;
3555
+ p.sort_field &#x3D; this.sort_field;
3358
3556
 
3359
- }
3360
- }
3557
+ if (params.sortModel !&#x3D; null)
3558
+ if (params.sortModel.length &gt; 0) {
3559
+ p.sort_field &#x3D; &#x27;&#x27;;
3560
+ for (var i: number &#x3D; 0; i &lt; params.sortModel.length; i++) {
3561
+ if (p.sort_field !&#x3D; &quot;&quot;) p.sort_field &#x3D; p.sort_field + &#x27;,&#x27;;
3562
+ if (params.sortModel[i].colId &#x3D;&#x3D; &#x27;autori&#x27;)
3563
+ p.sort_field &#x3D; p.sort_field + &quot;case when CHARINDEX(&#x27;&quot; + localStorage.getItem(this.m_appService.COMPANY_KEY + &quot;user&quot;) + &quot;&#x27;,autori)&gt;0 then 1 else 0 end&quot; + &#x27; &#x27; + params.sortModel[i].sort;
3564
+ else
3565
+ p.sort_field &#x3D; p.sort_field + params.sortModel[i].colId + &#x27; &#x27; + params.sortModel[i].sort;
3361
3566
 
3567
+ }
3568
+ }
3362
3569
 
3363
- p.system_dest &#x3D; this.system_dest;
3364
- p.field &#x3D; this.fields;
3365
- // console.log( p.field );
3366
- if (this.filters !&#x3D; null)
3367
- p.filter &#x3D; this.filters;
3368
3570
 
3369
- if (this.fix_flt !&#x3D; &quot;&quot;) {
3370
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3371
- p.filter &#x3D; p.filter + &#x27; (&#x27; + this.fix_flt + &#x27; )&#x27;;
3372
- }
3373
- if (this.fix_flt_temp !&#x3D; &quot;&quot;) {
3374
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3375
- p.filter &#x3D; p.filter + &#x27; (&#x27; + this.fix_flt_temp + &#x27; )&#x27;;
3376
- }
3571
+ p.system_dest &#x3D; this.system_dest;
3572
+ p.field &#x3D; this.fields;
3573
+ // console.log( p.field );
3574
+ if (this.filters !&#x3D; null)
3575
+ p.filter &#x3D; this.filters;
3377
3576
 
3378
- // console.log(&#x27;Filter model&#x27;);
3379
- //console.log(params.filterModel);
3380
- if (params.filterModel !&#x3D; null) {
3381
- // console.log(&#x27;Filtri&#x27;);
3382
- for (var key in params.filterModel) {
3383
- // console.log(key);
3384
- // if (p.hasOwnProperty(key)) {
3385
- // console.log( params.filterModel[key]);
3386
- if (params.filterModel[key].type !&#x3D; null) {
3387
- if (params.filterModel[key].filter !&#x3D; null) {
3388
- this.show_pulisci_filtri &#x3D; true;
3389
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3390
- if (params.filterModel[key].filterType &#x3D;&#x3D; &#x27;number&#x27;) {
3391
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt; &#x27; + params.filterModel[key].filter;
3392
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &#x3D; &#x27; + params.filterModel[key].filter;
3393
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&gt; &#x27; + params.filterModel[key].filter;
3394
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt; &#x27; + params.filterModel[key].filter;
3395
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; &#x27; + params.filterModel[key].filter;
3396
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; &#x27; + params.filterModel[key].filter;
3397
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;inRange&quot;) p.filter &#x3D; p.filter + &#x27; (&#x27; + key + &#x27; &gt;&#x3D; &#x27; + params.filterModel[key].filter + &#x27; and &#x27; + key + &#x27; &lt;&#x3D; &#x27; + params.filterModel[key].filterTo + &#x27;)&#x27;;
3577
+ if (this.fix_flt !&#x3D; &quot;&quot;) {
3578
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3579
+ p.filter &#x3D; p.filter + &#x27; (&#x27; + this.fix_flt + &#x27; )&#x27;;
3580
+ }
3581
+ if (this.fix_flt_temp !&#x3D; &quot;&quot;) {
3582
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3583
+ p.filter &#x3D; p.filter + &#x27; (&#x27; + this.fix_flt_temp + &#x27; )&#x27;;
3584
+ }
3585
+ let b_filter:boolean&#x3D;false;
3586
+ // console.log(&#x27;Filter model&#x27;);
3587
+ //console.log(params.filterModel);
3588
+ if (params.filterModel !&#x3D; null) {
3589
+ // console.log(&#x27;Filtri&#x27;);
3590
+ for (let key in params.filterModel) {
3591
+ // console.log(key);
3592
+ // if (p.hasOwnProperty(key)) {
3593
+ // console.log( params.filterModel[key]);
3594
+ if (params.filterModel[key].type !&#x3D; null) {
3595
+ if (params.filterModel[key].filter !&#x3D; null) {
3596
+ this.show_pulisci_filtri &#x3D; true;
3597
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3598
+ b_filter&#x3D;true;
3599
+ if (params.filterModel[key].filterType &#x3D;&#x3D; &#x27;number&#x27;) {
3600
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt; &#x27; + params.filterModel[key].filter;
3601
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &#x3D; &#x27; + params.filterModel[key].filter;
3602
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&gt; &#x27; + params.filterModel[key].filter;
3603
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt; &#x27; + params.filterModel[key].filter;
3604
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; &#x27; + params.filterModel[key].filter;
3605
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; &#x27; + params.filterModel[key].filter;
3606
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;inRange&quot;) p.filter &#x3D; p.filter + &#x27; (&#x27; + key + &#x27; &gt;&#x3D; &#x27; + params.filterModel[key].filter + &#x27; and &#x27; + key + &#x27; &lt;&#x3D; &#x27; + params.filterModel[key].filterTo + &#x27;)&#x27;;
3398
3607
 
3399
- }
3400
- else {
3401
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;contains&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3402
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;startsWith&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3403
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) &#x3D; \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3404
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;notContains&quot;) p.filter &#x3D; p.filter + &#x27;not upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3608
+ }
3609
+ else {
3610
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;contains&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3611
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;startsWith&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3612
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) &#x3D; \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3613
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;notContains&quot;) p.filter &#x3D; p.filter + &#x27;not upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3405
3614
 
3406
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) &lt;&gt; \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;\&#x27;&#x27;;
3407
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;endsWith&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;\&#x27;&#x27;;
3408
- // if(params.filterModel[key].type&#x3D;&#x3D;&quot;startsWith&quot;) p.filter &#x3D; p.filter +&#x27; upper(&#x27;+ key + &#x27;) like \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3409
- }
3615
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) &lt;&gt; \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;\&#x27;&#x27;;
3616
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;endsWith&quot;) p.filter &#x3D; p.filter + &#x27; upper(&#x27; + key + &#x27;) like \&#x27;%&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;\&#x27;&#x27;;
3617
+ // if(params.filterModel[key].type&#x3D;&#x3D;&quot;startsWith&quot;) p.filter &#x3D; p.filter +&#x27; upper(&#x27;+ key + &#x27;) like \&#x27;&#x27; + params.filterModel[key].filter.replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;).toUpperCase() + &#x27;%\&#x27;&#x27;;
3618
+ }
3410
3619
 
3411
- }
3412
- if (params.filterModel[key].dateTo !&#x3D; null || params.filterModel[key].dateFrom !&#x3D; null) {
3413
- this.show_pulisci_filtri &#x3D; true;
3414
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3415
- p.filter &#x3D; p.filter + &#x27; (&#x27;;
3416
- if (params.filterModel[key].dateFrom !&#x3D; null &amp;&amp; params.filterModel[key].dateTo !&#x3D; null) p.filter &#x3D; p.filter + key + &quot;&gt;&#x3D;&#x27;&quot; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &quot;&#x27;&quot;
3417
- if (params.filterModel[key].dateTo !&#x3D; null) {
3418
- if (params.filterModel[key].dateFrom !&#x3D; null) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3419
- p.filter &#x3D; p.filter + key + &quot;&lt;&#x3D;&#x27;&quot; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateTo, 1)) + &quot;&#x27;&quot;
3420
- } else if (params.filterModel[key].dateFrom !&#x3D; null) {
3421
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3422
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; (&#x27; + key + &#x27; &gt;&#x3D;\&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27; and &#x27; + key + &#x27; &lt;&#x3D;\&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27; 23:59:00\&#x27;)&#x27;;
3423
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&gt; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3424
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3425
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3426
- if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3620
+ }
3621
+ if (params.filterModel[key].dateTo !&#x3D; null || params.filterModel[key].dateFrom !&#x3D; null) {
3622
+ b_filter&#x3D;true;
3623
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3624
+ p.filter &#x3D; p.filter + &#x27; (&#x27;;
3625
+ if (params.filterModel[key].dateFrom !&#x3D; null &amp;&amp; params.filterModel[key].dateTo !&#x3D; null) p.filter &#x3D; p.filter + key + &quot;&gt;&#x3D;&#x27;&quot; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &quot;&#x27;&quot;
3626
+ if (params.filterModel[key].dateTo !&#x3D; null) {
3627
+ if (params.filterModel[key].dateFrom !&#x3D; null) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3628
+ p.filter &#x3D; p.filter + key + &quot;&lt;&#x3D;&#x27;&quot; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateTo, 1)) + &quot;&#x27;&quot;
3629
+ } else if (params.filterModel[key].dateFrom !&#x3D; null) {
3630
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3631
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;equals&quot;) p.filter &#x3D; p.filter + &#x27; (&#x27; + key + &#x27; &gt;&#x3D;\&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27; and &#x27; + key + &#x27; &lt;&#x3D;\&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27; 23:59:00\&#x27;)&#x27;;
3632
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;notEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&gt; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3633
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThan&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3634
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;lessThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &lt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3635
+ if (params.filterModel[key].type &#x3D;&#x3D; &quot;greaterThanOrEqual&quot;) p.filter &#x3D; p.filter + &#x27; &#x27; + key + &#x27; &gt;&#x3D; \&#x27;&#x27; + this.uti_s.sql_date(this.uti_s.string2date(params.filterModel[key].dateFrom, 1)) + &#x27;\&#x27;&#x27;;
3427
3636
 
3428
3637
 
3429
- }
3430
- p.filter &#x3D; p.filter + &#x27; )&#x27;;
3638
+ }
3639
+ p.filter &#x3D; p.filter + &#x27; )&#x27;;
3431
3640
 
3432
- }
3433
- } else {
3434
- // if(params.filterModel[key].length&gt;0)p.filter&#x3D; p.filter+&#x27; and &#x27;;
3435
- this.show_pulisci_filtri &#x3D; true;
3436
- var sq: String &#x3D; &quot;&quot;;
3437
- for (var i: number &#x3D; 0; i &lt; params.filterModel[key].length; i++)
3438
- if (params.filterModel[key][i] !&#x3D; null) {
3439
- if (sq !&#x3D; &quot;&quot;) sq &#x3D; sq + &#x27;,&#x27;;
3440
- sq &#x3D; sq + &#x27;\&#x27;&#x27; + params.filterModel[key][i].replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;) + &#x27;\&#x27;&#x27;;
3441
- }
3442
- if (sq !&#x3D; &#x27;&#x27;) {
3443
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3444
- p.filter &#x3D; p.filter + key + &#x27; in (&#x27; + sq + &#x27;)&#x27;;
3445
- }
3446
- else {
3447
- if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and 1&#x3D;0&#x27;;
3448
- }
3449
- }
3450
- // }
3451
- }
3641
+ }
3642
+ } else {
3643
+ // if(params.filterModel[key].length&gt;0)p.filter&#x3D; p.filter+&#x27; and &#x27;;
3644
+ let sq: String &#x3D; &quot;&quot;;
3645
+ for (let i: number &#x3D; 0; i &lt; params.filterModel[key].length; i++)
3646
+ if (params.filterModel[key][i] !&#x3D; null) {
3647
+ if (sq !&#x3D; &quot;&quot;) sq &#x3D; sq + &#x27;,&#x27;;
3648
+ sq &#x3D; sq + &#x27;\&#x27;&#x27; + params.filterModel[key][i].replace(&#x27;\&#x27;&#x27;, &#x27;\&#x27;\&#x27;&#x27;) + &#x27;\&#x27;&#x27;;
3649
+ }
3650
+ if (sq !&#x3D; &#x27;&#x27;) {
3651
+ b_filter&#x3D;true;
3652
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and &#x27;;
3653
+ p.filter &#x3D; p.filter + key + &#x27; in (&#x27; + sq + &#x27;)&#x27;;
3654
+ }
3655
+ else {
3656
+ b_filter&#x3D;true;
3657
+ if (p.filter !&#x3D; &quot;&quot;) p.filter &#x3D; p.filter + &#x27; and 1&#x3D;0&#x27;;
3658
+ }
3659
+ }
3660
+ // }
3661
+ }
3452
3662
 
3453
- }
3663
+ }
3664
+ this.show_pulisci_filtri &#x3D; b_filter;
3454
3665
 
3455
3666
  //p.num_per_pag&#x3D;5000;
3456
- // console.log(this._gridservice);
3457
- this.str_curr_q_p &#x3D; &quot;&quot;;
3458
- if (p.filter !&#x3D; &quot;&quot;)
3459
- this.str_curr_q_p &#x3D; &quot;where &quot; + p.filter;
3460
- if (p.sort_field !&#x3D; &quot;&quot;)
3461
- this.str_curr_q_p &#x3D; this.str_curr_q_p + &quot; order by &quot; + p.sort_field;
3462
- this.curr_filter &#x3D; p.filter;
3667
+ // console.log(this._gridservice);
3668
+ this.str_curr_q_p &#x3D; &quot;&quot;;
3669
+ if (p.filter !&#x3D; &quot;&quot;)
3670
+ this.str_curr_q_p &#x3D; &quot;where &quot; + p.filter;
3671
+ if (p.sort_field !&#x3D; &quot;&quot;)
3672
+ this.str_curr_q_p &#x3D; this.str_curr_q_p + &quot; order by &quot; + p.sort_field;
3673
+ this.curr_filter &#x3D; p.filter;
3463
3674
 
3464
- this._gridservice.doQuery(p, true, this.end_point).subscribe(
3465
- data &#x3D;&gt; {
3466
- let ok_op: boolean &#x3D; false;
3467
- if (data !&#x3D; null)
3468
- if (data.result_msg &#x3D;&#x3D; &quot;OK&quot;) {
3469
- ok_op &#x3D; true;
3470
- // console.log(data.result_data);
3675
+ this._gridservice.doQuery(p, true, this.end_point).subscribe(
3676
+ data &#x3D;&gt; {
3677
+ let ok_op: boolean &#x3D; false;
3678
+ if (data !&#x3D; null)
3679
+ if (data.result_msg &#x3D;&#x3D; &quot;OK&quot;) {
3680
+ ok_op &#x3D; true;
3681
+ // console.log(data.result_data);
3471
3682
 
3472
- params.successCallback(data.result_data, data.count);
3683
+ params.successCallback(data.result_data, data.count);
3473
3684
 
3474
- this.b_init &#x3D; true;
3475
- this.myData &#x3D; data.result_data.slice();
3476
- this.num_r &#x3D; data.count;
3477
- this.slimLoadingBarService.complete();
3478
- this.fill_end.emit();
3685
+ this.b_init &#x3D; true;
3686
+ this.myData &#x3D; data.result_data.slice();
3687
+ this.num_r &#x3D; data.count;
3688
+ this.slimLoadingBarService.complete();
3689
+ this.fill_end.emit();
3479
3690
 
3480
- // console.log(&quot;end&quot;);
3481
- // console.log(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;));
3482
- localStorage.setItem(this.grid_key + &#x27;_POS1&#x27;, JSON.stringify(p));
3483
- if (localStorage.getItem(this.grid_key + &#x27;_POS2&#x27;) !&#x3D; null)
3484
- if (this.gridOptions !&#x3D; null)
3485
- if (this.gridOptions.api !&#x3D; null)
3486
- this.gridOptions.api.forEachNode((node) &#x3D;&gt; {
3487
- // console.log(node)
3691
+ // console.log(&quot;end&quot;);
3692
+ // console.log(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;));
3693
+ localStorage.setItem(this.grid_key + &#x27;_POS1&#x27;, JSON.stringify(p));
3694
+ if (localStorage.getItem(this.grid_key + &#x27;_POS2&#x27;) !&#x3D; null)
3695
+ if (this.gridOptions !&#x3D; null)
3696
+ if (this.gridOptions.api !&#x3D; null)
3697
+ this.gridOptions.api.forEachNode((node) &#x3D;&gt; {
3698
+ // console.log(node)
3488
3699
 
3489
- if (this.getRowNodeId(node) &#x3D;&#x3D;&#x3D; localStorage.getItem(this.grid_key + &#x27;_POS2&#x27;)) {
3700
+ if (this.getRowNodeId(node) &#x3D;&#x3D;&#x3D; localStorage.getItem(this.grid_key + &#x27;_POS2&#x27;)) {
3490
3701
 
3491
- node.setSelected(true);
3492
- localStorage.removeItem(this.grid_key + &#x27;_POS2&#x27;);
3493
- }
3494
- });
3495
- let b_mantieni_ck: boolean &#x3D; false;
3496
- if (this.toggle_mantieni !&#x3D; null) b_mantieni_ck &#x3D; this.toggle_mantieni.checked;
3702
+ node.setSelected(true);
3703
+ localStorage.removeItem(this.grid_key + &#x27;_POS2&#x27;);
3704
+ }
3705
+ });
3706
+ let b_mantieni_ck: boolean &#x3D; false;
3707
+ if (this.toggle_mantieni !&#x3D; null) b_mantieni_ck &#x3D; this.toggle_mantieni.checked;
3497
3708
 
3498
- if (this.no_pref &amp;&amp; !this.b_init1) {
3499
- this.autoSizeAll();
3709
+ if (this.no_pref &amp;&amp; !this.b_init1) {
3710
+ this.autoSizeAll();
3500
3711
 
3501
- }
3502
- this.b_init1 &#x3D; true;
3503
- this.ensure_visible();
3504
- if (!this.show_buttons &amp;&amp; this.first_ref) {
3505
- setTimeout(() &#x3D;&gt; {
3506
- this.autoSizeAll();
3507
- }, 300);
3508
- this.first_ref &#x3D; false;
3712
+ }
3713
+ this.b_init1 &#x3D; true;
3714
+ this.ensure_visible();
3715
+ if (!this.show_buttons &amp;&amp; this.first_ref) {
3716
+ setTimeout(() &#x3D;&gt; {
3717
+ this.autoSizeAll();
3718
+ }, 300);
3719
+ this.first_ref &#x3D; false;
3509
3720
 
3510
3721
 
3511
- } else if (localStorage.getItem(this.grid_key + &#x27;_COLS&#x27;) &#x3D;&#x3D; null)
3512
- setTimeout(() &#x3D;&gt; {
3513
- this.autoSizeAll();
3514
- }, 300);
3515
- //console.log(&#x27;xxxxxxxxxxxxxxxxxxx&#x27;);
3516
- // console.log(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3517
- //if(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;]!&#x3D;null)
3722
+ } else if (localStorage.getItem(this.grid_key + &#x27;_COLS&#x27;) &#x3D;&#x3D; null)
3723
+ setTimeout(() &#x3D;&gt; {
3724
+ this.autoSizeAll();
3725
+ }, 300);
3726
+ //console.log(&#x27;xxxxxxxxxxxxxxxxxxx&#x27;);
3727
+ // console.log(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3728
+ //if(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;]!&#x3D;null)
3518
3729
 
3519
3730
 
3520
- /*
3731
+ /*
3521
3732
 
3522
- this.gridOptions.api.forEachNode( (node) &#x3D;&gt;{
3523
- // select the node
3524
- // console.log(node.id+&#x27; &#x27;+this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3525
- if(node.rowIndex&#x3D;&#x3D;parseInt(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;))){
3526
- // console.log(node.id+&#x27; &#x27;+this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3527
- node.setSelected(true);
3733
+ this.gridOptions.api.forEachNode( (node) &#x3D;&gt;{
3734
+ // select the node
3735
+ // console.log(node.id+&#x27; &#x27;+this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3736
+ if(node.rowIndex&#x3D;&#x3D;parseInt(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;))){
3737
+ // console.log(node.id+&#x27; &#x27;+this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;].id);
3738
+ node.setSelected(true);
3528
3739
 
3529
- }}*/
3740
+ }}*/
3530
3741
 
3531
- // if(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;]!&#x3D;null)
3532
- //this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;))).setSelected(true);
3742
+ // if(this.m_appService.getState().grid_obj[this.grid_key+&#x27;_NODE&#x27;]!&#x3D;null)
3743
+ //this.gridOptions.api.get(parseInt(localStorage.getItem(this.grid_key+&#x27;_POS&#x27;))).setSelected(true);
3533
3744
 
3534
- // console.log(this.myData);
3535
- }
3536
- if (!ok_op) {
3745
+ // console.log(this.myData);
3746
+ }
3747
+ if (!ok_op) {
3537
3748
 
3538
- this.errorMsg &#x3D; data.msg + &#x27; [&#x27; + data.result_msg + &#x27;]&#x27;;
3749
+ this.errorMsg &#x3D; data.msg + &#x27; [&#x27; + data.result_msg + &#x27;]&#x27;;
3539
3750
 
3540
- }
3541
- },
3542
- err &#x3D;&gt; {
3543
- this.errorMsg &#x3D; &quot;ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU&#x27; TARDI&quot;;
3544
- });
3751
+ }
3752
+ },
3753
+ err &#x3D;&gt; {
3754
+ this.errorMsg &#x3D; &quot;ERRORE DI CONNESSIONE CON IL SERVER. RITENTARE PIU&#x27; TARDI&quot;;
3755
+ });
3545
3756
 
3546
- // this.gridOptions.api.setDatasource(this.dataSource);
3757
+ // this.gridOptions.api.setDatasource(this.dataSource);
3547
3758
 
3548
- }
3549
- }</code>
3759
+ }
3760
+ }</code>
3550
3761
  </td>
3551
3762
  </tr>
3552
3763
 
@@ -3707,114 +3918,114 @@
3707
3918
  <tr>
3708
3919
  <td class="col-md-4">
3709
3920
  <i>Default value : </i><code>&lt;GridOptions&gt;{
3710
- debug: false,
3711
- headerHeight: this.header_h,
3712
- floatingFilter: true,
3713
- enableRangeSelection: true,
3714
- enableServerSideSorting: true,
3715
- enableServerSideFilter: true,
3716
- enableColResize: true,
3921
+ debug: false,
3922
+ headerHeight: this.header_h,
3923
+ floatingFilter: true,
3924
+ enableRangeSelection: true,
3925
+ enableServerSideSorting: true,
3926
+ enableServerSideFilter: true,
3927
+ enableColResize: true,
3717
3928
 
3718
- rowSelection: &#x27;multiple&#x27;,
3719
- rowDeselection: false,
3720
- getContextMenuItems: () &#x3D;&gt; this.getContextMenuItems(),
3721
- allowContextMenuWithControlKey: true,
3722
- rowModelType: &#x27;infinite&#x27;,
3929
+ rowSelection: &#x27;multiple&#x27;,
3930
+ rowDeselection: false,
3931
+ getContextMenuItems: () &#x3D;&gt; this.getContextMenuItems(),
3932
+ allowContextMenuWithControlKey: true,
3933
+ rowModelType: &#x27;infinite&#x27;,
3723
3934
 
3724
- localeText: {
3725
- // for filter panel
3726
- page: &#x27;pagina&#x27;,
3727
- more: &#x27;altre&#x27;,
3728
- to: &#x27;a&#x27;,
3729
- of: &#x27;di&#x27;,
3730
- next: &#x27;prossima&#x27;,
3731
- last: &#x27;ultima&#x27;,
3732
- first: &#x27;prima&#x27;,
3733
- previous: &#x27;precedente&#x27;,
3734
- loadingOoo: &#x27;Caricamento...&#x27;,
3735
- // for set filter
3736
- selectAll: &#x27;Seleziona Tutto&#x27;,
3737
- searchOoo: &#x27;Trova...&#x27;,
3738
- blanks: &#x27;Vuoto&#x27;,
3739
- // for number filter and text filter
3740
- filterOoo: &#x27;Filtro...&#x27;,
3741
- applyFilter: &#x27;Applica Filtro...&#x27;,
3742
- // for number filter
3743
- equals: &#x27;Uguale&#x27;,
3744
- notEqual: &#x27;Diverso&#x27;,
3745
- lessThan: &#x27;Minore&#x27;,
3746
- greaterThan: &#x27;Maggiore&#x27;,
3747
- // for text filter
3748
- notContains: &#x27;Non Contiene&#x27;,
3749
- contains: &#x27;Contiene&#x27;,
3750
- startsWith: &#x27;Inizia Con&#x27;,
3751
- endsWith: &#x27;Finisce Con&#x27;,
3752
- // the header of the default group column
3753
- group: &#x27;Gruppo&#x27;,
3754
- // tool panel
3755
- columns: &#x27;Colonne&#x27;,
3756
- rowGroupColumns: &#x27;Colonne Pivot&#x27;,
3757
- rowGroupColumnsEmptyMessage: &#x27;trascina le colonne per raggrupparle&#x27;,
3758
- valueColumns: &#x27;Colonne Valore&#x27;,
3759
- pivotMode: &#x27;Modalità Pivot&#x27;,
3760
- groups: &#x27;Gruppi&#x27;,
3761
- values: &#x27;Valori&#x27;,
3762
- pivots: &#x27;Pivots&#x27;,
3763
- valueColumnsEmptyMessage: &#x27;trascina le colonne per aggreare&#x27;,
3764
- pivotColumnsEmptyMessage: &#x27;trascina le colonne per pivot&#x27;,
3765
- // other
3766
- noRowsToShow: &#x27;nessun dato&#x27;,
3767
- // enterprise menu
3768
- pinColumn: &#x27;Sposta Colonna&#x27;,
3769
- valueAggregation: &#x27;Aggregazione&#x27;,
3770
- autosizeThiscolumn: &#x27;Autosize colonna&#x27;,
3771
- autosizeAllColumns: &#x27;Autosize tutte le colonne&#x27;,
3772
- groupBy: &#x27;Raggruppa per&#x27;,
3773
- ungroupBy: &#x27;Spacca per&#x27;,
3774
- resetColumns: &#x27;Resetta queste colonna&#x27;,
3775
- expandAll: &#x27;Espandi&#x27;,
3776
- collapseAll: &#x27;Chiudi&#x27;,
3777
- toolPanel: &#x27;Impostazioni&#x27;,
3778
- // enterprise menu pinning
3779
- pinLeft: &#x27;Sposta &lt;&lt;&#x27;,
3780
- pinRight: &#x27;Sposta &gt;&gt;&#x27;,
3781
- noPin: &#x27;Sposta &lt;&gt;&#x27;,
3782
- // enterprise menu aggregation and status panel
3783
- sum: &#x27;Somma&#x27;,
3784
- min: &#x27;Minimo&#x27;,
3785
- max: &#x27;Massimo&#x27;,
3935
+ localeText: {
3936
+ // for filter panel
3937
+ page: &#x27;pagina&#x27;,
3938
+ more: &#x27;altre&#x27;,
3939
+ to: &#x27;a&#x27;,
3940
+ of: &#x27;di&#x27;,
3941
+ next: &#x27;prossima&#x27;,
3942
+ last: &#x27;ultima&#x27;,
3943
+ first: &#x27;prima&#x27;,
3944
+ previous: &#x27;precedente&#x27;,
3945
+ loadingOoo: &#x27;Caricamento...&#x27;,
3946
+ // for set filter
3947
+ selectAll: &#x27;Seleziona Tutto&#x27;,
3948
+ searchOoo: &#x27;Trova...&#x27;,
3949
+ blanks: &#x27;Vuoto&#x27;,
3950
+ // for number filter and text filter
3951
+ filterOoo: &#x27;Filtro...&#x27;,
3952
+ applyFilter: &#x27;Applica Filtro...&#x27;,
3953
+ // for number filter
3954
+ equals: &#x27;Uguale&#x27;,
3955
+ notEqual: &#x27;Diverso&#x27;,
3956
+ lessThan: &#x27;Minore&#x27;,
3957
+ greaterThan: &#x27;Maggiore&#x27;,
3958
+ // for text filter
3959
+ notContains: &#x27;Non Contiene&#x27;,
3960
+ contains: &#x27;Contiene&#x27;,
3961
+ startsWith: &#x27;Inizia Con&#x27;,
3962
+ endsWith: &#x27;Finisce Con&#x27;,
3963
+ // the header of the default group column
3964
+ group: &#x27;Gruppo&#x27;,
3965
+ // tool panel
3966
+ columns: &#x27;Colonne&#x27;,
3967
+ rowGroupColumns: &#x27;Colonne Pivot&#x27;,
3968
+ rowGroupColumnsEmptyMessage: &#x27;trascina le colonne per raggrupparle&#x27;,
3969
+ valueColumns: &#x27;Colonne Valore&#x27;,
3970
+ pivotMode: &#x27;Modalità Pivot&#x27;,
3971
+ groups: &#x27;Gruppi&#x27;,
3972
+ values: &#x27;Valori&#x27;,
3973
+ pivots: &#x27;Pivots&#x27;,
3974
+ valueColumnsEmptyMessage: &#x27;trascina le colonne per aggreare&#x27;,
3975
+ pivotColumnsEmptyMessage: &#x27;trascina le colonne per pivot&#x27;,
3976
+ // other
3977
+ noRowsToShow: &#x27;nessun dato&#x27;,
3978
+ // enterprise menu
3979
+ pinColumn: &#x27;Sposta Colonna&#x27;,
3980
+ valueAggregation: &#x27;Aggregazione&#x27;,
3981
+ autosizeThiscolumn: &#x27;Autosize colonna&#x27;,
3982
+ autosizeAllColumns: &#x27;Autosize tutte le colonne&#x27;,
3983
+ groupBy: &#x27;Raggruppa per&#x27;,
3984
+ ungroupBy: &#x27;Spacca per&#x27;,
3985
+ resetColumns: &#x27;Resetta queste colonna&#x27;,
3986
+ expandAll: &#x27;Espandi&#x27;,
3987
+ collapseAll: &#x27;Chiudi&#x27;,
3988
+ toolPanel: &#x27;Impostazioni&#x27;,
3989
+ // enterprise menu pinning
3990
+ pinLeft: &#x27;Sposta &lt;&lt;&#x27;,
3991
+ pinRight: &#x27;Sposta &gt;&gt;&#x27;,
3992
+ noPin: &#x27;Sposta &lt;&gt;&#x27;,
3993
+ // enterprise menu aggregation and status panel
3994
+ sum: &#x27;Somma&#x27;,
3995
+ min: &#x27;Minimo&#x27;,
3996
+ max: &#x27;Massimo&#x27;,
3786
3997
 
3787
- none: &#x27;Nessuno&#x27;,
3788
- count: &#x27;Numero&#x27;,
3789
- average: &#x27;Media&#x27;,
3790
- // standard menu
3791
- copy: &#x27;Copia&#x27;,
3792
- ctrlC: &#x27;ctrl n C&#x27;,
3793
- paste: &#x27;Incolla&#x27;,
3794
- ctrlV: &#x27;ctrl n C&#x27;
3795
- },
3796
- getRowNodeId: function (item) {
3797
- // console.log(item);
3798
- if (item.ID !&#x3D; null)
3799
- return String(item.ID);
3800
- if (item.id !&#x3D; null)
3801
- return String(item.id);
3802
- if (item.uiid !&#x3D; null)
3803
- return item.uiid;
3804
- if (item.codice !&#x3D; null)
3805
- return item.codice;
3806
- if (item.id_doc !&#x3D; null)
3807
- return item.id_doc;
3808
- if (item.notesid !&#x3D; null)
3809
- return item.notesid;
3810
- if (item.ord !&#x3D; null)
3811
- return item.ord;
3998
+ none: &#x27;Nessuno&#x27;,
3999
+ count: &#x27;Numero&#x27;,
4000
+ average: &#x27;Media&#x27;,
4001
+ // standard menu
4002
+ copy: &#x27;Copia&#x27;,
4003
+ ctrlC: &#x27;ctrl n C&#x27;,
4004
+ paste: &#x27;Incolla&#x27;,
4005
+ ctrlV: &#x27;ctrl n C&#x27;
4006
+ },
4007
+ getRowNodeId: function (item) {
4008
+ // console.log(item);
4009
+ if (item.ID !&#x3D; null)
4010
+ return String(item.ID);
4011
+ if (item.id !&#x3D; null)
4012
+ return String(item.id);
4013
+ if (item.uiid !&#x3D; null)
4014
+ return item.uiid;
4015
+ if (item.codice !&#x3D; null)
4016
+ return item.codice;
4017
+ if (item.id_doc !&#x3D; null)
4018
+ return item.id_doc;
4019
+ if (item.notesid !&#x3D; null)
4020
+ return item.notesid;
4021
+ if (item.ord !&#x3D; null)
4022
+ return item.ord;
3812
4023
 
3813
4024
 
3814
- }
4025
+ }
3815
4026
 
3816
4027
 
3817
- }</code>
4028
+ }</code>
3818
4029
  </td>
3819
4030
  </tr>
3820
4031
 
@@ -4182,8 +4393,8 @@
4182
4393
  <script src="../js/libs/htmlparser.js"></script>
4183
4394
  <script src="../js/libs/deep-iterator.js"></script>
4184
4395
  <script>
4185
- var COMPONENT_TEMPLATE = '<div><table [hidden]=\'!show_buttons\' style="width: 100%;height: 15%;"> <tr> <td [hidden]=\'this.m_appService.getState().pageFullscreen\'><h5>{{num_r+label_elementi}}</h5> </td> <td style="vertical-align:middle"> <input matInput [placeholder]="trova_label" (keydown)="keyDownFunctioncl($event)" [(ngModel)]="ric_libera" style="width:200px"> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="!this.m_appService.getState( ).mobile"> <button *ngIf="show_pulisci_filtri" mat-raised-button (click)="pulisci_filtri()" color="warn"> <mat-icon>clear</mat-icon>&nbsp;&nbsp;REMOVE FILTER </button> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button mat-raised-button (click)="autoSizeAll()" color="accent"> <mat-icon>photo_size_select_small</mat-icon>&nbsp;&nbsp;AUTO SIZE </button> </td> <td [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button mat-raised-button (click)="fitSizeAll()" color="accent"> <mat-icon>aspect_ratio</mat-icon>&nbsp;&nbsp;FIT SIZE </button> <td *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <div fxLayout="row" fxLayoutAlign="center center"> <FHComboBox (selchange)="ch_config()" (fillend)="fe_cfg()" #gf init_fill="false"></FHComboBox> <div matTooltip="Modifica Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button *ngIf="curr_config!=\'-1\'" style="color:rgb(248, 105, 10)"> <mat-icon (click)="edit_config()">save</mat-icon> </button> </div> &nbsp; <div matTooltip="Crea Nuova Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button style="color:rgb(16, 98, 16)"> <mat-icon (click)="insert_config()">library_add</mat-icon> </button> </div> <mat-slide-toggle [hidden]=\'this.m_appService.getState().pageFullscreen\' (click)="ck_flag()" #toggle_mantieni> {{mantieni_impostazioni}} </mat-slide-toggle> </div> </td> <td style="width: 100%;text-align: right;" [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile"> <button *ngIf="show_help" mat-raised-button (click)="help_window()" color="accent"> <mat-icon>help</mat-icon>&nbsp;&nbsp;HELP </button> </td> </tr></table><div [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="!show_buttons && !this.m_appService.getState( ).mobile && show_num_elem"><h5>{{num_r+\' Elementi\'}}</h5></div><ag-grid-angular ref-agGrid style="width:100%;height:85%;" (cellDoubleClicked)="onColumnEvent($event)" (cellClicked)="onCellClicked($event)" [headerHeight]="header_h" [groupHeaderHeight]="header_h" class="ag-theme-balham" [singleClickEdit]="true" [gridOptions]="gridOptions" [columnDefs]="columnDefs" [rowData]="rowData" enableColResize enableServerSideSorting enableServerSideFilter enableColResize (afterFilterChanged)="onAfterFilterChanged()" (filterModified)="onFilterModified()" (rowDoubleClicked)="onRowDClicked($event)" (rowClicked)="onRowClicked($event)" (columnVisible)="oncolumnEverythingChanged($event)" (columnResized)="oncolumnEverythingChanged($event)" (columnMoved)="oncolumnEverythingChanged($event)" (cellValueChanged)="okr($event)" (sortChanged)="onAfterSortChanged()" [paginationPageSize]="num_per_pag" (gridReady)="onReady($event)"></ag-grid-angular></div>'
4186
- var COMPONENTS = [{'name': 'ApprovaGridComponent', 'selector': 'approva-cell'},{'name': 'ComboBoxEditor', 'selector': 'editor-cell'},{'name': 'CurrencyComponent', 'selector': 'currency-cell'},{'name': 'DateComponent', 'selector': 'editor-cell'},{'name': 'DtPick', 'selector': 'DtPicker'},{'name': 'FHAutoCompleteComponent', 'selector': 'FHAutoComplete'},{'name': 'FHComboboxComponent', 'selector': 'FHComboBox'},{'name': 'FHConfirmComponent', 'selector': ''},{'name': 'FHCurrencyFieldComponent', 'selector': 'FHCurrencyField'},{'name': 'FHDatePickerComponent', 'selector': 'FHDatePicker'},{'name': 'FHGridComponent', 'selector': 'FHGrid'},{'name': 'FHGridJSONComponent', 'selector': 'FHGridJSON'},{'name': 'FHListComponent', 'selector': 'FHList'},{'name': 'FHListPick', 'selector': 'fhwincomboselect'},{'name': 'FHLogPanelComponent', 'selector': 'FHLogPanel'},{'name': 'FHMdReader', 'selector': 'FHMdReader'},{'name': 'FHNumericFieldComponent', 'selector': 'FHNumericField'},{'name': 'FHPickListComponent', 'selector': 'FHPickList'},{'name': 'FHRichText', 'selector': 'FHRichText'},{'name': 'FHTimePickerComponent', 'selector': 'FHTimePicker'},{'name': 'FHUploadComponent', 'selector': 'FHUpload'},{'name': 'FHUploadPanelComponent', 'selector': 'FHUploadPanel'},{'name': 'FHUserFieldComponent', 'selector': 'FHUserField'},{'name': 'FHUserPickerComponent', 'selector': 'FHPickUsers'},{'name': 'FHWinComboSelect', 'selector': 'fhwincomboselect'},{'name': 'FSInput', 'selector': ''},{'name': 'FSResult', 'selector': ''},{'name': 'NumericEditorComponent', 'selector': 'numeric-cell'},{'name': 'QGParam', 'selector': ''},{'name': 'QGResult', 'selector': ''},{'name': 'QParam', 'selector': ''},{'name': 'QResult', 'selector': ''},{'name': 'TextAreaEditor', 'selector': 'editor-cell'},{'name': 'WinAskNumberComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextBigComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextComponent', 'selector': 'app-win_ask_text'},{'name': 'WinOutputComponent', 'selector': 'app-win_output'},{'name': 'WinWait', 'selector': 'fhwincomboselect'},{'name': 'win_assegna', 'selector': ''},{'name': 'win_commenti', 'selector': ''},{'name': 'win_commento_sel_notif', 'selector': ''},{'name': 'win_conferma', 'selector': ''},{'name': 'win_grid_help', 'selector': ''},{'name': 'win_info_doc', 'selector': ''},{'name': 'win_log', 'selector': ''},{'name': 'win_mappa', 'selector': ''},{'name': 'win_recupera_doc', 'selector': ''},{'name': 'win_riassegna_select_level', 'selector': ''},{'name': 'win_riassegna_select_user', 'selector': ''},{'name': 'win_salva_annulla', 'selector': ''},{'name': 'win_select_canale', 'selector': ''},{'name': 'win_select_level', 'selector': ''},{'name': 'win_time_slider', 'selector': 'fhtimeslider'},{'name': 'win_uploads', 'selector': 'wkf_win_upload'}];
4396
+ var COMPONENT_TEMPLATE = '<div><div fxLayout="column" fxLayoutAlign="stretch" fxFlexFill> <div fxLayout="row" fxLayoutGap="3px" fxLayoutAlign="start center" style="min-height: 55px" > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <div> <h5>{{num_r}}&nbsp;{{label_elementi}}</h5> </div> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input matInput [placeholder]="trova_label" (keydown)="keyDownFunctioncl($event)" [(ngModel)]="ric_libera" style="width:200px;border:1px solid;min-height:30px"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="!this.m_appService.getState( ).mobile && show_pulisci_filtri" mat-raised-button (click)="pulisci_filtri()" color="warn"> <mat-icon>clear</mat-icon>&nbsp;&nbsp;REMOVE FILTER </button> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile" mat-raised-button (click)="autoSizeAll()" color="accent"> <mat-icon>photo_size_select_small</mat-icon>&nbsp;&nbsp;AUTO SIZE </button> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' *ngIf="show_buttons && !this.m_appService.getState( ).mobile" mat-raised-button (click)="fitSizeAll()" color="accent"> <mat-icon>aspect_ratio</mat-icon>&nbsp;&nbsp;FIT SIZE </button> <FHComboBox [hidden]=\'this.m_appService.getState().pageFullscreen\' (selchange)="ch_config()" (fillend)="fe_cfg()" #gf init_fill="false"></FHComboBox> <div matTooltip="Modifica Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button *ngIf="curr_config!=\'-1\'" style="color:rgb(248, 105, 10)"> <mat-icon (click)="edit_config()">save</mat-icon> </button> </div> <div matTooltip="Crea Nuova Preferenza" matTooltipPosition="above"> <button [hidden]=\'this.m_appService.getState().pageFullscreen\' mat-icon-button style="color:rgb(16, 98, 16)"> <mat-icon (click)="insert_config()">library_add</mat-icon> </button> </div> <mat-slide-toggle [hidden]=\'this.m_appService.getState().pageFullscreen\' (click)="ck_flag()" #toggle_mantieni> {{mantieni_impostazioni}} </mat-slide-toggle> &nbsp; <button *ngIf="show_buttons && !this.m_appService.getState( ).mobile && show_help" mat-raised-button (click)="help_window()" color="accent"> <mat-icon>help</mat-icon>&nbsp;&nbsp;HELP&nbsp;&nbsp;&nbsp; </button> <div fxLayout="row" fxLayoutAlign="end center" fxFlex> <FHGridToolBar (command)="docmd($event)" [type]="toolbar_type" [is_Ins]="toolbar_is_Ins" [is_Supervisor]="toolbar_is_Supervisor" [imp]="toolbar_imp" [custom_commands]="toolbar_custom_commands" [is_Admin]="toolbar_is_Admin" ></FHGridToolBar> </div> <h5 *ngIf="!this.m_appService.getState().pageFullscreen && !show_buttons && !this.m_appService.getState( ).mobile && show_num_elem">{{num_r+\' Elementi\'}}</h5></div> <div fxLayout="row" fxLayoutAlign="stretch" fxFlex="95"><ag-grid-angular ref-agGrid style="width:100%;height:100%;" (cellDoubleClicked)="onColumnEvent($event)" (cellClicked)="onCellClicked($event)" [headerHeight]="header_h" [groupHeaderHeight]="header_h" class="ag-theme-balham" [singleClickEdit]="true" [gridOptions]="gridOptions" [columnDefs]="columnDefs" [rowData]="rowData" enableColResize enableServerSideSorting enableServerSideFilter enableColResize (afterFilterChanged)="onAfterFilterChanged()" (filterModified)="onFilterModified()" (rowDoubleClicked)="onRowDClicked($event)" (rowClicked)="onRowClicked($event)" (columnVisible)="oncolumnEverythingChanged($event)" (columnResized)="oncolumnEverythingChanged($event)" (columnMoved)="oncolumnEverythingChanged($event)" (cellValueChanged)="okr($event)" (sortChanged)="onAfterSortChanged()" [paginationPageSize]="num_per_pag" (gridReady)="onReady($event)"></ag-grid-angular></div></div></div>'
4397
+ var COMPONENTS = [{'name': 'ApprovaGridComponent', 'selector': 'approva-cell'},{'name': 'ComboBoxEditor', 'selector': 'editor-cell'},{'name': 'CurrencyComponent', 'selector': 'currency-cell'},{'name': 'DateComponent', 'selector': 'editor-cell'},{'name': 'DtPick', 'selector': 'DtPicker'},{'name': 'FHAutoCompleteComponent', 'selector': 'FHAutoComplete'},{'name': 'FHComboboxComponent', 'selector': 'FHComboBox'},{'name': 'FHConfirmComponent', 'selector': ''},{'name': 'FHCurrencyFieldComponent', 'selector': 'FHCurrencyField'},{'name': 'FHDatePickerComponent', 'selector': 'FHDatePicker'},{'name': 'FHGridComponent', 'selector': 'FHGrid'},{'name': 'FHGridJSONComponent', 'selector': 'FHGridJSON'},{'name': 'FHGridToolBarComponent', 'selector': 'FHGridToolBar'},{'name': 'FHListComponent', 'selector': 'FHList'},{'name': 'FHListPick', 'selector': 'fhwincomboselect'},{'name': 'FHLogPanelComponent', 'selector': 'FHLogPanel'},{'name': 'FHMdReader', 'selector': 'FHMdReader'},{'name': 'FHNumericFieldComponent', 'selector': 'FHNumericField'},{'name': 'FHPickListComponent', 'selector': 'FHPickList'},{'name': 'FHRichText', 'selector': 'FHRichText'},{'name': 'FHTimePickerComponent', 'selector': 'FHTimePicker'},{'name': 'FHUploadComponent', 'selector': 'FHUpload'},{'name': 'FHUploadPanelComponent', 'selector': 'FHUploadPanel'},{'name': 'FHUserFieldComponent', 'selector': 'FHUserField'},{'name': 'FHUserPickerComponent', 'selector': 'FHPickUsers'},{'name': 'FHWinComboSelect', 'selector': 'fhwincomboselect'},{'name': 'FSInput', 'selector': ''},{'name': 'FSResult', 'selector': ''},{'name': 'NumericEditorComponent', 'selector': 'numeric-cell'},{'name': 'QGParam', 'selector': ''},{'name': 'QGResult', 'selector': ''},{'name': 'QParam', 'selector': ''},{'name': 'QResult', 'selector': ''},{'name': 'TextAreaEditor', 'selector': 'editor-cell'},{'name': 'WinAskNumberComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextBigComponent', 'selector': 'app-win_ask_text'},{'name': 'WinAskTextComponent', 'selector': 'app-win_ask_text'},{'name': 'WinOutputComponent', 'selector': 'app-win_output'},{'name': 'WinWait', 'selector': 'fhwincomboselect'},{'name': 'win_assegna', 'selector': ''},{'name': 'win_commenti', 'selector': ''},{'name': 'win_commento_sel_notif', 'selector': ''},{'name': 'win_conferma', 'selector': ''},{'name': 'win_grid_help', 'selector': ''},{'name': 'win_info_doc', 'selector': ''},{'name': 'win_log', 'selector': ''},{'name': 'win_mappa', 'selector': ''},{'name': 'win_recupera_doc', 'selector': ''},{'name': 'win_riassegna_select_level', 'selector': ''},{'name': 'win_riassegna_select_user', 'selector': ''},{'name': 'win_salva_annulla', 'selector': ''},{'name': 'win_select_canale', 'selector': ''},{'name': 'win_select_level', 'selector': ''},{'name': 'win_time_slider', 'selector': 'fhtimeslider'},{'name': 'win_uploads', 'selector': 'wkf_win_upload'}];
4187
4398
  var DIRECTIVES = [{'name': 'DecimalMask', 'selector': '[ngModel][decimal]'},{'name': 'FHCurrencyFormatterDirective', 'selector': '[FHCurrencyFormatter]'}];
4188
4399
  var ACTUAL_COMPONENT = {'name': 'FHGridComponent'};
4189
4400
  </script>