@fluxhub/fluxhub-lib 10.0.483 → 10.0.485
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 +16 -12
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +2 -2
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/esm2015/lib/services/utility.service.js +6 -7
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +5 -2
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +5 -2
- package/fesm2015/fluxhub-fluxhub-lib.js +13 -8
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/services/utility.service.d.ts +1 -1
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ import { ɵɵdefineInjectable, Injectable, ɵɵinject, forwardRef, EventEmitter,
|
|
|
4
4
|
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
|
5
5
|
import { HttpHeaders, HttpClient } from '@angular/common/http';
|
|
6
6
|
import { SimpleCrypt } from 'ngx-simple-crypt';
|
|
7
|
+
import { AES, enc } from 'crypto-js';
|
|
7
8
|
import { Title, DomSanitizer } from '@angular/platform-browser';
|
|
8
9
|
import { map, catchError, flatMap } from 'rxjs/operators';
|
|
9
10
|
import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
|
|
@@ -840,13 +841,11 @@ class UtilityService {
|
|
|
840
841
|
}
|
|
841
842
|
return enc;
|
|
842
843
|
}
|
|
843
|
-
decrypt_v3(s) {
|
|
844
|
-
let simpleCrypt = new SimpleCrypt();
|
|
845
|
-
return simpleCrypt.decode("}?fhg7SP&^N4", s); // CryptoJS.AES.encrypt(s, "}?fhg7SP&^N4").toString();
|
|
846
|
-
}
|
|
847
844
|
encrypt_v3(s) {
|
|
848
|
-
|
|
849
|
-
|
|
845
|
+
return AES.encrypt(s, "}?fhg7SP&^N4").toString();
|
|
846
|
+
}
|
|
847
|
+
decrypt_v3(s) {
|
|
848
|
+
return AES.decrypt(s, "}?fhg7SP&^N4").toString(enc.Utf8);
|
|
850
849
|
}
|
|
851
850
|
decrypt(s) {
|
|
852
851
|
var k = 1;
|
|
@@ -17017,7 +17016,9 @@ class dati_aggiuntivi {
|
|
|
17017
17016
|
}
|
|
17018
17017
|
}
|
|
17019
17018
|
back(edit_button) {
|
|
17020
|
-
|
|
17019
|
+
let arrx = this.uti_s.get_diff_doc(this.old_doc, this.m_obj);
|
|
17020
|
+
console.log('arrx ', arrx);
|
|
17021
|
+
if (!edit_button || arrx.length == 0)
|
|
17021
17022
|
this.m_router.navigate([this.app_info.modulo_swf]);
|
|
17022
17023
|
else {
|
|
17023
17024
|
let dialogRef = this.m_dialog.open(win_salva_annulla, {
|
|
@@ -17788,6 +17789,7 @@ class dati_aggiuntivi {
|
|
|
17788
17789
|
}
|
|
17789
17790
|
ok_load_document(o) {
|
|
17790
17791
|
this.m_obj = (JSON.parse(JSON.stringify(o)));
|
|
17792
|
+
this.old_doc = (JSON.parse(JSON.stringify(o)));
|
|
17791
17793
|
this.edit_b(false, false);
|
|
17792
17794
|
this.save_to_app_state();
|
|
17793
17795
|
let p = new QParam();
|
|
@@ -24158,7 +24160,9 @@ class dati_aggiuntivi_v2 {
|
|
|
24158
24160
|
setTimeout(() => { this.reset_updw(); }, 800);
|
|
24159
24161
|
}
|
|
24160
24162
|
back(edit_button) {
|
|
24161
|
-
|
|
24163
|
+
let arrx = this.uti_s.get_diff_doc(this.old_doc, this.m_obj);
|
|
24164
|
+
console.log('arrx ', arrx);
|
|
24165
|
+
if (!edit_button || arrx.length == 0)
|
|
24162
24166
|
this.m_router.navigate([this.app_info.modulo_swf]);
|
|
24163
24167
|
else {
|
|
24164
24168
|
let dialogRef = this.m_dialog.open(win_salva_annulla_v2, {
|
|
@@ -24495,6 +24499,7 @@ class dati_aggiuntivi_v2 {
|
|
|
24495
24499
|
}
|
|
24496
24500
|
ok_load_document(o) {
|
|
24497
24501
|
this.m_obj = (JSON.parse(JSON.stringify(o)));
|
|
24502
|
+
this.old_doc = (JSON.parse(JSON.stringify(o)));
|
|
24498
24503
|
this.edit_b(false);
|
|
24499
24504
|
this.save_to_app_state();
|
|
24500
24505
|
let p = new QParam();
|