@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
|
@@ -5294,6 +5294,7 @@ class wkfapp {
|
|
|
5294
5294
|
if (!m_service.checkCredentials()) {
|
|
5295
5295
|
return;
|
|
5296
5296
|
}
|
|
5297
|
+
this.ripristina_imp();
|
|
5297
5298
|
if (this.sort_field == null)
|
|
5298
5299
|
this.sort_field = '';
|
|
5299
5300
|
if (this.sort_field == '')
|
|
@@ -5754,6 +5755,7 @@ class wkfapp {
|
|
|
5754
5755
|
this.app_s.user_surname_ori = null;
|
|
5755
5756
|
this.app_s.user_email_ori = null;
|
|
5756
5757
|
this.imp = "";
|
|
5758
|
+
localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
|
|
5757
5759
|
this.get_grid().doFill("");
|
|
5758
5760
|
// browser.refresh()
|
|
5759
5761
|
}
|
|
@@ -5802,8 +5804,8 @@ class wkfapp {
|
|
|
5802
5804
|
data.result_data[0].cognome +
|
|
5803
5805
|
" " +
|
|
5804
5806
|
data.result_data[0].nome;
|
|
5807
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
5805
5808
|
this.get_grid().doFill("");
|
|
5806
|
-
console.log(" this.user_idp ", this.user_idp);
|
|
5807
5809
|
}
|
|
5808
5810
|
});
|
|
5809
5811
|
}
|
|
@@ -5811,6 +5813,30 @@ class wkfapp {
|
|
|
5811
5813
|
}
|
|
5812
5814
|
});
|
|
5813
5815
|
}
|
|
5816
|
+
ripristina_imp() {
|
|
5817
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
|
|
5818
|
+
return;
|
|
5819
|
+
let obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
5820
|
+
if (obj == null)
|
|
5821
|
+
return;
|
|
5822
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
5823
|
+
this.app_s.user_ori = this.app_s.user;
|
|
5824
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
5825
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
5826
|
+
this.app_s.user_name = obj.nome;
|
|
5827
|
+
this.app_s.user = obj.username;
|
|
5828
|
+
this.app_s.user_surname = obj.cognome;
|
|
5829
|
+
this.app_s.user_email = obj.email;
|
|
5830
|
+
this.user_idp = obj.username;
|
|
5831
|
+
this.user_nome = obj.nome;
|
|
5832
|
+
this.user_cognome = obj.cognome;
|
|
5833
|
+
this.user_email = obj.email;
|
|
5834
|
+
this.imp =
|
|
5835
|
+
"ANN. IMP: " +
|
|
5836
|
+
obj.cognome +
|
|
5837
|
+
" " +
|
|
5838
|
+
obj.nome;
|
|
5839
|
+
}
|
|
5814
5840
|
save_state_wkf() {
|
|
5815
5841
|
this.app_s.getState().wkf_obj = {};
|
|
5816
5842
|
this.app_s.getState().wkf_obj.b_editing = this.b_editing;
|
|
@@ -16841,12 +16867,37 @@ class dati_aggiuntivi {
|
|
|
16841
16867
|
this.b_apprf = false;
|
|
16842
16868
|
// console.log('user_idp: '+ this.user_idp);
|
|
16843
16869
|
}
|
|
16870
|
+
ripristina_imp() {
|
|
16871
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
16872
|
+
this.user_idp = this.app_s.user;
|
|
16873
|
+
this.user_nome = this.app_s.user_name;
|
|
16874
|
+
this.user_cognome = this.app_s.user_surname;
|
|
16875
|
+
this.user_email = this.app_s.user_email;
|
|
16876
|
+
return;
|
|
16877
|
+
}
|
|
16878
|
+
let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
16879
|
+
if (obj == null) {
|
|
16880
|
+
this.user_idp = this.app_s.user;
|
|
16881
|
+
this.user_nome = this.app_s.user_name;
|
|
16882
|
+
this.user_cognome = this.app_s.user_surname;
|
|
16883
|
+
this.user_email = this.app_s.user_email;
|
|
16884
|
+
return;
|
|
16885
|
+
}
|
|
16886
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
16887
|
+
this.app_s.user_ori = this.app_s.user;
|
|
16888
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
16889
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
16890
|
+
this.app_s.user_name = obj.nome;
|
|
16891
|
+
this.app_s.user = obj.username;
|
|
16892
|
+
this.app_s.user_surname = obj.cognome;
|
|
16893
|
+
this.app_s.user_email = obj.email;
|
|
16894
|
+
this.user_idp = obj.username;
|
|
16895
|
+
this.user_nome = obj.nome;
|
|
16896
|
+
this.user_cognome = obj.cognome;
|
|
16897
|
+
this.user_email = obj.email;
|
|
16898
|
+
}
|
|
16844
16899
|
init_user_i() {
|
|
16845
|
-
|
|
16846
|
-
this.user_idp = this.app_s.user;
|
|
16847
|
-
this.user_nome = this.app_s.user_name;
|
|
16848
|
-
this.user_cognome = this.app_s.user_surname;
|
|
16849
|
-
this.user_email = this.app_s.user_email;
|
|
16900
|
+
this.ripristina_imp();
|
|
16850
16901
|
}
|
|
16851
16902
|
save_to_app_state() {
|
|
16852
16903
|
this.app_s.getState().wkf_doc_info = {};
|
|
@@ -23831,6 +23882,7 @@ class dati_aggiuntivi_v2 {
|
|
|
23831
23882
|
this.m_fileservice = m_fileservice;
|
|
23832
23883
|
this.tsr = tsr;
|
|
23833
23884
|
this.m_obj = {};
|
|
23885
|
+
this.sort_field = "";
|
|
23834
23886
|
this.in_carico = false;
|
|
23835
23887
|
this.wkf_users_roles = '';
|
|
23836
23888
|
this.b_rip_pulsanti = true;
|
|
@@ -23949,6 +24001,35 @@ class dati_aggiuntivi_v2 {
|
|
|
23949
24001
|
});
|
|
23950
24002
|
});
|
|
23951
24003
|
}
|
|
24004
|
+
ripristina_imp() {
|
|
24005
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
24006
|
+
this.user_idp = this.app_s.user;
|
|
24007
|
+
this.user_nome = this.app_s.user_name;
|
|
24008
|
+
this.user_cognome = this.app_s.user_surname;
|
|
24009
|
+
this.user_email = this.app_s.user_email;
|
|
24010
|
+
return;
|
|
24011
|
+
}
|
|
24012
|
+
let obj = JSON.parse(this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
24013
|
+
if (obj == null) {
|
|
24014
|
+
this.user_idp = this.app_s.user;
|
|
24015
|
+
this.user_nome = this.app_s.user_name;
|
|
24016
|
+
this.user_cognome = this.app_s.user_surname;
|
|
24017
|
+
this.user_email = this.app_s.user_email;
|
|
24018
|
+
return;
|
|
24019
|
+
}
|
|
24020
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
24021
|
+
this.app_s.user_ori = this.app_s.user;
|
|
24022
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
24023
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
24024
|
+
this.app_s.user_name = obj.nome;
|
|
24025
|
+
this.app_s.user = obj.username;
|
|
24026
|
+
this.app_s.user_surname = obj.cognome;
|
|
24027
|
+
this.app_s.user_email = obj.email;
|
|
24028
|
+
this.user_idp = obj.username;
|
|
24029
|
+
this.user_nome = obj.nome;
|
|
24030
|
+
this.user_cognome = obj.cognome;
|
|
24031
|
+
this.user_email = obj.email;
|
|
24032
|
+
}
|
|
23952
24033
|
hasRole(s, b_check_admin = true) {
|
|
23953
24034
|
if (this.wkf_users_roles === null)
|
|
23954
24035
|
return false;
|
|
@@ -23962,10 +24043,7 @@ class dati_aggiuntivi_v2 {
|
|
|
23962
24043
|
return false;
|
|
23963
24044
|
}
|
|
23964
24045
|
init_user_i() {
|
|
23965
|
-
this.
|
|
23966
|
-
this.user_nome = this.app_s.user_name;
|
|
23967
|
-
this.user_cognome = this.app_s.user_surname;
|
|
23968
|
-
this.user_email = this.app_s.user_email;
|
|
24046
|
+
this.ripristina_imp();
|
|
23969
24047
|
}
|
|
23970
24048
|
save_to_app_state() {
|
|
23971
24049
|
this.app_s.getState().wkf_doc_info = {};
|
|
@@ -28199,6 +28277,7 @@ class wkfapp_v2 {
|
|
|
28199
28277
|
if (!m_service.checkCredentials()) {
|
|
28200
28278
|
return;
|
|
28201
28279
|
}
|
|
28280
|
+
this.ripristina_imp();
|
|
28202
28281
|
if (this.sort_field == null)
|
|
28203
28282
|
this.sort_field = '';
|
|
28204
28283
|
if (this.sort_field == '')
|
|
@@ -28701,6 +28780,7 @@ class wkfapp_v2 {
|
|
|
28701
28780
|
this.app_s.user_surname_ori = null;
|
|
28702
28781
|
this.app_s.user_email_ori = null;
|
|
28703
28782
|
this.imp = "";
|
|
28783
|
+
localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
|
|
28704
28784
|
this.get_grid().doFill("");
|
|
28705
28785
|
// browser.refresh()
|
|
28706
28786
|
}
|
|
@@ -28749,6 +28829,7 @@ class wkfapp_v2 {
|
|
|
28749
28829
|
data.result_data[0].cognome +
|
|
28750
28830
|
" " +
|
|
28751
28831
|
data.result_data[0].nome;
|
|
28832
|
+
localStorage.setItem(this.app_s.COMPANY_KEY + '_imp_user', this.m_uti.encrypt_v3(JSON.stringify(data.result_data[0])));
|
|
28752
28833
|
this.get_grid().doFill("");
|
|
28753
28834
|
}
|
|
28754
28835
|
});
|
|
@@ -28972,6 +29053,30 @@ class wkfapp_v2 {
|
|
|
28972
29053
|
insert_doc() {
|
|
28973
29054
|
this.m_router.navigate([this.app_root, this.id_applicativo, "new"]);
|
|
28974
29055
|
}
|
|
29056
|
+
ripristina_imp() {
|
|
29057
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
|
|
29058
|
+
return;
|
|
29059
|
+
let obj = JSON.parse(this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user')));
|
|
29060
|
+
if (obj == null)
|
|
29061
|
+
return;
|
|
29062
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
29063
|
+
this.app_s.user_ori = this.app_s.user;
|
|
29064
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
29065
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
29066
|
+
this.app_s.user_name = obj.nome;
|
|
29067
|
+
this.app_s.user = obj.username;
|
|
29068
|
+
this.app_s.user_surname = obj.cognome;
|
|
29069
|
+
this.app_s.user_email = obj.email;
|
|
29070
|
+
this.user_idp = obj.username;
|
|
29071
|
+
this.user_nome = obj.nome;
|
|
29072
|
+
this.user_cognome = obj.cognome;
|
|
29073
|
+
this.user_email = obj.email;
|
|
29074
|
+
this.imp =
|
|
29075
|
+
"ANN. IMP: " +
|
|
29076
|
+
obj.cognome +
|
|
29077
|
+
" " +
|
|
29078
|
+
obj.nome;
|
|
29079
|
+
}
|
|
28975
29080
|
}
|
|
28976
29081
|
wkfapp_v2.decorators = [
|
|
28977
29082
|
{ type: Directive }
|