@fluxhub/fluxhub-lib 1.0.197 → 1.0.199
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 +72 -42
- 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/docs/components/FHAutoCompleteComponent.html +2 -2
- package/esm2015/lib/auth_guard.js +70 -42
- package/esm2015/lib/controls/fhautocomplete.js +4 -2
- package/esm2015/lib/wkf_engine/win_log.js +2 -2
- package/esm5/lib/auth_guard.js +70 -42
- package/esm5/lib/controls/fhautocomplete.js +4 -2
- package/esm5/lib/wkf_engine/win_log.js +1 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +74 -44
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +73 -43
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -5885,6 +5885,7 @@
|
|
|
5885
5885
|
* @return {?}
|
|
5886
5886
|
*/
|
|
5887
5887
|
function (event) {
|
|
5888
|
+
console.log('selectedSearchItem ', event);
|
|
5888
5889
|
this.setByDescri(event.option.value);
|
|
5889
5890
|
this.sItem = event.option.value;
|
|
5890
5891
|
this.ch(event);
|
|
@@ -5898,6 +5899,7 @@
|
|
|
5898
5899
|
* @return {?}
|
|
5899
5900
|
*/
|
|
5900
5901
|
function ($event) {
|
|
5902
|
+
console.log('ch ', $event);
|
|
5901
5903
|
/** @type {?} */
|
|
5902
5904
|
var value = this.getValue();
|
|
5903
5905
|
this
|
|
@@ -6266,7 +6268,7 @@
|
|
|
6266
6268
|
FHAutoCompleteComponent.decorators = [
|
|
6267
6269
|
{ type: i0.Component, args: [{
|
|
6268
6270
|
selector: 'FHAutoComplete',
|
|
6269
|
-
template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search()\"\n (
|
|
6271
|
+
template: "\n <mat-form-field class=\"field_style\" [hidden]=\"!enabled || hidden\">\n <input matInput\n class=\"field_style\" [disabled]=\"!enabled || hidden\" [matAutocomplete]=\"auto\" [placeholder]=\"label\" [required]=\"required\"\n (keyup)=\"onChange($event)\" [(ngModel)]=\"sItem\" (focus)=\"fi_search()\" (focusout)=\"fo_search()\"\n (ngModelChange)=\"ch($event)\" #searchp>\n </mat-form-field>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selectedSearchItem($event)\">\n <mat-option *ngFor=\"let objx of searchItemsFiltered\" class=\"search_home\" [value]=\"objx.descrizione_valore\">\n {{ objx.descrizione_valore }}\n </mat-option>\n </mat-autocomplete>\n\n\n <div class=\"ui negative message\" *ngIf=\"errorMsg != ''\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n {{errorMsg}}\n </div>\n </div>\n <mat-form-field [hidden]=\"enabled || hidden\">\n <input type=\"text\" #el1 matInput [disabled]=\"true\" placeholder=\"{{label}}\" [(ngModel)]=\"sItem\"\n >\n </mat-form-field>\n ",
|
|
6270
6272
|
providers: [
|
|
6271
6273
|
{ provide: forms.NG_VALUE_ACCESSOR, useExisting: FHAutoCompleteComponent, multi: true },
|
|
6272
6274
|
],
|
|
@@ -13653,52 +13655,80 @@
|
|
|
13653
13655
|
p.sql = "SELECT_USER_ACCESS_AUTH";
|
|
13654
13656
|
p.values = [];
|
|
13655
13657
|
p.types = [];
|
|
13656
|
-
_this.
|
|
13657
|
-
|
|
13658
|
-
if (data
|
|
13659
|
-
if (data.
|
|
13660
|
-
|
|
13661
|
-
|
|
13662
|
-
|
|
13663
|
-
_this.appService.user_roles
|
|
13664
|
-
|
|
13665
|
-
|
|
13666
|
-
|
|
13667
|
-
if (_this.app_s.user_isadmin
|
|
13668
|
-
|
|
13669
|
-
|
|
13670
|
-
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
13674
|
-
|
|
13675
|
-
|
|
13676
|
-
|
|
13677
|
-
|
|
13678
|
-
|
|
13679
|
-
|
|
13680
|
-
|
|
13681
|
-
|
|
13682
|
-
|
|
13683
|
-
|
|
13684
|
-
|
|
13685
|
-
|
|
13658
|
+
if (_this.appService.user == null) {
|
|
13659
|
+
_this.querys.doQuery(p).subscribe(function (data) {
|
|
13660
|
+
if (data != null)
|
|
13661
|
+
if (data.result_msg == "OK")
|
|
13662
|
+
if (data.result_data.length > 0) {
|
|
13663
|
+
console.log('canActivate 6');
|
|
13664
|
+
_this.appService.user_roles = data.result_data[0].roles;
|
|
13665
|
+
if (_this.appService.user_roles.length > 0)
|
|
13666
|
+
_this.appService.user_roles = _this.appService.user_roles.substr(1);
|
|
13667
|
+
_this.appService.user_isadmin = data.result_data[0].isadmin;
|
|
13668
|
+
_this.appService.user = data.result_data[0].username;
|
|
13669
|
+
if (_this.app_s.user_isadmin != null)
|
|
13670
|
+
if (_this.app_s.user_isadmin == "1")
|
|
13671
|
+
return true;
|
|
13672
|
+
/** @type {?} */
|
|
13673
|
+
var p_1 = new QParam();
|
|
13674
|
+
p_1.sql = "SELECT_APPS_USER_ALL";
|
|
13675
|
+
_this.appService.getState().app_enabled = new Array();
|
|
13676
|
+
p_1.types = ['string'];
|
|
13677
|
+
p_1.values = [_this.appService.user];
|
|
13678
|
+
console.log('canActivate 8');
|
|
13679
|
+
_this.querys.doQuery(p_1).subscribe(function (data) {
|
|
13680
|
+
console.log('canActivate 9');
|
|
13681
|
+
_this.arr_accessi = data.result_data;
|
|
13682
|
+
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
13683
|
+
console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
|
|
13684
|
+
if (_this.arr_accessi[i].type == 'M') {
|
|
13685
|
+
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
13686
|
+
resolve(true);
|
|
13687
|
+
return;
|
|
13688
|
+
}
|
|
13686
13689
|
}
|
|
13687
13690
|
}
|
|
13688
|
-
|
|
13689
|
-
|
|
13690
|
-
|
|
13691
|
-
|
|
13691
|
+
console.log('canActivate 11');
|
|
13692
|
+
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
13693
|
+
resolve(false);
|
|
13694
|
+
_this.slimLoadingBarService.complete();
|
|
13695
|
+
return;
|
|
13696
|
+
});
|
|
13697
|
+
}
|
|
13698
|
+
else {
|
|
13699
|
+
_this.toast.error("ACCESS DENIED [0X0002]");
|
|
13692
13700
|
_this.slimLoadingBarService.complete();
|
|
13701
|
+
return false;
|
|
13702
|
+
}
|
|
13703
|
+
});
|
|
13704
|
+
}
|
|
13705
|
+
else {
|
|
13706
|
+
/** @type {?} */
|
|
13707
|
+
var p_2 = new QParam();
|
|
13708
|
+
p_2.sql = "SELECT_APPS_USER_ALL";
|
|
13709
|
+
_this.appService.getState().app_enabled = new Array();
|
|
13710
|
+
p_2.types = ['string'];
|
|
13711
|
+
p_2.values = [_this.appService.user];
|
|
13712
|
+
console.log('canActivate 8');
|
|
13713
|
+
_this.querys.doQuery(p_2).subscribe(function (data) {
|
|
13714
|
+
console.log('canActivate 9');
|
|
13715
|
+
_this.arr_accessi = data.result_data;
|
|
13716
|
+
for (var i = 0; i < _this.arr_accessi.length; i++) {
|
|
13717
|
+
console.log('[' + _this.arr_accessi[i].url.split('/')[0] + ']', '-----', '[' + _this.routingDestination.split('/')[0] + ']');
|
|
13718
|
+
if (_this.arr_accessi[i].type == 'M') {
|
|
13719
|
+
if ('[' + _this.arr_accessi[i].url.split('/')[0] + ']' == '[' + _this.routingDestination.split('/')[0] + ']') {
|
|
13720
|
+
resolve(true);
|
|
13693
13721
|
return;
|
|
13694
|
-
}
|
|
13695
|
-
}
|
|
13696
|
-
else {
|
|
13697
|
-
_this.toast.error("ACCESS DENIED [0X0002]");
|
|
13698
|
-
_this.slimLoadingBarService.complete();
|
|
13699
|
-
return false;
|
|
13722
|
+
}
|
|
13700
13723
|
}
|
|
13701
|
-
|
|
13724
|
+
}
|
|
13725
|
+
console.log('canActivate 11');
|
|
13726
|
+
_this.toast.error("ACCESS DENIED [0X0001]");
|
|
13727
|
+
resolve(false);
|
|
13728
|
+
_this.slimLoadingBarService.complete();
|
|
13729
|
+
return;
|
|
13730
|
+
});
|
|
13731
|
+
}
|
|
13702
13732
|
});
|
|
13703
13733
|
console.log('canActivate 12');
|
|
13704
13734
|
}
|