@fluxhub/fluxhub-lib 10.0.598 → 10.0.599
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 +97 -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 +26 -2
- package/esm2015/lib/wkf_engine/wkfdatiaggiuntivi.js +24 -6
- package/esm2015/lib/wkf_engine_v2/wkfapp.js +26 -1
- package/esm2015/lib/wkf_engine_v2/wkfdatiaggiuntivi.js +25 -5
- package/fesm2015/fluxhub-fluxhub-lib.js +97 -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(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,28 @@
|
|
|
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 = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
|
|
19399
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
19400
|
+
this.app_s.user_ori = this.app_s.user;
|
|
19401
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
19402
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
19403
|
+
this.app_s.user_name = obj.nome;
|
|
19404
|
+
this.app_s.user = obj.username;
|
|
19405
|
+
this.app_s.user_surname = obj.cognome;
|
|
19406
|
+
this.app_s.user_email = obj.email;
|
|
19407
|
+
this.user_idp = obj.username;
|
|
19408
|
+
this.user_nome = obj.nome;
|
|
19409
|
+
this.user_cognome = obj.cognome;
|
|
19410
|
+
this.user_email = obj.email;
|
|
19411
|
+
this.imp =
|
|
19412
|
+
"ANN. IMP: " +
|
|
19413
|
+
obj.cognome +
|
|
19414
|
+
" " +
|
|
19415
|
+
obj.nome;
|
|
19416
|
+
};
|
|
19393
19417
|
wkfapp.prototype.save_state_wkf = function () {
|
|
19394
19418
|
this.app_s.getState().wkf_obj = {};
|
|
19395
19419
|
this.app_s.getState().wkf_obj.b_editing = this.b_editing;
|
|
@@ -19694,12 +19718,30 @@
|
|
|
19694
19718
|
this.b_apprf = false;
|
|
19695
19719
|
// console.log('user_idp: '+ this.user_idp);
|
|
19696
19720
|
}
|
|
19721
|
+
dati_aggiuntivi.prototype.ripristina_imp = function () {
|
|
19722
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
19723
|
+
this.user_idp = this.app_s.user;
|
|
19724
|
+
this.user_nome = this.app_s.user_name;
|
|
19725
|
+
this.user_cognome = this.app_s.user_surname;
|
|
19726
|
+
this.user_email = this.app_s.user_email;
|
|
19727
|
+
return;
|
|
19728
|
+
}
|
|
19729
|
+
var obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
|
|
19730
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
19731
|
+
this.app_s.user_ori = this.app_s.user;
|
|
19732
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
19733
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
19734
|
+
this.app_s.user_name = obj.nome;
|
|
19735
|
+
this.app_s.user = obj.username;
|
|
19736
|
+
this.app_s.user_surname = obj.cognome;
|
|
19737
|
+
this.app_s.user_email = obj.email;
|
|
19738
|
+
this.user_idp = obj.username;
|
|
19739
|
+
this.user_nome = obj.nome;
|
|
19740
|
+
this.user_cognome = obj.cognome;
|
|
19741
|
+
this.user_email = obj.email;
|
|
19742
|
+
};
|
|
19697
19743
|
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;
|
|
19744
|
+
this.ripristina_imp();
|
|
19703
19745
|
};
|
|
19704
19746
|
dati_aggiuntivi.prototype.save_to_app_state = function () {
|
|
19705
19747
|
this.app_s.getState().wkf_doc_info = {};
|
|
@@ -21630,6 +21672,7 @@
|
|
|
21630
21672
|
if (!m_service.checkCredentials()) {
|
|
21631
21673
|
return;
|
|
21632
21674
|
}
|
|
21675
|
+
this.ripristina_imp();
|
|
21633
21676
|
if (this.sort_field == null)
|
|
21634
21677
|
this.sort_field = '';
|
|
21635
21678
|
if (this.sort_field == '')
|
|
@@ -22140,6 +22183,7 @@
|
|
|
22140
22183
|
this.app_s.user_surname_ori = null;
|
|
22141
22184
|
this.app_s.user_email_ori = null;
|
|
22142
22185
|
this.imp = "";
|
|
22186
|
+
localStorage.removeItem(this.app_s.COMPANY_KEY + '_imp_user');
|
|
22143
22187
|
this.get_grid().doFill("");
|
|
22144
22188
|
// browser.refresh()
|
|
22145
22189
|
};
|
|
@@ -22189,6 +22233,7 @@
|
|
|
22189
22233
|
data.result_data[0].cognome +
|
|
22190
22234
|
" " +
|
|
22191
22235
|
data.result_data[0].nome;
|
|
22236
|
+
localStorage.setItem(_this.app_s.COMPANY_KEY + '_imp_user', _this.m_uti.encrypt_v3(data.result_data[0]));
|
|
22192
22237
|
_this.get_grid().doFill("");
|
|
22193
22238
|
}
|
|
22194
22239
|
});
|
|
@@ -22415,6 +22460,28 @@
|
|
|
22415
22460
|
wkfapp_v2.prototype.insert_doc = function () {
|
|
22416
22461
|
this.m_router.navigate([this.app_root, this.id_applicativo, "new"]);
|
|
22417
22462
|
};
|
|
22463
|
+
wkfapp_v2.prototype.ripristina_imp = function () {
|
|
22464
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null)
|
|
22465
|
+
return;
|
|
22466
|
+
var obj = this.m_uti.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
|
|
22467
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
22468
|
+
this.app_s.user_ori = this.app_s.user;
|
|
22469
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
22470
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
22471
|
+
this.app_s.user_name = obj.nome;
|
|
22472
|
+
this.app_s.user = obj.username;
|
|
22473
|
+
this.app_s.user_surname = obj.cognome;
|
|
22474
|
+
this.app_s.user_email = obj.email;
|
|
22475
|
+
this.user_idp = obj.username;
|
|
22476
|
+
this.user_nome = obj.nome;
|
|
22477
|
+
this.user_cognome = obj.cognome;
|
|
22478
|
+
this.user_email = obj.email;
|
|
22479
|
+
this.imp =
|
|
22480
|
+
"ANN. IMP: " +
|
|
22481
|
+
obj.cognome +
|
|
22482
|
+
" " +
|
|
22483
|
+
obj.nome;
|
|
22484
|
+
};
|
|
22418
22485
|
return wkfapp_v2;
|
|
22419
22486
|
}());
|
|
22420
22487
|
wkfapp_v2.decorators = [
|
|
@@ -22445,6 +22512,7 @@
|
|
|
22445
22512
|
this.m_fileservice = m_fileservice;
|
|
22446
22513
|
this.tsr = tsr;
|
|
22447
22514
|
this.m_obj = {};
|
|
22515
|
+
this.sort_field = "";
|
|
22448
22516
|
this.in_carico = false;
|
|
22449
22517
|
this.wkf_users_roles = '';
|
|
22450
22518
|
this.b_rip_pulsanti = true;
|
|
@@ -22563,6 +22631,28 @@
|
|
|
22563
22631
|
});
|
|
22564
22632
|
});
|
|
22565
22633
|
}
|
|
22634
|
+
dati_aggiuntivi_v2.prototype.ripristina_imp = function () {
|
|
22635
|
+
if (localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user') == null) {
|
|
22636
|
+
this.user_idp = this.app_s.user;
|
|
22637
|
+
this.user_nome = this.app_s.user_name;
|
|
22638
|
+
this.user_cognome = this.app_s.user_surname;
|
|
22639
|
+
this.user_email = this.app_s.user_email;
|
|
22640
|
+
return;
|
|
22641
|
+
}
|
|
22642
|
+
var obj = this.uti_s.decrypt_v3(localStorage.getItem(this.app_s.COMPANY_KEY + '_imp_user'));
|
|
22643
|
+
this.app_s.user_name_ori = this.app_s.user_name;
|
|
22644
|
+
this.app_s.user_ori = this.app_s.user;
|
|
22645
|
+
this.app_s.user_surname_ori = this.app_s.user_surname;
|
|
22646
|
+
this.app_s.user_email_ori = this.app_s.user_email;
|
|
22647
|
+
this.app_s.user_name = obj.nome;
|
|
22648
|
+
this.app_s.user = obj.username;
|
|
22649
|
+
this.app_s.user_surname = obj.cognome;
|
|
22650
|
+
this.app_s.user_email = obj.email;
|
|
22651
|
+
this.user_idp = obj.username;
|
|
22652
|
+
this.user_nome = obj.nome;
|
|
22653
|
+
this.user_cognome = obj.cognome;
|
|
22654
|
+
this.user_email = obj.email;
|
|
22655
|
+
};
|
|
22566
22656
|
dati_aggiuntivi_v2.prototype.hasRole = function (s, b_check_admin) {
|
|
22567
22657
|
if (b_check_admin === void 0) { b_check_admin = true; }
|
|
22568
22658
|
if (this.wkf_users_roles === null)
|
|
@@ -22577,10 +22667,7 @@
|
|
|
22577
22667
|
return false;
|
|
22578
22668
|
};
|
|
22579
22669
|
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;
|
|
22670
|
+
this.ripristina_imp();
|
|
22584
22671
|
};
|
|
22585
22672
|
dati_aggiuntivi_v2.prototype.save_to_app_state = function () {
|
|
22586
22673
|
this.app_s.getState().wkf_doc_info = {};
|