@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
|
@@ -3335,50 +3335,6 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
3335
3335
|
throw err;
|
|
3336
3336
|
}));
|
|
3337
3337
|
};
|
|
3338
|
-
/**
|
|
3339
|
-
* @return {?}
|
|
3340
|
-
*/
|
|
3341
|
-
AuthenticationService.prototype.login_sa = /**
|
|
3342
|
-
* @return {?}
|
|
3343
|
-
*/
|
|
3344
|
-
function () {
|
|
3345
|
-
if (this.checkCredentials())
|
|
3346
|
-
return;
|
|
3347
|
-
/** @type {?} */
|
|
3348
|
-
var vars = window
|
|
3349
|
-
.location
|
|
3350
|
-
.href
|
|
3351
|
-
.split(/[\&?]+/);
|
|
3352
|
-
/** @type {?} */
|
|
3353
|
-
var altripar = "";
|
|
3354
|
-
/** @type {?} */
|
|
3355
|
-
var b_found = false;
|
|
3356
|
-
for (var i = 0; i < vars.length; i++) {
|
|
3357
|
-
if (vars[i].substring(0, 2) == "u=") {
|
|
3358
|
-
/** @type {?} */
|
|
3359
|
-
var p = vars[i].split("=")[1];
|
|
3360
|
-
//console.log(p);
|
|
3361
|
-
this.username = this.uti_s.decrypt(decodeURI(p));
|
|
3362
|
-
//console.log(this.username);
|
|
3363
|
-
b_found = true;
|
|
3364
|
-
}
|
|
3365
|
-
else {
|
|
3366
|
-
altripar = altripar + vars[i];
|
|
3367
|
-
}
|
|
3368
|
-
}
|
|
3369
|
-
if (!b_found) {
|
|
3370
|
-
/** @type {?} */
|
|
3371
|
-
var r_url = encodeURI(window.location.href).replace('#', '%23');
|
|
3372
|
-
if (r_url.indexOf('?') == -1)
|
|
3373
|
-
r_url = r_url + '?';
|
|
3374
|
-
this.url = 'http://csaportale.ceramicasantagostino.it/homepage_new.nsf/OK?OpenForm&redirect=' + r_url;
|
|
3375
|
-
// console.log(post_v);
|
|
3376
|
-
window.location.href = (this.url);
|
|
3377
|
-
}
|
|
3378
|
-
else {
|
|
3379
|
-
this.login(this.username, 'jacoèp');
|
|
3380
|
-
}
|
|
3381
|
-
};
|
|
3382
3338
|
/**
|
|
3383
3339
|
* @param {?} email
|
|
3384
3340
|
* @param {?=} displayError
|
|
@@ -3523,10 +3479,6 @@ var AuthenticationService = /** @class */ (function () {
|
|
|
3523
3479
|
if ('/login' != this.router.url && this.router.url.indexOf('/rp/') == -1)
|
|
3524
3480
|
this.goto_after = window.location.toString();
|
|
3525
3481
|
if (localStorage.getItem(this.app_s.COMPANY_KEY + "token") === null) {
|
|
3526
|
-
if (this.app_s.LOGIN_EXT == 1) {
|
|
3527
|
-
this.login_sa();
|
|
3528
|
-
return false;
|
|
3529
|
-
}
|
|
3530
3482
|
if (this.router.url.indexOf('/rp/') == -1)
|
|
3531
3483
|
this.router.navigate(['login']);
|
|
3532
3484
|
return false;
|
|
@@ -5973,21 +5925,6 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
5973
5925
|
var b_mantieni_ck = false;
|
|
5974
5926
|
if (_this.toggle_mantieni != null)
|
|
5975
5927
|
b_mantieni_ck = _this.toggle_mantieni.checked;
|
|
5976
|
-
if (_this.no_pref && !_this.b_init1) {
|
|
5977
|
-
_this.autoSizeAll();
|
|
5978
|
-
}
|
|
5979
|
-
_this.b_init1 = true;
|
|
5980
|
-
_this.ensure_visible();
|
|
5981
|
-
if (!_this.show_buttons && _this.first_ref) {
|
|
5982
|
-
setTimeout(function () {
|
|
5983
|
-
_this.autoSizeAll();
|
|
5984
|
-
}, 300);
|
|
5985
|
-
_this.first_ref = false;
|
|
5986
|
-
}
|
|
5987
|
-
else if (localStorage.getItem(_this.grid_key + '_COLS') == null)
|
|
5988
|
-
setTimeout(function () {
|
|
5989
|
-
_this.autoSizeAll();
|
|
5990
|
-
}, 300);
|
|
5991
5928
|
//console.log('xxxxxxxxxxxxxxxxxxx');
|
|
5992
5929
|
// console.log(this.m_appService.getState().grid_obj[this.grid_key+'_NODE'].id);
|
|
5993
5930
|
//if(this.m_appService.getState().grid_obj[this.grid_key+'_NODE']!=null)
|
|
@@ -6318,6 +6255,32 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
6318
6255
|
}
|
|
6319
6256
|
});
|
|
6320
6257
|
};
|
|
6258
|
+
/**
|
|
6259
|
+
* @return {?}
|
|
6260
|
+
*/
|
|
6261
|
+
FHGridComponent.prototype.onfirstDataRendered = /**
|
|
6262
|
+
* @return {?}
|
|
6263
|
+
*/
|
|
6264
|
+
function () {
|
|
6265
|
+
var _this = this;
|
|
6266
|
+
if (this.no_pref && !this.b_init1) {
|
|
6267
|
+
setTimeout(function () {
|
|
6268
|
+
_this.autoSizeAll();
|
|
6269
|
+
}, 300);
|
|
6270
|
+
}
|
|
6271
|
+
this.b_init1 = true;
|
|
6272
|
+
this.ensure_visible();
|
|
6273
|
+
if (!this.show_buttons && this.first_ref) {
|
|
6274
|
+
setTimeout(function () {
|
|
6275
|
+
_this.autoSizeAll();
|
|
6276
|
+
}, 300);
|
|
6277
|
+
this.first_ref = false;
|
|
6278
|
+
}
|
|
6279
|
+
else if (localStorage.getItem(this.grid_key + '_COLS') == null)
|
|
6280
|
+
setTimeout(function () {
|
|
6281
|
+
_this.autoSizeAll();
|
|
6282
|
+
}, 300);
|
|
6283
|
+
};
|
|
6321
6284
|
/**
|
|
6322
6285
|
* @private
|
|
6323
6286
|
* @return {?}
|
|
@@ -7299,7 +7262,7 @@ var FHGridComponent = /** @class */ (function () {
|
|
|
7299
7262
|
FHGridComponent.decorators = [
|
|
7300
7263
|
{ type: Component, args: [{
|
|
7301
7264
|
selector: 'FHGrid',
|
|
7302
|
-
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",
|
|
7265
|
+
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",
|
|
7303
7266
|
styles: ["\n\n "]
|
|
7304
7267
|
}] }
|
|
7305
7268
|
];
|