@fluxhub/fluxhub-lib 9.0.117 → 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 +92 -45
- 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/win_assegna.js +1 -2
- package/esm2015/lib/wkf_engine/win_conferma.js +16 -8
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -5
- 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/win_assegna.js +1 -2
- package/esm5/lib/wkf_engine/win_conferma.js +16 -8
- package/esm5/lib/wkf_engine/wkfdatiaggiuntivi.js +6 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +126 -59
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +92 -45
- 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/lib/wkf_engine/win_conferma.d.ts +2 -1
- 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);
|
|
@@ -9342,7 +9369,6 @@ var win_assegna = /** @class */ (function () {
|
|
|
9342
9369
|
this.nota = data.commento_default;
|
|
9343
9370
|
if (data.comm_notrequired != null)
|
|
9344
9371
|
this.comm_notrequired = data.comm_notrequired;
|
|
9345
|
-
this.m_appService.temp_var4 = '';
|
|
9346
9372
|
}
|
|
9347
9373
|
}
|
|
9348
9374
|
win_assegna.prototype.close = function () { this.dialogRef.close(null); };
|
|
@@ -9391,11 +9417,12 @@ var win_assegna = /** @class */ (function () {
|
|
|
9391
9417
|
}());
|
|
9392
9418
|
|
|
9393
9419
|
var win_conferma = /** @class */ (function () {
|
|
9394
|
-
function win_conferma(dialogRef, m_appService, toastr, _dataService) {
|
|
9420
|
+
function win_conferma(dialogRef, m_appService, toastr, _dataService, data) {
|
|
9395
9421
|
this.dialogRef = dialogRef;
|
|
9396
9422
|
this.m_appService = m_appService;
|
|
9397
9423
|
this.toastr = toastr;
|
|
9398
9424
|
this._dataService = _dataService;
|
|
9425
|
+
this.data = data;
|
|
9399
9426
|
this.utenti = "";
|
|
9400
9427
|
this.lbl = "";
|
|
9401
9428
|
this.nota = "";
|
|
@@ -9404,13 +9431,18 @@ var win_conferma = /** @class */ (function () {
|
|
|
9404
9431
|
this.comm_notrequired = 0;
|
|
9405
9432
|
this.mobile = false;
|
|
9406
9433
|
this.comm_notrequired = this.m_appService.getState().wkf_doc_info.comm_notrequired;
|
|
9407
|
-
console.log(' this.comm_notrequired ', this.comm_notrequired);
|
|
9408
9434
|
this.title = this.m_appService.getState().wkf_doc_info.title;
|
|
9409
9435
|
this.lbl = this.m_appService.getState().wkf_doc_info.lbl;
|
|
9410
9436
|
this.utenti = this.m_appService.getState().wkf_doc_info.utenti;
|
|
9411
9437
|
if (this.comm_notrequired == 2)
|
|
9412
9438
|
this.nota_commento = " (COMMENTO NON OBBLIGATORIO)";
|
|
9413
9439
|
this.mobile = this.m_appService.getState().pageFullscreen;
|
|
9440
|
+
if (data != null) {
|
|
9441
|
+
if (data.commento_default != null)
|
|
9442
|
+
this.nota = data.commento_default;
|
|
9443
|
+
if (data.comm_notrequired != null)
|
|
9444
|
+
this.comm_notrequired = data.comm_notrequired;
|
|
9445
|
+
}
|
|
9414
9446
|
}
|
|
9415
9447
|
win_conferma.prototype.ok = function () {
|
|
9416
9448
|
if (this.comm_notrequired == 0)
|
|
@@ -9432,13 +9464,15 @@ var win_conferma = /** @class */ (function () {
|
|
|
9432
9464
|
{ type: MatDialogRef },
|
|
9433
9465
|
{ type: AppService },
|
|
9434
9466
|
{ type: ToastrService },
|
|
9435
|
-
{ type: QueryService }
|
|
9467
|
+
{ type: QueryService },
|
|
9468
|
+
{ type: undefined, decorators: [{ type: Inject, args: [MAT_DIALOG_DATA,] }] }
|
|
9436
9469
|
]; };
|
|
9437
9470
|
win_conferma = __decorate([
|
|
9438
9471
|
Component({
|
|
9439
9472
|
template: "\n <div style=\"width:100%\" fxLayout=\"row\" fxLayoutAlign=\"end start\"><img src=\"assets/icons/x.png\" style=\"cursor: pointer;\" (click)=\"close()\" /> </div>\n <hr width=\"100%\" size=\"0.5\" color=\"#DDDDDD\">\n\n <mat-toolbar>\n <div style=\"font-size:10px\" *ngIf=\"mobile\">{{lbl}}</div>\n <div *ngIf=\"!mobile\">{{lbl}}</div>\n\n\n </mat-toolbar>\n <br>\n <div mat-dialog-content style=\"min-width:800px;font-size: 15px;\">\n <div *ngIf=\"mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\" style=\"font-size:10px\">Assegnata a: {{utenti}}</div>\n <h3 *ngIf=\"!mobile && utenti?.toLocaleLowerCase().indexOf('system')==-1\">Assegnata a: {{utenti}}</h3>\n <br>\n <mat-form-field [hidden]=\"comm_notrequired==1\" appearance=\"outline\" floatLabel=\"always\"><mat-label>Commento {{nota_commento}}</mat-label>\n <textarea matInput [(ngModel)]=\"nota\" rows=\"6\"></textarea>\n </mat-form-field>\n\n\n </div>\n <br>\n <div style=\"width:100%;text-align:center;\">\n <button mat-flat-button color=\"primary\" (click)=\"ok()\"> OK</button> \n <button mat-flat-button style=\"background-color: #F5F5F5\" (click)=\"close()\">ANNULLA</button>\n </div>\n\n "
|
|
9440
9473
|
}),
|
|
9441
|
-
|
|
9474
|
+
__param(4, Inject(MAT_DIALOG_DATA)),
|
|
9475
|
+
__metadata("design:paramtypes", [MatDialogRef, AppService, ToastrService, QueryService, Object])
|
|
9442
9476
|
], win_conferma);
|
|
9443
9477
|
return win_conferma;
|
|
9444
9478
|
}());
|
|
@@ -10336,7 +10370,14 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10336
10370
|
}
|
|
10337
10371
|
if (crypt) {
|
|
10338
10372
|
if (json_format) {
|
|
10339
|
-
|
|
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
|
+
}
|
|
10340
10381
|
return;
|
|
10341
10382
|
}
|
|
10342
10383
|
else {
|
|
@@ -10346,7 +10387,14 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10346
10387
|
}
|
|
10347
10388
|
else {
|
|
10348
10389
|
if (json_format) {
|
|
10349
|
-
|
|
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
|
+
}
|
|
10350
10398
|
return;
|
|
10351
10399
|
}
|
|
10352
10400
|
else {
|
|
@@ -10354,8 +10402,6 @@ var LocalDBService = /** @class */ (function () {
|
|
|
10354
10402
|
return;
|
|
10355
10403
|
}
|
|
10356
10404
|
}
|
|
10357
|
-
resolve(null);
|
|
10358
|
-
return;
|
|
10359
10405
|
});
|
|
10360
10406
|
};
|
|
10361
10407
|
LocalDBService.prototype.write = function (k, obj, crypt, json_format) {
|
|
@@ -11803,8 +11849,9 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
11803
11849
|
this.app_s.getState().wkf_doc_info.utenti = sp;
|
|
11804
11850
|
this.app_s.getState().wkf_doc_info.comm_notrequired = this.nlevel.commenti_opzionali;
|
|
11805
11851
|
var dialogRef = this.m_dialog.open(win_conferma, {
|
|
11806
|
-
disableClose: true
|
|
11852
|
+
disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11807
11853
|
});
|
|
11854
|
+
this.app_s.temp_var4 = '';
|
|
11808
11855
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11809
11856
|
if (result == "abort") {
|
|
11810
11857
|
_this.edit_b(true);
|
|
@@ -11832,10 +11879,10 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
11832
11879
|
;
|
|
11833
11880
|
if (this.app_s.temp_var4 == null)
|
|
11834
11881
|
this.app_s.temp_var4 = '';
|
|
11835
|
-
console.log('this.app_s.temp_var4 ', this.app_s.temp_var4);
|
|
11836
11882
|
var dialogRef = this.m_dialog.open(win_assegna, {
|
|
11837
11883
|
disableClose: true, data: { commento_default: this.app_s.temp_var4, comm_notrequired: this.nlevel.commenti_opzionali }
|
|
11838
11884
|
});
|
|
11885
|
+
this.app_s.temp_var4 = '';
|
|
11839
11886
|
dialogRef.afterClosed().subscribe(function (result) {
|
|
11840
11887
|
if (result == "" || result == null) {
|
|
11841
11888
|
_this.edit_b(true);
|
|
@@ -12701,8 +12748,8 @@ var dati_aggiuntivi = /** @class */ (function () {
|
|
|
12701
12748
|
console.log('min_liv ', min_liv);
|
|
12702
12749
|
for (var i = 0; i < this.livs.length; i++)
|
|
12703
12750
|
if (min_liv == this.livs[i].livello) {
|
|
12704
|
-
console.log('this.user_idp.toUpperCase() ',
|
|
12705
|
-
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() );
|
|
12706
12753
|
if (this.user_idp.toUpperCase() == this.livs[i].idp.toUpperCase() || this.livs[i].gruppo_parallelo == '*ALLUSERS') {
|
|
12707
12754
|
if (this.livs[i].abilita_indietro == 1)
|
|
12708
12755
|
this.respingi_enabled = true;
|