@fluxhub/fluxhub-lib 1.0.243 → 1.0.245
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 +27 -64
- 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/FHGridComponent.html +37 -18
- package/docs/coverage.html +2 -2
- package/docs/injectables/AuthenticationService.html +0 -36
- package/docs/js/search/search_index.js +2 -2
- package/esm2015/lib/controls/fhgrid.js +24 -17
- package/esm2015/lib/services/login.service.js +1 -48
- package/esm5/lib/controls/fhgrid.js +28 -17
- package/esm5/lib/services/login.service.js +1 -51
- package/fesm2015/fluxhub-fluxhub-lib.js +23 -61
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +27 -64
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/fhgrid.d.ts +1 -0
- package/lib/services/login.service.d.ts +0 -1
- package/package.json +1 -1
|
@@ -2754,50 +2754,6 @@
|
|
|
2754
2754
|
throw err;
|
|
2755
2755
|
}));
|
|
2756
2756
|
};
|
|
2757
|
-
/**
|
|
2758
|
-
* @return {?}
|
|
2759
|
-
*/
|
|
2760
|
-
AuthenticationService.prototype.login_sa = /**
|
|
2761
|
-
* @return {?}
|
|
2762
|
-
*/
|
|
2763
|
-
function () {
|
|
2764
|
-
if (this.checkCredentials())
|
|
2765
|
-
return;
|
|
2766
|
-
/** @type {?} */
|
|
2767
|
-
var vars = window
|
|
2768
|
-
.location
|
|
2769
|
-
.href
|
|
2770
|
-
.split(/[\&?]+/);
|
|
2771
|
-
/** @type {?} */
|
|
2772
|
-
var altripar = "";
|
|
2773
|
-
/** @type {?} */
|
|
2774
|
-
var b_found = false;
|
|
2775
|
-
for (var i = 0; i < vars.length; i++) {
|
|
2776
|
-
if (vars[i].substring(0, 2) == "u=") {
|
|
2777
|
-
/** @type {?} */
|
|
2778
|
-
var p = vars[i].split("=")[1];
|
|
2779
|
-
//console.log(p);
|
|
2780
|
-
this.username = this.uti_s.decrypt(decodeURI(p));
|
|
2781
|
-
//console.log(this.username);
|
|
2782
|
-
b_found = true;
|
|
2783
|
-
}
|
|
2784
|
-
else {
|
|
2785
|
-
altripar = altripar + vars[i];
|
|
2786
|
-
}
|
|
2787
|
-
}
|
|
2788
|
-
if (!b_found) {
|
|
2789
|
-
/** @type {?} */
|
|
2790
|
-
var r_url = encodeURI(window.location.href).replace('#', '%23');
|
|
2791
|
-
if (r_url.indexOf('?') == -1)
|
|
2792
|
-
r_url = r_url + '?';
|
|
2793
|
-
this.url = 'http://csaportale.ceramicasantagostino.it/homepage_new.nsf/OK?OpenForm&redirect=' + r_url;
|
|
2794
|
-
// console.log(post_v);
|
|
2795
|
-
window.location.href = (this.url);
|
|
2796
|
-
}
|
|
2797
|
-
else {
|
|
2798
|
-
this.login(this.username, 'jacoèp');
|
|
2799
|
-
}
|
|
2800
|
-
};
|
|
2801
2757
|
/**
|
|
2802
2758
|
* @param {?} email
|
|
2803
2759
|
* @param {?=} displayError
|
|
@@ -2948,10 +2904,6 @@
|
|
|
2948
2904
|
if ('/login' != this.router.url && this.router.url.indexOf('/rp/') == -1)
|
|
2949
2905
|
this.goto_after = window.location.toString();
|
|
2950
2906
|
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") === null) {
|
|
2951
|
-
if (this.app_s.LOGIN_EXT == 1) {
|
|
2952
|
-
this.login_sa();
|
|
2953
|
-
return false;
|
|
2954
|
-
}
|
|
2955
2907
|
if (this.router.url.indexOf('/rp/') == -1)
|
|
2956
2908
|
this.router.navigate(['login']);
|
|
2957
2909
|
return false;
|
|
@@ -3980,21 +3932,6 @@
|
|
|
3980
3932
|
var b_mantieni_ck = false;
|
|
3981
3933
|
if (_this.toggle_mantieni != null)
|
|
3982
3934
|
b_mantieni_ck = _this.toggle_mantieni.checked;
|
|
3983
|
-
if (_this.no_pref && !_this.b_init1) {
|
|
3984
|
-
_this.autoSizeAll();
|
|
3985
|
-
}
|
|
3986
|
-
_this.b_init1 = true;
|
|
3987
|
-
_this.ensure_visible();
|
|
3988
|
-
if (!_this.show_buttons && _this.first_ref) {
|
|
3989
|
-
setTimeout(function () {
|
|
3990
|
-
_this.autoSizeAll();
|
|
3991
|
-
}, 300);
|
|
3992
|
-
_this.first_ref = false;
|
|
3993
|
-
}
|
|
3994
|
-
else if (localStorage.getItem(_this.grid_key + '_COLS') == null)
|
|
3995
|
-
setTimeout(function () {
|
|
3996
|
-
_this.autoSizeAll();
|
|
3997
|
-
}, 300);
|
|
3998
3935
|
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
3999
3936
|
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
4000
3937
|
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
@@ -4325,6 +4262,32 @@
|
|
|
4325
4262
|
}
|
|
4326
4263
|
});
|
|
4327
4264
|
};
|
|
4265
|
+
/**
|
|
4266
|
+
* @return {?}
|
|
4267
|
+
*/
|
|
4268
|
+
FHGridComponent.prototype.onfirstDataRendered = /**
|
|
4269
|
+
* @return {?}
|
|
4270
|
+
*/
|
|
4271
|
+
function () {
|
|
4272
|
+
var _this = this;
|
|
4273
|
+
if (this.no_pref && !this.b_init1) {
|
|
4274
|
+
setTimeout(function () {
|
|
4275
|
+
_this.autoSizeAll();
|
|
4276
|
+
}, 300);
|
|
4277
|
+
}
|
|
4278
|
+
this.b_init1 = true;
|
|
4279
|
+
this.ensure_visible();
|
|
4280
|
+
if (!this.show_buttons && this.first_ref) {
|
|
4281
|
+
setTimeout(function () {
|
|
4282
|
+
_this.autoSizeAll();
|
|
4283
|
+
}, 300);
|
|
4284
|
+
this.first_ref = false;
|
|
4285
|
+
}
|
|
4286
|
+
else if (localStorage.getItem(this.grid_key + '_COLS') == null)
|
|
4287
|
+
setTimeout(function () {
|
|
4288
|
+
_this.autoSizeAll();
|
|
4289
|
+
}, 300);
|
|
4290
|
+
};
|
|
4328
4291
|
/**
|
|
4329
4292
|
* @private
|
|
4330
4293
|
* @return {?}
|
|
@@ -5316,7 +5279,7 @@
|
|
|
5316
5279
|
FHGridComponent.decorators = [
|
|
5317
5280
|
{ type: i0.Component, args: [{
|
|
5318
5281
|
selector: 'FHGrid',
|
|
5319
|
-
template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon> \r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t \t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n\r\n\r\n</div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
|
|
5282
|
+
template: "\r\n<div fxLayout=\"column\" fxFlexFill>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"3px\" style=\"min-height: 55px\" [hidden]=\"!show_buttons\">\r\n \r\n <div>\r\n\t\t \t\t<h5>{{num_r}} {{label_elementi}}</h5>\r\n </div>\r\n \r\n\r\n\t\t\t<div>\t<input matInput [placeholder]=\"trova_label\" (keydown)=\"keyDownFunctioncl($event)\" [(ngModel)]=\"ric_libera\"\r\n\t\t\t\t\t\t\t style=\"min-width:100px;max-width:180px;border:1px solid;min-height:30px\"></div>\r\n <div matTooltip=\"REMOVE FILTER\" matTooltipPosition=\"above\" *ngIf=\"show_pulisci_filtri\" >\r\n \t\t\t<button mat-raised-button (click)=\"pulisci_filtri()\" color=\"warn\">\r\n\t\t\t\t<mat-icon>filter_none</mat-icon> \r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"AUTO SIZE\" matTooltipPosition=\"above\">\r\n \t\t\t<button mat-raised-button (click)=\"autoSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>compare_arrows</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n <div fxHide fxShow.gt-sm matTooltip=\"FIT SIZE\" matTooltipPosition=\"above\">\r\n\t \t\t<button mat-raised-button (click)=\"fitSizeAll()\" color=\"primary\"\r\n *ngIf=\"show_buttons\">\r\n\t\t\t\t<mat-icon>keyboard_tab</mat-icon>\r\n\t\t\t</button>\r\n </div>\r\n\r\n <FHComboBox fxHide fxShow.gt-sm [hidden]='!show_buttons' (selchange)=\"ch_config()\" (fillend)=\"fe_cfg()\" #gf init_fill=\"false\"></FHComboBox>\r\n\t\t\t\t<div matTooltip=\"Modifica Preferenza\" matTooltipPosition=\"above\" *ngIf=\"curr_config!='-1'\">\r\n\t\t\t\t\t<button mat-icon-button *ngIf=\"show_buttons\"\r\n\t\t\t\t\t\t\t\t\tstyle=\"color:rgb(248, 105, 10)\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"edit_config()\">save</mat-icon>\r\n </button>\r\n\t\t\t\t</div>\r\n\r\n\t\t\t\t<div fxHide fxShow.gt-sm matTooltip=\"Crea Nuova Preferenza\" matTooltipPosition=\"above\">\r\n\t\t\t\t\t<button mat-icon-button style=\"color:rgb(16, 98, 16)\" *ngIf=\"show_buttons\">\r\n\t\t\t\t\t\t<mat-icon (click)=\"insert_config()\">library_add</mat-icon>\r\n\t\t\t\t\t</button>\r\n\t\t\t\t</div>\r\n\r\n <mat-slide-toggle fxHide fxShow.gt-sm [hidden]='!show_buttons' (click)=\"ck_flag()\" #toggle_mantieni>\r\n\t\t\t\t\t{{mantieni_impostazioni}}\r\n\t\t\t\t</mat-slide-toggle>\r\n\r\n\r\n \t \t<div fxHide fxShow.gt-sm matTooltip=\"HELP\" matTooltipPosition=\"above\">\r\n <button mat-raised-button (click)=\"help_window()\" color=\"primary\" *ngIf=\"show_buttons && show_help\" >\r\n\t\t\t<mat-icon>help</mat-icon>\r\n </button></div>\r\n\r\n <div fxLayout=\"row\" fxLayoutAlign=\"end center\" fxFlex>\r\n <FHGridToolBar (command)=\"docmd($event)\" [type]=\"toolbar_type\"\r\n\r\n [custom_commands]=\"toolbar_custom_commands\"\r\n [toolbar_wkfapp]=\"toolbar_wkfapp\"\r\n\r\n ></FHGridToolBar>\r\n\t\t</div>\r\n\r\n\r\n</div>\r\n\r\n <div fxLayout=\"row\" style=\"width:100%\" fxFlex=\"95\">\r\n<ag-grid-angular\r\n ref-agGrid\r\n style=\"width: 100%; height: 100%;\"\r\n id=\"myGrid\"\r\n\t\t\t\t\t\t\t\t (cellDoubleClicked)=\"onColumnEvent($event)\"\r\n (cellClicked)=\"onCellClicked($event)\"\r\n\t\t\t\t\t\t\t\t [headerHeight]=\"header_h\"\r\n [groupHeaderHeight]=\"header_h\"\r\n\r\n\t\t\t\t\t\t\t\t class=\"ag-theme-balham\"\r\n [singleClickEdit]=\"true\"\r\n [gridOptions]=\"gridOptions\"\r\n [columnDefs]=\"columnDefs\"\r\n\t\t\t\t\t\t\t\t [rowData]=\"rowData\"\r\n (firstDataRendered)=\"onfirstDataRendered()\"\r\n\t\t\t\t\t\t\t\t (afterFilterChanged)=\"onAfterFilterChanged()\"\r\n (filterModified)=\"onFilterModified()\"\r\n\t\t\t\t\t\t\t\t (rowDoubleClicked)=\"onRowDClicked($event)\"\r\n\t\t\t\t\t\t\t\t (rowClicked)=\"onRowClicked($event)\"\r\n (columnVisible)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnResized)=\"oncolumnEverythingChanged($event)\"\r\n\t\t\t\t\t\t\t\t (columnMoved)=\"oncolumnEverythingChanged($event)\"\r\n (cellValueChanged)=\"okr($event)\"\r\n\t\t\t\t\t\t\t\t (sortChanged)=\"onAfterSortChanged()\"\r\n [paginationPageSize]=\"num_per_pag\"\r\n (gridReady)=\"onReady($event)\">\r\n</ag-grid-angular>\r\n</div>\r\n</div>\r\n",
|
|
5320
5283
|
styles: ["\n\n "]
|
|
5321
5284
|
}] }
|
|
5322
5285
|
];
|