@fluxhub/fluxhub-lib 10.0.598 → 10.0.600
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 +115 -10
- 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/wkf_engine/wkfapp.js +28 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +31 -6
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +28 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +32 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +115 -10
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/wkf_engine/wkfapp.d.ts +1 -0
- package/lib/wkf_engine/wkfdatiaggiuntivi.d.ts +1 -0
- package/lib/wkf_engine_v2/wkfapp.d.ts +1 -0
- package/lib/wkf_engine_v2/wkfdatiaggiuntivi.d.ts +2 -0
- package/package.json +1 -1
|
@@ -18864,6 +18864,7 @@
|
|
|
18864
18864
|
if (!m_service.checkCredentials()) {
|
|
18865
18865
|
return;
|
|
18866
18866
|
}
|
|
18867
|
+
this.ripristina_imp();
|
|
18867
18868
|
if (this.sort_field == null)
|
|
18868
18869
|
this.sort_field = '';
|
|
18869
18870
|
if (this.sort_field == '')
|
|
@@ -19332,6 +19333,7 @@
|
|
|
19332
19333
|
this.app_s.user_surname_ori = null;
|
|
19333
19334
|
this.app_s.user_email_ori = null;
|
|
19334
19335
|
this.imp = "";
|
|
19336
|
+
localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
|
|
19335
19337
|
this.get_grid().doFill("");
|
|
19336
19338
|
// browser.refresh()
|
|
19337
19339
|
};
|
|
@@ -19381,8 +19383,8 @@
|
|
|
19381
19383
|
data.result_data[0].cognome +
|
|
19382
19384
|
" " +
|
|
19383
19385
|
data.result_data[0].nome;
|
|
19386
|
+
localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
19384
19387
|
_this.get_grid().doFill("");
|
|
19385
|
-
console.log(" this.user_idp ", _this.user_idp);
|
|
19386
19388
|
}
|
|
19387
19389
|
});
|
|
19388
19390
|
}
|
|
@@ -19390,6 +19392,30 @@
|
|
|
19390
19392
|
}
|
|
19391
19393
|
});
|
|
19392
19394
|
};
|
|
19395
|
+
wkfapp.prototype.ripristina_imp = function () {
|
|
19396
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
|
|
19397
|
+
return;
|
|
19398
|
+
var obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
19399
|
+
if (obj == null)
|
|
19400
|
+
return;
|
|
19401
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
19402
|
+
this.app_s.user_ori = this.app_s.user;
|
|
19403
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
19404
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
19405
|
+
this.app_s.user_name = obj.nome;
|
|
19406
|
+
this.app_s.user = obj.username;
|
|
19407
|
+
this.app_s.user_surname = obj.cognome;
|
|
19408
|
+
this.app_s.user_email = obj.email;
|
|
19409
|
+
this.user_idp = obj.username;
|
|
19410
|
+
this.user_nome = obj.nome;
|
|
19411
|
+
this.user_cognome = obj.cognome;
|
|
19412
|
+
this.user_email = obj.email;
|
|
19413
|
+
this.imp =
|
|
19414
|
+
"ANN. IMP: " +
|
|
19415
|
+
obj.cognome +
|
|
19416
|
+
" " +
|
|
19417
|
+
obj.nome;
|
|
19418
|
+
};
|
|
19393
19419
|
wkfapp.prototype.save_state_wkf = function () {
|
|
19394
19420
|
this.app_s.getState().wkf_obj = {};
|
|
19395
19421
|
this.app_s.getState().wkf_obj.b_editing = this.b_editing;
|
|
@@ -19694,12 +19720,37 @@
|
|
|
19694
19720
|
this.b_apprf = false;
|
|
19695
19721
|
// console.log('user_idp: '+ this.user_idp);
|
|
19696
19722
|
}
|
|
19723
|
+
dati_aggiuntivi.prototype.ripristina_imp = function () {
|
|
19724
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
19725
|
+
this.user_idp = this.app_s.user;
|
|
19726
|
+
this.user_nome = this.app_s.user_name;
|
|
19727
|
+
this.user_cognome = this.app_s.user_surname;
|
|
19728
|
+
this.user_email = this.app_s.user_email;
|
|
19729
|
+
return;
|
|
19730
|
+
}
|
|
19731
|
+
var obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
19732
|
+
if (obj == null) {
|
|
19733
|
+
this.user_idp = this.app_s.user;
|
|
19734
|
+
this.user_nome = this.app_s.user_name;
|
|
19735
|
+
this.user_cognome = this.app_s.user_surname;
|
|
19736
|
+
this.user_email = this.app_s.user_email;
|
|
19737
|
+
return;
|
|
19738
|
+
}
|
|
19739
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
19740
|
+
this.app_s.user_ori = this.app_s.user;
|
|
19741
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
19742
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
19743
|
+
this.app_s.user_name = obj.nome;
|
|
19744
|
+
this.app_s.user = obj.username;
|
|
19745
|
+
this.app_s.user_surname = obj.cognome;
|
|
19746
|
+
this.app_s.user_email = obj.email;
|
|
19747
|
+
this.user_idp = obj.username;
|
|
19748
|
+
this.user_nome = obj.nome;
|
|
19749
|
+
this.user_cognome = obj.cognome;
|
|
19750
|
+
this.user_email = obj.email;
|
|
19751
|
+
};
|
|
19697
19752
|
dati_aggiuntivi.prototype.init_user_i = function () {
|
|
19698
|
-
|
|
19699
|
-
this.user_idp = this.app_s.user;
|
|
19700
|
-
this.user_nome = this.app_s.user_name;
|
|
19701
|
-
this.user_cognome = this.app_s.user_surname;
|
|
19702
|
-
this.user_email = this.app_s.user_email;
|
|
19753
|
+
this.ripristina_imp();
|
|
19703
19754
|
};
|
|
19704
19755
|
dati_aggiuntivi.prototype.save_to_app_state = function () {
|
|
19705
19756
|
this.app_s.getState().wkf_doc_info = {};
|
|
@@ -21630,6 +21681,7 @@
|
|
|
21630
21681
|
if (!m_service.checkCredentials()) {
|
|
21631
21682
|
return;
|
|
21632
21683
|
}
|
|
21684
|
+
this.ripristina_imp();
|
|
21633
21685
|
if (this.sort_field == null)
|
|
21634
21686
|
this.sort_field = '';
|
|
21635
21687
|
if (this.sort_field == '')
|
|
@@ -22140,6 +22192,7 @@
|
|
|
22140
22192
|
this.app_s.user_surname_ori = null;
|
|
22141
22193
|
this.app_s.user_email_ori = null;
|
|
22142
22194
|
this.imp = "";
|
|
22195
|
+
localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
|
|
22143
22196
|
this.get_grid().doFill("");
|
|
22144
22197
|
// browser.refresh()
|
|
22145
22198
|
};
|
|
@@ -22189,6 +22242,7 @@
|
|
|
22189
22242
|
data.result_data[0].cognome +
|
|
22190
22243
|
" " +
|
|
22191
22244
|
data.result_data[0].nome;
|
|
22245
|
+
localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
22192
22246
|
_this.get_grid().doFill("");
|
|
22193
22247
|
}
|
|
22194
22248
|
});
|
|
@@ -22415,6 +22469,30 @@
|
|
|
22415
22469
|
wkfapp_v2.prototype.insert_doc = function () {
|
|
22416
22470
|
this.m_router.navigate([this.app_root, this.id_applicativo, "new"]);
|
|
22417
22471
|
};
|
|
22472
|
+
wkfapp_v2.prototype.ripristina_imp = function () {
|
|
22473
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
|
|
22474
|
+
return;
|
|
22475
|
+
var obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
22476
|
+
if (obj == null)
|
|
22477
|
+
return;
|
|
22478
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
22479
|
+
this.app_s.user_ori = this.app_s.user;
|
|
22480
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
22481
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
22482
|
+
this.app_s.user_name = obj.nome;
|
|
22483
|
+
this.app_s.user = obj.username;
|
|
22484
|
+
this.app_s.user_surname = obj.cognome;
|
|
22485
|
+
this.app_s.user_email = obj.email;
|
|
22486
|
+
this.user_idp = obj.username;
|
|
22487
|
+
this.user_nome = obj.nome;
|
|
22488
|
+
this.user_cognome = obj.cognome;
|
|
22489
|
+
this.user_email = obj.email;
|
|
22490
|
+
this.imp =
|
|
22491
|
+
"ANN. IMP: " +
|
|
22492
|
+
obj.cognome +
|
|
22493
|
+
" " +
|
|
22494
|
+
obj.nome;
|
|
22495
|
+
};
|
|
22418
22496
|
return wkfapp_v2;
|
|
22419
22497
|
}());
|
|
22420
22498
|
wkfapp_v2.decorators = [
|
|
@@ -22445,6 +22523,7 @@
|
|
|
22445
22523
|
this.m_fileservice = m_fileservice;
|
|
22446
22524
|
this.tsr = tsr;
|
|
22447
22525
|
this.m_obj = {};
|
|
22526
|
+
this.sort_field = "";
|
|
22448
22527
|
this.in_carico = false;
|
|
22449
22528
|
this.wkf_users_roles = '';
|
|
22450
22529
|
this.b_rip_pulsanti = true;
|
|
@@ -22563,6 +22642,35 @@
|
|
|
22563
22642
|
});
|
|
22564
22643
|
});
|
|
22565
22644
|
}
|
|
22645
|
+
dati_aggiuntivi_v2.prototype.ripristina_imp = function () {
|
|
22646
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
22647
|
+
this.user_idp = this.app_s.user;
|
|
22648
|
+
this.user_nome = this.app_s.user_name;
|
|
22649
|
+
this.user_cognome = this.app_s.user_surname;
|
|
22650
|
+
this.user_email = this.app_s.user_email;
|
|
22651
|
+
return;
|
|
22652
|
+
}
|
|
22653
|
+
var obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
22654
|
+
if (obj == null) {
|
|
22655
|
+
this.user_idp = this.app_s.user;
|
|
22656
|
+
this.user_nome = this.app_s.user_name;
|
|
22657
|
+
this.user_cognome = this.app_s.user_surname;
|
|
22658
|
+
this.user_email = this.app_s.user_email;
|
|
22659
|
+
return;
|
|
22660
|
+
}
|
|
22661
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
22662
|
+
this.app_s.user_ori = this.app_s.user;
|
|
22663
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
22664
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
22665
|
+
this.app_s.user_name = obj.nome;
|
|
22666
|
+
this.app_s.user = obj.username;
|
|
22667
|
+
this.app_s.user_surname = obj.cognome;
|
|
22668
|
+
this.app_s.user_email = obj.email;
|
|
22669
|
+
this.user_idp = obj.username;
|
|
22670
|
+
this.user_nome = obj.nome;
|
|
22671
|
+
this.user_cognome = obj.cognome;
|
|
22672
|
+
this.user_email = obj.email;
|
|
22673
|
+
};
|
|
22566
22674
|
dati_aggiuntivi_v2.prototype.hasRole = function (s, b_check_admin) {
|
|
22567
22675
|
if (b_check_admin === void 0) { b_check_admin = true; }
|
|
22568
22676
|
if (this.wkf_users_roles === null)
|
|
@@ -22577,10 +22685,7 @@
|
|
|
22577
22685
|
return false;
|
|
22578
22686
|
};
|
|
22579
22687
|
dati_aggiuntivi_v2.prototype.init_user_i = function () {
|
|
22580
|
-
this.
|
|
22581
|
-
this.user_nome = this.app_s.user_name;
|
|
22582
|
-
this.user_cognome = this.app_s.user_surname;
|
|
22583
|
-
this.user_email = this.app_s.user_email;
|
|
22688
|
+
this.ripristina_imp();
|
|
22584
22689
|
};
|
|
22585
22690
|
dati_aggiuntivi_v2.prototype.save_to_app_state = function () {
|
|
22586
22691
|
this.app_s.getState().wkf_doc_info = {};
|