@fluxhub/fluxhub-lib 10.0.216 → 10.0.218
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.
- package/bundles/fluxhub-fluxhub-lib.umd.js +24 -29
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/controls/fhgrid.js +9 -4
- package/esm2015/lib/controls/fhuploadpanel.js +10 -13
- package/esm2015/lib/services/login.service.js +9 -23
- package/fesm2015/fluxhub-fluxhub-lib.js +21 -27
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +1 -0
- package/lib/services/login.service.d.ts +2 -9
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
|
7
7
|
import { AES, enc } from 'crypto-js';
|
|
8
8
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
9
9
|
import { NG_VALUE_ACCESSOR, NgControl, FormsModule } from '@angular/forms';
|
|
10
|
-
import { Router
|
|
10
|
+
import { Router } from '@angular/router';
|
|
11
11
|
import { SlimLoadingBarService } from 'ng2-slim-loading-bar';
|
|
12
12
|
import { Clipboard } from '@angular/cdk/clipboard';
|
|
13
13
|
import 'ag-grid-enterprise';
|
|
@@ -4346,15 +4346,11 @@ FHUploadComponent.propDecorators = {
|
|
|
4346
4346
|
};
|
|
4347
4347
|
|
|
4348
4348
|
class AuthenticationService {
|
|
4349
|
-
constructor(
|
|
4350
|
-
this._dataService = _dataService;
|
|
4349
|
+
constructor(toastr, http, router, app_s) {
|
|
4351
4350
|
this.toastr = toastr;
|
|
4352
4351
|
this.http = http;
|
|
4353
4352
|
this.router = router;
|
|
4354
|
-
this.route = route;
|
|
4355
|
-
this._fileService = _fileService;
|
|
4356
4353
|
this.app_s = app_s;
|
|
4357
|
-
this.uti_s = uti_s;
|
|
4358
4354
|
this.url = this.app_s.API_ENDPOINT + this.app_s.LOGIN_ENDPOINT;
|
|
4359
4355
|
this.goto_after = "";
|
|
4360
4356
|
this.username = "";
|
|
@@ -4637,21 +4633,17 @@ class AuthenticationService {
|
|
|
4637
4633
|
return true;
|
|
4638
4634
|
}
|
|
4639
4635
|
}
|
|
4640
|
-
AuthenticationService.ɵprov = ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(ɵɵinject(
|
|
4636
|
+
AuthenticationService.ɵprov = ɵɵdefineInjectable({ factory: function AuthenticationService_Factory() { return new AuthenticationService(ɵɵinject(ToastrService), ɵɵinject(HttpClient), ɵɵinject(Router), ɵɵinject(AppService)); }, token: AuthenticationService, providedIn: "root" });
|
|
4641
4637
|
AuthenticationService.decorators = [
|
|
4642
4638
|
{ type: Injectable, args: [{
|
|
4643
4639
|
providedIn: "root",
|
|
4644
4640
|
},] }
|
|
4645
4641
|
];
|
|
4646
4642
|
AuthenticationService.ctorParameters = () => [
|
|
4647
|
-
{ type: QueryService },
|
|
4648
4643
|
{ type: ToastrService },
|
|
4649
4644
|
{ type: HttpClient },
|
|
4650
4645
|
{ type: Router },
|
|
4651
|
-
{ type:
|
|
4652
|
-
{ type: FileService },
|
|
4653
|
-
{ type: AppService },
|
|
4654
|
-
{ type: UtilityService }
|
|
4646
|
+
{ type: AppService }
|
|
4655
4647
|
];
|
|
4656
4648
|
|
|
4657
4649
|
class fh_win_show_email {
|
|
@@ -4798,12 +4790,14 @@ class FHUploadPanelComponent {
|
|
|
4798
4790
|
return;
|
|
4799
4791
|
let obj_r = JSON.parse(o.response);
|
|
4800
4792
|
console.log(obj_r);
|
|
4801
|
-
if (obj_r != null)
|
|
4802
|
-
if (obj_r.
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4793
|
+
if (obj_r != null)
|
|
4794
|
+
if (obj_r.msg != null)
|
|
4795
|
+
if (obj_r.msg != '') {
|
|
4796
|
+
if (obj_r.result_msg == 'KO')
|
|
4797
|
+
this.toastr.error(obj_r.msg);
|
|
4798
|
+
if (obj_r.result_msg == 'OK')
|
|
4799
|
+
this.toastr.info(obj_r.msg);
|
|
4800
|
+
}
|
|
4807
4801
|
}
|
|
4808
4802
|
call_up(o) {
|
|
4809
4803
|
this.call_upload.emit({
|
|
@@ -4905,9 +4899,7 @@ class FHUploadPanelComponent {
|
|
|
4905
4899
|
p.sql = "DELETE_ALLEGATO";
|
|
4906
4900
|
p.types = ["int", "string"];
|
|
4907
4901
|
p.values = [ax.id, this.auth_s.username];
|
|
4908
|
-
let ok_op = false;
|
|
4909
4902
|
this._dataService.doQuery(p).subscribe((data) => {
|
|
4910
|
-
let ok_op = false;
|
|
4911
4903
|
if (data != null)
|
|
4912
4904
|
if (data.result_msg == "OK") {
|
|
4913
4905
|
// this.arr_g = data.result_data;
|
|
@@ -4916,11 +4908,8 @@ class FHUploadPanelComponent {
|
|
|
4916
4908
|
timeOut: 1000,
|
|
4917
4909
|
progressBar: true,
|
|
4918
4910
|
});
|
|
4919
|
-
ok_op = true;
|
|
4920
4911
|
}
|
|
4921
|
-
|
|
4922
|
-
}
|
|
4923
|
-
}, (err) => { });
|
|
4912
|
+
});
|
|
4924
4913
|
}
|
|
4925
4914
|
});
|
|
4926
4915
|
}
|
|
@@ -8757,7 +8746,6 @@ class FHGridComponent {
|
|
|
8757
8746
|
return;
|
|
8758
8747
|
let ss = "";
|
|
8759
8748
|
for (let i = 0; i < arr_F.length; i++) {
|
|
8760
|
-
console.log('CALCOLO ', arr_F[i]);
|
|
8761
8749
|
let ss_r = "";
|
|
8762
8750
|
for (let y = 0; y < this.columnDefs.length; y++) {
|
|
8763
8751
|
if (this.columnDefs[y] != null)
|
|
@@ -8788,7 +8776,6 @@ class FHGridComponent {
|
|
|
8788
8776
|
}
|
|
8789
8777
|
});
|
|
8790
8778
|
if (ss_r != '') {
|
|
8791
|
-
console.log('ADDO '), ss_r;
|
|
8792
8779
|
if (ss != "")
|
|
8793
8780
|
ss += " and ";
|
|
8794
8781
|
ss += '(' + ss_r + ')';
|
|
@@ -8809,6 +8796,13 @@ class FHGridComponent {
|
|
|
8809
8796
|
this.gridOptions.api.paginationGoToPage(this.m_appService.getState().grid_obj[this.grid_key+'_startPage']);
|
|
8810
8797
|
} */
|
|
8811
8798
|
}
|
|
8799
|
+
set_init_size() {
|
|
8800
|
+
if (this.myData.length == 0) {
|
|
8801
|
+
setTimeout(() => { this.set_init_size(); }, 500);
|
|
8802
|
+
return;
|
|
8803
|
+
}
|
|
8804
|
+
this.autoSizeAll();
|
|
8805
|
+
}
|
|
8812
8806
|
res_columns(forza = false) {
|
|
8813
8807
|
if (this.columnDefs == null) {
|
|
8814
8808
|
setTimeout(() => {
|
|
@@ -8828,7 +8822,7 @@ class FHGridComponent {
|
|
|
8828
8822
|
b_mantieni_ck = this.toggle_mantieni.checked;
|
|
8829
8823
|
if (localStorage.getItem(this.grid_key + "_COLS") == null ||
|
|
8830
8824
|
localStorage.getItem(this.grid_key + "_COLS") == "") {
|
|
8831
|
-
this.
|
|
8825
|
+
this.set_init_size();
|
|
8832
8826
|
return;
|
|
8833
8827
|
}
|
|
8834
8828
|
if (localStorage.getItem(this.grid_key + "_COLS") != null &&
|