@fluxhub/fluxhub-lib 9.0.118 → 9.0.119
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 +77 -38
- 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/fhcurrencyfield.js +83 -41
- package/esm2015/lib/controls/fhdatepicker.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +7 -2
- package/esm2015/lib/controls/fhupload.js +4 -5
- package/esm2015/lib/services/localstorage.service.js +17 -5
- package/esm2015/lib/services/utility.service.js +5 -4
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -3
- package/esm5/lib/controls/fhcurrencyfield.js +51 -30
- package/esm5/lib/controls/fhdatepicker.js +2 -2
- package/esm5/lib/controls/fhgrid.js +7 -2
- package/esm5/lib/controls/fhupload.js +2 -2
- package/esm5/lib/services/localstorage.service.js +17 -5
- package/esm5/lib/services/utility.service.js +5 -4
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +3 -3
- package/fesm2015/fluxhub-fluxhub-lib.js +111 -52
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +77 -38
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhcurrencyfield.d.ts +5 -3
- package/lib/services/utility.service.d.ts +2 -3
- package/package.json +1 -1
|
@@ -200,7 +200,6 @@ var QParam = /** @class */ (function () {
|
|
|
200
200
|
var UtilityService = /** @class */ (function () {
|
|
201
201
|
function UtilityService(app_s) {
|
|
202
202
|
this.app_s = app_s;
|
|
203
|
-
this.simpleCrypt = new SimpleCrypt();
|
|
204
203
|
}
|
|
205
204
|
UtilityService_1 = UtilityService;
|
|
206
205
|
UtilityService.prototype.set_home_title = function (s) {
|
|
@@ -724,10 +723,12 @@ var UtilityService = /** @class */ (function () {
|
|
|
724
723
|
return enc;
|
|
725
724
|
};
|
|
726
725
|
UtilityService.prototype.encrypt_v2 = function (s) {
|
|
727
|
-
|
|
726
|
+
var simpleCrypt = new SimpleCrypt();
|
|
727
|
+
return simpleCrypt.encode("prologika_fluxhub_etjda", s);
|
|
728
728
|
};
|
|
729
729
|
UtilityService.prototype.decrypt_v2 = function (s) {
|
|
730
|
-
|
|
730
|
+
var simpleCrypt = new SimpleCrypt();
|
|
731
|
+
return simpleCrypt.decode("prologika_fluxhub_etjda", s);
|
|
731
732
|
};
|
|
732
733
|
UtilityService.prototype.string_sqlvalue = function (s) {
|
|
733
734
|
if (s == null)
|
|
@@ -2047,7 +2048,7 @@ var FHUploadComponent = /** @class */ (function () {
|
|
|
2047
2048
|
FHUploadComponent = __decorate([
|
|
2048
2049
|
Component({
|
|
2049
2050
|
selector: 'FHUpload',
|
|
2050
|
-
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\">\n <label>{{label}}:</label>{{descrizione}}
|
|
2051
|
+
template: "\n\n <div *ngIf=\"loading\" fxLayout=\"row\">\n WAIT\n </div>\n <div [hidden]=\"!(enabled && !loading)\" fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div [hidden]=\"!multi_list\" style=\"width:380px\" fxLayoutAlign=\"start center\">\n <FHComboBox [sql]=\"tipo\" #cmb_tipo [init_fill]=\"false\" label=\"Tipologia\"></FHComboBox> \n </div>\n <mat-form-field [hidden]=\"!show_descri\" style=\"width: 100%\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}} {{fixed_label}}</mat-label>\n <input matInput type=\"text\" name=\"descrizione\" [(ngModel)]=\"descrizione\"\n >\n </mat-form-field>\n \n <div style=\"width:140px\" fxLayout=\"row\" fxLayoutAlign=\"start start\" (click)=\"call_up()\">\n <input type=\"file\" multiple ng2FileSelect [uploader]=\"uploader\" name=\"file-fh{{App}}\" id=\"file-fh{{App}}\" class=\"inputfile inputfile-fh\" />\n <label for=\"file-fh{{App}}\" style=\"width:210px\"><svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"17\" viewBox=\"0 0 20 17\"><path d=\"M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z\"/></svg><span style=\"font-size: 12px\"> Upload</span></label>\n </div>\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\">\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px\">{{label_b}}</button> \n <button mat-flat-button *ngIf=\"id!=null && allow_delete\" (click)=\"del_doc()\" color=\"warn\">\n <mat-icon>delete</mat-icon>\n </button>\n </div>\n </div>\n <div *ngIf=\"!enabled\" fxLayout=\"row\" fxLayoutGap=\"10px\">\n <label>{{label}}:</label><div *ngIf=\"label!=descrizione\">{{descrizione}}</div>\n <button mat-flat-button *ngIf=\"b_edit_loaded\" (click)=\"download_all()\" style=\"font-size: 12px;background-color: #F5F5F5\">{{label_b}}</button>\n </div>\n\n ",
|
|
2051
2052
|
styles: ["\n\n "]
|
|
2052
2053
|
}),
|
|
2053
2054
|
__metadata("design:paramtypes", [QueryService, ToastrService, MatDialog, AppService])
|
|
@@ -5487,7 +5488,12 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
5487
5488
|
for (var j = 0; j < p_col.length; j++) {
|
|
5488
5489
|
if (str_fields != '')
|
|
5489
5490
|
str_fields += ',';
|
|
5490
|
-
|
|
5491
|
+
if (p_col[j].getColDef().headerName == null)
|
|
5492
|
+
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5493
|
+
else if (p_col[j].getColDef().headerName == null)
|
|
5494
|
+
str_fields += '[' + p_col[j].getColDef().field + ']';
|
|
5495
|
+
else
|
|
5496
|
+
str_fields += '[' + p_col[j].getColDef().field + '] [' + p_col[j].getColDef().headerName + ']';
|
|
5491
5497
|
}
|
|
5492
5498
|
if (this.fields.indexOf('DISTINCT') != -1)
|
|
5493
5499
|
str_fields = 'DISTINCT ' + str_fields;
|
|
@@ -7841,7 +7847,7 @@ var FHDatePickerComponent = /** @class */ (function () {
|
|
|
7841
7847
|
{ provide: DateAdapter, useClass: MomentDateAdapter },
|
|
7842
7848
|
{ provide: MAT_DATE_LOCALE, useValue: 'it-IT' },
|
|
7843
7849
|
],
|
|
7844
|
-
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch($event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n
|
|
7850
|
+
template: "\n <div [hidden]=\"!show_buttons||!enabled\">\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"add_year()\">+1 Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"ini_year()\">Inizio Anno</button>\n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"fin_year()\">Fine Anno</button>\n </div>\n\n <mat-form-field (click)=\"chxx($event)\" appearance=\"outline\" floatLabel=\"always\"><mat-label>{{label}}</mat-label>\n <input [disabled]=\"!enabled\" #pickerId (dateChange)=\"ch($event)\" (focusout)=\"dt_chg($event)\" (keyup)=\"checkInput($event)\"\n [min]=\"min_date\" [max]=\"max_date\" (click)=\"chxx($event)\" [(ngModel)]=\"date_sel\" matInput [matDatepicker]=\"picker\" >\n <mat-datepicker-toggle matSuffix [for]=\"picker\" (click)=\"chxx($event)\"></mat-datepicker-toggle>\n <mat-datepicker (click)=\"chxx($event)\" #picker></mat-datepicker>\n </mat-form-field>\n\n ",
|
|
7845
7851
|
styles: ["\n .lb_small_grigia {\n font-size: 15px;\n color: #B8B8B8;\n }\n\n .label_dis {\n font-size: 14px;\n font-weight: bold;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-input-element,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-label {\n color: #f44336;\n }\n\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-underline,\n :host.ng-invalid > .ng-touched ::ng-deep .mat-form-field-ripple {\n background-color: #f44336;\n }\n "]
|
|
7846
7852
|
}),
|
|
7847
7853
|
__metadata("design:paramtypes", [DateAdapter, UtilityService])
|
|
@@ -8692,32 +8698,28 @@ var FHLogPanelComponent = /** @class */ (function () {
|
|
|
8692
8698
|
return FHLogPanelComponent;
|
|
8693
8699
|
}());
|
|
8694
8700
|
|
|
8695
|
-
var noop$6 = function () {
|
|
8696
|
-
};
|
|
8701
|
+
var noop$6 = function () { };
|
|
8697
8702
|
var ɵ0$6 = noop$6;
|
|
8698
8703
|
var CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7 = {
|
|
8699
8704
|
provide: NG_VALUE_ACCESSOR,
|
|
8700
8705
|
useExisting: forwardRef(function () { return FHCurrencyFieldComponent; }),
|
|
8701
|
-
multi: true
|
|
8706
|
+
multi: true,
|
|
8702
8707
|
};
|
|
8703
8708
|
var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
8704
8709
|
function FHCurrencyFieldComponent() {
|
|
8705
8710
|
this.decimal = 2;
|
|
8706
|
-
this.label =
|
|
8711
|
+
this.label = "";
|
|
8707
8712
|
this.required = false;
|
|
8708
8713
|
this.enabled = true;
|
|
8709
8714
|
this.hidden = false;
|
|
8710
|
-
this.color =
|
|
8711
|
-
this.m_color =
|
|
8715
|
+
this.color = "";
|
|
8716
|
+
this.m_color = "";
|
|
8712
8717
|
this.label_width = "";
|
|
8713
8718
|
this.change = new EventEmitter();
|
|
8714
8719
|
this.enter_pressed = new EventEmitter();
|
|
8715
|
-
this.
|
|
8716
|
-
this.
|
|
8717
|
-
|
|
8718
|
-
this.onTouched = function () {
|
|
8719
|
-
};
|
|
8720
|
-
this.formattedAmount = '0,00';
|
|
8720
|
+
this.onChange = function (_) { };
|
|
8721
|
+
this.onTouched = function () { };
|
|
8722
|
+
this.formattedAmount = "0,00";
|
|
8721
8723
|
this.value = 0;
|
|
8722
8724
|
}
|
|
8723
8725
|
FHCurrencyFieldComponent.prototype.kd = function (event) {
|
|
@@ -8725,6 +8727,15 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8725
8727
|
this.enter_pressed.emit();
|
|
8726
8728
|
}
|
|
8727
8729
|
};
|
|
8730
|
+
FHCurrencyFieldComponent.prototype.click_select_allf = function (element) {
|
|
8731
|
+
var _this = this;
|
|
8732
|
+
setTimeout(function () {
|
|
8733
|
+
_this.el.nativeElement.select();
|
|
8734
|
+
}, 200);
|
|
8735
|
+
};
|
|
8736
|
+
FHCurrencyFieldComponent.prototype.select_allf = function (element) {
|
|
8737
|
+
this.el.nativeElement.select();
|
|
8738
|
+
};
|
|
8728
8739
|
FHCurrencyFieldComponent.prototype.getStyle_color = function () {
|
|
8729
8740
|
return this.m_color;
|
|
8730
8741
|
};
|
|
@@ -8737,15 +8748,23 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8737
8748
|
FHCurrencyFieldComponent.prototype.chg = function () {
|
|
8738
8749
|
var _this = this;
|
|
8739
8750
|
setTimeout(function () {
|
|
8740
|
-
_this.value = parseFloat(_this.formattedAmount.split(
|
|
8751
|
+
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
|
|
8752
|
+
console.log('onChange ', _this.value);
|
|
8741
8753
|
_this.onChange(_this.value);
|
|
8742
8754
|
}, 50);
|
|
8743
8755
|
};
|
|
8744
8756
|
FHCurrencyFieldComponent.prototype.writeValue = function (value) {
|
|
8757
|
+
if (this.value == parseFloat(this.formattedAmount.split(".").join("").split(",").join("."))) {
|
|
8758
|
+
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8759
|
+
return;
|
|
8760
|
+
}
|
|
8745
8761
|
if (value == null)
|
|
8746
8762
|
value = 0;
|
|
8747
8763
|
// if (value !== this.innerValue) {
|
|
8748
|
-
|
|
8764
|
+
if (typeof (value) == 'string') {
|
|
8765
|
+
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8766
|
+
}
|
|
8767
|
+
console.log('value ', value);
|
|
8749
8768
|
this.value = value;
|
|
8750
8769
|
this.formattedAmount = this.transform(this.value, this.decimal);
|
|
8751
8770
|
//}
|
|
@@ -8763,7 +8782,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8763
8782
|
// if (typeof (element.target.value) !== 'number')
|
|
8764
8783
|
// this.formattedAmount = this.currencyPipe.transform(this.value);
|
|
8765
8784
|
setTimeout(function () {
|
|
8766
|
-
_this.value = parseFloat(_this.formattedAmount.split(
|
|
8785
|
+
_this.value = parseFloat(_this.formattedAmount.split(".").join("").split(",").join("."));
|
|
8767
8786
|
// this.writeValue(this.value);
|
|
8768
8787
|
_this.formattedAmount = _this.transform(_this.value, _this.decimal);
|
|
8769
8788
|
}, 50);
|
|
@@ -8777,13 +8796,21 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8777
8796
|
};
|
|
8778
8797
|
FHCurrencyFieldComponent.prototype.transform = function (value, fractionSize) {
|
|
8779
8798
|
if (fractionSize === void 0) { fractionSize = 2; }
|
|
8780
|
-
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
|
|
8785
|
-
|
|
8786
|
-
|
|
8799
|
+
console.log('b', typeof (value));
|
|
8800
|
+
if (typeof (value) == 'string') {
|
|
8801
|
+
value = parseFloat(value.split(".").join("").split(",").join("."));
|
|
8802
|
+
}
|
|
8803
|
+
console.log('a', typeof (value));
|
|
8804
|
+
var _a = __read((value || "").toString().split("."), 2), integer = _a[0], _b = _a[1], fraction = _b === void 0 ? "" : _b;
|
|
8805
|
+
console.log('transform ', value);
|
|
8806
|
+
fraction =
|
|
8807
|
+
fractionSize > 0
|
|
8808
|
+
? "," + (fraction + "000000").substring(0, fractionSize)
|
|
8809
|
+
: "";
|
|
8810
|
+
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ".");
|
|
8811
|
+
if (integer == "")
|
|
8812
|
+
integer = "0";
|
|
8813
|
+
console.log('transform end ', integer + fraction);
|
|
8787
8814
|
return integer + fraction;
|
|
8788
8815
|
};
|
|
8789
8816
|
FHCurrencyFieldComponent.prototype.removeCurrencyPipeFormat = function (element) {
|
|
@@ -8810,7 +8837,7 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8810
8837
|
});
|
|
8811
8838
|
};
|
|
8812
8839
|
__decorate([
|
|
8813
|
-
ViewChild(
|
|
8840
|
+
ViewChild("el"),
|
|
8814
8841
|
__metadata("design:type", ElementRef)
|
|
8815
8842
|
], FHCurrencyFieldComponent.prototype, "el", void 0);
|
|
8816
8843
|
__decorate([
|
|
@@ -8855,10 +8882,10 @@ var FHCurrencyFieldComponent = /** @class */ (function () {
|
|
|
8855
8882
|
], FHCurrencyFieldComponent.prototype, "value", void 0);
|
|
8856
8883
|
FHCurrencyFieldComponent = __decorate([
|
|
8857
8884
|
Component({
|
|
8858
|
-
selector:
|
|
8885
|
+
selector: "FHCurrencyField",
|
|
8859
8886
|
providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$7],
|
|
8860
|
-
template: "\n <mat-form-field
|
|
8861
|
-
styles: ["
|
|
8887
|
+
template: "\n <mat-form-field\n [hidden]=\"!enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n #el\n matInput\n [disabled]=\"!enabled\"\n [(ngModel)]=\"formattedAmount\"\n (focusout)=\"chg()\"\n [style.color]=\"getStyle_color()\"\n (keydown)=\"kd($event)\"\n\n (click)=\"click_select_allf($event)\"\n (focus)=\"removeCurrencyPipeFormat($event); select_allf($event)\"\n\n />\n </mat-form-field>\n <mat-form-field\n [hidden]=\"enabled || hidden\"\n appearance=\"outline\"\n floatLabel=\"always\"\n ><mat-label>{{ label }}</mat-label>\n <input\n type=\"text\"\n style=\"text-align:right\"\n [style.color]=\"getStyle_color()\"\n #el1\n matInput\n [disabled]=\"true\"\n [(ngModel)]=\"formattedAmount\"\n />\n </mat-form-field>\n ",
|
|
8888
|
+
styles: [""]
|
|
8862
8889
|
}),
|
|
8863
8890
|
__metadata("design:paramtypes", [])
|
|
8864
8891
|
], FHCurrencyFieldComponent);
|
|
@@ -10343,7 +10370,14 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10343
10370
|
}
|
|
10344
10371
|
if (crypt) {
|
|
10345
10372
|
if (json_format) {
|
|
10346
|
-
|
|
10373
|
+
try {
|
|
10374
|
+
resolve(JSON.parse(_this.uti.decrypt_v2(localStorage.getItem(key))));
|
|
10375
|
+
}
|
|
10376
|
+
catch (e) {
|
|
10377
|
+
console.log(e, 'Errore JSON ' + ' ' + _this.uti.decrypt_v2(localStorage.getItem(key)));
|
|
10378
|
+
resolve({});
|
|
10379
|
+
return;
|
|
10380
|
+
}
|
|
10347
10381
|
return;
|
|
10348
10382
|
}
|
|
10349
10383
|
else {
|
|
@@ -10353,7 +10387,14 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10353
10387
|
}
|
|
10354
10388
|
else {
|
|
10355
10389
|
if (json_format) {
|
|
10356
|
-
|
|
10390
|
+
try {
|
|
10391
|
+
resolve(JSON.parse('' + localStorage.getItem(key)));
|
|
10392
|
+
}
|
|
10393
|
+
catch (e) {
|
|
10394
|
+
console.log(e, 'Errore JSON ' + localStorage.getItem(key));
|
|
10395
|
+
resolve({});
|
|
10396
|
+
return;
|
|
10397
|
+
}
|
|
10357
10398
|
return;
|
|
10358
10399
|
}
|
|
10359
10400
|
else {
|
|
@@ -10361,8 +10402,6 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10361
10402
|
return;
|
|
10362
10403
|
}
|
|
10363
10404
|
}
|
|
10364
|
-
resolve(null);
|
|
10365
|
-
return;
|
|
10366
10405
|
});
|
|
10367
10406
|
};
|
|
10368
10407
|
LocalDBService.prototype.write = function (k, obj, crypt, json_format) {
|
|
@@ -12709,8 +12748,8 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
12709
12748
|
console.log('min_liv ', min_liv);
|
|
12710
12749
|
for (var i = 0; i < this.livs.length; i++)
|
|
12711
12750
|
if (min_liv == this.livs[i].livello) {
|
|
12712
|
-
console.log('this.user_idp.toUpperCase() ',
|
|
12713
|
-
console.log('this.livs[i].idp.toUpperCase() ',
|
|
12751
|
+
//console.log('this.user_idp.toUpperCase() ',this.user_idp.toUpperCase());
|
|
12752
|
+
//console.log('this.livs[i].idp.toUpperCase() ',this.livs[i].idp.toUpperCase() );
|
|
12714
12753
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
12715
12754
|
if (this.livs[i].abilita_indietro == 1)
|
|
12716
12755
|
this.respingi_enabled = true;
|